@deephaven/embed-chart 0.17.1-beta.1 → 0.17.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1174 @@
1
+ import{g as p_,c as _r,a as yl}from"./helpers.162e09a8.js";var v_={exports:{}},ki={},Kt={exports:{}},gr={};/*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */var RS=Object.getOwnPropertySymbols,z4=Object.prototype.hasOwnProperty,U4=Object.prototype.propertyIsEnumerable;function j4(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function G4(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var xl=G4()?Object.assign:function(e,t){for(var r,n=j4(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)z4.call(r,o)&&(n[o]=r[o]);if(RS){i=RS(r);for(var l=0;l<i.length;l++)U4.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n};/** @license React v17.0.2
6
+ * react.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */var m_=xl,_f=60103,wO=60106;gr.Fragment=60107;gr.StrictMode=60108;gr.Profiler=60114;var _O=60109,SO=60110,EO=60112;gr.Suspense=60113;var AO=60115,TO=60116;if(typeof Symbol=="function"&&Symbol.for){var Ui=Symbol.for;_f=Ui("react.element"),wO=Ui("react.portal"),gr.Fragment=Ui("react.fragment"),gr.StrictMode=Ui("react.strict_mode"),gr.Profiler=Ui("react.profiler"),_O=Ui("react.provider"),SO=Ui("react.context"),EO=Ui("react.forward_ref"),gr.Suspense=Ui("react.suspense"),AO=Ui("react.memo"),TO=Ui("react.lazy")}var FS=typeof Symbol=="function"&&Symbol.iterator;function W4(e){return e===null||typeof e!="object"?null:(e=FS&&e[FS]||e["@@iterator"],typeof e=="function"?e:null)}function Sd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var CO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},OO={};function Sf(e,t,r){this.props=e,this.context=t,this.refs=OO,this.updater=r||CO}Sf.prototype.isReactComponent={};Sf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Sd(85));this.updater.enqueueSetState(this,e,t,"setState")};Sf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kO(){}kO.prototype=Sf.prototype;function g_(e,t,r){this.props=e,this.context=t,this.refs=OO,this.updater=r||CO}var y_=g_.prototype=new kO;y_.constructor=g_;m_(y_,Sf.prototype);y_.isPureReactComponent=!0;var x_={current:null},MO=Object.prototype.hasOwnProperty,IO={key:!0,ref:!0,__self:!0,__source:!0};function RO(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)MO.call(t,n)&&!IO.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:_f,type:e,key:a,ref:o,props:i,_owner:x_.current}}function H4(e,t){return{$$typeof:_f,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function b_(e){return typeof e=="object"&&e!==null&&e.$$typeof===_f}function V4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var PS=/\/+/g;function vy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?V4(""+e.key):t.toString(36)}function Zv(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case _f:case wO:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+vy(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(PS,"$&/")+"/"),Zv(i,t,r,"",function(c){return c})):i!=null&&(b_(i)&&(i=H4(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(PS,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+vy(a,l);o+=Zv(a,t,r,s,i)}else if(s=W4(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+vy(a,l++),o+=Zv(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(Sd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function sv(e,t,r){if(e==null)return e;var n=[],i=0;return Zv(e,n,"","",function(a){return t.call(r,a,i++)}),n}function q4(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var FO={current:null};function Ja(){var e=FO.current;if(e===null)throw Error(Sd(321));return e}var Y4={ReactCurrentDispatcher:FO,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x_,IsSomeRendererActing:{current:!1},assign:m_};gr.Children={map:sv,forEach:function(e,t,r){sv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return sv(e,function(){t++}),t},toArray:function(e){return sv(e,function(t){return t})||[]},only:function(e){if(!b_(e))throw Error(Sd(143));return e}};gr.Component=Sf;gr.PureComponent=g_;gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y4;gr.cloneElement=function(e,t,r){if(e==null)throw Error(Sd(267,e));var n=m_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=x_.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)MO.call(t,s)&&!IO.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:_f,type:e.type,key:i,ref:a,props:n,_owner:o}};gr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:SO,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:_O,_context:e},e.Consumer=e};gr.createElement=RO;gr.createFactory=function(e){var t=RO.bind(null,e);return t.type=e,t};gr.createRef=function(){return{current:null}};gr.forwardRef=function(e){return{$$typeof:EO,render:e}};gr.isValidElement=b_;gr.lazy=function(e){return{$$typeof:TO,_payload:{_status:-1,_result:e},_init:q4}};gr.memo=function(e,t){return{$$typeof:AO,type:e,compare:t===void 0?null:t}};gr.useCallback=function(e,t){return Ja().useCallback(e,t)};gr.useContext=function(e,t){return Ja().useContext(e,t)};gr.useDebugValue=function(){};gr.useEffect=function(e,t){return Ja().useEffect(e,t)};gr.useImperativeHandle=function(e,t,r){return Ja().useImperativeHandle(e,t,r)};gr.useLayoutEffect=function(e,t){return Ja().useLayoutEffect(e,t)};gr.useMemo=function(e,t){return Ja().useMemo(e,t)};gr.useReducer=function(e,t,r){return Ja().useReducer(e,t,r)};gr.useRef=function(e){return Ja().useRef(e)};gr.useState=function(e){return Ja().useState(e)};gr.version="17.0.2";(function(e){e.exports=gr})(Kt);const Tn=p_(Kt.exports);var PO={exports:{}},NO={};/** @license React v0.20.2
13
+ * scheduler.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,c=null,d=function(){if(s!==null)try{var be=e.unstable_now();s(!0,be),s=null}catch(Ve){throw setTimeout(d,0),Ve}};t=function(be){s!==null?setTimeout(t,0,be):(s=be,setTimeout(d,0))},r=function(be,Ve){c=setTimeout(be,Ve)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var y=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var m=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof m!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,I=null,b=-1,w=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},i=function(){},e.unstable_forceFrameRate=function(be){0>be||125<be?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<be?Math.floor(1e3/be):5};var C=new MessageChannel,T=C.port2;C.port1.onmessage=function(){if(I!==null){var be=e.unstable_now();_=be+w;try{I(!0,be)?T.postMessage(null):(E=!1,I=null)}catch(Ve){throw T.postMessage(null),Ve}}else E=!1},t=function(be){I=be,E||(E=!0,T.postMessage(null))},r=function(be,Ve){b=y(function(){be(e.unstable_now())},Ve)},n=function(){g(b),b=-1}}function P(be,Ve){var st=be.length;be.push(Ve);e:for(;;){var Qe=st-1>>>1,ct=be[Qe];if(ct!==void 0&&0<j(ct,Ve))be[Qe]=Ve,be[st]=ct,st=Qe;else break e}}function D(be){return be=be[0],be===void 0?null:be}function Y(be){var Ve=be[0];if(Ve!==void 0){var st=be.pop();if(st!==Ve){be[0]=st;e:for(var Qe=0,ct=be.length;Qe<ct;){var yt=2*(Qe+1)-1,Wt=be[yt],Vt=yt+1,Ze=be[Vt];if(Wt!==void 0&&0>j(Wt,st))Ze!==void 0&&0>j(Ze,Wt)?(be[Qe]=Ze,be[Vt]=st,Qe=Vt):(be[Qe]=Wt,be[yt]=st,Qe=yt);else if(Ze!==void 0&&0>j(Ze,st))be[Qe]=Ze,be[Vt]=st,Qe=Vt;else break e}}return Ve}return null}function j(be,Ve){var st=be.sortIndex-Ve.sortIndex;return st!==0?st:be.id-Ve.id}var re=[],Ee=[],me=1,ke=null,Pe=3,Le=!1,ut=!1,nt=!1;function De(be){for(var Ve=D(Ee);Ve!==null;){if(Ve.callback===null)Y(Ee);else if(Ve.startTime<=be)Y(Ee),Ve.sortIndex=Ve.expirationTime,P(re,Ve);else break;Ve=D(Ee)}}function We(be){if(nt=!1,De(be),!ut)if(D(re)!==null)ut=!0,t(_t);else{var Ve=D(Ee);Ve!==null&&r(We,Ve.startTime-be)}}function _t(be,Ve){ut=!1,nt&&(nt=!1,n()),Le=!0;var st=Pe;try{for(De(Ve),ke=D(re);ke!==null&&(!(ke.expirationTime>Ve)||be&&!e.unstable_shouldYield());){var Qe=ke.callback;if(typeof Qe=="function"){ke.callback=null,Pe=ke.priorityLevel;var ct=Qe(ke.expirationTime<=Ve);Ve=e.unstable_now(),typeof ct=="function"?ke.callback=ct:ke===D(re)&&Y(re),De(Ve)}else Y(re);ke=D(re)}if(ke!==null)var yt=!0;else{var Wt=D(Ee);Wt!==null&&r(We,Wt.startTime-Ve),yt=!1}return yt}finally{ke=null,Pe=st,Le=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(be){be.callback=null},e.unstable_continueExecution=function(){ut||Le||(ut=!0,t(_t))},e.unstable_getCurrentPriorityLevel=function(){return Pe},e.unstable_getFirstCallbackNode=function(){return D(re)},e.unstable_next=function(be){switch(Pe){case 1:case 2:case 3:var Ve=3;break;default:Ve=Pe}var st=Pe;Pe=Ve;try{return be()}finally{Pe=st}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(be,Ve){switch(be){case 1:case 2:case 3:case 4:case 5:break;default:be=3}var st=Pe;Pe=be;try{return Ve()}finally{Pe=st}},e.unstable_scheduleCallback=function(be,Ve,st){var Qe=e.unstable_now();switch(typeof st=="object"&&st!==null?(st=st.delay,st=typeof st=="number"&&0<st?Qe+st:Qe):st=Qe,be){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=st+ct,be={id:me++,callback:Ve,priorityLevel:be,startTime:st,expirationTime:ct,sortIndex:-1},st>Qe?(be.sortIndex=st,P(Ee,be),D(re)===null&&be===D(Ee)&&(nt?n():nt=!0,r(We,st-Qe))):(be.sortIndex=ct,P(re,be),ut||Le||(ut=!0,t(_t))),be},e.unstable_wrapCallback=function(be){var Ve=Pe;return function(){var st=Pe;Pe=Ve;try{return be.apply(this,arguments)}finally{Pe=st}}}})(NO);(function(e){e.exports=NO})(PO);/** @license React v17.0.2
20
+ * react-dom.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var Am=Kt.exports,$r=xl,mn=PO.exports;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Am)throw Error(dt(227));var LO=new Set,Zh={};function bl(e,t){uf(e,t),uf(e+"Capture",t)}function uf(e,t){for(Zh[e]=t,e=0;e<t.length;e++)LO.add(t[e])}var Ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),X4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,NS=Object.prototype.hasOwnProperty,LS={},DS={};function Q4(e){return NS.call(DS,e)?!0:NS.call(LS,e)?!1:X4.test(e)?DS[e]=!0:(LS[e]=!0,!1)}function Z4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function K4(e,t,r,n){if(t===null||typeof t>"u"||Z4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cn[e]=new jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cn[t]=new jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cn[e]=new jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cn[e]=new jn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cn[e]=new jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cn[e]=new jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cn[e]=new jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cn[e]=new jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cn[e]=new jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var w_=/[\-:]([a-z])/g;function __(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(w_,__);Cn[t]=new jn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(w_,__);Cn[t]=new jn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(w_,__);Cn[t]=new jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cn[e]=new jn(e,1,!1,e.toLowerCase(),null,!1,!1)});Cn.xlinkHref=new jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cn[e]=new jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function S_(e,t,r,n){var i=Cn.hasOwnProperty(t)?Cn[t]:null,a=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(K4(t,r,i,n)&&(r=null),n||i===null?Q4(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var wl=Am.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xh=60103,Zu=60106,Lo=60107,E_=60108,Mh=60114,A_=60109,T_=60110,Tm=60112,Ih=60113,w0=60120,Cm=60115,C_=60116,O_=60121,k_=60128,DO=60129,M_=60130,Eb=60131;if(typeof Symbol=="function"&&Symbol.for){var hn=Symbol.for;xh=hn("react.element"),Zu=hn("react.portal"),Lo=hn("react.fragment"),E_=hn("react.strict_mode"),Mh=hn("react.profiler"),A_=hn("react.provider"),T_=hn("react.context"),Tm=hn("react.forward_ref"),Ih=hn("react.suspense"),w0=hn("react.suspense_list"),Cm=hn("react.memo"),C_=hn("react.lazy"),O_=hn("react.block"),hn("react.scope"),k_=hn("react.opaque.id"),DO=hn("react.debug_trace_mode"),M_=hn("react.offscreen"),Eb=hn("react.legacy_hidden")}var BS=typeof Symbol=="function"&&Symbol.iterator;function Hc(e){return e===null||typeof e!="object"?null:(e=BS&&e[BS]||e["@@iterator"],typeof e=="function"?e:null)}var my;function bh(e){if(my===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);my=t&&t[1]||""}return`
27
+ `+my+e}var gy=!1;function fv(e,t){if(!e||gy)return"";gy=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
28
+ `),a=n.stack.split(`
29
+ `),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l])return`
30
+ `+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{gy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?bh(e):""}function J4(e){switch(e.tag){case 5:return bh(e.type);case 16:return bh("Lazy");case 13:return bh("Suspense");case 19:return bh("SuspenseList");case 0:case 2:case 15:return e=fv(e.type,!1),e;case 11:return e=fv(e.type.render,!1),e;case 22:return e=fv(e.type._render,!1),e;case 1:return e=fv(e.type,!0),e;default:return""}}function Ws(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Lo:return"Fragment";case Zu:return"Portal";case Mh:return"Profiler";case E_:return"StrictMode";case Ih:return"Suspense";case w0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T_:return(e.displayName||"Context")+".Consumer";case A_:return(e._context.displayName||"Context")+".Provider";case Tm:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Cm:return Ws(e.type);case O_:return Ws(e._render);case C_:t=e._payload,e=e._init;try{return Ws(e(t))}catch{}}return null}function Ko(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function BO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eN(e){var t=BO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cv(e){e._valueTracker||(e._valueTracker=eN(e))}function $O(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=BO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function _0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ab(e,t){var r=t.checked;return $r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function $S(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ko(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zO(e,t){t=t.checked,t!=null&&S_(e,"checked",t,!1)}function Tb(e,t){zO(e,t);var r=Ko(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Cb(e,t.type,Ko(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Cb(e,t,r){(t!=="number"||_0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function tN(e){var t="";return Am.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Ob(e,t){return e=$r({children:void 0},t),(t=tN(t.children))&&(e.children=t),e}function Hs(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ko(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function kb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dt(91));return $r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function US(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(dt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(dt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ko(r)}}function UO(e,t){var r=Ko(t.value),n=Ko(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function jS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Mb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function jO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ib(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?jO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hv,GO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Mb.svg||"innerHTML"in e)e.innerHTML=t;else{for(hv=hv||document.createElement("div"),hv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Rh={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rN=["Webkit","ms","Moz","O"];Object.keys(Rh).forEach(function(e){rN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rh[t]=Rh[e]})});function WO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Rh.hasOwnProperty(e)&&Rh[e]?(""+t).trim():t+"px"}function HO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=WO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var nN=$r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rb(e,t){if(t){if(nN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function Fb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function I_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pb=null,Vs=null,qs=null;function GS(e){if(e=Ad(e)){if(typeof Pb!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=Fm(t),Pb(e.stateNode,e.type,t))}}function VO(e){Vs?qs?qs.push(e):qs=[e]:Vs=e}function qO(){if(Vs){var e=Vs,t=qs;if(qs=Vs=null,GS(e),t)for(e=0;e<t.length;e++)GS(t[e])}}function R_(e,t){return e(t)}function YO(e,t,r,n,i){return e(t,r,n,i)}function F_(){}var XO=R_,Ku=!1,yy=!1;function P_(){(Vs!==null||qs!==null)&&(F_(),qO())}function iN(e,t,r){if(yy)return e(t,r);yy=!0;try{return XO(e,t,r)}finally{yy=!1,P_()}}function Jh(e,t){var r=e.stateNode;if(r===null)return null;var n=Fm(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(dt(231,t,typeof r));return r}var Nb=!1;if(Ya)try{var Vc={};Object.defineProperty(Vc,"passive",{get:function(){Nb=!0}}),window.addEventListener("test",Vc,Vc),window.removeEventListener("test",Vc,Vc)}catch{Nb=!1}function aN(e,t,r,n,i,a,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Fh=!1,S0=null,E0=!1,Lb=null,oN={onError:function(e){Fh=!0,S0=e}};function uN(e,t,r,n,i,a,o,l,s){Fh=!1,S0=null,aN.apply(oN,arguments)}function lN(e,t,r,n,i,a,o,l,s){if(uN.apply(this,arguments),Fh){if(Fh){var c=S0;Fh=!1,S0=null}else throw Error(dt(198));E0||(E0=!0,Lb=c)}}function _l(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function QO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function WS(e){if(_l(e)!==e)throw Error(dt(188))}function sN(e){var t=e.alternate;if(!t){if(t=_l(e),t===null)throw Error(dt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return WS(i),e;if(a===n)return WS(i),t;a=a.sibling}throw Error(dt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(dt(189))}}if(r.alternate!==n)throw Error(dt(190))}if(r.tag!==3)throw Error(dt(188));return r.stateNode.current===r?e:t}function ZO(e){if(e=sN(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function HS(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var KO,N_,JO,ek,Db=!1,la=[],Wo=null,Ho=null,Vo=null,ed=new Map,td=new Map,qc=[],VS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Bb(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function qS(e,t){switch(e){case"focusin":case"focusout":Wo=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Vo=null;break;case"pointerover":case"pointerout":ed.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":td.delete(t.pointerId)}}function Yc(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=Bb(t,r,n,i,a),t!==null&&(t=Ad(t),t!==null&&N_(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fN(e,t,r,n,i){switch(t){case"focusin":return Wo=Yc(Wo,e,t,r,n,i),!0;case"dragenter":return Ho=Yc(Ho,e,t,r,n,i),!0;case"mouseover":return Vo=Yc(Vo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return ed.set(a,Yc(ed.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,td.set(a,Yc(td.get(a)||null,e,t,r,n,i)),!0}return!1}function cN(e){var t=Ju(e.target);if(t!==null){var r=_l(t);if(r!==null){if(t=r.tag,t===13){if(t=QO(r),t!==null){e.blockedOn=t,ek(e.lanePriority,function(){mn.unstable_runWithPriority(e.priority,function(){JO(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=$_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Ad(r),t!==null&&N_(t),e.blockedOn=r,!1;t.shift()}return!0}function YS(e,t,r){Kv(e)&&r.delete(t)}function hN(){for(Db=!1;0<la.length;){var e=la[0];if(e.blockedOn!==null){e=Ad(e.blockedOn),e!==null&&KO(e);break}for(var t=e.targetContainers;0<t.length;){var r=$_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&la.shift()}Wo!==null&&Kv(Wo)&&(Wo=null),Ho!==null&&Kv(Ho)&&(Ho=null),Vo!==null&&Kv(Vo)&&(Vo=null),ed.forEach(YS),td.forEach(YS)}function Xc(e,t){e.blockedOn===t&&(e.blockedOn=null,Db||(Db=!0,mn.unstable_scheduleCallback(mn.unstable_NormalPriority,hN)))}function tk(e){function t(i){return Xc(i,e)}if(0<la.length){Xc(la[0],e);for(var r=1;r<la.length;r++){var n=la[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Wo!==null&&Xc(Wo,e),Ho!==null&&Xc(Ho,e),Vo!==null&&Xc(Vo,e),ed.forEach(t),td.forEach(t),r=0;r<qc.length;r++)n=qc[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<qc.length&&(r=qc[0],r.blockedOn===null);)cN(r),r.blockedOn===null&&qc.shift()}function dv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Fs={animationend:dv("Animation","AnimationEnd"),animationiteration:dv("Animation","AnimationIteration"),animationstart:dv("Animation","AnimationStart"),transitionend:dv("Transition","TransitionEnd")},xy={},rk={};Ya&&(rk=document.createElement("div").style,"AnimationEvent"in window||(delete Fs.animationend.animation,delete Fs.animationiteration.animation,delete Fs.animationstart.animation),"TransitionEvent"in window||delete Fs.transitionend.transition);function Om(e){if(xy[e])return xy[e];if(!Fs[e])return e;var t=Fs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in rk)return xy[e]=t[r];return e}var nk=Om("animationend"),ik=Om("animationiteration"),ak=Om("animationstart"),ok=Om("transitionend"),uk=new Map,L_=new Map,dN=["abort","abort",nk,"animationEnd",ik,"animationIteration",ak,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",ok,"transitionEnd","waiting","waiting"];function D_(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),L_.set(n,t),uk.set(n,i),bl(i,[n])}}var pN=mn.unstable_now;pN();var Fr=8;function Os(e){if((1&e)!==0)return Fr=15,1;if((2&e)!==0)return Fr=14,2;if((4&e)!==0)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):(e&32)!==0?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):(e&256)!==0?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):(e&4096)!==0?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):(e&134217728)!==0?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):(1073741824&e)!==0?(Fr=1,1073741824):(Fr=8,e))))))}function vN(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function mN(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(dt(358,e))}}function rd(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=Os(s),i=Fr):(l&=a,l!==0&&(n=Os(l),i=Fr))}else a=r&~o,a!==0?(n=Os(a),i=Fr):l!==0&&(n=Os(l),i=Fr);if(n===0)return 0;if(n=31-Jo(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&o)===0){if(Os(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Jo(t),i=1<<r,n|=e[r],t&=~i;return n}function lk(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function A0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=ks(24&~t),e===0?A0(10,t):e;case 10:return e=ks(192&~t),e===0?A0(8,t):e;case 8:return e=ks(3584&~t),e===0&&(e=ks(4186112&~t),e===0&&(e=512)),e;case 2:return t=ks(805306368&~t),t===0&&(t=268435456),t}throw Error(dt(358,e))}function ks(e){return e&-e}function by(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function km(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Jo(t),e[t]=r}var Jo=Math.clz32?Math.clz32:xN,gN=Math.log,yN=Math.LN2;function xN(e){return e===0?32:31-(gN(e)/yN|0)|0}var bN=mn.unstable_UserBlockingPriority,wN=mn.unstable_runWithPriority,Jv=!0;function _N(e,t,r,n){Ku||F_();var i=B_,a=Ku;Ku=!0;try{YO(i,e,t,r,n)}finally{(Ku=a)||P_()}}function SN(e,t,r,n){wN(bN,B_.bind(null,e,t,r,n))}function B_(e,t,r,n){if(Jv){var i;if((i=(t&4)===0)&&0<la.length&&-1<VS.indexOf(e))e=Bb(null,e,t,r,n),la.push(e);else{var a=$_(e,t,r,n);if(a===null)i&&qS(e,n);else{if(i){if(-1<VS.indexOf(e)){e=Bb(a,e,t,r,n),la.push(e);return}if(fN(a,e,t,r,n))return;qS(e,n)}wk(e,t,n,null,r)}}}}function $_(e,t,r,n){var i=I_(n);if(i=Ju(i),i!==null){var a=_l(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=QO(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return wk(e,t,n,i,r),null}var Bo=null,z_=null,e0=null;function sk(){if(e0)return e0;var e,t=z_,r=t.length,n,i="value"in Bo?Bo.value:Bo.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return e0=i.slice(e,1<n?1-n:void 0)}function t0(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pv(){return!0}function XS(){return!1}function ci(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?pv:XS,this.isPropagationStopped=XS,this}return $r(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=pv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=pv)},persist:function(){},isPersistent:pv}),t}var Ef={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},U_=ci(Ef),Ed=$r({},Ef,{view:0,detail:0}),EN=ci(Ed),wy,_y,Qc,Mm=$r({},Ed,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:j_,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qc&&(Qc&&e.type==="mousemove"?(wy=e.screenX-Qc.screenX,_y=e.screenY-Qc.screenY):_y=wy=0,Qc=e),wy)},movementY:function(e){return"movementY"in e?e.movementY:_y}}),QS=ci(Mm),AN=$r({},Mm,{dataTransfer:0}),TN=ci(AN),CN=$r({},Ed,{relatedTarget:0}),Sy=ci(CN),ON=$r({},Ef,{animationName:0,elapsedTime:0,pseudoElement:0}),kN=ci(ON),MN=$r({},Ef,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),IN=ci(MN),RN=$r({},Ef,{data:0}),ZS=ci(RN),FN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},NN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NN[e])?!!t[e]:!1}function j_(){return LN}var DN=$r({},Ed,{key:function(e){if(e.key){var t=FN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=t0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:j_,charCode:function(e){return e.type==="keypress"?t0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?t0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BN=ci(DN),$N=$r({},Mm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KS=ci($N),zN=$r({},Ed,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:j_}),UN=ci(zN),jN=$r({},Ef,{propertyName:0,elapsedTime:0,pseudoElement:0}),GN=ci(jN),WN=$r({},Mm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HN=ci(WN),VN=[9,13,27,32],G_=Ya&&"CompositionEvent"in window,Ph=null;Ya&&"documentMode"in document&&(Ph=document.documentMode);var qN=Ya&&"TextEvent"in window&&!Ph,fk=Ya&&(!G_||Ph&&8<Ph&&11>=Ph),JS=String.fromCharCode(32),eE=!1;function ck(e,t){switch(e){case"keyup":return VN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ps=!1;function YN(e,t){switch(e){case"compositionend":return hk(t);case"keypress":return t.which!==32?null:(eE=!0,JS);case"textInput":return e=t.data,e===JS&&eE?null:e;default:return null}}function XN(e,t){if(Ps)return e==="compositionend"||!G_&&ck(e,t)?(e=sk(),e0=z_=Bo=null,Ps=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fk&&t.locale!=="ko"?null:t.data;default:return null}}var QN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QN[e.type]:t==="textarea"}function dk(e,t,r,n){VO(n),t=T0(t,"onChange"),0<t.length&&(r=new U_("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Nh=null,nd=null;function ZN(e){yk(e,0)}function Im(e){var t=Ls(e);if($O(t))return e}function KN(e,t){if(e==="change")return t}var pk=!1;if(Ya){var Ey;if(Ya){var Ay="oninput"in document;if(!Ay){var rE=document.createElement("div");rE.setAttribute("oninput","return;"),Ay=typeof rE.oninput=="function"}Ey=Ay}else Ey=!1;pk=Ey&&(!document.documentMode||9<document.documentMode)}function nE(){Nh&&(Nh.detachEvent("onpropertychange",vk),nd=Nh=null)}function vk(e){if(e.propertyName==="value"&&Im(nd)){var t=[];if(dk(t,nd,e,I_(e)),e=ZN,Ku)e(t);else{Ku=!0;try{R_(e,t)}finally{Ku=!1,P_()}}}}function JN(e,t,r){e==="focusin"?(nE(),Nh=t,nd=r,Nh.attachEvent("onpropertychange",vk)):e==="focusout"&&nE()}function e6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Im(nd)}function t6(e,t){if(e==="click")return Im(t)}function r6(e,t){if(e==="input"||e==="change")return Im(t)}function n6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _i=typeof Object.is=="function"?Object.is:n6,i6=Object.prototype.hasOwnProperty;function id(e,t){if(_i(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!i6.call(t,r[n])||!_i(e[r[n]],t[r[n]]))return!1;return!0}function iE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function aE(e,t){var r=iE(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=iE(r)}}function mk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oE(){for(var e=window,t=_0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_0(e.document)}return t}function $b(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var a6=Ya&&"documentMode"in document&&11>=document.documentMode,Ns=null,zb=null,Lh=null,Ub=!1;function uE(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ub||Ns==null||Ns!==_0(n)||(n=Ns,"selectionStart"in n&&$b(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Lh&&id(Lh,n)||(Lh=n,n=T0(zb,"onSelect"),0<n.length&&(t=new U_("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ns)))}D_("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);D_("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);D_(dN,2);for(var lE="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ty=0;Ty<lE.length;Ty++)L_.set(lE[Ty],0);uf("onMouseEnter",["mouseout","mouseover"]);uf("onMouseLeave",["mouseout","mouseover"]);uf("onPointerEnter",["pointerout","pointerover"]);uf("onPointerLeave",["pointerout","pointerover"]);bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));bl("onBeforeInput",["compositionend","keypress","textInput","paste"]);bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gk=new Set("cancel close invalid load scroll toggle".split(" ").concat(wh));function sE(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,lN(n,t,void 0,e),e.currentTarget=null}function yk(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;sE(i,l,c),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;sE(i,l,c),a=s}}}if(E0)throw e=Lb,E0=!1,Lb=null,e}function Pr(e,t){var r=Sk(t),n=e+"__bubble";r.has(n)||(bk(t,e,2,!1),r.add(n))}var fE="_reactListening"+Math.random().toString(36).slice(2);function xk(e){e[fE]||(e[fE]=!0,LO.forEach(function(t){gk.has(t)||cE(t,!1,e,null),cE(t,!0,e,null)}))}function cE(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=r;if(e==="selectionchange"&&r.nodeType!==9&&(a=r.ownerDocument),n!==null&&!t&&gk.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=Sk(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),bk(a,e,i,t),o.add(l))}function bk(e,t,r,n){var i=L_.get(t);switch(i===void 0?2:i){case 0:i=_N;break;case 1:i=SN;break;default:i=B_}r=i.bind(null,t,r,e),i=void 0,!Nb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function wk(e,t,r,n,i){var a=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Ju(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}iN(function(){var c=a,d=I_(r),y=[];e:{var g=uk.get(e);if(g!==void 0){var m=U_,E=e;switch(e){case"keypress":if(t0(r)===0)break e;case"keydown":case"keyup":m=BN;break;case"focusin":E="focus",m=Sy;break;case"focusout":E="blur",m=Sy;break;case"beforeblur":case"afterblur":m=Sy;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=QS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=TN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=UN;break;case nk:case ik:case ak:m=kN;break;case ok:m=GN;break;case"scroll":m=EN;break;case"wheel":m=HN;break;case"copy":case"cut":case"paste":m=IN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=KS}var I=(t&4)!==0,b=!I&&e==="scroll",w=I?g!==null?g+"Capture":null:g;I=[];for(var _=c,C;_!==null;){C=_;var T=C.stateNode;if(C.tag===5&&T!==null&&(C=T,w!==null&&(T=Jh(_,w),T!=null&&I.push(ad(_,T,C)))),b)break;_=_.return}0<I.length&&(g=new m(g,E,null,r,d),y.push({event:g,listeners:I}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&(t&16)===0&&(E=r.relatedTarget||r.fromElement)&&(Ju(E)||E[Af]))break e;if((m||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,m?(E=r.relatedTarget||r.toElement,m=c,E=E?Ju(E):null,E!==null&&(b=_l(E),E!==b||E.tag!==5&&E.tag!==6)&&(E=null)):(m=null,E=c),m!==E)){if(I=QS,T="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(I=KS,T="onPointerLeave",w="onPointerEnter",_="pointer"),b=m==null?g:Ls(m),C=E==null?g:Ls(E),g=new I(T,_+"leave",m,r,d),g.target=b,g.relatedTarget=C,T=null,Ju(d)===c&&(I=new I(w,_+"enter",E,r,d),I.target=C,I.relatedTarget=b,T=I),b=T,m&&E)t:{for(I=m,w=E,_=0,C=I;C;C=ys(C))_++;for(C=0,T=w;T;T=ys(T))C++;for(;0<_-C;)I=ys(I),_--;for(;0<C-_;)w=ys(w),C--;for(;_--;){if(I===w||w!==null&&I===w.alternate)break t;I=ys(I),w=ys(w)}I=null}else I=null;m!==null&&hE(y,g,m,I,!1),E!==null&&b!==null&&hE(y,b,E,I,!0)}}e:{if(g=c?Ls(c):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var P=KN;else if(tE(g))if(pk)P=r6;else{P=e6;var D=JN}else(m=g.nodeName)&&m.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(P=t6);if(P&&(P=P(e,c))){dk(y,P,r,d);break e}D&&D(e,g,c),e==="focusout"&&(D=g._wrapperState)&&D.controlled&&g.type==="number"&&Cb(g,"number",g.value)}switch(D=c?Ls(c):window,e){case"focusin":(tE(D)||D.contentEditable==="true")&&(Ns=D,zb=c,Lh=null);break;case"focusout":Lh=zb=Ns=null;break;case"mousedown":Ub=!0;break;case"contextmenu":case"mouseup":case"dragend":Ub=!1,uE(y,r,d);break;case"selectionchange":if(a6)break;case"keydown":case"keyup":uE(y,r,d)}var Y;if(G_)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Ps?ck(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(fk&&r.locale!=="ko"&&(Ps||j!=="onCompositionStart"?j==="onCompositionEnd"&&Ps&&(Y=sk()):(Bo=d,z_="value"in Bo?Bo.value:Bo.textContent,Ps=!0)),D=T0(c,j),0<D.length&&(j=new ZS(j,e,null,r,d),y.push({event:j,listeners:D}),Y?j.data=Y:(Y=hk(r),Y!==null&&(j.data=Y)))),(Y=qN?YN(e,r):XN(e,r))&&(c=T0(c,"onBeforeInput"),0<c.length&&(d=new ZS("onBeforeInput","beforeinput",null,r,d),y.push({event:d,listeners:c}),d.data=Y))}yk(y,t)})}function ad(e,t,r){return{instance:e,listener:t,currentTarget:r}}function T0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Jh(e,r),a!=null&&n.unshift(ad(e,a,i)),a=Jh(e,t),a!=null&&n.push(ad(e,a,i))),e=e.return}return n}function ys(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hE(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&c!==null&&(l=c,i?(s=Jh(r,a),s!=null&&o.unshift(ad(r,s,l))):i||(s=Jh(r,a),s!=null&&o.push(ad(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function C0(){}var Cy=null,Oy=null;function _k(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function jb(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dE=typeof setTimeout=="function"?setTimeout:void 0,o6=typeof clearTimeout=="function"?clearTimeout:void 0;function W_(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Ys(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function pE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ky=0;function u6(e){return{$$typeof:k_,toString:e,valueOf:e}}var Rm=Math.random().toString(36).slice(2),$o="__reactFiber$"+Rm,O0="__reactProps$"+Rm,Af="__reactContainer$"+Rm,vE="__reactEvents$"+Rm;function Ju(e){var t=e[$o];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Af]||r[$o]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=pE(e);e!==null;){if(r=e[$o])return r;e=pE(e)}return t}e=r,r=e.parentNode}return null}function Ad(e){return e=e[$o]||e[Af],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ls(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dt(33))}function Fm(e){return e[O0]||null}function Sk(e){var t=e[vE];return t===void 0&&(t=e[vE]=new Set),t}var Gb=[],Ds=-1;function su(e){return{current:e}}function Nr(e){0>Ds||(e.current=Gb[Ds],Gb[Ds]=null,Ds--)}function Wr(e,t){Ds++,Gb[Ds]=e.current,e.current=t}var eu={},Pn=su(eu),Zn=su(!1),ul=eu;function lf(e,t){var r=e.type.contextTypes;if(!r)return eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Kn(e){return e=e.childContextTypes,e!=null}function k0(){Nr(Zn),Nr(Pn)}function mE(e,t,r){if(Pn.current!==eu)throw Error(dt(168));Wr(Pn,t),Wr(Zn,r)}function Ek(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(dt(108,Ws(t)||"Unknown",i));return $r({},r,n)}function r0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eu,ul=Pn.current,Wr(Pn,e),Wr(Zn,Zn.current),!0}function gE(e,t,r){var n=e.stateNode;if(!n)throw Error(dt(169));r?(e=Ek(e,t,ul),n.__reactInternalMemoizedMergedChildContext=e,Nr(Zn),Nr(Pn),Wr(Pn,e)):Nr(Zn),Wr(Zn,r)}var H_=null,nl=null,l6=mn.unstable_runWithPriority,V_=mn.unstable_scheduleCallback,Wb=mn.unstable_cancelCallback,s6=mn.unstable_shouldYield,yE=mn.unstable_requestPaint,Hb=mn.unstable_now,f6=mn.unstable_getCurrentPriorityLevel,Pm=mn.unstable_ImmediatePriority,Ak=mn.unstable_UserBlockingPriority,Tk=mn.unstable_NormalPriority,Ck=mn.unstable_LowPriority,Ok=mn.unstable_IdlePriority,My={},c6=yE!==void 0?yE:function(){},ja=null,n0=null,Iy=!1,xE=Hb(),Rn=1e4>xE?Hb:function(){return Hb()-xE};function sf(){switch(f6()){case Pm:return 99;case Ak:return 98;case Tk:return 97;case Ck:return 96;case Ok:return 95;default:throw Error(dt(332))}}function kk(e){switch(e){case 99:return Pm;case 98:return Ak;case 97:return Tk;case 96:return Ck;case 95:return Ok;default:throw Error(dt(332))}}function ll(e,t){return e=kk(e),l6(e,t)}function od(e,t,r){return e=kk(e),V_(e,t,r)}function ya(){if(n0!==null){var e=n0;n0=null,Wb(e)}Mk()}function Mk(){if(!Iy&&ja!==null){Iy=!0;var e=0;try{var t=ja;ll(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),ja=null}catch(r){throw ja!==null&&(ja=ja.slice(e+1)),V_(Pm,ya),r}finally{Iy=!1}}}var h6=wl.ReactCurrentBatchConfig;function Gi(e,t){if(e&&e.defaultProps){t=$r({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var M0=su(null),I0=null,Bs=null,R0=null;function q_(){R0=Bs=I0=null}function Y_(e){var t=M0.current;Nr(M0),e.type._context._currentValue=t}function Ik(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function Xs(e,t){I0=e,R0=Bs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Wi=!0),e.firstContext=null)}function Ci(e,t){if(R0!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(R0=e,t=1073741823),t={context:e,observedBits:t,next:null},Bs===null){if(I0===null)throw Error(dt(308));Bs=t,I0.dependencies={lanes:0,firstContext:t,responders:null}}else Bs=Bs.next=t;return e._currentValue}var Ro=!1;function X_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Rk(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yo(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function bE(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ud(e,t,r,n){var i=e.updateQueue;Ro=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,c=s.next;s.next=null,o===null?a=c:o.next=c,o=s;var d=e.alternate;if(d!==null){d=d.updateQueue;var y=d.lastBaseUpdate;y!==o&&(y===null?d.firstBaseUpdate=c:y.next=c,d.lastBaseUpdate=s)}}if(a!==null){y=i.baseState,o=0,d=c=s=null;do{l=a.lane;var g=a.eventTime;if((n&l)===l){d!==null&&(d=d.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,E=a;switch(l=t,g=r,E.tag){case 1:if(m=E.payload,typeof m=="function"){y=m.call(g,y,l);break e}y=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=E.payload,l=typeof m=="function"?m.call(g,y,l):m,l==null)break e;y=$r({},y,l);break e;case 2:Ro=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else g={eventTime:g,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=g,s=y):d=d.next=g,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);d===null&&(s=y),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=d,Cd|=o,e.lanes=o,e.memoizedState=y}}function wE(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(dt(191,i));i.call(n)}}}var Fk=new Am.Component().refs;function F0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:$r({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Nm={isMounted:function(e){return(e=e._reactInternals)?_l(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=fi(),i=Xo(e),a=qo(n,i);a.payload=t,r!=null&&(a.callback=r),Yo(e,a),Qo(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=fi(),i=Xo(e),a=qo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Yo(e,a),Qo(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=fi(),n=Xo(e),i=qo(r,n);i.tag=2,t!=null&&(i.callback=t),Yo(e,i),Qo(e,n,r)}};function _E(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!id(r,n)||!id(i,a):!0}function Pk(e,t,r){var n=!1,i=eu,a=t.contextType;return typeof a=="object"&&a!==null?a=Ci(a):(i=Kn(t)?ul:Pn.current,n=t.contextTypes,a=(n=n!=null)?lf(e,i):eu),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Nm,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function SE(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Nm.enqueueReplaceState(t,t.state,null)}function Vb(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Fk,X_(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ci(a):(a=Kn(t)?ul:Pn.current,i.context=lf(e,a)),ud(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(F0(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Nm.enqueueReplaceState(i,i.state,null),ud(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var vv=Array.isArray;function Zc(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(dt(309));var n=r.stateNode}if(!n)throw Error(dt(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===Fk&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(dt(284));if(!r._owner)throw Error(dt(290,e))}return e}function mv(e,t){if(e.type!=="textarea")throw Error(dt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Nk(e){function t(b,w){if(e){var _=b.lastEffect;_!==null?(_.nextEffect=w,b.lastEffect=w):b.firstEffect=b.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function n(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=ru(b,w),b.index=0,b.sibling=null,b}function a(b,w,_){return b.index=_,e?(_=b.alternate,_!==null?(_=_.index,_<w?(b.flags=2,w):_):(b.flags=2,w)):w}function o(b){return e&&b.alternate===null&&(b.flags=2),b}function l(b,w,_,C){return w===null||w.tag!==6?(w=Ly(_,b.mode,C),w.return=b,w):(w=i(w,_),w.return=b,w)}function s(b,w,_,C){return w!==null&&w.elementType===_.type?(C=i(w,_.props),C.ref=Zc(b,w,_),C.return=b,C):(C=u0(_.type,_.key,_.props,null,b.mode,C),C.ref=Zc(b,w,_),C.return=b,C)}function c(b,w,_,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=Dy(_,b.mode,C),w.return=b,w):(w=i(w,_.children||[]),w.return=b,w)}function d(b,w,_,C,T){return w===null||w.tag!==7?(w=Js(_,b.mode,C,T),w.return=b,w):(w=i(w,_),w.return=b,w)}function y(b,w,_){if(typeof w=="string"||typeof w=="number")return w=Ly(""+w,b.mode,_),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case xh:return _=u0(w.type,w.key,w.props,null,b.mode,_),_.ref=Zc(b,null,w),_.return=b,_;case Zu:return w=Dy(w,b.mode,_),w.return=b,w}if(vv(w)||Hc(w))return w=Js(w,b.mode,_,null),w.return=b,w;mv(b,w)}return null}function g(b,w,_,C){var T=w!==null?w.key:null;if(typeof _=="string"||typeof _=="number")return T!==null?null:l(b,w,""+_,C);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case xh:return _.key===T?_.type===Lo?d(b,w,_.props.children,C,T):s(b,w,_,C):null;case Zu:return _.key===T?c(b,w,_,C):null}if(vv(_)||Hc(_))return T!==null?null:d(b,w,_,C,null);mv(b,_)}return null}function m(b,w,_,C,T){if(typeof C=="string"||typeof C=="number")return b=b.get(_)||null,l(w,b,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case xh:return b=b.get(C.key===null?_:C.key)||null,C.type===Lo?d(w,b,C.props.children,T,C.key):s(w,b,C,T);case Zu:return b=b.get(C.key===null?_:C.key)||null,c(w,b,C,T)}if(vv(C)||Hc(C))return b=b.get(_)||null,d(w,b,C,T,null);mv(w,C)}return null}function E(b,w,_,C){for(var T=null,P=null,D=w,Y=w=0,j=null;D!==null&&Y<_.length;Y++){D.index>Y?(j=D,D=null):j=D.sibling;var re=g(b,D,_[Y],C);if(re===null){D===null&&(D=j);break}e&&D&&re.alternate===null&&t(b,D),w=a(re,w,Y),P===null?T=re:P.sibling=re,P=re,D=j}if(Y===_.length)return r(b,D),T;if(D===null){for(;Y<_.length;Y++)D=y(b,_[Y],C),D!==null&&(w=a(D,w,Y),P===null?T=D:P.sibling=D,P=D);return T}for(D=n(b,D);Y<_.length;Y++)j=m(D,b,Y,_[Y],C),j!==null&&(e&&j.alternate!==null&&D.delete(j.key===null?Y:j.key),w=a(j,w,Y),P===null?T=j:P.sibling=j,P=j);return e&&D.forEach(function(Ee){return t(b,Ee)}),T}function I(b,w,_,C){var T=Hc(_);if(typeof T!="function")throw Error(dt(150));if(_=T.call(_),_==null)throw Error(dt(151));for(var P=T=null,D=w,Y=w=0,j=null,re=_.next();D!==null&&!re.done;Y++,re=_.next()){D.index>Y?(j=D,D=null):j=D.sibling;var Ee=g(b,D,re.value,C);if(Ee===null){D===null&&(D=j);break}e&&D&&Ee.alternate===null&&t(b,D),w=a(Ee,w,Y),P===null?T=Ee:P.sibling=Ee,P=Ee,D=j}if(re.done)return r(b,D),T;if(D===null){for(;!re.done;Y++,re=_.next())re=y(b,re.value,C),re!==null&&(w=a(re,w,Y),P===null?T=re:P.sibling=re,P=re);return T}for(D=n(b,D);!re.done;Y++,re=_.next())re=m(D,b,Y,re.value,C),re!==null&&(e&&re.alternate!==null&&D.delete(re.key===null?Y:re.key),w=a(re,w,Y),P===null?T=re:P.sibling=re,P=re);return e&&D.forEach(function(me){return t(b,me)}),T}return function(b,w,_,C){var T=typeof _=="object"&&_!==null&&_.type===Lo&&_.key===null;T&&(_=_.props.children);var P=typeof _=="object"&&_!==null;if(P)switch(_.$$typeof){case xh:e:{for(P=_.key,T=w;T!==null;){if(T.key===P){switch(T.tag){case 7:if(_.type===Lo){r(b,T.sibling),w=i(T,_.props.children),w.return=b,b=w;break e}break;default:if(T.elementType===_.type){r(b,T.sibling),w=i(T,_.props),w.ref=Zc(b,T,_),w.return=b,b=w;break e}}r(b,T);break}else t(b,T);T=T.sibling}_.type===Lo?(w=Js(_.props.children,b.mode,C,_.key),w.return=b,b=w):(C=u0(_.type,_.key,_.props,null,b.mode,C),C.ref=Zc(b,w,_),C.return=b,b=C)}return o(b);case Zu:e:{for(T=_.key;w!==null;){if(w.key===T)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){r(b,w.sibling),w=i(w,_.children||[]),w.return=b,b=w;break e}else{r(b,w);break}else t(b,w);w=w.sibling}w=Dy(_,b.mode,C),w.return=b,b=w}return o(b)}if(typeof _=="string"||typeof _=="number")return _=""+_,w!==null&&w.tag===6?(r(b,w.sibling),w=i(w,_),w.return=b,b=w):(r(b,w),w=Ly(_,b.mode,C),w.return=b,b=w),o(b);if(vv(_))return E(b,w,_,C);if(Hc(_))return I(b,w,_,C);if(P&&mv(b,_),typeof _>"u"&&!T)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(dt(152,Ws(b.type)||"Component"))}return r(b,w)}}var P0=Nk(!0),Lk=Nk(!1),Td={},ha=su(Td),ld=su(Td),sd=su(Td);function el(e){if(e===Td)throw Error(dt(174));return e}function qb(e,t){switch(Wr(sd,t),Wr(ld,e),Wr(ha,Td),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ib(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ib(t,e)}Nr(ha),Wr(ha,t)}function ff(){Nr(ha),Nr(ld),Nr(sd)}function EE(e){el(sd.current);var t=el(ha.current),r=Ib(t,e.type);t!==r&&(Wr(ld,e),Wr(ha,r))}function Q_(e){ld.current===e&&(Nr(ha),Nr(ld))}var Gr=su(0);function N0(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wa=null,zo=null,da=!1;function Dk(e,t){var r=Si(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function AE(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Yb(e){if(da){var t=zo;if(t){var r=t;if(!AE(e,t)){if(t=Ys(r.nextSibling),!t||!AE(e,t)){e.flags=e.flags&-1025|2,da=!1,Wa=e;return}Dk(Wa,r)}Wa=e,zo=Ys(t.firstChild)}else e.flags=e.flags&-1025|2,da=!1,Wa=e}}function TE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wa=e}function gv(e){if(e!==Wa)return!1;if(!da)return TE(e),da=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!jb(t,e.memoizedProps))for(t=zo;t;)Dk(e,t),t=Ys(t.nextSibling);if(TE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){zo=Ys(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}zo=null}}else zo=Wa?Ys(e.stateNode.nextSibling):null;return!0}function Ry(){zo=Wa=null,da=!1}var Qs=[];function Z_(){for(var e=0;e<Qs.length;e++)Qs[e]._workInProgressVersionPrimary=null;Qs.length=0}var Dh=wl.ReactCurrentDispatcher,Ai=wl.ReactCurrentBatchConfig,fd=0,Yr=null,In=null,Sn=null,L0=!1,Bh=!1;function Yn(){throw Error(dt(321))}function K_(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!_i(e[r],t[r]))return!1;return!0}function J_(e,t,r,n,i,a){if(fd=a,Yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Dh.current=e===null||e.memoizedState===null?p6:v6,e=r(n,i),Bh){a=0;do{if(Bh=!1,!(25>a))throw Error(dt(301));a+=1,Sn=In=null,t.updateQueue=null,Dh.current=m6,e=r(n,i)}while(Bh)}if(Dh.current=z0,t=In!==null&&In.next!==null,fd=0,Sn=In=Yr=null,L0=!1,t)throw Error(dt(300));return e}function tl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?Yr.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function Sl(){if(In===null){var e=Yr.alternate;e=e!==null?e.memoizedState:null}else e=In.next;var t=Sn===null?Yr.memoizedState:Sn.next;if(t!==null)Sn=t,In=e;else{if(e===null)throw Error(dt(310));In=e,e={memoizedState:In.memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},Sn===null?Yr.memoizedState=Sn=e:Sn=Sn.next=e}return Sn}function sa(e,t){return typeof t=="function"?t(e):t}function Kc(e){var t=Sl(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=In,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var c=s.lane;if((fd&c)===c)l!==null&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=d,a=n):l=l.next=d,Yr.lanes|=c,Cd|=c}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,_i(n,t.memoizedState)||(Wi=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Jc(e){var t=Sl(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);_i(a,t.memoizedState)||(Wi=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function CE(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(fd&e)===e)&&(t._workInProgressVersionPrimary=n,Qs.push(t))),e)return r(t._source);throw Qs.push(t),Error(dt(350))}function Bk(e,t,r,n){var i=Un;if(i===null)throw Error(dt(349));var a=t._getVersion,o=a(t._source),l=Dh.current,s=l.useState(function(){return CE(i,t,r)}),c=s[1],d=s[0];s=Sn;var y=e.memoizedState,g=y.refs,m=g.getSnapshot,E=y.source;y=y.subscribe;var I=Yr;return e.memoizedState={refs:g,source:t,subscribe:n},l.useEffect(function(){g.getSnapshot=r,g.setSnapshot=c;var b=a(t._source);if(!_i(o,b)){b=r(t._source),_i(d,b)||(c(b),b=Xo(I),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var w=i.entanglements,_=b;0<_;){var C=31-Jo(_),T=1<<C;w[C]|=b,_&=~T}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var b=g.getSnapshot,w=g.setSnapshot;try{w(b(t._source));var _=Xo(I);i.mutableReadLanes|=_&i.pendingLanes}catch(C){w(function(){throw C})}})},[t,n]),_i(m,r)&&_i(E,t)&&_i(y,n)||(e={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:d},e.dispatch=c=r2.bind(null,Yr,e),s.queue=e,s.baseQueue=null,d=CE(i,t,r),s.memoizedState=s.baseState=d),d}function $k(e,t,r){var n=Sl();return Bk(n,e,t,r)}function eh(e){var t=tl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},e=e.dispatch=r2.bind(null,Yr,e),[t.memoizedState,e]}function D0(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Yr.updateQueue,t===null?(t={lastEffect:null},Yr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function OE(e){var t=tl();return e={current:e},t.memoizedState=e}function B0(){return Sl().memoizedState}function Xb(e,t,r,n){var i=tl();Yr.flags|=e,i.memoizedState=D0(1|t,r,void 0,n===void 0?null:n)}function e2(e,t,r,n){var i=Sl();n=n===void 0?null:n;var a=void 0;if(In!==null){var o=In.memoizedState;if(a=o.destroy,n!==null&&K_(n,o.deps)){D0(t,r,a,n);return}}Yr.flags|=e,i.memoizedState=D0(1|t,r,a,n)}function kE(e,t){return Xb(516,4,e,t)}function $0(e,t){return e2(516,4,e,t)}function zk(e,t){return e2(4,2,e,t)}function Uk(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jk(e,t,r){return r=r!=null?r.concat([e]):null,e2(4,2,Uk.bind(null,t,e),r)}function t2(){}function Gk(e,t){var r=Sl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&K_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Wk(e,t){var r=Sl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&K_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function d6(e,t){var r=sf();ll(98>r?98:r,function(){e(!0)}),ll(97<r?97:r,function(){var n=Ai.transition;Ai.transition=1;try{e(!1),t()}finally{Ai.transition=n}})}function r2(e,t,r){var n=fi(),i=Xo(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Yr||o!==null&&o===Yr)Bh=L0=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,_i(s,l))return}catch{}finally{}Qo(e,i,n)}}var z0={readContext:Ci,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useOpaqueIdentifier:Yn,unstable_isNewReconciler:!1},p6={readContext:Ci,useCallback:function(e,t){return tl().memoizedState=[e,t===void 0?null:t],e},useContext:Ci,useEffect:kE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xb(4,2,Uk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xb(4,2,e,t)},useMemo:function(e,t){var r=tl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=tl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=r2.bind(null,Yr,e),[n.memoizedState,e]},useRef:OE,useState:eh,useDebugValue:t2,useDeferredValue:function(e){var t=eh(e),r=t[0],n=t[1];return kE(function(){var i=Ai.transition;Ai.transition=1;try{n(e)}finally{Ai.transition=i}},[e]),r},useTransition:function(){var e=eh(!1),t=e[0];return e=d6.bind(null,e[1]),OE(e),[e,t]},useMutableSource:function(e,t,r){var n=tl();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},Bk(n,e,t,r)},useOpaqueIdentifier:function(){if(da){var e=!1,t=u6(function(){throw e||(e=!0,r("r:"+(ky++).toString(36))),Error(dt(355))}),r=eh(t)[1];return(Yr.mode&2)===0&&(Yr.flags|=516,D0(5,function(){r("r:"+(ky++).toString(36))},void 0,null)),t}return t="r:"+(ky++).toString(36),eh(t),t},unstable_isNewReconciler:!1},v6={readContext:Ci,useCallback:Gk,useContext:Ci,useEffect:$0,useImperativeHandle:jk,useLayoutEffect:zk,useMemo:Wk,useReducer:Kc,useRef:B0,useState:function(){return Kc(sa)},useDebugValue:t2,useDeferredValue:function(e){var t=Kc(sa),r=t[0],n=t[1];return $0(function(){var i=Ai.transition;Ai.transition=1;try{n(e)}finally{Ai.transition=i}},[e]),r},useTransition:function(){var e=Kc(sa)[0];return[B0().current,e]},useMutableSource:$k,useOpaqueIdentifier:function(){return Kc(sa)[0]},unstable_isNewReconciler:!1},m6={readContext:Ci,useCallback:Gk,useContext:Ci,useEffect:$0,useImperativeHandle:jk,useLayoutEffect:zk,useMemo:Wk,useReducer:Jc,useRef:B0,useState:function(){return Jc(sa)},useDebugValue:t2,useDeferredValue:function(e){var t=Jc(sa),r=t[0],n=t[1];return $0(function(){var i=Ai.transition;Ai.transition=1;try{n(e)}finally{Ai.transition=i}},[e]),r},useTransition:function(){var e=Jc(sa)[0];return[B0().current,e]},useMutableSource:$k,useOpaqueIdentifier:function(){return Jc(sa)[0]},unstable_isNewReconciler:!1},g6=wl.ReactCurrentOwner,Wi=!1;function Xn(e,t,r,n){t.child=e===null?Lk(t,null,r,n):P0(t,e.child,r,n)}function ME(e,t,r,n,i){r=r.render;var a=t.ref;return Xs(t,i),n=J_(e,t,r,n,a,i),e!==null&&!Wi?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ha(e,t,i)):(t.flags|=1,Xn(e,t,n,i),t.child)}function IE(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!l2(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,Hk(e,t,o,n,i,a)):(e=u0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:id,r(i,n)&&e.ref===t.ref)?Ha(e,t,a):(t.flags|=1,e=ru(o,n),e.ref=t.ref,e.return=t,t.child=e)}function Hk(e,t,r,n,i,a){if(e!==null&&id(e.memoizedProps,n)&&e.ref===t.ref)if(Wi=!1,(a&i)!==0)(e.flags&16384)!==0&&(Wi=!0);else return t.lanes=e.lanes,Ha(e,t,a);return Qb(e,t,r,n,a)}function Fy(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},xv(t,r);else if((r&1073741824)!==0)t.memoizedState={baseLanes:0},xv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},xv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,xv(t,n);return Xn(e,t,i,r),t.child}function Vk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function Qb(e,t,r,n,i){var a=Kn(r)?ul:Pn.current;return a=lf(t,a),Xs(t,i),r=J_(e,t,r,n,a,i),e!==null&&!Wi?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ha(e,t,i)):(t.flags|=1,Xn(e,t,r,i),t.child)}function RE(e,t,r,n,i){if(Kn(r)){var a=!0;r0(t)}else a=!1;if(Xs(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Pk(t,r,n),Vb(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ci(c):(c=Kn(r)?ul:Pn.current,c=lf(t,c));var d=r.getDerivedStateFromProps,y=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==c)&&SE(t,o,n,c),Ro=!1;var g=t.memoizedState;o.state=g,ud(t,n,o,i),s=t.memoizedState,l!==n||g!==s||Zn.current||Ro?(typeof d=="function"&&(F0(t,r,d,n),s=t.memoizedState),(l=Ro||_E(t,r,l,n,g,s,c))?(y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,Rk(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Gi(t.type,l),o.props=c,y=t.pendingProps,g=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ci(s):(s=Kn(r)?ul:Pn.current,s=lf(t,s));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==y||g!==s)&&SE(t,o,n,s),Ro=!1,g=t.memoizedState,o.state=g,ud(t,n,o,i);var E=t.memoizedState;l!==y||g!==E||Zn.current||Ro?(typeof m=="function"&&(F0(t,r,m,n),E=t.memoizedState),(c=Ro||_E(t,r,c,n,g,E,s))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,E,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,E,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=E),o.props=n,o.state=E,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),n=!1)}return Zb(e,t,r,n,a,i)}function Zb(e,t,r,n,i,a){Vk(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&gE(t,r,!1),Ha(e,t,a);n=t.stateNode,g6.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=P0(t,e.child,null,a),t.child=P0(t,null,l,a)):Xn(e,t,l,a),t.memoizedState=n.state,i&&gE(t,r,!0),t.child}function FE(e){var t=e.stateNode;t.pendingContext?mE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mE(e,t.context,!1),qb(e,t.containerInfo)}var yv={dehydrated:null,retryLane:0};function PE(e,t,r){var n=t.pendingProps,i=Gr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Wr(Gr,i&1),e===null?(n.fallback!==void 0&&Yb(t),e=n.children,i=n.fallback,a?(e=NE(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=yv,e):typeof n.unstable_expectedLoadTime=="number"?(e=NE(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=yv,t.lanes=33554432,e):(r=s2({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=DE(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=yv,n):(r=LE(e,t,n.children,r),t.memoizedState=null,r):a?(n=DE(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=yv,n):(r=LE(e,t,n.children,r),t.memoizedState=null,r)}function NE(e,t,r,n){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},(i&2)===0&&a!==null?(a.childLanes=0,a.pendingProps=t):a=s2(t,i,0,null),r=Js(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function LE(e,t,r,n){var i=e.child;return e=i.sibling,r=ru(i,{mode:"visible",children:r}),(t.mode&2)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function DE(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return(a&2)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=ru(o,l),e!==null?n=ru(e,n):(n=Js(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function BE(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ik(e.return,t)}function Py(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function $E(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Xn(e,t,n.children,r),n=Gr.current,(n&2)!==0)n=n&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&BE(e,r);else if(e.tag===19)BE(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Wr(Gr,n),(t.mode&2)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&N0(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Py(t,!1,i,r,a,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&N0(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Py(t,!0,r,null,a,t.lastEffect);break;case"together":Py(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ha(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Cd|=t.lanes,(r&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,r=ru(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ru(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var qk,Kb,Yk,Xk;qk=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Kb=function(){};Yk=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,el(ha.current);var a=null;switch(r){case"input":i=Ab(e,i),n=Ab(e,n),a=[];break;case"option":i=Ob(e,i),n=Ob(e,n),a=[];break;case"select":i=$r({},i,{value:void 0}),n=$r({},n,{value:void 0}),a=[];break;case"textarea":i=kb(e,i),n=kb(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=C0)}Rb(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Zh.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var s=n[c];if(l=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Zh.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Pr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===k_?s.toString():(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};Xk=function(e,t,r,n){r!==n&&(t.flags|=4)};function th(e,t){if(!da)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function y6(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Kn(t.type)&&k0(),null;case 3:return ff(),Nr(Zn),Nr(Pn),Z_(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(gv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Kb(t),null;case 5:Q_(t);var i=el(sd.current);if(r=t.type,e!==null&&t.stateNode!=null)Yk(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(dt(166));return null}if(e=el(ha.current),gv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[$o]=t,n[O0]=a,r){case"dialog":Pr("cancel",n),Pr("close",n);break;case"iframe":case"object":case"embed":Pr("load",n);break;case"video":case"audio":for(e=0;e<wh.length;e++)Pr(wh[e],n);break;case"source":Pr("error",n);break;case"img":case"image":case"link":Pr("error",n),Pr("load",n);break;case"details":Pr("toggle",n);break;case"input":$S(n,a),Pr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Pr("invalid",n);break;case"textarea":US(n,a),Pr("invalid",n)}Rb(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):Zh.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Pr("scroll",n));switch(r){case"input":cv(n),zS(n,a,!0);break;case"textarea":cv(n),jS(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=C0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===Mb.html&&(e=jO(r)),e===Mb.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[$o]=t,e[O0]=n,qk(e,t,!1,!1),t.stateNode=e,o=Fb(r,n),r){case"dialog":Pr("cancel",e),Pr("close",e),i=n;break;case"iframe":case"object":case"embed":Pr("load",e),i=n;break;case"video":case"audio":for(i=0;i<wh.length;i++)Pr(wh[i],e);i=n;break;case"source":Pr("error",e),i=n;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=n;break;case"details":Pr("toggle",e),i=n;break;case"input":$S(e,n),i=Ab(e,n),Pr("invalid",e);break;case"option":i=Ob(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=$r({},n,{value:void 0}),Pr("invalid",e);break;case"textarea":US(e,n),i=kb(e,n),Pr("invalid",e);break;default:i=n}Rb(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?HO(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&GO(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Kh(e,s):typeof s=="number"&&Kh(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Zh.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Pr("scroll",e):s!=null&&S_(e,a,s,o))}switch(r){case"input":cv(e),zS(e,n,!1);break;case"textarea":cv(e),jS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ko(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Hs(e,!!n.multiple,a,!1):n.defaultValue!=null&&Hs(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=C0)}_k(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Xk(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(dt(166));r=el(sd.current),el(ha.current),gv(t)?(n=t.stateNode,r=t.memoizedProps,n[$o]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[$o]=t,t.stateNode=n)}return null;case 13:return Nr(Gr),n=t.memoizedState,(t.flags&64)!==0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&gv(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Gr.current&1)!==0?En===0&&(En=3):((En===0||En===3)&&(En=4),Un===null||(Cd&134217727)===0&&(Cf&134217727)===0||Zs(Un,Fn))),(n||r)&&(t.flags|=4),null);case 4:return ff(),Kb(t),e===null&&xk(t.stateNode.containerInfo),null;case 10:return Y_(t),null;case 17:return Kn(t.type)&&k0(),null;case 19:if(Nr(Gr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)th(n,!1);else{if(En!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(o=N0(e),o!==null){for(t.flags|=64,th(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Wr(Gr,Gr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Rn()>iw&&(t.flags|=64,a=!0,th(n,!1),t.lanes=33554432)}else{if(!a)if(e=N0(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),th(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!da)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Rn()-n.renderingStartTime>iw&&r!==1073741824&&(t.flags|=64,a=!0,th(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Rn(),r.sibling=null,t=Gr.current,Wr(Gr,a?t&1|2:t&1),r):null;case 23:case 24:return u2(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(dt(156,t.tag))}function x6(e){switch(e.tag){case 1:Kn(e.type)&&k0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ff(),Nr(Zn),Nr(Pn),Z_(),t=e.flags,(t&64)!==0)throw Error(dt(285));return e.flags=t&-4097|64,e;case 5:return Q_(e),null;case 13:return Nr(Gr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Nr(Gr),null;case 4:return ff(),null;case 10:return Y_(e),null;case 23:case 24:return u2(),null;default:return null}}function n2(e,t){try{var r="",n=t;do r+=J4(n),n=n.return;while(n);var i=r}catch(a){i=`
31
+ Error generating stack: `+a.message+`
32
+ `+a.stack}return{value:e,source:t,stack:i}}function Jb(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var b6=typeof WeakMap=="function"?WeakMap:Map;function Qk(e,t,r){r=qo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){j0||(j0=!0,aw=n),Jb(e,t)},r}function Zk(e,t,r){r=qo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return Jb(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(fa===null?fa=new Set([this]):fa.add(this),Jb(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var w6=typeof WeakSet=="function"?WeakSet:Set;function zE(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Zo(e,r)}else t.current=null}function _6(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Gi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&W_(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(dt(163))}function S6(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,(i&4)!==0&&(i&1)!==0&&(oM(r,e),I6(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Gi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&wE(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}wE(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&_k(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&tk(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(dt(163))}function UE(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=WO("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function jE(e,t){if(nl&&typeof nl.onCommitFiberUnmount=="function")try{nl.onCommitFiberUnmount(H_,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!==0)oM(t,r);else{n=t;try{i()}catch(a){Zo(n,a)}}r=r.next}while(r!==e)}break;case 1:if(zE(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Zo(t,a)}break;case 5:zE(t);break;case 4:Kk(e,t)}}function GE(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function WE(e){return e.tag===5||e.tag===3||e.tag===4}function HE(e){e:{for(var t=e.return;t!==null;){if(WE(t))break e;t=t.return}throw Error(dt(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(dt(161))}r.flags&16&&(Kh(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||WE(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?ew(e,r,t):tw(e,r,t)}function ew(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=C0));else if(n!==4&&(e=e.child,e!==null))for(ew(e,t,r),e=e.sibling;e!==null;)ew(e,t,r),e=e.sibling}function tw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(tw(e,t,r),e=e.sibling;e!==null;)tw(e,t,r),e=e.sibling}function Kk(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(dt(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(jE(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(jE(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Ny(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(r[O0]=n,e==="input"&&n.type==="radio"&&n.name!=null&&zO(r,n),Fb(e,i),t=Fb(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?HO(r,l):o==="dangerouslySetInnerHTML"?GO(r,l):o==="children"?Kh(r,l):S_(r,o,l,t)}switch(e){case"input":Tb(r,n);break;case"textarea":UO(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?Hs(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?Hs(r,!!n.multiple,n.defaultValue,!0):Hs(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(dt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,tk(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(o2=Rn(),UE(t.child,!0)),VE(t);return;case 19:VE(t);return;case 17:return;case 23:case 24:UE(t,t.memoizedState!==null);return}throw Error(dt(163))}function VE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new w6),t.forEach(function(n){var i=P6.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function E6(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var A6=Math.ceil,U0=wl.ReactCurrentDispatcher,i2=wl.ReactCurrentOwner,Jt=0,Un=null,sn=null,Fn=0,sl=0,rw=su(0),En=0,Lm=null,Tf=0,Cd=0,Cf=0,a2=0,nw=null,o2=0,iw=1/0;function Of(){iw=Rn()+500}var Bt=null,j0=!1,aw=null,fa=null,tu=!1,$h=null,_h=90,ow=[],uw=[],qa=null,zh=0,lw=null,i0=-1,Ga=0,a0=0,Uh=null,o0=!1;function fi(){return(Jt&48)!==0?Rn():i0!==-1?i0:i0=Rn()}function Xo(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return sf()===99?1:2;if(Ga===0&&(Ga=Tf),h6.transition!==0){a0!==0&&(a0=nw!==null?nw.pendingLanes:0),e=Ga;var t=4186112&~a0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=sf(),(Jt&4)!==0&&e===98?e=A0(12,Ga):(e=vN(e),e=A0(e,Ga)),e}function Qo(e,t,r){if(50<zh)throw zh=0,lw=null,Error(dt(185));if(e=Dm(e,t),e===null)return null;km(e,t,r),e===Un&&(Cf|=t,En===4&&Zs(e,Fn));var n=sf();t===1?(Jt&8)!==0&&(Jt&48)===0?sw(e):(Oi(e,r),Jt===0&&(Of(),ya())):((Jt&4)===0||n!==98&&n!==99||(qa===null?qa=new Set([e]):qa.add(e)),Oi(e,r)),nw=e}function Dm(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function Oi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Jo(o),s=1<<l,c=a[l];if(c===-1){if((s&n)===0||(s&i)!==0){c=t,Os(s);var d=Fr;a[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);o&=~s}if(n=rd(e,e===Un?Fn:0),t=Fr,n===0)r!==null&&(r!==My&&Wb(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==My&&Wb(r)}t===15?(r=sw.bind(null,e),ja===null?(ja=[r],n0=V_(Pm,Mk)):ja.push(r),r=My):t===14?r=od(99,sw.bind(null,e)):(r=mN(t),r=od(r,Jk.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function Jk(e){if(i0=-1,a0=Ga=0,(Jt&48)!==0)throw Error(dt(327));var t=e.callbackNode;if(fu()&&e.callbackNode!==t)return null;var r=rd(e,e===Un?Fn:0);if(r===0)return null;var n=r,i=Jt;Jt|=16;var a=nM();(Un!==e||Fn!==n)&&(Of(),Ks(e,n));do try{O6();break}catch(l){rM(e,l)}while(1);if(q_(),U0.current=a,Jt=i,sn!==null?n=0:(Un=null,Fn=0,n=En),(Tf&Cf)!==0)Ks(e,0);else if(n!==0){if(n===2&&(Jt|=64,e.hydrate&&(e.hydrate=!1,W_(e.containerInfo)),r=lk(e),r!==0&&(n=Sh(e,r))),n===1)throw t=Lm,Ks(e,0),Zs(e,r),Oi(e,Rn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(dt(345));case 2:Hu(e);break;case 3:if(Zs(e,r),(r&62914560)===r&&(n=o2+500-Rn(),10<n)){if(rd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dE(Hu.bind(null,e),n);break}Hu(e);break;case 4:if(Zs(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Jo(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*A6(r/1960))-r,10<r){e.timeoutHandle=dE(Hu.bind(null,e),r);break}Hu(e);break;case 5:Hu(e);break;default:throw Error(dt(329))}}return Oi(e,Rn()),e.callbackNode===t?Jk.bind(null,e):null}function Zs(e,t){for(t&=~a2,t&=~Cf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Jo(t),n=1<<r;e[r]=-1,t&=~n}}function sw(e){if((Jt&48)!==0)throw Error(dt(327));if(fu(),e===Un&&(e.expiredLanes&Fn)!==0){var t=Fn,r=Sh(e,t);(Tf&Cf)!==0&&(t=rd(e,t),r=Sh(e,t))}else t=rd(e,0),r=Sh(e,t);if(e.tag!==0&&r===2&&(Jt|=64,e.hydrate&&(e.hydrate=!1,W_(e.containerInfo)),t=lk(e),t!==0&&(r=Sh(e,t))),r===1)throw r=Lm,Ks(e,0),Zs(e,t),Oi(e,Rn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hu(e),Oi(e,Rn()),null}function T6(){if(qa!==null){var e=qa;qa=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Oi(t,Rn())})}ya()}function eM(e,t){var r=Jt;Jt|=1;try{return e(t)}finally{Jt=r,Jt===0&&(Of(),ya())}}function tM(e,t){var r=Jt;Jt&=-2,Jt|=8;try{return e(t)}finally{Jt=r,Jt===0&&(Of(),ya())}}function xv(e,t){Wr(rw,sl),sl|=t,Tf|=t}function u2(){sl=rw.current,Nr(rw)}function Ks(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,o6(r)),sn!==null)for(r=sn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&k0();break;case 3:ff(),Nr(Zn),Nr(Pn),Z_();break;case 5:Q_(n);break;case 4:ff();break;case 13:Nr(Gr);break;case 19:Nr(Gr);break;case 10:Y_(n);break;case 23:case 24:u2()}r=r.return}Un=e,sn=ru(e.current,null),Fn=sl=Tf=t,En=0,Lm=null,a2=Cf=Cd=0}function rM(e,t){do{var r=sn;try{if(q_(),Dh.current=z0,L0){for(var n=Yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}L0=!1}if(fd=0,Sn=In=Yr=null,Bh=!1,i2.current=null,r===null||r.return===null){En=1,Lm=t,sn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Fn,l.flags|=2048,l.firstEffect=l.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s;if((l.mode&2)===0){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var y=(Gr.current&1)!==0,g=o;do{var m;if(m=g.tag===13){var E=g.memoizedState;if(E!==null)m=E.dehydrated!==null;else{var I=g.memoizedProps;m=I.fallback===void 0?!1:I.unstable_avoidThisFallback!==!0?!0:!y}}if(m){var b=g.updateQueue;if(b===null){var w=new Set;w.add(c),g.updateQueue=w}else b.add(c);if((g.mode&2)===0){if(g.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var _=qo(-1,1);_.tag=2,Yo(l,_)}l.lanes|=1;break e}s=void 0,l=t;var C=a.pingCache;if(C===null?(C=a.pingCache=new b6,s=new Set,C.set(c,s)):(s=C.get(c),s===void 0&&(s=new Set,C.set(c,s))),!s.has(l)){s.add(l);var T=F6.bind(null,a,c,l);c.then(T,T)}g.flags|=4096,g.lanes=t;break e}g=g.return}while(g!==null);s=Error((Ws(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
33
+
34
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}En!==5&&(En=2),s=n2(s,l),g=o;do{switch(g.tag){case 3:a=s,g.flags|=4096,t&=-t,g.lanes|=t;var P=Qk(g,a,t);bE(g,P);break e;case 1:a=s;var D=g.type,Y=g.stateNode;if((g.flags&64)===0&&(typeof D.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(fa===null||!fa.has(Y)))){g.flags|=4096,t&=-t,g.lanes|=t;var j=Zk(g,a,t);bE(g,j);break e}}g=g.return}while(g!==null)}aM(r)}catch(re){t=re,sn===r&&r!==null&&(sn=r=r.return);continue}break}while(1)}function nM(){var e=U0.current;return U0.current=z0,e===null?z0:e}function Sh(e,t){var r=Jt;Jt|=16;var n=nM();Un===e&&Fn===t||Ks(e,t);do try{C6();break}catch(i){rM(e,i)}while(1);if(q_(),Jt=r,U0.current=n,sn!==null)throw Error(dt(261));return Un=null,Fn=0,En}function C6(){for(;sn!==null;)iM(sn)}function O6(){for(;sn!==null&&!s6();)iM(sn)}function iM(e){var t=uM(e.alternate,e,sl);e.memoizedProps=e.pendingProps,t===null?aM(e):sn=t,i2.current=null}function aM(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=y6(r,t,sl),r!==null){sn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(sl&1073741824)!==0||(r.mode&4)===0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=x6(t),r!==null){r.flags&=2047,sn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){sn=t;return}sn=t=e}while(t!==null);En===0&&(En=5)}function Hu(e){var t=sf();return ll(99,k6.bind(null,e,t)),null}function k6(e,t){do fu();while($h!==null);if((Jt&48)!==0)throw Error(dt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(dt(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-Jo(a),c=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~c}if(qa!==null&&(n&24)===0&&qa.has(e)&&qa.delete(e),e===Un&&(sn=Un=null,Fn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=Jt,Jt|=32,i2.current=null,Cy=Jv,o=oE(),$b(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&c.rangeCount!==0){l=c.anchorNode,a=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var d=0,y=-1,g=-1,m=0,E=0,I=o,b=null;t:for(;;){for(var w;I!==l||a!==0&&I.nodeType!==3||(y=d+a),I!==s||c!==0&&I.nodeType!==3||(g=d+c),I.nodeType===3&&(d+=I.nodeValue.length),(w=I.firstChild)!==null;)b=I,I=w;for(;;){if(I===o)break t;if(b===l&&++m===a&&(y=d),b===s&&++E===c&&(g=d),(w=I.nextSibling)!==null)break;I=b,b=I.parentNode}I=w}l=y===-1||g===-1?null:{start:y,end:g}}else l=null;l=l||{start:0,end:0}}else l=null;Oy={focusedElem:o,selectionRange:l},Jv=!1,Uh=null,o0=!1,Bt=n;do try{M6()}catch(re){if(Bt===null)throw Error(dt(330));Zo(Bt,re),Bt=Bt.nextEffect}while(Bt!==null);Uh=null,Bt=n;do try{for(o=e;Bt!==null;){var _=Bt.flags;if(_&16&&Kh(Bt.stateNode,""),_&128){var C=Bt.alternate;if(C!==null){var T=C.ref;T!==null&&(typeof T=="function"?T(null):T.current=null)}}switch(_&1038){case 2:HE(Bt),Bt.flags&=-3;break;case 6:HE(Bt),Bt.flags&=-3,Ny(Bt.alternate,Bt);break;case 1024:Bt.flags&=-1025;break;case 1028:Bt.flags&=-1025,Ny(Bt.alternate,Bt);break;case 4:Ny(Bt.alternate,Bt);break;case 8:l=Bt,Kk(o,l);var P=l.alternate;GE(l),P!==null&&GE(P)}Bt=Bt.nextEffect}}catch(re){if(Bt===null)throw Error(dt(330));Zo(Bt,re),Bt=Bt.nextEffect}while(Bt!==null);if(T=Oy,C=oE(),_=T.focusedElem,o=T.selectionRange,C!==_&&_&&_.ownerDocument&&mk(_.ownerDocument.documentElement,_)){for(o!==null&&$b(_)&&(C=o.start,T=o.end,T===void 0&&(T=C),"selectionStart"in _?(_.selectionStart=C,_.selectionEnd=Math.min(T,_.value.length)):(T=(C=_.ownerDocument||document)&&C.defaultView||window,T.getSelection&&(T=T.getSelection(),l=_.textContent.length,P=Math.min(o.start,l),o=o.end===void 0?P:Math.min(o.end,l),!T.extend&&P>o&&(l=o,o=P,P=l),l=aE(_,P),a=aE(_,o),l&&a&&(T.rangeCount!==1||T.anchorNode!==l.node||T.anchorOffset!==l.offset||T.focusNode!==a.node||T.focusOffset!==a.offset)&&(C=C.createRange(),C.setStart(l.node,l.offset),T.removeAllRanges(),P>o?(T.addRange(C),T.extend(a.node,a.offset)):(C.setEnd(a.node,a.offset),T.addRange(C)))))),C=[],T=_;T=T.parentNode;)T.nodeType===1&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<C.length;_++)T=C[_],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}Jv=!!Cy,Oy=Cy=null,e.current=r,Bt=n;do try{for(_=e;Bt!==null;){var D=Bt.flags;if(D&36&&S6(_,Bt.alternate,Bt),D&128){C=void 0;var Y=Bt.ref;if(Y!==null){var j=Bt.stateNode;switch(Bt.tag){case 5:C=j;break;default:C=j}typeof Y=="function"?Y(C):Y.current=C}}Bt=Bt.nextEffect}}catch(re){if(Bt===null)throw Error(dt(330));Zo(Bt,re),Bt=Bt.nextEffect}while(Bt!==null);Bt=null,c6(),Jt=i}else e.current=r;if(tu)tu=!1,$h=e,_h=t;else for(Bt=n;Bt!==null;)t=Bt.nextEffect,Bt.nextEffect=null,Bt.flags&8&&(D=Bt,D.sibling=null,D.stateNode=null),Bt=t;if(n=e.pendingLanes,n===0&&(fa=null),n===1?e===lw?zh++:(zh=0,lw=e):zh=0,r=r.stateNode,nl&&typeof nl.onCommitFiberRoot=="function")try{nl.onCommitFiberRoot(H_,r,void 0,(r.current.flags&64)===64)}catch{}if(Oi(e,Rn()),j0)throw j0=!1,e=aw,aw=null,e;return(Jt&8)!==0||ya(),null}function M6(){for(;Bt!==null;){var e=Bt.alternate;o0||Uh===null||((Bt.flags&8)!==0?HS(Bt,Uh)&&(o0=!0):Bt.tag===13&&E6(e,Bt)&&HS(Bt,Uh)&&(o0=!0));var t=Bt.flags;(t&256)!==0&&_6(e,Bt),(t&512)===0||tu||(tu=!0,od(97,function(){return fu(),null})),Bt=Bt.nextEffect}}function fu(){if(_h!==90){var e=97<_h?97:_h;return _h=90,ll(e,R6)}return!1}function I6(e,t){ow.push(t,e),tu||(tu=!0,od(97,function(){return fu(),null}))}function oM(e,t){uw.push(t,e),tu||(tu=!0,od(97,function(){return fu(),null}))}function R6(){if($h===null)return!1;var e=$h;if($h=null,(Jt&48)!==0)throw Error(dt(331));var t=Jt;Jt|=32;var r=uw;uw=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(dt(330));Zo(a,s)}}for(r=ow,ow=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var l=i.create;i.destroy=l()}catch(s){if(a===null)throw Error(dt(330));Zo(a,s)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return Jt=t,ya(),!0}function qE(e,t,r){t=n2(r,t),t=Qk(e,t,1),Yo(e,t),t=fi(),e=Dm(e,1),e!==null&&(km(e,1,t),Oi(e,t))}function Zo(e,t){if(e.tag===3)qE(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){qE(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fa===null||!fa.has(n))){e=n2(t,e);var i=Zk(r,e,1);if(Yo(r,i),i=fi(),r=Dm(r,1),r!==null)km(r,1,i),Oi(r,i);else if(typeof n.componentDidCatch=="function"&&(fa===null||!fa.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function F6(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=fi(),e.pingedLanes|=e.suspendedLanes&r,Un===e&&(Fn&r)===r&&(En===4||En===3&&(Fn&62914560)===Fn&&500>Rn()-o2?Ks(e,0):a2|=r),Oi(e,t)}function P6(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=sf()===99?1:2:(Ga===0&&(Ga=Tf),t=ks(62914560&~Ga),t===0&&(t=4194304))),r=fi(),e=Dm(e,t),e!==null&&(km(e,t,r),Oi(e,r))}var uM;uM=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)Wi=!0;else if((r&n)!==0)Wi=(e.flags&16384)!==0;else{switch(Wi=!1,t.tag){case 3:FE(t),Ry();break;case 5:EE(t);break;case 1:Kn(t.type)&&r0(t);break;case 4:qb(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Wr(M0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?PE(e,t,r):(Wr(Gr,Gr.current&1),t=Ha(e,t,r),t!==null?t.sibling:null);Wr(Gr,Gr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return $E(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wr(Gr,Gr.current),n)break;return null;case 23:case 24:return t.lanes=0,Fy(e,t,r)}return Ha(e,t,r)}else Wi=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=lf(t,Pn.current),Xs(t,r),i=J_(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Kn(n)){var a=!0;r0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,X_(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&F0(t,n,o,e),i.updater=Nm,t.stateNode=i,i._reactInternals=t,Vb(t,n,e,r),t=Zb(null,t,n,!0,a,r)}else t.tag=0,Xn(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=L6(i),e=Gi(i,e),a){case 0:t=Qb(null,t,i,e,r);break e;case 1:t=RE(null,t,i,e,r);break e;case 11:t=ME(null,t,i,e,r);break e;case 14:t=IE(null,t,i,Gi(i.type,e),n,r);break e}throw Error(dt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Gi(n,i),Qb(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Gi(n,i),RE(e,t,n,i,r);case 3:if(FE(t),n=t.updateQueue,e===null||n===null)throw Error(dt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Rk(e,t),ud(t,n,null,r),n=t.memoizedState.element,n===i)Ry(),t=Ha(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(zo=Ys(t.stateNode.containerInfo.firstChild),Wa=t,a=da=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],Qs.push(a);for(r=Lk(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Xn(e,t,n,r),Ry();t=t.child}return t;case 5:return EE(t),e===null&&Yb(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,jb(n,i)?o=null:a!==null&&jb(n,a)&&(t.flags|=16),Vk(e,t),Xn(e,t,o,r),t.child;case 6:return e===null&&Yb(t),null;case 13:return PE(e,t,r);case 4:return qb(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=P0(t,null,n,r):Xn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Gi(n,i),ME(e,t,n,i,r);case 7:return Xn(e,t,t.pendingProps,r),t.child;case 8:return Xn(e,t,t.pendingProps.children,r),t.child;case 12:return Xn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Wr(M0,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=_i(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!Zn.current){t=Ha(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var c=s.firstContext;c!==null;){if(c.context===n&&(c.observedBits&a)!==0){l.tag===1&&(c=qo(-1,r&-r),c.tag=2,Yo(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),Ik(l.return,r),s.lanes|=r;break}c=c.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Xn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,Xs(t,r),i=Ci(i,a.unstable_observedBits),n=n(i),t.flags|=1,Xn(e,t,n,r),t.child;case 14:return i=t.type,a=Gi(i,t.pendingProps),a=Gi(i.type,a),IE(e,t,i,a,n,r);case 15:return Hk(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Gi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Kn(n)?(e=!0,r0(t)):e=!1,Xs(t,r),Pk(t,n,i),Vb(t,n,i,r),Zb(null,t,n,!0,e,r);case 19:return $E(e,t,r);case 23:return Fy(e,t,r);case 24:return Fy(e,t,r)}throw Error(dt(156,t.tag))};function N6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(e,t,r,n){return new N6(e,t,r,n)}function l2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L6(e){if(typeof e=="function")return l2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tm)return 11;if(e===Cm)return 14}return 2}function ru(e,t){var r=e.alternate;return r===null?(r=Si(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function u0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")l2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Lo:return Js(r.children,i,a,t);case DO:o=8,i|=16;break;case E_:o=8,i|=1;break;case Mh:return e=Si(12,r,t,i|8),e.elementType=Mh,e.type=Mh,e.lanes=a,e;case Ih:return e=Si(13,r,t,i),e.type=Ih,e.elementType=Ih,e.lanes=a,e;case w0:return e=Si(19,r,t,i),e.elementType=w0,e.lanes=a,e;case M_:return s2(r,i,a,t);case Eb:return e=Si(24,r,t,i),e.elementType=Eb,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A_:o=10;break e;case T_:o=9;break e;case Tm:o=11;break e;case Cm:o=14;break e;case C_:o=16,n=null;break e;case O_:o=22;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=Si(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Js(e,t,r,n){return e=Si(7,e,n,t),e.lanes=r,e}function s2(e,t,r,n){return e=Si(23,e,n,t),e.elementType=M_,e.lanes=r,e}function Ly(e,t,r){return e=Si(6,e,null,t),e.lanes=r,e}function Dy(e,t,r){return t=Si(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function D6(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=by(0),this.expirationTimes=by(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=by(0),this.mutableSourceEagerHydrationData=null}function B6(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function G0(e,t,r,n){var i=t.current,a=fi(),o=Xo(i);e:if(r){r=r._reactInternals;t:{if(_l(r)!==r||r.tag!==1)throw Error(dt(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Kn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(dt(171))}if(r.tag===1){var s=r.type;if(Kn(s)){r=Ek(r,s,l);break e}}r=l}else r=eu;return t.context===null?t.context=r:t.pendingContext=r,t=qo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Yo(i,t),Qo(i,o,a),o}function By(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function YE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function f2(e,t){YE(e,t),(e=e.alternate)&&YE(e,t)}function $6(){return null}function c2(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new D6(e,t,r!=null&&r.hydrate===!0),t=Si(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,X_(t),e[Af]=r.current,xk(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}c2.prototype.render=function(e){G0(e,this._internalRoot,null,null)};c2.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;G0(null,e,null,function(){t[Af]=null})};function Od(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function z6(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new c2(e,0,t?{hydrate:!0}:void 0)}function Bm(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var c=By(o);l.call(c)}}G0(t,o,e,i)}else{if(a=r._reactRootContainer=z6(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var c=By(o);s.call(c)}}tM(function(){G0(t,o,e,i)})}return By(o)}KO=function(e){if(e.tag===13){var t=fi();Qo(e,4,t),f2(e,4)}};N_=function(e){if(e.tag===13){var t=fi();Qo(e,67108864,t),f2(e,67108864)}};JO=function(e){if(e.tag===13){var t=fi(),r=Xo(e);Qo(e,r,t),f2(e,r)}};ek=function(e,t){return t()};Pb=function(e,t,r){switch(t){case"input":if(Tb(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Fm(n);if(!i)throw Error(dt(90));$O(n),Tb(n,i)}}}break;case"textarea":UO(e,r);break;case"select":t=r.value,t!=null&&Hs(e,!!r.multiple,t,!1)}};R_=eM;YO=function(e,t,r,n,i){var a=Jt;Jt|=4;try{return ll(98,e.bind(null,t,r,n,i))}finally{Jt=a,Jt===0&&(Of(),ya())}};F_=function(){(Jt&49)===0&&(T6(),fu())};XO=function(e,t){var r=Jt;Jt|=2;try{return e(t)}finally{Jt=r,Jt===0&&(Of(),ya())}};function lM(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Od(t))throw Error(dt(200));return B6(e,t,null,r)}var U6={Events:[Ad,Ls,Fm,VO,qO,fu,{current:!1}]},rh={findFiberByHostInstance:Ju,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},j6={bundleType:rh.bundleType,version:rh.version,rendererPackageName:rh.rendererPackageName,rendererConfig:rh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ZO(e),e===null?null:e.stateNode},findFiberByHostInstance:rh.findFiberByHostInstance||$6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bv.isDisabled&&bv.supportsFiber)try{H_=bv.inject(j6),nl=bv}catch{}}ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U6;ki.createPortal=lM;ki.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(dt(188)):Error(dt(268,Object.keys(e)));return e=ZO(t),e=e===null?null:e.stateNode,e};ki.flushSync=function(e,t){var r=Jt;if((r&48)!==0)return e(t);Jt|=1;try{if(e)return ll(99,e.bind(null,t))}finally{Jt=r,ya()}};ki.hydrate=function(e,t,r){if(!Od(t))throw Error(dt(200));return Bm(null,e,t,!0,r)};ki.render=function(e,t,r){if(!Od(t))throw Error(dt(200));return Bm(null,e,t,!1,r)};ki.unmountComponentAtNode=function(e){if(!Od(e))throw Error(dt(40));return e._reactRootContainer?(tM(function(){Bm(null,null,e,!1,function(){e._reactRootContainer=null,e[Af]=null})}),!0):!1};ki.unstable_batchedUpdates=eM;ki.unstable_createPortal=function(e,t){return lM(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};ki.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Od(r))throw Error(dt(200));if(e==null||e._reactInternals===void 0)throw Error(dt(38));return Bm(e,t,r,!1,n)};ki.version="17.0.2";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=ki})(v_);const Eh=p_(v_.exports);var XE=Object.prototype.toString,sM=function(t){var r=XE.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&XE.call(t.callee)==="[object Function]"),n},$y,QE;function G6(){if(QE)return $y;QE=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=sM,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(g){var m=g.constructor;return m&&m.prototype===g},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!c["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{s(window[g])}catch{return!0}}catch{return!0}return!1}(),y=function(g){if(typeof window>"u"||!d)return s(g);try{return s(g)}catch{return!1}};e=function(m){var E=m!==null&&typeof m=="object",I=r.call(m)==="[object Function]",b=n(m),w=E&&r.call(m)==="[object String]",_=[];if(!E&&!I&&!b)throw new TypeError("Object.keys called on a non-object");var C=o&&I;if(w&&m.length>0&&!t.call(m,0))for(var T=0;T<m.length;++T)_.push(String(T));if(b&&m.length>0)for(var P=0;P<m.length;++P)_.push(String(P));else for(var D in m)!(C&&D==="prototype")&&t.call(m,D)&&_.push(String(D));if(a)for(var Y=y(m),j=0;j<l.length;++j)!(Y&&l[j]==="constructor")&&t.call(m,l[j])&&_.push(l[j]);return _}}return $y=e,$y}var W6=Array.prototype.slice,H6=sM,ZE=Object.keys,l0=ZE?function(t){return ZE(t)}:G6(),KE=Object.keys;l0.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return H6(n)?KE(W6.call(n)):KE(n)})}else Object.keys=l0;return Object.keys||l0};var h2=l0,$m=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},V6=$m,cu=function(){return V6()&&!!Symbol.toStringTag},JE=typeof Symbol<"u"&&Symbol,q6=$m,d2=function(){return typeof JE!="function"||typeof Symbol!="function"||typeof JE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:q6()},Y6="Function.prototype.bind called on incompatible ",zy=Array.prototype.slice,X6=Object.prototype.toString,Q6="[object Function]",Z6=function(t){var r=this;if(typeof r!="function"||X6.call(r)!==Q6)throw new TypeError(Y6+r);for(var n=zy.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(zy.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(zy.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},K6=Z6,p2=Function.prototype.bind||K6,J6=p2,e8=J6.call(Function.call,Object.prototype.hasOwnProperty),vr,cd=SyntaxError,fM=Function,ef=TypeError,Uy=function(e){try{return fM('"use strict"; return ('+e+").constructor;")()}catch{}},il=Object.getOwnPropertyDescriptor;if(il)try{il({},"")}catch{il=null}var jy=function(){throw new ef},t8=il?function(){try{return arguments.callee,jy}catch{try{return il(arguments,"callee").get}catch{return jy}}}():jy,xs=d2(),Fo=Object.getPrototypeOf||function(e){return e.__proto__},Ms={},r8=typeof Uint8Array>"u"?vr:Fo(Uint8Array),tf={"%AggregateError%":typeof AggregateError>"u"?vr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?vr:ArrayBuffer,"%ArrayIteratorPrototype%":xs?Fo([][Symbol.iterator]()):vr,"%AsyncFromSyncIteratorPrototype%":vr,"%AsyncFunction%":Ms,"%AsyncGenerator%":Ms,"%AsyncGeneratorFunction%":Ms,"%AsyncIteratorPrototype%":Ms,"%Atomics%":typeof Atomics>"u"?vr:Atomics,"%BigInt%":typeof BigInt>"u"?vr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?vr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?vr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?vr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?vr:FinalizationRegistry,"%Function%":fM,"%GeneratorFunction%":Ms,"%Int8Array%":typeof Int8Array>"u"?vr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?vr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?vr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xs?Fo(Fo([][Symbol.iterator]())):vr,"%JSON%":typeof JSON=="object"?JSON:vr,"%Map%":typeof Map>"u"?vr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xs?vr:Fo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?vr:Promise,"%Proxy%":typeof Proxy>"u"?vr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?vr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?vr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xs?vr:Fo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?vr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xs?Fo(""[Symbol.iterator]()):vr,"%Symbol%":xs?Symbol:vr,"%SyntaxError%":cd,"%ThrowTypeError%":t8,"%TypedArray%":r8,"%TypeError%":ef,"%Uint8Array%":typeof Uint8Array>"u"?vr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?vr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?vr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?vr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?vr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?vr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?vr:WeakSet},n8=function e(t){var r;if(t==="%AsyncFunction%")r=Uy("async function () {}");else if(t==="%GeneratorFunction%")r=Uy("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Uy("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Fo(i.prototype))}return tf[t]=r,r},eA={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zm=p2,W0=e8,i8=zm.call(Function.call,Array.prototype.concat),a8=zm.call(Function.apply,Array.prototype.splice),tA=zm.call(Function.call,String.prototype.replace),H0=zm.call(Function.call,String.prototype.slice),o8=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,u8=/\\(\\)?/g,l8=function(t){var r=H0(t,0,1),n=H0(t,-1);if(r==="%"&&n!=="%")throw new cd("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cd("invalid intrinsic syntax, expected opening `%`");var i=[];return tA(t,o8,function(a,o,l,s){i[i.length]=l?tA(s,u8,"$1"):o||a}),i},s8=function(t,r){var n=t,i;if(W0(eA,n)&&(i=eA[n],n="%"+i[0]+"%"),W0(tf,n)){var a=tf[n];if(a===Ms&&(a=n8(n)),typeof a>"u"&&!r)throw new ef("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new cd("intrinsic "+t+" does not exist!")},El=function(t,r){if(typeof t!="string"||t.length===0)throw new ef("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ef('"allowMissing" argument must be a boolean');var n=l8(t),i=n.length>0?n[0]:"",a=s8("%"+i+"%",r),o=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],a8(n,i8([0,1],c)));for(var d=1,y=!0;d<n.length;d+=1){var g=n[d],m=H0(g,0,1),E=H0(g,-1);if((m==='"'||m==="'"||m==="`"||E==='"'||E==="'"||E==="`")&&m!==E)throw new cd("property names with quotes must have matching quotes");if((g==="constructor"||!y)&&(s=!0),i+="."+g,o="%"+i+"%",W0(tf,o))l=tf[o];else if(l!=null){if(!(g in l)){if(!r)throw new ef("base intrinsic for "+t+" exists, but the property is not available.");return}if(il&&d+1>=n.length){var I=il(l,g);y=!!I,y&&"get"in I&&!("originalValue"in I.get)?l=I.get:l=l[g]}else y=W0(l,g),l=l[g];y&&!s&&(tf[o]=l)}}return l},kd={exports:{}};(function(e){var t=p2,r=El,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(y){var g=a(t,i,arguments);if(o&&l){var m=o(g,"length");m.configurable&&l(g,"length",{value:1+s(0,y.length-(arguments.length-1))})}return g};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(kd);var cM=El,hM=kd.exports,f8=hM(cM("String.prototype.indexOf")),xa=function(t,r){var n=cM(t,!!r);return typeof n=="function"&&f8(t,".prototype.")>-1?hM(n):n},c8=cu(),h8=xa,fw=h8("Object.prototype.toString"),Um=function(t){return c8&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:fw(t)==="[object Arguments]"},dM=function(t){return Um(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&fw(t)!=="[object Array]"&&fw(t.callee)==="[object Function]"},d8=function(){return Um(arguments)}();Um.isLegacyArguments=dM;var pM=d8?Um:dM,p8=h2,v8=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",m8=Object.prototype.toString,g8=Array.prototype.concat,v2=Object.defineProperty,y8=function(e){return typeof e=="function"&&m8.call(e)==="[object Function]"},x8=function(){var e={};try{v2(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch{return!1}},vM=v2&&x8(),b8=function(e,t,r,n){t in e&&(!y8(n)||!n())||(vM?v2(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},mM=function(e,t){var r=arguments.length>2?arguments[2]:{},n=p8(t);v8&&(n=g8.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)b8(e,n[i],t[n[i]],r[n[i]])};mM.supportsDescriptors=!!vM;var Al=mM,rA=function(e){return e!==e},gM=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||rA(t)&&rA(r))},w8=gM,yM=function(){return typeof Object.is=="function"?Object.is:w8},_8=yM,S8=Al,E8=function(){var t=_8();return S8(Object,{is:t},{is:function(){return Object.is!==t}}),t},A8=Al,T8=kd.exports,C8=gM,xM=yM,O8=E8,bM=T8(xM(),Object);A8(bM,{getPolyfill:xM,implementation:C8,shim:O8});var k8=bM,cw=xa,wM=cu(),_M,SM,hw,dw;if(wM){_M=cw("Object.prototype.hasOwnProperty"),SM=cw("RegExp.prototype.exec"),hw={};var Gy=function(){throw hw};dw={toString:Gy,valueOf:Gy},typeof Symbol.toPrimitive=="symbol"&&(dw[Symbol.toPrimitive]=Gy)}var M8=cw("Object.prototype.toString"),I8=Object.getOwnPropertyDescriptor,R8="[object RegExp]",F8=wM?function(t){if(!t||typeof t!="object")return!1;var r=I8(t,"lastIndex"),n=r&&_M(r,"value");if(!n)return!1;try{SM(t,dw)}catch(i){return i===hw}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:M8(t)===R8},P8=Object,N8=TypeError,EM=function(){if(this!=null&&this!==P8(this))throw new N8("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t},L8=EM,D8=Al.supportsDescriptors,B8=Object.getOwnPropertyDescriptor,AM=function(){if(D8&&/a/mig.flags==="gim"){var t=B8(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof/a/.dotAll=="boolean")return t.get}return L8},$8=Al.supportsDescriptors,z8=AM,U8=Object.getOwnPropertyDescriptor,j8=Object.defineProperty,G8=TypeError,nA=Object.getPrototypeOf,W8=/a/,H8=function(){if(!$8||!nA)throw new G8("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=z8(),r=nA(W8),n=U8(r,"flags");return(!n||n.get!==t)&&j8(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},V8=Al,q8=kd.exports,Y8=EM,TM=AM,X8=H8,CM=q8(TM());V8(CM,{getPolyfill:TM,implementation:Y8,shim:X8});var Q8=CM,Z8={}.toString,OM=Array.isArray||function(e){return Z8.call(e)=="[object Array]"},K8=Date.prototype.getDay,J8=function(t){try{return K8.call(t),!0}catch{return!1}},eL=Object.prototype.toString,tL="[object Date]",rL=cu(),nL=function(t){return typeof t!="object"||t===null?!1:rL?J8(t):eL.call(t)===tL},iL=String.prototype.valueOf,aL=function(t){try{return iL.call(t),!0}catch{return!1}},oL=Object.prototype.toString,uL="[object String]",lL=cu(),kM=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:lL?aL(t):oL.call(t)===uL},sL=Number.prototype.toString,fL=function(t){try{return sL.call(t),!0}catch{return!1}},cL=Object.prototype.toString,hL="[object Number]",dL=cu(),pL=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:dL?fL(t):cL.call(t)===hL},MM=xa,vL=MM("Boolean.prototype.toString"),mL=MM("Object.prototype.toString"),gL=function(t){try{return vL(t),!0}catch{return!1}},yL="[object Boolean]",xL=cu(),bL=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:xL&&Symbol.toStringTag in t?gL(t):mL(t)===yL},pw={exports:{}},wL=Object.prototype.toString,_L=d2();if(_L){var SL=Symbol.prototype.toString,EL=/^Symbol\(.*\)$/,AL=function(t){return typeof t.valueOf()!="symbol"?!1:EL.test(SL.call(t))};pw.exports=function(t){if(typeof t=="symbol")return!0;if(wL.call(t)!=="[object Symbol]")return!1;try{return AL(t)}catch{return!1}}}else pw.exports=function(t){return!1};var vw={exports:{}},iA=_r.BigInt,TL=function(){return typeof iA=="function"&&typeof BigInt=="function"&&typeof iA(42)=="bigint"&&typeof BigInt(42)=="bigint"},CL=TL();if(CL){var OL=BigInt.prototype.valueOf,kL=function(t){try{return OL.call(t),!0}catch{}return!1};vw.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:kL(t)}}else vw.exports=function(t){return!1};var ML=kM,IL=pL,RL=bL,FL=pw.exports,PL=vw.exports,NL=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(ML(t))return"String";if(IL(t))return"Number";if(RL(t))return"Boolean";if(FL(t))return"Symbol";if(PL(t))return"BigInt"},m2=typeof Map=="function"&&Map.prototype?Map:null,LL=typeof Set=="function"&&Set.prototype?Set:null,V0;m2||(V0=function(t){return!1});var IM=m2?Map.prototype.has:null,aA=LL?Set.prototype.has:null;!V0&&!IM&&(V0=function(t){return!1});var RM=V0||function(t){if(!t||typeof t!="object")return!1;try{if(IM.call(t),aA)try{aA.call(t)}catch{return!0}return t instanceof m2}catch{}return!1},DL=typeof Map=="function"&&Map.prototype?Map:null,g2=typeof Set=="function"&&Set.prototype?Set:null,q0;g2||(q0=function(t){return!1});var oA=DL?Map.prototype.has:null,FM=g2?Set.prototype.has:null;!q0&&!FM&&(q0=function(t){return!1});var PM=q0||function(t){if(!t||typeof t!="object")return!1;try{if(FM.call(t),oA)try{oA.call(t)}catch{return!0}return t instanceof g2}catch{}return!1},Y0=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,uA=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,X0;Y0||(X0=function(t){return!1});var mw=Y0?Y0.prototype.has:null,Wy=uA?uA.prototype.has:null;!X0&&!mw&&(X0=function(t){return!1});var BL=X0||function(t){if(!t||typeof t!="object")return!1;try{if(mw.call(t,mw),Wy)try{Wy.call(t,Wy)}catch{return!0}return t instanceof Y0}catch{}return!1},gw={exports:{}},$L=El,NM=xa,zL=$L("%WeakSet%",!0),Hy=NM("WeakSet.prototype.has",!0);if(Hy){var Vy=NM("WeakMap.prototype.has",!0);gw.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Hy(t,Hy),Vy)try{Vy(t,Vy)}catch{return!0}return t instanceof zL}catch{}return!1}}else gw.exports=function(t){return!1};var UL=RM,jL=PM,GL=BL,WL=gw.exports,HL=function(t){if(t&&typeof t=="object"){if(UL(t))return"Map";if(jL(t))return"Set";if(GL(t))return"WeakMap";if(WL(t))return"WeakSet"}return!1},s0={exports:{}},lA=pM;if(d2()||$m()){var qy=Symbol.iterator;s0.exports=function(t){if(t!=null&&typeof t[qy]<"u")return t[qy]();if(lA(t))return Array.prototype[qy].call(t)}}else{var VL=OM,qL=kM,sA=El,YL=sA("%Map%",!0),XL=sA("%Set%",!0),ji=xa,fA=ji("Array.prototype.push"),cA=ji("String.prototype.charCodeAt"),QL=ji("String.prototype.slice"),ZL=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=cA(t,r);if(i<55296||i>56319)return r+1;var a=cA(t,r+1);return a<56320||a>57343?r+1:r+2},Yy=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},hA=function(t,r){if(VL(t)||lA(t))return Yy(t);if(qL(t)){var n=0;return{next:function(){var a=ZL(t,n),o=QL(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!YL&&!XL)s0.exports=function(t){if(t!=null)return hA(t,!0)};else{var KL=RM,JL=PM,dA=ji("Map.prototype.forEach",!0),pA=ji("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var vA=ji("Map.prototype.iterator",!0),mA=ji("Set.prototype.iterator",!0),gA=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var yA=ji("Map.prototype.@@iterator",!0)||ji("Map.prototype._es6-shim iterator_",!0),xA=ji("Set.prototype.@@iterator",!0)||ji("Set.prototype._es6-shim iterator_",!0),eD=function(t){if(KL(t)){if(vA)return gA(vA(t));if(yA)return yA(t);if(dA){var r=[];return dA(t,function(i,a){fA(r,[a,i])}),Yy(r)}}if(JL(t)){if(mA)return gA(mA(t));if(xA)return xA(t);if(pA){var n=[];return pA(t,function(i){fA(n,i)}),Yy(n)}}};s0.exports=function(t){return eD(t)||hA(t)}}}const tD={},rD=Object.freeze(Object.defineProperty({__proto__:null,default:tD},Symbol.toStringTag,{value:"Module"})),nD=yl(rD);var y2=typeof Map=="function"&&Map.prototype,Xy=Object.getOwnPropertyDescriptor&&y2?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Q0=y2&&Xy&&typeof Xy.get=="function"?Xy.get:null,iD=y2&&Map.prototype.forEach,x2=typeof Set=="function"&&Set.prototype,Qy=Object.getOwnPropertyDescriptor&&x2?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Z0=x2&&Qy&&typeof Qy.get=="function"?Qy.get:null,aD=x2&&Set.prototype.forEach,oD=typeof WeakMap=="function"&&WeakMap.prototype,jh=oD?WeakMap.prototype.has:null,uD=typeof WeakSet=="function"&&WeakSet.prototype,Gh=uD?WeakSet.prototype.has:null,lD=typeof WeakRef=="function"&&WeakRef.prototype,bA=lD?WeakRef.prototype.deref:null,sD=Boolean.prototype.valueOf,fD=Object.prototype.toString,cD=Function.prototype.toString,hD=String.prototype.match,b2=String.prototype.slice,Uo=String.prototype.replace,dD=String.prototype.toUpperCase,wA=String.prototype.toLowerCase,LM=RegExp.prototype.test,_A=Array.prototype.concat,ia=Array.prototype.join,pD=Array.prototype.slice,SA=Math.floor,yw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Zy=Object.getOwnPropertySymbols,xw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,cf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Nn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===cf?"object":"symbol")?Symbol.toStringTag:null,DM=Object.prototype.propertyIsEnumerable,EA=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function AA(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||LM.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-SA(-e):SA(e);if(n!==e){var i=String(n),a=b2.call(t,i.length+1);return Uo.call(i,r,"$&_")+"."+Uo.call(Uo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Uo.call(t,r,"$&_")}var Ky=nD.custom,Jy=Ky&&$M(Ky)?Ky:null,vD=function e(t,r,n,i){var a=r||{};if(Po(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Po(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Po(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Po(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Po(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return UM(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?AA(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?AA(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return bw(t)?"[Array]":"[Object]";var y=PD(a,n);if(typeof i>"u")i=[];else if(zM(i,t)>=0)return"[Circular]";function g(Pe,Le,ut){if(Le&&(i=pD.call(i),i.push(Le)),ut){var nt={depth:a.depth};return Po(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(Pe,nt,n+1,i)}return e(Pe,a,n+1,i)}if(typeof t=="function"){var m=AD(t),E=wv(t,g);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(E.length>0?" { "+ia.call(E,", ")+" }":"")}if($M(t)){var I=cf?Uo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):xw.call(t);return typeof t=="object"&&!cf?nh(I):I}if(ID(t)){for(var b="<"+wA.call(String(t.nodeName)),w=t.attributes||[],_=0;_<w.length;_++)b+=" "+w[_].name+"="+BM(mD(w[_].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+wA.call(String(t.nodeName))+">",b}if(bw(t)){if(t.length===0)return"[]";var C=wv(t,g);return y&&!FD(C)?"["+ww(C,y)+"]":"[ "+ia.call(C,", ")+" ]"}if(xD(t)){var T=wv(t,g);return"cause"in t&&!DM.call(t,"cause")?"{ ["+String(t)+"] "+ia.call(_A.call("[cause]: "+g(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ia.call(T,", ")+" }"}if(typeof t=="object"&&o){if(Jy&&typeof t[Jy]=="function")return t[Jy]();if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(TD(t)){var P=[];return iD.call(t,function(Pe,Le){P.push(g(Le,t,!0)+" => "+g(Pe,t))}),TA("Map",Q0.call(t),P,y)}if(kD(t)){var D=[];return aD.call(t,function(Pe){D.push(g(Pe,t))}),TA("Set",Z0.call(t),D,y)}if(CD(t))return e1("WeakMap");if(MD(t))return e1("WeakSet");if(OD(t))return e1("WeakRef");if(wD(t))return nh(g(Number(t)));if(SD(t))return nh(g(yw.call(t)));if(_D(t))return nh(sD.call(t));if(bD(t))return nh(g(String(t)));if(!gD(t)&&!yD(t)){var Y=wv(t,g),j=EA?EA(t)===Object.prototype:t instanceof Object||t.constructor===Object,re=t instanceof Object?"":"null prototype",Ee=!j&&Nn&&Object(t)===t&&Nn in t?b2.call(hu(t),8,-1):re?"Object":"",me=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ke=me+(Ee||re?"["+ia.call(_A.call([],Ee||[],re||[]),": ")+"] ":"");return Y.length===0?ke+"{}":y?ke+"{"+ww(Y,y)+"}":ke+"{ "+ia.call(Y,", ")+" }"}return String(t)};function BM(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function mD(e){return Uo.call(String(e),/"/g,"&quot;")}function bw(e){return hu(e)==="[object Array]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function gD(e){return hu(e)==="[object Date]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function yD(e){return hu(e)==="[object RegExp]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function xD(e){return hu(e)==="[object Error]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function bD(e){return hu(e)==="[object String]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function wD(e){return hu(e)==="[object Number]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function _D(e){return hu(e)==="[object Boolean]"&&(!Nn||!(typeof e=="object"&&Nn in e))}function $M(e){if(cf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!xw)return!1;try{return xw.call(e),!0}catch{}return!1}function SD(e){if(!e||typeof e!="object"||!yw)return!1;try{return yw.call(e),!0}catch{}return!1}var ED=Object.prototype.hasOwnProperty||function(e){return e in this};function Po(e,t){return ED.call(e,t)}function hu(e){return fD.call(e)}function AD(e){if(e.name)return e.name;var t=hD.call(cD.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function zM(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function TD(e){if(!Q0||!e||typeof e!="object")return!1;try{Q0.call(e);try{Z0.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function CD(e){if(!jh||!e||typeof e!="object")return!1;try{jh.call(e,jh);try{Gh.call(e,Gh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function OD(e){if(!bA||!e||typeof e!="object")return!1;try{return bA.call(e),!0}catch{}return!1}function kD(e){if(!Z0||!e||typeof e!="object")return!1;try{Z0.call(e);try{Q0.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function MD(e){if(!Gh||!e||typeof e!="object")return!1;try{Gh.call(e,Gh);try{jh.call(e,jh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ID(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function UM(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return UM(b2.call(e,0,t.maxStringLength),t)+n}var i=Uo.call(Uo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,RD);return BM(i,"single",t)}function RD(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+dD.call(t.toString(16))}function nh(e){return"Object("+e+")"}function e1(e){return e+" { ? }"}function TA(e,t,r,n){var i=n?ww(r,n):ia.call(r,", ");return e+" ("+t+") {"+i+"}"}function FD(e){for(var t=0;t<e.length;t++)if(zM(e[t],`
35
+ `)>=0)return!1;return!0}function PD(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ia.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ia.call(Array(t+1),r)}}function ww(e,t){if(e.length===0)return"";var r=`
36
+ `+t.prev+t.base;return r+ia.call(e,","+r)+`
37
+ `+t.prev}function wv(e,t){var r=bw(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Po(e,i)?t(e[i],e):""}var a=typeof Zy=="function"?Zy(e):[],o;if(cf){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)!Po(e,s)||r&&String(Number(s))===s&&s<e.length||cf&&o["$"+s]instanceof Symbol||(LM.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e)));if(typeof Zy=="function")for(var c=0;c<a.length;c++)DM.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var w2=El,kf=xa,ND=vD,LD=w2("%TypeError%"),_v=w2("%WeakMap%",!0),Sv=w2("%Map%",!0),DD=kf("WeakMap.prototype.get",!0),BD=kf("WeakMap.prototype.set",!0),$D=kf("WeakMap.prototype.has",!0),zD=kf("Map.prototype.get",!0),UD=kf("Map.prototype.set",!0),jD=kf("Map.prototype.has",!0),_2=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},GD=function(e,t){var r=_2(e,t);return r&&r.value},WD=function(e,t,r){var n=_2(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},HD=function(e,t){return!!_2(e,t)},VD=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new LD("Side channel does not contain "+ND(a))},get:function(a){if(_v&&a&&(typeof a=="object"||typeof a=="function")){if(t)return DD(t,a)}else if(Sv){if(r)return zD(r,a)}else if(n)return GD(n,a)},has:function(a){if(_v&&a&&(typeof a=="object"||typeof a=="function")){if(t)return $D(t,a)}else if(Sv){if(r)return jD(r,a)}else if(n)return HD(n,a);return!1},set:function(a,o){_v&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new _v),BD(t,a,o)):Sv?(r||(r=new Sv),UD(r,a,o)):(n||(n={key:{},next:null}),WD(n,a,o))}};return i},qD=Object.prototype.hasOwnProperty,YD=Object.prototype.toString,jM=function(t,r,n){if(YD.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)qD.call(t,o)&&r.call(n,t[o],o,t)},t1=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],XD=typeof globalThis>"u"?_r:globalThis,GM=function(){for(var t=[],r=0;r<t1.length;r++)typeof XD[t1[r]]=="function"&&(t[t.length]=t1[r]);return t},r1,CA;function WM(){if(CA)return r1;CA=1;var e=El,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return r1=t,r1}var n1,OA;function QD(){if(OA)return n1;OA=1;var e=jM,t=GM,r=xa,n=r("Object.prototype.toString"),i=cu(),a=typeof globalThis>"u"?_r:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(E,I){for(var b=0;b<E.length;b+=1)if(E[b]===I)return b;return-1},s=r("String.prototype.slice"),c={},d=WM(),y=Object.getPrototypeOf;i&&d&&y&&e(o,function(m){var E=new a[m];if(Symbol.toStringTag in E){var I=y(E),b=d(I,Symbol.toStringTag);if(!b){var w=y(I);b=d(w,Symbol.toStringTag)}c[m]=b.get}});var g=function(E){var I=!1;return e(c,function(b,w){if(!I)try{I=b.call(E)===w}catch{}}),I};return n1=function(E){if(!E||typeof E!="object")return!1;if(!i||!(Symbol.toStringTag in E)){var I=s(n(E),8,-1);return l(o,I)>-1}return d?g(E):!1},n1}var HM=jM,ZD=GM,VM=xa,KD=VM("Object.prototype.toString"),qM=cu(),kA=typeof globalThis>"u"?_r:globalThis,JD=ZD(),eB=VM("String.prototype.slice"),YM={},i1=WM(),a1=Object.getPrototypeOf;qM&&i1&&a1&&HM(JD,function(e){if(typeof kA[e]=="function"){var t=new kA[e];if(Symbol.toStringTag in t){var r=a1(t),n=i1(r,Symbol.toStringTag);if(!n){var i=a1(r);n=i1(i,Symbol.toStringTag)}YM[e]=n.get}}});var tB=function(t){var r=!1;return HM(YM,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},rB=QD(),nB=function(t){return rB(t)?!qM||!(Symbol.toStringTag in t)?eB(KD(t),8,-1):tB(t):!1},iB=h2,aB=function(e){return typeof e<"u"&&e!==null},XM=$m(),QM=xa,MA=Object,oB=QM("Array.prototype.push"),IA=QM("Object.prototype.propertyIsEnumerable"),uB=XM?Object.getOwnPropertySymbols:null,ZM=function(t,r){if(!aB(t))throw new TypeError("target must be an object");var n=MA(t),i,a,o,l,s,c,d;for(i=1;i<arguments.length;++i){a=MA(arguments[i]),l=iB(a);var y=XM&&(Object.getOwnPropertySymbols||uB);if(y)for(s=y(a),o=0;o<s.length;++o)d=s[o],IA(a,d)&&oB(l,d);for(o=0;o<l.length;++o)d=l[o],c=a[d],IA(a,d)&&(n[d]=c)}return n},o1=ZM,lB=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},sB=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},KM=function(){return!Object.assign||lB()||sB()?o1:Object.assign},fB=Al,cB=KM,hB=function(){var t=cB();return fB(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},dB=Al,pB=kd.exports,vB=ZM,JM=KM,mB=hB,gB=pB.apply(JM()),eI=function(t,r){return gB(Object,arguments)};dB(eI,{getPolyfill:JM,implementation:vB,shim:mB});var yB=eI,RA=h2,FA=pM,PA=k8,NA=F8,LA=Q8,DA=OM,BA=nL,$A=NL,xB=El,eo=xa,zA=HL,hf=s0.exports,bB=VD,UA=nB,tI=yB,jA=eo("Date.prototype.getTime"),u1=Object.getPrototypeOf,GA=eo("Object.prototype.toString"),K0=xB("%Set%",!0),_w=eo("Map.prototype.has",!0),J0=eo("Map.prototype.get",!0),WA=eo("Map.prototype.size",!0),em=eo("Set.prototype.add",!0),rI=eo("Set.prototype.delete",!0),tm=eo("Set.prototype.has",!0),f0=eo("Set.prototype.size",!0);function HA(e,t,r,n){for(var i=hf(e),a;(a=i.next())&&!a.done;)if(Xa(t,a.value,r,n))return rI(e,a.value),!0;return!1}function nI(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function wB(e,t,r,n,i,a){var o=nI(r);if(o!=null)return o;var l=J0(t,o),s=tI({},i,{strict:!1});return typeof l>"u"&&!_w(t,o)||!Xa(n,l,s,a)?!1:!_w(e,o)&&Xa(n,l,s,a)}function _B(e,t,r){var n=nI(r);return n!=null?n:tm(t,n)&&!tm(e,n)}function VA(e,t,r,n,i,a){for(var o=hf(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,Xa(r,s,i,a)&&Xa(n,J0(t,s),i,a))return rI(e,s),!0;return!1}function Xa(e,t,r,n){var i=r||{};if(i.strict?PA(e,t):e===t)return!0;var a=$A(e),o=$A(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?PA(e,t):e==t;var l=n.has(e),s=n.has(t),c;if(l&&s){if(n.get(e)===n.get(t))return!0}else c={};return l||n.set(e,c),s||n.set(t,c),AB(e,t,i,n)}function qA(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function SB(e,t,r,n){if(f0(e)!==f0(t))return!1;for(var i=hf(e),a=hf(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new K0),em(s,o.value);else if(!tm(t,o.value)){if(r.strict||!_B(e,t,o.value))return!1;s||(s=new K0),em(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!HA(s,l.value,r.strict,n))return!1}else if(!r.strict&&!tm(e,l.value)&&!HA(s,l.value,r.strict,n))return!1;return f0(s)===0}return!0}function EB(e,t,r,n){if(WA(e)!==WA(t))return!1;for(var i=hf(e),a=hf(t),o,l,s,c,d,y;(o=i.next())&&!o.done;)if(c=o.value[0],d=o.value[1],c&&typeof c=="object")s||(s=new K0),em(s,c);else if(y=J0(t,c),typeof y>"u"&&!_w(t,c)||!Xa(d,y,r,n)){if(r.strict||!wB(e,t,c,d,r,n))return!1;s||(s=new K0),em(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],y=l.value[1],c&&typeof c=="object"){if(!VA(s,e,c,y,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Xa(J0(e,c),y,r,n))&&!VA(s,e,c,y,tI({},r,{strict:!1}),n))return!1;return f0(s)===0}return!0}function AB(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||GA(e)!==GA(t)||FA(e)!==FA(t))return!1;var o=DA(e),l=DA(t);if(o!==l)return!1;var s=e instanceof Error,c=t instanceof Error;if(s!==c||(s||c)&&(e.name!==t.name||e.message!==t.message))return!1;var d=NA(e),y=NA(t);if(d!==y||(d||y)&&(e.source!==t.source||LA(e)!==LA(t)))return!1;var g=BA(e),m=BA(t);if(g!==m||(g||m)&&jA(e)!==jA(t)||r.strict&&u1&&u1(e)!==u1(t)||UA(e)!==UA(t))return!1;var E=qA(e),I=qA(t);if(E!==I)return!1;if(E||I){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var b=RA(e),w=RA(t);if(b.length!==w.length)return!1;for(b.sort(),w.sort(),i=b.length-1;i>=0;i--)if(b[i]!=w[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Xa(e[a],t[a],r,n))return!1;var _=zA(e),C=zA(t);return _!==C?!1:_==="Set"||C==="Set"?SB(e,t,r,n):_==="Map"?EB(e,t,r,n):!0}var yte=function(t,r,n){return Xa(t,r,n,bB())},YA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function TB(e,t){return!!(e===t||YA(e)&&YA(t))}function CB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!TB(e[r],t[r]))return!1;return!0}function Kr(e,t){t===void 0&&(t=CB);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var hr={exports:{}},OB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kB=OB,MB=kB;function iI(){}function aI(){}aI.resetWarningCache=iI;var IB=function(){function e(n,i,a,o,l,s){if(s!==MB){var c=new Error("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");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:aI,resetWarningCache:iI};return r.PropTypes=r,r};hr.exports=IB();function S2(e,t,...r){if(!e)throw new TypeError(oI(t,r))}function oI(e,t){let r=0;return e.replace(/%[os]/gu,()=>uI(t[r++]))}function uI(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let RB;function FB(e){try{const t=e instanceof Error?e:new Error(uI(e));if(typeof dispatchEvent=="function"&&typeof ErrorEvent=="function")dispatchEvent(new ErrorEvent("error",{error:t,message:t.message}));else if(typeof process<"u"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)}catch{}}const Vi=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let PB;class to{constructor(t,r){this.code=t,this.message=r}warn(...t){var r;try{const n=((r=new Error().stack)!==null&&r!==void 0?r:"").replace(/^(?:.+?\n){2}/gu,`
38
+ `);console.warn(this.message,...t,n)}catch{}}}const NB=new to("W01","Unable to initialize event under dispatching."),LB=new to("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),DB=new to("W03","Assigning any truthy value to 'returnValue' property has no effect."),BB=new to("W04","Unable to preventDefault on non-cancelable events."),$B=new to("W05","Unable to preventDefault inside passive event listener invocation."),zB=new to("W06","An event listener wasn't added because it has been added already: %o, %o"),l1=new to("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),XA=new to("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");new to("W09","Event attribute handler must be a function: %o");class ro{static get NONE(){return QA}static get CAPTURING_PHASE(){return ZA}static get AT_TARGET(){return KA}static get BUBBLING_PHASE(){return JA}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r!=null?r:{};Sw.set(this,{type:String(t),bubbles:Boolean(n.bubbles),cancelable:Boolean(n.cancelable),composed:Boolean(n.composed),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}get type(){return Zr(this).type}get target(){return Zr(this).target}get srcElement(){return Zr(this).target}get currentTarget(){return Zr(this).currentTarget}composedPath(){const t=Zr(this).currentTarget;return t?[t]:[]}get NONE(){return QA}get CAPTURING_PHASE(){return ZA}get AT_TARGET(){return KA}get BUBBLING_PHASE(){return JA}get eventPhase(){return Zr(this).dispatchFlag?2:0}stopPropagation(){Zr(this).stopPropagationFlag=!0}get cancelBubble(){return Zr(this).stopPropagationFlag}set cancelBubble(t){t?Zr(this).stopPropagationFlag=!0:LB.warn()}stopImmediatePropagation(){const t=Zr(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return Zr(this).bubbles}get cancelable(){return Zr(this).cancelable}get returnValue(){return!Zr(this).canceledFlag}set returnValue(t){t?DB.warn():e3(Zr(this))}preventDefault(){e3(Zr(this))}get defaultPrevented(){return Zr(this).canceledFlag}get composed(){return Zr(this).composed}get isTrusted(){return!1}get timeStamp(){return Zr(this).timeStamp}initEvent(t,r=!1,n=!1){const i=Zr(this);if(i.dispatchFlag){NB.warn();return}Sw.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const QA=0,ZA=1,KA=2,JA=3,Sw=new WeakMap;function Zr(e,t="this"){const r=Sw.get(e);return S2(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function e3(e){if(e.inPassiveListenerFlag){$B.warn();return}if(!e.cancelable){BB.warn();return}e.canceledFlag=!0}Object.defineProperty(ro,"NONE",{enumerable:!0});Object.defineProperty(ro,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(ro,"AT_TARGET",{enumerable:!0});Object.defineProperty(ro,"BUBBLING_PHASE",{enumerable:!0});const s1=Object.getOwnPropertyNames(ro.prototype);for(let e=0;e<s1.length;++e)s1[e]!=="constructor"&&Object.defineProperty(ro.prototype,s1[e],{enumerable:!0});typeof Vi<"u"&&typeof Vi.Event<"u"&&Object.setPrototypeOf(ro.prototype,Vi.Event.prototype);function UB(e){return Vi.DOMException?new Vi.DOMException(e,"InvalidStateError"):(bs==null&&(bs=class lI extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,lI)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(bs.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),r3(bs),r3(bs.prototype)),new bs(e))}let bs;const t3={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function r3(e){const t=Object.keys(t3);for(let r=0;r<t.length;++r){const n=t[r],i=t3[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class jm extends ro{static wrap(t){return new(fI(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),sI.set(this,{original:t});const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];i in this||Object.defineProperty(this,i,cI(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=No(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=No(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=No(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=No(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=No(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=No(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const sI=new WeakMap;function No(e){const t=sI.get(e);return S2(t!=null,"'this' is expected an Event object, but got",e),t}const rm=new WeakMap;rm.set(Object.prototype,jm);typeof Vi<"u"&&typeof Vi.Event<"u"&&rm.set(Vi.Event.prototype,jm);function fI(e){const t=Object.getPrototypeOf(e);if(t==null)return jm;let r=rm.get(t);return r==null&&(r=jB(fI(t),t),rm.set(t,r)),r}function jB(e,t){class r extends e{}const n=Object.keys(t);for(let i=0;i<n.length;++i)Object.defineProperty(r.prototype,n[i],cI(t,n[i]));return r}function cI(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=No(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=No(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function GB(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function WB(e){e.flags|=8}function hI(e){return(e.flags&1)===1}function dI(e){return(e.flags&2)===2}function pI(e){return(e.flags&4)===4}function HB(e){return(e.flags&8)===8}function VB({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){FB(n)}}function vI({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&hI(e[n])===r)return n;return-1}function qB(e,t,r,n,i,a){let o;a&&(o=mI.bind(null,e,t,r),a.addEventListener("abort",o));const l=GB(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function mI(e,t,r){const n=vI(e,t,r);return n!==-1?gI(e,n):!1}function gI(e,t,r=!1){const n=e.listeners[t];return WB(n),n.signal&&n.signal.removeEventListener("abort",n.signalListener),e.cow&&!r?(e.cow=!1,e.listeners=e.listeners.filter((i,a)=>a!==t),!1):(e.listeners.splice(t,1),!0)}function YB(){return Object.create(null)}function XB(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e[t]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}class E2{constructor(){yI.set(this,YB())}addEventListener(t,r,n){const i=f1(this),{callback:a,capture:o,once:l,passive:s,signal:c,type:d}=QB(t,r,n);if(a==null||(c==null?void 0:c.aborted))return;const y=XB(i,d),g=vI(y,a,o);if(g!==-1){KB(y.listeners[g],s,l,c);return}qB(y,a,o,s,l,c)}removeEventListener(t,r,n){const i=f1(this),{callback:a,capture:o,type:l}=ZB(t,r,n),s=i[l];a!=null&&s&&mI(s,a,o)}dispatchEvent(t){const r=f1(this)[String(t.type)];if(r==null)return!0;const n=t instanceof ro?t:jm.wrap(t),i=Zr(n,"event");if(i.dispatchFlag)throw UB("This event has been in dispatching.");if(i.dispatchFlag=!0,i.target=i.currentTarget=this,!i.stopPropagationFlag){const{cow:a,listeners:o}=r;r.cow=!0;for(let l=0;l<o.length;++l){const s=o[l];if(!HB(s)&&(pI(s)&&gI(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=dI(s),VB(s,this,n),i.inPassiveListenerFlag=!1,i.stopImmediatePropagationFlag))break}a||(r.cow=!1)}return i.target=null,i.currentTarget=null,i.stopImmediatePropagationFlag=!1,i.stopPropagationFlag=!1,i.dispatchFlag=!1,!i.canceledFlag}}const yI=new WeakMap;function f1(e,t="this"){const r=yI.get(e);return S2(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function QB(e,t,r){var n;return xI(t),typeof r=="object"&&r!==null?{type:String(e),callback:t!=null?t:void 0,capture:Boolean(r.capture),passive:Boolean(r.passive),once:Boolean(r.once),signal:(n=r.signal)!==null&&n!==void 0?n:void 0}:{type:String(e),callback:t!=null?t:void 0,capture:Boolean(r),passive:!1,once:!1,signal:void 0}}function ZB(e,t,r){return xI(t),typeof r=="object"&&r!==null?{type:String(e),callback:t!=null?t:void 0,capture:Boolean(r.capture)}:{type:String(e),callback:t!=null?t:void 0,capture:Boolean(r)}}function xI(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){XA.warn(e);return}throw new TypeError(oI(XA.message,[e]))}}function KB(e,t,r,n){zB.warn(hI(e)?"capture":"bubble",e.callback),dI(e)!==t&&l1.warn("passive"),pI(e)!==r&&l1.warn("once"),e.signal!==n&&l1.warn("signal")}const c1=Object.getOwnPropertyNames(E2.prototype);for(let e=0;e<c1.length;++e)c1[e]!=="constructor"&&Object.defineProperty(E2.prototype,c1[e],{enumerable:!0});typeof Vi<"u"&&typeof Vi.EventTarget<"u"&&Object.setPrototypeOf(E2.prototype,Vi.EventTarget.prototype);var JB={exports:{}};/*! Native Promise Only
39
+ v0.8.1 (c) Kyle Simpson
40
+ MIT License: http://getify.mit-license.org
41
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof _r<"u"?_r:_r,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,T,P,D){return Object.defineProperty(C,T,{value:P,writable:!0,configurable:D!==!1})}}catch{r=function(T,P,D){return T[P]=D,T}}i=function(){var C,T,P;function D(Y,j){this.fn=Y,this.self=j,this.next=void 0}return{add:function(j,re){P=new D(j,re),T?T.next=P:C=P,T=P,P=void 0},drain:function(){var j=C;for(C=T=n=void 0;j;)j.fn.call(j.self),j=j.next}}}();function l(_,C){i.add(_,C),n||(n=o(i.drain))}function s(_){var C,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(C=_.then),typeof C=="function"?C:!1}function c(){for(var _=0;_<this.chain.length;_++)d(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function d(_,C,T){var P,D;try{C===!1?T.reject(_.msg):(C===!0?P=_.msg:P=C.call(void 0,_.msg),P===T.promise?T.reject(TypeError("Promise-chain cycle")):(D=s(P))?D.call(P,T.resolve,T.reject):T.resolve(P))}catch(Y){T.reject(Y)}}function y(_){var C,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(C=s(_))?l(function(){var P=new E(T);try{C.call(_,function(){y.apply(P,arguments)},function(){g.apply(P,arguments)})}catch(D){g.call(P,D)}}):(T.msg=_,T.state=1,T.chain.length>0&&l(c,T))}catch(P){g.call(new E(T),P)}}}function g(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&l(c,C))}function m(_,C,T,P){for(var D=0;D<C.length;D++)(function(j){_.resolve(C[j]).then(function(Ee){T(j,Ee)},P)})(D)}function E(_){this.def=_,this.triggered=!1}function I(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new I(this);this.then=function(P,D){var Y={success:typeof P=="function"?P:!0,failure:typeof D=="function"?D:!1};return Y.promise=new this.constructor(function(re,Ee){if(typeof re!="function"||typeof Ee!="function")throw TypeError("Not a function");Y.resolve=re,Y.reject=Ee}),C.chain.push(Y),C.state!==0&&l(c,C),Y.promise},this.catch=function(P){return this.then(void 0,P)};try{_.call(void 0,function(P){y.call(C,P)},function(P){g.call(C,P)})}catch(T){g.call(C,T)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(C){var T=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new T(function(D,Y){if(typeof D!="function"||typeof Y!="function")throw TypeError("Not a function");D(C)})}),r(b,"reject",function(C){return new this(function(P,D){if(typeof P!="function"||typeof D!="function")throw TypeError("Not a function");D(C)})}),r(b,"all",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):C.length===0?T.resolve([]):new T(function(D,Y){if(typeof D!="function"||typeof Y!="function")throw TypeError("Not a function");var j=C.length,re=Array(j),Ee=0;m(T,C,function(ke,Pe){re[ke]=Pe,++Ee===j&&D(re)},Y)})}),r(b,"race",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(D,Y){if(typeof D!="function"||typeof Y!="function")throw TypeError("Not a function");m(T,C,function(re,Ee){D(Ee)},Y)})}),b})})(JB);var e$={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(f){for(var h=f.length,p=new Array(h);h--;)p[h]=f[h];return p}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,y=d.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,p){c.call(this,f,h,p+"")},d.setProperty=function(f,h,p){y.call(this,f,h+"",p)}}t.ascending=g;function g(u,f){return u<f?-1:u>f?1:u>=f?0:NaN}t.descending=function(u,f){return f<u?-1:f>u?1:f>=u?0:NaN},t.min=function(u,f){var h=-1,p=u.length,v,x;if(arguments.length===1){for(;++h<p;)if((x=u[h])!=null&&x>=x){v=x;break}for(;++h<p;)(x=u[h])!=null&&v>x&&(v=x)}else{for(;++h<p;)if((x=f.call(u,u[h],h))!=null&&x>=x){v=x;break}for(;++h<p;)(x=f.call(u,u[h],h))!=null&&v>x&&(v=x)}return v},t.max=function(u,f){var h=-1,p=u.length,v,x;if(arguments.length===1){for(;++h<p;)if((x=u[h])!=null&&x>=x){v=x;break}for(;++h<p;)(x=u[h])!=null&&x>v&&(v=x)}else{for(;++h<p;)if((x=f.call(u,u[h],h))!=null&&x>=x){v=x;break}for(;++h<p;)(x=f.call(u,u[h],h))!=null&&x>v&&(v=x)}return v},t.extent=function(u,f){var h=-1,p=u.length,v,x,O;if(arguments.length===1){for(;++h<p;)if((x=u[h])!=null&&x>=x){v=O=x;break}for(;++h<p;)(x=u[h])!=null&&(v>x&&(v=x),O<x&&(O=x))}else{for(;++h<p;)if((x=f.call(u,u[h],h))!=null&&x>=x){v=O=x;break}for(;++h<p;)(x=f.call(u,u[h],h))!=null&&(v>x&&(v=x),O<x&&(O=x))}return[v,O]};function m(u){return u===null?NaN:+u}function E(u){return!isNaN(u)}t.sum=function(u,f){var h=0,p=u.length,v,x=-1;if(arguments.length===1)for(;++x<p;)E(v=+u[x])&&(h+=v);else for(;++x<p;)E(v=+f.call(u,u[x],x))&&(h+=v);return h},t.mean=function(u,f){var h=0,p=u.length,v,x=-1,O=p;if(arguments.length===1)for(;++x<p;)E(v=m(u[x]))?h+=v:--O;else for(;++x<p;)E(v=m(f.call(u,u[x],x)))?h+=v:--O;if(O)return h/O},t.quantile=function(u,f){var h=(u.length-1)*f+1,p=Math.floor(h),v=+u[p-1],x=h-p;return x?v+x*(u[p]-v):v},t.median=function(u,f){var h=[],p=u.length,v,x=-1;if(arguments.length===1)for(;++x<p;)E(v=m(u[x]))&&h.push(v);else for(;++x<p;)E(v=m(f.call(u,u[x],x)))&&h.push(v);if(h.length)return t.quantile(h.sort(g),.5)},t.variance=function(u,f){var h=u.length,p=0,v,x,O=0,S=-1,R=0;if(arguments.length===1)for(;++S<h;)E(v=m(u[S]))&&(x=v-p,p+=x/++R,O+=x*(v-p));else for(;++S<h;)E(v=m(f.call(u,u[S],S)))&&(x=v-p,p+=x/++R,O+=x*(v-p));if(R>1)return O/(R-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function I(u){return{left:function(f,h,p,v){for(arguments.length<3&&(p=0),arguments.length<4&&(v=f.length);p<v;){var x=p+v>>>1;u(f[x],h)<0?p=x+1:v=x}return p},right:function(f,h,p,v){for(arguments.length<3&&(p=0),arguments.length<4&&(v=f.length);p<v;){var x=p+v>>>1;u(f[x],h)>0?v=x:p=x+1}return p}}}var b=I(g);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(u){return I(u.length===1?function(f,h){return g(u(f),h)}:u)},t.shuffle=function(u,f,h){(p=arguments.length)<3&&(h=u.length,p<2&&(f=0));for(var p=h-f,v,x;p;)x=Math.random()*p--|0,v=u[p+f],u[p+f]=u[x+f],u[x+f]=v;return u},t.permute=function(u,f){for(var h=f.length,p=new Array(h);h--;)p[h]=u[f[h]];return p},t.pairs=function(u){for(var f=0,h=u.length-1,p=u[0],v=new Array(h<0?0:h);f<h;)v[f]=[p,p=u[++f]];return v},t.transpose=function(u){if(!(x=u.length))return[];for(var f=-1,h=t.min(u,w),p=new Array(h);++f<h;)for(var v=-1,x,O=p[f]=new Array(x);++v<x;)O[v]=u[v][f];return p};function w(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var f=[];for(var h in u)f.push(h);return f},t.values=function(u){var f=[];for(var h in u)f.push(u[h]);return f},t.entries=function(u){var f=[];for(var h in u)f.push({key:h,value:u[h]});return f},t.merge=function(u){for(var f=u.length,h,p=-1,v=0,x,O;++p<f;)v+=u[p].length;for(x=new Array(v);--f>=0;)for(O=u[f],h=O.length;--h>=0;)x[--v]=O[h];return x};var _=Math.abs;t.range=function(u,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=u,u=0)),(f-u)/h===1/0)throw new Error("infinite range");var p=[],v=C(_(h)),x=-1,O;if(u*=v,f*=v,h*=v,h<0)for(;(O=u+h*++x)>f;)p.push(O/v);else for(;(O=u+h*++x)<f;)p.push(O/v);return p};function C(u){for(var f=1;u*f%1;)f*=10;return f}function T(u,f){for(var h in f)Object.defineProperty(u.prototype,h,{value:f[h],enumerable:!1})}t.map=function(u,f){var h=new P;if(u instanceof P)u.forEach(function(S,R){h.set(S,R)});else if(Array.isArray(u)){var p=-1,v=u.length,x;if(arguments.length===1)for(;++p<v;)h.set(p,u[p]);else for(;++p<v;)h.set(f.call(u,x=u[p],p),x)}else for(var O in u)h.set(O,u[O]);return h};function P(){this._=Object.create(null)}var D="__proto__",Y="\0";T(P,{has:Ee,get:function(u){return this._[j(u)]},set:function(u,f){return this._[j(u)]=f},remove:me,keys:ke,values:function(){var u=[];for(var f in this._)u.push(this._[f]);return u},entries:function(){var u=[];for(var f in this._)u.push({key:re(f),value:this._[f]});return u},size:Pe,empty:Le,forEach:function(u){for(var f in this._)u.call(this,re(f),this._[f])}});function j(u){return(u+="")===D||u[0]===Y?Y+u:u}function re(u){return(u+="")[0]===Y?u.slice(1):u}function Ee(u){return j(u)in this._}function me(u){return(u=j(u))in this._&&delete this._[u]}function ke(){var u=[];for(var f in this._)u.push(re(f));return u}function Pe(){var u=0;for(var f in this._)++u;return u}function Le(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},f=[],h=[],p,v;function x(S,R,N){if(N>=f.length)return v?v.call(u,R):p?R.sort(p):R;for(var L=-1,$=R.length,z=f[N++],ie,oe,G,X=new P,J;++L<$;)(J=X.get(ie=z(oe=R[L])))?J.push(oe):X.set(ie,[oe]);return S?(oe=S(),G=function(ue,le){oe.set(ue,x(S,le,N))}):(oe={},G=function(ue,le){oe[ue]=x(S,le,N)}),X.forEach(G),oe}function O(S,R){if(R>=f.length)return S;var N=[],L=h[R++];return S.forEach(function($,z){N.push({key:$,values:O(z,R)})}),L?N.sort(function($,z){return L($.key,z.key)}):N}return u.map=function(S,R){return x(R,S,0)},u.entries=function(S){return O(x(t.map,S,0),0)},u.key=function(S){return f.push(S),u},u.sortKeys=function(S){return h[f.length-1]=S,u},u.sortValues=function(S){return p=S,u},u.rollup=function(S){return v=S,u},u},t.set=function(u){var f=new ut;if(u)for(var h=0,p=u.length;h<p;++h)f.add(u[h]);return f};function ut(){this._=Object.create(null)}T(ut,{has:Ee,add:function(u){return this._[j(u+="")]=!0,u},remove:me,values:ke,size:Pe,empty:Le,forEach:function(u){for(var f in this._)u.call(this,re(f))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,f){for(var h=1,p=arguments.length,v;++h<p;)u[v=arguments[h]]=De(u,f,f[v]);return u};function De(u,f,h){return function(){var p=h.apply(f,arguments);return p===f?u:p}}function We(u,f){if(f in u)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,p=_t.length;h<p;++h){var v=_t[h]+f;if(v in u)return v}}var _t=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new be,f=-1,h=arguments.length;++f<h;)u[arguments[f]]=Ve(u);return u};function be(){}be.prototype.on=function(u,f){var h=u.indexOf("."),p="";if(h>=0&&(p=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(p):this[u].on(p,f);if(arguments.length===2){if(f==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(p,null);return this}};function Ve(u){var f=[],h=new P;function p(){for(var v=f,x=-1,O=v.length,S;++x<O;)(S=v[x].on)&&S.apply(this,arguments);return u}return p.on=function(v,x){var O=h.get(v),S;return arguments.length<2?O&&O.on:(O&&(O.on=null,f=f.slice(0,S=f.indexOf(O)).concat(f.slice(S+1)),h.remove(v)),x&&f.push(h.set(v,{on:x})),u)},p}t.event=null;function st(){t.event.preventDefault()}function Qe(){for(var u=t.event,f;f=u.sourceEvent;)u=f;return u}function ct(u){for(var f=new be,h=0,p=arguments.length;++h<p;)f[arguments[h]]=Ve(f);return f.of=function(v,x){return function(O){try{var S=O.sourceEvent=t.event;O.target=u,t.event=O,f[O.type].apply(v,x)}finally{t.event=S}}},f}t.requote=function(u){return u.replace(yt,"\\$&")};var yt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Wt={}.__proto__?function(u,f){u.__proto__=f}:function(u,f){for(var h in f)u[h]=f[h]};function Vt(u){return Wt(u,Ce),u}var Ze=function(u,f){return f.querySelector(u)},At=function(u,f){return f.querySelectorAll(u)},Ut=function(u,f){var h=u.matches||u[We(u,"matchesSelector")];return Ut=function(p,v){return h.call(p,v)},Ut(u,f)};typeof Sizzle=="function"&&(Ze=function(u,f){return Sizzle(u,f)[0]||null},At=Sizzle,Ut=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ce=t.selection.prototype=[];Ce.select=function(u){var f=[],h,p,v,x;u=W(u);for(var O=-1,S=this.length;++O<S;){f.push(h=[]),h.parentNode=(v=this[O]).parentNode;for(var R=-1,N=v.length;++R<N;)(x=v[R])?(h.push(p=u.call(x,x.__data__,R,O)),p&&"__data__"in x&&(p.__data__=x.__data__)):h.push(null)}return Vt(f)};function W(u){return typeof u=="function"?u:function(){return Ze(u,this)}}Ce.selectAll=function(u){var f=[],h,p;u=ae(u);for(var v=-1,x=this.length;++v<x;)for(var O=this[v],S=-1,R=O.length;++S<R;)(p=O[S])&&(f.push(h=n(u.call(p,p.__data__,S,v))),h.parentNode=p);return Vt(f)};function ae(u){return typeof u=="function"?u:function(){return At(u,this)}}var M="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:M,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:A,qualify:function(u){var f=u.indexOf(":"),h=u;return f>=0&&(h=u.slice(0,f))!=="xmlns"&&(u=u.slice(f+1)),A.hasOwnProperty(h)?{space:A[h],local:u}:u}},Ce.attr=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(f in u)this.each(k(f,u[f]));return this}return this.each(k(u,f))};function k(u,f){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function p(){this.removeAttributeNS(u.space,u.local)}function v(){this.setAttribute(u,f)}function x(){this.setAttributeNS(u.space,u.local,f)}function O(){var R=f.apply(this,arguments);R==null?this.removeAttribute(u):this.setAttribute(u,R)}function S(){var R=f.apply(this,arguments);R==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,R)}return f==null?u.local?p:h:typeof f=="function"?u.local?S:O:u.local?x:v}function B(u){return u.trim().replace(/\s+/g," ")}Ce.classed=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),p=(u=Fe(u)).length,v=-1;if(f=h.classList){for(;++v<p;)if(!f.contains(u[v]))return!1}else for(f=h.getAttribute("class");++v<p;)if(!fe(u[v]).test(f))return!1;return!0}for(f in u)this.each(ze(f,u[f]));return this}return this.each(ze(u,f))};function fe(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Fe(u){return(u+"").trim().split(/^|\s+/)}function ze(u,f){u=Fe(u).map(Qt);var h=u.length;function p(){for(var x=-1;++x<h;)u[x](this,f)}function v(){for(var x=-1,O=f.apply(this,arguments);++x<h;)u[x](this,O)}return typeof f=="function"?v:p}function Qt(u){var f=fe(u);return function(h,p){if(v=h.classList)return p?v.add(u):v.remove(u);var v=h.getAttribute("class")||"";p?(f.lastIndex=0,f.test(v)||h.setAttribute("class",B(v+" "+u))):h.setAttribute("class",B(v.replace(f," ")))}}Ce.style=function(u,f,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(f="");for(h in u)this.each(sr(h,u[h],f));return this}if(p<2){var v=this.node();return o(v).getComputedStyle(v,null).getPropertyValue(u)}h=""}return this.each(sr(u,f,h))};function sr(u,f,h){function p(){this.style.removeProperty(u)}function v(){this.style.setProperty(u,f,h)}function x(){var O=f.apply(this,arguments);O==null?this.style.removeProperty(u):this.style.setProperty(u,O,h)}return f==null?p:typeof f=="function"?x:v}Ce.property=function(u,f){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(f in u)this.each(nr(f,u[f]));return this}return this.each(nr(u,f))};function nr(u,f){function h(){delete this[u]}function p(){this[u]=f}function v(){var x=f.apply(this,arguments);x==null?delete this[u]:this[u]=x}return f==null?h:typeof f=="function"?v:p}Ce.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.textContent=f==null?"":f}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Ce.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.innerHTML=f==null?"":f}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Ce.append=function(u){return u=Hr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function Hr(u){function f(){var p=this.ownerDocument,v=this.namespaceURI;return v===M&&p.documentElement.namespaceURI===M?p.createElement(u):p.createElementNS(v,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:f}Ce.insert=function(u,f){return u=Hr(u),f=W(f),this.select(function(){return this.insertBefore(u.apply(this,arguments),f.apply(this,arguments)||null)})},Ce.remove=function(){return this.each(kr)};function kr(){var u=this.parentNode;u&&u.removeChild(this)}Ce.data=function(u,f){var h=-1,p=this.length,v,x;if(!arguments.length){for(u=new Array(p=(v=this[0]).length);++h<p;)(x=v[h])&&(u[h]=x.__data__);return u}function O(L,$){var z,ie=L.length,oe=$.length,G=Math.min(ie,oe),X=new Array(oe),J=new Array(oe),ue=new Array(ie),le,te;if(f){var Re=new P,Ue=new Array(ie),tt;for(z=-1;++z<ie;)(le=L[z])&&(Re.has(tt=f.call(le,le.__data__,z))?ue[z]=le:Re.set(tt,le),Ue[z]=tt);for(z=-1;++z<oe;)(le=Re.get(tt=f.call($,te=$[z],z)))?le!==!0&&(X[z]=le,le.__data__=te):J[z]=Xi(te),Re.set(tt,!0);for(z=-1;++z<ie;)z in Ue&&Re.get(Ue[z])!==!0&&(ue[z]=L[z])}else{for(z=-1;++z<G;)le=L[z],te=$[z],le?(le.__data__=te,X[z]=le):J[z]=Xi(te);for(;z<oe;++z)J[z]=Xi($[z]);for(;z<ie;++z)ue[z]=L[z]}J.update=X,J.parentNode=X.parentNode=ue.parentNode=L.parentNode,S.push(J),R.push(X),N.push(ue)}var S=Zd([]),R=Vt([]),N=Vt([]);if(typeof u=="function")for(;++h<p;)O(v=this[h],u.call(v,v.parentNode.__data__,h));else for(;++h<p;)O(v=this[h],u);return R.enter=function(){return S},R.exit=function(){return N},R};function Xi(u){return{__data__:u}}Ce.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Ce.filter=function(u){var f=[],h,p,v;typeof u!="function"&&(u=vu(u));for(var x=0,O=this.length;x<O;x++){f.push(h=[]),h.parentNode=(p=this[x]).parentNode;for(var S=0,R=p.length;S<R;S++)(v=p[S])&&u.call(v,v.__data__,S,x)&&h.push(v)}return Vt(f)};function vu(u){return function(){return Ut(this,u)}}Ce.order=function(){for(var u=-1,f=this.length;++u<f;)for(var h=this[u],p=h.length-1,v=h[p],x;--p>=0;)(x=h[p])&&(v&&v!==x.nextSibling&&v.parentNode.insertBefore(x,v),v=x);return this},Ce.sort=function(u){u=wa.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(u);return this.order()};function wa(u){return arguments.length||(u=g),function(f,h){return f&&h?u(f.__data__,h.__data__):!f-!h}}Ce.each=function(u){return pi(this,function(f,h,p){u.call(f,f.__data__,h,p)})};function pi(u,f){for(var h=0,p=u.length;h<p;h++)for(var v=u[h],x=0,O=v.length,S;x<O;x++)(S=v[x])&&f(S,x,h);return u}Ce.call=function(u){var f=n(arguments);return u.apply(f[0]=this,f),this},Ce.empty=function(){return!this.node()},Ce.node=function(){for(var u=0,f=this.length;u<f;u++)for(var h=this[u],p=0,v=h.length;p<v;p++){var x=h[p];if(x)return x}return null},Ce.size=function(){var u=0;return pi(this,function(){++u}),u};function Zd(u){return Wt(u,Ii),u}var Ii=[];t.selection.enter=Zd,t.selection.enter.prototype=Ii,Ii.append=Ce.append,Ii.empty=Ce.empty,Ii.node=Ce.node,Ii.call=Ce.call,Ii.size=Ce.size,Ii.select=function(u){for(var f=[],h,p,v,x,O,S=-1,R=this.length;++S<R;){v=(x=this[S]).update,f.push(h=[]),h.parentNode=x.parentNode;for(var N=-1,L=x.length;++N<L;)(O=x[N])?(h.push(v[N]=p=u.call(x.parentNode,O.__data__,N,S)),p.__data__=O.__data__):h.push(null)}return Vt(f)},Ii.insert=function(u,f){return arguments.length<2&&(f=mu(this)),Ce.insert.call(this,u,f)};function mu(u){var f,h;return function(p,v,x){var O=u[x].update,S=O.length,R;for(x!=h&&(h=x,f=0),v>=f&&(f=v+1);!(R=O[f])&&++f<S;);return R}}t.select=function(u){var f;return typeof u=="string"?(f=[Ze(u,i)],f.parentNode=i.documentElement):(f=[u],f.parentNode=a(u)),Vt([f])},t.selectAll=function(u){var f;return typeof u=="string"?(f=n(At(u,i)),f.parentNode=i.documentElement):(f=n(u),f.parentNode=null),Vt([f])},Ce.on=function(u,f,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(f=!1);for(h in u)this.each(Fl(h,u[h],f));return this}if(p<2)return(p=this.node()["__on"+u])&&p._;h=!1}return this.each(Fl(u,f,h))};function Fl(u,f,h){var p="__on"+u,v=u.indexOf("."),x=Nl;v>0&&(u=u.slice(0,v));var O=Pl.get(u);O&&(u=O,x=Fg);function S(){var L=this[p];L&&(this.removeEventListener(u,L,L.$),delete this[p])}function R(){var L=x(f,n(arguments));S.call(this),this.addEventListener(u,this[p]=L,L.$=h),L._=f}function N(){var L=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),$;for(var z in this)if($=z.match(L)){var ie=this[z];this.removeEventListener($[1],ie,ie.$),delete this[z]}}return v?f?R:S:f?He:N}var Pl=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Pl.forEach(function(u){"on"+u in i&&Pl.remove(u)});function Nl(u,f){return function(h){var p=t.event;t.event=h,f[0]=this.__data__;try{u.apply(this,f)}finally{t.event=p}}}function Fg(u,f){var h=Nl(u,f);return function(p){var v=this,x=p.relatedTarget;(!x||x!==v&&!(x.compareDocumentPosition(v)&8))&&h.call(v,p)}}var _a,Pg=0;function Ll(u){var f=".dragsuppress-"+ ++Pg,h="click"+f,p=t.select(o(u)).on("touchmove"+f,st).on("dragstart"+f,st).on("selectstart"+f,st);if(_a==null&&(_a="onselectstart"in u?!1:We(u.style,"userSelect")),_a){var v=a(u).style,x=v[_a];v[_a]="none"}return function(O){if(p.on(f,null),_a&&(v[_a]=x),O){var S=function(){p.on(h,null)};p.on(h,function(){st(),S()},!0),setTimeout(S,0)}}}t.mouse=function(u){return ei(u,Qe())};var Jr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ei(u,f){f.changedTouches&&(f=f.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var p=h.createSVGPoint();if(Jr<0){var v=o(u);if(v.scrollX||v.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var x=h[0][0].getScreenCTM();Jr=!(x.f||x.e),h.remove()}}return Jr?(p.x=f.pageX,p.y=f.pageY):(p.x=f.clientX,p.y=f.clientY),p=p.matrixTransform(u.getScreenCTM().inverse()),[p.x,p.y]}var O=u.getBoundingClientRect();return[f.clientX-O.left-u.clientLeft,f.clientY-O.top-u.clientTop]}t.touch=function(u,f,h){if(arguments.length<3&&(h=f,f=Qe().changedTouches),f){for(var p=0,v=f.length,x;p<v;++p)if((x=f[p]).identifier===h)return ei(u,x)}},t.behavior.drag=function(){var u=ct(v,"drag","dragstart","dragend"),f=null,h=x(He,t.mouse,o,"mousemove","mouseup"),p=x(Ln,t.touch,nt,"touchmove","touchend");function v(){this.on("mousedown.drag",h).on("touchstart.drag",p)}function x(O,S,R,N,L){return function(){var $=this,z=t.event.target.correspondingElement||t.event.target,ie=$.parentNode,oe=u.of($,arguments),G=0,X=O(),J=".drag"+(X==null?"":"-"+X),ue,le=t.select(R(z)).on(N+J,Ue).on(L+J,tt),te=Ll(z),Re=S(ie,X);f?(ue=f.apply($,arguments),ue=[ue.x-Re[0],ue.y-Re[1]]):ue=[0,0],oe({type:"dragstart"});function Ue(){var je=S(ie,X),at,vt;!je||(at=je[0]-Re[0],vt=je[1]-Re[1],G|=at|vt,Re=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){!S(ie,X)||(le.on(N+J,null).on(L+J,null),te(G),oe({type:"dragend"}))}}}return v.origin=function(O){return arguments.length?(f=O,v):f},t.rebind(v,u,"on")};function Ln(){return t.event.changedTouches[0].identifier}t.touches=function(u,f){return arguments.length<2&&(f=Qe().touches),f?n(f).map(function(h){var p=ei(u,h);return p.identifier=h.identifier,p}):[]};var ir=1e-6,Kd=ir*ir,Ri=Math.PI,oo=2*Ri,Jd=oo-ir,vi=Ri/2,ep=Ri/180,gu=180/Ri;function Ng(u,f,h){return(f[0]-u[0])*(h[1]-u[1])-(f[1]-u[1])*(h[0]-u[0])}function tp(u){return u>1?vi:u<-1?-vi:Math.asin(u)}function Lg(u){return((u=Math.exp(u))-1/u)/2}function rp(u){return((u=Math.exp(u))+1/u)/2}function Dg(u){return((u=Math.exp(2*u))-1)/(u+1)}var yu=Math.SQRT2,Nf=2,np=4;t.interpolateZoom=function(u,f){var h=u[0],p=u[1],v=u[2],x=f[0],O=f[1],S=f[2],R=x-h,N=O-p,L=R*R+N*N,$,z;if(L<Kd)z=Math.log(S/v)/yu,$=function(ue){return[h+ue*R,p+ue*N,v*Math.exp(yu*ue*z)]};else{var ie=Math.sqrt(L),oe=(S*S-v*v+np*L)/(2*v*Nf*ie),G=(S*S-v*v-np*L)/(2*S*Nf*ie),X=Math.log(Math.sqrt(oe*oe+1)-oe),J=Math.log(Math.sqrt(G*G+1)-G);z=(J-X)/yu,$=function(ue){var le=ue*z,te=rp(X),Re=v/(Nf*ie)*(te*Dg(yu*le+X)-Lg(X));return[h+Re*R,p+Re*N,v*te/rp(yu*le+X)]}}return $.duration=z*1e3,$},t.behavior.zoom=function(){var u={x:0,y:0,k:1},f,h,p,v=[960,500],x=xu,O=250,S=0,R="mousedown.zoom",N="mousemove.zoom",L="mouseup.zoom",$,z="touchstart.zoom",ie,oe=ct(le,"zoomstart","zoom","zoomend"),G,X,J,ue;Lf||(Lf="onwheel"in i?(Dl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Dl=function(){return t.event.wheelDelta},"mousewheel"):(Dl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(R,zt).on(Lf+".zoom",Mr).on("dblclick.zoom",dr).on(z,ar)}le.event=function(rt){rt.each(function(){var Gt=oe.of(this,arguments),qt=u;$i?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Gt)}).tween("zoom:zoom",function(){var or=v[0],Er=v[1],Br=h?h[0]:or/2,Vr=h?h[1]:Er/2,cn=t.interpolateZoom([(Br-u.x)/u.k,(Vr-u.y)/u.k,or/u.k],[(Br-qt.x)/qt.k,(Vr-qt.y)/qt.k,or/qt.k]);return function(xn){var rn=cn(xn),kn=or/rn[2];this.__chart__=u={x:Br-rn[0]*kn,y:Vr-rn[1]*kn,k:kn},jt(Gt)}}).each("interrupt.zoom",function(){bt(Gt)}).each("end.zoom",function(){bt(Gt)}):(this.__chart__=u,vt(Gt),jt(Gt),bt(Gt))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},Ue(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(x=rt==null?xu:[+rt[0],+rt[1]],le):x},le.center=function(rt){return arguments.length?(p=rt&&[+rt[0],+rt[1]],le):p},le.size=function(rt){return arguments.length?(v=rt&&[+rt[0],+rt[1]],le):v},le.duration=function(rt){return arguments.length?(O=+rt,le):O},le.x=function(rt){return arguments.length?(X=rt,G=rt.copy(),u={x:0,y:0,k:1},le):X},le.y=function(rt){return arguments.length?(ue=rt,J=rt.copy(),u={x:0,y:0,k:1},le):ue};function te(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Re(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function Ue(rt){u.k=Math.max(x[0],Math.min(x[1],rt))}function tt(rt,Gt){Gt=Re(Gt),u.x+=rt[0]-Gt[0],u.y+=rt[1]-Gt[1]}function je(rt,Gt,qt,or){rt.__chart__={x:u.x,y:u.y,k:u.k},Ue(Math.pow(2,or)),tt(h=Gt,qt),rt=t.select(rt),O>0&&(rt=rt.transition().duration(O)),rt.call(le.event)}function at(){X&&X.domain(G.range().map(function(rt){return(rt-u.x)/u.k}).map(G.invert)),ue&&ue.domain(J.range().map(function(rt){return(rt-u.y)/u.k}).map(J.invert))}function vt(rt){S++||rt({type:"zoomstart"})}function jt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function bt(rt){--S||(rt({type:"zoomend"}),h=null)}function zt(){var rt=this,Gt=oe.of(rt,arguments),qt=0,or=t.select(o(rt)).on(N,Vr).on(L,cn),Er=te(t.mouse(rt)),Br=Ll(rt);vs.call(rt),vt(Gt);function Vr(){qt=1,tt(t.mouse(rt),Er),jt(Gt)}function cn(){or.on(N,null).on(L,null),Br(qt),bt(Gt)}}function ar(){var rt=this,Gt=oe.of(rt,arguments),qt={},or=0,Er,Br=".zoom-"+t.event.changedTouches[0].identifier,Vr="touchmove"+Br,cn="touchend"+Br,xn=[],rn=t.select(rt),kn=Ll(rt);H(),vt(Gt),rn.on(R,null).on(z,H);function F(){var Me=t.touches(rt);return Er=u.k,Me.forEach(function(ye){ye.identifier in qt&&(qt[ye.identifier]=te(ye))}),Me}function H(){var Me=t.event.target;t.select(Me).on(Vr,K).on(cn,Se),xn.push(Me);for(var ye=t.event.changedTouches,we=0,Ye=ye.length;we<Ye;++we)qt[ye[we].identifier]=null;var Xe=F(),et=Date.now();if(Xe.length===1){if(et-ie<500){var ft=Xe[0];je(rt,ft,qt[ft.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),st()}ie=et}else if(Xe.length>1){var ft=Xe[0],It=Xe[1],St=ft[0]-It[0],it=ft[1]-It[1];or=St*St+it*it}}function K(){var Me=t.touches(rt),ye,we,Ye,Xe;vs.call(rt);for(var et=0,ft=Me.length;et<ft;++et,Xe=null)if(Ye=Me[et],Xe=qt[Ye.identifier]){if(we)break;ye=Ye,we=Xe}if(Xe){var It=(It=Ye[0]-ye[0])*It+(It=Ye[1]-ye[1])*It,St=or&&Math.sqrt(It/or);ye=[(ye[0]+Ye[0])/2,(ye[1]+Ye[1])/2],we=[(we[0]+Xe[0])/2,(we[1]+Xe[1])/2],Ue(St*Er)}ie=null,tt(ye,we),jt(Gt)}function Se(){if(t.event.touches.length){for(var Me=t.event.changedTouches,ye=0,we=Me.length;ye<we;++ye)delete qt[Me[ye].identifier];for(var Ye in qt)return void F()}t.selectAll(xn).on(Br,null),rn.on(R,zt).on(z,ar),kn(),bt(Gt)}}function Mr(){var rt=oe.of(this,arguments);$?clearTimeout($):(vs.call(this),f=te(h=p||t.mouse(this)),vt(rt)),$=setTimeout(function(){$=null,bt(rt)},50),st(),Ue(Math.pow(2,Dl()*.002)*u.k),tt(h,f),jt(rt)}function dr(){var rt=t.mouse(this),Gt=Math.log(u.k)/Math.LN2;je(this,rt,te(rt),t.event.shiftKey?Math.ceil(Gt)-1:Math.floor(Gt)+1)}return t.rebind(le,oe,"on")};var xu=[0,1/0],Dl,Lf;t.color=Qi;function Qi(){}Qi.prototype.toString=function(){return this.rgb()+""},t.hsl=Gn;function Gn(u,f,h){return this instanceof Gn?(this.h=+u,this.s=+f,void(this.l=+h)):arguments.length<2?u instanceof Gn?new Gn(u.h,u.s,u.l):Ea(""+u,Gf,Gn):new Gn(u,f,h)}var Bl=Gn.prototype=new Qi;Bl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Gn(this.h,this.s,this.l/u)},Bl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Gn(this.h,this.s,u*this.l)},Bl.rgb=function(){return $l(this.h,this.s,this.l)};function $l(u,f,h){var p,v;u=isNaN(u)?0:(u%=360)<0?u+360:u,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,v=h<=.5?h*(1+f):h+f-h*f,p=2*h-v;function x(S){return S>360?S-=360:S<0&&(S+=360),S<60?p+(v-p)*S/60:S<180?v:S<240?p+(v-p)*(240-S)/60:p}function O(S){return Math.round(x(S)*255)}return new en(O(u+120),O(u),O(u-120))}t.hcl=ti;function ti(u,f,h){return this instanceof ti?(this.h=+u,this.c=+f,void(this.l=+h)):arguments.length<2?u instanceof ti?new ti(u.h,u.c,u.l):u instanceof Xr?op(u.l,u.a,u.b):op((u=Aa((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new ti(u,f,h)}var bu=ti.prototype=new Qi;bu.brighter=function(u){return new ti(this.h,this.c,Math.min(100,this.l+Sa*(arguments.length?u:1)))},bu.darker=function(u){return new ti(this.h,this.c,Math.max(0,this.l-Sa*(arguments.length?u:1)))},bu.rgb=function(){return wu(this.h,this.c,this.l).rgb()};function wu(u,f,h){return isNaN(u)&&(u=0),isNaN(f)&&(f=0),new Xr(h,Math.cos(u*=ep)*f,Math.sin(u)*f)}t.lab=Xr;function Xr(u,f,h){return this instanceof Xr?(this.l=+u,this.a=+f,void(this.b=+h)):arguments.length<2?u instanceof Xr?new Xr(u.l,u.a,u.b):u instanceof ti?wu(u.h,u.c,u.l):Aa((u=en(u)).r,u.g,u.b):new Xr(u,f,h)}var Sa=18,Df=.95047,Bf=1,ip=1.08883,$f=Xr.prototype=new Qi;$f.brighter=function(u){return new Xr(Math.min(100,this.l+Sa*(arguments.length?u:1)),this.a,this.b)},$f.darker=function(u){return new Xr(Math.max(0,this.l-Sa*(arguments.length?u:1)),this.a,this.b)},$f.rgb=function(){return ap(this.l,this.a,this.b)};function ap(u,f,h){var p=(u+16)/116,v=p+f/500,x=p-h/200;return v=zf(v)*Df,p=zf(p)*Bf,x=zf(x)*ip,new en(jf(3.2404542*v-1.5371385*p-.4985314*x),jf(-.969266*v+1.8760108*p+.041556*x),jf(.0556434*v-.2040259*p+1.0572252*x))}function op(u,f,h){return u>0?new ti(Math.atan2(h,f)*gu,Math.sqrt(f*f+h*h),u):new ti(NaN,NaN,u)}function zf(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function Uf(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function jf(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=en;function en(u,f,h){return this instanceof en?(this.r=~~u,this.g=~~f,void(this.b=~~h)):arguments.length<2?u instanceof en?new en(u.r,u.g,u.b):Ea(""+u,en,$l):new en(u,f,h)}function up(u){return new en(u>>16,u>>8&255,u&255)}function zl(u){return up(u)+""}var Zi=en.prototype=new Qi;Zi.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var f=this.r,h=this.g,p=this.b,v=30;return!f&&!h&&!p?new en(v,v,v):(f&&f<v&&(f=v),h&&h<v&&(h=v),p&&p<v&&(p=v),new en(Math.min(255,f/u),Math.min(255,h/u),Math.min(255,p/u)))},Zi.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new en(u*this.r,u*this.g,u*this.b)},Zi.hsl=function(){return Gf(this.r,this.g,this.b)},Zi.toString=function(){return"#"+uo(this.r)+uo(this.g)+uo(this.b)};function uo(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function Ea(u,f,h){var p=0,v=0,x=0,O,S,R;if(O=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),O)switch(S=O[2].split(","),O[1]){case"hsl":return h(parseFloat(S[0]),parseFloat(S[1])/100,parseFloat(S[2])/100);case"rgb":return f(Ki(S[0]),Ki(S[1]),Ki(S[2]))}return(R=lo.get(u))?f(R.r,R.g,R.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(R=parseInt(u.slice(1),16))&&(u.length===4?(p=(R&3840)>>4,p=p>>4|p,v=R&240,v=v>>4|v,x=R&15,x=x<<4|x):u.length===7&&(p=(R&16711680)>>16,v=(R&65280)>>8,x=R&255)),f(p,v,x))}function Gf(u,f,h){var p=Math.min(u/=255,f/=255,h/=255),v=Math.max(u,f,h),x=v-p,O,S,R=(v+p)/2;return x?(S=R<.5?x/(v+p):x/(2-v-p),u==v?O=(f-h)/x+(f<h?6:0):f==v?O=(h-u)/x+2:O=(u-f)/x+4,O*=60):(O=NaN,S=R>0&&R<1?0:O),new Gn(O,S,R)}function Aa(u,f,h){u=Ul(u),f=Ul(f),h=Ul(h);var p=Uf((.4124564*u+.3575761*f+.1804375*h)/Df),v=Uf((.2126729*u+.7151522*f+.072175*h)/Bf),x=Uf((.0193339*u+.119192*f+.9503041*h)/ip);return Xr(116*v-16,500*(p-v),200*(v-x))}function Ul(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function Ki(u){var f=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(f*2.55):f}var lo=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});lo.forEach(function(u,f){lo.set(u,up(f))});function mr(u){return typeof u=="function"?u:function(){return u}}t.functor=mr,t.xhr=Wf(nt);function Wf(u){return function(f,h,p){return arguments.length===2&&typeof h=="function"&&(p=h,h=null),jl(f,h,u,p)}}function jl(u,f,h,p){var v={},x=t.dispatch("beforesend","progress","load","error"),O={},S=new XMLHttpRequest,R=null;self.XDomainRequest&&!("withCredentials"in S)&&/^(http(s)?:)?\/\//.test(u)&&(S=new XDomainRequest),"onload"in S?S.onload=S.onerror=N:S.onreadystatechange=function(){S.readyState>3&&N()};function N(){var L=S.status,$;if(!L&&Bg(S)||L>=200&&L<300||L===304){try{$=h.call(v,S)}catch(z){x.error.call(v,z);return}x.load.call(v,$)}else x.error.call(v,S)}return S.onprogress=function(L){var $=t.event;t.event=L;try{x.progress.call(v,S)}finally{t.event=$}},v.header=function(L,$){return L=(L+"").toLowerCase(),arguments.length<2?O[L]:($==null?delete O[L]:O[L]=$+"",v)},v.mimeType=function(L){return arguments.length?(f=L==null?null:L+"",v):f},v.responseType=function(L){return arguments.length?(R=L,v):R},v.response=function(L){return h=L,v},["get","post"].forEach(function(L){v[L]=function(){return v.send.apply(v,[L].concat(n(arguments)))}}),v.send=function(L,$,z){if(arguments.length===2&&typeof $=="function"&&(z=$,$=null),S.open(L,u,!0),f!=null&&!("accept"in O)&&(O.accept=f+",*/*"),S.setRequestHeader)for(var ie in O)S.setRequestHeader(ie,O[ie]);return f!=null&&S.overrideMimeType&&S.overrideMimeType(f),R!=null&&(S.responseType=R),z!=null&&v.on("error",z).on("load",function(oe){z(null,oe)}),x.beforesend.call(v,S),S.send($==null?null:$),v},v.abort=function(){return S.abort(),v},t.rebind(v,x,"on"),p==null?v:v.get(lp(p))}function lp(u){return u.length===1?function(f,h){u(f==null?h:null)}:u}function Bg(u){var f=u.responseType;return f&&f!=="text"?u.response:u.responseText}t.dsv=function(u,f){var h=new RegExp('["'+u+`
42
+ ]`),p=u.charCodeAt(0);function v(N,L,$){arguments.length<3&&($=L,L=null);var z=jl(N,f,L==null?x:O(L),$);return z.row=function(ie){return arguments.length?z.response((L=ie)==null?x:O(ie)):L},z}function x(N){return v.parse(N.responseText)}function O(N){return function(L){return v.parse(L.responseText,N)}}v.parse=function(N,L){var $;return v.parseRows(N,function(z,ie){if($)return $(z,ie-1);var oe=function(G){for(var X={},J=z.length,ue=0;ue<J;++ue)X[z[ue]]=G[ue];return X};$=L?function(G,X){return L(oe(G),X)}:oe})},v.parseRows=function(N,L){var $={},z={},ie=[],oe=N.length,G=0,X=0,J,ue;function le(){if(G>=oe)return z;if(ue)return ue=!1,$;var Re=G;if(N.charCodeAt(Re)===34){for(var Ue=Re;Ue++<oe;)if(N.charCodeAt(Ue)===34){if(N.charCodeAt(Ue+1)!==34)break;++Ue}G=Ue+2;var tt=N.charCodeAt(Ue+1);return tt===13?(ue=!0,N.charCodeAt(Ue+2)===10&&++G):tt===10&&(ue=!0),N.slice(Re+1,Ue).replace(/""/g,'"')}for(;G<oe;){var tt=N.charCodeAt(G++),je=1;if(tt===10)ue=!0;else if(tt===13)ue=!0,N.charCodeAt(G)===10&&(++G,++je);else if(tt!==p)continue;return N.slice(Re,G-je)}return N.slice(Re)}for(;(J=le())!==z;){for(var te=[];J!==$&&J!==z;)te.push(J),J=le();L&&(te=L(te,X++))==null||ie.push(te)}return ie},v.format=function(N){if(Array.isArray(N[0]))return v.formatRows(N);var L=new ut,$=[];return N.forEach(function(z){for(var ie in z)L.has(ie)||$.push(L.add(ie))}),[$.map(R).join(u)].concat(N.map(function(z){return $.map(function(ie){return R(z[ie])}).join(u)})).join(`
43
+ `)},v.formatRows=function(N){return N.map(S).join(`
44
+ `)};function S(N){return N.map(R).join(u)}function R(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return v},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Gl,_u,ri,Wl,ni=this[We(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){so.apply(this,arguments)};function so(u,f,h){var p=arguments.length;p<2&&(f=0),p<3&&(h=Date.now());var v=h+f,x={c:u,t:v,n:null};return _u?_u.n=x:Gl=x,_u=x,ri||(Wl=clearTimeout(Wl),ri=1,ni(fo)),x}function fo(){var u=Ji(),f=Hl()-u;f>24?(isFinite(f)&&(clearTimeout(Wl),Wl=setTimeout(fo,f)),ri=0):(ri=1,ni(fo))}t.timer.flush=function(){Ji(),Hl()};function Ji(){for(var u=Date.now(),f=Gl;f;)u>=f.t&&f.c(u-f.t)&&(f.c=null),f=f.n;return u}function Hl(){for(var u,f=Gl,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(u=f).n):f=u?u.n=f.n:Gl=f.n;return _u=u,h}t.round=function(u,f){return f?Math.round(u*(f=Math.pow(10,f)))/f:Math.round(u)},t.geom={};function Fi(u){return u[0]}function Pi(u){return u[1]}t.geom.hull=function(u){var f=Fi,h=Pi;if(arguments.length)return p(u);function p(v){if(v.length<3)return[];var x=mr(f),O=mr(h),S,R=v.length,N=[],L=[];for(S=0;S<R;S++)N.push([+x.call(this,v[S],S),+O.call(this,v[S],S),S]);for(N.sort(sp),S=0;S<R;S++)L.push([N[S][0],-N[S][1]]);var $=Su(N),z=Su(L),ie=z[0]===$[0],oe=z[z.length-1]===$[$.length-1],G=[];for(S=$.length-1;S>=0;--S)G.push(v[N[$[S]][2]]);for(S=+ie;S<z.length-oe;++S)G.push(v[N[z[S]][2]]);return G}return p.x=function(v){return arguments.length?(f=v,p):f},p.y=function(v){return arguments.length?(h=v,p):h},p};function Su(u){for(var f=u.length,h=[0,1],p=2,v=2;v<f;v++){for(;p>1&&Ng(u[h[p-2]],u[h[p-1]],u[v])<=0;)--p;h[p++]=v}return h.slice(0,p)}function sp(u,f){return u[0]-f[0]||u[1]-f[1]}t.geom.polygon=function(u){return Wt(u,co),u};var co=t.geom.polygon.prototype=[];co.area=function(){for(var u=-1,f=this.length,h,p=this[f-1],v=0;++u<f;)h=p,p=this[u],v+=h[1]*p[0]-h[0]*p[1];return v*.5},co.centroid=function(u){var f=-1,h=this.length,p=0,v=0,x,O=this[h-1],S;for(arguments.length||(u=-1/(6*this.area()));++f<h;)x=O,O=this[f],S=x[0]*O[1]-O[0]*x[1],p+=(x[0]+O[0])*S,v+=(x[1]+O[1])*S;return[p*u,v*u]},co.clip=function(u){for(var f,h=fp(u),p=-1,v=this.length-fp(this),x,O,S=this[v-1],R,N,L;++p<v;){for(f=u.slice(),u.length=0,R=this[p],N=f[(O=f.length-h)-1],x=-1;++x<O;)L=f[x],Vl(L,S,R)?(Vl(N,S,R)||u.push(Hf(N,L,S,R)),u.push(L)):Vl(N,S,R)&&u.push(Hf(N,L,S,R)),N=L;h&&u.push(u[0]),S=R}return u};function Vl(u,f,h){return(h[0]-f[0])*(u[1]-f[1])<(h[1]-f[1])*(u[0]-f[0])}function Hf(u,f,h,p){var v=u[0],x=h[0],O=f[0]-v,S=p[0]-x,R=u[1],N=h[1],L=f[1]-R,$=p[1]-N,z=(S*(R-N)-$*(v-x))/($*O-S*L);return[v+z*O,R+z*L]}function fp(u){var f=u[0],h=u[u.length-1];return!(f[0]-h[0]||f[1]-h[1])}var ho,Ta,ea,Eu=[],Au,Ca,Oa=[];function Vf(){Xl(this),this.edge=this.site=this.circle=null}function ql(u){var f=Eu.pop()||new Vf;return f.site=u,f}function Tu(u){ii(u),ea.remove(u),Eu.push(u),Xl(u)}function qf(u){var f=u.circle,h=f.x,p=f.cy,v={x:h,y:p},x=u.P,O=u.N,S=[u];Tu(u);for(var R=x;R.circle&&_(h-R.circle.x)<ir&&_(p-R.circle.cy)<ir;)x=R.P,S.unshift(R),Tu(R),R=x;S.unshift(R),ii(R);for(var N=O;N.circle&&_(h-N.circle.x)<ir&&_(p-N.circle.cy)<ir;)O=N.N,S.push(N),Tu(N),N=O;S.push(N),ii(N);var L=S.length,$;for($=1;$<L;++$)N=S[$],R=S[$-1],po(N.edge,R.site,N.site,v);R=S[0],N=S[L-1],N.edge=Ou(R.site,N.site,null,v),ka(R),ka(N)}function cp(u){for(var f=u.x,h=u.y,p,v,x,O,S=ea._;S;)if(x=Yf(S,h)-f,x>ir)S=S.L;else if(O=f-hp(S,h),O>ir){if(!S.R){p=S;break}S=S.R}else{x>-ir?(p=S.P,v=S):O>-ir?(p=S,v=S.N):p=v=S;break}var R=ql(u);if(ea.insert(p,R),!(!p&&!v)){if(p===v){ii(p),v=ql(p.site),ea.insert(R,v),R.edge=v.edge=Ou(p.site,R.site),ka(p),ka(v);return}if(!v){R.edge=Ou(p.site,R.site);return}ii(p),ii(v);var N=p.site,L=N.x,$=N.y,z=u.x-L,ie=u.y-$,oe=v.site,G=oe.x-L,X=oe.y-$,J=2*(z*X-ie*G),ue=z*z+ie*ie,le=G*G+X*X,te={x:(X*ue-ie*le)/J+L,y:(z*le-G*ue)/J+$};po(v.edge,N,oe,te),R.edge=Ou(N,u,null,te),v.edge=Ou(u,oe,null,te),ka(p),ka(v)}}function Yf(u,f){var h=u.site,p=h.x,v=h.y,x=v-f;if(!x)return p;var O=u.P;if(!O)return-1/0;h=O.site;var S=h.x,R=h.y,N=R-f;if(!N)return S;var L=S-p,$=1/x-1/N,z=L/N;return $?(-z+Math.sqrt(z*z-2*$*(L*L/(-2*N)-R+N/2+v-x/2)))/$+p:(p+S)/2}function hp(u,f){var h=u.N;if(h)return Yf(h,f);var p=u.site;return p.y===f?p.x:1/0}function Xf(u){this.site=u,this.edges=[]}Xf.prototype.prepare=function(){for(var u=this.edges,f=u.length,h;f--;)h=u[f].edge,(!h.b||!h.a)&&u.splice(f,1);return u.sort(Qf),u.length};function dp(u){for(var f=u[0][0],h=u[1][0],p=u[0][1],v=u[1][1],x,O,S,R,N=Ta,L=N.length,$,z,ie,oe,G,X;L--;)if($=N[L],!(!$||!$.prepare()))for(ie=$.edges,oe=ie.length,z=0;z<oe;)X=ie[z].end(),S=X.x,R=X.y,G=ie[++z%oe].start(),x=G.x,O=G.y,(_(S-x)>ir||_(R-O)>ir)&&(ie.splice(z,0,new Yl($g($.site,X,_(S-f)<ir&&v-R>ir?{x:f,y:_(x-f)<ir?O:v}:_(R-v)<ir&&h-S>ir?{x:_(O-v)<ir?x:h,y:v}:_(S-h)<ir&&R-p>ir?{x:h,y:_(x-h)<ir?O:p}:_(R-p)<ir&&S-f>ir?{x:_(O-p)<ir?x:f,y:p}:null),$.site,null)),++oe)}function Qf(u,f){return f.angle-u.angle}function pp(){Xl(this),this.x=this.y=this.arc=this.site=this.cy=null}function ka(u){var f=u.P,h=u.N;if(!(!f||!h)){var p=f.site,v=u.site,x=h.site;if(p!==x){var O=v.x,S=v.y,R=p.x-O,N=p.y-S,L=x.x-O,X=x.y-S,$=2*(R*X-N*L);if(!($>=-Kd)){var z=R*R+N*N,ie=L*L+X*X,oe=(X*z-N*ie)/$,G=(R*ie-L*z)/$,X=G+S,J=Oa.pop()||new pp;J.arc=u,J.site=v,J.x=oe+O,J.y=X+Math.sqrt(oe*oe+G*G),J.cy=X,u.circle=J;for(var ue=null,le=Ca._;le;)if(J.y<le.y||J.y===le.y&&J.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}Ca.insert(ue,J),ue||(Au=J)}}}}function ii(u){var f=u.circle;f&&(f.P||(Au=f.N),Ca.remove(f),Oa.push(f),Xl(f),u.circle=null)}function Zf(u,f,h,p){return function(v){var x=v.a,O=v.b,S=x.x,R=x.y,N=O.x,L=O.y,$=0,z=1,ie=N-S,oe=L-R,G;if(G=u-S,!(!ie&&G>0)){if(G/=ie,ie<0){if(G<$)return;G<z&&(z=G)}else if(ie>0){if(G>z)return;G>$&&($=G)}if(G=h-S,!(!ie&&G<0)){if(G/=ie,ie<0){if(G>z)return;G>$&&($=G)}else if(ie>0){if(G<$)return;G<z&&(z=G)}if(G=f-R,!(!oe&&G>0)){if(G/=oe,oe<0){if(G<$)return;G<z&&(z=G)}else if(oe>0){if(G>z)return;G>$&&($=G)}if(G=p-R,!(!oe&&G<0)){if(G/=oe,oe<0){if(G>z)return;G>$&&($=G)}else if(oe>0){if(G<$)return;G<z&&(z=G)}return $>0&&(v.a={x:S+$*ie,y:R+$*oe}),z<1&&(v.b={x:S+z*ie,y:R+z*oe}),v}}}}}}function Kf(u){for(var f=ho,h=Zf(u[0][0],u[0][1],u[1][0],u[1][1]),p=f.length,v;p--;)v=f[p],(!Cu(v,u)||!h(v)||_(v.a.x-v.b.x)<ir&&_(v.a.y-v.b.y)<ir)&&(v.a=v.b=null,f.splice(p,1))}function Cu(u,f){var h=u.b;if(h)return!0;var p=u.a,v=f[0][0],x=f[1][0],O=f[0][1],S=f[1][1],R=u.l,N=u.r,L=R.x,$=R.y,z=N.x,ie=N.y,oe=(L+z)/2,G=($+ie)/2,X,J;if(ie===$){if(oe<v||oe>=x)return;if(L>z){if(!p)p={x:oe,y:O};else if(p.y>=S)return;h={x:oe,y:S}}else{if(!p)p={x:oe,y:S};else if(p.y<O)return;h={x:oe,y:O}}}else if(X=(L-z)/(ie-$),J=G-X*oe,X<-1||X>1)if(L>z){if(!p)p={x:(O-J)/X,y:O};else if(p.y>=S)return;h={x:(S-J)/X,y:S}}else{if(!p)p={x:(S-J)/X,y:S};else if(p.y<O)return;h={x:(O-J)/X,y:O}}else if($<ie){if(!p)p={x:v,y:X*v+J};else if(p.x>=x)return;h={x,y:X*x+J}}else{if(!p)p={x,y:X*x+J};else if(p.x<v)return;h={x:v,y:X*v+J}}return u.a=p,u.b=h,!0}function vp(u,f){this.l=u,this.r=f,this.a=this.b=null}function Ou(u,f,h,p){var v=new vp(u,f);return ho.push(v),h&&po(v,u,f,h),p&&po(v,f,u,p),Ta[u.i].edges.push(new Yl(v,u,f)),Ta[f.i].edges.push(new Yl(v,f,u)),v}function $g(u,f,h){var p=new vp(u,null);return p.a=f,p.b=h,ho.push(p),p}function po(u,f,h,p){!u.a&&!u.b?(u.a=p,u.l=f,u.r=h):u.l===h?u.b=p:u.a=p}function Yl(u,f,h){var p=u.a,v=u.b;this.edge=u,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):u.l===f?Math.atan2(v.x-p.x,p.y-v.y):Math.atan2(p.x-v.x,v.y-p.y)}Yl.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Jf(){this._=null}function Xl(u){u.U=u.C=u.L=u.R=u.P=u.N=null}Jf.prototype={insert:function(u,f){var h,p,v;if(u){if(f.P=u,f.N=u.N,u.N&&(u.N.P=f),u.N=f,u.R){for(u=u.R;u.L;)u=u.L;u.L=f}else u.R=f;h=u}else this._?(u=Ql(this._),f.P=null,f.N=u,u.P=u.L=f,h=u):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,u=f;h&&h.C;)p=h.U,h===p.L?(v=p.R,v&&v.C?(h.C=v.C=!1,p.C=!0,u=p):(u===h.R&&(Ma(this,h),u=h,h=u.U),h.C=!1,p.C=!0,ku(this,p))):(v=p.L,v&&v.C?(h.C=v.C=!1,p.C=!0,u=p):(u===h.L&&(ku(this,h),u=h,h=u.U),h.C=!1,p.C=!0,Ma(this,p))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var f=u.U,h,p=u.L,v=u.R,x,O;if(p?v?x=Ql(v):x=p:x=v,f?f.L===u?f.L=x:f.R=x:this._=x,p&&v?(O=x.C,x.C=u.C,x.L=p,p.U=x,x!==v?(f=x.U,x.U=u.U,u=x.R,f.L=u,x.R=v,v.U=x):(x.U=f,f=x,u=x.R)):(O=u.C,u=x),u&&(u.U=f),!O){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,Ma(this,f),h=f.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,ku(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,Ma(this,f),u=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,ku(this,f),h=f.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,Ma(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,ku(this,f),u=this._;break}h.C=!0,u=f,f=f.U}while(!u.C);u&&(u.C=!1)}}};function Ma(u,f){var h=f,p=f.R,v=h.U;v?v.L===h?v.L=p:v.R=p:u._=p,p.U=v,h.U=p,h.R=p.L,h.R&&(h.R.U=h),p.L=h}function ku(u,f){var h=f,p=f.L,v=h.U;v?v.L===h?v.L=p:v.R=p:u._=p,p.U=v,h.U=p,h.L=p.R,h.L&&(h.L.U=h),p.R=h}function Ql(u){for(;u.L;)u=u.L;return u}function Zl(u,f){var h=u.sort(mp).pop(),p,v,x;for(ho=[],Ta=new Array(u.length),ea=new Jf,Ca=new Jf;;)if(x=Au,h&&(!x||h.y<x.y||h.y===x.y&&h.x<x.x))(h.x!==p||h.y!==v)&&(Ta[h.i]=new Xf(h),cp(h),p=h.x,v=h.y),h=u.pop();else if(x)qf(x.arc);else break;f&&(Kf(f),dp(f));var O={cells:Ta,edges:ho};return ea=Ca=ho=Ta=null,O}function mp(u,f){return f.y-u.y||f.x-u.x}t.geom.voronoi=function(u){var f=Fi,h=Pi,p=f,v=h,x=vo;if(u)return O(u);function O(R){var N=new Array(R.length),L=x[0][0],$=x[0][1],z=x[1][0],ie=x[1][1];return Zl(S(R),x).cells.forEach(function(oe,G){var X=oe.edges,J=oe.site,ue=N[G]=X.length?X.map(function(le){var te=le.start();return[te.x,te.y]}):J.x>=L&&J.x<=z&&J.y>=$&&J.y<=ie?[[L,ie],[z,ie],[z,$],[L,$]]:[];ue.point=R[G]}),N}function S(R){return R.map(function(N,L){return{x:Math.round(p(N,L)/ir)*ir,y:Math.round(v(N,L)/ir)*ir,i:L}})}return O.links=function(R){return Zl(S(R)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:R[N.l.i],target:R[N.r.i]}})},O.triangles=function(R){var N=[];return Zl(S(R)).cells.forEach(function(L,$){for(var z=L.site,ie=L.edges.sort(Qf),oe=-1,G=ie.length,X,J=ie[G-1].edge,ue=J.l===z?J.r:J.l;++oe<G;)X=ue,J=ie[oe].edge,ue=J.l===z?J.r:J.l,$<X.i&&$<ue.i&&zg(z,X,ue)<0&&N.push([R[$],R[X.i],R[ue.i]])}),N},O.x=function(R){return arguments.length?(p=mr(f=R),O):f},O.y=function(R){return arguments.length?(v=mr(h=R),O):h},O.clipExtent=function(R){return arguments.length?(x=R==null?vo:R,O):x===vo?null:x},O.size=function(R){return arguments.length?O.clipExtent(R&&[[0,0],R]):x===vo?null:x&&x[1]},O};var vo=[[-1e6,-1e6],[1e6,1e6]];function zg(u,f,h){return(u.x-h.x)*(f.y-u.y)-(u.x-f.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,f,h,p,v){var x=Fi,O=Pi,S;if(S=arguments.length)return x=Kl,O=Ug,S===3&&(v=h,p=f,h=f=0),R(u);function R(N){var L,$=mr(x),z=mr(O),ie,oe,G,X,J,ue,le,te;if(f!=null)J=f,ue=h,le=p,te=v;else if(le=te=-(J=ue=1/0),ie=[],oe=[],X=N.length,S)for(G=0;G<X;++G)L=N[G],L.x<J&&(J=L.x),L.y<ue&&(ue=L.y),L.x>le&&(le=L.x),L.y>te&&(te=L.y),ie.push(L.x),oe.push(L.y);else for(G=0;G<X;++G){var Re=+$(L=N[G],G),Ue=+z(L,G);Re<J&&(J=Re),Ue<ue&&(ue=Ue),Re>le&&(le=Re),Ue>te&&(te=Ue),ie.push(Re),oe.push(Ue)}var tt=le-J,je=te-ue;tt>je?te=ue+tt:le=J+je;function at(bt,zt,ar,Mr,dr,rt,Gt,qt){if(!(isNaN(ar)||isNaN(Mr)))if(bt.leaf){var or=bt.x,Er=bt.y;if(or!=null)if(_(or-ar)+_(Er-Mr)<.01)vt(bt,zt,ar,Mr,dr,rt,Gt,qt);else{var Br=bt.point;bt.x=bt.y=bt.point=null,vt(bt,Br,or,Er,dr,rt,Gt,qt),vt(bt,zt,ar,Mr,dr,rt,Gt,qt)}else bt.x=ar,bt.y=Mr,bt.point=zt}else vt(bt,zt,ar,Mr,dr,rt,Gt,qt)}function vt(bt,zt,ar,Mr,dr,rt,Gt,qt){var or=(dr+Gt)*.5,Er=(rt+qt)*.5,Br=ar>=or,Vr=Mr>=Er,cn=Vr<<1|Br;bt.leaf=!1,bt=bt.nodes[cn]||(bt.nodes[cn]=gp()),Br?dr=or:Gt=or,Vr?rt=Er:qt=Er,at(bt,zt,ar,Mr,dr,rt,Gt,qt)}var jt=gp();if(jt.add=function(bt){at(jt,bt,+$(bt,++G),+z(bt,G),J,ue,le,te)},jt.visit=function(bt){Mu(bt,jt,J,ue,le,te)},jt.find=function(bt){return jg(jt,bt[0],bt[1],J,ue,le,te)},G=-1,f==null){for(;++G<X;)at(jt,N[G],ie[G],oe[G],J,ue,le,te);--G}else N.forEach(jt.add);return ie=oe=N=L=null,jt}return R.x=function(N){return arguments.length?(x=N,R):x},R.y=function(N){return arguments.length?(O=N,R):O},R.extent=function(N){return arguments.length?(N==null?f=h=p=v=null:(f=+N[0][0],h=+N[0][1],p=+N[1][0],v=+N[1][1]),R):f==null?null:[[f,h],[p,v]]},R.size=function(N){return arguments.length?(N==null?f=h=p=v=null:(f=h=0,p=+N[0],v=+N[1]),R):f==null?null:[p-f,v-h]},R};function Kl(u){return u.x}function Ug(u){return u.y}function gp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Mu(u,f,h,p,v,x){if(!u(f,h,p,v,x)){var O=(h+v)*.5,S=(p+x)*.5,R=f.nodes;R[0]&&Mu(u,R[0],h,p,O,S),R[1]&&Mu(u,R[1],O,p,v,S),R[2]&&Mu(u,R[2],h,S,O,x),R[3]&&Mu(u,R[3],O,S,v,x)}}function jg(u,f,h,p,v,x,O){var S=1/0,R;return function N(L,$,z,ie,oe){if(!($>x||z>O||ie<p||oe<v)){if(G=L.point){var G,X=f-L.x,J=h-L.y,ue=X*X+J*J;if(ue<S){var le=Math.sqrt(S=ue);p=f-le,v=h-le,x=f+le,O=h+le,R=G}}for(var te=L.nodes,Re=($+ie)*.5,Ue=(z+oe)*.5,tt=f>=Re,je=h>=Ue,at=je<<1|tt,vt=at+4;at<vt;++at)if(L=te[at&3])switch(at&3){case 0:N(L,$,z,Re,Ue);break;case 1:N(L,Re,z,ie,Ue);break;case 2:N(L,$,Ue,Re,oe);break;case 3:N(L,Re,Ue,ie,oe);break}}}(u,p,v,x,O),R}t.interpolateRgb=ec;function ec(u,f){u=t.rgb(u),f=t.rgb(f);var h=u.r,p=u.g,v=u.b,x=f.r-h,O=f.g-p,S=f.b-v;return function(R){return"#"+uo(Math.round(h+x*R))+uo(Math.round(p+O*R))+uo(Math.round(v+S*R))}}t.interpolateObject=yp;function yp(u,f){var h={},p={},v;for(v in u)v in f?h[v]=mi(u[v],f[v]):p[v]=u[v];for(v in f)v in u||(p[v]=f[v]);return function(x){for(v in h)p[v]=h[v](x);return p}}t.interpolateNumber=Ni;function Ni(u,f){return u=+u,f=+f,function(h){return u*(1-h)+f*h}}t.interpolateString=tc;function tc(u,f){var h=Ia.lastIndex=rc.lastIndex=0,p,v,x,O=-1,S=[],R=[];for(u=u+"",f=f+"";(p=Ia.exec(u))&&(v=rc.exec(f));)(x=v.index)>h&&(x=f.slice(h,x),S[O]?S[O]+=x:S[++O]=x),(p=p[0])===(v=v[0])?S[O]?S[O]+=v:S[++O]=v:(S[++O]=null,R.push({i:O,x:Ni(p,v)})),h=rc.lastIndex;return h<f.length&&(x=f.slice(h),S[O]?S[O]+=x:S[++O]=x),S.length<2?R[0]?(f=R[0].x,function(N){return f(N)+""}):function(){return f}:(f=R.length,function(N){for(var L=0,$;L<f;++L)S[($=R[L]).i]=$.x(N);return S.join("")})}var Ia=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rc=new RegExp(Ia.source,"g");t.interpolate=mi;function mi(u,f){for(var h=t.interpolators.length,p;--h>=0&&!(p=t.interpolators[h](u,f)););return p}t.interpolators=[function(u,f){var h=typeof f;return(h==="string"?lo.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?ec:tc:f instanceof Qi?ec:Array.isArray(f)?On:h==="object"&&isNaN(f)?yp:Ni)(u,f)}],t.interpolateArray=On;function On(u,f){var h=[],p=[],v=u.length,x=f.length,O=Math.min(u.length,f.length),S;for(S=0;S<O;++S)h.push(mi(u[S],f[S]));for(;S<v;++S)p[S]=u[S];for(;S<x;++S)p[S]=f[S];return function(R){for(S=0;S<O;++S)p[S]=h[S](R);return p}}var Ra=function(){return nt},xp=t.map({linear:Ra,poly:Qr,quad:function(){return _p},cubic:function(){return Gg},sin:function(){return Sp},exp:function(){return Ep},circle:function(){return Fa},elastic:Ap,back:Tp,bounce:function(){return Wg}}),bp=t.map({in:nt,out:nc,"in-out":ic,"out-in":function(u){return ic(nc(u))}});t.ease=function(u){var f=u.indexOf("-"),h=f>=0?u.slice(0,f):u,p=f>=0?u.slice(f+1):"in";return h=xp.get(h)||Ra,p=bp.get(p)||nt,wp(p(h.apply(null,r.call(arguments,1))))};function wp(u){return function(f){return f<=0?0:f>=1?1:u(f)}}function nc(u){return function(f){return 1-u(1-f)}}function ic(u){return function(f){return .5*(f<.5?u(2*f):2-u(2-2*f))}}function _p(u){return u*u}function Gg(u){return u*u*u}function mo(u){if(u<=0)return 0;if(u>=1)return 1;var f=u*u,h=f*u;return 4*(u<.5?h:3*(u-f)+h-.75)}function Qr(u){return function(f){return Math.pow(f,u)}}function Sp(u){return 1-Math.cos(u*vi)}function Ep(u){return Math.pow(2,10*(u-1))}function Fa(u){return 1-Math.sqrt(1-u*u)}function Ap(u,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/oo*Math.asin(1/u):(u=1,h=f/4),function(p){return 1+u*Math.pow(2,-10*p)*Math.sin((p-h)*oo/f)}}function Tp(u){return u||(u=1.70158),function(f){return f*f*((u+1)*f-u)}}function Wg(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=Hg;function Hg(u,f){u=t.hcl(u),f=t.hcl(f);var h=u.h,p=u.c,v=u.l,x=f.h-h,O=f.c-p,S=f.l-v;return isNaN(O)&&(O=0,p=isNaN(p)?f.c:p),isNaN(x)?(x=0,h=isNaN(h)?f.h:h):x>180?x-=360:x<-180&&(x+=360),function(R){return wu(h+x*R,p+O*R,v+S*R)+""}}t.interpolateHsl=Vg;function Vg(u,f){u=t.hsl(u),f=t.hsl(f);var h=u.h,p=u.s,v=u.l,x=f.h-h,O=f.s-p,S=f.l-v;return isNaN(O)&&(O=0,p=isNaN(p)?f.s:p),isNaN(x)?(x=0,h=isNaN(h)?f.h:h):x>180?x-=360:x<-180&&(x+=360),function(R){return $l(h+x*R,p+O*R,v+S*R)+""}}t.interpolateLab=qg;function qg(u,f){u=t.lab(u),f=t.lab(f);var h=u.l,p=u.a,v=u.b,x=f.l-h,O=f.a-p,S=f.b-v;return function(R){return ap(h+x*R,p+O*R,v+S*R)+""}}t.interpolateRound=Jl;function Jl(u,f){return f-=u,function(h){return Math.round(u+f*h)}}t.transform=function(u){var f=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){f.setAttribute("transform",h);var p=f.transform.baseVal.consolidate()}return new ac(p?p.matrix:Yg)})(u)};function ac(u){var f=[u.a,u.b],h=[u.c,u.d],p=oc(f),v=Cp(f,h),x=oc(Op(h,f,-v))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,p*=-1,v*=-1),this.rotate=(p?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*gu,this.translate=[u.e,u.f],this.scale=[p,x],this.skew=x?Math.atan2(v,x)*gu:0}ac.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Cp(u,f){return u[0]*f[0]+u[1]*f[1]}function oc(u){var f=Math.sqrt(Cp(u,u));return f&&(u[0]/=f,u[1]/=f),f}function Op(u,f,h){return u[0]+=h*f[0],u[1]+=h*f[1],u}var Yg={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=uc;function Li(u){return u.length?u.pop()+",":""}function Xg(u,f,h,p){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push("translate(",null,",",null,")");p.push({i:v-4,x:Ni(u[0],f[0])},{i:v-2,x:Ni(u[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function ta(u,f,h,p){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),p.push({i:h.push(Li(h)+"rotate(",null,")")-2,x:Ni(u,f)})):f&&h.push(Li(h)+"rotate("+f+")")}function es(u,f,h,p){u!==f?p.push({i:h.push(Li(h)+"skewX(",null,")")-2,x:Ni(u,f)}):f&&h.push(Li(h)+"skewX("+f+")")}function kp(u,f,h,p){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push(Li(h)+"scale(",null,",",null,")");p.push({i:v-4,x:Ni(u[0],f[0])},{i:v-2,x:Ni(u[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Li(h)+"scale("+f+")")}function uc(u,f){var h=[],p=[];return u=t.transform(u),f=t.transform(f),Xg(u.translate,f.translate,h,p),ta(u.rotate,f.rotate,h,p),es(u.skew,f.skew,h,p),kp(u.scale,f.scale,h,p),u=f=null,function(v){for(var x=-1,O=p.length,S;++x<O;)h[(S=p[x]).i]=S.x(v);return h.join("")}}function Mp(u,f){return f=(f-=u=+u)||1/f,function(h){return(h-u)/f}}function Ip(u,f){return f=(f-=u=+u)||1/f,function(h){return Math.max(0,Math.min(1,(h-u)/f))}}t.layout={},t.layout.bundle=function(){return function(u){for(var f=[],h=-1,p=u.length;++h<p;)f.push(Rp(u[h]));return f}};function Rp(u){for(var f=u.source,h=u.target,p=Fp(f,h),v=[f];f!==p;)f=f.parent,v.push(f);for(var x=v.length;h!==p;)v.splice(x,0,h),h=h.parent;return v}function lc(u){for(var f=[],h=u.parent;h!=null;)f.push(u),u=h,h=h.parent;return f.push(u),f}function Fp(u,f){if(u===f)return u;for(var h=lc(u),p=lc(f),v=h.pop(),x=p.pop(),O=null;v===x;)O=v,v=h.pop(),x=p.pop();return O}t.layout.chord=function(){var u={},f,h,p,v,x=0,O,S,R;function N(){var $={},z=[],ie=t.range(v),oe=[],G,X,J,ue,le;for(f=[],h=[],G=0,ue=-1;++ue<v;){for(X=0,le=-1;++le<v;)X+=p[ue][le];z.push(X),oe.push(t.range(v)),G+=X}for(O&&ie.sort(function(jt,bt){return O(z[jt],z[bt])}),S&&oe.forEach(function(jt,bt){jt.sort(function(zt,ar){return S(p[bt][zt],p[bt][ar])})}),G=(oo-x*v)/G,X=0,ue=-1;++ue<v;){for(J=X,le=-1;++le<v;){var te=ie[ue],Re=oe[te][le],Ue=p[te][Re],tt=X,je=X+=Ue*G;$[te+"-"+Re]={index:te,subindex:Re,startAngle:tt,endAngle:je,value:Ue}}h[te]={index:te,startAngle:J,endAngle:X,value:z[te]},X+=x}for(ue=-1;++ue<v;)for(le=ue-1;++le<v;){var at=$[ue+"-"+le],vt=$[le+"-"+ue];(at.value||vt.value)&&f.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}R&&L()}function L(){f.sort(function($,z){return R(($.source.value+$.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function($){return arguments.length?(v=(p=$)&&p.length,f=h=null,u):p},u.padding=function($){return arguments.length?(x=$,f=h=null,u):x},u.sortGroups=function($){return arguments.length?(O=$,f=h=null,u):O},u.sortSubgroups=function($){return arguments.length?(S=$,f=null,u):S},u.sortChords=function($){return arguments.length?(R=$,f&&L(),u):R},u.chords=function(){return f||N(),f},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},f=t.dispatch("start","tick","end"),h,p=[1,1],v,x,O=.9,S=Di,R=sc,N=-30,L=go,$=.1,z=.64,ie=[],oe=[],G,X,J;function ue(te){return function(Re,Ue,tt,je){if(Re.point!==te){var at=Re.cx-te.x,vt=Re.cy-te.y,jt=je-Ue,bt=at*at+vt*vt;if(jt*jt/z<bt){if(bt<L){var zt=Re.charge/bt;te.px-=at*zt,te.py-=vt*zt}return!0}if(Re.point&&bt&&bt<L){var zt=Re.pointCharge/bt;te.px-=at*zt,te.py-=vt*zt}}return!Re.charge}}u.tick=function(){if((x*=.99)<.005)return h=null,f.end({type:"end",alpha:x=0}),!0;var te=ie.length,Re=oe.length,Ue,tt,je,at,vt,jt,bt,zt,ar;for(tt=0;tt<Re;++tt)je=oe[tt],at=je.source,vt=je.target,zt=vt.x-at.x,ar=vt.y-at.y,(jt=zt*zt+ar*ar)&&(jt=x*X[tt]*((jt=Math.sqrt(jt))-G[tt])/jt,zt*=jt,ar*=jt,vt.x-=zt*(bt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=ar*bt,at.x+=zt*(bt=1-bt),at.y+=ar*bt);if((bt=x*$)&&(zt=p[0]/2,ar=p[1]/2,tt=-1,bt))for(;++tt<te;)je=ie[tt],je.x+=(zt-je.x)*bt,je.y+=(ar-je.y)*bt;if(N)for(Dp(Ue=t.geom.quadtree(ie),x,J),tt=-1;++tt<te;)(je=ie[tt]).fixed||Ue.visit(ue(je));for(tt=-1;++tt<te;)je=ie[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*O,je.y-=(je.py-(je.py=je.y))*O);f.tick({type:"tick",alpha:x})},u.nodes=function(te){return arguments.length?(ie=te,u):ie},u.links=function(te){return arguments.length?(oe=te,u):oe},u.size=function(te){return arguments.length?(p=te,u):p},u.linkDistance=function(te){return arguments.length?(S=typeof te=="function"?te:+te,u):S},u.distance=u.linkDistance,u.linkStrength=function(te){return arguments.length?(R=typeof te=="function"?te:+te,u):R},u.friction=function(te){return arguments.length?(O=+te,u):O},u.charge=function(te){return arguments.length?(N=typeof te=="function"?te:+te,u):N},u.chargeDistance=function(te){return arguments.length?(L=te*te,u):Math.sqrt(L)},u.gravity=function(te){return arguments.length?($=+te,u):$},u.theta=function(te){return arguments.length?(z=te*te,u):Math.sqrt(z)},u.alpha=function(te){return arguments.length?(te=+te,x?te>0?x=te:(h.c=null,h.t=NaN,h=null,f.end({type:"end",alpha:x=0})):te>0&&(f.start({type:"start",alpha:x=te}),h=so(u.tick)),u):x},u.start=function(){var te,Re=ie.length,Ue=oe.length,tt=p[0],je=p[1],at,vt;for(te=0;te<Re;++te)(vt=ie[te]).index=te,vt.weight=0;for(te=0;te<Ue;++te)vt=oe[te],typeof vt.source=="number"&&(vt.source=ie[vt.source]),typeof vt.target=="number"&&(vt.target=ie[vt.target]),++vt.source.weight,++vt.target.weight;for(te=0;te<Re;++te)vt=ie[te],isNaN(vt.x)&&(vt.x=jt("x",tt)),isNaN(vt.y)&&(vt.y=jt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(G=[],typeof S=="function")for(te=0;te<Ue;++te)G[te]=+S.call(this,oe[te],te);else for(te=0;te<Ue;++te)G[te]=S;if(X=[],typeof R=="function")for(te=0;te<Ue;++te)X[te]=+R.call(this,oe[te],te);else for(te=0;te<Ue;++te)X[te]=R;if(J=[],typeof N=="function")for(te=0;te<Re;++te)J[te]=+N.call(this,ie[te],te);else for(te=0;te<Re;++te)J[te]=N;function jt(bt,zt){if(!at){for(at=new Array(Re),dr=0;dr<Re;++dr)at[dr]=[];for(dr=0;dr<Ue;++dr){var ar=oe[dr];at[ar.source.index].push(ar.target),at[ar.target.index].push(ar.source)}}for(var Mr=at[te],dr=-1,rt=Mr.length,Gt;++dr<rt;)if(!isNaN(Gt=Mr[dr][bt]))return Gt;return Math.random()*zt}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(v||(v=t.behavior.drag().origin(nt).on("dragstart.force",Pp).on("drag.force",le).on("dragend.force",Np)),!arguments.length)return v;this.on("mouseover.force",ai).on("mouseout.force",Lp).call(v)};function le(te){te.px=t.event.x,te.py=t.event.y,u.resume()}return t.rebind(u,f,"on")};function Pp(u){u.fixed|=2}function Np(u){u.fixed&=-7}function ai(u){u.fixed|=4,u.px=u.x,u.py=u.y}function Lp(u){u.fixed&=-5}function Dp(u,f,h){var p=0,v=0;if(u.charge=0,!u.leaf)for(var x=u.nodes,O=x.length,S=-1,R;++S<O;)R=x[S],R!=null&&(Dp(R,f,h),u.charge+=R.charge,p+=R.charge*R.cx,v+=R.charge*R.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=f*h[u.point.index];u.charge+=u.pointCharge=N,p+=N*u.point.x,v+=N*u.point.y}u.cx=p/u.charge,u.cy=v/u.charge}var Di=20,sc=1,go=1/0;t.layout.hierarchy=function(){var u=Qg,f=Bp,h=$p;function p(v){var x=[v],O=[],S;for(v.depth=0;(S=x.pop())!=null;)if(O.push(S),(N=f.call(p,S,S.depth))&&(R=N.length)){for(var R,N,L;--R>=0;)x.push(L=N[R]),L.parent=S,L.depth=S.depth+1;h&&(S.value=0),S.children=N}else h&&(S.value=+h.call(p,S,S.depth)||0),delete S.children;return oi(v,function($){var z,ie;u&&(z=$.children)&&z.sort(u),h&&(ie=$.parent)&&(ie.value+=$.value)}),O}return p.sort=function(v){return arguments.length?(u=v,p):u},p.children=function(v){return arguments.length?(f=v,p):f},p.value=function(v){return arguments.length?(h=v,p):h},p.revalue=function(v){return h&&(xo(v,function(x){x.children&&(x.value=0)}),oi(v,function(x){var O;x.children||(x.value=+h.call(p,x,x.depth)||0),(O=x.parent)&&(O.value+=x.value)})),v},p};function yo(u,f){return t.rebind(u,f,"sort","children","value"),u.nodes=u,u.links=Zg,u}function xo(u,f){for(var h=[u];(u=h.pop())!=null;)if(f(u),(v=u.children)&&(p=v.length))for(var p,v;--p>=0;)h.push(v[p])}function oi(u,f){for(var h=[u],p=[];(u=h.pop())!=null;)if(p.push(u),(O=u.children)&&(x=O.length))for(var v=-1,x,O;++v<x;)h.push(O[v]);for(;(u=p.pop())!=null;)f(u)}function Bp(u){return u.children}function $p(u){return u.value}function Qg(u,f){return f.value-u.value}function Zg(u){return t.merge(u.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),f=[1,1];function h(x,O,S,R){var N=x.children;if(x.x=O,x.y=x.depth*R,x.dx=S,x.dy=R,N&&($=N.length)){var L=-1,$,z,ie;for(S=x.value?S/x.value:0;++L<$;)h(z=N[L],O,ie=z.value*S,R),O+=ie}}function p(x){var O=x.children,S=0;if(O&&(N=O.length))for(var R=-1,N;++R<N;)S=Math.max(S,p(O[R]));return 1+S}function v(x,O){var S=u.call(this,x,O);return h(S[0],0,f[0],f[1]/p(S[0])),S}return v.size=function(x){return arguments.length?(f=x,v):f},yo(v,u)},t.layout.pie=function(){var u=Number,f=zp,h=0,p=oo,v=0;function x(O){var S=O.length,R=O.map(function(ue,le){return+u.call(x,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),L=(typeof p=="function"?p.apply(this,arguments):p)-N,$=Math.min(Math.abs(L)/S,+(typeof v=="function"?v.apply(this,arguments):v)),z=$*(L<0?-1:1),ie=t.sum(R),oe=ie?(L-S*z)/ie:0,G=t.range(S),X=[],J;return f!=null&&G.sort(f===zp?function(ue,le){return R[le]-R[ue]}:function(ue,le){return f(O[ue],O[le])}),G.forEach(function(ue){X[ue]={data:O[ue],value:J=R[ue],startAngle:N,endAngle:N+=J*oe+z,padAngle:$}}),X}return x.value=function(O){return arguments.length?(u=O,x):u},x.sort=function(O){return arguments.length?(f=O,x):f},x.startAngle=function(O){return arguments.length?(h=O,x):h},x.endAngle=function(O){return arguments.length?(p=O,x):p},x.padAngle=function(O){return arguments.length?(v=O,x):v},x};var zp={};t.layout.stack=function(){var u=nt,f=cc,h=hc,p=ey,v=Kg,x=Jg;function O(S,R){if(!(oe=S.length))return S;var N=S.map(function(ue,le){return u.call(O,ue,le)}),L=N.map(function(ue){return ue.map(function(le,te){return[v.call(O,le,te),x.call(O,le,te)]})}),$=f.call(O,L,R);N=t.permute(N,$),L=t.permute(L,$);var z=h.call(O,L,R),ie=N[0].length,oe,G,X,J;for(X=0;X<ie;++X)for(p.call(O,N[0][X],J=z[X],L[0][X][1]),G=1;G<oe;++G)p.call(O,N[G][X],J+=L[G-1][X][1],L[G][X][1]);return S}return O.values=function(S){return arguments.length?(u=S,O):u},O.order=function(S){return arguments.length?(f=typeof S=="function"?S:fc.get(S)||cc,O):f},O.offset=function(S){return arguments.length?(h=typeof S=="function"?S:ts.get(S)||hc,O):h},O.x=function(S){return arguments.length?(v=S,O):v},O.y=function(S){return arguments.length?(x=S,O):x},O.out=function(S){return arguments.length?(p=S,O):p},O};function Kg(u){return u.x}function Jg(u){return u.y}function ey(u,f,h){u.y0=f,u.y=h}var fc=t.map({"inside-out":function(u){var f=u.length,h,p,v=u.map(Up),x=u.map(rs),O=t.range(f).sort(function($,z){return v[$]-v[z]}),S=0,R=0,N=[],L=[];for(h=0;h<f;++h)p=O[h],S<R?(S+=x[p],N.push(p)):(R+=x[p],L.push(p));return L.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:cc}),ts=t.map({silhouette:function(u){var f=u.length,h=u[0].length,p=[],v=0,x,O,S,R=[];for(O=0;O<h;++O){for(x=0,S=0;x<f;x++)S+=u[x][O][1];S>v&&(v=S),p.push(S)}for(O=0;O<h;++O)R[O]=(v-p[O])/2;return R},wiggle:function(u){var f=u.length,h=u[0],p=h.length,v,x,O,S,R,N,L,$,z,ie=[];for(ie[0]=$=z=0,x=1;x<p;++x){for(v=0,S=0;v<f;++v)S+=u[v][x][1];for(v=0,R=0,L=h[x][0]-h[x-1][0];v<f;++v){for(O=0,N=(u[v][x][1]-u[v][x-1][1])/(2*L);O<v;++O)N+=(u[O][x][1]-u[O][x-1][1])/L;R+=N*u[v][x][1]}ie[x]=$-=S?R/S*L:0,$<z&&(z=$)}for(x=0;x<p;++x)ie[x]-=z;return ie},expand:function(u){var f=u.length,h=u[0].length,p=1/f,v,x,O,S=[];for(x=0;x<h;++x){for(v=0,O=0;v<f;v++)O+=u[v][x][1];if(O)for(v=0;v<f;v++)u[v][x][1]/=O;else for(v=0;v<f;v++)u[v][x][1]=p}for(x=0;x<h;++x)S[x]=0;return S},zero:hc});function cc(u){return t.range(u.length)}function hc(u){for(var f=-1,h=u[0].length,p=[];++f<h;)p[f]=0;return p}function Up(u){for(var f=1,h=0,p=u[0][1],v,x=u.length;f<x;++f)(v=u[f][1])>p&&(h=f,p=v);return h}function rs(u){return u.reduce(dc,0)}function dc(u,f){return u+f[1]}t.layout.histogram=function(){var u=!0,f=Number,h=ry,p=ty;function v(x,z){for(var S=[],R=x.map(f,this),N=h.call(this,R,z),L=p.call(this,N,R,z),$,z=-1,ie=R.length,oe=L.length-1,G=u?1:1/ie,X;++z<oe;)$=S[z]=[],$.dx=L[z+1]-($.x=L[z]),$.y=0;if(oe>0)for(z=-1;++z<ie;)X=R[z],X>=N[0]&&X<=N[1]&&($=S[t.bisect(L,X,1,oe)-1],$.y+=G,$.push(x[z]));return S}return v.value=function(x){return arguments.length?(f=x,v):f},v.range=function(x){return arguments.length?(h=mr(x),v):h},v.bins=function(x){return arguments.length?(p=typeof x=="number"?function(O){return pc(O,x)}:mr(x),v):p},v.frequency=function(x){return arguments.length?(u=!!x,v):u},v};function ty(u,f){return pc(u,Math.ceil(Math.log(f.length)/Math.LN2+1))}function pc(u,f){for(var h=-1,p=+u[0],v=(u[1]-p)/f,x=[];++h<=f;)x[h]=v*h+p;return x}function ry(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(ny),f=0,h=[1,1],p;function v(x,O){var S=u.call(this,x,O),R=S[0],N=h[0],L=h[1],$=p==null?Math.sqrt:typeof p=="function"?p:function(){return p};if(R.x=R.y=0,oi(R,function(ie){ie.r=+$(ie.value)}),oi(R,mc),f){var z=f*(p?1:Math.max(2*R.r/N,2*R.r/L))/2;oi(R,function(ie){ie.r+=z}),oi(R,mc),oi(R,function(ie){ie.r-=z})}return Wp(R,N/2,L/2,p?1:1/Math.max(2*R.r/N,2*R.r/L)),S}return v.size=function(x){return arguments.length?(h=x,v):h},v.radius=function(x){return arguments.length?(p=x==null||typeof x=="function"?x:+x,v):p},v.padding=function(x){return arguments.length?(f=+x,v):f},yo(v,u)};function ny(u,f){return u.value-f.value}function vc(u,f){var h=u._pack_next;u._pack_next=f,f._pack_prev=u,f._pack_next=h,h._pack_prev=f}function jp(u,f){u._pack_next=f,f._pack_prev=u}function Gp(u,f){var h=f.x-u.x,p=f.y-u.y,v=u.r+f.r;return .999*v*v>h*h+p*p}function mc(u){if(!(f=u.children)||!(z=f.length))return;var f,h=1/0,p=-1/0,v=1/0,x=-1/0,O,S,R,N,L,$,z;function ie(te){h=Math.min(te.x-te.r,h),p=Math.max(te.x+te.r,p),v=Math.min(te.y-te.r,v),x=Math.max(te.y+te.r,x)}if(f.forEach(iy),O=f[0],O.x=-O.r,O.y=0,ie(O),z>1&&(S=f[1],S.x=S.r,S.y=0,ie(S),z>2))for(R=f[2],Hp(O,S,R),ie(R),vc(O,R),O._pack_prev=R,vc(R,S),S=O._pack_next,N=3;N<z;N++){Hp(O,S,R=f[N]);var oe=0,G=1,X=1;for(L=S._pack_next;L!==S;L=L._pack_next,G++)if(Gp(L,R)){oe=1;break}if(oe==1)for($=O._pack_prev;$!==L._pack_prev&&!Gp($,R);$=$._pack_prev,X++);oe?(G<X||G==X&&S.r<O.r?jp(O,S=L):jp(O=$,S),N--):(vc(O,R),S=R,ie(R))}var J=(h+p)/2,ue=(v+x)/2,le=0;for(N=0;N<z;N++)R=f[N],R.x-=J,R.y-=ue,le=Math.max(le,R.r+Math.sqrt(R.x*R.x+R.y*R.y));u.r=le,f.forEach(ay)}function iy(u){u._pack_next=u._pack_prev=u}function ay(u){delete u._pack_next,delete u._pack_prev}function Wp(u,f,h,p){var v=u.children;if(u.x=f+=p*u.x,u.y=h+=p*u.y,u.r*=p,v)for(var x=-1,O=v.length;++x<O;)Wp(v[x],f,h,p)}function Hp(u,f,h){var p=u.r+h.r,v=f.x-u.x,x=f.y-u.y;if(p&&(v||x)){var O=f.r+h.r,S=v*v+x*x;O*=O,p*=p;var R=.5+(p-O)/(2*S),N=Math.sqrt(Math.max(0,2*O*(p+S)-(p-=S)*p-O*O))/(2*S);h.x=u.x+R*v+N*x,h.y=u.y+R*x-N*v}else h.x=u.x+p,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),f=Vp,h=[1,1],p=null;function v(L,$){var z=u.call(this,L,$),ie=z[0],oe=x(ie);if(oi(oe,O),oe.parent.m=-oe.z,xo(oe,S),p)xo(ie,N);else{var G=ie,X=ie,J=ie;xo(ie,function(Re){Re.x<G.x&&(G=Re),Re.x>X.x&&(X=Re),Re.depth>J.depth&&(J=Re)});var ue=f(G,X)/2-G.x,le=h[0]/(X.x+f(X,G)/2+ue),te=h[1]/(J.depth||1);xo(ie,function(Re){Re.x=(Re.x+ue)*le,Re.y=Re.depth*te})}return z}function x(L){for(var $={A:null,children:[L]},z=[$],ie;(ie=z.pop())!=null;)for(var oe=ie.children,G,X=0,J=oe.length;X<J;++X)z.push((oe[X]=G={_:oe[X],parent:ie,children:(G=oe[X].children)&&G.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:X}).a=G);return $.children[0]}function O(L){var $=L.children,z=L.parent.children,ie=L.i?z[L.i-1]:null;if($.length){uy(L);var oe=($[0].z+$[$.length-1].z)/2;ie?(L.z=ie.z+f(L._,ie._),L.m=L.z-oe):L.z=oe}else ie&&(L.z=ie.z+f(L._,ie._));L.parent.A=R(L,ie,L.parent.A||z[0])}function S(L){L._.x=L.z+L.parent.m,L.m+=L.parent.m}function R(L,$,z){if($){for(var ie=L,oe=L,G=$,X=ie.parent.children[0],J=ie.m,ue=oe.m,le=G.m,te=X.m,Re;G=yc(G),ie=gc(ie),G&&ie;)X=gc(X),oe=yc(oe),oe.a=L,Re=G.z+le-ie.z-J+f(G._,ie._),Re>0&&(oy(gi(G,L,z),L,Re),J+=Re,ue+=Re),le+=G.m,J+=ie.m,te+=X.m,ue+=oe.m;G&&!yc(oe)&&(oe.t=G,oe.m+=le-ue),ie&&!gc(X)&&(X.t=ie,X.m+=J-te,z=L)}return z}function N(L){L.x*=h[0],L.y=L.depth*h[1]}return v.separation=function(L){return arguments.length?(f=L,v):f},v.size=function(L){return arguments.length?(p=(h=L)==null?N:null,v):p?null:h},v.nodeSize=function(L){return arguments.length?(p=(h=L)==null?null:N,v):p?h:null},yo(v,u)};function Vp(u,f){return u.parent==f.parent?1:2}function gc(u){var f=u.children;return f.length?f[0]:u.t}function yc(u){var f=u.children,h;return(h=f.length)?f[h-1]:u.t}function oy(u,f,h){var p=h/(f.i-u.i);f.c-=p,f.s+=h,u.c+=p,f.z+=h,f.m+=h}function uy(u){for(var f=0,h=0,p=u.children,v=p.length,x;--v>=0;)x=p[v],x.z+=f,x.m+=f,f+=x.s+(h+=x.c)}function gi(u,f,h){return u.a.parent===f.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),f=Vp,h=[1,1],p=!1;function v(x,O){var S=u.call(this,x,O),R=S[0],N,L=0;oi(R,function(G){var X=G.children;X&&X.length?(G.x=ly(X),G.y=qp(X)):(G.x=N?L+=f(G,N):0,G.y=0,N=G)});var $=Yp(R),z=Xp(R),ie=$.x-f($,z)/2,oe=z.x+f(z,$)/2;return oi(R,p?function(G){G.x=(G.x-R.x)*h[0],G.y=(R.y-G.y)*h[1]}:function(G){G.x=(G.x-ie)/(oe-ie)*h[0],G.y=(1-(R.y?G.y/R.y:1))*h[1]}),S}return v.separation=function(x){return arguments.length?(f=x,v):f},v.size=function(x){return arguments.length?(p=(h=x)==null,v):p?null:h},v.nodeSize=function(x){return arguments.length?(p=(h=x)!=null,v):p?h:null},yo(v,u)};function qp(u){return 1+t.max(u,function(f){return f.y})}function ly(u){return u.reduce(function(f,h){return f+h.x},0)/u.length}function Yp(u){var f=u.children;return f&&f.length?Yp(f[0]):u}function Xp(u){var f=u.children,h;return f&&(h=f.length)?Xp(f[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),f=Math.round,h=[1,1],p=null,v=xc,x=!1,O,S="squarify",R=.5*(1+Math.sqrt(5));function N(G,X){for(var J=-1,ue=G.length,le,te;++J<ue;)te=(le=G[J]).value*(X<0?0:X),le.area=isNaN(te)||te<=0?0:te}function L(G){var X=G.children;if(X&&X.length){var J=v(G),ue=[],le=X.slice(),te,Re=1/0,Ue,tt=S==="slice"?J.dx:S==="dice"?J.dy:S==="slice-dice"?G.depth&1?J.dy:J.dx:Math.min(J.dx,J.dy),je;for(N(le,J.dx*J.dy/G.value),ue.area=0;(je=le.length)>0;)ue.push(te=le[je-1]),ue.area+=te.area,S!=="squarify"||(Ue=z(ue,tt))<=Re?(le.pop(),Re=Ue):(ue.area-=ue.pop().area,ie(ue,tt,J,!1),tt=Math.min(J.dx,J.dy),ue.length=ue.area=0,Re=1/0);ue.length&&(ie(ue,tt,J,!0),ue.length=ue.area=0),X.forEach(L)}}function $(G){var X=G.children;if(X&&X.length){var J=v(G),ue=X.slice(),le,te=[];for(N(ue,J.dx*J.dy/G.value),te.area=0;le=ue.pop();)te.push(le),te.area+=le.area,le.z!=null&&(ie(te,le.z?J.dx:J.dy,J,!ue.length),te.length=te.area=0);X.forEach($)}}function z(G,X){for(var J=G.area,ue,le=0,te=1/0,Re=-1,Ue=G.length;++Re<Ue;)!(ue=G[Re].area)||(ue<te&&(te=ue),ue>le&&(le=ue));return J*=J,X*=X,J?Math.max(X*le*R/J,J/(X*te*R)):1/0}function ie(G,X,J,ue){var le=-1,te=G.length,Re=J.x,Ue=J.y,tt=X?f(G.area/X):0,je;if(X==J.dx){for((ue||tt>J.dy)&&(tt=J.dy);++le<te;)je=G[le],je.x=Re,je.y=Ue,je.dy=tt,Re+=je.dx=Math.min(J.x+J.dx-Re,tt?f(je.area/tt):0);je.z=!0,je.dx+=J.x+J.dx-Re,J.y+=tt,J.dy-=tt}else{for((ue||tt>J.dx)&&(tt=J.dx);++le<te;)je=G[le],je.x=Re,je.y=Ue,je.dx=tt,Ue+=je.dy=Math.min(J.y+J.dy-Ue,tt?f(je.area/tt):0);je.z=!1,je.dy+=J.y+J.dy-Ue,J.x+=tt,J.dx-=tt}}function oe(G){var X=O||u(G),J=X[0];return J.x=J.y=0,J.value?(J.dx=h[0],J.dy=h[1]):J.dx=J.dy=0,O&&u.revalue(J),N([J],J.dx*J.dy/J.value),(O?$:L)(J),x&&(O=X),X}return oe.size=function(G){return arguments.length?(h=G,oe):h},oe.padding=function(G){if(!arguments.length)return p;function X(le){var te=G.call(oe,le,le.depth);return te==null?xc(le):Qp(le,typeof te=="number"?[te,te,te,te]:te)}function J(le){return Qp(le,G)}var ue;return v=(p=G)==null?xc:(ue=typeof G)=="function"?X:(ue==="number"&&(G=[G,G,G,G]),J),oe},oe.round=function(G){return arguments.length?(f=G?Math.round:Number,oe):f!=Number},oe.sticky=function(G){return arguments.length?(x=G,O=null,oe):x},oe.ratio=function(G){return arguments.length?(R=G,oe):R},oe.mode=function(G){return arguments.length?(S=G+"",oe):S},yo(oe,u)};function xc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function Qp(u,f){var h=u.x+f[3],p=u.y+f[0],v=u.dx-f[1]-f[3],x=u.dy-f[0]-f[2];return v<0&&(h+=v/2,v=0),x<0&&(p+=x/2,x=0),{x:h,y:p,dx:v,dy:x}}t.random={normal:function(u,f){var h=arguments.length;return h<2&&(f=1),h<1&&(u=0),function(){var p,v,x;do p=Math.random()*2-1,v=Math.random()*2-1,x=p*p+v*v;while(!x||x>1);return u+f*p*Math.sqrt(-2*Math.log(x)/x)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var f=t.random.irwinHall(u);return function(){return f()/u}},irwinHall:function(u){return function(){for(var f=0,h=0;h<u;h++)f+=Math.random();return f}}},t.scale={};function ns(u){var f=u[0],h=u[u.length-1];return f<h?[f,h]:[h,f]}function is(u){return u.rangeExtent?u.rangeExtent():ns(u.range())}function sy(u,f,h,p){var v=h(u[0],u[1]),x=p(f[0],f[1]);return function(O){return x(v(O))}}function jr(u,f){var h=0,p=u.length-1,v=u[h],x=u[p],O;return x<v&&(O=h,h=p,p=O,O=v,v=x,x=O),u[h]=f.floor(v),u[p]=f.ceil(x),u}function Pa(u){return u?{floor:function(f){return Math.floor(f/u)*u},ceil:function(f){return Math.ceil(f/u)*u}}:bo}var bo={floor:nt,ceil:nt};function fy(u,f,h,p){var v=[],x=[],O=0,S=Math.min(u.length,f.length)-1;for(u[S]<u[0]&&(u=u.slice().reverse(),f=f.slice().reverse());++O<=S;)v.push(h(u[O-1],u[O])),x.push(p(f[O-1],f[O]));return function(R){var N=t.bisect(u,R,1,S)-1;return x[N](v[N](R))}}t.scale.linear=function(){return Na([0,1],[0,1],mi,!1)};function Na(u,f,h,p){var v,x;function O(){var R=Math.min(u.length,f.length)>2?fy:sy,N=p?Ip:Mp;return v=R(u,f,N,h),x=R(f,u,N,mi),S}function S(R){return v(R)}return S.invert=function(R){return x(R)},S.domain=function(R){return arguments.length?(u=R.map(Number),O()):u},S.range=function(R){return arguments.length?(f=R,O()):f},S.rangeRound=function(R){return S.range(R).interpolate(Jl)},S.clamp=function(R){return arguments.length?(p=R,O()):p},S.interpolate=function(R){return arguments.length?(h=R,O()):h},S.ticks=function(R){return Ru(u,R)},S.tickFormat=function(R,N){return d3_scale_linearTickFormat(u,R,N)},S.nice=function(R){return La(u,R),O()},S.copy=function(){return Na(u,f,h,p)},O()}function bc(u,f){return t.rebind(u,f,"range","rangeRound","interpolate","clamp")}function La(u,f){return jr(u,Pa(Iu(u,f)[2])),jr(u,Pa(Iu(u,f)[2])),u}function Iu(u,f){f==null&&(f=10);var h=ns(u),p=h[1]-h[0],v=Math.pow(10,Math.floor(Math.log(p/f)/Math.LN10)),x=f/p*v;return x<=.15?v*=10:x<=.35?v*=5:x<=.75&&(v*=2),h[0]=Math.ceil(h[0]/v)*v,h[1]=Math.floor(h[1]/v)*v+v*.5,h[2]=v,h}function Ru(u,f){return t.range.apply(t,Iu(u,f))}t.scale.log=function(){return as(t.scale.linear().domain([0,1]),10,!0,[1,10])};function as(u,f,h,p){function v(S){return(h?Math.log(S<0?0:S):-Math.log(S>0?0:-S))/Math.log(f)}function x(S){return h?Math.pow(f,S):-Math.pow(f,-S)}function O(S){return u(v(S))}return O.invert=function(S){return x(u.invert(S))},O.domain=function(S){return arguments.length?(h=S[0]>=0,u.domain((p=S.map(Number)).map(v)),O):p},O.base=function(S){return arguments.length?(f=+S,u.domain(p.map(v)),O):f},O.nice=function(){var S=jr(p.map(v),h?Math:wc);return u.domain(S),p=S.map(x),O},O.ticks=function(){var S=ns(p),R=[],N=S[0],L=S[1],$=Math.floor(v(N)),z=Math.ceil(v(L)),ie=f%1?2:f;if(isFinite(z-$)){if(h){for(;$<z;$++)for(var oe=1;oe<ie;oe++)R.push(x($)*oe);R.push(x($))}else for(R.push(x($));$++<z;)for(var oe=ie-1;oe>0;oe--)R.push(x($)*oe);for($=0;R[$]<N;$++);for(z=R.length;R[z-1]>L;z--);R=R.slice($,z)}return R},O.copy=function(){return as(u.copy(),f,h,p)},bc(O,u)}var wc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return os(t.scale.linear(),1,[0,1])};function os(u,f,h){var p=Da(f),v=Da(1/f);function x(O){return u(p(O))}return x.invert=function(O){return v(u.invert(O))},x.domain=function(O){return arguments.length?(u.domain((h=O.map(Number)).map(p)),x):h},x.ticks=function(O){return Ru(h,O)},x.tickFormat=function(O,S){return d3_scale_linearTickFormat(h,O,S)},x.nice=function(O){return x.domain(La(h,O))},x.exponent=function(O){return arguments.length?(p=Da(f=O),v=Da(1/f),u.domain(h.map(p)),x):f},x.copy=function(){return os(u.copy(),f,h)},bc(x,u)}function Da(u){return function(f){return f<0?-Math.pow(-f,u):Math.pow(f,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return _c([],{t:"range",a:[[]]})};function _c(u,f){var h,p,v;function x(S){return p[((h.get(S)||(f.t==="range"?h.set(S,u.push(S)):NaN))-1)%p.length]}function O(S,R){return t.range(u.length).map(function(N){return S+R*N})}return x.domain=function(S){if(!arguments.length)return u;u=[],h=new P;for(var R=-1,N=S.length,L;++R<N;)h.has(L=S[R])||h.set(L,u.push(L));return x[f.t].apply(x,f.a)},x.range=function(S){return arguments.length?(p=S,v=0,f={t:"range",a:arguments},x):p},x.rangePoints=function(S,R){arguments.length<2&&(R=0);var N=S[0],L=S[1],$=u.length<2?(N=(N+L)/2,0):(L-N)/(u.length-1+R);return p=O(N+$*R/2,$),v=0,f={t:"rangePoints",a:arguments},x},x.rangeRoundPoints=function(S,R){arguments.length<2&&(R=0);var N=S[0],L=S[1],$=u.length<2?(N=L=Math.round((N+L)/2),0):(L-N)/(u.length-1+R)|0;return p=O(N+Math.round($*R/2+(L-N-(u.length-1+R)*$)/2),$),v=0,f={t:"rangeRoundPoints",a:arguments},x},x.rangeBands=function(S,R,N){arguments.length<2&&(R=0),arguments.length<3&&(N=R);var L=S[1]<S[0],$=S[L-0],z=S[1-L],ie=(z-$)/(u.length-R+2*N);return p=O($+ie*N,ie),L&&p.reverse(),v=ie*(1-R),f={t:"rangeBands",a:arguments},x},x.rangeRoundBands=function(S,R,N){arguments.length<2&&(R=0),arguments.length<3&&(N=R);var L=S[1]<S[0],$=S[L-0],z=S[1-L],ie=Math.floor((z-$)/(u.length-R+2*N));return p=O($+Math.round((z-$-(u.length-R)*ie)/2),ie),L&&p.reverse(),v=Math.round(ie*(1-R)),f={t:"rangeRoundBands",a:arguments},x},x.rangeBand=function(){return v},x.rangeExtent=function(){return ns(f.a[0])},x.copy=function(){return _c(u,f)},x.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(Zp)},t.scale.category20=function(){return t.scale.ordinal().range(Kp)},t.scale.category20b=function(){return t.scale.ordinal().range(Jp)},t.scale.category20c=function(){return t.scale.ordinal().range(ev)};var Zp=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(zl),Kp=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(zl),Jp=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(zl),ev=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(zl);t.scale.quantile=function(){return us([],[])};function us(u,f){var h;function p(){var x=0,O=f.length;for(h=[];++x<O;)h[x-1]=t.quantile(u,x/O);return v}function v(x){if(!isNaN(x=+x))return f[t.bisect(h,x)]}return v.domain=function(x){return arguments.length?(u=x.map(m).filter(E).sort(g),p()):u},v.range=function(x){return arguments.length?(f=x,p()):f},v.quantiles=function(){return h},v.invertExtent=function(x){return x=f.indexOf(x),x<0?[NaN,NaN]:[x>0?h[x-1]:u[0],x<h.length?h[x]:u[u.length-1]]},v.copy=function(){return us(u,f)},p()}t.scale.quantize=function(){return ls(0,1,[0,1])};function ls(u,f,h){var p,v;function x(S){return h[Math.max(0,Math.min(v,Math.floor(p*(S-u))))]}function O(){return p=h.length/(f-u),v=h.length-1,x}return x.domain=function(S){return arguments.length?(u=+S[0],f=+S[S.length-1],O()):[u,f]},x.range=function(S){return arguments.length?(h=S,O()):h},x.invertExtent=function(S){return S=h.indexOf(S),S=S<0?NaN:S/p+u,[S,S+1/p]},x.copy=function(){return ls(u,f,h)},O()}t.scale.threshold=function(){return Sc([.5],[0,1])};function Sc(u,f){function h(p){if(p<=p)return f[t.bisect(u,p)]}return h.domain=function(p){return arguments.length?(u=p,h):u},h.range=function(p){return arguments.length?(f=p,h):f},h.invertExtent=function(p){return p=f.indexOf(p),[u[p-1],u[p]]},h.copy=function(){return Sc(u,f)},h}t.scale.identity=function(){return Ec([0,1])};function Ec(u){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(u=h.map(f),f):u},f.ticks=function(h){return Ru(u,h)},f.tickFormat=function(h,p){return d3_scale_linearTickFormat(u,h,p)},f.copy=function(){return Ec(u)},f}t.svg={};function tv(){return 0}t.svg.arc=function(){var u=Ac,f=rv,h=tv,p=Fu,v=Tc,x=ss,O=Cc;function S(){var N=Math.max(0,+u.apply(this,arguments)),L=Math.max(0,+f.apply(this,arguments)),$=v.apply(this,arguments)-vi,z=x.apply(this,arguments)-vi,ie=Math.abs(z-$),oe=$>z?0:1;if(L<N&&(G=L,L=N,N=G),ie>=Jd)return R(L,oe)+(N?R(N,1-oe):"")+"Z";var G,X,J,ue,le=0,te=0,Re,Ue,tt,je,at,vt,jt,bt,zt=[];if((ue=(+O.apply(this,arguments)||0)/2)&&(J=p===Fu?Math.sqrt(N*N+L*L):+p.apply(this,arguments),oe||(te*=-1),L&&(te=tp(J/L*Math.sin(ue))),N&&(le=tp(J/N*Math.sin(ue)))),L){Re=L*Math.cos($+te),Ue=L*Math.sin($+te),tt=L*Math.cos(z-te),je=L*Math.sin(z-te);var ar=Math.abs(z-$-2*te)<=Ri?0:1;if(te&&Pu(Re,Ue,tt,je)===oe^ar){var Mr=($+z)/2;Re=L*Math.cos(Mr),Ue=L*Math.sin(Mr),tt=je=null}}else Re=Ue=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),jt=N*Math.cos($+le),bt=N*Math.sin($+le);var dr=Math.abs($-z+2*le)<=Ri?0:1;if(le&&Pu(at,vt,jt,bt)===1-oe^dr){var rt=($+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),jt=bt=null}}else at=vt=0;if(ie>ir&&(G=Math.min(Math.abs(L-N)/2,+h.apply(this,arguments)))>.001){X=N<L^oe?0:1;var Gt=G,qt=G;if(ie<Ri){var or=jt==null?[at,vt]:tt==null?[Re,Ue]:Hf([Re,Ue],[jt,bt],[tt,je],[at,vt]),Er=Re-or[0],Br=Ue-or[1],Vr=tt-or[0],cn=je-or[1],xn=1/Math.sin(Math.acos((Er*Vr+Br*cn)/(Math.sqrt(Er*Er+Br*Br)*Math.sqrt(Vr*Vr+cn*cn)))/2),rn=Math.sqrt(or[0]*or[0]+or[1]*or[1]);qt=Math.min(G,(N-rn)/(xn-1)),Gt=Math.min(G,(L-rn)/(xn+1))}if(tt!=null){var kn=wo(jt==null?[at,vt]:[jt,bt],[Re,Ue],L,Gt,oe),F=wo([tt,je],[at,vt],L,Gt,oe);G===Gt?zt.push("M",kn[0],"A",Gt,",",Gt," 0 0,",X," ",kn[1],"A",L,",",L," 0 ",1-oe^Pu(kn[1][0],kn[1][1],F[1][0],F[1][1]),",",oe," ",F[1],"A",Gt,",",Gt," 0 0,",X," ",F[0]):zt.push("M",kn[0],"A",Gt,",",Gt," 0 1,",X," ",F[0])}else zt.push("M",Re,",",Ue);if(jt!=null){var H=wo([Re,Ue],[jt,bt],N,-qt,oe),K=wo([at,vt],tt==null?[Re,Ue]:[tt,je],N,-qt,oe);G===qt?zt.push("L",K[0],"A",qt,",",qt," 0 0,",X," ",K[1],"A",N,",",N," 0 ",oe^Pu(K[1][0],K[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",qt,",",qt," 0 0,",X," ",H[0]):zt.push("L",K[0],"A",qt,",",qt," 0 0,",X," ",H[0])}else zt.push("L",at,",",vt)}else zt.push("M",Re,",",Ue),tt!=null&&zt.push("A",L,",",L," 0 ",ar,",",oe," ",tt,",",je),zt.push("L",at,",",vt),jt!=null&&zt.push("A",N,",",N," 0 ",dr,",",1-oe," ",jt,",",bt);return zt.push("Z"),zt.join("")}function R(N,L){return"M0,"+N+"A"+N+","+N+" 0 1,"+L+" 0,"+-N+"A"+N+","+N+" 0 1,"+L+" 0,"+N}return S.innerRadius=function(N){return arguments.length?(u=mr(N),S):u},S.outerRadius=function(N){return arguments.length?(f=mr(N),S):f},S.cornerRadius=function(N){return arguments.length?(h=mr(N),S):h},S.padRadius=function(N){return arguments.length?(p=N==Fu?Fu:mr(N),S):p},S.startAngle=function(N){return arguments.length?(v=mr(N),S):v},S.endAngle=function(N){return arguments.length?(x=mr(N),S):x},S.padAngle=function(N){return arguments.length?(O=mr(N),S):O},S.centroid=function(){var N=(+u.apply(this,arguments)+ +f.apply(this,arguments))/2,L=(+v.apply(this,arguments)+ +x.apply(this,arguments))/2-vi;return[Math.cos(L)*N,Math.sin(L)*N]},S};var Fu="auto";function Ac(u){return u.innerRadius}function rv(u){return u.outerRadius}function Tc(u){return u.startAngle}function ss(u){return u.endAngle}function Cc(u){return u&&u.padAngle}function Pu(u,f,h,p){return(u-h)*f-(f-p)*u>0?0:1}function wo(u,f,h,p,v){var x=u[0]-f[0],O=u[1]-f[1],S=(v?p:-p)/Math.sqrt(x*x+O*O),R=S*O,N=-S*x,L=u[0]+R,$=u[1]+N,z=f[0]+R,ie=f[1]+N,oe=(L+z)/2,G=($+ie)/2,X=z-L,J=ie-$,ue=X*X+J*J,le=h-p,te=L*ie-z*$,Re=(J<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-te*te)),Ue=(te*J-X*Re)/ue,tt=(-te*X-J*Re)/ue,je=(te*J+X*Re)/ue,at=(-te*X+J*Re)/ue,vt=Ue-oe,jt=tt-G,bt=je-oe,zt=at-G;return vt*vt+jt*jt>bt*bt+zt*zt&&(Ue=je,tt=at),[[Ue-R,tt-N],[Ue*h/le,tt*h/le]]}function Oc(){return!0}function kc(u){var f=Fi,h=Pi,p=Oc,v=Wn,x=v.key,O=.7;function S(R){var N=[],L=[],$=-1,z=R.length,ie,oe=mr(f),G=mr(h);function X(){N.push("M",v(u(L),O))}for(;++$<z;)p.call(this,ie=R[$],$)?L.push([+oe.call(this,ie,$),+G.call(this,ie,$)]):L.length&&(X(),L=[]);return L.length&&X(),N.length?N.join(""):null}return S.x=function(R){return arguments.length?(f=R,S):f},S.y=function(R){return arguments.length?(h=R,S):h},S.defined=function(R){return arguments.length?(p=R,S):p},S.interpolate=function(R){return arguments.length?(typeof R=="function"?x=v=R:x=(v=Nu.get(R)||Wn).key,S):x},S.tension=function(R){return arguments.length?(O=R,S):O},S}t.svg.line=function(){return kc(nt)};var Nu=t.map({linear:Wn,"linear-closed":Mc,step:Ic,"step-before":Lu,"step-after":Ba,basis:Du,"basis-open":cs,"basis-closed":_o,bundle:So,cardinal:Bi,"cardinal-open":nv,"cardinal-closed":fs,monotone:cy});Nu.forEach(function(u,f){f.key=u,f.closed=/-closed$/.test(u)});function Wn(u){return u.length>1?u.join("L"):u+"Z"}function Mc(u){return u.join("L")+"Z"}function Ic(u){for(var f=0,h=u.length,p=u[0],v=[p[0],",",p[1]];++f<h;)v.push("H",(p[0]+(p=u[f])[0])/2,"V",p[1]);return h>1&&v.push("H",p[0]),v.join("")}function Lu(u){for(var f=0,h=u.length,p=u[0],v=[p[0],",",p[1]];++f<h;)v.push("V",(p=u[f])[1],"H",p[0]);return v.join("")}function Ba(u){for(var f=0,h=u.length,p=u[0],v=[p[0],",",p[1]];++f<h;)v.push("H",(p=u[f])[0],"V",p[1]);return v.join("")}function nv(u,f){return u.length<4?Wn(u):u[1]+$a(u.slice(1,-1),ra(u,f))}function fs(u,f){return u.length<3?Mc(u):u[0]+$a((u.push(u[0]),u),ra([u[u.length-2]].concat(u,[u[1]]),f))}function Bi(u,f){return u.length<3?Wn(u):u[0]+$a(u,ra(u,f))}function $a(u,f){if(f.length<1||u.length!=f.length&&u.length!=f.length+2)return Wn(u);var h=u.length!=f.length,p="",v=u[0],x=u[1],O=f[0],S=O,R=1;if(h&&(p+="Q"+(x[0]-O[0]*2/3)+","+(x[1]-O[1]*2/3)+","+x[0]+","+x[1],v=u[1],R=2),f.length>1){S=f[1],x=u[R],R++,p+="C"+(v[0]+O[0])+","+(v[1]+O[1])+","+(x[0]-S[0])+","+(x[1]-S[1])+","+x[0]+","+x[1];for(var N=2;N<f.length;N++,R++)x=u[R],S=f[N],p+="S"+(x[0]-S[0])+","+(x[1]-S[1])+","+x[0]+","+x[1]}if(h){var L=u[R];p+="Q"+(x[0]+S[0]*2/3)+","+(x[1]+S[1]*2/3)+","+L[0]+","+L[1]}return p}function ra(u,f){for(var h=[],p=(1-f)/2,v,x=u[0],O=u[1],S=1,R=u.length;++S<R;)v=x,x=O,O=u[S],h.push([p*(O[0]-v[0]),p*(O[1]-v[1])]);return h}function Du(u){if(u.length<3)return Wn(u);var f=1,h=u.length,p=u[0],v=p[0],x=p[1],O=[v,v,v,(p=u[1])[0]],S=[x,x,x,p[1]],R=[v,",",x,"L",tn(ui,O),",",tn(ui,S)];for(u.push(u[h-1]);++f<=h;)p=u[f],O.shift(),O.push(p[0]),S.shift(),S.push(p[1]),Bu(R,O,S);return u.pop(),R.push("L",p),R.join("")}function cs(u){if(u.length<4)return Wn(u);for(var f=[],h=-1,p=u.length,v,x=[0],O=[0];++h<3;)v=u[h],x.push(v[0]),O.push(v[1]);for(f.push(tn(ui,x)+","+tn(ui,O)),--h;++h<p;)v=u[h],x.shift(),x.push(v[0]),O.shift(),O.push(v[1]),Bu(f,x,O);return f.join("")}function _o(u){for(var f,h=-1,p=u.length,v=p+4,x,O=[],S=[];++h<4;)x=u[h%p],O.push(x[0]),S.push(x[1]);for(f=[tn(ui,O),",",tn(ui,S)],--h;++h<v;)x=u[h%p],O.shift(),O.push(x[0]),S.shift(),S.push(x[1]),Bu(f,O,S);return f.join("")}function So(u,f){var h=u.length-1;if(h)for(var p=u[0][0],v=u[0][1],x=u[h][0]-p,O=u[h][1]-v,S=-1,R,N;++S<=h;)R=u[S],N=S/h,R[0]=f*R[0]+(1-f)*(p+N*x),R[1]=f*R[1]+(1-f)*(v+N*O);return Du(u)}function tn(u,f){return u[0]*f[0]+u[1]*f[1]+u[2]*f[2]+u[3]*f[3]}var hs=[0,2/3,1/3,0],ds=[0,1/3,2/3,0],ui=[0,1/6,2/3,1/6];function Bu(u,f,h){u.push("C",tn(hs,f),",",tn(hs,h),",",tn(ds,f),",",tn(ds,h),",",tn(ui,f),",",tn(ui,h))}function $u(u,f){return(f[1]-u[1])/(f[0]-u[0])}function Eo(u){for(var f=0,h=u.length-1,p=[],v=u[0],x=u[1],O=p[0]=$u(v,x);++f<h;)p[f]=(O+(O=$u(v=x,x=u[f+1])))/2;return p[f]=O,p}function Ao(u){for(var f=[],h,p,v,x,O=Eo(u),S=-1,R=u.length-1;++S<R;)h=$u(u[S],u[S+1]),_(h)<ir?O[S]=O[S+1]=0:(p=O[S]/h,v=O[S+1]/h,x=p*p+v*v,x>9&&(x=h*3/Math.sqrt(x),O[S]=x*p,O[S+1]=x*v));for(S=-1;++S<=R;)x=(u[Math.min(R,S+1)][0]-u[Math.max(0,S-1)][0])/(6*(1+O[S]*O[S])),f.push([x||0,O[S]*x||0]);return f}function cy(u){return u.length<3?Wn(u):u[0]+$a(u,Ao(u))}t.svg.line.radial=function(){var u=kc(iv);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function iv(u){for(var f,h=-1,p=u.length,v,x;++h<p;)f=u[h],v=f[0],x=f[1]-vi,f[0]=v*Math.cos(x),f[1]=v*Math.sin(x);return u}function Rc(u){var f=Fi,h=Fi,p=0,v=Pi,x=Oc,O=Wn,S=O.key,R=O,N="L",L=.7;function $(z){var ie=[],oe=[],G=[],X=-1,J=z.length,ue,le=mr(f),te=mr(p),Re=f===h?function(){return tt}:mr(h),Ue=p===v?function(){return je}:mr(v),tt,je;function at(){ie.push("M",O(u(G),L),N,R(u(oe.reverse()),L),"Z")}for(;++X<J;)x.call(this,ue=z[X],X)?(oe.push([tt=+le.call(this,ue,X),je=+te.call(this,ue,X)]),G.push([+Re.call(this,ue,X),+Ue.call(this,ue,X)])):oe.length&&(at(),oe=[],G=[]);return oe.length&&at(),ie.length?ie.join(""):null}return $.x=function(z){return arguments.length?(f=h=z,$):h},$.x0=function(z){return arguments.length?(f=z,$):f},$.x1=function(z){return arguments.length?(h=z,$):h},$.y=function(z){return arguments.length?(p=v=z,$):v},$.y0=function(z){return arguments.length?(p=z,$):p},$.y1=function(z){return arguments.length?(v=z,$):v},$.defined=function(z){return arguments.length?(x=z,$):x},$.interpolate=function(z){return arguments.length?(typeof z=="function"?S=O=z:S=(O=Nu.get(z)||Wn).key,R=O.reverse||O,N=O.closed?"M":"L",$):S},$.tension=function(z){return arguments.length?(L=z,$):L},$}Lu.reverse=Ba,Ba.reverse=Lu,t.svg.area=function(){return Rc(nt)},t.svg.area.radial=function(){var u=Rc(iv);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function Fc(u){return u.source}function Pc(u){return u.target}t.svg.chord=function(){var u=Fc,f=Pc,h=hy,p=Tc,v=ss;function x(L,$){var z=O(this,u,L,$),ie=O(this,f,L,$);return"M"+z.p0+R(z.r,z.p1,z.a1-z.a0)+(S(z,ie)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,ie.r,ie.p0)+R(ie.r,ie.p1,ie.a1-ie.a0)+N(ie.r,ie.p1,z.r,z.p0))+"Z"}function O(L,$,z,ie){var oe=$.call(L,z,ie),G=h.call(L,oe,ie),X=p.call(L,oe,ie)-vi,J=v.call(L,oe,ie)-vi;return{r:G,a0:X,a1:J,p0:[G*Math.cos(X),G*Math.sin(X)],p1:[G*Math.cos(J),G*Math.sin(J)]}}function S(L,$){return L.a0==$.a0&&L.a1==$.a1}function R(L,$,z){return"A"+L+","+L+" 0 "+ +(z>Ri)+",1 "+$}function N(L,$,z,ie){return"Q 0,0 "+ie}return x.radius=function(L){return arguments.length?(h=mr(L),x):h},x.source=function(L){return arguments.length?(u=mr(L),x):u},x.target=function(L){return arguments.length?(f=mr(L),x):f},x.startAngle=function(L){return arguments.length?(p=mr(L),x):p},x.endAngle=function(L){return arguments.length?(v=mr(L),x):v},x};function hy(u){return u.radius}t.svg.diagonal=function(){var u=Fc,f=Pc,h=za;function p(v,x){var O=u.call(this,v,x),S=f.call(this,v,x),R=(O.y+S.y)/2,N=[O,{x:O.x,y:R},{x:S.x,y:R},S];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return p.source=function(v){return arguments.length?(u=mr(v),p):u},p.target=function(v){return arguments.length?(f=mr(v),p):f},p.projection=function(v){return arguments.length?(h=v,p):h},p};function za(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),f=za,h=u.projection;return u.projection=function(p){return arguments.length?h(Nc(f=p)):f},u};function Nc(u){return function(){var f=u.apply(this,arguments),h=f[0],p=f[1]-vi;return[h*Math.cos(p),h*Math.sin(p)]}}t.svg.symbol=function(){var u=py,f=dy;function h(p,v){return(ov.get(u.call(this,p,v))||av)(f.call(this,p,v))}return h.type=function(p){return arguments.length?(u=mr(p),h):u},h.size=function(p){return arguments.length?(f=mr(p),h):f},h};function dy(){return 64}function py(){return"circle"}function av(u){var f=Math.sqrt(u/Ri);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var ov=t.map({circle:av,cross:function(u){var f=Math.sqrt(u/5)/2;return"M"+-3*f+","+-f+"H"+-f+"V"+-3*f+"H"+f+"V"+-f+"H"+3*f+"V"+f+"H"+f+"V"+3*f+"H"+-f+"V"+f+"H"+-3*f+"Z"},diamond:function(u){var f=Math.sqrt(u/(2*uv)),h=f*uv;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(u){var f=Math.sqrt(u)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(u){var f=Math.sqrt(u/ps),h=f*ps/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(u){var f=Math.sqrt(u/ps),h=f*ps/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=ov.keys();var ps=Math.sqrt(3),uv=Math.tan(30*ep);Ce.transition=function(u){for(var f=$i||++ms,h=Uu(u),p=[],v,x,O=To||{time:Date.now(),ease:mo,delay:0,duration:250},S=-1,R=this.length;++S<R;){p.push(v=[]);for(var N=this[S],L=-1,$=N.length;++L<$;)(x=N[L])&&Co(x,L,h,f,O),v.push(x)}return zu(p,h,f)},Ce.interrupt=function(u){return this.each(u==null?vs:lv(Uu(u)))};var vs=lv(Uu());function lv(u){return function(){var f,h,p;(f=this[u])&&(p=f[h=f.active])&&(p.timer.c=null,p.timer.t=NaN,--f.count?delete f[h]:delete this[u],f.active+=.5,p.event&&p.event.interrupt.call(this,this.__data__,p.index))}}function zu(u,f,h){return Wt(u,Dr),u.namespace=f,u.id=h,u}var Dr=[],ms=0,$i,To;Dr.call=Ce.call,Dr.empty=Ce.empty,Dr.node=Ce.node,Dr.size=Ce.size,t.transition=function(u,f){return u&&u.transition?$i?u.transition(f):u:t.selection().transition(u)},t.transition.prototype=Dr,Dr.select=function(u){var f=this.id,h=this.namespace,p=[],v,x,O;u=W(u);for(var S=-1,R=this.length;++S<R;){p.push(v=[]);for(var N=this[S],L=-1,$=N.length;++L<$;)(O=N[L])&&(x=u.call(O,O.__data__,L,S))?("__data__"in O&&(x.__data__=O.__data__),Co(x,L,h,f,O[h][f]),v.push(x)):v.push(null)}return zu(p,h,f)},Dr.selectAll=function(u){var f=this.id,h=this.namespace,p=[],v,x,O,S,R;u=ae(u);for(var N=-1,L=this.length;++N<L;)for(var $=this[N],z=-1,ie=$.length;++z<ie;)if(O=$[z]){R=O[h][f],x=u.call(O,O.__data__,z,N),p.push(v=[]);for(var oe=-1,G=x.length;++oe<G;)(S=x[oe])&&Co(S,oe,h,f,R),v.push(S)}return zu(p,h,f)},Dr.filter=function(u){var f=[],h,p,v;typeof u!="function"&&(u=vu(u));for(var x=0,O=this.length;x<O;x++){f.push(h=[]);for(var p=this[x],S=0,R=p.length;S<R;S++)(v=p[S])&&u.call(v,v.__data__,S,x)&&h.push(v)}return zu(f,this.namespace,this.id)},Dr.tween=function(u,f){var h=this.id,p=this.namespace;return arguments.length<2?this.node()[p][h].tween.get(u):pi(this,f==null?function(v){v[p][h].tween.remove(u)}:function(v){v[p][h].tween.set(u,f)})};function gs(u,f,h,p){var v=u.id,x=u.namespace;return pi(u,typeof h=="function"?function(O,S,R){O[x][v].tween.set(f,p(h.call(O,O.__data__,S,R)))}:(h=p(h),function(O){O[x][v].tween.set(f,h)}))}Dr.attr=function(u,f){if(arguments.length<2){for(f in u)this.attr(f,u[f]);return this}var h=u=="transform"?uc:mi,p=t.ns.qualify(u);function v(){this.removeAttribute(p)}function x(){this.removeAttributeNS(p.space,p.local)}function O(R){return R==null?v:(R+="",function(){var N=this.getAttribute(p),L;return N!==R&&(L=h(N,R),function($){this.setAttribute(p,L($))})})}function S(R){return R==null?x:(R+="",function(){var N=this.getAttributeNS(p.space,p.local),L;return N!==R&&(L=h(N,R),function($){this.setAttributeNS(p.space,p.local,L($))})})}return gs(this,"attr."+u,f,p.local?S:O)},Dr.attrTween=function(u,f){var h=t.ns.qualify(u);function p(x,O){var S=f.call(this,x,O,this.getAttribute(h));return S&&function(R){this.setAttribute(h,S(R))}}function v(x,O){var S=f.call(this,x,O,this.getAttributeNS(h.space,h.local));return S&&function(R){this.setAttributeNS(h.space,h.local,S(R))}}return this.tween("attr."+u,h.local?v:p)},Dr.style=function(u,f,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(f="");for(h in u)this.style(h,u[h],f);return this}h=""}function v(){this.style.removeProperty(u)}function x(O){return O==null?v:(O+="",function(){var S=o(this).getComputedStyle(this,null).getPropertyValue(u),R;return S!==O&&(R=mi(S,O),function(N){this.style.setProperty(u,R(N),h)})})}return gs(this,"style."+u,f,x)},Dr.styleTween=function(u,f,h){arguments.length<3&&(h="");function p(v,x){var O=f.call(this,v,x,o(this).getComputedStyle(this,null).getPropertyValue(u));return O&&function(S){this.style.setProperty(u,O(S),h)}}return this.tween("style."+u,p)},Dr.text=function(u){return gs(this,"text",u,Lc)};function Lc(u){return u==null&&(u=""),function(){this.textContent=u}}Dr.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var f;this[u].count<2&&(f=this.parentNode)&&f.removeChild(this)})},Dr.ease=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),pi(this,function(p){p[h][f].ease=u}))},Dr.delay=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:pi(this,typeof u=="function"?function(p,v,x){p[h][f].delay=+u.call(p,p.__data__,v,x)}:(u=+u,function(p){p[h][f].delay=u}))},Dr.duration=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:pi(this,typeof u=="function"?function(p,v,x){p[h][f].duration=Math.max(1,u.call(p,p.__data__,v,x))}:(u=Math.max(1,u),function(p){p[h][f].duration=u}))},Dr.each=function(u,f){var h=this.id,p=this.namespace;if(arguments.length<2){var v=To,x=$i;try{$i=h,pi(this,function(O,S,R){To=O[p][h],u.call(O,O.__data__,S,R)})}finally{To=v,$i=x}}else pi(this,function(O){var S=O[p][h];(S.event||(S.event=t.dispatch("start","end","interrupt"))).on(u,f)});return this},Dr.transition=function(){for(var u=this.id,f=++ms,h=this.namespace,p=[],v,x,O,S,R=0,N=this.length;R<N;R++){p.push(v=[]);for(var x=this[R],L=0,$=x.length;L<$;L++)(O=x[L])&&(S=O[h][u],Co(O,L,h,f,{time:S.time,ease:S.ease,delay:S.delay+S.duration,duration:S.duration})),v.push(O)}return zu(p,h,f)};function Uu(u){return u==null?"__transition__":"__transition_"+u+"__"}function Co(u,f,h,p,v){var x=u[h]||(u[h]={active:0,count:0}),O=x[p],S,R,N,L,$;function z(G){var X=O.delay;if(R.t=X+S,X<=G)return ie(G-X);R.c=ie}function ie(G){var X=x.active,J=x[X];J&&(J.timer.c=null,J.timer.t=NaN,--x.count,delete x[X],J.event&&J.event.interrupt.call(u,u.__data__,J.index));for(var ue in x)if(+ue<p){var le=x[ue];le.timer.c=null,le.timer.t=NaN,--x.count,delete x[ue]}R.c=oe,so(function(){return R.c&&oe(G||1)&&(R.c=null,R.t=NaN),1},0,S),x.active=p,O.event&&O.event.start.call(u,u.__data__,f),$=[],O.tween.forEach(function(te,Re){(Re=Re.call(u,u.__data__,f))&&$.push(Re)}),L=O.ease,N=O.duration}function oe(G){for(var X=G/N,J=L(X),ue=$.length;ue>0;)$[--ue].call(u,J);if(X>=1)return O.event&&O.event.end.call(u,u.__data__,f),--x.count?delete x[p]:delete u[h],1}O||(S=v.time,R=so(z,0,S),O=x[p]={tween:new P,time:S,timer:R,delay:v.delay,duration:v.duration,ease:v.ease,index:f},v=null,++x.count)}t.svg.axis=function(){var u=t.scale.linear(),f=Dc,h=6,p=6,v=3,x=[10],O=null,S;function R(N){N.each(function(){var L=t.select(this),$=this.__chart__||u,z=this.__chart__=u.copy(),ie=O==null?z.ticks?z.ticks.apply(z,x):z.domain():O,oe=S==null?z.tickFormat?z.tickFormat.apply(z,x):nt:S,G=L.selectAll(".tick").data(ie,z),X=G.enter().insert("g",".domain").attr("class","tick").style("opacity",ir),J=t.transition(G.exit()).style("opacity",ir).remove(),ue=t.transition(G.order()).style("opacity",1),le=Math.max(h,0)+v,te,Re=is(z),Ue=L.selectAll(".domain").data([0]),tt=(Ue.enter().append("path").attr("class","domain"),t.transition(Ue));X.append("line"),X.append("text");var je=X.select("line"),at=ue.select("line"),vt=G.select("text").text(oe),jt=X.select("text"),bt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ar,Mr,dr,rt;if(f==="bottom"||f==="top"?(te=$c,ar="x",dr="y",Mr="x2",rt="y2",vt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Re[0]+","+zt*p+"V0H"+Re[1]+"V"+zt*p)):(te=zc,ar="y",dr="x",Mr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),tt.attr("d","M"+zt*p+","+Re[0]+"H0V"+Re[1]+"H"+zt*p)),je.attr(rt,zt*h),jt.attr(dr,zt*le),at.attr(Mr,0).attr(rt,zt*h),bt.attr(ar,0).attr(dr,zt*le),z.rangeBand){var Gt=z,qt=Gt.rangeBand()/2;$=z=function(or){return Gt(or)+qt}}else $.rangeBand?$=z:J.call(te,z,$);X.call(te,$,z),ue.call(te,z,z)})}return R.scale=function(N){return arguments.length?(u=N,R):u},R.orient=function(N){return arguments.length?(f=N in Bc?N+"":Dc,R):f},R.ticks=function(){return arguments.length?(x=n(arguments),R):x},R.tickValues=function(N){return arguments.length?(O=N,R):O},R.tickFormat=function(N){return arguments.length?(S=N,R):S},R.tickSize=function(N){var L=arguments.length;return L?(h=+N,p=+arguments[L-1],R):h},R.innerTickSize=function(N){return arguments.length?(h=+N,R):h},R.outerTickSize=function(N){return arguments.length?(p=+N,R):p},R.tickPadding=function(N){return arguments.length?(v=+N,R):v},R.tickSubdivide=function(){return arguments.length&&R},R};var Dc="bottom",Bc={top:1,right:1,bottom:1,left:1};function $c(u,f,h){u.attr("transform",function(p){var v=f(p);return"translate("+(isFinite(v)?v:h(p))+",0)"})}function zc(u,f,h){u.attr("transform",function(p){var v=f(p);return"translate(0,"+(isFinite(v)?v:h(p))+")"})}t.svg.brush=function(){var u=ct(L,"brushstart","brush","brushend"),f=null,h=null,p=[0,0],v=[0,0],x,O,S=!0,R=!0,N=ju[0];function L(G){G.each(function(){var X=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),J=X.selectAll(".background").data([0]);J.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),X.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=X.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Ue){return"resize "+Ue}).style("cursor",function(Ue){return Uc[Ue]}).append("rect").attr("x",function(Ue){return/[ew]$/.test(Ue)?-3:null}).attr("y",function(Ue){return/^[ns]/.test(Ue)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",L.empty()?"none":null);var le=t.transition(X),te=t.transition(J),Re;f&&(Re=is(f),te.attr("x",Re[0]).attr("width",Re[1]-Re[0]),z(le)),h&&(Re=is(h),te.attr("y",Re[0]).attr("height",Re[1]-Re[0]),ie(le)),$(le)})}L.event=function(G){G.each(function(){var X=u.of(this,arguments),J={x:p,y:v,i:x,j:O},ue=this.__chart__||J;this.__chart__=J,$i?t.select(this).transition().each("start.brush",function(){x=ue.i,O=ue.j,p=ue.x,v=ue.y,X({type:"brushstart"})}).tween("brush:brush",function(){var le=On(p,J.x),te=On(v,J.y);return x=O=null,function(Re){p=J.x=le(Re),v=J.y=te(Re),X({type:"brush",mode:"resize"})}}).each("end.brush",function(){x=J.i,O=J.j,X({type:"brush",mode:"resize"}),X({type:"brushend"})}):(X({type:"brushstart"}),X({type:"brush",mode:"resize"}),X({type:"brushend"}))})};function $(G){G.selectAll(".resize").attr("transform",function(X){return"translate("+p[+/e$/.test(X)]+","+v[+/^s/.test(X)]+")"})}function z(G){G.select(".extent").attr("x",p[0]),G.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function ie(G){G.select(".extent").attr("y",v[0]),G.selectAll(".extent,.e>rect,.w>rect").attr("height",v[1]-v[0])}function oe(){var G=this,X=t.select(t.event.target),J=u.of(G,arguments),ue=t.select(G),le=X.datum(),te=!/^(n|s)$/.test(le)&&f,Re=!/^(e|w)$/.test(le)&&h,Ue=X.classed("extent"),tt=Ll(G),je,at=t.mouse(G),vt,jt=t.select(o(G)).on("keydown.brush",ar).on("keyup.brush",Mr);if(t.event.changedTouches?jt.on("touchmove.brush",dr).on("touchend.brush",Gt):jt.on("mousemove.brush",dr).on("mouseup.brush",Gt),ue.interrupt().selectAll("*").interrupt(),Ue)at[0]=p[0]-at[0],at[1]=v[0]-at[1];else if(le){var bt=+/w$/.test(le),zt=+/^n/.test(le);vt=[p[1-bt]-at[0],v[1-zt]-at[1]],at[0]=p[bt],at[1]=v[zt]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",X.style("cursor")),J({type:"brushstart"}),dr();function ar(){t.event.keyCode==32&&(Ue||(je=null,at[0]-=p[1],at[1]-=v[1],Ue=2),st())}function Mr(){t.event.keyCode==32&&Ue==2&&(at[0]+=p[1],at[1]+=v[1],Ue=0,st())}function dr(){var qt=t.mouse(G),or=!1;vt&&(qt[0]+=vt[0],qt[1]+=vt[1]),Ue||(t.event.altKey?(je||(je=[(p[0]+p[1])/2,(v[0]+v[1])/2]),at[0]=p[+(qt[0]<je[0])],at[1]=v[+(qt[1]<je[1])]):je=null),te&&rt(qt,f,0)&&(z(ue),or=!0),Re&&rt(qt,h,1)&&(ie(ue),or=!0),or&&($(ue),J({type:"brush",mode:Ue?"move":"resize"}))}function rt(qt,or,Er){var Br=is(or),Vr=Br[0],cn=Br[1],xn=at[Er],rn=Er?v:p,kn=rn[1]-rn[0],F,H;if(Ue&&(Vr-=xn,cn-=kn+xn),F=(Er?R:S)?Math.max(Vr,Math.min(cn,qt[Er])):qt[Er],Ue?H=(F+=xn)+kn:(je&&(xn=Math.max(Vr,Math.min(cn,2*je[Er]-F))),xn<F?(H=F,F=xn):H=xn),rn[0]!=F||rn[1]!=H)return Er?O=null:x=null,rn[0]=F,rn[1]=H,!0}function Gt(){dr(),ue.style("pointer-events","all").selectAll(".resize").style("display",L.empty()?"none":null),t.select("body").style("cursor",null),jt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),tt(),J({type:"brushend"})}}return L.x=function(G){return arguments.length?(f=G,N=ju[!f<<1|!h],L):f},L.y=function(G){return arguments.length?(h=G,N=ju[!f<<1|!h],L):h},L.clamp=function(G){return arguments.length?(f&&h?(S=!!G[0],R=!!G[1]):f?S=!!G:h&&(R=!!G),L):f&&h?[S,R]:f?S:h?R:null},L.extent=function(G){var X,J,ue,le,te;return arguments.length?(f&&(X=G[0],J=G[1],h&&(X=X[0],J=J[0]),x=[X,J],f.invert&&(X=f(X),J=f(J)),J<X&&(te=X,X=J,J=te),(X!=p[0]||J!=p[1])&&(p=[X,J])),h&&(ue=G[0],le=G[1],f&&(ue=ue[1],le=le[1]),O=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(te=ue,ue=le,le=te),(ue!=v[0]||le!=v[1])&&(v=[ue,le])),L):(f&&(x?(X=x[0],J=x[1]):(X=p[0],J=p[1],f.invert&&(X=f.invert(X),J=f.invert(J)),J<X&&(te=X,X=J,J=te))),h&&(O?(ue=O[0],le=O[1]):(ue=v[0],le=v[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(te=ue,ue=le,le=te))),f&&h?[[X,ue],[J,le]]:f?[X,J]:h&&[ue,le])},L.clear=function(){return L.empty()||(p=[0,0],v=[0,0],x=O=null),L},L.empty=function(){return!!f&&p[0]==p[1]||!!h&&v[0]==v[1]},t.rebind(L,u,"on")};var Uc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ju=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=Wf(function(u){return u.responseText}),t.json=function(u,f){return jl(u,"application/json",jc,f)};function jc(u){return JSON.parse(u.responseText)}t.html=function(u,f){return jl(u,"text/html",Gc,f)};function Gc(u){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(u.responseText)}t.xml=Wf(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(e$);var h1=new Date,d1=new Date;function fn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=function(a){return fn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return h1.setTime(+a),d1.setTime(+o),e(h1),e(d1),Math.floor(r(h1,d1))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var nm=fn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});nm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?fn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):nm};const n3=nm;var i3=nm.range,im=1e3,fl=6e4,am=36e5,bI=864e5,wI=6048e5,_I=fn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*im)},function(e,t){return(t-e)/im},function(e){return e.getUTCSeconds()});const a3=_I;var o3=_I.range,SI=fn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*im)},function(e,t){e.setTime(+e+t*fl)},function(e,t){return(t-e)/fl},function(e){return e.getMinutes()});const t$=SI;var r$=SI.range,EI=fn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*im-e.getMinutes()*fl)},function(e,t){e.setTime(+e+t*am)},function(e,t){return(t-e)/am},function(e){return e.getHours()});const n$=EI;var i$=EI.range,AI=fn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fl)/bI},function(e){return e.getDate()-1});const A2=AI;var a$=AI.range;function Tl(e){return fn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*fl)/wI})}var om=Tl(0),hd=Tl(1),TI=Tl(2),CI=Tl(3),cl=Tl(4),OI=Tl(5),kI=Tl(6),u3=om.range,o$=hd.range,u$=TI.range,l$=CI.range,s$=cl.range,f$=OI.range,c$=kI.range,MI=fn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const h$=MI;var d$=MI.range,T2=fn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});T2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:fn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const df=T2;var p$=T2.range,II=fn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*fl)},function(e,t){return(t-e)/fl},function(e){return e.getUTCMinutes()});const v$=II;var m$=II.range,RI=fn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*am)},function(e,t){return(t-e)/am},function(e){return e.getUTCHours()});const g$=RI;var y$=RI.range,FI=fn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/bI},function(e){return e.getUTCDate()-1});const C2=FI;var x$=FI.range;function Cl(e){return fn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/wI})}var um=Cl(0),dd=Cl(1),PI=Cl(2),NI=Cl(3),hl=Cl(4),LI=Cl(5),DI=Cl(6),l3=um.range,b$=dd.range,w$=PI.range,_$=NI.range,S$=hl.range,E$=LI.range,A$=DI.range,BI=fn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const T$=BI;var C$=BI.range,O2=fn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});O2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:fn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const pf=O2;var O$=O2.range;const k$=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:fn,timeMillisecond:n3,timeMilliseconds:i3,utcMillisecond:n3,utcMilliseconds:i3,timeSecond:a3,timeSeconds:o3,utcSecond:a3,utcSeconds:o3,timeMinute:t$,timeMinutes:r$,timeHour:n$,timeHours:i$,timeDay:A2,timeDays:a$,timeWeek:om,timeWeeks:u3,timeSunday:om,timeSundays:u3,timeMonday:hd,timeMondays:o$,timeTuesday:TI,timeTuesdays:u$,timeWednesday:CI,timeWednesdays:l$,timeThursday:cl,timeThursdays:s$,timeFriday:OI,timeFridays:f$,timeSaturday:kI,timeSaturdays:c$,timeMonth:h$,timeMonths:d$,timeYear:df,timeYears:p$,utcMinute:v$,utcMinutes:m$,utcHour:g$,utcHours:y$,utcDay:C2,utcDays:x$,utcWeek:um,utcWeeks:l3,utcSunday:um,utcSundays:l3,utcMonday:dd,utcMondays:b$,utcTuesday:PI,utcTuesdays:w$,utcWednesday:NI,utcWednesdays:_$,utcThursday:hl,utcThursdays:S$,utcFriday:LI,utcFridays:E$,utcSaturday:DI,utcSaturdays:A$,utcMonth:T$,utcMonths:C$,utcYear:pf,utcYears:O$},Symbol.toStringTag,{value:"Module"}));function p1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function v1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ih(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function $I(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=ah(i),d=oh(i),y=ah(a),g=oh(a),m=ah(o),E=oh(o),I=ah(l),b=oh(l),w=ah(s),_=oh(s),C={a:De,A:We,b:_t,B:He,c:null,d:p3,e:p3,f:K$,g:lz,G:fz,H:X$,I:Q$,j:Z$,L:zI,m:J$,M:ez,p:be,q:Ve,Q:g3,s:y3,S:tz,u:rz,U:nz,V:iz,w:az,W:oz,x:null,X:null,y:uz,Y:sz,Z:cz,"%":m3},T={a:st,A:Qe,b:ct,B:yt,c:null,d:v3,e:v3,f:vz,g:Az,G:Cz,H:hz,I:dz,j:pz,L:jI,m:mz,M:gz,p:Wt,q:Vt,Q:g3,s:y3,S:yz,u:xz,U:bz,V:wz,w:_z,W:Sz,x:null,X:null,y:Ez,Y:Tz,Z:Oz,"%":m3},P={a:Ee,A:me,b:ke,B:Pe,c:Le,d:h3,e:h3,f:H$,g:c3,G:f3,H:d3,I:d3,j:U$,L:W$,m:z$,M:j$,p:re,q:$$,Q:q$,s:Y$,S:G$,u:P$,U:N$,V:L$,w:F$,W:D$,x:ut,X:nt,y:c3,Y:f3,Z:B$,"%":V$};C.x=D(r,C),C.X=D(n,C),C.c=D(t,C),T.x=D(r,T),T.X=D(n,T),T.c=D(t,T);function D(Ze,At){return function(Ut){var Ce=[],W=-1,ae=0,M=Ze.length,A,k,B;for(Ut instanceof Date||(Ut=new Date(+Ut));++W<M;)Ze.charCodeAt(W)===37&&(Ce.push(Ze.slice(ae,W)),(k=s3[A=Ze.charAt(++W)])!=null?A=Ze.charAt(++W):k=A==="e"?" ":"0",(B=At[A])&&(A=B(Ut,k)),Ce.push(A),ae=W+1);return Ce.push(Ze.slice(ae,W)),Ce.join("")}}function Y(Ze,At){return function(Ut){var Ce=ih(1900,void 0,1),W=j(Ce,Ze,Ut+="",0),ae,M;if(W!=Ut.length)return null;if("Q"in Ce)return new Date(Ce.Q);if("s"in Ce)return new Date(Ce.s*1e3+("L"in Ce?Ce.L:0));if(At&&!("Z"in Ce)&&(Ce.Z=0),"p"in Ce&&(Ce.H=Ce.H%12+Ce.p*12),Ce.m===void 0&&(Ce.m="q"in Ce?Ce.q:0),"V"in Ce){if(Ce.V<1||Ce.V>53)return null;"w"in Ce||(Ce.w=1),"Z"in Ce?(ae=v1(ih(Ce.y,0,1)),M=ae.getUTCDay(),ae=M>4||M===0?dd.ceil(ae):dd(ae),ae=C2.offset(ae,(Ce.V-1)*7),Ce.y=ae.getUTCFullYear(),Ce.m=ae.getUTCMonth(),Ce.d=ae.getUTCDate()+(Ce.w+6)%7):(ae=p1(ih(Ce.y,0,1)),M=ae.getDay(),ae=M>4||M===0?hd.ceil(ae):hd(ae),ae=A2.offset(ae,(Ce.V-1)*7),Ce.y=ae.getFullYear(),Ce.m=ae.getMonth(),Ce.d=ae.getDate()+(Ce.w+6)%7)}else("W"in Ce||"U"in Ce)&&("w"in Ce||(Ce.w="u"in Ce?Ce.u%7:"W"in Ce?1:0),M="Z"in Ce?v1(ih(Ce.y,0,1)).getUTCDay():p1(ih(Ce.y,0,1)).getDay(),Ce.m=0,Ce.d="W"in Ce?(Ce.w+6)%7+Ce.W*7-(M+5)%7:Ce.w+Ce.U*7-(M+6)%7);return"Z"in Ce?(Ce.H+=Ce.Z/100|0,Ce.M+=Ce.Z%100,v1(Ce)):p1(Ce)}}function j(Ze,At,Ut,Ce){for(var W=0,ae=At.length,M=Ut.length,A,k;W<ae;){if(Ce>=M)return-1;if(A=At.charCodeAt(W++),A===37){if(A=At.charAt(W++),k=P[A in s3?At.charAt(W++):A],!k||(Ce=k(Ze,Ut,Ce))<0)return-1}else if(A!=Ut.charCodeAt(Ce++))return-1}return Ce}function re(Ze,At,Ut){var Ce=c.exec(At.slice(Ut));return Ce?(Ze.p=d[Ce[0].toLowerCase()],Ut+Ce[0].length):-1}function Ee(Ze,At,Ut){var Ce=m.exec(At.slice(Ut));return Ce?(Ze.w=E[Ce[0].toLowerCase()],Ut+Ce[0].length):-1}function me(Ze,At,Ut){var Ce=y.exec(At.slice(Ut));return Ce?(Ze.w=g[Ce[0].toLowerCase()],Ut+Ce[0].length):-1}function ke(Ze,At,Ut){var Ce=w.exec(At.slice(Ut));return Ce?(Ze.m=_[Ce[0].toLowerCase()],Ut+Ce[0].length):-1}function Pe(Ze,At,Ut){var Ce=I.exec(At.slice(Ut));return Ce?(Ze.m=b[Ce[0].toLowerCase()],Ut+Ce[0].length):-1}function Le(Ze,At,Ut){return j(Ze,t,At,Ut)}function ut(Ze,At,Ut){return j(Ze,r,At,Ut)}function nt(Ze,At,Ut){return j(Ze,n,At,Ut)}function De(Ze){return o[Ze.getDay()]}function We(Ze){return a[Ze.getDay()]}function _t(Ze){return s[Ze.getMonth()]}function He(Ze){return l[Ze.getMonth()]}function be(Ze){return i[+(Ze.getHours()>=12)]}function Ve(Ze){return 1+~~(Ze.getMonth()/3)}function st(Ze){return o[Ze.getUTCDay()]}function Qe(Ze){return a[Ze.getUTCDay()]}function ct(Ze){return s[Ze.getUTCMonth()]}function yt(Ze){return l[Ze.getUTCMonth()]}function Wt(Ze){return i[+(Ze.getUTCHours()>=12)]}function Vt(Ze){return 1+~~(Ze.getUTCMonth()/3)}return{format:function(Ze){var At=D(Ze+="",C);return At.toString=function(){return Ze},At},parse:function(Ze){var At=Y(Ze+="",!1);return At.toString=function(){return Ze},At},utcFormat:function(Ze){var At=D(Ze+="",T);return At.toString=function(){return Ze},At},utcParse:function(Ze){var At=Y(Ze+="",!0);return At.toString=function(){return Ze},At}}}var s3={"-":"",_:" ",0:"0"},gn=/^\s*\d+/,M$=/^%/,I$=/[\\^$*+?|[\]().{}]/g;function yr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function R$(e){return e.replace(I$,"\\$&")}function ah(e){return new RegExp("^(?:"+e.map(R$).join("|")+")","i")}function oh(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function F$(e,t,r){var n=gn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function P$(e,t,r){var n=gn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function N$(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function L$(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function D$(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function f3(e,t,r){var n=gn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function c3(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function B$(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function $$(e,t,r){var n=gn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function z$(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function h3(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function U$(e,t,r){var n=gn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function d3(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function j$(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function G$(e,t,r){var n=gn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function W$(e,t,r){var n=gn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function H$(e,t,r){var n=gn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function V$(e,t,r){var n=M$.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function q$(e,t,r){var n=gn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Y$(e,t,r){var n=gn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function p3(e,t){return yr(e.getDate(),t,2)}function X$(e,t){return yr(e.getHours(),t,2)}function Q$(e,t){return yr(e.getHours()%12||12,t,2)}function Z$(e,t){return yr(1+A2.count(df(e),e),t,3)}function zI(e,t){return yr(e.getMilliseconds(),t,3)}function K$(e,t){return zI(e,t)+"000"}function J$(e,t){return yr(e.getMonth()+1,t,2)}function ez(e,t){return yr(e.getMinutes(),t,2)}function tz(e,t){return yr(e.getSeconds(),t,2)}function rz(e){var t=e.getDay();return t===0?7:t}function nz(e,t){return yr(om.count(df(e)-1,e),t,2)}function UI(e){var t=e.getDay();return t>=4||t===0?cl(e):cl.ceil(e)}function iz(e,t){return e=UI(e),yr(cl.count(df(e),e)+(df(e).getDay()===4),t,2)}function az(e){return e.getDay()}function oz(e,t){return yr(hd.count(df(e)-1,e),t,2)}function uz(e,t){return yr(e.getFullYear()%100,t,2)}function lz(e,t){return e=UI(e),yr(e.getFullYear()%100,t,2)}function sz(e,t){return yr(e.getFullYear()%1e4,t,4)}function fz(e,t){var r=e.getDay();return e=r>=4||r===0?cl(e):cl.ceil(e),yr(e.getFullYear()%1e4,t,4)}function cz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function v3(e,t){return yr(e.getUTCDate(),t,2)}function hz(e,t){return yr(e.getUTCHours(),t,2)}function dz(e,t){return yr(e.getUTCHours()%12||12,t,2)}function pz(e,t){return yr(1+C2.count(pf(e),e),t,3)}function jI(e,t){return yr(e.getUTCMilliseconds(),t,3)}function vz(e,t){return jI(e,t)+"000"}function mz(e,t){return yr(e.getUTCMonth()+1,t,2)}function gz(e,t){return yr(e.getUTCMinutes(),t,2)}function yz(e,t){return yr(e.getUTCSeconds(),t,2)}function xz(e){var t=e.getUTCDay();return t===0?7:t}function bz(e,t){return yr(um.count(pf(e)-1,e),t,2)}function GI(e){var t=e.getUTCDay();return t>=4||t===0?hl(e):hl.ceil(e)}function wz(e,t){return e=GI(e),yr(hl.count(pf(e),e)+(pf(e).getUTCDay()===4),t,2)}function _z(e){return e.getUTCDay()}function Sz(e,t){return yr(dd.count(pf(e)-1,e),t,2)}function Ez(e,t){return yr(e.getUTCFullYear()%100,t,2)}function Az(e,t){return e=GI(e),yr(e.getUTCFullYear()%100,t,2)}function Tz(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function Cz(e,t){var r=e.getUTCDay();return e=r>=4||r===0?hl(e):hl.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function Oz(){return"+0000"}function m3(){return"%"}function g3(e){return+e}function y3(e){return Math.floor(+e/1e3)}var ws,WI,HI,k2,M2;VI({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function VI(e){return ws=$I(e),WI=ws.format,HI=ws.parse,k2=ws.utcFormat,M2=ws.utcParse,ws}var qI="%Y-%m-%dT%H:%M:%S.%LZ";function kz(e){return e.toISOString()}var Mz=Date.prototype.toISOString?kz:k2(qI);const Iz=Mz;function Rz(e){var t=new Date(e);return isNaN(t)?null:t}var Fz=+new Date("2000-01-01T00:00:00.000Z")?Rz:M2(qI);const Pz=Fz,Nz=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:VI,get timeFormat(){return WI},get timeParse(){return HI},get utcFormat(){return k2},get utcParse(){return M2},timeFormatLocale:$I,isoFormat:Iz,isoParse:Pz},Symbol.toStringTag,{value:"Module"})),xte=yl(Nz);function Lz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lm(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function vf(e){return e=lm(Math.abs(e)),e?e[1]:NaN}function Dz(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Bz(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var $z=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sm(e){if(!(t=$z.exec(e)))throw new Error("invalid format: "+e);var t;return new Gm({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}sm.prototype=Gm.prototype;function Gm(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Gm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function zz(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var YI;function Uz(e,t){var r=lm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(YI=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+lm(e,Math.max(0,t+a-1))[0]}function x3(e,t){var r=lm(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const b3={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Lz,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return x3(e*100,t)},r:x3,s:Uz,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function w3(e){return e}var _3=Array.prototype.map,S3=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function XI(e){var t=e.grouping===void 0||e.thousands===void 0?w3:Dz(_3.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?w3:Bz(_3.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(y){y=sm(y);var g=y.fill,m=y.align,E=y.sign,I=y.symbol,b=y.zero,w=y.width,_=y.comma,C=y.precision,T=y.trim,P=y.type;P==="n"?(_=!0,P="g"):b3[P]||(C===void 0&&(C=12),T=!0,P="g"),(b||g==="0"&&m==="=")&&(b=!0,g="0",m="=");var D=I==="$"?r:I==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",Y=I==="$"?n:/[%p]/.test(P)?o:"",j=b3[P],re=/[defgprs%]/.test(P);C=C===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function Ee(me){var ke=D,Pe=Y,Le,ut,nt;if(P==="c")Pe=j(me)+Pe,me="";else{me=+me;var De=me<0||1/me<0;if(me=isNaN(me)?s:j(Math.abs(me),C),T&&(me=zz(me)),De&&+me==0&&E!=="+"&&(De=!1),ke=(De?E==="("?E:l:E==="-"||E==="("?"":E)+ke,Pe=(P==="s"?S3[8+YI/3]:"")+Pe+(De&&E==="("?")":""),re){for(Le=-1,ut=me.length;++Le<ut;)if(nt=me.charCodeAt(Le),48>nt||nt>57){Pe=(nt===46?i+me.slice(Le+1):me.slice(Le))+Pe,me=me.slice(0,Le);break}}}_&&!b&&(me=t(me,1/0));var We=ke.length+me.length+Pe.length,_t=We<w?new Array(w-We+1).join(g):"";switch(_&&b&&(me=t(_t+me,_t.length?w-Pe.length:1/0),_t=""),m){case"<":me=ke+me+Pe+_t;break;case"=":me=ke+_t+me+Pe;break;case"^":me=_t.slice(0,We=_t.length>>1)+ke+me+Pe+_t.slice(We);break;default:me=_t+ke+me+Pe;break}return a(me)}return Ee.toString=function(){return y+""},Ee}function d(y,g){var m=c((y=sm(y),y.type="f",y)),E=Math.max(-8,Math.min(8,Math.floor(vf(g)/3)))*3,I=Math.pow(10,-E),b=S3[8+E/3];return function(w){return m(I*w)+b}}return{format:c,formatPrefix:d}}var Ev,QI,ZI;KI({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function KI(e){return Ev=XI(e),QI=Ev.format,ZI=Ev.formatPrefix,Ev}function jz(e){return Math.max(0,-vf(Math.abs(e)))}function Gz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vf(t)/3)))*3-vf(Math.abs(e)))}function Wz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vf(t)-vf(e))+1}const Hz=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:KI,get format(){return QI},get formatPrefix(){return ZI},formatLocale:XI,formatSpecifier:sm,FormatSpecifier:Gm,precisionFixed:jz,precisionPrefix:Gz,precisionRound:Wz},Symbol.toStringTag,{value:"Module"})),bte=yl(Hz);var Vz=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},qz=Vz,wte=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&qz(r))return!1}else if(t!=="number")return!1;return e-e<1},Yz={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function c(W,ae){if(W=W||"",ae=ae||{},W instanceof c)return W;if(!(this instanceof c))return new c(W,ae);var M=d(W);this._originalInput=W,this._r=M.r,this._g=M.g,this._b=M.b,this._a=M.a,this._roundA=a(100*this._a)/100,this._format=ae.format||M.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=M.ok,this._tc_id=i++}c.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 W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),ae,M,A,k,B,fe;return ae=W.r/255,M=W.g/255,A=W.b/255,ae<=.03928?k=ae/12.92:k=t.pow((ae+.055)/1.055,2.4),M<=.03928?B=M/12.92:B=t.pow((M+.055)/1.055,2.4),A<=.03928?fe=A/12.92:fe=t.pow((A+.055)/1.055,2.4),.2126*k+.7152*B+.0722*fe},setAlpha:function(W){return this._a=_t(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=E(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=E(this._r,this._g,this._b),ae=a(W.h*360),M=a(W.s*100),A=a(W.v*100);return this._a==1?"hsv("+ae+", "+M+"%, "+A+"%)":"hsva("+ae+", "+M+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var W=g(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=g(this._r,this._g,this._b),ae=a(W.h*360),M=a(W.s*100),A=a(W.l*100);return this._a==1?"hsl("+ae+", "+M+"%, "+A+"%)":"hsla("+ae+", "+M+"%, "+A+"%, "+this._roundA+")"},toHex:function(W){return b(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return w(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:De[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var ae="#"+_(this._r,this._g,this._b,this._a),M=ae,A=this._gradientType?"GradientType = 1, ":"";if(W){var k=c(W);M="#"+_(k._r,k._g,k._b,k._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+ae+",endColorstr="+M+")"},toString:function(W){var ae=!!W;W=W||this._format;var M=!1,A=this._a<1&&this._a>=0,k=!ae&&A&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return k?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(M=this.toRgbString()),W==="prgb"&&(M=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(M=this.toHexString()),W==="hex3"&&(M=this.toHexString(!0)),W==="hex4"&&(M=this.toHex8String(!0)),W==="hex8"&&(M=this.toHex8String()),W==="name"&&(M=this.toName()),W==="hsl"&&(M=this.toHslString()),W==="hsv"&&(M=this.toHsvString()),M||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(W,ae){var M=W.apply(null,[this].concat([].slice.call(ae)));return this._r=M._r,this._g=M._g,this._b=M._b,this.setAlpha(M._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(Y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(re,arguments)},_applyCombination:function(W,ae){return W.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(Le,arguments)},complement:function(){return this._applyCombination(Ee,arguments)},monochromatic:function(){return this._applyCombination(ut,arguments)},splitcomplement:function(){return this._applyCombination(Pe,arguments)},triad:function(){return this._applyCombination(me,arguments)},tetrad:function(){return this._applyCombination(ke,arguments)}},c.fromRatio=function(W,ae){if(typeof W=="object"){var M={};for(var A in W)W.hasOwnProperty(A)&&(A==="a"?M[A]=W[A]:M[A]=yt(W[A]));W=M}return c(W,ae)};function d(W){var ae={r:0,g:0,b:0},M=1,A=null,k=null,B=null,fe=!1,Fe=!1;return typeof W=="string"&&(W=Ut(W)),typeof W=="object"&&(At(W.r)&&At(W.g)&&At(W.b)?(ae=y(W.r,W.g,W.b),fe=!0,Fe=String(W.r).substr(-1)==="%"?"prgb":"rgb"):At(W.h)&&At(W.s)&&At(W.v)?(A=yt(W.s),k=yt(W.v),ae=I(W.h,A,k),fe=!0,Fe="hsv"):At(W.h)&&At(W.s)&&At(W.l)&&(A=yt(W.s),B=yt(W.l),ae=m(W.h,A,B),fe=!0,Fe="hsl"),W.hasOwnProperty("a")&&(M=W.a)),M=_t(M),{ok:fe,format:W.format||Fe,r:o(255,l(ae.r,0)),g:o(255,l(ae.g,0)),b:o(255,l(ae.b,0)),a:M}}function y(W,ae,M){return{r:He(W,255)*255,g:He(ae,255)*255,b:He(M,255)*255}}function g(W,ae,M){W=He(W,255),ae=He(ae,255),M=He(M,255);var A=l(W,ae,M),k=o(W,ae,M),B,fe,Fe=(A+k)/2;if(A==k)B=fe=0;else{var ze=A-k;switch(fe=Fe>.5?ze/(2-A-k):ze/(A+k),A){case W:B=(ae-M)/ze+(ae<M?6:0);break;case ae:B=(M-W)/ze+2;break;case M:B=(W-ae)/ze+4;break}B/=6}return{h:B,s:fe,l:Fe}}function m(W,ae,M){var A,k,B;W=He(W,360),ae=He(ae,100),M=He(M,100);function fe(Qt,sr,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?Qt+(sr-Qt)*6*nr:nr<1/2?sr:nr<2/3?Qt+(sr-Qt)*(2/3-nr)*6:Qt}if(ae===0)A=k=B=M;else{var Fe=M<.5?M*(1+ae):M+ae-M*ae,ze=2*M-Fe;A=fe(ze,Fe,W+1/3),k=fe(ze,Fe,W),B=fe(ze,Fe,W-1/3)}return{r:A*255,g:k*255,b:B*255}}function E(W,ae,M){W=He(W,255),ae=He(ae,255),M=He(M,255);var A=l(W,ae,M),k=o(W,ae,M),B,fe,Fe=A,ze=A-k;if(fe=A===0?0:ze/A,A==k)B=0;else{switch(A){case W:B=(ae-M)/ze+(ae<M?6:0);break;case ae:B=(M-W)/ze+2;break;case M:B=(W-ae)/ze+4;break}B/=6}return{h:B,s:fe,v:Fe}}function I(W,ae,M){W=He(W,360)*6,ae=He(ae,100),M=He(M,100);var A=t.floor(W),k=W-A,B=M*(1-ae),fe=M*(1-k*ae),Fe=M*(1-(1-k)*ae),ze=A%6,Qt=[M,fe,B,B,Fe,M][ze],sr=[Fe,M,M,fe,B,B][ze],nr=[B,B,Fe,M,M,fe][ze];return{r:Qt*255,g:sr*255,b:nr*255}}function b(W,ae,M,A){var k=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(M).toString(16))];return A&&k[0].charAt(0)==k[0].charAt(1)&&k[1].charAt(0)==k[1].charAt(1)&&k[2].charAt(0)==k[2].charAt(1)?k[0].charAt(0)+k[1].charAt(0)+k[2].charAt(0):k.join("")}function w(W,ae,M,A,k){var B=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(M).toString(16)),ct(Wt(A))];return k&&B[0].charAt(0)==B[0].charAt(1)&&B[1].charAt(0)==B[1].charAt(1)&&B[2].charAt(0)==B[2].charAt(1)&&B[3].charAt(0)==B[3].charAt(1)?B[0].charAt(0)+B[1].charAt(0)+B[2].charAt(0)+B[3].charAt(0):B.join("")}function _(W,ae,M,A){var k=[ct(Wt(A)),ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(M).toString(16))];return k.join("")}c.equals=function(W,ae){return!W||!ae?!1:c(W).toRgbString()==c(ae).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})};function C(W,ae){ae=ae===0?0:ae||10;var M=c(W).toHsl();return M.s-=ae/100,M.s=be(M.s),c(M)}function T(W,ae){ae=ae===0?0:ae||10;var M=c(W).toHsl();return M.s+=ae/100,M.s=be(M.s),c(M)}function P(W){return c(W).desaturate(100)}function D(W,ae){ae=ae===0?0:ae||10;var M=c(W).toHsl();return M.l+=ae/100,M.l=be(M.l),c(M)}function Y(W,ae){ae=ae===0?0:ae||10;var M=c(W).toRgb();return M.r=l(0,o(255,M.r-a(255*-(ae/100)))),M.g=l(0,o(255,M.g-a(255*-(ae/100)))),M.b=l(0,o(255,M.b-a(255*-(ae/100)))),c(M)}function j(W,ae){ae=ae===0?0:ae||10;var M=c(W).toHsl();return M.l-=ae/100,M.l=be(M.l),c(M)}function re(W,ae){var M=c(W).toHsl(),A=(M.h+ae)%360;return M.h=A<0?360+A:A,c(M)}function Ee(W){var ae=c(W).toHsl();return ae.h=(ae.h+180)%360,c(ae)}function me(W){var ae=c(W).toHsl(),M=ae.h;return[c(W),c({h:(M+120)%360,s:ae.s,l:ae.l}),c({h:(M+240)%360,s:ae.s,l:ae.l})]}function ke(W){var ae=c(W).toHsl(),M=ae.h;return[c(W),c({h:(M+90)%360,s:ae.s,l:ae.l}),c({h:(M+180)%360,s:ae.s,l:ae.l}),c({h:(M+270)%360,s:ae.s,l:ae.l})]}function Pe(W){var ae=c(W).toHsl(),M=ae.h;return[c(W),c({h:(M+72)%360,s:ae.s,l:ae.l}),c({h:(M+216)%360,s:ae.s,l:ae.l})]}function Le(W,ae,M){ae=ae||6,M=M||30;var A=c(W).toHsl(),k=360/M,B=[c(W)];for(A.h=(A.h-(k*ae>>1)+720)%360;--ae;)A.h=(A.h+k)%360,B.push(c(A));return B}function ut(W,ae){ae=ae||6;for(var M=c(W).toHsv(),A=M.h,k=M.s,B=M.v,fe=[],Fe=1/ae;ae--;)fe.push(c({h:A,s:k,v:B})),B=(B+Fe)%1;return fe}c.mix=function(W,ae,M){M=M===0?0:M||50;var A=c(W).toRgb(),k=c(ae).toRgb(),B=M/100,fe={r:(k.r-A.r)*B+A.r,g:(k.g-A.g)*B+A.g,b:(k.b-A.b)*B+A.b,a:(k.a-A.a)*B+A.a};return c(fe)},c.readability=function(W,ae){var M=c(W),A=c(ae);return(t.max(M.getLuminance(),A.getLuminance())+.05)/(t.min(M.getLuminance(),A.getLuminance())+.05)},c.isReadable=function(W,ae,M){var A=c.readability(W,ae),k,B;switch(B=!1,k=Ce(M),k.level+k.size){case"AAsmall":case"AAAlarge":B=A>=4.5;break;case"AAlarge":B=A>=3;break;case"AAAsmall":B=A>=7;break}return B},c.mostReadable=function(W,ae,M){var A=null,k=0,B,fe,Fe,ze;M=M||{},fe=M.includeFallbackColors,Fe=M.level,ze=M.size;for(var Qt=0;Qt<ae.length;Qt++)B=c.readability(W,ae[Qt]),B>k&&(k=B,A=c(ae[Qt]));return c.isReadable(W,A,{level:Fe,size:ze})||!fe?A:(M.includeFallbackColors=!1,c.mostReadable(W,["#fff","#000"],M))};var nt=c.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"},De=c.hexNames=We(nt);function We(W){var ae={};for(var M in W)W.hasOwnProperty(M)&&(ae[W[M]]=M);return ae}function _t(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function He(W,ae){st(W)&&(W="100%");var M=Qe(W);return W=o(ae,l(0,parseFloat(W))),M&&(W=parseInt(W*ae,10)/100),t.abs(W-ae)<1e-6?1:W%ae/parseFloat(ae)}function be(W){return o(1,l(0,W))}function Ve(W){return parseInt(W,16)}function st(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Qe(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ct(W){return W.length==1?"0"+W:""+W}function yt(W){return W<=1&&(W=W*100+"%"),W}function Wt(W){return t.round(parseFloat(W)*255).toString(16)}function Vt(W){return Ve(W)/255}var Ze=function(){var W="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",M="(?:"+ae+")|(?:"+W+")",A="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",k="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?";return{CSS_UNIT:new RegExp(M),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+k),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+k),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+k),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 At(W){return!!Ze.CSS_UNIT.exec(W)}function Ut(W){W=W.replace(r,"").replace(n,"").toLowerCase();var ae=!1;if(nt[W])W=nt[W],ae=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var M;return(M=Ze.rgb.exec(W))?{r:M[1],g:M[2],b:M[3]}:(M=Ze.rgba.exec(W))?{r:M[1],g:M[2],b:M[3],a:M[4]}:(M=Ze.hsl.exec(W))?{h:M[1],s:M[2],l:M[3]}:(M=Ze.hsla.exec(W))?{h:M[1],s:M[2],l:M[3],a:M[4]}:(M=Ze.hsv.exec(W))?{h:M[1],s:M[2],v:M[3]}:(M=Ze.hsva.exec(W))?{h:M[1],s:M[2],v:M[3],a:M[4]}:(M=Ze.hex8.exec(W))?{r:Ve(M[1]),g:Ve(M[2]),b:Ve(M[3]),a:Vt(M[4]),format:ae?"name":"hex8"}:(M=Ze.hex6.exec(W))?{r:Ve(M[1]),g:Ve(M[2]),b:Ve(M[3]),format:ae?"name":"hex"}:(M=Ze.hex4.exec(W))?{r:Ve(M[1]+""+M[1]),g:Ve(M[2]+""+M[2]),b:Ve(M[3]+""+M[3]),a:Vt(M[4]+""+M[4]),format:ae?"name":"hex8"}:(M=Ze.hex3.exec(W))?{r:Ve(M[1]+""+M[1]),g:Ve(M[2]+""+M[2]),b:Ve(M[3]+""+M[3]),format:ae?"name":"hex"}:!1}function Ce(W){var ae,M;return W=W||{level:"AA",size:"small"},ae=(W.level||"AA").toUpperCase(),M=(W.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),M!=="small"&&M!=="large"&&(M="small"),{level:ae,size:M}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Yz);var Xz=Qz;function Qz(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Zz=Kz;function Kz(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var Jz=e7;function e7(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var JI=t7;function t7(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var r7=n7;function n7(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var i7=a7;function a7(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],d=t[8],y=t[9],g=t[10],m=t[11],E=t[12],I=t[13],b=t[14],w=t[15],_=r*l-n*o,C=r*s-i*o,T=r*c-a*o,P=n*s-i*l,D=n*c-a*l,Y=i*c-a*s,j=d*I-y*E,re=d*b-g*E,Ee=d*w-m*E,me=y*b-g*I,ke=y*w-m*I,Pe=g*w-m*b,Le=_*Pe-C*ke+T*me+P*Ee-D*re+Y*j;return Le?(Le=1/Le,e[0]=(l*Pe-s*ke+c*me)*Le,e[1]=(i*ke-n*Pe-a*me)*Le,e[2]=(I*Y-b*D+w*P)*Le,e[3]=(g*D-y*Y-m*P)*Le,e[4]=(s*Ee-o*Pe-c*re)*Le,e[5]=(r*Pe-i*Ee+a*re)*Le,e[6]=(b*T-E*Y-w*C)*Le,e[7]=(d*Y-g*T+m*C)*Le,e[8]=(o*ke-l*Ee+c*j)*Le,e[9]=(n*Ee-r*ke-a*j)*Le,e[10]=(E*D-I*T+w*_)*Le,e[11]=(y*T-d*D-m*_)*Le,e[12]=(l*re-o*me-s*j)*Le,e[13]=(r*me-n*re+i*j)*Le,e[14]=(I*C-E*P-b*_)*Le,e[15]=(d*P-y*C+g*_)*Le,e):null}var o7=u7;function u7(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],d=t[8],y=t[9],g=t[10],m=t[11],E=t[12],I=t[13],b=t[14],w=t[15];return e[0]=l*(g*w-m*b)-y*(s*w-c*b)+I*(s*m-c*g),e[1]=-(n*(g*w-m*b)-y*(i*w-a*b)+I*(i*m-a*g)),e[2]=n*(s*w-c*b)-l*(i*w-a*b)+I*(i*c-a*s),e[3]=-(n*(s*m-c*g)-l*(i*m-a*g)+y*(i*c-a*s)),e[4]=-(o*(g*w-m*b)-d*(s*w-c*b)+E*(s*m-c*g)),e[5]=r*(g*w-m*b)-d*(i*w-a*b)+E*(i*m-a*g),e[6]=-(r*(s*w-c*b)-o*(i*w-a*b)+E*(i*c-a*s)),e[7]=r*(s*m-c*g)-o*(i*m-a*g)+d*(i*c-a*s),e[8]=o*(y*w-m*I)-d*(l*w-c*I)+E*(l*m-c*y),e[9]=-(r*(y*w-m*I)-d*(n*w-a*I)+E*(n*m-a*y)),e[10]=r*(l*w-c*I)-o*(n*w-a*I)+E*(n*c-a*l),e[11]=-(r*(l*m-c*y)-o*(n*m-a*y)+d*(n*c-a*l)),e[12]=-(o*(y*b-g*I)-d*(l*b-s*I)+E*(l*g-s*y)),e[13]=r*(y*b-g*I)-d*(n*b-i*I)+E*(n*g-i*y),e[14]=-(r*(l*b-s*I)-o*(n*b-i*I)+E*(n*s-i*l)),e[15]=r*(l*g-s*y)-o*(n*g-i*y)+d*(n*s-i*l),e}var l7=s7;function s7(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],c=e[8],d=e[9],y=e[10],g=e[11],m=e[12],E=e[13],I=e[14],b=e[15],w=t*o-r*a,_=t*l-n*a,C=t*s-i*a,T=r*l-n*o,P=r*s-i*o,D=n*s-i*l,Y=c*E-d*m,j=c*I-y*m,re=c*b-g*m,Ee=d*I-y*E,me=d*b-g*E,ke=y*b-g*I;return w*ke-_*me+C*Ee+T*re-P*j+D*Y}var f7=c7;function c7(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],c=t[6],d=t[7],y=t[8],g=t[9],m=t[10],E=t[11],I=t[12],b=t[13],w=t[14],_=t[15],C=r[0],T=r[1],P=r[2],D=r[3];return e[0]=C*n+T*l+P*y+D*I,e[1]=C*i+T*s+P*g+D*b,e[2]=C*a+T*c+P*m+D*w,e[3]=C*o+T*d+P*E+D*_,C=r[4],T=r[5],P=r[6],D=r[7],e[4]=C*n+T*l+P*y+D*I,e[5]=C*i+T*s+P*g+D*b,e[6]=C*a+T*c+P*m+D*w,e[7]=C*o+T*d+P*E+D*_,C=r[8],T=r[9],P=r[10],D=r[11],e[8]=C*n+T*l+P*y+D*I,e[9]=C*i+T*s+P*g+D*b,e[10]=C*a+T*c+P*m+D*w,e[11]=C*o+T*d+P*E+D*_,C=r[12],T=r[13],P=r[14],D=r[15],e[12]=C*n+T*l+P*y+D*I,e[13]=C*i+T*s+P*g+D*b,e[14]=C*a+T*c+P*m+D*w,e[15]=C*o+T*d+P*E+D*_,e}var h7=d7;function d7(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,c,d,y,g,m,E,I,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],c=t[3],d=t[4],y=t[5],g=t[6],m=t[7],E=t[8],I=t[9],b=t[10],w=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=c,e[4]=d,e[5]=y,e[6]=g,e[7]=m,e[8]=E,e[9]=I,e[10]=b,e[11]=w,e[12]=o*n+d*i+E*a+t[12],e[13]=l*n+y*i+I*a+t[13],e[14]=s*n+g*i+b*a+t[14],e[15]=c*n+m*i+w*a+t[15]),e}var p7=v7;function v7(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var m7=g7;function g7(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,c,d,y,g,m,E,I,b,w,_,C,T,P,D,Y,j,re,Ee,me,ke,Pe,Le,ut;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),c=Math.cos(r),d=1-c,y=t[0],g=t[1],m=t[2],E=t[3],I=t[4],b=t[5],w=t[6],_=t[7],C=t[8],T=t[9],P=t[10],D=t[11],Y=i*i*d+c,j=a*i*d+o*s,re=o*i*d-a*s,Ee=i*a*d-o*s,me=a*a*d+c,ke=o*a*d+i*s,Pe=i*o*d+a*s,Le=a*o*d-i*s,ut=o*o*d+c,e[0]=y*Y+I*j+C*re,e[1]=g*Y+b*j+T*re,e[2]=m*Y+w*j+P*re,e[3]=E*Y+_*j+D*re,e[4]=y*Ee+I*me+C*ke,e[5]=g*Ee+b*me+T*ke,e[6]=m*Ee+w*me+P*ke,e[7]=E*Ee+_*me+D*ke,e[8]=y*Pe+I*Le+C*ut,e[9]=g*Pe+b*Le+T*ut,e[10]=m*Pe+w*Le+P*ut,e[11]=E*Pe+_*Le+D*ut,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var y7=x7;function x7(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],c=t[8],d=t[9],y=t[10],g=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*n,e[5]=o*i+d*n,e[6]=l*i+y*n,e[7]=s*i+g*n,e[8]=c*i-a*n,e[9]=d*i-o*n,e[10]=y*i-l*n,e[11]=g*i-s*n,e}var b7=w7;function w7(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[8],d=t[9],y=t[10],g=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-c*n,e[1]=o*i-d*n,e[2]=l*i-y*n,e[3]=s*i-g*n,e[8]=a*n+c*i,e[9]=o*n+d*i,e[10]=l*n+y*i,e[11]=s*n+g*i,e}var _7=S7;function S7(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[4],d=t[5],y=t[6],g=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*n,e[1]=o*i+d*n,e[2]=l*i+y*n,e[3]=s*i+g*n,e[4]=c*i-a*n,e[5]=d*i-o*n,e[6]=y*i-l*n,e[7]=g*i-s*n,e}var E7=A7;function A7(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,o*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var T7=C7;function C7(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,c=a+a,d=n*l,y=n*s,g=n*c,m=i*s,E=i*c,I=a*c,b=o*l,w=o*s,_=o*c;return e[0]=1-(m+I),e[1]=y+_,e[2]=g-w,e[3]=0,e[4]=y-_,e[5]=1-(d+I),e[6]=E+b,e[7]=0,e[8]=g+w,e[9]=E-b,e[10]=1-(d+m),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var O7=k7;function k7(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var M7=I7;function I7(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var R7=F7;function F7(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var P7=N7;function N7(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var L7=D7;function D7(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var B7=$7;function $7(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,c=r*o,d=n*o,y=n*l,g=i*o,m=i*l,E=i*s,I=a*o,b=a*l,w=a*s;return e[0]=1-y-E,e[1]=d+w,e[2]=g-b,e[3]=0,e[4]=d-w,e[5]=1-c-E,e[6]=m+I,e[7]=0,e[8]=g+b,e[9]=m-I,e[10]=1-c-y,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var z7=U7;function U7(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),c=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}var j7=G7;function G7(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var W7=H7;function H7(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),c=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(i-a)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var V7=q7;function q7(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),c=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*c,e[15]=1,e}var Y7=JI,X7=Q7;function Q7(e,t,r,n){var i,a,o,l,s,c,d,y,g,m,E=t[0],I=t[1],b=t[2],w=n[0],_=n[1],C=n[2],T=r[0],P=r[1],D=r[2];return Math.abs(E-T)<1e-6&&Math.abs(I-P)<1e-6&&Math.abs(b-D)<1e-6?Y7(e):(d=E-T,y=I-P,g=b-D,m=1/Math.sqrt(d*d+y*y+g*g),d*=m,y*=m,g*=m,i=_*g-C*y,a=C*d-w*g,o=w*y-_*d,m=Math.sqrt(i*i+a*a+o*o),m?(m=1/m,i*=m,a*=m,o*=m):(i=0,a=0,o=0),l=y*o-g*a,s=g*i-d*o,c=d*a-y*i,m=Math.sqrt(l*l+s*s+c*c),m?(m=1/m,l*=m,s*=m,c*=m):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=y,e[7]=0,e[8]=o,e[9]=c,e[10]=g,e[11]=0,e[12]=-(i*E+a*I+o*b),e[13]=-(l*E+s*I+c*b),e[14]=-(d*E+y*I+g*b),e[15]=1,e)}var Z7=K7;function K7(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var _te={create:Xz,clone:Zz,copy:Jz,identity:JI,transpose:r7,invert:i7,adjoint:o7,determinant:l7,multiply:f7,translate:h7,scale:p7,rotate:m7,rotateX:y7,rotateY:b7,rotateZ:_7,fromRotation:E7,fromRotationTranslation:T7,fromScaling:O7,fromTranslation:M7,fromXRotation:R7,fromYRotation:P7,fromZRotation:L7,fromQuat:B7,frustum:z7,perspective:j7,perspectiveFromFieldOfView:W7,ortho:V7,lookAt:X7,str:Z7},I2={exports:{}};I2.exports=R2;I2.exports.isMobile=R2;I2.exports.default=R2;var J7=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e9=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function R2(e){e||(e={});var t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;var r=e.tablet?e9.test(t):J7.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var t9=!0,r9=t9,Ew;typeof _r.matchMedia=="function"?Ew=!_r.matchMedia("(hover: none)").matches:Ew=r9;var Ste=Ew,eR={exports:{}},rf=typeof Reflect=="object"?Reflect:null,E3=rf&&typeof rf.apply=="function"?rf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},c0;rf&&typeof rf.ownKeys=="function"?c0=rf.ownKeys:Object.getOwnPropertySymbols?c0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:c0=function(t){return Object.getOwnPropertyNames(t)};function n9(e){console&&console.warn&&console.warn(e)}var tR=Number.isNaN||function(t){return t!==t};function Tr(){Tr.init.call(this)}eR.exports=Tr;eR.exports.once=u9;Tr.EventEmitter=Tr;Tr.prototype._events=void 0;Tr.prototype._eventsCount=0;Tr.prototype._maxListeners=void 0;var A3=10;function Wm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tr,"defaultMaxListeners",{enumerable:!0,get:function(){return A3},set:function(e){if(typeof e!="number"||e<0||tR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");A3=e}});Tr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||tR(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function rR(e){return e._maxListeners===void 0?Tr.defaultMaxListeners:e._maxListeners}Tr.prototype.getMaxListeners=function(){return rR(this)};Tr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")E3(s,this,r);else for(var c=s.length,d=uR(s,c),n=0;n<c;++n)E3(d[n],this,r);return!0};function nR(e,t,r,n){var i,a,o;if(Wm(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=rR(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,n9(l)}return e}Tr.prototype.addListener=function(t,r){return nR(this,t,r,!1)};Tr.prototype.on=Tr.prototype.addListener;Tr.prototype.prependListener=function(t,r){return nR(this,t,r,!0)};function i9(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function iR(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=i9.bind(n);return i.listener=r,n.wrapFn=i,i}Tr.prototype.once=function(t,r){return Wm(r),this.on(t,iR(this,t,r)),this};Tr.prototype.prependOnceListener=function(t,r){return Wm(r),this.prependListener(t,iR(this,t,r)),this};Tr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(Wm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():a9(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Tr.prototype.off=Tr.prototype.removeListener;Tr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function aR(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?o9(i):uR(i,i.length)}Tr.prototype.listeners=function(t){return aR(this,t,!0)};Tr.prototype.rawListeners=function(t){return aR(this,t,!1)};Tr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):oR.call(e,t)};Tr.prototype.listenerCount=oR;function oR(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Tr.prototype.eventNames=function(){return this._eventsCount>0?c0(this._events):[]};function uR(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function a9(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function o9(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function u9(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}lR(e,t,a,{once:!0}),t!=="error"&&l9(e,i,{once:!0})})}function l9(e,t,r){typeof e.on=="function"&&lR(e,"error",t,r)}function lR(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var s9={left:0,top:0},Ete=f9;function f9(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=c9(t);return r[0]=n-a.left,r[1]=i-a.top,r}function c9(e){return e===window||e===document||e===document.body?s9:e.getBoundingClientRect()}function h9(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var Ate=h9(),sR=p9,m1={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},d9=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function p9(e){var t=[];return e.replace(d9,function(r,n,i){var a=n.toLowerCase();for(i=m9(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==m1[a])return i.unshift(n),t.push(i);if(i.length<m1[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,m1[a])))}}),t}var v9=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function m9(e){var t=e.match(v9);return t?t.map(Number):[]}function g9(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var y9=g9;function x9(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],c=r[0],d=r[1];return(l-a)*(d-o)-(s-o)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*o+a*s;if(c<e)return!1;var d=o*o+s*s;return!(c-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],d=o*c-l*s;if(Math.abs(d)<e)return!1;var y=r[0]-i[0],g=r[1]-i[1],m=(s*g-c*y)/d,E=(o*g-l*y)/d,I={alongA:0,alongB:0,pt:[r[0]+m*o,r[1]+m*l]};return m<=-e?I.alongA=-2:m<e?I.alongA=-1:m-1<=-e?I.alongA=0:m-1<e?I.alongA=1:I.alongA=2,E<=-e?I.alongB=-2:E<e?I.alongB=-1:E-1<=-e?I.alongB=0:E-1<e?I.alongB=1:I.alongB=2,I},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var d=n[c][0],y=n[c][1];y-a>e!=l-a>e&&(o-d)*(a-y)/(l-y)+d-i>e&&(s=!s),o=d,l=y}return s}};return t}var b9=x9,w9={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},_9=w9,uh=_9;function S9(e,t,r){function n(E,I){return{id:r?r.segmentId():-1,start:E,end:I,myFill:{above:null,below:null},otherFill:null}}function i(E,I,b){return{id:r?r.segmentId():-1,start:E,end:I,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=uh.create();function o(E,I,b,w,_,C){var T=t.pointsCompare(I,_);return T!==0?T:t.pointsSame(b,C)?0:E!==w?E?1:-1:t.pointAboveOrOnLine(b,w?_:C,w?C:_)?1:-1}function l(E,I){a.insertBefore(E,function(b){var w=o(E.isStart,E.pt,I,b.isStart,b.pt,b.other.pt);return w<0})}function s(E,I){var b=uh.node({isStart:!0,pt:E.start,seg:E,primary:I,other:null,status:null});return l(b,E.end),b}function c(E,I,b){var w=uh.node({isStart:!1,pt:I.end,seg:I,primary:b,other:E,status:null});E.other=w,l(w,E.pt)}function d(E,I){var b=s(E,I);return c(b,E,I),b}function y(E,I){r&&r.segmentChop(E.seg,I),E.other.remove(),E.seg.end=I,E.other.pt=I,l(E.other,E.pt)}function g(E,I){var b=i(I,E.seg.end,E.seg);return y(E,I),d(b,E.primary)}function m(E,I){var b=uh.create();function w(Le,ut){var nt=Le.seg.start,De=Le.seg.end,We=ut.seg.start,_t=ut.seg.end;return t.pointsCollinear(nt,We,_t)?t.pointsCollinear(De,We,_t)||t.pointAboveOrOnLine(De,We,_t)?1:-1:t.pointAboveOrOnLine(nt,We,_t)?1:-1}function _(Le){return b.findTransition(function(ut){var nt=w(Le,ut.ev);return nt>0})}function C(Le,ut){var nt=Le.seg,De=ut.seg,We=nt.start,_t=nt.end,He=De.start,be=De.end;r&&r.checkIntersection(nt,De);var Ve=t.linesIntersect(We,_t,He,be);if(Ve===!1){if(!t.pointsCollinear(We,_t,He)||t.pointsSame(We,be)||t.pointsSame(_t,He))return!1;var st=t.pointsSame(We,He),Qe=t.pointsSame(_t,be);if(st&&Qe)return ut;var ct=!st&&t.pointBetween(We,He,be),yt=!Qe&&t.pointBetween(_t,He,be);if(st)return yt?g(ut,_t):g(Le,be),ut;ct&&(Qe||(yt?g(ut,_t):g(Le,be)),g(ut,We))}else Ve.alongA===0&&(Ve.alongB===-1?g(Le,He):Ve.alongB===0?g(Le,Ve.pt):Ve.alongB===1&&g(Le,be)),Ve.alongB===0&&(Ve.alongA===-1?g(ut,We):Ve.alongA===0?g(ut,Ve.pt):Ve.alongA===1&&g(ut,_t));return!1}for(var T=[];!a.isEmpty();){var P=a.getHead();if(r&&r.vert(P.pt[0]),P.isStart){let Le=function(){if(Y){var ut=C(P,Y);if(ut)return ut}return j?C(P,j):!1};r&&r.segmentNew(P.seg,P.primary);var D=_(P),Y=D.before?D.before.ev:null,j=D.after?D.after.ev:null;r&&r.tempStatus(P.seg,Y?Y.seg:!1,j?j.seg:!1);var re=Le();if(re){if(e){var Ee;P.seg.myFill.below===null?Ee=!0:Ee=P.seg.myFill.above!==P.seg.myFill.below,Ee&&(re.seg.myFill.above=!re.seg.myFill.above)}else re.seg.otherFill=P.seg.myFill;r&&r.segmentUpdate(re.seg),P.other.remove(),P.remove()}if(a.getHead()!==P){r&&r.rewind(P.seg);continue}if(e){var Ee;P.seg.myFill.below===null?Ee=!0:Ee=P.seg.myFill.above!==P.seg.myFill.below,j?P.seg.myFill.below=j.seg.myFill.above:P.seg.myFill.below=E,Ee?P.seg.myFill.above=!P.seg.myFill.below:P.seg.myFill.above=P.seg.myFill.below}else if(P.seg.otherFill===null){var me;j?P.primary===j.primary?me=j.seg.otherFill.above:me=j.seg.myFill.above:me=P.primary?I:E,P.seg.otherFill={above:me,below:me}}r&&r.status(P.seg,Y?Y.seg:!1,j?j.seg:!1),P.other.status=D.insert(uh.node({ev:P}))}else{var ke=P.status;if(ke===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(ke.prev)&&b.exists(ke.next)&&C(ke.prev.ev,ke.next.ev),r&&r.statusRemove(ke.ev.seg),ke.remove(),!P.primary){var Pe=P.seg.myFill;P.seg.myFill=P.seg.otherFill,P.seg.otherFill=Pe}T.push(P.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(E){for(var I,b=E[E.length-1],w=0;w<E.length;w++){I=b,b=E[w];var _=t.pointsCompare(I,b);_!==0&&d(n(_<0?I:b,_<0?b:I),!0)}},calculate:function(E){return m(E,!1)}}:{calculate:function(E,I,b,w){return E.forEach(function(_){d(i(_.start,_.end,_),!0)}),b.forEach(function(_){d(i(_.start,_.end,_),!1)}),m(I,w)}}}var E9=S9;function A9(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},d=s;function y(ke,Pe,Le){return d.index=ke,d.matches_head=Pe,d.matches_pt1=Le,d===s?(d=c,!1):(d=null,!0)}for(var g=0;g<n.length;g++){var m=n[g],E=m[0];m[1];var I=m[m.length-1];if(m[m.length-2],t.pointsSame(E,o)){if(y(g,!0,!0))break}else if(t.pointsSame(E,l)){if(y(g,!0,!1))break}else if(t.pointsSame(I,o)){if(y(g,!1,!0))break}else if(t.pointsSame(I,l)&&y(g,!1,!1))break}if(d===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(d===c){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?l:o,_=s.matches_head,m=n[b],C=_?m[0]:m[m.length-1],T=_?m[1]:m[m.length-2],P=_?m[m.length-1]:m[0],D=_?m[m.length-2]:m[1];if(t.pointsCollinear(T,C,w)&&(_?(r&&r.chainRemoveHead(s.index,w),m.shift()):(r&&r.chainRemoveTail(s.index,w),m.pop()),C=T),t.pointsSame(P,w)){n.splice(b,1),t.pointsCollinear(D,P,C)&&(_?(r&&r.chainRemoveTail(s.index,C),m.pop()):(r&&r.chainRemoveHead(s.index,C),m.shift())),r&&r.chainClose(s.index),i.push(m);return}_?(r&&r.chainAddHead(s.index,w),m.unshift(w)):(r&&r.chainAddTail(s.index,w),m.push(w));return}function Y(ke){r&&r.chainReverse(ke),n[ke].reverse()}function j(ke,Pe){var Le=n[ke],ut=n[Pe],nt=Le[Le.length-1],De=Le[Le.length-2],We=ut[0],_t=ut[1];t.pointsCollinear(De,nt,We)&&(r&&r.chainRemoveTail(ke,nt),Le.pop(),nt=De),t.pointsCollinear(nt,We,_t)&&(r&&r.chainRemoveHead(Pe,We),ut.shift()),r&&r.chainJoin(ke,Pe),n[ke]=Le.concat(ut),n.splice(Pe,1)}var re=s.index,Ee=c.index;r&&r.chainConnect(re,Ee);var me=n[re].length<n[Ee].length;s.matches_head?c.matches_head?me?(Y(re),j(re,Ee)):(Y(Ee),j(Ee,re)):j(Ee,re):c.matches_head?j(re,Ee):me?(Y(re),j(Ee,re)):(Y(Ee),j(re,Ee))}),i}var T9=A9;function lh(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var C9={union:function(e,t){return lh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return lh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return lh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return lh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return lh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},O9=C9,k9={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(c){var d=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(m,E){return t.pointInsideRegion([(m[0][0]+m[1][0])*.5,(m[0][1]+m[1][1])*.5],E)}function i(m){return{region:m,children:[]}}var a=i(null);function o(m,E){for(var I=0;I<m.children.length;I++){var b=m.children[I];if(n(E,b.region)){o(b,E);return}}for(var w=i(E),I=0;I<m.children.length;I++){var b=m.children[I];n(b.region,E)&&(w.children.push(b),m.children.splice(I,1),I--)}m.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function c(m,E){for(var I=0,b=m[m.length-1][0],w=m[m.length-1][1],_=[],C=0;C<m.length;C++){var T=m[C][0],P=m[C][1];_.push([T,P]),I+=P*b-T*w,b=T,w=P}var D=I<0;return D!==E&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var d=[];function y(m){var E=[c(m.region,!1)];d.push(E);for(var I=0;I<m.children.length;I++)E.push(g(m.children[I]))}function g(m){for(var E=0;E<m.children.length;E++)y(m.children[E]);return c(m.region,!0)}for(var l=0;l<a.children.length;l++)y(a.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},M9=k9;/*
45
+ * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
46
+ * @license MIT
47
+ * @preserve Project Home: https://github.com/voidqk/polybooljs
48
+ */var I9=y9,R9=b9,T3=E9,F9=T9,sh=O9,C3=M9,xi=!1,fh=R9(),Qn;Qn={buildLog:function(e){return e===!0?xi=I9():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return fh.epsilon(e)},segments:function(e){var t=T3(!0,fh,xi);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=T3(!1,fh,xi);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:sh.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:sh.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:sh.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:sh.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:sh.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:F9(e.segments,fh,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return C3.toPolygon(Qn,e)},polygonToGeoJSON:function(e){return C3.fromPolygon(Qn,fh,e)},union:function(e,t){return ch(e,t,Qn.selectUnion)},intersect:function(e,t){return ch(e,t,Qn.selectIntersect)},difference:function(e,t){return ch(e,t,Qn.selectDifference)},differenceRev:function(e,t){return ch(e,t,Qn.selectDifferenceRev)},xor:function(e,t){return ch(e,t,Qn.selectXor)}};function ch(e,t,r){var n=Qn.segments(e),i=Qn.segments(t),a=Qn.combine(n,i),o=r(a);return Qn.polygon(o)}typeof window=="object"&&(window.PolyBool=Qn);var Tte=Qn;const Cte=yl(k$);var fR={exports:{}};function P9(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function N9(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function L9(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function D9(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function B9(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function hh(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var $9={ge:function(e,t,r,n,i){return hh(e,t,r,n,i,P9)},gt:function(e,t,r,n,i){return hh(e,t,r,n,i,N9)},lt:function(e,t,r,n,i){return hh(e,t,r,n,i,L9)},le:function(e,t,r,n,i){return hh(e,t,r,n,i,D9)},eq:function(e,t,r,n,i){return hh(e,t,r,n,i,B9)}},Md=z9;function z9(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var du=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=O3(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=O3(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(o=0;o<c.length;o++){var d=c[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var y=o;y<c.length;y++)s[c[y]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},g1={};function O3(e){return g1[e]?g1[e]:(typeof e=="string"&&(e=g1[e]=e.split(/\s*,\s*|\s+/)),e)}var U9=du,Hm=j9;function j9(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=U9(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var Id=G9;function G9(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var cR=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},F2=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},k3=F2,Rd=W9;function W9(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(k3(t||"float32"))(i+r));var c=t.length-r;if(i!==c)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+c);for(a=0,l=r;a<e.length;a++)for(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=k3(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var H9=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},V9=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const M3=$9,I3=Md,q9=Hm,Y9=Id,R3=du,y1=cR,X9=Rd,Q9=H9,Z9=F2,F3=V9,K9=1073741824;var J9=function(t,r){r||(r={}),t=X9(t,"float64"),r=R3(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=y1(r.maxDepth,255),i=y1(r.bounds,Y9(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=P3(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(Z9(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let w=0;w<o;++w)l[w]=w;let s=[],c=[],d=[],y=[];m(0,0,1,l,0,1);let g=0;for(let w=0;w<s.length;w++){let _=s[w];if(l.set)l.set(_,g);else for(let T=0,P=_.length;T<P;T++)l[T+g]=_[T];let C=g+s[w].length;y[w]=[g,C],g=C}return l.range=E,l;function m(w,_,C,T,P,D){if(!T.length)return null;let Y=s[P]||(s[P]=[]),j=d[P]||(d[P]=[]),re=c[P]||(c[P]=[]),Ee=Y.length;if(P++,P>n||D>K9){for(let We=0;We<T.length;We++)Y.push(T[We]),j.push(D),re.push(null,null,null,null);return Ee}if(Y.push(T[0]),j.push(D),T.length<=1)return re.push(null,null,null,null),Ee;let me=C*.5,ke=w+me,Pe=_+me,Le=[],ut=[],nt=[],De=[];for(let We=1,_t=T.length;We<_t;We++){let He=T[We],be=a[He*2],Ve=a[He*2+1];be<ke?Ve<Pe?Le.push(He):ut.push(He):Ve<Pe?nt.push(He):De.push(He)}return D<<=2,re.push(m(w,_,me,Le,P,D),m(w,Pe,me,ut,P,D+1),m(ke,_,me,nt,P,D+2),m(ke,Pe,me,De,P,D+3)),Ee}function E(...w){let _;if(Q9(w[w.length-1])){let nt=w.pop();!w.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(w=[nt],_={}),_=R3(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else _={};w.length||(w=i);let C=q9(...w),[T,P,D,Y]=[Math.min(C.x,C.x+C.width),Math.min(C.y,C.y+C.height),Math.max(C.x,C.x+C.width),Math.max(C.y,C.y+C.height)],[j,re,Ee,me]=P3([T,P,D,Y],i),ke=y1(_.level,s.length);if(_.d!=null){let nt;typeof _.d=="number"?nt=[_.d,_.d]:_.d.length&&(nt=_.d),ke=Math.min(Math.max(Math.ceil(-F3(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-F3(Math.abs(nt[1])/(i[3]-i[1])))),ke)}if(ke=Math.min(ke,s.length),_.lod)return I(j,re,Ee,me,ke);let Pe=[];Le(0,0,1,0,0,1);function Le(nt,De,We,_t,He,be){if(He===null||be===null)return;let Ve=nt+We,st=De+We;if(j>Ve||re>st||Ee<nt||me<De||_t>=ke||He===be)return;let Qe=s[_t];be===void 0&&(be=Qe.length);for(let W=He;W<be;W++){let ae=Qe[W],M=t[ae*2],A=t[ae*2+1];M>=T&&M<=D&&A>=P&&A<=Y&&Pe.push(ae)}let ct=c[_t],yt=ct[He*4+0],Wt=ct[He*4+1],Vt=ct[He*4+2],Ze=ct[He*4+3],At=ut(ct,He+1),Ut=We*.5,Ce=_t+1;Le(nt,De,Ut,Ce,yt,Wt||Vt||Ze||At),Le(nt,De+Ut,Ut,Ce,Wt,Vt||Ze||At),Le(nt+Ut,De,Ut,Ce,Vt,Ze||At),Le(nt+Ut,De+Ut,Ut,Ce,Ze,At)}function ut(nt,De){let We=null,_t=0;for(;We===null;)if(We=nt[De*4+_t],_t++,_t>nt.length)return null;return We}return Pe}function I(w,_,C,T,P){let D=[];for(let Y=0;Y<P;Y++){let j=d[Y],re=y[Y][0],Ee=b(w,_,Y),me=b(C,T,Y),ke=M3.ge(j,Ee),Pe=M3.gt(j,me,ke,j.length-1);D[Y]=[ke+re,Pe+re]}return D}function b(w,_,C){let T=1,P=.5,D=.5,Y=.5;for(let j=0;j<C;j++)T<<=2,T+=w<P?_<D?0:1:_<D?2:3,Y*=.5,P+=w<P?-Y:Y,D+=_<D?-Y:Y;return T}};function P3(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,d=e.length/2;c<d;c++)s[2*c]=I3((e[2*c]-r)*o,0,1),s[2*c+1]=I3((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=J9})(fR);var hR=eU;function eU(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var tU=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Wh=Math.PI*2,x1=function(t,r,n,i,a,o,l){var s=t.x,c=t.y;s*=r,c*=n;var d=i*s-a*c,y=a*s+i*c;return{x:d+o,y:y+l}},rU=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},N3=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},nU=function(t,r,n,i,a,o,l,s,c,d,y,g){var m=Math.pow(a,2),E=Math.pow(o,2),I=Math.pow(y,2),b=Math.pow(g,2),w=m*E-m*b-E*I;w<0&&(w=0),w/=m*b+E*I,w=Math.sqrt(w)*(l===s?-1:1);var _=w*a/o*g,C=w*-o/a*y,T=d*_-c*C+(t+n)/2,P=c*_+d*C+(r+i)/2,D=(y-_)/a,Y=(g-C)/o,j=(-y-_)/a,re=(-g-C)/o,Ee=N3(1,0,D,Y),me=N3(D,Y,j,re);return s===0&&me>0&&(me-=Wh),s===1&&me<0&&(me+=Wh),[T,P,Ee,me]},iU=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,d=t.largeArcFlag,y=d===void 0?0:d,g=t.sweepFlag,m=g===void 0?0:g,E=[];if(o===0||l===0)return[];var I=Math.sin(c*Wh/360),b=Math.cos(c*Wh/360),w=b*(r-i)/2+I*(n-a)/2,_=-I*(r-i)/2+b*(n-a)/2;if(w===0&&_===0)return[];o=Math.abs(o),l=Math.abs(l);var C=Math.pow(w,2)/Math.pow(o,2)+Math.pow(_,2)/Math.pow(l,2);C>1&&(o*=Math.sqrt(C),l*=Math.sqrt(C));var T=nU(r,n,i,a,o,l,y,m,I,b,w,_),P=tU(T,4),D=P[0],Y=P[1],j=P[2],re=P[3],Ee=Math.abs(re)/(Wh/4);Math.abs(1-Ee)<1e-7&&(Ee=1);var me=Math.max(Math.ceil(Ee),1);re/=me;for(var ke=0;ke<me;ke++)E.push(rU(j,re)),j+=re;return E.map(function(Pe){var Le=x1(Pe[0],o,l,b,I,D,Y),ut=Le.x,nt=Le.y,De=x1(Pe[1],o,l,b,I,D,Y),We=De.x,_t=De.y,He=x1(Pe[2],o,l,b,I,D,Y),be=He.x,Ve=He.y;return{x1:ut,y1:nt,x2:We,y2:_t,x:be,y:Ve}})};const aU=Object.freeze(Object.defineProperty({__proto__:null,default:iU},Symbol.toStringTag,{value:"Module"})),oU=yl(aU);var uU=sU,lU=oU;function sU(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,d=0,y=0,g=e.length;y<g;y++){var m=e[y],E=m[0];switch(E){case"M":a=m[1],o=m[2];break;case"A":var I=lU({px:c,py:d,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!I.length)continue;for(var b=0,w;b<I.length;b++)w=I[b],m=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<I.length-1&&r.push(m);break;case"S":var _=c,C=d;(t=="C"||t=="S")&&(_+=_-n,C+=C-i),m=["C",_,C,m[1],m[2],m[3],m[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=d*2-s):(l=c,s=d),m=L3(c,d,l,s,m[1],m[2]);break;case"Q":l=m[1],s=m[2],m=L3(c,d,m[1],m[2],m[3],m[4]);break;case"L":m=Av(c,d,m[1],m[2]);break;case"H":m=Av(c,d,m[1],d);break;case"V":m=Av(c,d,c,m[1]);break;case"Z":m=Av(c,d,a,o);break}t=E,c=m[m.length-2],d=m[m.length-1],m.length>4?(n=m[m.length-4],i=m[m.length-3]):(n=c,i=d),r.push(m)}return r}function Av(e,t,r,n){return["C",e,t,r,n,r,n]}function L3(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var dR=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},fU=sR,cU=hR,hU=uU,dU=dR,pU=vU;function vU(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!dU(e))throw Error("String is not an SVG path.");e=fU(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=cU(e),e=hU(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var Vu=Math.PI,D3=vR(120),mU=gU;function gU(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,d=0,y=0,g=e.length;y<g;y++){var m=e[y],E=m[0];switch(E){case"M":a=m[1],o=m[2];break;case"A":m=pR(c,d,m[1],m[2],vR(m[3]),m[4],m[5],m[6],m[7]),m.unshift("C"),m.length>7&&(r.push(m.splice(0,7)),m.unshift("C"));break;case"S":var I=c,b=d;(t=="C"||t=="S")&&(I+=I-n,b+=b-i),m=["C",I,b,m[1],m[2],m[3],m[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=d*2-s):(l=c,s=d),m=B3(c,d,l,s,m[1],m[2]);break;case"Q":l=m[1],s=m[2],m=B3(c,d,m[1],m[2],m[3],m[4]);break;case"L":m=Tv(c,d,m[1],m[2]);break;case"H":m=Tv(c,d,m[1],d);break;case"V":m=Tv(c,d,c,m[1]);break;case"Z":m=Tv(c,d,a,o);break}t=E,c=m[m.length-2],d=m[m.length-1],m.length>4?(n=m[m.length-4],i=m[m.length-3]):(n=c,i=d),r.push(m)}return r}function Tv(e,t,r,n){return["C",e,t,r,n,r,n]}function B3(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function pR(e,t,r,n,i,a,o,l,s,c){if(c)C=c[0],T=c[1],w=c[2],_=c[3];else{var d=b1(e,t,-i);e=d.x,t=d.y,d=b1(l,s,-i),l=d.x,s=d.y;var y=(e-l)/2,g=(t-s)/2,m=y*y/(r*r)+g*g/(n*n);m>1&&(m=Math.sqrt(m),r=m*r,n=m*n);var E=r*r,I=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((E*I-E*g*g-I*y*y)/(E*g*g+I*y*y)));b==1/0&&(b=1);var w=b*r*g/n+(e+l)/2,_=b*-n*y/r+(t+s)/2,C=Math.asin(((t-_)/n).toFixed(9)),T=Math.asin(((s-_)/n).toFixed(9));C=e<w?Vu-C:C,T=l<w?Vu-T:T,C<0&&(C=Vu*2+C),T<0&&(T=Vu*2+T),o&&C>T&&(C=C-Vu*2),!o&&T>C&&(T=T-Vu*2)}if(Math.abs(T-C)>D3){var P=T,D=l,Y=s;T=C+D3*(o&&T>C?1:-1),l=w+r*Math.cos(T),s=_+n*Math.sin(T);var j=pR(l,s,r,n,i,0,o,D,Y,[T,P,w,_])}var re=Math.tan((T-C)/4),Ee=4/3*r*re,me=4/3*n*re,ke=[2*e-(e+Ee*Math.sin(C)),2*t-(t-me*Math.cos(C)),l+Ee*Math.sin(T),s-me*Math.cos(T),l,s];if(c)return ke;j&&(ke=ke.concat(j));for(var Pe=0;Pe<ke.length;){var Le=b1(ke[Pe],ke[Pe+1],i);ke[Pe++]=Le.x,ke[Pe++]=Le.y}return ke}function b1(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function vR(e){return e*(Vu/180)}var yU=hR,xU=mU,bU={M:"moveTo",C:"bezierCurveTo"},wU=function(e,t){e.beginPath(),xU(yU(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[bU[n]].apply(e,i)}),e.closePath()},_U=Md,SU=EU,Hh=1e20;function EU(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,c,d,y,g,m,E,I;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(g=e,y=g.getContext("2d"),a=g.width,o=g.height,m=y.getImageData(0,0,a,o),s=m.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(g=e.canvas,y=e,a=g.width,o=g.height,m=y.getImageData(0,0,a,o),s=m.data,d=4):window.ImageData&&e instanceof window.ImageData&&(m=e,a=e.width,o=e.height,s=m.data,d=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*o),E=0,I=c.length;E<I;E++)s[E]=c[E*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),w=Array(a*o),_=Array(l),C=Array(l),T=Array(l+1),P=Array(l);for(E=0,I=a*o;E<I;E++){var D=s[E];b[E]=D===1?0:D===0?Hh:Math.pow(Math.max(0,.5-D),2),w[E]=D===1?Hh:D===0?0:Math.pow(Math.max(0,D-.5),2)}$3(b,a,o,_,C,P,T),$3(w,a,o,_,C,P,T);var Y=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(E=0,I=a*o;E<I;E++)Y[E]=_U(1-((b[E]-w[E])/n+r),0,1);return Y}function $3(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(z3(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(z3(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function z3(e,t,r,n,i){r[0]=0,n[0]=-Hh,n[1]=+Hh;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+Hh}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var AU=pU,TU=sR,CU=wU,OU=dR,kU=SU,Aw=document.createElement("canvas"),$n=Aw.getContext("2d"),Ote=MU;function MU(e,t){if(!OU(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=Aw.width=t.w||t.width||200,n=Aw.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||AU(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if($n.fillStyle="black",$n.fillRect(0,0,r,n),$n.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?$n.strokeStyle="white":$n.strokeStyle="black",$n.lineWidth=Math.abs(a)),$n.translate(r*.5,n*.5),$n.scale(s,s),IU()){var c=new Path2D(e);$n.fill(c),a&&$n.stroke(c)}else{var d=TU(e);CU($n,d),$n.fill(),a&&$n.stroke()}$n.setTransform(1,0,0,1,0,0);var y=kU($n,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return y}var Cv;function IU(){if(Cv!=null)return Cv;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return Cv=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return Cv=r&&r.data&&r.data[3]===255}var RU={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},FU=Object.prototype.toString,mR=function(e){var t;return FU.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},U3=RU,PU=mR,Gu=cR,NU=LU,j3={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function LU(e){var t,r=[],n=1,i;if(typeof e=="string")if(U3[e])r=U3[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(m,E){if(/%$/.test(m))return E===o?parseFloat(m)/100:a==="rgb"?parseFloat(m)*255/100:parseFloat(m);if(a[E]==="h"){if(/deg$/.test(m))return parseFloat(m);if(j3[m]!==void 0)return j3[m]}return parseFloat(m)}),s===a&&r.push(1),n=c||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(y){return parseFloat(y)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(PU(e)){var d=Gu(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Gu(e.g,e.green,e.G),Gu(e.b,e.blue,e.B)]):(i="hsl",r=[Gu(e.h,e.hue,e.H),Gu(e.s,e.saturation,e.S),Gu(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Gu(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||_r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var DU={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[c]=s*255;return l}},BU=NU,$U=DU,Ov=Md,zU=function(t){var r,n=BU(t);return n.space?(r=Array(3),r[0]=Ov(n.values[0],0,255),r[1]=Ov(n.values[1],0,255),r[2]=Ov(n.values[2],0,255),n.space[0]==="h"&&(r=$U.rgb(r)),r.push(Ov(n.alpha,0,1)),r):[]},UU=zU,kv=Md,jU=F2,Vm=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=jU(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=UU(t),t[0]/=255,t[1]/=255,t[2]/=255),GU(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=kv(Math.floor(t[0]*255),0,255),i[1]=kv(Math.floor(t[1]*255),0,255),i[2]=kv(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:kv(Math.floor(t[3]*255),0,255)),i)};function GU(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var qm={exports:{}},Mv=Md;qm.exports=gR;qm.exports.to=gR;qm.exports.from=WU;function gR(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=Mv(r,0,255)&255,n=Mv(n,0,255)&255,i=Mv(i,0,255)&255,a=Mv(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function WU(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var yR=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},xR=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},HU=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),nu={exports:{}};nu.exports=Vh;nu.exports.float32=nu.exports.float=Vh;nu.exports.fract32=nu.exports.fract=VU;var G3=new Float32Array(1);function VU(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=Vh(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return Vh(e-Vh(e))}function Vh(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(G3[0]=e,G3[0])}function qU(e,t){return QU(e)||KU(e,t)||bR(e,t)||ej()}function YU(e){return XU(e)||ZU(e)||bR(e)||JU()}function XU(e){if(Array.isArray(e))return Tw(e)}function QU(e){if(Array.isArray(e))return e}function ZU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function bR(e,t){if(!!e){if(typeof e=="string")return Tw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tw(e,t)}}function Tw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
49
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ej(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
50
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tj=Vm,rj=Id,nj=qm.exports,ij=fR.exports,al=xl,Iv=yR,aj=du,oj=xR,uj=Rd,W3=HU,Rv=nu.exports,lj=Hm,sj=pn;function pn(e,t){var r=this;if(!(this instanceof pn))return new pn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],c=[null],d=255,y=100;this.tooManyColors=W3,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),al(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:y,canvas:n.canvas}),this.update(t);var g={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(b,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(b,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(b,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(b,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(b,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(b,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(b,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(b,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(b,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},m=al({},g);m.frag=Iv([`precision highp float;
51
+ #define GLSLIFY 1
52
+
53
+ uniform float opacity;
54
+ uniform sampler2D markerTexture;
55
+
56
+ varying vec4 fragColor, fragBorderColor;
57
+ varying float fragWidth, fragBorderColorLevel, fragColorLevel;
58
+
59
+ float smoothStep(float x, float y) {
60
+ return 1.0 / (1.0 + exp(50.0*(x - y)));
61
+ }
62
+
63
+ void main() {
64
+ float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
65
+
66
+ // max-distance alpha
67
+ if (dist < 0.003) discard;
68
+
69
+ // null-border case
70
+ if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
71
+ float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
72
+ gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
73
+ }
74
+ else {
75
+ float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
76
+ float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
77
+
78
+ vec4 color = fragBorderColor;
79
+ color.a *= borderColorAmt;
80
+ color = mix(color, fragColor, colorAmt);
81
+ color.a *= opacity;
82
+
83
+ gl_FragColor = color;
84
+ }
85
+
86
+ }
87
+ `]),m.vert=Iv([`precision highp float;
88
+ #define GLSLIFY 1
89
+
90
+ attribute float x, y, xFract, yFract;
91
+ attribute float size, borderSize;
92
+ attribute vec4 colorId, borderColorId;
93
+ attribute float isActive;
94
+
95
+ uniform bool constPointSize;
96
+ uniform float pixelRatio;
97
+ uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
98
+ uniform sampler2D paletteTexture;
99
+
100
+ const float maxSize = 100.;
101
+ const float borderLevel = .5;
102
+
103
+ varying vec4 fragColor, fragBorderColor;
104
+ varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
105
+
106
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
107
+
108
+ bool isDirect = (paletteSize.x < 1.);
109
+
110
+ vec4 getColor(vec4 id) {
111
+ return isDirect ? id / 255. : texture2D(paletteTexture,
112
+ vec2(
113
+ (id.x + .5) / paletteSize.x,
114
+ (id.y + .5) / paletteSize.y
115
+ )
116
+ );
117
+ }
118
+
119
+ void main() {
120
+ // ignore inactive points
121
+ if (isActive == 0.) return;
122
+
123
+ vec2 position = vec2(x, y);
124
+ vec2 positionFract = vec2(xFract, yFract);
125
+
126
+ vec4 color = getColor(colorId);
127
+ vec4 borderColor = getColor(borderColorId);
128
+
129
+ float size = size * maxSize / 255.;
130
+ float borderSize = borderSize * maxSize / 255.;
131
+
132
+ gl_PointSize = 2. * size * pointSizeScale;
133
+ fragPointSize = size * pixelRatio;
134
+
135
+ vec2 pos = (position + translate) * scale
136
+ + (positionFract + translateFract) * scale
137
+ + (position + translate) * scaleFract
138
+ + (positionFract + translateFract) * scaleFract;
139
+
140
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
141
+
142
+ fragColor = color;
143
+ fragBorderColor = borderColor;
144
+ fragWidth = 1. / gl_PointSize;
145
+
146
+ fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
147
+ fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
148
+ }`]),this.drawMarker=e(m);var E=al({},g);E.frag=Iv([`precision highp float;
149
+ #define GLSLIFY 1
150
+
151
+ varying vec4 fragColor, fragBorderColor;
152
+ varying float fragBorderRadius, fragWidth;
153
+
154
+ uniform float opacity;
155
+
156
+ float smoothStep(float edge0, float edge1, float x) {
157
+ float t;
158
+ t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
159
+ return t * t * (3.0 - 2.0 * t);
160
+ }
161
+
162
+ void main() {
163
+ float radius, alpha = 1.0, delta = fragWidth;
164
+
165
+ radius = length(2.0 * gl_PointCoord.xy - 1.0);
166
+
167
+ if (radius > 1.0 + delta) {
168
+ discard;
169
+ }
170
+
171
+ alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
172
+
173
+ float borderRadius = fragBorderRadius;
174
+ float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
175
+ vec4 color = mix(fragColor, fragBorderColor, ratio);
176
+ color.a *= alpha * opacity;
177
+ gl_FragColor = color;
178
+ }
179
+ `]),E.vert=Iv([`precision highp float;
180
+ #define GLSLIFY 1
181
+
182
+ attribute float x, y, xFract, yFract;
183
+ attribute float size, borderSize;
184
+ attribute vec4 colorId, borderColorId;
185
+ attribute float isActive;
186
+
187
+ uniform bool constPointSize;
188
+ uniform float pixelRatio;
189
+ uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
190
+ uniform sampler2D paletteTexture;
191
+
192
+ const float maxSize = 100.;
193
+
194
+ varying vec4 fragColor, fragBorderColor;
195
+ varying float fragBorderRadius, fragWidth;
196
+
197
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
198
+
199
+ bool isDirect = (paletteSize.x < 1.);
200
+
201
+ vec4 getColor(vec4 id) {
202
+ return isDirect ? id / 255. : texture2D(paletteTexture,
203
+ vec2(
204
+ (id.x + .5) / paletteSize.x,
205
+ (id.y + .5) / paletteSize.y
206
+ )
207
+ );
208
+ }
209
+
210
+ void main() {
211
+ // ignore inactive points
212
+ if (isActive == 0.) return;
213
+
214
+ vec2 position = vec2(x, y);
215
+ vec2 positionFract = vec2(xFract, yFract);
216
+
217
+ vec4 color = getColor(colorId);
218
+ vec4 borderColor = getColor(borderColorId);
219
+
220
+ float size = size * maxSize / 255.;
221
+ float borderSize = borderSize * maxSize / 255.;
222
+
223
+ gl_PointSize = (size + borderSize) * pointSizeScale;
224
+
225
+ vec2 pos = (position + translate) * scale
226
+ + (positionFract + translateFract) * scale
227
+ + (position + translate) * scaleFract
228
+ + (positionFract + translateFract) * scaleFract;
229
+
230
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
231
+
232
+ fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
233
+ fragColor = color;
234
+ fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
235
+ fragWidth = 1. / gl_PointSize;
236
+ }
237
+ `]),W3&&(E.frag=E.frag.replace("smoothstep","smoothStep"),m.frag=m.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(E)}pn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};pn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};pn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};pn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,YU(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};pn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[al({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[al({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var c=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var y=o[e],g=y.data,m=new Uint8Array(s),E=0;E<r.length;E++){var I=r[E];m[I]=g?g[I]:1}l.subdata(m)}for(var b=d.length;b--;){var w=qU(d[b],2),_=w[0],C=w[1];c.push(al({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:_,count:C-_}))}return c};pn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!!r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,c=this.palette;this.groups=i=r.map(function(d,y){var g=i[y];if(d===void 0)return g;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=aj(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),g||(i[y]=g={id:y,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=al({},pn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=g.marker,delete g.marker),d.marker&&!("positions"in d)&&(d.positions=g.positions,delete g.positions);var m=0,E=0;if(oj(g,d,[{snap:!0,size:function(De,We){return De==null&&(De=pn.defaults.size),m+=De&&De.length?1:0,De},borderSize:function(De,We){return De==null&&(De=pn.defaults.borderSize),m+=De&&De.length?1:0,De},opacity:parseFloat,color:function(De,We){return De==null&&(De=pn.defaults.color),De=e.updateColor(De),E++,De},borderColor:function(De,We){return De==null&&(De=pn.defaults.borderColor),De=e.updateColor(De),E++,De},bounds:function(De,We,_t){return"range"in _t||(_t.range=null),De},positions:function(De,We,_t){var He=We.snap,be=We.positionBuffer,Ve=We.positionFractBuffer,st=We.selectionBuffer;if(De.x||De.y)return De.x.length?We.xAttr={buffer:o.buffer(De.x),offset:0,stride:4,count:De.x.length}:We.xAttr={buffer:De.x.buffer,offset:De.x.offset*4||0,stride:(De.x.stride||1)*4,count:De.x.count},De.y.length?We.yAttr={buffer:o.buffer(De.y),offset:0,stride:4,count:De.y.length}:We.yAttr={buffer:De.y.buffer,offset:De.y.offset*4||0,stride:(De.y.stride||1)*4,count:De.y.count},We.count=Math.max(We.xAttr.count,We.yAttr.count),De;De=uj(De,"float64");var Qe=We.count=Math.floor(De.length/2),ct=We.bounds=Qe?rj(De,2):null;if(!_t.range&&!We.range&&(delete We.range,_t.range=ct),!_t.marker&&!We.marker&&(delete We.marker,_t.marker=null),He&&(He===!0||Qe>He)?We.tree=ij(De,{bounds:ct}):He&&He.length&&(We.tree=He),We.tree){var yt={primitive:"points",usage:"static",data:We.tree,type:"uint32"};We.elements?We.elements(yt):We.elements=o.elements(yt)}var Wt=Rv.float32(De);be({data:Wt,usage:"dynamic"});var Vt=Rv.fract32(De,Wt);return Ve({data:Vt,usage:"dynamic"}),st({data:new Uint8Array(Qe),type:"uint8",usage:"stream"}),De}},{marker:function(De,We,_t){var He=We.activation;if(He.forEach(function(Vt){return Vt&&Vt.destroy&&Vt.destroy()}),He.length=0,!De||typeof De[0]=="number"){var be=e.addMarker(De);He[be]=!0}else{for(var Ve=[],st=0,Qe=Math.min(De.length,We.count);st<Qe;st++){var ct=e.addMarker(De[st]);Ve[ct]||(Ve[ct]=new Uint8Array(We.count)),Ve[ct][st]=1}for(var yt=0;yt<Ve.length;yt++)if(!!Ve[yt]){var Wt={data:Ve[yt],type:"uint8",usage:"static"};He[yt]?He[yt](Wt):He[yt]=o.buffer(Wt),He[yt].data=Ve[yt]}}return De},range:function(De,We,_t){var He=We.bounds;if(!!He)return De||(De=He),We.scale=[1/(De[2]-De[0]),1/(De[3]-De[1])],We.translate=[-De[0],-De[1]],We.scaleFract=Rv.fract(We.scale),We.translateFract=Rv.fract(We.translate),De},viewport:function(De){var We=lj(De||[a.drawingBufferWidth,a.drawingBufferHeight]);return We}}]),m){var I=g,b=I.count,w=I.size,_=I.borderSize,C=I.sizeBuffer,T=new Uint8Array(b*2);if(w.length||_.length)for(var P=0;P<b;P++)T[P*2]=Math.round((w[P]==null?w:w[P])*255/l),T[P*2+1]=Math.round((_[P]==null?_:_[P])*255/l);C({data:T,usage:"dynamic"})}if(E){var D=g,Y=D.count,j=D.color,re=D.borderColor,Ee=D.colorBuffer,me;if(e.tooManyColors){if(j.length||re.length){me=new Uint8Array(Y*8);for(var ke=0;ke<Y;ke++){var Pe=j[ke];me[ke*8]=c[Pe*4],me[ke*8+1]=c[Pe*4+1],me[ke*8+2]=c[Pe*4+2],me[ke*8+3]=c[Pe*4+3];var Le=re[ke];me[ke*8+4]=c[Le*4],me[ke*8+5]=c[Le*4+1],me[ke*8+6]=c[Le*4+2],me[ke*8+7]=c[Le*4+3]}}}else if(j.length||re.length){me=new Uint8Array(Y*4+2);for(var ut=0;ut<Y;ut++)j[ut]!=null&&(me[ut*4]=j[ut]%s,me[ut*4+1]=Math.floor(j[ut]/s)),re[ut]!=null&&(me[ut*4+2]=re[ut]%s,me[ut*4+3]=Math.floor(re[ut]/s))}Ee({data:me||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return g})}};pn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};pn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var c=e[s];c=tj(c,"uint8");var d=nj(c,!1);if(t[d]==null){var y=r.length;t[d]=Math.floor(y/4),r[y]=c[0],r[y+1]=c[1],r[y+2]=c[2],r[y+3]=c[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};pn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};pn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var fj=xl,cj=function(t,r){var n=new sj(t,r),i=n.render.bind(n);return fj(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},kte=cj,P2={exports:{}};P2.exports=Ym;P2.exports.default=Ym;function Ym(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=wR(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,c,d,y,g,m;if(n&&(a=mj(e,t,a,r)),e.length>80*r){l=c=e[0],s=d=e[1];for(var E=r;E<i;E+=r)y=e[E],g=e[E+1],y<l&&(l=y),g<s&&(s=g),y>c&&(c=y),g>d&&(d=g);m=Math.max(c-l,d-s),m=m!==0?1/m:0}return pd(a,o,r,l,s,m),o}function wR(e,t,r,n,i){var a,o;if(i===kw(e,t,r,n)>0)for(a=t;a<r;a+=n)o=H3(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=H3(a,e[a],e[a+1],o);return o&&Xm(o,o.next)&&(md(o),o=o.next),o}function iu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Xm(r,r.next)||zr(r.prev,r,r.next)===0)){if(md(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function pd(e,t,r,n,i,a,o){if(!!e){!o&&a&&wj(e,n,i,a);for(var l=e,s,c;e.prev!==e.next;){if(s=e.prev,c=e.next,a?dj(e,n,i,a):hj(e)){t.push(s.i/r),t.push(e.i/r),t.push(c.i/r),md(e),e=c.next,l=c.next;continue}if(e=c,e===l){o?o===1?(e=pj(iu(e),t,r),pd(e,t,r,n,i,a,2)):o===2&&vj(e,t,r,n,i,a):pd(iu(e),t,r,n,i,a,1);break}}}}function hj(e){var t=e.prev,r=e,n=e.next;if(zr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if($s(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&zr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function dj(e,t,r,n){var i=e.prev,a=e,o=e.next;if(zr(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,y=Cw(l,s,t,r,n),g=Cw(c,d,t,r,n),m=e.prevZ,E=e.nextZ;m&&m.z>=y&&E&&E.z<=g;){if(m!==e.prev&&m!==e.next&&$s(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&&zr(m.prev,m,m.next)>=0||(m=m.prevZ,E!==e.prev&&E!==e.next&&$s(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&zr(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;m&&m.z>=y;){if(m!==e.prev&&m!==e.next&&$s(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&&zr(m.prev,m,m.next)>=0)return!1;m=m.prevZ}for(;E&&E.z<=g;){if(E!==e.prev&&E!==e.next&&$s(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&zr(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function pj(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!Xm(i,a)&&_R(i,n,n.next,a)&&vd(i,a)&&vd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),md(n),md(n.next),n=e=a),n=n.next}while(n!==e);return iu(n)}function vj(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&Ej(o,l)){var s=SR(o,l);o=iu(o,o.next),s=iu(s,s.next),pd(o,t,r,n,i,a),pd(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function mj(e,t,r,n){var i=[],a,o,l,s,c;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,c=wR(e,l,s,n,!1),c===c.next&&(c.steiner=!0),i.push(Sj(c));for(i.sort(gj),a=0;a<i.length;a++)r=yj(i[a],r),r=iu(r,r.next);return r}function gj(e,t){return e.x-t.x}function yj(e,t){var r=xj(e,t);if(!r)return t;var n=SR(r,e),i=iu(r,r.next);return iu(n,n.next),t===r?i:t}function xj(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,c=o.x,d=o.y,y=1/0,g;r=o;do n>=r.x&&r.x>=c&&n!==r.x&&$s(i<d?n:a,i,c,d,i<d?a:n,i,r.x,r.y)&&(g=Math.abs(i-r.y)/(n-r.x),vd(r,e)&&(g<y||g===y&&(r.x>o.x||r.x===o.x&&bj(o,r)))&&(o=r,y=g)),r=r.next;while(r!==s);return o}function bj(e,t){return zr(e.prev,e,t.prev)<0&&zr(t.next,e,e.next)<0}function wj(e,t,r,n){var i=e;do i.z===null&&(i.z=Cw(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,_j(i)}function _j(e){var t,r,n,i,a,o,l,s,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,l=0,t=0;t<c&&(l++,n=n.nextZ,!!n);t++);for(s=c;l>0||s>0&&n;)l!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1);return e}function Cw(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Sj(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function $s(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function Ej(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Aj(e,t)&&(vd(e,t)&&vd(t,e)&&Tj(e,t)&&(zr(e.prev,e,t.prev)||zr(e,t.prev,t))||Xm(e,t)&&zr(e.prev,e,e.next)>0&&zr(t.prev,t,t.next)>0)}function zr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Xm(e,t){return e.x===t.x&&e.y===t.y}function _R(e,t,r,n){var i=Pv(zr(e,t,r)),a=Pv(zr(e,t,n)),o=Pv(zr(r,n,e)),l=Pv(zr(r,n,t));return!!(i!==a&&o!==l||i===0&&Fv(e,r,t)||a===0&&Fv(e,n,t)||o===0&&Fv(r,e,n)||l===0&&Fv(r,t,n))}function Fv(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Pv(e){return e>0?1:e<0?-1:0}function Aj(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&_R(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function vd(e,t){return zr(e.prev,e,e.next)<0?zr(e,t,e.next)>=0&&zr(e,e.prev,t)>=0:zr(e,t,e.prev)<0||zr(e,e.next,t)<0}function Tj(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function SR(e,t){var r=new Ow(e.i,e.x,e.y),n=new Ow(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function H3(e,t,r,n){var i=new Ow(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function md(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ow(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ym.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(kw(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var c=t[l]*r,d=l<s-1?t[l+1]*r:e.length;o-=Math.abs(kw(e,c,d,r))}var y=0;for(l=0;l<n.length;l+=3){var g=n[l]*r,m=n[l+1]*r,E=n[l+2]*r;y+=Math.abs((e[g]-e[E])*(e[m+1]-e[g+1])-(e[g]-e[m])*(e[E+1]-e[g+1]))}return o===0&&y===0?0:Math.abs((y-o)/o)};function kw(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}Ym.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var Cj=Id,Oj=kj;function kj(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Cj(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var Mj=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},Ij=function(){},Rj=Ij(),no=function(e){return e!==Rj&&e!==null},w1,V3;function ER(){if(V3)return w1;V3=1;var e=Object.create,t=Object.getPrototypeOf,r={};return w1=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},w1}var Fj=no,Pj={function:!0,object:!0},N2=function(e){return Fj(e)&&Pj[typeof e]||!1},Nj=no,qi=function(e){if(!Nj(e))throw new TypeError("Cannot use null or undefined");return e},_1,q3;function Lj(){if(q3)return _1;q3=1;var e=Object.create,t;return ER()()||(t=AR()),_1=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),_1}var S1,Y3;function AR(){if(Y3)return S1;Y3=1;var e=N2,t=qi,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},S1=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(c,d){return s.call(a(c,d),d),c}):l=function(c,d){return a(c,d).__proto__=d,c}:l=function c(d,y){var g;return a(d,y),g=r.call(c.nullPolyfill,d),g&&delete c.nullPolyfill.__proto__,y===null&&(y=c.nullPolyfill),d.__proto__=y,g&&n(c.nullPolyfill,"__proto__",i),d},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(c){try{s=c.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),Lj(),S1}var E1,X3;function L2(){return X3||(X3=1,E1=ER()()?Object.setPrototypeOf:AR()),E1}var A1,Q3;function Dj(){if(Q3)return A1;Q3=1;var e=N2;return A1=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},A1}var T1,Z3;function Bj(){if(Z3)return T1;Z3=1;var e=Object.create(null),t=Math.random;return T1=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},T1}var Mi={exports:{}},$j=void 0,Mf=function(e){return e!==$j&&e!==null},zj=Mf,Uj={object:!0,function:!0,undefined:!0},D2=function(e){return zj(e)?hasOwnProperty.call(Uj,typeof e):!1},jj=D2,Gj=function(e){if(!jj(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},Wj=Gj,Hj=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!Wj(e)},Vj=Hj,qj=/^\s*class[\s{/}]/,Yj=Function.prototype.toString,TR=function(e){return!(!Vj(e)||qj.test(Yj.call(e)))},Xj=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},C1,K3;function Qj(){return K3||(K3=1,C1=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),C1}var O1,J3;function Zj(){if(J3)return O1;J3=1;var e=no,t=Object.keys;return O1=function(r){return t(e(r)?Object(r):r)},O1}var k1,eT;function Kj(){return eT||(eT=1,k1=Qj()()?Object.keys:Zj()),k1}var M1,tT;function Jj(){if(tT)return M1;tT=1;var e=Kj(),t=qi,r=Math.max;return M1=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(c){try{n[c]=i[c]}catch(d){a||(a=d)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},M1}var Qm=Xj()?Object.assign:Jj(),eG=no,tG=Array.prototype.forEach,rG=Object.create,nG=function(e,t){var r;for(r in e)t[r]=e[r]},B2=function(e){var t=rG(null);return tG.call(arguments,function(r){!eG(r)||nG(Object(r),t)}),t},I1="razdwatrzy",iG=function(){return typeof I1.contains!="function"?!1:I1.contains("dwa")===!0&&I1.contains("foo")===!1},R1,rT;function aG(){if(rT)return R1;rT=1;var e=String.prototype.indexOf;return R1=function(t){return e.call(this,t,arguments[1])>-1},R1}var CR=iG()?String.prototype.contains:aG(),h0=Mf,nT=TR,OR=Qm,kR=B2,qh=CR,oG=Mi.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],h0(e)?(r=qh.call(e,"c"),n=qh.call(e,"e"),i=qh.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?OR(kR(a),o):o};oG.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],h0(t)?nT(t)?h0(r)?nT(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,h0(e)?(n=qh.call(e,"c"),i=qh.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?OR(kR(a),o):o};var F1,iT;function Zm(){if(iT)return F1;iT=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return F1=function(r){return e.call(r)===t},F1}var P1,aT;function Km(){if(aT)return P1;aT=1;var e=Object.prototype.toString,t=e.call("");return P1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},P1}var N1={exports:{}},L1,oT;function uG(){return oT||(oT=1,L1=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),L1}var D1,uT;function lG(){if(uT)return D1;uT=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return D1=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),D1}var B1,lT;function Jm(){return lT||(lT=1,B1=uG()()?globalThis:lG()),B1}var $1,sT;function sG(){if(sT)return $1;sT=1;var e=Jm(),t={object:!0,symbol:!0};return $1=function(){var r=e.Symbol,n;if(typeof r!="function")return!1;n=r("test symbol");try{String(n)}catch{return!1}return!(!t[typeof r.iterator]||!t[typeof r.toPrimitive]||!t[typeof r.toStringTag])},$1}var z1,fT;function fG(){return fT||(fT=1,z1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),z1}var U1,cT;function MR(){if(cT)return U1;cT=1;var e=fG();return U1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},U1}var j1,hT;function cG(){if(hT)return j1;hT=1;var e=Mi.exports,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return j1=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(c){s||(s=!0,r(this,l,e(c)),s=!1)})),l},j1}var G1,dT;function hG(){if(dT)return G1;dT=1;var e=Mi.exports,t=Jm().Symbol;return G1=function(r){return Object.defineProperties(r,{hasInstance:e("",t&&t.hasInstance||r("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||r("isConcatSpreadable")),iterator:e("",t&&t.iterator||r("iterator")),match:e("",t&&t.match||r("match")),replace:e("",t&&t.replace||r("replace")),search:e("",t&&t.search||r("search")),species:e("",t&&t.species||r("species")),split:e("",t&&t.split||r("split")),toPrimitive:e("",t&&t.toPrimitive||r("toPrimitive")),toStringTag:e("",t&&t.toStringTag||r("toStringTag")),unscopables:e("",t&&t.unscopables||r("unscopables"))})},G1}var W1,pT;function dG(){if(pT)return W1;pT=1;var e=Mi.exports,t=MR(),r=Object.create(null);return W1=function(n){return Object.defineProperties(n,{for:e(function(i){return r[i]?r[i]:r[i]=n(String(i))}),keyFor:e(function(i){var a;t(i);for(a in r)if(r[a]===i)return a})})},W1}var H1,vT;function pG(){if(vT)return H1;vT=1;var e=Mi.exports,t=MR(),r=Jm().Symbol,n=cG(),i=hG(),a=dG(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,c,d,y;if(typeof r=="function")try{String(r()),y=!0}catch{}else r=null;return d=function(m){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return c(m)},H1=c=function g(m){var E;if(this instanceof g)throw new TypeError("Symbol is not a constructor");return y?r(m):(E=o(d.prototype),m=m===void 0?"":String(m),l(E,{__description__:e("",m),__name__:e("",n(m))}))},i(c),a(c),l(d.prototype,{constructor:e(c),toString:e("",function(){return this.__name__})}),l(c.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(c.prototype,c.toPrimitive,e("",function(){var g=t(this);return typeof g=="symbol"?g:g.toString()})),s(c.prototype,c.toStringTag,e("c","Symbol")),s(d.prototype,c.toStringTag,e("c",c.prototype[c.toStringTag])),s(d.prototype,c.toPrimitive,e("c",c.prototype[c.toPrimitive])),H1}var V1,mT;function Ol(){return mT||(mT=1,V1=sG()()?Jm().Symbol:pG()),V1}var q1,gT;function vG(){if(gT)return q1;gT=1;var e=qi;return q1=function(){return e(this).length=0,this},q1}var ba=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Y1,yT;function mG(){if(yT)return Y1;yT=1;var e=Mf,t=D2,r=Object.prototype.toString;return Y1=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},Y1}var X1,xT;function gG(){return xT||(xT=1,X1=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),X1}var Q1,bT;function yG(){if(bT)return Q1;bT=1;var e=gG(),t=/[\n\r\u2028\u2029]/g;return Q1=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"\u2026"),n=n.replace(t,function(i){switch(i){case`
238
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},Q1}var Z1,wT;function IR(){if(wT)return Z1;wT=1;var e=Mf,t=D2,r=mG(),n=yG(),i=function(a,o){return a.replace("%v",n(o))};return Z1=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},Z1}var K1,_T;function xG(){if(_T)return K1;_T=1;var e=IR(),t=Mf;return K1=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},K1}var J1,ST;function bG(){if(ST)return J1;ST=1;var e=IR(),t=TR;return J1=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},J1}var ex,ET;function wG(){return ET||(ET=1,ex=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),Boolean(r&&r!==t&&r[1]==="dwa"))}),ex}var tx,AT;function _G(){if(AT)return tx;AT=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return tx=function(r){return typeof r=="function"&&t(e.call(r))},tx}var SG=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},rx,TT;function EG(){return TT||(TT=1,rx=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),rx}var AG=SG()?Math.sign:EG(),TG=AG,CG=Math.abs,OG=Math.floor,kG=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:TG(e)*OG(CG(e)))},MG=kG,IG=Math.max,kl=function(e){return IG(0,MG(e))},nx,CT;function RG(){if(CT)return nx;CT=1;var e=Ol().iterator,t=Zm(),r=_G(),n=kl,i=ba,a=qi,o=no,l=Km(),s=Array.isArray,c=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},y=Object.defineProperty;return nx=function(g){var m=arguments[1],E=arguments[2],I,b,w,_,C,T,P,D,Y,j;if(g=Object(a(g)),o(m)&&i(m),!this||this===Array||!r(this)){if(!m){if(t(g))return C=g.length,C!==1?Array.apply(null,g):(_=new Array(1),_[0]=g[0],_);if(s(g)){for(_=new Array(C=g.length),b=0;b<C;++b)_[b]=g[b];return _}}_=[]}else I=this;if(!s(g)){if((Y=g[e])!==void 0){for(P=i(Y).call(g),I&&(_=new I),D=P.next(),b=0;!D.done;)j=m?c.call(m,E,D.value,b):D.value,I?(d.value=j,y(_,b,d)):_[b]=j,D=P.next(),++b;C=b}else if(l(g)){for(C=g.length,I&&(_=new I),b=0,w=0;b<C;++b)j=g[b],b+1<C&&(T=j.charCodeAt(0),T>=55296&&T<=56319&&(j+=g[++b])),j=m?c.call(m,E,j,w):j,I?(d.value=j,y(_,w,d)):_[w]=j,++w;C=w}}if(C===void 0)for(C=n(g.length),I&&(_=new I(C)),b=0;b<C;++b)j=m?c.call(m,E,g[b],b):g[b],I?(d.value=j,y(_,b,d)):_[b]=j;return I&&(d.value=null,_.length=C),_},nx}var ix,OT;function eg(){return OT||(OT=1,ix=wG()()?Array.from:RG()),ix}var ax,kT;function FG(){if(kT)return ax;kT=1;var e=eg(),t=Qm,r=qi;return ax=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},ax}var PG=ba,NG=qi,LG=Function.prototype.bind,MT=Function.prototype.call,DG=Object.keys,BG=Object.prototype.propertyIsEnumerable,$G=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(NG(r)),PG(n),i=DG(r),o&&i.sort(typeof o=="function"?LG.call(o,r):void 0),typeof e!="function"&&(e=i[e]),MT.call(e,i,function(l,s){return BG.call(r,l)?MT.call(n,a,r[l],l,r,s):t})}},tg=$G("forEach"),ox,IT;function $2(){if(IT)return ox;IT=1;var e=ba,t=tg,r=Function.prototype.call;return ox=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,c,d){a[s]=r.call(i,o,l,s,c,d)}),a},ox}var ux,RT;function zG(){if(RT)return ux;RT=1;var e=Mf,t=xG(),r=bG(),n=FG(),i=B2,a=$2(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,c;return c=function(d,y,g){var m=t(y)&&r(y.value),E;return E=n(y),delete E.writable,delete E.value,E.get=function(){return!g.overwriteDefinition&&s.call(this,d)?m:(y.value=o.call(m,g.resolveContext?g.resolveContext(this):this),l(this,d,y),this[d])},E},ux=function(d){var y=i(arguments[1]);return e(y.resolveContext)&&r(y.resolveContext),a(d,function(g,m){return c(m,g,y)})},ux}var lx,FT;function RR(){if(FT)return lx;FT=1;var e=vG(),t=Qm,r=ba,n=qi,i=Mi.exports,a=zG(),o=Ol(),l=Object.defineProperty,s=Object.defineProperties,c;return lx=c=function(d,y){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",y),__nextIndex__:i("w",0)}),y&&(r(y.on),y.on("_add",this._onAdd),y.on("_delete",this._onDelete),y.on("_clear",this._onClear))},delete c.prototype.constructor,s(c.prototype,t({_next:i(function(){var d;if(!!this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(y,g){y>=d&&(this.__redo__[g]=++y)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var y;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(y=this.__redo__.indexOf(d),y!==-1&&this.__redo__.splice(y,1),this.__redo__.forEach(function(g,m){g>d&&(this.__redo__[m]=--g)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(c.prototype,o.iterator,i(function(){return this})),lx}var PT;function UG(){if(PT)return N1.exports;PT=1;var e=L2(),t=CR,r=Mi.exports,n=Ol(),i=RR(),a=Object.defineProperty,o;return o=N1.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),N1.exports}var sx={exports:{}},NT;function jG(){if(NT)return sx.exports;NT=1;var e=L2(),t=Mi.exports,r=Ol(),n=RR(),i=Object.defineProperty,a;return a=sx.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(!!this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),sx.exports}var fx,LT;function GG(){if(LT)return fx;LT=1;var e=Zm(),t=no,r=Km(),n=Ol().iterator,i=Array.isArray;return fx=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},fx}var cx,DT;function WG(){if(DT)return cx;DT=1;var e=GG();return cx=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},cx}var hx,BT;function FR(){if(BT)return hx;BT=1;var e=Zm(),t=Km(),r=UG(),n=jG(),i=WG(),a=Ol().iterator;return hx=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},hx}var dx,$T;function HG(){if($T)return dx;$T=1;var e=Zm(),t=ba,r=Km(),n=FR(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return dx=function(l,s){var c,d=arguments[2],y,g,m,E,I,b,w;if(i(l)||e(l)?c="array":r(l)?c="string":l=n(l),t(s),g=function(){m=!0},c==="array"){o.call(l,function(_){return a.call(s,d,_,g),m});return}if(c==="string"){for(I=l.length,E=0;E<I&&(b=l[E],E+1<I&&(w=b.charCodeAt(0),w>=55296&&w<=56319&&(b+=l[++E])),a.call(s,d,b,g),!m);++E);return}for(y=l.next();!y.done;){if(a.call(s,d,y.value,g),m)return;y=l.next()}},dx}var px,zT;function VG(){return zT||(zT=1,px=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),px}var vx,UT;function qG(){if(UT)return vx;UT=1;var e=no,t=L2(),r=Dj(),n=qi,i=Bj(),a=Mi.exports,o=FR(),l=HG(),s=Ol().toStringTag,c=VG(),d=Array.isArray,y=Object.defineProperty,g=Object.prototype.hasOwnProperty,m=Object.getPrototypeOf,E;return vx=E=function(){var I=arguments[0],b;if(!(this instanceof E))throw new TypeError("Constructor requires 'new'");return b=c&&t&&WeakMap!==E?t(new WeakMap,m(this)):this,e(I)&&(d(I)||(I=o(I))),y(b,"__weakMapData__",a("c","$weakMap$"+i())),I&&l(I,function(w){n(w),b.set(w[0],w[1])}),b},c&&(t&&t(E,WeakMap),E.prototype=Object.create(WeakMap.prototype,{constructor:a(E)})),Object.defineProperties(E.prototype,{delete:a(function(I){return g.call(r(I),this.__weakMapData__)?(delete I[this.__weakMapData__],!0):!1}),get:a(function(I){if(!!g.call(r(I),this.__weakMapData__))return I[this.__weakMapData__]}),has:a(function(I){return g.call(r(I),this.__weakMapData__)}),set:a(function(I,b){return y(r(I),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),y(E.prototype,s,a("c","WeakMap")),vx}var PR=Mj()?WeakMap:qG(),YG=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const Nv=Vm,XG=Id,Mw=xl,_s=yR,QG=du,ZG=Rd,jT=P2.exports,KG=Oj,{float32:JG,fract32:mx}=nu.exports,eW=PR,GT=Hm,tW=YG;var Mte=wr;function wr(e,t){if(!(this instanceof wr))return new wr(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=wr.shaders.has(e)?wr.shaders.get(e):wr.shaders.set(e,wr.createShaders(e)).get(e),this.update(t)}wr.dashMult=2;wr.maxPatternLength=256;wr.precisionThreshold=3e6;wr.maxPoints=1e4;wr.maxLines=2048;wr.shaders=new eW;wr.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(Mw({vert:_s("./rect-vert.glsl"),frag:_s("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(Mw({cull:{enable:!0,face:"back"},vert:_s("./miter-vert.glsl"),frag:_s("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:_s("./fill-vert.glsl"),frag:_s("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};wr.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};wr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};wr.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>wr.precisionThreshold||t.scale[1]*t.viewport.height>wr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=wr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};wr.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=QG(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=Mw({},wr.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<wr.maxLines&&(o.depth=2*(wr.maxLines-1-a%wr.maxLines)/wr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?Nv(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=GT(i.viewport)),o.viewport||(o.viewport=GT([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let c,d;if(i.positions.x&&i.positions.y){let E=i.positions.x,I=i.positions.y;d=o.count=Math.max(E.length,I.length),c=new Float64Array(d*2);for(let b=0;b<d;b++)c[b*2]=E[b],c[b*2+1]=I[b]}else c=ZG(i.positions,"float64"),d=o.count=Math.floor(c.length/2);let y=o.bounds=XG(c,2);if(o.fill){let E=[],I={},b=0;for(let w=0,_=0,C=o.count;w<C;w++){let T=c[w*2],P=c[w*2+1];isNaN(T)||isNaN(P)||T==null||P==null?(T=c[b*2],P=c[b*2+1],I[w]=b):b=w,E[_++]=T,E[_++]=P}if(i.splitNull){o.count-1 in I||(I[o.count]=o.count-1);let w=Object.keys(I).map(Number).sort((P,D)=>P-D),_=[],C=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let P=tW(w,D=>D>=T);w=w.slice(0,P),w.push(T)}for(let P=0;P<w.length;P++){let D=E.slice(C*2,w[P]*2).concat(T?E.slice(T*2):[]),Y=(o.hole||[]).map(re=>re-T+(w[P]-C)),j=jT(D,Y);j=j.map(re=>re+C+(re+C<w[P]?0:T-w[P])),_.push(...j),C=w[P]+1}for(let P=0,D=_.length;P<D;P++)I[_[P]]!=null&&(_[P]=I[_[P]]);o.triangles=_}else{let w=jT(E,o.hole||[]);for(let _=0,C=w.length;_<C;_++)I[w[_]]!=null&&(w[_]=I[w[_]]);o.triangles=w}}let g=new Float64Array(c);KG(g,2,y);let m=new Float64Array(d*2+6);o.close?c[0]===c[d*2-2]&&c[1]===c[d*2-1]?(m[0]=g[d*2-4],m[1]=g[d*2-3]):(m[0]=g[d*2-2],m[1]=g[d*2-1]):(m[0]=g[0],m[1]=g[1]),m.set(g,2),o.close?c[0]===c[d*2-2]&&c[1]===c[d*2-1]?(m[d*2+2]=g[2],m[d*2+3]=g[3],o.count-=1):(m[d*2+2]=g[0],m[d*2+3]=g[1],m[d*2+4]=g[2],m[d*2+5]=g[3]):(m[d*2+2]=g[d*2-2],m[d*2+3]=g[d*2-1],m[d*2+4]=g[d*2-2],m[d*2+5]=g[d*2-1]);var l=JG(m);o.positionBuffer(l);var s=mx(m,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let c=o.bounds,d=c[2]-c[0],y=c[3]-c[1],g=o.range[2]-o.range[0],m=o.range[3]-o.range[1];o.scale=[d/g,y/m],o.translate=[-o.range[0]/g+c[0]/g||0,-o.range[1]/m+c[1]/m||0],o.scaleFract=mx(o.scale),o.translateFract=mx(o.translate)}if(i.dashes){let c=0,d;if(!i.dashes||i.dashes.length<2)c=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{c=0;for(let m=0;m<i.dashes.length;++m)c+=i.dashes[m];d=new Uint8Array(c*wr.dashMult);let y=0,g=255;for(let m=0;m<2;m++)for(let E=0;E<i.dashes.length;++E){for(let I=0,b=i.dashes[E]*wr.dashMult*.5;I<b;++I)d[y++]=g;g^=255}}o.dashLength=c,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let c=o.count,d=i.color;d||(d="transparent");let y=new Uint8Array(c*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let g=Nv(d,"uint8");for(let m=0;m<c+1;m++)y.set(g,m*4)}else{for(let g=0;g<c;g++){let m=Nv(d[g],"uint8");y.set(m,g*4)}y.set(Nv(d[0],"uint8"),c*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:y})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];!a||(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};wr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const rW=Id,nW=Vm,iW=xR,aW=du,WT=xl,HT=Rd,{float32:oW,fract32:gx}=nu.exports;var Ite=uW;const VT=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function uW(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,c={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:VT}),E(t),n=e({vert:`
239
+ precision highp float;
240
+
241
+ attribute vec2 position, positionFract;
242
+ attribute vec4 error;
243
+ attribute vec4 color;
244
+
245
+ attribute vec2 direction, lineOffset, capOffset;
246
+
247
+ uniform vec4 viewport;
248
+ uniform float lineWidth, capSize;
249
+ uniform vec2 scale, scaleFract, translate, translateFract;
250
+
251
+ varying vec4 fragColor;
252
+
253
+ void main() {
254
+ fragColor = color / 255.;
255
+
256
+ vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
257
+
258
+ vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
259
+
260
+ vec2 position = position + dxy;
261
+
262
+ vec2 pos = (position + translate) * scale
263
+ + (positionFract + translateFract) * scale
264
+ + (position + translate) * scaleFract
265
+ + (positionFract + translateFract) * scaleFract;
266
+
267
+ pos += pixelOffset / viewport.zw;
268
+
269
+ gl_Position = vec4(pos * 2. - 1., 0, 1);
270
+ }
271
+ `,frag:`
272
+ precision highp float;
273
+
274
+ varying vec4 fragColor;
275
+
276
+ uniform float opacity;
277
+
278
+ void main() {
279
+ gl_FragColor = fragColor;
280
+ gl_FragColor.a *= opacity;
281
+ }
282
+ `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,w)=>[w.viewport.x,w.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(b,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,w)=>w.offset*8,divisor:1},error:{buffer:l,offset:(b,w)=>w.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:VT.length}),WT(y,{update:E,draw:g,destroy:I,regl:e,gl:r,canvas:r.canvas,groups:d}),y;function y(b){b?E(b):b===null&&I(),g()}function g(b){if(typeof b=="number")return m(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),d.forEach((w,_)=>{if(!!w){if(b&&(b[_]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}m(_)}})}function m(b){typeof b=="number"&&(b=d[b]),b!=null&&(!(b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1)||(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b)))}function E(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let w=0,_=0;if(y.groups=d=b.map((P,D)=>{let Y=d[D];if(P)typeof P=="function"?P={after:P}:typeof P[0]=="number"&&(P={positions:P});else return Y;return P=aW(P,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),Y||(d[D]=Y={id:D,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},P=WT({},c,P)),iW(Y,P,[{lineWidth:j=>+j*.5,capSize:j=>+j*.5,opacity:parseFloat,errors:j=>(j=HT(j),_+=j.length,j),positions:(j,re)=>(j=HT(j,"float64"),re.count=Math.floor(j.length/2),re.bounds=rW(j,2),re.offset=w,w+=re.count,j)},{color:(j,re)=>{let Ee=re.count;if(j||(j="transparent"),!Array.isArray(j)||typeof j[0]=="number"){let ke=j;j=Array(Ee);for(let Pe=0;Pe<Ee;Pe++)j[Pe]=ke}if(j.length<Ee)throw Error("Not enough colors");let me=new Uint8Array(Ee*4);for(let ke=0;ke<Ee;ke++){let Pe=nW(j[ke],"uint8");me.set(Pe,ke*4)}return me},range:(j,re,Ee)=>{let me=re.bounds;return j||(j=me),re.scale=[1/(j[2]-j[0]),1/(j[3]-j[1])],re.translate=[-j[0],-j[1]],re.scaleFract=gx(re.scale),re.translateFract=gx(re.translate),j},viewport:j=>{let re;return Array.isArray(j)?re={x:j[0],y:j[1],width:j[2]-j[0],height:j[3]-j[1]}:j?(re={x:j.x||j.left||0,y:j.y||j.top||0},j.right?re.width=j.right-re.x:re.width=j.w||j.width||0,j.bottom?re.height=j.bottom-re.y:re.height=j.h||j.height||0):re={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},re}}]),Y}),w||_){let P=d.reduce((re,Ee,me)=>re+(Ee?Ee.count:0),0),D=new Float64Array(P*2),Y=new Uint8Array(P*4),j=new Float32Array(P*4);d.forEach((re,Ee)=>{if(!re)return;let{positions:me,count:ke,offset:Pe,color:Le,errors:ut}=re;!ke||(Y.set(Le,Pe*4),j.set(ut,Pe*4),D.set(me,Pe*2))});var C=oW(D);i(C);var T=gx(D,C);a(T),o(Y),l(j)}}function I(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var qT=/[\'\"]/,lW=function(t){return t?(qT.test(t.charAt(0))&&(t=t.substr(1)),qT.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const NR=["inherit","initial","unset"],LR=["caption","icon","menu","message-box","small-caption","status-bar"],DR=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],BR=["normal","italic","oblique"],$R=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function zR(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(s){var c=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),d=[];function y(g,m,E){var I=r.push(g.slice(s[0].length,-s[1].length))-1;return d.push(I),i+I+i}r.forEach(function(g,m){for(var E,I=0;g!=E;)if(E=g,g=g.replace(c,y),I++>1e4)throw Error("References have circular dependency. Please, check them.");r[m]=g}),d=d.reverse(),r=r.map(function(g){return d.forEach(function(m){g=g.replace(new RegExp("(\\"+i+m+"\\"+i+")","g"),s[0]+"$1"+s[1])}),g})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,c,d){for(var y=[],g,m=0;g=o.exec(s);){if(m++>1e4)throw Error("Circular references in parenthesis");y.push(s.slice(0,g.index)),y.push(l(c[g[1]],c)),s=s.slice(g.index+g[0].length)}return y.push(s),y}return a?r:l(r[0],r)}function UR(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(c,d){return Array.isArray(d)&&(d=d.reduce(s,"")),c+d},"");function l(s,c){if(e[c]==null)throw Error("Reference "+c+"is undefined");return e[c]}}function z2(e,t){return Array.isArray(e)?UR(e,t):zR(e,t)}z2.parse=zR;z2.stringify=UR;var sW=z2,YT=sW,fW=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(y){return y.length===1&&(y=y+y),y}));var i=YT.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var c=o[s],d=o[s+1];c[c.length-1]==="\\"&&c[c.length-2]!=="\\"?(l.push(c+r+d),s++):l.push(c)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=YT.stringify(i,{flat:!0});return o};const cW=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var hW=cW,jR={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||hW.indexOf(t)!==-1}},dW=lW,pW=NR,vW=LR,mW=DR,gW=BR,yW=$R,yx=fW,xW=jR.isSize,bW=GR,dh=GR.cache={};function GR(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(dh[e])return dh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(vW.indexOf(e)!==-1)return dh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=yx(e,/\s+/),n;n=r.shift();){if(pW.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),dh[e]=t;if(gW.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(yW.indexOf(n)!==-1){t.stretch=n;continue}if(mW.indexOf(n)!==-1){t.weight=n;continue}if(xW(n)){var i=yx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=XT(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=XT(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=yx(r.join(" "),/\s*,\s*/).map(dW),dh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function XT(e){var t=parseFloat(e);return t.toString()===e?t:e}var wW=du,_W=jR.isSize,SW=Fd(NR),EW=Fd(LR),AW=Fd(DR),TW=Fd(BR),CW=Fd($R),OW={normal:1,"small-caps":1},kW={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},xx={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},WR=function(t){if(t=wW(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&ph(t.system,EW),t.system;if(ph(t.style,TW),ph(t.variant,OW),ph(t.weight,AW),ph(t.stretch,CW),t.size==null&&(t.size=xx.size),typeof t.size=="number"&&(t.size+="px"),!_W)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=xx.family),Array.isArray(t.family)&&(t.family.length||(t.family=[xx.family]),t.family=t.family.map(function(n){return kW[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function ph(e,t){if(e&&!t[e]&&!SW[e])throw Error("Unknown keyword `"+e+"`");return e}function Fd(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var MW={parse:bW,stringify:WR},HR={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(_r,function(){var r=function(F,H){for(var K=Object.keys(H),Se=0;Se<K.length;++Se)F[K[Se]]=H[K[Se]];return F},n=0,i=0,a=5,o=6;function l(F,H){this.id=n++,this.type=F,this.data=H}function s(F){return F.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function c(F){if(F.length===0)return[];var H=F.charAt(0),K=F.charAt(F.length-1);if(F.length>1&&H===K&&(H==='"'||H==="'"))return['"'+s(F.substr(1,F.length-2))+'"'];var Se=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(F);if(Se)return c(F.substr(0,Se.index)).concat(c(Se[1])).concat(c(F.substr(Se.index+Se[0].length)));var Me=F.split(".");if(Me.length===1)return['"'+s(F)+'"'];for(var ye=[],we=0;we<Me.length;++we)ye=ye.concat(c(Me[we]));return ye}function d(F){return"["+c(F).join("][")+"]"}function y(F,H){return new l(F,d(H+""))}function g(F){return typeof F=="function"&&!F._reglType||F instanceof l}function m(F,H){if(typeof F=="function")return new l(i,F);if(typeof F=="number"||typeof F=="boolean")return new l(a,F);if(Array.isArray(F))return new l(o,F.map(function(K,Se){return m(K)}));if(F instanceof l)return F}var E={DynamicVariable:l,define:y,isDynamic:g,unbox:m,accessor:d},I={next:typeof requestAnimationFrame=="function"?function(F){return requestAnimationFrame(F)}:function(F){return setTimeout(F,16)},cancel:typeof cancelAnimationFrame=="function"?function(F){return cancelAnimationFrame(F)}:clearTimeout},b=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var F={"":0},H=[""];return{id:function(K){var Se=F[K];return Se||(Se=F[K]=H.length,H.push(K),Se)},str:function(K){return H[K]}}}function _(F,H,K){var Se=document.createElement("canvas");r(Se.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),F.appendChild(Se),F===document.body&&(Se.style.position="absolute",r(F.style,{margin:0,padding:0}));function Me(){var Ye=window.innerWidth,Xe=window.innerHeight;if(F!==document.body){var et=Se.getBoundingClientRect();Ye=et.right-et.left,Xe=et.bottom-et.top}Se.width=K*Ye,Se.height=K*Xe}var ye;F!==document.body&&typeof ResizeObserver=="function"?(ye=new ResizeObserver(function(){setTimeout(Me)}),ye.observe(F)):window.addEventListener("resize",Me,!1);function we(){ye?ye.disconnect():window.removeEventListener("resize",Me),F.removeChild(Se)}return Me(),{canvas:Se,onDestroy:we}}function C(F,H){function K(Se){try{return F.getContext(Se,H)}catch{return null}}return K("webgl")||K("experimental-webgl")||K("webgl-experimental")}function T(F){return typeof F.nodeName=="string"&&typeof F.appendChild=="function"&&typeof F.getBoundingClientRect=="function"}function P(F){return typeof F.drawArrays=="function"||typeof F.drawElements=="function"}function D(F){return typeof F=="string"?F.split():F}function Y(F){return typeof F=="string"?document.querySelector(F):F}function j(F){var H=F||{},K,Se,Me,ye,we={},Ye=[],Xe=[],et=typeof window>"u"?1:window.devicePixelRatio,ft=!1,It={},St=function(he){},it=function(){};if(typeof H=="string"?K=document.querySelector(H):typeof H=="object"&&(T(H)?K=H:P(H)?(ye=H,Me=ye.canvas):("gl"in H?ye=H.gl:"canvas"in H?Me=Y(H.canvas):"container"in H&&(Se=Y(H.container)),"attributes"in H&&(we=H.attributes),"extensions"in H&&(Ye=D(H.extensions)),"optionalExtensions"in H&&(Xe=D(H.optionalExtensions)),"onDone"in H&&(St=H.onDone),"profile"in H&&(ft=!!H.profile),"pixelRatio"in H&&(et=+H.pixelRatio),"cachedCode"in H&&(It=H.cachedCode))),K&&(K.nodeName.toLowerCase()==="canvas"?Me=K:Se=K),!ye){if(!Me){var Ge=_(Se||document.body,St,et);if(!Ge)return null;Me=Ge.canvas,it=Ge.onDestroy}we.premultipliedAlpha===void 0&&(we.premultipliedAlpha=!0),ye=C(Me,we)}return ye?{gl:ye,canvas:Me,container:Se,extensions:Ye,optionalExtensions:Xe,pixelRatio:et,profile:ft,cachedCode:It,onDone:St,onDestroy:it}:(it(),St("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function re(F,H){var K={};function Se(we){var Ye=we.toLowerCase(),Xe;try{Xe=K[Ye]=F.getExtension(Ye)}catch{}return!!Xe}for(var Me=0;Me<H.extensions.length;++Me){var ye=H.extensions[Me];if(!Se(ye))return H.onDestroy(),H.onDone('"'+ye+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return H.optionalExtensions.forEach(Se),{extensions:K,restore:function(){Object.keys(K).forEach(function(we){if(K[we]&&!Se(we))throw new Error("(regl): error restoring extension "+we)})}}}function Ee(F,H){for(var K=Array(F),Se=0;Se<F;++Se)K[Se]=H(Se);return K}var me=5120,ke=5121,Pe=5122,Le=5123,ut=5124,nt=5125,De=5126;function We(F){for(var H=16;H<=1<<28;H*=16)if(F<=H)return H;return 0}function _t(F){var H,K;return H=(F>65535)<<4,F>>>=H,K=(F>255)<<3,F>>>=K,H|=K,K=(F>15)<<2,F>>>=K,H|=K,K=(F>3)<<1,F>>>=K,H|=K,H|F>>1}function He(){var F=Ee(8,function(){return[]});function H(ye){var we=We(ye),Ye=F[_t(we)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(we)}function K(ye){F[_t(ye.byteLength)>>2].push(ye)}function Se(ye,we){var Ye=null;switch(ye){case me:Ye=new Int8Array(H(we),0,we);break;case ke:Ye=new Uint8Array(H(we),0,we);break;case Pe:Ye=new Int16Array(H(2*we),0,we);break;case Le:Ye=new Uint16Array(H(2*we),0,we);break;case ut:Ye=new Int32Array(H(4*we),0,we);break;case nt:Ye=new Uint32Array(H(4*we),0,we);break;case De:Ye=new Float32Array(H(4*we),0,we);break;default:return null}return Ye.length!==we?Ye.subarray(0,we):Ye}function Me(ye){K(ye.buffer)}return{alloc:H,free:K,allocType:Se,freeType:Me}}var be=He();be.zero=He();var Ve=3408,st=3410,Qe=3411,ct=3412,yt=3413,Wt=3414,Vt=3415,Ze=33901,At=33902,Ut=3379,Ce=3386,W=34921,ae=36347,M=36348,A=35661,k=35660,B=34930,fe=36349,Fe=34076,ze=34024,Qt=7936,sr=7937,nr=7938,Hr=35724,kr=34047,Xi=36063,vu=34852,wa=3553,pi=34067,Zd=34069,Ii=33984,mu=6408,Fl=5126,Pl=5121,Nl=36160,Fg=36053,_a=36064,Pg=16384,Ll=function(F,H){var K=1;H.ext_texture_filter_anisotropic&&(K=F.getParameter(kr));var Se=1,Me=1;H.webgl_draw_buffers&&(Se=F.getParameter(vu),Me=F.getParameter(Xi));var ye=!!H.oes_texture_float;if(ye){var we=F.createTexture();F.bindTexture(wa,we),F.texImage2D(wa,0,mu,1,1,0,mu,Fl,null);var Ye=F.createFramebuffer();if(F.bindFramebuffer(Nl,Ye),F.framebufferTexture2D(Nl,_a,wa,we,0),F.bindTexture(wa,null),F.checkFramebufferStatus(Nl)!==Fg)ye=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(Pg);var Xe=be.allocType(Fl,4);F.readPixels(0,0,1,1,mu,Fl,Xe),F.getError()?ye=!1:(F.deleteFramebuffer(Ye),F.deleteTexture(we),ye=Xe[0]===1),be.freeType(Xe)}}var et=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ft=!0;if(!et){var It=F.createTexture(),St=be.allocType(Pl,36);F.activeTexture(Ii),F.bindTexture(pi,It),F.texImage2D(Zd,0,mu,3,3,0,mu,Pl,St),be.freeType(St),F.bindTexture(pi,null),F.deleteTexture(It),ft=!F.getError()}return{colorBits:[F.getParameter(st),F.getParameter(Qe),F.getParameter(ct),F.getParameter(yt)],depthBits:F.getParameter(Wt),stencilBits:F.getParameter(Vt),subpixelBits:F.getParameter(Ve),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:K,maxDrawbuffers:Se,maxColorAttachments:Me,pointSizeDims:F.getParameter(Ze),lineWidthDims:F.getParameter(At),maxViewportDims:F.getParameter(Ce),maxCombinedTextureUnits:F.getParameter(A),maxCubeMapSize:F.getParameter(Fe),maxRenderbufferSize:F.getParameter(ze),maxTextureUnits:F.getParameter(B),maxTextureSize:F.getParameter(Ut),maxAttributes:F.getParameter(W),maxVertexUniforms:F.getParameter(ae),maxVertexTextureUnits:F.getParameter(k),maxVaryingVectors:F.getParameter(M),maxFragmentUniforms:F.getParameter(fe),glsl:F.getParameter(Hr),renderer:F.getParameter(sr),vendor:F.getParameter(Qt),version:F.getParameter(nr),readFloat:ye,npotTextureCube:ft}},Jr=function(F){return F instanceof Uint8Array||F instanceof Uint16Array||F instanceof Uint32Array||F instanceof Int8Array||F instanceof Int16Array||F instanceof Int32Array||F instanceof Float32Array||F instanceof Float64Array||F instanceof Uint8ClampedArray};function ei(F){return!!F&&typeof F=="object"&&Array.isArray(F.shape)&&Array.isArray(F.stride)&&typeof F.offset=="number"&&F.shape.length===F.stride.length&&(Array.isArray(F.data)||Jr(F.data))}var Ln=function(F){return Object.keys(F).map(function(H){return F[H]})},ir={shape:ep,flatten:vi};function Kd(F,H,K){for(var Se=0;Se<H;++Se)K[Se]=F[Se]}function Ri(F,H,K,Se){for(var Me=0,ye=0;ye<H;++ye)for(var we=F[ye],Ye=0;Ye<K;++Ye)Se[Me++]=we[Ye]}function oo(F,H,K,Se,Me,ye){for(var we=ye,Ye=0;Ye<H;++Ye)for(var Xe=F[Ye],et=0;et<K;++et)for(var ft=Xe[et],It=0;It<Se;++It)Me[we++]=ft[It]}function Jd(F,H,K,Se,Me){for(var ye=1,we=K+1;we<H.length;++we)ye*=H[we];var Ye=H[K];if(H.length-K===4){var Xe=H[K+1],et=H[K+2],ft=H[K+3];for(we=0;we<Ye;++we)oo(F[we],Xe,et,ft,Se,Me),Me+=ye}else for(we=0;we<Ye;++we)Jd(F[we],H,K+1,Se,Me),Me+=ye}function vi(F,H,K,Se){var Me=1;if(H.length)for(var ye=0;ye<H.length;++ye)Me*=H[ye];else Me=0;var we=Se||be.allocType(K,Me);switch(H.length){case 0:break;case 1:Kd(F,H[0],we);break;case 2:Ri(F,H[0],H[1],we);break;case 3:oo(F,H[0],H[1],H[2],we,0);break;default:Jd(F,H,0,we,0)}return we}function ep(F){for(var H=[],K=F;K.length;K=K[0])H.push(K.length);return H}var gu={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},Ng=5120,tp=5122,Lg=5124,rp=5121,Dg=5123,yu=5125,Nf=5126,np=5126,xu={int8:Ng,int16:tp,int32:Lg,uint8:rp,uint16:Dg,uint32:yu,float:Nf,float32:np},Dl=35048,Lf=35040,Qi={dynamic:Dl,stream:Lf,static:35044},Gn=ir.flatten,Bl=ir.shape,$l=35044,ti=35040,bu=5121,wu=5126,Xr=[];Xr[5120]=1,Xr[5122]=2,Xr[5124]=4,Xr[5121]=1,Xr[5123]=2,Xr[5125]=4,Xr[5126]=4;function Sa(F){return gu[Object.prototype.toString.call(F)]|0}function Df(F,H){for(var K=0;K<H.length;++K)F[K]=H[K]}function Bf(F,H,K,Se,Me,ye,we){for(var Ye=0,Xe=0;Xe<K;++Xe)for(var et=0;et<Se;++et)F[Ye++]=H[Me*Xe+ye*et+we]}function ip(F,H,K,Se){var Me=0,ye={};function we(he){this.id=Me++,this.buffer=F.createBuffer(),this.type=he,this.usage=$l,this.byteLength=0,this.dimension=1,this.dtype=bu,this.persistentData=null,K.profile&&(this.stats={size:0})}we.prototype.bind=function(){F.bindBuffer(this.type,this.buffer)},we.prototype.destroy=function(){St(this)};var Ye=[];function Xe(he,Te){var qe=Ye.pop();return qe||(qe=new we(he)),qe.bind(),It(qe,Te,ti,0,1,!1),qe}function et(he){Ye.push(he)}function ft(he,Te,qe){he.byteLength=Te.byteLength,F.bufferData(he.type,Te,qe)}function It(he,Te,qe,Ke,Ne,pt){var ot;if(he.usage=qe,Array.isArray(Te)){if(he.dtype=Ke||wu,Te.length>0){var Rt;if(Array.isArray(Te[0])){ot=Bl(Te);for(var Be=1,Ie=1;Ie<ot.length;++Ie)Be*=ot[Ie];he.dimension=Be,Rt=Gn(Te,ot,he.dtype),ft(he,Rt,qe),pt?he.persistentData=Rt:be.freeType(Rt)}else if(typeof Te[0]=="number"){he.dimension=Ne;var mt=be.allocType(he.dtype,Te.length);Df(mt,Te),ft(he,mt,qe),pt?he.persistentData=mt:be.freeType(mt)}else Jr(Te[0])&&(he.dimension=Te[0].length,he.dtype=Ke||Sa(Te[0])||wu,Rt=Gn(Te,[Te.length,Te[0].length],he.dtype),ft(he,Rt,qe),pt?he.persistentData=Rt:be.freeType(Rt))}}else if(Jr(Te))he.dtype=Ke||Sa(Te),he.dimension=Ne,ft(he,Te,qe),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te.buffer)));else if(ei(Te)){ot=Te.shape;var Ae=Te.stride,ht=Te.offset,Je=0,Ft=0,er=0,xt=0;ot.length===1?(Je=ot[0],Ft=1,er=Ae[0],xt=0):ot.length===2&&(Je=ot[0],Ft=ot[1],er=Ae[0],xt=Ae[1]),he.dtype=Ke||Sa(Te.data)||wu,he.dimension=Ft;var $t=be.allocType(he.dtype,Je*Ft);Bf($t,Te.data,Je,Ft,er,xt,ht),ft(he,$t,qe),pt?he.persistentData=$t:be.freeType($t)}else Te instanceof ArrayBuffer&&(he.dtype=bu,he.dimension=Ne,ft(he,Te,qe),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te))))}function St(he){H.bufferCount--,Se(he);var Te=he.buffer;F.deleteBuffer(Te),he.buffer=null,delete ye[he.id]}function it(he,Te,qe,Ke){H.bufferCount++;var Ne=new we(Te);ye[Ne.id]=Ne;function pt(Be){var Ie=$l,mt=null,Ae=0,ht=0,Je=1;return Array.isArray(Be)||Jr(Be)||ei(Be)||Be instanceof ArrayBuffer?mt=Be:typeof Be=="number"?Ae=Be|0:Be&&("data"in Be&&(mt=Be.data),"usage"in Be&&(Ie=Qi[Be.usage]),"type"in Be&&(ht=xu[Be.type]),"dimension"in Be&&(Je=Be.dimension|0),"length"in Be&&(Ae=Be.length|0)),Ne.bind(),mt?It(Ne,mt,Ie,ht,Je,Ke):(Ae&&F.bufferData(Ne.type,Ae,Ie),Ne.dtype=ht||bu,Ne.usage=Ie,Ne.dimension=Je,Ne.byteLength=Ae),K.profile&&(Ne.stats.size=Ne.byteLength*Xr[Ne.dtype]),pt}function ot(Be,Ie){F.bufferSubData(Ne.type,Ie,Be)}function Rt(Be,Ie){var mt=(Ie||0)|0,Ae;if(Ne.bind(),Jr(Be)||Be instanceof ArrayBuffer)ot(Be,mt);else if(Array.isArray(Be)){if(Be.length>0){if(typeof Be[0]=="number"){var ht=be.allocType(Ne.dtype,Be.length);Df(ht,Be),ot(ht,mt),be.freeType(ht)}else if(Array.isArray(Be[0])||Jr(Be[0])){Ae=Bl(Be);var Je=Gn(Be,Ae,Ne.dtype);ot(Je,mt),be.freeType(Je)}}}else if(ei(Be)){Ae=Be.shape;var Ft=Be.stride,er=0,xt=0,$t=0,lt=0;Ae.length===1?(er=Ae[0],xt=1,$t=Ft[0],lt=0):Ae.length===2&&(er=Ae[0],xt=Ae[1],$t=Ft[0],lt=Ft[1]);var tr=Array.isArray(Be.data)?Ne.dtype:Sa(Be.data),ur=be.allocType(tr,er*xt);Bf(ur,Be.data,er,xt,$t,lt,Be.offset),ot(ur,mt),be.freeType(ur)}return pt}return qe||pt(he),pt._reglType="buffer",pt._buffer=Ne,pt.subdata=Rt,K.profile&&(pt.stats=Ne.stats),pt.destroy=function(){St(Ne)},pt}function Ge(){Ln(ye).forEach(function(he){he.buffer=F.createBuffer(),F.bindBuffer(he.type,he.buffer),F.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return K.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(ye).forEach(function(Te){he+=ye[Te].stats.size}),he}),{create:it,createStream:Xe,destroyStream:et,clear:function(){Ln(ye).forEach(St),Ye.forEach(St)},getBuffer:function(he){return he&&he._buffer instanceof we?he._buffer:null},restore:Ge,_initBuffer:It}}var $f=0,ap=0,op=1,zf=1,Uf=4,jf=4,en={points:$f,point:ap,lines:op,line:zf,triangles:Uf,triangle:jf,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},up=0,zl=1,Zi=4,uo=5120,Ea=5121,Gf=5122,Aa=5123,Ul=5124,Ki=5125,lo=34963,mr=35040,Wf=35044;function jl(F,H,K,Se){var Me={},ye=0,we={uint8:Ea,uint16:Aa};H.oes_element_index_uint&&(we.uint32=Ki);function Ye(Ge){this.id=ye++,Me[this.id]=this,this.buffer=Ge,this.primType=Zi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function et(Ge){var he=Xe.pop();return he||(he=new Ye(K.create(null,lo,!0,!1)._buffer)),It(he,Ge,mr,-1,-1,0,0),he}function ft(Ge){Xe.push(Ge)}function It(Ge,he,Te,qe,Ke,Ne,pt){Ge.buffer.bind();var ot;if(he){var Rt=pt;!pt&&(!Jr(he)||ei(he)&&!Jr(he.data))&&(Rt=H.oes_element_index_uint?Ki:Aa),K._initBuffer(Ge.buffer,he,Te,Rt,3)}else F.bufferData(lo,Ne,Te),Ge.buffer.dtype=ot||Ea,Ge.buffer.usage=Te,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=pt,!pt){switch(Ge.buffer.dtype){case Ea:case uo:ot=Ea;break;case Aa:case Gf:ot=Aa;break;case Ki:case Ul:ot=Ki;break}Ge.buffer.dtype=ot}Ge.type=ot;var Be=Ke;Be<0&&(Be=Ge.buffer.byteLength,ot===Aa?Be>>=1:ot===Ki&&(Be>>=2)),Ge.vertCount=Be;var Ie=qe;if(qe<0){Ie=Zi;var mt=Ge.buffer.dimension;mt===1&&(Ie=up),mt===2&&(Ie=zl),mt===3&&(Ie=Zi)}Ge.primType=Ie}function St(Ge){Se.elementsCount--,delete Me[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Te=K.create(null,lo,!0),qe=new Ye(Te._buffer);Se.elementsCount++;function Ke(Ne){if(!Ne)Te(),qe.primType=Zi,qe.vertCount=0,qe.type=Ea;else if(typeof Ne=="number")Te(Ne),qe.primType=Zi,qe.vertCount=Ne|0,qe.type=Ea;else{var pt=null,ot=Wf,Rt=-1,Be=-1,Ie=0,mt=0;Array.isArray(Ne)||Jr(Ne)||ei(Ne)?pt=Ne:("data"in Ne&&(pt=Ne.data),"usage"in Ne&&(ot=Qi[Ne.usage]),"primitive"in Ne&&(Rt=en[Ne.primitive]),"count"in Ne&&(Be=Ne.count|0),"type"in Ne&&(mt=we[Ne.type]),"length"in Ne?Ie=Ne.length|0:(Ie=Be,mt===Aa||mt===Gf?Ie*=2:(mt===Ki||mt===Ul)&&(Ie*=4))),It(qe,pt,ot,Rt,Be,Ie,mt)}return Ke}return Ke(Ge),Ke._reglType="elements",Ke._elements=qe,Ke.subdata=function(Ne,pt){return Te.subdata(Ne,pt),Ke},Ke.destroy=function(){St(qe)},Ke}return{create:it,createStream:et,destroyStream:ft,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){Ln(Me).forEach(St)}}}var lp=new Float32Array(1),Bg=new Uint32Array(lp.buffer),Gl=5123;function _u(F){for(var H=be.allocType(Gl,F.length),K=0;K<F.length;++K)if(isNaN(F[K]))H[K]=65535;else if(F[K]===1/0)H[K]=31744;else if(F[K]===-1/0)H[K]=64512;else{lp[0]=F[K];var Se=Bg[0],Me=Se>>>31<<15,ye=(Se<<1>>>24)-127,we=Se>>13&(1<<10)-1;if(ye<-24)H[K]=Me;else if(ye<-14){var Ye=-14-ye;H[K]=Me+(we+(1<<10)>>Ye)}else ye>15?H[K]=Me+31744:H[K]=Me+(ye+15<<10)+we}return H}function ri(F){return Array.isArray(F)||Jr(F)}var Wl=34467,ni=3553,so=34067,fo=34069,Ji=6408,Hl=6406,Fi=6407,Pi=6409,Su=6410,sp=32854,co=32855,Vl=36194,Hf=32819,fp=32820,ho=33635,Ta=34042,ea=6402,Eu=34041,Au=35904,Ca=35906,Oa=36193,Vf=33776,ql=33777,Tu=33778,qf=33779,cp=35986,Yf=35987,hp=34798,Xf=35840,dp=35841,Qf=35842,pp=35843,ka=36196,ii=5121,Zf=5123,Kf=5125,Cu=5126,vp=10242,Ou=10243,$g=10497,po=33071,Yl=33648,Jf=10240,Xl=10241,Ma=9728,ku=9729,Ql=9984,Zl=9985,mp=9986,vo=9987,zg=33170,Kl=4352,Ug=4353,gp=4354,Mu=34046,jg=3317,ec=37440,yp=37441,Ni=37443,tc=37444,Ia=33984,rc=[Ql,mp,Zl,vo],mi=[0,Pi,Su,Fi,Ji],On={};On[Pi]=On[Hl]=On[ea]=1,On[Eu]=On[Su]=2,On[Fi]=On[Au]=3,On[Ji]=On[Ca]=4;function Ra(F){return"[object "+F+"]"}var xp=Ra("HTMLCanvasElement"),bp=Ra("OffscreenCanvas"),wp=Ra("CanvasRenderingContext2D"),nc=Ra("ImageBitmap"),ic=Ra("HTMLImageElement"),_p=Ra("HTMLVideoElement"),Gg=Object.keys(gu).concat([xp,bp,wp,nc,ic,_p]),mo=[];mo[ii]=1,mo[Cu]=4,mo[Oa]=2,mo[Zf]=2,mo[Kf]=4;var Qr=[];Qr[sp]=2,Qr[co]=2,Qr[Vl]=2,Qr[Eu]=4,Qr[Vf]=.5,Qr[ql]=.5,Qr[Tu]=1,Qr[qf]=1,Qr[cp]=.5,Qr[Yf]=1,Qr[hp]=1,Qr[Xf]=.5,Qr[dp]=.25,Qr[Qf]=.5,Qr[pp]=.25,Qr[ka]=.5;function Sp(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function Ep(F){if(!Array.isArray(F))return!1;var H=F.length;return!(H===0||!ri(F[0]))}function Fa(F){return Object.prototype.toString.call(F)}function Ap(F){return Fa(F)===xp}function Tp(F){return Fa(F)===bp}function Wg(F){return Fa(F)===wp}function Hg(F){return Fa(F)===nc}function Vg(F){return Fa(F)===ic}function qg(F){return Fa(F)===_p}function Jl(F){if(!F)return!1;var H=Fa(F);return Gg.indexOf(H)>=0?!0:Sp(F)||Ep(F)||ei(F)}function ac(F){return gu[Object.prototype.toString.call(F)]|0}function Cp(F,H){var K=H.length;switch(F.type){case ii:case Zf:case Kf:case Cu:var Se=be.allocType(F.type,K);Se.set(H),F.data=Se;break;case Oa:F.data=_u(H);break}}function oc(F,H){return be.allocType(F.type===Oa?Cu:F.type,H)}function Op(F,H){F.type===Oa?(F.data=_u(H),be.freeType(H)):F.data=H}function Yg(F,H,K,Se,Me,ye){for(var we=F.width,Ye=F.height,Xe=F.channels,et=we*Ye*Xe,ft=oc(F,et),It=0,St=0;St<Ye;++St)for(var it=0;it<we;++it)for(var Ge=0;Ge<Xe;++Ge)ft[It++]=H[K*it+Se*St+Me*Ge+ye];Op(F,ft)}function Li(F,H,K,Se,Me,ye){var we;if(typeof Qr[F]<"u"?we=Qr[F]:we=On[F]*mo[H],ye&&(we*=6),Me){for(var Ye=0,Xe=K;Xe>=1;)Ye+=we*Xe*Xe,Xe/=2;return Ye}else return we*K*Se}function Xg(F,H,K,Se,Me,ye,we){var Ye={"don't care":Kl,"dont care":Kl,nice:gp,fast:Ug},Xe={repeat:$g,clamp:po,mirror:Yl},et={nearest:Ma,linear:ku},ft=r({mipmap:vo,"nearest mipmap nearest":Ql,"linear mipmap nearest":Zl,"nearest mipmap linear":mp,"linear mipmap linear":vo},et),It={none:0,browser:tc},St={uint8:ii,rgba4:Hf,rgb565:ho,"rgb5 a1":fp},it={alpha:Hl,luminance:Pi,"luminance alpha":Su,rgb:Fi,rgba:Ji,rgba4:sp,"rgb5 a1":co,rgb565:Vl},Ge={};H.ext_srgb&&(it.srgb=Au,it.srgba=Ca),H.oes_texture_float&&(St.float32=St.float=Cu),H.oes_texture_half_float&&(St.float16=St["half float"]=Oa),H.webgl_depth_texture&&(r(it,{depth:ea,"depth stencil":Eu}),r(St,{uint16:Zf,uint32:Kf,"depth stencil":Ta})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":Vf,"rgba s3tc dxt1":ql,"rgba s3tc dxt3":Tu,"rgba s3tc dxt5":qf}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":cp,"rgba atc explicit alpha":Yf,"rgba atc interpolated alpha":hp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":Xf,"rgb pvrtc 2bppv1":dp,"rgba pvrtc 4bppv1":Qf,"rgba pvrtc 2bppv1":pp}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=ka);var he=Array.prototype.slice.call(F.getParameter(Wl));Object.keys(Ge).forEach(function(q){var xe=Ge[q];he.indexOf(xe)>=0&&(it[q]=xe)});var Te=Object.keys(it);K.textureFormats=Te;var qe=[];Object.keys(it).forEach(function(q){var xe=it[q];qe[xe]=q});var Ke=[];Object.keys(St).forEach(function(q){var xe=St[q];Ke[xe]=q});var Ne=[];Object.keys(et).forEach(function(q){var xe=et[q];Ne[xe]=q});var pt=[];Object.keys(ft).forEach(function(q){var xe=ft[q];pt[xe]=q});var ot=[];Object.keys(Xe).forEach(function(q){var xe=Xe[q];ot[xe]=q});var Rt=Te.reduce(function(q,xe){var ge=it[xe];return ge===Pi||ge===Hl||ge===Pi||ge===Su||ge===ea||ge===Eu||H.ext_srgb&&(ge===Au||ge===Ca)?q[ge]=ge:ge===co||xe.indexOf("rgba")>=0?q[ge]=Ji:q[ge]=Fi,q},{});function Be(){this.internalformat=Ji,this.format=Ji,this.type=ii,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=tc,this.width=0,this.height=0,this.channels=0}function Ie(q,xe){q.internalformat=xe.internalformat,q.format=xe.format,q.type=xe.type,q.compressed=xe.compressed,q.premultiplyAlpha=xe.premultiplyAlpha,q.flipY=xe.flipY,q.unpackAlignment=xe.unpackAlignment,q.colorSpace=xe.colorSpace,q.width=xe.width,q.height=xe.height,q.channels=xe.channels}function mt(q,xe){if(!(typeof xe!="object"||!xe)){if("premultiplyAlpha"in xe&&(q.premultiplyAlpha=xe.premultiplyAlpha),"flipY"in xe&&(q.flipY=xe.flipY),"alignment"in xe&&(q.unpackAlignment=xe.alignment),"colorSpace"in xe&&(q.colorSpace=It[xe.colorSpace]),"type"in xe){var ge=xe.type;q.type=St[ge]}var Tt=q.width,rr=q.height,Ir=q.channels,Ct=!1;"shape"in xe?(Tt=xe.shape[0],rr=xe.shape[1],xe.shape.length===3&&(Ir=xe.shape[2],Ct=!0)):("radius"in xe&&(Tt=rr=xe.radius),"width"in xe&&(Tt=xe.width),"height"in xe&&(rr=xe.height),"channels"in xe&&(Ir=xe.channels,Ct=!0)),q.width=Tt|0,q.height=rr|0,q.channels=Ir|0;var U=!1;if("format"in xe){var V=xe.format,ee=q.internalformat=it[V];q.format=Rt[ee],V in St&&("type"in xe||(q.type=St[V])),V in Ge&&(q.compressed=!0),U=!0}!Ct&&U?q.channels=On[q.format]:Ct&&!U&&q.channels!==mi[q.format]&&(q.format=q.internalformat=mi[q.channels])}}function Ae(q){F.pixelStorei(ec,q.flipY),F.pixelStorei(yp,q.premultiplyAlpha),F.pixelStorei(Ni,q.colorSpace),F.pixelStorei(jg,q.unpackAlignment)}function ht(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Je(q,xe){var ge=null;if(Jl(xe)?ge=xe:xe&&(mt(q,xe),"x"in xe&&(q.xOffset=xe.x|0),"y"in xe&&(q.yOffset=xe.y|0),Jl(xe.data)&&(ge=xe.data)),xe.copy){var Tt=Me.viewportWidth,rr=Me.viewportHeight;q.width=q.width||Tt-q.xOffset,q.height=q.height||rr-q.yOffset,q.needsCopy=!0}else if(!ge)q.width=q.width||1,q.height=q.height||1,q.channels=q.channels||4;else if(Jr(ge))q.channels=q.channels||4,q.data=ge,!("type"in xe)&&q.type===ii&&(q.type=ac(ge));else if(Sp(ge))q.channels=q.channels||4,Cp(q,ge),q.alignment=1,q.needsFree=!0;else if(ei(ge)){var Ir=ge.data;!Array.isArray(Ir)&&q.type===ii&&(q.type=ac(Ir));var Ct=ge.shape,U=ge.stride,V,ee,_e,pe,de,ce;Ct.length===3?(_e=Ct[2],ce=U[2]):(_e=1,ce=1),V=Ct[0],ee=Ct[1],pe=U[0],de=U[1],q.alignment=1,q.width=V,q.height=ee,q.channels=_e,q.format=q.internalformat=mi[_e],q.needsFree=!0,Yg(q,Ir,pe,de,ce,ge.offset)}else if(Ap(ge)||Tp(ge)||Wg(ge))Ap(ge)||Tp(ge)?q.element=ge:q.element=ge.canvas,q.width=q.element.width,q.height=q.element.height,q.channels=4;else if(Hg(ge))q.element=ge,q.width=ge.width,q.height=ge.height,q.channels=4;else if(Vg(ge))q.element=ge,q.width=ge.naturalWidth,q.height=ge.naturalHeight,q.channels=4;else if(qg(ge))q.element=ge,q.width=ge.videoWidth,q.height=ge.videoHeight,q.channels=4;else if(Ep(ge)){var se=q.width||ge[0].length,Z=q.height||ge.length,ne=q.channels;ri(ge[0][0])?ne=ne||ge[0][0].length:ne=ne||1;for(var Q=ir.shape(ge),ve=1,Oe=0;Oe<Q.length;++Oe)ve*=Q[Oe];var $e=oc(q,ve);ir.flatten(ge,Q,"",$e),Op(q,$e),q.alignment=1,q.width=se,q.height=Z,q.channels=ne,q.format=q.internalformat=mi[ne],q.needsFree=!0}q.type===Cu||q.type}function Ft(q,xe,ge){var Tt=q.element,rr=q.data,Ir=q.internalformat,Ct=q.format,U=q.type,V=q.width,ee=q.height;Ae(q),Tt?F.texImage2D(xe,ge,Ct,Ct,U,Tt):q.compressed?F.compressedTexImage2D(xe,ge,Ir,V,ee,0,rr):q.needsCopy?(Se(),F.copyTexImage2D(xe,ge,Ct,q.xOffset,q.yOffset,V,ee,0)):F.texImage2D(xe,ge,Ct,V,ee,0,Ct,U,rr||null)}function er(q,xe,ge,Tt,rr){var Ir=q.element,Ct=q.data,U=q.internalformat,V=q.format,ee=q.type,_e=q.width,pe=q.height;Ae(q),Ir?F.texSubImage2D(xe,rr,ge,Tt,V,ee,Ir):q.compressed?F.compressedTexSubImage2D(xe,rr,ge,Tt,U,_e,pe,Ct):q.needsCopy?(Se(),F.copyTexSubImage2D(xe,rr,ge,Tt,q.xOffset,q.yOffset,_e,pe)):F.texSubImage2D(xe,rr,ge,Tt,_e,pe,V,ee,Ct)}var xt=[];function $t(){return xt.pop()||new ht}function lt(q){q.needsFree&&be.freeType(q.data),ht.call(q),xt.push(q)}function tr(){Be.call(this),this.genMipmaps=!1,this.mipmapHint=Kl,this.mipmask=0,this.images=Array(16)}function ur(q,xe,ge){var Tt=q.images[0]=$t();q.mipmask=1,Tt.width=q.width=xe,Tt.height=q.height=ge,Tt.channels=q.channels=4}function cr(q,xe){var ge=null;if(Jl(xe))ge=q.images[0]=$t(),Ie(ge,q),Je(ge,xe),q.mipmask=1;else if(mt(q,xe),Array.isArray(xe.mipmap))for(var Tt=xe.mipmap,rr=0;rr<Tt.length;++rr)ge=q.images[rr]=$t(),Ie(ge,q),ge.width>>=rr,ge.height>>=rr,Je(ge,Tt[rr]),q.mipmask|=1<<rr;else ge=q.images[0]=$t(),Ie(ge,q),Je(ge,xe),q.mipmask=1;Ie(q,q.images[0]),q.compressed&&(q.internalformat===Vf||q.internalformat===ql||q.internalformat===Tu||q.internalformat)}function nn(q,xe){for(var ge=q.images,Tt=0;Tt<ge.length;++Tt){if(!ge[Tt])return;Ft(ge[Tt],xe,Tt)}}var lr=[];function Hn(){var q=lr.pop()||new tr;Be.call(q),q.mipmask=0;for(var xe=0;xe<16;++xe)q.images[xe]=null;return q}function Ar(q){for(var xe=q.images,ge=0;ge<xe.length;++ge)xe[ge]&&lt(xe[ge]),xe[ge]=null;lr.push(q)}function bn(){this.minFilter=Ma,this.magFilter=Ma,this.wrapS=po,this.wrapT=po,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Kl}function Vn(q,xe){if("min"in xe){var ge=xe.min;q.minFilter=ft[ge],rc.indexOf(q.minFilter)>=0&&!("faces"in xe)&&(q.genMipmaps=!0)}if("mag"in xe){var Tt=xe.mag;q.magFilter=et[Tt]}var rr=q.wrapS,Ir=q.wrapT;if("wrap"in xe){var Ct=xe.wrap;typeof Ct=="string"?rr=Ir=Xe[Ct]:Array.isArray(Ct)&&(rr=Xe[Ct[0]],Ir=Xe[Ct[1]])}else{if("wrapS"in xe){var U=xe.wrapS;rr=Xe[U]}if("wrapT"in xe){var V=xe.wrapT;Ir=Xe[V]}}if(q.wrapS=rr,q.wrapT=Ir,"anisotropic"in xe&&(xe.anisotropic,q.anisotropic=xe.anisotropic),"mipmap"in xe){var ee=!1;switch(typeof xe.mipmap){case"string":q.mipmapHint=Ye[xe.mipmap],q.genMipmaps=!0,ee=!0;break;case"boolean":ee=q.genMipmaps=xe.mipmap;break;case"object":q.genMipmaps=!1,ee=!0;break}ee&&!("min"in xe)&&(q.minFilter=Ql)}}function Mn(q,xe){F.texParameteri(xe,Xl,q.minFilter),F.texParameteri(xe,Jf,q.magFilter),F.texParameteri(xe,vp,q.wrapS),F.texParameteri(xe,Ou,q.wrapT),H.ext_texture_filter_anisotropic&&F.texParameteri(xe,Mu,q.anisotropic),q.genMipmaps&&(F.hint(zg,q.mipmapHint),F.generateMipmap(xe))}var zi=0,an={},on=K.maxTextureUnits,Yt=Array(on).map(function(){return null});function li(q){Be.call(this),this.mipmask=0,this.internalformat=Ji,this.id=zi++,this.refCount=1,this.target=q,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new bn,we.profile&&(this.stats={size:0})}function br(q){F.activeTexture(Ia),F.bindTexture(q.target,q.texture)}function un(){var q=Yt[0];q?F.bindTexture(q.target,q.texture):F.bindTexture(ni,null)}function Dn(q){var xe=q.texture,ge=q.unit,Tt=q.target;ge>=0&&(F.activeTexture(Ia+ge),F.bindTexture(Tt,null),Yt[ge]=null),F.deleteTexture(xe),q.texture=null,q.params=null,q.pixels=null,q.refCount=0,delete an[q.id],ye.textureCount--}r(li.prototype,{bind:function(){var q=this;q.bindCount+=1;var xe=q.unit;if(xe<0){for(var ge=0;ge<on;++ge){var Tt=Yt[ge];if(Tt){if(Tt.bindCount>0)continue;Tt.unit=-1}Yt[ge]=q,xe=ge;break}we.profile&&ye.maxTextureUnits<xe+1&&(ye.maxTextureUnits=xe+1),q.unit=xe,F.activeTexture(Ia+xe),F.bindTexture(q.target,q.texture)}return xe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Dn(this)}});function Bn(q,xe){var ge=new li(ni);an[ge.id]=ge,ye.textureCount++;function Tt(Ct,U){var V=ge.texInfo;bn.call(V);var ee=Hn();return typeof Ct=="number"?typeof U=="number"?ur(ee,Ct|0,U|0):ur(ee,Ct|0,Ct|0):Ct?(Vn(V,Ct),cr(ee,Ct)):ur(ee,1,1),V.genMipmaps&&(ee.mipmask=(ee.width<<1)-1),ge.mipmask=ee.mipmask,Ie(ge,ee),ge.internalformat=ee.internalformat,Tt.width=ee.width,Tt.height=ee.height,br(ge),nn(ee,ni),Mn(V,ni),un(),Ar(ee),we.profile&&(ge.stats.size=Li(ge.internalformat,ge.type,ee.width,ee.height,V.genMipmaps,!1)),Tt.format=qe[ge.internalformat],Tt.type=Ke[ge.type],Tt.mag=Ne[V.magFilter],Tt.min=pt[V.minFilter],Tt.wrapS=ot[V.wrapS],Tt.wrapT=ot[V.wrapT],Tt}function rr(Ct,U,V,ee){var _e=U|0,pe=V|0,de=ee|0,ce=$t();return Ie(ce,ge),ce.width=0,ce.height=0,Je(ce,Ct),ce.width=ce.width||(ge.width>>de)-_e,ce.height=ce.height||(ge.height>>de)-pe,br(ge),er(ce,ni,_e,pe,de),un(),lt(ce),Tt}function Ir(Ct,U){var V=Ct|0,ee=U|0||V;if(V===ge.width&&ee===ge.height)return Tt;Tt.width=ge.width=V,Tt.height=ge.height=ee,br(ge);for(var _e=0;ge.mipmask>>_e;++_e){var pe=V>>_e,de=ee>>_e;if(!pe||!de)break;F.texImage2D(ni,_e,ge.format,pe,de,0,ge.format,ge.type,null)}return un(),we.profile&&(ge.stats.size=Li(ge.internalformat,ge.type,V,ee,!1,!1)),Tt}return Tt(q,xe),Tt.subimage=rr,Tt.resize=Ir,Tt._reglType="texture2d",Tt._texture=ge,we.profile&&(Tt.stats=ge.stats),Tt.destroy=function(){ge.decRef()},Tt}function Zt(q,xe,ge,Tt,rr,Ir){var Ct=new li(so);an[Ct.id]=Ct,ye.cubeCount++;var U=new Array(6);function V(pe,de,ce,se,Z,ne){var Q,ve=Ct.texInfo;for(bn.call(ve),Q=0;Q<6;++Q)U[Q]=Hn();if(typeof pe=="number"||!pe){var Oe=pe|0||1;for(Q=0;Q<6;++Q)ur(U[Q],Oe,Oe)}else if(typeof pe=="object")if(de)cr(U[0],pe),cr(U[1],de),cr(U[2],ce),cr(U[3],se),cr(U[4],Z),cr(U[5],ne);else if(Vn(ve,pe),mt(Ct,pe),"faces"in pe){var $e=pe.faces;for(Q=0;Q<6;++Q)Ie(U[Q],Ct),cr(U[Q],$e[Q])}else for(Q=0;Q<6;++Q)cr(U[Q],pe);for(Ie(Ct,U[0]),ve.genMipmaps?Ct.mipmask=(U[0].width<<1)-1:Ct.mipmask=U[0].mipmask,Ct.internalformat=U[0].internalformat,V.width=U[0].width,V.height=U[0].height,br(Ct),Q=0;Q<6;++Q)nn(U[Q],fo+Q);for(Mn(ve,so),un(),we.profile&&(Ct.stats.size=Li(Ct.internalformat,Ct.type,V.width,V.height,ve.genMipmaps,!0)),V.format=qe[Ct.internalformat],V.type=Ke[Ct.type],V.mag=Ne[ve.magFilter],V.min=pt[ve.minFilter],V.wrapS=ot[ve.wrapS],V.wrapT=ot[ve.wrapT],Q=0;Q<6;++Q)Ar(U[Q]);return V}function ee(pe,de,ce,se,Z){var ne=ce|0,Q=se|0,ve=Z|0,Oe=$t();return Ie(Oe,Ct),Oe.width=0,Oe.height=0,Je(Oe,de),Oe.width=Oe.width||(Ct.width>>ve)-ne,Oe.height=Oe.height||(Ct.height>>ve)-Q,br(Ct),er(Oe,fo+pe,ne,Q,ve),un(),lt(Oe),V}function _e(pe){var de=pe|0;if(de!==Ct.width){V.width=Ct.width=de,V.height=Ct.height=de,br(Ct);for(var ce=0;ce<6;++ce)for(var se=0;Ct.mipmask>>se;++se)F.texImage2D(fo+ce,se,Ct.format,de>>se,de>>se,0,Ct.format,Ct.type,null);return un(),we.profile&&(Ct.stats.size=Li(Ct.internalformat,Ct.type,V.width,V.height,!1,!0)),V}}return V(q,xe,ge,Tt,rr,Ir),V.subimage=ee,V.resize=_e,V._reglType="textureCube",V._texture=Ct,we.profile&&(V.stats=Ct.stats),V.destroy=function(){Ct.decRef()},V}function fr(){for(var q=0;q<on;++q)F.activeTexture(Ia+q),F.bindTexture(ni,null),Yt[q]=null;Ln(an).forEach(Dn),ye.cubeCount=0,ye.textureCount=0}we.profile&&(ye.getTotalTextureSize=function(){var q=0;return Object.keys(an).forEach(function(xe){q+=an[xe].stats.size}),q});function Cr(){for(var q=0;q<on;++q){var xe=Yt[q];xe&&(xe.bindCount=0,xe.unit=-1,Yt[q]=null)}Ln(an).forEach(function(ge){ge.texture=F.createTexture(),F.bindTexture(ge.target,ge.texture);for(var Tt=0;Tt<32;++Tt)if((ge.mipmask&1<<Tt)!==0)if(ge.target===ni)F.texImage2D(ni,Tt,ge.internalformat,ge.width>>Tt,ge.height>>Tt,0,ge.internalformat,ge.type,null);else for(var rr=0;rr<6;++rr)F.texImage2D(fo+rr,Tt,ge.internalformat,ge.width>>Tt,ge.height>>Tt,0,ge.internalformat,ge.type,null);Mn(ge.texInfo,ge.target)})}function ln(){for(var q=0;q<on;++q){var xe=Yt[q];xe&&(xe.bindCount=0,xe.unit=-1,Yt[q]=null),F.activeTexture(Ia+q),F.bindTexture(ni,null),F.bindTexture(so,null)}}return{create2D:Bn,createCube:Zt,clear:fr,getTexture:function(q){return null},restore:Cr,refresh:ln}}var ta=36161,es=32854,kp=32855,uc=36194,Mp=33189,Ip=36168,Rp=34041,lc=35907,Fp=34836,Pp=34842,Np=34843,ai=[];ai[es]=2,ai[kp]=2,ai[uc]=2,ai[Mp]=2,ai[Ip]=1,ai[Rp]=4,ai[lc]=4,ai[Fp]=16,ai[Pp]=8,ai[Np]=6;function Lp(F,H,K){return ai[F]*H*K}var Dp=function(F,H,K,Se,Me){var ye={rgba4:es,rgb565:uc,"rgb5 a1":kp,depth:Mp,stencil:Ip,"depth stencil":Rp};H.ext_srgb&&(ye.srgba=lc),H.ext_color_buffer_half_float&&(ye.rgba16f=Pp,ye.rgb16f=Np),H.webgl_color_buffer_float&&(ye.rgba32f=Fp);var we=[];Object.keys(ye).forEach(function(it){var Ge=ye[it];we[Ge]=it});var Ye=0,Xe={};function et(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=es,this.width=0,this.height=0,Me.profile&&(this.stats={size:0})}et.prototype.decRef=function(){--this.refCount<=0&&ft(this)};function ft(it){var Ge=it.renderbuffer;F.bindRenderbuffer(ta,null),F.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],Se.renderbufferCount--}function It(it,Ge){var he=new et(F.createRenderbuffer());Xe[he.id]=he,Se.renderbufferCount++;function Te(Ke,Ne){var pt=0,ot=0,Rt=es;if(typeof Ke=="object"&&Ke){var Be=Ke;if("shape"in Be){var Ie=Be.shape;pt=Ie[0]|0,ot=Ie[1]|0}else"radius"in Be&&(pt=ot=Be.radius|0),"width"in Be&&(pt=Be.width|0),"height"in Be&&(ot=Be.height|0);"format"in Be&&(Rt=ye[Be.format])}else typeof Ke=="number"?(pt=Ke|0,typeof Ne=="number"?ot=Ne|0:ot=pt):Ke||(pt=ot=1);if(!(pt===he.width&&ot===he.height&&Rt===he.format))return Te.width=he.width=pt,Te.height=he.height=ot,he.format=Rt,F.bindRenderbuffer(ta,he.renderbuffer),F.renderbufferStorage(ta,Rt,pt,ot),Me.profile&&(he.stats.size=Lp(he.format,he.width,he.height)),Te.format=we[he.format],Te}function qe(Ke,Ne){var pt=Ke|0,ot=Ne|0||pt;return pt===he.width&&ot===he.height||(Te.width=he.width=pt,Te.height=he.height=ot,F.bindRenderbuffer(ta,he.renderbuffer),F.renderbufferStorage(ta,he.format,pt,ot),Me.profile&&(he.stats.size=Lp(he.format,he.width,he.height))),Te}return Te(it,Ge),Te.resize=qe,Te._reglType="renderbuffer",Te._renderbuffer=he,Me.profile&&(Te.stats=he.stats),Te.destroy=function(){he.decRef()},Te}Me.profile&&(Se.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function St(){Ln(Xe).forEach(function(it){it.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(ta,it.renderbuffer),F.renderbufferStorage(ta,it.format,it.width,it.height)}),F.bindRenderbuffer(ta,null)}return{create:It,clear:function(){Ln(Xe).forEach(ft)},restore:St}},Di=36160,sc=36161,go=3553,yo=34069,xo=36064,oi=36096,Bp=36128,$p=33306,Qg=36053,Zg=36193,zp=5121,Kg=5126,Jg=6407,ey=6408,fc=[];fc[ey]=4,fc[Jg]=3;var ts=[];ts[zp]=1,ts[Kg]=4,ts[Zg]=2;function cc(F,H,K,Se,Me,ye){var we={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function et(Ae,ht,Je){this.target=Ae,this.texture=ht,this.renderbuffer=Je;var Ft=0,er=0;ht?(Ft=ht.width,er=ht.height):Je&&(Ft=Je.width,er=Je.height),this.width=Ft,this.height=er}function ft(Ae){Ae&&(Ae.texture&&Ae.texture._texture.decRef(),Ae.renderbuffer&&Ae.renderbuffer._renderbuffer.decRef())}function It(Ae,ht,Je){if(!!Ae)if(Ae.texture){var Ft=Ae.texture._texture;Math.max(1,Ft.width),Math.max(1,Ft.height),Ft.refCount+=1}else{var er=Ae.renderbuffer._renderbuffer;er.refCount+=1}}function St(Ae,ht){ht&&(ht.texture?F.framebufferTexture2D(Di,Ae,ht.target,ht.texture._texture.texture,0):F.framebufferRenderbuffer(Di,Ae,sc,ht.renderbuffer._renderbuffer.renderbuffer))}function it(Ae){var ht=go,Je=null,Ft=null,er=Ae;typeof Ae=="object"&&(er=Ae.data,"target"in Ae&&(ht=Ae.target|0));var xt=er._reglType;return xt==="texture2d"||xt==="textureCube"?Je=er:xt==="renderbuffer"&&(Ft=er,ht=sc),new et(ht,Je,Ft)}function Ge(Ae,ht,Je,Ft,er){if(Je){var xt=Se.create2D({width:Ae,height:ht,format:Ft,type:er});return xt._texture.refCount=0,new et(go,xt,null)}else{var $t=Me.create({width:Ae,height:ht,format:Ft});return $t._renderbuffer.refCount=0,new et(sc,null,$t)}}function he(Ae){return Ae&&(Ae.texture||Ae.renderbuffer)}function Te(Ae,ht,Je){Ae&&(Ae.texture?Ae.texture.resize(ht,Je):Ae.renderbuffer&&Ae.renderbuffer.resize(ht,Je),Ae.width=ht,Ae.height=Je)}var qe=0,Ke={};function Ne(){this.id=qe++,Ke[this.id]=this,this.framebuffer=F.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function pt(Ae){Ae.colorAttachments.forEach(ft),ft(Ae.depthAttachment),ft(Ae.stencilAttachment),ft(Ae.depthStencilAttachment)}function ot(Ae){var ht=Ae.framebuffer;F.deleteFramebuffer(ht),Ae.framebuffer=null,ye.framebufferCount--,delete Ke[Ae.id]}function Rt(Ae){var ht;F.bindFramebuffer(Di,Ae.framebuffer);var Je=Ae.colorAttachments;for(ht=0;ht<Je.length;++ht)St(xo+ht,Je[ht]);for(ht=Je.length;ht<K.maxColorAttachments;++ht)F.framebufferTexture2D(Di,xo+ht,go,null,0);F.framebufferTexture2D(Di,$p,go,null,0),F.framebufferTexture2D(Di,oi,go,null,0),F.framebufferTexture2D(Di,Bp,go,null,0),St(oi,Ae.depthAttachment),St(Bp,Ae.stencilAttachment),St($p,Ae.depthStencilAttachment);var Ft=F.checkFramebufferStatus(Di);F.isContextLost(),F.bindFramebuffer(Di,we.next?we.next.framebuffer:null),we.cur=we.next,F.getError()}function Be(Ae,ht){var Je=new Ne;ye.framebufferCount++;function Ft(xt,$t){var lt,tr=0,ur=0,cr=!0,nn=!0,lr=null,Hn=!0,Ar="rgba",bn="uint8",Vn=1,Mn=null,zi=null,an=null,on=!1;if(typeof xt=="number")tr=xt|0,ur=$t|0||tr;else if(!xt)tr=ur=1;else{var Yt=xt;if("shape"in Yt){var li=Yt.shape;tr=li[0],ur=li[1]}else"radius"in Yt&&(tr=ur=Yt.radius),"width"in Yt&&(tr=Yt.width),"height"in Yt&&(ur=Yt.height);("color"in Yt||"colors"in Yt)&&(lr=Yt.color||Yt.colors),lr||("colorCount"in Yt&&(Vn=Yt.colorCount|0),"colorTexture"in Yt&&(Hn=!!Yt.colorTexture,Ar="rgba4"),"colorType"in Yt&&(bn=Yt.colorType,Hn||(bn==="half float"||bn==="float16"?Ar="rgba16f":(bn==="float"||bn==="float32")&&(Ar="rgba32f"))),"colorFormat"in Yt&&(Ar=Yt.colorFormat,Ye.indexOf(Ar)>=0?Hn=!0:Xe.indexOf(Ar)>=0&&(Hn=!1))),("depthTexture"in Yt||"depthStencilTexture"in Yt)&&(on=!!(Yt.depthTexture||Yt.depthStencilTexture)),"depth"in Yt&&(typeof Yt.depth=="boolean"?cr=Yt.depth:(Mn=Yt.depth,nn=!1)),"stencil"in Yt&&(typeof Yt.stencil=="boolean"?nn=Yt.stencil:(zi=Yt.stencil,cr=!1)),"depthStencil"in Yt&&(typeof Yt.depthStencil=="boolean"?cr=nn=Yt.depthStencil:(an=Yt.depthStencil,cr=!1,nn=!1))}var br=null,un=null,Dn=null,Bn=null;if(Array.isArray(lr))br=lr.map(it);else if(lr)br=[it(lr)];else for(br=new Array(Vn),lt=0;lt<Vn;++lt)br[lt]=Ge(tr,ur,Hn,Ar,bn);for(tr=tr||br[0].width,ur=ur||br[0].height,Mn?un=it(Mn):cr&&!nn&&(un=Ge(tr,ur,on,"depth","uint32")),zi?Dn=it(zi):nn&&!cr&&(Dn=Ge(tr,ur,!1,"stencil","uint8")),an?Bn=it(an):!Mn&&!zi&&nn&&cr&&(Bn=Ge(tr,ur,on,"depth stencil","depth stencil")),lt=0;lt<br.length;++lt)It(br[lt]),br[lt]&&br[lt].texture&&fc[br[lt].texture._texture.format]*ts[br[lt].texture._texture.type];return It(un),It(Dn),It(Bn),pt(Je),Je.width=tr,Je.height=ur,Je.colorAttachments=br,Je.depthAttachment=un,Je.stencilAttachment=Dn,Je.depthStencilAttachment=Bn,Ft.color=br.map(he),Ft.depth=he(un),Ft.stencil=he(Dn),Ft.depthStencil=he(Bn),Ft.width=Je.width,Ft.height=Je.height,Rt(Je),Ft}function er(xt,$t){var lt=Math.max(xt|0,1),tr=Math.max($t|0||lt,1);if(lt===Je.width&&tr===Je.height)return Ft;for(var ur=Je.colorAttachments,cr=0;cr<ur.length;++cr)Te(ur[cr],lt,tr);return Te(Je.depthAttachment,lt,tr),Te(Je.stencilAttachment,lt,tr),Te(Je.depthStencilAttachment,lt,tr),Je.width=Ft.width=lt,Je.height=Ft.height=tr,Rt(Je),Ft}return Ft(Ae,ht),r(Ft,{resize:er,_reglType:"framebuffer",_framebuffer:Je,destroy:function(){ot(Je),pt(Je)},use:function(xt){we.setFBO({framebuffer:Ft},xt)}})}function Ie(Ae){var ht=Array(6);function Je(er){var xt,$t={color:null},lt=0,tr=null,ur="rgba",cr="uint8",nn=1;if(typeof er=="number")lt=er|0;else if(!er)lt=1;else{var lr=er;if("shape"in lr){var Hn=lr.shape;lt=Hn[0]}else"radius"in lr&&(lt=lr.radius|0),"width"in lr?lt=lr.width|0:"height"in lr&&(lt=lr.height|0);("color"in lr||"colors"in lr)&&(tr=lr.color||lr.colors),tr||("colorCount"in lr&&(nn=lr.colorCount|0),"colorType"in lr&&(cr=lr.colorType),"colorFormat"in lr&&(ur=lr.colorFormat)),"depth"in lr&&($t.depth=lr.depth),"stencil"in lr&&($t.stencil=lr.stencil),"depthStencil"in lr&&($t.depthStencil=lr.depthStencil)}var Ar;if(tr)if(Array.isArray(tr))for(Ar=[],xt=0;xt<tr.length;++xt)Ar[xt]=tr[xt];else Ar=[tr];else{Ar=Array(nn);var bn={radius:lt,format:ur,type:cr};for(xt=0;xt<nn;++xt)Ar[xt]=Se.createCube(bn)}for($t.color=Array(Ar.length),xt=0;xt<Ar.length;++xt){var Vn=Ar[xt];lt=lt||Vn.width,$t.color[xt]={target:yo,data:Ar[xt]}}for(xt=0;xt<6;++xt){for(var Mn=0;Mn<Ar.length;++Mn)$t.color[Mn].target=yo+xt;xt>0&&($t.depth=ht[0].depth,$t.stencil=ht[0].stencil,$t.depthStencil=ht[0].depthStencil),ht[xt]?ht[xt]($t):ht[xt]=Be($t)}return r(Je,{width:lt,height:lt,color:Ar})}function Ft(er){var xt,$t=er|0;if($t===Je.width)return Je;var lt=Je.color;for(xt=0;xt<lt.length;++xt)lt[xt].resize($t);for(xt=0;xt<6;++xt)ht[xt].resize($t);return Je.width=Je.height=$t,Je}return Je(Ae),r(Je,{faces:ht,resize:Ft,_reglType:"framebufferCube",destroy:function(){ht.forEach(function(er){er.destroy()})}})}function mt(){we.cur=null,we.next=null,we.dirty=!0,Ln(Ke).forEach(function(Ae){Ae.framebuffer=F.createFramebuffer(),Rt(Ae)})}return r(we,{getFramebuffer:function(Ae){if(typeof Ae=="function"&&Ae._reglType==="framebuffer"){var ht=Ae._framebuffer;if(ht instanceof Ne)return ht}return null},create:Be,createCube:Ie,clear:function(){Ln(Ke).forEach(ot)},restore:mt})}var hc=5126,Up=34962,rs=34963;function dc(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=hc,this.offset=0,this.stride=0,this.divisor=0}function ty(F,H,K,Se,Me,ye,we){for(var Ye=K.maxAttributes,Xe=new Array(Ye),et=0;et<Ye;++et)Xe[et]=new dc;var ft=0,It={},St={Record:dc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Rt,getVAO:Te,destroyBuffer:it,setVAO:Ge()?qe:Ke,clear:Ge()?Ne:function(){}};function it(Be){for(var Ie=0;Ie<Xe.length;++Ie){var mt=Xe[Ie];mt.buffer===Be&&(F.disableVertexAttribArray(Ie),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Te(Be){return typeof Be=="function"&&Be._vao?Be._vao:null}function qe(Be){if(Be!==St.currentVAO){var Ie=Ge();Be?Ie.bindVertexArrayOES(Be.vao):Ie.bindVertexArrayOES(null),St.currentVAO=Be}}function Ke(Be){if(Be!==St.currentVAO){if(Be)Be.bindAttrs();else{for(var Ie=he(),mt=0;mt<Xe.length;++mt){var Ae=Xe[mt];Ae.buffer?(F.enableVertexAttribArray(mt),Ae.buffer.bind(),F.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offfset),Ie&&Ae.divisor&&Ie.vertexAttribDivisorANGLE(mt,Ae.divisor)):(F.disableVertexAttribArray(mt),F.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}we.elements?F.bindBuffer(rs,we.elements.buffer.buffer):F.bindBuffer(rs,null)}St.currentVAO=Be}}function Ne(){Ln(It).forEach(function(Be){Be.destroy()})}function pt(){this.id=++ft,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var Be=Ge();Be?this.vao=Be.createVertexArrayOES():this.vao=null,It[this.id]=this,this.buffers=[]}pt.prototype.bindAttrs=function(){for(var Be=he(),Ie=this.attributes,mt=0;mt<Ie.length;++mt){var Ae=Ie[mt];Ae.buffer?(F.enableVertexAttribArray(mt),F.bindBuffer(Up,Ae.buffer.buffer),F.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offset),Be&&Ae.divisor&&Be.vertexAttribDivisorANGLE(mt,Ae.divisor)):(F.disableVertexAttribArray(mt),F.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}for(var ht=Ie.length;ht<Ye;++ht)F.disableVertexAttribArray(ht);var Je=ye.getElements(this.elements);Je?F.bindBuffer(rs,Je.buffer.buffer):F.bindBuffer(rs,null)},pt.prototype.refresh=function(){var Be=Ge();Be&&(Be.bindVertexArrayOES(this.vao),this.bindAttrs(),St.currentVAO=null,Be.bindVertexArrayOES(null))},pt.prototype.destroy=function(){if(this.vao){var Be=Ge();this===St.currentVAO&&(St.currentVAO=null,Be.bindVertexArrayOES(null)),Be.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),It[this.id]&&(delete It[this.id],Se.vaoCount-=1)};function ot(){var Be=Ge();Be&&Ln(It).forEach(function(Ie){Ie.refresh()})}function Rt(Be){var Ie=new pt;Se.vaoCount+=1;function mt(Ae){var ht;if(Array.isArray(Ae))ht=Ae,Ie.elements&&Ie.ownsElements&&Ie.elements.destroy(),Ie.elements=null,Ie.ownsElements=!1,Ie.offset=0,Ie.count=0,Ie.instances=-1,Ie.primitive=4;else{if(Ae.elements){var Je=Ae.elements;Ie.ownsElements?typeof Je=="function"&&Je._reglType==="elements"?(Ie.elements.destroy(),Ie.ownsElements=!1):(Ie.elements(Je),Ie.ownsElements=!1):ye.getElements(Ae.elements)?(Ie.elements=Ae.elements,Ie.ownsElements=!1):(Ie.elements=ye.create(Ae.elements),Ie.ownsElements=!0)}else Ie.elements=null,Ie.ownsElements=!1;ht=Ae.attributes,Ie.offset=0,Ie.count=-1,Ie.instances=-1,Ie.primitive=4,Ie.elements&&(Ie.count=Ie.elements._elements.vertCount,Ie.primitive=Ie.elements._elements.primType),"offset"in Ae&&(Ie.offset=Ae.offset|0),"count"in Ae&&(Ie.count=Ae.count|0),"instances"in Ae&&(Ie.instances=Ae.instances|0),"primitive"in Ae&&(Ie.primitive=en[Ae.primitive])}var Ft={},er=Ie.attributes;er.length=ht.length;for(var xt=0;xt<ht.length;++xt){var $t=ht[xt],lt=er[xt]=new dc,tr=$t.data||$t;if(Array.isArray(tr)||Jr(tr)||ei(tr)){var ur;Ie.buffers[xt]&&(ur=Ie.buffers[xt],Jr(tr)&&ur._buffer.byteLength>=tr.byteLength?ur.subdata(tr):(ur.destroy(),Ie.buffers[xt]=null)),Ie.buffers[xt]||(ur=Ie.buffers[xt]=Me.create($t,Up,!1,!0)),lt.buffer=Me.getBuffer(ur),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1,Ft[xt]=1}else Me.getBuffer($t)?(lt.buffer=Me.getBuffer($t),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1):Me.getBuffer($t.buffer)?(lt.buffer=Me.getBuffer($t.buffer),lt.size=(+$t.size||lt.buffer.dimension)|0,lt.normalized=!!$t.normalized||!1,"type"in $t?lt.type=xu[$t.type]:lt.type=lt.buffer.dtype,lt.offset=($t.offset||0)|0,lt.stride=($t.stride||0)|0,lt.divisor=($t.divisor||0)|0,lt.state=1):"x"in $t&&(lt.x=+$t.x||0,lt.y=+$t.y||0,lt.z=+$t.z||0,lt.w=+$t.w||0,lt.state=2)}for(var cr=0;cr<Ie.buffers.length;++cr)!Ft[cr]&&Ie.buffers[cr]&&(Ie.buffers[cr].destroy(),Ie.buffers[cr]=null);return Ie.refresh(),mt}return mt.destroy=function(){for(var Ae=0;Ae<Ie.buffers.length;++Ae)Ie.buffers[Ae]&&Ie.buffers[Ae].destroy();Ie.buffers.length=0,Ie.ownsElements&&(Ie.elements.destroy(),Ie.elements=null,Ie.ownsElements=!1),Ie.destroy()},mt._vao=Ie,mt._reglType="vao",mt(Be)}return St}var pc=35632,ry=35633,ny=35718,vc=35721;function jp(F,H,K,Se){var Me={},ye={};function we(he,Te,qe,Ke){this.name=he,this.id=Te,this.location=qe,this.info=Ke}function Ye(he,Te){for(var qe=0;qe<he.length;++qe)if(he[qe].id===Te.id){he[qe].location=Te.location;return}he.push(Te)}function Xe(he,Te,qe){var Ke=he===pc?Me:ye,Ne=Ke[Te];if(!Ne){var pt=H.str(Te);Ne=F.createShader(he),F.shaderSource(Ne,pt),F.compileShader(Ne),Ke[Te]=Ne}return Ne}var et={},ft=[],It=0;function St(he,Te){this.id=It++,this.fragId=he,this.vertId=Te,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Se.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Te,qe){var Ke,Ne,pt=Xe(pc,he.fragId),ot=Xe(ry,he.vertId),Rt=he.program=F.createProgram();if(F.attachShader(Rt,pt),F.attachShader(Rt,ot),qe)for(Ke=0;Ke<qe.length;++Ke){var Be=qe[Ke];F.bindAttribLocation(Rt,Be[0],Be[1])}F.linkProgram(Rt);var Ie=F.getProgramParameter(Rt,ny);Se.profile&&(he.stats.uniformsCount=Ie);var mt=he.uniforms;for(Ke=0;Ke<Ie;++Ke)if(Ne=F.getActiveUniform(Rt,Ke),Ne)if(Ne.size>1)for(var Ae=0;Ae<Ne.size;++Ae){var ht=Ne.name.replace("[0]","["+Ae+"]");Ye(mt,new we(ht,H.id(ht),F.getUniformLocation(Rt,ht),Ne))}else Ye(mt,new we(Ne.name,H.id(Ne.name),F.getUniformLocation(Rt,Ne.name),Ne));var Je=F.getProgramParameter(Rt,vc);Se.profile&&(he.stats.attributesCount=Je);var Ft=he.attributes;for(Ke=0;Ke<Je;++Ke)Ne=F.getActiveAttrib(Rt,Ke),Ne&&Ye(Ft,new we(Ne.name,H.id(Ne.name),F.getAttribLocation(Rt,Ne.name),Ne))}Se.profile&&(K.getMaxUniformsCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.uniformsCount>he&&(he=Te.stats.uniformsCount)}),he},K.getMaxAttributesCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.attributesCount>he&&(he=Te.stats.attributesCount)}),he});function Ge(){Me={},ye={};for(var he=0;he<ft.length;++he)it(ft[he],null,ft[he].attributes.map(function(Te){return[Te.location,Te.name]}))}return{clear:function(){var he=F.deleteShader.bind(F);Ln(Me).forEach(he),Me={},Ln(ye).forEach(he),ye={},ft.forEach(function(Te){F.deleteProgram(Te.program)}),ft.length=0,et={},K.shaderCount=0},program:function(he,Te,qe,Ke){var Ne=et[Te];Ne||(Ne=et[Te]={});var pt=Ne[he];if(pt&&(pt.refCount++,!Ke))return pt;var ot=new St(Te,he);return K.shaderCount++,it(ot,qe,Ke),pt||(Ne[he]=ot),ft.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){F.deleteProgram(ot.program);var Rt=ft.indexOf(ot);ft.splice(Rt,1),K.shaderCount--}Ne[ot.vertId].refCount<=0&&(F.deleteShader(ye[ot.vertId]),delete ye[ot.vertId],delete et[ot.fragId][ot.vertId]),Object.keys(et[ot.fragId]).length||(F.deleteShader(Me[ot.fragId]),delete Me[ot.fragId],delete et[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var Gp=6408,mc=5121,iy=3333,ay=5126;function Wp(F,H,K,Se,Me,ye,we){function Ye(ft){var It;H.next===null?It=mc:It=H.next.colorAttachments[0].texture._texture.type;var St=0,it=0,Ge=Se.framebufferWidth,he=Se.framebufferHeight,Te=null;Jr(ft)?Te=ft:ft&&(St=ft.x|0,it=ft.y|0,Ge=(ft.width||Se.framebufferWidth-St)|0,he=(ft.height||Se.framebufferHeight-it)|0,Te=ft.data||null),K();var qe=Ge*he*4;return Te||(It===mc?Te=new Uint8Array(qe):It===ay&&(Te=Te||new Float32Array(qe))),F.pixelStorei(iy,4),F.readPixels(St,it,Ge,he,Gp,It,Te),Te}function Xe(ft){var It;return H.setFBO({framebuffer:ft.framebuffer},function(){It=Ye(ft)}),It}function et(ft){return!ft||!("framebuffer"in ft)?Ye(ft):Xe(ft)}return et}function Hp(F){return gc(Vp(yc(F)))}function Vp(F){return uy(sy(oy(F),F.length*8))}function gc(F){for(var H="0123456789abcdef",K="",Se,Me=0;Me<F.length;Me++)Se=F.charCodeAt(Me),K+=H.charAt(Se>>>4&15)+H.charAt(Se&15);return K}function yc(F){for(var H="",K=-1,Se,Me;++K<F.length;)Se=F.charCodeAt(K),Me=K+1<F.length?F.charCodeAt(K+1):0,55296<=Se&&Se<=56319&&56320<=Me&&Me<=57343&&(Se=65536+((Se&1023)<<10)+(Me&1023),K++),Se<=127?H+=String.fromCharCode(Se):Se<=2047?H+=String.fromCharCode(192|Se>>>6&31,128|Se&63):Se<=65535?H+=String.fromCharCode(224|Se>>>12&15,128|Se>>>6&63,128|Se&63):Se<=2097151&&(H+=String.fromCharCode(240|Se>>>18&7,128|Se>>>12&63,128|Se>>>6&63,128|Se&63));return H}function oy(F){for(var H=Array(F.length>>2),K=0;K<H.length;K++)H[K]=0;for(var K=0;K<F.length*8;K+=8)H[K>>5]|=(F.charCodeAt(K/8)&255)<<24-K%32;return H}function uy(F){for(var H="",K=0;K<F.length*32;K+=8)H+=String.fromCharCode(F[K>>5]>>>24-K%32&255);return H}function gi(F,H){return F>>>H|F<<32-H}function qp(F,H){return F>>>H}function ly(F,H,K){return F&H^~F&K}function Yp(F,H,K){return F&H^F&K^H&K}function Xp(F){return gi(F,2)^gi(F,13)^gi(F,22)}function xc(F){return gi(F,6)^gi(F,11)^gi(F,25)}function Qp(F){return gi(F,7)^gi(F,18)^qp(F,3)}function ns(F){return gi(F,17)^gi(F,19)^qp(F,10)}var is=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function sy(F,H){var K=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Se=new Array(64),Me,ye,we,Ye,Xe,et,ft,It,St,it,Ge,he;for(F[H>>5]|=128<<24-H%32,F[(H+64>>9<<4)+15]=H,St=0;St<F.length;St+=16){for(Me=K[0],ye=K[1],we=K[2],Ye=K[3],Xe=K[4],et=K[5],ft=K[6],It=K[7],it=0;it<64;it++)it<16?Se[it]=F[it+St]:Se[it]=jr(jr(jr(ns(Se[it-2]),Se[it-7]),Qp(Se[it-15])),Se[it-16]),Ge=jr(jr(jr(jr(It,xc(Xe)),ly(Xe,et,ft)),is[it]),Se[it]),he=jr(Xp(Me),Yp(Me,ye,we)),It=ft,ft=et,et=Xe,Xe=jr(Ye,Ge),Ye=we,we=ye,ye=Me,Me=jr(Ge,he);K[0]=jr(Me,K[0]),K[1]=jr(ye,K[1]),K[2]=jr(we,K[2]),K[3]=jr(Ye,K[3]),K[4]=jr(Xe,K[4]),K[5]=jr(et,K[5]),K[6]=jr(ft,K[6]),K[7]=jr(It,K[7])}return K}function jr(F,H){var K=(F&65535)+(H&65535),Se=(F>>16)+(H>>16)+(K>>16);return Se<<16|K&65535}function Pa(F){return Array.prototype.slice.call(F)}function bo(F){return Pa(F).join("")}function fy(F){var H=F&&F.cache,K=0,Se=[],Me=[],ye=[];function we(Ge,he){var Te=he&&he.stable;if(!Te){for(var qe=0;qe<Me.length;++qe)if(Me[qe]===Ge&&!ye[qe])return Se[qe]}var Ke="g"+K++;return Se.push(Ke),Me.push(Ge),ye.push(Te),Ke}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,Pa(arguments))}var Te=[];function qe(){var Ke="v"+K++;return Te.push(Ke),arguments.length>0&&(Ge.push(Ke,"="),Ge.push.apply(Ge,Pa(arguments)),Ge.push(";")),Ke}return r(he,{def:qe,toString:function(){return bo([Te.length>0?"var "+Te.join(",")+";":"",bo(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Te=Ge.toString,qe=he.toString;function Ke(Ne,pt){he(Ne,pt,"=",Ge.def(Ne,pt),";")}return r(function(){Ge.apply(Ge,Pa(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ke,set:function(Ne,pt,ot){Ke(Ne,pt),Ge(Ne,pt,"=",ot,";")},toString:function(){return Te()+qe()}})}function et(){var Ge=bo(arguments),he=Xe(),Te=Xe(),qe=he.toString,Ke=Te.toString;return r(he,{then:function(){return he.apply(he,Pa(arguments)),this},else:function(){return Te.apply(Te,Pa(arguments)),this},toString:function(){var Ne=Ke();return Ne&&(Ne="else{"+Ne+"}"),bo(["if(",Ge,"){",qe(),"}",Ne])}})}var ft=Ye(),It={};function St(Ge,he){var Te=[];function qe(){var Rt="a"+Te.length;return Te.push(Rt),Rt}he=he||0;for(var Ke=0;Ke<he;++Ke)qe();var Ne=Xe(),pt=Ne.toString,ot=It[Ge]=r(Ne,{arg:qe,toString:function(){return bo(["function(",Te.join(),"){",pt(),"}"])}});return ot}function it(){var Ge=['"use strict";',ft,"return {"];Object.keys(It).forEach(function(Ke){Ge.push('"',Ke,'":',It[Ke].toString(),",")}),Ge.push("}");var he=bo(Ge).replace(/;/g,`;
283
+ `).replace(/}/g,`}
284
+ `).replace(/{/g,`{
285
+ `),Te;if(H&&(Te=Hp(he),H[Te]))return H[Te].apply(null,Me);var qe=Function.apply(null,Se.concat(he));return H&&(H[Te]=qe),qe.apply(null,Me)}return{global:ft,link:we,block:Ye,proc:St,scope:Xe,cond:et,compile:it}}var Na="xyzw".split(""),bc=5121,La=1,Iu=2,Ru=0,as=1,wc=2,os=3,Da=4,_c=5,Zp=6,Kp="dither",Jp="blend.enable",ev="blend.color",us="blend.equation",ls="blend.func",Sc="depth.enable",Ec="depth.func",tv="depth.range",Fu="depth.mask",Ac="colorMask",rv="cull.enable",Tc="cull.face",ss="frontFace",Cc="lineWidth",Pu="polygonOffset.enable",wo="polygonOffset.offset",Oc="sample.alpha",kc="sample.enable",Nu="sample.coverage",Wn="stencil.enable",Mc="stencil.mask",Ic="stencil.func",Lu="stencil.opFront",Ba="stencil.opBack",nv="scissor.enable",fs="scissor.box",Bi="viewport",$a="profile",ra="framebuffer",Du="vert",cs="frag",_o="elements",So="primitive",tn="count",hs="offset",ds="instances",ui="vao",Bu="Width",$u="Height",Eo=ra+Bu,Ao=ra+$u,cy=Bi+Bu,iv=Bi+$u,Rc="drawingBuffer",Fc=Rc+Bu,Pc=Rc+$u,hy=[ls,us,Ic,Lu,Ba,Nu,Bi,fs,wo],za=34962,Nc=34963,dy=2884,py=3042,av=3024,ov=2960,ps=2929,uv=3089,vs=32823,lv=32926,zu=32928,Dr=5126,ms=35664,$i=35665,To=35666,gs=5124,Lc=35667,Uu=35668,Co=35669,Dc=35670,Bc=35671,$c=35672,zc=35673,Uc=35674,ju=35675,jc=35676,Gc=35678,u=35680,f=4,h=1028,p=1029,v=2304,x=2305,O=32775,S=32776,R=519,N=7680,L=0,$=1,z=32774,ie=513,oe=36160,G=36064,X={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},J={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ue={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},le={cw:v,ccw:x};function te(F){return Array.isArray(F)||Jr(F)||ei(F)}function Re(F){return F.sort(function(H,K){return H===Bi?-1:K===Bi?1:H<K?-1:1})}function Ue(F,H,K,Se){this.thisDep=F,this.contextDep=H,this.propDep=K,this.append=Se}function tt(F){return F&&!(F.thisDep||F.contextDep||F.propDep)}function je(F){return new Ue(!1,!1,!1,F)}function at(F,H){var K=F.type;if(K===Ru){var Se=F.data.length;return new Ue(!0,Se>=1,Se>=2,H)}else if(K===Da){var Me=F.data;return new Ue(Me.thisDep,Me.contextDep,Me.propDep,H)}else{if(K===_c)return new Ue(!1,!1,!1,H);if(K===Zp){for(var ye=!1,we=!1,Ye=!1,Xe=0;Xe<F.data.length;++Xe){var et=F.data[Xe];if(et.type===as)Ye=!0;else if(et.type===wc)we=!0;else if(et.type===os)ye=!0;else if(et.type===Ru){ye=!0;var ft=et.data;ft>=1&&(we=!0),ft>=2&&(Ye=!0)}else et.type===Da&&(ye=ye||et.data.thisDep,we=we||et.data.contextDep,Ye=Ye||et.data.propDep)}return new Ue(ye,we,Ye,H)}else return new Ue(K===os,K===wc,K===as,H)}}var vt=new Ue(!1,!1,!1,function(){});function jt(F,H,K,Se,Me,ye,we,Ye,Xe,et,ft,It,St,it,Ge,he){var Te=et.Record,qe={add:32774,subtract:32778,"reverse subtract":32779};K.ext_blend_minmax&&(qe.min=O,qe.max=S);var Ke=K.angle_instanced_arrays,Ne=K.webgl_draw_buffers,pt=K.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Rt={},Be=[],Ie={},mt={};function Ae(U){return U.replace(".","_")}function ht(U,V,ee){var _e=Ae(U);Be.push(U),Rt[_e]=ot[_e]=!!ee,Ie[_e]=V}function Je(U,V,ee){var _e=Ae(U);Be.push(U),Array.isArray(ee)?(ot[_e]=ee.slice(),Rt[_e]=ee.slice()):ot[_e]=Rt[_e]=ee,mt[_e]=V}function Ft(U){return!!isNaN(U)}ht(Kp,av),ht(Jp,py),Je(ev,"blendColor",[0,0,0,0]),Je(us,"blendEquationSeparate",[z,z]),Je(ls,"blendFuncSeparate",[$,L,$,L]),ht(Sc,ps,!0),Je(Ec,"depthFunc",ie),Je(tv,"depthRange",[0,1]),Je(Fu,"depthMask",!0),Je(Ac,Ac,[!0,!0,!0,!0]),ht(rv,dy),Je(Tc,"cullFace",p),Je(ss,ss,x),Je(Cc,Cc,1),ht(Pu,vs),Je(wo,"polygonOffset",[0,0]),ht(Oc,lv),ht(kc,zu),Je(Nu,"sampleCoverage",[1,!1]),ht(Wn,ov),Je(Mc,"stencilMask",-1),Je(Ic,"stencilFunc",[R,0,-1]),Je(Lu,"stencilOpSeparate",[h,N,N,N]),Je(Ba,"stencilOpSeparate",[p,N,N,N]),ht(nv,uv),Je(fs,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),Je(Bi,Bi,[0,0,F.drawingBufferWidth,F.drawingBufferHeight]);var er={gl:F,context:St,strings:H,next:Rt,current:ot,draw:It,elements:ye,buffer:Me,shader:ft,attributes:et.state,vao:et,uniforms:Xe,framebuffer:Ye,extensions:K,timer:it,isBufferArgs:te},xt={primTypes:en,compareFuncs:J,blendFuncs:X,blendEquations:qe,stencilOps:ue,glTypes:xu,orientationType:le};Ne&&(xt.backBuffer=[p],xt.drawBuffer=Ee(Se.maxDrawbuffers,function(U){return U===0?[0]:Ee(U,function(V){return G+V})}));var $t=0;function lt(){var U=fy({cache:Ge}),V=U.link,ee=U.global;U.id=$t++,U.batchId="0";var _e=V(er),pe=U.shared={props:"a0"};Object.keys(er).forEach(function(ne){pe[ne]=ee.def(_e,".",ne)});var de=U.next={},ce=U.current={};Object.keys(mt).forEach(function(ne){Array.isArray(ot[ne])&&(de[ne]=ee.def(pe.next,".",ne),ce[ne]=ee.def(pe.current,".",ne))});var se=U.constants={};Object.keys(xt).forEach(function(ne){se[ne]=ee.def(JSON.stringify(xt[ne]))}),U.invoke=function(ne,Q){switch(Q.type){case Ru:var ve=["this",pe.context,pe.props,U.batchId];return ne.def(V(Q.data),".call(",ve.slice(0,Math.max(Q.data.length+1,4)),")");case as:return ne.def(pe.props,Q.data);case wc:return ne.def(pe.context,Q.data);case os:return ne.def("this",Q.data);case Da:return Q.data.append(U,ne),Q.data.ref;case _c:return Q.data.toString();case Zp:return Q.data.map(function(Oe){return U.invoke(ne,Oe)})}},U.attribCache={};var Z={};return U.scopeAttrib=function(ne){var Q=H.id(ne);if(Q in Z)return Z[Q];var ve=et.scope[Q];ve||(ve=et.scope[Q]=new Te);var Oe=Z[Q]=V(ve);return Oe},U}function tr(U){var V=U.static,ee=U.dynamic,_e;if($a in V){var pe=!!V[$a];_e=je(function(ce,se){return pe}),_e.enable=pe}else if($a in ee){var de=ee[$a];_e=at(de,function(ce,se){return ce.invoke(se,de)})}return _e}function ur(U,V){var ee=U.static,_e=U.dynamic;if(ra in ee){var pe=ee[ra];return pe?(pe=Ye.getFramebuffer(pe),je(function(ce,se){var Z=ce.link(pe),ne=ce.shared;se.set(ne.framebuffer,".next",Z);var Q=ne.context;return se.set(Q,"."+Eo,Z+".width"),se.set(Q,"."+Ao,Z+".height"),Z})):je(function(ce,se){var Z=ce.shared;se.set(Z.framebuffer,".next","null");var ne=Z.context;return se.set(ne,"."+Eo,ne+"."+Fc),se.set(ne,"."+Ao,ne+"."+Pc),"null"})}else if(ra in _e){var de=_e[ra];return at(de,function(ce,se){var Z=ce.invoke(se,de),ne=ce.shared,Q=ne.framebuffer,ve=se.def(Q,".getFramebuffer(",Z,")");se.set(Q,".next",ve);var Oe=ne.context;return se.set(Oe,"."+Eo,ve+"?"+ve+".width:"+Oe+"."+Fc),se.set(Oe,"."+Ao,ve+"?"+ve+".height:"+Oe+"."+Pc),ve})}else return null}function cr(U,V,ee){var _e=U.static,pe=U.dynamic;function de(Z){if(Z in _e){var ne=_e[Z],Q=!0,ve=ne.x|0,Oe=ne.y|0,$e,Lt;return"width"in ne?$e=ne.width|0:Q=!1,"height"in ne?Lt=ne.height|0:Q=!1,new Ue(!Q&&V&&V.thisDep,!Q&&V&&V.contextDep,!Q&&V&&V.propDep,function(Pt,Et){var Dt=Pt.shared.context,wt=$e;"width"in ne||(wt=Et.def(Dt,".",Eo,"-",ve));var Ot=Lt;return"height"in ne||(Ot=Et.def(Dt,".",Ao,"-",Oe)),[ve,Oe,wt,Ot]})}else if(Z in pe){var Mt=pe[Z],gt=at(Mt,function(Pt,Et){var Dt=Pt.invoke(Et,Mt),wt=Pt.shared.context,Ot=Et.def(Dt,".x|0"),kt=Et.def(Dt,".y|0"),Ht=Et.def('"width" in ',Dt,"?",Dt,".width|0:","(",wt,".",Eo,"-",Ot,")"),Rr=Et.def('"height" in ',Dt,"?",Dt,".height|0:","(",wt,".",Ao,"-",kt,")");return[Ot,kt,Ht,Rr]});return V&&(gt.thisDep=gt.thisDep||V.thisDep,gt.contextDep=gt.contextDep||V.contextDep,gt.propDep=gt.propDep||V.propDep),gt}else return V?new Ue(V.thisDep,V.contextDep,V.propDep,function(Pt,Et){var Dt=Pt.shared.context;return[0,0,Et.def(Dt,".",Eo),Et.def(Dt,".",Ao)]}):null}var ce=de(Bi);if(ce){var se=ce;ce=new Ue(ce.thisDep,ce.contextDep,ce.propDep,function(Z,ne){var Q=se.append(Z,ne),ve=Z.shared.context;return ne.set(ve,"."+cy,Q[2]),ne.set(ve,"."+iv,Q[3]),Q})}return{viewport:ce,scissor_box:de(fs)}}function nn(U,V){var ee=U.static,_e=typeof ee[cs]=="string"&&typeof ee[Du]=="string";if(_e){if(Object.keys(V.dynamic).length>0)return null;var pe=V.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],se=0;se<de.length;++se)ce.push([pe[de[se]]|0,de[se]]);return ce}}return null}function lr(U,V,ee){var _e=U.static,pe=U.dynamic;function de(Q){if(Q in _e){var ve=H.id(_e[Q]),Oe=je(function(){return ve});return Oe.id=ve,Oe}else if(Q in pe){var $e=pe[Q];return at($e,function(Lt,Mt){var gt=Lt.invoke(Mt,$e),Pt=Mt.def(Lt.shared.strings,".id(",gt,")");return Pt})}return null}var ce=de(cs),se=de(Du),Z=null,ne;return tt(ce)&&tt(se)?(Z=ft.program(se.id,ce.id,null,ee),ne=je(function(Q,ve){return Q.link(Z)})):ne=new Ue(ce&&ce.thisDep||se&&se.thisDep,ce&&ce.contextDep||se&&se.contextDep,ce&&ce.propDep||se&&se.propDep,function(Q,ve){var Oe=Q.shared.shader,$e;ce?$e=ce.append(Q,ve):$e=ve.def(Oe,".",cs);var Lt;se?Lt=se.append(Q,ve):Lt=ve.def(Oe,".",Du);var Mt=Oe+".program("+Lt+","+$e;return ve.def(Mt+")")}),{frag:ce,vert:se,progVar:ne,program:Z}}function Hn(U,V){var ee=U.static,_e=U.dynamic,pe={},de=!1;function ce(){if(ui in ee){var Et=ee[ui];return Et!==null&&et.getVAO(Et)===null&&(Et=et.createVAO(Et)),de=!0,pe.vao=Et,je(function(wt){var Ot=et.getVAO(Et);return Ot?wt.link(Ot):"null"})}else if(ui in _e){de=!0;var Dt=_e[ui];return at(Dt,function(wt,Ot){var kt=wt.invoke(Ot,Dt);return Ot.def(wt.shared.vao+".getVAO("+kt+")")})}return null}var se=ce(),Z=!1;function ne(){if(_o in ee){var Et=ee[_o];if(pe.elements=Et,te(Et)){var Dt=pe.elements=ye.create(Et,!0);Et=ye.getElements(Dt),Z=!0}else Et&&(Et=ye.getElements(Et),Z=!0);var wt=je(function(kt,Ht){if(Et){var Rr=kt.link(Et);return kt.ELEMENTS=Rr,Rr}return kt.ELEMENTS=null,null});return wt.value=Et,wt}else if(_o in _e){Z=!0;var Ot=_e[_o];return at(Ot,function(kt,Ht){var Rr=kt.shared,qn=Rr.isBufferArgs,Ua=Rr.elements,Oo=kt.invoke(Ht,Ot),ko=Ht.def("null"),yi=Ht.def(qn,"(",Oo,")"),Wc=kt.cond(yi).then(ko,"=",Ua,".createStream(",Oo,");").else(ko,"=",Ua,".getElements(",Oo,");");return Ht.entry(Wc),Ht.exit(kt.cond(yi).then(Ua,".destroyStream(",ko,");")),kt.ELEMENTS=ko,ko})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Ht){return Ht.def(kt.shared.vao+".currentVAO?"+kt.shared.elements+".getElements("+kt.shared.vao+".currentVAO.elements):null")});return null}var Q=ne();function ve(){if(So in ee){var Et=ee[So];return pe.primitive=Et,je(function(wt,Ot){return en[Et]})}else if(So in _e){var Dt=_e[So];return at(Dt,function(wt,Ot){var kt=wt.constants.primTypes,Ht=wt.invoke(Ot,Dt);return Ot.def(kt,"[",Ht,"]")})}else{if(Z)return tt(Q)?Q.value?je(function(wt,Ot){return Ot.def(wt.ELEMENTS,".primType")}):je(function(){return f}):new Ue(Q.thisDep,Q.contextDep,Q.propDep,function(wt,Ot){var kt=wt.ELEMENTS;return Ot.def(kt,"?",kt,".primType:",f)});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(wt,Ot){return Ot.def(wt.shared.vao+".currentVAO?"+wt.shared.vao+".currentVAO.primitive:"+f)})}return null}function Oe(Et,Dt){if(Et in ee){var wt=ee[Et]|0;return Dt?pe.offset=wt:pe.instances=wt,je(function(kt,Ht){return Dt&&(kt.OFFSET=wt),wt})}else if(Et in _e){var Ot=_e[Et];return at(Ot,function(kt,Ht){var Rr=kt.invoke(Ht,Ot);return Dt&&(kt.OFFSET=Rr),Rr})}else if(Dt){if(Z)return je(function(kt,Ht){return kt.OFFSET=0,0});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Ht){return Ht.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.offset:0")})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Ht){return Ht.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.instances:-1")});return null}var $e=Oe(hs,!0);function Lt(){if(tn in ee){var Et=ee[tn]|0;return pe.count=Et,je(function(){return Et})}else if(tn in _e){var Dt=_e[tn];return at(Dt,function(Ht,Rr){var qn=Ht.invoke(Rr,Dt);return qn})}else if(Z)if(tt(Q)){if(Q)return $e?new Ue($e.thisDep,$e.contextDep,$e.propDep,function(Ht,Rr){var qn=Rr.def(Ht.ELEMENTS,".vertCount-",Ht.OFFSET);return qn}):je(function(Ht,Rr){return Rr.def(Ht.ELEMENTS,".vertCount")});var wt=je(function(){return-1});return wt}else{var Ot=new Ue(Q.thisDep||$e.thisDep,Q.contextDep||$e.contextDep,Q.propDep||$e.propDep,function(Ht,Rr){var qn=Ht.ELEMENTS;return Ht.OFFSET?Rr.def(qn,"?",qn,".vertCount-",Ht.OFFSET,":-1"):Rr.def(qn,"?",qn,".vertCount:-1")});return Ot}else if(de){var kt=new Ue(se.thisDep,se.contextDep,se.propDep,function(Ht,Rr){return Rr.def(Ht.shared.vao,".currentVAO?",Ht.shared.vao,".currentVAO.count:-1")});return kt}return null}var Mt=ve(),gt=Lt(),Pt=Oe(ds,!1);return{elements:Q,primitive:Mt,count:gt,instances:Pt,offset:$e,vao:se,vaoActive:de,elementsActive:Z,static:pe}}function Ar(U,V){var ee=U.static,_e=U.dynamic,pe={};return Be.forEach(function(de){var ce=Ae(de);function se(Z,ne){if(de in ee){var Q=Z(ee[de]);pe[ce]=je(function(){return Q})}else if(de in _e){var ve=_e[de];pe[ce]=at(ve,function(Oe,$e){return ne(Oe,$e,Oe.invoke($e,ve))})}}switch(de){case rv:case Jp:case Kp:case Wn:case Sc:case nv:case Pu:case Oc:case kc:case Fu:return se(function(Z){return Z},function(Z,ne,Q){return Q});case Ec:return se(function(Z){return J[Z]},function(Z,ne,Q){var ve=Z.constants.compareFuncs;return ne.def(ve,"[",Q,"]")});case tv:return se(function(Z){return Z},function(Z,ne,Q){var ve=ne.def("+",Q,"[0]"),Oe=ne.def("+",Q,"[1]");return[ve,Oe]});case ls:return se(function(Z){var ne="srcRGB"in Z?Z.srcRGB:Z.src,Q="srcAlpha"in Z?Z.srcAlpha:Z.src,ve="dstRGB"in Z?Z.dstRGB:Z.dst,Oe="dstAlpha"in Z?Z.dstAlpha:Z.dst;return[X[ne],X[ve],X[Q],X[Oe]]},function(Z,ne,Q){var ve=Z.constants.blendFuncs;function Oe(Dt,wt){var Ot=ne.def('"',Dt,wt,'" in ',Q,"?",Q,".",Dt,wt,":",Q,".",Dt);return Ot}var $e=Oe("src","RGB"),Lt=Oe("dst","RGB"),Mt=ne.def(ve,"[",$e,"]"),gt=ne.def(ve,"[",Oe("src","Alpha"),"]"),Pt=ne.def(ve,"[",Lt,"]"),Et=ne.def(ve,"[",Oe("dst","Alpha"),"]");return[Mt,Pt,gt,Et]});case us:return se(function(Z){if(typeof Z=="string")return[qe[Z],qe[Z]];if(typeof Z=="object")return[qe[Z.rgb],qe[Z.alpha]]},function(Z,ne,Q){var ve=Z.constants.blendEquations,Oe=ne.def(),$e=ne.def(),Lt=Z.cond("typeof ",Q,'==="string"');return Lt.then(Oe,"=",$e,"=",ve,"[",Q,"];"),Lt.else(Oe,"=",ve,"[",Q,".rgb];",$e,"=",ve,"[",Q,".alpha];"),ne(Lt),[Oe,$e]});case ev:return se(function(Z){return Ee(4,function(ne){return+Z[ne]})},function(Z,ne,Q){return Ee(4,function(ve){return ne.def("+",Q,"[",ve,"]")})});case Mc:return se(function(Z){return Z|0},function(Z,ne,Q){return ne.def(Q,"|0")});case Ic:return se(function(Z){var ne=Z.cmp||"keep",Q=Z.ref||0,ve="mask"in Z?Z.mask:-1;return[J[ne],Q,ve]},function(Z,ne,Q){var ve=Z.constants.compareFuncs,Oe=ne.def('"cmp" in ',Q,"?",ve,"[",Q,".cmp]",":",N),$e=ne.def(Q,".ref|0"),Lt=ne.def('"mask" in ',Q,"?",Q,".mask|0:-1");return[Oe,$e,Lt]});case Lu:case Ba:return se(function(Z){var ne=Z.fail||"keep",Q=Z.zfail||"keep",ve=Z.zpass||"keep";return[de===Ba?p:h,ue[ne],ue[Q],ue[ve]]},function(Z,ne,Q){var ve=Z.constants.stencilOps;function Oe($e){return ne.def('"',$e,'" in ',Q,"?",ve,"[",Q,".",$e,"]:",N)}return[de===Ba?p:h,Oe("fail"),Oe("zfail"),Oe("zpass")]});case wo:return se(function(Z){var ne=Z.factor|0,Q=Z.units|0;return[ne,Q]},function(Z,ne,Q){var ve=ne.def(Q,".factor|0"),Oe=ne.def(Q,".units|0");return[ve,Oe]});case Tc:return se(function(Z){var ne=0;return Z==="front"?ne=h:Z==="back"&&(ne=p),ne},function(Z,ne,Q){return ne.def(Q,'==="front"?',h,":",p)});case Cc:return se(function(Z){return Z},function(Z,ne,Q){return Q});case ss:return se(function(Z){return le[Z]},function(Z,ne,Q){return ne.def(Q+'==="cw"?'+v+":"+x)});case Ac:return se(function(Z){return Z.map(function(ne){return!!ne})},function(Z,ne,Q){return Ee(4,function(ve){return"!!"+Q+"["+ve+"]"})});case Nu:return se(function(Z){var ne="value"in Z?Z.value:1,Q=!!Z.invert;return[ne,Q]},function(Z,ne,Q){var ve=ne.def('"value" in ',Q,"?+",Q,".value:1"),Oe=ne.def("!!",Q,".invert");return[ve,Oe]})}}),pe}function bn(U,V){var ee=U.static,_e=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se;if(typeof ce=="number"||typeof ce=="boolean")se=je(function(){return ce});else if(typeof ce=="function"){var Z=ce._reglType;Z==="texture2d"||Z==="textureCube"?se=je(function(ne){return ne.link(ce)}):(Z==="framebuffer"||Z==="framebufferCube")&&(se=je(function(ne){return ne.link(ce.color[0])}))}else ri(ce)&&(se=je(function(ne){var Q=ne.global.def("[",Ee(ce.length,function(ve){return ce[ve]}),"]");return Q}));se.value=ce,pe[de]=se}),Object.keys(_e).forEach(function(de){var ce=_e[de];pe[de]=at(ce,function(se,Z){return se.invoke(Z,ce)})}),pe}function Vn(U,V){var ee=U.static,_e=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se=H.id(de),Z=new Te;if(te(ce))Z.state=La,Z.buffer=Me.getBuffer(Me.create(ce,za,!1,!0)),Z.type=0;else{var ne=Me.getBuffer(ce);if(ne)Z.state=La,Z.buffer=ne,Z.type=0;else if("constant"in ce){var Q=ce.constant;Z.buffer="null",Z.state=Iu,typeof Q=="number"?Z.x=Q:Na.forEach(function(Pt,Et){Et<Q.length&&(Z[Pt]=Q[Et])})}else{te(ce.buffer)?ne=Me.getBuffer(Me.create(ce.buffer,za,!1,!0)):ne=Me.getBuffer(ce.buffer);var ve=ce.offset|0,Oe=ce.stride|0,$e=ce.size|0,Lt=!!ce.normalized,Mt=0;"type"in ce&&(Mt=xu[ce.type]);var gt=ce.divisor|0;Z.buffer=ne,Z.state=La,Z.size=$e,Z.normalized=Lt,Z.type=Mt||ne.dtype,Z.offset=ve,Z.stride=Oe,Z.divisor=gt}}pe[de]=je(function(Pt,Et){var Dt=Pt.attribCache;if(se in Dt)return Dt[se];var wt={isStream:!1};return Object.keys(Z).forEach(function(Ot){wt[Ot]=Z[Ot]}),Z.buffer&&(wt.buffer=Pt.link(Z.buffer),wt.type=wt.type||wt.buffer+".dtype"),Dt[se]=wt,wt})}),Object.keys(_e).forEach(function(de){var ce=_e[de];function se(Z,ne){var Q=Z.invoke(ne,ce),ve=Z.shared,Oe=Z.constants,$e=ve.isBufferArgs,Lt=ve.buffer,Mt={isStream:ne.def(!1)},gt=new Te;gt.state=La,Object.keys(gt).forEach(function(wt){Mt[wt]=ne.def(""+gt[wt])});var Pt=Mt.buffer,Et=Mt.type;ne("if(",$e,"(",Q,")){",Mt.isStream,"=true;",Pt,"=",Lt,".createStream(",za,",",Q,");",Et,"=",Pt,".dtype;","}else{",Pt,"=",Lt,".getBuffer(",Q,");","if(",Pt,"){",Et,"=",Pt,".dtype;",'}else if("constant" in ',Q,"){",Mt.state,"=",Iu,";","if(typeof "+Q+'.constant === "number"){',Mt[Na[0]],"=",Q,".constant;",Na.slice(1).map(function(wt){return Mt[wt]}).join("="),"=0;","}else{",Na.map(function(wt,Ot){return Mt[wt]+"="+Q+".constant.length>"+Ot+"?"+Q+".constant["+Ot+"]:0;"}).join(""),"}}else{","if(",$e,"(",Q,".buffer)){",Pt,"=",Lt,".createStream(",za,",",Q,".buffer);","}else{",Pt,"=",Lt,".getBuffer(",Q,".buffer);","}",Et,'="type" in ',Q,"?",Oe.glTypes,"[",Q,".type]:",Pt,".dtype;",Mt.normalized,"=!!",Q,".normalized;");function Dt(wt){ne(Mt[wt],"=",Q,".",wt,"|0;")}return Dt("size"),Dt("offset"),Dt("stride"),Dt("divisor"),ne("}}"),ne.exit("if(",Mt.isStream,"){",Lt,".destroyStream(",Pt,");","}"),Mt}pe[de]=at(ce,se)}),pe}function Mn(U){var V=U.static,ee=U.dynamic,_e={};return Object.keys(V).forEach(function(pe){var de=V[pe];_e[pe]=je(function(ce,se){return typeof de=="number"||typeof de=="boolean"?""+de:ce.link(de)})}),Object.keys(ee).forEach(function(pe){var de=ee[pe];_e[pe]=at(de,function(ce,se){return ce.invoke(se,de)})}),_e}function zi(U,V,ee,_e,pe){U.static,U.dynamic;var de=nn(U,V),ce=ur(U),se=cr(U,ce),Z=Hn(U),ne=Ar(U),Q=lr(U,pe,de);function ve(Pt){var Et=se[Pt];Et&&(ne[Pt]=Et)}ve(Bi),ve(Ae(fs));var Oe=Object.keys(ne).length>0,$e={framebuffer:ce,draw:Z,shader:Q,state:ne,dirty:Oe,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if($e.profile=tr(U),$e.uniforms=bn(ee),$e.drawVAO=$e.scopeVAO=Z.vao,!$e.drawVAO&&Q.program&&!de&&K.angle_instanced_arrays&&Z.static.elements){var Lt=!0,Mt=Q.program.attributes.map(function(Pt){var Et=V.static[Pt];return Lt=Lt&&!!Et,Et});if(Lt&&Mt.length>0){var gt=et.getVAO(et.createVAO({attributes:Mt,elements:Z.static.elements}));$e.drawVAO=new Ue(null,null,null,function(Pt,Et){return Pt.link(gt)}),$e.useVAO=!0}}return de?$e.useVAO=!0:$e.attributes=Vn(V),$e.context=Mn(_e),$e}function an(U,V,ee){var _e=U.shared,pe=_e.context,de=U.scope();Object.keys(ee).forEach(function(ce){V.save(pe,"."+ce);var se=ee[ce],Z=se.append(U,V);Array.isArray(Z)?de(pe,".",ce,"=[",Z.join(),"];"):de(pe,".",ce,"=",Z,";")}),V(de)}function on(U,V,ee,_e){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,se;Ne&&(se=V.def(pe.extensions,".webgl_draw_buffers"));var Z=U.constants,ne=Z.drawBuffer,Q=Z.backBuffer,ve;ee?ve=ee.append(U,V):ve=V.def(ce,".next"),_e||V("if(",ve,"!==",ce,".cur){"),V("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&V(se,".drawBuffersWEBGL(",ne,"[",ve,".colorAttachments.length]);"),V("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&V(se,".drawBuffersWEBGL(",Q,");"),V("}",ce,".cur=",ve,";"),_e||V("}")}function Yt(U,V,ee){var _e=U.shared,pe=_e.gl,de=U.current,ce=U.next,se=_e.current,Z=_e.next,ne=U.cond(se,".dirty");Be.forEach(function(Q){var ve=Ae(Q);if(!(ve in ee.state)){var Oe,$e;if(ve in ce){Oe=ce[ve],$e=de[ve];var Lt=Ee(ot[ve].length,function(gt){return ne.def(Oe,"[",gt,"]")});ne(U.cond(Lt.map(function(gt,Pt){return gt+"!=="+$e+"["+Pt+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Pt){return $e+"["+Pt+"]="+gt}).join(";"),";"))}else{Oe=ne.def(Z,".",ve);var Mt=U.cond(Oe,"!==",se,".",ve);ne(Mt),ve in Ie?Mt(U.cond(Oe).then(pe,".enable(",Ie[ve],");").else(pe,".disable(",Ie[ve],");"),se,".",ve,"=",Oe,";"):Mt(pe,".",mt[ve],"(",Oe,");",se,".",ve,"=",Oe,";")}}}),Object.keys(ee.state).length===0&&ne(se,".dirty=false;"),V(ne)}function li(U,V,ee,_e){var pe=U.shared,de=U.current,ce=pe.current,se=pe.gl,Z;Re(Object.keys(ee)).forEach(function(ne){var Q=ee[ne];if(!(_e&&!_e(Q))){var ve=Q.append(U,V);if(Ie[ne]){var Oe=Ie[ne];tt(Q)?(Z=U.link(ve,{stable:!0}),V(U.cond(Z).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),V(ce,".",ne,"=",Z,";")):(V(U.cond(ve).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),V(ce,".",ne,"=",ve,";"))}else if(ri(ve)){var $e=de[ne];V(se,".",mt[ne],"(",ve,");",ve.map(function(Lt,Mt){return $e+"["+Mt+"]="+Lt}).join(";"),";")}else tt(Q)?(Z=U.link(ve,{stable:!0}),V(se,".",mt[ne],"(",Z,");",ce,".",ne,"=",Z,";")):V(se,".",mt[ne],"(",ve,");",ce,".",ne,"=",ve,";")}})}function br(U,V){Ke&&(U.instancing=V.def(U.shared.extensions,".angle_instanced_arrays"))}function un(U,V,ee,_e,pe){var de=U.shared,ce=U.stats,se=de.current,Z=de.timer,ne=ee.profile;function Q(){return typeof performance>"u"?"Date.now()":"performance.now()"}var ve,Oe;function $e(Dt){ve=V.def(),Dt(ve,"=",Q(),";"),typeof pe=="string"?Dt(ce,".count+=",pe,";"):Dt(ce,".count++;"),it&&(_e?(Oe=V.def(),Dt(Oe,"=",Z,".getNumPendingQueries();")):Dt(Z,".beginQuery(",ce,");"))}function Lt(Dt){Dt(ce,".cpuTime+=",Q(),"-",ve,";"),it&&(_e?Dt(Z,".pushScopeStats(",Oe,",",Z,".getNumPendingQueries(),",ce,");"):Dt(Z,".endQuery();"))}function Mt(Dt){var wt=V.def(se,".profile");V(se,".profile=",Dt,";"),V.exit(se,".profile=",wt,";")}var gt;if(ne){if(tt(ne)){ne.enable?($e(V),Lt(V.exit),Mt("true")):Mt("false");return}gt=ne.append(U,V),Mt(gt)}else gt=V.def(se,".profile");var Pt=U.block();$e(Pt),V("if(",gt,"){",Pt,"}");var Et=U.block();Lt(Et),V.exit("if(",gt,"){",Et,"}")}function Dn(U,V,ee,_e,pe){var de=U.shared;function ce(Z){switch(Z){case ms:case Lc:case Bc:return 2;case $i:case Uu:case $c:return 3;case To:case Co:case zc:return 4;default:return 1}}function se(Z,ne,Q){var ve=de.gl,Oe=V.def(Z,".location"),$e=V.def(de.attributes,"[",Oe,"]"),Lt=Q.state,Mt=Q.buffer,gt=[Q.x,Q.y,Q.z,Q.w],Pt=["buffer","normalized","offset","stride"];function Et(){V("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Oe,");}");var wt=Q.type,Ot;if(Q.size?Ot=V.def(Q.size,"||",ne):Ot=ne,V("if(",$e,".type!==",wt,"||",$e,".size!==",Ot,"||",Pt.map(function(Ht){return $e+"."+Ht+"!=="+Q[Ht]}).join("||"),"){",ve,".bindBuffer(",za,",",Mt,".buffer);",ve,".vertexAttribPointer(",[Oe,Ot,wt,Q.normalized,Q.stride,Q.offset],");",$e,".type=",wt,";",$e,".size=",Ot,";",Pt.map(function(Ht){return $e+"."+Ht+"="+Q[Ht]+";"}).join(""),"}"),Ke){var kt=Q.divisor;V("if(",$e,".divisor!==",kt,"){",U.instancing,".vertexAttribDivisorANGLE(",[Oe,kt],");",$e,".divisor=",kt,";}")}}function Dt(){V("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Oe,");",$e,".buffer=null;","}if(",Na.map(function(wt,Ot){return $e+"."+wt+"!=="+gt[Ot]}).join("||"),"){",ve,".vertexAttrib4f(",Oe,",",gt,");",Na.map(function(wt,Ot){return $e+"."+wt+"="+gt[Ot]+";"}).join(""),"}")}Lt===La?Et():Lt===Iu?Dt():(V("if(",Lt,"===",La,"){"),Et(),V("}else{"),Dt(),V("}"))}_e.forEach(function(Z){var ne=Z.name,Q=ee.attributes[ne],ve;if(Q){if(!pe(Q))return;ve=Q.append(U,V)}else{if(!pe(vt))return;var Oe=U.scopeAttrib(ne);ve={},Object.keys(new Te).forEach(function($e){ve[$e]=V.def(Oe,".",$e)})}se(U.link(Z),ce(Z.info.type),ve)})}function Bn(U,V,ee,_e,pe,de){for(var ce=U.shared,se=ce.gl,Z,ne=0;ne<_e.length;++ne){var Q=_e[ne],ve=Q.name,Oe=Q.info.type,$e=ee.uniforms[ve],Lt=U.link(Q),Mt=Lt+".location",gt;if($e){if(!pe($e))continue;if(tt($e)){var Pt=$e.value;if(Oe===Gc||Oe===u){var Et=U.link(Pt._texture||Pt.color[0]._texture);V(se,".uniform1i(",Mt,",",Et+".bind());"),V.exit(Et,".unbind();")}else if(Oe===Uc||Oe===ju||Oe===jc){var Dt=U.global.def("new Float32Array(["+Array.prototype.slice.call(Pt)+"])"),wt=2;Oe===ju?wt=3:Oe===jc&&(wt=4),V(se,".uniformMatrix",wt,"fv(",Mt,",false,",Dt,");")}else{switch(Oe){case Dr:Z="1f";break;case ms:Z="2f";break;case $i:Z="3f";break;case To:Z="4f";break;case Dc:Z="1i";break;case gs:Z="1i";break;case Bc:Z="2i";break;case Lc:Z="2i";break;case $c:Z="3i";break;case Uu:Z="3i";break;case zc:Z="4i";break;case Co:Z="4i";break}V(se,".uniform",Z,"(",Mt,",",ri(Pt)?Array.prototype.slice.call(Pt):Pt,");")}continue}else gt=$e.append(U,V)}else{if(!pe(vt))continue;gt=V.def(ce.uniforms,"[",H.id(ve),"]")}Oe===Gc?V("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Oe===u&&V("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Ot=1;switch(Oe){case Gc:case u:var kt=V.def(gt,"._texture");V(se,".uniform1i(",Mt,",",kt,".bind());"),V.exit(kt,".unbind();");continue;case gs:case Dc:Z="1i";break;case Lc:case Bc:Z="2i",Ot=2;break;case Uu:case $c:Z="3i",Ot=3;break;case Co:case zc:Z="4i",Ot=4;break;case Dr:Z="1f";break;case ms:Z="2f",Ot=2;break;case $i:Z="3f",Ot=3;break;case To:Z="4f",Ot=4;break;case Uc:Z="Matrix2fv";break;case ju:Z="Matrix3fv";break;case jc:Z="Matrix4fv";break}if(Z.charAt(0)==="M"){V(se,".uniform",Z,"(",Mt,",");var Ht=Math.pow(Oe-Uc+2,2),Rr=U.global.def("new Float32Array(",Ht,")");Array.isArray(gt)?V("false,(",Ee(Ht,function(yi){return Rr+"["+yi+"]="+gt[yi]}),",",Rr,")"):V("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",Ee(Ht,function(yi){return Rr+"["+yi+"]="+gt+"["+yi+"]"}),",",Rr,")"),V(");")}else if(Ot>1){for(var qn=[],Ua=[],Oo=0;Oo<Ot;++Oo)Array.isArray(gt)?Ua.push(gt[Oo]):Ua.push(V.def(gt+"["+Oo+"]")),de&&qn.push(V.def());de&&V("if(!",U.batchId,"||",qn.map(function(yi,Wc){return yi+"!=="+Ua[Wc]}).join("||"),"){",qn.map(function(yi,Wc){return yi+"="+Ua[Wc]+";"}).join("")),V(se,".uniform",Z,"(",Mt,",",Ua.join(","),");"),de&&V("}")}else{if(de){var ko=V.def();V("if(!",U.batchId,"||",ko,"!==",gt,"){",ko,"=",gt,";")}V(se,".uniform",Z,"(",Mt,",",gt,");"),de&&V("}")}}}function Zt(U,V,ee,_e){var pe=U.shared,de=pe.gl,ce=pe.draw,se=_e.draw;function Z(){var Ot=se.elements,kt,Ht=V;return Ot?((Ot.contextDep&&_e.contextDynamic||Ot.propDep)&&(Ht=ee),kt=Ot.append(U,Ht),se.elementsActive&&Ht("if("+kt+")"+de+".bindBuffer("+Nc+","+kt+".buffer.buffer);")):(kt=Ht.def(),Ht(kt,"=",ce,".",_o,";","if(",kt,"){",de,".bindBuffer(",Nc,",",kt,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",kt,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",pt?"":"if("+kt+")"+de+".bindBuffer("+Nc+","+kt+".buffer.buffer);","}")),kt}function ne(){var Ot=se.count,kt,Ht=V;return Ot?((Ot.contextDep&&_e.contextDynamic||Ot.propDep)&&(Ht=ee),kt=Ot.append(U,Ht)):kt=Ht.def(ce,".",tn),kt}var Q=Z();function ve(Ot){var kt=se[Ot];return kt?kt.contextDep&&_e.contextDynamic||kt.propDep?kt.append(U,ee):kt.append(U,V):V.def(ce,".",Ot)}var Oe=ve(So),$e=ve(hs),Lt=ne();if(typeof Lt=="number"){if(Lt===0)return}else ee("if(",Lt,"){"),ee.exit("}");var Mt,gt;Ke&&(Mt=ve(ds),gt=U.instancing);var Pt=Q+".type",Et=se.elements&&tt(se.elements)&&!se.vaoActive;function Dt(){function Ot(){ee(gt,".drawElementsInstancedANGLE(",[Oe,Lt,Pt,$e+"<<(("+Pt+"-"+bc+")>>1)",Mt],");")}function kt(){ee(gt,".drawArraysInstancedANGLE(",[Oe,$e,Lt,Mt],");")}Q&&Q!=="null"?Et?Ot():(ee("if(",Q,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}function wt(){function Ot(){ee(de+".drawElements("+[Oe,Lt,Pt,$e+"<<(("+Pt+"-"+bc+")>>1)"]+");")}function kt(){ee(de+".drawArrays("+[Oe,$e,Lt]+");")}Q&&Q!=="null"?Et?Ot():(ee("if(",Q,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}Ke&&(typeof Mt!="number"||Mt>=0)?typeof Mt=="string"?(ee("if(",Mt,">0){"),Dt(),ee("}else if(",Mt,"<0){"),wt(),ee("}")):Dt():wt()}function fr(U,V,ee,_e,pe){var de=lt(),ce=de.proc("body",pe);return Ke&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,ee,_e),de.compile().body}function Cr(U,V,ee,_e){br(U,V),ee.useVAO?ee.drawVAO?V(U.shared.vao,".setVAO(",ee.drawVAO.append(U,V),");"):V(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(V(U.shared.vao,".setVAO(null);"),Dn(U,V,ee,_e.attributes,function(){return!0})),Bn(U,V,ee,_e.uniforms,function(){return!0},!1),Zt(U,V,V,ee)}function ln(U,V){var ee=U.proc("draw",1);br(U,ee),an(U,ee,V.context),on(U,ee,V.framebuffer),Yt(U,ee,V),li(U,ee,V.state),un(U,ee,V,!1,!0);var _e=V.shader.progVar.append(U,ee);if(ee(U.shared.gl,".useProgram(",_e,".program);"),V.shader.program)Cr(U,ee,V,V.shader.program);else{ee(U.shared.vao,".setVAO(null);");var pe=U.global.def("{}"),de=ee.def(_e,".id"),ce=ee.def(pe,"[",de,"]");ee(U.cond(ce).then(ce,".call(this,a0);").else(ce,"=",pe,"[",de,"]=",U.link(function(se){return fr(Cr,U,V,se,1)}),"(",_e,");",ce,".call(this,a0);"))}Object.keys(V.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function q(U,V,ee,_e){U.batchId="a1",br(U,V);function pe(){return!0}Dn(U,V,ee,_e.attributes,pe),Bn(U,V,ee,_e.uniforms,pe,!1),Zt(U,V,V,ee)}function xe(U,V,ee,_e){br(U,V);var pe=ee.contextDep,de=V.def(),ce="a0",se="a1",Z=V.def();U.shared.props=Z,U.batchId=de;var ne=U.scope(),Q=U.scope();V(ne.entry,"for(",de,"=0;",de,"<",se,";++",de,"){",Z,"=",ce,"[",de,"];",Q,"}",ne.exit);function ve(Pt){return Pt.contextDep&&pe||Pt.propDep}function Oe(Pt){return!ve(Pt)}if(ee.needsContext&&an(U,Q,ee.context),ee.needsFramebuffer&&on(U,Q,ee.framebuffer),li(U,Q,ee.state,ve),ee.profile&&ve(ee.profile)&&un(U,Q,ee,!1,!0),_e)ee.useVAO?ee.drawVAO?ve(ee.drawVAO)?Q(U.shared.vao,".setVAO(",ee.drawVAO.append(U,Q),");"):ne(U.shared.vao,".setVAO(",ee.drawVAO.append(U,ne),");"):ne(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(ne(U.shared.vao,".setVAO(null);"),Dn(U,ne,ee,_e.attributes,Oe),Dn(U,Q,ee,_e.attributes,ve)),Bn(U,ne,ee,_e.uniforms,Oe,!1),Bn(U,Q,ee,_e.uniforms,ve,!0),Zt(U,ne,Q,ee);else{var $e=U.global.def("{}"),Lt=ee.shader.progVar.append(U,Q),Mt=Q.def(Lt,".id"),gt=Q.def($e,"[",Mt,"]");Q(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",$e,"[",Mt,"]=",U.link(function(Pt){return fr(q,U,ee,Pt,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function ge(U,V){var ee=U.proc("batch",2);U.batchId="0",br(U,ee);var _e=!1,pe=!0;Object.keys(V.context).forEach(function($e){_e=_e||V.context[$e].propDep}),_e||(an(U,ee,V.context),pe=!1);var de=V.framebuffer,ce=!1;de?(de.propDep?_e=ce=!0:de.contextDep&&_e&&(ce=!0),ce||on(U,ee,de)):on(U,ee,null),V.state.viewport&&V.state.viewport.propDep&&(_e=!0);function se($e){return $e.contextDep&&_e||$e.propDep}Yt(U,ee,V),li(U,ee,V.state,function($e){return!se($e)}),(!V.profile||!se(V.profile))&&un(U,ee,V,!1,"a1"),V.contextDep=_e,V.needsContext=pe,V.needsFramebuffer=ce;var Z=V.shader.progVar;if(Z.contextDep&&_e||Z.propDep)xe(U,ee,V,null);else{var ne=Z.append(U,ee);if(ee(U.shared.gl,".useProgram(",ne,".program);"),V.shader.program)xe(U,ee,V,V.shader.program);else{ee(U.shared.vao,".setVAO(null);");var Q=U.global.def("{}"),ve=ee.def(ne,".id"),Oe=ee.def(Q,"[",ve,"]");ee(U.cond(Oe).then(Oe,".call(this,a0,a1);").else(Oe,"=",Q,"[",ve,"]=",U.link(function($e){return fr(xe,U,V,$e,2)}),"(",ne,");",Oe,".call(this,a0,a1);"))}}Object.keys(V.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Tt(U,V){var ee=U.proc("scope",3);U.batchId="a2";var _e=U.shared,pe=_e.current;if(an(U,ee,V.context),V.framebuffer&&V.framebuffer.append(U,ee),Re(Object.keys(V.state)).forEach(function(se){var Z=V.state[se],ne=Z.append(U,ee);ri(ne)?ne.forEach(function(Q,ve){Ft(Q)?ee.set(U.next[se],"["+ve+"]",Q):ee.set(U.next[se],"["+ve+"]",U.link(Q,{stable:!0}))}):tt(Z)?ee.set(_e.next,"."+se,U.link(ne,{stable:!0})):ee.set(_e.next,"."+se,ne)}),un(U,ee,V,!0,!0),[_o,hs,tn,ds,So].forEach(function(se){var Z=V.draw[se];if(!!Z){var ne=Z.append(U,ee);Ft(ne)?ee.set(_e.draw,"."+se,ne):ee.set(_e.draw,"."+se,U.link(ne),{stable:!0})}}),Object.keys(V.uniforms).forEach(function(se){var Z=V.uniforms[se].append(U,ee);Array.isArray(Z)&&(Z="["+Z.map(function(ne){return Ft(ne)?ne:U.link(ne,{stable:!0})})+"]"),ee.set(_e.uniforms,"["+U.link(H.id(se),{stable:!0})+"]",Z)}),Object.keys(V.attributes).forEach(function(se){var Z=V.attributes[se].append(U,ee),ne=U.scopeAttrib(se);Object.keys(new Te).forEach(function(Q){ee.set(ne,"."+Q,Z[Q])})}),V.scopeVAO){var de=V.scopeVAO.append(U,ee);Ft(de)?ee.set(_e.vao,".targetVAO",de):ee.set(_e.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(se){var Z=V.shader[se];if(Z){var ne=Z.append(U,ee);Ft(ne)?ee.set(_e.shader,"."+se,ne):ee.set(_e.shader,"."+se,U.link(ne,{stable:!0}))}}ce(Du),ce(cs),Object.keys(V.state).length>0&&(ee(pe,".dirty=true;"),ee.exit(pe,".dirty=true;")),ee("a1(",U.shared.context,",a0,",U.batchId,");")}function rr(U){if(!(typeof U!="object"||ri(U))){for(var V=Object.keys(U),ee=0;ee<V.length;++ee)if(E.isDynamic(U[V[ee]]))return!0;return!1}}function Ir(U,V,ee){var _e=V.static[ee];if(!_e||!rr(_e))return;var pe=U.global,de=Object.keys(_e),ce=!1,se=!1,Z=!1,ne=U.global.def("{}");de.forEach(function(ve){var Oe=_e[ve];if(E.isDynamic(Oe)){typeof Oe=="function"&&(Oe=_e[ve]=E.unbox(Oe));var $e=at(Oe,null);ce=ce||$e.thisDep,Z=Z||$e.propDep,se=se||$e.contextDep}else{switch(pe(ne,".",ve,"="),typeof Oe){case"number":pe(Oe);break;case"string":pe('"',Oe,'"');break;case"object":Array.isArray(Oe)&&pe("[",Oe.join(),"]");break;default:pe(U.link(Oe));break}pe(";")}});function Q(ve,Oe){de.forEach(function($e){var Lt=_e[$e];if(!!E.isDynamic(Lt)){var Mt=ve.invoke(Oe,Lt);Oe(ne,".",$e,"=",Mt,";")}})}V.dynamic[ee]=new E.DynamicVariable(Da,{thisDep:ce,contextDep:se,propDep:Z,ref:ne,append:Q}),delete V.static[ee]}function Ct(U,V,ee,_e,pe){var de=lt();de.stats=de.link(pe),Object.keys(V.static).forEach(function(se){Ir(de,V,se)}),hy.forEach(function(se){Ir(de,U,se)});var ce=zi(U,V,ee,_e,de);return ce.shader.program&&(ce.shader.program.attributes.sort(function(se,Z){return se.name<Z.name?-1:1}),ce.shader.program.uniforms.sort(function(se,Z){return se.name<Z.name?-1:1})),ln(de,ce),Tt(de,ce),ge(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Rt,current:ot,procs:function(){var U=lt(),V=U.proc("poll"),ee=U.proc("refresh"),_e=U.block();V(_e),ee(_e);var pe=U.shared,de=pe.gl,ce=pe.next,se=pe.current;_e(se,".dirty=false;"),on(U,V),on(U,ee,null,!0);var Z;Ke&&(Z=U.link(Ke)),K.oes_vertex_array_object&&ee(U.link(K.oes_vertex_array_object),".bindVertexArrayOES(null);");var ne=ee.def(pe.attributes),Q=ee.def(0),ve=U.cond(Q,".buffer");ve.then(de,".enableVertexAttribArray(i);",de,".bindBuffer(",za,",",Q,".buffer.buffer);",de,".vertexAttribPointer(i,",Q,".size,",Q,".type,",Q,".normalized,",Q,".stride,",Q,".offset);").else(de,".disableVertexAttribArray(i);",de,".vertexAttrib4f(i,",Q,".x,",Q,".y,",Q,".z,",Q,".w);",Q,".buffer=null;");var Oe=U.link(Se.maxAttributes,{stable:!0});return ee("for(var i=0;i<",Oe,";++i){",Q,"=",ne,"[i];",ve,"}"),Ke&&ee("for(var i=0;i<",Oe,";++i){",Z,".vertexAttribDivisorANGLE(i,",ne,"[i].divisor);","}"),ee(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Ie).forEach(function($e){var Lt=Ie[$e],Mt=_e.def(ce,".",$e),gt=U.block();gt("if(",Mt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",se,".",$e,"=",Mt,";"),ee(gt),V("if(",Mt,"!==",se,".",$e,"){",gt,"}")}),Object.keys(mt).forEach(function($e){var Lt=mt[$e],Mt=ot[$e],gt,Pt,Et=U.block();if(Et(de,".",Lt,"("),ri(Mt)){var Dt=Mt.length;gt=U.global.def(ce,".",$e),Pt=U.global.def(se,".",$e),Et(Ee(Dt,function(wt){return gt+"["+wt+"]"}),");",Ee(Dt,function(wt){return Pt+"["+wt+"]="+gt+"["+wt+"];"}).join("")),V("if(",Ee(Dt,function(wt){return gt+"["+wt+"]!=="+Pt+"["+wt+"]"}).join("||"),"){",Et,"}")}else gt=_e.def(ce,".",$e),Pt=_e.def(se,".",$e),Et(gt,");",se,".",$e,"=",gt,";"),V("if(",gt,"!==",Pt,"){",Et,"}");ee(Et)}),U.compile()}(),compile:Ct}}function bt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var zt=34918,ar=34919,Mr=35007,dr=function(F,H){if(!H.ext_disjoint_timer_query)return null;var K=[];function Se(){return K.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function Me(qe){K.push(qe)}var ye=[];function we(qe){var Ke=Se();H.ext_disjoint_timer_query.beginQueryEXT(Mr,Ke),ye.push(Ke),it(ye.length-1,ye.length,qe)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Mr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var et=[];function ft(){return et.pop()||new Xe}function It(qe){et.push(qe)}var St=[];function it(qe,Ke,Ne){var pt=ft();pt.startQueryIndex=qe,pt.endQueryIndex=Ke,pt.sum=0,pt.stats=Ne,St.push(pt)}var Ge=[],he=[];function Te(){var qe,Ke,Ne=ye.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var pt=0;for(qe=0,Ke=0;Ke<ye.length;++Ke){var ot=ye[Ke];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,ar)?(pt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,zt),Me(ot)):ye[qe++]=ot,Ge[Ke+1]=pt,he[Ke+1]=qe}for(ye.length=qe,qe=0,Ke=0;Ke<St.length;++Ke){var Rt=St[Ke],Be=Rt.startQueryIndex,Ie=Rt.endQueryIndex;Rt.sum+=Ge[Ie]-Ge[Be];var mt=he[Be],Ae=he[Ie];Ae===mt?(Rt.stats.gpuTime+=Rt.sum/1e6,It(Rt)):(Rt.startQueryIndex=mt,Rt.endQueryIndex=Ae,St[qe++]=Rt)}St.length=qe}}return{beginQuery:we,endQuery:Ye,pushScopeStats:it,update:Te,getNumPendingQueries:function(){return ye.length},clear:function(){K.push.apply(K,ye);for(var qe=0;qe<K.length;qe++)H.ext_disjoint_timer_query.deleteQueryEXT(K[qe]);ye.length=0,K.length=0},restore:function(){ye.length=0,K.length=0}}},rt=16384,Gt=256,qt=1024,or=34962,Er="webglcontextlost",Br="webglcontextrestored",Vr=1,cn=2,xn=3;function rn(F,H){for(var K=0;K<F.length;++K)if(F[K]===H)return K;return-1}function kn(F){var H=j(F);if(!H)return null;var K=H.gl,Se=K.getContextAttributes();K.isContextLost();var Me=re(K,H);if(!Me)return null;var ye=w(),we=bt(),Ye=H.cachedCode||{},Xe=Me.extensions,et=dr(K,Xe),ft=b(),It=K.drawingBufferWidth,St=K.drawingBufferHeight,it={tick:0,time:0,viewportWidth:It,viewportHeight:St,framebufferWidth:It,framebufferHeight:St,drawingBufferWidth:It,drawingBufferHeight:St,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Te=Ll(K,Xe),qe=ip(K,we,H,pt),Ke=jl(K,Xe,qe,we),Ne=ty(K,Xe,Te,we,qe,Ke,he);function pt(Zt){return Ne.destroyBuffer(Zt)}var ot=jp(K,ye,we,H),Rt=Xg(K,Xe,Te,function(){mt.procs.poll()},it,we,H),Be=Dp(K,Xe,Te,we,H),Ie=cc(K,Xe,Te,Rt,Be,we),mt=jt(K,ye,Xe,Te,qe,Ke,Rt,Ie,Ge,Ne,ot,he,it,et,Ye,H),Ae=Wp(K,Ie,mt.procs.poll,it),ht=mt.next,Je=K.canvas,Ft=[],er=[],xt=[],$t=[H.onDestroy],lt=null;function tr(){if(Ft.length===0){et&&et.update(),lt=null;return}lt=I.next(tr),on();for(var Zt=Ft.length-1;Zt>=0;--Zt){var fr=Ft[Zt];fr&&fr(it,null,0)}K.flush(),et&&et.update()}function ur(){!lt&&Ft.length>0&&(lt=I.next(tr))}function cr(){lt&&(I.cancel(tr),lt=null)}function nn(Zt){Zt.preventDefault(),cr(),er.forEach(function(fr){fr()})}function lr(Zt){K.getError(),Me.restore(),ot.restore(),qe.restore(),Rt.restore(),Be.restore(),Ie.restore(),Ne.restore(),et&&et.restore(),mt.procs.refresh(),ur(),xt.forEach(function(fr){fr()})}Je&&(Je.addEventListener(Er,nn,!1),Je.addEventListener(Br,lr,!1));function Hn(){Ft.length=0,cr(),Je&&(Je.removeEventListener(Er,nn),Je.removeEventListener(Br,lr)),ot.clear(),Ie.clear(),Be.clear(),Ne.clear(),Rt.clear(),Ke.clear(),qe.clear(),et&&et.clear(),$t.forEach(function(Zt){Zt()})}function Ar(Zt){function fr(pe){var de=r({},pe);delete de.uniforms,delete de.attributes,delete de.context,delete de.vao,"stencil"in de&&de.stencil.op&&(de.stencil.opBack=de.stencil.opFront=de.stencil.op,delete de.stencil.op);function ce(se){if(se in de){var Z=de[se];delete de[se],Object.keys(Z).forEach(function(ne){de[se+"."+ne]=Z[ne]})}}return ce("blend"),ce("depth"),ce("cull"),ce("stencil"),ce("polygonOffset"),ce("scissor"),ce("sample"),"vao"in pe&&(de.vao=pe.vao),de}function Cr(pe,de){var ce={},se={};return Object.keys(pe).forEach(function(Z){var ne=pe[Z];if(E.isDynamic(ne)){se[Z]=E.unbox(ne,Z);return}else if(de&&Array.isArray(ne)){for(var Q=0;Q<ne.length;++Q)if(E.isDynamic(ne[Q])){se[Z]=E.unbox(ne,Z);return}}ce[Z]=ne}),{dynamic:se,static:ce}}var ln=Cr(Zt.context||{},!0),q=Cr(Zt.uniforms||{},!0),xe=Cr(Zt.attributes||{},!1),ge=Cr(fr(Zt),!1),Tt={gpuTime:0,cpuTime:0,count:0},rr=mt.compile(ge,xe,q,ln,Tt),Ir=rr.draw,Ct=rr.batch,U=rr.scope,V=[];function ee(pe){for(;V.length<pe;)V.push(null);return V}function _e(pe,de){var ce;if(typeof pe=="function")return U.call(this,null,pe,0);if(typeof de=="function")if(typeof pe=="number")for(ce=0;ce<pe;++ce)U.call(this,null,de,ce);else if(Array.isArray(pe))for(ce=0;ce<pe.length;++ce)U.call(this,pe[ce],de,ce);else return U.call(this,pe,de,0);else if(typeof pe=="number"){if(pe>0)return Ct.call(this,ee(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Ct.call(this,pe,pe.length)}else return Ir.call(this,pe)}return r(_e,{stats:Tt,destroy:function(){rr.destroy()}})}var bn=Ie.setFBO=Ar({framebuffer:E.define.call(null,Vr,"framebuffer")});function Vn(Zt,fr){var Cr=0;mt.procs.poll();var ln=fr.color;ln&&(K.clearColor(+ln[0]||0,+ln[1]||0,+ln[2]||0,+ln[3]||0),Cr|=rt),"depth"in fr&&(K.clearDepth(+fr.depth),Cr|=Gt),"stencil"in fr&&(K.clearStencil(fr.stencil|0),Cr|=qt),K.clear(Cr)}function Mn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var fr=0;fr<6;++fr)bn(r({framebuffer:Zt.framebuffer.faces[fr]},Zt),Vn);else bn(Zt,Vn);else Vn(null,Zt)}function zi(Zt){Ft.push(Zt);function fr(){var Cr=rn(Ft,Zt);function ln(){var q=rn(Ft,ln);Ft[q]=Ft[Ft.length-1],Ft.length-=1,Ft.length<=0&&cr()}Ft[Cr]=ln}return ur(),{cancel:fr}}function an(){var Zt=ht.viewport,fr=ht.scissor_box;Zt[0]=Zt[1]=fr[0]=fr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=fr[2]=K.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=fr[3]=K.drawingBufferHeight}function on(){it.tick+=1,it.time=li(),an(),mt.procs.poll()}function Yt(){Rt.refresh(),an(),mt.procs.refresh(),et&&et.update()}function li(){return(b()-ft)/1e3}Yt();function br(Zt,fr){var Cr;switch(Zt){case"frame":return zi(fr);case"lost":Cr=er;break;case"restore":Cr=xt;break;case"destroy":Cr=$t;break}return Cr.push(fr),{cancel:function(){for(var ln=0;ln<Cr.length;++ln)if(Cr[ln]===fr){Cr[ln]=Cr[Cr.length-1],Cr.pop();return}}}}function un(){return Ye}function Dn(Zt){Object.entries(Zt).forEach(function(fr){Ye[fr[0]]=fr[1]})}var Bn=r(Ar,{clear:Mn,prop:E.define.bind(null,Vr),context:E.define.bind(null,cn),this:E.define.bind(null,xn),draw:Ar({}),buffer:function(Zt){return qe.create(Zt,or,!1,!1)},elements:function(Zt){return Ke.create(Zt,!1)},texture:Rt.create2D,cube:Rt.createCube,renderbuffer:Be.create,framebuffer:Ie.create,framebufferCube:Ie.createCube,vao:Ne.createVAO,attributes:Se,frame:zi,on:br,limits:Te,hasExtension:function(Zt){return Te.extensions.indexOf(Zt.toLowerCase())>=0},read:Ae,destroy:Hn,_gl:K,_refresh:Yt,poll:function(){on(),et&&et.update()},now:li,stats:we,getCachedCode:un,preloadCachedCode:Dn});return H.onDone(null,Bn),Bn}return kn})})(HR);var IW=du,RW=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},ZT(t)?t={container:t}:FW(t)?t={container:t}:PW(t)?t={gl:t}:t=IW(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=_r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}ZT(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=KT(),t.container.appendChild(t.canvas),QT(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=KT(),t.container.appendChild(t.canvas),QT(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch{}return t.gl}),t.gl};function QT(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*_r.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*_r.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function ZT(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function FW(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function PW(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function KT(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var NW=WR,LW=[32,126],DW=BW;function BW(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||LW;if(n&&typeof n!="string"&&(n=NW(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var c=r.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,r.width,r.height),c.font=n,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";for(var d=i[0]/2,y=i[1]/2,l=0;l<a.length;l++)c.fillText(a[l],d,y),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,y+=i[1]);return r}var pr={},Ur={},U2=32;Ur.INT_BITS=U2;Ur.INT_MAX=2147483647;Ur.INT_MIN=-1<<U2-1;Ur.sign=function(e){return(e>0)-(e<0)};Ur.abs=function(e){var t=e>>U2-1;return(e^t)-t};Ur.min=function(e,t){return t^(e^t)&-(e<t)};Ur.max=function(e,t){return e^(e^t)&-(e<t)};Ur.isPow2=function(e){return!(e&e-1)&&!!e};Ur.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Ur.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Ur.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function VR(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Ur.countTrailingZeros=VR;Ur.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Ur.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Ur.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Ah=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(Ah);Ur.reverse=function(e){return Ah[e&255]<<24|Ah[e>>>8&255]<<16|Ah[e>>>16&255]<<8|Ah[e>>>24&255]};Ur.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Ur.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Ur.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Ur.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Ur.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>VR(e)+1};function qR(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=qR(e,t,r+1);return i}function $W(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function zW(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return $W(e|0,t);break;case"object":if(typeof e.length=="number")return qR(e,t,0);break}return[]}var UW=zW,YR={},rg={};rg.byteLength=WW;rg.toByteArray=VW;rg.fromByteArray=XW;var oa=[],wi=[],jW=typeof Uint8Array<"u"?Uint8Array:Array,bx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ss=0,GW=bx.length;Ss<GW;++Ss)oa[Ss]=bx[Ss],wi[bx.charCodeAt(Ss)]=Ss;wi["-".charCodeAt(0)]=62;wi["_".charCodeAt(0)]=63;function XR(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function WW(e){var t=XR(e),r=t[0],n=t[1];return(r+n)*3/4-n}function HW(e,t,r){return(t+r)*3/4-r}function VW(e){var t,r=XR(e),n=r[0],i=r[1],a=new jW(HW(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=wi[e.charCodeAt(s)]<<18|wi[e.charCodeAt(s+1)]<<12|wi[e.charCodeAt(s+2)]<<6|wi[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=wi[e.charCodeAt(s)]<<2|wi[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=wi[e.charCodeAt(s)]<<10|wi[e.charCodeAt(s+1)]<<4|wi[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function qW(e){return oa[e>>18&63]+oa[e>>12&63]+oa[e>>6&63]+oa[e&63]}function YW(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(qW(n));return i.join("")}function XW(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(YW(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(oa[t>>2]+oa[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(oa[t>>10]+oa[t>>4&63]+oa[t<<2&63]+"=")),i.join("")}var j2={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */j2.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,c=s>>1,d=-7,y=r?i-1:0,g=r?-1:1,m=e[t+y];for(y+=g,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=a*256+e[t+y],y+=g,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+y],y+=g,d-=8);if(a===0)a=1-c;else{if(a===s)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(m?-1:1)*o*Math.pow(2,a-n)};j2.write=function(e,t,r,n,i,a){var o,l,s,c=a*8-i-1,d=(1<<c)-1,y=d>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:a-1,E=n?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+y>=1?t+=g/s:t+=g*Math.pow(2,1-y),t*s>=2&&(o++,s/=2),o+y>=d?(l=0,o=d):o+y>=1?(l=(t*s-1)*Math.pow(2,i),o=o+y):(l=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[r+m]=l&255,m+=E,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[r+m]=o&255,m+=E,o/=256,c-=8);e[r+m-E]|=I*128};/*!
286
+ * The buffer module from node.js, for the browser.
287
+ *
288
+ * @author Feross Aboukhadijeh <https://feross.org>
289
+ * @license MIT
290
+ */(function(e){var t=rg,r=j2;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var M=new Uint8Array(1);return M.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},M.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(!!o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(!!o.isBuffer(this))return this.byteOffset}});function a(M){if(M>n)throw new RangeError('The value "'+M+'" is invalid for option "size"');var A=new Uint8Array(M);return A.__proto__=o.prototype,A}function o(M,A,k){if(typeof M=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(M)}return l(M,A,k)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(M,A,k){if(typeof M=="string")return y(M,A);if(ArrayBuffer.isView(M))return g(M);if(M==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(W(M,ArrayBuffer)||M&&W(M.buffer,ArrayBuffer))return m(M,A,k);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var B=M.valueOf&&M.valueOf();if(B!=null&&B!==M)return o.from(B,A,k);var fe=E(M);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return o.from(M[Symbol.toPrimitive]("string"),A,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}o.from=function(M,A,k){return l(M,A,k)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function c(M,A,k){return s(M),M<=0?a(M):A!==void 0?typeof k=="string"?a(M).fill(A,k):a(M).fill(A):a(M)}o.alloc=function(M,A,k){return c(M,A,k)};function d(M){return s(M),a(M<0?0:I(M)|0)}o.allocUnsafe=function(M){return d(M)},o.allocUnsafeSlow=function(M){return d(M)};function y(M,A){if((typeof A!="string"||A==="")&&(A="utf8"),!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var k=w(M,A)|0,B=a(k),fe=B.write(M,A);return fe!==k&&(B=B.slice(0,fe)),B}function g(M){for(var A=M.length<0?0:I(M.length)|0,k=a(A),B=0;B<A;B+=1)k[B]=M[B]&255;return k}function m(M,A,k){if(A<0||M.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<A+(k||0))throw new RangeError('"length" is outside of buffer bounds');var B;return A===void 0&&k===void 0?B=new Uint8Array(M):k===void 0?B=new Uint8Array(M,A):B=new Uint8Array(M,A,k),B.__proto__=o.prototype,B}function E(M){if(o.isBuffer(M)){var A=I(M.length)|0,k=a(A);return k.length===0||M.copy(k,0,0,A),k}if(M.length!==void 0)return typeof M.length!="number"||ae(M.length)?a(0):g(M);if(M.type==="Buffer"&&Array.isArray(M.data))return g(M.data)}function I(M){if(M>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return M|0}function b(M){return+M!=M&&(M=0),o.alloc(+M)}o.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==o.prototype},o.compare=function(A,k){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),W(k,Uint8Array)&&(k=o.from(k,k.offset,k.byteLength)),!o.isBuffer(A)||!o.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===k)return 0;for(var B=A.length,fe=k.length,Fe=0,ze=Math.min(B,fe);Fe<ze;++Fe)if(A[Fe]!==k[Fe]){B=A[Fe],fe=k[Fe];break}return B<fe?-1:fe<B?1:0},o.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(A,k){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return o.alloc(0);var B;if(k===void 0)for(k=0,B=0;B<A.length;++B)k+=A[B].length;var fe=o.allocUnsafe(k),Fe=0;for(B=0;B<A.length;++B){var ze=A[B];if(W(ze,Uint8Array)&&(ze=o.from(ze)),!o.isBuffer(ze))throw new TypeError('"list" argument must be an Array of Buffers');ze.copy(fe,Fe),Fe+=ze.length}return fe};function w(M,A){if(o.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||W(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);var k=M.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&k===0)return 0;for(var fe=!1;;)switch(A){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Vt(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return Ut(M).length;default:if(fe)return B?-1:Vt(M).length;A=(""+A).toLowerCase(),fe=!0}}o.byteLength=w;function _(M,A,k){var B=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,A>>>=0,k<=A))return"";for(M||(M="utf8");;)switch(M){case"hex":return We(this,A,k);case"utf8":case"utf-8":return Pe(this,A,k);case"ascii":return nt(this,A,k);case"latin1":case"binary":return De(this,A,k);case"base64":return ke(this,A,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,A,k);default:if(B)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),B=!0}}o.prototype._isBuffer=!0;function C(M,A,k){var B=M[A];M[A]=M[k],M[k]=B}o.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<A;k+=2)C(this,k,k+1);return this},o.prototype.swap32=function(){var A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<A;k+=4)C(this,k,k+3),C(this,k+1,k+2);return this},o.prototype.swap64=function(){var A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<A;k+=8)C(this,k,k+7),C(this,k+1,k+6),C(this,k+2,k+5),C(this,k+3,k+4);return this},o.prototype.toString=function(){var A=this.length;return A===0?"":arguments.length===0?Pe(this,0,A):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(A){if(!o.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:o.compare(this,A)===0},o.prototype.inspect=function(){var A="",k=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(A+=" ... "),"<Buffer "+A+">"},o.prototype.compare=function(A,k,B,fe,Fe){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(k===void 0&&(k=0),B===void 0&&(B=A?A.length:0),fe===void 0&&(fe=0),Fe===void 0&&(Fe=this.length),k<0||B>A.length||fe<0||Fe>this.length)throw new RangeError("out of range index");if(fe>=Fe&&k>=B)return 0;if(fe>=Fe)return-1;if(k>=B)return 1;if(k>>>=0,B>>>=0,fe>>>=0,Fe>>>=0,this===A)return 0;for(var ze=Fe-fe,Qt=B-k,sr=Math.min(ze,Qt),nr=this.slice(fe,Fe),Hr=A.slice(k,B),kr=0;kr<sr;++kr)if(nr[kr]!==Hr[kr]){ze=nr[kr],Qt=Hr[kr];break}return ze<Qt?-1:Qt<ze?1:0};function T(M,A,k,B,fe){if(M.length===0)return-1;if(typeof k=="string"?(B=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,ae(k)&&(k=fe?0:M.length-1),k<0&&(k=M.length+k),k>=M.length){if(fe)return-1;k=M.length-1}else if(k<0)if(fe)k=0;else return-1;if(typeof A=="string"&&(A=o.from(A,B)),o.isBuffer(A))return A.length===0?-1:P(M,A,k,B,fe);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(M,A,k):Uint8Array.prototype.lastIndexOf.call(M,A,k):P(M,[A],k,B,fe);throw new TypeError("val must be string, number or Buffer")}function P(M,A,k,B,fe){var Fe=1,ze=M.length,Qt=A.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(M.length<2||A.length<2)return-1;Fe=2,ze/=2,Qt/=2,k/=2}function sr(vu,wa){return Fe===1?vu[wa]:vu.readUInt16BE(wa*Fe)}var nr;if(fe){var Hr=-1;for(nr=k;nr<ze;nr++)if(sr(M,nr)===sr(A,Hr===-1?0:nr-Hr)){if(Hr===-1&&(Hr=nr),nr-Hr+1===Qt)return Hr*Fe}else Hr!==-1&&(nr-=nr-Hr),Hr=-1}else for(k+Qt>ze&&(k=ze-Qt),nr=k;nr>=0;nr--){for(var kr=!0,Xi=0;Xi<Qt;Xi++)if(sr(M,nr+Xi)!==sr(A,Xi)){kr=!1;break}if(kr)return nr}return-1}o.prototype.includes=function(A,k,B){return this.indexOf(A,k,B)!==-1},o.prototype.indexOf=function(A,k,B){return T(this,A,k,B,!0)},o.prototype.lastIndexOf=function(A,k,B){return T(this,A,k,B,!1)};function D(M,A,k,B){k=Number(k)||0;var fe=M.length-k;B?(B=Number(B),B>fe&&(B=fe)):B=fe;var Fe=A.length;B>Fe/2&&(B=Fe/2);for(var ze=0;ze<B;++ze){var Qt=parseInt(A.substr(ze*2,2),16);if(ae(Qt))return ze;M[k+ze]=Qt}return ze}function Y(M,A,k,B){return Ce(Vt(A,M.length-k),M,k,B)}function j(M,A,k,B){return Ce(Ze(A),M,k,B)}function re(M,A,k,B){return j(M,A,k,B)}function Ee(M,A,k,B){return Ce(Ut(A),M,k,B)}function me(M,A,k,B){return Ce(At(A,M.length-k),M,k,B)}o.prototype.write=function(A,k,B,fe){if(k===void 0)fe="utf8",B=this.length,k=0;else if(B===void 0&&typeof k=="string")fe=k,B=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite(B)?(B=B>>>0,fe===void 0&&(fe="utf8")):(fe=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-k;if((B===void 0||B>Fe)&&(B=Fe),A.length>0&&(B<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var ze=!1;;)switch(fe){case"hex":return D(this,A,k,B);case"utf8":case"utf-8":return Y(this,A,k,B);case"ascii":return j(this,A,k,B);case"latin1":case"binary":return re(this,A,k,B);case"base64":return Ee(this,A,k,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,k,B);default:if(ze)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),ze=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ke(M,A,k){return A===0&&k===M.length?t.fromByteArray(M):t.fromByteArray(M.slice(A,k))}function Pe(M,A,k){k=Math.min(M.length,k);for(var B=[],fe=A;fe<k;){var Fe=M[fe],ze=null,Qt=Fe>239?4:Fe>223?3:Fe>191?2:1;if(fe+Qt<=k){var sr,nr,Hr,kr;switch(Qt){case 1:Fe<128&&(ze=Fe);break;case 2:sr=M[fe+1],(sr&192)===128&&(kr=(Fe&31)<<6|sr&63,kr>127&&(ze=kr));break;case 3:sr=M[fe+1],nr=M[fe+2],(sr&192)===128&&(nr&192)===128&&(kr=(Fe&15)<<12|(sr&63)<<6|nr&63,kr>2047&&(kr<55296||kr>57343)&&(ze=kr));break;case 4:sr=M[fe+1],nr=M[fe+2],Hr=M[fe+3],(sr&192)===128&&(nr&192)===128&&(Hr&192)===128&&(kr=(Fe&15)<<18|(sr&63)<<12|(nr&63)<<6|Hr&63,kr>65535&&kr<1114112&&(ze=kr))}}ze===null?(ze=65533,Qt=1):ze>65535&&(ze-=65536,B.push(ze>>>10&1023|55296),ze=56320|ze&1023),B.push(ze),fe+=Qt}return ut(B)}var Le=4096;function ut(M){var A=M.length;if(A<=Le)return String.fromCharCode.apply(String,M);for(var k="",B=0;B<A;)k+=String.fromCharCode.apply(String,M.slice(B,B+=Le));return k}function nt(M,A,k){var B="";k=Math.min(M.length,k);for(var fe=A;fe<k;++fe)B+=String.fromCharCode(M[fe]&127);return B}function De(M,A,k){var B="";k=Math.min(M.length,k);for(var fe=A;fe<k;++fe)B+=String.fromCharCode(M[fe]);return B}function We(M,A,k){var B=M.length;(!A||A<0)&&(A=0),(!k||k<0||k>B)&&(k=B);for(var fe="",Fe=A;Fe<k;++Fe)fe+=Wt(M[Fe]);return fe}function _t(M,A,k){for(var B=M.slice(A,k),fe="",Fe=0;Fe<B.length;Fe+=2)fe+=String.fromCharCode(B[Fe]+B[Fe+1]*256);return fe}o.prototype.slice=function(A,k){var B=this.length;A=~~A,k=k===void 0?B:~~k,A<0?(A+=B,A<0&&(A=0)):A>B&&(A=B),k<0?(k+=B,k<0&&(k=0)):k>B&&(k=B),k<A&&(k=A);var fe=this.subarray(A,k);return fe.__proto__=o.prototype,fe};function He(M,A,k){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+A>k)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(A,k,B){A=A>>>0,k=k>>>0,B||He(A,k,this.length);for(var fe=this[A],Fe=1,ze=0;++ze<k&&(Fe*=256);)fe+=this[A+ze]*Fe;return fe},o.prototype.readUIntBE=function(A,k,B){A=A>>>0,k=k>>>0,B||He(A,k,this.length);for(var fe=this[A+--k],Fe=1;k>0&&(Fe*=256);)fe+=this[A+--k]*Fe;return fe},o.prototype.readUInt8=function(A,k){return A=A>>>0,k||He(A,1,this.length),this[A]},o.prototype.readUInt16LE=function(A,k){return A=A>>>0,k||He(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUInt16BE=function(A,k){return A=A>>>0,k||He(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUInt32LE=function(A,k){return A=A>>>0,k||He(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},o.prototype.readUInt32BE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readIntLE=function(A,k,B){A=A>>>0,k=k>>>0,B||He(A,k,this.length);for(var fe=this[A],Fe=1,ze=0;++ze<k&&(Fe*=256);)fe+=this[A+ze]*Fe;return Fe*=128,fe>=Fe&&(fe-=Math.pow(2,8*k)),fe},o.prototype.readIntBE=function(A,k,B){A=A>>>0,k=k>>>0,B||He(A,k,this.length);for(var fe=k,Fe=1,ze=this[A+--fe];fe>0&&(Fe*=256);)ze+=this[A+--fe]*Fe;return Fe*=128,ze>=Fe&&(ze-=Math.pow(2,8*k)),ze},o.prototype.readInt8=function(A,k){return A=A>>>0,k||He(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},o.prototype.readInt16LE=function(A,k){A=A>>>0,k||He(A,2,this.length);var B=this[A]|this[A+1]<<8;return B&32768?B|4294901760:B},o.prototype.readInt16BE=function(A,k){A=A>>>0,k||He(A,2,this.length);var B=this[A+1]|this[A]<<8;return B&32768?B|4294901760:B},o.prototype.readInt32LE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readFloatLE=function(A,k){return A=A>>>0,k||He(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,k){return A=A>>>0,k||He(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,k){return A=A>>>0,k||He(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,k){return A=A>>>0,k||He(A,8,this.length),r.read(this,A,!1,52,8)};function be(M,A,k,B,fe,Fe){if(!o.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>fe||A<Fe)throw new RangeError('"value" argument is out of bounds');if(k+B>M.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(A,k,B,fe){if(A=+A,k=k>>>0,B=B>>>0,!fe){var Fe=Math.pow(2,8*B)-1;be(this,A,k,B,Fe,0)}var ze=1,Qt=0;for(this[k]=A&255;++Qt<B&&(ze*=256);)this[k+Qt]=A/ze&255;return k+B},o.prototype.writeUIntBE=function(A,k,B,fe){if(A=+A,k=k>>>0,B=B>>>0,!fe){var Fe=Math.pow(2,8*B)-1;be(this,A,k,B,Fe,0)}var ze=B-1,Qt=1;for(this[k+ze]=A&255;--ze>=0&&(Qt*=256);)this[k+ze]=A/Qt&255;return k+B},o.prototype.writeUInt8=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,1,255,0),this[k]=A&255,k+1},o.prototype.writeUInt16LE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,2,65535,0),this[k]=A&255,this[k+1]=A>>>8,k+2},o.prototype.writeUInt16BE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,2,65535,0),this[k]=A>>>8,this[k+1]=A&255,k+2},o.prototype.writeUInt32LE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,4,4294967295,0),this[k+3]=A>>>24,this[k+2]=A>>>16,this[k+1]=A>>>8,this[k]=A&255,k+4},o.prototype.writeUInt32BE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,4,4294967295,0),this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=A&255,k+4},o.prototype.writeIntLE=function(A,k,B,fe){if(A=+A,k=k>>>0,!fe){var Fe=Math.pow(2,8*B-1);be(this,A,k,B,Fe-1,-Fe)}var ze=0,Qt=1,sr=0;for(this[k]=A&255;++ze<B&&(Qt*=256);)A<0&&sr===0&&this[k+ze-1]!==0&&(sr=1),this[k+ze]=(A/Qt>>0)-sr&255;return k+B},o.prototype.writeIntBE=function(A,k,B,fe){if(A=+A,k=k>>>0,!fe){var Fe=Math.pow(2,8*B-1);be(this,A,k,B,Fe-1,-Fe)}var ze=B-1,Qt=1,sr=0;for(this[k+ze]=A&255;--ze>=0&&(Qt*=256);)A<0&&sr===0&&this[k+ze+1]!==0&&(sr=1),this[k+ze]=(A/Qt>>0)-sr&255;return k+B},o.prototype.writeInt8=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,1,127,-128),A<0&&(A=255+A+1),this[k]=A&255,k+1},o.prototype.writeInt16LE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,2,32767,-32768),this[k]=A&255,this[k+1]=A>>>8,k+2},o.prototype.writeInt16BE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,2,32767,-32768),this[k]=A>>>8,this[k+1]=A&255,k+2},o.prototype.writeInt32LE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,4,2147483647,-2147483648),this[k]=A&255,this[k+1]=A>>>8,this[k+2]=A>>>16,this[k+3]=A>>>24,k+4},o.prototype.writeInt32BE=function(A,k,B){return A=+A,k=k>>>0,B||be(this,A,k,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=A&255,k+4};function Ve(M,A,k,B,fe,Fe){if(k+B>M.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function st(M,A,k,B,fe){return A=+A,k=k>>>0,fe||Ve(M,A,k,4),r.write(M,A,k,B,23,4),k+4}o.prototype.writeFloatLE=function(A,k,B){return st(this,A,k,!0,B)},o.prototype.writeFloatBE=function(A,k,B){return st(this,A,k,!1,B)};function Qe(M,A,k,B,fe){return A=+A,k=k>>>0,fe||Ve(M,A,k,8),r.write(M,A,k,B,52,8),k+8}o.prototype.writeDoubleLE=function(A,k,B){return Qe(this,A,k,!0,B)},o.prototype.writeDoubleBE=function(A,k,B){return Qe(this,A,k,!1,B)},o.prototype.copy=function(A,k,B,fe){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if(B||(B=0),!fe&&fe!==0&&(fe=this.length),k>=A.length&&(k=A.length),k||(k=0),fe>0&&fe<B&&(fe=B),fe===B||A.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),A.length-k<fe-B&&(fe=A.length-k+B);var Fe=fe-B;if(this===A&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(k,B,fe);else if(this===A&&B<k&&k<fe)for(var ze=Fe-1;ze>=0;--ze)A[ze+k]=this[ze+B];else Uint8Array.prototype.set.call(A,this.subarray(B,fe),k);return Fe},o.prototype.fill=function(A,k,B,fe){if(typeof A=="string"){if(typeof k=="string"?(fe=k,k=0,B=this.length):typeof B=="string"&&(fe=B,B=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!o.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(A.length===1){var Fe=A.charCodeAt(0);(fe==="utf8"&&Fe<128||fe==="latin1")&&(A=Fe)}}else typeof A=="number"&&(A=A&255);if(k<0||this.length<k||this.length<B)throw new RangeError("Out of range index");if(B<=k)return this;k=k>>>0,B=B===void 0?this.length:B>>>0,A||(A=0);var ze;if(typeof A=="number")for(ze=k;ze<B;++ze)this[ze]=A;else{var Qt=o.isBuffer(A)?A:o.from(A,fe),sr=Qt.length;if(sr===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ze=0;ze<B-k;++ze)this[ze+k]=Qt[ze%sr]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function yt(M){if(M=M.split("=")[0],M=M.trim().replace(ct,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function Wt(M){return M<16?"0"+M.toString(16):M.toString(16)}function Vt(M,A){A=A||1/0;for(var k,B=M.length,fe=null,Fe=[],ze=0;ze<B;++ze){if(k=M.charCodeAt(ze),k>55295&&k<57344){if(!fe){if(k>56319){(A-=3)>-1&&Fe.push(239,191,189);continue}else if(ze+1===B){(A-=3)>-1&&Fe.push(239,191,189);continue}fe=k;continue}if(k<56320){(A-=3)>-1&&Fe.push(239,191,189),fe=k;continue}k=(fe-55296<<10|k-56320)+65536}else fe&&(A-=3)>-1&&Fe.push(239,191,189);if(fe=null,k<128){if((A-=1)<0)break;Fe.push(k)}else if(k<2048){if((A-=2)<0)break;Fe.push(k>>6|192,k&63|128)}else if(k<65536){if((A-=3)<0)break;Fe.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((A-=4)<0)break;Fe.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return Fe}function Ze(M){for(var A=[],k=0;k<M.length;++k)A.push(M.charCodeAt(k)&255);return A}function At(M,A){for(var k,B,fe,Fe=[],ze=0;ze<M.length&&!((A-=2)<0);++ze)k=M.charCodeAt(ze),B=k>>8,fe=k%256,Fe.push(fe),Fe.push(B);return Fe}function Ut(M){return t.toByteArray(yt(M))}function Ce(M,A,k,B){for(var fe=0;fe<B&&!(fe+k>=A.length||fe>=M.length);++fe)A[fe+k]=M[fe];return fe}function W(M,A){return M instanceof A||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===A.name}function ae(M){return M!==M}})(YR);var au=Ur,_n=UW,QR=YR.Buffer;_r.__TYPEDARRAY_POOL||(_r.__TYPEDARRAY_POOL={UINT8:_n([32,0]),UINT16:_n([32,0]),UINT32:_n([32,0]),BIGUINT64:_n([32,0]),INT8:_n([32,0]),INT16:_n([32,0]),INT32:_n([32,0]),BIGINT64:_n([32,0]),FLOAT:_n([32,0]),DOUBLE:_n([32,0]),DATA:_n([32,0]),UINT8C:_n([32,0]),BUFFER:_n([32,0])});var QW=typeof Uint8ClampedArray<"u",ZW=typeof BigUint64Array<"u",KW=typeof BigInt64Array<"u",qr=_r.__TYPEDARRAY_POOL;qr.UINT8C||(qr.UINT8C=_n([32,0]));qr.BIGUINT64||(qr.BIGUINT64=_n([32,0]));qr.BIGINT64||(qr.BIGINT64=_n([32,0]));qr.BUFFER||(qr.BUFFER=_n([32,0]));var ng=qr.DATA,ig=qr.BUFFER;pr.free=function(t){if(QR.isBuffer(t))ig[au.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=au.log2(r)|0;ng[n].push(t)}};function ZR(e){if(!!e){var t=e.length||e.byteLength,r=au.log2(t);ng[r].push(e)}}function JW(e){ZR(e.buffer)}pr.freeUint8=pr.freeUint16=pr.freeUint32=pr.freeBigUint64=pr.freeInt8=pr.freeInt16=pr.freeInt32=pr.freeBigInt64=pr.freeFloat32=pr.freeFloat=pr.freeFloat64=pr.freeDouble=pr.freeUint8Clamped=pr.freeDataView=JW;pr.freeArrayBuffer=ZR;pr.freeBuffer=function(t){ig[au.log2(t.length)].push(t)};pr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Jn(t);switch(r){case"uint8":return G2(t);case"uint16":return KR(t);case"uint32":return JR(t);case"int8":return eF(t);case"int16":return tF(t);case"int32":return rF(t);case"float":case"float32":return nF(t);case"double":case"float64":return iF(t);case"uint8_clamped":return aF(t);case"bigint64":return uF(t);case"biguint64":return oF(t);case"buffer":return sF(t);case"data":case"dataview":return lF(t);default:return null}return null};function Jn(t){var t=au.nextPow2(t),r=au.log2(t),n=ng[r];return n.length>0?n.pop():new ArrayBuffer(t)}pr.mallocArrayBuffer=Jn;function G2(e){return new Uint8Array(Jn(e),0,e)}pr.mallocUint8=G2;function KR(e){return new Uint16Array(Jn(2*e),0,e)}pr.mallocUint16=KR;function JR(e){return new Uint32Array(Jn(4*e),0,e)}pr.mallocUint32=JR;function eF(e){return new Int8Array(Jn(e),0,e)}pr.mallocInt8=eF;function tF(e){return new Int16Array(Jn(2*e),0,e)}pr.mallocInt16=tF;function rF(e){return new Int32Array(Jn(4*e),0,e)}pr.mallocInt32=rF;function nF(e){return new Float32Array(Jn(4*e),0,e)}pr.mallocFloat32=pr.mallocFloat=nF;function iF(e){return new Float64Array(Jn(8*e),0,e)}pr.mallocFloat64=pr.mallocDouble=iF;function aF(e){return QW?new Uint8ClampedArray(Jn(e),0,e):G2(e)}pr.mallocUint8Clamped=aF;function oF(e){return ZW?new BigUint64Array(Jn(8*e),0,e):null}pr.mallocBigUint64=oF;function uF(e){return KW?new BigInt64Array(Jn(8*e),0,e):null}pr.mallocBigInt64=uF;function lF(e){return new DataView(Jn(e),0,e)}pr.mallocDataView=lF;function sF(e){e=au.nextPow2(e);var t=au.log2(e),r=ig[t];return r.length>0?r.pop():new QR(e)}pr.mallocBuffer=sF;pr.clearCache=function(){for(var t=0;t<32;++t)qr.UINT8[t].length=0,qr.UINT16[t].length=0,qr.UINT32[t].length=0,qr.INT8[t].length=0,qr.INT16[t].length=0,qr.INT32[t].length=0,qr.FLOAT[t].length=0,qr.DOUBLE[t].length=0,qr.BIGUINT64[t].length=0,qr.BIGINT64[t].length=0,qr.UINT8C[t].length=0,ng[t].length=0,ig[t].length=0};var fF=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r},eH=fF,tH=cF,vh=96;function Iw(e,t){var r=eH(getComputedStyle(e).getPropertyValue(t));return r[0]*cF(r[1],e)}function rH(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=Iw(r,"font-size")/128;return t.removeChild(r),n}function cF(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return rH(e,t);case"em":return Iw(t,"font-size");case"rem":return Iw(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return vh;case"cm":return vh/2.54;case"mm":return vh/25.4;case"pt":return vh/72;case"pc":return vh/6}return 1}var nH=ag,iH=ag.canvas=document.createElement("canvas"),Lv=iH.getContext("2d"),hF=fm([32,126]);ag.createPairs=fm;ag.ascii=hF;function ag(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=fm(t):Array.isArray(t)?n=t:(t.o?n=fm(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=hF),Lv.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=Lv.measureText(l[0]).width+Lv.measureText(l[1]).width,c=Lv.measureText(l).width;if(Math.abs(s-c)>i*a){var d=(c-s)/i;r[l]=d*1e3}}return r}function fm(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var aH=Do;Do.canvas=document.createElement("canvas");Do.cache={};function Do(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(Do.cache[r]&&n<=Do.cache[r].em)return JT(Do.cache[r],l);var s=t.canvas||Do.canvas,c=s.getContext("2d"),d={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},y=Math.ceil(n*1.5);s.height=y,s.width=y*.5,c.font=o;var g="H",m={top:0};c.clearRect(0,0,y,y),c.textBaseline="top",c.fillStyle="black",c.fillText(g,0,0);var E=na(c.getImageData(0,0,y,y));c.clearRect(0,0,y,y),c.textBaseline="bottom",c.fillText(g,0,y);var I=na(c.getImageData(0,0,y,y));m.lineHeight=m.bottom=y-I+E,c.clearRect(0,0,y,y),c.textBaseline="alphabetic",c.fillText(g,0,y);var b=na(c.getImageData(0,0,y,y)),w=y-b-1+E;m.baseline=m.alphabetic=w,c.clearRect(0,0,y,y),c.textBaseline="middle",c.fillText(g,0,y*.5);var _=na(c.getImageData(0,0,y,y));m.median=m.middle=y-_-1+E-y*.5,c.clearRect(0,0,y,y),c.textBaseline="hanging",c.fillText(g,0,y*.5);var C=na(c.getImageData(0,0,y,y));m.hanging=y-C-1+E-y*.5,c.clearRect(0,0,y,y),c.textBaseline="ideographic",c.fillText(g,0,y);var T=na(c.getImageData(0,0,y,y));if(m.ideographic=y-T-1+E,d.upper&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.upper,0,0),m.upper=na(c.getImageData(0,0,y,y)),m.capHeight=m.baseline-m.upper),d.lower&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.lower,0,0),m.lower=na(c.getImageData(0,0,y,y)),m.xHeight=m.baseline-m.lower),d.tittle&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.tittle,0,0),m.tittle=na(c.getImageData(0,0,y,y))),d.ascent&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.ascent,0,0),m.ascent=na(c.getImageData(0,0,y,y))),d.descent&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.descent,0,0),m.descent=eC(c.getImageData(0,0,y,y))),d.overshoot){c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.overshoot,0,0);var P=eC(c.getImageData(0,0,y,y));m.overshoot=P-w}for(var D in m)m[D]/=n;return m.em=n,Do.cache[r]=m,JT(m,l)}function JT(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function na(e){for(var t=e.height,r=e.data,n=3;n<r.length;n+=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}function eC(e){for(var t=e.height,r=e.data,n=r.length-1;n>0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}var Es=MW,oH=du,uH=HR.exports,lH=RW,sH=PR,wx=Vm,fH=DW,Mo=pr,cH=Hm,hH=mR,dH=fF,pH=tH,vH=nH,mH=xl,gH=aH,yH=Rd,xH=Ur,tC=xH.nextPow2,rC=new sH,d0=!1;if(document.body){var _x=document.body.appendChild(document.createElement("div"));_x.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(_x).fontStretch&&(d0=!0),document.body.removeChild(_x)}var xr=function(t){bH(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=lH(t),this.shader=rC.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||uH({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),rC.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(hH(t)?t:{})};xr.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:`
291
+ precision highp float;
292
+ attribute float width, charOffset, char;
293
+ attribute vec2 position;
294
+ uniform float fontSize, charStep, em, align, baseline;
295
+ uniform vec4 viewport;
296
+ uniform vec4 color;
297
+ uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
298
+ varying vec2 charCoord, charId;
299
+ varying float charWidth;
300
+ varying vec4 fontColor;
301
+ void main () {
302
+ vec2 offset = floor(em * (vec2(align + charOffset, baseline)
303
+ + vec2(positionOffset.x, -positionOffset.y)))
304
+ / (viewport.zw * scale.xy);
305
+
306
+ vec2 position = (position + translate) * scale;
307
+ position += offset * scale;
308
+
309
+ charCoord = position * viewport.zw + viewport.xy;
310
+
311
+ gl_Position = vec4(position * 2. - 1., 0, 1);
312
+
313
+ gl_PointSize = charStep;
314
+
315
+ charId.x = mod(char, atlasDim.x);
316
+ charId.y = floor(char / atlasDim.x);
317
+
318
+ charWidth = width * em;
319
+
320
+ fontColor = color / 255.;
321
+ }`,frag:`
322
+ precision highp float;
323
+ uniform float fontSize, charStep, opacity;
324
+ uniform vec2 atlasSize;
325
+ uniform vec4 viewport;
326
+ uniform sampler2D atlas;
327
+ varying vec4 fontColor;
328
+ varying vec2 charCoord, charId;
329
+ varying float charWidth;
330
+
331
+ float lightness(vec4 color) {
332
+ return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
333
+ }
334
+
335
+ void main () {
336
+ vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
337
+ float halfCharStep = floor(charStep * .5 + .5);
338
+
339
+ // invert y and shift by 1px (FF expecially needs that)
340
+ uv.y = charStep - uv.y;
341
+
342
+ // ignore points outside of character bounding box
343
+ float halfCharWidth = ceil(charWidth * .5);
344
+ if (floor(uv.x) > halfCharStep + halfCharWidth ||
345
+ floor(uv.x) < halfCharStep - halfCharWidth) return;
346
+
347
+ uv += charId * charStep;
348
+ uv = uv / atlasSize;
349
+
350
+ vec4 color = fontColor;
351
+ vec4 mask = texture2D(atlas, uv);
352
+
353
+ float maskY = lightness(mask);
354
+ // float colorY = lightness(color);
355
+ color.a *= maskY;
356
+ color.a *= opacity;
357
+
358
+ // color.a += .1;
359
+
360
+ // antialiasing, see yiq color space y-channel formula
361
+ // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
362
+
363
+ gl_FragColor = color;
364
+ }`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=oH(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Qe){return parseFloat(Qe)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=cH(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=yH(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Qe,ct){if(typeof Qe=="string")try{Qe=Es.parse(Qe)}catch{Qe=Es.parse(xr.baseFontSize+"px "+Qe)}else Qe=Es.parse(Es.stringify(Qe));var yt=Es.stringify({size:xr.baseFontSize,family:Qe.family,stretch:d0?Qe.stretch:void 0,variant:Qe.variant,weight:Qe.weight,style:Qe.style}),Wt=dH(Qe.size),Vt=Math.round(Wt[0]*pH(Wt[1]));if(Vt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=Vt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Ze=Qe.family.join(", "),At=[Qe.style];Qe.style!=Qe.variant&&At.push(Qe.variant),Qe.variant!=Qe.weight&&At.push(Qe.weight),d0&&Qe.weight!=Qe.stretch&&At.push(Qe.stretch),r.font[ct]={baseString:yt,family:Ze,weight:Qe.weight,stretch:Qe.stretch,style:Qe.style,variant:Qe.variant,width:{},kerning:{},metrics:gH(Ze,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Qe,ct){var yt=Es.stringify({size:r.fontSize[ct],family:Qe.family,stretch:d0?Qe.stretch:void 0,variant:Qe.variant,weight:Qe.weight,style:Qe.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var Wt=Qe.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*Wt.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Qe,ct){xr.atlasContext.font=Qe.baseString;for(var yt=r.fontAtlas[ct],Wt=0;Wt<r.text.length;Wt++){var Vt=r.text.charAt(Wt);if(yt.ids[Vt]==null&&(yt.ids[Vt]=yt.chars.length,yt.chars.push(Vt),l.push(Vt)),Qe.width[Vt]==null&&(Qe.width[Vt]=xr.atlasContext.measureText(Vt).width/xr.baseFontSize,r.kerning)){var Ze=[];for(var At in Qe.width)Ze.push(At+Vt,Vt+At);mH(Qe.kerning,vH(Qe.family,{pairs:Ze}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,d=Mo.mallocFloat(this.count*2),y=0,g=0;y<this.counts.length;y++){var m=this.counts[y];if(c)for(var E=0;E<m;E++)d[g++]=t.position[y*2],d[g++]=t.position[y*2+1];else for(var I=0;I<m;I++)d[g++]=t.position[y][0],d[g++]=t.position[y][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Mo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=Mo.mallocUint8(this.count),w=Mo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,C=0;_<this.counts.length;_++){for(var T=this.counts[_],P=this.font[_]||this.font[0],D=this.fontAtlas[_]||this.fontAtlas[0],Y=0;Y<T;Y++){var j=this.text.charAt(C),re=this.text.charAt(C-1);if(b[C]=D.ids[j],w[C*2]=P.width[j],Y){var Ee=w[C*2-2],me=w[C*2],ke=w[C*2-1],Pe=ke+Ee*.5+me*.5;if(this.kerning){var Le=P.kerning[re+j];Le&&(Pe+=Le*.001)}w[C*2+1]=Pe}else w[C*2+1]=w[C*2]*.5;C++}this.textWidth.push(w.length?w[C*2-2]*.5+w[C*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Mo.freeUint8(b),Mo.freeFloat(w),l.length&&this.font.forEach(function(Qe,ct){var yt=r.fontAtlas[ct],Wt=yt.step,Vt=Math.floor(xr.maxAtlasSize/Wt),Ze=Math.min(Vt,yt.chars.length),At=Math.ceil(yt.chars.length/Ze),Ut=tC(Ze*Wt),Ce=tC(At*Wt);yt.width=Ut,yt.height=Ce,yt.rows=At,yt.cols=Ze,yt.em&&yt.texture({data:fH({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[Ut,Ce],step:[Wt,Wt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Qe,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Qe;case"center":case"centre":case"middle":return-Qe*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Qe,ct){var yt=(r.font[ct]||r.font[0]).metrics,Wt=0;return Wt+=yt.bottom*.5,typeof Qe=="number"?Wt+=Qe-yt.baseline:Wt+=-yt[Qe],Wt*=-1,Wt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=wx(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Mo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(wx(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Mo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(wx(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var Ve=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ve);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function bH(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Rte=xr;function wH(e,t){return e.parent===t.parent?1:2}function _H(e){return e.reduce(SH,0)/e.length}function SH(e,t){return e+t.x}function EH(e){return 1+e.reduce(AH,0)}function AH(e,t){return Math.max(e,t.y)}function TH(e){for(var t;t=e.children;)e=t[0];return e}function CH(e){for(var t;t=e.children;)e=t[t.length-1];return e}function OH(){var e=wH,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(g){var m=g.children;m?(g.x=_H(m),g.y=EH(m)):(g.x=o?l+=e(g,o):0,g.y=0,o=g)});var s=TH(a),c=CH(a),d=s.x-e(s,c)/2,y=c.x+e(c,s)/2;return a.eachAfter(n?function(g){g.x=(g.x-a.x)*t,g.y=(a.y-g.y)*r}:function(g){g.x=(g.x-d)/(y-d)*t,g.y=(1-(a.y?g.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function kH(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function MH(){return this.eachAfter(kH)}function IH(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function RH(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function FH(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function PH(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function NH(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function LH(e){for(var t=this,r=DH(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function DH(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function BH(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function $H(){var e=[];return this.each(function(t){e.push(t)}),e}function zH(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function UH(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function W2(e,t){var r=new mf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,c;for(t==null&&(t=GH);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(c=l.length))for(i.children=new Array(c),s=c-1;s>=0;--s)a.push(o=i.children[s]=new mf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(dF)}function jH(){return W2(this).eachBefore(WH)}function GH(e){return e.children}function WH(e){e.data=e.data.data}function dF(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function mf(e){this.data=e,this.depth=this.height=0,this.parent=null}mf.prototype=W2.prototype={constructor:mf,count:MH,each:IH,eachAfter:FH,eachBefore:RH,sum:PH,sort:NH,path:LH,ancestors:BH,descendants:$H,leaves:zH,links:UH,copy:jH};var HH=Array.prototype.slice;function VH(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function pF(e){for(var t=0,r=(e=VH(HH.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&vF(a,i)?++t:(a=YH(n=qH(n,i)),t=0);return a}function qH(e,t){var r,n;if(Sx(t,e))return[t];for(r=0;r<e.length;++r)if(Dv(t,e[r])&&Sx(Th(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(Dv(Th(e[r],e[n]),t)&&Dv(Th(e[r],t),e[n])&&Dv(Th(e[n],t),e[r])&&Sx(mF(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function Dv(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function vF(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Sx(e,t){for(var r=0;r<t.length;++r)if(!vF(e,t[r]))return!1;return!0}function YH(e){switch(e.length){case 1:return XH(e[0]);case 2:return Th(e[0],e[1]);case 3:return mF(e[0],e[1],e[2])}}function XH(e){return{x:e.x,y:e.y,r:e.r}}function Th(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,c=o-n,d=l-i,y=Math.sqrt(s*s+c*c);return{x:(r+a+s/y*d)/2,y:(n+o+c/y*d)/2,r:(y+i+l)/2}}function mF(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,c=r.x,d=r.y,y=r.r,g=n-o,m=n-c,E=i-l,I=i-d,b=s-a,w=y-a,_=n*n+i*i-a*a,C=_-o*o-l*l+s*s,T=_-c*c-d*d+y*y,P=m*E-g*I,D=(E*T-I*C)/(P*2)-n,Y=(I*b-E*w)/P,j=(m*C-g*T)/(P*2)-i,re=(g*w-m*b)/P,Ee=Y*Y+re*re-1,me=2*(a+D*Y+j*re),ke=D*D+j*j-a*a,Pe=-(Ee?(me+Math.sqrt(me*me-4*Ee*ke))/(2*Ee):ke/me);return{x:n+D+Y*Pe,y:i+j+re*Pe,r:Pe}}function nC(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,c=n*n+o*o;c?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(c+s-a)/(2*c),l=Math.sqrt(Math.max(0,s/c-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(c+a-s)/(2*c),l=Math.sqrt(Math.max(0,a/c-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function iC(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function aC(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function Bv(e){this._=e,this.next=null,this.previous=null}function gF(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,c,d,y;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;nC(r,t,n=e[2]),t=new Bv(t),r=new Bv(r),n=new Bv(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){nC(t._,r._,n=e[l]),n=new Bv(n),s=r.next,c=t.previous,d=r._.r,y=t._.r;do if(d<=y){if(iC(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(iC(c._,n._)){t=c,t.next=r,r.previous=t,--l;continue e}y+=c._.r,c=c.previous}while(s!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=aC(t);(n=n.next)!==r;)(o=aC(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=pF(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function QH(e){return gF(e),e}function ZH(e){return e==null?null:cm(e)}function cm(e){if(typeof e!="function")throw new Error;return e}function Xu(){return 0}function Is(e){return function(){return e}}function KH(e){return Math.sqrt(e.value)}function JH(){var e=null,t=1,r=1,n=Xu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(oC(e)).eachAfter(Ex(n,.5)).eachBefore(uC(1)):a.eachBefore(oC(KH)).eachAfter(Ex(Xu,1)).eachAfter(Ex(n,a.r/Math.min(t,r))).eachBefore(uC(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=ZH(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Is(+a),i):n},i}function oC(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Ex(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=gF(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function uC(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function yF(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Pd(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function eV(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(yF),o}function a(o,l){return function(s){s.children&&Pd(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var c=s.x0,d=s.y0,y=s.x1-r,g=s.y1-r;y<c&&(c=y=(c+y)/2),g<d&&(d=g=(d+g)/2),s.x0=c,s.y0=d,s.x1=y,s.y1=g}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var lC="$",tV={depth:-1},sC={};function rV(e){return e.id}function nV(e){return e.parentId}function iV(){var e=rV,t=nV;function r(n){var i,a,o=n.length,l,s,c,d=new Array(o),y,g,m={};for(a=0;a<o;++a)i=n[a],c=d[a]=new mf(i),(y=e(i,a,n))!=null&&(y+="")&&(g=lC+(c.id=y),m[g]=g in m?sC:c);for(a=0;a<o;++a)if(c=d[a],y=t(n[a],a,n),y==null||!(y+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=m[lC+y],!s)throw new Error("missing: "+y);if(s===sC)throw new Error("ambiguous: "+y);s.children?s.children.push(c):s.children=[c],c.parent=s}if(!l)throw new Error("no root");if(l.parent=tV,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(dF),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=cm(n),r):e},r.parentId=function(n){return arguments.length?(t=cm(n),r):t},r}function aV(e,t){return e.parent===t.parent?1:2}function Ax(e){var t=e.children;return t?t[0]:e.t}function Tx(e){var t=e.children;return t?t[t.length-1]:e.t}function oV(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function uV(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function lV(e,t,r){return e.a.parent===t.parent?e.a:r}function p0(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}p0.prototype=Object.create(mf.prototype);function sV(e){for(var t=new p0(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new p0(a[o],o)),i.parent=r;return(t.parent=new p0(null,0)).children=[t],t}function fV(){var e=aV,t=1,r=1,n=null;function i(c){var d=sV(c);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)c.eachBefore(s);else{var y=c,g=c,m=c;c.eachBefore(function(_){_.x<y.x&&(y=_),_.x>g.x&&(g=_),_.depth>m.depth&&(m=_)});var E=y===g?1:e(y,g)/2,I=E-y.x,b=t/(g.x+E+I),w=r/(m.depth||1);c.eachBefore(function(_){_.x=(_.x+I)*b,_.y=_.depth*w})}return c}function a(c){var d=c.children,y=c.parent.children,g=c.i?y[c.i-1]:null;if(d){uV(c);var m=(d[0].z+d[d.length-1].z)/2;g?(c.z=g.z+e(c._,g._),c.m=c.z-m):c.z=m}else g&&(c.z=g.z+e(c._,g._));c.parent.A=l(c,g,c.parent.A||y[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,d,y){if(d){for(var g=c,m=c,E=d,I=g.parent.children[0],b=g.m,w=m.m,_=E.m,C=I.m,T;E=Tx(E),g=Ax(g),E&&g;)I=Ax(I),m=Tx(m),m.a=c,T=E.z+_-g.z-b+e(E._,g._),T>0&&(oV(lV(E,c,y),c,T),b+=T,w+=T),_+=E.m,b+=g.m,C+=I.m,w+=m.m;E&&!Tx(m)&&(m.t=E,m.m+=_-w),g&&!Ax(I)&&(I.t=g,I.m+=b-C,y=c)}return y}function s(c){c.x*=t,c.y=c.depth*r}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(n=!1,t=+c[0],r=+c[1],i):n?null:[t,r]},i.nodeSize=function(c){return arguments.length?(n=!0,t=+c[0],r=+c[1],i):n?[t,r]:null},i}function og(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}var xF=(1+Math.sqrt(5))/2;function bF(e,t,r,n,i,a){for(var o=[],l=t.children,s,c,d=0,y=0,g=l.length,m,E,I=t.value,b,w,_,C,T,P,D;d<g;){m=i-r,E=a-n;do b=l[y++].value;while(!b&&y<g);for(w=_=b,P=Math.max(E/m,m/E)/(I*e),D=b*b*P,T=Math.max(_/D,D/w);y<g;++y){if(b+=c=l[y].value,c<w&&(w=c),c>_&&(_=c),D=b*b*P,C=Math.max(_/D,D/w),C>T){b-=c;break}T=C}o.push(s={value:b,dice:m<E,children:l.slice(d,y)}),s.dice?Pd(s,r,n,i,I?n+=E*b/I:a):og(s,r,n,I?r+=m*b/I:i,a),I-=b,d=y}return o}const wF=function e(t){function r(n,i,a,o,l){bF(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(xF);function cV(){var e=wF,t=!1,r=1,n=1,i=[0],a=Xu,o=Xu,l=Xu,s=Xu,c=Xu;function d(g){return g.x0=g.y0=0,g.x1=r,g.y1=n,g.eachBefore(y),i=[0],t&&g.eachBefore(yF),g}function y(g){var m=i[g.depth],E=g.x0+m,I=g.y0+m,b=g.x1-m,w=g.y1-m;b<E&&(E=b=(E+b)/2),w<I&&(I=w=(I+w)/2),g.x0=E,g.y0=I,g.x1=b,g.y1=w,g.children&&(m=i[g.depth+1]=a(g)/2,E+=c(g)-m,I+=o(g)-m,b-=l(g)-m,w-=s(g)-m,b<E&&(E=b=(E+b)/2),w<I&&(I=w=(I+w)/2),e(g,E,I,b,w))}return d.round=function(g){return arguments.length?(t=!!g,d):t},d.size=function(g){return arguments.length?(r=+g[0],n=+g[1],d):[r,n]},d.tile=function(g){return arguments.length?(e=cm(g),d):e},d.padding=function(g){return arguments.length?d.paddingInner(g).paddingOuter(g):d.paddingInner()},d.paddingInner=function(g){return arguments.length?(a=typeof g=="function"?g:Is(+g),d):a},d.paddingOuter=function(g){return arguments.length?d.paddingTop(g).paddingRight(g).paddingBottom(g).paddingLeft(g):d.paddingTop()},d.paddingTop=function(g){return arguments.length?(o=typeof g=="function"?g:Is(+g),d):o},d.paddingRight=function(g){return arguments.length?(l=typeof g=="function"?g:Is(+g),d):l},d.paddingBottom=function(g){return arguments.length?(s=typeof g=="function"?g:Is(+g),d):s},d.paddingLeft=function(g){return arguments.length?(c=typeof g=="function"?g:Is(+g),d):c},d}function hV(e,t,r,n,i){var a=e.children,o,l=a.length,s,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(y,g,m,E,I,b,w){if(y>=g-1){var _=a[y];_.x0=E,_.y0=I,_.x1=b,_.y1=w;return}for(var C=c[y],T=m/2+C,P=y+1,D=g-1;P<D;){var Y=P+D>>>1;c[Y]<T?P=Y+1:D=Y}T-c[P-1]<c[P]-T&&y+1<P&&--P;var j=c[P]-C,re=m-j;if(b-E>w-I){var Ee=(E*re+b*j)/m;d(y,P,j,E,I,Ee,w),d(P,g,re,Ee,I,b,w)}else{var me=(I*re+w*j)/m;d(y,P,j,E,I,b,me),d(P,g,re,E,me,b,w)}}}function dV(e,t,r,n,i){(e.depth&1?og:Pd)(e,t,r,n,i)}const pV=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,d,y,g=-1,m,E=s.length,I=n.value;++g<E;){for(c=s[g],d=c.children,y=c.value=0,m=d.length;y<m;++y)c.value+=d[y].value;c.dice?Pd(c,i,a,o,a+=(l-a)*c.value/I):og(c,i,a,i+=(o-i)*c.value/I,l),I-=c.value}else n._squarify=s=bF(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(xF),vV=Object.freeze(Object.defineProperty({__proto__:null,cluster:OH,hierarchy:W2,pack:JH,packSiblings:QH,packEnclose:pF,partition:eV,stratify:iV,tree:fV,treemap:cV,treemapBinary:hV,treemapDice:Pd,treemapSlice:og,treemapSliceDice:dV,treemapSquarify:wF,treemapResquarify:pV},Symbol.toStringTag,{value:"Module"})),Fte=yl(vV);function If(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Nd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function pu(){}var dl=.7,gf=1/dl,nf="\\s*([+-]?\\d+)\\s*",gd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",pa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mV=/^#([0-9a-f]{3,8})$/,gV=new RegExp("^rgb\\("+[nf,nf,nf]+"\\)$"),yV=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),xV=new RegExp("^rgba\\("+[nf,nf,nf,gd]+"\\)$"),bV=new RegExp("^rgba\\("+[pa,pa,pa,gd]+"\\)$"),wV=new RegExp("^hsl\\("+[gd,pa,pa]+"\\)$"),_V=new RegExp("^hsla\\("+[gd,pa,pa,gd]+"\\)$"),fC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};If(pu,yd,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:cC,formatHex:cC,formatHsl:SV,formatRgb:hC,toString:hC});function cC(){return this.rgb().formatHex()}function SV(){return _F(this).formatHsl()}function hC(){return this.rgb().formatRgb()}function yd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?dC(t):r===3?new An(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?$v(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?$v(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gV.exec(e))?new An(t[1],t[2],t[3],1):(t=yV.exec(e))?new An(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xV.exec(e))?$v(t[1],t[2],t[3],t[4]):(t=bV.exec(e))?$v(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wV.exec(e))?mC(t[1],t[2]/100,t[3]/100,1):(t=_V.exec(e))?mC(t[1],t[2]/100,t[3]/100,t[4]):fC.hasOwnProperty(e)?dC(fC[e]):e==="transparent"?new An(NaN,NaN,NaN,0):null}function dC(e){return new An(e>>16&255,e>>8&255,e&255,1)}function $v(e,t,r,n){return n<=0&&(e=t=r=NaN),new An(e,t,r,n)}function H2(e){return e instanceof pu||(e=yd(e)),e?(e=e.rgb(),new An(e.r,e.g,e.b,e.opacity)):new An}function hm(e,t,r,n){return arguments.length===1?H2(e):new An(e,t,r,n==null?1:n)}function An(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}If(An,hm,Nd(pu,{brighter:function(e){return e=e==null?gf:Math.pow(gf,e),new An(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?dl:Math.pow(dl,e),new An(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pC,formatHex:pC,formatRgb:vC,toString:vC}));function pC(){return"#"+Cx(this.r)+Cx(this.g)+Cx(this.b)}function vC(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Cx(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function mC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ua(e,t,r,n)}function _F(e){if(e instanceof ua)return new ua(e.h,e.s,e.l,e.opacity);if(e instanceof pu||(e=yd(e)),!e)return new ua;if(e instanceof ua)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new ua(o,l,s,e.opacity)}function Rw(e,t,r,n){return arguments.length===1?_F(e):new ua(e,t,r,n==null?1:n)}function ua(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}If(ua,Rw,Nd(pu,{brighter:function(e){return e=e==null?gf:Math.pow(gf,e),new ua(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?dl:Math.pow(dl,e),new ua(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new An(Ox(e>=240?e-240:e+120,i,n),Ox(e,i,n),Ox(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Ox(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var SF=Math.PI/180,EF=180/Math.PI,dm=18,AF=.96422,TF=1,CF=.82521,OF=4/29,af=6/29,kF=3*af*af,EV=af*af*af;function MF(e){if(e instanceof va)return new va(e.l,e.a,e.b,e.opacity);if(e instanceof Va)return IF(e);e instanceof An||(e=H2(e));var t=Rx(e.r),r=Rx(e.g),n=Rx(e.b),i=kx((.2225045*t+.7168786*r+.0606169*n)/TF),a,o;return t===r&&r===n?a=o=i:(a=kx((.4360747*t+.3850649*r+.1430804*n)/AF),o=kx((.0139322*t+.0971045*r+.7141733*n)/CF)),new va(116*i-16,500*(a-i),200*(i-o),e.opacity)}function Fw(e,t,r,n){return arguments.length===1?MF(e):new va(e,t,r,n==null?1:n)}function va(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}If(va,Fw,Nd(pu,{brighter:function(e){return new va(this.l+dm*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new va(this.l-dm*(e==null?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=AF*Mx(t),e=TF*Mx(e),r=CF*Mx(r),new An(Ix(3.1338561*t-1.6168667*e-.4906146*r),Ix(-.9787684*t+1.9161415*e+.033454*r),Ix(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function kx(e){return e>EV?Math.pow(e,1/3):e/kF+OF}function Mx(e){return e>af?e*e*e:kF*(e-OF)}function Ix(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function AV(e){if(e instanceof Va)return new Va(e.h,e.c,e.l,e.opacity);if(e instanceof va||(e=MF(e)),e.a===0&&e.b===0)return new Va(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*EF;return new Va(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Pw(e,t,r,n){return arguments.length===1?AV(e):new Va(e,t,r,n==null?1:n)}function Va(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function IF(e){if(isNaN(e.h))return new va(e.l,0,0,e.opacity);var t=e.h*SF;return new va(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}If(Va,Pw,Nd(pu,{brighter:function(e){return new Va(this.h,this.c,this.l+dm*(e==null?1:e),this.opacity)},darker:function(e){return new Va(this.h,this.c,this.l-dm*(e==null?1:e),this.opacity)},rgb:function(){return IF(this).rgb()}}));var RF=-.14861,V2=1.78277,q2=-.29227,ug=-.90649,xd=1.97294,gC=xd*ug,yC=xd*V2,xC=V2*q2-ug*RF;function TV(e){if(e instanceof ol)return new ol(e.h,e.s,e.l,e.opacity);e instanceof An||(e=H2(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(xC*n+gC*t-yC*r)/(xC+gC-yC),a=n-i,o=(xd*(r-i)-q2*a)/ug,l=Math.sqrt(o*o+a*a)/(xd*i*(1-i)),s=l?Math.atan2(o,a)*EF-120:NaN;return new ol(s<0?s+360:s,l,i,e.opacity)}function Nw(e,t,r,n){return arguments.length===1?TV(e):new ol(e,t,r,n==null?1:n)}function ol(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}If(ol,Nw,Nd(pu,{brighter:function(e){return e=e==null?gf:Math.pow(gf,e),new ol(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?dl:Math.pow(dl,e),new ol(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*SF,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new An(255*(t+r*(RF*n+V2*i)),255*(t+r*(q2*n+ug*i)),255*(t+r*(xd*n)),this.opacity)}}));function FF(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function PF(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return FF((r-n/t)*t,o,i,a,l)}}function NF(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return FF((r-n/t)*t,i,a,o,l)}}function lg(e){return function(){return e}}function LF(e,t){return function(r){return e+r*t}}function CV(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function sg(e,t){var r=t-e;return r?LF(e,r>180||r<-180?r-360*Math.round(r/360):r):lg(isNaN(e)?t:e)}function OV(e){return(e=+e)==1?vn:function(t,r){return r-t?CV(t,r,e):lg(isNaN(t)?r:t)}}function vn(e,t){var r=t-e;return r?LF(e,r):lg(isNaN(e)?t:e)}const Lw=function e(t){var r=OV(t);function n(i,a){var o=r((i=hm(i)).r,(a=hm(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=vn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=c(d),i+""}}return n.gamma=e,n}(1);function DF(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=hm(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var kV=DF(PF),MV=DF(NF);function Y2(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function BF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function IV(e,t){return(BF(t)?Y2:$F)(e,t)}function $F(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=X2(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function zF(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function aa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function UF(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=X2(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Dw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fx=new RegExp(Dw.source,"g");function RV(e){return function(){return e}}function FV(e){return function(t){return e(t)+""}}function jF(e,t){var r=Dw.lastIndex=Fx.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=Dw.exec(e))&&(i=Fx.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:aa(n,i)})),r=Fx.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?FV(s[0].x):RV(t):(t=s.length,function(c){for(var d=0,y;d<t;++d)l[(y=s[d]).i]=y.x(c);return l.join("")})}function X2(e,t){var r=typeof t,n;return t==null||r==="boolean"?lg(t):(r==="number"?aa:r==="string"?(n=yd(t))?(t=n,Lw):jF:t instanceof yd?Lw:t instanceof Date?zF:BF(t)?Y2:Array.isArray(t)?$F:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UF:aa)(e,t)}function PV(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function NV(e,t){var r=sg(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function LV(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var bC=180/Math.PI,Bw={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function GF(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*bC,skewX:Math.atan(s)*bC,scaleX:o,scaleY:l}}var mh,Px,wC,zv;function DV(e){return e==="none"?Bw:(mh||(mh=document.createElement("DIV"),Px=document.documentElement,wC=document.defaultView),mh.style.transform=e,e=wC.getComputedStyle(Px.appendChild(mh),null).getPropertyValue("transform"),Px.removeChild(mh),e=e.slice(7,-1).split(","),GF(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function BV(e){return e==null||(zv||(zv=document.createElementNS("http://www.w3.org/2000/svg","g")),zv.setAttribute("transform",e),!(e=zv.transform.baseVal.consolidate()))?Bw:(e=e.matrix,GF(e.a,e.b,e.c,e.d,e.e,e.f))}function WF(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,d,y,g,m,E){if(c!==y||d!==g){var I=m.push("translate(",null,t,null,r);E.push({i:I-4,x:aa(c,y)},{i:I-2,x:aa(d,g)})}else(y||g)&&m.push("translate("+y+t+g+r)}function o(c,d,y,g){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),g.push({i:y.push(i(y)+"rotate(",null,n)-2,x:aa(c,d)})):d&&y.push(i(y)+"rotate("+d+n)}function l(c,d,y,g){c!==d?g.push({i:y.push(i(y)+"skewX(",null,n)-2,x:aa(c,d)}):d&&y.push(i(y)+"skewX("+d+n)}function s(c,d,y,g,m,E){if(c!==y||d!==g){var I=m.push(i(m)+"scale(",null,",",null,")");E.push({i:I-4,x:aa(c,y)},{i:I-2,x:aa(d,g)})}else(y!==1||g!==1)&&m.push(i(m)+"scale("+y+","+g+")")}return function(c,d){var y=[],g=[];return c=e(c),d=e(d),a(c.translateX,c.translateY,d.translateX,d.translateY,y,g),o(c.rotate,d.rotate,y,g),l(c.skewX,d.skewX,y,g),s(c.scaleX,c.scaleY,d.scaleX,d.scaleY,y,g),c=d=null,function(m){for(var E=-1,I=g.length,b;++E<I;)y[(b=g[E]).i]=b.x(m);return y.join("")}}}var $V=WF(DV,"px, ","px)","deg)"),zV=WF(BV,", ",")",")"),gh=Math.SQRT2,Nx=2,_C=4,UV=1e-12;function SC(e){return((e=Math.exp(e))+1/e)/2}function jV(e){return((e=Math.exp(e))-1/e)/2}function GV(e){return((e=Math.exp(2*e))-1)/(e+1)}function WV(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],l=t[2],s=a-r,c=o-n,d=s*s+c*c,y,g;if(d<UV)g=Math.log(l/i)/gh,y=function(_){return[r+_*s,n+_*c,i*Math.exp(gh*_*g)]};else{var m=Math.sqrt(d),E=(l*l-i*i+_C*d)/(2*i*Nx*m),I=(l*l-i*i-_C*d)/(2*l*Nx*m),b=Math.log(Math.sqrt(E*E+1)-E),w=Math.log(Math.sqrt(I*I+1)-I);g=(w-b)/gh,y=function(_){var C=_*g,T=SC(b),P=i/(Nx*m)*(T*GV(gh*C+b)-jV(b));return[r+P*s,n+P*c,i*T/SC(gh*C+b)]}}return y.duration=g*1e3,y}function HF(e){return function(t,r){var n=e((t=Rw(t)).h,(r=Rw(r)).h),i=vn(t.s,r.s),a=vn(t.l,r.l),o=vn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const HV=HF(sg);var VV=HF(vn);function qV(e,t){var r=vn((e=Fw(e)).l,(t=Fw(t)).l),n=vn(e.a,t.a),i=vn(e.b,t.b),a=vn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function VF(e){return function(t,r){var n=e((t=Pw(t)).h,(r=Pw(r)).h),i=vn(t.c,r.c),a=vn(t.l,r.l),o=vn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const YV=VF(sg);var XV=VF(vn);function qF(e){return function t(r){r=+r;function n(i,a){var o=e((i=Nw(i)).h,(a=Nw(a)).h),l=vn(i.s,a.s),s=vn(i.l,a.l),c=vn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=c(d),i+""}}return n.gamma=t,n}(1)}const QV=qF(sg);var ZV=qF(vn);function KV(e,t){for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function JV(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const eq=Object.freeze(Object.defineProperty({__proto__:null,interpolate:X2,interpolateArray:IV,interpolateBasis:PF,interpolateBasisClosed:NF,interpolateDate:zF,interpolateDiscrete:PV,interpolateHue:NV,interpolateNumber:aa,interpolateNumberArray:Y2,interpolateObject:UF,interpolateRound:LV,interpolateString:jF,interpolateTransformCss:$V,interpolateTransformSvg:zV,interpolateZoom:WV,interpolateRgb:Lw,interpolateRgbBasis:kV,interpolateRgbBasisClosed:MV,interpolateHsl:HV,interpolateHslLong:VV,interpolateLab:qV,interpolateHcl:YV,interpolateHclLong:XV,interpolateCubehelix:QV,interpolateCubehelixLong:ZV,piecewise:KV,quantize:JV},Symbol.toStringTag,{value:"Module"})),Pte=yl(eq);var tq="Expected a function",YF="__lodash_hash_undefined__",XF=1/0,rq=9007199254740991,nq="[object Function]",iq="[object GeneratorFunction]",aq="[object Symbol]",oq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uq=/^\w*$/,lq=/^\./,sq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fq=/[\\^$.*+?()[\]{}|]/g,cq=/\\(\\)?/g,hq=/^\[object .+?Constructor\]$/,dq=/^(?:0|[1-9]\d*)$/,pq=typeof _r=="object"&&_r&&_r.Object===Object&&_r,vq=typeof self=="object"&&self&&self.Object===Object&&self,Q2=pq||vq||Function("return this")();function mq(e,t){return e==null?void 0:e[t]}function gq(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var yq=Array.prototype,xq=Function.prototype,QF=Object.prototype,Lx=Q2["__core-js_shared__"],EC=function(){var e=/[^.]+$/.exec(Lx&&Lx.keys&&Lx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ZF=xq.toString,fg=QF.hasOwnProperty,KF=QF.toString,bq=RegExp("^"+ZF.call(fg).replace(fq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),AC=Q2.Symbol,wq=yq.splice,_q=JF(Q2,"Map"),bd=JF(Object,"create"),TC=AC?AC.prototype:void 0,CC=TC?TC.toString:void 0;function pl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Sq(){this.__data__=bd?bd(null):{}}function Eq(e){return this.has(e)&&delete this.__data__[e]}function Aq(e){var t=this.__data__;if(bd){var r=t[e];return r===YF?void 0:r}return fg.call(t,e)?t[e]:void 0}function Tq(e){var t=this.__data__;return bd?t[e]!==void 0:fg.call(t,e)}function Cq(e,t){var r=this.__data__;return r[e]=bd&&t===void 0?YF:t,this}pl.prototype.clear=Sq;pl.prototype.delete=Eq;pl.prototype.get=Aq;pl.prototype.has=Tq;pl.prototype.set=Cq;function Rf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Oq(){this.__data__=[]}function kq(e){var t=this.__data__,r=cg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():wq.call(t,r,1),!0}function Mq(e){var t=this.__data__,r=cg(t,e);return r<0?void 0:t[r][1]}function Iq(e){return cg(this.__data__,e)>-1}function Rq(e,t){var r=this.__data__,n=cg(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Rf.prototype.clear=Oq;Rf.prototype.delete=kq;Rf.prototype.get=Mq;Rf.prototype.has=Iq;Rf.prototype.set=Rq;function Ml(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Fq(){this.__data__={hash:new pl,map:new(_q||Rf),string:new pl}}function Pq(e){return hg(this,e).delete(e)}function Nq(e){return hg(this,e).get(e)}function Lq(e){return hg(this,e).has(e)}function Dq(e,t){return hg(this,e).set(e,t),this}Ml.prototype.clear=Fq;Ml.prototype.delete=Pq;Ml.prototype.get=Nq;Ml.prototype.has=Lq;Ml.prototype.set=Dq;function Bq(e,t,r){var n=e[t];(!(fg.call(e,t)&&eP(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function cg(e,t){for(var r=e.length;r--;)if(eP(e[r][0],t))return r;return-1}function $q(e){if(!pm(e)||Vq(e))return!1;var t=Qq(e)||gq(e)?bq:hq;return t.test(Xq(e))}function zq(e,t,r,n){if(!pm(e))return e;t=Wq(t,e)?[t]:jq(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=Yq(t[i]),c=r;if(i!=o){var d=l[s];c=n?n(d,s,l):void 0,c===void 0&&(c=pm(d)?d:Gq(t[i+1])?[]:{})}Bq(l,s,c),l=l[s]}return e}function Uq(e){if(typeof e=="string")return e;if(K2(e))return CC?CC.call(e):"";var t=e+"";return t=="0"&&1/e==-XF?"-0":t}function jq(e){return tP(e)?e:qq(e)}function hg(e,t){var r=e.__data__;return Hq(t)?r[typeof t=="string"?"string":"hash"]:r.map}function JF(e,t){var r=mq(e,t);return $q(r)?r:void 0}function Gq(e,t){return t=t==null?rq:t,!!t&&(typeof e=="number"||dq.test(e))&&e>-1&&e%1==0&&e<t}function Wq(e,t){if(tP(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||K2(e)?!0:uq.test(e)||!oq.test(e)||t!=null&&e in Object(t)}function Hq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vq(e){return!!EC&&EC in e}var qq=Z2(function(e){e=Kq(e);var t=[];return lq.test(e)&&t.push(""),e.replace(sq,function(r,n,i,a){t.push(i?a.replace(cq,"$1"):n||r)}),t});function Yq(e){if(typeof e=="string"||K2(e))return e;var t=e+"";return t=="0"&&1/e==-XF?"-0":t}function Xq(e){if(e!=null){try{return ZF.call(e)}catch{}try{return e+""}catch{}}return""}function Z2(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(tq);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(Z2.Cache||Ml),r}Z2.Cache=Ml;function eP(e,t){return e===t||e!==e&&t!==t}var tP=Array.isArray;function Qq(e){var t=pm(e)?KF.call(e):"";return t==nq||t==iq}function pm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Zq(e){return!!e&&typeof e=="object"}function K2(e){return typeof e=="symbol"||Zq(e)&&KF.call(e)==aq}function Kq(e){return e==null?"":Uq(e)}function Jq(e,t,r){return e==null?e:zq(e,t,r)}var Nte=Jq,dg={exports:{}},Ld={};/** @license React v17.0.2
365
+ * react-jsx-runtime.production.min.js
366
+ *
367
+ * Copyright (c) Facebook, Inc. and its affiliates.
368
+ *
369
+ * This source code is licensed under the MIT license found in the
370
+ * LICENSE file in the root directory of this source tree.
371
+ */var eY=Kt.exports,rP=60103;Ld.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var OC=Symbol.for;rP=OC("react.element"),Ld.Fragment=OC("react.fragment")}var tY=eY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rY=Object.prototype.hasOwnProperty,nY={key:!0,ref:!0,__self:!0,__source:!0};function nP(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)rY.call(t,n)&&!nY.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:rP,type:e,key:a,ref:o,props:i,_owner:tY.current}}Ld.jsx=nP;Ld.jsxs=nP;(function(e){e.exports=Ld})(dg);const Lte=dg.exports.Fragment,ma=dg.exports.jsx,iY=dg.exports.jsxs;var aY=kl,iP=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:aY(e)},Il={},aP={exports:{}};(function(e){var t=Qm,r=N2,n=no,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(aP);var vm={exports:{}},Dx,kC;function oP(){if(kC)return Dx;kC=1;var e=qi,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return Dx=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(c){try{t(a,c,r(o,c))}catch(d){l=d}}),typeof i=="function"&&i(s).forEach(function(c){try{t(a,c,r(o,c))}catch(d){l=d}}),l!==void 0)throw l;return a},Dx}var MC=kl,uP=function(e,t){return t},Bx,IC,RC,FC;try{Object.defineProperty(uP,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}uP.length===1?(Bx={configurable:!0,writable:!1,enumerable:!1},IC=Object.defineProperty,vm.exports=function(e,t){return t=MC(t),e.length===t?e:(Bx.value=t,IC(e,"length",Bx))}):(FC=oP(),RC=function(){var e=[];return function(t){var r,n=0;if(e[t])return e[t];for(r=[];t--;)r.push("a"+(++n).toString(36));return new Function("fn","return function ("+r.join(", ")+") { return fn.apply(this, arguments); };")}}(),vm.exports=function(e,t){var r;if(t=MC(t),e.length===t)return e;r=RC(t)(e);try{FC(r,e)}catch{}return r});var $w={exports:{}};(function(e,t){var r=Mi.exports,n=ba,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},y,g,m,E,I,b,w;y=function(_,C){var T;return n(C),c.call(this,"__ee__")?T=this.__ee__:(T=d.value=o(null),l(this,"__ee__",d),d.value=null),T[_]?typeof T[_]=="object"?T[_].push(C):T[_]=[T[_],C]:T[_]=C,this},g=function(_,C){var T,P;return n(C),P=this,y.call(this,_,T=function(){m.call(P,_,T),i.call(C,this,arguments)}),T.__eeOnceListener__=C,this},m=function(_,C){var T,P,D,Y;if(n(C),!c.call(this,"__ee__"))return this;if(T=this.__ee__,!T[_])return this;if(P=T[_],typeof P=="object")for(Y=0;D=P[Y];++Y)(D===C||D.__eeOnceListener__===C)&&(P.length===2?T[_]=P[Y?0:1]:P.splice(Y,1));else(P===C||P.__eeOnceListener__===C)&&delete T[_];return this},E=function(_){var C,T,P,D,Y;if(!!c.call(this,"__ee__")&&(D=this.__ee__[_],!!D))if(typeof D=="object"){for(T=arguments.length,Y=new Array(T-1),C=1;C<T;++C)Y[C-1]=arguments[C];for(D=D.slice(),C=0;P=D[C];++C)i.call(P,this,Y)}else switch(arguments.length){case 1:a.call(D,this);break;case 2:a.call(D,this,arguments[1]);break;case 3:a.call(D,this,arguments[1],arguments[2]);break;default:for(T=arguments.length,Y=new Array(T-1),C=1;C<T;++C)Y[C-1]=arguments[C];i.call(D,this,Y)}},I={on:y,once:g,off:m,emit:E},b={on:r(y),once:r(g),off:r(m),emit:r(E)},w=s({},b),e.exports=t=function(_){return _==null?o(w):s(Object(_),b)},t.methods=I})($w,$w.exports);var oY=eg(),uY=Array.isArray,lY=function(e){return uY(e)?e:oY(e)},sY=lY,fY=no,cY=ba,hY=Array.prototype.slice,lP;lP=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(hY.call(e,this.length))};var dY=function(e){return e=sY(e),e.forEach(function(t){fY(t)&&cY(t)}),lP.bind(e)},Uv=ba,pY=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Uv(e.get)},e.set!==void 0?(t.set=Uv(e.set),e.delete&&(t.delete=Uv(e.delete)),e.clear&&(t.clear=Uv(e.clear)),t):(t.set=t.get,t))},jv=aP.exports,Gv=vm.exports,yh=Mi.exports,sP=$w.exports.methods,vY=dY,mY=pY,$x=Function.prototype.apply,zx=Function.prototype.call,PC=Object.create,gY=Object.defineProperties,yY=sP.on,xY=sP.emit,bY=function(e,t,r){var n=PC(null),i,a,o,l,s,c,d,y,g,m,E,I,b,w,_;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(m=mY(r.normalizer),o=m.get,l=m.set,s=m.delete,c=m.clear),r.resolvers!=null&&(_=vY(r.resolvers)),o?w=Gv(function(C){var T,P,D=arguments;if(_&&(D=_(D)),T=o(D),T!==null&&hasOwnProperty.call(n,T))return E&&i.emit("get",T,D,this),n[T];if(D.length===1?P=zx.call(e,this,D[0]):P=$x.call(e,this,D),T===null){if(T=o(D),T!==null)throw jv("Circular invocation","CIRCULAR_INVOCATION");T=l(D)}else if(hasOwnProperty.call(n,T))throw jv("Circular invocation","CIRCULAR_INVOCATION");return n[T]=P,I&&i.emit("set",T,null,P),P},a):t===0?w=function(){var C;if(hasOwnProperty.call(n,"data"))return E&&i.emit("get","data",arguments,this),n.data;if(arguments.length?C=$x.call(e,this,arguments):C=zx.call(e,this),hasOwnProperty.call(n,"data"))throw jv("Circular invocation","CIRCULAR_INVOCATION");return n.data=C,I&&i.emit("set","data",null,C),C}:w=function(C){var T,P=arguments,D;if(_&&(P=_(arguments)),D=String(P[0]),hasOwnProperty.call(n,D))return E&&i.emit("get",D,P,this),n[D];if(P.length===1?T=zx.call(e,this,P[0]):T=$x.call(e,this,P),hasOwnProperty.call(n,D))throw jv("Circular invocation","CIRCULAR_INVOCATION");return n[D]=T,I&&i.emit("set",D,null,T),T},i={original:e,memoized:w,profileName:r.profileName,get:function(C){return _&&(C=_(C)),o?o(C):String(C[0])},has:function(C){return hasOwnProperty.call(n,C)},delete:function(C){var T;!hasOwnProperty.call(n,C)||(s&&s(C),T=n[C],delete n[C],b&&i.emit("delete",C,T))},clear:function(){var C=n;c&&c(),n=PC(null),i.emit("clear",C)},on:function(C,T){return C==="get"?E=!0:C==="set"?I=!0:C==="delete"&&(b=!0),yY.call(this,C,T)},emit:xY,updateEnv:function(){e=i.original}},o?d=Gv(function(C){var T,P=arguments;_&&(P=_(P)),T=o(P),T!==null&&i.delete(T)},a):t===0?d=function(){return i.delete("data")}:d=function(C){return _&&(C=_(arguments)[0]),i.delete(C)},y=Gv(function(){var C,T=arguments;return t===0?n.data:(_&&(T=_(T)),o?C=o(T):C=String(T[0]),n[C])}),g=Gv(function(){var C,T=arguments;return t===0?i.has("data"):(_&&(T=_(T)),o?C=o(T):C=String(T[0]),C===null?!1:i.has(C))}),gY(w,{__memoized__:yh(!0),delete:yh(d),clear:yh(i.clear),_get:yh(y),_has:yh(g)}),i},wY=ba,_Y=tg,NC=Il,SY=bY,EY=iP,AY=function e(t){var r,n,i;if(wY(t),r=Object(arguments[1]),r.async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=EY(r.length,t.length,r.async&&NC.async),i=SY(t,n,r),_Y(NC,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},Ux,LC;function TY(){return LC||(LC=1,Ux=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),Ux}var jx,DC;function CY(){return DC||(DC=1,jx=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),jx}var Gx,BC;function OY(){return BC||(BC=1,Gx=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),Gx}var Wx,$C;function kY(){return $C||($C=1,Wx=function(e){return e!==e}),Wx}var Hx,zC;function MY(){return zC||(zC=1,Hx=OY()()?Number.isNaN:kY()),Hx}var Vx,UC;function J2(){if(UC)return Vx;UC=1;var e=MY(),t=kl,r=qi,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return Vx=function(l){var s,c,d,y;if(!e(l))return n.apply(this,arguments);for(c=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),s=d;s<c;++s)if(i.call(this,s)&&(y=this[s],e(y)))return s;return-1},Vx}var qx,jC;function IY(){if(jC)return qx;jC=1;var e=J2(),t=Object.create;return qx=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,c=a.length;if(c===0)return l[c]||null;if(l=l[c]){for(;o<c-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,c=a.length;if(c===0)l[c]=++r;else{for(l[c]||(l[c]=[[],[]]),l=l[c];o<c-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,c=i[a],d=c.length,y=[];if(d===0)delete l[d];else if(l=l[d]){for(;o<d-1;){if(s=e.call(l[0],c[o]),s===-1)return;y.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],c[o]),s===-1)return;for(a=l[1][s],l[0].splice(s,1),l[1].splice(s,1);!l[0].length&&y.length;)s=y.pop(),l=y.pop(),l[0].splice(s,1),l[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},qx}var Yx,GC;function RY(){if(GC)return Yx;GC=1;var e=J2();return Yx=function(){var t=0,r=[],n=[];return{get:function(i){var a=e.call(r,i[0]);return a===-1?null:n[a]},set:function(i){return r.push(i[0]),n.push(++t),t},delete:function(i){var a=e.call(n,i);a!==-1&&(r.splice(a,1),n.splice(a,1))},clear:function(){r=[],n=[]}}},Yx}var Xx,WC;function FY(){if(WC)return Xx;WC=1;var e=J2(),t=Object.create;return Xx=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,c;l<r-1;){if(c=e.call(s[0],o[l]),c===-1)return null;s=s[1][c],++l}return c=e.call(s[0],o[l]),c===-1?null:s[1][c]||null},set:function(o){for(var l=0,s=i,c;l<r-1;)c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][c],++l;return c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1),s[1][c]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,c,d=[],y=a[o];l<r-1;){if(c=e.call(s[0],y[l]),c===-1)return;d.push(s,c),s=s[1][c],++l}if(c=e.call(s[0],y[l]),c!==-1){for(o=s[1][c],s[0].splice(c,1),s[1].splice(c,1);!s[0].length&&d.length;)c=d.pop(),s=d.pop(),s[0].splice(c,1),s[1].splice(c,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},Xx}var HC={},Qx,VC;function eS(){if(VC)return Qx;VC=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return Qx=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(r){queueMicrotask(e(r))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(r){setImmediate(e(r))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(r){setTimeout(e(r),0)}:null}(),Qx}var qC;function PY(){if(qC)return HC;qC=1;var e=eg(),t=$2(),r=oP(),n=vm.exports,i=eS(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return Il.async=function(s,c){var d=l(null),y=l(null),g=c.memoized,m=c.original,E,I,b;c.memoized=n(function(w){var _=arguments,C=_[_.length-1];return typeof C=="function"&&(E=C,_=a.call(_,0,-1)),g.apply(I=this,b=_)},g);try{r(c.memoized,g)}catch{}c.on("get",function(w){var _,C,T;if(!!E){if(d[w]){typeof d[w]=="function"?d[w]=[d[w],E]:d[w].push(E),E=null;return}_=E,C=I,T=b,E=I=b=null,i(function(){var P;hasOwnProperty.call(y,w)?(P=y[w],c.emit("getasync",w,T,C),o.call(_,P.context,P.args)):(E=_,I=C,b=T,g.apply(C,T))})}}),c.original=function(){var w,_,C,T;return E?(w=e(arguments),_=function P(D){var Y,j,re=P.id;if(re==null){i(o.bind(P,this,arguments));return}if(delete P.id,Y=d[re],delete d[re],!!Y)return j=e(arguments),c.has(re)&&(D?c.delete(re):(y[re]={context:this,args:j},c.emit("setasync",re,typeof Y=="function"?1:Y.length))),typeof Y=="function"?T=o.call(Y,this,j):Y.forEach(function(Ee){T=o.call(Ee,this,j)},this),T},C=E,E=I=b=null,w.push(_),T=o.call(m,this,w),_.cb=C,E=_,T):o.call(m,this,arguments)},c.on("set",function(w){if(!E){c.delete(w);return}d[w]?typeof d[w]=="function"?d[w]=[d[w],E.cb]:d[w].push(E.cb):d[w]=E.cb,delete E.cb,E.id=w,E=null}),c.on("delete",function(w){var _;hasOwnProperty.call(d,w)||!y[w]||(_=y[w],delete y[w],c.emit("deleteasync",w,a.call(_.args,1)))}),c.on("clear",function(){var w=y;y=l(null),c.emit("clearasync",t(w,function(_){return a.call(_.args,1)}))})},HC}var YC={},Zx,XC;function NY(){if(XC)return Zx;XC=1;var e=Array.prototype.forEach,t=Object.create;return Zx=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},Zx}var Kx,QC;function fP(){return QC||(QC=1,Kx=function(e){return typeof e=="function"}),Kx}var Jx,ZC;function LY(){if(ZC)return Jx;ZC=1;var e=fP();return Jx=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},Jx}var eb,KC;function DY(){if(KC)return eb;KC=1;var e=qi,t=LY();return eb=function(r){return t(e(r))},eb}var tb,JC;function BY(){if(JC)return tb;JC=1;var e=fP();return tb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},tb}var rb,e5;function $Y(){if(e5)return rb;e5=1;var e=BY(),t=/[\n\r\u2028\u2029]/g;return rb=function(r){var n=e(r);return n.length>100&&(n=n.slice(0,99)+"\u2026"),n=n.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),n},rb}var Wv={exports:{}},t5;function cP(){if(t5)return Wv.exports;t5=1,Wv.exports=e,Wv.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Wv.exports}var r5;function zY(){if(r5)return YC;r5=1;var e=$2(),t=NY(),r=DY(),n=$Y(),i=cP(),a=eS(),o=Object.create,l=t("then","then:finally","done","done:finally");return Il.promise=function(s,c){var d=o(null),y=o(null),g=o(null);if(s===!0)s=null;else if(s=r(s),!l[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");c.on("set",function(m,E,I){var b=!1;if(!i(I)){y[m]=I,c.emit("setasync",m,1);return}d[m]=1,g[m]=I;var w=function(P){var D=d[m];if(b)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
372
+ Consider to rely on 'then' or 'done' mode instead.`);!D||(delete d[m],y[m]=P,c.emit("setasync",m,D))},_=function(){b=!0,d[m]&&(delete d[m],delete g[m],c.delete(m))},C=s;if(C||(C="then"),C==="then"){var T=function(){a(_)};I=I.then(function(P){a(w.bind(this,P))},T),typeof I.finally=="function"&&I.finally(T)}else if(C==="done"){if(typeof I.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");I.done(w,_)}else if(C==="done:finally"){if(typeof I.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof I.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");I.done(w),I.finally(_)}}),c.on("get",function(m,E,I){var b;if(d[m]){++d[m];return}b=g[m];var w=function(){c.emit("getasync",m,E,I)};i(b)?typeof b.done=="function"?b.done(w):b.then(function(){a(w)}):w()}),c.on("delete",function(m){if(delete g[m],d[m]){delete d[m];return}if(!!hasOwnProperty.call(y,m)){var E=y[m];delete y[m],c.emit("deleteasync",m,[E])}}),c.on("clear",function(){var m=y;y=o(null),d=o(null),g=o(null),c.emit("clearasync",e(m,function(E){return[E]}))})},YC}var n5={},i5;function UY(){if(i5)return n5;i5=1;var e=ba,t=tg,r=Il,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,c){n.call(i,null,c)}),a.on("clearasync",function(s){t(s,function(c,d){l(d,c)})});return}a.on("delete",l=function(s,c){i(c)}),a.on("clear",function(s){t(s,function(c,d){l(d,c)})})},n5}var a5={},nb,o5;function jY(){return o5||(o5=1,nb=2147483647),nb}var ib,u5;function GY(){if(u5)return ib;u5=1;var e=kl,t=jY();return ib=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},ib}var l5;function WY(){if(l5)return a5;l5=1;var e=eg(),t=tg,r=eS(),n=cP(),i=GY(),a=Il,o=Function.prototype,l=Math.max,s=Math.min,c=Object.create;return a.maxAge=function(d,y,g){var m,E,I,b;d=i(d),d&&(m=c(null),E=g.async&&a.async||g.promise&&a.promise?"async":"",y.on("set"+E,function(w){m[w]=setTimeout(function(){y.delete(w)},d),typeof m[w].unref=="function"&&m[w].unref(),b&&(b[w]&&b[w]!=="nextTick"&&clearTimeout(b[w]),b[w]=setTimeout(function(){delete b[w]},I),typeof b[w].unref=="function"&&b[w].unref())}),y.on("delete"+E,function(w){clearTimeout(m[w]),delete m[w],b&&(b[w]!=="nextTick"&&clearTimeout(b[w]),delete b[w])}),g.preFetch&&(g.preFetch===!0||isNaN(g.preFetch)?I=.333:I=l(s(Number(g.preFetch),1),0),I&&(b={},I=(1-I)*d,y.on("get"+E,function(w,_,C){b[w]||(b[w]="nextTick",r(function(){var T;b[w]==="nextTick"&&(delete b[w],y.delete(w),g.async&&(_=e(_),_.push(o)),T=y.memoized.apply(C,_),g.promise&&n(T)&&(typeof T.done=="function"?T.done(o,o):T.then(o,o)))}))}))),y.on("clear"+E,function(){t(m,function(w){clearTimeout(w)}),m={},b&&(t(b,function(w){w!=="nextTick"&&clearTimeout(w)}),b={})}))},a5}var s5={},ab,f5;function HY(){if(f5)return ab;f5=1;var e=kl,t=Object.create,r=Object.prototype.hasOwnProperty;return ab=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,c;return n=e(n),{hit:function(d){var y=l[d],g=++s;if(o[g]=d,l[d]=g,!y)return++i,i<=n?void 0:(d=o[a],c(d),d);if(delete o[y],a===y)for(;!r.call(o,++a););},delete:c=function(d){var y=l[d];if(!!y&&(delete o[y],delete l[d],--i,a===y)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},ab}var c5;function VY(){if(c5)return s5;c5=1;var e=kl,t=HY(),r=Il;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(c){c=l.hit(c),c!==void 0&&i.delete(c)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},s5}var h5={},d5;function qY(){if(d5)return h5;d5=1;var e=Mi.exports,t=Il,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(c,d){l[c]=d||1}),a.on("get"+s,function(c){++l[c]}),a.on("delete"+s,function(c){delete l[c]}),a.on("clear"+s,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var c=a.get(arguments);return c===null||!l[c]?null:--l[c]?!1:(a.delete(c),!0)}),getRefCount:e(function(){var c=a.get(arguments);return c===null||!l[c]?0:l[c]})})},h5}var YY=B2,XY=iP,QY=AY,Dte=function(e){var t=YY(arguments[1]),r;return t.normalizer||(r=t.length=XY(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=TY():r>1&&(t.normalizer=CY()(r)):r===!1?t.normalizer=IY()():r===1?t.normalizer=RY()():t.normalizer=FY()(r))),t.async&&PY(),t.promise&&zY(),t.dispose&&UY(),t.maxAge&&WY(),t.max&&VY(),t.refCounter&&qY(),QY(e,t)},ZY="Expected a function",p5=0/0,KY="[object Symbol]",JY=/^\s+|\s+$/g,eX=/^[-+]0x[0-9a-f]+$/i,tX=/^0b[01]+$/i,rX=/^0o[0-7]+$/i,nX=parseInt,iX=typeof _r=="object"&&_r&&_r.Object===Object&&_r,aX=typeof self=="object"&&self&&self.Object===Object&&self,oX=iX||aX||Function("return this")(),uX=Object.prototype,lX=uX.toString,sX=Math.max,fX=Math.min,ob=function(){return oX.Date.now()};function cX(e,t,r){var n,i,a,o,l,s,c=0,d=!1,y=!1,g=!0;if(typeof e!="function")throw new TypeError(ZY);t=v5(t)||0,zw(r)&&(d=!!r.leading,y="maxWait"in r,a=y?sX(v5(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function m(D){var Y=n,j=i;return n=i=void 0,c=D,o=e.apply(j,Y),o}function E(D){return c=D,l=setTimeout(w,t),d?m(D):o}function I(D){var Y=D-s,j=D-c,re=t-Y;return y?fX(re,a-j):re}function b(D){var Y=D-s,j=D-c;return s===void 0||Y>=t||Y<0||y&&j>=a}function w(){var D=ob();if(b(D))return _(D);l=setTimeout(w,I(D))}function _(D){return l=void 0,g&&n?m(D):(n=i=void 0,o)}function C(){l!==void 0&&clearTimeout(l),c=0,n=s=i=l=void 0}function T(){return l===void 0?o:_(ob())}function P(){var D=ob(),Y=b(D);if(n=arguments,i=this,s=D,Y){if(l===void 0)return E(s);if(y)return l=setTimeout(w,t),m(s)}return l===void 0&&(l=setTimeout(w,t)),o}return P.cancel=C,P.flush=T,P}function zw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function hX(e){return!!e&&typeof e=="object"}function dX(e){return typeof e=="symbol"||hX(e)&&lX.call(e)==KY}function v5(e){if(typeof e=="number")return e;if(dX(e))return p5;if(zw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(JY,"");var r=tX.test(e);return r||rX.test(e)?nX(e.slice(2),r?2:8):eX.test(e)?p5:+e}var Bte=cX,hP={exports:{}};/*!
373
+ Copyright (c) 2018 Jed Watson.
374
+ Licensed under the MIT License (MIT), see
375
+ http://jedwatson.github.io/classnames
376
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(!!a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(hP);const $te=hP.exports;function ga(){return ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(this,arguments)}function yf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Uw(e,t){return Uw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uw(e,t)}function Dd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uw(e,t)}function pX(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function vX(e,t){e.classList?e.classList.add(t):pX(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function m5(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function mX(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=m5(e.className,t):e.setAttribute("class",m5(e.className&&e.className.baseVal||"",t))}const g5={disabled:!1},dP=Tn.createContext(null);var pP=function(t){return t.scrollTop},Ch="unmounted",qu="exited",Yu="entering",Rs="entered",jw="exiting",io=function(e){Dd(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=qu,a.appearStatus=Yu):s=Rs:n.unmountOnExit||n.mountOnEnter?s=Ch:s=qu,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Ch?{status:qu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Yu&&o!==Rs&&(a=Yu):(o===Yu||o===Rs)&&(a=jw)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Yu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this);o&&pP(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qu&&this.setState({status:Ch})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[Eh.findDOMNode(this),l],c=s[0],d=s[1],y=this.getTimeouts(),g=l?y.appear:y.enter;if(!i&&!o||g5.disabled){this.safeSetState({status:Rs},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Yu},function(){a.props.onEntering(c,d),a.onTransitionEnd(g,function(){a.safeSetState({status:Rs},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Eh.findDOMNode(this);if(!a||g5.disabled){this.safeSetState({status:qu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:jw},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:qu},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=s[0],d=s[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Ch)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=yf(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma(dP.Provider,{value:null,children:typeof o=="function"?o(i,l):Tn.cloneElement(Tn.Children.only(o),l)})},t}(Tn.Component);io.contextType=dP;io.propTypes={};function As(){}io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:As,onEntering:As,onEntered:As,onExit:As,onExiting:As,onExited:As};io.UNMOUNTED=Ch;io.EXITED=qu;io.ENTERING=Yu;io.ENTERED=Rs;io.EXITING=jw;const gX=io;var yX=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return vX(t,n)})},ub=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return mX(t,n)})},tS=function(e){Dd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var c=n.resolveArguments(l,s),d=c[0],y=c[1];n.removeClasses(d,"exit"),n.addClass(d,y?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var c=n.resolveArguments(l,s),d=c[0],y=c[1],g=y?"appear":"enter";n.addClass(d,g,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var c=n.resolveArguments(l,s),d=c[0],y=c[1],g=y?"appear":"enter";n.removeClasses(d,g),n.addClass(d,g,"done"),n.props.onEntered&&n.props.onEntered(l,s)},n.onExit=function(l){var s=n.resolveArguments(l),c=s[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var s=n.resolveArguments(l),c=s[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var s=n.resolveArguments(l),c=s[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,s){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,s]},n.getClassNames=function(l){var s=n.props.classNames,c=typeof s=="string",d=c&&s?s+"-":"",y=c?""+d+l:s[l],g=c?y+"-active":s[l+"Active"],m=c?y+"-done":s[l+"Done"];return{baseClassName:y,activeClassName:g,doneClassName:m}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),c=s.doneClassName;a==="appear"&&o==="done"&&c&&(l+=" "+c),o==="active"&&i&&pP(i),l&&(this.appliedClasses[a][o]=l,yX(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,c=o.done;this.appliedClasses[a]={},l&&ub(i,l),s&&ub(i,s),c&&ub(i,c)},r.render=function(){var i=this.props;i.classNames;var a=yf(i,["classNames"]);return ma(gX,{...a,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},t}(Tn.Component);tS.defaultProps={classNames:""};tS.propTypes={};const zte=tS;function Hv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
377
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
378
+ * @version 1.16.1
379
+ * @license
380
+ * Copyright (c) 2016 Federico Zivolo and contributors
381
+ *
382
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
383
+ * of this software and associated documentation files (the "Software"), to deal
384
+ * in the Software without restriction, including without limitation the rights
385
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
386
+ * copies of the Software, and to permit persons to whom the Software is
387
+ * furnished to do so, subject to the following conditions:
388
+ *
389
+ * The above copyright notice and this permission notice shall be included in all
390
+ * copies or substantial portions of the Software.
391
+ *
392
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
393
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
394
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
395
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
396
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
397
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
398
+ * SOFTWARE.
399
+ */var Bd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",xX=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Bd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function bX(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function wX(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xX))}}var _X=Bd&&window.Promise,SX=_X?bX:wX;function vP(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Rl(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function rS(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function $d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Rl(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:$d(rS(e))}function mP(e){return e&&e.referenceNode?e.referenceNode:e}var y5=Bd&&!!(window.MSInputMethodContext&&document.documentMode),x5=Bd&&/MSIE 10/.test(navigator.userAgent);function Ff(e){return e===11?y5:e===10?x5:y5||x5}function xf(e){if(!e)return document.documentElement;for(var t=Ff(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Rl(r,"position")==="static"?xf(r):r}function EX(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||xf(e.firstElementChild)===e}function Gw(e){return e.parentNode!==null?Gw(e.parentNode):e}function mm(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||n.contains(i))return EX(o)?o:xf(o);var l=Gw(e);return l.host?mm(l.host,t):mm(e,Gw(t).host)}function bf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[r]}return e[r]}function AX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=bf(t,"top"),i=bf(t,"left"),a=r?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function b5(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function w5(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Ff(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function gP(e){var t=e.body,r=e.documentElement,n=Ff(10)&&getComputedStyle(r);return{height:w5("Height",t,r,n),width:w5("Width",t,r,n)}}var TX=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},CX=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),wf=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function ou(e){return Ei({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ww(e){var t={};try{if(Ff(10)){t=e.getBoundingClientRect();var r=bf(e,"top"),n=bf(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?gP(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,l=a.height||e.clientHeight||i.height,s=e.offsetWidth-o,c=e.offsetHeight-l;if(s||c){var d=Rl(e);s-=b5(d,"x"),c-=b5(d,"y"),i.width-=s,i.height-=c}return ou(i)}function nS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Ff(10),i=t.nodeName==="HTML",a=Ww(e),o=Ww(t),l=$d(e),s=Rl(t),c=parseFloat(s.borderTopWidth),d=parseFloat(s.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var y=ou({top:a.top-o.top-c,left:a.left-o.left-d,width:a.width,height:a.height});if(y.marginTop=0,y.marginLeft=0,!n&&i){var g=parseFloat(s.marginTop),m=parseFloat(s.marginLeft);y.top-=c-g,y.bottom-=c-g,y.left-=d-m,y.right-=d-m,y.marginTop=g,y.marginLeft=m}return(n&&!r?t.contains(l):t===l&&l.nodeName!=="BODY")&&(y=AX(y,t)),y}function OX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=nS(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:bf(r),l=t?0:bf(r,"left"),s={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return ou(s)}function yP(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Rl(e,"position")==="fixed")return!0;var r=rS(e);return r?yP(r):!1}function xP(e){if(!e||!e.parentElement||Ff())return document.documentElement;for(var t=e.parentElement;t&&Rl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function iS(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?xP(e):mm(e,mP(t));if(n==="viewport")a=OX(o,i);else{var l=void 0;n==="scrollParent"?(l=$d(rS(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var s=nS(l,o,i);if(l.nodeName==="HTML"&&!yP(o)){var c=gP(e.ownerDocument),d=c.height,y=c.width;a.top+=s.top-s.marginTop,a.bottom=d+s.top,a.left+=s.left-s.marginLeft,a.right=y+s.left}else a=s}r=r||0;var g=typeof r=="number";return a.left+=g?r:r.left||0,a.top+=g?r:r.top||0,a.right-=g?r:r.right||0,a.bottom-=g?r:r.bottom||0,a}function kX(e){var t=e.width,r=e.height;return t*r}function bP(e,t,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=iS(r,n,a,i),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(l).map(function(g){return Ei({key:g},l[g],{area:kX(l[g])})}).sort(function(g,m){return m.area-g.area}),c=s.filter(function(g){var m=g.width,E=g.height;return m>=r.clientWidth&&E>=r.clientHeight}),d=c.length>0?c[0].key:s[0].key,y=e.split("-")[1];return d+(y?"-"+y:"")}function wP(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?xP(t):mm(t,mP(r));return nS(r,i,n)}function _P(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+n};return a}function gm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function SP(e,t,r){r=r.split("-")[0];var n=_P(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",l=a?"left":"top",s=a?"height":"width",c=a?"width":"height";return i[o]=t[o]+t[s]/2-n[s]/2,r===l?i[l]=t[l]-n[c]:i[l]=t[gm(l)],i}function zd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function MX(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=zd(e,function(i){return i[t]===r});return e.indexOf(n)}function EP(e,t,r){var n=r===void 0?e:e.slice(0,MX(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&vP(a)&&(t.offsets.popper=ou(t.offsets.popper),t.offsets.reference=ou(t.offsets.reference),t=a(t,i))}),t}function IX(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=wP(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=bP(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=SP(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=EP(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function AP(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function aS(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],a=i?""+i+r:e;if(typeof document.body.style[a]<"u")return a}return null}function RX(){return this.state.isDestroyed=!0,AP(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[aS("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function TP(e){var t=e.ownerDocument;return t?t.defaultView:window}function CP(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||CP($d(a.parentNode),t,r,n),n.push(a)}function FX(e,t,r,n){r.updateBound=n,TP(e).addEventListener("resize",r.updateBound,{passive:!0});var i=$d(e);return CP(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function PX(){this.state.eventsEnabled||(this.state=FX(this.reference,this.options,this.state,this.scheduleUpdate))}function NX(e,t){return TP(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function LX(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=NX(this.reference,this.state))}function oS(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Hw(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&oS(t[r])&&(n="px"),e.style[r]=t[r]+n})}function DX(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function BX(e){return Hw(e.instance.popper,e.styles),DX(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Hw(e.arrowElement,e.arrowStyles),e}function $X(e,t,r,n,i){var a=wP(i,t,e,r.positionFixed),o=bP(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),Hw(t,{position:r.positionFixed?"fixed":"absolute"}),r}function zX(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,l=function(w){return w},s=a(i.width),c=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,y=e.placement.indexOf("-")!==-1,g=s%2===c%2,m=s%2===1&&c%2===1,E=t?d||y||g?a:o:l,I=t?a:l;return{left:E(m&&!y&&t?n.left-1:n.left),top:I(n.top),bottom:I(n.bottom),right:E(n.right)}}var UX=Bd&&/Firefox/i.test(navigator.userAgent);function jX(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=zd(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,l=xf(e.instance.popper),s=Ww(l),c={position:i.position},d=zX(e,window.devicePixelRatio<2||!UX),y=r==="bottom"?"top":"bottom",g=n==="right"?"left":"right",m=aS("transform"),E=void 0,I=void 0;if(y==="bottom"?l.nodeName==="HTML"?I=-l.clientHeight+d.bottom:I=-s.height+d.bottom:I=d.top,g==="right"?l.nodeName==="HTML"?E=-l.clientWidth+d.right:E=-s.width+d.right:E=d.left,o&&m)c[m]="translate3d("+E+"px, "+I+"px, 0)",c[y]=0,c[g]=0,c.willChange="transform";else{var b=y==="bottom"?-1:1,w=g==="right"?-1:1;c[y]=I*b,c[g]=E*w,c.willChange=y+", "+g}var _={"x-placement":e.placement};return e.attributes=Ei({},_,e.attributes),e.styles=Ei({},c,e.styles),e.arrowStyles=Ei({},e.offsets.arrow,e.arrowStyles),e}function OP(e,t,r){var n=zd(e,function(l){var s=l.name;return s===t}),i=!!n&&e.some(function(l){return l.name===r&&l.enabled&&l.order<n.order});if(!i){var a="`"+t+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function GX(e,t){var r;if(!OP(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,s=["left","right"].indexOf(i)!==-1,c=s?"height":"width",d=s?"Top":"Left",y=d.toLowerCase(),g=s?"left":"top",m=s?"bottom":"right",E=_P(n)[c];l[m]-E<o[y]&&(e.offsets.popper[y]-=o[y]-(l[m]-E)),l[y]+E>o[m]&&(e.offsets.popper[y]+=l[y]+E-o[m]),e.offsets.popper=ou(e.offsets.popper);var I=l[y]+l[c]/2-E/2,b=Rl(e.instance.popper),w=parseFloat(b["margin"+d]),_=parseFloat(b["border"+d+"Width"]),C=I-e.offsets.popper[y]-w-_;return C=Math.max(Math.min(o[c]-E,C),0),e.arrowElement=n,e.offsets.arrow=(r={},wf(r,y,Math.round(C)),wf(r,g,""),r),e}function WX(e){return e==="end"?"start":e==="start"?"end":e}var kP=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],lb=kP.slice(3);function _5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=lb.indexOf(e),n=lb.slice(r+1).concat(lb.slice(0,r));return t?n.reverse():n}var sb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function HX(e,t){if(AP(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=iS(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=gm(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case sb.FLIP:o=[n,i];break;case sb.CLOCKWISE:o=_5(n);break;case sb.COUNTERCLOCKWISE:o=_5(n,!0);break;default:o=t.behavior}return o.forEach(function(l,s){if(n!==l||o.length===s+1)return e;n=e.placement.split("-")[0],i=gm(n);var c=e.offsets.popper,d=e.offsets.reference,y=Math.floor,g=n==="left"&&y(c.right)>y(d.left)||n==="right"&&y(c.left)<y(d.right)||n==="top"&&y(c.bottom)>y(d.top)||n==="bottom"&&y(c.top)<y(d.bottom),m=y(c.left)<y(r.left),E=y(c.right)>y(r.right),I=y(c.top)<y(r.top),b=y(c.bottom)>y(r.bottom),w=n==="left"&&m||n==="right"&&E||n==="top"&&I||n==="bottom"&&b,_=["top","bottom"].indexOf(n)!==-1,C=!!t.flipVariations&&(_&&a==="start"&&m||_&&a==="end"&&E||!_&&a==="start"&&I||!_&&a==="end"&&b),T=!!t.flipVariationsByContent&&(_&&a==="start"&&E||_&&a==="end"&&m||!_&&a==="start"&&b||!_&&a==="end"&&I),P=C||T;(g||w||P)&&(e.flipped=!0,(g||w)&&(n=o[s+1]),P&&(a=WX(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Ei({},e.offsets.popper,SP(e.instance.popper,e.offsets.reference,e.placement)),e=EP(e.instance.modifiers,e,"flip"))}),e}function VX(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,l=o?"right":"bottom",s=o?"left":"top",c=o?"width":"height";return r[l]<a(n[s])&&(e.offsets.popper[s]=a(n[s])-r[c]),r[s]>a(n[l])&&(e.offsets.popper[s]=a(n[l])),e}function qX(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var l=void 0;switch(o){case"%p":l=r;break;case"%":case"%r":default:l=n}var s=ou(l);return s[t]/100*a}else if(o==="vh"||o==="vw"){var c=void 0;return o==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}else return a}function YX(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),l=o.indexOf(zd(o,function(d){return d.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,c=l!==-1?[o.slice(0,l).concat([o[l].split(s)[0]]),[o[l].split(s)[1]].concat(o.slice(l+1))]:[o];return c=c.map(function(d,y){var g=(y===1?!a:a)?"height":"width",m=!1;return d.reduce(function(E,I){return E[E.length-1]===""&&["+","-"].indexOf(I)!==-1?(E[E.length-1]=I,m=!0,E):m?(E[E.length-1]+=I,m=!1,E):E.concat(I)},[]).map(function(E){return qX(E,g,t,r)})}),c.forEach(function(d,y){d.forEach(function(g,m){oS(g)&&(i[y]+=g*(d[m-1]==="-"?-1:1))})}),i}function XX(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,l=n.split("-")[0],s=void 0;return oS(+r)?s=[+r,0]:s=YX(r,a,o,l),l==="left"?(a.top+=s[0],a.left-=s[1]):l==="right"?(a.top+=s[0],a.left+=s[1]):l==="top"?(a.left+=s[0],a.top-=s[1]):l==="bottom"&&(a.left+=s[0],a.top+=s[1]),e.popper=a,e}function QX(e,t){var r=t.boundariesElement||xf(e.instance.popper);e.instance.reference===r&&(r=xf(r));var n=aS("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var s=iS(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=l,t.boundaries=s;var c=t.priority,d=e.offsets.popper,y={primary:function(m){var E=d[m];return d[m]<s[m]&&!t.escapeWithReference&&(E=Math.max(d[m],s[m])),wf({},m,E)},secondary:function(m){var E=m==="right"?"left":"top",I=d[E];return d[m]>s[m]&&!t.escapeWithReference&&(I=Math.min(d[E],s[m]-(m==="right"?d.width:d.height))),wf({},E,I)}};return c.forEach(function(g){var m=["left","top"].indexOf(g)!==-1?"primary":"secondary";d=Ei({},d,y[m](g))}),e.offsets.popper=d,e}function ZX(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,l=["bottom","top"].indexOf(r)!==-1,s=l?"left":"top",c=l?"width":"height",d={start:wf({},s,a[s]),end:wf({},s,a[s]+a[c]-o[c])};e.offsets.popper=Ei({},o,d[n])}return e}function KX(e){if(!OP(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=zd(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function JX(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,l=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(l?i[o?"width":"height"]:0),e.placement=gm(t),e.offsets.popper=ou(i),e}var eQ={shift:{order:100,enabled:!0,fn:ZX},offset:{order:200,enabled:!0,fn:XX,offset:0},preventOverflow:{order:300,enabled:!0,fn:QX,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:VX},arrow:{order:500,enabled:!0,fn:GX,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:HX,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:JX},hide:{order:800,enabled:!0,fn:KX},computeStyle:{order:850,enabled:!0,fn:jX,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:BX,onLoad:$X,gpuAcceleration:void 0}},tQ={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:eQ},pg=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};TX(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=SX(this.update.bind(this)),this.options=Ei({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Ei({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Ei({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Ei({name:o},n.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&vP(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return CX(e,[{key:"update",value:function(){return IX.call(this)}},{key:"destroy",value:function(){return RX.call(this)}},{key:"enableEventListeners",value:function(){return PX.call(this)}},{key:"disableEventListeners",value:function(){return LX.call(this)}}]),e}();pg.Utils=(typeof window<"u"?window:global).PopperUtils;pg.placements=kP;pg.Defaults=tQ;const Ute=pg;/*!
400
+ * Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
401
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
402
+ * Copyright 2022 Fonticons, Inc.
403
+ */function S5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S5(Object(r),!0).forEach(function(n){iQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ym(e){return ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ym(e)}function rQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nQ(e,t,r){return t&&E5(e.prototype,t),r&&E5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uS(e,t){return oQ(e)||lQ(e,t)||MP(e,t)||fQ()}function vg(e){return aQ(e)||uQ(e)||MP(e)||sQ()}function aQ(e){if(Array.isArray(e))return Vw(e)}function oQ(e){if(Array.isArray(e))return e}function uQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function MP(e,t){if(!!e){if(typeof e=="string")return Vw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vw(e,t)}}function Vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
404
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
405
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A5=function(){},lS={},IP={},RP=null,FP={mark:A5,measure:A5};try{typeof window<"u"&&(lS=window),typeof document<"u"&&(IP=document),typeof MutationObserver<"u"&&(RP=MutationObserver),typeof performance<"u"&&(FP=performance)}catch{}var cQ=lS.navigator||{},T5=cQ.userAgent,C5=T5===void 0?"":T5,uu=lS,Lr=IP,O5=RP,Vv=FP;uu.document;var ao=!!Lr.documentElement&&!!Lr.head&&typeof Lr.addEventListener=="function"&&typeof Lr.createElement=="function",PP=~C5.indexOf("MSIE")||~C5.indexOf("Trident/"),Qa="___FONT_AWESOME___",qw=16,NP="fa",LP="svg-inline--fa",vl="data-fa-i2svg",Yw="data-fa-pseudo-element",hQ="data-fa-pseudo-element-pending",sS="data-prefix",fS="data-icon",k5="fontawesome-i2svg",dQ="async",pQ=["HTML","HEAD","STYLE","SCRIPT"],DP=function(){try{return!0}catch{return!1}}(),cS={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},xm={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},BP={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},vQ={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},mQ=/fa[srltdbk\-\ ]/,$P="fa-layers-text",gQ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,yQ={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},zP=[1,2,3,4,5,6,7,8,9,10],xQ=zP.concat([11,12,13,14,15,16,17,18,19,20]),bQ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],rl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},wQ=[].concat(vg(Object.keys(xm)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",rl.GROUP,rl.SWAP_OPACITY,rl.PRIMARY,rl.SECONDARY]).concat(zP.map(function(e){return"".concat(e,"x")})).concat(xQ.map(function(e){return"w-".concat(e)})),UP=uu.FontAwesomeConfig||{};function _Q(e){var t=Lr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function SQ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Lr&&typeof Lr.querySelector=="function"){var EQ=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];EQ.forEach(function(e){var t=uS(e,2),r=t[0],n=t[1],i=SQ(_Q(r));i!=null&&(UP[n]=i)})}var AQ={familyPrefix:NP,styleDefault:"solid",replacementClass:LP,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Yh=Nt(Nt({},AQ),UP);Yh.autoReplaceSvg||(Yh.observeMutations=!1);var Xt={};Object.keys(Yh).forEach(function(e){Object.defineProperty(Xt,e,{enumerable:!0,set:function(r){Yh[e]=r,v0.forEach(function(n){return n(Xt)})},get:function(){return Yh[e]}})});uu.FontAwesomeConfig=Xt;var v0=[];function TQ(e){return v0.push(e),function(){v0.splice(v0.indexOf(e),1)}}var Io=qw,ca={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function CQ(e){if(!(!e||!ao)){var t=Lr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Lr.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return Lr.head.insertBefore(t,n),e}}var OQ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function wd(){for(var e=12,t="";e-- >0;)t+=OQ[Math.random()*62|0];return t}function Pf(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function hS(e){return e.classList?Pf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function jP(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function kQ(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(jP(e[r]),'" ')},"").trim()}function mg(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function dS(e){return e.size!==ca.size||e.x!==ca.x||e.y!==ca.y||e.rotate!==ca.rotate||e.flipX||e.flipY}function MQ(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:c}}function IQ(e){var t=e.transform,r=e.width,n=r===void 0?qw:r,i=e.height,a=i===void 0?qw:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&PP?s+="translate(".concat(t.x/Io-n/2,"em, ").concat(t.y/Io-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/Io,"em), calc(-50% + ").concat(t.y/Io,"em)) "):s+="translate(".concat(t.x/Io,"em, ").concat(t.y/Io,"em) "),s+="scale(".concat(t.size/Io*(t.flipX?-1:1),", ").concat(t.size/Io*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var RQ=`:root, :host {
406
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
407
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
408
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
409
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
410
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
411
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
412
+ }
413
+
414
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
415
+ overflow: visible;
416
+ box-sizing: content-box;
417
+ }
418
+
419
+ .svg-inline--fa {
420
+ display: var(--fa-display, inline-block);
421
+ height: 1em;
422
+ overflow: visible;
423
+ vertical-align: -0.125em;
424
+ }
425
+ .svg-inline--fa.fa-2xs {
426
+ vertical-align: 0.1em;
427
+ }
428
+ .svg-inline--fa.fa-xs {
429
+ vertical-align: 0em;
430
+ }
431
+ .svg-inline--fa.fa-sm {
432
+ vertical-align: -0.0714285705em;
433
+ }
434
+ .svg-inline--fa.fa-lg {
435
+ vertical-align: -0.2em;
436
+ }
437
+ .svg-inline--fa.fa-xl {
438
+ vertical-align: -0.25em;
439
+ }
440
+ .svg-inline--fa.fa-2xl {
441
+ vertical-align: -0.3125em;
442
+ }
443
+ .svg-inline--fa.fa-pull-left {
444
+ margin-right: var(--fa-pull-margin, 0.3em);
445
+ width: auto;
446
+ }
447
+ .svg-inline--fa.fa-pull-right {
448
+ margin-left: var(--fa-pull-margin, 0.3em);
449
+ width: auto;
450
+ }
451
+ .svg-inline--fa.fa-li {
452
+ width: var(--fa-li-width, 2em);
453
+ top: 0.25em;
454
+ }
455
+ .svg-inline--fa.fa-fw {
456
+ width: var(--fa-fw-width, 1.25em);
457
+ }
458
+
459
+ .fa-layers svg.svg-inline--fa {
460
+ bottom: 0;
461
+ left: 0;
462
+ margin: auto;
463
+ position: absolute;
464
+ right: 0;
465
+ top: 0;
466
+ }
467
+
468
+ .fa-layers-counter, .fa-layers-text {
469
+ display: inline-block;
470
+ position: absolute;
471
+ text-align: center;
472
+ }
473
+
474
+ .fa-layers {
475
+ display: inline-block;
476
+ height: 1em;
477
+ position: relative;
478
+ text-align: center;
479
+ vertical-align: -0.125em;
480
+ width: 1em;
481
+ }
482
+ .fa-layers svg.svg-inline--fa {
483
+ -webkit-transform-origin: center center;
484
+ transform-origin: center center;
485
+ }
486
+
487
+ .fa-layers-text {
488
+ left: 50%;
489
+ top: 50%;
490
+ -webkit-transform: translate(-50%, -50%);
491
+ transform: translate(-50%, -50%);
492
+ -webkit-transform-origin: center center;
493
+ transform-origin: center center;
494
+ }
495
+
496
+ .fa-layers-counter {
497
+ background-color: var(--fa-counter-background-color, #ff253a);
498
+ border-radius: var(--fa-counter-border-radius, 1em);
499
+ box-sizing: border-box;
500
+ color: var(--fa-inverse, #fff);
501
+ line-height: var(--fa-counter-line-height, 1);
502
+ max-width: var(--fa-counter-max-width, 5em);
503
+ min-width: var(--fa-counter-min-width, 1.5em);
504
+ overflow: hidden;
505
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
506
+ right: var(--fa-right, 0);
507
+ text-overflow: ellipsis;
508
+ top: var(--fa-top, 0);
509
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
510
+ transform: scale(var(--fa-counter-scale, 0.25));
511
+ -webkit-transform-origin: top right;
512
+ transform-origin: top right;
513
+ }
514
+
515
+ .fa-layers-bottom-right {
516
+ bottom: var(--fa-bottom, 0);
517
+ right: var(--fa-right, 0);
518
+ top: auto;
519
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
520
+ transform: scale(var(--fa-layers-scale, 0.25));
521
+ -webkit-transform-origin: bottom right;
522
+ transform-origin: bottom right;
523
+ }
524
+
525
+ .fa-layers-bottom-left {
526
+ bottom: var(--fa-bottom, 0);
527
+ left: var(--fa-left, 0);
528
+ right: auto;
529
+ top: auto;
530
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
531
+ transform: scale(var(--fa-layers-scale, 0.25));
532
+ -webkit-transform-origin: bottom left;
533
+ transform-origin: bottom left;
534
+ }
535
+
536
+ .fa-layers-top-right {
537
+ top: var(--fa-top, 0);
538
+ right: var(--fa-right, 0);
539
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
540
+ transform: scale(var(--fa-layers-scale, 0.25));
541
+ -webkit-transform-origin: top right;
542
+ transform-origin: top right;
543
+ }
544
+
545
+ .fa-layers-top-left {
546
+ left: var(--fa-left, 0);
547
+ right: auto;
548
+ top: var(--fa-top, 0);
549
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
550
+ transform: scale(var(--fa-layers-scale, 0.25));
551
+ -webkit-transform-origin: top left;
552
+ transform-origin: top left;
553
+ }
554
+
555
+ .fa-1x {
556
+ font-size: 1em;
557
+ }
558
+
559
+ .fa-2x {
560
+ font-size: 2em;
561
+ }
562
+
563
+ .fa-3x {
564
+ font-size: 3em;
565
+ }
566
+
567
+ .fa-4x {
568
+ font-size: 4em;
569
+ }
570
+
571
+ .fa-5x {
572
+ font-size: 5em;
573
+ }
574
+
575
+ .fa-6x {
576
+ font-size: 6em;
577
+ }
578
+
579
+ .fa-7x {
580
+ font-size: 7em;
581
+ }
582
+
583
+ .fa-8x {
584
+ font-size: 8em;
585
+ }
586
+
587
+ .fa-9x {
588
+ font-size: 9em;
589
+ }
590
+
591
+ .fa-10x {
592
+ font-size: 10em;
593
+ }
594
+
595
+ .fa-2xs {
596
+ font-size: 0.625em;
597
+ line-height: 0.1em;
598
+ vertical-align: 0.225em;
599
+ }
600
+
601
+ .fa-xs {
602
+ font-size: 0.75em;
603
+ line-height: 0.0833333337em;
604
+ vertical-align: 0.125em;
605
+ }
606
+
607
+ .fa-sm {
608
+ font-size: 0.875em;
609
+ line-height: 0.0714285718em;
610
+ vertical-align: 0.0535714295em;
611
+ }
612
+
613
+ .fa-lg {
614
+ font-size: 1.25em;
615
+ line-height: 0.05em;
616
+ vertical-align: -0.075em;
617
+ }
618
+
619
+ .fa-xl {
620
+ font-size: 1.5em;
621
+ line-height: 0.0416666682em;
622
+ vertical-align: -0.125em;
623
+ }
624
+
625
+ .fa-2xl {
626
+ font-size: 2em;
627
+ line-height: 0.03125em;
628
+ vertical-align: -0.1875em;
629
+ }
630
+
631
+ .fa-fw {
632
+ text-align: center;
633
+ width: 1.25em;
634
+ }
635
+
636
+ .fa-ul {
637
+ list-style-type: none;
638
+ margin-left: var(--fa-li-margin, 2.5em);
639
+ padding-left: 0;
640
+ }
641
+ .fa-ul > li {
642
+ position: relative;
643
+ }
644
+
645
+ .fa-li {
646
+ left: calc(var(--fa-li-width, 2em) * -1);
647
+ position: absolute;
648
+ text-align: center;
649
+ width: var(--fa-li-width, 2em);
650
+ line-height: inherit;
651
+ }
652
+
653
+ .fa-border {
654
+ border-color: var(--fa-border-color, #eee);
655
+ border-radius: var(--fa-border-radius, 0.1em);
656
+ border-style: var(--fa-border-style, solid);
657
+ border-width: var(--fa-border-width, 0.08em);
658
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
659
+ }
660
+
661
+ .fa-pull-left {
662
+ float: left;
663
+ margin-right: var(--fa-pull-margin, 0.3em);
664
+ }
665
+
666
+ .fa-pull-right {
667
+ float: right;
668
+ margin-left: var(--fa-pull-margin, 0.3em);
669
+ }
670
+
671
+ .fa-beat {
672
+ -webkit-animation-name: fa-beat;
673
+ animation-name: fa-beat;
674
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
675
+ animation-delay: var(--fa-animation-delay, 0);
676
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
677
+ animation-direction: var(--fa-animation-direction, normal);
678
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
679
+ animation-duration: var(--fa-animation-duration, 1s);
680
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
681
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
682
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
683
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
684
+ }
685
+
686
+ .fa-bounce {
687
+ -webkit-animation-name: fa-bounce;
688
+ animation-name: fa-bounce;
689
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
690
+ animation-delay: var(--fa-animation-delay, 0);
691
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
692
+ animation-direction: var(--fa-animation-direction, normal);
693
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
694
+ animation-duration: var(--fa-animation-duration, 1s);
695
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
696
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
697
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
698
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
699
+ }
700
+
701
+ .fa-fade {
702
+ -webkit-animation-name: fa-fade;
703
+ animation-name: fa-fade;
704
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
705
+ animation-delay: var(--fa-animation-delay, 0);
706
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
707
+ animation-direction: var(--fa-animation-direction, normal);
708
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
709
+ animation-duration: var(--fa-animation-duration, 1s);
710
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
711
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
712
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
713
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
714
+ }
715
+
716
+ .fa-beat-fade {
717
+ -webkit-animation-name: fa-beat-fade;
718
+ animation-name: fa-beat-fade;
719
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
720
+ animation-delay: var(--fa-animation-delay, 0);
721
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
722
+ animation-direction: var(--fa-animation-direction, normal);
723
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
724
+ animation-duration: var(--fa-animation-duration, 1s);
725
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
726
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
727
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
728
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
729
+ }
730
+
731
+ .fa-flip {
732
+ -webkit-animation-name: fa-flip;
733
+ animation-name: fa-flip;
734
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
735
+ animation-delay: var(--fa-animation-delay, 0);
736
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
737
+ animation-direction: var(--fa-animation-direction, normal);
738
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
739
+ animation-duration: var(--fa-animation-duration, 1s);
740
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
741
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
742
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
743
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
744
+ }
745
+
746
+ .fa-shake {
747
+ -webkit-animation-name: fa-shake;
748
+ animation-name: fa-shake;
749
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
750
+ animation-delay: var(--fa-animation-delay, 0);
751
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
752
+ animation-direction: var(--fa-animation-direction, normal);
753
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
754
+ animation-duration: var(--fa-animation-duration, 1s);
755
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
756
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
757
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
758
+ animation-timing-function: var(--fa-animation-timing, linear);
759
+ }
760
+
761
+ .fa-spin {
762
+ -webkit-animation-name: fa-spin;
763
+ animation-name: fa-spin;
764
+ -webkit-animation-delay: var(--fa-animation-delay, 0);
765
+ animation-delay: var(--fa-animation-delay, 0);
766
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
767
+ animation-direction: var(--fa-animation-direction, normal);
768
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
769
+ animation-duration: var(--fa-animation-duration, 2s);
770
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
771
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
772
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
773
+ animation-timing-function: var(--fa-animation-timing, linear);
774
+ }
775
+
776
+ .fa-spin-reverse {
777
+ --fa-animation-direction: reverse;
778
+ }
779
+
780
+ .fa-pulse,
781
+ .fa-spin-pulse {
782
+ -webkit-animation-name: fa-spin;
783
+ animation-name: fa-spin;
784
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
785
+ animation-direction: var(--fa-animation-direction, normal);
786
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
787
+ animation-duration: var(--fa-animation-duration, 1s);
788
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
789
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
790
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
791
+ animation-timing-function: var(--fa-animation-timing, steps(8));
792
+ }
793
+
794
+ @media (prefers-reduced-motion: reduce) {
795
+ .fa-beat,
796
+ .fa-bounce,
797
+ .fa-fade,
798
+ .fa-beat-fade,
799
+ .fa-flip,
800
+ .fa-pulse,
801
+ .fa-shake,
802
+ .fa-spin,
803
+ .fa-spin-pulse {
804
+ -webkit-animation-delay: -1ms;
805
+ animation-delay: -1ms;
806
+ -webkit-animation-duration: 1ms;
807
+ animation-duration: 1ms;
808
+ -webkit-animation-iteration-count: 1;
809
+ animation-iteration-count: 1;
810
+ transition-delay: 0s;
811
+ transition-duration: 0s;
812
+ }
813
+ }
814
+ @-webkit-keyframes fa-beat {
815
+ 0%, 90% {
816
+ -webkit-transform: scale(1);
817
+ transform: scale(1);
818
+ }
819
+ 45% {
820
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
821
+ transform: scale(var(--fa-beat-scale, 1.25));
822
+ }
823
+ }
824
+ @keyframes fa-beat {
825
+ 0%, 90% {
826
+ -webkit-transform: scale(1);
827
+ transform: scale(1);
828
+ }
829
+ 45% {
830
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
831
+ transform: scale(var(--fa-beat-scale, 1.25));
832
+ }
833
+ }
834
+ @-webkit-keyframes fa-bounce {
835
+ 0% {
836
+ -webkit-transform: scale(1, 1) translateY(0);
837
+ transform: scale(1, 1) translateY(0);
838
+ }
839
+ 10% {
840
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
841
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
842
+ }
843
+ 30% {
844
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
845
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
846
+ }
847
+ 50% {
848
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
849
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
850
+ }
851
+ 57% {
852
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
853
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
854
+ }
855
+ 64% {
856
+ -webkit-transform: scale(1, 1) translateY(0);
857
+ transform: scale(1, 1) translateY(0);
858
+ }
859
+ 100% {
860
+ -webkit-transform: scale(1, 1) translateY(0);
861
+ transform: scale(1, 1) translateY(0);
862
+ }
863
+ }
864
+ @keyframes fa-bounce {
865
+ 0% {
866
+ -webkit-transform: scale(1, 1) translateY(0);
867
+ transform: scale(1, 1) translateY(0);
868
+ }
869
+ 10% {
870
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
871
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
872
+ }
873
+ 30% {
874
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
875
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
876
+ }
877
+ 50% {
878
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
879
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
880
+ }
881
+ 57% {
882
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
883
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
884
+ }
885
+ 64% {
886
+ -webkit-transform: scale(1, 1) translateY(0);
887
+ transform: scale(1, 1) translateY(0);
888
+ }
889
+ 100% {
890
+ -webkit-transform: scale(1, 1) translateY(0);
891
+ transform: scale(1, 1) translateY(0);
892
+ }
893
+ }
894
+ @-webkit-keyframes fa-fade {
895
+ 50% {
896
+ opacity: var(--fa-fade-opacity, 0.4);
897
+ }
898
+ }
899
+ @keyframes fa-fade {
900
+ 50% {
901
+ opacity: var(--fa-fade-opacity, 0.4);
902
+ }
903
+ }
904
+ @-webkit-keyframes fa-beat-fade {
905
+ 0%, 100% {
906
+ opacity: var(--fa-beat-fade-opacity, 0.4);
907
+ -webkit-transform: scale(1);
908
+ transform: scale(1);
909
+ }
910
+ 50% {
911
+ opacity: 1;
912
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
913
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
914
+ }
915
+ }
916
+ @keyframes fa-beat-fade {
917
+ 0%, 100% {
918
+ opacity: var(--fa-beat-fade-opacity, 0.4);
919
+ -webkit-transform: scale(1);
920
+ transform: scale(1);
921
+ }
922
+ 50% {
923
+ opacity: 1;
924
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
925
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
926
+ }
927
+ }
928
+ @-webkit-keyframes fa-flip {
929
+ 50% {
930
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
931
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
932
+ }
933
+ }
934
+ @keyframes fa-flip {
935
+ 50% {
936
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
937
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
938
+ }
939
+ }
940
+ @-webkit-keyframes fa-shake {
941
+ 0% {
942
+ -webkit-transform: rotate(-15deg);
943
+ transform: rotate(-15deg);
944
+ }
945
+ 4% {
946
+ -webkit-transform: rotate(15deg);
947
+ transform: rotate(15deg);
948
+ }
949
+ 8%, 24% {
950
+ -webkit-transform: rotate(-18deg);
951
+ transform: rotate(-18deg);
952
+ }
953
+ 12%, 28% {
954
+ -webkit-transform: rotate(18deg);
955
+ transform: rotate(18deg);
956
+ }
957
+ 16% {
958
+ -webkit-transform: rotate(-22deg);
959
+ transform: rotate(-22deg);
960
+ }
961
+ 20% {
962
+ -webkit-transform: rotate(22deg);
963
+ transform: rotate(22deg);
964
+ }
965
+ 32% {
966
+ -webkit-transform: rotate(-12deg);
967
+ transform: rotate(-12deg);
968
+ }
969
+ 36% {
970
+ -webkit-transform: rotate(12deg);
971
+ transform: rotate(12deg);
972
+ }
973
+ 40%, 100% {
974
+ -webkit-transform: rotate(0deg);
975
+ transform: rotate(0deg);
976
+ }
977
+ }
978
+ @keyframes fa-shake {
979
+ 0% {
980
+ -webkit-transform: rotate(-15deg);
981
+ transform: rotate(-15deg);
982
+ }
983
+ 4% {
984
+ -webkit-transform: rotate(15deg);
985
+ transform: rotate(15deg);
986
+ }
987
+ 8%, 24% {
988
+ -webkit-transform: rotate(-18deg);
989
+ transform: rotate(-18deg);
990
+ }
991
+ 12%, 28% {
992
+ -webkit-transform: rotate(18deg);
993
+ transform: rotate(18deg);
994
+ }
995
+ 16% {
996
+ -webkit-transform: rotate(-22deg);
997
+ transform: rotate(-22deg);
998
+ }
999
+ 20% {
1000
+ -webkit-transform: rotate(22deg);
1001
+ transform: rotate(22deg);
1002
+ }
1003
+ 32% {
1004
+ -webkit-transform: rotate(-12deg);
1005
+ transform: rotate(-12deg);
1006
+ }
1007
+ 36% {
1008
+ -webkit-transform: rotate(12deg);
1009
+ transform: rotate(12deg);
1010
+ }
1011
+ 40%, 100% {
1012
+ -webkit-transform: rotate(0deg);
1013
+ transform: rotate(0deg);
1014
+ }
1015
+ }
1016
+ @-webkit-keyframes fa-spin {
1017
+ 0% {
1018
+ -webkit-transform: rotate(0deg);
1019
+ transform: rotate(0deg);
1020
+ }
1021
+ 100% {
1022
+ -webkit-transform: rotate(360deg);
1023
+ transform: rotate(360deg);
1024
+ }
1025
+ }
1026
+ @keyframes fa-spin {
1027
+ 0% {
1028
+ -webkit-transform: rotate(0deg);
1029
+ transform: rotate(0deg);
1030
+ }
1031
+ 100% {
1032
+ -webkit-transform: rotate(360deg);
1033
+ transform: rotate(360deg);
1034
+ }
1035
+ }
1036
+ .fa-rotate-90 {
1037
+ -webkit-transform: rotate(90deg);
1038
+ transform: rotate(90deg);
1039
+ }
1040
+
1041
+ .fa-rotate-180 {
1042
+ -webkit-transform: rotate(180deg);
1043
+ transform: rotate(180deg);
1044
+ }
1045
+
1046
+ .fa-rotate-270 {
1047
+ -webkit-transform: rotate(270deg);
1048
+ transform: rotate(270deg);
1049
+ }
1050
+
1051
+ .fa-flip-horizontal {
1052
+ -webkit-transform: scale(-1, 1);
1053
+ transform: scale(-1, 1);
1054
+ }
1055
+
1056
+ .fa-flip-vertical {
1057
+ -webkit-transform: scale(1, -1);
1058
+ transform: scale(1, -1);
1059
+ }
1060
+
1061
+ .fa-flip-both,
1062
+ .fa-flip-horizontal.fa-flip-vertical {
1063
+ -webkit-transform: scale(-1, -1);
1064
+ transform: scale(-1, -1);
1065
+ }
1066
+
1067
+ .fa-rotate-by {
1068
+ -webkit-transform: rotate(var(--fa-rotate-angle, none));
1069
+ transform: rotate(var(--fa-rotate-angle, none));
1070
+ }
1071
+
1072
+ .fa-stack {
1073
+ display: inline-block;
1074
+ vertical-align: middle;
1075
+ height: 2em;
1076
+ position: relative;
1077
+ width: 2.5em;
1078
+ }
1079
+
1080
+ .fa-stack-1x,
1081
+ .fa-stack-2x {
1082
+ bottom: 0;
1083
+ left: 0;
1084
+ margin: auto;
1085
+ position: absolute;
1086
+ right: 0;
1087
+ top: 0;
1088
+ z-index: var(--fa-stack-z-index, auto);
1089
+ }
1090
+
1091
+ .svg-inline--fa.fa-stack-1x {
1092
+ height: 1em;
1093
+ width: 1.25em;
1094
+ }
1095
+ .svg-inline--fa.fa-stack-2x {
1096
+ height: 2em;
1097
+ width: 2.5em;
1098
+ }
1099
+
1100
+ .fa-inverse {
1101
+ color: var(--fa-inverse, #fff);
1102
+ }
1103
+
1104
+ .sr-only,
1105
+ .fa-sr-only {
1106
+ position: absolute;
1107
+ width: 1px;
1108
+ height: 1px;
1109
+ padding: 0;
1110
+ margin: -1px;
1111
+ overflow: hidden;
1112
+ clip: rect(0, 0, 0, 0);
1113
+ white-space: nowrap;
1114
+ border-width: 0;
1115
+ }
1116
+
1117
+ .sr-only-focusable:not(:focus),
1118
+ .fa-sr-only-focusable:not(:focus) {
1119
+ position: absolute;
1120
+ width: 1px;
1121
+ height: 1px;
1122
+ padding: 0;
1123
+ margin: -1px;
1124
+ overflow: hidden;
1125
+ clip: rect(0, 0, 0, 0);
1126
+ white-space: nowrap;
1127
+ border-width: 0;
1128
+ }
1129
+
1130
+ .svg-inline--fa .fa-primary {
1131
+ fill: var(--fa-primary-color, currentColor);
1132
+ opacity: var(--fa-primary-opacity, 1);
1133
+ }
1134
+
1135
+ .svg-inline--fa .fa-secondary {
1136
+ fill: var(--fa-secondary-color, currentColor);
1137
+ opacity: var(--fa-secondary-opacity, 0.4);
1138
+ }
1139
+
1140
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
1141
+ opacity: var(--fa-secondary-opacity, 0.4);
1142
+ }
1143
+
1144
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
1145
+ opacity: var(--fa-primary-opacity, 1);
1146
+ }
1147
+
1148
+ .svg-inline--fa mask .fa-primary,
1149
+ .svg-inline--fa mask .fa-secondary {
1150
+ fill: black;
1151
+ }
1152
+
1153
+ .fad.fa-inverse,
1154
+ .fa-duotone.fa-inverse {
1155
+ color: var(--fa-inverse, #fff);
1156
+ }`;function GP(){var e=NP,t=LP,r=Xt.familyPrefix,n=Xt.replacementClass,i=RQ;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var M5=!1;function fb(){Xt.autoAddCss&&!M5&&(CQ(GP()),M5=!0)}var FQ={mixout:function(){return{dom:{css:GP,insertCss:fb}}},hooks:function(){return{beforeDOMElementCreation:function(){fb()},beforeI2svg:function(){fb()}}}},Za=uu||{};Za[Qa]||(Za[Qa]={});Za[Qa].styles||(Za[Qa].styles={});Za[Qa].hooks||(Za[Qa].hooks={});Za[Qa].shims||(Za[Qa].shims=[]);var Hi=Za[Qa],WP=[],PQ=function e(){Lr.removeEventListener("DOMContentLoaded",e),bm=1,WP.map(function(t){return t()})},bm=!1;ao&&(bm=(Lr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Lr.readyState),bm||Lr.addEventListener("DOMContentLoaded",PQ));function NQ(e){!ao||(bm?setTimeout(e,0):WP.push(e))}function Ud(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?jP(e):"<".concat(t," ").concat(kQ(n),">").concat(a.map(Ud).join(""),"</").concat(t,">")}function I5(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var LQ=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},cb=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?LQ(r,i):r,s,c,d;for(n===void 0?(s=1,d=t[a[0]]):(s=0,d=n);s<o;s++)c=a[s],d=l(d,t[c],c,t);return d};function DQ(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function Xw(e){var t=DQ(e);return t.length===1?t[0].toString(16):null}function BQ(e,t){var r=e.length,n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function R5(e){return Object.keys(e).reduce(function(t,r){var n=e[r],i=!!n.icon;return i?t[n.iconName]=n.icon:t[r]=n,t},{})}function Qw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=R5(t);typeof Hi.hooks.addPack=="function"&&!i?Hi.hooks.addPack(e,R5(t)):Hi.styles[e]=Nt(Nt({},Hi.styles[e]||{}),a),e==="fas"&&Qw("fa",t)}var Xh=Hi.styles,$Q=Hi.shims,zQ=Object.values(BP),pS=null,HP={},VP={},qP={},YP={},XP={},UQ=Object.keys(cS);function jQ(e){return~wQ.indexOf(e)}function GQ(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!jQ(i)?i:null}var QP=function(){var t=function(a){return cb(Xh,function(o,l,s){return o[s]=cb(l,a,{}),o},{})};HP=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),VP=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),XP=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Xh||Xt.autoFetchSvg,n=cb($Q,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});qP=n.names,YP=n.unicodes,pS=gg(Xt.styleDefault)};TQ(function(e){pS=gg(e.styleDefault)});QP();function vS(e,t){return(HP[e]||{})[t]}function WQ(e,t){return(VP[e]||{})[t]}function zs(e,t){return(XP[e]||{})[t]}function ZP(e){return qP[e]||{prefix:null,iconName:null}}function HQ(e){var t=YP[e],r=vS("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function lu(){return pS}var mS=function(){return{prefix:null,iconName:null,rest:[]}};function gg(e){var t=cS[e],r=xm[e]||xm[t],n=e in Hi.styles?e:null;return r||n||null}function yg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.skipLookups,n=r===void 0?!1:r,i=null,a=e.reduce(function(o,l){var s=GQ(Xt.familyPrefix,l);if(Xh[l]?(l=zQ.includes(l)?vQ[l]:l,i=l,o.prefix=l):UQ.indexOf(l)>-1?(i=l,o.prefix=gg(l)):s?o.iconName=s:l!==Xt.replacementClass&&o.rest.push(l),!n&&o.prefix&&o.iconName){var c=i==="fa"?ZP(o.iconName):{},d=zs(o.prefix,o.iconName);c.prefix&&(i=null),o.iconName=c.iconName||d||o.iconName,o.prefix=c.prefix||o.prefix,o.prefix==="far"&&!Xh.far&&Xh.fas&&!Xt.autoFetchSvg&&(o.prefix="fas")}return o},mS());return(a.prefix==="fa"||i==="fa")&&(a.prefix=lu()||"fas"),a}var VQ=function(){function e(){rQ(this,e),this.definitions={}}return nQ(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=Nt(Nt({},r.definitions[l]||{}),o[l]),Qw(l,o[l]);var s=BP[l];s&&Qw(s,o[l]),QP()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,c=o.icon,d=c[2];r[l]||(r[l]={}),d.length>0&&d.forEach(function(y){typeof y=="string"&&(r[l][y]=c)}),r[l][s]=c}),r}}]),e}(),F5=[],Us={},of={},qQ=Object.keys(of);function YQ(e,t){var r=t.mixoutsTo;return F5=e,Us={},Object.keys(of).forEach(function(n){qQ.indexOf(n)===-1&&delete of[n]}),F5.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),ym(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Us[o]||(Us[o]=[]),Us[o].push(a[o])})}n.provides&&n.provides(of)}),r}function Zw(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var a=Us[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function ml(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Us[e]||[];i.forEach(function(a){a.apply(null,r)})}function Ka(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return of[e]?of[e].apply(null,t):void 0}function Kw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||lu();if(!!t)return t=zs(r,t)||t,I5(KP.definitions,r,t)||I5(Hi.styles,r,t)}var KP=new VQ,XQ=function(){Xt.autoReplaceSvg=!1,Xt.observeMutations=!1,ml("noAuto")},QQ={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ao?(ml("beforeI2svg",t),Ka("pseudoElements2svg",t),Ka("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;Xt.autoReplaceSvg===!1&&(Xt.autoReplaceSvg=!0),Xt.observeMutations=!0,NQ(function(){KQ({autoReplaceSvgRoot:r}),ml("watch",t)})}},ZQ={icon:function(t){if(t===null)return null;if(ym(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:zs(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=gg(t[0]);return{prefix:n,iconName:zs(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Xt.familyPrefix,"-"))>-1||t.match(mQ))){var i=yg(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||lu(),iconName:zs(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=lu();return{prefix:a,iconName:zs(a,t)||t}}}},hi={noAuto:XQ,config:Xt,dom:QQ,parse:ZQ,library:KP,findIconDefinition:Kw,toHtml:Ud},KQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?Lr:r;(Object.keys(Hi.styles).length>0||Xt.autoFetchSvg)&&ao&&Xt.autoReplaceSvg&&hi.dom.i2svg({node:n})};function xg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Ud(n)})}}),Object.defineProperty(e,"node",{get:function(){if(!!ao){var n=Lr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function JQ(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(dS(o)&&r.found&&!n.found){var l=r.width,s=r.height,c={x:l/s/2,y:.5};i.style=mg(Nt(Nt({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function eZ(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Xt.familyPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nt(Nt({},i),{},{id:o}),children:n}]}]}function gS(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,c=e.maskId,d=e.titleId,y=e.extra,g=e.watchable,m=g===void 0?!1:g,E=n.found?n:r,I=E.width,b=E.height,w=i==="fak",_=[Xt.replacementClass,a?"".concat(Xt.familyPrefix,"-").concat(a):""].filter(function(re){return y.classes.indexOf(re)===-1}).filter(function(re){return re!==""||!!re}).concat(y.classes).join(" "),C={children:[],attributes:Nt(Nt({},y.attributes),{},{"data-prefix":i,"data-icon":a,class:_,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(I," ").concat(b)})},T=w&&!~y.classes.indexOf("fa-fw")?{width:"".concat(I/b*16*.0625,"em")}:{};m&&(C.attributes[vl]=""),s&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(d||wd())},children:[s]}),delete C.attributes.title);var P=Nt(Nt({},C),{},{prefix:i,iconName:a,main:r,mask:n,maskId:c,transform:o,symbol:l,styles:Nt(Nt({},T),y.styles)}),D=n.found&&r.found?Ka("generateAbstractMask",P)||{children:[],attributes:{}}:Ka("generateAbstractIcon",P)||{children:[],attributes:{}},Y=D.children,j=D.attributes;return P.children=Y,P.attributes=j,l?eZ(P):JQ(P)}function P5(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,c=Nt(Nt(Nt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(c[vl]="");var d=Nt({},o.styles);dS(i)&&(d.transform=IQ({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var y=mg(d);y.length>0&&(c.style=y);var g=[];return g.push({tag:"span",attributes:c,children:[t]}),a&&g.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),g}function tZ(e){var t=e.content,r=e.title,n=e.extra,i=Nt(Nt(Nt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=mg(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var hb=Hi.styles;function Jw(e){var t=e[0],r=e[1],n=e.slice(4),i=uS(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Xt.familyPrefix,"-").concat(rl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Xt.familyPrefix,"-").concat(rl.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Xt.familyPrefix,"-").concat(rl.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var rZ={found:!1,width:512,height:512};function nZ(e,t){!DP&&!Xt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function e_(e,t){var r=t;return t==="fa"&&Xt.styleDefault!==null&&(t=lu()),new Promise(function(n,i){if(Ka("missingIconAbstract"),r==="fa"){var a=ZP(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&hb[t]&&hb[t][e]){var o=hb[t][e];return n(Jw(o))}nZ(e,t),n(Nt(Nt({},rZ),{},{icon:Xt.showMissingIcons&&e?Ka("missingIconAbstract")||{}:{}}))})}var N5=function(){},t_=Xt.measurePerformance&&Vv&&Vv.mark&&Vv.measure?Vv:{mark:N5,measure:N5},Oh='FA "6.1.1"',iZ=function(t){return t_.mark("".concat(Oh," ").concat(t," begins")),function(){return JP(t)}},JP=function(t){t_.mark("".concat(Oh," ").concat(t," ends")),t_.measure("".concat(Oh," ").concat(t),"".concat(Oh," ").concat(t," begins"),"".concat(Oh," ").concat(t," ends"))},yS={begin:iZ,end:JP},m0=function(){};function L5(e){var t=e.getAttribute?e.getAttribute(vl):null;return typeof t=="string"}function aZ(e){var t=e.getAttribute?e.getAttribute(sS):null,r=e.getAttribute?e.getAttribute(fS):null;return t&&r}function oZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Xt.replacementClass)}function uZ(){if(Xt.autoReplaceSvg===!0)return g0.replace;var e=g0[Xt.autoReplaceSvg];return e||g0.replace}function lZ(e){return Lr.createElementNS("http://www.w3.org/2000/svg",e)}function sZ(e){return Lr.createElement(e)}function e4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?lZ:sZ:r;if(typeof e=="string")return Lr.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(e4(o,{ceFn:n}))}),i}function fZ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var g0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(e4(i),r)}),r.getAttribute(vl)===null&&Xt.keepOriginalSource){var n=Lr.createComment(fZ(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~hS(r).indexOf(Xt.replacementClass))return g0.replace(t);var i=new RegExp("".concat(Xt.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,s){return s===Xt.replacementClass||s.match(i)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var o=n.map(function(l){return Ud(l)}).join(`
1157
+ `);r.setAttribute(vl,""),r.innerHTML=o}};function D5(e){e()}function t4(e,t){var r=typeof t=="function"?t:m0;if(e.length===0)r();else{var n=D5;Xt.mutateApproach===dQ&&(n=uu.requestAnimationFrame||D5),n(function(){var i=uZ(),a=yS.begin("mutate");e.map(i),a(),r()})}}var xS=!1;function r4(){xS=!0}function r_(){xS=!1}var wm=null;function B5(e){if(!!O5&&!!Xt.observeMutations){var t=e.treeCallback,r=t===void 0?m0:t,n=e.nodeCallback,i=n===void 0?m0:n,a=e.pseudoElementsCallback,o=a===void 0?m0:a,l=e.observeMutationsRoot,s=l===void 0?Lr:l;wm=new O5(function(c){if(!xS){var d=lu();Pf(c).forEach(function(y){if(y.type==="childList"&&y.addedNodes.length>0&&!L5(y.addedNodes[0])&&(Xt.searchPseudoElements&&o(y.target),r(y.target)),y.type==="attributes"&&y.target.parentNode&&Xt.searchPseudoElements&&o(y.target.parentNode),y.type==="attributes"&&L5(y.target)&&~bQ.indexOf(y.attributeName))if(y.attributeName==="class"&&aZ(y.target)){var g=yg(hS(y.target)),m=g.prefix,E=g.iconName;y.target.setAttribute(sS,m||d),E&&y.target.setAttribute(fS,E)}else oZ(y.target)&&i(y.target)})}}),ao&&wm.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function cZ(){!wm||wm.disconnect()}function hZ(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function dZ(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=yg(hS(e));return i.prefix||(i.prefix=lu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||i.prefix&&n.length>0&&(i.iconName=WQ(i.prefix,e.innerText)||vS(i.prefix,Xw(e.innerText))),i}function pZ(e){var t=Pf(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Xt.autoA11y&&(r?t["aria-labelledby"]="".concat(Xt.replacementClass,"-title-").concat(n||wd()):(t["aria-hidden"]="true",t.focusable="false")),t}function vZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ca,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function $5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=dZ(e),n=r.iconName,i=r.prefix,a=r.rest,o=pZ(e),l=Zw("parseNodeAttributes",{},e),s=t.styleParser?hZ(e):[];return Nt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ca,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var mZ=Hi.styles;function n4(e){var t=Xt.autoReplaceSvg==="nest"?$5(e,{styleParser:!1}):$5(e);return~t.extra.classes.indexOf($P)?Ka("generateLayersText",e,t):Ka("generateSvgReplacementMutation",e,t)}function z5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ao)return Promise.resolve();var r=Lr.documentElement.classList,n=function(y){return r.add("".concat(k5,"-").concat(y))},i=function(y){return r.remove("".concat(k5,"-").concat(y))},a=Xt.autoFetchSvg?Object.keys(cS):Object.keys(mZ),o=[".".concat($P,":not([").concat(vl,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(vl,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=Pf(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=yS.begin("onTree"),c=l.reduce(function(d,y){try{var g=n4(y);g&&d.push(g)}catch(m){DP||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,y){Promise.all(c).then(function(g){t4(g,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(g){s(),y(g)})})}function gZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;n4(e).then(function(r){r&&t4([r],t)})}function yZ(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:Kw(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:Kw(i||{})),e(n,Nt(Nt({},r),{},{mask:i}))}}var xZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?ca:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,c=r.maskId,d=c===void 0?null:c,y=r.title,g=y===void 0?null:y,m=r.titleId,E=m===void 0?null:m,I=r.classes,b=I===void 0?[]:I,w=r.attributes,_=w===void 0?{}:w,C=r.styles,T=C===void 0?{}:C;if(!!t){var P=t.prefix,D=t.iconName,Y=t.icon;return xg(Nt({type:"icon"},t),function(){return ml("beforeDOMElementCreation",{iconDefinition:t,params:r}),Xt.autoA11y&&(g?_["aria-labelledby"]="".concat(Xt.replacementClass,"-title-").concat(E||wd()):(_["aria-hidden"]="true",_.focusable="false")),gS({icons:{main:Jw(Y),mask:s?Jw(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:D,transform:Nt(Nt({},ca),i),symbol:o,title:g,maskId:d,titleId:E,extra:{attributes:_,styles:T,classes:b}})})}},bZ={mixout:function(){return{icon:yZ(xZ)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=z5,r.nodeCallback=gZ,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?Lr:n,a=r.callback,o=a===void 0?function(){}:a;return z5(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,c=n.symbol,d=n.mask,y=n.maskId,g=n.extra;return new Promise(function(m,E){Promise.all([e_(i,l),d.iconName?e_(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(I){var b=uS(I,2),w=b[0],_=b[1];m([r,gS({icons:{main:w,mask:_},prefix:l,iconName:i,transform:s,symbol:c,maskId:y,title:a,titleId:o,extra:g,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=mg(l);s.length>0&&(i.style=s);var c;return dS(o)&&(c=Ka("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},wZ={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,a=i===void 0?[]:i;return xg({type:"layer"},function(){ml("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Xt.familyPrefix,"-layers")].concat(vg(a)).join(" ")},children:o}]})}}}},_Z={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,c=s===void 0?{}:s,d=n.styles,y=d===void 0?{}:d;return xg({type:"counter",content:r},function(){return ml("beforeDOMElementCreation",{content:r,params:n}),tZ({content:r.toString(),title:a,extra:{attributes:c,styles:y,classes:["".concat(Xt.familyPrefix,"-layers-counter")].concat(vg(l))}})})}}}},SZ={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?ca:i,o=n.title,l=o===void 0?null:o,s=n.classes,c=s===void 0?[]:s,d=n.attributes,y=d===void 0?{}:d,g=n.styles,m=g===void 0?{}:g;return xg({type:"text",content:r},function(){return ml("beforeDOMElementCreation",{content:r,params:n}),P5({content:r,transform:Nt(Nt({},ca),a),title:l,extra:{attributes:y,styles:m,classes:["".concat(Xt.familyPrefix,"-layers-text")].concat(vg(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(PP){var c=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();l=d.width/c,s=d.height/c}return Xt.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,P5({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},EZ=new RegExp('"',"ug"),U5=[1105920,1112319];function AZ(e){var t=e.replace(EZ,""),r=BQ(t,0),n=r>=U5[0]&&r<=U5[1],i=t.length===2?t[0]===t[1]:!1;return{value:Xw(i?t[0]:t),isSecondary:n||i}}function j5(e,t){var r="".concat(hQ).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=Pf(e.children),o=a.filter(function(D){return D.getAttribute(Yw)===t})[0],l=uu.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(gQ),c=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&d!=="none"&&d!==""){var y=l.getPropertyValue("content"),g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?xm[s[2].toLowerCase()]:yQ[c],m=AZ(y),E=m.value,I=m.isSecondary,b=s[0].startsWith("FontAwesome"),w=vS(g,E),_=w;if(b){var C=HQ(E);C.iconName&&C.prefix&&(w=C.iconName,g=C.prefix)}if(w&&!I&&(!o||o.getAttribute(sS)!==g||o.getAttribute(fS)!==_)){e.setAttribute(r,_),o&&e.removeChild(o);var T=vZ(),P=T.extra;P.attributes[Yw]=t,e_(w,g).then(function(D){var Y=gS(Nt(Nt({},T),{},{icons:{main:D,mask:mS()},prefix:g,iconName:_,extra:P,watchable:!0})),j=Lr.createElement("svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=Y.map(function(re){return Ud(re)}).join(`
1158
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function TZ(e){return Promise.all([j5(e,"::before"),j5(e,"::after")])}function CZ(e){return e.parentNode!==document.head&&!~pQ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Yw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function G5(e){if(!!ao)return new Promise(function(t,r){var n=Pf(e.querySelectorAll("*")).filter(CZ).map(TZ),i=yS.begin("searchPseudoElements");r4(),Promise.all(n).then(function(){i(),r_(),t()}).catch(function(){i(),r_(),r()})})}var OZ={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=G5,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Lr:n;Xt.searchPseudoElements&&G5(i)}}},W5=!1,kZ={mixout:function(){return{dom:{unwatch:function(){r4(),W5=!0}}}},hooks:function(){return{bootstrap:function(){B5(Zw("mutationObserverCallbacks",{}))},noAuto:function(){cZ()},watch:function(r){var n=r.observeMutationsRoot;W5?r_():B5(Zw("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},H5=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},MZ={mixout:function(){return{parse:{transform:function(r){return H5(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=H5(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),y={transform:"".concat(s," ").concat(c," ").concat(d)},g={transform:"translate(".concat(o/2*-1," -256)")},m={outer:l,inner:y,path:g};return{tag:"g",attributes:Nt({},m.outer),children:[{tag:"g",attributes:Nt({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Nt(Nt({},n.icon.attributes),m.path)}]}]}}}},db={x:0,y:0,width:"100%",height:"100%"};function V5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function IZ(e){return e.tag==="g"?e.children:[e]}var RZ={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?yg(i.split(" ").map(function(o){return o.trim()})):mS();return a.prefix||(a.prefix=lu()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,c=a.width,d=a.icon,y=o.width,g=o.icon,m=MQ({transform:s,containerWidth:y,iconWidth:c}),E={tag:"rect",attributes:Nt(Nt({},db),{},{fill:"white"})},I=d.children?{children:d.children.map(V5)}:{},b={tag:"g",attributes:Nt({},m.inner),children:[V5(Nt({tag:d.tag,attributes:Nt(Nt({},d.attributes),m.path)},I))]},w={tag:"g",attributes:Nt({},m.outer),children:[b]},_="mask-".concat(l||wd()),C="clip-".concat(l||wd()),T={tag:"mask",attributes:Nt(Nt({},db),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,w]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:IZ(g)},T]};return n.push(P,{tag:"rect",attributes:Nt({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(_,")")},db)}),{children:n,attributes:i}}}},FZ={provides:function(t){var r=!1;uu.matchMedia&&(r=uu.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Nt(Nt({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Nt(Nt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Nt(Nt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Nt(Nt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},PZ={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return r.symbol=a,r}}}},NZ=[FQ,bZ,wZ,_Z,SZ,OZ,kZ,MZ,RZ,FZ,PZ];YQ(NZ,{mixoutsTo:hi});hi.noAuto;hi.config;hi.library;hi.dom;var n_=hi.parse;hi.findIconDefinition;hi.toHtml;var LZ=hi.icon;hi.layer;hi.text;hi.counter;function q5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q5(Object(r),!0).forEach(function(n){js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _m(e){return _m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_m(e)}function js(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function i4(e,t){if(e==null)return{};var r=DZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function i_(e){return BZ(e)||$Z(e)||zZ(e)||UZ()}function BZ(e){if(Array.isArray(e))return a_(e)}function $Z(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zZ(e,t){if(!!e){if(typeof e=="string")return a_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a_(e,t)}}function a_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1159
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jZ(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,d=e.spinReverse,y=e.pulse,g=e.fixedWidth,m=e.inverse,E=e.border,I=e.listItem,b=e.flip,w=e.size,_=e.rotation,C=e.pull,T=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":d,"fa-spin-pulse":c,"fa-pulse":y,"fa-fw":g,"fa-inverse":m,"fa-border":E,"fa-li":I,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},js(t,"fa-".concat(w),typeof w<"u"&&w!==null),js(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),js(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),js(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(P){return T[P]?P:null}).filter(function(P){return P})}function GZ(e){return e=e-0,e===e}function a4(e){return GZ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var WZ=["style"];function HZ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function VZ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=a4(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[HZ(i)]=a:t[i]=a,t},{})}function o4(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return o4(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var d=t.attributes[c];switch(c){case"class":s.attrs.className=d,delete t.attributes.class;break;case"style":s.attrs.style=VZ(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=d:s.attrs[a4(c)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=i4(r,WZ);return i.attrs.style=jo(jo({},i.attrs.style),o),e.apply(void 0,[t.tag,jo(jo({},i.attrs),l)].concat(i_(n)))}var u4=!1;try{u4=!0}catch{}function qZ(){if(!u4&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Y5(e){if(e&&_m(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(n_.icon)return n_.icon(e);if(e===null)return null;if(e&&_m(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function pb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?js({},e,t):{}}var YZ=["forwardedRef"];function bg(e){var t=e.forwardedRef,r=i4(e,YZ),n=r.icon,i=r.mask,a=r.symbol,o=r.className,l=r.title,s=r.titleId,c=r.maskId,d=Y5(n),y=pb("classes",[].concat(i_(jZ(r)),i_(o.split(" ")))),g=pb("transform",typeof r.transform=="string"?n_.transform(r.transform):r.transform),m=pb("mask",Y5(i)),E=LZ(d,jo(jo(jo(jo({},y),g),m),{},{symbol:a,title:l,titleId:s,maskId:c}));if(!E)return qZ("Could not find icon",d),null;var I=E.abstract,b={ref:t};return Object.keys(r).forEach(function(w){bg.defaultProps.hasOwnProperty(w)||(b[w]=r[w])}),XZ(I[0],b)}bg.displayName="FontAwesomeIcon";bg.propTypes={beat:hr.exports.bool,border:hr.exports.bool,bounce:hr.exports.bool,className:hr.exports.string,fade:hr.exports.bool,flash:hr.exports.bool,mask:hr.exports.oneOfType([hr.exports.object,hr.exports.array,hr.exports.string]),maskId:hr.exports.string,fixedWidth:hr.exports.bool,inverse:hr.exports.bool,flip:hr.exports.oneOf(["horizontal","vertical","both"]),icon:hr.exports.oneOfType([hr.exports.object,hr.exports.array,hr.exports.string]),listItem:hr.exports.bool,pull:hr.exports.oneOf(["right","left"]),pulse:hr.exports.bool,rotation:hr.exports.oneOf([0,90,180,270]),shake:hr.exports.bool,size:hr.exports.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:hr.exports.bool,spinPulse:hr.exports.bool,spinReverse:hr.exports.bool,symbol:hr.exports.oneOfType([hr.exports.bool,hr.exports.string]),title:hr.exports.string,titleId:hr.exports.string,transform:hr.exports.oneOfType([hr.exports.string,hr.exports.object]),swapOpacity:hr.exports.bool};bg.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var XZ=o4.bind(null,Tn.createElement),l4={exports:{}},s4={exports:{}},y0=1;function QZ(){return y0=(y0*9301+49297)%233280,y0/233280}function ZZ(e){y0=e}var KZ={nextValue:QZ,seed:ZZ},o_=KZ,Qu="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Go,X5,kh;function u_(){kh=!1}function f4(e){if(!e){Go!==Qu&&(Go=Qu,u_());return}if(e!==Go){if(e.length!==Qu.length)throw new Error("Custom alphabet for shortid must be "+Qu.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+Qu.length+" unique characters. These characters were not unique: "+t.join(", "));Go=e,u_()}}function JZ(e){return f4(e),Go}function eK(e){o_.seed(e),X5!==e&&(u_(),X5=e)}function tK(){Go||f4(Qu);for(var e=Go.split(""),t=[],r=o_.nextValue(),n;e.length>0;)r=o_.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function c4(){return kh||(kh=tK(),kh)}function rK(e){var t=c4();return t[e]}function nK(){return Go||Qu}var bS={get:nK,characters:JZ,seed:eK,lookup:rK,shuffled:c4},vb=typeof window=="object"&&(window.crypto||window.msCrypto),l_;!vb||!vb.getRandomValues?l_=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:l_=function(e){return vb.getRandomValues(new Uint8Array(e))};var iK=l_,aK=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},oK=bS,uK=iK,lK=aK;function sK(e){for(var t=0,r,n="";!r;)n=n+lK(uK,oK.get(),1),r=e<Math.pow(16,t+1),t++;return n}var fK=sK,qv=fK,cK=1567752802062,hK=7,Yv,Q5;function dK(e){var t="",r=Math.floor((Date.now()-cK)*.001);return r===Q5?Yv++:(Yv=0,Q5=r),t=t+qv(hK),t=t+qv(e),Yv>0&&(t=t+qv(Yv)),t=t+qv(r),t}var pK=dK,vK=bS;function mK(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+vK.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var gK=mK;(function(e){var t=bS,r=pK,n=gK,i=0;function a(c){return t.seed(c),e.exports}function o(c){return i=c,e.exports}function l(c){return c!==void 0&&t.characters(c),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(s4);(function(e){e.exports=s4.exports})(l4);const jte=p_(l4.exports);var yK=Tn.createContext(null);function xK(e){e()}var h4=xK,bK=function(t){return h4=t},wK=function(){return h4};function _K(){var e=wK(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var Z5={notify:function(){},get:function(){return[]}};function SK(e,t){var r,n=Z5;function i(y){return s(),n.subscribe(y)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function l(){return Boolean(r)}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=_K())}function c(){r&&(r(),r=void 0,n.clear(),n=Z5)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return d}var EK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kt.exports.useLayoutEffect:Kt.exports.useEffect,d4={exports:{}},Sr={};/** @license React v16.13.1
1160
+ * react-is.production.min.js
1161
+ *
1162
+ * Copyright (c) Facebook, Inc. and its affiliates.
1163
+ *
1164
+ * This source code is licensed under the MIT license found in the
1165
+ * LICENSE file in the root directory of this source tree.
1166
+ */var yn=typeof Symbol=="function"&&Symbol.for,wS=yn?Symbol.for("react.element"):60103,_S=yn?Symbol.for("react.portal"):60106,wg=yn?Symbol.for("react.fragment"):60107,_g=yn?Symbol.for("react.strict_mode"):60108,Sg=yn?Symbol.for("react.profiler"):60114,Eg=yn?Symbol.for("react.provider"):60109,Ag=yn?Symbol.for("react.context"):60110,SS=yn?Symbol.for("react.async_mode"):60111,Tg=yn?Symbol.for("react.concurrent_mode"):60111,Cg=yn?Symbol.for("react.forward_ref"):60112,Og=yn?Symbol.for("react.suspense"):60113,AK=yn?Symbol.for("react.suspense_list"):60120,kg=yn?Symbol.for("react.memo"):60115,Mg=yn?Symbol.for("react.lazy"):60116,TK=yn?Symbol.for("react.block"):60121,CK=yn?Symbol.for("react.fundamental"):60117,OK=yn?Symbol.for("react.responder"):60118,kK=yn?Symbol.for("react.scope"):60119;function di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case wS:switch(e=e.type,e){case SS:case Tg:case wg:case Sg:case _g:case Og:return e;default:switch(e=e&&e.$$typeof,e){case Ag:case Cg:case Mg:case kg:case Eg:return e;default:return t}}case _S:return t}}}function p4(e){return di(e)===Tg}Sr.AsyncMode=SS;Sr.ConcurrentMode=Tg;Sr.ContextConsumer=Ag;Sr.ContextProvider=Eg;Sr.Element=wS;Sr.ForwardRef=Cg;Sr.Fragment=wg;Sr.Lazy=Mg;Sr.Memo=kg;Sr.Portal=_S;Sr.Profiler=Sg;Sr.StrictMode=_g;Sr.Suspense=Og;Sr.isAsyncMode=function(e){return p4(e)||di(e)===SS};Sr.isConcurrentMode=p4;Sr.isContextConsumer=function(e){return di(e)===Ag};Sr.isContextProvider=function(e){return di(e)===Eg};Sr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wS};Sr.isForwardRef=function(e){return di(e)===Cg};Sr.isFragment=function(e){return di(e)===wg};Sr.isLazy=function(e){return di(e)===Mg};Sr.isMemo=function(e){return di(e)===kg};Sr.isPortal=function(e){return di(e)===_S};Sr.isProfiler=function(e){return di(e)===Sg};Sr.isStrictMode=function(e){return di(e)===_g};Sr.isSuspense=function(e){return di(e)===Og};Sr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wg||e===Tg||e===Sg||e===_g||e===Og||e===AK||typeof e=="object"&&e!==null&&(e.$$typeof===Mg||e.$$typeof===kg||e.$$typeof===Eg||e.$$typeof===Ag||e.$$typeof===Cg||e.$$typeof===CK||e.$$typeof===OK||e.$$typeof===kK||e.$$typeof===TK)};Sr.typeOf=di;(function(e){e.exports=Sr})(d4);var ES=d4.exports,MK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},IK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},RK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},v4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},AS={};AS[ES.ForwardRef]=RK;AS[ES.Memo]=v4;function K5(e){return ES.isMemo(e)?v4:AS[e.$$typeof]||MK}var FK=Object.defineProperty,PK=Object.getOwnPropertyNames,J5=Object.getOwnPropertySymbols,NK=Object.getOwnPropertyDescriptor,LK=Object.getPrototypeOf,eO=Object.prototype;function m4(e,t,r){if(typeof t!="string"){if(eO){var n=LK(t);n&&n!==eO&&m4(e,n,r)}var i=PK(t);J5&&(i=i.concat(J5(t)));for(var a=K5(e),o=K5(t),l=0;l<i.length;++l){var s=i[l];if(!IK[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var c=NK(t,s);try{FK(e,s,c)}catch{}}}}return e}var tO=m4,g4={exports:{}},Or={};/** @license React v17.0.2
1167
+ * react-is.production.min.js
1168
+ *
1169
+ * Copyright (c) Facebook, Inc. and its affiliates.
1170
+ *
1171
+ * This source code is licensed under the MIT license found in the
1172
+ * LICENSE file in the root directory of this source tree.
1173
+ */var Ig=60103,Rg=60106,jd=60107,Gd=60108,Wd=60114,Hd=60109,Vd=60110,qd=60112,Yd=60113,TS=60120,Xd=60115,Qd=60116,y4=60121,x4=60122,b4=60117,w4=60129,_4=60131;if(typeof Symbol=="function"&&Symbol.for){var wn=Symbol.for;Ig=wn("react.element"),Rg=wn("react.portal"),jd=wn("react.fragment"),Gd=wn("react.strict_mode"),Wd=wn("react.profiler"),Hd=wn("react.provider"),Vd=wn("react.context"),qd=wn("react.forward_ref"),Yd=wn("react.suspense"),TS=wn("react.suspense_list"),Xd=wn("react.memo"),Qd=wn("react.lazy"),y4=wn("react.block"),x4=wn("react.server.block"),b4=wn("react.fundamental"),w4=wn("react.debug_trace_mode"),_4=wn("react.legacy_hidden")}function Yi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ig:switch(e=e.type,e){case jd:case Wd:case Gd:case Yd:case TS:return e;default:switch(e=e&&e.$$typeof,e){case Vd:case qd:case Qd:case Xd:case Hd:return e;default:return t}}case Rg:return t}}}var DK=Hd,BK=Ig,$K=qd,zK=jd,UK=Qd,jK=Xd,GK=Rg,WK=Wd,HK=Gd,VK=Yd;Or.ContextConsumer=Vd;Or.ContextProvider=DK;Or.Element=BK;Or.ForwardRef=$K;Or.Fragment=zK;Or.Lazy=UK;Or.Memo=jK;Or.Portal=GK;Or.Profiler=WK;Or.StrictMode=HK;Or.Suspense=VK;Or.isAsyncMode=function(){return!1};Or.isConcurrentMode=function(){return!1};Or.isContextConsumer=function(e){return Yi(e)===Vd};Or.isContextProvider=function(e){return Yi(e)===Hd};Or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ig};Or.isForwardRef=function(e){return Yi(e)===qd};Or.isFragment=function(e){return Yi(e)===jd};Or.isLazy=function(e){return Yi(e)===Qd};Or.isMemo=function(e){return Yi(e)===Xd};Or.isPortal=function(e){return Yi(e)===Rg};Or.isProfiler=function(e){return Yi(e)===Wd};Or.isStrictMode=function(e){return Yi(e)===Gd};Or.isSuspense=function(e){return Yi(e)===Yd};Or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jd||e===Wd||e===w4||e===Gd||e===Yd||e===TS||e===_4||typeof e=="object"&&e!==null&&(e.$$typeof===Qd||e.$$typeof===Xd||e.$$typeof===Hd||e.$$typeof===Vd||e.$$typeof===qd||e.$$typeof===b4||e.$$typeof===y4||e[0]===x4)};Or.typeOf=Yi;(function(e){e.exports=Or})(g4);var qK=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],YK=["reactReduxForwardedRef"],XK=[],QK=[null,null];function ZK(e,t){var r=e[1];return[t.payload,r+1]}function rO(e,t,r){EK(function(){return e.apply(void 0,t)},r)}function KK(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function JK(e,t,r,n,i,a,o,l,s,c){if(!!e){var d=!1,y=null,g=function(){if(!d){var I=t.getState(),b,w;try{b=n(I,i.current)}catch(_){w=_,y=_}w||(y=null),b===a.current?o.current||s():(a.current=b,l.current=b,o.current=!0,c({type:"STORE_UPDATED",payload:{error:w}}))}};r.onStateChange=g,r.trySubscribe(),g();var m=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y};return m}}var eJ=function(){return[null,0]};function tJ(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(C){return"ConnectAdvanced("+C+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,c=r.shouldHandleStateChanges,d=c===void 0?!0:c,y=r.storeKey,g=y===void 0?"store":y;r.withRef;var m=r.forwardRef,E=m===void 0?!1:m,I=r.context,b=I===void 0?yK:I,w=yf(r,qK),_=b;return function(T){var P=T.displayName||T.name||"Component",D=i(P),Y=ga({},w,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:d,storeKey:g,displayName:D,wrappedComponentName:P,WrappedComponent:T}),j=w.pure;function re(Le){return e(Le.dispatch,Y)}var Ee=j?Kt.exports.useMemo:function(Le){return Le()};function me(Le){var ut=Kt.exports.useMemo(function(){var fe=Le.reactReduxForwardedRef,Fe=yf(Le,YK);return[Le.context,fe,Fe]},[Le]),nt=ut[0],De=ut[1],We=ut[2],_t=Kt.exports.useMemo(function(){return nt&&nt.Consumer&&g4.exports.isContextConsumer(Tn.createElement(nt.Consumer,null))?nt:_},[nt,_]),He=Kt.exports.useContext(_t),be=Boolean(Le.store)&&Boolean(Le.store.getState)&&Boolean(Le.store.dispatch);Boolean(He)&&Boolean(He.store);var Ve=be?Le.store:He.store,st=Kt.exports.useMemo(function(){return re(Ve)},[Ve]),Qe=Kt.exports.useMemo(function(){if(!d)return QK;var fe=SK(Ve,be?null:He.subscription),Fe=fe.notifyNestedSubs.bind(fe);return[fe,Fe]},[Ve,be,He]),ct=Qe[0],yt=Qe[1],Wt=Kt.exports.useMemo(function(){return be?He:ga({},He,{subscription:ct})},[be,He,ct]),Vt=Kt.exports.useReducer(ZK,XK,eJ),Ze=Vt[0],At=Ze[0],Ut=Vt[1];if(At&&At.error)throw At.error;var Ce=Kt.exports.useRef(),W=Kt.exports.useRef(We),ae=Kt.exports.useRef(),M=Kt.exports.useRef(!1),A=Ee(function(){return ae.current&&We===W.current?ae.current:st(Ve.getState(),We)},[Ve,At,We]);rO(KK,[W,Ce,M,We,A,ae,yt]),rO(JK,[d,Ve,ct,st,W,Ce,M,ae,yt,Ut],[Ve,ct,st]);var k=Kt.exports.useMemo(function(){return ma(T,{...A,ref:De})},[De,T,A]),B=Kt.exports.useMemo(function(){return d?ma(_t.Provider,{value:Wt,children:k}):k},[_t,k,Wt]);return B}var ke=j?Tn.memo(me):me;if(ke.WrappedComponent=T,ke.displayName=me.displayName=D,E){var Pe=Tn.forwardRef(function(ut,nt){return ma(ke,{...ut,reactReduxForwardedRef:nt})});return Pe.displayName=D,Pe.WrappedComponent=T,tO(Pe,T)}return tO(ke,T)}}function nO(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mb(e,t){if(nO(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!nO(e[r[i]],t[r[i]]))return!1;return!0}function rJ(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function CS(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function iO(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function S4(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=iO(e);var c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=iO(c),c=a(l,s)),c},a}}function nJ(e){return typeof e=="function"?S4(e):void 0}function iJ(e){return e?void 0:CS(function(t){return{dispatch:t}})}function aJ(e){return e&&typeof e=="object"?CS(function(t){return rJ(e,t)}):void 0}const oJ=[nJ,iJ,aJ];function uJ(e){return typeof e=="function"?S4(e):void 0}function lJ(e){return e?void 0:CS(function(){return{}})}const sJ=[uJ,lJ];function fJ(e,t,r){return ga({},r,e,t)}function cJ(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(c,d,y){var g=e(c,d,y);return o?(!i||!a(g,l))&&(l=g):(o=!0,l=g),l}}}function hJ(e){return typeof e=="function"?cJ(e):void 0}function dJ(e){return e?void 0:function(){return fJ}}const pJ=[hJ,dJ];var vJ=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function mJ(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function gJ(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,d,y,g,m;function E(C,T){return c=C,d=T,y=e(c,d),g=t(n,d),m=r(y,g,d),s=!0,m}function I(){return y=e(c,d),t.dependsOnOwnProps&&(g=t(n,d)),m=r(y,g,d),m}function b(){return e.dependsOnOwnProps&&(y=e(c,d)),t.dependsOnOwnProps&&(g=t(n,d)),m=r(y,g,d),m}function w(){var C=e(c,d),T=!l(C,y);return y=C,T&&(m=r(y,g,d)),m}function _(C,T){var P=!o(T,d),D=!a(C,c);return c=C,d=T,P&&D?I():P?b():D?w():m}return function(T,P){return s?_(T,P):E(T,P)}}function yJ(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=yf(t,vJ),o=r(e,a),l=n(e,a),s=i(e,a),c=a.pure?gJ:mJ;return c(o,l,s,e,a)}var xJ=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function gb(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function bJ(e,t){return e===t}function wJ(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?tJ:r,i=t.mapStateToPropsFactories,a=i===void 0?sJ:i,o=t.mapDispatchToPropsFactories,l=o===void 0?oJ:o,s=t.mergePropsFactories,c=s===void 0?pJ:s,d=t.selectorFactory,y=d===void 0?yJ:d;return function(m,E,I,b){b===void 0&&(b={});var w=b,_=w.pure,C=_===void 0?!0:_,T=w.areStatesEqual,P=T===void 0?bJ:T,D=w.areOwnPropsEqual,Y=D===void 0?mb:D,j=w.areStatePropsEqual,re=j===void 0?mb:j,Ee=w.areMergedPropsEqual,me=Ee===void 0?mb:Ee,ke=yf(w,xJ),Pe=gb(m,a,"mapStateToProps"),Le=gb(E,l,"mapDispatchToProps"),ut=gb(I,c,"mergeProps");return n(y,ga({methodName:"connect",getDisplayName:function(De){return"Connect("+De+")"},shouldHandleStateChanges:Boolean(m),initMapStateToProps:Pe,initMapDispatchToProps:Le,initMergeProps:ut,pure:C,areStatesEqual:P,areOwnPropsEqual:Y,areStatePropsEqual:re,areMergedPropsEqual:me},ke))}}const E4=wJ();bK(v_.exports.unstable_batchedUpdates);function _J(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function A4(e,t){var r=Kt.exports.useState(function(){return{inputs:t,result:e()}})[0],n=Kt.exports.useRef(!0),i=Kt.exports.useRef(r),a=n.current||Boolean(t&&i.current.inputs&&_J(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return Kt.exports.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function SJ(e,t){return A4(function(){return e},t)}var zn=A4,dn=SJ,EJ=!0,yb="Invariant failed";function AJ(e,t){if(!e){if(EJ)throw new Error(yb);var r=typeof t=="function"?t():t,n=r?yb+": "+r:yb;throw new Error(n)}}var Gs=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,l=i-r,s={top:r,right:n,bottom:i,left:a,width:o,height:l,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return s},T4=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},aO=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},TJ=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},xb={top:0,right:0,bottom:0,left:0},OS=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?xb:n,a=t.border,o=a===void 0?xb:a,l=t.padding,s=l===void 0?xb:l,c=Gs(T4(r,i)),d=Gs(aO(r,o)),y=Gs(aO(d,s));return{marginBox:c,borderBox:Gs(r),paddingBox:d,contentBox:y,margin:i,border:o,padding:s}},bi=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&AJ(!1),i},CJ=function(){return{x:window.pageXOffset,y:window.pageYOffset}},OJ=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=TJ(n,r);return OS({borderBox:l,border:i,margin:a,padding:o})},s_=function(t,r){return r===void 0&&(r=CJ()),OJ(t,r)},C4=function(t,r){var n={top:bi(r.marginTop),right:bi(r.marginRight),bottom:bi(r.marginBottom),left:bi(r.marginLeft)},i={top:bi(r.paddingTop),right:bi(r.paddingRight),bottom:bi(r.paddingBottom),left:bi(r.paddingLeft)},a={top:bi(r.borderTopWidth),right:bi(r.borderRightWidth),bottom:bi(r.borderBottomWidth),left:bi(r.borderLeftWidth)};return OS({borderBox:t,margin:n,padding:i,border:a})},O4=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return C4(r,n)},kJ=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];r=l,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){!n||(cancelAnimationFrame(n),n=null)},i};const MJ=kJ;function k4(e,t){}k4.bind(null,"warn");k4.bind(null,"error");function IJ(){}function RJ(e,t){return ga({},e,{},t)}function FJ(e,t,r){var n=t.map(function(i){var a=RJ(r,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){n.forEach(function(a){a()})}}var PJ="Invariant failed";function Sm(e){this.message=e}Sm.prototype.toString=function(){return this.message};function si(e,t){if(!e)throw new Sm(PJ)}(function(e){Dd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.callbacks=null,n.unbind=IJ,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof Sm&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=FJ(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Sm){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(Tn.Component);var gl={x:0,y:0},NJ=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},LJ=function(t,r){return t.x===r.x&&t.y===r.y},DJ=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},BJ=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},$J=function(e,t){var r=Gs({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r},zJ=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},UJ={top:0,right:0,bottom:0,left:0},jJ=function(t,r){return r?zJ(t,r.scroll.diff.displacement):t},GJ=function(t,r,n){if(n&&n.increasedBy){var i;return ga({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},WJ=function(t,r){return r&&r.shouldClipSubject?$J(r.pageMarginBox,t):Gs(t)},HJ=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=jJ(t.marginBox,i),o=GJ(a,n,r),l=WJ(o,i);return{page:t,withPlaceholder:r,active:l}};function M4(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function VJ(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function I4(e,t){if(e.find)return e.find(t);var r=VJ(e,t);if(r!==-1)return e[r]}Kr(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});Kr(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});var qJ=Kr(function(e){return M4(e)}),YJ=Kr(function(e){return M4(e)});Kr(function(e,t){var r=YJ(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function XJ(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}Kr(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})});var QJ={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ZJ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};Kr(function(t,r){var n=r[t.line];return{value:n,point:BJ(t.line,n)}});var x0=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},KJ=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},JJ=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},kS={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},_d={opacity:{drop:0,combining:.7},scale:{drop:.75}},eee={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Wu=eee.outOfTheWay+"s "+kS.outOfTheWay,b0={fluid:"opacity "+Wu,snap:"transform "+Wu+", opacity "+Wu,drop:function(t){var r=t+"s "+kS.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Wu,placeholder:"height "+Wu+", width "+Wu+", margin "+Wu},oO=function(t){return LJ(t,gl)?null:"translate("+t.x+"px, "+t.y+"px)"},f_={moveTo:oO,drop:function(t,r){var n=oO(t);return n?r?n+" scale("+_d.scale.drop+")":n:null}},R4=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=NJ({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},tee=function(){var e=document.documentElement;return e||si(!1),e},ree=function(){var e=tee(),t=R4({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};Kr(function(e){return qJ(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var nee="data-rbd",uO={contextId:nee+"-scroll-container-context-id"},Qh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kt.exports.useLayoutEffect:Kt.exports.useEffect,F4=Tn.createContext(null),iee=0,aee={separator:"::"};function P4(e,t){return t===void 0&&(t=aee),zn(function(){return""+e+t.separator+iee++},[t.separator,e])}var MS=Tn.createContext(null);function oee(e){var t=Kt.exports.useRef(e);return Kt.exports.useEffect(function(){t.current=e}),t}var uee=9,lee=13,see=33,fee=34,cee=35,hee=36,Xv;Xv={},Xv[lee]=!0,Xv[uee]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=I4(t,function(n){return"on"+n in document});return r||e})();var Ts;Ts={},Ts[fee]=!0,Ts[see]=!0,Ts[hee]=!0,Ts[cee]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=I4(t,function(n){return n in Element.prototype});return r||e})();var N4=function(t){return function(r){return t===r}},dee=N4("scroll"),pee=N4("auto"),lO=function(t,r){return r(t.overflowX)||r(t.overflowY)},vee=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return lO(n,dee)||lO(n,pee)},mee=function(){return!1},gee=function e(t){return t==null?null:t===document.body?mee()?t:null:t===document.documentElement?null:vee(t)?t:e(t.parentElement)},c_=function(e){return{x:e.scrollLeft,y:e.scrollTop}},yee=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},xee=function(e){var t=gee(e),r=yee(e);return{closestScrollable:t,isFixedOnPage:r}},bee=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,s=e.closest,c=function(){if(!s)return null;var m=s.scrollSize,E=s.client,I=R4({scrollHeight:m.scrollHeight,scrollWidth:m.scrollWidth,height:E.paddingBox.height,width:E.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:E,scrollSize:m,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:I,diff:{value:gl,displacement:gl}}}}(),d=a==="vertical"?QJ:ZJ,y=HJ({page:l,withPlaceholder:null,axis:d,frame:c}),g={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:l,frame:c,subject:y};return g},wee=function(t,r){var n=O4(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,l=a+r.scrollWidth,s={top:i,right:l,bottom:o,left:a},c=T4(s,n.border),d=OS({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return d},_ee=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=n.closestScrollable,d=wee(t,c),y=s_(d,i),g=function(){if(!c)return null;var E=O4(c),I={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:E,page:s_(E,i),scroll:c_(c),scrollSize:I,shouldClipSubject:s}}(),m=bee({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:y,closest:g});return m},See={passive:!1},Eee={passive:!0},sO=function(e){return e.shouldPublishImmediately?See:Eee};function Em(e){var t=Kt.exports.useContext(e);return t||si(!1),t}var Qv=function(t){return t&&t.env.closestScrollable||null};function Aee(e){var t=Kt.exports.useRef(null),r=Em(MS),n=P4("droppable"),i=r.registry,a=r.marshal,o=oee(e),l=zn(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=Kt.exports.useRef(l),c=zn(function(){return Kr(function(T,P){t.current||si(!1);var D={x:T,y:P};a.updateDroppableScroll(l.id,D)})},[l.id,a]),d=dn(function(){var T=t.current;return!T||!T.env.closestScrollable?gl:c_(T.env.closestScrollable)},[]),y=dn(function(){var T=d();c(T.x,T.y)},[d,c]),g=zn(function(){return MJ(y)},[y]),m=dn(function(){var T=t.current,P=Qv(T);T&&P||si(!1);var D=T.scrollOptions;if(D.shouldPublishImmediately){y();return}g()},[g,y]),E=dn(function(T,P){t.current&&si(!1);var D=o.current,Y=D.getDroppableRef();Y||si(!1);var j=xee(Y),re={ref:Y,descriptor:l,env:j,scrollOptions:P};t.current=re;var Ee=_ee({ref:Y,descriptor:l,env:j,windowScroll:T,direction:D.direction,isDropDisabled:D.isDropDisabled,isCombineEnabled:D.isCombineEnabled,shouldClipSubject:!D.ignoreContainerClipping}),me=j.closestScrollable;return me&&(me.setAttribute(uO.contextId,r.contextId),me.addEventListener("scroll",m,sO(re.scrollOptions))),Ee},[r.contextId,l,m,o]),I=dn(function(){var T=t.current,P=Qv(T);return T&&P||si(!1),c_(P)},[]),b=dn(function(){var T=t.current;T||si(!1);var P=Qv(T);t.current=null,P&&(g.cancel(),P.removeAttribute(uO.contextId),P.removeEventListener("scroll",m,sO(T.scrollOptions)))},[m,g]),w=dn(function(T){var P=t.current;P||si(!1);var D=Qv(P);D||si(!1),D.scrollTop+=T.y,D.scrollLeft+=T.x},[]),_=zn(function(){return{getDimensionAndWatchScroll:E,getScrollWhileDragging:I,dragStopped:b,scroll:w}},[b,E,I,w]),C=zn(function(){return{uniqueId:n,descriptor:l,callbacks:_}},[_,l,n]);Qh(function(){return s.current=C.descriptor,i.droppable.register(C),function(){t.current&&b(),i.droppable.unregister(C)}},[_,l,b,C,a,i.droppable]),Qh(function(){!t.current||a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Qh(function(){!t.current||a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function bb(){}var fO={width:0,height:0,margin:UJ},Tee=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?fO:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Cee=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=Tee({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?b0.placeholder:null}};function Oee(e){var t=Kt.exports.useRef(null),r=dn(function(){!t.current||(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=Kt.exports.useState(e.animate==="open"),s=l[0],c=l[1];Kt.exports.useEffect(function(){return s?n!=="open"?(r(),c(!1),bb):t.current?bb:(t.current=setTimeout(function(){t.current=null,c(!1)}),r):bb},[n,s,r]);var d=dn(function(g){g.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),y=Cee({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Tn.createElement(e.placeholder.tagName,{style:y,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var kee=Tn.memo(Oee),IS=Tn.createContext(null),Mee=function(e){Dd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.state={isVisible:Boolean(n.props.on),data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,a){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:a.isVisible?{isVisible:!0,data:a.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(i.on),data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(Tn.PureComponent),cO={dragging:5e3,dropAnimating:4500},Iee=function(t,r){return r?b0.drop(r.duration):t?b0.snap:b0.fluid},Ree=function(t,r){return t?r?_d.opacity.drop:_d.opacity.combining:null},Fee=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function Pee(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),l=Fee(e),s=Boolean(a),c=s?f_.drop(n,o):f_.moveTo(n),d={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Iee(l,a),transform:c,opacity:Ree(o,s),zIndex:s?cO.dropAnimating:cO.dragging,pointerEvents:"none"};return d}function Nee(e){return{transform:f_.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function Lee(e){return e.type==="DRAGGING"?Pee(e):Nee(e)}function Dee(e,t,r){r===void 0&&(r=gl);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=C4(i,n),o=s_(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},c={descriptor:e,placeholder:l,displaceBy:s,client:a,page:o};return c}function Bee(e){var t=P4("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,s=zn(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),c=dn(function(m){var E=i();return E||si(!1),Dee(r,E,m)},[r,i]),d=zn(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:c}},[r,c,s,t]),y=Kt.exports.useRef(d),g=Kt.exports.useRef(!0);Qh(function(){return n.draggable.register(y.current),function(){return n.draggable.unregister(y.current)}},[n.draggable]),Qh(function(){if(g.current){g.current=!1;return}var m=y.current;y.current=d,n.draggable.update(d,m)},[d,n.draggable])}function $ee(e){e.preventDefault()}function zee(e){var t=Kt.exports.useRef(null),r=dn(function(re){t.current=re},[]),n=dn(function(){return t.current},[]),i=Em(MS),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=Em(IS),c=s.type,d=s.droppableId,y=zn(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:d}},[e.draggableId,e.index,c,d]),g=e.children,m=e.draggableId,E=e.isEnabled,I=e.shouldRespectForcePress,b=e.canDragInteractiveElements,w=e.isClone,_=e.mapped,C=e.dropAnimationFinished;if(!w){var T=zn(function(){return{descriptor:y,registry:l,getDraggableRef:n,canDragInteractiveElements:b,shouldRespectForcePress:I,isEnabled:E}},[y,l,n,b,I,E]);Bee(T)}var P=zn(function(){return E?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:$ee}:null},[a,o,m,E]),D=dn(function(re){_.type==="DRAGGING"&&(!_.dropping||re.propertyName==="transform"&&C())},[C,_]),Y=zn(function(){var re=Lee(_),Ee=_.type==="DRAGGING"&&_.dropping?D:null,me={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:re,onTransitionEnd:Ee},dragHandleProps:P};return me},[a,P,m,_,D,r]),j=zn(function(){return{draggableId:y.id,type:y.type,source:{index:y.index,droppableId:y.droppableId}}},[y.droppableId,y.id,y.index,y.type]);return g(Y,_.snapshot,j)}var L4=function(e,t){return e===t},D4=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},Uee=function(t){return t.combine?t.combine.draggableId:null},jee=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function Gee(){var e=Kr(function(i,a){return{x:i,y:a}}),t=Kr(function(i,a,o,l,s){return{isDragging:!0,isClone:a,isDropAnimating:Boolean(s),dropAnimation:s,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=Kr(function(i,a,o,l,s,c,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:c,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,l,s,c,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],c=x0(a.impact),d=jee(a.impact),y=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,s,o.isClone,c,d,y)}if(a.phase==="DROP_ANIMATING"){var g=a.completed;if(g.result.draggableId!==o.draggableId)return null;var m=o.isClone,E=a.dimensions.draggables[o.draggableId],I=g.result,b=I.mode,w=D4(I),_=Uee(I),C=a.dropDuration,T={duration:C,curve:kS.drop,moveTo:a.newHomeClientOffset,opacity:_?_d.opacity.drop:null,scale:_?_d.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:E,dropping:T,draggingOver:w,combineWith:_,mode:b,forceShouldAnimate:null,snapshot:t(b,m,w,_,T)}}}return null};return n}function B4(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Wee={mapped:{type:"SECONDARY",offset:gl,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:B4(null)}};function Hee(){var e=Kr(function(o,l){return{x:o,y:l}}),t=Kr(B4),r=Kr(function(o,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(gl,l,!0):null},i=function(l,s,c,d){var y=c.displaced.visible[l],g=Boolean(d.inVirtualList&&d.effected[l]),m=XJ(c),E=m&&m.draggableId===l?s:null;if(!y){if(!g)return n(E);if(c.displaced.invisible[l])return null;var I=DJ(d.displacedBy.point),b=e(I.x,I.y);return r(b,E,!0)}if(g)return n(E);var w=c.displacedBy.point,_=e(w.x,w.y);return r(_,E,y.shouldAnimate)},a=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var c=l.completed;return c.result.draggableId===s.draggableId?null:i(s.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return a}var Vee=function(){var t=Gee(),r=Hee(),n=function(a,o){return t(a,o)||r(a,o)||Wee};return n},qee={dropAnimationFinished:JJ},Yee=E4(Vee,qee,null,{context:F4,pure:!0,areStatePropsEqual:L4})(zee);function $4(e){var t=Em(IS),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:ma(Yee,{...e})}function Gte(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return ma($4,{...e,isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n})}function Xee(e){var t=Kt.exports.useContext(MS);t||si(!1);var r=t.contextId,n=t.isMovementAllowed,i=Kt.exports.useRef(null),a=Kt.exports.useRef(null),o=e.children,l=e.droppableId,s=e.type,c=e.mode,d=e.direction,y=e.ignoreContainerClipping,g=e.isDropDisabled,m=e.isCombineEnabled,E=e.snapshot,I=e.useClone,b=e.updateViewportMaxScroll,w=e.getContainerForClone,_=dn(function(){return i.current},[]),C=dn(function(me){i.current=me},[]);dn(function(){return a.current},[]);var T=dn(function(me){a.current=me},[]),P=dn(function(){n()&&b({maxScroll:ree()})},[n,b]);Aee({droppableId:l,type:s,mode:c,direction:d,isDropDisabled:g,isCombineEnabled:m,ignoreContainerClipping:y,getDroppableRef:_});var D=ma(Mee,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder,children:function(me){var ke=me.onClose,Pe=me.data,Le=me.animate;return ma(kee,{placeholder:Pe,onClose:ke,innerRef:T,animate:Le,contextId:r,onTransitionEnd:P})}}),Y=zn(function(){return{innerRef:C,placeholder:D,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,D,C]),j=I?I.dragging.draggableId:null,re=zn(function(){return{droppableId:l,type:s,isUsingCloneFor:j}},[l,j,s]);function Ee(){if(!I)return null;var me=I.dragging,ke=I.render,Pe=ma($4,{draggableId:me.draggableId,index:me.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0,children:function(Le,ut){return ke(Le,ut,me)}});return Eh.createPortal(Pe,w())}return iY(IS.Provider,{value:re,children:[o(Y,E),Ee()]})}var wb=function(t,r){return t===r.droppable.type},hO=function(t,r){return r.draggables[t.draggable.id]},Qee=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ga({},t,{shouldAnimatePlaceholder:!1}),n=Kr(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=Kr(function(o,l,s,c,d,y){var g=d.descriptor.id,m=d.descriptor.droppableId===o;if(m){var E=y?{render:y,dragging:n(d.descriptor)}:null,I={isDraggingOver:s,draggingOverWith:s?g:null,draggingFromThisWith:g,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:I,useClone:E}}if(!l)return r;if(!c)return t;var b={isDraggingOver:s,draggingOverWith:g,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}}),a=function(l,s){var c=s.droppableId,d=s.type,y=!s.isDropDisabled,g=s.renderClone;if(l.isDragging){var m=l.critical;if(!wb(d,m))return r;var E=hO(m,l.dimensions),I=x0(l.impact)===c;return i(c,y,I,I,E,g)}if(l.phase==="DROP_ANIMATING"){var b=l.completed;if(!wb(d,b.critical))return r;var w=hO(b.critical,l.dimensions);return i(c,y,D4(b.result)===c,x0(b.impact)===c,w,g)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!wb(d,_.critical))return r;var C=x0(_.impact)===c,T=Boolean(_.impact.at&&_.impact.at.type==="COMBINE"),P=_.critical.droppable.id===c;return C?T?t:r:P?t:r}return r};return a},Zee={updateViewportMaxScroll:KJ};function Kee(){return document.body||si(!1),document.body}var Jee={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Kee},ete=E4(Qee,Zee,null,{context:F4,pure:!0,areStatePropsEqual:L4})(Xee);ete.defaultProps=Jee;var tte=typeof performance=="object"&&typeof performance.now=="function",dO=tte?function(){return performance.now()}:function(){return Date.now()};function pO(e){cancelAnimationFrame(e.id)}function rte(e,t){var r=dO();function n(){dO()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Cs=null;function vO(e){if(e===void 0&&(e=!1),Cs===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Cs="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Cs="negative":Cs="positive-ascending"),document.body.removeChild(t),Cs}return Cs}var nte=150,ite=function(t,r){return t};function ate(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return r=t=function(g){Dd(m,g);function m(I){var b;return b=g.call(this,I)||this,b._instanceProps=c(b.props,Hv(Hv(b))),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:Hv(Hv(b)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=Kr(function(w,_,C,T){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:_,visibleStartIndex:C,visibleStopIndex:T})}),b._callOnScroll=void 0,b._callOnScroll=Kr(function(w,_,C){return b.props.onScroll({scrollDirection:w,scrollOffset:_,scrollUpdateWasRequested:C})}),b._getItemStyle=void 0,b._getItemStyle=function(w){var _=b.props,C=_.direction,T=_.itemSize,P=_.layout,D=b._getItemStyleCache(d&&T,d&&P,d&&C),Y;if(D.hasOwnProperty(w))Y=D[w];else{var j=n(b.props,w,b._instanceProps),re=a(b.props,w,b._instanceProps),Ee=C==="horizontal"||P==="horizontal",me=C==="rtl",ke=Ee?j:0;D[w]=Y={position:"absolute",left:me?void 0:ke,right:me?ke:void 0,top:Ee?0:j,height:Ee?"100%":re,width:Ee?re:"100%"}}return Y},b._getItemStyleCache=void 0,b._getItemStyleCache=Kr(function(w,_,C){return{}}),b._onScrollHorizontal=function(w){var _=w.currentTarget,C=_.clientWidth,T=_.scrollLeft,P=_.scrollWidth;b.setState(function(D){if(D.scrollOffset===T)return null;var Y=b.props.direction,j=T;if(Y==="rtl")switch(vO()){case"negative":j=-T;break;case"positive-descending":j=P-C-T;break}return j=Math.max(0,Math.min(j,P-C)),{isScrolling:!0,scrollDirection:D.scrollOffset<T?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(w){var _=w.currentTarget,C=_.clientHeight,T=_.scrollHeight,P=_.scrollTop;b.setState(function(D){if(D.scrollOffset===P)return null;var Y=Math.max(0,Math.min(P,T-C));return{isScrolling:!0,scrollDirection:D.scrollOffset<Y?"forward":"backward",scrollOffset:Y,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(w){var _=b.props.outerRef;b._outerRef=w,typeof _=="function"?_(w):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=w)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&pO(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=rte(b._resetIsScrolling,nte)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}m.getDerivedStateFromProps=function(b,w){return ote(b,w),y(b),null};var E=m.prototype;return E.scrollTo=function(b){b=Math.max(0,b),this.setState(function(w){return w.scrollOffset===b?null:{scrollDirection:w.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(b,w){w===void 0&&(w="auto");var _=this.props.itemCount,C=this.state.scrollOffset;b=Math.max(0,Math.min(b,_-1)),this.scrollTo(o(this.props,b,w,C,this._instanceProps))},E.componentDidMount=function(){var b=this.props,w=b.direction,_=b.initialScrollOffset,C=b.layout;if(typeof _=="number"&&this._outerRef!=null){var T=this._outerRef;w==="horizontal"||C==="horizontal"?T.scrollLeft=_:T.scrollTop=_}this._callPropsCallbacks()},E.componentDidUpdate=function(){var b=this.props,w=b.direction,_=b.layout,C=this.state,T=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var D=this._outerRef;if(w==="horizontal"||_==="horizontal")if(w==="rtl")switch(vO()){case"negative":D.scrollLeft=-T;break;case"positive-ascending":D.scrollLeft=T;break;default:var Y=D.clientWidth,j=D.scrollWidth;D.scrollLeft=j-Y-T;break}else D.scrollLeft=T;else D.scrollTop=T}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&pO(this._resetIsScrollingTimeoutId)},E.render=function(){var b=this.props,w=b.children,_=b.className,C=b.direction,T=b.height,P=b.innerRef,D=b.innerElementType,Y=b.innerTagName,j=b.itemCount,re=b.itemData,Ee=b.itemKey,me=Ee===void 0?ite:Ee,ke=b.layout,Pe=b.outerElementType,Le=b.outerTagName,ut=b.style,nt=b.useIsScrolling,De=b.width,We=this.state.isScrolling,_t=C==="horizontal"||ke==="horizontal",He=_t?this._onScrollHorizontal:this._onScrollVertical,be=this._getRangeToRender(),Ve=be[0],st=be[1],Qe=[];if(j>0)for(var ct=Ve;ct<=st;ct++)Qe.push(Kt.exports.createElement(w,{data:re,key:me(ct,re),index:ct,isScrolling:nt?We:void 0,style:this._getItemStyle(ct)}));var yt=i(this.props,this._instanceProps);return Kt.exports.createElement(Pe||Le||"div",{className:_,onScroll:He,ref:this._outerRefSetter,style:ga({position:"relative",height:T,width:De,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},ut)},Kt.exports.createElement(D||Y||"div",{children:Qe,ref:P,style:{height:_t?"100%":yt,pointerEvents:We?"none":void 0,width:_t?yt:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var w=this._getRangeToRender(),_=w[0],C=w[1],T=w[2],P=w[3];this._callOnItemsRendered(_,C,T,P)}}if(typeof this.props.onScroll=="function"){var D=this.state,Y=D.scrollDirection,j=D.scrollOffset,re=D.scrollUpdateWasRequested;this._callOnScroll(Y,j,re)}},E._getRangeToRender=function(){var b=this.props,w=b.itemCount,_=b.overscanCount,C=this.state,T=C.isScrolling,P=C.scrollDirection,D=C.scrollOffset;if(w===0)return[0,0,0,0];var Y=l(this.props,D,this._instanceProps),j=s(this.props,Y,D,this._instanceProps),re=!T||P==="backward"?Math.max(1,_):1,Ee=!T||P==="forward"?Math.max(1,_):1;return[Math.max(0,Y-re),Math.max(0,Math.min(w-1,j+Ee)),Y,j]},m}(Kt.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var ote=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},Wte=ate({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,i){var a=t.direction,o=t.height,l=t.itemCount,s=t.itemSize,c=t.layout,d=t.width,y=a==="horizontal"||c==="horizontal",g=y?d:o,m=Math.max(0,l*s-g),E=Math.min(m,r*s),I=Math.max(0,r*s-g+s);switch(n==="smart"&&(i>=I-g&&i<=E+g?n="auto":n="center"),n){case"start":return E;case"end":return I;case"center":{var b=Math.round(I+(E-I)/2);return b<Math.ceil(g/2)?0:b>m+Math.floor(g/2)?m:b}case"auto":default:return i>=I&&i<=E?i:i<I?I:E}},getStartIndexForOffset:function(t,r){var n=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(t,r,n){var i=t.direction,a=t.height,o=t.itemCount,l=t.itemSize,s=t.layout,c=t.width,d=i==="horizontal"||s==="horizontal",y=r*l,g=d?c:a,m=Math.ceil((g+n-y)/l);return Math.max(0,Math.min(o-1,r+m-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),ute=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},lte=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),ste=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fte=function(e,t){if(typeof t!="function"&&t!==null)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)},mO=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},cte=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ti=void 0;typeof window<"u"?Ti=window:typeof self<"u"?Ti=self:Ti=global;var h_=null,d_=null,gO=20,_b=Ti.clearTimeout,yO=Ti.setTimeout,Sb=Ti.cancelAnimationFrame||Ti.mozCancelAnimationFrame||Ti.webkitCancelAnimationFrame,xO=Ti.requestAnimationFrame||Ti.mozRequestAnimationFrame||Ti.webkitRequestAnimationFrame;Sb==null||xO==null?(h_=_b,d_=function(t){return yO(t,gO)}):(h_=function(t){var r=cte(t,2),n=r[0],i=r[1];Sb(n),_b(i)},d_=function(t){var r=xO(function(){_b(n),t()}),n=yO(function(){Sb(r),t()},gO);return[r,n]});function hte(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(T){var P=T.__resizeTriggers__,D=P.firstElementChild,Y=P.lastElementChild,j=D.firstElementChild;Y.scrollLeft=Y.scrollWidth,Y.scrollTop=Y.scrollHeight,j.style.width=D.offsetWidth+1+"px",j.style.height=D.offsetHeight+1+"px",D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight},a=function(T){return T.offsetWidth!==T.__resizeLast__.width||T.offsetHeight!==T.__resizeLast__.height},l=function(T){if(!(T.target.className&&typeof T.target.className.indexOf=="function"&&T.target.className.indexOf("contract-trigger")<0&&T.target.className.indexOf("expand-trigger")<0)){var P=this;o(this),this.__resizeRAF__&&h_(this.__resizeRAF__),this.__resizeRAF__=d_(function(){a(P)&&(P.__resizeLast__.width=P.offsetWidth,P.__resizeLast__.height=P.offsetHeight,P.__resizeListeners__.forEach(function(j){j.call(P,T)}))})}};var c=!1,d="";n="animationstart";var y="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m="";{var E=document.createElement("fakeelement");if(E.style.animationName!==void 0&&(c=!0),c===!1){for(var I=0;I<y.length;I++)if(E.style[y[I]+"AnimationName"]!==void 0){m=y[I],d="-"+m.toLowerCase()+"-",n=g[I],c=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var b=function(T){if(!T.getElementById("detectElementResize")){var P=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',D=T.head||T.getElementsByTagName("head")[0],Y=T.createElement("style");Y.id="detectElementResize",Y.type="text/css",e!=null&&Y.setAttribute("nonce",e),Y.styleSheet?Y.styleSheet.cssText=P:Y.appendChild(T.createTextNode(P)),D.appendChild(Y)}},w=function(T,P){if(s)T.attachEvent("onresize",P);else{if(!T.__resizeTriggers__){var D=T.ownerDocument,Y=Ti.getComputedStyle(T);Y&&Y.position==="static"&&(T.style.position="relative"),b(D),T.__resizeLast__={},T.__resizeListeners__=[],(T.__resizeTriggers__=D.createElement("div")).className="resize-triggers";var j=D.createElement("div");j.className="expand-trigger",j.appendChild(D.createElement("div"));var re=D.createElement("div");re.className="contract-trigger",T.__resizeTriggers__.appendChild(j),T.__resizeTriggers__.appendChild(re),T.appendChild(T.__resizeTriggers__),o(T),T.addEventListener("scroll",l,!0),n&&(T.__resizeTriggers__.__animationListener__=function(me){me.animationName===r&&o(T)},T.__resizeTriggers__.addEventListener(n,T.__resizeTriggers__.__animationListener__))}T.__resizeListeners__.push(P)}},_=function(T,P){if(s)T.detachEvent("onresize",P);else if(T.__resizeListeners__.splice(T.__resizeListeners__.indexOf(P),1),!T.__resizeListeners__.length){T.removeEventListener("scroll",l,!0),T.__resizeTriggers__.__animationListener__&&(T.__resizeTriggers__.removeEventListener(n,T.__resizeTriggers__.__animationListener__),T.__resizeTriggers__.__animationListener__=null);try{T.__resizeTriggers__=!T.removeChild(T.__resizeTriggers__)}catch{}}};return{addResizeListener:w,removeResizeListener:_}}var dte=function(e){fte(t,e);function t(){var r,n,i,a;ute(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=mO(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(l))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var c=i.props,d=c.disableHeight,y=c.disableWidth,g=c.onResize;if(i._parentNode){var m=i._parentNode.offsetHeight||0,E=i._parentNode.offsetWidth||0,I=window.getComputedStyle(i._parentNode)||{},b=parseInt(I.paddingLeft,10)||0,w=parseInt(I.paddingRight,10)||0,_=parseInt(I.paddingTop,10)||0,C=parseInt(I.paddingBottom,10)||0,T=m-_-C,P=E-b-w;(!d&&i.state.height!==T||!y&&i.state.width!==P)&&(i.setState({height:m-_-C,width:E-b-w}),g({height:m,width:E}))}},i._setRef=function(c){i._autoSizer=c},n),mO(i,a)}return lte(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=hte(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,a=n.className,o=n.disableHeight,l=n.disableWidth,s=n.style,c=this.state,d=c.height,y=c.width,g={overflow:"visible"},m={},E=!1;return o||(d===0&&(E=!0),g.height=0,m.height=d),l||(y===0&&(E=!0),g.width=0,m.width=y),Kt.exports.createElement("div",{className:a,ref:this._setRef,style:ste({},g,s)},!E&&i(m))}}]),t}(Kt.exports.PureComponent);dte.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var pte=typeof _r=="object"&&_r&&_r.Object===Object&&_r,vte=typeof self=="object"&&self&&self.Object===Object&&self,mte=pte||vte||Function("return this")(),bO=mte.Symbol;bO&&bO.isConcatSpreadable;export{hr as A,Nte as B,Kr as C,yte as D,ma as E,Bte as F,Dte as G,zte as H,$te as I,iY as J,Eh as K,bg as L,Lte as M,jte as N,dte as O,Ute as P,Wte as Q,Tn as R,Gte as S,ete as T,E2 as U,bte as a,Ate as b,Tte as c,e$ as d,eR as e,wte as f,_te as g,Ste as h,I2 as i,B7 as j,Cte as k,Vm as l,Ete as m,fR as n,HR as o,sR as p,kte as q,xte as r,Ote as s,Yz as t,Mte as u,Ite as v,Rte as w,Fte as x,Pte as y,Kt as z};
1174
+ //# sourceMappingURL=vendor.d4f8636b.js.map