@deephaven/embed-grid 0.24.1-hierarchical-table.0 → 0.25.0

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,1242 @@
1
+ import{g as ZE,c as Cr,a as Pu}from"./helpers.162e09a8.js";var Do={exports:{}},la={},ve={exports:{}},Tr={};/*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */var cR=Object.getOwnPropertySymbols,Iz=Object.prototype.hasOwnProperty,Pz=Object.prototype.propertyIsEnumerable;function kz(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Dz(){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 ku=Dz()?Object.assign:function(e,t){for(var r,n=kz(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)Iz.call(r,o)&&(n[o]=r[o]);if(cR){i=cR(r);for(var s=0;s<i.length;s++)Pz.call(r,i[s])&&(n[i[s]]=r[i[s]])}}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 JE=ku,Wc=60103,oM=60106;Tr.Fragment=60107;Tr.StrictMode=60108;Tr.Profiler=60114;var sM=60109,lM=60110,uM=60112;Tr.Suspense=60113;var fM=60115,cM=60116;if(typeof Symbol=="function"&&Symbol.for){var wa=Symbol.for;Wc=wa("react.element"),oM=wa("react.portal"),Tr.Fragment=wa("react.fragment"),Tr.StrictMode=wa("react.strict_mode"),Tr.Profiler=wa("react.profiler"),sM=wa("react.provider"),lM=wa("react.context"),uM=wa("react.forward_ref"),Tr.Suspense=wa("react.suspense"),fM=wa("react.memo"),cM=wa("react.lazy")}var dR=typeof Symbol=="function"&&Symbol.iterator;function Mz(e){return e===null||typeof e!="object"?null:(e=dR&&e[dR]||e["@@iterator"],typeof e=="function"?e:null)}function Ev(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 dM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pM={};function Gc(e,t,r){this.props=e,this.context=t,this.refs=pM,this.updater=r||dM}Gc.prototype.isReactComponent={};Gc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Ev(85));this.updater.enqueueSetState(this,e,t,"setState")};Gc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hM(){}hM.prototype=Gc.prototype;function eA(e,t,r){this.props=e,this.context=t,this.refs=pM,this.updater=r||dM}var tA=eA.prototype=new hM;tA.constructor=eA;JE(tA,Gc.prototype);tA.isPureReactComponent=!0;var rA={current:null},vM=Object.prototype.hasOwnProperty,gM={key:!0,ref:!0,__self:!0,__source:!0};function mM(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)vM.call(t,n)&&!gM.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var u=Array(s),f=0;f<s;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Wc,type:e,key:a,ref:o,props:i,_owner:rA.current}}function Nz(e,t){return{$$typeof:Wc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nA(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wc}function Fz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var pR=/\/+/g;function _x(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fz(""+e.key):t.toString(36)}function S0(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 Wc:case oM:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+_x(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(pR,"$&/")+"/"),S0(i,t,r,"",function(f){return f})):i!=null&&(nA(i)&&(i=Nz(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(pR,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){a=e[s];var u=n+_x(a,s);o+=S0(a,t,r,u,i)}else if(u=Mz(e),typeof u=="function")for(e=u.call(e),s=0;!(a=e.next()).done;)a=a.value,u=n+_x(a,s++),o+=S0(a,t,r,u,i);else if(a==="object")throw t=""+e,Error(Ev(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function vm(e,t,r){if(e==null)return e;var n=[],i=0;return S0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function Lz(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 yM={current:null};function Ho(){var e=yM.current;if(e===null)throw Error(Ev(321));return e}var Bz={ReactCurrentDispatcher:yM,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:rA,IsSomeRendererActing:{current:!1},assign:JE};Tr.Children={map:vm,forEach:function(e,t,r){vm(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return vm(e,function(){t++}),t},toArray:function(e){return vm(e,function(t){return t})||[]},only:function(e){if(!nA(e))throw Error(Ev(143));return e}};Tr.Component=Gc;Tr.PureComponent=eA;Tr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bz;Tr.cloneElement=function(e,t,r){if(e==null)throw Error(Ev(267,e));var n=JE({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=rA.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)vM.call(t,u)&&!gM.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){s=Array(u);for(var f=0;f<u;f++)s[f]=arguments[f+2];n.children=s}return{$$typeof:Wc,type:e.type,key:i,ref:a,props:n,_owner:o}};Tr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:lM,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:sM,_context:e},e.Consumer=e};Tr.createElement=mM;Tr.createFactory=function(e){var t=mM.bind(null,e);return t.type=e,t};Tr.createRef=function(){return{current:null}};Tr.forwardRef=function(e){return{$$typeof:uM,render:e}};Tr.isValidElement=nA;Tr.lazy=function(e){return{$$typeof:cM,_payload:{_status:-1,_result:e},_init:Lz}};Tr.memo=function(e,t){return{$$typeof:fM,type:e,compare:t===void 0?null:t}};Tr.useCallback=function(e,t){return Ho().useCallback(e,t)};Tr.useContext=function(e,t){return Ho().useContext(e,t)};Tr.useDebugValue=function(){};Tr.useEffect=function(e,t){return Ho().useEffect(e,t)};Tr.useImperativeHandle=function(e,t,r){return Ho().useImperativeHandle(e,t,r)};Tr.useLayoutEffect=function(e,t){return Ho().useLayoutEffect(e,t)};Tr.useMemo=function(e,t){return Ho().useMemo(e,t)};Tr.useReducer=function(e,t,r){return Ho().useReducer(e,t,r)};Tr.useRef=function(e){return Ho().useRef(e)};Tr.useState=function(e){return Ho().useState(e)};Tr.version="17.0.2";(function(e){e.exports=Tr})(ve);const dn=ZE(ve.exports);var bM={exports:{}},xM={};/** @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,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,f=null,d=function(){if(u!==null)try{var we=e.unstable_now();u(!0,we),u=null}catch(ge){throw setTimeout(d,0),ge}};t=function(we){u!==null?setTimeout(t,0,we):(u=we,setTimeout(d,0))},r=function(we,ge){f=setTimeout(we,ge)},n=function(){clearTimeout(f)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var g=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 g!="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 w=!1,E=null,y=-1,x=5,S=0;e.unstable_shouldYield=function(){return e.unstable_now()>=S},i=function(){},e.unstable_forceFrameRate=function(we){0>we||125<we?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<we?Math.floor(1e3/we):5};var A=new MessageChannel,C=A.port2;A.port1.onmessage=function(){if(E!==null){var we=e.unstable_now();S=we+x;try{E(!0,we)?C.postMessage(null):(w=!1,E=null)}catch(ge){throw C.postMessage(null),ge}}else w=!1},t=function(we){E=we,w||(w=!0,C.postMessage(null))},r=function(we,ge){y=p(function(){we(e.unstable_now())},ge)},n=function(){h(y),y=-1}}function k(we,ge){var Ve=we.length;we.push(ge);e:for(;;){var We=Ve-1>>>1,Qe=we[We];if(Qe!==void 0&&0<M(Qe,ge))we[We]=ge,we[Ve]=Qe,Ve=We;else break e}}function D(we){return we=we[0],we===void 0?null:we}function z(we){var ge=we[0];if(ge!==void 0){var Ve=we.pop();if(Ve!==ge){we[0]=Ve;e:for(var We=0,Qe=we.length;We<Qe;){var rt=2*(We+1)-1,At=we[rt],wt=rt+1,Ee=we[wt];if(At!==void 0&&0>M(At,Ve))Ee!==void 0&&0>M(Ee,At)?(we[We]=Ee,we[wt]=Ve,We=wt):(we[We]=At,we[rt]=Ve,We=rt);else if(Ee!==void 0&&0>M(Ee,Ve))we[We]=Ee,we[wt]=Ve,We=wt;else break e}}return ge}return null}function M(we,ge){var Ve=we.sortIndex-ge.sortIndex;return Ve!==0?Ve:we.id-ge.id}var L=[],X=[],re=1,ce=null,xe=3,Se=!1,Ze=!1,Ge=!1;function he(we){for(var ge=D(X);ge!==null;){if(ge.callback===null)z(X);else if(ge.startTime<=we)z(X),ge.sortIndex=ge.expirationTime,k(L,ge);else break;ge=D(X)}}function Fe(we){if(Ge=!1,he(we),!Ze)if(D(L)!==null)Ze=!0,t(qe);else{var ge=D(X);ge!==null&&r(Fe,ge.startTime-we)}}function qe(we,ge){Ze=!1,Ge&&(Ge=!1,n()),Se=!0;var Ve=xe;try{for(he(ge),ce=D(L);ce!==null&&(!(ce.expirationTime>ge)||we&&!e.unstable_shouldYield());){var We=ce.callback;if(typeof We=="function"){ce.callback=null,xe=ce.priorityLevel;var Qe=We(ce.expirationTime<=ge);ge=e.unstable_now(),typeof Qe=="function"?ce.callback=Qe:ce===D(L)&&z(L),he(ge)}else z(L);ce=D(L)}if(ce!==null)var rt=!0;else{var At=D(X);At!==null&&r(Fe,At.startTime-ge),rt=!1}return rt}finally{ce=null,xe=Ve,Se=!1}}var ze=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(we){we.callback=null},e.unstable_continueExecution=function(){Ze||Se||(Ze=!0,t(qe))},e.unstable_getCurrentPriorityLevel=function(){return xe},e.unstable_getFirstCallbackNode=function(){return D(L)},e.unstable_next=function(we){switch(xe){case 1:case 2:case 3:var ge=3;break;default:ge=xe}var Ve=xe;xe=ge;try{return we()}finally{xe=Ve}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ze,e.unstable_runWithPriority=function(we,ge){switch(we){case 1:case 2:case 3:case 4:case 5:break;default:we=3}var Ve=xe;xe=we;try{return ge()}finally{xe=Ve}},e.unstable_scheduleCallback=function(we,ge,Ve){var We=e.unstable_now();switch(typeof Ve=="object"&&Ve!==null?(Ve=Ve.delay,Ve=typeof Ve=="number"&&0<Ve?We+Ve:We):Ve=We,we){case 1:var Qe=-1;break;case 2:Qe=250;break;case 5:Qe=1073741823;break;case 4:Qe=1e4;break;default:Qe=5e3}return Qe=Ve+Qe,we={id:re++,callback:ge,priorityLevel:we,startTime:Ve,expirationTime:Qe,sortIndex:-1},Ve>We?(we.sortIndex=Ve,k(X,we),D(L)===null&&we===D(X)&&(Ge?n():Ge=!0,r(Fe,Ve-We))):(we.sortIndex=Qe,k(L,we),Ze||Se||(Ze=!0,t(qe))),we},e.unstable_wrapCallback=function(we){var ge=xe;return function(){var Ve=xe;xe=ge;try{return we.apply(this,arguments)}finally{xe=Ve}}}})(xM);(function(e){e.exports=xM})(bM);/** @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 b1=ve.exports,en=ku,$n=bM.exports;function yt(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(!b1)throw Error(yt(227));var wM=new Set,Lh={};function Du(e,t){_c(e,t),_c(e+"Capture",t)}function _c(e,t){for(Lh[e]=t,e=0;e<t.length;e++)wM.add(t[e])}var Uo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$z=/^[: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]*$/,hR=Object.prototype.hasOwnProperty,vR={},gR={};function zz(e){return hR.call(gR,e)?!0:hR.call(vR,e)?!1:$z.test(e)?gR[e]=!0:(vR[e]=!0,!1)}function Uz(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 jz(e,t,r,n){if(t===null||typeof t>"u"||Uz(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 pi(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 Jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jn[e]=new pi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jn[t]=new pi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jn[e]=new pi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jn[e]=new pi(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){Jn[e]=new pi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jn[e]=new pi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jn[e]=new pi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jn[e]=new pi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jn[e]=new pi(e,5,!1,e.toLowerCase(),null,!1,!1)});var iA=/[\-:]([a-z])/g;function aA(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(iA,aA);Jn[t]=new pi(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(iA,aA);Jn[t]=new pi(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(iA,aA);Jn[t]=new pi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jn[e]=new pi(e,1,!1,e.toLowerCase(),null,!1,!1)});Jn.xlinkHref=new pi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jn[e]=new pi(e,1,!1,e.toLowerCase(),null,!0,!0)});function oA(e,t,r,n){var i=Jn.hasOwnProperty(t)?Jn[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||(jz(t,r,i,n)&&(r=null),n||i===null?zz(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 Mu=b1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zp=60103,nu=60106,ks=60107,sA=60108,ch=60114,lA=60109,uA=60110,x1=60112,dh=60113,V0=60120,w1=60115,fA=60116,cA=60121,dA=60128,_M=60129,pA=60130,XS=60131;if(typeof Symbol=="function"&&Symbol.for){var Nn=Symbol.for;Zp=Nn("react.element"),nu=Nn("react.portal"),ks=Nn("react.fragment"),sA=Nn("react.strict_mode"),ch=Nn("react.profiler"),lA=Nn("react.provider"),uA=Nn("react.context"),x1=Nn("react.forward_ref"),dh=Nn("react.suspense"),V0=Nn("react.suspense_list"),w1=Nn("react.memo"),fA=Nn("react.lazy"),cA=Nn("react.block"),Nn("react.scope"),dA=Nn("react.opaque.id"),_M=Nn("react.debug_trace_mode"),pA=Nn("react.offscreen"),XS=Nn("react.legacy_hidden")}var mR=typeof Symbol=="function"&&Symbol.iterator;function xp(e){return e===null||typeof e!="object"?null:(e=mR&&e[mR]||e["@@iterator"],typeof e=="function"?e:null)}var Sx;function Jp(e){if(Sx===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Sx=t&&t[1]||""}return`
27
+ `+Sx+e}var Ex=!1;function gm(e,t){if(!e||Ex)return"";Ex=!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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
28
+ `),a=n.stack.split(`
29
+ `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s])return`
30
+ `+i[o].replace(" at new "," at ");while(1<=o&&0<=s);break}}}finally{Ex=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Jp(e):""}function Wz(e){switch(e.tag){case 5:return Jp(e.type);case 16:return Jp("Lazy");case 13:return Jp("Suspense");case 19:return Jp("SuspenseList");case 0:case 2:case 15:return e=gm(e.type,!1),e;case 11:return e=gm(e.type.render,!1),e;case 22:return e=gm(e.type._render,!1),e;case 1:return e=gm(e.type,!0),e;default:return""}}function nc(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 ks:return"Fragment";case nu:return"Portal";case ch:return"Profiler";case sA:return"StrictMode";case dh:return"Suspense";case V0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uA:return(e.displayName||"Context")+".Consumer";case lA:return(e._context.displayName||"Context")+".Provider";case x1:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case w1:return nc(e.type);case cA:return nc(e._render);case fA:t=e._payload,e=e._init;try{return nc(e(t))}catch{}}return null}function Zs(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function SM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gz(e){var t=SM(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 mm(e){e._valueTracker||(e._valueTracker=Gz(e))}function EM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=SM(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Y0(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 KS(e,t){var r=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function yR(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Zs(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 AM(e,t){t=t.checked,t!=null&&oA(e,"checked",t,!1)}function QS(e,t){AM(e,t);var r=Zs(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")?ZS(e,t.type,r):t.hasOwnProperty("defaultValue")&&ZS(e,t.type,Zs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bR(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 ZS(e,t,r){(t!=="number"||Y0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function qz(e){var t="";return b1.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function JS(e,t){return e=en({children:void 0},t),(t=qz(t.children))&&(e.children=t),e}function ic(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=""+Zs(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 e2(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(yt(91));return en({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xR(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(yt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(yt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Zs(r)}}function CM(e,t){var r=Zs(t.value),n=Zs(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 wR(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var t2={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function TM(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 r2(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?TM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ym,RM=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!==t2.svg||"innerHTML"in e)e.innerHTML=t;else{for(ym=ym||document.createElement("div"),ym.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ym.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ph={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},Hz=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(e){Hz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ph[t]=ph[e]})});function OM(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ph.hasOwnProperty(e)&&ph[e]?(""+t).trim():t+"px"}function IM(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=OM(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Vz=en({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 n2(e,t){if(t){if(Vz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(yt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(yt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(yt(62))}}function i2(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 hA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var a2=null,ac=null,oc=null;function _R(e){if(e=Cv(e)){if(typeof a2!="function")throw Error(yt(280));var t=e.stateNode;t&&(t=T1(t),a2(e.stateNode,e.type,t))}}function PM(e){ac?oc?oc.push(e):oc=[e]:ac=e}function kM(){if(ac){var e=ac,t=oc;if(oc=ac=null,_R(e),t)for(e=0;e<t.length;e++)_R(t[e])}}function vA(e,t){return e(t)}function DM(e,t,r,n,i){return e(t,r,n,i)}function gA(){}var MM=vA,iu=!1,Ax=!1;function mA(){(ac!==null||oc!==null)&&(gA(),kM())}function Yz(e,t,r){if(Ax)return e(t,r);Ax=!0;try{return MM(e,t,r)}finally{Ax=!1,mA()}}function $h(e,t){var r=e.stateNode;if(r===null)return null;var n=T1(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(yt(231,t,typeof r));return r}var o2=!1;if(Uo)try{var wp={};Object.defineProperty(wp,"passive",{get:function(){o2=!0}}),window.addEventListener("test",wp,wp),window.removeEventListener("test",wp,wp)}catch{o2=!1}function Xz(e,t,r,n,i,a,o,s,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(r,f)}catch(d){this.onError(d)}}var hh=!1,X0=null,K0=!1,s2=null,Kz={onError:function(e){hh=!0,X0=e}};function Qz(e,t,r,n,i,a,o,s,u){hh=!1,X0=null,Xz.apply(Kz,arguments)}function Zz(e,t,r,n,i,a,o,s,u){if(Qz.apply(this,arguments),hh){if(hh){var f=X0;hh=!1,X0=null}else throw Error(yt(198));K0||(K0=!0,s2=f)}}function Nu(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 NM(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 SR(e){if(Nu(e)!==e)throw Error(yt(188))}function Jz(e){var t=e.alternate;if(!t){if(t=Nu(e),t===null)throw Error(yt(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 SR(i),e;if(a===n)return SR(i),t;a=a.sibling}throw Error(yt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(yt(189))}}if(r.alternate!==n)throw Error(yt(190))}if(r.tag!==3)throw Error(yt(188));return r.stateNode.current===r?e:t}function FM(e){if(e=Jz(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 ER(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var LM,yA,BM,$M,l2=!1,Xa=[],Us=null,js=null,Ws=null,zh=new Map,Uh=new Map,_p=[],AR="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 u2(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function CR(e,t){switch(e){case"focusin":case"focusout":Us=null;break;case"dragenter":case"dragleave":js=null;break;case"mouseover":case"mouseout":Ws=null;break;case"pointerover":case"pointerout":zh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uh.delete(t.pointerId)}}function Sp(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=u2(t,r,n,i,a),t!==null&&(t=Cv(t),t!==null&&yA(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function eU(e,t,r,n,i){switch(t){case"focusin":return Us=Sp(Us,e,t,r,n,i),!0;case"dragenter":return js=Sp(js,e,t,r,n,i),!0;case"mouseover":return Ws=Sp(Ws,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return zh.set(a,Sp(zh.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Uh.set(a,Sp(Uh.get(a)||null,e,t,r,n,i)),!0}return!1}function tU(e){var t=au(e.target);if(t!==null){var r=Nu(t);if(r!==null){if(t=r.tag,t===13){if(t=NM(r),t!==null){e.blockedOn=t,$M(e.lanePriority,function(){$n.unstable_runWithPriority(e.priority,function(){BM(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function E0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=_A(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Cv(r),t!==null&&yA(t),e.blockedOn=r,!1;t.shift()}return!0}function TR(e,t,r){E0(e)&&r.delete(t)}function rU(){for(l2=!1;0<Xa.length;){var e=Xa[0];if(e.blockedOn!==null){e=Cv(e.blockedOn),e!==null&&LM(e);break}for(var t=e.targetContainers;0<t.length;){var r=_A(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Xa.shift()}Us!==null&&E0(Us)&&(Us=null),js!==null&&E0(js)&&(js=null),Ws!==null&&E0(Ws)&&(Ws=null),zh.forEach(TR),Uh.forEach(TR)}function Ep(e,t){e.blockedOn===t&&(e.blockedOn=null,l2||(l2=!0,$n.unstable_scheduleCallback($n.unstable_NormalPriority,rU)))}function zM(e){function t(i){return Ep(i,e)}if(0<Xa.length){Ep(Xa[0],e);for(var r=1;r<Xa.length;r++){var n=Xa[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Us!==null&&Ep(Us,e),js!==null&&Ep(js,e),Ws!==null&&Ep(Ws,e),zh.forEach(t),Uh.forEach(t),r=0;r<_p.length;r++)n=_p[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<_p.length&&(r=_p[0],r.blockedOn===null);)tU(r),r.blockedOn===null&&_p.shift()}function bm(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Vf={animationend:bm("Animation","AnimationEnd"),animationiteration:bm("Animation","AnimationIteration"),animationstart:bm("Animation","AnimationStart"),transitionend:bm("Transition","TransitionEnd")},Cx={},UM={};Uo&&(UM=document.createElement("div").style,"AnimationEvent"in window||(delete Vf.animationend.animation,delete Vf.animationiteration.animation,delete Vf.animationstart.animation),"TransitionEvent"in window||delete Vf.transitionend.transition);function _1(e){if(Cx[e])return Cx[e];if(!Vf[e])return e;var t=Vf[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in UM)return Cx[e]=t[r];return e}var jM=_1("animationend"),WM=_1("animationiteration"),GM=_1("animationstart"),qM=_1("transitionend"),HM=new Map,bA=new Map,nU=["abort","abort",jM,"animationEnd",WM,"animationIteration",GM,"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",qM,"transitionEnd","waiting","waiting"];function xA(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)),bA.set(n,t),HM.set(n,i),Du(i,[n])}}var iU=$n.unstable_now;iU();var Hr=8;function zf(e){if((1&e)!==0)return Hr=15,1;if((2&e)!==0)return Hr=14,2;if((4&e)!==0)return Hr=13,4;var t=24&e;return t!==0?(Hr=12,t):(e&32)!==0?(Hr=11,32):(t=192&e,t!==0?(Hr=10,t):(e&256)!==0?(Hr=9,256):(t=3584&e,t!==0?(Hr=8,t):(e&4096)!==0?(Hr=7,4096):(t=4186112&e,t!==0?(Hr=6,t):(t=62914560&e,t!==0?(Hr=5,t):e&67108864?(Hr=4,67108864):(e&134217728)!==0?(Hr=3,134217728):(t=805306368&e,t!==0?(Hr=2,t):(1073741824&e)!==0?(Hr=1,1073741824):(Hr=8,e))))))}function aU(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 oU(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(yt(358,e))}}function jh(e,t){var r=e.pendingLanes;if(r===0)return Hr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)n=a,i=Hr=15;else if(a=r&134217727,a!==0){var u=a&~o;u!==0?(n=zf(u),i=Hr):(s&=a,s!==0&&(n=zf(s),i=Hr))}else a=r&~o,a!==0?(n=zf(a),i=Hr):s!==0&&(n=zf(s),i=Hr);if(n===0)return 0;if(n=31-Js(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&o)===0){if(zf(t),i<=Hr)return t;Hr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Js(t),i=1<<r,n|=e[r],t&=~i;return n}function VM(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Q0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Uf(24&~t),e===0?Q0(10,t):e;case 10:return e=Uf(192&~t),e===0?Q0(8,t):e;case 8:return e=Uf(3584&~t),e===0&&(e=Uf(4186112&~t),e===0&&(e=512)),e;case 2:return t=Uf(805306368&~t),t===0&&(t=268435456),t}throw Error(yt(358,e))}function Uf(e){return e&-e}function Tx(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function S1(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Js(t),e[t]=r}var Js=Math.clz32?Math.clz32:uU,sU=Math.log,lU=Math.LN2;function uU(e){return e===0?32:31-(sU(e)/lU|0)|0}var fU=$n.unstable_UserBlockingPriority,cU=$n.unstable_runWithPriority,A0=!0;function dU(e,t,r,n){iu||gA();var i=wA,a=iu;iu=!0;try{DM(i,e,t,r,n)}finally{(iu=a)||mA()}}function pU(e,t,r,n){cU(fU,wA.bind(null,e,t,r,n))}function wA(e,t,r,n){if(A0){var i;if((i=(t&4)===0)&&0<Xa.length&&-1<AR.indexOf(e))e=u2(null,e,t,r,n),Xa.push(e);else{var a=_A(e,t,r,n);if(a===null)i&&CR(e,n);else{if(i){if(-1<AR.indexOf(e)){e=u2(a,e,t,r,n),Xa.push(e);return}if(eU(a,e,t,r,n))return;CR(e,n)}oN(e,t,n,null,r)}}}}function _A(e,t,r,n){var i=hA(n);if(i=au(i),i!==null){var a=Nu(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=NM(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 oN(e,t,n,i,r),null}var Ms=null,SA=null,C0=null;function YM(){if(C0)return C0;var e,t=SA,r=t.length,n,i="value"in Ms?Ms.value:Ms.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 C0=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 xm(){return!0}function RR(){return!1}function Ui(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 s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?xm:RR,this.isPropagationStopped=RR,this}return en(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=xm)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=xm)},persist:function(){},isPersistent:xm}),t}var qc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},EA=Ui(qc),Av=en({},qc,{view:0,detail:0}),hU=Ui(Av),Rx,Ox,Ap,E1=en({},Av,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:AA,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!==Ap&&(Ap&&e.type==="mousemove"?(Rx=e.screenX-Ap.screenX,Ox=e.screenY-Ap.screenY):Ox=Rx=0,Ap=e),Rx)},movementY:function(e){return"movementY"in e?e.movementY:Ox}}),OR=Ui(E1),vU=en({},E1,{dataTransfer:0}),gU=Ui(vU),mU=en({},Av,{relatedTarget:0}),Ix=Ui(mU),yU=en({},qc,{animationName:0,elapsedTime:0,pseudoElement:0}),bU=Ui(yU),xU=en({},qc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wU=Ui(xU),_U=en({},qc,{data:0}),IR=Ui(_U),SU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EU={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"},AU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AU[e])?!!t[e]:!1}function AA(){return CU}var TU=en({},Av,{key:function(e){if(e.key){var t=SU[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"?EU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:AA,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}}),RU=Ui(TU),OU=en({},E1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PR=Ui(OU),IU=en({},Av,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:AA}),PU=Ui(IU),kU=en({},qc,{propertyName:0,elapsedTime:0,pseudoElement:0}),DU=Ui(kU),MU=en({},E1,{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}),NU=Ui(MU),FU=[9,13,27,32],CA=Uo&&"CompositionEvent"in window,vh=null;Uo&&"documentMode"in document&&(vh=document.documentMode);var LU=Uo&&"TextEvent"in window&&!vh,XM=Uo&&(!CA||vh&&8<vh&&11>=vh),kR=String.fromCharCode(32),DR=!1;function KM(e,t){switch(e){case"keyup":return FU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yf=!1;function BU(e,t){switch(e){case"compositionend":return QM(t);case"keypress":return t.which!==32?null:(DR=!0,kR);case"textInput":return e=t.data,e===kR&&DR?null:e;default:return null}}function $U(e,t){if(Yf)return e==="compositionend"||!CA&&KM(e,t)?(e=YM(),C0=SA=Ms=null,Yf=!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 XM&&t.locale!=="ko"?null:t.data;default:return null}}var zU={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 MR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zU[e.type]:t==="textarea"}function ZM(e,t,r,n){PM(n),t=Z0(t,"onChange"),0<t.length&&(r=new EA("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var gh=null,Wh=null;function UU(e){nN(e,0)}function A1(e){var t=Kf(e);if(EM(t))return e}function jU(e,t){if(e==="change")return t}var JM=!1;if(Uo){var Px;if(Uo){var kx="oninput"in document;if(!kx){var NR=document.createElement("div");NR.setAttribute("oninput","return;"),kx=typeof NR.oninput=="function"}Px=kx}else Px=!1;JM=Px&&(!document.documentMode||9<document.documentMode)}function FR(){gh&&(gh.detachEvent("onpropertychange",eN),Wh=gh=null)}function eN(e){if(e.propertyName==="value"&&A1(Wh)){var t=[];if(ZM(t,Wh,e,hA(e)),e=UU,iu)e(t);else{iu=!0;try{vA(e,t)}finally{iu=!1,mA()}}}}function WU(e,t,r){e==="focusin"?(FR(),gh=t,Wh=r,gh.attachEvent("onpropertychange",eN)):e==="focusout"&&FR()}function GU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return A1(Wh)}function qU(e,t){if(e==="click")return A1(t)}function HU(e,t){if(e==="input"||e==="change")return A1(t)}function VU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qi=typeof Object.is=="function"?Object.is:VU,YU=Object.prototype.hasOwnProperty;function Gh(e,t){if(Qi(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(!YU.call(t,r[n])||!Qi(e[r[n]],t[r[n]]))return!1;return!0}function LR(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function BR(e,t){var r=LR(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=LR(r)}}function tN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $R(){for(var e=window,t=Y0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Y0(e.document)}return t}function f2(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 XU=Uo&&"documentMode"in document&&11>=document.documentMode,Xf=null,c2=null,mh=null,d2=!1;function zR(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;d2||Xf==null||Xf!==Y0(n)||(n=Xf,"selectionStart"in n&&f2(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}),mh&&Gh(mh,n)||(mh=n,n=Z0(c2,"onSelect"),0<n.length&&(t=new EA("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Xf)))}xA("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);xA("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);xA(nU,2);for(var UR="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Dx=0;Dx<UR.length;Dx++)bA.set(UR[Dx],0);_c("onMouseEnter",["mouseout","mouseover"]);_c("onMouseLeave",["mouseout","mouseover"]);_c("onPointerEnter",["pointerout","pointerover"]);_c("onPointerLeave",["pointerout","pointerover"]);Du("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Du("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Du("onBeforeInput",["compositionend","keypress","textInput","paste"]);Du("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Du("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Du("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rN=new Set("cancel close invalid load scroll toggle".split(" ").concat(eh));function jR(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Zz(n,t,void 0,e),e.currentTarget=null}function nN(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 s=n[o],u=s.instance,f=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;jR(i,s,f),a=u}else for(o=0;o<n.length;o++){if(s=n[o],u=s.instance,f=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;jR(i,s,f),a=u}}}if(K0)throw e=s2,K0=!1,s2=null,e}function Vr(e,t){var r=lN(t),n=e+"__bubble";r.has(n)||(aN(t,e,2,!1),r.add(n))}var WR="_reactListening"+Math.random().toString(36).slice(2);function iN(e){e[WR]||(e[WR]=!0,wM.forEach(function(t){rN.has(t)||GR(t,!1,e,null),GR(t,!0,e,null)}))}function GR(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&&rN.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=lN(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),aN(a,e,i,t),o.add(s))}function aN(e,t,r,n){var i=bA.get(t);switch(i===void 0?2:i){case 0:i=dU;break;case 1:i=pU;break;default:i=wA}r=i.bind(null,t,r,e),i=void 0,!o2||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 oN(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 s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;s!==null;){if(o=au(s),o===null)return;if(u=o.tag,u===5||u===6){n=a=o;continue e}s=s.parentNode}}n=n.return}Yz(function(){var f=a,d=hA(r),p=[];e:{var h=HM.get(e);if(h!==void 0){var g=EA,w=e;switch(e){case"keypress":if(T0(r)===0)break e;case"keydown":case"keyup":g=RU;break;case"focusin":w="focus",g=Ix;break;case"focusout":w="blur",g=Ix;break;case"beforeblur":case"afterblur":g=Ix;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":g=OR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=gU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=PU;break;case jM:case WM:case GM:g=bU;break;case qM:g=DU;break;case"scroll":g=hU;break;case"wheel":g=NU;break;case"copy":case"cut":case"paste":g=wU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=PR}var E=(t&4)!==0,y=!E&&e==="scroll",x=E?h!==null?h+"Capture":null:h;E=[];for(var S=f,A;S!==null;){A=S;var C=A.stateNode;if(A.tag===5&&C!==null&&(A=C,x!==null&&(C=$h(S,x),C!=null&&E.push(qh(S,C,A)))),y)break;S=S.return}0<E.length&&(h=new g(h,w,null,r,d),p.push({event:h,listeners:E}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&(t&16)===0&&(w=r.relatedTarget||r.fromElement)&&(au(w)||w[Hc]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(w=r.relatedTarget||r.toElement,g=f,w=w?au(w):null,w!==null&&(y=Nu(w),w!==y||w.tag!==5&&w.tag!==6)&&(w=null)):(g=null,w=f),g!==w)){if(E=OR,C="onMouseLeave",x="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(E=PR,C="onPointerLeave",x="onPointerEnter",S="pointer"),y=g==null?h:Kf(g),A=w==null?h:Kf(w),h=new E(C,S+"leave",g,r,d),h.target=y,h.relatedTarget=A,C=null,au(d)===f&&(E=new E(x,S+"enter",w,r,d),E.target=A,E.relatedTarget=y,C=E),y=C,g&&w)t:{for(E=g,x=w,S=0,A=E;A;A=If(A))S++;for(A=0,C=x;C;C=If(C))A++;for(;0<S-A;)E=If(E),S--;for(;0<A-S;)x=If(x),A--;for(;S--;){if(E===x||x!==null&&E===x.alternate)break t;E=If(E),x=If(x)}E=null}else E=null;g!==null&&qR(p,h,g,E,!1),w!==null&&y!==null&&qR(p,y,w,E,!0)}}e:{if(h=f?Kf(f):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var k=jU;else if(MR(h))if(JM)k=HU;else{k=GU;var D=WU}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=qU);if(k&&(k=k(e,f))){ZM(p,k,r,d);break e}D&&D(e,h,f),e==="focusout"&&(D=h._wrapperState)&&D.controlled&&h.type==="number"&&ZS(h,"number",h.value)}switch(D=f?Kf(f):window,e){case"focusin":(MR(D)||D.contentEditable==="true")&&(Xf=D,c2=f,mh=null);break;case"focusout":mh=c2=Xf=null;break;case"mousedown":d2=!0;break;case"contextmenu":case"mouseup":case"dragend":d2=!1,zR(p,r,d);break;case"selectionchange":if(XU)break;case"keydown":case"keyup":zR(p,r,d)}var z;if(CA)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else Yf?KM(e,r)&&(M="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(M="onCompositionStart");M&&(XM&&r.locale!=="ko"&&(Yf||M!=="onCompositionStart"?M==="onCompositionEnd"&&Yf&&(z=YM()):(Ms=d,SA="value"in Ms?Ms.value:Ms.textContent,Yf=!0)),D=Z0(f,M),0<D.length&&(M=new IR(M,e,null,r,d),p.push({event:M,listeners:D}),z?M.data=z:(z=QM(r),z!==null&&(M.data=z)))),(z=LU?BU(e,r):$U(e,r))&&(f=Z0(f,"onBeforeInput"),0<f.length&&(d=new IR("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:f}),d.data=z))}nN(p,t)})}function qh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Z0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=$h(e,r),a!=null&&n.unshift(qh(e,a,i)),a=$h(e,t),a!=null&&n.push(qh(e,a,i))),e=e.return}return n}function If(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qR(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,u=s.alternate,f=s.stateNode;if(u!==null&&u===n)break;s.tag===5&&f!==null&&(s=f,i?(u=$h(r,a),u!=null&&o.unshift(qh(r,u,s))):i||(u=$h(r,a),u!=null&&o.push(qh(r,u,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function J0(){}var Mx=null,Nx=null;function sN(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function p2(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 HR=typeof setTimeout=="function"?setTimeout:void 0,KU=typeof clearTimeout=="function"?clearTimeout:void 0;function TA(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function sc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function VR(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 Fx=0;function QU(e){return{$$typeof:dA,toString:e,valueOf:e}}var C1=Math.random().toString(36).slice(2),Ns="__reactFiber$"+C1,ey="__reactProps$"+C1,Hc="__reactContainer$"+C1,YR="__reactEvents$"+C1;function au(e){var t=e[Ns];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Hc]||r[Ns]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=VR(e);e!==null;){if(r=e[Ns])return r;e=VR(e)}return t}e=r,r=e.parentNode}return null}function Cv(e){return e=e[Ns]||e[Hc],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(yt(33))}function T1(e){return e[ey]||null}function lN(e){var t=e[YR];return t===void 0&&(t=e[YR]=new Set),t}var h2=[],Qf=-1;function dl(e){return{current:e}}function Xr(e){0>Qf||(e.current=h2[Qf],h2[Qf]=null,Qf--)}function ln(e,t){Qf++,h2[Qf]=e.current,e.current=t}var el={},oi=dl(el),Ai=dl(!1),bu=el;function Sc(e,t){var r=e.type.contextTypes;if(!r)return el;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 Ci(e){return e=e.childContextTypes,e!=null}function ty(){Xr(Ai),Xr(oi)}function XR(e,t,r){if(oi.current!==el)throw Error(yt(168));ln(oi,t),ln(Ai,r)}function uN(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(yt(108,nc(t)||"Unknown",i));return en({},r,n)}function R0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||el,bu=oi.current,ln(oi,e),ln(Ai,Ai.current),!0}function KR(e,t,r){var n=e.stateNode;if(!n)throw Error(yt(169));r?(e=uN(e,t,bu),n.__reactInternalMemoizedMergedChildContext=e,Xr(Ai),Xr(oi),ln(oi,e)):Xr(Ai),ln(Ai,r)}var RA=null,pu=null,ZU=$n.unstable_runWithPriority,OA=$n.unstable_scheduleCallback,v2=$n.unstable_cancelCallback,JU=$n.unstable_shouldYield,QR=$n.unstable_requestPaint,g2=$n.unstable_now,e7=$n.unstable_getCurrentPriorityLevel,R1=$n.unstable_ImmediatePriority,fN=$n.unstable_UserBlockingPriority,cN=$n.unstable_NormalPriority,dN=$n.unstable_LowPriority,pN=$n.unstable_IdlePriority,Lx={},t7=QR!==void 0?QR:function(){},ko=null,O0=null,Bx=!1,ZR=g2(),ii=1e4>ZR?g2:function(){return g2()-ZR};function Ec(){switch(e7()){case R1:return 99;case fN:return 98;case cN:return 97;case dN:return 96;case pN:return 95;default:throw Error(yt(332))}}function hN(e){switch(e){case 99:return R1;case 98:return fN;case 97:return cN;case 96:return dN;case 95:return pN;default:throw Error(yt(332))}}function xu(e,t){return e=hN(e),ZU(e,t)}function Hh(e,t,r){return e=hN(e),OA(e,t,r)}function ao(){if(O0!==null){var e=O0;O0=null,v2(e)}vN()}function vN(){if(!Bx&&ko!==null){Bx=!0;var e=0;try{var t=ko;xu(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),ko=null}catch(r){throw ko!==null&&(ko=ko.slice(e+1)),OA(R1,ao),r}finally{Bx=!1}}}var r7=Mu.ReactCurrentBatchConfig;function Sa(e,t){if(e&&e.defaultProps){t=en({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var ry=dl(null),ny=null,Zf=null,iy=null;function IA(){iy=Zf=ny=null}function PA(e){var t=ry.current;Xr(ry),e.type._context._currentValue=t}function gN(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 lc(e,t){ny=e,iy=Zf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ea=!0),e.firstContext=null)}function ia(e,t){if(iy!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(iy=e,t=1073741823),t={context:e,observedBits:t,next:null},Zf===null){if(ny===null)throw Error(yt(308));Zf=t,ny.dependencies={lanes:0,firstContext:t,responders:null}}else Zf=Zf.next=t;return e._currentValue}var Ts=!1;function kA(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function mN(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 Gs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qs(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 JR(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 Vh(e,t,r,n){var i=e.updateQueue;Ts=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,f=u.next;u.next=null,o===null?a=f:o.next=f,o=u;var d=e.alternate;if(d!==null){d=d.updateQueue;var p=d.lastBaseUpdate;p!==o&&(p===null?d.firstBaseUpdate=f:p.next=f,d.lastBaseUpdate=u)}}if(a!==null){p=i.baseState,o=0,d=f=u=null;do{s=a.lane;var h=a.eventTime;if((n&s)===s){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,w=a;switch(s=t,h=r,w.tag){case 1:if(g=w.payload,typeof g=="function"){p=g.call(h,p,s);break e}p=g;break e;case 3:g.flags=g.flags&-4097|64;case 0:if(g=w.payload,s=typeof g=="function"?g.call(h,p,s):g,s==null)break e;p=en({},p,s);break e;case 2:Ts=!0}}a.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[a]:s.push(a))}else h={eventTime:h,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(f=d=h,u=p):d=d.next=h,o|=s;if(a=a.next,a===null){if(s=i.shared.pending,s===null)break;a=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);d===null&&(u=p),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=d,Rv|=o,e.lanes=o,e.memoizedState=p}}function eO(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(yt(191,i));i.call(n)}}}var yN=new b1.Component().refs;function ay(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:en({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var O1={isMounted:function(e){return(e=e._reactInternals)?Nu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Bi(),i=Hs(e),a=Gs(n,i);a.payload=t,r!=null&&(a.callback=r),qs(e,a),Vs(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Bi(),i=Hs(e),a=Gs(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),qs(e,a),Vs(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Bi(),n=Hs(e),i=Gs(r,n);i.tag=2,t!=null&&(i.callback=t),qs(e,i),Vs(e,n,r)}};function tO(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?!Gh(r,n)||!Gh(i,a):!0}function bN(e,t,r){var n=!1,i=el,a=t.contextType;return typeof a=="object"&&a!==null?a=ia(a):(i=Ci(t)?bu:oi.current,n=t.contextTypes,a=(n=n!=null)?Sc(e,i):el),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=O1,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function rO(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&&O1.enqueueReplaceState(t,t.state,null)}function m2(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=yN,kA(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=ia(a):(a=Ci(t)?bu:oi.current,i.context=Sc(e,a)),Vh(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ay(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&&O1.enqueueReplaceState(i,i.state,null),Vh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var wm=Array.isArray;function Cp(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(yt(309));var n=r.stateNode}if(!n)throw Error(yt(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===yN&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(yt(284));if(!r._owner)throw Error(yt(290,e))}return e}function _m(e,t){if(e.type!=="textarea")throw Error(yt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xN(e){function t(y,x){if(e){var S=y.lastEffect;S!==null?(S.nextEffect=x,y.lastEffect=x):y.firstEffect=y.lastEffect=x,x.nextEffect=null,x.flags=8}}function r(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function n(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(y,x){return y=rl(y,x),y.index=0,y.sibling=null,y}function a(y,x,S){return y.index=S,e?(S=y.alternate,S!==null?(S=S.index,S<x?(y.flags=2,x):S):(y.flags=2,x)):x}function o(y){return e&&y.alternate===null&&(y.flags=2),y}function s(y,x,S,A){return x===null||x.tag!==6?(x=Wx(S,y.mode,A),x.return=y,x):(x=i(x,S),x.return=y,x)}function u(y,x,S,A){return x!==null&&x.elementType===S.type?(A=i(x,S.props),A.ref=Cp(y,x,S),A.return=y,A):(A=D0(S.type,S.key,S.props,null,y.mode,A),A.ref=Cp(y,x,S),A.return=y,A)}function f(y,x,S,A){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=Gx(S,y.mode,A),x.return=y,x):(x=i(x,S.children||[]),x.return=y,x)}function d(y,x,S,A,C){return x===null||x.tag!==7?(x=dc(S,y.mode,A,C),x.return=y,x):(x=i(x,S),x.return=y,x)}function p(y,x,S){if(typeof x=="string"||typeof x=="number")return x=Wx(""+x,y.mode,S),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Zp:return S=D0(x.type,x.key,x.props,null,y.mode,S),S.ref=Cp(y,null,x),S.return=y,S;case nu:return x=Gx(x,y.mode,S),x.return=y,x}if(wm(x)||xp(x))return x=dc(x,y.mode,S,null),x.return=y,x;_m(y,x)}return null}function h(y,x,S,A){var C=x!==null?x.key:null;if(typeof S=="string"||typeof S=="number")return C!==null?null:s(y,x,""+S,A);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Zp:return S.key===C?S.type===ks?d(y,x,S.props.children,A,C):u(y,x,S,A):null;case nu:return S.key===C?f(y,x,S,A):null}if(wm(S)||xp(S))return C!==null?null:d(y,x,S,A,null);_m(y,S)}return null}function g(y,x,S,A,C){if(typeof A=="string"||typeof A=="number")return y=y.get(S)||null,s(x,y,""+A,C);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Zp:return y=y.get(A.key===null?S:A.key)||null,A.type===ks?d(x,y,A.props.children,C,A.key):u(x,y,A,C);case nu:return y=y.get(A.key===null?S:A.key)||null,f(x,y,A,C)}if(wm(A)||xp(A))return y=y.get(S)||null,d(x,y,A,C,null);_m(x,A)}return null}function w(y,x,S,A){for(var C=null,k=null,D=x,z=x=0,M=null;D!==null&&z<S.length;z++){D.index>z?(M=D,D=null):M=D.sibling;var L=h(y,D,S[z],A);if(L===null){D===null&&(D=M);break}e&&D&&L.alternate===null&&t(y,D),x=a(L,x,z),k===null?C=L:k.sibling=L,k=L,D=M}if(z===S.length)return r(y,D),C;if(D===null){for(;z<S.length;z++)D=p(y,S[z],A),D!==null&&(x=a(D,x,z),k===null?C=D:k.sibling=D,k=D);return C}for(D=n(y,D);z<S.length;z++)M=g(D,y,z,S[z],A),M!==null&&(e&&M.alternate!==null&&D.delete(M.key===null?z:M.key),x=a(M,x,z),k===null?C=M:k.sibling=M,k=M);return e&&D.forEach(function(X){return t(y,X)}),C}function E(y,x,S,A){var C=xp(S);if(typeof C!="function")throw Error(yt(150));if(S=C.call(S),S==null)throw Error(yt(151));for(var k=C=null,D=x,z=x=0,M=null,L=S.next();D!==null&&!L.done;z++,L=S.next()){D.index>z?(M=D,D=null):M=D.sibling;var X=h(y,D,L.value,A);if(X===null){D===null&&(D=M);break}e&&D&&X.alternate===null&&t(y,D),x=a(X,x,z),k===null?C=X:k.sibling=X,k=X,D=M}if(L.done)return r(y,D),C;if(D===null){for(;!L.done;z++,L=S.next())L=p(y,L.value,A),L!==null&&(x=a(L,x,z),k===null?C=L:k.sibling=L,k=L);return C}for(D=n(y,D);!L.done;z++,L=S.next())L=g(D,y,z,L.value,A),L!==null&&(e&&L.alternate!==null&&D.delete(L.key===null?z:L.key),x=a(L,x,z),k===null?C=L:k.sibling=L,k=L);return e&&D.forEach(function(re){return t(y,re)}),C}return function(y,x,S,A){var C=typeof S=="object"&&S!==null&&S.type===ks&&S.key===null;C&&(S=S.props.children);var k=typeof S=="object"&&S!==null;if(k)switch(S.$$typeof){case Zp:e:{for(k=S.key,C=x;C!==null;){if(C.key===k){switch(C.tag){case 7:if(S.type===ks){r(y,C.sibling),x=i(C,S.props.children),x.return=y,y=x;break e}break;default:if(C.elementType===S.type){r(y,C.sibling),x=i(C,S.props),x.ref=Cp(y,C,S),x.return=y,y=x;break e}}r(y,C);break}else t(y,C);C=C.sibling}S.type===ks?(x=dc(S.props.children,y.mode,A,S.key),x.return=y,y=x):(A=D0(S.type,S.key,S.props,null,y.mode,A),A.ref=Cp(y,x,S),A.return=y,y=A)}return o(y);case nu:e:{for(C=S.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){r(y,x.sibling),x=i(x,S.children||[]),x.return=y,y=x;break e}else{r(y,x);break}else t(y,x);x=x.sibling}x=Gx(S,y.mode,A),x.return=y,y=x}return o(y)}if(typeof S=="string"||typeof S=="number")return S=""+S,x!==null&&x.tag===6?(r(y,x.sibling),x=i(x,S),x.return=y,y=x):(r(y,x),x=Wx(S,y.mode,A),x.return=y,y=x),o(y);if(wm(S))return w(y,x,S,A);if(xp(S))return E(y,x,S,A);if(k&&_m(y,S),typeof S>"u"&&!C)switch(y.tag){case 1:case 22:case 0:case 11:case 15:throw Error(yt(152,nc(y.type)||"Component"))}return r(y,x)}}var oy=xN(!0),wN=xN(!1),Tv={},Ja=dl(Tv),Yh=dl(Tv),Xh=dl(Tv);function ou(e){if(e===Tv)throw Error(yt(174));return e}function y2(e,t){switch(ln(Xh,t),ln(Yh,e),ln(Ja,Tv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:r2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=r2(t,e)}Xr(Ja),ln(Ja,t)}function Ac(){Xr(Ja),Xr(Yh),Xr(Xh)}function nO(e){ou(Xh.current);var t=ou(Ja.current),r=r2(t,e.type);t!==r&&(ln(Yh,e),ln(Ja,r))}function DA(e){Yh.current===e&&(Xr(Ja),Xr(Yh))}var on=dl(0);function sy(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 Fo=null,Fs=null,eo=!1;function _N(e,t){var r=Zi(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 iO(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 b2(e){if(eo){var t=Fs;if(t){var r=t;if(!iO(e,t)){if(t=sc(r.nextSibling),!t||!iO(e,t)){e.flags=e.flags&-1025|2,eo=!1,Fo=e;return}_N(Fo,r)}Fo=e,Fs=sc(t.firstChild)}else e.flags=e.flags&-1025|2,eo=!1,Fo=e}}function aO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fo=e}function Sm(e){if(e!==Fo)return!1;if(!eo)return aO(e),eo=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!p2(t,e.memoizedProps))for(t=Fs;t;)_N(e,t),t=sc(t.nextSibling);if(aO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(yt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Fs=sc(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Fs=null}}else Fs=Fo?sc(e.stateNode.nextSibling):null;return!0}function $x(){Fs=Fo=null,eo=!1}var uc=[];function MA(){for(var e=0;e<uc.length;e++)uc[e]._workInProgressVersionPrimary=null;uc.length=0}var yh=Mu.ReactCurrentDispatcher,ta=Mu.ReactCurrentBatchConfig,Kh=0,pn=null,ni=null,Xn=null,ly=!1,bh=!1;function wi(){throw Error(yt(321))}function NA(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Qi(e[r],t[r]))return!1;return!0}function FA(e,t,r,n,i,a){if(Kh=a,pn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yh.current=e===null||e.memoizedState===null?i7:a7,e=r(n,i),bh){a=0;do{if(bh=!1,!(25>a))throw Error(yt(301));a+=1,Xn=ni=null,t.updateQueue=null,yh.current=o7,e=r(n,i)}while(bh)}if(yh.current=dy,t=ni!==null&&ni.next!==null,Kh=0,Xn=ni=pn=null,ly=!1,t)throw Error(yt(300));return e}function su(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?pn.memoizedState=Xn=e:Xn=Xn.next=e,Xn}function Fu(){if(ni===null){var e=pn.alternate;e=e!==null?e.memoizedState:null}else e=ni.next;var t=Xn===null?pn.memoizedState:Xn.next;if(t!==null)Xn=t,ni=e;else{if(e===null)throw Error(yt(310));ni=e,e={memoizedState:ni.memoizedState,baseState:ni.baseState,baseQueue:ni.baseQueue,queue:ni.queue,next:null},Xn===null?pn.memoizedState=Xn=e:Xn=Xn.next=e}return Xn}function Ka(e,t){return typeof t=="function"?t(e):t}function Tp(e){var t=Fu(),r=t.queue;if(r===null)throw Error(yt(311));r.lastRenderedReducer=e;var n=ni,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 s=o=a=null,u=i;do{var f=u.lane;if((Kh&f)===f)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var d={lane:f,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(o=s=d,a=n):s=s.next=d,pn.lanes|=f,Rv|=f}u=u.next}while(u!==null&&u!==i);s===null?a=n:s.next=o,Qi(n,t.memoizedState)||(Ea=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Rp(e){var t=Fu(),r=t.queue;if(r===null)throw Error(yt(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);Qi(a,t.memoizedState)||(Ea=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function oO(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=(Kh&e)===e)&&(t._workInProgressVersionPrimary=n,uc.push(t))),e)return r(t._source);throw uc.push(t),Error(yt(350))}function SN(e,t,r,n){var i=di;if(i===null)throw Error(yt(349));var a=t._getVersion,o=a(t._source),s=yh.current,u=s.useState(function(){return oO(i,t,r)}),f=u[1],d=u[0];u=Xn;var p=e.memoizedState,h=p.refs,g=h.getSnapshot,w=p.source;p=p.subscribe;var E=pn;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=f;var y=a(t._source);if(!Qi(o,y)){y=r(t._source),Qi(d,y)||(f(y),y=Hs(E),i.mutableReadLanes|=y&i.pendingLanes),y=i.mutableReadLanes,i.entangledLanes|=y;for(var x=i.entanglements,S=y;0<S;){var A=31-Js(S),C=1<<A;x[A]|=y,S&=~C}}},[r,t,n]),s.useEffect(function(){return n(t._source,function(){var y=h.getSnapshot,x=h.setSnapshot;try{x(y(t._source));var S=Hs(E);i.mutableReadLanes|=S&i.pendingLanes}catch(A){x(function(){throw A})}})},[t,n]),Qi(g,r)&&Qi(w,t)&&Qi(p,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:d},e.dispatch=f=$A.bind(null,pn,e),u.queue=e,u.baseQueue=null,d=oO(i,t,r),u.memoizedState=u.baseState=d),d}function EN(e,t,r){var n=Fu();return SN(n,e,t,r)}function Op(e){var t=su();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},e=e.dispatch=$A.bind(null,pn,e),[t.memoizedState,e]}function uy(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=pn.updateQueue,t===null?(t={lastEffect:null},pn.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 sO(e){var t=su();return e={current:e},t.memoizedState=e}function fy(){return Fu().memoizedState}function x2(e,t,r,n){var i=su();pn.flags|=e,i.memoizedState=uy(1|t,r,void 0,n===void 0?null:n)}function LA(e,t,r,n){var i=Fu();n=n===void 0?null:n;var a=void 0;if(ni!==null){var o=ni.memoizedState;if(a=o.destroy,n!==null&&NA(n,o.deps)){uy(t,r,a,n);return}}pn.flags|=e,i.memoizedState=uy(1|t,r,a,n)}function lO(e,t){return x2(516,4,e,t)}function cy(e,t){return LA(516,4,e,t)}function AN(e,t){return LA(4,2,e,t)}function CN(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 TN(e,t,r){return r=r!=null?r.concat([e]):null,LA(4,2,CN.bind(null,t,e),r)}function BA(){}function RN(e,t){var r=Fu();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&NA(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ON(e,t){var r=Fu();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&NA(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function n7(e,t){var r=Ec();xu(98>r?98:r,function(){e(!0)}),xu(97<r?97:r,function(){var n=ta.transition;ta.transition=1;try{e(!1),t()}finally{ta.transition=n}})}function $A(e,t,r){var n=Bi(),i=Hs(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===pn||o!==null&&o===pn)bh=ly=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,r);if(a.eagerReducer=o,a.eagerState=u,Qi(u,s))return}catch{}finally{}Vs(e,i,n)}}var dy={readContext:ia,useCallback:wi,useContext:wi,useEffect:wi,useImperativeHandle:wi,useLayoutEffect:wi,useMemo:wi,useReducer:wi,useRef:wi,useState:wi,useDebugValue:wi,useDeferredValue:wi,useTransition:wi,useMutableSource:wi,useOpaqueIdentifier:wi,unstable_isNewReconciler:!1},i7={readContext:ia,useCallback:function(e,t){return su().memoizedState=[e,t===void 0?null:t],e},useContext:ia,useEffect:lO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,x2(4,2,CN.bind(null,t,e),r)},useLayoutEffect:function(e,t){return x2(4,2,e,t)},useMemo:function(e,t){var r=su();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=su();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=$A.bind(null,pn,e),[n.memoizedState,e]},useRef:sO,useState:Op,useDebugValue:BA,useDeferredValue:function(e){var t=Op(e),r=t[0],n=t[1];return lO(function(){var i=ta.transition;ta.transition=1;try{n(e)}finally{ta.transition=i}},[e]),r},useTransition:function(){var e=Op(!1),t=e[0];return e=n7.bind(null,e[1]),sO(e),[e,t]},useMutableSource:function(e,t,r){var n=su();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},SN(n,e,t,r)},useOpaqueIdentifier:function(){if(eo){var e=!1,t=QU(function(){throw e||(e=!0,r("r:"+(Fx++).toString(36))),Error(yt(355))}),r=Op(t)[1];return(pn.mode&2)===0&&(pn.flags|=516,uy(5,function(){r("r:"+(Fx++).toString(36))},void 0,null)),t}return t="r:"+(Fx++).toString(36),Op(t),t},unstable_isNewReconciler:!1},a7={readContext:ia,useCallback:RN,useContext:ia,useEffect:cy,useImperativeHandle:TN,useLayoutEffect:AN,useMemo:ON,useReducer:Tp,useRef:fy,useState:function(){return Tp(Ka)},useDebugValue:BA,useDeferredValue:function(e){var t=Tp(Ka),r=t[0],n=t[1];return cy(function(){var i=ta.transition;ta.transition=1;try{n(e)}finally{ta.transition=i}},[e]),r},useTransition:function(){var e=Tp(Ka)[0];return[fy().current,e]},useMutableSource:EN,useOpaqueIdentifier:function(){return Tp(Ka)[0]},unstable_isNewReconciler:!1},o7={readContext:ia,useCallback:RN,useContext:ia,useEffect:cy,useImperativeHandle:TN,useLayoutEffect:AN,useMemo:ON,useReducer:Rp,useRef:fy,useState:function(){return Rp(Ka)},useDebugValue:BA,useDeferredValue:function(e){var t=Rp(Ka),r=t[0],n=t[1];return cy(function(){var i=ta.transition;ta.transition=1;try{n(e)}finally{ta.transition=i}},[e]),r},useTransition:function(){var e=Rp(Ka)[0];return[fy().current,e]},useMutableSource:EN,useOpaqueIdentifier:function(){return Rp(Ka)[0]},unstable_isNewReconciler:!1},s7=Mu.ReactCurrentOwner,Ea=!1;function Si(e,t,r,n){t.child=e===null?wN(t,null,r,n):oy(t,e.child,r,n)}function uO(e,t,r,n,i){r=r.render;var a=t.ref;return lc(t,i),n=FA(e,t,r,n,a,i),e!==null&&!Ea?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Lo(e,t,i)):(t.flags|=1,Si(e,t,n,i),t.child)}function fO(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!qA(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,IN(e,t,o,n,i,a)):(e=D0(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:Gh,r(i,n)&&e.ref===t.ref)?Lo(e,t,a):(t.flags|=1,e=rl(o,n),e.ref=t.ref,e.return=t,t.child=e)}function IN(e,t,r,n,i,a){if(e!==null&&Gh(e.memoizedProps,n)&&e.ref===t.ref)if(Ea=!1,(a&i)!==0)(e.flags&16384)!==0&&(Ea=!0);else return t.lanes=e.lanes,Lo(e,t,a);return w2(e,t,r,n,a)}function zx(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},Am(t,r);else if((r&1073741824)!==0)t.memoizedState={baseLanes:0},Am(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Am(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Am(t,n);return Si(e,t,i,r),t.child}function PN(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function w2(e,t,r,n,i){var a=Ci(r)?bu:oi.current;return a=Sc(t,a),lc(t,i),r=FA(e,t,r,n,a,i),e!==null&&!Ea?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Lo(e,t,i)):(t.flags|=1,Si(e,t,r,i),t.child)}function cO(e,t,r,n,i){if(Ci(r)){var a=!0;R0(t)}else a=!1;if(lc(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),bN(t,r,n),m2(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,f=r.contextType;typeof f=="object"&&f!==null?f=ia(f):(f=Ci(r)?bu:oi.current,f=Sc(t,f));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||u!==f)&&rO(t,o,n,f),Ts=!1;var h=t.memoizedState;o.state=h,Vh(t,n,o,i),u=t.memoizedState,s!==n||h!==u||Ai.current||Ts?(typeof d=="function"&&(ay(t,r,d,n),u=t.memoizedState),(s=Ts||tO(t,r,s,n,h,u,f))?(p||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=u),o.props=n,o.state=u,o.context=f,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,mN(e,t),s=t.memoizedProps,f=t.type===t.elementType?s:Sa(t.type,s),o.props=f,p=t.pendingProps,h=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=ia(u):(u=Ci(r)?bu:oi.current,u=Sc(t,u));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==p||h!==u)&&rO(t,o,n,u),Ts=!1,h=t.memoizedState,o.state=h,Vh(t,n,o,i);var w=t.memoizedState;s!==p||h!==w||Ai.current||Ts?(typeof g=="function"&&(ay(t,r,g,n),w=t.memoizedState),(f=Ts||tO(t,r,f,n,h,w,u))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=w),o.props=n,o.state=w,o.context=u,n=f):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),n=!1)}return _2(e,t,r,n,a,i)}function _2(e,t,r,n,i,a){PN(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&KR(t,r,!1),Lo(e,t,a);n=t.stateNode,s7.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=oy(t,e.child,null,a),t.child=oy(t,null,s,a)):Si(e,t,s,a),t.memoizedState=n.state,i&&KR(t,r,!0),t.child}function dO(e){var t=e.stateNode;t.pendingContext?XR(e,t.pendingContext,t.pendingContext!==t.context):t.context&&XR(e,t.context,!1),y2(e,t.containerInfo)}var Em={dehydrated:null,retryLane:0};function pO(e,t,r){var n=t.pendingProps,i=on.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),ln(on,i&1),e===null?(n.fallback!==void 0&&b2(t),e=n.children,i=n.fallback,a?(e=hO(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Em,e):typeof n.unstable_expectedLoadTime=="number"?(e=hO(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Em,t.lanes=33554432,e):(r=HA({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=gO(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=Em,n):(r=vO(e,t,n.children,r),t.memoizedState=null,r):a?(n=gO(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=Em,n):(r=vO(e,t,n.children,r),t.memoizedState=null,r)}function hO(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=HA(t,i,0,null),r=dc(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function vO(e,t,r,n){var i=e.child;return e=i.sibling,r=rl(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 gO(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:r};return(a&2)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=rl(o,s),e!==null?n=rl(e,n):(n=dc(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function mO(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gN(e.return,t)}function Ux(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 yO(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Si(e,t,n.children,r),n=on.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&&mO(e,r);else if(e.tag===19)mO(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(ln(on,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&&sy(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Ux(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&&sy(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Ux(t,!0,r,null,a,t.lastEffect);break;case"together":Ux(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Lo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Rv|=t.lanes,(r&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(yt(153));if(t.child!==null){for(e=t.child,r=rl(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=rl(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var kN,S2,DN,MN;kN=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}};S2=function(){};DN=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ou(Ja.current);var a=null;switch(r){case"input":i=KS(e,i),n=KS(e,n),a=[];break;case"option":i=JS(e,i),n=JS(e,n),a=[];break;case"select":i=en({},i,{value:void 0}),n=en({},n,{value:void 0}),a=[];break;case"textarea":i=e2(e,i),n=e2(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=J0)}n2(r,n);var o;r=null;for(f in i)if(!n.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var s=i[f];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Lh.hasOwnProperty(f)?a||(a=[]):(a=a||[]).push(f,null));for(f in n){var u=n[f];if(s=i!=null?i[f]:void 0,n.hasOwnProperty(f)&&u!==s&&(u!=null||s!=null))if(f==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(a||(a=[]),a.push(f,r)),r=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(a=a||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Lh.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&Vr("scroll",e),a||s===u||(a=[])):typeof u=="object"&&u!==null&&u.$$typeof===dA?u.toString():(a=a||[]).push(f,u))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}};MN=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ip(e,t){if(!eo)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 l7(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 Ci(t.type)&&ty(),null;case 3:return Ac(),Xr(Ai),Xr(oi),MA(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Sm(t)?t.flags|=4:n.hydrate||(t.flags|=256)),S2(t),null;case 5:DA(t);var i=ou(Xh.current);if(r=t.type,e!==null&&t.stateNode!=null)DN(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(yt(166));return null}if(e=ou(Ja.current),Sm(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Ns]=t,n[ey]=a,r){case"dialog":Vr("cancel",n),Vr("close",n);break;case"iframe":case"object":case"embed":Vr("load",n);break;case"video":case"audio":for(e=0;e<eh.length;e++)Vr(eh[e],n);break;case"source":Vr("error",n);break;case"img":case"image":case"link":Vr("error",n),Vr("load",n);break;case"details":Vr("toggle",n);break;case"input":yR(n,a),Vr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Vr("invalid",n);break;case"textarea":xR(n,a),Vr("invalid",n)}n2(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]):Lh.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Vr("scroll",n));switch(r){case"input":mm(n),bR(n,a,!0);break;case"textarea":mm(n),wR(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=J0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===t2.html&&(e=TM(r)),e===t2.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[Ns]=t,e[ey]=n,kN(e,t,!1,!1),t.stateNode=e,o=i2(r,n),r){case"dialog":Vr("cancel",e),Vr("close",e),i=n;break;case"iframe":case"object":case"embed":Vr("load",e),i=n;break;case"video":case"audio":for(i=0;i<eh.length;i++)Vr(eh[i],e);i=n;break;case"source":Vr("error",e),i=n;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),i=n;break;case"details":Vr("toggle",e),i=n;break;case"input":yR(e,n),i=KS(e,n),Vr("invalid",e);break;case"option":i=JS(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=en({},n,{value:void 0}),Vr("invalid",e);break;case"textarea":xR(e,n),i=e2(e,n),Vr("invalid",e);break;default:i=n}n2(r,i);var s=i;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];a==="style"?IM(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&RM(e,u)):a==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Bh(e,u):typeof u=="number"&&Bh(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Lh.hasOwnProperty(a)?u!=null&&a==="onScroll"&&Vr("scroll",e):u!=null&&oA(e,a,u,o))}switch(r){case"input":mm(e),bR(e,n,!1);break;case"textarea":mm(e),wR(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Zs(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?ic(e,!!n.multiple,a,!1):n.defaultValue!=null&&ic(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=J0)}sN(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)MN(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(yt(166));r=ou(Xh.current),ou(Ja.current),Sm(t)?(n=t.stateNode,r=t.memoizedProps,n[Ns]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ns]=t,t.stateNode=n)}return null;case 13:return Xr(on),n=t.memoizedState,(t.flags&64)!==0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Sm(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(on.current&1)!==0?Kn===0&&(Kn=3):((Kn===0||Kn===3)&&(Kn=4),di===null||(Rv&134217727)===0&&(Yc&134217727)===0||fc(di,ai))),(n||r)&&(t.flags|=4),null);case 4:return Ac(),S2(t),e===null&&iN(t.stateNode.containerInfo),null;case 10:return PA(t),null;case 17:return Ci(t.type)&&ty(),null;case 19:if(Xr(on),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)Ip(n,!1);else{if(Kn!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(o=sy(e),o!==null){for(t.flags|=64,Ip(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 ln(on,on.current&1|2),t.child}e=e.sibling}n.tail!==null&&ii()>O2&&(t.flags|=64,a=!0,Ip(n,!1),t.lanes=33554432)}else{if(!a)if(e=sy(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ip(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!eo)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ii()-n.renderingStartTime>O2&&r!==1073741824&&(t.flags|=64,a=!0,Ip(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=ii(),r.sibling=null,t=on.current,ln(on,a?t&1|2:t&1),r):null;case 23:case 24:return GA(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(yt(156,t.tag))}function u7(e){switch(e.tag){case 1:Ci(e.type)&&ty();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Ac(),Xr(Ai),Xr(oi),MA(),t=e.flags,(t&64)!==0)throw Error(yt(285));return e.flags=t&-4097|64,e;case 5:return DA(e),null;case 13:return Xr(on),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Xr(on),null;case 4:return Ac(),null;case 10:return PA(e),null;case 23:case 24:return GA(),null;default:return null}}function zA(e,t){try{var r="",n=t;do r+=Wz(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 E2(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var f7=typeof WeakMap=="function"?WeakMap:Map;function NN(e,t,r){r=Gs(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){hy||(hy=!0,I2=n),E2(e,t)},r}function FN(e,t,r){r=Gs(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return E2(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this),E2(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var c7=typeof WeakSet=="function"?WeakSet:Set;function bO(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Ys(e,r)}else t.current=null}function d7(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:Sa(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&TA(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(yt(163))}function p7(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&&(qN(r,e),w7(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:Sa(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&eO(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}eO(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&sN(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&&zM(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(yt(163))}function xO(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=OM("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 wO(e,t){if(pu&&typeof pu.onCommitFiberUnmount=="function")try{pu.onCommitFiberUnmount(RA,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)qN(t,r);else{n=t;try{i()}catch(a){Ys(n,a)}}r=r.next}while(r!==e)}break;case 1:if(bO(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ys(t,a)}break;case 5:bO(t);break;case 4:LN(e,t)}}function _O(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 SO(e){return e.tag===5||e.tag===3||e.tag===4}function EO(e){e:{for(var t=e.return;t!==null;){if(SO(t))break e;t=t.return}throw Error(yt(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(yt(161))}r.flags&16&&(Bh(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||SO(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?A2(e,r,t):C2(e,r,t)}function A2(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=J0));else if(n!==4&&(e=e.child,e!==null))for(A2(e,t,r),e=e.sibling;e!==null;)A2(e,t,r),e=e.sibling}function C2(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(C2(e,t,r),e=e.sibling;e!==null;)C2(e,t,r),e=e.sibling}function LN(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(yt(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,s=r,u=s;;)if(wO(o,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a?(o=i,s=r.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):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(wO(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 jx(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[ey]=n,e==="input"&&n.type==="radio"&&n.name!=null&&AM(r,n),i2(e,i),t=i2(e,n),i=0;i<a.length;i+=2){var o=a[i],s=a[i+1];o==="style"?IM(r,s):o==="dangerouslySetInnerHTML"?RM(r,s):o==="children"?Bh(r,s):oA(r,o,s,t)}switch(e){case"input":QS(r,n);break;case"textarea":CM(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?ic(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?ic(r,!!n.multiple,n.defaultValue,!0):ic(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(yt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,zM(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(WA=ii(),xO(t.child,!0)),AO(t);return;case 19:AO(t);return;case 17:return;case 23:case 24:xO(t,t.memoizedState!==null);return}throw Error(yt(163))}function AO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new c7),t.forEach(function(n){var i=E7.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function h7(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var v7=Math.ceil,py=Mu.ReactCurrentDispatcher,UA=Mu.ReactCurrentOwner,sr=0,di=null,Pn=null,ai=0,wu=0,T2=dl(0),Kn=0,I1=null,Vc=0,Rv=0,Yc=0,jA=0,R2=null,WA=0,O2=1/0;function Xc(){O2=ii()+500}var Gt=null,hy=!1,I2=null,Qa=null,tl=!1,xh=null,th=90,P2=[],k2=[],$o=null,wh=0,D2=null,I0=-1,Mo=0,P0=0,_h=null,k0=!1;function Bi(){return(sr&48)!==0?ii():I0!==-1?I0:I0=ii()}function Hs(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return Ec()===99?1:2;if(Mo===0&&(Mo=Vc),r7.transition!==0){P0!==0&&(P0=R2!==null?R2.pendingLanes:0),e=Mo;var t=4186112&~P0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Ec(),(sr&4)!==0&&e===98?e=Q0(12,Mo):(e=aU(e),e=Q0(e,Mo)),e}function Vs(e,t,r){if(50<wh)throw wh=0,D2=null,Error(yt(185));if(e=P1(e,t),e===null)return null;S1(e,t,r),e===di&&(Yc|=t,Kn===4&&fc(e,ai));var n=Ec();t===1?(sr&8)!==0&&(sr&48)===0?M2(e):(aa(e,r),sr===0&&(Xc(),ao())):((sr&4)===0||n!==98&&n!==99||($o===null?$o=new Set([e]):$o.add(e)),aa(e,r)),R2=e}function P1(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 aa(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Js(o),u=1<<s,f=a[s];if(f===-1){if((u&n)===0||(u&i)!==0){f=t,zf(u);var d=Hr;a[s]=10<=d?f+250:6<=d?f+5e3:-1}}else f<=t&&(e.expiredLanes|=u);o&=~u}if(n=jh(e,e===di?ai:0),t=Hr,n===0)r!==null&&(r!==Lx&&v2(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Lx&&v2(r)}t===15?(r=M2.bind(null,e),ko===null?(ko=[r],O0=OA(R1,vN)):ko.push(r),r=Lx):t===14?r=Hh(99,M2.bind(null,e)):(r=oU(t),r=Hh(r,BN.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function BN(e){if(I0=-1,P0=Mo=0,(sr&48)!==0)throw Error(yt(327));var t=e.callbackNode;if(pl()&&e.callbackNode!==t)return null;var r=jh(e,e===di?ai:0);if(r===0)return null;var n=r,i=sr;sr|=16;var a=jN();(di!==e||ai!==n)&&(Xc(),cc(e,n));do try{y7();break}catch(s){UN(e,s)}while(1);if(IA(),py.current=a,sr=i,Pn!==null?n=0:(di=null,ai=0,n=Kn),(Vc&Yc)!==0)cc(e,0);else if(n!==0){if(n===2&&(sr|=64,e.hydrate&&(e.hydrate=!1,TA(e.containerInfo)),r=VM(e),r!==0&&(n=rh(e,r))),n===1)throw t=I1,cc(e,0),fc(e,r),aa(e,ii()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(yt(345));case 2:Kl(e);break;case 3:if(fc(e,r),(r&62914560)===r&&(n=WA+500-ii(),10<n)){if(jh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Bi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=HR(Kl.bind(null,e),n);break}Kl(e);break;case 4:if(fc(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Js(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=ii()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v7(r/1960))-r,10<r){e.timeoutHandle=HR(Kl.bind(null,e),r);break}Kl(e);break;case 5:Kl(e);break;default:throw Error(yt(329))}}return aa(e,ii()),e.callbackNode===t?BN.bind(null,e):null}function fc(e,t){for(t&=~jA,t&=~Yc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Js(t),n=1<<r;e[r]=-1,t&=~n}}function M2(e){if((sr&48)!==0)throw Error(yt(327));if(pl(),e===di&&(e.expiredLanes&ai)!==0){var t=ai,r=rh(e,t);(Vc&Yc)!==0&&(t=jh(e,t),r=rh(e,t))}else t=jh(e,0),r=rh(e,t);if(e.tag!==0&&r===2&&(sr|=64,e.hydrate&&(e.hydrate=!1,TA(e.containerInfo)),t=VM(e),t!==0&&(r=rh(e,t))),r===1)throw r=I1,cc(e,0),fc(e,t),aa(e,ii()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kl(e),aa(e,ii()),null}function g7(){if($o!==null){var e=$o;$o=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,aa(t,ii())})}ao()}function $N(e,t){var r=sr;sr|=1;try{return e(t)}finally{sr=r,sr===0&&(Xc(),ao())}}function zN(e,t){var r=sr;sr&=-2,sr|=8;try{return e(t)}finally{sr=r,sr===0&&(Xc(),ao())}}function Am(e,t){ln(T2,wu),wu|=t,Vc|=t}function GA(){wu=T2.current,Xr(T2)}function cc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,KU(r)),Pn!==null)for(r=Pn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&ty();break;case 3:Ac(),Xr(Ai),Xr(oi),MA();break;case 5:DA(n);break;case 4:Ac();break;case 13:Xr(on);break;case 19:Xr(on);break;case 10:PA(n);break;case 23:case 24:GA()}r=r.return}di=e,Pn=rl(e.current,null),ai=wu=Vc=t,Kn=0,I1=null,jA=Yc=Rv=0}function UN(e,t){do{var r=Pn;try{if(IA(),yh.current=dy,ly){for(var n=pn.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ly=!1}if(Kh=0,Xn=ni=pn=null,bh=!1,UA.current=null,r===null||r.return===null){Kn=1,I1=t,Pn=null;break}e:{var a=e,o=r.return,s=r,u=t;if(t=ai,s.flags|=2048,s.firstEffect=s.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u;if((s.mode&2)===0){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var p=(on.current&1)!==0,h=o;do{var g;if(g=h.tag===13){var w=h.memoizedState;if(w!==null)g=w.dehydrated!==null;else{var E=h.memoizedProps;g=E.fallback===void 0?!1:E.unstable_avoidThisFallback!==!0?!0:!p}}if(g){var y=h.updateQueue;if(y===null){var x=new Set;x.add(f),h.updateQueue=x}else y.add(f);if((h.mode&2)===0){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var S=Gs(-1,1);S.tag=2,qs(s,S)}s.lanes|=1;break e}u=void 0,s=t;var A=a.pingCache;if(A===null?(A=a.pingCache=new f7,u=new Set,A.set(f,u)):(u=A.get(f),u===void 0&&(u=new Set,A.set(f,u))),!u.has(s)){u.add(s);var C=S7.bind(null,a,f,s);f.then(C,C)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);u=Error((nc(s.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.`)}Kn!==5&&(Kn=2),u=zA(u,s),h=o;do{switch(h.tag){case 3:a=u,h.flags|=4096,t&=-t,h.lanes|=t;var k=NN(h,a,t);JR(h,k);break e;case 1:a=u;var D=h.type,z=h.stateNode;if((h.flags&64)===0&&(typeof D.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Qa===null||!Qa.has(z)))){h.flags|=4096,t&=-t,h.lanes|=t;var M=FN(h,a,t);JR(h,M);break e}}h=h.return}while(h!==null)}GN(r)}catch(L){t=L,Pn===r&&r!==null&&(Pn=r=r.return);continue}break}while(1)}function jN(){var e=py.current;return py.current=dy,e===null?dy:e}function rh(e,t){var r=sr;sr|=16;var n=jN();di===e&&ai===t||cc(e,t);do try{m7();break}catch(i){UN(e,i)}while(1);if(IA(),sr=r,py.current=n,Pn!==null)throw Error(yt(261));return di=null,ai=0,Kn}function m7(){for(;Pn!==null;)WN(Pn)}function y7(){for(;Pn!==null&&!JU();)WN(Pn)}function WN(e){var t=HN(e.alternate,e,wu);e.memoizedProps=e.pendingProps,t===null?GN(e):Pn=t,UA.current=null}function GN(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=l7(r,t,wu),r!==null){Pn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(wu&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=u7(t),r!==null){r.flags&=2047,Pn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Pn=t;return}Pn=t=e}while(t!==null);Kn===0&&(Kn=5)}function Kl(e){var t=Ec();return xu(99,b7.bind(null,e,t)),null}function b7(e,t){do pl();while(xh!==null);if((sr&48)!==0)throw Error(yt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(yt(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,s=e.expirationTimes;0<a;){var u=31-Js(a),f=1<<u;i[u]=0,o[u]=-1,s[u]=-1,a&=~f}if($o!==null&&(n&24)===0&&$o.has(e)&&$o.delete(e),e===di&&(Pn=di=null,ai=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=sr,sr|=32,UA.current=null,Mx=A0,o=$R(),f2(o)){if("selectionStart"in o)s={start:o.selectionStart,end:o.selectionEnd};else e:if(s=(s=o.ownerDocument)&&s.defaultView||window,(f=s.getSelection&&s.getSelection())&&f.rangeCount!==0){s=f.anchorNode,a=f.anchorOffset,u=f.focusNode,f=f.focusOffset;try{s.nodeType,u.nodeType}catch{s=null;break e}var d=0,p=-1,h=-1,g=0,w=0,E=o,y=null;t:for(;;){for(var x;E!==s||a!==0&&E.nodeType!==3||(p=d+a),E!==u||f!==0&&E.nodeType!==3||(h=d+f),E.nodeType===3&&(d+=E.nodeValue.length),(x=E.firstChild)!==null;)y=E,E=x;for(;;){if(E===o)break t;if(y===s&&++g===a&&(p=d),y===u&&++w===f&&(h=d),(x=E.nextSibling)!==null)break;E=y,y=E.parentNode}E=x}s=p===-1||h===-1?null:{start:p,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Nx={focusedElem:o,selectionRange:s},A0=!1,_h=null,k0=!1,Gt=n;do try{x7()}catch(L){if(Gt===null)throw Error(yt(330));Ys(Gt,L),Gt=Gt.nextEffect}while(Gt!==null);_h=null,Gt=n;do try{for(o=e;Gt!==null;){var S=Gt.flags;if(S&16&&Bh(Gt.stateNode,""),S&128){var A=Gt.alternate;if(A!==null){var C=A.ref;C!==null&&(typeof C=="function"?C(null):C.current=null)}}switch(S&1038){case 2:EO(Gt),Gt.flags&=-3;break;case 6:EO(Gt),Gt.flags&=-3,jx(Gt.alternate,Gt);break;case 1024:Gt.flags&=-1025;break;case 1028:Gt.flags&=-1025,jx(Gt.alternate,Gt);break;case 4:jx(Gt.alternate,Gt);break;case 8:s=Gt,LN(o,s);var k=s.alternate;_O(s),k!==null&&_O(k)}Gt=Gt.nextEffect}}catch(L){if(Gt===null)throw Error(yt(330));Ys(Gt,L),Gt=Gt.nextEffect}while(Gt!==null);if(C=Nx,A=$R(),S=C.focusedElem,o=C.selectionRange,A!==S&&S&&S.ownerDocument&&tN(S.ownerDocument.documentElement,S)){for(o!==null&&f2(S)&&(A=o.start,C=o.end,C===void 0&&(C=A),"selectionStart"in S?(S.selectionStart=A,S.selectionEnd=Math.min(C,S.value.length)):(C=(A=S.ownerDocument||document)&&A.defaultView||window,C.getSelection&&(C=C.getSelection(),s=S.textContent.length,k=Math.min(o.start,s),o=o.end===void 0?k:Math.min(o.end,s),!C.extend&&k>o&&(s=o,o=k,k=s),s=BR(S,k),a=BR(S,o),s&&a&&(C.rangeCount!==1||C.anchorNode!==s.node||C.anchorOffset!==s.offset||C.focusNode!==a.node||C.focusOffset!==a.offset)&&(A=A.createRange(),A.setStart(s.node,s.offset),C.removeAllRanges(),k>o?(C.addRange(A),C.extend(a.node,a.offset)):(A.setEnd(a.node,a.offset),C.addRange(A)))))),A=[],C=S;C=C.parentNode;)C.nodeType===1&&A.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<A.length;S++)C=A[S],C.element.scrollLeft=C.left,C.element.scrollTop=C.top}A0=!!Mx,Nx=Mx=null,e.current=r,Gt=n;do try{for(S=e;Gt!==null;){var D=Gt.flags;if(D&36&&p7(S,Gt.alternate,Gt),D&128){A=void 0;var z=Gt.ref;if(z!==null){var M=Gt.stateNode;switch(Gt.tag){case 5:A=M;break;default:A=M}typeof z=="function"?z(A):z.current=A}}Gt=Gt.nextEffect}}catch(L){if(Gt===null)throw Error(yt(330));Ys(Gt,L),Gt=Gt.nextEffect}while(Gt!==null);Gt=null,t7(),sr=i}else e.current=r;if(tl)tl=!1,xh=e,th=t;else for(Gt=n;Gt!==null;)t=Gt.nextEffect,Gt.nextEffect=null,Gt.flags&8&&(D=Gt,D.sibling=null,D.stateNode=null),Gt=t;if(n=e.pendingLanes,n===0&&(Qa=null),n===1?e===D2?wh++:(wh=0,D2=e):wh=0,r=r.stateNode,pu&&typeof pu.onCommitFiberRoot=="function")try{pu.onCommitFiberRoot(RA,r,void 0,(r.current.flags&64)===64)}catch{}if(aa(e,ii()),hy)throw hy=!1,e=I2,I2=null,e;return(sr&8)!==0||ao(),null}function x7(){for(;Gt!==null;){var e=Gt.alternate;k0||_h===null||((Gt.flags&8)!==0?ER(Gt,_h)&&(k0=!0):Gt.tag===13&&h7(e,Gt)&&ER(Gt,_h)&&(k0=!0));var t=Gt.flags;(t&256)!==0&&d7(e,Gt),(t&512)===0||tl||(tl=!0,Hh(97,function(){return pl(),null})),Gt=Gt.nextEffect}}function pl(){if(th!==90){var e=97<th?97:th;return th=90,xu(e,_7)}return!1}function w7(e,t){P2.push(t,e),tl||(tl=!0,Hh(97,function(){return pl(),null}))}function qN(e,t){k2.push(t,e),tl||(tl=!0,Hh(97,function(){return pl(),null}))}function _7(){if(xh===null)return!1;var e=xh;if(xh=null,(sr&48)!==0)throw Error(yt(331));var t=sr;sr|=32;var r=k2;k2=[];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(u){if(a===null)throw Error(yt(330));Ys(a,u)}}for(r=P2,P2=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var s=i.create;i.destroy=s()}catch(u){if(a===null)throw Error(yt(330));Ys(a,u)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return sr=t,ao(),!0}function CO(e,t,r){t=zA(r,t),t=NN(e,t,1),qs(e,t),t=Bi(),e=P1(e,1),e!==null&&(S1(e,1,t),aa(e,t))}function Ys(e,t){if(e.tag===3)CO(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){CO(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Qa===null||!Qa.has(n))){e=zA(t,e);var i=FN(r,e,1);if(qs(r,i),i=Bi(),r=P1(r,1),r!==null)S1(r,1,i),aa(r,i);else if(typeof n.componentDidCatch=="function"&&(Qa===null||!Qa.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function S7(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Bi(),e.pingedLanes|=e.suspendedLanes&r,di===e&&(ai&r)===r&&(Kn===4||Kn===3&&(ai&62914560)===ai&&500>ii()-WA?cc(e,0):jA|=r),aa(e,t)}function E7(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=Ec()===99?1:2:(Mo===0&&(Mo=Vc),t=Uf(62914560&~Mo),t===0&&(t=4194304))),r=Bi(),e=P1(e,t),e!==null&&(S1(e,t,r),aa(e,r))}var HN;HN=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ai.current)Ea=!0;else if((r&n)!==0)Ea=(e.flags&16384)!==0;else{switch(Ea=!1,t.tag){case 3:dO(t),$x();break;case 5:nO(t);break;case 1:Ci(t.type)&&R0(t);break;case 4:y2(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;ln(ry,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?pO(e,t,r):(ln(on,on.current&1),t=Lo(e,t,r),t!==null?t.sibling:null);ln(on,on.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return yO(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ln(on,on.current),n)break;return null;case 23:case 24:return t.lanes=0,zx(e,t,r)}return Lo(e,t,r)}else Ea=!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=Sc(t,oi.current),lc(t,r),i=FA(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,Ci(n)){var a=!0;R0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kA(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&ay(t,n,o,e),i.updater=O1,t.stateNode=i,i._reactInternals=t,m2(t,n,e,r),t=_2(null,t,n,!0,a,r)}else t.tag=0,Si(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=C7(i),e=Sa(i,e),a){case 0:t=w2(null,t,i,e,r);break e;case 1:t=cO(null,t,i,e,r);break e;case 11:t=uO(null,t,i,e,r);break e;case 14:t=fO(null,t,i,Sa(i.type,e),n,r);break e}throw Error(yt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),w2(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),cO(e,t,n,i,r);case 3:if(dO(t),n=t.updateQueue,e===null||n===null)throw Error(yt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,mN(e,t),Vh(t,n,null,r),n=t.memoizedState.element,n===i)$x(),t=Lo(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Fs=sc(t.stateNode.containerInfo.firstChild),Fo=t,a=eo=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],uc.push(a);for(r=wN(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Si(e,t,n,r),$x();t=t.child}return t;case 5:return nO(t),e===null&&b2(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,p2(n,i)?o=null:a!==null&&p2(n,a)&&(t.flags|=16),PN(e,t),Si(e,t,o,r),t.child;case 6:return e===null&&b2(t),null;case 13:return pO(e,t,r);case 4:return y2(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=oy(t,null,n,r):Si(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),uO(e,t,n,i,r);case 7:return Si(e,t,t.pendingProps,r),t.child;case 8:return Si(e,t,t.pendingProps.children,r),t.child;case 12:return Si(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 s=t.type._context;if(ln(ry,s._currentValue),s._currentValue=a,o!==null)if(s=o.value,a=Qi(s,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(s,a):1073741823)|0,a===0){if(o.children===i.children&&!Ai.current){t=Lo(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){o=s.child;for(var f=u.firstContext;f!==null;){if(f.context===n&&(f.observedBits&a)!==0){s.tag===1&&(f=Gs(-1,r&-r),f.tag=2,qs(s,f)),s.lanes|=r,f=s.alternate,f!==null&&(f.lanes|=r),gN(s.return,r),u.lanes|=r;break}f=f.next}}else o=s.tag===10&&s.type===t.type?null:s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Si(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,lc(t,r),i=ia(i,a.unstable_observedBits),n=n(i),t.flags|=1,Si(e,t,n,r),t.child;case 14:return i=t.type,a=Sa(i,t.pendingProps),a=Sa(i.type,a),fO(e,t,i,a,n,r);case 15:return IN(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ci(n)?(e=!0,R0(t)):e=!1,lc(t,r),bN(t,n,i),m2(t,n,i,r),_2(null,t,n,!0,e,r);case 19:return yO(e,t,r);case 23:return zx(e,t,r);case 24:return zx(e,t,r)}throw Error(yt(156,t.tag))};function A7(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 Zi(e,t,r,n){return new A7(e,t,r,n)}function qA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C7(e){if(typeof e=="function")return qA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===x1)return 11;if(e===w1)return 14}return 2}function rl(e,t){var r=e.alternate;return r===null?(r=Zi(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 D0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")qA(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ks:return dc(r.children,i,a,t);case _M:o=8,i|=16;break;case sA:o=8,i|=1;break;case ch:return e=Zi(12,r,t,i|8),e.elementType=ch,e.type=ch,e.lanes=a,e;case dh:return e=Zi(13,r,t,i),e.type=dh,e.elementType=dh,e.lanes=a,e;case V0:return e=Zi(19,r,t,i),e.elementType=V0,e.lanes=a,e;case pA:return HA(r,i,a,t);case XS:return e=Zi(24,r,t,i),e.elementType=XS,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lA:o=10;break e;case uA:o=9;break e;case x1:o=11;break e;case w1:o=14;break e;case fA:o=16,n=null;break e;case cA:o=22;break e}throw Error(yt(130,e==null?e:typeof e,""))}return t=Zi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function dc(e,t,r,n){return e=Zi(7,e,n,t),e.lanes=r,e}function HA(e,t,r,n){return e=Zi(23,e,n,t),e.elementType=pA,e.lanes=r,e}function Wx(e,t,r){return e=Zi(6,e,null,t),e.lanes=r,e}function Gx(e,t,r){return t=Zi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T7(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=Tx(0),this.expirationTimes=Tx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tx(0),this.mutableSourceEagerHydrationData=null}function R7(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function vy(e,t,r,n){var i=t.current,a=Bi(),o=Hs(i);e:if(r){r=r._reactInternals;t:{if(Nu(r)!==r||r.tag!==1)throw Error(yt(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Ci(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(yt(171))}if(r.tag===1){var u=r.type;if(Ci(u)){r=uN(r,u,s);break e}}r=s}else r=el;return t.context===null?t.context=r:t.pendingContext=r,t=Gs(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),qs(i,t),Vs(i,o,a),o}function qx(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 TO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function VA(e,t){TO(e,t),(e=e.alternate)&&TO(e,t)}function O7(){return null}function YA(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new T7(e,t,r!=null&&r.hydrate===!0),t=Zi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,kA(t),e[Hc]=r.current,iN(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}YA.prototype.render=function(e){vy(e,this._internalRoot,null,null)};YA.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;vy(null,e,null,function(){t[Hc]=null})};function Ov(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function I7(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 YA(e,0,t?{hydrate:!0}:void 0)}function k1(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var s=i;i=function(){var f=qx(o);s.call(f)}}vy(t,o,e,i)}else{if(a=r._reactRootContainer=I7(r,n),o=a._internalRoot,typeof i=="function"){var u=i;i=function(){var f=qx(o);u.call(f)}}zN(function(){vy(t,o,e,i)})}return qx(o)}LM=function(e){if(e.tag===13){var t=Bi();Vs(e,4,t),VA(e,4)}};yA=function(e){if(e.tag===13){var t=Bi();Vs(e,67108864,t),VA(e,67108864)}};BM=function(e){if(e.tag===13){var t=Bi(),r=Hs(e);Vs(e,r,t),VA(e,r)}};$M=function(e,t){return t()};a2=function(e,t,r){switch(t){case"input":if(QS(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=T1(n);if(!i)throw Error(yt(90));EM(n),QS(n,i)}}}break;case"textarea":CM(e,r);break;case"select":t=r.value,t!=null&&ic(e,!!r.multiple,t,!1)}};vA=$N;DM=function(e,t,r,n,i){var a=sr;sr|=4;try{return xu(98,e.bind(null,t,r,n,i))}finally{sr=a,sr===0&&(Xc(),ao())}};gA=function(){(sr&49)===0&&(g7(),pl())};MM=function(e,t){var r=sr;sr|=2;try{return e(t)}finally{sr=r,sr===0&&(Xc(),ao())}};function VN(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ov(t))throw Error(yt(200));return R7(e,t,null,r)}var P7={Events:[Cv,Kf,T1,PM,kM,pl,{current:!1}]},Pp={findFiberByHostInstance:au,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},k7={bundleType:Pp.bundleType,version:Pp.version,rendererPackageName:Pp.rendererPackageName,rendererConfig:Pp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mu.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=FM(e),e===null?null:e.stateNode},findFiberByHostInstance:Pp.findFiberByHostInstance||O7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cm.isDisabled&&Cm.supportsFiber)try{RA=Cm.inject(k7),pu=Cm}catch{}}la.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P7;la.createPortal=VN;la.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(yt(188)):Error(yt(268,Object.keys(e)));return e=FM(t),e=e===null?null:e.stateNode,e};la.flushSync=function(e,t){var r=sr;if((r&48)!==0)return e(t);sr|=1;try{if(e)return xu(99,e.bind(null,t))}finally{sr=r,ao()}};la.hydrate=function(e,t,r){if(!Ov(t))throw Error(yt(200));return k1(null,e,t,!0,r)};la.render=function(e,t,r){if(!Ov(t))throw Error(yt(200));return k1(null,e,t,!1,r)};la.unmountComponentAtNode=function(e){if(!Ov(e))throw Error(yt(40));return e._reactRootContainer?(zN(function(){k1(null,null,e,!1,function(){e._reactRootContainer=null,e[Hc]=null})}),!0):!1};la.unstable_batchedUpdates=$N;la.unstable_createPortal=function(e,t){return VN(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};la.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ov(r))throw Error(yt(200));if(e==null||e._reactInternals===void 0)throw Error(yt(38));return k1(e,t,r,!1,n)};la.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=la})(Do);const nh=ZE(Do.exports);var mr={exports:{}},D7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",M7=D7,N7=M7;function YN(){}function XN(){}XN.resetWarningCache=YN;var F7=function(){function e(n,i,a,o,s,u){if(u!==N7){var f=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 f.name="Invariant Violation",f}}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:XN,resetWarningCache:YN};return r.PropTypes=r,r};mr.exports=F7();var L7=function(){},B7=L7(),Vo=function(e){return e!==B7&&e!==null},$7=Vo,z7=Array.prototype.forEach,U7=Object.create,j7=function(e,t){var r;for(r in e)t[r]=e[r]},XA=function(e){var t=U7(null);return z7.call(arguments,function(r){!$7(r)||j7(Object(r),t)}),t},W7=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},Hx,RO;function G7(){return RO||(RO=1,Hx=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),Hx}var q7=W7()?Math.sign:G7(),H7=q7,V7=Math.abs,Y7=Math.floor,X7=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:H7(e)*Y7(V7(e)))},K7=X7,Q7=Math.max,Lu=function(e){return Q7(0,K7(e))},Z7=Lu,KN=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:Z7(e)},oo=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},J7=Vo,Ia=function(e){if(!J7(e))throw new TypeError("Cannot use null or undefined");return e},e9=oo,t9=Ia,r9=Function.prototype.bind,OO=Function.prototype.call,n9=Object.keys,i9=Object.prototype.propertyIsEnumerable,a9=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(t9(r)),e9(n),i=n9(r),o&&i.sort(typeof o=="function"?r9.call(o,r):void 0),typeof e!="function"&&(e=i[e]),OO.call(e,i,function(s,u){return i9.call(r,s)?OO.call(n,a,r[s],s,r,u):t})}},D1=a9("forEach"),Bu={},QN={exports:{}},o9=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")},Vx,IO;function s9(){return IO||(IO=1,Vx=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Vx}var Yx,PO;function l9(){if(PO)return Yx;PO=1;var e=Vo,t=Object.keys;return Yx=function(r){return t(e(r)?Object(r):r)},Yx}var Xx,kO;function u9(){return kO||(kO=1,Xx=s9()()?Object.keys:l9()),Xx}var Kx,DO;function f9(){if(DO)return Kx;DO=1;var e=u9(),t=Ia,r=Math.max;return Kx=function(n,i){var a,o,s=r(arguments.length,2),u;for(n=Object(t(n)),u=function(f){try{n[f]=i[f]}catch(d){a||(a=d)}},o=1;o<s;++o)i=arguments[o],e(i).forEach(u);if(a!==void 0)throw a;return n},Kx}var M1=o9()?Object.assign:f9(),c9=Vo,d9={function:!0,object:!0},KA=function(e){return c9(e)&&d9[typeof e]||!1};(function(e){var t=M1,r=KA,n=Vo,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),s=arguments[1],u=arguments[2];return n(u)||r(s)&&(u=s,s=null),n(u)&&t(o,u),n(s)&&(o.code=s),i&&i(o,e.exports),o}})(QN);var gy={exports:{}},Qx,MO;function ZN(){if(MO)return Qx;MO=1;var e=Ia,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return Qx=function(a,o){var s,u=Object(e(o));if(a=Object(e(a)),n(u).forEach(function(f){try{t(a,f,r(o,f))}catch(d){s=d}}),typeof i=="function"&&i(u).forEach(function(f){try{t(a,f,r(o,f))}catch(d){s=d}}),s!==void 0)throw s;return a},Qx}var NO=Lu,JN=function(e,t){return t},Zx,FO,LO,BO;try{Object.defineProperty(JN,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}JN.length===1?(Zx={configurable:!0,writable:!1,enumerable:!1},FO=Object.defineProperty,gy.exports=function(e,t){return t=NO(t),e.length===t?e:(Zx.value=t,FO(e,"length",Zx))}):(BO=ZN(),LO=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); };")}}(),gy.exports=function(e,t){var r;if(t=NO(t),e.length===t)return e;r=LO(t)(e);try{BO(r,e)}catch{}return r});var ua={exports:{}},p9=void 0,Kc=function(e){return e!==p9&&e!==null},h9=Kc,v9={object:!0,function:!0,undefined:!0},QA=function(e){return h9(e)?hasOwnProperty.call(v9,typeof e):!1},g9=QA,m9=function(e){if(!g9(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},y9=m9,b9=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!y9(e)},x9=b9,w9=/^\s*class[\s{/}]/,_9=Function.prototype.toString,eF=function(e){return!(!x9(e)||w9.test(_9.call(e)))},Jx="razdwatrzy",S9=function(){return typeof Jx.contains!="function"?!1:Jx.contains("dwa")===!0&&Jx.contains("foo")===!1},ew,$O;function E9(){if($O)return ew;$O=1;var e=String.prototype.indexOf;return ew=function(t){return e.call(this,t,arguments[1])>-1},ew}var tF=S9()?String.prototype.contains:E9(),M0=Kc,zO=eF,rF=M1,nF=XA,Sh=tF,A9=ua.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],M0(e)?(r=Sh.call(e,"c"),n=Sh.call(e,"e"),i=Sh.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?rF(nF(a),o):o};A9.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],M0(t)?zO(t)?M0(r)?zO(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,M0(e)?(n=Sh.call(e,"c"),i=Sh.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?rF(nF(a),o):o};var N2={exports:{}};(function(e,t){var r=ua.exports,n=oo,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,s=Object.defineProperty,u=Object.defineProperties,f=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},p,h,g,w,E,y,x;p=function(S,A){var C;return n(A),f.call(this,"__ee__")?C=this.__ee__:(C=d.value=o(null),s(this,"__ee__",d),d.value=null),C[S]?typeof C[S]=="object"?C[S].push(A):C[S]=[C[S],A]:C[S]=A,this},h=function(S,A){var C,k;return n(A),k=this,p.call(this,S,C=function(){g.call(k,S,C),i.call(A,this,arguments)}),C.__eeOnceListener__=A,this},g=function(S,A){var C,k,D,z;if(n(A),!f.call(this,"__ee__"))return this;if(C=this.__ee__,!C[S])return this;if(k=C[S],typeof k=="object")for(z=0;D=k[z];++z)(D===A||D.__eeOnceListener__===A)&&(k.length===2?C[S]=k[z?0:1]:k.splice(z,1));else(k===A||k.__eeOnceListener__===A)&&delete C[S];return this},w=function(S){var A,C,k,D,z;if(!!f.call(this,"__ee__")&&(D=this.__ee__[S],!!D))if(typeof D=="object"){for(C=arguments.length,z=new Array(C-1),A=1;A<C;++A)z[A-1]=arguments[A];for(D=D.slice(),A=0;k=D[A];++A)i.call(k,this,z)}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(C=arguments.length,z=new Array(C-1),A=1;A<C;++A)z[A-1]=arguments[A];i.call(D,this,z)}},E={on:p,once:h,off:g,emit:w},y={on:r(p),once:r(h),off:r(g),emit:r(w)},x=u({},y),e.exports=t=function(S){return S==null?o(x):u(Object(S),y)},t.methods=E})(N2,N2.exports);var tw,UO;function C9(){return UO||(UO=1,tw=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"))}),tw}var rw,jO;function T9(){return jO||(jO=1,rw=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),rw}var nw,WO;function R9(){if(WO)return nw;WO=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 nw=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__}}(),nw}var iw,GO;function N1(){return GO||(GO=1,iw=T9()()?globalThis:R9()),iw}var aw,qO;function O9(){if(qO)return aw;qO=1;var e=N1(),t={object:!0,symbol:!0};return aw=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])},aw}var ow,HO;function I9(){return HO||(HO=1,ow=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),ow}var sw,VO;function iF(){if(VO)return sw;VO=1;var e=I9();return sw=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},sw}var lw,YO;function P9(){if(YO)return lw;YO=1;var e=ua.exports,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return lw=function(a){for(var o=0,s,u;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,s="@@"+a,r(n,s,e.gs(null,function(f){u||(u=!0,r(this,s,e(f)),u=!1)})),s},lw}var uw,XO;function k9(){if(XO)return uw;XO=1;var e=ua.exports,t=N1().Symbol;return uw=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"))})},uw}var fw,KO;function D9(){if(KO)return fw;KO=1;var e=ua.exports,t=iF(),r=Object.create(null);return fw=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})})},fw}var cw,QO;function M9(){if(QO)return cw;QO=1;var e=ua.exports,t=iF(),r=N1().Symbol,n=P9(),i=k9(),a=D9(),o=Object.create,s=Object.defineProperties,u=Object.defineProperty,f,d,p;if(typeof r=="function")try{String(r()),p=!0}catch{}else r=null;return d=function(g){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f(g)},cw=f=function h(g){var w;if(this instanceof h)throw new TypeError("Symbol is not a constructor");return p?r(g):(w=o(d.prototype),g=g===void 0?"":String(g),s(w,{__description__:e("",g),__name__:e("",n(g))}))},i(f),a(f),s(d.prototype,{constructor:e(f),toString:e("",function(){return this.__name__})}),s(f.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),u(f.prototype,f.toPrimitive,e("",function(){var h=t(this);return typeof h=="symbol"?h:h.toString()})),u(f.prototype,f.toStringTag,e("c","Symbol")),u(d.prototype,f.toStringTag,e("c",f.prototype[f.toStringTag])),u(d.prototype,f.toPrimitive,e("c",f.prototype[f.toPrimitive])),cw}var dw,ZO;function $u(){return ZO||(ZO=1,dw=O9()()?N1().Symbol:M9()),dw}var pw,JO;function F1(){if(JO)return pw;JO=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return pw=function(r){return e.call(r)===t},pw}var hw,e3;function N9(){if(e3)return hw;e3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return hw=function(r){return typeof r=="function"&&t(e.call(r))},hw}var vw,t3;function L1(){if(t3)return vw;t3=1;var e=Object.prototype.toString,t=e.call("");return vw=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},vw}var gw,r3;function F9(){if(r3)return gw;r3=1;var e=$u().iterator,t=F1(),r=N9(),n=Lu,i=oo,a=Ia,o=Vo,s=L1(),u=Array.isArray,f=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},p=Object.defineProperty;return gw=function(h){var g=arguments[1],w=arguments[2],E,y,x,S,A,C,k,D,z,M;if(h=Object(a(h)),o(g)&&i(g),!this||this===Array||!r(this)){if(!g){if(t(h))return A=h.length,A!==1?Array.apply(null,h):(S=new Array(1),S[0]=h[0],S);if(u(h)){for(S=new Array(A=h.length),y=0;y<A;++y)S[y]=h[y];return S}}S=[]}else E=this;if(!u(h)){if((z=h[e])!==void 0){for(k=i(z).call(h),E&&(S=new E),D=k.next(),y=0;!D.done;)M=g?f.call(g,w,D.value,y):D.value,E?(d.value=M,p(S,y,d)):S[y]=M,D=k.next(),++y;A=y}else if(s(h)){for(A=h.length,E&&(S=new E),y=0,x=0;y<A;++y)M=h[y],y+1<A&&(C=M.charCodeAt(0),C>=55296&&C<=56319&&(M+=h[++y])),M=g?f.call(g,w,M,x):M,E?(d.value=M,p(S,x,d)):S[x]=M,++x;A=x}}if(A===void 0)for(A=n(h.length),E&&(S=new E(A)),y=0;y<A;++y)M=g?f.call(g,w,h[y],y):h[y],E?(d.value=M,p(S,y,d)):S[y]=M;return E&&(d.value=null,S.length=A),S},gw}var mw,n3;function B1(){return n3||(n3=1,mw=C9()()?Array.from:F9()),mw}var L9=B1(),B9=Array.isArray,$9=function(e){return B9(e)?e:L9(e)},z9=$9,U9=Vo,j9=oo,W9=Array.prototype.slice,aF;aF=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(W9.call(e,this.length))};var G9=function(e){return e=z9(e),e.forEach(function(t){U9(t)&&j9(t)}),aF.bind(e)},Tm=oo,q9=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Tm(e.get)},e.set!==void 0?(t.set=Tm(e.set),e.delete&&(t.delete=Tm(e.delete)),e.clear&&(t.clear=Tm(e.clear)),t):(t.set=t.get,t))},Rm=QN.exports,Om=gy.exports,kp=ua.exports,oF=N2.exports.methods,H9=G9,V9=q9,yw=Function.prototype.apply,bw=Function.prototype.call,i3=Object.create,Y9=Object.defineProperties,X9=oF.on,K9=oF.emit,Q9=function(e,t,r){var n=i3(null),i,a,o,s,u,f,d,p,h,g,w,E,y,x,S;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(g=V9(r.normalizer),o=g.get,s=g.set,u=g.delete,f=g.clear),r.resolvers!=null&&(S=H9(r.resolvers)),o?x=Om(function(A){var C,k,D=arguments;if(S&&(D=S(D)),C=o(D),C!==null&&hasOwnProperty.call(n,C))return w&&i.emit("get",C,D,this),n[C];if(D.length===1?k=bw.call(e,this,D[0]):k=yw.call(e,this,D),C===null){if(C=o(D),C!==null)throw Rm("Circular invocation","CIRCULAR_INVOCATION");C=s(D)}else if(hasOwnProperty.call(n,C))throw Rm("Circular invocation","CIRCULAR_INVOCATION");return n[C]=k,E&&i.emit("set",C,null,k),k},a):t===0?x=function(){var A;if(hasOwnProperty.call(n,"data"))return w&&i.emit("get","data",arguments,this),n.data;if(arguments.length?A=yw.call(e,this,arguments):A=bw.call(e,this),hasOwnProperty.call(n,"data"))throw Rm("Circular invocation","CIRCULAR_INVOCATION");return n.data=A,E&&i.emit("set","data",null,A),A}:x=function(A){var C,k=arguments,D;if(S&&(k=S(arguments)),D=String(k[0]),hasOwnProperty.call(n,D))return w&&i.emit("get",D,k,this),n[D];if(k.length===1?C=bw.call(e,this,k[0]):C=yw.call(e,this,k),hasOwnProperty.call(n,D))throw Rm("Circular invocation","CIRCULAR_INVOCATION");return n[D]=C,E&&i.emit("set",D,null,C),C},i={original:e,memoized:x,profileName:r.profileName,get:function(A){return S&&(A=S(A)),o?o(A):String(A[0])},has:function(A){return hasOwnProperty.call(n,A)},delete:function(A){var C;!hasOwnProperty.call(n,A)||(u&&u(A),C=n[A],delete n[A],y&&i.emit("delete",A,C))},clear:function(){var A=n;f&&f(),n=i3(null),i.emit("clear",A)},on:function(A,C){return A==="get"?w=!0:A==="set"?E=!0:A==="delete"&&(y=!0),X9.call(this,A,C)},emit:K9,updateEnv:function(){e=i.original}},o?d=Om(function(A){var C,k=arguments;S&&(k=S(k)),C=o(k),C!==null&&i.delete(C)},a):t===0?d=function(){return i.delete("data")}:d=function(A){return S&&(A=S(arguments)[0]),i.delete(A)},p=Om(function(){var A,C=arguments;return t===0?n.data:(S&&(C=S(C)),o?A=o(C):A=String(C[0]),n[A])}),h=Om(function(){var A,C=arguments;return t===0?i.has("data"):(S&&(C=S(C)),o?A=o(C):A=String(C[0]),A===null?!1:i.has(A))}),Y9(x,{__memoized__:kp(!0),delete:kp(d),clear:kp(i.clear),_get:kp(p),_has:kp(h)}),i},Z9=oo,J9=D1,a3=Bu,ej=Q9,tj=KN,rj=function e(t){var r,n,i;if(Z9(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=tj(r.length,t.length,r.async&&a3.async),i=ej(t,n,r),J9(a3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},xw,o3;function nj(){return o3||(o3=1,xw=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),xw}var ww,s3;function ij(){return s3||(s3=1,ww=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),ww}var _w,l3;function aj(){return l3||(l3=1,_w=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),_w}var Sw,u3;function oj(){return u3||(u3=1,Sw=function(e){return e!==e}),Sw}var Ew,f3;function sj(){return f3||(f3=1,Ew=aj()()?Number.isNaN:oj()),Ew}var Aw,c3;function ZA(){if(c3)return Aw;c3=1;var e=sj(),t=Lu,r=Ia,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return Aw=function(s){var u,f,d,p;if(!e(s))return n.apply(this,arguments);for(f=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),u=d;u<f;++u)if(i.call(this,u)&&(p=this[u],e(p)))return u;return-1},Aw}var Cw,d3;function lj(){if(d3)return Cw;d3=1;var e=ZA(),t=Object.create;return Cw=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,s=n,u,f=a.length;if(f===0)return s[f]||null;if(s=s[f]){for(;o<f-1;){if(u=e.call(s[0],a[o]),u===-1)return null;s=s[1][u],++o}return u=e.call(s[0],a[o]),u===-1?null:s[1][u]||null}return null},set:function(a){var o=0,s=n,u,f=a.length;if(f===0)s[f]=++r;else{for(s[f]||(s[f]=[[],[]]),s=s[f];o<f-1;)u=e.call(s[0],a[o]),u===-1&&(u=s[0].push(a[o])-1,s[1].push([[],[]])),s=s[1][u],++o;u=e.call(s[0],a[o]),u===-1&&(u=s[0].push(a[o])-1),s[1][u]=++r}return i[r]=a,r},delete:function(a){var o=0,s=n,u,f=i[a],d=f.length,p=[];if(d===0)delete s[d];else if(s=s[d]){for(;o<d-1;){if(u=e.call(s[0],f[o]),u===-1)return;p.push(s,u),s=s[1][u],++o}if(u=e.call(s[0],f[o]),u===-1)return;for(a=s[1][u],s[0].splice(u,1),s[1].splice(u,1);!s[0].length&&p.length;)u=p.pop(),s=p.pop(),s[0].splice(u,1),s[1].splice(u,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},Cw}var Tw,p3;function uj(){if(p3)return Tw;p3=1;var e=ZA();return Tw=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=[]}}},Tw}var Rw,h3;function fj(){if(h3)return Rw;h3=1;var e=ZA(),t=Object.create;return Rw=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var s=0,u=i,f;s<r-1;){if(f=e.call(u[0],o[s]),f===-1)return null;u=u[1][f],++s}return f=e.call(u[0],o[s]),f===-1?null:u[1][f]||null},set:function(o){for(var s=0,u=i,f;s<r-1;)f=e.call(u[0],o[s]),f===-1&&(f=u[0].push(o[s])-1,u[1].push([[],[]])),u=u[1][f],++s;return f=e.call(u[0],o[s]),f===-1&&(f=u[0].push(o[s])-1),u[1][f]=++n,a[n]=o,n},delete:function(o){for(var s=0,u=i,f,d=[],p=a[o];s<r-1;){if(f=e.call(u[0],p[s]),f===-1)return;d.push(u,f),u=u[1][f],++s}if(f=e.call(u[0],p[s]),f!==-1){for(o=u[1][f],u[0].splice(f,1),u[1].splice(f,1);!u[0].length&&d.length;)f=d.pop(),u=d.pop(),u[0].splice(f,1),u[1].splice(f,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},Rw}var v3={},Ow,g3;function JA(){if(g3)return Ow;g3=1;var e=oo,t=D1,r=Function.prototype.call;return Ow=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(s,u,f,d){a[u]=r.call(i,o,s,u,f,d)}),a},Ow}var Iw,m3;function eC(){if(m3)return Iw;m3=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 s;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){s=a,a=null,s();return}for(n.data=o=++o%2;a;)s=a.shift(),a.length||(a=null),s()}).observe(n,{characterData:!0}),function(s){if(e(s),i){typeof i=="function"?i=[i,s]:i.push(s);return}i=s,n.data=o=++o%2}};return Iw=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}(),Iw}var y3;function cj(){if(y3)return v3;y3=1;var e=B1(),t=JA(),r=ZN(),n=gy.exports,i=eC(),a=Array.prototype.slice,o=Function.prototype.apply,s=Object.create;return Bu.async=function(u,f){var d=s(null),p=s(null),h=f.memoized,g=f.original,w,E,y;f.memoized=n(function(x){var S=arguments,A=S[S.length-1];return typeof A=="function"&&(w=A,S=a.call(S,0,-1)),h.apply(E=this,y=S)},h);try{r(f.memoized,h)}catch{}f.on("get",function(x){var S,A,C;if(!!w){if(d[x]){typeof d[x]=="function"?d[x]=[d[x],w]:d[x].push(w),w=null;return}S=w,A=E,C=y,w=E=y=null,i(function(){var k;hasOwnProperty.call(p,x)?(k=p[x],f.emit("getasync",x,C,A),o.call(S,k.context,k.args)):(w=S,E=A,y=C,h.apply(A,C))})}}),f.original=function(){var x,S,A,C;return w?(x=e(arguments),S=function k(D){var z,M,L=k.id;if(L==null){i(o.bind(k,this,arguments));return}if(delete k.id,z=d[L],delete d[L],!!z)return M=e(arguments),f.has(L)&&(D?f.delete(L):(p[L]={context:this,args:M},f.emit("setasync",L,typeof z=="function"?1:z.length))),typeof z=="function"?C=o.call(z,this,M):z.forEach(function(X){C=o.call(X,this,M)},this),C},A=w,w=E=y=null,x.push(S),C=o.call(g,this,x),S.cb=A,w=S,C):o.call(g,this,arguments)},f.on("set",function(x){if(!w){f.delete(x);return}d[x]?typeof d[x]=="function"?d[x]=[d[x],w.cb]:d[x].push(w.cb):d[x]=w.cb,delete w.cb,w.id=x,w=null}),f.on("delete",function(x){var S;hasOwnProperty.call(d,x)||!p[x]||(S=p[x],delete p[x],f.emit("deleteasync",x,a.call(S.args,1)))}),f.on("clear",function(){var x=p;p=s(null),f.emit("clearasync",t(x,function(S){return a.call(S.args,1)}))})},v3}var b3={},Pw,x3;function dj(){if(x3)return Pw;x3=1;var e=Array.prototype.forEach,t=Object.create;return Pw=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},Pw}var kw,w3;function sF(){return w3||(w3=1,kw=function(e){return typeof e=="function"}),kw}var Dw,_3;function pj(){if(_3)return Dw;_3=1;var e=sF();return Dw=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},Dw}var Mw,S3;function hj(){if(S3)return Mw;S3=1;var e=Ia,t=pj();return Mw=function(r){return t(e(r))},Mw}var Nw,E3;function vj(){if(E3)return Nw;E3=1;var e=sF();return Nw=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},Nw}var Fw,A3;function gj(){if(A3)return Fw;A3=1;var e=vj(),t=/[\n\r\u2028\u2029]/g;return Fw=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},Fw}var Im={exports:{}},C3;function lF(){if(C3)return Im.exports;C3=1,Im.exports=e,Im.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Im.exports}var T3;function mj(){if(T3)return b3;T3=1;var e=JA(),t=dj(),r=hj(),n=gj(),i=lF(),a=eC(),o=Object.create,s=t("then","then:finally","done","done:finally");return Bu.promise=function(u,f){var d=o(null),p=o(null),h=o(null);if(u===!0)u=null;else if(u=r(u),!s[u])throw new TypeError("'"+n(u)+"' is not valid promise mode");f.on("set",function(g,w,E){var y=!1;if(!i(E)){p[g]=E,f.emit("setasync",g,1);return}d[g]=1,h[g]=E;var x=function(k){var D=d[g];if(y)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)
35
+ Consider to rely on 'then' or 'done' mode instead.`);!D||(delete d[g],p[g]=k,f.emit("setasync",g,D))},S=function(){y=!0,d[g]&&(delete d[g],delete h[g],f.delete(g))},A=u;if(A||(A="then"),A==="then"){var C=function(){a(S)};E=E.then(function(k){a(x.bind(this,k))},C),typeof E.finally=="function"&&E.finally(C)}else if(A==="done"){if(typeof E.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");E.done(x,S)}else if(A==="done:finally"){if(typeof E.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof E.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");E.done(x),E.finally(S)}}),f.on("get",function(g,w,E){var y;if(d[g]){++d[g];return}y=h[g];var x=function(){f.emit("getasync",g,w,E)};i(y)?typeof y.done=="function"?y.done(x):y.then(function(){a(x)}):x()}),f.on("delete",function(g){if(delete h[g],d[g]){delete d[g];return}if(!!hasOwnProperty.call(p,g)){var w=p[g];delete p[g],f.emit("deleteasync",g,[w])}}),f.on("clear",function(){var g=p;p=o(null),d=o(null),h=o(null),f.emit("clearasync",e(g,function(w){return[w]}))})},b3}var R3={},O3;function yj(){if(O3)return R3;O3=1;var e=oo,t=D1,r=Bu,n=Function.prototype.apply;return r.dispose=function(i,a,o){var s;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",s=function(u,f){n.call(i,null,f)}),a.on("clearasync",function(u){t(u,function(f,d){s(d,f)})});return}a.on("delete",s=function(u,f){i(f)}),a.on("clear",function(u){t(u,function(f,d){s(d,f)})})},R3}var I3={},Lw,P3;function bj(){return P3||(P3=1,Lw=2147483647),Lw}var Bw,k3;function xj(){if(k3)return Bw;k3=1;var e=Lu,t=bj();return Bw=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},Bw}var D3;function wj(){if(D3)return I3;D3=1;var e=B1(),t=D1,r=eC(),n=lF(),i=xj(),a=Bu,o=Function.prototype,s=Math.max,u=Math.min,f=Object.create;return a.maxAge=function(d,p,h){var g,w,E,y;d=i(d),d&&(g=f(null),w=h.async&&a.async||h.promise&&a.promise?"async":"",p.on("set"+w,function(x){g[x]=setTimeout(function(){p.delete(x)},d),typeof g[x].unref=="function"&&g[x].unref(),y&&(y[x]&&y[x]!=="nextTick"&&clearTimeout(y[x]),y[x]=setTimeout(function(){delete y[x]},E),typeof y[x].unref=="function"&&y[x].unref())}),p.on("delete"+w,function(x){clearTimeout(g[x]),delete g[x],y&&(y[x]!=="nextTick"&&clearTimeout(y[x]),delete y[x])}),h.preFetch&&(h.preFetch===!0||isNaN(h.preFetch)?E=.333:E=s(u(Number(h.preFetch),1),0),E&&(y={},E=(1-E)*d,p.on("get"+w,function(x,S,A){y[x]||(y[x]="nextTick",r(function(){var C;y[x]==="nextTick"&&(delete y[x],p.delete(x),h.async&&(S=e(S),S.push(o)),C=p.memoized.apply(A,S),h.promise&&n(C)&&(typeof C.done=="function"?C.done(o,o):C.then(o,o)))}))}))),p.on("clear"+w,function(){t(g,function(x){clearTimeout(x)}),g={},y&&(t(y,function(x){x!=="nextTick"&&clearTimeout(x)}),y={})}))},I3}var M3={},$w,N3;function _j(){if(N3)return $w;N3=1;var e=Lu,t=Object.create,r=Object.prototype.hasOwnProperty;return $w=function(n){var i=0,a=1,o=t(null),s=t(null),u=0,f;return n=e(n),{hit:function(d){var p=s[d],h=++u;if(o[h]=d,s[d]=h,!p)return++i,i<=n?void 0:(d=o[a],f(d),d);if(delete o[p],a===p)for(;!r.call(o,++a););},delete:f=function(d){var p=s[d];if(!!p&&(delete o[p],delete s[d],--i,a===p)){if(!i){u=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),s=t(null),u=0}}},$w}var F3;function Sj(){if(F3)return M3;F3=1;var e=Lu,t=_j(),r=Bu;return r.max=function(n,i,a){var o,s,u;n=e(n),n&&(s=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,u=function(f){f=s.hit(f),f!==void 0&&i.delete(f)}),i.on("get"+o,u),i.on("delete"+o,s.delete),i.on("clear"+o,s.clear))},M3}var L3={},B3;function Ej(){if(B3)return L3;B3=1;var e=ua.exports,t=Bu,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var s,u;s=r(null),u=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+u,function(f,d){s[f]=d||1}),a.on("get"+u,function(f){++s[f]}),a.on("delete"+u,function(f){delete s[f]}),a.on("clear"+u,function(){s={}}),n(a.memoized,{deleteRef:e(function(){var f=a.get(arguments);return f===null||!s[f]?null:--s[f]?!1:(a.delete(f),!0)}),getRefCount:e(function(){var f=a.get(arguments);return f===null||!s[f]?0:s[f]})})},L3}var Aj=XA,Cj=KN,Tj=rj,age=function(e){var t=Aj(arguments[1]),r;return t.normalizer||(r=t.length=Cj(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=nj():r>1&&(t.normalizer=ij()(r)):r===!1?t.normalizer=lj()():r===1?t.normalizer=uj()():t.normalizer=fj()(r))),t.async&&cj(),t.promise&&mj(),t.dispose&&yj(),t.maxAge&&wj(),t.max&&Sj(),t.refCounter&&Ej(),Tj(e,t)},uF={exports:{}};/*!
36
+ Copyright (c) 2018 Jed Watson.
37
+ Licensed under the MIT License (MIT), see
38
+ http://jedwatson.github.io/classnames
39
+ */(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 s=r.apply(null,a);s&&n.push(s)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var u in a)t.call(a,u)&&a[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(uF);const oge=uF.exports;var Rj="Expected a function",$3=0/0,Oj="[object Symbol]",Ij=/^\s+|\s+$/g,Pj=/^[-+]0x[0-9a-f]+$/i,kj=/^0b[01]+$/i,Dj=/^0o[0-7]+$/i,Mj=parseInt,Nj=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,Fj=typeof self=="object"&&self&&self.Object===Object&&self,Lj=Nj||Fj||Function("return this")(),Bj=Object.prototype,$j=Bj.toString,zj=Math.max,Uj=Math.min,zw=function(){return Lj.Date.now()};function jj(e,t,r){var n,i,a,o,s,u,f=0,d=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(Rj);t=z3(t)||0,F2(r)&&(d=!!r.leading,p="maxWait"in r,a=p?zj(z3(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(D){var z=n,M=i;return n=i=void 0,f=D,o=e.apply(M,z),o}function w(D){return f=D,s=setTimeout(x,t),d?g(D):o}function E(D){var z=D-u,M=D-f,L=t-z;return p?Uj(L,a-M):L}function y(D){var z=D-u,M=D-f;return u===void 0||z>=t||z<0||p&&M>=a}function x(){var D=zw();if(y(D))return S(D);s=setTimeout(x,E(D))}function S(D){return s=void 0,h&&n?g(D):(n=i=void 0,o)}function A(){s!==void 0&&clearTimeout(s),f=0,n=u=i=s=void 0}function C(){return s===void 0?o:S(zw())}function k(){var D=zw(),z=y(D);if(n=arguments,i=this,u=D,z){if(s===void 0)return w(u);if(p)return s=setTimeout(x,t),g(u)}return s===void 0&&(s=setTimeout(x,t)),o}return k.cancel=A,k.flush=C,k}function F2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Wj(e){return!!e&&typeof e=="object"}function Gj(e){return typeof e=="symbol"||Wj(e)&&$j.call(e)==Oj}function z3(e){if(typeof e=="number")return e;if(Gj(e))return $3;if(F2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=F2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ij,"");var r=kj.test(e);return r||Dj.test(e)?Mj(e.slice(2),r?2:8):Pj.test(e)?$3:+e}var sge=jj;function ar(){return ar=Object.assign?Object.assign.bind():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},ar.apply(this,arguments)}function Cc(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 L2(e,t){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},L2(e,t)}function Iv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L2(e,t)}function qj(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hj(e,t){e.classList?e.classList.add(t):qj(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function U3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Vj(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=U3(e.className,t):e.setAttribute("class",U3(e.className&&e.className.baseVal||"",t))}const j3={disabled:!1},fF=dn.createContext(null);var cF=function(t){return t.scrollTop},$1={exports:{}},Pv={};/** @license React v17.0.2
40
+ * react-jsx-runtime.production.min.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var Yj=ve.exports,dF=60103;Pv.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var W3=Symbol.for;dF=W3("react.element"),Pv.Fragment=W3("react.fragment")}var Xj=Yj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kj=Object.prototype.hasOwnProperty,Qj={key:!0,ref:!0,__self:!0,__source:!0};function pF(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)Kj.call(t,n)&&!Qj.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:dF,type:e,key:a,ref:o,props:i,_owner:Xj.current}}Pv.jsx=pF;Pv.jsxs=pF;(function(e){e.exports=Pv})($1);const hF=$1.exports.Fragment,Mr=$1.exports.jsx,Qh=$1.exports.jsxs;var ih="unmounted",Ql="exited",Zl="entering",jf="entered",B2="exiting",Yo=function(e){Iv(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=Ql,a.appearStatus=Zl):u=jf:n.unmountOnExit||n.mountOnEnter?u=ih:u=Ql,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ih?{status:Ql}: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!==Zl&&o!==jf&&(a=Zl):(o===Zl||o===jf)&&(a=B2)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:nh.findDOMNode(this);o&&cF(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:ih})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[nh.findDOMNode(this),s],f=u[0],d=u[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!i&&!o||j3.disabled){this.safeSetState({status:jf},function(){a.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:Zl},function(){a.props.onEntering(f,d),a.onTransitionEnd(h,function(){a.safeSetState({status:jf},function(){a.props.onEntered(f,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:nh.findDOMNode(this);if(!a||j3.disabled){this.safeSetState({status:Ql},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:B2},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Ql},function(){i.props.onExited(s)})})})},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(s){o&&(o=!1,a.nextCallback=null,i(s))},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:nh.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],f=u[0],d=u[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ih)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 s=Cc(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Mr(fF.Provider,{value:null,children:typeof o=="function"?o(i,s):dn.cloneElement(dn.Children.only(o),s)})},t}(dn.Component);Yo.contextType=fF;Yo.propTypes={};function Pf(){}Yo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pf,onEntering:Pf,onEntered:Pf,onExit:Pf,onExiting:Pf,onExited:Pf};Yo.UNMOUNTED=ih;Yo.EXITED=Ql;Yo.ENTERING=Zl;Yo.ENTERED=jf;Yo.EXITING=B2;const Zj=Yo;var Jj=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Hj(t,n)})},Uw=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Vj(t,n)})},tC=function(e){Iv(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(s,u){var f=n.resolveArguments(s,u),d=f[0],p=f[1];n.removeClasses(d,"exit"),n.addClass(d,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,u)},n.onEntering=function(s,u){var f=n.resolveArguments(s,u),d=f[0],p=f[1],h=p?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(s,u)},n.onEntered=function(s,u){var f=n.resolveArguments(s,u),d=f[0],p=f[1],h=p?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(s,u)},n.onExit=function(s){var u=n.resolveArguments(s),f=u[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var u=n.resolveArguments(s),f=u[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var u=n.resolveArguments(s),f=u[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,u){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,u]},n.getClassNames=function(s){var u=n.props.classNames,f=typeof u=="string",d=f&&u?u+"-":"",p=f?""+d+s:u[s],h=f?p+"-active":u[s+"Active"],g=f?p+"-done":u[s+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:g}},n}var r=t.prototype;return r.addClass=function(i,a,o){var s=this.getClassNames(a)[o+"ClassName"],u=this.getClassNames("enter"),f=u.doneClassName;a==="appear"&&o==="done"&&f&&(s+=" "+f),o==="active"&&i&&cF(i),s&&(this.appliedClasses[a][o]=s,Jj(i,s))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],s=o.base,u=o.active,f=o.done;this.appliedClasses[a]={},s&&Uw(i,s),u&&Uw(i,u),f&&Uw(i,f)},r.render=function(){var i=this.props;i.classNames;var a=Cc(i,["classNames"]);return Mr(Zj,{...a,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},t}(dn.Component);tC.defaultProps={classNames:""};tC.propTypes={};const lge=tC;function Pm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
47
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
48
+ * @version 1.16.1
49
+ * @license
50
+ * Copyright (c) 2016 Federico Zivolo and contributors
51
+ *
52
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
53
+ * of this software and associated documentation files (the "Software"), to deal
54
+ * in the Software without restriction, including without limitation the rights
55
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56
+ * copies of the Software, and to permit persons to whom the Software is
57
+ * furnished to do so, subject to the following conditions:
58
+ *
59
+ * The above copyright notice and this permission notice shall be included in all
60
+ * copies or substantial portions of the Software.
61
+ *
62
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
68
+ * SOFTWARE.
69
+ */var kv=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",eW=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(kv&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function tW(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function rW(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},eW))}}var nW=kv&&window.Promise,iW=nW?tW:rW;function vF(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zu(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function rC(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Dv(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zu(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:Dv(rC(e))}function gF(e){return e&&e.referenceNode?e.referenceNode:e}var G3=kv&&!!(window.MSInputMethodContext&&document.documentMode),q3=kv&&/MSIE 10/.test(navigator.userAgent);function Qc(e){return e===11?G3:e===10?q3:G3||q3}function Tc(e){if(!e)return document.documentElement;for(var t=Qc(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&&zu(r,"position")==="static"?Tc(r):r}function aW(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Tc(e.firstElementChild)===e}function $2(e){return e.parentNode!==null?$2(e.parentNode):e}function my(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 aW(o)?o:Tc(o);var s=$2(e);return s.host?my(s.host,t):my(e,$2(t).host)}function Rc(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 oW(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Rc(t,"top"),i=Rc(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 H3(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 V3(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Qc(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function mF(e){var t=e.body,r=e.documentElement,n=Qc(10)&&getComputedStyle(r);return{height:V3("Height",t,r,n),width:V3("Width",t,r,n)}}var sW=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},lW=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}}(),Oc=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Ji=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 nl(e){return Ji({},e,{right:e.left+e.width,bottom:e.top+e.height})}function z2(e){var t={};try{if(Qc(10)){t=e.getBoundingClientRect();var r=Rc(e,"top"),n=Rc(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"?mF(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,u=e.offsetWidth-o,f=e.offsetHeight-s;if(u||f){var d=zu(e);u-=H3(d,"x"),f-=H3(d,"y"),i.width-=u,i.height-=f}return nl(i)}function nC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Qc(10),i=t.nodeName==="HTML",a=z2(e),o=z2(t),s=Dv(e),u=zu(t),f=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var p=nl({top:a.top-o.top-f,left:a.left-o.left-d,width:a.width,height:a.height});if(p.marginTop=0,p.marginLeft=0,!n&&i){var h=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);p.top-=f-h,p.bottom-=f-h,p.left-=d-g,p.right-=d-g,p.marginTop=h,p.marginLeft=g}return(n&&!r?t.contains(s):t===s&&s.nodeName!=="BODY")&&(p=oW(p,t)),p}function uW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=nC(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:Rc(r),s=t?0:Rc(r,"left"),u={top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:a};return nl(u)}function yF(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(zu(e,"position")==="fixed")return!0;var r=rC(e);return r?yF(r):!1}function bF(e){if(!e||!e.parentElement||Qc())return document.documentElement;for(var t=e.parentElement;t&&zu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function iC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?bF(e):my(e,gF(t));if(n==="viewport")a=uW(o,i);else{var s=void 0;n==="scrollParent"?(s=Dv(rC(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):n==="window"?s=e.ownerDocument.documentElement:s=n;var u=nC(s,o,i);if(s.nodeName==="HTML"&&!yF(o)){var f=mF(e.ownerDocument),d=f.height,p=f.width;a.top+=u.top-u.marginTop,a.bottom=d+u.top,a.left+=u.left-u.marginLeft,a.right=p+u.left}else a=u}r=r||0;var h=typeof r=="number";return a.left+=h?r:r.left||0,a.top+=h?r:r.top||0,a.right-=h?r:r.right||0,a.bottom-=h?r:r.bottom||0,a}function fW(e){var t=e.width,r=e.height;return t*r}function xF(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=iC(r,n,a,i),s={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}},u=Object.keys(s).map(function(h){return Ji({key:h},s[h],{area:fW(s[h])})}).sort(function(h,g){return g.area-h.area}),f=u.filter(function(h){var g=h.width,w=h.height;return g>=r.clientWidth&&w>=r.clientHeight}),d=f.length>0?f[0].key:u[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function wF(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?bF(t):my(t,gF(r));return nC(r,i,n)}function _F(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 yy(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 SF(e,t,r){r=r.split("-")[0];var n=_F(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",s=a?"left":"top",u=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[u]/2-n[u]/2,r===s?i[s]=t[s]-n[f]:i[s]=t[yy(s)],i}function Mv(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function cW(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=Mv(e,function(i){return i[t]===r});return e.indexOf(n)}function EF(e,t,r){var n=r===void 0?e:e.slice(0,cW(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&&vF(a)&&(t.offsets.popper=nl(t.offsets.popper),t.offsets.reference=nl(t.offsets.reference),t=a(t,i))}),t}function dW(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=wF(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=xF(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=SF(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=EF(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function AF(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function aC(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 pW(){return this.state.isDestroyed=!0,AF(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[aC("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function CF(e){var t=e.ownerDocument;return t?t.defaultView:window}function TF(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||TF(Dv(a.parentNode),t,r,n),n.push(a)}function hW(e,t,r,n){r.updateBound=n,CF(e).addEventListener("resize",r.updateBound,{passive:!0});var i=Dv(e);return TF(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function vW(){this.state.eventsEnabled||(this.state=hW(this.reference,this.options,this.state,this.scheduleUpdate))}function gW(e,t){return CF(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 mW(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=gW(this.reference,this.state))}function oC(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function U2(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&oC(t[r])&&(n="px"),e.style[r]=t[r]+n})}function yW(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function bW(e){return U2(e.instance.popper,e.styles),yW(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&U2(e.arrowElement,e.arrowStyles),e}function xW(e,t,r,n,i){var a=wF(i,t,e,r.positionFixed),o=xF(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),U2(t,{position:r.positionFixed?"fixed":"absolute"}),r}function wW(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,s=function(x){return x},u=a(i.width),f=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,p=e.placement.indexOf("-")!==-1,h=u%2===f%2,g=u%2===1&&f%2===1,w=t?d||p||h?a:o:s,E=t?a:s;return{left:w(g&&!p&&t?n.left-1:n.left),top:E(n.top),bottom:E(n.bottom),right:w(n.right)}}var _W=kv&&/Firefox/i.test(navigator.userAgent);function SW(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=Mv(e.instance.modifiers,function(A){return A.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,s=Tc(e.instance.popper),u=z2(s),f={position:i.position},d=wW(e,window.devicePixelRatio<2||!_W),p=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",g=aC("transform"),w=void 0,E=void 0;if(p==="bottom"?s.nodeName==="HTML"?E=-s.clientHeight+d.bottom:E=-u.height+d.bottom:E=d.top,h==="right"?s.nodeName==="HTML"?w=-s.clientWidth+d.right:w=-u.width+d.right:w=d.left,o&&g)f[g]="translate3d("+w+"px, "+E+"px, 0)",f[p]=0,f[h]=0,f.willChange="transform";else{var y=p==="bottom"?-1:1,x=h==="right"?-1:1;f[p]=E*y,f[h]=w*x,f.willChange=p+", "+h}var S={"x-placement":e.placement};return e.attributes=Ji({},S,e.attributes),e.styles=Ji({},f,e.styles),e.arrowStyles=Ji({},e.offsets.arrow,e.arrowStyles),e}function RF(e,t,r){var n=Mv(e,function(s){var u=s.name;return u===t}),i=!!n&&e.some(function(s){return s.name===r&&s.enabled&&s.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 EW(e,t){var r;if(!RF(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,s=a.reference,u=["left","right"].indexOf(i)!==-1,f=u?"height":"width",d=u?"Top":"Left",p=d.toLowerCase(),h=u?"left":"top",g=u?"bottom":"right",w=_F(n)[f];s[g]-w<o[p]&&(e.offsets.popper[p]-=o[p]-(s[g]-w)),s[p]+w>o[g]&&(e.offsets.popper[p]+=s[p]+w-o[g]),e.offsets.popper=nl(e.offsets.popper);var E=s[p]+s[f]/2-w/2,y=zu(e.instance.popper),x=parseFloat(y["margin"+d]),S=parseFloat(y["border"+d+"Width"]),A=E-e.offsets.popper[p]-x-S;return A=Math.max(Math.min(o[f]-w,A),0),e.arrowElement=n,e.offsets.arrow=(r={},Oc(r,p,Math.round(A)),Oc(r,h,""),r),e}function AW(e){return e==="end"?"start":e==="start"?"end":e}var OF=["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"],jw=OF.slice(3);function Y3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=jw.indexOf(e),n=jw.slice(r+1).concat(jw.slice(0,r));return t?n.reverse():n}var Ww={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function CW(e,t){if(AF(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=iC(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=yy(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Ww.FLIP:o=[n,i];break;case Ww.CLOCKWISE:o=Y3(n);break;case Ww.COUNTERCLOCKWISE:o=Y3(n,!0);break;default:o=t.behavior}return o.forEach(function(s,u){if(n!==s||o.length===u+1)return e;n=e.placement.split("-")[0],i=yy(n);var f=e.offsets.popper,d=e.offsets.reference,p=Math.floor,h=n==="left"&&p(f.right)>p(d.left)||n==="right"&&p(f.left)<p(d.right)||n==="top"&&p(f.bottom)>p(d.top)||n==="bottom"&&p(f.top)<p(d.bottom),g=p(f.left)<p(r.left),w=p(f.right)>p(r.right),E=p(f.top)<p(r.top),y=p(f.bottom)>p(r.bottom),x=n==="left"&&g||n==="right"&&w||n==="top"&&E||n==="bottom"&&y,S=["top","bottom"].indexOf(n)!==-1,A=!!t.flipVariations&&(S&&a==="start"&&g||S&&a==="end"&&w||!S&&a==="start"&&E||!S&&a==="end"&&y),C=!!t.flipVariationsByContent&&(S&&a==="start"&&w||S&&a==="end"&&g||!S&&a==="start"&&y||!S&&a==="end"&&E),k=A||C;(h||x||k)&&(e.flipped=!0,(h||x)&&(n=o[u+1]),k&&(a=AW(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Ji({},e.offsets.popper,SF(e.instance.popper,e.offsets.reference,e.placement)),e=EF(e.instance.modifiers,e,"flip"))}),e}function TW(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,s=o?"right":"bottom",u=o?"left":"top",f=o?"width":"height";return r[s]<a(n[u])&&(e.offsets.popper[u]=a(n[u])-r[f]),r[u]>a(n[s])&&(e.offsets.popper[u]=a(n[s])),e}function RW(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 s=void 0;switch(o){case"%p":s=r;break;case"%":case"%r":default:s=n}var u=nl(s);return u[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function OW(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),s=o.indexOf(Mv(o,function(d){return d.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,f=s!==-1?[o.slice(0,s).concat([o[s].split(u)[0]]),[o[s].split(u)[1]].concat(o.slice(s+1))]:[o];return f=f.map(function(d,p){var h=(p===1?!a:a)?"height":"width",g=!1;return d.reduce(function(w,E){return w[w.length-1]===""&&["+","-"].indexOf(E)!==-1?(w[w.length-1]=E,g=!0,w):g?(w[w.length-1]+=E,g=!1,w):w.concat(E)},[]).map(function(w){return RW(w,h,t,r)})}),f.forEach(function(d,p){d.forEach(function(h,g){oC(h)&&(i[p]+=h*(d[g-1]==="-"?-1:1))})}),i}function IW(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=n.split("-")[0],u=void 0;return oC(+r)?u=[+r,0]:u=OW(r,a,o,s),s==="left"?(a.top+=u[0],a.left-=u[1]):s==="right"?(a.top+=u[0],a.left+=u[1]):s==="top"?(a.left+=u[0],a.top-=u[1]):s==="bottom"&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e}function PW(e,t){var r=t.boundariesElement||Tc(e.instance.popper);e.instance.reference===r&&(r=Tc(r));var n=aC("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[n];i.top="",i.left="",i[n]="";var u=iC(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=s,t.boundaries=u;var f=t.priority,d=e.offsets.popper,p={primary:function(g){var w=d[g];return d[g]<u[g]&&!t.escapeWithReference&&(w=Math.max(d[g],u[g])),Oc({},g,w)},secondary:function(g){var w=g==="right"?"left":"top",E=d[w];return d[g]>u[g]&&!t.escapeWithReference&&(E=Math.min(d[w],u[g]-(g==="right"?d.width:d.height))),Oc({},w,E)}};return f.forEach(function(h){var g=["left","top"].indexOf(h)!==-1?"primary":"secondary";d=Ji({},d,p[g](h))}),e.offsets.popper=d,e}function kW(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,s=["bottom","top"].indexOf(r)!==-1,u=s?"left":"top",f=s?"width":"height",d={start:Oc({},u,a[u]),end:Oc({},u,a[u]+a[f]-o[f])};e.offsets.popper=Ji({},o,d[n])}return e}function DW(e){if(!RF(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=Mv(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 MW(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,s=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(s?i[o?"width":"height"]:0),e.placement=yy(t),e.offsets.popper=nl(i),e}var NW={shift:{order:100,enabled:!0,fn:kW},offset:{order:200,enabled:!0,fn:IW,offset:0},preventOverflow:{order:300,enabled:!0,fn:PW,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:TW},arrow:{order:500,enabled:!0,fn:EW,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:CW,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:MW},hide:{order:800,enabled:!0,fn:DW},computeStyle:{order:850,enabled:!0,fn:SW,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:bW,onLoad:xW,gpuAcceleration:void 0}},FW={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:NW},z1=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};sW(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=iW(this.update.bind(this)),this.options=Ji({},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(Ji({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Ji({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Ji({name:o},n.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&vF(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 lW(e,[{key:"update",value:function(){return dW.call(this)}},{key:"destroy",value:function(){return pW.call(this)}},{key:"enableEventListeners",value:function(){return vW.call(this)}},{key:"disableEventListeners",value:function(){return mW.call(this)}}]),e}();z1.Utils=(typeof window<"u"?window:global).PopperUtils;z1.placements=OF;z1.Defaults=FW;const uge=z1;function sC(e,t,...r){if(!e)throw new TypeError(IF(t,r))}function IF(e,t){let r=0;return e.replace(/%[os]/gu,()=>PF(t[r++]))}function PF(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let LW;function BW(e){try{const t=e instanceof Error?e:new Error(PF(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 Ta=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let $W;class Xo{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,`
70
+ `);console.warn(this.message,...t,n)}catch{}}}const zW=new Xo("W01","Unable to initialize event under dispatching."),UW=new Xo("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),jW=new Xo("W03","Assigning any truthy value to 'returnValue' property has no effect."),WW=new Xo("W04","Unable to preventDefault on non-cancelable events."),GW=new Xo("W05","Unable to preventDefault inside passive event listener invocation."),qW=new Xo("W06","An event listener wasn't added because it has been added already: %o, %o"),Gw=new Xo("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),X3=new Xo("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");new Xo("W09","Event attribute handler must be a function: %o");class Ko{static get NONE(){return K3}static get CAPTURING_PHASE(){return Q3}static get AT_TARGET(){return Z3}static get BUBBLING_PHASE(){return J3}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r!=null?r:{};j2.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 yn(this).type}get target(){return yn(this).target}get srcElement(){return yn(this).target}get currentTarget(){return yn(this).currentTarget}composedPath(){const t=yn(this).currentTarget;return t?[t]:[]}get NONE(){return K3}get CAPTURING_PHASE(){return Q3}get AT_TARGET(){return Z3}get BUBBLING_PHASE(){return J3}get eventPhase(){return yn(this).dispatchFlag?2:0}stopPropagation(){yn(this).stopPropagationFlag=!0}get cancelBubble(){return yn(this).stopPropagationFlag}set cancelBubble(t){t?yn(this).stopPropagationFlag=!0:UW.warn()}stopImmediatePropagation(){const t=yn(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return yn(this).bubbles}get cancelable(){return yn(this).cancelable}get returnValue(){return!yn(this).canceledFlag}set returnValue(t){t?jW.warn():eI(yn(this))}preventDefault(){eI(yn(this))}get defaultPrevented(){return yn(this).canceledFlag}get composed(){return yn(this).composed}get isTrusted(){return!1}get timeStamp(){return yn(this).timeStamp}initEvent(t,r=!1,n=!1){const i=yn(this);if(i.dispatchFlag){zW.warn();return}j2.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const K3=0,Q3=1,Z3=2,J3=3,j2=new WeakMap;function yn(e,t="this"){const r=j2.get(e);return sC(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function eI(e){if(e.inPassiveListenerFlag){GW.warn();return}if(!e.cancelable){WW.warn();return}e.canceledFlag=!0}Object.defineProperty(Ko,"NONE",{enumerable:!0});Object.defineProperty(Ko,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(Ko,"AT_TARGET",{enumerable:!0});Object.defineProperty(Ko,"BUBBLING_PHASE",{enumerable:!0});const qw=Object.getOwnPropertyNames(Ko.prototype);for(let e=0;e<qw.length;++e)qw[e]!=="constructor"&&Object.defineProperty(Ko.prototype,qw[e],{enumerable:!0});typeof Ta<"u"&&typeof Ta.Event<"u"&&Object.setPrototypeOf(Ko.prototype,Ta.Event.prototype);function HW(e){return Ta.DOMException?new Ta.DOMException(e,"InvalidStateError"):(kf==null&&(kf=class kF extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,kF)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(kf.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),rI(kf),rI(kf.prototype)),new kf(e))}let kf;const tI={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 rI(e){const t=Object.keys(tI);for(let r=0;r<t.length;++r){const n=t[r],i=tI[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class U1 extends Ko{static wrap(t){return new(MF(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),DF.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,NF(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=Rs(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=Rs(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=Rs(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=Rs(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=Rs(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=Rs(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const DF=new WeakMap;function Rs(e){const t=DF.get(e);return sC(t!=null,"'this' is expected an Event object, but got",e),t}const by=new WeakMap;by.set(Object.prototype,U1);typeof Ta<"u"&&typeof Ta.Event<"u"&&by.set(Ta.Event.prototype,U1);function MF(e){const t=Object.getPrototypeOf(e);if(t==null)return U1;let r=by.get(t);return r==null&&(r=VW(MF(t),t),by.set(t,r)),r}function VW(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],NF(t,n[i]));return r}function NF(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=Rs(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=Rs(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function YW(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function XW(e){e.flags|=8}function FF(e){return(e.flags&1)===1}function LF(e){return(e.flags&2)===2}function BF(e){return(e.flags&4)===4}function KW(e){return(e.flags&8)===8}function QW({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){BW(n)}}function $F({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&FF(e[n])===r)return n;return-1}function ZW(e,t,r,n,i,a){let o;a&&(o=zF.bind(null,e,t,r),a.addEventListener("abort",o));const s=YW(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,s]):e.listeners.push(s),s}function zF(e,t,r){const n=$F(e,t,r);return n!==-1?UF(e,n):!1}function UF(e,t,r=!1){const n=e.listeners[t];return XW(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 JW(){return Object.create(null)}function eG(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 lC{constructor(){jF.set(this,JW())}addEventListener(t,r,n){const i=Hw(this),{callback:a,capture:o,once:s,passive:u,signal:f,type:d}=tG(t,r,n);if(a==null||(f==null?void 0:f.aborted))return;const p=eG(i,d),h=$F(p,a,o);if(h!==-1){nG(p.listeners[h],u,s,f);return}ZW(p,a,o,u,s,f)}removeEventListener(t,r,n){const i=Hw(this),{callback:a,capture:o,type:s}=rG(t,r,n),u=i[s];a!=null&&u&&zF(u,a,o)}dispatchEvent(t){const r=Hw(this)[String(t.type)];if(r==null)return!0;const n=t instanceof Ko?t:U1.wrap(t),i=yn(n,"event");if(i.dispatchFlag)throw HW("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 s=0;s<o.length;++s){const u=o[s];if(!KW(u)&&(BF(u)&&UF(r,s,!a)&&(s-=1),i.inPassiveListenerFlag=LF(u),QW(u,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 jF=new WeakMap;function Hw(e,t="this"){const r=jF.get(e);return sC(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function tG(e,t,r){var n;return WF(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 rG(e,t,r){return WF(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 WF(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){X3.warn(e);return}throw new TypeError(IF(X3.message,[e]))}}function nG(e,t,r,n){qW.warn(FF(e)?"capture":"bubble",e.callback),LF(e)!==t&&Gw.warn("passive"),BF(e)!==r&&Gw.warn("once"),e.signal!==n&&Gw.warn("signal")}const Vw=Object.getOwnPropertyNames(lC.prototype);for(let e=0;e<Vw.length;++e)Vw[e]!=="constructor"&&Object.defineProperty(lC.prototype,Vw[e],{enumerable:!0});typeof Ta<"u"&&typeof Ta.EventTarget<"u"&&Object.setPrototypeOf(lC.prototype,Ta.EventTarget.prototype);function nI(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 Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nI(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xy(e){return xy=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},xy(e)}function iG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iI(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 aG(e,t,r){return t&&iI(e.prototype,t),r&&iI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e,t){return sG(e)||uG(e,t)||GF(e,t)||cG()}function Nv(e){return oG(e)||lG(e)||GF(e)||fG()}function oG(e){if(Array.isArray(e))return W2(e)}function sG(e){if(Array.isArray(e))return e}function lG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uG(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,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function GF(e,t){if(!!e){if(typeof e=="string")return W2(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 W2(e,t)}}function W2(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 fG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var aI=function(){},fC={},qF={},HF=null,VF={mark:aI,measure:aI};try{typeof window<"u"&&(fC=window),typeof document<"u"&&(qF=document),typeof MutationObserver<"u"&&(HF=MutationObserver),typeof performance<"u"&&(VF=performance)}catch{}var dG=fC.navigator||{},oI=dG.userAgent,sI=oI===void 0?"":oI,il=fC,Kr=qF,lI=HF,km=VF;il.document;var Qo=!!Kr.documentElement&&!!Kr.head&&typeof Kr.addEventListener=="function"&&typeof Kr.createElement=="function",YF=~sI.indexOf("MSIE")||~sI.indexOf("Trident/"),Dm,Mm,Nm,Fm,Lm,jo="___FONT_AWESOME___",G2=16,XF="fa",KF="svg-inline--fa",_u="data-fa-i2svg",q2="data-fa-pseudo-element",pG="data-fa-pseudo-element-pending",cC="data-prefix",dC="data-icon",uI="fontawesome-i2svg",hG="async",vG=["HTML","HEAD","STYLE","SCRIPT"],QF=function(){try{return!0}catch{return!1}}(),Yr="classic",sn="sharp",pC=[Yr,sn];function Fv(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Yr]}})}var Zh=Fv((Dm={},kn(Dm,Yr,{fa:"solid",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"}),kn(Dm,sn,{fa:"solid",fass:"solid","fa-solid":"solid"}),Dm)),Jh=Fv((Mm={},kn(Mm,Yr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),kn(Mm,sn,{solid:"fass"}),Mm)),ev=Fv((Nm={},kn(Nm,Yr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),kn(Nm,sn,{fass:"fa-solid"}),Nm)),gG=Fv((Fm={},kn(Fm,Yr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),kn(Fm,sn,{"fa-solid":"fass"}),Fm)),mG=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,ZF="fa-layers-text",yG=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,bG=Fv((Lm={},kn(Lm,Yr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),kn(Lm,sn,{900:"fass"}),Lm)),JF=[1,2,3,4,5,6,7,8,9,10],xG=JF.concat([11,12,13,14,15,16,17,18,19,20]),wG=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],lu={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},tv=new Set;Object.keys(Jh[Yr]).map(tv.add.bind(tv));Object.keys(Jh[sn]).map(tv.add.bind(tv));var _G=[].concat(pC,Nv(tv),["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",lu.GROUP,lu.SWAP_OPACITY,lu.PRIMARY,lu.SECONDARY]).concat(JF.map(function(e){return"".concat(e,"x")})).concat(xG.map(function(e){return"w-".concat(e)})),Eh=il.FontAwesomeConfig||{};function SG(e){var t=Kr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function EG(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Kr&&typeof Kr.querySelector=="function"){var AG=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["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"]];AG.forEach(function(e){var t=uC(e,2),r=t[0],n=t[1],i=EG(SG(r));i!=null&&(Eh[n]=i)})}var e4={styleDefault:"solid",familyDefault:"classic",cssPrefix:XF,replacementClass:KF,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Eh.familyPrefix&&(Eh.cssPrefix=Eh.familyPrefix);var Ic=Ut(Ut({},e4),Eh);Ic.autoReplaceSvg||(Ic.observeMutations=!1);var Yt={};Object.keys(e4).forEach(function(e){Object.defineProperty(Yt,e,{enumerable:!0,set:function(r){Ic[e]=r,Ah.forEach(function(n){return n(Yt)})},get:function(){return Ic[e]}})});Object.defineProperty(Yt,"familyPrefix",{enumerable:!0,set:function(t){Ic.cssPrefix=t,Ah.forEach(function(r){return r(Yt)})},get:function(){return Ic.cssPrefix}});il.FontAwesomeConfig=Yt;var Ah=[];function CG(e){return Ah.push(e),function(){Ah.splice(Ah.indexOf(e),1)}}var As=G2,Za={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function TG(e){if(!(!e||!Qo)){var t=Kr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Kr.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 Kr.head.insertBefore(t,n),e}}var RG="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function rv(){for(var e=12,t="";e-- >0;)t+=RG[Math.random()*62|0];return t}function Zc(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function hC(e){return e.classList?Zc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function t4(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function OG(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(t4(e[r]),'" ')},"").trim()}function j1(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function vC(e){return e.size!==Za.size||e.x!==Za.x||e.y!==Za.y||e.rotate!==Za.rotate||e.flipX||e.flipY}function IG(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),") "),s="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(a," ").concat(o," ").concat(s)},f={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:u,path:f}}function PG(e){var t=e.transform,r=e.width,n=r===void 0?G2:r,i=e.height,a=i===void 0?G2:i,o=e.startCentered,s=o===void 0?!1:o,u="";return s&&YF?u+="translate(".concat(t.x/As-n/2,"em, ").concat(t.y/As-a/2,"em) "):s?u+="translate(calc(-50% + ".concat(t.x/As,"em), calc(-50% + ").concat(t.y/As,"em)) "):u+="translate(".concat(t.x/As,"em, ").concat(t.y/As,"em) "),u+="scale(".concat(t.size/As*(t.flipX?-1:1),", ").concat(t.size/As*(t.flipY?-1:1),") "),u+="rotate(".concat(t.rotate,"deg) "),u}var kG=`:root, :host {
73
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
74
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
75
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
76
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
77
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
78
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
79
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
80
+ }
81
+
82
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
83
+ overflow: visible;
84
+ box-sizing: content-box;
85
+ }
86
+
87
+ .svg-inline--fa {
88
+ display: var(--fa-display, inline-block);
89
+ height: 1em;
90
+ overflow: visible;
91
+ vertical-align: -0.125em;
92
+ }
93
+ .svg-inline--fa.fa-2xs {
94
+ vertical-align: 0.1em;
95
+ }
96
+ .svg-inline--fa.fa-xs {
97
+ vertical-align: 0em;
98
+ }
99
+ .svg-inline--fa.fa-sm {
100
+ vertical-align: -0.0714285705em;
101
+ }
102
+ .svg-inline--fa.fa-lg {
103
+ vertical-align: -0.2em;
104
+ }
105
+ .svg-inline--fa.fa-xl {
106
+ vertical-align: -0.25em;
107
+ }
108
+ .svg-inline--fa.fa-2xl {
109
+ vertical-align: -0.3125em;
110
+ }
111
+ .svg-inline--fa.fa-pull-left {
112
+ margin-right: var(--fa-pull-margin, 0.3em);
113
+ width: auto;
114
+ }
115
+ .svg-inline--fa.fa-pull-right {
116
+ margin-left: var(--fa-pull-margin, 0.3em);
117
+ width: auto;
118
+ }
119
+ .svg-inline--fa.fa-li {
120
+ width: var(--fa-li-width, 2em);
121
+ top: 0.25em;
122
+ }
123
+ .svg-inline--fa.fa-fw {
124
+ width: var(--fa-fw-width, 1.25em);
125
+ }
126
+
127
+ .fa-layers svg.svg-inline--fa {
128
+ bottom: 0;
129
+ left: 0;
130
+ margin: auto;
131
+ position: absolute;
132
+ right: 0;
133
+ top: 0;
134
+ }
135
+
136
+ .fa-layers-counter, .fa-layers-text {
137
+ display: inline-block;
138
+ position: absolute;
139
+ text-align: center;
140
+ }
141
+
142
+ .fa-layers {
143
+ display: inline-block;
144
+ height: 1em;
145
+ position: relative;
146
+ text-align: center;
147
+ vertical-align: -0.125em;
148
+ width: 1em;
149
+ }
150
+ .fa-layers svg.svg-inline--fa {
151
+ -webkit-transform-origin: center center;
152
+ transform-origin: center center;
153
+ }
154
+
155
+ .fa-layers-text {
156
+ left: 50%;
157
+ top: 50%;
158
+ -webkit-transform: translate(-50%, -50%);
159
+ transform: translate(-50%, -50%);
160
+ -webkit-transform-origin: center center;
161
+ transform-origin: center center;
162
+ }
163
+
164
+ .fa-layers-counter {
165
+ background-color: var(--fa-counter-background-color, #ff253a);
166
+ border-radius: var(--fa-counter-border-radius, 1em);
167
+ box-sizing: border-box;
168
+ color: var(--fa-inverse, #fff);
169
+ line-height: var(--fa-counter-line-height, 1);
170
+ max-width: var(--fa-counter-max-width, 5em);
171
+ min-width: var(--fa-counter-min-width, 1.5em);
172
+ overflow: hidden;
173
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
174
+ right: var(--fa-right, 0);
175
+ text-overflow: ellipsis;
176
+ top: var(--fa-top, 0);
177
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
178
+ transform: scale(var(--fa-counter-scale, 0.25));
179
+ -webkit-transform-origin: top right;
180
+ transform-origin: top right;
181
+ }
182
+
183
+ .fa-layers-bottom-right {
184
+ bottom: var(--fa-bottom, 0);
185
+ right: var(--fa-right, 0);
186
+ top: auto;
187
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
188
+ transform: scale(var(--fa-layers-scale, 0.25));
189
+ -webkit-transform-origin: bottom right;
190
+ transform-origin: bottom right;
191
+ }
192
+
193
+ .fa-layers-bottom-left {
194
+ bottom: var(--fa-bottom, 0);
195
+ left: var(--fa-left, 0);
196
+ right: auto;
197
+ top: auto;
198
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
199
+ transform: scale(var(--fa-layers-scale, 0.25));
200
+ -webkit-transform-origin: bottom left;
201
+ transform-origin: bottom left;
202
+ }
203
+
204
+ .fa-layers-top-right {
205
+ top: var(--fa-top, 0);
206
+ right: var(--fa-right, 0);
207
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
208
+ transform: scale(var(--fa-layers-scale, 0.25));
209
+ -webkit-transform-origin: top right;
210
+ transform-origin: top right;
211
+ }
212
+
213
+ .fa-layers-top-left {
214
+ left: var(--fa-left, 0);
215
+ right: auto;
216
+ top: var(--fa-top, 0);
217
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
218
+ transform: scale(var(--fa-layers-scale, 0.25));
219
+ -webkit-transform-origin: top left;
220
+ transform-origin: top left;
221
+ }
222
+
223
+ .fa-1x {
224
+ font-size: 1em;
225
+ }
226
+
227
+ .fa-2x {
228
+ font-size: 2em;
229
+ }
230
+
231
+ .fa-3x {
232
+ font-size: 3em;
233
+ }
234
+
235
+ .fa-4x {
236
+ font-size: 4em;
237
+ }
238
+
239
+ .fa-5x {
240
+ font-size: 5em;
241
+ }
242
+
243
+ .fa-6x {
244
+ font-size: 6em;
245
+ }
246
+
247
+ .fa-7x {
248
+ font-size: 7em;
249
+ }
250
+
251
+ .fa-8x {
252
+ font-size: 8em;
253
+ }
254
+
255
+ .fa-9x {
256
+ font-size: 9em;
257
+ }
258
+
259
+ .fa-10x {
260
+ font-size: 10em;
261
+ }
262
+
263
+ .fa-2xs {
264
+ font-size: 0.625em;
265
+ line-height: 0.1em;
266
+ vertical-align: 0.225em;
267
+ }
268
+
269
+ .fa-xs {
270
+ font-size: 0.75em;
271
+ line-height: 0.0833333337em;
272
+ vertical-align: 0.125em;
273
+ }
274
+
275
+ .fa-sm {
276
+ font-size: 0.875em;
277
+ line-height: 0.0714285718em;
278
+ vertical-align: 0.0535714295em;
279
+ }
280
+
281
+ .fa-lg {
282
+ font-size: 1.25em;
283
+ line-height: 0.05em;
284
+ vertical-align: -0.075em;
285
+ }
286
+
287
+ .fa-xl {
288
+ font-size: 1.5em;
289
+ line-height: 0.0416666682em;
290
+ vertical-align: -0.125em;
291
+ }
292
+
293
+ .fa-2xl {
294
+ font-size: 2em;
295
+ line-height: 0.03125em;
296
+ vertical-align: -0.1875em;
297
+ }
298
+
299
+ .fa-fw {
300
+ text-align: center;
301
+ width: 1.25em;
302
+ }
303
+
304
+ .fa-ul {
305
+ list-style-type: none;
306
+ margin-left: var(--fa-li-margin, 2.5em);
307
+ padding-left: 0;
308
+ }
309
+ .fa-ul > li {
310
+ position: relative;
311
+ }
312
+
313
+ .fa-li {
314
+ left: calc(var(--fa-li-width, 2em) * -1);
315
+ position: absolute;
316
+ text-align: center;
317
+ width: var(--fa-li-width, 2em);
318
+ line-height: inherit;
319
+ }
320
+
321
+ .fa-border {
322
+ border-color: var(--fa-border-color, #eee);
323
+ border-radius: var(--fa-border-radius, 0.1em);
324
+ border-style: var(--fa-border-style, solid);
325
+ border-width: var(--fa-border-width, 0.08em);
326
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
327
+ }
328
+
329
+ .fa-pull-left {
330
+ float: left;
331
+ margin-right: var(--fa-pull-margin, 0.3em);
332
+ }
333
+
334
+ .fa-pull-right {
335
+ float: right;
336
+ margin-left: var(--fa-pull-margin, 0.3em);
337
+ }
338
+
339
+ .fa-beat {
340
+ -webkit-animation-name: fa-beat;
341
+ animation-name: fa-beat;
342
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
343
+ animation-delay: var(--fa-animation-delay, 0s);
344
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
345
+ animation-direction: var(--fa-animation-direction, normal);
346
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
347
+ animation-duration: var(--fa-animation-duration, 1s);
348
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
349
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
350
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
351
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
352
+ }
353
+
354
+ .fa-bounce {
355
+ -webkit-animation-name: fa-bounce;
356
+ animation-name: fa-bounce;
357
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
358
+ animation-delay: var(--fa-animation-delay, 0s);
359
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
360
+ animation-direction: var(--fa-animation-direction, normal);
361
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
362
+ animation-duration: var(--fa-animation-duration, 1s);
363
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
364
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
365
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
366
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
367
+ }
368
+
369
+ .fa-fade {
370
+ -webkit-animation-name: fa-fade;
371
+ animation-name: fa-fade;
372
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
373
+ animation-delay: var(--fa-animation-delay, 0s);
374
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
375
+ animation-direction: var(--fa-animation-direction, normal);
376
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
377
+ animation-duration: var(--fa-animation-duration, 1s);
378
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
379
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
382
+ }
383
+
384
+ .fa-beat-fade {
385
+ -webkit-animation-name: fa-beat-fade;
386
+ animation-name: fa-beat-fade;
387
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
388
+ animation-delay: var(--fa-animation-delay, 0s);
389
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
390
+ animation-direction: var(--fa-animation-direction, normal);
391
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
392
+ animation-duration: var(--fa-animation-duration, 1s);
393
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
394
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
395
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
396
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
397
+ }
398
+
399
+ .fa-flip {
400
+ -webkit-animation-name: fa-flip;
401
+ animation-name: fa-flip;
402
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
403
+ animation-delay: var(--fa-animation-delay, 0s);
404
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
405
+ animation-direction: var(--fa-animation-direction, normal);
406
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
407
+ animation-duration: var(--fa-animation-duration, 1s);
408
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
409
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
410
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
411
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
412
+ }
413
+
414
+ .fa-shake {
415
+ -webkit-animation-name: fa-shake;
416
+ animation-name: fa-shake;
417
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
418
+ animation-delay: var(--fa-animation-delay, 0s);
419
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
420
+ animation-direction: var(--fa-animation-direction, normal);
421
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
422
+ animation-duration: var(--fa-animation-duration, 1s);
423
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
424
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
425
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
426
+ animation-timing-function: var(--fa-animation-timing, linear);
427
+ }
428
+
429
+ .fa-spin {
430
+ -webkit-animation-name: fa-spin;
431
+ animation-name: fa-spin;
432
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
433
+ animation-delay: var(--fa-animation-delay, 0s);
434
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
435
+ animation-direction: var(--fa-animation-direction, normal);
436
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
437
+ animation-duration: var(--fa-animation-duration, 2s);
438
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
439
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
440
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
441
+ animation-timing-function: var(--fa-animation-timing, linear);
442
+ }
443
+
444
+ .fa-spin-reverse {
445
+ --fa-animation-direction: reverse;
446
+ }
447
+
448
+ .fa-pulse,
449
+ .fa-spin-pulse {
450
+ -webkit-animation-name: fa-spin;
451
+ animation-name: fa-spin;
452
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
453
+ animation-direction: var(--fa-animation-direction, normal);
454
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
455
+ animation-duration: var(--fa-animation-duration, 1s);
456
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
457
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
458
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
459
+ animation-timing-function: var(--fa-animation-timing, steps(8));
460
+ }
461
+
462
+ @media (prefers-reduced-motion: reduce) {
463
+ .fa-beat,
464
+ .fa-bounce,
465
+ .fa-fade,
466
+ .fa-beat-fade,
467
+ .fa-flip,
468
+ .fa-pulse,
469
+ .fa-shake,
470
+ .fa-spin,
471
+ .fa-spin-pulse {
472
+ -webkit-animation-delay: -1ms;
473
+ animation-delay: -1ms;
474
+ -webkit-animation-duration: 1ms;
475
+ animation-duration: 1ms;
476
+ -webkit-animation-iteration-count: 1;
477
+ animation-iteration-count: 1;
478
+ transition-delay: 0s;
479
+ transition-duration: 0s;
480
+ }
481
+ }
482
+ @-webkit-keyframes fa-beat {
483
+ 0%, 90% {
484
+ -webkit-transform: scale(1);
485
+ transform: scale(1);
486
+ }
487
+ 45% {
488
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
489
+ transform: scale(var(--fa-beat-scale, 1.25));
490
+ }
491
+ }
492
+ @keyframes fa-beat {
493
+ 0%, 90% {
494
+ -webkit-transform: scale(1);
495
+ transform: scale(1);
496
+ }
497
+ 45% {
498
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
499
+ transform: scale(var(--fa-beat-scale, 1.25));
500
+ }
501
+ }
502
+ @-webkit-keyframes fa-bounce {
503
+ 0% {
504
+ -webkit-transform: scale(1, 1) translateY(0);
505
+ transform: scale(1, 1) translateY(0);
506
+ }
507
+ 10% {
508
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
509
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
510
+ }
511
+ 30% {
512
+ -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));
513
+ 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));
514
+ }
515
+ 50% {
516
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
517
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
518
+ }
519
+ 57% {
520
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
521
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
522
+ }
523
+ 64% {
524
+ -webkit-transform: scale(1, 1) translateY(0);
525
+ transform: scale(1, 1) translateY(0);
526
+ }
527
+ 100% {
528
+ -webkit-transform: scale(1, 1) translateY(0);
529
+ transform: scale(1, 1) translateY(0);
530
+ }
531
+ }
532
+ @keyframes fa-bounce {
533
+ 0% {
534
+ -webkit-transform: scale(1, 1) translateY(0);
535
+ transform: scale(1, 1) translateY(0);
536
+ }
537
+ 10% {
538
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
539
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
540
+ }
541
+ 30% {
542
+ -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));
543
+ 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));
544
+ }
545
+ 50% {
546
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
547
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
548
+ }
549
+ 57% {
550
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
551
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
552
+ }
553
+ 64% {
554
+ -webkit-transform: scale(1, 1) translateY(0);
555
+ transform: scale(1, 1) translateY(0);
556
+ }
557
+ 100% {
558
+ -webkit-transform: scale(1, 1) translateY(0);
559
+ transform: scale(1, 1) translateY(0);
560
+ }
561
+ }
562
+ @-webkit-keyframes fa-fade {
563
+ 50% {
564
+ opacity: var(--fa-fade-opacity, 0.4);
565
+ }
566
+ }
567
+ @keyframes fa-fade {
568
+ 50% {
569
+ opacity: var(--fa-fade-opacity, 0.4);
570
+ }
571
+ }
572
+ @-webkit-keyframes fa-beat-fade {
573
+ 0%, 100% {
574
+ opacity: var(--fa-beat-fade-opacity, 0.4);
575
+ -webkit-transform: scale(1);
576
+ transform: scale(1);
577
+ }
578
+ 50% {
579
+ opacity: 1;
580
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
581
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
582
+ }
583
+ }
584
+ @keyframes fa-beat-fade {
585
+ 0%, 100% {
586
+ opacity: var(--fa-beat-fade-opacity, 0.4);
587
+ -webkit-transform: scale(1);
588
+ transform: scale(1);
589
+ }
590
+ 50% {
591
+ opacity: 1;
592
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
593
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
594
+ }
595
+ }
596
+ @-webkit-keyframes fa-flip {
597
+ 50% {
598
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
599
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
600
+ }
601
+ }
602
+ @keyframes fa-flip {
603
+ 50% {
604
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
605
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
606
+ }
607
+ }
608
+ @-webkit-keyframes fa-shake {
609
+ 0% {
610
+ -webkit-transform: rotate(-15deg);
611
+ transform: rotate(-15deg);
612
+ }
613
+ 4% {
614
+ -webkit-transform: rotate(15deg);
615
+ transform: rotate(15deg);
616
+ }
617
+ 8%, 24% {
618
+ -webkit-transform: rotate(-18deg);
619
+ transform: rotate(-18deg);
620
+ }
621
+ 12%, 28% {
622
+ -webkit-transform: rotate(18deg);
623
+ transform: rotate(18deg);
624
+ }
625
+ 16% {
626
+ -webkit-transform: rotate(-22deg);
627
+ transform: rotate(-22deg);
628
+ }
629
+ 20% {
630
+ -webkit-transform: rotate(22deg);
631
+ transform: rotate(22deg);
632
+ }
633
+ 32% {
634
+ -webkit-transform: rotate(-12deg);
635
+ transform: rotate(-12deg);
636
+ }
637
+ 36% {
638
+ -webkit-transform: rotate(12deg);
639
+ transform: rotate(12deg);
640
+ }
641
+ 40%, 100% {
642
+ -webkit-transform: rotate(0deg);
643
+ transform: rotate(0deg);
644
+ }
645
+ }
646
+ @keyframes fa-shake {
647
+ 0% {
648
+ -webkit-transform: rotate(-15deg);
649
+ transform: rotate(-15deg);
650
+ }
651
+ 4% {
652
+ -webkit-transform: rotate(15deg);
653
+ transform: rotate(15deg);
654
+ }
655
+ 8%, 24% {
656
+ -webkit-transform: rotate(-18deg);
657
+ transform: rotate(-18deg);
658
+ }
659
+ 12%, 28% {
660
+ -webkit-transform: rotate(18deg);
661
+ transform: rotate(18deg);
662
+ }
663
+ 16% {
664
+ -webkit-transform: rotate(-22deg);
665
+ transform: rotate(-22deg);
666
+ }
667
+ 20% {
668
+ -webkit-transform: rotate(22deg);
669
+ transform: rotate(22deg);
670
+ }
671
+ 32% {
672
+ -webkit-transform: rotate(-12deg);
673
+ transform: rotate(-12deg);
674
+ }
675
+ 36% {
676
+ -webkit-transform: rotate(12deg);
677
+ transform: rotate(12deg);
678
+ }
679
+ 40%, 100% {
680
+ -webkit-transform: rotate(0deg);
681
+ transform: rotate(0deg);
682
+ }
683
+ }
684
+ @-webkit-keyframes fa-spin {
685
+ 0% {
686
+ -webkit-transform: rotate(0deg);
687
+ transform: rotate(0deg);
688
+ }
689
+ 100% {
690
+ -webkit-transform: rotate(360deg);
691
+ transform: rotate(360deg);
692
+ }
693
+ }
694
+ @keyframes fa-spin {
695
+ 0% {
696
+ -webkit-transform: rotate(0deg);
697
+ transform: rotate(0deg);
698
+ }
699
+ 100% {
700
+ -webkit-transform: rotate(360deg);
701
+ transform: rotate(360deg);
702
+ }
703
+ }
704
+ .fa-rotate-90 {
705
+ -webkit-transform: rotate(90deg);
706
+ transform: rotate(90deg);
707
+ }
708
+
709
+ .fa-rotate-180 {
710
+ -webkit-transform: rotate(180deg);
711
+ transform: rotate(180deg);
712
+ }
713
+
714
+ .fa-rotate-270 {
715
+ -webkit-transform: rotate(270deg);
716
+ transform: rotate(270deg);
717
+ }
718
+
719
+ .fa-flip-horizontal {
720
+ -webkit-transform: scale(-1, 1);
721
+ transform: scale(-1, 1);
722
+ }
723
+
724
+ .fa-flip-vertical {
725
+ -webkit-transform: scale(1, -1);
726
+ transform: scale(1, -1);
727
+ }
728
+
729
+ .fa-flip-both,
730
+ .fa-flip-horizontal.fa-flip-vertical {
731
+ -webkit-transform: scale(-1, -1);
732
+ transform: scale(-1, -1);
733
+ }
734
+
735
+ .fa-rotate-by {
736
+ -webkit-transform: rotate(var(--fa-rotate-angle, none));
737
+ transform: rotate(var(--fa-rotate-angle, none));
738
+ }
739
+
740
+ .fa-stack {
741
+ display: inline-block;
742
+ vertical-align: middle;
743
+ height: 2em;
744
+ position: relative;
745
+ width: 2.5em;
746
+ }
747
+
748
+ .fa-stack-1x,
749
+ .fa-stack-2x {
750
+ bottom: 0;
751
+ left: 0;
752
+ margin: auto;
753
+ position: absolute;
754
+ right: 0;
755
+ top: 0;
756
+ z-index: var(--fa-stack-z-index, auto);
757
+ }
758
+
759
+ .svg-inline--fa.fa-stack-1x {
760
+ height: 1em;
761
+ width: 1.25em;
762
+ }
763
+ .svg-inline--fa.fa-stack-2x {
764
+ height: 2em;
765
+ width: 2.5em;
766
+ }
767
+
768
+ .fa-inverse {
769
+ color: var(--fa-inverse, #fff);
770
+ }
771
+
772
+ .sr-only,
773
+ .fa-sr-only {
774
+ position: absolute;
775
+ width: 1px;
776
+ height: 1px;
777
+ padding: 0;
778
+ margin: -1px;
779
+ overflow: hidden;
780
+ clip: rect(0, 0, 0, 0);
781
+ white-space: nowrap;
782
+ border-width: 0;
783
+ }
784
+
785
+ .sr-only-focusable:not(:focus),
786
+ .fa-sr-only-focusable:not(:focus) {
787
+ position: absolute;
788
+ width: 1px;
789
+ height: 1px;
790
+ padding: 0;
791
+ margin: -1px;
792
+ overflow: hidden;
793
+ clip: rect(0, 0, 0, 0);
794
+ white-space: nowrap;
795
+ border-width: 0;
796
+ }
797
+
798
+ .svg-inline--fa .fa-primary {
799
+ fill: var(--fa-primary-color, currentColor);
800
+ opacity: var(--fa-primary-opacity, 1);
801
+ }
802
+
803
+ .svg-inline--fa .fa-secondary {
804
+ fill: var(--fa-secondary-color, currentColor);
805
+ opacity: var(--fa-secondary-opacity, 0.4);
806
+ }
807
+
808
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
809
+ opacity: var(--fa-secondary-opacity, 0.4);
810
+ }
811
+
812
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
813
+ opacity: var(--fa-primary-opacity, 1);
814
+ }
815
+
816
+ .svg-inline--fa mask .fa-primary,
817
+ .svg-inline--fa mask .fa-secondary {
818
+ fill: black;
819
+ }
820
+
821
+ .fad.fa-inverse,
822
+ .fa-duotone.fa-inverse {
823
+ color: var(--fa-inverse, #fff);
824
+ }`;function r4(){var e=XF,t=KF,r=Yt.cssPrefix,n=Yt.replacementClass,i=kG;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(s,".".concat(n))}return i}var fI=!1;function Yw(){Yt.autoAddCss&&!fI&&(TG(r4()),fI=!0)}var DG={mixout:function(){return{dom:{css:r4,insertCss:Yw}}},hooks:function(){return{beforeDOMElementCreation:function(){Yw()},beforeI2svg:function(){Yw()}}}},Wo=il||{};Wo[jo]||(Wo[jo]={});Wo[jo].styles||(Wo[jo].styles={});Wo[jo].hooks||(Wo[jo].hooks={});Wo[jo].shims||(Wo[jo].shims=[]);var Aa=Wo[jo],n4=[],MG=function e(){Kr.removeEventListener("DOMContentLoaded",e),wy=1,n4.map(function(t){return t()})},wy=!1;Qo&&(wy=(Kr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Kr.readyState),wy||Kr.addEventListener("DOMContentLoaded",MG));function NG(e){!Qo||(wy?setTimeout(e,0):n4.push(e))}function Lv(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"?t4(e):"<".concat(t," ").concat(OG(n),">").concat(a.map(Lv).join(""),"</").concat(t,">")}function cI(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var FG=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},Xw=function(t,r,n,i){var a=Object.keys(t),o=a.length,s=i!==void 0?FG(r,i):r,u,f,d;for(n===void 0?(u=1,d=t[a[0]]):(u=0,d=n);u<o;u++)f=a[u],d=s(d,t[f],f,t);return d};function LG(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 H2(e){var t=LG(e);return t.length===1?t[0].toString(16):null}function BG(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 dI(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 V2(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=dI(t);typeof Aa.hooks.addPack=="function"&&!i?Aa.hooks.addPack(e,dI(t)):Aa.styles[e]=Ut(Ut({},Aa.styles[e]||{}),a),e==="fas"&&V2("fa",t)}var Bm,$m,zm,Jf=Aa.styles,$G=Aa.shims,zG=(Bm={},kn(Bm,Yr,Object.values(ev[Yr])),kn(Bm,sn,Object.values(ev[sn])),Bm),gC=null,i4={},a4={},o4={},s4={},l4={},UG=($m={},kn($m,Yr,Object.keys(Zh[Yr])),kn($m,sn,Object.keys(Zh[sn])),$m);function jG(e){return~_G.indexOf(e)}function WG(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!jG(i)?i:null}var u4=function(){var t=function(a){return Xw(Jf,function(o,s,u){return o[u]=Xw(s,a,{}),o},{})};i4=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var s=a[2].filter(function(u){return typeof u=="number"});s.forEach(function(u){i[u.toString(16)]=o})}return i}),a4=t(function(i,a,o){if(i[o]=o,a[2]){var s=a[2].filter(function(u){return typeof u=="string"});s.forEach(function(u){i[u]=o})}return i}),l4=t(function(i,a,o){var s=a[2];return i[o]=o,s.forEach(function(u){i[u]=o}),i});var r="far"in Jf||Yt.autoFetchSvg,n=Xw($G,function(i,a){var o=a[0],s=a[1],u=a[2];return s==="far"&&!r&&(s="fas"),typeof o=="string"&&(i.names[o]={prefix:s,iconName:u}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:s,iconName:u}),i},{names:{},unicodes:{}});o4=n.names,s4=n.unicodes,gC=W1(Yt.styleDefault,{family:Yt.familyDefault})};CG(function(e){gC=W1(e.styleDefault,{family:Yt.familyDefault})});u4();function mC(e,t){return(i4[e]||{})[t]}function GG(e,t){return(a4[e]||{})[t]}function uu(e,t){return(l4[e]||{})[t]}function f4(e){return o4[e]||{prefix:null,iconName:null}}function qG(e){var t=s4[e],r=mC("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function al(){return gC}var yC=function(){return{prefix:null,iconName:null,rest:[]}};function W1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Yr:r,i=Zh[n][e],a=Jh[n][e]||Jh[n][i],o=e in Aa.styles?e:null;return a||o||null}var pI=(zm={},kn(zm,Yr,Object.keys(ev[Yr])),kn(zm,sn,Object.keys(ev[sn])),zm);function G1(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},kn(t,Yr,"".concat(Yt.cssPrefix,"-").concat(Yr)),kn(t,sn,"".concat(Yt.cssPrefix,"-").concat(sn)),t),o=null,s=Yr;(e.includes(a[Yr])||e.some(function(f){return pI[Yr].includes(f)}))&&(s=Yr),(e.includes(a[sn])||e.some(function(f){return pI[sn].includes(f)}))&&(s=sn);var u=e.reduce(function(f,d){var p=WG(Yt.cssPrefix,d);if(Jf[d]?(d=zG[s].includes(d)?gG[s][d]:d,o=d,f.prefix=d):UG[s].indexOf(d)>-1?(o=d,f.prefix=W1(d,{family:s})):p?f.iconName=p:d!==Yt.replacementClass&&d!==a[Yr]&&d!==a[sn]&&f.rest.push(d),!i&&f.prefix&&f.iconName){var h=o==="fa"?f4(f.iconName):{},g=uu(f.prefix,f.iconName);h.prefix&&(o=null),f.iconName=h.iconName||g||f.iconName,f.prefix=h.prefix||f.prefix,f.prefix==="far"&&!Jf.far&&Jf.fas&&!Yt.autoFetchSvg&&(f.prefix="fas")}return f},yC());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),!u.prefix&&s===sn&&(Jf.fass||Yt.autoFetchSvg)&&(u.prefix="fass",u.iconName=uu(u.prefix,u.iconName)||u.iconName),(u.prefix==="fa"||o==="fa")&&(u.prefix=al()||"fas"),u}var HG=function(){function e(){iG(this,e),this.definitions={}}return aG(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(s){r.definitions[s]=Ut(Ut({},r.definitions[s]||{}),o[s]),V2(s,o[s]);var u=ev[Yr][s];u&&V2(u,o[s]),u4()})}},{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],s=o.prefix,u=o.iconName,f=o.icon,d=f[2];r[s]||(r[s]={}),d.length>0&&d.forEach(function(p){typeof p=="string"&&(r[s][p]=f)}),r[s][u]=f}),r}}]),e}(),hI=[],ec={},pc={},VG=Object.keys(pc);function YG(e,t){var r=t.mixoutsTo;return hI=e,ec={},Object.keys(pc).forEach(function(n){VG.indexOf(n)===-1&&delete pc[n]}),hI.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),xy(i[o])==="object"&&Object.keys(i[o]).forEach(function(s){r[o]||(r[o]={}),r[o][s]=i[o][s]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){ec[o]||(ec[o]=[]),ec[o].push(a[o])})}n.provides&&n.provides(pc)}),r}function Y2(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=ec[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function Su(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=ec[e]||[];i.forEach(function(a){a.apply(null,r)})}function Go(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return pc[e]?pc[e].apply(null,t):void 0}function X2(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||al();if(!!t)return t=uu(r,t)||t,cI(c4.definitions,r,t)||cI(Aa.styles,r,t)}var c4=new HG,XG=function(){Yt.autoReplaceSvg=!1,Yt.observeMutations=!1,Su("noAuto")},KG={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Qo?(Su("beforeI2svg",t),Go("pseudoElements2svg",t),Go("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;Yt.autoReplaceSvg===!1&&(Yt.autoReplaceSvg=!0),Yt.observeMutations=!0,NG(function(){ZG({autoReplaceSvgRoot:r}),Su("watch",t)})}},QG={icon:function(t){if(t===null)return null;if(xy(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:uu(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=W1(t[0]);return{prefix:n,iconName:uu(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Yt.cssPrefix,"-"))>-1||t.match(mG))){var i=G1(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||al(),iconName:uu(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=al();return{prefix:a,iconName:uu(a,t)||t}}}},ji={noAuto:XG,config:Yt,dom:KG,parse:QG,library:c4,findIconDefinition:X2,toHtml:Lv},ZG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?Kr:r;(Object.keys(Aa.styles).length>0||Yt.autoFetchSvg)&&Qo&&Yt.autoReplaceSvg&&ji.dom.i2svg({node:n})};function q1(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Lv(n)})}}),Object.defineProperty(e,"node",{get:function(){if(!!Qo){var n=Kr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function JG(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(vC(o)&&r.found&&!n.found){var s=r.width,u=r.height,f={x:s/u/2,y:.5};i.style=j1(Ut(Ut({},a),{},{"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function eq(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Yt.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ut(Ut({},i),{},{id:o}),children:n}]}]}function bC(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,u=e.title,f=e.maskId,d=e.titleId,p=e.extra,h=e.watchable,g=h===void 0?!1:h,w=n.found?n:r,E=w.width,y=w.height,x=i==="fak",S=[Yt.replacementClass,a?"".concat(Yt.cssPrefix,"-").concat(a):""].filter(function(L){return p.classes.indexOf(L)===-1}).filter(function(L){return L!==""||!!L}).concat(p.classes).join(" "),A={children:[],attributes:Ut(Ut({},p.attributes),{},{"data-prefix":i,"data-icon":a,class:S,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(E," ").concat(y)})},C=x&&!~p.classes.indexOf("fa-fw")?{width:"".concat(E/y*16*.0625,"em")}:{};g&&(A.attributes[_u]=""),u&&(A.children.push({tag:"title",attributes:{id:A.attributes["aria-labelledby"]||"title-".concat(d||rv())},children:[u]}),delete A.attributes.title);var k=Ut(Ut({},A),{},{prefix:i,iconName:a,main:r,mask:n,maskId:f,transform:o,symbol:s,styles:Ut(Ut({},C),p.styles)}),D=n.found&&r.found?Go("generateAbstractMask",k)||{children:[],attributes:{}}:Go("generateAbstractIcon",k)||{children:[],attributes:{}},z=D.children,M=D.attributes;return k.children=z,k.attributes=M,s?eq(k):JG(k)}function vI(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,u=s===void 0?!1:s,f=Ut(Ut(Ut({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(f[_u]="");var d=Ut({},o.styles);vC(i)&&(d.transform=PG({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var p=j1(d);p.length>0&&(f.style=p);var h=[];return h.push({tag:"span",attributes:f,children:[t]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function tq(e){var t=e.content,r=e.title,n=e.extra,i=Ut(Ut(Ut({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=j1(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 Kw=Aa.styles;function K2(e){var t=e[0],r=e[1],n=e.slice(4),i=uC(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Yt.cssPrefix,"-").concat(lu.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Yt.cssPrefix,"-").concat(lu.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Yt.cssPrefix,"-").concat(lu.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var rq={found:!1,width:512,height:512};function nq(e,t){!QF&&!Yt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Q2(e,t){var r=t;return t==="fa"&&Yt.styleDefault!==null&&(t=al()),new Promise(function(n,i){if(Go("missingIconAbstract"),r==="fa"){var a=f4(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Kw[t]&&Kw[t][e]){var o=Kw[t][e];return n(K2(o))}nq(e,t),n(Ut(Ut({},rq),{},{icon:Yt.showMissingIcons&&e?Go("missingIconAbstract")||{}:{}}))})}var gI=function(){},Z2=Yt.measurePerformance&&km&&km.mark&&km.measure?km:{mark:gI,measure:gI},ah='FA "6.2.1"',iq=function(t){return Z2.mark("".concat(ah," ").concat(t," begins")),function(){return d4(t)}},d4=function(t){Z2.mark("".concat(ah," ").concat(t," ends")),Z2.measure("".concat(ah," ").concat(t),"".concat(ah," ").concat(t," begins"),"".concat(ah," ").concat(t," ends"))},xC={begin:iq,end:d4},N0=function(){};function mI(e){var t=e.getAttribute?e.getAttribute(_u):null;return typeof t=="string"}function aq(e){var t=e.getAttribute?e.getAttribute(cC):null,r=e.getAttribute?e.getAttribute(dC):null;return t&&r}function oq(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Yt.replacementClass)}function sq(){if(Yt.autoReplaceSvg===!0)return F0.replace;var e=F0[Yt.autoReplaceSvg];return e||F0.replace}function lq(e){return Kr.createElementNS("http://www.w3.org/2000/svg",e)}function uq(e){return Kr.createElement(e)}function p4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?lq:uq:r;if(typeof e=="string")return Kr.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(p4(o,{ceFn:n}))}),i}function fq(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var F0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(p4(i),r)}),r.getAttribute(_u)===null&&Yt.keepOriginalSource){var n=Kr.createComment(fq(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~hC(r).indexOf(Yt.replacementClass))return F0.replace(t);var i=new RegExp("".concat(Yt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(s,u){return u===Yt.replacementClass||u.match(i)?s.toSvg.push(u):s.toNode.push(u),s},{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(s){return Lv(s)}).join(`
825
+ `);r.setAttribute(_u,""),r.innerHTML=o}};function yI(e){e()}function h4(e,t){var r=typeof t=="function"?t:N0;if(e.length===0)r();else{var n=yI;Yt.mutateApproach===hG&&(n=il.requestAnimationFrame||yI),n(function(){var i=sq(),a=xC.begin("mutate");e.map(i),a(),r()})}}var wC=!1;function v4(){wC=!0}function J2(){wC=!1}var _y=null;function bI(e){if(!!lI&&!!Yt.observeMutations){var t=e.treeCallback,r=t===void 0?N0:t,n=e.nodeCallback,i=n===void 0?N0:n,a=e.pseudoElementsCallback,o=a===void 0?N0:a,s=e.observeMutationsRoot,u=s===void 0?Kr:s;_y=new lI(function(f){if(!wC){var d=al();Zc(f).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!mI(p.addedNodes[0])&&(Yt.searchPseudoElements&&o(p.target),r(p.target)),p.type==="attributes"&&p.target.parentNode&&Yt.searchPseudoElements&&o(p.target.parentNode),p.type==="attributes"&&mI(p.target)&&~wG.indexOf(p.attributeName))if(p.attributeName==="class"&&aq(p.target)){var h=G1(hC(p.target)),g=h.prefix,w=h.iconName;p.target.setAttribute(cC,g||d),w&&p.target.setAttribute(dC,w)}else oq(p.target)&&i(p.target)})}}),Qo&&_y.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function cq(){!_y||_y.disconnect()}function dq(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(n[o]=s.join(":").trim()),n},{})),r}function pq(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=G1(hC(e));return i.prefix||(i.prefix=al()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=GG(i.prefix,e.innerText)||mC(i.prefix,H2(e.innerText))),!i.iconName&&Yt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function hq(e){var t=Zc(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 Yt.autoA11y&&(r?t["aria-labelledby"]="".concat(Yt.replacementClass,"-title-").concat(n||rv()):(t["aria-hidden"]="true",t.focusable="false")),t}function vq(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Za,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function xI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=pq(e),n=r.iconName,i=r.prefix,a=r.rest,o=hq(e),s=Y2("parseNodeAttributes",{},e),u=t.styleParser?dq(e):[];return Ut({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Za,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},s)}var gq=Aa.styles;function g4(e){var t=Yt.autoReplaceSvg==="nest"?xI(e,{styleParser:!1}):xI(e);return~t.extra.classes.indexOf(ZF)?Go("generateLayersText",e,t):Go("generateSvgReplacementMutation",e,t)}var ol=new Set;pC.map(function(e){ol.add("fa-".concat(e))});Object.keys(Zh[Yr]).map(ol.add.bind(ol));Object.keys(Zh[sn]).map(ol.add.bind(ol));ol=Nv(ol);function wI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Qo)return Promise.resolve();var r=Kr.documentElement.classList,n=function(p){return r.add("".concat(uI,"-").concat(p))},i=function(p){return r.remove("".concat(uI,"-").concat(p))},a=Yt.autoFetchSvg?ol:pC.map(function(d){return"fa-".concat(d)}).concat(Object.keys(gq));a.includes("fa")||a.push("fa");var o=[".".concat(ZF,":not([").concat(_u,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(_u,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=Zc(e.querySelectorAll(o))}catch{}if(s.length>0)n("pending"),i("complete");else return Promise.resolve();var u=xC.begin("onTree"),f=s.reduce(function(d,p){try{var h=g4(p);h&&d.push(h)}catch(g){QF||g.name==="MissingIcon"&&console.error(g)}return d},[]);return new Promise(function(d,p){Promise.all(f).then(function(h){h4(h,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),u(),d()})}).catch(function(h){u(),p(h)})})}function mq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;g4(e).then(function(r){r&&h4([r],t)})}function yq(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:X2(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:X2(i||{})),e(n,Ut(Ut({},r),{},{mask:i}))}}var bq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?Za:n,a=r.symbol,o=a===void 0?!1:a,s=r.mask,u=s===void 0?null:s,f=r.maskId,d=f===void 0?null:f,p=r.title,h=p===void 0?null:p,g=r.titleId,w=g===void 0?null:g,E=r.classes,y=E===void 0?[]:E,x=r.attributes,S=x===void 0?{}:x,A=r.styles,C=A===void 0?{}:A;if(!!t){var k=t.prefix,D=t.iconName,z=t.icon;return q1(Ut({type:"icon"},t),function(){return Su("beforeDOMElementCreation",{iconDefinition:t,params:r}),Yt.autoA11y&&(h?S["aria-labelledby"]="".concat(Yt.replacementClass,"-title-").concat(w||rv()):(S["aria-hidden"]="true",S.focusable="false")),bC({icons:{main:K2(z),mask:u?K2(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:D,transform:Ut(Ut({},Za),i),symbol:o,title:h,maskId:d,titleId:w,extra:{attributes:S,styles:C,classes:y}})})}},xq={mixout:function(){return{icon:yq(bq)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=wI,r.nodeCallback=mq,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?Kr:n,a=r.callback,o=a===void 0?function(){}:a;return wI(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,s=n.prefix,u=n.transform,f=n.symbol,d=n.mask,p=n.maskId,h=n.extra;return new Promise(function(g,w){Promise.all([Q2(i,s),d.iconName?Q2(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(E){var y=uC(E,2),x=y[0],S=y[1];g([r,bC({icons:{main:x,mask:S},prefix:s,iconName:i,transform:u,symbol:f,maskId:p,title:a,titleId:o,extra:h,watchable:!0})])}).catch(w)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,s=r.styles,u=j1(s);u.length>0&&(i.style=u);var f;return vC(o)&&(f=Go("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:i}}}},wq={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 q1({type:"layer"},function(){Su("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(s){Array.isArray(s)?s.map(function(u){o=o.concat(u.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Yt.cssPrefix,"-layers")].concat(Nv(a)).join(" ")},children:o}]})}}}},_q={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,s=o===void 0?[]:o,u=n.attributes,f=u===void 0?{}:u,d=n.styles,p=d===void 0?{}:d;return q1({type:"counter",content:r},function(){return Su("beforeDOMElementCreation",{content:r,params:n}),tq({content:r.toString(),title:a,extra:{attributes:f,styles:p,classes:["".concat(Yt.cssPrefix,"-layers-counter")].concat(Nv(s))}})})}}}},Sq={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?Za:i,o=n.title,s=o===void 0?null:o,u=n.classes,f=u===void 0?[]:u,d=n.attributes,p=d===void 0?{}:d,h=n.styles,g=h===void 0?{}:h;return q1({type:"text",content:r},function(){return Su("beforeDOMElementCreation",{content:r,params:n}),vI({content:r,transform:Ut(Ut({},Za),a),title:s,extra:{attributes:p,styles:g,classes:["".concat(Yt.cssPrefix,"-layers-text")].concat(Nv(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,s=null,u=null;if(YF){var f=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();s=d.width/f,u=d.height/f}return Yt.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,vI({content:r.innerHTML,width:s,height:u,transform:a,title:i,extra:o,watchable:!0})])}}},Eq=new RegExp('"',"ug"),_I=[1105920,1112319];function Aq(e){var t=e.replace(Eq,""),r=BG(t,0),n=r>=_I[0]&&r<=_I[1],i=t.length===2?t[0]===t[1]:!1;return{value:H2(i?t[0]:t),isSecondary:n||i}}function SI(e,t){var r="".concat(pG).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=Zc(e.children),o=a.filter(function(z){return z.getAttribute(q2)===t})[0],s=il.getComputedStyle(e,t),u=s.getPropertyValue("font-family").match(yG),f=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(o&&!u)return e.removeChild(o),n();if(u&&d!=="none"&&d!==""){var p=s.getPropertyValue("content"),h=~["Sharp"].indexOf(u[2])?sn:Yr,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?Jh[h][u[2].toLowerCase()]:bG[h][f],w=Aq(p),E=w.value,y=w.isSecondary,x=u[0].startsWith("FontAwesome"),S=mC(g,E),A=S;if(x){var C=qG(E);C.iconName&&C.prefix&&(S=C.iconName,g=C.prefix)}if(S&&!y&&(!o||o.getAttribute(cC)!==g||o.getAttribute(dC)!==A)){e.setAttribute(r,A),o&&e.removeChild(o);var k=vq(),D=k.extra;D.attributes[q2]=t,Q2(S,g).then(function(z){var M=bC(Ut(Ut({},k),{},{icons:{main:z,mask:yC()},prefix:g,iconName:A,extra:D,watchable:!0})),L=Kr.createElement("svg");t==="::before"?e.insertBefore(L,e.firstChild):e.appendChild(L),L.outerHTML=M.map(function(X){return Lv(X)}).join(`
826
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function Cq(e){return Promise.all([SI(e,"::before"),SI(e,"::after")])}function Tq(e){return e.parentNode!==document.head&&!~vG.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(q2)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function EI(e){if(!!Qo)return new Promise(function(t,r){var n=Zc(e.querySelectorAll("*")).filter(Tq).map(Cq),i=xC.begin("searchPseudoElements");v4(),Promise.all(n).then(function(){i(),J2(),t()}).catch(function(){i(),J2(),r()})})}var Rq={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=EI,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Kr:n;Yt.searchPseudoElements&&EI(i)}}},AI=!1,Oq={mixout:function(){return{dom:{unwatch:function(){v4(),AI=!0}}}},hooks:function(){return{bootstrap:function(){bI(Y2("mutationObserverCallbacks",{}))},noAuto:function(){cq()},watch:function(r){var n=r.observeMutationsRoot;AI?J2():bI(Y2("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},CI=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],s=a.slice(1).join("-");if(o&&s==="h")return n.flipX=!0,n;if(o&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(o){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},r)},Iq={mixout:function(){return{parse:{transform:function(r){return CI(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=CI(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,s={transform:"translate(".concat(a/2," 256)")},u="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),p={transform:"".concat(u," ").concat(f," ").concat(d)},h={transform:"translate(".concat(o/2*-1," -256)")},g={outer:s,inner:p,path:h};return{tag:"g",attributes:Ut({},g.outer),children:[{tag:"g",attributes:Ut({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ut(Ut({},n.icon.attributes),g.path)}]}]}}}},Qw={x:0,y:0,width:"100%",height:"100%"};function TI(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 Pq(e){return e.tag==="g"?e.children:[e]}var kq={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?G1(i.split(" ").map(function(o){return o.trim()})):yC();return a.prefix||(a.prefix=al()),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,s=r.maskId,u=r.transform,f=a.width,d=a.icon,p=o.width,h=o.icon,g=IG({transform:u,containerWidth:p,iconWidth:f}),w={tag:"rect",attributes:Ut(Ut({},Qw),{},{fill:"white"})},E=d.children?{children:d.children.map(TI)}:{},y={tag:"g",attributes:Ut({},g.inner),children:[TI(Ut({tag:d.tag,attributes:Ut(Ut({},d.attributes),g.path)},E))]},x={tag:"g",attributes:Ut({},g.outer),children:[y]},S="mask-".concat(s||rv()),A="clip-".concat(s||rv()),C={tag:"mask",attributes:Ut(Ut({},Qw),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,x]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:Pq(h)},C]};return n.push(k,{tag:"rect",attributes:Ut({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(S,")")},Qw)}),{children:n,attributes:i}}}},Dq={provides:function(t){var r=!1;il.matchMedia&&(r=il.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:Ut(Ut({},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=Ut(Ut({},a),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Ut(Ut({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||s.children.push({tag:"animate",attributes:Ut(Ut({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ut(Ut({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:Ut(Ut({},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:Ut(Ut({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Ut(Ut({},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:Ut(Ut({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Mq={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}}}},Nq=[DG,xq,wq,_q,Sq,Rq,Oq,Iq,kq,Dq,Mq];YG(Nq,{mixoutsTo:ji});ji.noAuto;ji.config;ji.library;ji.dom;var eE=ji.parse;ji.findIconDefinition;ji.toHtml;var Fq=ji.icon;ji.layer;ji.text;ji.counter;function RI(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 Ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RI(Object(r),!0).forEach(function(n){tc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sy(e){return Sy=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},Sy(e)}function tc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lq(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 Bq(e,t){if(e==null)return{};var r=Lq(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 tE(e){return $q(e)||zq(e)||Uq(e)||jq()}function $q(e){if(Array.isArray(e))return rE(e)}function zq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uq(e,t){if(!!e){if(typeof e=="string")return rE(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 rE(e,t)}}function rE(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 jq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wq(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,u=e.spin,f=e.spinPulse,d=e.spinReverse,p=e.pulse,h=e.fixedWidth,g=e.inverse,w=e.border,E=e.listItem,y=e.flip,x=e.size,S=e.rotation,A=e.pull,C=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":d,"fa-spin-pulse":f,"fa-pulse":p,"fa-fw":h,"fa-inverse":g,"fa-border":w,"fa-li":E,"fa-flip":y===!0,"fa-flip-horizontal":y==="horizontal"||y==="both","fa-flip-vertical":y==="vertical"||y==="both"},tc(t,"fa-".concat(x),typeof x<"u"&&x!==null),tc(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),tc(t,"fa-pull-".concat(A),typeof A<"u"&&A!==null),tc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(C).map(function(k){return C[k]?k:null}).filter(function(k){return k})}function Gq(e){return e=e-0,e===e}function m4(e){return Gq(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var qq=["style"];function Hq(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Vq(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=m4(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[Hq(i)]=a:t[i]=a,t},{})}function y4(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(u){return y4(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,f){var d=t.attributes[f];switch(f){case"class":u.attrs.className=d,delete t.attributes.class;break;case"style":u.attrs.style=Vq(d);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?u.attrs[f.toLowerCase()]=d:u.attrs[m4(f)]=d}return u},{attrs:{}}),a=r.style,o=a===void 0?{}:a,s=Bq(r,qq);return i.attrs.style=Ls(Ls({},i.attrs.style),o),e.apply(void 0,[t.tag,Ls(Ls({},i.attrs),s)].concat(tE(n)))}var b4=!1;try{b4=!0}catch{}function Yq(){if(!b4&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function OI(e){if(e&&Sy(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(eE.icon)return eE.icon(e);if(e===null)return null;if(e&&Sy(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 Zw(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?tc({},e,t):{}}var H1=dn.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,u=e.maskId,f=OI(r),d=Zw("classes",[].concat(tE(Wq(e)),tE(a.split(" ")))),p=Zw("transform",typeof e.transform=="string"?eE.transform(e.transform):e.transform),h=Zw("mask",OI(n)),g=Fq(f,Ls(Ls(Ls(Ls({},d),p),h),{},{symbol:i,title:o,titleId:s,maskId:u}));if(!g)return Yq("Could not find icon",f),null;var w=g.abstract,E={ref:t};return Object.keys(e).forEach(function(y){H1.defaultProps.hasOwnProperty(y)||(E[y]=e[y])}),Xq(w[0],E)});H1.displayName="FontAwesomeIcon";H1.propTypes={beat:mr.exports.bool,border:mr.exports.bool,beatFade:mr.exports.bool,bounce:mr.exports.bool,className:mr.exports.string,fade:mr.exports.bool,flash:mr.exports.bool,mask:mr.exports.oneOfType([mr.exports.object,mr.exports.array,mr.exports.string]),maskId:mr.exports.string,fixedWidth:mr.exports.bool,inverse:mr.exports.bool,flip:mr.exports.oneOf([!0,!1,"horizontal","vertical","both"]),icon:mr.exports.oneOfType([mr.exports.object,mr.exports.array,mr.exports.string]),listItem:mr.exports.bool,pull:mr.exports.oneOf(["right","left"]),pulse:mr.exports.bool,rotation:mr.exports.oneOf([0,90,180,270]),shake:mr.exports.bool,size:mr.exports.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:mr.exports.bool,spinPulse:mr.exports.bool,spinReverse:mr.exports.bool,symbol:mr.exports.oneOfType([mr.exports.bool,mr.exports.string]),title:mr.exports.string,titleId:mr.exports.string,transform:mr.exports.oneOfType([mr.exports.string,mr.exports.object]),swapOpacity:mr.exports.bool};H1.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Xq=y4.bind(null,dn.createElement),x4={exports:{}},w4={exports:{}},L0=1;function Kq(){return L0=(L0*9301+49297)%233280,L0/233280}function Qq(e){L0=e}var Zq={nextValue:Kq,seed:Qq},nE=Zq,tu="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Bs,II,oh;function iE(){oh=!1}function _4(e){if(!e){Bs!==tu&&(Bs=tu,iE());return}if(e!==Bs){if(e.length!==tu.length)throw new Error("Custom alphabet for shortid must be "+tu.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 "+tu.length+" unique characters. These characters were not unique: "+t.join(", "));Bs=e,iE()}}function Jq(e){return _4(e),Bs}function eH(e){nE.seed(e),II!==e&&(iE(),II=e)}function tH(){Bs||_4(tu);for(var e=Bs.split(""),t=[],r=nE.nextValue(),n;e.length>0;)r=nE.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function S4(){return oh||(oh=tH(),oh)}function rH(e){var t=S4();return t[e]}function nH(){return Bs||tu}var _C={get:nH,characters:Jq,seed:eH,lookup:rH,shuffled:S4},Jw=typeof window=="object"&&(window.crypto||window.msCrypto),aE;!Jw||!Jw.getRandomValues?aE=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:aE=function(e){return Jw.getRandomValues(new Uint8Array(e))};var iH=aE,aH=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),s=i;s--;)if(a+=t[o[s]&n]||"",a.length===+r)return a},oH=_C,sH=iH,lH=aH;function uH(e){for(var t=0,r,n="";!r;)n=n+lH(sH,oH.get(),1),r=e<Math.pow(16,t+1),t++;return n}var fH=uH,Um=fH,cH=1567752802062,dH=7,jm,PI;function pH(e){var t="",r=Math.floor((Date.now()-cH)*.001);return r===PI?jm++:(jm=0,PI=r),t=t+Um(dH),t=t+Um(e),jm>0&&(t=t+Um(jm)),t=t+Um(r),t}var hH=pH,vH=_C;function gH(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+vH.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var mH=gH;(function(e){var t=_C,r=hH,n=mH,i=0;function a(f){return t.seed(f),e.exports}function o(f){return i=f,e.exports}function s(f){return f!==void 0&&t.characters(f),t.shuffled()}function u(){return r(i)}e.exports=u,e.exports.generate=u,e.exports.seed=a,e.exports.worker=o,e.exports.characters=s,e.exports.isValid=n})(w4);(function(e){e.exports=w4.exports})(x4);const fge=ZE(x4.exports);function nv(e){return nv=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},nv(e)}function yH(e,t){if(nv(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nv(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bH(e){var t=yH(e,"string");return nv(t)==="symbol"?t:String(t)}function xH(e,t,r){return t=bH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kI(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 DI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kI(Object(r),!0).forEach(function(n){xH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var MI=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),e_=function(){return Math.random().toString(36).substring(7).split("").join(".")},NI={INIT:"@@redux/INIT"+e_(),REPLACE:"@@redux/REPLACE"+e_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+e_()}};function wH(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function E4(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_i(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_i(1));return r(E4)(e,t)}if(typeof e!="function")throw new Error(_i(2));var i=e,a=t,o=[],s=o,u=!1;function f(){s===o&&(s=o.slice())}function d(){if(u)throw new Error(_i(3));return a}function p(E){if(typeof E!="function")throw new Error(_i(4));if(u)throw new Error(_i(5));var y=!0;return f(),s.push(E),function(){if(!!y){if(u)throw new Error(_i(6));y=!1,f();var S=s.indexOf(E);s.splice(S,1),o=null}}}function h(E){if(!wH(E))throw new Error(_i(7));if(typeof E.type>"u")throw new Error(_i(8));if(u)throw new Error(_i(9));try{u=!0,a=i(a,E)}finally{u=!1}for(var y=o=s,x=0;x<y.length;x++){var S=y[x];S()}return E}function g(E){if(typeof E!="function")throw new Error(_i(10));i=E,h({type:NI.REPLACE})}function w(){var E,y=p;return E={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(_i(11));function A(){S.next&&S.next(d())}A();var C=y(A);return{unsubscribe:C}}},E[MI]=function(){return this},E}return h({type:NI.INIT}),n={dispatch:h,subscribe:p,getState:d,replaceReducer:g},n[MI]=w,n}function FI(e,t){return function(){return t(e.apply(this,arguments))}}function LI(e,t){if(typeof e=="function")return FI(e,t);if(typeof e!="object"||e===null)throw new Error(_i(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=FI(i,t))}return r}function A4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function _H(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(_i(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(u){return u(o)});return a=A4.apply(void 0,s)(i.dispatch),DI(DI({},i),{},{dispatch:a})}}}var C4=dn.createContext(null);function SH(e){e()}var T4=SH,EH=function(t){return T4=t},AH=function(){return T4};function CH(){var e=AH(),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 BI={notify:function(){},get:function(){return[]}};function R4(e,t){var r,n=BI;function i(p){return u(),n.subscribe(p)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function s(){return Boolean(r)}function u(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=CH())}function f(){r&&(r(),r=void 0,n.clear(),n=BI)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:f,getListeners:function(){return n}};return d}var O4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ve.exports.useLayoutEffect:ve.exports.useEffect;function TH(e){var t=e.store,r=e.context,n=e.children,i=ve.exports.useMemo(function(){var s=R4(t);return s.onStateChange=s.notifyNestedSubs,{store:t,subscription:s}},[t]),a=ve.exports.useMemo(function(){return t.getState()},[t]);O4(function(){var s=i.subscription;return s.trySubscribe(),a!==t.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[i,a]);var o=r||C4;return Mr(o.Provider,{value:i,children:n})}var I4={exports:{}},Nr={};/** @license React v16.13.1
828
+ * react-is.production.min.js
829
+ *
830
+ * Copyright (c) Facebook, Inc. and its affiliates.
831
+ *
832
+ * This source code is licensed under the MIT license found in the
833
+ * LICENSE file in the root directory of this source tree.
834
+ */var Un=typeof Symbol=="function"&&Symbol.for,SC=Un?Symbol.for("react.element"):60103,EC=Un?Symbol.for("react.portal"):60106,V1=Un?Symbol.for("react.fragment"):60107,Y1=Un?Symbol.for("react.strict_mode"):60108,X1=Un?Symbol.for("react.profiler"):60114,K1=Un?Symbol.for("react.provider"):60109,Q1=Un?Symbol.for("react.context"):60110,AC=Un?Symbol.for("react.async_mode"):60111,Z1=Un?Symbol.for("react.concurrent_mode"):60111,J1=Un?Symbol.for("react.forward_ref"):60112,eb=Un?Symbol.for("react.suspense"):60113,RH=Un?Symbol.for("react.suspense_list"):60120,tb=Un?Symbol.for("react.memo"):60115,rb=Un?Symbol.for("react.lazy"):60116,OH=Un?Symbol.for("react.block"):60121,IH=Un?Symbol.for("react.fundamental"):60117,PH=Un?Symbol.for("react.responder"):60118,kH=Un?Symbol.for("react.scope"):60119;function Wi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case SC:switch(e=e.type,e){case AC:case Z1:case V1:case X1:case Y1:case eb:return e;default:switch(e=e&&e.$$typeof,e){case Q1:case J1:case rb:case tb:case K1:return e;default:return t}}case EC:return t}}}function P4(e){return Wi(e)===Z1}Nr.AsyncMode=AC;Nr.ConcurrentMode=Z1;Nr.ContextConsumer=Q1;Nr.ContextProvider=K1;Nr.Element=SC;Nr.ForwardRef=J1;Nr.Fragment=V1;Nr.Lazy=rb;Nr.Memo=tb;Nr.Portal=EC;Nr.Profiler=X1;Nr.StrictMode=Y1;Nr.Suspense=eb;Nr.isAsyncMode=function(e){return P4(e)||Wi(e)===AC};Nr.isConcurrentMode=P4;Nr.isContextConsumer=function(e){return Wi(e)===Q1};Nr.isContextProvider=function(e){return Wi(e)===K1};Nr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===SC};Nr.isForwardRef=function(e){return Wi(e)===J1};Nr.isFragment=function(e){return Wi(e)===V1};Nr.isLazy=function(e){return Wi(e)===rb};Nr.isMemo=function(e){return Wi(e)===tb};Nr.isPortal=function(e){return Wi(e)===EC};Nr.isProfiler=function(e){return Wi(e)===X1};Nr.isStrictMode=function(e){return Wi(e)===Y1};Nr.isSuspense=function(e){return Wi(e)===eb};Nr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===V1||e===Z1||e===X1||e===Y1||e===eb||e===RH||typeof e=="object"&&e!==null&&(e.$$typeof===rb||e.$$typeof===tb||e.$$typeof===K1||e.$$typeof===Q1||e.$$typeof===J1||e.$$typeof===IH||e.$$typeof===PH||e.$$typeof===kH||e.$$typeof===OH)};Nr.typeOf=Wi;(function(e){e.exports=Nr})(I4);var CC=I4.exports,DH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},MH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},NH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TC={};TC[CC.ForwardRef]=NH;TC[CC.Memo]=k4;function $I(e){return CC.isMemo(e)?k4:TC[e.$$typeof]||DH}var FH=Object.defineProperty,LH=Object.getOwnPropertyNames,zI=Object.getOwnPropertySymbols,BH=Object.getOwnPropertyDescriptor,$H=Object.getPrototypeOf,UI=Object.prototype;function D4(e,t,r){if(typeof t!="string"){if(UI){var n=$H(t);n&&n!==UI&&D4(e,n,r)}var i=LH(t);zI&&(i=i.concat(zI(t)));for(var a=$I(e),o=$I(t),s=0;s<i.length;++s){var u=i[s];if(!MH[u]&&!(r&&r[u])&&!(o&&o[u])&&!(a&&a[u])){var f=BH(t,u);try{FH(e,u,f)}catch{}}}}return e}var jI=D4,M4={exports:{}},jr={};/** @license React v17.0.2
835
+ * react-is.production.min.js
836
+ *
837
+ * Copyright (c) Facebook, Inc. and its affiliates.
838
+ *
839
+ * This source code is licensed under the MIT license found in the
840
+ * LICENSE file in the root directory of this source tree.
841
+ */var nb=60103,ib=60106,Bv=60107,$v=60108,zv=60114,Uv=60109,jv=60110,Wv=60112,Gv=60113,RC=60120,qv=60115,Hv=60116,N4=60121,F4=60122,L4=60117,B4=60129,$4=60131;if(typeof Symbol=="function"&&Symbol.for){var Vn=Symbol.for;nb=Vn("react.element"),ib=Vn("react.portal"),Bv=Vn("react.fragment"),$v=Vn("react.strict_mode"),zv=Vn("react.profiler"),Uv=Vn("react.provider"),jv=Vn("react.context"),Wv=Vn("react.forward_ref"),Gv=Vn("react.suspense"),RC=Vn("react.suspense_list"),qv=Vn("react.memo"),Hv=Vn("react.lazy"),N4=Vn("react.block"),F4=Vn("react.server.block"),L4=Vn("react.fundamental"),B4=Vn("react.debug_trace_mode"),$4=Vn("react.legacy_hidden")}function Pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nb:switch(e=e.type,e){case Bv:case zv:case $v:case Gv:case RC:return e;default:switch(e=e&&e.$$typeof,e){case jv:case Wv:case Hv:case qv:case Uv:return e;default:return t}}case ib:return t}}}var zH=Uv,UH=nb,jH=Wv,WH=Bv,GH=Hv,qH=qv,HH=ib,VH=zv,YH=$v,XH=Gv;jr.ContextConsumer=jv;jr.ContextProvider=zH;jr.Element=UH;jr.ForwardRef=jH;jr.Fragment=WH;jr.Lazy=GH;jr.Memo=qH;jr.Portal=HH;jr.Profiler=VH;jr.StrictMode=YH;jr.Suspense=XH;jr.isAsyncMode=function(){return!1};jr.isConcurrentMode=function(){return!1};jr.isContextConsumer=function(e){return Pa(e)===jv};jr.isContextProvider=function(e){return Pa(e)===Uv};jr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nb};jr.isForwardRef=function(e){return Pa(e)===Wv};jr.isFragment=function(e){return Pa(e)===Bv};jr.isLazy=function(e){return Pa(e)===Hv};jr.isMemo=function(e){return Pa(e)===qv};jr.isPortal=function(e){return Pa(e)===ib};jr.isProfiler=function(e){return Pa(e)===zv};jr.isStrictMode=function(e){return Pa(e)===$v};jr.isSuspense=function(e){return Pa(e)===Gv};jr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bv||e===zv||e===B4||e===$v||e===Gv||e===RC||e===$4||typeof e=="object"&&e!==null&&(e.$$typeof===Hv||e.$$typeof===qv||e.$$typeof===Uv||e.$$typeof===jv||e.$$typeof===Wv||e.$$typeof===L4||e.$$typeof===N4||e[0]===F4)};jr.typeOf=Pa;(function(e){e.exports=jr})(M4);var KH=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],QH=["reactReduxForwardedRef"],ZH=[],JH=[null,null];function eV(e,t){var r=e[1];return[t.payload,r+1]}function WI(e,t,r){O4(function(){return e.apply(void 0,t)},r)}function tV(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function rV(e,t,r,n,i,a,o,s,u,f){if(!!e){var d=!1,p=null,h=function(){if(!d){var E=t.getState(),y,x;try{y=n(E,i.current)}catch(S){x=S,p=S}x||(p=null),y===a.current?o.current||u():(a.current=y,s.current=y,o.current=!0,f({type:"STORE_UPDATED",payload:{error:x}}))}};r.onStateChange=h,r.trySubscribe(),h();var g=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p};return g}}var nV=function(){return[null,0]};function iV(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(A){return"ConnectAdvanced("+A+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,s=r.renderCountProp,u=s===void 0?void 0:s,f=r.shouldHandleStateChanges,d=f===void 0?!0:f,p=r.storeKey,h=p===void 0?"store":p;r.withRef;var g=r.forwardRef,w=g===void 0?!1:g,E=r.context,y=E===void 0?C4:E,x=Cc(r,KH),S=y;return function(C){var k=C.displayName||C.name||"Component",D=i(k),z=ar({},x,{getDisplayName:i,methodName:o,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:D,wrappedComponentName:k,WrappedComponent:C}),M=x.pure;function L(Se){return e(Se.dispatch,z)}var X=M?ve.exports.useMemo:function(Se){return Se()};function re(Se){var Ze=ve.exports.useMemo(function(){var le=Se.reactReduxForwardedRef,Ne=Cc(Se,QH);return[Se.context,le,Ne]},[Se]),Ge=Ze[0],he=Ze[1],Fe=Ze[2],qe=ve.exports.useMemo(function(){return Ge&&Ge.Consumer&&M4.exports.isContextConsumer(dn.createElement(Ge.Consumer,null))?Ge:S},[Ge,S]),ze=ve.exports.useContext(qe),we=Boolean(Se.store)&&Boolean(Se.store.getState)&&Boolean(Se.store.dispatch);Boolean(ze)&&Boolean(ze.store);var ge=we?Se.store:ze.store,Ve=ve.exports.useMemo(function(){return L(ge)},[ge]),We=ve.exports.useMemo(function(){if(!d)return JH;var le=R4(ge,we?null:ze.subscription),Ne=le.notifyNestedSubs.bind(le);return[le,Ne]},[ge,we,ze]),Qe=We[0],rt=We[1],At=ve.exports.useMemo(function(){return we?ze:ar({},ze,{subscription:Qe})},[we,ze,Qe]),wt=ve.exports.useReducer(eV,ZH,nV),Ee=wt[0],Be=Ee[0],ht=wt[1];if(Be&&Be.error)throw Be.error;var _e=ve.exports.useRef(),j=ve.exports.useRef(Fe),te=ve.exports.useRef(),I=ve.exports.useRef(!1),T=X(function(){return te.current&&Fe===j.current?te.current:Ve(ge.getState(),Fe)},[ge,Be,Fe]);WI(tV,[j,_e,I,Fe,T,te,rt]),WI(rV,[d,ge,Qe,Ve,j,_e,I,te,rt,ht],[ge,Qe,Ve]);var P=ve.exports.useMemo(function(){return Mr(C,{...T,ref:he})},[he,C,T]),U=ve.exports.useMemo(function(){return d?Mr(qe.Provider,{value:At,children:P}):P},[qe,P,At]);return U}var ce=M?dn.memo(re):re;if(ce.WrappedComponent=C,ce.displayName=re.displayName=D,w){var xe=dn.forwardRef(function(Ze,Ge){return Mr(ce,{...Ze,reactReduxForwardedRef:Ge})});return xe.displayName=D,xe.WrappedComponent=C,jI(xe,C)}return jI(ce,C)}}function GI(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function t_(e,t){if(GI(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])||!GI(e[r[i]],t[r[i]]))return!1;return!0}function aV(e,t){var r={},n=function(o){var s=e[o];typeof s=="function"&&(r[o]=function(){return t(s.apply(void 0,arguments))})};for(var i in e)n(i);return r}function OC(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function qI(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function z4(e,t){return function(n,i){i.displayName;var a=function(s,u){return a.dependsOnOwnProps?a.mapToProps(s,u):a.mapToProps(s)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,u){a.mapToProps=e,a.dependsOnOwnProps=qI(e);var f=a(s,u);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=qI(f),f=a(s,u)),f},a}}function oV(e){return typeof e=="function"?z4(e):void 0}function sV(e){return e?void 0:OC(function(t){return{dispatch:t}})}function lV(e){return e&&typeof e=="object"?OC(function(t){return aV(e,t)}):void 0}const uV=[oV,sV,lV];function fV(e){return typeof e=="function"?z4(e):void 0}function cV(e){return e?void 0:OC(function(){return{}})}const dV=[fV,cV];function pV(e,t,r){return ar({},r,e,t)}function hV(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,s;return function(f,d,p){var h=e(f,d,p);return o?(!i||!a(h,s))&&(s=h):(o=!0,s=h),s}}}function vV(e){return typeof e=="function"?hV(e):void 0}function gV(e){return e?void 0:function(){return pV}}const mV=[vV,gV];var yV=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function bV(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function xV(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,s=i.areStatePropsEqual,u=!1,f,d,p,h,g;function w(A,C){return f=A,d=C,p=e(f,d),h=t(n,d),g=r(p,h,d),u=!0,g}function E(){return p=e(f,d),t.dependsOnOwnProps&&(h=t(n,d)),g=r(p,h,d),g}function y(){return e.dependsOnOwnProps&&(p=e(f,d)),t.dependsOnOwnProps&&(h=t(n,d)),g=r(p,h,d),g}function x(){var A=e(f,d),C=!s(A,p);return p=A,C&&(g=r(p,h,d)),g}function S(A,C){var k=!o(C,d),D=!a(A,f);return f=A,d=C,k&&D?E():k?y():D?x():g}return function(C,k){return u?S(C,k):w(C,k)}}function wV(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=Cc(t,yV),o=r(e,a),s=n(e,a),u=i(e,a),f=a.pure?xV:bV;return f(o,s,u,e,a)}var _V=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function r_(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 SV(e,t){return e===t}function EV(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?iV:r,i=t.mapStateToPropsFactories,a=i===void 0?dV:i,o=t.mapDispatchToPropsFactories,s=o===void 0?uV:o,u=t.mergePropsFactories,f=u===void 0?mV:u,d=t.selectorFactory,p=d===void 0?wV:d;return function(g,w,E,y){y===void 0&&(y={});var x=y,S=x.pure,A=S===void 0?!0:S,C=x.areStatesEqual,k=C===void 0?SV:C,D=x.areOwnPropsEqual,z=D===void 0?t_:D,M=x.areStatePropsEqual,L=M===void 0?t_:M,X=x.areMergedPropsEqual,re=X===void 0?t_:X,ce=Cc(x,_V),xe=r_(g,a,"mapStateToProps"),Se=r_(w,s,"mapDispatchToProps"),Ze=r_(E,f,"mergeProps");return n(p,ar({methodName:"connect",getDisplayName:function(he){return"Connect("+he+")"},shouldHandleStateChanges:Boolean(g),initMapStateToProps:xe,initMapDispatchToProps:Se,initMergeProps:Ze,pure:A,areStatesEqual:k,areOwnPropsEqual:z,areStatePropsEqual:L,areMergedPropsEqual:re},ce))}}const U4=EV();EH(Do.exports.unstable_batchedUpdates);function AV(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 j4(e,t){var r=ve.exports.useState(function(){return{inputs:t,result:e()}})[0],n=ve.exports.useRef(!0),i=ve.exports.useRef(r),a=n.current||Boolean(t&&i.current.inputs&&AV(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return ve.exports.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function CV(e,t){return j4(function(){return e},t)}var Ar=j4,Zt=CV,TV=!0,n_="Invariant failed";function RV(e,t){if(!e){if(TV)throw new Error(n_);var r=typeof t=="function"?t():t,n=r?n_+": "+r:n_;throw new Error(n)}}var Ca=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,s=i-r,u={top:r,right:n,bottom:i,left:a,width:o,height:s,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return u},IC=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},HI=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},OV=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},i_={top:0,right:0,bottom:0,left:0},PC=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?i_:n,a=t.border,o=a===void 0?i_:a,s=t.padding,u=s===void 0?i_:s,f=Ca(IC(r,i)),d=Ca(HI(r,o)),p=Ca(HI(d,u));return{marginBox:f,borderBox:Ca(r),paddingBox:d,contentBox:p,margin:i,border:o,padding:u}},Vi=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&RV(!1),i},IV=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Ey=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,s=OV(n,r);return PC({borderBox:s,border:i,margin:a,padding:o})},Ay=function(t,r){return r===void 0&&(r=IV()),Ey(t,r)},W4=function(t,r){var n={top:Vi(r.marginTop),right:Vi(r.marginRight),bottom:Vi(r.marginBottom),left:Vi(r.marginLeft)},i={top:Vi(r.paddingTop),right:Vi(r.paddingRight),bottom:Vi(r.paddingBottom),left:Vi(r.paddingLeft)},a={top:Vi(r.borderTopWidth),right:Vi(r.borderRightWidth),bottom:Vi(r.borderBottomWidth),left:Vi(r.borderLeftWidth)};return PC({borderBox:t,margin:n,padding:i,border:a})},G4=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return W4(r,n)},VI=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function PV(e,t){return!!(e===t||VI(e)&&VI(t))}function kV(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!PV(e[r],t[r]))return!1;return!0}function hn(e,t){t===void 0&&(t=kV);var r,n=[],i,a=!1;function o(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return a&&r===this&&t(s,n)||(i=e.apply(this,s),a=!0,r=this,n=s),i}return o}var DV=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];r=s,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){!n||(cancelAnimationFrame(n),n=null)},i};const iv=DV;function q4(e,t){}q4.bind(null,"warn");q4.bind(null,"error");function Xs(){}function MV(e,t){return ar({},e,{},t)}function ea(e,t,r){var n=t.map(function(i){var a=MV(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 NV="Invariant failed";function Cy(e){this.message=e}Cy.prototype.toString=function(){return this.message};function xt(e,t){if(!e)throw new Cy(NV)}var FV=function(e){Iv(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=Xs,n.onWindowError=function(s){var u=n.getCallbacks();u.isDragging()&&u.tryAbort();var f=s.error;f instanceof Cy&&s.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(s){n.callbacks=s},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=ea(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Cy){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(dn.Component),LV=`
842
+ Press space bar to start a drag.
843
+ When dragging you can use the arrow keys to move the item around and escape to cancel.
844
+ Some screen readers may require you to be in focus mode or to use your pass through key
845
+ `,Ty=function(t){return t+1},BV=function(t){return`
846
+ You have lifted an item in position `+Ty(t.source.index)+`
847
+ `},H4=function(t,r){var n=t.droppableId===r.droppableId,i=Ty(t.index),a=Ty(r.index);return n?`
848
+ You have moved the item from position `+i+`
849
+ to position `+a+`
850
+ `:`
851
+ You have moved the item from position `+i+`
852
+ in list `+t.droppableId+`
853
+ to list `+r.droppableId+`
854
+ in position `+a+`
855
+ `},V4=function(t,r,n){var i=r.droppableId===n.droppableId;return i?`
856
+ The item `+t+`
857
+ has been combined with `+n.draggableId:`
858
+ The item `+t+`
859
+ in list `+r.droppableId+`
860
+ has been combined with `+n.draggableId+`
861
+ in list `+n.droppableId+`
862
+ `},$V=function(t){var r=t.destination;if(r)return H4(t.source,r);var n=t.combine;return n?V4(t.draggableId,t.source,n):"You are over an area that cannot be dropped on"},YI=function(t){return`
863
+ The item has returned to its starting position
864
+ of `+Ty(t.index)+`
865
+ `},zV=function(t){if(t.reason==="CANCEL")return`
866
+ Movement cancelled.
867
+ `+YI(t.source)+`
868
+ `;var r=t.destination,n=t.combine;return r?`
869
+ You have dropped the item.
870
+ `+H4(t.source,r)+`
871
+ `:n?`
872
+ You have dropped the item.
873
+ `+V4(t.draggableId,t.source,n)+`
874
+ `:`
875
+ The item has been dropped while not over a drop area.
876
+ `+YI(t.source)+`
877
+ `},B0={dragHandleUsageInstructions:LV,onDragStart:BV,onDragUpdate:$V,onDragEnd:zV},zn={x:0,y:0},Qn=function(t,r){return{x:t.x+r.x,y:t.y+r.y}},Li=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},Ks=function(t,r){return t.x===r.x&&t.y===r.y},Jc=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Eu=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},av=function(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))},XI=function(t,r){return Math.min.apply(Math,r.map(function(n){return av(t,n)}))},Y4=function(t){return function(r){return{x:t(r.x),y:t(r.y)}}},UV=function(e,t){var r=Ca({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},Vv=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},KI=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},jV={top:0,right:0,bottom:0,left:0},WV=function(t,r){return r?Vv(t,r.scroll.diff.displacement):t},GV=function(t,r,n){if(n&&n.increasedBy){var i;return ar({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},qV=function(t,r){return r&&r.shouldClipSubject?UV(r.pageMarginBox,t):Ca(t)},Pc=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=WV(t.marginBox,i),o=GV(a,n,r),s=qV(o,i);return{page:t,withPlaceholder:r,active:s}},kC=function(e,t){e.frame||xt(!1);var r=e.frame,n=Li(t,r.scroll.initial),i=Jc(n),a=ar({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),o=Pc({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a}),s=ar({},e,{frame:a,subject:o});return s};function Ry(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function DC(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 hl(e,t){if(e.find)return e.find(t);var r=DC(e,t);if(r!==-1)return e[r]}function X4(e){return Array.prototype.slice.call(e)}var K4=hn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),Q4=hn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),ab=hn(function(e){return Ry(e)}),HV=hn(function(e){return Ry(e)}),ed=hn(function(e,t){var r=HV(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function MC(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function ob(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var sb=hn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),VV=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,a=e.previousImpact;if(!n.isCombineEnabled)return null;var o=MC(a);if(!o)return null;function s(E){var y={type:"COMBINE",combine:{draggableId:E,droppableId:n.descriptor.id}};return ar({},a,{at:y})}var u=a.displaced.all,f=u.length?u[0]:null;if(t)return f?s(f):null;var d=sb(r,i);if(!f){if(!d.length)return null;var p=d[d.length-1];return s(p.descriptor.id)}var h=DC(d,function(E){return E.descriptor.id===f});h===-1&&xt(!1);var g=h-1;if(g<0)return null;var w=d[g];return s(w.descriptor.id)},td=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Z4={point:zn,value:0},ov={invisible:{},visible:{},all:[]},YV={displaced:ov,displacedBy:Z4,at:null},ra=function(e,t){return function(r){return e<=r&&r<=t}},J4=function(e){var t=ra(e.top,e.bottom),r=ra(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);if(i)return!0;var a=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right),s=a&&o;if(s)return!0;var u=n.top<e.top&&n.bottom>e.bottom,f=n.left<e.left&&n.right>e.right,d=u&&f;if(d)return!0;var p=u&&o||f&&a;return p}},XV=function(e){var t=ra(e.top,e.bottom),r=ra(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);return i}},NC={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},eL={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},KV=function(e){return function(t){var r=ra(t.top,t.bottom),n=ra(t.left,t.right);return function(i){return e===NC?r(i.top)&&r(i.bottom):n(i.left)&&n(i.right)}}},QV=function(t,r){var n=r.frame?r.frame.scroll.diff.displacement:zn;return Vv(t,n)},ZV=function(t,r,n){return r.subject.active?n(r.subject.active)(t):!1},JV=function(t,r,n){return n(r)(t)},FC=function(t){var r=t.target,n=t.destination,i=t.viewport,a=t.withDroppableDisplacement,o=t.isVisibleThroughFrameFn,s=a?QV(r,n):r;return ZV(s,n,o)&&JV(s,i,o)},eY=function(t){return FC(ar({},t,{isVisibleThroughFrameFn:J4}))},tL=function(t){return FC(ar({},t,{isVisibleThroughFrameFn:XV}))},tY=function(t){return FC(ar({},t,{isVisibleThroughFrameFn:KV(t.destination.axis)}))},rY=function(t,r,n){if(typeof n=="boolean")return n;if(!r)return!0;var i=r.invisible,a=r.visible;if(i[t])return!1;var o=a[t];return o?o.shouldAnimate:!0};function nY(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ca(IC(r,n))}function sv(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,o=e.last;return t.reduce(function(u,f){var d=nY(f,n),p=f.descriptor.id;u.all.push(p);var h=eY({target:d,destination:r,viewport:i,withDroppableDisplacement:!0});if(!h)return u.invisible[f.descriptor.id]=!0,u;var g=rY(p,o,a),w={draggableId:p,shouldAnimate:g};return u.visible[p]=w,u},{all:[],visible:{},invisible:{}})}function iY(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function QI(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,a=iY(t,{inHomeList:r});return{displaced:ov,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function Oy(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,a=e.displacedBy,o=e.last,s=e.index,u=e.forceShouldAnimate,f=td(t,n);if(s==null)return QI({insideDestination:r,inHomeList:f,displacedBy:a,destination:n});var d=hl(r,function(E){return E.descriptor.index===s});if(!d)return QI({insideDestination:r,inHomeList:f,displacedBy:a,destination:n});var p=sb(t,r),h=r.indexOf(d),g=p.slice(h),w=sv({afterDragging:g,destination:n,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:u});return{displaced:w,displacedBy:a,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:s}}}}function sl(e,t){return Boolean(t.effected[e])}var aY=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,a=e.afterCritical;if(!r.isCombineEnabled)return null;var o=i.draggableId,s=n[o],u=s.descriptor.index,f=sl(o,a);return f?t?u:u-1:t?u+1:u},oY=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var a=i.index,o=t?a+1:a-1,s=n[0].descriptor.index,u=n[n.length-1].descriptor.index,f=r?u:u+1;return o<s||o>f?null:o},sY=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,a=e.destination,o=e.insideDestination,s=e.previousImpact,u=e.viewport,f=e.afterCritical,d=s.at;if(d||xt(!1),d.type==="REORDER"){var p=oY({isMovingForward:t,isInHomeList:r,location:d.destination,insideDestination:o});return p==null?null:Oy({draggable:n,insideDestination:o,destination:a,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:p})}var h=aY({isMovingForward:t,destination:a,displaced:s.displaced,draggables:i,combine:d.combine,afterCritical:f});return h==null?null:Oy({draggable:n,insideDestination:o,destination:a,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:h})},lY=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,a=Boolean(t.visible[n]||t.invisible[n]);return sl(n,r)?a?zn:Jc(i.point):a?i.point:zn},uY=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=ob(r);i||xt(!1);var a=i.draggableId,o=n[a].page.borderBox.center,s=lY({displaced:r.displaced,afterCritical:t,combineWith:a,displacedBy:r.displacedBy});return Qn(o,s)},rL=function(t,r){return r.margin[t.start]+r.borderBox[t.size]/2},fY=function(t,r){return r.margin[t.end]+r.borderBox[t.size]/2},LC=function(t,r,n){return r[t.crossAxisStart]+n.margin[t.crossAxisStart]+n.borderBox[t.crossAxisSize]/2},ZI=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Eu(r.line,n.marginBox[r.end]+rL(r,i),LC(r,n.marginBox,i))},JI=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Eu(r.line,n.marginBox[r.start]-fY(r,i),LC(r,n.marginBox,i))},cY=function(t){var r=t.axis,n=t.moveInto,i=t.isMoving;return Eu(r.line,n.contentBox[r.start]+rL(r,i),LC(r,n.contentBox,i))},dY=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,a=e.afterCritical,o=ed(i.descriptor.id,n),s=r.page,u=i.axis;if(!o.length)return cY({axis:u,moveInto:i.page,isMoving:s});var f=t.displaced,d=t.displacedBy,p=f.all[0];if(p){var h=n[p];if(sl(p,a))return JI({axis:u,moveRelativeTo:h.page,isMoving:s});var g=Ey(h.page,d.point);return JI({axis:u,moveRelativeTo:g,isMoving:s})}var w=o[o.length-1];if(w.descriptor.id===r.descriptor.id)return s.borderBox.center;if(sl(w.descriptor.id,a)){var E=Ey(w.page,Jc(a.displacedBy.point));return ZI({axis:u,moveRelativeTo:E,isMoving:s})}return ZI({axis:u,moveRelativeTo:w.page,isMoving:s})},oE=function(e,t){var r=e.frame;return r?Qn(t,r.scroll.diff.displacement):t},pY=function(t){var r=t.impact,n=t.draggable,i=t.droppable,a=t.draggables,o=t.afterCritical,s=n.page.borderBox.center,u=r.at;return!i||!u?s:u.type==="REORDER"?dY({impact:r,draggable:n,draggables:a,droppable:i,afterCritical:o}):uY({impact:r,draggables:a,afterCritical:o})},lb=function(e){var t=pY(e),r=e.droppable,n=r?oE(r,t):t;return n},nL=function(e,t){var r=Li(t,e.scroll.initial),n=Jc(r),i=Ca({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),a={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}};return a};function e5(e,t){return e.map(function(r){return t[r]})}function hY(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}var vY=function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,o=nL(r,Qn(r.scroll.current,a)),s=n.frame?kC(n,Qn(n.frame.scroll.current,a)):n,u=t.displaced,f=sv({afterDragging:e5(u.all,i),destination:n,displacedBy:t.displacedBy,viewport:o.frame,last:u,forceShouldAnimate:!1}),d=sv({afterDragging:e5(u.all,i),destination:s,displacedBy:t.displacedBy,viewport:r.frame,last:u,forceShouldAnimate:!1}),p={},h={},g=[u,f,d];u.all.forEach(function(E){var y=hY(E,g);if(y){h[E]=y;return}p[E]=!0});var w=ar({},t,{displaced:{all:u.all,invisible:p,visible:h}});return w},gY=function(e,t){return Qn(e.scroll.diff.displacement,t)},BC=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=e.viewport,i=gY(n,t),a=Li(i,r.page.borderBox.center);return Qn(r.client.borderBox.center,a)},iL=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,o=e.onlyOnMainAxis,s=o===void 0?!1:o,u=Li(n,t.page.borderBox.center),f=Vv(t.page.borderBox,u),d={target:f,destination:r,withDroppableDisplacement:a,viewport:i};return s?tY(d):tL(d)},mY=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,a=e.previousImpact,o=e.viewport,s=e.previousPageBorderBoxCenter,u=e.previousClientSelection,f=e.afterCritical;if(!n.isEnabled)return null;var d=ed(n.descriptor.id,i),p=td(r,n),h=VV({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:a})||sY({isMovingForward:t,isInHomeList:p,draggable:r,draggables:i,destination:n,insideDestination:d,previousImpact:a,viewport:o,afterCritical:f});if(!h)return null;var g=lb({impact:h,draggable:r,droppable:n,draggables:i,afterCritical:f}),w=iL({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(w){var E=BC({pageBorderBoxCenter:g,draggable:r,viewport:o});return{clientSelection:E,impact:h,scrollJumpRequest:null}}var y=Li(g,s),x=vY({impact:h,viewport:o,destination:n,draggables:i,maxScrollChange:y});return{clientSelection:u,impact:x,scrollJumpRequest:y}},fi=function(t){var r=t.subject.active;return r||xt(!1),r},yY=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,a=e.viewport,o=n.subject.active;if(!o)return null;var s=n.axis,u=ra(o[s.start],o[s.end]),f=ab(i).filter(function(p){return p!==n}).filter(function(p){return p.isEnabled}).filter(function(p){return Boolean(p.subject.active)}).filter(function(p){return J4(a.frame)(fi(p))}).filter(function(p){var h=fi(p);return t?o[s.crossAxisEnd]<h[s.crossAxisEnd]:h[s.crossAxisStart]<o[s.crossAxisStart]}).filter(function(p){var h=fi(p),g=ra(h[s.start],h[s.end]);return u(h[s.start])||u(h[s.end])||g(o[s.start])||g(o[s.end])}).sort(function(p,h){var g=fi(p)[s.crossAxisStart],w=fi(h)[s.crossAxisStart];return t?g-w:w-g}).filter(function(p,h,g){return fi(p)[s.crossAxisStart]===fi(g[0])[s.crossAxisStart]});if(!f.length)return null;if(f.length===1)return f[0];var d=f.filter(function(p){var h=ra(fi(p)[s.start],fi(p)[s.end]);return h(r[s.line])});return d.length===1?d[0]:d.length>1?d.sort(function(p,h){return fi(p)[s.start]-fi(h)[s.start]})[0]:f.sort(function(p,h){var g=XI(r,KI(fi(p))),w=XI(r,KI(fi(h)));return g!==w?g-w:fi(p)[s.start]-fi(h)[s.start]})[0]},t5=function(t,r){var n=t.page.borderBox.center;return sl(t.descriptor.id,r)?Li(n,r.displacedBy.point):n},bY=function(t,r){var n=t.page.borderBox;return sl(t.descriptor.id,r)?Vv(n,Jc(r.displacedBy.point)):n},xY=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,a=e.afterCritical,o=i.filter(function(s){return tL({target:bY(s,a),destination:n,viewport:r.frame,withDroppableDisplacement:!0})}).sort(function(s,u){var f=av(t,oE(n,t5(s,a))),d=av(t,oE(n,t5(u,a)));return f<d?-1:d<f?1:s.descriptor.index-u.descriptor.index});return o[0]||null},Yv=hn(function(t,r){var n=r[t.line];return{value:n,point:Eu(t.line,n)}}),wY=function(t,r,n){var i=t.axis;if(t.descriptor.mode==="virtual")return Eu(i.line,r[i.line]);var a=t.subject.page.contentBox[i.size],o=ed(t.descriptor.id,n),s=o.reduce(function(d,p){return d+p.client.marginBox[i.size]},0),u=s+r[i.line],f=u-a;return f<=0?null:Eu(i.line,f)},aL=function(t,r){return ar({},t,{scroll:ar({},t.scroll,{max:r})})},oL=function(t,r,n){var i=t.frame;td(r,t)&&xt(!1),t.subject.withPlaceholder&&xt(!1);var a=Yv(t.axis,r.displaceBy).point,o=wY(t,a,n),s={placeholderSize:a,increasedBy:o,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var u=Pc({page:t.subject.page,withPlaceholder:s,axis:t.axis,frame:t.frame});return ar({},t,{subject:u})}var f=o?Qn(i.scroll.max,o):i.scroll.max,d=aL(i,f),p=Pc({page:t.subject.page,withPlaceholder:s,axis:t.axis,frame:d});return ar({},t,{subject:p,frame:d})},_Y=function(t){var r=t.subject.withPlaceholder;r||xt(!1);var n=t.frame;if(!n){var i=Pc({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return ar({},t,{subject:i})}var a=r.oldFrameMaxScroll;a||xt(!1);var o=aL(n,a),s=Pc({page:t.subject.page,axis:t.axis,frame:o,withPlaceholder:null});return ar({},t,{subject:s,frame:o})},SY=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,a=e.draggables,o=e.destination,s=e.viewport,u=e.afterCritical;if(!r){if(n.length)return null;var f={displaced:ov,displacedBy:Z4,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},d=lb({impact:f,draggable:i,droppable:o,draggables:a,afterCritical:u}),p=td(i,o)?o:oL(o,i,a),h=iL({draggable:i,destination:p,newPageBorderBoxCenter:d,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return h?f:null}var g=Boolean(t[o.axis.line]<=r.page.borderBox.center[o.axis.line]),w=function(){var y=r.descriptor.index;return r.descriptor.id===i.descriptor.id||g?y:y+1}(),E=Yv(o.axis,i.displaceBy);return Oy({draggable:i,insideDestination:n,destination:o,viewport:s,displacedBy:E,last:ov,index:w})},EY=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,a=e.draggables,o=e.droppables,s=e.viewport,u=e.afterCritical,f=yY({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:o,viewport:s});if(!f)return null;var d=ed(f.descriptor.id,a),p=xY({pageBorderBoxCenter:r,viewport:s,destination:f,insideDestination:d,afterCritical:u}),h=SY({previousPageBorderBoxCenter:r,destination:f,draggable:n,draggables:a,moveRelativeTo:p,insideDestination:d,viewport:s,afterCritical:u});if(!h)return null;var g=lb({impact:h,draggable:n,droppable:f,draggables:a,afterCritical:u}),w=BC({pageBorderBoxCenter:g,draggable:n,viewport:s});return{clientSelection:w,impact:h,scrollJumpRequest:null}},$i=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},AY=function(t,r){var n=$i(t);return n?r[n]:null},CY=function(e){var t=e.state,r=e.type,n=AY(t.impact,t.dimensions.droppables),i=Boolean(n),a=t.dimensions.droppables[t.critical.droppable.id],o=n||a,s=o.axis.direction,u=s==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||s==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(u&&!i)return null;var f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",d=t.dimensions.draggables[t.critical.draggable.id],p=t.current.page.borderBoxCenter,h=t.dimensions,g=h.draggables,w=h.droppables;return u?mY({isMovingForward:f,previousPageBorderBoxCenter:p,draggable:d,destination:o,draggables:g,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):EY({isMovingForward:f,previousPageBorderBoxCenter:p,draggable:d,isOver:o,draggables:g,droppables:w,viewport:t.viewport,afterCritical:t.afterCritical})};function Jl(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function sL(e){var t=ra(e.top,e.bottom),r=ra(e.left,e.right);return function(i){return t(i.y)&&r(i.x)}}function TY(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function RY(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,a=n.map(function(o){var s=o.axis,u=Eu(o.axis.line,t.center[s.line],o.page.borderBox.center[s.crossAxisLine]);return{id:o.descriptor.id,distance:av(i,u)}}).sort(function(o,s){return s.distance-o.distance});return a[0]?a[0].id:null}function OY(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=ab(n).filter(function(a){if(!a.isEnabled)return!1;var o=a.subject.active;if(!o||!TY(t,o))return!1;if(sL(o)(t.center))return!0;var s=a.axis,u=o.center[s.crossAxisLine],f=t[s.crossAxisStart],d=t[s.crossAxisEnd],p=ra(o[s.crossAxisStart],o[s.crossAxisEnd]),h=p(f),g=p(d);return!h&&!g?!0:h?f<u:d>u});return i.length?i.length===1?i[0].descriptor.id:RY({pageBorderBox:t,draggable:r,candidates:i}):null}var lL=function(t,r){return Ca(Vv(t,r))},IY=function(e,t){var r=e.frame;return r?lL(t,r.scroll.diff.value):t};function uL(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}function PY(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var kY=function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,a=e.last,o=e.viewport,s=e.afterCritical,u=n.axis,f=Yv(n.axis,r.displaceBy),d=f.value,p=t[u.start],h=t[u.end],g=sb(r,i),w=hl(g,function(y){var x=y.descriptor.id,S=y.page.borderBox.center[u.line],A=sl(x,s),C=uL({displaced:a,id:x});return A?C?h<=S:p<S-d:C?h<=S+d:p<S}),E=PY({draggable:r,closest:w,inHomeList:td(r,n)});return Oy({draggable:r,insideDestination:i,destination:n,viewport:o,last:a,displacedBy:f,index:E})},DY=4,MY=function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,a=e.insideDestination,o=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,u=Yv(i.axis,t.displaceBy),f=u.value,d=r[s.start],p=r[s.end],h=sb(t,a),g=hl(h,function(E){var y=E.descriptor.id,x=E.page.borderBox,S=x[s.size],A=S/DY,C=sl(y,o),k=uL({displaced:n.displaced,id:y});return C?k?p>x[s.start]+A&&p<x[s.end]-A:d>x[s.start]-f+A&&d<x[s.end]-f-A:k?p>x[s.start]+f+A&&p<x[s.end]+f-A:d>x[s.start]+A&&d<x[s.end]-A});if(!g)return null;var w={displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:g.descriptor.id,droppableId:i.descriptor.id}}};return w},fL=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,a=e.previousImpact,o=e.viewport,s=e.afterCritical,u=lL(r.page.borderBox,t),f=OY({pageBorderBox:u,draggable:r,droppables:i});if(!f)return YV;var d=i[f],p=ed(d.descriptor.id,n),h=IY(d,u);return MY({pageBorderBoxWithDroppableScroll:h,draggable:r,previousImpact:a,destination:d,insideDestination:p,afterCritical:s})||kY({pageBorderBoxWithDroppableScroll:h,draggable:r,destination:d,insideDestination:p,last:a.displaced,viewport:o,afterCritical:s})},$C=function(e,t){var r;return ar({},e,(r={},r[t.descriptor.id]=t,r))},NY=function(t){var r=t.previousImpact,n=t.impact,i=t.droppables,a=$i(r),o=$i(n);if(!a||a===o)return i;var s=i[a];if(!s.subject.withPlaceholder)return i;var u=_Y(s);return $C(i,u)},FY=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,a=e.impact,o=NY({previousImpact:i,impact:a,droppables:n}),s=$i(a);if(!s)return o;var u=n[s];if(td(t,u)||u.subject.withPlaceholder)return o;var f=oL(u,t,r);return $C(o,f)},Ch=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,a=e.impact,o=e.scrollJumpRequest,s=i||t.viewport,u=n||t.dimensions,f=r||t.current.client.selection,d=Li(f,t.initial.client.selection),p={offset:d,selection:f,borderBoxCenter:Qn(t.initial.client.borderBoxCenter,d)},h={selection:Qn(p.selection,s.scroll.current),borderBoxCenter:Qn(p.borderBoxCenter,s.scroll.current),offset:Qn(p.offset,s.scroll.diff.value)},g={client:p,page:h};if(t.phase==="COLLECTING")return ar({phase:"COLLECTING"},t,{dimensions:u,viewport:s,current:g});var w=u.draggables[t.critical.draggable.id],E=a||fL({pageOffset:h.offset,draggable:w,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),y=FY({draggable:w,impact:E,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables}),x=ar({},t,{current:g,dimensions:{draggables:u.draggables,droppables:y},impact:E,viewport:s,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null});return x};function LY(e,t){return e.map(function(r){return t[r]})}var cL=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,o=t.displaced,s=LY(o.all,n),u=sv({afterDragging:s,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:a,last:o});return ar({},t,{displaced:u})},dL=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,s=lb({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o});return BC({pageBorderBoxCenter:s,draggable:r,viewport:a})},pL=function(e){var t=e.state,r=e.dimensions,n=e.viewport;t.movementMode!=="SNAP"&&xt(!1);var i=t.impact,a=n||t.viewport,o=r||t.dimensions,s=o.draggables,u=o.droppables,f=s[t.critical.draggable.id],d=$i(i);d||xt(!1);var p=u[d],h=cL({impact:i,viewport:a,destination:p,draggables:s}),g=dL({impact:h,draggable:f,droppable:p,draggables:s,viewport:a,afterCritical:t.afterCritical});return Ch({impact:h,clientSelection:g,state:t,dimensions:o,viewport:a})},BY=function(e){return{index:e.index,droppableId:e.droppableId}},hL=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,a=Yv(r.axis,t.displaceBy),o=ed(r.descriptor.id,n),s=o.indexOf(t);s===-1&&xt(!1);var u=o.slice(s+1),f=u.reduce(function(g,w){return g[w.descriptor.id]=!0,g},{}),d={inVirtualList:r.descriptor.mode==="virtual",displacedBy:a,effected:f},p=sv({afterDragging:u,destination:r,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),h={displaced:p,displacedBy:a,at:{type:"REORDER",destination:BY(t.descriptor)}};return{impact:h,afterCritical:d}},$Y=function(e,t){return{draggables:e.draggables,droppables:$C(e.droppables,t)}},zY=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=Ey(t.client,r),a=Ay(i,n),o=ar({},t,{placeholder:ar({},t.placeholder,{client:i}),client:i,page:a});return o},UY=function(e){var t=e.frame;return t||xt(!1),t},jY=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map(function(a){var o=a.descriptor.droppableId,s=r[o],u=UY(s),f=u.scroll.diff.value,d=Qn(i,f),p=zY({draggable:a,offset:d,initialWindowScroll:n.scroll.initial});return p})},WY=function(e){var t=e.state,r=e.published,n=r.modified.map(function(A){var C=t.dimensions.droppables[A.droppableId],k=kC(C,A.scroll);return k}),i=ar({},t.dimensions.droppables,{},K4(n)),a=Q4(jY({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),o=ar({},t.dimensions.draggables,{},a);r.removals.forEach(function(A){delete o[A]});var s={droppables:i,draggables:o},u=$i(t.impact),f=u?s.droppables[u]:null,d=s.draggables[t.critical.draggable.id],p=s.droppables[t.critical.droppable.id],h=hL({draggable:d,home:p,draggables:o,viewport:t.viewport}),g=h.impact,w=h.afterCritical,E=f&&f.isCombineEnabled?t.impact:g,y=fL({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:E,viewport:t.viewport,afterCritical:w}),x=ar({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:y,onLiftImpact:g,dimensions:s,afterCritical:w,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return x;var S=ar({phase:"DROP_PENDING"},x,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return S},sE=function(t){return t.movementMode==="SNAP"},a_=function(t,r,n){var i=$Y(t.dimensions,r);return!sE(t)||n?Ch({state:t,dimensions:i}):pL({state:t,dimensions:i})};function o_(e){return e.isDragging&&e.movementMode==="SNAP"?ar({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var r5={phase:"IDLE",completed:null,shouldFlush:!1},GY=function(e,t){if(e===void 0&&(e=r5),t.type==="FLUSH")return ar({},r5,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&xt(!1);var r=t.payload,n=r.critical,i=r.clientSelection,a=r.viewport,o=r.dimensions,s=r.movementMode,u=o.draggables[n.draggable.id],f=o.droppables[n.droppable.id],d={selection:i,borderBoxCenter:u.client.borderBox.center,offset:zn},p={client:d,page:{selection:Qn(d.selection,a.scroll.initial),borderBoxCenter:Qn(d.selection,a.scroll.initial),offset:Qn(d.selection,a.scroll.diff.value)}},h=ab(o.droppables).every(function(ht){return!ht.isFixedOnPage}),g=hL({draggable:u,home:f,draggables:o.draggables,viewport:a}),w=g.impact,E=g.afterCritical,y={phase:"DRAGGING",isDragging:!0,critical:n,movementMode:s,dimensions:o,initial:p,current:p,isWindowScrollAllowed:h,impact:w,afterCritical:E,onLiftImpact:w,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null};return y}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&xt(!1);var x=ar({phase:"COLLECTING"},e,{phase:"COLLECTING"});return x}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||xt(!1),WY({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Jl(e)||xt(!1);var S=t.payload.client;return Ks(S,e.current.client.selection)?e:Ch({state:e,clientSelection:S,impact:sE(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return o_(e);Jl(e)||xt(!1);var A=t.payload,C=A.id,k=A.newScroll,D=e.dimensions.droppables[C];if(!D)return e;var z=kC(D,k);return a_(e,z,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Jl(e)||xt(!1);var M=t.payload,L=M.id,X=M.isEnabled,re=e.dimensions.droppables[L];re||xt(!1),re.isEnabled===X&&xt(!1);var ce=ar({},re,{isEnabled:X});return a_(e,ce,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Jl(e)||xt(!1);var xe=t.payload,Se=xe.id,Ze=xe.isCombineEnabled,Ge=e.dimensions.droppables[Se];Ge||xt(!1),Ge.isCombineEnabled===Ze&&xt(!1);var he=ar({},Ge,{isCombineEnabled:Ze});return a_(e,he,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Jl(e)||xt(!1),e.isWindowScrollAllowed||xt(!1);var Fe=t.payload.newScroll;if(Ks(e.viewport.scroll.current,Fe))return o_(e);var qe=nL(e.viewport,Fe);return sE(e)?pL({state:e,viewport:qe}):Ch({state:e,viewport:qe})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Jl(e))return e;var ze=t.payload.maxScroll;if(Ks(ze,e.viewport.scroll.max))return e;var we=ar({},e.viewport,{scroll:ar({},e.viewport.scroll,{max:ze})});return ar({phase:"DRAGGING"},e,{viewport:we})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&xt(!1);var ge=CY({state:e,type:t.type});return ge?Ch({state:e,impact:ge.impact,clientSelection:ge.clientSelection,scrollJumpRequest:ge.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var Ve=t.payload.reason;e.phase!=="COLLECTING"&&xt(!1);var We=ar({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:Ve});return We}if(t.type==="DROP_ANIMATE"){var Qe=t.payload,rt=Qe.completed,At=Qe.dropDuration,wt=Qe.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||xt(!1);var Ee={phase:"DROP_ANIMATING",completed:rt,dropDuration:At,newHomeClientOffset:wt,dimensions:e.dimensions};return Ee}if(t.type==="DROP_COMPLETE"){var Be=t.payload.completed;return{phase:"IDLE",completed:Be,shouldFlush:!1}}return e},qY=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},HY=function(t){return{type:"LIFT",payload:t}},VY=function(t){return{type:"INITIAL_PUBLISH",payload:t}},YY=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},XY=function(){return{type:"COLLECTION_STARTING",payload:null}},KY=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},QY=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},ZY=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},vL=function(t){return{type:"MOVE",payload:t}},JY=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},eX=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},tX=function(){return{type:"MOVE_UP",payload:null}},rX=function(){return{type:"MOVE_DOWN",payload:null}},nX=function(){return{type:"MOVE_RIGHT",payload:null}},iX=function(){return{type:"MOVE_LEFT",payload:null}},zC=function(){return{type:"FLUSH",payload:null}},aX=function(t){return{type:"DROP_ANIMATE",payload:t}},UC=function(t){return{type:"DROP_COMPLETE",payload:t}},gL=function(t){return{type:"DROP",payload:t}},oX=function(t){return{type:"DROP_PENDING",payload:t}},mL=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},sX=function(e){return function(t){var r=t.getState,n=t.dispatch;return function(i){return function(a){if(a.type!=="LIFT"){i(a);return}var o=a.payload,s=o.id,u=o.clientSelection,f=o.movementMode,d=r();d.phase==="DROP_ANIMATING"&&n(UC({completed:d.completed})),r().phase!=="IDLE"&&xt(!1),n(zC()),n(qY({draggableId:s,movementMode:f}));var p={shouldPublishImmediately:f==="SNAP"},h={draggableId:s,scrollOptions:p},g=e.startPublishing(h),w=g.critical,E=g.dimensions,y=g.viewport;n(VY({critical:w,dimensions:E,clientSelection:u,movementMode:f,viewport:y}))}}}},lX=function(e){return function(){return function(t){return function(r){r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)}}}},jC={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},lv={opacity:{drop:0,combining:.7},scale:{drop:.75}},WC={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},ql=WC.outOfTheWay+"s "+jC.outOfTheWay,Th={fluid:"opacity "+ql,snap:"transform "+ql+", opacity "+ql,drop:function(t){var r=t+"s "+jC.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+ql,placeholder:"height "+ql+", width "+ql+", margin "+ql},n5=function(t){return Ks(t,zn)?null:"translate("+t.x+"px, "+t.y+"px)"},lE={moveTo:n5,drop:function(t,r){var n=n5(t);return n?r?n+" scale("+lv.scale.drop+")":n:null}},uE=WC.minDropTime,yL=WC.maxDropTime,uX=yL-uE,i5=1500,fX=.6,cX=function(e){var t=e.current,r=e.destination,n=e.reason,i=av(t,r);if(i<=0)return uE;if(i>=i5)return yL;var a=i/i5,o=uE+uX*a,s=n==="CANCEL"?o*fX:o;return Number(s.toFixed(2))},dX=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,a=e.afterCritical,o=n.draggables,s=n.droppables,u=$i(t),f=u?s[u]:null,d=s[r.descriptor.droppableId],p=dL({impact:t,draggable:r,draggables:o,afterCritical:a,droppable:f||d,viewport:i}),h=Li(p,r.client.borderBox.center);return h},pX=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,a=e.viewport,o=e.onLiftImpact;if(!n.at||r!=="DROP"){var s=cL({draggables:t,impact:o,destination:i,viewport:a,forceShouldAnimate:!0});return{impact:s,didDropInsideDroppable:!1}}if(n.at.type==="REORDER")return{impact:n,didDropInsideDroppable:!0};var u=ar({},n,{displaced:ov});return{impact:u,didDropInsideDroppable:!0}},hX=function(e){var t=e.getState,r=e.dispatch;return function(n){return function(i){if(i.type!=="DROP"){n(i);return}var a=t(),o=i.payload.reason;if(a.phase==="COLLECTING"){r(oX({reason:o}));return}if(a.phase!=="IDLE"){var s=a.phase==="DROP_PENDING"&&a.isWaiting;s&&xt(!1),a.phase==="DRAGGING"||a.phase==="DROP_PENDING"||xt(!1);var u=a.critical,f=a.dimensions,d=f.draggables[a.critical.draggable.id],p=pX({reason:o,lastImpact:a.impact,afterCritical:a.afterCritical,onLiftImpact:a.onLiftImpact,home:a.dimensions.droppables[a.critical.droppable.id],viewport:a.viewport,draggables:a.dimensions.draggables}),h=p.impact,g=p.didDropInsideDroppable,w=g?MC(h):null,E=g?ob(h):null,y={index:u.draggable.index,droppableId:u.droppable.id},x={draggableId:d.descriptor.id,type:d.descriptor.type,source:y,reason:o,mode:a.movementMode,destination:w,combine:E},S=dX({impact:h,draggable:d,dimensions:f,viewport:a.viewport,afterCritical:a.afterCritical}),A={critical:a.critical,afterCritical:a.afterCritical,result:x,impact:h},C=!Ks(a.current.client.offset,S)||Boolean(x.combine);if(!C){r(UC({completed:A}));return}var k=cX({current:a.current.client.offset,destination:S,reason:o}),D={newHomeClientOffset:S,dropDuration:k,completed:A};r(aX(D))}}}},bL=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function vX(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}function gX(e){var t=e.onWindowScroll;function r(){t(bL())}var n=iv(r),i=vX(n),a=Xs;function o(){return a!==Xs}function s(){o()&&xt(!1),a=ea(window,[i])}function u(){o()||xt(!1),n.cancel(),a(),a=Xs}return{start:s,stop:u,isActive:o}}var mX=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},yX=function(e){var t=gX({onWindowScroll:function(n){e.dispatch(JY({newScroll:n}))}});return function(r){return function(n){!t.isActive()&&n.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&mX(n)&&t.stop(),r(n)}}},bX=function(e){var t=!1,r=!1,n=setTimeout(function(){r=!0}),i=function(o){t||r||(t=!0,e(o),clearTimeout(n))};return i.wasCalled=function(){return t},i},xX=function(){var e=[],t=function(a){var o=DC(e,function(f){return f.timerId===a});o===-1&&xt(!1);var s=e.splice(o,1),u=s[0];u.callback()},r=function(a){var o=setTimeout(function(){return t(o)}),s={timerId:o,callback:a};e.push(s)},n=function(){if(!!e.length){var a=[].concat(e);e.length=0,a.forEach(function(o){clearTimeout(o.timerId),o.callback()})}};return{add:r,flush:n}},wX=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.droppableId===r.droppableId&&t.index===r.index},_X=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.draggableId===r.draggableId&&t.droppableId===r.droppableId},SX=function(t,r){if(t===r)return!0;var n=t.draggable.id===r.draggable.id&&t.draggable.droppableId===r.draggable.droppableId&&t.draggable.type===r.draggable.type&&t.draggable.index===r.draggable.index,i=t.droppable.id===r.droppable.id&&t.droppable.type===r.droppable.type;return n&&i},Dp=function(t,r){r()},Wm=function(t,r){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:r}},s_=function(t,r,n,i){if(!t){n(i(r));return}var a=bX(n),o={announce:a};t(r,o),a.wasCalled()||n(i(r))},EX=function(e,t){var r=xX(),n=null,i=function(h,g){n&&xt(!1),Dp("onBeforeCapture",function(){var w=e().onBeforeCapture;if(w){var E={draggableId:h,mode:g};w(E)}})},a=function(h,g){n&&xt(!1),Dp("onBeforeDragStart",function(){var w=e().onBeforeDragStart;w&&w(Wm(h,g))})},o=function(h,g){n&&xt(!1);var w=Wm(h,g);n={mode:g,lastCritical:h,lastLocation:w.source,lastCombine:null},r.add(function(){Dp("onDragStart",function(){return s_(e().onDragStart,w,t,B0.onDragStart)})})},s=function(h,g){var w=MC(g),E=ob(g);n||xt(!1);var y=!SX(h,n.lastCritical);y&&(n.lastCritical=h);var x=!wX(n.lastLocation,w);x&&(n.lastLocation=w);var S=!_X(n.lastCombine,E);if(S&&(n.lastCombine=E),!(!y&&!x&&!S)){var A=ar({},Wm(h,n.mode),{combine:E,destination:w});r.add(function(){Dp("onDragUpdate",function(){return s_(e().onDragUpdate,A,t,B0.onDragUpdate)})})}},u=function(){n||xt(!1),r.flush()},f=function(h){n||xt(!1),n=null,Dp("onDragEnd",function(){return s_(e().onDragEnd,h,t,B0.onDragEnd)})},d=function(){if(!!n){var h=ar({},Wm(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});f(h)}};return{beforeCapture:i,beforeStart:a,start:o,update:s,flush:u,drop:f,abort:d}},AX=function(e,t){var r=EX(e,t);return function(n){return function(i){return function(a){if(a.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(a.type==="INITIAL_PUBLISH"){var o=a.payload.critical;r.beforeStart(o,a.payload.movementMode),i(a),r.start(o,a.payload.movementMode);return}if(a.type==="DROP_COMPLETE"){var s=a.payload.completed.result;r.flush(),i(a),r.drop(s);return}if(i(a),a.type==="FLUSH"){r.abort();return}var u=n.getState();u.phase==="DRAGGING"&&r.update(u.critical,u.impact)}}}},CX=function(e){return function(t){return function(r){if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}var n=e.getState();n.phase!=="DROP_ANIMATING"&&xt(!1),e.dispatch(UC({completed:n.completed}))}}},TX=function(e){var t=null,r=null;function n(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return function(i){return function(a){if((a.type==="FLUSH"||a.type==="DROP_COMPLETE"||a.type==="DROP_ANIMATION_FINISHED")&&n(),i(a),a.type==="DROP_ANIMATE"){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var u=e.getState();u.phase==="DROP_ANIMATING"&&e.dispatch(mL())}};r=requestAnimationFrame(function(){r=null,t=ea(window,[o])})}}}},RX=function(e){return function(){return function(t){return function(r){(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)}}}},OX=function(e){var t=!1;return function(){return function(r){return function(n){if(n.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),!!t){if(n.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(n.type==="DROP_COMPLETE"){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},IX=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},PX=function(e){return function(t){return function(r){return function(n){if(IX(n)){e.stop(),r(n);return}if(n.type==="INITIAL_PUBLISH"){r(n);var i=t.getState();i.phase!=="DRAGGING"&&xt(!1),e.start(i);return}r(n),e.scroll(t.getState())}}}},kX=function(e){return function(t){return function(r){if(t(r),r.type==="PUBLISH_WHILE_DRAGGING"){var n=e.getState();n.phase==="DROP_PENDING"&&(n.isWaiting||e.dispatch(gL({reason:n.reason})))}}}},DX=A4,MX=function(e){var t=e.dimensionMarshal,r=e.focusMarshal,n=e.styleMarshal,i=e.getResponders,a=e.announce,o=e.autoScroller;return E4(GY,DX(_H(lX(n),RX(t),sX(t),hX,CX,TX,kX,PX(o),yX,OX(r),AX(i,a))))},l_=function(){return{additions:{},removals:{},modified:{}}};function NX(e){var t=e.registry,r=e.callbacks,n=l_(),i=null,a=function(){i||(r.collectionStarting(),i=requestAnimationFrame(function(){i=null;var d=n,p=d.additions,h=d.removals,g=d.modified,w=Object.keys(p).map(function(x){return t.draggable.getById(x).getDimension(zn)}).sort(function(x,S){return x.descriptor.index-S.descriptor.index}),E=Object.keys(g).map(function(x){var S=t.droppable.getById(x),A=S.callbacks.getScrollWhileDragging();return{droppableId:x,scroll:A}}),y={additions:w,removals:Object.keys(h),modified:E};n=l_(),r.publish(y)}))},o=function(d){var p=d.descriptor.id;n.additions[p]=d,n.modified[d.descriptor.droppableId]=!0,n.removals[p]&&delete n.removals[p],a()},s=function(d){var p=d.descriptor;n.removals[p.id]=!0,n.modified[p.droppableId]=!0,n.additions[p.id]&&delete n.additions[p.id],a()},u=function(){!i||(cancelAnimationFrame(i),i=null,n=l_())};return{add:o,remove:s,stop:u}}var xL=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=Li({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},wL=function(){var e=document.documentElement;return e||xt(!1),e},_L=function(){var e=wL(),t=xL({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},FX=function(){var e=bL(),t=_L(),r=e.y,n=e.x,i=wL(),a=i.clientWidth,o=i.clientHeight,s=n+a,u=r+o,f=Ca({top:r,left:n,right:s,bottom:u}),d={frame:f,scroll:{initial:e,current:e,max:t,diff:{value:zn,displacement:zn}}};return d},LX=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry,i=FX(),a=i.scroll.current,o=t.droppable,s=n.droppable.getAllByType(o.type).map(function(p){return p.callbacks.getDimensionAndWatchScroll(a,r)}),u=n.draggable.getAllByType(t.draggable.type).map(function(p){return p.getDimension(a)}),f={draggables:Q4(u),droppables:K4(s)},d={dimensions:f,critical:t,viewport:i};return d};function a5(e,t,r){if(r.descriptor.id===t.id||r.descriptor.type!==t.type)return!1;var n=e.droppable.getById(r.descriptor.droppableId);return n.descriptor.mode==="virtual"}var BX=function(e,t){var r=null,n=NX({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,w){e.droppable.exists(g)||xt(!1),r&&t.updateDroppableIsEnabled({id:g,isEnabled:w})},a=function(g,w){!r||(e.droppable.exists(g)||xt(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:w}))},o=function(g,w){!r||(e.droppable.exists(g)||xt(!1),t.updateDroppableScroll({id:g,newScroll:w}))},s=function(g,w){!r||e.droppable.getById(g).callbacks.scroll(w)},u=function(){if(!!r){n.stop();var g=r.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(w){return w.callbacks.dragStopped()}),r.unsubscribe(),r=null}},f=function(g){r||xt(!1);var w=r.critical.draggable;g.type==="ADDITION"&&a5(e,w,g.value)&&n.add(g.value),g.type==="REMOVAL"&&a5(e,w,g.value)&&n.remove(g.value)},d=function(g){r&&xt(!1);var w=e.draggable.getById(g.draggableId),E=e.droppable.getById(w.descriptor.droppableId),y={draggable:w.descriptor,droppable:E.descriptor},x=e.subscribe(f);return r={critical:y,unsubscribe:x},LX({critical:y,registry:e,scrollOptions:g.scrollOptions})},p={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:s,updateDroppableScroll:o,startPublishing:d,stopPublishing:u};return p},SL=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},$X=function(e){window.scrollBy(e.x,e.y)},zX=hn(function(e){return ab(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),UX=function(t,r){var n=hl(zX(r),function(i){return i.frame||xt(!1),sL(i.frame.pageMarginBox)(t)});return n},jX=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}var a=UX(t,n);return a},Qs={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},WX=function(e,t){var r=e[t.size]*Qs.startFromPercentage,n=e[t.size]*Qs.maxScrollAtPercentage,i={startScrollingFrom:r,maxScrollValueAt:n};return i},EL=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;if(i===0)return 0;var a=n-t,o=a/i;return o},GC=1,GX=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Qs.maxPixelScroll;if(e===t.startScrollingFrom)return GC;var r=EL({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=1-r,i=Qs.maxPixelScroll*Qs.ease(n);return Math.ceil(i)},o5=Qs.durationDampening.accelerateAt,s5=Qs.durationDampening.stopDampeningAt,qX=function(e,t){var r=t,n=s5,i=Date.now(),a=i-r;if(a>=s5)return e;if(a<o5)return GC;var o=EL({startOfRange:o5,endOfRange:n,current:a}),s=e*Qs.ease(o);return Math.ceil(s)},l5=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,a=GX(t,r);return a===0?0:i?Math.max(qX(a,n),GC):a},u5=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=WX(t,i),s=r[i.end]<r[i.start];return s?l5({distanceToEdge:r[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a}):-1*l5({distanceToEdge:r[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a})},HX=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,a=r.width>t.width;return!a&&!i?n:a&&i?null:{x:a?0:n.x,y:i?0:n.y}},VX=Y4(function(e){return e===0?0:e}),AL=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,a=e.shouldUseTimeDampening,o={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},s=u5({container:r,distanceToEdges:o,dragStartTime:t,axis:NC,shouldUseTimeDampening:a}),u=u5({container:r,distanceToEdges:o,dragStartTime:t,axis:eL,shouldUseTimeDampening:a}),f=VX({x:u,y:s});if(Ks(f,zn))return null;var d=HX({container:r,subject:n,proposedScroll:f});return d?Ks(d,zn)?null:d:null},YX=Y4(function(e){return e===0?0:e>0?1:-1}),qC=function(){var e=function(r,n){return r<0?r:r>n?r-n:0};return function(t){var r=t.current,n=t.max,i=t.change,a=Qn(r,i),o={x:e(a.x,n.x),y:e(a.y,n.y)};return Ks(o,zn)?null:o}}(),CL=function(t){var r=t.max,n=t.current,i=t.change,a={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},o=YX(i),s=qC({max:a,current:n,change:o});return!s||o.x!==0&&s.x===0||o.y!==0&&s.y===0},HC=function(t,r){return CL({current:t.scroll.current,max:t.scroll.max,change:r})},XX=function(t,r){if(!HC(t,r))return null;var n=t.scroll.max,i=t.scroll.current;return qC({current:i,max:n,change:r})},VC=function(t,r){var n=t.frame;return n?CL({current:n.scroll.current,max:n.scroll.max,change:r}):!1},KX=function(t,r){var n=t.frame;return!n||!VC(t,r)?null:qC({current:n.scroll.current,max:n.scroll.max,change:r})},QX=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=AL({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:a});return o&&HC(t,o)?o:null},ZX=function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=t.frame;if(!o)return null;var s=AL({dragStartTime:i,container:o.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:a});return s&&VC(t,s)?s:null},f5=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,a=e.scrollDroppable,o=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id],u=s.page.marginBox;if(t.isWindowScrollAllowed){var f=t.viewport,d=QX({dragStartTime:r,viewport:f,subject:u,center:o,shouldUseTimeDampening:n});if(d){i(d);return}}var p=jX({center:o,destination:$i(t.impact),droppables:t.dimensions.droppables});if(!!p){var h=ZX({dragStartTime:r,droppable:p,subject:u,center:o,shouldUseTimeDampening:n});h&&a(p.descriptor.id,h)}},JX=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=iv(t),i=iv(r),a=null,o=function(d){a||xt(!1);var p=a,h=p.shouldUseTimeDampening,g=p.dragStartTime;f5({state:d,scrollWindow:n,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:h})},s=function(d){a&&xt(!1);var p=Date.now(),h=!1,g=function(){h=!0};f5({state:d,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),a={dragStartTime:p,shouldUseTimeDampening:h},h&&o(d)},u=function(){!a||(n.cancel(),i.cancel(),a=null)};return{start:s,stop:u,scroll:o}},eK=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(f,d){var p=Qn(f.current.client.selection,d);t({client:p})},a=function(f,d){if(!VC(f,d))return d;var p=KX(f,d);if(!p)return r(f.descriptor.id,d),null;var h=Li(d,p);r(f.descriptor.id,h);var g=Li(d,h);return g},o=function(f,d,p){if(!f||!HC(d,p))return p;var h=XX(d,p);if(!h)return n(p),null;var g=Li(p,h);n(g);var w=Li(p,g);return w},s=function(f){var d=f.scrollJumpRequest;if(!!d){var p=$i(f.impact);p||xt(!1);var h=a(f.dimensions.droppables[p],d);if(!!h){var g=f.viewport,w=o(f.isWindowScrollAllowed,g,h);!w||i(f,w)}}};return s},tK=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=JX({scrollWindow:r,scrollDroppable:t}),a=eK({move:n,scrollWindow:r,scrollDroppable:t}),o=function(f){if(f.phase==="DRAGGING"){if(f.movementMode==="FLUID"){i.scroll(f);return}!f.scrollJumpRequest||a(f)}},s={scroll:o,start:i.start,stop:i.stop};return s},kc="data-rbd",Dc=function(){var e=kc+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),fE=function(){var e=kc+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),rK=function(){var e=kc+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),c5={contextId:kc+"-scroll-container-context-id"},nK=function(t){return function(r){return"["+r+'="'+t+'"]'}},Mp=function(t,r){return t.map(function(n){var i=n.styles[r];return i?n.selector+" { "+i+" }":""}).join(" ")},iK="pointer-events: none;",aK=function(e){var t=nK(e),r=function(){var s=`
878
+ cursor: -webkit-grab;
879
+ cursor: grab;
880
+ `;return{selector:t(Dc.contextId),styles:{always:`
881
+ -webkit-touch-callout: none;
882
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
883
+ touch-action: manipulation;
884
+ `,resting:s,dragging:iK,dropAnimating:s}}}(),n=function(){var s=`
885
+ transition: `+Th.outOfTheWay+`;
886
+ `;return{selector:t(fE.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}}(),i={selector:t(rK.contextId),styles:{always:"overflow-anchor: none;"}},a={selector:"body",styles:{dragging:`
887
+ cursor: grabbing;
888
+ cursor: -webkit-grabbing;
889
+ user-select: none;
890
+ -webkit-user-select: none;
891
+ -moz-user-select: none;
892
+ -ms-user-select: none;
893
+ overflow-anchor: none;
894
+ `}},o=[n,r,i,a];return{always:Mp(o,"always"),resting:Mp(o,"resting"),dragging:Mp(o,"dragging"),dropAnimating:Mp(o,"dropAnimating"),userCancel:Mp(o,"userCancel")}},zi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ve.exports.useLayoutEffect:ve.exports.useEffect,u_=function(){var t=document.querySelector("head");return t||xt(!1),t},d5=function(t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function oK(e,t){var r=Ar(function(){return aK(e)},[e]),n=ve.exports.useRef(null),i=ve.exports.useRef(null),a=Zt(hn(function(p){var h=i.current;h||xt(!1),h.textContent=p}),[]),o=Zt(function(p){var h=n.current;h||xt(!1),h.textContent=p},[]);zi(function(){!n.current&&!i.current||xt(!1);var p=d5(t),h=d5(t);return n.current=p,i.current=h,p.setAttribute(kc+"-always",e),h.setAttribute(kc+"-dynamic",e),u_().appendChild(p),u_().appendChild(h),o(r.always),a(r.resting),function(){var g=function(E){var y=E.current;y||xt(!1),u_().removeChild(y),E.current=null};g(n),g(i)}},[t,o,a,r.always,r.resting,e]);var s=Zt(function(){return a(r.dragging)},[a,r.dragging]),u=Zt(function(p){if(p==="DROP"){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),f=Zt(function(){!i.current||a(r.resting)},[a,r.resting]),d=Ar(function(){return{dragging:s,dropping:u,resting:f}},[s,u,f]);return d}var TL=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function ub(e){return e instanceof TL(e).HTMLElement}function sK(e,t){var r="["+Dc.contextId+'="'+e+'"]',n=X4(document.querySelectorAll(r));if(!n.length)return null;var i=hl(n,function(a){return a.getAttribute(Dc.draggableId)===t});return!i||!ub(i)?null:i}function lK(e){var t=ve.exports.useRef({}),r=ve.exports.useRef(null),n=ve.exports.useRef(null),i=ve.exports.useRef(!1),a=Zt(function(h,g){var w={id:h,focus:g};return t.current[h]=w,function(){var y=t.current,x=y[h];x!==w&&delete y[h]}},[]),o=Zt(function(h){var g=sK(e,h);g&&g!==document.activeElement&&g.focus()},[e]),s=Zt(function(h,g){r.current===h&&(r.current=g)},[]),u=Zt(function(){n.current||!i.current||(n.current=requestAnimationFrame(function(){n.current=null;var h=r.current;h&&o(h)}))},[o]),f=Zt(function(h){r.current=null;var g=document.activeElement;!g||g.getAttribute(Dc.draggableId)===h&&(r.current=h)},[]);zi(function(){return i.current=!0,function(){i.current=!1;var h=n.current;h&&cancelAnimationFrame(h)}},[]);var d=Ar(function(){return{register:a,tryRecordFocus:f,tryRestoreFocusRecorded:u,tryShiftRecord:s}},[a,f,u,s]);return d}function uK(){var e={draggables:{},droppables:{}},t=[];function r(p){return t.push(p),function(){var g=t.indexOf(p);g!==-1&&t.splice(g,1)}}function n(p){t.length&&t.forEach(function(h){return h(p)})}function i(p){return e.draggables[p]||null}function a(p){var h=i(p);return h||xt(!1),h}var o={register:function(h){e.draggables[h.descriptor.id]=h,n({type:"ADDITION",value:h})},update:function(h,g){var w=e.draggables[g.descriptor.id];!w||w.uniqueId===h.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[h.descriptor.id]=h)},unregister:function(h){var g=h.descriptor.id,w=i(g);!w||h.uniqueId===w.uniqueId&&(delete e.draggables[g],n({type:"REMOVAL",value:h}))},getById:a,findById:i,exists:function(h){return Boolean(i(h))},getAllByType:function(h){return Ry(e.draggables).filter(function(g){return g.descriptor.type===h})}};function s(p){return e.droppables[p]||null}function u(p){var h=s(p);return h||xt(!1),h}var f={register:function(h){e.droppables[h.descriptor.id]=h},unregister:function(h){var g=s(h.descriptor.id);!g||h.uniqueId===g.uniqueId&&delete e.droppables[h.descriptor.id]},getById:u,findById:s,exists:function(h){return Boolean(s(h))},getAllByType:function(h){return Ry(e.droppables).filter(function(g){return g.descriptor.type===h})}};function d(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:f,subscribe:r,clean:d}}function fK(){var e=Ar(uK,[]);return ve.exports.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var YC=dn.createContext(null),Iy=function(){var e=document.body;return e||xt(!1),e},cK={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},dK=function(t){return"rbd-announcement-"+t};function pK(e){var t=Ar(function(){return dK(e)},[e]),r=ve.exports.useRef(null);ve.exports.useEffect(function(){var a=document.createElement("div");return r.current=a,a.id=t,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),ar(a.style,cK),Iy().appendChild(a),function(){setTimeout(function(){var u=Iy();u.contains(a)&&u.removeChild(a),a===r.current&&(r.current=null)})}},[t]);var n=Zt(function(i){var a=r.current;if(a){a.textContent=i;return}},[]);return n}var hK=0,vK={separator:"::"};function XC(e,t){return t===void 0&&(t=vK),Ar(function(){return""+e+t.separator+hK++},[t.separator,e])}function gK(e){var t=e.contextId,r=e.uniqueId;return"rbd-hidden-text-"+t+"-"+r}function mK(e){var t=e.contextId,r=e.text,n=XC("hidden-text",{separator:"-"}),i=Ar(function(){return gK({contextId:t,uniqueId:n})},[n,t]);return ve.exports.useEffect(function(){var o=document.createElement("div");return o.id=i,o.textContent=r,o.style.display="none",Iy().appendChild(o),function(){var u=Iy();u.contains(o)&&u.removeChild(o)}},[i,r]),i}var fb=dn.createContext(null);function RL(e){var t=ve.exports.useRef(e);return ve.exports.useEffect(function(){t.current=e}),t}function yK(){var e=null;function t(){return Boolean(e)}function r(o){return o===e}function n(o){e&&xt(!1);var s={abandon:o};return e=s,s}function i(){e||xt(!1),e=null}function a(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:r,claim:n,release:i,tryAbandon:a}}var bK=9,xK=13,KC=27,OL=32,wK=33,_K=34,SK=35,EK=36,AK=37,CK=38,TK=39,RK=40,Gm,OK=(Gm={},Gm[xK]=!0,Gm[bK]=!0,Gm),IL=function(e){OK[e.keyCode]&&e.preventDefault()},cb=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=hl(t,function(n){return"on"+n in document});return r||e}(),PL=0,p5=5;function IK(e,t){return Math.abs(t.x-e.x)>=p5||Math.abs(t.y-e.y)>=p5}var h5={type:"IDLE"};function PK(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(o){var s=o.button,u=o.clientX,f=o.clientY;if(s===PL){var d={x:u,y:f},p=n();if(p.type==="DRAGGING"){o.preventDefault(),p.actions.move(d);return}p.type!=="PENDING"&&xt(!1);var h=p.point;if(!!IK(h,d)){o.preventDefault();var g=p.actions.fluidLift(d);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(o){var s=n();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:function(o){n().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:function(o){var s=n();if(s.type==="PENDING"){t();return}if(o.keyCode===KC){o.preventDefault(),t();return}IL(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){n().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(o){var s=n();if(s.type==="IDLE"&&xt(!1),s.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:cb,fn:t}]}function kK(e){var t=ve.exports.useRef(h5),r=ve.exports.useRef(Xs),n=Ar(function(){return{eventName:"mousedown",fn:function(p){if(!p.defaultPrevented&&p.button===PL&&!(p.ctrlKey||p.metaKey||p.shiftKey||p.altKey)){var h=e.findClosestDraggableId(p);if(!!h){var g=e.tryGetLock(h,o,{sourceEvent:p});if(!!g){p.preventDefault();var w={x:p.clientX,y:p.clientY};r.current(),f(g,w)}}}}}},[e]),i=Ar(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(p){if(!p.defaultPrevented){var h=e.findClosestDraggableId(p);if(!!h){var g=e.findOptionsForDraggable(h);!g||g.shouldRespectForcePress||!e.canGetLock(h)||p.preventDefault()}}}}},[e]),a=Zt(function(){var p={passive:!1,capture:!0};r.current=ea(window,[i,n],p)},[i,n]),o=Zt(function(){var d=t.current;d.type!=="IDLE"&&(t.current=h5,r.current(),a())},[a]),s=Zt(function(){var d=t.current;o(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[o]),u=Zt(function(){var p={capture:!0,passive:!1},h=PK({cancel:s,completed:o,getPhase:function(){return t.current},setPhase:function(w){t.current=w}});r.current=ea(window,h,p)},[s,o]),f=Zt(function(p,h){t.current.type!=="IDLE"&&xt(!1),t.current={type:"PENDING",point:h,actions:p},u()},[u]);zi(function(){return a(),function(){r.current()}},[a])}var Df;function DK(){}var MK=(Df={},Df[_K]=!0,Df[wK]=!0,Df[EK]=!0,Df[SK]=!0,Df);function NK(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:function(a){if(a.keyCode===KC){a.preventDefault(),r();return}if(a.keyCode===OL){a.preventDefault(),n();return}if(a.keyCode===RK){a.preventDefault(),e.moveDown();return}if(a.keyCode===CK){a.preventDefault(),e.moveUp();return}if(a.keyCode===TK){a.preventDefault(),e.moveRight();return}if(a.keyCode===AK){a.preventDefault(),e.moveLeft();return}if(MK[a.keyCode]){a.preventDefault();return}IL(a)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:cb,fn:r}]}function FK(e){var t=ve.exports.useRef(DK),r=Ar(function(){return{eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==OL)return;var o=e.findClosestDraggableId(a);if(!o)return;var s=e.tryGetLock(o,d,{sourceEvent:a});if(!s)return;a.preventDefault();var u=!0,f=s.snapLift();t.current();function d(){u||xt(!1),u=!1,t.current(),n()}t.current=ea(window,NK(f,d),{capture:!0,passive:!1})}}},[e]),n=Zt(function(){var a={passive:!1,capture:!0};t.current=ea(window,[r],a)},[r]);zi(function(){return n(),function(){t.current()}},[n])}var f_={type:"IDLE"},LK=120,BK=.15;function $K(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(r().type!=="DRAGGING"){t();return}i.keyCode===KC&&i.preventDefault(),t()}},{eventName:cb,fn:t}]}function zK(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(a){var o=n();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;var s=a.touches[0],u=s.clientX,f=s.clientY,d={x:u,y:f};a.preventDefault(),o.actions.move(d)}},{eventName:"touchend",fn:function(a){var o=n();if(o.type!=="DRAGGING"){t();return}a.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:function(a){if(n().type!=="DRAGGING"){t();return}a.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(a){var o=n();o.type==="IDLE"&&xt(!1);var s=a.touches[0];if(!!s){var u=s.force>=BK;if(!!u){var f=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){f&&t();return}if(f){if(o.hasMoved){a.preventDefault();return}t();return}a.preventDefault()}}}},{eventName:cb,fn:t}]}function UK(e){var t=ve.exports.useRef(f_),r=ve.exports.useRef(Xs),n=Zt(function(){return t.current},[]),i=Zt(function(g){t.current=g},[]),a=Ar(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var w=e.findClosestDraggableId(g);if(!!w){var E=e.tryGetLock(w,s,{sourceEvent:g});if(!!E){var y=g.touches[0],x=y.clientX,S=y.clientY,A={x,y:S};r.current(),p(E,A)}}}}}},[e]),o=Zt(function(){var g={capture:!0,passive:!1};r.current=ea(window,[a],g)},[a]),s=Zt(function(){var h=t.current;h.type!=="IDLE"&&(h.type==="PENDING"&&clearTimeout(h.longPressTimerId),i(f_),r.current(),o())},[o,i]),u=Zt(function(){var h=t.current;s(),h.type==="DRAGGING"&&h.actions.cancel({shouldBlockNextClick:!0}),h.type==="PENDING"&&h.actions.abort()},[s]),f=Zt(function(){var g={capture:!0,passive:!1},w={cancel:u,completed:s,getPhase:n},E=ea(window,zK(w),g),y=ea(window,$K(w),g);r.current=function(){E(),y()}},[u,n,s]),d=Zt(function(){var g=n();g.type!=="PENDING"&&xt(!1);var w=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:w,hasMoved:!1})},[n,i]),p=Zt(function(g,w){n().type!=="IDLE"&&xt(!1);var E=setTimeout(d,LK);i({type:"PENDING",point:w,actions:g,longPressTimerId:E}),f()},[f,n,i,d]);zi(function(){return o(),function(){r.current();var w=n();w.type==="PENDING"&&(clearTimeout(w.longPressTimerId),i(f_))}},[n,o,i]),zi(function(){var g=ea(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var jK={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function kL(e,t){if(t==null)return!1;var r=Boolean(jK[t.tagName.toLowerCase()]);if(r)return!0;var n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:kL(e,t.parentElement)}function WK(e,t){var r=t.target;return ub(r)?kL(e,r):!1}var GK=function(e){return Ca(e.getBoundingClientRect()).center};function qK(e){return e instanceof TL(e).Element}var HK=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=hl(t,function(n){return n in Element.prototype});return r||e}();function DL(e,t){return e==null?null:e[HK](t)?e:DL(e.parentElement,t)}function VK(e,t){return e.closest?e.closest(t):DL(e,t)}function YK(e){return"["+Dc.contextId+'="'+e+'"]'}function XK(e,t){var r=t.target;if(!qK(r))return null;var n=YK(e),i=VK(r,n);return!i||!ub(i)?null:i}function KK(e,t){var r=XK(e,t);return r?r.getAttribute(Dc.draggableId):null}function QK(e,t){var r="["+fE.contextId+'="'+e+'"]',n=X4(document.querySelectorAll(r)),i=hl(n,function(a){return a.getAttribute(fE.id)===t});return!i||!ub(i)?null:i}function ZK(e){e.preventDefault()}function qm(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||t!==r)}function ML(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var a=n.draggable.findById(i);return!(!a||!a.options.isEnabled||!SL(r.getState(),i))}function JK(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,a=e.draggableId,o=e.forceSensorStop,s=e.sourceEvent,u=ML({lockAPI:t,store:n,registry:i,draggableId:a});if(!u)return null;var f=i.draggable.getById(a),d=QK(r,f.descriptor.id);if(!d||s&&!f.options.canDragInteractiveElements&&WK(d,s))return null;var p=t.claim(o||Xs),h="PRE_DRAG";function g(){return f.options.shouldRespectForcePress}function w(){return t.isActive(p)}function E(D,z){qm({expected:D,phase:h,isLockActive:w,shouldWarn:!0})&&n.dispatch(z())}var y=E.bind(null,"DRAGGING");function x(D){function z(){t.release(),h="COMPLETED"}h!=="PRE_DRAG"&&(z(),h!=="PRE_DRAG"&&xt(!1)),n.dispatch(HY(D.liftActionArgs)),h="DRAGGING";function M(L,X){if(X===void 0&&(X={shouldBlockNextClick:!1}),D.cleanup(),X.shouldBlockNextClick){var re=ea(window,[{eventName:"click",fn:ZK,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(re)}z(),n.dispatch(gL({reason:L}))}return ar({isActive:function(){return qm({expected:"DRAGGING",phase:h,isLockActive:w,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(X){return M("DROP",X)},cancel:function(X){return M("CANCEL",X)}},D.actions)}function S(D){var z=iv(function(L){y(function(){return vL({client:L})})}),M=x({liftActionArgs:{id:a,clientSelection:D,movementMode:"FLUID"},cleanup:function(){return z.cancel()},actions:{move:z}});return ar({},M,{move:z})}function A(){var D={moveUp:function(){return y(tX)},moveRight:function(){return y(nX)},moveDown:function(){return y(rX)},moveLeft:function(){return y(iX)}};return x({liftActionArgs:{id:a,clientSelection:GK(d),movementMode:"SNAP"},cleanup:Xs,actions:D})}function C(){var D=qm({expected:"PRE_DRAG",phase:h,isLockActive:w,shouldWarn:!0});D&&t.release()}var k={isActive:function(){return qm({expected:"PRE_DRAG",phase:h,isLockActive:w,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:S,snapLift:A,abort:C};return k}var eQ=[kK,FK,UK];function tQ(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,a=e.enableDefaultSensors,o=[].concat(a?eQ:[],i||[]),s=ve.exports.useState(function(){return yK()})[0],u=Zt(function(S,A){S.isDragging&&!A.isDragging&&s.tryAbandon()},[s]);zi(function(){var S=r.getState(),A=r.subscribe(function(){var C=r.getState();u(S,C),S=C});return A},[s,r,u]),zi(function(){return s.tryAbandon},[s.tryAbandon]);for(var f=Zt(function(x){return ML({lockAPI:s,registry:n,store:r,draggableId:x})},[s,n,r]),d=Zt(function(x,S,A){return JK({lockAPI:s,registry:n,contextId:t,store:r,draggableId:x,forceSensorStop:S,sourceEvent:A&&A.sourceEvent?A.sourceEvent:null})},[t,s,n,r]),p=Zt(function(x){return KK(t,x)},[t]),h=Zt(function(x){var S=n.draggable.findById(x);return S?S.options:null},[n.draggable]),g=Zt(function(){!s.isClaimed()||(s.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(zC()))},[s,r]),w=Zt(s.isClaimed,[s]),E=Ar(function(){return{canGetLock:f,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:h,tryReleaseLock:g,isLockClaimed:w}},[f,d,p,h,g,w]),y=0;y<o.length;y++)o[y](E)}var rQ=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function Np(e){return e.current||xt(!1),e.current}function nQ(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,o=ve.exports.useRef(null),s=RL(e),u=Zt(function(){return rQ(s.current)},[s]),f=pK(t),d=mK({contextId:t,text:a}),p=oK(t,i),h=Zt(function(L){Np(o).dispatch(L)},[]),g=Ar(function(){return LI({publishWhileDragging:YY,updateDroppableScroll:KY,updateDroppableIsEnabled:QY,updateDroppableIsCombineEnabled:ZY,collectionStarting:XY},h)},[h]),w=fK(),E=Ar(function(){return BX(w,g)},[w,g]),y=Ar(function(){return tK(ar({scrollWindow:$X,scrollDroppable:E.scrollDroppable},LI({move:vL},h)))},[E.scrollDroppable,h]),x=lK(t),S=Ar(function(){return MX({announce:f,autoScroller:y,dimensionMarshal:E,focusMarshal:x,getResponders:u,styleMarshal:p})},[f,y,E,x,u,p]);o.current=S;var A=Zt(function(){var L=Np(o),X=L.getState();X.phase!=="IDLE"&&L.dispatch(zC())},[]),C=Zt(function(){var L=Np(o).getState();return L.isDragging||L.phase==="DROP_ANIMATING"},[]),k=Ar(function(){return{isDragging:C,tryAbort:A}},[C,A]);r(k);var D=Zt(function(L){return SL(Np(o).getState(),L)},[]),z=Zt(function(){return Jl(Np(o).getState())},[]),M=Ar(function(){return{marshal:E,focus:x,contextId:t,canLift:D,isMovementAllowed:z,dragHandleUsageInstructionsId:d,registry:w}},[t,E,d,x,D,z,w]);return tQ({contextId:t,store:S,registry:w,customSensors:n,enableDefaultSensors:e.enableDefaultSensors!==!1}),ve.exports.useEffect(function(){return A},[A]),Mr(fb.Provider,{value:M,children:Mr(TH,{context:YC,store:S,children:e.children})})}var iQ=0;function aQ(){return Ar(function(){return""+iQ++},[])}function cge(e){var t=aQ(),r=e.dragHandleUsageInstructions||B0.dragHandleUsageInstructions;return Mr(FV,{children:function(n){return Mr(nQ,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,children:e.children})}})}var NL=function(t){return function(r){return t===r}},oQ=NL("scroll"),sQ=NL("auto"),v5=function(t,r){return r(t.overflowX)||r(t.overflowY)},lQ=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return v5(n,oQ)||v5(n,sQ)},uQ=function(){return!1},fQ=function e(t){return t==null?null:t===document.body?uQ()?t:null:t===document.documentElement?null:lQ(t)?t:e(t.parentElement)},cE=function(e){return{x:e.scrollLeft,y:e.scrollTop}},cQ=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},dQ=function(e){var t=fQ(e),r=cQ(e);return{closestScrollable:t,isFixedOnPage:r}},pQ=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,s=e.page,u=e.closest,f=function(){if(!u)return null;var g=u.scrollSize,w=u.client,E=xL({scrollHeight:g.scrollHeight,scrollWidth:g.scrollWidth,height:w.paddingBox.height,width:w.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:w,scrollSize:g,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:E,diff:{value:zn,displacement:zn}}}}(),d=a==="vertical"?NC:eL,p=Pc({page:s,withPlaceholder:null,axis:d,frame:f}),h={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:s,frame:f,subject:p};return h},hQ=function(t,r){var n=G4(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,s=a+r.scrollWidth,u={top:i,right:s,bottom:o,left:a},f=IC(u,n.border),d=PC({borderBox:f,margin:n.margin,border:n.border,padding:n.padding});return d},vQ=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,s=e.isCombineEnabled,u=e.shouldClipSubject,f=n.closestScrollable,d=hQ(t,f),p=Ay(d,i),h=function(){if(!f)return null;var w=G4(f),E={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:w,page:Ay(w,i),scroll:cE(f),scrollSize:E,shouldClipSubject:u}}(),g=pQ({descriptor:r,isEnabled:!o,isCombineEnabled:s,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:p,closest:h});return g},gQ={passive:!1},mQ={passive:!0},g5=function(e){return e.shouldPublishImmediately?gQ:mQ};function Py(e){var t=ve.exports.useContext(e);return t||xt(!1),t}var Hm=function(t){return t&&t.env.closestScrollable||null};function yQ(e){var t=ve.exports.useRef(null),r=Py(fb),n=XC("droppable"),i=r.registry,a=r.marshal,o=RL(e),s=Ar(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),u=ve.exports.useRef(s),f=Ar(function(){return hn(function(C,k){t.current||xt(!1);var D={x:C,y:k};a.updateDroppableScroll(s.id,D)})},[s.id,a]),d=Zt(function(){var C=t.current;return!C||!C.env.closestScrollable?zn:cE(C.env.closestScrollable)},[]),p=Zt(function(){var C=d();f(C.x,C.y)},[d,f]),h=Ar(function(){return iv(p)},[p]),g=Zt(function(){var C=t.current,k=Hm(C);C&&k||xt(!1);var D=C.scrollOptions;if(D.shouldPublishImmediately){p();return}h()},[h,p]),w=Zt(function(C,k){t.current&&xt(!1);var D=o.current,z=D.getDroppableRef();z||xt(!1);var M=dQ(z),L={ref:z,descriptor:s,env:M,scrollOptions:k};t.current=L;var X=vQ({ref:z,descriptor:s,env:M,windowScroll:C,direction:D.direction,isDropDisabled:D.isDropDisabled,isCombineEnabled:D.isCombineEnabled,shouldClipSubject:!D.ignoreContainerClipping}),re=M.closestScrollable;return re&&(re.setAttribute(c5.contextId,r.contextId),re.addEventListener("scroll",g,g5(L.scrollOptions))),X},[r.contextId,s,g,o]),E=Zt(function(){var C=t.current,k=Hm(C);return C&&k||xt(!1),cE(k)},[]),y=Zt(function(){var C=t.current;C||xt(!1);var k=Hm(C);t.current=null,k&&(h.cancel(),k.removeAttribute(c5.contextId),k.removeEventListener("scroll",g,g5(C.scrollOptions)))},[g,h]),x=Zt(function(C){var k=t.current;k||xt(!1);var D=Hm(k);D||xt(!1),D.scrollTop+=C.y,D.scrollLeft+=C.x},[]),S=Ar(function(){return{getDimensionAndWatchScroll:w,getScrollWhileDragging:E,dragStopped:y,scroll:x}},[y,w,E,x]),A=Ar(function(){return{uniqueId:n,descriptor:s,callbacks:S}},[S,s,n]);zi(function(){return u.current=A.descriptor,i.droppable.register(A),function(){t.current&&y(),i.droppable.unregister(A)}},[S,s,y,A,a,i.droppable]),zi(function(){!t.current||a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),zi(function(){!t.current||a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function c_(){}var m5={width:0,height:0,margin:jV},bQ=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?m5:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},xQ=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=bQ({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"?Th.placeholder:null}};function wQ(e){var t=ve.exports.useRef(null),r=Zt(function(){!t.current||(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,s=ve.exports.useState(e.animate==="open"),u=s[0],f=s[1];ve.exports.useEffect(function(){return u?n!=="open"?(r(),f(!1),c_):t.current?c_:(t.current=setTimeout(function(){t.current=null,f(!1)}),r):c_},[n,u,r]);var d=Zt(function(h){h.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),p=xQ({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return dn.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var _Q=dn.memo(wQ),QC=dn.createContext(null),SQ=function(e){Iv(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}(dn.PureComponent),y5={dragging:5e3,dropAnimating:4500},EQ=function(t,r){return r?Th.drop(r.duration):t?Th.snap:Th.fluid},AQ=function(t,r){return t?r?lv.opacity.drop:lv.opacity.combining:null},CQ=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function TQ(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),s=CQ(e),u=Boolean(a),f=u?lE.drop(n,o):lE.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:EQ(s,a),transform:f,opacity:AQ(o,u),zIndex:u?y5.dropAnimating:y5.dragging,pointerEvents:"none"};return d}function RQ(e){return{transform:lE.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function OQ(e){return e.type==="DRAGGING"?TQ(e):RQ(e)}function IQ(e,t,r){r===void 0&&(r=zn);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=W4(i,n),o=Ay(a,r),s={client:a,tagName:t.tagName.toLowerCase(),display:n.display},u={x:a.marginBox.width,y:a.marginBox.height},f={descriptor:e,placeholder:s,displaceBy:u,client:a,page:o};return f}function PQ(e){var t=XC("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,s=e.isEnabled,u=Ar(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}},[a,s,o]),f=Zt(function(g){var w=i();return w||xt(!1),IQ(r,w,g)},[r,i]),d=Ar(function(){return{uniqueId:t,descriptor:r,options:u,getDimension:f}},[r,f,u,t]),p=ve.exports.useRef(d),h=ve.exports.useRef(!0);zi(function(){return n.draggable.register(p.current),function(){return n.draggable.unregister(p.current)}},[n.draggable]),zi(function(){if(h.current){h.current=!1;return}var g=p.current;p.current=d,n.draggable.update(d,g)},[d,n.draggable])}function kQ(e){e.preventDefault()}function DQ(e){var t=ve.exports.useRef(null),r=Zt(function(L){t.current=L},[]),n=Zt(function(){return t.current},[]),i=Py(fb),a=i.contextId,o=i.dragHandleUsageInstructionsId,s=i.registry,u=Py(QC),f=u.type,d=u.droppableId,p=Ar(function(){return{id:e.draggableId,index:e.index,type:f,droppableId:d}},[e.draggableId,e.index,f,d]),h=e.children,g=e.draggableId,w=e.isEnabled,E=e.shouldRespectForcePress,y=e.canDragInteractiveElements,x=e.isClone,S=e.mapped,A=e.dropAnimationFinished;if(!x){var C=Ar(function(){return{descriptor:p,registry:s,getDraggableRef:n,canDragInteractiveElements:y,shouldRespectForcePress:E,isEnabled:w}},[p,s,n,y,E,w]);PQ(C)}var k=Ar(function(){return w?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:kQ}:null},[a,o,g,w]),D=Zt(function(L){S.type==="DRAGGING"&&(!S.dropping||L.propertyName==="transform"&&A())},[A,S]),z=Ar(function(){var L=OQ(S),X=S.type==="DRAGGING"&&S.dropping?D:null,re={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:L,onTransitionEnd:X},dragHandleProps:k};return re},[a,k,g,S,D,r]),M=Ar(function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}},[p.droppableId,p.id,p.index,p.type]);return h(z,S.snapshot,M)}var FL=function(e,t){return e===t},LL=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},MQ=function(t){return t.combine?t.combine.draggableId:null},NQ=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function FQ(){var e=hn(function(i,a){return{x:i,y:a}}),t=hn(function(i,a,o,s,u){return{isDragging:!0,isClone:a,isDropAnimating:Boolean(u),dropAnimation:u,mode:i,draggingOver:o,combineWith:s,combineTargetFor:null}}),r=hn(function(i,a,o,s,u,f,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:u,combineWith:f,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,s,u,f,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var s=a.current.client.offset,u=a.dimensions.draggables[o.draggableId],f=$i(a.impact),d=NQ(a.impact),p=a.forceShouldAnimate;return r(e(s.x,s.y),a.movementMode,u,o.isClone,f,d,p)}if(a.phase==="DROP_ANIMATING"){var h=a.completed;if(h.result.draggableId!==o.draggableId)return null;var g=o.isClone,w=a.dimensions.draggables[o.draggableId],E=h.result,y=E.mode,x=LL(E),S=MQ(E),A=a.dropDuration,C={duration:A,curve:jC.drop,moveTo:a.newHomeClientOffset,opacity:S?lv.opacity.drop:null,scale:S?lv.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:w,dropping:C,draggingOver:x,combineWith:S,mode:y,forceShouldAnimate:null,snapshot:t(y,g,x,S,C)}}}return null};return n}function BL(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var LQ={mapped:{type:"SECONDARY",offset:zn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:BL(null)}};function BQ(){var e=hn(function(o,s){return{x:o,y:s}}),t=hn(BL),r=hn(function(o,s,u){return s===void 0&&(s=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:s,shouldAnimateDisplacement:u,snapshot:t(s)}}}),n=function(s){return s?r(zn,s,!0):null},i=function(s,u,f,d){var p=f.displaced.visible[s],h=Boolean(d.inVirtualList&&d.effected[s]),g=ob(f),w=g&&g.draggableId===s?u:null;if(!p){if(!h)return n(w);if(f.displaced.invisible[s])return null;var E=Jc(d.displacedBy.point),y=e(E.x,E.y);return r(y,w,!0)}if(h)return n(w);var x=f.displacedBy.point,S=e(x.x,x.y);return r(S,w,p.shouldAnimate)},a=function(s,u){if(s.isDragging)return s.critical.draggable.id===u.draggableId?null:i(u.draggableId,s.critical.draggable.id,s.impact,s.afterCritical);if(s.phase==="DROP_ANIMATING"){var f=s.completed;return f.result.draggableId===u.draggableId?null:i(u.draggableId,f.result.draggableId,f.impact,f.afterCritical)}return null};return a}var $Q=function(){var t=FQ(),r=BQ(),n=function(a,o){return t(a,o)||r(a,o)||LQ};return n},zQ={dropAnimationFinished:mL},UQ=U4($Q,zQ,null,{context:YC,pure:!0,areStatePropsEqual:FL})(DQ);function $L(e){var t=Py(QC),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:Mr(UQ,{...e})}function dge(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return Mr($L,{...e,isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n})}function jQ(e){var t=ve.exports.useContext(fb);t||xt(!1);var r=t.contextId,n=t.isMovementAllowed,i=ve.exports.useRef(null),a=ve.exports.useRef(null),o=e.children,s=e.droppableId,u=e.type,f=e.mode,d=e.direction,p=e.ignoreContainerClipping,h=e.isDropDisabled,g=e.isCombineEnabled,w=e.snapshot,E=e.useClone,y=e.updateViewportMaxScroll,x=e.getContainerForClone,S=Zt(function(){return i.current},[]),A=Zt(function(re){i.current=re},[]);Zt(function(){return a.current},[]);var C=Zt(function(re){a.current=re},[]),k=Zt(function(){n()&&y({maxScroll:_L()})},[n,y]);yQ({droppableId:s,type:u,mode:f,direction:d,isDropDisabled:h,isCombineEnabled:g,ignoreContainerClipping:p,getDroppableRef:S});var D=Mr(SQ,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder,children:function(re){var ce=re.onClose,xe=re.data,Se=re.animate;return Mr(_Q,{placeholder:xe,onClose:ce,innerRef:C,animate:Se,contextId:r,onTransitionEnd:k})}}),z=Ar(function(){return{innerRef:A,placeholder:D,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":r}}},[r,s,D,A]),M=E?E.dragging.draggableId:null,L=Ar(function(){return{droppableId:s,type:u,isUsingCloneFor:M}},[s,M,u]);function X(){if(!E)return null;var re=E.dragging,ce=E.render,xe=Mr($L,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0,children:function(Se,Ze){return ce(Se,Ze,re)}});return nh.createPortal(xe,x())}return Qh(QC.Provider,{value:L,children:[o(z,w),X()]})}var d_=function(t,r){return t===r.droppable.type},b5=function(t,r){return r.draggables[t.draggable.id]},WQ=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ar({},t,{shouldAnimatePlaceholder:!1}),n=hn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=hn(function(o,s,u,f,d,p){var h=d.descriptor.id,g=d.descriptor.droppableId===o;if(g){var w=p?{render:p,dragging:n(d.descriptor)}:null,E={isDraggingOver:u,draggingOverWith:u?h:null,draggingFromThisWith:h,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:E,useClone:w}}if(!s)return r;if(!f)return t;var y={isDraggingOver:u,draggingOverWith:h,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:y,useClone:null}}),a=function(s,u){var f=u.droppableId,d=u.type,p=!u.isDropDisabled,h=u.renderClone;if(s.isDragging){var g=s.critical;if(!d_(d,g))return r;var w=b5(g,s.dimensions),E=$i(s.impact)===f;return i(f,p,E,E,w,h)}if(s.phase==="DROP_ANIMATING"){var y=s.completed;if(!d_(d,y.critical))return r;var x=b5(y.critical,s.dimensions);return i(f,p,LL(y.result)===f,$i(y.impact)===f,x,h)}if(s.phase==="IDLE"&&s.completed&&!s.shouldFlush){var S=s.completed;if(!d_(d,S.critical))return r;var A=$i(S.impact)===f,C=Boolean(S.impact.at&&S.impact.at.type==="COMBINE"),k=S.critical.droppable.id===f;return A?C?t:r:k?t:r}return r};return a},GQ={updateViewportMaxScroll:eX};function qQ(){return document.body||xt(!1),document.body}var HQ={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:qQ},VQ=U4(WQ,GQ,null,{context:YC,pure:!0,areStatePropsEqual:FL})(jQ);VQ.defaultProps=HQ;var YQ=typeof performance=="object"&&typeof performance.now=="function",x5=YQ?function(){return performance.now()}:function(){return Date.now()};function w5(e){cancelAnimationFrame(e.id)}function XQ(e,t){var r=x5();function n(){x5()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Mf=null;function _5(e){if(e===void 0&&(e=!1),Mf===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?Mf="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Mf="negative":Mf="positive-ascending"),document.body.removeChild(t),Mf}return Mf}var KQ=150,QQ=function(t,r){return t};function ZQ(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,f=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return r=t=function(h){Iv(g,h);function g(E){var y;return y=h.call(this,E)||this,y._instanceProps=f(y.props,Pm(Pm(y))),y._outerRef=void 0,y._resetIsScrollingTimeoutId=null,y.state={instance:Pm(Pm(y)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof y.props.initialScrollOffset=="number"?y.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},y._callOnItemsRendered=void 0,y._callOnItemsRendered=hn(function(x,S,A,C){return y.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:S,visibleStartIndex:A,visibleStopIndex:C})}),y._callOnScroll=void 0,y._callOnScroll=hn(function(x,S,A){return y.props.onScroll({scrollDirection:x,scrollOffset:S,scrollUpdateWasRequested:A})}),y._getItemStyle=void 0,y._getItemStyle=function(x){var S=y.props,A=S.direction,C=S.itemSize,k=S.layout,D=y._getItemStyleCache(d&&C,d&&k,d&&A),z;if(D.hasOwnProperty(x))z=D[x];else{var M=n(y.props,x,y._instanceProps),L=a(y.props,x,y._instanceProps),X=A==="horizontal"||k==="horizontal",re=A==="rtl",ce=X?M:0;D[x]=z={position:"absolute",left:re?void 0:ce,right:re?ce:void 0,top:X?0:M,height:X?"100%":L,width:X?L:"100%"}}return z},y._getItemStyleCache=void 0,y._getItemStyleCache=hn(function(x,S,A){return{}}),y._onScrollHorizontal=function(x){var S=x.currentTarget,A=S.clientWidth,C=S.scrollLeft,k=S.scrollWidth;y.setState(function(D){if(D.scrollOffset===C)return null;var z=y.props.direction,M=C;if(z==="rtl")switch(_5()){case"negative":M=-C;break;case"positive-descending":M=k-A-C;break}return M=Math.max(0,Math.min(M,k-A)),{isScrolling:!0,scrollDirection:D.scrollOffset<C?"forward":"backward",scrollOffset:M,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._onScrollVertical=function(x){var S=x.currentTarget,A=S.clientHeight,C=S.scrollHeight,k=S.scrollTop;y.setState(function(D){if(D.scrollOffset===k)return null;var z=Math.max(0,Math.min(k,C-A));return{isScrolling:!0,scrollDirection:D.scrollOffset<z?"forward":"backward",scrollOffset:z,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._outerRefSetter=function(x){var S=y.props.outerRef;y._outerRef=x,typeof S=="function"?S(x):S!=null&&typeof S=="object"&&S.hasOwnProperty("current")&&(S.current=x)},y._resetIsScrollingDebounced=function(){y._resetIsScrollingTimeoutId!==null&&w5(y._resetIsScrollingTimeoutId),y._resetIsScrollingTimeoutId=XQ(y._resetIsScrolling,KQ)},y._resetIsScrolling=function(){y._resetIsScrollingTimeoutId=null,y.setState({isScrolling:!1},function(){y._getItemStyleCache(-1,null)})},y}g.getDerivedStateFromProps=function(y,x){return JQ(y,x),p(y),null};var w=g.prototype;return w.scrollTo=function(y){y=Math.max(0,y),this.setState(function(x){return x.scrollOffset===y?null:{scrollDirection:x.scrollOffset<y?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},w.scrollToItem=function(y,x){x===void 0&&(x="auto");var S=this.props.itemCount,A=this.state.scrollOffset;y=Math.max(0,Math.min(y,S-1)),this.scrollTo(o(this.props,y,x,A,this._instanceProps))},w.componentDidMount=function(){var y=this.props,x=y.direction,S=y.initialScrollOffset,A=y.layout;if(typeof S=="number"&&this._outerRef!=null){var C=this._outerRef;x==="horizontal"||A==="horizontal"?C.scrollLeft=S:C.scrollTop=S}this._callPropsCallbacks()},w.componentDidUpdate=function(){var y=this.props,x=y.direction,S=y.layout,A=this.state,C=A.scrollOffset,k=A.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var D=this._outerRef;if(x==="horizontal"||S==="horizontal")if(x==="rtl")switch(_5()){case"negative":D.scrollLeft=-C;break;case"positive-ascending":D.scrollLeft=C;break;default:var z=D.clientWidth,M=D.scrollWidth;D.scrollLeft=M-z-C;break}else D.scrollLeft=C;else D.scrollTop=C}this._callPropsCallbacks()},w.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&w5(this._resetIsScrollingTimeoutId)},w.render=function(){var y=this.props,x=y.children,S=y.className,A=y.direction,C=y.height,k=y.innerRef,D=y.innerElementType,z=y.innerTagName,M=y.itemCount,L=y.itemData,X=y.itemKey,re=X===void 0?QQ:X,ce=y.layout,xe=y.outerElementType,Se=y.outerTagName,Ze=y.style,Ge=y.useIsScrolling,he=y.width,Fe=this.state.isScrolling,qe=A==="horizontal"||ce==="horizontal",ze=qe?this._onScrollHorizontal:this._onScrollVertical,we=this._getRangeToRender(),ge=we[0],Ve=we[1],We=[];if(M>0)for(var Qe=ge;Qe<=Ve;Qe++)We.push(ve.exports.createElement(x,{data:L,key:re(Qe,L),index:Qe,isScrolling:Ge?Fe:void 0,style:this._getItemStyle(Qe)}));var rt=i(this.props,this._instanceProps);return ve.exports.createElement(xe||Se||"div",{className:S,onScroll:ze,ref:this._outerRefSetter,style:ar({position:"relative",height:C,width:he,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:A},Ze)},ve.exports.createElement(D||z||"div",{children:We,ref:k,style:{height:qe?"100%":rt,pointerEvents:Fe?"none":void 0,width:qe?rt:"100%"}}))},w._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var y=this.props.itemCount;if(y>0){var x=this._getRangeToRender(),S=x[0],A=x[1],C=x[2],k=x[3];this._callOnItemsRendered(S,A,C,k)}}if(typeof this.props.onScroll=="function"){var D=this.state,z=D.scrollDirection,M=D.scrollOffset,L=D.scrollUpdateWasRequested;this._callOnScroll(z,M,L)}},w._getRangeToRender=function(){var y=this.props,x=y.itemCount,S=y.overscanCount,A=this.state,C=A.isScrolling,k=A.scrollDirection,D=A.scrollOffset;if(x===0)return[0,0,0,0];var z=s(this.props,D,this._instanceProps),M=u(this.props,z,D,this._instanceProps),L=!C||k==="backward"?Math.max(1,S):1,X=!C||k==="forward"?Math.max(1,S):1;return[Math.max(0,z-L),Math.max(0,Math.min(x-1,M+X)),z,M]},g}(ve.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var JQ=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},pge=ZQ({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,s=t.itemCount,u=t.itemSize,f=t.layout,d=t.width,p=a==="horizontal"||f==="horizontal",h=p?d:o,g=Math.max(0,s*u-h),w=Math.min(g,r*u),E=Math.max(0,r*u-h+u);switch(n==="smart"&&(i>=E-h&&i<=w+h?n="auto":n="center"),n){case"start":return w;case"end":return E;case"center":{var y=Math.round(E+(w-E)/2);return y<Math.ceil(h/2)?0:y>g+Math.floor(h/2)?g:y}case"auto":default:return i>=E&&i<=w?i:i<E?E:w}},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,s=t.itemSize,u=t.layout,f=t.width,d=i==="horizontal"||u==="horizontal",p=r*s,h=d?f:a,g=Math.ceil((h+n-p)/s);return Math.max(0,Math.min(o-1,r+g-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),eZ=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},tZ=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}}(),rZ=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},nZ=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)},S5=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},iZ=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&s.return&&s.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")}}(),na=void 0;typeof window<"u"?na=window:typeof self<"u"?na=self:na=global;var dE=null,pE=null,E5=20,p_=na.clearTimeout,A5=na.setTimeout,h_=na.cancelAnimationFrame||na.mozCancelAnimationFrame||na.webkitCancelAnimationFrame,C5=na.requestAnimationFrame||na.mozRequestAnimationFrame||na.webkitRequestAnimationFrame;h_==null||C5==null?(dE=p_,pE=function(t){return A5(t,E5)}):(dE=function(t){var r=iZ(t,2),n=r[0],i=r[1];h_(n),p_(i)},pE=function(t){var r=C5(function(){p_(n),t()}),n=A5(function(){h_(r),t()},E5);return[r,n]});function aZ(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=typeof document<"u"&&document.attachEvent;if(!u){o=function(C){var k=C.__resizeTriggers__,D=k.firstElementChild,z=k.lastElementChild,M=D.firstElementChild;z.scrollLeft=z.scrollWidth,z.scrollTop=z.scrollHeight,M.style.width=D.offsetWidth+1+"px",M.style.height=D.offsetHeight+1+"px",D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight},a=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},s=function(C){if(!(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)){var k=this;o(this),this.__resizeRAF__&&dE(this.__resizeRAF__),this.__resizeRAF__=pE(function(){a(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(M){M.call(k,C)}))})}};var f=!1,d="";n="animationstart";var p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{var w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(f=!0),f===!1){for(var E=0;E<p.length;E++)if(w.style[p[E]+"AnimationName"]!==void 0){g=p[E],d="-"+g.toLowerCase()+"-",n=h[E],f=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var y=function(C){if(!C.getElementById("detectElementResize")){var k=(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=C.head||C.getElementsByTagName("head")[0],z=C.createElement("style");z.id="detectElementResize",z.type="text/css",e!=null&&z.setAttribute("nonce",e),z.styleSheet?z.styleSheet.cssText=k:z.appendChild(C.createTextNode(k)),D.appendChild(z)}},x=function(C,k){if(u)C.attachEvent("onresize",k);else{if(!C.__resizeTriggers__){var D=C.ownerDocument,z=na.getComputedStyle(C);z&&z.position==="static"&&(C.style.position="relative"),y(D),C.__resizeLast__={},C.__resizeListeners__=[],(C.__resizeTriggers__=D.createElement("div")).className="resize-triggers";var M=D.createElement("div");M.className="expand-trigger",M.appendChild(D.createElement("div"));var L=D.createElement("div");L.className="contract-trigger",C.__resizeTriggers__.appendChild(M),C.__resizeTriggers__.appendChild(L),C.appendChild(C.__resizeTriggers__),o(C),C.addEventListener("scroll",s,!0),n&&(C.__resizeTriggers__.__animationListener__=function(re){re.animationName===r&&o(C)},C.__resizeTriggers__.addEventListener(n,C.__resizeTriggers__.__animationListener__))}C.__resizeListeners__.push(k)}},S=function(C,k){if(u)C.detachEvent("onresize",k);else if(C.__resizeListeners__.splice(C.__resizeListeners__.indexOf(k),1),!C.__resizeListeners__.length){C.removeEventListener("scroll",s,!0),C.__resizeTriggers__.__animationListener__&&(C.__resizeTriggers__.removeEventListener(n,C.__resizeTriggers__.__animationListener__),C.__resizeTriggers__.__animationListener__=null);try{C.__resizeTriggers__=!C.removeChild(C.__resizeTriggers__)}catch{}}};return{addResizeListener:x,removeResizeListener:S}}var oZ=function(e){nZ(t,e);function t(){var r,n,i,a;eZ(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return a=(n=(i=S5(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var f=i.props,d=f.disableHeight,p=f.disableWidth,h=f.onResize;if(i._parentNode){var g=i._parentNode.offsetHeight||0,w=i._parentNode.offsetWidth||0,E=window.getComputedStyle(i._parentNode)||{},y=parseInt(E.paddingLeft,10)||0,x=parseInt(E.paddingRight,10)||0,S=parseInt(E.paddingTop,10)||0,A=parseInt(E.paddingBottom,10)||0,C=g-S-A,k=w-y-x;(!d&&i.state.height!==C||!p&&i.state.width!==k)&&(i.setState({height:g-S-A,width:w-y-x}),h({height:g,width:w}))}},i._setRef=function(f){i._autoSizer=f},n),S5(i,a)}return tZ(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=aZ(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,s=n.disableWidth,u=n.style,f=this.state,d=f.height,p=f.width,h={overflow:"visible"},g={},w=!1;return o||(d===0&&(w=!0),h.height=0,g.height=d),s||(p===0&&(w=!0),h.width=0,g.width=p),ve.exports.createElement("div",{className:a,ref:this._setRef,style:rZ({},h,u)},!w&&i(g))}}]),t}(ve.exports.PureComponent);oZ.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var sZ=9007199254740991,lZ="[object Arguments]",uZ="[object Function]",fZ="[object GeneratorFunction]",cZ=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,dZ=typeof self=="object"&&self&&self.Object===Object&&self,pZ=cZ||dZ||Function("return this")();function hZ(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ZC=Object.prototype,vZ=ZC.hasOwnProperty,zL=ZC.toString,T5=pZ.Symbol,gZ=ZC.propertyIsEnumerable,R5=T5?T5.isConcatSpreadable:void 0;function UL(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=mZ),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?UL(s,t-1,r,n,i):hZ(i,s):n||(i[i.length]=s)}return i}function mZ(e){return xZ(e)||bZ(e)||!!(R5&&e&&e[R5])}function yZ(e){var t=e?e.length:0;return t?UL(e,1):[]}function bZ(e){return _Z(e)&&vZ.call(e,"callee")&&(!gZ.call(e,"callee")||zL.call(e)==lZ)}var xZ=Array.isArray;function wZ(e){return e!=null&&EZ(e.length)&&!SZ(e)}function _Z(e){return CZ(e)&&wZ(e)}function SZ(e){var t=AZ(e)?zL.call(e):"";return t==uZ||t==fZ}function EZ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sZ}function AZ(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function CZ(e){return!!e&&typeof e=="object"}var hge=yZ,O5=0/0,TZ="[object Symbol]",RZ=/^\s+|\s+$/g,OZ=/^[-+]0x[0-9a-f]+$/i,IZ=/^0b[01]+$/i,PZ=/^0o[0-7]+$/i,kZ=parseInt,DZ=Object.prototype,MZ=DZ.toString;function NZ(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function I5(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function FZ(e){return!!e&&typeof e=="object"}function LZ(e){return typeof e=="symbol"||FZ(e)&&MZ.call(e)==TZ}function v_(e){if(typeof e=="number")return e;if(LZ(e))return O5;if(I5(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=I5(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(RZ,"");var r=IZ.test(e);return r||PZ.test(e)?kZ(e.slice(2),r?2:8):OZ.test(e)?O5:+e}function BZ(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=v_(r),r=r===r?r:0),t!==void 0&&(t=v_(t),t=t===t?t:0),NZ(v_(e),t,r)}var vge=BZ,P5=Object.prototype.toString,jL=function(t){var r=P5.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&P5.call(t.callee)==="[object Function]"),n},g_,k5;function $Z(){if(k5)return g_;k5=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=jL,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(h){var g=h.constructor;return g&&g.prototype===h},f={$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 h in window)try{if(!f["$"+h]&&t.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{u(window[h])}catch{return!0}}catch{return!0}return!1}(),p=function(h){if(typeof window>"u"||!d)return u(h);try{return u(h)}catch{return!1}};e=function(g){var w=g!==null&&typeof g=="object",E=r.call(g)==="[object Function]",y=n(g),x=w&&r.call(g)==="[object String]",S=[];if(!w&&!E&&!y)throw new TypeError("Object.keys called on a non-object");var A=o&&E;if(x&&g.length>0&&!t.call(g,0))for(var C=0;C<g.length;++C)S.push(String(C));if(y&&g.length>0)for(var k=0;k<g.length;++k)S.push(String(k));else for(var D in g)!(A&&D==="prototype")&&t.call(g,D)&&S.push(String(D));if(a)for(var z=p(g),M=0;M<s.length;++M)!(z&&s[M]==="constructor")&&t.call(g,s[M])&&S.push(s[M]);return S}}return g_=e,g_}var zZ=Array.prototype.slice,UZ=jL,D5=Object.keys,$0=D5?function(t){return D5(t)}:$Z(),M5=Object.keys;$0.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 UZ(n)?M5(zZ.call(n)):M5(n)})}else Object.keys=$0;return Object.keys||$0};var JC=$0,db=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},jZ=db,vl=function(){return jZ()&&!!Symbol.toStringTag},N5=typeof Symbol<"u"&&Symbol,WZ=db,eT=function(){return typeof N5!="function"||typeof Symbol!="function"||typeof N5("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:WZ()},GZ="Function.prototype.bind called on incompatible ",m_=Array.prototype.slice,qZ=Object.prototype.toString,HZ="[object Function]",VZ=function(t){var r=this;if(typeof r!="function"||qZ.call(r)!==HZ)throw new TypeError(GZ+r);for(var n=m_.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(m_.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(m_.call(arguments)))},o=Math.max(0,r.length-n.length),s=[],u=0;u<o;u++)s.push("$"+u);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var f=function(){};f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},YZ=VZ,tT=Function.prototype.bind||YZ,XZ=tT,KZ=XZ.call(Function.call,Object.prototype.hasOwnProperty),Sr,Mc=SyntaxError,WL=Function,hc=TypeError,y_=function(e){try{return WL('"use strict"; return ('+e+").constructor;")()}catch{}},hu=Object.getOwnPropertyDescriptor;if(hu)try{hu({},"")}catch{hu=null}var b_=function(){throw new hc},QZ=hu?function(){try{return arguments.callee,b_}catch{try{return hu(arguments,"callee").get}catch{return b_}}}():b_,Nf=eT(),Os=Object.getPrototypeOf||function(e){return e.__proto__},Wf={},ZZ=typeof Uint8Array>"u"?Sr:Os(Uint8Array),vc={"%AggregateError%":typeof AggregateError>"u"?Sr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Sr:ArrayBuffer,"%ArrayIteratorPrototype%":Nf?Os([][Symbol.iterator]()):Sr,"%AsyncFromSyncIteratorPrototype%":Sr,"%AsyncFunction%":Wf,"%AsyncGenerator%":Wf,"%AsyncGeneratorFunction%":Wf,"%AsyncIteratorPrototype%":Wf,"%Atomics%":typeof Atomics>"u"?Sr:Atomics,"%BigInt%":typeof BigInt>"u"?Sr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Sr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Sr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Sr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Sr:FinalizationRegistry,"%Function%":WL,"%GeneratorFunction%":Wf,"%Int8Array%":typeof Int8Array>"u"?Sr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Sr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Sr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Nf?Os(Os([][Symbol.iterator]())):Sr,"%JSON%":typeof JSON=="object"?JSON:Sr,"%Map%":typeof Map>"u"?Sr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Nf?Sr:Os(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Sr:Promise,"%Proxy%":typeof Proxy>"u"?Sr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Sr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Sr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Nf?Sr:Os(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Sr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Nf?Os(""[Symbol.iterator]()):Sr,"%Symbol%":Nf?Symbol:Sr,"%SyntaxError%":Mc,"%ThrowTypeError%":QZ,"%TypedArray%":ZZ,"%TypeError%":hc,"%Uint8Array%":typeof Uint8Array>"u"?Sr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Sr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Sr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Sr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Sr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Sr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Sr:WeakSet},JZ=function e(t){var r;if(t==="%AsyncFunction%")r=y_("async function () {}");else if(t==="%GeneratorFunction%")r=y_("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=y_("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Os(i.prototype))}return vc[t]=r,r},F5={"%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"]},Xv=tT,ky=KZ,eJ=Xv.call(Function.call,Array.prototype.concat),tJ=Xv.call(Function.apply,Array.prototype.splice),L5=Xv.call(Function.call,String.prototype.replace),Dy=Xv.call(Function.call,String.prototype.slice),rJ=Xv.call(Function.call,RegExp.prototype.exec),nJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iJ=/\\(\\)?/g,aJ=function(t){var r=Dy(t,0,1),n=Dy(t,-1);if(r==="%"&&n!=="%")throw new Mc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Mc("invalid intrinsic syntax, expected opening `%`");var i=[];return L5(t,nJ,function(a,o,s,u){i[i.length]=s?L5(u,iJ,"$1"):o||a}),i},oJ=function(t,r){var n=t,i;if(ky(F5,n)&&(i=F5[n],n="%"+i[0]+"%"),ky(vc,n)){var a=vc[n];if(a===Wf&&(a=JZ(n)),typeof a>"u"&&!r)throw new hc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Mc("intrinsic "+t+" does not exist!")},gl=function(t,r){if(typeof t!="string"||t.length===0)throw new hc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new hc('"allowMissing" argument must be a boolean');if(rJ(/^%?[^%]*%?$/,t)===null)throw new Mc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aJ(t),i=n.length>0?n[0]:"",a=oJ("%"+i+"%",r),o=a.name,s=a.value,u=!1,f=a.alias;f&&(i=f[0],tJ(n,eJ([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],g=Dy(h,0,1),w=Dy(h,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new Mc("property names with quotes must have matching quotes");if((h==="constructor"||!p)&&(u=!0),i+="."+h,o="%"+i+"%",ky(vc,o))s=vc[o];else if(s!=null){if(!(h in s)){if(!r)throw new hc("base intrinsic for "+t+" exists, but the property is not available.");return}if(hu&&d+1>=n.length){var E=hu(s,h);p=!!E,p&&"get"in E&&!("originalValue"in E.get)?s=E.get:s=s[h]}else p=ky(s,h),s=s[h];p&&!u&&(vc[o]=s)}}return s},Kv={exports:{}};(function(e){var t=tT,r=gl,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(p){var h=a(t,i,arguments);if(o&&s){var g=o(h,"length");g.configurable&&s(h,"length",{value:1+u(0,p.length-(arguments.length-1))})}return h};var f=function(){return a(t,n,arguments)};s?s(e.exports,"apply",{value:f}):e.exports.apply=f})(Kv);var GL=gl,qL=Kv.exports,sJ=qL(GL("String.prototype.indexOf")),so=function(t,r){var n=GL(t,!!r);return typeof n=="function"&&sJ(t,".prototype.")>-1?qL(n):n},lJ=vl(),uJ=so,hE=uJ("Object.prototype.toString"),pb=function(t){return lJ&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:hE(t)==="[object Arguments]"},HL=function(t){return pb(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&hE(t)!=="[object Array]"&&hE(t.callee)==="[object Function]"},fJ=function(){return pb(arguments)}();pb.isLegacyArguments=HL;var VL=fJ?pb:HL,cJ=gl,vE=cJ("%Object.defineProperty%",!0),gE=function(){if(vE)try{return vE({},"a",{value:1}),!0}catch{return!1}return!1};gE.hasArrayLengthDefineBug=function(){if(!gE())return null;try{return vE([],"length",{value:1}).length!==1}catch{return!0}};var dJ=gE,pJ=JC,hJ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",vJ=Object.prototype.toString,gJ=Array.prototype.concat,YL=Object.defineProperty,mJ=function(e){return typeof e=="function"&&vJ.call(e)==="[object Function]"},yJ=dJ(),XL=YL&&yJ,bJ=function(e,t,r,n){t in e&&(!mJ(n)||!n())||(XL?YL(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},KL=function(e,t){var r=arguments.length>2?arguments[2]:{},n=pJ(t);hJ&&(n=gJ.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)bJ(e,n[i],t[n[i]],r[n[i]])};KL.supportsDescriptors=!!XL;var Uu=KL,B5=function(e){return e!==e},QL=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||B5(t)&&B5(r))},xJ=QL,ZL=function(){return typeof Object.is=="function"?Object.is:xJ},wJ=ZL,_J=Uu,SJ=function(){var t=wJ();return _J(Object,{is:t},{is:function(){return Object.is!==t}}),t},EJ=Uu,AJ=Kv.exports,CJ=QL,JL=ZL,TJ=SJ,eB=AJ(JL(),Object);EJ(eB,{getPolyfill:JL,implementation:CJ,shim:TJ});var RJ=eB,mE=so,tB=vl(),rB,nB,yE,bE;if(tB){rB=mE("Object.prototype.hasOwnProperty"),nB=mE("RegExp.prototype.exec"),yE={};var x_=function(){throw yE};bE={toString:x_,valueOf:x_},typeof Symbol.toPrimitive=="symbol"&&(bE[Symbol.toPrimitive]=x_)}var OJ=mE("Object.prototype.toString"),IJ=Object.getOwnPropertyDescriptor,PJ="[object RegExp]",kJ=tB?function(t){if(!t||typeof t!="object")return!1;var r=IJ(t,"lastIndex"),n=r&&rB(r,"value");if(!n)return!1;try{nB(t,bE)}catch(i){return i===yE}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:OJ(t)===PJ},rT={exports:{}},uv=function(){return typeof function(){}.name=="string"},Rh=Object.getOwnPropertyDescriptor;if(Rh)try{Rh([],"length")}catch{Rh=null}uv.functionsHaveConfigurableNames=function(){if(!uv()||!Rh)return!1;var t=Rh(function(){},"name");return!!t&&!!t.configurable};var DJ=Function.prototype.bind;uv.boundFunctionsHaveNames=function(){return uv()&&typeof DJ=="function"&&function(){}.bind().name!==""};var MJ=uv;(function(e){var t=MJ.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(rT);var NJ=rT.exports,FJ=Uu.supportsDescriptors,LJ=Object.getOwnPropertyDescriptor,iB=function(){if(FJ&&/a/mig.flags==="gim"){var t=LJ(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return NJ},BJ=Uu.supportsDescriptors,$J=iB,zJ=Object.getOwnPropertyDescriptor,UJ=Object.defineProperty,jJ=TypeError,$5=Object.getPrototypeOf,WJ=/a/,GJ=function(){if(!BJ||!$5)throw new jJ("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=$J(),r=$5(WJ),n=zJ(r,"flags");return(!n||n.get!==t)&&UJ(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},qJ=Uu,HJ=Kv.exports,VJ=rT.exports,aB=iB,YJ=GJ,oB=HJ(aB());qJ(oB,{getPolyfill:aB,implementation:VJ,shim:YJ});var XJ=oB,KJ={}.toString,sB=Array.isArray||function(e){return KJ.call(e)=="[object Array]"},QJ=Date.prototype.getDay,ZJ=function(t){try{return QJ.call(t),!0}catch{return!1}},JJ=Object.prototype.toString,eee="[object Date]",tee=vl(),ree=function(t){return typeof t!="object"||t===null?!1:tee?ZJ(t):JJ.call(t)===eee},nee=String.prototype.valueOf,iee=function(t){try{return nee.call(t),!0}catch{return!1}},aee=Object.prototype.toString,oee="[object String]",see=vl(),lB=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:see?iee(t):aee.call(t)===oee},lee=Number.prototype.toString,uee=function(t){try{return lee.call(t),!0}catch{return!1}},fee=Object.prototype.toString,cee="[object Number]",dee=vl(),pee=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:dee?uee(t):fee.call(t)===cee},uB=so,hee=uB("Boolean.prototype.toString"),vee=uB("Object.prototype.toString"),gee=function(t){try{return hee(t),!0}catch{return!1}},mee="[object Boolean]",yee=vl(),bee=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:yee&&Symbol.toStringTag in t?gee(t):vee(t)===mee},xE={exports:{}},xee=Object.prototype.toString,wee=eT();if(wee){var _ee=Symbol.prototype.toString,See=/^Symbol\(.*\)$/,Eee=function(t){return typeof t.valueOf()!="symbol"?!1:See.test(_ee.call(t))};xE.exports=function(t){if(typeof t=="symbol")return!0;if(xee.call(t)!=="[object Symbol]")return!1;try{return Eee(t)}catch{return!1}}}else xE.exports=function(t){return!1};var wE={exports:{}},z5=typeof BigInt<"u"&&BigInt,Aee=function(){return typeof z5=="function"&&typeof BigInt=="function"&&typeof z5(42)=="bigint"&&typeof BigInt(42)=="bigint"},Cee=Aee();if(Cee){var Tee=BigInt.prototype.valueOf,Ree=function(t){try{return Tee.call(t),!0}catch{}return!1};wE.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:Ree(t)}}else wE.exports=function(t){return!1};var Oee=lB,Iee=pee,Pee=bee,kee=xE.exports,Dee=wE.exports,Mee=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(Oee(t))return"String";if(Iee(t))return"Number";if(Pee(t))return"Boolean";if(kee(t))return"Symbol";if(Dee(t))return"BigInt"},nT=typeof Map=="function"&&Map.prototype?Map:null,Nee=typeof Set=="function"&&Set.prototype?Set:null,My;nT||(My=function(t){return!1});var fB=nT?Map.prototype.has:null,U5=Nee?Set.prototype.has:null;!My&&!fB&&(My=function(t){return!1});var cB=My||function(t){if(!t||typeof t!="object")return!1;try{if(fB.call(t),U5)try{U5.call(t)}catch{return!0}return t instanceof nT}catch{}return!1},Fee=typeof Map=="function"&&Map.prototype?Map:null,iT=typeof Set=="function"&&Set.prototype?Set:null,Ny;iT||(Ny=function(t){return!1});var j5=Fee?Map.prototype.has:null,dB=iT?Set.prototype.has:null;!Ny&&!dB&&(Ny=function(t){return!1});var pB=Ny||function(t){if(!t||typeof t!="object")return!1;try{if(dB.call(t),j5)try{j5.call(t)}catch{return!0}return t instanceof iT}catch{}return!1},Fy=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,W5=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Ly;Fy||(Ly=function(t){return!1});var _E=Fy?Fy.prototype.has:null,w_=W5?W5.prototype.has:null;!Ly&&!_E&&(Ly=function(t){return!1});var Lee=Ly||function(t){if(!t||typeof t!="object")return!1;try{if(_E.call(t,_E),w_)try{w_.call(t,w_)}catch{return!0}return t instanceof Fy}catch{}return!1},SE={exports:{}},Bee=gl,hB=so,$ee=Bee("%WeakSet%",!0),__=hB("WeakSet.prototype.has",!0);if(__){var S_=hB("WeakMap.prototype.has",!0);SE.exports=function(t){if(!t||typeof t!="object")return!1;try{if(__(t,__),S_)try{S_(t,S_)}catch{return!0}return t instanceof $ee}catch{}return!1}}else SE.exports=function(t){return!1};var zee=cB,Uee=pB,jee=Lee,Wee=SE.exports,Gee=function(t){if(t&&typeof t=="object"){if(zee(t))return"Map";if(Uee(t))return"Set";if(jee(t))return"WeakMap";if(Wee(t))return"WeakSet"}return!1},z0={exports:{}},G5=VL;if(eT()||db()){var E_=Symbol.iterator;z0.exports=function(t){if(t!=null&&typeof t[E_]<"u")return t[E_]();if(G5(t))return Array.prototype[E_].call(t)}}else{var qee=sB,Hee=lB,q5=gl,Vee=q5("%Map%",!0),Yee=q5("%Set%",!0),_a=so,H5=_a("Array.prototype.push"),V5=_a("String.prototype.charCodeAt"),Xee=_a("String.prototype.slice"),Kee=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=V5(t,r);if(i<55296||i>56319)return r+1;var a=V5(t,r+1);return a<56320||a>57343?r+1:r+2},A_=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}}}},Y5=function(t,r){if(qee(t)||G5(t))return A_(t);if(Hee(t)){var n=0;return{next:function(){var a=Kee(t,n),o=Xee(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(!Vee&&!Yee)z0.exports=function(t){if(t!=null)return Y5(t,!0)};else{var Qee=cB,Zee=pB,X5=_a("Map.prototype.forEach",!0),K5=_a("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Q5=_a("Map.prototype.iterator",!0),Z5=_a("Set.prototype.iterator",!0),J5=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 eP=_a("Map.prototype.@@iterator",!0)||_a("Map.prototype._es6-shim iterator_",!0),tP=_a("Set.prototype.@@iterator",!0)||_a("Set.prototype._es6-shim iterator_",!0),Jee=function(t){if(Qee(t)){if(Q5)return J5(Q5(t));if(eP)return eP(t);if(X5){var r=[];return X5(t,function(i,a){H5(r,[a,i])}),A_(r)}}if(Zee(t)){if(Z5)return J5(Z5(t));if(tP)return tP(t);if(K5){var n=[];return K5(t,function(i){H5(n,i)}),A_(n)}}};z0.exports=function(t){return Jee(t)||Y5(t)}}}const ete={},tte=Object.freeze(Object.defineProperty({__proto__:null,default:ete},Symbol.toStringTag,{value:"Module"})),rte=Pu(tte);var aT=typeof Map=="function"&&Map.prototype,C_=Object.getOwnPropertyDescriptor&&aT?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,By=aT&&C_&&typeof C_.get=="function"?C_.get:null,nte=aT&&Map.prototype.forEach,oT=typeof Set=="function"&&Set.prototype,T_=Object.getOwnPropertyDescriptor&&oT?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$y=oT&&T_&&typeof T_.get=="function"?T_.get:null,ite=oT&&Set.prototype.forEach,ate=typeof WeakMap=="function"&&WeakMap.prototype,Oh=ate?WeakMap.prototype.has:null,ote=typeof WeakSet=="function"&&WeakSet.prototype,Ih=ote?WeakSet.prototype.has:null,ste=typeof WeakRef=="function"&&WeakRef.prototype,rP=ste?WeakRef.prototype.deref:null,lte=Boolean.prototype.valueOf,ute=Object.prototype.toString,fte=Function.prototype.toString,cte=String.prototype.match,sT=String.prototype.slice,$s=String.prototype.replace,dte=String.prototype.toUpperCase,nP=String.prototype.toLowerCase,vB=RegExp.prototype.test,iP=Array.prototype.concat,qa=Array.prototype.join,pte=Array.prototype.slice,aP=Math.floor,EE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R_=Object.getOwnPropertySymbols,AE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",si=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Nc?"object":"symbol")?Symbol.toStringTag:null,gB=Object.prototype.propertyIsEnumerable,oP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function sP(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||vB.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-aP(-e):aP(e);if(n!==e){var i=String(n),a=sT.call(t,i.length+1);return $s.call(i,r,"$&_")+"."+$s.call($s.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $s.call(t,r,"$&_")}var CE=rte,lP=CE.custom,uP=yB(lP)?lP:null,hte=function e(t,r,n,i){var a=r||{};if(Is(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Is(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=Is(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(Is(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(Is(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=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 xB(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?sP(t,u):u}if(typeof t=="bigint"){var f=String(t)+"n";return s?sP(t,f):f}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return TE(t)?"[Array]":"[Object]";var p=kte(a,n);if(typeof i>"u")i=[];else if(bB(i,t)>=0)return"[Circular]";function h(xe,Se,Ze){if(Se&&(i=pte.call(i),i.push(Se)),Ze){var Ge={depth:a.depth};return Is(a,"quoteStyle")&&(Ge.quoteStyle=a.quoteStyle),e(xe,Ge,n+1,i)}return e(xe,a,n+1,i)}if(typeof t=="function"&&!fP(t)){var g=Ste(t),w=Vm(t,h);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+qa.call(w,", ")+" }":"")}if(yB(t)){var E=Nc?$s.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):AE.call(t);return typeof t=="object"&&!Nc?Fp(E):E}if(Ote(t)){for(var y="<"+nP.call(String(t.nodeName)),x=t.attributes||[],S=0;S<x.length;S++)y+=" "+x[S].name+"="+mB(vte(x[S].value),"double",a);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+nP.call(String(t.nodeName))+">",y}if(TE(t)){if(t.length===0)return"[]";var A=Vm(t,h);return p&&!Pte(A)?"["+RE(A,p)+"]":"[ "+qa.call(A,", ")+" ]"}if(mte(t)){var C=Vm(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!gB.call(t,"cause")?"{ ["+String(t)+"] "+qa.call(iP.call("[cause]: "+h(t.cause),C),", ")+" }":C.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+qa.call(C,", ")+" }"}if(typeof t=="object"&&o){if(uP&&typeof t[uP]=="function"&&CE)return CE(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ete(t)){var k=[];return nte.call(t,function(xe,Se){k.push(h(Se,t,!0)+" => "+h(xe,t))}),cP("Map",By.call(t),k,p)}if(Tte(t)){var D=[];return ite.call(t,function(xe){D.push(h(xe,t))}),cP("Set",$y.call(t),D,p)}if(Ate(t))return O_("WeakMap");if(Rte(t))return O_("WeakSet");if(Cte(t))return O_("WeakRef");if(bte(t))return Fp(h(Number(t)));if(wte(t))return Fp(h(EE.call(t)));if(xte(t))return Fp(lte.call(t));if(yte(t))return Fp(h(String(t)));if(!gte(t)&&!fP(t)){var z=Vm(t,h),M=oP?oP(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",X=!M&&si&&Object(t)===t&&si in t?sT.call(ml(t),8,-1):L?"Object":"",re=M||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ce=re+(X||L?"["+qa.call(iP.call([],X||[],L||[]),": ")+"] ":"");return z.length===0?ce+"{}":p?ce+"{"+RE(z,p)+"}":ce+"{ "+qa.call(z,", ")+" }"}return String(t)};function mB(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function vte(e){return $s.call(String(e),/"/g,"&quot;")}function TE(e){return ml(e)==="[object Array]"&&(!si||!(typeof e=="object"&&si in e))}function gte(e){return ml(e)==="[object Date]"&&(!si||!(typeof e=="object"&&si in e))}function fP(e){return ml(e)==="[object RegExp]"&&(!si||!(typeof e=="object"&&si in e))}function mte(e){return ml(e)==="[object Error]"&&(!si||!(typeof e=="object"&&si in e))}function yte(e){return ml(e)==="[object String]"&&(!si||!(typeof e=="object"&&si in e))}function bte(e){return ml(e)==="[object Number]"&&(!si||!(typeof e=="object"&&si in e))}function xte(e){return ml(e)==="[object Boolean]"&&(!si||!(typeof e=="object"&&si in e))}function yB(e){if(Nc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!AE)return!1;try{return AE.call(e),!0}catch{}return!1}function wte(e){if(!e||typeof e!="object"||!EE)return!1;try{return EE.call(e),!0}catch{}return!1}var _te=Object.prototype.hasOwnProperty||function(e){return e in this};function Is(e,t){return _te.call(e,t)}function ml(e){return ute.call(e)}function Ste(e){if(e.name)return e.name;var t=cte.call(fte.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function bB(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 Ete(e){if(!By||!e||typeof e!="object")return!1;try{By.call(e);try{$y.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ate(e){if(!Oh||!e||typeof e!="object")return!1;try{Oh.call(e,Oh);try{Ih.call(e,Ih)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Cte(e){if(!rP||!e||typeof e!="object")return!1;try{return rP.call(e),!0}catch{}return!1}function Tte(e){if(!$y||!e||typeof e!="object")return!1;try{$y.call(e);try{By.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Rte(e){if(!Ih||!e||typeof e!="object")return!1;try{Ih.call(e,Ih);try{Oh.call(e,Oh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Ote(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xB(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return xB(sT.call(e,0,t.maxStringLength),t)+n}var i=$s.call($s.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ite);return mB(i,"single",t)}function Ite(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":"")+dte.call(t.toString(16))}function Fp(e){return"Object("+e+")"}function O_(e){return e+" { ? }"}function cP(e,t,r,n){var i=n?RE(r,n):qa.call(r,", ");return e+" ("+t+") {"+i+"}"}function Pte(e){for(var t=0;t<e.length;t++)if(bB(e[t],`
895
+ `)>=0)return!1;return!0}function kte(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=qa.call(Array(e.indent+1)," ");else return null;return{base:r,prev:qa.call(Array(t+1),r)}}function RE(e,t){if(e.length===0)return"";var r=`
896
+ `+t.prev+t.base;return r+qa.call(e,","+r)+`
897
+ `+t.prev}function Vm(e,t){var r=TE(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Is(e,i)?t(e[i],e):""}var a=typeof R_=="function"?R_(e):[],o;if(Nc){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)!Is(e,u)||r&&String(Number(u))===u&&u<e.length||Nc&&o["$"+u]instanceof Symbol||(vB.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e)));if(typeof R_=="function")for(var f=0;f<a.length;f++)gB.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}var lT=gl,rd=so,Dte=hte,Mte=lT("%TypeError%"),Ym=lT("%WeakMap%",!0),Xm=lT("%Map%",!0),Nte=rd("WeakMap.prototype.get",!0),Fte=rd("WeakMap.prototype.set",!0),Lte=rd("WeakMap.prototype.has",!0),Bte=rd("Map.prototype.get",!0),$te=rd("Map.prototype.set",!0),zte=rd("Map.prototype.has",!0),uT=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},Ute=function(e,t){var r=uT(e,t);return r&&r.value},jte=function(e,t,r){var n=uT(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Wte=function(e,t){return!!uT(e,t)},Gte=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new Mte("Side channel does not contain "+Dte(a))},get:function(a){if(Ym&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Nte(t,a)}else if(Xm){if(r)return Bte(r,a)}else if(n)return Ute(n,a)},has:function(a){if(Ym&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Lte(t,a)}else if(Xm){if(r)return zte(r,a)}else if(n)return Wte(n,a);return!1},set:function(a,o){Ym&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Ym),Fte(t,a,o)):Xm?(r||(r=new Xm),$te(r,a,o)):(n||(n={key:{},next:null}),jte(n,a,o))}};return i},qte=Object.prototype.hasOwnProperty,Hte=Object.prototype.toString,wB=function(t,r,n){if(Hte.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)qte.call(t,o)&&r.call(n,t[o],o,t)},I_=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Vte=typeof globalThis>"u"?Cr:globalThis,_B=function(){for(var t=[],r=0;r<I_.length;r++)typeof Vte[I_[r]]=="function"&&(t[t.length]=I_[r]);return t},P_={exports:{}},k_,dP;function Yte(){if(dP)return k_;dP=1;var e=gl,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return k_=t,k_}var pP;function SB(){return pP||(pP=1,function(e){e.exports=Yte()}(P_)),P_.exports}var D_,hP;function Xte(){if(hP)return D_;hP=1;var e=wB,t=_B,r=so,n=r("Object.prototype.toString"),i=vl(),a=typeof globalThis>"u"?Cr:globalThis,o=t(),s=r("Array.prototype.indexOf",!0)||function(w,E){for(var y=0;y<w.length;y+=1)if(w[y]===E)return y;return-1},u=r("String.prototype.slice"),f={},d=SB(),p=Object.getPrototypeOf;i&&d&&p&&e(o,function(g){var w=new a[g];if(Symbol.toStringTag in w){var E=p(w),y=d(E,Symbol.toStringTag);if(!y){var x=p(E);y=d(x,Symbol.toStringTag)}f[g]=y.get}});var h=function(w){var E=!1;return e(f,function(y,x){if(!E)try{E=y.call(w)===x}catch{}}),E};return D_=function(w){if(!w||typeof w!="object")return!1;if(!i||!(Symbol.toStringTag in w)){var E=u(n(w),8,-1);return s(o,E)>-1}return d?h(w):!1},D_}var EB=wB,Kte=_B,AB=so,Qte=AB("Object.prototype.toString"),CB=vl(),vP=typeof globalThis>"u"?Cr:globalThis,Zte=Kte(),Jte=AB("String.prototype.slice"),TB={},M_=SB(),N_=Object.getPrototypeOf;CB&&M_&&N_&&EB(Zte,function(e){if(typeof vP[e]=="function"){var t=new vP[e];if(Symbol.toStringTag in t){var r=N_(t),n=M_(r,Symbol.toStringTag);if(!n){var i=N_(r);n=M_(i,Symbol.toStringTag)}TB[e]=n.get}}});var ere=function(t){var r=!1;return EB(TB,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},tre=Xte(),rre=function(t){return tre(t)?!CB||!(Symbol.toStringTag in t)?Jte(Qte(t),8,-1):ere(t):!1},nre=JC,RB=db(),OB=so,gP=Object,ire=OB("Array.prototype.push"),mP=OB("Object.prototype.propertyIsEnumerable"),are=RB?Object.getOwnPropertySymbols:null,IB=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=gP(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=gP(arguments[i]),o=nre(a),s=RB&&(Object.getOwnPropertySymbols||are);if(s)for(var u=s(a),f=0;f<u.length;++f){var d=u[f];mP(a,d)&&ire(o,d)}for(var p=0;p<o.length;++p){var h=o[p];if(mP(a,h)){var g=a[h];n[h]=g}}}return n},F_=IB,ore=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},sre=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},PB=function(){return!Object.assign||ore()||sre()?F_:Object.assign},lre=Uu,ure=PB,fre=function(){var t=ure();return lre(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},cre=Uu,dre=Kv.exports,pre=IB,kB=PB,hre=fre,vre=dre.apply(kB()),DB=function(t,r){return vre(Object,arguments)};cre(DB,{getPolyfill:kB,implementation:pre,shim:hre});var gre=DB,yP=JC,bP=VL,xP=RJ,wP=kJ,_P=XJ,SP=sB,EP=ree,AP=Mee,mre=gl,Zo=so,CP=Gee,Fc=z0.exports,yre=Gte,TP=rre,MB=gre,RP=Zo("Date.prototype.getTime"),L_=Object.getPrototypeOf,OP=Zo("Object.prototype.toString"),zy=mre("%Set%",!0),OE=Zo("Map.prototype.has",!0),Uy=Zo("Map.prototype.get",!0),IP=Zo("Map.prototype.size",!0),jy=Zo("Set.prototype.add",!0),NB=Zo("Set.prototype.delete",!0),Wy=Zo("Set.prototype.has",!0),U0=Zo("Set.prototype.size",!0);function PP(e,t,r,n){for(var i=Fc(e),a;(a=i.next())&&!a.done;)if(qo(t,a.value,r,n))return NB(e,a.value),!0;return!1}function FB(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 bre(e,t,r,n,i,a){var o=FB(r);if(o!=null)return o;var s=Uy(t,o),u=MB({},i,{strict:!1});return typeof s>"u"&&!OE(t,o)||!qo(n,s,u,a)?!1:!OE(e,o)&&qo(n,s,u,a)}function xre(e,t,r){var n=FB(r);return n!=null?n:Wy(t,n)&&!Wy(e,n)}function kP(e,t,r,n,i,a){for(var o=Fc(e),s,u;(s=o.next())&&!s.done;)if(u=s.value,qo(r,u,i,a)&&qo(n,Uy(t,u),i,a))return NB(e,u),!0;return!1}function qo(e,t,r,n){var i=r||{};if(i.strict?xP(e,t):e===t)return!0;var a=AP(e),o=AP(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?xP(e,t):e==t;var s=n.has(e),u=n.has(t),f;if(s&&u){if(n.get(e)===n.get(t))return!0}else f={};return s||n.set(e,f),u||n.set(t,f),Sre(e,t,i,n)}function DP(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 wre(e,t,r,n){if(U0(e)!==U0(t))return!1;for(var i=Fc(e),a=Fc(t),o,s,u;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")u||(u=new zy),jy(u,o.value);else if(!Wy(t,o.value)){if(r.strict||!xre(e,t,o.value))return!1;u||(u=new zy),jy(u,o.value)}if(u){for(;(s=a.next())&&!s.done;)if(s.value&&typeof s.value=="object"){if(!PP(u,s.value,r.strict,n))return!1}else if(!r.strict&&!Wy(e,s.value)&&!PP(u,s.value,r.strict,n))return!1;return U0(u)===0}return!0}function _re(e,t,r,n){if(IP(e)!==IP(t))return!1;for(var i=Fc(e),a=Fc(t),o,s,u,f,d,p;(o=i.next())&&!o.done;)if(f=o.value[0],d=o.value[1],f&&typeof f=="object")u||(u=new zy),jy(u,f);else if(p=Uy(t,f),typeof p>"u"&&!OE(t,f)||!qo(d,p,r,n)){if(r.strict||!bre(e,t,f,d,r,n))return!1;u||(u=new zy),jy(u,f)}if(u){for(;(s=a.next())&&!s.done;)if(f=s.value[0],p=s.value[1],f&&typeof f=="object"){if(!kP(u,e,f,p,r,n))return!1}else if(!r.strict&&(!e.has(f)||!qo(Uy(e,f),p,r,n))&&!kP(u,e,f,p,MB({},r,{strict:!1}),n))return!1;return U0(u)===0}return!0}function Sre(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||OP(e)!==OP(t)||bP(e)!==bP(t))return!1;var o=SP(e),s=SP(t);if(o!==s)return!1;var u=e instanceof Error,f=t instanceof Error;if(u!==f||(u||f)&&(e.name!==t.name||e.message!==t.message))return!1;var d=wP(e),p=wP(t);if(d!==p||(d||p)&&(e.source!==t.source||_P(e)!==_P(t)))return!1;var h=EP(e),g=EP(t);if(h!==g||(h||g)&&RP(e)!==RP(t)||r.strict&&L_&&L_(e)!==L_(t)||TP(e)!==TP(t))return!1;var w=DP(e),E=DP(t);if(w!==E)return!1;if(w||E){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 y=yP(e),x=yP(t);if(y.length!==x.length)return!1;for(y.sort(),x.sort(),i=y.length-1;i>=0;i--)if(y[i]!=x[i])return!1;for(i=y.length-1;i>=0;i--)if(a=y[i],!qo(e[a],t[a],r,n))return!1;var S=CP(e),A=CP(t);return S!==A?!1:S==="Set"||A==="Set"?wre(e,t,r,n):S==="Map"?_re(e,t,r,n):!0}var gge=function(t,r,n){return qo(t,r,n,yre())},Ere={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]};const fv=Ere,LB={};for(const e of Object.keys(fv))LB[fv[e]]=e;const Ht={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var BB=Ht;for(const e of Object.keys(Ht)){if(!("channels"in Ht[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ht[e]))throw new Error("missing channel labels property: "+e);if(Ht[e].labels.length!==Ht[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Ht[e];delete Ht[e].channels,delete Ht[e].labels,Object.defineProperty(Ht[e],"channels",{value:t}),Object.defineProperty(Ht[e],"labels",{value:r})}Ht.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let s,u;a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);const f=(i+a)/2;return a===i?u=0:f<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,f*100]};Ht.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,s=e[1]/255,u=e[2]/255,f=Math.max(o,s,u),d=f-Math.min(o,s,u),p=function(h){return(f-h)/6/d+1/2};return d===0?(i=0,a=0):(a=d/f,t=p(o),r=p(s),n=p(u),o===f?i=n-r:s===f?i=1/3+t-n:u===f&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,f*100]};Ht.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=Ht.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]};Ht.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function Are(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Ht.rgb.keyword=function(e){const t=LB[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(fv)){const a=fv[i],o=Are(e,a);o<r&&(r=o,n=i)}return n};Ht.keyword.rgb=function(e){return fv[e]};Ht.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]};Ht.rgb.lab=function(e){const t=Ht.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),s=200*(n-i);return[a,o,s]};Ht.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let f=0;f<3;f++)a=t+1/3*-(f-1),a<0&&a++,a>1&&a--,6*a<1?o=s+(i-s)*6*a:2*a<1?o=i:3*a<2?o=s+(i-s)*(2/3-a)*6:o=s,u[f]=o*255;return u};Ht.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,s=n===0?2*i/(a+i):2*r/(n+r);return[t,s*100,o*100]};Ht.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};Ht.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const s=(2-r)*i;return a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};Ht.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),s=1-n;a=6*t-o,(o&1)!==0&&(a=1-a);const u=r+a*(s-r);let f,d,p;switch(o){default:case 6:case 0:f=s,d=u,p=r;break;case 1:f=u,d=s,p=r;break;case 2:f=r,d=s,p=u;break;case 3:f=r,d=u,p=s;break;case 4:f=u,d=r,p=s;break;case 5:f=s,d=r,p=u;break}return[f*255,d*255,p*255]};Ht.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]};Ht.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};Ht.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]};Ht.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const s=a**3,u=i**3,f=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=f>.008856?f:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};Ht.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]};Ht.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]};Ht.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?Ht.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};Ht.hsv.ansi16=function(e){return Ht.rgb.ansi16(Ht.hsv.rgb(e),e[2])};Ht.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Ht.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]};Ht.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};Ht.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Ht.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};Ht.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let s,u;return o<1?s=a/(1-o):s=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,s*100]};Ht.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};Ht.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};Ht.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Ht.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};Ht.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};Ht.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Ht.hwb.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=1-r,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};Ht.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Ht.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Ht.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Ht.gray.hsl=function(e){return[0,0,e[0]]};Ht.gray.hsv=Ht.gray.hsl;Ht.gray.hwb=function(e){return[0,100,e[0]]};Ht.gray.cmyk=function(e){return[0,0,0,e[0]]};Ht.gray.lab=function(e){return[e[0],0,0]};Ht.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ht.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Gy=BB;function Cre(){const e={},t=Object.keys(Gy);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Tre(e){const t=Cre(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(Gy[n]);for(let a=i.length,o=0;o<a;o++){const s=i[o],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function Rre(e,t){return function(r){return t(e(r))}}function Ore(e,t){const r=[t[e].parent,e];let n=Gy[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=Rre(Gy[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Ire=function(e){const t=Tre(e),r={},n=Object.keys(t);for(let i=n.length,a=0;a<i;a++){const o=n[a];t[o].parent!==null&&(r[o]=Ore(o,t))}return r};const IE=BB,Pre=Ire,Gf={},kre=Object.keys(IE);function Dre(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Mre(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o<a;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}kre.forEach(e=>{Gf[e]={},Object.defineProperty(Gf[e],"channels",{value:IE[e].channels}),Object.defineProperty(Gf[e],"labels",{value:IE[e].labels});const t=Pre(e);Object.keys(t).forEach(n=>{const i=t[n];Gf[e][n]=Mre(i),Gf[e][n].raw=Dre(i)})});var mge=Gf,$B="Expected a function",MP=0/0,Nre="[object Symbol]",Fre=/^\s+|\s+$/g,Lre=/^[-+]0x[0-9a-f]+$/i,Bre=/^0b[01]+$/i,$re=/^0o[0-7]+$/i,zre=parseInt,Ure=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,jre=typeof self=="object"&&self&&self.Object===Object&&self,Wre=Ure||jre||Function("return this")(),Gre=Object.prototype,qre=Gre.toString,Hre=Math.max,Vre=Math.min,B_=function(){return Wre.Date.now()};function Yre(e,t,r){var n,i,a,o,s,u,f=0,d=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError($B);t=NP(t)||0,qy(r)&&(d=!!r.leading,p="maxWait"in r,a=p?Hre(NP(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(D){var z=n,M=i;return n=i=void 0,f=D,o=e.apply(M,z),o}function w(D){return f=D,s=setTimeout(x,t),d?g(D):o}function E(D){var z=D-u,M=D-f,L=t-z;return p?Vre(L,a-M):L}function y(D){var z=D-u,M=D-f;return u===void 0||z>=t||z<0||p&&M>=a}function x(){var D=B_();if(y(D))return S(D);s=setTimeout(x,E(D))}function S(D){return s=void 0,h&&n?g(D):(n=i=void 0,o)}function A(){s!==void 0&&clearTimeout(s),f=0,n=u=i=s=void 0}function C(){return s===void 0?o:S(B_())}function k(){var D=B_(),z=y(D);if(n=arguments,i=this,u=D,z){if(s===void 0)return w(u);if(p)return s=setTimeout(x,t),g(u)}return s===void 0&&(s=setTimeout(x,t)),o}return k.cancel=A,k.flush=C,k}function Xre(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($B);return qy(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Yre(e,t,{leading:n,maxWait:t,trailing:i})}function qy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kre(e){return!!e&&typeof e=="object"}function Qre(e){return typeof e=="symbol"||Kre(e)&&qre.call(e)==Nre}function NP(e){if(typeof e=="number")return e;if(Qre(e))return MP;if(qy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Fre,"");var r=Bre.test(e);return r||$re.test(e)?zre(e.slice(2),r?2:8):Lre.test(e)?MP:+e}var yge=Xre,zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(e){return"Symbol("+e+")"};function fT(){}var zB=Number.isNaN||function(e){return e!==e},UB=fT;function ka(e){return typeof e=="object"&&e!==null||typeof e=="function"}function PE(e){return e.slice()}function Zre(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function jB(e){return!(Jre(e)===!1||e===1/0)}function Jre(e){return!(typeof e!="number"||zB(e)||e<0)}function WB(e,t,r){if(typeof e!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function vu(e,t,r,n){var i=e[t];if(i!==void 0){if(typeof i!="function")throw new TypeError(i+" is not a method");switch(r){case 0:return function(){return FP(i,e,n)};case 1:return function(a){var o=[a].concat(n);return FP(i,e,o)}}}return function(){return bn(void 0)}}function cT(e,t,r){var n=e[t];if(n!==void 0)return WB(n,e,r)}function FP(e,t,r){try{return bn(WB(e,t,r))}catch(n){return nr(n)}}function Hy(e){return!1}function Vy(e){if(e=Number(e),zB(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function GB(e){if(e===void 0)return function(){return 1};if(typeof e!="function")throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}var dT=Promise,ene=Promise.prototype.then,tne=Promise.resolve.bind(dT),rne=Promise.reject.bind(dT);function oa(e){return new dT(e)}function bn(e){return tne(e)}function nr(e){return rne(e)}function No(e,t,r){return ene.call(e,t,r)}function Da(e,t,r){No(No(e,t,r),void 0,UB)}function $_(e,t){Da(e,t)}function qB(e,t){Da(e,void 0,t)}function Yy(e,t,r){return No(e,t,r)}function nd(e){No(e,void 0,UB)}var LP=16384,io=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(t){var r=this._back,n=r;r._elements.length===LP-1&&(n={_elements:[],_next:void 0}),r._elements.push(t),n!==r&&(this._back=n,r._next=n),++this._size},e.prototype.shift=function(){var t=this._front,r=t,n=this._cursor,i=n+1,a=t._elements,o=a[n];return i===LP&&(r=t._next,i=0),--this._size,this._cursor=i,t!==r&&(this._front=r),a[n]=void 0,o},e.prototype.forEach=function(t){for(var r=this._cursor,n=this._front,i=n._elements;(r!==i.length||n._next!==void 0)&&!(r===i.length&&(n=n._next,i=n._elements,r=0,i.length===0));)t(i[r]),++r},e.prototype.peek=function(){var t=this._front,r=this._cursor;return t._elements[r]},e}();function Ra(e,t,r){var n=null;r===!0&&(n=Object.prototype);var i=Object.create(n);return i.value=e,i.done=t,i}function HB(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,t._state==="readable"?hT(e):t._state==="closed"?nne(e):VB(e,t._storedError)}function pT(e,t){var r=e._ownerReadableStream;return gu(r,t)}function gc(e){e._ownerReadableStream._state==="readable"?vT(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ine(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function Lc(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function hT(e){e._closedPromise=oa(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function VB(e,t){hT(e),vT(e,t)}function nne(e){hT(e),YB(e)}function vT(e,t){nd(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function ine(e,t){VB(e,t)}function YB(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var gT=zo("[[CancelSteps]]"),mT=zo("[[PullSteps]]");function hb(e,t){t===void 0&&(t=!1);var r=new ane(e);return r._forAuthorCode=t,r}function XB(e){var t=oa(function(r,n){var i={_resolve:r,_reject:n};e._reader._readRequests.push(i)});return t}function yT(e,t,r){var n=e._reader,i=n._readRequests.shift();i._resolve(Ra(t,r,n._forAuthorCode))}function vb(e){return e._reader._readRequests.length}function KB(e){var t=e._reader;return!(t===void 0||!fu(t))}var ane=function(){function e(t){if(Ga(t)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(zs(t)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");HB(this,t),this._readRequests=new io}return Object.defineProperty(e.prototype,"closed",{get:function(){return fu(this)?this._closedPromise:nr(Km("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return fu(this)?this._ownerReadableStream===void 0?nr(Lc("cancel")):pT(this,t):nr(Km("cancel"))},e.prototype.read=function(){return fu(this)?this._ownerReadableStream===void 0?nr(Lc("read from")):gb(this):nr(Km("read"))},e.prototype.releaseLock=function(){if(!fu(this))throw Km("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");gc(this)}},e}();function fu(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function gb(e){var t=e._ownerReadableStream;return t._disturbed=!0,t._state==="closed"?bn(Ra(void 0,!0,e._forAuthorCode)):t._state==="errored"?nr(t._storedError):t._readableStreamController[mT]()}function Km(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}var z_,Xy;typeof zo.asyncIterator=="symbol"&&(Xy=(z_={},z_[zo.asyncIterator]=function(){return this},z_),Object.defineProperty(Xy,zo.asyncIterator,{enumerable:!1}));var mb={next:function(){if(BP(this)===!1)return nr($P("next"));var e=this._asyncIteratorReader;return e._ownerReadableStream===void 0?nr(Lc("iterate")):Yy(gb(e),function(t){var r=t.done;r&&gc(e);var n=t.value;return Ra(n,r,!0)})},return:function(e){if(BP(this)===!1)return nr($P("next"));var t=this._asyncIteratorReader;if(t._ownerReadableStream===void 0)return nr(Lc("finish iterating"));if(t._readRequests.length>0)return nr(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(this._preventCancel===!1){var r=pT(t,e);return gc(t),Yy(r,function(){return Ra(e,!0,!0)})}return gc(t),bn(Ra(e,!0,!0))}};Xy!==void 0&&Object.setPrototypeOf(mb,Xy);Object.defineProperty(mb,"next",{enumerable:!1});Object.defineProperty(mb,"return",{enumerable:!1});function one(e,t){t===void 0&&(t=!1);var r=hb(e),n=Object.create(mb);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function BP(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader"))}function $P(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function bT(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function xT(e,t,r){if(r=Number(r),!jB(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function sne(e){var t=e._queue.peek();return t.value}function yl(e){e._queue=new io,e._queueTotalSize=0}var QB=zo("[[AbortSteps]]"),ZB=zo("[[ErrorSteps]]"),bge=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r={}),lne(this);var n=r.size,i=r.highWaterMark,a=t.type;if(a!==void 0)throw new RangeError("Invalid type is specified");var o=GB(n);i===void 0&&(i=1),i=Vy(i),Ane(this,t,i,o)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(cu(this)===!1)throw Zm("locked");return mc(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(t){return cu(this)===!1?nr(Zm("abort")):mc(this)===!0?nr(new TypeError("Cannot abort a stream that already has a writer")):Ky(this,t)},e.prototype.close=function(){return cu(this)===!1?nr(Zm("close")):mc(this)===!0?nr(new TypeError("Cannot close a stream that already has a writer")):to(this)===!0?nr(new TypeError("Cannot close an already-closing stream")):e6(this)},e.prototype.getWriter=function(){if(cu(this)===!1)throw Zm("getWriter");return JB(this)},e}();function JB(e){return new mne(e)}function lne(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new io,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function cu(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_writableStreamController"))}function mc(e){return e._writer!==void 0}function Ky(e,t){var r=e._state;if(r==="closed"||r==="errored")return bn(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;var n=!1;r==="erroring"&&(n=!0,t=void 0);var i=oa(function(a,o){e._pendingAbortRequest={_promise:void 0,_resolve:a,_reject:o,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,n===!1&&_T(e,t),i}function e6(e){var t=e._state;if(t==="closed"||t==="errored")return nr(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=oa(function(i,a){var o={_resolve:i,_reject:a};e._closeRequest=o}),n=e._writer;return n!==void 0&&e._backpressure===!0&&t==="writable"&&RT(n),Cne(e._writableStreamController),r}function une(e){var t=oa(function(r,n){var i={_resolve:r,_reject:n};e._writeRequests.push(i)});return t}function wT(e,t){var r=e._state;if(r==="writable"){_T(e,t);return}ST(e)}function _T(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;n!==void 0&&r6(n,t),hne(e)===!1&&r._started===!0&&ST(e)}function ST(e){e._state="errored",e._writableStreamController[ZB]();var t=e._storedError;if(e._writeRequests.forEach(function(i){i._reject(t)}),e._writeRequests=new io,e._pendingAbortRequest===void 0){Qm(e);return}var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring===!0){r._reject(t),Qm(e);return}var n=e._writableStreamController[QB](r._reason);Da(n,function(){r._resolve(),Qm(e)},function(i){r._reject(i),Qm(e)})}function fne(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function cne(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,wT(e,t)}function dne(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;t==="erroring"&&(e._storedError=void 0,e._pendingAbortRequest!==void 0&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;r!==void 0&&l6(r)}function pne(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,e._pendingAbortRequest!==void 0&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),wT(e,t)}function to(e){return!(e._closeRequest===void 0&&e._inFlightCloseRequest===void 0)}function hne(e){return!(e._inFlightWriteRequest===void 0&&e._inFlightCloseRequest===void 0)}function vne(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function gne(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Qm(e){e._closeRequest!==void 0&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;t!==void 0&&TT(t,e._storedError)}function ET(e,t){var r=e._writer;r!==void 0&&t!==e._backpressure&&(t===!0?Dne(r):RT(r)),e._backpressure=t}var mne=function(){function e(t){if(cu(t)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(mc(t)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var r=t._state;if(r==="writable")to(t)===!1&&t._backpressure===!0?xb(this):zP(this),Qy(this);else if(r==="erroring")kE(this,t._storedError),Qy(this);else if(r==="closed")zP(this),Pne(this);else{var n=t._storedError;kE(this,n),s6(this,n)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return Hl(this)===!1?nr(Vl("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Hl(this)===!1)throw Vl("desiredSize");if(this._ownerWritableStream===void 0)throw sh("desiredSize");return wne(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return Hl(this)===!1?nr(Vl("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(t){return Hl(this)===!1?nr(Vl("abort")):this._ownerWritableStream===void 0?nr(sh("abort")):yne(this,t)},e.prototype.close=function(){if(Hl(this)===!1)return nr(Vl("close"));var t=this._ownerWritableStream;return t===void 0?nr(sh("close")):to(t)===!0?nr(new TypeError("Cannot close an already-closing stream")):t6(this)},e.prototype.releaseLock=function(){if(Hl(this)===!1)throw Vl("releaseLock");var t=this._ownerWritableStream;t!==void 0&&n6(this)},e.prototype.write=function(t){return Hl(this)===!1?nr(Vl("write")):this._ownerWritableStream===void 0?nr(sh("write to")):i6(this,t)},e}();function Hl(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream"))}function yne(e,t){var r=e._ownerWritableStream;return Ky(r,t)}function t6(e){var t=e._ownerWritableStream;return e6(t)}function bne(e){var t=e._ownerWritableStream,r=t._state;return to(t)===!0||r==="closed"?bn(void 0):r==="errored"?nr(t._storedError):t6(e)}function xne(e,t){e._closedPromiseState==="pending"?TT(e,t):kne(e,t)}function r6(e,t){e._readyPromiseState==="pending"?u6(e,t):Mne(e,t)}function wne(e){var t=e._ownerWritableStream,r=t._state;return r==="errored"||r==="erroring"?null:r==="closed"?0:a6(t._writableStreamController)}function n6(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");r6(e,r),xne(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function i6(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,i=Tne(n,t);if(r!==e._ownerWritableStream)return nr(sh("write to"));var a=r._state;if(a==="errored")return nr(r._storedError);if(to(r)===!0||a==="closed")return nr(new TypeError("The stream is closing or closed and cannot be written to"));if(a==="erroring")return nr(r._storedError);var o=une(r);return Rne(n,t,i),o}var _ne=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(t){if(Sne(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var r=this._controlledWritableStream._state;r==="writable"&&o6(this,t)},e.prototype[QB]=function(t){var r=this._abortAlgorithm(t);return yb(this),r},e.prototype[ZB]=function(){yl(this)},e}();function Sne(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream"))}function Ene(e,t,r,n,i,a,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,yl(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=a;var u=CT(t);ET(e,u);var f=r(),d=bn(f);Da(d,function(){t._started=!0,bb(t)},function(p){t._started=!0,wT(e,p)})}function Ane(e,t,r,n){var i=Object.create(_ne.prototype);function a(){return cT(t,"start",[i])}var o=vu(t,"write",1,[i]),s=vu(t,"close",0,[]),u=vu(t,"abort",1,[]);Ene(e,i,a,o,s,u,r,n)}function yb(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Cne(e){xT(e,"close",0),bb(e)}function Tne(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return AT(e,r),1}}function a6(e){return e._strategyHWM-e._queueTotalSize}function Rne(e,t,r){var n={chunk:t};try{xT(e,n,r)}catch(o){AT(e,o);return}var i=e._controlledWritableStream;if(to(i)===!1&&i._state==="writable"){var a=CT(e);ET(i,a)}bb(e)}function bb(e){var t=e._controlledWritableStream;if(e._started!==!1&&t._inFlightWriteRequest===void 0){var r=t._state;if(r==="erroring"){ST(t);return}if(e._queue.length!==0){var n=sne(e);n==="close"?One(e):Ine(e,n.chunk)}}}function AT(e,t){e._controlledWritableStream._state==="writable"&&o6(e,t)}function One(e){var t=e._controlledWritableStream;vne(t),bT(e);var r=e._closeAlgorithm();yb(e),Da(r,function(){dne(t)},function(n){pne(t,n)})}function Ine(e,t){var r=e._controlledWritableStream;gne(r);var n=e._writeAlgorithm(t);Da(n,function(){fne(r);var i=r._state;if(bT(e),to(r)===!1&&i==="writable"){var a=CT(e);ET(r,a)}bb(e)},function(i){r._state==="writable"&&yb(e),cne(r,i)})}function CT(e){var t=a6(e);return t<=0}function o6(e,t){var r=e._controlledWritableStream;yb(e),_T(r,t)}function Zm(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function Vl(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function sh(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Qy(e){e._closedPromise=oa(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function s6(e,t){Qy(e),TT(e,t)}function Pne(e){Qy(e),l6(e)}function TT(e,t){nd(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function kne(e,t){s6(e,t)}function l6(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function xb(e){e._readyPromise=oa(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function kE(e,t){xb(e),u6(e,t)}function zP(e){xb(e),RT(e)}function u6(e,t){nd(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function Dne(e){xb(e)}function Mne(e,t){kE(e,t)}function RT(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function UP(e){if(typeof e!="object"||e===null)return!1;try{return typeof e.aborted=="boolean"}catch{return!1}}var jP=typeof DOMException<"u"?DOMException:void 0;function Nne(e){if(!(typeof e=="function"||typeof e=="object"))return!1;try{return new e,!0}catch{return!1}}function Fne(){var e=function(r,n){this.message=r||"",this.name=n||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Lne=Nne(jP)?jP:Fne();function WP(e,t,r,n,i,a){var o=hb(e),s=JB(t);e._disturbed=!0;var u=!1,f=bn(void 0);return oa(function(d,p){var h;if(a!==void 0){if(h=function(){var D=new Lne("Aborted","AbortError"),z=[];n===!1&&z.push(function(){return t._state==="writable"?Ky(t,D):bn(void 0)}),i===!1&&z.push(function(){return e._state==="readable"?gu(e,D):bn(void 0)}),A(function(){return Promise.all(z.map(function(M){return M()}))},!0,D)},a.aborted===!0){h();return}a.addEventListener("abort",h)}function g(){return oa(function(D,z){function M(L){L?D():No(w(),M,z)}M(!1)})}function w(){return u===!0?bn(!0):No(s._readyPromise,function(){return No(gb(o),function(D){return D.done===!0?!0:(f=No(i6(s,D.value),void 0,fT),!1)})})}if(x(e,o._closedPromise,function(D){n===!1?A(function(){return Ky(t,D)},!0,D):C(!0,D)}),x(t,s._closedPromise,function(D){i===!1?A(function(){return gu(e,D)},!0,D):C(!0,D)}),S(e,o._closedPromise,function(){r===!1?A(function(){return bne(s)}):C()}),to(t)===!0||t._state==="closed"){var E=new TypeError("the destination writable stream closed before all data could be piped to it");i===!1?A(function(){return gu(e,E)},!0,E):C(!0,E)}nd(g());function y(){var D=f;return No(f,function(){return D!==f?y():void 0})}function x(D,z,M){D._state==="errored"?M(D._storedError):qB(z,M)}function S(D,z,M){D._state==="closed"?M():$_(z,M)}function A(D,z,M){if(u===!0)return;u=!0,t._state==="writable"&&to(t)===!1?$_(y(),L):L();function L(){Da(D(),function(){return k(z,M)},function(X){return k(!0,X)})}}function C(D,z){u!==!0&&(u=!0,t._state==="writable"&&to(t)===!1?$_(y(),function(){return k(D,z)}):k(D,z))}function k(D,z){n6(s),gc(o),a!==void 0&&a.removeEventListener("abort",h),D?p(z):d(void 0)}})}var f6=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Jm(this)===!1)throw e0("desiredSize");return OT(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(Jm(this)===!1)throw e0("close");if(dv(this)===!1)throw new TypeError("The stream is not in a state that permits close");Jy(this)},e.prototype.enqueue=function(t){if(Jm(this)===!1)throw e0("enqueue");if(dv(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return e1(this,t)},e.prototype.error=function(t){if(Jm(this)===!1)throw e0("error");ll(this,t)},e.prototype[gT]=function(t){yl(this);var r=this._cancelAlgorithm(t);return Zy(this),r},e.prototype[mT]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var r=bT(this);return this._closeRequested===!0&&this._queue.length===0?(Zy(this),Zv(t)):cv(this),bn(Ra(r,!1,t._reader._forAuthorCode))}var n=XB(t);return cv(this),n},e}();function Jm(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function cv(e){var t=c6(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();Da(r,function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,cv(e))},function(n){ll(e,n)})}}function c6(e){var t=e._controlledReadableStream;if(dv(e)===!1||e._started===!1)return!1;if(zs(t)===!0&&vb(t)>0)return!0;var r=OT(e);return r>0}function Zy(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Jy(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(Zy(e),Zv(t))}function e1(e,t){var r=e._controlledReadableStream;if(zs(r)===!0&&vb(r)>0)yT(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(i){throw ll(e,i),i}try{xT(e,t,n)}catch(i){throw ll(e,i),i}}cv(e)}function ll(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(yl(e),Zy(e),_6(r,t))}function OT(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function Bne(e){return c6(e)!==!0}function dv(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function d6(e,t,r,n,i,a,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,yl(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=a,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t;var s=r();Da(bn(s),function(){t._started=!0,cv(t)},function(u){ll(t,u)})}function $ne(e,t,r,n){var i=Object.create(f6.prototype);function a(){return cT(t,"start",[i])}var o=vu(t,"pull",0,[i]),s=vu(t,"cancel",1,[]);d6(e,i,a,o,s,r,n)}function e0(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function zne(e,t){var r=hb(e),n=!1,i=!1,a=!1,o,s,u,f,d,p=oa(function(y){d=y});function h(){if(n===!0)return bn(void 0);n=!0;var y=Yy(gb(r),function(x){n=!1;var S=x.done;if(S===!0){i===!1&&Jy(u._readableStreamController),a===!1&&Jy(f._readableStreamController);return}var A=x.value,C=A,k=A;i===!1&&e1(u._readableStreamController,C),a===!1&&e1(f._readableStreamController,k)});return nd(y),bn(void 0)}function g(y){if(i=!0,o=y,a===!0){var x=PE([o,s]),S=gu(e,x);d(S)}return p}function w(y){if(a=!0,s=y,i===!0){var x=PE([o,s]),S=gu(e,x);d(S)}return p}function E(){}return u=qP(E,h,g),f=qP(E,h,w),qB(r._closedPromise,function(y){ll(u._readableStreamController,y),ll(f._readableStreamController,y)}),[u,f]}var Une=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},jne=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(U_(this)===!1)throw j_("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(t){if(U_(this)===!1)throw j_("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Hy(this._view.buffer),Qne(this._associatedReadableByteStreamController,t)},e.prototype.respondWithNewView=function(t){if(U_(this)===!1)throw j_("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");Hy(t.buffer),Zne(this._associatedReadableByteStreamController,t)},e}(),Wne=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(qf(this)===!1)throw Lp("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(jne.prototype);tie(n,this,r),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(qf(this)===!1)throw Lp("desiredSize");return b6(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(qf(this)===!1)throw Lp("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if(t!=="readable")throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");Xne(this)},e.prototype.enqueue=function(t){if(qf(this)===!1)throw Lp("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var r=this._controlledReadableByteStream._state;if(r!=="readable")throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");Hy(t.buffer),Kne(this,t)},e.prototype.error=function(t){if(qf(this)===!1)throw Lp("error");Qv(this,t)},e.prototype[gT]=function(t){if(this._pendingPullIntos.length>0){var r=this._pendingPullIntos.peek();r.bytesFilled=0}yl(this);var n=this._cancelAlgorithm(t);return wb(this),n},e.prototype[mT]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,g6(this);var n=void 0;try{n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(u){return nr(u)}return bn(Ra(n,!1,t._reader._forAuthorCode))}var i=this._autoAllocateChunkSize;if(i!==void 0){var a=void 0;try{a=new ArrayBuffer(i)}catch(u){return nr(u)}var o={buffer:a,byteOffset:0,byteLength:i,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var s=XB(t);return ju(this),s},e}();function qf(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function U_(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function ju(e){var t=Yne(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();Da(r,function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,ju(e))},function(n){Qv(e,n)})}}function Gne(e){PT(e),e._pendingPullIntos=new io}function IT(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=p6(t);t.readerType==="default"?yT(e,n,r):nie(e,n,r)}function p6(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function j0(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function h6(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+i,o=a-a%r,s=i,u=!1;o>n&&(s=o-t.bytesFilled,u=!0);for(var f=e._queue;s>0;){var d=f.peek(),p=Math.min(s,d.byteLength),h=t.byteOffset+t.bytesFilled;Zre(t.buffer,h,d.buffer,d.byteOffset,p),d.byteLength===p?f.shift():(d.byteOffset+=p,d.byteLength-=p),e._queueTotalSize-=p,v6(e,p,t),s-=p}return u}function v6(e,t,r){PT(e),r.bytesFilled+=t}function g6(e){e._queueTotalSize===0&&e._closeRequested===!0?(wb(e),Zv(e._controlledReadableByteStream)):ju(e)}function PT(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function m6(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos.peek();h6(e,t)===!0&&(kT(e),IT(e._controlledReadableByteStream,t))}}function qne(e,t){var r=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=t.buffer,o={buffer:a,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),GP(r);if(r._state==="closed"){var s=new i(o.buffer,o.byteOffset,0);return bn(Ra(s,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(h6(e,o)===!0){var u=p6(o);return g6(e),bn(Ra(u,!1,r._reader._forAuthorCode))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return Qv(e,f),nr(f)}}e._pendingPullIntos.push(o);var d=GP(r);return ju(e),d}function Hne(e,t){t.buffer=t.buffer;var r=e._controlledReadableByteStream;if(DT(r)===!0)for(;x6(r)>0;){var n=kT(e);IT(r,n)}}function Vne(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(v6(e,t,r),!(r.bytesFilled<r.elementSize)){kT(e);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,a=r.buffer.slice(i-n,i);j0(e,a,0,a.byteLength)}r.buffer=r.buffer,r.bytesFilled-=n,IT(e._controlledReadableByteStream,r),m6(e)}}function y6(e,t){var r=e._pendingPullIntos.peek(),n=e._controlledReadableByteStream;if(n._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Hne(e,r)}else Vne(e,t,r);ju(e)}function kT(e){var t=e._pendingPullIntos.shift();return PT(e),t}function Yne(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(KB(t)===!0&&vb(t)>0||DT(t)===!0&&x6(t)>0)return!0;var r=b6(e);return r>0}function wb(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Xne(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0){e._closeRequested=!0;return}if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos.peek();if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Qv(e,n),n}}wb(e),Zv(t)}function Kne(e,t){var r=e._controlledReadableByteStream,n=t.buffer,i=t.byteOffset,a=t.byteLength,o=n;if(KB(r)===!0)if(vb(r)===0)j0(e,o,i,a);else{var s=new Uint8Array(o,i,a);yT(r,s,!1)}else DT(r)===!0?(j0(e,o,i,a),m6(e)):j0(e,o,i,a);ju(e)}function Qv(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(Gne(e),yl(e),wb(e),_6(r,t))}function b6(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function Qne(e,t){if(t=Number(t),jB(t)===!1)throw new RangeError("bytesWritten must be a finite");y6(e,t)}function Zne(e,t){var r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,y6(e,t.byteLength)}function Jne(e,t,r,n,i,a,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,yl(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=Vy(a),t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=o,t._pendingPullIntos=new io,e._readableStreamController=t;var s=r();Da(bn(s),function(){t._started=!0,ju(t)},function(u){Qv(t,u)})}function eie(e,t,r){var n=Object.create(Wne.prototype);function i(){return cT(t,"start",[n])}var a=vu(t,"pull",0,[n]),o=vu(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),Une(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");Jne(e,n,i,a,o,r,s)}function tie(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function j_(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Lp(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function rie(e,t){t===void 0&&(t=!1);var r=new iie(e);return r._forAuthorCode=t,r}function GP(e){var t=oa(function(r,n){var i={_resolve:r,_reject:n};e._reader._readIntoRequests.push(i)});return t}function nie(e,t,r){var n=e._reader,i=n._readIntoRequests.shift();i._resolve(Ra(t,r,n._forAuthorCode))}function x6(e){return e._reader._readIntoRequests.length}function DT(e){var t=e._reader;return!(t===void 0||!lh(t))}var iie=function(){function e(t){if(!Ga(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(qf(t._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(zs(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");HB(this,t),this._readIntoRequests=new io}return Object.defineProperty(e.prototype,"closed",{get:function(){return lh(this)?this._closedPromise:nr(t0("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return lh(this)?this._ownerReadableStream===void 0?nr(Lc("cancel")):pT(this,t):nr(t0("cancel"))},e.prototype.read=function(t){return lh(this)?this._ownerReadableStream===void 0?nr(Lc("read from")):ArrayBuffer.isView(t)?(Hy(t.buffer),t.byteLength===0?nr(new TypeError("view must have non-zero byteLength")):aie(this,t)):nr(new TypeError("view must be an array buffer view")):nr(t0("read"))},e.prototype.releaseLock=function(){if(!lh(this))throw t0("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");gc(this)}},e}();function lh(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function aie(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="errored"?nr(r._storedError):qne(r._readableStreamController,t)}function t0(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var DE=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r={}),w6(this);var n=r.size,i=r.highWaterMark,a=t.type,o=String(a);if(o==="bytes"){if(n!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");i===void 0&&(i=0),i=Vy(i),eie(this,t,i)}else if(a===void 0){var s=GB(n);i===void 0&&(i=1),i=Vy(i),$ne(this,t,i,s)}else throw new RangeError("Invalid type is specified")}return Object.defineProperty(e.prototype,"locked",{get:function(){if(Ga(this)===!1)throw Yl("locked");return zs(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Ga(this)===!1?nr(Yl("cancel")):zs(this)===!0?nr(new TypeError("Cannot cancel a stream that already has a reader")):gu(this,t)},e.prototype.getReader=function(t){var r=(t===void 0?{}:t).mode;if(Ga(this)===!1)throw Yl("getReader");if(r===void 0)return hb(this,!0);if(r=String(r),r==="byob")return rie(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(t,r){var n=t.writable,i=t.readable,a=r===void 0?{}:r,o=a.preventClose,s=a.preventAbort,u=a.preventCancel,f=a.signal;if(Ga(this)===!1)throw Yl("pipeThrough");if(cu(n)===!1)throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(Ga(i)===!1)throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),s=Boolean(s),u=Boolean(u),f!==void 0&&!UP(f))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(zs(this)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(mc(n)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var d=WP(this,n,o,s,u,f);return nd(d),i},e.prototype.pipeTo=function(t,r){var n=r===void 0?{}:r,i=n.preventClose,a=n.preventAbort,o=n.preventCancel,s=n.signal;return Ga(this)===!1?nr(Yl("pipeTo")):cu(t)===!1?nr(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(i=Boolean(i),a=Boolean(a),o=Boolean(o),s!==void 0&&!UP(s)?nr(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")):zs(this)===!0?nr(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):mc(t)===!0?nr(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):WP(this,t,i,a,o,s))},e.prototype.tee=function(){if(Ga(this)===!1)throw Yl("tee");var t=zne(this);return PE(t)},e.prototype.getIterator=function(t){var r=(t===void 0?{}:t).preventCancel,n=r===void 0?!1:r;if(Ga(this)===!1)throw Yl("getIterator");return one(this,n)},e}();typeof zo.asyncIterator=="symbol"&&Object.defineProperty(DE.prototype,zo.asyncIterator,{value:DE.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});function qP(e,t,r,n,i){n===void 0&&(n=1),i===void 0&&(i=function(){return 1});var a=Object.create(DE.prototype);w6(a);var o=Object.create(f6.prototype);return d6(a,o,e,t,r,n,i),a}function w6(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Ga(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_readableStreamController"))}function zs(e){return e._reader!==void 0}function gu(e,t){if(e._disturbed=!0,e._state==="closed")return bn(void 0);if(e._state==="errored")return nr(e._storedError);Zv(e);var r=e._readableStreamController[gT](t);return Yy(r,fT)}function Zv(e){e._state="closed";var t=e._reader;t!==void 0&&(fu(t)&&(t._readRequests.forEach(function(r){r._resolve(Ra(void 0,!0,t._forAuthorCode))}),t._readRequests=new io),YB(t))}function _6(e,t){e._state="errored",e._storedError=t;var r=e._reader;r!==void 0&&(fu(r)?(r._readRequests.forEach(function(n){n._reject(t)}),r._readRequests=new io):(r._readIntoRequests.forEach(function(n){n._reject(t)}),r._readIntoRequests=new io),vT(r,t))}function Yl(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function oie(e,t){ll(e._readable._readableStreamController,t),MT(e,t)}function MT(e,t){sie(e._transformStreamController),AT(e._writable._writableStreamController,t),e._backpressure===!0&&S6(e,!1)}function S6(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=oa(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}(function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(r0(this)===!1)throw n0("desiredSize");var t=this._controlledTransformStream._readable._readableStreamController;return OT(t)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(t){if(r0(this)===!1)throw n0("enqueue");lie(this,t)},e.prototype.error=function(t){if(r0(this)===!1)throw n0("error");uie(this,t)},e.prototype.terminate=function(){if(r0(this)===!1)throw n0("terminate");fie(this)},e})();function r0(e){return!(!ka(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function sie(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function lie(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(dv(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{e1(n,t)}catch(a){throw MT(r,a),r._readable._storedError}var i=Bne(n);i!==r._backpressure&&S6(r,!0)}function uie(e,t){oie(e._controlledTransformStream,t)}function fie(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;dv(r)===!0&&Jy(r);var n=new TypeError("TransformStream terminated");MT(t,n)}function n0(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function cie(...e){return ve.exports.useMemo(()=>t=>{e.forEach(r=>r(t))},e)}const _b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function id(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function NT(e){return"nodeType"in e}function hi(e){var t,r;return e?id(e)?e:NT(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function FT(e){const{Document:t}=hi(e);return e instanceof t}function Jv(e){return id(e)?!1:e instanceof hi(e).HTMLElement}function die(e){return e instanceof hi(e).SVGElement}function ad(e){return e?id(e)?e.document:NT(e)?FT(e)?e:Jv(e)?e.ownerDocument:document:document:document}const sa=_b?ve.exports.useLayoutEffect:ve.exports.useEffect;function Sb(e){const t=ve.exports.useRef(e);return sa(()=>{t.current=e}),ve.exports.useCallback(function(...r){return t.current==null?void 0:t.current(...r)},[])}function pie(){const e=ve.exports.useRef(null),t=ve.exports.useCallback((n,i)=>{e.current=setInterval(n,i)},[]),r=ve.exports.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function pv(e,t=[e]){const r=ve.exports.useRef(e);return sa(()=>{r.current!==e&&(r.current=e)},t),r}function eg(e,t){const r=ve.exports.useRef();return ve.exports.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function t1(e){const t=Sb(e),r=ve.exports.useRef(null),n=ve.exports.useCallback(i=>{i!==r.current&&(t==null||t(i,r.current)),r.current=i},[]);return[r,n]}function r1(e){const t=ve.exports.useRef();return ve.exports.useEffect(()=>{t.current=e},[e]),t.current}let W_={};function tg(e,t){return ve.exports.useMemo(()=>{if(t)return t;const r=W_[e]==null?0:W_[e]+1;return W_[e]=r,`${e}-${r}`},[e,t])}function E6(e){return(t,...r)=>r.reduce((n,i)=>{const a=Object.entries(i);for(const[o,s]of a){const u=n[o];u!=null&&(n[o]=u+e*s)}return n},{...t})}const yc=E6(1),n1=E6(-1);function hie(e){return"clientX"in e&&"clientY"in e}function Eb(e){if(!e)return!1;const{KeyboardEvent:t}=hi(e.target);return t&&e instanceof t}function vie(e){if(!e)return!1;const{TouchEvent:t}=hi(e.target);return t&&e instanceof t}function i1(e){if(vie(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return hie(e)?{x:e.clientX,y:e.clientY}:null}const Au=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return`translate3d(${t?Math.round(t):0}px, ${r?Math.round(r):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return`scaleX(${t}) scaleY(${r})`}},Transform:{toString(e){if(!!e)return[Au.Translate.toString(e),Au.Scale.toString(e)].join(" ")}},Transition:{toString({property:e,duration:t,easing:r}){return`${e} ${t}ms ${r}`}}}),HP="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function gie(e){return e.matches(HP)?e:e.querySelector(HP)}const mie={display:"none"};function yie(e){let{id:t,value:r}=e;return Mr("div",{id:t,style:mie,children:r})}const bie={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function xie(e){let{id:t,announcement:r}=e;return Mr("div",{id:t,style:bie,role:"status","aria-live":"assertive","aria-atomic":!0,children:r})}function wie(){const[e,t]=ve.exports.useState("");return{announce:ve.exports.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const A6=ve.exports.createContext(null);function _ie(e){const t=ve.exports.useContext(A6);ve.exports.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Sie(){const[e]=ve.exports.useState(()=>new Set),t=ve.exports.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[ve.exports.useCallback(n=>{let{type:i,event:a}=n;e.forEach(o=>{var s;return(s=o[i])==null?void 0:s.call(o,a)})},[e]),t]}const Eie={draggable:`
898
+ To pick up a draggable item, press the space bar.
899
+ While dragging, use the arrow keys to move the item.
900
+ Press space again to drop the item in its new position, or press escape to cancel.
901
+ `},Aie={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Cie(e){let{announcements:t=Aie,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=Eie}=e;const{announce:a,announcement:o}=wie(),s=tg("DndLiveRegion"),[u,f]=ve.exports.useState(!1);if(ve.exports.useEffect(()=>{f(!0)},[]),_ie(ve.exports.useMemo(()=>({onDragStart(p){let{active:h}=p;a(t.onDragStart({active:h}))},onDragMove(p){let{active:h,over:g}=p;t.onDragMove&&a(t.onDragMove({active:h,over:g}))},onDragOver(p){let{active:h,over:g}=p;a(t.onDragOver({active:h,over:g}))},onDragEnd(p){let{active:h,over:g}=p;a(t.onDragEnd({active:h,over:g}))},onDragCancel(p){let{active:h,over:g}=p;a(t.onDragCancel({active:h,over:g}))}}),[a,t])),!u)return null;const d=Qh(hF,{children:[Mr(yie,{id:n,value:i.draggable}),Mr(xie,{id:s,announcement:o})]});return r?Do.exports.createPortal(d,r):d}var In;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(In||(In={}));function a1(){}function xge(e,t){return ve.exports.useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function wge(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ve.exports.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const Oa=Object.freeze({x:0,y:0});function C6(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Tie(e,t){const r=i1(e);if(!r)return"0 0";const n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}function T6(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function Rie(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function VP(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function Oie(e,t){if(!e||e.length===0)return null;const[r]=e;return t?r[t]:r}function YP(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const _ge=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=YP(t,t.left,t.top),a=[];for(const o of n){const{id:s}=o,u=r.get(s);if(u){const f=C6(YP(u),i);a.push({id:s,data:{droppableContainer:o,value:f}})}}return a.sort(T6)},Sge=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=VP(t),a=[];for(const o of n){const{id:s}=o,u=r.get(s);if(u){const f=VP(u),d=i.reduce((h,g,w)=>h+C6(f[w],g),0),p=Number((d/4).toFixed(4));a.push({id:s,data:{droppableContainer:o,value:p}})}}return a.sort(T6)};function Iie(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-n,s=a-r;if(n<i&&r<a){const u=t.width*t.height,f=e.width*e.height,d=o*s,p=d/(u+f-d);return Number(p.toFixed(4))}return 0}const Pie=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=[];for(const a of n){const{id:o}=a,s=r.get(o);if(s){const u=Iie(s,t);u>0&&i.push({id:o,data:{droppableContainer:a,value:u}})}}return i.sort(Rie)};function kie(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function R6(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Oa}function Die(e){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((o,s)=>({...o,top:o.top+e*s.y,bottom:o.bottom+e*s.y,left:o.left+e*s.x,right:o.right+e*s.x}),{...r})}}const Mie=Die(1);function O6(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Nie(e,t,r){const n=O6(t);if(!n)return e;const{scaleX:i,scaleY:a,x:o,y:s}=n,u=e.left-o-(1-i)*parseFloat(r),f=e.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),d=i?e.width/i:e.width,p=a?e.height/a:e.height;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u}}const Fie={ignoreTransform:!1};function od(e,t){t===void 0&&(t=Fie);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:f}=hi(e),{transform:d,transformOrigin:p}=f(e);d&&(r=Nie(r,d,p))}const{top:n,left:i,width:a,height:o,bottom:s,right:u}=r;return{top:n,left:i,width:a,height:o,bottom:s,right:u}}function XP(e){return od(e,{ignoreTransform:!0})}function Lie(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function Bie(e,t){return t===void 0&&(t=hi(e).getComputedStyle(e)),t.position==="fixed"}function $ie(e,t){t===void 0&&(t=hi(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?r.test(a):!1})}function LT(e,t){const r=[];function n(i){if(t!=null&&r.length>=t||!i)return r;if(FT(i)&&i.scrollingElement!=null&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!Jv(i)||die(i)||r.includes(i))return r;const{getComputedStyle:a}=hi(i),o=a(i);return i!==e&&$ie(i,o)&&r.push(i),Bie(i,o)?r:n(i.parentNode)}return e?n(e):r}function I6(e){const[t]=LT(e,1);return t!=null?t:null}function G_(e){return!_b||!e?null:id(e)?e:NT(e)?FT(e)||e===ad(e).scrollingElement?window:Jv(e)?e:null:null}function P6(e){return id(e)?e.scrollX:e.scrollLeft}function k6(e){return id(e)?e.scrollY:e.scrollTop}function ME(e){return{x:P6(e),y:k6(e)}}var Fn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Fn||(Fn={}));function D6(e){return!_b||!e?!1:e===document.scrollingElement}function M6(e){const t={x:0,y:0},r=D6(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=n.y,s=e.scrollLeft>=n.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:n,minScroll:t}}const zie={x:.2,y:.2};function Uie(e,t,r,n,i){let{top:a,left:o,right:s,bottom:u}=r;n===void 0&&(n=10),i===void 0&&(i=zie);const{isTop:f,isBottom:d,isLeft:p,isRight:h}=M6(e),g={x:0,y:0},w={x:0,y:0},E={height:t.height*i.y,width:t.width*i.x};return!f&&a<=t.top+E.height?(g.y=Fn.Backward,w.y=n*Math.abs((t.top+E.height-a)/E.height)):!d&&u>=t.bottom-E.height&&(g.y=Fn.Forward,w.y=n*Math.abs((t.bottom-E.height-u)/E.height)),!h&&s>=t.right-E.width?(g.x=Fn.Forward,w.x=n*Math.abs((t.right-E.width-s)/E.width)):!p&&o<=t.left+E.width&&(g.x=Fn.Backward,w.x=n*Math.abs((t.left+E.width-o)/E.width)),{direction:g,speed:w}}function jie(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function N6(e){return e.reduce((t,r)=>yc(t,ME(r)),Oa)}function Wie(e){return e.reduce((t,r)=>t+P6(r),0)}function Gie(e){return e.reduce((t,r)=>t+k6(r),0)}function F6(e,t){if(t===void 0&&(t=od),!e)return;const{top:r,left:n,bottom:i,right:a}=t(e);!I6(e)||(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const qie=[["x",["left","right"],Wie],["y",["top","bottom"],Gie]];class BT{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=LT(r),i=N6(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of qie)for(const u of o)Object.defineProperty(this,u,{get:()=>{const f=s(n),d=i[a]-f;return this.rect[u]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ph{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var i;(i=this.target)==null||i.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function Hie(e){const{EventTarget:t}=hi(e);return e instanceof t?e:ad(e)}function q_(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var Ki;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ki||(Ki={}));function KP(e){e.preventDefault()}function Vie(e){e.stopPropagation()}var Ir;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Ir||(Ir={}));const L6={start:[Ir.Space,Ir.Enter],cancel:[Ir.Esc],end:[Ir.Space,Ir.Enter]},Yie=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Ir.Right:return{...r,x:r.x+25};case Ir.Left:return{...r,x:r.x-25};case Ir.Down:return{...r,y:r.y+25};case Ir.Up:return{...r,y:r.y-25}}};class B6{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new Ph(ad(r)),this.windowListeners=new Ph(hi(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ki.Resize,this.handleCancel),this.windowListeners.add(Ki.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ki.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&F6(n),r(Oa)}handleKeyDown(t){if(Eb(t)){const{active:r,context:n,options:i}=this.props,{keyboardCodes:a=L6,coordinateGetter:o=Yie,scrollBehavior:s="smooth"}=i,{code:u}=t;if(a.end.includes(u)){this.handleEnd(t);return}if(a.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:f}=n.current,d=f?{x:f.left,y:f.top}:Oa;this.referenceCoordinates||(this.referenceCoordinates=d);const p=o(t,{active:r,context:n.current,currentCoordinates:d});if(p){const h=n1(p,d),g={x:0,y:0},{scrollableAncestors:w}=n.current;for(const E of w){const y=t.code,{isTop:x,isRight:S,isLeft:A,isBottom:C,maxScroll:k,minScroll:D}=M6(E),z=jie(E),M={x:Math.min(y===Ir.Right?z.right-z.width/2:z.right,Math.max(y===Ir.Right?z.left:z.left+z.width/2,p.x)),y:Math.min(y===Ir.Down?z.bottom-z.height/2:z.bottom,Math.max(y===Ir.Down?z.top:z.top+z.height/2,p.y))},L=y===Ir.Right&&!S||y===Ir.Left&&!A,X=y===Ir.Down&&!C||y===Ir.Up&&!x;if(L&&M.x!==p.x){const re=E.scrollLeft+h.x,ce=y===Ir.Right&&re<=k.x||y===Ir.Left&&re>=D.x;if(ce&&!h.y){E.scrollTo({left:re,behavior:s});return}ce?g.x=E.scrollLeft-re:g.x=y===Ir.Right?E.scrollLeft-k.x:E.scrollLeft-D.x,g.x&&E.scrollBy({left:-g.x,behavior:s});break}else if(X&&M.y!==p.y){const re=E.scrollTop+h.y,ce=y===Ir.Down&&re<=k.y||y===Ir.Up&&re>=D.y;if(ce&&!h.x){E.scrollTo({top:re,behavior:s});return}ce?g.y=E.scrollTop-re:g.y=y===Ir.Down?E.scrollTop-k.y:E.scrollTop-D.y,g.y&&E.scrollBy({top:-g.y,behavior:s});break}}this.handleMove(t,yc(n1(p,this.referenceCoordinates),g))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}B6.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=L6,onActivation:i}=t,{active:a}=r;const{code:o}=e.nativeEvent;if(n.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function QP(e){return Boolean(e&&"distance"in e)}function ZP(e){return Boolean(e&&"delay"in e)}class $T{constructor(t,r,n){var i;n===void 0&&(n=Hie(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:a}=t,{target:o}=a;this.props=t,this.events=r,this.document=ad(o),this.documentListeners=new Ph(this.document),this.listeners=new Ph(n),this.windowListeners=new Ph(hi(o)),this.initialCoordinates=(i=i1(a))!=null?i:Oa,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Ki.Resize,this.handleCancel),this.windowListeners.add(Ki.DragStart,KP),this.windowListeners.add(Ki.VisibilityChange,this.handleCancel),this.windowListeners.add(Ki.ContextMenu,KP),this.documentListeners.add(Ki.Keydown,this.handleKeydown),r){if(QP(r))return;if(ZP(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ki.Click,Vie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ki.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const u=(r=i1(t))!=null?r:Oa,f=n1(i,u);if(!n&&s){if(ZP(s))return q_(f,s.tolerance)?this.handleCancel():void 0;if(QP(s))return s.tolerance!=null&&q_(f,s.tolerance)?this.handleCancel():q_(f,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),o(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Ir.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Xie={move:{name:"pointermove"},end:{name:"pointerup"}};class $6 extends $T{constructor(t){const{event:r}=t,n=ad(r.target);super(t,Xie,n)}}$6.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const Kie={move:{name:"mousemove"},end:{name:"mouseup"}};var NE;(function(e){e[e.RightClick=2]="RightClick"})(NE||(NE={}));class Qie extends $T{constructor(t){super(t,Kie,ad(t.event.target))}}Qie.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===NE.RightClick?!1:(n==null||n({event:r}),!0)}}];const H_={move:{name:"touchmove"},end:{name:"touchend"}};class Zie extends $T{constructor(t){super(t,H_)}static setup(){return window.addEventListener(H_.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(H_.move.name,t)};function t(){}}}Zie.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:i}=r;return i.length>1?!1:(n==null||n({event:r}),!0)}}];var kh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(kh||(kh={}));var o1;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(o1||(o1={}));function Jie(e){let{acceleration:t,activator:r=kh.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:s=o1.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:d,delta:p,threshold:h}=e;const g=tae({delta:p,disabled:!a}),[w,E]=pie(),y=ve.exports.useRef({x:0,y:0}),x=ve.exports.useRef({x:0,y:0}),S=ve.exports.useMemo(()=>{switch(r){case kh.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case kh.DraggableRect:return i}},[r,i,u]),A=ve.exports.useRef(null),C=ve.exports.useCallback(()=>{const D=A.current;if(!D)return;const z=y.current.x*x.current.x,M=y.current.y*x.current.y;D.scrollBy(z,M)},[]),k=ve.exports.useMemo(()=>s===o1.TreeOrder?[...f].reverse():f,[s,f]);ve.exports.useEffect(()=>{if(!a||!f.length||!S){E();return}for(const D of k){if((n==null?void 0:n(D))===!1)continue;const z=f.indexOf(D),M=d[z];if(!M)continue;const{direction:L,speed:X}=Uie(D,M,S,t,h);for(const re of["x","y"])g[re][L[re]]||(X[re]=0,L[re]=0);if(X.x>0||X.y>0){E(),A.current=D,w(C,o),y.current=X,x.current=L;return}}y.current={x:0,y:0},x.current={x:0,y:0},E()},[t,C,n,E,a,o,JSON.stringify(S),JSON.stringify(g),w,f,k,d,JSON.stringify(h)])}const eae={x:{[Fn.Backward]:!1,[Fn.Forward]:!1},y:{[Fn.Backward]:!1,[Fn.Forward]:!1}};function tae(e){let{delta:t,disabled:r}=e;const n=r1(t);return eg(i=>{if(r||!n||!i)return eae;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[Fn.Backward]:i.x[Fn.Backward]||a.x===-1,[Fn.Forward]:i.x[Fn.Forward]||a.x===1},y:{[Fn.Backward]:i.y[Fn.Backward]||a.y===-1,[Fn.Forward]:i.y[Fn.Forward]||a.y===1}}},[r,t,n])}function rae(e,t){const r=t!==null?e.get(t):void 0,n=r?r.node.current:null;return eg(i=>{var a;return t===null?null:(a=n!=null?n:i)!=null?a:null},[n,t])}function nae(e,t){return ve.exports.useMemo(()=>e.reduce((r,n)=>{const{sensor:i}=n,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,n)}));return[...r,...a]},[]),[e,t])}var hv;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(hv||(hv={}));var FE;(function(e){e.Optimized="optimized"})(FE||(FE={}));const JP=new Map;function iae(e,t){let{dragging:r,dependencies:n,config:i}=t;const[a,o]=ve.exports.useState(null),s=a!=null,{frequency:u,measure:f,strategy:d}=i,p=ve.exports.useRef(e),h=x(),g=pv(h),w=ve.exports.useCallback(function(S){S===void 0&&(S=[]),!g.current&&o(A=>A?A.concat(S):S)},[g]),E=ve.exports.useRef(null),y=eg(S=>{if(h&&!r)return JP;const A=a;if(!S||S===JP||p.current!==e||A!=null){const C=new Map;for(let k of e){if(!k)continue;if(A&&A.length>0&&!A.includes(k.id)&&k.rect.current){C.set(k.id,k.rect.current);continue}const D=k.node.current,z=D?new BT(f(D),D):null;k.rect.current=z,z&&C.set(k.id,z)}return C}return S},[e,a,r,h,f]);return ve.exports.useEffect(()=>{p.current=e},[e]),ve.exports.useEffect(()=>{h||requestAnimationFrame(()=>w())},[r,h]),ve.exports.useEffect(()=>{s&&o(null)},[s]),ve.exports.useEffect(()=>{h||typeof u!="number"||E.current!==null||(E.current=setTimeout(()=>{w(),E.current=null},u))},[u,h,w,...n]),{droppableRects:y,measureDroppableContainers:w,measuringScheduled:s};function x(){switch(d){case hv.Always:return!1;case hv.BeforeDragging:return r;default:return!r}}}function zT(e,t){return eg(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function aae(e,t){return zT(e,t)}function oae(e){let{callback:t,disabled:r}=e;const n=Sb(t),i=ve.exports.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(n)},[n,r]);return ve.exports.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Ab(e){let{callback:t,disabled:r}=e;const n=Sb(t),i=ve.exports.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(n)},[r]);return ve.exports.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function sae(e){return new BT(od(e),e)}function ek(e,t,r){t===void 0&&(t=sae);const[n,i]=ve.exports.useReducer(s,null),a=oae({callback(u){if(!!e)for(const f of u){const{type:d,target:p}=f;if(d==="childList"&&p instanceof HTMLElement&&p.contains(e)){i();break}}}}),o=Ab({callback:i});return sa(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),n;function s(u){if(!e)return null;if(e.isConnected===!1){var f;return(f=u!=null?u:r)!=null?f:null}const d=t(e);return JSON.stringify(u)===JSON.stringify(d)?u:d}}function lae(e){const t=zT(e);return R6(e,t)}const tk=[];function uae(e){const t=ve.exports.useRef(e),r=eg(n=>e?n&&n!==tk&&e&&t.current&&e.parentNode===t.current.parentNode?n:LT(e):tk,[e]);return ve.exports.useEffect(()=>{t.current=e},[e]),r}function fae(e){const[t,r]=ve.exports.useState(null),n=ve.exports.useRef(e),i=ve.exports.useCallback(a=>{const o=G_(a.target);!o||r(s=>s?(s.set(o,ME(o)),new Map(s)):null)},[]);return ve.exports.useEffect(()=>{const a=n.current;if(e!==a){o(a);const s=e.map(u=>{const f=G_(u);return f?(f.addEventListener("scroll",i,{passive:!0}),[f,ME(f)]):null}).filter(u=>u!=null);r(s.length?new Map(s):null),n.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(u=>{const f=G_(u);f==null||f.removeEventListener("scroll",i)})}},[i,e]),ve.exports.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>yc(a,o),Oa):N6(e):Oa,[e,t])}function rk(e,t){t===void 0&&(t=[]);const r=ve.exports.useRef(null);return ve.exports.useEffect(()=>{r.current=null},t),ve.exports.useEffect(()=>{const n=e!==Oa;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?n1(e,r.current):Oa}function cae(e){ve.exports.useEffect(()=>{if(!_b)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function dae(e,t){return ve.exports.useMemo(()=>e.reduce((r,n)=>{let{eventName:i,handler:a}=n;return r[i]=o=>{a(o,t)},r},{}),[e,t])}function z6(e){return ve.exports.useMemo(()=>e?Lie(e):null,[e])}const V_=[];function pae(e,t){t===void 0&&(t=od);const[r]=e,n=z6(r?hi(r):null),[i,a]=ve.exports.useReducer(s,V_),o=Ab({callback:a});return e.length>0&&i===V_&&a(),sa(()=>{e.length?e.forEach(u=>o==null?void 0:o.observe(u)):(o==null||o.disconnect(),a())},[e]),i;function s(){return e.length?e.map(u=>D6(u)?n:new BT(t(u),u)):V_}}function U6(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Jv(t)?t:e}function hae(e){let{measure:t}=e;const[r,n]=ve.exports.useState(null),i=ve.exports.useCallback(f=>{for(const{target:d}of f)if(Jv(d)){n(p=>{const h=t(d);return p?{...p,width:h.width,height:h.height}:h});break}},[t]),a=Ab({callback:i}),o=ve.exports.useCallback(f=>{const d=U6(f);a==null||a.disconnect(),d&&(a==null||a.observe(d)),n(d?t(d):null)},[t,a]),[s,u]=t1(o);return ve.exports.useMemo(()=>({nodeRef:s,rect:r,setRef:u}),[r,s,u])}const vae=[{sensor:$6,options:{}},{sensor:B6,options:{}}],gae={current:{}},W0={draggable:{measure:XP},droppable:{measure:XP,strategy:hv.WhileDragging,frequency:FE.Optimized},dragOverlay:{measure:od}};class Dh extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const mae={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Dh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a1},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:W0,measureDroppableContainers:a1,windowRect:null,measuringScheduled:!1},j6={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:a1,draggableNodes:new Map,over:null,measureDroppableContainers:a1},rg=ve.exports.createContext(j6),W6=ve.exports.createContext(mae);function yae(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Dh}}}function bae(e,t){switch(t.type){case In.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case In.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case In.DragEnd:case In.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case In.RegisterDroppable:{const{element:r}=t,{id:n}=r,i=new Dh(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case In.SetDroppableDisabled:{const{id:r,key:n,disabled:i}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new Dh(e.droppable.containers);return o.set(r,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case In.UnregisterDroppable:{const{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new Dh(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function xae(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:i}=ve.exports.useContext(rg),a=r1(n),o=r1(r==null?void 0:r.id);return ve.exports.useEffect(()=>{if(!t&&!n&&a&&o!=null){if(!Eb(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:u,node:f}=s;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const d of[u.current,f.current]){if(!d)continue;const p=gie(d);if(p){p.focus();break}}})}},[n,t,i,o,a]),null}function G6(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...n}),r):r}function wae(e){return ve.exports.useMemo(()=>({draggable:{...W0.draggable,...e==null?void 0:e.draggable},droppable:{...W0.droppable,...e==null?void 0:e.droppable},dragOverlay:{...W0.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function _ae(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e;const a=ve.exports.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;sa(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!n)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const d=r(f),p=R6(d,n);if(o||(p.x=0),s||(p.y=0),a.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const h=I6(f);h&&h.scrollBy({top:p.y,left:p.x})}},[t,o,s,n,r])}const Cb=ve.exports.createContext({...Oa,scaleX:1,scaleY:1});var Ps;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ps||(Ps={}));const Ege=ve.exports.memo(function(t){var r,n,i,a;let{id:o,accessibility:s,autoScroll:u=!0,children:f,sensors:d=vae,collisionDetection:p=Pie,measuring:h,modifiers:g,...w}=t;const E=ve.exports.useReducer(bae,void 0,yae),[y,x]=E,[S,A]=Sie(),[C,k]=ve.exports.useState(Ps.Uninitialized),D=C===Ps.Initialized,{draggable:{active:z,nodes:M,translate:L},droppable:{containers:X}}=y,re=z?M.get(z):null,ce=ve.exports.useRef({initial:null,translated:null}),xe=ve.exports.useMemo(()=>{var yr;return z!=null?{id:z,data:(yr=re==null?void 0:re.data)!=null?yr:gae,rect:ce}:null},[z,re]),Se=ve.exports.useRef(null),[Ze,Ge]=ve.exports.useState(null),[he,Fe]=ve.exports.useState(null),qe=pv(w,Object.values(w)),ze=tg("DndDescribedBy",o),we=ve.exports.useMemo(()=>X.getEnabled(),[X]),ge=wae(h),{droppableRects:Ve,measureDroppableContainers:We,measuringScheduled:Qe}=iae(we,{dragging:D,dependencies:[L.x,L.y],config:ge.droppable}),rt=rae(M,z),At=ve.exports.useMemo(()=>he?i1(he):null,[he]),wt=ts(),Ee=aae(rt,ge.draggable.measure);_ae({activeNode:z?M.get(z):null,config:wt.layoutShiftCompensation,initialRect:Ee,measure:ge.draggable.measure});const Be=ek(rt,ge.draggable.measure,Ee),ht=ek(rt?rt.parentElement:null),_e=ve.exports.useRef({activatorEvent:null,active:null,activeNode:rt,collisionRect:null,collisions:null,droppableRects:Ve,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:X,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),j=X.getNodeFor((r=_e.current.over)==null?void 0:r.id),te=hae({measure:ge.dragOverlay.measure}),I=(n=te.nodeRef.current)!=null?n:rt,T=D?(i=te.rect)!=null?i:Be:null,P=Boolean(te.nodeRef.current&&te.rect),U=lae(P?null:Be),le=z6(I?hi(I):null),Ne=uae(D?j!=null?j:rt:null),$e=pae(Ne),zt=G6(g,{transform:{x:L.x-U.x,y:L.y-U.y,scaleX:1,scaleY:1},activatorEvent:he,active:xe,activeNodeRect:Be,containerNodeRect:ht,draggingNodeRect:T,over:_e.current.over,overlayNodeRect:te.rect,scrollableAncestors:Ne,scrollableAncestorRects:$e,windowRect:le}),Xt=At?yc(At,L):null,er=fae(Ne),cr=rk(er),_r=rk(er,[Be]),$r=yc(zt,cr),Wn=T?Mie(T,zt):null,un=xe&&Wn?p({active:xe,collisionRect:Wn,droppableRects:Ve,droppableContainers:we,pointerCoordinates:Xt}):null,vn=Oie(un,"id"),[xn,vi]=ve.exports.useState(null),lo=P?zt:yc(zt,_r),Jo=kie(lo,(a=xn==null?void 0:xn.rect)!=null?a:null,Be),uo=ve.exports.useCallback((yr,zr)=>{let{sensor:Pr,options:ir}=zr;if(Se.current==null)return;const Gn=M.get(Se.current);if(!Gn)return;const tn=yr.nativeEvent,wn=new Pr({active:Se.current,activeNode:Gn,event:tn,options:ir,context:_e,onStart(Qr){const Ma=Se.current;if(Ma==null)return;const Ri=M.get(Ma);if(!Ri)return;const{onDragStart:rs}=qe.current,fo={active:{id:Ma,data:Ri.data,rect:ce}};Do.exports.unstable_batchedUpdates(()=>{rs==null||rs(fo),k(Ps.Initializing),x({type:In.DragStart,initialCoordinates:Qr,active:Ma}),S({type:"onDragStart",event:fo})})},onMove(Qr){x({type:In.DragMove,coordinates:Qr})},onEnd:ca(In.DragEnd),onCancel:ca(In.DragCancel)});Do.exports.unstable_batchedUpdates(()=>{Ge(wn),Fe(yr.nativeEvent)});function ca(Qr){return async function(){const{active:Ri,collisions:rs,over:fo,scrollAdjustedTranslate:Vu}=_e.current;let Na=null;if(Ri&&Vu){const{cancelDrop:co}=qe.current;Na={activatorEvent:tn,active:Ri,collisions:rs,delta:Vu,over:fo},Qr===In.DragEnd&&typeof co=="function"&&await Promise.resolve(co(Na))&&(Qr=In.DragCancel)}Se.current=null,Do.exports.unstable_batchedUpdates(()=>{x({type:Qr}),k(Ps.Uninitialized),vi(null),Ge(null),Fe(null);const co=Qr===In.DragEnd?"onDragEnd":"onDragCancel";if(Na){const da=qe.current[co];da==null||da(Na),S({type:co,event:Na})}})}}},[M]),es=ve.exports.useCallback((yr,zr)=>(Pr,ir)=>{const Gn=Pr.nativeEvent,tn=M.get(ir);if(Se.current!==null||!tn||Gn.dndKit||Gn.defaultPrevented)return;const wn={active:tn};yr(Pr,zr.options,wn)===!0&&(Gn.dndKit={capturedBy:zr.sensor},Se.current=ir,uo(Pr,zr))},[M,uo]),Hu=nae(d,es);cae(d),sa(()=>{Be&&C===Ps.Initializing&&k(Ps.Initialized)},[Be,C]),ve.exports.useEffect(()=>{const{onDragMove:yr}=qe.current,{active:zr,activatorEvent:Pr,collisions:ir,over:Gn}=_e.current;if(!zr||!Pr)return;const tn={active:zr,activatorEvent:Pr,collisions:ir,delta:{x:$r.x,y:$r.y},over:Gn};Do.exports.unstable_batchedUpdates(()=>{yr==null||yr(tn),S({type:"onDragMove",event:tn})})},[$r.x,$r.y]),ve.exports.useEffect(()=>{const{active:yr,activatorEvent:zr,collisions:Pr,droppableContainers:ir,scrollAdjustedTranslate:Gn}=_e.current;if(!yr||Se.current==null||!zr||!Gn)return;const{onDragOver:tn}=qe.current,wn=ir.get(vn),ca=wn&&wn.rect.current?{id:wn.id,rect:wn.rect.current,data:wn.data,disabled:wn.disabled}:null,Qr={active:yr,activatorEvent:zr,collisions:Pr,delta:{x:Gn.x,y:Gn.y},over:ca};Do.exports.unstable_batchedUpdates(()=>{vi(ca),tn==null||tn(Qr),S({type:"onDragOver",event:Qr})})},[vn]),sa(()=>{_e.current={activatorEvent:he,active:xe,activeNode:rt,collisionRect:Wn,collisions:un,droppableRects:Ve,draggableNodes:M,draggingNode:I,draggingNodeRect:T,droppableContainers:X,over:xn,scrollableAncestors:Ne,scrollAdjustedTranslate:$r},ce.current={initial:T,translated:Wn}},[xe,rt,un,Wn,M,I,T,Ve,X,xn,Ne,$r]),Jie({...wt,delta:L,draggingRect:Wn,pointerCoordinates:Xt,scrollableAncestors:Ne,scrollableAncestorRects:$e});const fa=ve.exports.useMemo(()=>({active:xe,activeNode:rt,activeNodeRect:Be,activatorEvent:he,collisions:un,containerNodeRect:ht,dragOverlay:te,draggableNodes:M,droppableContainers:X,droppableRects:Ve,over:xn,measureDroppableContainers:We,scrollableAncestors:Ne,scrollableAncestorRects:$e,measuringConfiguration:ge,measuringScheduled:Qe,windowRect:le}),[xe,rt,Be,he,un,ht,te,M,X,Ve,xn,We,Ne,$e,ge,Qe,le]),ud=ve.exports.useMemo(()=>({activatorEvent:he,activators:Hu,active:xe,activeNodeRect:Be,ariaDescribedById:{draggable:ze},dispatch:x,draggableNodes:M,over:xn,measureDroppableContainers:We}),[he,Hu,xe,Be,x,ze,M,xn,We]);return Qh(A6.Provider,{value:A,children:[Qh(rg.Provider,{value:ud,children:[Mr(W6.Provider,{value:fa,children:Mr(Cb.Provider,{value:Jo,children:f})}),Mr(xae,{disabled:(s==null?void 0:s.restoreFocus)===!1})]}),Mr(Cie,{...s,hiddenTextDescribedById:ze})]});function ts(){const yr=(Ze==null?void 0:Ze.autoScrollEnabled)===!1,zr=typeof u=="object"?u.enabled===!1:u===!1,Pr=D&&!yr&&!zr;return typeof u=="object"?{...u,enabled:Pr}:{enabled:Pr}}}),Sae=ve.exports.createContext(null),nk="button",Eae="Droppable";function Aae(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e;const a=tg(Eae),{activators:o,activatorEvent:s,active:u,activeNodeRect:f,ariaDescribedById:d,draggableNodes:p,over:h}=ve.exports.useContext(rg),{role:g=nk,roleDescription:w="draggable",tabIndex:E=0}=i!=null?i:{},y=(u==null?void 0:u.id)===t,x=ve.exports.useContext(y?Cb:Sae),[S,A]=t1(),[C,k]=t1(),D=dae(o,t),z=pv(r);sa(()=>(p.set(t,{id:t,key:a,node:S,activatorNode:C,data:z}),()=>{const L=p.get(t);L&&L.key===a&&p.delete(t)}),[p,t]);const M=ve.exports.useMemo(()=>({role:g,tabIndex:E,"aria-disabled":n,"aria-pressed":y&&g===nk?!0:void 0,"aria-roledescription":w,"aria-describedby":d.draggable}),[n,g,E,y,w,d.draggable]);return{active:u,activatorEvent:s,activeNodeRect:f,attributes:M,isDragging:y,listeners:n?void 0:D,node:S,over:h,setNodeRef:A,setActivatorNodeRef:k,transform:x}}function q6(){return ve.exports.useContext(W6)}const Cae="Droppable",Tae={timeout:25};function Rae(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e;const a=tg(Cae),{active:o,dispatch:s,over:u,measureDroppableContainers:f}=ve.exports.useContext(rg),d=ve.exports.useRef({disabled:r}),p=ve.exports.useRef(!1),h=ve.exports.useRef(null),g=ve.exports.useRef(null),{disabled:w,updateMeasurementsFor:E,timeout:y}={...Tae,...i},x=pv(E!=null?E:n),S=ve.exports.useCallback(()=>{if(!p.current){p.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{f(Array.isArray(x.current)?x.current:[x.current]),g.current=null},y)},[y]),A=Ab({callback:S,disabled:w||!o}),C=ve.exports.useCallback((M,L)=>{!A||(L&&(A.unobserve(L),p.current=!1),M&&A.observe(M))},[A]),[k,D]=t1(C),z=pv(t);return ve.exports.useEffect(()=>{!A||!k.current||(A.disconnect(),p.current=!1,A.observe(k.current))},[k,A]),sa(()=>(s({type:In.RegisterDroppable,element:{id:n,key:a,disabled:r,node:k,rect:h,data:z}}),()=>s({type:In.UnregisterDroppable,key:a,id:n})),[n]),ve.exports.useEffect(()=>{r!==d.current.disabled&&(s({type:In.SetDroppableDisabled,id:n,key:a,disabled:r}),d.current.disabled=r)},[n,a,r,s]),{active:o,rect:h,isOver:(u==null?void 0:u.id)===n,node:k,over:u,setNodeRef:D}}function Oae(e){let{animation:t,children:r}=e;const[n,i]=ve.exports.useState(null),[a,o]=ve.exports.useState(null),s=r1(r);return!r&&!n&&s&&i(s),sa(()=>{if(!a)return;const u=n==null?void 0:n.key,f=n==null?void 0:n.props.id;if(u==null||f==null){i(null);return}Promise.resolve(t(f,a)).then(()=>{i(null)})},[t,n,a]),Qh(hF,{children:[r,n?ve.exports.cloneElement(n,{ref:o}):null]})}const Iae={x:0,y:0,scaleX:1,scaleY:1};function Pae(e){let{children:t}=e;return Mr(rg.Provider,{value:j6,children:Mr(Cb.Provider,{value:Iae,children:t})})}const kae={position:"fixed",touchAction:"none"},Dae=e=>Eb(e)?"transform 250ms ease":void 0,Mae=ve.exports.forwardRef((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:a,className:o,rect:s,style:u,transform:f,transition:d=Dae}=e;if(!s)return null;const p=i?f:{...f,scaleX:1,scaleY:1},h={...kae,width:s.width,height:s.height,top:s.top,left:s.left,transform:Au.Transform.toString(p),transformOrigin:i&&n?Tie(n,s):void 0,transition:typeof d=="function"?d(n):d,...u};return dn.createElement(r,{className:o,style:h,ref:t},a)}),Nae=e=>t=>{let{active:r,dragOverlay:n}=t;const i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[s,u]of Object.entries(a.active))u!==void 0&&(i[s]=r.node.style.getPropertyValue(s),r.node.style.setProperty(s,u));if(a!=null&&a.dragOverlay)for(const[s,u]of Object.entries(a.dragOverlay))u!==void 0&&n.node.style.setProperty(s,u);return o!=null&&o.active&&r.node.classList.add(o.active),o!=null&&o.dragOverlay&&n.node.classList.add(o.dragOverlay),function(){for(const[u,f]of Object.entries(i))r.node.style.setProperty(u,f);o!=null&&o.active&&r.node.classList.remove(o.active)}},Fae=e=>{let{transform:{initial:t,final:r}}=e;return[{transform:Au.Transform.toString(t)},{transform:Au.Transform.toString(r)}]},Lae={duration:250,easing:"ease",keyframes:Fae,sideEffects:Nae({styles:{active:{opacity:"0"}}})};function Bae(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return Sb((a,o)=>{if(t===null)return;const s=r.get(a);if(!s)return;const u=s.node.current;if(!u)return;const f=U6(o);if(!f)return;const{transform:d}=hi(o).getComputedStyle(o),p=O6(d);if(!p)return;const h=typeof t=="function"?t:$ae(t);return F6(u,i.draggable.measure),h({active:{id:a,data:s.data,node:u,rect:i.draggable.measure(u)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(f)},droppableContainers:n,measuringConfiguration:i,transform:p})})}function $ae(e){const{duration:t,easing:r,sideEffects:n,keyframes:i}={...Lae,...e};return a=>{let{active:o,dragOverlay:s,transform:u,...f}=a;if(!t)return;const d={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},p={scaleX:u.scaleX!==1?o.rect.width*u.scaleX/s.rect.width:1,scaleY:u.scaleY!==1?o.rect.height*u.scaleY/s.rect.height:1},h={x:u.x-d.x,y:u.y-d.y,...p},g=i({...f,active:o,dragOverlay:s,transform:{initial:u,final:h}}),[w]=g,E=g[g.length-1];if(JSON.stringify(w)===JSON.stringify(E))return;const y=n==null?void 0:n({active:o,dragOverlay:s,...f}),x=s.node.animate(g,{duration:t,easing:r,fill:"forwards"});return new Promise(S=>{x.onfinish=()=>{y==null||y(),S()}})}}let ik=0;function zae(e){return ve.exports.useMemo(()=>{if(e!=null)return ik++,ik},[e])}const Age=dn.memo(e=>{let{adjustScale:t=!1,children:r,dropAnimation:n,style:i,transition:a,modifiers:o,wrapperElement:s="div",className:u,zIndex:f=999}=e;const{activatorEvent:d,active:p,activeNodeRect:h,containerNodeRect:g,draggableNodes:w,droppableContainers:E,dragOverlay:y,over:x,measuringConfiguration:S,scrollableAncestors:A,scrollableAncestorRects:C,windowRect:k}=q6(),D=ve.exports.useContext(Cb),z=zae(p==null?void 0:p.id),M=G6(o,{activatorEvent:d,active:p,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:x,overlayNodeRect:y.rect,scrollableAncestors:A,scrollableAncestorRects:C,transform:D,windowRect:k}),L=zT(h),X=Bae({config:n,draggableNodes:w,droppableContainers:E,measuringConfiguration:S}),re=L?y.setRef:void 0;return Mr(Pae,{children:Mr(Oae,{animation:X,children:p&&z?Mr(Mae,{id:p.id,ref:re,as:s,activatorEvent:d,adjustScale:t,className:u,transition:a,rect:L,style:{zIndex:f,...i},transform:M,children:r},z):null})})});function H6(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function Uae(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function i0(e){return e!==null&&e>=0}function jae(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Wae(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const V6=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=H6(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},a0={scaleX:1,scaleY:1},Cge=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const s=(t=a[r])!=null?t:n;if(!s)return null;if(i===r){const f=a[o];return f?{x:0,y:r<o?f.top+f.height-(s.top+s.height):f.top-s.top,...a0}:null}const u=Gae(a,i,r);return i>r&&i<=o?{x:0,y:-s.height-u,...a0}:i<r&&i>=o?{x:0,y:s.height+u,...a0}:{x:0,y:0,...a0}};function Gae(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const Y6="Sortable",X6=dn.createContext({activeIndex:-1,containerId:Y6,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:V6,disabled:{draggable:!1,droppable:!1}});function Tge(e){let{children:t,id:r,items:n,strategy:i=V6,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:u,over:f,measureDroppableContainers:d,measuringScheduled:p}=q6(),h=tg(Y6,r),g=Boolean(s.rect!==null),w=ve.exports.useMemo(()=>n.map(z=>typeof z=="object"&&"id"in z?z.id:z),[n]),E=o!=null,y=o?w.indexOf(o.id):-1,x=f?w.indexOf(f.id):-1,S=ve.exports.useRef(w),A=!jae(w,S.current),C=x!==-1&&y===-1||A,k=Wae(a);sa(()=>{A&&E&&!p&&d(w)},[A,w,E,d,p]),ve.exports.useEffect(()=>{S.current=w},[w]);const D=ve.exports.useMemo(()=>({activeIndex:y,containerId:h,disabled:k,disableTransforms:C,items:w,overIndex:x,useDragOverlay:g,sortedRects:Uae(w,u),strategy:i}),[y,h,k.draggable,k.droppable,C,w,x,u,g,i]);return Mr(X6.Provider,{value:D,children:t})}const qae=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return H6(r,n,i).indexOf(t)},Hae=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:u,transition:f}=e;return!f||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===u},Vae={duration:200,easing:"ease"},K6="transform",Yae=Au.Transition.toString({property:K6,duration:0,easing:"linear"}),Xae={roleDescription:"sortable"};function Kae(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=ve.exports.useState(null),s=ve.exports.useRef(r);return sa(()=>{if(!t&&r!==s.current&&n.current){const u=i.current;if(u){const f=od(n.current,{ignoreTransform:!0}),d={x:u.left-f.left,y:u.top-f.top,scaleX:u.width/f.width,scaleY:u.height/f.height};(d.x||d.y)&&o(d)}}r!==s.current&&(s.current=r)},[t,r,n,i]),ve.exports.useEffect(()=>{a&&requestAnimationFrame(()=>{o(null)})},[a]),a}function Rge(e){let{animateLayoutChanges:t=Hae,attributes:r,disabled:n,data:i,getNewIndex:a=qae,id:o,strategy:s,resizeObserverConfig:u,transition:f=Vae}=e;const{items:d,containerId:p,activeIndex:h,disabled:g,disableTransforms:w,sortedRects:E,overIndex:y,useDragOverlay:x,strategy:S}=ve.exports.useContext(X6),A=Qae(n,g),C=d.indexOf(o),k=ve.exports.useMemo(()=>({sortable:{containerId:p,index:C,items:d},...i}),[p,i,C,d]),D=ve.exports.useMemo(()=>d.slice(d.indexOf(o)),[d,o]),{rect:z,node:M,isOver:L,setNodeRef:X}=Rae({id:o,data:k,disabled:A.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...u}}),{active:re,activatorEvent:ce,activeNodeRect:xe,attributes:Se,setNodeRef:Ze,listeners:Ge,isDragging:he,over:Fe,setActivatorNodeRef:qe,transform:ze}=Aae({id:o,data:k,attributes:{...Xae,...r},disabled:A.draggable}),we=cie(X,Ze),ge=Boolean(re),Ve=ge&&!w&&i0(h)&&i0(y),We=!x&&he,Qe=We&&Ve?ze:null,rt=s!=null?s:S,At=Ve?Qe!=null?Qe:rt({rects:E,activeNodeRect:xe,activeIndex:h,overIndex:y,index:C}):null,wt=i0(h)&&i0(y)?a({id:o,items:d,activeIndex:h,overIndex:y}):C,Ee=re==null?void 0:re.id,Be=ve.exports.useRef({activeId:Ee,items:d,newIndex:wt,containerId:p}),ht=d!==Be.current.items,_e=t({active:re,containerId:p,isDragging:he,isSorting:ge,id:o,index:C,items:d,newIndex:Be.current.newIndex,previousItems:Be.current.items,previousContainerId:Be.current.containerId,transition:f,wasDragging:Be.current.activeId!=null}),j=Kae({disabled:!_e,index:C,node:M,rect:z});return ve.exports.useEffect(()=>{ge&&Be.current.newIndex!==wt&&(Be.current.newIndex=wt),p!==Be.current.containerId&&(Be.current.containerId=p),d!==Be.current.items&&(Be.current.items=d)},[ge,wt,p,d]),ve.exports.useEffect(()=>{if(Ee===Be.current.activeId)return;if(Ee&&!Be.current.activeId){Be.current.activeId=Ee;return}const I=setTimeout(()=>{Be.current.activeId=Ee},50);return()=>clearTimeout(I)},[Ee]),{active:re,activeIndex:h,attributes:Se,data:k,rect:z,index:C,newIndex:wt,items:d,isOver:L,isSorting:ge,isDragging:he,listeners:Ge,node:M,overIndex:y,over:Fe,setNodeRef:we,setActivatorNodeRef:qe,setDroppableNodeRef:X,setDraggableNodeRef:Ze,transform:j!=null?j:At,transition:te()};function te(){if(j||ht&&Be.current.newIndex===C)return Yae;if(!(We&&!Eb(ce)||!f)&&(ge||_e))return Au.Transition.toString({...f,property:K6})}}function Qae(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}Ir.Down,Ir.Right,Ir.Up,Ir.Left;var Q6={};Q6.quote=function(e){return e.map(function(t){return t&&typeof t=="object"?t.op.replace(/(.)/g,"\\$1"):/["\s]/.test(t)&&!/'/.test(t)?"'"+t.replace(/(['\\])/g,"\\$1")+"'":/["'\s]/.test(t)?'"'+t.replace(/(["\\$`!])/g,"\\$1")+'"':String(t).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@\[\\\]^`{|}])/g,"$1\\$2")}).join(" ")};var Y_="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(",">>",">\\&","[&;()|<>]"].join("|")+")",ak="|&;()<> \\t",Zae=`(\\\\['"`+ak+`]|[^\\s'"`+ak+"])+",Jae='"((\\\\"|[^"])*?)"',eoe="'((\\\\'|[^'])*?)'",du="";for(var ok=0;ok<4;ok++)du+=(Math.pow(16,8)*Math.random()).toString(16);Q6.parse=function(e,t,r){var n=toe(e,t,r);return typeof t!="function"?n:n.reduce(function(i,a){if(typeof a=="object")return i.concat(a);var o=a.split(RegExp("("+du+".*?"+du+")","g"));return o.length===1?i.concat(o[0]):i.concat(o.filter(Boolean).map(function(s){return RegExp("^"+du).test(s)?JSON.parse(s.split(du)[1]):s}))},[])};function toe(e,t,r){var n=new RegExp(["("+Y_+")","("+Zae+"|"+Jae+"|"+eoe+")*"].join("|"),"g"),i=e.match(n).filter(Boolean),a=!1;if(!i)return[];return t||(t={}),r||(r={}),i.map(function(s,u){if(a)return;if(RegExp("^"+Y_+"$").test(s))return{op:s};for(var f="'",d='"',p="$",h=r.escape||"\\",g=!1,w=!1,E="",y=!1,x=0,S=s.length;x<S;x++){var A=s.charAt(x);if(y=y||!g&&(A==="*"||A==="?"),w)E+=A,w=!1;else if(g)A===g?g=!1:g==f?E+=A:A===h?(x+=1,A=s.charAt(x),A===d||A===h||A===p?E+=A:E+=h+A):A===p?E+=C():E+=A;else if(A===d||A===f)g=A;else{if(RegExp("^"+Y_+"$").test(A))return{op:s};if(RegExp("^#$").test(A))return a=!0,E.length?[E,{comment:s.slice(x+1)+i.slice(u+1).join(" ")}]:[{comment:s.slice(x+1)+i.slice(u+1).join(" ")}];A===h?w=!0:A===p?E+=C():E+=A}}if(y)return{op:"glob",pattern:E};return E;function C(){x+=1;var k,D;if(s.charAt(x)==="{"){if(x+=1,s.charAt(x)==="}")throw new Error("Bad substitution: "+s.substr(x-2,3));if(k=s.indexOf("}",x),k<0)throw new Error("Bad substitution: "+s.substr(x));D=s.substr(x,k-x),x=k}else/[*@#?$!_\-]/.test(s.charAt(x))?(D=s.charAt(x),x+=1):(k=s.substr(x).match(/[^\w\d_]/),k?(D=s.substr(x,k.index),x+=k.index-1):(D=s.substr(x),x=s.length));return o(null,"",D)}}).reduce(function(s,u){return u===void 0?s:s.concat(u)},[]);function o(s,u,f){var d=typeof t=="function"?t(f):t[f];return d===void 0&&f!=""?d="":d===void 0&&(d="$"),typeof d=="object"?u+du+JSON.stringify(d)+du:u+d}}var Z6={exports:{}};/* @license
902
+ Papa Parse
903
+ v5.3.2
904
+ https://github.com/mholt/PapaParse
905
+ License: MIT
906
+ */(function(e,t){(function(r,n){e.exports=n()})(Cr,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},i=!n.document&&!!n.postMessage,a=i&&/blob:/i.test((n.location||{}).protocol),o={},s=0,u={parse:function(M,L){var X=(L=L||{}).dynamicTyping||!1;if(z(X)&&(L.dynamicTypingFunction=X,X={}),L.dynamicTyping=X,L.transform=!!z(L.transform)&&L.transform,L.worker&&u.WORKERS_SUPPORTED){var re=function(){if(!u.WORKERS_SUPPORTED)return!1;var xe=(Ze=n.URL||n.webkitURL||null,Ge=r.toString(),u.BLOB_URL||(u.BLOB_URL=Ze.createObjectURL(new Blob(["(",Ge,")();"],{type:"text/javascript"})))),Se=new n.Worker(xe),Ze,Ge;return Se.onmessage=S,Se.id=s++,o[Se.id]=Se}();return re.userStep=L.step,re.userChunk=L.chunk,re.userComplete=L.complete,re.userError=L.error,L.step=z(L.step),L.chunk=z(L.chunk),L.complete=z(L.complete),L.error=z(L.error),delete L.worker,void re.postMessage({input:M,config:L,workerId:re.id})}var ce=null;return u.NODE_STREAM_INPUT,typeof M=="string"?ce=L.download?new p(L):new g(L):M.readable===!0&&z(M.read)&&z(M.on)?ce=new w(L):(n.File&&M instanceof File||M instanceof Object)&&(ce=new h(L)),ce.stream(M)},unparse:function(M,L){var X=!1,re=!0,ce=",",xe=`\r
907
+ `,Se='"',Ze=Se+Se,Ge=!1,he=null,Fe=!1;(function(){if(typeof L=="object"){if(typeof L.delimiter!="string"||u.BAD_DELIMITERS.filter(function(ge){return L.delimiter.indexOf(ge)!==-1}).length||(ce=L.delimiter),(typeof L.quotes=="boolean"||typeof L.quotes=="function"||Array.isArray(L.quotes))&&(X=L.quotes),typeof L.skipEmptyLines!="boolean"&&typeof L.skipEmptyLines!="string"||(Ge=L.skipEmptyLines),typeof L.newline=="string"&&(xe=L.newline),typeof L.quoteChar=="string"&&(Se=L.quoteChar),typeof L.header=="boolean"&&(re=L.header),Array.isArray(L.columns)){if(L.columns.length===0)throw new Error("Option columns is empty");he=L.columns}L.escapeChar!==void 0&&(Ze=L.escapeChar+Se),(typeof L.escapeFormulae=="boolean"||L.escapeFormulae instanceof RegExp)&&(Fe=L.escapeFormulae instanceof RegExp?L.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var qe=new RegExp(y(Se),"g");if(typeof M=="string"&&(M=JSON.parse(M)),Array.isArray(M)){if(!M.length||Array.isArray(M[0]))return ze(null,M,Ge);if(typeof M[0]=="object")return ze(he||Object.keys(M[0]),M,Ge)}else if(typeof M=="object")return typeof M.data=="string"&&(M.data=JSON.parse(M.data)),Array.isArray(M.data)&&(M.fields||(M.fields=M.meta&&M.meta.fields||he),M.fields||(M.fields=Array.isArray(M.data[0])?M.fields:typeof M.data[0]=="object"?Object.keys(M.data[0]):[]),Array.isArray(M.data[0])||typeof M.data[0]=="object"||(M.data=[M.data])),ze(M.fields||[],M.data||[],Ge);throw new Error("Unable to serialize unrecognized input");function ze(ge,Ve,We){var Qe="";typeof ge=="string"&&(ge=JSON.parse(ge)),typeof Ve=="string"&&(Ve=JSON.parse(Ve));var rt=Array.isArray(ge)&&0<ge.length,At=!Array.isArray(Ve[0]);if(rt&&re){for(var wt=0;wt<ge.length;wt++)0<wt&&(Qe+=ce),Qe+=we(ge[wt],wt);0<Ve.length&&(Qe+=xe)}for(var Ee=0;Ee<Ve.length;Ee++){var Be=rt?ge.length:Ve[Ee].length,ht=!1,_e=rt?Object.keys(Ve[Ee]).length===0:Ve[Ee].length===0;if(We&&!rt&&(ht=We==="greedy"?Ve[Ee].join("").trim()==="":Ve[Ee].length===1&&Ve[Ee][0].length===0),We==="greedy"&&rt){for(var j=[],te=0;te<Be;te++){var I=At?ge[te]:te;j.push(Ve[Ee][I])}ht=j.join("").trim()===""}if(!ht){for(var T=0;T<Be;T++){0<T&&!_e&&(Qe+=ce);var P=rt&&At?ge[T]:T;Qe+=we(Ve[Ee][P],T)}Ee<Ve.length-1&&(!We||0<Be&&!_e)&&(Qe+=xe)}}return Qe}function we(ge,Ve){if(ge==null)return"";if(ge.constructor===Date)return JSON.stringify(ge).slice(1,25);var We=!1;Fe&&typeof ge=="string"&&Fe.test(ge)&&(ge="'"+ge,We=!0);var Qe=ge.toString().replace(qe,Ze);return(We=We||X===!0||typeof X=="function"&&X(ge,Ve)||Array.isArray(X)&&X[Ve]||function(rt,At){for(var wt=0;wt<At.length;wt++)if(-1<rt.indexOf(At[wt]))return!0;return!1}(Qe,u.BAD_DELIMITERS)||-1<Qe.indexOf(ce)||Qe.charAt(0)===" "||Qe.charAt(Qe.length-1)===" ")?Se+Qe+Se:Qe}}};if(u.RECORD_SEP=String.fromCharCode(30),u.UNIT_SEP=String.fromCharCode(31),u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
908
+ `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!n.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=x,u.ParserHandle=E,u.NetworkStreamer=p,u.FileStreamer=h,u.StringStreamer=g,u.ReadableStreamStreamer=w,n.jQuery){var f=n.jQuery;f.fn.parse=function(M){var L=M.config||{},X=[];return this.each(function(xe){if(!(f(this).prop("tagName").toUpperCase()==="INPUT"&&f(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var Se=0;Se<this.files.length;Se++)X.push({file:this.files[Se],inputElem:this,instanceConfig:f.extend({},L)})}),re(),this;function re(){if(X.length!==0){var xe,Se,Ze,Ge,he=X[0];if(z(M.before)){var Fe=M.before(he.file,he.inputElem);if(typeof Fe=="object"){if(Fe.action==="abort")return xe="AbortError",Se=he.file,Ze=he.inputElem,Ge=Fe.reason,void(z(M.error)&&M.error({name:xe},Se,Ze,Ge));if(Fe.action==="skip")return void ce();typeof Fe.config=="object"&&(he.instanceConfig=f.extend(he.instanceConfig,Fe.config))}else if(Fe==="skip")return void ce()}var qe=he.instanceConfig.complete;he.instanceConfig.complete=function(ze){z(qe)&&qe(ze,he.file,he.inputElem),ce()},u.parse(he.file,he.instanceConfig)}else z(M.complete)&&M.complete()}function ce(){X.splice(0,1),re()}}}function d(M){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(L){var X=k(L);X.chunkSize=parseInt(X.chunkSize),L.step||L.chunk||(X.chunkSize=null),this._handle=new E(X),(this._handle.streamer=this)._config=X}.call(this,M),this.parseChunk=function(L,X){if(this.isFirstChunk&&z(this._config.beforeFirstChunk)){var re=this._config.beforeFirstChunk(L);re!==void 0&&(L=re)}this.isFirstChunk=!1,this._halted=!1;var ce=this._partialLine+L;this._partialLine="";var xe=this._handle.parse(ce,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var Se=xe.meta.cursor;this._finished||(this._partialLine=ce.substring(Se-this._baseIndex),this._baseIndex=Se),xe&&xe.data&&(this._rowCount+=xe.data.length);var Ze=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)n.postMessage({results:xe,workerId:u.WORKER_ID,finished:Ze});else if(z(this._config.chunk)&&!X){if(this._config.chunk(xe,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);xe=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(xe.data),this._completeResults.errors=this._completeResults.errors.concat(xe.errors),this._completeResults.meta=xe.meta),this._completed||!Ze||!z(this._config.complete)||xe&&xe.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Ze||xe&&xe.meta.paused||this._nextChunk(),xe}this._halted=!0},this._sendError=function(L){z(this._config.error)?this._config.error(L):a&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:L,finished:!1})}}function p(M){var L;(M=M||{}).chunkSize||(M.chunkSize=u.RemoteChunkSize),d.call(this,M),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(X){this._input=X,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(L=new XMLHttpRequest,this._config.withCredentials&&(L.withCredentials=this._config.withCredentials),i||(L.onload=D(this._chunkLoaded,this),L.onerror=D(this._chunkError,this)),L.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var X=this._config.downloadRequestHeaders;for(var re in X)L.setRequestHeader(re,X[re])}if(this._config.chunkSize){var ce=this._start+this._config.chunkSize-1;L.setRequestHeader("Range","bytes="+this._start+"-"+ce)}try{L.send(this._config.downloadRequestBody)}catch(xe){this._chunkError(xe.message)}i&&L.status===0&&this._chunkError()}},this._chunkLoaded=function(){L.readyState===4&&(L.status<200||400<=L.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:L.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(X){var re=X.getResponseHeader("Content-Range");return re===null?-1:parseInt(re.substring(re.lastIndexOf("/")+1))}(L),this.parseChunk(L.responseText)))},this._chunkError=function(X){var re=L.statusText||X;this._sendError(new Error(re))}}function h(M){var L,X;(M=M||{}).chunkSize||(M.chunkSize=u.LocalChunkSize),d.call(this,M);var re=typeof FileReader<"u";this.stream=function(ce){this._input=ce,X=ce.slice||ce.webkitSlice||ce.mozSlice,re?((L=new FileReader).onload=D(this._chunkLoaded,this),L.onerror=D(this._chunkError,this)):L=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var ce=this._input;if(this._config.chunkSize){var xe=Math.min(this._start+this._config.chunkSize,this._input.size);ce=X.call(ce,this._start,xe)}var Se=L.readAsText(ce,this._config.encoding);re||this._chunkLoaded({target:{result:Se}})},this._chunkLoaded=function(ce){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(ce.target.result)},this._chunkError=function(){this._sendError(L.error)}}function g(M){var L;d.call(this,M=M||{}),this.stream=function(X){return L=X,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var X,re=this._config.chunkSize;return re?(X=L.substring(0,re),L=L.substring(re)):(X=L,L=""),this._finished=!L,this.parseChunk(X)}}}function w(M){d.call(this,M=M||{});var L=[],X=!0,re=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(ce){this._input=ce,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){re&&L.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),L.length?this.parseChunk(L.shift()):X=!0},this._streamData=D(function(ce){try{L.push(typeof ce=="string"?ce:ce.toString(this._config.encoding)),X&&(X=!1,this._checkIsFinished(),this.parseChunk(L.shift()))}catch(xe){this._streamError(xe)}},this),this._streamError=D(function(ce){this._streamCleanUp(),this._sendError(ce)},this),this._streamEnd=D(function(){this._streamCleanUp(),re=!0,this._streamData("")},this),this._streamCleanUp=D(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function E(M){var L,X,re,ce=Math.pow(2,53),xe=-ce,Se=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Ze=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,Ge=this,he=0,Fe=0,qe=!1,ze=!1,we=[],ge={data:[],errors:[],meta:{}};if(z(M.step)){var Ve=M.step;M.step=function(Ee){if(ge=Ee,rt())Qe();else{if(Qe(),ge.data.length===0)return;he+=Ee.data.length,M.preview&&he>M.preview?X.abort():(ge.data=ge.data[0],Ve(ge,Ge))}}}function We(Ee){return M.skipEmptyLines==="greedy"?Ee.join("").trim()==="":Ee.length===1&&Ee[0].length===0}function Qe(){return ge&&re&&(wt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),re=!1),M.skipEmptyLines&&(ge.data=ge.data.filter(function(Ee){return!We(Ee)})),rt()&&function(){if(!ge)return;function Ee(ht,_e){z(M.transformHeader)&&(ht=M.transformHeader(ht,_e)),we.push(ht)}if(Array.isArray(ge.data[0])){for(var Be=0;rt()&&Be<ge.data.length;Be++)ge.data[Be].forEach(Ee);ge.data.splice(0,1)}else ge.data.forEach(Ee)}(),function(){if(!ge||!M.header&&!M.dynamicTyping&&!M.transform)return ge;function Ee(ht,_e){var j,te=M.header?{}:[];for(j=0;j<ht.length;j++){var I=j,T=ht[j];M.header&&(I=j>=we.length?"__parsed_extra":we[j]),M.transform&&(T=M.transform(T,I)),T=At(I,T),I==="__parsed_extra"?(te[I]=te[I]||[],te[I].push(T)):te[I]=T}return M.header&&(j>we.length?wt("FieldMismatch","TooManyFields","Too many fields: expected "+we.length+" fields but parsed "+j,Fe+_e):j<we.length&&wt("FieldMismatch","TooFewFields","Too few fields: expected "+we.length+" fields but parsed "+j,Fe+_e)),te}var Be=1;return!ge.data.length||Array.isArray(ge.data[0])?(ge.data=ge.data.map(Ee),Be=ge.data.length):ge.data=Ee(ge.data,0),M.header&&ge.meta&&(ge.meta.fields=we),Fe+=Be,ge}()}function rt(){return M.header&&we.length===0}function At(Ee,Be){return ht=Ee,M.dynamicTypingFunction&&M.dynamicTyping[ht]===void 0&&(M.dynamicTyping[ht]=M.dynamicTypingFunction(ht)),(M.dynamicTyping[ht]||M.dynamicTyping)===!0?Be==="true"||Be==="TRUE"||Be!=="false"&&Be!=="FALSE"&&(function(_e){if(Se.test(_e)){var j=parseFloat(_e);if(xe<j&&j<ce)return!0}return!1}(Be)?parseFloat(Be):Ze.test(Be)?new Date(Be):Be===""?null:Be):Be;var ht}function wt(Ee,Be,ht,_e){var j={type:Ee,code:Be,message:ht};_e!==void 0&&(j.row=_e),ge.errors.push(j)}this.parse=function(Ee,Be,ht){var _e=M.quoteChar||'"';if(M.newline||(M.newline=function(I,T){I=I.substring(0,1048576);var P=new RegExp(y(T)+"([^]*?)"+y(T),"gm"),U=(I=I.replace(P,"")).split("\r"),le=I.split(`
909
+ `),Ne=1<le.length&&le[0].length<U[0].length;if(U.length===1||Ne)return`
910
+ `;for(var $e=0,zt=0;zt<U.length;zt++)U[zt][0]===`
911
+ `&&$e++;return $e>=U.length/2?`\r
912
+ `:"\r"}(Ee,_e)),re=!1,M.delimiter)z(M.delimiter)&&(M.delimiter=M.delimiter(Ee),ge.meta.delimiter=M.delimiter);else{var j=function(I,T,P,U,le){var Ne,$e,zt,Xt;le=le||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var er=0;er<le.length;er++){var cr=le[er],_r=0,$r=0,Wn=0;zt=void 0;for(var un=new x({comments:U,delimiter:cr,newline:T,preview:10}).parse(I),vn=0;vn<un.data.length;vn++)if(P&&We(un.data[vn]))Wn++;else{var xn=un.data[vn].length;$r+=xn,zt!==void 0?0<xn&&(_r+=Math.abs(xn-zt),zt=xn):zt=xn}0<un.data.length&&($r/=un.data.length-Wn),($e===void 0||_r<=$e)&&(Xt===void 0||Xt<$r)&&1.99<$r&&($e=_r,Ne=cr,Xt=$r)}return{successful:!!(M.delimiter=Ne),bestDelimiter:Ne}}(Ee,M.newline,M.skipEmptyLines,M.comments,M.delimitersToGuess);j.successful?M.delimiter=j.bestDelimiter:(re=!0,M.delimiter=u.DefaultDelimiter),ge.meta.delimiter=M.delimiter}var te=k(M);return M.preview&&M.header&&te.preview++,L=Ee,X=new x(te),ge=X.parse(L,Be,ht),Qe(),qe?{meta:{paused:!0}}:ge||{meta:{paused:!1}}},this.paused=function(){return qe},this.pause=function(){qe=!0,X.abort(),L=z(M.chunk)?"":L.substring(X.getCharIndex())},this.resume=function(){Ge.streamer._halted?(qe=!1,Ge.streamer.parseChunk(L,!0)):setTimeout(Ge.resume,3)},this.aborted=function(){return ze},this.abort=function(){ze=!0,X.abort(),ge.meta.aborted=!0,z(M.complete)&&M.complete(ge),L=""}}function y(M){return M.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(M){var L,X=(M=M||{}).delimiter,re=M.newline,ce=M.comments,xe=M.step,Se=M.preview,Ze=M.fastMode,Ge=L=M.quoteChar===void 0||M.quoteChar===null?'"':M.quoteChar;if(M.escapeChar!==void 0&&(Ge=M.escapeChar),(typeof X!="string"||-1<u.BAD_DELIMITERS.indexOf(X))&&(X=","),ce===X)throw new Error("Comment character same as delimiter");ce===!0?ce="#":(typeof ce!="string"||-1<u.BAD_DELIMITERS.indexOf(ce))&&(ce=!1),re!==`
913
+ `&&re!=="\r"&&re!==`\r
914
+ `&&(re=`
915
+ `);var he=0,Fe=!1;this.parse=function(qe,ze,we){if(typeof qe!="string")throw new Error("Input must be a string");var ge=qe.length,Ve=X.length,We=re.length,Qe=ce.length,rt=z(xe),At=[],wt=[],Ee=[],Be=he=0;if(!qe)return Xt();if(Ze||Ze!==!1&&qe.indexOf(L)===-1){for(var ht=qe.split(re),_e=0;_e<ht.length;_e++){if(Ee=ht[_e],he+=Ee.length,_e!==ht.length-1)he+=re.length;else if(we)return Xt();if(!ce||Ee.substring(0,Qe)!==ce){if(rt){if(At=[],le(Ee.split(X)),er(),Fe)return Xt()}else le(Ee.split(X));if(Se&&Se<=_e)return At=At.slice(0,Se),Xt(!0)}}return Xt()}for(var j=qe.indexOf(X,he),te=qe.indexOf(re,he),I=new RegExp(y(Ge)+y(L),"g"),T=qe.indexOf(L,he);;)if(qe[he]!==L)if(ce&&Ee.length===0&&qe.substring(he,he+Qe)===ce){if(te===-1)return Xt();he=te+We,te=qe.indexOf(re,he),j=qe.indexOf(X,he)}else if(j!==-1&&(j<te||te===-1))Ee.push(qe.substring(he,j)),he=j+Ve,j=qe.indexOf(X,he);else{if(te===-1)break;if(Ee.push(qe.substring(he,te)),zt(te+We),rt&&(er(),Fe))return Xt();if(Se&&At.length>=Se)return Xt(!0)}else for(T=he,he++;;){if((T=qe.indexOf(L,T+1))===-1)return we||wt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:At.length,index:he}),$e();if(T===ge-1)return $e(qe.substring(he,T).replace(I,L));if(L!==Ge||qe[T+1]!==Ge){if(L===Ge||T===0||qe[T-1]!==Ge){j!==-1&&j<T+1&&(j=qe.indexOf(X,T+1)),te!==-1&&te<T+1&&(te=qe.indexOf(re,T+1));var P=Ne(te===-1?j:Math.min(j,te));if(qe.substr(T+1+P,Ve)===X){Ee.push(qe.substring(he,T).replace(I,L)),qe[he=T+1+P+Ve]!==L&&(T=qe.indexOf(L,he)),j=qe.indexOf(X,he),te=qe.indexOf(re,he);break}var U=Ne(te);if(qe.substring(T+1+U,T+1+U+We)===re){if(Ee.push(qe.substring(he,T).replace(I,L)),zt(T+1+U+We),j=qe.indexOf(X,he),T=qe.indexOf(L,he),rt&&(er(),Fe))return Xt();if(Se&&At.length>=Se)return Xt(!0);break}wt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:At.length,index:he}),T++}}else T++}return $e();function le(cr){At.push(cr),Be=he}function Ne(cr){var _r=0;if(cr!==-1){var $r=qe.substring(T+1,cr);$r&&$r.trim()===""&&(_r=$r.length)}return _r}function $e(cr){return we||(cr===void 0&&(cr=qe.substring(he)),Ee.push(cr),he=ge,le(Ee),rt&&er()),Xt()}function zt(cr){he=cr,le(Ee),Ee=[],te=qe.indexOf(re,he)}function Xt(cr){return{data:At,errors:wt,meta:{delimiter:X,linebreak:re,aborted:Fe,truncated:!!cr,cursor:Be+(ze||0)}}}function er(){xe(Xt()),At=[],wt=[]}},this.abort=function(){Fe=!0},this.getCharIndex=function(){return he}}function S(M){var L=M.data,X=o[L.workerId],re=!1;if(L.error)X.userError(L.error,L.file);else if(L.results&&L.results.data){var ce={abort:function(){re=!0,A(L.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(z(X.userStep)){for(var xe=0;xe<L.results.data.length&&(X.userStep({data:L.results.data[xe],errors:L.results.errors,meta:L.results.meta},ce),!re);xe++);delete L.results}else z(X.userChunk)&&(X.userChunk(L.results,ce,L.file),delete L.results)}L.finished&&!re&&A(L.workerId,L.results)}function A(M,L){var X=o[M];z(X.userComplete)&&X.userComplete(L),X.terminate(),delete o[M]}function C(){throw new Error("Not implemented.")}function k(M){if(typeof M!="object"||M===null)return M;var L=Array.isArray(M)?[]:{};for(var X in M)L[X]=k(M[X]);return L}function D(M,L){return function(){M.apply(L,arguments)}}function z(M){return typeof M=="function"}return a&&(n.onmessage=function(M){var L=M.data;if(u.WORKER_ID===void 0&&L&&(u.WORKER_ID=L.workerId),typeof L.input=="string")n.postMessage({workerId:u.WORKER_ID,results:u.parse(L.input,L.config),finished:!0});else if(n.File&&L.input instanceof File||L.input instanceof Object){var X=u.parse(L.input,L.config);X&&n.postMessage({workerId:u.WORKER_ID,results:X,finished:!0})}}),(p.prototype=Object.create(d.prototype)).constructor=p,(h.prototype=Object.create(d.prototype)).constructor=h,(g.prototype=Object.create(g.prototype)).constructor=g,(w.prototype=Object.create(d.prototype)).constructor=w,u})})(Z6);const Oge=Z6.exports;var roe={exports:{}};/*! Native Promise Only
916
+ v0.8.1 (c) Kyle Simpson
917
+ MIT License: http://getify.mit-license.org
918
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Cr<"u"?Cr:Cr,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,C,k,D){return Object.defineProperty(A,C,{value:k,writable:!0,configurable:D!==!1})}}catch{r=function(C,k,D){return C[k]=D,C}}i=function(){var A,C,k;function D(z,M){this.fn=z,this.self=M,this.next=void 0}return{add:function(M,L){k=new D(M,L),C?C.next=k:A=k,C=k,k=void 0},drain:function(){var M=A;for(A=C=n=void 0;M;)M.fn.call(M.self),M=M.next}}}();function s(S,A){i.add(S,A),n||(n=o(i.drain))}function u(S){var A,C=typeof S;return S!=null&&(C=="object"||C=="function")&&(A=S.then),typeof A=="function"?A:!1}function f(){for(var S=0;S<this.chain.length;S++)d(this,this.state===1?this.chain[S].success:this.chain[S].failure,this.chain[S]);this.chain.length=0}function d(S,A,C){var k,D;try{A===!1?C.reject(S.msg):(A===!0?k=S.msg:k=A.call(void 0,S.msg),k===C.promise?C.reject(TypeError("Promise-chain cycle")):(D=u(k))?D.call(k,C.resolve,C.reject):C.resolve(k))}catch(z){C.reject(z)}}function p(S){var A,C=this;if(!C.triggered){C.triggered=!0,C.def&&(C=C.def);try{(A=u(S))?s(function(){var k=new w(C);try{A.call(S,function(){p.apply(k,arguments)},function(){h.apply(k,arguments)})}catch(D){h.call(k,D)}}):(C.msg=S,C.state=1,C.chain.length>0&&s(f,C))}catch(k){h.call(new w(C),k)}}}function h(S){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=S,A.state=2,A.chain.length>0&&s(f,A))}function g(S,A,C,k){for(var D=0;D<A.length;D++)(function(M){S.resolve(A[M]).then(function(X){C(M,X)},k)})(D)}function w(S){this.def=S,this.triggered=!1}function E(S){this.promise=S,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(S){if(typeof S!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var A=new E(this);this.then=function(k,D){var z={success:typeof k=="function"?k:!0,failure:typeof D=="function"?D:!1};return z.promise=new this.constructor(function(L,X){if(typeof L!="function"||typeof X!="function")throw TypeError("Not a function");z.resolve=L,z.reject=X}),A.chain.push(z),A.state!==0&&s(f,A),z.promise},this.catch=function(k){return this.then(void 0,k)};try{S.call(void 0,function(k){p.call(A,k)},function(k){h.call(A,k)})}catch(C){h.call(A,C)}}var x=r({},"constructor",y,!1);return y.prototype=x,r(x,"__NPO__",0,!1),r(y,"resolve",function(A){var C=this;return A&&typeof A=="object"&&A.__NPO__===1?A:new C(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");D(A)})}),r(y,"reject",function(A){return new this(function(k,D){if(typeof k!="function"||typeof D!="function")throw TypeError("Not a function");D(A)})}),r(y,"all",function(A){var C=this;return a.call(A)!="[object Array]"?C.reject(TypeError("Not an array")):A.length===0?C.resolve([]):new C(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");var M=A.length,L=Array(M),X=0;g(C,A,function(ce,xe){L[ce]=xe,++X===M&&D(L)},z)})}),r(y,"race",function(A){var C=this;return a.call(A)!="[object Array]"?C.reject(TypeError("Not an array")):new C(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");g(C,A,function(L,X){D(X)},z)})}),y})})(roe);var noe={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(l){return r.call(l)},i=self.document;function a(l){return l&&(l.ownerDocument||l.document||l).documentElement}function o(l){return l&&(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(c){for(var v=c.length,m=new Array(v);v--;)m[v]=c[v];return m}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var s=this.Element.prototype,u=s.setAttribute,f=s.setAttributeNS,d=this.CSSStyleDeclaration.prototype,p=d.setProperty;s.setAttribute=function(c,v){u.call(this,c,v+"")},s.setAttributeNS=function(c,v,m){f.call(this,c,v,m+"")},d.setProperty=function(c,v,m){p.call(this,c,v+"",m)}}t.ascending=h;function h(l,c){return l<c?-1:l>c?1:l>=c?0:NaN}t.descending=function(l,c){return c<l?-1:c>l?1:c>=l?0:NaN},t.min=function(l,c){var v=-1,m=l.length,b,_;if(arguments.length===1){for(;++v<m;)if((_=l[v])!=null&&_>=_){b=_;break}for(;++v<m;)(_=l[v])!=null&&b>_&&(b=_)}else{for(;++v<m;)if((_=c.call(l,l[v],v))!=null&&_>=_){b=_;break}for(;++v<m;)(_=c.call(l,l[v],v))!=null&&b>_&&(b=_)}return b},t.max=function(l,c){var v=-1,m=l.length,b,_;if(arguments.length===1){for(;++v<m;)if((_=l[v])!=null&&_>=_){b=_;break}for(;++v<m;)(_=l[v])!=null&&_>b&&(b=_)}else{for(;++v<m;)if((_=c.call(l,l[v],v))!=null&&_>=_){b=_;break}for(;++v<m;)(_=c.call(l,l[v],v))!=null&&_>b&&(b=_)}return b},t.extent=function(l,c){var v=-1,m=l.length,b,_,O;if(arguments.length===1){for(;++v<m;)if((_=l[v])!=null&&_>=_){b=O=_;break}for(;++v<m;)(_=l[v])!=null&&(b>_&&(b=_),O<_&&(O=_))}else{for(;++v<m;)if((_=c.call(l,l[v],v))!=null&&_>=_){b=O=_;break}for(;++v<m;)(_=c.call(l,l[v],v))!=null&&(b>_&&(b=_),O<_&&(O=_))}return[b,O]};function g(l){return l===null?NaN:+l}function w(l){return!isNaN(l)}t.sum=function(l,c){var v=0,m=l.length,b,_=-1;if(arguments.length===1)for(;++_<m;)w(b=+l[_])&&(v+=b);else for(;++_<m;)w(b=+c.call(l,l[_],_))&&(v+=b);return v},t.mean=function(l,c){var v=0,m=l.length,b,_=-1,O=m;if(arguments.length===1)for(;++_<m;)w(b=g(l[_]))?v+=b:--O;else for(;++_<m;)w(b=g(c.call(l,l[_],_)))?v+=b:--O;if(O)return v/O},t.quantile=function(l,c){var v=(l.length-1)*c+1,m=Math.floor(v),b=+l[m-1],_=v-m;return _?b+_*(l[m]-b):b},t.median=function(l,c){var v=[],m=l.length,b,_=-1;if(arguments.length===1)for(;++_<m;)w(b=g(l[_]))&&v.push(b);else for(;++_<m;)w(b=g(c.call(l,l[_],_)))&&v.push(b);if(v.length)return t.quantile(v.sort(h),.5)},t.variance=function(l,c){var v=l.length,m=0,b,_,O=0,R=-1,N=0;if(arguments.length===1)for(;++R<v;)w(b=g(l[R]))&&(_=b-m,m+=_/++N,O+=_*(b-m));else for(;++R<v;)w(b=g(c.call(l,l[R],R)))&&(_=b-m,m+=_/++N,O+=_*(b-m));if(N>1)return O/(N-1)},t.deviation=function(){var l=t.variance.apply(this,arguments);return l&&Math.sqrt(l)};function E(l){return{left:function(c,v,m,b){for(arguments.length<3&&(m=0),arguments.length<4&&(b=c.length);m<b;){var _=m+b>>>1;l(c[_],v)<0?m=_+1:b=_}return m},right:function(c,v,m,b){for(arguments.length<3&&(m=0),arguments.length<4&&(b=c.length);m<b;){var _=m+b>>>1;l(c[_],v)>0?b=_:m=_+1}return m}}}var y=E(h);t.bisectLeft=y.left,t.bisect=t.bisectRight=y.right,t.bisector=function(l){return E(l.length===1?function(c,v){return h(l(c),v)}:l)},t.shuffle=function(l,c,v){(m=arguments.length)<3&&(v=l.length,m<2&&(c=0));for(var m=v-c,b,_;m;)_=Math.random()*m--|0,b=l[m+c],l[m+c]=l[_+c],l[_+c]=b;return l},t.permute=function(l,c){for(var v=c.length,m=new Array(v);v--;)m[v]=l[c[v]];return m},t.pairs=function(l){for(var c=0,v=l.length-1,m=l[0],b=new Array(v<0?0:v);c<v;)b[c]=[m,m=l[++c]];return b},t.transpose=function(l){if(!(_=l.length))return[];for(var c=-1,v=t.min(l,x),m=new Array(v);++c<v;)for(var b=-1,_,O=m[c]=new Array(_);++b<_;)O[b]=l[b][c];return m};function x(l){return l.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(l){var c=[];for(var v in l)c.push(v);return c},t.values=function(l){var c=[];for(var v in l)c.push(l[v]);return c},t.entries=function(l){var c=[];for(var v in l)c.push({key:v,value:l[v]});return c},t.merge=function(l){for(var c=l.length,v,m=-1,b=0,_,O;++m<c;)b+=l[m].length;for(_=new Array(b);--c>=0;)for(O=l[c],v=O.length;--v>=0;)_[--b]=O[v];return _};var S=Math.abs;t.range=function(l,c,v){if(arguments.length<3&&(v=1,arguments.length<2&&(c=l,l=0)),(c-l)/v===1/0)throw new Error("infinite range");var m=[],b=A(S(v)),_=-1,O;if(l*=b,c*=b,v*=b,v<0)for(;(O=l+v*++_)>c;)m.push(O/b);else for(;(O=l+v*++_)<c;)m.push(O/b);return m};function A(l){for(var c=1;l*c%1;)c*=10;return c}function C(l,c){for(var v in c)Object.defineProperty(l.prototype,v,{value:c[v],enumerable:!1})}t.map=function(l,c){var v=new k;if(l instanceof k)l.forEach(function(R,N){v.set(R,N)});else if(Array.isArray(l)){var m=-1,b=l.length,_;if(arguments.length===1)for(;++m<b;)v.set(m,l[m]);else for(;++m<b;)v.set(c.call(l,_=l[m],m),_)}else for(var O in l)v.set(O,l[O]);return v};function k(){this._=Object.create(null)}var D="__proto__",z="\0";C(k,{has:X,get:function(l){return this._[M(l)]},set:function(l,c){return this._[M(l)]=c},remove:re,keys:ce,values:function(){var l=[];for(var c in this._)l.push(this._[c]);return l},entries:function(){var l=[];for(var c in this._)l.push({key:L(c),value:this._[c]});return l},size:xe,empty:Se,forEach:function(l){for(var c in this._)l.call(this,L(c),this._[c])}});function M(l){return(l+="")===D||l[0]===z?z+l:l}function L(l){return(l+="")[0]===z?l.slice(1):l}function X(l){return M(l)in this._}function re(l){return(l=M(l))in this._&&delete this._[l]}function ce(){var l=[];for(var c in this._)l.push(L(c));return l}function xe(){var l=0;for(var c in this._)++l;return l}function Se(){for(var l in this._)return!1;return!0}t.nest=function(){var l={},c=[],v=[],m,b;function _(R,N,B){if(B>=c.length)return b?b.call(l,N):m?N.sort(m):N;for(var $=-1,W=N.length,G=c[B++],se,ue,H,Q=new k,ne;++$<W;)(ne=Q.get(se=G(ue=N[$])))?ne.push(ue):Q.set(se,[ue]);return R?(ue=R(),H=function(fe,de){ue.set(fe,_(R,de,B))}):(ue={},H=function(fe,de){ue[fe]=_(R,de,B)}),Q.forEach(H),ue}function O(R,N){if(N>=c.length)return R;var B=[],$=v[N++];return R.forEach(function(W,G){B.push({key:W,values:O(G,N)})}),$?B.sort(function(W,G){return $(W.key,G.key)}):B}return l.map=function(R,N){return _(N,R,0)},l.entries=function(R){return O(_(t.map,R,0),0)},l.key=function(R){return c.push(R),l},l.sortKeys=function(R){return v[c.length-1]=R,l},l.sortValues=function(R){return m=R,l},l.rollup=function(R){return b=R,l},l},t.set=function(l){var c=new Ze;if(l)for(var v=0,m=l.length;v<m;++v)c.add(l[v]);return c};function Ze(){this._=Object.create(null)}C(Ze,{has:X,add:function(l){return this._[M(l+="")]=!0,l},remove:re,values:ce,size:xe,empty:Se,forEach:function(l){for(var c in this._)l.call(this,L(c))}}),t.behavior={};function Ge(l){return l}t.rebind=function(l,c){for(var v=1,m=arguments.length,b;++v<m;)l[b=arguments[v]]=he(l,c,c[b]);return l};function he(l,c,v){return function(){var m=v.apply(c,arguments);return m===c?l:m}}function Fe(l,c){if(c in l)return c;c=c.charAt(0).toUpperCase()+c.slice(1);for(var v=0,m=qe.length;v<m;++v){var b=qe[v]+c;if(b in l)return b}}var qe=["webkit","ms","moz","Moz","o","O"];function ze(){}t.dispatch=function(){for(var l=new we,c=-1,v=arguments.length;++c<v;)l[arguments[c]]=ge(l);return l};function we(){}we.prototype.on=function(l,c){var v=l.indexOf("."),m="";if(v>=0&&(m=l.slice(v+1),l=l.slice(0,v)),l)return arguments.length<2?this[l].on(m):this[l].on(m,c);if(arguments.length===2){if(c==null)for(l in this)this.hasOwnProperty(l)&&this[l].on(m,null);return this}};function ge(l){var c=[],v=new k;function m(){for(var b=c,_=-1,O=b.length,R;++_<O;)(R=b[_].on)&&R.apply(this,arguments);return l}return m.on=function(b,_){var O=v.get(b),R;return arguments.length<2?O&&O.on:(O&&(O.on=null,c=c.slice(0,R=c.indexOf(O)).concat(c.slice(R+1)),v.remove(b)),_&&c.push(v.set(b,{on:_})),l)},m}t.event=null;function Ve(){t.event.preventDefault()}function We(){for(var l=t.event,c;c=l.sourceEvent;)l=c;return l}function Qe(l){for(var c=new we,v=0,m=arguments.length;++v<m;)c[arguments[v]]=ge(c);return c.of=function(b,_){return function(O){try{var R=O.sourceEvent=t.event;O.target=l,t.event=O,c[O.type].apply(b,_)}finally{t.event=R}}},c}t.requote=function(l){return l.replace(rt,"\\$&")};var rt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,At={}.__proto__?function(l,c){l.__proto__=c}:function(l,c){for(var v in c)l[v]=c[v]};function wt(l){return At(l,_e),l}var Ee=function(l,c){return c.querySelector(l)},Be=function(l,c){return c.querySelectorAll(l)},ht=function(l,c){var v=l.matches||l[Fe(l,"matchesSelector")];return ht=function(m,b){return v.call(m,b)},ht(l,c)};typeof Sizzle=="function"&&(Ee=function(l,c){return Sizzle(l,c)[0]||null},Be=Sizzle,ht=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var _e=t.selection.prototype=[];_e.select=function(l){var c=[],v,m,b,_;l=j(l);for(var O=-1,R=this.length;++O<R;){c.push(v=[]),v.parentNode=(b=this[O]).parentNode;for(var N=-1,B=b.length;++N<B;)(_=b[N])?(v.push(m=l.call(_,_.__data__,N,O)),m&&"__data__"in _&&(m.__data__=_.__data__)):v.push(null)}return wt(c)};function j(l){return typeof l=="function"?l:function(){return Ee(l,this)}}_e.selectAll=function(l){var c=[],v,m;l=te(l);for(var b=-1,_=this.length;++b<_;)for(var O=this[b],R=-1,N=O.length;++R<N;)(m=O[R])&&(c.push(v=n(l.call(m,m.__data__,R,b))),v.parentNode=m);return wt(c)};function te(l){return typeof l=="function"?l:function(){return Be(l,this)}}var I="http://www.w3.org/1999/xhtml",T={svg:"http://www.w3.org/2000/svg",xhtml:I,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:T,qualify:function(l){var c=l.indexOf(":"),v=l;return c>=0&&(v=l.slice(0,c))!=="xmlns"&&(l=l.slice(c+1)),T.hasOwnProperty(v)?{space:T[v],local:l}:l}},_e.attr=function(l,c){if(arguments.length<2){if(typeof l=="string"){var v=this.node();return l=t.ns.qualify(l),l.local?v.getAttributeNS(l.space,l.local):v.getAttribute(l)}for(c in l)this.each(P(c,l[c]));return this}return this.each(P(l,c))};function P(l,c){l=t.ns.qualify(l);function v(){this.removeAttribute(l)}function m(){this.removeAttributeNS(l.space,l.local)}function b(){this.setAttribute(l,c)}function _(){this.setAttributeNS(l.space,l.local,c)}function O(){var N=c.apply(this,arguments);N==null?this.removeAttribute(l):this.setAttribute(l,N)}function R(){var N=c.apply(this,arguments);N==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,N)}return c==null?l.local?m:v:typeof c=="function"?l.local?R:O:l.local?_:b}function U(l){return l.trim().replace(/\s+/g," ")}_e.classed=function(l,c){if(arguments.length<2){if(typeof l=="string"){var v=this.node(),m=(l=Ne(l)).length,b=-1;if(c=v.classList){for(;++b<m;)if(!c.contains(l[b]))return!1}else for(c=v.getAttribute("class");++b<m;)if(!le(l[b]).test(c))return!1;return!0}for(c in l)this.each($e(c,l[c]));return this}return this.each($e(l,c))};function le(l){return new RegExp("(?:^|\\s+)"+t.requote(l)+"(?:\\s+|$)","g")}function Ne(l){return(l+"").trim().split(/^|\s+/)}function $e(l,c){l=Ne(l).map(zt);var v=l.length;function m(){for(var _=-1;++_<v;)l[_](this,c)}function b(){for(var _=-1,O=c.apply(this,arguments);++_<v;)l[_](this,O)}return typeof c=="function"?b:m}function zt(l){var c=le(l);return function(v,m){if(b=v.classList)return m?b.add(l):b.remove(l);var b=v.getAttribute("class")||"";m?(c.lastIndex=0,c.test(b)||v.setAttribute("class",U(b+" "+l))):v.setAttribute("class",U(b.replace(c," ")))}}_e.style=function(l,c,v){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(v in l)this.each(Xt(v,l[v],c));return this}if(m<2){var b=this.node();return o(b).getComputedStyle(b,null).getPropertyValue(l)}v=""}return this.each(Xt(l,c,v))};function Xt(l,c,v){function m(){this.style.removeProperty(l)}function b(){this.style.setProperty(l,c,v)}function _(){var O=c.apply(this,arguments);O==null?this.style.removeProperty(l):this.style.setProperty(l,O,v)}return c==null?m:typeof c=="function"?_:b}_e.property=function(l,c){if(arguments.length<2){if(typeof l=="string")return this.node()[l];for(c in l)this.each(er(c,l[c]));return this}return this.each(er(l,c))};function er(l,c){function v(){delete this[l]}function m(){this[l]=c}function b(){var _=c.apply(this,arguments);_==null?delete this[l]:this[l]=_}return c==null?v:typeof c=="function"?b:m}_e.text=function(l){return arguments.length?this.each(typeof l=="function"?function(){var c=l.apply(this,arguments);this.textContent=c==null?"":c}:l==null?function(){this.textContent=""}:function(){this.textContent=l}):this.node().textContent},_e.html=function(l){return arguments.length?this.each(typeof l=="function"?function(){var c=l.apply(this,arguments);this.innerHTML=c==null?"":c}:l==null?function(){this.innerHTML=""}:function(){this.innerHTML=l}):this.node().innerHTML},_e.append=function(l){return l=cr(l),this.select(function(){return this.appendChild(l.apply(this,arguments))})};function cr(l){function c(){var m=this.ownerDocument,b=this.namespaceURI;return b===I&&m.documentElement.namespaceURI===I?m.createElement(l):m.createElementNS(b,l)}function v(){return this.ownerDocument.createElementNS(l.space,l.local)}return typeof l=="function"?l:(l=t.ns.qualify(l)).local?v:c}_e.insert=function(l,c){return l=cr(l),c=j(c),this.select(function(){return this.insertBefore(l.apply(this,arguments),c.apply(this,arguments)||null)})},_e.remove=function(){return this.each(_r)};function _r(){var l=this.parentNode;l&&l.removeChild(this)}_e.data=function(l,c){var v=-1,m=this.length,b,_;if(!arguments.length){for(l=new Array(m=(b=this[0]).length);++v<m;)(_=b[v])&&(l[v]=_.__data__);return l}function O($,W){var G,se=$.length,ue=W.length,H=Math.min(se,ue),Q=new Array(ue),ne=new Array(ue),fe=new Array(se),de,ae;if(c){var He=new k,Je=new Array(se),ut;for(G=-1;++G<se;)(de=$[G])&&(He.has(ut=c.call(de,de.__data__,G))?fe[G]=de:He.set(ut,de),Je[G]=ut);for(G=-1;++G<ue;)(de=He.get(ut=c.call(W,ae=W[G],G)))?de!==!0&&(Q[G]=de,de.__data__=ae):ne[G]=$r(ae),He.set(ut,!0);for(G=-1;++G<se;)G in Je&&He.get(Je[G])!==!0&&(fe[G]=$[G])}else{for(G=-1;++G<H;)de=$[G],ae=W[G],de?(de.__data__=ae,Q[G]=de):ne[G]=$r(ae);for(;G<ue;++G)ne[G]=$r(W[G]);for(;G<se;++G)fe[G]=$[G]}ne.update=Q,ne.parentNode=Q.parentNode=fe.parentNode=$.parentNode,R.push(ne),N.push(Q),B.push(fe)}var R=xn([]),N=wt([]),B=wt([]);if(typeof l=="function")for(;++v<m;)O(b=this[v],l.call(b,b.parentNode.__data__,v));else for(;++v<m;)O(b=this[v],l);return N.enter=function(){return R},N.exit=function(){return B},N};function $r(l){return{__data__:l}}_e.datum=function(l){return arguments.length?this.property("__data__",l):this.property("__data__")},_e.filter=function(l){var c=[],v,m,b;typeof l!="function"&&(l=Wn(l));for(var _=0,O=this.length;_<O;_++){c.push(v=[]),v.parentNode=(m=this[_]).parentNode;for(var R=0,N=m.length;R<N;R++)(b=m[R])&&l.call(b,b.__data__,R,_)&&v.push(b)}return wt(c)};function Wn(l){return function(){return ht(this,l)}}_e.order=function(){for(var l=-1,c=this.length;++l<c;)for(var v=this[l],m=v.length-1,b=v[m],_;--m>=0;)(_=v[m])&&(b&&b!==_.nextSibling&&b.parentNode.insertBefore(_,b),b=_);return this},_e.sort=function(l){l=un.apply(this,arguments);for(var c=-1,v=this.length;++c<v;)this[c].sort(l);return this.order()};function un(l){return arguments.length||(l=h),function(c,v){return c&&v?l(c.__data__,v.__data__):!c-!v}}_e.each=function(l){return vn(this,function(c,v,m){l.call(c,c.__data__,v,m)})};function vn(l,c){for(var v=0,m=l.length;v<m;v++)for(var b=l[v],_=0,O=b.length,R;_<O;_++)(R=b[_])&&c(R,_,v);return l}_e.call=function(l){var c=n(arguments);return l.apply(c[0]=this,c),this},_e.empty=function(){return!this.node()},_e.node=function(){for(var l=0,c=this.length;l<c;l++)for(var v=this[l],m=0,b=v.length;m<b;m++){var _=v[m];if(_)return _}return null},_e.size=function(){var l=0;return vn(this,function(){++l}),l};function xn(l){return At(l,vi),l}var vi=[];t.selection.enter=xn,t.selection.enter.prototype=vi,vi.append=_e.append,vi.empty=_e.empty,vi.node=_e.node,vi.call=_e.call,vi.size=_e.size,vi.select=function(l){for(var c=[],v,m,b,_,O,R=-1,N=this.length;++R<N;){b=(_=this[R]).update,c.push(v=[]),v.parentNode=_.parentNode;for(var B=-1,$=_.length;++B<$;)(O=_[B])?(v.push(b[B]=m=l.call(_.parentNode,O.__data__,B,R)),m.__data__=O.__data__):v.push(null)}return wt(c)},vi.insert=function(l,c){return arguments.length<2&&(c=lo(this)),_e.insert.call(this,l,c)};function lo(l){var c,v;return function(m,b,_){var O=l[_].update,R=O.length,N;for(_!=v&&(v=_,c=0),b>=c&&(c=b+1);!(N=O[c])&&++c<R;);return N}}t.select=function(l){var c;return typeof l=="string"?(c=[Ee(l,i)],c.parentNode=i.documentElement):(c=[l],c.parentNode=a(l)),wt([c])},t.selectAll=function(l){var c;return typeof l=="string"?(c=n(Be(l,i)),c.parentNode=i.documentElement):(c=n(l),c.parentNode=null),wt([c])},_e.on=function(l,c,v){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c=!1);for(v in l)this.each(Jo(v,l[v],c));return this}if(m<2)return(m=this.node()["__on"+l])&&m._;v=!1}return this.each(Jo(l,c,v))};function Jo(l,c,v){var m="__on"+l,b=l.indexOf("."),_=es;b>0&&(l=l.slice(0,b));var O=uo.get(l);O&&(l=O,_=Hu);function R(){var $=this[m];$&&(this.removeEventListener(l,$,$.$),delete this[m])}function N(){var $=_(c,n(arguments));R.call(this),this.addEventListener(l,this[m]=$,$.$=v),$._=c}function B(){var $=new RegExp("^__on([^.]+)"+t.requote(l)+"$"),W;for(var G in this)if(W=G.match($)){var se=this[G];this.removeEventListener(W[1],se,se.$),delete this[G]}}return b?c?N:R:c?ze:B}var uo=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&uo.forEach(function(l){"on"+l in i&&uo.remove(l)});function es(l,c){return function(v){var m=t.event;t.event=v,c[0]=this.__data__;try{l.apply(this,c)}finally{t.event=m}}}function Hu(l,c){var v=es(l,c);return function(m){var b=this,_=m.relatedTarget;(!_||_!==b&&!(_.compareDocumentPosition(b)&8))&&v.call(b,m)}}var fa,ud=0;function ts(l){var c=".dragsuppress-"+ ++ud,v="click"+c,m=t.select(o(l)).on("touchmove"+c,Ve).on("dragstart"+c,Ve).on("selectstart"+c,Ve);if(fa==null&&(fa="onselectstart"in l?!1:Fe(l.style,"userSelect")),fa){var b=a(l).style,_=b[fa];b[fa]="none"}return function(O){if(m.on(c,null),fa&&(b[fa]=_),O){var R=function(){m.on(v,null)};m.on(v,function(){Ve(),R()},!0),setTimeout(R,0)}}}t.mouse=function(l){return zr(l,We())};var yr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function zr(l,c){c.changedTouches&&(c=c.changedTouches[0]);var v=l.ownerSVGElement||l;if(v.createSVGPoint){var m=v.createSVGPoint();if(yr<0){var b=o(l);if(b.scrollX||b.scrollY){v=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var _=v[0][0].getScreenCTM();yr=!(_.f||_.e),v.remove()}}return yr?(m.x=c.pageX,m.y=c.pageY):(m.x=c.clientX,m.y=c.clientY),m=m.matrixTransform(l.getScreenCTM().inverse()),[m.x,m.y]}var O=l.getBoundingClientRect();return[c.clientX-O.left-l.clientLeft,c.clientY-O.top-l.clientTop]}t.touch=function(l,c,v){if(arguments.length<3&&(v=c,c=We().changedTouches),c){for(var m=0,b=c.length,_;m<b;++m)if((_=c[m]).identifier===v)return zr(l,_)}},t.behavior.drag=function(){var l=Qe(b,"drag","dragstart","dragend"),c=null,v=_(ze,t.mouse,o,"mousemove","mouseup"),m=_(Pr,t.touch,Ge,"touchmove","touchend");function b(){this.on("mousedown.drag",v).on("touchstart.drag",m)}function _(O,R,N,B,$){return function(){var W=this,G=t.event.target.correspondingElement||t.event.target,se=W.parentNode,ue=l.of(W,arguments),H=0,Q=O(),ne=".drag"+(Q==null?"":"-"+Q),fe,de=t.select(N(G)).on(B+ne,Je).on($+ne,ut),ae=ts(G),He=R(se,Q);c?(fe=c.apply(W,arguments),fe=[fe.x-He[0],fe.y-He[1]]):fe=[0,0],ue({type:"dragstart"});function Je(){var et=R(se,Q),dt,_t;!et||(dt=et[0]-He[0],_t=et[1]-He[1],H|=dt|_t,He=et,ue({type:"drag",x:et[0]+fe[0],y:et[1]+fe[1],dx:dt,dy:_t}))}function ut(){!R(se,Q)||(de.on(B+ne,null).on($+ne,null),ae(H),ue({type:"dragend"}))}}}return b.origin=function(O){return arguments.length?(c=O,b):c},t.rebind(b,l,"on")};function Pr(){return t.event.changedTouches[0].identifier}t.touches=function(l,c){return arguments.length<2&&(c=We().touches),c?n(c).map(function(v){var m=zr(l,v);return m.identifier=v.identifier,m}):[]};var ir=1e-6,Gn=ir*ir,tn=Math.PI,wn=2*tn,ca=wn-ir,Qr=tn/2,Ma=tn/180,Ri=180/tn;function rs(l,c,v){return(c[0]-l[0])*(v[1]-l[1])-(c[1]-l[1])*(v[0]-l[0])}function fo(l){return l>1?Qr:l<-1?-Qr:Math.asin(l)}function Vu(l){return((l=Math.exp(l))-1/l)/2}function Na(l){return((l=Math.exp(l))+1/l)/2}function co(l){return((l=Math.exp(2*l))-1)/(l+1)}var da=Math.SQRT2,fd=2,ug=4;t.interpolateZoom=function(l,c){var v=l[0],m=l[1],b=l[2],_=c[0],O=c[1],R=c[2],N=_-v,B=O-m,$=N*N+B*B,W,G;if($<Gn)G=Math.log(R/b)/da,W=function(fe){return[v+fe*N,m+fe*B,b*Math.exp(da*fe*G)]};else{var se=Math.sqrt($),ue=(R*R-b*b+ug*$)/(2*b*fd*se),H=(R*R-b*b-ug*$)/(2*R*fd*se),Q=Math.log(Math.sqrt(ue*ue+1)-ue),ne=Math.log(Math.sqrt(H*H+1)-H);G=(ne-Q)/da,W=function(fe){var de=fe*G,ae=Na(Q),He=b/(fd*se)*(ae*co(da*de+Q)-Vu(Q));return[v+He*N,m+He*B,b*ae/Na(da*de+Q)]}}return W.duration=G*1e3,W},t.behavior.zoom=function(){var l={x:0,y:0,k:1},c,v,m,b=[960,500],_=wl,O=250,R=0,N="mousedown.zoom",B="mousemove.zoom",$="mouseup.zoom",W,G="touchstart.zoom",se,ue=Qe(de,"zoomstart","zoom","zoomend"),H,Q,ne,fe;cd||(cd="onwheel"in i?(Yu=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Yu=function(){return t.event.wheelDelta},"mousewheel"):(Yu=function(){return-t.event.detail},"MozMousePixelScroll"));function de(ft){ft.on(N,Vt).on(cd+".zoom",Wr).on("dblclick.zoom",xr).on(G,dr)}de.event=function(ft){ft.each(function(){var Qt=ue.of(this,arguments),tr=l;ba?t.select(this).transition().each("start.zoom",function(){l=this.__chart__||{x:0,y:0,k:1},_t(Qt)}).tween("zoom:zoom",function(){var pr=b[0],Fr=b[1],Jr=v?v[0]:pr/2,fn=v?v[1]:Fr/2,Mn=t.interpolateZoom([(Jr-l.x)/l.k,(fn-l.y)/l.k,pr/l.k],[(Jr-tr.x)/tr.k,(fn-tr.y)/tr.k,pr/tr.k]);return function(qn){var En=Mn(qn),ti=pr/En[2];this.__chart__=l={x:Jr-En[0]*ti,y:fn-En[1]*ti,k:ti},Kt(Qt)}}).each("interrupt.zoom",function(){Tt(Qt)}).each("end.zoom",function(){Tt(Qt)}):(this.__chart__=l,_t(Qt),Kt(Qt),Tt(Qt))})},de.translate=function(ft){return arguments.length?(l={x:+ft[0],y:+ft[1],k:l.k},dt(),de):[l.x,l.y]},de.scale=function(ft){return arguments.length?(l={x:l.x,y:l.y,k:null},Je(+ft),dt(),de):l.k},de.scaleExtent=function(ft){return arguments.length?(_=ft==null?wl:[+ft[0],+ft[1]],de):_},de.center=function(ft){return arguments.length?(m=ft&&[+ft[0],+ft[1]],de):m},de.size=function(ft){return arguments.length?(b=ft&&[+ft[0],+ft[1]],de):b},de.duration=function(ft){return arguments.length?(O=+ft,de):O},de.x=function(ft){return arguments.length?(Q=ft,H=ft.copy(),l={x:0,y:0,k:1},de):Q},de.y=function(ft){return arguments.length?(fe=ft,ne=ft.copy(),l={x:0,y:0,k:1},de):fe};function ae(ft){return[(ft[0]-l.x)/l.k,(ft[1]-l.y)/l.k]}function He(ft){return[ft[0]*l.k+l.x,ft[1]*l.k+l.y]}function Je(ft){l.k=Math.max(_[0],Math.min(_[1],ft))}function ut(ft,Qt){Qt=He(Qt),l.x+=ft[0]-Qt[0],l.y+=ft[1]-Qt[1]}function et(ft,Qt,tr,pr){ft.__chart__={x:l.x,y:l.y,k:l.k},Je(Math.pow(2,pr)),ut(v=Qt,tr),ft=t.select(ft),O>0&&(ft=ft.transition().duration(O)),ft.call(de.event)}function dt(){Q&&Q.domain(H.range().map(function(ft){return(ft-l.x)/l.k}).map(H.invert)),fe&&fe.domain(ne.range().map(function(ft){return(ft-l.y)/l.k}).map(ne.invert))}function _t(ft){R++||ft({type:"zoomstart"})}function Kt(ft){dt(),ft({type:"zoom",scale:l.k,translate:[l.x,l.y]})}function Tt(ft){--R||(ft({type:"zoomend"}),v=null)}function Vt(){var ft=this,Qt=ue.of(ft,arguments),tr=0,pr=t.select(o(ft)).on(B,fn).on($,Mn),Fr=ae(t.mouse(ft)),Jr=ts(ft);Tf.call(ft),_t(Qt);function fn(){tr=1,ut(t.mouse(ft),Fr),Kt(Qt)}function Mn(){pr.on(B,null).on($,null),Jr(tr),Tt(Qt)}}function dr(){var ft=this,Qt=ue.of(ft,arguments),tr={},pr=0,Fr,Jr=".zoom-"+t.event.changedTouches[0].identifier,fn="touchmove"+Jr,Mn="touchend"+Jr,qn=[],En=t.select(ft),ti=ts(ft);V(),_t(Qt),En.on(N,null).on(G,V);function F(){var Ue=t.touches(ft);return Fr=l.k,Ue.forEach(function(Re){Re.identifier in tr&&(tr[Re.identifier]=ae(Re))}),Ue}function V(){var Ue=t.event.target;t.select(Ue).on(fn,ee).on(Mn,ke),qn.push(Ue);for(var Re=t.event.changedTouches,Ie=0,it=Re.length;Ie<it;++Ie)tr[Re[Ie].identifier]=null;var at=F(),lt=Date.now();if(at.length===1){if(lt-se<500){var gt=at[0];et(ft,gt,tr[gt.identifier],Math.floor(Math.log(l.k)/Math.LN2)+1),Ve()}se=lt}else if(at.length>1){var gt=at[0],Ft=at[1],Ot=gt[0]-Ft[0],ct=gt[1]-Ft[1];pr=Ot*Ot+ct*ct}}function ee(){var Ue=t.touches(ft),Re,Ie,it,at;Tf.call(ft);for(var lt=0,gt=Ue.length;lt<gt;++lt,at=null)if(it=Ue[lt],at=tr[it.identifier]){if(Ie)break;Re=it,Ie=at}if(at){var Ft=(Ft=it[0]-Re[0])*Ft+(Ft=it[1]-Re[1])*Ft,Ot=pr&&Math.sqrt(Ft/pr);Re=[(Re[0]+it[0])/2,(Re[1]+it[1])/2],Ie=[(Ie[0]+at[0])/2,(Ie[1]+at[1])/2],Je(Ot*Fr)}se=null,ut(Re,Ie),Kt(Qt)}function ke(){if(t.event.touches.length){for(var Ue=t.event.changedTouches,Re=0,Ie=Ue.length;Re<Ie;++Re)delete tr[Ue[Re].identifier];for(var it in tr)return void F()}t.selectAll(qn).on(Jr,null),En.on(N,Vt).on(G,dr),ti(),Tt(Qt)}}function Wr(){var ft=ue.of(this,arguments);W?clearTimeout(W):(Tf.call(this),c=ae(v=m||t.mouse(this)),_t(ft)),W=setTimeout(function(){W=null,Tt(ft)},50),Ve(),Je(Math.pow(2,Yu()*.002)*l.k),ut(v,c),Kt(ft)}function xr(){var ft=t.mouse(this),Qt=Math.log(l.k)/Math.LN2;et(this,ft,ae(ft),t.event.shiftKey?Math.ceil(Qt)-1:Math.floor(Qt)+1)}return t.rebind(de,ue,"on")};var wl=[0,1/0],Yu,cd;t.color=Fa;function Fa(){}Fa.prototype.toString=function(){return this.rgb()+""},t.hsl=gi;function gi(l,c,v){return this instanceof gi?(this.h=+l,this.s=+c,void(this.l=+v)):arguments.length<2?l instanceof gi?new gi(l.h,l.s,l.l):ho(""+l,yd,gi):new gi(l,c,v)}var Xu=gi.prototype=new Fa;Xu.brighter=function(l){return l=Math.pow(.7,arguments.length?l:1),new gi(this.h,this.s,this.l/l)},Xu.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new gi(this.h,this.s,l*this.l)},Xu.rgb=function(){return Ku(this.h,this.s,this.l)};function Ku(l,c,v){var m,b;l=isNaN(l)?0:(l%=360)<0?l+360:l,c=isNaN(c)||c<0?0:c>1?1:c,v=v<0?0:v>1?1:v,b=v<=.5?v*(1+c):v+c-v*c,m=2*v-b;function _(R){return R>360?R-=360:R<0&&(R+=360),R<60?m+(b-m)*R/60:R<180?b:R<240?m+(b-m)*(240-R)/60:m}function O(R){return Math.round(_(R)*255)}return new _n(O(l+120),O(l),O(l-120))}t.hcl=Oi;function Oi(l,c,v){return this instanceof Oi?(this.h=+l,this.c=+c,void(this.l=+v)):arguments.length<2?l instanceof Oi?new Oi(l.h,l.c,l.l):l instanceof gn?dg(l.l,l.a,l.b):dg((l=vo((l=t.rgb(l)).r,l.g,l.b)).l,l.a,l.b):new Oi(l,c,v)}var _l=Oi.prototype=new Fa;_l.brighter=function(l){return new Oi(this.h,this.c,Math.min(100,this.l+po*(arguments.length?l:1)))},_l.darker=function(l){return new Oi(this.h,this.c,Math.max(0,this.l-po*(arguments.length?l:1)))},_l.rgb=function(){return Sl(this.h,this.c,this.l).rgb()};function Sl(l,c,v){return isNaN(l)&&(l=0),isNaN(c)&&(c=0),new gn(v,Math.cos(l*=Ma)*c,Math.sin(l)*c)}t.lab=gn;function gn(l,c,v){return this instanceof gn?(this.l=+l,this.a=+c,void(this.b=+v)):arguments.length<2?l instanceof gn?new gn(l.l,l.a,l.b):l instanceof Oi?Sl(l.h,l.c,l.l):vo((l=_n(l)).r,l.g,l.b):new gn(l,c,v)}var po=18,dd=.95047,pd=1,fg=1.08883,hd=gn.prototype=new Fa;hd.brighter=function(l){return new gn(Math.min(100,this.l+po*(arguments.length?l:1)),this.a,this.b)},hd.darker=function(l){return new gn(Math.max(0,this.l-po*(arguments.length?l:1)),this.a,this.b)},hd.rgb=function(){return cg(this.l,this.a,this.b)};function cg(l,c,v){var m=(l+16)/116,b=m+c/500,_=m-v/200;return b=vd(b)*dd,m=vd(m)*pd,_=vd(_)*fg,new _n(md(3.2404542*b-1.5371385*m-.4985314*_),md(-.969266*b+1.8760108*m+.041556*_),md(.0556434*b-.2040259*m+1.0572252*_))}function dg(l,c,v){return l>0?new Oi(Math.atan2(v,c)*Ri,Math.sqrt(c*c+v*v),l):new Oi(NaN,NaN,l)}function vd(l){return l>.206893034?l*l*l:(l-4/29)/7.787037}function gd(l){return l>.008856?Math.pow(l,1/3):7.787037*l+4/29}function md(l){return Math.round(255*(l<=.00304?12.92*l:1.055*Math.pow(l,1/2.4)-.055))}t.rgb=_n;function _n(l,c,v){return this instanceof _n?(this.r=~~l,this.g=~~c,void(this.b=~~v)):arguments.length<2?l instanceof _n?new _n(l.r,l.g,l.b):ho(""+l,_n,Ku):new _n(l,c,v)}function pg(l){return new _n(l>>16,l>>8&255,l&255)}function Qu(l){return pg(l)+""}var La=_n.prototype=new Fa;La.brighter=function(l){l=Math.pow(.7,arguments.length?l:1);var c=this.r,v=this.g,m=this.b,b=30;return!c&&!v&&!m?new _n(b,b,b):(c&&c<b&&(c=b),v&&v<b&&(v=b),m&&m<b&&(m=b),new _n(Math.min(255,c/l),Math.min(255,v/l),Math.min(255,m/l)))},La.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new _n(l*this.r,l*this.g,l*this.b)},La.hsl=function(){return yd(this.r,this.g,this.b)},La.toString=function(){return"#"+ns(this.r)+ns(this.g)+ns(this.b)};function ns(l){return l<16?"0"+Math.max(0,l).toString(16):Math.min(255,l).toString(16)}function ho(l,c,v){var m=0,b=0,_=0,O,R,N;if(O=/([a-z]+)\((.*)\)/.exec(l=l.toLowerCase()),O)switch(R=O[2].split(","),O[1]){case"hsl":return v(parseFloat(R[0]),parseFloat(R[1])/100,parseFloat(R[2])/100);case"rgb":return c(Ba(R[0]),Ba(R[1]),Ba(R[2]))}return(N=is.get(l))?c(N.r,N.g,N.b):(l!=null&&l.charAt(0)==="#"&&!isNaN(N=parseInt(l.slice(1),16))&&(l.length===4?(m=(N&3840)>>4,m=m>>4|m,b=N&240,b=b>>4|b,_=N&15,_=_<<4|_):l.length===7&&(m=(N&16711680)>>16,b=(N&65280)>>8,_=N&255)),c(m,b,_))}function yd(l,c,v){var m=Math.min(l/=255,c/=255,v/=255),b=Math.max(l,c,v),_=b-m,O,R,N=(b+m)/2;return _?(R=N<.5?_/(b+m):_/(2-b-m),l==b?O=(c-v)/_+(c<v?6:0):c==b?O=(v-l)/_+2:O=(l-c)/_+4,O*=60):(O=NaN,R=N>0&&N<1?0:O),new gi(O,R,N)}function vo(l,c,v){l=Zu(l),c=Zu(c),v=Zu(v);var m=gd((.4124564*l+.3575761*c+.1804375*v)/dd),b=gd((.2126729*l+.7151522*c+.072175*v)/pd),_=gd((.0193339*l+.119192*c+.9503041*v)/fg);return gn(116*b-16,500*(m-b),200*(b-_))}function Zu(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}function Ba(l){var c=parseFloat(l);return l.charAt(l.length-1)==="%"?Math.round(c*2.55):c}var is=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});is.forEach(function(l,c){is.set(l,pg(c))});function Er(l){return typeof l=="function"?l:function(){return l}}t.functor=Er,t.xhr=bd(Ge);function bd(l){return function(c,v,m){return arguments.length===2&&typeof v=="function"&&(m=v,v=null),Ju(c,v,l,m)}}function Ju(l,c,v,m){var b={},_=t.dispatch("beforesend","progress","load","error"),O={},R=new XMLHttpRequest,N=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(l)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=B:R.onreadystatechange=function(){R.readyState>3&&B()};function B(){var $=R.status,W;if(!$&&qb(R)||$>=200&&$<300||$===304){try{W=v.call(b,R)}catch(G){_.error.call(b,G);return}_.load.call(b,W)}else _.error.call(b,R)}return R.onprogress=function($){var W=t.event;t.event=$;try{_.progress.call(b,R)}finally{t.event=W}},b.header=function($,W){return $=($+"").toLowerCase(),arguments.length<2?O[$]:(W==null?delete O[$]:O[$]=W+"",b)},b.mimeType=function($){return arguments.length?(c=$==null?null:$+"",b):c},b.responseType=function($){return arguments.length?(N=$,b):N},b.response=function($){return v=$,b},["get","post"].forEach(function($){b[$]=function(){return b.send.apply(b,[$].concat(n(arguments)))}}),b.send=function($,W,G){if(arguments.length===2&&typeof W=="function"&&(G=W,W=null),R.open($,l,!0),c!=null&&!("accept"in O)&&(O.accept=c+",*/*"),R.setRequestHeader)for(var se in O)R.setRequestHeader(se,O[se]);return c!=null&&R.overrideMimeType&&R.overrideMimeType(c),N!=null&&(R.responseType=N),G!=null&&b.on("error",G).on("load",function(ue){G(null,ue)}),_.beforesend.call(b,R),R.send(W==null?null:W),b},b.abort=function(){return R.abort(),b},t.rebind(b,_,"on"),m==null?b:b.get(hg(m))}function hg(l){return l.length===1?function(c,v){l(c==null?v:null)}:l}function qb(l){var c=l.responseType;return c&&c!=="text"?l.response:l.responseText}t.dsv=function(l,c){var v=new RegExp('["'+l+`
919
+ ]`),m=l.charCodeAt(0);function b(B,$,W){arguments.length<3&&(W=$,$=null);var G=Ju(B,c,$==null?_:O($),W);return G.row=function(se){return arguments.length?G.response(($=se)==null?_:O(se)):$},G}function _(B){return b.parse(B.responseText)}function O(B){return function($){return b.parse($.responseText,B)}}b.parse=function(B,$){var W;return b.parseRows(B,function(G,se){if(W)return W(G,se-1);var ue=function(H){for(var Q={},ne=G.length,fe=0;fe<ne;++fe)Q[G[fe]]=H[fe];return Q};W=$?function(H,Q){return $(ue(H),Q)}:ue})},b.parseRows=function(B,$){var W={},G={},se=[],ue=B.length,H=0,Q=0,ne,fe;function de(){if(H>=ue)return G;if(fe)return fe=!1,W;var He=H;if(B.charCodeAt(He)===34){for(var Je=He;Je++<ue;)if(B.charCodeAt(Je)===34){if(B.charCodeAt(Je+1)!==34)break;++Je}H=Je+2;var ut=B.charCodeAt(Je+1);return ut===13?(fe=!0,B.charCodeAt(Je+2)===10&&++H):ut===10&&(fe=!0),B.slice(He+1,Je).replace(/""/g,'"')}for(;H<ue;){var ut=B.charCodeAt(H++),et=1;if(ut===10)fe=!0;else if(ut===13)fe=!0,B.charCodeAt(H)===10&&(++H,++et);else if(ut!==m)continue;return B.slice(He,H-et)}return B.slice(He)}for(;(ne=de())!==G;){for(var ae=[];ne!==W&&ne!==G;)ae.push(ne),ne=de();$&&(ae=$(ae,Q++))==null||se.push(ae)}return se},b.format=function(B){if(Array.isArray(B[0]))return b.formatRows(B);var $=new Ze,W=[];return B.forEach(function(G){for(var se in G)$.has(se)||W.push($.add(se))}),[W.map(N).join(l)].concat(B.map(function(G){return W.map(function(se){return N(G[se])}).join(l)})).join(`
920
+ `)},b.formatRows=function(B){return B.map(R).join(`
921
+ `)};function R(B){return B.map(N).join(l)}function N(B){return v.test(B)?'"'+B.replace(/\"/g,'""')+'"':B}return b},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var ef,El,Ii,tf,Pi=this[Fe(this,"requestAnimationFrame")]||function(l){setTimeout(l,17)};t.timer=function(){as.apply(this,arguments)};function as(l,c,v){var m=arguments.length;m<2&&(c=0),m<3&&(v=Date.now());var b=v+c,_={c:l,t:b,n:null};return El?El.n=_:ef=_,El=_,Ii||(tf=clearTimeout(tf),Ii=1,Pi(os)),_}function os(){var l=$a(),c=rf()-l;c>24?(isFinite(c)&&(clearTimeout(tf),tf=setTimeout(os,c)),Ii=0):(Ii=1,Pi(os))}t.timer.flush=function(){$a(),rf()};function $a(){for(var l=Date.now(),c=ef;c;)l>=c.t&&c.c(l-c.t)&&(c.c=null),c=c.n;return l}function rf(){for(var l,c=ef,v=1/0;c;)c.c?(c.t<v&&(v=c.t),c=(l=c).n):c=l?l.n=c.n:ef=c.n;return El=l,v}t.round=function(l,c){return c?Math.round(l*(c=Math.pow(10,c)))/c:Math.round(l)},t.geom={};function pa(l){return l[0]}function ha(l){return l[1]}t.geom.hull=function(l){var c=pa,v=ha;if(arguments.length)return m(l);function m(b){if(b.length<3)return[];var _=Er(c),O=Er(v),R,N=b.length,B=[],$=[];for(R=0;R<N;R++)B.push([+_.call(this,b[R],R),+O.call(this,b[R],R),R]);for(B.sort(vg),R=0;R<N;R++)$.push([B[R][0],-B[R][1]]);var W=Al(B),G=Al($),se=G[0]===W[0],ue=G[G.length-1]===W[W.length-1],H=[];for(R=W.length-1;R>=0;--R)H.push(b[B[W[R]][2]]);for(R=+se;R<G.length-ue;++R)H.push(b[B[G[R]][2]]);return H}return m.x=function(b){return arguments.length?(c=b,m):c},m.y=function(b){return arguments.length?(v=b,m):v},m};function Al(l){for(var c=l.length,v=[0,1],m=2,b=2;b<c;b++){for(;m>1&&rs(l[v[m-2]],l[v[m-1]],l[b])<=0;)--m;v[m++]=b}return v.slice(0,m)}function vg(l,c){return l[0]-c[0]||l[1]-c[1]}t.geom.polygon=function(l){return At(l,ss),l};var ss=t.geom.polygon.prototype=[];ss.area=function(){for(var l=-1,c=this.length,v,m=this[c-1],b=0;++l<c;)v=m,m=this[l],b+=v[1]*m[0]-v[0]*m[1];return b*.5},ss.centroid=function(l){var c=-1,v=this.length,m=0,b=0,_,O=this[v-1],R;for(arguments.length||(l=-1/(6*this.area()));++c<v;)_=O,O=this[c],R=_[0]*O[1]-O[0]*_[1],m+=(_[0]+O[0])*R,b+=(_[1]+O[1])*R;return[m*l,b*l]},ss.clip=function(l){for(var c,v=gg(l),m=-1,b=this.length-gg(this),_,O,R=this[b-1],N,B,$;++m<b;){for(c=l.slice(),l.length=0,N=this[m],B=c[(O=c.length-v)-1],_=-1;++_<O;)$=c[_],nf($,R,N)?(nf(B,R,N)||l.push(xd(B,$,R,N)),l.push($)):nf(B,R,N)&&l.push(xd(B,$,R,N)),B=$;v&&l.push(l[0]),R=N}return l};function nf(l,c,v){return(v[0]-c[0])*(l[1]-c[1])<(v[1]-c[1])*(l[0]-c[0])}function xd(l,c,v,m){var b=l[0],_=v[0],O=c[0]-b,R=m[0]-_,N=l[1],B=v[1],$=c[1]-N,W=m[1]-B,G=(R*(N-B)-W*(b-_))/(W*O-R*$);return[b+G*O,N+G*$]}function gg(l){var c=l[0],v=l[l.length-1];return!(c[0]-v[0]||c[1]-v[1])}var ls,go,za,Cl=[],Tl,mo,yo=[];function wd(){sf(this),this.edge=this.site=this.circle=null}function af(l){var c=Cl.pop()||new wd;return c.site=l,c}function Rl(l){ki(l),za.remove(l),Cl.push(l),sf(l)}function _d(l){var c=l.circle,v=c.x,m=c.cy,b={x:v,y:m},_=l.P,O=l.N,R=[l];Rl(l);for(var N=_;N.circle&&S(v-N.circle.x)<ir&&S(m-N.circle.cy)<ir;)_=N.P,R.unshift(N),Rl(N),N=_;R.unshift(N),ki(N);for(var B=O;B.circle&&S(v-B.circle.x)<ir&&S(m-B.circle.cy)<ir;)O=B.N,R.push(B),Rl(B),B=O;R.push(B),ki(B);var $=R.length,W;for(W=1;W<$;++W)B=R[W],N=R[W-1],us(B.edge,N.site,B.site,b);N=R[0],B=R[$-1],B.edge=Il(N.site,B.site,null,b),bo(N),bo(B)}function mg(l){for(var c=l.x,v=l.y,m,b,_,O,R=za._;R;)if(_=Sd(R,v)-c,_>ir)R=R.L;else if(O=c-yg(R,v),O>ir){if(!R.R){m=R;break}R=R.R}else{_>-ir?(m=R.P,b=R):O>-ir?(m=R,b=R.N):m=b=R;break}var N=af(l);if(za.insert(m,N),!(!m&&!b)){if(m===b){ki(m),b=af(m.site),za.insert(N,b),N.edge=b.edge=Il(m.site,N.site),bo(m),bo(b);return}if(!b){N.edge=Il(m.site,N.site);return}ki(m),ki(b);var B=m.site,$=B.x,W=B.y,G=l.x-$,se=l.y-W,ue=b.site,H=ue.x-$,Q=ue.y-W,ne=2*(G*Q-se*H),fe=G*G+se*se,de=H*H+Q*Q,ae={x:(Q*fe-se*de)/ne+$,y:(G*de-H*fe)/ne+W};us(b.edge,B,ue,ae),N.edge=Il(B,l,null,ae),b.edge=Il(l,ue,null,ae),bo(m),bo(b)}}function Sd(l,c){var v=l.site,m=v.x,b=v.y,_=b-c;if(!_)return m;var O=l.P;if(!O)return-1/0;v=O.site;var R=v.x,N=v.y,B=N-c;if(!B)return R;var $=R-m,W=1/_-1/B,G=$/B;return W?(-G+Math.sqrt(G*G-2*W*($*$/(-2*B)-N+B/2+b-_/2)))/W+m:(m+R)/2}function yg(l,c){var v=l.N;if(v)return Sd(v,c);var m=l.site;return m.y===c?m.x:1/0}function Ed(l){this.site=l,this.edges=[]}Ed.prototype.prepare=function(){for(var l=this.edges,c=l.length,v;c--;)v=l[c].edge,(!v.b||!v.a)&&l.splice(c,1);return l.sort(Ad),l.length};function bg(l){for(var c=l[0][0],v=l[1][0],m=l[0][1],b=l[1][1],_,O,R,N,B=go,$=B.length,W,G,se,ue,H,Q;$--;)if(W=B[$],!(!W||!W.prepare()))for(se=W.edges,ue=se.length,G=0;G<ue;)Q=se[G].end(),R=Q.x,N=Q.y,H=se[++G%ue].start(),_=H.x,O=H.y,(S(R-_)>ir||S(N-O)>ir)&&(se.splice(G,0,new of(Hb(W.site,Q,S(R-c)<ir&&b-N>ir?{x:c,y:S(_-c)<ir?O:b}:S(N-b)<ir&&v-R>ir?{x:S(O-b)<ir?_:v,y:b}:S(R-v)<ir&&N-m>ir?{x:v,y:S(_-v)<ir?O:m}:S(N-m)<ir&&R-c>ir?{x:S(O-m)<ir?_:c,y:m}:null),W.site,null)),++ue)}function Ad(l,c){return c.angle-l.angle}function xg(){sf(this),this.x=this.y=this.arc=this.site=this.cy=null}function bo(l){var c=l.P,v=l.N;if(!(!c||!v)){var m=c.site,b=l.site,_=v.site;if(m!==_){var O=b.x,R=b.y,N=m.x-O,B=m.y-R,$=_.x-O,Q=_.y-R,W=2*(N*Q-B*$);if(!(W>=-Gn)){var G=N*N+B*B,se=$*$+Q*Q,ue=(Q*G-B*se)/W,H=(N*se-$*G)/W,Q=H+R,ne=yo.pop()||new xg;ne.arc=l,ne.site=b,ne.x=ue+O,ne.y=Q+Math.sqrt(ue*ue+H*H),ne.cy=Q,l.circle=ne;for(var fe=null,de=mo._;de;)if(ne.y<de.y||ne.y===de.y&&ne.x<=de.x)if(de.L)de=de.L;else{fe=de.P;break}else if(de.R)de=de.R;else{fe=de;break}mo.insert(fe,ne),fe||(Tl=ne)}}}}function ki(l){var c=l.circle;c&&(c.P||(Tl=c.N),mo.remove(c),yo.push(c),sf(c),l.circle=null)}function Cd(l,c,v,m){return function(b){var _=b.a,O=b.b,R=_.x,N=_.y,B=O.x,$=O.y,W=0,G=1,se=B-R,ue=$-N,H;if(H=l-R,!(!se&&H>0)){if(H/=se,se<0){if(H<W)return;H<G&&(G=H)}else if(se>0){if(H>G)return;H>W&&(W=H)}if(H=v-R,!(!se&&H<0)){if(H/=se,se<0){if(H>G)return;H>W&&(W=H)}else if(se>0){if(H<W)return;H<G&&(G=H)}if(H=c-N,!(!ue&&H>0)){if(H/=ue,ue<0){if(H<W)return;H<G&&(G=H)}else if(ue>0){if(H>G)return;H>W&&(W=H)}if(H=m-N,!(!ue&&H<0)){if(H/=ue,ue<0){if(H>G)return;H>W&&(W=H)}else if(ue>0){if(H<W)return;H<G&&(G=H)}return W>0&&(b.a={x:R+W*se,y:N+W*ue}),G<1&&(b.b={x:R+G*se,y:N+G*ue}),b}}}}}}function Td(l){for(var c=ls,v=Cd(l[0][0],l[0][1],l[1][0],l[1][1]),m=c.length,b;m--;)b=c[m],(!Ol(b,l)||!v(b)||S(b.a.x-b.b.x)<ir&&S(b.a.y-b.b.y)<ir)&&(b.a=b.b=null,c.splice(m,1))}function Ol(l,c){var v=l.b;if(v)return!0;var m=l.a,b=c[0][0],_=c[1][0],O=c[0][1],R=c[1][1],N=l.l,B=l.r,$=N.x,W=N.y,G=B.x,se=B.y,ue=($+G)/2,H=(W+se)/2,Q,ne;if(se===W){if(ue<b||ue>=_)return;if($>G){if(!m)m={x:ue,y:O};else if(m.y>=R)return;v={x:ue,y:R}}else{if(!m)m={x:ue,y:R};else if(m.y<O)return;v={x:ue,y:O}}}else if(Q=($-G)/(se-W),ne=H-Q*ue,Q<-1||Q>1)if($>G){if(!m)m={x:(O-ne)/Q,y:O};else if(m.y>=R)return;v={x:(R-ne)/Q,y:R}}else{if(!m)m={x:(R-ne)/Q,y:R};else if(m.y<O)return;v={x:(O-ne)/Q,y:O}}else if(W<se){if(!m)m={x:b,y:Q*b+ne};else if(m.x>=_)return;v={x:_,y:Q*_+ne}}else{if(!m)m={x:_,y:Q*_+ne};else if(m.x<b)return;v={x:b,y:Q*b+ne}}return l.a=m,l.b=v,!0}function wg(l,c){this.l=l,this.r=c,this.a=this.b=null}function Il(l,c,v,m){var b=new wg(l,c);return ls.push(b),v&&us(b,l,c,v),m&&us(b,c,l,m),go[l.i].edges.push(new of(b,l,c)),go[c.i].edges.push(new of(b,c,l)),b}function Hb(l,c,v){var m=new wg(l,null);return m.a=c,m.b=v,ls.push(m),m}function us(l,c,v,m){!l.a&&!l.b?(l.a=m,l.l=c,l.r=v):l.l===v?l.b=m:l.a=m}function of(l,c,v){var m=l.a,b=l.b;this.edge=l,this.site=c,this.angle=v?Math.atan2(v.y-c.y,v.x-c.x):l.l===c?Math.atan2(b.x-m.x,m.y-b.y):Math.atan2(m.x-b.x,b.y-m.y)}of.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 Rd(){this._=null}function sf(l){l.U=l.C=l.L=l.R=l.P=l.N=null}Rd.prototype={insert:function(l,c){var v,m,b;if(l){if(c.P=l,c.N=l.N,l.N&&(l.N.P=c),l.N=c,l.R){for(l=l.R;l.L;)l=l.L;l.L=c}else l.R=c;v=l}else this._?(l=lf(this._),c.P=null,c.N=l,l.P=l.L=c,v=l):(c.P=c.N=null,this._=c,v=null);for(c.L=c.R=null,c.U=v,c.C=!0,l=c;v&&v.C;)m=v.U,v===m.L?(b=m.R,b&&b.C?(v.C=b.C=!1,m.C=!0,l=m):(l===v.R&&(xo(this,v),l=v,v=l.U),v.C=!1,m.C=!0,Pl(this,m))):(b=m.L,b&&b.C?(v.C=b.C=!1,m.C=!0,l=m):(l===v.L&&(Pl(this,v),l=v,v=l.U),v.C=!1,m.C=!0,xo(this,m))),v=l.U;this._.C=!1},remove:function(l){l.N&&(l.N.P=l.P),l.P&&(l.P.N=l.N),l.N=l.P=null;var c=l.U,v,m=l.L,b=l.R,_,O;if(m?b?_=lf(b):_=m:_=b,c?c.L===l?c.L=_:c.R=_:this._=_,m&&b?(O=_.C,_.C=l.C,_.L=m,m.U=_,_!==b?(c=_.U,_.U=l.U,l=_.R,c.L=l,_.R=b,b.U=_):(_.U=c,c=_,l=_.R)):(O=l.C,l=_),l&&(l.U=c),!O){if(l&&l.C){l.C=!1;return}do{if(l===this._)break;if(l===c.L){if(v=c.R,v.C&&(v.C=!1,c.C=!0,xo(this,c),v=c.R),v.L&&v.L.C||v.R&&v.R.C){(!v.R||!v.R.C)&&(v.L.C=!1,v.C=!0,Pl(this,v),v=c.R),v.C=c.C,c.C=v.R.C=!1,xo(this,c),l=this._;break}}else if(v=c.L,v.C&&(v.C=!1,c.C=!0,Pl(this,c),v=c.L),v.L&&v.L.C||v.R&&v.R.C){(!v.L||!v.L.C)&&(v.R.C=!1,v.C=!0,xo(this,v),v=c.L),v.C=c.C,c.C=v.L.C=!1,Pl(this,c),l=this._;break}v.C=!0,l=c,c=c.U}while(!l.C);l&&(l.C=!1)}}};function xo(l,c){var v=c,m=c.R,b=v.U;b?b.L===v?b.L=m:b.R=m:l._=m,m.U=b,v.U=m,v.R=m.L,v.R&&(v.R.U=v),m.L=v}function Pl(l,c){var v=c,m=c.L,b=v.U;b?b.L===v?b.L=m:b.R=m:l._=m,m.U=b,v.U=m,v.L=m.R,v.L&&(v.L.U=v),m.R=v}function lf(l){for(;l.L;)l=l.L;return l}function uf(l,c){var v=l.sort(_g).pop(),m,b,_;for(ls=[],go=new Array(l.length),za=new Rd,mo=new Rd;;)if(_=Tl,v&&(!_||v.y<_.y||v.y===_.y&&v.x<_.x))(v.x!==m||v.y!==b)&&(go[v.i]=new Ed(v),mg(v),m=v.x,b=v.y),v=l.pop();else if(_)_d(_.arc);else break;c&&(Td(c),bg(c));var O={cells:go,edges:ls};return za=mo=ls=go=null,O}function _g(l,c){return c.y-l.y||c.x-l.x}t.geom.voronoi=function(l){var c=pa,v=ha,m=c,b=v,_=fs;if(l)return O(l);function O(N){var B=new Array(N.length),$=_[0][0],W=_[0][1],G=_[1][0],se=_[1][1];return uf(R(N),_).cells.forEach(function(ue,H){var Q=ue.edges,ne=ue.site,fe=B[H]=Q.length?Q.map(function(de){var ae=de.start();return[ae.x,ae.y]}):ne.x>=$&&ne.x<=G&&ne.y>=W&&ne.y<=se?[[$,se],[G,se],[G,W],[$,W]]:[];fe.point=N[H]}),B}function R(N){return N.map(function(B,$){return{x:Math.round(m(B,$)/ir)*ir,y:Math.round(b(B,$)/ir)*ir,i:$}})}return O.links=function(N){return uf(R(N)).edges.filter(function(B){return B.l&&B.r}).map(function(B){return{source:N[B.l.i],target:N[B.r.i]}})},O.triangles=function(N){var B=[];return uf(R(N)).cells.forEach(function($,W){for(var G=$.site,se=$.edges.sort(Ad),ue=-1,H=se.length,Q,ne=se[H-1].edge,fe=ne.l===G?ne.r:ne.l;++ue<H;)Q=fe,ne=se[ue].edge,fe=ne.l===G?ne.r:ne.l,W<Q.i&&W<fe.i&&Vb(G,Q,fe)<0&&B.push([N[W],N[Q.i],N[fe.i]])}),B},O.x=function(N){return arguments.length?(m=Er(c=N),O):c},O.y=function(N){return arguments.length?(b=Er(v=N),O):v},O.clipExtent=function(N){return arguments.length?(_=N==null?fs:N,O):_===fs?null:_},O.size=function(N){return arguments.length?O.clipExtent(N&&[[0,0],N]):_===fs?null:_&&_[1]},O};var fs=[[-1e6,-1e6],[1e6,1e6]];function Vb(l,c,v){return(l.x-v.x)*(c.y-l.y)-(l.x-c.x)*(v.y-l.y)}t.geom.delaunay=function(l){return t.geom.voronoi().triangles(l)},t.geom.quadtree=function(l,c,v,m,b){var _=pa,O=ha,R;if(R=arguments.length)return _=ff,O=Yb,R===3&&(b=v,m=c,v=c=0),N(l);function N(B){var $,W=Er(_),G=Er(O),se,ue,H,Q,ne,fe,de,ae;if(c!=null)ne=c,fe=v,de=m,ae=b;else if(de=ae=-(ne=fe=1/0),se=[],ue=[],Q=B.length,R)for(H=0;H<Q;++H)$=B[H],$.x<ne&&(ne=$.x),$.y<fe&&(fe=$.y),$.x>de&&(de=$.x),$.y>ae&&(ae=$.y),se.push($.x),ue.push($.y);else for(H=0;H<Q;++H){var He=+W($=B[H],H),Je=+G($,H);He<ne&&(ne=He),Je<fe&&(fe=Je),He>de&&(de=He),Je>ae&&(ae=Je),se.push(He),ue.push(Je)}var ut=de-ne,et=ae-fe;ut>et?ae=fe+ut:de=ne+et;function dt(Tt,Vt,dr,Wr,xr,ft,Qt,tr){if(!(isNaN(dr)||isNaN(Wr)))if(Tt.leaf){var pr=Tt.x,Fr=Tt.y;if(pr!=null)if(S(pr-dr)+S(Fr-Wr)<.01)_t(Tt,Vt,dr,Wr,xr,ft,Qt,tr);else{var Jr=Tt.point;Tt.x=Tt.y=Tt.point=null,_t(Tt,Jr,pr,Fr,xr,ft,Qt,tr),_t(Tt,Vt,dr,Wr,xr,ft,Qt,tr)}else Tt.x=dr,Tt.y=Wr,Tt.point=Vt}else _t(Tt,Vt,dr,Wr,xr,ft,Qt,tr)}function _t(Tt,Vt,dr,Wr,xr,ft,Qt,tr){var pr=(xr+Qt)*.5,Fr=(ft+tr)*.5,Jr=dr>=pr,fn=Wr>=Fr,Mn=fn<<1|Jr;Tt.leaf=!1,Tt=Tt.nodes[Mn]||(Tt.nodes[Mn]=Sg()),Jr?xr=pr:Qt=pr,fn?ft=Fr:tr=Fr,dt(Tt,Vt,dr,Wr,xr,ft,Qt,tr)}var Kt=Sg();if(Kt.add=function(Tt){dt(Kt,Tt,+W(Tt,++H),+G(Tt,H),ne,fe,de,ae)},Kt.visit=function(Tt){kl(Tt,Kt,ne,fe,de,ae)},Kt.find=function(Tt){return Xb(Kt,Tt[0],Tt[1],ne,fe,de,ae)},H=-1,c==null){for(;++H<Q;)dt(Kt,B[H],se[H],ue[H],ne,fe,de,ae);--H}else B.forEach(Kt.add);return se=ue=B=$=null,Kt}return N.x=function(B){return arguments.length?(_=B,N):_},N.y=function(B){return arguments.length?(O=B,N):O},N.extent=function(B){return arguments.length?(B==null?c=v=m=b=null:(c=+B[0][0],v=+B[0][1],m=+B[1][0],b=+B[1][1]),N):c==null?null:[[c,v],[m,b]]},N.size=function(B){return arguments.length?(B==null?c=v=m=b=null:(c=v=0,m=+B[0],b=+B[1]),N):c==null?null:[m-c,b-v]},N};function ff(l){return l.x}function Yb(l){return l.y}function Sg(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function kl(l,c,v,m,b,_){if(!l(c,v,m,b,_)){var O=(v+b)*.5,R=(m+_)*.5,N=c.nodes;N[0]&&kl(l,N[0],v,m,O,R),N[1]&&kl(l,N[1],O,m,b,R),N[2]&&kl(l,N[2],v,R,O,_),N[3]&&kl(l,N[3],O,R,b,_)}}function Xb(l,c,v,m,b,_,O){var R=1/0,N;return function B($,W,G,se,ue){if(!(W>_||G>O||se<m||ue<b)){if(H=$.point){var H,Q=c-$.x,ne=v-$.y,fe=Q*Q+ne*ne;if(fe<R){var de=Math.sqrt(R=fe);m=c-de,b=v-de,_=c+de,O=v+de,N=H}}for(var ae=$.nodes,He=(W+se)*.5,Je=(G+ue)*.5,ut=c>=He,et=v>=Je,dt=et<<1|ut,_t=dt+4;dt<_t;++dt)if($=ae[dt&3])switch(dt&3){case 0:B($,W,G,He,Je);break;case 1:B($,He,G,se,Je);break;case 2:B($,W,Je,He,ue);break;case 3:B($,He,Je,se,ue);break}}}(l,m,b,_,O),N}t.interpolateRgb=Od;function Od(l,c){l=t.rgb(l),c=t.rgb(c);var v=l.r,m=l.g,b=l.b,_=c.r-v,O=c.g-m,R=c.b-b;return function(N){return"#"+ns(Math.round(v+_*N))+ns(Math.round(m+O*N))+ns(Math.round(b+R*N))}}t.interpolateObject=Eg;function Eg(l,c){var v={},m={},b;for(b in l)b in c?v[b]=Gi(l[b],c[b]):m[b]=l[b];for(b in c)b in l||(m[b]=c[b]);return function(_){for(b in v)m[b]=v[b](_);return m}}t.interpolateNumber=va;function va(l,c){return l=+l,c=+c,function(v){return l*(1-v)+c*v}}t.interpolateString=Id;function Id(l,c){var v=wo.lastIndex=Pd.lastIndex=0,m,b,_,O=-1,R=[],N=[];for(l=l+"",c=c+"";(m=wo.exec(l))&&(b=Pd.exec(c));)(_=b.index)>v&&(_=c.slice(v,_),R[O]?R[O]+=_:R[++O]=_),(m=m[0])===(b=b[0])?R[O]?R[O]+=b:R[++O]=b:(R[++O]=null,N.push({i:O,x:va(m,b)})),v=Pd.lastIndex;return v<c.length&&(_=c.slice(v),R[O]?R[O]+=_:R[++O]=_),R.length<2?N[0]?(c=N[0].x,function(B){return c(B)+""}):function(){return c}:(c=N.length,function(B){for(var $=0,W;$<c;++$)R[(W=N[$]).i]=W.x(B);return R.join("")})}var wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pd=new RegExp(wo.source,"g");t.interpolate=Gi;function Gi(l,c){for(var v=t.interpolators.length,m;--v>=0&&!(m=t.interpolators[v](l,c)););return m}t.interpolators=[function(l,c){var v=typeof c;return(v==="string"?is.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?Od:Id:c instanceof Fa?Od:Array.isArray(c)?ei:v==="object"&&isNaN(c)?Eg:va)(l,c)}],t.interpolateArray=ei;function ei(l,c){var v=[],m=[],b=l.length,_=c.length,O=Math.min(l.length,c.length),R;for(R=0;R<O;++R)v.push(Gi(l[R],c[R]));for(;R<b;++R)m[R]=l[R];for(;R<_;++R)m[R]=c[R];return function(N){for(R=0;R<O;++R)m[R]=v[R](N);return m}}var _o=function(){return Ge},Ag=t.map({linear:_o,poly:mn,quad:function(){return Rg},cubic:function(){return Kb},sin:function(){return Og},exp:function(){return Ig},circle:function(){return So},elastic:Pg,back:kg,bounce:function(){return Qb}}),Cg=t.map({in:Ge,out:kd,"in-out":Dd,"out-in":function(l){return Dd(kd(l))}});t.ease=function(l){var c=l.indexOf("-"),v=c>=0?l.slice(0,c):l,m=c>=0?l.slice(c+1):"in";return v=Ag.get(v)||_o,m=Cg.get(m)||Ge,Tg(m(v.apply(null,r.call(arguments,1))))};function Tg(l){return function(c){return c<=0?0:c>=1?1:l(c)}}function kd(l){return function(c){return 1-l(1-c)}}function Dd(l){return function(c){return .5*(c<.5?l(2*c):2-l(2-2*c))}}function Rg(l){return l*l}function Kb(l){return l*l*l}function cs(l){if(l<=0)return 0;if(l>=1)return 1;var c=l*l,v=c*l;return 4*(l<.5?v:3*(l-c)+v-.75)}function mn(l){return function(c){return Math.pow(c,l)}}function Og(l){return 1-Math.cos(l*Qr)}function Ig(l){return Math.pow(2,10*(l-1))}function So(l){return 1-Math.sqrt(1-l*l)}function Pg(l,c){var v;return arguments.length<2&&(c=.45),arguments.length?v=c/wn*Math.asin(1/l):(l=1,v=c/4),function(m){return 1+l*Math.pow(2,-10*m)*Math.sin((m-v)*wn/c)}}function kg(l){return l||(l=1.70158),function(c){return c*c*((l+1)*c-l)}}function Qb(l){return l<1/2.75?7.5625*l*l:l<2/2.75?7.5625*(l-=1.5/2.75)*l+.75:l<2.5/2.75?7.5625*(l-=2.25/2.75)*l+.9375:7.5625*(l-=2.625/2.75)*l+.984375}t.interpolateHcl=Zb;function Zb(l,c){l=t.hcl(l),c=t.hcl(c);var v=l.h,m=l.c,b=l.l,_=c.h-v,O=c.c-m,R=c.l-b;return isNaN(O)&&(O=0,m=isNaN(m)?c.c:m),isNaN(_)?(_=0,v=isNaN(v)?c.h:v):_>180?_-=360:_<-180&&(_+=360),function(N){return Sl(v+_*N,m+O*N,b+R*N)+""}}t.interpolateHsl=Jb;function Jb(l,c){l=t.hsl(l),c=t.hsl(c);var v=l.h,m=l.s,b=l.l,_=c.h-v,O=c.s-m,R=c.l-b;return isNaN(O)&&(O=0,m=isNaN(m)?c.s:m),isNaN(_)?(_=0,v=isNaN(v)?c.h:v):_>180?_-=360:_<-180&&(_+=360),function(N){return Ku(v+_*N,m+O*N,b+R*N)+""}}t.interpolateLab=ex;function ex(l,c){l=t.lab(l),c=t.lab(c);var v=l.l,m=l.a,b=l.b,_=c.l-v,O=c.a-m,R=c.b-b;return function(N){return cg(v+_*N,m+O*N,b+R*N)+""}}t.interpolateRound=cf;function cf(l,c){return c-=l,function(v){return Math.round(l+c*v)}}t.transform=function(l){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(v){if(v!=null){c.setAttribute("transform",v);var m=c.transform.baseVal.consolidate()}return new Md(m?m.matrix:tx)})(l)};function Md(l){var c=[l.a,l.b],v=[l.c,l.d],m=Nd(c),b=Dg(c,v),_=Nd(Mg(v,c,-b))||0;c[0]*v[1]<v[0]*c[1]&&(c[0]*=-1,c[1]*=-1,m*=-1,b*=-1),this.rotate=(m?Math.atan2(c[1],c[0]):Math.atan2(-v[0],v[1]))*Ri,this.translate=[l.e,l.f],this.scale=[m,_],this.skew=_?Math.atan2(b,_)*Ri:0}Md.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Dg(l,c){return l[0]*c[0]+l[1]*c[1]}function Nd(l){var c=Math.sqrt(Dg(l,l));return c&&(l[0]/=c,l[1]/=c),c}function Mg(l,c,v){return l[0]+=v*c[0],l[1]+=v*c[1],l}var tx={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Fd;function ga(l){return l.length?l.pop()+",":""}function rx(l,c,v,m){if(l[0]!==c[0]||l[1]!==c[1]){var b=v.push("translate(",null,",",null,")");m.push({i:b-4,x:va(l[0],c[0])},{i:b-2,x:va(l[1],c[1])})}else(c[0]||c[1])&&v.push("translate("+c+")")}function Ua(l,c,v,m){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),m.push({i:v.push(ga(v)+"rotate(",null,")")-2,x:va(l,c)})):c&&v.push(ga(v)+"rotate("+c+")")}function df(l,c,v,m){l!==c?m.push({i:v.push(ga(v)+"skewX(",null,")")-2,x:va(l,c)}):c&&v.push(ga(v)+"skewX("+c+")")}function Ng(l,c,v,m){if(l[0]!==c[0]||l[1]!==c[1]){var b=v.push(ga(v)+"scale(",null,",",null,")");m.push({i:b-4,x:va(l[0],c[0])},{i:b-2,x:va(l[1],c[1])})}else(c[0]!==1||c[1]!==1)&&v.push(ga(v)+"scale("+c+")")}function Fd(l,c){var v=[],m=[];return l=t.transform(l),c=t.transform(c),rx(l.translate,c.translate,v,m),Ua(l.rotate,c.rotate,v,m),df(l.skew,c.skew,v,m),Ng(l.scale,c.scale,v,m),l=c=null,function(b){for(var _=-1,O=m.length,R;++_<O;)v[(R=m[_]).i]=R.x(b);return v.join("")}}function Fg(l,c){return c=(c-=l=+l)||1/c,function(v){return(v-l)/c}}function Lg(l,c){return c=(c-=l=+l)||1/c,function(v){return Math.max(0,Math.min(1,(v-l)/c))}}t.layout={},t.layout.bundle=function(){return function(l){for(var c=[],v=-1,m=l.length;++v<m;)c.push(Bg(l[v]));return c}};function Bg(l){for(var c=l.source,v=l.target,m=$g(c,v),b=[c];c!==m;)c=c.parent,b.push(c);for(var _=b.length;v!==m;)b.splice(_,0,v),v=v.parent;return b}function Ld(l){for(var c=[],v=l.parent;v!=null;)c.push(l),l=v,v=v.parent;return c.push(l),c}function $g(l,c){if(l===c)return l;for(var v=Ld(l),m=Ld(c),b=v.pop(),_=m.pop(),O=null;b===_;)O=b,b=v.pop(),_=m.pop();return O}t.layout.chord=function(){var l={},c,v,m,b,_=0,O,R,N;function B(){var W={},G=[],se=t.range(b),ue=[],H,Q,ne,fe,de;for(c=[],v=[],H=0,fe=-1;++fe<b;){for(Q=0,de=-1;++de<b;)Q+=m[fe][de];G.push(Q),ue.push(t.range(b)),H+=Q}for(O&&se.sort(function(Kt,Tt){return O(G[Kt],G[Tt])}),R&&ue.forEach(function(Kt,Tt){Kt.sort(function(Vt,dr){return R(m[Tt][Vt],m[Tt][dr])})}),H=(wn-_*b)/H,Q=0,fe=-1;++fe<b;){for(ne=Q,de=-1;++de<b;){var ae=se[fe],He=ue[ae][de],Je=m[ae][He],ut=Q,et=Q+=Je*H;W[ae+"-"+He]={index:ae,subindex:He,startAngle:ut,endAngle:et,value:Je}}v[ae]={index:ae,startAngle:ne,endAngle:Q,value:G[ae]},Q+=_}for(fe=-1;++fe<b;)for(de=fe-1;++de<b;){var dt=W[fe+"-"+de],_t=W[de+"-"+fe];(dt.value||_t.value)&&c.push(dt.value<_t.value?{source:_t,target:dt}:{source:dt,target:_t})}N&&$()}function $(){c.sort(function(W,G){return N((W.source.value+W.target.value)/2,(G.source.value+G.target.value)/2)})}return l.matrix=function(W){return arguments.length?(b=(m=W)&&m.length,c=v=null,l):m},l.padding=function(W){return arguments.length?(_=W,c=v=null,l):_},l.sortGroups=function(W){return arguments.length?(O=W,c=v=null,l):O},l.sortSubgroups=function(W){return arguments.length?(R=W,c=null,l):R},l.sortChords=function(W){return arguments.length?(N=W,c&&$(),l):N},l.chords=function(){return c||B(),c},l.groups=function(){return v||B(),v},l},t.layout.force=function(){var l={},c=t.dispatch("start","tick","end"),v,m=[1,1],b,_,O=.9,R=ma,N=Bd,B=-30,$=ds,W=.1,G=.64,se=[],ue=[],H,Q,ne;function fe(ae){return function(He,Je,ut,et){if(He.point!==ae){var dt=He.cx-ae.x,_t=He.cy-ae.y,Kt=et-Je,Tt=dt*dt+_t*_t;if(Kt*Kt/G<Tt){if(Tt<$){var Vt=He.charge/Tt;ae.px-=dt*Vt,ae.py-=_t*Vt}return!0}if(He.point&&Tt&&Tt<$){var Vt=He.pointCharge/Tt;ae.px-=dt*Vt,ae.py-=_t*Vt}}return!He.charge}}l.tick=function(){if((_*=.99)<.005)return v=null,c.end({type:"end",alpha:_=0}),!0;var ae=se.length,He=ue.length,Je,ut,et,dt,_t,Kt,Tt,Vt,dr;for(ut=0;ut<He;++ut)et=ue[ut],dt=et.source,_t=et.target,Vt=_t.x-dt.x,dr=_t.y-dt.y,(Kt=Vt*Vt+dr*dr)&&(Kt=_*Q[ut]*((Kt=Math.sqrt(Kt))-H[ut])/Kt,Vt*=Kt,dr*=Kt,_t.x-=Vt*(Tt=dt.weight+_t.weight?dt.weight/(dt.weight+_t.weight):.5),_t.y-=dr*Tt,dt.x+=Vt*(Tt=1-Tt),dt.y+=dr*Tt);if((Tt=_*W)&&(Vt=m[0]/2,dr=m[1]/2,ut=-1,Tt))for(;++ut<ae;)et=se[ut],et.x+=(Vt-et.x)*Tt,et.y+=(dr-et.y)*Tt;if(B)for(Wg(Je=t.geom.quadtree(se),_,ne),ut=-1;++ut<ae;)(et=se[ut]).fixed||Je.visit(fe(et));for(ut=-1;++ut<ae;)et=se[ut],et.fixed?(et.x=et.px,et.y=et.py):(et.x-=(et.px-(et.px=et.x))*O,et.y-=(et.py-(et.py=et.y))*O);c.tick({type:"tick",alpha:_})},l.nodes=function(ae){return arguments.length?(se=ae,l):se},l.links=function(ae){return arguments.length?(ue=ae,l):ue},l.size=function(ae){return arguments.length?(m=ae,l):m},l.linkDistance=function(ae){return arguments.length?(R=typeof ae=="function"?ae:+ae,l):R},l.distance=l.linkDistance,l.linkStrength=function(ae){return arguments.length?(N=typeof ae=="function"?ae:+ae,l):N},l.friction=function(ae){return arguments.length?(O=+ae,l):O},l.charge=function(ae){return arguments.length?(B=typeof ae=="function"?ae:+ae,l):B},l.chargeDistance=function(ae){return arguments.length?($=ae*ae,l):Math.sqrt($)},l.gravity=function(ae){return arguments.length?(W=+ae,l):W},l.theta=function(ae){return arguments.length?(G=ae*ae,l):Math.sqrt(G)},l.alpha=function(ae){return arguments.length?(ae=+ae,_?ae>0?_=ae:(v.c=null,v.t=NaN,v=null,c.end({type:"end",alpha:_=0})):ae>0&&(c.start({type:"start",alpha:_=ae}),v=as(l.tick)),l):_},l.start=function(){var ae,He=se.length,Je=ue.length,ut=m[0],et=m[1],dt,_t;for(ae=0;ae<He;++ae)(_t=se[ae]).index=ae,_t.weight=0;for(ae=0;ae<Je;++ae)_t=ue[ae],typeof _t.source=="number"&&(_t.source=se[_t.source]),typeof _t.target=="number"&&(_t.target=se[_t.target]),++_t.source.weight,++_t.target.weight;for(ae=0;ae<He;++ae)_t=se[ae],isNaN(_t.x)&&(_t.x=Kt("x",ut)),isNaN(_t.y)&&(_t.y=Kt("y",et)),isNaN(_t.px)&&(_t.px=_t.x),isNaN(_t.py)&&(_t.py=_t.y);if(H=[],typeof R=="function")for(ae=0;ae<Je;++ae)H[ae]=+R.call(this,ue[ae],ae);else for(ae=0;ae<Je;++ae)H[ae]=R;if(Q=[],typeof N=="function")for(ae=0;ae<Je;++ae)Q[ae]=+N.call(this,ue[ae],ae);else for(ae=0;ae<Je;++ae)Q[ae]=N;if(ne=[],typeof B=="function")for(ae=0;ae<He;++ae)ne[ae]=+B.call(this,se[ae],ae);else for(ae=0;ae<He;++ae)ne[ae]=B;function Kt(Tt,Vt){if(!dt){for(dt=new Array(He),xr=0;xr<He;++xr)dt[xr]=[];for(xr=0;xr<Je;++xr){var dr=ue[xr];dt[dr.source.index].push(dr.target),dt[dr.target.index].push(dr.source)}}for(var Wr=dt[ae],xr=-1,ft=Wr.length,Qt;++xr<ft;)if(!isNaN(Qt=Wr[xr][Tt]))return Qt;return Math.random()*Vt}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(b||(b=t.behavior.drag().origin(Ge).on("dragstart.force",zg).on("drag.force",de).on("dragend.force",Ug)),!arguments.length)return b;this.on("mouseover.force",Di).on("mouseout.force",jg).call(b)};function de(ae){ae.px=t.event.x,ae.py=t.event.y,l.resume()}return t.rebind(l,c,"on")};function zg(l){l.fixed|=2}function Ug(l){l.fixed&=-7}function Di(l){l.fixed|=4,l.px=l.x,l.py=l.y}function jg(l){l.fixed&=-5}function Wg(l,c,v){var m=0,b=0;if(l.charge=0,!l.leaf)for(var _=l.nodes,O=_.length,R=-1,N;++R<O;)N=_[R],N!=null&&(Wg(N,c,v),l.charge+=N.charge,m+=N.charge*N.cx,b+=N.charge*N.cy);if(l.point){l.leaf||(l.point.x+=Math.random()-.5,l.point.y+=Math.random()-.5);var B=c*v[l.point.index];l.charge+=l.pointCharge=B,m+=B*l.point.x,b+=B*l.point.y}l.cx=m/l.charge,l.cy=b/l.charge}var ma=20,Bd=1,ds=1/0;t.layout.hierarchy=function(){var l=nx,c=Gg,v=qg;function m(b){var _=[b],O=[],R;for(b.depth=0;(R=_.pop())!=null;)if(O.push(R),(B=c.call(m,R,R.depth))&&(N=B.length)){for(var N,B,$;--N>=0;)_.push($=B[N]),$.parent=R,$.depth=R.depth+1;v&&(R.value=0),R.children=B}else v&&(R.value=+v.call(m,R,R.depth)||0),delete R.children;return Mi(b,function(W){var G,se;l&&(G=W.children)&&G.sort(l),v&&(se=W.parent)&&(se.value+=W.value)}),O}return m.sort=function(b){return arguments.length?(l=b,m):l},m.children=function(b){return arguments.length?(c=b,m):c},m.value=function(b){return arguments.length?(v=b,m):v},m.revalue=function(b){return v&&(hs(b,function(_){_.children&&(_.value=0)}),Mi(b,function(_){var O;_.children||(_.value=+v.call(m,_,_.depth)||0),(O=_.parent)&&(O.value+=_.value)})),b},m};function ps(l,c){return t.rebind(l,c,"sort","children","value"),l.nodes=l,l.links=ix,l}function hs(l,c){for(var v=[l];(l=v.pop())!=null;)if(c(l),(b=l.children)&&(m=b.length))for(var m,b;--m>=0;)v.push(b[m])}function Mi(l,c){for(var v=[l],m=[];(l=v.pop())!=null;)if(m.push(l),(O=l.children)&&(_=O.length))for(var b=-1,_,O;++b<_;)v.push(O[b]);for(;(l=m.pop())!=null;)c(l)}function Gg(l){return l.children}function qg(l){return l.value}function nx(l,c){return c.value-l.value}function ix(l){return t.merge(l.map(function(c){return(c.children||[]).map(function(v){return{source:c,target:v}})}))}t.layout.partition=function(){var l=t.layout.hierarchy(),c=[1,1];function v(_,O,R,N){var B=_.children;if(_.x=O,_.y=_.depth*N,_.dx=R,_.dy=N,B&&(W=B.length)){var $=-1,W,G,se;for(R=_.value?R/_.value:0;++$<W;)v(G=B[$],O,se=G.value*R,N),O+=se}}function m(_){var O=_.children,R=0;if(O&&(B=O.length))for(var N=-1,B;++N<B;)R=Math.max(R,m(O[N]));return 1+R}function b(_,O){var R=l.call(this,_,O);return v(R[0],0,c[0],c[1]/m(R[0])),R}return b.size=function(_){return arguments.length?(c=_,b):c},ps(b,l)},t.layout.pie=function(){var l=Number,c=Hg,v=0,m=wn,b=0;function _(O){var R=O.length,N=O.map(function(fe,de){return+l.call(_,fe,de)}),B=+(typeof v=="function"?v.apply(this,arguments):v),$=(typeof m=="function"?m.apply(this,arguments):m)-B,W=Math.min(Math.abs($)/R,+(typeof b=="function"?b.apply(this,arguments):b)),G=W*($<0?-1:1),se=t.sum(N),ue=se?($-R*G)/se:0,H=t.range(R),Q=[],ne;return c!=null&&H.sort(c===Hg?function(fe,de){return N[de]-N[fe]}:function(fe,de){return c(O[fe],O[de])}),H.forEach(function(fe){Q[fe]={data:O[fe],value:ne=N[fe],startAngle:B,endAngle:B+=ne*ue+G,padAngle:W}}),Q}return _.value=function(O){return arguments.length?(l=O,_):l},_.sort=function(O){return arguments.length?(c=O,_):c},_.startAngle=function(O){return arguments.length?(v=O,_):v},_.endAngle=function(O){return arguments.length?(m=O,_):m},_.padAngle=function(O){return arguments.length?(b=O,_):b},_};var Hg={};t.layout.stack=function(){var l=Ge,c=zd,v=Ud,m=sx,b=ax,_=ox;function O(R,N){if(!(ue=R.length))return R;var B=R.map(function(fe,de){return l.call(O,fe,de)}),$=B.map(function(fe){return fe.map(function(de,ae){return[b.call(O,de,ae),_.call(O,de,ae)]})}),W=c.call(O,$,N);B=t.permute(B,W),$=t.permute($,W);var G=v.call(O,$,N),se=B[0].length,ue,H,Q,ne;for(Q=0;Q<se;++Q)for(m.call(O,B[0][Q],ne=G[Q],$[0][Q][1]),H=1;H<ue;++H)m.call(O,B[H][Q],ne+=$[H-1][Q][1],$[H][Q][1]);return R}return O.values=function(R){return arguments.length?(l=R,O):l},O.order=function(R){return arguments.length?(c=typeof R=="function"?R:$d.get(R)||zd,O):c},O.offset=function(R){return arguments.length?(v=typeof R=="function"?R:pf.get(R)||Ud,O):v},O.x=function(R){return arguments.length?(b=R,O):b},O.y=function(R){return arguments.length?(_=R,O):_},O.out=function(R){return arguments.length?(m=R,O):m},O};function ax(l){return l.x}function ox(l){return l.y}function sx(l,c,v){l.y0=c,l.y=v}var $d=t.map({"inside-out":function(l){var c=l.length,v,m,b=l.map(Vg),_=l.map(hf),O=t.range(c).sort(function(W,G){return b[W]-b[G]}),R=0,N=0,B=[],$=[];for(v=0;v<c;++v)m=O[v],R<N?(R+=_[m],B.push(m)):(N+=_[m],$.push(m));return $.reverse().concat(B)},reverse:function(l){return t.range(l.length).reverse()},default:zd}),pf=t.map({silhouette:function(l){var c=l.length,v=l[0].length,m=[],b=0,_,O,R,N=[];for(O=0;O<v;++O){for(_=0,R=0;_<c;_++)R+=l[_][O][1];R>b&&(b=R),m.push(R)}for(O=0;O<v;++O)N[O]=(b-m[O])/2;return N},wiggle:function(l){var c=l.length,v=l[0],m=v.length,b,_,O,R,N,B,$,W,G,se=[];for(se[0]=W=G=0,_=1;_<m;++_){for(b=0,R=0;b<c;++b)R+=l[b][_][1];for(b=0,N=0,$=v[_][0]-v[_-1][0];b<c;++b){for(O=0,B=(l[b][_][1]-l[b][_-1][1])/(2*$);O<b;++O)B+=(l[O][_][1]-l[O][_-1][1])/$;N+=B*l[b][_][1]}se[_]=W-=R?N/R*$:0,W<G&&(G=W)}for(_=0;_<m;++_)se[_]-=G;return se},expand:function(l){var c=l.length,v=l[0].length,m=1/c,b,_,O,R=[];for(_=0;_<v;++_){for(b=0,O=0;b<c;b++)O+=l[b][_][1];if(O)for(b=0;b<c;b++)l[b][_][1]/=O;else for(b=0;b<c;b++)l[b][_][1]=m}for(_=0;_<v;++_)R[_]=0;return R},zero:Ud});function zd(l){return t.range(l.length)}function Ud(l){for(var c=-1,v=l[0].length,m=[];++c<v;)m[c]=0;return m}function Vg(l){for(var c=1,v=0,m=l[0][1],b,_=l.length;c<_;++c)(b=l[c][1])>m&&(v=c,m=b);return v}function hf(l){return l.reduce(jd,0)}function jd(l,c){return l+c[1]}t.layout.histogram=function(){var l=!0,c=Number,v=ux,m=lx;function b(_,G){for(var R=[],N=_.map(c,this),B=v.call(this,N,G),$=m.call(this,B,N,G),W,G=-1,se=N.length,ue=$.length-1,H=l?1:1/se,Q;++G<ue;)W=R[G]=[],W.dx=$[G+1]-(W.x=$[G]),W.y=0;if(ue>0)for(G=-1;++G<se;)Q=N[G],Q>=B[0]&&Q<=B[1]&&(W=R[t.bisect($,Q,1,ue)-1],W.y+=H,W.push(_[G]));return R}return b.value=function(_){return arguments.length?(c=_,b):c},b.range=function(_){return arguments.length?(v=Er(_),b):v},b.bins=function(_){return arguments.length?(m=typeof _=="number"?function(O){return Wd(O,_)}:Er(_),b):m},b.frequency=function(_){return arguments.length?(l=!!_,b):l},b};function lx(l,c){return Wd(l,Math.ceil(Math.log(c.length)/Math.LN2+1))}function Wd(l,c){for(var v=-1,m=+l[0],b=(l[1]-m)/c,_=[];++v<=c;)_[v]=b*v+m;return _}function ux(l){return[t.min(l),t.max(l)]}t.layout.pack=function(){var l=t.layout.hierarchy().sort(fx),c=0,v=[1,1],m;function b(_,O){var R=l.call(this,_,O),N=R[0],B=v[0],$=v[1],W=m==null?Math.sqrt:typeof m=="function"?m:function(){return m};if(N.x=N.y=0,Mi(N,function(se){se.r=+W(se.value)}),Mi(N,qd),c){var G=c*(m?1:Math.max(2*N.r/B,2*N.r/$))/2;Mi(N,function(se){se.r+=G}),Mi(N,qd),Mi(N,function(se){se.r-=G})}return Kg(N,B/2,$/2,m?1:1/Math.max(2*N.r/B,2*N.r/$)),R}return b.size=function(_){return arguments.length?(v=_,b):v},b.radius=function(_){return arguments.length?(m=_==null||typeof _=="function"?_:+_,b):m},b.padding=function(_){return arguments.length?(c=+_,b):c},ps(b,l)};function fx(l,c){return l.value-c.value}function Gd(l,c){var v=l._pack_next;l._pack_next=c,c._pack_prev=l,c._pack_next=v,v._pack_prev=c}function Yg(l,c){l._pack_next=c,c._pack_prev=l}function Xg(l,c){var v=c.x-l.x,m=c.y-l.y,b=l.r+c.r;return .999*b*b>v*v+m*m}function qd(l){if(!(c=l.children)||!(G=c.length))return;var c,v=1/0,m=-1/0,b=1/0,_=-1/0,O,R,N,B,$,W,G;function se(ae){v=Math.min(ae.x-ae.r,v),m=Math.max(ae.x+ae.r,m),b=Math.min(ae.y-ae.r,b),_=Math.max(ae.y+ae.r,_)}if(c.forEach(cx),O=c[0],O.x=-O.r,O.y=0,se(O),G>1&&(R=c[1],R.x=R.r,R.y=0,se(R),G>2))for(N=c[2],Qg(O,R,N),se(N),Gd(O,N),O._pack_prev=N,Gd(N,R),R=O._pack_next,B=3;B<G;B++){Qg(O,R,N=c[B]);var ue=0,H=1,Q=1;for($=R._pack_next;$!==R;$=$._pack_next,H++)if(Xg($,N)){ue=1;break}if(ue==1)for(W=O._pack_prev;W!==$._pack_prev&&!Xg(W,N);W=W._pack_prev,Q++);ue?(H<Q||H==Q&&R.r<O.r?Yg(O,R=$):Yg(O=W,R),B--):(Gd(O,N),R=N,se(N))}var ne=(v+m)/2,fe=(b+_)/2,de=0;for(B=0;B<G;B++)N=c[B],N.x-=ne,N.y-=fe,de=Math.max(de,N.r+Math.sqrt(N.x*N.x+N.y*N.y));l.r=de,c.forEach(dx)}function cx(l){l._pack_next=l._pack_prev=l}function dx(l){delete l._pack_next,delete l._pack_prev}function Kg(l,c,v,m){var b=l.children;if(l.x=c+=m*l.x,l.y=v+=m*l.y,l.r*=m,b)for(var _=-1,O=b.length;++_<O;)Kg(b[_],c,v,m)}function Qg(l,c,v){var m=l.r+v.r,b=c.x-l.x,_=c.y-l.y;if(m&&(b||_)){var O=c.r+v.r,R=b*b+_*_;O*=O,m*=m;var N=.5+(m-O)/(2*R),B=Math.sqrt(Math.max(0,2*O*(m+R)-(m-=R)*m-O*O))/(2*R);v.x=l.x+N*b+B*_,v.y=l.y+N*_-B*b}else v.x=l.x+m,v.y=l.y}t.layout.tree=function(){var l=t.layout.hierarchy().sort(null).value(null),c=Zg,v=[1,1],m=null;function b($,W){var G=l.call(this,$,W),se=G[0],ue=_(se);if(Mi(ue,O),ue.parent.m=-ue.z,hs(ue,R),m)hs(se,B);else{var H=se,Q=se,ne=se;hs(se,function(He){He.x<H.x&&(H=He),He.x>Q.x&&(Q=He),He.depth>ne.depth&&(ne=He)});var fe=c(H,Q)/2-H.x,de=v[0]/(Q.x+c(Q,H)/2+fe),ae=v[1]/(ne.depth||1);hs(se,function(He){He.x=(He.x+fe)*de,He.y=He.depth*ae})}return G}function _($){for(var W={A:null,children:[$]},G=[W],se;(se=G.pop())!=null;)for(var ue=se.children,H,Q=0,ne=ue.length;Q<ne;++Q)G.push((ue[Q]=H={_:ue[Q],parent:se,children:(H=ue[Q].children)&&H.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Q}).a=H);return W.children[0]}function O($){var W=$.children,G=$.parent.children,se=$.i?G[$.i-1]:null;if(W.length){hx($);var ue=(W[0].z+W[W.length-1].z)/2;se?($.z=se.z+c($._,se._),$.m=$.z-ue):$.z=ue}else se&&($.z=se.z+c($._,se._));$.parent.A=N($,se,$.parent.A||G[0])}function R($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function N($,W,G){if(W){for(var se=$,ue=$,H=W,Q=se.parent.children[0],ne=se.m,fe=ue.m,de=H.m,ae=Q.m,He;H=Vd(H),se=Hd(se),H&&se;)Q=Hd(Q),ue=Vd(ue),ue.a=$,He=H.z+de-se.z-ne+c(H._,se._),He>0&&(px(qi(H,$,G),$,He),ne+=He,fe+=He),de+=H.m,ne+=se.m,ae+=Q.m,fe+=ue.m;H&&!Vd(ue)&&(ue.t=H,ue.m+=de-fe),se&&!Hd(Q)&&(Q.t=se,Q.m+=ne-ae,G=$)}return G}function B($){$.x*=v[0],$.y=$.depth*v[1]}return b.separation=function($){return arguments.length?(c=$,b):c},b.size=function($){return arguments.length?(m=(v=$)==null?B:null,b):m?null:v},b.nodeSize=function($){return arguments.length?(m=(v=$)==null?null:B,b):m?v:null},ps(b,l)};function Zg(l,c){return l.parent==c.parent?1:2}function Hd(l){var c=l.children;return c.length?c[0]:l.t}function Vd(l){var c=l.children,v;return(v=c.length)?c[v-1]:l.t}function px(l,c,v){var m=v/(c.i-l.i);c.c-=m,c.s+=v,l.c+=m,c.z+=v,c.m+=v}function hx(l){for(var c=0,v=0,m=l.children,b=m.length,_;--b>=0;)_=m[b],_.z+=c,_.m+=c,c+=_.s+(v+=_.c)}function qi(l,c,v){return l.a.parent===c.parent?l.a:v}t.layout.cluster=function(){var l=t.layout.hierarchy().sort(null).value(null),c=Zg,v=[1,1],m=!1;function b(_,O){var R=l.call(this,_,O),N=R[0],B,$=0;Mi(N,function(H){var Q=H.children;Q&&Q.length?(H.x=vx(Q),H.y=Jg(Q)):(H.x=B?$+=c(H,B):0,H.y=0,B=H)});var W=em(N),G=tm(N),se=W.x-c(W,G)/2,ue=G.x+c(G,W)/2;return Mi(N,m?function(H){H.x=(H.x-N.x)*v[0],H.y=(N.y-H.y)*v[1]}:function(H){H.x=(H.x-se)/(ue-se)*v[0],H.y=(1-(N.y?H.y/N.y:1))*v[1]}),R}return b.separation=function(_){return arguments.length?(c=_,b):c},b.size=function(_){return arguments.length?(m=(v=_)==null,b):m?null:v},b.nodeSize=function(_){return arguments.length?(m=(v=_)!=null,b):m?v:null},ps(b,l)};function Jg(l){return 1+t.max(l,function(c){return c.y})}function vx(l){return l.reduce(function(c,v){return c+v.x},0)/l.length}function em(l){var c=l.children;return c&&c.length?em(c[0]):l}function tm(l){var c=l.children,v;return c&&(v=c.length)?tm(c[v-1]):l}t.layout.treemap=function(){var l=t.layout.hierarchy(),c=Math.round,v=[1,1],m=null,b=Yd,_=!1,O,R="squarify",N=.5*(1+Math.sqrt(5));function B(H,Q){for(var ne=-1,fe=H.length,de,ae;++ne<fe;)ae=(de=H[ne]).value*(Q<0?0:Q),de.area=isNaN(ae)||ae<=0?0:ae}function $(H){var Q=H.children;if(Q&&Q.length){var ne=b(H),fe=[],de=Q.slice(),ae,He=1/0,Je,ut=R==="slice"?ne.dx:R==="dice"?ne.dy:R==="slice-dice"?H.depth&1?ne.dy:ne.dx:Math.min(ne.dx,ne.dy),et;for(B(de,ne.dx*ne.dy/H.value),fe.area=0;(et=de.length)>0;)fe.push(ae=de[et-1]),fe.area+=ae.area,R!=="squarify"||(Je=G(fe,ut))<=He?(de.pop(),He=Je):(fe.area-=fe.pop().area,se(fe,ut,ne,!1),ut=Math.min(ne.dx,ne.dy),fe.length=fe.area=0,He=1/0);fe.length&&(se(fe,ut,ne,!0),fe.length=fe.area=0),Q.forEach($)}}function W(H){var Q=H.children;if(Q&&Q.length){var ne=b(H),fe=Q.slice(),de,ae=[];for(B(fe,ne.dx*ne.dy/H.value),ae.area=0;de=fe.pop();)ae.push(de),ae.area+=de.area,de.z!=null&&(se(ae,de.z?ne.dx:ne.dy,ne,!fe.length),ae.length=ae.area=0);Q.forEach(W)}}function G(H,Q){for(var ne=H.area,fe,de=0,ae=1/0,He=-1,Je=H.length;++He<Je;)!(fe=H[He].area)||(fe<ae&&(ae=fe),fe>de&&(de=fe));return ne*=ne,Q*=Q,ne?Math.max(Q*de*N/ne,ne/(Q*ae*N)):1/0}function se(H,Q,ne,fe){var de=-1,ae=H.length,He=ne.x,Je=ne.y,ut=Q?c(H.area/Q):0,et;if(Q==ne.dx){for((fe||ut>ne.dy)&&(ut=ne.dy);++de<ae;)et=H[de],et.x=He,et.y=Je,et.dy=ut,He+=et.dx=Math.min(ne.x+ne.dx-He,ut?c(et.area/ut):0);et.z=!0,et.dx+=ne.x+ne.dx-He,ne.y+=ut,ne.dy-=ut}else{for((fe||ut>ne.dx)&&(ut=ne.dx);++de<ae;)et=H[de],et.x=He,et.y=Je,et.dx=ut,Je+=et.dy=Math.min(ne.y+ne.dy-Je,ut?c(et.area/ut):0);et.z=!1,et.dy+=ne.y+ne.dy-Je,ne.x+=ut,ne.dx-=ut}}function ue(H){var Q=O||l(H),ne=Q[0];return ne.x=ne.y=0,ne.value?(ne.dx=v[0],ne.dy=v[1]):ne.dx=ne.dy=0,O&&l.revalue(ne),B([ne],ne.dx*ne.dy/ne.value),(O?W:$)(ne),_&&(O=Q),Q}return ue.size=function(H){return arguments.length?(v=H,ue):v},ue.padding=function(H){if(!arguments.length)return m;function Q(de){var ae=H.call(ue,de,de.depth);return ae==null?Yd(de):rm(de,typeof ae=="number"?[ae,ae,ae,ae]:ae)}function ne(de){return rm(de,H)}var fe;return b=(m=H)==null?Yd:(fe=typeof H)=="function"?Q:(fe==="number"&&(H=[H,H,H,H]),ne),ue},ue.round=function(H){return arguments.length?(c=H?Math.round:Number,ue):c!=Number},ue.sticky=function(H){return arguments.length?(_=H,O=null,ue):_},ue.ratio=function(H){return arguments.length?(N=H,ue):N},ue.mode=function(H){return arguments.length?(R=H+"",ue):R},ps(ue,l)};function Yd(l){return{x:l.x,y:l.y,dx:l.dx,dy:l.dy}}function rm(l,c){var v=l.x+c[3],m=l.y+c[0],b=l.dx-c[1]-c[3],_=l.dy-c[0]-c[2];return b<0&&(v+=b/2,b=0),_<0&&(m+=_/2,_=0),{x:v,y:m,dx:b,dy:_}}t.random={normal:function(l,c){var v=arguments.length;return v<2&&(c=1),v<1&&(l=0),function(){var m,b,_;do m=Math.random()*2-1,b=Math.random()*2-1,_=m*m+b*b;while(!_||_>1);return l+c*m*Math.sqrt(-2*Math.log(_)/_)}},logNormal:function(){var l=t.random.normal.apply(t,arguments);return function(){return Math.exp(l())}},bates:function(l){var c=t.random.irwinHall(l);return function(){return c()/l}},irwinHall:function(l){return function(){for(var c=0,v=0;v<l;v++)c+=Math.random();return c}}},t.scale={};function vf(l){var c=l[0],v=l[l.length-1];return c<v?[c,v]:[v,c]}function gf(l){return l.rangeExtent?l.rangeExtent():vf(l.range())}function gx(l,c,v,m){var b=v(l[0],l[1]),_=m(c[0],c[1]);return function(O){return _(b(O))}}function an(l,c){var v=0,m=l.length-1,b=l[v],_=l[m],O;return _<b&&(O=v,v=m,m=O,O=b,b=_,_=O),l[v]=c.floor(b),l[m]=c.ceil(_),l}function Eo(l){return l?{floor:function(c){return Math.floor(c/l)*l},ceil:function(c){return Math.ceil(c/l)*l}}:vs}var vs={floor:Ge,ceil:Ge};function mx(l,c,v,m){var b=[],_=[],O=0,R=Math.min(l.length,c.length)-1;for(l[R]<l[0]&&(l=l.slice().reverse(),c=c.slice().reverse());++O<=R;)b.push(v(l[O-1],l[O])),_.push(m(c[O-1],c[O]));return function(N){var B=t.bisect(l,N,1,R)-1;return _[B](b[B](N))}}t.scale.linear=function(){return Ao([0,1],[0,1],Gi,!1)};function Ao(l,c,v,m){var b,_;function O(){var N=Math.min(l.length,c.length)>2?mx:gx,B=m?Lg:Fg;return b=N(l,c,B,v),_=N(c,l,B,Gi),R}function R(N){return b(N)}return R.invert=function(N){return _(N)},R.domain=function(N){return arguments.length?(l=N.map(Number),O()):l},R.range=function(N){return arguments.length?(c=N,O()):c},R.rangeRound=function(N){return R.range(N).interpolate(cf)},R.clamp=function(N){return arguments.length?(m=N,O()):m},R.interpolate=function(N){return arguments.length?(v=N,O()):v},R.ticks=function(N){return Ml(l,N)},R.tickFormat=function(N,B){return d3_scale_linearTickFormat(l,N,B)},R.nice=function(N){return Co(l,N),O()},R.copy=function(){return Ao(l,c,v,m)},O()}function Xd(l,c){return t.rebind(l,c,"range","rangeRound","interpolate","clamp")}function Co(l,c){return an(l,Eo(Dl(l,c)[2])),an(l,Eo(Dl(l,c)[2])),l}function Dl(l,c){c==null&&(c=10);var v=vf(l),m=v[1]-v[0],b=Math.pow(10,Math.floor(Math.log(m/c)/Math.LN10)),_=c/m*b;return _<=.15?b*=10:_<=.35?b*=5:_<=.75&&(b*=2),v[0]=Math.ceil(v[0]/b)*b,v[1]=Math.floor(v[1]/b)*b+b*.5,v[2]=b,v}function Ml(l,c){return t.range.apply(t,Dl(l,c))}t.scale.log=function(){return mf(t.scale.linear().domain([0,1]),10,!0,[1,10])};function mf(l,c,v,m){function b(R){return(v?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(c)}function _(R){return v?Math.pow(c,R):-Math.pow(c,-R)}function O(R){return l(b(R))}return O.invert=function(R){return _(l.invert(R))},O.domain=function(R){return arguments.length?(v=R[0]>=0,l.domain((m=R.map(Number)).map(b)),O):m},O.base=function(R){return arguments.length?(c=+R,l.domain(m.map(b)),O):c},O.nice=function(){var R=an(m.map(b),v?Math:Kd);return l.domain(R),m=R.map(_),O},O.ticks=function(){var R=vf(m),N=[],B=R[0],$=R[1],W=Math.floor(b(B)),G=Math.ceil(b($)),se=c%1?2:c;if(isFinite(G-W)){if(v){for(;W<G;W++)for(var ue=1;ue<se;ue++)N.push(_(W)*ue);N.push(_(W))}else for(N.push(_(W));W++<G;)for(var ue=se-1;ue>0;ue--)N.push(_(W)*ue);for(W=0;N[W]<B;W++);for(G=N.length;N[G-1]>$;G--);N=N.slice(W,G)}return N},O.copy=function(){return mf(l.copy(),c,v,m)},Xd(O,l)}var Kd={floor:function(l){return-Math.ceil(-l)},ceil:function(l){return-Math.floor(-l)}};t.scale.pow=function(){return yf(t.scale.linear(),1,[0,1])};function yf(l,c,v){var m=To(c),b=To(1/c);function _(O){return l(m(O))}return _.invert=function(O){return b(l.invert(O))},_.domain=function(O){return arguments.length?(l.domain((v=O.map(Number)).map(m)),_):v},_.ticks=function(O){return Ml(v,O)},_.tickFormat=function(O,R){return d3_scale_linearTickFormat(v,O,R)},_.nice=function(O){return _.domain(Co(v,O))},_.exponent=function(O){return arguments.length?(m=To(c=O),b=To(1/c),l.domain(v.map(m)),_):c},_.copy=function(){return yf(l.copy(),c,v)},Xd(_,l)}function To(l){return function(c){return c<0?-Math.pow(-c,l):Math.pow(c,l)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Qd([],{t:"range",a:[[]]})};function Qd(l,c){var v,m,b;function _(R){return m[((v.get(R)||(c.t==="range"?v.set(R,l.push(R)):NaN))-1)%m.length]}function O(R,N){return t.range(l.length).map(function(B){return R+N*B})}return _.domain=function(R){if(!arguments.length)return l;l=[],v=new k;for(var N=-1,B=R.length,$;++N<B;)v.has($=R[N])||v.set($,l.push($));return _[c.t].apply(_,c.a)},_.range=function(R){return arguments.length?(m=R,b=0,c={t:"range",a:arguments},_):m},_.rangePoints=function(R,N){arguments.length<2&&(N=0);var B=R[0],$=R[1],W=l.length<2?(B=(B+$)/2,0):($-B)/(l.length-1+N);return m=O(B+W*N/2,W),b=0,c={t:"rangePoints",a:arguments},_},_.rangeRoundPoints=function(R,N){arguments.length<2&&(N=0);var B=R[0],$=R[1],W=l.length<2?(B=$=Math.round((B+$)/2),0):($-B)/(l.length-1+N)|0;return m=O(B+Math.round(W*N/2+($-B-(l.length-1+N)*W)/2),W),b=0,c={t:"rangeRoundPoints",a:arguments},_},_.rangeBands=function(R,N,B){arguments.length<2&&(N=0),arguments.length<3&&(B=N);var $=R[1]<R[0],W=R[$-0],G=R[1-$],se=(G-W)/(l.length-N+2*B);return m=O(W+se*B,se),$&&m.reverse(),b=se*(1-N),c={t:"rangeBands",a:arguments},_},_.rangeRoundBands=function(R,N,B){arguments.length<2&&(N=0),arguments.length<3&&(B=N);var $=R[1]<R[0],W=R[$-0],G=R[1-$],se=Math.floor((G-W)/(l.length-N+2*B));return m=O(W+Math.round((G-W-(l.length-N)*se)/2),se),$&&m.reverse(),b=Math.round(se*(1-N)),c={t:"rangeRoundBands",a:arguments},_},_.rangeBand=function(){return b},_.rangeExtent=function(){return vf(c.a[0])},_.copy=function(){return Qd(l,c)},_.domain(l)}t.scale.category10=function(){return t.scale.ordinal().range(nm)},t.scale.category20=function(){return t.scale.ordinal().range(im)},t.scale.category20b=function(){return t.scale.ordinal().range(am)},t.scale.category20c=function(){return t.scale.ordinal().range(om)};var nm=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Qu),im=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Qu),am=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Qu),om=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Qu);t.scale.quantile=function(){return bf([],[])};function bf(l,c){var v;function m(){var _=0,O=c.length;for(v=[];++_<O;)v[_-1]=t.quantile(l,_/O);return b}function b(_){if(!isNaN(_=+_))return c[t.bisect(v,_)]}return b.domain=function(_){return arguments.length?(l=_.map(g).filter(w).sort(h),m()):l},b.range=function(_){return arguments.length?(c=_,m()):c},b.quantiles=function(){return v},b.invertExtent=function(_){return _=c.indexOf(_),_<0?[NaN,NaN]:[_>0?v[_-1]:l[0],_<v.length?v[_]:l[l.length-1]]},b.copy=function(){return bf(l,c)},m()}t.scale.quantize=function(){return xf(0,1,[0,1])};function xf(l,c,v){var m,b;function _(R){return v[Math.max(0,Math.min(b,Math.floor(m*(R-l))))]}function O(){return m=v.length/(c-l),b=v.length-1,_}return _.domain=function(R){return arguments.length?(l=+R[0],c=+R[R.length-1],O()):[l,c]},_.range=function(R){return arguments.length?(v=R,O()):v},_.invertExtent=function(R){return R=v.indexOf(R),R=R<0?NaN:R/m+l,[R,R+1/m]},_.copy=function(){return xf(l,c,v)},O()}t.scale.threshold=function(){return Zd([.5],[0,1])};function Zd(l,c){function v(m){if(m<=m)return c[t.bisect(l,m)]}return v.domain=function(m){return arguments.length?(l=m,v):l},v.range=function(m){return arguments.length?(c=m,v):c},v.invertExtent=function(m){return m=c.indexOf(m),[l[m-1],l[m]]},v.copy=function(){return Zd(l,c)},v}t.scale.identity=function(){return Jd([0,1])};function Jd(l){function c(v){return+v}return c.invert=c,c.domain=c.range=function(v){return arguments.length?(l=v.map(c),c):l},c.ticks=function(v){return Ml(l,v)},c.tickFormat=function(v,m){return d3_scale_linearTickFormat(l,v,m)},c.copy=function(){return Jd(l)},c}t.svg={};function sm(){return 0}t.svg.arc=function(){var l=ep,c=lm,v=sm,m=Nl,b=tp,_=wf,O=rp;function R(){var B=Math.max(0,+l.apply(this,arguments)),$=Math.max(0,+c.apply(this,arguments)),W=b.apply(this,arguments)-Qr,G=_.apply(this,arguments)-Qr,se=Math.abs(G-W),ue=W>G?0:1;if($<B&&(H=$,$=B,B=H),se>=ca)return N($,ue)+(B?N(B,1-ue):"")+"Z";var H,Q,ne,fe,de=0,ae=0,He,Je,ut,et,dt,_t,Kt,Tt,Vt=[];if((fe=(+O.apply(this,arguments)||0)/2)&&(ne=m===Nl?Math.sqrt(B*B+$*$):+m.apply(this,arguments),ue||(ae*=-1),$&&(ae=fo(ne/$*Math.sin(fe))),B&&(de=fo(ne/B*Math.sin(fe)))),$){He=$*Math.cos(W+ae),Je=$*Math.sin(W+ae),ut=$*Math.cos(G-ae),et=$*Math.sin(G-ae);var dr=Math.abs(G-W-2*ae)<=tn?0:1;if(ae&&Fl(He,Je,ut,et)===ue^dr){var Wr=(W+G)/2;He=$*Math.cos(Wr),Je=$*Math.sin(Wr),ut=et=null}}else He=Je=0;if(B){dt=B*Math.cos(G-de),_t=B*Math.sin(G-de),Kt=B*Math.cos(W+de),Tt=B*Math.sin(W+de);var xr=Math.abs(W-G+2*de)<=tn?0:1;if(de&&Fl(dt,_t,Kt,Tt)===1-ue^xr){var ft=(W+G)/2;dt=B*Math.cos(ft),_t=B*Math.sin(ft),Kt=Tt=null}}else dt=_t=0;if(se>ir&&(H=Math.min(Math.abs($-B)/2,+v.apply(this,arguments)))>.001){Q=B<$^ue?0:1;var Qt=H,tr=H;if(se<tn){var pr=Kt==null?[dt,_t]:ut==null?[He,Je]:xd([He,Je],[Kt,Tt],[ut,et],[dt,_t]),Fr=He-pr[0],Jr=Je-pr[1],fn=ut-pr[0],Mn=et-pr[1],qn=1/Math.sin(Math.acos((Fr*fn+Jr*Mn)/(Math.sqrt(Fr*Fr+Jr*Jr)*Math.sqrt(fn*fn+Mn*Mn)))/2),En=Math.sqrt(pr[0]*pr[0]+pr[1]*pr[1]);tr=Math.min(H,(B-En)/(qn-1)),Qt=Math.min(H,($-En)/(qn+1))}if(ut!=null){var ti=gs(Kt==null?[dt,_t]:[Kt,Tt],[He,Je],$,Qt,ue),F=gs([ut,et],[dt,_t],$,Qt,ue);H===Qt?Vt.push("M",ti[0],"A",Qt,",",Qt," 0 0,",Q," ",ti[1],"A",$,",",$," 0 ",1-ue^Fl(ti[1][0],ti[1][1],F[1][0],F[1][1]),",",ue," ",F[1],"A",Qt,",",Qt," 0 0,",Q," ",F[0]):Vt.push("M",ti[0],"A",Qt,",",Qt," 0 1,",Q," ",F[0])}else Vt.push("M",He,",",Je);if(Kt!=null){var V=gs([He,Je],[Kt,Tt],B,-tr,ue),ee=gs([dt,_t],ut==null?[He,Je]:[ut,et],B,-tr,ue);H===tr?Vt.push("L",ee[0],"A",tr,",",tr," 0 0,",Q," ",ee[1],"A",B,",",B," 0 ",ue^Fl(ee[1][0],ee[1][1],V[1][0],V[1][1]),",",1-ue," ",V[1],"A",tr,",",tr," 0 0,",Q," ",V[0]):Vt.push("L",ee[0],"A",tr,",",tr," 0 0,",Q," ",V[0])}else Vt.push("L",dt,",",_t)}else Vt.push("M",He,",",Je),ut!=null&&Vt.push("A",$,",",$," 0 ",dr,",",ue," ",ut,",",et),Vt.push("L",dt,",",_t),Kt!=null&&Vt.push("A",B,",",B," 0 ",xr,",",1-ue," ",Kt,",",Tt);return Vt.push("Z"),Vt.join("")}function N(B,$){return"M0,"+B+"A"+B+","+B+" 0 1,"+$+" 0,"+-B+"A"+B+","+B+" 0 1,"+$+" 0,"+B}return R.innerRadius=function(B){return arguments.length?(l=Er(B),R):l},R.outerRadius=function(B){return arguments.length?(c=Er(B),R):c},R.cornerRadius=function(B){return arguments.length?(v=Er(B),R):v},R.padRadius=function(B){return arguments.length?(m=B==Nl?Nl:Er(B),R):m},R.startAngle=function(B){return arguments.length?(b=Er(B),R):b},R.endAngle=function(B){return arguments.length?(_=Er(B),R):_},R.padAngle=function(B){return arguments.length?(O=Er(B),R):O},R.centroid=function(){var B=(+l.apply(this,arguments)+ +c.apply(this,arguments))/2,$=(+b.apply(this,arguments)+ +_.apply(this,arguments))/2-Qr;return[Math.cos($)*B,Math.sin($)*B]},R};var Nl="auto";function ep(l){return l.innerRadius}function lm(l){return l.outerRadius}function tp(l){return l.startAngle}function wf(l){return l.endAngle}function rp(l){return l&&l.padAngle}function Fl(l,c,v,m){return(l-v)*c-(c-m)*l>0?0:1}function gs(l,c,v,m,b){var _=l[0]-c[0],O=l[1]-c[1],R=(b?m:-m)/Math.sqrt(_*_+O*O),N=R*O,B=-R*_,$=l[0]+N,W=l[1]+B,G=c[0]+N,se=c[1]+B,ue=($+G)/2,H=(W+se)/2,Q=G-$,ne=se-W,fe=Q*Q+ne*ne,de=v-m,ae=$*se-G*W,He=(ne<0?-1:1)*Math.sqrt(Math.max(0,de*de*fe-ae*ae)),Je=(ae*ne-Q*He)/fe,ut=(-ae*Q-ne*He)/fe,et=(ae*ne+Q*He)/fe,dt=(-ae*Q+ne*He)/fe,_t=Je-ue,Kt=ut-H,Tt=et-ue,Vt=dt-H;return _t*_t+Kt*Kt>Tt*Tt+Vt*Vt&&(Je=et,ut=dt),[[Je-N,ut-B],[Je*v/de,ut*v/de]]}function np(){return!0}function ip(l){var c=pa,v=ha,m=np,b=mi,_=b.key,O=.7;function R(N){var B=[],$=[],W=-1,G=N.length,se,ue=Er(c),H=Er(v);function Q(){B.push("M",b(l($),O))}for(;++W<G;)m.call(this,se=N[W],W)?$.push([+ue.call(this,se,W),+H.call(this,se,W)]):$.length&&(Q(),$=[]);return $.length&&Q(),B.length?B.join(""):null}return R.x=function(N){return arguments.length?(c=N,R):c},R.y=function(N){return arguments.length?(v=N,R):v},R.defined=function(N){return arguments.length?(m=N,R):m},R.interpolate=function(N){return arguments.length?(typeof N=="function"?_=b=N:_=(b=Ll.get(N)||mi).key,R):_},R.tension=function(N){return arguments.length?(O=N,R):O},R}t.svg.line=function(){return ip(Ge)};var Ll=t.map({linear:mi,"linear-closed":ap,step:op,"step-before":Bl,"step-after":Ro,basis:$l,"basis-open":Sf,"basis-closed":ms,bundle:ys,cardinal:ya,"cardinal-open":um,"cardinal-closed":_f,monotone:yx});Ll.forEach(function(l,c){c.key=l,c.closed=/-closed$/.test(l)});function mi(l){return l.length>1?l.join("L"):l+"Z"}function ap(l){return l.join("L")+"Z"}function op(l){for(var c=0,v=l.length,m=l[0],b=[m[0],",",m[1]];++c<v;)b.push("H",(m[0]+(m=l[c])[0])/2,"V",m[1]);return v>1&&b.push("H",m[0]),b.join("")}function Bl(l){for(var c=0,v=l.length,m=l[0],b=[m[0],",",m[1]];++c<v;)b.push("V",(m=l[c])[1],"H",m[0]);return b.join("")}function Ro(l){for(var c=0,v=l.length,m=l[0],b=[m[0],",",m[1]];++c<v;)b.push("H",(m=l[c])[0],"V",m[1]);return b.join("")}function um(l,c){return l.length<4?mi(l):l[1]+Oo(l.slice(1,-1),ja(l,c))}function _f(l,c){return l.length<3?ap(l):l[0]+Oo((l.push(l[0]),l),ja([l[l.length-2]].concat(l,[l[1]]),c))}function ya(l,c){return l.length<3?mi(l):l[0]+Oo(l,ja(l,c))}function Oo(l,c){if(c.length<1||l.length!=c.length&&l.length!=c.length+2)return mi(l);var v=l.length!=c.length,m="",b=l[0],_=l[1],O=c[0],R=O,N=1;if(v&&(m+="Q"+(_[0]-O[0]*2/3)+","+(_[1]-O[1]*2/3)+","+_[0]+","+_[1],b=l[1],N=2),c.length>1){R=c[1],_=l[N],N++,m+="C"+(b[0]+O[0])+","+(b[1]+O[1])+","+(_[0]-R[0])+","+(_[1]-R[1])+","+_[0]+","+_[1];for(var B=2;B<c.length;B++,N++)_=l[N],R=c[B],m+="S"+(_[0]-R[0])+","+(_[1]-R[1])+","+_[0]+","+_[1]}if(v){var $=l[N];m+="Q"+(_[0]+R[0]*2/3)+","+(_[1]+R[1]*2/3)+","+$[0]+","+$[1]}return m}function ja(l,c){for(var v=[],m=(1-c)/2,b,_=l[0],O=l[1],R=1,N=l.length;++R<N;)b=_,_=O,O=l[R],v.push([m*(O[0]-b[0]),m*(O[1]-b[1])]);return v}function $l(l){if(l.length<3)return mi(l);var c=1,v=l.length,m=l[0],b=m[0],_=m[1],O=[b,b,b,(m=l[1])[0]],R=[_,_,_,m[1]],N=[b,",",_,"L",Sn(Ni,O),",",Sn(Ni,R)];for(l.push(l[v-1]);++c<=v;)m=l[c],O.shift(),O.push(m[0]),R.shift(),R.push(m[1]),zl(N,O,R);return l.pop(),N.push("L",m),N.join("")}function Sf(l){if(l.length<4)return mi(l);for(var c=[],v=-1,m=l.length,b,_=[0],O=[0];++v<3;)b=l[v],_.push(b[0]),O.push(b[1]);for(c.push(Sn(Ni,_)+","+Sn(Ni,O)),--v;++v<m;)b=l[v],_.shift(),_.push(b[0]),O.shift(),O.push(b[1]),zl(c,_,O);return c.join("")}function ms(l){for(var c,v=-1,m=l.length,b=m+4,_,O=[],R=[];++v<4;)_=l[v%m],O.push(_[0]),R.push(_[1]);for(c=[Sn(Ni,O),",",Sn(Ni,R)],--v;++v<b;)_=l[v%m],O.shift(),O.push(_[0]),R.shift(),R.push(_[1]),zl(c,O,R);return c.join("")}function ys(l,c){var v=l.length-1;if(v)for(var m=l[0][0],b=l[0][1],_=l[v][0]-m,O=l[v][1]-b,R=-1,N,B;++R<=v;)N=l[R],B=R/v,N[0]=c*N[0]+(1-c)*(m+B*_),N[1]=c*N[1]+(1-c)*(b+B*O);return $l(l)}function Sn(l,c){return l[0]*c[0]+l[1]*c[1]+l[2]*c[2]+l[3]*c[3]}var Ef=[0,2/3,1/3,0],Af=[0,1/3,2/3,0],Ni=[0,1/6,2/3,1/6];function zl(l,c,v){l.push("C",Sn(Ef,c),",",Sn(Ef,v),",",Sn(Af,c),",",Sn(Af,v),",",Sn(Ni,c),",",Sn(Ni,v))}function Ul(l,c){return(c[1]-l[1])/(c[0]-l[0])}function bs(l){for(var c=0,v=l.length-1,m=[],b=l[0],_=l[1],O=m[0]=Ul(b,_);++c<v;)m[c]=(O+(O=Ul(b=_,_=l[c+1])))/2;return m[c]=O,m}function xs(l){for(var c=[],v,m,b,_,O=bs(l),R=-1,N=l.length-1;++R<N;)v=Ul(l[R],l[R+1]),S(v)<ir?O[R]=O[R+1]=0:(m=O[R]/v,b=O[R+1]/v,_=m*m+b*b,_>9&&(_=v*3/Math.sqrt(_),O[R]=_*m,O[R+1]=_*b));for(R=-1;++R<=N;)_=(l[Math.min(N,R+1)][0]-l[Math.max(0,R-1)][0])/(6*(1+O[R]*O[R])),c.push([_||0,O[R]*_||0]);return c}function yx(l){return l.length<3?mi(l):l[0]+Oo(l,xs(l))}t.svg.line.radial=function(){var l=ip(fm);return l.radius=l.x,delete l.x,l.angle=l.y,delete l.y,l};function fm(l){for(var c,v=-1,m=l.length,b,_;++v<m;)c=l[v],b=c[0],_=c[1]-Qr,c[0]=b*Math.cos(_),c[1]=b*Math.sin(_);return l}function sp(l){var c=pa,v=pa,m=0,b=ha,_=np,O=mi,R=O.key,N=O,B="L",$=.7;function W(G){var se=[],ue=[],H=[],Q=-1,ne=G.length,fe,de=Er(c),ae=Er(m),He=c===v?function(){return ut}:Er(v),Je=m===b?function(){return et}:Er(b),ut,et;function dt(){se.push("M",O(l(H),$),B,N(l(ue.reverse()),$),"Z")}for(;++Q<ne;)_.call(this,fe=G[Q],Q)?(ue.push([ut=+de.call(this,fe,Q),et=+ae.call(this,fe,Q)]),H.push([+He.call(this,fe,Q),+Je.call(this,fe,Q)])):ue.length&&(dt(),ue=[],H=[]);return ue.length&&dt(),se.length?se.join(""):null}return W.x=function(G){return arguments.length?(c=v=G,W):v},W.x0=function(G){return arguments.length?(c=G,W):c},W.x1=function(G){return arguments.length?(v=G,W):v},W.y=function(G){return arguments.length?(m=b=G,W):b},W.y0=function(G){return arguments.length?(m=G,W):m},W.y1=function(G){return arguments.length?(b=G,W):b},W.defined=function(G){return arguments.length?(_=G,W):_},W.interpolate=function(G){return arguments.length?(typeof G=="function"?R=O=G:R=(O=Ll.get(G)||mi).key,N=O.reverse||O,B=O.closed?"M":"L",W):R},W.tension=function(G){return arguments.length?($=G,W):$},W}Bl.reverse=Ro,Ro.reverse=Bl,t.svg.area=function(){return sp(Ge)},t.svg.area.radial=function(){var l=sp(fm);return l.radius=l.x,delete l.x,l.innerRadius=l.x0,delete l.x0,l.outerRadius=l.x1,delete l.x1,l.angle=l.y,delete l.y,l.startAngle=l.y0,delete l.y0,l.endAngle=l.y1,delete l.y1,l};function lp(l){return l.source}function up(l){return l.target}t.svg.chord=function(){var l=lp,c=up,v=bx,m=tp,b=wf;function _($,W){var G=O(this,l,$,W),se=O(this,c,$,W);return"M"+G.p0+N(G.r,G.p1,G.a1-G.a0)+(R(G,se)?B(G.r,G.p1,G.r,G.p0):B(G.r,G.p1,se.r,se.p0)+N(se.r,se.p1,se.a1-se.a0)+B(se.r,se.p1,G.r,G.p0))+"Z"}function O($,W,G,se){var ue=W.call($,G,se),H=v.call($,ue,se),Q=m.call($,ue,se)-Qr,ne=b.call($,ue,se)-Qr;return{r:H,a0:Q,a1:ne,p0:[H*Math.cos(Q),H*Math.sin(Q)],p1:[H*Math.cos(ne),H*Math.sin(ne)]}}function R($,W){return $.a0==W.a0&&$.a1==W.a1}function N($,W,G){return"A"+$+","+$+" 0 "+ +(G>tn)+",1 "+W}function B($,W,G,se){return"Q 0,0 "+se}return _.radius=function($){return arguments.length?(v=Er($),_):v},_.source=function($){return arguments.length?(l=Er($),_):l},_.target=function($){return arguments.length?(c=Er($),_):c},_.startAngle=function($){return arguments.length?(m=Er($),_):m},_.endAngle=function($){return arguments.length?(b=Er($),_):b},_};function bx(l){return l.radius}t.svg.diagonal=function(){var l=lp,c=up,v=Io;function m(b,_){var O=l.call(this,b,_),R=c.call(this,b,_),N=(O.y+R.y)/2,B=[O,{x:O.x,y:N},{x:R.x,y:N},R];return B=B.map(v),"M"+B[0]+"C"+B[1]+" "+B[2]+" "+B[3]}return m.source=function(b){return arguments.length?(l=Er(b),m):l},m.target=function(b){return arguments.length?(c=Er(b),m):c},m.projection=function(b){return arguments.length?(v=b,m):v},m};function Io(l){return[l.x,l.y]}t.svg.diagonal.radial=function(){var l=t.svg.diagonal(),c=Io,v=l.projection;return l.projection=function(m){return arguments.length?v(fp(c=m)):c},l};function fp(l){return function(){var c=l.apply(this,arguments),v=c[0],m=c[1]-Qr;return[v*Math.cos(m),v*Math.sin(m)]}}t.svg.symbol=function(){var l=wx,c=xx;function v(m,b){return(dm.get(l.call(this,m,b))||cm)(c.call(this,m,b))}return v.type=function(m){return arguments.length?(l=Er(m),v):l},v.size=function(m){return arguments.length?(c=Er(m),v):c},v};function xx(){return 64}function wx(){return"circle"}function cm(l){var c=Math.sqrt(l/tn);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var dm=t.map({circle:cm,cross:function(l){var c=Math.sqrt(l/5)/2;return"M"+-3*c+","+-c+"H"+-c+"V"+-3*c+"H"+c+"V"+-c+"H"+3*c+"V"+c+"H"+c+"V"+3*c+"H"+-c+"V"+c+"H"+-3*c+"Z"},diamond:function(l){var c=Math.sqrt(l/(2*pm)),v=c*pm;return"M0,"+-c+"L"+v+",0 0,"+c+" "+-v+",0Z"},square:function(l){var c=Math.sqrt(l)/2;return"M"+-c+","+-c+"L"+c+","+-c+" "+c+","+c+" "+-c+","+c+"Z"},"triangle-down":function(l){var c=Math.sqrt(l/Cf),v=c*Cf/2;return"M0,"+v+"L"+c+","+-v+" "+-c+","+-v+"Z"},"triangle-up":function(l){var c=Math.sqrt(l/Cf),v=c*Cf/2;return"M0,"+-v+"L"+c+","+v+" "+-c+","+v+"Z"}});t.svg.symbolTypes=dm.keys();var Cf=Math.sqrt(3),pm=Math.tan(30*Ma);_e.transition=function(l){for(var c=ba||++Rf,v=Wl(l),m=[],b,_,O=ws||{time:Date.now(),ease:cs,delay:0,duration:250},R=-1,N=this.length;++R<N;){m.push(b=[]);for(var B=this[R],$=-1,W=B.length;++$<W;)(_=B[$])&&_s(_,$,v,c,O),b.push(_)}return jl(m,v,c)},_e.interrupt=function(l){return this.each(l==null?Tf:hm(Wl(l)))};var Tf=hm(Wl());function hm(l){return function(){var c,v,m;(c=this[l])&&(m=c[v=c.active])&&(m.timer.c=null,m.timer.t=NaN,--c.count?delete c[v]:delete this[l],c.active+=.5,m.event&&m.event.interrupt.call(this,this.__data__,m.index))}}function jl(l,c,v){return At(l,Zr),l.namespace=c,l.id=v,l}var Zr=[],Rf=0,ba,ws;Zr.call=_e.call,Zr.empty=_e.empty,Zr.node=_e.node,Zr.size=_e.size,t.transition=function(l,c){return l&&l.transition?ba?l.transition(c):l:t.selection().transition(l)},t.transition.prototype=Zr,Zr.select=function(l){var c=this.id,v=this.namespace,m=[],b,_,O;l=j(l);for(var R=-1,N=this.length;++R<N;){m.push(b=[]);for(var B=this[R],$=-1,W=B.length;++$<W;)(O=B[$])&&(_=l.call(O,O.__data__,$,R))?("__data__"in O&&(_.__data__=O.__data__),_s(_,$,v,c,O[v][c]),b.push(_)):b.push(null)}return jl(m,v,c)},Zr.selectAll=function(l){var c=this.id,v=this.namespace,m=[],b,_,O,R,N;l=te(l);for(var B=-1,$=this.length;++B<$;)for(var W=this[B],G=-1,se=W.length;++G<se;)if(O=W[G]){N=O[v][c],_=l.call(O,O.__data__,G,B),m.push(b=[]);for(var ue=-1,H=_.length;++ue<H;)(R=_[ue])&&_s(R,ue,v,c,N),b.push(R)}return jl(m,v,c)},Zr.filter=function(l){var c=[],v,m,b;typeof l!="function"&&(l=Wn(l));for(var _=0,O=this.length;_<O;_++){c.push(v=[]);for(var m=this[_],R=0,N=m.length;R<N;R++)(b=m[R])&&l.call(b,b.__data__,R,_)&&v.push(b)}return jl(c,this.namespace,this.id)},Zr.tween=function(l,c){var v=this.id,m=this.namespace;return arguments.length<2?this.node()[m][v].tween.get(l):vn(this,c==null?function(b){b[m][v].tween.remove(l)}:function(b){b[m][v].tween.set(l,c)})};function Of(l,c,v,m){var b=l.id,_=l.namespace;return vn(l,typeof v=="function"?function(O,R,N){O[_][b].tween.set(c,m(v.call(O,O.__data__,R,N)))}:(v=m(v),function(O){O[_][b].tween.set(c,v)}))}Zr.attr=function(l,c){if(arguments.length<2){for(c in l)this.attr(c,l[c]);return this}var v=l=="transform"?Fd:Gi,m=t.ns.qualify(l);function b(){this.removeAttribute(m)}function _(){this.removeAttributeNS(m.space,m.local)}function O(N){return N==null?b:(N+="",function(){var B=this.getAttribute(m),$;return B!==N&&($=v(B,N),function(W){this.setAttribute(m,$(W))})})}function R(N){return N==null?_:(N+="",function(){var B=this.getAttributeNS(m.space,m.local),$;return B!==N&&($=v(B,N),function(W){this.setAttributeNS(m.space,m.local,$(W))})})}return Of(this,"attr."+l,c,m.local?R:O)},Zr.attrTween=function(l,c){var v=t.ns.qualify(l);function m(_,O){var R=c.call(this,_,O,this.getAttribute(v));return R&&function(N){this.setAttribute(v,R(N))}}function b(_,O){var R=c.call(this,_,O,this.getAttributeNS(v.space,v.local));return R&&function(N){this.setAttributeNS(v.space,v.local,R(N))}}return this.tween("attr."+l,v.local?b:m)},Zr.style=function(l,c,v){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(v in l)this.style(v,l[v],c);return this}v=""}function b(){this.style.removeProperty(l)}function _(O){return O==null?b:(O+="",function(){var R=o(this).getComputedStyle(this,null).getPropertyValue(l),N;return R!==O&&(N=Gi(R,O),function(B){this.style.setProperty(l,N(B),v)})})}return Of(this,"style."+l,c,_)},Zr.styleTween=function(l,c,v){arguments.length<3&&(v="");function m(b,_){var O=c.call(this,b,_,o(this).getComputedStyle(this,null).getPropertyValue(l));return O&&function(R){this.style.setProperty(l,O(R),v)}}return this.tween("style."+l,m)},Zr.text=function(l){return Of(this,"text",l,cp)};function cp(l){return l==null&&(l=""),function(){this.textContent=l}}Zr.remove=function(){var l=this.namespace;return this.each("end.transition",function(){var c;this[l].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Zr.ease=function(l){var c=this.id,v=this.namespace;return arguments.length<1?this.node()[v][c].ease:(typeof l!="function"&&(l=t.ease.apply(t,arguments)),vn(this,function(m){m[v][c].ease=l}))},Zr.delay=function(l){var c=this.id,v=this.namespace;return arguments.length<1?this.node()[v][c].delay:vn(this,typeof l=="function"?function(m,b,_){m[v][c].delay=+l.call(m,m.__data__,b,_)}:(l=+l,function(m){m[v][c].delay=l}))},Zr.duration=function(l){var c=this.id,v=this.namespace;return arguments.length<1?this.node()[v][c].duration:vn(this,typeof l=="function"?function(m,b,_){m[v][c].duration=Math.max(1,l.call(m,m.__data__,b,_))}:(l=Math.max(1,l),function(m){m[v][c].duration=l}))},Zr.each=function(l,c){var v=this.id,m=this.namespace;if(arguments.length<2){var b=ws,_=ba;try{ba=v,vn(this,function(O,R,N){ws=O[m][v],l.call(O,O.__data__,R,N)})}finally{ws=b,ba=_}}else vn(this,function(O){var R=O[m][v];(R.event||(R.event=t.dispatch("start","end","interrupt"))).on(l,c)});return this},Zr.transition=function(){for(var l=this.id,c=++Rf,v=this.namespace,m=[],b,_,O,R,N=0,B=this.length;N<B;N++){m.push(b=[]);for(var _=this[N],$=0,W=_.length;$<W;$++)(O=_[$])&&(R=O[v][l],_s(O,$,v,c,{time:R.time,ease:R.ease,delay:R.delay+R.duration,duration:R.duration})),b.push(O)}return jl(m,v,c)};function Wl(l){return l==null?"__transition__":"__transition_"+l+"__"}function _s(l,c,v,m,b){var _=l[v]||(l[v]={active:0,count:0}),O=_[m],R,N,B,$,W;function G(H){var Q=O.delay;if(N.t=Q+R,Q<=H)return se(H-Q);N.c=se}function se(H){var Q=_.active,ne=_[Q];ne&&(ne.timer.c=null,ne.timer.t=NaN,--_.count,delete _[Q],ne.event&&ne.event.interrupt.call(l,l.__data__,ne.index));for(var fe in _)if(+fe<m){var de=_[fe];de.timer.c=null,de.timer.t=NaN,--_.count,delete _[fe]}N.c=ue,as(function(){return N.c&&ue(H||1)&&(N.c=null,N.t=NaN),1},0,R),_.active=m,O.event&&O.event.start.call(l,l.__data__,c),W=[],O.tween.forEach(function(ae,He){(He=He.call(l,l.__data__,c))&&W.push(He)}),$=O.ease,B=O.duration}function ue(H){for(var Q=H/B,ne=$(Q),fe=W.length;fe>0;)W[--fe].call(l,ne);if(Q>=1)return O.event&&O.event.end.call(l,l.__data__,c),--_.count?delete _[m]:delete l[v],1}O||(R=b.time,N=as(G,0,R),O=_[m]={tween:new k,time:R,timer:N,delay:b.delay,duration:b.duration,ease:b.ease,index:c},b=null,++_.count)}t.svg.axis=function(){var l=t.scale.linear(),c=dp,v=6,m=6,b=3,_=[10],O=null,R;function N(B){B.each(function(){var $=t.select(this),W=this.__chart__||l,G=this.__chart__=l.copy(),se=O==null?G.ticks?G.ticks.apply(G,_):G.domain():O,ue=R==null?G.tickFormat?G.tickFormat.apply(G,_):Ge:R,H=$.selectAll(".tick").data(se,G),Q=H.enter().insert("g",".domain").attr("class","tick").style("opacity",ir),ne=t.transition(H.exit()).style("opacity",ir).remove(),fe=t.transition(H.order()).style("opacity",1),de=Math.max(v,0)+b,ae,He=gf(G),Je=$.selectAll(".domain").data([0]),ut=(Je.enter().append("path").attr("class","domain"),t.transition(Je));Q.append("line"),Q.append("text");var et=Q.select("line"),dt=fe.select("line"),_t=H.select("text").text(ue),Kt=Q.select("text"),Tt=fe.select("text"),Vt=c==="top"||c==="left"?-1:1,dr,Wr,xr,ft;if(c==="bottom"||c==="top"?(ae=hp,dr="x",xr="y",Wr="x2",ft="y2",_t.attr("dy",Vt<0?"0em":".71em").style("text-anchor","middle"),ut.attr("d","M"+He[0]+","+Vt*m+"V0H"+He[1]+"V"+Vt*m)):(ae=vp,dr="y",xr="x",Wr="y2",ft="x2",_t.attr("dy",".32em").style("text-anchor",Vt<0?"end":"start"),ut.attr("d","M"+Vt*m+","+He[0]+"H0V"+He[1]+"H"+Vt*m)),et.attr(ft,Vt*v),Kt.attr(xr,Vt*de),dt.attr(Wr,0).attr(ft,Vt*v),Tt.attr(dr,0).attr(xr,Vt*de),G.rangeBand){var Qt=G,tr=Qt.rangeBand()/2;W=G=function(pr){return Qt(pr)+tr}}else W.rangeBand?W=G:ne.call(ae,G,W);Q.call(ae,W,G),fe.call(ae,G,G)})}return N.scale=function(B){return arguments.length?(l=B,N):l},N.orient=function(B){return arguments.length?(c=B in pp?B+"":dp,N):c},N.ticks=function(){return arguments.length?(_=n(arguments),N):_},N.tickValues=function(B){return arguments.length?(O=B,N):O},N.tickFormat=function(B){return arguments.length?(R=B,N):R},N.tickSize=function(B){var $=arguments.length;return $?(v=+B,m=+arguments[$-1],N):v},N.innerTickSize=function(B){return arguments.length?(v=+B,N):v},N.outerTickSize=function(B){return arguments.length?(m=+B,N):m},N.tickPadding=function(B){return arguments.length?(b=+B,N):b},N.tickSubdivide=function(){return arguments.length&&N},N};var dp="bottom",pp={top:1,right:1,bottom:1,left:1};function hp(l,c,v){l.attr("transform",function(m){var b=c(m);return"translate("+(isFinite(b)?b:v(m))+",0)"})}function vp(l,c,v){l.attr("transform",function(m){var b=c(m);return"translate(0,"+(isFinite(b)?b:v(m))+")"})}t.svg.brush=function(){var l=Qe($,"brushstart","brush","brushend"),c=null,v=null,m=[0,0],b=[0,0],_,O,R=!0,N=!0,B=Gl[0];function $(H){H.each(function(){var Q=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ue).on("touchstart.brush",ue),ne=Q.selectAll(".background").data([0]);ne.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Q.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var fe=Q.selectAll(".resize").data(B,Ge);fe.exit().remove(),fe.enter().append("g").attr("class",function(Je){return"resize "+Je}).style("cursor",function(Je){return gp[Je]}).append("rect").attr("x",function(Je){return/[ew]$/.test(Je)?-3:null}).attr("y",function(Je){return/^[ns]/.test(Je)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),fe.style("display",$.empty()?"none":null);var de=t.transition(Q),ae=t.transition(ne),He;c&&(He=gf(c),ae.attr("x",He[0]).attr("width",He[1]-He[0]),G(de)),v&&(He=gf(v),ae.attr("y",He[0]).attr("height",He[1]-He[0]),se(de)),W(de)})}$.event=function(H){H.each(function(){var Q=l.of(this,arguments),ne={x:m,y:b,i:_,j:O},fe=this.__chart__||ne;this.__chart__=ne,ba?t.select(this).transition().each("start.brush",function(){_=fe.i,O=fe.j,m=fe.x,b=fe.y,Q({type:"brushstart"})}).tween("brush:brush",function(){var de=ei(m,ne.x),ae=ei(b,ne.y);return _=O=null,function(He){m=ne.x=de(He),b=ne.y=ae(He),Q({type:"brush",mode:"resize"})}}).each("end.brush",function(){_=ne.i,O=ne.j,Q({type:"brush",mode:"resize"}),Q({type:"brushend"})}):(Q({type:"brushstart"}),Q({type:"brush",mode:"resize"}),Q({type:"brushend"}))})};function W(H){H.selectAll(".resize").attr("transform",function(Q){return"translate("+m[+/e$/.test(Q)]+","+b[+/^s/.test(Q)]+")"})}function G(H){H.select(".extent").attr("x",m[0]),H.selectAll(".extent,.n>rect,.s>rect").attr("width",m[1]-m[0])}function se(H){H.select(".extent").attr("y",b[0]),H.selectAll(".extent,.e>rect,.w>rect").attr("height",b[1]-b[0])}function ue(){var H=this,Q=t.select(t.event.target),ne=l.of(H,arguments),fe=t.select(H),de=Q.datum(),ae=!/^(n|s)$/.test(de)&&c,He=!/^(e|w)$/.test(de)&&v,Je=Q.classed("extent"),ut=ts(H),et,dt=t.mouse(H),_t,Kt=t.select(o(H)).on("keydown.brush",dr).on("keyup.brush",Wr);if(t.event.changedTouches?Kt.on("touchmove.brush",xr).on("touchend.brush",Qt):Kt.on("mousemove.brush",xr).on("mouseup.brush",Qt),fe.interrupt().selectAll("*").interrupt(),Je)dt[0]=m[0]-dt[0],dt[1]=b[0]-dt[1];else if(de){var Tt=+/w$/.test(de),Vt=+/^n/.test(de);_t=[m[1-Tt]-dt[0],b[1-Vt]-dt[1]],dt[0]=m[Tt],dt[1]=b[Vt]}else t.event.altKey&&(et=dt.slice());fe.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",Q.style("cursor")),ne({type:"brushstart"}),xr();function dr(){t.event.keyCode==32&&(Je||(et=null,dt[0]-=m[1],dt[1]-=b[1],Je=2),Ve())}function Wr(){t.event.keyCode==32&&Je==2&&(dt[0]+=m[1],dt[1]+=b[1],Je=0,Ve())}function xr(){var tr=t.mouse(H),pr=!1;_t&&(tr[0]+=_t[0],tr[1]+=_t[1]),Je||(t.event.altKey?(et||(et=[(m[0]+m[1])/2,(b[0]+b[1])/2]),dt[0]=m[+(tr[0]<et[0])],dt[1]=b[+(tr[1]<et[1])]):et=null),ae&&ft(tr,c,0)&&(G(fe),pr=!0),He&&ft(tr,v,1)&&(se(fe),pr=!0),pr&&(W(fe),ne({type:"brush",mode:Je?"move":"resize"}))}function ft(tr,pr,Fr){var Jr=gf(pr),fn=Jr[0],Mn=Jr[1],qn=dt[Fr],En=Fr?b:m,ti=En[1]-En[0],F,V;if(Je&&(fn-=qn,Mn-=ti+qn),F=(Fr?N:R)?Math.max(fn,Math.min(Mn,tr[Fr])):tr[Fr],Je?V=(F+=qn)+ti:(et&&(qn=Math.max(fn,Math.min(Mn,2*et[Fr]-F))),qn<F?(V=F,F=qn):V=qn),En[0]!=F||En[1]!=V)return Fr?O=null:_=null,En[0]=F,En[1]=V,!0}function Qt(){xr(),fe.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),t.select("body").style("cursor",null),Kt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),ut(),ne({type:"brushend"})}}return $.x=function(H){return arguments.length?(c=H,B=Gl[!c<<1|!v],$):c},$.y=function(H){return arguments.length?(v=H,B=Gl[!c<<1|!v],$):v},$.clamp=function(H){return arguments.length?(c&&v?(R=!!H[0],N=!!H[1]):c?R=!!H:v&&(N=!!H),$):c&&v?[R,N]:c?R:v?N:null},$.extent=function(H){var Q,ne,fe,de,ae;return arguments.length?(c&&(Q=H[0],ne=H[1],v&&(Q=Q[0],ne=ne[0]),_=[Q,ne],c.invert&&(Q=c(Q),ne=c(ne)),ne<Q&&(ae=Q,Q=ne,ne=ae),(Q!=m[0]||ne!=m[1])&&(m=[Q,ne])),v&&(fe=H[0],de=H[1],c&&(fe=fe[1],de=de[1]),O=[fe,de],v.invert&&(fe=v(fe),de=v(de)),de<fe&&(ae=fe,fe=de,de=ae),(fe!=b[0]||de!=b[1])&&(b=[fe,de])),$):(c&&(_?(Q=_[0],ne=_[1]):(Q=m[0],ne=m[1],c.invert&&(Q=c.invert(Q),ne=c.invert(ne)),ne<Q&&(ae=Q,Q=ne,ne=ae))),v&&(O?(fe=O[0],de=O[1]):(fe=b[0],de=b[1],v.invert&&(fe=v.invert(fe),de=v.invert(de)),de<fe&&(ae=fe,fe=de,de=ae))),c&&v?[[Q,fe],[ne,de]]:c?[Q,ne]:v&&[fe,de])},$.clear=function(){return $.empty()||(m=[0,0],b=[0,0],_=O=null),$},$.empty=function(){return!!c&&m[0]==m[1]||!!v&&b[0]==b[1]},t.rebind($,l,"on")};var gp={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Gl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=bd(function(l){return l.responseText}),t.json=function(l,c){return Ju(l,"application/json",mp,c)};function mp(l){return JSON.parse(l.responseText)}t.html=function(l,c){return Ju(l,"text/html",yp,c)};function yp(l){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(l.responseText)}t.xml=bd(function(l){return l.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(noe);var X_=new Date,K_=new Date;function Dn(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),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var u=[],f;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;do u.push(f=new Date(+a)),t(a,s),e(a);while(f<a&&a<o);return u},i.filter=function(a){return Dn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return X_.setTime(+a),K_.setTime(+o),e(X_),e(K_),Math.floor(r(X_,K_))},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 s1=Dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});s1.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):s1};const sk=s1;var lk=s1.range,l1=1e3,Cu=6e4,u1=36e5,J6=864e5,e8=6048e5,t8=Dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*l1)},function(e,t){return(t-e)/l1},function(e){return e.getUTCSeconds()});const uk=t8;var fk=t8.range,r8=Dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l1)},function(e,t){e.setTime(+e+t*Cu)},function(e,t){return(t-e)/Cu},function(e){return e.getMinutes()});const ioe=r8;var aoe=r8.range,n8=Dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l1-e.getMinutes()*Cu)},function(e,t){e.setTime(+e+t*u1)},function(e,t){return(t-e)/u1},function(e){return e.getHours()});const ooe=n8;var soe=n8.range,i8=Dn(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())*Cu)/J6},function(e){return e.getDate()-1});const UT=i8;var loe=i8.range;function Wu(e){return Dn(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())*Cu)/e8})}var f1=Wu(0),vv=Wu(1),a8=Wu(2),o8=Wu(3),Tu=Wu(4),s8=Wu(5),l8=Wu(6),ck=f1.range,uoe=vv.range,foe=a8.range,coe=o8.range,doe=Tu.range,poe=s8.range,hoe=l8.range,u8=Dn(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 voe=u8;var goe=u8.range,jT=Dn(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()});jT.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Dn(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 Bc=jT;var moe=jT.range,f8=Dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Cu)},function(e,t){return(t-e)/Cu},function(e){return e.getUTCMinutes()});const yoe=f8;var boe=f8.range,c8=Dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*u1)},function(e,t){return(t-e)/u1},function(e){return e.getUTCHours()});const xoe=c8;var woe=c8.range,d8=Dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/J6},function(e){return e.getUTCDate()-1});const WT=d8;var _oe=d8.range;function Gu(e){return Dn(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)/e8})}var c1=Gu(0),gv=Gu(1),p8=Gu(2),h8=Gu(3),Ru=Gu(4),v8=Gu(5),g8=Gu(6),dk=c1.range,Soe=gv.range,Eoe=p8.range,Aoe=h8.range,Coe=Ru.range,Toe=v8.range,Roe=g8.range,m8=Dn(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 Ooe=m8;var Ioe=m8.range,GT=Dn(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()});GT.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Dn(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 $c=GT;var Poe=GT.range;const koe=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:Dn,timeMillisecond:sk,timeMilliseconds:lk,utcMillisecond:sk,utcMilliseconds:lk,timeSecond:uk,timeSeconds:fk,utcSecond:uk,utcSeconds:fk,timeMinute:ioe,timeMinutes:aoe,timeHour:ooe,timeHours:soe,timeDay:UT,timeDays:loe,timeWeek:f1,timeWeeks:ck,timeSunday:f1,timeSundays:ck,timeMonday:vv,timeMondays:uoe,timeTuesday:a8,timeTuesdays:foe,timeWednesday:o8,timeWednesdays:coe,timeThursday:Tu,timeThursdays:doe,timeFriday:s8,timeFridays:poe,timeSaturday:l8,timeSaturdays:hoe,timeMonth:voe,timeMonths:goe,timeYear:Bc,timeYears:moe,utcMinute:yoe,utcMinutes:boe,utcHour:xoe,utcHours:woe,utcDay:WT,utcDays:_oe,utcWeek:c1,utcWeeks:dk,utcSunday:c1,utcSundays:dk,utcMonday:gv,utcMondays:Soe,utcTuesday:p8,utcTuesdays:Eoe,utcWednesday:h8,utcWednesdays:Aoe,utcThursday:Ru,utcThursdays:Coe,utcFriday:v8,utcFridays:Toe,utcSaturday:g8,utcSaturdays:Roe,utcMonth:Ooe,utcMonths:Ioe,utcYear:$c,utcYears:Poe},Symbol.toStringTag,{value:"Module"}));function Q_(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 Z_(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 Bp(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function y8(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,f=$p(i),d=zp(i),p=$p(a),h=zp(a),g=$p(o),w=zp(o),E=$p(s),y=zp(s),x=$p(u),S=zp(u),A={a:he,A:Fe,b:qe,B:ze,c:null,d:yk,e:yk,f:tse,g:cse,G:pse,H:Zoe,I:Joe,j:ese,L:b8,m:rse,M:nse,p:we,q:ge,Q:wk,s:_k,S:ise,u:ase,U:ose,V:sse,w:lse,W:use,x:null,X:null,y:fse,Y:dse,Z:hse,"%":xk},C={a:Ve,A:We,b:Qe,B:rt,c:null,d:bk,e:bk,f:yse,g:Rse,G:Ise,H:vse,I:gse,j:mse,L:w8,m:bse,M:xse,p:At,q:wt,Q:wk,s:_k,S:wse,u:_se,U:Sse,V:Ese,w:Ase,W:Cse,x:null,X:null,y:Tse,Y:Ose,Z:Pse,"%":xk},k={a:X,A:re,b:ce,B:xe,c:Se,d:gk,e:gk,f:Yoe,g:vk,G:hk,H:mk,I:mk,j:Goe,L:Voe,m:Woe,M:qoe,p:L,q:joe,Q:Koe,s:Qoe,S:Hoe,u:Loe,U:Boe,V:$oe,w:Foe,W:zoe,x:Ze,X:Ge,y:vk,Y:hk,Z:Uoe,"%":Xoe};A.x=D(r,A),A.X=D(n,A),A.c=D(t,A),C.x=D(r,C),C.X=D(n,C),C.c=D(t,C);function D(Ee,Be){return function(ht){var _e=[],j=-1,te=0,I=Ee.length,T,P,U;for(ht instanceof Date||(ht=new Date(+ht));++j<I;)Ee.charCodeAt(j)===37&&(_e.push(Ee.slice(te,j)),(P=pk[T=Ee.charAt(++j)])!=null?T=Ee.charAt(++j):P=T==="e"?" ":"0",(U=Be[T])&&(T=U(ht,P)),_e.push(T),te=j+1);return _e.push(Ee.slice(te,j)),_e.join("")}}function z(Ee,Be){return function(ht){var _e=Bp(1900,void 0,1),j=M(_e,Ee,ht+="",0),te,I;if(j!=ht.length)return null;if("Q"in _e)return new Date(_e.Q);if("s"in _e)return new Date(_e.s*1e3+("L"in _e?_e.L:0));if(Be&&!("Z"in _e)&&(_e.Z=0),"p"in _e&&(_e.H=_e.H%12+_e.p*12),_e.m===void 0&&(_e.m="q"in _e?_e.q:0),"V"in _e){if(_e.V<1||_e.V>53)return null;"w"in _e||(_e.w=1),"Z"in _e?(te=Z_(Bp(_e.y,0,1)),I=te.getUTCDay(),te=I>4||I===0?gv.ceil(te):gv(te),te=WT.offset(te,(_e.V-1)*7),_e.y=te.getUTCFullYear(),_e.m=te.getUTCMonth(),_e.d=te.getUTCDate()+(_e.w+6)%7):(te=Q_(Bp(_e.y,0,1)),I=te.getDay(),te=I>4||I===0?vv.ceil(te):vv(te),te=UT.offset(te,(_e.V-1)*7),_e.y=te.getFullYear(),_e.m=te.getMonth(),_e.d=te.getDate()+(_e.w+6)%7)}else("W"in _e||"U"in _e)&&("w"in _e||(_e.w="u"in _e?_e.u%7:"W"in _e?1:0),I="Z"in _e?Z_(Bp(_e.y,0,1)).getUTCDay():Q_(Bp(_e.y,0,1)).getDay(),_e.m=0,_e.d="W"in _e?(_e.w+6)%7+_e.W*7-(I+5)%7:_e.w+_e.U*7-(I+6)%7);return"Z"in _e?(_e.H+=_e.Z/100|0,_e.M+=_e.Z%100,Z_(_e)):Q_(_e)}}function M(Ee,Be,ht,_e){for(var j=0,te=Be.length,I=ht.length,T,P;j<te;){if(_e>=I)return-1;if(T=Be.charCodeAt(j++),T===37){if(T=Be.charAt(j++),P=k[T in pk?Be.charAt(j++):T],!P||(_e=P(Ee,ht,_e))<0)return-1}else if(T!=ht.charCodeAt(_e++))return-1}return _e}function L(Ee,Be,ht){var _e=f.exec(Be.slice(ht));return _e?(Ee.p=d[_e[0].toLowerCase()],ht+_e[0].length):-1}function X(Ee,Be,ht){var _e=g.exec(Be.slice(ht));return _e?(Ee.w=w[_e[0].toLowerCase()],ht+_e[0].length):-1}function re(Ee,Be,ht){var _e=p.exec(Be.slice(ht));return _e?(Ee.w=h[_e[0].toLowerCase()],ht+_e[0].length):-1}function ce(Ee,Be,ht){var _e=x.exec(Be.slice(ht));return _e?(Ee.m=S[_e[0].toLowerCase()],ht+_e[0].length):-1}function xe(Ee,Be,ht){var _e=E.exec(Be.slice(ht));return _e?(Ee.m=y[_e[0].toLowerCase()],ht+_e[0].length):-1}function Se(Ee,Be,ht){return M(Ee,t,Be,ht)}function Ze(Ee,Be,ht){return M(Ee,r,Be,ht)}function Ge(Ee,Be,ht){return M(Ee,n,Be,ht)}function he(Ee){return o[Ee.getDay()]}function Fe(Ee){return a[Ee.getDay()]}function qe(Ee){return u[Ee.getMonth()]}function ze(Ee){return s[Ee.getMonth()]}function we(Ee){return i[+(Ee.getHours()>=12)]}function ge(Ee){return 1+~~(Ee.getMonth()/3)}function Ve(Ee){return o[Ee.getUTCDay()]}function We(Ee){return a[Ee.getUTCDay()]}function Qe(Ee){return u[Ee.getUTCMonth()]}function rt(Ee){return s[Ee.getUTCMonth()]}function At(Ee){return i[+(Ee.getUTCHours()>=12)]}function wt(Ee){return 1+~~(Ee.getUTCMonth()/3)}return{format:function(Ee){var Be=D(Ee+="",A);return Be.toString=function(){return Ee},Be},parse:function(Ee){var Be=z(Ee+="",!1);return Be.toString=function(){return Ee},Be},utcFormat:function(Ee){var Be=D(Ee+="",C);return Be.toString=function(){return Ee},Be},utcParse:function(Ee){var Be=z(Ee+="",!0);return Be.toString=function(){return Ee},Be}}}var pk={"-":"",_:" ",0:"0"},jn=/^\s*\d+/,Doe=/^%/,Moe=/[\\^$*+?|[\]().{}]/g;function Rr(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 Noe(e){return e.replace(Moe,"\\$&")}function $p(e){return new RegExp("^(?:"+e.map(Noe).join("|")+")","i")}function zp(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function Foe(e,t,r){var n=jn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Loe(e,t,r){var n=jn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Boe(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function $oe(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function zoe(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hk(e,t,r){var n=jn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function vk(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Uoe(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 joe(e,t,r){var n=jn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Woe(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function gk(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Goe(e,t,r){var n=jn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function mk(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function qoe(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Hoe(e,t,r){var n=jn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Voe(e,t,r){var n=jn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Yoe(e,t,r){var n=jn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Xoe(e,t,r){var n=Doe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Koe(e,t,r){var n=jn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Qoe(e,t,r){var n=jn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function yk(e,t){return Rr(e.getDate(),t,2)}function Zoe(e,t){return Rr(e.getHours(),t,2)}function Joe(e,t){return Rr(e.getHours()%12||12,t,2)}function ese(e,t){return Rr(1+UT.count(Bc(e),e),t,3)}function b8(e,t){return Rr(e.getMilliseconds(),t,3)}function tse(e,t){return b8(e,t)+"000"}function rse(e,t){return Rr(e.getMonth()+1,t,2)}function nse(e,t){return Rr(e.getMinutes(),t,2)}function ise(e,t){return Rr(e.getSeconds(),t,2)}function ase(e){var t=e.getDay();return t===0?7:t}function ose(e,t){return Rr(f1.count(Bc(e)-1,e),t,2)}function x8(e){var t=e.getDay();return t>=4||t===0?Tu(e):Tu.ceil(e)}function sse(e,t){return e=x8(e),Rr(Tu.count(Bc(e),e)+(Bc(e).getDay()===4),t,2)}function lse(e){return e.getDay()}function use(e,t){return Rr(vv.count(Bc(e)-1,e),t,2)}function fse(e,t){return Rr(e.getFullYear()%100,t,2)}function cse(e,t){return e=x8(e),Rr(e.getFullYear()%100,t,2)}function dse(e,t){return Rr(e.getFullYear()%1e4,t,4)}function pse(e,t){var r=e.getDay();return e=r>=4||r===0?Tu(e):Tu.ceil(e),Rr(e.getFullYear()%1e4,t,4)}function hse(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rr(t/60|0,"0",2)+Rr(t%60,"0",2)}function bk(e,t){return Rr(e.getUTCDate(),t,2)}function vse(e,t){return Rr(e.getUTCHours(),t,2)}function gse(e,t){return Rr(e.getUTCHours()%12||12,t,2)}function mse(e,t){return Rr(1+WT.count($c(e),e),t,3)}function w8(e,t){return Rr(e.getUTCMilliseconds(),t,3)}function yse(e,t){return w8(e,t)+"000"}function bse(e,t){return Rr(e.getUTCMonth()+1,t,2)}function xse(e,t){return Rr(e.getUTCMinutes(),t,2)}function wse(e,t){return Rr(e.getUTCSeconds(),t,2)}function _se(e){var t=e.getUTCDay();return t===0?7:t}function Sse(e,t){return Rr(c1.count($c(e)-1,e),t,2)}function _8(e){var t=e.getUTCDay();return t>=4||t===0?Ru(e):Ru.ceil(e)}function Ese(e,t){return e=_8(e),Rr(Ru.count($c(e),e)+($c(e).getUTCDay()===4),t,2)}function Ase(e){return e.getUTCDay()}function Cse(e,t){return Rr(gv.count($c(e)-1,e),t,2)}function Tse(e,t){return Rr(e.getUTCFullYear()%100,t,2)}function Rse(e,t){return e=_8(e),Rr(e.getUTCFullYear()%100,t,2)}function Ose(e,t){return Rr(e.getUTCFullYear()%1e4,t,4)}function Ise(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ru(e):Ru.ceil(e),Rr(e.getUTCFullYear()%1e4,t,4)}function Pse(){return"+0000"}function xk(){return"%"}function wk(e){return+e}function _k(e){return Math.floor(+e/1e3)}var Ff,S8,E8,qT,HT;A8({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 A8(e){return Ff=y8(e),S8=Ff.format,E8=Ff.parse,qT=Ff.utcFormat,HT=Ff.utcParse,Ff}var C8="%Y-%m-%dT%H:%M:%S.%LZ";function kse(e){return e.toISOString()}var Dse=Date.prototype.toISOString?kse:qT(C8);const Mse=Dse;function Nse(e){var t=new Date(e);return isNaN(t)?null:t}var Fse=+new Date("2000-01-01T00:00:00.000Z")?Nse:HT(C8);const Lse=Fse,Bse=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:A8,get timeFormat(){return S8},get timeParse(){return E8},get utcFormat(){return qT},get utcParse(){return HT},timeFormatLocale:y8,isoFormat:Mse,isoParse:Lse},Symbol.toStringTag,{value:"Module"})),Ige=Pu(Bse);function $se(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function d1(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 zc(e){return e=d1(Math.abs(e)),e?e[1]:NaN}function zse(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Use(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var jse=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p1(e){if(!(t=jse.exec(e)))throw new Error("invalid format: "+e);var t;return new Tb({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]})}p1.prototype=Tb.prototype;function Tb(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+""}Tb.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 Wse(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 T8;function Gse(e,t){var r=d1(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(T8=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")+d1(e,Math.max(0,t+a-1))[0]}function Sk(e,t){var r=d1(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 Ek={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:$se,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 Sk(e*100,t)},r:Sk,s:Gse,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Ak(e){return e}var Ck=Array.prototype.map,Tk=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function R8(e){var t=e.grouping===void 0||e.thousands===void 0?Ak:zse(Ck.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?Ak:Use(Ck.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(p){p=p1(p);var h=p.fill,g=p.align,w=p.sign,E=p.symbol,y=p.zero,x=p.width,S=p.comma,A=p.precision,C=p.trim,k=p.type;k==="n"?(S=!0,k="g"):Ek[k]||(A===void 0&&(A=12),C=!0,k="g"),(y||h==="0"&&g==="=")&&(y=!0,h="0",g="=");var D=E==="$"?r:E==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",z=E==="$"?n:/[%p]/.test(k)?o:"",M=Ek[k],L=/[defgprs%]/.test(k);A=A===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function X(re){var ce=D,xe=z,Se,Ze,Ge;if(k==="c")xe=M(re)+xe,re="";else{re=+re;var he=re<0||1/re<0;if(re=isNaN(re)?u:M(Math.abs(re),A),C&&(re=Wse(re)),he&&+re==0&&w!=="+"&&(he=!1),ce=(he?w==="("?w:s:w==="-"||w==="("?"":w)+ce,xe=(k==="s"?Tk[8+T8/3]:"")+xe+(he&&w==="("?")":""),L){for(Se=-1,Ze=re.length;++Se<Ze;)if(Ge=re.charCodeAt(Se),48>Ge||Ge>57){xe=(Ge===46?i+re.slice(Se+1):re.slice(Se))+xe,re=re.slice(0,Se);break}}}S&&!y&&(re=t(re,1/0));var Fe=ce.length+re.length+xe.length,qe=Fe<x?new Array(x-Fe+1).join(h):"";switch(S&&y&&(re=t(qe+re,qe.length?x-xe.length:1/0),qe=""),g){case"<":re=ce+re+xe+qe;break;case"=":re=ce+qe+re+xe;break;case"^":re=qe.slice(0,Fe=qe.length>>1)+ce+re+xe+qe.slice(Fe);break;default:re=qe+ce+re+xe;break}return a(re)}return X.toString=function(){return p+""},X}function d(p,h){var g=f((p=p1(p),p.type="f",p)),w=Math.max(-8,Math.min(8,Math.floor(zc(h)/3)))*3,E=Math.pow(10,-w),y=Tk[8+w/3];return function(x){return g(E*x)+y}}return{format:f,formatPrefix:d}}var o0,O8,I8;P8({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function P8(e){return o0=R8(e),O8=o0.format,I8=o0.formatPrefix,o0}function qse(e){return Math.max(0,-zc(Math.abs(e)))}function Hse(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zc(t)/3)))*3-zc(Math.abs(e)))}function Vse(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zc(t)-zc(e))+1}const Yse=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:P8,get format(){return O8},get formatPrefix(){return I8},formatLocale:R8,formatSpecifier:p1,FormatSpecifier:Tb,precisionFixed:qse,precisionPrefix:Hse,precisionRound:Vse},Symbol.toStringTag,{value:"Module"})),Pge=Pu(Yse);var Xse=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},Kse=Xse,kge=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Kse(r))return!1}else if(t!=="number")return!1;return e-e<1},Qse={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,u=t.random;function f(j,te){if(j=j||"",te=te||{},j instanceof f)return j;if(!(this instanceof f))return new f(j,te);var I=d(j);this._originalInput=j,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=a(100*this._a)/100,this._format=te.format||I.format,this._gradientType=te.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=I.ok,this._tc_id=i++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),te,I,T,P,U,le;return te=j.r/255,I=j.g/255,T=j.b/255,te<=.03928?P=te/12.92:P=t.pow((te+.055)/1.055,2.4),I<=.03928?U=I/12.92:U=t.pow((I+.055)/1.055,2.4),T<=.03928?le=T/12.92:le=t.pow((T+.055)/1.055,2.4),.2126*P+.7152*U+.0722*le},setAlpha:function(j){return this._a=qe(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=w(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=w(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),T=a(j.v*100);return this._a==1?"hsv("+te+", "+I+"%, "+T+"%)":"hsva("+te+", "+I+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var j=h(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=h(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),T=a(j.l*100);return this._a==1?"hsl("+te+", "+I+"%, "+T+"%)":"hsla("+te+", "+I+"%, "+T+"%, "+this._roundA+")"},toHex:function(j){return y(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return x(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},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(ze(this._r,255)*100)+"%",g:a(ze(this._g,255)*100)+"%",b:a(ze(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(ze(this._r,255)*100)+"%, "+a(ze(this._g,255)*100)+"%, "+a(ze(this._b,255)*100)+"%)":"rgba("+a(ze(this._r,255)*100)+"%, "+a(ze(this._g,255)*100)+"%, "+a(ze(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:he[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var te="#"+S(this._r,this._g,this._b,this._a),I=te,T=this._gradientType?"GradientType = 1, ":"";if(j){var P=f(j);I="#"+S(P._r,P._g,P._b,P._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+te+",endColorstr="+I+")"},toString:function(j){var te=!!j;j=j||this._format;var I=!1,T=this._a<1&&this._a>=0,P=!te&&T&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return P?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(I=this.toRgbString()),j==="prgb"&&(I=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(I=this.toHexString()),j==="hex3"&&(I=this.toHexString(!0)),j==="hex4"&&(I=this.toHex8String(!0)),j==="hex8"&&(I=this.toHex8String()),j==="name"&&(I=this.toName()),j==="hsl"&&(I=this.toHslString()),j==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(j,te){var I=j.apply(null,[this].concat([].slice.call(te)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(C,arguments)},greyscale:function(){return this._applyModification(k,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(j,te){return j.apply(null,[this].concat([].slice.call(te)))},analogous:function(){return this._applyCombination(Se,arguments)},complement:function(){return this._applyCombination(X,arguments)},monochromatic:function(){return this._applyCombination(Ze,arguments)},splitcomplement:function(){return this._applyCombination(xe,arguments)},triad:function(){return this._applyCombination(re,arguments)},tetrad:function(){return this._applyCombination(ce,arguments)}},f.fromRatio=function(j,te){if(typeof j=="object"){var I={};for(var T in j)j.hasOwnProperty(T)&&(T==="a"?I[T]=j[T]:I[T]=rt(j[T]));j=I}return f(j,te)};function d(j){var te={r:0,g:0,b:0},I=1,T=null,P=null,U=null,le=!1,Ne=!1;return typeof j=="string"&&(j=ht(j)),typeof j=="object"&&(Be(j.r)&&Be(j.g)&&Be(j.b)?(te=p(j.r,j.g,j.b),le=!0,Ne=String(j.r).substr(-1)==="%"?"prgb":"rgb"):Be(j.h)&&Be(j.s)&&Be(j.v)?(T=rt(j.s),P=rt(j.v),te=E(j.h,T,P),le=!0,Ne="hsv"):Be(j.h)&&Be(j.s)&&Be(j.l)&&(T=rt(j.s),U=rt(j.l),te=g(j.h,T,U),le=!0,Ne="hsl"),j.hasOwnProperty("a")&&(I=j.a)),I=qe(I),{ok:le,format:j.format||Ne,r:o(255,s(te.r,0)),g:o(255,s(te.g,0)),b:o(255,s(te.b,0)),a:I}}function p(j,te,I){return{r:ze(j,255)*255,g:ze(te,255)*255,b:ze(I,255)*255}}function h(j,te,I){j=ze(j,255),te=ze(te,255),I=ze(I,255);var T=s(j,te,I),P=o(j,te,I),U,le,Ne=(T+P)/2;if(T==P)U=le=0;else{var $e=T-P;switch(le=Ne>.5?$e/(2-T-P):$e/(T+P),T){case j:U=(te-I)/$e+(te<I?6:0);break;case te:U=(I-j)/$e+2;break;case I:U=(j-te)/$e+4;break}U/=6}return{h:U,s:le,l:Ne}}function g(j,te,I){var T,P,U;j=ze(j,360),te=ze(te,100),I=ze(I,100);function le(zt,Xt,er){return er<0&&(er+=1),er>1&&(er-=1),er<1/6?zt+(Xt-zt)*6*er:er<1/2?Xt:er<2/3?zt+(Xt-zt)*(2/3-er)*6:zt}if(te===0)T=P=U=I;else{var Ne=I<.5?I*(1+te):I+te-I*te,$e=2*I-Ne;T=le($e,Ne,j+1/3),P=le($e,Ne,j),U=le($e,Ne,j-1/3)}return{r:T*255,g:P*255,b:U*255}}function w(j,te,I){j=ze(j,255),te=ze(te,255),I=ze(I,255);var T=s(j,te,I),P=o(j,te,I),U,le,Ne=T,$e=T-P;if(le=T===0?0:$e/T,T==P)U=0;else{switch(T){case j:U=(te-I)/$e+(te<I?6:0);break;case te:U=(I-j)/$e+2;break;case I:U=(j-te)/$e+4;break}U/=6}return{h:U,s:le,v:Ne}}function E(j,te,I){j=ze(j,360)*6,te=ze(te,100),I=ze(I,100);var T=t.floor(j),P=j-T,U=I*(1-te),le=I*(1-P*te),Ne=I*(1-(1-P)*te),$e=T%6,zt=[I,le,U,U,Ne,I][$e],Xt=[Ne,I,I,le,U,U][$e],er=[U,U,Ne,I,I,le][$e];return{r:zt*255,g:Xt*255,b:er*255}}function y(j,te,I,T){var P=[Qe(a(j).toString(16)),Qe(a(te).toString(16)),Qe(a(I).toString(16))];return T&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0):P.join("")}function x(j,te,I,T,P){var U=[Qe(a(j).toString(16)),Qe(a(te).toString(16)),Qe(a(I).toString(16)),Qe(At(T))];return P&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)&&U[3].charAt(0)==U[3].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0)+U[3].charAt(0):U.join("")}function S(j,te,I,T){var P=[Qe(At(T)),Qe(a(j).toString(16)),Qe(a(te).toString(16)),Qe(a(I).toString(16))];return P.join("")}f.equals=function(j,te){return!j||!te?!1:f(j).toRgbString()==f(te).toRgbString()},f.random=function(){return f.fromRatio({r:u(),g:u(),b:u()})};function A(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s-=te/100,I.s=we(I.s),f(I)}function C(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s+=te/100,I.s=we(I.s),f(I)}function k(j){return f(j).desaturate(100)}function D(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l+=te/100,I.l=we(I.l),f(I)}function z(j,te){te=te===0?0:te||10;var I=f(j).toRgb();return I.r=s(0,o(255,I.r-a(255*-(te/100)))),I.g=s(0,o(255,I.g-a(255*-(te/100)))),I.b=s(0,o(255,I.b-a(255*-(te/100)))),f(I)}function M(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l-=te/100,I.l=we(I.l),f(I)}function L(j,te){var I=f(j).toHsl(),T=(I.h+te)%360;return I.h=T<0?360+T:T,f(I)}function X(j){var te=f(j).toHsl();return te.h=(te.h+180)%360,f(te)}function re(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+120)%360,s:te.s,l:te.l}),f({h:(I+240)%360,s:te.s,l:te.l})]}function ce(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+90)%360,s:te.s,l:te.l}),f({h:(I+180)%360,s:te.s,l:te.l}),f({h:(I+270)%360,s:te.s,l:te.l})]}function xe(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+72)%360,s:te.s,l:te.l}),f({h:(I+216)%360,s:te.s,l:te.l})]}function Se(j,te,I){te=te||6,I=I||30;var T=f(j).toHsl(),P=360/I,U=[f(j)];for(T.h=(T.h-(P*te>>1)+720)%360;--te;)T.h=(T.h+P)%360,U.push(f(T));return U}function Ze(j,te){te=te||6;for(var I=f(j).toHsv(),T=I.h,P=I.s,U=I.v,le=[],Ne=1/te;te--;)le.push(f({h:T,s:P,v:U})),U=(U+Ne)%1;return le}f.mix=function(j,te,I){I=I===0?0:I||50;var T=f(j).toRgb(),P=f(te).toRgb(),U=I/100,le={r:(P.r-T.r)*U+T.r,g:(P.g-T.g)*U+T.g,b:(P.b-T.b)*U+T.b,a:(P.a-T.a)*U+T.a};return f(le)},f.readability=function(j,te){var I=f(j),T=f(te);return(t.max(I.getLuminance(),T.getLuminance())+.05)/(t.min(I.getLuminance(),T.getLuminance())+.05)},f.isReadable=function(j,te,I){var T=f.readability(j,te),P,U;switch(U=!1,P=_e(I),P.level+P.size){case"AAsmall":case"AAAlarge":U=T>=4.5;break;case"AAlarge":U=T>=3;break;case"AAAsmall":U=T>=7;break}return U},f.mostReadable=function(j,te,I){var T=null,P=0,U,le,Ne,$e;I=I||{},le=I.includeFallbackColors,Ne=I.level,$e=I.size;for(var zt=0;zt<te.length;zt++)U=f.readability(j,te[zt]),U>P&&(P=U,T=f(te[zt]));return f.isReadable(j,T,{level:Ne,size:$e})||!le?T:(I.includeFallbackColors=!1,f.mostReadable(j,["#fff","#000"],I))};var Ge=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},he=f.hexNames=Fe(Ge);function Fe(j){var te={};for(var I in j)j.hasOwnProperty(I)&&(te[j[I]]=I);return te}function qe(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function ze(j,te){Ve(j)&&(j="100%");var I=We(j);return j=o(te,s(0,parseFloat(j))),I&&(j=parseInt(j*te,10)/100),t.abs(j-te)<1e-6?1:j%te/parseFloat(te)}function we(j){return o(1,s(0,j))}function ge(j){return parseInt(j,16)}function Ve(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function We(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Qe(j){return j.length==1?"0"+j:""+j}function rt(j){return j<=1&&(j=j*100+"%"),j}function At(j){return t.round(parseFloat(j)*255).toString(16)}function wt(j){return ge(j)/255}var Ee=function(){var j="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",I="(?:"+te+")|(?:"+j+")",T="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",P="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+P),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 Be(j){return!!Ee.CSS_UNIT.exec(j)}function ht(j){j=j.replace(r,"").replace(n,"").toLowerCase();var te=!1;if(Ge[j])j=Ge[j],te=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Ee.rgb.exec(j))?{r:I[1],g:I[2],b:I[3]}:(I=Ee.rgba.exec(j))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Ee.hsl.exec(j))?{h:I[1],s:I[2],l:I[3]}:(I=Ee.hsla.exec(j))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Ee.hsv.exec(j))?{h:I[1],s:I[2],v:I[3]}:(I=Ee.hsva.exec(j))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Ee.hex8.exec(j))?{r:ge(I[1]),g:ge(I[2]),b:ge(I[3]),a:wt(I[4]),format:te?"name":"hex8"}:(I=Ee.hex6.exec(j))?{r:ge(I[1]),g:ge(I[2]),b:ge(I[3]),format:te?"name":"hex"}:(I=Ee.hex4.exec(j))?{r:ge(I[1]+""+I[1]),g:ge(I[2]+""+I[2]),b:ge(I[3]+""+I[3]),a:wt(I[4]+""+I[4]),format:te?"name":"hex8"}:(I=Ee.hex3.exec(j))?{r:ge(I[1]+""+I[1]),g:ge(I[2]+""+I[2]),b:ge(I[3]+""+I[3]),format:te?"name":"hex"}:!1}function _e(j){var te,I;return j=j||{level:"AA",size:"small"},te=(j.level||"AA").toUpperCase(),I=(j.size||"small").toLowerCase(),te!=="AA"&&te!=="AAA"&&(te="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:te,size:I}}e.exports?e.exports=f:window.tinycolor=f})(Math)})(Qse);var Zse=Jse;function Jse(){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 ele=tle;function tle(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 rle=nle;function nle(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 k8=ile;function ile(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 ale=ole;function ole(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=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]=s}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 sle=lle;function lle(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],f=t[7],d=t[8],p=t[9],h=t[10],g=t[11],w=t[12],E=t[13],y=t[14],x=t[15],S=r*s-n*o,A=r*u-i*o,C=r*f-a*o,k=n*u-i*s,D=n*f-a*s,z=i*f-a*u,M=d*E-p*w,L=d*y-h*w,X=d*x-g*w,re=p*y-h*E,ce=p*x-g*E,xe=h*x-g*y,Se=S*xe-A*ce+C*re+k*X-D*L+z*M;return Se?(Se=1/Se,e[0]=(s*xe-u*ce+f*re)*Se,e[1]=(i*ce-n*xe-a*re)*Se,e[2]=(E*z-y*D+x*k)*Se,e[3]=(h*D-p*z-g*k)*Se,e[4]=(u*X-o*xe-f*L)*Se,e[5]=(r*xe-i*X+a*L)*Se,e[6]=(y*C-w*z-x*A)*Se,e[7]=(d*z-h*C+g*A)*Se,e[8]=(o*ce-s*X+f*M)*Se,e[9]=(n*X-r*ce-a*M)*Se,e[10]=(w*D-E*C+x*S)*Se,e[11]=(p*C-d*D-g*S)*Se,e[12]=(s*L-o*re-u*M)*Se,e[13]=(r*re-n*L+i*M)*Se,e[14]=(E*A-w*k-y*S)*Se,e[15]=(d*k-p*A+h*S)*Se,e):null}var ule=fle;function fle(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],f=t[7],d=t[8],p=t[9],h=t[10],g=t[11],w=t[12],E=t[13],y=t[14],x=t[15];return e[0]=s*(h*x-g*y)-p*(u*x-f*y)+E*(u*g-f*h),e[1]=-(n*(h*x-g*y)-p*(i*x-a*y)+E*(i*g-a*h)),e[2]=n*(u*x-f*y)-s*(i*x-a*y)+E*(i*f-a*u),e[3]=-(n*(u*g-f*h)-s*(i*g-a*h)+p*(i*f-a*u)),e[4]=-(o*(h*x-g*y)-d*(u*x-f*y)+w*(u*g-f*h)),e[5]=r*(h*x-g*y)-d*(i*x-a*y)+w*(i*g-a*h),e[6]=-(r*(u*x-f*y)-o*(i*x-a*y)+w*(i*f-a*u)),e[7]=r*(u*g-f*h)-o*(i*g-a*h)+d*(i*f-a*u),e[8]=o*(p*x-g*E)-d*(s*x-f*E)+w*(s*g-f*p),e[9]=-(r*(p*x-g*E)-d*(n*x-a*E)+w*(n*g-a*p)),e[10]=r*(s*x-f*E)-o*(n*x-a*E)+w*(n*f-a*s),e[11]=-(r*(s*g-f*p)-o*(n*g-a*p)+d*(n*f-a*s)),e[12]=-(o*(p*y-h*E)-d*(s*y-u*E)+w*(s*h-u*p)),e[13]=r*(p*y-h*E)-d*(n*y-i*E)+w*(n*h-i*p),e[14]=-(r*(s*y-u*E)-o*(n*y-i*E)+w*(n*u-i*s)),e[15]=r*(s*h-u*p)-o*(n*h-i*p)+d*(n*u-i*s),e}var cle=dle;function dle(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],f=e[8],d=e[9],p=e[10],h=e[11],g=e[12],w=e[13],E=e[14],y=e[15],x=t*o-r*a,S=t*s-n*a,A=t*u-i*a,C=r*s-n*o,k=r*u-i*o,D=n*u-i*s,z=f*w-d*g,M=f*E-p*g,L=f*y-h*g,X=d*E-p*w,re=d*y-h*w,ce=p*y-h*E;return x*ce-S*re+A*X+C*L-k*M+D*z}var ple=hle;function hle(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],f=t[6],d=t[7],p=t[8],h=t[9],g=t[10],w=t[11],E=t[12],y=t[13],x=t[14],S=t[15],A=r[0],C=r[1],k=r[2],D=r[3];return e[0]=A*n+C*s+k*p+D*E,e[1]=A*i+C*u+k*h+D*y,e[2]=A*a+C*f+k*g+D*x,e[3]=A*o+C*d+k*w+D*S,A=r[4],C=r[5],k=r[6],D=r[7],e[4]=A*n+C*s+k*p+D*E,e[5]=A*i+C*u+k*h+D*y,e[6]=A*a+C*f+k*g+D*x,e[7]=A*o+C*d+k*w+D*S,A=r[8],C=r[9],k=r[10],D=r[11],e[8]=A*n+C*s+k*p+D*E,e[9]=A*i+C*u+k*h+D*y,e[10]=A*a+C*f+k*g+D*x,e[11]=A*o+C*d+k*w+D*S,A=r[12],C=r[13],k=r[14],D=r[15],e[12]=A*n+C*s+k*p+D*E,e[13]=A*i+C*u+k*h+D*y,e[14]=A*a+C*f+k*g+D*x,e[15]=A*o+C*d+k*w+D*S,e}var vle=gle;function gle(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,f,d,p,h,g,w,E,y,x;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],s=t[1],u=t[2],f=t[3],d=t[4],p=t[5],h=t[6],g=t[7],w=t[8],E=t[9],y=t[10],x=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=f,e[4]=d,e[5]=p,e[6]=h,e[7]=g,e[8]=w,e[9]=E,e[10]=y,e[11]=x,e[12]=o*n+d*i+w*a+t[12],e[13]=s*n+p*i+E*a+t[13],e[14]=u*n+h*i+y*a+t[14],e[15]=f*n+g*i+x*a+t[15]),e}var mle=yle;function yle(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 ble=xle;function xle(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,f,d,p,h,g,w,E,y,x,S,A,C,k,D,z,M,L,X,re,ce,xe,Se,Ze;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),f=Math.cos(r),d=1-f,p=t[0],h=t[1],g=t[2],w=t[3],E=t[4],y=t[5],x=t[6],S=t[7],A=t[8],C=t[9],k=t[10],D=t[11],z=i*i*d+f,M=a*i*d+o*u,L=o*i*d-a*u,X=i*a*d-o*u,re=a*a*d+f,ce=o*a*d+i*u,xe=i*o*d+a*u,Se=a*o*d-i*u,Ze=o*o*d+f,e[0]=p*z+E*M+A*L,e[1]=h*z+y*M+C*L,e[2]=g*z+x*M+k*L,e[3]=w*z+S*M+D*L,e[4]=p*X+E*re+A*ce,e[5]=h*X+y*re+C*ce,e[6]=g*X+x*re+k*ce,e[7]=w*X+S*re+D*ce,e[8]=p*xe+E*Se+A*Ze,e[9]=h*xe+y*Se+C*Ze,e[10]=g*xe+x*Se+k*Ze,e[11]=w*xe+S*Se+D*Ze,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var wle=_le;function _le(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=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+f*n,e[5]=o*i+d*n,e[6]=s*i+p*n,e[7]=u*i+h*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=p*i-s*n,e[11]=h*i-u*n,e}var Sle=Ele;function Ele(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],f=t[8],d=t[9],p=t[10],h=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-f*n,e[1]=o*i-d*n,e[2]=s*i-p*n,e[3]=u*i-h*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=s*n+p*i,e[11]=u*n+h*i,e}var Ale=Cle;function Cle(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],f=t[4],d=t[5],p=t[6],h=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+f*n,e[1]=o*i+d*n,e[2]=s*i+p*n,e[3]=u*i+h*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=p*i-s*n,e[7]=h*i-u*n,e}var Tle=Rle;function Rle(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],f=Math.sqrt(o*o+s*s+u*u);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,s*=f,u*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var Ole=Ile;function Ile(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,f=a+a,d=n*s,p=n*u,h=n*f,g=i*u,w=i*f,E=a*f,y=o*s,x=o*u,S=o*f;return e[0]=1-(g+E),e[1]=p+S,e[2]=h-x,e[3]=0,e[4]=p-S,e[5]=1-(d+E),e[6]=w+y,e[7]=0,e[8]=h+x,e[9]=w-y,e[10]=1-(d+g),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var Ple=kle;function kle(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 Dle=Mle;function Mle(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 Nle=Fle;function Fle(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 Lle=Ble;function Ble(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 $le=zle;function zle(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 Ule=jle;function jle(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,f=r*o,d=n*o,p=n*s,h=i*o,g=i*s,w=i*u,E=a*o,y=a*s,x=a*u;return e[0]=1-p-w,e[1]=d+x,e[2]=h-y,e[3]=0,e[4]=d-x,e[5]=1-f-w,e[6]=g+E,e[7]=0,e[8]=h+y,e[9]=g-E,e[10]=1-f-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Wle=Gle;function Gle(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),f=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*f,e[15]=0,e}var qle=Hle;function Hle(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 Vle=Yle;function Yle(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),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),f=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*f*.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 Xle=Kle;function Kle(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),f=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*f,e[15]=1,e}var Qle=k8,Zle=Jle;function Jle(e,t,r,n){var i,a,o,s,u,f,d,p,h,g,w=t[0],E=t[1],y=t[2],x=n[0],S=n[1],A=n[2],C=r[0],k=r[1],D=r[2];return Math.abs(w-C)<1e-6&&Math.abs(E-k)<1e-6&&Math.abs(y-D)<1e-6?Qle(e):(d=w-C,p=E-k,h=y-D,g=1/Math.sqrt(d*d+p*p+h*h),d*=g,p*=g,h*=g,i=S*h-A*p,a=A*d-x*h,o=x*p-S*d,g=Math.sqrt(i*i+a*a+o*o),g?(g=1/g,i*=g,a*=g,o*=g):(i=0,a=0,o=0),s=p*o-h*a,u=h*i-d*o,f=d*a-p*i,g=Math.sqrt(s*s+u*u+f*f),g?(g=1/g,s*=g,u*=g,f*=g):(s=0,u=0,f=0),e[0]=i,e[1]=s,e[2]=d,e[3]=0,e[4]=a,e[5]=u,e[6]=p,e[7]=0,e[8]=o,e[9]=f,e[10]=h,e[11]=0,e[12]=-(i*w+a*E+o*y),e[13]=-(s*w+u*E+f*y),e[14]=-(d*w+p*E+h*y),e[15]=1,e)}var eue=tue;function tue(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 Dge={create:Zse,clone:ele,copy:rle,identity:k8,transpose:ale,invert:sle,adjoint:ule,determinant:cle,multiply:ple,translate:vle,scale:mle,rotate:ble,rotateX:wle,rotateY:Sle,rotateZ:Ale,fromRotation:Tle,fromRotationTranslation:Ole,fromScaling:Ple,fromTranslation:Dle,fromXRotation:Nle,fromYRotation:Lle,fromZRotation:$le,fromQuat:Ule,frustum:Wle,perspective:qle,perspectiveFromFieldOfView:Vle,ortho:Xle,lookAt:Zle,str:eue},VT={exports:{}};VT.exports=YT;VT.exports.isMobile=YT;VT.exports.default=YT;var rue=/(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,nue=/(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 YT(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?nue.test(t):rue.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var iue=!0,aue=iue,LE;typeof Cr.matchMedia=="function"?LE=!Cr.matchMedia("(hover: none)").matches:LE=aue;var Mge=LE,D8={exports:{}},bc=typeof Reflect=="object"?Reflect:null,Rk=bc&&typeof bc.apply=="function"?bc.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},G0;bc&&typeof bc.ownKeys=="function"?G0=bc.ownKeys:Object.getOwnPropertySymbols?G0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:G0=function(t){return Object.getOwnPropertyNames(t)};function oue(e){console&&console.warn&&console.warn(e)}var M8=Number.isNaN||function(t){return t!==t};function Br(){Br.init.call(this)}D8.exports=Br;D8.exports.once=fue;Br.EventEmitter=Br;Br.prototype._events=void 0;Br.prototype._eventsCount=0;Br.prototype._maxListeners=void 0;var Ok=10;function Rb(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Br,"defaultMaxListeners",{enumerable:!0,get:function(){return Ok},set:function(e){if(typeof e!="number"||e<0||M8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Ok=e}});Br.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};Br.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||M8(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 N8(e){return e._maxListeners===void 0?Br.defaultMaxListeners:e._maxListeners}Br.prototype.getMaxListeners=function(){return N8(this)};Br.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 s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")Rk(u,this,r);else for(var f=u.length,d=z8(u,f),n=0;n<f;++n)Rk(d[n],this,r);return!0};function F8(e,t,r,n){var i,a,o;if(Rb(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=N8(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,oue(s)}return e}Br.prototype.addListener=function(t,r){return F8(this,t,r,!1)};Br.prototype.on=Br.prototype.addListener;Br.prototype.prependListener=function(t,r){return F8(this,t,r,!0)};function sue(){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 L8(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=sue.bind(n);return i.listener=r,n.wrapFn=i,i}Br.prototype.once=function(t,r){return Rb(r),this.on(t,L8(this,t,r)),this};Br.prototype.prependOnceListener=function(t,r){return Rb(r),this.prependListener(t,L8(this,t,r)),this};Br.prototype.removeListener=function(t,r){var n,i,a,o,s;if(Rb(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){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():lue(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Br.prototype.off=Br.prototype.removeListener;Br.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 B8(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?uue(i):z8(i,i.length)}Br.prototype.listeners=function(t){return B8(this,t,!0)};Br.prototype.rawListeners=function(t){return B8(this,t,!1)};Br.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):$8.call(e,t)};Br.prototype.listenerCount=$8;function $8(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}Br.prototype.eventNames=function(){return this._eventsCount>0?G0(this._events):[]};function z8(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function lue(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function uue(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function fue(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))}U8(e,t,a,{once:!0}),t!=="error"&&cue(e,i,{once:!0})})}function cue(e,t,r){typeof e.on=="function"&&U8(e,"error",t,r)}function U8(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 j8=pue,J_={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},due=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function pue(e){var t=[];return e.replace(due,function(r,n,i){var a=n.toLowerCase();for(i=vue(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==J_[a])return i.unshift(n),t.push(i);if(i.length<J_[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,J_[a])))}}),t}var hue=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function vue(e){var t=e.match(hue);return t?t.map(Number):[]}var gue={left:0,top:0},Nge=mue;function mue(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=yue(t);return r[0]=n-a.left,r[1]=i-a.top,r}function yue(e){return e===window||e===document||e===document.body?gue:e.getBoundingClientRect()}function bue(){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 Fge=bue();function xue(){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 wue=xue;function _ue(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],s=i[0],u=i[1],f=r[0],d=r[1];return(s-a)*(d-o)-(u-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],f=s*o+a*u;if(f<e)return!1;var d=o*o+u*u;return!(f-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],s=n[0]-i[0],u=n[1]-i[1];return Math.abs(a*u-s*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],s=n[1]-r[1],u=a[0]-i[0],f=a[1]-i[1],d=o*f-s*u;if(Math.abs(d)<e)return!1;var p=r[0]-i[0],h=r[1]-i[1],g=(u*h-f*p)/d,w=(o*h-s*p)/d,E={alongA:0,alongB:0,pt:[r[0]+g*o,r[1]+g*s]};return g<=-e?E.alongA=-2:g<e?E.alongA=-1:g-1<=-e?E.alongA=0:g-1<e?E.alongA=1:E.alongA=2,w<=-e?E.alongB=-2:w<e?E.alongB=-1:w-1<=-e?E.alongB=0:w-1<e?E.alongB=1:E.alongB=2,E},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],s=n[n.length-1][1],u=!1,f=0;f<n.length;f++){var d=n[f][0],p=n[f][1];p-a>e!=s-a>e&&(o-d)*(a-p)/(s-p)+d-i>e&&(u=!u),o=d,s=p}return u}};return t}var Sue=_ue,Eue={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}},Aue=Eue,Up=Aue;function Cue(e,t,r){function n(w,E){return{id:r?r.segmentId():-1,start:w,end:E,myFill:{above:null,below:null},otherFill:null}}function i(w,E,y){return{id:r?r.segmentId():-1,start:w,end:E,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var a=Up.create();function o(w,E,y,x,S,A){var C=t.pointsCompare(E,S);return C!==0?C:t.pointsSame(y,A)?0:w!==x?w?1:-1:t.pointAboveOrOnLine(y,x?S:A,x?A:S)?1:-1}function s(w,E){a.insertBefore(w,function(y){var x=o(w.isStart,w.pt,E,y.isStart,y.pt,y.other.pt);return x<0})}function u(w,E){var y=Up.node({isStart:!0,pt:w.start,seg:w,primary:E,other:null,status:null});return s(y,w.end),y}function f(w,E,y){var x=Up.node({isStart:!1,pt:E.end,seg:E,primary:y,other:w,status:null});w.other=x,s(x,w.pt)}function d(w,E){var y=u(w,E);return f(y,w,E),y}function p(w,E){r&&r.segmentChop(w.seg,E),w.other.remove(),w.seg.end=E,w.other.pt=E,s(w.other,w.pt)}function h(w,E){var y=i(E,w.seg.end,w.seg);return p(w,E),d(y,w.primary)}function g(w,E){var y=Up.create();function x(Se,Ze){var Ge=Se.seg.start,he=Se.seg.end,Fe=Ze.seg.start,qe=Ze.seg.end;return t.pointsCollinear(Ge,Fe,qe)?t.pointsCollinear(he,Fe,qe)||t.pointAboveOrOnLine(he,Fe,qe)?1:-1:t.pointAboveOrOnLine(Ge,Fe,qe)?1:-1}function S(Se){return y.findTransition(function(Ze){var Ge=x(Se,Ze.ev);return Ge>0})}function A(Se,Ze){var Ge=Se.seg,he=Ze.seg,Fe=Ge.start,qe=Ge.end,ze=he.start,we=he.end;r&&r.checkIntersection(Ge,he);var ge=t.linesIntersect(Fe,qe,ze,we);if(ge===!1){if(!t.pointsCollinear(Fe,qe,ze)||t.pointsSame(Fe,we)||t.pointsSame(qe,ze))return!1;var Ve=t.pointsSame(Fe,ze),We=t.pointsSame(qe,we);if(Ve&&We)return Ze;var Qe=!Ve&&t.pointBetween(Fe,ze,we),rt=!We&&t.pointBetween(qe,ze,we);if(Ve)return rt?h(Ze,qe):h(Se,we),Ze;Qe&&(We||(rt?h(Ze,qe):h(Se,we)),h(Ze,Fe))}else ge.alongA===0&&(ge.alongB===-1?h(Se,ze):ge.alongB===0?h(Se,ge.pt):ge.alongB===1&&h(Se,we)),ge.alongB===0&&(ge.alongA===-1?h(Ze,Fe):ge.alongA===0?h(Ze,ge.pt):ge.alongA===1&&h(Ze,qe));return!1}for(var C=[];!a.isEmpty();){var k=a.getHead();if(r&&r.vert(k.pt[0]),k.isStart){let Se=function(){if(z){var Ze=A(k,z);if(Ze)return Ze}return M?A(k,M):!1};r&&r.segmentNew(k.seg,k.primary);var D=S(k),z=D.before?D.before.ev:null,M=D.after?D.after.ev:null;r&&r.tempStatus(k.seg,z?z.seg:!1,M?M.seg:!1);var L=Se();if(L){if(e){var X;k.seg.myFill.below===null?X=!0:X=k.seg.myFill.above!==k.seg.myFill.below,X&&(L.seg.myFill.above=!L.seg.myFill.above)}else L.seg.otherFill=k.seg.myFill;r&&r.segmentUpdate(L.seg),k.other.remove(),k.remove()}if(a.getHead()!==k){r&&r.rewind(k.seg);continue}if(e){var X;k.seg.myFill.below===null?X=!0:X=k.seg.myFill.above!==k.seg.myFill.below,M?k.seg.myFill.below=M.seg.myFill.above:k.seg.myFill.below=w,X?k.seg.myFill.above=!k.seg.myFill.below:k.seg.myFill.above=k.seg.myFill.below}else if(k.seg.otherFill===null){var re;M?k.primary===M.primary?re=M.seg.otherFill.above:re=M.seg.myFill.above:re=k.primary?E:w,k.seg.otherFill={above:re,below:re}}r&&r.status(k.seg,z?z.seg:!1,M?M.seg:!1),k.other.status=D.insert(Up.node({ev:k}))}else{var ce=k.status;if(ce===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(ce.prev)&&y.exists(ce.next)&&A(ce.prev.ev,ce.next.ev),r&&r.statusRemove(ce.ev.seg),ce.remove(),!k.primary){var xe=k.seg.myFill;k.seg.myFill=k.seg.otherFill,k.seg.otherFill=xe}C.push(k.seg)}a.getHead().remove()}return r&&r.done(),C}return e?{addRegion:function(w){for(var E,y=w[w.length-1],x=0;x<w.length;x++){E=y,y=w[x];var S=t.pointsCompare(E,y);S!==0&&d(n(S<0?E:y,S<0?y:E),!0)}},calculate:function(w){return g(w,!1)}}:{calculate:function(w,E,y,x){return w.forEach(function(S){d(i(S.start,S.end,S),!0)}),y.forEach(function(S){d(i(S.start,S.end,S),!1)}),g(E,x)}}}var Tue=Cue;function Rue(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=u;function p(ce,xe,Se){return d.index=ce,d.matches_head=xe,d.matches_pt1=Se,d===u?(d=f,!1):(d=null,!0)}for(var h=0;h<n.length;h++){var g=n[h],w=g[0];g[1];var E=g[g.length-1];if(g[g.length-2],t.pointsSame(w,o)){if(p(h,!0,!0))break}else if(t.pointsSame(w,s)){if(p(h,!0,!1))break}else if(t.pointsSame(E,o)){if(p(h,!1,!0))break}else if(t.pointsSame(E,s)&&p(h,!1,!1))break}if(d===u){n.push([o,s]),r&&r.chainNew(o,s);return}if(d===f){r&&r.chainMatch(u.index);var y=u.index,x=u.matches_pt1?s:o,S=u.matches_head,g=n[y],A=S?g[0]:g[g.length-1],C=S?g[1]:g[g.length-2],k=S?g[g.length-1]:g[0],D=S?g[g.length-2]:g[1];if(t.pointsCollinear(C,A,x)&&(S?(r&&r.chainRemoveHead(u.index,x),g.shift()):(r&&r.chainRemoveTail(u.index,x),g.pop()),A=C),t.pointsSame(k,x)){n.splice(y,1),t.pointsCollinear(D,k,A)&&(S?(r&&r.chainRemoveTail(u.index,A),g.pop()):(r&&r.chainRemoveHead(u.index,A),g.shift())),r&&r.chainClose(u.index),i.push(g);return}S?(r&&r.chainAddHead(u.index,x),g.unshift(x)):(r&&r.chainAddTail(u.index,x),g.push(x));return}function z(ce){r&&r.chainReverse(ce),n[ce].reverse()}function M(ce,xe){var Se=n[ce],Ze=n[xe],Ge=Se[Se.length-1],he=Se[Se.length-2],Fe=Ze[0],qe=Ze[1];t.pointsCollinear(he,Ge,Fe)&&(r&&r.chainRemoveTail(ce,Ge),Se.pop(),Ge=he),t.pointsCollinear(Ge,Fe,qe)&&(r&&r.chainRemoveHead(xe,Fe),Ze.shift()),r&&r.chainJoin(ce,xe),n[ce]=Se.concat(Ze),n.splice(xe,1)}var L=u.index,X=f.index;r&&r.chainConnect(L,X);var re=n[L].length<n[X].length;u.matches_head?f.matches_head?re?(z(L),M(L,X)):(z(X),M(X,L)):M(X,L):f.matches_head?M(L,X):re?(z(L),M(X,L)):(z(X),M(L,X))}),i}var Oue=Rue;function jp(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 Iue={union:function(e,t){return jp(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return jp(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return jp(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return jp(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return jp(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},Pue=Iue,kue={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var d=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[d]})}for(var s=o(a[0]),u=1;u<a.length;u++)s=e.selectDifference(e.combine(s,o(a[u])));return s}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(g,w){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],w)}function i(g){return{region:g,children:[]}}var a=i(null);function o(g,w){for(var E=0;E<g.children.length;E++){var y=g.children[E];if(n(w,y.region)){o(y,w);return}}for(var x=i(w),E=0;E<g.children.length;E++){var y=g.children[E];n(y.region,w)&&(x.children.push(y),g.children.splice(E,1),E--)}g.children.push(x)}for(var s=0;s<r.regions.length;s++){var u=r.regions[s];u.length<3||o(a,u)}function f(g,w){for(var E=0,y=g[g.length-1][0],x=g[g.length-1][1],S=[],A=0;A<g.length;A++){var C=g[A][0],k=g[A][1];S.push([C,k]),E+=k*y-C*x,y=C,x=k}var D=E<0;return D!==w&&S.reverse(),S.push([S[0][0],S[0][1]]),S}var d=[];function p(g){var w=[f(g.region,!1)];d.push(w);for(var E=0;E<g.children.length;E++)w.push(h(g.children[E]))}function h(g){for(var w=0;w<g.children.length;w++)p(g.children[w]);return f(g.region,!0)}for(var s=0;s<a.children.length;s++)p(a.children[s]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},Due=kue;/*
922
+ * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
923
+ * @license MIT
924
+ * @preserve Project Home: https://github.com/voidqk/polybooljs
925
+ */var Mue=wue,Nue=Sue,Ik=Tue,Fue=Oue,Wp=Pue,Pk=Due,Yi=!1,Gp=Nue(),Ei;Ei={buildLog:function(e){return e===!0?Yi=Mue():e===!1&&(Yi=!1),Yi===!1?!1:Yi.list},epsilon:function(e){return Gp.epsilon(e)},segments:function(e){var t=Ik(!0,Gp,Yi);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=Ik(!1,Gp,Yi);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Wp.union(e.combined,Yi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Wp.intersect(e.combined,Yi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Wp.difference(e.combined,Yi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Wp.differenceRev(e.combined,Yi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Wp.xor(e.combined,Yi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Fue(e.segments,Gp,Yi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return Pk.toPolygon(Ei,e)},polygonToGeoJSON:function(e){return Pk.fromPolygon(Ei,Gp,e)},union:function(e,t){return qp(e,t,Ei.selectUnion)},intersect:function(e,t){return qp(e,t,Ei.selectIntersect)},difference:function(e,t){return qp(e,t,Ei.selectDifference)},differenceRev:function(e,t){return qp(e,t,Ei.selectDifferenceRev)},xor:function(e,t){return qp(e,t,Ei.selectXor)}};function qp(e,t,r){var n=Ei.segments(e),i=Ei.segments(t),a=Ei.combine(n,i),o=r(a);return Ei.polygon(o)}typeof window=="object"&&(window.PolyBool=Ei);var Lge=Ei,Bge=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,f=0,d=u-1;f<u;d=f++){var p=r[f+n][0],h=r[f+n][1],g=r[d+n][0],w=r[d+n][1],E=h>o!=w>o&&a<(g-p)*(o-h)/(w-h)+p;E&&(s=!s)}return s};const $ge=Pu(koe);var W8={exports:{}};function Lue(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function Bue(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function $ue(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function zue(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function Uue(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function Hp(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 jue={ge:function(e,t,r,n,i){return Hp(e,t,r,n,i,Lue)},gt:function(e,t,r,n,i){return Hp(e,t,r,n,i,Bue)},lt:function(e,t,r,n,i){return Hp(e,t,r,n,i,$ue)},le:function(e,t,r,n,i){return Hp(e,t,r,n,i,zue)},eq:function(e,t,r,n,i){return Hp(e,t,r,n,i,Uue)}},ng=Wue;function Wue(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var bl=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=kk(r)),Array.isArray(r)){var s={};for(o=0;o<r.length;o++)s[r[o]]=!0;r=s}for(a in r)r[a]=kk(r[a]);var u={};for(a in r){var f=r[a];if(Array.isArray(f))for(o=0;o<f.length;o++){var d=f[o];if(n&&(u[d]=!0),d in t){if(i[a]=t[d],n)for(var p=o;p<f.length;p++)u[f[p]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(u[a]=!0))}if(n)for(a in t)u[a]||(i[a]=t[a]);return i},eS={};function kk(e){return eS[e]?eS[e]:(typeof e=="string"&&(e=eS[e]=e.split(/\s*,\s*|\s+/)),e)}var Gue=bl,Ob=que;function que(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=Gue(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 ig=Hue;function Hue(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,s=e.length;o<s;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var G8=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},XT=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}},Dk=XT,ag=Vue;function Vue(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,s,u;(!t||typeof t=="string")&&(t=new(Dk(t||"float32"))(i+r));var f=t.length-r;if(i!==f)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+f);for(a=0,s=r;a<e.length;a++)for(o=0;o<n;o++)t[s++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=Dk(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,s=r,u=t.length;s<u;s++,a++)t[s]=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 Yue=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},Xue=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const Mk=jue,Nk=ng,Kue=Ob,Que=ig,Fk=bl,tS=G8,Zue=ag,Jue=Yue,efe=XT,Lk=Xue,tfe=1073741824;var rfe=function(t,r){r||(r={}),t=Zue(t,"float64"),r=Fk(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=tS(r.maxDepth,255),i=tS(r.bounds,Que(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=Bk(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(efe(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let x=0;x<o;++x)s[x]=x;let u=[],f=[],d=[],p=[];g(0,0,1,s,0,1);let h=0;for(let x=0;x<u.length;x++){let S=u[x];if(s.set)s.set(S,h);else for(let C=0,k=S.length;C<k;C++)s[C+h]=S[C];let A=h+u[x].length;p[x]=[h,A],h=A}return s.range=w,s;function g(x,S,A,C,k,D){if(!C.length)return null;let z=u[k]||(u[k]=[]),M=d[k]||(d[k]=[]),L=f[k]||(f[k]=[]),X=z.length;if(k++,k>n||D>tfe){for(let Fe=0;Fe<C.length;Fe++)z.push(C[Fe]),M.push(D),L.push(null,null,null,null);return X}if(z.push(C[0]),M.push(D),C.length<=1)return L.push(null,null,null,null),X;let re=A*.5,ce=x+re,xe=S+re,Se=[],Ze=[],Ge=[],he=[];for(let Fe=1,qe=C.length;Fe<qe;Fe++){let ze=C[Fe],we=a[ze*2],ge=a[ze*2+1];we<ce?ge<xe?Se.push(ze):Ze.push(ze):ge<xe?Ge.push(ze):he.push(ze)}return D<<=2,L.push(g(x,S,re,Se,k,D),g(x,xe,re,Ze,k,D+1),g(ce,S,re,Ge,k,D+2),g(ce,xe,re,he,k,D+3)),X}function w(...x){let S;if(Jue(x[x.length-1])){let Ge=x.pop();!x.length&&(Ge.x!=null||Ge.l!=null||Ge.left!=null)&&(x=[Ge],S={}),S=Fk(Ge,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else S={};x.length||(x=i);let A=Kue(...x),[C,k,D,z]=[Math.min(A.x,A.x+A.width),Math.min(A.y,A.y+A.height),Math.max(A.x,A.x+A.width),Math.max(A.y,A.y+A.height)],[M,L,X,re]=Bk([C,k,D,z],i),ce=tS(S.level,u.length);if(S.d!=null){let Ge;typeof S.d=="number"?Ge=[S.d,S.d]:S.d.length&&(Ge=S.d),ce=Math.min(Math.max(Math.ceil(-Lk(Math.abs(Ge[0])/(i[2]-i[0]))),Math.ceil(-Lk(Math.abs(Ge[1])/(i[3]-i[1])))),ce)}if(ce=Math.min(ce,u.length),S.lod)return E(M,L,X,re,ce);let xe=[];Se(0,0,1,0,0,1);function Se(Ge,he,Fe,qe,ze,we){if(ze===null||we===null)return;let ge=Ge+Fe,Ve=he+Fe;if(M>ge||L>Ve||X<Ge||re<he||qe>=ce||ze===we)return;let We=u[qe];we===void 0&&(we=We.length);for(let j=ze;j<we;j++){let te=We[j],I=t[te*2],T=t[te*2+1];I>=C&&I<=D&&T>=k&&T<=z&&xe.push(te)}let Qe=f[qe],rt=Qe[ze*4+0],At=Qe[ze*4+1],wt=Qe[ze*4+2],Ee=Qe[ze*4+3],Be=Ze(Qe,ze+1),ht=Fe*.5,_e=qe+1;Se(Ge,he,ht,_e,rt,At||wt||Ee||Be),Se(Ge,he+ht,ht,_e,At,wt||Ee||Be),Se(Ge+ht,he,ht,_e,wt,Ee||Be),Se(Ge+ht,he+ht,ht,_e,Ee,Be)}function Ze(Ge,he){let Fe=null,qe=0;for(;Fe===null;)if(Fe=Ge[he*4+qe],qe++,qe>Ge.length)return null;return Fe}return xe}function E(x,S,A,C,k){let D=[];for(let z=0;z<k;z++){let M=d[z],L=p[z][0],X=y(x,S,z),re=y(A,C,z),ce=Mk.ge(M,X),xe=Mk.gt(M,re,ce,M.length-1);D[z]=[ce+L,xe+L]}return D}function y(x,S,A){let C=1,k=.5,D=.5,z=.5;for(let M=0;M<A;M++)C<<=2,C+=x<k?S<D?0:1:S<D?2:3,z*=.5,k+=x<k?-z:z,D+=S<D?-z:z;return C}};function Bk(e,t){let[r,n,i,a]=t,o=1/(i-r),s=1/(a-n),u=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)u[2*f]=Nk((e[2*f]-r)*o,0,1),u[2*f+1]=Nk((e[2*f+1]-n)*s,0,1);return u}(function(e){e.exports=rfe})(W8);var q8=nfe;function nfe(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,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 u=1;u<a.length;)a[u++]+=n,a[u++]+=i}switch(s){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 ife=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&s.return&&s.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")}}(),Mh=Math.PI*2,rS=function(t,r,n,i,a,o,s){var u=t.x,f=t.y;u*=r,f*=n;var d=i*u-a*f,p=a*u+i*f;return{x:d+o,y:p+s}},afe=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),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},$k=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)},ofe=function(t,r,n,i,a,o,s,u,f,d,p,h){var g=Math.pow(a,2),w=Math.pow(o,2),E=Math.pow(p,2),y=Math.pow(h,2),x=g*w-g*y-w*E;x<0&&(x=0),x/=g*y+w*E,x=Math.sqrt(x)*(s===u?-1:1);var S=x*a/o*h,A=x*-o/a*p,C=d*S-f*A+(t+n)/2,k=f*S+d*A+(r+i)/2,D=(p-S)/a,z=(h-A)/o,M=(-p-S)/a,L=(-h-A)/o,X=$k(1,0,D,z),re=$k(D,z,M,L);return u===0&&re>0&&(re-=Mh),u===1&&re<0&&(re+=Mh),[C,k,X,re]},sfe=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,f=u===void 0?0:u,d=t.largeArcFlag,p=d===void 0?0:d,h=t.sweepFlag,g=h===void 0?0:h,w=[];if(o===0||s===0)return[];var E=Math.sin(f*Mh/360),y=Math.cos(f*Mh/360),x=y*(r-i)/2+E*(n-a)/2,S=-E*(r-i)/2+y*(n-a)/2;if(x===0&&S===0)return[];o=Math.abs(o),s=Math.abs(s);var A=Math.pow(x,2)/Math.pow(o,2)+Math.pow(S,2)/Math.pow(s,2);A>1&&(o*=Math.sqrt(A),s*=Math.sqrt(A));var C=ofe(r,n,i,a,o,s,p,g,E,y,x,S),k=ife(C,4),D=k[0],z=k[1],M=k[2],L=k[3],X=Math.abs(L)/(Mh/4);Math.abs(1-X)<1e-7&&(X=1);var re=Math.max(Math.ceil(X),1);L/=re;for(var ce=0;ce<re;ce++)w.push(afe(M,L)),M+=L;return w.map(function(xe){var Se=rS(xe[0],o,s,y,E,D,z),Ze=Se.x,Ge=Se.y,he=rS(xe[1],o,s,y,E,D,z),Fe=he.x,qe=he.y,ze=rS(xe[2],o,s,y,E,D,z),we=ze.x,ge=ze.y;return{x1:Ze,y1:Ge,x2:Fe,y2:qe,x:we,y:ge}})};const lfe=Object.freeze(Object.defineProperty({__proto__:null,default:sfe},Symbol.toStringTag,{value:"Module"})),ufe=Pu(lfe);var ffe=dfe,cfe=ufe;function dfe(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,f=0,d=0,p=0,h=e.length;p<h;p++){var g=e[p],w=g[0];switch(w){case"M":a=g[1],o=g[2];break;case"A":var E=cfe({px:f,py:d,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!E.length)continue;for(var y=0,x;y<E.length;y++)x=E[y],g=["C",x.x1,x.y1,x.x2,x.y2,x.x,x.y],y<E.length-1&&r.push(g);break;case"S":var S=f,A=d;(t=="C"||t=="S")&&(S+=S-n,A+=A-i),g=["C",S,A,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(s=f*2-s,u=d*2-u):(s=f,u=d),g=zk(f,d,s,u,g[1],g[2]);break;case"Q":s=g[1],u=g[2],g=zk(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=s0(f,d,g[1],g[2]);break;case"H":g=s0(f,d,g[1],d);break;case"V":g=s0(f,d,f,g[1]);break;case"Z":g=s0(f,d,a,o);break}t=w,f=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=f,i=d),r.push(g)}return r}function s0(e,t,r,n){return["C",e,t,r,n,r,n]}function zk(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 H8=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))},pfe=j8,hfe=q8,vfe=ffe,gfe=H8,mfe=yfe;function yfe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!gfe(e))throw Error("String is not an SVG path.");e=pfe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=hfe(e),e=vfe(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 eu=Math.PI,Uk=Y8(120),bfe=xfe;function xfe(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,f=0,d=0,p=0,h=e.length;p<h;p++){var g=e[p],w=g[0];switch(w){case"M":a=g[1],o=g[2];break;case"A":g=V8(f,d,g[1],g[2],Y8(g[3]),g[4],g[5],g[6],g[7]),g.unshift("C"),g.length>7&&(r.push(g.splice(0,7)),g.unshift("C"));break;case"S":var E=f,y=d;(t=="C"||t=="S")&&(E+=E-n,y+=y-i),g=["C",E,y,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(s=f*2-s,u=d*2-u):(s=f,u=d),g=jk(f,d,s,u,g[1],g[2]);break;case"Q":s=g[1],u=g[2],g=jk(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=l0(f,d,g[1],g[2]);break;case"H":g=l0(f,d,g[1],d);break;case"V":g=l0(f,d,f,g[1]);break;case"Z":g=l0(f,d,a,o);break}t=w,f=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=f,i=d),r.push(g)}return r}function l0(e,t,r,n){return["C",e,t,r,n,r,n]}function jk(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 V8(e,t,r,n,i,a,o,s,u,f){if(f)A=f[0],C=f[1],x=f[2],S=f[3];else{var d=nS(e,t,-i);e=d.x,t=d.y,d=nS(s,u,-i),s=d.x,u=d.y;var p=(e-s)/2,h=(t-u)/2,g=p*p/(r*r)+h*h/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var w=r*r,E=n*n,y=(a==o?-1:1)*Math.sqrt(Math.abs((w*E-w*h*h-E*p*p)/(w*h*h+E*p*p)));y==1/0&&(y=1);var x=y*r*h/n+(e+s)/2,S=y*-n*p/r+(t+u)/2,A=Math.asin(((t-S)/n).toFixed(9)),C=Math.asin(((u-S)/n).toFixed(9));A=e<x?eu-A:A,C=s<x?eu-C:C,A<0&&(A=eu*2+A),C<0&&(C=eu*2+C),o&&A>C&&(A=A-eu*2),!o&&C>A&&(C=C-eu*2)}if(Math.abs(C-A)>Uk){var k=C,D=s,z=u;C=A+Uk*(o&&C>A?1:-1),s=x+r*Math.cos(C),u=S+n*Math.sin(C);var M=V8(s,u,r,n,i,0,o,D,z,[C,k,x,S])}var L=Math.tan((C-A)/4),X=4/3*r*L,re=4/3*n*L,ce=[2*e-(e+X*Math.sin(A)),2*t-(t-re*Math.cos(A)),s+X*Math.sin(C),u-re*Math.cos(C),s,u];if(f)return ce;M&&(ce=ce.concat(M));for(var xe=0;xe<ce.length;){var Se=nS(ce[xe],ce[xe+1],i);ce[xe++]=Se.x,ce[xe++]=Se.y}return ce}function nS(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function Y8(e){return e*(eu/180)}var wfe=q8,_fe=bfe,Sfe={M:"moveTo",C:"bezierCurveTo"},Efe=function(e,t){e.beginPath(),_fe(wfe(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Sfe[n]].apply(e,i)}),e.closePath()},Afe=ng,Cfe=Tfe,Nh=1e20;function Tfe(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,s,u,f,d,p,h,g,w,E;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,u=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,p=h.getContext("2d"),a=h.width,o=h.height,g=p.getImageData(0,0,a,o),u=g.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,p=e,a=h.width,o=h.height,g=p.getImageData(0,0,a,o),u=g.data,d=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,o=e.height,u=g.data,d=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(f=u,u=Array(a*o),w=0,E=f.length;w<E;w++)u[w]=f[w*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var y=Array(a*o),x=Array(a*o),S=Array(s),A=Array(s),C=Array(s+1),k=Array(s);for(w=0,E=a*o;w<E;w++){var D=u[w];y[w]=D===1?0:D===0?Nh:Math.pow(Math.max(0,.5-D),2),x[w]=D===1?Nh:D===0?0:Math.pow(Math.max(0,D-.5),2)}Wk(y,a,o,S,A,k,C),Wk(x,a,o,S,A,k,C);var z=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(w=0,E=a*o;w<E;w++)z[w]=Afe(1-((y[w]-x[w])/n+r),0,1);return z}function Wk(e,t,r,n,i,a,o){for(var s=0;s<t;s++){for(var u=0;u<r;u++)n[u]=e[u*t+s];for(Gk(n,i,a,o,r),u=0;u<r;u++)e[u*t+s]=i[u]}for(u=0;u<r;u++){for(s=0;s<t;s++)n[s]=e[u*t+s];for(Gk(n,i,a,o,t),s=0;s<t;s++)e[u*t+s]=Math.sqrt(i[s])}}function Gk(e,t,r,n,i){r[0]=0,n[0]=-Nh,n[1]=+Nh;for(var a=1,o=0;a<i;a++){for(var s=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s<=n[o];)o--,s=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=s,n[o+1]=+Nh}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 Rfe=mfe,Ofe=j8,Ife=Efe,Pfe=H8,kfe=Cfe,BE=document.createElement("canvas"),ci=BE.getContext("2d"),zge=Dfe;function Dfe(e,t){if(!Pfe(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=BE.width=t.w||t.width||200,n=BE.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Rfe(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(ci.fillStyle="black",ci.fillRect(0,0,r,n),ci.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?ci.strokeStyle="white":ci.strokeStyle="black",ci.lineWidth=Math.abs(a)),ci.translate(r*.5,n*.5),ci.scale(u,u),Mfe()){var f=new Path2D(e);ci.fill(f),a&&ci.stroke(f)}else{var d=Ofe(e);Ife(ci,d),ci.fill(),a&&ci.stroke()}ci.setTransform(1,0,0,1,0,0);var p=kfe(ci,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return p}var u0;function Mfe(){if(u0!=null)return u0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return u0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return u0=r&&r.data&&r.data[3]===255}var Nfe={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]},Ffe=Object.prototype.toString,X8=function(e){var t;return Ffe.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},qk=Nfe,Lfe=X8,Xl=G8,Bfe=$fe,Hk={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function $fe(e){var t,r=[],n=1,i;if(typeof e=="string")if(qk[e])r=qk[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,s=o<=4;n=1,s?(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 u=t[1],f=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,w){if(/%$/.test(g))return w===o?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[w]==="h"){if(/deg$/.test(g))return parseFloat(g);if(Hk[g]!==void 0)return Hk[g]}return parseFloat(g)}),u===a&&r.push(1),n=f||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(p){return parseFloat(p)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(Lfe(e)){var d=Xl(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Xl(e.g,e.green,e.G),Xl(e.b,e.blue,e.B)]):(i="hsl",r=[Xl(e.h,e.hue,e.H),Xl(e.s,e.saturation,e.S),Xl(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Xl(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Cr.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 zfe={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,s,u;if(r===0)return u=n*255,[u,u,u];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,s=[0,0,0];for(var f=0;f<3;f++)o=t+1/3*-(f-1),o<0?o++:o>1&&o--,6*o<1?u=i+(a-i)*6*o:2*o<1?u=a:3*o<2?u=i+(a-i)*(2/3-o)*6:u=i,s[f]=u*255;return s}},Ufe=Bfe,jfe=zfe,f0=ng,Wfe=function(t){var r,n=Ufe(t);return n.space?(r=Array(3),r[0]=f0(n.values[0],0,255),r[1]=f0(n.values[1],0,255),r[2]=f0(n.values[2],0,255),n.space[0]==="h"&&(r=jfe.rgb(r)),r.push(f0(n.alpha,0,1)),r):[]},Gfe=Wfe,c0=ng,qfe=XT,Ib=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=qfe(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Gfe(t),t[0]/=255,t[1]/=255,t[2]/=255),Hfe(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]=c0(Math.floor(t[0]*255),0,255),i[1]=c0(Math.floor(t[1]*255),0,255),i[2]=c0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:c0(Math.floor(t[3]*255),0,255)),i)};function Hfe(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 Pb={exports:{}},d0=ng;Pb.exports=K8;Pb.exports.to=K8;Pb.exports.from=Vfe;function K8(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=d0(r,0,255)&255,n=d0(n,0,255)&255,i=d0(i,0,255)&255,a=d0(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function Vfe(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 Q8=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("")},Z8=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 s in o)if(!(r[s]!==void 0&&!Array.isArray(r[s])&&t[s]===r[s])&&s in r){var u;if(o[s]===!0)u=r[s];else{if(o[s]===!1)continue;if(typeof o[s]=="function"&&(u=o[s](r[s],t,r),u===void 0))continue}t[s]=u}}return t},Yfe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),ul={exports:{}};ul.exports=Fh;ul.exports.float32=ul.exports.float=Fh;ul.exports.fract32=ul.exports.fract=Xfe;var Vk=new Float32Array(1);function Xfe(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=Fh(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return Fh(e-Fh(e))}function Fh(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(Vk[0]=e,Vk[0])}function Kfe(e,t){return Jfe(e)||tce(e,t)||J8(e,t)||nce()}function Qfe(e){return Zfe(e)||ece(e)||J8(e)||rce()}function Zfe(e){if(Array.isArray(e))return $E(e)}function Jfe(e){if(Array.isArray(e))return e}function ece(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tce(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,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function J8(e,t){if(!!e){if(typeof e=="string")return $E(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 $E(e,t)}}function $E(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 rce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
926
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
927
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ice=Ib,ace=ig,oce=Pb.exports,sce=W8.exports,mu=ku,p0=Q8,lce=bl,uce=Z8,fce=ag,Yk=Yfe,h0=ul.exports,cce=Ob,dce=Ln;function Ln(e,t){var r=this;if(!(this instanceof Ln))return new Ln(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={},s=[],u=[null],f=[null],d=255,p=100;this.tooManyColors=Yk,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),mu(this,{regl:e,gl:n,groups:s,markerCache:f,markerTextures:u,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:p,canvas:n.canvas}),this.update(t);var h={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(y,x){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(y,x){return x.xAttr||{buffer:x.positionBuffer,stride:8,offset:0}},y:function(y,x){return x.yAttr||{buffer:x.positionBuffer,stride:8,offset:4}},xFract:function(y,x){return x.xAttr?{constant:[0,0]}:{buffer:x.positionFractBuffer,stride:8,offset:0}},yFract:function(y,x){return x.yAttr?{constant:[0,0]}:{buffer:x.positionFractBuffer,stride:8,offset:4}},size:function(y,x){return x.size.length?{buffer:x.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(x.size*255/r.maxSize)]}},borderSize:function(y,x){return x.borderSize.length?{buffer:x.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(x.borderSize*255/r.maxSize)]}},colorId:function(y,x){return x.color.length?{buffer:x.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(x.color*4,x.color*4+4):[x.color]}},borderColorId:function(y,x){return x.borderColor.length?{buffer:x.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(x.borderColor*4,x.borderColor*4+4):[x.borderColor]}},isActive:function(y,x){return x.activation===!0?{constant:[1]}:x.activation?x.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"},g=mu({},h);g.frag=p0([`precision highp float;
928
+ #define GLSLIFY 1
929
+
930
+ uniform float opacity;
931
+ uniform sampler2D markerTexture;
932
+
933
+ varying vec4 fragColor, fragBorderColor;
934
+ varying float fragWidth, fragBorderColorLevel, fragColorLevel;
935
+
936
+ float smoothStep(float x, float y) {
937
+ return 1.0 / (1.0 + exp(50.0*(x - y)));
938
+ }
939
+
940
+ void main() {
941
+ float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
942
+
943
+ // max-distance alpha
944
+ if (dist < 0.003) discard;
945
+
946
+ // null-border case
947
+ if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
948
+ float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
949
+ gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
950
+ }
951
+ else {
952
+ float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
953
+ float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
954
+
955
+ vec4 color = fragBorderColor;
956
+ color.a *= borderColorAmt;
957
+ color = mix(color, fragColor, colorAmt);
958
+ color.a *= opacity;
959
+
960
+ gl_FragColor = color;
961
+ }
962
+
963
+ }
964
+ `]),g.vert=p0([`precision highp float;
965
+ #define GLSLIFY 1
966
+
967
+ attribute float x, y, xFract, yFract;
968
+ attribute float size, borderSize;
969
+ attribute vec4 colorId, borderColorId;
970
+ attribute float isActive;
971
+
972
+ uniform bool constPointSize;
973
+ uniform float pixelRatio;
974
+ uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
975
+ uniform sampler2D paletteTexture;
976
+
977
+ const float maxSize = 100.;
978
+ const float borderLevel = .5;
979
+
980
+ varying vec4 fragColor, fragBorderColor;
981
+ varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
982
+
983
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
984
+
985
+ bool isDirect = (paletteSize.x < 1.);
986
+
987
+ vec4 getColor(vec4 id) {
988
+ return isDirect ? id / 255. : texture2D(paletteTexture,
989
+ vec2(
990
+ (id.x + .5) / paletteSize.x,
991
+ (id.y + .5) / paletteSize.y
992
+ )
993
+ );
994
+ }
995
+
996
+ void main() {
997
+ // ignore inactive points
998
+ if (isActive == 0.) return;
999
+
1000
+ vec2 position = vec2(x, y);
1001
+ vec2 positionFract = vec2(xFract, yFract);
1002
+
1003
+ vec4 color = getColor(colorId);
1004
+ vec4 borderColor = getColor(borderColorId);
1005
+
1006
+ float size = size * maxSize / 255.;
1007
+ float borderSize = borderSize * maxSize / 255.;
1008
+
1009
+ gl_PointSize = 2. * size * pointSizeScale;
1010
+ fragPointSize = size * pixelRatio;
1011
+
1012
+ vec2 pos = (position + translate) * scale
1013
+ + (positionFract + translateFract) * scale
1014
+ + (position + translate) * scaleFract
1015
+ + (positionFract + translateFract) * scaleFract;
1016
+
1017
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
1018
+
1019
+ fragColor = color;
1020
+ fragBorderColor = borderColor;
1021
+ fragWidth = 1. / gl_PointSize;
1022
+
1023
+ fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
1024
+ fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
1025
+ }`]),this.drawMarker=e(g);var w=mu({},h);w.frag=p0([`precision highp float;
1026
+ #define GLSLIFY 1
1027
+
1028
+ varying vec4 fragColor, fragBorderColor;
1029
+ varying float fragBorderRadius, fragWidth;
1030
+
1031
+ uniform float opacity;
1032
+
1033
+ float smoothStep(float edge0, float edge1, float x) {
1034
+ float t;
1035
+ t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
1036
+ return t * t * (3.0 - 2.0 * t);
1037
+ }
1038
+
1039
+ void main() {
1040
+ float radius, alpha = 1.0, delta = fragWidth;
1041
+
1042
+ radius = length(2.0 * gl_PointCoord.xy - 1.0);
1043
+
1044
+ if (radius > 1.0 + delta) {
1045
+ discard;
1046
+ }
1047
+
1048
+ alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
1049
+
1050
+ float borderRadius = fragBorderRadius;
1051
+ float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
1052
+ vec4 color = mix(fragColor, fragBorderColor, ratio);
1053
+ color.a *= alpha * opacity;
1054
+ gl_FragColor = color;
1055
+ }
1056
+ `]),w.vert=p0([`precision highp float;
1057
+ #define GLSLIFY 1
1058
+
1059
+ attribute float x, y, xFract, yFract;
1060
+ attribute float size, borderSize;
1061
+ attribute vec4 colorId, borderColorId;
1062
+ attribute float isActive;
1063
+
1064
+ uniform bool constPointSize;
1065
+ uniform float pixelRatio;
1066
+ uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
1067
+ uniform sampler2D paletteTexture;
1068
+
1069
+ const float maxSize = 100.;
1070
+
1071
+ varying vec4 fragColor, fragBorderColor;
1072
+ varying float fragBorderRadius, fragWidth;
1073
+
1074
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
1075
+
1076
+ bool isDirect = (paletteSize.x < 1.);
1077
+
1078
+ vec4 getColor(vec4 id) {
1079
+ return isDirect ? id / 255. : texture2D(paletteTexture,
1080
+ vec2(
1081
+ (id.x + .5) / paletteSize.x,
1082
+ (id.y + .5) / paletteSize.y
1083
+ )
1084
+ );
1085
+ }
1086
+
1087
+ void main() {
1088
+ // ignore inactive points
1089
+ if (isActive == 0.) return;
1090
+
1091
+ vec2 position = vec2(x, y);
1092
+ vec2 positionFract = vec2(xFract, yFract);
1093
+
1094
+ vec4 color = getColor(colorId);
1095
+ vec4 borderColor = getColor(borderColorId);
1096
+
1097
+ float size = size * maxSize / 255.;
1098
+ float borderSize = borderSize * maxSize / 255.;
1099
+
1100
+ gl_PointSize = (size + borderSize) * pointSizeScale;
1101
+
1102
+ vec2 pos = (position + translate) * scale
1103
+ + (positionFract + translateFract) * scale
1104
+ + (position + translate) * scaleFract
1105
+ + (positionFract + translateFract) * scaleFract;
1106
+
1107
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
1108
+
1109
+ fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1110
+ fragColor = color;
1111
+ fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1112
+ fragWidth = 1. / gl_PointSize;
1113
+ }
1114
+ `]),Yk&&(w.frag=w.frag.replace("smoothstep","smoothStep"),g.frag=g.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(w)}Ln.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};Ln.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};Ln.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,s){e.drawItem(s)});return this};Ln.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,Qfe(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};Ln.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,s=t.selectionBuffer,u=t.count;if(this.regl,!i)return r?[mu({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[mu({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var f=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var p=o[e],h=p.data,g=new Uint8Array(u),w=0;w<r.length;w++){var E=r[w];g[E]=h?h[E]:1}s.subdata(g)}for(var y=d.length;y--;){var x=Kfe(d[y],2),S=x[0],A=x[1];f.push(mu({},t,{markerTexture:this.markerTextures[e],activation:r?s:o[e],offset:S,count:A-S}))}return f};Ln.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,s=this.maxSize,u=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,p){var h=i[p];if(d===void 0)return h;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=lce(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),h||(i[p]=h={id:p,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=mu({},Ln.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=h.marker,delete h.marker),d.marker&&!("positions"in d)&&(d.positions=h.positions,delete h.positions);var g=0,w=0;if(uce(h,d,[{snap:!0,size:function(he,Fe){return he==null&&(he=Ln.defaults.size),g+=he&&he.length?1:0,he},borderSize:function(he,Fe){return he==null&&(he=Ln.defaults.borderSize),g+=he&&he.length?1:0,he},opacity:parseFloat,color:function(he,Fe){return he==null&&(he=Ln.defaults.color),he=e.updateColor(he),w++,he},borderColor:function(he,Fe){return he==null&&(he=Ln.defaults.borderColor),he=e.updateColor(he),w++,he},bounds:function(he,Fe,qe){return"range"in qe||(qe.range=null),he},positions:function(he,Fe,qe){var ze=Fe.snap,we=Fe.positionBuffer,ge=Fe.positionFractBuffer,Ve=Fe.selectionBuffer;if(he.x||he.y)return he.x.length?Fe.xAttr={buffer:o.buffer(he.x),offset:0,stride:4,count:he.x.length}:Fe.xAttr={buffer:he.x.buffer,offset:he.x.offset*4||0,stride:(he.x.stride||1)*4,count:he.x.count},he.y.length?Fe.yAttr={buffer:o.buffer(he.y),offset:0,stride:4,count:he.y.length}:Fe.yAttr={buffer:he.y.buffer,offset:he.y.offset*4||0,stride:(he.y.stride||1)*4,count:he.y.count},Fe.count=Math.max(Fe.xAttr.count,Fe.yAttr.count),he;he=fce(he,"float64");var We=Fe.count=Math.floor(he.length/2),Qe=Fe.bounds=We?ace(he,2):null;if(!qe.range&&!Fe.range&&(delete Fe.range,qe.range=Qe),!qe.marker&&!Fe.marker&&(delete Fe.marker,qe.marker=null),ze&&(ze===!0||We>ze)?Fe.tree=sce(he,{bounds:Qe}):ze&&ze.length&&(Fe.tree=ze),Fe.tree){var rt={primitive:"points",usage:"static",data:Fe.tree,type:"uint32"};Fe.elements?Fe.elements(rt):Fe.elements=o.elements(rt)}var At=h0.float32(he);we({data:At,usage:"dynamic"});var wt=h0.fract32(he,At);return ge({data:wt,usage:"dynamic"}),Ve({data:new Uint8Array(We),type:"uint8",usage:"stream"}),he}},{marker:function(he,Fe,qe){var ze=Fe.activation;if(ze.forEach(function(wt){return wt&&wt.destroy&&wt.destroy()}),ze.length=0,!he||typeof he[0]=="number"){var we=e.addMarker(he);ze[we]=!0}else{for(var ge=[],Ve=0,We=Math.min(he.length,Fe.count);Ve<We;Ve++){var Qe=e.addMarker(he[Ve]);ge[Qe]||(ge[Qe]=new Uint8Array(Fe.count)),ge[Qe][Ve]=1}for(var rt=0;rt<ge.length;rt++)if(!!ge[rt]){var At={data:ge[rt],type:"uint8",usage:"static"};ze[rt]?ze[rt](At):ze[rt]=o.buffer(At),ze[rt].data=ge[rt]}}return he},range:function(he,Fe,qe){var ze=Fe.bounds;if(!!ze)return he||(he=ze),Fe.scale=[1/(he[2]-he[0]),1/(he[3]-he[1])],Fe.translate=[-he[0],-he[1]],Fe.scaleFract=h0.fract(Fe.scale),Fe.translateFract=h0.fract(Fe.translate),he},viewport:function(he){var Fe=cce(he||[a.drawingBufferWidth,a.drawingBufferHeight]);return Fe}}]),g){var E=h,y=E.count,x=E.size,S=E.borderSize,A=E.sizeBuffer,C=new Uint8Array(y*2);if(x.length||S.length)for(var k=0;k<y;k++)C[k*2]=Math.round((x[k]==null?x:x[k])*255/s),C[k*2+1]=Math.round((S[k]==null?S:S[k])*255/s);A({data:C,usage:"dynamic"})}if(w){var D=h,z=D.count,M=D.color,L=D.borderColor,X=D.colorBuffer,re;if(e.tooManyColors){if(M.length||L.length){re=new Uint8Array(z*8);for(var ce=0;ce<z;ce++){var xe=M[ce];re[ce*8]=f[xe*4],re[ce*8+1]=f[xe*4+1],re[ce*8+2]=f[xe*4+2],re[ce*8+3]=f[xe*4+3];var Se=L[ce];re[ce*8+4]=f[Se*4],re[ce*8+5]=f[Se*4+1],re[ce*8+6]=f[Se*4+2],re[ce*8+7]=f[Se*4+3]}}}else if(M.length||L.length){re=new Uint8Array(z*4+2);for(var Ze=0;Ze<z;Ze++)M[Ze]!=null&&(re[Ze*4]=M[Ze]%u,re[Ze*4+1]=Math.floor(M[Ze]/u)),L[Ze]!=null&&(re[Ze*4+2]=L[Ze]%u,re[Ze*4+3]=Math.floor(L[Ze]/u))}X({data:re||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return h})}};Ln.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,s=e.length;o<s;o++)a[o]=e[o]*255}var u=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:u,mag:"linear",min:"linear"})),i};Ln.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 s=0;s<e.length;s+=4)a.push(e.subarray(s,s+4));e=a}for(var u=0;u<e.length;u++){var f=e[u];f=ice(f,"uint8");var d=oce(f,!1);if(t[d]==null){var p=r.length;t[d]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};Ln.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)}};Ln.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 pce=ku,hce=function(t,r){var n=new dce(t,r),i=n.render.bind(n);return pce(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},Uge=hce,KT={exports:{}};KT.exports=kb;KT.exports.default=kb;function kb(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=e$(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,f,d,p,h,g;if(n&&(a=bce(e,t,a,r)),e.length>80*r){s=f=e[0],u=d=e[1];for(var w=r;w<i;w+=r)p=e[w],h=e[w+1],p<s&&(s=p),h<u&&(u=h),p>f&&(f=p),h>d&&(d=h);g=Math.max(f-s,d-u),g=g!==0?1/g:0}return mv(a,o,r,s,u,g),o}function e$(e,t,r,n,i){var a,o;if(i===jE(e,t,r,n)>0)for(a=t;a<r;a+=n)o=Xk(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=Xk(a,e[a],e[a+1],o);return o&&Db(o,o.next)&&(bv(o),o=o.next),o}function fl(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Db(r,r.next)||rn(r.prev,r,r.next)===0)){if(bv(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function mv(e,t,r,n,i,a,o){if(!!e){!o&&a&&Ece(e,n,i,a);for(var s=e,u,f;e.prev!==e.next;){if(u=e.prev,f=e.next,a?gce(e,n,i,a):vce(e)){t.push(u.i/r),t.push(e.i/r),t.push(f.i/r),bv(e),e=f.next,s=f.next;continue}if(e=f,e===s){o?o===1?(e=mce(fl(e),t,r),mv(e,t,r,n,i,a,2)):o===2&&yce(e,t,r,n,i,a):mv(fl(e),t,r,n,i,a,1);break}}}}function vce(e){var t=e.prev,r=e,n=e.next;if(rn(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(rc(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&rn(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function gce(e,t,r,n){var i=e.prev,a=e,o=e.next;if(rn(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,u=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,f=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,p=zE(s,u,t,r,n),h=zE(f,d,t,r,n),g=e.prevZ,w=e.nextZ;g&&g.z>=p&&w&&w.z<=h;){if(g!==e.prev&&g!==e.next&&rc(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&rn(g.prev,g,g.next)>=0||(g=g.prevZ,w!==e.prev&&w!==e.next&&rc(i.x,i.y,a.x,a.y,o.x,o.y,w.x,w.y)&&rn(w.prev,w,w.next)>=0))return!1;w=w.nextZ}for(;g&&g.z>=p;){if(g!==e.prev&&g!==e.next&&rc(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&rn(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;w&&w.z<=h;){if(w!==e.prev&&w!==e.next&&rc(i.x,i.y,a.x,a.y,o.x,o.y,w.x,w.y)&&rn(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function mce(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!Db(i,a)&&t$(i,n,n.next,a)&&yv(i,a)&&yv(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),bv(n),bv(n.next),n=e=a),n=n.next}while(n!==e);return fl(n)}function yce(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Tce(o,s)){var u=r$(o,s);o=fl(o,o.next),u=fl(u,u.next),mv(o,t,r,n,i,a),mv(u,t,r,n,i,a);return}s=s.next}o=o.next}while(o!==e)}function bce(e,t,r,n){var i=[],a,o,s,u,f;for(a=0,o=t.length;a<o;a++)s=t[a]*n,u=a<o-1?t[a+1]*n:e.length,f=e$(e,s,u,n,!1),f===f.next&&(f.steiner=!0),i.push(Cce(f));for(i.sort(xce),a=0;a<i.length;a++)r=wce(i[a],r),r=fl(r,r.next);return r}function xce(e,t){return e.x-t.x}function wce(e,t){var r=_ce(e,t);if(!r)return t;var n=r$(r,e),i=fl(r,r.next);return fl(n,n.next),t===r?i:t}function _ce(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 s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a){if(a=s,s===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 u=o,f=o.x,d=o.y,p=1/0,h;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&rc(i<d?n:a,i,f,d,i<d?a:n,i,r.x,r.y)&&(h=Math.abs(i-r.y)/(n-r.x),yv(r,e)&&(h<p||h===p&&(r.x>o.x||r.x===o.x&&Sce(o,r)))&&(o=r,p=h)),r=r.next;while(r!==u);return o}function Sce(e,t){return rn(e.prev,e,t.prev)<0&&rn(t.next,e,e.next)<0}function Ece(e,t,r,n){var i=e;do i.z===null&&(i.z=zE(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,Ace(i)}function Ace(e){var t,r,n,i,a,o,s,u,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t<f&&(s++,n=n.nextZ,!!n);t++);for(u=f;s>0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function zE(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 Cce(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 rc(e,t,r,n,i,a,o,s){return(i-o)*(t-s)-(e-o)*(a-s)>=0&&(e-o)*(n-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function Tce(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Rce(e,t)&&(yv(e,t)&&yv(t,e)&&Oce(e,t)&&(rn(e.prev,e,t.prev)||rn(e,t.prev,t))||Db(e,t)&&rn(e.prev,e,e.next)>0&&rn(t.prev,t,t.next)>0)}function rn(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Db(e,t){return e.x===t.x&&e.y===t.y}function t$(e,t,r,n){var i=g0(rn(e,t,r)),a=g0(rn(e,t,n)),o=g0(rn(r,n,e)),s=g0(rn(r,n,t));return!!(i!==a&&o!==s||i===0&&v0(e,r,t)||a===0&&v0(e,n,t)||o===0&&v0(r,e,n)||s===0&&v0(r,t,n))}function v0(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 g0(e){return e>0?1:e<0?-1:0}function Rce(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&&t$(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function yv(e,t){return rn(e.prev,e,e.next)<0?rn(e,t,e.next)>=0&&rn(e,e.prev,t)>=0:rn(e,t,e.prev)<0||rn(e,e.next,t)<0}function Oce(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 r$(e,t){var r=new UE(e.i,e.x,e.y),n=new UE(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 Xk(e,t,r,n){var i=new UE(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 bv(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 UE(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}kb.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(jE(e,0,a,r));if(i)for(var s=0,u=t.length;s<u;s++){var f=t[s]*r,d=s<u-1?t[s+1]*r:e.length;o-=Math.abs(jE(e,f,d,r))}var p=0;for(s=0;s<n.length;s+=3){var h=n[s]*r,g=n[s+1]*r,w=n[s+2]*r;p+=Math.abs((e[h]-e[w])*(e[g+1]-e[h+1])-(e[h]-e[g])*(e[w+1]-e[h+1]))}return o===0&&p===0?0:Math.abs((p-o)/o)};function jE(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}kb.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 Ice=ig,Pce=kce;function kce(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Ice(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,s=e.length;if(i===1/0&&a===-1/0)for(o=n;o<s;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<s;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<s;o+=t)e[o]=e[o]===a?0:1;else{var u=i-a;for(o=n;o<s;o+=t)isNaN(e[o])||(e[o]=u===0?.5:(e[o]-a)/u)}}return e}var Dce=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")},iS,Kk;function n$(){if(Kk)return iS;Kk=1;var e=Object.create,t=Object.getPrototypeOf,r={};return iS=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},iS}var aS,Qk;function Mce(){if(Qk)return aS;Qk=1;var e=Object.create,t;return n$()()||(t=i$()),aS=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)})}(),aS}var oS,Zk;function i$(){if(Zk)return oS;Zk=1;var e=KA,t=Ia,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,s){if(t(o),s===null||e(s))return o;throw new TypeError("Prototype must be null or an object")},oS=function(o){var s,u;return o?(o.level===2?o.set?(u=o.set,s=function(f,d){return u.call(a(f,d),d),f}):s=function(f,d){return a(f,d).__proto__=d,f}:s=function f(d,p){var h;return a(d,p),h=r.call(f.nullPolyfill,d),h&&delete f.nullPolyfill.__proto__,p===null&&(p=f.nullPolyfill),d.__proto__=p,h&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(s,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),s={},u,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{u=f.set,u.call(o,s)}catch{}if(Object.getPrototypeOf(o)===s)return{set:u,level:2}}return o.__proto__=s,Object.getPrototypeOf(o)===s?{level:2}:(o={},o.__proto__=s,Object.getPrototypeOf(o)===s?{level:1}:!1)}()),Mce(),oS}var sS,Jk;function QT(){return Jk||(Jk=1,sS=n$()()?Object.setPrototypeOf:i$()),sS}var lS,eD;function Nce(){if(eD)return lS;eD=1;var e=KA;return lS=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},lS}var uS,tD;function Fce(){if(tD)return uS;tD=1;var e=Object.create(null),t=Math.random;return uS=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},uS}var fS={exports:{}},cS,rD;function Lce(){if(rD)return cS;rD=1;var e=Ia;return cS=function(){return e(this).length=0,this},cS}var dS,nD;function Bce(){if(nD)return dS;nD=1;var e=Kc,t=QA,r=Object.prototype.toString;return dS=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}},dS}var pS,iD;function $ce(){return iD||(iD=1,pS=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),pS}var hS,aD;function zce(){if(aD)return hS;aD=1;var e=$ce(),t=/[\n\r\u2028\u2029]/g;return hS=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`
1115
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},hS}var vS,oD;function a$(){if(oD)return vS;oD=1;var e=Kc,t=QA,r=Bce(),n=zce(),i=function(a,o){return a.replace("%v",n(o))};return vS=function(a,o,s){if(!t(s))throw new TypeError(i(o,a));if(!e(a)){if("default"in s)return s.default;if(s.isOptional)return null}var u=r(s.errorMessage);throw e(u)||(u=o),new TypeError(i(u,a))},vS}var gS,sD;function Uce(){if(sD)return gS;sD=1;var e=a$(),t=Kc;return gS=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},gS}var mS,lD;function jce(){if(lD)return mS;lD=1;var e=a$(),t=eF;return mS=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},mS}var yS,uD;function Wce(){if(uD)return yS;uD=1;var e=B1(),t=M1,r=Ia;return yS=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var s={};return a?e(a,function(u){(o.ensure||u in n)&&(s[u]=n[u])}):t(s,n),s},yS}var bS,fD;function Gce(){if(fD)return bS;fD=1;var e=Kc,t=Uce(),r=jce(),n=Wce(),i=XA,a=JA(),o=Function.prototype.bind,s=Object.defineProperty,u=Object.prototype.hasOwnProperty,f;return f=function(d,p,h){var g=t(p)&&r(p.value),w;return w=n(p),delete w.writable,delete w.value,w.get=function(){return!h.overwriteDefinition&&u.call(this,d)?g:(p.value=o.call(g,h.resolveContext?h.resolveContext(this):this),s(this,d,p),this[d])},w},bS=function(d){var p=i(arguments[1]);return e(p.resolveContext)&&r(p.resolveContext),a(d,function(h,g){return f(g,h,p)})},bS}var xS,cD;function o$(){if(cD)return xS;cD=1;var e=Lce(),t=M1,r=oo,n=Ia,i=ua.exports,a=Gce(),o=$u(),s=Object.defineProperty,u=Object.defineProperties,f;return xS=f=function(d,p){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");u(this,{__list__:i("w",n(d)),__context__:i("w",p),__nextIndex__:i("w",0)}),p&&(r(p.on),p.on("_add",this._onAdd),p.on("_delete",this._onDelete),p.on("_clear",this._onClear))},delete f.prototype.constructor,u(f.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__){s(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(p,h){p>=d&&(this.__redo__[h]=++p)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var p;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(p=this.__redo__.indexOf(d),p!==-1&&this.__redo__.splice(p,1),this.__redo__.forEach(function(h,g){h>d&&(this.__redo__[g]=--h)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),s(f.prototype,o.iterator,i(function(){return this})),xS}var dD;function qce(){if(dD)return fS.exports;dD=1;var e=QT(),t=tF,r=ua.exports,n=$u(),i=o$(),a=Object.defineProperty,o;return o=fS.exports=function(s,u){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,s),u?t.call(u,"key+value")?u="key+value":t.call(u,"key")?u="key":u="value":u="value",a(this,"__kind__",r("",u))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(s){return this.__kind__==="value"?this.__list__[s]:this.__kind__==="key+value"?[s,this.__list__[s]]:s})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),fS.exports}var wS={exports:{}},pD;function Hce(){if(pD)return wS.exports;pD=1;var e=QT(),t=ua.exports,r=$u(),n=o$(),i=Object.defineProperty,a;return a=wS.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 s=this.__list__[o],u;return this.__nextIndex__===this.__length__?s:(u=s.charCodeAt(0),u>=55296&&u<=56319?s+this.__list__[this.__nextIndex__++]:s)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),wS.exports}var _S,hD;function Vce(){if(hD)return _S;hD=1;var e=F1(),t=Vo,r=L1(),n=$u().iterator,i=Array.isArray;return _S=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},_S}var SS,vD;function Yce(){if(vD)return SS;vD=1;var e=Vce();return SS=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},SS}var ES,gD;function s$(){if(gD)return ES;gD=1;var e=F1(),t=L1(),r=qce(),n=Hce(),i=Yce(),a=$u().iterator;return ES=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},ES}var AS,mD;function Xce(){if(mD)return AS;mD=1;var e=F1(),t=oo,r=L1(),n=s$(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return AS=function(s,u){var f,d=arguments[2],p,h,g,w,E,y,x;if(i(s)||e(s)?f="array":r(s)?f="string":s=n(s),t(u),h=function(){g=!0},f==="array"){o.call(s,function(S){return a.call(u,d,S,h),g});return}if(f==="string"){for(E=s.length,w=0;w<E&&(y=s[w],w+1<E&&(x=y.charCodeAt(0),x>=55296&&x<=56319&&(y+=s[++w])),a.call(u,d,y,h),!g);++w);return}for(p=s.next();!p.done;){if(a.call(u,d,p.value,h),g)return;p=s.next()}},AS}var CS,yD;function Kce(){return yD||(yD=1,CS=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),CS}var TS,bD;function Qce(){if(bD)return TS;bD=1;var e=Vo,t=QT(),r=Nce(),n=Ia,i=Fce(),a=ua.exports,o=s$(),s=Xce(),u=$u().toStringTag,f=Kce(),d=Array.isArray,p=Object.defineProperty,h=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf,w;return TS=w=function(){var E=arguments[0],y;if(!(this instanceof w))throw new TypeError("Constructor requires 'new'");return y=f&&t&&WeakMap!==w?t(new WeakMap,g(this)):this,e(E)&&(d(E)||(E=o(E))),p(y,"__weakMapData__",a("c","$weakMap$"+i())),E&&s(E,function(x){n(x),y.set(x[0],x[1])}),y},f&&(t&&t(w,WeakMap),w.prototype=Object.create(WeakMap.prototype,{constructor:a(w)})),Object.defineProperties(w.prototype,{delete:a(function(E){return h.call(r(E),this.__weakMapData__)?(delete E[this.__weakMapData__],!0):!1}),get:a(function(E){if(!!h.call(r(E),this.__weakMapData__))return E[this.__weakMapData__]}),has:a(function(E){return h.call(r(E),this.__weakMapData__)}),set:a(function(E,y){return p(r(E),this.__weakMapData__,a("c",y)),this}),toString:a(function(){return"[object WeakMap]"})}),p(w.prototype,u,a("c","WeakMap")),TS}var l$=Dce()?WeakMap:Qce(),Zce=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 m0=Ib,Jce=ig,WE=ku,Lf=Q8,ede=bl,tde=ag,xD=KT.exports,rde=Pce,{float32:nde,fract32:RS}=ul.exports,ide=l$,wD=Ob,ade=Zce;var jge=Dr;function Dr(e,t){if(!(this instanceof Dr))return new Dr(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=Dr.shaders.has(e)?Dr.shaders.get(e):Dr.shaders.set(e,Dr.createShaders(e)).get(e),this.update(t)}Dr.dashMult=2;Dr.maxPatternLength=256;Dr.precisionThreshold=3e6;Dr.maxPoints=1e4;Dr.maxLines=2048;Dr.shaders=new ide;Dr.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,s)=>s.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,s)=>[s.viewport.x,s.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,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(WE({vert:Lf("./rect-vert.glsl"),frag:Lf("./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(WE({cull:{enable:!0,face:"back"},vert:Lf("./miter-vert.glsl"),frag:Lf("./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,s)=>s.triangles,offset:0,vert:Lf("./fill-vert.glsl"),frag:Lf("./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,s)=>[s.viewport.x,s.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}};Dr.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};Dr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Dr.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>Dr.precisionThreshold||t.scale[1]*t.viewport.height>Dr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Dr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Dr.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=ede(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=WE({},Dr.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<Dr.maxLines&&(o.depth=2*(Dr.maxLines-1-a%Dr.maxLines)/Dr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?m0(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=wD(i.viewport)),o.viewport||(o.viewport=wD([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let f,d;if(i.positions.x&&i.positions.y){let w=i.positions.x,E=i.positions.y;d=o.count=Math.max(w.length,E.length),f=new Float64Array(d*2);for(let y=0;y<d;y++)f[y*2]=w[y],f[y*2+1]=E[y]}else f=tde(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let p=o.bounds=Jce(f,2);if(o.fill){let w=[],E={},y=0;for(let x=0,S=0,A=o.count;x<A;x++){let C=f[x*2],k=f[x*2+1];isNaN(C)||isNaN(k)||C==null||k==null?(C=f[y*2],k=f[y*2+1],E[x]=y):y=x,w[S++]=C,w[S++]=k}if(i.splitNull){o.count-1 in E||(E[o.count]=o.count-1);let x=Object.keys(E).map(Number).sort((k,D)=>k-D),S=[],A=0,C=o.hole!=null?o.hole[0]:null;if(C!=null){let k=ade(x,D=>D>=C);x=x.slice(0,k),x.push(C)}for(let k=0;k<x.length;k++){let D=w.slice(A*2,x[k]*2).concat(C?w.slice(C*2):[]),z=(o.hole||[]).map(L=>L-C+(x[k]-A)),M=xD(D,z);M=M.map(L=>L+A+(L+A<x[k]?0:C-x[k])),S.push(...M),A=x[k]+1}for(let k=0,D=S.length;k<D;k++)E[S[k]]!=null&&(S[k]=E[S[k]]);o.triangles=S}else{let x=xD(w,o.hole||[]);for(let S=0,A=x.length;S<A;S++)E[x[S]]!=null&&(x[S]=E[x[S]]);o.triangles=x}}let h=new Float64Array(f);rde(h,2,p);let g=new Float64Array(d*2+6);o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(g[0]=h[d*2-4],g[1]=h[d*2-3]):(g[0]=h[d*2-2],g[1]=h[d*2-1]):(g[0]=h[0],g[1]=h[1]),g.set(h,2),o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(g[d*2+2]=h[2],g[d*2+3]=h[3],o.count-=1):(g[d*2+2]=h[0],g[d*2+3]=h[1],g[d*2+4]=h[2],g[d*2+5]=h[3]):(g[d*2+2]=h[d*2-2],g[d*2+3]=h[d*2-1],g[d*2+4]=h[d*2-2],g[d*2+5]=h[d*2-1]);var s=nde(g);o.positionBuffer(s);var u=RS(g,s);o.positionFractBuffer(u)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let f=o.bounds,d=f[2]-f[0],p=f[3]-f[1],h=o.range[2]-o.range[0],g=o.range[3]-o.range[1];o.scale=[d/h,p/g],o.translate=[-o.range[0]/h+f[0]/h||0,-o.range[1]/g+f[1]/g||0],o.scaleFract=RS(o.scale),o.translateFract=RS(o.translate)}if(i.dashes){let f=0,d;if(!i.dashes||i.dashes.length<2)f=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{f=0;for(let g=0;g<i.dashes.length;++g)f+=i.dashes[g];d=new Uint8Array(f*Dr.dashMult);let p=0,h=255;for(let g=0;g<2;g++)for(let w=0;w<i.dashes.length;++w){for(let E=0,y=i.dashes[w]*Dr.dashMult*.5;E<y;++E)d[p++]=h;h^=255}}o.dashLength=f,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let f=o.count,d=i.color;d||(d="transparent");let p=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let h=m0(d,"uint8");for(let g=0;g<f+1;g++)p.set(h,g*4)}else{for(let h=0;h<f;h++){let g=m0(d[h],"uint8");p.set(g,h*4)}p.set(m0(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:p})}}}),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};Dr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const ode=ig,sde=Ib,lde=Z8,ude=bl,_D=ku,SD=ag,{float32:fde,fract32:OS}=ul.exports;var Wge=cde;const ED=[[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 cde(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,s,u,f={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)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:ED}),w(t),n=e({vert:`
1116
+ precision highp float;
1117
+
1118
+ attribute vec2 position, positionFract;
1119
+ attribute vec4 error;
1120
+ attribute vec4 color;
1121
+
1122
+ attribute vec2 direction, lineOffset, capOffset;
1123
+
1124
+ uniform vec4 viewport;
1125
+ uniform float lineWidth, capSize;
1126
+ uniform vec2 scale, scaleFract, translate, translateFract;
1127
+
1128
+ varying vec4 fragColor;
1129
+
1130
+ void main() {
1131
+ fragColor = color / 255.;
1132
+
1133
+ vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1134
+
1135
+ vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1136
+
1137
+ vec2 position = position + dxy;
1138
+
1139
+ vec2 pos = (position + translate) * scale
1140
+ + (positionFract + translateFract) * scale
1141
+ + (position + translate) * scaleFract
1142
+ + (positionFract + translateFract) * scaleFract;
1143
+
1144
+ pos += pixelOffset / viewport.zw;
1145
+
1146
+ gl_Position = vec4(pos * 2. - 1., 0, 1);
1147
+ }
1148
+ `,frag:`
1149
+ precision highp float;
1150
+
1151
+ varying vec4 fragColor;
1152
+
1153
+ uniform float opacity;
1154
+
1155
+ void main() {
1156
+ gl_FragColor = fragColor;
1157
+ gl_FragColor.a *= opacity;
1158
+ }
1159
+ `,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:(y,x)=>[x.viewport.x,x.viewport.y,y.viewportWidth,y.viewportHeight]},attributes:{color:{buffer:o,offset:(y,x)=>x.offset*4,divisor:1},position:{buffer:i,offset:(y,x)=>x.offset*8,divisor:1},positionFract:{buffer:a,offset:(y,x)=>x.offset*8,divisor:1},error:{buffer:s,offset:(y,x)=>x.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,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:ED.length}),_D(p,{update:w,draw:h,destroy:E,regl:e,gl:r,canvas:r.canvas,groups:d}),p;function p(y){y?w(y):y===null&&E(),h()}function h(y){if(typeof y=="number")return g(y);y&&!Array.isArray(y)&&(y=[y]),e._refresh(),d.forEach((x,S)=>{if(!!x){if(y&&(y[S]?x.draw=!0:x.draw=!1),!x.draw){x.draw=!0;return}g(S)}})}function g(y){typeof y=="number"&&(y=d[y]),y!=null&&(!(y&&y.count&&y.color&&y.opacity&&y.positions&&y.positions.length>1)||(y.scaleRatio=[y.scale[0]*y.viewport.width,y.scale[1]*y.viewport.height],n(y),y.after&&y.after(y)))}function w(y){if(!y)return;y.length!=null?typeof y[0]=="number"&&(y=[{positions:y}]):Array.isArray(y)||(y=[y]);let x=0,S=0;if(p.groups=d=y.map((k,D)=>{let z=d[D];if(k)typeof k=="function"?k={after:k}:typeof k[0]=="number"&&(k={positions:k});else return z;return k=ude(k,{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"}),z||(d[D]=z={id:D,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},k=_D({},f,k)),lde(z,k,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=SD(M),S+=M.length,M),positions:(M,L)=>(M=SD(M,"float64"),L.count=Math.floor(M.length/2),L.bounds=ode(M,2),L.offset=x,x+=L.count,M)},{color:(M,L)=>{let X=L.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let ce=M;M=Array(X);for(let xe=0;xe<X;xe++)M[xe]=ce}if(M.length<X)throw Error("Not enough colors");let re=new Uint8Array(X*4);for(let ce=0;ce<X;ce++){let xe=sde(M[ce],"uint8");re.set(xe,ce*4)}return re},range:(M,L,X)=>{let re=L.bounds;return M||(M=re),L.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],L.translate=[-M[0],-M[1]],L.scaleFract=OS(L.scale),L.translateFract=OS(L.translate),M},viewport:M=>{let L;return Array.isArray(M)?L={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(L={x:M.x||M.left||0,y:M.y||M.top||0},M.right?L.width=M.right-L.x:L.width=M.w||M.width||0,M.bottom?L.height=M.bottom-L.y:L.height=M.h||M.height||0):L={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},L}}]),z}),x||S){let k=d.reduce((L,X,re)=>L+(X?X.count:0),0),D=new Float64Array(k*2),z=new Uint8Array(k*4),M=new Float32Array(k*4);d.forEach((L,X)=>{if(!L)return;let{positions:re,count:ce,offset:xe,color:Se,errors:Ze}=L;!ce||(z.set(Se,xe*4),M.set(Ze,xe*4),D.set(re,xe*2))});var A=fde(D);i(A);var C=OS(D,A);a(C),o(z),s(M)}}function E(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}var AD=/[\'\"]/,dde=function(t){return t?(AD.test(t.charAt(0))&&(t=t.substr(1)),AD.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const u$=["inherit","initial","unset"],f$=["caption","icon","menu","message-box","small-caption","status-bar"],c$=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],d$=["normal","italic","oblique"],p$=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function h$(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(u){var f=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),d=[];function p(h,g,w){var E=r.push(h.slice(u[0].length,-u[1].length))-1;return d.push(E),i+E+i}r.forEach(function(h,g){for(var w,E=0;h!=w;)if(w=h,h=h.replace(f,p),E++>1e4)throw Error("References have circular dependency. Please, check them.");r[g]=h}),d=d.reverse(),r=r.map(function(h){return d.forEach(function(g){h=h.replace(new RegExp("(\\"+i+g+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,f,d){for(var p=[],h,g=0;h=o.exec(u);){if(g++>1e4)throw Error("Circular references in parenthesis");p.push(u.slice(0,h.index)),p.push(s(f[h[1]],f)),u=u.slice(h.index+h[0].length)}return p.push(u),p}return a?r:s(r[0],r)}function v$(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,s)}return n}return e.reduce(function u(f,d){return Array.isArray(d)&&(d=d.reduce(u,"")),f+d},"");function s(u,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function ZT(e,t){return Array.isArray(e)?v$(e,t):h$(e,t)}ZT.parse=h$;ZT.stringify=v$;var pde=ZT,CD=pde,hde=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(p){return p.length===1&&(p=p+p),p}));var i=CD.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u<o.length;u++){var f=o[u],d=o[u+1];f[f.length-1]==="\\"&&f[f.length-2]!=="\\"?(s.push(f+r+d),u++):s.push(f)}o=s}for(var u=0;u<o.length;u++)i[0]=o[u],o[u]=CD.stringify(i,{flat:!0});return o};const vde=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var gde=vde,g$={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||gde.indexOf(t)!==-1}},mde=dde,yde=u$,bde=f$,xde=c$,wde=d$,_de=p$,IS=hde,Sde=g$.isSize,Ede=m$,Vp=m$.cache={};function m$(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Vp[e])return Vp[e];if(e==="")throw new Error("Cannot parse an empty string.");if(bde.indexOf(e)!==-1)return Vp[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=IS(e,/\s+/),n;n=r.shift();){if(yde.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Vp[e]=t;if(wde.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(_de.indexOf(n)!==-1){t.stretch=n;continue}if(xde.indexOf(n)!==-1){t.weight=n;continue}if(Sde(n)){var i=IS(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=TD(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=TD(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=IS(r.join(" "),/\s*,\s*/).map(mde),Vp[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function TD(e){var t=parseFloat(e);return t.toString()===e?t:e}var Ade=bl,Cde=g$.isSize,Tde=og(u$),Rde=og(f$),Ode=og(c$),Ide=og(d$),Pde=og(p$),kde={normal:1,"small-caps":1},Dde={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},PS={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},y$=function(t){if(t=Ade(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&&Yp(t.system,Rde),t.system;if(Yp(t.style,Ide),Yp(t.variant,kde),Yp(t.weight,Ode),Yp(t.stretch,Pde),t.size==null&&(t.size=PS.size),typeof t.size=="number"&&(t.size+="px"),!Cde)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=PS.family),Array.isArray(t.family)&&(t.family.length||(t.family=[PS.family]),t.family=t.family.map(function(n){return Dde[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 Yp(e,t){if(e&&!t[e]&&!Tde[e])throw Error("Unknown keyword `"+e+"`");return e}function og(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var Mde={parse:Ede,stringify:y$},b$={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Cr,function(){var r=function(F,V){for(var ee=Object.keys(V),ke=0;ke<ee.length;++ke)F[ee[ke]]=V[ee[ke]];return F},n=0,i=0,a=5,o=6;function s(F,V){this.id=n++,this.type=F,this.data=V}function u(F){return F.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function f(F){if(F.length===0)return[];var V=F.charAt(0),ee=F.charAt(F.length-1);if(F.length>1&&V===ee&&(V==='"'||V==="'"))return['"'+u(F.substr(1,F.length-2))+'"'];var ke=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(F);if(ke)return f(F.substr(0,ke.index)).concat(f(ke[1])).concat(f(F.substr(ke.index+ke[0].length)));var Ue=F.split(".");if(Ue.length===1)return['"'+u(F)+'"'];for(var Re=[],Ie=0;Ie<Ue.length;++Ie)Re=Re.concat(f(Ue[Ie]));return Re}function d(F){return"["+f(F).join("][")+"]"}function p(F,V){return new s(F,d(V+""))}function h(F){return typeof F=="function"&&!F._reglType||F instanceof s}function g(F,V){if(typeof F=="function")return new s(i,F);if(typeof F=="number"||typeof F=="boolean")return new s(a,F);if(Array.isArray(F))return new s(o,F.map(function(ee,ke){return g(ee)}));if(F instanceof s)return F}var w={DynamicVariable:s,define:p,isDynamic:h,unbox:g,accessor:d},E={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},y=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function x(){var F={"":0},V=[""];return{id:function(ee){var ke=F[ee];return ke||(ke=F[ee]=V.length,V.push(ee),ke)},str:function(ee){return V[ee]}}}function S(F,V,ee){var ke=document.createElement("canvas");r(ke.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),F.appendChild(ke),F===document.body&&(ke.style.position="absolute",r(F.style,{margin:0,padding:0}));function Ue(){var it=window.innerWidth,at=window.innerHeight;if(F!==document.body){var lt=ke.getBoundingClientRect();it=lt.right-lt.left,at=lt.bottom-lt.top}ke.width=ee*it,ke.height=ee*at}var Re;F!==document.body&&typeof ResizeObserver=="function"?(Re=new ResizeObserver(function(){setTimeout(Ue)}),Re.observe(F)):window.addEventListener("resize",Ue,!1);function Ie(){Re?Re.disconnect():window.removeEventListener("resize",Ue),F.removeChild(ke)}return Ue(),{canvas:ke,onDestroy:Ie}}function A(F,V){function ee(ke){try{return F.getContext(ke,V)}catch{return null}}return ee("webgl")||ee("experimental-webgl")||ee("webgl-experimental")}function C(F){return typeof F.nodeName=="string"&&typeof F.appendChild=="function"&&typeof F.getBoundingClientRect=="function"}function k(F){return typeof F.drawArrays=="function"||typeof F.drawElements=="function"}function D(F){return typeof F=="string"?F.split():F}function z(F){return typeof F=="string"?document.querySelector(F):F}function M(F){var V=F||{},ee,ke,Ue,Re,Ie={},it=[],at=[],lt=typeof window>"u"?1:window.devicePixelRatio,gt=!1,Ft={},Ot=function(ye){},ct=function(){};if(typeof V=="string"?ee=document.querySelector(V):typeof V=="object"&&(C(V)?ee=V:k(V)?(Re=V,Ue=Re.canvas):("gl"in V?Re=V.gl:"canvas"in V?Ue=z(V.canvas):"container"in V&&(ke=z(V.container)),"attributes"in V&&(Ie=V.attributes),"extensions"in V&&(it=D(V.extensions)),"optionalExtensions"in V&&(at=D(V.optionalExtensions)),"onDone"in V&&(Ot=V.onDone),"profile"in V&&(gt=!!V.profile),"pixelRatio"in V&&(lt=+V.pixelRatio),"cachedCode"in V&&(Ft=V.cachedCode))),ee&&(ee.nodeName.toLowerCase()==="canvas"?Ue=ee:ke=ee),!Re){if(!Ue){var tt=S(ke||document.body,Ot,lt);if(!tt)return null;Ue=tt.canvas,ct=tt.onDestroy}Ie.premultipliedAlpha===void 0&&(Ie.premultipliedAlpha=!0),Re=A(Ue,Ie)}return Re?{gl:Re,canvas:Ue,container:ke,extensions:it,optionalExtensions:at,pixelRatio:lt,profile:gt,cachedCode:Ft,onDone:Ot,onDestroy:ct}:(ct(),Ot("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function L(F,V){var ee={};function ke(Ie){var it=Ie.toLowerCase(),at;try{at=ee[it]=F.getExtension(it)}catch{}return!!at}for(var Ue=0;Ue<V.extensions.length;++Ue){var Re=V.extensions[Ue];if(!ke(Re))return V.onDestroy(),V.onDone('"'+Re+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return V.optionalExtensions.forEach(ke),{extensions:ee,restore:function(){Object.keys(ee).forEach(function(Ie){if(ee[Ie]&&!ke(Ie))throw new Error("(regl): error restoring extension "+Ie)})}}}function X(F,V){for(var ee=Array(F),ke=0;ke<F;++ke)ee[ke]=V(ke);return ee}var re=5120,ce=5121,xe=5122,Se=5123,Ze=5124,Ge=5125,he=5126;function Fe(F){for(var V=16;V<=1<<28;V*=16)if(F<=V)return V;return 0}function qe(F){var V,ee;return V=(F>65535)<<4,F>>>=V,ee=(F>255)<<3,F>>>=ee,V|=ee,ee=(F>15)<<2,F>>>=ee,V|=ee,ee=(F>3)<<1,F>>>=ee,V|=ee,V|F>>1}function ze(){var F=X(8,function(){return[]});function V(Re){var Ie=Fe(Re),it=F[qe(Ie)>>2];return it.length>0?it.pop():new ArrayBuffer(Ie)}function ee(Re){F[qe(Re.byteLength)>>2].push(Re)}function ke(Re,Ie){var it=null;switch(Re){case re:it=new Int8Array(V(Ie),0,Ie);break;case ce:it=new Uint8Array(V(Ie),0,Ie);break;case xe:it=new Int16Array(V(2*Ie),0,Ie);break;case Se:it=new Uint16Array(V(2*Ie),0,Ie);break;case Ze:it=new Int32Array(V(4*Ie),0,Ie);break;case Ge:it=new Uint32Array(V(4*Ie),0,Ie);break;case he:it=new Float32Array(V(4*Ie),0,Ie);break;default:return null}return it.length!==Ie?it.subarray(0,Ie):it}function Ue(Re){ee(Re.buffer)}return{alloc:V,free:ee,allocType:ke,freeType:Ue}}var we=ze();we.zero=ze();var ge=3408,Ve=3410,We=3411,Qe=3412,rt=3413,At=3414,wt=3415,Ee=33901,Be=33902,ht=3379,_e=3386,j=34921,te=36347,I=36348,T=35661,P=35660,U=34930,le=36349,Ne=34076,$e=34024,zt=7936,Xt=7937,er=7938,cr=35724,_r=34047,$r=36063,Wn=34852,un=3553,vn=34067,xn=34069,vi=33984,lo=6408,Jo=5126,uo=5121,es=36160,Hu=36053,fa=36064,ud=16384,ts=function(F,V){var ee=1;V.ext_texture_filter_anisotropic&&(ee=F.getParameter(_r));var ke=1,Ue=1;V.webgl_draw_buffers&&(ke=F.getParameter(Wn),Ue=F.getParameter($r));var Re=!!V.oes_texture_float;if(Re){var Ie=F.createTexture();F.bindTexture(un,Ie),F.texImage2D(un,0,lo,1,1,0,lo,Jo,null);var it=F.createFramebuffer();if(F.bindFramebuffer(es,it),F.framebufferTexture2D(es,fa,un,Ie,0),F.bindTexture(un,null),F.checkFramebufferStatus(es)!==Hu)Re=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(ud);var at=we.allocType(Jo,4);F.readPixels(0,0,1,1,lo,Jo,at),F.getError()?Re=!1:(F.deleteFramebuffer(it),F.deleteTexture(Ie),Re=at[0]===1),we.freeType(at)}}var lt=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),gt=!0;if(!lt){var Ft=F.createTexture(),Ot=we.allocType(uo,36);F.activeTexture(vi),F.bindTexture(vn,Ft),F.texImage2D(xn,0,lo,3,3,0,lo,uo,Ot),we.freeType(Ot),F.bindTexture(vn,null),F.deleteTexture(Ft),gt=!F.getError()}return{colorBits:[F.getParameter(Ve),F.getParameter(We),F.getParameter(Qe),F.getParameter(rt)],depthBits:F.getParameter(At),stencilBits:F.getParameter(wt),subpixelBits:F.getParameter(ge),extensions:Object.keys(V).filter(function(ct){return!!V[ct]}),maxAnisotropic:ee,maxDrawbuffers:ke,maxColorAttachments:Ue,pointSizeDims:F.getParameter(Ee),lineWidthDims:F.getParameter(Be),maxViewportDims:F.getParameter(_e),maxCombinedTextureUnits:F.getParameter(T),maxCubeMapSize:F.getParameter(Ne),maxRenderbufferSize:F.getParameter($e),maxTextureUnits:F.getParameter(U),maxTextureSize:F.getParameter(ht),maxAttributes:F.getParameter(j),maxVertexUniforms:F.getParameter(te),maxVertexTextureUnits:F.getParameter(P),maxVaryingVectors:F.getParameter(I),maxFragmentUniforms:F.getParameter(le),glsl:F.getParameter(cr),renderer:F.getParameter(Xt),vendor:F.getParameter(zt),version:F.getParameter(er),readFloat:Re,npotTextureCube:gt}},yr=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 zr(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)||yr(F.data))}var Pr=function(F){return Object.keys(F).map(function(V){return F[V]})},ir={shape:Ma,flatten:Qr};function Gn(F,V,ee){for(var ke=0;ke<V;++ke)ee[ke]=F[ke]}function tn(F,V,ee,ke){for(var Ue=0,Re=0;Re<V;++Re)for(var Ie=F[Re],it=0;it<ee;++it)ke[Ue++]=Ie[it]}function wn(F,V,ee,ke,Ue,Re){for(var Ie=Re,it=0;it<V;++it)for(var at=F[it],lt=0;lt<ee;++lt)for(var gt=at[lt],Ft=0;Ft<ke;++Ft)Ue[Ie++]=gt[Ft]}function ca(F,V,ee,ke,Ue){for(var Re=1,Ie=ee+1;Ie<V.length;++Ie)Re*=V[Ie];var it=V[ee];if(V.length-ee===4){var at=V[ee+1],lt=V[ee+2],gt=V[ee+3];for(Ie=0;Ie<it;++Ie)wn(F[Ie],at,lt,gt,ke,Ue),Ue+=Re}else for(Ie=0;Ie<it;++Ie)ca(F[Ie],V,ee+1,ke,Ue),Ue+=Re}function Qr(F,V,ee,ke){var Ue=1;if(V.length)for(var Re=0;Re<V.length;++Re)Ue*=V[Re];else Ue=0;var Ie=ke||we.allocType(ee,Ue);switch(V.length){case 0:break;case 1:Gn(F,V[0],Ie);break;case 2:tn(F,V[0],V[1],Ie);break;case 3:wn(F,V[0],V[1],V[2],Ie,0);break;default:ca(F,V,0,Ie,0)}return Ie}function Ma(F){for(var V=[],ee=F;ee.length;ee=ee[0])V.push(ee.length);return V}var Ri={"[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},rs=5120,fo=5122,Vu=5124,Na=5121,co=5123,da=5125,fd=5126,ug=5126,wl={int8:rs,int16:fo,int32:Vu,uint8:Na,uint16:co,uint32:da,float:fd,float32:ug},Yu=35048,cd=35040,Fa={dynamic:Yu,stream:cd,static:35044},gi=ir.flatten,Xu=ir.shape,Ku=35044,Oi=35040,_l=5121,Sl=5126,gn=[];gn[5120]=1,gn[5122]=2,gn[5124]=4,gn[5121]=1,gn[5123]=2,gn[5125]=4,gn[5126]=4;function po(F){return Ri[Object.prototype.toString.call(F)]|0}function dd(F,V){for(var ee=0;ee<V.length;++ee)F[ee]=V[ee]}function pd(F,V,ee,ke,Ue,Re,Ie){for(var it=0,at=0;at<ee;++at)for(var lt=0;lt<ke;++lt)F[it++]=V[Ue*at+Re*lt+Ie]}function fg(F,V,ee,ke){var Ue=0,Re={};function Ie(ye){this.id=Ue++,this.buffer=F.createBuffer(),this.type=ye,this.usage=Ku,this.byteLength=0,this.dimension=1,this.dtype=_l,this.persistentData=null,ee.profile&&(this.stats={size:0})}Ie.prototype.bind=function(){F.bindBuffer(this.type,this.buffer)},Ie.prototype.destroy=function(){Ot(this)};var it=[];function at(ye,Me){var nt=it.pop();return nt||(nt=new Ie(ye)),nt.bind(),Ft(nt,Me,Oi,0,1,!1),nt}function lt(ye){it.push(ye)}function gt(ye,Me,nt){ye.byteLength=Me.byteLength,F.bufferData(ye.type,Me,nt)}function Ft(ye,Me,nt,ot,Ye,bt){var pt;if(ye.usage=nt,Array.isArray(Me)){if(ye.dtype=ot||Sl,Me.length>0){var Lt;if(Array.isArray(Me[0])){pt=Xu(Me);for(var Xe=1,je=1;je<pt.length;++je)Xe*=pt[je];ye.dimension=Xe,Lt=gi(Me,pt,ye.dtype),gt(ye,Lt,nt),bt?ye.persistentData=Lt:we.freeType(Lt)}else if(typeof Me[0]=="number"){ye.dimension=Ye;var St=we.allocType(ye.dtype,Me.length);dd(St,Me),gt(ye,St,nt),bt?ye.persistentData=St:we.freeType(St)}else yr(Me[0])&&(ye.dimension=Me[0].length,ye.dtype=ot||po(Me[0])||Sl,Lt=gi(Me,[Me.length,Me[0].length],ye.dtype),gt(ye,Lt,nt),bt?ye.persistentData=Lt:we.freeType(Lt))}}else if(yr(Me))ye.dtype=ot||po(Me),ye.dimension=Ye,gt(ye,Me,nt),bt&&(ye.persistentData=new Uint8Array(new Uint8Array(Me.buffer)));else if(zr(Me)){pt=Me.shape;var De=Me.stride,mt=Me.offset,st=0,Bt=0,lr=0,Ct=0;pt.length===1?(st=pt[0],Bt=1,lr=De[0],Ct=0):pt.length===2&&(st=pt[0],Bt=pt[1],lr=De[0],Ct=De[1]),ye.dtype=ot||po(Me.data)||Sl,ye.dimension=Bt;var qt=we.allocType(ye.dtype,st*Bt);pd(qt,Me.data,st,Bt,lr,Ct,mt),gt(ye,qt,nt),bt?ye.persistentData=qt:we.freeType(qt)}else Me instanceof ArrayBuffer&&(ye.dtype=_l,ye.dimension=Ye,gt(ye,Me,nt),bt&&(ye.persistentData=new Uint8Array(new Uint8Array(Me))))}function Ot(ye){V.bufferCount--,ke(ye);var Me=ye.buffer;F.deleteBuffer(Me),ye.buffer=null,delete Re[ye.id]}function ct(ye,Me,nt,ot){V.bufferCount++;var Ye=new Ie(Me);Re[Ye.id]=Ye;function bt(Xe){var je=Ku,St=null,De=0,mt=0,st=1;return Array.isArray(Xe)||yr(Xe)||zr(Xe)||Xe instanceof ArrayBuffer?St=Xe:typeof Xe=="number"?De=Xe|0:Xe&&("data"in Xe&&(St=Xe.data),"usage"in Xe&&(je=Fa[Xe.usage]),"type"in Xe&&(mt=wl[Xe.type]),"dimension"in Xe&&(st=Xe.dimension|0),"length"in Xe&&(De=Xe.length|0)),Ye.bind(),St?Ft(Ye,St,je,mt,st,ot):(De&&F.bufferData(Ye.type,De,je),Ye.dtype=mt||_l,Ye.usage=je,Ye.dimension=st,Ye.byteLength=De),ee.profile&&(Ye.stats.size=Ye.byteLength*gn[Ye.dtype]),bt}function pt(Xe,je){F.bufferSubData(Ye.type,je,Xe)}function Lt(Xe,je){var St=(je||0)|0,De;if(Ye.bind(),yr(Xe)||Xe instanceof ArrayBuffer)pt(Xe,St);else if(Array.isArray(Xe)){if(Xe.length>0){if(typeof Xe[0]=="number"){var mt=we.allocType(Ye.dtype,Xe.length);dd(mt,Xe),pt(mt,St),we.freeType(mt)}else if(Array.isArray(Xe[0])||yr(Xe[0])){De=Xu(Xe);var st=gi(Xe,De,Ye.dtype);pt(st,St),we.freeType(st)}}}else if(zr(Xe)){De=Xe.shape;var Bt=Xe.stride,lr=0,Ct=0,qt=0,vt=0;De.length===1?(lr=De[0],Ct=1,qt=Bt[0],vt=0):De.length===2&&(lr=De[0],Ct=De[1],qt=Bt[0],vt=Bt[1]);var ur=Array.isArray(Xe.data)?Ye.dtype:po(Xe.data),hr=we.allocType(ur,lr*Ct);pd(hr,Xe.data,lr,Ct,qt,vt,Xe.offset),pt(hr,St),we.freeType(hr)}return bt}return nt||bt(ye),bt._reglType="buffer",bt._buffer=Ye,bt.subdata=Lt,ee.profile&&(bt.stats=Ye.stats),bt.destroy=function(){Ot(Ye)},bt}function tt(){Pr(Re).forEach(function(ye){ye.buffer=F.createBuffer(),F.bindBuffer(ye.type,ye.buffer),F.bufferData(ye.type,ye.persistentData||ye.byteLength,ye.usage)})}return ee.profile&&(V.getTotalBufferSize=function(){var ye=0;return Object.keys(Re).forEach(function(Me){ye+=Re[Me].stats.size}),ye}),{create:ct,createStream:at,destroyStream:lt,clear:function(){Pr(Re).forEach(Ot),it.forEach(Ot)},getBuffer:function(ye){return ye&&ye._buffer instanceof Ie?ye._buffer:null},restore:tt,_initBuffer:Ft}}var hd=0,cg=0,dg=1,vd=1,gd=4,md=4,_n={points:hd,point:cg,lines:dg,line:vd,triangles:gd,triangle:md,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},pg=0,Qu=1,La=4,ns=5120,ho=5121,yd=5122,vo=5123,Zu=5124,Ba=5125,is=34963,Er=35040,bd=35044;function Ju(F,V,ee,ke){var Ue={},Re=0,Ie={uint8:ho,uint16:vo};V.oes_element_index_uint&&(Ie.uint32=Ba);function it(tt){this.id=Re++,Ue[this.id]=this,this.buffer=tt,this.primType=La,this.vertCount=0,this.type=0}it.prototype.bind=function(){this.buffer.bind()};var at=[];function lt(tt){var ye=at.pop();return ye||(ye=new it(ee.create(null,is,!0,!1)._buffer)),Ft(ye,tt,Er,-1,-1,0,0),ye}function gt(tt){at.push(tt)}function Ft(tt,ye,Me,nt,ot,Ye,bt){tt.buffer.bind();var pt;if(ye){var Lt=bt;!bt&&(!yr(ye)||zr(ye)&&!yr(ye.data))&&(Lt=V.oes_element_index_uint?Ba:vo),ee._initBuffer(tt.buffer,ye,Me,Lt,3)}else F.bufferData(is,Ye,Me),tt.buffer.dtype=pt||ho,tt.buffer.usage=Me,tt.buffer.dimension=3,tt.buffer.byteLength=Ye;if(pt=bt,!bt){switch(tt.buffer.dtype){case ho:case ns:pt=ho;break;case vo:case yd:pt=vo;break;case Ba:case Zu:pt=Ba;break}tt.buffer.dtype=pt}tt.type=pt;var Xe=ot;Xe<0&&(Xe=tt.buffer.byteLength,pt===vo?Xe>>=1:pt===Ba&&(Xe>>=2)),tt.vertCount=Xe;var je=nt;if(nt<0){je=La;var St=tt.buffer.dimension;St===1&&(je=pg),St===2&&(je=Qu),St===3&&(je=La)}tt.primType=je}function Ot(tt){ke.elementsCount--,delete Ue[tt.id],tt.buffer.destroy(),tt.buffer=null}function ct(tt,ye){var Me=ee.create(null,is,!0),nt=new it(Me._buffer);ke.elementsCount++;function ot(Ye){if(!Ye)Me(),nt.primType=La,nt.vertCount=0,nt.type=ho;else if(typeof Ye=="number")Me(Ye),nt.primType=La,nt.vertCount=Ye|0,nt.type=ho;else{var bt=null,pt=bd,Lt=-1,Xe=-1,je=0,St=0;Array.isArray(Ye)||yr(Ye)||zr(Ye)?bt=Ye:("data"in Ye&&(bt=Ye.data),"usage"in Ye&&(pt=Fa[Ye.usage]),"primitive"in Ye&&(Lt=_n[Ye.primitive]),"count"in Ye&&(Xe=Ye.count|0),"type"in Ye&&(St=Ie[Ye.type]),"length"in Ye?je=Ye.length|0:(je=Xe,St===vo||St===yd?je*=2:(St===Ba||St===Zu)&&(je*=4))),Ft(nt,bt,pt,Lt,Xe,je,St)}return ot}return ot(tt),ot._reglType="elements",ot._elements=nt,ot.subdata=function(Ye,bt){return Me.subdata(Ye,bt),ot},ot.destroy=function(){Ot(nt)},ot}return{create:ct,createStream:lt,destroyStream:gt,getElements:function(tt){return typeof tt=="function"&&tt._elements instanceof it?tt._elements:null},clear:function(){Pr(Ue).forEach(Ot)}}}var hg=new Float32Array(1),qb=new Uint32Array(hg.buffer),ef=5123;function El(F){for(var V=we.allocType(ef,F.length),ee=0;ee<F.length;++ee)if(isNaN(F[ee]))V[ee]=65535;else if(F[ee]===1/0)V[ee]=31744;else if(F[ee]===-1/0)V[ee]=64512;else{hg[0]=F[ee];var ke=qb[0],Ue=ke>>>31<<15,Re=(ke<<1>>>24)-127,Ie=ke>>13&(1<<10)-1;if(Re<-24)V[ee]=Ue;else if(Re<-14){var it=-14-Re;V[ee]=Ue+(Ie+(1<<10)>>it)}else Re>15?V[ee]=Ue+31744:V[ee]=Ue+(Re+15<<10)+Ie}return V}function Ii(F){return Array.isArray(F)||yr(F)}var tf=34467,Pi=3553,as=34067,os=34069,$a=6408,rf=6406,pa=6407,ha=6409,Al=6410,vg=32854,ss=32855,nf=36194,xd=32819,gg=32820,ls=33635,go=34042,za=6402,Cl=34041,Tl=35904,mo=35906,yo=36193,wd=33776,af=33777,Rl=33778,_d=33779,mg=35986,Sd=35987,yg=34798,Ed=35840,bg=35841,Ad=35842,xg=35843,bo=36196,ki=5121,Cd=5123,Td=5125,Ol=5126,wg=10242,Il=10243,Hb=10497,us=33071,of=33648,Rd=10240,sf=10241,xo=9728,Pl=9729,lf=9984,uf=9985,_g=9986,fs=9987,Vb=33170,ff=4352,Yb=4353,Sg=4354,kl=34046,Xb=3317,Od=37440,Eg=37441,va=37443,Id=37444,wo=33984,Pd=[lf,_g,uf,fs],Gi=[0,ha,Al,pa,$a],ei={};ei[ha]=ei[rf]=ei[za]=1,ei[Cl]=ei[Al]=2,ei[pa]=ei[Tl]=3,ei[$a]=ei[mo]=4;function _o(F){return"[object "+F+"]"}var Ag=_o("HTMLCanvasElement"),Cg=_o("OffscreenCanvas"),Tg=_o("CanvasRenderingContext2D"),kd=_o("ImageBitmap"),Dd=_o("HTMLImageElement"),Rg=_o("HTMLVideoElement"),Kb=Object.keys(Ri).concat([Ag,Cg,Tg,kd,Dd,Rg]),cs=[];cs[ki]=1,cs[Ol]=4,cs[yo]=2,cs[Cd]=2,cs[Td]=4;var mn=[];mn[vg]=2,mn[ss]=2,mn[nf]=2,mn[Cl]=4,mn[wd]=.5,mn[af]=.5,mn[Rl]=1,mn[_d]=1,mn[mg]=.5,mn[Sd]=1,mn[yg]=1,mn[Ed]=.5,mn[bg]=.25,mn[Ad]=.5,mn[xg]=.25,mn[bo]=.5;function Og(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function Ig(F){if(!Array.isArray(F))return!1;var V=F.length;return!(V===0||!Ii(F[0]))}function So(F){return Object.prototype.toString.call(F)}function Pg(F){return So(F)===Ag}function kg(F){return So(F)===Cg}function Qb(F){return So(F)===Tg}function Zb(F){return So(F)===kd}function Jb(F){return So(F)===Dd}function ex(F){return So(F)===Rg}function cf(F){if(!F)return!1;var V=So(F);return Kb.indexOf(V)>=0?!0:Og(F)||Ig(F)||zr(F)}function Md(F){return Ri[Object.prototype.toString.call(F)]|0}function Dg(F,V){var ee=V.length;switch(F.type){case ki:case Cd:case Td:case Ol:var ke=we.allocType(F.type,ee);ke.set(V),F.data=ke;break;case yo:F.data=El(V);break}}function Nd(F,V){return we.allocType(F.type===yo?Ol:F.type,V)}function Mg(F,V){F.type===yo?(F.data=El(V),we.freeType(V)):F.data=V}function tx(F,V,ee,ke,Ue,Re){for(var Ie=F.width,it=F.height,at=F.channels,lt=Ie*it*at,gt=Nd(F,lt),Ft=0,Ot=0;Ot<it;++Ot)for(var ct=0;ct<Ie;++ct)for(var tt=0;tt<at;++tt)gt[Ft++]=V[ee*ct+ke*Ot+Ue*tt+Re];Mg(F,gt)}function ga(F,V,ee,ke,Ue,Re){var Ie;if(typeof mn[F]<"u"?Ie=mn[F]:Ie=ei[F]*cs[V],Re&&(Ie*=6),Ue){for(var it=0,at=ee;at>=1;)it+=Ie*at*at,at/=2;return it}else return Ie*ee*ke}function rx(F,V,ee,ke,Ue,Re,Ie){var it={"don't care":ff,"dont care":ff,nice:Sg,fast:Yb},at={repeat:Hb,clamp:us,mirror:of},lt={nearest:xo,linear:Pl},gt=r({mipmap:fs,"nearest mipmap nearest":lf,"linear mipmap nearest":uf,"nearest mipmap linear":_g,"linear mipmap linear":fs},lt),Ft={none:0,browser:Id},Ot={uint8:ki,rgba4:xd,rgb565:ls,"rgb5 a1":gg},ct={alpha:rf,luminance:ha,"luminance alpha":Al,rgb:pa,rgba:$a,rgba4:vg,"rgb5 a1":ss,rgb565:nf},tt={};V.ext_srgb&&(ct.srgb=Tl,ct.srgba=mo),V.oes_texture_float&&(Ot.float32=Ot.float=Ol),V.oes_texture_half_float&&(Ot.float16=Ot["half float"]=yo),V.webgl_depth_texture&&(r(ct,{depth:za,"depth stencil":Cl}),r(Ot,{uint16:Cd,uint32:Td,"depth stencil":go})),V.webgl_compressed_texture_s3tc&&r(tt,{"rgb s3tc dxt1":wd,"rgba s3tc dxt1":af,"rgba s3tc dxt3":Rl,"rgba s3tc dxt5":_d}),V.webgl_compressed_texture_atc&&r(tt,{"rgb atc":mg,"rgba atc explicit alpha":Sd,"rgba atc interpolated alpha":yg}),V.webgl_compressed_texture_pvrtc&&r(tt,{"rgb pvrtc 4bppv1":Ed,"rgb pvrtc 2bppv1":bg,"rgba pvrtc 4bppv1":Ad,"rgba pvrtc 2bppv1":xg}),V.webgl_compressed_texture_etc1&&(tt["rgb etc1"]=bo);var ye=Array.prototype.slice.call(F.getParameter(tf));Object.keys(tt).forEach(function(K){var Oe=tt[K];ye.indexOf(Oe)>=0&&(ct[K]=Oe)});var Me=Object.keys(ct);ee.textureFormats=Me;var nt=[];Object.keys(ct).forEach(function(K){var Oe=ct[K];nt[Oe]=K});var ot=[];Object.keys(Ot).forEach(function(K){var Oe=Ot[K];ot[Oe]=K});var Ye=[];Object.keys(lt).forEach(function(K){var Oe=lt[K];Ye[Oe]=K});var bt=[];Object.keys(gt).forEach(function(K){var Oe=gt[K];bt[Oe]=K});var pt=[];Object.keys(at).forEach(function(K){var Oe=at[K];pt[Oe]=K});var Lt=Me.reduce(function(K,Oe){var Te=ct[Oe];return Te===ha||Te===rf||Te===ha||Te===Al||Te===za||Te===Cl||V.ext_srgb&&(Te===Tl||Te===mo)?K[Te]=Te:Te===ss||Oe.indexOf("rgba")>=0?K[Te]=$a:K[Te]=pa,K},{});function Xe(){this.internalformat=$a,this.format=$a,this.type=ki,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Id,this.width=0,this.height=0,this.channels=0}function je(K,Oe){K.internalformat=Oe.internalformat,K.format=Oe.format,K.type=Oe.type,K.compressed=Oe.compressed,K.premultiplyAlpha=Oe.premultiplyAlpha,K.flipY=Oe.flipY,K.unpackAlignment=Oe.unpackAlignment,K.colorSpace=Oe.colorSpace,K.width=Oe.width,K.height=Oe.height,K.channels=Oe.channels}function St(K,Oe){if(!(typeof Oe!="object"||!Oe)){if("premultiplyAlpha"in Oe&&(K.premultiplyAlpha=Oe.premultiplyAlpha),"flipY"in Oe&&(K.flipY=Oe.flipY),"alignment"in Oe&&(K.unpackAlignment=Oe.alignment),"colorSpace"in Oe&&(K.colorSpace=Ft[Oe.colorSpace]),"type"in Oe){var Te=Oe.type;K.type=Ot[Te]}var Pt=K.width,fr=K.height,Gr=K.channels,kt=!1;"shape"in Oe?(Pt=Oe.shape[0],fr=Oe.shape[1],Oe.shape.length===3&&(Gr=Oe.shape[2],kt=!0)):("radius"in Oe&&(Pt=fr=Oe.radius),"width"in Oe&&(Pt=Oe.width),"height"in Oe&&(fr=Oe.height),"channels"in Oe&&(Gr=Oe.channels,kt=!0)),K.width=Pt|0,K.height=fr|0,K.channels=Gr|0;var q=!1;if("format"in Oe){var Y=Oe.format,ie=K.internalformat=ct[Y];K.format=Lt[ie],Y in Ot&&("type"in Oe||(K.type=Ot[Y])),Y in tt&&(K.compressed=!0),q=!0}!kt&&q?K.channels=ei[K.format]:kt&&!q&&K.channels!==Gi[K.format]&&(K.format=K.internalformat=Gi[K.channels])}}function De(K){F.pixelStorei(Od,K.flipY),F.pixelStorei(Eg,K.premultiplyAlpha),F.pixelStorei(va,K.colorSpace),F.pixelStorei(Xb,K.unpackAlignment)}function mt(){Xe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function st(K,Oe){var Te=null;if(cf(Oe)?Te=Oe:Oe&&(St(K,Oe),"x"in Oe&&(K.xOffset=Oe.x|0),"y"in Oe&&(K.yOffset=Oe.y|0),cf(Oe.data)&&(Te=Oe.data)),Oe.copy){var Pt=Ue.viewportWidth,fr=Ue.viewportHeight;K.width=K.width||Pt-K.xOffset,K.height=K.height||fr-K.yOffset,K.needsCopy=!0}else if(!Te)K.width=K.width||1,K.height=K.height||1,K.channels=K.channels||4;else if(yr(Te))K.channels=K.channels||4,K.data=Te,!("type"in Oe)&&K.type===ki&&(K.type=Md(Te));else if(Og(Te))K.channels=K.channels||4,Dg(K,Te),K.alignment=1,K.needsFree=!0;else if(zr(Te)){var Gr=Te.data;!Array.isArray(Gr)&&K.type===ki&&(K.type=Md(Gr));var kt=Te.shape,q=Te.stride,Y,ie,Pe,Ae,be,me;kt.length===3?(Pe=kt[2],me=q[2]):(Pe=1,me=1),Y=kt[0],ie=kt[1],Ae=q[0],be=q[1],K.alignment=1,K.width=Y,K.height=ie,K.channels=Pe,K.format=K.internalformat=Gi[Pe],K.needsFree=!0,tx(K,Gr,Ae,be,me,Te.offset)}else if(Pg(Te)||kg(Te)||Qb(Te))Pg(Te)||kg(Te)?K.element=Te:K.element=Te.canvas,K.width=K.element.width,K.height=K.element.height,K.channels=4;else if(Zb(Te))K.element=Te,K.width=Te.width,K.height=Te.height,K.channels=4;else if(Jb(Te))K.element=Te,K.width=Te.naturalWidth,K.height=Te.naturalHeight,K.channels=4;else if(ex(Te))K.element=Te,K.width=Te.videoWidth,K.height=Te.videoHeight,K.channels=4;else if(Ig(Te)){var pe=K.width||Te[0].length,J=K.height||Te.length,oe=K.channels;Ii(Te[0][0])?oe=oe||Te[0][0].length:oe=oe||1;for(var Z=ir.shape(Te),Ce=1,Le=0;Le<Z.length;++Le)Ce*=Z[Le];var Ke=Nd(K,Ce);ir.flatten(Te,Z,"",Ke),Mg(K,Ke),K.alignment=1,K.width=pe,K.height=J,K.channels=oe,K.format=K.internalformat=Gi[oe],K.needsFree=!0}K.type===Ol||K.type}function Bt(K,Oe,Te){var Pt=K.element,fr=K.data,Gr=K.internalformat,kt=K.format,q=K.type,Y=K.width,ie=K.height;De(K),Pt?F.texImage2D(Oe,Te,kt,kt,q,Pt):K.compressed?F.compressedTexImage2D(Oe,Te,Gr,Y,ie,0,fr):K.needsCopy?(ke(),F.copyTexImage2D(Oe,Te,kt,K.xOffset,K.yOffset,Y,ie,0)):F.texImage2D(Oe,Te,kt,Y,ie,0,kt,q,fr||null)}function lr(K,Oe,Te,Pt,fr){var Gr=K.element,kt=K.data,q=K.internalformat,Y=K.format,ie=K.type,Pe=K.width,Ae=K.height;De(K),Gr?F.texSubImage2D(Oe,fr,Te,Pt,Y,ie,Gr):K.compressed?F.compressedTexSubImage2D(Oe,fr,Te,Pt,q,Pe,Ae,kt):K.needsCopy?(ke(),F.copyTexSubImage2D(Oe,fr,Te,Pt,K.xOffset,K.yOffset,Pe,Ae)):F.texSubImage2D(Oe,fr,Te,Pt,Pe,Ae,Y,ie,kt)}var Ct=[];function qt(){return Ct.pop()||new mt}function vt(K){K.needsFree&&we.freeType(K.data),mt.call(K),Ct.push(K)}function ur(){Xe.call(this),this.genMipmaps=!1,this.mipmapHint=ff,this.mipmask=0,this.images=Array(16)}function hr(K,Oe,Te){var Pt=K.images[0]=qt();K.mipmask=1,Pt.width=K.width=Oe,Pt.height=K.height=Te,Pt.channels=K.channels=4}function br(K,Oe){var Te=null;if(cf(Oe))Te=K.images[0]=qt(),je(Te,K),st(Te,Oe),K.mipmask=1;else if(St(K,Oe),Array.isArray(Oe.mipmap))for(var Pt=Oe.mipmap,fr=0;fr<Pt.length;++fr)Te=K.images[fr]=qt(),je(Te,K),Te.width>>=fr,Te.height>>=fr,st(Te,Pt[fr]),K.mipmask|=1<<fr;else Te=K.images[0]=qt(),je(Te,K),st(Te,Oe),K.mipmask=1;je(K,K.images[0]),K.compressed&&(K.internalformat===wd||K.internalformat===af||K.internalformat===Rl||K.internalformat)}function An(K,Oe){for(var Te=K.images,Pt=0;Pt<Te.length;++Pt){if(!Te[Pt])return;Bt(Te[Pt],Oe,Pt)}}var vr=[];function yi(){var K=vr.pop()||new ur;Xe.call(K),K.mipmask=0;for(var Oe=0;Oe<16;++Oe)K.images[Oe]=null;return K}function Lr(K){for(var Oe=K.images,Te=0;Te<Oe.length;++Te)Oe[Te]&&vt(Oe[Te]),Oe[Te]=null;vr.push(K)}function Hn(){this.minFilter=xo,this.magFilter=xo,this.wrapS=us,this.wrapT=us,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=ff}function bi(K,Oe){if("min"in Oe){var Te=Oe.min;K.minFilter=gt[Te],Pd.indexOf(K.minFilter)>=0&&!("faces"in Oe)&&(K.genMipmaps=!0)}if("mag"in Oe){var Pt=Oe.mag;K.magFilter=lt[Pt]}var fr=K.wrapS,Gr=K.wrapT;if("wrap"in Oe){var kt=Oe.wrap;typeof kt=="string"?fr=Gr=at[kt]:Array.isArray(kt)&&(fr=at[kt[0]],Gr=at[kt[1]])}else{if("wrapS"in Oe){var q=Oe.wrapS;fr=at[q]}if("wrapT"in Oe){var Y=Oe.wrapT;Gr=at[Y]}}if(K.wrapS=fr,K.wrapT=Gr,"anisotropic"in Oe&&(Oe.anisotropic,K.anisotropic=Oe.anisotropic),"mipmap"in Oe){var ie=!1;switch(typeof Oe.mipmap){case"string":K.mipmapHint=it[Oe.mipmap],K.genMipmaps=!0,ie=!0;break;case"boolean":ie=K.genMipmaps=Oe.mipmap;break;case"object":K.genMipmaps=!1,ie=!0;break}ie&&!("min"in Oe)&&(K.minFilter=lf)}}function ri(K,Oe){F.texParameteri(Oe,sf,K.minFilter),F.texParameteri(Oe,Rd,K.magFilter),F.texParameteri(Oe,wg,K.wrapS),F.texParameteri(Oe,Il,K.wrapT),V.ext_texture_filter_anisotropic&&F.texParameteri(Oe,kl,K.anisotropic),K.genMipmaps&&(F.hint(Vb,K.mipmapHint),F.generateMipmap(Oe))}var xa=0,Cn={},Tn=ee.maxTextureUnits,rr=Array(Tn).map(function(){return null});function Fi(K){Xe.call(this),this.mipmask=0,this.internalformat=$a,this.id=xa++,this.refCount=1,this.target=K,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Hn,Ie.profile&&(this.stats={size:0})}function kr(K){F.activeTexture(wo),F.bindTexture(K.target,K.texture)}function Rn(){var K=rr[0];K?F.bindTexture(K.target,K.texture):F.bindTexture(Pi,null)}function li(K){var Oe=K.texture,Te=K.unit,Pt=K.target;Te>=0&&(F.activeTexture(wo+Te),F.bindTexture(Pt,null),rr[Te]=null),F.deleteTexture(Oe),K.texture=null,K.params=null,K.pixels=null,K.refCount=0,delete Cn[K.id],Re.textureCount--}r(Fi.prototype,{bind:function(){var K=this;K.bindCount+=1;var Oe=K.unit;if(Oe<0){for(var Te=0;Te<Tn;++Te){var Pt=rr[Te];if(Pt){if(Pt.bindCount>0)continue;Pt.unit=-1}rr[Te]=K,Oe=Te;break}Ie.profile&&Re.maxTextureUnits<Oe+1&&(Re.maxTextureUnits=Oe+1),K.unit=Oe,F.activeTexture(wo+Oe),F.bindTexture(K.target,K.texture)}return Oe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&li(this)}});function ui(K,Oe){var Te=new Fi(Pi);Cn[Te.id]=Te,Re.textureCount++;function Pt(kt,q){var Y=Te.texInfo;Hn.call(Y);var ie=yi();return typeof kt=="number"?typeof q=="number"?hr(ie,kt|0,q|0):hr(ie,kt|0,kt|0):kt?(bi(Y,kt),br(ie,kt)):hr(ie,1,1),Y.genMipmaps&&(ie.mipmask=(ie.width<<1)-1),Te.mipmask=ie.mipmask,je(Te,ie),Te.internalformat=ie.internalformat,Pt.width=ie.width,Pt.height=ie.height,kr(Te),An(ie,Pi),ri(Y,Pi),Rn(),Lr(ie),Ie.profile&&(Te.stats.size=ga(Te.internalformat,Te.type,ie.width,ie.height,Y.genMipmaps,!1)),Pt.format=nt[Te.internalformat],Pt.type=ot[Te.type],Pt.mag=Ye[Y.magFilter],Pt.min=bt[Y.minFilter],Pt.wrapS=pt[Y.wrapS],Pt.wrapT=pt[Y.wrapT],Pt}function fr(kt,q,Y,ie){var Pe=q|0,Ae=Y|0,be=ie|0,me=qt();return je(me,Te),me.width=0,me.height=0,st(me,kt),me.width=me.width||(Te.width>>be)-Pe,me.height=me.height||(Te.height>>be)-Ae,kr(Te),lr(me,Pi,Pe,Ae,be),Rn(),vt(me),Pt}function Gr(kt,q){var Y=kt|0,ie=q|0||Y;if(Y===Te.width&&ie===Te.height)return Pt;Pt.width=Te.width=Y,Pt.height=Te.height=ie,kr(Te);for(var Pe=0;Te.mipmask>>Pe;++Pe){var Ae=Y>>Pe,be=ie>>Pe;if(!Ae||!be)break;F.texImage2D(Pi,Pe,Te.format,Ae,be,0,Te.format,Te.type,null)}return Rn(),Ie.profile&&(Te.stats.size=ga(Te.internalformat,Te.type,Y,ie,!1,!1)),Pt}return Pt(K,Oe),Pt.subimage=fr,Pt.resize=Gr,Pt._reglType="texture2d",Pt._texture=Te,Ie.profile&&(Pt.stats=Te.stats),Pt.destroy=function(){Te.decRef()},Pt}function or(K,Oe,Te,Pt,fr,Gr){var kt=new Fi(as);Cn[kt.id]=kt,Re.cubeCount++;var q=new Array(6);function Y(Ae,be,me,pe,J,oe){var Z,Ce=kt.texInfo;for(Hn.call(Ce),Z=0;Z<6;++Z)q[Z]=yi();if(typeof Ae=="number"||!Ae){var Le=Ae|0||1;for(Z=0;Z<6;++Z)hr(q[Z],Le,Le)}else if(typeof Ae=="object")if(be)br(q[0],Ae),br(q[1],be),br(q[2],me),br(q[3],pe),br(q[4],J),br(q[5],oe);else if(bi(Ce,Ae),St(kt,Ae),"faces"in Ae){var Ke=Ae.faces;for(Z=0;Z<6;++Z)je(q[Z],kt),br(q[Z],Ke[Z])}else for(Z=0;Z<6;++Z)br(q[Z],Ae);for(je(kt,q[0]),Ce.genMipmaps?kt.mipmask=(q[0].width<<1)-1:kt.mipmask=q[0].mipmask,kt.internalformat=q[0].internalformat,Y.width=q[0].width,Y.height=q[0].height,kr(kt),Z=0;Z<6;++Z)An(q[Z],os+Z);for(ri(Ce,as),Rn(),Ie.profile&&(kt.stats.size=ga(kt.internalformat,kt.type,Y.width,Y.height,Ce.genMipmaps,!0)),Y.format=nt[kt.internalformat],Y.type=ot[kt.type],Y.mag=Ye[Ce.magFilter],Y.min=bt[Ce.minFilter],Y.wrapS=pt[Ce.wrapS],Y.wrapT=pt[Ce.wrapT],Z=0;Z<6;++Z)Lr(q[Z]);return Y}function ie(Ae,be,me,pe,J){var oe=me|0,Z=pe|0,Ce=J|0,Le=qt();return je(Le,kt),Le.width=0,Le.height=0,st(Le,be),Le.width=Le.width||(kt.width>>Ce)-oe,Le.height=Le.height||(kt.height>>Ce)-Z,kr(kt),lr(Le,os+Ae,oe,Z,Ce),Rn(),vt(Le),Y}function Pe(Ae){var be=Ae|0;if(be!==kt.width){Y.width=kt.width=be,Y.height=kt.height=be,kr(kt);for(var me=0;me<6;++me)for(var pe=0;kt.mipmask>>pe;++pe)F.texImage2D(os+me,pe,kt.format,be>>pe,be>>pe,0,kt.format,kt.type,null);return Rn(),Ie.profile&&(kt.stats.size=ga(kt.internalformat,kt.type,Y.width,Y.height,!1,!0)),Y}}return Y(K,Oe,Te,Pt,fr,Gr),Y.subimage=ie,Y.resize=Pe,Y._reglType="textureCube",Y._texture=kt,Ie.profile&&(Y.stats=kt.stats),Y.destroy=function(){kt.decRef()},Y}function gr(){for(var K=0;K<Tn;++K)F.activeTexture(wo+K),F.bindTexture(Pi,null),rr[K]=null;Pr(Cn).forEach(li),Re.cubeCount=0,Re.textureCount=0}Ie.profile&&(Re.getTotalTextureSize=function(){var K=0;return Object.keys(Cn).forEach(function(Oe){K+=Cn[Oe].stats.size}),K});function Ur(){for(var K=0;K<Tn;++K){var Oe=rr[K];Oe&&(Oe.bindCount=0,Oe.unit=-1,rr[K]=null)}Pr(Cn).forEach(function(Te){Te.texture=F.createTexture(),F.bindTexture(Te.target,Te.texture);for(var Pt=0;Pt<32;++Pt)if((Te.mipmask&1<<Pt)!==0)if(Te.target===Pi)F.texImage2D(Pi,Pt,Te.internalformat,Te.width>>Pt,Te.height>>Pt,0,Te.internalformat,Te.type,null);else for(var fr=0;fr<6;++fr)F.texImage2D(os+fr,Pt,Te.internalformat,Te.width>>Pt,Te.height>>Pt,0,Te.internalformat,Te.type,null);ri(Te.texInfo,Te.target)})}function On(){for(var K=0;K<Tn;++K){var Oe=rr[K];Oe&&(Oe.bindCount=0,Oe.unit=-1,rr[K]=null),F.activeTexture(wo+K),F.bindTexture(Pi,null),F.bindTexture(as,null)}}return{create2D:ui,createCube:or,clear:gr,getTexture:function(K){return null},restore:Ur,refresh:On}}var Ua=36161,df=32854,Ng=32855,Fd=36194,Fg=33189,Lg=36168,Bg=34041,Ld=35907,$g=34836,zg=34842,Ug=34843,Di=[];Di[df]=2,Di[Ng]=2,Di[Fd]=2,Di[Fg]=2,Di[Lg]=1,Di[Bg]=4,Di[Ld]=4,Di[$g]=16,Di[zg]=8,Di[Ug]=6;function jg(F,V,ee){return Di[F]*V*ee}var Wg=function(F,V,ee,ke,Ue){var Re={rgba4:df,rgb565:Fd,"rgb5 a1":Ng,depth:Fg,stencil:Lg,"depth stencil":Bg};V.ext_srgb&&(Re.srgba=Ld),V.ext_color_buffer_half_float&&(Re.rgba16f=zg,Re.rgb16f=Ug),V.webgl_color_buffer_float&&(Re.rgba32f=$g);var Ie=[];Object.keys(Re).forEach(function(ct){var tt=Re[ct];Ie[tt]=ct});var it=0,at={};function lt(ct){this.id=it++,this.refCount=1,this.renderbuffer=ct,this.format=df,this.width=0,this.height=0,Ue.profile&&(this.stats={size:0})}lt.prototype.decRef=function(){--this.refCount<=0&&gt(this)};function gt(ct){var tt=ct.renderbuffer;F.bindRenderbuffer(Ua,null),F.deleteRenderbuffer(tt),ct.renderbuffer=null,ct.refCount=0,delete at[ct.id],ke.renderbufferCount--}function Ft(ct,tt){var ye=new lt(F.createRenderbuffer());at[ye.id]=ye,ke.renderbufferCount++;function Me(ot,Ye){var bt=0,pt=0,Lt=df;if(typeof ot=="object"&&ot){var Xe=ot;if("shape"in Xe){var je=Xe.shape;bt=je[0]|0,pt=je[1]|0}else"radius"in Xe&&(bt=pt=Xe.radius|0),"width"in Xe&&(bt=Xe.width|0),"height"in Xe&&(pt=Xe.height|0);"format"in Xe&&(Lt=Re[Xe.format])}else typeof ot=="number"?(bt=ot|0,typeof Ye=="number"?pt=Ye|0:pt=bt):ot||(bt=pt=1);if(!(bt===ye.width&&pt===ye.height&&Lt===ye.format))return Me.width=ye.width=bt,Me.height=ye.height=pt,ye.format=Lt,F.bindRenderbuffer(Ua,ye.renderbuffer),F.renderbufferStorage(Ua,Lt,bt,pt),Ue.profile&&(ye.stats.size=jg(ye.format,ye.width,ye.height)),Me.format=Ie[ye.format],Me}function nt(ot,Ye){var bt=ot|0,pt=Ye|0||bt;return bt===ye.width&&pt===ye.height||(Me.width=ye.width=bt,Me.height=ye.height=pt,F.bindRenderbuffer(Ua,ye.renderbuffer),F.renderbufferStorage(Ua,ye.format,bt,pt),Ue.profile&&(ye.stats.size=jg(ye.format,ye.width,ye.height))),Me}return Me(ct,tt),Me.resize=nt,Me._reglType="renderbuffer",Me._renderbuffer=ye,Ue.profile&&(Me.stats=ye.stats),Me.destroy=function(){ye.decRef()},Me}Ue.profile&&(ke.getTotalRenderbufferSize=function(){var ct=0;return Object.keys(at).forEach(function(tt){ct+=at[tt].stats.size}),ct});function Ot(){Pr(at).forEach(function(ct){ct.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(Ua,ct.renderbuffer),F.renderbufferStorage(Ua,ct.format,ct.width,ct.height)}),F.bindRenderbuffer(Ua,null)}return{create:Ft,clear:function(){Pr(at).forEach(gt)},restore:Ot}},ma=36160,Bd=36161,ds=3553,ps=34069,hs=36064,Mi=36096,Gg=36128,qg=33306,nx=36053,ix=36193,Hg=5121,ax=5126,ox=6407,sx=6408,$d=[];$d[sx]=4,$d[ox]=3;var pf=[];pf[Hg]=1,pf[ax]=4,pf[ix]=2;function zd(F,V,ee,ke,Ue,Re){var Ie={cur:null,next:null,dirty:!1,setFBO:null},it=["rgba"],at=["rgba4","rgb565","rgb5 a1"];V.ext_srgb&&at.push("srgba"),V.ext_color_buffer_half_float&&at.push("rgba16f","rgb16f"),V.webgl_color_buffer_float&&at.push("rgba32f"),V.oes_texture_half_float,V.oes_texture_float;function lt(De,mt,st){this.target=De,this.texture=mt,this.renderbuffer=st;var Bt=0,lr=0;mt?(Bt=mt.width,lr=mt.height):st&&(Bt=st.width,lr=st.height),this.width=Bt,this.height=lr}function gt(De){De&&(De.texture&&De.texture._texture.decRef(),De.renderbuffer&&De.renderbuffer._renderbuffer.decRef())}function Ft(De,mt,st){if(!!De)if(De.texture){var Bt=De.texture._texture;Math.max(1,Bt.width),Math.max(1,Bt.height),Bt.refCount+=1}else{var lr=De.renderbuffer._renderbuffer;lr.refCount+=1}}function Ot(De,mt){mt&&(mt.texture?F.framebufferTexture2D(ma,De,mt.target,mt.texture._texture.texture,0):F.framebufferRenderbuffer(ma,De,Bd,mt.renderbuffer._renderbuffer.renderbuffer))}function ct(De){var mt=ds,st=null,Bt=null,lr=De;typeof De=="object"&&(lr=De.data,"target"in De&&(mt=De.target|0));var Ct=lr._reglType;return Ct==="texture2d"||Ct==="textureCube"?st=lr:Ct==="renderbuffer"&&(Bt=lr,mt=Bd),new lt(mt,st,Bt)}function tt(De,mt,st,Bt,lr){if(st){var Ct=ke.create2D({width:De,height:mt,format:Bt,type:lr});return Ct._texture.refCount=0,new lt(ds,Ct,null)}else{var qt=Ue.create({width:De,height:mt,format:Bt});return qt._renderbuffer.refCount=0,new lt(Bd,null,qt)}}function ye(De){return De&&(De.texture||De.renderbuffer)}function Me(De,mt,st){De&&(De.texture?De.texture.resize(mt,st):De.renderbuffer&&De.renderbuffer.resize(mt,st),De.width=mt,De.height=st)}var nt=0,ot={};function Ye(){this.id=nt++,ot[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 bt(De){De.colorAttachments.forEach(gt),gt(De.depthAttachment),gt(De.stencilAttachment),gt(De.depthStencilAttachment)}function pt(De){var mt=De.framebuffer;F.deleteFramebuffer(mt),De.framebuffer=null,Re.framebufferCount--,delete ot[De.id]}function Lt(De){var mt;F.bindFramebuffer(ma,De.framebuffer);var st=De.colorAttachments;for(mt=0;mt<st.length;++mt)Ot(hs+mt,st[mt]);for(mt=st.length;mt<ee.maxColorAttachments;++mt)F.framebufferTexture2D(ma,hs+mt,ds,null,0);F.framebufferTexture2D(ma,qg,ds,null,0),F.framebufferTexture2D(ma,Mi,ds,null,0),F.framebufferTexture2D(ma,Gg,ds,null,0),Ot(Mi,De.depthAttachment),Ot(Gg,De.stencilAttachment),Ot(qg,De.depthStencilAttachment);var Bt=F.checkFramebufferStatus(ma);F.isContextLost(),F.bindFramebuffer(ma,Ie.next?Ie.next.framebuffer:null),Ie.cur=Ie.next,F.getError()}function Xe(De,mt){var st=new Ye;Re.framebufferCount++;function Bt(Ct,qt){var vt,ur=0,hr=0,br=!0,An=!0,vr=null,yi=!0,Lr="rgba",Hn="uint8",bi=1,ri=null,xa=null,Cn=null,Tn=!1;if(typeof Ct=="number")ur=Ct|0,hr=qt|0||ur;else if(!Ct)ur=hr=1;else{var rr=Ct;if("shape"in rr){var Fi=rr.shape;ur=Fi[0],hr=Fi[1]}else"radius"in rr&&(ur=hr=rr.radius),"width"in rr&&(ur=rr.width),"height"in rr&&(hr=rr.height);("color"in rr||"colors"in rr)&&(vr=rr.color||rr.colors),vr||("colorCount"in rr&&(bi=rr.colorCount|0),"colorTexture"in rr&&(yi=!!rr.colorTexture,Lr="rgba4"),"colorType"in rr&&(Hn=rr.colorType,yi||(Hn==="half float"||Hn==="float16"?Lr="rgba16f":(Hn==="float"||Hn==="float32")&&(Lr="rgba32f"))),"colorFormat"in rr&&(Lr=rr.colorFormat,it.indexOf(Lr)>=0?yi=!0:at.indexOf(Lr)>=0&&(yi=!1))),("depthTexture"in rr||"depthStencilTexture"in rr)&&(Tn=!!(rr.depthTexture||rr.depthStencilTexture)),"depth"in rr&&(typeof rr.depth=="boolean"?br=rr.depth:(ri=rr.depth,An=!1)),"stencil"in rr&&(typeof rr.stencil=="boolean"?An=rr.stencil:(xa=rr.stencil,br=!1)),"depthStencil"in rr&&(typeof rr.depthStencil=="boolean"?br=An=rr.depthStencil:(Cn=rr.depthStencil,br=!1,An=!1))}var kr=null,Rn=null,li=null,ui=null;if(Array.isArray(vr))kr=vr.map(ct);else if(vr)kr=[ct(vr)];else for(kr=new Array(bi),vt=0;vt<bi;++vt)kr[vt]=tt(ur,hr,yi,Lr,Hn);for(ur=ur||kr[0].width,hr=hr||kr[0].height,ri?Rn=ct(ri):br&&!An&&(Rn=tt(ur,hr,Tn,"depth","uint32")),xa?li=ct(xa):An&&!br&&(li=tt(ur,hr,!1,"stencil","uint8")),Cn?ui=ct(Cn):!ri&&!xa&&An&&br&&(ui=tt(ur,hr,Tn,"depth stencil","depth stencil")),vt=0;vt<kr.length;++vt)Ft(kr[vt]),kr[vt]&&kr[vt].texture&&$d[kr[vt].texture._texture.format]*pf[kr[vt].texture._texture.type];return Ft(Rn),Ft(li),Ft(ui),bt(st),st.width=ur,st.height=hr,st.colorAttachments=kr,st.depthAttachment=Rn,st.stencilAttachment=li,st.depthStencilAttachment=ui,Bt.color=kr.map(ye),Bt.depth=ye(Rn),Bt.stencil=ye(li),Bt.depthStencil=ye(ui),Bt.width=st.width,Bt.height=st.height,Lt(st),Bt}function lr(Ct,qt){var vt=Math.max(Ct|0,1),ur=Math.max(qt|0||vt,1);if(vt===st.width&&ur===st.height)return Bt;for(var hr=st.colorAttachments,br=0;br<hr.length;++br)Me(hr[br],vt,ur);return Me(st.depthAttachment,vt,ur),Me(st.stencilAttachment,vt,ur),Me(st.depthStencilAttachment,vt,ur),st.width=Bt.width=vt,st.height=Bt.height=ur,Lt(st),Bt}return Bt(De,mt),r(Bt,{resize:lr,_reglType:"framebuffer",_framebuffer:st,destroy:function(){pt(st),bt(st)},use:function(Ct){Ie.setFBO({framebuffer:Bt},Ct)}})}function je(De){var mt=Array(6);function st(lr){var Ct,qt={color:null},vt=0,ur=null,hr="rgba",br="uint8",An=1;if(typeof lr=="number")vt=lr|0;else if(!lr)vt=1;else{var vr=lr;if("shape"in vr){var yi=vr.shape;vt=yi[0]}else"radius"in vr&&(vt=vr.radius|0),"width"in vr?vt=vr.width|0:"height"in vr&&(vt=vr.height|0);("color"in vr||"colors"in vr)&&(ur=vr.color||vr.colors),ur||("colorCount"in vr&&(An=vr.colorCount|0),"colorType"in vr&&(br=vr.colorType),"colorFormat"in vr&&(hr=vr.colorFormat)),"depth"in vr&&(qt.depth=vr.depth),"stencil"in vr&&(qt.stencil=vr.stencil),"depthStencil"in vr&&(qt.depthStencil=vr.depthStencil)}var Lr;if(ur)if(Array.isArray(ur))for(Lr=[],Ct=0;Ct<ur.length;++Ct)Lr[Ct]=ur[Ct];else Lr=[ur];else{Lr=Array(An);var Hn={radius:vt,format:hr,type:br};for(Ct=0;Ct<An;++Ct)Lr[Ct]=ke.createCube(Hn)}for(qt.color=Array(Lr.length),Ct=0;Ct<Lr.length;++Ct){var bi=Lr[Ct];vt=vt||bi.width,qt.color[Ct]={target:ps,data:Lr[Ct]}}for(Ct=0;Ct<6;++Ct){for(var ri=0;ri<Lr.length;++ri)qt.color[ri].target=ps+Ct;Ct>0&&(qt.depth=mt[0].depth,qt.stencil=mt[0].stencil,qt.depthStencil=mt[0].depthStencil),mt[Ct]?mt[Ct](qt):mt[Ct]=Xe(qt)}return r(st,{width:vt,height:vt,color:Lr})}function Bt(lr){var Ct,qt=lr|0;if(qt===st.width)return st;var vt=st.color;for(Ct=0;Ct<vt.length;++Ct)vt[Ct].resize(qt);for(Ct=0;Ct<6;++Ct)mt[Ct].resize(qt);return st.width=st.height=qt,st}return st(De),r(st,{faces:mt,resize:Bt,_reglType:"framebufferCube",destroy:function(){mt.forEach(function(lr){lr.destroy()})}})}function St(){Ie.cur=null,Ie.next=null,Ie.dirty=!0,Pr(ot).forEach(function(De){De.framebuffer=F.createFramebuffer(),Lt(De)})}return r(Ie,{getFramebuffer:function(De){if(typeof De=="function"&&De._reglType==="framebuffer"){var mt=De._framebuffer;if(mt instanceof Ye)return mt}return null},create:Xe,createCube:je,clear:function(){Pr(ot).forEach(pt)},restore:St})}var Ud=5126,Vg=34962,hf=34963;function jd(){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=Ud,this.offset=0,this.stride=0,this.divisor=0}function lx(F,V,ee,ke,Ue,Re,Ie){for(var it=ee.maxAttributes,at=new Array(it),lt=0;lt<it;++lt)at[lt]=new jd;var gt=0,Ft={},Ot={Record:jd,scope:{},state:at,currentVAO:null,targetVAO:null,restore:tt()?pt:function(){},createVAO:Lt,getVAO:Me,destroyBuffer:ct,setVAO:tt()?nt:ot,clear:tt()?Ye:function(){}};function ct(Xe){for(var je=0;je<at.length;++je){var St=at[je];St.buffer===Xe&&(F.disableVertexAttribArray(je),St.buffer=null)}}function tt(){return V.oes_vertex_array_object}function ye(){return V.angle_instanced_arrays}function Me(Xe){return typeof Xe=="function"&&Xe._vao?Xe._vao:null}function nt(Xe){if(Xe!==Ot.currentVAO){var je=tt();Xe?je.bindVertexArrayOES(Xe.vao):je.bindVertexArrayOES(null),Ot.currentVAO=Xe}}function ot(Xe){if(Xe!==Ot.currentVAO){if(Xe)Xe.bindAttrs();else{for(var je=ye(),St=0;St<at.length;++St){var De=at[St];De.buffer?(F.enableVertexAttribArray(St),De.buffer.bind(),F.vertexAttribPointer(St,De.size,De.type,De.normalized,De.stride,De.offfset),je&&De.divisor&&je.vertexAttribDivisorANGLE(St,De.divisor)):(F.disableVertexAttribArray(St),F.vertexAttrib4f(St,De.x,De.y,De.z,De.w))}Ie.elements?F.bindBuffer(hf,Ie.elements.buffer.buffer):F.bindBuffer(hf,null)}Ot.currentVAO=Xe}}function Ye(){Pr(Ft).forEach(function(Xe){Xe.destroy()})}function bt(){this.id=++gt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var Xe=tt();Xe?this.vao=Xe.createVertexArrayOES():this.vao=null,Ft[this.id]=this,this.buffers=[]}bt.prototype.bindAttrs=function(){for(var Xe=ye(),je=this.attributes,St=0;St<je.length;++St){var De=je[St];De.buffer?(F.enableVertexAttribArray(St),F.bindBuffer(Vg,De.buffer.buffer),F.vertexAttribPointer(St,De.size,De.type,De.normalized,De.stride,De.offset),Xe&&De.divisor&&Xe.vertexAttribDivisorANGLE(St,De.divisor)):(F.disableVertexAttribArray(St),F.vertexAttrib4f(St,De.x,De.y,De.z,De.w))}for(var mt=je.length;mt<it;++mt)F.disableVertexAttribArray(mt);var st=Re.getElements(this.elements);st?F.bindBuffer(hf,st.buffer.buffer):F.bindBuffer(hf,null)},bt.prototype.refresh=function(){var Xe=tt();Xe&&(Xe.bindVertexArrayOES(this.vao),this.bindAttrs(),Ot.currentVAO=null,Xe.bindVertexArrayOES(null))},bt.prototype.destroy=function(){if(this.vao){var Xe=tt();this===Ot.currentVAO&&(Ot.currentVAO=null,Xe.bindVertexArrayOES(null)),Xe.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Ft[this.id]&&(delete Ft[this.id],ke.vaoCount-=1)};function pt(){var Xe=tt();Xe&&Pr(Ft).forEach(function(je){je.refresh()})}function Lt(Xe){var je=new bt;ke.vaoCount+=1;function St(De){var mt;if(Array.isArray(De))mt=De,je.elements&&je.ownsElements&&je.elements.destroy(),je.elements=null,je.ownsElements=!1,je.offset=0,je.count=0,je.instances=-1,je.primitive=4;else{if(De.elements){var st=De.elements;je.ownsElements?typeof st=="function"&&st._reglType==="elements"?(je.elements.destroy(),je.ownsElements=!1):(je.elements(st),je.ownsElements=!1):Re.getElements(De.elements)?(je.elements=De.elements,je.ownsElements=!1):(je.elements=Re.create(De.elements),je.ownsElements=!0)}else je.elements=null,je.ownsElements=!1;mt=De.attributes,je.offset=0,je.count=-1,je.instances=-1,je.primitive=4,je.elements&&(je.count=je.elements._elements.vertCount,je.primitive=je.elements._elements.primType),"offset"in De&&(je.offset=De.offset|0),"count"in De&&(je.count=De.count|0),"instances"in De&&(je.instances=De.instances|0),"primitive"in De&&(je.primitive=_n[De.primitive])}var Bt={},lr=je.attributes;lr.length=mt.length;for(var Ct=0;Ct<mt.length;++Ct){var qt=mt[Ct],vt=lr[Ct]=new jd,ur=qt.data||qt;if(Array.isArray(ur)||yr(ur)||zr(ur)){var hr;je.buffers[Ct]&&(hr=je.buffers[Ct],yr(ur)&&hr._buffer.byteLength>=ur.byteLength?hr.subdata(ur):(hr.destroy(),je.buffers[Ct]=null)),je.buffers[Ct]||(hr=je.buffers[Ct]=Ue.create(qt,Vg,!1,!0)),vt.buffer=Ue.getBuffer(hr),vt.size=vt.buffer.dimension|0,vt.normalized=!1,vt.type=vt.buffer.dtype,vt.offset=0,vt.stride=0,vt.divisor=0,vt.state=1,Bt[Ct]=1}else Ue.getBuffer(qt)?(vt.buffer=Ue.getBuffer(qt),vt.size=vt.buffer.dimension|0,vt.normalized=!1,vt.type=vt.buffer.dtype,vt.offset=0,vt.stride=0,vt.divisor=0,vt.state=1):Ue.getBuffer(qt.buffer)?(vt.buffer=Ue.getBuffer(qt.buffer),vt.size=(+qt.size||vt.buffer.dimension)|0,vt.normalized=!!qt.normalized||!1,"type"in qt?vt.type=wl[qt.type]:vt.type=vt.buffer.dtype,vt.offset=(qt.offset||0)|0,vt.stride=(qt.stride||0)|0,vt.divisor=(qt.divisor||0)|0,vt.state=1):"x"in qt&&(vt.x=+qt.x||0,vt.y=+qt.y||0,vt.z=+qt.z||0,vt.w=+qt.w||0,vt.state=2)}for(var br=0;br<je.buffers.length;++br)!Bt[br]&&je.buffers[br]&&(je.buffers[br].destroy(),je.buffers[br]=null);return je.refresh(),St}return St.destroy=function(){for(var De=0;De<je.buffers.length;++De)je.buffers[De]&&je.buffers[De].destroy();je.buffers.length=0,je.ownsElements&&(je.elements.destroy(),je.elements=null,je.ownsElements=!1),je.destroy()},St._vao=je,St._reglType="vao",St(Xe)}return Ot}var Wd=35632,ux=35633,fx=35718,Gd=35721;function Yg(F,V,ee,ke){var Ue={},Re={};function Ie(ye,Me,nt,ot){this.name=ye,this.id=Me,this.location=nt,this.info=ot}function it(ye,Me){for(var nt=0;nt<ye.length;++nt)if(ye[nt].id===Me.id){ye[nt].location=Me.location;return}ye.push(Me)}function at(ye,Me,nt){var ot=ye===Wd?Ue:Re,Ye=ot[Me];if(!Ye){var bt=V.str(Me);Ye=F.createShader(ye),F.shaderSource(Ye,bt),F.compileShader(Ye),ot[Me]=Ye}return Ye}var lt={},gt=[],Ft=0;function Ot(ye,Me){this.id=Ft++,this.fragId=ye,this.vertId=Me,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,ke.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function ct(ye,Me,nt){var ot,Ye,bt=at(Wd,ye.fragId),pt=at(ux,ye.vertId),Lt=ye.program=F.createProgram();if(F.attachShader(Lt,bt),F.attachShader(Lt,pt),nt)for(ot=0;ot<nt.length;++ot){var Xe=nt[ot];F.bindAttribLocation(Lt,Xe[0],Xe[1])}F.linkProgram(Lt);var je=F.getProgramParameter(Lt,fx);ke.profile&&(ye.stats.uniformsCount=je);var St=ye.uniforms;for(ot=0;ot<je;++ot)if(Ye=F.getActiveUniform(Lt,ot),Ye)if(Ye.size>1)for(var De=0;De<Ye.size;++De){var mt=Ye.name.replace("[0]","["+De+"]");it(St,new Ie(mt,V.id(mt),F.getUniformLocation(Lt,mt),Ye))}else it(St,new Ie(Ye.name,V.id(Ye.name),F.getUniformLocation(Lt,Ye.name),Ye));var st=F.getProgramParameter(Lt,Gd);ke.profile&&(ye.stats.attributesCount=st);var Bt=ye.attributes;for(ot=0;ot<st;++ot)Ye=F.getActiveAttrib(Lt,ot),Ye&&it(Bt,new Ie(Ye.name,V.id(Ye.name),F.getAttribLocation(Lt,Ye.name),Ye))}ke.profile&&(ee.getMaxUniformsCount=function(){var ye=0;return gt.forEach(function(Me){Me.stats.uniformsCount>ye&&(ye=Me.stats.uniformsCount)}),ye},ee.getMaxAttributesCount=function(){var ye=0;return gt.forEach(function(Me){Me.stats.attributesCount>ye&&(ye=Me.stats.attributesCount)}),ye});function tt(){Ue={},Re={};for(var ye=0;ye<gt.length;++ye)ct(gt[ye],null,gt[ye].attributes.map(function(Me){return[Me.location,Me.name]}))}return{clear:function(){var ye=F.deleteShader.bind(F);Pr(Ue).forEach(ye),Ue={},Pr(Re).forEach(ye),Re={},gt.forEach(function(Me){F.deleteProgram(Me.program)}),gt.length=0,lt={},ee.shaderCount=0},program:function(ye,Me,nt,ot){var Ye=lt[Me];Ye||(Ye=lt[Me]={});var bt=Ye[ye];if(bt&&(bt.refCount++,!ot))return bt;var pt=new Ot(Me,ye);return ee.shaderCount++,ct(pt,nt,ot),bt||(Ye[ye]=pt),gt.push(pt),r(pt,{destroy:function(){if(pt.refCount--,pt.refCount<=0){F.deleteProgram(pt.program);var Lt=gt.indexOf(pt);gt.splice(Lt,1),ee.shaderCount--}Ye[pt.vertId].refCount<=0&&(F.deleteShader(Re[pt.vertId]),delete Re[pt.vertId],delete lt[pt.fragId][pt.vertId]),Object.keys(lt[pt.fragId]).length||(F.deleteShader(Ue[pt.fragId]),delete Ue[pt.fragId],delete lt[pt.fragId])}})},restore:tt,shader:at,frag:-1,vert:-1}}var Xg=6408,qd=5121,cx=3333,dx=5126;function Kg(F,V,ee,ke,Ue,Re,Ie){function it(gt){var Ft;V.next===null?Ft=qd:Ft=V.next.colorAttachments[0].texture._texture.type;var Ot=0,ct=0,tt=ke.framebufferWidth,ye=ke.framebufferHeight,Me=null;yr(gt)?Me=gt:gt&&(Ot=gt.x|0,ct=gt.y|0,tt=(gt.width||ke.framebufferWidth-Ot)|0,ye=(gt.height||ke.framebufferHeight-ct)|0,Me=gt.data||null),ee();var nt=tt*ye*4;return Me||(Ft===qd?Me=new Uint8Array(nt):Ft===dx&&(Me=Me||new Float32Array(nt))),F.pixelStorei(cx,4),F.readPixels(Ot,ct,tt,ye,Xg,Ft,Me),Me}function at(gt){var Ft;return V.setFBO({framebuffer:gt.framebuffer},function(){Ft=it(gt)}),Ft}function lt(gt){return!gt||!("framebuffer"in gt)?it(gt):at(gt)}return lt}function Qg(F){return Hd(Zg(Vd(F)))}function Zg(F){return hx(gx(px(F),F.length*8))}function Hd(F){for(var V="0123456789abcdef",ee="",ke,Ue=0;Ue<F.length;Ue++)ke=F.charCodeAt(Ue),ee+=V.charAt(ke>>>4&15)+V.charAt(ke&15);return ee}function Vd(F){for(var V="",ee=-1,ke,Ue;++ee<F.length;)ke=F.charCodeAt(ee),Ue=ee+1<F.length?F.charCodeAt(ee+1):0,55296<=ke&&ke<=56319&&56320<=Ue&&Ue<=57343&&(ke=65536+((ke&1023)<<10)+(Ue&1023),ee++),ke<=127?V+=String.fromCharCode(ke):ke<=2047?V+=String.fromCharCode(192|ke>>>6&31,128|ke&63):ke<=65535?V+=String.fromCharCode(224|ke>>>12&15,128|ke>>>6&63,128|ke&63):ke<=2097151&&(V+=String.fromCharCode(240|ke>>>18&7,128|ke>>>12&63,128|ke>>>6&63,128|ke&63));return V}function px(F){for(var V=Array(F.length>>2),ee=0;ee<V.length;ee++)V[ee]=0;for(var ee=0;ee<F.length*8;ee+=8)V[ee>>5]|=(F.charCodeAt(ee/8)&255)<<24-ee%32;return V}function hx(F){for(var V="",ee=0;ee<F.length*32;ee+=8)V+=String.fromCharCode(F[ee>>5]>>>24-ee%32&255);return V}function qi(F,V){return F>>>V|F<<32-V}function Jg(F,V){return F>>>V}function vx(F,V,ee){return F&V^~F&ee}function em(F,V,ee){return F&V^F&ee^V&ee}function tm(F){return qi(F,2)^qi(F,13)^qi(F,22)}function Yd(F){return qi(F,6)^qi(F,11)^qi(F,25)}function rm(F){return qi(F,7)^qi(F,18)^Jg(F,3)}function vf(F){return qi(F,17)^qi(F,19)^Jg(F,10)}var gf=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 gx(F,V){var ee=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),ke=new Array(64),Ue,Re,Ie,it,at,lt,gt,Ft,Ot,ct,tt,ye;for(F[V>>5]|=128<<24-V%32,F[(V+64>>9<<4)+15]=V,Ot=0;Ot<F.length;Ot+=16){for(Ue=ee[0],Re=ee[1],Ie=ee[2],it=ee[3],at=ee[4],lt=ee[5],gt=ee[6],Ft=ee[7],ct=0;ct<64;ct++)ct<16?ke[ct]=F[ct+Ot]:ke[ct]=an(an(an(vf(ke[ct-2]),ke[ct-7]),rm(ke[ct-15])),ke[ct-16]),tt=an(an(an(an(Ft,Yd(at)),vx(at,lt,gt)),gf[ct]),ke[ct]),ye=an(tm(Ue),em(Ue,Re,Ie)),Ft=gt,gt=lt,lt=at,at=an(it,tt),it=Ie,Ie=Re,Re=Ue,Ue=an(tt,ye);ee[0]=an(Ue,ee[0]),ee[1]=an(Re,ee[1]),ee[2]=an(Ie,ee[2]),ee[3]=an(it,ee[3]),ee[4]=an(at,ee[4]),ee[5]=an(lt,ee[5]),ee[6]=an(gt,ee[6]),ee[7]=an(Ft,ee[7])}return ee}function an(F,V){var ee=(F&65535)+(V&65535),ke=(F>>16)+(V>>16)+(ee>>16);return ke<<16|ee&65535}function Eo(F){return Array.prototype.slice.call(F)}function vs(F){return Eo(F).join("")}function mx(F){var V=F&&F.cache,ee=0,ke=[],Ue=[],Re=[];function Ie(tt,ye){var Me=ye&&ye.stable;if(!Me){for(var nt=0;nt<Ue.length;++nt)if(Ue[nt]===tt&&!Re[nt])return ke[nt]}var ot="g"+ee++;return ke.push(ot),Ue.push(tt),Re.push(Me),ot}function it(){var tt=[];function ye(){tt.push.apply(tt,Eo(arguments))}var Me=[];function nt(){var ot="v"+ee++;return Me.push(ot),arguments.length>0&&(tt.push(ot,"="),tt.push.apply(tt,Eo(arguments)),tt.push(";")),ot}return r(ye,{def:nt,toString:function(){return vs([Me.length>0?"var "+Me.join(",")+";":"",vs(tt)])}})}function at(){var tt=it(),ye=it(),Me=tt.toString,nt=ye.toString;function ot(Ye,bt){ye(Ye,bt,"=",tt.def(Ye,bt),";")}return r(function(){tt.apply(tt,Eo(arguments))},{def:tt.def,entry:tt,exit:ye,save:ot,set:function(Ye,bt,pt){ot(Ye,bt),tt(Ye,bt,"=",pt,";")},toString:function(){return Me()+nt()}})}function lt(){var tt=vs(arguments),ye=at(),Me=at(),nt=ye.toString,ot=Me.toString;return r(ye,{then:function(){return ye.apply(ye,Eo(arguments)),this},else:function(){return Me.apply(Me,Eo(arguments)),this},toString:function(){var Ye=ot();return Ye&&(Ye="else{"+Ye+"}"),vs(["if(",tt,"){",nt(),"}",Ye])}})}var gt=it(),Ft={};function Ot(tt,ye){var Me=[];function nt(){var Lt="a"+Me.length;return Me.push(Lt),Lt}ye=ye||0;for(var ot=0;ot<ye;++ot)nt();var Ye=at(),bt=Ye.toString,pt=Ft[tt]=r(Ye,{arg:nt,toString:function(){return vs(["function(",Me.join(),"){",bt(),"}"])}});return pt}function ct(){var tt=['"use strict";',gt,"return {"];Object.keys(Ft).forEach(function(ot){tt.push('"',ot,'":',Ft[ot].toString(),",")}),tt.push("}");var ye=vs(tt).replace(/;/g,`;
1160
+ `).replace(/}/g,`}
1161
+ `).replace(/{/g,`{
1162
+ `),Me;if(V&&(Me=Qg(ye),V[Me]))return V[Me].apply(null,Ue);var nt=Function.apply(null,ke.concat(ye));return V&&(V[Me]=nt),nt.apply(null,Ue)}return{global:gt,link:Ie,block:it,proc:Ot,scope:at,cond:lt,compile:ct}}var Ao="xyzw".split(""),Xd=5121,Co=1,Dl=2,Ml=0,mf=1,Kd=2,yf=3,To=4,Qd=5,nm=6,im="dither",am="blend.enable",om="blend.color",bf="blend.equation",xf="blend.func",Zd="depth.enable",Jd="depth.func",sm="depth.range",Nl="depth.mask",ep="colorMask",lm="cull.enable",tp="cull.face",wf="frontFace",rp="lineWidth",Fl="polygonOffset.enable",gs="polygonOffset.offset",np="sample.alpha",ip="sample.enable",Ll="sample.coverage",mi="stencil.enable",ap="stencil.mask",op="stencil.func",Bl="stencil.opFront",Ro="stencil.opBack",um="scissor.enable",_f="scissor.box",ya="viewport",Oo="profile",ja="framebuffer",$l="vert",Sf="frag",ms="elements",ys="primitive",Sn="count",Ef="offset",Af="instances",Ni="vao",zl="Width",Ul="Height",bs=ja+zl,xs=ja+Ul,yx=ya+zl,fm=ya+Ul,sp="drawingBuffer",lp=sp+zl,up=sp+Ul,bx=[xf,bf,op,Bl,Ro,Ll,ya,_f,gs],Io=34962,fp=34963,xx=2884,wx=3042,cm=3024,dm=2960,Cf=2929,pm=3089,Tf=32823,hm=32926,jl=32928,Zr=5126,Rf=35664,ba=35665,ws=35666,Of=5124,cp=35667,Wl=35668,_s=35669,dp=35670,pp=35671,hp=35672,vp=35673,gp=35674,Gl=35675,mp=35676,yp=35678,l=35680,c=4,v=1028,m=1029,b=2304,_=2305,O=32775,R=32776,N=519,B=7680,$=0,W=1,G=32774,se=513,ue=36160,H=36064,Q={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},ne={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},fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},de={cw:b,ccw:_};function ae(F){return Array.isArray(F)||yr(F)||zr(F)}function He(F){return F.sort(function(V,ee){return V===ya?-1:ee===ya?1:V<ee?-1:1})}function Je(F,V,ee,ke){this.thisDep=F,this.contextDep=V,this.propDep=ee,this.append=ke}function ut(F){return F&&!(F.thisDep||F.contextDep||F.propDep)}function et(F){return new Je(!1,!1,!1,F)}function dt(F,V){var ee=F.type;if(ee===Ml){var ke=F.data.length;return new Je(!0,ke>=1,ke>=2,V)}else if(ee===To){var Ue=F.data;return new Je(Ue.thisDep,Ue.contextDep,Ue.propDep,V)}else{if(ee===Qd)return new Je(!1,!1,!1,V);if(ee===nm){for(var Re=!1,Ie=!1,it=!1,at=0;at<F.data.length;++at){var lt=F.data[at];if(lt.type===mf)it=!0;else if(lt.type===Kd)Ie=!0;else if(lt.type===yf)Re=!0;else if(lt.type===Ml){Re=!0;var gt=lt.data;gt>=1&&(Ie=!0),gt>=2&&(it=!0)}else lt.type===To&&(Re=Re||lt.data.thisDep,Ie=Ie||lt.data.contextDep,it=it||lt.data.propDep)}return new Je(Re,Ie,it,V)}else return new Je(ee===yf,ee===Kd,ee===mf,V)}}var _t=new Je(!1,!1,!1,function(){});function Kt(F,V,ee,ke,Ue,Re,Ie,it,at,lt,gt,Ft,Ot,ct,tt,ye){var Me=lt.Record,nt={add:32774,subtract:32778,"reverse subtract":32779};ee.ext_blend_minmax&&(nt.min=O,nt.max=R);var ot=ee.angle_instanced_arrays,Ye=ee.webgl_draw_buffers,bt=ee.oes_vertex_array_object,pt={dirty:!0,profile:ye.profile},Lt={},Xe=[],je={},St={};function De(q){return q.replace(".","_")}function mt(q,Y,ie){var Pe=De(q);Xe.push(q),Lt[Pe]=pt[Pe]=!!ie,je[Pe]=Y}function st(q,Y,ie){var Pe=De(q);Xe.push(q),Array.isArray(ie)?(pt[Pe]=ie.slice(),Lt[Pe]=ie.slice()):pt[Pe]=Lt[Pe]=ie,St[Pe]=Y}function Bt(q){return!!isNaN(q)}mt(im,cm),mt(am,wx),st(om,"blendColor",[0,0,0,0]),st(bf,"blendEquationSeparate",[G,G]),st(xf,"blendFuncSeparate",[W,$,W,$]),mt(Zd,Cf,!0),st(Jd,"depthFunc",se),st(sm,"depthRange",[0,1]),st(Nl,"depthMask",!0),st(ep,ep,[!0,!0,!0,!0]),mt(lm,xx),st(tp,"cullFace",m),st(wf,wf,_),st(rp,rp,1),mt(Fl,Tf),st(gs,"polygonOffset",[0,0]),mt(np,hm),mt(ip,jl),st(Ll,"sampleCoverage",[1,!1]),mt(mi,dm),st(ap,"stencilMask",-1),st(op,"stencilFunc",[N,0,-1]),st(Bl,"stencilOpSeparate",[v,B,B,B]),st(Ro,"stencilOpSeparate",[m,B,B,B]),mt(um,pm),st(_f,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),st(ya,ya,[0,0,F.drawingBufferWidth,F.drawingBufferHeight]);var lr={gl:F,context:Ot,strings:V,next:Lt,current:pt,draw:Ft,elements:Re,buffer:Ue,shader:gt,attributes:lt.state,vao:lt,uniforms:at,framebuffer:it,extensions:ee,timer:ct,isBufferArgs:ae},Ct={primTypes:_n,compareFuncs:ne,blendFuncs:Q,blendEquations:nt,stencilOps:fe,glTypes:wl,orientationType:de};Ye&&(Ct.backBuffer=[m],Ct.drawBuffer=X(ke.maxDrawbuffers,function(q){return q===0?[0]:X(q,function(Y){return H+Y})}));var qt=0;function vt(){var q=mx({cache:tt}),Y=q.link,ie=q.global;q.id=qt++,q.batchId="0";var Pe=Y(lr),Ae=q.shared={props:"a0"};Object.keys(lr).forEach(function(oe){Ae[oe]=ie.def(Pe,".",oe)});var be=q.next={},me=q.current={};Object.keys(St).forEach(function(oe){Array.isArray(pt[oe])&&(be[oe]=ie.def(Ae.next,".",oe),me[oe]=ie.def(Ae.current,".",oe))});var pe=q.constants={};Object.keys(Ct).forEach(function(oe){pe[oe]=ie.def(JSON.stringify(Ct[oe]))}),q.invoke=function(oe,Z){switch(Z.type){case Ml:var Ce=["this",Ae.context,Ae.props,q.batchId];return oe.def(Y(Z.data),".call(",Ce.slice(0,Math.max(Z.data.length+1,4)),")");case mf:return oe.def(Ae.props,Z.data);case Kd:return oe.def(Ae.context,Z.data);case yf:return oe.def("this",Z.data);case To:return Z.data.append(q,oe),Z.data.ref;case Qd:return Z.data.toString();case nm:return Z.data.map(function(Le){return q.invoke(oe,Le)})}},q.attribCache={};var J={};return q.scopeAttrib=function(oe){var Z=V.id(oe);if(Z in J)return J[Z];var Ce=lt.scope[Z];Ce||(Ce=lt.scope[Z]=new Me);var Le=J[Z]=Y(Ce);return Le},q}function ur(q){var Y=q.static,ie=q.dynamic,Pe;if(Oo in Y){var Ae=!!Y[Oo];Pe=et(function(me,pe){return Ae}),Pe.enable=Ae}else if(Oo in ie){var be=ie[Oo];Pe=dt(be,function(me,pe){return me.invoke(pe,be)})}return Pe}function hr(q,Y){var ie=q.static,Pe=q.dynamic;if(ja in ie){var Ae=ie[ja];return Ae?(Ae=it.getFramebuffer(Ae),et(function(me,pe){var J=me.link(Ae),oe=me.shared;pe.set(oe.framebuffer,".next",J);var Z=oe.context;return pe.set(Z,"."+bs,J+".width"),pe.set(Z,"."+xs,J+".height"),J})):et(function(me,pe){var J=me.shared;pe.set(J.framebuffer,".next","null");var oe=J.context;return pe.set(oe,"."+bs,oe+"."+lp),pe.set(oe,"."+xs,oe+"."+up),"null"})}else if(ja in Pe){var be=Pe[ja];return dt(be,function(me,pe){var J=me.invoke(pe,be),oe=me.shared,Z=oe.framebuffer,Ce=pe.def(Z,".getFramebuffer(",J,")");pe.set(Z,".next",Ce);var Le=oe.context;return pe.set(Le,"."+bs,Ce+"?"+Ce+".width:"+Le+"."+lp),pe.set(Le,"."+xs,Ce+"?"+Ce+".height:"+Le+"."+up),Ce})}else return null}function br(q,Y,ie){var Pe=q.static,Ae=q.dynamic;function be(J){if(J in Pe){var oe=Pe[J],Z=!0,Ce=oe.x|0,Le=oe.y|0,Ke,jt;return"width"in oe?Ke=oe.width|0:Z=!1,"height"in oe?jt=oe.height|0:Z=!1,new Je(!Z&&Y&&Y.thisDep,!Z&&Y&&Y.contextDep,!Z&&Y&&Y.propDep,function($t,It){var Wt=$t.shared.context,Rt=Ke;"width"in oe||(Rt=It.def(Wt,".",bs,"-",Ce));var Dt=jt;return"height"in oe||(Dt=It.def(Wt,".",xs,"-",Le)),[Ce,Le,Rt,Dt]})}else if(J in Ae){var Nt=Ae[J],Et=dt(Nt,function($t,It){var Wt=$t.invoke(It,Nt),Rt=$t.shared.context,Dt=It.def(Wt,".x|0"),Mt=It.def(Wt,".y|0"),Jt=It.def('"width" in ',Wt,"?",Wt,".width|0:","(",Rt,".",bs,"-",Dt,")"),qr=It.def('"height" in ',Wt,"?",Wt,".height|0:","(",Rt,".",xs,"-",Mt,")");return[Dt,Mt,Jt,qr]});return Y&&(Et.thisDep=Et.thisDep||Y.thisDep,Et.contextDep=Et.contextDep||Y.contextDep,Et.propDep=Et.propDep||Y.propDep),Et}else return Y?new Je(Y.thisDep,Y.contextDep,Y.propDep,function($t,It){var Wt=$t.shared.context;return[0,0,It.def(Wt,".",bs),It.def(Wt,".",xs)]}):null}var me=be(ya);if(me){var pe=me;me=new Je(me.thisDep,me.contextDep,me.propDep,function(J,oe){var Z=pe.append(J,oe),Ce=J.shared.context;return oe.set(Ce,"."+yx,Z[2]),oe.set(Ce,"."+fm,Z[3]),Z})}return{viewport:me,scissor_box:be(_f)}}function An(q,Y){var ie=q.static,Pe=typeof ie[Sf]=="string"&&typeof ie[$l]=="string";if(Pe){if(Object.keys(Y.dynamic).length>0)return null;var Ae=Y.static,be=Object.keys(Ae);if(be.length>0&&typeof Ae[be[0]]=="number"){for(var me=[],pe=0;pe<be.length;++pe)me.push([Ae[be[pe]]|0,be[pe]]);return me}}return null}function vr(q,Y,ie){var Pe=q.static,Ae=q.dynamic;function be(Z){if(Z in Pe){var Ce=V.id(Pe[Z]),Le=et(function(){return Ce});return Le.id=Ce,Le}else if(Z in Ae){var Ke=Ae[Z];return dt(Ke,function(jt,Nt){var Et=jt.invoke(Nt,Ke),$t=Nt.def(jt.shared.strings,".id(",Et,")");return $t})}return null}var me=be(Sf),pe=be($l),J=null,oe;return ut(me)&&ut(pe)?(J=gt.program(pe.id,me.id,null,ie),oe=et(function(Z,Ce){return Z.link(J)})):oe=new Je(me&&me.thisDep||pe&&pe.thisDep,me&&me.contextDep||pe&&pe.contextDep,me&&me.propDep||pe&&pe.propDep,function(Z,Ce){var Le=Z.shared.shader,Ke;me?Ke=me.append(Z,Ce):Ke=Ce.def(Le,".",Sf);var jt;pe?jt=pe.append(Z,Ce):jt=Ce.def(Le,".",$l);var Nt=Le+".program("+jt+","+Ke;return Ce.def(Nt+")")}),{frag:me,vert:pe,progVar:oe,program:J}}function yi(q,Y){var ie=q.static,Pe=q.dynamic,Ae={},be=!1;function me(){if(Ni in ie){var It=ie[Ni];return It!==null&&lt.getVAO(It)===null&&(It=lt.createVAO(It)),be=!0,Ae.vao=It,et(function(Rt){var Dt=lt.getVAO(It);return Dt?Rt.link(Dt):"null"})}else if(Ni in Pe){be=!0;var Wt=Pe[Ni];return dt(Wt,function(Rt,Dt){var Mt=Rt.invoke(Dt,Wt);return Dt.def(Rt.shared.vao+".getVAO("+Mt+")")})}return null}var pe=me(),J=!1;function oe(){if(ms in ie){var It=ie[ms];if(Ae.elements=It,ae(It)){var Wt=Ae.elements=Re.create(It,!0);It=Re.getElements(Wt),J=!0}else It&&(It=Re.getElements(It),J=!0);var Rt=et(function(Mt,Jt){if(It){var qr=Mt.link(It);return Mt.ELEMENTS=qr,qr}return Mt.ELEMENTS=null,null});return Rt.value=It,Rt}else if(ms in Pe){J=!0;var Dt=Pe[ms];return dt(Dt,function(Mt,Jt){var qr=Mt.shared,xi=qr.isBufferArgs,Po=qr.elements,Ss=Mt.invoke(Jt,Dt),Es=Jt.def("null"),Hi=Jt.def(xi,"(",Ss,")"),bp=Mt.cond(Hi).then(Es,"=",Po,".createStream(",Ss,");").else(Es,"=",Po,".getElements(",Ss,");");return Jt.entry(bp),Jt.exit(Mt.cond(Hi).then(Po,".destroyStream(",Es,");")),Mt.ELEMENTS=Es,Es})}else if(be)return new Je(pe.thisDep,pe.contextDep,pe.propDep,function(Mt,Jt){return Jt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.elements+".getElements("+Mt.shared.vao+".currentVAO.elements):null")});return null}var Z=oe();function Ce(){if(ys in ie){var It=ie[ys];return Ae.primitive=It,et(function(Rt,Dt){return _n[It]})}else if(ys in Pe){var Wt=Pe[ys];return dt(Wt,function(Rt,Dt){var Mt=Rt.constants.primTypes,Jt=Rt.invoke(Dt,Wt);return Dt.def(Mt,"[",Jt,"]")})}else{if(J)return ut(Z)?Z.value?et(function(Rt,Dt){return Dt.def(Rt.ELEMENTS,".primType")}):et(function(){return c}):new Je(Z.thisDep,Z.contextDep,Z.propDep,function(Rt,Dt){var Mt=Rt.ELEMENTS;return Dt.def(Mt,"?",Mt,".primType:",c)});if(be)return new Je(pe.thisDep,pe.contextDep,pe.propDep,function(Rt,Dt){return Dt.def(Rt.shared.vao+".currentVAO?"+Rt.shared.vao+".currentVAO.primitive:"+c)})}return null}function Le(It,Wt){if(It in ie){var Rt=ie[It]|0;return Wt?Ae.offset=Rt:Ae.instances=Rt,et(function(Mt,Jt){return Wt&&(Mt.OFFSET=Rt),Rt})}else if(It in Pe){var Dt=Pe[It];return dt(Dt,function(Mt,Jt){var qr=Mt.invoke(Jt,Dt);return Wt&&(Mt.OFFSET=qr),qr})}else if(Wt){if(J)return et(function(Mt,Jt){return Mt.OFFSET=0,0});if(be)return new Je(pe.thisDep,pe.contextDep,pe.propDep,function(Mt,Jt){return Jt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.offset:0")})}else if(be)return new Je(pe.thisDep,pe.contextDep,pe.propDep,function(Mt,Jt){return Jt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.instances:-1")});return null}var Ke=Le(Ef,!0);function jt(){if(Sn in ie){var It=ie[Sn]|0;return Ae.count=It,et(function(){return It})}else if(Sn in Pe){var Wt=Pe[Sn];return dt(Wt,function(Jt,qr){var xi=Jt.invoke(qr,Wt);return xi})}else if(J)if(ut(Z)){if(Z)return Ke?new Je(Ke.thisDep,Ke.contextDep,Ke.propDep,function(Jt,qr){var xi=qr.def(Jt.ELEMENTS,".vertCount-",Jt.OFFSET);return xi}):et(function(Jt,qr){return qr.def(Jt.ELEMENTS,".vertCount")});var Rt=et(function(){return-1});return Rt}else{var Dt=new Je(Z.thisDep||Ke.thisDep,Z.contextDep||Ke.contextDep,Z.propDep||Ke.propDep,function(Jt,qr){var xi=Jt.ELEMENTS;return Jt.OFFSET?qr.def(xi,"?",xi,".vertCount-",Jt.OFFSET,":-1"):qr.def(xi,"?",xi,".vertCount:-1")});return Dt}else if(be){var Mt=new Je(pe.thisDep,pe.contextDep,pe.propDep,function(Jt,qr){return qr.def(Jt.shared.vao,".currentVAO?",Jt.shared.vao,".currentVAO.count:-1")});return Mt}return null}var Nt=Ce(),Et=jt(),$t=Le(Af,!1);return{elements:Z,primitive:Nt,count:Et,instances:$t,offset:Ke,vao:pe,vaoActive:be,elementsActive:J,static:Ae}}function Lr(q,Y){var ie=q.static,Pe=q.dynamic,Ae={};return Xe.forEach(function(be){var me=De(be);function pe(J,oe){if(be in ie){var Z=J(ie[be]);Ae[me]=et(function(){return Z})}else if(be in Pe){var Ce=Pe[be];Ae[me]=dt(Ce,function(Le,Ke){return oe(Le,Ke,Le.invoke(Ke,Ce))})}}switch(be){case lm:case am:case im:case mi:case Zd:case um:case Fl:case np:case ip:case Nl:return pe(function(J){return J},function(J,oe,Z){return Z});case Jd:return pe(function(J){return ne[J]},function(J,oe,Z){var Ce=J.constants.compareFuncs;return oe.def(Ce,"[",Z,"]")});case sm:return pe(function(J){return J},function(J,oe,Z){var Ce=oe.def("+",Z,"[0]"),Le=oe.def("+",Z,"[1]");return[Ce,Le]});case xf:return pe(function(J){var oe="srcRGB"in J?J.srcRGB:J.src,Z="srcAlpha"in J?J.srcAlpha:J.src,Ce="dstRGB"in J?J.dstRGB:J.dst,Le="dstAlpha"in J?J.dstAlpha:J.dst;return[Q[oe],Q[Ce],Q[Z],Q[Le]]},function(J,oe,Z){var Ce=J.constants.blendFuncs;function Le(Wt,Rt){var Dt=oe.def('"',Wt,Rt,'" in ',Z,"?",Z,".",Wt,Rt,":",Z,".",Wt);return Dt}var Ke=Le("src","RGB"),jt=Le("dst","RGB"),Nt=oe.def(Ce,"[",Ke,"]"),Et=oe.def(Ce,"[",Le("src","Alpha"),"]"),$t=oe.def(Ce,"[",jt,"]"),It=oe.def(Ce,"[",Le("dst","Alpha"),"]");return[Nt,$t,Et,It]});case bf:return pe(function(J){if(typeof J=="string")return[nt[J],nt[J]];if(typeof J=="object")return[nt[J.rgb],nt[J.alpha]]},function(J,oe,Z){var Ce=J.constants.blendEquations,Le=oe.def(),Ke=oe.def(),jt=J.cond("typeof ",Z,'==="string"');return jt.then(Le,"=",Ke,"=",Ce,"[",Z,"];"),jt.else(Le,"=",Ce,"[",Z,".rgb];",Ke,"=",Ce,"[",Z,".alpha];"),oe(jt),[Le,Ke]});case om:return pe(function(J){return X(4,function(oe){return+J[oe]})},function(J,oe,Z){return X(4,function(Ce){return oe.def("+",Z,"[",Ce,"]")})});case ap:return pe(function(J){return J|0},function(J,oe,Z){return oe.def(Z,"|0")});case op:return pe(function(J){var oe=J.cmp||"keep",Z=J.ref||0,Ce="mask"in J?J.mask:-1;return[ne[oe],Z,Ce]},function(J,oe,Z){var Ce=J.constants.compareFuncs,Le=oe.def('"cmp" in ',Z,"?",Ce,"[",Z,".cmp]",":",B),Ke=oe.def(Z,".ref|0"),jt=oe.def('"mask" in ',Z,"?",Z,".mask|0:-1");return[Le,Ke,jt]});case Bl:case Ro:return pe(function(J){var oe=J.fail||"keep",Z=J.zfail||"keep",Ce=J.zpass||"keep";return[be===Ro?m:v,fe[oe],fe[Z],fe[Ce]]},function(J,oe,Z){var Ce=J.constants.stencilOps;function Le(Ke){return oe.def('"',Ke,'" in ',Z,"?",Ce,"[",Z,".",Ke,"]:",B)}return[be===Ro?m:v,Le("fail"),Le("zfail"),Le("zpass")]});case gs:return pe(function(J){var oe=J.factor|0,Z=J.units|0;return[oe,Z]},function(J,oe,Z){var Ce=oe.def(Z,".factor|0"),Le=oe.def(Z,".units|0");return[Ce,Le]});case tp:return pe(function(J){var oe=0;return J==="front"?oe=v:J==="back"&&(oe=m),oe},function(J,oe,Z){return oe.def(Z,'==="front"?',v,":",m)});case rp:return pe(function(J){return J},function(J,oe,Z){return Z});case wf:return pe(function(J){return de[J]},function(J,oe,Z){return oe.def(Z+'==="cw"?'+b+":"+_)});case ep:return pe(function(J){return J.map(function(oe){return!!oe})},function(J,oe,Z){return X(4,function(Ce){return"!!"+Z+"["+Ce+"]"})});case Ll:return pe(function(J){var oe="value"in J?J.value:1,Z=!!J.invert;return[oe,Z]},function(J,oe,Z){var Ce=oe.def('"value" in ',Z,"?+",Z,".value:1"),Le=oe.def("!!",Z,".invert");return[Ce,Le]})}}),Ae}function Hn(q,Y){var ie=q.static,Pe=q.dynamic,Ae={};return Object.keys(ie).forEach(function(be){var me=ie[be],pe;if(typeof me=="number"||typeof me=="boolean")pe=et(function(){return me});else if(typeof me=="function"){var J=me._reglType;J==="texture2d"||J==="textureCube"?pe=et(function(oe){return oe.link(me)}):(J==="framebuffer"||J==="framebufferCube")&&(pe=et(function(oe){return oe.link(me.color[0])}))}else Ii(me)&&(pe=et(function(oe){var Z=oe.global.def("[",X(me.length,function(Ce){return me[Ce]}),"]");return Z}));pe.value=me,Ae[be]=pe}),Object.keys(Pe).forEach(function(be){var me=Pe[be];Ae[be]=dt(me,function(pe,J){return pe.invoke(J,me)})}),Ae}function bi(q,Y){var ie=q.static,Pe=q.dynamic,Ae={};return Object.keys(ie).forEach(function(be){var me=ie[be],pe=V.id(be),J=new Me;if(ae(me))J.state=Co,J.buffer=Ue.getBuffer(Ue.create(me,Io,!1,!0)),J.type=0;else{var oe=Ue.getBuffer(me);if(oe)J.state=Co,J.buffer=oe,J.type=0;else if("constant"in me){var Z=me.constant;J.buffer="null",J.state=Dl,typeof Z=="number"?J.x=Z:Ao.forEach(function($t,It){It<Z.length&&(J[$t]=Z[It])})}else{ae(me.buffer)?oe=Ue.getBuffer(Ue.create(me.buffer,Io,!1,!0)):oe=Ue.getBuffer(me.buffer);var Ce=me.offset|0,Le=me.stride|0,Ke=me.size|0,jt=!!me.normalized,Nt=0;"type"in me&&(Nt=wl[me.type]);var Et=me.divisor|0;J.buffer=oe,J.state=Co,J.size=Ke,J.normalized=jt,J.type=Nt||oe.dtype,J.offset=Ce,J.stride=Le,J.divisor=Et}}Ae[be]=et(function($t,It){var Wt=$t.attribCache;if(pe in Wt)return Wt[pe];var Rt={isStream:!1};return Object.keys(J).forEach(function(Dt){Rt[Dt]=J[Dt]}),J.buffer&&(Rt.buffer=$t.link(J.buffer),Rt.type=Rt.type||Rt.buffer+".dtype"),Wt[pe]=Rt,Rt})}),Object.keys(Pe).forEach(function(be){var me=Pe[be];function pe(J,oe){var Z=J.invoke(oe,me),Ce=J.shared,Le=J.constants,Ke=Ce.isBufferArgs,jt=Ce.buffer,Nt={isStream:oe.def(!1)},Et=new Me;Et.state=Co,Object.keys(Et).forEach(function(Rt){Nt[Rt]=oe.def(""+Et[Rt])});var $t=Nt.buffer,It=Nt.type;oe("if(",Ke,"(",Z,")){",Nt.isStream,"=true;",$t,"=",jt,".createStream(",Io,",",Z,");",It,"=",$t,".dtype;","}else{",$t,"=",jt,".getBuffer(",Z,");","if(",$t,"){",It,"=",$t,".dtype;",'}else if("constant" in ',Z,"){",Nt.state,"=",Dl,";","if(typeof "+Z+'.constant === "number"){',Nt[Ao[0]],"=",Z,".constant;",Ao.slice(1).map(function(Rt){return Nt[Rt]}).join("="),"=0;","}else{",Ao.map(function(Rt,Dt){return Nt[Rt]+"="+Z+".constant.length>"+Dt+"?"+Z+".constant["+Dt+"]:0;"}).join(""),"}}else{","if(",Ke,"(",Z,".buffer)){",$t,"=",jt,".createStream(",Io,",",Z,".buffer);","}else{",$t,"=",jt,".getBuffer(",Z,".buffer);","}",It,'="type" in ',Z,"?",Le.glTypes,"[",Z,".type]:",$t,".dtype;",Nt.normalized,"=!!",Z,".normalized;");function Wt(Rt){oe(Nt[Rt],"=",Z,".",Rt,"|0;")}return Wt("size"),Wt("offset"),Wt("stride"),Wt("divisor"),oe("}}"),oe.exit("if(",Nt.isStream,"){",jt,".destroyStream(",$t,");","}"),Nt}Ae[be]=dt(me,pe)}),Ae}function ri(q){var Y=q.static,ie=q.dynamic,Pe={};return Object.keys(Y).forEach(function(Ae){var be=Y[Ae];Pe[Ae]=et(function(me,pe){return typeof be=="number"||typeof be=="boolean"?""+be:me.link(be)})}),Object.keys(ie).forEach(function(Ae){var be=ie[Ae];Pe[Ae]=dt(be,function(me,pe){return me.invoke(pe,be)})}),Pe}function xa(q,Y,ie,Pe,Ae){q.static,q.dynamic;var be=An(q,Y),me=hr(q),pe=br(q,me),J=yi(q),oe=Lr(q),Z=vr(q,Ae,be);function Ce($t){var It=pe[$t];It&&(oe[$t]=It)}Ce(ya),Ce(De(_f));var Le=Object.keys(oe).length>0,Ke={framebuffer:me,draw:J,shader:Z,state:oe,dirty:Le,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ke.profile=ur(q),Ke.uniforms=Hn(ie),Ke.drawVAO=Ke.scopeVAO=J.vao,!Ke.drawVAO&&Z.program&&!be&&ee.angle_instanced_arrays&&J.static.elements){var jt=!0,Nt=Z.program.attributes.map(function($t){var It=Y.static[$t];return jt=jt&&!!It,It});if(jt&&Nt.length>0){var Et=lt.getVAO(lt.createVAO({attributes:Nt,elements:J.static.elements}));Ke.drawVAO=new Je(null,null,null,function($t,It){return $t.link(Et)}),Ke.useVAO=!0}}return be?Ke.useVAO=!0:Ke.attributes=bi(Y),Ke.context=ri(Pe),Ke}function Cn(q,Y,ie){var Pe=q.shared,Ae=Pe.context,be=q.scope();Object.keys(ie).forEach(function(me){Y.save(Ae,"."+me);var pe=ie[me],J=pe.append(q,Y);Array.isArray(J)?be(Ae,".",me,"=[",J.join(),"];"):be(Ae,".",me,"=",J,";")}),Y(be)}function Tn(q,Y,ie,Pe){var Ae=q.shared,be=Ae.gl,me=Ae.framebuffer,pe;Ye&&(pe=Y.def(Ae.extensions,".webgl_draw_buffers"));var J=q.constants,oe=J.drawBuffer,Z=J.backBuffer,Ce;ie?Ce=ie.append(q,Y):Ce=Y.def(me,".next"),Pe||Y("if(",Ce,"!==",me,".cur){"),Y("if(",Ce,"){",be,".bindFramebuffer(",ue,",",Ce,".framebuffer);"),Ye&&Y(pe,".drawBuffersWEBGL(",oe,"[",Ce,".colorAttachments.length]);"),Y("}else{",be,".bindFramebuffer(",ue,",null);"),Ye&&Y(pe,".drawBuffersWEBGL(",Z,");"),Y("}",me,".cur=",Ce,";"),Pe||Y("}")}function rr(q,Y,ie){var Pe=q.shared,Ae=Pe.gl,be=q.current,me=q.next,pe=Pe.current,J=Pe.next,oe=q.cond(pe,".dirty");Xe.forEach(function(Z){var Ce=De(Z);if(!(Ce in ie.state)){var Le,Ke;if(Ce in me){Le=me[Ce],Ke=be[Ce];var jt=X(pt[Ce].length,function(Et){return oe.def(Le,"[",Et,"]")});oe(q.cond(jt.map(function(Et,$t){return Et+"!=="+Ke+"["+$t+"]"}).join("||")).then(Ae,".",St[Ce],"(",jt,");",jt.map(function(Et,$t){return Ke+"["+$t+"]="+Et}).join(";"),";"))}else{Le=oe.def(J,".",Ce);var Nt=q.cond(Le,"!==",pe,".",Ce);oe(Nt),Ce in je?Nt(q.cond(Le).then(Ae,".enable(",je[Ce],");").else(Ae,".disable(",je[Ce],");"),pe,".",Ce,"=",Le,";"):Nt(Ae,".",St[Ce],"(",Le,");",pe,".",Ce,"=",Le,";")}}}),Object.keys(ie.state).length===0&&oe(pe,".dirty=false;"),Y(oe)}function Fi(q,Y,ie,Pe){var Ae=q.shared,be=q.current,me=Ae.current,pe=Ae.gl,J;He(Object.keys(ie)).forEach(function(oe){var Z=ie[oe];if(!(Pe&&!Pe(Z))){var Ce=Z.append(q,Y);if(je[oe]){var Le=je[oe];ut(Z)?(J=q.link(Ce,{stable:!0}),Y(q.cond(J).then(pe,".enable(",Le,");").else(pe,".disable(",Le,");")),Y(me,".",oe,"=",J,";")):(Y(q.cond(Ce).then(pe,".enable(",Le,");").else(pe,".disable(",Le,");")),Y(me,".",oe,"=",Ce,";"))}else if(Ii(Ce)){var Ke=be[oe];Y(pe,".",St[oe],"(",Ce,");",Ce.map(function(jt,Nt){return Ke+"["+Nt+"]="+jt}).join(";"),";")}else ut(Z)?(J=q.link(Ce,{stable:!0}),Y(pe,".",St[oe],"(",J,");",me,".",oe,"=",J,";")):Y(pe,".",St[oe],"(",Ce,");",me,".",oe,"=",Ce,";")}})}function kr(q,Y){ot&&(q.instancing=Y.def(q.shared.extensions,".angle_instanced_arrays"))}function Rn(q,Y,ie,Pe,Ae){var be=q.shared,me=q.stats,pe=be.current,J=be.timer,oe=ie.profile;function Z(){return typeof performance>"u"?"Date.now()":"performance.now()"}var Ce,Le;function Ke(Wt){Ce=Y.def(),Wt(Ce,"=",Z(),";"),typeof Ae=="string"?Wt(me,".count+=",Ae,";"):Wt(me,".count++;"),ct&&(Pe?(Le=Y.def(),Wt(Le,"=",J,".getNumPendingQueries();")):Wt(J,".beginQuery(",me,");"))}function jt(Wt){Wt(me,".cpuTime+=",Z(),"-",Ce,";"),ct&&(Pe?Wt(J,".pushScopeStats(",Le,",",J,".getNumPendingQueries(),",me,");"):Wt(J,".endQuery();"))}function Nt(Wt){var Rt=Y.def(pe,".profile");Y(pe,".profile=",Wt,";"),Y.exit(pe,".profile=",Rt,";")}var Et;if(oe){if(ut(oe)){oe.enable?(Ke(Y),jt(Y.exit),Nt("true")):Nt("false");return}Et=oe.append(q,Y),Nt(Et)}else Et=Y.def(pe,".profile");var $t=q.block();Ke($t),Y("if(",Et,"){",$t,"}");var It=q.block();jt(It),Y.exit("if(",Et,"){",It,"}")}function li(q,Y,ie,Pe,Ae){var be=q.shared;function me(J){switch(J){case Rf:case cp:case pp:return 2;case ba:case Wl:case hp:return 3;case ws:case _s:case vp:return 4;default:return 1}}function pe(J,oe,Z){var Ce=be.gl,Le=Y.def(J,".location"),Ke=Y.def(be.attributes,"[",Le,"]"),jt=Z.state,Nt=Z.buffer,Et=[Z.x,Z.y,Z.z,Z.w],$t=["buffer","normalized","offset","stride"];function It(){Y("if(!",Ke,".buffer){",Ce,".enableVertexAttribArray(",Le,");}");var Rt=Z.type,Dt;if(Z.size?Dt=Y.def(Z.size,"||",oe):Dt=oe,Y("if(",Ke,".type!==",Rt,"||",Ke,".size!==",Dt,"||",$t.map(function(Jt){return Ke+"."+Jt+"!=="+Z[Jt]}).join("||"),"){",Ce,".bindBuffer(",Io,",",Nt,".buffer);",Ce,".vertexAttribPointer(",[Le,Dt,Rt,Z.normalized,Z.stride,Z.offset],");",Ke,".type=",Rt,";",Ke,".size=",Dt,";",$t.map(function(Jt){return Ke+"."+Jt+"="+Z[Jt]+";"}).join(""),"}"),ot){var Mt=Z.divisor;Y("if(",Ke,".divisor!==",Mt,"){",q.instancing,".vertexAttribDivisorANGLE(",[Le,Mt],");",Ke,".divisor=",Mt,";}")}}function Wt(){Y("if(",Ke,".buffer){",Ce,".disableVertexAttribArray(",Le,");",Ke,".buffer=null;","}if(",Ao.map(function(Rt,Dt){return Ke+"."+Rt+"!=="+Et[Dt]}).join("||"),"){",Ce,".vertexAttrib4f(",Le,",",Et,");",Ao.map(function(Rt,Dt){return Ke+"."+Rt+"="+Et[Dt]+";"}).join(""),"}")}jt===Co?It():jt===Dl?Wt():(Y("if(",jt,"===",Co,"){"),It(),Y("}else{"),Wt(),Y("}"))}Pe.forEach(function(J){var oe=J.name,Z=ie.attributes[oe],Ce;if(Z){if(!Ae(Z))return;Ce=Z.append(q,Y)}else{if(!Ae(_t))return;var Le=q.scopeAttrib(oe);Ce={},Object.keys(new Me).forEach(function(Ke){Ce[Ke]=Y.def(Le,".",Ke)})}pe(q.link(J),me(J.info.type),Ce)})}function ui(q,Y,ie,Pe,Ae,be){for(var me=q.shared,pe=me.gl,J,oe=0;oe<Pe.length;++oe){var Z=Pe[oe],Ce=Z.name,Le=Z.info.type,Ke=ie.uniforms[Ce],jt=q.link(Z),Nt=jt+".location",Et;if(Ke){if(!Ae(Ke))continue;if(ut(Ke)){var $t=Ke.value;if(Le===yp||Le===l){var It=q.link($t._texture||$t.color[0]._texture);Y(pe,".uniform1i(",Nt,",",It+".bind());"),Y.exit(It,".unbind();")}else if(Le===gp||Le===Gl||Le===mp){var Wt=q.global.def("new Float32Array(["+Array.prototype.slice.call($t)+"])"),Rt=2;Le===Gl?Rt=3:Le===mp&&(Rt=4),Y(pe,".uniformMatrix",Rt,"fv(",Nt,",false,",Wt,");")}else{switch(Le){case Zr:J="1f";break;case Rf:J="2f";break;case ba:J="3f";break;case ws:J="4f";break;case dp:J="1i";break;case Of:J="1i";break;case pp:J="2i";break;case cp:J="2i";break;case hp:J="3i";break;case Wl:J="3i";break;case vp:J="4i";break;case _s:J="4i";break}Y(pe,".uniform",J,"(",Nt,",",Ii($t)?Array.prototype.slice.call($t):$t,");")}continue}else Et=Ke.append(q,Y)}else{if(!Ae(_t))continue;Et=Y.def(me.uniforms,"[",V.id(Ce),"]")}Le===yp?Y("if(",Et,"&&",Et,'._reglType==="framebuffer"){',Et,"=",Et,".color[0];","}"):Le===l&&Y("if(",Et,"&&",Et,'._reglType==="framebufferCube"){',Et,"=",Et,".color[0];","}");var Dt=1;switch(Le){case yp:case l:var Mt=Y.def(Et,"._texture");Y(pe,".uniform1i(",Nt,",",Mt,".bind());"),Y.exit(Mt,".unbind();");continue;case Of:case dp:J="1i";break;case cp:case pp:J="2i",Dt=2;break;case Wl:case hp:J="3i",Dt=3;break;case _s:case vp:J="4i",Dt=4;break;case Zr:J="1f";break;case Rf:J="2f",Dt=2;break;case ba:J="3f",Dt=3;break;case ws:J="4f",Dt=4;break;case gp:J="Matrix2fv";break;case Gl:J="Matrix3fv";break;case mp:J="Matrix4fv";break}if(J.charAt(0)==="M"){Y(pe,".uniform",J,"(",Nt,",");var Jt=Math.pow(Le-gp+2,2),qr=q.global.def("new Float32Array(",Jt,")");Array.isArray(Et)?Y("false,(",X(Jt,function(Hi){return qr+"["+Hi+"]="+Et[Hi]}),",",qr,")"):Y("false,(Array.isArray(",Et,")||",Et," instanceof Float32Array)?",Et,":(",X(Jt,function(Hi){return qr+"["+Hi+"]="+Et+"["+Hi+"]"}),",",qr,")"),Y(");")}else if(Dt>1){for(var xi=[],Po=[],Ss=0;Ss<Dt;++Ss)Array.isArray(Et)?Po.push(Et[Ss]):Po.push(Y.def(Et+"["+Ss+"]")),be&&xi.push(Y.def());be&&Y("if(!",q.batchId,"||",xi.map(function(Hi,bp){return Hi+"!=="+Po[bp]}).join("||"),"){",xi.map(function(Hi,bp){return Hi+"="+Po[bp]+";"}).join("")),Y(pe,".uniform",J,"(",Nt,",",Po.join(","),");"),be&&Y("}")}else{if(be){var Es=Y.def();Y("if(!",q.batchId,"||",Es,"!==",Et,"){",Es,"=",Et,";")}Y(pe,".uniform",J,"(",Nt,",",Et,");"),be&&Y("}")}}}function or(q,Y,ie,Pe){var Ae=q.shared,be=Ae.gl,me=Ae.draw,pe=Pe.draw;function J(){var Dt=pe.elements,Mt,Jt=Y;return Dt?((Dt.contextDep&&Pe.contextDynamic||Dt.propDep)&&(Jt=ie),Mt=Dt.append(q,Jt),pe.elementsActive&&Jt("if("+Mt+")"+be+".bindBuffer("+fp+","+Mt+".buffer.buffer);")):(Mt=Jt.def(),Jt(Mt,"=",me,".",ms,";","if(",Mt,"){",be,".bindBuffer(",fp,",",Mt,".buffer.buffer);}","else if(",Ae.vao,".currentVAO){",Mt,"=",q.shared.elements+".getElements("+Ae.vao,".currentVAO.elements);",bt?"":"if("+Mt+")"+be+".bindBuffer("+fp+","+Mt+".buffer.buffer);","}")),Mt}function oe(){var Dt=pe.count,Mt,Jt=Y;return Dt?((Dt.contextDep&&Pe.contextDynamic||Dt.propDep)&&(Jt=ie),Mt=Dt.append(q,Jt)):Mt=Jt.def(me,".",Sn),Mt}var Z=J();function Ce(Dt){var Mt=pe[Dt];return Mt?Mt.contextDep&&Pe.contextDynamic||Mt.propDep?Mt.append(q,ie):Mt.append(q,Y):Y.def(me,".",Dt)}var Le=Ce(ys),Ke=Ce(Ef),jt=oe();if(typeof jt=="number"){if(jt===0)return}else ie("if(",jt,"){"),ie.exit("}");var Nt,Et;ot&&(Nt=Ce(Af),Et=q.instancing);var $t=Z+".type",It=pe.elements&&ut(pe.elements)&&!pe.vaoActive;function Wt(){function Dt(){ie(Et,".drawElementsInstancedANGLE(",[Le,jt,$t,Ke+"<<(("+$t+"-"+Xd+")>>1)",Nt],");")}function Mt(){ie(Et,".drawArraysInstancedANGLE(",[Le,Ke,jt,Nt],");")}Z&&Z!=="null"?It?Dt():(ie("if(",Z,"){"),Dt(),ie("}else{"),Mt(),ie("}")):Mt()}function Rt(){function Dt(){ie(be+".drawElements("+[Le,jt,$t,Ke+"<<(("+$t+"-"+Xd+")>>1)"]+");")}function Mt(){ie(be+".drawArrays("+[Le,Ke,jt]+");")}Z&&Z!=="null"?It?Dt():(ie("if(",Z,"){"),Dt(),ie("}else{"),Mt(),ie("}")):Mt()}ot&&(typeof Nt!="number"||Nt>=0)?typeof Nt=="string"?(ie("if(",Nt,">0){"),Wt(),ie("}else if(",Nt,"<0){"),Rt(),ie("}")):Wt():Rt()}function gr(q,Y,ie,Pe,Ae){var be=vt(),me=be.proc("body",Ae);return ot&&(be.instancing=me.def(be.shared.extensions,".angle_instanced_arrays")),q(be,me,ie,Pe),be.compile().body}function Ur(q,Y,ie,Pe){kr(q,Y),ie.useVAO?ie.drawVAO?Y(q.shared.vao,".setVAO(",ie.drawVAO.append(q,Y),");"):Y(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(Y(q.shared.vao,".setVAO(null);"),li(q,Y,ie,Pe.attributes,function(){return!0})),ui(q,Y,ie,Pe.uniforms,function(){return!0},!1),or(q,Y,Y,ie)}function On(q,Y){var ie=q.proc("draw",1);kr(q,ie),Cn(q,ie,Y.context),Tn(q,ie,Y.framebuffer),rr(q,ie,Y),Fi(q,ie,Y.state),Rn(q,ie,Y,!1,!0);var Pe=Y.shader.progVar.append(q,ie);if(ie(q.shared.gl,".useProgram(",Pe,".program);"),Y.shader.program)Ur(q,ie,Y,Y.shader.program);else{ie(q.shared.vao,".setVAO(null);");var Ae=q.global.def("{}"),be=ie.def(Pe,".id"),me=ie.def(Ae,"[",be,"]");ie(q.cond(me).then(me,".call(this,a0);").else(me,"=",Ae,"[",be,"]=",q.link(function(pe){return gr(Ur,q,Y,pe,1)}),"(",Pe,");",me,".call(this,a0);"))}Object.keys(Y.state).length>0&&ie(q.shared.current,".dirty=true;"),q.shared.vao&&ie(q.shared.vao,".setVAO(null);")}function K(q,Y,ie,Pe){q.batchId="a1",kr(q,Y);function Ae(){return!0}li(q,Y,ie,Pe.attributes,Ae),ui(q,Y,ie,Pe.uniforms,Ae,!1),or(q,Y,Y,ie)}function Oe(q,Y,ie,Pe){kr(q,Y);var Ae=ie.contextDep,be=Y.def(),me="a0",pe="a1",J=Y.def();q.shared.props=J,q.batchId=be;var oe=q.scope(),Z=q.scope();Y(oe.entry,"for(",be,"=0;",be,"<",pe,";++",be,"){",J,"=",me,"[",be,"];",Z,"}",oe.exit);function Ce($t){return $t.contextDep&&Ae||$t.propDep}function Le($t){return!Ce($t)}if(ie.needsContext&&Cn(q,Z,ie.context),ie.needsFramebuffer&&Tn(q,Z,ie.framebuffer),Fi(q,Z,ie.state,Ce),ie.profile&&Ce(ie.profile)&&Rn(q,Z,ie,!1,!0),Pe)ie.useVAO?ie.drawVAO?Ce(ie.drawVAO)?Z(q.shared.vao,".setVAO(",ie.drawVAO.append(q,Z),");"):oe(q.shared.vao,".setVAO(",ie.drawVAO.append(q,oe),");"):oe(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(oe(q.shared.vao,".setVAO(null);"),li(q,oe,ie,Pe.attributes,Le),li(q,Z,ie,Pe.attributes,Ce)),ui(q,oe,ie,Pe.uniforms,Le,!1),ui(q,Z,ie,Pe.uniforms,Ce,!0),or(q,oe,Z,ie);else{var Ke=q.global.def("{}"),jt=ie.shader.progVar.append(q,Z),Nt=Z.def(jt,".id"),Et=Z.def(Ke,"[",Nt,"]");Z(q.shared.gl,".useProgram(",jt,".program);","if(!",Et,"){",Et,"=",Ke,"[",Nt,"]=",q.link(function($t){return gr(K,q,ie,$t,2)}),"(",jt,");}",Et,".call(this,a0[",be,"],",be,");")}}function Te(q,Y){var ie=q.proc("batch",2);q.batchId="0",kr(q,ie);var Pe=!1,Ae=!0;Object.keys(Y.context).forEach(function(Ke){Pe=Pe||Y.context[Ke].propDep}),Pe||(Cn(q,ie,Y.context),Ae=!1);var be=Y.framebuffer,me=!1;be?(be.propDep?Pe=me=!0:be.contextDep&&Pe&&(me=!0),me||Tn(q,ie,be)):Tn(q,ie,null),Y.state.viewport&&Y.state.viewport.propDep&&(Pe=!0);function pe(Ke){return Ke.contextDep&&Pe||Ke.propDep}rr(q,ie,Y),Fi(q,ie,Y.state,function(Ke){return!pe(Ke)}),(!Y.profile||!pe(Y.profile))&&Rn(q,ie,Y,!1,"a1"),Y.contextDep=Pe,Y.needsContext=Ae,Y.needsFramebuffer=me;var J=Y.shader.progVar;if(J.contextDep&&Pe||J.propDep)Oe(q,ie,Y,null);else{var oe=J.append(q,ie);if(ie(q.shared.gl,".useProgram(",oe,".program);"),Y.shader.program)Oe(q,ie,Y,Y.shader.program);else{ie(q.shared.vao,".setVAO(null);");var Z=q.global.def("{}"),Ce=ie.def(oe,".id"),Le=ie.def(Z,"[",Ce,"]");ie(q.cond(Le).then(Le,".call(this,a0,a1);").else(Le,"=",Z,"[",Ce,"]=",q.link(function(Ke){return gr(Oe,q,Y,Ke,2)}),"(",oe,");",Le,".call(this,a0,a1);"))}}Object.keys(Y.state).length>0&&ie(q.shared.current,".dirty=true;"),q.shared.vao&&ie(q.shared.vao,".setVAO(null);")}function Pt(q,Y){var ie=q.proc("scope",3);q.batchId="a2";var Pe=q.shared,Ae=Pe.current;if(Cn(q,ie,Y.context),Y.framebuffer&&Y.framebuffer.append(q,ie),He(Object.keys(Y.state)).forEach(function(pe){var J=Y.state[pe],oe=J.append(q,ie);Ii(oe)?oe.forEach(function(Z,Ce){Bt(Z)?ie.set(q.next[pe],"["+Ce+"]",Z):ie.set(q.next[pe],"["+Ce+"]",q.link(Z,{stable:!0}))}):ut(J)?ie.set(Pe.next,"."+pe,q.link(oe,{stable:!0})):ie.set(Pe.next,"."+pe,oe)}),Rn(q,ie,Y,!0,!0),[ms,Ef,Sn,Af,ys].forEach(function(pe){var J=Y.draw[pe];if(!!J){var oe=J.append(q,ie);Bt(oe)?ie.set(Pe.draw,"."+pe,oe):ie.set(Pe.draw,"."+pe,q.link(oe),{stable:!0})}}),Object.keys(Y.uniforms).forEach(function(pe){var J=Y.uniforms[pe].append(q,ie);Array.isArray(J)&&(J="["+J.map(function(oe){return Bt(oe)?oe:q.link(oe,{stable:!0})})+"]"),ie.set(Pe.uniforms,"["+q.link(V.id(pe),{stable:!0})+"]",J)}),Object.keys(Y.attributes).forEach(function(pe){var J=Y.attributes[pe].append(q,ie),oe=q.scopeAttrib(pe);Object.keys(new Me).forEach(function(Z){ie.set(oe,"."+Z,J[Z])})}),Y.scopeVAO){var be=Y.scopeVAO.append(q,ie);Bt(be)?ie.set(Pe.vao,".targetVAO",be):ie.set(Pe.vao,".targetVAO",q.link(be,{stable:!0}))}function me(pe){var J=Y.shader[pe];if(J){var oe=J.append(q,ie);Bt(oe)?ie.set(Pe.shader,"."+pe,oe):ie.set(Pe.shader,"."+pe,q.link(oe,{stable:!0}))}}me($l),me(Sf),Object.keys(Y.state).length>0&&(ie(Ae,".dirty=true;"),ie.exit(Ae,".dirty=true;")),ie("a1(",q.shared.context,",a0,",q.batchId,");")}function fr(q){if(!(typeof q!="object"||Ii(q))){for(var Y=Object.keys(q),ie=0;ie<Y.length;++ie)if(w.isDynamic(q[Y[ie]]))return!0;return!1}}function Gr(q,Y,ie){var Pe=Y.static[ie];if(!Pe||!fr(Pe))return;var Ae=q.global,be=Object.keys(Pe),me=!1,pe=!1,J=!1,oe=q.global.def("{}");be.forEach(function(Ce){var Le=Pe[Ce];if(w.isDynamic(Le)){typeof Le=="function"&&(Le=Pe[Ce]=w.unbox(Le));var Ke=dt(Le,null);me=me||Ke.thisDep,J=J||Ke.propDep,pe=pe||Ke.contextDep}else{switch(Ae(oe,".",Ce,"="),typeof Le){case"number":Ae(Le);break;case"string":Ae('"',Le,'"');break;case"object":Array.isArray(Le)&&Ae("[",Le.join(),"]");break;default:Ae(q.link(Le));break}Ae(";")}});function Z(Ce,Le){be.forEach(function(Ke){var jt=Pe[Ke];if(!!w.isDynamic(jt)){var Nt=Ce.invoke(Le,jt);Le(oe,".",Ke,"=",Nt,";")}})}Y.dynamic[ie]=new w.DynamicVariable(To,{thisDep:me,contextDep:pe,propDep:J,ref:oe,append:Z}),delete Y.static[ie]}function kt(q,Y,ie,Pe,Ae){var be=vt();be.stats=be.link(Ae),Object.keys(Y.static).forEach(function(pe){Gr(be,Y,pe)}),bx.forEach(function(pe){Gr(be,q,pe)});var me=xa(q,Y,ie,Pe,be);return me.shader.program&&(me.shader.program.attributes.sort(function(pe,J){return pe.name<J.name?-1:1}),me.shader.program.uniforms.sort(function(pe,J){return pe.name<J.name?-1:1})),On(be,me),Pt(be,me),Te(be,me),r(be.compile(),{destroy:function(){me.shader.program.destroy()}})}return{next:Lt,current:pt,procs:function(){var q=vt(),Y=q.proc("poll"),ie=q.proc("refresh"),Pe=q.block();Y(Pe),ie(Pe);var Ae=q.shared,be=Ae.gl,me=Ae.next,pe=Ae.current;Pe(pe,".dirty=false;"),Tn(q,Y),Tn(q,ie,null,!0);var J;ot&&(J=q.link(ot)),ee.oes_vertex_array_object&&ie(q.link(ee.oes_vertex_array_object),".bindVertexArrayOES(null);");var oe=ie.def(Ae.attributes),Z=ie.def(0),Ce=q.cond(Z,".buffer");Ce.then(be,".enableVertexAttribArray(i);",be,".bindBuffer(",Io,",",Z,".buffer.buffer);",be,".vertexAttribPointer(i,",Z,".size,",Z,".type,",Z,".normalized,",Z,".stride,",Z,".offset);").else(be,".disableVertexAttribArray(i);",be,".vertexAttrib4f(i,",Z,".x,",Z,".y,",Z,".z,",Z,".w);",Z,".buffer=null;");var Le=q.link(ke.maxAttributes,{stable:!0});return ie("for(var i=0;i<",Le,";++i){",Z,"=",oe,"[i];",Ce,"}"),ot&&ie("for(var i=0;i<",Le,";++i){",J,".vertexAttribDivisorANGLE(i,",oe,"[i].divisor);","}"),ie(q.shared.vao,".currentVAO=null;",q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"),Object.keys(je).forEach(function(Ke){var jt=je[Ke],Nt=Pe.def(me,".",Ke),Et=q.block();Et("if(",Nt,"){",be,".enable(",jt,")}else{",be,".disable(",jt,")}",pe,".",Ke,"=",Nt,";"),ie(Et),Y("if(",Nt,"!==",pe,".",Ke,"){",Et,"}")}),Object.keys(St).forEach(function(Ke){var jt=St[Ke],Nt=pt[Ke],Et,$t,It=q.block();if(It(be,".",jt,"("),Ii(Nt)){var Wt=Nt.length;Et=q.global.def(me,".",Ke),$t=q.global.def(pe,".",Ke),It(X(Wt,function(Rt){return Et+"["+Rt+"]"}),");",X(Wt,function(Rt){return $t+"["+Rt+"]="+Et+"["+Rt+"];"}).join("")),Y("if(",X(Wt,function(Rt){return Et+"["+Rt+"]!=="+$t+"["+Rt+"]"}).join("||"),"){",It,"}")}else Et=Pe.def(me,".",Ke),$t=Pe.def(pe,".",Ke),It(Et,");",pe,".",Ke,"=",Et,";"),Y("if(",Et,"!==",$t,"){",It,"}");ie(It)}),q.compile()}(),compile:kt}}function Tt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Vt=34918,dr=34919,Wr=35007,xr=function(F,V){if(!V.ext_disjoint_timer_query)return null;var ee=[];function ke(){return ee.pop()||V.ext_disjoint_timer_query.createQueryEXT()}function Ue(nt){ee.push(nt)}var Re=[];function Ie(nt){var ot=ke();V.ext_disjoint_timer_query.beginQueryEXT(Wr,ot),Re.push(ot),ct(Re.length-1,Re.length,nt)}function it(){V.ext_disjoint_timer_query.endQueryEXT(Wr)}function at(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var lt=[];function gt(){return lt.pop()||new at}function Ft(nt){lt.push(nt)}var Ot=[];function ct(nt,ot,Ye){var bt=gt();bt.startQueryIndex=nt,bt.endQueryIndex=ot,bt.sum=0,bt.stats=Ye,Ot.push(bt)}var tt=[],ye=[];function Me(){var nt,ot,Ye=Re.length;if(Ye!==0){ye.length=Math.max(ye.length,Ye+1),tt.length=Math.max(tt.length,Ye+1),tt[0]=0,ye[0]=0;var bt=0;for(nt=0,ot=0;ot<Re.length;++ot){var pt=Re[ot];V.ext_disjoint_timer_query.getQueryObjectEXT(pt,dr)?(bt+=V.ext_disjoint_timer_query.getQueryObjectEXT(pt,Vt),Ue(pt)):Re[nt++]=pt,tt[ot+1]=bt,ye[ot+1]=nt}for(Re.length=nt,nt=0,ot=0;ot<Ot.length;++ot){var Lt=Ot[ot],Xe=Lt.startQueryIndex,je=Lt.endQueryIndex;Lt.sum+=tt[je]-tt[Xe];var St=ye[Xe],De=ye[je];De===St?(Lt.stats.gpuTime+=Lt.sum/1e6,Ft(Lt)):(Lt.startQueryIndex=St,Lt.endQueryIndex=De,Ot[nt++]=Lt)}Ot.length=nt}}return{beginQuery:Ie,endQuery:it,pushScopeStats:ct,update:Me,getNumPendingQueries:function(){return Re.length},clear:function(){ee.push.apply(ee,Re);for(var nt=0;nt<ee.length;nt++)V.ext_disjoint_timer_query.deleteQueryEXT(ee[nt]);Re.length=0,ee.length=0},restore:function(){Re.length=0,ee.length=0}}},ft=16384,Qt=256,tr=1024,pr=34962,Fr="webglcontextlost",Jr="webglcontextrestored",fn=1,Mn=2,qn=3;function En(F,V){for(var ee=0;ee<F.length;++ee)if(F[ee]===V)return ee;return-1}function ti(F){var V=M(F);if(!V)return null;var ee=V.gl,ke=ee.getContextAttributes();ee.isContextLost();var Ue=L(ee,V);if(!Ue)return null;var Re=x(),Ie=Tt(),it=V.cachedCode||{},at=Ue.extensions,lt=xr(ee,at),gt=y(),Ft=ee.drawingBufferWidth,Ot=ee.drawingBufferHeight,ct={tick:0,time:0,viewportWidth:Ft,viewportHeight:Ot,framebufferWidth:Ft,framebufferHeight:Ot,drawingBufferWidth:Ft,drawingBufferHeight:Ot,pixelRatio:V.pixelRatio},tt={},ye={elements:null,primitive:4,count:-1,offset:0,instances:-1},Me=ts(ee,at),nt=fg(ee,Ie,V,bt),ot=Ju(ee,at,nt,Ie),Ye=lx(ee,at,Me,Ie,nt,ot,ye);function bt(or){return Ye.destroyBuffer(or)}var pt=Yg(ee,Re,Ie,V),Lt=rx(ee,at,Me,function(){St.procs.poll()},ct,Ie,V),Xe=Wg(ee,at,Me,Ie,V),je=zd(ee,at,Me,Lt,Xe,Ie),St=Kt(ee,Re,at,Me,nt,ot,Lt,je,tt,Ye,pt,ye,ct,lt,it,V),De=Kg(ee,je,St.procs.poll,ct),mt=St.next,st=ee.canvas,Bt=[],lr=[],Ct=[],qt=[V.onDestroy],vt=null;function ur(){if(Bt.length===0){lt&&lt.update(),vt=null;return}vt=E.next(ur),Tn();for(var or=Bt.length-1;or>=0;--or){var gr=Bt[or];gr&&gr(ct,null,0)}ee.flush(),lt&&lt.update()}function hr(){!vt&&Bt.length>0&&(vt=E.next(ur))}function br(){vt&&(E.cancel(ur),vt=null)}function An(or){or.preventDefault(),br(),lr.forEach(function(gr){gr()})}function vr(or){ee.getError(),Ue.restore(),pt.restore(),nt.restore(),Lt.restore(),Xe.restore(),je.restore(),Ye.restore(),lt&&lt.restore(),St.procs.refresh(),hr(),Ct.forEach(function(gr){gr()})}st&&(st.addEventListener(Fr,An,!1),st.addEventListener(Jr,vr,!1));function yi(){Bt.length=0,br(),st&&(st.removeEventListener(Fr,An),st.removeEventListener(Jr,vr)),pt.clear(),je.clear(),Xe.clear(),Ye.clear(),Lt.clear(),ot.clear(),nt.clear(),lt&&lt.clear(),qt.forEach(function(or){or()})}function Lr(or){function gr(Ae){var be=r({},Ae);delete be.uniforms,delete be.attributes,delete be.context,delete be.vao,"stencil"in be&&be.stencil.op&&(be.stencil.opBack=be.stencil.opFront=be.stencil.op,delete be.stencil.op);function me(pe){if(pe in be){var J=be[pe];delete be[pe],Object.keys(J).forEach(function(oe){be[pe+"."+oe]=J[oe]})}}return me("blend"),me("depth"),me("cull"),me("stencil"),me("polygonOffset"),me("scissor"),me("sample"),"vao"in Ae&&(be.vao=Ae.vao),be}function Ur(Ae,be){var me={},pe={};return Object.keys(Ae).forEach(function(J){var oe=Ae[J];if(w.isDynamic(oe)){pe[J]=w.unbox(oe,J);return}else if(be&&Array.isArray(oe)){for(var Z=0;Z<oe.length;++Z)if(w.isDynamic(oe[Z])){pe[J]=w.unbox(oe,J);return}}me[J]=oe}),{dynamic:pe,static:me}}var On=Ur(or.context||{},!0),K=Ur(or.uniforms||{},!0),Oe=Ur(or.attributes||{},!1),Te=Ur(gr(or),!1),Pt={gpuTime:0,cpuTime:0,count:0},fr=St.compile(Te,Oe,K,On,Pt),Gr=fr.draw,kt=fr.batch,q=fr.scope,Y=[];function ie(Ae){for(;Y.length<Ae;)Y.push(null);return Y}function Pe(Ae,be){var me;if(typeof Ae=="function")return q.call(this,null,Ae,0);if(typeof be=="function")if(typeof Ae=="number")for(me=0;me<Ae;++me)q.call(this,null,be,me);else if(Array.isArray(Ae))for(me=0;me<Ae.length;++me)q.call(this,Ae[me],be,me);else return q.call(this,Ae,be,0);else if(typeof Ae=="number"){if(Ae>0)return kt.call(this,ie(Ae|0),Ae|0)}else if(Array.isArray(Ae)){if(Ae.length)return kt.call(this,Ae,Ae.length)}else return Gr.call(this,Ae)}return r(Pe,{stats:Pt,destroy:function(){fr.destroy()}})}var Hn=je.setFBO=Lr({framebuffer:w.define.call(null,fn,"framebuffer")});function bi(or,gr){var Ur=0;St.procs.poll();var On=gr.color;On&&(ee.clearColor(+On[0]||0,+On[1]||0,+On[2]||0,+On[3]||0),Ur|=ft),"depth"in gr&&(ee.clearDepth(+gr.depth),Ur|=Qt),"stencil"in gr&&(ee.clearStencil(gr.stencil|0),Ur|=tr),ee.clear(Ur)}function ri(or){if("framebuffer"in or)if(or.framebuffer&&or.framebuffer_reglType==="framebufferCube")for(var gr=0;gr<6;++gr)Hn(r({framebuffer:or.framebuffer.faces[gr]},or),bi);else Hn(or,bi);else bi(null,or)}function xa(or){Bt.push(or);function gr(){var Ur=En(Bt,or);function On(){var K=En(Bt,On);Bt[K]=Bt[Bt.length-1],Bt.length-=1,Bt.length<=0&&br()}Bt[Ur]=On}return hr(),{cancel:gr}}function Cn(){var or=mt.viewport,gr=mt.scissor_box;or[0]=or[1]=gr[0]=gr[1]=0,ct.viewportWidth=ct.framebufferWidth=ct.drawingBufferWidth=or[2]=gr[2]=ee.drawingBufferWidth,ct.viewportHeight=ct.framebufferHeight=ct.drawingBufferHeight=or[3]=gr[3]=ee.drawingBufferHeight}function Tn(){ct.tick+=1,ct.time=Fi(),Cn(),St.procs.poll()}function rr(){Lt.refresh(),Cn(),St.procs.refresh(),lt&&lt.update()}function Fi(){return(y()-gt)/1e3}rr();function kr(or,gr){var Ur;switch(or){case"frame":return xa(gr);case"lost":Ur=lr;break;case"restore":Ur=Ct;break;case"destroy":Ur=qt;break}return Ur.push(gr),{cancel:function(){for(var On=0;On<Ur.length;++On)if(Ur[On]===gr){Ur[On]=Ur[Ur.length-1],Ur.pop();return}}}}function Rn(){return it}function li(or){Object.entries(or).forEach(function(gr){it[gr[0]]=gr[1]})}var ui=r(Lr,{clear:ri,prop:w.define.bind(null,fn),context:w.define.bind(null,Mn),this:w.define.bind(null,qn),draw:Lr({}),buffer:function(or){return nt.create(or,pr,!1,!1)},elements:function(or){return ot.create(or,!1)},texture:Lt.create2D,cube:Lt.createCube,renderbuffer:Xe.create,framebuffer:je.create,framebufferCube:je.createCube,vao:Ye.createVAO,attributes:ke,frame:xa,on:kr,limits:Me,hasExtension:function(or){return Me.extensions.indexOf(or.toLowerCase())>=0},read:De,destroy:yi,_gl:ee,_refresh:rr,poll:function(){Tn(),lt&&lt.update()},now:Fi,stats:Ie,getCachedCode:Rn,preloadCachedCode:li});return V.onDone(null,ui),ui}return ti})})(b$);var Nde=bl,Fde=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},OD(t)?t={container:t}:Lde(t)?t={container:t}:Bde(t)?t={gl:t}:t=Nde(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=Cr.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}OD(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=ID(),t.container.appendChild(t.canvas),RD(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=ID(),t.container.appendChild(t.canvas),RD(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 RD(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Cr.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Cr.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 OD(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Lde(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Bde(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function ID(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var $de=y$,zde=[32,126],Ude=jde;function jde(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||zde;if(n&&typeof n!="string"&&(n=$de(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var f=r.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,r.width,r.height),f.font=n,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var d=i[0]/2,p=i[1]/2,s=0;s<a.length;s++)f.fillText(a[s],d,p),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,p+=i[1]);return r}var wr={},nn={},JT=32;nn.INT_BITS=JT;nn.INT_MAX=2147483647;nn.INT_MIN=-1<<JT-1;nn.sign=function(e){return(e>0)-(e<0)};nn.abs=function(e){var t=e>>JT-1;return(e^t)-t};nn.min=function(e,t){return t^(e^t)&-(e<t)};nn.max=function(e,t){return e^(e^t)&-(e<t)};nn.isPow2=function(e){return!(e&e-1)&&!!e};nn.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};nn.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};nn.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function x$(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}nn.countTrailingZeros=x$;nn.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};nn.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};nn.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var uh=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}})(uh);nn.reverse=function(e){return uh[e&255]<<24|uh[e>>>8&255]<<16|uh[e>>>16&255]<<8|uh[e>>>24&255]};nn.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};nn.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};nn.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};nn.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};nn.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>x$(e)+1};function w$(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]=w$(e,t,r+1);return i}function Wde(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function Gde(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return Wde(e|0,t);break;case"object":if(typeof e.length=="number")return w$(e,t,0);break}return[]}var qde=Gde,_$={},Mb={};Mb.byteLength=Yde;Mb.toByteArray=Kde;Mb.fromByteArray=Jde;var Va=[],Xi=[],Hde=typeof Uint8Array<"u"?Uint8Array:Array,kS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Bf=0,Vde=kS.length;Bf<Vde;++Bf)Va[Bf]=kS[Bf],Xi[kS.charCodeAt(Bf)]=Bf;Xi["-".charCodeAt(0)]=62;Xi["_".charCodeAt(0)]=63;function S$(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 Yde(e){var t=S$(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Xde(e,t,r){return(t+r)*3/4-r}function Kde(e){var t,r=S$(e),n=r[0],i=r[1],a=new Hde(Xde(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u<s;u+=4)t=Xi[e.charCodeAt(u)]<<18|Xi[e.charCodeAt(u+1)]<<12|Xi[e.charCodeAt(u+2)]<<6|Xi[e.charCodeAt(u+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Xi[e.charCodeAt(u)]<<2|Xi[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=Xi[e.charCodeAt(u)]<<10|Xi[e.charCodeAt(u+1)]<<4|Xi[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function Qde(e){return Va[e>>18&63]+Va[e>>12&63]+Va[e>>6&63]+Va[e&63]}function Zde(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(Qde(n));return i.join("")}function Jde(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,s=r-n;o<s;o+=a)i.push(Zde(e,o,o+a>s?s:o+a));return n===1?(t=e[r-1],i.push(Va[t>>2]+Va[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Va[t>>10]+Va[t>>4&63]+Va[t<<2&63]+"=")),i.join("")}var eR={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */eR.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<<s)-1,f=u>>1,d=-7,p=r?i-1:0,h=r?-1:1,g=e[t+p];for(p+=h,a=g&(1<<-d)-1,g>>=-d,d+=s;d>0;a=a*256+e[t+p],p+=h,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+p],p+=h,d-=8);if(a===0)a=1-f;else{if(a===u)return o?NaN:(g?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(g?-1:1)*o*Math.pow(2,a-n)};eR.write=function(e,t,r,n,i,a){var o,s,u,f=a*8-i-1,d=(1<<f)-1,p=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,w=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+p>=1?t+=h/u:t+=h*Math.pow(2,1-p),t*u>=2&&(o++,u/=2),o+p>=d?(s=0,o=d):o+p>=1?(s=(t*u-1)*Math.pow(2,i),o=o+p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[r+g]=s&255,g+=w,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;e[r+g]=o&255,g+=w,o/=256,f-=8);e[r+g-w]|=E*128};/*!
1163
+ * The buffer module from node.js, for the browser.
1164
+ *
1165
+ * @author Feross Aboukhadijeh <https://feross.org>
1166
+ * @license MIT
1167
+ */(function(e){var t=Mb,r=eR;e.Buffer=o,e.SlowBuffer=y,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 I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.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(I){if(I>n)throw new RangeError('The value "'+I+'" is invalid for option "size"');var T=new Uint8Array(I);return T.__proto__=o.prototype,T}function o(I,T,P){if(typeof I=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(I)}return s(I,T,P)}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 s(I,T,P){if(typeof I=="string")return p(I,T);if(ArrayBuffer.isView(I))return h(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(j(I,ArrayBuffer)||I&&j(I.buffer,ArrayBuffer))return g(I,T,P);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var U=I.valueOf&&I.valueOf();if(U!=null&&U!==I)return o.from(U,T,P);var le=w(I);if(le)return le;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return o.from(I[Symbol.toPrimitive]("string"),T,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}o.from=function(I,T,P){return s(I,T,P)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function u(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function f(I,T,P){return u(I),I<=0?a(I):T!==void 0?typeof P=="string"?a(I).fill(T,P):a(I).fill(T):a(I)}o.alloc=function(I,T,P){return f(I,T,P)};function d(I){return u(I),a(I<0?0:E(I)|0)}o.allocUnsafe=function(I){return d(I)},o.allocUnsafeSlow=function(I){return d(I)};function p(I,T){if((typeof T!="string"||T==="")&&(T="utf8"),!o.isEncoding(T))throw new TypeError("Unknown encoding: "+T);var P=x(I,T)|0,U=a(P),le=U.write(I,T);return le!==P&&(U=U.slice(0,le)),U}function h(I){for(var T=I.length<0?0:E(I.length)|0,P=a(T),U=0;U<T;U+=1)P[U]=I[U]&255;return P}function g(I,T,P){if(T<0||I.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<T+(P||0))throw new RangeError('"length" is outside of buffer bounds');var U;return T===void 0&&P===void 0?U=new Uint8Array(I):P===void 0?U=new Uint8Array(I,T):U=new Uint8Array(I,T,P),U.__proto__=o.prototype,U}function w(I){if(o.isBuffer(I)){var T=E(I.length)|0,P=a(T);return P.length===0||I.copy(P,0,0,T),P}if(I.length!==void 0)return typeof I.length!="number"||te(I.length)?a(0):h(I);if(I.type==="Buffer"&&Array.isArray(I.data))return h(I.data)}function E(I){if(I>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return I|0}function y(I){return+I!=I&&(I=0),o.alloc(+I)}o.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==o.prototype},o.compare=function(T,P){if(j(T,Uint8Array)&&(T=o.from(T,T.offset,T.byteLength)),j(P,Uint8Array)&&(P=o.from(P,P.offset,P.byteLength)),!o.isBuffer(T)||!o.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===P)return 0;for(var U=T.length,le=P.length,Ne=0,$e=Math.min(U,le);Ne<$e;++Ne)if(T[Ne]!==P[Ne]){U=T[Ne],le=P[Ne];break}return U<le?-1:le<U?1:0},o.isEncoding=function(T){switch(String(T).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(T,P){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return o.alloc(0);var U;if(P===void 0)for(P=0,U=0;U<T.length;++U)P+=T[U].length;var le=o.allocUnsafe(P),Ne=0;for(U=0;U<T.length;++U){var $e=T[U];if(j($e,Uint8Array)&&($e=o.from($e)),!o.isBuffer($e))throw new TypeError('"list" argument must be an Array of Buffers');$e.copy(le,Ne),Ne+=$e.length}return le};function x(I,T){if(o.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||j(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var P=I.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&P===0)return 0;for(var le=!1;;)switch(T){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return wt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return ht(I).length;default:if(le)return U?-1:wt(I).length;T=(""+T).toLowerCase(),le=!0}}o.byteLength=x;function S(I,T,P){var U=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,T>>>=0,P<=T))return"";for(I||(I="utf8");;)switch(I){case"hex":return Fe(this,T,P);case"utf8":case"utf-8":return xe(this,T,P);case"ascii":return Ge(this,T,P);case"latin1":case"binary":return he(this,T,P);case"base64":return ce(this,T,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qe(this,T,P);default:if(U)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),U=!0}}o.prototype._isBuffer=!0;function A(I,T,P){var U=I[T];I[T]=I[P],I[P]=U}o.prototype.swap16=function(){var T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;P<T;P+=2)A(this,P,P+1);return this},o.prototype.swap32=function(){var T=this.length;if(T%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var P=0;P<T;P+=4)A(this,P,P+3),A(this,P+1,P+2);return this},o.prototype.swap64=function(){var T=this.length;if(T%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var P=0;P<T;P+=8)A(this,P,P+7),A(this,P+1,P+6),A(this,P+2,P+5),A(this,P+3,P+4);return this},o.prototype.toString=function(){var T=this.length;return T===0?"":arguments.length===0?xe(this,0,T):S.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(T){if(!o.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:o.compare(this,T)===0},o.prototype.inspect=function(){var T="",P=e.INSPECT_MAX_BYTES;return T=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(T+=" ... "),"<Buffer "+T+">"},o.prototype.compare=function(T,P,U,le,Ne){if(j(T,Uint8Array)&&(T=o.from(T,T.offset,T.byteLength)),!o.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(P===void 0&&(P=0),U===void 0&&(U=T?T.length:0),le===void 0&&(le=0),Ne===void 0&&(Ne=this.length),P<0||U>T.length||le<0||Ne>this.length)throw new RangeError("out of range index");if(le>=Ne&&P>=U)return 0;if(le>=Ne)return-1;if(P>=U)return 1;if(P>>>=0,U>>>=0,le>>>=0,Ne>>>=0,this===T)return 0;for(var $e=Ne-le,zt=U-P,Xt=Math.min($e,zt),er=this.slice(le,Ne),cr=T.slice(P,U),_r=0;_r<Xt;++_r)if(er[_r]!==cr[_r]){$e=er[_r],zt=cr[_r];break}return $e<zt?-1:zt<$e?1:0};function C(I,T,P,U,le){if(I.length===0)return-1;if(typeof P=="string"?(U=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,te(P)&&(P=le?0:I.length-1),P<0&&(P=I.length+P),P>=I.length){if(le)return-1;P=I.length-1}else if(P<0)if(le)P=0;else return-1;if(typeof T=="string"&&(T=o.from(T,U)),o.isBuffer(T))return T.length===0?-1:k(I,T,P,U,le);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(I,T,P):Uint8Array.prototype.lastIndexOf.call(I,T,P):k(I,[T],P,U,le);throw new TypeError("val must be string, number or Buffer")}function k(I,T,P,U,le){var Ne=1,$e=I.length,zt=T.length;if(U!==void 0&&(U=String(U).toLowerCase(),U==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if(I.length<2||T.length<2)return-1;Ne=2,$e/=2,zt/=2,P/=2}function Xt(Wn,un){return Ne===1?Wn[un]:Wn.readUInt16BE(un*Ne)}var er;if(le){var cr=-1;for(er=P;er<$e;er++)if(Xt(I,er)===Xt(T,cr===-1?0:er-cr)){if(cr===-1&&(cr=er),er-cr+1===zt)return cr*Ne}else cr!==-1&&(er-=er-cr),cr=-1}else for(P+zt>$e&&(P=$e-zt),er=P;er>=0;er--){for(var _r=!0,$r=0;$r<zt;$r++)if(Xt(I,er+$r)!==Xt(T,$r)){_r=!1;break}if(_r)return er}return-1}o.prototype.includes=function(T,P,U){return this.indexOf(T,P,U)!==-1},o.prototype.indexOf=function(T,P,U){return C(this,T,P,U,!0)},o.prototype.lastIndexOf=function(T,P,U){return C(this,T,P,U,!1)};function D(I,T,P,U){P=Number(P)||0;var le=I.length-P;U?(U=Number(U),U>le&&(U=le)):U=le;var Ne=T.length;U>Ne/2&&(U=Ne/2);for(var $e=0;$e<U;++$e){var zt=parseInt(T.substr($e*2,2),16);if(te(zt))return $e;I[P+$e]=zt}return $e}function z(I,T,P,U){return _e(wt(T,I.length-P),I,P,U)}function M(I,T,P,U){return _e(Ee(T),I,P,U)}function L(I,T,P,U){return M(I,T,P,U)}function X(I,T,P,U){return _e(ht(T),I,P,U)}function re(I,T,P,U){return _e(Be(T,I.length-P),I,P,U)}o.prototype.write=function(T,P,U,le){if(P===void 0)le="utf8",U=this.length,P=0;else if(U===void 0&&typeof P=="string")le=P,U=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(U)?(U=U>>>0,le===void 0&&(le="utf8")):(le=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ne=this.length-P;if((U===void 0||U>Ne)&&(U=Ne),T.length>0&&(U<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var $e=!1;;)switch(le){case"hex":return D(this,T,P,U);case"utf8":case"utf-8":return z(this,T,P,U);case"ascii":return M(this,T,P,U);case"latin1":case"binary":return L(this,T,P,U);case"base64":return X(this,T,P,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,T,P,U);default:if($e)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),$e=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ce(I,T,P){return T===0&&P===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(T,P))}function xe(I,T,P){P=Math.min(I.length,P);for(var U=[],le=T;le<P;){var Ne=I[le],$e=null,zt=Ne>239?4:Ne>223?3:Ne>191?2:1;if(le+zt<=P){var Xt,er,cr,_r;switch(zt){case 1:Ne<128&&($e=Ne);break;case 2:Xt=I[le+1],(Xt&192)===128&&(_r=(Ne&31)<<6|Xt&63,_r>127&&($e=_r));break;case 3:Xt=I[le+1],er=I[le+2],(Xt&192)===128&&(er&192)===128&&(_r=(Ne&15)<<12|(Xt&63)<<6|er&63,_r>2047&&(_r<55296||_r>57343)&&($e=_r));break;case 4:Xt=I[le+1],er=I[le+2],cr=I[le+3],(Xt&192)===128&&(er&192)===128&&(cr&192)===128&&(_r=(Ne&15)<<18|(Xt&63)<<12|(er&63)<<6|cr&63,_r>65535&&_r<1114112&&($e=_r))}}$e===null?($e=65533,zt=1):$e>65535&&($e-=65536,U.push($e>>>10&1023|55296),$e=56320|$e&1023),U.push($e),le+=zt}return Ze(U)}var Se=4096;function Ze(I){var T=I.length;if(T<=Se)return String.fromCharCode.apply(String,I);for(var P="",U=0;U<T;)P+=String.fromCharCode.apply(String,I.slice(U,U+=Se));return P}function Ge(I,T,P){var U="";P=Math.min(I.length,P);for(var le=T;le<P;++le)U+=String.fromCharCode(I[le]&127);return U}function he(I,T,P){var U="";P=Math.min(I.length,P);for(var le=T;le<P;++le)U+=String.fromCharCode(I[le]);return U}function Fe(I,T,P){var U=I.length;(!T||T<0)&&(T=0),(!P||P<0||P>U)&&(P=U);for(var le="",Ne=T;Ne<P;++Ne)le+=At(I[Ne]);return le}function qe(I,T,P){for(var U=I.slice(T,P),le="",Ne=0;Ne<U.length;Ne+=2)le+=String.fromCharCode(U[Ne]+U[Ne+1]*256);return le}o.prototype.slice=function(T,P){var U=this.length;T=~~T,P=P===void 0?U:~~P,T<0?(T+=U,T<0&&(T=0)):T>U&&(T=U),P<0?(P+=U,P<0&&(P=0)):P>U&&(P=U),P<T&&(P=T);var le=this.subarray(T,P);return le.__proto__=o.prototype,le};function ze(I,T,P){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+T>P)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(T,P,U){T=T>>>0,P=P>>>0,U||ze(T,P,this.length);for(var le=this[T],Ne=1,$e=0;++$e<P&&(Ne*=256);)le+=this[T+$e]*Ne;return le},o.prototype.readUIntBE=function(T,P,U){T=T>>>0,P=P>>>0,U||ze(T,P,this.length);for(var le=this[T+--P],Ne=1;P>0&&(Ne*=256);)le+=this[T+--P]*Ne;return le},o.prototype.readUInt8=function(T,P){return T=T>>>0,P||ze(T,1,this.length),this[T]},o.prototype.readUInt16LE=function(T,P){return T=T>>>0,P||ze(T,2,this.length),this[T]|this[T+1]<<8},o.prototype.readUInt16BE=function(T,P){return T=T>>>0,P||ze(T,2,this.length),this[T]<<8|this[T+1]},o.prototype.readUInt32LE=function(T,P){return T=T>>>0,P||ze(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},o.prototype.readUInt32BE=function(T,P){return T=T>>>0,P||ze(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},o.prototype.readIntLE=function(T,P,U){T=T>>>0,P=P>>>0,U||ze(T,P,this.length);for(var le=this[T],Ne=1,$e=0;++$e<P&&(Ne*=256);)le+=this[T+$e]*Ne;return Ne*=128,le>=Ne&&(le-=Math.pow(2,8*P)),le},o.prototype.readIntBE=function(T,P,U){T=T>>>0,P=P>>>0,U||ze(T,P,this.length);for(var le=P,Ne=1,$e=this[T+--le];le>0&&(Ne*=256);)$e+=this[T+--le]*Ne;return Ne*=128,$e>=Ne&&($e-=Math.pow(2,8*P)),$e},o.prototype.readInt8=function(T,P){return T=T>>>0,P||ze(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},o.prototype.readInt16LE=function(T,P){T=T>>>0,P||ze(T,2,this.length);var U=this[T]|this[T+1]<<8;return U&32768?U|4294901760:U},o.prototype.readInt16BE=function(T,P){T=T>>>0,P||ze(T,2,this.length);var U=this[T+1]|this[T]<<8;return U&32768?U|4294901760:U},o.prototype.readInt32LE=function(T,P){return T=T>>>0,P||ze(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},o.prototype.readInt32BE=function(T,P){return T=T>>>0,P||ze(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},o.prototype.readFloatLE=function(T,P){return T=T>>>0,P||ze(T,4,this.length),r.read(this,T,!0,23,4)},o.prototype.readFloatBE=function(T,P){return T=T>>>0,P||ze(T,4,this.length),r.read(this,T,!1,23,4)},o.prototype.readDoubleLE=function(T,P){return T=T>>>0,P||ze(T,8,this.length),r.read(this,T,!0,52,8)},o.prototype.readDoubleBE=function(T,P){return T=T>>>0,P||ze(T,8,this.length),r.read(this,T,!1,52,8)};function we(I,T,P,U,le,Ne){if(!o.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>le||T<Ne)throw new RangeError('"value" argument is out of bounds');if(P+U>I.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(T,P,U,le){if(T=+T,P=P>>>0,U=U>>>0,!le){var Ne=Math.pow(2,8*U)-1;we(this,T,P,U,Ne,0)}var $e=1,zt=0;for(this[P]=T&255;++zt<U&&($e*=256);)this[P+zt]=T/$e&255;return P+U},o.prototype.writeUIntBE=function(T,P,U,le){if(T=+T,P=P>>>0,U=U>>>0,!le){var Ne=Math.pow(2,8*U)-1;we(this,T,P,U,Ne,0)}var $e=U-1,zt=1;for(this[P+$e]=T&255;--$e>=0&&(zt*=256);)this[P+$e]=T/zt&255;return P+U},o.prototype.writeUInt8=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,1,255,0),this[P]=T&255,P+1},o.prototype.writeUInt16LE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,2,65535,0),this[P]=T&255,this[P+1]=T>>>8,P+2},o.prototype.writeUInt16BE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,2,65535,0),this[P]=T>>>8,this[P+1]=T&255,P+2},o.prototype.writeUInt32LE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,4,4294967295,0),this[P+3]=T>>>24,this[P+2]=T>>>16,this[P+1]=T>>>8,this[P]=T&255,P+4},o.prototype.writeUInt32BE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,4,4294967295,0),this[P]=T>>>24,this[P+1]=T>>>16,this[P+2]=T>>>8,this[P+3]=T&255,P+4},o.prototype.writeIntLE=function(T,P,U,le){if(T=+T,P=P>>>0,!le){var Ne=Math.pow(2,8*U-1);we(this,T,P,U,Ne-1,-Ne)}var $e=0,zt=1,Xt=0;for(this[P]=T&255;++$e<U&&(zt*=256);)T<0&&Xt===0&&this[P+$e-1]!==0&&(Xt=1),this[P+$e]=(T/zt>>0)-Xt&255;return P+U},o.prototype.writeIntBE=function(T,P,U,le){if(T=+T,P=P>>>0,!le){var Ne=Math.pow(2,8*U-1);we(this,T,P,U,Ne-1,-Ne)}var $e=U-1,zt=1,Xt=0;for(this[P+$e]=T&255;--$e>=0&&(zt*=256);)T<0&&Xt===0&&this[P+$e+1]!==0&&(Xt=1),this[P+$e]=(T/zt>>0)-Xt&255;return P+U},o.prototype.writeInt8=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,1,127,-128),T<0&&(T=255+T+1),this[P]=T&255,P+1},o.prototype.writeInt16LE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,2,32767,-32768),this[P]=T&255,this[P+1]=T>>>8,P+2},o.prototype.writeInt16BE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,2,32767,-32768),this[P]=T>>>8,this[P+1]=T&255,P+2},o.prototype.writeInt32LE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,4,2147483647,-2147483648),this[P]=T&255,this[P+1]=T>>>8,this[P+2]=T>>>16,this[P+3]=T>>>24,P+4},o.prototype.writeInt32BE=function(T,P,U){return T=+T,P=P>>>0,U||we(this,T,P,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[P]=T>>>24,this[P+1]=T>>>16,this[P+2]=T>>>8,this[P+3]=T&255,P+4};function ge(I,T,P,U,le,Ne){if(P+U>I.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function Ve(I,T,P,U,le){return T=+T,P=P>>>0,le||ge(I,T,P,4),r.write(I,T,P,U,23,4),P+4}o.prototype.writeFloatLE=function(T,P,U){return Ve(this,T,P,!0,U)},o.prototype.writeFloatBE=function(T,P,U){return Ve(this,T,P,!1,U)};function We(I,T,P,U,le){return T=+T,P=P>>>0,le||ge(I,T,P,8),r.write(I,T,P,U,52,8),P+8}o.prototype.writeDoubleLE=function(T,P,U){return We(this,T,P,!0,U)},o.prototype.writeDoubleBE=function(T,P,U){return We(this,T,P,!1,U)},o.prototype.copy=function(T,P,U,le){if(!o.isBuffer(T))throw new TypeError("argument should be a Buffer");if(U||(U=0),!le&&le!==0&&(le=this.length),P>=T.length&&(P=T.length),P||(P=0),le>0&&le<U&&(le=U),le===U||T.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),T.length-P<le-U&&(le=T.length-P+U);var Ne=le-U;if(this===T&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(P,U,le);else if(this===T&&U<P&&P<le)for(var $e=Ne-1;$e>=0;--$e)T[$e+P]=this[$e+U];else Uint8Array.prototype.set.call(T,this.subarray(U,le),P);return Ne},o.prototype.fill=function(T,P,U,le){if(typeof T=="string"){if(typeof P=="string"?(le=P,P=0,U=this.length):typeof U=="string"&&(le=U,U=this.length),le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!o.isEncoding(le))throw new TypeError("Unknown encoding: "+le);if(T.length===1){var Ne=T.charCodeAt(0);(le==="utf8"&&Ne<128||le==="latin1")&&(T=Ne)}}else typeof T=="number"&&(T=T&255);if(P<0||this.length<P||this.length<U)throw new RangeError("Out of range index");if(U<=P)return this;P=P>>>0,U=U===void 0?this.length:U>>>0,T||(T=0);var $e;if(typeof T=="number")for($e=P;$e<U;++$e)this[$e]=T;else{var zt=o.isBuffer(T)?T:o.from(T,le),Xt=zt.length;if(Xt===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for($e=0;$e<U-P;++$e)this[$e+P]=zt[$e%Xt]}return this};var Qe=/[^+/0-9A-Za-z-_]/g;function rt(I){if(I=I.split("=")[0],I=I.trim().replace(Qe,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function At(I){return I<16?"0"+I.toString(16):I.toString(16)}function wt(I,T){T=T||1/0;for(var P,U=I.length,le=null,Ne=[],$e=0;$e<U;++$e){if(P=I.charCodeAt($e),P>55295&&P<57344){if(!le){if(P>56319){(T-=3)>-1&&Ne.push(239,191,189);continue}else if($e+1===U){(T-=3)>-1&&Ne.push(239,191,189);continue}le=P;continue}if(P<56320){(T-=3)>-1&&Ne.push(239,191,189),le=P;continue}P=(le-55296<<10|P-56320)+65536}else le&&(T-=3)>-1&&Ne.push(239,191,189);if(le=null,P<128){if((T-=1)<0)break;Ne.push(P)}else if(P<2048){if((T-=2)<0)break;Ne.push(P>>6|192,P&63|128)}else if(P<65536){if((T-=3)<0)break;Ne.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((T-=4)<0)break;Ne.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return Ne}function Ee(I){for(var T=[],P=0;P<I.length;++P)T.push(I.charCodeAt(P)&255);return T}function Be(I,T){for(var P,U,le,Ne=[],$e=0;$e<I.length&&!((T-=2)<0);++$e)P=I.charCodeAt($e),U=P>>8,le=P%256,Ne.push(le),Ne.push(U);return Ne}function ht(I){return t.toByteArray(rt(I))}function _e(I,T,P,U){for(var le=0;le<U&&!(le+P>=T.length||le>=I.length);++le)T[le+P]=I[le];return le}function j(I,T){return I instanceof T||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===T.name}function te(I){return I!==I}})(_$);var cl=nn,Yn=qde,E$=_$.Buffer;Cr.__TYPEDARRAY_POOL||(Cr.__TYPEDARRAY_POOL={UINT8:Yn([32,0]),UINT16:Yn([32,0]),UINT32:Yn([32,0]),BIGUINT64:Yn([32,0]),INT8:Yn([32,0]),INT16:Yn([32,0]),INT32:Yn([32,0]),BIGINT64:Yn([32,0]),FLOAT:Yn([32,0]),DOUBLE:Yn([32,0]),DATA:Yn([32,0]),UINT8C:Yn([32,0]),BUFFER:Yn([32,0])});var epe=typeof Uint8ClampedArray<"u",tpe=typeof BigUint64Array<"u",rpe=typeof BigInt64Array<"u",cn=Cr.__TYPEDARRAY_POOL;cn.UINT8C||(cn.UINT8C=Yn([32,0]));cn.BIGUINT64||(cn.BIGUINT64=Yn([32,0]));cn.BIGINT64||(cn.BIGINT64=Yn([32,0]));cn.BUFFER||(cn.BUFFER=Yn([32,0]));var Nb=cn.DATA,Fb=cn.BUFFER;wr.free=function(t){if(E$.isBuffer(t))Fb[cl.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=cl.log2(r)|0;Nb[n].push(t)}};function A$(e){if(!!e){var t=e.length||e.byteLength,r=cl.log2(t);Nb[r].push(e)}}function npe(e){A$(e.buffer)}wr.freeUint8=wr.freeUint16=wr.freeUint32=wr.freeBigUint64=wr.freeInt8=wr.freeInt16=wr.freeInt32=wr.freeBigInt64=wr.freeFloat32=wr.freeFloat=wr.freeFloat64=wr.freeDouble=wr.freeUint8Clamped=wr.freeDataView=npe;wr.freeArrayBuffer=A$;wr.freeBuffer=function(t){Fb[cl.log2(t.length)].push(t)};wr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Ti(t);switch(r){case"uint8":return tR(t);case"uint16":return C$(t);case"uint32":return T$(t);case"int8":return R$(t);case"int16":return O$(t);case"int32":return I$(t);case"float":case"float32":return P$(t);case"double":case"float64":return k$(t);case"uint8_clamped":return D$(t);case"bigint64":return N$(t);case"biguint64":return M$(t);case"buffer":return L$(t);case"data":case"dataview":return F$(t);default:return null}return null};function Ti(t){var t=cl.nextPow2(t),r=cl.log2(t),n=Nb[r];return n.length>0?n.pop():new ArrayBuffer(t)}wr.mallocArrayBuffer=Ti;function tR(e){return new Uint8Array(Ti(e),0,e)}wr.mallocUint8=tR;function C$(e){return new Uint16Array(Ti(2*e),0,e)}wr.mallocUint16=C$;function T$(e){return new Uint32Array(Ti(4*e),0,e)}wr.mallocUint32=T$;function R$(e){return new Int8Array(Ti(e),0,e)}wr.mallocInt8=R$;function O$(e){return new Int16Array(Ti(2*e),0,e)}wr.mallocInt16=O$;function I$(e){return new Int32Array(Ti(4*e),0,e)}wr.mallocInt32=I$;function P$(e){return new Float32Array(Ti(4*e),0,e)}wr.mallocFloat32=wr.mallocFloat=P$;function k$(e){return new Float64Array(Ti(8*e),0,e)}wr.mallocFloat64=wr.mallocDouble=k$;function D$(e){return epe?new Uint8ClampedArray(Ti(e),0,e):tR(e)}wr.mallocUint8Clamped=D$;function M$(e){return tpe?new BigUint64Array(Ti(8*e),0,e):null}wr.mallocBigUint64=M$;function N$(e){return rpe?new BigInt64Array(Ti(8*e),0,e):null}wr.mallocBigInt64=N$;function F$(e){return new DataView(Ti(e),0,e)}wr.mallocDataView=F$;function L$(e){e=cl.nextPow2(e);var t=cl.log2(e),r=Fb[t];return r.length>0?r.pop():new E$(e)}wr.mallocBuffer=L$;wr.clearCache=function(){for(var t=0;t<32;++t)cn.UINT8[t].length=0,cn.UINT16[t].length=0,cn.UINT32[t].length=0,cn.INT8[t].length=0,cn.INT16[t].length=0,cn.INT32[t].length=0,cn.FLOAT[t].length=0,cn.DOUBLE[t].length=0,cn.BIGUINT64[t].length=0,cn.BIGINT64[t].length=0,cn.UINT8C[t].length=0,Nb[t].length=0,Fb[t].length=0};var B$=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},ipe=B$,ape=$$,Xp=96;function GE(e,t){var r=ipe(getComputedStyle(e).getPropertyValue(t));return r[0]*$$(r[1],e)}function ope(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=GE(r,"font-size")/128;return t.removeChild(r),n}function $$(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 ope(e,t);case"em":return GE(t,"font-size");case"rem":return GE(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 Xp;case"cm":return Xp/2.54;case"mm":return Xp/25.4;case"pt":return Xp/72;case"pc":return Xp/6}return 1}var spe=Lb,lpe=Lb.canvas=document.createElement("canvas"),y0=lpe.getContext("2d"),z$=h1([32,126]);Lb.createPairs=h1;Lb.ascii=z$;function Lb(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=h1(t):Array.isArray(t)?n=t:(t.o?n=h1(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=z$),y0.font=i+"px "+e;for(var o=0;o<n.length;o++){var s=n[o],u=y0.measureText(s[0]).width+y0.measureText(s[1]).width,f=y0.measureText(s).width;if(Math.abs(u-f)>i*a){var d=(f-u)/i;r[s]=d*1e3}}return r}function h1(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 upe=Ds;Ds.canvas=document.createElement("canvas");Ds.cache={};function Ds(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,s=t.origin||"top";if(Ds.cache[r]&&n<=Ds.cache[r].em)return PD(Ds.cache[r],s);var u=t.canvas||Ds.canvas,f=u.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"},p=Math.ceil(n*1.5);u.height=p,u.width=p*.5,f.font=o;var h="H",g={top:0};f.clearRect(0,0,p,p),f.textBaseline="top",f.fillStyle="black",f.fillText(h,0,0);var w=Wa(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline="bottom",f.fillText(h,0,p);var E=Wa(f.getImageData(0,0,p,p));g.lineHeight=g.bottom=p-E+w,f.clearRect(0,0,p,p),f.textBaseline="alphabetic",f.fillText(h,0,p);var y=Wa(f.getImageData(0,0,p,p)),x=p-y-1+w;g.baseline=g.alphabetic=x,f.clearRect(0,0,p,p),f.textBaseline="middle",f.fillText(h,0,p*.5);var S=Wa(f.getImageData(0,0,p,p));g.median=g.middle=p-S-1+w-p*.5,f.clearRect(0,0,p,p),f.textBaseline="hanging",f.fillText(h,0,p*.5);var A=Wa(f.getImageData(0,0,p,p));g.hanging=p-A-1+w-p*.5,f.clearRect(0,0,p,p),f.textBaseline="ideographic",f.fillText(h,0,p);var C=Wa(f.getImageData(0,0,p,p));if(g.ideographic=p-C-1+w,d.upper&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.upper,0,0),g.upper=Wa(f.getImageData(0,0,p,p)),g.capHeight=g.baseline-g.upper),d.lower&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.lower,0,0),g.lower=Wa(f.getImageData(0,0,p,p)),g.xHeight=g.baseline-g.lower),d.tittle&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.tittle,0,0),g.tittle=Wa(f.getImageData(0,0,p,p))),d.ascent&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.ascent,0,0),g.ascent=Wa(f.getImageData(0,0,p,p))),d.descent&&(f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.descent,0,0),g.descent=kD(f.getImageData(0,0,p,p))),d.overshoot){f.clearRect(0,0,p,p),f.textBaseline="top",f.fillText(d.overshoot,0,0);var k=kD(f.getImageData(0,0,p,p));g.overshoot=k-x}for(var D in g)g[D]/=n;return g.em=n,Ds.cache[r]=g,PD(g,s)}function PD(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 Wa(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 kD(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 $f=Mde,fpe=bl,cpe=b$.exports,dpe=Fde,ppe=l$,DS=Ib,hpe=Ude,Cs=wr,vpe=Ob,gpe=X8,mpe=B$,ype=ape,bpe=spe,xpe=ku,wpe=upe,_pe=ag,Spe=nn,DD=Spe.nextPow2,MD=new ppe,q0=!1;if(document.body){var MS=document.body.appendChild(document.createElement("div"));MS.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(MS).fontStretch&&(q0=!0),document.body.removeChild(MS)}var Or=function(t){Epe(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=dpe(t),this.shader=MD.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||cpe({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(),MD.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(gpe(t)?t:{})};Or.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:`
1168
+ precision highp float;
1169
+ attribute float width, charOffset, char;
1170
+ attribute vec2 position;
1171
+ uniform float fontSize, charStep, em, align, baseline;
1172
+ uniform vec4 viewport;
1173
+ uniform vec4 color;
1174
+ uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1175
+ varying vec2 charCoord, charId;
1176
+ varying float charWidth;
1177
+ varying vec4 fontColor;
1178
+ void main () {
1179
+ vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1180
+ + vec2(positionOffset.x, -positionOffset.y)))
1181
+ / (viewport.zw * scale.xy);
1182
+
1183
+ vec2 position = (position + translate) * scale;
1184
+ position += offset * scale;
1185
+
1186
+ charCoord = position * viewport.zw + viewport.xy;
1187
+
1188
+ gl_Position = vec4(position * 2. - 1., 0, 1);
1189
+
1190
+ gl_PointSize = charStep;
1191
+
1192
+ charId.x = mod(char, atlasDim.x);
1193
+ charId.y = floor(char / atlasDim.x);
1194
+
1195
+ charWidth = width * em;
1196
+
1197
+ fontColor = color / 255.;
1198
+ }`,frag:`
1199
+ precision highp float;
1200
+ uniform float fontSize, charStep, opacity;
1201
+ uniform vec2 atlasSize;
1202
+ uniform vec4 viewport;
1203
+ uniform sampler2D atlas;
1204
+ varying vec4 fontColor;
1205
+ varying vec2 charCoord, charId;
1206
+ varying float charWidth;
1207
+
1208
+ float lightness(vec4 color) {
1209
+ return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1210
+ }
1211
+
1212
+ void main () {
1213
+ vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1214
+ float halfCharStep = floor(charStep * .5 + .5);
1215
+
1216
+ // invert y and shift by 1px (FF expecially needs that)
1217
+ uv.y = charStep - uv.y;
1218
+
1219
+ // ignore points outside of character bounding box
1220
+ float halfCharWidth = ceil(charWidth * .5);
1221
+ if (floor(uv.x) > halfCharStep + halfCharWidth ||
1222
+ floor(uv.x) < halfCharStep - halfCharWidth) return;
1223
+
1224
+ uv += charId * charStep;
1225
+ uv = uv / atlasSize;
1226
+
1227
+ vec4 color = fontColor;
1228
+ vec4 mask = texture2D(atlas, uv);
1229
+
1230
+ float maskY = lightness(mask);
1231
+ // float colorY = lightness(color);
1232
+ color.a *= maskY;
1233
+ color.a *= opacity;
1234
+
1235
+ // color.a += .1;
1236
+
1237
+ // antialiasing, see yiq color space y-channel formula
1238
+ // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1239
+
1240
+ gl_FragColor = color;
1241
+ }`}),n={};return{regl:t,draw:r,atlas:n}};Or.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=fpe(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(We){return parseFloat(We)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=vpe(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=_pe(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=Or.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(We,Qe){if(typeof We=="string")try{We=$f.parse(We)}catch{We=$f.parse(Or.baseFontSize+"px "+We)}else We=$f.parse($f.stringify(We));var rt=$f.stringify({size:Or.baseFontSize,family:We.family,stretch:q0?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style}),At=mpe(We.size),wt=Math.round(At[0]*ype(At[1]));if(wt!==r.fontSize[Qe]&&(i=!0,r.fontSize[Qe]=wt),(!r.font[Qe]||rt!=r.font[Qe].baseString)&&(n=!0,r.font[Qe]=Or.fonts[rt],!r.font[Qe])){var Ee=We.family.join(", "),Be=[We.style];We.style!=We.variant&&Be.push(We.variant),We.variant!=We.weight&&Be.push(We.weight),q0&&We.weight!=We.stretch&&Be.push(We.stretch),r.font[Qe]={baseString:rt,family:Ee,weight:We.weight,stretch:We.stretch,style:We.style,variant:We.variant,width:{},kerning:{},metrics:wpe(Ee,{origin:"top",fontSize:Or.baseFontSize,fontStyle:Be.join(" ")})},Or.fonts[rt]=r.font[Qe]}}),(n||i)&&this.font.forEach(function(We,Qe){var rt=$f.stringify({size:r.fontSize[Qe],family:We.family,stretch:q0?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style});if(r.fontAtlas[Qe]=r.shader.atlas[rt],!r.fontAtlas[Qe]){var At=We.metrics;r.shader.atlas[rt]=r.fontAtlas[Qe]={fontString:rt,step:Math.ceil(r.fontSize[Qe]*At.bottom*.5)*2,em:r.fontSize[Qe],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 s;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 u=1;u<t.text.length;u++)this.textOffsets[u]=this.textOffsets[u-1]+t.text[u-1].length,this.count+=t.text[u].length,this.counts.push(t.text[u].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];s=[],this.font.forEach(function(We,Qe){Or.atlasContext.font=We.baseString;for(var rt=r.fontAtlas[Qe],At=0;At<r.text.length;At++){var wt=r.text.charAt(At);if(rt.ids[wt]==null&&(rt.ids[wt]=rt.chars.length,rt.chars.push(wt),s.push(wt)),We.width[wt]==null&&(We.width[wt]=Or.atlasContext.measureText(wt).width/Or.baseFontSize,r.kerning)){var Ee=[];for(var Be in We.width)Ee.push(Be+wt,wt+Be);xpe(We.kerning,bpe(We.family,{pairs:Ee}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=Cs.mallocFloat(this.count*2),p=0,h=0;p<this.counts.length;p++){var g=this.counts[p];if(f)for(var w=0;w<g;w++)d[h++]=t.position[p*2],d[h++]=t.position[p*2+1];else for(var E=0;E<g;E++)d[h++]=t.position[p][0],d[h++]=t.position[p][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Cs.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var y=Cs.mallocUint8(this.count),x=Cs.mallocFloat(this.count*2);this.textWidth=[];for(var S=0,A=0;S<this.counts.length;S++){for(var C=this.counts[S],k=this.font[S]||this.font[0],D=this.fontAtlas[S]||this.fontAtlas[0],z=0;z<C;z++){var M=this.text.charAt(A),L=this.text.charAt(A-1);if(y[A]=D.ids[M],x[A*2]=k.width[M],z){var X=x[A*2-2],re=x[A*2],ce=x[A*2-1],xe=ce+X*.5+re*.5;if(this.kerning){var Se=k.kerning[L+M];Se&&(xe+=Se*.001)}x[A*2+1]=xe}else x[A*2+1]=x[A*2]*.5;A++}this.textWidth.push(x.length?x[A*2-2]*.5+x[A*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:y,type:"uint8",usage:"stream"}),this.sizeBuffer({data:x,type:"float",usage:"stream"}),Cs.freeUint8(y),Cs.freeFloat(x),s.length&&this.font.forEach(function(We,Qe){var rt=r.fontAtlas[Qe],At=rt.step,wt=Math.floor(Or.maxAtlasSize/At),Ee=Math.min(wt,rt.chars.length),Be=Math.ceil(rt.chars.length/Ee),ht=DD(Ee*At),_e=DD(Be*At);rt.width=ht,rt.height=_e,rt.rows=Be,rt.cols=Ee,rt.em&&rt.texture({data:hpe({canvas:Or.atlasCanvas,font:rt.fontString,chars:rt.chars,shape:[ht,_e],step:[At,At]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(We,Qe){var rt=Array.isArray(r.align)?r.align.length>1?r.align[Qe]:r.align[0]:r.align;if(typeof rt=="number")return rt;switch(rt){case"right":case"end":return-We;case"center":case"centre":case"middle":return-We*.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(We,Qe){var rt=(r.font[Qe]||r.font[0]).metrics,At=0;return At+=rt.bottom*.5,typeof We=="number"?At+=We-rt.baseline:At+=-rt[We],At*=-1,At})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=DS(t.color,"uint8");else{var Ze;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Ge=t.color.length;Ze=Cs.mallocUint8(Ge);for(var he=(t.color.subarray||t.color.slice).bind(t.color),Fe=0;Fe<Ge;Fe+=4)Ze.set(DS(he(Fe,Fe+4),"uint8"),Fe)}else{var qe=t.color.length;Ze=Cs.mallocUint8(qe*4);for(var ze=0;ze<qe;ze++)Ze.set(DS(t.color[ze]||0,"uint8"),ze*4)}this.color=Ze}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var we=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(we){var ge=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(ge);for(var Ve=0;Ve<this.batch.length;Ve++)this.batch[Ve]={count:this.counts.length>1?this.counts[Ve]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ve]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ve*4,Ve*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ve]:this.opacity,baseline:this.baselineOffset[Ve]!=null?this.baselineOffset[Ve]:this.baselineOffset[0],align:this.align?this.alignOffset[Ve]!=null?this.alignOffset[Ve]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ve]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ve*2,Ve*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=[]}};Or.prototype.destroy=function(){};Or.prototype.kerning=!0;Or.prototype.position={constant:new Float32Array(2)};Or.prototype.translate=null;Or.prototype.scale=null;Or.prototype.font=null;Or.prototype.text="";Or.prototype.positionOffset=[0,0];Or.prototype.opacity=1;Or.prototype.color=new Uint8Array([0,0,0,255]);Or.prototype.alignOffset=[0,0];Or.maxAtlasSize=1024;Or.atlasCanvas=document.createElement("canvas");Or.atlasContext=Or.atlasCanvas.getContext("2d",{alpha:!1});Or.baseFontSize=64;Or.fonts={};function Epe(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Gge=Or;function Ape(e,t){return e.parent===t.parent?1:2}function Cpe(e){return e.reduce(Tpe,0)/e.length}function Tpe(e,t){return e+t.x}function Rpe(e){return 1+e.reduce(Ope,0)}function Ope(e,t){return Math.max(e,t.y)}function Ipe(e){for(var t;t=e.children;)e=t[0];return e}function Ppe(e){for(var t;t=e.children;)e=t[t.length-1];return e}function kpe(){var e=Ape,t=1,r=1,n=!1;function i(a){var o,s=0;a.eachAfter(function(h){var g=h.children;g?(h.x=Cpe(g),h.y=Rpe(g)):(h.x=o?s+=e(h,o):0,h.y=0,o=h)});var u=Ipe(a),f=Ppe(a),d=u.x-e(u,f)/2,p=f.x+e(f,u)/2;return a.eachAfter(n?function(h){h.x=(h.x-a.x)*t,h.y=(a.y-h.y)*r}:function(h){h.x=(h.x-d)/(p-d)*t,h.y=(1-(a.y?h.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 Dpe(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 Mpe(){return this.eachAfter(Dpe)}function Npe(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 Fpe(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 Lpe(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 Bpe(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 $pe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function zpe(e){for(var t=this,r=Upe(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 Upe(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 jpe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Wpe(){var e=[];return this.each(function(t){e.push(t)}),e}function Gpe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function qpe(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function rR(e,t){var r=new Uc(e),n=+e.value&&(r.value=e.value),i,a=[r],o,s,u,f;for(t==null&&(t=Vpe);i=a.pop();)if(n&&(i.value=+i.data.value),(s=t(i.data))&&(f=s.length))for(i.children=new Array(f),u=f-1;u>=0;--u)a.push(o=i.children[u]=new Uc(s[u])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(U$)}function Hpe(){return rR(this).eachBefore(Ype)}function Vpe(e){return e.children}function Ype(e){e.data=e.data.data}function U$(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Uc(e){this.data=e,this.depth=this.height=0,this.parent=null}Uc.prototype=rR.prototype={constructor:Uc,count:Mpe,each:Npe,eachAfter:Lpe,eachBefore:Fpe,sum:Bpe,sort:$pe,path:zpe,ancestors:jpe,descendants:Wpe,leaves:Gpe,links:qpe,copy:Hpe};var Xpe=Array.prototype.slice;function Kpe(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 j$(e){for(var t=0,r=(e=Kpe(Xpe.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&W$(a,i)?++t:(a=Zpe(n=Qpe(n,i)),t=0);return a}function Qpe(e,t){var r,n;if(NS(t,e))return[t];for(r=0;r<e.length;++r)if(b0(t,e[r])&&NS(fh(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(b0(fh(e[r],e[n]),t)&&b0(fh(e[r],t),e[n])&&b0(fh(e[n],t),e[r])&&NS(G$(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function b0(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 W$(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 NS(e,t){for(var r=0;r<t.length;++r)if(!W$(e,t[r]))return!1;return!0}function Zpe(e){switch(e.length){case 1:return Jpe(e[0]);case 2:return fh(e[0],e[1]);case 3:return G$(e[0],e[1],e[2])}}function Jpe(e){return{x:e.x,y:e.y,r:e.r}}function fh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,s=t.r,u=a-r,f=o-n,d=s-i,p=Math.sqrt(u*u+f*f);return{x:(r+a+u/p*d)/2,y:(n+o+f/p*d)/2,r:(p+i+s)/2}}function G$(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,s=t.y,u=t.r,f=r.x,d=r.y,p=r.r,h=n-o,g=n-f,w=i-s,E=i-d,y=u-a,x=p-a,S=n*n+i*i-a*a,A=S-o*o-s*s+u*u,C=S-f*f-d*d+p*p,k=g*w-h*E,D=(w*C-E*A)/(k*2)-n,z=(E*y-w*x)/k,M=(g*A-h*C)/(k*2)-i,L=(h*x-g*y)/k,X=z*z+L*L-1,re=2*(a+D*z+M*L),ce=D*D+M*M-a*a,xe=-(X?(re+Math.sqrt(re*re-4*X*ce))/(2*X):ce/re);return{x:n+D+z*xe,y:i+M+L*xe,r:xe}}function ND(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,s,u,f=n*n+o*o;f?(a=t.r+r.r,a*=a,u=e.r+r.r,u*=u,a>u?(i=(f+u-a)/(2*f),s=Math.sqrt(Math.max(0,u/f-i*i)),r.x=e.x-i*n-s*o,r.y=e.y-i*o+s*n):(i=(f+a-u)/(2*f),s=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-s*o,r.y=t.y+i*o+s*n)):(r.x=t.x+r.r,r.y=t.y)}function FD(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 LD(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 x0(e){this._=e,this.next=null,this.previous=null}function q$(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,s,u,f,d,p;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;ND(r,t,n=e[2]),t=new x0(t),r=new x0(r),n=new x0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(s=3;s<i;++s){ND(t._,r._,n=e[s]),n=new x0(n),u=r.next,f=t.previous,d=r._.r,p=t._.r;do if(d<=p){if(FD(u._,n._)){r=u,t.next=r,r.previous=t,--s;continue e}d+=u._.r,u=u.next}else{if(FD(f._,n._)){t=f,t.next=r,r.previous=t,--s;continue e}p+=f._.r,f=f.previous}while(u!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=LD(t);(n=n.next)!==r;)(o=LD(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=j$(t),s=0;s<i;++s)t=e[s],t.x-=n.x,t.y-=n.y;return n.r}function ehe(e){return q$(e),e}function the(e){return e==null?null:v1(e)}function v1(e){if(typeof e!="function")throw new Error;return e}function ru(){return 0}function Hf(e){return function(){return e}}function rhe(e){return Math.sqrt(e.value)}function nhe(){var e=null,t=1,r=1,n=ru;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(BD(e)).eachAfter(FS(n,.5)).eachBefore($D(1)):a.eachBefore(BD(rhe)).eachAfter(FS(ru,1)).eachAfter(FS(n,a.r/Math.min(t,r))).eachBefore($D(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=the(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:Hf(+a),i):n},i}function BD(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function FS(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,s;if(o)for(i=0;i<a;++i)n[i].r+=o;if(s=q$(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=s+o}}}function $D(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 H$(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 sg(e,t,r,n,i){for(var a=e.children,o,s=-1,u=a.length,f=e.value&&(n-t)/e.value;++s<u;)o=a[s],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function ihe(){var e=1,t=1,r=0,n=!1;function i(o){var s=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/s,o.eachBefore(a(t,s)),n&&o.eachBefore(H$),o}function a(o,s){return function(u){u.children&&sg(u,u.x0,o*(u.depth+1)/s,u.x1,o*(u.depth+2)/s);var f=u.x0,d=u.y0,p=u.x1-r,h=u.y1-r;p<f&&(f=p=(f+p)/2),h<d&&(d=h=(d+h)/2),u.x0=f,u.y0=d,u.x1=p,u.y1=h}}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 zD="$",ahe={depth:-1},UD={};function ohe(e){return e.id}function she(e){return e.parentId}function lhe(){var e=ohe,t=she;function r(n){var i,a,o=n.length,s,u,f,d=new Array(o),p,h,g={};for(a=0;a<o;++a)i=n[a],f=d[a]=new Uc(i),(p=e(i,a,n))!=null&&(p+="")&&(h=zD+(f.id=p),g[h]=h in g?UD:f);for(a=0;a<o;++a)if(f=d[a],p=t(n[a],a,n),p==null||!(p+="")){if(s)throw new Error("multiple roots");s=f}else{if(u=g[zD+p],!u)throw new Error("missing: "+p);if(u===UD)throw new Error("ambiguous: "+p);u.children?u.children.push(f):u.children=[f],f.parent=u}if(!s)throw new Error("no root");if(s.parent=ahe,s.eachBefore(function(w){w.depth=w.parent.depth+1,--o}).eachBefore(U$),s.parent=null,o>0)throw new Error("cycle");return s}return r.id=function(n){return arguments.length?(e=v1(n),r):e},r.parentId=function(n){return arguments.length?(t=v1(n),r):t},r}function uhe(e,t){return e.parent===t.parent?1:2}function LS(e){var t=e.children;return t?t[0]:e.t}function BS(e){var t=e.children;return t?t[t.length-1]:e.t}function fhe(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 che(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 dhe(e,t,r){return e.a.parent===t.parent?e.a:r}function H0(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}H0.prototype=Object.create(Uc.prototype);function phe(e){for(var t=new H0(e,0),r,n=[t],i,a,o,s;r=n.pop();)if(a=r._.children)for(r.children=new Array(s=a.length),o=s-1;o>=0;--o)n.push(i=r.children[o]=new H0(a[o],o)),i.parent=r;return(t.parent=new H0(null,0)).children=[t],t}function hhe(){var e=uhe,t=1,r=1,n=null;function i(f){var d=phe(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(u);else{var p=f,h=f,g=f;f.eachBefore(function(S){S.x<p.x&&(p=S),S.x>h.x&&(h=S),S.depth>g.depth&&(g=S)});var w=p===h?1:e(p,h)/2,E=w-p.x,y=t/(h.x+w+E),x=r/(g.depth||1);f.eachBefore(function(S){S.x=(S.x+E)*y,S.y=S.depth*x})}return f}function a(f){var d=f.children,p=f.parent.children,h=f.i?p[f.i-1]:null;if(d){che(f);var g=(d[0].z+d[d.length-1].z)/2;h?(f.z=h.z+e(f._,h._),f.m=f.z-g):f.z=g}else h&&(f.z=h.z+e(f._,h._));f.parent.A=s(f,h,f.parent.A||p[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function s(f,d,p){if(d){for(var h=f,g=f,w=d,E=h.parent.children[0],y=h.m,x=g.m,S=w.m,A=E.m,C;w=BS(w),h=LS(h),w&&h;)E=LS(E),g=BS(g),g.a=f,C=w.z+S-h.z-y+e(w._,h._),C>0&&(fhe(dhe(w,f,p),f,C),y+=C,x+=C),S+=w.m,y+=h.m,A+=E.m,x+=g.m;w&&!BS(g)&&(g.t=w,g.m+=S-x),h&&!LS(E)&&(E.t=h,E.m+=y-A,p=f)}return p}function u(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function Bb(e,t,r,n,i){for(var a=e.children,o,s=-1,u=a.length,f=e.value&&(i-r)/e.value;++s<u;)o=a[s],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var V$=(1+Math.sqrt(5))/2;function Y$(e,t,r,n,i,a){for(var o=[],s=t.children,u,f,d=0,p=0,h=s.length,g,w,E=t.value,y,x,S,A,C,k,D;d<h;){g=i-r,w=a-n;do y=s[p++].value;while(!y&&p<h);for(x=S=y,k=Math.max(w/g,g/w)/(E*e),D=y*y*k,C=Math.max(S/D,D/x);p<h;++p){if(y+=f=s[p].value,f<x&&(x=f),f>S&&(S=f),D=y*y*k,A=Math.max(S/D,D/x),A>C){y-=f;break}C=A}o.push(u={value:y,dice:g<w,children:s.slice(d,p)}),u.dice?sg(u,r,n,i,E?n+=w*y/E:a):Bb(u,r,n,E?r+=g*y/E:i,a),E-=y,d=p}return o}const X$=function e(t){function r(n,i,a,o,s){Y$(t,n,i,a,o,s)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(V$);function vhe(){var e=X$,t=!1,r=1,n=1,i=[0],a=ru,o=ru,s=ru,u=ru,f=ru;function d(h){return h.x0=h.y0=0,h.x1=r,h.y1=n,h.eachBefore(p),i=[0],t&&h.eachBefore(H$),h}function p(h){var g=i[h.depth],w=h.x0+g,E=h.y0+g,y=h.x1-g,x=h.y1-g;y<w&&(w=y=(w+y)/2),x<E&&(E=x=(E+x)/2),h.x0=w,h.y0=E,h.x1=y,h.y1=x,h.children&&(g=i[h.depth+1]=a(h)/2,w+=f(h)-g,E+=o(h)-g,y-=s(h)-g,x-=u(h)-g,y<w&&(w=y=(w+y)/2),x<E&&(E=x=(E+x)/2),e(h,w,E,y,x))}return d.round=function(h){return arguments.length?(t=!!h,d):t},d.size=function(h){return arguments.length?(r=+h[0],n=+h[1],d):[r,n]},d.tile=function(h){return arguments.length?(e=v1(h),d):e},d.padding=function(h){return arguments.length?d.paddingInner(h).paddingOuter(h):d.paddingInner()},d.paddingInner=function(h){return arguments.length?(a=typeof h=="function"?h:Hf(+h),d):a},d.paddingOuter=function(h){return arguments.length?d.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):d.paddingTop()},d.paddingTop=function(h){return arguments.length?(o=typeof h=="function"?h:Hf(+h),d):o},d.paddingRight=function(h){return arguments.length?(s=typeof h=="function"?h:Hf(+h),d):s},d.paddingBottom=function(h){return arguments.length?(u=typeof h=="function"?h:Hf(+h),d):u},d.paddingLeft=function(h){return arguments.length?(f=typeof h=="function"?h:Hf(+h),d):f},d}function ghe(e,t,r,n,i){var a=e.children,o,s=a.length,u,f=new Array(s+1);for(f[0]=u=o=0;o<s;++o)f[o+1]=u+=a[o].value;d(0,s,e.value,t,r,n,i);function d(p,h,g,w,E,y,x){if(p>=h-1){var S=a[p];S.x0=w,S.y0=E,S.x1=y,S.y1=x;return}for(var A=f[p],C=g/2+A,k=p+1,D=h-1;k<D;){var z=k+D>>>1;f[z]<C?k=z+1:D=z}C-f[k-1]<f[k]-C&&p+1<k&&--k;var M=f[k]-A,L=g-M;if(y-w>x-E){var X=(w*L+y*M)/g;d(p,k,M,w,E,X,x),d(k,h,L,X,E,y,x)}else{var re=(E*L+x*M)/g;d(p,k,M,w,E,y,re),d(k,h,L,w,re,y,x)}}}function mhe(e,t,r,n,i){(e.depth&1?Bb:sg)(e,t,r,n,i)}const yhe=function e(t){function r(n,i,a,o,s){if((u=n._squarify)&&u.ratio===t)for(var u,f,d,p,h=-1,g,w=u.length,E=n.value;++h<w;){for(f=u[h],d=f.children,p=f.value=0,g=d.length;p<g;++p)f.value+=d[p].value;f.dice?sg(f,i,a,o,a+=(s-a)*f.value/E):Bb(f,i,a,i+=(o-i)*f.value/E,s),E-=f.value}else n._squarify=u=Y$(t,n,i,a,o,s),u.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(V$),bhe=Object.freeze(Object.defineProperty({__proto__:null,cluster:kpe,hierarchy:rR,pack:nhe,packSiblings:ehe,packEnclose:j$,partition:ihe,stratify:lhe,tree:hhe,treemap:vhe,treemapBinary:ghe,treemapDice:sg,treemapSlice:Bb,treemapSliceDice:mhe,treemapSquarify:X$,treemapResquarify:yhe},Symbol.toStringTag,{value:"Module"})),qge=Pu(bhe);function sd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function lg(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xl(){}var Ou=.7,jc=1/Ou,xc="\\s*([+-]?\\d+)\\s*",xv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ro="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xhe=/^#([0-9a-f]{3,8})$/,whe=new RegExp("^rgb\\("+[xc,xc,xc]+"\\)$"),_he=new RegExp("^rgb\\("+[ro,ro,ro]+"\\)$"),She=new RegExp("^rgba\\("+[xc,xc,xc,xv]+"\\)$"),Ehe=new RegExp("^rgba\\("+[ro,ro,ro,xv]+"\\)$"),Ahe=new RegExp("^hsl\\("+[xv,ro,ro]+"\\)$"),Che=new RegExp("^hsla\\("+[xv,ro,ro,xv]+"\\)$"),jD={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};sd(xl,wv,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:WD,formatHex:WD,formatHsl:The,formatRgb:GD,toString:GD});function WD(){return this.rgb().formatHex()}function The(){return K$(this).formatHsl()}function GD(){return this.rgb().formatRgb()}function wv(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=xhe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?qD(t):r===3?new Zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?w0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?w0(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=whe.exec(e))?new Zn(t[1],t[2],t[3],1):(t=_he.exec(e))?new Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=She.exec(e))?w0(t[1],t[2],t[3],t[4]):(t=Ehe.exec(e))?w0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ahe.exec(e))?YD(t[1],t[2]/100,t[3]/100,1):(t=Che.exec(e))?YD(t[1],t[2]/100,t[3]/100,t[4]):jD.hasOwnProperty(e)?qD(jD[e]):e==="transparent"?new Zn(NaN,NaN,NaN,0):null}function qD(e){return new Zn(e>>16&255,e>>8&255,e&255,1)}function w0(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zn(e,t,r,n)}function nR(e){return e instanceof xl||(e=wv(e)),e?(e=e.rgb(),new Zn(e.r,e.g,e.b,e.opacity)):new Zn}function g1(e,t,r,n){return arguments.length===1?nR(e):new Zn(e,t,r,n==null?1:n)}function Zn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sd(Zn,g1,lg(xl,{brighter:function(e){return e=e==null?jc:Math.pow(jc,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Ou:Math.pow(Ou,e),new Zn(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:HD,formatHex:HD,formatRgb:VD,toString:VD}));function HD(){return"#"+$S(this.r)+$S(this.g)+$S(this.b)}function VD(){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 $S(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function YD(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ya(e,t,r,n)}function K$(e){if(e instanceof Ya)return new Ya(e.h,e.s,e.l,e.opacity);if(e instanceof xl||(e=wv(e)),!e)return new Ya;if(e instanceof Ya)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,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Ya(o,s,u,e.opacity)}function qE(e,t,r,n){return arguments.length===1?K$(e):new Ya(e,t,r,n==null?1:n)}function Ya(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sd(Ya,qE,lg(xl,{brighter:function(e){return e=e==null?jc:Math.pow(jc,e),new Ya(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ou:Math.pow(Ou,e),new Ya(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 Zn(zS(e>=240?e-240:e+120,i,n),zS(e,i,n),zS(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 zS(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 Q$=Math.PI/180,Z$=180/Math.PI,m1=18,J$=.96422,ez=1,tz=.82521,rz=4/29,wc=6/29,nz=3*wc*wc,Rhe=wc*wc*wc;function iz(e){if(e instanceof no)return new no(e.l,e.a,e.b,e.opacity);if(e instanceof Bo)return az(e);e instanceof Zn||(e=nR(e));var t=GS(e.r),r=GS(e.g),n=GS(e.b),i=US((.2225045*t+.7168786*r+.0606169*n)/ez),a,o;return t===r&&r===n?a=o=i:(a=US((.4360747*t+.3850649*r+.1430804*n)/J$),o=US((.0139322*t+.0971045*r+.7141733*n)/tz)),new no(116*i-16,500*(a-i),200*(i-o),e.opacity)}function HE(e,t,r,n){return arguments.length===1?iz(e):new no(e,t,r,n==null?1:n)}function no(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}sd(no,HE,lg(xl,{brighter:function(e){return new no(this.l+m1*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new no(this.l-m1*(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=J$*jS(t),e=ez*jS(e),r=tz*jS(r),new Zn(WS(3.1338561*t-1.6168667*e-.4906146*r),WS(-.9787684*t+1.9161415*e+.033454*r),WS(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function US(e){return e>Rhe?Math.pow(e,1/3):e/nz+rz}function jS(e){return e>wc?e*e*e:nz*(e-rz)}function WS(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function GS(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ohe(e){if(e instanceof Bo)return new Bo(e.h,e.c,e.l,e.opacity);if(e instanceof no||(e=iz(e)),e.a===0&&e.b===0)return new Bo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Z$;return new Bo(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function VE(e,t,r,n){return arguments.length===1?Ohe(e):new Bo(e,t,r,n==null?1:n)}function Bo(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function az(e){if(isNaN(e.h))return new no(e.l,0,0,e.opacity);var t=e.h*Q$;return new no(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}sd(Bo,VE,lg(xl,{brighter:function(e){return new Bo(this.h,this.c,this.l+m1*(e==null?1:e),this.opacity)},darker:function(e){return new Bo(this.h,this.c,this.l-m1*(e==null?1:e),this.opacity)},rgb:function(){return az(this).rgb()}}));var oz=-.14861,iR=1.78277,aR=-.29227,$b=-.90649,_v=1.97294,XD=_v*$b,KD=_v*iR,QD=iR*aR-$b*oz;function Ihe(e){if(e instanceof yu)return new yu(e.h,e.s,e.l,e.opacity);e instanceof Zn||(e=nR(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(QD*n+XD*t-KD*r)/(QD+XD-KD),a=n-i,o=(_v*(r-i)-aR*a)/$b,s=Math.sqrt(o*o+a*a)/(_v*i*(1-i)),u=s?Math.atan2(o,a)*Z$-120:NaN;return new yu(u<0?u+360:u,s,i,e.opacity)}function YE(e,t,r,n){return arguments.length===1?Ihe(e):new yu(e,t,r,n==null?1:n)}function yu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sd(yu,YE,lg(xl,{brighter:function(e){return e=e==null?jc:Math.pow(jc,e),new yu(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ou:Math.pow(Ou,e),new yu(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Q$,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new Zn(255*(t+r*(oz*n+iR*i)),255*(t+r*(aR*n+$b*i)),255*(t+r*(_v*n)),this.opacity)}}));function sz(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 lz(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,s=n<t-1?e[n+2]:2*a-i;return sz((r-n/t)*t,o,i,a,s)}}function uz(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],s=e[(n+2)%t];return sz((r-n/t)*t,i,a,o,s)}}function zb(e){return function(){return e}}function fz(e,t){return function(r){return e+r*t}}function Phe(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 Ub(e,t){var r=t-e;return r?fz(e,r>180||r<-180?r-360*Math.round(r/360):r):zb(isNaN(e)?t:e)}function khe(e){return(e=+e)==1?Bn:function(t,r){return r-t?Phe(t,r,e):zb(isNaN(t)?r:t)}}function Bn(e,t){var r=t-e;return r?fz(e,r):zb(isNaN(e)?t:e)}const XE=function e(t){var r=khe(t);function n(i,a){var o=r((i=g1(i)).r,(a=g1(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),f=Bn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=s(d),i.b=u(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function cz(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o<r;++o)s=g1(t[o]),n[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return n=e(n),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=n(u),s.g=i(u),s.b=a(u),s+""}}}var Dhe=cz(lz),Mhe=cz(uz);function oR(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 dz(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Nhe(e,t){return(dz(t)?oR:pz)(e,t)}function pz(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]=sR(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function hz(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ha(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vz(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]=sR(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var KE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qS=new RegExp(KE.source,"g");function Fhe(e){return function(){return e}}function Lhe(e){return function(t){return e(t)+""}}function gz(e,t){var r=KE.lastIndex=qS.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=KE.exec(e))&&(i=qS.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ha(n,i)})),r=qS.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Lhe(u[0].x):Fhe(t):(t=u.length,function(f){for(var d=0,p;d<t;++d)s[(p=u[d]).i]=p.x(f);return s.join("")})}function sR(e,t){var r=typeof t,n;return t==null||r==="boolean"?zb(t):(r==="number"?Ha:r==="string"?(n=wv(t))?(t=n,XE):gz:t instanceof wv?XE:t instanceof Date?hz:dz(t)?oR:Array.isArray(t)?pz:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vz:Ha)(e,t)}function Bhe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function $he(e,t){var r=Ub(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function zhe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var ZD=180/Math.PI,QE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mz(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n<t*r&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*ZD,skewX:Math.atan(u)*ZD,scaleX:o,scaleY:s}}var Kp,HS,JD,_0;function Uhe(e){return e==="none"?QE:(Kp||(Kp=document.createElement("DIV"),HS=document.documentElement,JD=document.defaultView),Kp.style.transform=e,e=JD.getComputedStyle(HS.appendChild(Kp),null).getPropertyValue("transform"),HS.removeChild(Kp),e=e.slice(7,-1).split(","),mz(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function jhe(e){return e==null||(_0||(_0=document.createElementNS("http://www.w3.org/2000/svg","g")),_0.setAttribute("transform",e),!(e=_0.transform.baseVal.consolidate()))?QE:(e=e.matrix,mz(e.a,e.b,e.c,e.d,e.e,e.f))}function yz(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,p,h,g,w){if(f!==p||d!==h){var E=g.push("translate(",null,t,null,r);w.push({i:E-4,x:Ha(f,p)},{i:E-2,x:Ha(d,h)})}else(p||h)&&g.push("translate("+p+t+h+r)}function o(f,d,p,h){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),h.push({i:p.push(i(p)+"rotate(",null,n)-2,x:Ha(f,d)})):d&&p.push(i(p)+"rotate("+d+n)}function s(f,d,p,h){f!==d?h.push({i:p.push(i(p)+"skewX(",null,n)-2,x:Ha(f,d)}):d&&p.push(i(p)+"skewX("+d+n)}function u(f,d,p,h,g,w){if(f!==p||d!==h){var E=g.push(i(g)+"scale(",null,",",null,")");w.push({i:E-4,x:Ha(f,p)},{i:E-2,x:Ha(d,h)})}else(p!==1||h!==1)&&g.push(i(g)+"scale("+p+","+h+")")}return function(f,d){var p=[],h=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,p,h),o(f.rotate,d.rotate,p,h),s(f.skewX,d.skewX,p,h),u(f.scaleX,f.scaleY,d.scaleX,d.scaleY,p,h),f=d=null,function(g){for(var w=-1,E=h.length,y;++w<E;)p[(y=h[w]).i]=y.x(g);return p.join("")}}}var Whe=yz(Uhe,"px, ","px)","deg)"),Ghe=yz(jhe,", ",")",")"),Qp=Math.SQRT2,VS=2,eM=4,qhe=1e-12;function tM(e){return((e=Math.exp(e))+1/e)/2}function Hhe(e){return((e=Math.exp(e))-1/e)/2}function Vhe(e){return((e=Math.exp(2*e))-1)/(e+1)}function Yhe(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],s=t[2],u=a-r,f=o-n,d=u*u+f*f,p,h;if(d<qhe)h=Math.log(s/i)/Qp,p=function(S){return[r+S*u,n+S*f,i*Math.exp(Qp*S*h)]};else{var g=Math.sqrt(d),w=(s*s-i*i+eM*d)/(2*i*VS*g),E=(s*s-i*i-eM*d)/(2*s*VS*g),y=Math.log(Math.sqrt(w*w+1)-w),x=Math.log(Math.sqrt(E*E+1)-E);h=(x-y)/Qp,p=function(S){var A=S*h,C=tM(y),k=i/(VS*g)*(C*Vhe(Qp*A+y)-Hhe(y));return[r+k*u,n+k*f,i*C/tM(Qp*A+y)]}}return p.duration=h*1e3,p}function bz(e){return function(t,r){var n=e((t=qE(t)).h,(r=qE(r)).h),i=Bn(t.s,r.s),a=Bn(t.l,r.l),o=Bn(t.opacity,r.opacity);return function(s){return t.h=n(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Xhe=bz(Ub);var Khe=bz(Bn);function Qhe(e,t){var r=Bn((e=HE(e)).l,(t=HE(t)).l),n=Bn(e.a,t.a),i=Bn(e.b,t.b),a=Bn(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 xz(e){return function(t,r){var n=e((t=VE(t)).h,(r=VE(r)).h),i=Bn(t.c,r.c),a=Bn(t.l,r.l),o=Bn(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Zhe=xz(Ub);var Jhe=xz(Bn);function wz(e){return function t(r){r=+r;function n(i,a){var o=e((i=YE(i)).h,(a=YE(a)).h),s=Bn(i.s,a.s),u=Bn(i.l,a.l),f=Bn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=s(d),i.l=u(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const eve=wz(Ub);var tve=wz(Bn);function rve(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 s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function nve(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const ive=Object.freeze(Object.defineProperty({__proto__:null,interpolate:sR,interpolateArray:Nhe,interpolateBasis:lz,interpolateBasisClosed:uz,interpolateDate:hz,interpolateDiscrete:Bhe,interpolateHue:$he,interpolateNumber:Ha,interpolateNumberArray:oR,interpolateObject:vz,interpolateRound:zhe,interpolateString:gz,interpolateTransformCss:Whe,interpolateTransformSvg:Ghe,interpolateZoom:Yhe,interpolateRgb:XE,interpolateRgbBasis:Dhe,interpolateRgbBasisClosed:Mhe,interpolateHsl:Xhe,interpolateHslLong:Khe,interpolateLab:Qhe,interpolateHcl:Zhe,interpolateHclLong:Jhe,interpolateCubehelix:eve,interpolateCubehelixLong:tve,piecewise:rve,quantize:nve},Symbol.toStringTag,{value:"Module"})),Hge=Pu(ive);var ave="Expected a function",_z="__lodash_hash_undefined__",Sz=1/0,ove=9007199254740991,sve="[object Function]",lve="[object GeneratorFunction]",uve="[object Symbol]",fve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cve=/^\w*$/,dve=/^\./,pve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hve=/[\\^$.*+?()[\]{}|]/g,vve=/\\(\\)?/g,gve=/^\[object .+?Constructor\]$/,mve=/^(?:0|[1-9]\d*)$/,yve=typeof Cr=="object"&&Cr&&Cr.Object===Object&&Cr,bve=typeof self=="object"&&self&&self.Object===Object&&self,lR=yve||bve||Function("return this")();function xve(e,t){return e==null?void 0:e[t]}function wve(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var _ve=Array.prototype,Sve=Function.prototype,Ez=Object.prototype,YS=lR["__core-js_shared__"],rM=function(){var e=/[^.]+$/.exec(YS&&YS.keys&&YS.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Az=Sve.toString,jb=Ez.hasOwnProperty,Cz=Ez.toString,Eve=RegExp("^"+Az.call(jb).replace(hve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nM=lR.Symbol,Ave=_ve.splice,Cve=Tz(lR,"Map"),Sv=Tz(Object,"create"),iM=nM?nM.prototype:void 0,aM=iM?iM.toString:void 0;function Iu(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 Tve(){this.__data__=Sv?Sv(null):{}}function Rve(e){return this.has(e)&&delete this.__data__[e]}function Ove(e){var t=this.__data__;if(Sv){var r=t[e];return r===_z?void 0:r}return jb.call(t,e)?t[e]:void 0}function Ive(e){var t=this.__data__;return Sv?t[e]!==void 0:jb.call(t,e)}function Pve(e,t){var r=this.__data__;return r[e]=Sv&&t===void 0?_z:t,this}Iu.prototype.clear=Tve;Iu.prototype.delete=Rve;Iu.prototype.get=Ove;Iu.prototype.has=Ive;Iu.prototype.set=Pve;function ld(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 kve(){this.__data__=[]}function Dve(e){var t=this.__data__,r=Wb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ave.call(t,r,1),!0}function Mve(e){var t=this.__data__,r=Wb(t,e);return r<0?void 0:t[r][1]}function Nve(e){return Wb(this.__data__,e)>-1}function Fve(e,t){var r=this.__data__,n=Wb(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ld.prototype.clear=kve;ld.prototype.delete=Dve;ld.prototype.get=Mve;ld.prototype.has=Nve;ld.prototype.set=Fve;function qu(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 Lve(){this.__data__={hash:new Iu,map:new(Cve||ld),string:new Iu}}function Bve(e){return Gb(this,e).delete(e)}function $ve(e){return Gb(this,e).get(e)}function zve(e){return Gb(this,e).has(e)}function Uve(e,t){return Gb(this,e).set(e,t),this}qu.prototype.clear=Lve;qu.prototype.delete=Bve;qu.prototype.get=$ve;qu.prototype.has=zve;qu.prototype.set=Uve;function jve(e,t,r){var n=e[t];(!(jb.call(e,t)&&Rz(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Wb(e,t){for(var r=e.length;r--;)if(Rz(e[r][0],t))return r;return-1}function Wve(e){if(!y1(e)||Kve(e))return!1;var t=ege(e)||wve(e)?Eve:gve;return t.test(Jve(e))}function Gve(e,t,r,n){if(!y1(e))return e;t=Yve(t,e)?[t]:Hve(t);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=Zve(t[i]),f=r;if(i!=o){var d=s[u];f=n?n(d,u,s):void 0,f===void 0&&(f=y1(d)?d:Vve(t[i+1])?[]:{})}jve(s,u,f),s=s[u]}return e}function qve(e){if(typeof e=="string")return e;if(fR(e))return aM?aM.call(e):"";var t=e+"";return t=="0"&&1/e==-Sz?"-0":t}function Hve(e){return Oz(e)?e:Qve(e)}function Gb(e,t){var r=e.__data__;return Xve(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Tz(e,t){var r=xve(e,t);return Wve(r)?r:void 0}function Vve(e,t){return t=t==null?ove:t,!!t&&(typeof e=="number"||mve.test(e))&&e>-1&&e%1==0&&e<t}function Yve(e,t){if(Oz(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fR(e)?!0:cve.test(e)||!fve.test(e)||t!=null&&e in Object(t)}function Xve(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kve(e){return!!rM&&rM in e}var Qve=uR(function(e){e=rge(e);var t=[];return dve.test(e)&&t.push(""),e.replace(pve,function(r,n,i,a){t.push(i?a.replace(vve,"$1"):n||r)}),t});function Zve(e){if(typeof e=="string"||fR(e))return e;var t=e+"";return t=="0"&&1/e==-Sz?"-0":t}function Jve(e){if(e!=null){try{return Az.call(e)}catch{}try{return e+""}catch{}}return""}function uR(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(ave);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(uR.Cache||qu),r}uR.Cache=qu;function Rz(e,t){return e===t||e!==e&&t!==t}var Oz=Array.isArray;function ege(e){var t=y1(e)?Cz.call(e):"";return t==sve||t==lve}function y1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function tge(e){return!!e&&typeof e=="object"}function fR(e){return typeof e=="symbol"||tge(e)&&Cz.call(e)==uve}function rge(e){return e==null?"":qve(e)}function nge(e,t,r){return e==null?e:Gve(e,t,r)}var Vge=nge;export{Ir as $,ve as A,mr as B,Mr as C,lge as D,oge as E,Qh as F,nh as G,age as H,sge as I,H1 as J,hF as K,fge as L,oZ as M,pge as N,dge as O,uge as P,VQ as Q,dn as R,hge as S,lC as T,vge as U,mge as V,hn as W,gge as X,cge as Y,bge as Z,H6 as _,Pge as a,Sge as a0,Oie as a1,$6 as a2,Rge as a3,Au as a4,q6 as a5,Do as a6,Age as a7,Lae as a8,hv as a9,wge as aa,xge as ab,Ege as ac,_ge as ad,Tge as ae,Cge as af,B6 as ag,yge as ah,Q6 as ai,Oge as aj,Vge as ak,Fge as b,Lge as c,noe as d,D8 as e,kge as f,Dge as g,Mge as h,VT as i,Ule as j,$ge as k,Ib as l,Nge as m,Bge as n,W8 as o,j8 as p,b$ as q,Ige as r,zge as s,Qse as t,Uge as u,jge as v,Wge as w,Gge as x,qge as y,Hge as z};
1242
+ //# sourceMappingURL=vendor.a5d0aea5.js.map