@deephaven/embed-grid 0.17.1-beta.2 → 0.18.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.
- package/build/assets/{index.0de724ff.js → index.7db3b411.js} +16 -16
- package/build/assets/index.7db3b411.js.map +1 -0
- package/build/assets/{plotly.7ac8f807.js → plotly.b0044521.js} +2 -2
- package/build/assets/{plotly.7ac8f807.js.map → plotly.b0044521.js.map} +1 -1
- package/build/assets/vendor.f4457b06.js +1241 -0
- package/build/assets/vendor.f4457b06.js.map +1 -0
- package/build/index.html +4 -4
- package/package.json +12 -12
- package/build/assets/index.0de724ff.js.map +0 -1
- package/build/assets/vendor.5ad3dc6e.js +0 -1251
- package/build/assets/vendor.5ad3dc6e.js.map +0 -1
|
@@ -0,0 +1,1241 @@
|
|
|
1
|
+
import{g as BS,c as _r,a as is}from"./helpers.162e09a8.js";var $S={exports:{}},Hi={},Ut={exports:{}},Cr={};/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/var HC=Object.getOwnPropertySymbols,x8=Object.prototype.hasOwnProperty,_8=Object.prototype.propertyIsEnumerable;function S8(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function E8(){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 as=E8()?Object.assign:function(e,t){for(var r,n=S8(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)x8.call(r,o)&&(n[o]=r[o]);if(HC){i=HC(r);for(var u=0;u<i.length;u++)_8.call(r,i[u])&&(n[i[u]]=r[i[u]])}}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 zS=as,gc=60103,Sk=60106;Cr.Fragment=60107;Cr.StrictMode=60108;Cr.Profiler=60114;var Ek=60109,Ak=60110,Ck=60112;Cr.Suspense=60113;var Tk=60115,Rk=60116;if(typeof Symbol=="function"&&Symbol.for){var ia=Symbol.for;gc=ia("react.element"),Sk=ia("react.portal"),Cr.Fragment=ia("react.fragment"),Cr.StrictMode=ia("react.strict_mode"),Cr.Profiler=ia("react.profiler"),Ek=ia("react.provider"),Ak=ia("react.context"),Ck=ia("react.forward_ref"),Cr.Suspense=ia("react.suspense"),Tk=ia("react.memo"),Rk=ia("react.lazy")}var VC=typeof Symbol=="function"&&Symbol.iterator;function A8(e){return e===null||typeof e!="object"?null:(e=VC&&e[VC]||e["@@iterator"],typeof e=="function"?e:null)}function Fh(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 Ok={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ik={};function mc(e,t,r){this.props=e,this.context=t,this.refs=Ik,this.updater=r||Ok}mc.prototype.isReactComponent={};mc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Fh(85));this.updater.enqueueSetState(this,e,t,"setState")};mc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pk(){}Pk.prototype=mc.prototype;function US(e,t,r){this.props=e,this.context=t,this.refs=Ik,this.updater=r||Ok}var jS=US.prototype=new Pk;jS.constructor=US;zS(jS,mc.prototype);jS.isPureReactComponent=!0;var WS={current:null},kk=Object.prototype.hasOwnProperty,Mk={key:!0,ref:!0,__self:!0,__source:!0};function Dk(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)kk.call(t,n)&&!Mk.hasOwnProperty(n)&&(i[n]=t[n]);var u=arguments.length-2;if(u===1)i.children=r;else if(1<u){for(var s=Array(u),f=0;f<u;f++)s[f]=arguments[f+2];i.children=s}if(e&&e.defaultProps)for(n in u=e.defaultProps,u)i[n]===void 0&&(i[n]=u[n]);return{$$typeof:gc,type:e,key:a,ref:o,props:i,_owner:WS.current}}function C8(e,t){return{$$typeof:gc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function GS(e){return typeof e=="object"&&e!==null&&e.$$typeof===gc}function T8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var YC=/\/+/g;function yb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?T8(""+e.key):t.toString(36)}function _m(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 gc:case Sk:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+yb(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(YC,"$&/")+"/"),_m(i,t,r,"",function(f){return f})):i!=null&&(GS(i)&&(i=C8(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(YC,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){a=e[u];var s=n+yb(a,u);o+=_m(a,t,r,s,i)}else if(s=A8(e),typeof s=="function")for(e=s.call(e),u=0;!(a=e.next()).done;)a=a.value,s=n+yb(a,u++),o+=_m(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(Fh(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function Eg(e,t,r){if(e==null)return e;var n=[],i=0;return _m(e,n,"","",function(a){return t.call(r,a,i++)}),n}function R8(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 Fk={current:null};function Eo(){var e=Fk.current;if(e===null)throw Error(Fh(321));return e}var O8={ReactCurrentDispatcher:Fk,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:WS,IsSomeRendererActing:{current:!1},assign:zS};Cr.Children={map:Eg,forEach:function(e,t,r){Eg(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Eg(e,function(){t++}),t},toArray:function(e){return Eg(e,function(t){return t})||[]},only:function(e){if(!GS(e))throw Error(Fh(143));return e}};Cr.Component=mc;Cr.PureComponent=US;Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O8;Cr.cloneElement=function(e,t,r){if(e==null)throw Error(Fh(267,e));var n=zS({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=WS.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)kk.call(t,s)&&!Mk.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){u=Array(s);for(var f=0;f<s;f++)u[f]=arguments[f+2];n.children=u}return{$$typeof:gc,type:e.type,key:i,ref:a,props:n,_owner:o}};Cr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Ak,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Ek,_context:e},e.Consumer=e};Cr.createElement=Dk;Cr.createFactory=function(e){var t=Dk.bind(null,e);return t.type=e,t};Cr.createRef=function(){return{current:null}};Cr.forwardRef=function(e){return{$$typeof:Ck,render:e}};Cr.isValidElement=GS;Cr.lazy=function(e){return{$$typeof:Rk,_payload:{_status:-1,_result:e},_init:R8}};Cr.memo=function(e,t){return{$$typeof:Tk,type:e,compare:t===void 0?null:t}};Cr.useCallback=function(e,t){return Eo().useCallback(e,t)};Cr.useContext=function(e,t){return Eo().useContext(e,t)};Cr.useDebugValue=function(){};Cr.useEffect=function(e,t){return Eo().useEffect(e,t)};Cr.useImperativeHandle=function(e,t,r){return Eo().useImperativeHandle(e,t,r)};Cr.useLayoutEffect=function(e,t){return Eo().useLayoutEffect(e,t)};Cr.useMemo=function(e,t){return Eo().useMemo(e,t)};Cr.useReducer=function(e,t,r){return Eo().useReducer(e,t,r)};Cr.useRef=function(e){return Eo().useRef(e)};Cr.useState=function(e){return Eo().useState(e)};Cr.version="17.0.2";(function(e){e.exports=Cr})(Ut);const Nn=BS(Ut.exports);var Nk={exports:{}},Lk={};/** @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,u=o.now();e.unstable_now=function(){return o.now()-u}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,f=null,d=function(){if(s!==null)try{var be=e.unstable_now();s(!0,be),s=null}catch(ye){throw setTimeout(d,0),ye}};t=function(be){s!==null?setTimeout(t,0,be):(s=be,setTimeout(d,0))},r=function(be,ye){f=setTimeout(be,ye)},n=function(){clearTimeout(f)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var v=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 _=!1,A=null,b=-1,w=5,S=0;e.unstable_shouldYield=function(){return e.unstable_now()>=S},i=function(){},e.unstable_forceFrameRate=function(be){0>be||125<be?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<be?Math.floor(1e3/be):5};var E=new MessageChannel,R=E.port2;E.port1.onmessage=function(){if(A!==null){var be=e.unstable_now();S=be+w;try{A(!0,be)?R.postMessage(null):(_=!1,A=null)}catch(ye){throw R.postMessage(null),ye}}else _=!1},t=function(be){A=be,_||(_=!0,R.postMessage(null))},r=function(be,ye){b=v(function(){be(e.unstable_now())},ye)},n=function(){h(b),b=-1}}function M(be,ye){var Ke=be.length;be.push(ye);e:for(;;){var We=Ke-1>>>1,Ze=be[We];if(Ze!==void 0&&0<N(Ze,ye))be[We]=ye,be[Ke]=Ze,Ke=We;else break e}}function D(be){return be=be[0],be===void 0?null:be}function z(be){var ye=be[0];if(ye!==void 0){var Ke=be.pop();if(Ke!==ye){be[0]=Ke;e:for(var We=0,Ze=be.length;We<Ze;){var st=2*(We+1)-1,Rt=be[st],kt=st+1,Ae=be[kt];if(Rt!==void 0&&0>N(Rt,Ke))Ae!==void 0&&0>N(Ae,Rt)?(be[We]=Ae,be[kt]=Ke,We=kt):(be[We]=Rt,be[st]=Ke,We=st);else if(Ae!==void 0&&0>N(Ae,Ke))be[We]=Ae,be[kt]=Ke,We=kt;else break e}}return ye}return null}function N(be,ye){var Ke=be.sortIndex-ye.sortIndex;return Ke!==0?Ke:be.id-ye.id}var L=[],ee=[],ue=1,pe=null,we=3,Ee=!1,Je=!1,je=!1;function me(be){for(var ye=D(ee);ye!==null;){if(ye.callback===null)z(ee);else if(ye.startTime<=be)z(ee),ye.sortIndex=ye.expirationTime,M(L,ye);else break;ye=D(ee)}}function Fe(be){if(je=!1,me(be),!Je)if(D(L)!==null)Je=!0,t(qe);else{var ye=D(ee);ye!==null&&r(Fe,ye.startTime-be)}}function qe(be,ye){Je=!1,je&&(je=!1,n()),Ee=!0;var Ke=we;try{for(me(ye),pe=D(L);pe!==null&&(!(pe.expirationTime>ye)||be&&!e.unstable_shouldYield());){var We=pe.callback;if(typeof We=="function"){pe.callback=null,we=pe.priorityLevel;var Ze=We(pe.expirationTime<=ye);ye=e.unstable_now(),typeof Ze=="function"?pe.callback=Ze:pe===D(L)&&z(L),me(ye)}else z(L);pe=D(L)}if(pe!==null)var st=!0;else{var Rt=D(ee);Rt!==null&&r(Fe,Rt.startTime-ye),st=!1}return st}finally{pe=null,we=Ke,Ee=!1}}var Ue=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(be){be.callback=null},e.unstable_continueExecution=function(){Je||Ee||(Je=!0,t(qe))},e.unstable_getCurrentPriorityLevel=function(){return we},e.unstable_getFirstCallbackNode=function(){return D(L)},e.unstable_next=function(be){switch(we){case 1:case 2:case 3:var ye=3;break;default:ye=we}var Ke=we;we=ye;try{return be()}finally{we=Ke}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Ue,e.unstable_runWithPriority=function(be,ye){switch(be){case 1:case 2:case 3:case 4:case 5:break;default:be=3}var Ke=we;we=be;try{return ye()}finally{we=Ke}},e.unstable_scheduleCallback=function(be,ye,Ke){var We=e.unstable_now();switch(typeof Ke=="object"&&Ke!==null?(Ke=Ke.delay,Ke=typeof Ke=="number"&&0<Ke?We+Ke:We):Ke=We,be){case 1:var Ze=-1;break;case 2:Ze=250;break;case 5:Ze=1073741823;break;case 4:Ze=1e4;break;default:Ze=5e3}return Ze=Ke+Ze,be={id:ue++,callback:ye,priorityLevel:be,startTime:Ke,expirationTime:Ze,sortIndex:-1},Ke>We?(be.sortIndex=Ke,M(ee,be),D(L)===null&&be===D(ee)&&(je?n():je=!0,r(Fe,Ke-We))):(be.sortIndex=Ze,M(L,be),Je||Ee||(Je=!0,t(qe))),be},e.unstable_wrapCallback=function(be){var ye=we;return function(){var Ke=we;we=ye;try{return be.apply(this,arguments)}finally{we=Ke}}}})(Lk);(function(e){e.exports=Lk})(Nk);/** @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 py=Ut.exports,Hr=as,Sn=Nk.exports;function gt(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(!py)throw Error(gt(227));var Bk=new Set,rh={};function os(e,t){Qf(e,t),Qf(e+"Capture",t)}function Qf(e,t){for(rh[e]=t,e=0;e<t.length;e++)Bk.add(t[e])}var bo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),I8=/^[: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]*$/,XC=Object.prototype.hasOwnProperty,KC={},QC={};function P8(e){return XC.call(QC,e)?!0:XC.call(KC,e)?!1:I8.test(e)?QC[e]=!0:(KC[e]=!0,!1)}function k8(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 M8(e,t,r,n){if(t===null||typeof t>"u"||k8(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 ei(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 Ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ln[e]=new ei(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ln[t]=new ei(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ln[e]=new ei(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ln[e]=new ei(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){Ln[e]=new ei(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ln[e]=new ei(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ln[e]=new ei(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ln[e]=new ei(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ln[e]=new ei(e,5,!1,e.toLowerCase(),null,!1,!1)});var qS=/[\-:]([a-z])/g;function HS(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(qS,HS);Ln[t]=new ei(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(qS,HS);Ln[t]=new ei(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(qS,HS);Ln[t]=new ei(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ln[e]=new ei(e,1,!1,e.toLowerCase(),null,!1,!1)});Ln.xlinkHref=new ei("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ln[e]=new ei(e,1,!1,e.toLowerCase(),null,!0,!0)});function VS(e,t,r,n){var i=Ln.hasOwnProperty(t)?Ln[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||(M8(t,r,i,n)&&(r=null),n||i===null?P8(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 us=py.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xp=60103,kl=60106,ou=60107,YS=60108,Dp=60114,XS=60109,KS=60110,hy=60112,Fp=60113,Hm=60120,vy=60115,QS=60116,ZS=60121,JS=60128,$k=60129,eE=60130,U_=60131;if(typeof Symbol=="function"&&Symbol.for){var wn=Symbol.for;xp=wn("react.element"),kl=wn("react.portal"),ou=wn("react.fragment"),YS=wn("react.strict_mode"),Dp=wn("react.profiler"),XS=wn("react.provider"),KS=wn("react.context"),hy=wn("react.forward_ref"),Fp=wn("react.suspense"),Hm=wn("react.suspense_list"),vy=wn("react.memo"),QS=wn("react.lazy"),ZS=wn("react.block"),wn("react.scope"),JS=wn("react.opaque.id"),$k=wn("react.debug_trace_mode"),eE=wn("react.offscreen"),U_=wn("react.legacy_hidden")}var ZC=typeof Symbol=="function"&&Symbol.iterator;function Wd(e){return e===null||typeof e!="object"?null:(e=ZC&&e[ZC]||e["@@iterator"],typeof e=="function"?e:null)}var bb;function _p(e){if(bb===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);bb=t&&t[1]||""}return`
|
|
27
|
+
`+bb+e}var wb=!1;function Ag(e,t){if(!e||wb)return"";wb=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
|
|
28
|
+
`),a=n.stack.split(`
|
|
29
|
+
`),o=i.length-1,u=a.length-1;1<=o&&0<=u&&i[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(i[o]!==a[u]){if(o!==1||u!==1)do if(o--,u--,0>u||i[o]!==a[u])return`
|
|
30
|
+
`+i[o].replace(" at new "," at ");while(1<=o&&0<=u);break}}}finally{wb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_p(e):""}function D8(e){switch(e.tag){case 5:return _p(e.type);case 16:return _p("Lazy");case 13:return _p("Suspense");case 19:return _p("SuspenseList");case 0:case 2:case 15:return e=Ag(e.type,!1),e;case 11:return e=Ag(e.type.render,!1),e;case 22:return e=Ag(e.type._render,!1),e;case 1:return e=Ag(e.type,!0),e;default:return""}}function Mf(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 ou:return"Fragment";case kl:return"Portal";case Dp:return"Profiler";case YS:return"StrictMode";case Fp:return"Suspense";case Hm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case KS:return(e.displayName||"Context")+".Consumer";case XS:return(e._context.displayName||"Context")+".Provider";case hy:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case vy:return Mf(e.type);case ZS:return Mf(e._render);case QS:t=e._payload,e=e._init;try{return Mf(e(t))}catch{}}return null}function Cu(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function zk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F8(e){var t=zk(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 Cg(e){e._valueTracker||(e._valueTracker=F8(e))}function Uk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=zk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Vm(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 j_(e,t){var r=t.checked;return Hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function JC(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Cu(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 jk(e,t){t=t.checked,t!=null&&VS(e,"checked",t,!1)}function W_(e,t){jk(e,t);var r=Cu(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")?G_(e,t.type,r):t.hasOwnProperty("defaultValue")&&G_(e,t.type,Cu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eT(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 G_(e,t,r){(t!=="number"||Vm(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function N8(e){var t="";return py.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function q_(e,t){return e=Hr({children:void 0},t),(t=N8(t.children))&&(e.children=t),e}function Df(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=""+Cu(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 H_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(gt(91));return Hr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tT(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(gt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(gt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Cu(r)}}function Wk(e,t){var r=Cu(t.value),n=Cu(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 rT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var V_={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Gk(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 Y_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tg,qk=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!==V_.svg||"innerHTML"in e)e.innerHTML=t;else{for(Tg=Tg||document.createElement("div"),Tg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Np={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},L8=["Webkit","ms","Moz","O"];Object.keys(Np).forEach(function(e){L8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Np[t]=Np[e]})});function Hk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Np.hasOwnProperty(e)&&Np[e]?(""+t).trim():t+"px"}function Vk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Hk(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var B8=Hr({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 X_(e,t){if(t){if(B8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(gt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(gt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(gt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(gt(62))}}function K_(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 tE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Q_=null,Ff=null,Nf=null;function nT(e){if(e=Lh(e)){if(typeof Q_!="function")throw Error(gt(280));var t=e.stateNode;t&&(t=xy(t),Q_(e.stateNode,e.type,t))}}function Yk(e){Ff?Nf?Nf.push(e):Nf=[e]:Ff=e}function Xk(){if(Ff){var e=Ff,t=Nf;if(Nf=Ff=null,nT(e),t)for(e=0;e<t.length;e++)nT(t[e])}}function rE(e,t){return e(t)}function Kk(e,t,r,n,i){return e(t,r,n,i)}function nE(){}var Qk=rE,Ml=!1,xb=!1;function iE(){(Ff!==null||Nf!==null)&&(nE(),Xk())}function $8(e,t,r){if(xb)return e(t,r);xb=!0;try{return Qk(e,t,r)}finally{xb=!1,iE()}}function ih(e,t){var r=e.stateNode;if(r===null)return null;var n=xy(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(gt(231,t,typeof r));return r}var Z_=!1;if(bo)try{var Gd={};Object.defineProperty(Gd,"passive",{get:function(){Z_=!0}}),window.addEventListener("test",Gd,Gd),window.removeEventListener("test",Gd,Gd)}catch{Z_=!1}function z8(e,t,r,n,i,a,o,u,s){var f=Array.prototype.slice.call(arguments,3);try{t.apply(r,f)}catch(d){this.onError(d)}}var Lp=!1,Ym=null,Xm=!1,J_=null,U8={onError:function(e){Lp=!0,Ym=e}};function j8(e,t,r,n,i,a,o,u,s){Lp=!1,Ym=null,z8.apply(U8,arguments)}function W8(e,t,r,n,i,a,o,u,s){if(j8.apply(this,arguments),Lp){if(Lp){var f=Ym;Lp=!1,Ym=null}else throw Error(gt(198));Xm||(Xm=!0,J_=f)}}function ls(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 Zk(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 iT(e){if(ls(e)!==e)throw Error(gt(188))}function G8(e){var t=e.alternate;if(!t){if(t=ls(e),t===null)throw Error(gt(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 iT(i),e;if(a===n)return iT(i),t;a=a.sibling}throw Error(gt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,u=i.child;u;){if(u===r){o=!0,r=i,n=a;break}if(u===n){o=!0,n=i,r=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===r){o=!0,r=a,n=i;break}if(u===n){o=!0,n=a,r=i;break}u=u.sibling}if(!o)throw Error(gt(189))}}if(r.alternate!==n)throw Error(gt(190))}if(r.tag!==3)throw Error(gt(188));return r.stateNode.current===r?e:t}function Jk(e){if(e=G8(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 aT(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var eM,aE,tM,rM,e2=!1,Pa=[],vu=null,gu=null,mu=null,ah=new Map,oh=new Map,qd=[],oT="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 t2(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function uT(e,t){switch(e){case"focusin":case"focusout":vu=null;break;case"dragenter":case"dragleave":gu=null;break;case"mouseover":case"mouseout":mu=null;break;case"pointerover":case"pointerout":ah.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oh.delete(t.pointerId)}}function Hd(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=t2(t,r,n,i,a),t!==null&&(t=Lh(t),t!==null&&aE(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function q8(e,t,r,n,i){switch(t){case"focusin":return vu=Hd(vu,e,t,r,n,i),!0;case"dragenter":return gu=Hd(gu,e,t,r,n,i),!0;case"mouseover":return mu=Hd(mu,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return ah.set(a,Hd(ah.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,oh.set(a,Hd(oh.get(a)||null,e,t,r,n,i)),!0}return!1}function H8(e){var t=Dl(e.target);if(t!==null){var r=ls(t);if(r!==null){if(t=r.tag,t===13){if(t=Zk(r),t!==null){e.blockedOn=t,rM(e.lanePriority,function(){Sn.unstable_runWithPriority(e.priority,function(){tM(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Sm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=sE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Lh(r),t!==null&&aE(t),e.blockedOn=r,!1;t.shift()}return!0}function lT(e,t,r){Sm(e)&&r.delete(t)}function V8(){for(e2=!1;0<Pa.length;){var e=Pa[0];if(e.blockedOn!==null){e=Lh(e.blockedOn),e!==null&&eM(e);break}for(var t=e.targetContainers;0<t.length;){var r=sE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Pa.shift()}vu!==null&&Sm(vu)&&(vu=null),gu!==null&&Sm(gu)&&(gu=null),mu!==null&&Sm(mu)&&(mu=null),ah.forEach(lT),oh.forEach(lT)}function Vd(e,t){e.blockedOn===t&&(e.blockedOn=null,e2||(e2=!0,Sn.unstable_scheduleCallback(Sn.unstable_NormalPriority,V8)))}function nM(e){function t(i){return Vd(i,e)}if(0<Pa.length){Vd(Pa[0],e);for(var r=1;r<Pa.length;r++){var n=Pa[r];n.blockedOn===e&&(n.blockedOn=null)}}for(vu!==null&&Vd(vu,e),gu!==null&&Vd(gu,e),mu!==null&&Vd(mu,e),ah.forEach(t),oh.forEach(t),r=0;r<qd.length;r++)n=qd[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<qd.length&&(r=qd[0],r.blockedOn===null);)H8(r),r.blockedOn===null&&qd.shift()}function Rg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sf={animationend:Rg("Animation","AnimationEnd"),animationiteration:Rg("Animation","AnimationIteration"),animationstart:Rg("Animation","AnimationStart"),transitionend:Rg("Transition","TransitionEnd")},_b={},iM={};bo&&(iM=document.createElement("div").style,"AnimationEvent"in window||(delete Sf.animationend.animation,delete Sf.animationiteration.animation,delete Sf.animationstart.animation),"TransitionEvent"in window||delete Sf.transitionend.transition);function gy(e){if(_b[e])return _b[e];if(!Sf[e])return e;var t=Sf[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in iM)return _b[e]=t[r];return e}var aM=gy("animationend"),oM=gy("animationiteration"),uM=gy("animationstart"),lM=gy("transitionend"),sM=new Map,oE=new Map,Y8=["abort","abort",aM,"animationEnd",oM,"animationIteration",uM,"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",lM,"transitionEnd","waiting","waiting"];function uE(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)),oE.set(n,t),sM.set(n,i),os(i,[n])}}var X8=Sn.unstable_now;X8();var zr=8;function gf(e){if((1&e)!==0)return zr=15,1;if((2&e)!==0)return zr=14,2;if((4&e)!==0)return zr=13,4;var t=24&e;return t!==0?(zr=12,t):(e&32)!==0?(zr=11,32):(t=192&e,t!==0?(zr=10,t):(e&256)!==0?(zr=9,256):(t=3584&e,t!==0?(zr=8,t):(e&4096)!==0?(zr=7,4096):(t=4186112&e,t!==0?(zr=6,t):(t=62914560&e,t!==0?(zr=5,t):e&67108864?(zr=4,67108864):(e&134217728)!==0?(zr=3,134217728):(t=805306368&e,t!==0?(zr=2,t):(1073741824&e)!==0?(zr=1,1073741824):(zr=8,e))))))}function K8(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 Q8(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(gt(358,e))}}function uh(e,t){var r=e.pendingLanes;if(r===0)return zr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,u=e.pingedLanes;if(a!==0)n=a,i=zr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=gf(s),i=zr):(u&=a,u!==0&&(n=gf(u),i=zr))}else a=r&~o,a!==0?(n=gf(a),i=zr):u!==0&&(n=gf(u),i=zr);if(n===0)return 0;if(n=31-Tu(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&o)===0){if(gf(t),i<=zr)return t;zr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Tu(t),i=1<<r,n|=e[r],t&=~i;return n}function fM(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Km(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=mf(24&~t),e===0?Km(10,t):e;case 10:return e=mf(192&~t),e===0?Km(8,t):e;case 8:return e=mf(3584&~t),e===0&&(e=mf(4186112&~t),e===0&&(e=512)),e;case 2:return t=mf(805306368&~t),t===0&&(t=268435456),t}throw Error(gt(358,e))}function mf(e){return e&-e}function Sb(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function my(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Tu(t),e[t]=r}var Tu=Math.clz32?Math.clz32:e$,Z8=Math.log,J8=Math.LN2;function e$(e){return e===0?32:31-(Z8(e)/J8|0)|0}var t$=Sn.unstable_UserBlockingPriority,r$=Sn.unstable_runWithPriority,Em=!0;function n$(e,t,r,n){Ml||nE();var i=lE,a=Ml;Ml=!0;try{Kk(i,e,t,r,n)}finally{(Ml=a)||iE()}}function i$(e,t,r,n){r$(t$,lE.bind(null,e,t,r,n))}function lE(e,t,r,n){if(Em){var i;if((i=(t&4)===0)&&0<Pa.length&&-1<oT.indexOf(e))e=t2(null,e,t,r,n),Pa.push(e);else{var a=sE(e,t,r,n);if(a===null)i&&uT(e,n);else{if(i){if(-1<oT.indexOf(e)){e=t2(a,e,t,r,n),Pa.push(e);return}if(q8(a,e,t,r,n))return;uT(e,n)}SM(e,t,n,null,r)}}}}function sE(e,t,r,n){var i=tE(n);if(i=Dl(i),i!==null){var a=ls(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=Zk(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 SM(e,t,n,i,r),null}var lu=null,fE=null,Am=null;function cM(){if(Am)return Am;var e,t=fE,r=t.length,n,i="value"in lu?lu.value:lu.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 Am=i.slice(e,1<n?1-n:void 0)}function Cm(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 Og(){return!0}function sT(){return!1}function Ci(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(r=e[u],this[u]=r?r(a):a[u]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Og:sT,this.isPropagationStopped=sT,this}return Hr(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=Og)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Og)},persist:function(){},isPersistent:Og}),t}var yc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cE=Ci(yc),Nh=Hr({},yc,{view:0,detail:0}),a$=Ci(Nh),Eb,Ab,Yd,yy=Hr({},Nh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dE,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!==Yd&&(Yd&&e.type==="mousemove"?(Eb=e.screenX-Yd.screenX,Ab=e.screenY-Yd.screenY):Ab=Eb=0,Yd=e),Eb)},movementY:function(e){return"movementY"in e?e.movementY:Ab}}),fT=Ci(yy),o$=Hr({},yy,{dataTransfer:0}),u$=Ci(o$),l$=Hr({},Nh,{relatedTarget:0}),Cb=Ci(l$),s$=Hr({},yc,{animationName:0,elapsedTime:0,pseudoElement:0}),f$=Ci(s$),c$=Hr({},yc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),d$=Ci(c$),p$=Hr({},yc,{data:0}),cT=Ci(p$),h$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v$={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"},g$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g$[e])?!!t[e]:!1}function dE(){return m$}var y$=Hr({},Nh,{key:function(e){if(e.key){var t=h$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?v$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dE,charCode:function(e){return e.type==="keypress"?Cm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),b$=Ci(y$),w$=Hr({},yy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dT=Ci(w$),x$=Hr({},Nh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dE}),_$=Ci(x$),S$=Hr({},yc,{propertyName:0,elapsedTime:0,pseudoElement:0}),E$=Ci(S$),A$=Hr({},yy,{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}),C$=Ci(A$),T$=[9,13,27,32],pE=bo&&"CompositionEvent"in window,Bp=null;bo&&"documentMode"in document&&(Bp=document.documentMode);var R$=bo&&"TextEvent"in window&&!Bp,dM=bo&&(!pE||Bp&&8<Bp&&11>=Bp),pT=String.fromCharCode(32),hT=!1;function pM(e,t){switch(e){case"keyup":return T$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ef=!1;function O$(e,t){switch(e){case"compositionend":return hM(t);case"keypress":return t.which!==32?null:(hT=!0,pT);case"textInput":return e=t.data,e===pT&&hT?null:e;default:return null}}function I$(e,t){if(Ef)return e==="compositionend"||!pE&&pM(e,t)?(e=cM(),Am=fE=lu=null,Ef=!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 dM&&t.locale!=="ko"?null:t.data;default:return null}}var P$={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 vT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P$[e.type]:t==="textarea"}function vM(e,t,r,n){Yk(n),t=Qm(t,"onChange"),0<t.length&&(r=new cE("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var $p=null,lh=null;function k$(e){wM(e,0)}function by(e){var t=Cf(e);if(Uk(t))return e}function M$(e,t){if(e==="change")return t}var gM=!1;if(bo){var Tb;if(bo){var Rb="oninput"in document;if(!Rb){var gT=document.createElement("div");gT.setAttribute("oninput","return;"),Rb=typeof gT.oninput=="function"}Tb=Rb}else Tb=!1;gM=Tb&&(!document.documentMode||9<document.documentMode)}function mT(){$p&&($p.detachEvent("onpropertychange",mM),lh=$p=null)}function mM(e){if(e.propertyName==="value"&&by(lh)){var t=[];if(vM(t,lh,e,tE(e)),e=k$,Ml)e(t);else{Ml=!0;try{rE(e,t)}finally{Ml=!1,iE()}}}}function D$(e,t,r){e==="focusin"?(mT(),$p=t,lh=r,$p.attachEvent("onpropertychange",mM)):e==="focusout"&&mT()}function F$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return by(lh)}function N$(e,t){if(e==="click")return by(t)}function L$(e,t){if(e==="input"||e==="change")return by(t)}function B$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ni=typeof Object.is=="function"?Object.is:B$,$$=Object.prototype.hasOwnProperty;function sh(e,t){if(Ni(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(!$$.call(t,r[n])||!Ni(e[r[n]],t[r[n]]))return!1;return!0}function yT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bT(e,t){var r=yT(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=yT(r)}}function yM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wT(){for(var e=window,t=Vm();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vm(e.document)}return t}function r2(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 z$=bo&&"documentMode"in document&&11>=document.documentMode,Af=null,n2=null,zp=null,i2=!1;function xT(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;i2||Af==null||Af!==Vm(n)||(n=Af,"selectionStart"in n&&r2(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}),zp&&sh(zp,n)||(zp=n,n=Qm(n2,"onSelect"),0<n.length&&(t=new cE("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Af)))}uE("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);uE("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);uE(Y8,2);for(var _T="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ob=0;Ob<_T.length;Ob++)oE.set(_T[Ob],0);Qf("onMouseEnter",["mouseout","mouseover"]);Qf("onMouseLeave",["mouseout","mouseover"]);Qf("onPointerEnter",["pointerout","pointerover"]);Qf("onPointerLeave",["pointerout","pointerover"]);os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));os("onBeforeInput",["compositionend","keypress","textInput","paste"]);os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sp));function ST(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,W8(n,t,void 0,e),e.currentTarget=null}function wM(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 u=n[o],s=u.instance,f=u.currentTarget;if(u=u.listener,s!==a&&i.isPropagationStopped())break e;ST(i,u,f),a=s}else for(o=0;o<n.length;o++){if(u=n[o],s=u.instance,f=u.currentTarget,u=u.listener,s!==a&&i.isPropagationStopped())break e;ST(i,u,f),a=s}}}if(Xm)throw e=J_,Xm=!1,J_=null,e}function Ur(e,t){var r=AM(t),n=e+"__bubble";r.has(n)||(_M(t,e,2,!1),r.add(n))}var ET="_reactListening"+Math.random().toString(36).slice(2);function xM(e){e[ET]||(e[ET]=!0,Bk.forEach(function(t){bM.has(t)||AT(t,!1,e,null),AT(t,!0,e,null)}))}function AT(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&&bM.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=AM(a),u=e+"__"+(t?"capture":"bubble");o.has(u)||(t&&(i|=4),_M(a,e,i,t),o.add(u))}function _M(e,t,r,n){var i=oE.get(t);switch(i===void 0?2:i){case 0:i=n$;break;case 1:i=i$;break;default:i=lE}r=i.bind(null,t,r,e),i=void 0,!Z_||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 SM(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 u=n.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;u!==null;){if(o=Dl(u),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}u=u.parentNode}}n=n.return}$8(function(){var f=a,d=tE(r),v=[];e:{var h=sM.get(e);if(h!==void 0){var g=cE,_=e;switch(e){case"keypress":if(Cm(r)===0)break e;case"keydown":case"keyup":g=b$;break;case"focusin":_="focus",g=Cb;break;case"focusout":_="blur",g=Cb;break;case"beforeblur":case"afterblur":g=Cb;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=fT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=u$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=_$;break;case aM:case oM:case uM:g=f$;break;case lM:g=E$;break;case"scroll":g=a$;break;case"wheel":g=C$;break;case"copy":case"cut":case"paste":g=d$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=dT}var A=(t&4)!==0,b=!A&&e==="scroll",w=A?h!==null?h+"Capture":null:h;A=[];for(var S=f,E;S!==null;){E=S;var R=E.stateNode;if(E.tag===5&&R!==null&&(E=R,w!==null&&(R=ih(S,w),R!=null&&A.push(fh(S,R,E)))),b)break;S=S.return}0<A.length&&(h=new g(h,_,null,r,d),v.push({event:h,listeners:A}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&(t&16)===0&&(_=r.relatedTarget||r.fromElement)&&(Dl(_)||_[bc]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(_=r.relatedTarget||r.toElement,g=f,_=_?Dl(_):null,_!==null&&(b=ls(_),_!==b||_.tag!==5&&_.tag!==6)&&(_=null)):(g=null,_=f),g!==_)){if(A=fT,R="onMouseLeave",w="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(A=dT,R="onPointerLeave",w="onPointerEnter",S="pointer"),b=g==null?h:Cf(g),E=_==null?h:Cf(_),h=new A(R,S+"leave",g,r,d),h.target=b,h.relatedTarget=E,R=null,Dl(d)===f&&(A=new A(w,S+"enter",_,r,d),A.target=E,A.relatedTarget=b,R=A),b=R,g&&_)t:{for(A=g,w=_,S=0,E=A;E;E=of(E))S++;for(E=0,R=w;R;R=of(R))E++;for(;0<S-E;)A=of(A),S--;for(;0<E-S;)w=of(w),E--;for(;S--;){if(A===w||w!==null&&A===w.alternate)break t;A=of(A),w=of(w)}A=null}else A=null;g!==null&&CT(v,h,g,A,!1),_!==null&&b!==null&&CT(v,b,_,A,!0)}}e:{if(h=f?Cf(f):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var M=M$;else if(vT(h))if(gM)M=L$;else{M=F$;var D=D$}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(M=N$);if(M&&(M=M(e,f))){vM(v,M,r,d);break e}D&&D(e,h,f),e==="focusout"&&(D=h._wrapperState)&&D.controlled&&h.type==="number"&&G_(h,"number",h.value)}switch(D=f?Cf(f):window,e){case"focusin":(vT(D)||D.contentEditable==="true")&&(Af=D,n2=f,zp=null);break;case"focusout":zp=n2=Af=null;break;case"mousedown":i2=!0;break;case"contextmenu":case"mouseup":case"dragend":i2=!1,xT(v,r,d);break;case"selectionchange":if(z$)break;case"keydown":case"keyup":xT(v,r,d)}var z;if(pE)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Ef?pM(e,r)&&(N="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(N="onCompositionStart");N&&(dM&&r.locale!=="ko"&&(Ef||N!=="onCompositionStart"?N==="onCompositionEnd"&&Ef&&(z=cM()):(lu=d,fE="value"in lu?lu.value:lu.textContent,Ef=!0)),D=Qm(f,N),0<D.length&&(N=new cT(N,e,null,r,d),v.push({event:N,listeners:D}),z?N.data=z:(z=hM(r),z!==null&&(N.data=z)))),(z=R$?O$(e,r):I$(e,r))&&(f=Qm(f,"onBeforeInput"),0<f.length&&(d=new cT("onBeforeInput","beforeinput",null,r,d),v.push({event:d,listeners:f}),d.data=z))}wM(v,t)})}function fh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Qm(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ih(e,r),a!=null&&n.unshift(fh(e,a,i)),a=ih(e,t),a!=null&&n.push(fh(e,a,i))),e=e.return}return n}function of(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function CT(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var u=r,s=u.alternate,f=u.stateNode;if(s!==null&&s===n)break;u.tag===5&&f!==null&&(u=f,i?(s=ih(r,a),s!=null&&o.unshift(fh(r,s,u))):i||(s=ih(r,a),s!=null&&o.push(fh(r,s,u)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function Zm(){}var Ib=null,Pb=null;function EM(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function a2(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 TT=typeof setTimeout=="function"?setTimeout:void 0,U$=typeof clearTimeout=="function"?clearTimeout:void 0;function hE(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function RT(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 kb=0;function j$(e){return{$$typeof:JS,toString:e,valueOf:e}}var wy=Math.random().toString(36).slice(2),su="__reactFiber$"+wy,Jm="__reactProps$"+wy,bc="__reactContainer$"+wy,OT="__reactEvents$"+wy;function Dl(e){var t=e[su];if(t)return t;for(var r=e.parentNode;r;){if(t=r[bc]||r[su]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=RT(e);e!==null;){if(r=e[su])return r;e=RT(e)}return t}e=r,r=e.parentNode}return null}function Lh(e){return e=e[su]||e[bc],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(gt(33))}function xy(e){return e[Jm]||null}function AM(e){var t=e[OT];return t===void 0&&(t=e[OT]=new Set),t}var o2=[],Tf=-1;function $u(e){return{current:e}}function jr(e){0>Tf||(e.current=o2[Tf],o2[Tf]=null,Tf--)}function Qr(e,t){Tf++,o2[Tf]=e.current,e.current=t}var Ru={},Gn=$u(Ru),fi=$u(!1),Vl=Ru;function Zf(e,t){var r=e.type.contextTypes;if(!r)return Ru;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 e0(){jr(fi),jr(Gn)}function IT(e,t,r){if(Gn.current!==Ru)throw Error(gt(168));Qr(Gn,t),Qr(fi,r)}function CM(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(gt(108,Mf(t)||"Unknown",i));return Hr({},r,n)}function Tm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,Vl=Gn.current,Qr(Gn,e),Qr(fi,fi.current),!0}function PT(e,t,r){var n=e.stateNode;if(!n)throw Error(gt(169));r?(e=CM(e,t,Vl),n.__reactInternalMemoizedMergedChildContext=e,jr(fi),jr(Gn),Qr(Gn,e)):jr(fi),Qr(fi,r)}var vE=null,Ul=null,W$=Sn.unstable_runWithPriority,gE=Sn.unstable_scheduleCallback,u2=Sn.unstable_cancelCallback,G$=Sn.unstable_shouldYield,kT=Sn.unstable_requestPaint,l2=Sn.unstable_now,q$=Sn.unstable_getCurrentPriorityLevel,_y=Sn.unstable_ImmediatePriority,TM=Sn.unstable_UserBlockingPriority,RM=Sn.unstable_NormalPriority,OM=Sn.unstable_LowPriority,IM=Sn.unstable_IdlePriority,Mb={},H$=kT!==void 0?kT:function(){},fo=null,Rm=null,Db=!1,MT=l2(),jn=1e4>MT?l2:function(){return l2()-MT};function Jf(){switch(q$()){case _y:return 99;case TM:return 98;case RM:return 97;case OM:return 96;case IM:return 95;default:throw Error(gt(332))}}function PM(e){switch(e){case 99:return _y;case 98:return TM;case 97:return RM;case 96:return OM;case 95:return IM;default:throw Error(gt(332))}}function Yl(e,t){return e=PM(e),W$(e,t)}function ch(e,t,r){return e=PM(e),gE(e,t,r)}function Ua(){if(Rm!==null){var e=Rm;Rm=null,u2(e)}kM()}function kM(){if(!Db&&fo!==null){Db=!0;var e=0;try{var t=fo;Yl(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),fo=null}catch(r){throw fo!==null&&(fo=fo.slice(e+1)),gE(_y,Ua),r}finally{Db=!1}}}var V$=us.ReactCurrentBatchConfig;function oa(e,t){if(e&&e.defaultProps){t=Hr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var t0=$u(null),r0=null,Rf=null,n0=null;function mE(){n0=Rf=r0=null}function yE(e){var t=t0.current;jr(t0),e.type._context._currentValue=t}function MM(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 Bf(e,t){r0=e,n0=Rf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ua=!0),e.firstContext=null)}function Wi(e,t){if(n0!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(n0=e,t=1073741823),t={context:e,observedBits:t,next:null},Rf===null){if(r0===null)throw Error(gt(308));Rf=t,r0.dependencies={lanes:0,firstContext:t,responders:null}}else Rf=Rf.next=t;return e._currentValue}var ru=!1;function bE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function DM(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 yu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bu(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 DT(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 dh(e,t,r,n){var i=e.updateQueue;ru=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var s=u,f=s.next;s.next=null,o===null?a=f:o.next=f,o=s;var d=e.alternate;if(d!==null){d=d.updateQueue;var v=d.lastBaseUpdate;v!==o&&(v===null?d.firstBaseUpdate=f:v.next=f,d.lastBaseUpdate=s)}}if(a!==null){v=i.baseState,o=0,d=f=s=null;do{u=a.lane;var h=a.eventTime;if((n&u)===u){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,_=a;switch(u=t,h=r,_.tag){case 1:if(g=_.payload,typeof g=="function"){v=g.call(h,v,u);break e}v=g;break e;case 3:g.flags=g.flags&-4097|64;case 0:if(g=_.payload,u=typeof g=="function"?g.call(h,v,u):g,u==null)break e;v=Hr({},v,u);break e;case 2:ru=!0}}a.callback!==null&&(e.flags|=32,u=i.effects,u===null?i.effects=[a]:u.push(a))}else h={eventTime:h,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(f=d=h,s=v):d=d.next=h,o|=u;if(a=a.next,a===null){if(u=i.shared.pending,u===null)break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}while(1);d===null&&(s=v),i.baseState=s,i.firstBaseUpdate=f,i.lastBaseUpdate=d,$h|=o,e.lanes=o,e.memoizedState=v}}function FT(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(gt(191,i));i.call(n)}}}var FM=new py.Component().refs;function i0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Hr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Sy={isMounted:function(e){return(e=e._reactInternals)?ls(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Si(),i=wu(e),a=yu(n,i);a.payload=t,r!=null&&(a.callback=r),bu(e,a),xu(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Si(),i=wu(e),a=yu(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),bu(e,a),xu(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Si(),n=wu(e),i=yu(r,n);i.tag=2,t!=null&&(i.callback=t),bu(e,i),xu(e,n,r)}};function NT(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?!sh(r,n)||!sh(i,a):!0}function NM(e,t,r){var n=!1,i=Ru,a=t.contextType;return typeof a=="object"&&a!==null?a=Wi(a):(i=ci(t)?Vl:Gn.current,n=t.contextTypes,a=(n=n!=null)?Zf(e,i):Ru),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sy,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function LT(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&&Sy.enqueueReplaceState(t,t.state,null)}function s2(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=FM,bE(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Wi(a):(a=ci(t)?Vl:Gn.current,i.context=Zf(e,a)),dh(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(i0(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&&Sy.enqueueReplaceState(i,i.state,null),dh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Ig=Array.isArray;function Xd(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(gt(309));var n=r.stateNode}if(!n)throw Error(gt(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===FM&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(gt(284));if(!r._owner)throw Error(gt(290,e))}return e}function Pg(e,t){if(e.type!=="textarea")throw Error(gt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function LM(e){function t(b,w){if(e){var S=b.lastEffect;S!==null?(S.nextEffect=w,b.lastEffect=w):b.firstEffect=b.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function n(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=Iu(b,w),b.index=0,b.sibling=null,b}function a(b,w,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<w?(b.flags=2,w):S):(b.flags=2,w)):w}function o(b){return e&&b.alternate===null&&(b.flags=2),b}function u(b,w,S,E){return w===null||w.tag!==6?(w=$b(S,b.mode,E),w.return=b,w):(w=i(w,S),w.return=b,w)}function s(b,w,S,E){return w!==null&&w.elementType===S.type?(E=i(w,S.props),E.ref=Xd(b,w,S),E.return=b,E):(E=km(S.type,S.key,S.props,null,b.mode,E),E.ref=Xd(b,w,S),E.return=b,E)}function f(b,w,S,E){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=zb(S,b.mode,E),w.return=b,w):(w=i(w,S.children||[]),w.return=b,w)}function d(b,w,S,E,R){return w===null||w.tag!==7?(w=jf(S,b.mode,E,R),w.return=b,w):(w=i(w,S),w.return=b,w)}function v(b,w,S){if(typeof w=="string"||typeof w=="number")return w=$b(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case xp:return S=km(w.type,w.key,w.props,null,b.mode,S),S.ref=Xd(b,null,w),S.return=b,S;case kl:return w=zb(w,b.mode,S),w.return=b,w}if(Ig(w)||Wd(w))return w=jf(w,b.mode,S,null),w.return=b,w;Pg(b,w)}return null}function h(b,w,S,E){var R=w!==null?w.key:null;if(typeof S=="string"||typeof S=="number")return R!==null?null:u(b,w,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case xp:return S.key===R?S.type===ou?d(b,w,S.props.children,E,R):s(b,w,S,E):null;case kl:return S.key===R?f(b,w,S,E):null}if(Ig(S)||Wd(S))return R!==null?null:d(b,w,S,E,null);Pg(b,S)}return null}function g(b,w,S,E,R){if(typeof E=="string"||typeof E=="number")return b=b.get(S)||null,u(w,b,""+E,R);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case xp:return b=b.get(E.key===null?S:E.key)||null,E.type===ou?d(w,b,E.props.children,R,E.key):s(w,b,E,R);case kl:return b=b.get(E.key===null?S:E.key)||null,f(w,b,E,R)}if(Ig(E)||Wd(E))return b=b.get(S)||null,d(w,b,E,R,null);Pg(w,E)}return null}function _(b,w,S,E){for(var R=null,M=null,D=w,z=w=0,N=null;D!==null&&z<S.length;z++){D.index>z?(N=D,D=null):N=D.sibling;var L=h(b,D,S[z],E);if(L===null){D===null&&(D=N);break}e&&D&&L.alternate===null&&t(b,D),w=a(L,w,z),M===null?R=L:M.sibling=L,M=L,D=N}if(z===S.length)return r(b,D),R;if(D===null){for(;z<S.length;z++)D=v(b,S[z],E),D!==null&&(w=a(D,w,z),M===null?R=D:M.sibling=D,M=D);return R}for(D=n(b,D);z<S.length;z++)N=g(D,b,z,S[z],E),N!==null&&(e&&N.alternate!==null&&D.delete(N.key===null?z:N.key),w=a(N,w,z),M===null?R=N:M.sibling=N,M=N);return e&&D.forEach(function(ee){return t(b,ee)}),R}function A(b,w,S,E){var R=Wd(S);if(typeof R!="function")throw Error(gt(150));if(S=R.call(S),S==null)throw Error(gt(151));for(var M=R=null,D=w,z=w=0,N=null,L=S.next();D!==null&&!L.done;z++,L=S.next()){D.index>z?(N=D,D=null):N=D.sibling;var ee=h(b,D,L.value,E);if(ee===null){D===null&&(D=N);break}e&&D&&ee.alternate===null&&t(b,D),w=a(ee,w,z),M===null?R=ee:M.sibling=ee,M=ee,D=N}if(L.done)return r(b,D),R;if(D===null){for(;!L.done;z++,L=S.next())L=v(b,L.value,E),L!==null&&(w=a(L,w,z),M===null?R=L:M.sibling=L,M=L);return R}for(D=n(b,D);!L.done;z++,L=S.next())L=g(D,b,z,L.value,E),L!==null&&(e&&L.alternate!==null&&D.delete(L.key===null?z:L.key),w=a(L,w,z),M===null?R=L:M.sibling=L,M=L);return e&&D.forEach(function(ue){return t(b,ue)}),R}return function(b,w,S,E){var R=typeof S=="object"&&S!==null&&S.type===ou&&S.key===null;R&&(S=S.props.children);var M=typeof S=="object"&&S!==null;if(M)switch(S.$$typeof){case xp:e:{for(M=S.key,R=w;R!==null;){if(R.key===M){switch(R.tag){case 7:if(S.type===ou){r(b,R.sibling),w=i(R,S.props.children),w.return=b,b=w;break e}break;default:if(R.elementType===S.type){r(b,R.sibling),w=i(R,S.props),w.ref=Xd(b,R,S),w.return=b,b=w;break e}}r(b,R);break}else t(b,R);R=R.sibling}S.type===ou?(w=jf(S.props.children,b.mode,E,S.key),w.return=b,b=w):(E=km(S.type,S.key,S.props,null,b.mode,E),E.ref=Xd(b,w,S),E.return=b,b=E)}return o(b);case kl:e:{for(R=S.key;w!==null;){if(w.key===R)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){r(b,w.sibling),w=i(w,S.children||[]),w.return=b,b=w;break e}else{r(b,w);break}else t(b,w);w=w.sibling}w=zb(S,b.mode,E),w.return=b,b=w}return o(b)}if(typeof S=="string"||typeof S=="number")return S=""+S,w!==null&&w.tag===6?(r(b,w.sibling),w=i(w,S),w.return=b,b=w):(r(b,w),w=$b(S,b.mode,E),w.return=b,b=w),o(b);if(Ig(S))return _(b,w,S,E);if(Wd(S))return A(b,w,S,E);if(M&&Pg(b,S),typeof S>"u"&&!R)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(gt(152,Mf(b.type)||"Component"))}return r(b,w)}}var a0=LM(!0),BM=LM(!1),Bh={},Fa=$u(Bh),ph=$u(Bh),hh=$u(Bh);function Fl(e){if(e===Bh)throw Error(gt(174));return e}function f2(e,t){switch(Qr(hh,t),Qr(ph,e),Qr(Fa,Bh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Y_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Y_(t,e)}jr(Fa),Qr(Fa,t)}function ec(){jr(Fa),jr(ph),jr(hh)}function BT(e){Fl(hh.current);var t=Fl(Fa.current),r=Y_(t,e.type);t!==r&&(Qr(ph,e),Qr(Fa,r))}function wE(e){ph.current===e&&(jr(Fa),jr(ph))}var Kr=$u(0);function o0(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 ho=null,fu=null,Na=!1;function $M(e,t){var r=Li(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 $T(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 c2(e){if(Na){var t=fu;if(t){var r=t;if(!$T(e,t)){if(t=Lf(r.nextSibling),!t||!$T(e,t)){e.flags=e.flags&-1025|2,Na=!1,ho=e;return}$M(ho,r)}ho=e,fu=Lf(t.firstChild)}else e.flags=e.flags&-1025|2,Na=!1,ho=e}}function zT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ho=e}function kg(e){if(e!==ho)return!1;if(!Na)return zT(e),Na=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!a2(t,e.memoizedProps))for(t=fu;t;)$M(e,t),t=Lf(t.nextSibling);if(zT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(gt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){fu=Lf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}fu=null}}else fu=ho?Lf(e.stateNode.nextSibling):null;return!0}function Fb(){fu=ho=null,Na=!1}var $f=[];function xE(){for(var e=0;e<$f.length;e++)$f[e]._workInProgressVersionPrimary=null;$f.length=0}var Up=us.ReactCurrentDispatcher,zi=us.ReactCurrentBatchConfig,vh=0,en=null,Un=null,kn=null,u0=!1,jp=!1;function oi(){throw Error(gt(321))}function _E(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ni(e[r],t[r]))return!1;return!0}function SE(e,t,r,n,i,a){if(vh=a,en=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Up.current=e===null||e.memoizedState===null?X$:K$,e=r(n,i),jp){a=0;do{if(jp=!1,!(25>a))throw Error(gt(301));a+=1,kn=Un=null,t.updateQueue=null,Up.current=Q$,e=r(n,i)}while(jp)}if(Up.current=c0,t=Un!==null&&Un.next!==null,vh=0,kn=Un=en=null,u0=!1,t)throw Error(gt(300));return e}function Nl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kn===null?en.memoizedState=kn=e:kn=kn.next=e,kn}function ss(){if(Un===null){var e=en.alternate;e=e!==null?e.memoizedState:null}else e=Un.next;var t=kn===null?en.memoizedState:kn.next;if(t!==null)kn=t,Un=e;else{if(e===null)throw Error(gt(310));Un=e,e={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},kn===null?en.memoizedState=kn=e:kn=kn.next=e}return kn}function ka(e,t){return typeof t=="function"?t(e):t}function Kd(e){var t=ss(),r=t.queue;if(r===null)throw Error(gt(311));r.lastRenderedReducer=e;var n=Un,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 u=o=a=null,s=i;do{var f=s.lane;if((vh&f)===f)u!==null&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var d={lane:f,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};u===null?(o=u=d,a=n):u=u.next=d,en.lanes|=f,$h|=f}s=s.next}while(s!==null&&s!==i);u===null?a=n:u.next=o,Ni(n,t.memoizedState)||(ua=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Qd(e){var t=ss(),r=t.queue;if(r===null)throw Error(gt(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);Ni(a,t.memoizedState)||(ua=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function UT(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=(vh&e)===e)&&(t._workInProgressVersionPrimary=n,$f.push(t))),e)return r(t._source);throw $f.push(t),Error(gt(350))}function zM(e,t,r,n){var i=Zn;if(i===null)throw Error(gt(349));var a=t._getVersion,o=a(t._source),u=Up.current,s=u.useState(function(){return UT(i,t,r)}),f=s[1],d=s[0];s=kn;var v=e.memoizedState,h=v.refs,g=h.getSnapshot,_=v.source;v=v.subscribe;var A=en;return e.memoizedState={refs:h,source:t,subscribe:n},u.useEffect(function(){h.getSnapshot=r,h.setSnapshot=f;var b=a(t._source);if(!Ni(o,b)){b=r(t._source),Ni(d,b)||(f(b),b=wu(A),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var w=i.entanglements,S=b;0<S;){var E=31-Tu(S),R=1<<E;w[E]|=b,S&=~R}}},[r,t,n]),u.useEffect(function(){return n(t._source,function(){var b=h.getSnapshot,w=h.setSnapshot;try{w(b(t._source));var S=wu(A);i.mutableReadLanes|=S&i.pendingLanes}catch(E){w(function(){throw E})}})},[t,n]),Ni(g,r)&&Ni(_,t)&&Ni(v,n)||(e={pending:null,dispatch:null,lastRenderedReducer:ka,lastRenderedState:d},e.dispatch=f=CE.bind(null,en,e),s.queue=e,s.baseQueue=null,d=UT(i,t,r),s.memoizedState=s.baseState=d),d}function UM(e,t,r){var n=ss();return zM(n,e,t,r)}function Zd(e){var t=Nl();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=CE.bind(null,en,e),[t.memoizedState,e]}function l0(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=en.updateQueue,t===null?(t={lastEffect:null},en.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 jT(e){var t=Nl();return e={current:e},t.memoizedState=e}function s0(){return ss().memoizedState}function d2(e,t,r,n){var i=Nl();en.flags|=e,i.memoizedState=l0(1|t,r,void 0,n===void 0?null:n)}function EE(e,t,r,n){var i=ss();n=n===void 0?null:n;var a=void 0;if(Un!==null){var o=Un.memoizedState;if(a=o.destroy,n!==null&&_E(n,o.deps)){l0(t,r,a,n);return}}en.flags|=e,i.memoizedState=l0(1|t,r,a,n)}function WT(e,t){return d2(516,4,e,t)}function f0(e,t){return EE(516,4,e,t)}function jM(e,t){return EE(4,2,e,t)}function WM(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 GM(e,t,r){return r=r!=null?r.concat([e]):null,EE(4,2,WM.bind(null,t,e),r)}function AE(){}function qM(e,t){var r=ss();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_E(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function HM(e,t){var r=ss();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_E(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Y$(e,t){var r=Jf();Yl(98>r?98:r,function(){e(!0)}),Yl(97<r?97:r,function(){var n=zi.transition;zi.transition=1;try{e(!1),t()}finally{zi.transition=n}})}function CE(e,t,r){var n=Si(),i=wu(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===en||o!==null&&o===en)jp=u0=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,s=o(u,r);if(a.eagerReducer=o,a.eagerState=s,Ni(s,u))return}catch{}finally{}xu(e,i,n)}}var c0={readContext:Wi,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useLayoutEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useMutableSource:oi,useOpaqueIdentifier:oi,unstable_isNewReconciler:!1},X$={readContext:Wi,useCallback:function(e,t){return Nl().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:WT,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,d2(4,2,WM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return d2(4,2,e,t)},useMemo:function(e,t){var r=Nl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Nl();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=CE.bind(null,en,e),[n.memoizedState,e]},useRef:jT,useState:Zd,useDebugValue:AE,useDeferredValue:function(e){var t=Zd(e),r=t[0],n=t[1];return WT(function(){var i=zi.transition;zi.transition=1;try{n(e)}finally{zi.transition=i}},[e]),r},useTransition:function(){var e=Zd(!1),t=e[0];return e=Y$.bind(null,e[1]),jT(e),[e,t]},useMutableSource:function(e,t,r){var n=Nl();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},zM(n,e,t,r)},useOpaqueIdentifier:function(){if(Na){var e=!1,t=j$(function(){throw e||(e=!0,r("r:"+(kb++).toString(36))),Error(gt(355))}),r=Zd(t)[1];return(en.mode&2)===0&&(en.flags|=516,l0(5,function(){r("r:"+(kb++).toString(36))},void 0,null)),t}return t="r:"+(kb++).toString(36),Zd(t),t},unstable_isNewReconciler:!1},K$={readContext:Wi,useCallback:qM,useContext:Wi,useEffect:f0,useImperativeHandle:GM,useLayoutEffect:jM,useMemo:HM,useReducer:Kd,useRef:s0,useState:function(){return Kd(ka)},useDebugValue:AE,useDeferredValue:function(e){var t=Kd(ka),r=t[0],n=t[1];return f0(function(){var i=zi.transition;zi.transition=1;try{n(e)}finally{zi.transition=i}},[e]),r},useTransition:function(){var e=Kd(ka)[0];return[s0().current,e]},useMutableSource:UM,useOpaqueIdentifier:function(){return Kd(ka)[0]},unstable_isNewReconciler:!1},Q$={readContext:Wi,useCallback:qM,useContext:Wi,useEffect:f0,useImperativeHandle:GM,useLayoutEffect:jM,useMemo:HM,useReducer:Qd,useRef:s0,useState:function(){return Qd(ka)},useDebugValue:AE,useDeferredValue:function(e){var t=Qd(ka),r=t[0],n=t[1];return f0(function(){var i=zi.transition;zi.transition=1;try{n(e)}finally{zi.transition=i}},[e]),r},useTransition:function(){var e=Qd(ka)[0];return[s0().current,e]},useMutableSource:UM,useOpaqueIdentifier:function(){return Qd(ka)[0]},unstable_isNewReconciler:!1},Z$=us.ReactCurrentOwner,ua=!1;function li(e,t,r,n){t.child=e===null?BM(t,null,r,n):a0(t,e.child,r,n)}function GT(e,t,r,n,i){r=r.render;var a=t.ref;return Bf(t,i),n=SE(e,t,r,n,a,i),e!==null&&!ua?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,vo(e,t,i)):(t.flags|=1,li(e,t,n,i),t.child)}function qT(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!kE(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,VM(e,t,o,n,i,a)):(e=km(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:sh,r(i,n)&&e.ref===t.ref)?vo(e,t,a):(t.flags|=1,e=Iu(o,n),e.ref=t.ref,e.return=t,t.child=e)}function VM(e,t,r,n,i,a){if(e!==null&&sh(e.memoizedProps,n)&&e.ref===t.ref)if(ua=!1,(a&i)!==0)(e.flags&16384)!==0&&(ua=!0);else return t.lanes=e.lanes,vo(e,t,a);return p2(e,t,r,n,a)}function Nb(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},Dg(t,r);else if((r&1073741824)!==0)t.memoizedState={baseLanes:0},Dg(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Dg(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Dg(t,n);return li(e,t,i,r),t.child}function YM(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function p2(e,t,r,n,i){var a=ci(r)?Vl:Gn.current;return a=Zf(t,a),Bf(t,i),r=SE(e,t,r,n,a,i),e!==null&&!ua?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,vo(e,t,i)):(t.flags|=1,li(e,t,r,i),t.child)}function HT(e,t,r,n,i){if(ci(r)){var a=!0;Tm(t)}else a=!1;if(Bf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),NM(t,r,n),s2(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var s=o.context,f=r.contextType;typeof f=="object"&&f!==null?f=Wi(f):(f=ci(r)?Vl:Gn.current,f=Zf(t,f));var d=r.getDerivedStateFromProps,v=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==n||s!==f)&<(t,o,n,f),ru=!1;var h=t.memoizedState;o.state=h,dh(t,n,o,i),s=t.memoizedState,u!==n||h!==s||fi.current||ru?(typeof d=="function"&&(i0(t,r,d,n),s=t.memoizedState),(u=ru||NT(t,r,u,n,h,s,f))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=f,n=u):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,DM(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:oa(t.type,u),o.props=f,v=t.pendingProps,h=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Wi(s):(s=ci(r)?Vl:Gn.current,s=Zf(t,s));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==v||h!==s)&<(t,o,n,s),ru=!1,h=t.memoizedState,o.state=h,dh(t,n,o,i);var _=t.memoizedState;u!==v||h!==_||fi.current||ru?(typeof g=="function"&&(i0(t,r,g,n),_=t.memoizedState),(f=ru||NT(t,r,f,n,h,_,s))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,_,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,_,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=_),o.props=n,o.state=_,o.context=s,n=f):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),n=!1)}return h2(e,t,r,n,a,i)}function h2(e,t,r,n,i,a){YM(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&PT(t,r,!1),vo(e,t,a);n=t.stateNode,Z$.current=t;var u=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=a0(t,e.child,null,a),t.child=a0(t,null,u,a)):li(e,t,u,a),t.memoizedState=n.state,i&&PT(t,r,!0),t.child}function VT(e){var t=e.stateNode;t.pendingContext?IT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&IT(e,t.context,!1),f2(e,t.containerInfo)}var Mg={dehydrated:null,retryLane:0};function YT(e,t,r){var n=t.pendingProps,i=Kr.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),Qr(Kr,i&1),e===null?(n.fallback!==void 0&&c2(t),e=n.children,i=n.fallback,a?(e=XT(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Mg,e):typeof n.unstable_expectedLoadTime=="number"?(e=XT(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Mg,t.lanes=33554432,e):(r=ME({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=QT(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=Mg,n):(r=KT(e,t,n.children,r),t.memoizedState=null,r):a?(n=QT(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=Mg,n):(r=KT(e,t,n.children,r),t.memoizedState=null,r)}function XT(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=ME(t,i,0,null),r=jf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function KT(e,t,r,n){var i=e.child;return e=i.sibling,r=Iu(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 QT(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var u={mode:"hidden",children:r};return(a&2)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Iu(o,u),e!==null?n=Iu(e,n):(n=jf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function ZT(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),MM(e.return,t)}function Lb(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 JT(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(li(e,t,n.children,r),n=Kr.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&&ZT(e,r);else if(e.tag===19)ZT(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(Qr(Kr,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&&o0(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Lb(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&&o0(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Lb(t,!0,r,null,a,t.lastEffect);break;case"together":Lb(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function vo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),$h|=t.lanes,(r&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(gt(153));if(t.child!==null){for(e=t.child,r=Iu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Iu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var XM,v2,KM,QM;XM=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}};v2=function(){};KM=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Fl(Fa.current);var a=null;switch(r){case"input":i=j_(e,i),n=j_(e,n),a=[];break;case"option":i=q_(e,i),n=q_(e,n),a=[];break;case"select":i=Hr({},i,{value:void 0}),n=Hr({},n,{value:void 0}),a=[];break;case"textarea":i=H_(e,i),n=H_(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Zm)}X_(r,n);var o;r=null;for(f in i)if(!n.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var u=i[f];for(o in u)u.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(rh.hasOwnProperty(f)?a||(a=[]):(a=a||[]).push(f,null));for(f in n){var s=n[f];if(u=i!=null?i[f]:void 0,n.hasOwnProperty(f)&&s!==u&&(s!=null||u!=null))if(f==="style")if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(f,r)),r=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(a=a||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(rh.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&Ur("scroll",e),a||u===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===JS?s.toString():(a=a||[]).push(f,s))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}};QM=function(e,t,r,n){r!==n&&(t.flags|=4)};function Jd(e,t){if(!Na)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 J$(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)&&e0(),null;case 3:return ec(),jr(fi),jr(Gn),xE(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(kg(t)?t.flags|=4:n.hydrate||(t.flags|=256)),v2(t),null;case 5:wE(t);var i=Fl(hh.current);if(r=t.type,e!==null&&t.stateNode!=null)KM(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(gt(166));return null}if(e=Fl(Fa.current),kg(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[su]=t,n[Jm]=a,r){case"dialog":Ur("cancel",n),Ur("close",n);break;case"iframe":case"object":case"embed":Ur("load",n);break;case"video":case"audio":for(e=0;e<Sp.length;e++)Ur(Sp[e],n);break;case"source":Ur("error",n);break;case"img":case"image":case"link":Ur("error",n),Ur("load",n);break;case"details":Ur("toggle",n);break;case"input":JC(n,a),Ur("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",n);break;case"textarea":tT(n,a),Ur("invalid",n)}X_(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]):rh.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Ur("scroll",n));switch(r){case"input":Cg(n),eT(n,a,!0);break;case"textarea":Cg(n),rT(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Zm)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===V_.html&&(e=Gk(r)),e===V_.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[su]=t,e[Jm]=n,XM(e,t,!1,!1),t.stateNode=e,o=K_(r,n),r){case"dialog":Ur("cancel",e),Ur("close",e),i=n;break;case"iframe":case"object":case"embed":Ur("load",e),i=n;break;case"video":case"audio":for(i=0;i<Sp.length;i++)Ur(Sp[i],e);i=n;break;case"source":Ur("error",e),i=n;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),i=n;break;case"details":Ur("toggle",e),i=n;break;case"input":JC(e,n),i=j_(e,n),Ur("invalid",e);break;case"option":i=q_(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Hr({},n,{value:void 0}),Ur("invalid",e);break;case"textarea":tT(e,n),i=H_(e,n),Ur("invalid",e);break;default:i=n}X_(r,i);var u=i;for(a in u)if(u.hasOwnProperty(a)){var s=u[a];a==="style"?Vk(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&qk(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&nh(e,s):typeof s=="number"&&nh(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(rh.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Ur("scroll",e):s!=null&&VS(e,a,s,o))}switch(r){case"input":Cg(e),eT(e,n,!1);break;case"textarea":Cg(e),rT(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Cu(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Df(e,!!n.multiple,a,!1):n.defaultValue!=null&&Df(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Zm)}EM(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)QM(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(gt(166));r=Fl(hh.current),Fl(Fa.current),kg(t)?(n=t.stateNode,r=t.memoizedProps,n[su]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[su]=t,t.stateNode=n)}return null;case 13:return jr(Kr),n=t.memoizedState,(t.flags&64)!==0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&kg(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Kr.current&1)!==0?Mn===0&&(Mn=3):((Mn===0||Mn===3)&&(Mn=4),Zn===null||($h&134217727)===0&&(xc&134217727)===0||zf(Zn,Wn))),(n||r)&&(t.flags|=4),null);case 4:return ec(),v2(t),e===null&&xM(t.stateNode.containerInfo),null;case 10:return yE(t),null;case 17:return ci(t.type)&&e0(),null;case 19:if(jr(Kr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)Jd(n,!1);else{if(Mn!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(o=o0(e),o!==null){for(t.flags|=64,Jd(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 Qr(Kr,Kr.current&1|2),t.child}e=e.sibling}n.tail!==null&&jn()>x2&&(t.flags|=64,a=!0,Jd(n,!1),t.lanes=33554432)}else{if(!a)if(e=o0(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Jd(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Na)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*jn()-n.renderingStartTime>x2&&r!==1073741824&&(t.flags|=64,a=!0,Jd(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=jn(),r.sibling=null,t=Kr.current,Qr(Kr,a?t&1|2:t&1),r):null;case 23:case 24:return PE(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(gt(156,t.tag))}function ez(e){switch(e.tag){case 1:ci(e.type)&&e0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ec(),jr(fi),jr(Gn),xE(),t=e.flags,(t&64)!==0)throw Error(gt(285));return e.flags=t&-4097|64,e;case 5:return wE(e),null;case 13:return jr(Kr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return jr(Kr),null;case 4:return ec(),null;case 10:return yE(e),null;case 23:case 24:return PE(),null;default:return null}}function TE(e,t){try{var r="",n=t;do r+=D8(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 g2(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var tz=typeof WeakMap=="function"?WeakMap:Map;function ZM(e,t,r){r=yu(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){p0||(p0=!0,_2=n),g2(e,t)},r}function JM(e,t,r){r=yu(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return g2(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this),g2(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var rz=typeof WeakSet=="function"?WeakSet:Set;function e3(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){_u(e,r)}else t.current=null}function nz(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:oa(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&hE(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(gt(163))}function iz(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&&(lD(r,e),dz(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:oa(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&FT(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}FT(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&EM(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&&nM(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(gt(163))}function t3(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=Hk("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 r3(e,t){if(Ul&&typeof Ul.onCommitFiberUnmount=="function")try{Ul.onCommitFiberUnmount(vE,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)lD(t,r);else{n=t;try{i()}catch(a){_u(n,a)}}r=r.next}while(r!==e)}break;case 1:if(e3(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){_u(t,a)}break;case 5:e3(t);break;case 4:eD(e,t)}}function n3(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 i3(e){return e.tag===5||e.tag===3||e.tag===4}function a3(e){e:{for(var t=e.return;t!==null;){if(i3(t))break e;t=t.return}throw Error(gt(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(gt(161))}r.flags&16&&(nh(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||i3(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?m2(e,r,t):y2(e,r,t)}function m2(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=Zm));else if(n!==4&&(e=e.child,e!==null))for(m2(e,t,r),e=e.sibling;e!==null;)m2(e,t,r),e=e.sibling}function y2(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(y2(e,t,r),e=e.sibling;e!==null;)y2(e,t,r),e=e.sibling}function eD(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(gt(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,u=r,s=u;;)if(r3(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,u=r.stateNode,o.nodeType===8?o.parentNode.removeChild(u):o.removeChild(u)):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(r3(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 Bb(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[Jm]=n,e==="input"&&n.type==="radio"&&n.name!=null&&jk(r,n),K_(e,i),t=K_(e,n),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];o==="style"?Vk(r,u):o==="dangerouslySetInnerHTML"?qk(r,u):o==="children"?nh(r,u):VS(r,o,u,t)}switch(e){case"input":W_(r,n);break;case"textarea":Wk(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?Df(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?Df(r,!!n.multiple,n.defaultValue,!0):Df(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(gt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,nM(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(IE=jn(),t3(t.child,!0)),o3(t);return;case 19:o3(t);return;case 17:return;case 23:case 24:t3(t,t.memoizedState!==null);return}throw Error(gt(163))}function o3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new rz),t.forEach(function(n){var i=vz.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function az(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var oz=Math.ceil,d0=us.ReactCurrentDispatcher,RE=us.ReactCurrentOwner,or=0,Zn=null,mn=null,Wn=0,Xl=0,b2=$u(0),Mn=0,Ey=null,wc=0,$h=0,xc=0,OE=0,w2=null,IE=0,x2=1/0;function _c(){x2=jn()+500}var Wt=null,p0=!1,_2=null,Ma=null,Ou=!1,Wp=null,Ep=90,S2=[],E2=[],mo=null,Gp=0,A2=null,Om=-1,co=0,Im=0,qp=null,Pm=!1;function Si(){return(or&48)!==0?jn():Om!==-1?Om:Om=jn()}function wu(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return Jf()===99?1:2;if(co===0&&(co=wc),V$.transition!==0){Im!==0&&(Im=w2!==null?w2.pendingLanes:0),e=co;var t=4186112&~Im;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Jf(),(or&4)!==0&&e===98?e=Km(12,co):(e=K8(e),e=Km(e,co)),e}function xu(e,t,r){if(50<Gp)throw Gp=0,A2=null,Error(gt(185));if(e=Ay(e,t),e===null)return null;my(e,t,r),e===Zn&&(xc|=t,Mn===4&&zf(e,Wn));var n=Jf();t===1?(or&8)!==0&&(or&48)===0?C2(e):(Gi(e,r),or===0&&(_c(),Ua())):((or&4)===0||n!==98&&n!==99||(mo===null?mo=new Set([e]):mo.add(e)),Gi(e,r)),w2=e}function Ay(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 Gi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-Tu(o),s=1<<u,f=a[u];if(f===-1){if((s&n)===0||(s&i)!==0){f=t,gf(s);var d=zr;a[u]=10<=d?f+250:6<=d?f+5e3:-1}}else f<=t&&(e.expiredLanes|=s);o&=~s}if(n=uh(e,e===Zn?Wn:0),t=zr,n===0)r!==null&&(r!==Mb&&u2(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Mb&&u2(r)}t===15?(r=C2.bind(null,e),fo===null?(fo=[r],Rm=gE(_y,kM)):fo.push(r),r=Mb):t===14?r=ch(99,C2.bind(null,e)):(r=Q8(t),r=ch(r,tD.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function tD(e){if(Om=-1,Im=co=0,(or&48)!==0)throw Error(gt(327));var t=e.callbackNode;if(zu()&&e.callbackNode!==t)return null;var r=uh(e,e===Zn?Wn:0);if(r===0)return null;var n=r,i=or;or|=16;var a=aD();(Zn!==e||Wn!==n)&&(_c(),Uf(e,n));do try{sz();break}catch(u){iD(e,u)}while(1);if(mE(),d0.current=a,or=i,mn!==null?n=0:(Zn=null,Wn=0,n=Mn),(wc&xc)!==0)Uf(e,0);else if(n!==0){if(n===2&&(or|=64,e.hydrate&&(e.hydrate=!1,hE(e.containerInfo)),r=fM(e),r!==0&&(n=Ap(e,r))),n===1)throw t=Ey,Uf(e,0),zf(e,r),Gi(e,jn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(gt(345));case 2:Al(e);break;case 3:if(zf(e,r),(r&62914560)===r&&(n=IE+500-jn(),10<n)){if(uh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Si(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=TT(Al.bind(null,e),n);break}Al(e);break;case 4:if(zf(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Tu(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oz(r/1960))-r,10<r){e.timeoutHandle=TT(Al.bind(null,e),r);break}Al(e);break;case 5:Al(e);break;default:throw Error(gt(329))}}return Gi(e,jn()),e.callbackNode===t?tD.bind(null,e):null}function zf(e,t){for(t&=~OE,t&=~xc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Tu(t),n=1<<r;e[r]=-1,t&=~n}}function C2(e){if((or&48)!==0)throw Error(gt(327));if(zu(),e===Zn&&(e.expiredLanes&Wn)!==0){var t=Wn,r=Ap(e,t);(wc&xc)!==0&&(t=uh(e,t),r=Ap(e,t))}else t=uh(e,0),r=Ap(e,t);if(e.tag!==0&&r===2&&(or|=64,e.hydrate&&(e.hydrate=!1,hE(e.containerInfo)),t=fM(e),t!==0&&(r=Ap(e,t))),r===1)throw r=Ey,Uf(e,0),zf(e,t),Gi(e,jn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Al(e),Gi(e,jn()),null}function uz(){if(mo!==null){var e=mo;mo=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Gi(t,jn())})}Ua()}function rD(e,t){var r=or;or|=1;try{return e(t)}finally{or=r,or===0&&(_c(),Ua())}}function nD(e,t){var r=or;or&=-2,or|=8;try{return e(t)}finally{or=r,or===0&&(_c(),Ua())}}function Dg(e,t){Qr(b2,Xl),Xl|=t,wc|=t}function PE(){Xl=b2.current,jr(b2)}function Uf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,U$(r)),mn!==null)for(r=mn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&e0();break;case 3:ec(),jr(fi),jr(Gn),xE();break;case 5:wE(n);break;case 4:ec();break;case 13:jr(Kr);break;case 19:jr(Kr);break;case 10:yE(n);break;case 23:case 24:PE()}r=r.return}Zn=e,mn=Iu(e.current,null),Wn=Xl=wc=t,Mn=0,Ey=null,OE=xc=$h=0}function iD(e,t){do{var r=mn;try{if(mE(),Up.current=c0,u0){for(var n=en.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}u0=!1}if(vh=0,kn=Un=en=null,jp=!1,RE.current=null,r===null||r.return===null){Mn=1,Ey=t,mn=null;break}e:{var a=e,o=r.return,u=r,s=t;if(t=Wn,u.flags|=2048,u.firstEffect=u.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=s;if((u.mode&2)===0){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var v=(Kr.current&1)!==0,h=o;do{var g;if(g=h.tag===13){var _=h.memoizedState;if(_!==null)g=_.dehydrated!==null;else{var A=h.memoizedProps;g=A.fallback===void 0?!1:A.unstable_avoidThisFallback!==!0?!0:!v}}if(g){var b=h.updateQueue;if(b===null){var w=new Set;w.add(f),h.updateQueue=w}else b.add(f);if((h.mode&2)===0){if(h.flags|=64,u.flags|=16384,u.flags&=-2981,u.tag===1)if(u.alternate===null)u.tag=17;else{var S=yu(-1,1);S.tag=2,bu(u,S)}u.lanes|=1;break e}s=void 0,u=t;var E=a.pingCache;if(E===null?(E=a.pingCache=new tz,s=new Set,E.set(f,s)):(s=E.get(f),s===void 0&&(s=new Set,E.set(f,s))),!s.has(u)){s.add(u);var R=hz.bind(null,a,f,u);f.then(R,R)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);s=Error((Mf(u.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.`)}Mn!==5&&(Mn=2),s=TE(s,u),h=o;do{switch(h.tag){case 3:a=s,h.flags|=4096,t&=-t,h.lanes|=t;var M=ZM(h,a,t);DT(h,M);break e;case 1:a=s;var D=h.type,z=h.stateNode;if((h.flags&64)===0&&(typeof D.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Ma===null||!Ma.has(z)))){h.flags|=4096,t&=-t,h.lanes|=t;var N=JM(h,a,t);DT(h,N);break e}}h=h.return}while(h!==null)}uD(r)}catch(L){t=L,mn===r&&r!==null&&(mn=r=r.return);continue}break}while(1)}function aD(){var e=d0.current;return d0.current=c0,e===null?c0:e}function Ap(e,t){var r=or;or|=16;var n=aD();Zn===e&&Wn===t||Uf(e,t);do try{lz();break}catch(i){iD(e,i)}while(1);if(mE(),or=r,d0.current=n,mn!==null)throw Error(gt(261));return Zn=null,Wn=0,Mn}function lz(){for(;mn!==null;)oD(mn)}function sz(){for(;mn!==null&&!G$();)oD(mn)}function oD(e){var t=sD(e.alternate,e,Xl);e.memoizedProps=e.pendingProps,t===null?uD(e):mn=t,RE.current=null}function uD(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=J$(r,t,Xl),r!==null){mn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(Xl&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=ez(t),r!==null){r.flags&=2047,mn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){mn=t;return}mn=t=e}while(t!==null);Mn===0&&(Mn=5)}function Al(e){var t=Jf();return Yl(99,fz.bind(null,e,t)),null}function fz(e,t){do zu();while(Wp!==null);if((or&48)!==0)throw Error(gt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(gt(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,u=e.expirationTimes;0<a;){var s=31-Tu(a),f=1<<s;i[s]=0,o[s]=-1,u[s]=-1,a&=~f}if(mo!==null&&(n&24)===0&&mo.has(e)&&mo.delete(e),e===Zn&&(mn=Zn=null,Wn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=or,or|=32,RE.current=null,Ib=Em,o=wT(),r2(o)){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(f=u.getSelection&&u.getSelection())&&f.rangeCount!==0){u=f.anchorNode,a=f.anchorOffset,s=f.focusNode,f=f.focusOffset;try{u.nodeType,s.nodeType}catch{u=null;break e}var d=0,v=-1,h=-1,g=0,_=0,A=o,b=null;t:for(;;){for(var w;A!==u||a!==0&&A.nodeType!==3||(v=d+a),A!==s||f!==0&&A.nodeType!==3||(h=d+f),A.nodeType===3&&(d+=A.nodeValue.length),(w=A.firstChild)!==null;)b=A,A=w;for(;;){if(A===o)break t;if(b===u&&++g===a&&(v=d),b===s&&++_===f&&(h=d),(w=A.nextSibling)!==null)break;A=b,b=A.parentNode}A=w}u=v===-1||h===-1?null:{start:v,end:h}}else u=null;u=u||{start:0,end:0}}else u=null;Pb={focusedElem:o,selectionRange:u},Em=!1,qp=null,Pm=!1,Wt=n;do try{cz()}catch(L){if(Wt===null)throw Error(gt(330));_u(Wt,L),Wt=Wt.nextEffect}while(Wt!==null);qp=null,Wt=n;do try{for(o=e;Wt!==null;){var S=Wt.flags;if(S&16&&nh(Wt.stateNode,""),S&128){var E=Wt.alternate;if(E!==null){var R=E.ref;R!==null&&(typeof R=="function"?R(null):R.current=null)}}switch(S&1038){case 2:a3(Wt),Wt.flags&=-3;break;case 6:a3(Wt),Wt.flags&=-3,Bb(Wt.alternate,Wt);break;case 1024:Wt.flags&=-1025;break;case 1028:Wt.flags&=-1025,Bb(Wt.alternate,Wt);break;case 4:Bb(Wt.alternate,Wt);break;case 8:u=Wt,eD(o,u);var M=u.alternate;n3(u),M!==null&&n3(M)}Wt=Wt.nextEffect}}catch(L){if(Wt===null)throw Error(gt(330));_u(Wt,L),Wt=Wt.nextEffect}while(Wt!==null);if(R=Pb,E=wT(),S=R.focusedElem,o=R.selectionRange,E!==S&&S&&S.ownerDocument&&yM(S.ownerDocument.documentElement,S)){for(o!==null&&r2(S)&&(E=o.start,R=o.end,R===void 0&&(R=E),"selectionStart"in S?(S.selectionStart=E,S.selectionEnd=Math.min(R,S.value.length)):(R=(E=S.ownerDocument||document)&&E.defaultView||window,R.getSelection&&(R=R.getSelection(),u=S.textContent.length,M=Math.min(o.start,u),o=o.end===void 0?M:Math.min(o.end,u),!R.extend&&M>o&&(u=o,o=M,M=u),u=bT(S,M),a=bT(S,o),u&&a&&(R.rangeCount!==1||R.anchorNode!==u.node||R.anchorOffset!==u.offset||R.focusNode!==a.node||R.focusOffset!==a.offset)&&(E=E.createRange(),E.setStart(u.node,u.offset),R.removeAllRanges(),M>o?(R.addRange(E),R.extend(a.node,a.offset)):(E.setEnd(a.node,a.offset),R.addRange(E)))))),E=[],R=S;R=R.parentNode;)R.nodeType===1&&E.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<E.length;S++)R=E[S],R.element.scrollLeft=R.left,R.element.scrollTop=R.top}Em=!!Ib,Pb=Ib=null,e.current=r,Wt=n;do try{for(S=e;Wt!==null;){var D=Wt.flags;if(D&36&&iz(S,Wt.alternate,Wt),D&128){E=void 0;var z=Wt.ref;if(z!==null){var N=Wt.stateNode;switch(Wt.tag){case 5:E=N;break;default:E=N}typeof z=="function"?z(E):z.current=E}}Wt=Wt.nextEffect}}catch(L){if(Wt===null)throw Error(gt(330));_u(Wt,L),Wt=Wt.nextEffect}while(Wt!==null);Wt=null,H$(),or=i}else e.current=r;if(Ou)Ou=!1,Wp=e,Ep=t;else for(Wt=n;Wt!==null;)t=Wt.nextEffect,Wt.nextEffect=null,Wt.flags&8&&(D=Wt,D.sibling=null,D.stateNode=null),Wt=t;if(n=e.pendingLanes,n===0&&(Ma=null),n===1?e===A2?Gp++:(Gp=0,A2=e):Gp=0,r=r.stateNode,Ul&&typeof Ul.onCommitFiberRoot=="function")try{Ul.onCommitFiberRoot(vE,r,void 0,(r.current.flags&64)===64)}catch{}if(Gi(e,jn()),p0)throw p0=!1,e=_2,_2=null,e;return(or&8)!==0||Ua(),null}function cz(){for(;Wt!==null;){var e=Wt.alternate;Pm||qp===null||((Wt.flags&8)!==0?aT(Wt,qp)&&(Pm=!0):Wt.tag===13&&az(e,Wt)&&aT(Wt,qp)&&(Pm=!0));var t=Wt.flags;(t&256)!==0&&nz(e,Wt),(t&512)===0||Ou||(Ou=!0,ch(97,function(){return zu(),null})),Wt=Wt.nextEffect}}function zu(){if(Ep!==90){var e=97<Ep?97:Ep;return Ep=90,Yl(e,pz)}return!1}function dz(e,t){S2.push(t,e),Ou||(Ou=!0,ch(97,function(){return zu(),null}))}function lD(e,t){E2.push(t,e),Ou||(Ou=!0,ch(97,function(){return zu(),null}))}function pz(){if(Wp===null)return!1;var e=Wp;if(Wp=null,(or&48)!==0)throw Error(gt(331));var t=or;or|=32;var r=E2;E2=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(gt(330));_u(a,s)}}for(r=S2,S2=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var u=i.create;i.destroy=u()}catch(s){if(a===null)throw Error(gt(330));_u(a,s)}}for(u=e.current.firstEffect;u!==null;)e=u.nextEffect,u.nextEffect=null,u.flags&8&&(u.sibling=null,u.stateNode=null),u=e;return or=t,Ua(),!0}function u3(e,t,r){t=TE(r,t),t=ZM(e,t,1),bu(e,t),t=Si(),e=Ay(e,1),e!==null&&(my(e,1,t),Gi(e,t))}function _u(e,t){if(e.tag===3)u3(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){u3(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ma===null||!Ma.has(n))){e=TE(t,e);var i=JM(r,e,1);if(bu(r,i),i=Si(),r=Ay(r,1),r!==null)my(r,1,i),Gi(r,i);else if(typeof n.componentDidCatch=="function"&&(Ma===null||!Ma.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function hz(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Si(),e.pingedLanes|=e.suspendedLanes&r,Zn===e&&(Wn&r)===r&&(Mn===4||Mn===3&&(Wn&62914560)===Wn&&500>jn()-IE?Uf(e,0):OE|=r),Gi(e,t)}function vz(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=Jf()===99?1:2:(co===0&&(co=wc),t=mf(62914560&~co),t===0&&(t=4194304))),r=Si(),e=Ay(e,t),e!==null&&(my(e,t,r),Gi(e,r))}var sD;sD=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||fi.current)ua=!0;else if((r&n)!==0)ua=(e.flags&16384)!==0;else{switch(ua=!1,t.tag){case 3:VT(t),Fb();break;case 5:BT(t);break;case 1:ci(t.type)&&Tm(t);break;case 4:f2(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Qr(t0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?YT(e,t,r):(Qr(Kr,Kr.current&1),t=vo(e,t,r),t!==null?t.sibling:null);Qr(Kr,Kr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return JT(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Qr(Kr,Kr.current),n)break;return null;case 23:case 24:return t.lanes=0,Nb(e,t,r)}return vo(e,t,r)}else ua=!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=Zf(t,Gn.current),Bf(t,r),i=SE(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;Tm(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,bE(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&i0(t,n,o,e),i.updater=Sy,t.stateNode=i,i._reactInternals=t,s2(t,n,e,r),t=h2(null,t,n,!0,a,r)}else t.tag=0,li(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=mz(i),e=oa(i,e),a){case 0:t=p2(null,t,i,e,r);break e;case 1:t=HT(null,t,i,e,r);break e;case 11:t=GT(null,t,i,e,r);break e;case 14:t=qT(null,t,i,oa(i.type,e),n,r);break e}throw Error(gt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oa(n,i),p2(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oa(n,i),HT(e,t,n,i,r);case 3:if(VT(t),n=t.updateQueue,e===null||n===null)throw Error(gt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,DM(e,t),dh(t,n,null,r),n=t.memoizedState.element,n===i)Fb(),t=vo(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(fu=Lf(t.stateNode.containerInfo.firstChild),ho=t,a=Na=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],$f.push(a);for(r=BM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else li(e,t,n,r),Fb();t=t.child}return t;case 5:return BT(t),e===null&&c2(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,a2(n,i)?o=null:a!==null&&a2(n,a)&&(t.flags|=16),YM(e,t),li(e,t,o,r),t.child;case 6:return e===null&&c2(t),null;case 13:return YT(e,t,r);case 4:return f2(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=a0(t,null,n,r):li(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oa(n,i),GT(e,t,n,i,r);case 7:return li(e,t,t.pendingProps,r),t.child;case 8:return li(e,t,t.pendingProps.children,r),t.child;case 12:return li(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 u=t.type._context;if(Qr(t0,u._currentValue),u._currentValue=a,o!==null)if(u=o.value,a=Ni(u,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(u,a):1073741823)|0,a===0){if(o.children===i.children&&!fi.current){t=vo(e,t,r);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var s=u.dependencies;if(s!==null){o=u.child;for(var f=s.firstContext;f!==null;){if(f.context===n&&(f.observedBits&a)!==0){u.tag===1&&(f=yu(-1,r&-r),f.tag=2,bu(u,f)),u.lanes|=r,f=u.alternate,f!==null&&(f.lanes|=r),MM(u.return,r),s.lanes|=r;break}f=f.next}}else o=u.tag===10&&u.type===t.type?null:u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}li(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,Bf(t,r),i=Wi(i,a.unstable_observedBits),n=n(i),t.flags|=1,li(e,t,n,r),t.child;case 14:return i=t.type,a=oa(i,t.pendingProps),a=oa(i.type,a),qT(e,t,i,a,n,r);case 15:return VM(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oa(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ci(n)?(e=!0,Tm(t)):e=!1,Bf(t,r),NM(t,n,i),s2(t,n,i,r),h2(null,t,n,!0,e,r);case 19:return JT(e,t,r);case 23:return Nb(e,t,r);case 24:return Nb(e,t,r)}throw Error(gt(156,t.tag))};function gz(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 Li(e,t,r,n){return new gz(e,t,r,n)}function kE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mz(e){if(typeof e=="function")return kE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hy)return 11;if(e===vy)return 14}return 2}function Iu(e,t){var r=e.alternate;return r===null?(r=Li(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 km(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")kE(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ou:return jf(r.children,i,a,t);case $k:o=8,i|=16;break;case YS:o=8,i|=1;break;case Dp:return e=Li(12,r,t,i|8),e.elementType=Dp,e.type=Dp,e.lanes=a,e;case Fp:return e=Li(13,r,t,i),e.type=Fp,e.elementType=Fp,e.lanes=a,e;case Hm:return e=Li(19,r,t,i),e.elementType=Hm,e.lanes=a,e;case eE:return ME(r,i,a,t);case U_:return e=Li(24,r,t,i),e.elementType=U_,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case XS:o=10;break e;case KS:o=9;break e;case hy:o=11;break e;case vy:o=14;break e;case QS:o=16,n=null;break e;case ZS:o=22;break e}throw Error(gt(130,e==null?e:typeof e,""))}return t=Li(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function jf(e,t,r,n){return e=Li(7,e,n,t),e.lanes=r,e}function ME(e,t,r,n){return e=Li(23,e,n,t),e.elementType=eE,e.lanes=r,e}function $b(e,t,r){return e=Li(6,e,null,t),e.lanes=r,e}function zb(e,t,r){return t=Li(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yz(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=Sb(0),this.expirationTimes=Sb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sb(0),this.mutableSourceEagerHydrationData=null}function bz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kl,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function h0(e,t,r,n){var i=t.current,a=Si(),o=wu(i);e:if(r){r=r._reactInternals;t:{if(ls(r)!==r||r.tag!==1)throw Error(gt(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ci(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(u!==null);throw Error(gt(171))}if(r.tag===1){var s=r.type;if(ci(s)){r=CM(r,s,u);break e}}r=u}else r=Ru;return t.context===null?t.context=r:t.pendingContext=r,t=yu(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),bu(i,t),xu(i,o,a),o}function Ub(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 l3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function DE(e,t){l3(e,t),(e=e.alternate)&&l3(e,t)}function wz(){return null}function FE(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new yz(e,t,r!=null&&r.hydrate===!0),t=Li(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,bE(t),e[bc]=r.current,xM(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}FE.prototype.render=function(e){h0(e,this._internalRoot,null,null)};FE.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;h0(null,e,null,function(){t[bc]=null})};function zh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xz(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 FE(e,0,t?{hydrate:!0}:void 0)}function Cy(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var u=i;i=function(){var f=Ub(o);u.call(f)}}h0(t,o,e,i)}else{if(a=r._reactRootContainer=xz(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var f=Ub(o);s.call(f)}}nD(function(){h0(t,o,e,i)})}return Ub(o)}eM=function(e){if(e.tag===13){var t=Si();xu(e,4,t),DE(e,4)}};aE=function(e){if(e.tag===13){var t=Si();xu(e,67108864,t),DE(e,67108864)}};tM=function(e){if(e.tag===13){var t=Si(),r=wu(e);xu(e,r,t),DE(e,r)}};rM=function(e,t){return t()};Q_=function(e,t,r){switch(t){case"input":if(W_(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=xy(n);if(!i)throw Error(gt(90));Uk(n),W_(n,i)}}}break;case"textarea":Wk(e,r);break;case"select":t=r.value,t!=null&&Df(e,!!r.multiple,t,!1)}};rE=rD;Kk=function(e,t,r,n,i){var a=or;or|=4;try{return Yl(98,e.bind(null,t,r,n,i))}finally{or=a,or===0&&(_c(),Ua())}};nE=function(){(or&49)===0&&(uz(),zu())};Qk=function(e,t){var r=or;or|=2;try{return e(t)}finally{or=r,or===0&&(_c(),Ua())}};function fD(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zh(t))throw Error(gt(200));return bz(e,t,null,r)}var _z={Events:[Lh,Cf,xy,Yk,Xk,zu,{current:!1}]},ep={findFiberByHostInstance:Dl,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Sz={bundleType:ep.bundleType,version:ep.version,rendererPackageName:ep.rendererPackageName,rendererConfig:ep.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:us.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jk(e),e===null?null:e.stateNode},findFiberByHostInstance:ep.findFiberByHostInstance||wz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fg.isDisabled&&Fg.supportsFiber)try{vE=Fg.inject(Sz),Ul=Fg}catch{}}Hi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_z;Hi.createPortal=fD;Hi.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(gt(188)):Error(gt(268,Object.keys(e)));return e=Jk(t),e=e===null?null:e.stateNode,e};Hi.flushSync=function(e,t){var r=or;if((r&48)!==0)return e(t);or|=1;try{if(e)return Yl(99,e.bind(null,t))}finally{or=r,Ua()}};Hi.hydrate=function(e,t,r){if(!zh(t))throw Error(gt(200));return Cy(null,e,t,!0,r)};Hi.render=function(e,t,r){if(!zh(t))throw Error(gt(200));return Cy(null,e,t,!1,r)};Hi.unmountComponentAtNode=function(e){if(!zh(e))throw Error(gt(40));return e._reactRootContainer?(nD(function(){Cy(null,null,e,!1,function(){e._reactRootContainer=null,e[bc]=null})}),!0):!1};Hi.unstable_batchedUpdates=rD;Hi.unstable_createPortal=function(e,t){return fD(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Hi.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!zh(r))throw Error(gt(200));if(e==null||e._reactInternals===void 0)throw Error(gt(38));return Cy(e,t,r,!1,n)};Hi.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=Hi})($S);const Cp=BS($S.exports);var yr={exports:{}},Ez="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Az=Ez,Cz=Az;function cD(){}function dD(){}dD.resetWarningCache=cD;var Tz=function(){function e(n,i,a,o,u,s){if(s!==Cz){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:dD,resetWarningCache:cD};return r.PropTypes=r,r};yr.exports=Tz();var Rz=function(){},Oz=Rz(),Ao=function(e){return e!==Oz&&e!==null},Iz=Ao,Pz=Array.prototype.forEach,kz=Object.create,Mz=function(e,t){var r;for(r in e)t[r]=e[r]},NE=function(e){var t=kz(null);return Pz.call(arguments,function(r){!Iz(r)||Mz(Object(r),t)}),t},Dz=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},jb,s3;function Fz(){return s3||(s3=1,jb=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),jb}var Nz=Dz()?Math.sign:Fz(),Lz=Nz,Bz=Math.abs,$z=Math.floor,zz=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:Lz(e)*$z(Bz(e)))},Uz=zz,jz=Math.max,fs=function(e){return jz(0,Uz(e))},Wz=fs,pD=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:Wz(e)},ja=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Gz=Ao,da=function(e){if(!Gz(e))throw new TypeError("Cannot use null or undefined");return e},qz=ja,Hz=da,Vz=Function.prototype.bind,f3=Function.prototype.call,Yz=Object.keys,Xz=Object.prototype.propertyIsEnumerable,Kz=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Hz(r)),qz(n),i=Yz(r),o&&i.sort(typeof o=="function"?Vz.call(o,r):void 0),typeof e!="function"&&(e=i[e]),f3.call(e,i,function(u,s){return Xz.call(r,u)?f3.call(n,a,r[u],u,r,s):t})}},Ty=Kz("forEach"),cs={},hD={exports:{}},Qz=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")},Wb,c3;function Zz(){return c3||(c3=1,Wb=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Wb}var Gb,d3;function Jz(){if(d3)return Gb;d3=1;var e=Ao,t=Object.keys;return Gb=function(r){return t(e(r)?Object(r):r)},Gb}var qb,p3;function e7(){return p3||(p3=1,qb=Zz()()?Object.keys:Jz()),qb}var Hb,h3;function t7(){if(h3)return Hb;h3=1;var e=e7(),t=da,r=Math.max;return Hb=function(n,i){var a,o,u=r(arguments.length,2),s;for(n=Object(t(n)),s=function(f){try{n[f]=i[f]}catch(d){a||(a=d)}},o=1;o<u;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},Hb}var Ry=Qz()?Object.assign:t7(),r7=Ao,n7={function:!0,object:!0},LE=function(e){return r7(e)&&n7[typeof e]||!1};(function(e){var t=Ry,r=LE,n=Ao,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),u=arguments[1],s=arguments[2];return n(s)||r(u)&&(s=u,u=null),n(s)&&t(o,s),n(u)&&(o.code=u),i&&i(o,e.exports),o}})(hD);var v0={exports:{}},Vb,v3;function vD(){if(v3)return Vb;v3=1;var e=da,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return Vb=function(a,o){var u,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){u=d}}),typeof i=="function"&&i(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){u=d}}),u!==void 0)throw u;return a},Vb}var g3=fs,gD=function(e,t){return t},Yb,m3,y3,b3;try{Object.defineProperty(gD,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}gD.length===1?(Yb={configurable:!0,writable:!1,enumerable:!1},m3=Object.defineProperty,v0.exports=function(e,t){return t=g3(t),e.length===t?e:(Yb.value=t,m3(e,"length",Yb))}):(b3=vD(),y3=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); };")}}(),v0.exports=function(e,t){var r;if(t=g3(t),e.length===t)return e;r=y3(t)(e);try{b3(r,e)}catch{}return r});var Vi={exports:{}},i7=void 0,Sc=function(e){return e!==i7&&e!==null},a7=Sc,o7={object:!0,function:!0,undefined:!0},BE=function(e){return a7(e)?hasOwnProperty.call(o7,typeof e):!1},u7=BE,l7=function(e){if(!u7(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},s7=l7,f7=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!s7(e)},c7=f7,d7=/^\s*class[\s{/}]/,p7=Function.prototype.toString,mD=function(e){return!(!c7(e)||d7.test(p7.call(e)))},Xb="razdwatrzy",h7=function(){return typeof Xb.contains!="function"?!1:Xb.contains("dwa")===!0&&Xb.contains("foo")===!1},Kb,w3;function v7(){if(w3)return Kb;w3=1;var e=String.prototype.indexOf;return Kb=function(t){return e.call(this,t,arguments[1])>-1},Kb}var yD=h7()?String.prototype.contains:v7(),Mm=Sc,x3=mD,bD=Ry,wD=NE,Hp=yD,g7=Vi.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],Mm(e)?(r=Hp.call(e,"c"),n=Hp.call(e,"e"),i=Hp.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?bD(wD(a),o):o};g7.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],Mm(t)?x3(t)?Mm(r)?x3(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,Mm(e)?(n=Hp.call(e,"c"),i=Hp.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?bD(wD(a),o):o};var T2={exports:{}};(function(e,t){var r=Vi.exports,n=ja,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,u=Object.defineProperty,s=Object.defineProperties,f=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},v,h,g,_,A,b,w;v=function(S,E){var R;return n(E),f.call(this,"__ee__")?R=this.__ee__:(R=d.value=o(null),u(this,"__ee__",d),d.value=null),R[S]?typeof R[S]=="object"?R[S].push(E):R[S]=[R[S],E]:R[S]=E,this},h=function(S,E){var R,M;return n(E),M=this,v.call(this,S,R=function(){g.call(M,S,R),i.call(E,this,arguments)}),R.__eeOnceListener__=E,this},g=function(S,E){var R,M,D,z;if(n(E),!f.call(this,"__ee__"))return this;if(R=this.__ee__,!R[S])return this;if(M=R[S],typeof M=="object")for(z=0;D=M[z];++z)(D===E||D.__eeOnceListener__===E)&&(M.length===2?R[S]=M[z?0:1]:M.splice(z,1));else(M===E||M.__eeOnceListener__===E)&&delete R[S];return this},_=function(S){var E,R,M,D,z;if(!!f.call(this,"__ee__")&&(D=this.__ee__[S],!!D))if(typeof D=="object"){for(R=arguments.length,z=new Array(R-1),E=1;E<R;++E)z[E-1]=arguments[E];for(D=D.slice(),E=0;M=D[E];++E)i.call(M,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(R=arguments.length,z=new Array(R-1),E=1;E<R;++E)z[E-1]=arguments[E];i.call(D,this,z)}},A={on:v,once:h,off:g,emit:_},b={on:r(v),once:r(h),off:r(g),emit:r(_)},w=s({},b),e.exports=t=function(S){return S==null?o(w):s(Object(S),b)},t.methods=A})(T2,T2.exports);var Qb,_3;function m7(){return _3||(_3=1,Qb=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"))}),Qb}var Zb,S3;function y7(){return S3||(S3=1,Zb=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),Zb}var Jb,E3;function b7(){if(E3)return Jb;E3=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 Jb=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__}}(),Jb}var ew,A3;function Oy(){return A3||(A3=1,ew=y7()()?globalThis:b7()),ew}var tw,C3;function w7(){if(C3)return tw;C3=1;var e=Oy(),t={object:!0,symbol:!0};return tw=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])},tw}var rw,T3;function x7(){return T3||(T3=1,rw=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),rw}var nw,R3;function xD(){if(R3)return nw;R3=1;var e=x7();return nw=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},nw}var iw,O3;function _7(){if(O3)return iw;O3=1;var e=Vi.exports,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return iw=function(a){for(var o=0,u,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,u="@@"+a,r(n,u,e.gs(null,function(f){s||(s=!0,r(this,u,e(f)),s=!1)})),u},iw}var aw,I3;function S7(){if(I3)return aw;I3=1;var e=Vi.exports,t=Oy().Symbol;return aw=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"))})},aw}var ow,P3;function E7(){if(P3)return ow;P3=1;var e=Vi.exports,t=xD(),r=Object.create(null);return ow=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})})},ow}var uw,k3;function A7(){if(k3)return uw;k3=1;var e=Vi.exports,t=xD(),r=Oy().Symbol,n=_7(),i=S7(),a=E7(),o=Object.create,u=Object.defineProperties,s=Object.defineProperty,f,d,v;if(typeof r=="function")try{String(r()),v=!0}catch{}else r=null;return d=function(g){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f(g)},uw=f=function h(g){var _;if(this instanceof h)throw new TypeError("Symbol is not a constructor");return v?r(g):(_=o(d.prototype),g=g===void 0?"":String(g),u(_,{__description__:e("",g),__name__:e("",n(g))}))},i(f),a(f),u(d.prototype,{constructor:e(f),toString:e("",function(){return this.__name__})}),u(f.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(f.prototype,f.toPrimitive,e("",function(){var h=t(this);return typeof h=="symbol"?h:h.toString()})),s(f.prototype,f.toStringTag,e("c","Symbol")),s(d.prototype,f.toStringTag,e("c",f.prototype[f.toStringTag])),s(d.prototype,f.toPrimitive,e("c",f.prototype[f.toPrimitive])),uw}var lw,M3;function ds(){return M3||(M3=1,lw=w7()()?Oy().Symbol:A7()),lw}var sw,D3;function Iy(){if(D3)return sw;D3=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return sw=function(r){return e.call(r)===t},sw}var fw,F3;function C7(){if(F3)return fw;F3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return fw=function(r){return typeof r=="function"&&t(e.call(r))},fw}var cw,N3;function Py(){if(N3)return cw;N3=1;var e=Object.prototype.toString,t=e.call("");return cw=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},cw}var dw,L3;function T7(){if(L3)return dw;L3=1;var e=ds().iterator,t=Iy(),r=C7(),n=fs,i=ja,a=da,o=Ao,u=Py(),s=Array.isArray,f=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},v=Object.defineProperty;return dw=function(h){var g=arguments[1],_=arguments[2],A,b,w,S,E,R,M,D,z,N;if(h=Object(a(h)),o(g)&&i(g),!this||this===Array||!r(this)){if(!g){if(t(h))return E=h.length,E!==1?Array.apply(null,h):(S=new Array(1),S[0]=h[0],S);if(s(h)){for(S=new Array(E=h.length),b=0;b<E;++b)S[b]=h[b];return S}}S=[]}else A=this;if(!s(h)){if((z=h[e])!==void 0){for(M=i(z).call(h),A&&(S=new A),D=M.next(),b=0;!D.done;)N=g?f.call(g,_,D.value,b):D.value,A?(d.value=N,v(S,b,d)):S[b]=N,D=M.next(),++b;E=b}else if(u(h)){for(E=h.length,A&&(S=new A),b=0,w=0;b<E;++b)N=h[b],b+1<E&&(R=N.charCodeAt(0),R>=55296&&R<=56319&&(N+=h[++b])),N=g?f.call(g,_,N,w):N,A?(d.value=N,v(S,w,d)):S[w]=N,++w;E=w}}if(E===void 0)for(E=n(h.length),A&&(S=new A(E)),b=0;b<E;++b)N=g?f.call(g,_,h[b],b):h[b],A?(d.value=N,v(S,b,d)):S[b]=N;return A&&(d.value=null,S.length=E),S},dw}var pw,B3;function ky(){return B3||(B3=1,pw=m7()()?Array.from:T7()),pw}var R7=ky(),O7=Array.isArray,I7=function(e){return O7(e)?e:R7(e)},P7=I7,k7=Ao,M7=ja,D7=Array.prototype.slice,_D;_D=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(D7.call(e,this.length))};var F7=function(e){return e=P7(e),e.forEach(function(t){k7(t)&&M7(t)}),_D.bind(e)},Ng=ja,N7=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Ng(e.get)},e.set!==void 0?(t.set=Ng(e.set),e.delete&&(t.delete=Ng(e.delete)),e.clear&&(t.clear=Ng(e.clear)),t):(t.set=t.get,t))},Lg=hD.exports,Bg=v0.exports,tp=Vi.exports,SD=T2.exports.methods,L7=F7,B7=N7,hw=Function.prototype.apply,vw=Function.prototype.call,$3=Object.create,$7=Object.defineProperties,z7=SD.on,U7=SD.emit,j7=function(e,t,r){var n=$3(null),i,a,o,u,s,f,d,v,h,g,_,A,b,w,S;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(g=B7(r.normalizer),o=g.get,u=g.set,s=g.delete,f=g.clear),r.resolvers!=null&&(S=L7(r.resolvers)),o?w=Bg(function(E){var R,M,D=arguments;if(S&&(D=S(D)),R=o(D),R!==null&&hasOwnProperty.call(n,R))return _&&i.emit("get",R,D,this),n[R];if(D.length===1?M=vw.call(e,this,D[0]):M=hw.call(e,this,D),R===null){if(R=o(D),R!==null)throw Lg("Circular invocation","CIRCULAR_INVOCATION");R=u(D)}else if(hasOwnProperty.call(n,R))throw Lg("Circular invocation","CIRCULAR_INVOCATION");return n[R]=M,A&&i.emit("set",R,null,M),M},a):t===0?w=function(){var E;if(hasOwnProperty.call(n,"data"))return _&&i.emit("get","data",arguments,this),n.data;if(arguments.length?E=hw.call(e,this,arguments):E=vw.call(e,this),hasOwnProperty.call(n,"data"))throw Lg("Circular invocation","CIRCULAR_INVOCATION");return n.data=E,A&&i.emit("set","data",null,E),E}:w=function(E){var R,M=arguments,D;if(S&&(M=S(arguments)),D=String(M[0]),hasOwnProperty.call(n,D))return _&&i.emit("get",D,M,this),n[D];if(M.length===1?R=vw.call(e,this,M[0]):R=hw.call(e,this,M),hasOwnProperty.call(n,D))throw Lg("Circular invocation","CIRCULAR_INVOCATION");return n[D]=R,A&&i.emit("set",D,null,R),R},i={original:e,memoized:w,profileName:r.profileName,get:function(E){return S&&(E=S(E)),o?o(E):String(E[0])},has:function(E){return hasOwnProperty.call(n,E)},delete:function(E){var R;!hasOwnProperty.call(n,E)||(s&&s(E),R=n[E],delete n[E],b&&i.emit("delete",E,R))},clear:function(){var E=n;f&&f(),n=$3(null),i.emit("clear",E)},on:function(E,R){return E==="get"?_=!0:E==="set"?A=!0:E==="delete"&&(b=!0),z7.call(this,E,R)},emit:U7,updateEnv:function(){e=i.original}},o?d=Bg(function(E){var R,M=arguments;S&&(M=S(M)),R=o(M),R!==null&&i.delete(R)},a):t===0?d=function(){return i.delete("data")}:d=function(E){return S&&(E=S(arguments)[0]),i.delete(E)},v=Bg(function(){var E,R=arguments;return t===0?n.data:(S&&(R=S(R)),o?E=o(R):E=String(R[0]),n[E])}),h=Bg(function(){var E,R=arguments;return t===0?i.has("data"):(S&&(R=S(R)),o?E=o(R):E=String(R[0]),E===null?!1:i.has(E))}),$7(w,{__memoized__:tp(!0),delete:tp(d),clear:tp(i.clear),_get:tp(v),_has:tp(h)}),i},W7=ja,G7=Ty,z3=cs,q7=j7,H7=pD,V7=function e(t){var r,n,i;if(W7(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=H7(r.length,t.length,r.async&&z3.async),i=q7(t,n,r),G7(z3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},gw,U3;function Y7(){return U3||(U3=1,gw=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),gw}var mw,j3;function X7(){return j3||(j3=1,mw=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),mw}var yw,W3;function K7(){return W3||(W3=1,yw=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),yw}var bw,G3;function Q7(){return G3||(G3=1,bw=function(e){return e!==e}),bw}var ww,q3;function Z7(){return q3||(q3=1,ww=K7()()?Number.isNaN:Q7()),ww}var xw,H3;function $E(){if(H3)return xw;H3=1;var e=Z7(),t=fs,r=da,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return xw=function(u){var s,f,d,v;if(!e(u))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)),s=d;s<f;++s)if(i.call(this,s)&&(v=this[s],e(v)))return s;return-1},xw}var _w,V3;function J7(){if(V3)return _w;V3=1;var e=$E(),t=Object.create;return _w=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,u=n,s,f=a.length;if(f===0)return u[f]||null;if(u=u[f]){for(;o<f-1;){if(s=e.call(u[0],a[o]),s===-1)return null;u=u[1][s],++o}return s=e.call(u[0],a[o]),s===-1?null:u[1][s]||null}return null},set:function(a){var o=0,u=n,s,f=a.length;if(f===0)u[f]=++r;else{for(u[f]||(u[f]=[[],[]]),u=u[f];o<f-1;)s=e.call(u[0],a[o]),s===-1&&(s=u[0].push(a[o])-1,u[1].push([[],[]])),u=u[1][s],++o;s=e.call(u[0],a[o]),s===-1&&(s=u[0].push(a[o])-1),u[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,u=n,s,f=i[a],d=f.length,v=[];if(d===0)delete u[d];else if(u=u[d]){for(;o<d-1;){if(s=e.call(u[0],f[o]),s===-1)return;v.push(u,s),u=u[1][s],++o}if(s=e.call(u[0],f[o]),s===-1)return;for(a=u[1][s],u[0].splice(s,1),u[1].splice(s,1);!u[0].length&&v.length;)s=v.pop(),u=v.pop(),u[0].splice(s,1),u[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},_w}var Sw,Y3;function eU(){if(Y3)return Sw;Y3=1;var e=$E();return Sw=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=[]}}},Sw}var Ew,X3;function tU(){if(X3)return Ew;X3=1;var e=$E(),t=Object.create;return Ew=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var u=0,s=i,f;u<r-1;){if(f=e.call(s[0],o[u]),f===-1)return null;s=s[1][f],++u}return f=e.call(s[0],o[u]),f===-1?null:s[1][f]||null},set:function(o){for(var u=0,s=i,f;u<r-1;)f=e.call(s[0],o[u]),f===-1&&(f=s[0].push(o[u])-1,s[1].push([[],[]])),s=s[1][f],++u;return f=e.call(s[0],o[u]),f===-1&&(f=s[0].push(o[u])-1),s[1][f]=++n,a[n]=o,n},delete:function(o){for(var u=0,s=i,f,d=[],v=a[o];u<r-1;){if(f=e.call(s[0],v[u]),f===-1)return;d.push(s,f),s=s[1][f],++u}if(f=e.call(s[0],v[u]),f!==-1){for(o=s[1][f],s[0].splice(f,1),s[1].splice(f,1);!s[0].length&&d.length;)f=d.pop(),s=d.pop(),s[0].splice(f,1),s[1].splice(f,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},Ew}var K3={},Aw,Q3;function zE(){if(Q3)return Aw;Q3=1;var e=ja,t=Ty,r=Function.prototype.call;return Aw=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(u,s,f,d){a[s]=r.call(i,o,u,s,f,d)}),a},Aw}var Cw,Z3;function UE(){if(Z3)return Cw;Z3=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 u;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){u=a,a=null,u();return}for(n.data=o=++o%2;a;)u=a.shift(),a.length||(a=null),u()}).observe(n,{characterData:!0}),function(u){if(e(u),i){typeof i=="function"?i=[i,u]:i.push(u);return}i=u,n.data=o=++o%2}};return Cw=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}(),Cw}var J3;function rU(){if(J3)return K3;J3=1;var e=ky(),t=zE(),r=vD(),n=v0.exports,i=UE(),a=Array.prototype.slice,o=Function.prototype.apply,u=Object.create;return cs.async=function(s,f){var d=u(null),v=u(null),h=f.memoized,g=f.original,_,A,b;f.memoized=n(function(w){var S=arguments,E=S[S.length-1];return typeof E=="function"&&(_=E,S=a.call(S,0,-1)),h.apply(A=this,b=S)},h);try{r(f.memoized,h)}catch{}f.on("get",function(w){var S,E,R;if(!!_){if(d[w]){typeof d[w]=="function"?d[w]=[d[w],_]:d[w].push(_),_=null;return}S=_,E=A,R=b,_=A=b=null,i(function(){var M;hasOwnProperty.call(v,w)?(M=v[w],f.emit("getasync",w,R,E),o.call(S,M.context,M.args)):(_=S,A=E,b=R,h.apply(E,R))})}}),f.original=function(){var w,S,E,R;return _?(w=e(arguments),S=function M(D){var z,N,L=M.id;if(L==null){i(o.bind(M,this,arguments));return}if(delete M.id,z=d[L],delete d[L],!!z)return N=e(arguments),f.has(L)&&(D?f.delete(L):(v[L]={context:this,args:N},f.emit("setasync",L,typeof z=="function"?1:z.length))),typeof z=="function"?R=o.call(z,this,N):z.forEach(function(ee){R=o.call(ee,this,N)},this),R},E=_,_=A=b=null,w.push(S),R=o.call(g,this,w),S.cb=E,_=S,R):o.call(g,this,arguments)},f.on("set",function(w){if(!_){f.delete(w);return}d[w]?typeof d[w]=="function"?d[w]=[d[w],_.cb]:d[w].push(_.cb):d[w]=_.cb,delete _.cb,_.id=w,_=null}),f.on("delete",function(w){var S;hasOwnProperty.call(d,w)||!v[w]||(S=v[w],delete v[w],f.emit("deleteasync",w,a.call(S.args,1)))}),f.on("clear",function(){var w=v;v=u(null),f.emit("clearasync",t(w,function(S){return a.call(S.args,1)}))})},K3}var eR={},Tw,tR;function nU(){if(tR)return Tw;tR=1;var e=Array.prototype.forEach,t=Object.create;return Tw=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},Tw}var Rw,rR;function ED(){return rR||(rR=1,Rw=function(e){return typeof e=="function"}),Rw}var Ow,nR;function iU(){if(nR)return Ow;nR=1;var e=ED();return Ow=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},Ow}var Iw,iR;function aU(){if(iR)return Iw;iR=1;var e=da,t=iU();return Iw=function(r){return t(e(r))},Iw}var Pw,aR;function oU(){if(aR)return Pw;aR=1;var e=ED();return Pw=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},Pw}var kw,oR;function uU(){if(oR)return kw;oR=1;var e=oU(),t=/[\n\r\u2028\u2029]/g;return kw=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},kw}var $g={exports:{}},uR;function AD(){if(uR)return $g.exports;uR=1,$g.exports=e,$g.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return $g.exports}var lR;function lU(){if(lR)return eR;lR=1;var e=zE(),t=nU(),r=aU(),n=uU(),i=AD(),a=UE(),o=Object.create,u=t("then","then:finally","done","done:finally");return cs.promise=function(s,f){var d=o(null),v=o(null),h=o(null);if(s===!0)s=null;else if(s=r(s),!u[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");f.on("set",function(g,_,A){var b=!1;if(!i(A)){v[g]=A,f.emit("setasync",g,1);return}d[g]=1,h[g]=A;var w=function(M){var D=d[g];if(b)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
|
35
|
+
Consider to rely on 'then' or 'done' mode instead.`);!D||(delete d[g],v[g]=M,f.emit("setasync",g,D))},S=function(){b=!0,d[g]&&(delete d[g],delete h[g],f.delete(g))},E=s;if(E||(E="then"),E==="then"){var R=function(){a(S)};A=A.then(function(M){a(w.bind(this,M))},R),typeof A.finally=="function"&&A.finally(R)}else if(E==="done"){if(typeof A.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");A.done(w,S)}else if(E==="done:finally"){if(typeof A.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof A.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");A.done(w),A.finally(S)}}),f.on("get",function(g,_,A){var b;if(d[g]){++d[g];return}b=h[g];var w=function(){f.emit("getasync",g,_,A)};i(b)?typeof b.done=="function"?b.done(w):b.then(function(){a(w)}):w()}),f.on("delete",function(g){if(delete h[g],d[g]){delete d[g];return}if(!!hasOwnProperty.call(v,g)){var _=v[g];delete v[g],f.emit("deleteasync",g,[_])}}),f.on("clear",function(){var g=v;v=o(null),d=o(null),h=o(null),f.emit("clearasync",e(g,function(_){return[_]}))})},eR}var sR={},fR;function sU(){if(fR)return sR;fR=1;var e=ja,t=Ty,r=cs,n=Function.prototype.apply;return r.dispose=function(i,a,o){var u;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",u=function(s,f){n.call(i,null,f)}),a.on("clearasync",function(s){t(s,function(f,d){u(d,f)})});return}a.on("delete",u=function(s,f){i(f)}),a.on("clear",function(s){t(s,function(f,d){u(d,f)})})},sR}var cR={},Mw,dR;function fU(){return dR||(dR=1,Mw=2147483647),Mw}var Dw,pR;function cU(){if(pR)return Dw;pR=1;var e=fs,t=fU();return Dw=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},Dw}var hR;function dU(){if(hR)return cR;hR=1;var e=ky(),t=Ty,r=UE(),n=AD(),i=cU(),a=cs,o=Function.prototype,u=Math.max,s=Math.min,f=Object.create;return a.maxAge=function(d,v,h){var g,_,A,b;d=i(d),d&&(g=f(null),_=h.async&&a.async||h.promise&&a.promise?"async":"",v.on("set"+_,function(w){g[w]=setTimeout(function(){v.delete(w)},d),typeof g[w].unref=="function"&&g[w].unref(),b&&(b[w]&&b[w]!=="nextTick"&&clearTimeout(b[w]),b[w]=setTimeout(function(){delete b[w]},A),typeof b[w].unref=="function"&&b[w].unref())}),v.on("delete"+_,function(w){clearTimeout(g[w]),delete g[w],b&&(b[w]!=="nextTick"&&clearTimeout(b[w]),delete b[w])}),h.preFetch&&(h.preFetch===!0||isNaN(h.preFetch)?A=.333:A=u(s(Number(h.preFetch),1),0),A&&(b={},A=(1-A)*d,v.on("get"+_,function(w,S,E){b[w]||(b[w]="nextTick",r(function(){var R;b[w]==="nextTick"&&(delete b[w],v.delete(w),h.async&&(S=e(S),S.push(o)),R=v.memoized.apply(E,S),h.promise&&n(R)&&(typeof R.done=="function"?R.done(o,o):R.then(o,o)))}))}))),v.on("clear"+_,function(){t(g,function(w){clearTimeout(w)}),g={},b&&(t(b,function(w){w!=="nextTick"&&clearTimeout(w)}),b={})}))},cR}var vR={},Fw,gR;function pU(){if(gR)return Fw;gR=1;var e=fs,t=Object.create,r=Object.prototype.hasOwnProperty;return Fw=function(n){var i=0,a=1,o=t(null),u=t(null),s=0,f;return n=e(n),{hit:function(d){var v=u[d],h=++s;if(o[h]=d,u[d]=h,!v)return++i,i<=n?void 0:(d=o[a],f(d),d);if(delete o[v],a===v)for(;!r.call(o,++a););},delete:f=function(d){var v=u[d];if(!!v&&(delete o[v],delete u[d],--i,a===v)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),u=t(null),s=0}}},Fw}var mR;function hU(){if(mR)return vR;mR=1;var e=fs,t=pU(),r=cs;return r.max=function(n,i,a){var o,u,s;n=e(n),n&&(u=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(f){f=u.hit(f),f!==void 0&&i.delete(f)}),i.on("get"+o,s),i.on("delete"+o,u.delete),i.on("clear"+o,u.clear))},vR}var yR={},bR;function vU(){if(bR)return yR;bR=1;var e=Vi.exports,t=cs,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var u,s;u=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(f,d){u[f]=d||1}),a.on("get"+s,function(f){++u[f]}),a.on("delete"+s,function(f){delete u[f]}),a.on("clear"+s,function(){u={}}),n(a.memoized,{deleteRef:e(function(){var f=a.get(arguments);return f===null||!u[f]?null:--u[f]?!1:(a.delete(f),!0)}),getRefCount:e(function(){var f=a.get(arguments);return f===null||!u[f]?0:u[f]})})},yR}var gU=NE,mU=pD,yU=V7,lde=function(e){var t=gU(arguments[1]),r;return t.normalizer||(r=t.length=mU(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=Y7():r>1&&(t.normalizer=X7()(r)):r===!1?t.normalizer=J7()():r===1?t.normalizer=eU()():t.normalizer=tU()(r))),t.async&&rU(),t.promise&&lU(),t.dispose&&sU(),t.maxAge&&dU(),t.max&&hU(),t.refCounter&&vU(),yU(e,t)},CD={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 u=r.apply(null,a);u&&n.push(u)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(CD);const sde=CD.exports;var bU="Expected a function",wR=0/0,wU="[object Symbol]",xU=/^\s+|\s+$/g,_U=/^[-+]0x[0-9a-f]+$/i,SU=/^0b[01]+$/i,EU=/^0o[0-7]+$/i,AU=parseInt,CU=typeof _r=="object"&&_r&&_r.Object===Object&&_r,TU=typeof self=="object"&&self&&self.Object===Object&&self,RU=CU||TU||Function("return this")(),OU=Object.prototype,IU=OU.toString,PU=Math.max,kU=Math.min,Nw=function(){return RU.Date.now()};function MU(e,t,r){var n,i,a,o,u,s,f=0,d=!1,v=!1,h=!0;if(typeof e!="function")throw new TypeError(bU);t=xR(t)||0,R2(r)&&(d=!!r.leading,v="maxWait"in r,a=v?PU(xR(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(D){var z=n,N=i;return n=i=void 0,f=D,o=e.apply(N,z),o}function _(D){return f=D,u=setTimeout(w,t),d?g(D):o}function A(D){var z=D-s,N=D-f,L=t-z;return v?kU(L,a-N):L}function b(D){var z=D-s,N=D-f;return s===void 0||z>=t||z<0||v&&N>=a}function w(){var D=Nw();if(b(D))return S(D);u=setTimeout(w,A(D))}function S(D){return u=void 0,h&&n?g(D):(n=i=void 0,o)}function E(){u!==void 0&&clearTimeout(u),f=0,n=s=i=u=void 0}function R(){return u===void 0?o:S(Nw())}function M(){var D=Nw(),z=b(D);if(n=arguments,i=this,s=D,z){if(u===void 0)return _(s);if(v)return u=setTimeout(w,t),g(s)}return u===void 0&&(u=setTimeout(w,t)),o}return M.cancel=E,M.flush=R,M}function R2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function DU(e){return!!e&&typeof e=="object"}function FU(e){return typeof e=="symbol"||DU(e)&&IU.call(e)==wU}function xR(e){if(typeof e=="number")return e;if(FU(e))return wR;if(R2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=R2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(xU,"");var r=SU.test(e);return r||EU.test(e)?AU(e.slice(2),r?2:8):_U.test(e)?wR:+e}var fde=MU;function ir(){return ir=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},ir.apply(this,arguments)}function tc(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 O2(e,t){return O2=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},O2(e,t)}function Uh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,O2(e,t)}function NU(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function LU(e,t){e.classList?e.classList.add(t):NU(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function _R(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function BU(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=_R(e.className,t):e.setAttribute("class",_R(e.className&&e.className.baseVal||"",t))}const SR={disabled:!1},TD=Nn.createContext(null);var RD=function(t){return t.scrollTop},My={exports:{}},jh={};/** @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 $U=Ut.exports,OD=60103;jh.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var ER=Symbol.for;OD=ER("react.element"),jh.Fragment=ER("react.fragment")}var zU=$U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,UU=Object.prototype.hasOwnProperty,jU={key:!0,ref:!0,__self:!0,__source:!0};function ID(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)UU.call(t,n)&&!jU.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:OD,type:e,key:a,ref:o,props:i,_owner:zU.current}}jh.jsx=ID;jh.jsxs=ID;(function(e){e.exports=jh})(My);const cde=My.exports.Fragment,Jn=My.exports.jsx,WU=My.exports.jsxs;var Tp="unmounted",Cl="exited",Tl="entering",yf="entered",I2="exiting",Co=function(e){Uh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,u=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?u?(s=Cl,a.appearStatus=Tl):s=yf:n.unmountOnExit||n.mountOnEnter?s=Tp:s=Cl,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Tp?{status:Cl}: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!==Tl&&o!==yf&&(a=Tl):(o===Tl||o===yf)&&(a=I2)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,u;return a=o=u=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,u=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:u}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Tl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Cp.findDOMNode(this);o&&RD(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cl&&this.setState({status:Tp})},r.performEnter=function(i){var a=this,o=this.props.enter,u=this.context?this.context.isMounting:i,s=this.props.nodeRef?[u]:[Cp.findDOMNode(this),u],f=s[0],d=s[1],v=this.getTimeouts(),h=u?v.appear:v.enter;if(!i&&!o||SR.disabled){this.safeSetState({status:yf},function(){a.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:Tl},function(){a.props.onEntering(f,d),a.onTransitionEnd(h,function(){a.safeSetState({status:yf},function(){a.props.onEntered(f,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),u=this.props.nodeRef?void 0:Cp.findDOMNode(this);if(!a||SR.disabled){this.safeSetState({status:Cl},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:I2},function(){i.props.onExiting(u),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Cl},function(){i.props.onExited(u)})})})},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(u){o&&(o=!1,a.nextCallback=null,i(u))},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:Cp.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!o||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],f=s[0],d=s[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Tp)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 u=tc(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Jn(TD.Provider,{value:null,children:typeof o=="function"?o(i,u):Nn.cloneElement(Nn.Children.only(o),u)})},t}(Nn.Component);Co.contextType=TD;Co.propTypes={};function uf(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uf,onEntering:uf,onEntered:uf,onExit:uf,onExiting:uf,onExited:uf};Co.UNMOUNTED=Tp;Co.EXITED=Cl;Co.ENTERING=Tl;Co.ENTERED=yf;Co.EXITING=I2;const GU=Co;var qU=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return LU(t,n)})},Lw=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return BU(t,n)})},jE=function(e){Uh(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(u,s){var f=n.resolveArguments(u,s),d=f[0],v=f[1];n.removeClasses(d,"exit"),n.addClass(d,v?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(u,s)},n.onEntering=function(u,s){var f=n.resolveArguments(u,s),d=f[0],v=f[1],h=v?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(u,s)},n.onEntered=function(u,s){var f=n.resolveArguments(u,s),d=f[0],v=f[1],h=v?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(u,s)},n.onExit=function(u){var s=n.resolveArguments(u),f=s[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(u)},n.onExiting=function(u){var s=n.resolveArguments(u),f=s[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(u)},n.onExited=function(u){var s=n.resolveArguments(u),f=s[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(u)},n.resolveArguments=function(u,s){return n.props.nodeRef?[n.props.nodeRef.current,u]:[u,s]},n.getClassNames=function(u){var s=n.props.classNames,f=typeof s=="string",d=f&&s?s+"-":"",v=f?""+d+u:s[u],h=f?v+"-active":s[u+"Active"],g=f?v+"-done":s[u+"Done"];return{baseClassName:v,activeClassName:h,doneClassName:g}},n}var r=t.prototype;return r.addClass=function(i,a,o){var u=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),f=s.doneClassName;a==="appear"&&o==="done"&&f&&(u+=" "+f),o==="active"&&i&&RD(i),u&&(this.appliedClasses[a][o]=u,qU(i,u))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],u=o.base,s=o.active,f=o.done;this.appliedClasses[a]={},u&&Lw(i,u),s&&Lw(i,s),f&&Lw(i,f)},r.render=function(){var i=this.props;i.classNames;var a=tc(i,["classNames"]);return Jn(GU,{...a,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},t}(Nn.Component);jE.defaultProps={classNames:""};jE.propTypes={};const dde=jE;function zg(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 Wh=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",HU=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Wh&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function VU(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function YU(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},HU))}}var XU=Wh&&window.Promise,KU=XU?VU:YU;function PD(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ps(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function WE(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Gh(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ps(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:Gh(WE(e))}function kD(e){return e&&e.referenceNode?e.referenceNode:e}var AR=Wh&&!!(window.MSInputMethodContext&&document.documentMode),CR=Wh&&/MSIE 10/.test(navigator.userAgent);function Ec(e){return e===11?AR:e===10?CR:AR||CR}function rc(e){if(!e)return document.documentElement;for(var t=Ec(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&&ps(r,"position")==="static"?rc(r):r}function QU(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||rc(e.firstElementChild)===e}function P2(e){return e.parentNode!==null?P2(e.parentNode):e}function g0(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 QU(o)?o:rc(o);var u=P2(e);return u.host?g0(u.host,t):g0(e,P2(t).host)}function nc(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 ZU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=nc(t,"top"),i=nc(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 TR(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 RR(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Ec(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function MD(e){var t=e.body,r=e.documentElement,n=Ec(10)&&getComputedStyle(r);return{height:RR("Height",t,r,n),width:RR("Width",t,r,n)}}var JU=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e9=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}}(),ic=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Bi=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 Pu(e){return Bi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k2(e){var t={};try{if(Ec(10)){t=e.getBoundingClientRect();var r=nc(e,"top"),n=nc(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"?MD(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,u=a.height||e.clientHeight||i.height,s=e.offsetWidth-o,f=e.offsetHeight-u;if(s||f){var d=ps(e);s-=TR(d,"x"),f-=TR(d,"y"),i.width-=s,i.height-=f}return Pu(i)}function GE(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Ec(10),i=t.nodeName==="HTML",a=k2(e),o=k2(t),u=Gh(e),s=ps(t),f=parseFloat(s.borderTopWidth),d=parseFloat(s.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var v=Pu({top:a.top-o.top-f,left:a.left-o.left-d,width:a.width,height:a.height});if(v.marginTop=0,v.marginLeft=0,!n&&i){var h=parseFloat(s.marginTop),g=parseFloat(s.marginLeft);v.top-=f-h,v.bottom-=f-h,v.left-=d-g,v.right-=d-g,v.marginTop=h,v.marginLeft=g}return(n&&!r?t.contains(u):t===u&&u.nodeName!=="BODY")&&(v=ZU(v,t)),v}function t9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=GE(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:nc(r),u=t?0:nc(r,"left"),s={top:o-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:i,height:a};return Pu(s)}function DD(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ps(e,"position")==="fixed")return!0;var r=WE(e);return r?DD(r):!1}function FD(e){if(!e||!e.parentElement||Ec())return document.documentElement;for(var t=e.parentElement;t&&ps(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function qE(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?FD(e):g0(e,kD(t));if(n==="viewport")a=t9(o,i);else{var u=void 0;n==="scrollParent"?(u=Gh(WE(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):n==="window"?u=e.ownerDocument.documentElement:u=n;var s=GE(u,o,i);if(u.nodeName==="HTML"&&!DD(o)){var f=MD(e.ownerDocument),d=f.height,v=f.width;a.top+=s.top-s.marginTop,a.bottom=d+s.top,a.left+=s.left-s.marginLeft,a.right=v+s.left}else a=s}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 r9(e){var t=e.width,r=e.height;return t*r}function ND(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=qE(r,n,a,i),u={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(u).map(function(h){return Bi({key:h},u[h],{area:r9(u[h])})}).sort(function(h,g){return g.area-h.area}),f=s.filter(function(h){var g=h.width,_=h.height;return g>=r.clientWidth&&_>=r.clientHeight}),d=f.length>0?f[0].key:s[0].key,v=e.split("-")[1];return d+(v?"-"+v:"")}function LD(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?FD(t):g0(t,kD(r));return GE(r,i,n)}function BD(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 m0(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 $D(e,t,r){r=r.split("-")[0];var n=BD(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",u=a?"left":"top",s=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[s]/2-n[s]/2,r===u?i[u]=t[u]-n[f]:i[u]=t[m0(u)],i}function qh(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function n9(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=qh(e,function(i){return i[t]===r});return e.indexOf(n)}function zD(e,t,r){var n=r===void 0?e:e.slice(0,n9(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&&PD(a)&&(t.offsets.popper=Pu(t.offsets.popper),t.offsets.reference=Pu(t.offsets.reference),t=a(t,i))}),t}function i9(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=LD(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ND(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=$D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=zD(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function UD(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function HE(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 a9(){return this.state.isDestroyed=!0,UD(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[HE("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function jD(e){var t=e.ownerDocument;return t?t.defaultView:window}function WD(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||WD(Gh(a.parentNode),t,r,n),n.push(a)}function o9(e,t,r,n){r.updateBound=n,jD(e).addEventListener("resize",r.updateBound,{passive:!0});var i=Gh(e);return WD(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function u9(){this.state.eventsEnabled||(this.state=o9(this.reference,this.options,this.state,this.scheduleUpdate))}function l9(e,t){return jD(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 s9(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=l9(this.reference,this.state))}function VE(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function M2(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&VE(t[r])&&(n="px"),e.style[r]=t[r]+n})}function f9(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function c9(e){return M2(e.instance.popper,e.styles),f9(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&M2(e.arrowElement,e.arrowStyles),e}function d9(e,t,r,n,i){var a=LD(i,t,e,r.positionFixed),o=ND(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),M2(t,{position:r.positionFixed?"fixed":"absolute"}),r}function p9(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,u=function(w){return w},s=a(i.width),f=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,v=e.placement.indexOf("-")!==-1,h=s%2===f%2,g=s%2===1&&f%2===1,_=t?d||v||h?a:o:u,A=t?a:u;return{left:_(g&&!v&&t?n.left-1:n.left),top:A(n.top),bottom:A(n.bottom),right:_(n.right)}}var h9=Wh&&/Firefox/i.test(navigator.userAgent);function v9(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=qh(e.instance.modifiers,function(E){return E.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,u=rc(e.instance.popper),s=k2(u),f={position:i.position},d=p9(e,window.devicePixelRatio<2||!h9),v=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",g=HE("transform"),_=void 0,A=void 0;if(v==="bottom"?u.nodeName==="HTML"?A=-u.clientHeight+d.bottom:A=-s.height+d.bottom:A=d.top,h==="right"?u.nodeName==="HTML"?_=-u.clientWidth+d.right:_=-s.width+d.right:_=d.left,o&&g)f[g]="translate3d("+_+"px, "+A+"px, 0)",f[v]=0,f[h]=0,f.willChange="transform";else{var b=v==="bottom"?-1:1,w=h==="right"?-1:1;f[v]=A*b,f[h]=_*w,f.willChange=v+", "+h}var S={"x-placement":e.placement};return e.attributes=Bi({},S,e.attributes),e.styles=Bi({},f,e.styles),e.arrowStyles=Bi({},e.offsets.arrow,e.arrowStyles),e}function GD(e,t,r){var n=qh(e,function(u){var s=u.name;return s===t}),i=!!n&&e.some(function(u){return u.name===r&&u.enabled&&u.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 g9(e,t){var r;if(!GD(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,u=a.reference,s=["left","right"].indexOf(i)!==-1,f=s?"height":"width",d=s?"Top":"Left",v=d.toLowerCase(),h=s?"left":"top",g=s?"bottom":"right",_=BD(n)[f];u[g]-_<o[v]&&(e.offsets.popper[v]-=o[v]-(u[g]-_)),u[v]+_>o[g]&&(e.offsets.popper[v]+=u[v]+_-o[g]),e.offsets.popper=Pu(e.offsets.popper);var A=u[v]+u[f]/2-_/2,b=ps(e.instance.popper),w=parseFloat(b["margin"+d]),S=parseFloat(b["border"+d+"Width"]),E=A-e.offsets.popper[v]-w-S;return E=Math.max(Math.min(o[f]-_,E),0),e.arrowElement=n,e.offsets.arrow=(r={},ic(r,v,Math.round(E)),ic(r,h,""),r),e}function m9(e){return e==="end"?"start":e==="start"?"end":e}var qD=["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"],Bw=qD.slice(3);function OR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Bw.indexOf(e),n=Bw.slice(r+1).concat(Bw.slice(0,r));return t?n.reverse():n}var $w={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function y9(e,t){if(UD(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=qE(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=m0(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case $w.FLIP:o=[n,i];break;case $w.CLOCKWISE:o=OR(n);break;case $w.COUNTERCLOCKWISE:o=OR(n,!0);break;default:o=t.behavior}return o.forEach(function(u,s){if(n!==u||o.length===s+1)return e;n=e.placement.split("-")[0],i=m0(n);var f=e.offsets.popper,d=e.offsets.reference,v=Math.floor,h=n==="left"&&v(f.right)>v(d.left)||n==="right"&&v(f.left)<v(d.right)||n==="top"&&v(f.bottom)>v(d.top)||n==="bottom"&&v(f.top)<v(d.bottom),g=v(f.left)<v(r.left),_=v(f.right)>v(r.right),A=v(f.top)<v(r.top),b=v(f.bottom)>v(r.bottom),w=n==="left"&&g||n==="right"&&_||n==="top"&&A||n==="bottom"&&b,S=["top","bottom"].indexOf(n)!==-1,E=!!t.flipVariations&&(S&&a==="start"&&g||S&&a==="end"&&_||!S&&a==="start"&&A||!S&&a==="end"&&b),R=!!t.flipVariationsByContent&&(S&&a==="start"&&_||S&&a==="end"&&g||!S&&a==="start"&&b||!S&&a==="end"&&A),M=E||R;(h||w||M)&&(e.flipped=!0,(h||w)&&(n=o[s+1]),M&&(a=m9(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Bi({},e.offsets.popper,$D(e.instance.popper,e.offsets.reference,e.placement)),e=zD(e.instance.modifiers,e,"flip"))}),e}function b9(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,u=o?"right":"bottom",s=o?"left":"top",f=o?"width":"height";return r[u]<a(n[s])&&(e.offsets.popper[s]=a(n[s])-r[f]),r[s]>a(n[u])&&(e.offsets.popper[s]=a(n[u])),e}function w9(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 u=void 0;switch(o){case"%p":u=r;break;case"%":case"%r":default:u=n}var s=Pu(u);return s[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 x9(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),u=o.indexOf(qh(o,function(d){return d.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,f=u!==-1?[o.slice(0,u).concat([o[u].split(s)[0]]),[o[u].split(s)[1]].concat(o.slice(u+1))]:[o];return f=f.map(function(d,v){var h=(v===1?!a:a)?"height":"width",g=!1;return d.reduce(function(_,A){return _[_.length-1]===""&&["+","-"].indexOf(A)!==-1?(_[_.length-1]=A,g=!0,_):g?(_[_.length-1]+=A,g=!1,_):_.concat(A)},[]).map(function(_){return w9(_,h,t,r)})}),f.forEach(function(d,v){d.forEach(function(h,g){VE(h)&&(i[v]+=h*(d[g-1]==="-"?-1:1))})}),i}function _9(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,u=n.split("-")[0],s=void 0;return VE(+r)?s=[+r,0]:s=x9(r,a,o,u),u==="left"?(a.top+=s[0],a.left-=s[1]):u==="right"?(a.top+=s[0],a.left+=s[1]):u==="top"?(a.left+=s[0],a.top-=s[1]):u==="bottom"&&(a.left+=s[0],a.top+=s[1]),e.popper=a,e}function S9(e,t){var r=t.boundariesElement||rc(e.instance.popper);e.instance.reference===r&&(r=rc(r));var n=HE("transform"),i=e.instance.popper.style,a=i.top,o=i.left,u=i[n];i.top="",i.left="",i[n]="";var s=qE(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=u,t.boundaries=s;var f=t.priority,d=e.offsets.popper,v={primary:function(g){var _=d[g];return d[g]<s[g]&&!t.escapeWithReference&&(_=Math.max(d[g],s[g])),ic({},g,_)},secondary:function(g){var _=g==="right"?"left":"top",A=d[_];return d[g]>s[g]&&!t.escapeWithReference&&(A=Math.min(d[_],s[g]-(g==="right"?d.width:d.height))),ic({},_,A)}};return f.forEach(function(h){var g=["left","top"].indexOf(h)!==-1?"primary":"secondary";d=Bi({},d,v[g](h))}),e.offsets.popper=d,e}function E9(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,u=["bottom","top"].indexOf(r)!==-1,s=u?"left":"top",f=u?"width":"height",d={start:ic({},s,a[s]),end:ic({},s,a[s]+a[f]-o[f])};e.offsets.popper=Bi({},o,d[n])}return e}function A9(e){if(!GD(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=qh(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 C9(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(u?i[o?"width":"height"]:0),e.placement=m0(t),e.offsets.popper=Pu(i),e}var T9={shift:{order:100,enabled:!0,fn:E9},offset:{order:200,enabled:!0,fn:_9,offset:0},preventOverflow:{order:300,enabled:!0,fn:S9,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:b9},arrow:{order:500,enabled:!0,fn:g9,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:y9,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:C9},hide:{order:800,enabled:!0,fn:A9},computeStyle:{order:850,enabled:!0,fn:v9,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:c9,onLoad:d9,gpuAcceleration:void 0}},R9={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:T9},Dy=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};JU(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=KU(this.update.bind(this)),this.options=Bi({},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(Bi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Bi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Bi({name:o},n.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&PD(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 e9(e,[{key:"update",value:function(){return i9.call(this)}},{key:"destroy",value:function(){return a9.call(this)}},{key:"enableEventListeners",value:function(){return u9.call(this)}},{key:"disableEventListeners",value:function(){return s9.call(this)}}]),e}();Dy.Utils=(typeof window<"u"?window:global).PopperUtils;Dy.placements=qD;Dy.Defaults=R9;const pde=Dy;function YE(e,t,...r){if(!e)throw new TypeError(HD(t,r))}function HD(e,t){let r=0;return e.replace(/%[os]/gu,()=>VD(t[r++]))}function VD(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let O9;function I9(e){try{const t=e instanceof Error?e:new Error(VD(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 fa=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let P9;class To{constructor(t,r){this.code=t,this.message=r}warn(...t){var r;try{const n=((r=new Error().stack)!==null&&r!==void 0?r:"").replace(/^(?:.+?\n){2}/gu,`
|
|
70
|
+
`);console.warn(this.message,...t,n)}catch{}}}const k9=new To("W01","Unable to initialize event under dispatching."),M9=new To("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),D9=new To("W03","Assigning any truthy value to 'returnValue' property has no effect."),F9=new To("W04","Unable to preventDefault on non-cancelable events."),N9=new To("W05","Unable to preventDefault inside passive event listener invocation."),L9=new To("W06","An event listener wasn't added because it has been added already: %o, %o"),zw=new To("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),IR=new To("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");new To("W09","Event attribute handler must be a function: %o");class Ro{static get NONE(){return PR}static get CAPTURING_PHASE(){return kR}static get AT_TARGET(){return MR}static get BUBBLING_PHASE(){return DR}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r!=null?r:{};D2.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 on(this).type}get target(){return on(this).target}get srcElement(){return on(this).target}get currentTarget(){return on(this).currentTarget}composedPath(){const t=on(this).currentTarget;return t?[t]:[]}get NONE(){return PR}get CAPTURING_PHASE(){return kR}get AT_TARGET(){return MR}get BUBBLING_PHASE(){return DR}get eventPhase(){return on(this).dispatchFlag?2:0}stopPropagation(){on(this).stopPropagationFlag=!0}get cancelBubble(){return on(this).stopPropagationFlag}set cancelBubble(t){t?on(this).stopPropagationFlag=!0:M9.warn()}stopImmediatePropagation(){const t=on(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return on(this).bubbles}get cancelable(){return on(this).cancelable}get returnValue(){return!on(this).canceledFlag}set returnValue(t){t?D9.warn():FR(on(this))}preventDefault(){FR(on(this))}get defaultPrevented(){return on(this).canceledFlag}get composed(){return on(this).composed}get isTrusted(){return!1}get timeStamp(){return on(this).timeStamp}initEvent(t,r=!1,n=!1){const i=on(this);if(i.dispatchFlag){k9.warn();return}D2.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const PR=0,kR=1,MR=2,DR=3,D2=new WeakMap;function on(e,t="this"){const r=D2.get(e);return YE(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function FR(e){if(e.inPassiveListenerFlag){N9.warn();return}if(!e.cancelable){F9.warn();return}e.canceledFlag=!0}Object.defineProperty(Ro,"NONE",{enumerable:!0});Object.defineProperty(Ro,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(Ro,"AT_TARGET",{enumerable:!0});Object.defineProperty(Ro,"BUBBLING_PHASE",{enumerable:!0});const Uw=Object.getOwnPropertyNames(Ro.prototype);for(let e=0;e<Uw.length;++e)Uw[e]!=="constructor"&&Object.defineProperty(Ro.prototype,Uw[e],{enumerable:!0});typeof fa<"u"&&typeof fa.Event<"u"&&Object.setPrototypeOf(Ro.prototype,fa.Event.prototype);function B9(e){return fa.DOMException?new fa.DOMException(e,"InvalidStateError"):(lf==null&&(lf=class YD extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,YD)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(lf.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),LR(lf),LR(lf.prototype)),new lf(e))}let lf;const NR={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 LR(e){const t=Object.keys(NR);for(let r=0;r<t.length;++r){const n=t[r],i=NR[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class Fy extends Ro{static wrap(t){return new(KD(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),XD.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,QD(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=nu(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=nu(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=nu(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=nu(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=nu(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=nu(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const XD=new WeakMap;function nu(e){const t=XD.get(e);return YE(t!=null,"'this' is expected an Event object, but got",e),t}const y0=new WeakMap;y0.set(Object.prototype,Fy);typeof fa<"u"&&typeof fa.Event<"u"&&y0.set(fa.Event.prototype,Fy);function KD(e){const t=Object.getPrototypeOf(e);if(t==null)return Fy;let r=y0.get(t);return r==null&&(r=$9(KD(t),t),y0.set(t,r)),r}function $9(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],QD(t,n[i]));return r}function QD(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=nu(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=nu(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function z9(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function U9(e){e.flags|=8}function ZD(e){return(e.flags&1)===1}function JD(e){return(e.flags&2)===2}function eF(e){return(e.flags&4)===4}function j9(e){return(e.flags&8)===8}function W9({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){I9(n)}}function tF({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&ZD(e[n])===r)return n;return-1}function G9(e,t,r,n,i,a){let o;a&&(o=rF.bind(null,e,t,r),a.addEventListener("abort",o));const u=z9(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,u]):e.listeners.push(u),u}function rF(e,t,r){const n=tF(e,t,r);return n!==-1?nF(e,n):!1}function nF(e,t,r=!1){const n=e.listeners[t];return U9(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 q9(){return Object.create(null)}function H9(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 XE{constructor(){iF.set(this,q9())}addEventListener(t,r,n){const i=jw(this),{callback:a,capture:o,once:u,passive:s,signal:f,type:d}=V9(t,r,n);if(a==null||(f==null?void 0:f.aborted))return;const v=H9(i,d),h=tF(v,a,o);if(h!==-1){X9(v.listeners[h],s,u,f);return}G9(v,a,o,s,u,f)}removeEventListener(t,r,n){const i=jw(this),{callback:a,capture:o,type:u}=Y9(t,r,n),s=i[u];a!=null&&s&&rF(s,a,o)}dispatchEvent(t){const r=jw(this)[String(t.type)];if(r==null)return!0;const n=t instanceof Ro?t:Fy.wrap(t),i=on(n,"event");if(i.dispatchFlag)throw B9("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 u=0;u<o.length;++u){const s=o[u];if(!j9(s)&&(eF(s)&&nF(r,u,!a)&&(u-=1),i.inPassiveListenerFlag=JD(s),W9(s,this,n),i.inPassiveListenerFlag=!1,i.stopImmediatePropagationFlag))break}a||(r.cow=!1)}return i.target=null,i.currentTarget=null,i.stopImmediatePropagationFlag=!1,i.stopPropagationFlag=!1,i.dispatchFlag=!1,!i.canceledFlag}}const iF=new WeakMap;function jw(e,t="this"){const r=iF.get(e);return YE(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function V9(e,t,r){var n;return aF(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 Y9(e,t,r){return aF(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 aF(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){IR.warn(e);return}throw new TypeError(HD(IR.message,[e]))}}function X9(e,t,r,n){L9.warn(ZD(e)?"capture":"bubble",e.callback),JD(e)!==t&&zw.warn("passive"),eF(e)!==r&&zw.warn("once"),e.signal!==n&&zw.warn("signal")}const Ww=Object.getOwnPropertyNames(XE.prototype);for(let e=0;e<Ww.length;++e)Ww[e]!=="constructor"&&Object.defineProperty(XE.prototype,Ww[e],{enumerable:!0});typeof fa<"u"&&typeof fa.EventTarget<"u"&&Object.setPrototypeOf(XE.prototype,fa.EventTarget.prototype);/*!
|
|
71
|
+
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
72
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
73
|
+
* Copyright 2022 Fonticons, Inc.
|
|
74
|
+
*/function BR(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 $t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(r),!0).forEach(function(n){Z9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b0(e){return b0=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},b0(e)}function K9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $R(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 Q9(e,t,r){return t&&$R(e.prototype,t),r&&$R(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z9(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KE(e,t){return ej(e)||rj(e,t)||oF(e,t)||ij()}function Ny(e){return J9(e)||tj(e)||oF(e)||nj()}function J9(e){if(Array.isArray(e))return F2(e)}function ej(e){if(Array.isArray(e))return e}function tj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rj(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,u;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw u}}return n}}function oF(e,t){if(!!e){if(typeof e=="string")return F2(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 F2(e,t)}}function F2(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 nj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
75
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ij(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
76
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var zR=function(){},QE={},uF={},lF=null,sF={mark:zR,measure:zR};try{typeof window<"u"&&(QE=window),typeof document<"u"&&(uF=document),typeof MutationObserver<"u"&&(lF=MutationObserver),typeof performance<"u"&&(sF=performance)}catch{}var aj=QE.navigator||{},UR=aj.userAgent,jR=UR===void 0?"":UR,ku=QE,Wr=uF,WR=lF,Ug=sF;ku.document;var Oo=!!Wr.documentElement&&!!Wr.head&&typeof Wr.addEventListener=="function"&&typeof Wr.createElement=="function",fF=~jR.indexOf("MSIE")||~jR.indexOf("Trident/"),wo="___FONT_AWESOME___",N2=16,cF="fa",dF="svg-inline--fa",Kl="data-fa-i2svg",L2="data-fa-pseudo-element",oj="data-fa-pseudo-element-pending",ZE="data-prefix",JE="data-icon",GR="fontawesome-i2svg",uj="async",lj=["HTML","HEAD","STYLE","SCRIPT"],pF=function(){try{return!0}catch{return!1}}(),eA={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},w0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},hF={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sj={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},fj=/fa[srltdbk\-\ ]/,vF="fa-layers-text",cj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,dj={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},gF=[1,2,3,4,5,6,7,8,9,10],pj=gF.concat([11,12,13,14,15,16,17,18,19,20]),hj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ll={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},vj=[].concat(Ny(Object.keys(w0)),["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",Ll.GROUP,Ll.SWAP_OPACITY,Ll.PRIMARY,Ll.SECONDARY]).concat(gF.map(function(e){return"".concat(e,"x")})).concat(pj.map(function(e){return"w-".concat(e)})),mF=ku.FontAwesomeConfig||{};function gj(e){var t=Wr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function mj(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Wr&&typeof Wr.querySelector=="function"){var yj=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];yj.forEach(function(e){var t=KE(e,2),r=t[0],n=t[1],i=mj(gj(r));i!=null&&(mF[n]=i)})}var bj={familyPrefix:cF,styleDefault:"solid",replacementClass:dF,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Vp=$t($t({},bj),mF);Vp.autoReplaceSvg||(Vp.observeMutations=!1);var tr={};Object.keys(Vp).forEach(function(e){Object.defineProperty(tr,e,{enumerable:!0,set:function(r){Vp[e]=r,Dm.forEach(function(n){return n(tr)})},get:function(){return Vp[e]}})});ku.FontAwesomeConfig=tr;var Dm=[];function wj(e){return Dm.push(e),function(){Dm.splice(Dm.indexOf(e),1)}}var eu=N2,Da={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function xj(e){if(!(!e||!Oo)){var t=Wr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Wr.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 Wr.head.insertBefore(t,n),e}}var _j="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function gh(){for(var e=12,t="";e-- >0;)t+=_j[Math.random()*62|0];return t}function Ac(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function tA(e){return e.classList?Ac(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function yF(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Sj(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(yF(e[r]),'" ')},"").trim()}function Ly(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function rA(e){return e.size!==Da.size||e.x!==Da.x||e.y!==Da.y||e.rotate!==Da.rotate||e.flipX||e.flipY}function Ej(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),") "),u="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(u)},f={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:f}}function Aj(e){var t=e.transform,r=e.width,n=r===void 0?N2:r,i=e.height,a=i===void 0?N2:i,o=e.startCentered,u=o===void 0?!1:o,s="";return u&&fF?s+="translate(".concat(t.x/eu-n/2,"em, ").concat(t.y/eu-a/2,"em) "):u?s+="translate(calc(-50% + ".concat(t.x/eu,"em), calc(-50% + ").concat(t.y/eu,"em)) "):s+="translate(".concat(t.x/eu,"em, ").concat(t.y/eu,"em) "),s+="scale(".concat(t.size/eu*(t.flipX?-1:1),", ").concat(t.size/eu*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Cj=`:root, :host {
|
|
77
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
|
78
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
|
79
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
|
80
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
|
81
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
|
82
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
86
|
+
overflow: visible;
|
|
87
|
+
box-sizing: content-box;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.svg-inline--fa {
|
|
91
|
+
display: var(--fa-display, inline-block);
|
|
92
|
+
height: 1em;
|
|
93
|
+
overflow: visible;
|
|
94
|
+
vertical-align: -0.125em;
|
|
95
|
+
}
|
|
96
|
+
.svg-inline--fa.fa-2xs {
|
|
97
|
+
vertical-align: 0.1em;
|
|
98
|
+
}
|
|
99
|
+
.svg-inline--fa.fa-xs {
|
|
100
|
+
vertical-align: 0em;
|
|
101
|
+
}
|
|
102
|
+
.svg-inline--fa.fa-sm {
|
|
103
|
+
vertical-align: -0.0714285705em;
|
|
104
|
+
}
|
|
105
|
+
.svg-inline--fa.fa-lg {
|
|
106
|
+
vertical-align: -0.2em;
|
|
107
|
+
}
|
|
108
|
+
.svg-inline--fa.fa-xl {
|
|
109
|
+
vertical-align: -0.25em;
|
|
110
|
+
}
|
|
111
|
+
.svg-inline--fa.fa-2xl {
|
|
112
|
+
vertical-align: -0.3125em;
|
|
113
|
+
}
|
|
114
|
+
.svg-inline--fa.fa-pull-left {
|
|
115
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
116
|
+
width: auto;
|
|
117
|
+
}
|
|
118
|
+
.svg-inline--fa.fa-pull-right {
|
|
119
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
120
|
+
width: auto;
|
|
121
|
+
}
|
|
122
|
+
.svg-inline--fa.fa-li {
|
|
123
|
+
width: var(--fa-li-width, 2em);
|
|
124
|
+
top: 0.25em;
|
|
125
|
+
}
|
|
126
|
+
.svg-inline--fa.fa-fw {
|
|
127
|
+
width: var(--fa-fw-width, 1.25em);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.fa-layers svg.svg-inline--fa {
|
|
131
|
+
bottom: 0;
|
|
132
|
+
left: 0;
|
|
133
|
+
margin: auto;
|
|
134
|
+
position: absolute;
|
|
135
|
+
right: 0;
|
|
136
|
+
top: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.fa-layers-counter, .fa-layers-text {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
position: absolute;
|
|
142
|
+
text-align: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.fa-layers {
|
|
146
|
+
display: inline-block;
|
|
147
|
+
height: 1em;
|
|
148
|
+
position: relative;
|
|
149
|
+
text-align: center;
|
|
150
|
+
vertical-align: -0.125em;
|
|
151
|
+
width: 1em;
|
|
152
|
+
}
|
|
153
|
+
.fa-layers svg.svg-inline--fa {
|
|
154
|
+
-webkit-transform-origin: center center;
|
|
155
|
+
transform-origin: center center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.fa-layers-text {
|
|
159
|
+
left: 50%;
|
|
160
|
+
top: 50%;
|
|
161
|
+
-webkit-transform: translate(-50%, -50%);
|
|
162
|
+
transform: translate(-50%, -50%);
|
|
163
|
+
-webkit-transform-origin: center center;
|
|
164
|
+
transform-origin: center center;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.fa-layers-counter {
|
|
168
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
|
169
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
|
170
|
+
box-sizing: border-box;
|
|
171
|
+
color: var(--fa-inverse, #fff);
|
|
172
|
+
line-height: var(--fa-counter-line-height, 1);
|
|
173
|
+
max-width: var(--fa-counter-max-width, 5em);
|
|
174
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
177
|
+
right: var(--fa-right, 0);
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
top: var(--fa-top, 0);
|
|
180
|
+
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
|
181
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
|
182
|
+
-webkit-transform-origin: top right;
|
|
183
|
+
transform-origin: top right;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.fa-layers-bottom-right {
|
|
187
|
+
bottom: var(--fa-bottom, 0);
|
|
188
|
+
right: var(--fa-right, 0);
|
|
189
|
+
top: auto;
|
|
190
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
191
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
192
|
+
-webkit-transform-origin: bottom right;
|
|
193
|
+
transform-origin: bottom right;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.fa-layers-bottom-left {
|
|
197
|
+
bottom: var(--fa-bottom, 0);
|
|
198
|
+
left: var(--fa-left, 0);
|
|
199
|
+
right: auto;
|
|
200
|
+
top: auto;
|
|
201
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
202
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
203
|
+
-webkit-transform-origin: bottom left;
|
|
204
|
+
transform-origin: bottom left;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.fa-layers-top-right {
|
|
208
|
+
top: var(--fa-top, 0);
|
|
209
|
+
right: var(--fa-right, 0);
|
|
210
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
211
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
212
|
+
-webkit-transform-origin: top right;
|
|
213
|
+
transform-origin: top right;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.fa-layers-top-left {
|
|
217
|
+
left: var(--fa-left, 0);
|
|
218
|
+
right: auto;
|
|
219
|
+
top: var(--fa-top, 0);
|
|
220
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
221
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
222
|
+
-webkit-transform-origin: top left;
|
|
223
|
+
transform-origin: top left;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.fa-1x {
|
|
227
|
+
font-size: 1em;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.fa-2x {
|
|
231
|
+
font-size: 2em;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.fa-3x {
|
|
235
|
+
font-size: 3em;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.fa-4x {
|
|
239
|
+
font-size: 4em;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.fa-5x {
|
|
243
|
+
font-size: 5em;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.fa-6x {
|
|
247
|
+
font-size: 6em;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fa-7x {
|
|
251
|
+
font-size: 7em;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.fa-8x {
|
|
255
|
+
font-size: 8em;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.fa-9x {
|
|
259
|
+
font-size: 9em;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.fa-10x {
|
|
263
|
+
font-size: 10em;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.fa-2xs {
|
|
267
|
+
font-size: 0.625em;
|
|
268
|
+
line-height: 0.1em;
|
|
269
|
+
vertical-align: 0.225em;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.fa-xs {
|
|
273
|
+
font-size: 0.75em;
|
|
274
|
+
line-height: 0.0833333337em;
|
|
275
|
+
vertical-align: 0.125em;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.fa-sm {
|
|
279
|
+
font-size: 0.875em;
|
|
280
|
+
line-height: 0.0714285718em;
|
|
281
|
+
vertical-align: 0.0535714295em;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.fa-lg {
|
|
285
|
+
font-size: 1.25em;
|
|
286
|
+
line-height: 0.05em;
|
|
287
|
+
vertical-align: -0.075em;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.fa-xl {
|
|
291
|
+
font-size: 1.5em;
|
|
292
|
+
line-height: 0.0416666682em;
|
|
293
|
+
vertical-align: -0.125em;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.fa-2xl {
|
|
297
|
+
font-size: 2em;
|
|
298
|
+
line-height: 0.03125em;
|
|
299
|
+
vertical-align: -0.1875em;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.fa-fw {
|
|
303
|
+
text-align: center;
|
|
304
|
+
width: 1.25em;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.fa-ul {
|
|
308
|
+
list-style-type: none;
|
|
309
|
+
margin-left: var(--fa-li-margin, 2.5em);
|
|
310
|
+
padding-left: 0;
|
|
311
|
+
}
|
|
312
|
+
.fa-ul > li {
|
|
313
|
+
position: relative;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.fa-li {
|
|
317
|
+
left: calc(var(--fa-li-width, 2em) * -1);
|
|
318
|
+
position: absolute;
|
|
319
|
+
text-align: center;
|
|
320
|
+
width: var(--fa-li-width, 2em);
|
|
321
|
+
line-height: inherit;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.fa-border {
|
|
325
|
+
border-color: var(--fa-border-color, #eee);
|
|
326
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
|
327
|
+
border-style: var(--fa-border-style, solid);
|
|
328
|
+
border-width: var(--fa-border-width, 0.08em);
|
|
329
|
+
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.fa-pull-left {
|
|
333
|
+
float: left;
|
|
334
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.fa-pull-right {
|
|
338
|
+
float: right;
|
|
339
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.fa-beat {
|
|
343
|
+
-webkit-animation-name: fa-beat;
|
|
344
|
+
animation-name: fa-beat;
|
|
345
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
346
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
347
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
348
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
349
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
350
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
351
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
352
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
353
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
354
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.fa-bounce {
|
|
358
|
+
-webkit-animation-name: fa-bounce;
|
|
359
|
+
animation-name: fa-bounce;
|
|
360
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
361
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
362
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
363
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
364
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
365
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
366
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
367
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
368
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
369
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.fa-fade {
|
|
373
|
+
-webkit-animation-name: fa-fade;
|
|
374
|
+
animation-name: fa-fade;
|
|
375
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
376
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
377
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
378
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
379
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
380
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
381
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
382
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
383
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
384
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.fa-beat-fade {
|
|
388
|
+
-webkit-animation-name: fa-beat-fade;
|
|
389
|
+
animation-name: fa-beat-fade;
|
|
390
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
391
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
392
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
393
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
394
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
395
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
396
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
397
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
398
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
399
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.fa-flip {
|
|
403
|
+
-webkit-animation-name: fa-flip;
|
|
404
|
+
animation-name: fa-flip;
|
|
405
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
406
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
407
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
408
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
409
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
410
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
411
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
412
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
413
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
414
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.fa-shake {
|
|
418
|
+
-webkit-animation-name: fa-shake;
|
|
419
|
+
animation-name: fa-shake;
|
|
420
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
421
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
422
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
423
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
424
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
425
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
426
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
427
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
428
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
|
429
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.fa-spin {
|
|
433
|
+
-webkit-animation-name: fa-spin;
|
|
434
|
+
animation-name: fa-spin;
|
|
435
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0);
|
|
436
|
+
animation-delay: var(--fa-animation-delay, 0);
|
|
437
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
438
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
439
|
+
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
|
440
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
|
441
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
442
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
443
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
|
444
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.fa-spin-reverse {
|
|
448
|
+
--fa-animation-direction: reverse;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.fa-pulse,
|
|
452
|
+
.fa-spin-pulse {
|
|
453
|
+
-webkit-animation-name: fa-spin;
|
|
454
|
+
animation-name: fa-spin;
|
|
455
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
456
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
457
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
458
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
459
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
460
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
461
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
462
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
@media (prefers-reduced-motion: reduce) {
|
|
466
|
+
.fa-beat,
|
|
467
|
+
.fa-bounce,
|
|
468
|
+
.fa-fade,
|
|
469
|
+
.fa-beat-fade,
|
|
470
|
+
.fa-flip,
|
|
471
|
+
.fa-pulse,
|
|
472
|
+
.fa-shake,
|
|
473
|
+
.fa-spin,
|
|
474
|
+
.fa-spin-pulse {
|
|
475
|
+
-webkit-animation-delay: -1ms;
|
|
476
|
+
animation-delay: -1ms;
|
|
477
|
+
-webkit-animation-duration: 1ms;
|
|
478
|
+
animation-duration: 1ms;
|
|
479
|
+
-webkit-animation-iteration-count: 1;
|
|
480
|
+
animation-iteration-count: 1;
|
|
481
|
+
transition-delay: 0s;
|
|
482
|
+
transition-duration: 0s;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
@-webkit-keyframes fa-beat {
|
|
486
|
+
0%, 90% {
|
|
487
|
+
-webkit-transform: scale(1);
|
|
488
|
+
transform: scale(1);
|
|
489
|
+
}
|
|
490
|
+
45% {
|
|
491
|
+
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
|
492
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
@keyframes fa-beat {
|
|
496
|
+
0%, 90% {
|
|
497
|
+
-webkit-transform: scale(1);
|
|
498
|
+
transform: scale(1);
|
|
499
|
+
}
|
|
500
|
+
45% {
|
|
501
|
+
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
|
502
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
@-webkit-keyframes fa-bounce {
|
|
506
|
+
0% {
|
|
507
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
508
|
+
transform: scale(1, 1) translateY(0);
|
|
509
|
+
}
|
|
510
|
+
10% {
|
|
511
|
+
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
512
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
513
|
+
}
|
|
514
|
+
30% {
|
|
515
|
+
-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));
|
|
516
|
+
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));
|
|
517
|
+
}
|
|
518
|
+
50% {
|
|
519
|
+
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
520
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
521
|
+
}
|
|
522
|
+
57% {
|
|
523
|
+
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
524
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
525
|
+
}
|
|
526
|
+
64% {
|
|
527
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
528
|
+
transform: scale(1, 1) translateY(0);
|
|
529
|
+
}
|
|
530
|
+
100% {
|
|
531
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
532
|
+
transform: scale(1, 1) translateY(0);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
@keyframes fa-bounce {
|
|
536
|
+
0% {
|
|
537
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
538
|
+
transform: scale(1, 1) translateY(0);
|
|
539
|
+
}
|
|
540
|
+
10% {
|
|
541
|
+
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
542
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
543
|
+
}
|
|
544
|
+
30% {
|
|
545
|
+
-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));
|
|
546
|
+
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));
|
|
547
|
+
}
|
|
548
|
+
50% {
|
|
549
|
+
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
550
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
551
|
+
}
|
|
552
|
+
57% {
|
|
553
|
+
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
554
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
555
|
+
}
|
|
556
|
+
64% {
|
|
557
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
558
|
+
transform: scale(1, 1) translateY(0);
|
|
559
|
+
}
|
|
560
|
+
100% {
|
|
561
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
562
|
+
transform: scale(1, 1) translateY(0);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
@-webkit-keyframes fa-fade {
|
|
566
|
+
50% {
|
|
567
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
@keyframes fa-fade {
|
|
571
|
+
50% {
|
|
572
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
@-webkit-keyframes fa-beat-fade {
|
|
576
|
+
0%, 100% {
|
|
577
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
578
|
+
-webkit-transform: scale(1);
|
|
579
|
+
transform: scale(1);
|
|
580
|
+
}
|
|
581
|
+
50% {
|
|
582
|
+
opacity: 1;
|
|
583
|
+
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
584
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
@keyframes fa-beat-fade {
|
|
588
|
+
0%, 100% {
|
|
589
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
590
|
+
-webkit-transform: scale(1);
|
|
591
|
+
transform: scale(1);
|
|
592
|
+
}
|
|
593
|
+
50% {
|
|
594
|
+
opacity: 1;
|
|
595
|
+
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
596
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
@-webkit-keyframes fa-flip {
|
|
600
|
+
50% {
|
|
601
|
+
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
602
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
@keyframes fa-flip {
|
|
606
|
+
50% {
|
|
607
|
+
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
608
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
@-webkit-keyframes fa-shake {
|
|
612
|
+
0% {
|
|
613
|
+
-webkit-transform: rotate(-15deg);
|
|
614
|
+
transform: rotate(-15deg);
|
|
615
|
+
}
|
|
616
|
+
4% {
|
|
617
|
+
-webkit-transform: rotate(15deg);
|
|
618
|
+
transform: rotate(15deg);
|
|
619
|
+
}
|
|
620
|
+
8%, 24% {
|
|
621
|
+
-webkit-transform: rotate(-18deg);
|
|
622
|
+
transform: rotate(-18deg);
|
|
623
|
+
}
|
|
624
|
+
12%, 28% {
|
|
625
|
+
-webkit-transform: rotate(18deg);
|
|
626
|
+
transform: rotate(18deg);
|
|
627
|
+
}
|
|
628
|
+
16% {
|
|
629
|
+
-webkit-transform: rotate(-22deg);
|
|
630
|
+
transform: rotate(-22deg);
|
|
631
|
+
}
|
|
632
|
+
20% {
|
|
633
|
+
-webkit-transform: rotate(22deg);
|
|
634
|
+
transform: rotate(22deg);
|
|
635
|
+
}
|
|
636
|
+
32% {
|
|
637
|
+
-webkit-transform: rotate(-12deg);
|
|
638
|
+
transform: rotate(-12deg);
|
|
639
|
+
}
|
|
640
|
+
36% {
|
|
641
|
+
-webkit-transform: rotate(12deg);
|
|
642
|
+
transform: rotate(12deg);
|
|
643
|
+
}
|
|
644
|
+
40%, 100% {
|
|
645
|
+
-webkit-transform: rotate(0deg);
|
|
646
|
+
transform: rotate(0deg);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
@keyframes fa-shake {
|
|
650
|
+
0% {
|
|
651
|
+
-webkit-transform: rotate(-15deg);
|
|
652
|
+
transform: rotate(-15deg);
|
|
653
|
+
}
|
|
654
|
+
4% {
|
|
655
|
+
-webkit-transform: rotate(15deg);
|
|
656
|
+
transform: rotate(15deg);
|
|
657
|
+
}
|
|
658
|
+
8%, 24% {
|
|
659
|
+
-webkit-transform: rotate(-18deg);
|
|
660
|
+
transform: rotate(-18deg);
|
|
661
|
+
}
|
|
662
|
+
12%, 28% {
|
|
663
|
+
-webkit-transform: rotate(18deg);
|
|
664
|
+
transform: rotate(18deg);
|
|
665
|
+
}
|
|
666
|
+
16% {
|
|
667
|
+
-webkit-transform: rotate(-22deg);
|
|
668
|
+
transform: rotate(-22deg);
|
|
669
|
+
}
|
|
670
|
+
20% {
|
|
671
|
+
-webkit-transform: rotate(22deg);
|
|
672
|
+
transform: rotate(22deg);
|
|
673
|
+
}
|
|
674
|
+
32% {
|
|
675
|
+
-webkit-transform: rotate(-12deg);
|
|
676
|
+
transform: rotate(-12deg);
|
|
677
|
+
}
|
|
678
|
+
36% {
|
|
679
|
+
-webkit-transform: rotate(12deg);
|
|
680
|
+
transform: rotate(12deg);
|
|
681
|
+
}
|
|
682
|
+
40%, 100% {
|
|
683
|
+
-webkit-transform: rotate(0deg);
|
|
684
|
+
transform: rotate(0deg);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
@-webkit-keyframes fa-spin {
|
|
688
|
+
0% {
|
|
689
|
+
-webkit-transform: rotate(0deg);
|
|
690
|
+
transform: rotate(0deg);
|
|
691
|
+
}
|
|
692
|
+
100% {
|
|
693
|
+
-webkit-transform: rotate(360deg);
|
|
694
|
+
transform: rotate(360deg);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
@keyframes fa-spin {
|
|
698
|
+
0% {
|
|
699
|
+
-webkit-transform: rotate(0deg);
|
|
700
|
+
transform: rotate(0deg);
|
|
701
|
+
}
|
|
702
|
+
100% {
|
|
703
|
+
-webkit-transform: rotate(360deg);
|
|
704
|
+
transform: rotate(360deg);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
.fa-rotate-90 {
|
|
708
|
+
-webkit-transform: rotate(90deg);
|
|
709
|
+
transform: rotate(90deg);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.fa-rotate-180 {
|
|
713
|
+
-webkit-transform: rotate(180deg);
|
|
714
|
+
transform: rotate(180deg);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.fa-rotate-270 {
|
|
718
|
+
-webkit-transform: rotate(270deg);
|
|
719
|
+
transform: rotate(270deg);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.fa-flip-horizontal {
|
|
723
|
+
-webkit-transform: scale(-1, 1);
|
|
724
|
+
transform: scale(-1, 1);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.fa-flip-vertical {
|
|
728
|
+
-webkit-transform: scale(1, -1);
|
|
729
|
+
transform: scale(1, -1);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.fa-flip-both,
|
|
733
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
|
734
|
+
-webkit-transform: scale(-1, -1);
|
|
735
|
+
transform: scale(-1, -1);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.fa-rotate-by {
|
|
739
|
+
-webkit-transform: rotate(var(--fa-rotate-angle, none));
|
|
740
|
+
transform: rotate(var(--fa-rotate-angle, none));
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.fa-stack {
|
|
744
|
+
display: inline-block;
|
|
745
|
+
vertical-align: middle;
|
|
746
|
+
height: 2em;
|
|
747
|
+
position: relative;
|
|
748
|
+
width: 2.5em;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.fa-stack-1x,
|
|
752
|
+
.fa-stack-2x {
|
|
753
|
+
bottom: 0;
|
|
754
|
+
left: 0;
|
|
755
|
+
margin: auto;
|
|
756
|
+
position: absolute;
|
|
757
|
+
right: 0;
|
|
758
|
+
top: 0;
|
|
759
|
+
z-index: var(--fa-stack-z-index, auto);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.svg-inline--fa.fa-stack-1x {
|
|
763
|
+
height: 1em;
|
|
764
|
+
width: 1.25em;
|
|
765
|
+
}
|
|
766
|
+
.svg-inline--fa.fa-stack-2x {
|
|
767
|
+
height: 2em;
|
|
768
|
+
width: 2.5em;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.fa-inverse {
|
|
772
|
+
color: var(--fa-inverse, #fff);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.sr-only,
|
|
776
|
+
.fa-sr-only {
|
|
777
|
+
position: absolute;
|
|
778
|
+
width: 1px;
|
|
779
|
+
height: 1px;
|
|
780
|
+
padding: 0;
|
|
781
|
+
margin: -1px;
|
|
782
|
+
overflow: hidden;
|
|
783
|
+
clip: rect(0, 0, 0, 0);
|
|
784
|
+
white-space: nowrap;
|
|
785
|
+
border-width: 0;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.sr-only-focusable:not(:focus),
|
|
789
|
+
.fa-sr-only-focusable:not(:focus) {
|
|
790
|
+
position: absolute;
|
|
791
|
+
width: 1px;
|
|
792
|
+
height: 1px;
|
|
793
|
+
padding: 0;
|
|
794
|
+
margin: -1px;
|
|
795
|
+
overflow: hidden;
|
|
796
|
+
clip: rect(0, 0, 0, 0);
|
|
797
|
+
white-space: nowrap;
|
|
798
|
+
border-width: 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.svg-inline--fa .fa-primary {
|
|
802
|
+
fill: var(--fa-primary-color, currentColor);
|
|
803
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.svg-inline--fa .fa-secondary {
|
|
807
|
+
fill: var(--fa-secondary-color, currentColor);
|
|
808
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
812
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
816
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.svg-inline--fa mask .fa-primary,
|
|
820
|
+
.svg-inline--fa mask .fa-secondary {
|
|
821
|
+
fill: black;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.fad.fa-inverse,
|
|
825
|
+
.fa-duotone.fa-inverse {
|
|
826
|
+
color: var(--fa-inverse, #fff);
|
|
827
|
+
}`;function bF(){var e=cF,t=dF,r=tr.familyPrefix,n=tr.replacementClass,i=Cj;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(u,".".concat(n))}return i}var qR=!1;function Gw(){tr.autoAddCss&&!qR&&(xj(bF()),qR=!0)}var Tj={mixout:function(){return{dom:{css:bF,insertCss:Gw}}},hooks:function(){return{beforeDOMElementCreation:function(){Gw()},beforeI2svg:function(){Gw()}}}},xo=ku||{};xo[wo]||(xo[wo]={});xo[wo].styles||(xo[wo].styles={});xo[wo].hooks||(xo[wo].hooks={});xo[wo].shims||(xo[wo].shims=[]);var la=xo[wo],wF=[],Rj=function e(){Wr.removeEventListener("DOMContentLoaded",e),x0=1,wF.map(function(t){return t()})},x0=!1;Oo&&(x0=(Wr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Wr.readyState),x0||Wr.addEventListener("DOMContentLoaded",Rj));function Oj(e){!Oo||(x0?setTimeout(e,0):wF.push(e))}function Hh(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"?yF(e):"<".concat(t," ").concat(Sj(n),">").concat(a.map(Hh).join(""),"</").concat(t,">")}function HR(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var Ij=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},qw=function(t,r,n,i){var a=Object.keys(t),o=a.length,u=i!==void 0?Ij(r,i):r,s,f,d;for(n===void 0?(s=1,d=t[a[0]]):(s=0,d=n);s<o;s++)f=a[s],d=u(d,t[f],f,t);return d};function Pj(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 B2(e){var t=Pj(e);return t.length===1?t[0].toString(16):null}function kj(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 VR(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 $2(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=VR(t);typeof la.hooks.addPack=="function"&&!i?la.hooks.addPack(e,VR(t)):la.styles[e]=$t($t({},la.styles[e]||{}),a),e==="fas"&&$2("fa",t)}var Yp=la.styles,Mj=la.shims,Dj=Object.values(hF),nA=null,xF={},_F={},SF={},EF={},AF={},Fj=Object.keys(eA);function Nj(e){return~vj.indexOf(e)}function Lj(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!Nj(i)?i:null}var CF=function(){var t=function(a){return qw(Yp,function(o,u,s){return o[s]=qw(u,a,{}),o},{})};xF=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var u=a[2].filter(function(s){return typeof s=="number"});u.forEach(function(s){i[s.toString(16)]=o})}return i}),_F=t(function(i,a,o){if(i[o]=o,a[2]){var u=a[2].filter(function(s){return typeof s=="string"});u.forEach(function(s){i[s]=o})}return i}),AF=t(function(i,a,o){var u=a[2];return i[o]=o,u.forEach(function(s){i[s]=o}),i});var r="far"in Yp||tr.autoFetchSvg,n=qw(Mj,function(i,a){var o=a[0],u=a[1],s=a[2];return u==="far"&&!r&&(u="fas"),typeof o=="string"&&(i.names[o]={prefix:u,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:u,iconName:s}),i},{names:{},unicodes:{}});SF=n.names,EF=n.unicodes,nA=By(tr.styleDefault)};wj(function(e){nA=By(e.styleDefault)});CF();function iA(e,t){return(xF[e]||{})[t]}function Bj(e,t){return(_F[e]||{})[t]}function Of(e,t){return(AF[e]||{})[t]}function TF(e){return SF[e]||{prefix:null,iconName:null}}function $j(e){var t=EF[e],r=iA("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function Mu(){return nA}var aA=function(){return{prefix:null,iconName:null,rest:[]}};function By(e){var t=eA[e],r=w0[e]||w0[t],n=e in la.styles?e:null;return r||n||null}function $y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.skipLookups,n=r===void 0?!1:r,i=null,a=e.reduce(function(o,u){var s=Lj(tr.familyPrefix,u);if(Yp[u]?(u=Dj.includes(u)?sj[u]:u,i=u,o.prefix=u):Fj.indexOf(u)>-1?(i=u,o.prefix=By(u)):s?o.iconName=s:u!==tr.replacementClass&&o.rest.push(u),!n&&o.prefix&&o.iconName){var f=i==="fa"?TF(o.iconName):{},d=Of(o.prefix,o.iconName);f.prefix&&(i=null),o.iconName=f.iconName||d||o.iconName,o.prefix=f.prefix||o.prefix,o.prefix==="far"&&!Yp.far&&Yp.fas&&!tr.autoFetchSvg&&(o.prefix="fas")}return o},aA());return(a.prefix==="fa"||i==="fa")&&(a.prefix=Mu()||"fas"),a}var zj=function(){function e(){K9(this,e),this.definitions={}}return Q9(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(u){r.definitions[u]=$t($t({},r.definitions[u]||{}),o[u]),$2(u,o[u]);var s=hF[u];s&&$2(s,o[u]),CF()})}},{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],u=o.prefix,s=o.iconName,f=o.icon,d=f[2];r[u]||(r[u]={}),d.length>0&&d.forEach(function(v){typeof v=="string"&&(r[u][v]=f)}),r[u][s]=f}),r}}]),e}(),YR=[],If={},Wf={},Uj=Object.keys(Wf);function jj(e,t){var r=t.mixoutsTo;return YR=e,If={},Object.keys(Wf).forEach(function(n){Uj.indexOf(n)===-1&&delete Wf[n]}),YR.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),b0(i[o])==="object"&&Object.keys(i[o]).forEach(function(u){r[o]||(r[o]={}),r[o][u]=i[o][u]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){If[o]||(If[o]=[]),If[o].push(a[o])})}n.provides&&n.provides(Wf)}),r}function z2(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=If[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function Ql(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=If[e]||[];i.forEach(function(a){a.apply(null,r)})}function _o(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Wf[e]?Wf[e].apply(null,t):void 0}function U2(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Mu();if(!!t)return t=Of(r,t)||t,HR(RF.definitions,r,t)||HR(la.styles,r,t)}var RF=new zj,Wj=function(){tr.autoReplaceSvg=!1,tr.observeMutations=!1,Ql("noAuto")},Gj={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Oo?(Ql("beforeI2svg",t),_o("pseudoElements2svg",t),_o("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;tr.autoReplaceSvg===!1&&(tr.autoReplaceSvg=!0),tr.observeMutations=!0,Oj(function(){Hj({autoReplaceSvgRoot:r}),Ql("watch",t)})}},qj={icon:function(t){if(t===null)return null;if(b0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Of(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=By(t[0]);return{prefix:n,iconName:Of(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(tr.familyPrefix,"-"))>-1||t.match(fj))){var i=$y(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Mu(),iconName:Of(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=Mu();return{prefix:a,iconName:Of(a,t)||t}}}},Ti={noAuto:Wj,config:tr,dom:Gj,parse:qj,library:RF,findIconDefinition:U2,toHtml:Hh},Hj=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?Wr:r;(Object.keys(la.styles).length>0||tr.autoFetchSvg)&&Oo&&tr.autoReplaceSvg&&Ti.dom.i2svg({node:n})};function zy(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Hh(n)})}}),Object.defineProperty(e,"node",{get:function(){if(!!Oo){var n=Wr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Vj(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(rA(o)&&r.found&&!n.found){var u=r.width,s=r.height,f={x:u/s/2,y:.5};i.style=Ly($t($t({},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 Yj(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(tr.familyPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$t($t({},i),{},{id:o}),children:n}]}]}function oA(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,u=e.symbol,s=e.title,f=e.maskId,d=e.titleId,v=e.extra,h=e.watchable,g=h===void 0?!1:h,_=n.found?n:r,A=_.width,b=_.height,w=i==="fak",S=[tr.replacementClass,a?"".concat(tr.familyPrefix,"-").concat(a):""].filter(function(L){return v.classes.indexOf(L)===-1}).filter(function(L){return L!==""||!!L}).concat(v.classes).join(" "),E={children:[],attributes:$t($t({},v.attributes),{},{"data-prefix":i,"data-icon":a,class:S,role:v.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(A," ").concat(b)})},R=w&&!~v.classes.indexOf("fa-fw")?{width:"".concat(A/b*16*.0625,"em")}:{};g&&(E.attributes[Kl]=""),s&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||gh())},children:[s]}),delete E.attributes.title);var M=$t($t({},E),{},{prefix:i,iconName:a,main:r,mask:n,maskId:f,transform:o,symbol:u,styles:$t($t({},R),v.styles)}),D=n.found&&r.found?_o("generateAbstractMask",M)||{children:[],attributes:{}}:_o("generateAbstractIcon",M)||{children:[],attributes:{}},z=D.children,N=D.attributes;return M.children=z,M.attributes=N,u?Yj(M):Vj(M)}function XR(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,u=e.watchable,s=u===void 0?!1:u,f=$t($t($t({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(f[Kl]="");var d=$t({},o.styles);rA(i)&&(d.transform=Aj({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var v=Ly(d);v.length>0&&(f.style=v);var h=[];return h.push({tag:"span",attributes:f,children:[t]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function Xj(e){var t=e.content,r=e.title,n=e.extra,i=$t($t($t({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Ly(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 Hw=la.styles;function j2(e){var t=e[0],r=e[1],n=e.slice(4),i=KE(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(tr.familyPrefix,"-").concat(Ll.GROUP)},children:[{tag:"path",attributes:{class:"".concat(tr.familyPrefix,"-").concat(Ll.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(tr.familyPrefix,"-").concat(Ll.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var Kj={found:!1,width:512,height:512};function Qj(e,t){!pF&&!tr.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function W2(e,t){var r=t;return t==="fa"&&tr.styleDefault!==null&&(t=Mu()),new Promise(function(n,i){if(_o("missingIconAbstract"),r==="fa"){var a=TF(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Hw[t]&&Hw[t][e]){var o=Hw[t][e];return n(j2(o))}Qj(e,t),n($t($t({},Kj),{},{icon:tr.showMissingIcons&&e?_o("missingIconAbstract")||{}:{}}))})}var KR=function(){},G2=tr.measurePerformance&&Ug&&Ug.mark&&Ug.measure?Ug:{mark:KR,measure:KR},Rp='FA "6.1.1"',Zj=function(t){return G2.mark("".concat(Rp," ").concat(t," begins")),function(){return OF(t)}},OF=function(t){G2.mark("".concat(Rp," ").concat(t," ends")),G2.measure("".concat(Rp," ").concat(t),"".concat(Rp," ").concat(t," begins"),"".concat(Rp," ").concat(t," ends"))},uA={begin:Zj,end:OF},Fm=function(){};function QR(e){var t=e.getAttribute?e.getAttribute(Kl):null;return typeof t=="string"}function Jj(e){var t=e.getAttribute?e.getAttribute(ZE):null,r=e.getAttribute?e.getAttribute(JE):null;return t&&r}function eW(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(tr.replacementClass)}function tW(){if(tr.autoReplaceSvg===!0)return Nm.replace;var e=Nm[tr.autoReplaceSvg];return e||Nm.replace}function rW(e){return Wr.createElementNS("http://www.w3.org/2000/svg",e)}function nW(e){return Wr.createElement(e)}function IF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?rW:nW:r;if(typeof e=="string")return Wr.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(IF(o,{ceFn:n}))}),i}function iW(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Nm={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(IF(i),r)}),r.getAttribute(Kl)===null&&tr.keepOriginalSource){var n=Wr.createComment(iW(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~tA(r).indexOf(tr.replacementClass))return Nm.replace(t);var i=new RegExp("".concat(tr.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(u,s){return s===tr.replacementClass||s.match(i)?u.toSvg.push(s):u.toNode.push(s),u},{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(u){return Hh(u)}).join(`
|
|
828
|
+
`);r.setAttribute(Kl,""),r.innerHTML=o}};function ZR(e){e()}function PF(e,t){var r=typeof t=="function"?t:Fm;if(e.length===0)r();else{var n=ZR;tr.mutateApproach===uj&&(n=ku.requestAnimationFrame||ZR),n(function(){var i=tW(),a=uA.begin("mutate");e.map(i),a(),r()})}}var lA=!1;function kF(){lA=!0}function q2(){lA=!1}var _0=null;function JR(e){if(!!WR&&!!tr.observeMutations){var t=e.treeCallback,r=t===void 0?Fm:t,n=e.nodeCallback,i=n===void 0?Fm:n,a=e.pseudoElementsCallback,o=a===void 0?Fm:a,u=e.observeMutationsRoot,s=u===void 0?Wr:u;_0=new WR(function(f){if(!lA){var d=Mu();Ac(f).forEach(function(v){if(v.type==="childList"&&v.addedNodes.length>0&&!QR(v.addedNodes[0])&&(tr.searchPseudoElements&&o(v.target),r(v.target)),v.type==="attributes"&&v.target.parentNode&&tr.searchPseudoElements&&o(v.target.parentNode),v.type==="attributes"&&QR(v.target)&&~hj.indexOf(v.attributeName))if(v.attributeName==="class"&&Jj(v.target)){var h=$y(tA(v.target)),g=h.prefix,_=h.iconName;v.target.setAttribute(ZE,g||d),_&&v.target.setAttribute(JE,_)}else eW(v.target)&&i(v.target)})}}),Oo&&_0.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function aW(){!_0||_0.disconnect()}function oW(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],u=a.slice(1);return o&&u.length>0&&(n[o]=u.join(":").trim()),n},{})),r}function uW(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=$y(tA(e));return i.prefix||(i.prefix=Mu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||i.prefix&&n.length>0&&(i.iconName=Bj(i.prefix,e.innerText)||iA(i.prefix,B2(e.innerText))),i}function lW(e){var t=Ac(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 tr.autoA11y&&(r?t["aria-labelledby"]="".concat(tr.replacementClass,"-title-").concat(n||gh()):(t["aria-hidden"]="true",t.focusable="false")),t}function sW(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Da,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function e5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=uW(e),n=r.iconName,i=r.prefix,a=r.rest,o=lW(e),u=z2("parseNodeAttributes",{},e),s=t.styleParser?oW(e):[];return $t({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Da,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},u)}var fW=la.styles;function MF(e){var t=tr.autoReplaceSvg==="nest"?e5(e,{styleParser:!1}):e5(e);return~t.extra.classes.indexOf(vF)?_o("generateLayersText",e,t):_o("generateSvgReplacementMutation",e,t)}function t5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Oo)return Promise.resolve();var r=Wr.documentElement.classList,n=function(v){return r.add("".concat(GR,"-").concat(v))},i=function(v){return r.remove("".concat(GR,"-").concat(v))},a=tr.autoFetchSvg?Object.keys(eA):Object.keys(fW),o=[".".concat(vF,":not([").concat(Kl,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(Kl,"])")})).join(", ");if(o.length===0)return Promise.resolve();var u=[];try{u=Ac(e.querySelectorAll(o))}catch{}if(u.length>0)n("pending"),i("complete");else return Promise.resolve();var s=uA.begin("onTree"),f=u.reduce(function(d,v){try{var h=MF(v);h&&d.push(h)}catch(g){pF||g.name==="MissingIcon"&&console.error(g)}return d},[]);return new Promise(function(d,v){Promise.all(f).then(function(h){PF(h,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(h){s(),v(h)})})}function cW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;MF(e).then(function(r){r&&PF([r],t)})}function dW(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:U2(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:U2(i||{})),e(n,$t($t({},r),{},{mask:i}))}}var pW=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?Da:n,a=r.symbol,o=a===void 0?!1:a,u=r.mask,s=u===void 0?null:u,f=r.maskId,d=f===void 0?null:f,v=r.title,h=v===void 0?null:v,g=r.titleId,_=g===void 0?null:g,A=r.classes,b=A===void 0?[]:A,w=r.attributes,S=w===void 0?{}:w,E=r.styles,R=E===void 0?{}:E;if(!!t){var M=t.prefix,D=t.iconName,z=t.icon;return zy($t({type:"icon"},t),function(){return Ql("beforeDOMElementCreation",{iconDefinition:t,params:r}),tr.autoA11y&&(h?S["aria-labelledby"]="".concat(tr.replacementClass,"-title-").concat(_||gh()):(S["aria-hidden"]="true",S.focusable="false")),oA({icons:{main:j2(z),mask:s?j2(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:D,transform:$t($t({},Da),i),symbol:o,title:h,maskId:d,titleId:_,extra:{attributes:S,styles:R,classes:b}})})}},hW={mixout:function(){return{icon:dW(pW)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=t5,r.nodeCallback=cW,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?Wr:n,a=r.callback,o=a===void 0?function(){}:a;return t5(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,u=n.prefix,s=n.transform,f=n.symbol,d=n.mask,v=n.maskId,h=n.extra;return new Promise(function(g,_){Promise.all([W2(i,u),d.iconName?W2(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(A){var b=KE(A,2),w=b[0],S=b[1];g([r,oA({icons:{main:w,mask:S},prefix:u,iconName:i,transform:s,symbol:f,maskId:v,title:a,titleId:o,extra:h,watchable:!0})])}).catch(_)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,u=r.styles,s=Ly(u);s.length>0&&(i.style=s);var f;return rA(o)&&(f=_o("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:i}}}},vW={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 zy({type:"layer"},function(){Ql("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(u){Array.isArray(u)?u.map(function(s){o=o.concat(s.abstract)}):o=o.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(tr.familyPrefix,"-layers")].concat(Ny(a)).join(" ")},children:o}]})}}}},gW={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,u=o===void 0?[]:o,s=n.attributes,f=s===void 0?{}:s,d=n.styles,v=d===void 0?{}:d;return zy({type:"counter",content:r},function(){return Ql("beforeDOMElementCreation",{content:r,params:n}),Xj({content:r.toString(),title:a,extra:{attributes:f,styles:v,classes:["".concat(tr.familyPrefix,"-layers-counter")].concat(Ny(u))}})})}}}},mW={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?Da:i,o=n.title,u=o===void 0?null:o,s=n.classes,f=s===void 0?[]:s,d=n.attributes,v=d===void 0?{}:d,h=n.styles,g=h===void 0?{}:h;return zy({type:"text",content:r},function(){return Ql("beforeDOMElementCreation",{content:r,params:n}),XR({content:r,transform:$t($t({},Da),a),title:u,extra:{attributes:v,styles:g,classes:["".concat(tr.familyPrefix,"-layers-text")].concat(Ny(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,u=null,s=null;if(fF){var f=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();u=d.width/f,s=d.height/f}return tr.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,XR({content:r.innerHTML,width:u,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},yW=new RegExp('"',"ug"),r5=[1105920,1112319];function bW(e){var t=e.replace(yW,""),r=kj(t,0),n=r>=r5[0]&&r<=r5[1],i=t.length===2?t[0]===t[1]:!1;return{value:B2(i?t[0]:t),isSecondary:n||i}}function n5(e,t){var r="".concat(oj).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=Ac(e.children),o=a.filter(function(D){return D.getAttribute(L2)===t})[0],u=ku.getComputedStyle(e,t),s=u.getPropertyValue("font-family").match(cj),f=u.getPropertyValue("font-weight"),d=u.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&d!=="none"&&d!==""){var v=u.getPropertyValue("content"),h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?w0[s[2].toLowerCase()]:dj[f],g=bW(v),_=g.value,A=g.isSecondary,b=s[0].startsWith("FontAwesome"),w=iA(h,_),S=w;if(b){var E=$j(_);E.iconName&&E.prefix&&(w=E.iconName,h=E.prefix)}if(w&&!A&&(!o||o.getAttribute(ZE)!==h||o.getAttribute(JE)!==S)){e.setAttribute(r,S),o&&e.removeChild(o);var R=sW(),M=R.extra;M.attributes[L2]=t,W2(w,h).then(function(D){var z=oA($t($t({},R),{},{icons:{main:D,mask:aA()},prefix:h,iconName:S,extra:M,watchable:!0})),N=Wr.createElement("svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=z.map(function(L){return Hh(L)}).join(`
|
|
829
|
+
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function wW(e){return Promise.all([n5(e,"::before"),n5(e,"::after")])}function xW(e){return e.parentNode!==document.head&&!~lj.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(L2)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function i5(e){if(!!Oo)return new Promise(function(t,r){var n=Ac(e.querySelectorAll("*")).filter(xW).map(wW),i=uA.begin("searchPseudoElements");kF(),Promise.all(n).then(function(){i(),q2(),t()}).catch(function(){i(),q2(),r()})})}var _W={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=i5,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Wr:n;tr.searchPseudoElements&&i5(i)}}},a5=!1,SW={mixout:function(){return{dom:{unwatch:function(){kF(),a5=!0}}}},hooks:function(){return{bootstrap:function(){JR(z2("mutationObserverCallbacks",{}))},noAuto:function(){aW()},watch:function(r){var n=r.observeMutationsRoot;a5?q2():JR(z2("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},o5=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],u=a.slice(1).join("-");if(o&&u==="h")return n.flipX=!0,n;if(o&&u==="v")return n.flipY=!0,n;if(u=parseFloat(u),isNaN(u))return n;switch(o){case"grow":n.size=n.size+u;break;case"shrink":n.size=n.size-u;break;case"left":n.x=n.x-u;break;case"right":n.x=n.x+u;break;case"up":n.y=n.y-u;break;case"down":n.y=n.y+u;break;case"rotate":n.rotate=n.rotate+u;break}return n},r)},EW={mixout:function(){return{parse:{transform:function(r){return o5(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=o5(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,u={transform:"translate(".concat(a/2," 256)")},s="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)"),v={transform:"".concat(s," ").concat(f," ").concat(d)},h={transform:"translate(".concat(o/2*-1," -256)")},g={outer:u,inner:v,path:h};return{tag:"g",attributes:$t({},g.outer),children:[{tag:"g",attributes:$t({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:$t($t({},n.icon.attributes),g.path)}]}]}}}},Vw={x:0,y:0,width:"100%",height:"100%"};function u5(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 AW(e){return e.tag==="g"?e.children:[e]}var CW={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?$y(i.split(" ").map(function(o){return o.trim()})):aA();return a.prefix||(a.prefix=Mu()),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,u=r.maskId,s=r.transform,f=a.width,d=a.icon,v=o.width,h=o.icon,g=Ej({transform:s,containerWidth:v,iconWidth:f}),_={tag:"rect",attributes:$t($t({},Vw),{},{fill:"white"})},A=d.children?{children:d.children.map(u5)}:{},b={tag:"g",attributes:$t({},g.inner),children:[u5($t({tag:d.tag,attributes:$t($t({},d.attributes),g.path)},A))]},w={tag:"g",attributes:$t({},g.outer),children:[b]},S="mask-".concat(u||gh()),E="clip-".concat(u||gh()),R={tag:"mask",attributes:$t($t({},Vw),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[_,w]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:AW(h)},R]};return n.push(M,{tag:"rect",attributes:$t({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(S,")")},Vw)}),{children:n,attributes:i}}}},TW={provides:function(t){var r=!1;ku.matchMedia&&(r=ku.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:$t($t({},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=$t($t({},a),{},{attributeName:"opacity"}),u={tag:"circle",attributes:$t($t({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||u.children.push({tag:"animate",attributes:$t($t({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$t($t({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(u),n.push({tag:"path",attributes:$t($t({},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:$t($t({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:$t($t({},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:$t($t({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},RW={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}}}},OW=[Tj,hW,vW,gW,mW,_W,SW,EW,CW,TW,RW];jj(OW,{mixoutsTo:Ti});Ti.noAuto;Ti.config;Ti.library;Ti.dom;var H2=Ti.parse;Ti.findIconDefinition;Ti.toHtml;var IW=Ti.icon;Ti.layer;Ti.text;Ti.counter;function l5(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 cu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l5(Object(r),!0).forEach(function(n){Pf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S0(e){return S0=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},S0(e)}function Pf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PW(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 DF(e,t){if(e==null)return{};var r=PW(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 V2(e){return kW(e)||MW(e)||DW(e)||FW()}function kW(e){if(Array.isArray(e))return Y2(e)}function MW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DW(e,t){if(!!e){if(typeof e=="string")return Y2(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 Y2(e,t)}}function Y2(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 FW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
830
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NW(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,u=e.flash,s=e.spin,f=e.spinPulse,d=e.spinReverse,v=e.pulse,h=e.fixedWidth,g=e.inverse,_=e.border,A=e.listItem,b=e.flip,w=e.size,S=e.rotation,E=e.pull,R=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":u,"fa-spin":s,"fa-spin-reverse":d,"fa-spin-pulse":f,"fa-pulse":v,"fa-fw":h,"fa-inverse":g,"fa-border":_,"fa-li":A,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},Pf(t,"fa-".concat(w),typeof w<"u"&&w!==null),Pf(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),Pf(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Pf(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(R).map(function(M){return R[M]?M:null}).filter(function(M){return M})}function LW(e){return e=e-0,e===e}function FF(e){return LW(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var BW=["style"];function $W(e){return e.charAt(0).toUpperCase()+e.slice(1)}function zW(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=FF(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[$W(i)]=a:t[i]=a,t},{})}function NF(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return NF(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,f){var d=t.attributes[f];switch(f){case"class":s.attrs.className=d,delete t.attributes.class;break;case"style":s.attrs.style=zW(d);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?s.attrs[f.toLowerCase()]=d:s.attrs[FF(f)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,u=DF(r,BW);return i.attrs.style=cu(cu({},i.attrs.style),o),e.apply(void 0,[t.tag,cu(cu({},i.attrs),u)].concat(V2(n)))}var LF=!1;try{LF=!0}catch{}function UW(){if(!LF&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function s5(e){if(e&&S0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(H2.icon)return H2.icon(e);if(e===null)return null;if(e&&S0(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 Yw(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Pf({},e,t):{}}var jW=["forwardedRef"];function Uy(e){var t=e.forwardedRef,r=DF(e,jW),n=r.icon,i=r.mask,a=r.symbol,o=r.className,u=r.title,s=r.titleId,f=r.maskId,d=s5(n),v=Yw("classes",[].concat(V2(NW(r)),V2(o.split(" ")))),h=Yw("transform",typeof r.transform=="string"?H2.transform(r.transform):r.transform),g=Yw("mask",s5(i)),_=IW(d,cu(cu(cu(cu({},v),h),g),{},{symbol:a,title:u,titleId:s,maskId:f}));if(!_)return UW("Could not find icon",d),null;var A=_.abstract,b={ref:t};return Object.keys(r).forEach(function(w){Uy.defaultProps.hasOwnProperty(w)||(b[w]=r[w])}),WW(A[0],b)}Uy.displayName="FontAwesomeIcon";Uy.propTypes={beat:yr.exports.bool,border:yr.exports.bool,bounce:yr.exports.bool,className:yr.exports.string,fade:yr.exports.bool,flash:yr.exports.bool,mask:yr.exports.oneOfType([yr.exports.object,yr.exports.array,yr.exports.string]),maskId:yr.exports.string,fixedWidth:yr.exports.bool,inverse:yr.exports.bool,flip:yr.exports.oneOf(["horizontal","vertical","both"]),icon:yr.exports.oneOfType([yr.exports.object,yr.exports.array,yr.exports.string]),listItem:yr.exports.bool,pull:yr.exports.oneOf(["right","left"]),pulse:yr.exports.bool,rotation:yr.exports.oneOf([0,90,180,270]),shake:yr.exports.bool,size:yr.exports.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:yr.exports.bool,spinPulse:yr.exports.bool,spinReverse:yr.exports.bool,symbol:yr.exports.oneOfType([yr.exports.bool,yr.exports.string]),title:yr.exports.string,titleId:yr.exports.string,transform:yr.exports.oneOfType([yr.exports.string,yr.exports.object]),swapOpacity:yr.exports.bool};Uy.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var WW=NF.bind(null,Nn.createElement),BF={exports:{}},$F={exports:{}},Lm=1;function GW(){return Lm=(Lm*9301+49297)%233280,Lm/233280}function qW(e){Lm=e}var HW={nextValue:GW,seed:qW},X2=HW,Il="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",du,f5,Op;function K2(){Op=!1}function zF(e){if(!e){du!==Il&&(du=Il,K2());return}if(e!==du){if(e.length!==Il.length)throw new Error("Custom alphabet for shortid must be "+Il.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 "+Il.length+" unique characters. These characters were not unique: "+t.join(", "));du=e,K2()}}function VW(e){return zF(e),du}function YW(e){X2.seed(e),f5!==e&&(K2(),f5=e)}function XW(){du||zF(Il);for(var e=du.split(""),t=[],r=X2.nextValue(),n;e.length>0;)r=X2.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function UF(){return Op||(Op=XW(),Op)}function KW(e){var t=UF();return t[e]}function QW(){return du||Il}var sA={get:QW,characters:VW,seed:YW,lookup:KW,shuffled:UF},Xw=typeof window=="object"&&(window.crypto||window.msCrypto),Q2;!Xw||!Xw.getRandomValues?Q2=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:Q2=function(e){return Xw.getRandomValues(new Uint8Array(e))};var ZW=Q2,JW=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),u=i;u--;)if(a+=t[o[u]&n]||"",a.length===+r)return a},eG=sA,tG=ZW,rG=JW;function nG(e){for(var t=0,r,n="";!r;)n=n+rG(tG,eG.get(),1),r=e<Math.pow(16,t+1),t++;return n}var iG=nG,jg=iG,aG=1567752802062,oG=7,Wg,c5;function uG(e){var t="",r=Math.floor((Date.now()-aG)*.001);return r===c5?Wg++:(Wg=0,c5=r),t=t+jg(oG),t=t+jg(e),Wg>0&&(t=t+jg(Wg)),t=t+jg(r),t}var lG=uG,sG=sA;function fG(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+sG.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var cG=fG;(function(e){var t=sA,r=lG,n=cG,i=0;function a(f){return t.seed(f),e.exports}function o(f){return i=f,e.exports}function u(f){return f!==void 0&&t.characters(f),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=u,e.exports.isValid=n})($F);(function(e){e.exports=$F.exports})(BF);const hde=BS(BF.exports);function dG(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d5(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 p5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(r),!0).forEach(function(n){dG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ui(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 h5=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Kw=function(){return Math.random().toString(36).substring(7).split("").join(".")},v5={INIT:"@@redux/INIT"+Kw(),REPLACE:"@@redux/REPLACE"+Kw(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kw()}};function pG(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 jF(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ui(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ui(1));return r(jF)(e,t)}if(typeof e!="function")throw new Error(ui(2));var i=e,a=t,o=[],u=o,s=!1;function f(){u===o&&(u=o.slice())}function d(){if(s)throw new Error(ui(3));return a}function v(A){if(typeof A!="function")throw new Error(ui(4));if(s)throw new Error(ui(5));var b=!0;return f(),u.push(A),function(){if(!!b){if(s)throw new Error(ui(6));b=!1,f();var S=u.indexOf(A);u.splice(S,1),o=null}}}function h(A){if(!pG(A))throw new Error(ui(7));if(typeof A.type>"u")throw new Error(ui(8));if(s)throw new Error(ui(9));try{s=!0,a=i(a,A)}finally{s=!1}for(var b=o=u,w=0;w<b.length;w++){var S=b[w];S()}return A}function g(A){if(typeof A!="function")throw new Error(ui(10));i=A,h({type:v5.REPLACE})}function _(){var A,b=v;return A={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(ui(11));function E(){S.next&&S.next(d())}E();var R=b(E);return{unsubscribe:R}}},A[h5]=function(){return this},A}return h({type:v5.INIT}),n={dispatch:h,subscribe:v,getState:d,replaceReducer:g},n[h5]=_,n}function g5(e,t){return function(){return t(e.apply(this,arguments))}}function m5(e,t){if(typeof e=="function")return g5(e,t);if(typeof e!="object"||e===null)throw new Error(ui(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=g5(i,t))}return r}function WF(){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 hG(){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(ui(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},u=t.map(function(s){return s(o)});return a=WF.apply(void 0,u)(i.dispatch),p5(p5({},i),{},{dispatch:a})}}}var GF=Nn.createContext(null);function vG(e){e()}var qF=vG,gG=function(t){return qF=t},mG=function(){return qF};function yG(){var e=mG(),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 y5={notify:function(){},get:function(){return[]}};function HF(e,t){var r,n=y5;function i(v){return s(),n.subscribe(v)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function u(){return Boolean(r)}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=yG())}function f(){r&&(r(),r=void 0,n.clear(),n=y5)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:u,trySubscribe:s,tryUnsubscribe:f,getListeners:function(){return n}};return d}var VF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ut.exports.useLayoutEffect:Ut.exports.useEffect;function bG(e){var t=e.store,r=e.context,n=e.children,i=Ut.exports.useMemo(function(){var u=HF(t);return u.onStateChange=u.notifyNestedSubs,{store:t,subscription:u}},[t]),a=Ut.exports.useMemo(function(){return t.getState()},[t]);VF(function(){var u=i.subscription;return u.trySubscribe(),a!==t.getState()&&u.notifyNestedSubs(),function(){u.tryUnsubscribe(),u.onStateChange=null}},[i,a]);var o=r||GF;return Jn(o.Provider,{value:i,children:n})}var YF={exports:{}},Pr={};/** @license React v16.13.1
|
|
831
|
+
* react-is.production.min.js
|
|
832
|
+
*
|
|
833
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
834
|
+
*
|
|
835
|
+
* This source code is licensed under the MIT license found in the
|
|
836
|
+
* LICENSE file in the root directory of this source tree.
|
|
837
|
+
*/var An=typeof Symbol=="function"&&Symbol.for,fA=An?Symbol.for("react.element"):60103,cA=An?Symbol.for("react.portal"):60106,jy=An?Symbol.for("react.fragment"):60107,Wy=An?Symbol.for("react.strict_mode"):60108,Gy=An?Symbol.for("react.profiler"):60114,qy=An?Symbol.for("react.provider"):60109,Hy=An?Symbol.for("react.context"):60110,dA=An?Symbol.for("react.async_mode"):60111,Vy=An?Symbol.for("react.concurrent_mode"):60111,Yy=An?Symbol.for("react.forward_ref"):60112,Xy=An?Symbol.for("react.suspense"):60113,wG=An?Symbol.for("react.suspense_list"):60120,Ky=An?Symbol.for("react.memo"):60115,Qy=An?Symbol.for("react.lazy"):60116,xG=An?Symbol.for("react.block"):60121,_G=An?Symbol.for("react.fundamental"):60117,SG=An?Symbol.for("react.responder"):60118,EG=An?Symbol.for("react.scope"):60119;function Ri(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fA:switch(e=e.type,e){case dA:case Vy:case jy:case Gy:case Wy:case Xy:return e;default:switch(e=e&&e.$$typeof,e){case Hy:case Yy:case Qy:case Ky:case qy:return e;default:return t}}case cA:return t}}}function XF(e){return Ri(e)===Vy}Pr.AsyncMode=dA;Pr.ConcurrentMode=Vy;Pr.ContextConsumer=Hy;Pr.ContextProvider=qy;Pr.Element=fA;Pr.ForwardRef=Yy;Pr.Fragment=jy;Pr.Lazy=Qy;Pr.Memo=Ky;Pr.Portal=cA;Pr.Profiler=Gy;Pr.StrictMode=Wy;Pr.Suspense=Xy;Pr.isAsyncMode=function(e){return XF(e)||Ri(e)===dA};Pr.isConcurrentMode=XF;Pr.isContextConsumer=function(e){return Ri(e)===Hy};Pr.isContextProvider=function(e){return Ri(e)===qy};Pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fA};Pr.isForwardRef=function(e){return Ri(e)===Yy};Pr.isFragment=function(e){return Ri(e)===jy};Pr.isLazy=function(e){return Ri(e)===Qy};Pr.isMemo=function(e){return Ri(e)===Ky};Pr.isPortal=function(e){return Ri(e)===cA};Pr.isProfiler=function(e){return Ri(e)===Gy};Pr.isStrictMode=function(e){return Ri(e)===Wy};Pr.isSuspense=function(e){return Ri(e)===Xy};Pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jy||e===Vy||e===Gy||e===Wy||e===Xy||e===wG||typeof e=="object"&&e!==null&&(e.$$typeof===Qy||e.$$typeof===Ky||e.$$typeof===qy||e.$$typeof===Hy||e.$$typeof===Yy||e.$$typeof===_G||e.$$typeof===SG||e.$$typeof===EG||e.$$typeof===xG)};Pr.typeOf=Ri;(function(e){e.exports=Pr})(YF);var pA=YF.exports,AG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},CG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hA={};hA[pA.ForwardRef]=TG;hA[pA.Memo]=KF;function b5(e){return pA.isMemo(e)?KF:hA[e.$$typeof]||AG}var RG=Object.defineProperty,OG=Object.getOwnPropertyNames,w5=Object.getOwnPropertySymbols,IG=Object.getOwnPropertyDescriptor,PG=Object.getPrototypeOf,x5=Object.prototype;function QF(e,t,r){if(typeof t!="string"){if(x5){var n=PG(t);n&&n!==x5&&QF(e,n,r)}var i=OG(t);w5&&(i=i.concat(w5(t)));for(var a=b5(e),o=b5(t),u=0;u<i.length;++u){var s=i[u];if(!CG[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var f=IG(t,s);try{RG(e,s,f)}catch{}}}}return e}var _5=QF,ZF={exports:{}},Nr={};/** @license React v17.0.2
|
|
838
|
+
* react-is.production.min.js
|
|
839
|
+
*
|
|
840
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
841
|
+
*
|
|
842
|
+
* This source code is licensed under the MIT license found in the
|
|
843
|
+
* LICENSE file in the root directory of this source tree.
|
|
844
|
+
*/var Zy=60103,Jy=60106,Vh=60107,Yh=60108,Xh=60114,Kh=60109,Qh=60110,Zh=60112,Jh=60113,vA=60120,ev=60115,tv=60116,JF=60121,eN=60122,tN=60117,rN=60129,nN=60131;if(typeof Symbol=="function"&&Symbol.for){var In=Symbol.for;Zy=In("react.element"),Jy=In("react.portal"),Vh=In("react.fragment"),Yh=In("react.strict_mode"),Xh=In("react.profiler"),Kh=In("react.provider"),Qh=In("react.context"),Zh=In("react.forward_ref"),Jh=In("react.suspense"),vA=In("react.suspense_list"),ev=In("react.memo"),tv=In("react.lazy"),JF=In("react.block"),eN=In("react.server.block"),tN=In("react.fundamental"),rN=In("react.debug_trace_mode"),nN=In("react.legacy_hidden")}function pa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zy:switch(e=e.type,e){case Vh:case Xh:case Yh:case Jh:case vA:return e;default:switch(e=e&&e.$$typeof,e){case Qh:case Zh:case tv:case ev:case Kh:return e;default:return t}}case Jy:return t}}}var kG=Kh,MG=Zy,DG=Zh,FG=Vh,NG=tv,LG=ev,BG=Jy,$G=Xh,zG=Yh,UG=Jh;Nr.ContextConsumer=Qh;Nr.ContextProvider=kG;Nr.Element=MG;Nr.ForwardRef=DG;Nr.Fragment=FG;Nr.Lazy=NG;Nr.Memo=LG;Nr.Portal=BG;Nr.Profiler=$G;Nr.StrictMode=zG;Nr.Suspense=UG;Nr.isAsyncMode=function(){return!1};Nr.isConcurrentMode=function(){return!1};Nr.isContextConsumer=function(e){return pa(e)===Qh};Nr.isContextProvider=function(e){return pa(e)===Kh};Nr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zy};Nr.isForwardRef=function(e){return pa(e)===Zh};Nr.isFragment=function(e){return pa(e)===Vh};Nr.isLazy=function(e){return pa(e)===tv};Nr.isMemo=function(e){return pa(e)===ev};Nr.isPortal=function(e){return pa(e)===Jy};Nr.isProfiler=function(e){return pa(e)===Xh};Nr.isStrictMode=function(e){return pa(e)===Yh};Nr.isSuspense=function(e){return pa(e)===Jh};Nr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vh||e===Xh||e===rN||e===Yh||e===Jh||e===vA||e===nN||typeof e=="object"&&e!==null&&(e.$$typeof===tv||e.$$typeof===ev||e.$$typeof===Kh||e.$$typeof===Qh||e.$$typeof===Zh||e.$$typeof===tN||e.$$typeof===JF||e[0]===eN)};Nr.typeOf=pa;(function(e){e.exports=Nr})(ZF);var jG=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],WG=["reactReduxForwardedRef"],GG=[],qG=[null,null];function HG(e,t){var r=e[1];return[t.payload,r+1]}function S5(e,t,r){VF(function(){return e.apply(void 0,t)},r)}function VG(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function YG(e,t,r,n,i,a,o,u,s,f){if(!!e){var d=!1,v=null,h=function(){if(!d){var A=t.getState(),b,w;try{b=n(A,i.current)}catch(S){w=S,v=S}w||(v=null),b===a.current?o.current||s():(a.current=b,u.current=b,o.current=!0,f({type:"STORE_UPDATED",payload:{error:w}}))}};r.onStateChange=h,r.trySubscribe(),h();var g=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,v)throw v};return g}}var XG=function(){return[null,0]};function KG(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(E){return"ConnectAdvanced("+E+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,u=r.renderCountProp,s=u===void 0?void 0:u,f=r.shouldHandleStateChanges,d=f===void 0?!0:f,v=r.storeKey,h=v===void 0?"store":v;r.withRef;var g=r.forwardRef,_=g===void 0?!1:g,A=r.context,b=A===void 0?GF:A,w=tc(r,jG),S=b;return function(R){var M=R.displayName||R.name||"Component",D=i(M),z=ir({},w,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:d,storeKey:h,displayName:D,wrappedComponentName:M,WrappedComponent:R}),N=w.pure;function L(Ee){return e(Ee.dispatch,z)}var ee=N?Ut.exports.useMemo:function(Ee){return Ee()};function ue(Ee){var Je=Ut.exports.useMemo(function(){var le=Ee.reactReduxForwardedRef,Ne=tc(Ee,WG);return[Ee.context,le,Ne]},[Ee]),je=Je[0],me=Je[1],Fe=Je[2],qe=Ut.exports.useMemo(function(){return je&&je.Consumer&&ZF.exports.isContextConsumer(Nn.createElement(je.Consumer,null))?je:S},[je,S]),Ue=Ut.exports.useContext(qe),be=Boolean(Ee.store)&&Boolean(Ee.store.getState)&&Boolean(Ee.store.dispatch);Boolean(Ue)&&Boolean(Ue.store);var ye=be?Ee.store:Ue.store,Ke=Ut.exports.useMemo(function(){return L(ye)},[ye]),We=Ut.exports.useMemo(function(){if(!d)return qG;var le=HF(ye,be?null:Ue.subscription),Ne=le.notifyNestedSubs.bind(le);return[le,Ne]},[ye,be,Ue]),Ze=We[0],st=We[1],Rt=Ut.exports.useMemo(function(){return be?Ue:ir({},Ue,{subscription:Ze})},[be,Ue,Ze]),kt=Ut.exports.useReducer(HG,GG,XG),Ae=kt[0],nt=Ae[0],mt=kt[1];if(nt&&nt.error)throw nt.error;var _e=Ut.exports.useRef(),j=Ut.exports.useRef(Fe),te=Ut.exports.useRef(),I=Ut.exports.useRef(!1),C=ee(function(){return te.current&&Fe===j.current?te.current:Ke(ye.getState(),Fe)},[ye,nt,Fe]);S5(VG,[j,_e,I,Fe,C,te,st]),S5(YG,[d,ye,Ze,Ke,j,_e,I,te,st,mt],[ye,Ze,Ke]);var P=Ut.exports.useMemo(function(){return Jn(R,{...C,ref:me})},[me,R,C]),U=Ut.exports.useMemo(function(){return d?Jn(qe.Provider,{value:Rt,children:P}):P},[qe,P,Rt]);return U}var pe=N?Nn.memo(ue):ue;if(pe.WrappedComponent=R,pe.displayName=ue.displayName=D,_){var we=Nn.forwardRef(function(Je,je){return Jn(pe,{...Je,reactReduxForwardedRef:je})});return we.displayName=D,we.WrappedComponent=R,_5(we,R)}return _5(pe,R)}}function E5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Qw(e,t){if(E5(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])||!E5(e[r[i]],t[r[i]]))return!1;return!0}function QG(e,t){var r={},n=function(o){var u=e[o];typeof u=="function"&&(r[o]=function(){return t(u.apply(void 0,arguments))})};for(var i in e)n(i);return r}function gA(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function A5(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function iN(e,t){return function(n,i){i.displayName;var a=function(u,s){return a.dependsOnOwnProps?a.mapToProps(u,s):a.mapToProps(u)};return a.dependsOnOwnProps=!0,a.mapToProps=function(u,s){a.mapToProps=e,a.dependsOnOwnProps=A5(e);var f=a(u,s);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=A5(f),f=a(u,s)),f},a}}function ZG(e){return typeof e=="function"?iN(e):void 0}function JG(e){return e?void 0:gA(function(t){return{dispatch:t}})}function eq(e){return e&&typeof e=="object"?gA(function(t){return QG(e,t)}):void 0}const tq=[ZG,JG,eq];function rq(e){return typeof e=="function"?iN(e):void 0}function nq(e){return e?void 0:gA(function(){return{}})}const iq=[rq,nq];function aq(e,t,r){return ir({},r,e,t)}function oq(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,u;return function(f,d,v){var h=e(f,d,v);return o?(!i||!a(h,u))&&(u=h):(o=!0,u=h),u}}}function uq(e){return typeof e=="function"?oq(e):void 0}function lq(e){return e?void 0:function(){return aq}}const sq=[uq,lq];var fq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function cq(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function dq(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,u=i.areStatePropsEqual,s=!1,f,d,v,h,g;function _(E,R){return f=E,d=R,v=e(f,d),h=t(n,d),g=r(v,h,d),s=!0,g}function A(){return v=e(f,d),t.dependsOnOwnProps&&(h=t(n,d)),g=r(v,h,d),g}function b(){return e.dependsOnOwnProps&&(v=e(f,d)),t.dependsOnOwnProps&&(h=t(n,d)),g=r(v,h,d),g}function w(){var E=e(f,d),R=!u(E,v);return v=E,R&&(g=r(v,h,d)),g}function S(E,R){var M=!o(R,d),D=!a(E,f);return f=E,d=R,M&&D?A():M?b():D?w():g}return function(R,M){return s?S(R,M):_(R,M)}}function pq(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=tc(t,fq),o=r(e,a),u=n(e,a),s=i(e,a),f=a.pure?dq:cq;return f(o,u,s,e,a)}var hq=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Zw(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 vq(e,t){return e===t}function gq(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?KG:r,i=t.mapStateToPropsFactories,a=i===void 0?iq:i,o=t.mapDispatchToPropsFactories,u=o===void 0?tq:o,s=t.mergePropsFactories,f=s===void 0?sq:s,d=t.selectorFactory,v=d===void 0?pq:d;return function(g,_,A,b){b===void 0&&(b={});var w=b,S=w.pure,E=S===void 0?!0:S,R=w.areStatesEqual,M=R===void 0?vq:R,D=w.areOwnPropsEqual,z=D===void 0?Qw:D,N=w.areStatePropsEqual,L=N===void 0?Qw:N,ee=w.areMergedPropsEqual,ue=ee===void 0?Qw:ee,pe=tc(w,hq),we=Zw(g,a,"mapStateToProps"),Ee=Zw(_,u,"mapDispatchToProps"),Je=Zw(A,f,"mergeProps");return n(v,ir({methodName:"connect",getDisplayName:function(me){return"Connect("+me+")"},shouldHandleStateChanges:Boolean(g),initMapStateToProps:we,initMapDispatchToProps:Ee,initMergeProps:Je,pure:E,areStatesEqual:M,areOwnPropsEqual:z,areStatePropsEqual:L,areMergedPropsEqual:ue},pe))}}const aN=gq();gG($S.exports.unstable_batchedUpdates);function mq(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 oN(e,t){var r=Ut.exports.useState(function(){return{inputs:t,result:e()}})[0],n=Ut.exports.useRef(!0),i=Ut.exports.useRef(r),a=n.current||Boolean(t&&i.current.inputs&&mq(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return Ut.exports.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function yq(e,t){return oN(function(){return e},t)}var Ar=oN,Kt=yq,bq=!0,Jw="Invariant failed";function wq(e,t){if(!e){if(bq)throw new Error(Jw);var r=typeof t=="function"?t():t,n=r?Jw+": "+r:Jw;throw new Error(n)}}var sa=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,u=i-r,s={top:r,right:n,bottom:i,left:a,width:o,height:u,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return s},mA=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},C5=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},xq=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},ex={top:0,right:0,bottom:0,left:0},yA=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?ex:n,a=t.border,o=a===void 0?ex:a,u=t.padding,s=u===void 0?ex:u,f=sa(mA(r,i)),d=sa(C5(r,o)),v=sa(C5(d,s));return{marginBox:f,borderBox:sa(r),paddingBox:d,contentBox:v,margin:i,border:o,padding:s}},Mi=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&wq(!1),i},_q=function(){return{x:window.pageXOffset,y:window.pageYOffset}},E0=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,u=xq(n,r);return yA({borderBox:u,border:i,margin:a,padding:o})},A0=function(t,r){return r===void 0&&(r=_q()),E0(t,r)},uN=function(t,r){var n={top:Mi(r.marginTop),right:Mi(r.marginRight),bottom:Mi(r.marginBottom),left:Mi(r.marginLeft)},i={top:Mi(r.paddingTop),right:Mi(r.paddingRight),bottom:Mi(r.paddingBottom),left:Mi(r.paddingLeft)},a={top:Mi(r.borderTopWidth),right:Mi(r.borderRightWidth),bottom:Mi(r.borderBottomWidth),left:Mi(r.borderLeftWidth)};return yA({borderBox:t,margin:n,padding:i,border:a})},lN=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return uN(r,n)},T5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Sq(e,t){return!!(e===t||T5(e)&&T5(t))}function Eq(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Sq(e[r],t[r]))return!1;return!0}function tn(e,t){t===void 0&&(t=Eq);var r,n=[],i,a=!1;function o(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return a&&r===this&&t(u,n)||(i=e.apply(this,u),a=!0,r=this,n=u),i}return o}var Aq=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,u=new Array(o),s=0;s<o;s++)u[s]=arguments[s];r=u,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){!n||(cancelAnimationFrame(n),n=null)},i};const mh=Aq;function sN(e,t){}sN.bind(null,"warn");sN.bind(null,"error");function Su(){}function Cq(e,t){return ir({},e,{},t)}function $i(e,t,r){var n=t.map(function(i){var a=Cq(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 Tq="Invariant failed";function C0(e){this.message=e}C0.prototype.toString=function(){return this.message};function bt(e,t){if(!e)throw new C0(Tq)}var Rq=function(e){Uh(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=Su,n.onWindowError=function(u){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var f=u.error;f instanceof C0&&u.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(u){n.callbacks=u},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=$i(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof C0){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(Nn.Component),Oq=`
|
|
845
|
+
Press space bar to start a drag.
|
|
846
|
+
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
847
|
+
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
848
|
+
`,T0=function(t){return t+1},Iq=function(t){return`
|
|
849
|
+
You have lifted an item in position `+T0(t.source.index)+`
|
|
850
|
+
`},fN=function(t,r){var n=t.droppableId===r.droppableId,i=T0(t.index),a=T0(r.index);return n?`
|
|
851
|
+
You have moved the item from position `+i+`
|
|
852
|
+
to position `+a+`
|
|
853
|
+
`:`
|
|
854
|
+
You have moved the item from position `+i+`
|
|
855
|
+
in list `+t.droppableId+`
|
|
856
|
+
to list `+r.droppableId+`
|
|
857
|
+
in position `+a+`
|
|
858
|
+
`},cN=function(t,r,n){var i=r.droppableId===n.droppableId;return i?`
|
|
859
|
+
The item `+t+`
|
|
860
|
+
has been combined with `+n.draggableId:`
|
|
861
|
+
The item `+t+`
|
|
862
|
+
in list `+r.droppableId+`
|
|
863
|
+
has been combined with `+n.draggableId+`
|
|
864
|
+
in list `+n.droppableId+`
|
|
865
|
+
`},Pq=function(t){var r=t.destination;if(r)return fN(t.source,r);var n=t.combine;return n?cN(t.draggableId,t.source,n):"You are over an area that cannot be dropped on"},R5=function(t){return`
|
|
866
|
+
The item has returned to its starting position
|
|
867
|
+
of `+T0(t.index)+`
|
|
868
|
+
`},kq=function(t){if(t.reason==="CANCEL")return`
|
|
869
|
+
Movement cancelled.
|
|
870
|
+
`+R5(t.source)+`
|
|
871
|
+
`;var r=t.destination,n=t.combine;return r?`
|
|
872
|
+
You have dropped the item.
|
|
873
|
+
`+fN(t.source,r)+`
|
|
874
|
+
`:n?`
|
|
875
|
+
You have dropped the item.
|
|
876
|
+
`+cN(t.draggableId,t.source,n)+`
|
|
877
|
+
`:`
|
|
878
|
+
The item has been dropped while not over a drop area.
|
|
879
|
+
`+R5(t.source)+`
|
|
880
|
+
`},Bm={dragHandleUsageInstructions:Oq,onDragStart:Iq,onDragUpdate:Pq,onDragEnd:kq},En={x:0,y:0},Dn=function(t,r){return{x:t.x+r.x,y:t.y+r.y}},_i=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},Eu=function(t,r){return t.x===r.x&&t.y===r.y},Cc=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Zl=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},yh=function(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))},O5=function(t,r){return Math.min.apply(Math,r.map(function(n){return yh(t,n)}))},dN=function(t){return function(r){return{x:t(r.x),y:t(r.y)}}},Mq=function(e,t){var r=sa({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},rv=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},I5=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}]},Dq={top:0,right:0,bottom:0,left:0},Fq=function(t,r){return r?rv(t,r.scroll.diff.displacement):t},Nq=function(t,r,n){if(n&&n.increasedBy){var i;return ir({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},Lq=function(t,r){return r&&r.shouldClipSubject?Mq(r.pageMarginBox,t):sa(t)},ac=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=Fq(t.marginBox,i),o=Nq(a,n,r),u=Lq(o,i);return{page:t,withPlaceholder:r,active:u}},bA=function(e,t){e.frame||bt(!1);var r=e.frame,n=_i(t,r.scroll.initial),i=Cc(n),a=ir({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),o=ac({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a}),u=ir({},e,{frame:a,subject:o});return u};function R0(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function wA(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 Uu(e,t){if(e.find)return e.find(t);var r=wA(e,t);if(r!==-1)return e[r]}function pN(e){return Array.prototype.slice.call(e)}var hN=tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),vN=tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),e1=tn(function(e){return R0(e)}),Bq=tn(function(e){return R0(e)}),Tc=tn(function(e,t){var r=Bq(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function xA(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function t1(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var r1=tn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),$q=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=xA(a);if(!o)return null;function u(A){var b={type:"COMBINE",combine:{draggableId:A,droppableId:n.descriptor.id}};return ir({},a,{at:b})}var s=a.displaced.all,f=s.length?s[0]:null;if(t)return f?u(f):null;var d=r1(r,i);if(!f){if(!d.length)return null;var v=d[d.length-1];return u(v.descriptor.id)}var h=wA(d,function(A){return A.descriptor.id===f});h===-1&&bt(!1);var g=h-1;if(g<0)return null;var _=d[g];return u(_.descriptor.id)},Rc=function(e,t){return e.descriptor.droppableId===t.descriptor.id},gN={point:En,value:0},bh={invisible:{},visible:{},all:[]},zq={displaced:bh,displacedBy:gN,at:null},Ui=function(e,t){return function(r){return e<=r&&r<=t}},mN=function(e){var t=Ui(e.top,e.bottom),r=Ui(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),u=a&&o;if(u)return!0;var s=n.top<e.top&&n.bottom>e.bottom,f=n.left<e.left&&n.right>e.right,d=s&&f;if(d)return!0;var v=s&&o||f&&a;return v}},Uq=function(e){var t=Ui(e.top,e.bottom),r=Ui(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);return i}},_A={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yN={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},jq=function(e){return function(t){var r=Ui(t.top,t.bottom),n=Ui(t.left,t.right);return function(i){return e===_A?r(i.top)&&r(i.bottom):n(i.left)&&n(i.right)}}},Wq=function(t,r){var n=r.frame?r.frame.scroll.diff.displacement:En;return rv(t,n)},Gq=function(t,r,n){return r.subject.active?n(r.subject.active)(t):!1},qq=function(t,r,n){return n(r)(t)},SA=function(t){var r=t.target,n=t.destination,i=t.viewport,a=t.withDroppableDisplacement,o=t.isVisibleThroughFrameFn,u=a?Wq(r,n):r;return Gq(u,n,o)&&qq(u,i,o)},Hq=function(t){return SA(ir({},t,{isVisibleThroughFrameFn:mN}))},bN=function(t){return SA(ir({},t,{isVisibleThroughFrameFn:Uq}))},Vq=function(t){return SA(ir({},t,{isVisibleThroughFrameFn:jq(t.destination.axis)}))},Yq=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 Xq(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return sa(mA(r,n))}function wh(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,o=e.last;return t.reduce(function(s,f){var d=Xq(f,n),v=f.descriptor.id;s.all.push(v);var h=Hq({target:d,destination:r,viewport:i,withDroppableDisplacement:!0});if(!h)return s.invisible[f.descriptor.id]=!0,s;var g=Yq(v,o,a),_={draggableId:v,shouldAnimate:g};return s.visible[v]=_,s},{all:[],visible:{},invisible:{}})}function Kq(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function P5(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,a=Kq(t,{inHomeList:r});return{displaced:bh,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function O0(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,a=e.displacedBy,o=e.last,u=e.index,s=e.forceShouldAnimate,f=Rc(t,n);if(u==null)return P5({insideDestination:r,inHomeList:f,displacedBy:a,destination:n});var d=Uu(r,function(A){return A.descriptor.index===u});if(!d)return P5({insideDestination:r,inHomeList:f,displacedBy:a,destination:n});var v=r1(t,r),h=r.indexOf(d),g=v.slice(h),_=wh({afterDragging:g,destination:n,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:s});return{displaced:_,displacedBy:a,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:u}}}}function Du(e,t){return Boolean(t.effected[e])}var Qq=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,u=n[o],s=u.descriptor.index,f=Du(o,a);return f?t?s:s-1:t?s+1:s},Zq=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,u=n[0].descriptor.index,s=n[n.length-1].descriptor.index,f=r?s:s+1;return o<u||o>f?null:o},Jq=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,a=e.destination,o=e.insideDestination,u=e.previousImpact,s=e.viewport,f=e.afterCritical,d=u.at;if(d||bt(!1),d.type==="REORDER"){var v=Zq({isMovingForward:t,isInHomeList:r,location:d.destination,insideDestination:o});return v==null?null:O0({draggable:n,insideDestination:o,destination:a,viewport:s,last:u.displaced,displacedBy:u.displacedBy,index:v})}var h=Qq({isMovingForward:t,destination:a,displaced:u.displaced,draggables:i,combine:d.combine,afterCritical:f});return h==null?null:O0({draggable:n,insideDestination:o,destination:a,viewport:s,last:u.displaced,displacedBy:u.displacedBy,index:h})},eH=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,a=Boolean(t.visible[n]||t.invisible[n]);return Du(n,r)?a?En:Cc(i.point):a?i.point:En},tH=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=t1(r);i||bt(!1);var a=i.draggableId,o=n[a].page.borderBox.center,u=eH({displaced:r.displaced,afterCritical:t,combineWith:a,displacedBy:r.displacedBy});return Dn(o,u)},wN=function(t,r){return r.margin[t.start]+r.borderBox[t.size]/2},rH=function(t,r){return r.margin[t.end]+r.borderBox[t.size]/2},EA=function(t,r,n){return r[t.crossAxisStart]+n.margin[t.crossAxisStart]+n.borderBox[t.crossAxisSize]/2},k5=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Zl(r.line,n.marginBox[r.end]+wN(r,i),EA(r,n.marginBox,i))},M5=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Zl(r.line,n.marginBox[r.start]-rH(r,i),EA(r,n.marginBox,i))},nH=function(t){var r=t.axis,n=t.moveInto,i=t.isMoving;return Zl(r.line,n.contentBox[r.start]+wN(r,i),EA(r,n.contentBox,i))},iH=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,a=e.afterCritical,o=Tc(i.descriptor.id,n),u=r.page,s=i.axis;if(!o.length)return nH({axis:s,moveInto:i.page,isMoving:u});var f=t.displaced,d=t.displacedBy,v=f.all[0];if(v){var h=n[v];if(Du(v,a))return M5({axis:s,moveRelativeTo:h.page,isMoving:u});var g=E0(h.page,d.point);return M5({axis:s,moveRelativeTo:g,isMoving:u})}var _=o[o.length-1];if(_.descriptor.id===r.descriptor.id)return u.borderBox.center;if(Du(_.descriptor.id,a)){var A=E0(_.page,Cc(a.displacedBy.point));return k5({axis:s,moveRelativeTo:A,isMoving:u})}return k5({axis:s,moveRelativeTo:_.page,isMoving:u})},Z2=function(e,t){var r=e.frame;return r?Dn(t,r.scroll.diff.displacement):t},aH=function(t){var r=t.impact,n=t.draggable,i=t.droppable,a=t.draggables,o=t.afterCritical,u=n.page.borderBox.center,s=r.at;return!i||!s?u:s.type==="REORDER"?iH({impact:r,draggable:n,draggables:a,droppable:i,afterCritical:o}):tH({impact:r,draggables:a,afterCritical:o})},n1=function(e){var t=aH(e),r=e.droppable,n=r?Z2(r,t):t;return n},xN=function(e,t){var r=_i(t,e.scroll.initial),n=Cc(r),i=sa({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 D5(e,t){return e.map(function(r){return t[r]})}function oH(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}var uH=function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,o=xN(r,Dn(r.scroll.current,a)),u=n.frame?bA(n,Dn(n.frame.scroll.current,a)):n,s=t.displaced,f=wh({afterDragging:D5(s.all,i),destination:n,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),d=wh({afterDragging:D5(s.all,i),destination:u,displacedBy:t.displacedBy,viewport:r.frame,last:s,forceShouldAnimate:!1}),v={},h={},g=[s,f,d];s.all.forEach(function(A){var b=oH(A,g);if(b){h[A]=b;return}v[A]=!0});var _=ir({},t,{displaced:{all:s.all,invisible:v,visible:h}});return _},lH=function(e,t){return Dn(e.scroll.diff.displacement,t)},AA=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=e.viewport,i=lH(n,t),a=_i(i,r.page.borderBox.center);return Dn(r.client.borderBox.center,a)},_N=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,o=e.onlyOnMainAxis,u=o===void 0?!1:o,s=_i(n,t.page.borderBox.center),f=rv(t.page.borderBox,s),d={target:f,destination:r,withDroppableDisplacement:a,viewport:i};return u?Vq(d):bN(d)},sH=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,a=e.previousImpact,o=e.viewport,u=e.previousPageBorderBoxCenter,s=e.previousClientSelection,f=e.afterCritical;if(!n.isEnabled)return null;var d=Tc(n.descriptor.id,i),v=Rc(r,n),h=$q({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:a})||Jq({isMovingForward:t,isInHomeList:v,draggable:r,draggables:i,destination:n,insideDestination:d,previousImpact:a,viewport:o,afterCritical:f});if(!h)return null;var g=n1({impact:h,draggable:r,droppable:n,draggables:i,afterCritical:f}),_=_N({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(_){var A=AA({pageBorderBoxCenter:g,draggable:r,viewport:o});return{clientSelection:A,impact:h,scrollJumpRequest:null}}var b=_i(g,u),w=uH({impact:h,viewport:o,destination:n,draggables:i,maxScrollChange:b});return{clientSelection:s,impact:w,scrollJumpRequest:b}},Kn=function(t){var r=t.subject.active;return r||bt(!1),r},fH=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 u=n.axis,s=Ui(o[u.start],o[u.end]),f=e1(i).filter(function(v){return v!==n}).filter(function(v){return v.isEnabled}).filter(function(v){return Boolean(v.subject.active)}).filter(function(v){return mN(a.frame)(Kn(v))}).filter(function(v){var h=Kn(v);return t?o[u.crossAxisEnd]<h[u.crossAxisEnd]:h[u.crossAxisStart]<o[u.crossAxisStart]}).filter(function(v){var h=Kn(v),g=Ui(h[u.start],h[u.end]);return s(h[u.start])||s(h[u.end])||g(o[u.start])||g(o[u.end])}).sort(function(v,h){var g=Kn(v)[u.crossAxisStart],_=Kn(h)[u.crossAxisStart];return t?g-_:_-g}).filter(function(v,h,g){return Kn(v)[u.crossAxisStart]===Kn(g[0])[u.crossAxisStart]});if(!f.length)return null;if(f.length===1)return f[0];var d=f.filter(function(v){var h=Ui(Kn(v)[u.start],Kn(v)[u.end]);return h(r[u.line])});return d.length===1?d[0]:d.length>1?d.sort(function(v,h){return Kn(v)[u.start]-Kn(h)[u.start]})[0]:f.sort(function(v,h){var g=O5(r,I5(Kn(v))),_=O5(r,I5(Kn(h)));return g!==_?g-_:Kn(v)[u.start]-Kn(h)[u.start]})[0]},F5=function(t,r){var n=t.page.borderBox.center;return Du(t.descriptor.id,r)?_i(n,r.displacedBy.point):n},cH=function(t,r){var n=t.page.borderBox;return Du(t.descriptor.id,r)?rv(n,Cc(r.displacedBy.point)):n},dH=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,a=e.afterCritical,o=i.filter(function(u){return bN({target:cH(u,a),destination:n,viewport:r.frame,withDroppableDisplacement:!0})}).sort(function(u,s){var f=yh(t,Z2(n,F5(u,a))),d=yh(t,Z2(n,F5(s,a)));return f<d?-1:d<f?1:u.descriptor.index-s.descriptor.index});return o[0]||null},nv=tn(function(t,r){var n=r[t.line];return{value:n,point:Zl(t.line,n)}}),pH=function(t,r,n){var i=t.axis;if(t.descriptor.mode==="virtual")return Zl(i.line,r[i.line]);var a=t.subject.page.contentBox[i.size],o=Tc(t.descriptor.id,n),u=o.reduce(function(d,v){return d+v.client.marginBox[i.size]},0),s=u+r[i.line],f=s-a;return f<=0?null:Zl(i.line,f)},SN=function(t,r){return ir({},t,{scroll:ir({},t.scroll,{max:r})})},EN=function(t,r,n){var i=t.frame;Rc(r,t)&&bt(!1),t.subject.withPlaceholder&&bt(!1);var a=nv(t.axis,r.displaceBy).point,o=pH(t,a,n),u={placeholderSize:a,increasedBy:o,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var s=ac({page:t.subject.page,withPlaceholder:u,axis:t.axis,frame:t.frame});return ir({},t,{subject:s})}var f=o?Dn(i.scroll.max,o):i.scroll.max,d=SN(i,f),v=ac({page:t.subject.page,withPlaceholder:u,axis:t.axis,frame:d});return ir({},t,{subject:v,frame:d})},hH=function(t){var r=t.subject.withPlaceholder;r||bt(!1);var n=t.frame;if(!n){var i=ac({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return ir({},t,{subject:i})}var a=r.oldFrameMaxScroll;a||bt(!1);var o=SN(n,a),u=ac({page:t.subject.page,axis:t.axis,frame:o,withPlaceholder:null});return ir({},t,{subject:u,frame:o})},vH=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,a=e.draggables,o=e.destination,u=e.viewport,s=e.afterCritical;if(!r){if(n.length)return null;var f={displaced:bh,displacedBy:gN,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},d=n1({impact:f,draggable:i,droppable:o,draggables:a,afterCritical:s}),v=Rc(i,o)?o:EN(o,i,a),h=_N({draggable:i,destination:v,newPageBorderBoxCenter:d,viewport:u.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return h?f:null}var g=Boolean(t[o.axis.line]<=r.page.borderBox.center[o.axis.line]),_=function(){var b=r.descriptor.index;return r.descriptor.id===i.descriptor.id||g?b:b+1}(),A=nv(o.axis,i.displaceBy);return O0({draggable:i,insideDestination:n,destination:o,viewport:u,displacedBy:A,last:bh,index:_})},gH=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,a=e.draggables,o=e.droppables,u=e.viewport,s=e.afterCritical,f=fH({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:o,viewport:u});if(!f)return null;var d=Tc(f.descriptor.id,a),v=dH({pageBorderBoxCenter:r,viewport:u,destination:f,insideDestination:d,afterCritical:s}),h=vH({previousPageBorderBoxCenter:r,destination:f,draggable:n,draggables:a,moveRelativeTo:v,insideDestination:d,viewport:u,afterCritical:s});if(!h)return null;var g=n1({impact:h,draggable:n,droppable:f,draggables:a,afterCritical:s}),_=AA({pageBorderBoxCenter:g,draggable:n,viewport:u});return{clientSelection:_,impact:h,scrollJumpRequest:null}},Ei=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},mH=function(t,r){var n=Ei(t);return n?r[n]:null},yH=function(e){var t=e.state,r=e.type,n=mH(t.impact,t.dimensions.droppables),i=Boolean(n),a=t.dimensions.droppables[t.critical.droppable.id],o=n||a,u=o.axis.direction,s=u==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||u==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(s&&!i)return null;var f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",d=t.dimensions.draggables[t.critical.draggable.id],v=t.current.page.borderBoxCenter,h=t.dimensions,g=h.draggables,_=h.droppables;return s?sH({isMovingForward:f,previousPageBorderBoxCenter:v,draggable:d,destination:o,draggables:g,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):gH({isMovingForward:f,previousPageBorderBoxCenter:v,draggable:d,isOver:o,draggables:g,droppables:_,viewport:t.viewport,afterCritical:t.afterCritical})};function Rl(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function AN(e){var t=Ui(e.top,e.bottom),r=Ui(e.left,e.right);return function(i){return t(i.y)&&r(i.x)}}function bH(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function wH(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,a=n.map(function(o){var u=o.axis,s=Zl(o.axis.line,t.center[u.line],o.page.borderBox.center[u.crossAxisLine]);return{id:o.descriptor.id,distance:yh(i,s)}}).sort(function(o,u){return u.distance-o.distance});return a[0]?a[0].id:null}function xH(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=e1(n).filter(function(a){if(!a.isEnabled)return!1;var o=a.subject.active;if(!o||!bH(t,o))return!1;if(AN(o)(t.center))return!0;var u=a.axis,s=o.center[u.crossAxisLine],f=t[u.crossAxisStart],d=t[u.crossAxisEnd],v=Ui(o[u.crossAxisStart],o[u.crossAxisEnd]),h=v(f),g=v(d);return!h&&!g?!0:h?f<s:d>s});return i.length?i.length===1?i[0].descriptor.id:wH({pageBorderBox:t,draggable:r,candidates:i}):null}var CN=function(t,r){return sa(rv(t,r))},_H=function(e,t){var r=e.frame;return r?CN(t,r.scroll.diff.value):t};function TN(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}function SH(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 EH=function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,a=e.last,o=e.viewport,u=e.afterCritical,s=n.axis,f=nv(n.axis,r.displaceBy),d=f.value,v=t[s.start],h=t[s.end],g=r1(r,i),_=Uu(g,function(b){var w=b.descriptor.id,S=b.page.borderBox.center[s.line],E=Du(w,u),R=TN({displaced:a,id:w});return E?R?h<=S:v<S-d:R?h<=S+d:v<S}),A=SH({draggable:r,closest:_,inHomeList:Rc(r,n)});return O0({draggable:r,insideDestination:i,destination:n,viewport:o,last:a,displacedBy:f,index:A})},AH=4,CH=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 u=i.axis,s=nv(i.axis,t.displaceBy),f=s.value,d=r[u.start],v=r[u.end],h=r1(t,a),g=Uu(h,function(A){var b=A.descriptor.id,w=A.page.borderBox,S=w[u.size],E=S/AH,R=Du(b,o),M=TN({displaced:n.displaced,id:b});return R?M?v>w[u.start]+E&&v<w[u.end]-E:d>w[u.start]-f+E&&d<w[u.end]-f-E:M?v>w[u.start]+f+E&&v<w[u.end]+f-E:d>w[u.start]+E&&d<w[u.end]-E});if(!g)return null;var _={displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:g.descriptor.id,droppableId:i.descriptor.id}}};return _},RN=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,a=e.previousImpact,o=e.viewport,u=e.afterCritical,s=CN(r.page.borderBox,t),f=xH({pageBorderBox:s,draggable:r,droppables:i});if(!f)return zq;var d=i[f],v=Tc(d.descriptor.id,n),h=_H(d,s);return CH({pageBorderBoxWithDroppableScroll:h,draggable:r,previousImpact:a,destination:d,insideDestination:v,afterCritical:u})||EH({pageBorderBoxWithDroppableScroll:h,draggable:r,destination:d,insideDestination:v,last:a.displaced,viewport:o,afterCritical:u})},CA=function(e,t){var r;return ir({},e,(r={},r[t.descriptor.id]=t,r))},TH=function(t){var r=t.previousImpact,n=t.impact,i=t.droppables,a=Ei(r),o=Ei(n);if(!a||a===o)return i;var u=i[a];if(!u.subject.withPlaceholder)return i;var s=hH(u);return CA(i,s)},RH=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,a=e.impact,o=TH({previousImpact:i,impact:a,droppables:n}),u=Ei(a);if(!u)return o;var s=n[u];if(Rc(t,s)||s.subject.withPlaceholder)return o;var f=EN(s,t,r);return CA(o,f)},Xp=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,a=e.impact,o=e.scrollJumpRequest,u=i||t.viewport,s=n||t.dimensions,f=r||t.current.client.selection,d=_i(f,t.initial.client.selection),v={offset:d,selection:f,borderBoxCenter:Dn(t.initial.client.borderBoxCenter,d)},h={selection:Dn(v.selection,u.scroll.current),borderBoxCenter:Dn(v.borderBoxCenter,u.scroll.current),offset:Dn(v.offset,u.scroll.diff.value)},g={client:v,page:h};if(t.phase==="COLLECTING")return ir({phase:"COLLECTING"},t,{dimensions:s,viewport:u,current:g});var _=s.draggables[t.critical.draggable.id],A=a||RN({pageOffset:h.offset,draggable:_,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),b=RH({draggable:_,impact:A,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables}),w=ir({},t,{current:g,dimensions:{draggables:s.draggables,droppables:b},impact:A,viewport:u,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null});return w};function OH(e,t){return e.map(function(r){return t[r]})}var ON=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,o=t.displaced,u=OH(o.all,n),s=wh({afterDragging:u,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:a,last:o});return ir({},t,{displaced:s})},IN=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,u=n1({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o});return AA({pageBorderBoxCenter:u,draggable:r,viewport:a})},PN=function(e){var t=e.state,r=e.dimensions,n=e.viewport;t.movementMode!=="SNAP"&&bt(!1);var i=t.impact,a=n||t.viewport,o=r||t.dimensions,u=o.draggables,s=o.droppables,f=u[t.critical.draggable.id],d=Ei(i);d||bt(!1);var v=s[d],h=ON({impact:i,viewport:a,destination:v,draggables:u}),g=IN({impact:h,draggable:f,droppable:v,draggables:u,viewport:a,afterCritical:t.afterCritical});return Xp({impact:h,clientSelection:g,state:t,dimensions:o,viewport:a})},IH=function(e){return{index:e.index,droppableId:e.droppableId}},kN=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,a=nv(r.axis,t.displaceBy),o=Tc(r.descriptor.id,n),u=o.indexOf(t);u===-1&&bt(!1);var s=o.slice(u+1),f=s.reduce(function(g,_){return g[_.descriptor.id]=!0,g},{}),d={inVirtualList:r.descriptor.mode==="virtual",displacedBy:a,effected:f},v=wh({afterDragging:s,destination:r,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),h={displaced:v,displacedBy:a,at:{type:"REORDER",destination:IH(t.descriptor)}};return{impact:h,afterCritical:d}},PH=function(e,t){return{draggables:e.draggables,droppables:CA(e.droppables,t)}},kH=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=E0(t.client,r),a=A0(i,n),o=ir({},t,{placeholder:ir({},t.placeholder,{client:i}),client:i,page:a});return o},MH=function(e){var t=e.frame;return t||bt(!1),t},DH=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,u=r[o],s=MH(u),f=s.scroll.diff.value,d=Dn(i,f),v=kH({draggable:a,offset:d,initialWindowScroll:n.scroll.initial});return v})},FH=function(e){var t=e.state,r=e.published,n=r.modified.map(function(E){var R=t.dimensions.droppables[E.droppableId],M=bA(R,E.scroll);return M}),i=ir({},t.dimensions.droppables,{},hN(n)),a=vN(DH({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),o=ir({},t.dimensions.draggables,{},a);r.removals.forEach(function(E){delete o[E]});var u={droppables:i,draggables:o},s=Ei(t.impact),f=s?u.droppables[s]:null,d=u.draggables[t.critical.draggable.id],v=u.droppables[t.critical.droppable.id],h=kN({draggable:d,home:v,draggables:o,viewport:t.viewport}),g=h.impact,_=h.afterCritical,A=f&&f.isCombineEnabled?t.impact:g,b=RN({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:A,viewport:t.viewport,afterCritical:_}),w=ir({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:u,afterCritical:_,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return w;var S=ir({phase:"DROP_PENDING"},w,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return S},J2=function(t){return t.movementMode==="SNAP"},tx=function(t,r,n){var i=PH(t.dimensions,r);return!J2(t)||n?Xp({state:t,dimensions:i}):PN({state:t,dimensions:i})};function rx(e){return e.isDragging&&e.movementMode==="SNAP"?ir({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var N5={phase:"IDLE",completed:null,shouldFlush:!1},NH=function(e,t){if(e===void 0&&(e=N5),t.type==="FLUSH")return ir({},N5,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&bt(!1);var r=t.payload,n=r.critical,i=r.clientSelection,a=r.viewport,o=r.dimensions,u=r.movementMode,s=o.draggables[n.draggable.id],f=o.droppables[n.droppable.id],d={selection:i,borderBoxCenter:s.client.borderBox.center,offset:En},v={client:d,page:{selection:Dn(d.selection,a.scroll.initial),borderBoxCenter:Dn(d.selection,a.scroll.initial),offset:Dn(d.selection,a.scroll.diff.value)}},h=e1(o.droppables).every(function(mt){return!mt.isFixedOnPage}),g=kN({draggable:s,home:f,draggables:o.draggables,viewport:a}),_=g.impact,A=g.afterCritical,b={phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:o,initial:v,current:v,isWindowScrollAllowed:h,impact:_,afterCritical:A,onLiftImpact:_,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null};return b}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&bt(!1);var w=ir({phase:"COLLECTING"},e,{phase:"COLLECTING"});return w}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||bt(!1),FH({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Rl(e)||bt(!1);var S=t.payload.client;return Eu(S,e.current.client.selection)?e:Xp({state:e,clientSelection:S,impact:J2(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return rx(e);Rl(e)||bt(!1);var E=t.payload,R=E.id,M=E.newScroll,D=e.dimensions.droppables[R];if(!D)return e;var z=bA(D,M);return tx(e,z,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Rl(e)||bt(!1);var N=t.payload,L=N.id,ee=N.isEnabled,ue=e.dimensions.droppables[L];ue||bt(!1),ue.isEnabled===ee&&bt(!1);var pe=ir({},ue,{isEnabled:ee});return tx(e,pe,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Rl(e)||bt(!1);var we=t.payload,Ee=we.id,Je=we.isCombineEnabled,je=e.dimensions.droppables[Ee];je||bt(!1),je.isCombineEnabled===Je&&bt(!1);var me=ir({},je,{isCombineEnabled:Je});return tx(e,me,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Rl(e)||bt(!1),e.isWindowScrollAllowed||bt(!1);var Fe=t.payload.newScroll;if(Eu(e.viewport.scroll.current,Fe))return rx(e);var qe=xN(e.viewport,Fe);return J2(e)?PN({state:e,viewport:qe}):Xp({state:e,viewport:qe})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Rl(e))return e;var Ue=t.payload.maxScroll;if(Eu(Ue,e.viewport.scroll.max))return e;var be=ir({},e.viewport,{scroll:ir({},e.viewport.scroll,{max:Ue})});return ir({phase:"DRAGGING"},e,{viewport:be})}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"&&bt(!1);var ye=yH({state:e,type:t.type});return ye?Xp({state:e,impact:ye.impact,clientSelection:ye.clientSelection,scrollJumpRequest:ye.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var Ke=t.payload.reason;e.phase!=="COLLECTING"&&bt(!1);var We=ir({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:Ke});return We}if(t.type==="DROP_ANIMATE"){var Ze=t.payload,st=Ze.completed,Rt=Ze.dropDuration,kt=Ze.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||bt(!1);var Ae={phase:"DROP_ANIMATING",completed:st,dropDuration:Rt,newHomeClientOffset:kt,dimensions:e.dimensions};return Ae}if(t.type==="DROP_COMPLETE"){var nt=t.payload.completed;return{phase:"IDLE",completed:nt,shouldFlush:!1}}return e},LH=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},BH=function(t){return{type:"LIFT",payload:t}},$H=function(t){return{type:"INITIAL_PUBLISH",payload:t}},zH=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},UH=function(){return{type:"COLLECTION_STARTING",payload:null}},jH=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},WH=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},GH=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},MN=function(t){return{type:"MOVE",payload:t}},qH=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},HH=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},VH=function(){return{type:"MOVE_UP",payload:null}},YH=function(){return{type:"MOVE_DOWN",payload:null}},XH=function(){return{type:"MOVE_RIGHT",payload:null}},KH=function(){return{type:"MOVE_LEFT",payload:null}},TA=function(){return{type:"FLUSH",payload:null}},QH=function(t){return{type:"DROP_ANIMATE",payload:t}},RA=function(t){return{type:"DROP_COMPLETE",payload:t}},DN=function(t){return{type:"DROP",payload:t}},ZH=function(t){return{type:"DROP_PENDING",payload:t}},FN=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},JH=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,u=o.id,s=o.clientSelection,f=o.movementMode,d=r();d.phase==="DROP_ANIMATING"&&n(RA({completed:d.completed})),r().phase!=="IDLE"&&bt(!1),n(TA()),n(LH({draggableId:u,movementMode:f}));var v={shouldPublishImmediately:f==="SNAP"},h={draggableId:u,scrollOptions:v},g=e.startPublishing(h),_=g.critical,A=g.dimensions,b=g.viewport;n($H({critical:_,dimensions:A,clientSelection:s,movementMode:f,viewport:b}))}}}},eV=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)}}}},OA={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},xh={opacity:{drop:0,combining:.7},scale:{drop:.75}},IA={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},wl=IA.outOfTheWay+"s "+OA.outOfTheWay,Kp={fluid:"opacity "+wl,snap:"transform "+wl+", opacity "+wl,drop:function(t){var r=t+"s "+OA.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+wl,placeholder:"height "+wl+", width "+wl+", margin "+wl},L5=function(t){return Eu(t,En)?null:"translate("+t.x+"px, "+t.y+"px)"},eS={moveTo:L5,drop:function(t,r){var n=L5(t);return n?r?n+" scale("+xh.scale.drop+")":n:null}},tS=IA.minDropTime,NN=IA.maxDropTime,tV=NN-tS,B5=1500,rV=.6,nV=function(e){var t=e.current,r=e.destination,n=e.reason,i=yh(t,r);if(i<=0)return tS;if(i>=B5)return NN;var a=i/B5,o=tS+tV*a,u=n==="CANCEL"?o*rV:o;return Number(u.toFixed(2))},iV=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,a=e.afterCritical,o=n.draggables,u=n.droppables,s=Ei(t),f=s?u[s]:null,d=u[r.descriptor.droppableId],v=IN({impact:t,draggable:r,draggables:o,afterCritical:a,droppable:f||d,viewport:i}),h=_i(v,r.client.borderBox.center);return h},aV=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 u=ON({draggables:t,impact:o,destination:i,viewport:a,forceShouldAnimate:!0});return{impact:u,didDropInsideDroppable:!1}}if(n.at.type==="REORDER")return{impact:n,didDropInsideDroppable:!0};var s=ir({},n,{displaced:bh});return{impact:s,didDropInsideDroppable:!0}},oV=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(ZH({reason:o}));return}if(a.phase!=="IDLE"){var u=a.phase==="DROP_PENDING"&&a.isWaiting;u&&bt(!1),a.phase==="DRAGGING"||a.phase==="DROP_PENDING"||bt(!1);var s=a.critical,f=a.dimensions,d=f.draggables[a.critical.draggable.id],v=aV({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=v.impact,g=v.didDropInsideDroppable,_=g?xA(h):null,A=g?t1(h):null,b={index:s.draggable.index,droppableId:s.droppable.id},w={draggableId:d.descriptor.id,type:d.descriptor.type,source:b,reason:o,mode:a.movementMode,destination:_,combine:A},S=iV({impact:h,draggable:d,dimensions:f,viewport:a.viewport,afterCritical:a.afterCritical}),E={critical:a.critical,afterCritical:a.afterCritical,result:w,impact:h},R=!Eu(a.current.client.offset,S)||Boolean(w.combine);if(!R){r(RA({completed:E}));return}var M=nV({current:a.current.client.offset,destination:S,reason:o}),D={newHomeClientOffset:S,dropDuration:M,completed:E};r(QH(D))}}}},LN=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function uV(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}function lV(e){var t=e.onWindowScroll;function r(){t(LN())}var n=mh(r),i=uV(n),a=Su;function o(){return a!==Su}function u(){o()&&bt(!1),a=$i(window,[i])}function s(){o()||bt(!1),n.cancel(),a(),a=Su}return{start:u,stop:s,isActive:o}}var sV=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},fV=function(e){var t=lV({onWindowScroll:function(n){e.dispatch(qH({newScroll:n}))}});return function(r){return function(n){!t.isActive()&&n.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&sV(n)&&t.stop(),r(n)}}},cV=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},dV=function(){var e=[],t=function(a){var o=wA(e,function(f){return f.timerId===a});o===-1&&bt(!1);var u=e.splice(o,1),s=u[0];s.callback()},r=function(a){var o=setTimeout(function(){return t(o)}),u={timerId:o,callback:a};e.push(u)},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}},pV=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.droppableId===r.droppableId&&t.index===r.index},hV=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.draggableId===r.draggableId&&t.droppableId===r.droppableId},vV=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},rp=function(t,r){r()},Gg=function(t,r){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:r}},nx=function(t,r,n,i){if(!t){n(i(r));return}var a=cV(n),o={announce:a};t(r,o),a.wasCalled()||n(i(r))},gV=function(e,t){var r=dV(),n=null,i=function(h,g){n&&bt(!1),rp("onBeforeCapture",function(){var _=e().onBeforeCapture;if(_){var A={draggableId:h,mode:g};_(A)}})},a=function(h,g){n&&bt(!1),rp("onBeforeDragStart",function(){var _=e().onBeforeDragStart;_&&_(Gg(h,g))})},o=function(h,g){n&&bt(!1);var _=Gg(h,g);n={mode:g,lastCritical:h,lastLocation:_.source,lastCombine:null},r.add(function(){rp("onDragStart",function(){return nx(e().onDragStart,_,t,Bm.onDragStart)})})},u=function(h,g){var _=xA(g),A=t1(g);n||bt(!1);var b=!vV(h,n.lastCritical);b&&(n.lastCritical=h);var w=!pV(n.lastLocation,_);w&&(n.lastLocation=_);var S=!hV(n.lastCombine,A);if(S&&(n.lastCombine=A),!(!b&&!w&&!S)){var E=ir({},Gg(h,n.mode),{combine:A,destination:_});r.add(function(){rp("onDragUpdate",function(){return nx(e().onDragUpdate,E,t,Bm.onDragUpdate)})})}},s=function(){n||bt(!1),r.flush()},f=function(h){n||bt(!1),n=null,rp("onDragEnd",function(){return nx(e().onDragEnd,h,t,Bm.onDragEnd)})},d=function(){if(!!n){var h=ir({},Gg(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});f(h)}};return{beforeCapture:i,beforeStart:a,start:o,update:u,flush:s,drop:f,abort:d}},mV=function(e,t){var r=gV(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 u=a.payload.completed.result;r.flush(),i(a),r.drop(u);return}if(i(a),a.type==="FLUSH"){r.abort();return}var s=n.getState();s.phase==="DRAGGING"&&r.update(s.critical,s.impact)}}}},yV=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"&&bt(!1),e.dispatch(RA({completed:n.completed}))}}},bV=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 s=e.getState();s.phase==="DROP_ANIMATING"&&e.dispatch(FN())}};r=requestAnimationFrame(function(){r=null,t=$i(window,[o])})}}}},wV=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)}}}},xV=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()}}}}}},_V=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},SV=function(e){return function(t){return function(r){return function(n){if(_V(n)){e.stop(),r(n);return}if(n.type==="INITIAL_PUBLISH"){r(n);var i=t.getState();i.phase!=="DRAGGING"&&bt(!1),e.start(i);return}r(n),e.scroll(t.getState())}}}},EV=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(DN({reason:n.reason})))}}}},AV=WF,CV=function(e){var t=e.dimensionMarshal,r=e.focusMarshal,n=e.styleMarshal,i=e.getResponders,a=e.announce,o=e.autoScroller;return jF(NH,AV(hG(eV(n),wV(t),JH(t),oV,yV,bV,EV,SV(o),fV,xV(r),mV(i,a))))},ix=function(){return{additions:{},removals:{},modified:{}}};function TV(e){var t=e.registry,r=e.callbacks,n=ix(),i=null,a=function(){i||(r.collectionStarting(),i=requestAnimationFrame(function(){i=null;var d=n,v=d.additions,h=d.removals,g=d.modified,_=Object.keys(v).map(function(w){return t.draggable.getById(w).getDimension(En)}).sort(function(w,S){return w.descriptor.index-S.descriptor.index}),A=Object.keys(g).map(function(w){var S=t.droppable.getById(w),E=S.callbacks.getScrollWhileDragging();return{droppableId:w,scroll:E}}),b={additions:_,removals:Object.keys(h),modified:A};n=ix(),r.publish(b)}))},o=function(d){var v=d.descriptor.id;n.additions[v]=d,n.modified[d.descriptor.droppableId]=!0,n.removals[v]&&delete n.removals[v],a()},u=function(d){var v=d.descriptor;n.removals[v.id]=!0,n.modified[v.droppableId]=!0,n.additions[v.id]&&delete n.additions[v.id],a()},s=function(){!i||(cancelAnimationFrame(i),i=null,n=ix())};return{add:o,remove:u,stop:s}}var BN=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=_i({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},$N=function(){var e=document.documentElement;return e||bt(!1),e},zN=function(){var e=$N(),t=BN({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},RV=function(){var e=LN(),t=zN(),r=e.y,n=e.x,i=$N(),a=i.clientWidth,o=i.clientHeight,u=n+a,s=r+o,f=sa({top:r,left:n,right:u,bottom:s}),d={frame:f,scroll:{initial:e,current:e,max:t,diff:{value:En,displacement:En}}};return d},OV=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry,i=RV(),a=i.scroll.current,o=t.droppable,u=n.droppable.getAllByType(o.type).map(function(v){return v.callbacks.getDimensionAndWatchScroll(a,r)}),s=n.draggable.getAllByType(t.draggable.type).map(function(v){return v.getDimension(a)}),f={draggables:vN(s),droppables:hN(u)},d={dimensions:f,critical:t,viewport:i};return d};function $5(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 IV=function(e,t){var r=null,n=TV({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,_){e.droppable.exists(g)||bt(!1),r&&t.updateDroppableIsEnabled({id:g,isEnabled:_})},a=function(g,_){!r||(e.droppable.exists(g)||bt(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:_}))},o=function(g,_){!r||(e.droppable.exists(g)||bt(!1),t.updateDroppableScroll({id:g,newScroll:_}))},u=function(g,_){!r||e.droppable.getById(g).callbacks.scroll(_)},s=function(){if(!!r){n.stop();var g=r.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(_){return _.callbacks.dragStopped()}),r.unsubscribe(),r=null}},f=function(g){r||bt(!1);var _=r.critical.draggable;g.type==="ADDITION"&&$5(e,_,g.value)&&n.add(g.value),g.type==="REMOVAL"&&$5(e,_,g.value)&&n.remove(g.value)},d=function(g){r&&bt(!1);var _=e.draggable.getById(g.draggableId),A=e.droppable.getById(_.descriptor.droppableId),b={draggable:_.descriptor,droppable:A.descriptor},w=e.subscribe(f);return r={critical:b,unsubscribe:w},OV({critical:b,registry:e,scrollOptions:g.scrollOptions})},v={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:u,updateDroppableScroll:o,startPublishing:d,stopPublishing:s};return v},UN=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},PV=function(e){window.scrollBy(e.x,e.y)},kV=tn(function(e){return e1(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),MV=function(t,r){var n=Uu(kV(r),function(i){return i.frame||bt(!1),AN(i.frame.pageMarginBox)(t)});return n},DV=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=MV(t,n);return a},Au={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},FV=function(e,t){var r=e[t.size]*Au.startFromPercentage,n=e[t.size]*Au.maxScrollAtPercentage,i={startScrollingFrom:r,maxScrollValueAt:n};return i},jN=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},PA=1,NV=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Au.maxPixelScroll;if(e===t.startScrollingFrom)return PA;var r=jN({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=1-r,i=Au.maxPixelScroll*Au.ease(n);return Math.ceil(i)},z5=Au.durationDampening.accelerateAt,U5=Au.durationDampening.stopDampeningAt,LV=function(e,t){var r=t,n=U5,i=Date.now(),a=i-r;if(a>=U5)return e;if(a<z5)return PA;var o=jN({startOfRange:z5,endOfRange:n,current:a}),u=e*Au.ease(o);return Math.ceil(u)},j5=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,a=NV(t,r);return a===0?0:i?Math.max(LV(a,n),PA):a},W5=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=FV(t,i),u=r[i.end]<r[i.start];return u?j5({distanceToEdge:r[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a}):-1*j5({distanceToEdge:r[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a})},BV=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}},$V=dN(function(e){return e===0?0:e}),WN=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},u=W5({container:r,distanceToEdges:o,dragStartTime:t,axis:_A,shouldUseTimeDampening:a}),s=W5({container:r,distanceToEdges:o,dragStartTime:t,axis:yN,shouldUseTimeDampening:a}),f=$V({x:s,y:u});if(Eu(f,En))return null;var d=BV({container:r,subject:n,proposedScroll:f});return d?Eu(d,En)?null:d:null},zV=dN(function(e){return e===0?0:e>0?1:-1}),kA=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=Dn(r,i),o={x:e(a.x,n.x),y:e(a.y,n.y)};return Eu(o,En)?null:o}}(),GN=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=zV(i),u=kA({max:a,current:n,change:o});return!u||o.x!==0&&u.x===0||o.y!==0&&u.y===0},MA=function(t,r){return GN({current:t.scroll.current,max:t.scroll.max,change:r})},UV=function(t,r){if(!MA(t,r))return null;var n=t.scroll.max,i=t.scroll.current;return kA({current:i,max:n,change:r})},DA=function(t,r){var n=t.frame;return n?GN({current:n.scroll.current,max:n.scroll.max,change:r}):!1},jV=function(t,r){var n=t.frame;return!n||!DA(t,r)?null:kA({current:n.scroll.current,max:n.scroll.max,change:r})},WV=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=WN({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:a});return o&&MA(t,o)?o:null},GV=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 u=WN({dragStartTime:i,container:o.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:a});return u&&DA(t,u)?u:null},G5=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,a=e.scrollDroppable,o=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id],s=u.page.marginBox;if(t.isWindowScrollAllowed){var f=t.viewport,d=WV({dragStartTime:r,viewport:f,subject:s,center:o,shouldUseTimeDampening:n});if(d){i(d);return}}var v=DV({center:o,destination:Ei(t.impact),droppables:t.dimensions.droppables});if(!!v){var h=GV({dragStartTime:r,droppable:v,subject:s,center:o,shouldUseTimeDampening:n});h&&a(v.descriptor.id,h)}},qV=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=mh(t),i=mh(r),a=null,o=function(d){a||bt(!1);var v=a,h=v.shouldUseTimeDampening,g=v.dragStartTime;G5({state:d,scrollWindow:n,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:h})},u=function(d){a&&bt(!1);var v=Date.now(),h=!1,g=function(){h=!0};G5({state:d,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),a={dragStartTime:v,shouldUseTimeDampening:h},h&&o(d)},s=function(){!a||(n.cancel(),i.cancel(),a=null)};return{start:u,stop:s,scroll:o}},HV=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(f,d){var v=Dn(f.current.client.selection,d);t({client:v})},a=function(f,d){if(!DA(f,d))return d;var v=jV(f,d);if(!v)return r(f.descriptor.id,d),null;var h=_i(d,v);r(f.descriptor.id,h);var g=_i(d,h);return g},o=function(f,d,v){if(!f||!MA(d,v))return v;var h=UV(d,v);if(!h)return n(v),null;var g=_i(v,h);n(g);var _=_i(v,g);return _},u=function(f){var d=f.scrollJumpRequest;if(!!d){var v=Ei(f.impact);v||bt(!1);var h=a(f.dimensions.droppables[v],d);if(!!h){var g=f.viewport,_=o(f.isWindowScrollAllowed,g,h);!_||i(f,_)}}};return u},VV=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=qV({scrollWindow:r,scrollDroppable:t}),a=HV({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)}},u={scroll:o,start:i.start,stop:i.stop};return u},oc="data-rbd",uc=function(){var e=oc+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),rS=function(){var e=oc+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),YV=function(){var e=oc+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),q5={contextId:oc+"-scroll-container-context-id"},XV=function(t){return function(r){return"["+r+'="'+t+'"]'}},np=function(t,r){return t.map(function(n){var i=n.styles[r];return i?n.selector+" { "+i+" }":""}).join(" ")},KV="pointer-events: none;",QV=function(e){var t=XV(e),r=function(){var u=`
|
|
881
|
+
cursor: -webkit-grab;
|
|
882
|
+
cursor: grab;
|
|
883
|
+
`;return{selector:t(uc.contextId),styles:{always:`
|
|
884
|
+
-webkit-touch-callout: none;
|
|
885
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
886
|
+
touch-action: manipulation;
|
|
887
|
+
`,resting:u,dragging:KV,dropAnimating:u}}}(),n=function(){var u=`
|
|
888
|
+
transition: `+Kp.outOfTheWay+`;
|
|
889
|
+
`;return{selector:t(rS.contextId),styles:{dragging:u,dropAnimating:u,userCancel:u}}}(),i={selector:t(YV.contextId),styles:{always:"overflow-anchor: none;"}},a={selector:"body",styles:{dragging:`
|
|
890
|
+
cursor: grabbing;
|
|
891
|
+
cursor: -webkit-grabbing;
|
|
892
|
+
user-select: none;
|
|
893
|
+
-webkit-user-select: none;
|
|
894
|
+
-moz-user-select: none;
|
|
895
|
+
-ms-user-select: none;
|
|
896
|
+
overflow-anchor: none;
|
|
897
|
+
`}},o=[n,r,i,a];return{always:np(o,"always"),resting:np(o,"resting"),dragging:np(o,"dragging"),dropAnimating:np(o,"dropAnimating"),userCancel:np(o,"userCancel")}},Ai=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ut.exports.useLayoutEffect:Ut.exports.useEffect,ax=function(){var t=document.querySelector("head");return t||bt(!1),t},H5=function(t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function ZV(e,t){var r=Ar(function(){return QV(e)},[e]),n=Ut.exports.useRef(null),i=Ut.exports.useRef(null),a=Kt(tn(function(v){var h=i.current;h||bt(!1),h.textContent=v}),[]),o=Kt(function(v){var h=n.current;h||bt(!1),h.textContent=v},[]);Ai(function(){!n.current&&!i.current||bt(!1);var v=H5(t),h=H5(t);return n.current=v,i.current=h,v.setAttribute(oc+"-always",e),h.setAttribute(oc+"-dynamic",e),ax().appendChild(v),ax().appendChild(h),o(r.always),a(r.resting),function(){var g=function(A){var b=A.current;b||bt(!1),ax().removeChild(b),A.current=null};g(n),g(i)}},[t,o,a,r.always,r.resting,e]);var u=Kt(function(){return a(r.dragging)},[a,r.dragging]),s=Kt(function(v){if(v==="DROP"){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),f=Kt(function(){!i.current||a(r.resting)},[a,r.resting]),d=Ar(function(){return{dragging:u,dropping:s,resting:f}},[u,s,f]);return d}var qN=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function i1(e){return e instanceof qN(e).HTMLElement}function JV(e,t){var r="["+uc.contextId+'="'+e+'"]',n=pN(document.querySelectorAll(r));if(!n.length)return null;var i=Uu(n,function(a){return a.getAttribute(uc.draggableId)===t});return!i||!i1(i)?null:i}function eY(e){var t=Ut.exports.useRef({}),r=Ut.exports.useRef(null),n=Ut.exports.useRef(null),i=Ut.exports.useRef(!1),a=Kt(function(h,g){var _={id:h,focus:g};return t.current[h]=_,function(){var b=t.current,w=b[h];w!==_&&delete b[h]}},[]),o=Kt(function(h){var g=JV(e,h);g&&g!==document.activeElement&&g.focus()},[e]),u=Kt(function(h,g){r.current===h&&(r.current=g)},[]),s=Kt(function(){n.current||!i.current||(n.current=requestAnimationFrame(function(){n.current=null;var h=r.current;h&&o(h)}))},[o]),f=Kt(function(h){r.current=null;var g=document.activeElement;!g||g.getAttribute(uc.draggableId)===h&&(r.current=h)},[]);Ai(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:s,tryShiftRecord:u}},[a,f,s,u]);return d}function tY(){var e={draggables:{},droppables:{}},t=[];function r(v){return t.push(v),function(){var g=t.indexOf(v);g!==-1&&t.splice(g,1)}}function n(v){t.length&&t.forEach(function(h){return h(v)})}function i(v){return e.draggables[v]||null}function a(v){var h=i(v);return h||bt(!1),h}var o={register:function(h){e.draggables[h.descriptor.id]=h,n({type:"ADDITION",value:h})},update:function(h,g){var _=e.draggables[g.descriptor.id];!_||_.uniqueId===h.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[h.descriptor.id]=h)},unregister:function(h){var g=h.descriptor.id,_=i(g);!_||h.uniqueId===_.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 R0(e.draggables).filter(function(g){return g.descriptor.type===h})}};function u(v){return e.droppables[v]||null}function s(v){var h=u(v);return h||bt(!1),h}var f={register:function(h){e.droppables[h.descriptor.id]=h},unregister:function(h){var g=u(h.descriptor.id);!g||h.uniqueId===g.uniqueId&&delete e.droppables[h.descriptor.id]},getById:s,findById:u,exists:function(h){return Boolean(u(h))},getAllByType:function(h){return R0(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 rY(){var e=Ar(tY,[]);return Ut.exports.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var FA=Nn.createContext(null),I0=function(){var e=document.body;return e||bt(!1),e},nY={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},iY=function(t){return"rbd-announcement-"+t};function aY(e){var t=Ar(function(){return iY(e)},[e]),r=Ut.exports.useRef(null);Ut.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"),ir(a.style,nY),I0().appendChild(a),function(){setTimeout(function(){var s=I0();s.contains(a)&&s.removeChild(a),a===r.current&&(r.current=null)})}},[t]);var n=Kt(function(i){var a=r.current;if(a){a.textContent=i;return}},[]);return n}var oY=0,uY={separator:"::"};function NA(e,t){return t===void 0&&(t=uY),Ar(function(){return""+e+t.separator+oY++},[t.separator,e])}function lY(e){var t=e.contextId,r=e.uniqueId;return"rbd-hidden-text-"+t+"-"+r}function sY(e){var t=e.contextId,r=e.text,n=NA("hidden-text",{separator:"-"}),i=Ar(function(){return lY({contextId:t,uniqueId:n})},[n,t]);return Ut.exports.useEffect(function(){var o=document.createElement("div");return o.id=i,o.textContent=r,o.style.display="none",I0().appendChild(o),function(){var s=I0();s.contains(o)&&s.removeChild(o)}},[i,r]),i}var a1=Nn.createContext(null);function HN(e){var t=Ut.exports.useRef(e);return Ut.exports.useEffect(function(){t.current=e}),t}function fY(){var e=null;function t(){return Boolean(e)}function r(o){return o===e}function n(o){e&&bt(!1);var u={abandon:o};return e=u,u}function i(){e||bt(!1),e=null}function a(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:r,claim:n,release:i,tryAbandon:a}}var cY=9,dY=13,LA=27,VN=32,pY=33,hY=34,vY=35,gY=36,mY=37,yY=38,bY=39,wY=40,qg,xY=(qg={},qg[dY]=!0,qg[cY]=!0,qg),YN=function(e){xY[e.keyCode]&&e.preventDefault()},o1=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=Uu(t,function(n){return"on"+n in document});return r||e}(),XN=0,V5=5;function _Y(e,t){return Math.abs(t.x-e.x)>=V5||Math.abs(t.y-e.y)>=V5}var Y5={type:"IDLE"};function SY(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(o){var u=o.button,s=o.clientX,f=o.clientY;if(u===XN){var d={x:s,y:f},v=n();if(v.type==="DRAGGING"){o.preventDefault(),v.actions.move(d);return}v.type!=="PENDING"&&bt(!1);var h=v.point;if(!!_Y(h,d)){o.preventDefault();var g=v.actions.fluidLift(d);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(o){var u=n();if(u.type!=="DRAGGING"){t();return}o.preventDefault(),u.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:function(o){n().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:function(o){var u=n();if(u.type==="PENDING"){t();return}if(o.keyCode===LA){o.preventDefault(),t();return}YN(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){n().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(o){var u=n();if(u.type==="IDLE"&&bt(!1),u.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:o1,fn:t}]}function EY(e){var t=Ut.exports.useRef(Y5),r=Ut.exports.useRef(Su),n=Ar(function(){return{eventName:"mousedown",fn:function(v){if(!v.defaultPrevented&&v.button===XN&&!(v.ctrlKey||v.metaKey||v.shiftKey||v.altKey)){var h=e.findClosestDraggableId(v);if(!!h){var g=e.tryGetLock(h,o,{sourceEvent:v});if(!!g){v.preventDefault();var _={x:v.clientX,y:v.clientY};r.current(),f(g,_)}}}}}},[e]),i=Ar(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(v){if(!v.defaultPrevented){var h=e.findClosestDraggableId(v);if(!!h){var g=e.findOptionsForDraggable(h);!g||g.shouldRespectForcePress||!e.canGetLock(h)||v.preventDefault()}}}}},[e]),a=Kt(function(){var v={passive:!1,capture:!0};r.current=$i(window,[i,n],v)},[i,n]),o=Kt(function(){var d=t.current;d.type!=="IDLE"&&(t.current=Y5,r.current(),a())},[a]),u=Kt(function(){var d=t.current;o(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[o]),s=Kt(function(){var v={capture:!0,passive:!1},h=SY({cancel:u,completed:o,getPhase:function(){return t.current},setPhase:function(_){t.current=_}});r.current=$i(window,h,v)},[u,o]),f=Kt(function(v,h){t.current.type!=="IDLE"&&bt(!1),t.current={type:"PENDING",point:h,actions:v},s()},[s]);Ai(function(){return a(),function(){r.current()}},[a])}var sf;function AY(){}var CY=(sf={},sf[hY]=!0,sf[pY]=!0,sf[gY]=!0,sf[vY]=!0,sf);function TY(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:function(a){if(a.keyCode===LA){a.preventDefault(),r();return}if(a.keyCode===VN){a.preventDefault(),n();return}if(a.keyCode===wY){a.preventDefault(),e.moveDown();return}if(a.keyCode===yY){a.preventDefault(),e.moveUp();return}if(a.keyCode===bY){a.preventDefault(),e.moveRight();return}if(a.keyCode===mY){a.preventDefault(),e.moveLeft();return}if(CY[a.keyCode]){a.preventDefault();return}YN(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:o1,fn:r}]}function RY(e){var t=Ut.exports.useRef(AY),r=Ar(function(){return{eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==VN)return;var o=e.findClosestDraggableId(a);if(!o)return;var u=e.tryGetLock(o,d,{sourceEvent:a});if(!u)return;a.preventDefault();var s=!0,f=u.snapLift();t.current();function d(){s||bt(!1),s=!1,t.current(),n()}t.current=$i(window,TY(f,d),{capture:!0,passive:!1})}}},[e]),n=Kt(function(){var a={passive:!1,capture:!0};t.current=$i(window,[r],a)},[r]);Ai(function(){return n(),function(){t.current()}},[n])}var ox={type:"IDLE"},OY=120,IY=.15;function PY(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===LA&&i.preventDefault(),t()}},{eventName:o1,fn:t}]}function kY(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 u=a.touches[0],s=u.clientX,f=u.clientY,d={x:s,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"&&bt(!1);var u=a.touches[0];if(!!u){var s=u.force>=IY;if(!!s){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:o1,fn:t}]}function MY(e){var t=Ut.exports.useRef(ox),r=Ut.exports.useRef(Su),n=Kt(function(){return t.current},[]),i=Kt(function(g){t.current=g},[]),a=Ar(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var _=e.findClosestDraggableId(g);if(!!_){var A=e.tryGetLock(_,u,{sourceEvent:g});if(!!A){var b=g.touches[0],w=b.clientX,S=b.clientY,E={x:w,y:S};r.current(),v(A,E)}}}}}},[e]),o=Kt(function(){var g={capture:!0,passive:!1};r.current=$i(window,[a],g)},[a]),u=Kt(function(){var h=t.current;h.type!=="IDLE"&&(h.type==="PENDING"&&clearTimeout(h.longPressTimerId),i(ox),r.current(),o())},[o,i]),s=Kt(function(){var h=t.current;u(),h.type==="DRAGGING"&&h.actions.cancel({shouldBlockNextClick:!0}),h.type==="PENDING"&&h.actions.abort()},[u]),f=Kt(function(){var g={capture:!0,passive:!1},_={cancel:s,completed:u,getPhase:n},A=$i(window,kY(_),g),b=$i(window,PY(_),g);r.current=function(){A(),b()}},[s,n,u]),d=Kt(function(){var g=n();g.type!=="PENDING"&&bt(!1);var _=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:_,hasMoved:!1})},[n,i]),v=Kt(function(g,_){n().type!=="IDLE"&&bt(!1);var A=setTimeout(d,OY);i({type:"PENDING",point:_,actions:g,longPressTimerId:A}),f()},[f,n,i,d]);Ai(function(){return o(),function(){r.current();var _=n();_.type==="PENDING"&&(clearTimeout(_.longPressTimerId),i(ox))}},[n,o,i]),Ai(function(){var g=$i(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var DY={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function KN(e,t){if(t==null)return!1;var r=Boolean(DY[t.tagName.toLowerCase()]);if(r)return!0;var n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:KN(e,t.parentElement)}function FY(e,t){var r=t.target;return i1(r)?KN(e,r):!1}var NY=function(e){return sa(e.getBoundingClientRect()).center};function LY(e){return e instanceof qN(e).Element}var BY=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=Uu(t,function(n){return n in Element.prototype});return r||e}();function QN(e,t){return e==null?null:e[BY](t)?e:QN(e.parentElement,t)}function $Y(e,t){return e.closest?e.closest(t):QN(e,t)}function zY(e){return"["+uc.contextId+'="'+e+'"]'}function UY(e,t){var r=t.target;if(!LY(r))return null;var n=zY(e),i=$Y(r,n);return!i||!i1(i)?null:i}function jY(e,t){var r=UY(e,t);return r?r.getAttribute(uc.draggableId):null}function WY(e,t){var r="["+rS.contextId+'="'+e+'"]',n=pN(document.querySelectorAll(r)),i=Uu(n,function(a){return a.getAttribute(rS.id)===t});return!i||!i1(i)?null:i}function GY(e){e.preventDefault()}function Hg(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||t!==r)}function ZN(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||!UN(r.getState(),i))}function qY(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,a=e.draggableId,o=e.forceSensorStop,u=e.sourceEvent,s=ZN({lockAPI:t,store:n,registry:i,draggableId:a});if(!s)return null;var f=i.draggable.getById(a),d=WY(r,f.descriptor.id);if(!d||u&&!f.options.canDragInteractiveElements&&FY(d,u))return null;var v=t.claim(o||Su),h="PRE_DRAG";function g(){return f.options.shouldRespectForcePress}function _(){return t.isActive(v)}function A(D,z){Hg({expected:D,phase:h,isLockActive:_,shouldWarn:!0})&&n.dispatch(z())}var b=A.bind(null,"DRAGGING");function w(D){function z(){t.release(),h="COMPLETED"}h!=="PRE_DRAG"&&(z(),h!=="PRE_DRAG"&&bt(!1)),n.dispatch(BH(D.liftActionArgs)),h="DRAGGING";function N(L,ee){if(ee===void 0&&(ee={shouldBlockNextClick:!1}),D.cleanup(),ee.shouldBlockNextClick){var ue=$i(window,[{eventName:"click",fn:GY,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ue)}z(),n.dispatch(DN({reason:L}))}return ir({isActive:function(){return Hg({expected:"DRAGGING",phase:h,isLockActive:_,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(ee){return N("DROP",ee)},cancel:function(ee){return N("CANCEL",ee)}},D.actions)}function S(D){var z=mh(function(L){b(function(){return MN({client:L})})}),N=w({liftActionArgs:{id:a,clientSelection:D,movementMode:"FLUID"},cleanup:function(){return z.cancel()},actions:{move:z}});return ir({},N,{move:z})}function E(){var D={moveUp:function(){return b(VH)},moveRight:function(){return b(XH)},moveDown:function(){return b(YH)},moveLeft:function(){return b(KH)}};return w({liftActionArgs:{id:a,clientSelection:NY(d),movementMode:"SNAP"},cleanup:Su,actions:D})}function R(){var D=Hg({expected:"PRE_DRAG",phase:h,isLockActive:_,shouldWarn:!0});D&&t.release()}var M={isActive:function(){return Hg({expected:"PRE_DRAG",phase:h,isLockActive:_,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:S,snapLift:E,abort:R};return M}var HY=[EY,RY,MY];function VY(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,a=e.enableDefaultSensors,o=[].concat(a?HY:[],i||[]),u=Ut.exports.useState(function(){return fY()})[0],s=Kt(function(S,E){S.isDragging&&!E.isDragging&&u.tryAbandon()},[u]);Ai(function(){var S=r.getState(),E=r.subscribe(function(){var R=r.getState();s(S,R),S=R});return E},[u,r,s]),Ai(function(){return u.tryAbandon},[u.tryAbandon]);for(var f=Kt(function(w){return ZN({lockAPI:u,registry:n,store:r,draggableId:w})},[u,n,r]),d=Kt(function(w,S,E){return qY({lockAPI:u,registry:n,contextId:t,store:r,draggableId:w,forceSensorStop:S,sourceEvent:E&&E.sourceEvent?E.sourceEvent:null})},[t,u,n,r]),v=Kt(function(w){return jY(t,w)},[t]),h=Kt(function(w){var S=n.draggable.findById(w);return S?S.options:null},[n.draggable]),g=Kt(function(){!u.isClaimed()||(u.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(TA()))},[u,r]),_=Kt(u.isClaimed,[u]),A=Ar(function(){return{canGetLock:f,tryGetLock:d,findClosestDraggableId:v,findOptionsForDraggable:h,tryReleaseLock:g,isLockClaimed:_}},[f,d,v,h,g,_]),b=0;b<o.length;b++)o[b](A)}var YY=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function ip(e){return e.current||bt(!1),e.current}function XY(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,o=Ut.exports.useRef(null),u=HN(e),s=Kt(function(){return YY(u.current)},[u]),f=aY(t),d=sY({contextId:t,text:a}),v=ZV(t,i),h=Kt(function(L){ip(o).dispatch(L)},[]),g=Ar(function(){return m5({publishWhileDragging:zH,updateDroppableScroll:jH,updateDroppableIsEnabled:WH,updateDroppableIsCombineEnabled:GH,collectionStarting:UH},h)},[h]),_=rY(),A=Ar(function(){return IV(_,g)},[_,g]),b=Ar(function(){return VV(ir({scrollWindow:PV,scrollDroppable:A.scrollDroppable},m5({move:MN},h)))},[A.scrollDroppable,h]),w=eY(t),S=Ar(function(){return CV({announce:f,autoScroller:b,dimensionMarshal:A,focusMarshal:w,getResponders:s,styleMarshal:v})},[f,b,A,w,s,v]);o.current=S;var E=Kt(function(){var L=ip(o),ee=L.getState();ee.phase!=="IDLE"&&L.dispatch(TA())},[]),R=Kt(function(){var L=ip(o).getState();return L.isDragging||L.phase==="DROP_ANIMATING"},[]),M=Ar(function(){return{isDragging:R,tryAbort:E}},[R,E]);r(M);var D=Kt(function(L){return UN(ip(o).getState(),L)},[]),z=Kt(function(){return Rl(ip(o).getState())},[]),N=Ar(function(){return{marshal:A,focus:w,contextId:t,canLift:D,isMovementAllowed:z,dragHandleUsageInstructionsId:d,registry:_}},[t,A,d,w,D,z,_]);return VY({contextId:t,store:S,registry:_,customSensors:n,enableDefaultSensors:e.enableDefaultSensors!==!1}),Ut.exports.useEffect(function(){return E},[E]),Jn(a1.Provider,{value:N,children:Jn(bG,{context:FA,store:S,children:e.children})})}var KY=0;function QY(){return Ar(function(){return""+KY++},[])}function vde(e){var t=QY(),r=e.dragHandleUsageInstructions||Bm.dragHandleUsageInstructions;return Jn(Rq,{children:function(n){return Jn(XY,{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 JN=function(t){return function(r){return t===r}},ZY=JN("scroll"),JY=JN("auto"),X5=function(t,r){return r(t.overflowX)||r(t.overflowY)},eX=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return X5(n,ZY)||X5(n,JY)},tX=function(){return!1},rX=function e(t){return t==null?null:t===document.body?tX()?t:null:t===document.documentElement?null:eX(t)?t:e(t.parentElement)},nS=function(e){return{x:e.scrollLeft,y:e.scrollTop}},nX=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},iX=function(e){var t=rX(e),r=nX(e);return{closestScrollable:t,isFixedOnPage:r}},aX=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,u=e.page,s=e.closest,f=function(){if(!s)return null;var g=s.scrollSize,_=s.client,A=BN({scrollHeight:g.scrollHeight,scrollWidth:g.scrollWidth,height:_.paddingBox.height,width:_.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:_,scrollSize:g,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:A,diff:{value:En,displacement:En}}}}(),d=a==="vertical"?_A:yN,v=ac({page:u,withPlaceholder:null,axis:d,frame:f}),h={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:u,frame:f,subject:v};return h},oX=function(t,r){var n=lN(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,u=a+r.scrollWidth,s={top:i,right:u,bottom:o,left:a},f=mA(s,n.border),d=yA({borderBox:f,margin:n.margin,border:n.border,padding:n.padding});return d},uX=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,u=e.isCombineEnabled,s=e.shouldClipSubject,f=n.closestScrollable,d=oX(t,f),v=A0(d,i),h=function(){if(!f)return null;var _=lN(f),A={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:_,page:A0(_,i),scroll:nS(f),scrollSize:A,shouldClipSubject:s}}(),g=aX({descriptor:r,isEnabled:!o,isCombineEnabled:u,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:v,closest:h});return g},lX={passive:!1},sX={passive:!0},K5=function(e){return e.shouldPublishImmediately?lX:sX};function P0(e){var t=Ut.exports.useContext(e);return t||bt(!1),t}var Vg=function(t){return t&&t.env.closestScrollable||null};function fX(e){var t=Ut.exports.useRef(null),r=P0(a1),n=NA("droppable"),i=r.registry,a=r.marshal,o=HN(e),u=Ar(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=Ut.exports.useRef(u),f=Ar(function(){return tn(function(R,M){t.current||bt(!1);var D={x:R,y:M};a.updateDroppableScroll(u.id,D)})},[u.id,a]),d=Kt(function(){var R=t.current;return!R||!R.env.closestScrollable?En:nS(R.env.closestScrollable)},[]),v=Kt(function(){var R=d();f(R.x,R.y)},[d,f]),h=Ar(function(){return mh(v)},[v]),g=Kt(function(){var R=t.current,M=Vg(R);R&&M||bt(!1);var D=R.scrollOptions;if(D.shouldPublishImmediately){v();return}h()},[h,v]),_=Kt(function(R,M){t.current&&bt(!1);var D=o.current,z=D.getDroppableRef();z||bt(!1);var N=iX(z),L={ref:z,descriptor:u,env:N,scrollOptions:M};t.current=L;var ee=uX({ref:z,descriptor:u,env:N,windowScroll:R,direction:D.direction,isDropDisabled:D.isDropDisabled,isCombineEnabled:D.isCombineEnabled,shouldClipSubject:!D.ignoreContainerClipping}),ue=N.closestScrollable;return ue&&(ue.setAttribute(q5.contextId,r.contextId),ue.addEventListener("scroll",g,K5(L.scrollOptions))),ee},[r.contextId,u,g,o]),A=Kt(function(){var R=t.current,M=Vg(R);return R&&M||bt(!1),nS(M)},[]),b=Kt(function(){var R=t.current;R||bt(!1);var M=Vg(R);t.current=null,M&&(h.cancel(),M.removeAttribute(q5.contextId),M.removeEventListener("scroll",g,K5(R.scrollOptions)))},[g,h]),w=Kt(function(R){var M=t.current;M||bt(!1);var D=Vg(M);D||bt(!1),D.scrollTop+=R.y,D.scrollLeft+=R.x},[]),S=Ar(function(){return{getDimensionAndWatchScroll:_,getScrollWhileDragging:A,dragStopped:b,scroll:w}},[b,_,A,w]),E=Ar(function(){return{uniqueId:n,descriptor:u,callbacks:S}},[S,u,n]);Ai(function(){return s.current=E.descriptor,i.droppable.register(E),function(){t.current&&b(),i.droppable.unregister(E)}},[S,u,b,E,a,i.droppable]),Ai(function(){!t.current||a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Ai(function(){!t.current||a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function ux(){}var Q5={width:0,height:0,margin:Dq},cX=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?Q5:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},dX=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=cX({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"?Kp.placeholder:null}};function pX(e){var t=Ut.exports.useRef(null),r=Kt(function(){!t.current||(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,u=Ut.exports.useState(e.animate==="open"),s=u[0],f=u[1];Ut.exports.useEffect(function(){return s?n!=="open"?(r(),f(!1),ux):t.current?ux:(t.current=setTimeout(function(){t.current=null,f(!1)}),r):ux},[n,s,r]);var d=Kt(function(h){h.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),v=dX({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Nn.createElement(e.placeholder.tagName,{style:v,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var hX=Nn.memo(pX),BA=Nn.createContext(null),vX=function(e){Uh(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}(Nn.PureComponent),Z5={dragging:5e3,dropAnimating:4500},gX=function(t,r){return r?Kp.drop(r.duration):t?Kp.snap:Kp.fluid},mX=function(t,r){return t?r?xh.opacity.drop:xh.opacity.combining:null},yX=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function bX(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),u=yX(e),s=Boolean(a),f=s?eS.drop(n,o):eS.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:gX(u,a),transform:f,opacity:mX(o,s),zIndex:s?Z5.dropAnimating:Z5.dragging,pointerEvents:"none"};return d}function wX(e){return{transform:eS.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function xX(e){return e.type==="DRAGGING"?bX(e):wX(e)}function _X(e,t,r){r===void 0&&(r=En);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=uN(i,n),o=A0(a,r),u={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},f={descriptor:e,placeholder:u,displaceBy:s,client:a,page:o};return f}function SX(e){var t=NA("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,u=e.isEnabled,s=Ar(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:u}},[a,u,o]),f=Kt(function(g){var _=i();return _||bt(!1),_X(r,_,g)},[r,i]),d=Ar(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:f}},[r,f,s,t]),v=Ut.exports.useRef(d),h=Ut.exports.useRef(!0);Ai(function(){return n.draggable.register(v.current),function(){return n.draggable.unregister(v.current)}},[n.draggable]),Ai(function(){if(h.current){h.current=!1;return}var g=v.current;v.current=d,n.draggable.update(d,g)},[d,n.draggable])}function EX(e){e.preventDefault()}function AX(e){var t=Ut.exports.useRef(null),r=Kt(function(L){t.current=L},[]),n=Kt(function(){return t.current},[]),i=P0(a1),a=i.contextId,o=i.dragHandleUsageInstructionsId,u=i.registry,s=P0(BA),f=s.type,d=s.droppableId,v=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,_=e.isEnabled,A=e.shouldRespectForcePress,b=e.canDragInteractiveElements,w=e.isClone,S=e.mapped,E=e.dropAnimationFinished;if(!w){var R=Ar(function(){return{descriptor:v,registry:u,getDraggableRef:n,canDragInteractiveElements:b,shouldRespectForcePress:A,isEnabled:_}},[v,u,n,b,A,_]);SX(R)}var M=Ar(function(){return _?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:EX}:null},[a,o,g,_]),D=Kt(function(L){S.type==="DRAGGING"&&(!S.dropping||L.propertyName==="transform"&&E())},[E,S]),z=Ar(function(){var L=xX(S),ee=S.type==="DRAGGING"&&S.dropping?D:null,ue={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:L,onTransitionEnd:ee},dragHandleProps:M};return ue},[a,M,g,S,D,r]),N=Ar(function(){return{draggableId:v.id,type:v.type,source:{index:v.index,droppableId:v.droppableId}}},[v.droppableId,v.id,v.index,v.type]);return h(z,S.snapshot,N)}var e4=function(e,t){return e===t},t4=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},CX=function(t){return t.combine?t.combine.draggableId:null},TX=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function RX(){var e=tn(function(i,a){return{x:i,y:a}}),t=tn(function(i,a,o,u,s){return{isDragging:!0,isClone:a,isDropAnimating:Boolean(s),dropAnimation:s,mode:i,draggingOver:o,combineWith:u,combineTargetFor:null}}),r=tn(function(i,a,o,u,s,f,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:f,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,u,s,f,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var u=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],f=Ei(a.impact),d=TX(a.impact),v=a.forceShouldAnimate;return r(e(u.x,u.y),a.movementMode,s,o.isClone,f,d,v)}if(a.phase==="DROP_ANIMATING"){var h=a.completed;if(h.result.draggableId!==o.draggableId)return null;var g=o.isClone,_=a.dimensions.draggables[o.draggableId],A=h.result,b=A.mode,w=t4(A),S=CX(A),E=a.dropDuration,R={duration:E,curve:OA.drop,moveTo:a.newHomeClientOffset,opacity:S?xh.opacity.drop:null,scale:S?xh.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:_,dropping:R,draggingOver:w,combineWith:S,mode:b,forceShouldAnimate:null,snapshot:t(b,g,w,S,R)}}}return null};return n}function r4(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var OX={mapped:{type:"SECONDARY",offset:En,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:r4(null)}};function IX(){var e=tn(function(o,u){return{x:o,y:u}}),t=tn(r4),r=tn(function(o,u,s){return u===void 0&&(u=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:u,shouldAnimateDisplacement:s,snapshot:t(u)}}}),n=function(u){return u?r(En,u,!0):null},i=function(u,s,f,d){var v=f.displaced.visible[u],h=Boolean(d.inVirtualList&&d.effected[u]),g=t1(f),_=g&&g.draggableId===u?s:null;if(!v){if(!h)return n(_);if(f.displaced.invisible[u])return null;var A=Cc(d.displacedBy.point),b=e(A.x,A.y);return r(b,_,!0)}if(h)return n(_);var w=f.displacedBy.point,S=e(w.x,w.y);return r(S,_,v.shouldAnimate)},a=function(u,s){if(u.isDragging)return u.critical.draggable.id===s.draggableId?null:i(s.draggableId,u.critical.draggable.id,u.impact,u.afterCritical);if(u.phase==="DROP_ANIMATING"){var f=u.completed;return f.result.draggableId===s.draggableId?null:i(s.draggableId,f.result.draggableId,f.impact,f.afterCritical)}return null};return a}var PX=function(){var t=RX(),r=IX(),n=function(a,o){return t(a,o)||r(a,o)||OX};return n},kX={dropAnimationFinished:FN},MX=aN(PX,kX,null,{context:FA,pure:!0,areStatePropsEqual:e4})(AX);function n4(e){var t=P0(BA),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:Jn(MX,{...e})}function gde(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return Jn(n4,{...e,isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n})}function DX(e){var t=Ut.exports.useContext(a1);t||bt(!1);var r=t.contextId,n=t.isMovementAllowed,i=Ut.exports.useRef(null),a=Ut.exports.useRef(null),o=e.children,u=e.droppableId,s=e.type,f=e.mode,d=e.direction,v=e.ignoreContainerClipping,h=e.isDropDisabled,g=e.isCombineEnabled,_=e.snapshot,A=e.useClone,b=e.updateViewportMaxScroll,w=e.getContainerForClone,S=Kt(function(){return i.current},[]),E=Kt(function(ue){i.current=ue},[]);Kt(function(){return a.current},[]);var R=Kt(function(ue){a.current=ue},[]),M=Kt(function(){n()&&b({maxScroll:zN()})},[n,b]);fX({droppableId:u,type:s,mode:f,direction:d,isDropDisabled:h,isCombineEnabled:g,ignoreContainerClipping:v,getDroppableRef:S});var D=Jn(vX,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder,children:function(ue){var pe=ue.onClose,we=ue.data,Ee=ue.animate;return Jn(hX,{placeholder:we,onClose:pe,innerRef:R,animate:Ee,contextId:r,onTransitionEnd:M})}}),z=Ar(function(){return{innerRef:E,placeholder:D,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":r}}},[r,u,D,E]),N=A?A.dragging.draggableId:null,L=Ar(function(){return{droppableId:u,type:s,isUsingCloneFor:N}},[u,N,s]);function ee(){if(!A)return null;var ue=A.dragging,pe=A.render,we=Jn(n4,{draggableId:ue.draggableId,index:ue.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0,children:function(Ee,Je){return pe(Ee,Je,ue)}});return Cp.createPortal(we,w())}return WU(BA.Provider,{value:L,children:[o(z,_),ee()]})}var lx=function(t,r){return t===r.droppable.type},J5=function(t,r){return r.draggables[t.draggable.id]},FX=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ir({},t,{shouldAnimatePlaceholder:!1}),n=tn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=tn(function(o,u,s,f,d,v){var h=d.descriptor.id,g=d.descriptor.droppableId===o;if(g){var _=v?{render:v,dragging:n(d.descriptor)}:null,A={isDraggingOver:s,draggingOverWith:s?h:null,draggingFromThisWith:h,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:A,useClone:_}}if(!u)return r;if(!f)return t;var b={isDraggingOver:s,draggingOverWith:h,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}}),a=function(u,s){var f=s.droppableId,d=s.type,v=!s.isDropDisabled,h=s.renderClone;if(u.isDragging){var g=u.critical;if(!lx(d,g))return r;var _=J5(g,u.dimensions),A=Ei(u.impact)===f;return i(f,v,A,A,_,h)}if(u.phase==="DROP_ANIMATING"){var b=u.completed;if(!lx(d,b.critical))return r;var w=J5(b.critical,u.dimensions);return i(f,v,t4(b.result)===f,Ei(b.impact)===f,w,h)}if(u.phase==="IDLE"&&u.completed&&!u.shouldFlush){var S=u.completed;if(!lx(d,S.critical))return r;var E=Ei(S.impact)===f,R=Boolean(S.impact.at&&S.impact.at.type==="COMBINE"),M=S.critical.droppable.id===f;return E?R?t:r:M?t:r}return r};return a},NX={updateViewportMaxScroll:HH};function LX(){return document.body||bt(!1),document.body}var BX={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:LX},$X=aN(FX,NX,null,{context:FA,pure:!0,areStatePropsEqual:e4})(DX);$X.defaultProps=BX;var zX=typeof performance=="object"&&typeof performance.now=="function",eO=zX?function(){return performance.now()}:function(){return Date.now()};function tO(e){cancelAnimationFrame(e.id)}function UX(e,t){var r=eO();function n(){eO()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var ff=null;function rO(e){if(e===void 0&&(e=!1),ff===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?ff="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?ff="negative":ff="positive-ascending"),document.body.removeChild(t),ff}return ff}var jX=150,WX=function(t,r){return t};function GX(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,u=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,f=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return r=t=function(h){Uh(g,h);function g(A){var b;return b=h.call(this,A)||this,b._instanceProps=f(b.props,zg(zg(b))),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:zg(zg(b)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=tn(function(w,S,E,R){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:S,visibleStartIndex:E,visibleStopIndex:R})}),b._callOnScroll=void 0,b._callOnScroll=tn(function(w,S,E){return b.props.onScroll({scrollDirection:w,scrollOffset:S,scrollUpdateWasRequested:E})}),b._getItemStyle=void 0,b._getItemStyle=function(w){var S=b.props,E=S.direction,R=S.itemSize,M=S.layout,D=b._getItemStyleCache(d&&R,d&&M,d&&E),z;if(D.hasOwnProperty(w))z=D[w];else{var N=n(b.props,w,b._instanceProps),L=a(b.props,w,b._instanceProps),ee=E==="horizontal"||M==="horizontal",ue=E==="rtl",pe=ee?N:0;D[w]=z={position:"absolute",left:ue?void 0:pe,right:ue?pe:void 0,top:ee?0:N,height:ee?"100%":L,width:ee?L:"100%"}}return z},b._getItemStyleCache=void 0,b._getItemStyleCache=tn(function(w,S,E){return{}}),b._onScrollHorizontal=function(w){var S=w.currentTarget,E=S.clientWidth,R=S.scrollLeft,M=S.scrollWidth;b.setState(function(D){if(D.scrollOffset===R)return null;var z=b.props.direction,N=R;if(z==="rtl")switch(rO()){case"negative":N=-R;break;case"positive-descending":N=M-E-R;break}return N=Math.max(0,Math.min(N,M-E)),{isScrolling:!0,scrollDirection:D.scrollOffset<R?"forward":"backward",scrollOffset:N,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(w){var S=w.currentTarget,E=S.clientHeight,R=S.scrollHeight,M=S.scrollTop;b.setState(function(D){if(D.scrollOffset===M)return null;var z=Math.max(0,Math.min(M,R-E));return{isScrolling:!0,scrollDirection:D.scrollOffset<z?"forward":"backward",scrollOffset:z,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(w){var S=b.props.outerRef;b._outerRef=w,typeof S=="function"?S(w):S!=null&&typeof S=="object"&&S.hasOwnProperty("current")&&(S.current=w)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&tO(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=UX(b._resetIsScrolling,jX)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}g.getDerivedStateFromProps=function(b,w){return qX(b,w),v(b),null};var _=g.prototype;return _.scrollTo=function(b){b=Math.max(0,b),this.setState(function(w){return w.scrollOffset===b?null:{scrollDirection:w.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},_.scrollToItem=function(b,w){w===void 0&&(w="auto");var S=this.props.itemCount,E=this.state.scrollOffset;b=Math.max(0,Math.min(b,S-1)),this.scrollTo(o(this.props,b,w,E,this._instanceProps))},_.componentDidMount=function(){var b=this.props,w=b.direction,S=b.initialScrollOffset,E=b.layout;if(typeof S=="number"&&this._outerRef!=null){var R=this._outerRef;w==="horizontal"||E==="horizontal"?R.scrollLeft=S:R.scrollTop=S}this._callPropsCallbacks()},_.componentDidUpdate=function(){var b=this.props,w=b.direction,S=b.layout,E=this.state,R=E.scrollOffset,M=E.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var D=this._outerRef;if(w==="horizontal"||S==="horizontal")if(w==="rtl")switch(rO()){case"negative":D.scrollLeft=-R;break;case"positive-ascending":D.scrollLeft=R;break;default:var z=D.clientWidth,N=D.scrollWidth;D.scrollLeft=N-z-R;break}else D.scrollLeft=R;else D.scrollTop=R}this._callPropsCallbacks()},_.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&tO(this._resetIsScrollingTimeoutId)},_.render=function(){var b=this.props,w=b.children,S=b.className,E=b.direction,R=b.height,M=b.innerRef,D=b.innerElementType,z=b.innerTagName,N=b.itemCount,L=b.itemData,ee=b.itemKey,ue=ee===void 0?WX:ee,pe=b.layout,we=b.outerElementType,Ee=b.outerTagName,Je=b.style,je=b.useIsScrolling,me=b.width,Fe=this.state.isScrolling,qe=E==="horizontal"||pe==="horizontal",Ue=qe?this._onScrollHorizontal:this._onScrollVertical,be=this._getRangeToRender(),ye=be[0],Ke=be[1],We=[];if(N>0)for(var Ze=ye;Ze<=Ke;Ze++)We.push(Ut.exports.createElement(w,{data:L,key:ue(Ze,L),index:Ze,isScrolling:je?Fe:void 0,style:this._getItemStyle(Ze)}));var st=i(this.props,this._instanceProps);return Ut.exports.createElement(we||Ee||"div",{className:S,onScroll:Ue,ref:this._outerRefSetter,style:ir({position:"relative",height:R,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},Je)},Ut.exports.createElement(D||z||"div",{children:We,ref:M,style:{height:qe?"100%":st,pointerEvents:Fe?"none":void 0,width:qe?st:"100%"}}))},_._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var w=this._getRangeToRender(),S=w[0],E=w[1],R=w[2],M=w[3];this._callOnItemsRendered(S,E,R,M)}}if(typeof this.props.onScroll=="function"){var D=this.state,z=D.scrollDirection,N=D.scrollOffset,L=D.scrollUpdateWasRequested;this._callOnScroll(z,N,L)}},_._getRangeToRender=function(){var b=this.props,w=b.itemCount,S=b.overscanCount,E=this.state,R=E.isScrolling,M=E.scrollDirection,D=E.scrollOffset;if(w===0)return[0,0,0,0];var z=u(this.props,D,this._instanceProps),N=s(this.props,z,D,this._instanceProps),L=!R||M==="backward"?Math.max(1,S):1,ee=!R||M==="forward"?Math.max(1,S):1;return[Math.max(0,z-L),Math.max(0,Math.min(w-1,N+ee)),z,N]},g}(Ut.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var qX=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},mde=GX({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,u=t.itemCount,s=t.itemSize,f=t.layout,d=t.width,v=a==="horizontal"||f==="horizontal",h=v?d:o,g=Math.max(0,u*s-h),_=Math.min(g,r*s),A=Math.max(0,r*s-h+s);switch(n==="smart"&&(i>=A-h&&i<=_+h?n="auto":n="center"),n){case"start":return _;case"end":return A;case"center":{var b=Math.round(A+(_-A)/2);return b<Math.ceil(h/2)?0:b>g+Math.floor(h/2)?g:b}case"auto":default:return i>=A&&i<=_?i:i<A?A:_}},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,u=t.itemSize,s=t.layout,f=t.width,d=i==="horizontal"||s==="horizontal",v=r*u,h=d?f:a,g=Math.ceil((h+n-v)/u);return Math.max(0,Math.min(o-1,r+g-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),HX=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},VX=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}}(),YX=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},XX=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)},nO=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},KX=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var u=t[Symbol.iterator](),s;!(i=(s=u.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&u.return&&u.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")}}(),ji=void 0;typeof window<"u"?ji=window:typeof self<"u"?ji=self:ji=global;var iS=null,aS=null,iO=20,sx=ji.clearTimeout,aO=ji.setTimeout,fx=ji.cancelAnimationFrame||ji.mozCancelAnimationFrame||ji.webkitCancelAnimationFrame,oO=ji.requestAnimationFrame||ji.mozRequestAnimationFrame||ji.webkitRequestAnimationFrame;fx==null||oO==null?(iS=sx,aS=function(t){return aO(t,iO)}):(iS=function(t){var r=KX(t,2),n=r[0],i=r[1];fx(n),sx(i)},aS=function(t){var r=oO(function(){sx(n),t()}),n=aO(function(){fx(r),t()},iO);return[r,n]});function QX(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,u=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(R){var M=R.__resizeTriggers__,D=M.firstElementChild,z=M.lastElementChild,N=D.firstElementChild;z.scrollLeft=z.scrollWidth,z.scrollTop=z.scrollHeight,N.style.width=D.offsetWidth+1+"px",N.style.height=D.offsetHeight+1+"px",D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight},a=function(R){return R.offsetWidth!==R.__resizeLast__.width||R.offsetHeight!==R.__resizeLast__.height},u=function(R){if(!(R.target.className&&typeof R.target.className.indexOf=="function"&&R.target.className.indexOf("contract-trigger")<0&&R.target.className.indexOf("expand-trigger")<0)){var M=this;o(this),this.__resizeRAF__&&iS(this.__resizeRAF__),this.__resizeRAF__=aS(function(){a(M)&&(M.__resizeLast__.width=M.offsetWidth,M.__resizeLast__.height=M.offsetHeight,M.__resizeListeners__.forEach(function(N){N.call(M,R)}))})}};var f=!1,d="";n="animationstart";var v="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{var _=document.createElement("fakeelement");if(_.style.animationName!==void 0&&(f=!0),f===!1){for(var A=0;A<v.length;A++)if(_.style[v[A]+"AnimationName"]!==void 0){g=v[A],d="-"+g.toLowerCase()+"-",n=h[A],f=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var b=function(R){if(!R.getElementById("detectElementResize")){var M=(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=R.head||R.getElementsByTagName("head")[0],z=R.createElement("style");z.id="detectElementResize",z.type="text/css",e!=null&&z.setAttribute("nonce",e),z.styleSheet?z.styleSheet.cssText=M:z.appendChild(R.createTextNode(M)),D.appendChild(z)}},w=function(R,M){if(s)R.attachEvent("onresize",M);else{if(!R.__resizeTriggers__){var D=R.ownerDocument,z=ji.getComputedStyle(R);z&&z.position==="static"&&(R.style.position="relative"),b(D),R.__resizeLast__={},R.__resizeListeners__=[],(R.__resizeTriggers__=D.createElement("div")).className="resize-triggers";var N=D.createElement("div");N.className="expand-trigger",N.appendChild(D.createElement("div"));var L=D.createElement("div");L.className="contract-trigger",R.__resizeTriggers__.appendChild(N),R.__resizeTriggers__.appendChild(L),R.appendChild(R.__resizeTriggers__),o(R),R.addEventListener("scroll",u,!0),n&&(R.__resizeTriggers__.__animationListener__=function(ue){ue.animationName===r&&o(R)},R.__resizeTriggers__.addEventListener(n,R.__resizeTriggers__.__animationListener__))}R.__resizeListeners__.push(M)}},S=function(R,M){if(s)R.detachEvent("onresize",M);else if(R.__resizeListeners__.splice(R.__resizeListeners__.indexOf(M),1),!R.__resizeListeners__.length){R.removeEventListener("scroll",u,!0),R.__resizeTriggers__.__animationListener__&&(R.__resizeTriggers__.removeEventListener(n,R.__resizeTriggers__.__animationListener__),R.__resizeTriggers__.__animationListener__=null);try{R.__resizeTriggers__=!R.removeChild(R.__resizeTriggers__)}catch{}}};return{addResizeListener:w,removeResizeListener:S}}var ZX=function(e){XX(t,e);function t(){var r,n,i,a;HX(this,t);for(var o=arguments.length,u=Array(o),s=0;s<o;s++)u[s]=arguments[s];return a=(n=(i=nO(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(u))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var f=i.props,d=f.disableHeight,v=f.disableWidth,h=f.onResize;if(i._parentNode){var g=i._parentNode.offsetHeight||0,_=i._parentNode.offsetWidth||0,A=window.getComputedStyle(i._parentNode)||{},b=parseInt(A.paddingLeft,10)||0,w=parseInt(A.paddingRight,10)||0,S=parseInt(A.paddingTop,10)||0,E=parseInt(A.paddingBottom,10)||0,R=g-S-E,M=_-b-w;(!d&&i.state.height!==R||!v&&i.state.width!==M)&&(i.setState({height:g-S-E,width:_-b-w}),h({height:g,width:_}))}},i._setRef=function(f){i._autoSizer=f},n),nO(i,a)}return VX(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=QX(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,u=n.disableWidth,s=n.style,f=this.state,d=f.height,v=f.width,h={overflow:"visible"},g={},_=!1;return o||(d===0&&(_=!0),h.height=0,g.height=d),u||(v===0&&(_=!0),h.width=0,g.width=v),Ut.exports.createElement("div",{className:a,ref:this._setRef,style:YX({},h,s)},!_&&i(g))}}]),t}(Ut.exports.PureComponent);ZX.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var JX=9007199254740991,eK="[object Arguments]",tK="[object Function]",rK="[object GeneratorFunction]",nK=typeof _r=="object"&&_r&&_r.Object===Object&&_r,iK=typeof self=="object"&&self&&self.Object===Object&&self,aK=nK||iK||Function("return this")();function oK(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var $A=Object.prototype,uK=$A.hasOwnProperty,i4=$A.toString,uO=aK.Symbol,lK=$A.propertyIsEnumerable,lO=uO?uO.isConcatSpreadable:void 0;function a4(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=sK),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?a4(u,t-1,r,n,i):oK(i,u):n||(i[i.length]=u)}return i}function sK(e){return dK(e)||cK(e)||!!(lO&&e&&e[lO])}function fK(e){var t=e?e.length:0;return t?a4(e,1):[]}function cK(e){return hK(e)&&uK.call(e,"callee")&&(!lK.call(e,"callee")||i4.call(e)==eK)}var dK=Array.isArray;function pK(e){return e!=null&&gK(e.length)&&!vK(e)}function hK(e){return yK(e)&&pK(e)}function vK(e){var t=mK(e)?i4.call(e):"";return t==tK||t==rK}function gK(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JX}function mK(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yK(e){return!!e&&typeof e=="object"}var yde=fK,sO=0/0,bK="[object Symbol]",wK=/^\s+|\s+$/g,xK=/^[-+]0x[0-9a-f]+$/i,_K=/^0b[01]+$/i,SK=/^0o[0-7]+$/i,EK=parseInt,AK=Object.prototype,CK=AK.toString;function TK(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function fO(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function RK(e){return!!e&&typeof e=="object"}function OK(e){return typeof e=="symbol"||RK(e)&&CK.call(e)==bK}function cx(e){if(typeof e=="number")return e;if(OK(e))return sO;if(fO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(wK,"");var r=_K.test(e);return r||SK.test(e)?EK(e.slice(2),r?2:8):xK.test(e)?sO:+e}function IK(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=cx(r),r=r===r?r:0),t!==void 0&&(t=cx(t),t=t===t?t:0),TK(cx(e),t,r)}var bde=IK,PK={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 _h=PK,o4={};for(const e of Object.keys(_h))o4[_h[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 u4=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 u,s;a===i?u=0:t===a?u=(r-n)/o:r===a?u=2+(n-t)/o:n===a&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360);const f=(i+a)/2;return a===i?s=0:f<=.5?s=o/(a+i):s=o/(2-a-i),[u,s*100,f*100]};Ht.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,u=e[1]/255,s=e[2]/255,f=Math.max(o,u,s),d=f-Math.min(o,u,s),v=function(h){return(f-h)/6/d+1/2};return d===0?(i=0,a=0):(a=d/f,t=v(o),r=v(u),n=v(s),o===f?i=n-r:u===f?i=1/3+t-n:s===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,u=(1-n-i)/(1-i)||0;return[a*100,o*100,u*100,i*100]};function kK(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=o4[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(_h)){const a=_h[i],o=kK(e,a);o<r&&(r=o,n=i)}return n};Ht.keyword.rgb=function(e){return _h[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),u=200*(n-i);return[a,o,u]};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 u=2*n-i,s=[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=u+(i-u)*6*a:2*a<1?o=i:3*a<2?o=u+(i-u)*(2/3-a)*6:o=u,s[f]=o*255;return s};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,u=n===0?2*i/(a+i):2*r/(n+r);return[t,u*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),u=255*n*(1-r*a),s=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,s,o];case 1:return[u,n,o];case 2:return[o,n,s];case 3:return[o,u,n];case 4:return[s,o,n];case 5:return[n,o,u]}};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 u=(2-r)*i;return a=r*i,a/=u<=1?u:2-u,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),u=1-n;a=6*t-o,(o&1)!==0&&(a=1-a);const s=r+a*(u-r);let f,d,v;switch(o){default:case 6:case 0:f=u,d=s,v=r;break;case 1:f=s,d=u,v=r;break;case 2:f=r,d=u,v=s;break;case 3:f=r,d=s,v=u;break;case 4:f=s,d=r,v=u;break;case 5:f=u,d=r,v=s;break}return[f*255,d*255,v*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),u=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,u*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 u=a**3,s=i**3,f=o**3;return a=u>.008856?u:(a-16/116)/7.787,i=s>.008856?s:(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(u=>u+u).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 u,s;return o<1?u=a/(1-o):u=0,o<=0?s=0:i===t?s=(r-n)/o%6:i===r?s=2+(n-t)/o:s=4+(t-r)/o,s/=6,s%=1,[s*360,o*100,u*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,u=1-o;let s=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,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]=u,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]=u}return s=(1-r)*n,[(r*i[0]+s)*255,(r*i[1]+s)*255,(r*i[2]+s)*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 k0=u4;function MK(){const e={},t=Object.keys(k0);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function DK(e){const t=MK(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(k0[n]);for(let a=i.length,o=0;o<a;o++){const u=i[o],s=t[u];s.distance===-1&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(u))}}return t}function FK(e,t){return function(r){return t(e(r))}}function NK(e,t){const r=[t[e].parent,e];let n=k0[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=FK(k0[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var LK=function(e){const t=DK(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]=NK(o,t))}return r};const oS=u4,BK=LK,bf={},$K=Object.keys(oS);function zK(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 UK(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}$K.forEach(e=>{bf[e]={},Object.defineProperty(bf[e],"channels",{value:oS[e].channels}),Object.defineProperty(bf[e],"labels",{value:oS[e].labels});const t=BK(e);Object.keys(t).forEach(n=>{const i=t[n];bf[e][n]=UK(i),bf[e][n].raw=zK(i)})});var wde=bf,yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(e){return"Symbol("+e+")"};function zA(){}var l4=Number.isNaN||function(e){return e!==e},s4=zA;function ha(e){return typeof e=="object"&&e!==null||typeof e=="function"}function uS(e){return e.slice()}function jK(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function f4(e){return!(WK(e)===!1||e===1/0)}function WK(e){return!(typeof e!="number"||l4(e)||e<0)}function c4(e,t,r){if(typeof e!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function jl(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 cO(i,e,n)};case 1:return function(a){var o=[a].concat(n);return cO(i,e,o)}}}return function(){return un(void 0)}}function UA(e,t,r){var n=e[t];if(n!==void 0)return c4(n,e,r)}function cO(e,t,r){try{return un(c4(e,t,r))}catch(n){return rr(n)}}function M0(e){return!1}function D0(e){if(e=Number(e),l4(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function d4(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 jA=Promise,GK=Promise.prototype.then,qK=Promise.resolve.bind(jA),HK=Promise.reject.bind(jA);function qi(e){return new jA(e)}function un(e){return qK(e)}function rr(e){return HK(e)}function po(e,t,r){return GK.call(e,t,r)}function va(e,t,r){po(po(e,t,r),void 0,s4)}function dx(e,t){va(e,t)}function p4(e,t){va(e,void 0,t)}function F0(e,t,r){return po(e,t,r)}function Oc(e){po(e,void 0,s4)}var dO=16384,za=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===dO-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===dO&&(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 ca(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 h4(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,t._state==="readable"?GA(e):t._state==="closed"?VK(e):v4(e,t._storedError)}function WA(e,t){var r=e._ownerReadableStream;return Wl(r,t)}function Gf(e){e._ownerReadableStream._state==="readable"?qA(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):YK(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 GA(e){e._closedPromise=qi(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function v4(e,t){GA(e),qA(e,t)}function VK(e){GA(e),g4(e)}function qA(e,t){Oc(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function YK(e,t){v4(e,t)}function g4(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var HA=yo("[[CancelSteps]]"),VA=yo("[[PullSteps]]");function u1(e,t){t===void 0&&(t=!1);var r=new XK(e);return r._forAuthorCode=t,r}function m4(e){var t=qi(function(r,n){var i={_resolve:r,_reject:n};e._reader._readRequests.push(i)});return t}function YA(e,t,r){var n=e._reader,i=n._readRequests.shift();i._resolve(ca(t,r,n._forAuthorCode))}function l1(e){return e._reader._readRequests.length}function y4(e){var t=e._reader;return!(t===void 0||!Bl(t))}var XK=function(){function e(t){if(Ca(t)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(pu(t)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");h4(this,t),this._readRequests=new za}return Object.defineProperty(e.prototype,"closed",{get:function(){return Bl(this)?this._closedPromise:rr(Yg("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Bl(this)?this._ownerReadableStream===void 0?rr(lc("cancel")):WA(this,t):rr(Yg("cancel"))},e.prototype.read=function(){return Bl(this)?this._ownerReadableStream===void 0?rr(lc("read from")):s1(this):rr(Yg("read"))},e.prototype.releaseLock=function(){if(!Bl(this))throw Yg("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");Gf(this)}},e}();function Bl(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function s1(e){var t=e._ownerReadableStream;return t._disturbed=!0,t._state==="closed"?un(ca(void 0,!0,e._forAuthorCode)):t._state==="errored"?rr(t._storedError):t._readableStreamController[VA]()}function Yg(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}var px,N0;typeof yo.asyncIterator=="symbol"&&(N0=(px={},px[yo.asyncIterator]=function(){return this},px),Object.defineProperty(N0,yo.asyncIterator,{enumerable:!1}));var f1={next:function(){if(pO(this)===!1)return rr(hO("next"));var e=this._asyncIteratorReader;return e._ownerReadableStream===void 0?rr(lc("iterate")):F0(s1(e),function(t){var r=t.done;r&&Gf(e);var n=t.value;return ca(n,r,!0)})},return:function(e){if(pO(this)===!1)return rr(hO("next"));var t=this._asyncIteratorReader;if(t._ownerReadableStream===void 0)return rr(lc("finish iterating"));if(t._readRequests.length>0)return rr(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(this._preventCancel===!1){var r=WA(t,e);return Gf(t),F0(r,function(){return ca(e,!0,!0)})}return Gf(t),un(ca(e,!0,!0))}};N0!==void 0&&Object.setPrototypeOf(f1,N0);Object.defineProperty(f1,"next",{enumerable:!1});Object.defineProperty(f1,"return",{enumerable:!1});function KK(e,t){t===void 0&&(t=!1);var r=u1(e),n=Object.create(f1);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function pO(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader"))}function hO(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function XA(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function KA(e,t,r){if(r=Number(r),!f4(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 QK(e){var t=e._queue.peek();return t.value}function ju(e){e._queue=new za,e._queueTotalSize=0}var b4=yo("[[AbortSteps]]"),w4=yo("[[ErrorSteps]]"),xde=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r={}),ZK(this);var n=r.size,i=r.highWaterMark,a=t.type;if(a!==void 0)throw new RangeError("Invalid type is specified");var o=d4(n);i===void 0&&(i=1),i=D0(i),vQ(this,t,i,o)}return Object.defineProperty(e.prototype,"locked",{get:function(){if($l(this)===!1)throw Kg("locked");return qf(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(t){return $l(this)===!1?rr(Kg("abort")):qf(this)===!0?rr(new TypeError("Cannot abort a stream that already has a writer")):L0(this,t)},e.prototype.close=function(){return $l(this)===!1?rr(Kg("close")):qf(this)===!0?rr(new TypeError("Cannot close a stream that already has a writer")):La(this)===!0?rr(new TypeError("Cannot close an already-closing stream")):_4(this)},e.prototype.getWriter=function(){if($l(this)===!1)throw Kg("getWriter");return x4(this)},e}();function x4(e){return new uQ(e)}function ZK(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new za,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function $l(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_writableStreamController"))}function qf(e){return e._writer!==void 0}function L0(e,t){var r=e._state;if(r==="closed"||r==="errored")return un(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;var n=!1;r==="erroring"&&(n=!0,t=void 0);var i=qi(function(a,o){e._pendingAbortRequest={_promise:void 0,_resolve:a,_reject:o,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,n===!1&&ZA(e,t),i}function _4(e){var t=e._state;if(t==="closed"||t==="errored")return rr(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=qi(function(i,a){var o={_resolve:i,_reject:a};e._closeRequest=o}),n=e._writer;return n!==void 0&&e._backpressure===!0&&t==="writable"&&iC(n),gQ(e._writableStreamController),r}function JK(e){var t=qi(function(r,n){var i={_resolve:r,_reject:n};e._writeRequests.push(i)});return t}function QA(e,t){var r=e._state;if(r==="writable"){ZA(e,t);return}JA(e)}function ZA(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;n!==void 0&&E4(n,t),iQ(e)===!1&&r._started===!0&&JA(e)}function JA(e){e._state="errored",e._writableStreamController[w4]();var t=e._storedError;if(e._writeRequests.forEach(function(i){i._reject(t)}),e._writeRequests=new za,e._pendingAbortRequest===void 0){Xg(e);return}var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring===!0){r._reject(t),Xg(e);return}var n=e._writableStreamController[b4](r._reason);va(n,function(){r._resolve(),Xg(e)},function(i){r._reject(i),Xg(e)})}function eQ(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function tQ(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,QA(e,t)}function rQ(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&&I4(r)}function nQ(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,e._pendingAbortRequest!==void 0&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),QA(e,t)}function La(e){return!(e._closeRequest===void 0&&e._inFlightCloseRequest===void 0)}function iQ(e){return!(e._inFlightWriteRequest===void 0&&e._inFlightCloseRequest===void 0)}function aQ(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function oQ(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Xg(e){e._closeRequest!==void 0&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;t!==void 0&&nC(t,e._storedError)}function eC(e,t){var r=e._writer;r!==void 0&&t!==e._backpressure&&(t===!0?SQ(r):iC(r)),e._backpressure=t}var uQ=function(){function e(t){if($l(t)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(qf(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")La(t)===!1&&t._backpressure===!0?p1(this):vO(this),B0(this);else if(r==="erroring")lS(this,t._storedError),B0(this);else if(r==="closed")vO(this),xQ(this);else{var n=t._storedError;lS(this,n),O4(this,n)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return xl(this)===!1?rr(_l("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(xl(this)===!1)throw _l("desiredSize");if(this._ownerWritableStream===void 0)throw Ip("desiredSize");return cQ(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return xl(this)===!1?rr(_l("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(t){return xl(this)===!1?rr(_l("abort")):this._ownerWritableStream===void 0?rr(Ip("abort")):lQ(this,t)},e.prototype.close=function(){if(xl(this)===!1)return rr(_l("close"));var t=this._ownerWritableStream;return t===void 0?rr(Ip("close")):La(t)===!0?rr(new TypeError("Cannot close an already-closing stream")):S4(this)},e.prototype.releaseLock=function(){if(xl(this)===!1)throw _l("releaseLock");var t=this._ownerWritableStream;t!==void 0&&A4(this)},e.prototype.write=function(t){return xl(this)===!1?rr(_l("write")):this._ownerWritableStream===void 0?rr(Ip("write to")):C4(this,t)},e}();function xl(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream"))}function lQ(e,t){var r=e._ownerWritableStream;return L0(r,t)}function S4(e){var t=e._ownerWritableStream;return _4(t)}function sQ(e){var t=e._ownerWritableStream,r=t._state;return La(t)===!0||r==="closed"?un(void 0):r==="errored"?rr(t._storedError):S4(e)}function fQ(e,t){e._closedPromiseState==="pending"?nC(e,t):_Q(e,t)}function E4(e,t){e._readyPromiseState==="pending"?P4(e,t):EQ(e,t)}function cQ(e){var t=e._ownerWritableStream,r=t._state;return r==="errored"||r==="erroring"?null:r==="closed"?0:T4(t._writableStreamController)}function A4(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");E4(e,r),fQ(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function C4(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,i=mQ(n,t);if(r!==e._ownerWritableStream)return rr(Ip("write to"));var a=r._state;if(a==="errored")return rr(r._storedError);if(La(r)===!0||a==="closed")return rr(new TypeError("The stream is closing or closed and cannot be written to"));if(a==="erroring")return rr(r._storedError);var o=JK(r);return yQ(n,t,i),o}var dQ=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(t){if(pQ(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var r=this._controlledWritableStream._state;r==="writable"&&R4(this,t)},e.prototype[b4]=function(t){var r=this._abortAlgorithm(t);return c1(this),r},e.prototype[w4]=function(){ju(this)},e}();function pQ(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream"))}function hQ(e,t,r,n,i,a,o,u){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ju(t),t._started=!1,t._strategySizeAlgorithm=u,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=a;var s=rC(t);eC(e,s);var f=r(),d=un(f);va(d,function(){t._started=!0,d1(t)},function(v){t._started=!0,QA(e,v)})}function vQ(e,t,r,n){var i=Object.create(dQ.prototype);function a(){return UA(t,"start",[i])}var o=jl(t,"write",1,[i]),u=jl(t,"close",0,[]),s=jl(t,"abort",1,[]);hQ(e,i,a,o,u,s,r,n)}function c1(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function gQ(e){KA(e,"close",0),d1(e)}function mQ(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return tC(e,r),1}}function T4(e){return e._strategyHWM-e._queueTotalSize}function yQ(e,t,r){var n={chunk:t};try{KA(e,n,r)}catch(o){tC(e,o);return}var i=e._controlledWritableStream;if(La(i)===!1&&i._state==="writable"){var a=rC(e);eC(i,a)}d1(e)}function d1(e){var t=e._controlledWritableStream;if(e._started!==!1&&t._inFlightWriteRequest===void 0){var r=t._state;if(r==="erroring"){JA(t);return}if(e._queue.length!==0){var n=QK(e);n==="close"?bQ(e):wQ(e,n.chunk)}}}function tC(e,t){e._controlledWritableStream._state==="writable"&&R4(e,t)}function bQ(e){var t=e._controlledWritableStream;aQ(t),XA(e);var r=e._closeAlgorithm();c1(e),va(r,function(){rQ(t)},function(n){nQ(t,n)})}function wQ(e,t){var r=e._controlledWritableStream;oQ(r);var n=e._writeAlgorithm(t);va(n,function(){eQ(r);var i=r._state;if(XA(e),La(r)===!1&&i==="writable"){var a=rC(e);eC(r,a)}d1(e)},function(i){r._state==="writable"&&c1(e),tQ(r,i)})}function rC(e){var t=T4(e);return t<=0}function R4(e,t){var r=e._controlledWritableStream;c1(e),ZA(r,t)}function Kg(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function _l(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Ip(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function B0(e){e._closedPromise=qi(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function O4(e,t){B0(e),nC(e,t)}function xQ(e){B0(e),I4(e)}function nC(e,t){Oc(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function _Q(e,t){O4(e,t)}function I4(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function p1(e){e._readyPromise=qi(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function lS(e,t){p1(e),P4(e,t)}function vO(e){p1(e),iC(e)}function P4(e,t){Oc(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function SQ(e){p1(e)}function EQ(e,t){lS(e,t)}function iC(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function gO(e){if(typeof e!="object"||e===null)return!1;try{return typeof e.aborted=="boolean"}catch{return!1}}var mO=typeof DOMException<"u"?DOMException:void 0;function AQ(e){if(!(typeof e=="function"||typeof e=="object"))return!1;try{return new e,!0}catch{return!1}}function CQ(){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 TQ=AQ(mO)?mO:CQ();function yO(e,t,r,n,i,a){var o=u1(e),u=x4(t);e._disturbed=!0;var s=!1,f=un(void 0);return qi(function(d,v){var h;if(a!==void 0){if(h=function(){var D=new TQ("Aborted","AbortError"),z=[];n===!1&&z.push(function(){return t._state==="writable"?L0(t,D):un(void 0)}),i===!1&&z.push(function(){return e._state==="readable"?Wl(e,D):un(void 0)}),E(function(){return Promise.all(z.map(function(N){return N()}))},!0,D)},a.aborted===!0){h();return}a.addEventListener("abort",h)}function g(){return qi(function(D,z){function N(L){L?D():po(_(),N,z)}N(!1)})}function _(){return s===!0?un(!0):po(u._readyPromise,function(){return po(s1(o),function(D){return D.done===!0?!0:(f=po(C4(u,D.value),void 0,zA),!1)})})}if(w(e,o._closedPromise,function(D){n===!1?E(function(){return L0(t,D)},!0,D):R(!0,D)}),w(t,u._closedPromise,function(D){i===!1?E(function(){return Wl(e,D)},!0,D):R(!0,D)}),S(e,o._closedPromise,function(){r===!1?E(function(){return sQ(u)}):R()}),La(t)===!0||t._state==="closed"){var A=new TypeError("the destination writable stream closed before all data could be piped to it");i===!1?E(function(){return Wl(e,A)},!0,A):R(!0,A)}Oc(g());function b(){var D=f;return po(f,function(){return D!==f?b():void 0})}function w(D,z,N){D._state==="errored"?N(D._storedError):p4(z,N)}function S(D,z,N){D._state==="closed"?N():dx(z,N)}function E(D,z,N){if(s===!0)return;s=!0,t._state==="writable"&&La(t)===!1?dx(b(),L):L();function L(){va(D(),function(){return M(z,N)},function(ee){return M(!0,ee)})}}function R(D,z){s!==!0&&(s=!0,t._state==="writable"&&La(t)===!1?dx(b(),function(){return M(D,z)}):M(D,z))}function M(D,z){A4(u),Gf(o),a!==void 0&&a.removeEventListener("abort",h),D?v(z):d(void 0)}})}var k4=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Qg(this)===!1)throw Zg("desiredSize");return aC(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(Qg(this)===!1)throw Zg("close");if(Eh(this)===!1)throw new TypeError("The stream is not in a state that permits close");z0(this)},e.prototype.enqueue=function(t){if(Qg(this)===!1)throw Zg("enqueue");if(Eh(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return U0(this,t)},e.prototype.error=function(t){if(Qg(this)===!1)throw Zg("error");Fu(this,t)},e.prototype[HA]=function(t){ju(this);var r=this._cancelAlgorithm(t);return $0(this),r},e.prototype[VA]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var r=XA(this);return this._closeRequested===!0&&this._queue.length===0?($0(this),av(t)):Sh(this),un(ca(r,!1,t._reader._forAuthorCode))}var n=m4(t);return Sh(this),n},e}();function Qg(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Sh(e){var t=M4(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();va(r,function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,Sh(e))},function(n){Fu(e,n)})}}function M4(e){var t=e._controlledReadableStream;if(Eh(e)===!1||e._started===!1)return!1;if(pu(t)===!0&&l1(t)>0)return!0;var r=aC(e);return r>0}function $0(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function z0(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&($0(e),av(t))}function U0(e,t){var r=e._controlledReadableStream;if(pu(r)===!0&&l1(r)>0)YA(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(i){throw Fu(e,i),i}try{KA(e,t,n)}catch(i){throw Fu(e,i),i}}Sh(e)}function Fu(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(ju(e),$0(e),G4(r,t))}function aC(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function RQ(e){return M4(e)!==!0}function Eh(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function D4(e,t,r,n,i,a,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ju(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 u=r();va(un(u),function(){t._started=!0,Sh(t)},function(s){Fu(t,s)})}function OQ(e,t,r,n){var i=Object.create(k4.prototype);function a(){return UA(t,"start",[i])}var o=jl(t,"pull",0,[i]),u=jl(t,"cancel",1,[]);D4(e,i,a,o,u,r,n)}function Zg(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function IQ(e,t){var r=u1(e),n=!1,i=!1,a=!1,o,u,s,f,d,v=qi(function(b){d=b});function h(){if(n===!0)return un(void 0);n=!0;var b=F0(s1(r),function(w){n=!1;var S=w.done;if(S===!0){i===!1&&z0(s._readableStreamController),a===!1&&z0(f._readableStreamController);return}var E=w.value,R=E,M=E;i===!1&&U0(s._readableStreamController,R),a===!1&&U0(f._readableStreamController,M)});return Oc(b),un(void 0)}function g(b){if(i=!0,o=b,a===!0){var w=uS([o,u]),S=Wl(e,w);d(S)}return v}function _(b){if(a=!0,u=b,i===!0){var w=uS([o,u]),S=Wl(e,w);d(S)}return v}function A(){}return s=wO(A,h,g),f=wO(A,h,_),p4(r._closedPromise,function(b){Fu(s._readableStreamController,b),Fu(f._readableStreamController,b)}),[s,f]}var PQ=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},kQ=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(hx(this)===!1)throw vx("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(t){if(hx(this)===!1)throw vx("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");M0(this._view.buffer),UQ(this._associatedReadableByteStreamController,t)},e.prototype.respondWithNewView=function(t){if(hx(this)===!1)throw vx("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");M0(t.buffer),jQ(this._associatedReadableByteStreamController,t)},e}(),MQ=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(wf(this)===!1)throw ap("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(kQ.prototype);qQ(n,this,r),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(wf(this)===!1)throw ap("desiredSize");return U4(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(wf(this)===!1)throw ap("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");$Q(this)},e.prototype.enqueue=function(t){if(wf(this)===!1)throw ap("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");M0(t.buffer),zQ(this,t)},e.prototype.error=function(t){if(wf(this)===!1)throw ap("error");iv(this,t)},e.prototype[HA]=function(t){if(this._pendingPullIntos.length>0){var r=this._pendingPullIntos.peek();r.bytesFilled=0}ju(this);var n=this._cancelAlgorithm(t);return h1(this),n},e.prototype[VA]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,B4(this);var n=void 0;try{n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(s){return rr(s)}return un(ca(n,!1,t._reader._forAuthorCode))}var i=this._autoAllocateChunkSize;if(i!==void 0){var a=void 0;try{a=new ArrayBuffer(i)}catch(s){return rr(s)}var o={buffer:a,byteOffset:0,byteLength:i,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var u=m4(t);return hs(this),u},e}();function wf(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function hx(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function hs(e){var t=BQ(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();va(r,function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,hs(e))},function(n){iv(e,n)})}}function DQ(e){uC(e),e._pendingPullIntos=new za}function oC(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=F4(t);t.readerType==="default"?YA(e,n,r):VQ(e,n,r)}function F4(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function $m(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function N4(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,u=i,s=!1;o>n&&(u=o-t.bytesFilled,s=!0);for(var f=e._queue;u>0;){var d=f.peek(),v=Math.min(u,d.byteLength),h=t.byteOffset+t.bytesFilled;jK(t.buffer,h,d.buffer,d.byteOffset,v),d.byteLength===v?f.shift():(d.byteOffset+=v,d.byteLength-=v),e._queueTotalSize-=v,L4(e,v,t),u-=v}return s}function L4(e,t,r){uC(e),r.bytesFilled+=t}function B4(e){e._queueTotalSize===0&&e._closeRequested===!0?(h1(e),av(e._controlledReadableByteStream)):hs(e)}function uC(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function $4(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos.peek();N4(e,t)===!0&&(lC(e),oC(e._controlledReadableByteStream,t))}}function FQ(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),bO(r);if(r._state==="closed"){var u=new i(o.buffer,o.byteOffset,0);return un(ca(u,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(N4(e,o)===!0){var s=F4(o);return B4(e),un(ca(s,!1,r._reader._forAuthorCode))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return iv(e,f),rr(f)}}e._pendingPullIntos.push(o);var d=bO(r);return hs(e),d}function NQ(e,t){t.buffer=t.buffer;var r=e._controlledReadableByteStream;if(sC(r)===!0)for(;j4(r)>0;){var n=lC(e);oC(r,n)}}function LQ(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(L4(e,t,r),!(r.bytesFilled<r.elementSize)){lC(e);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,a=r.buffer.slice(i-n,i);$m(e,a,0,a.byteLength)}r.buffer=r.buffer,r.bytesFilled-=n,oC(e._controlledReadableByteStream,r),$4(e)}}function z4(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");NQ(e,r)}else LQ(e,t,r);hs(e)}function lC(e){var t=e._pendingPullIntos.shift();return uC(e),t}function BQ(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(y4(t)===!0&&l1(t)>0||sC(t)===!0&&j4(t)>0)return!0;var r=U4(e);return r>0}function h1(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function $Q(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 iv(e,n),n}}h1(e),av(t)}function zQ(e,t){var r=e._controlledReadableByteStream,n=t.buffer,i=t.byteOffset,a=t.byteLength,o=n;if(y4(r)===!0)if(l1(r)===0)$m(e,o,i,a);else{var u=new Uint8Array(o,i,a);YA(r,u,!1)}else sC(r)===!0?($m(e,o,i,a),$4(e)):$m(e,o,i,a);hs(e)}function iv(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(DQ(e),ju(e),h1(e),G4(r,t))}function U4(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function UQ(e,t){if(t=Number(t),f4(t)===!1)throw new RangeError("bytesWritten must be a finite");z4(e,t)}function jQ(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,z4(e,t.byteLength)}function WQ(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,ju(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=D0(a),t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=o,t._pendingPullIntos=new za,e._readableStreamController=t;var u=r();va(un(u),function(){t._started=!0,hs(t)},function(s){iv(t,s)})}function GQ(e,t,r){var n=Object.create(MQ.prototype);function i(){return UA(t,"start",[n])}var a=jl(t,"pull",0,[n]),o=jl(t,"cancel",1,[]),u=t.autoAllocateChunkSize;if(u!==void 0&&(u=Number(u),PQ(u)===!1||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");WQ(e,n,i,a,o,r,u)}function qQ(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function vx(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function ap(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function HQ(e,t){t===void 0&&(t=!1);var r=new YQ(e);return r._forAuthorCode=t,r}function bO(e){var t=qi(function(r,n){var i={_resolve:r,_reject:n};e._reader._readIntoRequests.push(i)});return t}function VQ(e,t,r){var n=e._reader,i=n._readIntoRequests.shift();i._resolve(ca(t,r,n._forAuthorCode))}function j4(e){return e._reader._readIntoRequests.length}function sC(e){var t=e._reader;return!(t===void 0||!Pp(t))}var YQ=function(){function e(t){if(!Ca(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(wf(t._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(pu(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");h4(this,t),this._readIntoRequests=new za}return Object.defineProperty(e.prototype,"closed",{get:function(){return Pp(this)?this._closedPromise:rr(Jg("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Pp(this)?this._ownerReadableStream===void 0?rr(lc("cancel")):WA(this,t):rr(Jg("cancel"))},e.prototype.read=function(t){return Pp(this)?this._ownerReadableStream===void 0?rr(lc("read from")):ArrayBuffer.isView(t)?(M0(t.buffer),t.byteLength===0?rr(new TypeError("view must have non-zero byteLength")):XQ(this,t)):rr(new TypeError("view must be an array buffer view")):rr(Jg("read"))},e.prototype.releaseLock=function(){if(!Pp(this))throw Jg("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");Gf(this)}},e}();function Pp(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function XQ(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="errored"?rr(r._storedError):FQ(r._readableStreamController,t)}function Jg(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var sS=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r={}),W4(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=D0(i),GQ(this,t,i)}else if(a===void 0){var u=d4(n);i===void 0&&(i=1),i=D0(i),OQ(this,t,i,u)}else throw new RangeError("Invalid type is specified")}return Object.defineProperty(e.prototype,"locked",{get:function(){if(Ca(this)===!1)throw Sl("locked");return pu(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Ca(this)===!1?rr(Sl("cancel")):pu(this)===!0?rr(new TypeError("Cannot cancel a stream that already has a reader")):Wl(this,t)},e.prototype.getReader=function(t){var r=(t===void 0?{}:t).mode;if(Ca(this)===!1)throw Sl("getReader");if(r===void 0)return u1(this,!0);if(r=String(r),r==="byob")return HQ(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,u=a.preventAbort,s=a.preventCancel,f=a.signal;if(Ca(this)===!1)throw Sl("pipeThrough");if($l(n)===!1)throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(Ca(i)===!1)throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),u=Boolean(u),s=Boolean(s),f!==void 0&&!gO(f))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(pu(this)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(qf(n)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var d=yO(this,n,o,u,s,f);return Oc(d),i},e.prototype.pipeTo=function(t,r){var n=r===void 0?{}:r,i=n.preventClose,a=n.preventAbort,o=n.preventCancel,u=n.signal;return Ca(this)===!1?rr(Sl("pipeTo")):$l(t)===!1?rr(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(i=Boolean(i),a=Boolean(a),o=Boolean(o),u!==void 0&&!gO(u)?rr(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")):pu(this)===!0?rr(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):qf(t)===!0?rr(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):yO(this,t,i,a,o,u))},e.prototype.tee=function(){if(Ca(this)===!1)throw Sl("tee");var t=IQ(this);return uS(t)},e.prototype.getIterator=function(t){var r=(t===void 0?{}:t).preventCancel,n=r===void 0?!1:r;if(Ca(this)===!1)throw Sl("getIterator");return KK(this,n)},e}();typeof yo.asyncIterator=="symbol"&&Object.defineProperty(sS.prototype,yo.asyncIterator,{value:sS.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});function wO(e,t,r,n,i){n===void 0&&(n=1),i===void 0&&(i=function(){return 1});var a=Object.create(sS.prototype);W4(a);var o=Object.create(k4.prototype);return D4(a,o,e,t,r,n,i),a}function W4(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Ca(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_readableStreamController"))}function pu(e){return e._reader!==void 0}function Wl(e,t){if(e._disturbed=!0,e._state==="closed")return un(void 0);if(e._state==="errored")return rr(e._storedError);av(e);var r=e._readableStreamController[HA](t);return F0(r,zA)}function av(e){e._state="closed";var t=e._reader;t!==void 0&&(Bl(t)&&(t._readRequests.forEach(function(r){r._resolve(ca(void 0,!0,t._forAuthorCode))}),t._readRequests=new za),g4(t))}function G4(e,t){e._state="errored",e._storedError=t;var r=e._reader;r!==void 0&&(Bl(r)?(r._readRequests.forEach(function(n){n._reject(t)}),r._readRequests=new za):(r._readIntoRequests.forEach(function(n){n._reject(t)}),r._readIntoRequests=new za),qA(r,t))}function Sl(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function KQ(e,t){Fu(e._readable._readableStreamController,t),fC(e,t)}function fC(e,t){QQ(e._transformStreamController),tC(e._writable._writableStreamController,t),e._backpressure===!0&&q4(e,!1)}function q4(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=qi(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(em(this)===!1)throw tm("desiredSize");var t=this._controlledTransformStream._readable._readableStreamController;return aC(t)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(t){if(em(this)===!1)throw tm("enqueue");ZQ(this,t)},e.prototype.error=function(t){if(em(this)===!1)throw tm("error");JQ(this,t)},e.prototype.terminate=function(){if(em(this)===!1)throw tm("terminate");eZ(this)},e})();function em(e){return!(!ha(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function QQ(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function ZQ(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(Eh(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{U0(n,t)}catch(a){throw fC(r,a),r._readable._storedError}var i=RQ(n);i!==r._backpressure&&q4(r,!0)}function JQ(e,t){KQ(e._controlledTransformStream,t)}function eZ(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;Eh(r)===!0&&z0(r);var n=new TypeError("TransformStream terminated");fC(t,n)}function tm(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}var xO=Object.prototype.toString,H4=function(t){var r=xO.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&xO.call(t.callee)==="[object Function]"),n},gx,_O;function tZ(){if(_O)return gx;_O=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=H4,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=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{s(window[h])}catch{return!0}}catch{return!0}return!1}(),v=function(h){if(typeof window>"u"||!d)return s(h);try{return s(h)}catch{return!1}};e=function(g){var _=g!==null&&typeof g=="object",A=r.call(g)==="[object Function]",b=n(g),w=_&&r.call(g)==="[object String]",S=[];if(!_&&!A&&!b)throw new TypeError("Object.keys called on a non-object");var E=o&&A;if(w&&g.length>0&&!t.call(g,0))for(var R=0;R<g.length;++R)S.push(String(R));if(b&&g.length>0)for(var M=0;M<g.length;++M)S.push(String(M));else for(var D in g)!(E&&D==="prototype")&&t.call(g,D)&&S.push(String(D));if(a)for(var z=v(g),N=0;N<u.length;++N)!(z&&u[N]==="constructor")&&t.call(g,u[N])&&S.push(u[N]);return S}}return gx=e,gx}var rZ=Array.prototype.slice,nZ=H4,SO=Object.keys,zm=SO?function(t){return SO(t)}:tZ(),EO=Object.keys;zm.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 nZ(n)?EO(rZ.call(n)):EO(n)})}else Object.keys=zm;return Object.keys||zm};var cC=zm,v1=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},iZ=v1,Wu=function(){return iZ()&&!!Symbol.toStringTag},AO=typeof Symbol<"u"&&Symbol,aZ=v1,dC=function(){return typeof AO!="function"||typeof Symbol!="function"||typeof AO("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:aZ()},oZ="Function.prototype.bind called on incompatible ",mx=Array.prototype.slice,uZ=Object.prototype.toString,lZ="[object Function]",sZ=function(t){var r=this;if(typeof r!="function"||uZ.call(r)!==lZ)throw new TypeError(oZ+r);for(var n=mx.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(mx.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(mx.call(arguments)))},o=Math.max(0,r.length-n.length),u=[],s=0;s<o;s++)u.push("$"+s);if(i=Function("binder","return function ("+u.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},fZ=sZ,pC=Function.prototype.bind||fZ,cZ=pC,dZ=cZ.call(Function.call,Object.prototype.hasOwnProperty),xr,Ah=SyntaxError,V4=Function,Hf=TypeError,yx=function(e){try{return V4('"use strict"; return ('+e+").constructor;")()}catch{}},Gl=Object.getOwnPropertyDescriptor;if(Gl)try{Gl({},"")}catch{Gl=null}var bx=function(){throw new Hf},pZ=Gl?function(){try{return arguments.callee,bx}catch{try{return Gl(arguments,"callee").get}catch{return bx}}}():bx,cf=dC(),iu=Object.getPrototypeOf||function(e){return e.__proto__},xf={},hZ=typeof Uint8Array>"u"?xr:iu(Uint8Array),Vf={"%AggregateError%":typeof AggregateError>"u"?xr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?xr:ArrayBuffer,"%ArrayIteratorPrototype%":cf?iu([][Symbol.iterator]()):xr,"%AsyncFromSyncIteratorPrototype%":xr,"%AsyncFunction%":xf,"%AsyncGenerator%":xf,"%AsyncGeneratorFunction%":xf,"%AsyncIteratorPrototype%":xf,"%Atomics%":typeof Atomics>"u"?xr:Atomics,"%BigInt%":typeof BigInt>"u"?xr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?xr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?xr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?xr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?xr:FinalizationRegistry,"%Function%":V4,"%GeneratorFunction%":xf,"%Int8Array%":typeof Int8Array>"u"?xr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?xr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?xr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cf?iu(iu([][Symbol.iterator]())):xr,"%JSON%":typeof JSON=="object"?JSON:xr,"%Map%":typeof Map>"u"?xr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cf?xr:iu(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?xr:Promise,"%Proxy%":typeof Proxy>"u"?xr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?xr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?xr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cf?xr:iu(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?xr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cf?iu(""[Symbol.iterator]()):xr,"%Symbol%":cf?Symbol:xr,"%SyntaxError%":Ah,"%ThrowTypeError%":pZ,"%TypedArray%":hZ,"%TypeError%":Hf,"%Uint8Array%":typeof Uint8Array>"u"?xr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?xr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?xr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?xr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?xr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?xr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?xr:WeakSet},vZ=function e(t){var r;if(t==="%AsyncFunction%")r=yx("async function () {}");else if(t==="%GeneratorFunction%")r=yx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=yx("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=iu(i.prototype))}return Vf[t]=r,r},CO={"%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"]},g1=pC,j0=dZ,gZ=g1.call(Function.call,Array.prototype.concat),mZ=g1.call(Function.apply,Array.prototype.splice),TO=g1.call(Function.call,String.prototype.replace),W0=g1.call(Function.call,String.prototype.slice),yZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bZ=/\\(\\)?/g,wZ=function(t){var r=W0(t,0,1),n=W0(t,-1);if(r==="%"&&n!=="%")throw new Ah("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ah("invalid intrinsic syntax, expected opening `%`");var i=[];return TO(t,yZ,function(a,o,u,s){i[i.length]=u?TO(s,bZ,"$1"):o||a}),i},xZ=function(t,r){var n=t,i;if(j0(CO,n)&&(i=CO[n],n="%"+i[0]+"%"),j0(Vf,n)){var a=Vf[n];if(a===xf&&(a=vZ(n)),typeof a>"u"&&!r)throw new Hf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Ah("intrinsic "+t+" does not exist!")},vs=function(t,r){if(typeof t!="string"||t.length===0)throw new Hf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Hf('"allowMissing" argument must be a boolean');var n=wZ(t),i=n.length>0?n[0]:"",a=xZ("%"+i+"%",r),o=a.name,u=a.value,s=!1,f=a.alias;f&&(i=f[0],mZ(n,gZ([0,1],f)));for(var d=1,v=!0;d<n.length;d+=1){var h=n[d],g=W0(h,0,1),_=W0(h,-1);if((g==='"'||g==="'"||g==="`"||_==='"'||_==="'"||_==="`")&&g!==_)throw new Ah("property names with quotes must have matching quotes");if((h==="constructor"||!v)&&(s=!0),i+="."+h,o="%"+i+"%",j0(Vf,o))u=Vf[o];else if(u!=null){if(!(h in u)){if(!r)throw new Hf("base intrinsic for "+t+" exists, but the property is not available.");return}if(Gl&&d+1>=n.length){var A=Gl(u,h);v=!!A,v&&"get"in A&&!("originalValue"in A.get)?u=A.get:u=u[h]}else v=j0(u,h),u=u[h];v&&!s&&(Vf[o]=u)}}return u},ov={exports:{}};(function(e){var t=pC,r=vs,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(v){var h=a(t,i,arguments);if(o&&u){var g=o(h,"length");g.configurable&&u(h,"length",{value:1+s(0,v.length-(arguments.length-1))})}return h};var f=function(){return a(t,n,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f})(ov);var Y4=vs,X4=ov.exports,_Z=X4(Y4("String.prototype.indexOf")),Wa=function(t,r){var n=Y4(t,!!r);return typeof n=="function"&&_Z(t,".prototype.")>-1?X4(n):n},SZ=Wu(),EZ=Wa,fS=EZ("Object.prototype.toString"),m1=function(t){return SZ&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:fS(t)==="[object Arguments]"},K4=function(t){return m1(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&fS(t)!=="[object Array]"&&fS(t.callee)==="[object Function]"},AZ=function(){return m1(arguments)}();m1.isLegacyArguments=K4;var Q4=AZ?m1:K4,CZ=cC,TZ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",RZ=Object.prototype.toString,OZ=Array.prototype.concat,hC=Object.defineProperty,IZ=function(e){return typeof e=="function"&&RZ.call(e)==="[object Function]"},PZ=function(){var e={};try{hC(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch{return!1}},Z4=hC&&PZ(),kZ=function(e,t,r,n){t in e&&(!IZ(n)||!n())||(Z4?hC(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},J4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=CZ(t);TZ&&(n=OZ.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)kZ(e,n[i],t[n[i]],r[n[i]])};J4.supportsDescriptors=!!Z4;var gs=J4,RO=function(e){return e!==e},eL=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||RO(t)&&RO(r))},MZ=eL,tL=function(){return typeof Object.is=="function"?Object.is:MZ},DZ=tL,FZ=gs,NZ=function(){var t=DZ();return FZ(Object,{is:t},{is:function(){return Object.is!==t}}),t},LZ=gs,BZ=ov.exports,$Z=eL,rL=tL,zZ=NZ,nL=BZ(rL(),Object);LZ(nL,{getPolyfill:rL,implementation:$Z,shim:zZ});var UZ=nL,cS=Wa,iL=Wu(),aL,oL,dS,pS;if(iL){aL=cS("Object.prototype.hasOwnProperty"),oL=cS("RegExp.prototype.exec"),dS={};var wx=function(){throw dS};pS={toString:wx,valueOf:wx},typeof Symbol.toPrimitive=="symbol"&&(pS[Symbol.toPrimitive]=wx)}var jZ=cS("Object.prototype.toString"),WZ=Object.getOwnPropertyDescriptor,GZ="[object RegExp]",qZ=iL?function(t){if(!t||typeof t!="object")return!1;var r=WZ(t,"lastIndex"),n=r&&aL(r,"value");if(!n)return!1;try{oL(t,pS)}catch(i){return i===dS}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:jZ(t)===GZ},HZ=Object,VZ=TypeError,uL=function(){if(this!=null&&this!==HZ(this))throw new VZ("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t},YZ=uL,XZ=gs.supportsDescriptors,KZ=Object.getOwnPropertyDescriptor,lL=function(){if(XZ&&/a/mig.flags==="gim"){var t=KZ(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof/a/.dotAll=="boolean")return t.get}return YZ},QZ=gs.supportsDescriptors,ZZ=lL,JZ=Object.getOwnPropertyDescriptor,eJ=Object.defineProperty,tJ=TypeError,OO=Object.getPrototypeOf,rJ=/a/,nJ=function(){if(!QZ||!OO)throw new tJ("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=ZZ(),r=OO(rJ),n=JZ(r,"flags");return(!n||n.get!==t)&&eJ(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},iJ=gs,aJ=ov.exports,oJ=uL,sL=lL,uJ=nJ,fL=aJ(sL());iJ(fL,{getPolyfill:sL,implementation:oJ,shim:uJ});var lJ=fL,sJ={}.toString,cL=Array.isArray||function(e){return sJ.call(e)=="[object Array]"},fJ=Date.prototype.getDay,cJ=function(t){try{return fJ.call(t),!0}catch{return!1}},dJ=Object.prototype.toString,pJ="[object Date]",hJ=Wu(),vJ=function(t){return typeof t!="object"||t===null?!1:hJ?cJ(t):dJ.call(t)===pJ},gJ=String.prototype.valueOf,mJ=function(t){try{return gJ.call(t),!0}catch{return!1}},yJ=Object.prototype.toString,bJ="[object String]",wJ=Wu(),dL=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:wJ?mJ(t):yJ.call(t)===bJ},xJ=Number.prototype.toString,_J=function(t){try{return xJ.call(t),!0}catch{return!1}},SJ=Object.prototype.toString,EJ="[object Number]",AJ=Wu(),CJ=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:AJ?_J(t):SJ.call(t)===EJ},pL=Wa,TJ=pL("Boolean.prototype.toString"),RJ=pL("Object.prototype.toString"),OJ=function(t){try{return TJ(t),!0}catch{return!1}},IJ="[object Boolean]",PJ=Wu(),kJ=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:PJ&&Symbol.toStringTag in t?OJ(t):RJ(t)===IJ},hS={exports:{}},MJ=Object.prototype.toString,DJ=dC();if(DJ){var FJ=Symbol.prototype.toString,NJ=/^Symbol\(.*\)$/,LJ=function(t){return typeof t.valueOf()!="symbol"?!1:NJ.test(FJ.call(t))};hS.exports=function(t){if(typeof t=="symbol")return!0;if(MJ.call(t)!=="[object Symbol]")return!1;try{return LJ(t)}catch{return!1}}}else hS.exports=function(t){return!1};var vS={exports:{}},IO=_r.BigInt,BJ=function(){return typeof IO=="function"&&typeof BigInt=="function"&&typeof IO(42)=="bigint"&&typeof BigInt(42)=="bigint"},$J=BJ();if($J){var zJ=BigInt.prototype.valueOf,UJ=function(t){try{return zJ.call(t),!0}catch{}return!1};vS.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:UJ(t)}}else vS.exports=function(t){return!1};var jJ=dL,WJ=CJ,GJ=kJ,qJ=hS.exports,HJ=vS.exports,VJ=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(jJ(t))return"String";if(WJ(t))return"Number";if(GJ(t))return"Boolean";if(qJ(t))return"Symbol";if(HJ(t))return"BigInt"},vC=typeof Map=="function"&&Map.prototype?Map:null,YJ=typeof Set=="function"&&Set.prototype?Set:null,G0;vC||(G0=function(t){return!1});var hL=vC?Map.prototype.has:null,PO=YJ?Set.prototype.has:null;!G0&&!hL&&(G0=function(t){return!1});var vL=G0||function(t){if(!t||typeof t!="object")return!1;try{if(hL.call(t),PO)try{PO.call(t)}catch{return!0}return t instanceof vC}catch{}return!1},XJ=typeof Map=="function"&&Map.prototype?Map:null,gC=typeof Set=="function"&&Set.prototype?Set:null,q0;gC||(q0=function(t){return!1});var kO=XJ?Map.prototype.has:null,gL=gC?Set.prototype.has:null;!q0&&!gL&&(q0=function(t){return!1});var mL=q0||function(t){if(!t||typeof t!="object")return!1;try{if(gL.call(t),kO)try{kO.call(t)}catch{return!0}return t instanceof gC}catch{}return!1},H0=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,MO=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,V0;H0||(V0=function(t){return!1});var gS=H0?H0.prototype.has:null,xx=MO?MO.prototype.has:null;!V0&&!gS&&(V0=function(t){return!1});var KJ=V0||function(t){if(!t||typeof t!="object")return!1;try{if(gS.call(t,gS),xx)try{xx.call(t,xx)}catch{return!0}return t instanceof H0}catch{}return!1},mS={exports:{}},QJ=vs,yL=Wa,ZJ=QJ("%WeakSet%",!0),_x=yL("WeakSet.prototype.has",!0);if(_x){var Sx=yL("WeakMap.prototype.has",!0);mS.exports=function(t){if(!t||typeof t!="object")return!1;try{if(_x(t,_x),Sx)try{Sx(t,Sx)}catch{return!0}return t instanceof ZJ}catch{}return!1}}else mS.exports=function(t){return!1};var JJ=vL,eee=mL,tee=KJ,ree=mS.exports,nee=function(t){if(t&&typeof t=="object"){if(JJ(t))return"Map";if(eee(t))return"Set";if(tee(t))return"WeakMap";if(ree(t))return"WeakSet"}return!1},Um={exports:{}},DO=Q4;if(dC()||v1()){var Ex=Symbol.iterator;Um.exports=function(t){if(t!=null&&typeof t[Ex]<"u")return t[Ex]();if(DO(t))return Array.prototype[Ex].call(t)}}else{var iee=cL,aee=dL,FO=vs,oee=FO("%Map%",!0),uee=FO("%Set%",!0),aa=Wa,NO=aa("Array.prototype.push"),LO=aa("String.prototype.charCodeAt"),lee=aa("String.prototype.slice"),see=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=LO(t,r);if(i<55296||i>56319)return r+1;var a=LO(t,r+1);return a<56320||a>57343?r+1:r+2},Ax=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}}}},BO=function(t,r){if(iee(t)||DO(t))return Ax(t);if(aee(t)){var n=0;return{next:function(){var a=see(t,n),o=lee(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(!oee&&!uee)Um.exports=function(t){if(t!=null)return BO(t,!0)};else{var fee=vL,cee=mL,$O=aa("Map.prototype.forEach",!0),zO=aa("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var UO=aa("Map.prototype.iterator",!0),jO=aa("Set.prototype.iterator",!0),WO=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 GO=aa("Map.prototype.@@iterator",!0)||aa("Map.prototype._es6-shim iterator_",!0),qO=aa("Set.prototype.@@iterator",!0)||aa("Set.prototype._es6-shim iterator_",!0),dee=function(t){if(fee(t)){if(UO)return WO(UO(t));if(GO)return GO(t);if($O){var r=[];return $O(t,function(i,a){NO(r,[a,i])}),Ax(r)}}if(cee(t)){if(jO)return WO(jO(t));if(qO)return qO(t);if(zO){var n=[];return zO(t,function(i){NO(n,i)}),Ax(n)}}};Um.exports=function(t){return dee(t)||BO(t)}}}const pee={},hee=Object.freeze(Object.defineProperty({__proto__:null,default:pee},Symbol.toStringTag,{value:"Module"})),vee=is(hee);var mC=typeof Map=="function"&&Map.prototype,Cx=Object.getOwnPropertyDescriptor&&mC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Y0=mC&&Cx&&typeof Cx.get=="function"?Cx.get:null,gee=mC&&Map.prototype.forEach,yC=typeof Set=="function"&&Set.prototype,Tx=Object.getOwnPropertyDescriptor&&yC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,X0=yC&&Tx&&typeof Tx.get=="function"?Tx.get:null,mee=yC&&Set.prototype.forEach,yee=typeof WeakMap=="function"&&WeakMap.prototype,Qp=yee?WeakMap.prototype.has:null,bee=typeof WeakSet=="function"&&WeakSet.prototype,Zp=bee?WeakSet.prototype.has:null,wee=typeof WeakRef=="function"&&WeakRef.prototype,HO=wee?WeakRef.prototype.deref:null,xee=Boolean.prototype.valueOf,_ee=Object.prototype.toString,See=Function.prototype.toString,Eee=String.prototype.match,bC=String.prototype.slice,hu=String.prototype.replace,Aee=String.prototype.toUpperCase,VO=String.prototype.toLowerCase,bL=RegExp.prototype.test,YO=Array.prototype.concat,Ta=Array.prototype.join,Cee=Array.prototype.slice,XO=Math.floor,yS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rx=Object.getOwnPropertySymbols,bS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",qn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sc?"object":"symbol")?Symbol.toStringTag:null,wL=Object.prototype.propertyIsEnumerable,KO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function QO(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||bL.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-XO(-e):XO(e);if(n!==e){var i=String(n),a=bC.call(t,i.length+1);return hu.call(i,r,"$&_")+"."+hu.call(hu.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hu.call(t,r,"$&_")}var Ox=vee.custom,Ix=Ox&&_L(Ox)?Ox:null,Tee=function e(t,r,n,i){var a=r||{};if(au(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(au(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=au(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(au(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(au(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=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 EL(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return u?QO(t,s):s}if(typeof t=="bigint"){var f=String(t)+"n";return u?QO(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 wS(t)?"[Array]":"[Object]";var v=Hee(a,n);if(typeof i>"u")i=[];else if(SL(i,t)>=0)return"[Circular]";function h(we,Ee,Je){if(Ee&&(i=Cee.call(i),i.push(Ee)),Je){var je={depth:a.depth};return au(a,"quoteStyle")&&(je.quoteStyle=a.quoteStyle),e(we,je,n+1,i)}return e(we,a,n+1,i)}if(typeof t=="function"){var g=Lee(t),_=rm(t,h);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(_.length>0?" { "+Ta.call(_,", ")+" }":"")}if(_L(t)){var A=sc?hu.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):bS.call(t);return typeof t=="object"&&!sc?op(A):A}if(Wee(t)){for(var b="<"+VO.call(String(t.nodeName)),w=t.attributes||[],S=0;S<w.length;S++)b+=" "+w[S].name+"="+xL(Ree(w[S].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+VO.call(String(t.nodeName))+">",b}if(wS(t)){if(t.length===0)return"[]";var E=rm(t,h);return v&&!qee(E)?"["+xS(E,v)+"]":"[ "+Ta.call(E,", ")+" ]"}if(Pee(t)){var R=rm(t,h);return"cause"in t&&!wL.call(t,"cause")?"{ ["+String(t)+"] "+Ta.call(YO.call("[cause]: "+h(t.cause),R),", ")+" }":R.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ta.call(R,", ")+" }"}if(typeof t=="object"&&o){if(Ix&&typeof t[Ix]=="function")return t[Ix]();if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Bee(t)){var M=[];return gee.call(t,function(we,Ee){M.push(h(Ee,t,!0)+" => "+h(we,t))}),ZO("Map",Y0.call(t),M,v)}if(Uee(t)){var D=[];return mee.call(t,function(we){D.push(h(we,t))}),ZO("Set",X0.call(t),D,v)}if($ee(t))return Px("WeakMap");if(jee(t))return Px("WeakSet");if(zee(t))return Px("WeakRef");if(Mee(t))return op(h(Number(t)));if(Fee(t))return op(h(yS.call(t)));if(Dee(t))return op(xee.call(t));if(kee(t))return op(h(String(t)));if(!Oee(t)&&!Iee(t)){var z=rm(t,h),N=KO?KO(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",ee=!N&&qn&&Object(t)===t&&qn in t?bC.call(Gu(t),8,-1):L?"Object":"",ue=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",pe=ue+(ee||L?"["+Ta.call(YO.call([],ee||[],L||[]),": ")+"] ":"");return z.length===0?pe+"{}":v?pe+"{"+xS(z,v)+"}":pe+"{ "+Ta.call(z,", ")+" }"}return String(t)};function xL(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Ree(e){return hu.call(String(e),/"/g,""")}function wS(e){return Gu(e)==="[object Array]"&&(!qn||!(typeof e=="object"&&qn in e))}function Oee(e){return Gu(e)==="[object Date]"&&(!qn||!(typeof e=="object"&&qn in e))}function Iee(e){return Gu(e)==="[object RegExp]"&&(!qn||!(typeof e=="object"&&qn in e))}function Pee(e){return Gu(e)==="[object Error]"&&(!qn||!(typeof e=="object"&&qn in e))}function kee(e){return Gu(e)==="[object String]"&&(!qn||!(typeof e=="object"&&qn in e))}function Mee(e){return Gu(e)==="[object Number]"&&(!qn||!(typeof e=="object"&&qn in e))}function Dee(e){return Gu(e)==="[object Boolean]"&&(!qn||!(typeof e=="object"&&qn in e))}function _L(e){if(sc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!bS)return!1;try{return bS.call(e),!0}catch{}return!1}function Fee(e){if(!e||typeof e!="object"||!yS)return!1;try{return yS.call(e),!0}catch{}return!1}var Nee=Object.prototype.hasOwnProperty||function(e){return e in this};function au(e,t){return Nee.call(e,t)}function Gu(e){return _ee.call(e)}function Lee(e){if(e.name)return e.name;var t=Eee.call(See.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function SL(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 Bee(e){if(!Y0||!e||typeof e!="object")return!1;try{Y0.call(e);try{X0.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function $ee(e){if(!Qp||!e||typeof e!="object")return!1;try{Qp.call(e,Qp);try{Zp.call(e,Zp)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function zee(e){if(!HO||!e||typeof e!="object")return!1;try{return HO.call(e),!0}catch{}return!1}function Uee(e){if(!X0||!e||typeof e!="object")return!1;try{X0.call(e);try{Y0.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function jee(e){if(!Zp||!e||typeof e!="object")return!1;try{Zp.call(e,Zp);try{Qp.call(e,Qp)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Wee(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function EL(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return EL(bC.call(e,0,t.maxStringLength),t)+n}var i=hu.call(hu.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Gee);return xL(i,"single",t)}function Gee(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":"")+Aee.call(t.toString(16))}function op(e){return"Object("+e+")"}function Px(e){return e+" { ? }"}function ZO(e,t,r,n){var i=n?xS(r,n):Ta.call(r,", ");return e+" ("+t+") {"+i+"}"}function qee(e){for(var t=0;t<e.length;t++)if(SL(e[t],`
|
|
898
|
+
`)>=0)return!1;return!0}function Hee(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ta.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ta.call(Array(t+1),r)}}function xS(e,t){if(e.length===0)return"";var r=`
|
|
899
|
+
`+t.prev+t.base;return r+Ta.call(e,","+r)+`
|
|
900
|
+
`+t.prev}function rm(e,t){var r=wS(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=au(e,i)?t(e[i],e):""}var a=typeof Rx=="function"?Rx(e):[],o;if(sc){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)!au(e,s)||r&&String(Number(s))===s&&s<e.length||sc&&o["$"+s]instanceof Symbol||(bL.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e)));if(typeof Rx=="function")for(var f=0;f<a.length;f++)wL.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}var wC=vs,Ic=Wa,Vee=Tee,Yee=wC("%TypeError%"),nm=wC("%WeakMap%",!0),im=wC("%Map%",!0),Xee=Ic("WeakMap.prototype.get",!0),Kee=Ic("WeakMap.prototype.set",!0),Qee=Ic("WeakMap.prototype.has",!0),Zee=Ic("Map.prototype.get",!0),Jee=Ic("Map.prototype.set",!0),ete=Ic("Map.prototype.has",!0),xC=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},tte=function(e,t){var r=xC(e,t);return r&&r.value},rte=function(e,t,r){var n=xC(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},nte=function(e,t){return!!xC(e,t)},ite=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new Yee("Side channel does not contain "+Vee(a))},get:function(a){if(nm&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Xee(t,a)}else if(im){if(r)return Zee(r,a)}else if(n)return tte(n,a)},has:function(a){if(nm&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Qee(t,a)}else if(im){if(r)return ete(r,a)}else if(n)return nte(n,a);return!1},set:function(a,o){nm&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new nm),Kee(t,a,o)):im?(r||(r=new im),Jee(r,a,o)):(n||(n={key:{},next:null}),rte(n,a,o))}};return i},ate=Object.prototype.hasOwnProperty,ote=Object.prototype.toString,AL=function(t,r,n){if(ote.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)ate.call(t,o)&&r.call(n,t[o],o,t)},kx=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ute=typeof globalThis>"u"?_r:globalThis,CL=function(){for(var t=[],r=0;r<kx.length;r++)typeof ute[kx[r]]=="function"&&(t[t.length]=kx[r]);return t},Mx,JO;function TL(){if(JO)return Mx;JO=1;var e=vs,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return Mx=t,Mx}var Dx,eI;function lte(){if(eI)return Dx;eI=1;var e=AL,t=CL,r=Wa,n=r("Object.prototype.toString"),i=Wu(),a=typeof globalThis>"u"?_r:globalThis,o=t(),u=r("Array.prototype.indexOf",!0)||function(_,A){for(var b=0;b<_.length;b+=1)if(_[b]===A)return b;return-1},s=r("String.prototype.slice"),f={},d=TL(),v=Object.getPrototypeOf;i&&d&&v&&e(o,function(g){var _=new a[g];if(Symbol.toStringTag in _){var A=v(_),b=d(A,Symbol.toStringTag);if(!b){var w=v(A);b=d(w,Symbol.toStringTag)}f[g]=b.get}});var h=function(_){var A=!1;return e(f,function(b,w){if(!A)try{A=b.call(_)===w}catch{}}),A};return Dx=function(_){if(!_||typeof _!="object")return!1;if(!i||!(Symbol.toStringTag in _)){var A=s(n(_),8,-1);return u(o,A)>-1}return d?h(_):!1},Dx}var RL=AL,ste=CL,OL=Wa,fte=OL("Object.prototype.toString"),IL=Wu(),tI=typeof globalThis>"u"?_r:globalThis,cte=ste(),dte=OL("String.prototype.slice"),PL={},Fx=TL(),Nx=Object.getPrototypeOf;IL&&Fx&&Nx&&RL(cte,function(e){if(typeof tI[e]=="function"){var t=new tI[e];if(Symbol.toStringTag in t){var r=Nx(t),n=Fx(r,Symbol.toStringTag);if(!n){var i=Nx(r);n=Fx(i,Symbol.toStringTag)}PL[e]=n.get}}});var pte=function(t){var r=!1;return RL(PL,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},hte=lte(),vte=function(t){return hte(t)?!IL||!(Symbol.toStringTag in t)?dte(fte(t),8,-1):pte(t):!1},gte=cC,mte=function(e){return typeof e<"u"&&e!==null},kL=v1(),ML=Wa,rI=Object,yte=ML("Array.prototype.push"),nI=ML("Object.prototype.propertyIsEnumerable"),bte=kL?Object.getOwnPropertySymbols:null,DL=function(t,r){if(!mte(t))throw new TypeError("target must be an object");var n=rI(t),i,a,o,u,s,f,d;for(i=1;i<arguments.length;++i){a=rI(arguments[i]),u=gte(a);var v=kL&&(Object.getOwnPropertySymbols||bte);if(v)for(s=v(a),o=0;o<s.length;++o)d=s[o],nI(a,d)&&yte(u,d);for(o=0;o<u.length;++o)d=u[o],f=a[d],nI(a,d)&&(n[d]=f)}return n},Lx=DL,wte=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},xte=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},FL=function(){return!Object.assign||wte()||xte()?Lx:Object.assign},_te=gs,Ste=FL,Ete=function(){var t=Ste();return _te(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},Ate=gs,Cte=ov.exports,Tte=DL,NL=FL,Rte=Ete,Ote=Cte.apply(NL()),LL=function(t,r){return Ote(Object,arguments)};Ate(LL,{getPolyfill:NL,implementation:Tte,shim:Rte});var Ite=LL,iI=cC,aI=Q4,oI=UZ,uI=qZ,lI=lJ,sI=cL,fI=vJ,cI=VJ,Pte=vs,Io=Wa,dI=nee,fc=Um.exports,kte=ite,pI=vte,BL=Ite,hI=Io("Date.prototype.getTime"),Bx=Object.getPrototypeOf,vI=Io("Object.prototype.toString"),K0=Pte("%Set%",!0),_S=Io("Map.prototype.has",!0),Q0=Io("Map.prototype.get",!0),gI=Io("Map.prototype.size",!0),Z0=Io("Set.prototype.add",!0),$L=Io("Set.prototype.delete",!0),J0=Io("Set.prototype.has",!0),jm=Io("Set.prototype.size",!0);function mI(e,t,r,n){for(var i=fc(e),a;(a=i.next())&&!a.done;)if(So(t,a.value,r,n))return $L(e,a.value),!0;return!1}function zL(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 Mte(e,t,r,n,i,a){var o=zL(r);if(o!=null)return o;var u=Q0(t,o),s=BL({},i,{strict:!1});return typeof u>"u"&&!_S(t,o)||!So(n,u,s,a)?!1:!_S(e,o)&&So(n,u,s,a)}function Dte(e,t,r){var n=zL(r);return n!=null?n:J0(t,n)&&!J0(e,n)}function yI(e,t,r,n,i,a){for(var o=fc(e),u,s;(u=o.next())&&!u.done;)if(s=u.value,So(r,s,i,a)&&So(n,Q0(t,s),i,a))return $L(e,s),!0;return!1}function So(e,t,r,n){var i=r||{};if(i.strict?oI(e,t):e===t)return!0;var a=cI(e),o=cI(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?oI(e,t):e==t;var u=n.has(e),s=n.has(t),f;if(u&&s){if(n.get(e)===n.get(t))return!0}else f={};return u||n.set(e,f),s||n.set(t,f),Lte(e,t,i,n)}function bI(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 Fte(e,t,r,n){if(jm(e)!==jm(t))return!1;for(var i=fc(e),a=fc(t),o,u,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new K0),Z0(s,o.value);else if(!J0(t,o.value)){if(r.strict||!Dte(e,t,o.value))return!1;s||(s=new K0),Z0(s,o.value)}if(s){for(;(u=a.next())&&!u.done;)if(u.value&&typeof u.value=="object"){if(!mI(s,u.value,r.strict,n))return!1}else if(!r.strict&&!J0(e,u.value)&&!mI(s,u.value,r.strict,n))return!1;return jm(s)===0}return!0}function Nte(e,t,r,n){if(gI(e)!==gI(t))return!1;for(var i=fc(e),a=fc(t),o,u,s,f,d,v;(o=i.next())&&!o.done;)if(f=o.value[0],d=o.value[1],f&&typeof f=="object")s||(s=new K0),Z0(s,f);else if(v=Q0(t,f),typeof v>"u"&&!_S(t,f)||!So(d,v,r,n)){if(r.strict||!Mte(e,t,f,d,r,n))return!1;s||(s=new K0),Z0(s,f)}if(s){for(;(u=a.next())&&!u.done;)if(f=u.value[0],v=u.value[1],f&&typeof f=="object"){if(!yI(s,e,f,v,r,n))return!1}else if(!r.strict&&(!e.has(f)||!So(Q0(e,f),v,r,n))&&!yI(s,e,f,v,BL({},r,{strict:!1}),n))return!1;return jm(s)===0}return!0}function Lte(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||vI(e)!==vI(t)||aI(e)!==aI(t))return!1;var o=sI(e),u=sI(t);if(o!==u)return!1;var s=e instanceof Error,f=t instanceof Error;if(s!==f||(s||f)&&(e.name!==t.name||e.message!==t.message))return!1;var d=uI(e),v=uI(t);if(d!==v||(d||v)&&(e.source!==t.source||lI(e)!==lI(t)))return!1;var h=fI(e),g=fI(t);if(h!==g||(h||g)&&hI(e)!==hI(t)||r.strict&&Bx&&Bx(e)!==Bx(t)||pI(e)!==pI(t))return!1;var _=bI(e),A=bI(t);if(_!==A)return!1;if(_||A){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var b=iI(e),w=iI(t);if(b.length!==w.length)return!1;for(b.sort(),w.sort(),i=b.length-1;i>=0;i--)if(b[i]!=w[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!So(e[a],t[a],r,n))return!1;var S=dI(e),E=dI(t);return S!==E?!1:S==="Set"||E==="Set"?Fte(e,t,r,n):S==="Map"?Nte(e,t,r,n):!0}var _de=function(t,r,n){return So(t,r,n,kte())},UL="Expected a function",wI=0/0,Bte="[object Symbol]",$te=/^\s+|\s+$/g,zte=/^[-+]0x[0-9a-f]+$/i,Ute=/^0b[01]+$/i,jte=/^0o[0-7]+$/i,Wte=parseInt,Gte=typeof _r=="object"&&_r&&_r.Object===Object&&_r,qte=typeof self=="object"&&self&&self.Object===Object&&self,Hte=Gte||qte||Function("return this")(),Vte=Object.prototype,Yte=Vte.toString,Xte=Math.max,Kte=Math.min,$x=function(){return Hte.Date.now()};function Qte(e,t,r){var n,i,a,o,u,s,f=0,d=!1,v=!1,h=!0;if(typeof e!="function")throw new TypeError(UL);t=xI(t)||0,ey(r)&&(d=!!r.leading,v="maxWait"in r,a=v?Xte(xI(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(D){var z=n,N=i;return n=i=void 0,f=D,o=e.apply(N,z),o}function _(D){return f=D,u=setTimeout(w,t),d?g(D):o}function A(D){var z=D-s,N=D-f,L=t-z;return v?Kte(L,a-N):L}function b(D){var z=D-s,N=D-f;return s===void 0||z>=t||z<0||v&&N>=a}function w(){var D=$x();if(b(D))return S(D);u=setTimeout(w,A(D))}function S(D){return u=void 0,h&&n?g(D):(n=i=void 0,o)}function E(){u!==void 0&&clearTimeout(u),f=0,n=s=i=u=void 0}function R(){return u===void 0?o:S($x())}function M(){var D=$x(),z=b(D);if(n=arguments,i=this,s=D,z){if(u===void 0)return _(s);if(v)return u=setTimeout(w,t),g(s)}return u===void 0&&(u=setTimeout(w,t)),o}return M.cancel=E,M.flush=R,M}function Zte(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(UL);return ey(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Qte(e,t,{leading:n,maxWait:t,trailing:i})}function ey(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Jte(e){return!!e&&typeof e=="object"}function ere(e){return typeof e=="symbol"||Jte(e)&&Yte.call(e)==Bte}function xI(e){if(typeof e=="number")return e;if(ere(e))return wI;if(ey(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ey(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace($te,"");var r=Ute.test(e);return r||jte.test(e)?Wte(e.slice(2),r?2:8):zte.test(e)?wI:+e}var Sde=Zte,jL={};jL.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 zx="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(",">>",">\\&","[&;()|<>]"].join("|")+")",_I="|&;()<> \\t",tre=`(\\\\['"`+_I+`]|[^\\s'"`+_I+"])+",rre='"((\\\\"|[^"])*?)"',nre="'((\\\\'|[^'])*?)'",zl="";for(var SI=0;SI<4;SI++)zl+=(Math.pow(16,8)*Math.random()).toString(16);jL.parse=function(e,t,r){var n=ire(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("("+zl+".*?"+zl+")","g"));return o.length===1?i.concat(o[0]):i.concat(o.filter(Boolean).map(function(u){return RegExp("^"+zl).test(u)?JSON.parse(u.split(zl)[1]):u}))},[])};function ire(e,t,r){var n=new RegExp(["("+zx+")","("+tre+"|"+rre+"|"+nre+")*"].join("|"),"g"),i=e.match(n).filter(Boolean),a=!1;if(!i)return[];return t||(t={}),r||(r={}),i.map(function(u,s){if(a)return;if(RegExp("^"+zx+"$").test(u))return{op:u};for(var f="'",d='"',v="$",h=r.escape||"\\",g=!1,_=!1,A="",b=!1,w=0,S=u.length;w<S;w++){var E=u.charAt(w);if(b=b||!g&&(E==="*"||E==="?"),_)A+=E,_=!1;else if(g)E===g?g=!1:g==f?A+=E:E===h?(w+=1,E=u.charAt(w),E===d||E===h||E===v?A+=E:A+=h+E):E===v?A+=R():A+=E;else if(E===d||E===f)g=E;else{if(RegExp("^"+zx+"$").test(E))return{op:u};if(RegExp("^#$").test(E))return a=!0,A.length?[A,{comment:u.slice(w+1)+i.slice(s+1).join(" ")}]:[{comment:u.slice(w+1)+i.slice(s+1).join(" ")}];E===h?_=!0:E===v?A+=R():A+=E}}if(b)return{op:"glob",pattern:A};return A;function R(){w+=1;var M,D;if(u.charAt(w)==="{"){if(w+=1,u.charAt(w)==="}")throw new Error("Bad substitution: "+u.substr(w-2,3));if(M=u.indexOf("}",w),M<0)throw new Error("Bad substitution: "+u.substr(w));D=u.substr(w,M-w),w=M}else/[*@#?$!_\-]/.test(u.charAt(w))?(D=u.charAt(w),w+=1):(M=u.substr(w).match(/[^\w\d_]/),M?(D=u.substr(w,M.index),w+=M.index-1):(D=u.substr(w),w=u.length));return o(null,"",D)}}).reduce(function(u,s){return s===void 0?u:u.concat(s)},[]);function o(u,s,f){var d=typeof t=="function"?t(f):t[f];return d===void 0&&f!=""?d="":d===void 0&&(d="$"),typeof d=="object"?s+zl+JSON.stringify(d)+zl:s+d}}var WL={exports:{}};/* @license
|
|
901
|
+
Papa Parse
|
|
902
|
+
v5.3.2
|
|
903
|
+
https://github.com/mholt/PapaParse
|
|
904
|
+
License: MIT
|
|
905
|
+
*/(function(e,t){(function(r,n){e.exports=n()})(_r,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={},u=0,s={parse:function(N,L){var ee=(L=L||{}).dynamicTyping||!1;if(z(ee)&&(L.dynamicTypingFunction=ee,ee={}),L.dynamicTyping=ee,L.transform=!!z(L.transform)&&L.transform,L.worker&&s.WORKERS_SUPPORTED){var ue=function(){if(!s.WORKERS_SUPPORTED)return!1;var we=(Je=n.URL||n.webkitURL||null,je=r.toString(),s.BLOB_URL||(s.BLOB_URL=Je.createObjectURL(new Blob(["(",je,")();"],{type:"text/javascript"})))),Ee=new n.Worker(we),Je,je;return Ee.onmessage=S,Ee.id=u++,o[Ee.id]=Ee}();return ue.userStep=L.step,ue.userChunk=L.chunk,ue.userComplete=L.complete,ue.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 ue.postMessage({input:N,config:L,workerId:ue.id})}var pe=null;return s.NODE_STREAM_INPUT,typeof N=="string"?pe=L.download?new v(L):new g(L):N.readable===!0&&z(N.read)&&z(N.on)?pe=new _(L):(n.File&&N instanceof File||N instanceof Object)&&(pe=new h(L)),pe.stream(N)},unparse:function(N,L){var ee=!1,ue=!0,pe=",",we=`\r
|
|
906
|
+
`,Ee='"',Je=Ee+Ee,je=!1,me=null,Fe=!1;(function(){if(typeof L=="object"){if(typeof L.delimiter!="string"||s.BAD_DELIMITERS.filter(function(ye){return L.delimiter.indexOf(ye)!==-1}).length||(pe=L.delimiter),(typeof L.quotes=="boolean"||typeof L.quotes=="function"||Array.isArray(L.quotes))&&(ee=L.quotes),typeof L.skipEmptyLines!="boolean"&&typeof L.skipEmptyLines!="string"||(je=L.skipEmptyLines),typeof L.newline=="string"&&(we=L.newline),typeof L.quoteChar=="string"&&(Ee=L.quoteChar),typeof L.header=="boolean"&&(ue=L.header),Array.isArray(L.columns)){if(L.columns.length===0)throw new Error("Option columns is empty");me=L.columns}L.escapeChar!==void 0&&(Je=L.escapeChar+Ee),(typeof L.escapeFormulae=="boolean"||L.escapeFormulae instanceof RegExp)&&(Fe=L.escapeFormulae instanceof RegExp?L.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var qe=new RegExp(b(Ee),"g");if(typeof N=="string"&&(N=JSON.parse(N)),Array.isArray(N)){if(!N.length||Array.isArray(N[0]))return Ue(null,N,je);if(typeof N[0]=="object")return Ue(me||Object.keys(N[0]),N,je)}else if(typeof N=="object")return typeof N.data=="string"&&(N.data=JSON.parse(N.data)),Array.isArray(N.data)&&(N.fields||(N.fields=N.meta&&N.meta.fields||me),N.fields||(N.fields=Array.isArray(N.data[0])?N.fields:typeof N.data[0]=="object"?Object.keys(N.data[0]):[]),Array.isArray(N.data[0])||typeof N.data[0]=="object"||(N.data=[N.data])),Ue(N.fields||[],N.data||[],je);throw new Error("Unable to serialize unrecognized input");function Ue(ye,Ke,We){var Ze="";typeof ye=="string"&&(ye=JSON.parse(ye)),typeof Ke=="string"&&(Ke=JSON.parse(Ke));var st=Array.isArray(ye)&&0<ye.length,Rt=!Array.isArray(Ke[0]);if(st&&ue){for(var kt=0;kt<ye.length;kt++)0<kt&&(Ze+=pe),Ze+=be(ye[kt],kt);0<Ke.length&&(Ze+=we)}for(var Ae=0;Ae<Ke.length;Ae++){var nt=st?ye.length:Ke[Ae].length,mt=!1,_e=st?Object.keys(Ke[Ae]).length===0:Ke[Ae].length===0;if(We&&!st&&(mt=We==="greedy"?Ke[Ae].join("").trim()==="":Ke[Ae].length===1&&Ke[Ae][0].length===0),We==="greedy"&&st){for(var j=[],te=0;te<nt;te++){var I=Rt?ye[te]:te;j.push(Ke[Ae][I])}mt=j.join("").trim()===""}if(!mt){for(var C=0;C<nt;C++){0<C&&!_e&&(Ze+=pe);var P=st&&Rt?ye[C]:C;Ze+=be(Ke[Ae][P],C)}Ae<Ke.length-1&&(!We||0<nt&&!_e)&&(Ze+=we)}}return Ze}function be(ye,Ke){if(ye==null)return"";if(ye.constructor===Date)return JSON.stringify(ye).slice(1,25);var We=!1;Fe&&typeof ye=="string"&&Fe.test(ye)&&(ye="'"+ye,We=!0);var Ze=ye.toString().replace(qe,Je);return(We=We||ee===!0||typeof ee=="function"&&ee(ye,Ke)||Array.isArray(ee)&&ee[Ke]||function(st,Rt){for(var kt=0;kt<Rt.length;kt++)if(-1<st.indexOf(Rt[kt]))return!0;return!1}(Ze,s.BAD_DELIMITERS)||-1<Ze.indexOf(pe)||Ze.charAt(0)===" "||Ze.charAt(Ze.length-1)===" ")?Ee+Ze+Ee:Ze}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
|
|
907
|
+
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!i&&!!n.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=w,s.ParserHandle=A,s.NetworkStreamer=v,s.FileStreamer=h,s.StringStreamer=g,s.ReadableStreamStreamer=_,n.jQuery){var f=n.jQuery;f.fn.parse=function(N){var L=N.config||{},ee=[];return this.each(function(we){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 Ee=0;Ee<this.files.length;Ee++)ee.push({file:this.files[Ee],inputElem:this,instanceConfig:f.extend({},L)})}),ue(),this;function ue(){if(ee.length!==0){var we,Ee,Je,je,me=ee[0];if(z(N.before)){var Fe=N.before(me.file,me.inputElem);if(typeof Fe=="object"){if(Fe.action==="abort")return we="AbortError",Ee=me.file,Je=me.inputElem,je=Fe.reason,void(z(N.error)&&N.error({name:we},Ee,Je,je));if(Fe.action==="skip")return void pe();typeof Fe.config=="object"&&(me.instanceConfig=f.extend(me.instanceConfig,Fe.config))}else if(Fe==="skip")return void pe()}var qe=me.instanceConfig.complete;me.instanceConfig.complete=function(Ue){z(qe)&&qe(Ue,me.file,me.inputElem),pe()},s.parse(me.file,me.instanceConfig)}else z(N.complete)&&N.complete()}function pe(){ee.splice(0,1),ue()}}}function d(N){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 ee=M(L);ee.chunkSize=parseInt(ee.chunkSize),L.step||L.chunk||(ee.chunkSize=null),this._handle=new A(ee),(this._handle.streamer=this)._config=ee}.call(this,N),this.parseChunk=function(L,ee){if(this.isFirstChunk&&z(this._config.beforeFirstChunk)){var ue=this._config.beforeFirstChunk(L);ue!==void 0&&(L=ue)}this.isFirstChunk=!1,this._halted=!1;var pe=this._partialLine+L;this._partialLine="";var we=this._handle.parse(pe,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var Ee=we.meta.cursor;this._finished||(this._partialLine=pe.substring(Ee-this._baseIndex),this._baseIndex=Ee),we&&we.data&&(this._rowCount+=we.data.length);var Je=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)n.postMessage({results:we,workerId:s.WORKER_ID,finished:Je});else if(z(this._config.chunk)&&!ee){if(this._config.chunk(we,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);we=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(we.data),this._completeResults.errors=this._completeResults.errors.concat(we.errors),this._completeResults.meta=we.meta),this._completed||!Je||!z(this._config.complete)||we&&we.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Je||we&&we.meta.paused||this._nextChunk(),we}this._halted=!0},this._sendError=function(L){z(this._config.error)?this._config.error(L):a&&this._config.error&&n.postMessage({workerId:s.WORKER_ID,error:L,finished:!1})}}function v(N){var L;(N=N||{}).chunkSize||(N.chunkSize=s.RemoteChunkSize),d.call(this,N),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(ee){this._input=ee,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 ee=this._config.downloadRequestHeaders;for(var ue in ee)L.setRequestHeader(ue,ee[ue])}if(this._config.chunkSize){var pe=this._start+this._config.chunkSize-1;L.setRequestHeader("Range","bytes="+this._start+"-"+pe)}try{L.send(this._config.downloadRequestBody)}catch(we){this._chunkError(we.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(ee){var ue=ee.getResponseHeader("Content-Range");return ue===null?-1:parseInt(ue.substring(ue.lastIndexOf("/")+1))}(L),this.parseChunk(L.responseText)))},this._chunkError=function(ee){var ue=L.statusText||ee;this._sendError(new Error(ue))}}function h(N){var L,ee;(N=N||{}).chunkSize||(N.chunkSize=s.LocalChunkSize),d.call(this,N);var ue=typeof FileReader<"u";this.stream=function(pe){this._input=pe,ee=pe.slice||pe.webkitSlice||pe.mozSlice,ue?((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 pe=this._input;if(this._config.chunkSize){var we=Math.min(this._start+this._config.chunkSize,this._input.size);pe=ee.call(pe,this._start,we)}var Ee=L.readAsText(pe,this._config.encoding);ue||this._chunkLoaded({target:{result:Ee}})},this._chunkLoaded=function(pe){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(pe.target.result)},this._chunkError=function(){this._sendError(L.error)}}function g(N){var L;d.call(this,N=N||{}),this.stream=function(ee){return L=ee,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var ee,ue=this._config.chunkSize;return ue?(ee=L.substring(0,ue),L=L.substring(ue)):(ee=L,L=""),this._finished=!L,this.parseChunk(ee)}}}function _(N){d.call(this,N=N||{});var L=[],ee=!0,ue=!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(pe){this._input=pe,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){ue&&L.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),L.length?this.parseChunk(L.shift()):ee=!0},this._streamData=D(function(pe){try{L.push(typeof pe=="string"?pe:pe.toString(this._config.encoding)),ee&&(ee=!1,this._checkIsFinished(),this.parseChunk(L.shift()))}catch(we){this._streamError(we)}},this),this._streamError=D(function(pe){this._streamCleanUp(),this._sendError(pe)},this),this._streamEnd=D(function(){this._streamCleanUp(),ue=!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 A(N){var L,ee,ue,pe=Math.pow(2,53),we=-pe,Ee=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Je=/^(\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))$/,je=this,me=0,Fe=0,qe=!1,Ue=!1,be=[],ye={data:[],errors:[],meta:{}};if(z(N.step)){var Ke=N.step;N.step=function(Ae){if(ye=Ae,st())Ze();else{if(Ze(),ye.data.length===0)return;me+=Ae.data.length,N.preview&&me>N.preview?ee.abort():(ye.data=ye.data[0],Ke(ye,je))}}}function We(Ae){return N.skipEmptyLines==="greedy"?Ae.join("").trim()==="":Ae.length===1&&Ae[0].length===0}function Ze(){return ye&&ue&&(kt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),ue=!1),N.skipEmptyLines&&(ye.data=ye.data.filter(function(Ae){return!We(Ae)})),st()&&function(){if(!ye)return;function Ae(mt,_e){z(N.transformHeader)&&(mt=N.transformHeader(mt,_e)),be.push(mt)}if(Array.isArray(ye.data[0])){for(var nt=0;st()&&nt<ye.data.length;nt++)ye.data[nt].forEach(Ae);ye.data.splice(0,1)}else ye.data.forEach(Ae)}(),function(){if(!ye||!N.header&&!N.dynamicTyping&&!N.transform)return ye;function Ae(mt,_e){var j,te=N.header?{}:[];for(j=0;j<mt.length;j++){var I=j,C=mt[j];N.header&&(I=j>=be.length?"__parsed_extra":be[j]),N.transform&&(C=N.transform(C,I)),C=Rt(I,C),I==="__parsed_extra"?(te[I]=te[I]||[],te[I].push(C)):te[I]=C}return N.header&&(j>be.length?kt("FieldMismatch","TooManyFields","Too many fields: expected "+be.length+" fields but parsed "+j,Fe+_e):j<be.length&&kt("FieldMismatch","TooFewFields","Too few fields: expected "+be.length+" fields but parsed "+j,Fe+_e)),te}var nt=1;return!ye.data.length||Array.isArray(ye.data[0])?(ye.data=ye.data.map(Ae),nt=ye.data.length):ye.data=Ae(ye.data,0),N.header&&ye.meta&&(ye.meta.fields=be),Fe+=nt,ye}()}function st(){return N.header&&be.length===0}function Rt(Ae,nt){return mt=Ae,N.dynamicTypingFunction&&N.dynamicTyping[mt]===void 0&&(N.dynamicTyping[mt]=N.dynamicTypingFunction(mt)),(N.dynamicTyping[mt]||N.dynamicTyping)===!0?nt==="true"||nt==="TRUE"||nt!=="false"&&nt!=="FALSE"&&(function(_e){if(Ee.test(_e)){var j=parseFloat(_e);if(we<j&&j<pe)return!0}return!1}(nt)?parseFloat(nt):Je.test(nt)?new Date(nt):nt===""?null:nt):nt;var mt}function kt(Ae,nt,mt,_e){var j={type:Ae,code:nt,message:mt};_e!==void 0&&(j.row=_e),ye.errors.push(j)}this.parse=function(Ae,nt,mt){var _e=N.quoteChar||'"';if(N.newline||(N.newline=function(I,C){I=I.substring(0,1048576);var P=new RegExp(b(C)+"([^]*?)"+b(C),"gm"),U=(I=I.replace(P,"")).split("\r"),le=I.split(`
|
|
908
|
+
`),Ne=1<le.length&&le[0].length<U[0].length;if(U.length===1||Ne)return`
|
|
909
|
+
`;for(var ze=0,qt=0;qt<U.length;qt++)U[qt][0]===`
|
|
910
|
+
`&&ze++;return ze>=U.length/2?`\r
|
|
911
|
+
`:"\r"}(Ae,_e)),ue=!1,N.delimiter)z(N.delimiter)&&(N.delimiter=N.delimiter(Ae),ye.meta.delimiter=N.delimiter);else{var j=function(I,C,P,U,le){var Ne,ze,qt,Qt;le=le||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var nr=0;nr<le.length;nr++){var gr=le[nr],Sr=0,rn=0,ga=0;qt=void 0;for(var Hn=new w({comments:U,delimiter:gr,newline:C,preview:10}).parse(I),Tn=0;Tn<Hn.data.length;Tn++)if(P&&We(Hn.data[Tn]))ga++;else{var ma=Hn.data[Tn].length;rn+=ma,qt!==void 0?0<ma&&(Sr+=Math.abs(ma-qt),qt=ma):qt=ma}0<Hn.data.length&&(rn/=Hn.data.length-ga),(ze===void 0||Sr<=ze)&&(Qt===void 0||Qt<rn)&&1.99<rn&&(ze=Sr,Ne=gr,Qt=rn)}return{successful:!!(N.delimiter=Ne),bestDelimiter:Ne}}(Ae,N.newline,N.skipEmptyLines,N.comments,N.delimitersToGuess);j.successful?N.delimiter=j.bestDelimiter:(ue=!0,N.delimiter=s.DefaultDelimiter),ye.meta.delimiter=N.delimiter}var te=M(N);return N.preview&&N.header&&te.preview++,L=Ae,ee=new w(te),ye=ee.parse(L,nt,mt),Ze(),qe?{meta:{paused:!0}}:ye||{meta:{paused:!1}}},this.paused=function(){return qe},this.pause=function(){qe=!0,ee.abort(),L=z(N.chunk)?"":L.substring(ee.getCharIndex())},this.resume=function(){je.streamer._halted?(qe=!1,je.streamer.parseChunk(L,!0)):setTimeout(je.resume,3)},this.aborted=function(){return Ue},this.abort=function(){Ue=!0,ee.abort(),ye.meta.aborted=!0,z(N.complete)&&N.complete(ye),L=""}}function b(N){return N.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(N){var L,ee=(N=N||{}).delimiter,ue=N.newline,pe=N.comments,we=N.step,Ee=N.preview,Je=N.fastMode,je=L=N.quoteChar===void 0||N.quoteChar===null?'"':N.quoteChar;if(N.escapeChar!==void 0&&(je=N.escapeChar),(typeof ee!="string"||-1<s.BAD_DELIMITERS.indexOf(ee))&&(ee=","),pe===ee)throw new Error("Comment character same as delimiter");pe===!0?pe="#":(typeof pe!="string"||-1<s.BAD_DELIMITERS.indexOf(pe))&&(pe=!1),ue!==`
|
|
912
|
+
`&&ue!=="\r"&&ue!==`\r
|
|
913
|
+
`&&(ue=`
|
|
914
|
+
`);var me=0,Fe=!1;this.parse=function(qe,Ue,be){if(typeof qe!="string")throw new Error("Input must be a string");var ye=qe.length,Ke=ee.length,We=ue.length,Ze=pe.length,st=z(we),Rt=[],kt=[],Ae=[],nt=me=0;if(!qe)return Qt();if(Je||Je!==!1&&qe.indexOf(L)===-1){for(var mt=qe.split(ue),_e=0;_e<mt.length;_e++){if(Ae=mt[_e],me+=Ae.length,_e!==mt.length-1)me+=ue.length;else if(be)return Qt();if(!pe||Ae.substring(0,Ze)!==pe){if(st){if(Rt=[],le(Ae.split(ee)),nr(),Fe)return Qt()}else le(Ae.split(ee));if(Ee&&Ee<=_e)return Rt=Rt.slice(0,Ee),Qt(!0)}}return Qt()}for(var j=qe.indexOf(ee,me),te=qe.indexOf(ue,me),I=new RegExp(b(je)+b(L),"g"),C=qe.indexOf(L,me);;)if(qe[me]!==L)if(pe&&Ae.length===0&&qe.substring(me,me+Ze)===pe){if(te===-1)return Qt();me=te+We,te=qe.indexOf(ue,me),j=qe.indexOf(ee,me)}else if(j!==-1&&(j<te||te===-1))Ae.push(qe.substring(me,j)),me=j+Ke,j=qe.indexOf(ee,me);else{if(te===-1)break;if(Ae.push(qe.substring(me,te)),qt(te+We),st&&(nr(),Fe))return Qt();if(Ee&&Rt.length>=Ee)return Qt(!0)}else for(C=me,me++;;){if((C=qe.indexOf(L,C+1))===-1)return be||kt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Rt.length,index:me}),ze();if(C===ye-1)return ze(qe.substring(me,C).replace(I,L));if(L!==je||qe[C+1]!==je){if(L===je||C===0||qe[C-1]!==je){j!==-1&&j<C+1&&(j=qe.indexOf(ee,C+1)),te!==-1&&te<C+1&&(te=qe.indexOf(ue,C+1));var P=Ne(te===-1?j:Math.min(j,te));if(qe.substr(C+1+P,Ke)===ee){Ae.push(qe.substring(me,C).replace(I,L)),qe[me=C+1+P+Ke]!==L&&(C=qe.indexOf(L,me)),j=qe.indexOf(ee,me),te=qe.indexOf(ue,me);break}var U=Ne(te);if(qe.substring(C+1+U,C+1+U+We)===ue){if(Ae.push(qe.substring(me,C).replace(I,L)),qt(C+1+U+We),j=qe.indexOf(ee,me),C=qe.indexOf(L,me),st&&(nr(),Fe))return Qt();if(Ee&&Rt.length>=Ee)return Qt(!0);break}kt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Rt.length,index:me}),C++}}else C++}return ze();function le(gr){Rt.push(gr),nt=me}function Ne(gr){var Sr=0;if(gr!==-1){var rn=qe.substring(C+1,gr);rn&&rn.trim()===""&&(Sr=rn.length)}return Sr}function ze(gr){return be||(gr===void 0&&(gr=qe.substring(me)),Ae.push(gr),me=ye,le(Ae),st&&nr()),Qt()}function qt(gr){me=gr,le(Ae),Ae=[],te=qe.indexOf(ue,me)}function Qt(gr){return{data:Rt,errors:kt,meta:{delimiter:ee,linebreak:ue,aborted:Fe,truncated:!!gr,cursor:nt+(Ue||0)}}}function nr(){we(Qt()),Rt=[],kt=[]}},this.abort=function(){Fe=!0},this.getCharIndex=function(){return me}}function S(N){var L=N.data,ee=o[L.workerId],ue=!1;if(L.error)ee.userError(L.error,L.file);else if(L.results&&L.results.data){var pe={abort:function(){ue=!0,E(L.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:R,resume:R};if(z(ee.userStep)){for(var we=0;we<L.results.data.length&&(ee.userStep({data:L.results.data[we],errors:L.results.errors,meta:L.results.meta},pe),!ue);we++);delete L.results}else z(ee.userChunk)&&(ee.userChunk(L.results,pe,L.file),delete L.results)}L.finished&&!ue&&E(L.workerId,L.results)}function E(N,L){var ee=o[N];z(ee.userComplete)&&ee.userComplete(L),ee.terminate(),delete o[N]}function R(){throw new Error("Not implemented.")}function M(N){if(typeof N!="object"||N===null)return N;var L=Array.isArray(N)?[]:{};for(var ee in N)L[ee]=M(N[ee]);return L}function D(N,L){return function(){N.apply(L,arguments)}}function z(N){return typeof N=="function"}return a&&(n.onmessage=function(N){var L=N.data;if(s.WORKER_ID===void 0&&L&&(s.WORKER_ID=L.workerId),typeof L.input=="string")n.postMessage({workerId:s.WORKER_ID,results:s.parse(L.input,L.config),finished:!0});else if(n.File&&L.input instanceof File||L.input instanceof Object){var ee=s.parse(L.input,L.config);ee&&n.postMessage({workerId:s.WORKER_ID,results:ee,finished:!0})}}),(v.prototype=Object.create(d.prototype)).constructor=v,(h.prototype=Object.create(d.prototype)).constructor=h,(g.prototype=Object.create(g.prototype)).constructor=g,(_.prototype=Object.create(d.prototype)).constructor=_,s})})(WL);const Ede=WL.exports;var are={exports:{}};/*! Native Promise Only
|
|
915
|
+
v0.8.1 (c) Kyle Simpson
|
|
916
|
+
MIT License: http://getify.mit-license.org
|
|
917
|
+
*/(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof _r<"u"?_r:_r,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(E){return setImmediate(E)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(E,R,M,D){return Object.defineProperty(E,R,{value:M,writable:!0,configurable:D!==!1})}}catch{r=function(R,M,D){return R[M]=D,R}}i=function(){var E,R,M;function D(z,N){this.fn=z,this.self=N,this.next=void 0}return{add:function(N,L){M=new D(N,L),R?R.next=M:E=M,R=M,M=void 0},drain:function(){var N=E;for(E=R=n=void 0;N;)N.fn.call(N.self),N=N.next}}}();function u(S,E){i.add(S,E),n||(n=o(i.drain))}function s(S){var E,R=typeof S;return S!=null&&(R=="object"||R=="function")&&(E=S.then),typeof E=="function"?E:!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,E,R){var M,D;try{E===!1?R.reject(S.msg):(E===!0?M=S.msg:M=E.call(void 0,S.msg),M===R.promise?R.reject(TypeError("Promise-chain cycle")):(D=s(M))?D.call(M,R.resolve,R.reject):R.resolve(M))}catch(z){R.reject(z)}}function v(S){var E,R=this;if(!R.triggered){R.triggered=!0,R.def&&(R=R.def);try{(E=s(S))?u(function(){var M=new _(R);try{E.call(S,function(){v.apply(M,arguments)},function(){h.apply(M,arguments)})}catch(D){h.call(M,D)}}):(R.msg=S,R.state=1,R.chain.length>0&&u(f,R))}catch(M){h.call(new _(R),M)}}}function h(S){var E=this;E.triggered||(E.triggered=!0,E.def&&(E=E.def),E.msg=S,E.state=2,E.chain.length>0&&u(f,E))}function g(S,E,R,M){for(var D=0;D<E.length;D++)(function(N){S.resolve(E[N]).then(function(ee){R(N,ee)},M)})(D)}function _(S){this.def=S,this.triggered=!1}function A(S){this.promise=S,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(S){if(typeof S!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var E=new A(this);this.then=function(M,D){var z={success:typeof M=="function"?M:!0,failure:typeof D=="function"?D:!1};return z.promise=new this.constructor(function(L,ee){if(typeof L!="function"||typeof ee!="function")throw TypeError("Not a function");z.resolve=L,z.reject=ee}),E.chain.push(z),E.state!==0&&u(f,E),z.promise},this.catch=function(M){return this.then(void 0,M)};try{S.call(void 0,function(M){v.call(E,M)},function(M){h.call(E,M)})}catch(R){h.call(E,R)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(E){var R=this;return E&&typeof E=="object"&&E.__NPO__===1?E:new R(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");D(E)})}),r(b,"reject",function(E){return new this(function(M,D){if(typeof M!="function"||typeof D!="function")throw TypeError("Not a function");D(E)})}),r(b,"all",function(E){var R=this;return a.call(E)!="[object Array]"?R.reject(TypeError("Not an array")):E.length===0?R.resolve([]):new R(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");var N=E.length,L=Array(N),ee=0;g(R,E,function(pe,we){L[pe]=we,++ee===N&&D(L)},z)})}),r(b,"race",function(E){var R=this;return a.call(E)!="[object Array]"?R.reject(TypeError("Not an array")):new R(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");g(R,E,function(L,ee){D(ee)},z)})}),b})})(are);var ore={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 p=c.length,m=new Array(p);p--;)m[p]=c[p];return m}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var u=this.Element.prototype,s=u.setAttribute,f=u.setAttributeNS,d=this.CSSStyleDeclaration.prototype,v=d.setProperty;u.setAttribute=function(c,p){s.call(this,c,p+"")},u.setAttributeNS=function(c,p,m){f.call(this,c,p,m+"")},d.setProperty=function(c,p,m){v.call(this,c,p+"",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 p=-1,m=l.length,y,x;if(arguments.length===1){for(;++p<m;)if((x=l[p])!=null&&x>=x){y=x;break}for(;++p<m;)(x=l[p])!=null&&y>x&&(y=x)}else{for(;++p<m;)if((x=c.call(l,l[p],p))!=null&&x>=x){y=x;break}for(;++p<m;)(x=c.call(l,l[p],p))!=null&&y>x&&(y=x)}return y},t.max=function(l,c){var p=-1,m=l.length,y,x;if(arguments.length===1){for(;++p<m;)if((x=l[p])!=null&&x>=x){y=x;break}for(;++p<m;)(x=l[p])!=null&&x>y&&(y=x)}else{for(;++p<m;)if((x=c.call(l,l[p],p))!=null&&x>=x){y=x;break}for(;++p<m;)(x=c.call(l,l[p],p))!=null&&x>y&&(y=x)}return y},t.extent=function(l,c){var p=-1,m=l.length,y,x,O;if(arguments.length===1){for(;++p<m;)if((x=l[p])!=null&&x>=x){y=O=x;break}for(;++p<m;)(x=l[p])!=null&&(y>x&&(y=x),O<x&&(O=x))}else{for(;++p<m;)if((x=c.call(l,l[p],p))!=null&&x>=x){y=O=x;break}for(;++p<m;)(x=c.call(l,l[p],p))!=null&&(y>x&&(y=x),O<x&&(O=x))}return[y,O]};function g(l){return l===null?NaN:+l}function _(l){return!isNaN(l)}t.sum=function(l,c){var p=0,m=l.length,y,x=-1;if(arguments.length===1)for(;++x<m;)_(y=+l[x])&&(p+=y);else for(;++x<m;)_(y=+c.call(l,l[x],x))&&(p+=y);return p},t.mean=function(l,c){var p=0,m=l.length,y,x=-1,O=m;if(arguments.length===1)for(;++x<m;)_(y=g(l[x]))?p+=y:--O;else for(;++x<m;)_(y=g(c.call(l,l[x],x)))?p+=y:--O;if(O)return p/O},t.quantile=function(l,c){var p=(l.length-1)*c+1,m=Math.floor(p),y=+l[m-1],x=p-m;return x?y+x*(l[m]-y):y},t.median=function(l,c){var p=[],m=l.length,y,x=-1;if(arguments.length===1)for(;++x<m;)_(y=g(l[x]))&&p.push(y);else for(;++x<m;)_(y=g(c.call(l,l[x],x)))&&p.push(y);if(p.length)return t.quantile(p.sort(h),.5)},t.variance=function(l,c){var p=l.length,m=0,y,x,O=0,T=-1,k=0;if(arguments.length===1)for(;++T<p;)_(y=g(l[T]))&&(x=y-m,m+=x/++k,O+=x*(y-m));else for(;++T<p;)_(y=g(c.call(l,l[T],T)))&&(x=y-m,m+=x/++k,O+=x*(y-m));if(k>1)return O/(k-1)},t.deviation=function(){var l=t.variance.apply(this,arguments);return l&&Math.sqrt(l)};function A(l){return{left:function(c,p,m,y){for(arguments.length<3&&(m=0),arguments.length<4&&(y=c.length);m<y;){var x=m+y>>>1;l(c[x],p)<0?m=x+1:y=x}return m},right:function(c,p,m,y){for(arguments.length<3&&(m=0),arguments.length<4&&(y=c.length);m<y;){var x=m+y>>>1;l(c[x],p)>0?y=x:m=x+1}return m}}}var b=A(h);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(l){return A(l.length===1?function(c,p){return h(l(c),p)}:l)},t.shuffle=function(l,c,p){(m=arguments.length)<3&&(p=l.length,m<2&&(c=0));for(var m=p-c,y,x;m;)x=Math.random()*m--|0,y=l[m+c],l[m+c]=l[x+c],l[x+c]=y;return l},t.permute=function(l,c){for(var p=c.length,m=new Array(p);p--;)m[p]=l[c[p]];return m},t.pairs=function(l){for(var c=0,p=l.length-1,m=l[0],y=new Array(p<0?0:p);c<p;)y[c]=[m,m=l[++c]];return y},t.transpose=function(l){if(!(x=l.length))return[];for(var c=-1,p=t.min(l,w),m=new Array(p);++c<p;)for(var y=-1,x,O=m[c]=new Array(x);++y<x;)O[y]=l[y][c];return m};function w(l){return l.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(l){var c=[];for(var p in l)c.push(p);return c},t.values=function(l){var c=[];for(var p in l)c.push(l[p]);return c},t.entries=function(l){var c=[];for(var p in l)c.push({key:p,value:l[p]});return c},t.merge=function(l){for(var c=l.length,p,m=-1,y=0,x,O;++m<c;)y+=l[m].length;for(x=new Array(y);--c>=0;)for(O=l[c],p=O.length;--p>=0;)x[--y]=O[p];return x};var S=Math.abs;t.range=function(l,c,p){if(arguments.length<3&&(p=1,arguments.length<2&&(c=l,l=0)),(c-l)/p===1/0)throw new Error("infinite range");var m=[],y=E(S(p)),x=-1,O;if(l*=y,c*=y,p*=y,p<0)for(;(O=l+p*++x)>c;)m.push(O/y);else for(;(O=l+p*++x)<c;)m.push(O/y);return m};function E(l){for(var c=1;l*c%1;)c*=10;return c}function R(l,c){for(var p in c)Object.defineProperty(l.prototype,p,{value:c[p],enumerable:!1})}t.map=function(l,c){var p=new M;if(l instanceof M)l.forEach(function(T,k){p.set(T,k)});else if(Array.isArray(l)){var m=-1,y=l.length,x;if(arguments.length===1)for(;++m<y;)p.set(m,l[m]);else for(;++m<y;)p.set(c.call(l,x=l[m],m),x)}else for(var O in l)p.set(O,l[O]);return p};function M(){this._=Object.create(null)}var D="__proto__",z="\0";R(M,{has:ee,get:function(l){return this._[N(l)]},set:function(l,c){return this._[N(l)]=c},remove:ue,keys:pe,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:we,empty:Ee,forEach:function(l){for(var c in this._)l.call(this,L(c),this._[c])}});function N(l){return(l+="")===D||l[0]===z?z+l:l}function L(l){return(l+="")[0]===z?l.slice(1):l}function ee(l){return N(l)in this._}function ue(l){return(l=N(l))in this._&&delete this._[l]}function pe(){var l=[];for(var c in this._)l.push(L(c));return l}function we(){var l=0;for(var c in this._)++l;return l}function Ee(){for(var l in this._)return!1;return!0}t.nest=function(){var l={},c=[],p=[],m,y;function x(T,k,B){if(B>=c.length)return y?y.call(l,k):m?k.sort(m):k;for(var $=-1,W=k.length,G=c[B++],oe,se,H,K=new M,re;++$<W;)(re=K.get(oe=G(se=k[$])))?re.push(se):K.set(oe,[se]);return T?(se=T(),H=function(fe,ce){se.set(fe,x(T,ce,B))}):(se={},H=function(fe,ce){se[fe]=x(T,ce,B)}),K.forEach(H),se}function O(T,k){if(k>=c.length)return T;var B=[],$=p[k++];return T.forEach(function(W,G){B.push({key:W,values:O(G,k)})}),$?B.sort(function(W,G){return $(W.key,G.key)}):B}return l.map=function(T,k){return x(k,T,0)},l.entries=function(T){return O(x(t.map,T,0),0)},l.key=function(T){return c.push(T),l},l.sortKeys=function(T){return p[c.length-1]=T,l},l.sortValues=function(T){return m=T,l},l.rollup=function(T){return y=T,l},l},t.set=function(l){var c=new Je;if(l)for(var p=0,m=l.length;p<m;++p)c.add(l[p]);return c};function Je(){this._=Object.create(null)}R(Je,{has:ee,add:function(l){return this._[N(l+="")]=!0,l},remove:ue,values:pe,size:we,empty:Ee,forEach:function(l){for(var c in this._)l.call(this,L(c))}}),t.behavior={};function je(l){return l}t.rebind=function(l,c){for(var p=1,m=arguments.length,y;++p<m;)l[y=arguments[p]]=me(l,c,c[y]);return l};function me(l,c,p){return function(){var m=p.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 p=0,m=qe.length;p<m;++p){var y=qe[p]+c;if(y in l)return y}}var qe=["webkit","ms","moz","Moz","o","O"];function Ue(){}t.dispatch=function(){for(var l=new be,c=-1,p=arguments.length;++c<p;)l[arguments[c]]=ye(l);return l};function be(){}be.prototype.on=function(l,c){var p=l.indexOf("."),m="";if(p>=0&&(m=l.slice(p+1),l=l.slice(0,p)),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 ye(l){var c=[],p=new M;function m(){for(var y=c,x=-1,O=y.length,T;++x<O;)(T=y[x].on)&&T.apply(this,arguments);return l}return m.on=function(y,x){var O=p.get(y),T;return arguments.length<2?O&&O.on:(O&&(O.on=null,c=c.slice(0,T=c.indexOf(O)).concat(c.slice(T+1)),p.remove(y)),x&&c.push(p.set(y,{on:x})),l)},m}t.event=null;function Ke(){t.event.preventDefault()}function We(){for(var l=t.event,c;c=l.sourceEvent;)l=c;return l}function Ze(l){for(var c=new be,p=0,m=arguments.length;++p<m;)c[arguments[p]]=ye(c);return c.of=function(y,x){return function(O){try{var T=O.sourceEvent=t.event;O.target=l,t.event=O,c[O.type].apply(y,x)}finally{t.event=T}}},c}t.requote=function(l){return l.replace(st,"\\$&")};var st=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Rt={}.__proto__?function(l,c){l.__proto__=c}:function(l,c){for(var p in c)l[p]=c[p]};function kt(l){return Rt(l,_e),l}var Ae=function(l,c){return c.querySelector(l)},nt=function(l,c){return c.querySelectorAll(l)},mt=function(l,c){var p=l.matches||l[Fe(l,"matchesSelector")];return mt=function(m,y){return p.call(m,y)},mt(l,c)};typeof Sizzle=="function"&&(Ae=function(l,c){return Sizzle(l,c)[0]||null},nt=Sizzle,mt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var _e=t.selection.prototype=[];_e.select=function(l){var c=[],p,m,y,x;l=j(l);for(var O=-1,T=this.length;++O<T;){c.push(p=[]),p.parentNode=(y=this[O]).parentNode;for(var k=-1,B=y.length;++k<B;)(x=y[k])?(p.push(m=l.call(x,x.__data__,k,O)),m&&"__data__"in x&&(m.__data__=x.__data__)):p.push(null)}return kt(c)};function j(l){return typeof l=="function"?l:function(){return Ae(l,this)}}_e.selectAll=function(l){var c=[],p,m;l=te(l);for(var y=-1,x=this.length;++y<x;)for(var O=this[y],T=-1,k=O.length;++T<k;)(m=O[T])&&(c.push(p=n(l.call(m,m.__data__,T,y))),p.parentNode=m);return kt(c)};function te(l){return typeof l=="function"?l:function(){return nt(l,this)}}var I="http://www.w3.org/1999/xhtml",C={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:C,qualify:function(l){var c=l.indexOf(":"),p=l;return c>=0&&(p=l.slice(0,c))!=="xmlns"&&(l=l.slice(c+1)),C.hasOwnProperty(p)?{space:C[p],local:l}:l}},_e.attr=function(l,c){if(arguments.length<2){if(typeof l=="string"){var p=this.node();return l=t.ns.qualify(l),l.local?p.getAttributeNS(l.space,l.local):p.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 p(){this.removeAttribute(l)}function m(){this.removeAttributeNS(l.space,l.local)}function y(){this.setAttribute(l,c)}function x(){this.setAttributeNS(l.space,l.local,c)}function O(){var k=c.apply(this,arguments);k==null?this.removeAttribute(l):this.setAttribute(l,k)}function T(){var k=c.apply(this,arguments);k==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,k)}return c==null?l.local?m:p:typeof c=="function"?l.local?T:O:l.local?x:y}function U(l){return l.trim().replace(/\s+/g," ")}_e.classed=function(l,c){if(arguments.length<2){if(typeof l=="string"){var p=this.node(),m=(l=Ne(l)).length,y=-1;if(c=p.classList){for(;++y<m;)if(!c.contains(l[y]))return!1}else for(c=p.getAttribute("class");++y<m;)if(!le(l[y]).test(c))return!1;return!0}for(c in l)this.each(ze(c,l[c]));return this}return this.each(ze(l,c))};function le(l){return new RegExp("(?:^|\\s+)"+t.requote(l)+"(?:\\s+|$)","g")}function Ne(l){return(l+"").trim().split(/^|\s+/)}function ze(l,c){l=Ne(l).map(qt);var p=l.length;function m(){for(var x=-1;++x<p;)l[x](this,c)}function y(){for(var x=-1,O=c.apply(this,arguments);++x<p;)l[x](this,O)}return typeof c=="function"?y:m}function qt(l){var c=le(l);return function(p,m){if(y=p.classList)return m?y.add(l):y.remove(l);var y=p.getAttribute("class")||"";m?(c.lastIndex=0,c.test(y)||p.setAttribute("class",U(y+" "+l))):p.setAttribute("class",U(y.replace(c," ")))}}_e.style=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(p in l)this.each(Qt(p,l[p],c));return this}if(m<2){var y=this.node();return o(y).getComputedStyle(y,null).getPropertyValue(l)}p=""}return this.each(Qt(l,c,p))};function Qt(l,c,p){function m(){this.style.removeProperty(l)}function y(){this.style.setProperty(l,c,p)}function x(){var O=c.apply(this,arguments);O==null?this.style.removeProperty(l):this.style.setProperty(l,O,p)}return c==null?m:typeof c=="function"?x:y}_e.property=function(l,c){if(arguments.length<2){if(typeof l=="string")return this.node()[l];for(c in l)this.each(nr(c,l[c]));return this}return this.each(nr(l,c))};function nr(l,c){function p(){delete this[l]}function m(){this[l]=c}function y(){var x=c.apply(this,arguments);x==null?delete this[l]:this[l]=x}return c==null?p:typeof c=="function"?y: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=gr(l),this.select(function(){return this.appendChild(l.apply(this,arguments))})};function gr(l){function c(){var m=this.ownerDocument,y=this.namespaceURI;return y===I&&m.documentElement.namespaceURI===I?m.createElement(l):m.createElementNS(y,l)}function p(){return this.ownerDocument.createElementNS(l.space,l.local)}return typeof l=="function"?l:(l=t.ns.qualify(l)).local?p:c}_e.insert=function(l,c){return l=gr(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(Sr)};function Sr(){var l=this.parentNode;l&&l.removeChild(this)}_e.data=function(l,c){var p=-1,m=this.length,y,x;if(!arguments.length){for(l=new Array(m=(y=this[0]).length);++p<m;)(x=y[p])&&(l[p]=x.__data__);return l}function O($,W){var G,oe=$.length,se=W.length,H=Math.min(oe,se),K=new Array(se),re=new Array(se),fe=new Array(oe),ce,ie;if(c){var $e=new M,Ye=new Array(oe),ut;for(G=-1;++G<oe;)(ce=$[G])&&($e.has(ut=c.call(ce,ce.__data__,G))?fe[G]=ce:$e.set(ut,ce),Ye[G]=ut);for(G=-1;++G<se;)(ce=$e.get(ut=c.call(W,ie=W[G],G)))?ce!==!0&&(K[G]=ce,ce.__data__=ie):re[G]=rn(ie),$e.set(ut,!0);for(G=-1;++G<oe;)G in Ye&&$e.get(Ye[G])!==!0&&(fe[G]=$[G])}else{for(G=-1;++G<H;)ce=$[G],ie=W[G],ce?(ce.__data__=ie,K[G]=ce):re[G]=rn(ie);for(;G<se;++G)re[G]=rn(W[G]);for(;G<oe;++G)fe[G]=$[G]}re.update=K,re.parentNode=K.parentNode=fe.parentNode=$.parentNode,T.push(re),k.push(K),B.push(fe)}var T=ma([]),k=kt([]),B=kt([]);if(typeof l=="function")for(;++p<m;)O(y=this[p],l.call(y,y.parentNode.__data__,p));else for(;++p<m;)O(y=this[p],l);return k.enter=function(){return T},k.exit=function(){return B},k};function rn(l){return{__data__:l}}_e.datum=function(l){return arguments.length?this.property("__data__",l):this.property("__data__")},_e.filter=function(l){var c=[],p,m,y;typeof l!="function"&&(l=ga(l));for(var x=0,O=this.length;x<O;x++){c.push(p=[]),p.parentNode=(m=this[x]).parentNode;for(var T=0,k=m.length;T<k;T++)(y=m[T])&&l.call(y,y.__data__,T,x)&&p.push(y)}return kt(c)};function ga(l){return function(){return mt(this,l)}}_e.order=function(){for(var l=-1,c=this.length;++l<c;)for(var p=this[l],m=p.length-1,y=p[m],x;--m>=0;)(x=p[m])&&(y&&y!==x.nextSibling&&y.parentNode.insertBefore(x,y),y=x);return this},_e.sort=function(l){l=Hn.apply(this,arguments);for(var c=-1,p=this.length;++c<p;)this[c].sort(l);return this.order()};function Hn(l){return arguments.length||(l=h),function(c,p){return c&&p?l(c.__data__,p.__data__):!c-!p}}_e.each=function(l){return Tn(this,function(c,p,m){l.call(c,c.__data__,p,m)})};function Tn(l,c){for(var p=0,m=l.length;p<m;p++)for(var y=l[p],x=0,O=y.length,T;x<O;x++)(T=y[x])&&c(T,x,p);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 p=this[l],m=0,y=p.length;m<y;m++){var x=p[m];if(x)return x}return null},_e.size=function(){var l=0;return Tn(this,function(){++l}),l};function ma(l){return Rt(l,Yi),l}var Yi=[];t.selection.enter=ma,t.selection.enter.prototype=Yi,Yi.append=_e.append,Yi.empty=_e.empty,Yi.node=_e.node,Yi.call=_e.call,Yi.size=_e.size,Yi.select=function(l){for(var c=[],p,m,y,x,O,T=-1,k=this.length;++T<k;){y=(x=this[T]).update,c.push(p=[]),p.parentNode=x.parentNode;for(var B=-1,$=x.length;++B<$;)(O=x[B])?(p.push(y[B]=m=l.call(x.parentNode,O.__data__,B,T)),m.__data__=O.__data__):p.push(null)}return kt(c)},Yi.insert=function(l,c){return arguments.length<2&&(c=Vu(this)),_e.insert.call(this,l,c)};function Vu(l){var c,p;return function(m,y,x){var O=l[x].update,T=O.length,k;for(x!=p&&(p=x,c=0),y>=c&&(c=y+1);!(k=O[c])&&++c<T;);return k}}t.select=function(l){var c;return typeof l=="string"?(c=[Ae(l,i)],c.parentNode=i.documentElement):(c=[l],c.parentNode=a(l)),kt([c])},t.selectAll=function(l){var c;return typeof l=="string"?(c=n(nt(l,i)),c.parentNode=i.documentElement):(c=n(l),c.parentNode=null),kt([c])},_e.on=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c=!1);for(p in l)this.each(ws(p,l[p],c));return this}if(m<2)return(m=this.node()["__on"+l])&&m._;p=!1}return this.each(ws(l,c,p))};function ws(l,c,p){var m="__on"+l,y=l.indexOf("."),x=_s;y>0&&(l=l.slice(0,y));var O=xs.get(l);O&&(l=O,x=N1);function T(){var $=this[m];$&&(this.removeEventListener(l,$,$.$),delete this[m])}function k(){var $=x(c,n(arguments));T.call(this),this.addEventListener(l,this[m]=$,$.$=p),$._=c}function B(){var $=new RegExp("^__on([^.]+)"+t.requote(l)+"$"),W;for(var G in this)if(W=G.match($)){var oe=this[G];this.removeEventListener(W[1],oe,oe.$),delete this[G]}}return y?c?k:T:c?Ue:B}var xs=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&xs.forEach(function(l){"on"+l in i&&xs.remove(l)});function _s(l,c){return function(p){var m=t.event;t.event=p,c[0]=this.__data__;try{l.apply(this,c)}finally{t.event=m}}}function N1(l,c){var p=_s(l,c);return function(m){var y=this,x=m.relatedTarget;(!x||x!==y&&!(x.compareDocumentPosition(y)&8))&&p.call(y,m)}}var Ga,L1=0;function Ss(l){var c=".dragsuppress-"+ ++L1,p="click"+c,m=t.select(o(l)).on("touchmove"+c,Ke).on("dragstart"+c,Ke).on("selectstart"+c,Ke);if(Ga==null&&(Ga="onselectstart"in l?!1:Fe(l.style,"userSelect")),Ga){var y=a(l).style,x=y[Ga];y[Ga]="none"}return function(O){if(m.on(c,null),Ga&&(y[Ga]=x),O){var T=function(){m.on(p,null)};m.on(p,function(){Ke(),T()},!0),setTimeout(T,0)}}}t.mouse=function(l){return pi(l,We())};var ln=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pi(l,c){c.changedTouches&&(c=c.changedTouches[0]);var p=l.ownerSVGElement||l;if(p.createSVGPoint){var m=p.createSVGPoint();if(ln<0){var y=o(l);if(y.scrollX||y.scrollY){p=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var x=p[0][0].getScreenCTM();ln=!(x.f||x.e),p.remove()}}return ln?(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,p){if(arguments.length<3&&(p=c,c=We().changedTouches),c){for(var m=0,y=c.length,x;m<y;++m)if((x=c[m]).identifier===p)return pi(l,x)}},t.behavior.drag=function(){var l=Ze(y,"drag","dragstart","dragend"),c=null,p=x(Ue,t.mouse,o,"mousemove","mouseup"),m=x(Vn,t.touch,je,"touchmove","touchend");function y(){this.on("mousedown.drag",p).on("touchstart.drag",m)}function x(O,T,k,B,$){return function(){var W=this,G=t.event.target.correspondingElement||t.event.target,oe=W.parentNode,se=l.of(W,arguments),H=0,K=O(),re=".drag"+(K==null?"":"-"+K),fe,ce=t.select(k(G)).on(B+re,Ye).on($+re,ut),ie=Ss(G),$e=T(oe,K);c?(fe=c.apply(W,arguments),fe=[fe.x-$e[0],fe.y-$e[1]]):fe=[0,0],se({type:"dragstart"});function Ye(){var Xe=T(oe,K),ct,wt;!Xe||(ct=Xe[0]-$e[0],wt=Xe[1]-$e[1],H|=ct|wt,$e=Xe,se({type:"drag",x:Xe[0]+fe[0],y:Xe[1]+fe[1],dx:ct,dy:wt}))}function ut(){!T(oe,K)||(ce.on(B+re,null).on($+re,null),ie(H),se({type:"dragend"}))}}}return y.origin=function(O){return arguments.length?(c=O,y):c},t.rebind(y,l,"on")};function Vn(){return t.event.changedTouches[0].identifier}t.touches=function(l,c){return arguments.length<2&&(c=We().touches),c?n(c).map(function(p){var m=pi(l,p);return m.identifier=p.identifier,m}):[]};var fr=1e-6,pv=fr*fr,Xi=Math.PI,Po=2*Xi,hv=Po-fr,Oi=Xi/2,vv=Xi/180,Yu=180/Xi;function B1(l,c,p){return(c[0]-l[0])*(p[1]-l[1])-(c[1]-l[1])*(p[0]-l[0])}function gv(l){return l>1?Oi:l<-1?-Oi:Math.asin(l)}function $1(l){return((l=Math.exp(l))-1/l)/2}function mv(l){return((l=Math.exp(l))+1/l)/2}function z1(l){return((l=Math.exp(2*l))-1)/(l+1)}var Xu=Math.SQRT2,Mc=2,yv=4;t.interpolateZoom=function(l,c){var p=l[0],m=l[1],y=l[2],x=c[0],O=c[1],T=c[2],k=x-p,B=O-m,$=k*k+B*B,W,G;if($<pv)G=Math.log(T/y)/Xu,W=function(fe){return[p+fe*k,m+fe*B,y*Math.exp(Xu*fe*G)]};else{var oe=Math.sqrt($),se=(T*T-y*y+yv*$)/(2*y*Mc*oe),H=(T*T-y*y-yv*$)/(2*T*Mc*oe),K=Math.log(Math.sqrt(se*se+1)-se),re=Math.log(Math.sqrt(H*H+1)-H);G=(re-K)/Xu,W=function(fe){var ce=fe*G,ie=mv(K),$e=y/(Mc*oe)*(ie*z1(Xu*ce+K)-$1(K));return[p+$e*k,m+$e*B,y*ie/mv(Xu*ce+K)]}}return W.duration=G*1e3,W},t.behavior.zoom=function(){var l={x:0,y:0,k:1},c,p,m,y=[960,500],x=Ku,O=250,T=0,k="mousedown.zoom",B="mousemove.zoom",$="mouseup.zoom",W,G="touchstart.zoom",oe,se=Ze(ce,"zoomstart","zoom","zoomend"),H,K,re,fe;Dc||(Dc="onwheel"in i?(Es=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Es=function(){return t.event.wheelDelta},"mousewheel"):(Es=function(){return-t.event.detail},"MozMousePixelScroll"));function ce(lt){lt.on(k,Vt).on(Dc+".zoom",Lr).on("dblclick.zoom",br).on(G,cr)}ce.event=function(lt){lt.each(function(){var Xt=se.of(this,arguments),Jt=l;ra?t.select(this).transition().each("start.zoom",function(){l=this.__chart__||{x:0,y:0,k:1},wt(Xt)}).tween("zoom:zoom",function(){var dr=y[0],kr=y[1],qr=p?p[0]:dr/2,Zr=p?p[1]:kr/2,bn=t.interpolateZoom([(qr-l.x)/l.k,(Zr-l.y)/l.k,dr/l.k],[(qr-Jt.x)/Jt.k,(Zr-Jt.y)/Jt.k,dr/Jt.k]);return function(Rn){var cn=bn(Rn),$n=dr/cn[2];this.__chart__=l={x:qr-cn[0]*$n,y:Zr-cn[1]*$n,k:$n},Yt(Xt)}}).each("interrupt.zoom",function(){Et(Xt)}).each("end.zoom",function(){Et(Xt)}):(this.__chart__=l,wt(Xt),Yt(Xt),Et(Xt))})},ce.translate=function(lt){return arguments.length?(l={x:+lt[0],y:+lt[1],k:l.k},ct(),ce):[l.x,l.y]},ce.scale=function(lt){return arguments.length?(l={x:l.x,y:l.y,k:null},Ye(+lt),ct(),ce):l.k},ce.scaleExtent=function(lt){return arguments.length?(x=lt==null?Ku:[+lt[0],+lt[1]],ce):x},ce.center=function(lt){return arguments.length?(m=lt&&[+lt[0],+lt[1]],ce):m},ce.size=function(lt){return arguments.length?(y=lt&&[+lt[0],+lt[1]],ce):y},ce.duration=function(lt){return arguments.length?(O=+lt,ce):O},ce.x=function(lt){return arguments.length?(K=lt,H=lt.copy(),l={x:0,y:0,k:1},ce):K},ce.y=function(lt){return arguments.length?(fe=lt,re=lt.copy(),l={x:0,y:0,k:1},ce):fe};function ie(lt){return[(lt[0]-l.x)/l.k,(lt[1]-l.y)/l.k]}function $e(lt){return[lt[0]*l.k+l.x,lt[1]*l.k+l.y]}function Ye(lt){l.k=Math.max(x[0],Math.min(x[1],lt))}function ut(lt,Xt){Xt=$e(Xt),l.x+=lt[0]-Xt[0],l.y+=lt[1]-Xt[1]}function Xe(lt,Xt,Jt,dr){lt.__chart__={x:l.x,y:l.y,k:l.k},Ye(Math.pow(2,dr)),ut(p=Xt,Jt),lt=t.select(lt),O>0&&(lt=lt.transition().duration(O)),lt.call(ce.event)}function ct(){K&&K.domain(H.range().map(function(lt){return(lt-l.x)/l.k}).map(H.invert)),fe&&fe.domain(re.range().map(function(lt){return(lt-l.y)/l.k}).map(re.invert))}function wt(lt){T++||lt({type:"zoomstart"})}function Yt(lt){ct(),lt({type:"zoom",scale:l.k,translate:[l.x,l.y]})}function Et(lt){--T||(lt({type:"zoomend"}),p=null)}function Vt(){var lt=this,Xt=se.of(lt,arguments),Jt=0,dr=t.select(o(lt)).on(B,Zr).on($,bn),kr=ie(t.mouse(lt)),qr=Ss(lt);rf.call(lt),wt(Xt);function Zr(){Jt=1,ut(t.mouse(lt),kr),Yt(Xt)}function bn(){dr.on(B,null).on($,null),qr(Jt),Et(Xt)}}function cr(){var lt=this,Xt=se.of(lt,arguments),Jt={},dr=0,kr,qr=".zoom-"+t.event.changedTouches[0].identifier,Zr="touchmove"+qr,bn="touchend"+qr,Rn=[],cn=t.select(lt),$n=Ss(lt);V(),wt(Xt),cn.on(k,null).on(G,V);function F(){var Le=t.touches(lt);return kr=l.k,Le.forEach(function(Te){Te.identifier in Jt&&(Jt[Te.identifier]=ie(Te))}),Le}function V(){var Le=t.event.target;t.select(Le).on(Zr,J).on(bn,Pe),Rn.push(Le);for(var Te=t.event.changedTouches,Oe=0,tt=Te.length;Oe<tt;++Oe)Jt[Te[Oe].identifier]=null;var rt=F(),ot=Date.now();if(rt.length===1){if(ot-oe<500){var ht=rt[0];Xe(lt,ht,Jt[ht.identifier],Math.floor(Math.log(l.k)/Math.LN2)+1),Ke()}oe=ot}else if(rt.length>1){var ht=rt[0],Ft=rt[1],Ct=ht[0]-Ft[0],ft=ht[1]-Ft[1];dr=Ct*Ct+ft*ft}}function J(){var Le=t.touches(lt),Te,Oe,tt,rt;rf.call(lt);for(var ot=0,ht=Le.length;ot<ht;++ot,rt=null)if(tt=Le[ot],rt=Jt[tt.identifier]){if(Oe)break;Te=tt,Oe=rt}if(rt){var Ft=(Ft=tt[0]-Te[0])*Ft+(Ft=tt[1]-Te[1])*Ft,Ct=dr&&Math.sqrt(Ft/dr);Te=[(Te[0]+tt[0])/2,(Te[1]+tt[1])/2],Oe=[(Oe[0]+rt[0])/2,(Oe[1]+rt[1])/2],Ye(Ct*kr)}oe=null,ut(Te,Oe),Yt(Xt)}function Pe(){if(t.event.touches.length){for(var Le=t.event.changedTouches,Te=0,Oe=Le.length;Te<Oe;++Te)delete Jt[Le[Te].identifier];for(var tt in Jt)return void F()}t.selectAll(Rn).on(qr,null),cn.on(k,Vt).on(G,cr),$n(),Et(Xt)}}function Lr(){var lt=se.of(this,arguments);W?clearTimeout(W):(rf.call(this),c=ie(p=m||t.mouse(this)),wt(lt)),W=setTimeout(function(){W=null,Et(lt)},50),Ke(),Ye(Math.pow(2,Es()*.002)*l.k),ut(p,c),Yt(lt)}function br(){var lt=t.mouse(this),Xt=Math.log(l.k)/Math.LN2;Xe(this,lt,ie(lt),t.event.shiftKey?Math.ceil(Xt)-1:Math.floor(Xt)+1)}return t.rebind(ce,se,"on")};var Ku=[0,1/0],Es,Dc;t.color=ya;function ya(){}ya.prototype.toString=function(){return this.rgb()+""},t.hsl=ti;function ti(l,c,p){return this instanceof ti?(this.h=+l,this.s=+c,void(this.l=+p)):arguments.length<2?l instanceof ti?new ti(l.h,l.s,l.l):Ha(""+l,Uc,ti):new ti(l,c,p)}var As=ti.prototype=new ya;As.brighter=function(l){return l=Math.pow(.7,arguments.length?l:1),new ti(this.h,this.s,this.l/l)},As.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new ti(this.h,this.s,l*this.l)},As.rgb=function(){return Cs(this.h,this.s,this.l)};function Cs(l,c,p){var m,y;l=isNaN(l)?0:(l%=360)<0?l+360:l,c=isNaN(c)||c<0?0:c>1?1:c,p=p<0?0:p>1?1:p,y=p<=.5?p*(1+c):p+c-p*c,m=2*p-y;function x(T){return T>360?T-=360:T<0&&(T+=360),T<60?m+(y-m)*T/60:T<180?y:T<240?m+(y-m)*(240-T)/60:m}function O(T){return Math.round(x(T)*255)}return new sn(O(l+120),O(l),O(l-120))}t.hcl=hi;function hi(l,c,p){return this instanceof hi?(this.h=+l,this.c=+c,void(this.l=+p)):arguments.length<2?l instanceof hi?new hi(l.h,l.c,l.l):l instanceof nn?xv(l.l,l.a,l.b):xv((l=Va((l=t.rgb(l)).r,l.g,l.b)).l,l.a,l.b):new hi(l,c,p)}var Qu=hi.prototype=new ya;Qu.brighter=function(l){return new hi(this.h,this.c,Math.min(100,this.l+qa*(arguments.length?l:1)))},Qu.darker=function(l){return new hi(this.h,this.c,Math.max(0,this.l-qa*(arguments.length?l:1)))},Qu.rgb=function(){return Zu(this.h,this.c,this.l).rgb()};function Zu(l,c,p){return isNaN(l)&&(l=0),isNaN(c)&&(c=0),new nn(p,Math.cos(l*=vv)*c,Math.sin(l)*c)}t.lab=nn;function nn(l,c,p){return this instanceof nn?(this.l=+l,this.a=+c,void(this.b=+p)):arguments.length<2?l instanceof nn?new nn(l.l,l.a,l.b):l instanceof hi?Zu(l.h,l.c,l.l):Va((l=sn(l)).r,l.g,l.b):new nn(l,c,p)}var qa=18,Fc=.95047,Nc=1,bv=1.08883,Lc=nn.prototype=new ya;Lc.brighter=function(l){return new nn(Math.min(100,this.l+qa*(arguments.length?l:1)),this.a,this.b)},Lc.darker=function(l){return new nn(Math.max(0,this.l-qa*(arguments.length?l:1)),this.a,this.b)},Lc.rgb=function(){return wv(this.l,this.a,this.b)};function wv(l,c,p){var m=(l+16)/116,y=m+c/500,x=m-p/200;return y=Bc(y)*Fc,m=Bc(m)*Nc,x=Bc(x)*bv,new sn(zc(3.2404542*y-1.5371385*m-.4985314*x),zc(-.969266*y+1.8760108*m+.041556*x),zc(.0556434*y-.2040259*m+1.0572252*x))}function xv(l,c,p){return l>0?new hi(Math.atan2(p,c)*Yu,Math.sqrt(c*c+p*p),l):new hi(NaN,NaN,l)}function Bc(l){return l>.206893034?l*l*l:(l-4/29)/7.787037}function $c(l){return l>.008856?Math.pow(l,1/3):7.787037*l+4/29}function zc(l){return Math.round(255*(l<=.00304?12.92*l:1.055*Math.pow(l,1/2.4)-.055))}t.rgb=sn;function sn(l,c,p){return this instanceof sn?(this.r=~~l,this.g=~~c,void(this.b=~~p)):arguments.length<2?l instanceof sn?new sn(l.r,l.g,l.b):Ha(""+l,sn,Cs):new sn(l,c,p)}function _v(l){return new sn(l>>16,l>>8&255,l&255)}function Ts(l){return _v(l)+""}var ba=sn.prototype=new ya;ba.brighter=function(l){l=Math.pow(.7,arguments.length?l:1);var c=this.r,p=this.g,m=this.b,y=30;return!c&&!p&&!m?new sn(y,y,y):(c&&c<y&&(c=y),p&&p<y&&(p=y),m&&m<y&&(m=y),new sn(Math.min(255,c/l),Math.min(255,p/l),Math.min(255,m/l)))},ba.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new sn(l*this.r,l*this.g,l*this.b)},ba.hsl=function(){return Uc(this.r,this.g,this.b)},ba.toString=function(){return"#"+ko(this.r)+ko(this.g)+ko(this.b)};function ko(l){return l<16?"0"+Math.max(0,l).toString(16):Math.min(255,l).toString(16)}function Ha(l,c,p){var m=0,y=0,x=0,O,T,k;if(O=/([a-z]+)\((.*)\)/.exec(l=l.toLowerCase()),O)switch(T=O[2].split(","),O[1]){case"hsl":return p(parseFloat(T[0]),parseFloat(T[1])/100,parseFloat(T[2])/100);case"rgb":return c(wa(T[0]),wa(T[1]),wa(T[2]))}return(k=Mo.get(l))?c(k.r,k.g,k.b):(l!=null&&l.charAt(0)==="#"&&!isNaN(k=parseInt(l.slice(1),16))&&(l.length===4?(m=(k&3840)>>4,m=m>>4|m,y=k&240,y=y>>4|y,x=k&15,x=x<<4|x):l.length===7&&(m=(k&16711680)>>16,y=(k&65280)>>8,x=k&255)),c(m,y,x))}function Uc(l,c,p){var m=Math.min(l/=255,c/=255,p/=255),y=Math.max(l,c,p),x=y-m,O,T,k=(y+m)/2;return x?(T=k<.5?x/(y+m):x/(2-y-m),l==y?O=(c-p)/x+(c<p?6:0):c==y?O=(p-l)/x+2:O=(l-c)/x+4,O*=60):(O=NaN,T=k>0&&k<1?0:O),new ti(O,T,k)}function Va(l,c,p){l=Rs(l),c=Rs(c),p=Rs(p);var m=$c((.4124564*l+.3575761*c+.1804375*p)/Fc),y=$c((.2126729*l+.7151522*c+.072175*p)/Nc),x=$c((.0193339*l+.119192*c+.9503041*p)/bv);return nn(116*y-16,500*(m-y),200*(y-x))}function Rs(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}function wa(l){var c=parseFloat(l);return l.charAt(l.length-1)==="%"?Math.round(c*2.55):c}var Mo=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});Mo.forEach(function(l,c){Mo.set(l,_v(c))});function Er(l){return typeof l=="function"?l:function(){return l}}t.functor=Er,t.xhr=jc(je);function jc(l){return function(c,p,m){return arguments.length===2&&typeof p=="function"&&(m=p,p=null),Os(c,p,l,m)}}function Os(l,c,p,m){var y={},x=t.dispatch("beforesend","progress","load","error"),O={},T=new XMLHttpRequest,k=null;self.XDomainRequest&&!("withCredentials"in T)&&/^(http(s)?:)?\/\//.test(l)&&(T=new XDomainRequest),"onload"in T?T.onload=T.onerror=B:T.onreadystatechange=function(){T.readyState>3&&B()};function B(){var $=T.status,W;if(!$&&U1(T)||$>=200&&$<300||$===304){try{W=p.call(y,T)}catch(G){x.error.call(y,G);return}x.load.call(y,W)}else x.error.call(y,T)}return T.onprogress=function($){var W=t.event;t.event=$;try{x.progress.call(y,T)}finally{t.event=W}},y.header=function($,W){return $=($+"").toLowerCase(),arguments.length<2?O[$]:(W==null?delete O[$]:O[$]=W+"",y)},y.mimeType=function($){return arguments.length?(c=$==null?null:$+"",y):c},y.responseType=function($){return arguments.length?(k=$,y):k},y.response=function($){return p=$,y},["get","post"].forEach(function($){y[$]=function(){return y.send.apply(y,[$].concat(n(arguments)))}}),y.send=function($,W,G){if(arguments.length===2&&typeof W=="function"&&(G=W,W=null),T.open($,l,!0),c!=null&&!("accept"in O)&&(O.accept=c+",*/*"),T.setRequestHeader)for(var oe in O)T.setRequestHeader(oe,O[oe]);return c!=null&&T.overrideMimeType&&T.overrideMimeType(c),k!=null&&(T.responseType=k),G!=null&&y.on("error",G).on("load",function(se){G(null,se)}),x.beforesend.call(y,T),T.send(W==null?null:W),y},y.abort=function(){return T.abort(),y},t.rebind(y,x,"on"),m==null?y:y.get(Sv(m))}function Sv(l){return l.length===1?function(c,p){l(c==null?p:null)}:l}function U1(l){var c=l.responseType;return c&&c!=="text"?l.response:l.responseText}t.dsv=function(l,c){var p=new RegExp('["'+l+`
|
|
918
|
+
]`),m=l.charCodeAt(0);function y(B,$,W){arguments.length<3&&(W=$,$=null);var G=Os(B,c,$==null?x:O($),W);return G.row=function(oe){return arguments.length?G.response(($=oe)==null?x:O(oe)):$},G}function x(B){return y.parse(B.responseText)}function O(B){return function($){return y.parse($.responseText,B)}}y.parse=function(B,$){var W;return y.parseRows(B,function(G,oe){if(W)return W(G,oe-1);var se=function(H){for(var K={},re=G.length,fe=0;fe<re;++fe)K[G[fe]]=H[fe];return K};W=$?function(H,K){return $(se(H),K)}:se})},y.parseRows=function(B,$){var W={},G={},oe=[],se=B.length,H=0,K=0,re,fe;function ce(){if(H>=se)return G;if(fe)return fe=!1,W;var $e=H;if(B.charCodeAt($e)===34){for(var Ye=$e;Ye++<se;)if(B.charCodeAt(Ye)===34){if(B.charCodeAt(Ye+1)!==34)break;++Ye}H=Ye+2;var ut=B.charCodeAt(Ye+1);return ut===13?(fe=!0,B.charCodeAt(Ye+2)===10&&++H):ut===10&&(fe=!0),B.slice($e+1,Ye).replace(/""/g,'"')}for(;H<se;){var ut=B.charCodeAt(H++),Xe=1;if(ut===10)fe=!0;else if(ut===13)fe=!0,B.charCodeAt(H)===10&&(++H,++Xe);else if(ut!==m)continue;return B.slice($e,H-Xe)}return B.slice($e)}for(;(re=ce())!==G;){for(var ie=[];re!==W&&re!==G;)ie.push(re),re=ce();$&&(ie=$(ie,K++))==null||oe.push(ie)}return oe},y.format=function(B){if(Array.isArray(B[0]))return y.formatRows(B);var $=new Je,W=[];return B.forEach(function(G){for(var oe in G)$.has(oe)||W.push($.add(oe))}),[W.map(k).join(l)].concat(B.map(function(G){return W.map(function(oe){return k(G[oe])}).join(l)})).join(`
|
|
919
|
+
`)},y.formatRows=function(B){return B.map(T).join(`
|
|
920
|
+
`)};function T(B){return B.map(k).join(l)}function k(B){return p.test(B)?'"'+B.replace(/\"/g,'""')+'"':B}return y},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Is,Ju,vi,Ps,gi=this[Fe(this,"requestAnimationFrame")]||function(l){setTimeout(l,17)};t.timer=function(){Do.apply(this,arguments)};function Do(l,c,p){var m=arguments.length;m<2&&(c=0),m<3&&(p=Date.now());var y=p+c,x={c:l,t:y,n:null};return Ju?Ju.n=x:Is=x,Ju=x,vi||(Ps=clearTimeout(Ps),vi=1,gi(Fo)),x}function Fo(){var l=xa(),c=ks()-l;c>24?(isFinite(c)&&(clearTimeout(Ps),Ps=setTimeout(Fo,c)),vi=0):(vi=1,gi(Fo))}t.timer.flush=function(){xa(),ks()};function xa(){for(var l=Date.now(),c=Is;c;)l>=c.t&&c.c(l-c.t)&&(c.c=null),c=c.n;return l}function ks(){for(var l,c=Is,p=1/0;c;)c.c?(c.t<p&&(p=c.t),c=(l=c).n):c=l?l.n=c.n:Is=c.n;return Ju=l,p}t.round=function(l,c){return c?Math.round(l*(c=Math.pow(10,c)))/c:Math.round(l)},t.geom={};function Ki(l){return l[0]}function Qi(l){return l[1]}t.geom.hull=function(l){var c=Ki,p=Qi;if(arguments.length)return m(l);function m(y){if(y.length<3)return[];var x=Er(c),O=Er(p),T,k=y.length,B=[],$=[];for(T=0;T<k;T++)B.push([+x.call(this,y[T],T),+O.call(this,y[T],T),T]);for(B.sort(Ev),T=0;T<k;T++)$.push([B[T][0],-B[T][1]]);var W=el(B),G=el($),oe=G[0]===W[0],se=G[G.length-1]===W[W.length-1],H=[];for(T=W.length-1;T>=0;--T)H.push(y[B[W[T]][2]]);for(T=+oe;T<G.length-se;++T)H.push(y[B[G[T]][2]]);return H}return m.x=function(y){return arguments.length?(c=y,m):c},m.y=function(y){return arguments.length?(p=y,m):p},m};function el(l){for(var c=l.length,p=[0,1],m=2,y=2;y<c;y++){for(;m>1&&B1(l[p[m-2]],l[p[m-1]],l[y])<=0;)--m;p[m++]=y}return p.slice(0,m)}function Ev(l,c){return l[0]-c[0]||l[1]-c[1]}t.geom.polygon=function(l){return Rt(l,No),l};var No=t.geom.polygon.prototype=[];No.area=function(){for(var l=-1,c=this.length,p,m=this[c-1],y=0;++l<c;)p=m,m=this[l],y+=p[1]*m[0]-p[0]*m[1];return y*.5},No.centroid=function(l){var c=-1,p=this.length,m=0,y=0,x,O=this[p-1],T;for(arguments.length||(l=-1/(6*this.area()));++c<p;)x=O,O=this[c],T=x[0]*O[1]-O[0]*x[1],m+=(x[0]+O[0])*T,y+=(x[1]+O[1])*T;return[m*l,y*l]},No.clip=function(l){for(var c,p=Av(l),m=-1,y=this.length-Av(this),x,O,T=this[y-1],k,B,$;++m<y;){for(c=l.slice(),l.length=0,k=this[m],B=c[(O=c.length-p)-1],x=-1;++x<O;)$=c[x],Ms($,T,k)?(Ms(B,T,k)||l.push(Wc(B,$,T,k)),l.push($)):Ms(B,T,k)&&l.push(Wc(B,$,T,k)),B=$;p&&l.push(l[0]),T=k}return l};function Ms(l,c,p){return(p[0]-c[0])*(l[1]-c[1])<(p[1]-c[1])*(l[0]-c[0])}function Wc(l,c,p,m){var y=l[0],x=p[0],O=c[0]-y,T=m[0]-x,k=l[1],B=p[1],$=c[1]-k,W=m[1]-B,G=(T*(k-B)-W*(y-x))/(W*O-T*$);return[y+G*O,k+G*$]}function Av(l){var c=l[0],p=l[l.length-1];return!(c[0]-p[0]||c[1]-p[1])}var Lo,Ya,_a,tl=[],rl,Xa,Ka=[];function Gc(){Ns(this),this.edge=this.site=this.circle=null}function Ds(l){var c=tl.pop()||new Gc;return c.site=l,c}function nl(l){mi(l),_a.remove(l),tl.push(l),Ns(l)}function qc(l){var c=l.circle,p=c.x,m=c.cy,y={x:p,y:m},x=l.P,O=l.N,T=[l];nl(l);for(var k=x;k.circle&&S(p-k.circle.x)<fr&&S(m-k.circle.cy)<fr;)x=k.P,T.unshift(k),nl(k),k=x;T.unshift(k),mi(k);for(var B=O;B.circle&&S(p-B.circle.x)<fr&&S(m-B.circle.cy)<fr;)O=B.N,T.push(B),nl(B),B=O;T.push(B),mi(B);var $=T.length,W;for(W=1;W<$;++W)B=T[W],k=T[W-1],Bo(B.edge,k.site,B.site,y);k=T[0],B=T[$-1],B.edge=al(k.site,B.site,null,y),Qa(k),Qa(B)}function Cv(l){for(var c=l.x,p=l.y,m,y,x,O,T=_a._;T;)if(x=Hc(T,p)-c,x>fr)T=T.L;else if(O=c-Tv(T,p),O>fr){if(!T.R){m=T;break}T=T.R}else{x>-fr?(m=T.P,y=T):O>-fr?(m=T,y=T.N):m=y=T;break}var k=Ds(l);if(_a.insert(m,k),!(!m&&!y)){if(m===y){mi(m),y=Ds(m.site),_a.insert(k,y),k.edge=y.edge=al(m.site,k.site),Qa(m),Qa(y);return}if(!y){k.edge=al(m.site,k.site);return}mi(m),mi(y);var B=m.site,$=B.x,W=B.y,G=l.x-$,oe=l.y-W,se=y.site,H=se.x-$,K=se.y-W,re=2*(G*K-oe*H),fe=G*G+oe*oe,ce=H*H+K*K,ie={x:(K*fe-oe*ce)/re+$,y:(G*ce-H*fe)/re+W};Bo(y.edge,B,se,ie),k.edge=al(B,l,null,ie),y.edge=al(l,se,null,ie),Qa(m),Qa(y)}}function Hc(l,c){var p=l.site,m=p.x,y=p.y,x=y-c;if(!x)return m;var O=l.P;if(!O)return-1/0;p=O.site;var T=p.x,k=p.y,B=k-c;if(!B)return T;var $=T-m,W=1/x-1/B,G=$/B;return W?(-G+Math.sqrt(G*G-2*W*($*$/(-2*B)-k+B/2+y-x/2)))/W+m:(m+T)/2}function Tv(l,c){var p=l.N;if(p)return Hc(p,c);var m=l.site;return m.y===c?m.x:1/0}function Vc(l){this.site=l,this.edges=[]}Vc.prototype.prepare=function(){for(var l=this.edges,c=l.length,p;c--;)p=l[c].edge,(!p.b||!p.a)&&l.splice(c,1);return l.sort(Yc),l.length};function Rv(l){for(var c=l[0][0],p=l[1][0],m=l[0][1],y=l[1][1],x,O,T,k,B=Ya,$=B.length,W,G,oe,se,H,K;$--;)if(W=B[$],!(!W||!W.prepare()))for(oe=W.edges,se=oe.length,G=0;G<se;)K=oe[G].end(),T=K.x,k=K.y,H=oe[++G%se].start(),x=H.x,O=H.y,(S(T-x)>fr||S(k-O)>fr)&&(oe.splice(G,0,new Fs(j1(W.site,K,S(T-c)<fr&&y-k>fr?{x:c,y:S(x-c)<fr?O:y}:S(k-y)<fr&&p-T>fr?{x:S(O-y)<fr?x:p,y}:S(T-p)<fr&&k-m>fr?{x:p,y:S(x-p)<fr?O:m}:S(k-m)<fr&&T-c>fr?{x:S(O-m)<fr?x:c,y:m}:null),W.site,null)),++se)}function Yc(l,c){return c.angle-l.angle}function Ov(){Ns(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qa(l){var c=l.P,p=l.N;if(!(!c||!p)){var m=c.site,y=l.site,x=p.site;if(m!==x){var O=y.x,T=y.y,k=m.x-O,B=m.y-T,$=x.x-O,K=x.y-T,W=2*(k*K-B*$);if(!(W>=-pv)){var G=k*k+B*B,oe=$*$+K*K,se=(K*G-B*oe)/W,H=(k*oe-$*G)/W,K=H+T,re=Ka.pop()||new Ov;re.arc=l,re.site=y,re.x=se+O,re.y=K+Math.sqrt(se*se+H*H),re.cy=K,l.circle=re;for(var fe=null,ce=Xa._;ce;)if(re.y<ce.y||re.y===ce.y&&re.x<=ce.x)if(ce.L)ce=ce.L;else{fe=ce.P;break}else if(ce.R)ce=ce.R;else{fe=ce;break}Xa.insert(fe,re),fe||(rl=re)}}}}function mi(l){var c=l.circle;c&&(c.P||(rl=c.N),Xa.remove(c),Ka.push(c),Ns(c),l.circle=null)}function Xc(l,c,p,m){return function(y){var x=y.a,O=y.b,T=x.x,k=x.y,B=O.x,$=O.y,W=0,G=1,oe=B-T,se=$-k,H;if(H=l-T,!(!oe&&H>0)){if(H/=oe,oe<0){if(H<W)return;H<G&&(G=H)}else if(oe>0){if(H>G)return;H>W&&(W=H)}if(H=p-T,!(!oe&&H<0)){if(H/=oe,oe<0){if(H>G)return;H>W&&(W=H)}else if(oe>0){if(H<W)return;H<G&&(G=H)}if(H=c-k,!(!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=m-k,!(!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)}return W>0&&(y.a={x:T+W*oe,y:k+W*se}),G<1&&(y.b={x:T+G*oe,y:k+G*se}),y}}}}}}function Kc(l){for(var c=Lo,p=Xc(l[0][0],l[0][1],l[1][0],l[1][1]),m=c.length,y;m--;)y=c[m],(!il(y,l)||!p(y)||S(y.a.x-y.b.x)<fr&&S(y.a.y-y.b.y)<fr)&&(y.a=y.b=null,c.splice(m,1))}function il(l,c){var p=l.b;if(p)return!0;var m=l.a,y=c[0][0],x=c[1][0],O=c[0][1],T=c[1][1],k=l.l,B=l.r,$=k.x,W=k.y,G=B.x,oe=B.y,se=($+G)/2,H=(W+oe)/2,K,re;if(oe===W){if(se<y||se>=x)return;if($>G){if(!m)m={x:se,y:O};else if(m.y>=T)return;p={x:se,y:T}}else{if(!m)m={x:se,y:T};else if(m.y<O)return;p={x:se,y:O}}}else if(K=($-G)/(oe-W),re=H-K*se,K<-1||K>1)if($>G){if(!m)m={x:(O-re)/K,y:O};else if(m.y>=T)return;p={x:(T-re)/K,y:T}}else{if(!m)m={x:(T-re)/K,y:T};else if(m.y<O)return;p={x:(O-re)/K,y:O}}else if(W<oe){if(!m)m={x:y,y:K*y+re};else if(m.x>=x)return;p={x,y:K*x+re}}else{if(!m)m={x,y:K*x+re};else if(m.x<y)return;p={x:y,y:K*y+re}}return l.a=m,l.b=p,!0}function Iv(l,c){this.l=l,this.r=c,this.a=this.b=null}function al(l,c,p,m){var y=new Iv(l,c);return Lo.push(y),p&&Bo(y,l,c,p),m&&Bo(y,c,l,m),Ya[l.i].edges.push(new Fs(y,l,c)),Ya[c.i].edges.push(new Fs(y,c,l)),y}function j1(l,c,p){var m=new Iv(l,null);return m.a=c,m.b=p,Lo.push(m),m}function Bo(l,c,p,m){!l.a&&!l.b?(l.a=m,l.l=c,l.r=p):l.l===p?l.b=m:l.a=m}function Fs(l,c,p){var m=l.a,y=l.b;this.edge=l,this.site=c,this.angle=p?Math.atan2(p.y-c.y,p.x-c.x):l.l===c?Math.atan2(y.x-m.x,m.y-y.y):Math.atan2(m.x-y.x,y.y-m.y)}Fs.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 Qc(){this._=null}function Ns(l){l.U=l.C=l.L=l.R=l.P=l.N=null}Qc.prototype={insert:function(l,c){var p,m,y;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;p=l}else this._?(l=Ls(this._),c.P=null,c.N=l,l.P=l.L=c,p=l):(c.P=c.N=null,this._=c,p=null);for(c.L=c.R=null,c.U=p,c.C=!0,l=c;p&&p.C;)m=p.U,p===m.L?(y=m.R,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.R&&(Za(this,p),l=p,p=l.U),p.C=!1,m.C=!0,ol(this,m))):(y=m.L,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.L&&(ol(this,p),l=p,p=l.U),p.C=!1,m.C=!0,Za(this,m))),p=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,p,m=l.L,y=l.R,x,O;if(m?y?x=Ls(y):x=m:x=y,c?c.L===l?c.L=x:c.R=x:this._=x,m&&y?(O=x.C,x.C=l.C,x.L=m,m.U=x,x!==y?(c=x.U,x.U=l.U,l=x.R,c.L=l,x.R=y,y.U=x):(x.U=c,c=x,l=x.R)):(O=l.C,l=x),l&&(l.U=c),!O){if(l&&l.C){l.C=!1;return}do{if(l===this._)break;if(l===c.L){if(p=c.R,p.C&&(p.C=!1,c.C=!0,Za(this,c),p=c.R),p.L&&p.L.C||p.R&&p.R.C){(!p.R||!p.R.C)&&(p.L.C=!1,p.C=!0,ol(this,p),p=c.R),p.C=c.C,c.C=p.R.C=!1,Za(this,c),l=this._;break}}else if(p=c.L,p.C&&(p.C=!1,c.C=!0,ol(this,c),p=c.L),p.L&&p.L.C||p.R&&p.R.C){(!p.L||!p.L.C)&&(p.R.C=!1,p.C=!0,Za(this,p),p=c.L),p.C=c.C,c.C=p.L.C=!1,ol(this,c),l=this._;break}p.C=!0,l=c,c=c.U}while(!l.C);l&&(l.C=!1)}}};function Za(l,c){var p=c,m=c.R,y=p.U;y?y.L===p?y.L=m:y.R=m:l._=m,m.U=y,p.U=m,p.R=m.L,p.R&&(p.R.U=p),m.L=p}function ol(l,c){var p=c,m=c.L,y=p.U;y?y.L===p?y.L=m:y.R=m:l._=m,m.U=y,p.U=m,p.L=m.R,p.L&&(p.L.U=p),m.R=p}function Ls(l){for(;l.L;)l=l.L;return l}function Bs(l,c){var p=l.sort(Pv).pop(),m,y,x;for(Lo=[],Ya=new Array(l.length),_a=new Qc,Xa=new Qc;;)if(x=rl,p&&(!x||p.y<x.y||p.y===x.y&&p.x<x.x))(p.x!==m||p.y!==y)&&(Ya[p.i]=new Vc(p),Cv(p),m=p.x,y=p.y),p=l.pop();else if(x)qc(x.arc);else break;c&&(Kc(c),Rv(c));var O={cells:Ya,edges:Lo};return _a=Xa=Lo=Ya=null,O}function Pv(l,c){return c.y-l.y||c.x-l.x}t.geom.voronoi=function(l){var c=Ki,p=Qi,m=c,y=p,x=$o;if(l)return O(l);function O(k){var B=new Array(k.length),$=x[0][0],W=x[0][1],G=x[1][0],oe=x[1][1];return Bs(T(k),x).cells.forEach(function(se,H){var K=se.edges,re=se.site,fe=B[H]=K.length?K.map(function(ce){var ie=ce.start();return[ie.x,ie.y]}):re.x>=$&&re.x<=G&&re.y>=W&&re.y<=oe?[[$,oe],[G,oe],[G,W],[$,W]]:[];fe.point=k[H]}),B}function T(k){return k.map(function(B,$){return{x:Math.round(m(B,$)/fr)*fr,y:Math.round(y(B,$)/fr)*fr,i:$}})}return O.links=function(k){return Bs(T(k)).edges.filter(function(B){return B.l&&B.r}).map(function(B){return{source:k[B.l.i],target:k[B.r.i]}})},O.triangles=function(k){var B=[];return Bs(T(k)).cells.forEach(function($,W){for(var G=$.site,oe=$.edges.sort(Yc),se=-1,H=oe.length,K,re=oe[H-1].edge,fe=re.l===G?re.r:re.l;++se<H;)K=fe,re=oe[se].edge,fe=re.l===G?re.r:re.l,W<K.i&&W<fe.i&&W1(G,K,fe)<0&&B.push([k[W],k[K.i],k[fe.i]])}),B},O.x=function(k){return arguments.length?(m=Er(c=k),O):c},O.y=function(k){return arguments.length?(y=Er(p=k),O):p},O.clipExtent=function(k){return arguments.length?(x=k==null?$o:k,O):x===$o?null:x},O.size=function(k){return arguments.length?O.clipExtent(k&&[[0,0],k]):x===$o?null:x&&x[1]},O};var $o=[[-1e6,-1e6],[1e6,1e6]];function W1(l,c,p){return(l.x-p.x)*(c.y-l.y)-(l.x-c.x)*(p.y-l.y)}t.geom.delaunay=function(l){return t.geom.voronoi().triangles(l)},t.geom.quadtree=function(l,c,p,m,y){var x=Ki,O=Qi,T;if(T=arguments.length)return x=$s,O=G1,T===3&&(y=p,m=c,p=c=0),k(l);function k(B){var $,W=Er(x),G=Er(O),oe,se,H,K,re,fe,ce,ie;if(c!=null)re=c,fe=p,ce=m,ie=y;else if(ce=ie=-(re=fe=1/0),oe=[],se=[],K=B.length,T)for(H=0;H<K;++H)$=B[H],$.x<re&&(re=$.x),$.y<fe&&(fe=$.y),$.x>ce&&(ce=$.x),$.y>ie&&(ie=$.y),oe.push($.x),se.push($.y);else for(H=0;H<K;++H){var $e=+W($=B[H],H),Ye=+G($,H);$e<re&&(re=$e),Ye<fe&&(fe=Ye),$e>ce&&(ce=$e),Ye>ie&&(ie=Ye),oe.push($e),se.push(Ye)}var ut=ce-re,Xe=ie-fe;ut>Xe?ie=fe+ut:ce=re+Xe;function ct(Et,Vt,cr,Lr,br,lt,Xt,Jt){if(!(isNaN(cr)||isNaN(Lr)))if(Et.leaf){var dr=Et.x,kr=Et.y;if(dr!=null)if(S(dr-cr)+S(kr-Lr)<.01)wt(Et,Vt,cr,Lr,br,lt,Xt,Jt);else{var qr=Et.point;Et.x=Et.y=Et.point=null,wt(Et,qr,dr,kr,br,lt,Xt,Jt),wt(Et,Vt,cr,Lr,br,lt,Xt,Jt)}else Et.x=cr,Et.y=Lr,Et.point=Vt}else wt(Et,Vt,cr,Lr,br,lt,Xt,Jt)}function wt(Et,Vt,cr,Lr,br,lt,Xt,Jt){var dr=(br+Xt)*.5,kr=(lt+Jt)*.5,qr=cr>=dr,Zr=Lr>=kr,bn=Zr<<1|qr;Et.leaf=!1,Et=Et.nodes[bn]||(Et.nodes[bn]=kv()),qr?br=dr:Xt=dr,Zr?lt=kr:Jt=kr,ct(Et,Vt,cr,Lr,br,lt,Xt,Jt)}var Yt=kv();if(Yt.add=function(Et){ct(Yt,Et,+W(Et,++H),+G(Et,H),re,fe,ce,ie)},Yt.visit=function(Et){ul(Et,Yt,re,fe,ce,ie)},Yt.find=function(Et){return q1(Yt,Et[0],Et[1],re,fe,ce,ie)},H=-1,c==null){for(;++H<K;)ct(Yt,B[H],oe[H],se[H],re,fe,ce,ie);--H}else B.forEach(Yt.add);return oe=se=B=$=null,Yt}return k.x=function(B){return arguments.length?(x=B,k):x},k.y=function(B){return arguments.length?(O=B,k):O},k.extent=function(B){return arguments.length?(B==null?c=p=m=y=null:(c=+B[0][0],p=+B[0][1],m=+B[1][0],y=+B[1][1]),k):c==null?null:[[c,p],[m,y]]},k.size=function(B){return arguments.length?(B==null?c=p=m=y=null:(c=p=0,m=+B[0],y=+B[1]),k):c==null?null:[m-c,y-p]},k};function $s(l){return l.x}function G1(l){return l.y}function kv(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ul(l,c,p,m,y,x){if(!l(c,p,m,y,x)){var O=(p+y)*.5,T=(m+x)*.5,k=c.nodes;k[0]&&ul(l,k[0],p,m,O,T),k[1]&&ul(l,k[1],O,m,y,T),k[2]&&ul(l,k[2],p,T,O,x),k[3]&&ul(l,k[3],O,T,y,x)}}function q1(l,c,p,m,y,x,O){var T=1/0,k;return function B($,W,G,oe,se){if(!(W>x||G>O||oe<m||se<y)){if(H=$.point){var H,K=c-$.x,re=p-$.y,fe=K*K+re*re;if(fe<T){var ce=Math.sqrt(T=fe);m=c-ce,y=p-ce,x=c+ce,O=p+ce,k=H}}for(var ie=$.nodes,$e=(W+oe)*.5,Ye=(G+se)*.5,ut=c>=$e,Xe=p>=Ye,ct=Xe<<1|ut,wt=ct+4;ct<wt;++ct)if($=ie[ct&3])switch(ct&3){case 0:B($,W,G,$e,Ye);break;case 1:B($,$e,G,oe,Ye);break;case 2:B($,W,Ye,$e,se);break;case 3:B($,$e,Ye,oe,se);break}}}(l,m,y,x,O),k}t.interpolateRgb=Zc;function Zc(l,c){l=t.rgb(l),c=t.rgb(c);var p=l.r,m=l.g,y=l.b,x=c.r-p,O=c.g-m,T=c.b-y;return function(k){return"#"+ko(Math.round(p+x*k))+ko(Math.round(m+O*k))+ko(Math.round(y+T*k))}}t.interpolateObject=Mv;function Mv(l,c){var p={},m={},y;for(y in l)y in c?p[y]=Ii(l[y],c[y]):m[y]=l[y];for(y in c)y in l||(m[y]=c[y]);return function(x){for(y in p)m[y]=p[y](x);return m}}t.interpolateNumber=Zi;function Zi(l,c){return l=+l,c=+c,function(p){return l*(1-p)+c*p}}t.interpolateString=Jc;function Jc(l,c){var p=Ja.lastIndex=ed.lastIndex=0,m,y,x,O=-1,T=[],k=[];for(l=l+"",c=c+"";(m=Ja.exec(l))&&(y=ed.exec(c));)(x=y.index)>p&&(x=c.slice(p,x),T[O]?T[O]+=x:T[++O]=x),(m=m[0])===(y=y[0])?T[O]?T[O]+=y:T[++O]=y:(T[++O]=null,k.push({i:O,x:Zi(m,y)})),p=ed.lastIndex;return p<c.length&&(x=c.slice(p),T[O]?T[O]+=x:T[++O]=x),T.length<2?k[0]?(c=k[0].x,function(B){return c(B)+""}):function(){return c}:(c=k.length,function(B){for(var $=0,W;$<c;++$)T[(W=k[$]).i]=W.x(B);return T.join("")})}var Ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ed=new RegExp(Ja.source,"g");t.interpolate=Ii;function Ii(l,c){for(var p=t.interpolators.length,m;--p>=0&&!(m=t.interpolators[p](l,c)););return m}t.interpolators=[function(l,c){var p=typeof c;return(p==="string"?Mo.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?Zc:Jc:c instanceof ya?Zc:Array.isArray(c)?Bn:p==="object"&&isNaN(c)?Mv:Zi)(l,c)}],t.interpolateArray=Bn;function Bn(l,c){var p=[],m=[],y=l.length,x=c.length,O=Math.min(l.length,c.length),T;for(T=0;T<O;++T)p.push(Ii(l[T],c[T]));for(;T<y;++T)m[T]=l[T];for(;T<x;++T)m[T]=c[T];return function(k){for(T=0;T<O;++T)m[T]=p[T](k);return m}}var eo=function(){return je},Dv=t.map({linear:eo,poly:an,quad:function(){return Lv},cubic:function(){return H1},sin:function(){return Bv},exp:function(){return $v},circle:function(){return to},elastic:zv,back:Uv,bounce:function(){return V1}}),Fv=t.map({in:je,out:td,"in-out":rd,"out-in":function(l){return rd(td(l))}});t.ease=function(l){var c=l.indexOf("-"),p=c>=0?l.slice(0,c):l,m=c>=0?l.slice(c+1):"in";return p=Dv.get(p)||eo,m=Fv.get(m)||je,Nv(m(p.apply(null,r.call(arguments,1))))};function Nv(l){return function(c){return c<=0?0:c>=1?1:l(c)}}function td(l){return function(c){return 1-l(1-c)}}function rd(l){return function(c){return .5*(c<.5?l(2*c):2-l(2-2*c))}}function Lv(l){return l*l}function H1(l){return l*l*l}function zo(l){if(l<=0)return 0;if(l>=1)return 1;var c=l*l,p=c*l;return 4*(l<.5?p:3*(l-c)+p-.75)}function an(l){return function(c){return Math.pow(c,l)}}function Bv(l){return 1-Math.cos(l*Oi)}function $v(l){return Math.pow(2,10*(l-1))}function to(l){return 1-Math.sqrt(1-l*l)}function zv(l,c){var p;return arguments.length<2&&(c=.45),arguments.length?p=c/Po*Math.asin(1/l):(l=1,p=c/4),function(m){return 1+l*Math.pow(2,-10*m)*Math.sin((m-p)*Po/c)}}function Uv(l){return l||(l=1.70158),function(c){return c*c*((l+1)*c-l)}}function V1(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=Y1;function Y1(l,c){l=t.hcl(l),c=t.hcl(c);var p=l.h,m=l.c,y=l.l,x=c.h-p,O=c.c-m,T=c.l-y;return isNaN(O)&&(O=0,m=isNaN(m)?c.c:m),isNaN(x)?(x=0,p=isNaN(p)?c.h:p):x>180?x-=360:x<-180&&(x+=360),function(k){return Zu(p+x*k,m+O*k,y+T*k)+""}}t.interpolateHsl=X1;function X1(l,c){l=t.hsl(l),c=t.hsl(c);var p=l.h,m=l.s,y=l.l,x=c.h-p,O=c.s-m,T=c.l-y;return isNaN(O)&&(O=0,m=isNaN(m)?c.s:m),isNaN(x)?(x=0,p=isNaN(p)?c.h:p):x>180?x-=360:x<-180&&(x+=360),function(k){return Cs(p+x*k,m+O*k,y+T*k)+""}}t.interpolateLab=K1;function K1(l,c){l=t.lab(l),c=t.lab(c);var p=l.l,m=l.a,y=l.b,x=c.l-p,O=c.a-m,T=c.b-y;return function(k){return wv(p+x*k,m+O*k,y+T*k)+""}}t.interpolateRound=zs;function zs(l,c){return c-=l,function(p){return Math.round(l+c*p)}}t.transform=function(l){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(p){if(p!=null){c.setAttribute("transform",p);var m=c.transform.baseVal.consolidate()}return new nd(m?m.matrix:Q1)})(l)};function nd(l){var c=[l.a,l.b],p=[l.c,l.d],m=id(c),y=jv(c,p),x=id(Wv(p,c,-y))||0;c[0]*p[1]<p[0]*c[1]&&(c[0]*=-1,c[1]*=-1,m*=-1,y*=-1),this.rotate=(m?Math.atan2(c[1],c[0]):Math.atan2(-p[0],p[1]))*Yu,this.translate=[l.e,l.f],this.scale=[m,x],this.skew=x?Math.atan2(y,x)*Yu:0}nd.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function jv(l,c){return l[0]*c[0]+l[1]*c[1]}function id(l){var c=Math.sqrt(jv(l,l));return c&&(l[0]/=c,l[1]/=c),c}function Wv(l,c,p){return l[0]+=p*c[0],l[1]+=p*c[1],l}var Q1={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=ad;function Ji(l){return l.length?l.pop()+",":""}function Z1(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push("translate(",null,",",null,")");m.push({i:y-4,x:Zi(l[0],c[0])},{i:y-2,x:Zi(l[1],c[1])})}else(c[0]||c[1])&&p.push("translate("+c+")")}function Sa(l,c,p,m){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),m.push({i:p.push(Ji(p)+"rotate(",null,")")-2,x:Zi(l,c)})):c&&p.push(Ji(p)+"rotate("+c+")")}function Us(l,c,p,m){l!==c?m.push({i:p.push(Ji(p)+"skewX(",null,")")-2,x:Zi(l,c)}):c&&p.push(Ji(p)+"skewX("+c+")")}function Gv(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push(Ji(p)+"scale(",null,",",null,")");m.push({i:y-4,x:Zi(l[0],c[0])},{i:y-2,x:Zi(l[1],c[1])})}else(c[0]!==1||c[1]!==1)&&p.push(Ji(p)+"scale("+c+")")}function ad(l,c){var p=[],m=[];return l=t.transform(l),c=t.transform(c),Z1(l.translate,c.translate,p,m),Sa(l.rotate,c.rotate,p,m),Us(l.skew,c.skew,p,m),Gv(l.scale,c.scale,p,m),l=c=null,function(y){for(var x=-1,O=m.length,T;++x<O;)p[(T=m[x]).i]=T.x(y);return p.join("")}}function qv(l,c){return c=(c-=l=+l)||1/c,function(p){return(p-l)/c}}function Hv(l,c){return c=(c-=l=+l)||1/c,function(p){return Math.max(0,Math.min(1,(p-l)/c))}}t.layout={},t.layout.bundle=function(){return function(l){for(var c=[],p=-1,m=l.length;++p<m;)c.push(Vv(l[p]));return c}};function Vv(l){for(var c=l.source,p=l.target,m=Yv(c,p),y=[c];c!==m;)c=c.parent,y.push(c);for(var x=y.length;p!==m;)y.splice(x,0,p),p=p.parent;return y}function od(l){for(var c=[],p=l.parent;p!=null;)c.push(l),l=p,p=p.parent;return c.push(l),c}function Yv(l,c){if(l===c)return l;for(var p=od(l),m=od(c),y=p.pop(),x=m.pop(),O=null;y===x;)O=y,y=p.pop(),x=m.pop();return O}t.layout.chord=function(){var l={},c,p,m,y,x=0,O,T,k;function B(){var W={},G=[],oe=t.range(y),se=[],H,K,re,fe,ce;for(c=[],p=[],H=0,fe=-1;++fe<y;){for(K=0,ce=-1;++ce<y;)K+=m[fe][ce];G.push(K),se.push(t.range(y)),H+=K}for(O&&oe.sort(function(Yt,Et){return O(G[Yt],G[Et])}),T&&se.forEach(function(Yt,Et){Yt.sort(function(Vt,cr){return T(m[Et][Vt],m[Et][cr])})}),H=(Po-x*y)/H,K=0,fe=-1;++fe<y;){for(re=K,ce=-1;++ce<y;){var ie=oe[fe],$e=se[ie][ce],Ye=m[ie][$e],ut=K,Xe=K+=Ye*H;W[ie+"-"+$e]={index:ie,subindex:$e,startAngle:ut,endAngle:Xe,value:Ye}}p[ie]={index:ie,startAngle:re,endAngle:K,value:G[ie]},K+=x}for(fe=-1;++fe<y;)for(ce=fe-1;++ce<y;){var ct=W[fe+"-"+ce],wt=W[ce+"-"+fe];(ct.value||wt.value)&&c.push(ct.value<wt.value?{source:wt,target:ct}:{source:ct,target:wt})}k&&$()}function $(){c.sort(function(W,G){return k((W.source.value+W.target.value)/2,(G.source.value+G.target.value)/2)})}return l.matrix=function(W){return arguments.length?(y=(m=W)&&m.length,c=p=null,l):m},l.padding=function(W){return arguments.length?(x=W,c=p=null,l):x},l.sortGroups=function(W){return arguments.length?(O=W,c=p=null,l):O},l.sortSubgroups=function(W){return arguments.length?(T=W,c=null,l):T},l.sortChords=function(W){return arguments.length?(k=W,c&&$(),l):k},l.chords=function(){return c||B(),c},l.groups=function(){return p||B(),p},l},t.layout.force=function(){var l={},c=t.dispatch("start","tick","end"),p,m=[1,1],y,x,O=.9,T=ea,k=ud,B=-30,$=Uo,W=.1,G=.64,oe=[],se=[],H,K,re;function fe(ie){return function($e,Ye,ut,Xe){if($e.point!==ie){var ct=$e.cx-ie.x,wt=$e.cy-ie.y,Yt=Xe-Ye,Et=ct*ct+wt*wt;if(Yt*Yt/G<Et){if(Et<$){var Vt=$e.charge/Et;ie.px-=ct*Vt,ie.py-=wt*Vt}return!0}if($e.point&&Et&&Et<$){var Vt=$e.pointCharge/Et;ie.px-=ct*Vt,ie.py-=wt*Vt}}return!$e.charge}}l.tick=function(){if((x*=.99)<.005)return p=null,c.end({type:"end",alpha:x=0}),!0;var ie=oe.length,$e=se.length,Ye,ut,Xe,ct,wt,Yt,Et,Vt,cr;for(ut=0;ut<$e;++ut)Xe=se[ut],ct=Xe.source,wt=Xe.target,Vt=wt.x-ct.x,cr=wt.y-ct.y,(Yt=Vt*Vt+cr*cr)&&(Yt=x*K[ut]*((Yt=Math.sqrt(Yt))-H[ut])/Yt,Vt*=Yt,cr*=Yt,wt.x-=Vt*(Et=ct.weight+wt.weight?ct.weight/(ct.weight+wt.weight):.5),wt.y-=cr*Et,ct.x+=Vt*(Et=1-Et),ct.y+=cr*Et);if((Et=x*W)&&(Vt=m[0]/2,cr=m[1]/2,ut=-1,Et))for(;++ut<ie;)Xe=oe[ut],Xe.x+=(Vt-Xe.x)*Et,Xe.y+=(cr-Xe.y)*Et;if(B)for(Zv(Ye=t.geom.quadtree(oe),x,re),ut=-1;++ut<ie;)(Xe=oe[ut]).fixed||Ye.visit(fe(Xe));for(ut=-1;++ut<ie;)Xe=oe[ut],Xe.fixed?(Xe.x=Xe.px,Xe.y=Xe.py):(Xe.x-=(Xe.px-(Xe.px=Xe.x))*O,Xe.y-=(Xe.py-(Xe.py=Xe.y))*O);c.tick({type:"tick",alpha:x})},l.nodes=function(ie){return arguments.length?(oe=ie,l):oe},l.links=function(ie){return arguments.length?(se=ie,l):se},l.size=function(ie){return arguments.length?(m=ie,l):m},l.linkDistance=function(ie){return arguments.length?(T=typeof ie=="function"?ie:+ie,l):T},l.distance=l.linkDistance,l.linkStrength=function(ie){return arguments.length?(k=typeof ie=="function"?ie:+ie,l):k},l.friction=function(ie){return arguments.length?(O=+ie,l):O},l.charge=function(ie){return arguments.length?(B=typeof ie=="function"?ie:+ie,l):B},l.chargeDistance=function(ie){return arguments.length?($=ie*ie,l):Math.sqrt($)},l.gravity=function(ie){return arguments.length?(W=+ie,l):W},l.theta=function(ie){return arguments.length?(G=ie*ie,l):Math.sqrt(G)},l.alpha=function(ie){return arguments.length?(ie=+ie,x?ie>0?x=ie:(p.c=null,p.t=NaN,p=null,c.end({type:"end",alpha:x=0})):ie>0&&(c.start({type:"start",alpha:x=ie}),p=Do(l.tick)),l):x},l.start=function(){var ie,$e=oe.length,Ye=se.length,ut=m[0],Xe=m[1],ct,wt;for(ie=0;ie<$e;++ie)(wt=oe[ie]).index=ie,wt.weight=0;for(ie=0;ie<Ye;++ie)wt=se[ie],typeof wt.source=="number"&&(wt.source=oe[wt.source]),typeof wt.target=="number"&&(wt.target=oe[wt.target]),++wt.source.weight,++wt.target.weight;for(ie=0;ie<$e;++ie)wt=oe[ie],isNaN(wt.x)&&(wt.x=Yt("x",ut)),isNaN(wt.y)&&(wt.y=Yt("y",Xe)),isNaN(wt.px)&&(wt.px=wt.x),isNaN(wt.py)&&(wt.py=wt.y);if(H=[],typeof T=="function")for(ie=0;ie<Ye;++ie)H[ie]=+T.call(this,se[ie],ie);else for(ie=0;ie<Ye;++ie)H[ie]=T;if(K=[],typeof k=="function")for(ie=0;ie<Ye;++ie)K[ie]=+k.call(this,se[ie],ie);else for(ie=0;ie<Ye;++ie)K[ie]=k;if(re=[],typeof B=="function")for(ie=0;ie<$e;++ie)re[ie]=+B.call(this,oe[ie],ie);else for(ie=0;ie<$e;++ie)re[ie]=B;function Yt(Et,Vt){if(!ct){for(ct=new Array($e),br=0;br<$e;++br)ct[br]=[];for(br=0;br<Ye;++br){var cr=se[br];ct[cr.source.index].push(cr.target),ct[cr.target.index].push(cr.source)}}for(var Lr=ct[ie],br=-1,lt=Lr.length,Xt;++br<lt;)if(!isNaN(Xt=Lr[br][Et]))return Xt;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(y||(y=t.behavior.drag().origin(je).on("dragstart.force",Xv).on("drag.force",ce).on("dragend.force",Kv)),!arguments.length)return y;this.on("mouseover.force",yi).on("mouseout.force",Qv).call(y)};function ce(ie){ie.px=t.event.x,ie.py=t.event.y,l.resume()}return t.rebind(l,c,"on")};function Xv(l){l.fixed|=2}function Kv(l){l.fixed&=-7}function yi(l){l.fixed|=4,l.px=l.x,l.py=l.y}function Qv(l){l.fixed&=-5}function Zv(l,c,p){var m=0,y=0;if(l.charge=0,!l.leaf)for(var x=l.nodes,O=x.length,T=-1,k;++T<O;)k=x[T],k!=null&&(Zv(k,c,p),l.charge+=k.charge,m+=k.charge*k.cx,y+=k.charge*k.cy);if(l.point){l.leaf||(l.point.x+=Math.random()-.5,l.point.y+=Math.random()-.5);var B=c*p[l.point.index];l.charge+=l.pointCharge=B,m+=B*l.point.x,y+=B*l.point.y}l.cx=m/l.charge,l.cy=y/l.charge}var ea=20,ud=1,Uo=1/0;t.layout.hierarchy=function(){var l=J1,c=Jv,p=eg;function m(y){var x=[y],O=[],T;for(y.depth=0;(T=x.pop())!=null;)if(O.push(T),(B=c.call(m,T,T.depth))&&(k=B.length)){for(var k,B,$;--k>=0;)x.push($=B[k]),$.parent=T,$.depth=T.depth+1;p&&(T.value=0),T.children=B}else p&&(T.value=+p.call(m,T,T.depth)||0),delete T.children;return bi(y,function(W){var G,oe;l&&(G=W.children)&&G.sort(l),p&&(oe=W.parent)&&(oe.value+=W.value)}),O}return m.sort=function(y){return arguments.length?(l=y,m):l},m.children=function(y){return arguments.length?(c=y,m):c},m.value=function(y){return arguments.length?(p=y,m):p},m.revalue=function(y){return p&&(Wo(y,function(x){x.children&&(x.value=0)}),bi(y,function(x){var O;x.children||(x.value=+p.call(m,x,x.depth)||0),(O=x.parent)&&(O.value+=x.value)})),y},m};function jo(l,c){return t.rebind(l,c,"sort","children","value"),l.nodes=l,l.links=eb,l}function Wo(l,c){for(var p=[l];(l=p.pop())!=null;)if(c(l),(y=l.children)&&(m=y.length))for(var m,y;--m>=0;)p.push(y[m])}function bi(l,c){for(var p=[l],m=[];(l=p.pop())!=null;)if(m.push(l),(O=l.children)&&(x=O.length))for(var y=-1,x,O;++y<x;)p.push(O[y]);for(;(l=m.pop())!=null;)c(l)}function Jv(l){return l.children}function eg(l){return l.value}function J1(l,c){return c.value-l.value}function eb(l){return t.merge(l.map(function(c){return(c.children||[]).map(function(p){return{source:c,target:p}})}))}t.layout.partition=function(){var l=t.layout.hierarchy(),c=[1,1];function p(x,O,T,k){var B=x.children;if(x.x=O,x.y=x.depth*k,x.dx=T,x.dy=k,B&&(W=B.length)){var $=-1,W,G,oe;for(T=x.value?T/x.value:0;++$<W;)p(G=B[$],O,oe=G.value*T,k),O+=oe}}function m(x){var O=x.children,T=0;if(O&&(B=O.length))for(var k=-1,B;++k<B;)T=Math.max(T,m(O[k]));return 1+T}function y(x,O){var T=l.call(this,x,O);return p(T[0],0,c[0],c[1]/m(T[0])),T}return y.size=function(x){return arguments.length?(c=x,y):c},jo(y,l)},t.layout.pie=function(){var l=Number,c=tg,p=0,m=Po,y=0;function x(O){var T=O.length,k=O.map(function(fe,ce){return+l.call(x,fe,ce)}),B=+(typeof p=="function"?p.apply(this,arguments):p),$=(typeof m=="function"?m.apply(this,arguments):m)-B,W=Math.min(Math.abs($)/T,+(typeof y=="function"?y.apply(this,arguments):y)),G=W*($<0?-1:1),oe=t.sum(k),se=oe?($-T*G)/oe:0,H=t.range(T),K=[],re;return c!=null&&H.sort(c===tg?function(fe,ce){return k[ce]-k[fe]}:function(fe,ce){return c(O[fe],O[ce])}),H.forEach(function(fe){K[fe]={data:O[fe],value:re=k[fe],startAngle:B,endAngle:B+=re*se+G,padAngle:W}}),K}return x.value=function(O){return arguments.length?(l=O,x):l},x.sort=function(O){return arguments.length?(c=O,x):c},x.startAngle=function(O){return arguments.length?(p=O,x):p},x.endAngle=function(O){return arguments.length?(m=O,x):m},x.padAngle=function(O){return arguments.length?(y=O,x):y},x};var tg={};t.layout.stack=function(){var l=je,c=sd,p=fd,m=nb,y=tb,x=rb;function O(T,k){if(!(se=T.length))return T;var B=T.map(function(fe,ce){return l.call(O,fe,ce)}),$=B.map(function(fe){return fe.map(function(ce,ie){return[y.call(O,ce,ie),x.call(O,ce,ie)]})}),W=c.call(O,$,k);B=t.permute(B,W),$=t.permute($,W);var G=p.call(O,$,k),oe=B[0].length,se,H,K,re;for(K=0;K<oe;++K)for(m.call(O,B[0][K],re=G[K],$[0][K][1]),H=1;H<se;++H)m.call(O,B[H][K],re+=$[H-1][K][1],$[H][K][1]);return T}return O.values=function(T){return arguments.length?(l=T,O):l},O.order=function(T){return arguments.length?(c=typeof T=="function"?T:ld.get(T)||sd,O):c},O.offset=function(T){return arguments.length?(p=typeof T=="function"?T:js.get(T)||fd,O):p},O.x=function(T){return arguments.length?(y=T,O):y},O.y=function(T){return arguments.length?(x=T,O):x},O.out=function(T){return arguments.length?(m=T,O):m},O};function tb(l){return l.x}function rb(l){return l.y}function nb(l,c,p){l.y0=c,l.y=p}var ld=t.map({"inside-out":function(l){var c=l.length,p,m,y=l.map(rg),x=l.map(Ws),O=t.range(c).sort(function(W,G){return y[W]-y[G]}),T=0,k=0,B=[],$=[];for(p=0;p<c;++p)m=O[p],T<k?(T+=x[m],B.push(m)):(k+=x[m],$.push(m));return $.reverse().concat(B)},reverse:function(l){return t.range(l.length).reverse()},default:sd}),js=t.map({silhouette:function(l){var c=l.length,p=l[0].length,m=[],y=0,x,O,T,k=[];for(O=0;O<p;++O){for(x=0,T=0;x<c;x++)T+=l[x][O][1];T>y&&(y=T),m.push(T)}for(O=0;O<p;++O)k[O]=(y-m[O])/2;return k},wiggle:function(l){var c=l.length,p=l[0],m=p.length,y,x,O,T,k,B,$,W,G,oe=[];for(oe[0]=W=G=0,x=1;x<m;++x){for(y=0,T=0;y<c;++y)T+=l[y][x][1];for(y=0,k=0,$=p[x][0]-p[x-1][0];y<c;++y){for(O=0,B=(l[y][x][1]-l[y][x-1][1])/(2*$);O<y;++O)B+=(l[O][x][1]-l[O][x-1][1])/$;k+=B*l[y][x][1]}oe[x]=W-=T?k/T*$:0,W<G&&(G=W)}for(x=0;x<m;++x)oe[x]-=G;return oe},expand:function(l){var c=l.length,p=l[0].length,m=1/c,y,x,O,T=[];for(x=0;x<p;++x){for(y=0,O=0;y<c;y++)O+=l[y][x][1];if(O)for(y=0;y<c;y++)l[y][x][1]/=O;else for(y=0;y<c;y++)l[y][x][1]=m}for(x=0;x<p;++x)T[x]=0;return T},zero:fd});function sd(l){return t.range(l.length)}function fd(l){for(var c=-1,p=l[0].length,m=[];++c<p;)m[c]=0;return m}function rg(l){for(var c=1,p=0,m=l[0][1],y,x=l.length;c<x;++c)(y=l[c][1])>m&&(p=c,m=y);return p}function Ws(l){return l.reduce(cd,0)}function cd(l,c){return l+c[1]}t.layout.histogram=function(){var l=!0,c=Number,p=ab,m=ib;function y(x,G){for(var T=[],k=x.map(c,this),B=p.call(this,k,G),$=m.call(this,B,k,G),W,G=-1,oe=k.length,se=$.length-1,H=l?1:1/oe,K;++G<se;)W=T[G]=[],W.dx=$[G+1]-(W.x=$[G]),W.y=0;if(se>0)for(G=-1;++G<oe;)K=k[G],K>=B[0]&&K<=B[1]&&(W=T[t.bisect($,K,1,se)-1],W.y+=H,W.push(x[G]));return T}return y.value=function(x){return arguments.length?(c=x,y):c},y.range=function(x){return arguments.length?(p=Er(x),y):p},y.bins=function(x){return arguments.length?(m=typeof x=="number"?function(O){return dd(O,x)}:Er(x),y):m},y.frequency=function(x){return arguments.length?(l=!!x,y):l},y};function ib(l,c){return dd(l,Math.ceil(Math.log(c.length)/Math.LN2+1))}function dd(l,c){for(var p=-1,m=+l[0],y=(l[1]-m)/c,x=[];++p<=c;)x[p]=y*p+m;return x}function ab(l){return[t.min(l),t.max(l)]}t.layout.pack=function(){var l=t.layout.hierarchy().sort(ob),c=0,p=[1,1],m;function y(x,O){var T=l.call(this,x,O),k=T[0],B=p[0],$=p[1],W=m==null?Math.sqrt:typeof m=="function"?m:function(){return m};if(k.x=k.y=0,bi(k,function(oe){oe.r=+W(oe.value)}),bi(k,hd),c){var G=c*(m?1:Math.max(2*k.r/B,2*k.r/$))/2;bi(k,function(oe){oe.r+=G}),bi(k,hd),bi(k,function(oe){oe.r-=G})}return ag(k,B/2,$/2,m?1:1/Math.max(2*k.r/B,2*k.r/$)),T}return y.size=function(x){return arguments.length?(p=x,y):p},y.radius=function(x){return arguments.length?(m=x==null||typeof x=="function"?x:+x,y):m},y.padding=function(x){return arguments.length?(c=+x,y):c},jo(y,l)};function ob(l,c){return l.value-c.value}function pd(l,c){var p=l._pack_next;l._pack_next=c,c._pack_prev=l,c._pack_next=p,p._pack_prev=c}function ng(l,c){l._pack_next=c,c._pack_prev=l}function ig(l,c){var p=c.x-l.x,m=c.y-l.y,y=l.r+c.r;return .999*y*y>p*p+m*m}function hd(l){if(!(c=l.children)||!(G=c.length))return;var c,p=1/0,m=-1/0,y=1/0,x=-1/0,O,T,k,B,$,W,G;function oe(ie){p=Math.min(ie.x-ie.r,p),m=Math.max(ie.x+ie.r,m),y=Math.min(ie.y-ie.r,y),x=Math.max(ie.y+ie.r,x)}if(c.forEach(ub),O=c[0],O.x=-O.r,O.y=0,oe(O),G>1&&(T=c[1],T.x=T.r,T.y=0,oe(T),G>2))for(k=c[2],og(O,T,k),oe(k),pd(O,k),O._pack_prev=k,pd(k,T),T=O._pack_next,B=3;B<G;B++){og(O,T,k=c[B]);var se=0,H=1,K=1;for($=T._pack_next;$!==T;$=$._pack_next,H++)if(ig($,k)){se=1;break}if(se==1)for(W=O._pack_prev;W!==$._pack_prev&&!ig(W,k);W=W._pack_prev,K++);se?(H<K||H==K&&T.r<O.r?ng(O,T=$):ng(O=W,T),B--):(pd(O,k),T=k,oe(k))}var re=(p+m)/2,fe=(y+x)/2,ce=0;for(B=0;B<G;B++)k=c[B],k.x-=re,k.y-=fe,ce=Math.max(ce,k.r+Math.sqrt(k.x*k.x+k.y*k.y));l.r=ce,c.forEach(lb)}function ub(l){l._pack_next=l._pack_prev=l}function lb(l){delete l._pack_next,delete l._pack_prev}function ag(l,c,p,m){var y=l.children;if(l.x=c+=m*l.x,l.y=p+=m*l.y,l.r*=m,y)for(var x=-1,O=y.length;++x<O;)ag(y[x],c,p,m)}function og(l,c,p){var m=l.r+p.r,y=c.x-l.x,x=c.y-l.y;if(m&&(y||x)){var O=c.r+p.r,T=y*y+x*x;O*=O,m*=m;var k=.5+(m-O)/(2*T),B=Math.sqrt(Math.max(0,2*O*(m+T)-(m-=T)*m-O*O))/(2*T);p.x=l.x+k*y+B*x,p.y=l.y+k*x-B*y}else p.x=l.x+m,p.y=l.y}t.layout.tree=function(){var l=t.layout.hierarchy().sort(null).value(null),c=ug,p=[1,1],m=null;function y($,W){var G=l.call(this,$,W),oe=G[0],se=x(oe);if(bi(se,O),se.parent.m=-se.z,Wo(se,T),m)Wo(oe,B);else{var H=oe,K=oe,re=oe;Wo(oe,function($e){$e.x<H.x&&(H=$e),$e.x>K.x&&(K=$e),$e.depth>re.depth&&(re=$e)});var fe=c(H,K)/2-H.x,ce=p[0]/(K.x+c(K,H)/2+fe),ie=p[1]/(re.depth||1);Wo(oe,function($e){$e.x=($e.x+fe)*ce,$e.y=$e.depth*ie})}return G}function x($){for(var W={A:null,children:[$]},G=[W],oe;(oe=G.pop())!=null;)for(var se=oe.children,H,K=0,re=se.length;K<re;++K)G.push((se[K]=H={_:se[K],parent:oe,children:(H=se[K].children)&&H.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:K}).a=H);return W.children[0]}function O($){var W=$.children,G=$.parent.children,oe=$.i?G[$.i-1]:null;if(W.length){fb($);var se=(W[0].z+W[W.length-1].z)/2;oe?($.z=oe.z+c($._,oe._),$.m=$.z-se):$.z=se}else oe&&($.z=oe.z+c($._,oe._));$.parent.A=k($,oe,$.parent.A||G[0])}function T($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function k($,W,G){if(W){for(var oe=$,se=$,H=W,K=oe.parent.children[0],re=oe.m,fe=se.m,ce=H.m,ie=K.m,$e;H=gd(H),oe=vd(oe),H&&oe;)K=vd(K),se=gd(se),se.a=$,$e=H.z+ce-oe.z-re+c(H._,oe._),$e>0&&(sb(Pi(H,$,G),$,$e),re+=$e,fe+=$e),ce+=H.m,re+=oe.m,ie+=K.m,fe+=se.m;H&&!gd(se)&&(se.t=H,se.m+=ce-fe),oe&&!vd(K)&&(K.t=oe,K.m+=re-ie,G=$)}return G}function B($){$.x*=p[0],$.y=$.depth*p[1]}return y.separation=function($){return arguments.length?(c=$,y):c},y.size=function($){return arguments.length?(m=(p=$)==null?B:null,y):m?null:p},y.nodeSize=function($){return arguments.length?(m=(p=$)==null?null:B,y):m?p:null},jo(y,l)};function ug(l,c){return l.parent==c.parent?1:2}function vd(l){var c=l.children;return c.length?c[0]:l.t}function gd(l){var c=l.children,p;return(p=c.length)?c[p-1]:l.t}function sb(l,c,p){var m=p/(c.i-l.i);c.c-=m,c.s+=p,l.c+=m,c.z+=p,c.m+=p}function fb(l){for(var c=0,p=0,m=l.children,y=m.length,x;--y>=0;)x=m[y],x.z+=c,x.m+=c,c+=x.s+(p+=x.c)}function Pi(l,c,p){return l.a.parent===c.parent?l.a:p}t.layout.cluster=function(){var l=t.layout.hierarchy().sort(null).value(null),c=ug,p=[1,1],m=!1;function y(x,O){var T=l.call(this,x,O),k=T[0],B,$=0;bi(k,function(H){var K=H.children;K&&K.length?(H.x=cb(K),H.y=lg(K)):(H.x=B?$+=c(H,B):0,H.y=0,B=H)});var W=sg(k),G=fg(k),oe=W.x-c(W,G)/2,se=G.x+c(G,W)/2;return bi(k,m?function(H){H.x=(H.x-k.x)*p[0],H.y=(k.y-H.y)*p[1]}:function(H){H.x=(H.x-oe)/(se-oe)*p[0],H.y=(1-(k.y?H.y/k.y:1))*p[1]}),T}return y.separation=function(x){return arguments.length?(c=x,y):c},y.size=function(x){return arguments.length?(m=(p=x)==null,y):m?null:p},y.nodeSize=function(x){return arguments.length?(m=(p=x)!=null,y):m?p:null},jo(y,l)};function lg(l){return 1+t.max(l,function(c){return c.y})}function cb(l){return l.reduce(function(c,p){return c+p.x},0)/l.length}function sg(l){var c=l.children;return c&&c.length?sg(c[0]):l}function fg(l){var c=l.children,p;return c&&(p=c.length)?fg(c[p-1]):l}t.layout.treemap=function(){var l=t.layout.hierarchy(),c=Math.round,p=[1,1],m=null,y=md,x=!1,O,T="squarify",k=.5*(1+Math.sqrt(5));function B(H,K){for(var re=-1,fe=H.length,ce,ie;++re<fe;)ie=(ce=H[re]).value*(K<0?0:K),ce.area=isNaN(ie)||ie<=0?0:ie}function $(H){var K=H.children;if(K&&K.length){var re=y(H),fe=[],ce=K.slice(),ie,$e=1/0,Ye,ut=T==="slice"?re.dx:T==="dice"?re.dy:T==="slice-dice"?H.depth&1?re.dy:re.dx:Math.min(re.dx,re.dy),Xe;for(B(ce,re.dx*re.dy/H.value),fe.area=0;(Xe=ce.length)>0;)fe.push(ie=ce[Xe-1]),fe.area+=ie.area,T!=="squarify"||(Ye=G(fe,ut))<=$e?(ce.pop(),$e=Ye):(fe.area-=fe.pop().area,oe(fe,ut,re,!1),ut=Math.min(re.dx,re.dy),fe.length=fe.area=0,$e=1/0);fe.length&&(oe(fe,ut,re,!0),fe.length=fe.area=0),K.forEach($)}}function W(H){var K=H.children;if(K&&K.length){var re=y(H),fe=K.slice(),ce,ie=[];for(B(fe,re.dx*re.dy/H.value),ie.area=0;ce=fe.pop();)ie.push(ce),ie.area+=ce.area,ce.z!=null&&(oe(ie,ce.z?re.dx:re.dy,re,!fe.length),ie.length=ie.area=0);K.forEach(W)}}function G(H,K){for(var re=H.area,fe,ce=0,ie=1/0,$e=-1,Ye=H.length;++$e<Ye;)!(fe=H[$e].area)||(fe<ie&&(ie=fe),fe>ce&&(ce=fe));return re*=re,K*=K,re?Math.max(K*ce*k/re,re/(K*ie*k)):1/0}function oe(H,K,re,fe){var ce=-1,ie=H.length,$e=re.x,Ye=re.y,ut=K?c(H.area/K):0,Xe;if(K==re.dx){for((fe||ut>re.dy)&&(ut=re.dy);++ce<ie;)Xe=H[ce],Xe.x=$e,Xe.y=Ye,Xe.dy=ut,$e+=Xe.dx=Math.min(re.x+re.dx-$e,ut?c(Xe.area/ut):0);Xe.z=!0,Xe.dx+=re.x+re.dx-$e,re.y+=ut,re.dy-=ut}else{for((fe||ut>re.dx)&&(ut=re.dx);++ce<ie;)Xe=H[ce],Xe.x=$e,Xe.y=Ye,Xe.dx=ut,Ye+=Xe.dy=Math.min(re.y+re.dy-Ye,ut?c(Xe.area/ut):0);Xe.z=!1,Xe.dy+=re.y+re.dy-Ye,re.x+=ut,re.dx-=ut}}function se(H){var K=O||l(H),re=K[0];return re.x=re.y=0,re.value?(re.dx=p[0],re.dy=p[1]):re.dx=re.dy=0,O&&l.revalue(re),B([re],re.dx*re.dy/re.value),(O?W:$)(re),x&&(O=K),K}return se.size=function(H){return arguments.length?(p=H,se):p},se.padding=function(H){if(!arguments.length)return m;function K(ce){var ie=H.call(se,ce,ce.depth);return ie==null?md(ce):cg(ce,typeof ie=="number"?[ie,ie,ie,ie]:ie)}function re(ce){return cg(ce,H)}var fe;return y=(m=H)==null?md:(fe=typeof H)=="function"?K:(fe==="number"&&(H=[H,H,H,H]),re),se},se.round=function(H){return arguments.length?(c=H?Math.round:Number,se):c!=Number},se.sticky=function(H){return arguments.length?(x=H,O=null,se):x},se.ratio=function(H){return arguments.length?(k=H,se):k},se.mode=function(H){return arguments.length?(T=H+"",se):T},jo(se,l)};function md(l){return{x:l.x,y:l.y,dx:l.dx,dy:l.dy}}function cg(l,c){var p=l.x+c[3],m=l.y+c[0],y=l.dx-c[1]-c[3],x=l.dy-c[0]-c[2];return y<0&&(p+=y/2,y=0),x<0&&(m+=x/2,x=0),{x:p,y:m,dx:y,dy:x}}t.random={normal:function(l,c){var p=arguments.length;return p<2&&(c=1),p<1&&(l=0),function(){var m,y,x;do m=Math.random()*2-1,y=Math.random()*2-1,x=m*m+y*y;while(!x||x>1);return l+c*m*Math.sqrt(-2*Math.log(x)/x)}},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,p=0;p<l;p++)c+=Math.random();return c}}},t.scale={};function Gs(l){var c=l[0],p=l[l.length-1];return c<p?[c,p]:[p,c]}function qs(l){return l.rangeExtent?l.rangeExtent():Gs(l.range())}function db(l,c,p,m){var y=p(l[0],l[1]),x=m(c[0],c[1]);return function(O){return x(y(O))}}function Xr(l,c){var p=0,m=l.length-1,y=l[p],x=l[m],O;return x<y&&(O=p,p=m,m=O,O=y,y=x,x=O),l[p]=c.floor(y),l[m]=c.ceil(x),l}function ro(l){return l?{floor:function(c){return Math.floor(c/l)*l},ceil:function(c){return Math.ceil(c/l)*l}}:Go}var Go={floor:je,ceil:je};function pb(l,c,p,m){var y=[],x=[],O=0,T=Math.min(l.length,c.length)-1;for(l[T]<l[0]&&(l=l.slice().reverse(),c=c.slice().reverse());++O<=T;)y.push(p(l[O-1],l[O])),x.push(m(c[O-1],c[O]));return function(k){var B=t.bisect(l,k,1,T)-1;return x[B](y[B](k))}}t.scale.linear=function(){return no([0,1],[0,1],Ii,!1)};function no(l,c,p,m){var y,x;function O(){var k=Math.min(l.length,c.length)>2?pb:db,B=m?Hv:qv;return y=k(l,c,B,p),x=k(c,l,B,Ii),T}function T(k){return y(k)}return T.invert=function(k){return x(k)},T.domain=function(k){return arguments.length?(l=k.map(Number),O()):l},T.range=function(k){return arguments.length?(c=k,O()):c},T.rangeRound=function(k){return T.range(k).interpolate(zs)},T.clamp=function(k){return arguments.length?(m=k,O()):m},T.interpolate=function(k){return arguments.length?(p=k,O()):p},T.ticks=function(k){return sl(l,k)},T.tickFormat=function(k,B){return d3_scale_linearTickFormat(l,k,B)},T.nice=function(k){return io(l,k),O()},T.copy=function(){return no(l,c,p,m)},O()}function yd(l,c){return t.rebind(l,c,"range","rangeRound","interpolate","clamp")}function io(l,c){return Xr(l,ro(ll(l,c)[2])),Xr(l,ro(ll(l,c)[2])),l}function ll(l,c){c==null&&(c=10);var p=Gs(l),m=p[1]-p[0],y=Math.pow(10,Math.floor(Math.log(m/c)/Math.LN10)),x=c/m*y;return x<=.15?y*=10:x<=.35?y*=5:x<=.75&&(y*=2),p[0]=Math.ceil(p[0]/y)*y,p[1]=Math.floor(p[1]/y)*y+y*.5,p[2]=y,p}function sl(l,c){return t.range.apply(t,ll(l,c))}t.scale.log=function(){return Hs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Hs(l,c,p,m){function y(T){return(p?Math.log(T<0?0:T):-Math.log(T>0?0:-T))/Math.log(c)}function x(T){return p?Math.pow(c,T):-Math.pow(c,-T)}function O(T){return l(y(T))}return O.invert=function(T){return x(l.invert(T))},O.domain=function(T){return arguments.length?(p=T[0]>=0,l.domain((m=T.map(Number)).map(y)),O):m},O.base=function(T){return arguments.length?(c=+T,l.domain(m.map(y)),O):c},O.nice=function(){var T=Xr(m.map(y),p?Math:bd);return l.domain(T),m=T.map(x),O},O.ticks=function(){var T=Gs(m),k=[],B=T[0],$=T[1],W=Math.floor(y(B)),G=Math.ceil(y($)),oe=c%1?2:c;if(isFinite(G-W)){if(p){for(;W<G;W++)for(var se=1;se<oe;se++)k.push(x(W)*se);k.push(x(W))}else for(k.push(x(W));W++<G;)for(var se=oe-1;se>0;se--)k.push(x(W)*se);for(W=0;k[W]<B;W++);for(G=k.length;k[G-1]>$;G--);k=k.slice(W,G)}return k},O.copy=function(){return Hs(l.copy(),c,p,m)},yd(O,l)}var bd={floor:function(l){return-Math.ceil(-l)},ceil:function(l){return-Math.floor(-l)}};t.scale.pow=function(){return Vs(t.scale.linear(),1,[0,1])};function Vs(l,c,p){var m=ao(c),y=ao(1/c);function x(O){return l(m(O))}return x.invert=function(O){return y(l.invert(O))},x.domain=function(O){return arguments.length?(l.domain((p=O.map(Number)).map(m)),x):p},x.ticks=function(O){return sl(p,O)},x.tickFormat=function(O,T){return d3_scale_linearTickFormat(p,O,T)},x.nice=function(O){return x.domain(io(p,O))},x.exponent=function(O){return arguments.length?(m=ao(c=O),y=ao(1/c),l.domain(p.map(m)),x):c},x.copy=function(){return Vs(l.copy(),c,p)},yd(x,l)}function ao(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 wd([],{t:"range",a:[[]]})};function wd(l,c){var p,m,y;function x(T){return m[((p.get(T)||(c.t==="range"?p.set(T,l.push(T)):NaN))-1)%m.length]}function O(T,k){return t.range(l.length).map(function(B){return T+k*B})}return x.domain=function(T){if(!arguments.length)return l;l=[],p=new M;for(var k=-1,B=T.length,$;++k<B;)p.has($=T[k])||p.set($,l.push($));return x[c.t].apply(x,c.a)},x.range=function(T){return arguments.length?(m=T,y=0,c={t:"range",a:arguments},x):m},x.rangePoints=function(T,k){arguments.length<2&&(k=0);var B=T[0],$=T[1],W=l.length<2?(B=(B+$)/2,0):($-B)/(l.length-1+k);return m=O(B+W*k/2,W),y=0,c={t:"rangePoints",a:arguments},x},x.rangeRoundPoints=function(T,k){arguments.length<2&&(k=0);var B=T[0],$=T[1],W=l.length<2?(B=$=Math.round((B+$)/2),0):($-B)/(l.length-1+k)|0;return m=O(B+Math.round(W*k/2+($-B-(l.length-1+k)*W)/2),W),y=0,c={t:"rangeRoundPoints",a:arguments},x},x.rangeBands=function(T,k,B){arguments.length<2&&(k=0),arguments.length<3&&(B=k);var $=T[1]<T[0],W=T[$-0],G=T[1-$],oe=(G-W)/(l.length-k+2*B);return m=O(W+oe*B,oe),$&&m.reverse(),y=oe*(1-k),c={t:"rangeBands",a:arguments},x},x.rangeRoundBands=function(T,k,B){arguments.length<2&&(k=0),arguments.length<3&&(B=k);var $=T[1]<T[0],W=T[$-0],G=T[1-$],oe=Math.floor((G-W)/(l.length-k+2*B));return m=O(W+Math.round((G-W-(l.length-k)*oe)/2),oe),$&&m.reverse(),y=Math.round(oe*(1-k)),c={t:"rangeRoundBands",a:arguments},x},x.rangeBand=function(){return y},x.rangeExtent=function(){return Gs(c.a[0])},x.copy=function(){return wd(l,c)},x.domain(l)}t.scale.category10=function(){return t.scale.ordinal().range(dg)},t.scale.category20=function(){return t.scale.ordinal().range(pg)},t.scale.category20b=function(){return t.scale.ordinal().range(hg)},t.scale.category20c=function(){return t.scale.ordinal().range(vg)};var dg=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ts),pg=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ts),hg=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ts),vg=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ts);t.scale.quantile=function(){return Ys([],[])};function Ys(l,c){var p;function m(){var x=0,O=c.length;for(p=[];++x<O;)p[x-1]=t.quantile(l,x/O);return y}function y(x){if(!isNaN(x=+x))return c[t.bisect(p,x)]}return y.domain=function(x){return arguments.length?(l=x.map(g).filter(_).sort(h),m()):l},y.range=function(x){return arguments.length?(c=x,m()):c},y.quantiles=function(){return p},y.invertExtent=function(x){return x=c.indexOf(x),x<0?[NaN,NaN]:[x>0?p[x-1]:l[0],x<p.length?p[x]:l[l.length-1]]},y.copy=function(){return Ys(l,c)},m()}t.scale.quantize=function(){return Xs(0,1,[0,1])};function Xs(l,c,p){var m,y;function x(T){return p[Math.max(0,Math.min(y,Math.floor(m*(T-l))))]}function O(){return m=p.length/(c-l),y=p.length-1,x}return x.domain=function(T){return arguments.length?(l=+T[0],c=+T[T.length-1],O()):[l,c]},x.range=function(T){return arguments.length?(p=T,O()):p},x.invertExtent=function(T){return T=p.indexOf(T),T=T<0?NaN:T/m+l,[T,T+1/m]},x.copy=function(){return Xs(l,c,p)},O()}t.scale.threshold=function(){return xd([.5],[0,1])};function xd(l,c){function p(m){if(m<=m)return c[t.bisect(l,m)]}return p.domain=function(m){return arguments.length?(l=m,p):l},p.range=function(m){return arguments.length?(c=m,p):c},p.invertExtent=function(m){return m=c.indexOf(m),[l[m-1],l[m]]},p.copy=function(){return xd(l,c)},p}t.scale.identity=function(){return _d([0,1])};function _d(l){function c(p){return+p}return c.invert=c,c.domain=c.range=function(p){return arguments.length?(l=p.map(c),c):l},c.ticks=function(p){return sl(l,p)},c.tickFormat=function(p,m){return d3_scale_linearTickFormat(l,p,m)},c.copy=function(){return _d(l)},c}t.svg={};function gg(){return 0}t.svg.arc=function(){var l=Sd,c=mg,p=gg,m=fl,y=Ed,x=Ks,O=Ad;function T(){var B=Math.max(0,+l.apply(this,arguments)),$=Math.max(0,+c.apply(this,arguments)),W=y.apply(this,arguments)-Oi,G=x.apply(this,arguments)-Oi,oe=Math.abs(G-W),se=W>G?0:1;if($<B&&(H=$,$=B,B=H),oe>=hv)return k($,se)+(B?k(B,1-se):"")+"Z";var H,K,re,fe,ce=0,ie=0,$e,Ye,ut,Xe,ct,wt,Yt,Et,Vt=[];if((fe=(+O.apply(this,arguments)||0)/2)&&(re=m===fl?Math.sqrt(B*B+$*$):+m.apply(this,arguments),se||(ie*=-1),$&&(ie=gv(re/$*Math.sin(fe))),B&&(ce=gv(re/B*Math.sin(fe)))),$){$e=$*Math.cos(W+ie),Ye=$*Math.sin(W+ie),ut=$*Math.cos(G-ie),Xe=$*Math.sin(G-ie);var cr=Math.abs(G-W-2*ie)<=Xi?0:1;if(ie&&cl($e,Ye,ut,Xe)===se^cr){var Lr=(W+G)/2;$e=$*Math.cos(Lr),Ye=$*Math.sin(Lr),ut=Xe=null}}else $e=Ye=0;if(B){ct=B*Math.cos(G-ce),wt=B*Math.sin(G-ce),Yt=B*Math.cos(W+ce),Et=B*Math.sin(W+ce);var br=Math.abs(W-G+2*ce)<=Xi?0:1;if(ce&&cl(ct,wt,Yt,Et)===1-se^br){var lt=(W+G)/2;ct=B*Math.cos(lt),wt=B*Math.sin(lt),Yt=Et=null}}else ct=wt=0;if(oe>fr&&(H=Math.min(Math.abs($-B)/2,+p.apply(this,arguments)))>.001){K=B<$^se?0:1;var Xt=H,Jt=H;if(oe<Xi){var dr=Yt==null?[ct,wt]:ut==null?[$e,Ye]:Wc([$e,Ye],[Yt,Et],[ut,Xe],[ct,wt]),kr=$e-dr[0],qr=Ye-dr[1],Zr=ut-dr[0],bn=Xe-dr[1],Rn=1/Math.sin(Math.acos((kr*Zr+qr*bn)/(Math.sqrt(kr*kr+qr*qr)*Math.sqrt(Zr*Zr+bn*bn)))/2),cn=Math.sqrt(dr[0]*dr[0]+dr[1]*dr[1]);Jt=Math.min(H,(B-cn)/(Rn-1)),Xt=Math.min(H,($-cn)/(Rn+1))}if(ut!=null){var $n=qo(Yt==null?[ct,wt]:[Yt,Et],[$e,Ye],$,Xt,se),F=qo([ut,Xe],[ct,wt],$,Xt,se);H===Xt?Vt.push("M",$n[0],"A",Xt,",",Xt," 0 0,",K," ",$n[1],"A",$,",",$," 0 ",1-se^cl($n[1][0],$n[1][1],F[1][0],F[1][1]),",",se," ",F[1],"A",Xt,",",Xt," 0 0,",K," ",F[0]):Vt.push("M",$n[0],"A",Xt,",",Xt," 0 1,",K," ",F[0])}else Vt.push("M",$e,",",Ye);if(Yt!=null){var V=qo([$e,Ye],[Yt,Et],B,-Jt,se),J=qo([ct,wt],ut==null?[$e,Ye]:[ut,Xe],B,-Jt,se);H===Jt?Vt.push("L",J[0],"A",Jt,",",Jt," 0 0,",K," ",J[1],"A",B,",",B," 0 ",se^cl(J[1][0],J[1][1],V[1][0],V[1][1]),",",1-se," ",V[1],"A",Jt,",",Jt," 0 0,",K," ",V[0]):Vt.push("L",J[0],"A",Jt,",",Jt," 0 0,",K," ",V[0])}else Vt.push("L",ct,",",wt)}else Vt.push("M",$e,",",Ye),ut!=null&&Vt.push("A",$,",",$," 0 ",cr,",",se," ",ut,",",Xe),Vt.push("L",ct,",",wt),Yt!=null&&Vt.push("A",B,",",B," 0 ",br,",",1-se," ",Yt,",",Et);return Vt.push("Z"),Vt.join("")}function k(B,$){return"M0,"+B+"A"+B+","+B+" 0 1,"+$+" 0,"+-B+"A"+B+","+B+" 0 1,"+$+" 0,"+B}return T.innerRadius=function(B){return arguments.length?(l=Er(B),T):l},T.outerRadius=function(B){return arguments.length?(c=Er(B),T):c},T.cornerRadius=function(B){return arguments.length?(p=Er(B),T):p},T.padRadius=function(B){return arguments.length?(m=B==fl?fl:Er(B),T):m},T.startAngle=function(B){return arguments.length?(y=Er(B),T):y},T.endAngle=function(B){return arguments.length?(x=Er(B),T):x},T.padAngle=function(B){return arguments.length?(O=Er(B),T):O},T.centroid=function(){var B=(+l.apply(this,arguments)+ +c.apply(this,arguments))/2,$=(+y.apply(this,arguments)+ +x.apply(this,arguments))/2-Oi;return[Math.cos($)*B,Math.sin($)*B]},T};var fl="auto";function Sd(l){return l.innerRadius}function mg(l){return l.outerRadius}function Ed(l){return l.startAngle}function Ks(l){return l.endAngle}function Ad(l){return l&&l.padAngle}function cl(l,c,p,m){return(l-p)*c-(c-m)*l>0?0:1}function qo(l,c,p,m,y){var x=l[0]-c[0],O=l[1]-c[1],T=(y?m:-m)/Math.sqrt(x*x+O*O),k=T*O,B=-T*x,$=l[0]+k,W=l[1]+B,G=c[0]+k,oe=c[1]+B,se=($+G)/2,H=(W+oe)/2,K=G-$,re=oe-W,fe=K*K+re*re,ce=p-m,ie=$*oe-G*W,$e=(re<0?-1:1)*Math.sqrt(Math.max(0,ce*ce*fe-ie*ie)),Ye=(ie*re-K*$e)/fe,ut=(-ie*K-re*$e)/fe,Xe=(ie*re+K*$e)/fe,ct=(-ie*K+re*$e)/fe,wt=Ye-se,Yt=ut-H,Et=Xe-se,Vt=ct-H;return wt*wt+Yt*Yt>Et*Et+Vt*Vt&&(Ye=Xe,ut=ct),[[Ye-k,ut-B],[Ye*p/ce,ut*p/ce]]}function Cd(){return!0}function Td(l){var c=Ki,p=Qi,m=Cd,y=ri,x=y.key,O=.7;function T(k){var B=[],$=[],W=-1,G=k.length,oe,se=Er(c),H=Er(p);function K(){B.push("M",y(l($),O))}for(;++W<G;)m.call(this,oe=k[W],W)?$.push([+se.call(this,oe,W),+H.call(this,oe,W)]):$.length&&(K(),$=[]);return $.length&&K(),B.length?B.join(""):null}return T.x=function(k){return arguments.length?(c=k,T):c},T.y=function(k){return arguments.length?(p=k,T):p},T.defined=function(k){return arguments.length?(m=k,T):m},T.interpolate=function(k){return arguments.length?(typeof k=="function"?x=y=k:x=(y=dl.get(k)||ri).key,T):x},T.tension=function(k){return arguments.length?(O=k,T):O},T}t.svg.line=function(){return Td(je)};var dl=t.map({linear:ri,"linear-closed":Rd,step:Od,"step-before":pl,"step-after":oo,basis:hl,"basis-open":Zs,"basis-closed":Ho,bundle:Vo,cardinal:ta,"cardinal-open":yg,"cardinal-closed":Qs,monotone:hb});dl.forEach(function(l,c){c.key=l,c.closed=/-closed$/.test(l)});function ri(l){return l.length>1?l.join("L"):l+"Z"}function Rd(l){return l.join("L")+"Z"}function Od(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("H",(m[0]+(m=l[c])[0])/2,"V",m[1]);return p>1&&y.push("H",m[0]),y.join("")}function pl(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("V",(m=l[c])[1],"H",m[0]);return y.join("")}function oo(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("H",(m=l[c])[0],"V",m[1]);return y.join("")}function yg(l,c){return l.length<4?ri(l):l[1]+uo(l.slice(1,-1),Ea(l,c))}function Qs(l,c){return l.length<3?Rd(l):l[0]+uo((l.push(l[0]),l),Ea([l[l.length-2]].concat(l,[l[1]]),c))}function ta(l,c){return l.length<3?ri(l):l[0]+uo(l,Ea(l,c))}function uo(l,c){if(c.length<1||l.length!=c.length&&l.length!=c.length+2)return ri(l);var p=l.length!=c.length,m="",y=l[0],x=l[1],O=c[0],T=O,k=1;if(p&&(m+="Q"+(x[0]-O[0]*2/3)+","+(x[1]-O[1]*2/3)+","+x[0]+","+x[1],y=l[1],k=2),c.length>1){T=c[1],x=l[k],k++,m+="C"+(y[0]+O[0])+","+(y[1]+O[1])+","+(x[0]-T[0])+","+(x[1]-T[1])+","+x[0]+","+x[1];for(var B=2;B<c.length;B++,k++)x=l[k],T=c[B],m+="S"+(x[0]-T[0])+","+(x[1]-T[1])+","+x[0]+","+x[1]}if(p){var $=l[k];m+="Q"+(x[0]+T[0]*2/3)+","+(x[1]+T[1]*2/3)+","+$[0]+","+$[1]}return m}function Ea(l,c){for(var p=[],m=(1-c)/2,y,x=l[0],O=l[1],T=1,k=l.length;++T<k;)y=x,x=O,O=l[T],p.push([m*(O[0]-y[0]),m*(O[1]-y[1])]);return p}function hl(l){if(l.length<3)return ri(l);var c=1,p=l.length,m=l[0],y=m[0],x=m[1],O=[y,y,y,(m=l[1])[0]],T=[x,x,x,m[1]],k=[y,",",x,"L",fn(wi,O),",",fn(wi,T)];for(l.push(l[p-1]);++c<=p;)m=l[c],O.shift(),O.push(m[0]),T.shift(),T.push(m[1]),vl(k,O,T);return l.pop(),k.push("L",m),k.join("")}function Zs(l){if(l.length<4)return ri(l);for(var c=[],p=-1,m=l.length,y,x=[0],O=[0];++p<3;)y=l[p],x.push(y[0]),O.push(y[1]);for(c.push(fn(wi,x)+","+fn(wi,O)),--p;++p<m;)y=l[p],x.shift(),x.push(y[0]),O.shift(),O.push(y[1]),vl(c,x,O);return c.join("")}function Ho(l){for(var c,p=-1,m=l.length,y=m+4,x,O=[],T=[];++p<4;)x=l[p%m],O.push(x[0]),T.push(x[1]);for(c=[fn(wi,O),",",fn(wi,T)],--p;++p<y;)x=l[p%m],O.shift(),O.push(x[0]),T.shift(),T.push(x[1]),vl(c,O,T);return c.join("")}function Vo(l,c){var p=l.length-1;if(p)for(var m=l[0][0],y=l[0][1],x=l[p][0]-m,O=l[p][1]-y,T=-1,k,B;++T<=p;)k=l[T],B=T/p,k[0]=c*k[0]+(1-c)*(m+B*x),k[1]=c*k[1]+(1-c)*(y+B*O);return hl(l)}function fn(l,c){return l[0]*c[0]+l[1]*c[1]+l[2]*c[2]+l[3]*c[3]}var Js=[0,2/3,1/3,0],ef=[0,1/3,2/3,0],wi=[0,1/6,2/3,1/6];function vl(l,c,p){l.push("C",fn(Js,c),",",fn(Js,p),",",fn(ef,c),",",fn(ef,p),",",fn(wi,c),",",fn(wi,p))}function gl(l,c){return(c[1]-l[1])/(c[0]-l[0])}function Yo(l){for(var c=0,p=l.length-1,m=[],y=l[0],x=l[1],O=m[0]=gl(y,x);++c<p;)m[c]=(O+(O=gl(y=x,x=l[c+1])))/2;return m[c]=O,m}function Xo(l){for(var c=[],p,m,y,x,O=Yo(l),T=-1,k=l.length-1;++T<k;)p=gl(l[T],l[T+1]),S(p)<fr?O[T]=O[T+1]=0:(m=O[T]/p,y=O[T+1]/p,x=m*m+y*y,x>9&&(x=p*3/Math.sqrt(x),O[T]=x*m,O[T+1]=x*y));for(T=-1;++T<=k;)x=(l[Math.min(k,T+1)][0]-l[Math.max(0,T-1)][0])/(6*(1+O[T]*O[T])),c.push([x||0,O[T]*x||0]);return c}function hb(l){return l.length<3?ri(l):l[0]+uo(l,Xo(l))}t.svg.line.radial=function(){var l=Td(bg);return l.radius=l.x,delete l.x,l.angle=l.y,delete l.y,l};function bg(l){for(var c,p=-1,m=l.length,y,x;++p<m;)c=l[p],y=c[0],x=c[1]-Oi,c[0]=y*Math.cos(x),c[1]=y*Math.sin(x);return l}function Id(l){var c=Ki,p=Ki,m=0,y=Qi,x=Cd,O=ri,T=O.key,k=O,B="L",$=.7;function W(G){var oe=[],se=[],H=[],K=-1,re=G.length,fe,ce=Er(c),ie=Er(m),$e=c===p?function(){return ut}:Er(p),Ye=m===y?function(){return Xe}:Er(y),ut,Xe;function ct(){oe.push("M",O(l(H),$),B,k(l(se.reverse()),$),"Z")}for(;++K<re;)x.call(this,fe=G[K],K)?(se.push([ut=+ce.call(this,fe,K),Xe=+ie.call(this,fe,K)]),H.push([+$e.call(this,fe,K),+Ye.call(this,fe,K)])):se.length&&(ct(),se=[],H=[]);return se.length&&ct(),oe.length?oe.join(""):null}return W.x=function(G){return arguments.length?(c=p=G,W):p},W.x0=function(G){return arguments.length?(c=G,W):c},W.x1=function(G){return arguments.length?(p=G,W):p},W.y=function(G){return arguments.length?(m=y=G,W):y},W.y0=function(G){return arguments.length?(m=G,W):m},W.y1=function(G){return arguments.length?(y=G,W):y},W.defined=function(G){return arguments.length?(x=G,W):x},W.interpolate=function(G){return arguments.length?(typeof G=="function"?T=O=G:T=(O=dl.get(G)||ri).key,k=O.reverse||O,B=O.closed?"M":"L",W):T},W.tension=function(G){return arguments.length?($=G,W):$},W}pl.reverse=oo,oo.reverse=pl,t.svg.area=function(){return Id(je)},t.svg.area.radial=function(){var l=Id(bg);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 Pd(l){return l.source}function kd(l){return l.target}t.svg.chord=function(){var l=Pd,c=kd,p=vb,m=Ed,y=Ks;function x($,W){var G=O(this,l,$,W),oe=O(this,c,$,W);return"M"+G.p0+k(G.r,G.p1,G.a1-G.a0)+(T(G,oe)?B(G.r,G.p1,G.r,G.p0):B(G.r,G.p1,oe.r,oe.p0)+k(oe.r,oe.p1,oe.a1-oe.a0)+B(oe.r,oe.p1,G.r,G.p0))+"Z"}function O($,W,G,oe){var se=W.call($,G,oe),H=p.call($,se,oe),K=m.call($,se,oe)-Oi,re=y.call($,se,oe)-Oi;return{r:H,a0:K,a1:re,p0:[H*Math.cos(K),H*Math.sin(K)],p1:[H*Math.cos(re),H*Math.sin(re)]}}function T($,W){return $.a0==W.a0&&$.a1==W.a1}function k($,W,G){return"A"+$+","+$+" 0 "+ +(G>Xi)+",1 "+W}function B($,W,G,oe){return"Q 0,0 "+oe}return x.radius=function($){return arguments.length?(p=Er($),x):p},x.source=function($){return arguments.length?(l=Er($),x):l},x.target=function($){return arguments.length?(c=Er($),x):c},x.startAngle=function($){return arguments.length?(m=Er($),x):m},x.endAngle=function($){return arguments.length?(y=Er($),x):y},x};function vb(l){return l.radius}t.svg.diagonal=function(){var l=Pd,c=kd,p=lo;function m(y,x){var O=l.call(this,y,x),T=c.call(this,y,x),k=(O.y+T.y)/2,B=[O,{x:O.x,y:k},{x:T.x,y:k},T];return B=B.map(p),"M"+B[0]+"C"+B[1]+" "+B[2]+" "+B[3]}return m.source=function(y){return arguments.length?(l=Er(y),m):l},m.target=function(y){return arguments.length?(c=Er(y),m):c},m.projection=function(y){return arguments.length?(p=y,m):p},m};function lo(l){return[l.x,l.y]}t.svg.diagonal.radial=function(){var l=t.svg.diagonal(),c=lo,p=l.projection;return l.projection=function(m){return arguments.length?p(Md(c=m)):c},l};function Md(l){return function(){var c=l.apply(this,arguments),p=c[0],m=c[1]-Oi;return[p*Math.cos(m),p*Math.sin(m)]}}t.svg.symbol=function(){var l=mb,c=gb;function p(m,y){return(xg.get(l.call(this,m,y))||wg)(c.call(this,m,y))}return p.type=function(m){return arguments.length?(l=Er(m),p):l},p.size=function(m){return arguments.length?(c=Er(m),p):c},p};function gb(){return 64}function mb(){return"circle"}function wg(l){var c=Math.sqrt(l/Xi);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var xg=t.map({circle:wg,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*_g)),p=c*_g;return"M0,"+-c+"L"+p+",0 0,"+c+" "+-p+",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/tf),p=c*tf/2;return"M0,"+p+"L"+c+","+-p+" "+-c+","+-p+"Z"},"triangle-up":function(l){var c=Math.sqrt(l/tf),p=c*tf/2;return"M0,"+-p+"L"+c+","+p+" "+-c+","+p+"Z"}});t.svg.symbolTypes=xg.keys();var tf=Math.sqrt(3),_g=Math.tan(30*vv);_e.transition=function(l){for(var c=ra||++nf,p=yl(l),m=[],y,x,O=Ko||{time:Date.now(),ease:zo,delay:0,duration:250},T=-1,k=this.length;++T<k;){m.push(y=[]);for(var B=this[T],$=-1,W=B.length;++$<W;)(x=B[$])&&Qo(x,$,p,c,O),y.push(x)}return ml(m,p,c)},_e.interrupt=function(l){return this.each(l==null?rf:Sg(yl(l)))};var rf=Sg(yl());function Sg(l){return function(){var c,p,m;(c=this[l])&&(m=c[p=c.active])&&(m.timer.c=null,m.timer.t=NaN,--c.count?delete c[p]:delete this[l],c.active+=.5,m.event&&m.event.interrupt.call(this,this.__data__,m.index))}}function ml(l,c,p){return Rt(l,Gr),l.namespace=c,l.id=p,l}var Gr=[],nf=0,ra,Ko;Gr.call=_e.call,Gr.empty=_e.empty,Gr.node=_e.node,Gr.size=_e.size,t.transition=function(l,c){return l&&l.transition?ra?l.transition(c):l:t.selection().transition(l)},t.transition.prototype=Gr,Gr.select=function(l){var c=this.id,p=this.namespace,m=[],y,x,O;l=j(l);for(var T=-1,k=this.length;++T<k;){m.push(y=[]);for(var B=this[T],$=-1,W=B.length;++$<W;)(O=B[$])&&(x=l.call(O,O.__data__,$,T))?("__data__"in O&&(x.__data__=O.__data__),Qo(x,$,p,c,O[p][c]),y.push(x)):y.push(null)}return ml(m,p,c)},Gr.selectAll=function(l){var c=this.id,p=this.namespace,m=[],y,x,O,T,k;l=te(l);for(var B=-1,$=this.length;++B<$;)for(var W=this[B],G=-1,oe=W.length;++G<oe;)if(O=W[G]){k=O[p][c],x=l.call(O,O.__data__,G,B),m.push(y=[]);for(var se=-1,H=x.length;++se<H;)(T=x[se])&&Qo(T,se,p,c,k),y.push(T)}return ml(m,p,c)},Gr.filter=function(l){var c=[],p,m,y;typeof l!="function"&&(l=ga(l));for(var x=0,O=this.length;x<O;x++){c.push(p=[]);for(var m=this[x],T=0,k=m.length;T<k;T++)(y=m[T])&&l.call(y,y.__data__,T,x)&&p.push(y)}return ml(c,this.namespace,this.id)},Gr.tween=function(l,c){var p=this.id,m=this.namespace;return arguments.length<2?this.node()[m][p].tween.get(l):Tn(this,c==null?function(y){y[m][p].tween.remove(l)}:function(y){y[m][p].tween.set(l,c)})};function af(l,c,p,m){var y=l.id,x=l.namespace;return Tn(l,typeof p=="function"?function(O,T,k){O[x][y].tween.set(c,m(p.call(O,O.__data__,T,k)))}:(p=m(p),function(O){O[x][y].tween.set(c,p)}))}Gr.attr=function(l,c){if(arguments.length<2){for(c in l)this.attr(c,l[c]);return this}var p=l=="transform"?ad:Ii,m=t.ns.qualify(l);function y(){this.removeAttribute(m)}function x(){this.removeAttributeNS(m.space,m.local)}function O(k){return k==null?y:(k+="",function(){var B=this.getAttribute(m),$;return B!==k&&($=p(B,k),function(W){this.setAttribute(m,$(W))})})}function T(k){return k==null?x:(k+="",function(){var B=this.getAttributeNS(m.space,m.local),$;return B!==k&&($=p(B,k),function(W){this.setAttributeNS(m.space,m.local,$(W))})})}return af(this,"attr."+l,c,m.local?T:O)},Gr.attrTween=function(l,c){var p=t.ns.qualify(l);function m(x,O){var T=c.call(this,x,O,this.getAttribute(p));return T&&function(k){this.setAttribute(p,T(k))}}function y(x,O){var T=c.call(this,x,O,this.getAttributeNS(p.space,p.local));return T&&function(k){this.setAttributeNS(p.space,p.local,T(k))}}return this.tween("attr."+l,p.local?y:m)},Gr.style=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(p in l)this.style(p,l[p],c);return this}p=""}function y(){this.style.removeProperty(l)}function x(O){return O==null?y:(O+="",function(){var T=o(this).getComputedStyle(this,null).getPropertyValue(l),k;return T!==O&&(k=Ii(T,O),function(B){this.style.setProperty(l,k(B),p)})})}return af(this,"style."+l,c,x)},Gr.styleTween=function(l,c,p){arguments.length<3&&(p="");function m(y,x){var O=c.call(this,y,x,o(this).getComputedStyle(this,null).getPropertyValue(l));return O&&function(T){this.style.setProperty(l,O(T),p)}}return this.tween("style."+l,m)},Gr.text=function(l){return af(this,"text",l,Dd)};function Dd(l){return l==null&&(l=""),function(){this.textContent=l}}Gr.remove=function(){var l=this.namespace;return this.each("end.transition",function(){var c;this[l].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Gr.ease=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].ease:(typeof l!="function"&&(l=t.ease.apply(t,arguments)),Tn(this,function(m){m[p][c].ease=l}))},Gr.delay=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].delay:Tn(this,typeof l=="function"?function(m,y,x){m[p][c].delay=+l.call(m,m.__data__,y,x)}:(l=+l,function(m){m[p][c].delay=l}))},Gr.duration=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].duration:Tn(this,typeof l=="function"?function(m,y,x){m[p][c].duration=Math.max(1,l.call(m,m.__data__,y,x))}:(l=Math.max(1,l),function(m){m[p][c].duration=l}))},Gr.each=function(l,c){var p=this.id,m=this.namespace;if(arguments.length<2){var y=Ko,x=ra;try{ra=p,Tn(this,function(O,T,k){Ko=O[m][p],l.call(O,O.__data__,T,k)})}finally{Ko=y,ra=x}}else Tn(this,function(O){var T=O[m][p];(T.event||(T.event=t.dispatch("start","end","interrupt"))).on(l,c)});return this},Gr.transition=function(){for(var l=this.id,c=++nf,p=this.namespace,m=[],y,x,O,T,k=0,B=this.length;k<B;k++){m.push(y=[]);for(var x=this[k],$=0,W=x.length;$<W;$++)(O=x[$])&&(T=O[p][l],Qo(O,$,p,c,{time:T.time,ease:T.ease,delay:T.delay+T.duration,duration:T.duration})),y.push(O)}return ml(m,p,c)};function yl(l){return l==null?"__transition__":"__transition_"+l+"__"}function Qo(l,c,p,m,y){var x=l[p]||(l[p]={active:0,count:0}),O=x[m],T,k,B,$,W;function G(H){var K=O.delay;if(k.t=K+T,K<=H)return oe(H-K);k.c=oe}function oe(H){var K=x.active,re=x[K];re&&(re.timer.c=null,re.timer.t=NaN,--x.count,delete x[K],re.event&&re.event.interrupt.call(l,l.__data__,re.index));for(var fe in x)if(+fe<m){var ce=x[fe];ce.timer.c=null,ce.timer.t=NaN,--x.count,delete x[fe]}k.c=se,Do(function(){return k.c&&se(H||1)&&(k.c=null,k.t=NaN),1},0,T),x.active=m,O.event&&O.event.start.call(l,l.__data__,c),W=[],O.tween.forEach(function(ie,$e){($e=$e.call(l,l.__data__,c))&&W.push($e)}),$=O.ease,B=O.duration}function se(H){for(var K=H/B,re=$(K),fe=W.length;fe>0;)W[--fe].call(l,re);if(K>=1)return O.event&&O.event.end.call(l,l.__data__,c),--x.count?delete x[m]:delete l[p],1}O||(T=y.time,k=Do(G,0,T),O=x[m]={tween:new M,time:T,timer:k,delay:y.delay,duration:y.duration,ease:y.ease,index:c},y=null,++x.count)}t.svg.axis=function(){var l=t.scale.linear(),c=Fd,p=6,m=6,y=3,x=[10],O=null,T;function k(B){B.each(function(){var $=t.select(this),W=this.__chart__||l,G=this.__chart__=l.copy(),oe=O==null?G.ticks?G.ticks.apply(G,x):G.domain():O,se=T==null?G.tickFormat?G.tickFormat.apply(G,x):je:T,H=$.selectAll(".tick").data(oe,G),K=H.enter().insert("g",".domain").attr("class","tick").style("opacity",fr),re=t.transition(H.exit()).style("opacity",fr).remove(),fe=t.transition(H.order()).style("opacity",1),ce=Math.max(p,0)+y,ie,$e=qs(G),Ye=$.selectAll(".domain").data([0]),ut=(Ye.enter().append("path").attr("class","domain"),t.transition(Ye));K.append("line"),K.append("text");var Xe=K.select("line"),ct=fe.select("line"),wt=H.select("text").text(se),Yt=K.select("text"),Et=fe.select("text"),Vt=c==="top"||c==="left"?-1:1,cr,Lr,br,lt;if(c==="bottom"||c==="top"?(ie=Ld,cr="x",br="y",Lr="x2",lt="y2",wt.attr("dy",Vt<0?"0em":".71em").style("text-anchor","middle"),ut.attr("d","M"+$e[0]+","+Vt*m+"V0H"+$e[1]+"V"+Vt*m)):(ie=Bd,cr="y",br="x",Lr="y2",lt="x2",wt.attr("dy",".32em").style("text-anchor",Vt<0?"end":"start"),ut.attr("d","M"+Vt*m+","+$e[0]+"H0V"+$e[1]+"H"+Vt*m)),Xe.attr(lt,Vt*p),Yt.attr(br,Vt*ce),ct.attr(Lr,0).attr(lt,Vt*p),Et.attr(cr,0).attr(br,Vt*ce),G.rangeBand){var Xt=G,Jt=Xt.rangeBand()/2;W=G=function(dr){return Xt(dr)+Jt}}else W.rangeBand?W=G:re.call(ie,G,W);K.call(ie,W,G),fe.call(ie,G,G)})}return k.scale=function(B){return arguments.length?(l=B,k):l},k.orient=function(B){return arguments.length?(c=B in Nd?B+"":Fd,k):c},k.ticks=function(){return arguments.length?(x=n(arguments),k):x},k.tickValues=function(B){return arguments.length?(O=B,k):O},k.tickFormat=function(B){return arguments.length?(T=B,k):T},k.tickSize=function(B){var $=arguments.length;return $?(p=+B,m=+arguments[$-1],k):p},k.innerTickSize=function(B){return arguments.length?(p=+B,k):p},k.outerTickSize=function(B){return arguments.length?(m=+B,k):m},k.tickPadding=function(B){return arguments.length?(y=+B,k):y},k.tickSubdivide=function(){return arguments.length&&k},k};var Fd="bottom",Nd={top:1,right:1,bottom:1,left:1};function Ld(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate("+(isFinite(y)?y:p(m))+",0)"})}function Bd(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate(0,"+(isFinite(y)?y:p(m))+")"})}t.svg.brush=function(){var l=Ze($,"brushstart","brush","brushend"),c=null,p=null,m=[0,0],y=[0,0],x,O,T=!0,k=!0,B=bl[0];function $(H){H.each(function(){var K=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",se).on("touchstart.brush",se),re=K.selectAll(".background").data([0]);re.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),K.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var fe=K.selectAll(".resize").data(B,je);fe.exit().remove(),fe.enter().append("g").attr("class",function(Ye){return"resize "+Ye}).style("cursor",function(Ye){return $d[Ye]}).append("rect").attr("x",function(Ye){return/[ew]$/.test(Ye)?-3:null}).attr("y",function(Ye){return/^[ns]/.test(Ye)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),fe.style("display",$.empty()?"none":null);var ce=t.transition(K),ie=t.transition(re),$e;c&&($e=qs(c),ie.attr("x",$e[0]).attr("width",$e[1]-$e[0]),G(ce)),p&&($e=qs(p),ie.attr("y",$e[0]).attr("height",$e[1]-$e[0]),oe(ce)),W(ce)})}$.event=function(H){H.each(function(){var K=l.of(this,arguments),re={x:m,y,i:x,j:O},fe=this.__chart__||re;this.__chart__=re,ra?t.select(this).transition().each("start.brush",function(){x=fe.i,O=fe.j,m=fe.x,y=fe.y,K({type:"brushstart"})}).tween("brush:brush",function(){var ce=Bn(m,re.x),ie=Bn(y,re.y);return x=O=null,function($e){m=re.x=ce($e),y=re.y=ie($e),K({type:"brush",mode:"resize"})}}).each("end.brush",function(){x=re.i,O=re.j,K({type:"brush",mode:"resize"}),K({type:"brushend"})}):(K({type:"brushstart"}),K({type:"brush",mode:"resize"}),K({type:"brushend"}))})};function W(H){H.selectAll(".resize").attr("transform",function(K){return"translate("+m[+/e$/.test(K)]+","+y[+/^s/.test(K)]+")"})}function G(H){H.select(".extent").attr("x",m[0]),H.selectAll(".extent,.n>rect,.s>rect").attr("width",m[1]-m[0])}function oe(H){H.select(".extent").attr("y",y[0]),H.selectAll(".extent,.e>rect,.w>rect").attr("height",y[1]-y[0])}function se(){var H=this,K=t.select(t.event.target),re=l.of(H,arguments),fe=t.select(H),ce=K.datum(),ie=!/^(n|s)$/.test(ce)&&c,$e=!/^(e|w)$/.test(ce)&&p,Ye=K.classed("extent"),ut=Ss(H),Xe,ct=t.mouse(H),wt,Yt=t.select(o(H)).on("keydown.brush",cr).on("keyup.brush",Lr);if(t.event.changedTouches?Yt.on("touchmove.brush",br).on("touchend.brush",Xt):Yt.on("mousemove.brush",br).on("mouseup.brush",Xt),fe.interrupt().selectAll("*").interrupt(),Ye)ct[0]=m[0]-ct[0],ct[1]=y[0]-ct[1];else if(ce){var Et=+/w$/.test(ce),Vt=+/^n/.test(ce);wt=[m[1-Et]-ct[0],y[1-Vt]-ct[1]],ct[0]=m[Et],ct[1]=y[Vt]}else t.event.altKey&&(Xe=ct.slice());fe.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",K.style("cursor")),re({type:"brushstart"}),br();function cr(){t.event.keyCode==32&&(Ye||(Xe=null,ct[0]-=m[1],ct[1]-=y[1],Ye=2),Ke())}function Lr(){t.event.keyCode==32&&Ye==2&&(ct[0]+=m[1],ct[1]+=y[1],Ye=0,Ke())}function br(){var Jt=t.mouse(H),dr=!1;wt&&(Jt[0]+=wt[0],Jt[1]+=wt[1]),Ye||(t.event.altKey?(Xe||(Xe=[(m[0]+m[1])/2,(y[0]+y[1])/2]),ct[0]=m[+(Jt[0]<Xe[0])],ct[1]=y[+(Jt[1]<Xe[1])]):Xe=null),ie&<(Jt,c,0)&&(G(fe),dr=!0),$e&<(Jt,p,1)&&(oe(fe),dr=!0),dr&&(W(fe),re({type:"brush",mode:Ye?"move":"resize"}))}function lt(Jt,dr,kr){var qr=qs(dr),Zr=qr[0],bn=qr[1],Rn=ct[kr],cn=kr?y:m,$n=cn[1]-cn[0],F,V;if(Ye&&(Zr-=Rn,bn-=$n+Rn),F=(kr?k:T)?Math.max(Zr,Math.min(bn,Jt[kr])):Jt[kr],Ye?V=(F+=Rn)+$n:(Xe&&(Rn=Math.max(Zr,Math.min(bn,2*Xe[kr]-F))),Rn<F?(V=F,F=Rn):V=Rn),cn[0]!=F||cn[1]!=V)return kr?O=null:x=null,cn[0]=F,cn[1]=V,!0}function Xt(){br(),fe.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),t.select("body").style("cursor",null),Yt.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(),re({type:"brushend"})}}return $.x=function(H){return arguments.length?(c=H,B=bl[!c<<1|!p],$):c},$.y=function(H){return arguments.length?(p=H,B=bl[!c<<1|!p],$):p},$.clamp=function(H){return arguments.length?(c&&p?(T=!!H[0],k=!!H[1]):c?T=!!H:p&&(k=!!H),$):c&&p?[T,k]:c?T:p?k:null},$.extent=function(H){var K,re,fe,ce,ie;return arguments.length?(c&&(K=H[0],re=H[1],p&&(K=K[0],re=re[0]),x=[K,re],c.invert&&(K=c(K),re=c(re)),re<K&&(ie=K,K=re,re=ie),(K!=m[0]||re!=m[1])&&(m=[K,re])),p&&(fe=H[0],ce=H[1],c&&(fe=fe[1],ce=ce[1]),O=[fe,ce],p.invert&&(fe=p(fe),ce=p(ce)),ce<fe&&(ie=fe,fe=ce,ce=ie),(fe!=y[0]||ce!=y[1])&&(y=[fe,ce])),$):(c&&(x?(K=x[0],re=x[1]):(K=m[0],re=m[1],c.invert&&(K=c.invert(K),re=c.invert(re)),re<K&&(ie=K,K=re,re=ie))),p&&(O?(fe=O[0],ce=O[1]):(fe=y[0],ce=y[1],p.invert&&(fe=p.invert(fe),ce=p.invert(ce)),ce<fe&&(ie=fe,fe=ce,ce=ie))),c&&p?[[K,fe],[re,ce]]:c?[K,re]:p&&[fe,ce])},$.clear=function(){return $.empty()||(m=[0,0],y=[0,0],x=O=null),$},$.empty=function(){return!!c&&m[0]==m[1]||!!p&&y[0]==y[1]},t.rebind($,l,"on")};var $d={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},bl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=jc(function(l){return l.responseText}),t.json=function(l,c){return Os(l,"application/json",zd,c)};function zd(l){return JSON.parse(l.responseText)}t.html=function(l,c){return Os(l,"text/html",Ud,c)};function Ud(l){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(l.responseText)}t.xml=jc(function(l){return l.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(ore);var Ux=new Date,jx=new Date;function yn(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),u=i.ceil(a);return a-o<u-a?o:u},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,u){var s=[],f;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;do s.push(f=new Date(+a)),t(a,u),e(a);while(f<a&&a<o);return s},i.filter=function(a){return yn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,u){if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return Ux.setTime(+a),jx.setTime(+o),e(Ux),e(jx),Math.floor(r(Ux,jx))},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 ty=yn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ty.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ty};const EI=ty;var AI=ty.range,ry=1e3,Jl=6e4,ny=36e5,GL=864e5,qL=6048e5,HL=yn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ry)},function(e,t){return(t-e)/ry},function(e){return e.getUTCSeconds()});const CI=HL;var TI=HL.range,VL=yn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ry)},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getMinutes()});const ure=VL;var lre=VL.range,YL=yn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ry-e.getMinutes()*Jl)},function(e,t){e.setTime(+e+t*ny)},function(e,t){return(t-e)/ny},function(e){return e.getHours()});const sre=YL;var fre=YL.range,XL=yn(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())*Jl)/GL},function(e){return e.getDate()-1});const _C=XL;var cre=XL.range;function ms(e){return yn(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())*Jl)/qL})}var iy=ms(0),Ch=ms(1),KL=ms(2),QL=ms(3),es=ms(4),ZL=ms(5),JL=ms(6),RI=iy.range,dre=Ch.range,pre=KL.range,hre=QL.range,vre=es.range,gre=ZL.range,mre=JL.range,eB=yn(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 yre=eB;var bre=eB.range,SC=yn(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()});SC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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 cc=SC;var wre=SC.range,tB=yn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getUTCMinutes()});const xre=tB;var _re=tB.range,rB=yn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ny)},function(e,t){return(t-e)/ny},function(e){return e.getUTCHours()});const Sre=rB;var Ere=rB.range,nB=yn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/GL},function(e){return e.getUTCDate()-1});const EC=nB;var Are=nB.range;function ys(e){return yn(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)/qL})}var ay=ys(0),Th=ys(1),iB=ys(2),aB=ys(3),ts=ys(4),oB=ys(5),uB=ys(6),OI=ay.range,Cre=Th.range,Tre=iB.range,Rre=aB.range,Ore=ts.range,Ire=oB.range,Pre=uB.range,lB=yn(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 kre=lB;var Mre=lB.range,AC=yn(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()});AC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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 dc=AC;var Dre=AC.range;const Fre=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:yn,timeMillisecond:EI,timeMilliseconds:AI,utcMillisecond:EI,utcMilliseconds:AI,timeSecond:CI,timeSeconds:TI,utcSecond:CI,utcSeconds:TI,timeMinute:ure,timeMinutes:lre,timeHour:sre,timeHours:fre,timeDay:_C,timeDays:cre,timeWeek:iy,timeWeeks:RI,timeSunday:iy,timeSundays:RI,timeMonday:Ch,timeMondays:dre,timeTuesday:KL,timeTuesdays:pre,timeWednesday:QL,timeWednesdays:hre,timeThursday:es,timeThursdays:vre,timeFriday:ZL,timeFridays:gre,timeSaturday:JL,timeSaturdays:mre,timeMonth:yre,timeMonths:bre,timeYear:cc,timeYears:wre,utcMinute:xre,utcMinutes:_re,utcHour:Sre,utcHours:Ere,utcDay:EC,utcDays:Are,utcWeek:ay,utcWeeks:OI,utcSunday:ay,utcSundays:OI,utcMonday:Th,utcMondays:Cre,utcTuesday:iB,utcTuesdays:Tre,utcWednesday:aB,utcWednesdays:Rre,utcThursday:ts,utcThursdays:Ore,utcFriday:oB,utcFridays:Ire,utcSaturday:uB,utcSaturdays:Pre,utcMonth:kre,utcMonths:Mre,utcYear:dc,utcYears:Dre},Symbol.toStringTag,{value:"Module"}));function Wx(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 Gx(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 up(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function sB(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,f=lp(i),d=sp(i),v=lp(a),h=sp(a),g=lp(o),_=sp(o),A=lp(u),b=sp(u),w=lp(s),S=sp(s),E={a:me,A:Fe,b:qe,B:Ue,c:null,d:FI,e:FI,f:ine,g:hne,G:gne,H:tne,I:rne,j:nne,L:fB,m:ane,M:one,p:be,q:ye,Q:BI,s:$I,S:une,u:lne,U:sne,V:fne,w:cne,W:dne,x:null,X:null,y:pne,Y:vne,Z:mne,"%":LI},R={a:Ke,A:We,b:Ze,B:st,c:null,d:NI,e:NI,f:xne,g:Pne,G:Mne,H:yne,I:bne,j:wne,L:dB,m:_ne,M:Sne,p:Rt,q:kt,Q:BI,s:$I,S:Ene,u:Ane,U:Cne,V:Tne,w:Rne,W:One,x:null,X:null,y:Ine,Y:kne,Z:Dne,"%":LI},M={a:ee,A:ue,b:pe,B:we,c:Ee,d:MI,e:MI,f:Qre,g:kI,G:PI,H:DI,I:DI,j:Vre,L:Kre,m:Hre,M:Yre,p:L,q:qre,Q:Jre,s:ene,S:Xre,u:zre,U:Ure,V:jre,w:$re,W:Wre,x:Je,X:je,y:kI,Y:PI,Z:Gre,"%":Zre};E.x=D(r,E),E.X=D(n,E),E.c=D(t,E),R.x=D(r,R),R.X=D(n,R),R.c=D(t,R);function D(Ae,nt){return function(mt){var _e=[],j=-1,te=0,I=Ae.length,C,P,U;for(mt instanceof Date||(mt=new Date(+mt));++j<I;)Ae.charCodeAt(j)===37&&(_e.push(Ae.slice(te,j)),(P=II[C=Ae.charAt(++j)])!=null?C=Ae.charAt(++j):P=C==="e"?" ":"0",(U=nt[C])&&(C=U(mt,P)),_e.push(C),te=j+1);return _e.push(Ae.slice(te,j)),_e.join("")}}function z(Ae,nt){return function(mt){var _e=up(1900,void 0,1),j=N(_e,Ae,mt+="",0),te,I;if(j!=mt.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(nt&&!("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=Gx(up(_e.y,0,1)),I=te.getUTCDay(),te=I>4||I===0?Th.ceil(te):Th(te),te=EC.offset(te,(_e.V-1)*7),_e.y=te.getUTCFullYear(),_e.m=te.getUTCMonth(),_e.d=te.getUTCDate()+(_e.w+6)%7):(te=Wx(up(_e.y,0,1)),I=te.getDay(),te=I>4||I===0?Ch.ceil(te):Ch(te),te=_C.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?Gx(up(_e.y,0,1)).getUTCDay():Wx(up(_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,Gx(_e)):Wx(_e)}}function N(Ae,nt,mt,_e){for(var j=0,te=nt.length,I=mt.length,C,P;j<te;){if(_e>=I)return-1;if(C=nt.charCodeAt(j++),C===37){if(C=nt.charAt(j++),P=M[C in II?nt.charAt(j++):C],!P||(_e=P(Ae,mt,_e))<0)return-1}else if(C!=mt.charCodeAt(_e++))return-1}return _e}function L(Ae,nt,mt){var _e=f.exec(nt.slice(mt));return _e?(Ae.p=d[_e[0].toLowerCase()],mt+_e[0].length):-1}function ee(Ae,nt,mt){var _e=g.exec(nt.slice(mt));return _e?(Ae.w=_[_e[0].toLowerCase()],mt+_e[0].length):-1}function ue(Ae,nt,mt){var _e=v.exec(nt.slice(mt));return _e?(Ae.w=h[_e[0].toLowerCase()],mt+_e[0].length):-1}function pe(Ae,nt,mt){var _e=w.exec(nt.slice(mt));return _e?(Ae.m=S[_e[0].toLowerCase()],mt+_e[0].length):-1}function we(Ae,nt,mt){var _e=A.exec(nt.slice(mt));return _e?(Ae.m=b[_e[0].toLowerCase()],mt+_e[0].length):-1}function Ee(Ae,nt,mt){return N(Ae,t,nt,mt)}function Je(Ae,nt,mt){return N(Ae,r,nt,mt)}function je(Ae,nt,mt){return N(Ae,n,nt,mt)}function me(Ae){return o[Ae.getDay()]}function Fe(Ae){return a[Ae.getDay()]}function qe(Ae){return s[Ae.getMonth()]}function Ue(Ae){return u[Ae.getMonth()]}function be(Ae){return i[+(Ae.getHours()>=12)]}function ye(Ae){return 1+~~(Ae.getMonth()/3)}function Ke(Ae){return o[Ae.getUTCDay()]}function We(Ae){return a[Ae.getUTCDay()]}function Ze(Ae){return s[Ae.getUTCMonth()]}function st(Ae){return u[Ae.getUTCMonth()]}function Rt(Ae){return i[+(Ae.getUTCHours()>=12)]}function kt(Ae){return 1+~~(Ae.getUTCMonth()/3)}return{format:function(Ae){var nt=D(Ae+="",E);return nt.toString=function(){return Ae},nt},parse:function(Ae){var nt=z(Ae+="",!1);return nt.toString=function(){return Ae},nt},utcFormat:function(Ae){var nt=D(Ae+="",R);return nt.toString=function(){return Ae},nt},utcParse:function(Ae){var nt=z(Ae+="",!0);return nt.toString=function(){return Ae},nt}}}var II={"-":"",_:" ",0:"0"},Cn=/^\s*\d+/,Nre=/^%/,Lre=/[\\^$*+?|[\]().{}]/g;function Tr(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 Bre(e){return e.replace(Lre,"\\$&")}function lp(e){return new RegExp("^(?:"+e.map(Bre).join("|")+")","i")}function sp(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function $re(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zre(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Ure(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function jre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Wre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function PI(e,t,r){var n=Cn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Gre(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 qre(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Hre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function MI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vre(e,t,r){var n=Cn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function DI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Yre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Xre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Kre(e,t,r){var n=Cn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Qre(e,t,r){var n=Cn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Zre(e,t,r){var n=Nre.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Jre(e,t,r){var n=Cn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ene(e,t,r){var n=Cn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function FI(e,t){return Tr(e.getDate(),t,2)}function tne(e,t){return Tr(e.getHours(),t,2)}function rne(e,t){return Tr(e.getHours()%12||12,t,2)}function nne(e,t){return Tr(1+_C.count(cc(e),e),t,3)}function fB(e,t){return Tr(e.getMilliseconds(),t,3)}function ine(e,t){return fB(e,t)+"000"}function ane(e,t){return Tr(e.getMonth()+1,t,2)}function one(e,t){return Tr(e.getMinutes(),t,2)}function une(e,t){return Tr(e.getSeconds(),t,2)}function lne(e){var t=e.getDay();return t===0?7:t}function sne(e,t){return Tr(iy.count(cc(e)-1,e),t,2)}function cB(e){var t=e.getDay();return t>=4||t===0?es(e):es.ceil(e)}function fne(e,t){return e=cB(e),Tr(es.count(cc(e),e)+(cc(e).getDay()===4),t,2)}function cne(e){return e.getDay()}function dne(e,t){return Tr(Ch.count(cc(e)-1,e),t,2)}function pne(e,t){return Tr(e.getFullYear()%100,t,2)}function hne(e,t){return e=cB(e),Tr(e.getFullYear()%100,t,2)}function vne(e,t){return Tr(e.getFullYear()%1e4,t,4)}function gne(e,t){var r=e.getDay();return e=r>=4||r===0?es(e):es.ceil(e),Tr(e.getFullYear()%1e4,t,4)}function mne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tr(t/60|0,"0",2)+Tr(t%60,"0",2)}function NI(e,t){return Tr(e.getUTCDate(),t,2)}function yne(e,t){return Tr(e.getUTCHours(),t,2)}function bne(e,t){return Tr(e.getUTCHours()%12||12,t,2)}function wne(e,t){return Tr(1+EC.count(dc(e),e),t,3)}function dB(e,t){return Tr(e.getUTCMilliseconds(),t,3)}function xne(e,t){return dB(e,t)+"000"}function _ne(e,t){return Tr(e.getUTCMonth()+1,t,2)}function Sne(e,t){return Tr(e.getUTCMinutes(),t,2)}function Ene(e,t){return Tr(e.getUTCSeconds(),t,2)}function Ane(e){var t=e.getUTCDay();return t===0?7:t}function Cne(e,t){return Tr(ay.count(dc(e)-1,e),t,2)}function pB(e){var t=e.getUTCDay();return t>=4||t===0?ts(e):ts.ceil(e)}function Tne(e,t){return e=pB(e),Tr(ts.count(dc(e),e)+(dc(e).getUTCDay()===4),t,2)}function Rne(e){return e.getUTCDay()}function One(e,t){return Tr(Th.count(dc(e)-1,e),t,2)}function Ine(e,t){return Tr(e.getUTCFullYear()%100,t,2)}function Pne(e,t){return e=pB(e),Tr(e.getUTCFullYear()%100,t,2)}function kne(e,t){return Tr(e.getUTCFullYear()%1e4,t,4)}function Mne(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ts(e):ts.ceil(e),Tr(e.getUTCFullYear()%1e4,t,4)}function Dne(){return"+0000"}function LI(){return"%"}function BI(e){return+e}function $I(e){return Math.floor(+e/1e3)}var df,hB,vB,CC,TC;gB({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 gB(e){return df=sB(e),hB=df.format,vB=df.parse,CC=df.utcFormat,TC=df.utcParse,df}var mB="%Y-%m-%dT%H:%M:%S.%LZ";function Fne(e){return e.toISOString()}var Nne=Date.prototype.toISOString?Fne:CC(mB);const Lne=Nne;function Bne(e){var t=new Date(e);return isNaN(t)?null:t}var $ne=+new Date("2000-01-01T00:00:00.000Z")?Bne:TC(mB);const zne=$ne,Une=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:gB,get timeFormat(){return hB},get timeParse(){return vB},get utcFormat(){return CC},get utcParse(){return TC},timeFormatLocale:sB,isoFormat:Lne,isoParse:zne},Symbol.toStringTag,{value:"Module"})),Ade=is(Une);function jne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oy(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 pc(e){return e=oy(Math.abs(e)),e?e[1]:NaN}function Wne(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Gne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var qne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uy(e){if(!(t=qne.exec(e)))throw new Error("invalid format: "+e);var t;return new y1({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]})}uy.prototype=y1.prototype;function y1(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+""}y1.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 Hne(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 yB;function Vne(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yB=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")+oy(e,Math.max(0,t+a-1))[0]}function zI(e,t){var r=oy(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 UI={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:jne,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 zI(e*100,t)},r:zI,s:Vne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jI(e){return e}var WI=Array.prototype.map,GI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function bB(e){var t=e.grouping===void 0||e.thousands===void 0?jI:Wne(WI.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?jI:Gne(WI.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(v){v=uy(v);var h=v.fill,g=v.align,_=v.sign,A=v.symbol,b=v.zero,w=v.width,S=v.comma,E=v.precision,R=v.trim,M=v.type;M==="n"?(S=!0,M="g"):UI[M]||(E===void 0&&(E=12),R=!0,M="g"),(b||h==="0"&&g==="=")&&(b=!0,h="0",g="=");var D=A==="$"?r:A==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",z=A==="$"?n:/[%p]/.test(M)?o:"",N=UI[M],L=/[defgprs%]/.test(M);E=E===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function ee(ue){var pe=D,we=z,Ee,Je,je;if(M==="c")we=N(ue)+we,ue="";else{ue=+ue;var me=ue<0||1/ue<0;if(ue=isNaN(ue)?s:N(Math.abs(ue),E),R&&(ue=Hne(ue)),me&&+ue==0&&_!=="+"&&(me=!1),pe=(me?_==="("?_:u:_==="-"||_==="("?"":_)+pe,we=(M==="s"?GI[8+yB/3]:"")+we+(me&&_==="("?")":""),L){for(Ee=-1,Je=ue.length;++Ee<Je;)if(je=ue.charCodeAt(Ee),48>je||je>57){we=(je===46?i+ue.slice(Ee+1):ue.slice(Ee))+we,ue=ue.slice(0,Ee);break}}}S&&!b&&(ue=t(ue,1/0));var Fe=pe.length+ue.length+we.length,qe=Fe<w?new Array(w-Fe+1).join(h):"";switch(S&&b&&(ue=t(qe+ue,qe.length?w-we.length:1/0),qe=""),g){case"<":ue=pe+ue+we+qe;break;case"=":ue=pe+qe+ue+we;break;case"^":ue=qe.slice(0,Fe=qe.length>>1)+pe+ue+we+qe.slice(Fe);break;default:ue=qe+pe+ue+we;break}return a(ue)}return ee.toString=function(){return v+""},ee}function d(v,h){var g=f((v=uy(v),v.type="f",v)),_=Math.max(-8,Math.min(8,Math.floor(pc(h)/3)))*3,A=Math.pow(10,-_),b=GI[8+_/3];return function(w){return g(A*w)+b}}return{format:f,formatPrefix:d}}var am,wB,xB;_B({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _B(e){return am=bB(e),wB=am.format,xB=am.formatPrefix,am}function Yne(e){return Math.max(0,-pc(Math.abs(e)))}function Xne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pc(t)/3)))*3-pc(Math.abs(e)))}function Kne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pc(t)-pc(e))+1}const Qne=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:_B,get format(){return wB},get formatPrefix(){return xB},formatLocale:bB,formatSpecifier:uy,FormatSpecifier:y1,precisionFixed:Yne,precisionPrefix:Xne,precisionRound:Kne},Symbol.toStringTag,{value:"Module"})),Cde=is(Qne);var Zne=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},Jne=Zne,Tde=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Jne(r))return!1}else if(t!=="number")return!1;return e-e<1},eie={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,u=t.max,s=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,C,P,U,le;return te=j.r/255,I=j.g/255,C=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),C<=.03928?le=C/12.92:le=t.pow((C+.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=_(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=_(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),C=a(j.v*100);return this._a==1?"hsv("+te+", "+I+"%, "+C+"%)":"hsva("+te+", "+I+"%, "+C+"%, "+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),C=a(j.l*100);return this._a==1?"hsl("+te+", "+I+"%, "+C+"%)":"hsla("+te+", "+I+"%, "+C+"%, "+this._roundA+")"},toHex:function(j){return b(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return w(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(Ue(this._r,255)*100)+"%",g:a(Ue(this._g,255)*100)+"%",b:a(Ue(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ue(this._r,255)*100)+"%, "+a(Ue(this._g,255)*100)+"%, "+a(Ue(this._b,255)*100)+"%)":"rgba("+a(Ue(this._r,255)*100)+"%, "+a(Ue(this._g,255)*100)+"%, "+a(Ue(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var te="#"+S(this._r,this._g,this._b,this._a),I=te,C=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("+C+"startColorstr="+te+",endColorstr="+I+")"},toString:function(j){var te=!!j;j=j||this._format;var I=!1,C=this._a<1&&this._a>=0,P=!te&&C&&(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(N,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(M,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(Ee,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(Je,arguments)},splitcomplement:function(){return this._applyCombination(we,arguments)},triad:function(){return this._applyCombination(ue,arguments)},tetrad:function(){return this._applyCombination(pe,arguments)}},f.fromRatio=function(j,te){if(typeof j=="object"){var I={};for(var C in j)j.hasOwnProperty(C)&&(C==="a"?I[C]=j[C]:I[C]=st(j[C]));j=I}return f(j,te)};function d(j){var te={r:0,g:0,b:0},I=1,C=null,P=null,U=null,le=!1,Ne=!1;return typeof j=="string"&&(j=mt(j)),typeof j=="object"&&(nt(j.r)&&nt(j.g)&&nt(j.b)?(te=v(j.r,j.g,j.b),le=!0,Ne=String(j.r).substr(-1)==="%"?"prgb":"rgb"):nt(j.h)&&nt(j.s)&&nt(j.v)?(C=st(j.s),P=st(j.v),te=A(j.h,C,P),le=!0,Ne="hsv"):nt(j.h)&&nt(j.s)&&nt(j.l)&&(C=st(j.s),U=st(j.l),te=g(j.h,C,U),le=!0,Ne="hsl"),j.hasOwnProperty("a")&&(I=j.a)),I=qe(I),{ok:le,format:j.format||Ne,r:o(255,u(te.r,0)),g:o(255,u(te.g,0)),b:o(255,u(te.b,0)),a:I}}function v(j,te,I){return{r:Ue(j,255)*255,g:Ue(te,255)*255,b:Ue(I,255)*255}}function h(j,te,I){j=Ue(j,255),te=Ue(te,255),I=Ue(I,255);var C=u(j,te,I),P=o(j,te,I),U,le,Ne=(C+P)/2;if(C==P)U=le=0;else{var ze=C-P;switch(le=Ne>.5?ze/(2-C-P):ze/(C+P),C){case j:U=(te-I)/ze+(te<I?6:0);break;case te:U=(I-j)/ze+2;break;case I:U=(j-te)/ze+4;break}U/=6}return{h:U,s:le,l:Ne}}function g(j,te,I){var C,P,U;j=Ue(j,360),te=Ue(te,100),I=Ue(I,100);function le(qt,Qt,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?qt+(Qt-qt)*6*nr:nr<1/2?Qt:nr<2/3?qt+(Qt-qt)*(2/3-nr)*6:qt}if(te===0)C=P=U=I;else{var Ne=I<.5?I*(1+te):I+te-I*te,ze=2*I-Ne;C=le(ze,Ne,j+1/3),P=le(ze,Ne,j),U=le(ze,Ne,j-1/3)}return{r:C*255,g:P*255,b:U*255}}function _(j,te,I){j=Ue(j,255),te=Ue(te,255),I=Ue(I,255);var C=u(j,te,I),P=o(j,te,I),U,le,Ne=C,ze=C-P;if(le=C===0?0:ze/C,C==P)U=0;else{switch(C){case j:U=(te-I)/ze+(te<I?6:0);break;case te:U=(I-j)/ze+2;break;case I:U=(j-te)/ze+4;break}U/=6}return{h:U,s:le,v:Ne}}function A(j,te,I){j=Ue(j,360)*6,te=Ue(te,100),I=Ue(I,100);var C=t.floor(j),P=j-C,U=I*(1-te),le=I*(1-P*te),Ne=I*(1-(1-P)*te),ze=C%6,qt=[I,le,U,U,Ne,I][ze],Qt=[Ne,I,I,le,U,U][ze],nr=[U,U,Ne,I,I,le][ze];return{r:qt*255,g:Qt*255,b:nr*255}}function b(j,te,I,C){var P=[Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16))];return C&&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 w(j,te,I,C,P){var U=[Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16)),Ze(Rt(C))];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,C){var P=[Ze(Rt(C)),Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(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:s(),g:s(),b:s()})};function E(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s-=te/100,I.s=be(I.s),f(I)}function R(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s+=te/100,I.s=be(I.s),f(I)}function M(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=be(I.l),f(I)}function z(j,te){te=te===0?0:te||10;var I=f(j).toRgb();return I.r=u(0,o(255,I.r-a(255*-(te/100)))),I.g=u(0,o(255,I.g-a(255*-(te/100)))),I.b=u(0,o(255,I.b-a(255*-(te/100)))),f(I)}function N(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l-=te/100,I.l=be(I.l),f(I)}function L(j,te){var I=f(j).toHsl(),C=(I.h+te)%360;return I.h=C<0?360+C:C,f(I)}function ee(j){var te=f(j).toHsl();return te.h=(te.h+180)%360,f(te)}function ue(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 pe(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 we(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 Ee(j,te,I){te=te||6,I=I||30;var C=f(j).toHsl(),P=360/I,U=[f(j)];for(C.h=(C.h-(P*te>>1)+720)%360;--te;)C.h=(C.h+P)%360,U.push(f(C));return U}function Je(j,te){te=te||6;for(var I=f(j).toHsv(),C=I.h,P=I.s,U=I.v,le=[],Ne=1/te;te--;)le.push(f({h:C,s:P,v:U})),U=(U+Ne)%1;return le}f.mix=function(j,te,I){I=I===0?0:I||50;var C=f(j).toRgb(),P=f(te).toRgb(),U=I/100,le={r:(P.r-C.r)*U+C.r,g:(P.g-C.g)*U+C.g,b:(P.b-C.b)*U+C.b,a:(P.a-C.a)*U+C.a};return f(le)},f.readability=function(j,te){var I=f(j),C=f(te);return(t.max(I.getLuminance(),C.getLuminance())+.05)/(t.min(I.getLuminance(),C.getLuminance())+.05)},f.isReadable=function(j,te,I){var C=f.readability(j,te),P,U;switch(U=!1,P=_e(I),P.level+P.size){case"AAsmall":case"AAAlarge":U=C>=4.5;break;case"AAlarge":U=C>=3;break;case"AAAsmall":U=C>=7;break}return U},f.mostReadable=function(j,te,I){var C=null,P=0,U,le,Ne,ze;I=I||{},le=I.includeFallbackColors,Ne=I.level,ze=I.size;for(var qt=0;qt<te.length;qt++)U=f.readability(j,te[qt]),U>P&&(P=U,C=f(te[qt]));return f.isReadable(j,C,{level:Ne,size:ze})||!le?C:(I.includeFallbackColors=!1,f.mostReadable(j,["#fff","#000"],I))};var je=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"},me=f.hexNames=Fe(je);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 Ue(j,te){Ke(j)&&(j="100%");var I=We(j);return j=o(te,u(0,parseFloat(j))),I&&(j=parseInt(j*te,10)/100),t.abs(j-te)<1e-6?1:j%te/parseFloat(te)}function be(j){return o(1,u(0,j))}function ye(j){return parseInt(j,16)}function Ke(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function We(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Ze(j){return j.length==1?"0"+j:""+j}function st(j){return j<=1&&(j=j*100+"%"),j}function Rt(j){return t.round(parseFloat(j)*255).toString(16)}function kt(j){return ye(j)/255}var Ae=function(){var j="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",I="(?:"+te+")|(?:"+j+")",C="[\\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"+C),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+C),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 nt(j){return!!Ae.CSS_UNIT.exec(j)}function mt(j){j=j.replace(r,"").replace(n,"").toLowerCase();var te=!1;if(je[j])j=je[j],te=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Ae.rgb.exec(j))?{r:I[1],g:I[2],b:I[3]}:(I=Ae.rgba.exec(j))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Ae.hsl.exec(j))?{h:I[1],s:I[2],l:I[3]}:(I=Ae.hsla.exec(j))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Ae.hsv.exec(j))?{h:I[1],s:I[2],v:I[3]}:(I=Ae.hsva.exec(j))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Ae.hex8.exec(j))?{r:ye(I[1]),g:ye(I[2]),b:ye(I[3]),a:kt(I[4]),format:te?"name":"hex8"}:(I=Ae.hex6.exec(j))?{r:ye(I[1]),g:ye(I[2]),b:ye(I[3]),format:te?"name":"hex"}:(I=Ae.hex4.exec(j))?{r:ye(I[1]+""+I[1]),g:ye(I[2]+""+I[2]),b:ye(I[3]+""+I[3]),a:kt(I[4]+""+I[4]),format:te?"name":"hex8"}:(I=Ae.hex3.exec(j))?{r:ye(I[1]+""+I[1]),g:ye(I[2]+""+I[2]),b:ye(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)})(eie);var tie=rie;function rie(){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 nie=iie;function iie(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 aie=oie;function oie(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 SB=uie;function uie(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 lie=sie;function sie(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],u=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]=u}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 fie=cie;function cie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],d=t[8],v=t[9],h=t[10],g=t[11],_=t[12],A=t[13],b=t[14],w=t[15],S=r*u-n*o,E=r*s-i*o,R=r*f-a*o,M=n*s-i*u,D=n*f-a*u,z=i*f-a*s,N=d*A-v*_,L=d*b-h*_,ee=d*w-g*_,ue=v*b-h*A,pe=v*w-g*A,we=h*w-g*b,Ee=S*we-E*pe+R*ue+M*ee-D*L+z*N;return Ee?(Ee=1/Ee,e[0]=(u*we-s*pe+f*ue)*Ee,e[1]=(i*pe-n*we-a*ue)*Ee,e[2]=(A*z-b*D+w*M)*Ee,e[3]=(h*D-v*z-g*M)*Ee,e[4]=(s*ee-o*we-f*L)*Ee,e[5]=(r*we-i*ee+a*L)*Ee,e[6]=(b*R-_*z-w*E)*Ee,e[7]=(d*z-h*R+g*E)*Ee,e[8]=(o*pe-u*ee+f*N)*Ee,e[9]=(n*ee-r*pe-a*N)*Ee,e[10]=(_*D-A*R+w*S)*Ee,e[11]=(v*R-d*D-g*S)*Ee,e[12]=(u*L-o*ue-s*N)*Ee,e[13]=(r*ue-n*L+i*N)*Ee,e[14]=(A*E-_*M-b*S)*Ee,e[15]=(d*M-v*E+h*S)*Ee,e):null}var die=pie;function pie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],d=t[8],v=t[9],h=t[10],g=t[11],_=t[12],A=t[13],b=t[14],w=t[15];return e[0]=u*(h*w-g*b)-v*(s*w-f*b)+A*(s*g-f*h),e[1]=-(n*(h*w-g*b)-v*(i*w-a*b)+A*(i*g-a*h)),e[2]=n*(s*w-f*b)-u*(i*w-a*b)+A*(i*f-a*s),e[3]=-(n*(s*g-f*h)-u*(i*g-a*h)+v*(i*f-a*s)),e[4]=-(o*(h*w-g*b)-d*(s*w-f*b)+_*(s*g-f*h)),e[5]=r*(h*w-g*b)-d*(i*w-a*b)+_*(i*g-a*h),e[6]=-(r*(s*w-f*b)-o*(i*w-a*b)+_*(i*f-a*s)),e[7]=r*(s*g-f*h)-o*(i*g-a*h)+d*(i*f-a*s),e[8]=o*(v*w-g*A)-d*(u*w-f*A)+_*(u*g-f*v),e[9]=-(r*(v*w-g*A)-d*(n*w-a*A)+_*(n*g-a*v)),e[10]=r*(u*w-f*A)-o*(n*w-a*A)+_*(n*f-a*u),e[11]=-(r*(u*g-f*v)-o*(n*g-a*v)+d*(n*f-a*u)),e[12]=-(o*(v*b-h*A)-d*(u*b-s*A)+_*(u*h-s*v)),e[13]=r*(v*b-h*A)-d*(n*b-i*A)+_*(n*h-i*v),e[14]=-(r*(u*b-s*A)-o*(n*b-i*A)+_*(n*s-i*u)),e[15]=r*(u*h-s*v)-o*(n*h-i*v)+d*(n*s-i*u),e}var hie=vie;function vie(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],u=e[6],s=e[7],f=e[8],d=e[9],v=e[10],h=e[11],g=e[12],_=e[13],A=e[14],b=e[15],w=t*o-r*a,S=t*u-n*a,E=t*s-i*a,R=r*u-n*o,M=r*s-i*o,D=n*s-i*u,z=f*_-d*g,N=f*A-v*g,L=f*b-h*g,ee=d*A-v*_,ue=d*b-h*_,pe=v*b-h*A;return w*pe-S*ue+E*ee+R*L-M*N+D*z}var gie=mie;function mie(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],u=t[4],s=t[5],f=t[6],d=t[7],v=t[8],h=t[9],g=t[10],_=t[11],A=t[12],b=t[13],w=t[14],S=t[15],E=r[0],R=r[1],M=r[2],D=r[3];return e[0]=E*n+R*u+M*v+D*A,e[1]=E*i+R*s+M*h+D*b,e[2]=E*a+R*f+M*g+D*w,e[3]=E*o+R*d+M*_+D*S,E=r[4],R=r[5],M=r[6],D=r[7],e[4]=E*n+R*u+M*v+D*A,e[5]=E*i+R*s+M*h+D*b,e[6]=E*a+R*f+M*g+D*w,e[7]=E*o+R*d+M*_+D*S,E=r[8],R=r[9],M=r[10],D=r[11],e[8]=E*n+R*u+M*v+D*A,e[9]=E*i+R*s+M*h+D*b,e[10]=E*a+R*f+M*g+D*w,e[11]=E*o+R*d+M*_+D*S,E=r[12],R=r[13],M=r[14],D=r[15],e[12]=E*n+R*u+M*v+D*A,e[13]=E*i+R*s+M*h+D*b,e[14]=E*a+R*f+M*g+D*w,e[15]=E*o+R*d+M*_+D*S,e}var yie=bie;function bie(e,t,r){var n=r[0],i=r[1],a=r[2],o,u,s,f,d,v,h,g,_,A,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],u=t[1],s=t[2],f=t[3],d=t[4],v=t[5],h=t[6],g=t[7],_=t[8],A=t[9],b=t[10],w=t[11],e[0]=o,e[1]=u,e[2]=s,e[3]=f,e[4]=d,e[5]=v,e[6]=h,e[7]=g,e[8]=_,e[9]=A,e[10]=b,e[11]=w,e[12]=o*n+d*i+_*a+t[12],e[13]=u*n+v*i+A*a+t[13],e[14]=s*n+h*i+b*a+t[14],e[15]=f*n+g*i+w*a+t[15]),e}var wie=xie;function xie(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 _ie=Sie;function Sie(e,t,r,n){var i=n[0],a=n[1],o=n[2],u=Math.sqrt(i*i+a*a+o*o),s,f,d,v,h,g,_,A,b,w,S,E,R,M,D,z,N,L,ee,ue,pe,we,Ee,Je;return Math.abs(u)<1e-6?null:(u=1/u,i*=u,a*=u,o*=u,s=Math.sin(r),f=Math.cos(r),d=1-f,v=t[0],h=t[1],g=t[2],_=t[3],A=t[4],b=t[5],w=t[6],S=t[7],E=t[8],R=t[9],M=t[10],D=t[11],z=i*i*d+f,N=a*i*d+o*s,L=o*i*d-a*s,ee=i*a*d-o*s,ue=a*a*d+f,pe=o*a*d+i*s,we=i*o*d+a*s,Ee=a*o*d-i*s,Je=o*o*d+f,e[0]=v*z+A*N+E*L,e[1]=h*z+b*N+R*L,e[2]=g*z+w*N+M*L,e[3]=_*z+S*N+D*L,e[4]=v*ee+A*ue+E*pe,e[5]=h*ee+b*ue+R*pe,e[6]=g*ee+w*ue+M*pe,e[7]=_*ee+S*ue+D*pe,e[8]=v*we+A*Ee+E*Je,e[9]=h*we+b*Ee+R*Je,e[10]=g*we+w*Ee+M*Je,e[11]=_*we+S*Ee+D*Je,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var Eie=Aie;function Aie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],u=t[6],s=t[7],f=t[8],d=t[9],v=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]=u*i+v*n,e[7]=s*i+h*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=v*i-u*n,e[11]=h*i-s*n,e}var Cie=Tie;function Tie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],u=t[2],s=t[3],f=t[8],d=t[9],v=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]=u*i-v*n,e[3]=s*i-h*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=u*n+v*i,e[11]=s*n+h*i,e}var Rie=Oie;function Oie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],u=t[2],s=t[3],f=t[4],d=t[5],v=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]=u*i+v*n,e[3]=s*i+h*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=v*i-u*n,e[7]=h*i-s*n,e}var Iie=Pie;function Pie(e,t,r){var n,i,a,o=r[0],u=r[1],s=r[2],f=Math.sqrt(o*o+u*u+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,u*=f,s*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=u*o*a+s*n,e[2]=s*o*a-u*n,e[3]=0,e[4]=o*u*a-s*n,e[5]=u*u*a+i,e[6]=s*u*a+o*n,e[7]=0,e[8]=o*s*a+u*n,e[9]=u*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var kie=Mie;function Mie(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],u=n+n,s=i+i,f=a+a,d=n*u,v=n*s,h=n*f,g=i*s,_=i*f,A=a*f,b=o*u,w=o*s,S=o*f;return e[0]=1-(g+A),e[1]=v+S,e[2]=h-w,e[3]=0,e[4]=v-S,e[5]=1-(d+A),e[6]=_+b,e[7]=0,e[8]=h+w,e[9]=_-b,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 Die=Fie;function Fie(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 Nie=Lie;function Lie(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 Bie=$ie;function $ie(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 zie=Uie;function Uie(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 jie=Wie;function Wie(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 Gie=qie;function qie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,u=n+n,s=i+i,f=r*o,d=n*o,v=n*u,h=i*o,g=i*u,_=i*s,A=a*o,b=a*u,w=a*s;return e[0]=1-v-_,e[1]=d+w,e[2]=h-b,e[3]=0,e[4]=d-w,e[5]=1-f-_,e[6]=g+A,e[7]=0,e[8]=h+b,e[9]=g-A,e[10]=1-f-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Hie=Vie;function Vie(e,t,r,n,i,a,o){var u=1/(r-t),s=1/(i-n),f=1/(a-o);return e[0]=a*2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*u,e[9]=(i+n)*s,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 Yie=Xie;function Xie(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 Kie=Qie;function Qie(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),u=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+u),f=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-u)*s*.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 Zie=Jie;function Jie(e,t,r,n,i,a,o){var u=1/(t-r),s=1/(n-i),f=1/(a-o);return e[0]=-2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*u,e[13]=(i+n)*s,e[14]=(o+a)*f,e[15]=1,e}var eae=SB,tae=rae;function rae(e,t,r,n){var i,a,o,u,s,f,d,v,h,g,_=t[0],A=t[1],b=t[2],w=n[0],S=n[1],E=n[2],R=r[0],M=r[1],D=r[2];return Math.abs(_-R)<1e-6&&Math.abs(A-M)<1e-6&&Math.abs(b-D)<1e-6?eae(e):(d=_-R,v=A-M,h=b-D,g=1/Math.sqrt(d*d+v*v+h*h),d*=g,v*=g,h*=g,i=S*h-E*v,a=E*d-w*h,o=w*v-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),u=v*o-h*a,s=h*i-d*o,f=d*a-v*i,g=Math.sqrt(u*u+s*s+f*f),g?(g=1/g,u*=g,s*=g,f*=g):(u=0,s=0,f=0),e[0]=i,e[1]=u,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=f,e[10]=h,e[11]=0,e[12]=-(i*_+a*A+o*b),e[13]=-(u*_+s*A+f*b),e[14]=-(d*_+v*A+h*b),e[15]=1,e)}var nae=iae;function iae(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 Rde={create:tie,clone:nie,copy:aie,identity:SB,transpose:lie,invert:fie,adjoint:die,determinant:hie,multiply:gie,translate:yie,scale:wie,rotate:_ie,rotateX:Eie,rotateY:Cie,rotateZ:Rie,fromRotation:Iie,fromRotationTranslation:kie,fromScaling:Die,fromTranslation:Nie,fromXRotation:Bie,fromYRotation:zie,fromZRotation:jie,fromQuat:Gie,frustum:Hie,perspective:Yie,perspectiveFromFieldOfView:Kie,ortho:Zie,lookAt:tae,str:nae},RC={exports:{}};RC.exports=OC;RC.exports.isMobile=OC;RC.exports.default=OC;var aae=/(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,oae=/(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 OC(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?oae.test(t):aae.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var uae=!0,lae=uae,SS;typeof _r.matchMedia=="function"?SS=!_r.matchMedia("(hover: none)").matches:SS=lae;var Ode=SS,EB={exports:{}},Yf=typeof Reflect=="object"?Reflect:null,qI=Yf&&typeof Yf.apply=="function"?Yf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Wm;Yf&&typeof Yf.ownKeys=="function"?Wm=Yf.ownKeys:Object.getOwnPropertySymbols?Wm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Wm=function(t){return Object.getOwnPropertyNames(t)};function sae(e){console&&console.warn&&console.warn(e)}var AB=Number.isNaN||function(t){return t!==t};function Dr(){Dr.init.call(this)}EB.exports=Dr;EB.exports.once=pae;Dr.EventEmitter=Dr;Dr.prototype._events=void 0;Dr.prototype._eventsCount=0;Dr.prototype._maxListeners=void 0;var HI=10;function b1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Dr,"defaultMaxListeners",{enumerable:!0,get:function(){return HI},set:function(e){if(typeof e!="number"||e<0||AB(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");HI=e}});Dr.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};Dr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||AB(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 CB(e){return e._maxListeners===void 0?Dr.defaultMaxListeners:e._maxListeners}Dr.prototype.getMaxListeners=function(){return CB(this)};Dr.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 u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")qI(s,this,r);else for(var f=s.length,d=PB(s,f),n=0;n<f;++n)qI(d[n],this,r);return!0};function TB(e,t,r,n){var i,a,o;if(b1(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=CB(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,sae(u)}return e}Dr.prototype.addListener=function(t,r){return TB(this,t,r,!1)};Dr.prototype.on=Dr.prototype.addListener;Dr.prototype.prependListener=function(t,r){return TB(this,t,r,!0)};function fae(){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 RB(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=fae.bind(n);return i.listener=r,n.wrapFn=i,i}Dr.prototype.once=function(t,r){return b1(r),this.on(t,RB(this,t,r)),this};Dr.prototype.prependOnceListener=function(t,r){return b1(r),this.prependListener(t,RB(this,t,r)),this};Dr.prototype.removeListener=function(t,r){var n,i,a,o,u;if(b1(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){u=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():cae(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,u||r)}return this};Dr.prototype.off=Dr.prototype.removeListener;Dr.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 OB(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?dae(i):PB(i,i.length)}Dr.prototype.listeners=function(t){return OB(this,t,!0)};Dr.prototype.rawListeners=function(t){return OB(this,t,!1)};Dr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):IB.call(e,t)};Dr.prototype.listenerCount=IB;function IB(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}Dr.prototype.eventNames=function(){return this._eventsCount>0?Wm(this._events):[]};function PB(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function cae(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function dae(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function pae(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))}kB(e,t,a,{once:!0}),t!=="error"&&hae(e,i,{once:!0})})}function hae(e,t,r){typeof e.on=="function"&&kB(e,"error",t,r)}function kB(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 vae={left:0,top:0},Ide=gae;function gae(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=mae(t);return r[0]=n-a.left,r[1]=i-a.top,r}function mae(e){return e===window||e===document||e===document.body?vae:e.getBoundingClientRect()}function yae(){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 Pde=yae(),MB=wae,qx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},bae=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function wae(e){var t=[];return e.replace(bae,function(r,n,i){var a=n.toLowerCase();for(i=_ae(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==qx[a])return i.unshift(n),t.push(i);if(i.length<qx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,qx[a])))}}),t}var xae=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function _ae(e){var t=e.match(xae);return t?t.map(Number):[]}function Sae(){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 Eae=Sae;function Aae(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],u=i[0],s=i[1],f=r[0],d=r[1];return(u-a)*(d-o)-(s-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],u=r[0]-n[0],s=i[1]-n[1],f=u*o+a*s;if(f<e)return!1;var d=o*o+s*s;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],u=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-u*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],u=n[1]-r[1],s=a[0]-i[0],f=a[1]-i[1],d=o*f-u*s;if(Math.abs(d)<e)return!1;var v=r[0]-i[0],h=r[1]-i[1],g=(s*h-f*v)/d,_=(o*h-u*v)/d,A={alongA:0,alongB:0,pt:[r[0]+g*o,r[1]+g*u]};return g<=-e?A.alongA=-2:g<e?A.alongA=-1:g-1<=-e?A.alongA=0:g-1<e?A.alongA=1:A.alongA=2,_<=-e?A.alongB=-2:_<e?A.alongB=-1:_-1<=-e?A.alongB=0:_-1<e?A.alongB=1:A.alongB=2,A},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],u=n[n.length-1][1],s=!1,f=0;f<n.length;f++){var d=n[f][0],v=n[f][1];v-a>e!=u-a>e&&(o-d)*(a-v)/(u-v)+d-i>e&&(s=!s),o=d,u=v}return s}};return t}var Cae=Aae,Tae={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}},Rae=Tae,fp=Rae;function Oae(e,t,r){function n(_,A){return{id:r?r.segmentId():-1,start:_,end:A,myFill:{above:null,below:null},otherFill:null}}function i(_,A,b){return{id:r?r.segmentId():-1,start:_,end:A,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=fp.create();function o(_,A,b,w,S,E){var R=t.pointsCompare(A,S);return R!==0?R:t.pointsSame(b,E)?0:_!==w?_?1:-1:t.pointAboveOrOnLine(b,w?S:E,w?E:S)?1:-1}function u(_,A){a.insertBefore(_,function(b){var w=o(_.isStart,_.pt,A,b.isStart,b.pt,b.other.pt);return w<0})}function s(_,A){var b=fp.node({isStart:!0,pt:_.start,seg:_,primary:A,other:null,status:null});return u(b,_.end),b}function f(_,A,b){var w=fp.node({isStart:!1,pt:A.end,seg:A,primary:b,other:_,status:null});_.other=w,u(w,_.pt)}function d(_,A){var b=s(_,A);return f(b,_,A),b}function v(_,A){r&&r.segmentChop(_.seg,A),_.other.remove(),_.seg.end=A,_.other.pt=A,u(_.other,_.pt)}function h(_,A){var b=i(A,_.seg.end,_.seg);return v(_,A),d(b,_.primary)}function g(_,A){var b=fp.create();function w(Ee,Je){var je=Ee.seg.start,me=Ee.seg.end,Fe=Je.seg.start,qe=Je.seg.end;return t.pointsCollinear(je,Fe,qe)?t.pointsCollinear(me,Fe,qe)||t.pointAboveOrOnLine(me,Fe,qe)?1:-1:t.pointAboveOrOnLine(je,Fe,qe)?1:-1}function S(Ee){return b.findTransition(function(Je){var je=w(Ee,Je.ev);return je>0})}function E(Ee,Je){var je=Ee.seg,me=Je.seg,Fe=je.start,qe=je.end,Ue=me.start,be=me.end;r&&r.checkIntersection(je,me);var ye=t.linesIntersect(Fe,qe,Ue,be);if(ye===!1){if(!t.pointsCollinear(Fe,qe,Ue)||t.pointsSame(Fe,be)||t.pointsSame(qe,Ue))return!1;var Ke=t.pointsSame(Fe,Ue),We=t.pointsSame(qe,be);if(Ke&&We)return Je;var Ze=!Ke&&t.pointBetween(Fe,Ue,be),st=!We&&t.pointBetween(qe,Ue,be);if(Ke)return st?h(Je,qe):h(Ee,be),Je;Ze&&(We||(st?h(Je,qe):h(Ee,be)),h(Je,Fe))}else ye.alongA===0&&(ye.alongB===-1?h(Ee,Ue):ye.alongB===0?h(Ee,ye.pt):ye.alongB===1&&h(Ee,be)),ye.alongB===0&&(ye.alongA===-1?h(Je,Fe):ye.alongA===0?h(Je,ye.pt):ye.alongA===1&&h(Je,qe));return!1}for(var R=[];!a.isEmpty();){var M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let Ee=function(){if(z){var Je=E(M,z);if(Je)return Je}return N?E(M,N):!1};r&&r.segmentNew(M.seg,M.primary);var D=S(M),z=D.before?D.before.ev:null,N=D.after?D.after.ev:null;r&&r.tempStatus(M.seg,z?z.seg:!1,N?N.seg:!1);var L=Ee();if(L){if(e){var ee;M.seg.myFill.below===null?ee=!0:ee=M.seg.myFill.above!==M.seg.myFill.below,ee&&(L.seg.myFill.above=!L.seg.myFill.above)}else L.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(L.seg),M.other.remove(),M.remove()}if(a.getHead()!==M){r&&r.rewind(M.seg);continue}if(e){var ee;M.seg.myFill.below===null?ee=!0:ee=M.seg.myFill.above!==M.seg.myFill.below,N?M.seg.myFill.below=N.seg.myFill.above:M.seg.myFill.below=_,ee?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var ue;N?M.primary===N.primary?ue=N.seg.otherFill.above:ue=N.seg.myFill.above:ue=M.primary?A:_,M.seg.otherFill={above:ue,below:ue}}r&&r.status(M.seg,z?z.seg:!1,N?N.seg:!1),M.other.status=D.insert(fp.node({ev:M}))}else{var pe=M.status;if(pe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(pe.prev)&&b.exists(pe.next)&&E(pe.prev.ev,pe.next.ev),r&&r.statusRemove(pe.ev.seg),pe.remove(),!M.primary){var we=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=we}R.push(M.seg)}a.getHead().remove()}return r&&r.done(),R}return e?{addRegion:function(_){for(var A,b=_[_.length-1],w=0;w<_.length;w++){A=b,b=_[w];var S=t.pointsCompare(A,b);S!==0&&d(n(S<0?A:b,S<0?b:A),!0)}},calculate:function(_){return g(_,!1)}}:{calculate:function(_,A,b,w){return _.forEach(function(S){d(i(S.start,S.end,S),!0)}),b.forEach(function(S){d(i(S.start,S.end,S),!1)}),g(A,w)}}}var Iae=Oae;function Pae(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,u=a.end;if(t.pointsSame(o,u)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=s;function v(pe,we,Ee){return d.index=pe,d.matches_head=we,d.matches_pt1=Ee,d===s?(d=f,!1):(d=null,!0)}for(var h=0;h<n.length;h++){var g=n[h],_=g[0];g[1];var A=g[g.length-1];if(g[g.length-2],t.pointsSame(_,o)){if(v(h,!0,!0))break}else if(t.pointsSame(_,u)){if(v(h,!0,!1))break}else if(t.pointsSame(A,o)){if(v(h,!1,!0))break}else if(t.pointsSame(A,u)&&v(h,!1,!1))break}if(d===s){n.push([o,u]),r&&r.chainNew(o,u);return}if(d===f){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?u:o,S=s.matches_head,g=n[b],E=S?g[0]:g[g.length-1],R=S?g[1]:g[g.length-2],M=S?g[g.length-1]:g[0],D=S?g[g.length-2]:g[1];if(t.pointsCollinear(R,E,w)&&(S?(r&&r.chainRemoveHead(s.index,w),g.shift()):(r&&r.chainRemoveTail(s.index,w),g.pop()),E=R),t.pointsSame(M,w)){n.splice(b,1),t.pointsCollinear(D,M,E)&&(S?(r&&r.chainRemoveTail(s.index,E),g.pop()):(r&&r.chainRemoveHead(s.index,E),g.shift())),r&&r.chainClose(s.index),i.push(g);return}S?(r&&r.chainAddHead(s.index,w),g.unshift(w)):(r&&r.chainAddTail(s.index,w),g.push(w));return}function z(pe){r&&r.chainReverse(pe),n[pe].reverse()}function N(pe,we){var Ee=n[pe],Je=n[we],je=Ee[Ee.length-1],me=Ee[Ee.length-2],Fe=Je[0],qe=Je[1];t.pointsCollinear(me,je,Fe)&&(r&&r.chainRemoveTail(pe,je),Ee.pop(),je=me),t.pointsCollinear(je,Fe,qe)&&(r&&r.chainRemoveHead(we,Fe),Je.shift()),r&&r.chainJoin(pe,we),n[pe]=Ee.concat(Je),n.splice(we,1)}var L=s.index,ee=f.index;r&&r.chainConnect(L,ee);var ue=n[L].length<n[ee].length;s.matches_head?f.matches_head?ue?(z(L),N(L,ee)):(z(ee),N(ee,L)):N(ee,L):f.matches_head?N(L,ee):ue?(z(L),N(ee,L)):(z(ee),N(L,ee))}),i}var kae=Pae;function cp(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 Mae={union:function(e,t){return cp(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return cp(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return cp(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return cp(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return cp(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},Dae=Mae,Fae={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 u=o(a[0]),s=1;s<a.length;s++)u=e.selectDifference(e.combine(u,o(a[s])));return u}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,_){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],_)}function i(g){return{region:g,children:[]}}var a=i(null);function o(g,_){for(var A=0;A<g.children.length;A++){var b=g.children[A];if(n(_,b.region)){o(b,_);return}}for(var w=i(_),A=0;A<g.children.length;A++){var b=g.children[A];n(b.region,_)&&(w.children.push(b),g.children.splice(A,1),A--)}g.children.push(w)}for(var u=0;u<r.regions.length;u++){var s=r.regions[u];s.length<3||o(a,s)}function f(g,_){for(var A=0,b=g[g.length-1][0],w=g[g.length-1][1],S=[],E=0;E<g.length;E++){var R=g[E][0],M=g[E][1];S.push([R,M]),A+=M*b-R*w,b=R,w=M}var D=A<0;return D!==_&&S.reverse(),S.push([S[0][0],S[0][1]]),S}var d=[];function v(g){var _=[f(g.region,!1)];d.push(_);for(var A=0;A<g.children.length;A++)_.push(h(g.children[A]))}function h(g){for(var _=0;_<g.children.length;_++)v(g.children[_]);return f(g.region,!0)}for(var u=0;u<a.children.length;u++)v(a.children[u]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},Nae=Fae;/*
|
|
921
|
+
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
|
|
922
|
+
* @license MIT
|
|
923
|
+
* @preserve Project Home: https://github.com/voidqk/polybooljs
|
|
924
|
+
*/var Lae=Eae,Bae=Cae,VI=Iae,$ae=kae,dp=Dae,YI=Nae,Di=!1,pp=Bae(),si;si={buildLog:function(e){return e===!0?Di=Lae():e===!1&&(Di=!1),Di===!1?!1:Di.list},epsilon:function(e){return pp.epsilon(e)},segments:function(e){var t=VI(!0,pp,Di);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=VI(!1,pp,Di);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:dp.union(e.combined,Di),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:dp.intersect(e.combined,Di),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:dp.difference(e.combined,Di),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:dp.differenceRev(e.combined,Di),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:dp.xor(e.combined,Di),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$ae(e.segments,pp,Di),inverted:e.inverted}},polygonFromGeoJSON:function(e){return YI.toPolygon(si,e)},polygonToGeoJSON:function(e){return YI.fromPolygon(si,pp,e)},union:function(e,t){return hp(e,t,si.selectUnion)},intersect:function(e,t){return hp(e,t,si.selectIntersect)},difference:function(e,t){return hp(e,t,si.selectDifference)},differenceRev:function(e,t){return hp(e,t,si.selectDifferenceRev)},xor:function(e,t){return hp(e,t,si.selectXor)}};function hp(e,t,r){var n=si.segments(e),i=si.segments(t),a=si.combine(n,i),o=r(a);return si.polygon(o)}typeof window=="object"&&(window.PolyBool=si);var kde=si;const Mde=is(Fre);var DB={exports:{}};function zae(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s>=0?(a=o,i=o-1):n=o+1}return a}function Uae(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s>0?(a=o,i=o-1):n=o+1}return a}function jae(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s<0?(a=o,n=o+1):i=o-1}return a}function Wae(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s<=0?(a=o,n=o+1):i=o-1}return a}function Gae(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],u=r!==void 0?r(o,t):o-t;if(u===0)return a;u<=0?n=a+1:i=a-1}return-1}function vp(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 qae={ge:function(e,t,r,n,i){return vp(e,t,r,n,i,zae)},gt:function(e,t,r,n,i){return vp(e,t,r,n,i,Uae)},lt:function(e,t,r,n,i){return vp(e,t,r,n,i,jae)},le:function(e,t,r,n,i){return vp(e,t,r,n,i,Wae)},eq:function(e,t,r,n,i){return vp(e,t,r,n,i,Gae)}},uv=Hae;function Hae(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var qu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=XI(r)),Array.isArray(r)){var u={};for(o=0;o<r.length;o++)u[r[o]]=!0;r=u}for(a in r)r[a]=XI(r[a]);var s={};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&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var v=o;v<f.length;v++)s[f[v]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},Hx={};function XI(e){return Hx[e]?Hx[e]:(typeof e=="string"&&(e=Hx[e]=e.split(/\s*,\s*|\s+/)),e)}var Vae=qu,w1=Yae;function Yae(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=Vae(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 lv=Xae;function Xae(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,u=e.length;o<u;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var FB=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},IC=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}},KI=IC,sv=Kae;function Kae(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,u,s;(!t||typeof t=="string")&&(t=new(KI(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,u=r;a<e.length;a++)for(o=0;o<n;o++)t[u++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=KI(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,u=r,s=t.length;u<s;u++,a++)t[u]=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 Qae=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},Zae=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const QI=qae,ZI=uv,Jae=w1,eoe=lv,JI=qu,Vx=FB,toe=sv,roe=Qae,noe=IC,eP=Zae,ioe=1073741824;var aoe=function(t,r){r||(r={}),t=toe(t,"float64"),r=JI(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=Vx(r.maxDepth,255),i=Vx(r.bounds,eoe(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=tP(t,i),o=t.length>>>1,u;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?u=new(noe(r.dtype))(o):r.dtype&&(u=r.dtype,Array.isArray(u)&&(u.length=o));for(let w=0;w<o;++w)u[w]=w;let s=[],f=[],d=[],v=[];g(0,0,1,u,0,1);let h=0;for(let w=0;w<s.length;w++){let S=s[w];if(u.set)u.set(S,h);else for(let R=0,M=S.length;R<M;R++)u[R+h]=S[R];let E=h+s[w].length;v[w]=[h,E],h=E}return u.range=_,u;function g(w,S,E,R,M,D){if(!R.length)return null;let z=s[M]||(s[M]=[]),N=d[M]||(d[M]=[]),L=f[M]||(f[M]=[]),ee=z.length;if(M++,M>n||D>ioe){for(let Fe=0;Fe<R.length;Fe++)z.push(R[Fe]),N.push(D),L.push(null,null,null,null);return ee}if(z.push(R[0]),N.push(D),R.length<=1)return L.push(null,null,null,null),ee;let ue=E*.5,pe=w+ue,we=S+ue,Ee=[],Je=[],je=[],me=[];for(let Fe=1,qe=R.length;Fe<qe;Fe++){let Ue=R[Fe],be=a[Ue*2],ye=a[Ue*2+1];be<pe?ye<we?Ee.push(Ue):Je.push(Ue):ye<we?je.push(Ue):me.push(Ue)}return D<<=2,L.push(g(w,S,ue,Ee,M,D),g(w,we,ue,Je,M,D+1),g(pe,S,ue,je,M,D+2),g(pe,we,ue,me,M,D+3)),ee}function _(...w){let S;if(roe(w[w.length-1])){let je=w.pop();!w.length&&(je.x!=null||je.l!=null||je.left!=null)&&(w=[je],S={}),S=JI(je,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else S={};w.length||(w=i);let E=Jae(...w),[R,M,D,z]=[Math.min(E.x,E.x+E.width),Math.min(E.y,E.y+E.height),Math.max(E.x,E.x+E.width),Math.max(E.y,E.y+E.height)],[N,L,ee,ue]=tP([R,M,D,z],i),pe=Vx(S.level,s.length);if(S.d!=null){let je;typeof S.d=="number"?je=[S.d,S.d]:S.d.length&&(je=S.d),pe=Math.min(Math.max(Math.ceil(-eP(Math.abs(je[0])/(i[2]-i[0]))),Math.ceil(-eP(Math.abs(je[1])/(i[3]-i[1])))),pe)}if(pe=Math.min(pe,s.length),S.lod)return A(N,L,ee,ue,pe);let we=[];Ee(0,0,1,0,0,1);function Ee(je,me,Fe,qe,Ue,be){if(Ue===null||be===null)return;let ye=je+Fe,Ke=me+Fe;if(N>ye||L>Ke||ee<je||ue<me||qe>=pe||Ue===be)return;let We=s[qe];be===void 0&&(be=We.length);for(let j=Ue;j<be;j++){let te=We[j],I=t[te*2],C=t[te*2+1];I>=R&&I<=D&&C>=M&&C<=z&&we.push(te)}let Ze=f[qe],st=Ze[Ue*4+0],Rt=Ze[Ue*4+1],kt=Ze[Ue*4+2],Ae=Ze[Ue*4+3],nt=Je(Ze,Ue+1),mt=Fe*.5,_e=qe+1;Ee(je,me,mt,_e,st,Rt||kt||Ae||nt),Ee(je,me+mt,mt,_e,Rt,kt||Ae||nt),Ee(je+mt,me,mt,_e,kt,Ae||nt),Ee(je+mt,me+mt,mt,_e,Ae,nt)}function Je(je,me){let Fe=null,qe=0;for(;Fe===null;)if(Fe=je[me*4+qe],qe++,qe>je.length)return null;return Fe}return we}function A(w,S,E,R,M){let D=[];for(let z=0;z<M;z++){let N=d[z],L=v[z][0],ee=b(w,S,z),ue=b(E,R,z),pe=QI.ge(N,ee),we=QI.gt(N,ue,pe,N.length-1);D[z]=[pe+L,we+L]}return D}function b(w,S,E){let R=1,M=.5,D=.5,z=.5;for(let N=0;N<E;N++)R<<=2,R+=w<M?S<D?0:1:S<D?2:3,z*=.5,M+=w<M?-z:z,D+=S<D?-z:z;return R}};function tP(e,t){let[r,n,i,a]=t,o=1/(i-r),u=1/(a-n),s=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)s[2*f]=ZI((e[2*f]-r)*o,0,1),s[2*f+1]=ZI((e[2*f+1]-n)*u,0,1);return s}(function(e){e.exports=aoe})(DB);var NB=ooe;function ooe(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],u=o.toUpperCase();if(o!=u)switch(a[0]=u,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(u){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 uoe=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var u=t[Symbol.iterator](),s;!(i=(s=u.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&u.return&&u.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")}}(),Jp=Math.PI*2,Yx=function(t,r,n,i,a,o,u){var s=t.x,f=t.y;s*=r,f*=n;var d=i*s-a*f,v=a*s+i*f;return{x:d+o,y:v+u}},loe=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),u=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+u*n,y:u-o*n},{x:o,y:u}]},rP=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)},soe=function(t,r,n,i,a,o,u,s,f,d,v,h){var g=Math.pow(a,2),_=Math.pow(o,2),A=Math.pow(v,2),b=Math.pow(h,2),w=g*_-g*b-_*A;w<0&&(w=0),w/=g*b+_*A,w=Math.sqrt(w)*(u===s?-1:1);var S=w*a/o*h,E=w*-o/a*v,R=d*S-f*E+(t+n)/2,M=f*S+d*E+(r+i)/2,D=(v-S)/a,z=(h-E)/o,N=(-v-S)/a,L=(-h-E)/o,ee=rP(1,0,D,z),ue=rP(D,z,N,L);return s===0&&ue>0&&(ue-=Jp),s===1&&ue<0&&(ue+=Jp),[R,M,ee,ue]},foe=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,u=t.ry,s=t.xAxisRotation,f=s===void 0?0:s,d=t.largeArcFlag,v=d===void 0?0:d,h=t.sweepFlag,g=h===void 0?0:h,_=[];if(o===0||u===0)return[];var A=Math.sin(f*Jp/360),b=Math.cos(f*Jp/360),w=b*(r-i)/2+A*(n-a)/2,S=-A*(r-i)/2+b*(n-a)/2;if(w===0&&S===0)return[];o=Math.abs(o),u=Math.abs(u);var E=Math.pow(w,2)/Math.pow(o,2)+Math.pow(S,2)/Math.pow(u,2);E>1&&(o*=Math.sqrt(E),u*=Math.sqrt(E));var R=soe(r,n,i,a,o,u,v,g,A,b,w,S),M=uoe(R,4),D=M[0],z=M[1],N=M[2],L=M[3],ee=Math.abs(L)/(Jp/4);Math.abs(1-ee)<1e-7&&(ee=1);var ue=Math.max(Math.ceil(ee),1);L/=ue;for(var pe=0;pe<ue;pe++)_.push(loe(N,L)),N+=L;return _.map(function(we){var Ee=Yx(we[0],o,u,b,A,D,z),Je=Ee.x,je=Ee.y,me=Yx(we[1],o,u,b,A,D,z),Fe=me.x,qe=me.y,Ue=Yx(we[2],o,u,b,A,D,z),be=Ue.x,ye=Ue.y;return{x1:Je,y1:je,x2:Fe,y2:qe,x:be,y:ye}})};const coe=Object.freeze(Object.defineProperty({__proto__:null,default:foe},Symbol.toStringTag,{value:"Module"})),doe=is(coe);var poe=voe,hoe=doe;function voe(e){for(var t,r=[],n=0,i=0,a=0,o=0,u=null,s=null,f=0,d=0,v=0,h=e.length;v<h;v++){var g=e[v],_=g[0];switch(_){case"M":a=g[1],o=g[2];break;case"A":var A=hoe({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(!A.length)continue;for(var b=0,w;b<A.length;b++)w=A[b],g=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<A.length-1&&r.push(g);break;case"S":var S=f,E=d;(t=="C"||t=="S")&&(S+=S-n,E+=E-i),g=["C",S,E,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(u=f*2-u,s=d*2-s):(u=f,s=d),g=nP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=nP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=om(f,d,g[1],g[2]);break;case"H":g=om(f,d,g[1],d);break;case"V":g=om(f,d,f,g[1]);break;case"Z":g=om(f,d,a,o);break}t=_,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 om(e,t,r,n){return["C",e,t,r,n,r,n]}function nP(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 LB=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))},goe=MB,moe=NB,yoe=poe,boe=LB,woe=xoe;function xoe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!boe(e))throw Error("String is not an SVG path.");e=goe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=moe(e),e=yoe(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 Ol=Math.PI,iP=$B(120),_oe=Soe;function Soe(e){for(var t,r=[],n=0,i=0,a=0,o=0,u=null,s=null,f=0,d=0,v=0,h=e.length;v<h;v++){var g=e[v],_=g[0];switch(_){case"M":a=g[1],o=g[2];break;case"A":g=BB(f,d,g[1],g[2],$B(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 A=f,b=d;(t=="C"||t=="S")&&(A+=A-n,b+=b-i),g=["C",A,b,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(u=f*2-u,s=d*2-s):(u=f,s=d),g=aP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=aP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=um(f,d,g[1],g[2]);break;case"H":g=um(f,d,g[1],d);break;case"V":g=um(f,d,f,g[1]);break;case"Z":g=um(f,d,a,o);break}t=_,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 um(e,t,r,n){return["C",e,t,r,n,r,n]}function aP(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 BB(e,t,r,n,i,a,o,u,s,f){if(f)E=f[0],R=f[1],w=f[2],S=f[3];else{var d=Xx(e,t,-i);e=d.x,t=d.y,d=Xx(u,s,-i),u=d.x,s=d.y;var v=(e-u)/2,h=(t-s)/2,g=v*v/(r*r)+h*h/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var _=r*r,A=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((_*A-_*h*h-A*v*v)/(_*h*h+A*v*v)));b==1/0&&(b=1);var w=b*r*h/n+(e+u)/2,S=b*-n*v/r+(t+s)/2,E=Math.asin(((t-S)/n).toFixed(9)),R=Math.asin(((s-S)/n).toFixed(9));E=e<w?Ol-E:E,R=u<w?Ol-R:R,E<0&&(E=Ol*2+E),R<0&&(R=Ol*2+R),o&&E>R&&(E=E-Ol*2),!o&&R>E&&(R=R-Ol*2)}if(Math.abs(R-E)>iP){var M=R,D=u,z=s;R=E+iP*(o&&R>E?1:-1),u=w+r*Math.cos(R),s=S+n*Math.sin(R);var N=BB(u,s,r,n,i,0,o,D,z,[R,M,w,S])}var L=Math.tan((R-E)/4),ee=4/3*r*L,ue=4/3*n*L,pe=[2*e-(e+ee*Math.sin(E)),2*t-(t-ue*Math.cos(E)),u+ee*Math.sin(R),s-ue*Math.cos(R),u,s];if(f)return pe;N&&(pe=pe.concat(N));for(var we=0;we<pe.length;){var Ee=Xx(pe[we],pe[we+1],i);pe[we++]=Ee.x,pe[we++]=Ee.y}return pe}function Xx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function $B(e){return e*(Ol/180)}var Eoe=NB,Aoe=_oe,Coe={M:"moveTo",C:"bezierCurveTo"},Toe=function(e,t){e.beginPath(),Aoe(Eoe(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Coe[n]].apply(e,i)}),e.closePath()},Roe=uv,Ooe=Ioe,eh=1e20;function Ioe(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,u,s,f,d,v,h,g,_,A;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,v=h.getContext("2d"),a=h.width,o=h.height,g=v.getImageData(0,0,a,o),s=g.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,v=e,a=h.width,o=h.height,g=v.getImageData(0,0,a,o),s=g.data,d=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,o=e.height,s=g.data,d=4);if(u=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(a*o),_=0,A=f.length;_<A;_++)s[_]=f[_*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),w=Array(a*o),S=Array(u),E=Array(u),R=Array(u+1),M=Array(u);for(_=0,A=a*o;_<A;_++){var D=s[_];b[_]=D===1?0:D===0?eh:Math.pow(Math.max(0,.5-D),2),w[_]=D===1?eh:D===0?0:Math.pow(Math.max(0,D-.5),2)}oP(b,a,o,S,E,M,R),oP(w,a,o,S,E,M,R);var z=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(_=0,A=a*o;_<A;_++)z[_]=Roe(1-((b[_]-w[_])/n+r),0,1);return z}function oP(e,t,r,n,i,a,o){for(var u=0;u<t;u++){for(var s=0;s<r;s++)n[s]=e[s*t+u];for(uP(n,i,a,o,r),s=0;s<r;s++)e[s*t+u]=i[s]}for(s=0;s<r;s++){for(u=0;u<t;u++)n[u]=e[s*t+u];for(uP(n,i,a,o,t),u=0;u<t;u++)e[s*t+u]=Math.sqrt(i[u])}}function uP(e,t,r,n,i){r[0]=0,n[0]=-eh,n[1]=+eh;for(var a=1,o=0;a<i;a++){for(var u=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);u<=n[o];)o--,u=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=u,n[o+1]=+eh}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 Poe=woe,koe=MB,Moe=Toe,Doe=LB,Foe=Ooe,ES=document.createElement("canvas"),Qn=ES.getContext("2d"),Dde=Noe;function Noe(e,t){if(!Doe(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=ES.width=t.w||t.width||200,n=ES.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Poe(e),u=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(u[0]||0,u[1]||0)/2;if(Qn.fillStyle="black",Qn.fillRect(0,0,r,n),Qn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Qn.strokeStyle="white":Qn.strokeStyle="black",Qn.lineWidth=Math.abs(a)),Qn.translate(r*.5,n*.5),Qn.scale(s,s),Loe()){var f=new Path2D(e);Qn.fill(f),a&&Qn.stroke(f)}else{var d=koe(e);Moe(Qn,d),Qn.fill(),a&&Qn.stroke()}Qn.setTransform(1,0,0,1,0,0);var v=Foe(Qn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return v}var lm;function Loe(){if(lm!=null)return lm;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return lm=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return lm=r&&r.data&&r.data[3]===255}var Boe={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]},$oe=Object.prototype.toString,zB=function(e){var t;return $oe.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},lP=Boe,zoe=zB,El=FB,Uoe=joe,sP={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function joe(e){var t,r=[],n=1,i;if(typeof e=="string")if(lP[e])r=lP[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,u=o<=4;n=1,u?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],f=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,_){if(/%$/.test(g))return _===o?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[_]==="h"){if(/deg$/.test(g))return parseFloat(g);if(sP[g]!==void 0)return sP[g]}return parseFloat(g)}),s===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(v){return parseFloat(v)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(zoe(e)){var d=El(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,El(e.g,e.green,e.G),El(e.b,e.blue,e.B)]):(i="hsl",r=[El(e.h,e.hue,e.H),El(e.s,e.saturation,e.S),El(e.l,e.lightness,e.L,e.b,e.brightness)]),n=El(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||_r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var Woe={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,u,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,u=[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?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,u[f]=s*255;return u}},Goe=Uoe,qoe=Woe,sm=uv,Hoe=function(t){var r,n=Goe(t);return n.space?(r=Array(3),r[0]=sm(n.values[0],0,255),r[1]=sm(n.values[1],0,255),r[2]=sm(n.values[2],0,255),n.space[0]==="h"&&(r=qoe.rgb(r)),r.push(sm(n.alpha,0,1)),r):[]},Voe=Hoe,fm=uv,Yoe=IC,x1=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=Yoe(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Voe(t),t[0]/=255,t[1]/=255,t[2]/=255),Xoe(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]=fm(Math.floor(t[0]*255),0,255),i[1]=fm(Math.floor(t[1]*255),0,255),i[2]=fm(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:fm(Math.floor(t[3]*255),0,255)),i)};function Xoe(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 _1={exports:{}},cm=uv;_1.exports=UB;_1.exports.to=UB;_1.exports.from=Koe;function UB(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=cm(r,0,255)&255,n=cm(n,0,255)&255,i=cm(i,0,255)&255,a=cm(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function Koe(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 jB=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("")},WB=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 u in o)if(!(r[u]!==void 0&&!Array.isArray(r[u])&&t[u]===r[u])&&u in r){var s;if(o[u]===!0)s=r[u];else{if(o[u]===!1)continue;if(typeof o[u]=="function"&&(s=o[u](r[u],t,r),s===void 0))continue}t[u]=s}}return t},Qoe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Nu={exports:{}};Nu.exports=th;Nu.exports.float32=Nu.exports.float=th;Nu.exports.fract32=Nu.exports.fract=Zoe;var fP=new Float32Array(1);function Zoe(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=th(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return th(e-th(e))}function th(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(fP[0]=e,fP[0])}function Joe(e,t){return rue(e)||iue(e,t)||GB(e,t)||oue()}function eue(e){return tue(e)||nue(e)||GB(e)||aue()}function tue(e){if(Array.isArray(e))return AS(e)}function rue(e){if(Array.isArray(e))return e}function nue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iue(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,u;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw u}}return n}}function GB(e,t){if(!!e){if(typeof e=="string")return AS(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 AS(e,t)}}function AS(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 aue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
925
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
926
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var uue=x1,lue=lv,sue=_1.exports,fue=DB.exports,ql=as,dm=jB,cue=qu,due=WB,pue=sv,cP=Qoe,pm=Nu.exports,hue=w1,vue=xn;function xn(e,t){var r=this;if(!(this instanceof xn))return new xn(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={},u=[],s=[null],f=[null],d=255,v=100;this.tooManyColors=cP,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),ql(this,{regl:e,gl:n,groups:u,markerCache:f,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:v,canvas:n.canvas}),this.update(t);var h={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(b,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(b,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(b,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(b,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(b,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(b,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(b,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(b,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(b,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},g=ql({},h);g.frag=dm([`precision highp float;
|
|
927
|
+
#define GLSLIFY 1
|
|
928
|
+
|
|
929
|
+
uniform float opacity;
|
|
930
|
+
uniform sampler2D markerTexture;
|
|
931
|
+
|
|
932
|
+
varying vec4 fragColor, fragBorderColor;
|
|
933
|
+
varying float fragWidth, fragBorderColorLevel, fragColorLevel;
|
|
934
|
+
|
|
935
|
+
float smoothStep(float x, float y) {
|
|
936
|
+
return 1.0 / (1.0 + exp(50.0*(x - y)));
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
void main() {
|
|
940
|
+
float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
|
|
941
|
+
|
|
942
|
+
// max-distance alpha
|
|
943
|
+
if (dist < 0.003) discard;
|
|
944
|
+
|
|
945
|
+
// null-border case
|
|
946
|
+
if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
|
|
947
|
+
float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
|
|
948
|
+
gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
|
|
949
|
+
}
|
|
950
|
+
else {
|
|
951
|
+
float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
|
|
952
|
+
float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
|
|
953
|
+
|
|
954
|
+
vec4 color = fragBorderColor;
|
|
955
|
+
color.a *= borderColorAmt;
|
|
956
|
+
color = mix(color, fragColor, colorAmt);
|
|
957
|
+
color.a *= opacity;
|
|
958
|
+
|
|
959
|
+
gl_FragColor = color;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
}
|
|
963
|
+
`]),g.vert=dm([`precision highp float;
|
|
964
|
+
#define GLSLIFY 1
|
|
965
|
+
|
|
966
|
+
attribute float x, y, xFract, yFract;
|
|
967
|
+
attribute float size, borderSize;
|
|
968
|
+
attribute vec4 colorId, borderColorId;
|
|
969
|
+
attribute float isActive;
|
|
970
|
+
|
|
971
|
+
uniform bool constPointSize;
|
|
972
|
+
uniform float pixelRatio;
|
|
973
|
+
uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
|
|
974
|
+
uniform sampler2D paletteTexture;
|
|
975
|
+
|
|
976
|
+
const float maxSize = 100.;
|
|
977
|
+
const float borderLevel = .5;
|
|
978
|
+
|
|
979
|
+
varying vec4 fragColor, fragBorderColor;
|
|
980
|
+
varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
|
|
981
|
+
|
|
982
|
+
float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
|
|
983
|
+
|
|
984
|
+
bool isDirect = (paletteSize.x < 1.);
|
|
985
|
+
|
|
986
|
+
vec4 getColor(vec4 id) {
|
|
987
|
+
return isDirect ? id / 255. : texture2D(paletteTexture,
|
|
988
|
+
vec2(
|
|
989
|
+
(id.x + .5) / paletteSize.x,
|
|
990
|
+
(id.y + .5) / paletteSize.y
|
|
991
|
+
)
|
|
992
|
+
);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
void main() {
|
|
996
|
+
// ignore inactive points
|
|
997
|
+
if (isActive == 0.) return;
|
|
998
|
+
|
|
999
|
+
vec2 position = vec2(x, y);
|
|
1000
|
+
vec2 positionFract = vec2(xFract, yFract);
|
|
1001
|
+
|
|
1002
|
+
vec4 color = getColor(colorId);
|
|
1003
|
+
vec4 borderColor = getColor(borderColorId);
|
|
1004
|
+
|
|
1005
|
+
float size = size * maxSize / 255.;
|
|
1006
|
+
float borderSize = borderSize * maxSize / 255.;
|
|
1007
|
+
|
|
1008
|
+
gl_PointSize = 2. * size * pointSizeScale;
|
|
1009
|
+
fragPointSize = size * pixelRatio;
|
|
1010
|
+
|
|
1011
|
+
vec2 pos = (position + translate) * scale
|
|
1012
|
+
+ (positionFract + translateFract) * scale
|
|
1013
|
+
+ (position + translate) * scaleFract
|
|
1014
|
+
+ (positionFract + translateFract) * scaleFract;
|
|
1015
|
+
|
|
1016
|
+
gl_Position = vec4(pos * 2. - 1., 0., 1.);
|
|
1017
|
+
|
|
1018
|
+
fragColor = color;
|
|
1019
|
+
fragBorderColor = borderColor;
|
|
1020
|
+
fragWidth = 1. / gl_PointSize;
|
|
1021
|
+
|
|
1022
|
+
fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
|
|
1023
|
+
fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
|
|
1024
|
+
}`]),this.drawMarker=e(g);var _=ql({},h);_.frag=dm([`precision highp float;
|
|
1025
|
+
#define GLSLIFY 1
|
|
1026
|
+
|
|
1027
|
+
varying vec4 fragColor, fragBorderColor;
|
|
1028
|
+
varying float fragBorderRadius, fragWidth;
|
|
1029
|
+
|
|
1030
|
+
uniform float opacity;
|
|
1031
|
+
|
|
1032
|
+
float smoothStep(float edge0, float edge1, float x) {
|
|
1033
|
+
float t;
|
|
1034
|
+
t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
|
|
1035
|
+
return t * t * (3.0 - 2.0 * t);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
void main() {
|
|
1039
|
+
float radius, alpha = 1.0, delta = fragWidth;
|
|
1040
|
+
|
|
1041
|
+
radius = length(2.0 * gl_PointCoord.xy - 1.0);
|
|
1042
|
+
|
|
1043
|
+
if (radius > 1.0 + delta) {
|
|
1044
|
+
discard;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
|
|
1048
|
+
|
|
1049
|
+
float borderRadius = fragBorderRadius;
|
|
1050
|
+
float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
|
|
1051
|
+
vec4 color = mix(fragColor, fragBorderColor, ratio);
|
|
1052
|
+
color.a *= alpha * opacity;
|
|
1053
|
+
gl_FragColor = color;
|
|
1054
|
+
}
|
|
1055
|
+
`]),_.vert=dm([`precision highp float;
|
|
1056
|
+
#define GLSLIFY 1
|
|
1057
|
+
|
|
1058
|
+
attribute float x, y, xFract, yFract;
|
|
1059
|
+
attribute float size, borderSize;
|
|
1060
|
+
attribute vec4 colorId, borderColorId;
|
|
1061
|
+
attribute float isActive;
|
|
1062
|
+
|
|
1063
|
+
uniform bool constPointSize;
|
|
1064
|
+
uniform float pixelRatio;
|
|
1065
|
+
uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
|
|
1066
|
+
uniform sampler2D paletteTexture;
|
|
1067
|
+
|
|
1068
|
+
const float maxSize = 100.;
|
|
1069
|
+
|
|
1070
|
+
varying vec4 fragColor, fragBorderColor;
|
|
1071
|
+
varying float fragBorderRadius, fragWidth;
|
|
1072
|
+
|
|
1073
|
+
float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
|
|
1074
|
+
|
|
1075
|
+
bool isDirect = (paletteSize.x < 1.);
|
|
1076
|
+
|
|
1077
|
+
vec4 getColor(vec4 id) {
|
|
1078
|
+
return isDirect ? id / 255. : texture2D(paletteTexture,
|
|
1079
|
+
vec2(
|
|
1080
|
+
(id.x + .5) / paletteSize.x,
|
|
1081
|
+
(id.y + .5) / paletteSize.y
|
|
1082
|
+
)
|
|
1083
|
+
);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
void main() {
|
|
1087
|
+
// ignore inactive points
|
|
1088
|
+
if (isActive == 0.) return;
|
|
1089
|
+
|
|
1090
|
+
vec2 position = vec2(x, y);
|
|
1091
|
+
vec2 positionFract = vec2(xFract, yFract);
|
|
1092
|
+
|
|
1093
|
+
vec4 color = getColor(colorId);
|
|
1094
|
+
vec4 borderColor = getColor(borderColorId);
|
|
1095
|
+
|
|
1096
|
+
float size = size * maxSize / 255.;
|
|
1097
|
+
float borderSize = borderSize * maxSize / 255.;
|
|
1098
|
+
|
|
1099
|
+
gl_PointSize = (size + borderSize) * pointSizeScale;
|
|
1100
|
+
|
|
1101
|
+
vec2 pos = (position + translate) * scale
|
|
1102
|
+
+ (positionFract + translateFract) * scale
|
|
1103
|
+
+ (position + translate) * scaleFract
|
|
1104
|
+
+ (positionFract + translateFract) * scaleFract;
|
|
1105
|
+
|
|
1106
|
+
gl_Position = vec4(pos * 2. - 1., 0., 1.);
|
|
1107
|
+
|
|
1108
|
+
fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
|
|
1109
|
+
fragColor = color;
|
|
1110
|
+
fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
|
|
1111
|
+
fragWidth = 1. / gl_PointSize;
|
|
1112
|
+
}
|
|
1113
|
+
`]),cP&&(_.frag=_.frag.replace("smoothstep","smoothStep"),g.frag=g.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(_)}xn.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};xn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};xn.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,u){e.drawItem(u)});return this};xn.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,eue(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};xn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,u=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[ql({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[ql({},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 v=o[e],h=v.data,g=new Uint8Array(s),_=0;_<r.length;_++){var A=r[_];g[A]=h?h[A]:1}u.subdata(g)}for(var b=d.length;b--;){var w=Joe(d[b],2),S=w[0],E=w[1];f.push(ql({},t,{markerTexture:this.markerTextures[e],activation:r?u:o[e],offset:S,count:E-S}))}return f};xn.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,u=this.maxSize,s=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,v){var h=i[v];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=cue(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[v]=h={id:v,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=ql({},xn.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,_=0;if(due(h,d,[{snap:!0,size:function(me,Fe){return me==null&&(me=xn.defaults.size),g+=me&&me.length?1:0,me},borderSize:function(me,Fe){return me==null&&(me=xn.defaults.borderSize),g+=me&&me.length?1:0,me},opacity:parseFloat,color:function(me,Fe){return me==null&&(me=xn.defaults.color),me=e.updateColor(me),_++,me},borderColor:function(me,Fe){return me==null&&(me=xn.defaults.borderColor),me=e.updateColor(me),_++,me},bounds:function(me,Fe,qe){return"range"in qe||(qe.range=null),me},positions:function(me,Fe,qe){var Ue=Fe.snap,be=Fe.positionBuffer,ye=Fe.positionFractBuffer,Ke=Fe.selectionBuffer;if(me.x||me.y)return me.x.length?Fe.xAttr={buffer:o.buffer(me.x),offset:0,stride:4,count:me.x.length}:Fe.xAttr={buffer:me.x.buffer,offset:me.x.offset*4||0,stride:(me.x.stride||1)*4,count:me.x.count},me.y.length?Fe.yAttr={buffer:o.buffer(me.y),offset:0,stride:4,count:me.y.length}:Fe.yAttr={buffer:me.y.buffer,offset:me.y.offset*4||0,stride:(me.y.stride||1)*4,count:me.y.count},Fe.count=Math.max(Fe.xAttr.count,Fe.yAttr.count),me;me=pue(me,"float64");var We=Fe.count=Math.floor(me.length/2),Ze=Fe.bounds=We?lue(me,2):null;if(!qe.range&&!Fe.range&&(delete Fe.range,qe.range=Ze),!qe.marker&&!Fe.marker&&(delete Fe.marker,qe.marker=null),Ue&&(Ue===!0||We>Ue)?Fe.tree=fue(me,{bounds:Ze}):Ue&&Ue.length&&(Fe.tree=Ue),Fe.tree){var st={primitive:"points",usage:"static",data:Fe.tree,type:"uint32"};Fe.elements?Fe.elements(st):Fe.elements=o.elements(st)}var Rt=pm.float32(me);be({data:Rt,usage:"dynamic"});var kt=pm.fract32(me,Rt);return ye({data:kt,usage:"dynamic"}),Ke({data:new Uint8Array(We),type:"uint8",usage:"stream"}),me}},{marker:function(me,Fe,qe){var Ue=Fe.activation;if(Ue.forEach(function(kt){return kt&&kt.destroy&&kt.destroy()}),Ue.length=0,!me||typeof me[0]=="number"){var be=e.addMarker(me);Ue[be]=!0}else{for(var ye=[],Ke=0,We=Math.min(me.length,Fe.count);Ke<We;Ke++){var Ze=e.addMarker(me[Ke]);ye[Ze]||(ye[Ze]=new Uint8Array(Fe.count)),ye[Ze][Ke]=1}for(var st=0;st<ye.length;st++)if(!!ye[st]){var Rt={data:ye[st],type:"uint8",usage:"static"};Ue[st]?Ue[st](Rt):Ue[st]=o.buffer(Rt),Ue[st].data=ye[st]}}return me},range:function(me,Fe,qe){var Ue=Fe.bounds;if(!!Ue)return me||(me=Ue),Fe.scale=[1/(me[2]-me[0]),1/(me[3]-me[1])],Fe.translate=[-me[0],-me[1]],Fe.scaleFract=pm.fract(Fe.scale),Fe.translateFract=pm.fract(Fe.translate),me},viewport:function(me){var Fe=hue(me||[a.drawingBufferWidth,a.drawingBufferHeight]);return Fe}}]),g){var A=h,b=A.count,w=A.size,S=A.borderSize,E=A.sizeBuffer,R=new Uint8Array(b*2);if(w.length||S.length)for(var M=0;M<b;M++)R[M*2]=Math.round((w[M]==null?w:w[M])*255/u),R[M*2+1]=Math.round((S[M]==null?S:S[M])*255/u);E({data:R,usage:"dynamic"})}if(_){var D=h,z=D.count,N=D.color,L=D.borderColor,ee=D.colorBuffer,ue;if(e.tooManyColors){if(N.length||L.length){ue=new Uint8Array(z*8);for(var pe=0;pe<z;pe++){var we=N[pe];ue[pe*8]=f[we*4],ue[pe*8+1]=f[we*4+1],ue[pe*8+2]=f[we*4+2],ue[pe*8+3]=f[we*4+3];var Ee=L[pe];ue[pe*8+4]=f[Ee*4],ue[pe*8+5]=f[Ee*4+1],ue[pe*8+6]=f[Ee*4+2],ue[pe*8+7]=f[Ee*4+3]}}}else if(N.length||L.length){ue=new Uint8Array(z*4+2);for(var Je=0;Je<z;Je++)N[Je]!=null&&(ue[Je*4]=N[Je]%s,ue[Je*4+1]=Math.floor(N[Je]/s)),L[Je]!=null&&(ue[Je*4+2]=L[Je]%s,ue[Je*4+3]=Math.floor(L[Je]/s))}ee({data:ue||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return h})}};xn.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,u=e.length;o<u;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};xn.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 u=0;u<e.length;u+=4)a.push(e.subarray(u,u+4));e=a}for(var s=0;s<e.length;s++){var f=e[s];f=uue(f,"uint8");var d=sue(f,!1);if(t[d]==null){var v=r.length;t[d]=Math.floor(v/4),r[v]=f[0],r[v+1]=f[1],r[v+2]=f[2],r[v+3]=f[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};xn.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)}};xn.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 gue=as,mue=function(t,r){var n=new vue(t,r),i=n.render.bind(n);return gue(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},Fde=mue,PC={exports:{}};PC.exports=S1;PC.exports.default=S1;function S1(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=qB(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var u,s,f,d,v,h,g;if(n&&(a=_ue(e,t,a,r)),e.length>80*r){u=f=e[0],s=d=e[1];for(var _=r;_<i;_+=r)v=e[_],h=e[_+1],v<u&&(u=v),h<s&&(s=h),v>f&&(f=v),h>d&&(d=h);g=Math.max(f-u,d-s),g=g!==0?1/g:0}return Rh(a,o,r,u,s,g),o}function qB(e,t,r,n,i){var a,o;if(i===RS(e,t,r,n)>0)for(a=t;a<r;a+=n)o=dP(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=dP(a,e[a],e[a+1],o);return o&&E1(o,o.next)&&(Ih(o),o=o.next),o}function Lu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(E1(r,r.next)||Vr(r.prev,r,r.next)===0)){if(Ih(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Rh(e,t,r,n,i,a,o){if(!!e){!o&&a&&Tue(e,n,i,a);for(var u=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?bue(e,n,i,a):yue(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),Ih(e),e=f.next,u=f.next;continue}if(e=f,e===u){o?o===1?(e=wue(Lu(e),t,r),Rh(e,t,r,n,i,a,2)):o===2&&xue(e,t,r,n,i,a):Rh(Lu(e),t,r,n,i,a,1);break}}}}function yue(e){var t=e.prev,r=e,n=e.next;if(Vr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(kf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Vr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function bue(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Vr(i,a,o)>=0)return!1;for(var u=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,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,v=CS(u,s,t,r,n),h=CS(f,d,t,r,n),g=e.prevZ,_=e.nextZ;g&&g.z>=v&&_&&_.z<=h;){if(g!==e.prev&&g!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Vr(g.prev,g,g.next)>=0||(g=g.prevZ,_!==e.prev&&_!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Vr(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;g&&g.z>=v;){if(g!==e.prev&&g!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Vr(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;_&&_.z<=h;){if(_!==e.prev&&_!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Vr(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function wue(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!E1(i,a)&&HB(i,n,n.next,a)&&Oh(i,a)&&Oh(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Ih(n),Ih(n.next),n=e=a),n=n.next}while(n!==e);return Lu(n)}function xue(e,t,r,n,i,a){var o=e;do{for(var u=o.next.next;u!==o.prev;){if(o.i!==u.i&&Iue(o,u)){var s=VB(o,u);o=Lu(o,o.next),s=Lu(s,s.next),Rh(o,t,r,n,i,a),Rh(s,t,r,n,i,a);return}u=u.next}o=o.next}while(o!==e)}function _ue(e,t,r,n){var i=[],a,o,u,s,f;for(a=0,o=t.length;a<o;a++)u=t[a]*n,s=a<o-1?t[a+1]*n:e.length,f=qB(e,u,s,n,!1),f===f.next&&(f.steiner=!0),i.push(Oue(f));for(i.sort(Sue),a=0;a<i.length;a++)r=Eue(i[a],r),r=Lu(r,r.next);return r}function Sue(e,t){return e.x-t.x}function Eue(e,t){var r=Aue(e,t);if(!r)return t;var n=VB(r,e),i=Lu(r,r.next);return Lu(n,n.next),t===r?i:t}function Aue(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 u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>a){if(a=u,u===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,f=o.x,d=o.y,v=1/0,h;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&kf(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),Oh(r,e)&&(h<v||h===v&&(r.x>o.x||r.x===o.x&&Cue(o,r)))&&(o=r,v=h)),r=r.next;while(r!==s);return o}function Cue(e,t){return Vr(e.prev,e,t.prev)<0&&Vr(t.next,e,e.next)<0}function Tue(e,t,r,n){var i=e;do i.z===null&&(i.z=CS(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,Rue(i)}function Rue(e){var t,r,n,i,a,o,u,s,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,u=0,t=0;t<f&&(u++,n=n.nextZ,!!n);t++);for(s=f;u>0||s>0&&n;)u!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function CS(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 Oue(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 kf(e,t,r,n,i,a,o,u){return(i-o)*(t-u)-(e-o)*(a-u)>=0&&(e-o)*(n-u)-(r-o)*(t-u)>=0&&(r-o)*(a-u)-(i-o)*(n-u)>=0}function Iue(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Pue(e,t)&&(Oh(e,t)&&Oh(t,e)&&kue(e,t)&&(Vr(e.prev,e,t.prev)||Vr(e,t.prev,t))||E1(e,t)&&Vr(e.prev,e,e.next)>0&&Vr(t.prev,t,t.next)>0)}function Vr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function E1(e,t){return e.x===t.x&&e.y===t.y}function HB(e,t,r,n){var i=vm(Vr(e,t,r)),a=vm(Vr(e,t,n)),o=vm(Vr(r,n,e)),u=vm(Vr(r,n,t));return!!(i!==a&&o!==u||i===0&&hm(e,r,t)||a===0&&hm(e,n,t)||o===0&&hm(r,e,n)||u===0&&hm(r,t,n))}function hm(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 vm(e){return e>0?1:e<0?-1:0}function Pue(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&&HB(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Oh(e,t){return Vr(e.prev,e,e.next)<0?Vr(e,t,e.next)>=0&&Vr(e,e.prev,t)>=0:Vr(e,t,e.prev)<0||Vr(e,e.next,t)<0}function kue(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 VB(e,t){var r=new TS(e.i,e.x,e.y),n=new TS(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 dP(e,t,r,n){var i=new TS(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 Ih(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 TS(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}S1.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(RS(e,0,a,r));if(i)for(var u=0,s=t.length;u<s;u++){var f=t[u]*r,d=u<s-1?t[u+1]*r:e.length;o-=Math.abs(RS(e,f,d,r))}var v=0;for(u=0;u<n.length;u+=3){var h=n[u]*r,g=n[u+1]*r,_=n[u+2]*r;v+=Math.abs((e[h]-e[_])*(e[g+1]-e[h+1])-(e[h]-e[g])*(e[_+1]-e[h+1]))}return o===0&&v===0?0:Math.abs((v-o)/o)};function RS(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}S1.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 Mue=lv,Due=Fue;function Fue(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Mue(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,u=e.length;if(i===1/0&&a===-1/0)for(o=n;o<u;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<u;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<u;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<u;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var Nue=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")},Kx,pP;function YB(){if(pP)return Kx;pP=1;var e=Object.create,t=Object.getPrototypeOf,r={};return Kx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},Kx}var Qx,hP;function Lue(){if(hP)return Qx;hP=1;var e=Object.create,t;return YB()()||(t=XB()),Qx=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)})}(),Qx}var Zx,vP;function XB(){if(vP)return Zx;vP=1;var e=LE,t=da,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,u){if(t(o),u===null||e(u))return o;throw new TypeError("Prototype must be null or an object")},Zx=function(o){var u,s;return o?(o.level===2?o.set?(s=o.set,u=function(f,d){return s.call(a(f,d),d),f}):u=function(f,d){return a(f,d).__proto__=d,f}:u=function f(d,v){var h;return a(d,v),h=r.call(f.nullPolyfill,d),h&&delete f.nullPolyfill.__proto__,v===null&&(v=f.nullPolyfill),d.__proto__=v,h&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(u,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),u={},s,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{s=f.set,s.call(o,u)}catch{}if(Object.getPrototypeOf(o)===u)return{set:s,level:2}}return o.__proto__=u,Object.getPrototypeOf(o)===u?{level:2}:(o={},o.__proto__=u,Object.getPrototypeOf(o)===u?{level:1}:!1)}()),Lue(),Zx}var Jx,gP;function kC(){return gP||(gP=1,Jx=YB()()?Object.setPrototypeOf:XB()),Jx}var e_,mP;function Bue(){if(mP)return e_;mP=1;var e=LE;return e_=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},e_}var t_,yP;function $ue(){if(yP)return t_;yP=1;var e=Object.create(null),t=Math.random;return t_=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},t_}var r_={exports:{}},n_,bP;function zue(){if(bP)return n_;bP=1;var e=da;return n_=function(){return e(this).length=0,this},n_}var i_,wP;function Uue(){if(wP)return i_;wP=1;var e=Sc,t=BE,r=Object.prototype.toString;return i_=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}},i_}var a_,xP;function jue(){return xP||(xP=1,a_=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),a_}var o_,_P;function Wue(){if(_P)return o_;_P=1;var e=jue(),t=/[\n\r\u2028\u2029]/g;return o_=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`
|
|
1114
|
+
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},o_}var u_,SP;function KB(){if(SP)return u_;SP=1;var e=Sc,t=BE,r=Uue(),n=Wue(),i=function(a,o){return a.replace("%v",n(o))};return u_=function(a,o,u){if(!t(u))throw new TypeError(i(o,a));if(!e(a)){if("default"in u)return u.default;if(u.isOptional)return null}var s=r(u.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},u_}var l_,EP;function Gue(){if(EP)return l_;EP=1;var e=KB(),t=Sc;return l_=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},l_}var s_,AP;function que(){if(AP)return s_;AP=1;var e=KB(),t=mD;return s_=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},s_}var f_,CP;function Hue(){if(CP)return f_;CP=1;var e=ky(),t=Ry,r=da;return f_=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var u={};return a?e(a,function(s){(o.ensure||s in n)&&(u[s]=n[s])}):t(u,n),u},f_}var c_,TP;function Vue(){if(TP)return c_;TP=1;var e=Sc,t=Gue(),r=que(),n=Hue(),i=NE,a=zE(),o=Function.prototype.bind,u=Object.defineProperty,s=Object.prototype.hasOwnProperty,f;return f=function(d,v,h){var g=t(v)&&r(v.value),_;return _=n(v),delete _.writable,delete _.value,_.get=function(){return!h.overwriteDefinition&&s.call(this,d)?g:(v.value=o.call(g,h.resolveContext?h.resolveContext(this):this),u(this,d,v),this[d])},_},c_=function(d){var v=i(arguments[1]);return e(v.resolveContext)&&r(v.resolveContext),a(d,function(h,g){return f(g,h,v)})},c_}var d_,RP;function QB(){if(RP)return d_;RP=1;var e=zue(),t=Ry,r=ja,n=da,i=Vi.exports,a=Vue(),o=ds(),u=Object.defineProperty,s=Object.defineProperties,f;return d_=f=function(d,v){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",v),__nextIndex__:i("w",0)}),v&&(r(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete f.prototype.constructor,s(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__){u(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(v,h){v>=d&&(this.__redo__[h]=++v)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var v;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(v=this.__redo__.indexOf(d),v!==-1&&this.__redo__.splice(v,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})}))),u(f.prototype,o.iterator,i(function(){return this})),d_}var OP;function Yue(){if(OP)return r_.exports;OP=1;var e=kC(),t=yD,r=Vi.exports,n=ds(),i=QB(),a=Object.defineProperty,o;return o=r_.exports=function(u,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,u),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(u){return this.__kind__==="value"?this.__list__[u]:this.__kind__==="key+value"?[u,this.__list__[u]]:u})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),r_.exports}var p_={exports:{}},IP;function Xue(){if(IP)return p_.exports;IP=1;var e=kC(),t=Vi.exports,r=ds(),n=QB(),i=Object.defineProperty,a;return a=p_.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 u=this.__list__[o],s;return this.__nextIndex__===this.__length__?u:(s=u.charCodeAt(0),s>=55296&&s<=56319?u+this.__list__[this.__nextIndex__++]:u)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),p_.exports}var h_,PP;function Kue(){if(PP)return h_;PP=1;var e=Iy(),t=Ao,r=Py(),n=ds().iterator,i=Array.isArray;return h_=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},h_}var v_,kP;function Que(){if(kP)return v_;kP=1;var e=Kue();return v_=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},v_}var g_,MP;function ZB(){if(MP)return g_;MP=1;var e=Iy(),t=Py(),r=Yue(),n=Xue(),i=Que(),a=ds().iterator;return g_=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},g_}var m_,DP;function Zue(){if(DP)return m_;DP=1;var e=Iy(),t=ja,r=Py(),n=ZB(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return m_=function(u,s){var f,d=arguments[2],v,h,g,_,A,b,w;if(i(u)||e(u)?f="array":r(u)?f="string":u=n(u),t(s),h=function(){g=!0},f==="array"){o.call(u,function(S){return a.call(s,d,S,h),g});return}if(f==="string"){for(A=u.length,_=0;_<A&&(b=u[_],_+1<A&&(w=b.charCodeAt(0),w>=55296&&w<=56319&&(b+=u[++_])),a.call(s,d,b,h),!g);++_);return}for(v=u.next();!v.done;){if(a.call(s,d,v.value,h),g)return;v=u.next()}},m_}var y_,FP;function Jue(){return FP||(FP=1,y_=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),y_}var b_,NP;function ele(){if(NP)return b_;NP=1;var e=Ao,t=kC(),r=Bue(),n=da,i=$ue(),a=Vi.exports,o=ZB(),u=Zue(),s=ds().toStringTag,f=Jue(),d=Array.isArray,v=Object.defineProperty,h=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf,_;return b_=_=function(){var A=arguments[0],b;if(!(this instanceof _))throw new TypeError("Constructor requires 'new'");return b=f&&t&&WeakMap!==_?t(new WeakMap,g(this)):this,e(A)&&(d(A)||(A=o(A))),v(b,"__weakMapData__",a("c","$weakMap$"+i())),A&&u(A,function(w){n(w),b.set(w[0],w[1])}),b},f&&(t&&t(_,WeakMap),_.prototype=Object.create(WeakMap.prototype,{constructor:a(_)})),Object.defineProperties(_.prototype,{delete:a(function(A){return h.call(r(A),this.__weakMapData__)?(delete A[this.__weakMapData__],!0):!1}),get:a(function(A){if(!!h.call(r(A),this.__weakMapData__))return A[this.__weakMapData__]}),has:a(function(A){return h.call(r(A),this.__weakMapData__)}),set:a(function(A,b){return v(r(A),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),v(_.prototype,s,a("c","WeakMap")),b_}var JB=Nue()?WeakMap:ele(),tle=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 gm=x1,rle=lv,OS=as,pf=jB,nle=qu,ile=sv,LP=PC.exports,ale=Due,{float32:ole,fract32:w_}=Nu.exports,ule=JB,BP=w1,lle=tle;var Nde=Ir;function Ir(e,t){if(!(this instanceof Ir))return new Ir(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=Ir.shaders.has(e)?Ir.shaders.get(e):Ir.shaders.set(e,Ir.createShaders(e)).get(e),this.update(t)}Ir.dashMult=2;Ir.maxPatternLength=256;Ir.precisionThreshold=3e6;Ir.maxPoints=1e4;Ir.maxLines=2048;Ir.shaders=new ule;Ir.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,u)=>u.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,u)=>[u.viewport.x,u.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,u)=>!u.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(OS({vert:pf("./rect-vert.glsl"),frag:pf("./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(OS({cull:{enable:!0,face:"back"},vert:pf("./miter-vert.glsl"),frag:pf("./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,u)=>u.triangles,offset:0,vert:pf("./fill-vert.glsl"),frag:pf("./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,u)=>[u.viewport.x,u.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}};Ir.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};Ir.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Ir.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>Ir.precisionThreshold||t.scale[1]*t.viewport.height>Ir.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Ir.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Ir.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=nle(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=OS({},Ir.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<Ir.maxLines&&(o.depth=2*(Ir.maxLines-1-a%Ir.maxLines)/Ir.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?gm(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=BP(i.viewport)),o.viewport||(o.viewport=BP([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 _=i.positions.x,A=i.positions.y;d=o.count=Math.max(_.length,A.length),f=new Float64Array(d*2);for(let b=0;b<d;b++)f[b*2]=_[b],f[b*2+1]=A[b]}else f=ile(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let v=o.bounds=rle(f,2);if(o.fill){let _=[],A={},b=0;for(let w=0,S=0,E=o.count;w<E;w++){let R=f[w*2],M=f[w*2+1];isNaN(R)||isNaN(M)||R==null||M==null?(R=f[b*2],M=f[b*2+1],A[w]=b):b=w,_[S++]=R,_[S++]=M}if(i.splitNull){o.count-1 in A||(A[o.count]=o.count-1);let w=Object.keys(A).map(Number).sort((M,D)=>M-D),S=[],E=0,R=o.hole!=null?o.hole[0]:null;if(R!=null){let M=lle(w,D=>D>=R);w=w.slice(0,M),w.push(R)}for(let M=0;M<w.length;M++){let D=_.slice(E*2,w[M]*2).concat(R?_.slice(R*2):[]),z=(o.hole||[]).map(L=>L-R+(w[M]-E)),N=LP(D,z);N=N.map(L=>L+E+(L+E<w[M]?0:R-w[M])),S.push(...N),E=w[M]+1}for(let M=0,D=S.length;M<D;M++)A[S[M]]!=null&&(S[M]=A[S[M]]);o.triangles=S}else{let w=LP(_,o.hole||[]);for(let S=0,E=w.length;S<E;S++)A[w[S]]!=null&&(w[S]=A[w[S]]);o.triangles=w}}let h=new Float64Array(f);ale(h,2,v);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 u=ole(g);o.positionBuffer(u);var s=w_(g,u);o.positionFractBuffer(s)}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],v=f[3]-f[1],h=o.range[2]-o.range[0],g=o.range[3]-o.range[1];o.scale=[d/h,v/g],o.translate=[-o.range[0]/h+f[0]/h||0,-o.range[1]/g+f[1]/g||0],o.scaleFract=w_(o.scale),o.translateFract=w_(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*Ir.dashMult);let v=0,h=255;for(let g=0;g<2;g++)for(let _=0;_<i.dashes.length;++_){for(let A=0,b=i.dashes[_]*Ir.dashMult*.5;A<b;++A)d[v++]=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 v=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let h=gm(d,"uint8");for(let g=0;g<f+1;g++)v.set(h,g*4)}else{for(let h=0;h<f;h++){let g=gm(d[h],"uint8");v.set(g,h*4)}v.set(gm(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:v})}}}),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};Ir.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const sle=lv,fle=x1,cle=WB,dle=qu,$P=as,zP=sv,{float32:ple,fract32:x_}=Nu.exports;var Lde=hle;const UP=[[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 hle(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,u,s,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)}),u=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:UP}),_(t),n=e({vert:`
|
|
1115
|
+
precision highp float;
|
|
1116
|
+
|
|
1117
|
+
attribute vec2 position, positionFract;
|
|
1118
|
+
attribute vec4 error;
|
|
1119
|
+
attribute vec4 color;
|
|
1120
|
+
|
|
1121
|
+
attribute vec2 direction, lineOffset, capOffset;
|
|
1122
|
+
|
|
1123
|
+
uniform vec4 viewport;
|
|
1124
|
+
uniform float lineWidth, capSize;
|
|
1125
|
+
uniform vec2 scale, scaleFract, translate, translateFract;
|
|
1126
|
+
|
|
1127
|
+
varying vec4 fragColor;
|
|
1128
|
+
|
|
1129
|
+
void main() {
|
|
1130
|
+
fragColor = color / 255.;
|
|
1131
|
+
|
|
1132
|
+
vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
|
|
1133
|
+
|
|
1134
|
+
vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
|
|
1135
|
+
|
|
1136
|
+
vec2 position = position + dxy;
|
|
1137
|
+
|
|
1138
|
+
vec2 pos = (position + translate) * scale
|
|
1139
|
+
+ (positionFract + translateFract) * scale
|
|
1140
|
+
+ (position + translate) * scaleFract
|
|
1141
|
+
+ (positionFract + translateFract) * scaleFract;
|
|
1142
|
+
|
|
1143
|
+
pos += pixelOffset / viewport.zw;
|
|
1144
|
+
|
|
1145
|
+
gl_Position = vec4(pos * 2. - 1., 0, 1);
|
|
1146
|
+
}
|
|
1147
|
+
`,frag:`
|
|
1148
|
+
precision highp float;
|
|
1149
|
+
|
|
1150
|
+
varying vec4 fragColor;
|
|
1151
|
+
|
|
1152
|
+
uniform float opacity;
|
|
1153
|
+
|
|
1154
|
+
void main() {
|
|
1155
|
+
gl_FragColor = fragColor;
|
|
1156
|
+
gl_FragColor.a *= opacity;
|
|
1157
|
+
}
|
|
1158
|
+
`,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,w)=>[w.viewport.x,w.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(b,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(b,w)=>w.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:UP.length}),$P(v,{update:_,draw:h,destroy:A,regl:e,gl:r,canvas:r.canvas,groups:d}),v;function v(b){b?_(b):b===null&&A(),h()}function h(b){if(typeof b=="number")return g(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),d.forEach((w,S)=>{if(!!w){if(b&&(b[S]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}g(S)}})}function g(b){typeof b=="number"&&(b=d[b]),b!=null&&(!(b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1)||(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b)))}function _(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let w=0,S=0;if(v.groups=d=b.map((M,D)=>{let z=d[D];if(M)typeof M=="function"?M={after:M}:typeof M[0]=="number"&&(M={positions:M});else return z;return M=dle(M,{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},M=$P({},f,M)),cle(z,M,[{lineWidth:N=>+N*.5,capSize:N=>+N*.5,opacity:parseFloat,errors:N=>(N=zP(N),S+=N.length,N),positions:(N,L)=>(N=zP(N,"float64"),L.count=Math.floor(N.length/2),L.bounds=sle(N,2),L.offset=w,w+=L.count,N)},{color:(N,L)=>{let ee=L.count;if(N||(N="transparent"),!Array.isArray(N)||typeof N[0]=="number"){let pe=N;N=Array(ee);for(let we=0;we<ee;we++)N[we]=pe}if(N.length<ee)throw Error("Not enough colors");let ue=new Uint8Array(ee*4);for(let pe=0;pe<ee;pe++){let we=fle(N[pe],"uint8");ue.set(we,pe*4)}return ue},range:(N,L,ee)=>{let ue=L.bounds;return N||(N=ue),L.scale=[1/(N[2]-N[0]),1/(N[3]-N[1])],L.translate=[-N[0],-N[1]],L.scaleFract=x_(L.scale),L.translateFract=x_(L.translate),N},viewport:N=>{let L;return Array.isArray(N)?L={x:N[0],y:N[1],width:N[2]-N[0],height:N[3]-N[1]}:N?(L={x:N.x||N.left||0,y:N.y||N.top||0},N.right?L.width=N.right-L.x:L.width=N.w||N.width||0,N.bottom?L.height=N.bottom-L.y:L.height=N.h||N.height||0):L={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},L}}]),z}),w||S){let M=d.reduce((L,ee,ue)=>L+(ee?ee.count:0),0),D=new Float64Array(M*2),z=new Uint8Array(M*4),N=new Float32Array(M*4);d.forEach((L,ee)=>{if(!L)return;let{positions:ue,count:pe,offset:we,color:Ee,errors:Je}=L;!pe||(z.set(Ee,we*4),N.set(Je,we*4),D.set(ue,we*2))});var E=ple(D);i(E);var R=x_(D,E);a(R),o(z),u(N)}}function A(){i.destroy(),a.destroy(),o.destroy(),u.destroy(),s.destroy()}}var jP=/[\'\"]/,vle=function(t){return t?(jP.test(t.charAt(0))&&(t=t.substr(1)),jP.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const e6=["inherit","initial","unset"],t6=["caption","icon","menu","message-box","small-caption","status-bar"],r6=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],n6=["normal","italic","oblique"],i6=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function a6(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),d=[];function v(h,g,_){var A=r.push(h.slice(s[0].length,-s[1].length))-1;return d.push(A),i+A+i}r.forEach(function(h,g){for(var _,A=0;h!=_;)if(_=h,h=h.replace(f,v),A++>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"),s[0]+"$1"+s[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function u(s,f,d){for(var v=[],h,g=0;h=o.exec(s);){if(g++>1e4)throw Error("Circular references in parenthesis");v.push(s.slice(0,h.index)),v.push(u(f[h[1]],f)),s=s.slice(h.index+h[0].length)}return v.push(s),v}return a?r:u(r[0],r)}function o6(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,u)}return n}return e.reduce(function s(f,d){return Array.isArray(d)&&(d=d.reduce(s,"")),f+d},"");function u(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function MC(e,t){return Array.isArray(e)?o6(e,t):a6(e,t)}MC.parse=a6;MC.stringify=o6;var gle=MC,WP=gle,mle=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(v){return v.length===1&&(v=v+v),v}));var i=WP.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var u=[],s=0;s<o.length;s++){var f=o[s],d=o[s+1];f[f.length-1]==="\\"&&f[f.length-2]!=="\\"?(u.push(f+r+d),s++):u.push(f)}o=u}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=WP.stringify(i,{flat:!0});return o};const yle=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var ble=yle,u6={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||ble.indexOf(t)!==-1}},wle=vle,xle=e6,_le=t6,Sle=r6,Ele=n6,Ale=i6,__=mle,Cle=u6.isSize,Tle=l6,gp=l6.cache={};function l6(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(gp[e])return gp[e];if(e==="")throw new Error("Cannot parse an empty string.");if(_le.indexOf(e)!==-1)return gp[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=__(e,/\s+/),n;n=r.shift();){if(xle.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),gp[e]=t;if(Ele.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(Ale.indexOf(n)!==-1){t.stretch=n;continue}if(Sle.indexOf(n)!==-1){t.weight=n;continue}if(Cle(n)){var i=__(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=GP(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=GP(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=__(r.join(" "),/\s*,\s*/).map(wle),gp[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function GP(e){var t=parseFloat(e);return t.toString()===e?t:e}var Rle=qu,Ole=u6.isSize,Ile=fv(e6),Ple=fv(t6),kle=fv(r6),Mle=fv(n6),Dle=fv(i6),Fle={normal:1,"small-caps":1},Nle={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},S_={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},s6=function(t){if(t=Rle(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&&mp(t.system,Ple),t.system;if(mp(t.style,Mle),mp(t.variant,Fle),mp(t.weight,kle),mp(t.stretch,Dle),t.size==null&&(t.size=S_.size),typeof t.size=="number"&&(t.size+="px"),!Ole)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=S_.family),Array.isArray(t.family)&&(t.family.length||(t.family=[S_.family]),t.family=t.family.map(function(n){return Nle[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 mp(e,t){if(e&&!t[e]&&!Ile[e])throw Error("Unknown keyword `"+e+"`");return e}function fv(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var Lle={parse:Tle,stringify:s6},f6={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(_r,function(){var r=function(F,V){for(var J=Object.keys(V),Pe=0;Pe<J.length;++Pe)F[J[Pe]]=V[J[Pe]];return F},n=0,i=0,a=5,o=6;function u(F,V){this.id=n++,this.type=F,this.data=V}function s(F){return F.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function f(F){if(F.length===0)return[];var V=F.charAt(0),J=F.charAt(F.length-1);if(F.length>1&&V===J&&(V==='"'||V==="'"))return['"'+s(F.substr(1,F.length-2))+'"'];var Pe=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(F);if(Pe)return f(F.substr(0,Pe.index)).concat(f(Pe[1])).concat(f(F.substr(Pe.index+Pe[0].length)));var Le=F.split(".");if(Le.length===1)return['"'+s(F)+'"'];for(var Te=[],Oe=0;Oe<Le.length;++Oe)Te=Te.concat(f(Le[Oe]));return Te}function d(F){return"["+f(F).join("][")+"]"}function v(F,V){return new u(F,d(V+""))}function h(F){return typeof F=="function"&&!F._reglType||F instanceof u}function g(F,V){if(typeof F=="function")return new u(i,F);if(typeof F=="number"||typeof F=="boolean")return new u(a,F);if(Array.isArray(F))return new u(o,F.map(function(J,Pe){return g(J)}));if(F instanceof u)return F}var _={DynamicVariable:u,define:v,isDynamic:h,unbox:g,accessor:d},A={next:typeof requestAnimationFrame=="function"?function(F){return requestAnimationFrame(F)}:function(F){return setTimeout(F,16)},cancel:typeof cancelAnimationFrame=="function"?function(F){return cancelAnimationFrame(F)}:clearTimeout},b=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var F={"":0},V=[""];return{id:function(J){var Pe=F[J];return Pe||(Pe=F[J]=V.length,V.push(J),Pe)},str:function(J){return V[J]}}}function S(F,V,J){var Pe=document.createElement("canvas");r(Pe.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),F.appendChild(Pe),F===document.body&&(Pe.style.position="absolute",r(F.style,{margin:0,padding:0}));function Le(){var tt=window.innerWidth,rt=window.innerHeight;if(F!==document.body){var ot=Pe.getBoundingClientRect();tt=ot.right-ot.left,rt=ot.bottom-ot.top}Pe.width=J*tt,Pe.height=J*rt}var Te;F!==document.body&&typeof ResizeObserver=="function"?(Te=new ResizeObserver(function(){setTimeout(Le)}),Te.observe(F)):window.addEventListener("resize",Le,!1);function Oe(){Te?Te.disconnect():window.removeEventListener("resize",Le),F.removeChild(Pe)}return Le(),{canvas:Pe,onDestroy:Oe}}function E(F,V){function J(Pe){try{return F.getContext(Pe,V)}catch{return null}}return J("webgl")||J("experimental-webgl")||J("webgl-experimental")}function R(F){return typeof F.nodeName=="string"&&typeof F.appendChild=="function"&&typeof F.getBoundingClientRect=="function"}function M(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 N(F){var V=F||{},J,Pe,Le,Te,Oe={},tt=[],rt=[],ot=typeof window>"u"?1:window.devicePixelRatio,ht=!1,Ft={},Ct=function(ve){},ft=function(){};if(typeof V=="string"?J=document.querySelector(V):typeof V=="object"&&(R(V)?J=V:M(V)?(Te=V,Le=Te.canvas):("gl"in V?Te=V.gl:"canvas"in V?Le=z(V.canvas):"container"in V&&(Pe=z(V.container)),"attributes"in V&&(Oe=V.attributes),"extensions"in V&&(tt=D(V.extensions)),"optionalExtensions"in V&&(rt=D(V.optionalExtensions)),"onDone"in V&&(Ct=V.onDone),"profile"in V&&(ht=!!V.profile),"pixelRatio"in V&&(ot=+V.pixelRatio),"cachedCode"in V&&(Ft=V.cachedCode))),J&&(J.nodeName.toLowerCase()==="canvas"?Le=J:Pe=J),!Te){if(!Le){var Qe=S(Pe||document.body,Ct,ot);if(!Qe)return null;Le=Qe.canvas,ft=Qe.onDestroy}Oe.premultipliedAlpha===void 0&&(Oe.premultipliedAlpha=!0),Te=E(Le,Oe)}return Te?{gl:Te,canvas:Le,container:Pe,extensions:tt,optionalExtensions:rt,pixelRatio:ot,profile:ht,cachedCode:Ft,onDone:Ct,onDestroy:ft}:(ft(),Ct("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function L(F,V){var J={};function Pe(Oe){var tt=Oe.toLowerCase(),rt;try{rt=J[tt]=F.getExtension(tt)}catch{}return!!rt}for(var Le=0;Le<V.extensions.length;++Le){var Te=V.extensions[Le];if(!Pe(Te))return V.onDestroy(),V.onDone('"'+Te+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return V.optionalExtensions.forEach(Pe),{extensions:J,restore:function(){Object.keys(J).forEach(function(Oe){if(J[Oe]&&!Pe(Oe))throw new Error("(regl): error restoring extension "+Oe)})}}}function ee(F,V){for(var J=Array(F),Pe=0;Pe<F;++Pe)J[Pe]=V(Pe);return J}var ue=5120,pe=5121,we=5122,Ee=5123,Je=5124,je=5125,me=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,J;return V=(F>65535)<<4,F>>>=V,J=(F>255)<<3,F>>>=J,V|=J,J=(F>15)<<2,F>>>=J,V|=J,J=(F>3)<<1,F>>>=J,V|=J,V|F>>1}function Ue(){var F=ee(8,function(){return[]});function V(Te){var Oe=Fe(Te),tt=F[qe(Oe)>>2];return tt.length>0?tt.pop():new ArrayBuffer(Oe)}function J(Te){F[qe(Te.byteLength)>>2].push(Te)}function Pe(Te,Oe){var tt=null;switch(Te){case ue:tt=new Int8Array(V(Oe),0,Oe);break;case pe:tt=new Uint8Array(V(Oe),0,Oe);break;case we:tt=new Int16Array(V(2*Oe),0,Oe);break;case Ee:tt=new Uint16Array(V(2*Oe),0,Oe);break;case Je:tt=new Int32Array(V(4*Oe),0,Oe);break;case je:tt=new Uint32Array(V(4*Oe),0,Oe);break;case me:tt=new Float32Array(V(4*Oe),0,Oe);break;default:return null}return tt.length!==Oe?tt.subarray(0,Oe):tt}function Le(Te){J(Te.buffer)}return{alloc:V,free:J,allocType:Pe,freeType:Le}}var be=Ue();be.zero=Ue();var ye=3408,Ke=3410,We=3411,Ze=3412,st=3413,Rt=3414,kt=3415,Ae=33901,nt=33902,mt=3379,_e=3386,j=34921,te=36347,I=36348,C=35661,P=35660,U=34930,le=36349,Ne=34076,ze=34024,qt=7936,Qt=7937,nr=7938,gr=35724,Sr=34047,rn=36063,ga=34852,Hn=3553,Tn=34067,ma=34069,Yi=33984,Vu=6408,ws=5126,xs=5121,_s=36160,N1=36053,Ga=36064,L1=16384,Ss=function(F,V){var J=1;V.ext_texture_filter_anisotropic&&(J=F.getParameter(Sr));var Pe=1,Le=1;V.webgl_draw_buffers&&(Pe=F.getParameter(ga),Le=F.getParameter(rn));var Te=!!V.oes_texture_float;if(Te){var Oe=F.createTexture();F.bindTexture(Hn,Oe),F.texImage2D(Hn,0,Vu,1,1,0,Vu,ws,null);var tt=F.createFramebuffer();if(F.bindFramebuffer(_s,tt),F.framebufferTexture2D(_s,Ga,Hn,Oe,0),F.bindTexture(Hn,null),F.checkFramebufferStatus(_s)!==N1)Te=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(L1);var rt=be.allocType(ws,4);F.readPixels(0,0,1,1,Vu,ws,rt),F.getError()?Te=!1:(F.deleteFramebuffer(tt),F.deleteTexture(Oe),Te=rt[0]===1),be.freeType(rt)}}var ot=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ht=!0;if(!ot){var Ft=F.createTexture(),Ct=be.allocType(xs,36);F.activeTexture(Yi),F.bindTexture(Tn,Ft),F.texImage2D(ma,0,Vu,3,3,0,Vu,xs,Ct),be.freeType(Ct),F.bindTexture(Tn,null),F.deleteTexture(Ft),ht=!F.getError()}return{colorBits:[F.getParameter(Ke),F.getParameter(We),F.getParameter(Ze),F.getParameter(st)],depthBits:F.getParameter(Rt),stencilBits:F.getParameter(kt),subpixelBits:F.getParameter(ye),extensions:Object.keys(V).filter(function(ft){return!!V[ft]}),maxAnisotropic:J,maxDrawbuffers:Pe,maxColorAttachments:Le,pointSizeDims:F.getParameter(Ae),lineWidthDims:F.getParameter(nt),maxViewportDims:F.getParameter(_e),maxCombinedTextureUnits:F.getParameter(C),maxCubeMapSize:F.getParameter(Ne),maxRenderbufferSize:F.getParameter(ze),maxTextureUnits:F.getParameter(U),maxTextureSize:F.getParameter(mt),maxAttributes:F.getParameter(j),maxVertexUniforms:F.getParameter(te),maxVertexTextureUnits:F.getParameter(P),maxVaryingVectors:F.getParameter(I),maxFragmentUniforms:F.getParameter(le),glsl:F.getParameter(gr),renderer:F.getParameter(Qt),vendor:F.getParameter(qt),version:F.getParameter(nr),readFloat:Te,npotTextureCube:ht}},ln=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 pi(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)||ln(F.data))}var Vn=function(F){return Object.keys(F).map(function(V){return F[V]})},fr={shape:vv,flatten:Oi};function pv(F,V,J){for(var Pe=0;Pe<V;++Pe)J[Pe]=F[Pe]}function Xi(F,V,J,Pe){for(var Le=0,Te=0;Te<V;++Te)for(var Oe=F[Te],tt=0;tt<J;++tt)Pe[Le++]=Oe[tt]}function Po(F,V,J,Pe,Le,Te){for(var Oe=Te,tt=0;tt<V;++tt)for(var rt=F[tt],ot=0;ot<J;++ot)for(var ht=rt[ot],Ft=0;Ft<Pe;++Ft)Le[Oe++]=ht[Ft]}function hv(F,V,J,Pe,Le){for(var Te=1,Oe=J+1;Oe<V.length;++Oe)Te*=V[Oe];var tt=V[J];if(V.length-J===4){var rt=V[J+1],ot=V[J+2],ht=V[J+3];for(Oe=0;Oe<tt;++Oe)Po(F[Oe],rt,ot,ht,Pe,Le),Le+=Te}else for(Oe=0;Oe<tt;++Oe)hv(F[Oe],V,J+1,Pe,Le),Le+=Te}function Oi(F,V,J,Pe){var Le=1;if(V.length)for(var Te=0;Te<V.length;++Te)Le*=V[Te];else Le=0;var Oe=Pe||be.allocType(J,Le);switch(V.length){case 0:break;case 1:pv(F,V[0],Oe);break;case 2:Xi(F,V[0],V[1],Oe);break;case 3:Po(F,V[0],V[1],V[2],Oe,0);break;default:hv(F,V,0,Oe,0)}return Oe}function vv(F){for(var V=[],J=F;J.length;J=J[0])V.push(J.length);return V}var Yu={"[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},B1=5120,gv=5122,$1=5124,mv=5121,z1=5123,Xu=5125,Mc=5126,yv=5126,Ku={int8:B1,int16:gv,int32:$1,uint8:mv,uint16:z1,uint32:Xu,float:Mc,float32:yv},Es=35048,Dc=35040,ya={dynamic:Es,stream:Dc,static:35044},ti=fr.flatten,As=fr.shape,Cs=35044,hi=35040,Qu=5121,Zu=5126,nn=[];nn[5120]=1,nn[5122]=2,nn[5124]=4,nn[5121]=1,nn[5123]=2,nn[5125]=4,nn[5126]=4;function qa(F){return Yu[Object.prototype.toString.call(F)]|0}function Fc(F,V){for(var J=0;J<V.length;++J)F[J]=V[J]}function Nc(F,V,J,Pe,Le,Te,Oe){for(var tt=0,rt=0;rt<J;++rt)for(var ot=0;ot<Pe;++ot)F[tt++]=V[Le*rt+Te*ot+Oe]}function bv(F,V,J,Pe){var Le=0,Te={};function Oe(ve){this.id=Le++,this.buffer=F.createBuffer(),this.type=ve,this.usage=Cs,this.byteLength=0,this.dimension=1,this.dtype=Qu,this.persistentData=null,J.profile&&(this.stats={size:0})}Oe.prototype.bind=function(){F.bindBuffer(this.type,this.buffer)},Oe.prototype.destroy=function(){Ct(this)};var tt=[];function rt(ve,Me){var et=tt.pop();return et||(et=new Oe(ve)),et.bind(),Ft(et,Me,hi,0,1,!1),et}function ot(ve){tt.push(ve)}function ht(ve,Me,et){ve.byteLength=Me.byteLength,F.bufferData(ve.type,Me,et)}function Ft(ve,Me,et,it,Ge,yt){var dt;if(ve.usage=et,Array.isArray(Me)){if(ve.dtype=it||Zu,Me.length>0){var Nt;if(Array.isArray(Me[0])){dt=As(Me);for(var He=1,Be=1;Be<dt.length;++Be)He*=dt[Be];ve.dimension=He,Nt=ti(Me,dt,ve.dtype),ht(ve,Nt,et),yt?ve.persistentData=Nt:be.freeType(Nt)}else if(typeof Me[0]=="number"){ve.dimension=Ge;var xt=be.allocType(ve.dtype,Me.length);Fc(xt,Me),ht(ve,xt,et),yt?ve.persistentData=xt:be.freeType(xt)}else ln(Me[0])&&(ve.dimension=Me[0].length,ve.dtype=it||qa(Me[0])||Zu,Nt=ti(Me,[Me.length,Me[0].length],ve.dtype),ht(ve,Nt,et),yt?ve.persistentData=Nt:be.freeType(Nt))}}else if(ln(Me))ve.dtype=it||qa(Me),ve.dimension=Ge,ht(ve,Me,et),yt&&(ve.persistentData=new Uint8Array(new Uint8Array(Me.buffer)));else if(pi(Me)){dt=Me.shape;var ke=Me.stride,vt=Me.offset,at=0,Lt=0,ur=0,St=0;dt.length===1?(at=dt[0],Lt=1,ur=ke[0],St=0):dt.length===2&&(at=dt[0],Lt=dt[1],ur=ke[0],St=ke[1]),ve.dtype=it||qa(Me.data)||Zu,ve.dimension=Lt;var Gt=be.allocType(ve.dtype,at*Lt);Nc(Gt,Me.data,at,Lt,ur,St,vt),ht(ve,Gt,et),yt?ve.persistentData=Gt:be.freeType(Gt)}else Me instanceof ArrayBuffer&&(ve.dtype=Qu,ve.dimension=Ge,ht(ve,Me,et),yt&&(ve.persistentData=new Uint8Array(new Uint8Array(Me))))}function Ct(ve){V.bufferCount--,Pe(ve);var Me=ve.buffer;F.deleteBuffer(Me),ve.buffer=null,delete Te[ve.id]}function ft(ve,Me,et,it){V.bufferCount++;var Ge=new Oe(Me);Te[Ge.id]=Ge;function yt(He){var Be=Cs,xt=null,ke=0,vt=0,at=1;return Array.isArray(He)||ln(He)||pi(He)||He instanceof ArrayBuffer?xt=He:typeof He=="number"?ke=He|0:He&&("data"in He&&(xt=He.data),"usage"in He&&(Be=ya[He.usage]),"type"in He&&(vt=Ku[He.type]),"dimension"in He&&(at=He.dimension|0),"length"in He&&(ke=He.length|0)),Ge.bind(),xt?Ft(Ge,xt,Be,vt,at,it):(ke&&F.bufferData(Ge.type,ke,Be),Ge.dtype=vt||Qu,Ge.usage=Be,Ge.dimension=at,Ge.byteLength=ke),J.profile&&(Ge.stats.size=Ge.byteLength*nn[Ge.dtype]),yt}function dt(He,Be){F.bufferSubData(Ge.type,Be,He)}function Nt(He,Be){var xt=(Be||0)|0,ke;if(Ge.bind(),ln(He)||He instanceof ArrayBuffer)dt(He,xt);else if(Array.isArray(He)){if(He.length>0){if(typeof He[0]=="number"){var vt=be.allocType(Ge.dtype,He.length);Fc(vt,He),dt(vt,xt),be.freeType(vt)}else if(Array.isArray(He[0])||ln(He[0])){ke=As(He);var at=ti(He,ke,Ge.dtype);dt(at,xt),be.freeType(at)}}}else if(pi(He)){ke=He.shape;var Lt=He.stride,ur=0,St=0,Gt=0,pt=0;ke.length===1?(ur=ke[0],St=1,Gt=Lt[0],pt=0):ke.length===2&&(ur=ke[0],St=ke[1],Gt=Lt[0],pt=Lt[1]);var lr=Array.isArray(He.data)?Ge.dtype:qa(He.data),pr=be.allocType(lr,ur*St);Nc(pr,He.data,ur,St,Gt,pt,He.offset),dt(pr,xt),be.freeType(pr)}return yt}return et||yt(ve),yt._reglType="buffer",yt._buffer=Ge,yt.subdata=Nt,J.profile&&(yt.stats=Ge.stats),yt.destroy=function(){Ct(Ge)},yt}function Qe(){Vn(Te).forEach(function(ve){ve.buffer=F.createBuffer(),F.bindBuffer(ve.type,ve.buffer),F.bufferData(ve.type,ve.persistentData||ve.byteLength,ve.usage)})}return J.profile&&(V.getTotalBufferSize=function(){var ve=0;return Object.keys(Te).forEach(function(Me){ve+=Te[Me].stats.size}),ve}),{create:ft,createStream:rt,destroyStream:ot,clear:function(){Vn(Te).forEach(Ct),tt.forEach(Ct)},getBuffer:function(ve){return ve&&ve._buffer instanceof Oe?ve._buffer:null},restore:Qe,_initBuffer:Ft}}var Lc=0,wv=0,xv=1,Bc=1,$c=4,zc=4,sn={points:Lc,point:wv,lines:xv,line:Bc,triangles:$c,triangle:zc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},_v=0,Ts=1,ba=4,ko=5120,Ha=5121,Uc=5122,Va=5123,Rs=5124,wa=5125,Mo=34963,Er=35040,jc=35044;function Os(F,V,J,Pe){var Le={},Te=0,Oe={uint8:Ha,uint16:Va};V.oes_element_index_uint&&(Oe.uint32=wa);function tt(Qe){this.id=Te++,Le[this.id]=this,this.buffer=Qe,this.primType=ba,this.vertCount=0,this.type=0}tt.prototype.bind=function(){this.buffer.bind()};var rt=[];function ot(Qe){var ve=rt.pop();return ve||(ve=new tt(J.create(null,Mo,!0,!1)._buffer)),Ft(ve,Qe,Er,-1,-1,0,0),ve}function ht(Qe){rt.push(Qe)}function Ft(Qe,ve,Me,et,it,Ge,yt){Qe.buffer.bind();var dt;if(ve){var Nt=yt;!yt&&(!ln(ve)||pi(ve)&&!ln(ve.data))&&(Nt=V.oes_element_index_uint?wa:Va),J._initBuffer(Qe.buffer,ve,Me,Nt,3)}else F.bufferData(Mo,Ge,Me),Qe.buffer.dtype=dt||Ha,Qe.buffer.usage=Me,Qe.buffer.dimension=3,Qe.buffer.byteLength=Ge;if(dt=yt,!yt){switch(Qe.buffer.dtype){case Ha:case ko:dt=Ha;break;case Va:case Uc:dt=Va;break;case wa:case Rs:dt=wa;break}Qe.buffer.dtype=dt}Qe.type=dt;var He=it;He<0&&(He=Qe.buffer.byteLength,dt===Va?He>>=1:dt===wa&&(He>>=2)),Qe.vertCount=He;var Be=et;if(et<0){Be=ba;var xt=Qe.buffer.dimension;xt===1&&(Be=_v),xt===2&&(Be=Ts),xt===3&&(Be=ba)}Qe.primType=Be}function Ct(Qe){Pe.elementsCount--,delete Le[Qe.id],Qe.buffer.destroy(),Qe.buffer=null}function ft(Qe,ve){var Me=J.create(null,Mo,!0),et=new tt(Me._buffer);Pe.elementsCount++;function it(Ge){if(!Ge)Me(),et.primType=ba,et.vertCount=0,et.type=Ha;else if(typeof Ge=="number")Me(Ge),et.primType=ba,et.vertCount=Ge|0,et.type=Ha;else{var yt=null,dt=jc,Nt=-1,He=-1,Be=0,xt=0;Array.isArray(Ge)||ln(Ge)||pi(Ge)?yt=Ge:("data"in Ge&&(yt=Ge.data),"usage"in Ge&&(dt=ya[Ge.usage]),"primitive"in Ge&&(Nt=sn[Ge.primitive]),"count"in Ge&&(He=Ge.count|0),"type"in Ge&&(xt=Oe[Ge.type]),"length"in Ge?Be=Ge.length|0:(Be=He,xt===Va||xt===Uc?Be*=2:(xt===wa||xt===Rs)&&(Be*=4))),Ft(et,yt,dt,Nt,He,Be,xt)}return it}return it(Qe),it._reglType="elements",it._elements=et,it.subdata=function(Ge,yt){return Me.subdata(Ge,yt),it},it.destroy=function(){Ct(et)},it}return{create:ft,createStream:ot,destroyStream:ht,getElements:function(Qe){return typeof Qe=="function"&&Qe._elements instanceof tt?Qe._elements:null},clear:function(){Vn(Le).forEach(Ct)}}}var Sv=new Float32Array(1),U1=new Uint32Array(Sv.buffer),Is=5123;function Ju(F){for(var V=be.allocType(Is,F.length),J=0;J<F.length;++J)if(isNaN(F[J]))V[J]=65535;else if(F[J]===1/0)V[J]=31744;else if(F[J]===-1/0)V[J]=64512;else{Sv[0]=F[J];var Pe=U1[0],Le=Pe>>>31<<15,Te=(Pe<<1>>>24)-127,Oe=Pe>>13&(1<<10)-1;if(Te<-24)V[J]=Le;else if(Te<-14){var tt=-14-Te;V[J]=Le+(Oe+(1<<10)>>tt)}else Te>15?V[J]=Le+31744:V[J]=Le+(Te+15<<10)+Oe}return V}function vi(F){return Array.isArray(F)||ln(F)}var Ps=34467,gi=3553,Do=34067,Fo=34069,xa=6408,ks=6406,Ki=6407,Qi=6409,el=6410,Ev=32854,No=32855,Ms=36194,Wc=32819,Av=32820,Lo=33635,Ya=34042,_a=6402,tl=34041,rl=35904,Xa=35906,Ka=36193,Gc=33776,Ds=33777,nl=33778,qc=33779,Cv=35986,Hc=35987,Tv=34798,Vc=35840,Rv=35841,Yc=35842,Ov=35843,Qa=36196,mi=5121,Xc=5123,Kc=5125,il=5126,Iv=10242,al=10243,j1=10497,Bo=33071,Fs=33648,Qc=10240,Ns=10241,Za=9728,ol=9729,Ls=9984,Bs=9985,Pv=9986,$o=9987,W1=33170,$s=4352,G1=4353,kv=4354,ul=34046,q1=3317,Zc=37440,Mv=37441,Zi=37443,Jc=37444,Ja=33984,ed=[Ls,Pv,Bs,$o],Ii=[0,Qi,el,Ki,xa],Bn={};Bn[Qi]=Bn[ks]=Bn[_a]=1,Bn[tl]=Bn[el]=2,Bn[Ki]=Bn[rl]=3,Bn[xa]=Bn[Xa]=4;function eo(F){return"[object "+F+"]"}var Dv=eo("HTMLCanvasElement"),Fv=eo("OffscreenCanvas"),Nv=eo("CanvasRenderingContext2D"),td=eo("ImageBitmap"),rd=eo("HTMLImageElement"),Lv=eo("HTMLVideoElement"),H1=Object.keys(Yu).concat([Dv,Fv,Nv,td,rd,Lv]),zo=[];zo[mi]=1,zo[il]=4,zo[Ka]=2,zo[Xc]=2,zo[Kc]=4;var an=[];an[Ev]=2,an[No]=2,an[Ms]=2,an[tl]=4,an[Gc]=.5,an[Ds]=.5,an[nl]=1,an[qc]=1,an[Cv]=.5,an[Hc]=1,an[Tv]=1,an[Vc]=.5,an[Rv]=.25,an[Yc]=.5,an[Ov]=.25,an[Qa]=.5;function Bv(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function $v(F){if(!Array.isArray(F))return!1;var V=F.length;return!(V===0||!vi(F[0]))}function to(F){return Object.prototype.toString.call(F)}function zv(F){return to(F)===Dv}function Uv(F){return to(F)===Fv}function V1(F){return to(F)===Nv}function Y1(F){return to(F)===td}function X1(F){return to(F)===rd}function K1(F){return to(F)===Lv}function zs(F){if(!F)return!1;var V=to(F);return H1.indexOf(V)>=0?!0:Bv(F)||$v(F)||pi(F)}function nd(F){return Yu[Object.prototype.toString.call(F)]|0}function jv(F,V){var J=V.length;switch(F.type){case mi:case Xc:case Kc:case il:var Pe=be.allocType(F.type,J);Pe.set(V),F.data=Pe;break;case Ka:F.data=Ju(V);break}}function id(F,V){return be.allocType(F.type===Ka?il:F.type,V)}function Wv(F,V){F.type===Ka?(F.data=Ju(V),be.freeType(V)):F.data=V}function Q1(F,V,J,Pe,Le,Te){for(var Oe=F.width,tt=F.height,rt=F.channels,ot=Oe*tt*rt,ht=id(F,ot),Ft=0,Ct=0;Ct<tt;++Ct)for(var ft=0;ft<Oe;++ft)for(var Qe=0;Qe<rt;++Qe)ht[Ft++]=V[J*ft+Pe*Ct+Le*Qe+Te];Wv(F,ht)}function Ji(F,V,J,Pe,Le,Te){var Oe;if(typeof an[F]<"u"?Oe=an[F]:Oe=Bn[F]*zo[V],Te&&(Oe*=6),Le){for(var tt=0,rt=J;rt>=1;)tt+=Oe*rt*rt,rt/=2;return tt}else return Oe*J*Pe}function Z1(F,V,J,Pe,Le,Te,Oe){var tt={"don't care":$s,"dont care":$s,nice:kv,fast:G1},rt={repeat:j1,clamp:Bo,mirror:Fs},ot={nearest:Za,linear:ol},ht=r({mipmap:$o,"nearest mipmap nearest":Ls,"linear mipmap nearest":Bs,"nearest mipmap linear":Pv,"linear mipmap linear":$o},ot),Ft={none:0,browser:Jc},Ct={uint8:mi,rgba4:Wc,rgb565:Lo,"rgb5 a1":Av},ft={alpha:ks,luminance:Qi,"luminance alpha":el,rgb:Ki,rgba:xa,rgba4:Ev,"rgb5 a1":No,rgb565:Ms},Qe={};V.ext_srgb&&(ft.srgb=rl,ft.srgba=Xa),V.oes_texture_float&&(Ct.float32=Ct.float=il),V.oes_texture_half_float&&(Ct.float16=Ct["half float"]=Ka),V.webgl_depth_texture&&(r(ft,{depth:_a,"depth stencil":tl}),r(Ct,{uint16:Xc,uint32:Kc,"depth stencil":Ya})),V.webgl_compressed_texture_s3tc&&r(Qe,{"rgb s3tc dxt1":Gc,"rgba s3tc dxt1":Ds,"rgba s3tc dxt3":nl,"rgba s3tc dxt5":qc}),V.webgl_compressed_texture_atc&&r(Qe,{"rgb atc":Cv,"rgba atc explicit alpha":Hc,"rgba atc interpolated alpha":Tv}),V.webgl_compressed_texture_pvrtc&&r(Qe,{"rgb pvrtc 4bppv1":Vc,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Yc,"rgba pvrtc 2bppv1":Ov}),V.webgl_compressed_texture_etc1&&(Qe["rgb etc1"]=Qa);var ve=Array.prototype.slice.call(F.getParameter(Ps));Object.keys(Qe).forEach(function(X){var Re=Qe[X];ve.indexOf(Re)>=0&&(ft[X]=Re)});var Me=Object.keys(ft);J.textureFormats=Me;var et=[];Object.keys(ft).forEach(function(X){var Re=ft[X];et[Re]=X});var it=[];Object.keys(Ct).forEach(function(X){var Re=Ct[X];it[Re]=X});var Ge=[];Object.keys(ot).forEach(function(X){var Re=ot[X];Ge[Re]=X});var yt=[];Object.keys(ht).forEach(function(X){var Re=ht[X];yt[Re]=X});var dt=[];Object.keys(rt).forEach(function(X){var Re=rt[X];dt[Re]=X});var Nt=Me.reduce(function(X,Re){var Ce=ft[Re];return Ce===Qi||Ce===ks||Ce===Qi||Ce===el||Ce===_a||Ce===tl||V.ext_srgb&&(Ce===rl||Ce===Xa)?X[Ce]=Ce:Ce===No||Re.indexOf("rgba")>=0?X[Ce]=xa:X[Ce]=Ki,X},{});function He(){this.internalformat=xa,this.format=xa,this.type=mi,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Jc,this.width=0,this.height=0,this.channels=0}function Be(X,Re){X.internalformat=Re.internalformat,X.format=Re.format,X.type=Re.type,X.compressed=Re.compressed,X.premultiplyAlpha=Re.premultiplyAlpha,X.flipY=Re.flipY,X.unpackAlignment=Re.unpackAlignment,X.colorSpace=Re.colorSpace,X.width=Re.width,X.height=Re.height,X.channels=Re.channels}function xt(X,Re){if(!(typeof Re!="object"||!Re)){if("premultiplyAlpha"in Re&&(X.premultiplyAlpha=Re.premultiplyAlpha),"flipY"in Re&&(X.flipY=Re.flipY),"alignment"in Re&&(X.unpackAlignment=Re.alignment),"colorSpace"in Re&&(X.colorSpace=Ft[Re.colorSpace]),"type"in Re){var Ce=Re.type;X.type=Ct[Ce]}var Ot=X.width,sr=X.height,Br=X.channels,It=!1;"shape"in Re?(Ot=Re.shape[0],sr=Re.shape[1],Re.shape.length===3&&(Br=Re.shape[2],It=!0)):("radius"in Re&&(Ot=sr=Re.radius),"width"in Re&&(Ot=Re.width),"height"in Re&&(sr=Re.height),"channels"in Re&&(Br=Re.channels,It=!0)),X.width=Ot|0,X.height=sr|0,X.channels=Br|0;var q=!1;if("format"in Re){var Y=Re.format,ne=X.internalformat=ft[Y];X.format=Nt[ne],Y in Ct&&("type"in Re||(X.type=Ct[Y])),Y in Qe&&(X.compressed=!0),q=!0}!It&&q?X.channels=Bn[X.format]:It&&!q&&X.channels!==Ii[X.format]&&(X.format=X.internalformat=Ii[X.channels])}}function ke(X){F.pixelStorei(Zc,X.flipY),F.pixelStorei(Mv,X.premultiplyAlpha),F.pixelStorei(Zi,X.colorSpace),F.pixelStorei(q1,X.unpackAlignment)}function vt(){He.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function at(X,Re){var Ce=null;if(zs(Re)?Ce=Re:Re&&(xt(X,Re),"x"in Re&&(X.xOffset=Re.x|0),"y"in Re&&(X.yOffset=Re.y|0),zs(Re.data)&&(Ce=Re.data)),Re.copy){var Ot=Le.viewportWidth,sr=Le.viewportHeight;X.width=X.width||Ot-X.xOffset,X.height=X.height||sr-X.yOffset,X.needsCopy=!0}else if(!Ce)X.width=X.width||1,X.height=X.height||1,X.channels=X.channels||4;else if(ln(Ce))X.channels=X.channels||4,X.data=Ce,!("type"in Re)&&X.type===mi&&(X.type=nd(Ce));else if(Bv(Ce))X.channels=X.channels||4,jv(X,Ce),X.alignment=1,X.needsFree=!0;else if(pi(Ce)){var Br=Ce.data;!Array.isArray(Br)&&X.type===mi&&(X.type=nd(Br));var It=Ce.shape,q=Ce.stride,Y,ne,Ie,xe,ge,he;It.length===3?(Ie=It[2],he=q[2]):(Ie=1,he=1),Y=It[0],ne=It[1],xe=q[0],ge=q[1],X.alignment=1,X.width=Y,X.height=ne,X.channels=Ie,X.format=X.internalformat=Ii[Ie],X.needsFree=!0,Q1(X,Br,xe,ge,he,Ce.offset)}else if(zv(Ce)||Uv(Ce)||V1(Ce))zv(Ce)||Uv(Ce)?X.element=Ce:X.element=Ce.canvas,X.width=X.element.width,X.height=X.element.height,X.channels=4;else if(Y1(Ce))X.element=Ce,X.width=Ce.width,X.height=Ce.height,X.channels=4;else if(X1(Ce))X.element=Ce,X.width=Ce.naturalWidth,X.height=Ce.naturalHeight,X.channels=4;else if(K1(Ce))X.element=Ce,X.width=Ce.videoWidth,X.height=Ce.videoHeight,X.channels=4;else if($v(Ce)){var de=X.width||Ce[0].length,Z=X.height||Ce.length,ae=X.channels;vi(Ce[0][0])?ae=ae||Ce[0][0].length:ae=ae||1;for(var Q=fr.shape(Ce),Se=1,De=0;De<Q.length;++De)Se*=Q[De];var Ve=id(X,Se);fr.flatten(Ce,Q,"",Ve),Wv(X,Ve),X.alignment=1,X.width=de,X.height=Z,X.channels=ae,X.format=X.internalformat=Ii[ae],X.needsFree=!0}X.type===il||X.type}function Lt(X,Re,Ce){var Ot=X.element,sr=X.data,Br=X.internalformat,It=X.format,q=X.type,Y=X.width,ne=X.height;ke(X),Ot?F.texImage2D(Re,Ce,It,It,q,Ot):X.compressed?F.compressedTexImage2D(Re,Ce,Br,Y,ne,0,sr):X.needsCopy?(Pe(),F.copyTexImage2D(Re,Ce,It,X.xOffset,X.yOffset,Y,ne,0)):F.texImage2D(Re,Ce,It,Y,ne,0,It,q,sr||null)}function ur(X,Re,Ce,Ot,sr){var Br=X.element,It=X.data,q=X.internalformat,Y=X.format,ne=X.type,Ie=X.width,xe=X.height;ke(X),Br?F.texSubImage2D(Re,sr,Ce,Ot,Y,ne,Br):X.compressed?F.compressedTexSubImage2D(Re,sr,Ce,Ot,q,Ie,xe,It):X.needsCopy?(Pe(),F.copyTexSubImage2D(Re,sr,Ce,Ot,X.xOffset,X.yOffset,Ie,xe)):F.texSubImage2D(Re,sr,Ce,Ot,Ie,xe,Y,ne,It)}var St=[];function Gt(){return St.pop()||new vt}function pt(X){X.needsFree&&be.freeType(X.data),vt.call(X),St.push(X)}function lr(){He.call(this),this.genMipmaps=!1,this.mipmapHint=$s,this.mipmask=0,this.images=Array(16)}function pr(X,Re,Ce){var Ot=X.images[0]=Gt();X.mipmask=1,Ot.width=X.width=Re,Ot.height=X.height=Ce,Ot.channels=X.channels=4}function mr(X,Re){var Ce=null;if(zs(Re))Ce=X.images[0]=Gt(),Be(Ce,X),at(Ce,Re),X.mipmask=1;else if(xt(X,Re),Array.isArray(Re.mipmap))for(var Ot=Re.mipmap,sr=0;sr<Ot.length;++sr)Ce=X.images[sr]=Gt(),Be(Ce,X),Ce.width>>=sr,Ce.height>>=sr,at(Ce,Ot[sr]),X.mipmask|=1<<sr;else Ce=X.images[0]=Gt(),Be(Ce,X),at(Ce,Re),X.mipmask=1;Be(X,X.images[0]),X.compressed&&(X.internalformat===Gc||X.internalformat===Ds||X.internalformat===nl||X.internalformat)}function dn(X,Re){for(var Ce=X.images,Ot=0;Ot<Ce.length;++Ot){if(!Ce[Ot])return;Lt(Ce[Ot],Re,Ot)}}var hr=[];function ni(){var X=hr.pop()||new lr;He.call(X),X.mipmask=0;for(var Re=0;Re<16;++Re)X.images[Re]=null;return X}function Mr(X){for(var Re=X.images,Ce=0;Ce<Re.length;++Ce)Re[Ce]&&pt(Re[Ce]),Re[Ce]=null;hr.push(X)}function On(){this.minFilter=Za,this.magFilter=Za,this.wrapS=Bo,this.wrapT=Bo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=$s}function ii(X,Re){if("min"in Re){var Ce=Re.min;X.minFilter=ht[Ce],ed.indexOf(X.minFilter)>=0&&!("faces"in Re)&&(X.genMipmaps=!0)}if("mag"in Re){var Ot=Re.mag;X.magFilter=ot[Ot]}var sr=X.wrapS,Br=X.wrapT;if("wrap"in Re){var It=Re.wrap;typeof It=="string"?sr=Br=rt[It]:Array.isArray(It)&&(sr=rt[It[0]],Br=rt[It[1]])}else{if("wrapS"in Re){var q=Re.wrapS;sr=rt[q]}if("wrapT"in Re){var Y=Re.wrapT;Br=rt[Y]}}if(X.wrapS=sr,X.wrapT=Br,"anisotropic"in Re&&(Re.anisotropic,X.anisotropic=Re.anisotropic),"mipmap"in Re){var ne=!1;switch(typeof Re.mipmap){case"string":X.mipmapHint=tt[Re.mipmap],X.genMipmaps=!0,ne=!0;break;case"boolean":ne=X.genMipmaps=Re.mipmap;break;case"object":X.genMipmaps=!1,ne=!0;break}ne&&!("min"in Re)&&(X.minFilter=Ls)}}function zn(X,Re){F.texParameteri(Re,Ns,X.minFilter),F.texParameteri(Re,Qc,X.magFilter),F.texParameteri(Re,Iv,X.wrapS),F.texParameteri(Re,al,X.wrapT),V.ext_texture_filter_anisotropic&&F.texParameteri(Re,ul,X.anisotropic),X.genMipmaps&&(F.hint(W1,X.mipmapHint),F.generateMipmap(Re))}var na=0,pn={},hn=J.maxTextureUnits,er=Array(hn).map(function(){return null});function xi(X){He.call(this),this.mipmask=0,this.internalformat=xa,this.id=na++,this.refCount=1,this.target=X,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new On,Oe.profile&&(this.stats={size:0})}function Or(X){F.activeTexture(Ja),F.bindTexture(X.target,X.texture)}function vn(){var X=er[0];X?F.bindTexture(X.target,X.texture):F.bindTexture(gi,null)}function Yn(X){var Re=X.texture,Ce=X.unit,Ot=X.target;Ce>=0&&(F.activeTexture(Ja+Ce),F.bindTexture(Ot,null),er[Ce]=null),F.deleteTexture(Re),X.texture=null,X.params=null,X.pixels=null,X.refCount=0,delete pn[X.id],Te.textureCount--}r(xi.prototype,{bind:function(){var X=this;X.bindCount+=1;var Re=X.unit;if(Re<0){for(var Ce=0;Ce<hn;++Ce){var Ot=er[Ce];if(Ot){if(Ot.bindCount>0)continue;Ot.unit=-1}er[Ce]=X,Re=Ce;break}Oe.profile&&Te.maxTextureUnits<Re+1&&(Te.maxTextureUnits=Re+1),X.unit=Re,F.activeTexture(Ja+Re),F.bindTexture(X.target,X.texture)}return Re},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Yn(this)}});function Xn(X,Re){var Ce=new xi(gi);pn[Ce.id]=Ce,Te.textureCount++;function Ot(It,q){var Y=Ce.texInfo;On.call(Y);var ne=ni();return typeof It=="number"?typeof q=="number"?pr(ne,It|0,q|0):pr(ne,It|0,It|0):It?(ii(Y,It),mr(ne,It)):pr(ne,1,1),Y.genMipmaps&&(ne.mipmask=(ne.width<<1)-1),Ce.mipmask=ne.mipmask,Be(Ce,ne),Ce.internalformat=ne.internalformat,Ot.width=ne.width,Ot.height=ne.height,Or(Ce),dn(ne,gi),zn(Y,gi),vn(),Mr(ne),Oe.profile&&(Ce.stats.size=Ji(Ce.internalformat,Ce.type,ne.width,ne.height,Y.genMipmaps,!1)),Ot.format=et[Ce.internalformat],Ot.type=it[Ce.type],Ot.mag=Ge[Y.magFilter],Ot.min=yt[Y.minFilter],Ot.wrapS=dt[Y.wrapS],Ot.wrapT=dt[Y.wrapT],Ot}function sr(It,q,Y,ne){var Ie=q|0,xe=Y|0,ge=ne|0,he=Gt();return Be(he,Ce),he.width=0,he.height=0,at(he,It),he.width=he.width||(Ce.width>>ge)-Ie,he.height=he.height||(Ce.height>>ge)-xe,Or(Ce),ur(he,gi,Ie,xe,ge),vn(),pt(he),Ot}function Br(It,q){var Y=It|0,ne=q|0||Y;if(Y===Ce.width&&ne===Ce.height)return Ot;Ot.width=Ce.width=Y,Ot.height=Ce.height=ne,Or(Ce);for(var Ie=0;Ce.mipmask>>Ie;++Ie){var xe=Y>>Ie,ge=ne>>Ie;if(!xe||!ge)break;F.texImage2D(gi,Ie,Ce.format,xe,ge,0,Ce.format,Ce.type,null)}return vn(),Oe.profile&&(Ce.stats.size=Ji(Ce.internalformat,Ce.type,Y,ne,!1,!1)),Ot}return Ot(X,Re),Ot.subimage=sr,Ot.resize=Br,Ot._reglType="texture2d",Ot._texture=Ce,Oe.profile&&(Ot.stats=Ce.stats),Ot.destroy=function(){Ce.decRef()},Ot}function ar(X,Re,Ce,Ot,sr,Br){var It=new xi(Do);pn[It.id]=It,Te.cubeCount++;var q=new Array(6);function Y(xe,ge,he,de,Z,ae){var Q,Se=It.texInfo;for(On.call(Se),Q=0;Q<6;++Q)q[Q]=ni();if(typeof xe=="number"||!xe){var De=xe|0||1;for(Q=0;Q<6;++Q)pr(q[Q],De,De)}else if(typeof xe=="object")if(ge)mr(q[0],xe),mr(q[1],ge),mr(q[2],he),mr(q[3],de),mr(q[4],Z),mr(q[5],ae);else if(ii(Se,xe),xt(It,xe),"faces"in xe){var Ve=xe.faces;for(Q=0;Q<6;++Q)Be(q[Q],It),mr(q[Q],Ve[Q])}else for(Q=0;Q<6;++Q)mr(q[Q],xe);for(Be(It,q[0]),Se.genMipmaps?It.mipmask=(q[0].width<<1)-1:It.mipmask=q[0].mipmask,It.internalformat=q[0].internalformat,Y.width=q[0].width,Y.height=q[0].height,Or(It),Q=0;Q<6;++Q)dn(q[Q],Fo+Q);for(zn(Se,Do),vn(),Oe.profile&&(It.stats.size=Ji(It.internalformat,It.type,Y.width,Y.height,Se.genMipmaps,!0)),Y.format=et[It.internalformat],Y.type=it[It.type],Y.mag=Ge[Se.magFilter],Y.min=yt[Se.minFilter],Y.wrapS=dt[Se.wrapS],Y.wrapT=dt[Se.wrapT],Q=0;Q<6;++Q)Mr(q[Q]);return Y}function ne(xe,ge,he,de,Z){var ae=he|0,Q=de|0,Se=Z|0,De=Gt();return Be(De,It),De.width=0,De.height=0,at(De,ge),De.width=De.width||(It.width>>Se)-ae,De.height=De.height||(It.height>>Se)-Q,Or(It),ur(De,Fo+xe,ae,Q,Se),vn(),pt(De),Y}function Ie(xe){var ge=xe|0;if(ge!==It.width){Y.width=It.width=ge,Y.height=It.height=ge,Or(It);for(var he=0;he<6;++he)for(var de=0;It.mipmask>>de;++de)F.texImage2D(Fo+he,de,It.format,ge>>de,ge>>de,0,It.format,It.type,null);return vn(),Oe.profile&&(It.stats.size=Ji(It.internalformat,It.type,Y.width,Y.height,!1,!0)),Y}}return Y(X,Re,Ce,Ot,sr,Br),Y.subimage=ne,Y.resize=Ie,Y._reglType="textureCube",Y._texture=It,Oe.profile&&(Y.stats=It.stats),Y.destroy=function(){It.decRef()},Y}function vr(){for(var X=0;X<hn;++X)F.activeTexture(Ja+X),F.bindTexture(gi,null),er[X]=null;Vn(pn).forEach(Yn),Te.cubeCount=0,Te.textureCount=0}Oe.profile&&(Te.getTotalTextureSize=function(){var X=0;return Object.keys(pn).forEach(function(Re){X+=pn[Re].stats.size}),X});function Fr(){for(var X=0;X<hn;++X){var Re=er[X];Re&&(Re.bindCount=0,Re.unit=-1,er[X]=null)}Vn(pn).forEach(function(Ce){Ce.texture=F.createTexture(),F.bindTexture(Ce.target,Ce.texture);for(var Ot=0;Ot<32;++Ot)if((Ce.mipmask&1<<Ot)!==0)if(Ce.target===gi)F.texImage2D(gi,Ot,Ce.internalformat,Ce.width>>Ot,Ce.height>>Ot,0,Ce.internalformat,Ce.type,null);else for(var sr=0;sr<6;++sr)F.texImage2D(Fo+sr,Ot,Ce.internalformat,Ce.width>>Ot,Ce.height>>Ot,0,Ce.internalformat,Ce.type,null);zn(Ce.texInfo,Ce.target)})}function gn(){for(var X=0;X<hn;++X){var Re=er[X];Re&&(Re.bindCount=0,Re.unit=-1,er[X]=null),F.activeTexture(Ja+X),F.bindTexture(gi,null),F.bindTexture(Do,null)}}return{create2D:Xn,createCube:ar,clear:vr,getTexture:function(X){return null},restore:Fr,refresh:gn}}var Sa=36161,Us=32854,Gv=32855,ad=36194,qv=33189,Hv=36168,Vv=34041,od=35907,Yv=34836,Xv=34842,Kv=34843,yi=[];yi[Us]=2,yi[Gv]=2,yi[ad]=2,yi[qv]=2,yi[Hv]=1,yi[Vv]=4,yi[od]=4,yi[Yv]=16,yi[Xv]=8,yi[Kv]=6;function Qv(F,V,J){return yi[F]*V*J}var Zv=function(F,V,J,Pe,Le){var Te={rgba4:Us,rgb565:ad,"rgb5 a1":Gv,depth:qv,stencil:Hv,"depth stencil":Vv};V.ext_srgb&&(Te.srgba=od),V.ext_color_buffer_half_float&&(Te.rgba16f=Xv,Te.rgb16f=Kv),V.webgl_color_buffer_float&&(Te.rgba32f=Yv);var Oe=[];Object.keys(Te).forEach(function(ft){var Qe=Te[ft];Oe[Qe]=ft});var tt=0,rt={};function ot(ft){this.id=tt++,this.refCount=1,this.renderbuffer=ft,this.format=Us,this.width=0,this.height=0,Le.profile&&(this.stats={size:0})}ot.prototype.decRef=function(){--this.refCount<=0&&ht(this)};function ht(ft){var Qe=ft.renderbuffer;F.bindRenderbuffer(Sa,null),F.deleteRenderbuffer(Qe),ft.renderbuffer=null,ft.refCount=0,delete rt[ft.id],Pe.renderbufferCount--}function Ft(ft,Qe){var ve=new ot(F.createRenderbuffer());rt[ve.id]=ve,Pe.renderbufferCount++;function Me(it,Ge){var yt=0,dt=0,Nt=Us;if(typeof it=="object"&&it){var He=it;if("shape"in He){var Be=He.shape;yt=Be[0]|0,dt=Be[1]|0}else"radius"in He&&(yt=dt=He.radius|0),"width"in He&&(yt=He.width|0),"height"in He&&(dt=He.height|0);"format"in He&&(Nt=Te[He.format])}else typeof it=="number"?(yt=it|0,typeof Ge=="number"?dt=Ge|0:dt=yt):it||(yt=dt=1);if(!(yt===ve.width&&dt===ve.height&&Nt===ve.format))return Me.width=ve.width=yt,Me.height=ve.height=dt,ve.format=Nt,F.bindRenderbuffer(Sa,ve.renderbuffer),F.renderbufferStorage(Sa,Nt,yt,dt),Le.profile&&(ve.stats.size=Qv(ve.format,ve.width,ve.height)),Me.format=Oe[ve.format],Me}function et(it,Ge){var yt=it|0,dt=Ge|0||yt;return yt===ve.width&&dt===ve.height||(Me.width=ve.width=yt,Me.height=ve.height=dt,F.bindRenderbuffer(Sa,ve.renderbuffer),F.renderbufferStorage(Sa,ve.format,yt,dt),Le.profile&&(ve.stats.size=Qv(ve.format,ve.width,ve.height))),Me}return Me(ft,Qe),Me.resize=et,Me._reglType="renderbuffer",Me._renderbuffer=ve,Le.profile&&(Me.stats=ve.stats),Me.destroy=function(){ve.decRef()},Me}Le.profile&&(Pe.getTotalRenderbufferSize=function(){var ft=0;return Object.keys(rt).forEach(function(Qe){ft+=rt[Qe].stats.size}),ft});function Ct(){Vn(rt).forEach(function(ft){ft.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(Sa,ft.renderbuffer),F.renderbufferStorage(Sa,ft.format,ft.width,ft.height)}),F.bindRenderbuffer(Sa,null)}return{create:Ft,clear:function(){Vn(rt).forEach(ht)},restore:Ct}},ea=36160,ud=36161,Uo=3553,jo=34069,Wo=36064,bi=36096,Jv=36128,eg=33306,J1=36053,eb=36193,tg=5121,tb=5126,rb=6407,nb=6408,ld=[];ld[nb]=4,ld[rb]=3;var js=[];js[tg]=1,js[tb]=4,js[eb]=2;function sd(F,V,J,Pe,Le,Te){var Oe={cur:null,next:null,dirty:!1,setFBO:null},tt=["rgba"],rt=["rgba4","rgb565","rgb5 a1"];V.ext_srgb&&rt.push("srgba"),V.ext_color_buffer_half_float&&rt.push("rgba16f","rgb16f"),V.webgl_color_buffer_float&&rt.push("rgba32f"),V.oes_texture_half_float,V.oes_texture_float;function ot(ke,vt,at){this.target=ke,this.texture=vt,this.renderbuffer=at;var Lt=0,ur=0;vt?(Lt=vt.width,ur=vt.height):at&&(Lt=at.width,ur=at.height),this.width=Lt,this.height=ur}function ht(ke){ke&&(ke.texture&&ke.texture._texture.decRef(),ke.renderbuffer&&ke.renderbuffer._renderbuffer.decRef())}function Ft(ke,vt,at){if(!!ke)if(ke.texture){var Lt=ke.texture._texture;Math.max(1,Lt.width),Math.max(1,Lt.height),Lt.refCount+=1}else{var ur=ke.renderbuffer._renderbuffer;ur.refCount+=1}}function Ct(ke,vt){vt&&(vt.texture?F.framebufferTexture2D(ea,ke,vt.target,vt.texture._texture.texture,0):F.framebufferRenderbuffer(ea,ke,ud,vt.renderbuffer._renderbuffer.renderbuffer))}function ft(ke){var vt=Uo,at=null,Lt=null,ur=ke;typeof ke=="object"&&(ur=ke.data,"target"in ke&&(vt=ke.target|0));var St=ur._reglType;return St==="texture2d"||St==="textureCube"?at=ur:St==="renderbuffer"&&(Lt=ur,vt=ud),new ot(vt,at,Lt)}function Qe(ke,vt,at,Lt,ur){if(at){var St=Pe.create2D({width:ke,height:vt,format:Lt,type:ur});return St._texture.refCount=0,new ot(Uo,St,null)}else{var Gt=Le.create({width:ke,height:vt,format:Lt});return Gt._renderbuffer.refCount=0,new ot(ud,null,Gt)}}function ve(ke){return ke&&(ke.texture||ke.renderbuffer)}function Me(ke,vt,at){ke&&(ke.texture?ke.texture.resize(vt,at):ke.renderbuffer&&ke.renderbuffer.resize(vt,at),ke.width=vt,ke.height=at)}var et=0,it={};function Ge(){this.id=et++,it[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 yt(ke){ke.colorAttachments.forEach(ht),ht(ke.depthAttachment),ht(ke.stencilAttachment),ht(ke.depthStencilAttachment)}function dt(ke){var vt=ke.framebuffer;F.deleteFramebuffer(vt),ke.framebuffer=null,Te.framebufferCount--,delete it[ke.id]}function Nt(ke){var vt;F.bindFramebuffer(ea,ke.framebuffer);var at=ke.colorAttachments;for(vt=0;vt<at.length;++vt)Ct(Wo+vt,at[vt]);for(vt=at.length;vt<J.maxColorAttachments;++vt)F.framebufferTexture2D(ea,Wo+vt,Uo,null,0);F.framebufferTexture2D(ea,eg,Uo,null,0),F.framebufferTexture2D(ea,bi,Uo,null,0),F.framebufferTexture2D(ea,Jv,Uo,null,0),Ct(bi,ke.depthAttachment),Ct(Jv,ke.stencilAttachment),Ct(eg,ke.depthStencilAttachment);var Lt=F.checkFramebufferStatus(ea);F.isContextLost(),F.bindFramebuffer(ea,Oe.next?Oe.next.framebuffer:null),Oe.cur=Oe.next,F.getError()}function He(ke,vt){var at=new Ge;Te.framebufferCount++;function Lt(St,Gt){var pt,lr=0,pr=0,mr=!0,dn=!0,hr=null,ni=!0,Mr="rgba",On="uint8",ii=1,zn=null,na=null,pn=null,hn=!1;if(typeof St=="number")lr=St|0,pr=Gt|0||lr;else if(!St)lr=pr=1;else{var er=St;if("shape"in er){var xi=er.shape;lr=xi[0],pr=xi[1]}else"radius"in er&&(lr=pr=er.radius),"width"in er&&(lr=er.width),"height"in er&&(pr=er.height);("color"in er||"colors"in er)&&(hr=er.color||er.colors),hr||("colorCount"in er&&(ii=er.colorCount|0),"colorTexture"in er&&(ni=!!er.colorTexture,Mr="rgba4"),"colorType"in er&&(On=er.colorType,ni||(On==="half float"||On==="float16"?Mr="rgba16f":(On==="float"||On==="float32")&&(Mr="rgba32f"))),"colorFormat"in er&&(Mr=er.colorFormat,tt.indexOf(Mr)>=0?ni=!0:rt.indexOf(Mr)>=0&&(ni=!1))),("depthTexture"in er||"depthStencilTexture"in er)&&(hn=!!(er.depthTexture||er.depthStencilTexture)),"depth"in er&&(typeof er.depth=="boolean"?mr=er.depth:(zn=er.depth,dn=!1)),"stencil"in er&&(typeof er.stencil=="boolean"?dn=er.stencil:(na=er.stencil,mr=!1)),"depthStencil"in er&&(typeof er.depthStencil=="boolean"?mr=dn=er.depthStencil:(pn=er.depthStencil,mr=!1,dn=!1))}var Or=null,vn=null,Yn=null,Xn=null;if(Array.isArray(hr))Or=hr.map(ft);else if(hr)Or=[ft(hr)];else for(Or=new Array(ii),pt=0;pt<ii;++pt)Or[pt]=Qe(lr,pr,ni,Mr,On);for(lr=lr||Or[0].width,pr=pr||Or[0].height,zn?vn=ft(zn):mr&&!dn&&(vn=Qe(lr,pr,hn,"depth","uint32")),na?Yn=ft(na):dn&&!mr&&(Yn=Qe(lr,pr,!1,"stencil","uint8")),pn?Xn=ft(pn):!zn&&!na&&dn&&mr&&(Xn=Qe(lr,pr,hn,"depth stencil","depth stencil")),pt=0;pt<Or.length;++pt)Ft(Or[pt]),Or[pt]&&Or[pt].texture&&ld[Or[pt].texture._texture.format]*js[Or[pt].texture._texture.type];return Ft(vn),Ft(Yn),Ft(Xn),yt(at),at.width=lr,at.height=pr,at.colorAttachments=Or,at.depthAttachment=vn,at.stencilAttachment=Yn,at.depthStencilAttachment=Xn,Lt.color=Or.map(ve),Lt.depth=ve(vn),Lt.stencil=ve(Yn),Lt.depthStencil=ve(Xn),Lt.width=at.width,Lt.height=at.height,Nt(at),Lt}function ur(St,Gt){var pt=Math.max(St|0,1),lr=Math.max(Gt|0||pt,1);if(pt===at.width&&lr===at.height)return Lt;for(var pr=at.colorAttachments,mr=0;mr<pr.length;++mr)Me(pr[mr],pt,lr);return Me(at.depthAttachment,pt,lr),Me(at.stencilAttachment,pt,lr),Me(at.depthStencilAttachment,pt,lr),at.width=Lt.width=pt,at.height=Lt.height=lr,Nt(at),Lt}return Lt(ke,vt),r(Lt,{resize:ur,_reglType:"framebuffer",_framebuffer:at,destroy:function(){dt(at),yt(at)},use:function(St){Oe.setFBO({framebuffer:Lt},St)}})}function Be(ke){var vt=Array(6);function at(ur){var St,Gt={color:null},pt=0,lr=null,pr="rgba",mr="uint8",dn=1;if(typeof ur=="number")pt=ur|0;else if(!ur)pt=1;else{var hr=ur;if("shape"in hr){var ni=hr.shape;pt=ni[0]}else"radius"in hr&&(pt=hr.radius|0),"width"in hr?pt=hr.width|0:"height"in hr&&(pt=hr.height|0);("color"in hr||"colors"in hr)&&(lr=hr.color||hr.colors),lr||("colorCount"in hr&&(dn=hr.colorCount|0),"colorType"in hr&&(mr=hr.colorType),"colorFormat"in hr&&(pr=hr.colorFormat)),"depth"in hr&&(Gt.depth=hr.depth),"stencil"in hr&&(Gt.stencil=hr.stencil),"depthStencil"in hr&&(Gt.depthStencil=hr.depthStencil)}var Mr;if(lr)if(Array.isArray(lr))for(Mr=[],St=0;St<lr.length;++St)Mr[St]=lr[St];else Mr=[lr];else{Mr=Array(dn);var On={radius:pt,format:pr,type:mr};for(St=0;St<dn;++St)Mr[St]=Pe.createCube(On)}for(Gt.color=Array(Mr.length),St=0;St<Mr.length;++St){var ii=Mr[St];pt=pt||ii.width,Gt.color[St]={target:jo,data:Mr[St]}}for(St=0;St<6;++St){for(var zn=0;zn<Mr.length;++zn)Gt.color[zn].target=jo+St;St>0&&(Gt.depth=vt[0].depth,Gt.stencil=vt[0].stencil,Gt.depthStencil=vt[0].depthStencil),vt[St]?vt[St](Gt):vt[St]=He(Gt)}return r(at,{width:pt,height:pt,color:Mr})}function Lt(ur){var St,Gt=ur|0;if(Gt===at.width)return at;var pt=at.color;for(St=0;St<pt.length;++St)pt[St].resize(Gt);for(St=0;St<6;++St)vt[St].resize(Gt);return at.width=at.height=Gt,at}return at(ke),r(at,{faces:vt,resize:Lt,_reglType:"framebufferCube",destroy:function(){vt.forEach(function(ur){ur.destroy()})}})}function xt(){Oe.cur=null,Oe.next=null,Oe.dirty=!0,Vn(it).forEach(function(ke){ke.framebuffer=F.createFramebuffer(),Nt(ke)})}return r(Oe,{getFramebuffer:function(ke){if(typeof ke=="function"&&ke._reglType==="framebuffer"){var vt=ke._framebuffer;if(vt instanceof Ge)return vt}return null},create:He,createCube:Be,clear:function(){Vn(it).forEach(dt)},restore:xt})}var fd=5126,rg=34962,Ws=34963;function cd(){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=fd,this.offset=0,this.stride=0,this.divisor=0}function ib(F,V,J,Pe,Le,Te,Oe){for(var tt=J.maxAttributes,rt=new Array(tt),ot=0;ot<tt;++ot)rt[ot]=new cd;var ht=0,Ft={},Ct={Record:cd,scope:{},state:rt,currentVAO:null,targetVAO:null,restore:Qe()?dt:function(){},createVAO:Nt,getVAO:Me,destroyBuffer:ft,setVAO:Qe()?et:it,clear:Qe()?Ge:function(){}};function ft(He){for(var Be=0;Be<rt.length;++Be){var xt=rt[Be];xt.buffer===He&&(F.disableVertexAttribArray(Be),xt.buffer=null)}}function Qe(){return V.oes_vertex_array_object}function ve(){return V.angle_instanced_arrays}function Me(He){return typeof He=="function"&&He._vao?He._vao:null}function et(He){if(He!==Ct.currentVAO){var Be=Qe();He?Be.bindVertexArrayOES(He.vao):Be.bindVertexArrayOES(null),Ct.currentVAO=He}}function it(He){if(He!==Ct.currentVAO){if(He)He.bindAttrs();else{for(var Be=ve(),xt=0;xt<rt.length;++xt){var ke=rt[xt];ke.buffer?(F.enableVertexAttribArray(xt),ke.buffer.bind(),F.vertexAttribPointer(xt,ke.size,ke.type,ke.normalized,ke.stride,ke.offfset),Be&&ke.divisor&&Be.vertexAttribDivisorANGLE(xt,ke.divisor)):(F.disableVertexAttribArray(xt),F.vertexAttrib4f(xt,ke.x,ke.y,ke.z,ke.w))}Oe.elements?F.bindBuffer(Ws,Oe.elements.buffer.buffer):F.bindBuffer(Ws,null)}Ct.currentVAO=He}}function Ge(){Vn(Ft).forEach(function(He){He.destroy()})}function yt(){this.id=++ht,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var He=Qe();He?this.vao=He.createVertexArrayOES():this.vao=null,Ft[this.id]=this,this.buffers=[]}yt.prototype.bindAttrs=function(){for(var He=ve(),Be=this.attributes,xt=0;xt<Be.length;++xt){var ke=Be[xt];ke.buffer?(F.enableVertexAttribArray(xt),F.bindBuffer(rg,ke.buffer.buffer),F.vertexAttribPointer(xt,ke.size,ke.type,ke.normalized,ke.stride,ke.offset),He&&ke.divisor&&He.vertexAttribDivisorANGLE(xt,ke.divisor)):(F.disableVertexAttribArray(xt),F.vertexAttrib4f(xt,ke.x,ke.y,ke.z,ke.w))}for(var vt=Be.length;vt<tt;++vt)F.disableVertexAttribArray(vt);var at=Te.getElements(this.elements);at?F.bindBuffer(Ws,at.buffer.buffer):F.bindBuffer(Ws,null)},yt.prototype.refresh=function(){var He=Qe();He&&(He.bindVertexArrayOES(this.vao),this.bindAttrs(),Ct.currentVAO=null,He.bindVertexArrayOES(null))},yt.prototype.destroy=function(){if(this.vao){var He=Qe();this===Ct.currentVAO&&(Ct.currentVAO=null,He.bindVertexArrayOES(null)),He.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Ft[this.id]&&(delete Ft[this.id],Pe.vaoCount-=1)};function dt(){var He=Qe();He&&Vn(Ft).forEach(function(Be){Be.refresh()})}function Nt(He){var Be=new yt;Pe.vaoCount+=1;function xt(ke){var vt;if(Array.isArray(ke))vt=ke,Be.elements&&Be.ownsElements&&Be.elements.destroy(),Be.elements=null,Be.ownsElements=!1,Be.offset=0,Be.count=0,Be.instances=-1,Be.primitive=4;else{if(ke.elements){var at=ke.elements;Be.ownsElements?typeof at=="function"&&at._reglType==="elements"?(Be.elements.destroy(),Be.ownsElements=!1):(Be.elements(at),Be.ownsElements=!1):Te.getElements(ke.elements)?(Be.elements=ke.elements,Be.ownsElements=!1):(Be.elements=Te.create(ke.elements),Be.ownsElements=!0)}else Be.elements=null,Be.ownsElements=!1;vt=ke.attributes,Be.offset=0,Be.count=-1,Be.instances=-1,Be.primitive=4,Be.elements&&(Be.count=Be.elements._elements.vertCount,Be.primitive=Be.elements._elements.primType),"offset"in ke&&(Be.offset=ke.offset|0),"count"in ke&&(Be.count=ke.count|0),"instances"in ke&&(Be.instances=ke.instances|0),"primitive"in ke&&(Be.primitive=sn[ke.primitive])}var Lt={},ur=Be.attributes;ur.length=vt.length;for(var St=0;St<vt.length;++St){var Gt=vt[St],pt=ur[St]=new cd,lr=Gt.data||Gt;if(Array.isArray(lr)||ln(lr)||pi(lr)){var pr;Be.buffers[St]&&(pr=Be.buffers[St],ln(lr)&&pr._buffer.byteLength>=lr.byteLength?pr.subdata(lr):(pr.destroy(),Be.buffers[St]=null)),Be.buffers[St]||(pr=Be.buffers[St]=Le.create(Gt,rg,!1,!0)),pt.buffer=Le.getBuffer(pr),pt.size=pt.buffer.dimension|0,pt.normalized=!1,pt.type=pt.buffer.dtype,pt.offset=0,pt.stride=0,pt.divisor=0,pt.state=1,Lt[St]=1}else Le.getBuffer(Gt)?(pt.buffer=Le.getBuffer(Gt),pt.size=pt.buffer.dimension|0,pt.normalized=!1,pt.type=pt.buffer.dtype,pt.offset=0,pt.stride=0,pt.divisor=0,pt.state=1):Le.getBuffer(Gt.buffer)?(pt.buffer=Le.getBuffer(Gt.buffer),pt.size=(+Gt.size||pt.buffer.dimension)|0,pt.normalized=!!Gt.normalized||!1,"type"in Gt?pt.type=Ku[Gt.type]:pt.type=pt.buffer.dtype,pt.offset=(Gt.offset||0)|0,pt.stride=(Gt.stride||0)|0,pt.divisor=(Gt.divisor||0)|0,pt.state=1):"x"in Gt&&(pt.x=+Gt.x||0,pt.y=+Gt.y||0,pt.z=+Gt.z||0,pt.w=+Gt.w||0,pt.state=2)}for(var mr=0;mr<Be.buffers.length;++mr)!Lt[mr]&&Be.buffers[mr]&&(Be.buffers[mr].destroy(),Be.buffers[mr]=null);return Be.refresh(),xt}return xt.destroy=function(){for(var ke=0;ke<Be.buffers.length;++ke)Be.buffers[ke]&&Be.buffers[ke].destroy();Be.buffers.length=0,Be.ownsElements&&(Be.elements.destroy(),Be.elements=null,Be.ownsElements=!1),Be.destroy()},xt._vao=Be,xt._reglType="vao",xt(He)}return Ct}var dd=35632,ab=35633,ob=35718,pd=35721;function ng(F,V,J,Pe){var Le={},Te={};function Oe(ve,Me,et,it){this.name=ve,this.id=Me,this.location=et,this.info=it}function tt(ve,Me){for(var et=0;et<ve.length;++et)if(ve[et].id===Me.id){ve[et].location=Me.location;return}ve.push(Me)}function rt(ve,Me,et){var it=ve===dd?Le:Te,Ge=it[Me];if(!Ge){var yt=V.str(Me);Ge=F.createShader(ve),F.shaderSource(Ge,yt),F.compileShader(Ge),it[Me]=Ge}return Ge}var ot={},ht=[],Ft=0;function Ct(ve,Me){this.id=Ft++,this.fragId=ve,this.vertId=Me,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Pe.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function ft(ve,Me,et){var it,Ge,yt=rt(dd,ve.fragId),dt=rt(ab,ve.vertId),Nt=ve.program=F.createProgram();if(F.attachShader(Nt,yt),F.attachShader(Nt,dt),et)for(it=0;it<et.length;++it){var He=et[it];F.bindAttribLocation(Nt,He[0],He[1])}F.linkProgram(Nt);var Be=F.getProgramParameter(Nt,ob);Pe.profile&&(ve.stats.uniformsCount=Be);var xt=ve.uniforms;for(it=0;it<Be;++it)if(Ge=F.getActiveUniform(Nt,it),Ge)if(Ge.size>1)for(var ke=0;ke<Ge.size;++ke){var vt=Ge.name.replace("[0]","["+ke+"]");tt(xt,new Oe(vt,V.id(vt),F.getUniformLocation(Nt,vt),Ge))}else tt(xt,new Oe(Ge.name,V.id(Ge.name),F.getUniformLocation(Nt,Ge.name),Ge));var at=F.getProgramParameter(Nt,pd);Pe.profile&&(ve.stats.attributesCount=at);var Lt=ve.attributes;for(it=0;it<at;++it)Ge=F.getActiveAttrib(Nt,it),Ge&&tt(Lt,new Oe(Ge.name,V.id(Ge.name),F.getAttribLocation(Nt,Ge.name),Ge))}Pe.profile&&(J.getMaxUniformsCount=function(){var ve=0;return ht.forEach(function(Me){Me.stats.uniformsCount>ve&&(ve=Me.stats.uniformsCount)}),ve},J.getMaxAttributesCount=function(){var ve=0;return ht.forEach(function(Me){Me.stats.attributesCount>ve&&(ve=Me.stats.attributesCount)}),ve});function Qe(){Le={},Te={};for(var ve=0;ve<ht.length;++ve)ft(ht[ve],null,ht[ve].attributes.map(function(Me){return[Me.location,Me.name]}))}return{clear:function(){var ve=F.deleteShader.bind(F);Vn(Le).forEach(ve),Le={},Vn(Te).forEach(ve),Te={},ht.forEach(function(Me){F.deleteProgram(Me.program)}),ht.length=0,ot={},J.shaderCount=0},program:function(ve,Me,et,it){var Ge=ot[Me];Ge||(Ge=ot[Me]={});var yt=Ge[ve];if(yt&&(yt.refCount++,!it))return yt;var dt=new Ct(Me,ve);return J.shaderCount++,ft(dt,et,it),yt||(Ge[ve]=dt),ht.push(dt),r(dt,{destroy:function(){if(dt.refCount--,dt.refCount<=0){F.deleteProgram(dt.program);var Nt=ht.indexOf(dt);ht.splice(Nt,1),J.shaderCount--}Ge[dt.vertId].refCount<=0&&(F.deleteShader(Te[dt.vertId]),delete Te[dt.vertId],delete ot[dt.fragId][dt.vertId]),Object.keys(ot[dt.fragId]).length||(F.deleteShader(Le[dt.fragId]),delete Le[dt.fragId],delete ot[dt.fragId])}})},restore:Qe,shader:rt,frag:-1,vert:-1}}var ig=6408,hd=5121,ub=3333,lb=5126;function ag(F,V,J,Pe,Le,Te,Oe){function tt(ht){var Ft;V.next===null?Ft=hd:Ft=V.next.colorAttachments[0].texture._texture.type;var Ct=0,ft=0,Qe=Pe.framebufferWidth,ve=Pe.framebufferHeight,Me=null;ln(ht)?Me=ht:ht&&(Ct=ht.x|0,ft=ht.y|0,Qe=(ht.width||Pe.framebufferWidth-Ct)|0,ve=(ht.height||Pe.framebufferHeight-ft)|0,Me=ht.data||null),J();var et=Qe*ve*4;return Me||(Ft===hd?Me=new Uint8Array(et):Ft===lb&&(Me=Me||new Float32Array(et))),F.pixelStorei(ub,4),F.readPixels(Ct,ft,Qe,ve,ig,Ft,Me),Me}function rt(ht){var Ft;return V.setFBO({framebuffer:ht.framebuffer},function(){Ft=tt(ht)}),Ft}function ot(ht){return!ht||!("framebuffer"in ht)?tt(ht):rt(ht)}return ot}function og(F){return vd(ug(gd(F)))}function ug(F){return fb(db(sb(F),F.length*8))}function vd(F){for(var V="0123456789abcdef",J="",Pe,Le=0;Le<F.length;Le++)Pe=F.charCodeAt(Le),J+=V.charAt(Pe>>>4&15)+V.charAt(Pe&15);return J}function gd(F){for(var V="",J=-1,Pe,Le;++J<F.length;)Pe=F.charCodeAt(J),Le=J+1<F.length?F.charCodeAt(J+1):0,55296<=Pe&&Pe<=56319&&56320<=Le&&Le<=57343&&(Pe=65536+((Pe&1023)<<10)+(Le&1023),J++),Pe<=127?V+=String.fromCharCode(Pe):Pe<=2047?V+=String.fromCharCode(192|Pe>>>6&31,128|Pe&63):Pe<=65535?V+=String.fromCharCode(224|Pe>>>12&15,128|Pe>>>6&63,128|Pe&63):Pe<=2097151&&(V+=String.fromCharCode(240|Pe>>>18&7,128|Pe>>>12&63,128|Pe>>>6&63,128|Pe&63));return V}function sb(F){for(var V=Array(F.length>>2),J=0;J<V.length;J++)V[J]=0;for(var J=0;J<F.length*8;J+=8)V[J>>5]|=(F.charCodeAt(J/8)&255)<<24-J%32;return V}function fb(F){for(var V="",J=0;J<F.length*32;J+=8)V+=String.fromCharCode(F[J>>5]>>>24-J%32&255);return V}function Pi(F,V){return F>>>V|F<<32-V}function lg(F,V){return F>>>V}function cb(F,V,J){return F&V^~F&J}function sg(F,V,J){return F&V^F&J^V&J}function fg(F){return Pi(F,2)^Pi(F,13)^Pi(F,22)}function md(F){return Pi(F,6)^Pi(F,11)^Pi(F,25)}function cg(F){return Pi(F,7)^Pi(F,18)^lg(F,3)}function Gs(F){return Pi(F,17)^Pi(F,19)^lg(F,10)}var qs=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 db(F,V){var J=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Pe=new Array(64),Le,Te,Oe,tt,rt,ot,ht,Ft,Ct,ft,Qe,ve;for(F[V>>5]|=128<<24-V%32,F[(V+64>>9<<4)+15]=V,Ct=0;Ct<F.length;Ct+=16){for(Le=J[0],Te=J[1],Oe=J[2],tt=J[3],rt=J[4],ot=J[5],ht=J[6],Ft=J[7],ft=0;ft<64;ft++)ft<16?Pe[ft]=F[ft+Ct]:Pe[ft]=Xr(Xr(Xr(Gs(Pe[ft-2]),Pe[ft-7]),cg(Pe[ft-15])),Pe[ft-16]),Qe=Xr(Xr(Xr(Xr(Ft,md(rt)),cb(rt,ot,ht)),qs[ft]),Pe[ft]),ve=Xr(fg(Le),sg(Le,Te,Oe)),Ft=ht,ht=ot,ot=rt,rt=Xr(tt,Qe),tt=Oe,Oe=Te,Te=Le,Le=Xr(Qe,ve);J[0]=Xr(Le,J[0]),J[1]=Xr(Te,J[1]),J[2]=Xr(Oe,J[2]),J[3]=Xr(tt,J[3]),J[4]=Xr(rt,J[4]),J[5]=Xr(ot,J[5]),J[6]=Xr(ht,J[6]),J[7]=Xr(Ft,J[7])}return J}function Xr(F,V){var J=(F&65535)+(V&65535),Pe=(F>>16)+(V>>16)+(J>>16);return Pe<<16|J&65535}function ro(F){return Array.prototype.slice.call(F)}function Go(F){return ro(F).join("")}function pb(F){var V=F&&F.cache,J=0,Pe=[],Le=[],Te=[];function Oe(Qe,ve){var Me=ve&&ve.stable;if(!Me){for(var et=0;et<Le.length;++et)if(Le[et]===Qe&&!Te[et])return Pe[et]}var it="g"+J++;return Pe.push(it),Le.push(Qe),Te.push(Me),it}function tt(){var Qe=[];function ve(){Qe.push.apply(Qe,ro(arguments))}var Me=[];function et(){var it="v"+J++;return Me.push(it),arguments.length>0&&(Qe.push(it,"="),Qe.push.apply(Qe,ro(arguments)),Qe.push(";")),it}return r(ve,{def:et,toString:function(){return Go([Me.length>0?"var "+Me.join(",")+";":"",Go(Qe)])}})}function rt(){var Qe=tt(),ve=tt(),Me=Qe.toString,et=ve.toString;function it(Ge,yt){ve(Ge,yt,"=",Qe.def(Ge,yt),";")}return r(function(){Qe.apply(Qe,ro(arguments))},{def:Qe.def,entry:Qe,exit:ve,save:it,set:function(Ge,yt,dt){it(Ge,yt),Qe(Ge,yt,"=",dt,";")},toString:function(){return Me()+et()}})}function ot(){var Qe=Go(arguments),ve=rt(),Me=rt(),et=ve.toString,it=Me.toString;return r(ve,{then:function(){return ve.apply(ve,ro(arguments)),this},else:function(){return Me.apply(Me,ro(arguments)),this},toString:function(){var Ge=it();return Ge&&(Ge="else{"+Ge+"}"),Go(["if(",Qe,"){",et(),"}",Ge])}})}var ht=tt(),Ft={};function Ct(Qe,ve){var Me=[];function et(){var Nt="a"+Me.length;return Me.push(Nt),Nt}ve=ve||0;for(var it=0;it<ve;++it)et();var Ge=rt(),yt=Ge.toString,dt=Ft[Qe]=r(Ge,{arg:et,toString:function(){return Go(["function(",Me.join(),"){",yt(),"}"])}});return dt}function ft(){var Qe=['"use strict";',ht,"return {"];Object.keys(Ft).forEach(function(it){Qe.push('"',it,'":',Ft[it].toString(),",")}),Qe.push("}");var ve=Go(Qe).replace(/;/g,`;
|
|
1159
|
+
`).replace(/}/g,`}
|
|
1160
|
+
`).replace(/{/g,`{
|
|
1161
|
+
`),Me;if(V&&(Me=og(ve),V[Me]))return V[Me].apply(null,Le);var et=Function.apply(null,Pe.concat(ve));return V&&(V[Me]=et),et.apply(null,Le)}return{global:ht,link:Oe,block:tt,proc:Ct,scope:rt,cond:ot,compile:ft}}var no="xyzw".split(""),yd=5121,io=1,ll=2,sl=0,Hs=1,bd=2,Vs=3,ao=4,wd=5,dg=6,pg="dither",hg="blend.enable",vg="blend.color",Ys="blend.equation",Xs="blend.func",xd="depth.enable",_d="depth.func",gg="depth.range",fl="depth.mask",Sd="colorMask",mg="cull.enable",Ed="cull.face",Ks="frontFace",Ad="lineWidth",cl="polygonOffset.enable",qo="polygonOffset.offset",Cd="sample.alpha",Td="sample.enable",dl="sample.coverage",ri="stencil.enable",Rd="stencil.mask",Od="stencil.func",pl="stencil.opFront",oo="stencil.opBack",yg="scissor.enable",Qs="scissor.box",ta="viewport",uo="profile",Ea="framebuffer",hl="vert",Zs="frag",Ho="elements",Vo="primitive",fn="count",Js="offset",ef="instances",wi="vao",vl="Width",gl="Height",Yo=Ea+vl,Xo=Ea+gl,hb=ta+vl,bg=ta+gl,Id="drawingBuffer",Pd=Id+vl,kd=Id+gl,vb=[Xs,Ys,Od,pl,oo,dl,ta,Qs,qo],lo=34962,Md=34963,gb=2884,mb=3042,wg=3024,xg=2960,tf=2929,_g=3089,rf=32823,Sg=32926,ml=32928,Gr=5126,nf=35664,ra=35665,Ko=35666,af=5124,Dd=35667,yl=35668,Qo=35669,Fd=35670,Nd=35671,Ld=35672,Bd=35673,$d=35674,bl=35675,zd=35676,Ud=35678,l=35680,c=4,p=1028,m=1029,y=2304,x=2305,O=32775,T=32776,k=519,B=7680,$=0,W=1,G=32774,oe=513,se=36160,H=36064,K={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},re={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},ce={cw:y,ccw:x};function ie(F){return Array.isArray(F)||ln(F)||pi(F)}function $e(F){return F.sort(function(V,J){return V===ta?-1:J===ta?1:V<J?-1:1})}function Ye(F,V,J,Pe){this.thisDep=F,this.contextDep=V,this.propDep=J,this.append=Pe}function ut(F){return F&&!(F.thisDep||F.contextDep||F.propDep)}function Xe(F){return new Ye(!1,!1,!1,F)}function ct(F,V){var J=F.type;if(J===sl){var Pe=F.data.length;return new Ye(!0,Pe>=1,Pe>=2,V)}else if(J===ao){var Le=F.data;return new Ye(Le.thisDep,Le.contextDep,Le.propDep,V)}else{if(J===wd)return new Ye(!1,!1,!1,V);if(J===dg){for(var Te=!1,Oe=!1,tt=!1,rt=0;rt<F.data.length;++rt){var ot=F.data[rt];if(ot.type===Hs)tt=!0;else if(ot.type===bd)Oe=!0;else if(ot.type===Vs)Te=!0;else if(ot.type===sl){Te=!0;var ht=ot.data;ht>=1&&(Oe=!0),ht>=2&&(tt=!0)}else ot.type===ao&&(Te=Te||ot.data.thisDep,Oe=Oe||ot.data.contextDep,tt=tt||ot.data.propDep)}return new Ye(Te,Oe,tt,V)}else return new Ye(J===Vs,J===bd,J===Hs,V)}}var wt=new Ye(!1,!1,!1,function(){});function Yt(F,V,J,Pe,Le,Te,Oe,tt,rt,ot,ht,Ft,Ct,ft,Qe,ve){var Me=ot.Record,et={add:32774,subtract:32778,"reverse subtract":32779};J.ext_blend_minmax&&(et.min=O,et.max=T);var it=J.angle_instanced_arrays,Ge=J.webgl_draw_buffers,yt=J.oes_vertex_array_object,dt={dirty:!0,profile:ve.profile},Nt={},He=[],Be={},xt={};function ke(q){return q.replace(".","_")}function vt(q,Y,ne){var Ie=ke(q);He.push(q),Nt[Ie]=dt[Ie]=!!ne,Be[Ie]=Y}function at(q,Y,ne){var Ie=ke(q);He.push(q),Array.isArray(ne)?(dt[Ie]=ne.slice(),Nt[Ie]=ne.slice()):dt[Ie]=Nt[Ie]=ne,xt[Ie]=Y}function Lt(q){return!!isNaN(q)}vt(pg,wg),vt(hg,mb),at(vg,"blendColor",[0,0,0,0]),at(Ys,"blendEquationSeparate",[G,G]),at(Xs,"blendFuncSeparate",[W,$,W,$]),vt(xd,tf,!0),at(_d,"depthFunc",oe),at(gg,"depthRange",[0,1]),at(fl,"depthMask",!0),at(Sd,Sd,[!0,!0,!0,!0]),vt(mg,gb),at(Ed,"cullFace",m),at(Ks,Ks,x),at(Ad,Ad,1),vt(cl,rf),at(qo,"polygonOffset",[0,0]),vt(Cd,Sg),vt(Td,ml),at(dl,"sampleCoverage",[1,!1]),vt(ri,xg),at(Rd,"stencilMask",-1),at(Od,"stencilFunc",[k,0,-1]),at(pl,"stencilOpSeparate",[p,B,B,B]),at(oo,"stencilOpSeparate",[m,B,B,B]),vt(yg,_g),at(Qs,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),at(ta,ta,[0,0,F.drawingBufferWidth,F.drawingBufferHeight]);var ur={gl:F,context:Ct,strings:V,next:Nt,current:dt,draw:Ft,elements:Te,buffer:Le,shader:ht,attributes:ot.state,vao:ot,uniforms:rt,framebuffer:tt,extensions:J,timer:ft,isBufferArgs:ie},St={primTypes:sn,compareFuncs:re,blendFuncs:K,blendEquations:et,stencilOps:fe,glTypes:Ku,orientationType:ce};Ge&&(St.backBuffer=[m],St.drawBuffer=ee(Pe.maxDrawbuffers,function(q){return q===0?[0]:ee(q,function(Y){return H+Y})}));var Gt=0;function pt(){var q=pb({cache:Qe}),Y=q.link,ne=q.global;q.id=Gt++,q.batchId="0";var Ie=Y(ur),xe=q.shared={props:"a0"};Object.keys(ur).forEach(function(ae){xe[ae]=ne.def(Ie,".",ae)});var ge=q.next={},he=q.current={};Object.keys(xt).forEach(function(ae){Array.isArray(dt[ae])&&(ge[ae]=ne.def(xe.next,".",ae),he[ae]=ne.def(xe.current,".",ae))});var de=q.constants={};Object.keys(St).forEach(function(ae){de[ae]=ne.def(JSON.stringify(St[ae]))}),q.invoke=function(ae,Q){switch(Q.type){case sl:var Se=["this",xe.context,xe.props,q.batchId];return ae.def(Y(Q.data),".call(",Se.slice(0,Math.max(Q.data.length+1,4)),")");case Hs:return ae.def(xe.props,Q.data);case bd:return ae.def(xe.context,Q.data);case Vs:return ae.def("this",Q.data);case ao:return Q.data.append(q,ae),Q.data.ref;case wd:return Q.data.toString();case dg:return Q.data.map(function(De){return q.invoke(ae,De)})}},q.attribCache={};var Z={};return q.scopeAttrib=function(ae){var Q=V.id(ae);if(Q in Z)return Z[Q];var Se=ot.scope[Q];Se||(Se=ot.scope[Q]=new Me);var De=Z[Q]=Y(Se);return De},q}function lr(q){var Y=q.static,ne=q.dynamic,Ie;if(uo in Y){var xe=!!Y[uo];Ie=Xe(function(he,de){return xe}),Ie.enable=xe}else if(uo in ne){var ge=ne[uo];Ie=ct(ge,function(he,de){return he.invoke(de,ge)})}return Ie}function pr(q,Y){var ne=q.static,Ie=q.dynamic;if(Ea in ne){var xe=ne[Ea];return xe?(xe=tt.getFramebuffer(xe),Xe(function(he,de){var Z=he.link(xe),ae=he.shared;de.set(ae.framebuffer,".next",Z);var Q=ae.context;return de.set(Q,"."+Yo,Z+".width"),de.set(Q,"."+Xo,Z+".height"),Z})):Xe(function(he,de){var Z=he.shared;de.set(Z.framebuffer,".next","null");var ae=Z.context;return de.set(ae,"."+Yo,ae+"."+Pd),de.set(ae,"."+Xo,ae+"."+kd),"null"})}else if(Ea in Ie){var ge=Ie[Ea];return ct(ge,function(he,de){var Z=he.invoke(de,ge),ae=he.shared,Q=ae.framebuffer,Se=de.def(Q,".getFramebuffer(",Z,")");de.set(Q,".next",Se);var De=ae.context;return de.set(De,"."+Yo,Se+"?"+Se+".width:"+De+"."+Pd),de.set(De,"."+Xo,Se+"?"+Se+".height:"+De+"."+kd),Se})}else return null}function mr(q,Y,ne){var Ie=q.static,xe=q.dynamic;function ge(Z){if(Z in Ie){var ae=Ie[Z],Q=!0,Se=ae.x|0,De=ae.y|0,Ve,zt;return"width"in ae?Ve=ae.width|0:Q=!1,"height"in ae?zt=ae.height|0:Q=!1,new Ye(!Q&&Y&&Y.thisDep,!Q&&Y&&Y.contextDep,!Q&&Y&&Y.propDep,function(Bt,Tt){var jt=Bt.shared.context,At=Ve;"width"in ae||(At=Tt.def(jt,".",Yo,"-",Se));var Pt=zt;return"height"in ae||(Pt=Tt.def(jt,".",Xo,"-",De)),[Se,De,At,Pt]})}else if(Z in xe){var Dt=xe[Z],_t=ct(Dt,function(Bt,Tt){var jt=Bt.invoke(Tt,Dt),At=Bt.shared.context,Pt=Tt.def(jt,".x|0"),Mt=Tt.def(jt,".y|0"),Zt=Tt.def('"width" in ',jt,"?",jt,".width|0:","(",At,".",Yo,"-",Pt,")"),$r=Tt.def('"height" in ',jt,"?",jt,".height|0:","(",At,".",Xo,"-",Mt,")");return[Pt,Mt,Zt,$r]});return Y&&(_t.thisDep=_t.thisDep||Y.thisDep,_t.contextDep=_t.contextDep||Y.contextDep,_t.propDep=_t.propDep||Y.propDep),_t}else return Y?new Ye(Y.thisDep,Y.contextDep,Y.propDep,function(Bt,Tt){var jt=Bt.shared.context;return[0,0,Tt.def(jt,".",Yo),Tt.def(jt,".",Xo)]}):null}var he=ge(ta);if(he){var de=he;he=new Ye(he.thisDep,he.contextDep,he.propDep,function(Z,ae){var Q=de.append(Z,ae),Se=Z.shared.context;return ae.set(Se,"."+hb,Q[2]),ae.set(Se,"."+bg,Q[3]),Q})}return{viewport:he,scissor_box:ge(Qs)}}function dn(q,Y){var ne=q.static,Ie=typeof ne[Zs]=="string"&&typeof ne[hl]=="string";if(Ie){if(Object.keys(Y.dynamic).length>0)return null;var xe=Y.static,ge=Object.keys(xe);if(ge.length>0&&typeof xe[ge[0]]=="number"){for(var he=[],de=0;de<ge.length;++de)he.push([xe[ge[de]]|0,ge[de]]);return he}}return null}function hr(q,Y,ne){var Ie=q.static,xe=q.dynamic;function ge(Q){if(Q in Ie){var Se=V.id(Ie[Q]),De=Xe(function(){return Se});return De.id=Se,De}else if(Q in xe){var Ve=xe[Q];return ct(Ve,function(zt,Dt){var _t=zt.invoke(Dt,Ve),Bt=Dt.def(zt.shared.strings,".id(",_t,")");return Bt})}return null}var he=ge(Zs),de=ge(hl),Z=null,ae;return ut(he)&&ut(de)?(Z=ht.program(de.id,he.id,null,ne),ae=Xe(function(Q,Se){return Q.link(Z)})):ae=new Ye(he&&he.thisDep||de&&de.thisDep,he&&he.contextDep||de&&de.contextDep,he&&he.propDep||de&&de.propDep,function(Q,Se){var De=Q.shared.shader,Ve;he?Ve=he.append(Q,Se):Ve=Se.def(De,".",Zs);var zt;de?zt=de.append(Q,Se):zt=Se.def(De,".",hl);var Dt=De+".program("+zt+","+Ve;return Se.def(Dt+")")}),{frag:he,vert:de,progVar:ae,program:Z}}function ni(q,Y){var ne=q.static,Ie=q.dynamic,xe={},ge=!1;function he(){if(wi in ne){var Tt=ne[wi];return Tt!==null&&ot.getVAO(Tt)===null&&(Tt=ot.createVAO(Tt)),ge=!0,xe.vao=Tt,Xe(function(At){var Pt=ot.getVAO(Tt);return Pt?At.link(Pt):"null"})}else if(wi in Ie){ge=!0;var jt=Ie[wi];return ct(jt,function(At,Pt){var Mt=At.invoke(Pt,jt);return Pt.def(At.shared.vao+".getVAO("+Mt+")")})}return null}var de=he(),Z=!1;function ae(){if(Ho in ne){var Tt=ne[Ho];if(xe.elements=Tt,ie(Tt)){var jt=xe.elements=Te.create(Tt,!0);Tt=Te.getElements(jt),Z=!0}else Tt&&(Tt=Te.getElements(Tt),Z=!0);var At=Xe(function(Mt,Zt){if(Tt){var $r=Mt.link(Tt);return Mt.ELEMENTS=$r,$r}return Mt.ELEMENTS=null,null});return At.value=Tt,At}else if(Ho in Ie){Z=!0;var Pt=Ie[Ho];return ct(Pt,function(Mt,Zt){var $r=Mt.shared,ai=$r.isBufferArgs,so=$r.elements,Zo=Mt.invoke(Zt,Pt),Jo=Zt.def("null"),ki=Zt.def(ai,"(",Zo,")"),jd=Mt.cond(ki).then(Jo,"=",so,".createStream(",Zo,");").else(Jo,"=",so,".getElements(",Zo,");");return Zt.entry(jd),Zt.exit(Mt.cond(ki).then(so,".destroyStream(",Jo,");")),Mt.ELEMENTS=Jo,Jo})}else if(ge)return new Ye(de.thisDep,de.contextDep,de.propDep,function(Mt,Zt){return Zt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.elements+".getElements("+Mt.shared.vao+".currentVAO.elements):null")});return null}var Q=ae();function Se(){if(Vo in ne){var Tt=ne[Vo];return xe.primitive=Tt,Xe(function(At,Pt){return sn[Tt]})}else if(Vo in Ie){var jt=Ie[Vo];return ct(jt,function(At,Pt){var Mt=At.constants.primTypes,Zt=At.invoke(Pt,jt);return Pt.def(Mt,"[",Zt,"]")})}else{if(Z)return ut(Q)?Q.value?Xe(function(At,Pt){return Pt.def(At.ELEMENTS,".primType")}):Xe(function(){return c}):new Ye(Q.thisDep,Q.contextDep,Q.propDep,function(At,Pt){var Mt=At.ELEMENTS;return Pt.def(Mt,"?",Mt,".primType:",c)});if(ge)return new Ye(de.thisDep,de.contextDep,de.propDep,function(At,Pt){return Pt.def(At.shared.vao+".currentVAO?"+At.shared.vao+".currentVAO.primitive:"+c)})}return null}function De(Tt,jt){if(Tt in ne){var At=ne[Tt]|0;return jt?xe.offset=At:xe.instances=At,Xe(function(Mt,Zt){return jt&&(Mt.OFFSET=At),At})}else if(Tt in Ie){var Pt=Ie[Tt];return ct(Pt,function(Mt,Zt){var $r=Mt.invoke(Zt,Pt);return jt&&(Mt.OFFSET=$r),$r})}else if(jt){if(Z)return Xe(function(Mt,Zt){return Mt.OFFSET=0,0});if(ge)return new Ye(de.thisDep,de.contextDep,de.propDep,function(Mt,Zt){return Zt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.offset:0")})}else if(ge)return new Ye(de.thisDep,de.contextDep,de.propDep,function(Mt,Zt){return Zt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.instances:-1")});return null}var Ve=De(Js,!0);function zt(){if(fn in ne){var Tt=ne[fn]|0;return xe.count=Tt,Xe(function(){return Tt})}else if(fn in Ie){var jt=Ie[fn];return ct(jt,function(Zt,$r){var ai=Zt.invoke($r,jt);return ai})}else if(Z)if(ut(Q)){if(Q)return Ve?new Ye(Ve.thisDep,Ve.contextDep,Ve.propDep,function(Zt,$r){var ai=$r.def(Zt.ELEMENTS,".vertCount-",Zt.OFFSET);return ai}):Xe(function(Zt,$r){return $r.def(Zt.ELEMENTS,".vertCount")});var At=Xe(function(){return-1});return At}else{var Pt=new Ye(Q.thisDep||Ve.thisDep,Q.contextDep||Ve.contextDep,Q.propDep||Ve.propDep,function(Zt,$r){var ai=Zt.ELEMENTS;return Zt.OFFSET?$r.def(ai,"?",ai,".vertCount-",Zt.OFFSET,":-1"):$r.def(ai,"?",ai,".vertCount:-1")});return Pt}else if(ge){var Mt=new Ye(de.thisDep,de.contextDep,de.propDep,function(Zt,$r){return $r.def(Zt.shared.vao,".currentVAO?",Zt.shared.vao,".currentVAO.count:-1")});return Mt}return null}var Dt=Se(),_t=zt(),Bt=De(ef,!1);return{elements:Q,primitive:Dt,count:_t,instances:Bt,offset:Ve,vao:de,vaoActive:ge,elementsActive:Z,static:xe}}function Mr(q,Y){var ne=q.static,Ie=q.dynamic,xe={};return He.forEach(function(ge){var he=ke(ge);function de(Z,ae){if(ge in ne){var Q=Z(ne[ge]);xe[he]=Xe(function(){return Q})}else if(ge in Ie){var Se=Ie[ge];xe[he]=ct(Se,function(De,Ve){return ae(De,Ve,De.invoke(Ve,Se))})}}switch(ge){case mg:case hg:case pg:case ri:case xd:case yg:case cl:case Cd:case Td:case fl:return de(function(Z){return Z},function(Z,ae,Q){return Q});case _d:return de(function(Z){return re[Z]},function(Z,ae,Q){var Se=Z.constants.compareFuncs;return ae.def(Se,"[",Q,"]")});case gg:return de(function(Z){return Z},function(Z,ae,Q){var Se=ae.def("+",Q,"[0]"),De=ae.def("+",Q,"[1]");return[Se,De]});case Xs:return de(function(Z){var ae="srcRGB"in Z?Z.srcRGB:Z.src,Q="srcAlpha"in Z?Z.srcAlpha:Z.src,Se="dstRGB"in Z?Z.dstRGB:Z.dst,De="dstAlpha"in Z?Z.dstAlpha:Z.dst;return[K[ae],K[Se],K[Q],K[De]]},function(Z,ae,Q){var Se=Z.constants.blendFuncs;function De(jt,At){var Pt=ae.def('"',jt,At,'" in ',Q,"?",Q,".",jt,At,":",Q,".",jt);return Pt}var Ve=De("src","RGB"),zt=De("dst","RGB"),Dt=ae.def(Se,"[",Ve,"]"),_t=ae.def(Se,"[",De("src","Alpha"),"]"),Bt=ae.def(Se,"[",zt,"]"),Tt=ae.def(Se,"[",De("dst","Alpha"),"]");return[Dt,Bt,_t,Tt]});case Ys:return de(function(Z){if(typeof Z=="string")return[et[Z],et[Z]];if(typeof Z=="object")return[et[Z.rgb],et[Z.alpha]]},function(Z,ae,Q){var Se=Z.constants.blendEquations,De=ae.def(),Ve=ae.def(),zt=Z.cond("typeof ",Q,'==="string"');return zt.then(De,"=",Ve,"=",Se,"[",Q,"];"),zt.else(De,"=",Se,"[",Q,".rgb];",Ve,"=",Se,"[",Q,".alpha];"),ae(zt),[De,Ve]});case vg:return de(function(Z){return ee(4,function(ae){return+Z[ae]})},function(Z,ae,Q){return ee(4,function(Se){return ae.def("+",Q,"[",Se,"]")})});case Rd:return de(function(Z){return Z|0},function(Z,ae,Q){return ae.def(Q,"|0")});case Od:return de(function(Z){var ae=Z.cmp||"keep",Q=Z.ref||0,Se="mask"in Z?Z.mask:-1;return[re[ae],Q,Se]},function(Z,ae,Q){var Se=Z.constants.compareFuncs,De=ae.def('"cmp" in ',Q,"?",Se,"[",Q,".cmp]",":",B),Ve=ae.def(Q,".ref|0"),zt=ae.def('"mask" in ',Q,"?",Q,".mask|0:-1");return[De,Ve,zt]});case pl:case oo:return de(function(Z){var ae=Z.fail||"keep",Q=Z.zfail||"keep",Se=Z.zpass||"keep";return[ge===oo?m:p,fe[ae],fe[Q],fe[Se]]},function(Z,ae,Q){var Se=Z.constants.stencilOps;function De(Ve){return ae.def('"',Ve,'" in ',Q,"?",Se,"[",Q,".",Ve,"]:",B)}return[ge===oo?m:p,De("fail"),De("zfail"),De("zpass")]});case qo:return de(function(Z){var ae=Z.factor|0,Q=Z.units|0;return[ae,Q]},function(Z,ae,Q){var Se=ae.def(Q,".factor|0"),De=ae.def(Q,".units|0");return[Se,De]});case Ed:return de(function(Z){var ae=0;return Z==="front"?ae=p:Z==="back"&&(ae=m),ae},function(Z,ae,Q){return ae.def(Q,'==="front"?',p,":",m)});case Ad:return de(function(Z){return Z},function(Z,ae,Q){return Q});case Ks:return de(function(Z){return ce[Z]},function(Z,ae,Q){return ae.def(Q+'==="cw"?'+y+":"+x)});case Sd:return de(function(Z){return Z.map(function(ae){return!!ae})},function(Z,ae,Q){return ee(4,function(Se){return"!!"+Q+"["+Se+"]"})});case dl:return de(function(Z){var ae="value"in Z?Z.value:1,Q=!!Z.invert;return[ae,Q]},function(Z,ae,Q){var Se=ae.def('"value" in ',Q,"?+",Q,".value:1"),De=ae.def("!!",Q,".invert");return[Se,De]})}}),xe}function On(q,Y){var ne=q.static,Ie=q.dynamic,xe={};return Object.keys(ne).forEach(function(ge){var he=ne[ge],de;if(typeof he=="number"||typeof he=="boolean")de=Xe(function(){return he});else if(typeof he=="function"){var Z=he._reglType;Z==="texture2d"||Z==="textureCube"?de=Xe(function(ae){return ae.link(he)}):(Z==="framebuffer"||Z==="framebufferCube")&&(de=Xe(function(ae){return ae.link(he.color[0])}))}else vi(he)&&(de=Xe(function(ae){var Q=ae.global.def("[",ee(he.length,function(Se){return he[Se]}),"]");return Q}));de.value=he,xe[ge]=de}),Object.keys(Ie).forEach(function(ge){var he=Ie[ge];xe[ge]=ct(he,function(de,Z){return de.invoke(Z,he)})}),xe}function ii(q,Y){var ne=q.static,Ie=q.dynamic,xe={};return Object.keys(ne).forEach(function(ge){var he=ne[ge],de=V.id(ge),Z=new Me;if(ie(he))Z.state=io,Z.buffer=Le.getBuffer(Le.create(he,lo,!1,!0)),Z.type=0;else{var ae=Le.getBuffer(he);if(ae)Z.state=io,Z.buffer=ae,Z.type=0;else if("constant"in he){var Q=he.constant;Z.buffer="null",Z.state=ll,typeof Q=="number"?Z.x=Q:no.forEach(function(Bt,Tt){Tt<Q.length&&(Z[Bt]=Q[Tt])})}else{ie(he.buffer)?ae=Le.getBuffer(Le.create(he.buffer,lo,!1,!0)):ae=Le.getBuffer(he.buffer);var Se=he.offset|0,De=he.stride|0,Ve=he.size|0,zt=!!he.normalized,Dt=0;"type"in he&&(Dt=Ku[he.type]);var _t=he.divisor|0;Z.buffer=ae,Z.state=io,Z.size=Ve,Z.normalized=zt,Z.type=Dt||ae.dtype,Z.offset=Se,Z.stride=De,Z.divisor=_t}}xe[ge]=Xe(function(Bt,Tt){var jt=Bt.attribCache;if(de in jt)return jt[de];var At={isStream:!1};return Object.keys(Z).forEach(function(Pt){At[Pt]=Z[Pt]}),Z.buffer&&(At.buffer=Bt.link(Z.buffer),At.type=At.type||At.buffer+".dtype"),jt[de]=At,At})}),Object.keys(Ie).forEach(function(ge){var he=Ie[ge];function de(Z,ae){var Q=Z.invoke(ae,he),Se=Z.shared,De=Z.constants,Ve=Se.isBufferArgs,zt=Se.buffer,Dt={isStream:ae.def(!1)},_t=new Me;_t.state=io,Object.keys(_t).forEach(function(At){Dt[At]=ae.def(""+_t[At])});var Bt=Dt.buffer,Tt=Dt.type;ae("if(",Ve,"(",Q,")){",Dt.isStream,"=true;",Bt,"=",zt,".createStream(",lo,",",Q,");",Tt,"=",Bt,".dtype;","}else{",Bt,"=",zt,".getBuffer(",Q,");","if(",Bt,"){",Tt,"=",Bt,".dtype;",'}else if("constant" in ',Q,"){",Dt.state,"=",ll,";","if(typeof "+Q+'.constant === "number"){',Dt[no[0]],"=",Q,".constant;",no.slice(1).map(function(At){return Dt[At]}).join("="),"=0;","}else{",no.map(function(At,Pt){return Dt[At]+"="+Q+".constant.length>"+Pt+"?"+Q+".constant["+Pt+"]:0;"}).join(""),"}}else{","if(",Ve,"(",Q,".buffer)){",Bt,"=",zt,".createStream(",lo,",",Q,".buffer);","}else{",Bt,"=",zt,".getBuffer(",Q,".buffer);","}",Tt,'="type" in ',Q,"?",De.glTypes,"[",Q,".type]:",Bt,".dtype;",Dt.normalized,"=!!",Q,".normalized;");function jt(At){ae(Dt[At],"=",Q,".",At,"|0;")}return jt("size"),jt("offset"),jt("stride"),jt("divisor"),ae("}}"),ae.exit("if(",Dt.isStream,"){",zt,".destroyStream(",Bt,");","}"),Dt}xe[ge]=ct(he,de)}),xe}function zn(q){var Y=q.static,ne=q.dynamic,Ie={};return Object.keys(Y).forEach(function(xe){var ge=Y[xe];Ie[xe]=Xe(function(he,de){return typeof ge=="number"||typeof ge=="boolean"?""+ge:he.link(ge)})}),Object.keys(ne).forEach(function(xe){var ge=ne[xe];Ie[xe]=ct(ge,function(he,de){return he.invoke(de,ge)})}),Ie}function na(q,Y,ne,Ie,xe){q.static,q.dynamic;var ge=dn(q,Y),he=pr(q),de=mr(q,he),Z=ni(q),ae=Mr(q),Q=hr(q,xe,ge);function Se(Bt){var Tt=de[Bt];Tt&&(ae[Bt]=Tt)}Se(ta),Se(ke(Qs));var De=Object.keys(ae).length>0,Ve={framebuffer:he,draw:Z,shader:Q,state:ae,dirty:De,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ve.profile=lr(q),Ve.uniforms=On(ne),Ve.drawVAO=Ve.scopeVAO=Z.vao,!Ve.drawVAO&&Q.program&&!ge&&J.angle_instanced_arrays&&Z.static.elements){var zt=!0,Dt=Q.program.attributes.map(function(Bt){var Tt=Y.static[Bt];return zt=zt&&!!Tt,Tt});if(zt&&Dt.length>0){var _t=ot.getVAO(ot.createVAO({attributes:Dt,elements:Z.static.elements}));Ve.drawVAO=new Ye(null,null,null,function(Bt,Tt){return Bt.link(_t)}),Ve.useVAO=!0}}return ge?Ve.useVAO=!0:Ve.attributes=ii(Y),Ve.context=zn(Ie),Ve}function pn(q,Y,ne){var Ie=q.shared,xe=Ie.context,ge=q.scope();Object.keys(ne).forEach(function(he){Y.save(xe,"."+he);var de=ne[he],Z=de.append(q,Y);Array.isArray(Z)?ge(xe,".",he,"=[",Z.join(),"];"):ge(xe,".",he,"=",Z,";")}),Y(ge)}function hn(q,Y,ne,Ie){var xe=q.shared,ge=xe.gl,he=xe.framebuffer,de;Ge&&(de=Y.def(xe.extensions,".webgl_draw_buffers"));var Z=q.constants,ae=Z.drawBuffer,Q=Z.backBuffer,Se;ne?Se=ne.append(q,Y):Se=Y.def(he,".next"),Ie||Y("if(",Se,"!==",he,".cur){"),Y("if(",Se,"){",ge,".bindFramebuffer(",se,",",Se,".framebuffer);"),Ge&&Y(de,".drawBuffersWEBGL(",ae,"[",Se,".colorAttachments.length]);"),Y("}else{",ge,".bindFramebuffer(",se,",null);"),Ge&&Y(de,".drawBuffersWEBGL(",Q,");"),Y("}",he,".cur=",Se,";"),Ie||Y("}")}function er(q,Y,ne){var Ie=q.shared,xe=Ie.gl,ge=q.current,he=q.next,de=Ie.current,Z=Ie.next,ae=q.cond(de,".dirty");He.forEach(function(Q){var Se=ke(Q);if(!(Se in ne.state)){var De,Ve;if(Se in he){De=he[Se],Ve=ge[Se];var zt=ee(dt[Se].length,function(_t){return ae.def(De,"[",_t,"]")});ae(q.cond(zt.map(function(_t,Bt){return _t+"!=="+Ve+"["+Bt+"]"}).join("||")).then(xe,".",xt[Se],"(",zt,");",zt.map(function(_t,Bt){return Ve+"["+Bt+"]="+_t}).join(";"),";"))}else{De=ae.def(Z,".",Se);var Dt=q.cond(De,"!==",de,".",Se);ae(Dt),Se in Be?Dt(q.cond(De).then(xe,".enable(",Be[Se],");").else(xe,".disable(",Be[Se],");"),de,".",Se,"=",De,";"):Dt(xe,".",xt[Se],"(",De,");",de,".",Se,"=",De,";")}}}),Object.keys(ne.state).length===0&&ae(de,".dirty=false;"),Y(ae)}function xi(q,Y,ne,Ie){var xe=q.shared,ge=q.current,he=xe.current,de=xe.gl,Z;$e(Object.keys(ne)).forEach(function(ae){var Q=ne[ae];if(!(Ie&&!Ie(Q))){var Se=Q.append(q,Y);if(Be[ae]){var De=Be[ae];ut(Q)?(Z=q.link(Se,{stable:!0}),Y(q.cond(Z).then(de,".enable(",De,");").else(de,".disable(",De,");")),Y(he,".",ae,"=",Z,";")):(Y(q.cond(Se).then(de,".enable(",De,");").else(de,".disable(",De,");")),Y(he,".",ae,"=",Se,";"))}else if(vi(Se)){var Ve=ge[ae];Y(de,".",xt[ae],"(",Se,");",Se.map(function(zt,Dt){return Ve+"["+Dt+"]="+zt}).join(";"),";")}else ut(Q)?(Z=q.link(Se,{stable:!0}),Y(de,".",xt[ae],"(",Z,");",he,".",ae,"=",Z,";")):Y(de,".",xt[ae],"(",Se,");",he,".",ae,"=",Se,";")}})}function Or(q,Y){it&&(q.instancing=Y.def(q.shared.extensions,".angle_instanced_arrays"))}function vn(q,Y,ne,Ie,xe){var ge=q.shared,he=q.stats,de=ge.current,Z=ge.timer,ae=ne.profile;function Q(){return typeof performance>"u"?"Date.now()":"performance.now()"}var Se,De;function Ve(jt){Se=Y.def(),jt(Se,"=",Q(),";"),typeof xe=="string"?jt(he,".count+=",xe,";"):jt(he,".count++;"),ft&&(Ie?(De=Y.def(),jt(De,"=",Z,".getNumPendingQueries();")):jt(Z,".beginQuery(",he,");"))}function zt(jt){jt(he,".cpuTime+=",Q(),"-",Se,";"),ft&&(Ie?jt(Z,".pushScopeStats(",De,",",Z,".getNumPendingQueries(),",he,");"):jt(Z,".endQuery();"))}function Dt(jt){var At=Y.def(de,".profile");Y(de,".profile=",jt,";"),Y.exit(de,".profile=",At,";")}var _t;if(ae){if(ut(ae)){ae.enable?(Ve(Y),zt(Y.exit),Dt("true")):Dt("false");return}_t=ae.append(q,Y),Dt(_t)}else _t=Y.def(de,".profile");var Bt=q.block();Ve(Bt),Y("if(",_t,"){",Bt,"}");var Tt=q.block();zt(Tt),Y.exit("if(",_t,"){",Tt,"}")}function Yn(q,Y,ne,Ie,xe){var ge=q.shared;function he(Z){switch(Z){case nf:case Dd:case Nd:return 2;case ra:case yl:case Ld:return 3;case Ko:case Qo:case Bd:return 4;default:return 1}}function de(Z,ae,Q){var Se=ge.gl,De=Y.def(Z,".location"),Ve=Y.def(ge.attributes,"[",De,"]"),zt=Q.state,Dt=Q.buffer,_t=[Q.x,Q.y,Q.z,Q.w],Bt=["buffer","normalized","offset","stride"];function Tt(){Y("if(!",Ve,".buffer){",Se,".enableVertexAttribArray(",De,");}");var At=Q.type,Pt;if(Q.size?Pt=Y.def(Q.size,"||",ae):Pt=ae,Y("if(",Ve,".type!==",At,"||",Ve,".size!==",Pt,"||",Bt.map(function(Zt){return Ve+"."+Zt+"!=="+Q[Zt]}).join("||"),"){",Se,".bindBuffer(",lo,",",Dt,".buffer);",Se,".vertexAttribPointer(",[De,Pt,At,Q.normalized,Q.stride,Q.offset],");",Ve,".type=",At,";",Ve,".size=",Pt,";",Bt.map(function(Zt){return Ve+"."+Zt+"="+Q[Zt]+";"}).join(""),"}"),it){var Mt=Q.divisor;Y("if(",Ve,".divisor!==",Mt,"){",q.instancing,".vertexAttribDivisorANGLE(",[De,Mt],");",Ve,".divisor=",Mt,";}")}}function jt(){Y("if(",Ve,".buffer){",Se,".disableVertexAttribArray(",De,");",Ve,".buffer=null;","}if(",no.map(function(At,Pt){return Ve+"."+At+"!=="+_t[Pt]}).join("||"),"){",Se,".vertexAttrib4f(",De,",",_t,");",no.map(function(At,Pt){return Ve+"."+At+"="+_t[Pt]+";"}).join(""),"}")}zt===io?Tt():zt===ll?jt():(Y("if(",zt,"===",io,"){"),Tt(),Y("}else{"),jt(),Y("}"))}Ie.forEach(function(Z){var ae=Z.name,Q=ne.attributes[ae],Se;if(Q){if(!xe(Q))return;Se=Q.append(q,Y)}else{if(!xe(wt))return;var De=q.scopeAttrib(ae);Se={},Object.keys(new Me).forEach(function(Ve){Se[Ve]=Y.def(De,".",Ve)})}de(q.link(Z),he(Z.info.type),Se)})}function Xn(q,Y,ne,Ie,xe,ge){for(var he=q.shared,de=he.gl,Z,ae=0;ae<Ie.length;++ae){var Q=Ie[ae],Se=Q.name,De=Q.info.type,Ve=ne.uniforms[Se],zt=q.link(Q),Dt=zt+".location",_t;if(Ve){if(!xe(Ve))continue;if(ut(Ve)){var Bt=Ve.value;if(De===Ud||De===l){var Tt=q.link(Bt._texture||Bt.color[0]._texture);Y(de,".uniform1i(",Dt,",",Tt+".bind());"),Y.exit(Tt,".unbind();")}else if(De===$d||De===bl||De===zd){var jt=q.global.def("new Float32Array(["+Array.prototype.slice.call(Bt)+"])"),At=2;De===bl?At=3:De===zd&&(At=4),Y(de,".uniformMatrix",At,"fv(",Dt,",false,",jt,");")}else{switch(De){case Gr:Z="1f";break;case nf:Z="2f";break;case ra:Z="3f";break;case Ko:Z="4f";break;case Fd:Z="1i";break;case af:Z="1i";break;case Nd:Z="2i";break;case Dd:Z="2i";break;case Ld:Z="3i";break;case yl:Z="3i";break;case Bd:Z="4i";break;case Qo:Z="4i";break}Y(de,".uniform",Z,"(",Dt,",",vi(Bt)?Array.prototype.slice.call(Bt):Bt,");")}continue}else _t=Ve.append(q,Y)}else{if(!xe(wt))continue;_t=Y.def(he.uniforms,"[",V.id(Se),"]")}De===Ud?Y("if(",_t,"&&",_t,'._reglType==="framebuffer"){',_t,"=",_t,".color[0];","}"):De===l&&Y("if(",_t,"&&",_t,'._reglType==="framebufferCube"){',_t,"=",_t,".color[0];","}");var Pt=1;switch(De){case Ud:case l:var Mt=Y.def(_t,"._texture");Y(de,".uniform1i(",Dt,",",Mt,".bind());"),Y.exit(Mt,".unbind();");continue;case af:case Fd:Z="1i";break;case Dd:case Nd:Z="2i",Pt=2;break;case yl:case Ld:Z="3i",Pt=3;break;case Qo:case Bd:Z="4i",Pt=4;break;case Gr:Z="1f";break;case nf:Z="2f",Pt=2;break;case ra:Z="3f",Pt=3;break;case Ko:Z="4f",Pt=4;break;case $d:Z="Matrix2fv";break;case bl:Z="Matrix3fv";break;case zd:Z="Matrix4fv";break}if(Z.charAt(0)==="M"){Y(de,".uniform",Z,"(",Dt,",");var Zt=Math.pow(De-$d+2,2),$r=q.global.def("new Float32Array(",Zt,")");Array.isArray(_t)?Y("false,(",ee(Zt,function(ki){return $r+"["+ki+"]="+_t[ki]}),",",$r,")"):Y("false,(Array.isArray(",_t,")||",_t," instanceof Float32Array)?",_t,":(",ee(Zt,function(ki){return $r+"["+ki+"]="+_t+"["+ki+"]"}),",",$r,")"),Y(");")}else if(Pt>1){for(var ai=[],so=[],Zo=0;Zo<Pt;++Zo)Array.isArray(_t)?so.push(_t[Zo]):so.push(Y.def(_t+"["+Zo+"]")),ge&&ai.push(Y.def());ge&&Y("if(!",q.batchId,"||",ai.map(function(ki,jd){return ki+"!=="+so[jd]}).join("||"),"){",ai.map(function(ki,jd){return ki+"="+so[jd]+";"}).join("")),Y(de,".uniform",Z,"(",Dt,",",so.join(","),");"),ge&&Y("}")}else{if(ge){var Jo=Y.def();Y("if(!",q.batchId,"||",Jo,"!==",_t,"){",Jo,"=",_t,";")}Y(de,".uniform",Z,"(",Dt,",",_t,");"),ge&&Y("}")}}}function ar(q,Y,ne,Ie){var xe=q.shared,ge=xe.gl,he=xe.draw,de=Ie.draw;function Z(){var Pt=de.elements,Mt,Zt=Y;return Pt?((Pt.contextDep&&Ie.contextDynamic||Pt.propDep)&&(Zt=ne),Mt=Pt.append(q,Zt),de.elementsActive&&Zt("if("+Mt+")"+ge+".bindBuffer("+Md+","+Mt+".buffer.buffer);")):(Mt=Zt.def(),Zt(Mt,"=",he,".",Ho,";","if(",Mt,"){",ge,".bindBuffer(",Md,",",Mt,".buffer.buffer);}","else if(",xe.vao,".currentVAO){",Mt,"=",q.shared.elements+".getElements("+xe.vao,".currentVAO.elements);",yt?"":"if("+Mt+")"+ge+".bindBuffer("+Md+","+Mt+".buffer.buffer);","}")),Mt}function ae(){var Pt=de.count,Mt,Zt=Y;return Pt?((Pt.contextDep&&Ie.contextDynamic||Pt.propDep)&&(Zt=ne),Mt=Pt.append(q,Zt)):Mt=Zt.def(he,".",fn),Mt}var Q=Z();function Se(Pt){var Mt=de[Pt];return Mt?Mt.contextDep&&Ie.contextDynamic||Mt.propDep?Mt.append(q,ne):Mt.append(q,Y):Y.def(he,".",Pt)}var De=Se(Vo),Ve=Se(Js),zt=ae();if(typeof zt=="number"){if(zt===0)return}else ne("if(",zt,"){"),ne.exit("}");var Dt,_t;it&&(Dt=Se(ef),_t=q.instancing);var Bt=Q+".type",Tt=de.elements&&ut(de.elements)&&!de.vaoActive;function jt(){function Pt(){ne(_t,".drawElementsInstancedANGLE(",[De,zt,Bt,Ve+"<<(("+Bt+"-"+yd+")>>1)",Dt],");")}function Mt(){ne(_t,".drawArraysInstancedANGLE(",[De,Ve,zt,Dt],");")}Q&&Q!=="null"?Tt?Pt():(ne("if(",Q,"){"),Pt(),ne("}else{"),Mt(),ne("}")):Mt()}function At(){function Pt(){ne(ge+".drawElements("+[De,zt,Bt,Ve+"<<(("+Bt+"-"+yd+")>>1)"]+");")}function Mt(){ne(ge+".drawArrays("+[De,Ve,zt]+");")}Q&&Q!=="null"?Tt?Pt():(ne("if(",Q,"){"),Pt(),ne("}else{"),Mt(),ne("}")):Mt()}it&&(typeof Dt!="number"||Dt>=0)?typeof Dt=="string"?(ne("if(",Dt,">0){"),jt(),ne("}else if(",Dt,"<0){"),At(),ne("}")):jt():At()}function vr(q,Y,ne,Ie,xe){var ge=pt(),he=ge.proc("body",xe);return it&&(ge.instancing=he.def(ge.shared.extensions,".angle_instanced_arrays")),q(ge,he,ne,Ie),ge.compile().body}function Fr(q,Y,ne,Ie){Or(q,Y),ne.useVAO?ne.drawVAO?Y(q.shared.vao,".setVAO(",ne.drawVAO.append(q,Y),");"):Y(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(Y(q.shared.vao,".setVAO(null);"),Yn(q,Y,ne,Ie.attributes,function(){return!0})),Xn(q,Y,ne,Ie.uniforms,function(){return!0},!1),ar(q,Y,Y,ne)}function gn(q,Y){var ne=q.proc("draw",1);Or(q,ne),pn(q,ne,Y.context),hn(q,ne,Y.framebuffer),er(q,ne,Y),xi(q,ne,Y.state),vn(q,ne,Y,!1,!0);var Ie=Y.shader.progVar.append(q,ne);if(ne(q.shared.gl,".useProgram(",Ie,".program);"),Y.shader.program)Fr(q,ne,Y,Y.shader.program);else{ne(q.shared.vao,".setVAO(null);");var xe=q.global.def("{}"),ge=ne.def(Ie,".id"),he=ne.def(xe,"[",ge,"]");ne(q.cond(he).then(he,".call(this,a0);").else(he,"=",xe,"[",ge,"]=",q.link(function(de){return vr(Fr,q,Y,de,1)}),"(",Ie,");",he,".call(this,a0);"))}Object.keys(Y.state).length>0&&ne(q.shared.current,".dirty=true;"),q.shared.vao&&ne(q.shared.vao,".setVAO(null);")}function X(q,Y,ne,Ie){q.batchId="a1",Or(q,Y);function xe(){return!0}Yn(q,Y,ne,Ie.attributes,xe),Xn(q,Y,ne,Ie.uniforms,xe,!1),ar(q,Y,Y,ne)}function Re(q,Y,ne,Ie){Or(q,Y);var xe=ne.contextDep,ge=Y.def(),he="a0",de="a1",Z=Y.def();q.shared.props=Z,q.batchId=ge;var ae=q.scope(),Q=q.scope();Y(ae.entry,"for(",ge,"=0;",ge,"<",de,";++",ge,"){",Z,"=",he,"[",ge,"];",Q,"}",ae.exit);function Se(Bt){return Bt.contextDep&&xe||Bt.propDep}function De(Bt){return!Se(Bt)}if(ne.needsContext&&pn(q,Q,ne.context),ne.needsFramebuffer&&hn(q,Q,ne.framebuffer),xi(q,Q,ne.state,Se),ne.profile&&Se(ne.profile)&&vn(q,Q,ne,!1,!0),Ie)ne.useVAO?ne.drawVAO?Se(ne.drawVAO)?Q(q.shared.vao,".setVAO(",ne.drawVAO.append(q,Q),");"):ae(q.shared.vao,".setVAO(",ne.drawVAO.append(q,ae),");"):ae(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(ae(q.shared.vao,".setVAO(null);"),Yn(q,ae,ne,Ie.attributes,De),Yn(q,Q,ne,Ie.attributes,Se)),Xn(q,ae,ne,Ie.uniforms,De,!1),Xn(q,Q,ne,Ie.uniforms,Se,!0),ar(q,ae,Q,ne);else{var Ve=q.global.def("{}"),zt=ne.shader.progVar.append(q,Q),Dt=Q.def(zt,".id"),_t=Q.def(Ve,"[",Dt,"]");Q(q.shared.gl,".useProgram(",zt,".program);","if(!",_t,"){",_t,"=",Ve,"[",Dt,"]=",q.link(function(Bt){return vr(X,q,ne,Bt,2)}),"(",zt,");}",_t,".call(this,a0[",ge,"],",ge,");")}}function Ce(q,Y){var ne=q.proc("batch",2);q.batchId="0",Or(q,ne);var Ie=!1,xe=!0;Object.keys(Y.context).forEach(function(Ve){Ie=Ie||Y.context[Ve].propDep}),Ie||(pn(q,ne,Y.context),xe=!1);var ge=Y.framebuffer,he=!1;ge?(ge.propDep?Ie=he=!0:ge.contextDep&&Ie&&(he=!0),he||hn(q,ne,ge)):hn(q,ne,null),Y.state.viewport&&Y.state.viewport.propDep&&(Ie=!0);function de(Ve){return Ve.contextDep&&Ie||Ve.propDep}er(q,ne,Y),xi(q,ne,Y.state,function(Ve){return!de(Ve)}),(!Y.profile||!de(Y.profile))&&vn(q,ne,Y,!1,"a1"),Y.contextDep=Ie,Y.needsContext=xe,Y.needsFramebuffer=he;var Z=Y.shader.progVar;if(Z.contextDep&&Ie||Z.propDep)Re(q,ne,Y,null);else{var ae=Z.append(q,ne);if(ne(q.shared.gl,".useProgram(",ae,".program);"),Y.shader.program)Re(q,ne,Y,Y.shader.program);else{ne(q.shared.vao,".setVAO(null);");var Q=q.global.def("{}"),Se=ne.def(ae,".id"),De=ne.def(Q,"[",Se,"]");ne(q.cond(De).then(De,".call(this,a0,a1);").else(De,"=",Q,"[",Se,"]=",q.link(function(Ve){return vr(Re,q,Y,Ve,2)}),"(",ae,");",De,".call(this,a0,a1);"))}}Object.keys(Y.state).length>0&&ne(q.shared.current,".dirty=true;"),q.shared.vao&&ne(q.shared.vao,".setVAO(null);")}function Ot(q,Y){var ne=q.proc("scope",3);q.batchId="a2";var Ie=q.shared,xe=Ie.current;if(pn(q,ne,Y.context),Y.framebuffer&&Y.framebuffer.append(q,ne),$e(Object.keys(Y.state)).forEach(function(de){var Z=Y.state[de],ae=Z.append(q,ne);vi(ae)?ae.forEach(function(Q,Se){Lt(Q)?ne.set(q.next[de],"["+Se+"]",Q):ne.set(q.next[de],"["+Se+"]",q.link(Q,{stable:!0}))}):ut(Z)?ne.set(Ie.next,"."+de,q.link(ae,{stable:!0})):ne.set(Ie.next,"."+de,ae)}),vn(q,ne,Y,!0,!0),[Ho,Js,fn,ef,Vo].forEach(function(de){var Z=Y.draw[de];if(!!Z){var ae=Z.append(q,ne);Lt(ae)?ne.set(Ie.draw,"."+de,ae):ne.set(Ie.draw,"."+de,q.link(ae),{stable:!0})}}),Object.keys(Y.uniforms).forEach(function(de){var Z=Y.uniforms[de].append(q,ne);Array.isArray(Z)&&(Z="["+Z.map(function(ae){return Lt(ae)?ae:q.link(ae,{stable:!0})})+"]"),ne.set(Ie.uniforms,"["+q.link(V.id(de),{stable:!0})+"]",Z)}),Object.keys(Y.attributes).forEach(function(de){var Z=Y.attributes[de].append(q,ne),ae=q.scopeAttrib(de);Object.keys(new Me).forEach(function(Q){ne.set(ae,"."+Q,Z[Q])})}),Y.scopeVAO){var ge=Y.scopeVAO.append(q,ne);Lt(ge)?ne.set(Ie.vao,".targetVAO",ge):ne.set(Ie.vao,".targetVAO",q.link(ge,{stable:!0}))}function he(de){var Z=Y.shader[de];if(Z){var ae=Z.append(q,ne);Lt(ae)?ne.set(Ie.shader,"."+de,ae):ne.set(Ie.shader,"."+de,q.link(ae,{stable:!0}))}}he(hl),he(Zs),Object.keys(Y.state).length>0&&(ne(xe,".dirty=true;"),ne.exit(xe,".dirty=true;")),ne("a1(",q.shared.context,",a0,",q.batchId,");")}function sr(q){if(!(typeof q!="object"||vi(q))){for(var Y=Object.keys(q),ne=0;ne<Y.length;++ne)if(_.isDynamic(q[Y[ne]]))return!0;return!1}}function Br(q,Y,ne){var Ie=Y.static[ne];if(!Ie||!sr(Ie))return;var xe=q.global,ge=Object.keys(Ie),he=!1,de=!1,Z=!1,ae=q.global.def("{}");ge.forEach(function(Se){var De=Ie[Se];if(_.isDynamic(De)){typeof De=="function"&&(De=Ie[Se]=_.unbox(De));var Ve=ct(De,null);he=he||Ve.thisDep,Z=Z||Ve.propDep,de=de||Ve.contextDep}else{switch(xe(ae,".",Se,"="),typeof De){case"number":xe(De);break;case"string":xe('"',De,'"');break;case"object":Array.isArray(De)&&xe("[",De.join(),"]");break;default:xe(q.link(De));break}xe(";")}});function Q(Se,De){ge.forEach(function(Ve){var zt=Ie[Ve];if(!!_.isDynamic(zt)){var Dt=Se.invoke(De,zt);De(ae,".",Ve,"=",Dt,";")}})}Y.dynamic[ne]=new _.DynamicVariable(ao,{thisDep:he,contextDep:de,propDep:Z,ref:ae,append:Q}),delete Y.static[ne]}function It(q,Y,ne,Ie,xe){var ge=pt();ge.stats=ge.link(xe),Object.keys(Y.static).forEach(function(de){Br(ge,Y,de)}),vb.forEach(function(de){Br(ge,q,de)});var he=na(q,Y,ne,Ie,ge);return he.shader.program&&(he.shader.program.attributes.sort(function(de,Z){return de.name<Z.name?-1:1}),he.shader.program.uniforms.sort(function(de,Z){return de.name<Z.name?-1:1})),gn(ge,he),Ot(ge,he),Ce(ge,he),r(ge.compile(),{destroy:function(){he.shader.program.destroy()}})}return{next:Nt,current:dt,procs:function(){var q=pt(),Y=q.proc("poll"),ne=q.proc("refresh"),Ie=q.block();Y(Ie),ne(Ie);var xe=q.shared,ge=xe.gl,he=xe.next,de=xe.current;Ie(de,".dirty=false;"),hn(q,Y),hn(q,ne,null,!0);var Z;it&&(Z=q.link(it)),J.oes_vertex_array_object&&ne(q.link(J.oes_vertex_array_object),".bindVertexArrayOES(null);");var ae=ne.def(xe.attributes),Q=ne.def(0),Se=q.cond(Q,".buffer");Se.then(ge,".enableVertexAttribArray(i);",ge,".bindBuffer(",lo,",",Q,".buffer.buffer);",ge,".vertexAttribPointer(i,",Q,".size,",Q,".type,",Q,".normalized,",Q,".stride,",Q,".offset);").else(ge,".disableVertexAttribArray(i);",ge,".vertexAttrib4f(i,",Q,".x,",Q,".y,",Q,".z,",Q,".w);",Q,".buffer=null;");var De=q.link(Pe.maxAttributes,{stable:!0});return ne("for(var i=0;i<",De,";++i){",Q,"=",ae,"[i];",Se,"}"),it&&ne("for(var i=0;i<",De,";++i){",Z,".vertexAttribDivisorANGLE(i,",ae,"[i].divisor);","}"),ne(q.shared.vao,".currentVAO=null;",q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"),Object.keys(Be).forEach(function(Ve){var zt=Be[Ve],Dt=Ie.def(he,".",Ve),_t=q.block();_t("if(",Dt,"){",ge,".enable(",zt,")}else{",ge,".disable(",zt,")}",de,".",Ve,"=",Dt,";"),ne(_t),Y("if(",Dt,"!==",de,".",Ve,"){",_t,"}")}),Object.keys(xt).forEach(function(Ve){var zt=xt[Ve],Dt=dt[Ve],_t,Bt,Tt=q.block();if(Tt(ge,".",zt,"("),vi(Dt)){var jt=Dt.length;_t=q.global.def(he,".",Ve),Bt=q.global.def(de,".",Ve),Tt(ee(jt,function(At){return _t+"["+At+"]"}),");",ee(jt,function(At){return Bt+"["+At+"]="+_t+"["+At+"];"}).join("")),Y("if(",ee(jt,function(At){return _t+"["+At+"]!=="+Bt+"["+At+"]"}).join("||"),"){",Tt,"}")}else _t=Ie.def(he,".",Ve),Bt=Ie.def(de,".",Ve),Tt(_t,");",de,".",Ve,"=",_t,";"),Y("if(",_t,"!==",Bt,"){",Tt,"}");ne(Tt)}),q.compile()}(),compile:It}}function Et(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Vt=34918,cr=34919,Lr=35007,br=function(F,V){if(!V.ext_disjoint_timer_query)return null;var J=[];function Pe(){return J.pop()||V.ext_disjoint_timer_query.createQueryEXT()}function Le(et){J.push(et)}var Te=[];function Oe(et){var it=Pe();V.ext_disjoint_timer_query.beginQueryEXT(Lr,it),Te.push(it),ft(Te.length-1,Te.length,et)}function tt(){V.ext_disjoint_timer_query.endQueryEXT(Lr)}function rt(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var ot=[];function ht(){return ot.pop()||new rt}function Ft(et){ot.push(et)}var Ct=[];function ft(et,it,Ge){var yt=ht();yt.startQueryIndex=et,yt.endQueryIndex=it,yt.sum=0,yt.stats=Ge,Ct.push(yt)}var Qe=[],ve=[];function Me(){var et,it,Ge=Te.length;if(Ge!==0){ve.length=Math.max(ve.length,Ge+1),Qe.length=Math.max(Qe.length,Ge+1),Qe[0]=0,ve[0]=0;var yt=0;for(et=0,it=0;it<Te.length;++it){var dt=Te[it];V.ext_disjoint_timer_query.getQueryObjectEXT(dt,cr)?(yt+=V.ext_disjoint_timer_query.getQueryObjectEXT(dt,Vt),Le(dt)):Te[et++]=dt,Qe[it+1]=yt,ve[it+1]=et}for(Te.length=et,et=0,it=0;it<Ct.length;++it){var Nt=Ct[it],He=Nt.startQueryIndex,Be=Nt.endQueryIndex;Nt.sum+=Qe[Be]-Qe[He];var xt=ve[He],ke=ve[Be];ke===xt?(Nt.stats.gpuTime+=Nt.sum/1e6,Ft(Nt)):(Nt.startQueryIndex=xt,Nt.endQueryIndex=ke,Ct[et++]=Nt)}Ct.length=et}}return{beginQuery:Oe,endQuery:tt,pushScopeStats:ft,update:Me,getNumPendingQueries:function(){return Te.length},clear:function(){J.push.apply(J,Te);for(var et=0;et<J.length;et++)V.ext_disjoint_timer_query.deleteQueryEXT(J[et]);Te.length=0,J.length=0},restore:function(){Te.length=0,J.length=0}}},lt=16384,Xt=256,Jt=1024,dr=34962,kr="webglcontextlost",qr="webglcontextrestored",Zr=1,bn=2,Rn=3;function cn(F,V){for(var J=0;J<F.length;++J)if(F[J]===V)return J;return-1}function $n(F){var V=N(F);if(!V)return null;var J=V.gl,Pe=J.getContextAttributes();J.isContextLost();var Le=L(J,V);if(!Le)return null;var Te=w(),Oe=Et(),tt=V.cachedCode||{},rt=Le.extensions,ot=br(J,rt),ht=b(),Ft=J.drawingBufferWidth,Ct=J.drawingBufferHeight,ft={tick:0,time:0,viewportWidth:Ft,viewportHeight:Ct,framebufferWidth:Ft,framebufferHeight:Ct,drawingBufferWidth:Ft,drawingBufferHeight:Ct,pixelRatio:V.pixelRatio},Qe={},ve={elements:null,primitive:4,count:-1,offset:0,instances:-1},Me=Ss(J,rt),et=bv(J,Oe,V,yt),it=Os(J,rt,et,Oe),Ge=ib(J,rt,Me,Oe,et,it,ve);function yt(ar){return Ge.destroyBuffer(ar)}var dt=ng(J,Te,Oe,V),Nt=Z1(J,rt,Me,function(){xt.procs.poll()},ft,Oe,V),He=Zv(J,rt,Me,Oe,V),Be=sd(J,rt,Me,Nt,He,Oe),xt=Yt(J,Te,rt,Me,et,it,Nt,Be,Qe,Ge,dt,ve,ft,ot,tt,V),ke=ag(J,Be,xt.procs.poll,ft),vt=xt.next,at=J.canvas,Lt=[],ur=[],St=[],Gt=[V.onDestroy],pt=null;function lr(){if(Lt.length===0){ot&&ot.update(),pt=null;return}pt=A.next(lr),hn();for(var ar=Lt.length-1;ar>=0;--ar){var vr=Lt[ar];vr&&vr(ft,null,0)}J.flush(),ot&&ot.update()}function pr(){!pt&&Lt.length>0&&(pt=A.next(lr))}function mr(){pt&&(A.cancel(lr),pt=null)}function dn(ar){ar.preventDefault(),mr(),ur.forEach(function(vr){vr()})}function hr(ar){J.getError(),Le.restore(),dt.restore(),et.restore(),Nt.restore(),He.restore(),Be.restore(),Ge.restore(),ot&&ot.restore(),xt.procs.refresh(),pr(),St.forEach(function(vr){vr()})}at&&(at.addEventListener(kr,dn,!1),at.addEventListener(qr,hr,!1));function ni(){Lt.length=0,mr(),at&&(at.removeEventListener(kr,dn),at.removeEventListener(qr,hr)),dt.clear(),Be.clear(),He.clear(),Ge.clear(),Nt.clear(),it.clear(),et.clear(),ot&&ot.clear(),Gt.forEach(function(ar){ar()})}function Mr(ar){function vr(xe){var ge=r({},xe);delete ge.uniforms,delete ge.attributes,delete ge.context,delete ge.vao,"stencil"in ge&&ge.stencil.op&&(ge.stencil.opBack=ge.stencil.opFront=ge.stencil.op,delete ge.stencil.op);function he(de){if(de in ge){var Z=ge[de];delete ge[de],Object.keys(Z).forEach(function(ae){ge[de+"."+ae]=Z[ae]})}}return he("blend"),he("depth"),he("cull"),he("stencil"),he("polygonOffset"),he("scissor"),he("sample"),"vao"in xe&&(ge.vao=xe.vao),ge}function Fr(xe,ge){var he={},de={};return Object.keys(xe).forEach(function(Z){var ae=xe[Z];if(_.isDynamic(ae)){de[Z]=_.unbox(ae,Z);return}else if(ge&&Array.isArray(ae)){for(var Q=0;Q<ae.length;++Q)if(_.isDynamic(ae[Q])){de[Z]=_.unbox(ae,Z);return}}he[Z]=ae}),{dynamic:de,static:he}}var gn=Fr(ar.context||{},!0),X=Fr(ar.uniforms||{},!0),Re=Fr(ar.attributes||{},!1),Ce=Fr(vr(ar),!1),Ot={gpuTime:0,cpuTime:0,count:0},sr=xt.compile(Ce,Re,X,gn,Ot),Br=sr.draw,It=sr.batch,q=sr.scope,Y=[];function ne(xe){for(;Y.length<xe;)Y.push(null);return Y}function Ie(xe,ge){var he;if(typeof xe=="function")return q.call(this,null,xe,0);if(typeof ge=="function")if(typeof xe=="number")for(he=0;he<xe;++he)q.call(this,null,ge,he);else if(Array.isArray(xe))for(he=0;he<xe.length;++he)q.call(this,xe[he],ge,he);else return q.call(this,xe,ge,0);else if(typeof xe=="number"){if(xe>0)return It.call(this,ne(xe|0),xe|0)}else if(Array.isArray(xe)){if(xe.length)return It.call(this,xe,xe.length)}else return Br.call(this,xe)}return r(Ie,{stats:Ot,destroy:function(){sr.destroy()}})}var On=Be.setFBO=Mr({framebuffer:_.define.call(null,Zr,"framebuffer")});function ii(ar,vr){var Fr=0;xt.procs.poll();var gn=vr.color;gn&&(J.clearColor(+gn[0]||0,+gn[1]||0,+gn[2]||0,+gn[3]||0),Fr|=lt),"depth"in vr&&(J.clearDepth(+vr.depth),Fr|=Xt),"stencil"in vr&&(J.clearStencil(vr.stencil|0),Fr|=Jt),J.clear(Fr)}function zn(ar){if("framebuffer"in ar)if(ar.framebuffer&&ar.framebuffer_reglType==="framebufferCube")for(var vr=0;vr<6;++vr)On(r({framebuffer:ar.framebuffer.faces[vr]},ar),ii);else On(ar,ii);else ii(null,ar)}function na(ar){Lt.push(ar);function vr(){var Fr=cn(Lt,ar);function gn(){var X=cn(Lt,gn);Lt[X]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&mr()}Lt[Fr]=gn}return pr(),{cancel:vr}}function pn(){var ar=vt.viewport,vr=vt.scissor_box;ar[0]=ar[1]=vr[0]=vr[1]=0,ft.viewportWidth=ft.framebufferWidth=ft.drawingBufferWidth=ar[2]=vr[2]=J.drawingBufferWidth,ft.viewportHeight=ft.framebufferHeight=ft.drawingBufferHeight=ar[3]=vr[3]=J.drawingBufferHeight}function hn(){ft.tick+=1,ft.time=xi(),pn(),xt.procs.poll()}function er(){Nt.refresh(),pn(),xt.procs.refresh(),ot&&ot.update()}function xi(){return(b()-ht)/1e3}er();function Or(ar,vr){var Fr;switch(ar){case"frame":return na(vr);case"lost":Fr=ur;break;case"restore":Fr=St;break;case"destroy":Fr=Gt;break}return Fr.push(vr),{cancel:function(){for(var gn=0;gn<Fr.length;++gn)if(Fr[gn]===vr){Fr[gn]=Fr[Fr.length-1],Fr.pop();return}}}}function vn(){return tt}function Yn(ar){Object.entries(ar).forEach(function(vr){tt[vr[0]]=vr[1]})}var Xn=r(Mr,{clear:zn,prop:_.define.bind(null,Zr),context:_.define.bind(null,bn),this:_.define.bind(null,Rn),draw:Mr({}),buffer:function(ar){return et.create(ar,dr,!1,!1)},elements:function(ar){return it.create(ar,!1)},texture:Nt.create2D,cube:Nt.createCube,renderbuffer:He.create,framebuffer:Be.create,framebufferCube:Be.createCube,vao:Ge.createVAO,attributes:Pe,frame:na,on:Or,limits:Me,hasExtension:function(ar){return Me.extensions.indexOf(ar.toLowerCase())>=0},read:ke,destroy:ni,_gl:J,_refresh:er,poll:function(){hn(),ot&&ot.update()},now:xi,stats:Oe,getCachedCode:vn,preloadCachedCode:Yn});return V.onDone(null,Xn),Xn}return $n})})(f6);var Ble=qu,$le=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},HP(t)?t={container:t}:zle(t)?t={container:t}:Ule(t)?t={gl:t}:t=Ble(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=_r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}HP(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=VP(),t.container.appendChild(t.canvas),qP(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=VP(),t.container.appendChild(t.canvas),qP(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 qP(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*_r.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*_r.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function HP(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function zle(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Ule(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function VP(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var jle=s6,Wle=[32,126],Gle=qle;function qle(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||Wle;if(n&&typeof n!="string"&&(n=jle(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],u=a[0],s=0;u<=a[1];u++)o[s++]=String.fromCharCode(u);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,v=i[1]/2,u=0;u<a.length;u++)f.fillText(a[u],d,v),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,v+=i[1]);return r}var wr={},Yr={},DC=32;Yr.INT_BITS=DC;Yr.INT_MAX=2147483647;Yr.INT_MIN=-1<<DC-1;Yr.sign=function(e){return(e>0)-(e<0)};Yr.abs=function(e){var t=e>>DC-1;return(e^t)-t};Yr.min=function(e,t){return t^(e^t)&-(e<t)};Yr.max=function(e,t){return e^(e^t)&-(e<t)};Yr.isPow2=function(e){return!(e&e-1)&&!!e};Yr.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};Yr.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};Yr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function c6(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}Yr.countTrailingZeros=c6;Yr.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};Yr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Yr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var kp=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}})(kp);Yr.reverse=function(e){return kp[e&255]<<24|kp[e>>>8&255]<<16|kp[e>>>16&255]<<8|kp[e>>>24&255]};Yr.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};Yr.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};Yr.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};Yr.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};Yr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>c6(e)+1};function d6(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]=d6(e,t,r+1);return i}function Hle(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function Vle(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return Hle(e|0,t);break;case"object":if(typeof e.length=="number")return d6(e,t,0);break}return[]}var Yle=Vle,p6={},A1={};A1.byteLength=Qle;A1.toByteArray=Jle;A1.fromByteArray=rse;var Oa=[],Fi=[],Xle=typeof Uint8Array<"u"?Uint8Array:Array,E_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var hf=0,Kle=E_.length;hf<Kle;++hf)Oa[hf]=E_[hf],Fi[E_.charCodeAt(hf)]=hf;Fi["-".charCodeAt(0)]=62;Fi["_".charCodeAt(0)]=63;function h6(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 Qle(e){var t=h6(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Zle(e,t,r){return(t+r)*3/4-r}function Jle(e){var t,r=h6(e),n=r[0],i=r[1],a=new Xle(Zle(e,n,i)),o=0,u=i>0?n-4:n,s;for(s=0;s<u;s+=4)t=Fi[e.charCodeAt(s)]<<18|Fi[e.charCodeAt(s+1)]<<12|Fi[e.charCodeAt(s+2)]<<6|Fi[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Fi[e.charCodeAt(s)]<<2|Fi[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=Fi[e.charCodeAt(s)]<<10|Fi[e.charCodeAt(s+1)]<<4|Fi[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function ese(e){return Oa[e>>18&63]+Oa[e>>12&63]+Oa[e>>6&63]+Oa[e&63]}function tse(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(ese(n));return i.join("")}function rse(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,u=r-n;o<u;o+=a)i.push(tse(e,o,o+a>u?u:o+a));return n===1?(t=e[r-1],i.push(Oa[t>>2]+Oa[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Oa[t>>10]+Oa[t>>4&63]+Oa[t<<2&63]+"=")),i.join("")}var FC={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */FC.read=function(e,t,r,n,i){var a,o,u=i*8-n-1,s=(1<<u)-1,f=s>>1,d=-7,v=r?i-1:0,h=r?-1:1,g=e[t+v];for(v+=h,a=g&(1<<-d)-1,g>>=-d,d+=u;d>0;a=a*256+e[t+v],v+=h,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+v],v+=h,d-=8);if(a===0)a=1-f;else{if(a===s)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)};FC.write=function(e,t,r,n,i,a){var o,u,s,f=a*8-i-1,d=(1<<f)-1,v=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,_=n?1:-1,A=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+v>=1?t+=h/s:t+=h*Math.pow(2,1-v),t*s>=2&&(o++,s/=2),o+v>=d?(u=0,o=d):o+v>=1?(u=(t*s-1)*Math.pow(2,i),o=o+v):(u=t*Math.pow(2,v-1)*Math.pow(2,i),o=0));i>=8;e[r+g]=u&255,g+=_,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;e[r+g]=o&255,g+=_,o/=256,f-=8);e[r+g-_]|=A*128};/*!
|
|
1162
|
+
* The buffer module from node.js, for the browser.
|
|
1163
|
+
*
|
|
1164
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
1165
|
+
* @license MIT
|
|
1166
|
+
*/(function(e){var t=A1,r=FC;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var 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 C=new Uint8Array(I);return C.__proto__=o.prototype,C}function o(I,C,P){if(typeof I=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(I)}return u(I,C,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 u(I,C,P){if(typeof I=="string")return v(I,C);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,C,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,C,P);var le=_(I);if(le)return le;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return o.from(I[Symbol.toPrimitive]("string"),C,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,C,P){return u(I,C,P)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(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,C,P){return s(I),I<=0?a(I):C!==void 0?typeof P=="string"?a(I).fill(C,P):a(I).fill(C):a(I)}o.alloc=function(I,C,P){return f(I,C,P)};function d(I){return s(I),a(I<0?0:A(I)|0)}o.allocUnsafe=function(I){return d(I)},o.allocUnsafeSlow=function(I){return d(I)};function v(I,C){if((typeof C!="string"||C==="")&&(C="utf8"),!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C);var P=w(I,C)|0,U=a(P),le=U.write(I,C);return le!==P&&(U=U.slice(0,le)),U}function h(I){for(var C=I.length<0?0:A(I.length)|0,P=a(C),U=0;U<C;U+=1)P[U]=I[U]&255;return P}function g(I,C,P){if(C<0||I.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<C+(P||0))throw new RangeError('"length" is outside of buffer bounds');var U;return C===void 0&&P===void 0?U=new Uint8Array(I):P===void 0?U=new Uint8Array(I,C):U=new Uint8Array(I,C,P),U.__proto__=o.prototype,U}function _(I){if(o.isBuffer(I)){var C=A(I.length)|0,P=a(C);return P.length===0||I.copy(P,0,0,C),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 A(I){if(I>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return I|0}function b(I){return+I!=I&&(I=0),o.alloc(+I)}o.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==o.prototype},o.compare=function(C,P){if(j(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),j(P,Uint8Array)&&(P=o.from(P,P.offset,P.byteLength)),!o.isBuffer(C)||!o.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===P)return 0;for(var U=C.length,le=P.length,Ne=0,ze=Math.min(U,le);Ne<ze;++Ne)if(C[Ne]!==P[Ne]){U=C[Ne],le=P[Ne];break}return U<le?-1:le<U?1:0},o.isEncoding=function(C){switch(String(C).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(C,P){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return o.alloc(0);var U;if(P===void 0)for(P=0,U=0;U<C.length;++U)P+=C[U].length;var le=o.allocUnsafe(P),Ne=0;for(U=0;U<C.length;++U){var ze=C[U];if(j(ze,Uint8Array)&&(ze=o.from(ze)),!o.isBuffer(ze))throw new TypeError('"list" argument must be an Array of Buffers');ze.copy(le,Ne),Ne+=ze.length}return le};function w(I,C){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(C){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return kt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return mt(I).length;default:if(le)return U?-1:kt(I).length;C=(""+C).toLowerCase(),le=!0}}o.byteLength=w;function S(I,C,P){var U=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,C>>>=0,P<=C))return"";for(I||(I="utf8");;)switch(I){case"hex":return Fe(this,C,P);case"utf8":case"utf-8":return we(this,C,P);case"ascii":return je(this,C,P);case"latin1":case"binary":return me(this,C,P);case"base64":return pe(this,C,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qe(this,C,P);default:if(U)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),U=!0}}o.prototype._isBuffer=!0;function E(I,C,P){var U=I[C];I[C]=I[P],I[P]=U}o.prototype.swap16=function(){var C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;P<C;P+=2)E(this,P,P+1);return this},o.prototype.swap32=function(){var C=this.length;if(C%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var P=0;P<C;P+=4)E(this,P,P+3),E(this,P+1,P+2);return this},o.prototype.swap64=function(){var C=this.length;if(C%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var P=0;P<C;P+=8)E(this,P,P+7),E(this,P+1,P+6),E(this,P+2,P+5),E(this,P+3,P+4);return this},o.prototype.toString=function(){var C=this.length;return C===0?"":arguments.length===0?we(this,0,C):S.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(C){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:o.compare(this,C)===0},o.prototype.inspect=function(){var C="",P=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(C+=" ... "),"<Buffer "+C+">"},o.prototype.compare=function(C,P,U,le,Ne){if(j(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),!o.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(P===void 0&&(P=0),U===void 0&&(U=C?C.length:0),le===void 0&&(le=0),Ne===void 0&&(Ne=this.length),P<0||U>C.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===C)return 0;for(var ze=Ne-le,qt=U-P,Qt=Math.min(ze,qt),nr=this.slice(le,Ne),gr=C.slice(P,U),Sr=0;Sr<Qt;++Sr)if(nr[Sr]!==gr[Sr]){ze=nr[Sr],qt=gr[Sr];break}return ze<qt?-1:qt<ze?1:0};function R(I,C,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 C=="string"&&(C=o.from(C,U)),o.isBuffer(C))return C.length===0?-1:M(I,C,P,U,le);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(I,C,P):Uint8Array.prototype.lastIndexOf.call(I,C,P):M(I,[C],P,U,le);throw new TypeError("val must be string, number or Buffer")}function M(I,C,P,U,le){var Ne=1,ze=I.length,qt=C.length;if(U!==void 0&&(U=String(U).toLowerCase(),U==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if(I.length<2||C.length<2)return-1;Ne=2,ze/=2,qt/=2,P/=2}function Qt(ga,Hn){return Ne===1?ga[Hn]:ga.readUInt16BE(Hn*Ne)}var nr;if(le){var gr=-1;for(nr=P;nr<ze;nr++)if(Qt(I,nr)===Qt(C,gr===-1?0:nr-gr)){if(gr===-1&&(gr=nr),nr-gr+1===qt)return gr*Ne}else gr!==-1&&(nr-=nr-gr),gr=-1}else for(P+qt>ze&&(P=ze-qt),nr=P;nr>=0;nr--){for(var Sr=!0,rn=0;rn<qt;rn++)if(Qt(I,nr+rn)!==Qt(C,rn)){Sr=!1;break}if(Sr)return nr}return-1}o.prototype.includes=function(C,P,U){return this.indexOf(C,P,U)!==-1},o.prototype.indexOf=function(C,P,U){return R(this,C,P,U,!0)},o.prototype.lastIndexOf=function(C,P,U){return R(this,C,P,U,!1)};function D(I,C,P,U){P=Number(P)||0;var le=I.length-P;U?(U=Number(U),U>le&&(U=le)):U=le;var Ne=C.length;U>Ne/2&&(U=Ne/2);for(var ze=0;ze<U;++ze){var qt=parseInt(C.substr(ze*2,2),16);if(te(qt))return ze;I[P+ze]=qt}return ze}function z(I,C,P,U){return _e(kt(C,I.length-P),I,P,U)}function N(I,C,P,U){return _e(Ae(C),I,P,U)}function L(I,C,P,U){return N(I,C,P,U)}function ee(I,C,P,U){return _e(mt(C),I,P,U)}function ue(I,C,P,U){return _e(nt(C,I.length-P),I,P,U)}o.prototype.write=function(C,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),C.length>0&&(U<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ze=!1;;)switch(le){case"hex":return D(this,C,P,U);case"utf8":case"utf-8":return z(this,C,P,U);case"ascii":return N(this,C,P,U);case"latin1":case"binary":return L(this,C,P,U);case"base64":return ee(this,C,P,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,C,P,U);default:if(ze)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ze=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(I,C,P){return C===0&&P===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(C,P))}function we(I,C,P){P=Math.min(I.length,P);for(var U=[],le=C;le<P;){var Ne=I[le],ze=null,qt=Ne>239?4:Ne>223?3:Ne>191?2:1;if(le+qt<=P){var Qt,nr,gr,Sr;switch(qt){case 1:Ne<128&&(ze=Ne);break;case 2:Qt=I[le+1],(Qt&192)===128&&(Sr=(Ne&31)<<6|Qt&63,Sr>127&&(ze=Sr));break;case 3:Qt=I[le+1],nr=I[le+2],(Qt&192)===128&&(nr&192)===128&&(Sr=(Ne&15)<<12|(Qt&63)<<6|nr&63,Sr>2047&&(Sr<55296||Sr>57343)&&(ze=Sr));break;case 4:Qt=I[le+1],nr=I[le+2],gr=I[le+3],(Qt&192)===128&&(nr&192)===128&&(gr&192)===128&&(Sr=(Ne&15)<<18|(Qt&63)<<12|(nr&63)<<6|gr&63,Sr>65535&&Sr<1114112&&(ze=Sr))}}ze===null?(ze=65533,qt=1):ze>65535&&(ze-=65536,U.push(ze>>>10&1023|55296),ze=56320|ze&1023),U.push(ze),le+=qt}return Je(U)}var Ee=4096;function Je(I){var C=I.length;if(C<=Ee)return String.fromCharCode.apply(String,I);for(var P="",U=0;U<C;)P+=String.fromCharCode.apply(String,I.slice(U,U+=Ee));return P}function je(I,C,P){var U="";P=Math.min(I.length,P);for(var le=C;le<P;++le)U+=String.fromCharCode(I[le]&127);return U}function me(I,C,P){var U="";P=Math.min(I.length,P);for(var le=C;le<P;++le)U+=String.fromCharCode(I[le]);return U}function Fe(I,C,P){var U=I.length;(!C||C<0)&&(C=0),(!P||P<0||P>U)&&(P=U);for(var le="",Ne=C;Ne<P;++Ne)le+=Rt(I[Ne]);return le}function qe(I,C,P){for(var U=I.slice(C,P),le="",Ne=0;Ne<U.length;Ne+=2)le+=String.fromCharCode(U[Ne]+U[Ne+1]*256);return le}o.prototype.slice=function(C,P){var U=this.length;C=~~C,P=P===void 0?U:~~P,C<0?(C+=U,C<0&&(C=0)):C>U&&(C=U),P<0?(P+=U,P<0&&(P=0)):P>U&&(P=U),P<C&&(P=C);var le=this.subarray(C,P);return le.__proto__=o.prototype,le};function Ue(I,C,P){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+C>P)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(C,P,U){C=C>>>0,P=P>>>0,U||Ue(C,P,this.length);for(var le=this[C],Ne=1,ze=0;++ze<P&&(Ne*=256);)le+=this[C+ze]*Ne;return le},o.prototype.readUIntBE=function(C,P,U){C=C>>>0,P=P>>>0,U||Ue(C,P,this.length);for(var le=this[C+--P],Ne=1;P>0&&(Ne*=256);)le+=this[C+--P]*Ne;return le},o.prototype.readUInt8=function(C,P){return C=C>>>0,P||Ue(C,1,this.length),this[C]},o.prototype.readUInt16LE=function(C,P){return C=C>>>0,P||Ue(C,2,this.length),this[C]|this[C+1]<<8},o.prototype.readUInt16BE=function(C,P){return C=C>>>0,P||Ue(C,2,this.length),this[C]<<8|this[C+1]},o.prototype.readUInt32LE=function(C,P){return C=C>>>0,P||Ue(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},o.prototype.readUInt32BE=function(C,P){return C=C>>>0,P||Ue(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},o.prototype.readIntLE=function(C,P,U){C=C>>>0,P=P>>>0,U||Ue(C,P,this.length);for(var le=this[C],Ne=1,ze=0;++ze<P&&(Ne*=256);)le+=this[C+ze]*Ne;return Ne*=128,le>=Ne&&(le-=Math.pow(2,8*P)),le},o.prototype.readIntBE=function(C,P,U){C=C>>>0,P=P>>>0,U||Ue(C,P,this.length);for(var le=P,Ne=1,ze=this[C+--le];le>0&&(Ne*=256);)ze+=this[C+--le]*Ne;return Ne*=128,ze>=Ne&&(ze-=Math.pow(2,8*P)),ze},o.prototype.readInt8=function(C,P){return C=C>>>0,P||Ue(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},o.prototype.readInt16LE=function(C,P){C=C>>>0,P||Ue(C,2,this.length);var U=this[C]|this[C+1]<<8;return U&32768?U|4294901760:U},o.prototype.readInt16BE=function(C,P){C=C>>>0,P||Ue(C,2,this.length);var U=this[C+1]|this[C]<<8;return U&32768?U|4294901760:U},o.prototype.readInt32LE=function(C,P){return C=C>>>0,P||Ue(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},o.prototype.readInt32BE=function(C,P){return C=C>>>0,P||Ue(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},o.prototype.readFloatLE=function(C,P){return C=C>>>0,P||Ue(C,4,this.length),r.read(this,C,!0,23,4)},o.prototype.readFloatBE=function(C,P){return C=C>>>0,P||Ue(C,4,this.length),r.read(this,C,!1,23,4)},o.prototype.readDoubleLE=function(C,P){return C=C>>>0,P||Ue(C,8,this.length),r.read(this,C,!0,52,8)},o.prototype.readDoubleBE=function(C,P){return C=C>>>0,P||Ue(C,8,this.length),r.read(this,C,!1,52,8)};function be(I,C,P,U,le,Ne){if(!o.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>le||C<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(C,P,U,le){if(C=+C,P=P>>>0,U=U>>>0,!le){var Ne=Math.pow(2,8*U)-1;be(this,C,P,U,Ne,0)}var ze=1,qt=0;for(this[P]=C&255;++qt<U&&(ze*=256);)this[P+qt]=C/ze&255;return P+U},o.prototype.writeUIntBE=function(C,P,U,le){if(C=+C,P=P>>>0,U=U>>>0,!le){var Ne=Math.pow(2,8*U)-1;be(this,C,P,U,Ne,0)}var ze=U-1,qt=1;for(this[P+ze]=C&255;--ze>=0&&(qt*=256);)this[P+ze]=C/qt&255;return P+U},o.prototype.writeUInt8=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,1,255,0),this[P]=C&255,P+1},o.prototype.writeUInt16LE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,2,65535,0),this[P]=C&255,this[P+1]=C>>>8,P+2},o.prototype.writeUInt16BE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,2,65535,0),this[P]=C>>>8,this[P+1]=C&255,P+2},o.prototype.writeUInt32LE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,4,4294967295,0),this[P+3]=C>>>24,this[P+2]=C>>>16,this[P+1]=C>>>8,this[P]=C&255,P+4},o.prototype.writeUInt32BE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,4,4294967295,0),this[P]=C>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=C&255,P+4},o.prototype.writeIntLE=function(C,P,U,le){if(C=+C,P=P>>>0,!le){var Ne=Math.pow(2,8*U-1);be(this,C,P,U,Ne-1,-Ne)}var ze=0,qt=1,Qt=0;for(this[P]=C&255;++ze<U&&(qt*=256);)C<0&&Qt===0&&this[P+ze-1]!==0&&(Qt=1),this[P+ze]=(C/qt>>0)-Qt&255;return P+U},o.prototype.writeIntBE=function(C,P,U,le){if(C=+C,P=P>>>0,!le){var Ne=Math.pow(2,8*U-1);be(this,C,P,U,Ne-1,-Ne)}var ze=U-1,qt=1,Qt=0;for(this[P+ze]=C&255;--ze>=0&&(qt*=256);)C<0&&Qt===0&&this[P+ze+1]!==0&&(Qt=1),this[P+ze]=(C/qt>>0)-Qt&255;return P+U},o.prototype.writeInt8=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,1,127,-128),C<0&&(C=255+C+1),this[P]=C&255,P+1},o.prototype.writeInt16LE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,2,32767,-32768),this[P]=C&255,this[P+1]=C>>>8,P+2},o.prototype.writeInt16BE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,2,32767,-32768),this[P]=C>>>8,this[P+1]=C&255,P+2},o.prototype.writeInt32LE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,4,2147483647,-2147483648),this[P]=C&255,this[P+1]=C>>>8,this[P+2]=C>>>16,this[P+3]=C>>>24,P+4},o.prototype.writeInt32BE=function(C,P,U){return C=+C,P=P>>>0,U||be(this,C,P,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[P]=C>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=C&255,P+4};function ye(I,C,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 Ke(I,C,P,U,le){return C=+C,P=P>>>0,le||ye(I,C,P,4),r.write(I,C,P,U,23,4),P+4}o.prototype.writeFloatLE=function(C,P,U){return Ke(this,C,P,!0,U)},o.prototype.writeFloatBE=function(C,P,U){return Ke(this,C,P,!1,U)};function We(I,C,P,U,le){return C=+C,P=P>>>0,le||ye(I,C,P,8),r.write(I,C,P,U,52,8),P+8}o.prototype.writeDoubleLE=function(C,P,U){return We(this,C,P,!0,U)},o.prototype.writeDoubleBE=function(C,P,U){return We(this,C,P,!1,U)},o.prototype.copy=function(C,P,U,le){if(!o.isBuffer(C))throw new TypeError("argument should be a Buffer");if(U||(U=0),!le&&le!==0&&(le=this.length),P>=C.length&&(P=C.length),P||(P=0),le>0&&le<U&&(le=U),le===U||C.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),C.length-P<le-U&&(le=C.length-P+U);var Ne=le-U;if(this===C&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(P,U,le);else if(this===C&&U<P&&P<le)for(var ze=Ne-1;ze>=0;--ze)C[ze+P]=this[ze+U];else Uint8Array.prototype.set.call(C,this.subarray(U,le),P);return Ne},o.prototype.fill=function(C,P,U,le){if(typeof C=="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(C.length===1){var Ne=C.charCodeAt(0);(le==="utf8"&&Ne<128||le==="latin1")&&(C=Ne)}}else typeof C=="number"&&(C=C&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,C||(C=0);var ze;if(typeof C=="number")for(ze=P;ze<U;++ze)this[ze]=C;else{var qt=o.isBuffer(C)?C:o.from(C,le),Qt=qt.length;if(Qt===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ze=0;ze<U-P;++ze)this[ze+P]=qt[ze%Qt]}return this};var Ze=/[^+/0-9A-Za-z-_]/g;function st(I){if(I=I.split("=")[0],I=I.trim().replace(Ze,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Rt(I){return I<16?"0"+I.toString(16):I.toString(16)}function kt(I,C){C=C||1/0;for(var P,U=I.length,le=null,Ne=[],ze=0;ze<U;++ze){if(P=I.charCodeAt(ze),P>55295&&P<57344){if(!le){if(P>56319){(C-=3)>-1&&Ne.push(239,191,189);continue}else if(ze+1===U){(C-=3)>-1&&Ne.push(239,191,189);continue}le=P;continue}if(P<56320){(C-=3)>-1&&Ne.push(239,191,189),le=P;continue}P=(le-55296<<10|P-56320)+65536}else le&&(C-=3)>-1&&Ne.push(239,191,189);if(le=null,P<128){if((C-=1)<0)break;Ne.push(P)}else if(P<2048){if((C-=2)<0)break;Ne.push(P>>6|192,P&63|128)}else if(P<65536){if((C-=3)<0)break;Ne.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((C-=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 Ae(I){for(var C=[],P=0;P<I.length;++P)C.push(I.charCodeAt(P)&255);return C}function nt(I,C){for(var P,U,le,Ne=[],ze=0;ze<I.length&&!((C-=2)<0);++ze)P=I.charCodeAt(ze),U=P>>8,le=P%256,Ne.push(le),Ne.push(U);return Ne}function mt(I){return t.toByteArray(st(I))}function _e(I,C,P,U){for(var le=0;le<U&&!(le+P>=C.length||le>=I.length);++le)C[le+P]=I[le];return le}function j(I,C){return I instanceof C||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===C.name}function te(I){return I!==I}})(p6);var Bu=Yr,Pn=Yle,v6=p6.Buffer;_r.__TYPEDARRAY_POOL||(_r.__TYPEDARRAY_POOL={UINT8:Pn([32,0]),UINT16:Pn([32,0]),UINT32:Pn([32,0]),BIGUINT64:Pn([32,0]),INT8:Pn([32,0]),INT16:Pn([32,0]),INT32:Pn([32,0]),BIGINT64:Pn([32,0]),FLOAT:Pn([32,0]),DOUBLE:Pn([32,0]),DATA:Pn([32,0]),UINT8C:Pn([32,0]),BUFFER:Pn([32,0])});var nse=typeof Uint8ClampedArray<"u",ise=typeof BigUint64Array<"u",ase=typeof BigInt64Array<"u",Jr=_r.__TYPEDARRAY_POOL;Jr.UINT8C||(Jr.UINT8C=Pn([32,0]));Jr.BIGUINT64||(Jr.BIGUINT64=Pn([32,0]));Jr.BIGINT64||(Jr.BIGINT64=Pn([32,0]));Jr.BUFFER||(Jr.BUFFER=Pn([32,0]));var C1=Jr.DATA,T1=Jr.BUFFER;wr.free=function(t){if(v6.isBuffer(t))T1[Bu.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=Bu.log2(r)|0;C1[n].push(t)}};function g6(e){if(!!e){var t=e.length||e.byteLength,r=Bu.log2(t);C1[r].push(e)}}function ose(e){g6(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=ose;wr.freeArrayBuffer=g6;wr.freeBuffer=function(t){T1[Bu.log2(t.length)].push(t)};wr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return di(t);switch(r){case"uint8":return NC(t);case"uint16":return m6(t);case"uint32":return y6(t);case"int8":return b6(t);case"int16":return w6(t);case"int32":return x6(t);case"float":case"float32":return _6(t);case"double":case"float64":return S6(t);case"uint8_clamped":return E6(t);case"bigint64":return C6(t);case"biguint64":return A6(t);case"buffer":return R6(t);case"data":case"dataview":return T6(t);default:return null}return null};function di(t){var t=Bu.nextPow2(t),r=Bu.log2(t),n=C1[r];return n.length>0?n.pop():new ArrayBuffer(t)}wr.mallocArrayBuffer=di;function NC(e){return new Uint8Array(di(e),0,e)}wr.mallocUint8=NC;function m6(e){return new Uint16Array(di(2*e),0,e)}wr.mallocUint16=m6;function y6(e){return new Uint32Array(di(4*e),0,e)}wr.mallocUint32=y6;function b6(e){return new Int8Array(di(e),0,e)}wr.mallocInt8=b6;function w6(e){return new Int16Array(di(2*e),0,e)}wr.mallocInt16=w6;function x6(e){return new Int32Array(di(4*e),0,e)}wr.mallocInt32=x6;function _6(e){return new Float32Array(di(4*e),0,e)}wr.mallocFloat32=wr.mallocFloat=_6;function S6(e){return new Float64Array(di(8*e),0,e)}wr.mallocFloat64=wr.mallocDouble=S6;function E6(e){return nse?new Uint8ClampedArray(di(e),0,e):NC(e)}wr.mallocUint8Clamped=E6;function A6(e){return ise?new BigUint64Array(di(8*e),0,e):null}wr.mallocBigUint64=A6;function C6(e){return ase?new BigInt64Array(di(8*e),0,e):null}wr.mallocBigInt64=C6;function T6(e){return new DataView(di(e),0,e)}wr.mallocDataView=T6;function R6(e){e=Bu.nextPow2(e);var t=Bu.log2(e),r=T1[t];return r.length>0?r.pop():new v6(e)}wr.mallocBuffer=R6;wr.clearCache=function(){for(var t=0;t<32;++t)Jr.UINT8[t].length=0,Jr.UINT16[t].length=0,Jr.UINT32[t].length=0,Jr.INT8[t].length=0,Jr.INT16[t].length=0,Jr.INT32[t].length=0,Jr.FLOAT[t].length=0,Jr.DOUBLE[t].length=0,Jr.BIGUINT64[t].length=0,Jr.BIGINT64[t].length=0,Jr.UINT8C[t].length=0,C1[t].length=0,T1[t].length=0};var O6=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},use=O6,lse=I6,yp=96;function IS(e,t){var r=use(getComputedStyle(e).getPropertyValue(t));return r[0]*I6(r[1],e)}function sse(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=IS(r,"font-size")/128;return t.removeChild(r),n}function I6(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 sse(e,t);case"em":return IS(t,"font-size");case"rem":return IS(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 yp;case"cm":return yp/2.54;case"mm":return yp/25.4;case"pt":return yp/72;case"pc":return yp/6}return 1}var fse=R1,cse=R1.canvas=document.createElement("canvas"),mm=cse.getContext("2d"),P6=ly([32,126]);R1.createPairs=ly;R1.ascii=P6;function R1(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=ly(t):Array.isArray(t)?n=t:(t.o?n=ly(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=P6),mm.font=i+"px "+e;for(var o=0;o<n.length;o++){var u=n[o],s=mm.measureText(u[0]).width+mm.measureText(u[1]).width,f=mm.measureText(u).width;if(Math.abs(s-f)>i*a){var d=(f-s)/i;r[u]=d*1e3}}return r}function ly(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 dse=uu;uu.canvas=document.createElement("canvas");uu.cache={};function uu(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,u=t.origin||"top";if(uu.cache[r]&&n<=uu.cache[r].em)return YP(uu.cache[r],u);var s=t.canvas||uu.canvas,f=s.getContext("2d"),d={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},v=Math.ceil(n*1.5);s.height=v,s.width=v*.5,f.font=o;var h="H",g={top:0};f.clearRect(0,0,v,v),f.textBaseline="top",f.fillStyle="black",f.fillText(h,0,0);var _=Aa(f.getImageData(0,0,v,v));f.clearRect(0,0,v,v),f.textBaseline="bottom",f.fillText(h,0,v);var A=Aa(f.getImageData(0,0,v,v));g.lineHeight=g.bottom=v-A+_,f.clearRect(0,0,v,v),f.textBaseline="alphabetic",f.fillText(h,0,v);var b=Aa(f.getImageData(0,0,v,v)),w=v-b-1+_;g.baseline=g.alphabetic=w,f.clearRect(0,0,v,v),f.textBaseline="middle",f.fillText(h,0,v*.5);var S=Aa(f.getImageData(0,0,v,v));g.median=g.middle=v-S-1+_-v*.5,f.clearRect(0,0,v,v),f.textBaseline="hanging",f.fillText(h,0,v*.5);var E=Aa(f.getImageData(0,0,v,v));g.hanging=v-E-1+_-v*.5,f.clearRect(0,0,v,v),f.textBaseline="ideographic",f.fillText(h,0,v);var R=Aa(f.getImageData(0,0,v,v));if(g.ideographic=v-R-1+_,d.upper&&(f.clearRect(0,0,v,v),f.textBaseline="top",f.fillText(d.upper,0,0),g.upper=Aa(f.getImageData(0,0,v,v)),g.capHeight=g.baseline-g.upper),d.lower&&(f.clearRect(0,0,v,v),f.textBaseline="top",f.fillText(d.lower,0,0),g.lower=Aa(f.getImageData(0,0,v,v)),g.xHeight=g.baseline-g.lower),d.tittle&&(f.clearRect(0,0,v,v),f.textBaseline="top",f.fillText(d.tittle,0,0),g.tittle=Aa(f.getImageData(0,0,v,v))),d.ascent&&(f.clearRect(0,0,v,v),f.textBaseline="top",f.fillText(d.ascent,0,0),g.ascent=Aa(f.getImageData(0,0,v,v))),d.descent&&(f.clearRect(0,0,v,v),f.textBaseline="top",f.fillText(d.descent,0,0),g.descent=XP(f.getImageData(0,0,v,v))),d.overshoot){f.clearRect(0,0,v,v),f.textBaseline="top",f.fillText(d.overshoot,0,0);var M=XP(f.getImageData(0,0,v,v));g.overshoot=M-w}for(var D in g)g[D]/=n;return g.em=n,uu.cache[r]=g,YP(g,u)}function YP(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 Aa(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 XP(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 vf=Lle,pse=qu,hse=f6.exports,vse=$le,gse=JB,A_=x1,mse=Gle,tu=wr,yse=w1,bse=zB,wse=O6,xse=lse,_se=fse,Sse=as,Ese=dse,Ase=sv,Cse=Yr,KP=Cse.nextPow2,QP=new gse,Gm=!1;if(document.body){var C_=document.body.appendChild(document.createElement("div"));C_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(C_).fontStretch&&(Gm=!0),document.body.removeChild(C_)}var Rr=function(t){Tse(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=vse(t),this.shader=QP.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||hse({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(),QP.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(bse(t)?t:{})};Rr.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:`
|
|
1167
|
+
precision highp float;
|
|
1168
|
+
attribute float width, charOffset, char;
|
|
1169
|
+
attribute vec2 position;
|
|
1170
|
+
uniform float fontSize, charStep, em, align, baseline;
|
|
1171
|
+
uniform vec4 viewport;
|
|
1172
|
+
uniform vec4 color;
|
|
1173
|
+
uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
|
|
1174
|
+
varying vec2 charCoord, charId;
|
|
1175
|
+
varying float charWidth;
|
|
1176
|
+
varying vec4 fontColor;
|
|
1177
|
+
void main () {
|
|
1178
|
+
vec2 offset = floor(em * (vec2(align + charOffset, baseline)
|
|
1179
|
+
+ vec2(positionOffset.x, -positionOffset.y)))
|
|
1180
|
+
/ (viewport.zw * scale.xy);
|
|
1181
|
+
|
|
1182
|
+
vec2 position = (position + translate) * scale;
|
|
1183
|
+
position += offset * scale;
|
|
1184
|
+
|
|
1185
|
+
charCoord = position * viewport.zw + viewport.xy;
|
|
1186
|
+
|
|
1187
|
+
gl_Position = vec4(position * 2. - 1., 0, 1);
|
|
1188
|
+
|
|
1189
|
+
gl_PointSize = charStep;
|
|
1190
|
+
|
|
1191
|
+
charId.x = mod(char, atlasDim.x);
|
|
1192
|
+
charId.y = floor(char / atlasDim.x);
|
|
1193
|
+
|
|
1194
|
+
charWidth = width * em;
|
|
1195
|
+
|
|
1196
|
+
fontColor = color / 255.;
|
|
1197
|
+
}`,frag:`
|
|
1198
|
+
precision highp float;
|
|
1199
|
+
uniform float fontSize, charStep, opacity;
|
|
1200
|
+
uniform vec2 atlasSize;
|
|
1201
|
+
uniform vec4 viewport;
|
|
1202
|
+
uniform sampler2D atlas;
|
|
1203
|
+
varying vec4 fontColor;
|
|
1204
|
+
varying vec2 charCoord, charId;
|
|
1205
|
+
varying float charWidth;
|
|
1206
|
+
|
|
1207
|
+
float lightness(vec4 color) {
|
|
1208
|
+
return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
void main () {
|
|
1212
|
+
vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
|
|
1213
|
+
float halfCharStep = floor(charStep * .5 + .5);
|
|
1214
|
+
|
|
1215
|
+
// invert y and shift by 1px (FF expecially needs that)
|
|
1216
|
+
uv.y = charStep - uv.y;
|
|
1217
|
+
|
|
1218
|
+
// ignore points outside of character bounding box
|
|
1219
|
+
float halfCharWidth = ceil(charWidth * .5);
|
|
1220
|
+
if (floor(uv.x) > halfCharStep + halfCharWidth ||
|
|
1221
|
+
floor(uv.x) < halfCharStep - halfCharWidth) return;
|
|
1222
|
+
|
|
1223
|
+
uv += charId * charStep;
|
|
1224
|
+
uv = uv / atlasSize;
|
|
1225
|
+
|
|
1226
|
+
vec4 color = fontColor;
|
|
1227
|
+
vec4 mask = texture2D(atlas, uv);
|
|
1228
|
+
|
|
1229
|
+
float maskY = lightness(mask);
|
|
1230
|
+
// float colorY = lightness(color);
|
|
1231
|
+
color.a *= maskY;
|
|
1232
|
+
color.a *= opacity;
|
|
1233
|
+
|
|
1234
|
+
// color.a += .1;
|
|
1235
|
+
|
|
1236
|
+
// antialiasing, see yiq color space y-channel formula
|
|
1237
|
+
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
|
|
1238
|
+
|
|
1239
|
+
gl_FragColor = color;
|
|
1240
|
+
}`}),n={};return{regl:t,draw:r,atlas:n}};Rr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=pse(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=yse(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=Ase(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=Rr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(We,Ze){if(typeof We=="string")try{We=vf.parse(We)}catch{We=vf.parse(Rr.baseFontSize+"px "+We)}else We=vf.parse(vf.stringify(We));var st=vf.stringify({size:Rr.baseFontSize,family:We.family,stretch:Gm?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style}),Rt=wse(We.size),kt=Math.round(Rt[0]*xse(Rt[1]));if(kt!==r.fontSize[Ze]&&(i=!0,r.fontSize[Ze]=kt),(!r.font[Ze]||st!=r.font[Ze].baseString)&&(n=!0,r.font[Ze]=Rr.fonts[st],!r.font[Ze])){var Ae=We.family.join(", "),nt=[We.style];We.style!=We.variant&&nt.push(We.variant),We.variant!=We.weight&&nt.push(We.weight),Gm&&We.weight!=We.stretch&&nt.push(We.stretch),r.font[Ze]={baseString:st,family:Ae,weight:We.weight,stretch:We.stretch,style:We.style,variant:We.variant,width:{},kerning:{},metrics:Ese(Ae,{origin:"top",fontSize:Rr.baseFontSize,fontStyle:nt.join(" ")})},Rr.fonts[st]=r.font[Ze]}}),(n||i)&&this.font.forEach(function(We,Ze){var st=vf.stringify({size:r.fontSize[Ze],family:We.family,stretch:Gm?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style});if(r.fontAtlas[Ze]=r.shader.atlas[st],!r.fontAtlas[Ze]){var Rt=We.metrics;r.shader.atlas[st]=r.fontAtlas[Ze]={fontString:st,step:Math.ceil(r.fontSize[Ze]*Rt.bottom*.5)*2,em:r.fontSize[Ze],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 u;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];u=[],this.font.forEach(function(We,Ze){Rr.atlasContext.font=We.baseString;for(var st=r.fontAtlas[Ze],Rt=0;Rt<r.text.length;Rt++){var kt=r.text.charAt(Rt);if(st.ids[kt]==null&&(st.ids[kt]=st.chars.length,st.chars.push(kt),u.push(kt)),We.width[kt]==null&&(We.width[kt]=Rr.atlasContext.measureText(kt).width/Rr.baseFontSize,r.kerning)){var Ae=[];for(var nt in We.width)Ae.push(nt+kt,kt+nt);Sse(We.kerning,_se(We.family,{pairs:Ae}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=tu.mallocFloat(this.count*2),v=0,h=0;v<this.counts.length;v++){var g=this.counts[v];if(f)for(var _=0;_<g;_++)d[h++]=t.position[v*2],d[h++]=t.position[v*2+1];else for(var A=0;A<g;A++)d[h++]=t.position[v][0],d[h++]=t.position[v][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),tu.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=tu.mallocUint8(this.count),w=tu.mallocFloat(this.count*2);this.textWidth=[];for(var S=0,E=0;S<this.counts.length;S++){for(var R=this.counts[S],M=this.font[S]||this.font[0],D=this.fontAtlas[S]||this.fontAtlas[0],z=0;z<R;z++){var N=this.text.charAt(E),L=this.text.charAt(E-1);if(b[E]=D.ids[N],w[E*2]=M.width[N],z){var ee=w[E*2-2],ue=w[E*2],pe=w[E*2-1],we=pe+ee*.5+ue*.5;if(this.kerning){var Ee=M.kerning[L+N];Ee&&(we+=Ee*.001)}w[E*2+1]=we}else w[E*2+1]=w[E*2]*.5;E++}this.textWidth.push(w.length?w[E*2-2]*.5+w[E*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),tu.freeUint8(b),tu.freeFloat(w),u.length&&this.font.forEach(function(We,Ze){var st=r.fontAtlas[Ze],Rt=st.step,kt=Math.floor(Rr.maxAtlasSize/Rt),Ae=Math.min(kt,st.chars.length),nt=Math.ceil(st.chars.length/Ae),mt=KP(Ae*Rt),_e=KP(nt*Rt);st.width=mt,st.height=_e,st.rows=nt,st.cols=Ae,st.em&&st.texture({data:mse({canvas:Rr.atlasCanvas,font:st.fontString,chars:st.chars,shape:[mt,_e],step:[Rt,Rt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(We,Ze){var st=Array.isArray(r.align)?r.align.length>1?r.align[Ze]:r.align[0]:r.align;if(typeof st=="number")return st;switch(st){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,Ze){var st=(r.font[Ze]||r.font[0]).metrics,Rt=0;return Rt+=st.bottom*.5,typeof We=="number"?Rt+=We-st.baseline:Rt+=-st[We],Rt*=-1,Rt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=A_(t.color,"uint8");else{var Je;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var je=t.color.length;Je=tu.mallocUint8(je);for(var me=(t.color.subarray||t.color.slice).bind(t.color),Fe=0;Fe<je;Fe+=4)Je.set(A_(me(Fe,Fe+4),"uint8"),Fe)}else{var qe=t.color.length;Je=tu.mallocUint8(qe*4);for(var Ue=0;Ue<qe;Ue++)Je.set(A_(t.color[Ue]||0,"uint8"),Ue*4)}this.color=Je}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var ye=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(ye);for(var Ke=0;Ke<this.batch.length;Ke++)this.batch[Ke]={count:this.counts.length>1?this.counts[Ke]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ke]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ke*4,Ke*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ke]:this.opacity,baseline:this.baselineOffset[Ke]!=null?this.baselineOffset[Ke]:this.baselineOffset[0],align:this.align?this.alignOffset[Ke]!=null?this.alignOffset[Ke]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ke]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ke*2,Ke*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=[]}};Rr.prototype.destroy=function(){};Rr.prototype.kerning=!0;Rr.prototype.position={constant:new Float32Array(2)};Rr.prototype.translate=null;Rr.prototype.scale=null;Rr.prototype.font=null;Rr.prototype.text="";Rr.prototype.positionOffset=[0,0];Rr.prototype.opacity=1;Rr.prototype.color=new Uint8Array([0,0,0,255]);Rr.prototype.alignOffset=[0,0];Rr.maxAtlasSize=1024;Rr.atlasCanvas=document.createElement("canvas");Rr.atlasContext=Rr.atlasCanvas.getContext("2d",{alpha:!1});Rr.baseFontSize=64;Rr.fonts={};function Tse(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Bde=Rr;function Rse(e,t){return e.parent===t.parent?1:2}function Ose(e){return e.reduce(Ise,0)/e.length}function Ise(e,t){return e+t.x}function Pse(e){return 1+e.reduce(kse,0)}function kse(e,t){return Math.max(e,t.y)}function Mse(e){for(var t;t=e.children;)e=t[0];return e}function Dse(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Fse(){var e=Rse,t=1,r=1,n=!1;function i(a){var o,u=0;a.eachAfter(function(h){var g=h.children;g?(h.x=Ose(g),h.y=Pse(g)):(h.x=o?u+=e(h,o):0,h.y=0,o=h)});var s=Mse(a),f=Dse(a),d=s.x-e(s,f)/2,v=f.x+e(f,s)/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)/(v-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 Nse(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 Lse(){return this.eachAfter(Nse)}function Bse(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 $se(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 zse(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 Use(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 jse(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Wse(e){for(var t=this,r=Gse(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 Gse(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 qse(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Hse(){var e=[];return this.each(function(t){e.push(t)}),e}function Vse(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Yse(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function LC(e,t){var r=new hc(e),n=+e.value&&(r.value=e.value),i,a=[r],o,u,s,f;for(t==null&&(t=Kse);i=a.pop();)if(n&&(i.value=+i.data.value),(u=t(i.data))&&(f=u.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new hc(u[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(k6)}function Xse(){return LC(this).eachBefore(Qse)}function Kse(e){return e.children}function Qse(e){e.data=e.data.data}function k6(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function hc(e){this.data=e,this.depth=this.height=0,this.parent=null}hc.prototype=LC.prototype={constructor:hc,count:Lse,each:Bse,eachAfter:zse,eachBefore:$se,sum:Use,sort:jse,path:Wse,ancestors:qse,descendants:Hse,leaves:Vse,links:Yse,copy:Xse};var Zse=Array.prototype.slice;function Jse(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 M6(e){for(var t=0,r=(e=Jse(Zse.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&D6(a,i)?++t:(a=tfe(n=efe(n,i)),t=0);return a}function efe(e,t){var r,n;if(T_(t,e))return[t];for(r=0;r<e.length;++r)if(ym(t,e[r])&&T_(Mp(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(ym(Mp(e[r],e[n]),t)&&ym(Mp(e[r],t),e[n])&&ym(Mp(e[n],t),e[r])&&T_(F6(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function ym(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 D6(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 T_(e,t){for(var r=0;r<t.length;++r)if(!D6(e,t[r]))return!1;return!0}function tfe(e){switch(e.length){case 1:return rfe(e[0]);case 2:return Mp(e[0],e[1]);case 3:return F6(e[0],e[1],e[2])}}function rfe(e){return{x:e.x,y:e.y,r:e.r}}function Mp(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,u=t.r,s=a-r,f=o-n,d=u-i,v=Math.sqrt(s*s+f*f);return{x:(r+a+s/v*d)/2,y:(n+o+f/v*d)/2,r:(v+i+u)/2}}function F6(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,u=t.y,s=t.r,f=r.x,d=r.y,v=r.r,h=n-o,g=n-f,_=i-u,A=i-d,b=s-a,w=v-a,S=n*n+i*i-a*a,E=S-o*o-u*u+s*s,R=S-f*f-d*d+v*v,M=g*_-h*A,D=(_*R-A*E)/(M*2)-n,z=(A*b-_*w)/M,N=(g*E-h*R)/(M*2)-i,L=(h*w-g*b)/M,ee=z*z+L*L-1,ue=2*(a+D*z+N*L),pe=D*D+N*N-a*a,we=-(ee?(ue+Math.sqrt(ue*ue-4*ee*pe))/(2*ee):pe/ue);return{x:n+D+z*we,y:i+N+L*we,r:we}}function ZP(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,u,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),u=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-u*o,r.y=e.y-i*o+u*n):(i=(f+a-s)/(2*f),u=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-u*o,r.y=t.y+i*o+u*n)):(r.x=t.x+r.r,r.y=t.y)}function JP(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 ek(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 bm(e){this._=e,this.next=null,this.previous=null}function N6(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,u,s,f,d,v;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;ZP(r,t,n=e[2]),t=new bm(t),r=new bm(r),n=new bm(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(u=3;u<i;++u){ZP(t._,r._,n=e[u]),n=new bm(n),s=r.next,f=t.previous,d=r._.r,v=t._.r;do if(d<=v){if(JP(s._,n._)){r=s,t.next=r,r.previous=t,--u;continue e}d+=s._.r,s=s.next}else{if(JP(f._,n._)){t=f,t.next=r,r.previous=t,--u;continue e}v+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=ek(t);(n=n.next)!==r;)(o=ek(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=M6(t),u=0;u<i;++u)t=e[u],t.x-=n.x,t.y-=n.y;return n.r}function nfe(e){return N6(e),e}function ife(e){return e==null?null:sy(e)}function sy(e){if(typeof e!="function")throw new Error;return e}function Pl(){return 0}function _f(e){return function(){return e}}function afe(e){return Math.sqrt(e.value)}function ofe(){var e=null,t=1,r=1,n=Pl;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(tk(e)).eachAfter(R_(n,.5)).eachBefore(rk(1)):a.eachBefore(tk(afe)).eachAfter(R_(Pl,1)).eachAfter(R_(n,a.r/Math.min(t,r))).eachBefore(rk(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=ife(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:_f(+a),i):n},i}function tk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function R_(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,u;if(o)for(i=0;i<a;++i)n[i].r+=o;if(u=N6(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=u+o}}}function rk(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 L6(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 cv(e,t,r,n,i){for(var a=e.children,o,u=-1,s=a.length,f=e.value&&(n-t)/e.value;++u<s;)o=a[u],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function ufe(){var e=1,t=1,r=0,n=!1;function i(o){var u=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/u,o.eachBefore(a(t,u)),n&&o.eachBefore(L6),o}function a(o,u){return function(s){s.children&&cv(s,s.x0,o*(s.depth+1)/u,s.x1,o*(s.depth+2)/u);var f=s.x0,d=s.y0,v=s.x1-r,h=s.y1-r;v<f&&(f=v=(f+v)/2),h<d&&(d=h=(d+h)/2),s.x0=f,s.y0=d,s.x1=v,s.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 nk="$",lfe={depth:-1},ik={};function sfe(e){return e.id}function ffe(e){return e.parentId}function cfe(){var e=sfe,t=ffe;function r(n){var i,a,o=n.length,u,s,f,d=new Array(o),v,h,g={};for(a=0;a<o;++a)i=n[a],f=d[a]=new hc(i),(v=e(i,a,n))!=null&&(v+="")&&(h=nk+(f.id=v),g[h]=h in g?ik:f);for(a=0;a<o;++a)if(f=d[a],v=t(n[a],a,n),v==null||!(v+="")){if(u)throw new Error("multiple roots");u=f}else{if(s=g[nk+v],!s)throw new Error("missing: "+v);if(s===ik)throw new Error("ambiguous: "+v);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!u)throw new Error("no root");if(u.parent=lfe,u.eachBefore(function(_){_.depth=_.parent.depth+1,--o}).eachBefore(k6),u.parent=null,o>0)throw new Error("cycle");return u}return r.id=function(n){return arguments.length?(e=sy(n),r):e},r.parentId=function(n){return arguments.length?(t=sy(n),r):t},r}function dfe(e,t){return e.parent===t.parent?1:2}function O_(e){var t=e.children;return t?t[0]:e.t}function I_(e){var t=e.children;return t?t[t.length-1]:e.t}function pfe(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 hfe(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 vfe(e,t,r){return e.a.parent===t.parent?e.a:r}function qm(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}qm.prototype=Object.create(hc.prototype);function gfe(e){for(var t=new qm(e,0),r,n=[t],i,a,o,u;r=n.pop();)if(a=r._.children)for(r.children=new Array(u=a.length),o=u-1;o>=0;--o)n.push(i=r.children[o]=new qm(a[o],o)),i.parent=r;return(t.parent=new qm(null,0)).children=[t],t}function mfe(){var e=dfe,t=1,r=1,n=null;function i(f){var d=gfe(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var v=f,h=f,g=f;f.eachBefore(function(S){S.x<v.x&&(v=S),S.x>h.x&&(h=S),S.depth>g.depth&&(g=S)});var _=v===h?1:e(v,h)/2,A=_-v.x,b=t/(h.x+_+A),w=r/(g.depth||1);f.eachBefore(function(S){S.x=(S.x+A)*b,S.y=S.depth*w})}return f}function a(f){var d=f.children,v=f.parent.children,h=f.i?v[f.i-1]:null;if(d){hfe(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=u(f,h,f.parent.A||v[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function u(f,d,v){if(d){for(var h=f,g=f,_=d,A=h.parent.children[0],b=h.m,w=g.m,S=_.m,E=A.m,R;_=I_(_),h=O_(h),_&&h;)A=O_(A),g=I_(g),g.a=f,R=_.z+S-h.z-b+e(_._,h._),R>0&&(pfe(vfe(_,f,v),f,R),b+=R,w+=R),S+=_.m,b+=h.m,E+=A.m,w+=g.m;_&&!I_(g)&&(g.t=_,g.m+=S-w),h&&!O_(A)&&(A.t=h,A.m+=b-E,v=f)}return v}function s(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 O1(e,t,r,n,i){for(var a=e.children,o,u=-1,s=a.length,f=e.value&&(i-r)/e.value;++u<s;)o=a[u],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var B6=(1+Math.sqrt(5))/2;function $6(e,t,r,n,i,a){for(var o=[],u=t.children,s,f,d=0,v=0,h=u.length,g,_,A=t.value,b,w,S,E,R,M,D;d<h;){g=i-r,_=a-n;do b=u[v++].value;while(!b&&v<h);for(w=S=b,M=Math.max(_/g,g/_)/(A*e),D=b*b*M,R=Math.max(S/D,D/w);v<h;++v){if(b+=f=u[v].value,f<w&&(w=f),f>S&&(S=f),D=b*b*M,E=Math.max(S/D,D/w),E>R){b-=f;break}R=E}o.push(s={value:b,dice:g<_,children:u.slice(d,v)}),s.dice?cv(s,r,n,i,A?n+=_*b/A:a):O1(s,r,n,A?r+=g*b/A:i,a),A-=b,d=v}return o}const z6=function e(t){function r(n,i,a,o,u){$6(t,n,i,a,o,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(B6);function yfe(){var e=z6,t=!1,r=1,n=1,i=[0],a=Pl,o=Pl,u=Pl,s=Pl,f=Pl;function d(h){return h.x0=h.y0=0,h.x1=r,h.y1=n,h.eachBefore(v),i=[0],t&&h.eachBefore(L6),h}function v(h){var g=i[h.depth],_=h.x0+g,A=h.y0+g,b=h.x1-g,w=h.y1-g;b<_&&(_=b=(_+b)/2),w<A&&(A=w=(A+w)/2),h.x0=_,h.y0=A,h.x1=b,h.y1=w,h.children&&(g=i[h.depth+1]=a(h)/2,_+=f(h)-g,A+=o(h)-g,b-=u(h)-g,w-=s(h)-g,b<_&&(_=b=(_+b)/2),w<A&&(A=w=(A+w)/2),e(h,_,A,b,w))}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=sy(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:_f(+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:_f(+h),d):o},d.paddingRight=function(h){return arguments.length?(u=typeof h=="function"?h:_f(+h),d):u},d.paddingBottom=function(h){return arguments.length?(s=typeof h=="function"?h:_f(+h),d):s},d.paddingLeft=function(h){return arguments.length?(f=typeof h=="function"?h:_f(+h),d):f},d}function bfe(e,t,r,n,i){var a=e.children,o,u=a.length,s,f=new Array(u+1);for(f[0]=s=o=0;o<u;++o)f[o+1]=s+=a[o].value;d(0,u,e.value,t,r,n,i);function d(v,h,g,_,A,b,w){if(v>=h-1){var S=a[v];S.x0=_,S.y0=A,S.x1=b,S.y1=w;return}for(var E=f[v],R=g/2+E,M=v+1,D=h-1;M<D;){var z=M+D>>>1;f[z]<R?M=z+1:D=z}R-f[M-1]<f[M]-R&&v+1<M&&--M;var N=f[M]-E,L=g-N;if(b-_>w-A){var ee=(_*L+b*N)/g;d(v,M,N,_,A,ee,w),d(M,h,L,ee,A,b,w)}else{var ue=(A*L+w*N)/g;d(v,M,N,_,A,b,ue),d(M,h,L,_,ue,b,w)}}}function wfe(e,t,r,n,i){(e.depth&1?O1:cv)(e,t,r,n,i)}const xfe=function e(t){function r(n,i,a,o,u){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,v,h=-1,g,_=s.length,A=n.value;++h<_;){for(f=s[h],d=f.children,v=f.value=0,g=d.length;v<g;++v)f.value+=d[v].value;f.dice?cv(f,i,a,o,a+=(u-a)*f.value/A):O1(f,i,a,i+=(o-i)*f.value/A,u),A-=f.value}else n._squarify=s=$6(t,n,i,a,o,u),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(B6),_fe=Object.freeze(Object.defineProperty({__proto__:null,cluster:Fse,hierarchy:LC,pack:ofe,packSiblings:nfe,packEnclose:M6,partition:ufe,stratify:cfe,tree:mfe,treemap:yfe,treemapBinary:bfe,treemapDice:cv,treemapSlice:O1,treemapSliceDice:wfe,treemapSquarify:z6,treemapResquarify:xfe},Symbol.toStringTag,{value:"Module"})),$de=is(_fe);function Pc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Hu(){}var rs=.7,vc=1/rs,Xf="\\s*([+-]?\\d+)\\s*",Ph="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ba="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sfe=/^#([0-9a-f]{3,8})$/,Efe=new RegExp("^rgb\\("+[Xf,Xf,Xf]+"\\)$"),Afe=new RegExp("^rgb\\("+[Ba,Ba,Ba]+"\\)$"),Cfe=new RegExp("^rgba\\("+[Xf,Xf,Xf,Ph]+"\\)$"),Tfe=new RegExp("^rgba\\("+[Ba,Ba,Ba,Ph]+"\\)$"),Rfe=new RegExp("^hsl\\("+[Ph,Ba,Ba]+"\\)$"),Ofe=new RegExp("^hsla\\("+[Ph,Ba,Ba,Ph]+"\\)$"),ak={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};Pc(Hu,kh,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ok,formatHex:ok,formatHsl:Ife,formatRgb:uk,toString:uk});function ok(){return this.rgb().formatHex()}function Ife(){return U6(this).formatHsl()}function uk(){return this.rgb().formatRgb()}function kh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Sfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lk(t):r===3?new Fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wm(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=Efe.exec(e))?new Fn(t[1],t[2],t[3],1):(t=Afe.exec(e))?new Fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Cfe.exec(e))?wm(t[1],t[2],t[3],t[4]):(t=Tfe.exec(e))?wm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rfe.exec(e))?ck(t[1],t[2]/100,t[3]/100,1):(t=Ofe.exec(e))?ck(t[1],t[2]/100,t[3]/100,t[4]):ak.hasOwnProperty(e)?lk(ak[e]):e==="transparent"?new Fn(NaN,NaN,NaN,0):null}function lk(e){return new Fn(e>>16&255,e>>8&255,e&255,1)}function wm(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fn(e,t,r,n)}function BC(e){return e instanceof Hu||(e=kh(e)),e?(e=e.rgb(),new Fn(e.r,e.g,e.b,e.opacity)):new Fn}function fy(e,t,r,n){return arguments.length===1?BC(e):new Fn(e,t,r,n==null?1:n)}function Fn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Pc(Fn,fy,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Fn(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:sk,formatHex:sk,formatRgb:fk,toString:fk}));function sk(){return"#"+P_(this.r)+P_(this.g)+P_(this.b)}function fk(){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 P_(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function ck(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,r,n)}function U6(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof Hu||(e=kh(e)),!e)return new Ia;if(e instanceof Ia)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,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ia(o,u,s,e.opacity)}function PS(e,t,r,n){return arguments.length===1?U6(e):new Ia(e,t,r,n==null?1:n)}function Ia(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pc(Ia,PS,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Ia(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 Fn(k_(e>=240?e-240:e+120,i,n),k_(e,i,n),k_(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 k_(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 j6=Math.PI/180,W6=180/Math.PI,cy=18,G6=.96422,q6=1,H6=.82521,V6=4/29,Kf=6/29,Y6=3*Kf*Kf,Pfe=Kf*Kf*Kf;function X6(e){if(e instanceof $a)return new $a(e.l,e.a,e.b,e.opacity);if(e instanceof go)return K6(e);e instanceof Fn||(e=BC(e));var t=N_(e.r),r=N_(e.g),n=N_(e.b),i=M_((.2225045*t+.7168786*r+.0606169*n)/q6),a,o;return t===r&&r===n?a=o=i:(a=M_((.4360747*t+.3850649*r+.1430804*n)/G6),o=M_((.0139322*t+.0971045*r+.7141733*n)/H6)),new $a(116*i-16,500*(a-i),200*(i-o),e.opacity)}function kS(e,t,r,n){return arguments.length===1?X6(e):new $a(e,t,r,n==null?1:n)}function $a(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Pc($a,kS,dv(Hu,{brighter:function(e){return new $a(this.l+cy*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new $a(this.l-cy*(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=G6*D_(t),e=q6*D_(e),r=H6*D_(r),new Fn(F_(3.1338561*t-1.6168667*e-.4906146*r),F_(-.9787684*t+1.9161415*e+.033454*r),F_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function M_(e){return e>Pfe?Math.pow(e,1/3):e/Y6+V6}function D_(e){return e>Kf?e*e*e:Y6*(e-V6)}function F_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function N_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kfe(e){if(e instanceof go)return new go(e.h,e.c,e.l,e.opacity);if(e instanceof $a||(e=X6(e)),e.a===0&&e.b===0)return new go(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*W6;return new go(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function MS(e,t,r,n){return arguments.length===1?kfe(e):new go(e,t,r,n==null?1:n)}function go(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function K6(e){if(isNaN(e.h))return new $a(e.l,0,0,e.opacity);var t=e.h*j6;return new $a(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pc(go,MS,dv(Hu,{brighter:function(e){return new go(this.h,this.c,this.l+cy*(e==null?1:e),this.opacity)},darker:function(e){return new go(this.h,this.c,this.l-cy*(e==null?1:e),this.opacity)},rgb:function(){return K6(this).rgb()}}));var Q6=-.14861,$C=1.78277,zC=-.29227,I1=-.90649,Mh=1.97294,dk=Mh*I1,pk=Mh*$C,hk=$C*zC-I1*Q6;function Mfe(e){if(e instanceof Hl)return new Hl(e.h,e.s,e.l,e.opacity);e instanceof Fn||(e=BC(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(hk*n+dk*t-pk*r)/(hk+dk-pk),a=n-i,o=(Mh*(r-i)-zC*a)/I1,u=Math.sqrt(o*o+a*a)/(Mh*i*(1-i)),s=u?Math.atan2(o,a)*W6-120:NaN;return new Hl(s<0?s+360:s,u,i,e.opacity)}function DS(e,t,r,n){return arguments.length===1?Mfe(e):new Hl(e,t,r,n==null?1:n)}function Hl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pc(Hl,DS,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Hl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Hl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*j6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new Fn(255*(t+r*(Q6*n+$C*i)),255*(t+r*(zC*n+I1*i)),255*(t+r*(Mh*n)),this.opacity)}}));function Z6(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 J6(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,u=n<t-1?e[n+2]:2*a-i;return Z6((r-n/t)*t,o,i,a,u)}}function e8(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],u=e[(n+2)%t];return Z6((r-n/t)*t,i,a,o,u)}}function P1(e){return function(){return e}}function t8(e,t){return function(r){return e+r*t}}function Dfe(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 k1(e,t){var r=t-e;return r?t8(e,r>180||r<-180?r-360*Math.round(r/360):r):P1(isNaN(e)?t:e)}function Ffe(e){return(e=+e)==1?_n:function(t,r){return r-t?Dfe(t,r,e):P1(isNaN(t)?r:t)}}function _n(e,t){var r=t-e;return r?t8(e,r):P1(isNaN(e)?t:e)}const FS=function e(t){var r=Ffe(t);function n(i,a){var o=r((i=fy(i)).r,(a=fy(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),f=_n(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=u(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function r8(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,u;for(o=0;o<r;++o)u=fy(t[o]),n[o]=u.r||0,i[o]=u.g||0,a[o]=u.b||0;return n=e(n),i=e(i),a=e(a),u.opacity=1,function(s){return u.r=n(s),u.g=i(s),u.b=a(s),u+""}}}var Nfe=r8(J6),Lfe=r8(e8);function UC(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 n8(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bfe(e,t){return(n8(t)?UC:i8)(e,t)}function i8(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]=jC(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function a8(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ra(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function o8(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]=jC(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var NS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L_=new RegExp(NS.source,"g");function $fe(e){return function(){return e}}function zfe(e){return function(t){return e(t)+""}}function u8(e,t){var r=NS.lastIndex=L_.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=NS.exec(e))&&(i=L_.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ra(n,i)})),r=L_.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?zfe(s[0].x):$fe(t):(t=s.length,function(f){for(var d=0,v;d<t;++d)u[(v=s[d]).i]=v.x(f);return u.join("")})}function jC(e,t){var r=typeof t,n;return t==null||r==="boolean"?P1(t):(r==="number"?Ra:r==="string"?(n=kh(t))?(t=n,FS):u8:t instanceof kh?FS:t instanceof Date?a8:n8(t)?UC:Array.isArray(t)?i8:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?o8:Ra)(e,t)}function Ufe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function jfe(e,t){var r=k1(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function Wfe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var vk=180/Math.PI,LS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function l8(e,t,r,n,i,a){var o,u,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(u=Math.sqrt(r*r+n*n))&&(r/=u,n/=u,s/=u),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*vk,skewX:Math.atan(s)*vk,scaleX:o,scaleY:u}}var bp,B_,gk,xm;function Gfe(e){return e==="none"?LS:(bp||(bp=document.createElement("DIV"),B_=document.documentElement,gk=document.defaultView),bp.style.transform=e,e=gk.getComputedStyle(B_.appendChild(bp),null).getPropertyValue("transform"),B_.removeChild(bp),e=e.slice(7,-1).split(","),l8(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function qfe(e){return e==null||(xm||(xm=document.createElementNS("http://www.w3.org/2000/svg","g")),xm.setAttribute("transform",e),!(e=xm.transform.baseVal.consolidate()))?LS:(e=e.matrix,l8(e.a,e.b,e.c,e.d,e.e,e.f))}function s8(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,v,h,g,_){if(f!==v||d!==h){var A=g.push("translate(",null,t,null,r);_.push({i:A-4,x:Ra(f,v)},{i:A-2,x:Ra(d,h)})}else(v||h)&&g.push("translate("+v+t+h+r)}function o(f,d,v,h){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),h.push({i:v.push(i(v)+"rotate(",null,n)-2,x:Ra(f,d)})):d&&v.push(i(v)+"rotate("+d+n)}function u(f,d,v,h){f!==d?h.push({i:v.push(i(v)+"skewX(",null,n)-2,x:Ra(f,d)}):d&&v.push(i(v)+"skewX("+d+n)}function s(f,d,v,h,g,_){if(f!==v||d!==h){var A=g.push(i(g)+"scale(",null,",",null,")");_.push({i:A-4,x:Ra(f,v)},{i:A-2,x:Ra(d,h)})}else(v!==1||h!==1)&&g.push(i(g)+"scale("+v+","+h+")")}return function(f,d){var v=[],h=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,v,h),o(f.rotate,d.rotate,v,h),u(f.skewX,d.skewX,v,h),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,v,h),f=d=null,function(g){for(var _=-1,A=h.length,b;++_<A;)v[(b=h[_]).i]=b.x(g);return v.join("")}}}var Hfe=s8(Gfe,"px, ","px)","deg)"),Vfe=s8(qfe,", ",")",")"),wp=Math.SQRT2,$_=2,mk=4,Yfe=1e-12;function yk(e){return((e=Math.exp(e))+1/e)/2}function Xfe(e){return((e=Math.exp(e))-1/e)/2}function Kfe(e){return((e=Math.exp(2*e))-1)/(e+1)}function Qfe(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],u=t[2],s=a-r,f=o-n,d=s*s+f*f,v,h;if(d<Yfe)h=Math.log(u/i)/wp,v=function(S){return[r+S*s,n+S*f,i*Math.exp(wp*S*h)]};else{var g=Math.sqrt(d),_=(u*u-i*i+mk*d)/(2*i*$_*g),A=(u*u-i*i-mk*d)/(2*u*$_*g),b=Math.log(Math.sqrt(_*_+1)-_),w=Math.log(Math.sqrt(A*A+1)-A);h=(w-b)/wp,v=function(S){var E=S*h,R=yk(b),M=i/($_*g)*(R*Kfe(wp*E+b)-Xfe(b));return[r+M*s,n+M*f,i*R/yk(wp*E+b)]}}return v.duration=h*1e3,v}function f8(e){return function(t,r){var n=e((t=PS(t)).h,(r=PS(r)).h),i=_n(t.s,r.s),a=_n(t.l,r.l),o=_n(t.opacity,r.opacity);return function(u){return t.h=n(u),t.s=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const Zfe=f8(k1);var Jfe=f8(_n);function ece(e,t){var r=_n((e=kS(e)).l,(t=kS(t)).l),n=_n(e.a,t.a),i=_n(e.b,t.b),a=_n(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 c8(e){return function(t,r){var n=e((t=MS(t)).h,(r=MS(r)).h),i=_n(t.c,r.c),a=_n(t.l,r.l),o=_n(t.opacity,r.opacity);return function(u){return t.h=n(u),t.c=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const tce=c8(k1);var rce=c8(_n);function d8(e){return function t(r){r=+r;function n(i,a){var o=e((i=DS(i)).h,(a=DS(a)).h),u=_n(i.s,a.s),s=_n(i.l,a.l),f=_n(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=u(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const nce=d8(k1);var ice=d8(_n);function ace(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 u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function oce(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const uce=Object.freeze(Object.defineProperty({__proto__:null,interpolate:jC,interpolateArray:Bfe,interpolateBasis:J6,interpolateBasisClosed:e8,interpolateDate:a8,interpolateDiscrete:Ufe,interpolateHue:jfe,interpolateNumber:Ra,interpolateNumberArray:UC,interpolateObject:o8,interpolateRound:Wfe,interpolateString:u8,interpolateTransformCss:Hfe,interpolateTransformSvg:Vfe,interpolateZoom:Qfe,interpolateRgb:FS,interpolateRgbBasis:Nfe,interpolateRgbBasisClosed:Lfe,interpolateHsl:Zfe,interpolateHslLong:Jfe,interpolateLab:ece,interpolateHcl:tce,interpolateHclLong:rce,interpolateCubehelix:nce,interpolateCubehelixLong:ice,piecewise:ace,quantize:oce},Symbol.toStringTag,{value:"Module"})),zde=is(uce);var lce="Expected a function",p8="__lodash_hash_undefined__",h8=1/0,sce=9007199254740991,fce="[object Function]",cce="[object GeneratorFunction]",dce="[object Symbol]",pce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hce=/^\w*$/,vce=/^\./,gce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mce=/[\\^$.*+?()[\]{}|]/g,yce=/\\(\\)?/g,bce=/^\[object .+?Constructor\]$/,wce=/^(?:0|[1-9]\d*)$/,xce=typeof _r=="object"&&_r&&_r.Object===Object&&_r,_ce=typeof self=="object"&&self&&self.Object===Object&&self,WC=xce||_ce||Function("return this")();function Sce(e,t){return e==null?void 0:e[t]}function Ece(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ace=Array.prototype,Cce=Function.prototype,v8=Object.prototype,z_=WC["__core-js_shared__"],bk=function(){var e=/[^.]+$/.exec(z_&&z_.keys&&z_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g8=Cce.toString,M1=v8.hasOwnProperty,m8=v8.toString,Tce=RegExp("^"+g8.call(M1).replace(mce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wk=WC.Symbol,Rce=Ace.splice,Oce=y8(WC,"Map"),Dh=y8(Object,"create"),xk=wk?wk.prototype:void 0,_k=xk?xk.toString:void 0;function ns(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 Ice(){this.__data__=Dh?Dh(null):{}}function Pce(e){return this.has(e)&&delete this.__data__[e]}function kce(e){var t=this.__data__;if(Dh){var r=t[e];return r===p8?void 0:r}return M1.call(t,e)?t[e]:void 0}function Mce(e){var t=this.__data__;return Dh?t[e]!==void 0:M1.call(t,e)}function Dce(e,t){var r=this.__data__;return r[e]=Dh&&t===void 0?p8:t,this}ns.prototype.clear=Ice;ns.prototype.delete=Pce;ns.prototype.get=kce;ns.prototype.has=Mce;ns.prototype.set=Dce;function kc(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 Fce(){this.__data__=[]}function Nce(e){var t=this.__data__,r=D1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Rce.call(t,r,1),!0}function Lce(e){var t=this.__data__,r=D1(t,e);return r<0?void 0:t[r][1]}function Bce(e){return D1(this.__data__,e)>-1}function $ce(e,t){var r=this.__data__,n=D1(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}kc.prototype.clear=Fce;kc.prototype.delete=Nce;kc.prototype.get=Lce;kc.prototype.has=Bce;kc.prototype.set=$ce;function bs(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 zce(){this.__data__={hash:new ns,map:new(Oce||kc),string:new ns}}function Uce(e){return F1(this,e).delete(e)}function jce(e){return F1(this,e).get(e)}function Wce(e){return F1(this,e).has(e)}function Gce(e,t){return F1(this,e).set(e,t),this}bs.prototype.clear=zce;bs.prototype.delete=Uce;bs.prototype.get=jce;bs.prototype.has=Wce;bs.prototype.set=Gce;function qce(e,t,r){var n=e[t];(!(M1.call(e,t)&&b8(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function D1(e,t){for(var r=e.length;r--;)if(b8(e[r][0],t))return r;return-1}function Hce(e){if(!dy(e)||Jce(e))return!1;var t=nde(e)||Ece(e)?Tce:bce;return t.test(rde(e))}function Vce(e,t,r,n){if(!dy(e))return e;t=Qce(t,e)?[t]:Xce(t);for(var i=-1,a=t.length,o=a-1,u=e;u!=null&&++i<a;){var s=tde(t[i]),f=r;if(i!=o){var d=u[s];f=n?n(d,s,u):void 0,f===void 0&&(f=dy(d)?d:Kce(t[i+1])?[]:{})}qce(u,s,f),u=u[s]}return e}function Yce(e){if(typeof e=="string")return e;if(qC(e))return _k?_k.call(e):"";var t=e+"";return t=="0"&&1/e==-h8?"-0":t}function Xce(e){return w8(e)?e:ede(e)}function F1(e,t){var r=e.__data__;return Zce(t)?r[typeof t=="string"?"string":"hash"]:r.map}function y8(e,t){var r=Sce(e,t);return Hce(r)?r:void 0}function Kce(e,t){return t=t==null?sce:t,!!t&&(typeof e=="number"||wce.test(e))&&e>-1&&e%1==0&&e<t}function Qce(e,t){if(w8(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qC(e)?!0:hce.test(e)||!pce.test(e)||t!=null&&e in Object(t)}function Zce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jce(e){return!!bk&&bk in e}var ede=GC(function(e){e=ade(e);var t=[];return vce.test(e)&&t.push(""),e.replace(gce,function(r,n,i,a){t.push(i?a.replace(yce,"$1"):n||r)}),t});function tde(e){if(typeof e=="string"||qC(e))return e;var t=e+"";return t=="0"&&1/e==-h8?"-0":t}function rde(e){if(e!=null){try{return g8.call(e)}catch{}try{return e+""}catch{}}return""}function GC(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(lce);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(GC.Cache||bs),r}GC.Cache=bs;function b8(e,t){return e===t||e!==e&&t!==t}var w8=Array.isArray;function nde(e){var t=dy(e)?m8.call(e):"";return t==fce||t==cce}function dy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ide(e){return!!e&&typeof e=="object"}function qC(e){return typeof e=="symbol"||ide(e)&&m8.call(e)==dce}function ade(e){return e==null?"":Yce(e)}function ode(e,t,r){return e==null?e:Vce(e,t,r)}var Ude=ode;export{Sde as $,yr as A,Jn as B,dde as C,sde as D,WU as E,Cp as F,lde as G,fde as H,Uy as I,cde as J,hde as K,ZX as L,mde as M,gde as N,$X as O,pde as P,yde as Q,Nn as R,XE as S,vde as T,bde as U,wde as V,tn as W,xde as X,_de as Y,jL as Z,Ede as _,Cde as a,Ude as a0,Pde as b,kde as c,ore as d,EB as e,Tde as f,Rde as g,Ode as h,RC as i,Gie as j,Mde as k,x1 as l,Ide as m,DB as n,f6 as o,MB as p,Fde as q,Ade as r,Dde as s,eie as t,Nde as u,Lde as v,Bde as w,$de as x,zde as y,Ut as z};
|
|
1241
|
+
//# sourceMappingURL=vendor.f4457b06.js.map
|