@deephaven/embed-grid 0.24.1-hierarchical-table.1 → 0.25.1-beta.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.
@@ -1,1238 +0,0 @@
1
- import{g as oE,c as Ar,a as fs}from"./helpers.162e09a8.js";var uE={exports:{}},Xi={},Ut={exports:{}},Cr={};/*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */var hT=Object.getOwnPropertySymbols,H8=Object.prototype.hasOwnProperty,V8=Object.prototype.propertyIsEnumerable;function Y8(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function X8(){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 cs=X8()?Object.assign:function(e,t){for(var r,n=Y8(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)H8.call(r,o)&&(n[o]=r[o]);if(hT){i=hT(r);for(var u=0;u<i.length;u++)V8.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 lE=cs,Sc=60103,Kk=60106;Cr.Fragment=60107;Cr.StrictMode=60108;Cr.Profiler=60114;var Qk=60109,Zk=60110,Jk=60112;Cr.Suspense=60113;var eM=60115,tM=60116;if(typeof Symbol=="function"&&Symbol.for){var ua=Symbol.for;Sc=ua("react.element"),Kk=ua("react.portal"),Cr.Fragment=ua("react.fragment"),Cr.StrictMode=ua("react.strict_mode"),Cr.Profiler=ua("react.profiler"),Qk=ua("react.provider"),Zk=ua("react.context"),Jk=ua("react.forward_ref"),Cr.Suspense=ua("react.suspense"),eM=ua("react.memo"),tM=ua("react.lazy")}var vT=typeof Symbol=="function"&&Symbol.iterator;function K8(e){return e===null||typeof e!="object"?null:(e=vT&&e[vT]||e["@@iterator"],typeof e=="function"?e:null)}function Yh(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 rM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nM={};function Ec(e,t,r){this.props=e,this.context=t,this.refs=nM,this.updater=r||rM}Ec.prototype.isReactComponent={};Ec.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Yh(85));this.updater.enqueueSetState(this,e,t,"setState")};Ec.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iM(){}iM.prototype=Ec.prototype;function sE(e,t,r){this.props=e,this.context=t,this.refs=nM,this.updater=r||rM}var fE=sE.prototype=new iM;fE.constructor=sE;lE(fE,Ec.prototype);fE.isPureReactComponent=!0;var cE={current:null},aM=Object.prototype.hasOwnProperty,oM={key:!0,ref:!0,__self:!0,__source:!0};function uM(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)aM.call(t,n)&&!oM.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:Sc,type:e,key:a,ref:o,props:i,_owner:cE.current}}function Q8(e,t){return{$$typeof:Sc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dE(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sc}function Z8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var gT=/\/+/g;function Bb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Z8(""+e.key):t.toString(36)}function Hm(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 Sc:case Kk:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Bb(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(gT,"$&/")+"/"),Hm(i,t,r,"",function(f){return f})):i!=null&&(dE(i)&&(i=Q8(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(gT,"$&/")+"/")+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+Bb(a,u);o+=Hm(a,t,r,s,i)}else if(s=K8(e),typeof s=="function")for(e=s.call(e),u=0;!(a=e.next()).done;)a=a.value,s=n+Bb(a,u++),o+=Hm(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(Yh(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function zg(e,t,r){if(e==null)return e;var n=[],i=0;return Hm(e,n,"","",function(a){return t.call(r,a,i++)}),n}function J8(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 lM={current:null};function To(){var e=lM.current;if(e===null)throw Error(Yh(321));return e}var e$={ReactCurrentDispatcher:lM,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:cE,IsSomeRendererActing:{current:!1},assign:lE};Cr.Children={map:zg,forEach:function(e,t,r){zg(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return zg(e,function(){t++}),t},toArray:function(e){return zg(e,function(t){return t})||[]},only:function(e){if(!dE(e))throw Error(Yh(143));return e}};Cr.Component=Ec;Cr.PureComponent=sE;Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e$;Cr.cloneElement=function(e,t,r){if(e==null)throw Error(Yh(267,e));var n=lE({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=cE.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)aM.call(t,s)&&!oM.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:Sc,type:e.type,key:i,ref:a,props:n,_owner:o}};Cr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Zk,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Qk,_context:e},e.Consumer=e};Cr.createElement=uM;Cr.createFactory=function(e){var t=uM.bind(null,e);return t.type=e,t};Cr.createRef=function(){return{current:null}};Cr.forwardRef=function(e){return{$$typeof:Jk,render:e}};Cr.isValidElement=dE;Cr.lazy=function(e){return{$$typeof:tM,_payload:{_status:-1,_result:e},_init:J8}};Cr.memo=function(e,t){return{$$typeof:eM,type:e,compare:t===void 0?null:t}};Cr.useCallback=function(e,t){return To().useCallback(e,t)};Cr.useContext=function(e,t){return To().useContext(e,t)};Cr.useDebugValue=function(){};Cr.useEffect=function(e,t){return To().useEffect(e,t)};Cr.useImperativeHandle=function(e,t,r){return To().useImperativeHandle(e,t,r)};Cr.useLayoutEffect=function(e,t){return To().useLayoutEffect(e,t)};Cr.useMemo=function(e,t){return To().useMemo(e,t)};Cr.useReducer=function(e,t,r){return To().useReducer(e,t,r)};Cr.useRef=function(e){return To().useRef(e)};Cr.useState=function(e){return To().useState(e)};Cr.version="17.0.2";(function(e){e.exports=Cr})(Ut);const Cn=oE(Ut.exports);var sM={exports:{}},fM={};/** @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}}}})(fM);(function(e){e.exports=fM})(sM);/** @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 Fy=Ut.exports,Vr=cs,Tn=sM.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(!Fy)throw Error(gt(227));var cM=new Set,fh={};function ds(e,t){rc(e,t),rc(e+"Capture",t)}function rc(e,t){for(fh[e]=t,e=0;e<t.length;e++)cM.add(t[e])}var _o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),t$=/^[: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]*$/,mT=Object.prototype.hasOwnProperty,yT={},bT={};function r$(e){return mT.call(bT,e)?!0:mT.call(yT,e)?!1:t$.test(e)?bT[e]=!0:(yT[e]=!0,!1)}function n$(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 i$(e,t,r,n){if(t===null||typeof t>"u"||n$(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 ni(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 zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zn[e]=new ni(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zn[t]=new ni(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zn[e]=new ni(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zn[e]=new ni(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){zn[e]=new ni(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zn[e]=new ni(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zn[e]=new ni(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zn[e]=new ni(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zn[e]=new ni(e,5,!1,e.toLowerCase(),null,!1,!1)});var pE=/[\-:]([a-z])/g;function hE(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(pE,hE);zn[t]=new ni(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(pE,hE);zn[t]=new ni(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(pE,hE);zn[t]=new ni(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zn[e]=new ni(e,1,!1,e.toLowerCase(),null,!1,!1)});zn.xlinkHref=new ni("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zn[e]=new ni(e,1,!1,e.toLowerCase(),null,!0,!0)});function vE(e,t,r,n){var i=zn.hasOwnProperty(t)?zn[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||(i$(t,r,i,n)&&(r=null),n||i===null?r$(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 ps=Fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Rp=60103,Ll=60106,su=60107,gE=60108,Up=60114,mE=60109,yE=60110,Ny=60112,jp=60113,v0=60120,Ly=60115,bE=60116,wE=60121,xE=60128,dM=60129,_E=60130,o2=60131;if(typeof Symbol=="function"&&Symbol.for){var Sn=Symbol.for;Rp=Sn("react.element"),Ll=Sn("react.portal"),su=Sn("react.fragment"),gE=Sn("react.strict_mode"),Up=Sn("react.profiler"),mE=Sn("react.provider"),yE=Sn("react.context"),Ny=Sn("react.forward_ref"),jp=Sn("react.suspense"),v0=Sn("react.suspense_list"),Ly=Sn("react.memo"),bE=Sn("react.lazy"),wE=Sn("react.block"),Sn("react.scope"),xE=Sn("react.opaque.id"),dM=Sn("react.debug_trace_mode"),_E=Sn("react.offscreen"),o2=Sn("react.legacy_hidden")}var wT=typeof Symbol=="function"&&Symbol.iterator;function Kd(e){return e===null||typeof e!="object"?null:(e=wT&&e[wT]||e["@@iterator"],typeof e=="function"?e:null)}var $b;function Op(e){if($b===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);$b=t&&t[1]||""}return`
27
- `+$b+e}var zb=!1;function Ug(e,t){if(!e||zb)return"";zb=!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{zb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Op(e):""}function a$(e){switch(e.tag){case 5:return Op(e.type);case 16:return Op("Lazy");case 13:return Op("Suspense");case 19:return Op("SuspenseList");case 0:case 2:case 15:return e=Ug(e.type,!1),e;case 11:return e=Ug(e.type.render,!1),e;case 22:return e=Ug(e.type._render,!1),e;case 1:return e=Ug(e.type,!0),e;default:return""}}function Bf(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 su:return"Fragment";case Ll:return"Portal";case Up:return"Profiler";case gE:return"StrictMode";case jp:return"Suspense";case v0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yE:return(e.displayName||"Context")+".Consumer";case mE:return(e._context.displayName||"Context")+".Provider";case Ny:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ly:return Bf(e.type);case wE:return Bf(e._render);case bE:t=e._payload,e=e._init;try{return Bf(e(t))}catch{}}return null}function Ou(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function pM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o$(e){var t=pM(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 jg(e){e._valueTracker||(e._valueTracker=o$(e))}function hM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=pM(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function g0(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 u2(e,t){var r=t.checked;return Vr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function xT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ou(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 vM(e,t){t=t.checked,t!=null&&vE(e,"checked",t,!1)}function l2(e,t){vM(e,t);var r=Ou(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")?s2(e,t.type,r):t.hasOwnProperty("defaultValue")&&s2(e,t.type,Ou(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _T(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 s2(e,t,r){(t!=="number"||g0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function u$(e){var t="";return Fy.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function f2(e,t){return e=Vr({children:void 0},t),(t=u$(t.children))&&(e.children=t),e}function $f(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=""+Ou(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 c2(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(gt(91));return Vr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ST(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:Ou(r)}}function gM(e,t){var r=Ou(t.value),n=Ou(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 ET(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var d2={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function mM(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 p2(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wg,yM=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!==d2.svg||"innerHTML"in e)e.innerHTML=t;else{for(Wg=Wg||document.createElement("div"),Wg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ch(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Wp={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},l$=["Webkit","ms","Moz","O"];Object.keys(Wp).forEach(function(e){l$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wp[t]=Wp[e]})});function bM(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Wp.hasOwnProperty(e)&&Wp[e]?(""+t).trim():t+"px"}function wM(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=bM(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var s$=Vr({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 h2(e,t){if(t){if(s$[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 v2(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 SE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var g2=null,zf=null,Uf=null;function AT(e){if(e=Kh(e)){if(typeof g2!="function")throw Error(gt(280));var t=e.stateNode;t&&(t=Wy(t),g2(e.stateNode,e.type,t))}}function xM(e){zf?Uf?Uf.push(e):Uf=[e]:zf=e}function _M(){if(zf){var e=zf,t=Uf;if(Uf=zf=null,AT(e),t)for(e=0;e<t.length;e++)AT(t[e])}}function EE(e,t){return e(t)}function SM(e,t,r,n,i){return e(t,r,n,i)}function AE(){}var EM=EE,Bl=!1,Ub=!1;function CE(){(zf!==null||Uf!==null)&&(AE(),_M())}function f$(e,t,r){if(Ub)return e(t,r);Ub=!0;try{return EM(e,t,r)}finally{Ub=!1,CE()}}function dh(e,t){var r=e.stateNode;if(r===null)return null;var n=Wy(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 m2=!1;if(_o)try{var Qd={};Object.defineProperty(Qd,"passive",{get:function(){m2=!0}}),window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch{m2=!1}function c$(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 Gp=!1,m0=null,y0=!1,y2=null,d$={onError:function(e){Gp=!0,m0=e}};function p$(e,t,r,n,i,a,o,u,s){Gp=!1,m0=null,c$.apply(d$,arguments)}function h$(e,t,r,n,i,a,o,u,s){if(p$.apply(this,arguments),Gp){if(Gp){var f=m0;Gp=!1,m0=null}else throw Error(gt(198));y0||(y0=!0,y2=f)}}function hs(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 AM(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 CT(e){if(hs(e)!==e)throw Error(gt(188))}function v$(e){var t=e.alternate;if(!t){if(t=hs(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 CT(i),e;if(a===n)return CT(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 CM(e){if(e=v$(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 TT(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var TM,TE,RM,OM,b2=!1,Da=[],yu=null,bu=null,wu=null,ph=new Map,hh=new Map,Zd=[],RT="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 w2(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function OT(e,t){switch(e){case"focusin":case"focusout":yu=null;break;case"dragenter":case"dragleave":bu=null;break;case"mouseover":case"mouseout":wu=null;break;case"pointerover":case"pointerout":ph.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hh.delete(t.pointerId)}}function Jd(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=w2(t,r,n,i,a),t!==null&&(t=Kh(t),t!==null&&TE(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function g$(e,t,r,n,i){switch(t){case"focusin":return yu=Jd(yu,e,t,r,n,i),!0;case"dragenter":return bu=Jd(bu,e,t,r,n,i),!0;case"mouseover":return wu=Jd(wu,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return ph.set(a,Jd(ph.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,hh.set(a,Jd(hh.get(a)||null,e,t,r,n,i)),!0}return!1}function m$(e){var t=$l(e.target);if(t!==null){var r=hs(t);if(r!==null){if(t=r.tag,t===13){if(t=AM(r),t!==null){e.blockedOn=t,OM(e.lanePriority,function(){Tn.unstable_runWithPriority(e.priority,function(){RM(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=PE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Kh(r),t!==null&&TE(t),e.blockedOn=r,!1;t.shift()}return!0}function IT(e,t,r){Vm(e)&&r.delete(t)}function y$(){for(b2=!1;0<Da.length;){var e=Da[0];if(e.blockedOn!==null){e=Kh(e.blockedOn),e!==null&&TM(e);break}for(var t=e.targetContainers;0<t.length;){var r=PE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Da.shift()}yu!==null&&Vm(yu)&&(yu=null),bu!==null&&Vm(bu)&&(bu=null),wu!==null&&Vm(wu)&&(wu=null),ph.forEach(IT),hh.forEach(IT)}function ep(e,t){e.blockedOn===t&&(e.blockedOn=null,b2||(b2=!0,Tn.unstable_scheduleCallback(Tn.unstable_NormalPriority,y$)))}function IM(e){function t(i){return ep(i,e)}if(0<Da.length){ep(Da[0],e);for(var r=1;r<Da.length;r++){var n=Da[r];n.blockedOn===e&&(n.blockedOn=null)}}for(yu!==null&&ep(yu,e),bu!==null&&ep(bu,e),wu!==null&&ep(wu,e),ph.forEach(t),hh.forEach(t),r=0;r<Zd.length;r++)n=Zd[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Zd.length&&(r=Zd[0],r.blockedOn===null);)m$(r),r.blockedOn===null&&Zd.shift()}function Gg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Rf={animationend:Gg("Animation","AnimationEnd"),animationiteration:Gg("Animation","AnimationIteration"),animationstart:Gg("Animation","AnimationStart"),transitionend:Gg("Transition","TransitionEnd")},jb={},PM={};_o&&(PM=document.createElement("div").style,"AnimationEvent"in window||(delete Rf.animationend.animation,delete Rf.animationiteration.animation,delete Rf.animationstart.animation),"TransitionEvent"in window||delete Rf.transitionend.transition);function By(e){if(jb[e])return jb[e];if(!Rf[e])return e;var t=Rf[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in PM)return jb[e]=t[r];return e}var kM=By("animationend"),MM=By("animationiteration"),DM=By("animationstart"),FM=By("transitionend"),NM=new Map,RE=new Map,b$=["abort","abort",kM,"animationEnd",MM,"animationIteration",DM,"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",FM,"transitionEnd","waiting","waiting"];function OE(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)),RE.set(n,t),NM.set(n,i),ds(i,[n])}}var w$=Tn.unstable_now;w$();var zr=8;function xf(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 x$(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 _$(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 vh(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=xf(s),i=zr):(u&=a,u!==0&&(n=xf(u),i=zr))}else a=r&~o,a!==0?(n=xf(a),i=zr):u!==0&&(n=xf(u),i=zr);if(n===0)return 0;if(n=31-Iu(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&o)===0){if(xf(t),i<=zr)return t;zr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Iu(t),i=1<<r,n|=e[r],t&=~i;return n}function LM(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function b0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=_f(24&~t),e===0?b0(10,t):e;case 10:return e=_f(192&~t),e===0?b0(8,t):e;case 8:return e=_f(3584&~t),e===0&&(e=_f(4186112&~t),e===0&&(e=512)),e;case 2:return t=_f(805306368&~t),t===0&&(t=268435456),t}throw Error(gt(358,e))}function _f(e){return e&-e}function Wb(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $y(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Iu(t),e[t]=r}var Iu=Math.clz32?Math.clz32:A$,S$=Math.log,E$=Math.LN2;function A$(e){return e===0?32:31-(S$(e)/E$|0)|0}var C$=Tn.unstable_UserBlockingPriority,T$=Tn.unstable_runWithPriority,Ym=!0;function R$(e,t,r,n){Bl||AE();var i=IE,a=Bl;Bl=!0;try{SM(i,e,t,r,n)}finally{(Bl=a)||CE()}}function O$(e,t,r,n){T$(C$,IE.bind(null,e,t,r,n))}function IE(e,t,r,n){if(Ym){var i;if((i=(t&4)===0)&&0<Da.length&&-1<RT.indexOf(e))e=w2(null,e,t,r,n),Da.push(e);else{var a=PE(e,t,r,n);if(a===null)i&&OT(e,n);else{if(i){if(-1<RT.indexOf(e)){e=w2(a,e,t,r,n),Da.push(e);return}if(g$(a,e,t,r,n))return;OT(e,n)}KM(e,t,n,null,r)}}}}function PE(e,t,r,n){var i=SE(n);if(i=$l(i),i!==null){var a=hs(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=AM(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 KM(e,t,n,i,r),null}var cu=null,kE=null,Xm=null;function BM(){if(Xm)return Xm;var e,t=kE,r=t.length,n,i="value"in cu?cu.value:cu.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 Xm=i.slice(e,1<n?1-n:void 0)}function Km(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 qg(){return!0}function PT(){return!1}function Oi(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)?qg:PT,this.isPropagationStopped=PT,this}return Vr(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=qg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=qg)},persist:function(){},isPersistent:qg}),t}var Ac={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ME=Oi(Ac),Xh=Vr({},Ac,{view:0,detail:0}),I$=Oi(Xh),Gb,qb,tp,zy=Vr({},Xh,{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!==tp&&(tp&&e.type==="mousemove"?(Gb=e.screenX-tp.screenX,qb=e.screenY-tp.screenY):qb=Gb=0,tp=e),Gb)},movementY:function(e){return"movementY"in e?e.movementY:qb}}),kT=Oi(zy),P$=Vr({},zy,{dataTransfer:0}),k$=Oi(P$),M$=Vr({},Xh,{relatedTarget:0}),Hb=Oi(M$),D$=Vr({},Ac,{animationName:0,elapsedTime:0,pseudoElement:0}),F$=Oi(D$),N$=Vr({},Ac,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L$=Oi(N$),B$=Vr({},Ac,{data:0}),MT=Oi(B$),$$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z$={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"},U$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U$[e])?!!t[e]:!1}function DE(){return j$}var W$=Vr({},Xh,{key:function(e){if(e.key){var t=$$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Km(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z$[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"?Km(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Km(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G$=Oi(W$),q$=Vr({},zy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),DT=Oi(q$),H$=Vr({},Xh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DE}),V$=Oi(H$),Y$=Vr({},Ac,{propertyName:0,elapsedTime:0,pseudoElement:0}),X$=Oi(Y$),K$=Vr({},zy,{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}),Q$=Oi(K$),Z$=[9,13,27,32],FE=_o&&"CompositionEvent"in window,qp=null;_o&&"documentMode"in document&&(qp=document.documentMode);var J$=_o&&"TextEvent"in window&&!qp,$M=_o&&(!FE||qp&&8<qp&&11>=qp),FT=String.fromCharCode(32),NT=!1;function zM(e,t){switch(e){case"keyup":return Z$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Of=!1;function ez(e,t){switch(e){case"compositionend":return UM(t);case"keypress":return t.which!==32?null:(NT=!0,FT);case"textInput":return e=t.data,e===FT&&NT?null:e;default:return null}}function tz(e,t){if(Of)return e==="compositionend"||!FE&&zM(e,t)?(e=BM(),Xm=kE=cu=null,Of=!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 $M&&t.locale!=="ko"?null:t.data;default:return null}}var rz={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 LT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rz[e.type]:t==="textarea"}function jM(e,t,r,n){xM(n),t=w0(t,"onChange"),0<t.length&&(r=new ME("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Hp=null,gh=null;function nz(e){VM(e,0)}function Uy(e){var t=Pf(e);if(hM(t))return e}function iz(e,t){if(e==="change")return t}var WM=!1;if(_o){var Vb;if(_o){var Yb="oninput"in document;if(!Yb){var BT=document.createElement("div");BT.setAttribute("oninput","return;"),Yb=typeof BT.oninput=="function"}Vb=Yb}else Vb=!1;WM=Vb&&(!document.documentMode||9<document.documentMode)}function $T(){Hp&&(Hp.detachEvent("onpropertychange",GM),gh=Hp=null)}function GM(e){if(e.propertyName==="value"&&Uy(gh)){var t=[];if(jM(t,gh,e,SE(e)),e=nz,Bl)e(t);else{Bl=!0;try{EE(e,t)}finally{Bl=!1,CE()}}}}function az(e,t,r){e==="focusin"?($T(),Hp=t,gh=r,Hp.attachEvent("onpropertychange",GM)):e==="focusout"&&$T()}function oz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uy(gh)}function uz(e,t){if(e==="click")return Uy(t)}function lz(e,t){if(e==="input"||e==="change")return Uy(t)}function sz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $i=typeof Object.is=="function"?Object.is:sz,fz=Object.prototype.hasOwnProperty;function mh(e,t){if($i(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!fz.call(t,r[n])||!$i(e[r[n]],t[r[n]]))return!1;return!0}function zT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function UT(e,t){var r=zT(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=zT(r)}}function qM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jT(){for(var e=window,t=g0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=g0(e.document)}return t}function x2(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 cz=_o&&"documentMode"in document&&11>=document.documentMode,If=null,_2=null,Vp=null,S2=!1;function WT(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;S2||If==null||If!==g0(n)||(n=If,"selectionStart"in n&&x2(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}),Vp&&mh(Vp,n)||(Vp=n,n=w0(_2,"onSelect"),0<n.length&&(t=new ME("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=If)))}OE("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);OE("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);OE(b$,2);for(var GT="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Xb=0;Xb<GT.length;Xb++)RE.set(GT[Xb],0);rc("onMouseEnter",["mouseout","mouseover"]);rc("onMouseLeave",["mouseout","mouseover"]);rc("onPointerEnter",["pointerout","pointerover"]);rc("onPointerLeave",["pointerout","pointerover"]);ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ip="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),HM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ip));function qT(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,h$(n,t,void 0,e),e.currentTarget=null}function VM(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;qT(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;qT(i,u,f),a=s}}}if(y0)throw e=y2,y0=!1,y2=null,e}function Ur(e,t){var r=ZM(t),n=e+"__bubble";r.has(n)||(XM(t,e,2,!1),r.add(n))}var HT="_reactListening"+Math.random().toString(36).slice(2);function YM(e){e[HT]||(e[HT]=!0,cM.forEach(function(t){HM.has(t)||VT(t,!1,e,null),VT(t,!0,e,null)}))}function VT(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&&HM.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=ZM(a),u=e+"__"+(t?"capture":"bubble");o.has(u)||(t&&(i|=4),XM(a,e,i,t),o.add(u))}function XM(e,t,r,n){var i=RE.get(t);switch(i===void 0?2:i){case 0:i=R$;break;case 1:i=O$;break;default:i=IE}r=i.bind(null,t,r,e),i=void 0,!m2||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 KM(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=$l(u),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}u=u.parentNode}}n=n.return}f$(function(){var f=a,d=SE(r),v=[];e:{var h=NM.get(e);if(h!==void 0){var g=ME,_=e;switch(e){case"keypress":if(Km(r)===0)break e;case"keydown":case"keyup":g=G$;break;case"focusin":_="focus",g=Hb;break;case"focusout":_="blur",g=Hb;break;case"beforeblur":case"afterblur":g=Hb;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=kT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=k$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=V$;break;case kM:case MM:case DM:g=F$;break;case FM:g=X$;break;case"scroll":g=I$;break;case"wheel":g=Q$;break;case"copy":case"cut":case"paste":g=L$;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=dh(S,w),R!=null&&A.push(yh(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)&&($l(_)||_[Cc]))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,_=_?$l(_):null,_!==null&&(b=hs(_),_!==b||_.tag!==5&&_.tag!==6)&&(_=null)):(g=null,_=f),g!==_)){if(A=kT,R="onMouseLeave",w="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(A=DT,R="onPointerLeave",w="onPointerEnter",S="pointer"),b=g==null?h:Pf(g),E=_==null?h:Pf(_),h=new A(R,S+"leave",g,r,d),h.target=b,h.relatedTarget=E,R=null,$l(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=cf(E))S++;for(E=0,R=w;R;R=cf(R))E++;for(;0<S-E;)A=cf(A),S--;for(;0<E-S;)w=cf(w),E--;for(;S--;){if(A===w||w!==null&&A===w.alternate)break t;A=cf(A),w=cf(w)}A=null}else A=null;g!==null&&YT(v,h,g,A,!1),_!==null&&b!==null&&YT(v,b,_,A,!0)}}e:{if(h=f?Pf(f):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var M=iz;else if(LT(h))if(WM)M=lz;else{M=oz;var D=az}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(M=uz);if(M&&(M=M(e,f))){jM(v,M,r,d);break e}D&&D(e,h,f),e==="focusout"&&(D=h._wrapperState)&&D.controlled&&h.type==="number"&&s2(h,"number",h.value)}switch(D=f?Pf(f):window,e){case"focusin":(LT(D)||D.contentEditable==="true")&&(If=D,_2=f,Vp=null);break;case"focusout":Vp=_2=If=null;break;case"mousedown":S2=!0;break;case"contextmenu":case"mouseup":case"dragend":S2=!1,WT(v,r,d);break;case"selectionchange":if(cz)break;case"keydown":case"keyup":WT(v,r,d)}var z;if(FE)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 Of?zM(e,r)&&(N="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(N="onCompositionStart");N&&($M&&r.locale!=="ko"&&(Of||N!=="onCompositionStart"?N==="onCompositionEnd"&&Of&&(z=BM()):(cu=d,kE="value"in cu?cu.value:cu.textContent,Of=!0)),D=w0(f,N),0<D.length&&(N=new MT(N,e,null,r,d),v.push({event:N,listeners:D}),z?N.data=z:(z=UM(r),z!==null&&(N.data=z)))),(z=J$?ez(e,r):tz(e,r))&&(f=w0(f,"onBeforeInput"),0<f.length&&(d=new MT("onBeforeInput","beforeinput",null,r,d),v.push({event:d,listeners:f}),d.data=z))}VM(v,t)})}function yh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function w0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=dh(e,r),a!=null&&n.unshift(yh(e,a,i)),a=dh(e,t),a!=null&&n.push(yh(e,a,i))),e=e.return}return n}function cf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function YT(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=dh(r,a),s!=null&&o.unshift(yh(r,s,u))):i||(s=dh(r,a),s!=null&&o.push(yh(r,s,u)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function x0(){}var Kb=null,Qb=null;function QM(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function E2(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 XT=typeof setTimeout=="function"?setTimeout:void 0,dz=typeof clearTimeout=="function"?clearTimeout:void 0;function NE(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function jf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function KT(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 Zb=0;function pz(e){return{$$typeof:xE,toString:e,valueOf:e}}var jy=Math.random().toString(36).slice(2),du="__reactFiber$"+jy,_0="__reactProps$"+jy,Cc="__reactContainer$"+jy,QT="__reactEvents$"+jy;function $l(e){var t=e[du];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Cc]||r[du]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=KT(e);e!==null;){if(r=e[du])return r;e=KT(e)}return t}e=r,r=e.parentNode}return null}function Kh(e){return e=e[du]||e[Cc],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(gt(33))}function Wy(e){return e[_0]||null}function ZM(e){var t=e[QT];return t===void 0&&(t=e[QT]=new Set),t}var A2=[],kf=-1;function Wu(e){return{current:e}}function Wr(e){0>kf||(e.current=A2[kf],A2[kf]=null,kf--)}function Jr(e,t){kf++,A2[kf]=e.current,e.current=t}var Pu={},Vn=Wu(Pu),pi=Wu(!1),Jl=Pu;function nc(e,t){var r=e.type.contextTypes;if(!r)return Pu;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 hi(e){return e=e.childContextTypes,e!=null}function S0(){Wr(pi),Wr(Vn)}function ZT(e,t,r){if(Vn.current!==Pu)throw Error(gt(168));Jr(Vn,t),Jr(pi,r)}function JM(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,Bf(t)||"Unknown",i));return Vr({},r,n)}function Qm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pu,Jl=Vn.current,Jr(Vn,e),Jr(pi,pi.current),!0}function JT(e,t,r){var n=e.stateNode;if(!n)throw Error(gt(169));r?(e=JM(e,t,Jl),n.__reactInternalMemoizedMergedChildContext=e,Wr(pi),Wr(Vn),Jr(Vn,e)):Wr(pi),Jr(pi,r)}var LE=null,Vl=null,hz=Tn.unstable_runWithPriority,BE=Tn.unstable_scheduleCallback,C2=Tn.unstable_cancelCallback,vz=Tn.unstable_shouldYield,e3=Tn.unstable_requestPaint,T2=Tn.unstable_now,gz=Tn.unstable_getCurrentPriorityLevel,Gy=Tn.unstable_ImmediatePriority,eD=Tn.unstable_UserBlockingPriority,tD=Tn.unstable_NormalPriority,rD=Tn.unstable_LowPriority,nD=Tn.unstable_IdlePriority,Jb={},mz=e3!==void 0?e3:function(){},ho=null,Zm=null,ew=!1,t3=T2(),qn=1e4>t3?T2:function(){return T2()-t3};function ic(){switch(gz()){case Gy:return 99;case eD:return 98;case tD:return 97;case rD:return 96;case nD:return 95;default:throw Error(gt(332))}}function iD(e){switch(e){case 99:return Gy;case 98:return eD;case 97:return tD;case 96:return rD;case 95:return nD;default:throw Error(gt(332))}}function es(e,t){return e=iD(e),hz(e,t)}function bh(e,t,r){return e=iD(e),BE(e,t,r)}function Ga(){if(Zm!==null){var e=Zm;Zm=null,C2(e)}aD()}function aD(){if(!ew&&ho!==null){ew=!0;var e=0;try{var t=ho;es(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),ho=null}catch(r){throw ho!==null&&(ho=ho.slice(e+1)),BE(Gy,Ga),r}finally{ew=!1}}}var yz=ps.ReactCurrentBatchConfig;function sa(e,t){if(e&&e.defaultProps){t=Vr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var E0=Wu(null),A0=null,Mf=null,C0=null;function $E(){C0=Mf=A0=null}function zE(e){var t=E0.current;Wr(E0),e.type._context._currentValue=t}function oD(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 Wf(e,t){A0=e,C0=Mf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(fa=!0),e.firstContext=null)}function Hi(e,t){if(C0!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(C0=e,t=1073741823),t={context:e,observedBits:t,next:null},Mf===null){if(A0===null)throw Error(gt(308));Mf=t,A0.dependencies={lanes:0,firstContext:t,responders:null}}else Mf=Mf.next=t;return e._currentValue}var au=!1;function UE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function uD(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 xu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _u(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 r3(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 wh(e,t,r,n){var i=e.updateQueue;au=!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=Vr({},v,u);break e;case 2:au=!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,Zh|=o,e.lanes=o,e.memoizedState=v}}function n3(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 lD=new Fy.Component().refs;function T0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Vr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var qy={isMounted:function(e){return(e=e._reactInternals)?hs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ci(),i=Su(e),a=xu(n,i);a.payload=t,r!=null&&(a.callback=r),_u(e,a),Eu(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ci(),i=Su(e),a=xu(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),_u(e,a),Eu(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ci(),n=Su(e),i=xu(r,n);i.tag=2,t!=null&&(i.callback=t),_u(e,i),Eu(e,n,r)}};function i3(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?!mh(r,n)||!mh(i,a):!0}function sD(e,t,r){var n=!1,i=Pu,a=t.contextType;return typeof a=="object"&&a!==null?a=Hi(a):(i=hi(t)?Jl:Vn.current,n=t.contextTypes,a=(n=n!=null)?nc(e,i):Pu),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=qy,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function a3(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&&qy.enqueueReplaceState(t,t.state,null)}function R2(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=lD,UE(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Hi(a):(a=hi(t)?Jl:Vn.current,i.context=nc(e,a)),wh(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(T0(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&&qy.enqueueReplaceState(i,i.state,null),wh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Hg=Array.isArray;function rp(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===lD&&(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 Vg(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 fD(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=Mu(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=aw(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=rp(b,w,S),E.return=b,E):(E=r0(S.type,S.key,S.props,null,b.mode,E),E.ref=rp(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=ow(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=Vf(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=aw(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Rp:return S=r0(w.type,w.key,w.props,null,b.mode,S),S.ref=rp(b,null,w),S.return=b,S;case Ll:return w=ow(w,b.mode,S),w.return=b,w}if(Hg(w)||Kd(w))return w=Vf(w,b.mode,S,null),w.return=b,w;Vg(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 Rp:return S.key===R?S.type===su?d(b,w,S.props.children,E,R):s(b,w,S,E):null;case Ll:return S.key===R?f(b,w,S,E):null}if(Hg(S)||Kd(S))return R!==null?null:d(b,w,S,E,null);Vg(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 Rp:return b=b.get(E.key===null?S:E.key)||null,E.type===su?d(w,b,E.props.children,R,E.key):s(w,b,E,R);case Ll:return b=b.get(E.key===null?S:E.key)||null,f(w,b,E,R)}if(Hg(E)||Kd(E))return b=b.get(S)||null,d(w,b,E,R,null);Vg(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=Kd(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===su&&S.key===null;R&&(S=S.props.children);var M=typeof S=="object"&&S!==null;if(M)switch(S.$$typeof){case Rp:e:{for(M=S.key,R=w;R!==null;){if(R.key===M){switch(R.tag){case 7:if(S.type===su){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=rp(b,R,S),w.return=b,b=w;break e}}r(b,R);break}else t(b,R);R=R.sibling}S.type===su?(w=Vf(S.props.children,b.mode,E,S.key),w.return=b,b=w):(E=r0(S.type,S.key,S.props,null,b.mode,E),E.ref=rp(b,w,S),E.return=b,b=E)}return o(b);case Ll: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=ow(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=aw(S,b.mode,E),w.return=b,b=w),o(b);if(Hg(S))return _(b,w,S,E);if(Kd(S))return A(b,w,S,E);if(M&&Vg(b,S),typeof S>"u"&&!R)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(gt(152,Bf(b.type)||"Component"))}return r(b,w)}}var R0=fD(!0),cD=fD(!1),Qh={},Ba=Wu(Qh),xh=Wu(Qh),_h=Wu(Qh);function zl(e){if(e===Qh)throw Error(gt(174));return e}function O2(e,t){switch(Jr(_h,t),Jr(xh,e),Jr(Ba,Qh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:p2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=p2(t,e)}Wr(Ba),Jr(Ba,t)}function ac(){Wr(Ba),Wr(xh),Wr(_h)}function o3(e){zl(_h.current);var t=zl(Ba.current),r=p2(t,e.type);t!==r&&(Jr(xh,e),Jr(Ba,r))}function jE(e){xh.current===e&&(Wr(Ba),Wr(xh))}var Qr=Wu(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 mo=null,pu=null,$a=!1;function dD(e,t){var r=zi(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function u3(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 I2(e){if($a){var t=pu;if(t){var r=t;if(!u3(e,t)){if(t=jf(r.nextSibling),!t||!u3(e,t)){e.flags=e.flags&-1025|2,$a=!1,mo=e;return}dD(mo,r)}mo=e,pu=jf(t.firstChild)}else e.flags=e.flags&-1025|2,$a=!1,mo=e}}function l3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mo=e}function Yg(e){if(e!==mo)return!1;if(!$a)return l3(e),$a=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!E2(t,e.memoizedProps))for(t=pu;t;)dD(e,t),t=jf(t.nextSibling);if(l3(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){pu=jf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}pu=null}}else pu=mo?jf(e.stateNode.nextSibling):null;return!0}function tw(){pu=mo=null,$a=!1}var Gf=[];function WE(){for(var e=0;e<Gf.length;e++)Gf[e]._workInProgressVersionPrimary=null;Gf.length=0}var Yp=ps.ReactCurrentDispatcher,Wi=ps.ReactCurrentBatchConfig,Sh=0,rn=null,Gn=null,Nn=null,I0=!1,Xp=!1;function si(){throw Error(gt(321))}function GE(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!$i(e[r],t[r]))return!1;return!0}function qE(e,t,r,n,i,a){if(Sh=a,rn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yp.current=e===null||e.memoizedState===null?wz:xz,e=r(n,i),Xp){a=0;do{if(Xp=!1,!(25>a))throw Error(gt(301));a+=1,Nn=Gn=null,t.updateQueue=null,Yp.current=_z,e=r(n,i)}while(Xp)}if(Yp.current=D0,t=Gn!==null&&Gn.next!==null,Sh=0,Nn=Gn=rn=null,I0=!1,t)throw Error(gt(300));return e}function Ul(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nn===null?rn.memoizedState=Nn=e:Nn=Nn.next=e,Nn}function vs(){if(Gn===null){var e=rn.alternate;e=e!==null?e.memoizedState:null}else e=Gn.next;var t=Nn===null?rn.memoizedState:Nn.next;if(t!==null)Nn=t,Gn=e;else{if(e===null)throw Error(gt(310));Gn=e,e={memoizedState:Gn.memoizedState,baseState:Gn.baseState,baseQueue:Gn.baseQueue,queue:Gn.queue,next:null},Nn===null?rn.memoizedState=Nn=e:Nn=Nn.next=e}return Nn}function Fa(e,t){return typeof t=="function"?t(e):t}function np(e){var t=vs(),r=t.queue;if(r===null)throw Error(gt(311));r.lastRenderedReducer=e;var n=Gn,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((Sh&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,rn.lanes|=f,Zh|=f}s=s.next}while(s!==null&&s!==i);u===null?a=n:u.next=o,$i(n,t.memoizedState)||(fa=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ip(e){var t=vs(),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);$i(a,t.memoizedState)||(fa=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function s3(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=(Sh&e)===e)&&(t._workInProgressVersionPrimary=n,Gf.push(t))),e)return r(t._source);throw Gf.push(t),Error(gt(350))}function pD(e,t,r,n){var i=ti;if(i===null)throw Error(gt(349));var a=t._getVersion,o=a(t._source),u=Yp.current,s=u.useState(function(){return s3(i,t,r)}),f=s[1],d=s[0];s=Nn;var v=e.memoizedState,h=v.refs,g=h.getSnapshot,_=v.source;v=v.subscribe;var A=rn;return e.memoizedState={refs:h,source:t,subscribe:n},u.useEffect(function(){h.getSnapshot=r,h.setSnapshot=f;var b=a(t._source);if(!$i(o,b)){b=r(t._source),$i(d,b)||(f(b),b=Su(A),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var w=i.entanglements,S=b;0<S;){var E=31-Iu(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=Su(A);i.mutableReadLanes|=S&i.pendingLanes}catch(E){w(function(){throw E})}})},[t,n]),$i(g,r)&&$i(_,t)&&$i(v,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:d},e.dispatch=f=YE.bind(null,rn,e),s.queue=e,s.baseQueue=null,d=s3(i,t,r),s.memoizedState=s.baseState=d),d}function hD(e,t,r){var n=vs();return pD(n,e,t,r)}function ap(e){var t=Ul();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:e},e=e.dispatch=YE.bind(null,rn,e),[t.memoizedState,e]}function P0(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=rn.updateQueue,t===null?(t={lastEffect:null},rn.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 f3(e){var t=Ul();return e={current:e},t.memoizedState=e}function k0(){return vs().memoizedState}function P2(e,t,r,n){var i=Ul();rn.flags|=e,i.memoizedState=P0(1|t,r,void 0,n===void 0?null:n)}function HE(e,t,r,n){var i=vs();n=n===void 0?null:n;var a=void 0;if(Gn!==null){var o=Gn.memoizedState;if(a=o.destroy,n!==null&&GE(n,o.deps)){P0(t,r,a,n);return}}rn.flags|=e,i.memoizedState=P0(1|t,r,a,n)}function c3(e,t){return P2(516,4,e,t)}function M0(e,t){return HE(516,4,e,t)}function vD(e,t){return HE(4,2,e,t)}function gD(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 mD(e,t,r){return r=r!=null?r.concat([e]):null,HE(4,2,gD.bind(null,t,e),r)}function VE(){}function yD(e,t){var r=vs();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&GE(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function bD(e,t){var r=vs();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&GE(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function bz(e,t){var r=ic();es(98>r?98:r,function(){e(!0)}),es(97<r?97:r,function(){var n=Wi.transition;Wi.transition=1;try{e(!1),t()}finally{Wi.transition=n}})}function YE(e,t,r){var n=Ci(),i=Su(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===rn||o!==null&&o===rn)Xp=I0=!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,$i(s,u))return}catch{}finally{}Eu(e,i,n)}}var D0={readContext:Hi,useCallback:si,useContext:si,useEffect:si,useImperativeHandle:si,useLayoutEffect:si,useMemo:si,useReducer:si,useRef:si,useState:si,useDebugValue:si,useDeferredValue:si,useTransition:si,useMutableSource:si,useOpaqueIdentifier:si,unstable_isNewReconciler:!1},wz={readContext:Hi,useCallback:function(e,t){return Ul().memoizedState=[e,t===void 0?null:t],e},useContext:Hi,useEffect:c3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,P2(4,2,gD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return P2(4,2,e,t)},useMemo:function(e,t){var r=Ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ul();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=YE.bind(null,rn,e),[n.memoizedState,e]},useRef:f3,useState:ap,useDebugValue:VE,useDeferredValue:function(e){var t=ap(e),r=t[0],n=t[1];return c3(function(){var i=Wi.transition;Wi.transition=1;try{n(e)}finally{Wi.transition=i}},[e]),r},useTransition:function(){var e=ap(!1),t=e[0];return e=bz.bind(null,e[1]),f3(e),[e,t]},useMutableSource:function(e,t,r){var n=Ul();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},pD(n,e,t,r)},useOpaqueIdentifier:function(){if($a){var e=!1,t=pz(function(){throw e||(e=!0,r("r:"+(Zb++).toString(36))),Error(gt(355))}),r=ap(t)[1];return(rn.mode&2)===0&&(rn.flags|=516,P0(5,function(){r("r:"+(Zb++).toString(36))},void 0,null)),t}return t="r:"+(Zb++).toString(36),ap(t),t},unstable_isNewReconciler:!1},xz={readContext:Hi,useCallback:yD,useContext:Hi,useEffect:M0,useImperativeHandle:mD,useLayoutEffect:vD,useMemo:bD,useReducer:np,useRef:k0,useState:function(){return np(Fa)},useDebugValue:VE,useDeferredValue:function(e){var t=np(Fa),r=t[0],n=t[1];return M0(function(){var i=Wi.transition;Wi.transition=1;try{n(e)}finally{Wi.transition=i}},[e]),r},useTransition:function(){var e=np(Fa)[0];return[k0().current,e]},useMutableSource:hD,useOpaqueIdentifier:function(){return np(Fa)[0]},unstable_isNewReconciler:!1},_z={readContext:Hi,useCallback:yD,useContext:Hi,useEffect:M0,useImperativeHandle:mD,useLayoutEffect:vD,useMemo:bD,useReducer:ip,useRef:k0,useState:function(){return ip(Fa)},useDebugValue:VE,useDeferredValue:function(e){var t=ip(Fa),r=t[0],n=t[1];return M0(function(){var i=Wi.transition;Wi.transition=1;try{n(e)}finally{Wi.transition=i}},[e]),r},useTransition:function(){var e=ip(Fa)[0];return[k0().current,e]},useMutableSource:hD,useOpaqueIdentifier:function(){return ip(Fa)[0]},unstable_isNewReconciler:!1},Sz=ps.ReactCurrentOwner,fa=!1;function ci(e,t,r,n){t.child=e===null?cD(t,null,r,n):R0(t,e.child,r,n)}function d3(e,t,r,n,i){r=r.render;var a=t.ref;return Wf(t,i),n=qE(e,t,r,n,a,i),e!==null&&!fa?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yo(e,t,i)):(t.flags|=1,ci(e,t,n,i),t.child)}function p3(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!eA(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,wD(e,t,o,n,i,a)):(e=r0(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:mh,r(i,n)&&e.ref===t.ref)?yo(e,t,a):(t.flags|=1,e=Mu(o,n),e.ref=t.ref,e.return=t,t.child=e)}function wD(e,t,r,n,i,a){if(e!==null&&mh(e.memoizedProps,n)&&e.ref===t.ref)if(fa=!1,(a&i)!==0)(e.flags&16384)!==0&&(fa=!0);else return t.lanes=e.lanes,yo(e,t,a);return k2(e,t,r,n,a)}function rw(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},Kg(t,r);else if((r&1073741824)!==0)t.memoizedState={baseLanes:0},Kg(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Kg(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Kg(t,n);return ci(e,t,i,r),t.child}function xD(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function k2(e,t,r,n,i){var a=hi(r)?Jl:Vn.current;return a=nc(t,a),Wf(t,i),r=qE(e,t,r,n,a,i),e!==null&&!fa?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yo(e,t,i)):(t.flags|=1,ci(e,t,r,i),t.child)}function h3(e,t,r,n,i){if(hi(r)){var a=!0;Qm(t)}else a=!1;if(Wf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),sD(t,r,n),R2(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=Hi(f):(f=hi(r)?Jl:Vn.current,f=nc(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)&&a3(t,o,n,f),au=!1;var h=t.memoizedState;o.state=h,wh(t,n,o,i),s=t.memoizedState,u!==n||h!==s||pi.current||au?(typeof d=="function"&&(T0(t,r,d,n),s=t.memoizedState),(u=au||i3(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,uD(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:sa(t.type,u),o.props=f,v=t.pendingProps,h=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Hi(s):(s=hi(r)?Jl:Vn.current,s=nc(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)&&a3(t,o,n,s),au=!1,h=t.memoizedState,o.state=h,wh(t,n,o,i);var _=t.memoizedState;u!==v||h!==_||pi.current||au?(typeof g=="function"&&(T0(t,r,g,n),_=t.memoizedState),(f=au||i3(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 M2(e,t,r,n,a,i)}function M2(e,t,r,n,i,a){xD(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&JT(t,r,!1),yo(e,t,a);n=t.stateNode,Sz.current=t;var u=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=R0(t,e.child,null,a),t.child=R0(t,null,u,a)):ci(e,t,u,a),t.memoizedState=n.state,i&&JT(t,r,!0),t.child}function v3(e){var t=e.stateNode;t.pendingContext?ZT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ZT(e,t.context,!1),O2(e,t.containerInfo)}var Xg={dehydrated:null,retryLane:0};function g3(e,t,r){var n=t.pendingProps,i=Qr.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),Jr(Qr,i&1),e===null?(n.fallback!==void 0&&I2(t),e=n.children,i=n.fallback,a?(e=m3(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xg,e):typeof n.unstable_expectedLoadTime=="number"?(e=m3(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xg,t.lanes=33554432,e):(r=tA({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=b3(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=Xg,n):(r=y3(e,t,n.children,r),t.memoizedState=null,r):a?(n=b3(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=Xg,n):(r=y3(e,t,n.children,r),t.memoizedState=null,r)}function m3(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=tA(t,i,0,null),r=Vf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function y3(e,t,r,n){var i=e.child;return e=i.sibling,r=Mu(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 b3(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=Mu(o,u),e!==null?n=Mu(e,n):(n=Vf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function w3(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),oD(e.return,t)}function nw(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 x3(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(ci(e,t,n.children,r),n=Qr.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&&w3(e,r);else if(e.tag===19)w3(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(Jr(Qr,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),nw(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}nw(t,!0,r,null,a,t.lastEffect);break;case"together":nw(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function yo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Zh|=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=Mu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Mu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var _D,D2,SD,ED;_D=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}};D2=function(){};SD=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,zl(Ba.current);var a=null;switch(r){case"input":i=u2(e,i),n=u2(e,n),a=[];break;case"option":i=f2(e,i),n=f2(e,n),a=[];break;case"select":i=Vr({},i,{value:void 0}),n=Vr({},n,{value:void 0}),a=[];break;case"textarea":i=c2(e,i),n=c2(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=x0)}h2(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"&&(fh.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"&&(fh.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&Ur("scroll",e),a||u===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===xE?s.toString():(a=a||[]).push(f,s))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}};ED=function(e,t,r,n){r!==n&&(t.flags|=4)};function op(e,t){if(!$a)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 Ez(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 hi(t.type)&&S0(),null;case 3:return ac(),Wr(pi),Wr(Vn),WE(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yg(t)?t.flags|=4:n.hydrate||(t.flags|=256)),D2(t),null;case 5:jE(t);var i=zl(_h.current);if(r=t.type,e!==null&&t.stateNode!=null)SD(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=zl(Ba.current),Yg(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[du]=t,n[_0]=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<Ip.length;e++)Ur(Ip[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":xT(n,a),Ur("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",n);break;case"textarea":ST(n,a),Ur("invalid",n)}h2(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]):fh.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Ur("scroll",n));switch(r){case"input":jg(n),_T(n,a,!0);break;case"textarea":jg(n),ET(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=x0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===d2.html&&(e=mM(r)),e===d2.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[du]=t,e[_0]=n,_D(e,t,!1,!1),t.stateNode=e,o=v2(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<Ip.length;i++)Ur(Ip[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":xT(e,n),i=u2(e,n),Ur("invalid",e);break;case"option":i=f2(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Vr({},n,{value:void 0}),Ur("invalid",e);break;case"textarea":ST(e,n),i=c2(e,n),Ur("invalid",e);break;default:i=n}h2(r,i);var u=i;for(a in u)if(u.hasOwnProperty(a)){var s=u[a];a==="style"?wM(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&yM(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&ch(e,s):typeof s=="number"&&ch(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(fh.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Ur("scroll",e):s!=null&&vE(e,a,s,o))}switch(r){case"input":jg(e),_T(e,n,!1);break;case"textarea":jg(e),ET(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ou(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?$f(e,!!n.multiple,a,!1):n.defaultValue!=null&&$f(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=x0)}QM(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)ED(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(gt(166));r=zl(_h.current),zl(Ba.current),Yg(t)?(n=t.stateNode,r=t.memoizedProps,n[du]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[du]=t,t.stateNode=n)}return null;case 13:return Wr(Qr),n=t.memoizedState,(t.flags&64)!==0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Yg(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Qr.current&1)!==0?Ln===0&&(Ln=3):((Ln===0||Ln===3)&&(Ln=4),ti===null||(Zh&134217727)===0&&(Rc&134217727)===0||qf(ti,Hn))),(n||r)&&(t.flags|=4),null);case 4:return ac(),D2(t),e===null&&YM(t.stateNode.containerInfo),null;case 10:return zE(t),null;case 17:return hi(t.type)&&S0(),null;case 19:if(Wr(Qr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)op(n,!1);else{if(Ln!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(o=O0(e),o!==null){for(t.flags|=64,op(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 Jr(Qr,Qr.current&1|2),t.child}e=e.sibling}n.tail!==null&&qn()>z2&&(t.flags|=64,a=!0,op(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),op(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!$a)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*qn()-n.renderingStartTime>z2&&r!==1073741824&&(t.flags|=64,a=!0,op(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=qn(),r.sibling=null,t=Qr.current,Jr(Qr,a?t&1|2:t&1),r):null;case 23:case 24:return JE(),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 Az(e){switch(e.tag){case 1:hi(e.type)&&S0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ac(),Wr(pi),Wr(Vn),WE(),t=e.flags,(t&64)!==0)throw Error(gt(285));return e.flags=t&-4097|64,e;case 5:return jE(e),null;case 13:return Wr(Qr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Wr(Qr),null;case 4:return ac(),null;case 10:return zE(e),null;case 23:case 24:return JE(),null;default:return null}}function XE(e,t){try{var r="",n=t;do r+=a$(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 F2(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Cz=typeof WeakMap=="function"?WeakMap:Map;function AD(e,t,r){r=xu(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){N0||(N0=!0,U2=n),F2(e,t)},r}function CD(e,t,r){r=xu(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return F2(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Na===null?Na=new Set([this]):Na.add(this),F2(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var Tz=typeof WeakSet=="function"?WeakSet:Set;function _3(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Au(e,r)}else t.current=null}function Rz(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:sa(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&NE(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(gt(163))}function Oz(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&&(FD(r,e),Lz(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:sa(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&n3(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}n3(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&QM(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&&IM(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(gt(163))}function S3(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=bM("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 E3(e,t){if(Vl&&typeof Vl.onCommitFiberUnmount=="function")try{Vl.onCommitFiberUnmount(LE,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)FD(t,r);else{n=t;try{i()}catch(a){Au(n,a)}}r=r.next}while(r!==e)}break;case 1:if(_3(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Au(t,a)}break;case 5:_3(t);break;case 4:TD(e,t)}}function A3(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 C3(e){return e.tag===5||e.tag===3||e.tag===4}function T3(e){e:{for(var t=e.return;t!==null;){if(C3(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&&(ch(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||C3(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?N2(e,r,t):L2(e,r,t)}function N2(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=x0));else if(n!==4&&(e=e.child,e!==null))for(N2(e,t,r),e=e.sibling;e!==null;)N2(e,t,r),e=e.sibling}function L2(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(L2(e,t,r),e=e.sibling;e!==null;)L2(e,t,r),e=e.sibling}function TD(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(E3(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(E3(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 iw(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[_0]=n,e==="input"&&n.type==="radio"&&n.name!=null&&vM(r,n),v2(e,i),t=v2(e,n),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];o==="style"?wM(r,u):o==="dangerouslySetInnerHTML"?yM(r,u):o==="children"?ch(r,u):vE(r,o,u,t)}switch(e){case"input":l2(r,n);break;case"textarea":gM(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?$f(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?$f(r,!!n.multiple,n.defaultValue,!0):$f(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,IM(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ZE=qn(),S3(t.child,!0)),R3(t);return;case 19:R3(t);return;case 17:return;case 23:case 24:S3(t,t.memoizedState!==null);return}throw Error(gt(163))}function R3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Tz),t.forEach(function(n){var i=zz.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Iz(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Pz=Math.ceil,F0=ps.ReactCurrentDispatcher,KE=ps.ReactCurrentOwner,or=0,ti=null,bn=null,Hn=0,ts=0,B2=Wu(0),Ln=0,Hy=null,Tc=0,Zh=0,Rc=0,QE=0,$2=null,ZE=0,z2=1/0;function Oc(){z2=qn()+500}var Wt=null,N0=!1,U2=null,Na=null,ku=!1,Kp=null,Pp=90,j2=[],W2=[],wo=null,Qp=0,G2=null,Jm=-1,vo=0,e0=0,Zp=null,t0=!1;function Ci(){return(or&48)!==0?qn():Jm!==-1?Jm:Jm=qn()}function Su(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return ic()===99?1:2;if(vo===0&&(vo=Tc),yz.transition!==0){e0!==0&&(e0=$2!==null?$2.pendingLanes:0),e=vo;var t=4186112&~e0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ic(),(or&4)!==0&&e===98?e=b0(12,vo):(e=x$(e),e=b0(e,vo)),e}function Eu(e,t,r){if(50<Qp)throw Qp=0,G2=null,Error(gt(185));if(e=Vy(e,t),e===null)return null;$y(e,t,r),e===ti&&(Rc|=t,Ln===4&&qf(e,Hn));var n=ic();t===1?(or&8)!==0&&(or&48)===0?q2(e):(Vi(e,r),or===0&&(Oc(),Ga())):((or&4)===0||n!==98&&n!==99||(wo===null?wo=new Set([e]):wo.add(e)),Vi(e,r)),$2=e}function Vy(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 Vi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-Iu(o),s=1<<u,f=a[u];if(f===-1){if((s&n)===0||(s&i)!==0){f=t,xf(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=vh(e,e===ti?Hn:0),t=zr,n===0)r!==null&&(r!==Jb&&C2(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Jb&&C2(r)}t===15?(r=q2.bind(null,e),ho===null?(ho=[r],Zm=BE(Gy,aD)):ho.push(r),r=Jb):t===14?r=bh(99,q2.bind(null,e)):(r=_$(t),r=bh(r,RD.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function RD(e){if(Jm=-1,e0=vo=0,(or&48)!==0)throw Error(gt(327));var t=e.callbackNode;if(Gu()&&e.callbackNode!==t)return null;var r=vh(e,e===ti?Hn:0);if(r===0)return null;var n=r,i=or;or|=16;var a=kD();(ti!==e||Hn!==n)&&(Oc(),Hf(e,n));do try{Dz();break}catch(u){PD(e,u)}while(1);if($E(),F0.current=a,or=i,bn!==null?n=0:(ti=null,Hn=0,n=Ln),(Tc&Rc)!==0)Hf(e,0);else if(n!==0){if(n===2&&(or|=64,e.hydrate&&(e.hydrate=!1,NE(e.containerInfo)),r=LM(e),r!==0&&(n=kp(e,r))),n===1)throw t=Hy,Hf(e,0),qf(e,r),Vi(e,qn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(gt(345));case 2:Il(e);break;case 3:if(qf(e,r),(r&62914560)===r&&(n=ZE+500-qn(),10<n)){if(vh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ci(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=XT(Il.bind(null,e),n);break}Il(e);break;case 4:if(qf(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Iu(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=qn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pz(r/1960))-r,10<r){e.timeoutHandle=XT(Il.bind(null,e),r);break}Il(e);break;case 5:Il(e);break;default:throw Error(gt(329))}}return Vi(e,qn()),e.callbackNode===t?RD.bind(null,e):null}function qf(e,t){for(t&=~QE,t&=~Rc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Iu(t),n=1<<r;e[r]=-1,t&=~n}}function q2(e){if((or&48)!==0)throw Error(gt(327));if(Gu(),e===ti&&(e.expiredLanes&Hn)!==0){var t=Hn,r=kp(e,t);(Tc&Rc)!==0&&(t=vh(e,t),r=kp(e,t))}else t=vh(e,0),r=kp(e,t);if(e.tag!==0&&r===2&&(or|=64,e.hydrate&&(e.hydrate=!1,NE(e.containerInfo)),t=LM(e),t!==0&&(r=kp(e,t))),r===1)throw r=Hy,Hf(e,0),qf(e,t),Vi(e,qn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),Vi(e,qn()),null}function kz(){if(wo!==null){var e=wo;wo=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Vi(t,qn())})}Ga()}function OD(e,t){var r=or;or|=1;try{return e(t)}finally{or=r,or===0&&(Oc(),Ga())}}function ID(e,t){var r=or;or&=-2,or|=8;try{return e(t)}finally{or=r,or===0&&(Oc(),Ga())}}function Kg(e,t){Jr(B2,ts),ts|=t,Tc|=t}function JE(){ts=B2.current,Wr(B2)}function Hf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,dz(r)),bn!==null)for(r=bn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&S0();break;case 3:ac(),Wr(pi),Wr(Vn),WE();break;case 5:jE(n);break;case 4:ac();break;case 13:Wr(Qr);break;case 19:Wr(Qr);break;case 10:zE(n);break;case 23:case 24:JE()}r=r.return}ti=e,bn=Mu(e.current,null),Hn=ts=Tc=t,Ln=0,Hy=null,QE=Rc=Zh=0}function PD(e,t){do{var r=bn;try{if($E(),Yp.current=D0,I0){for(var n=rn.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}I0=!1}if(Sh=0,Nn=Gn=rn=null,Xp=!1,KE.current=null,r===null||r.return===null){Ln=1,Hy=t,bn=null;break}e:{var a=e,o=r.return,u=r,s=t;if(t=Hn,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=(Qr.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=xu(-1,1);S.tag=2,_u(u,S)}u.lanes|=1;break e}s=void 0,u=t;var E=a.pingCache;if(E===null?(E=a.pingCache=new Cz,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=$z.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((Bf(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.`)}Ln!==5&&(Ln=2),s=XE(s,u),h=o;do{switch(h.tag){case 3:a=s,h.flags|=4096,t&=-t,h.lanes|=t;var M=AD(h,a,t);r3(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"&&(Na===null||!Na.has(z)))){h.flags|=4096,t&=-t,h.lanes|=t;var N=CD(h,a,t);r3(h,N);break e}}h=h.return}while(h!==null)}DD(r)}catch(L){t=L,bn===r&&r!==null&&(bn=r=r.return);continue}break}while(1)}function kD(){var e=F0.current;return F0.current=D0,e===null?D0:e}function kp(e,t){var r=or;or|=16;var n=kD();ti===e&&Hn===t||Hf(e,t);do try{Mz();break}catch(i){PD(e,i)}while(1);if($E(),or=r,F0.current=n,bn!==null)throw Error(gt(261));return ti=null,Hn=0,Ln}function Mz(){for(;bn!==null;)MD(bn)}function Dz(){for(;bn!==null&&!vz();)MD(bn)}function MD(e){var t=ND(e.alternate,e,ts);e.memoizedProps=e.pendingProps,t===null?DD(e):bn=t,KE.current=null}function DD(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=Ez(r,t,ts),r!==null){bn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(ts&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=Az(t),r!==null){r.flags&=2047,bn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){bn=t;return}bn=t=e}while(t!==null);Ln===0&&(Ln=5)}function Il(e){var t=ic();return es(99,Fz.bind(null,e,t)),null}function Fz(e,t){do Gu();while(Kp!==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-Iu(a),f=1<<s;i[s]=0,o[s]=-1,u[s]=-1,a&=~f}if(wo!==null&&(n&24)===0&&wo.has(e)&&wo.delete(e),e===ti&&(bn=ti=null,Hn=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,KE.current=null,Kb=Ym,o=jT(),x2(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;Qb={focusedElem:o,selectionRange:u},Ym=!1,Zp=null,t0=!1,Wt=n;do try{Nz()}catch(L){if(Wt===null)throw Error(gt(330));Au(Wt,L),Wt=Wt.nextEffect}while(Wt!==null);Zp=null,Wt=n;do try{for(o=e;Wt!==null;){var S=Wt.flags;if(S&16&&ch(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:T3(Wt),Wt.flags&=-3;break;case 6:T3(Wt),Wt.flags&=-3,iw(Wt.alternate,Wt);break;case 1024:Wt.flags&=-1025;break;case 1028:Wt.flags&=-1025,iw(Wt.alternate,Wt);break;case 4:iw(Wt.alternate,Wt);break;case 8:u=Wt,TD(o,u);var M=u.alternate;A3(u),M!==null&&A3(M)}Wt=Wt.nextEffect}}catch(L){if(Wt===null)throw Error(gt(330));Au(Wt,L),Wt=Wt.nextEffect}while(Wt!==null);if(R=Qb,E=jT(),S=R.focusedElem,o=R.selectionRange,E!==S&&S&&S.ownerDocument&&qM(S.ownerDocument.documentElement,S)){for(o!==null&&x2(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=UT(S,M),a=UT(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}Ym=!!Kb,Qb=Kb=null,e.current=r,Wt=n;do try{for(S=e;Wt!==null;){var D=Wt.flags;if(D&36&&Oz(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));Au(Wt,L),Wt=Wt.nextEffect}while(Wt!==null);Wt=null,mz(),or=i}else e.current=r;if(ku)ku=!1,Kp=e,Pp=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&&(Na=null),n===1?e===G2?Qp++:(Qp=0,G2=e):Qp=0,r=r.stateNode,Vl&&typeof Vl.onCommitFiberRoot=="function")try{Vl.onCommitFiberRoot(LE,r,void 0,(r.current.flags&64)===64)}catch{}if(Vi(e,qn()),N0)throw N0=!1,e=U2,U2=null,e;return(or&8)!==0||Ga(),null}function Nz(){for(;Wt!==null;){var e=Wt.alternate;t0||Zp===null||((Wt.flags&8)!==0?TT(Wt,Zp)&&(t0=!0):Wt.tag===13&&Iz(e,Wt)&&TT(Wt,Zp)&&(t0=!0));var t=Wt.flags;(t&256)!==0&&Rz(e,Wt),(t&512)===0||ku||(ku=!0,bh(97,function(){return Gu(),null})),Wt=Wt.nextEffect}}function Gu(){if(Pp!==90){var e=97<Pp?97:Pp;return Pp=90,es(e,Bz)}return!1}function Lz(e,t){j2.push(t,e),ku||(ku=!0,bh(97,function(){return Gu(),null}))}function FD(e,t){W2.push(t,e),ku||(ku=!0,bh(97,function(){return Gu(),null}))}function Bz(){if(Kp===null)return!1;var e=Kp;if(Kp=null,(or&48)!==0)throw Error(gt(331));var t=or;or|=32;var r=W2;W2=[];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));Au(a,s)}}for(r=j2,j2=[],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));Au(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,Ga(),!0}function O3(e,t,r){t=XE(r,t),t=AD(e,t,1),_u(e,t),t=Ci(),e=Vy(e,1),e!==null&&($y(e,1,t),Vi(e,t))}function Au(e,t){if(e.tag===3)O3(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){O3(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Na===null||!Na.has(n))){e=XE(t,e);var i=CD(r,e,1);if(_u(r,i),i=Ci(),r=Vy(r,1),r!==null)$y(r,1,i),Vi(r,i);else if(typeof n.componentDidCatch=="function"&&(Na===null||!Na.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function $z(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ci(),e.pingedLanes|=e.suspendedLanes&r,ti===e&&(Hn&r)===r&&(Ln===4||Ln===3&&(Hn&62914560)===Hn&&500>qn()-ZE?Hf(e,0):QE|=r),Vi(e,t)}function zz(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=ic()===99?1:2:(vo===0&&(vo=Tc),t=_f(62914560&~vo),t===0&&(t=4194304))),r=Ci(),e=Vy(e,t),e!==null&&($y(e,t,r),Vi(e,r))}var ND;ND=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||pi.current)fa=!0;else if((r&n)!==0)fa=(e.flags&16384)!==0;else{switch(fa=!1,t.tag){case 3:v3(t),tw();break;case 5:o3(t);break;case 1:hi(t.type)&&Qm(t);break;case 4:O2(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Jr(E0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?g3(e,t,r):(Jr(Qr,Qr.current&1),t=yo(e,t,r),t!==null?t.sibling:null);Jr(Qr,Qr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return x3(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Jr(Qr,Qr.current),n)break;return null;case 23:case 24:return t.lanes=0,rw(e,t,r)}return yo(e,t,r)}else fa=!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=nc(t,Vn.current),Wf(t,r),i=qE(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,hi(n)){var a=!0;Qm(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,UE(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&T0(t,n,o,e),i.updater=qy,t.stateNode=i,i._reactInternals=t,R2(t,n,e,r),t=M2(null,t,n,!0,a,r)}else t.tag=0,ci(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=jz(i),e=sa(i,e),a){case 0:t=k2(null,t,i,e,r);break e;case 1:t=h3(null,t,i,e,r);break e;case 11:t=d3(null,t,i,e,r);break e;case 14:t=p3(null,t,i,sa(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:sa(n,i),k2(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sa(n,i),h3(e,t,n,i,r);case 3:if(v3(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,uD(e,t),wh(t,n,null,r),n=t.memoizedState.element,n===i)tw(),t=yo(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(pu=jf(t.stateNode.containerInfo.firstChild),mo=t,a=$a=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],Gf.push(a);for(r=cD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else ci(e,t,n,r),tw();t=t.child}return t;case 5:return o3(t),e===null&&I2(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,E2(n,i)?o=null:a!==null&&E2(n,a)&&(t.flags|=16),xD(e,t),ci(e,t,o,r),t.child;case 6:return e===null&&I2(t),null;case 13:return g3(e,t,r);case 4:return O2(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=R0(t,null,n,r):ci(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sa(n,i),d3(e,t,n,i,r);case 7:return ci(e,t,t.pendingProps,r),t.child;case 8:return ci(e,t,t.pendingProps.children,r),t.child;case 12:return ci(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(Jr(E0,u._currentValue),u._currentValue=a,o!==null)if(u=o.value,a=$i(u,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(u,a):1073741823)|0,a===0){if(o.children===i.children&&!pi.current){t=yo(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=xu(-1,r&-r),f.tag=2,_u(u,f)),u.lanes|=r,f=u.alternate,f!==null&&(f.lanes|=r),oD(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}ci(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,Wf(t,r),i=Hi(i,a.unstable_observedBits),n=n(i),t.flags|=1,ci(e,t,n,r),t.child;case 14:return i=t.type,a=sa(i,t.pendingProps),a=sa(i.type,a),p3(e,t,i,a,n,r);case 15:return wD(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sa(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(n)?(e=!0,Qm(t)):e=!1,Wf(t,r),sD(t,n,i),R2(t,n,i,r),M2(null,t,n,!0,e,r);case 19:return x3(e,t,r);case 23:return rw(e,t,r);case 24:return rw(e,t,r)}throw Error(gt(156,t.tag))};function Uz(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zi(e,t,r,n){return new Uz(e,t,r,n)}function eA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jz(e){if(typeof e=="function")return eA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ny)return 11;if(e===Ly)return 14}return 2}function Mu(e,t){var r=e.alternate;return r===null?(r=zi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function r0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")eA(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case su:return Vf(r.children,i,a,t);case dM:o=8,i|=16;break;case gE:o=8,i|=1;break;case Up:return e=zi(12,r,t,i|8),e.elementType=Up,e.type=Up,e.lanes=a,e;case jp:return e=zi(13,r,t,i),e.type=jp,e.elementType=jp,e.lanes=a,e;case v0:return e=zi(19,r,t,i),e.elementType=v0,e.lanes=a,e;case _E:return tA(r,i,a,t);case o2:return e=zi(24,r,t,i),e.elementType=o2,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mE:o=10;break e;case yE:o=9;break e;case Ny:o=11;break e;case Ly:o=14;break e;case bE:o=16,n=null;break e;case wE:o=22;break e}throw Error(gt(130,e==null?e:typeof e,""))}return t=zi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Vf(e,t,r,n){return e=zi(7,e,n,t),e.lanes=r,e}function tA(e,t,r,n){return e=zi(23,e,n,t),e.elementType=_E,e.lanes=r,e}function aw(e,t,r){return e=zi(6,e,null,t),e.lanes=r,e}function ow(e,t,r){return t=zi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wz(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=Wb(0),this.expirationTimes=Wb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wb(0),this.mutableSourceEagerHydrationData=null}function Gz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ll,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function L0(e,t,r,n){var i=t.current,a=Ci(),o=Su(i);e:if(r){r=r._reactInternals;t:{if(hs(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(hi(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(hi(s)){r=JM(r,s,u);break e}}r=u}else r=Pu;return t.context===null?t.context=r:t.pendingContext=r,t=xu(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),_u(i,t),Eu(i,o,a),o}function uw(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 I3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function rA(e,t){I3(e,t),(e=e.alternate)&&I3(e,t)}function qz(){return null}function nA(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new Wz(e,t,r!=null&&r.hydrate===!0),t=zi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,UE(t),e[Cc]=r.current,YM(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}nA.prototype.render=function(e){L0(e,this._internalRoot,null,null)};nA.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;L0(null,e,null,function(){t[Cc]=null})};function Jh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hz(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 nA(e,0,t?{hydrate:!0}:void 0)}function Yy(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=uw(o);u.call(f)}}L0(t,o,e,i)}else{if(a=r._reactRootContainer=Hz(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var f=uw(o);s.call(f)}}ID(function(){L0(t,o,e,i)})}return uw(o)}TM=function(e){if(e.tag===13){var t=Ci();Eu(e,4,t),rA(e,4)}};TE=function(e){if(e.tag===13){var t=Ci();Eu(e,67108864,t),rA(e,67108864)}};RM=function(e){if(e.tag===13){var t=Ci(),r=Su(e);Eu(e,r,t),rA(e,r)}};OM=function(e,t){return t()};g2=function(e,t,r){switch(t){case"input":if(l2(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=Wy(n);if(!i)throw Error(gt(90));hM(n),l2(n,i)}}}break;case"textarea":gM(e,r);break;case"select":t=r.value,t!=null&&$f(e,!!r.multiple,t,!1)}};EE=OD;SM=function(e,t,r,n,i){var a=or;or|=4;try{return es(98,e.bind(null,t,r,n,i))}finally{or=a,or===0&&(Oc(),Ga())}};AE=function(){(or&49)===0&&(kz(),Gu())};EM=function(e,t){var r=or;or|=2;try{return e(t)}finally{or=r,or===0&&(Oc(),Ga())}};function LD(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jh(t))throw Error(gt(200));return Gz(e,t,null,r)}var Vz={Events:[Kh,Pf,Wy,xM,_M,Gu,{current:!1}]},up={findFiberByHostInstance:$l,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Yz={bundleType:up.bundleType,version:up.version,rendererPackageName:up.rendererPackageName,rendererConfig:up.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ps.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=CM(e),e===null?null:e.stateNode},findFiberByHostInstance:up.findFiberByHostInstance||qz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qg.isDisabled&&Qg.supportsFiber)try{LE=Qg.inject(Yz),Vl=Qg}catch{}}Xi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vz;Xi.createPortal=LD;Xi.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=CM(t),e=e===null?null:e.stateNode,e};Xi.flushSync=function(e,t){var r=or;if((r&48)!==0)return e(t);or|=1;try{if(e)return es(99,e.bind(null,t))}finally{or=r,Ga()}};Xi.hydrate=function(e,t,r){if(!Jh(t))throw Error(gt(200));return Yy(null,e,t,!0,r)};Xi.render=function(e,t,r){if(!Jh(t))throw Error(gt(200));return Yy(null,e,t,!1,r)};Xi.unmountComponentAtNode=function(e){if(!Jh(e))throw Error(gt(40));return e._reactRootContainer?(ID(function(){Yy(null,null,e,!1,function(){e._reactRootContainer=null,e[Cc]=null})}),!0):!1};Xi.unstable_batchedUpdates=OD;Xi.unstable_createPortal=function(e,t){return LD(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Xi.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Jh(r))throw Error(gt(200));if(e==null||e._reactInternals===void 0)throw Error(gt(38));return Yy(e,t,r,!1,n)};Xi.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=Xi})(uE);const Mp=oE(uE.exports);var gr={exports:{}},Xz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kz=Xz,Qz=Kz;function BD(){}function $D(){}$D.resetWarningCache=BD;var Zz=function(){function e(n,i,a,o,u,s){if(s!==Qz){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:$D,resetWarningCache:BD};return r.PropTypes=r,r};gr.exports=Zz();var Jz=function(){},e7=Jz(),Ro=function(e){return e!==e7&&e!==null},t7=Ro,r7=Array.prototype.forEach,n7=Object.create,i7=function(e,t){var r;for(r in e)t[r]=e[r]},iA=function(e){var t=n7(null);return r7.call(arguments,function(r){!t7(r)||i7(Object(r),t)}),t},a7=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},lw,P3;function o7(){return P3||(P3=1,lw=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),lw}var u7=a7()?Math.sign:o7(),l7=u7,s7=Math.abs,f7=Math.floor,c7=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:l7(e)*f7(s7(e)))},d7=c7,p7=Math.max,gs=function(e){return p7(0,d7(e))},h7=gs,zD=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:h7(e)},qa=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},v7=Ro,va=function(e){if(!v7(e))throw new TypeError("Cannot use null or undefined");return e},g7=qa,m7=va,y7=Function.prototype.bind,k3=Function.prototype.call,b7=Object.keys,w7=Object.prototype.propertyIsEnumerable,x7=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(m7(r)),g7(n),i=b7(r),o&&i.sort(typeof o=="function"?y7.call(o,r):void 0),typeof e!="function"&&(e=i[e]),k3.call(e,i,function(u,s){return w7.call(r,u)?k3.call(n,a,r[u],u,r,s):t})}},Xy=x7("forEach"),ms={},UD={exports:{}},_7=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")},sw,M3;function S7(){return M3||(M3=1,sw=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),sw}var fw,D3;function E7(){if(D3)return fw;D3=1;var e=Ro,t=Object.keys;return fw=function(r){return t(e(r)?Object(r):r)},fw}var cw,F3;function A7(){return F3||(F3=1,cw=S7()()?Object.keys:E7()),cw}var dw,N3;function C7(){if(N3)return dw;N3=1;var e=A7(),t=va,r=Math.max;return dw=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},dw}var Ky=_7()?Object.assign:C7(),T7=Ro,R7={function:!0,object:!0},aA=function(e){return T7(e)&&R7[typeof e]||!1};(function(e){var t=Ky,r=aA,n=Ro,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}})(UD);var B0={exports:{}},pw,L3;function jD(){if(L3)return pw;L3=1;var e=va,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return pw=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},pw}var B3=gs,WD=function(e,t){return t},hw,$3,z3,U3;try{Object.defineProperty(WD,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}WD.length===1?(hw={configurable:!0,writable:!1,enumerable:!1},$3=Object.defineProperty,B0.exports=function(e,t){return t=B3(t),e.length===t?e:(hw.value=t,$3(e,"length",hw))}):(U3=jD(),z3=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); };")}}(),B0.exports=function(e,t){var r;if(t=B3(t),e.length===t)return e;r=z3(t)(e);try{U3(r,e)}catch{}return r});var Ki={exports:{}},O7=void 0,Ic=function(e){return e!==O7&&e!==null},I7=Ic,P7={object:!0,function:!0,undefined:!0},oA=function(e){return I7(e)?hasOwnProperty.call(P7,typeof e):!1},k7=oA,M7=function(e){if(!k7(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},D7=M7,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!D7(e)},N7=F7,L7=/^\s*class[\s{/}]/,B7=Function.prototype.toString,GD=function(e){return!(!N7(e)||L7.test(B7.call(e)))},vw="razdwatrzy",$7=function(){return typeof vw.contains!="function"?!1:vw.contains("dwa")===!0&&vw.contains("foo")===!1},gw,j3;function z7(){if(j3)return gw;j3=1;var e=String.prototype.indexOf;return gw=function(t){return e.call(this,t,arguments[1])>-1},gw}var qD=$7()?String.prototype.contains:z7(),n0=Ic,W3=GD,HD=Ky,VD=iA,Jp=qD,U7=Ki.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],n0(e)?(r=Jp.call(e,"c"),n=Jp.call(e,"e"),i=Jp.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?HD(VD(a),o):o};U7.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],n0(t)?W3(t)?n0(r)?W3(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,n0(e)?(n=Jp.call(e,"c"),i=Jp.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?HD(VD(a),o):o};var H2={exports:{}};(function(e,t){var r=Ki.exports,n=qa,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})(H2,H2.exports);var mw,G3;function j7(){return G3||(G3=1,mw=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"))}),mw}var yw,q3;function W7(){return q3||(q3=1,yw=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),yw}var bw,H3;function G7(){if(H3)return bw;H3=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 bw=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__}}(),bw}var ww,V3;function Qy(){return V3||(V3=1,ww=W7()()?globalThis:G7()),ww}var xw,Y3;function q7(){if(Y3)return xw;Y3=1;var e=Qy(),t={object:!0,symbol:!0};return xw=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])},xw}var _w,X3;function H7(){return X3||(X3=1,_w=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),_w}var Sw,K3;function YD(){if(K3)return Sw;K3=1;var e=H7();return Sw=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},Sw}var Ew,Q3;function V7(){if(Q3)return Ew;Q3=1;var e=Ki.exports,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return Ew=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},Ew}var Aw,Z3;function Y7(){if(Z3)return Aw;Z3=1;var e=Ki.exports,t=Qy().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 Cw,J3;function X7(){if(J3)return Cw;J3=1;var e=Ki.exports,t=YD(),r=Object.create(null);return Cw=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})})},Cw}var Tw,eR;function K7(){if(eR)return Tw;eR=1;var e=Ki.exports,t=YD(),r=Qy().Symbol,n=V7(),i=Y7(),a=X7(),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)},Tw=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])),Tw}var Rw,tR;function ys(){return tR||(tR=1,Rw=q7()()?Qy().Symbol:K7()),Rw}var Ow,rR;function Zy(){if(rR)return Ow;rR=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return Ow=function(r){return e.call(r)===t},Ow}var Iw,nR;function Q7(){if(nR)return Iw;nR=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Iw=function(r){return typeof r=="function"&&t(e.call(r))},Iw}var Pw,iR;function Jy(){if(iR)return Pw;iR=1;var e=Object.prototype.toString,t=e.call("");return Pw=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},Pw}var kw,aR;function Z7(){if(aR)return kw;aR=1;var e=ys().iterator,t=Zy(),r=Q7(),n=gs,i=qa,a=va,o=Ro,u=Jy(),s=Array.isArray,f=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},v=Object.defineProperty;return kw=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},kw}var Mw,oR;function e1(){return oR||(oR=1,Mw=j7()()?Array.from:Z7()),Mw}var J7=e1(),e9=Array.isArray,t9=function(e){return e9(e)?e:J7(e)},r9=t9,n9=Ro,i9=qa,a9=Array.prototype.slice,XD;XD=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(a9.call(e,this.length))};var o9=function(e){return e=r9(e),e.forEach(function(t){n9(t)&&i9(t)}),XD.bind(e)},Zg=qa,u9=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Zg(e.get)},e.set!==void 0?(t.set=Zg(e.set),e.delete&&(t.delete=Zg(e.delete)),e.clear&&(t.clear=Zg(e.clear)),t):(t.set=t.get,t))},Jg=UD.exports,em=B0.exports,lp=Ki.exports,KD=H2.exports.methods,l9=o9,s9=u9,Dw=Function.prototype.apply,Fw=Function.prototype.call,uR=Object.create,f9=Object.defineProperties,c9=KD.on,d9=KD.emit,p9=function(e,t,r){var n=uR(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=s9(r.normalizer),o=g.get,u=g.set,s=g.delete,f=g.clear),r.resolvers!=null&&(S=l9(r.resolvers)),o?w=em(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=Fw.call(e,this,D[0]):M=Dw.call(e,this,D),R===null){if(R=o(D),R!==null)throw Jg("Circular invocation","CIRCULAR_INVOCATION");R=u(D)}else if(hasOwnProperty.call(n,R))throw Jg("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=Dw.call(e,this,arguments):E=Fw.call(e,this),hasOwnProperty.call(n,"data"))throw Jg("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=Fw.call(e,this,M[0]):R=Dw.call(e,this,M),hasOwnProperty.call(n,D))throw Jg("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=uR(null),i.emit("clear",E)},on:function(E,R){return E==="get"?_=!0:E==="set"?A=!0:E==="delete"&&(b=!0),c9.call(this,E,R)},emit:d9,updateEnv:function(){e=i.original}},o?d=em(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=em(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=em(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))}),f9(w,{__memoized__:lp(!0),delete:lp(d),clear:lp(i.clear),_get:lp(v),_has:lp(h)}),i},h9=qa,v9=Xy,lR=ms,g9=p9,m9=zD,y9=function e(t){var r,n,i;if(h9(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=m9(r.length,t.length,r.async&&lR.async),i=g9(t,n,r),v9(lR,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},Nw,sR;function b9(){return sR||(sR=1,Nw=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),Nw}var Lw,fR;function w9(){return fR||(fR=1,Lw=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),Lw}var Bw,cR;function x9(){return cR||(cR=1,Bw=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),Bw}var $w,dR;function _9(){return dR||(dR=1,$w=function(e){return e!==e}),$w}var zw,pR;function S9(){return pR||(pR=1,zw=x9()()?Number.isNaN:_9()),zw}var Uw,hR;function uA(){if(hR)return Uw;hR=1;var e=S9(),t=gs,r=va,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return Uw=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},Uw}var jw,vR;function E9(){if(vR)return jw;vR=1;var e=uA(),t=Object.create;return jw=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)}}},jw}var Ww,gR;function A9(){if(gR)return Ww;gR=1;var e=uA();return Ww=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=[]}}},Ww}var Gw,mR;function C9(){if(mR)return Gw;mR=1;var e=uA(),t=Object.create;return Gw=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)}}},Gw}var yR={},qw,bR;function lA(){if(bR)return qw;bR=1;var e=qa,t=Xy,r=Function.prototype.call;return qw=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},qw}var Hw,wR;function sA(){if(wR)return Hw;wR=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 Hw=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}(),Hw}var xR;function T9(){if(xR)return yR;xR=1;var e=e1(),t=lA(),r=jD(),n=B0.exports,i=sA(),a=Array.prototype.slice,o=Function.prototype.apply,u=Object.create;return ms.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)}))})},yR}var _R={},Vw,SR;function R9(){if(SR)return Vw;SR=1;var e=Array.prototype.forEach,t=Object.create;return Vw=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},Vw}var Yw,ER;function QD(){return ER||(ER=1,Yw=function(e){return typeof e=="function"}),Yw}var Xw,AR;function O9(){if(AR)return Xw;AR=1;var e=QD();return Xw=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},Xw}var Kw,CR;function I9(){if(CR)return Kw;CR=1;var e=va,t=O9();return Kw=function(r){return t(e(r))},Kw}var Qw,TR;function P9(){if(TR)return Qw;TR=1;var e=QD();return Qw=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},Qw}var Zw,RR;function k9(){if(RR)return Zw;RR=1;var e=P9(),t=/[\n\r\u2028\u2029]/g;return Zw=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},Zw}var tm={exports:{}},OR;function ZD(){if(OR)return tm.exports;OR=1,tm.exports=e,tm.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return tm.exports}var IR;function M9(){if(IR)return _R;IR=1;var e=lA(),t=R9(),r=I9(),n=k9(),i=ZD(),a=sA(),o=Object.create,u=t("then","then:finally","done","done:finally");return ms.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[_]}))})},_R}var PR={},kR;function D9(){if(kR)return PR;kR=1;var e=qa,t=Xy,r=ms,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)})})},PR}var MR={},Jw,DR;function F9(){return DR||(DR=1,Jw=2147483647),Jw}var ex,FR;function N9(){if(FR)return ex;FR=1;var e=gs,t=F9();return ex=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},ex}var NR;function L9(){if(NR)return MR;NR=1;var e=e1(),t=Xy,r=sA(),n=ZD(),i=N9(),a=ms,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={})}))},MR}var LR={},tx,BR;function B9(){if(BR)return tx;BR=1;var e=gs,t=Object.create,r=Object.prototype.hasOwnProperty;return tx=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}}},tx}var $R;function $9(){if($R)return LR;$R=1;var e=gs,t=B9(),r=ms;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))},LR}var zR={},UR;function z9(){if(UR)return zR;UR=1;var e=Ki.exports,t=ms,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]})})},zR}var U9=iA,j9=zD,W9=y9,Fde=function(e){var t=U9(arguments[1]),r;return t.normalizer||(r=t.length=j9(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=b9():r>1&&(t.normalizer=w9()(r)):r===!1?t.normalizer=E9()():r===1?t.normalizer=A9()():t.normalizer=C9()(r))),t.async&&T9(),t.promise&&M9(),t.dispose&&D9(),t.maxAge&&L9(),t.max&&$9(),t.refCounter&&z9(),W9(e,t)},JD={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})()})(JD);const Nde=JD.exports;var G9="Expected a function",jR=0/0,q9="[object Symbol]",H9=/^\s+|\s+$/g,V9=/^[-+]0x[0-9a-f]+$/i,Y9=/^0b[01]+$/i,X9=/^0o[0-7]+$/i,K9=parseInt,Q9=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,Z9=typeof self=="object"&&self&&self.Object===Object&&self,J9=Q9||Z9||Function("return this")(),eU=Object.prototype,tU=eU.toString,rU=Math.max,nU=Math.min,rx=function(){return J9.Date.now()};function iU(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(G9);t=WR(t)||0,V2(r)&&(d=!!r.leading,v="maxWait"in r,a=v?rU(WR(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?nU(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=rx();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(rx())}function M(){var D=rx(),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 V2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function aU(e){return!!e&&typeof e=="object"}function oU(e){return typeof e=="symbol"||aU(e)&&tU.call(e)==q9}function WR(e){if(typeof e=="number")return e;if(oU(e))return jR;if(V2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=V2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(H9,"");var r=Y9.test(e);return r||X9.test(e)?K9(e.slice(2),r?2:8):V9.test(e)?jR:+e}var Lde=iU;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function oc(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 Y2(e,t){return Y2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Y2(e,t)}function ev(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Y2(e,t)}function uU(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):uU(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sU(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GR(e.className,t):e.setAttribute("class",GR(e.className&&e.className.baseVal||"",t))}const qR={disabled:!1},eF=Cn.createContext(null);var tF=function(t){return t.scrollTop},t1={exports:{}},tv={};/** @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 fU=Ut.exports,rF=60103;tv.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var HR=Symbol.for;rF=HR("react.element"),tv.Fragment=HR("react.fragment")}var cU=fU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dU=Object.prototype.hasOwnProperty,pU={key:!0,ref:!0,__self:!0,__source:!0};function nF(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)dU.call(t,n)&&!pU.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:rF,type:e,key:a,ref:o,props:i,_owner:cU.current}}tv.jsx=nF;tv.jsxs=nF;(function(e){e.exports=tv})(t1);const Bde=t1.exports.Fragment,ri=t1.exports.jsx,hU=t1.exports.jsxs;var Dp="unmounted",Pl="exited",kl="entering",Sf="entered",X2="exiting",Oo=function(e){ev(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=Pl,a.appearStatus=kl):s=Sf:n.unmountOnExit||n.mountOnEnter?s=Dp:s=Pl,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Dp?{status:Pl}: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!==kl&&o!==Sf&&(a=kl):(o===kl||o===Sf)&&(a=X2)}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===kl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Mp.findDOMNode(this);o&&tF(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pl&&this.setState({status:Dp})},r.performEnter=function(i){var a=this,o=this.props.enter,u=this.context?this.context.isMounting:i,s=this.props.nodeRef?[u]:[Mp.findDOMNode(this),u],f=s[0],d=s[1],v=this.getTimeouts(),h=u?v.appear:v.enter;if(!i&&!o||qR.disabled){this.safeSetState({status:Sf},function(){a.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:kl},function(){a.props.onEntering(f,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Sf},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:Mp.findDOMNode(this);if(!a||qR.disabled){this.safeSetState({status:Pl},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:X2},function(){i.props.onExiting(u),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Pl},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:Mp.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===Dp)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=oc(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ri(eF.Provider,{value:null,children:typeof o=="function"?o(i,u):Cn.cloneElement(Cn.Children.only(o),u)})},t}(Cn.Component);Oo.contextType=eF;Oo.propTypes={};function df(){}Oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:df,onEntering:df,onEntered:df,onExit:df,onExiting:df,onExited:df};Oo.UNMOUNTED=Dp;Oo.EXITED=Pl;Oo.ENTERING=kl;Oo.ENTERED=Sf;Oo.EXITING=X2;const vU=Oo;var gU=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return lU(t,n)})},nx=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return sU(t,n)})},fA=function(e){ev(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&&tF(i),u&&(this.appliedClasses[a][o]=u,gU(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&&nx(i,u),s&&nx(i,s),f&&nx(i,f)},r.render=function(){var i=this.props;i.classNames;var a=oc(i,["classNames"]);return ri(vU,{...a,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},t}(Cn.Component);fA.defaultProps={classNames:""};fA.propTypes={};const $de=fA;function rm(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 rv=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",mU=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(rv&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function yU(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function bU(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},mU))}}var wU=rv&&window.Promise,xU=wU?yU:bU;function iF(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function bs(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function cA(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function nv(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=bs(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:nv(cA(e))}function aF(e){return e&&e.referenceNode?e.referenceNode:e}var VR=rv&&!!(window.MSInputMethodContext&&document.documentMode),YR=rv&&/MSIE 10/.test(navigator.userAgent);function Pc(e){return e===11?VR:e===10?YR:VR||YR}function uc(e){if(!e)return document.documentElement;for(var t=Pc(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&&bs(r,"position")==="static"?uc(r):r}function _U(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||uc(e.firstElementChild)===e}function K2(e){return e.parentNode!==null?K2(e.parentNode):e}function $0(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 _U(o)?o:uc(o);var u=K2(e);return u.host?$0(u.host,t):$0(e,K2(t).host)}function lc(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 SU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=lc(t,"top"),i=lc(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 XR(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 KR(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Pc(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function oF(e){var t=e.body,r=e.documentElement,n=Pc(10)&&getComputedStyle(r);return{height:KR("Height",t,r,n),width:KR("Width",t,r,n)}}var EU=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},AU=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}}(),sc=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Ui=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 Du(e){return Ui({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Q2(e){var t={};try{if(Pc(10)){t=e.getBoundingClientRect();var r=lc(e,"top"),n=lc(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"?oF(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=bs(e);s-=XR(d,"x"),f-=XR(d,"y"),i.width-=s,i.height-=f}return Du(i)}function dA(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Pc(10),i=t.nodeName==="HTML",a=Q2(e),o=Q2(t),u=nv(e),s=bs(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=Du({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=SU(v,t)),v}function CU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=dA(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:lc(r),u=t?0:lc(r,"left"),s={top:o-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:i,height:a};return Du(s)}function uF(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(bs(e,"position")==="fixed")return!0;var r=cA(e);return r?uF(r):!1}function lF(e){if(!e||!e.parentElement||Pc())return document.documentElement;for(var t=e.parentElement;t&&bs(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function pA(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?lF(e):$0(e,aF(t));if(n==="viewport")a=CU(o,i);else{var u=void 0;n==="scrollParent"?(u=nv(cA(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):n==="window"?u=e.ownerDocument.documentElement:u=n;var s=dA(u,o,i);if(u.nodeName==="HTML"&&!uF(o)){var f=oF(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 TU(e){var t=e.width,r=e.height;return t*r}function sF(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=pA(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 Ui({key:h},u[h],{area:TU(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 fF(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?lF(t):$0(t,aF(r));return dA(r,i,n)}function cF(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 z0(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 dF(e,t,r){r=r.split("-")[0];var n=cF(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[z0(u)],i}function iv(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function RU(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=iv(e,function(i){return i[t]===r});return e.indexOf(n)}function pF(e,t,r){var n=r===void 0?e:e.slice(0,RU(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&&iF(a)&&(t.offsets.popper=Du(t.offsets.popper),t.offsets.reference=Du(t.offsets.reference),t=a(t,i))}),t}function OU(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=fF(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=sF(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=dF(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=pF(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function hF(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function hA(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 IU(){return this.state.isDestroyed=!0,hF(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[hA("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function vF(e){var t=e.ownerDocument;return t?t.defaultView:window}function gF(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||gF(nv(a.parentNode),t,r,n),n.push(a)}function PU(e,t,r,n){r.updateBound=n,vF(e).addEventListener("resize",r.updateBound,{passive:!0});var i=nv(e);return gF(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function kU(){this.state.eventsEnabled||(this.state=PU(this.reference,this.options,this.state,this.scheduleUpdate))}function MU(e,t){return vF(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 DU(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=MU(this.reference,this.state))}function vA(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Z2(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&vA(t[r])&&(n="px"),e.style[r]=t[r]+n})}function FU(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function NU(e){return Z2(e.instance.popper,e.styles),FU(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Z2(e.arrowElement,e.arrowStyles),e}function LU(e,t,r,n,i){var a=fF(i,t,e,r.positionFixed),o=sF(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),Z2(t,{position:r.positionFixed?"fixed":"absolute"}),r}function BU(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 $U=rv&&/Firefox/i.test(navigator.userAgent);function zU(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=iv(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=uc(e.instance.popper),s=Q2(u),f={position:i.position},d=BU(e,window.devicePixelRatio<2||!$U),v=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",g=hA("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=Ui({},S,e.attributes),e.styles=Ui({},f,e.styles),e.arrowStyles=Ui({},e.offsets.arrow,e.arrowStyles),e}function mF(e,t,r){var n=iv(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 UU(e,t){var r;if(!mF(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",_=cF(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=Du(e.offsets.popper);var A=u[v]+u[f]/2-_/2,b=bs(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={},sc(r,v,Math.round(E)),sc(r,h,""),r),e}function jU(e){return e==="end"?"start":e==="start"?"end":e}var yF=["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"],ix=yF.slice(3);function QR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ix.indexOf(e),n=ix.slice(r+1).concat(ix.slice(0,r));return t?n.reverse():n}var ax={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function WU(e,t){if(hF(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=pA(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=z0(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case ax.FLIP:o=[n,i];break;case ax.CLOCKWISE:o=QR(n);break;case ax.COUNTERCLOCKWISE:o=QR(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=z0(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=jU(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Ui({},e.offsets.popper,dF(e.instance.popper,e.offsets.reference,e.placement)),e=pF(e.instance.modifiers,e,"flip"))}),e}function GU(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 qU(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=Du(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 HU(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(iv(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 qU(_,h,t,r)})}),f.forEach(function(d,v){d.forEach(function(h,g){vA(h)&&(i[v]+=h*(d[g-1]==="-"?-1:1))})}),i}function VU(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 vA(+r)?s=[+r,0]:s=HU(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 YU(e,t){var r=t.boundariesElement||uc(e.instance.popper);e.instance.reference===r&&(r=uc(r));var n=hA("transform"),i=e.instance.popper.style,a=i.top,o=i.left,u=i[n];i.top="",i.left="",i[n]="";var s=pA(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])),sc({},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))),sc({},_,A)}};return f.forEach(function(h){var g=["left","top"].indexOf(h)!==-1?"primary":"secondary";d=Ui({},d,v[g](h))}),e.offsets.popper=d,e}function XU(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:sc({},s,a[s]),end:sc({},s,a[s]+a[f]-o[f])};e.offsets.popper=Ui({},o,d[n])}return e}function KU(e){if(!mF(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=iv(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 QU(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=z0(t),e.offsets.popper=Du(i),e}var ZU={shift:{order:100,enabled:!0,fn:XU},offset:{order:200,enabled:!0,fn:VU,offset:0},preventOverflow:{order:300,enabled:!0,fn:YU,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:GU},arrow:{order:500,enabled:!0,fn:UU,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:WU,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:QU},hide:{order:800,enabled:!0,fn:KU},computeStyle:{order:850,enabled:!0,fn:zU,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:NU,onLoad:LU,gpuAcceleration:void 0}},JU={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ZU},r1=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};EU(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=xU(this.update.bind(this)),this.options=Ui({},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(Ui({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Ui({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Ui({name:o},n.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&iF(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 AU(e,[{key:"update",value:function(){return OU.call(this)}},{key:"destroy",value:function(){return IU.call(this)}},{key:"enableEventListeners",value:function(){return kU.call(this)}},{key:"disableEventListeners",value:function(){return DU.call(this)}}]),e}();r1.Utils=(typeof window<"u"?window:global).PopperUtils;r1.placements=yF;r1.Defaults=JU;const zde=r1;function gA(e,t,...r){if(!e)throw new TypeError(bF(t,r))}function bF(e,t){let r=0;return e.replace(/%[os]/gu,()=>wF(t[r++]))}function wF(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let ej;function tj(e){try{const t=e instanceof Error?e:new Error(wF(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 pa=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let rj;class Io{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 nj=new Io("W01","Unable to initialize event under dispatching."),ij=new Io("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),aj=new Io("W03","Assigning any truthy value to 'returnValue' property has no effect."),oj=new Io("W04","Unable to preventDefault on non-cancelable events."),uj=new Io("W05","Unable to preventDefault inside passive event listener invocation."),lj=new Io("W06","An event listener wasn't added because it has been added already: %o, %o"),ox=new Io("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),ZR=new Io("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");new Io("W09","Event attribute handler must be a function: %o");class Po{static get NONE(){return JR}static get CAPTURING_PHASE(){return eO}static get AT_TARGET(){return tO}static get BUBBLING_PHASE(){return rO}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r!=null?r:{};J2.set(this,{type:String(t),bubbles:Boolean(n.bubbles),cancelable:Boolean(n.cancelable),composed:Boolean(n.composed),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}get type(){return ln(this).type}get target(){return ln(this).target}get srcElement(){return ln(this).target}get currentTarget(){return ln(this).currentTarget}composedPath(){const t=ln(this).currentTarget;return t?[t]:[]}get NONE(){return JR}get CAPTURING_PHASE(){return eO}get AT_TARGET(){return tO}get BUBBLING_PHASE(){return rO}get eventPhase(){return ln(this).dispatchFlag?2:0}stopPropagation(){ln(this).stopPropagationFlag=!0}get cancelBubble(){return ln(this).stopPropagationFlag}set cancelBubble(t){t?ln(this).stopPropagationFlag=!0:ij.warn()}stopImmediatePropagation(){const t=ln(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return ln(this).bubbles}get cancelable(){return ln(this).cancelable}get returnValue(){return!ln(this).canceledFlag}set returnValue(t){t?aj.warn():nO(ln(this))}preventDefault(){nO(ln(this))}get defaultPrevented(){return ln(this).canceledFlag}get composed(){return ln(this).composed}get isTrusted(){return!1}get timeStamp(){return ln(this).timeStamp}initEvent(t,r=!1,n=!1){const i=ln(this);if(i.dispatchFlag){nj.warn();return}J2.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const JR=0,eO=1,tO=2,rO=3,J2=new WeakMap;function ln(e,t="this"){const r=J2.get(e);return gA(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function nO(e){if(e.inPassiveListenerFlag){uj.warn();return}if(!e.cancelable){oj.warn();return}e.canceledFlag=!0}Object.defineProperty(Po,"NONE",{enumerable:!0});Object.defineProperty(Po,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(Po,"AT_TARGET",{enumerable:!0});Object.defineProperty(Po,"BUBBLING_PHASE",{enumerable:!0});const ux=Object.getOwnPropertyNames(Po.prototype);for(let e=0;e<ux.length;++e)ux[e]!=="constructor"&&Object.defineProperty(Po.prototype,ux[e],{enumerable:!0});typeof pa<"u"&&typeof pa.Event<"u"&&Object.setPrototypeOf(Po.prototype,pa.Event.prototype);function sj(e){return pa.DOMException?new pa.DOMException(e,"InvalidStateError"):(pf==null&&(pf=class xF extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,xF)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(pf.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),aO(pf),aO(pf.prototype)),new pf(e))}let pf;const iO={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 aO(e){const t=Object.keys(iO);for(let r=0;r<t.length;++r){const n=t[r],i=iO[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class n1 extends Po{static wrap(t){return new(SF(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),_F.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,EF(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=ou(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=ou(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=ou(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=ou(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=ou(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=ou(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const _F=new WeakMap;function ou(e){const t=_F.get(e);return gA(t!=null,"'this' is expected an Event object, but got",e),t}const U0=new WeakMap;U0.set(Object.prototype,n1);typeof pa<"u"&&typeof pa.Event<"u"&&U0.set(pa.Event.prototype,n1);function SF(e){const t=Object.getPrototypeOf(e);if(t==null)return n1;let r=U0.get(t);return r==null&&(r=fj(SF(t),t),U0.set(t,r)),r}function fj(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],EF(t,n[i]));return r}function EF(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=ou(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=ou(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function cj(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function dj(e){e.flags|=8}function AF(e){return(e.flags&1)===1}function CF(e){return(e.flags&2)===2}function TF(e){return(e.flags&4)===4}function pj(e){return(e.flags&8)===8}function hj({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){tj(n)}}function RF({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&AF(e[n])===r)return n;return-1}function vj(e,t,r,n,i,a){let o;a&&(o=OF.bind(null,e,t,r),a.addEventListener("abort",o));const u=cj(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,u]):e.listeners.push(u),u}function OF(e,t,r){const n=RF(e,t,r);return n!==-1?IF(e,n):!1}function IF(e,t,r=!1){const n=e.listeners[t];return dj(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 gj(){return Object.create(null)}function mj(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 mA{constructor(){PF.set(this,gj())}addEventListener(t,r,n){const i=lx(this),{callback:a,capture:o,once:u,passive:s,signal:f,type:d}=yj(t,r,n);if(a==null||(f==null?void 0:f.aborted))return;const v=mj(i,d),h=RF(v,a,o);if(h!==-1){wj(v.listeners[h],s,u,f);return}vj(v,a,o,s,u,f)}removeEventListener(t,r,n){const i=lx(this),{callback:a,capture:o,type:u}=bj(t,r,n),s=i[u];a!=null&&s&&OF(s,a,o)}dispatchEvent(t){const r=lx(this)[String(t.type)];if(r==null)return!0;const n=t instanceof Po?t:n1.wrap(t),i=ln(n,"event");if(i.dispatchFlag)throw sj("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(!pj(s)&&(TF(s)&&IF(r,u,!a)&&(u-=1),i.inPassiveListenerFlag=CF(s),hj(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 PF=new WeakMap;function lx(e,t="this"){const r=PF.get(e);return gA(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function yj(e,t,r){var n;return kF(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 bj(e,t,r){return kF(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 kF(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){ZR.warn(e);return}throw new TypeError(bF(ZR.message,[e]))}}function wj(e,t,r,n){lj.warn(AF(e)?"capture":"bubble",e.callback),CF(e)!==t&&ox.warn("passive"),TF(e)!==r&&ox.warn("once"),e.signal!==n&&ox.warn("signal")}const sx=Object.getOwnPropertyNames(mA.prototype);for(let e=0;e<sx.length;++e)sx[e]!=="constructor"&&Object.defineProperty(mA.prototype,sx[e],{enumerable:!0});typeof pa<"u"&&typeof pa.EventTarget<"u"&&Object.setPrototypeOf(mA.prototype,pa.EventTarget.prototype);function oO(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?oO(Object(r),!0).forEach(function(n){wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j0(e){return j0=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},j0(e)}function xj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(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 _j(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yA(e,t){return Ej(e)||Cj(e,t)||MF(e,t)||Rj()}function av(e){return Sj(e)||Aj(e)||MF(e)||Tj()}function Sj(e){if(Array.isArray(e))return eS(e)}function Ej(e){if(Array.isArray(e))return e}function Aj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cj(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 MF(e,t){if(!!e){if(typeof e=="string")return eS(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 eS(e,t)}}function eS(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 Tj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var lO=function(){},bA={},DF={},FF=null,NF={mark:lO,measure:lO};try{typeof window<"u"&&(bA=window),typeof document<"u"&&(DF=document),typeof MutationObserver<"u"&&(FF=MutationObserver),typeof performance<"u"&&(NF=performance)}catch{}var Oj=bA.navigator||{},sO=Oj.userAgent,fO=sO===void 0?"":sO,Fu=bA,Gr=DF,cO=FF,nm=NF;Fu.document;var ko=!!Gr.documentElement&&!!Gr.head&&typeof Gr.addEventListener=="function"&&typeof Gr.createElement=="function",LF=~fO.indexOf("MSIE")||~fO.indexOf("Trident/"),im,am,om,um,lm,So="___FONT_AWESOME___",tS=16,BF="fa",$F="svg-inline--fa",rs="data-fa-i2svg",rS="data-fa-pseudo-element",Ij="data-fa-pseudo-element-pending",wA="data-prefix",xA="data-icon",dO="fontawesome-i2svg",Pj="async",kj=["HTML","HEAD","STYLE","SCRIPT"],zF=function(){try{return!0}catch{return!1}}(),jr="classic",Zr="sharp",_A=[jr,Zr];function ov(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[jr]}})}var Eh=ov((im={},wn(im,jr,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),wn(im,Zr,{fa:"solid",fass:"solid","fa-solid":"solid"}),im)),Ah=ov((am={},wn(am,jr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),wn(am,Zr,{solid:"fass"}),am)),Ch=ov((om={},wn(om,jr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),wn(om,Zr,{fass:"fa-solid"}),om)),Mj=ov((um={},wn(um,jr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),wn(um,Zr,{"fa-solid":"fass"}),um)),Dj=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,UF="fa-layers-text",Fj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Nj=ov((lm={},wn(lm,jr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),wn(lm,Zr,{900:"fass"}),lm)),jF=[1,2,3,4,5,6,7,8,9,10],Lj=jF.concat([11,12,13,14,15,16,17,18,19,20]),Bj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],jl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Th=new Set;Object.keys(Ah[jr]).map(Th.add.bind(Th));Object.keys(Ah[Zr]).map(Th.add.bind(Th));var $j=[].concat(_A,av(Th),["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",jl.GROUP,jl.SWAP_OPACITY,jl.PRIMARY,jl.SECONDARY]).concat(jF.map(function(e){return"".concat(e,"x")})).concat(Lj.map(function(e){return"w-".concat(e)})),eh=Fu.FontAwesomeConfig||{};function zj(e){var t=Gr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Uj(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Gr&&typeof Gr.querySelector=="function"){var jj=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];jj.forEach(function(e){var t=yA(e,2),r=t[0],n=t[1],i=Uj(zj(r));i!=null&&(eh[n]=i)})}var WF={styleDefault:"solid",familyDefault:"classic",cssPrefix:BF,replacementClass:$F,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};eh.familyPrefix&&(eh.cssPrefix=eh.familyPrefix);var fc=$t($t({},WF),eh);fc.autoReplaceSvg||(fc.observeMutations=!1);var Yt={};Object.keys(WF).forEach(function(e){Object.defineProperty(Yt,e,{enumerable:!0,set:function(r){fc[e]=r,th.forEach(function(n){return n(Yt)})},get:function(){return fc[e]}})});Object.defineProperty(Yt,"familyPrefix",{enumerable:!0,set:function(t){fc.cssPrefix=t,th.forEach(function(r){return r(Yt)})},get:function(){return fc.cssPrefix}});Fu.FontAwesomeConfig=Yt;var th=[];function Wj(e){return th.push(e),function(){th.splice(th.indexOf(e),1)}}var nu=tS,La={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Gj(e){if(!(!e||!ko)){var t=Gr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Gr.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 Gr.head.insertBefore(t,n),e}}var qj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Rh(){for(var e=12,t="";e-- >0;)t+=qj[Math.random()*62|0];return t}function kc(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function SA(e){return e.classList?kc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function GF(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Hj(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(GF(e[r]),'" ')},"").trim()}function i1(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function EA(e){return e.size!==La.size||e.x!==La.x||e.y!==La.y||e.rotate!==La.rotate||e.flipX||e.flipY}function Vj(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 Yj(e){var t=e.transform,r=e.width,n=r===void 0?tS:r,i=e.height,a=i===void 0?tS:i,o=e.startCentered,u=o===void 0?!1:o,s="";return u&&LF?s+="translate(".concat(t.x/nu-n/2,"em, ").concat(t.y/nu-a/2,"em) "):u?s+="translate(calc(-50% + ".concat(t.x/nu,"em), calc(-50% + ").concat(t.y/nu,"em)) "):s+="translate(".concat(t.x/nu,"em, ").concat(t.y/nu,"em) "),s+="scale(".concat(t.size/nu*(t.flipX?-1:1),", ").concat(t.size/nu*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Xj=`:root, :host {
73
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
74
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
75
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
76
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
77
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
78
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
79
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
80
- }
81
-
82
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
83
- overflow: visible;
84
- box-sizing: content-box;
85
- }
86
-
87
- .svg-inline--fa {
88
- display: var(--fa-display, inline-block);
89
- height: 1em;
90
- overflow: visible;
91
- vertical-align: -0.125em;
92
- }
93
- .svg-inline--fa.fa-2xs {
94
- vertical-align: 0.1em;
95
- }
96
- .svg-inline--fa.fa-xs {
97
- vertical-align: 0em;
98
- }
99
- .svg-inline--fa.fa-sm {
100
- vertical-align: -0.0714285705em;
101
- }
102
- .svg-inline--fa.fa-lg {
103
- vertical-align: -0.2em;
104
- }
105
- .svg-inline--fa.fa-xl {
106
- vertical-align: -0.25em;
107
- }
108
- .svg-inline--fa.fa-2xl {
109
- vertical-align: -0.3125em;
110
- }
111
- .svg-inline--fa.fa-pull-left {
112
- margin-right: var(--fa-pull-margin, 0.3em);
113
- width: auto;
114
- }
115
- .svg-inline--fa.fa-pull-right {
116
- margin-left: var(--fa-pull-margin, 0.3em);
117
- width: auto;
118
- }
119
- .svg-inline--fa.fa-li {
120
- width: var(--fa-li-width, 2em);
121
- top: 0.25em;
122
- }
123
- .svg-inline--fa.fa-fw {
124
- width: var(--fa-fw-width, 1.25em);
125
- }
126
-
127
- .fa-layers svg.svg-inline--fa {
128
- bottom: 0;
129
- left: 0;
130
- margin: auto;
131
- position: absolute;
132
- right: 0;
133
- top: 0;
134
- }
135
-
136
- .fa-layers-counter, .fa-layers-text {
137
- display: inline-block;
138
- position: absolute;
139
- text-align: center;
140
- }
141
-
142
- .fa-layers {
143
- display: inline-block;
144
- height: 1em;
145
- position: relative;
146
- text-align: center;
147
- vertical-align: -0.125em;
148
- width: 1em;
149
- }
150
- .fa-layers svg.svg-inline--fa {
151
- -webkit-transform-origin: center center;
152
- transform-origin: center center;
153
- }
154
-
155
- .fa-layers-text {
156
- left: 50%;
157
- top: 50%;
158
- -webkit-transform: translate(-50%, -50%);
159
- transform: translate(-50%, -50%);
160
- -webkit-transform-origin: center center;
161
- transform-origin: center center;
162
- }
163
-
164
- .fa-layers-counter {
165
- background-color: var(--fa-counter-background-color, #ff253a);
166
- border-radius: var(--fa-counter-border-radius, 1em);
167
- box-sizing: border-box;
168
- color: var(--fa-inverse, #fff);
169
- line-height: var(--fa-counter-line-height, 1);
170
- max-width: var(--fa-counter-max-width, 5em);
171
- min-width: var(--fa-counter-min-width, 1.5em);
172
- overflow: hidden;
173
- padding: var(--fa-counter-padding, 0.25em 0.5em);
174
- right: var(--fa-right, 0);
175
- text-overflow: ellipsis;
176
- top: var(--fa-top, 0);
177
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
178
- transform: scale(var(--fa-counter-scale, 0.25));
179
- -webkit-transform-origin: top right;
180
- transform-origin: top right;
181
- }
182
-
183
- .fa-layers-bottom-right {
184
- bottom: var(--fa-bottom, 0);
185
- right: var(--fa-right, 0);
186
- top: auto;
187
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
188
- transform: scale(var(--fa-layers-scale, 0.25));
189
- -webkit-transform-origin: bottom right;
190
- transform-origin: bottom right;
191
- }
192
-
193
- .fa-layers-bottom-left {
194
- bottom: var(--fa-bottom, 0);
195
- left: var(--fa-left, 0);
196
- right: auto;
197
- top: auto;
198
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
199
- transform: scale(var(--fa-layers-scale, 0.25));
200
- -webkit-transform-origin: bottom left;
201
- transform-origin: bottom left;
202
- }
203
-
204
- .fa-layers-top-right {
205
- top: var(--fa-top, 0);
206
- right: var(--fa-right, 0);
207
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
208
- transform: scale(var(--fa-layers-scale, 0.25));
209
- -webkit-transform-origin: top right;
210
- transform-origin: top right;
211
- }
212
-
213
- .fa-layers-top-left {
214
- left: var(--fa-left, 0);
215
- right: auto;
216
- top: var(--fa-top, 0);
217
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
218
- transform: scale(var(--fa-layers-scale, 0.25));
219
- -webkit-transform-origin: top left;
220
- transform-origin: top left;
221
- }
222
-
223
- .fa-1x {
224
- font-size: 1em;
225
- }
226
-
227
- .fa-2x {
228
- font-size: 2em;
229
- }
230
-
231
- .fa-3x {
232
- font-size: 3em;
233
- }
234
-
235
- .fa-4x {
236
- font-size: 4em;
237
- }
238
-
239
- .fa-5x {
240
- font-size: 5em;
241
- }
242
-
243
- .fa-6x {
244
- font-size: 6em;
245
- }
246
-
247
- .fa-7x {
248
- font-size: 7em;
249
- }
250
-
251
- .fa-8x {
252
- font-size: 8em;
253
- }
254
-
255
- .fa-9x {
256
- font-size: 9em;
257
- }
258
-
259
- .fa-10x {
260
- font-size: 10em;
261
- }
262
-
263
- .fa-2xs {
264
- font-size: 0.625em;
265
- line-height: 0.1em;
266
- vertical-align: 0.225em;
267
- }
268
-
269
- .fa-xs {
270
- font-size: 0.75em;
271
- line-height: 0.0833333337em;
272
- vertical-align: 0.125em;
273
- }
274
-
275
- .fa-sm {
276
- font-size: 0.875em;
277
- line-height: 0.0714285718em;
278
- vertical-align: 0.0535714295em;
279
- }
280
-
281
- .fa-lg {
282
- font-size: 1.25em;
283
- line-height: 0.05em;
284
- vertical-align: -0.075em;
285
- }
286
-
287
- .fa-xl {
288
- font-size: 1.5em;
289
- line-height: 0.0416666682em;
290
- vertical-align: -0.125em;
291
- }
292
-
293
- .fa-2xl {
294
- font-size: 2em;
295
- line-height: 0.03125em;
296
- vertical-align: -0.1875em;
297
- }
298
-
299
- .fa-fw {
300
- text-align: center;
301
- width: 1.25em;
302
- }
303
-
304
- .fa-ul {
305
- list-style-type: none;
306
- margin-left: var(--fa-li-margin, 2.5em);
307
- padding-left: 0;
308
- }
309
- .fa-ul > li {
310
- position: relative;
311
- }
312
-
313
- .fa-li {
314
- left: calc(var(--fa-li-width, 2em) * -1);
315
- position: absolute;
316
- text-align: center;
317
- width: var(--fa-li-width, 2em);
318
- line-height: inherit;
319
- }
320
-
321
- .fa-border {
322
- border-color: var(--fa-border-color, #eee);
323
- border-radius: var(--fa-border-radius, 0.1em);
324
- border-style: var(--fa-border-style, solid);
325
- border-width: var(--fa-border-width, 0.08em);
326
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
327
- }
328
-
329
- .fa-pull-left {
330
- float: left;
331
- margin-right: var(--fa-pull-margin, 0.3em);
332
- }
333
-
334
- .fa-pull-right {
335
- float: right;
336
- margin-left: var(--fa-pull-margin, 0.3em);
337
- }
338
-
339
- .fa-beat {
340
- -webkit-animation-name: fa-beat;
341
- animation-name: fa-beat;
342
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
343
- animation-delay: var(--fa-animation-delay, 0s);
344
- -webkit-animation-direction: var(--fa-animation-direction, normal);
345
- animation-direction: var(--fa-animation-direction, normal);
346
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
347
- animation-duration: var(--fa-animation-duration, 1s);
348
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
349
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
350
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
351
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
352
- }
353
-
354
- .fa-bounce {
355
- -webkit-animation-name: fa-bounce;
356
- animation-name: fa-bounce;
357
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
358
- animation-delay: var(--fa-animation-delay, 0s);
359
- -webkit-animation-direction: var(--fa-animation-direction, normal);
360
- animation-direction: var(--fa-animation-direction, normal);
361
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
362
- animation-duration: var(--fa-animation-duration, 1s);
363
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
364
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
365
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
366
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
367
- }
368
-
369
- .fa-fade {
370
- -webkit-animation-name: fa-fade;
371
- animation-name: fa-fade;
372
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
373
- animation-delay: var(--fa-animation-delay, 0s);
374
- -webkit-animation-direction: var(--fa-animation-direction, normal);
375
- animation-direction: var(--fa-animation-direction, normal);
376
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
377
- animation-duration: var(--fa-animation-duration, 1s);
378
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
379
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
382
- }
383
-
384
- .fa-beat-fade {
385
- -webkit-animation-name: fa-beat-fade;
386
- animation-name: fa-beat-fade;
387
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
388
- animation-delay: var(--fa-animation-delay, 0s);
389
- -webkit-animation-direction: var(--fa-animation-direction, normal);
390
- animation-direction: var(--fa-animation-direction, normal);
391
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
392
- animation-duration: var(--fa-animation-duration, 1s);
393
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
394
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
395
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
396
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
397
- }
398
-
399
- .fa-flip {
400
- -webkit-animation-name: fa-flip;
401
- animation-name: fa-flip;
402
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
403
- animation-delay: var(--fa-animation-delay, 0s);
404
- -webkit-animation-direction: var(--fa-animation-direction, normal);
405
- animation-direction: var(--fa-animation-direction, normal);
406
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
407
- animation-duration: var(--fa-animation-duration, 1s);
408
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
409
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
410
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
411
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
412
- }
413
-
414
- .fa-shake {
415
- -webkit-animation-name: fa-shake;
416
- animation-name: fa-shake;
417
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
418
- animation-delay: var(--fa-animation-delay, 0s);
419
- -webkit-animation-direction: var(--fa-animation-direction, normal);
420
- animation-direction: var(--fa-animation-direction, normal);
421
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
422
- animation-duration: var(--fa-animation-duration, 1s);
423
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
424
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
425
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
426
- animation-timing-function: var(--fa-animation-timing, linear);
427
- }
428
-
429
- .fa-spin {
430
- -webkit-animation-name: fa-spin;
431
- animation-name: fa-spin;
432
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
433
- animation-delay: var(--fa-animation-delay, 0s);
434
- -webkit-animation-direction: var(--fa-animation-direction, normal);
435
- animation-direction: var(--fa-animation-direction, normal);
436
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
437
- animation-duration: var(--fa-animation-duration, 2s);
438
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
439
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
440
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
441
- animation-timing-function: var(--fa-animation-timing, linear);
442
- }
443
-
444
- .fa-spin-reverse {
445
- --fa-animation-direction: reverse;
446
- }
447
-
448
- .fa-pulse,
449
- .fa-spin-pulse {
450
- -webkit-animation-name: fa-spin;
451
- animation-name: fa-spin;
452
- -webkit-animation-direction: var(--fa-animation-direction, normal);
453
- animation-direction: var(--fa-animation-direction, normal);
454
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
455
- animation-duration: var(--fa-animation-duration, 1s);
456
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
457
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
458
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
459
- animation-timing-function: var(--fa-animation-timing, steps(8));
460
- }
461
-
462
- @media (prefers-reduced-motion: reduce) {
463
- .fa-beat,
464
- .fa-bounce,
465
- .fa-fade,
466
- .fa-beat-fade,
467
- .fa-flip,
468
- .fa-pulse,
469
- .fa-shake,
470
- .fa-spin,
471
- .fa-spin-pulse {
472
- -webkit-animation-delay: -1ms;
473
- animation-delay: -1ms;
474
- -webkit-animation-duration: 1ms;
475
- animation-duration: 1ms;
476
- -webkit-animation-iteration-count: 1;
477
- animation-iteration-count: 1;
478
- transition-delay: 0s;
479
- transition-duration: 0s;
480
- }
481
- }
482
- @-webkit-keyframes fa-beat {
483
- 0%, 90% {
484
- -webkit-transform: scale(1);
485
- transform: scale(1);
486
- }
487
- 45% {
488
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
489
- transform: scale(var(--fa-beat-scale, 1.25));
490
- }
491
- }
492
- @keyframes fa-beat {
493
- 0%, 90% {
494
- -webkit-transform: scale(1);
495
- transform: scale(1);
496
- }
497
- 45% {
498
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
499
- transform: scale(var(--fa-beat-scale, 1.25));
500
- }
501
- }
502
- @-webkit-keyframes fa-bounce {
503
- 0% {
504
- -webkit-transform: scale(1, 1) translateY(0);
505
- transform: scale(1, 1) translateY(0);
506
- }
507
- 10% {
508
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
509
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
510
- }
511
- 30% {
512
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
513
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
514
- }
515
- 50% {
516
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
517
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
518
- }
519
- 57% {
520
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
521
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
522
- }
523
- 64% {
524
- -webkit-transform: scale(1, 1) translateY(0);
525
- transform: scale(1, 1) translateY(0);
526
- }
527
- 100% {
528
- -webkit-transform: scale(1, 1) translateY(0);
529
- transform: scale(1, 1) translateY(0);
530
- }
531
- }
532
- @keyframes fa-bounce {
533
- 0% {
534
- -webkit-transform: scale(1, 1) translateY(0);
535
- transform: scale(1, 1) translateY(0);
536
- }
537
- 10% {
538
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
539
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
540
- }
541
- 30% {
542
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
543
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
544
- }
545
- 50% {
546
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
547
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
548
- }
549
- 57% {
550
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
551
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
552
- }
553
- 64% {
554
- -webkit-transform: scale(1, 1) translateY(0);
555
- transform: scale(1, 1) translateY(0);
556
- }
557
- 100% {
558
- -webkit-transform: scale(1, 1) translateY(0);
559
- transform: scale(1, 1) translateY(0);
560
- }
561
- }
562
- @-webkit-keyframes fa-fade {
563
- 50% {
564
- opacity: var(--fa-fade-opacity, 0.4);
565
- }
566
- }
567
- @keyframes fa-fade {
568
- 50% {
569
- opacity: var(--fa-fade-opacity, 0.4);
570
- }
571
- }
572
- @-webkit-keyframes fa-beat-fade {
573
- 0%, 100% {
574
- opacity: var(--fa-beat-fade-opacity, 0.4);
575
- -webkit-transform: scale(1);
576
- transform: scale(1);
577
- }
578
- 50% {
579
- opacity: 1;
580
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
581
- transform: scale(var(--fa-beat-fade-scale, 1.125));
582
- }
583
- }
584
- @keyframes fa-beat-fade {
585
- 0%, 100% {
586
- opacity: var(--fa-beat-fade-opacity, 0.4);
587
- -webkit-transform: scale(1);
588
- transform: scale(1);
589
- }
590
- 50% {
591
- opacity: 1;
592
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
593
- transform: scale(var(--fa-beat-fade-scale, 1.125));
594
- }
595
- }
596
- @-webkit-keyframes fa-flip {
597
- 50% {
598
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
599
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
600
- }
601
- }
602
- @keyframes fa-flip {
603
- 50% {
604
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
605
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
606
- }
607
- }
608
- @-webkit-keyframes fa-shake {
609
- 0% {
610
- -webkit-transform: rotate(-15deg);
611
- transform: rotate(-15deg);
612
- }
613
- 4% {
614
- -webkit-transform: rotate(15deg);
615
- transform: rotate(15deg);
616
- }
617
- 8%, 24% {
618
- -webkit-transform: rotate(-18deg);
619
- transform: rotate(-18deg);
620
- }
621
- 12%, 28% {
622
- -webkit-transform: rotate(18deg);
623
- transform: rotate(18deg);
624
- }
625
- 16% {
626
- -webkit-transform: rotate(-22deg);
627
- transform: rotate(-22deg);
628
- }
629
- 20% {
630
- -webkit-transform: rotate(22deg);
631
- transform: rotate(22deg);
632
- }
633
- 32% {
634
- -webkit-transform: rotate(-12deg);
635
- transform: rotate(-12deg);
636
- }
637
- 36% {
638
- -webkit-transform: rotate(12deg);
639
- transform: rotate(12deg);
640
- }
641
- 40%, 100% {
642
- -webkit-transform: rotate(0deg);
643
- transform: rotate(0deg);
644
- }
645
- }
646
- @keyframes fa-shake {
647
- 0% {
648
- -webkit-transform: rotate(-15deg);
649
- transform: rotate(-15deg);
650
- }
651
- 4% {
652
- -webkit-transform: rotate(15deg);
653
- transform: rotate(15deg);
654
- }
655
- 8%, 24% {
656
- -webkit-transform: rotate(-18deg);
657
- transform: rotate(-18deg);
658
- }
659
- 12%, 28% {
660
- -webkit-transform: rotate(18deg);
661
- transform: rotate(18deg);
662
- }
663
- 16% {
664
- -webkit-transform: rotate(-22deg);
665
- transform: rotate(-22deg);
666
- }
667
- 20% {
668
- -webkit-transform: rotate(22deg);
669
- transform: rotate(22deg);
670
- }
671
- 32% {
672
- -webkit-transform: rotate(-12deg);
673
- transform: rotate(-12deg);
674
- }
675
- 36% {
676
- -webkit-transform: rotate(12deg);
677
- transform: rotate(12deg);
678
- }
679
- 40%, 100% {
680
- -webkit-transform: rotate(0deg);
681
- transform: rotate(0deg);
682
- }
683
- }
684
- @-webkit-keyframes fa-spin {
685
- 0% {
686
- -webkit-transform: rotate(0deg);
687
- transform: rotate(0deg);
688
- }
689
- 100% {
690
- -webkit-transform: rotate(360deg);
691
- transform: rotate(360deg);
692
- }
693
- }
694
- @keyframes fa-spin {
695
- 0% {
696
- -webkit-transform: rotate(0deg);
697
- transform: rotate(0deg);
698
- }
699
- 100% {
700
- -webkit-transform: rotate(360deg);
701
- transform: rotate(360deg);
702
- }
703
- }
704
- .fa-rotate-90 {
705
- -webkit-transform: rotate(90deg);
706
- transform: rotate(90deg);
707
- }
708
-
709
- .fa-rotate-180 {
710
- -webkit-transform: rotate(180deg);
711
- transform: rotate(180deg);
712
- }
713
-
714
- .fa-rotate-270 {
715
- -webkit-transform: rotate(270deg);
716
- transform: rotate(270deg);
717
- }
718
-
719
- .fa-flip-horizontal {
720
- -webkit-transform: scale(-1, 1);
721
- transform: scale(-1, 1);
722
- }
723
-
724
- .fa-flip-vertical {
725
- -webkit-transform: scale(1, -1);
726
- transform: scale(1, -1);
727
- }
728
-
729
- .fa-flip-both,
730
- .fa-flip-horizontal.fa-flip-vertical {
731
- -webkit-transform: scale(-1, -1);
732
- transform: scale(-1, -1);
733
- }
734
-
735
- .fa-rotate-by {
736
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
737
- transform: rotate(var(--fa-rotate-angle, none));
738
- }
739
-
740
- .fa-stack {
741
- display: inline-block;
742
- vertical-align: middle;
743
- height: 2em;
744
- position: relative;
745
- width: 2.5em;
746
- }
747
-
748
- .fa-stack-1x,
749
- .fa-stack-2x {
750
- bottom: 0;
751
- left: 0;
752
- margin: auto;
753
- position: absolute;
754
- right: 0;
755
- top: 0;
756
- z-index: var(--fa-stack-z-index, auto);
757
- }
758
-
759
- .svg-inline--fa.fa-stack-1x {
760
- height: 1em;
761
- width: 1.25em;
762
- }
763
- .svg-inline--fa.fa-stack-2x {
764
- height: 2em;
765
- width: 2.5em;
766
- }
767
-
768
- .fa-inverse {
769
- color: var(--fa-inverse, #fff);
770
- }
771
-
772
- .sr-only,
773
- .fa-sr-only {
774
- position: absolute;
775
- width: 1px;
776
- height: 1px;
777
- padding: 0;
778
- margin: -1px;
779
- overflow: hidden;
780
- clip: rect(0, 0, 0, 0);
781
- white-space: nowrap;
782
- border-width: 0;
783
- }
784
-
785
- .sr-only-focusable:not(:focus),
786
- .fa-sr-only-focusable:not(:focus) {
787
- position: absolute;
788
- width: 1px;
789
- height: 1px;
790
- padding: 0;
791
- margin: -1px;
792
- overflow: hidden;
793
- clip: rect(0, 0, 0, 0);
794
- white-space: nowrap;
795
- border-width: 0;
796
- }
797
-
798
- .svg-inline--fa .fa-primary {
799
- fill: var(--fa-primary-color, currentColor);
800
- opacity: var(--fa-primary-opacity, 1);
801
- }
802
-
803
- .svg-inline--fa .fa-secondary {
804
- fill: var(--fa-secondary-color, currentColor);
805
- opacity: var(--fa-secondary-opacity, 0.4);
806
- }
807
-
808
- .svg-inline--fa.fa-swap-opacity .fa-primary {
809
- opacity: var(--fa-secondary-opacity, 0.4);
810
- }
811
-
812
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
813
- opacity: var(--fa-primary-opacity, 1);
814
- }
815
-
816
- .svg-inline--fa mask .fa-primary,
817
- .svg-inline--fa mask .fa-secondary {
818
- fill: black;
819
- }
820
-
821
- .fad.fa-inverse,
822
- .fa-duotone.fa-inverse {
823
- color: var(--fa-inverse, #fff);
824
- }`;function qF(){var e=BF,t=$F,r=Yt.cssPrefix,n=Yt.replacementClass,i=Xj;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 pO=!1;function fx(){Yt.autoAddCss&&!pO&&(Gj(qF()),pO=!0)}var Kj={mixout:function(){return{dom:{css:qF,insertCss:fx}}},hooks:function(){return{beforeDOMElementCreation:function(){fx()},beforeI2svg:function(){fx()}}}},Eo=Fu||{};Eo[So]||(Eo[So]={});Eo[So].styles||(Eo[So].styles={});Eo[So].hooks||(Eo[So].hooks={});Eo[So].shims||(Eo[So].shims=[]);var ca=Eo[So],HF=[],Qj=function e(){Gr.removeEventListener("DOMContentLoaded",e),W0=1,HF.map(function(t){return t()})},W0=!1;ko&&(W0=(Gr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gr.readyState),W0||Gr.addEventListener("DOMContentLoaded",Qj));function Zj(e){!ko||(W0?setTimeout(e,0):HF.push(e))}function uv(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"?GF(e):"<".concat(t," ").concat(Hj(n),">").concat(a.map(uv).join(""),"</").concat(t,">")}function hO(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var Jj=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},cx=function(t,r,n,i){var a=Object.keys(t),o=a.length,u=i!==void 0?Jj(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 eW(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 nS(e){var t=eW(e);return t.length===1?t[0].toString(16):null}function tW(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 vO(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 iS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=vO(t);typeof ca.hooks.addPack=="function"&&!i?ca.hooks.addPack(e,vO(t)):ca.styles[e]=$t($t({},ca.styles[e]||{}),a),e==="fas"&&iS("fa",t)}var sm,fm,cm,Df=ca.styles,rW=ca.shims,nW=(sm={},wn(sm,jr,Object.values(Ch[jr])),wn(sm,Zr,Object.values(Ch[Zr])),sm),AA=null,VF={},YF={},XF={},KF={},QF={},iW=(fm={},wn(fm,jr,Object.keys(Eh[jr])),wn(fm,Zr,Object.keys(Eh[Zr])),fm);function aW(e){return~$j.indexOf(e)}function oW(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!aW(i)?i:null}var ZF=function(){var t=function(a){return cx(Df,function(o,u,s){return o[s]=cx(u,a,{}),o},{})};VF=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}),YF=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}),QF=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 Df||Yt.autoFetchSvg,n=cx(rW,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:{}});XF=n.names,KF=n.unicodes,AA=a1(Yt.styleDefault,{family:Yt.familyDefault})};Wj(function(e){AA=a1(e.styleDefault,{family:Yt.familyDefault})});ZF();function CA(e,t){return(VF[e]||{})[t]}function uW(e,t){return(YF[e]||{})[t]}function Wl(e,t){return(QF[e]||{})[t]}function JF(e){return XF[e]||{prefix:null,iconName:null}}function lW(e){var t=KF[e],r=CA("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function Nu(){return AA}var TA=function(){return{prefix:null,iconName:null,rest:[]}};function a1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?jr:r,i=Eh[n][e],a=Ah[n][e]||Ah[n][i],o=e in ca.styles?e:null;return a||o||null}var gO=(cm={},wn(cm,jr,Object.keys(Ch[jr])),wn(cm,Zr,Object.keys(Ch[Zr])),cm);function o1(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},wn(t,jr,"".concat(Yt.cssPrefix,"-").concat(jr)),wn(t,Zr,"".concat(Yt.cssPrefix,"-").concat(Zr)),t),o=null,u=jr;(e.includes(a[jr])||e.some(function(f){return gO[jr].includes(f)}))&&(u=jr),(e.includes(a[Zr])||e.some(function(f){return gO[Zr].includes(f)}))&&(u=Zr);var s=e.reduce(function(f,d){var v=oW(Yt.cssPrefix,d);if(Df[d]?(d=nW[u].includes(d)?Mj[u][d]:d,o=d,f.prefix=d):iW[u].indexOf(d)>-1?(o=d,f.prefix=a1(d,{family:u})):v?f.iconName=v:d!==Yt.replacementClass&&d!==a[jr]&&d!==a[Zr]&&f.rest.push(d),!i&&f.prefix&&f.iconName){var h=o==="fa"?JF(f.iconName):{},g=Wl(f.prefix,f.iconName);h.prefix&&(o=null),f.iconName=h.iconName||g||f.iconName,f.prefix=h.prefix||f.prefix,f.prefix==="far"&&!Df.far&&Df.fas&&!Yt.autoFetchSvg&&(f.prefix="fas")}return f},TA());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&u===Zr&&(Df.fass||Yt.autoFetchSvg)&&(s.prefix="fass",s.iconName=Wl(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=Nu()||"fas"),s}var sW=function(){function e(){xj(this,e),this.definitions={}}return _j(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]),iS(u,o[u]);var s=Ch[jr][u];s&&iS(s,o[u]),ZF()})}},{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}(),mO=[],Ff={},Yf={},fW=Object.keys(Yf);function cW(e,t){var r=t.mixoutsTo;return mO=e,Ff={},Object.keys(Yf).forEach(function(n){fW.indexOf(n)===-1&&delete Yf[n]}),mO.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),j0(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){Ff[o]||(Ff[o]=[]),Ff[o].push(a[o])})}n.provides&&n.provides(Yf)}),r}function aS(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=Ff[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function ns(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=Ff[e]||[];i.forEach(function(a){a.apply(null,r)})}function Ao(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Yf[e]?Yf[e].apply(null,t):void 0}function oS(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Nu();if(!!t)return t=Wl(r,t)||t,hO(eN.definitions,r,t)||hO(ca.styles,r,t)}var eN=new sW,dW=function(){Yt.autoReplaceSvg=!1,Yt.observeMutations=!1,ns("noAuto")},pW={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ko?(ns("beforeI2svg",t),Ao("pseudoElements2svg",t),Ao("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;Yt.autoReplaceSvg===!1&&(Yt.autoReplaceSvg=!0),Yt.observeMutations=!0,Zj(function(){vW({autoReplaceSvgRoot:r}),ns("watch",t)})}},hW={icon:function(t){if(t===null)return null;if(j0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Wl(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=a1(t[0]);return{prefix:n,iconName:Wl(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Yt.cssPrefix,"-"))>-1||t.match(Dj))){var i=o1(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Nu(),iconName:Wl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=Nu();return{prefix:a,iconName:Wl(a,t)||t}}}},Ii={noAuto:dW,config:Yt,dom:pW,parse:hW,library:eN,findIconDefinition:oS,toHtml:uv},vW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?Gr:r;(Object.keys(ca.styles).length>0||Yt.autoFetchSvg)&&ko&&Yt.autoReplaceSvg&&Ii.dom.i2svg({node:n})};function u1(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return uv(n)})}}),Object.defineProperty(e,"node",{get:function(){if(!!ko){var n=Gr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function gW(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(EA(o)&&r.found&&!n.found){var u=r.width,s=r.height,f={x:u/s/2,y:.5};i.style=i1($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 mW(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Yt.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$t($t({},i),{},{id:o}),children:n}]}]}function RA(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=[Yt.replacementClass,a?"".concat(Yt.cssPrefix,"-").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[rs]=""),s&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||Rh())},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?Ao("generateAbstractMask",M)||{children:[],attributes:{}}:Ao("generateAbstractIcon",M)||{children:[],attributes:{}},z=D.children,N=D.attributes;return M.children=z,M.attributes=N,u?mW(M):gW(M)}function yO(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[rs]="");var d=$t({},o.styles);EA(i)&&(d.transform=Yj({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var v=i1(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 yW(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=i1(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 dx=ca.styles;function uS(e){var t=e[0],r=e[1],n=e.slice(4),i=yA(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Yt.cssPrefix,"-").concat(jl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Yt.cssPrefix,"-").concat(jl.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Yt.cssPrefix,"-").concat(jl.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var bW={found:!1,width:512,height:512};function wW(e,t){!zF&&!Yt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function lS(e,t){var r=t;return t==="fa"&&Yt.styleDefault!==null&&(t=Nu()),new Promise(function(n,i){if(Ao("missingIconAbstract"),r==="fa"){var a=JF(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&dx[t]&&dx[t][e]){var o=dx[t][e];return n(uS(o))}wW(e,t),n($t($t({},bW),{},{icon:Yt.showMissingIcons&&e?Ao("missingIconAbstract")||{}:{}}))})}var bO=function(){},sS=Yt.measurePerformance&&nm&&nm.mark&&nm.measure?nm:{mark:bO,measure:bO},Fp='FA "6.2.1"',xW=function(t){return sS.mark("".concat(Fp," ").concat(t," begins")),function(){return tN(t)}},tN=function(t){sS.mark("".concat(Fp," ").concat(t," ends")),sS.measure("".concat(Fp," ").concat(t),"".concat(Fp," ").concat(t," begins"),"".concat(Fp," ").concat(t," ends"))},OA={begin:xW,end:tN},i0=function(){};function wO(e){var t=e.getAttribute?e.getAttribute(rs):null;return typeof t=="string"}function _W(e){var t=e.getAttribute?e.getAttribute(wA):null,r=e.getAttribute?e.getAttribute(xA):null;return t&&r}function SW(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Yt.replacementClass)}function EW(){if(Yt.autoReplaceSvg===!0)return a0.replace;var e=a0[Yt.autoReplaceSvg];return e||a0.replace}function AW(e){return Gr.createElementNS("http://www.w3.org/2000/svg",e)}function CW(e){return Gr.createElement(e)}function rN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?AW:CW:r;if(typeof e=="string")return Gr.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(rN(o,{ceFn:n}))}),i}function TW(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var a0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(rN(i),r)}),r.getAttribute(rs)===null&&Yt.keepOriginalSource){var n=Gr.createComment(TW(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~SA(r).indexOf(Yt.replacementClass))return a0.replace(t);var i=new RegExp("".concat(Yt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(u,s){return s===Yt.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 uv(u)}).join(`
825
- `);r.setAttribute(rs,""),r.innerHTML=o}};function xO(e){e()}function nN(e,t){var r=typeof t=="function"?t:i0;if(e.length===0)r();else{var n=xO;Yt.mutateApproach===Pj&&(n=Fu.requestAnimationFrame||xO),n(function(){var i=EW(),a=OA.begin("mutate");e.map(i),a(),r()})}}var IA=!1;function iN(){IA=!0}function fS(){IA=!1}var G0=null;function _O(e){if(!!cO&&!!Yt.observeMutations){var t=e.treeCallback,r=t===void 0?i0:t,n=e.nodeCallback,i=n===void 0?i0:n,a=e.pseudoElementsCallback,o=a===void 0?i0:a,u=e.observeMutationsRoot,s=u===void 0?Gr:u;G0=new cO(function(f){if(!IA){var d=Nu();kc(f).forEach(function(v){if(v.type==="childList"&&v.addedNodes.length>0&&!wO(v.addedNodes[0])&&(Yt.searchPseudoElements&&o(v.target),r(v.target)),v.type==="attributes"&&v.target.parentNode&&Yt.searchPseudoElements&&o(v.target.parentNode),v.type==="attributes"&&wO(v.target)&&~Bj.indexOf(v.attributeName))if(v.attributeName==="class"&&_W(v.target)){var h=o1(SA(v.target)),g=h.prefix,_=h.iconName;v.target.setAttribute(wA,g||d),_&&v.target.setAttribute(xA,_)}else SW(v.target)&&i(v.target)})}}),ko&&G0.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function RW(){!G0||G0.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 IW(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=o1(SA(e));return i.prefix||(i.prefix=Nu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=uW(i.prefix,e.innerText)||CA(i.prefix,nS(e.innerText))),!i.iconName&&Yt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function PW(e){var t=kc(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Yt.autoA11y&&(r?t["aria-labelledby"]="".concat(Yt.replacementClass,"-title-").concat(n||Rh()):(t["aria-hidden"]="true",t.focusable="false")),t}function kW(){return{iconName:null,title:null,titleId:null,prefix:null,transform:La,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function SO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=IW(e),n=r.iconName,i=r.prefix,a=r.rest,o=PW(e),u=aS("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:La,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},u)}var MW=ca.styles;function aN(e){var t=Yt.autoReplaceSvg==="nest"?SO(e,{styleParser:!1}):SO(e);return~t.extra.classes.indexOf(UF)?Ao("generateLayersText",e,t):Ao("generateSvgReplacementMutation",e,t)}var Lu=new Set;_A.map(function(e){Lu.add("fa-".concat(e))});Object.keys(Eh[jr]).map(Lu.add.bind(Lu));Object.keys(Eh[Zr]).map(Lu.add.bind(Lu));Lu=av(Lu);function EO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ko)return Promise.resolve();var r=Gr.documentElement.classList,n=function(v){return r.add("".concat(dO,"-").concat(v))},i=function(v){return r.remove("".concat(dO,"-").concat(v))},a=Yt.autoFetchSvg?Lu:_A.map(function(d){return"fa-".concat(d)}).concat(Object.keys(MW));a.includes("fa")||a.push("fa");var o=[".".concat(UF,":not([").concat(rs,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(rs,"])")})).join(", ");if(o.length===0)return Promise.resolve();var u=[];try{u=kc(e.querySelectorAll(o))}catch{}if(u.length>0)n("pending"),i("complete");else return Promise.resolve();var s=OA.begin("onTree"),f=u.reduce(function(d,v){try{var h=aN(v);h&&d.push(h)}catch(g){zF||g.name==="MissingIcon"&&console.error(g)}return d},[]);return new Promise(function(d,v){Promise.all(f).then(function(h){nN(h,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(h){s(),v(h)})})}function DW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;aN(e).then(function(r){r&&nN([r],t)})}function FW(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:oS(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:oS(i||{})),e(n,$t($t({},r),{},{mask:i}))}}var NW=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?La: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 u1($t({type:"icon"},t),function(){return ns("beforeDOMElementCreation",{iconDefinition:t,params:r}),Yt.autoA11y&&(h?S["aria-labelledby"]="".concat(Yt.replacementClass,"-title-").concat(_||Rh()):(S["aria-hidden"]="true",S.focusable="false")),RA({icons:{main:uS(z),mask:s?uS(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:D,transform:$t($t({},La),i),symbol:o,title:h,maskId:d,titleId:_,extra:{attributes:S,styles:R,classes:b}})})}},LW={mixout:function(){return{icon:FW(NW)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=EO,r.nodeCallback=DW,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?Gr:n,a=r.callback,o=a===void 0?function(){}:a;return EO(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([lS(i,u),d.iconName?lS(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(A){var b=yA(A,2),w=b[0],S=b[1];g([r,RA({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=i1(u);s.length>0&&(i.style=s);var f;return EA(o)&&(f=Ao("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:i}}}},BW={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 u1({type:"layer"},function(){ns("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(Yt.cssPrefix,"-layers")].concat(av(a)).join(" ")},children:o}]})}}}},$W={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 u1({type:"counter",content:r},function(){return ns("beforeDOMElementCreation",{content:r,params:n}),yW({content:r.toString(),title:a,extra:{attributes:f,styles:v,classes:["".concat(Yt.cssPrefix,"-layers-counter")].concat(av(u))}})})}}}},zW={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?La: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 u1({type:"text",content:r},function(){return ns("beforeDOMElementCreation",{content:r,params:n}),yO({content:r,transform:$t($t({},La),a),title:u,extra:{attributes:v,styles:g,classes:["".concat(Yt.cssPrefix,"-layers-text")].concat(av(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,u=null,s=null;if(LF){var f=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();u=d.width/f,s=d.height/f}return Yt.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,yO({content:r.innerHTML,width:u,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},UW=new RegExp('"',"ug"),AO=[1105920,1112319];function jW(e){var t=e.replace(UW,""),r=tW(t,0),n=r>=AO[0]&&r<=AO[1],i=t.length===2?t[0]===t[1]:!1;return{value:nS(i?t[0]:t),isSecondary:n||i}}function CO(e,t){var r="".concat(Ij).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=kc(e.children),o=a.filter(function(z){return z.getAttribute(rS)===t})[0],u=Fu.getComputedStyle(e,t),s=u.getPropertyValue("font-family").match(Fj),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=~["Sharp"].indexOf(s[2])?Zr:jr,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Ah[h][s[2].toLowerCase()]:Nj[h][f],_=jW(v),A=_.value,b=_.isSecondary,w=s[0].startsWith("FontAwesome"),S=CA(g,A),E=S;if(w){var R=lW(A);R.iconName&&R.prefix&&(S=R.iconName,g=R.prefix)}if(S&&!b&&(!o||o.getAttribute(wA)!==g||o.getAttribute(xA)!==E)){e.setAttribute(r,E),o&&e.removeChild(o);var M=kW(),D=M.extra;D.attributes[rS]=t,lS(S,g).then(function(z){var N=RA($t($t({},M),{},{icons:{main:z,mask:TA()},prefix:g,iconName:E,extra:D,watchable:!0})),L=Gr.createElement("svg");t==="::before"?e.insertBefore(L,e.firstChild):e.appendChild(L),L.outerHTML=N.map(function(ee){return uv(ee)}).join(`
826
- `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function WW(e){return Promise.all([CO(e,"::before"),CO(e,"::after")])}function GW(e){return e.parentNode!==document.head&&!~kj.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(rS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function TO(e){if(!!ko)return new Promise(function(t,r){var n=kc(e.querySelectorAll("*")).filter(GW).map(WW),i=OA.begin("searchPseudoElements");iN(),Promise.all(n).then(function(){i(),fS(),t()}).catch(function(){i(),fS(),r()})})}var qW={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=TO,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Gr:n;Yt.searchPseudoElements&&TO(i)}}},RO=!1,HW={mixout:function(){return{dom:{unwatch:function(){iN(),RO=!0}}}},hooks:function(){return{bootstrap:function(){_O(aS("mutationObserverCallbacks",{}))},noAuto:function(){RW()},watch:function(r){var n=r.observeMutationsRoot;RO?fS():_O(aS("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},OO=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)},VW={mixout:function(){return{parse:{transform:function(r){return OO(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=OO(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)}]}]}}}},px={x:0,y:0,width:"100%",height:"100%"};function IO(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 YW(e){return e.tag==="g"?e.children:[e]}var XW={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?o1(i.split(" ").map(function(o){return o.trim()})):TA();return a.prefix||(a.prefix=Nu()),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=Vj({transform:s,containerWidth:v,iconWidth:f}),_={tag:"rect",attributes:$t($t({},px),{},{fill:"white"})},A=d.children?{children:d.children.map(IO)}:{},b={tag:"g",attributes:$t({},g.inner),children:[IO($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||Rh()),E="clip-".concat(u||Rh()),R={tag:"mask",attributes:$t($t({},px),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[_,w]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:YW(h)},R]};return n.push(M,{tag:"rect",attributes:$t({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(S,")")},px)}),{children:n,attributes:i}}}},KW={provides:function(t){var r=!1;Fu.matchMedia&&(r=Fu.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}}}},QW={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}}}},ZW=[Kj,LW,BW,$W,zW,qW,HW,VW,XW,KW,QW];cW(ZW,{mixoutsTo:Ii});Ii.noAuto;Ii.config;Ii.library;Ii.dom;var cS=Ii.parse;Ii.findIconDefinition;Ii.toHtml;var JW=Ii.icon;Ii.layer;Ii.text;Ii.counter;function PO(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 hu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){Nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q0(e){return q0=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},q0(e)}function Nf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eG(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 tG(e,t){if(e==null)return{};var r=eG(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 dS(e){return rG(e)||nG(e)||iG(e)||aG()}function rG(e){if(Array.isArray(e))return pS(e)}function nG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iG(e,t){if(!!e){if(typeof e=="string")return pS(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 pS(e,t)}}function pS(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 aG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
827
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oG(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":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},Nf(t,"fa-".concat(w),typeof w<"u"&&w!==null),Nf(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),Nf(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Nf(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 uG(e){return e=e-0,e===e}function oN(e){return uG(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var lG=["style"];function sG(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fG(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=oN(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[sG(i)]=a:t[i]=a,t},{})}function uN(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 uN(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=fG(d);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?s.attrs[f.toLowerCase()]=d:s.attrs[oN(f)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,u=tG(r,lG);return i.attrs.style=hu(hu({},i.attrs.style),o),e.apply(void 0,[t.tag,hu(hu({},i.attrs),u)].concat(dS(n)))}var lN=!1;try{lN=!0}catch{}function cG(){if(!lN&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function kO(e){if(e&&q0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(cS.icon)return cS.icon(e);if(e===null)return null;if(e&&q0(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 hx(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Nf({},e,t):{}}var l1=Cn.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,u=e.titleId,s=e.maskId,f=kO(r),d=hx("classes",[].concat(dS(oG(e)),dS(a.split(" ")))),v=hx("transform",typeof e.transform=="string"?cS.transform(e.transform):e.transform),h=hx("mask",kO(n)),g=JW(f,hu(hu(hu(hu({},d),v),h),{},{symbol:i,title:o,titleId:u,maskId:s}));if(!g)return cG("Could not find icon",f),null;var _=g.abstract,A={ref:t};return Object.keys(e).forEach(function(b){l1.defaultProps.hasOwnProperty(b)||(A[b]=e[b])}),dG(_[0],A)});l1.displayName="FontAwesomeIcon";l1.propTypes={beat:gr.exports.bool,border:gr.exports.bool,beatFade:gr.exports.bool,bounce:gr.exports.bool,className:gr.exports.string,fade:gr.exports.bool,flash:gr.exports.bool,mask:gr.exports.oneOfType([gr.exports.object,gr.exports.array,gr.exports.string]),maskId:gr.exports.string,fixedWidth:gr.exports.bool,inverse:gr.exports.bool,flip:gr.exports.oneOf([!0,!1,"horizontal","vertical","both"]),icon:gr.exports.oneOfType([gr.exports.object,gr.exports.array,gr.exports.string]),listItem:gr.exports.bool,pull:gr.exports.oneOf(["right","left"]),pulse:gr.exports.bool,rotation:gr.exports.oneOf([0,90,180,270]),shake:gr.exports.bool,size:gr.exports.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:gr.exports.bool,spinPulse:gr.exports.bool,spinReverse:gr.exports.bool,symbol:gr.exports.oneOfType([gr.exports.bool,gr.exports.string]),title:gr.exports.string,titleId:gr.exports.string,transform:gr.exports.oneOfType([gr.exports.string,gr.exports.object]),swapOpacity:gr.exports.bool};l1.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var dG=uN.bind(null,Cn.createElement),sN={exports:{}},fN={exports:{}},o0=1;function pG(){return o0=(o0*9301+49297)%233280,o0/233280}function hG(e){o0=e}var vG={nextValue:pG,seed:hG},hS=vG,Fl="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",vu,MO,Np;function vS(){Np=!1}function cN(e){if(!e){vu!==Fl&&(vu=Fl,vS());return}if(e!==vu){if(e.length!==Fl.length)throw new Error("Custom alphabet for shortid must be "+Fl.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 "+Fl.length+" unique characters. These characters were not unique: "+t.join(", "));vu=e,vS()}}function gG(e){return cN(e),vu}function mG(e){hS.seed(e),MO!==e&&(vS(),MO=e)}function yG(){vu||cN(Fl);for(var e=vu.split(""),t=[],r=hS.nextValue(),n;e.length>0;)r=hS.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function dN(){return Np||(Np=yG(),Np)}function bG(e){var t=dN();return t[e]}function wG(){return vu||Fl}var PA={get:wG,characters:gG,seed:mG,lookup:bG,shuffled:dN},vx=typeof window=="object"&&(window.crypto||window.msCrypto),gS;!vx||!vx.getRandomValues?gS=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:gS=function(e){return vx.getRandomValues(new Uint8Array(e))};var xG=gS,_G=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},SG=PA,EG=xG,AG=_G;function CG(e){for(var t=0,r,n="";!r;)n=n+AG(EG,SG.get(),1),r=e<Math.pow(16,t+1),t++;return n}var TG=CG,dm=TG,RG=1567752802062,OG=7,pm,DO;function IG(e){var t="",r=Math.floor((Date.now()-RG)*.001);return r===DO?pm++:(pm=0,DO=r),t=t+dm(OG),t=t+dm(e),pm>0&&(t=t+dm(pm)),t=t+dm(r),t}var PG=IG,kG=PA;function MG(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+kG.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var DG=MG;(function(e){var t=PA,r=PG,n=DG,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})(fN);(function(e){e.exports=fN.exports})(sN);const Ude=oE(sN.exports);function Oh(e){return Oh=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},Oh(e)}function FG(e,t){if(Oh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oh(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NG(e){var t=FG(e,"string");return Oh(t)==="symbol"?t:String(t)}function LG(e,t,r){return t=NG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FO(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 NO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){LG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fi(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 LO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),gx=function(){return Math.random().toString(36).substring(7).split("").join(".")},BO={INIT:"@@redux/INIT"+gx(),REPLACE:"@@redux/REPLACE"+gx(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+gx()}};function BG(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 pN(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(fi(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(fi(1));return r(pN)(e,t)}if(typeof e!="function")throw new Error(fi(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(fi(3));return a}function v(A){if(typeof A!="function")throw new Error(fi(4));if(s)throw new Error(fi(5));var b=!0;return f(),u.push(A),function(){if(!!b){if(s)throw new Error(fi(6));b=!1,f();var S=u.indexOf(A);u.splice(S,1),o=null}}}function h(A){if(!BG(A))throw new Error(fi(7));if(typeof A.type>"u")throw new Error(fi(8));if(s)throw new Error(fi(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(fi(10));i=A,h({type:BO.REPLACE})}function _(){var A,b=v;return A={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(fi(11));function E(){S.next&&S.next(d())}E();var R=b(E);return{unsubscribe:R}}},A[LO]=function(){return this},A}return h({type:BO.INIT}),n={dispatch:h,subscribe:v,getState:d,replaceReducer:g},n[LO]=_,n}function $O(e,t){return function(){return t(e.apply(this,arguments))}}function zO(e,t){if(typeof e=="function")return $O(e,t);if(typeof e!="object"||e===null)throw new Error(fi(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=$O(i,t))}return r}function hN(){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 $G(){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(fi(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},u=t.map(function(s){return s(o)});return a=hN.apply(void 0,u)(i.dispatch),NO(NO({},i),{},{dispatch:a})}}}var vN=Cn.createContext(null);function zG(e){e()}var gN=zG,UG=function(t){return gN=t},jG=function(){return gN};function WG(){var e=jG(),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 UO={notify:function(){},get:function(){return[]}};function mN(e,t){var r,n=UO;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=WG())}function f(){r&&(r(),r=void 0,n.clear(),n=UO)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:u,trySubscribe:s,tryUnsubscribe:f,getListeners:function(){return n}};return d}var yN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ut.exports.useLayoutEffect:Ut.exports.useEffect;function GG(e){var t=e.store,r=e.context,n=e.children,i=Ut.exports.useMemo(function(){var u=mN(t);return u.onStateChange=u.notifyNestedSubs,{store:t,subscription:u}},[t]),a=Ut.exports.useMemo(function(){return t.getState()},[t]);yN(function(){var u=i.subscription;return u.trySubscribe(),a!==t.getState()&&u.notifyNestedSubs(),function(){u.tryUnsubscribe(),u.onStateChange=null}},[i,a]);var o=r||vN;return ri(o.Provider,{value:i,children:n})}var bN={exports:{}},Pr={};/** @license React v16.13.1
828
- * react-is.production.min.js
829
- *
830
- * Copyright (c) Facebook, Inc. and its affiliates.
831
- *
832
- * This source code is licensed under the MIT license found in the
833
- * LICENSE file in the root directory of this source tree.
834
- */var On=typeof Symbol=="function"&&Symbol.for,kA=On?Symbol.for("react.element"):60103,MA=On?Symbol.for("react.portal"):60106,s1=On?Symbol.for("react.fragment"):60107,f1=On?Symbol.for("react.strict_mode"):60108,c1=On?Symbol.for("react.profiler"):60114,d1=On?Symbol.for("react.provider"):60109,p1=On?Symbol.for("react.context"):60110,DA=On?Symbol.for("react.async_mode"):60111,h1=On?Symbol.for("react.concurrent_mode"):60111,v1=On?Symbol.for("react.forward_ref"):60112,g1=On?Symbol.for("react.suspense"):60113,qG=On?Symbol.for("react.suspense_list"):60120,m1=On?Symbol.for("react.memo"):60115,y1=On?Symbol.for("react.lazy"):60116,HG=On?Symbol.for("react.block"):60121,VG=On?Symbol.for("react.fundamental"):60117,YG=On?Symbol.for("react.responder"):60118,XG=On?Symbol.for("react.scope"):60119;function Pi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kA:switch(e=e.type,e){case DA:case h1:case s1:case c1:case f1:case g1:return e;default:switch(e=e&&e.$$typeof,e){case p1:case v1:case y1:case m1:case d1:return e;default:return t}}case MA:return t}}}function wN(e){return Pi(e)===h1}Pr.AsyncMode=DA;Pr.ConcurrentMode=h1;Pr.ContextConsumer=p1;Pr.ContextProvider=d1;Pr.Element=kA;Pr.ForwardRef=v1;Pr.Fragment=s1;Pr.Lazy=y1;Pr.Memo=m1;Pr.Portal=MA;Pr.Profiler=c1;Pr.StrictMode=f1;Pr.Suspense=g1;Pr.isAsyncMode=function(e){return wN(e)||Pi(e)===DA};Pr.isConcurrentMode=wN;Pr.isContextConsumer=function(e){return Pi(e)===p1};Pr.isContextProvider=function(e){return Pi(e)===d1};Pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kA};Pr.isForwardRef=function(e){return Pi(e)===v1};Pr.isFragment=function(e){return Pi(e)===s1};Pr.isLazy=function(e){return Pi(e)===y1};Pr.isMemo=function(e){return Pi(e)===m1};Pr.isPortal=function(e){return Pi(e)===MA};Pr.isProfiler=function(e){return Pi(e)===c1};Pr.isStrictMode=function(e){return Pi(e)===f1};Pr.isSuspense=function(e){return Pi(e)===g1};Pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===s1||e===h1||e===c1||e===f1||e===g1||e===qG||typeof e=="object"&&e!==null&&(e.$$typeof===y1||e.$$typeof===m1||e.$$typeof===d1||e.$$typeof===p1||e.$$typeof===v1||e.$$typeof===VG||e.$$typeof===YG||e.$$typeof===XG||e.$$typeof===HG)};Pr.typeOf=Pi;(function(e){e.exports=Pr})(bN);var FA=bN.exports,KG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},QG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ZG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xN={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NA={};NA[FA.ForwardRef]=ZG;NA[FA.Memo]=xN;function jO(e){return FA.isMemo(e)?xN:NA[e.$$typeof]||KG}var JG=Object.defineProperty,eq=Object.getOwnPropertyNames,WO=Object.getOwnPropertySymbols,tq=Object.getOwnPropertyDescriptor,rq=Object.getPrototypeOf,GO=Object.prototype;function _N(e,t,r){if(typeof t!="string"){if(GO){var n=rq(t);n&&n!==GO&&_N(e,n,r)}var i=eq(t);WO&&(i=i.concat(WO(t)));for(var a=jO(e),o=jO(t),u=0;u<i.length;++u){var s=i[u];if(!QG[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var f=tq(t,s);try{JG(e,s,f)}catch{}}}}return e}var qO=_N,SN={exports:{}},Nr={};/** @license React v17.0.2
835
- * react-is.production.min.js
836
- *
837
- * Copyright (c) Facebook, Inc. and its affiliates.
838
- *
839
- * This source code is licensed under the MIT license found in the
840
- * LICENSE file in the root directory of this source tree.
841
- */var b1=60103,w1=60106,lv=60107,sv=60108,fv=60114,cv=60109,dv=60110,pv=60112,hv=60113,LA=60120,vv=60115,gv=60116,EN=60121,AN=60122,CN=60117,TN=60129,RN=60131;if(typeof Symbol=="function"&&Symbol.for){var Dn=Symbol.for;b1=Dn("react.element"),w1=Dn("react.portal"),lv=Dn("react.fragment"),sv=Dn("react.strict_mode"),fv=Dn("react.profiler"),cv=Dn("react.provider"),dv=Dn("react.context"),pv=Dn("react.forward_ref"),hv=Dn("react.suspense"),LA=Dn("react.suspense_list"),vv=Dn("react.memo"),gv=Dn("react.lazy"),EN=Dn("react.block"),AN=Dn("react.server.block"),CN=Dn("react.fundamental"),TN=Dn("react.debug_trace_mode"),RN=Dn("react.legacy_hidden")}function ga(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case b1:switch(e=e.type,e){case lv:case fv:case sv:case hv:case LA:return e;default:switch(e=e&&e.$$typeof,e){case dv:case pv:case gv:case vv:case cv:return e;default:return t}}case w1:return t}}}var nq=cv,iq=b1,aq=pv,oq=lv,uq=gv,lq=vv,sq=w1,fq=fv,cq=sv,dq=hv;Nr.ContextConsumer=dv;Nr.ContextProvider=nq;Nr.Element=iq;Nr.ForwardRef=aq;Nr.Fragment=oq;Nr.Lazy=uq;Nr.Memo=lq;Nr.Portal=sq;Nr.Profiler=fq;Nr.StrictMode=cq;Nr.Suspense=dq;Nr.isAsyncMode=function(){return!1};Nr.isConcurrentMode=function(){return!1};Nr.isContextConsumer=function(e){return ga(e)===dv};Nr.isContextProvider=function(e){return ga(e)===cv};Nr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===b1};Nr.isForwardRef=function(e){return ga(e)===pv};Nr.isFragment=function(e){return ga(e)===lv};Nr.isLazy=function(e){return ga(e)===gv};Nr.isMemo=function(e){return ga(e)===vv};Nr.isPortal=function(e){return ga(e)===w1};Nr.isProfiler=function(e){return ga(e)===fv};Nr.isStrictMode=function(e){return ga(e)===sv};Nr.isSuspense=function(e){return ga(e)===hv};Nr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lv||e===fv||e===TN||e===sv||e===hv||e===LA||e===RN||typeof e=="object"&&e!==null&&(e.$$typeof===gv||e.$$typeof===vv||e.$$typeof===cv||e.$$typeof===dv||e.$$typeof===pv||e.$$typeof===CN||e.$$typeof===EN||e[0]===AN)};Nr.typeOf=ga;(function(e){e.exports=Nr})(SN);var pq=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],hq=["reactReduxForwardedRef"],vq=[],gq=[null,null];function mq(e,t){var r=e[1];return[t.payload,r+1]}function HO(e,t,r){yN(function(){return e.apply(void 0,t)},r)}function yq(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function bq(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 wq=function(){return[null,0]};function xq(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?vN:A,w=oc(r,pq),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=oc(Ee,hq);return[Ee.context,le,Ne]},[Ee]),je=Je[0],me=Je[1],Fe=Je[2],qe=Ut.exports.useMemo(function(){return je&&je.Consumer&&SN.exports.isContextConsumer(Cn.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 gq;var le=mN(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(mq,vq,wq),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]);HO(yq,[j,_e,I,Fe,C,te,st]),HO(bq,[d,ye,Ze,Ke,j,_e,I,te,st,mt],[ye,Ze,Ke]);var P=Ut.exports.useMemo(function(){return ri(R,{...C,ref:me})},[me,R,C]),U=Ut.exports.useMemo(function(){return d?ri(qe.Provider,{value:Rt,children:P}):P},[qe,P,Rt]);return U}var pe=N?Cn.memo(ue):ue;if(pe.WrappedComponent=R,pe.displayName=ue.displayName=D,_){var we=Cn.forwardRef(function(Je,je){return ri(pe,{...Je,reactReduxForwardedRef:je})});return we.displayName=D,we.WrappedComponent=R,qO(we,R)}return qO(pe,R)}}function VO(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mx(e,t){if(VO(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])||!VO(e[r[i]],t[r[i]]))return!1;return!0}function _q(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 BA(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function YO(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function ON(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=YO(e);var f=a(u,s);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=YO(f),f=a(u,s)),f},a}}function Sq(e){return typeof e=="function"?ON(e):void 0}function Eq(e){return e?void 0:BA(function(t){return{dispatch:t}})}function Aq(e){return e&&typeof e=="object"?BA(function(t){return _q(e,t)}):void 0}const Cq=[Sq,Eq,Aq];function Tq(e){return typeof e=="function"?ON(e):void 0}function Rq(e){return e?void 0:BA(function(){return{}})}const Oq=[Tq,Rq];function Iq(e,t,r){return ir({},r,e,t)}function Pq(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 kq(e){return typeof e=="function"?Pq(e):void 0}function Mq(e){return e?void 0:function(){return Iq}}const Dq=[kq,Mq];var Fq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Nq(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function Lq(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 Bq(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=oc(t,Fq),o=r(e,a),u=n(e,a),s=i(e,a),f=a.pure?Lq:Nq;return f(o,u,s,e,a)}var $q=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function yx(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 zq(e,t){return e===t}function Uq(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?xq:r,i=t.mapStateToPropsFactories,a=i===void 0?Oq:i,o=t.mapDispatchToPropsFactories,u=o===void 0?Cq:o,s=t.mergePropsFactories,f=s===void 0?Dq:s,d=t.selectorFactory,v=d===void 0?Bq: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?zq:R,D=w.areOwnPropsEqual,z=D===void 0?mx:D,N=w.areStatePropsEqual,L=N===void 0?mx:N,ee=w.areMergedPropsEqual,ue=ee===void 0?mx:ee,pe=oc(w,$q),we=yx(g,a,"mapStateToProps"),Ee=yx(_,u,"mapDispatchToProps"),Je=yx(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 IN=Uq();UG(uE.exports.unstable_batchedUpdates);function jq(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 PN(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&&jq(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 Wq(e,t){return PN(function(){return e},t)}var Er=PN,Qt=Wq,Gq=!0,bx="Invariant failed";function qq(e,t){if(!e){if(Gq)throw new Error(bx);var r=typeof t=="function"?t():t,n=r?bx+": "+r:bx;throw new Error(n)}}var da=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},$A=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},XO=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},Hq=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},wx={top:0,right:0,bottom:0,left:0},zA=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?wx:n,a=t.border,o=a===void 0?wx:a,u=t.padding,s=u===void 0?wx:u,f=da($A(r,i)),d=da(XO(r,o)),v=da(XO(d,s));return{marginBox:f,borderBox:da(r),paddingBox:d,contentBox:v,margin:i,border:o,padding:s}},Ni=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&qq(!1),i},Vq=function(){return{x:window.pageXOffset,y:window.pageYOffset}},H0=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,u=Hq(n,r);return zA({borderBox:u,border:i,margin:a,padding:o})},V0=function(t,r){return r===void 0&&(r=Vq()),H0(t,r)},kN=function(t,r){var n={top:Ni(r.marginTop),right:Ni(r.marginRight),bottom:Ni(r.marginBottom),left:Ni(r.marginLeft)},i={top:Ni(r.paddingTop),right:Ni(r.paddingRight),bottom:Ni(r.paddingBottom),left:Ni(r.paddingLeft)},a={top:Ni(r.borderTopWidth),right:Ni(r.borderRightWidth),bottom:Ni(r.borderBottomWidth),left:Ni(r.borderLeftWidth)};return zA({borderBox:t,margin:n,padding:i,border:a})},MN=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return kN(r,n)},KO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Yq(e,t){return!!(e===t||KO(e)&&KO(t))}function Xq(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Yq(e[r],t[r]))return!1;return!0}function nn(e,t){t===void 0&&(t=Xq);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 Kq=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 Ih=Kq;function DN(e,t){}DN.bind(null,"warn");DN.bind(null,"error");function Cu(){}function Qq(e,t){return ir({},e,{},t)}function ji(e,t,r){var n=t.map(function(i){var a=Qq(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 Zq="Invariant failed";function Y0(e){this.message=e}Y0.prototype.toString=function(){return this.message};function bt(e,t){if(!e)throw new Y0(Zq)}var Jq=function(e){ev(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=Cu,n.onWindowError=function(u){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var f=u.error;f instanceof Y0&&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=ji(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Y0){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(Cn.Component),eH=`
842
- Press space bar to start a drag.
843
- When dragging you can use the arrow keys to move the item around and escape to cancel.
844
- Some screen readers may require you to be in focus mode or to use your pass through key
845
- `,X0=function(t){return t+1},tH=function(t){return`
846
- You have lifted an item in position `+X0(t.source.index)+`
847
- `},FN=function(t,r){var n=t.droppableId===r.droppableId,i=X0(t.index),a=X0(r.index);return n?`
848
- You have moved the item from position `+i+`
849
- to position `+a+`
850
- `:`
851
- You have moved the item from position `+i+`
852
- in list `+t.droppableId+`
853
- to list `+r.droppableId+`
854
- in position `+a+`
855
- `},NN=function(t,r,n){var i=r.droppableId===n.droppableId;return i?`
856
- The item `+t+`
857
- has been combined with `+n.draggableId:`
858
- The item `+t+`
859
- in list `+r.droppableId+`
860
- has been combined with `+n.draggableId+`
861
- in list `+n.droppableId+`
862
- `},rH=function(t){var r=t.destination;if(r)return FN(t.source,r);var n=t.combine;return n?NN(t.draggableId,t.source,n):"You are over an area that cannot be dropped on"},QO=function(t){return`
863
- The item has returned to its starting position
864
- of `+X0(t.index)+`
865
- `},nH=function(t){if(t.reason==="CANCEL")return`
866
- Movement cancelled.
867
- `+QO(t.source)+`
868
- `;var r=t.destination,n=t.combine;return r?`
869
- You have dropped the item.
870
- `+FN(t.source,r)+`
871
- `:n?`
872
- You have dropped the item.
873
- `+NN(t.draggableId,t.source,n)+`
874
- `:`
875
- The item has been dropped while not over a drop area.
876
- `+QO(t.source)+`
877
- `},u0={dragHandleUsageInstructions:eH,onDragStart:tH,onDragUpdate:rH,onDragEnd:nH},Rn={x:0,y:0},Bn=function(t,r){return{x:t.x+r.x,y:t.y+r.y}},Ai=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},Tu=function(t,r){return t.x===r.x&&t.y===r.y},Mc=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},is=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},Ph=function(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))},ZO=function(t,r){return Math.min.apply(Math,r.map(function(n){return Ph(t,n)}))},LN=function(t){return function(r){return{x:t(r.x),y:t(r.y)}}},iH=function(e,t){var r=da({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},mv=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},JO=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}]},aH={top:0,right:0,bottom:0,left:0},oH=function(t,r){return r?mv(t,r.scroll.diff.displacement):t},uH=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},lH=function(t,r){return r&&r.shouldClipSubject?iH(r.pageMarginBox,t):da(t)},cc=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=oH(t.marginBox,i),o=uH(a,n,r),u=lH(o,i);return{page:t,withPlaceholder:r,active:u}},UA=function(e,t){e.frame||bt(!1);var r=e.frame,n=Ai(t,r.scroll.initial),i=Mc(n),a=ir({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),o=cc({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a}),u=ir({},e,{frame:a,subject:o});return u};function K0(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function jA(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 qu(e,t){if(e.find)return e.find(t);var r=jA(e,t);if(r!==-1)return e[r]}function BN(e){return Array.prototype.slice.call(e)}var $N=nn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),zN=nn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),x1=nn(function(e){return K0(e)}),sH=nn(function(e){return K0(e)}),Dc=nn(function(e,t){var r=sH(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function WA(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function _1(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var S1=nn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),fH=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=WA(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=S1(r,i);if(!f){if(!d.length)return null;var v=d[d.length-1];return u(v.descriptor.id)}var h=jA(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)},Fc=function(e,t){return e.descriptor.droppableId===t.descriptor.id},UN={point:Rn,value:0},kh={invisible:{},visible:{},all:[]},cH={displaced:kh,displacedBy:UN,at:null},Gi=function(e,t){return function(r){return e<=r&&r<=t}},jN=function(e){var t=Gi(e.top,e.bottom),r=Gi(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}},dH=function(e){var t=Gi(e.top,e.bottom),r=Gi(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);return i}},GA={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},WN={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},pH=function(e){return function(t){var r=Gi(t.top,t.bottom),n=Gi(t.left,t.right);return function(i){return e===GA?r(i.top)&&r(i.bottom):n(i.left)&&n(i.right)}}},hH=function(t,r){var n=r.frame?r.frame.scroll.diff.displacement:Rn;return mv(t,n)},vH=function(t,r,n){return r.subject.active?n(r.subject.active)(t):!1},gH=function(t,r,n){return n(r)(t)},qA=function(t){var r=t.target,n=t.destination,i=t.viewport,a=t.withDroppableDisplacement,o=t.isVisibleThroughFrameFn,u=a?hH(r,n):r;return vH(u,n,o)&&gH(u,i,o)},mH=function(t){return qA(ir({},t,{isVisibleThroughFrameFn:jN}))},GN=function(t){return qA(ir({},t,{isVisibleThroughFrameFn:dH}))},yH=function(t){return qA(ir({},t,{isVisibleThroughFrameFn:pH(t.destination.axis)}))},bH=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 wH(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return da($A(r,n))}function Mh(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=wH(f,n),v=f.descriptor.id;s.all.push(v);var h=mH({target:d,destination:r,viewport:i,withDroppableDisplacement:!0});if(!h)return s.invisible[f.descriptor.id]=!0,s;var g=bH(v,o,a),_={draggableId:v,shouldAnimate:g};return s.visible[v]=_,s},{all:[],visible:{},invisible:{}})}function xH(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function e5(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,a=xH(t,{inHomeList:r});return{displaced:kh,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function Q0(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=Fc(t,n);if(u==null)return e5({insideDestination:r,inHomeList:f,displacedBy:a,destination:n});var d=qu(r,function(A){return A.descriptor.index===u});if(!d)return e5({insideDestination:r,inHomeList:f,displacedBy:a,destination:n});var v=S1(t,r),h=r.indexOf(d),g=v.slice(h),_=Mh({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 Bu(e,t){return Boolean(t.effected[e])}var _H=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=Bu(o,a);return f?t?s:s-1:t?s+1:s},SH=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},EH=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=SH({isMovingForward:t,isInHomeList:r,location:d.destination,insideDestination:o});return v==null?null:Q0({draggable:n,insideDestination:o,destination:a,viewport:s,last:u.displaced,displacedBy:u.displacedBy,index:v})}var h=_H({isMovingForward:t,destination:a,displaced:u.displaced,draggables:i,combine:d.combine,afterCritical:f});return h==null?null:Q0({draggable:n,insideDestination:o,destination:a,viewport:s,last:u.displaced,displacedBy:u.displacedBy,index:h})},AH=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,a=Boolean(t.visible[n]||t.invisible[n]);return Bu(n,r)?a?Rn:Mc(i.point):a?i.point:Rn},CH=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=_1(r);i||bt(!1);var a=i.draggableId,o=n[a].page.borderBox.center,u=AH({displaced:r.displaced,afterCritical:t,combineWith:a,displacedBy:r.displacedBy});return Bn(o,u)},qN=function(t,r){return r.margin[t.start]+r.borderBox[t.size]/2},TH=function(t,r){return r.margin[t.end]+r.borderBox[t.size]/2},HA=function(t,r,n){return r[t.crossAxisStart]+n.margin[t.crossAxisStart]+n.borderBox[t.crossAxisSize]/2},t5=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return is(r.line,n.marginBox[r.end]+qN(r,i),HA(r,n.marginBox,i))},r5=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return is(r.line,n.marginBox[r.start]-TH(r,i),HA(r,n.marginBox,i))},RH=function(t){var r=t.axis,n=t.moveInto,i=t.isMoving;return is(r.line,n.contentBox[r.start]+qN(r,i),HA(r,n.contentBox,i))},OH=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,a=e.afterCritical,o=Dc(i.descriptor.id,n),u=r.page,s=i.axis;if(!o.length)return RH({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(Bu(v,a))return r5({axis:s,moveRelativeTo:h.page,isMoving:u});var g=H0(h.page,d.point);return r5({axis:s,moveRelativeTo:g,isMoving:u})}var _=o[o.length-1];if(_.descriptor.id===r.descriptor.id)return u.borderBox.center;if(Bu(_.descriptor.id,a)){var A=H0(_.page,Mc(a.displacedBy.point));return t5({axis:s,moveRelativeTo:A,isMoving:u})}return t5({axis:s,moveRelativeTo:_.page,isMoving:u})},mS=function(e,t){var r=e.frame;return r?Bn(t,r.scroll.diff.displacement):t},IH=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"?OH({impact:r,draggable:n,draggables:a,droppable:i,afterCritical:o}):CH({impact:r,draggables:a,afterCritical:o})},E1=function(e){var t=IH(e),r=e.droppable,n=r?mS(r,t):t;return n},HN=function(e,t){var r=Ai(t,e.scroll.initial),n=Mc(r),i=da({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 n5(e,t){return e.map(function(r){return t[r]})}function PH(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}var kH=function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,o=HN(r,Bn(r.scroll.current,a)),u=n.frame?UA(n,Bn(n.frame.scroll.current,a)):n,s=t.displaced,f=Mh({afterDragging:n5(s.all,i),destination:n,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),d=Mh({afterDragging:n5(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=PH(A,g);if(b){h[A]=b;return}v[A]=!0});var _=ir({},t,{displaced:{all:s.all,invisible:v,visible:h}});return _},MH=function(e,t){return Bn(e.scroll.diff.displacement,t)},VA=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=e.viewport,i=MH(n,t),a=Ai(i,r.page.borderBox.center);return Bn(r.client.borderBox.center,a)},VN=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=Ai(n,t.page.borderBox.center),f=mv(t.page.borderBox,s),d={target:f,destination:r,withDroppableDisplacement:a,viewport:i};return u?yH(d):GN(d)},DH=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=Dc(n.descriptor.id,i),v=Fc(r,n),h=fH({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:a})||EH({isMovingForward:t,isInHomeList:v,draggable:r,draggables:i,destination:n,insideDestination:d,previousImpact:a,viewport:o,afterCritical:f});if(!h)return null;var g=E1({impact:h,draggable:r,droppable:n,draggables:i,afterCritical:f}),_=VN({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(_){var A=VA({pageBorderBoxCenter:g,draggable:r,viewport:o});return{clientSelection:A,impact:h,scrollJumpRequest:null}}var b=Ai(g,u),w=kH({impact:h,viewport:o,destination:n,draggables:i,maxScrollChange:b});return{clientSelection:s,impact:w,scrollJumpRequest:b}},Jn=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=Gi(o[u.start],o[u.end]),f=x1(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 jN(a.frame)(Jn(v))}).filter(function(v){var h=Jn(v);return t?o[u.crossAxisEnd]<h[u.crossAxisEnd]:h[u.crossAxisStart]<o[u.crossAxisStart]}).filter(function(v){var h=Jn(v),g=Gi(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=Jn(v)[u.crossAxisStart],_=Jn(h)[u.crossAxisStart];return t?g-_:_-g}).filter(function(v,h,g){return Jn(v)[u.crossAxisStart]===Jn(g[0])[u.crossAxisStart]});if(!f.length)return null;if(f.length===1)return f[0];var d=f.filter(function(v){var h=Gi(Jn(v)[u.start],Jn(v)[u.end]);return h(r[u.line])});return d.length===1?d[0]:d.length>1?d.sort(function(v,h){return Jn(v)[u.start]-Jn(h)[u.start]})[0]:f.sort(function(v,h){var g=ZO(r,JO(Jn(v))),_=ZO(r,JO(Jn(h)));return g!==_?g-_:Jn(v)[u.start]-Jn(h)[u.start]})[0]},i5=function(t,r){var n=t.page.borderBox.center;return Bu(t.descriptor.id,r)?Ai(n,r.displacedBy.point):n},NH=function(t,r){var n=t.page.borderBox;return Bu(t.descriptor.id,r)?mv(n,Mc(r.displacedBy.point)):n},LH=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,a=e.afterCritical,o=i.filter(function(u){return GN({target:NH(u,a),destination:n,viewport:r.frame,withDroppableDisplacement:!0})}).sort(function(u,s){var f=Ph(t,mS(n,i5(u,a))),d=Ph(t,mS(n,i5(s,a)));return f<d?-1:d<f?1:u.descriptor.index-s.descriptor.index});return o[0]||null},yv=nn(function(t,r){var n=r[t.line];return{value:n,point:is(t.line,n)}}),BH=function(t,r,n){var i=t.axis;if(t.descriptor.mode==="virtual")return is(i.line,r[i.line]);var a=t.subject.page.contentBox[i.size],o=Dc(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:is(i.line,f)},YN=function(t,r){return ir({},t,{scroll:ir({},t.scroll,{max:r})})},XN=function(t,r,n){var i=t.frame;Fc(r,t)&&bt(!1),t.subject.withPlaceholder&&bt(!1);var a=yv(t.axis,r.displaceBy).point,o=BH(t,a,n),u={placeholderSize:a,increasedBy:o,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var s=cc({page:t.subject.page,withPlaceholder:u,axis:t.axis,frame:t.frame});return ir({},t,{subject:s})}var f=o?Bn(i.scroll.max,o):i.scroll.max,d=YN(i,f),v=cc({page:t.subject.page,withPlaceholder:u,axis:t.axis,frame:d});return ir({},t,{subject:v,frame:d})},$H=function(t){var r=t.subject.withPlaceholder;r||bt(!1);var n=t.frame;if(!n){var i=cc({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=YN(n,a),u=cc({page:t.subject.page,axis:t.axis,frame:o,withPlaceholder:null});return ir({},t,{subject:u,frame:o})},zH=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:kh,displacedBy:UN,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},d=E1({impact:f,draggable:i,droppable:o,draggables:a,afterCritical:s}),v=Fc(i,o)?o:XN(o,i,a),h=VN({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=yv(o.axis,i.displaceBy);return Q0({draggable:i,insideDestination:n,destination:o,viewport:u,displacedBy:A,last:kh,index:_})},UH=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=Dc(f.descriptor.id,a),v=LH({pageBorderBoxCenter:r,viewport:u,destination:f,insideDestination:d,afterCritical:s}),h=zH({previousPageBorderBoxCenter:r,destination:f,draggable:n,draggables:a,moveRelativeTo:v,insideDestination:d,viewport:u,afterCritical:s});if(!h)return null;var g=E1({impact:h,draggable:n,droppable:f,draggables:a,afterCritical:s}),_=VA({pageBorderBoxCenter:g,draggable:n,viewport:u});return{clientSelection:_,impact:h,scrollJumpRequest:null}},Ti=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},jH=function(t,r){var n=Ti(t);return n?r[n]:null},WH=function(e){var t=e.state,r=e.type,n=jH(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?DH({isMovingForward:f,previousPageBorderBoxCenter:v,draggable:d,destination:o,draggables:g,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):UH({isMovingForward:f,previousPageBorderBoxCenter:v,draggable:d,isOver:o,draggables:g,droppables:_,viewport:t.viewport,afterCritical:t.afterCritical})};function Ml(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function KN(e){var t=Gi(e.top,e.bottom),r=Gi(e.left,e.right);return function(i){return t(i.y)&&r(i.x)}}function GH(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function qH(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=is(o.axis.line,t.center[u.line],o.page.borderBox.center[u.crossAxisLine]);return{id:o.descriptor.id,distance:Ph(i,s)}}).sort(function(o,u){return u.distance-o.distance});return a[0]?a[0].id:null}function HH(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=x1(n).filter(function(a){if(!a.isEnabled)return!1;var o=a.subject.active;if(!o||!GH(t,o))return!1;if(KN(o)(t.center))return!0;var u=a.axis,s=o.center[u.crossAxisLine],f=t[u.crossAxisStart],d=t[u.crossAxisEnd],v=Gi(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:qH({pageBorderBox:t,draggable:r,candidates:i}):null}var QN=function(t,r){return da(mv(t,r))},VH=function(e,t){var r=e.frame;return r?QN(t,r.scroll.diff.value):t};function ZN(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}function YH(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 XH=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=yv(n.axis,r.displaceBy),d=f.value,v=t[s.start],h=t[s.end],g=S1(r,i),_=qu(g,function(b){var w=b.descriptor.id,S=b.page.borderBox.center[s.line],E=Bu(w,u),R=ZN({displaced:a,id:w});return E?R?h<=S:v<S-d:R?h<=S+d:v<S}),A=YH({draggable:r,closest:_,inHomeList:Fc(r,n)});return Q0({draggable:r,insideDestination:i,destination:n,viewport:o,last:a,displacedBy:f,index:A})},KH=4,QH=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=yv(i.axis,t.displaceBy),f=s.value,d=r[u.start],v=r[u.end],h=S1(t,a),g=qu(h,function(A){var b=A.descriptor.id,w=A.page.borderBox,S=w[u.size],E=S/KH,R=Bu(b,o),M=ZN({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 _},JN=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=QN(r.page.borderBox,t),f=HH({pageBorderBox:s,draggable:r,droppables:i});if(!f)return cH;var d=i[f],v=Dc(d.descriptor.id,n),h=VH(d,s);return QH({pageBorderBoxWithDroppableScroll:h,draggable:r,previousImpact:a,destination:d,insideDestination:v,afterCritical:u})||XH({pageBorderBoxWithDroppableScroll:h,draggable:r,destination:d,insideDestination:v,last:a.displaced,viewport:o,afterCritical:u})},YA=function(e,t){var r;return ir({},e,(r={},r[t.descriptor.id]=t,r))},ZH=function(t){var r=t.previousImpact,n=t.impact,i=t.droppables,a=Ti(r),o=Ti(n);if(!a||a===o)return i;var u=i[a];if(!u.subject.withPlaceholder)return i;var s=$H(u);return YA(i,s)},JH=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,a=e.impact,o=ZH({previousImpact:i,impact:a,droppables:n}),u=Ti(a);if(!u)return o;var s=n[u];if(Fc(t,s)||s.subject.withPlaceholder)return o;var f=XN(s,t,r);return YA(o,f)},rh=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=Ai(f,t.initial.client.selection),v={offset:d,selection:f,borderBoxCenter:Bn(t.initial.client.borderBoxCenter,d)},h={selection:Bn(v.selection,u.scroll.current),borderBoxCenter:Bn(v.borderBoxCenter,u.scroll.current),offset:Bn(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||JN({pageOffset:h.offset,draggable:_,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),b=JH({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 eV(e,t){return e.map(function(r){return t[r]})}var e4=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,o=t.displaced,u=eV(o.all,n),s=Mh({afterDragging:u,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:a,last:o});return ir({},t,{displaced:s})},t4=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,u=E1({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o});return VA({pageBorderBoxCenter:u,draggable:r,viewport:a})},r4=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=Ti(i);d||bt(!1);var v=s[d],h=e4({impact:i,viewport:a,destination:v,draggables:u}),g=t4({impact:h,draggable:f,droppable:v,draggables:u,viewport:a,afterCritical:t.afterCritical});return rh({impact:h,clientSelection:g,state:t,dimensions:o,viewport:a})},tV=function(e){return{index:e.index,droppableId:e.droppableId}},n4=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,a=yv(r.axis,t.displaceBy),o=Dc(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=Mh({afterDragging:s,destination:r,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),h={displaced:v,displacedBy:a,at:{type:"REORDER",destination:tV(t.descriptor)}};return{impact:h,afterCritical:d}},rV=function(e,t){return{draggables:e.draggables,droppables:YA(e.droppables,t)}},nV=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=H0(t.client,r),a=V0(i,n),o=ir({},t,{placeholder:ir({},t.placeholder,{client:i}),client:i,page:a});return o},iV=function(e){var t=e.frame;return t||bt(!1),t},aV=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=iV(u),f=s.scroll.diff.value,d=Bn(i,f),v=nV({draggable:a,offset:d,initialWindowScroll:n.scroll.initial});return v})},oV=function(e){var t=e.state,r=e.published,n=r.modified.map(function(E){var R=t.dimensions.droppables[E.droppableId],M=UA(R,E.scroll);return M}),i=ir({},t.dimensions.droppables,{},$N(n)),a=zN(aV({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=Ti(t.impact),f=s?u.droppables[s]:null,d=u.draggables[t.critical.draggable.id],v=u.droppables[t.critical.droppable.id],h=n4({draggable:d,home:v,draggables:o,viewport:t.viewport}),g=h.impact,_=h.afterCritical,A=f&&f.isCombineEnabled?t.impact:g,b=JN({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},yS=function(t){return t.movementMode==="SNAP"},xx=function(t,r,n){var i=rV(t.dimensions,r);return!yS(t)||n?rh({state:t,dimensions:i}):r4({state:t,dimensions:i})};function _x(e){return e.isDragging&&e.movementMode==="SNAP"?ir({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var a5={phase:"IDLE",completed:null,shouldFlush:!1},uV=function(e,t){if(e===void 0&&(e=a5),t.type==="FLUSH")return ir({},a5,{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:Rn},v={client:d,page:{selection:Bn(d.selection,a.scroll.initial),borderBoxCenter:Bn(d.selection,a.scroll.initial),offset:Bn(d.selection,a.scroll.diff.value)}},h=x1(o.droppables).every(function(mt){return!mt.isFixedOnPage}),g=n4({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),oV({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ml(e)||bt(!1);var S=t.payload.client;return Tu(S,e.current.client.selection)?e:rh({state:e,clientSelection:S,impact:yS(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return _x(e);Ml(e)||bt(!1);var E=t.payload,R=E.id,M=E.newScroll,D=e.dimensions.droppables[R];if(!D)return e;var z=UA(D,M);return xx(e,z,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ml(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 xx(e,pe,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ml(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 xx(e,me,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ml(e)||bt(!1),e.isWindowScrollAllowed||bt(!1);var Fe=t.payload.newScroll;if(Tu(e.viewport.scroll.current,Fe))return _x(e);var qe=HN(e.viewport,Fe);return yS(e)?r4({state:e,viewport:qe}):rh({state:e,viewport:qe})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ml(e))return e;var Ue=t.payload.maxScroll;if(Tu(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=WH({state:e,type:t.type});return ye?rh({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},lV=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},sV=function(t){return{type:"LIFT",payload:t}},fV=function(t){return{type:"INITIAL_PUBLISH",payload:t}},cV=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},dV=function(){return{type:"COLLECTION_STARTING",payload:null}},pV=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},hV=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},vV=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},i4=function(t){return{type:"MOVE",payload:t}},gV=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},mV=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},yV=function(){return{type:"MOVE_UP",payload:null}},bV=function(){return{type:"MOVE_DOWN",payload:null}},wV=function(){return{type:"MOVE_RIGHT",payload:null}},xV=function(){return{type:"MOVE_LEFT",payload:null}},XA=function(){return{type:"FLUSH",payload:null}},_V=function(t){return{type:"DROP_ANIMATE",payload:t}},KA=function(t){return{type:"DROP_COMPLETE",payload:t}},a4=function(t){return{type:"DROP",payload:t}},SV=function(t){return{type:"DROP_PENDING",payload:t}},o4=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},EV=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(KA({completed:d.completed})),r().phase!=="IDLE"&&bt(!1),n(XA()),n(lV({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(fV({critical:_,dimensions:A,clientSelection:s,movementMode:f,viewport:b}))}}}},AV=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)}}}},QA={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Dh={opacity:{drop:0,combining:.7},scale:{drop:.75}},ZA={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Al=ZA.outOfTheWay+"s "+QA.outOfTheWay,nh={fluid:"opacity "+Al,snap:"transform "+Al+", opacity "+Al,drop:function(t){var r=t+"s "+QA.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Al,placeholder:"height "+Al+", width "+Al+", margin "+Al},o5=function(t){return Tu(t,Rn)?null:"translate("+t.x+"px, "+t.y+"px)"},bS={moveTo:o5,drop:function(t,r){var n=o5(t);return n?r?n+" scale("+Dh.scale.drop+")":n:null}},wS=ZA.minDropTime,u4=ZA.maxDropTime,CV=u4-wS,u5=1500,TV=.6,RV=function(e){var t=e.current,r=e.destination,n=e.reason,i=Ph(t,r);if(i<=0)return wS;if(i>=u5)return u4;var a=i/u5,o=wS+CV*a,u=n==="CANCEL"?o*TV:o;return Number(u.toFixed(2))},OV=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=Ti(t),f=s?u[s]:null,d=u[r.descriptor.droppableId],v=t4({impact:t,draggable:r,draggables:o,afterCritical:a,droppable:f||d,viewport:i}),h=Ai(v,r.client.borderBox.center);return h},IV=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=e4({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:kh});return{impact:s,didDropInsideDroppable:!0}},PV=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(SV({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=IV({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?WA(h):null,A=g?_1(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=OV({impact:h,draggable:d,dimensions:f,viewport:a.viewport,afterCritical:a.afterCritical}),E={critical:a.critical,afterCritical:a.afterCritical,result:w,impact:h},R=!Tu(a.current.client.offset,S)||Boolean(w.combine);if(!R){r(KA({completed:E}));return}var M=RV({current:a.current.client.offset,destination:S,reason:o}),D={newHomeClientOffset:S,dropDuration:M,completed:E};r(_V(D))}}}},l4=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function kV(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}function MV(e){var t=e.onWindowScroll;function r(){t(l4())}var n=Ih(r),i=kV(n),a=Cu;function o(){return a!==Cu}function u(){o()&&bt(!1),a=ji(window,[i])}function s(){o()||bt(!1),n.cancel(),a(),a=Cu}return{start:u,stop:s,isActive:o}}var DV=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},FV=function(e){var t=MV({onWindowScroll:function(n){e.dispatch(gV({newScroll:n}))}});return function(r){return function(n){!t.isActive()&&n.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&DV(n)&&t.stop(),r(n)}}},NV=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},LV=function(){var e=[],t=function(a){var o=jA(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}},BV=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.droppableId===r.droppableId&&t.index===r.index},$V=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.draggableId===r.draggableId&&t.droppableId===r.droppableId},zV=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},sp=function(t,r){r()},hm=function(t,r){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:r}},Sx=function(t,r,n,i){if(!t){n(i(r));return}var a=NV(n),o={announce:a};t(r,o),a.wasCalled()||n(i(r))},UV=function(e,t){var r=LV(),n=null,i=function(h,g){n&&bt(!1),sp("onBeforeCapture",function(){var _=e().onBeforeCapture;if(_){var A={draggableId:h,mode:g};_(A)}})},a=function(h,g){n&&bt(!1),sp("onBeforeDragStart",function(){var _=e().onBeforeDragStart;_&&_(hm(h,g))})},o=function(h,g){n&&bt(!1);var _=hm(h,g);n={mode:g,lastCritical:h,lastLocation:_.source,lastCombine:null},r.add(function(){sp("onDragStart",function(){return Sx(e().onDragStart,_,t,u0.onDragStart)})})},u=function(h,g){var _=WA(g),A=_1(g);n||bt(!1);var b=!zV(h,n.lastCritical);b&&(n.lastCritical=h);var w=!BV(n.lastLocation,_);w&&(n.lastLocation=_);var S=!$V(n.lastCombine,A);if(S&&(n.lastCombine=A),!(!b&&!w&&!S)){var E=ir({},hm(h,n.mode),{combine:A,destination:_});r.add(function(){sp("onDragUpdate",function(){return Sx(e().onDragUpdate,E,t,u0.onDragUpdate)})})}},s=function(){n||bt(!1),r.flush()},f=function(h){n||bt(!1),n=null,sp("onDragEnd",function(){return Sx(e().onDragEnd,h,t,u0.onDragEnd)})},d=function(){if(!!n){var h=ir({},hm(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}},jV=function(e,t){var r=UV(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)}}}},WV=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(KA({completed:n.completed}))}}},GV=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(o4())}};r=requestAnimationFrame(function(){r=null,t=ji(window,[o])})}}}},qV=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)}}}},HV=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()}}}}}},VV=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},YV=function(e){return function(t){return function(r){return function(n){if(VV(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())}}}},XV=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(a4({reason:n.reason})))}}}},KV=hN,QV=function(e){var t=e.dimensionMarshal,r=e.focusMarshal,n=e.styleMarshal,i=e.getResponders,a=e.announce,o=e.autoScroller;return pN(uV,KV($G(AV(n),qV(t),EV(t),PV,WV,GV,XV,YV(o),FV,HV(r),jV(i,a))))},Ex=function(){return{additions:{},removals:{},modified:{}}};function ZV(e){var t=e.registry,r=e.callbacks,n=Ex(),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(Rn)}).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=Ex(),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=Ex())};return{add:o,remove:u,stop:s}}var s4=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=Ai({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},f4=function(){var e=document.documentElement;return e||bt(!1),e},c4=function(){var e=f4(),t=s4({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},JV=function(){var e=l4(),t=c4(),r=e.y,n=e.x,i=f4(),a=i.clientWidth,o=i.clientHeight,u=n+a,s=r+o,f=da({top:r,left:n,right:u,bottom:s}),d={frame:f,scroll:{initial:e,current:e,max:t,diff:{value:Rn,displacement:Rn}}};return d},eY=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry,i=JV(),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:zN(s),droppables:$N(u)},d={dimensions:f,critical:t,viewport:i};return d};function l5(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 tY=function(e,t){var r=null,n=ZV({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"&&l5(e,_,g.value)&&n.add(g.value),g.type==="REMOVAL"&&l5(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},eY({critical:b,registry:e,scrollOptions:g.scrollOptions})},v={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:u,updateDroppableScroll:o,startPublishing:d,stopPublishing:s};return v},d4=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},rY=function(e){window.scrollBy(e.x,e.y)},nY=nn(function(e){return x1(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),iY=function(t,r){var n=qu(nY(r),function(i){return i.frame||bt(!1),KN(i.frame.pageMarginBox)(t)});return n},aY=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=iY(t,n);return a},Ru={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},oY=function(e,t){var r=e[t.size]*Ru.startFromPercentage,n=e[t.size]*Ru.maxScrollAtPercentage,i={startScrollingFrom:r,maxScrollValueAt:n};return i},p4=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},JA=1,uY=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Ru.maxPixelScroll;if(e===t.startScrollingFrom)return JA;var r=p4({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=1-r,i=Ru.maxPixelScroll*Ru.ease(n);return Math.ceil(i)},s5=Ru.durationDampening.accelerateAt,f5=Ru.durationDampening.stopDampeningAt,lY=function(e,t){var r=t,n=f5,i=Date.now(),a=i-r;if(a>=f5)return e;if(a<s5)return JA;var o=p4({startOfRange:s5,endOfRange:n,current:a}),u=e*Ru.ease(o);return Math.ceil(u)},c5=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,a=uY(t,r);return a===0?0:i?Math.max(lY(a,n),JA):a},d5=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=oY(t,i),u=r[i.end]<r[i.start];return u?c5({distanceToEdge:r[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a}):-1*c5({distanceToEdge:r[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a})},sY=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}},fY=LN(function(e){return e===0?0:e}),h4=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=d5({container:r,distanceToEdges:o,dragStartTime:t,axis:GA,shouldUseTimeDampening:a}),s=d5({container:r,distanceToEdges:o,dragStartTime:t,axis:WN,shouldUseTimeDampening:a}),f=fY({x:s,y:u});if(Tu(f,Rn))return null;var d=sY({container:r,subject:n,proposedScroll:f});return d?Tu(d,Rn)?null:d:null},cY=LN(function(e){return e===0?0:e>0?1:-1}),eC=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=Bn(r,i),o={x:e(a.x,n.x),y:e(a.y,n.y)};return Tu(o,Rn)?null:o}}(),v4=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=cY(i),u=eC({max:a,current:n,change:o});return!u||o.x!==0&&u.x===0||o.y!==0&&u.y===0},tC=function(t,r){return v4({current:t.scroll.current,max:t.scroll.max,change:r})},dY=function(t,r){if(!tC(t,r))return null;var n=t.scroll.max,i=t.scroll.current;return eC({current:i,max:n,change:r})},rC=function(t,r){var n=t.frame;return n?v4({current:n.scroll.current,max:n.scroll.max,change:r}):!1},pY=function(t,r){var n=t.frame;return!n||!rC(t,r)?null:eC({current:n.scroll.current,max:n.scroll.max,change:r})},hY=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=h4({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:a});return o&&tC(t,o)?o:null},vY=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=h4({dragStartTime:i,container:o.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:a});return u&&rC(t,u)?u:null},p5=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=hY({dragStartTime:r,viewport:f,subject:s,center:o,shouldUseTimeDampening:n});if(d){i(d);return}}var v=aY({center:o,destination:Ti(t.impact),droppables:t.dimensions.droppables});if(!!v){var h=vY({dragStartTime:r,droppable:v,subject:s,center:o,shouldUseTimeDampening:n});h&&a(v.descriptor.id,h)}},gY=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=Ih(t),i=Ih(r),a=null,o=function(d){a||bt(!1);var v=a,h=v.shouldUseTimeDampening,g=v.dragStartTime;p5({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};p5({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}},mY=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(f,d){var v=Bn(f.current.client.selection,d);t({client:v})},a=function(f,d){if(!rC(f,d))return d;var v=pY(f,d);if(!v)return r(f.descriptor.id,d),null;var h=Ai(d,v);r(f.descriptor.id,h);var g=Ai(d,h);return g},o=function(f,d,v){if(!f||!tC(d,v))return v;var h=dY(d,v);if(!h)return n(v),null;var g=Ai(v,h);n(g);var _=Ai(v,g);return _},u=function(f){var d=f.scrollJumpRequest;if(!!d){var v=Ti(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},yY=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=gY({scrollWindow:r,scrollDroppable:t}),a=mY({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},dc="data-rbd",pc=function(){var e=dc+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),xS=function(){var e=dc+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),bY=function(){var e=dc+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),h5={contextId:dc+"-scroll-container-context-id"},wY=function(t){return function(r){return"["+r+'="'+t+'"]'}},fp=function(t,r){return t.map(function(n){var i=n.styles[r];return i?n.selector+" { "+i+" }":""}).join(" ")},xY="pointer-events: none;",_Y=function(e){var t=wY(e),r=function(){var u=`
878
- cursor: -webkit-grab;
879
- cursor: grab;
880
- `;return{selector:t(pc.contextId),styles:{always:`
881
- -webkit-touch-callout: none;
882
- -webkit-tap-highlight-color: rgba(0,0,0,0);
883
- touch-action: manipulation;
884
- `,resting:u,dragging:xY,dropAnimating:u}}}(),n=function(){var u=`
885
- transition: `+nh.outOfTheWay+`;
886
- `;return{selector:t(xS.contextId),styles:{dragging:u,dropAnimating:u,userCancel:u}}}(),i={selector:t(bY.contextId),styles:{always:"overflow-anchor: none;"}},a={selector:"body",styles:{dragging:`
887
- cursor: grabbing;
888
- cursor: -webkit-grabbing;
889
- user-select: none;
890
- -webkit-user-select: none;
891
- -moz-user-select: none;
892
- -ms-user-select: none;
893
- overflow-anchor: none;
894
- `}},o=[n,r,i,a];return{always:fp(o,"always"),resting:fp(o,"resting"),dragging:fp(o,"dragging"),dropAnimating:fp(o,"dropAnimating"),userCancel:fp(o,"userCancel")}},Ri=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},v5=function(t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function SY(e,t){var r=Er(function(){return _Y(e)},[e]),n=Ut.exports.useRef(null),i=Ut.exports.useRef(null),a=Qt(nn(function(v){var h=i.current;h||bt(!1),h.textContent=v}),[]),o=Qt(function(v){var h=n.current;h||bt(!1),h.textContent=v},[]);Ri(function(){!n.current&&!i.current||bt(!1);var v=v5(t),h=v5(t);return n.current=v,i.current=h,v.setAttribute(dc+"-always",e),h.setAttribute(dc+"-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=Qt(function(){return a(r.dragging)},[a,r.dragging]),s=Qt(function(v){if(v==="DROP"){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),f=Qt(function(){!i.current||a(r.resting)},[a,r.resting]),d=Er(function(){return{dragging:u,dropping:s,resting:f}},[u,s,f]);return d}var g4=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function A1(e){return e instanceof g4(e).HTMLElement}function EY(e,t){var r="["+pc.contextId+'="'+e+'"]',n=BN(document.querySelectorAll(r));if(!n.length)return null;var i=qu(n,function(a){return a.getAttribute(pc.draggableId)===t});return!i||!A1(i)?null:i}function AY(e){var t=Ut.exports.useRef({}),r=Ut.exports.useRef(null),n=Ut.exports.useRef(null),i=Ut.exports.useRef(!1),a=Qt(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=Qt(function(h){var g=EY(e,h);g&&g!==document.activeElement&&g.focus()},[e]),u=Qt(function(h,g){r.current===h&&(r.current=g)},[]),s=Qt(function(){n.current||!i.current||(n.current=requestAnimationFrame(function(){n.current=null;var h=r.current;h&&o(h)}))},[o]),f=Qt(function(h){r.current=null;var g=document.activeElement;!g||g.getAttribute(pc.draggableId)===h&&(r.current=h)},[]);Ri(function(){return i.current=!0,function(){i.current=!1;var h=n.current;h&&cancelAnimationFrame(h)}},[]);var d=Er(function(){return{register:a,tryRecordFocus:f,tryRestoreFocusRecorded:s,tryShiftRecord:u}},[a,f,s,u]);return d}function CY(){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 K0(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 K0(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 TY(){var e=Er(CY,[]);return Ut.exports.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var nC=Cn.createContext(null),Z0=function(){var e=document.body;return e||bt(!1),e},RY={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},OY=function(t){return"rbd-announcement-"+t};function IY(e){var t=Er(function(){return OY(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,RY),Z0().appendChild(a),function(){setTimeout(function(){var s=Z0();s.contains(a)&&s.removeChild(a),a===r.current&&(r.current=null)})}},[t]);var n=Qt(function(i){var a=r.current;if(a){a.textContent=i;return}},[]);return n}var PY=0,kY={separator:"::"};function iC(e,t){return t===void 0&&(t=kY),Er(function(){return""+e+t.separator+PY++},[t.separator,e])}function MY(e){var t=e.contextId,r=e.uniqueId;return"rbd-hidden-text-"+t+"-"+r}function DY(e){var t=e.contextId,r=e.text,n=iC("hidden-text",{separator:"-"}),i=Er(function(){return MY({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",Z0().appendChild(o),function(){var s=Z0();s.contains(o)&&s.removeChild(o)}},[i,r]),i}var C1=Cn.createContext(null);function m4(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 NY=9,LY=13,aC=27,y4=32,BY=33,$Y=34,zY=35,UY=36,jY=37,WY=38,GY=39,qY=40,vm,HY=(vm={},vm[LY]=!0,vm[NY]=!0,vm),b4=function(e){HY[e.keyCode]&&e.preventDefault()},T1=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=qu(t,function(n){return"on"+n in document});return r||e}(),w4=0,g5=5;function VY(e,t){return Math.abs(t.x-e.x)>=g5||Math.abs(t.y-e.y)>=g5}var m5={type:"IDLE"};function YY(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===w4){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(!!VY(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===aC){o.preventDefault(),t();return}b4(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:T1,fn:t}]}function XY(e){var t=Ut.exports.useRef(m5),r=Ut.exports.useRef(Cu),n=Er(function(){return{eventName:"mousedown",fn:function(v){if(!v.defaultPrevented&&v.button===w4&&!(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=Er(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=Qt(function(){var v={passive:!1,capture:!0};r.current=ji(window,[i,n],v)},[i,n]),o=Qt(function(){var d=t.current;d.type!=="IDLE"&&(t.current=m5,r.current(),a())},[a]),u=Qt(function(){var d=t.current;o(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[o]),s=Qt(function(){var v={capture:!0,passive:!1},h=YY({cancel:u,completed:o,getPhase:function(){return t.current},setPhase:function(_){t.current=_}});r.current=ji(window,h,v)},[u,o]),f=Qt(function(v,h){t.current.type!=="IDLE"&&bt(!1),t.current={type:"PENDING",point:h,actions:v},s()},[s]);Ri(function(){return a(),function(){r.current()}},[a])}var hf;function KY(){}var QY=(hf={},hf[$Y]=!0,hf[BY]=!0,hf[UY]=!0,hf[zY]=!0,hf);function ZY(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:function(a){if(a.keyCode===aC){a.preventDefault(),r();return}if(a.keyCode===y4){a.preventDefault(),n();return}if(a.keyCode===qY){a.preventDefault(),e.moveDown();return}if(a.keyCode===WY){a.preventDefault(),e.moveUp();return}if(a.keyCode===GY){a.preventDefault(),e.moveRight();return}if(a.keyCode===jY){a.preventDefault(),e.moveLeft();return}if(QY[a.keyCode]){a.preventDefault();return}b4(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:T1,fn:r}]}function JY(e){var t=Ut.exports.useRef(KY),r=Er(function(){return{eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==y4)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=ji(window,ZY(f,d),{capture:!0,passive:!1})}}},[e]),n=Qt(function(){var a={passive:!1,capture:!0};t.current=ji(window,[r],a)},[r]);Ri(function(){return n(),function(){t.current()}},[n])}var Cx={type:"IDLE"},eX=120,tX=.15;function rX(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===aC&&i.preventDefault(),t()}},{eventName:T1,fn:t}]}function nX(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>=tX;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:T1,fn:t}]}function iX(e){var t=Ut.exports.useRef(Cx),r=Ut.exports.useRef(Cu),n=Qt(function(){return t.current},[]),i=Qt(function(g){t.current=g},[]),a=Er(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=Qt(function(){var g={capture:!0,passive:!1};r.current=ji(window,[a],g)},[a]),u=Qt(function(){var h=t.current;h.type!=="IDLE"&&(h.type==="PENDING"&&clearTimeout(h.longPressTimerId),i(Cx),r.current(),o())},[o,i]),s=Qt(function(){var h=t.current;u(),h.type==="DRAGGING"&&h.actions.cancel({shouldBlockNextClick:!0}),h.type==="PENDING"&&h.actions.abort()},[u]),f=Qt(function(){var g={capture:!0,passive:!1},_={cancel:s,completed:u,getPhase:n},A=ji(window,nX(_),g),b=ji(window,rX(_),g);r.current=function(){A(),b()}},[s,n,u]),d=Qt(function(){var g=n();g.type!=="PENDING"&&bt(!1);var _=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:_,hasMoved:!1})},[n,i]),v=Qt(function(g,_){n().type!=="IDLE"&&bt(!1);var A=setTimeout(d,eX);i({type:"PENDING",point:_,actions:g,longPressTimerId:A}),f()},[f,n,i,d]);Ri(function(){return o(),function(){r.current();var _=n();_.type==="PENDING"&&(clearTimeout(_.longPressTimerId),i(Cx))}},[n,o,i]),Ri(function(){var g=ji(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var aX={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function x4(e,t){if(t==null)return!1;var r=Boolean(aX[t.tagName.toLowerCase()]);if(r)return!0;var n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:x4(e,t.parentElement)}function oX(e,t){var r=t.target;return A1(r)?x4(e,r):!1}var uX=function(e){return da(e.getBoundingClientRect()).center};function lX(e){return e instanceof g4(e).Element}var sX=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=qu(t,function(n){return n in Element.prototype});return r||e}();function _4(e,t){return e==null?null:e[sX](t)?e:_4(e.parentElement,t)}function fX(e,t){return e.closest?e.closest(t):_4(e,t)}function cX(e){return"["+pc.contextId+'="'+e+'"]'}function dX(e,t){var r=t.target;if(!lX(r))return null;var n=cX(e),i=fX(r,n);return!i||!A1(i)?null:i}function pX(e,t){var r=dX(e,t);return r?r.getAttribute(pc.draggableId):null}function hX(e,t){var r="["+xS.contextId+'="'+e+'"]',n=BN(document.querySelectorAll(r)),i=qu(n,function(a){return a.getAttribute(xS.id)===t});return!i||!A1(i)?null:i}function vX(e){e.preventDefault()}function gm(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||t!==r)}function S4(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||!d4(r.getState(),i))}function gX(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,a=e.draggableId,o=e.forceSensorStop,u=e.sourceEvent,s=S4({lockAPI:t,store:n,registry:i,draggableId:a});if(!s)return null;var f=i.draggable.getById(a),d=hX(r,f.descriptor.id);if(!d||u&&!f.options.canDragInteractiveElements&&oX(d,u))return null;var v=t.claim(o||Cu),h="PRE_DRAG";function g(){return f.options.shouldRespectForcePress}function _(){return t.isActive(v)}function A(D,z){gm({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(sV(D.liftActionArgs)),h="DRAGGING";function N(L,ee){if(ee===void 0&&(ee={shouldBlockNextClick:!1}),D.cleanup(),ee.shouldBlockNextClick){var ue=ji(window,[{eventName:"click",fn:vX,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ue)}z(),n.dispatch(a4({reason:L}))}return ir({isActive:function(){return gm({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=Ih(function(L){b(function(){return i4({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(yV)},moveRight:function(){return b(wV)},moveDown:function(){return b(bV)},moveLeft:function(){return b(xV)}};return w({liftActionArgs:{id:a,clientSelection:uX(d),movementMode:"SNAP"},cleanup:Cu,actions:D})}function R(){var D=gm({expected:"PRE_DRAG",phase:h,isLockActive:_,shouldWarn:!0});D&&t.release()}var M={isActive:function(){return gm({expected:"PRE_DRAG",phase:h,isLockActive:_,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:S,snapLift:E,abort:R};return M}var mX=[XY,JY,iX];function yX(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,a=e.enableDefaultSensors,o=[].concat(a?mX:[],i||[]),u=Ut.exports.useState(function(){return FY()})[0],s=Qt(function(S,E){S.isDragging&&!E.isDragging&&u.tryAbandon()},[u]);Ri(function(){var S=r.getState(),E=r.subscribe(function(){var R=r.getState();s(S,R),S=R});return E},[u,r,s]),Ri(function(){return u.tryAbandon},[u.tryAbandon]);for(var f=Qt(function(w){return S4({lockAPI:u,registry:n,store:r,draggableId:w})},[u,n,r]),d=Qt(function(w,S,E){return gX({lockAPI:u,registry:n,contextId:t,store:r,draggableId:w,forceSensorStop:S,sourceEvent:E&&E.sourceEvent?E.sourceEvent:null})},[t,u,n,r]),v=Qt(function(w){return pX(t,w)},[t]),h=Qt(function(w){var S=n.draggable.findById(w);return S?S.options:null},[n.draggable]),g=Qt(function(){!u.isClaimed()||(u.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(XA()))},[u,r]),_=Qt(u.isClaimed,[u]),A=Er(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 bX=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function cp(e){return e.current||bt(!1),e.current}function wX(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,o=Ut.exports.useRef(null),u=m4(e),s=Qt(function(){return bX(u.current)},[u]),f=IY(t),d=DY({contextId:t,text:a}),v=SY(t,i),h=Qt(function(L){cp(o).dispatch(L)},[]),g=Er(function(){return zO({publishWhileDragging:cV,updateDroppableScroll:pV,updateDroppableIsEnabled:hV,updateDroppableIsCombineEnabled:vV,collectionStarting:dV},h)},[h]),_=TY(),A=Er(function(){return tY(_,g)},[_,g]),b=Er(function(){return yY(ir({scrollWindow:rY,scrollDroppable:A.scrollDroppable},zO({move:i4},h)))},[A.scrollDroppable,h]),w=AY(t),S=Er(function(){return QV({announce:f,autoScroller:b,dimensionMarshal:A,focusMarshal:w,getResponders:s,styleMarshal:v})},[f,b,A,w,s,v]);o.current=S;var E=Qt(function(){var L=cp(o),ee=L.getState();ee.phase!=="IDLE"&&L.dispatch(XA())},[]),R=Qt(function(){var L=cp(o).getState();return L.isDragging||L.phase==="DROP_ANIMATING"},[]),M=Er(function(){return{isDragging:R,tryAbort:E}},[R,E]);r(M);var D=Qt(function(L){return d4(cp(o).getState(),L)},[]),z=Qt(function(){return Ml(cp(o).getState())},[]),N=Er(function(){return{marshal:A,focus:w,contextId:t,canLift:D,isMovementAllowed:z,dragHandleUsageInstructionsId:d,registry:_}},[t,A,d,w,D,z,_]);return yX({contextId:t,store:S,registry:_,customSensors:n,enableDefaultSensors:e.enableDefaultSensors!==!1}),Ut.exports.useEffect(function(){return E},[E]),ri(C1.Provider,{value:N,children:ri(GG,{context:nC,store:S,children:e.children})})}var xX=0;function _X(){return Er(function(){return""+xX++},[])}function jde(e){var t=_X(),r=e.dragHandleUsageInstructions||u0.dragHandleUsageInstructions;return ri(Jq,{children:function(n){return ri(wX,{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 E4=function(t){return function(r){return t===r}},SX=E4("scroll"),EX=E4("auto"),y5=function(t,r){return r(t.overflowX)||r(t.overflowY)},AX=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return y5(n,SX)||y5(n,EX)},CX=function(){return!1},TX=function e(t){return t==null?null:t===document.body?CX()?t:null:t===document.documentElement?null:AX(t)?t:e(t.parentElement)},_S=function(e){return{x:e.scrollLeft,y:e.scrollTop}},RX=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},OX=function(e){var t=TX(e),r=RX(e);return{closestScrollable:t,isFixedOnPage:r}},IX=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=s4({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:Rn,displacement:Rn}}}}(),d=a==="vertical"?GA:WN,v=cc({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},PX=function(t,r){var n=MN(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=$A(s,n.border),d=zA({borderBox:f,margin:n.margin,border:n.border,padding:n.padding});return d},kX=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=PX(t,f),v=V0(d,i),h=function(){if(!f)return null;var _=MN(f),A={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:_,page:V0(_,i),scroll:_S(f),scrollSize:A,shouldClipSubject:s}}(),g=IX({descriptor:r,isEnabled:!o,isCombineEnabled:u,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:v,closest:h});return g},MX={passive:!1},DX={passive:!0},b5=function(e){return e.shouldPublishImmediately?MX:DX};function J0(e){var t=Ut.exports.useContext(e);return t||bt(!1),t}var mm=function(t){return t&&t.env.closestScrollable||null};function FX(e){var t=Ut.exports.useRef(null),r=J0(C1),n=iC("droppable"),i=r.registry,a=r.marshal,o=m4(e),u=Er(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=Ut.exports.useRef(u),f=Er(function(){return nn(function(R,M){t.current||bt(!1);var D={x:R,y:M};a.updateDroppableScroll(u.id,D)})},[u.id,a]),d=Qt(function(){var R=t.current;return!R||!R.env.closestScrollable?Rn:_S(R.env.closestScrollable)},[]),v=Qt(function(){var R=d();f(R.x,R.y)},[d,f]),h=Er(function(){return Ih(v)},[v]),g=Qt(function(){var R=t.current,M=mm(R);R&&M||bt(!1);var D=R.scrollOptions;if(D.shouldPublishImmediately){v();return}h()},[h,v]),_=Qt(function(R,M){t.current&&bt(!1);var D=o.current,z=D.getDroppableRef();z||bt(!1);var N=OX(z),L={ref:z,descriptor:u,env:N,scrollOptions:M};t.current=L;var ee=kX({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(h5.contextId,r.contextId),ue.addEventListener("scroll",g,b5(L.scrollOptions))),ee},[r.contextId,u,g,o]),A=Qt(function(){var R=t.current,M=mm(R);return R&&M||bt(!1),_S(M)},[]),b=Qt(function(){var R=t.current;R||bt(!1);var M=mm(R);t.current=null,M&&(h.cancel(),M.removeAttribute(h5.contextId),M.removeEventListener("scroll",g,b5(R.scrollOptions)))},[g,h]),w=Qt(function(R){var M=t.current;M||bt(!1);var D=mm(M);D||bt(!1),D.scrollTop+=R.y,D.scrollLeft+=R.x},[]),S=Er(function(){return{getDimensionAndWatchScroll:_,getScrollWhileDragging:A,dragStopped:b,scroll:w}},[b,_,A,w]),E=Er(function(){return{uniqueId:n,descriptor:u,callbacks:S}},[S,u,n]);Ri(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]),Ri(function(){!t.current||a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Ri(function(){!t.current||a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function Tx(){}var w5={width:0,height:0,margin:aH},NX=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?w5:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},LX=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=NX({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"?nh.placeholder:null}};function BX(e){var t=Ut.exports.useRef(null),r=Qt(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),Tx):t.current?Tx:(t.current=setTimeout(function(){t.current=null,f(!1)}),r):Tx},[n,s,r]);var d=Qt(function(h){h.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),v=LX({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Cn.createElement(e.placeholder.tagName,{style:v,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var $X=Cn.memo(BX),oC=Cn.createContext(null),zX=function(e){ev(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}(Cn.PureComponent),x5={dragging:5e3,dropAnimating:4500},UX=function(t,r){return r?nh.drop(r.duration):t?nh.snap:nh.fluid},jX=function(t,r){return t?r?Dh.opacity.drop:Dh.opacity.combining:null},WX=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function GX(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),u=WX(e),s=Boolean(a),f=s?bS.drop(n,o):bS.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:UX(u,a),transform:f,opacity:jX(o,s),zIndex:s?x5.dropAnimating:x5.dragging,pointerEvents:"none"};return d}function qX(e){return{transform:bS.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function HX(e){return e.type==="DRAGGING"?GX(e):qX(e)}function VX(e,t,r){r===void 0&&(r=Rn);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=kN(i,n),o=V0(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 YX(e){var t=iC("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,u=e.isEnabled,s=Er(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:u}},[a,u,o]),f=Qt(function(g){var _=i();return _||bt(!1),VX(r,_,g)},[r,i]),d=Er(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:f}},[r,f,s,t]),v=Ut.exports.useRef(d),h=Ut.exports.useRef(!0);Ri(function(){return n.draggable.register(v.current),function(){return n.draggable.unregister(v.current)}},[n.draggable]),Ri(function(){if(h.current){h.current=!1;return}var g=v.current;v.current=d,n.draggable.update(d,g)},[d,n.draggable])}function XX(e){e.preventDefault()}function KX(e){var t=Ut.exports.useRef(null),r=Qt(function(L){t.current=L},[]),n=Qt(function(){return t.current},[]),i=J0(C1),a=i.contextId,o=i.dragHandleUsageInstructionsId,u=i.registry,s=J0(oC),f=s.type,d=s.droppableId,v=Er(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=Er(function(){return{descriptor:v,registry:u,getDraggableRef:n,canDragInteractiveElements:b,shouldRespectForcePress:A,isEnabled:_}},[v,u,n,b,A,_]);YX(R)}var M=Er(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:XX}:null},[a,o,g,_]),D=Qt(function(L){S.type==="DRAGGING"&&(!S.dropping||L.propertyName==="transform"&&E())},[E,S]),z=Er(function(){var L=HX(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=Er(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 A4=function(e,t){return e===t},C4=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},QX=function(t){return t.combine?t.combine.draggableId:null},ZX=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function JX(){var e=nn(function(i,a){return{x:i,y:a}}),t=nn(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=nn(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=Ti(a.impact),d=ZX(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=C4(A),S=QX(A),E=a.dropDuration,R={duration:E,curve:QA.drop,moveTo:a.newHomeClientOffset,opacity:S?Dh.opacity.drop:null,scale:S?Dh.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 T4(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var eK={mapped:{type:"SECONDARY",offset:Rn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:T4(null)}};function tK(){var e=nn(function(o,u){return{x:o,y:u}}),t=nn(T4),r=nn(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(Rn,u,!0):null},i=function(u,s,f,d){var v=f.displaced.visible[u],h=Boolean(d.inVirtualList&&d.effected[u]),g=_1(f),_=g&&g.draggableId===u?s:null;if(!v){if(!h)return n(_);if(f.displaced.invisible[u])return null;var A=Mc(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 rK=function(){var t=JX(),r=tK(),n=function(a,o){return t(a,o)||r(a,o)||eK};return n},nK={dropAnimationFinished:o4},iK=IN(rK,nK,null,{context:nC,pure:!0,areStatePropsEqual:A4})(KX);function R4(e){var t=J0(oC),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:ri(iK,{...e})}function Wde(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return ri(R4,{...e,isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n})}function aK(e){var t=Ut.exports.useContext(C1);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=Qt(function(){return i.current},[]),E=Qt(function(ue){i.current=ue},[]);Qt(function(){return a.current},[]);var R=Qt(function(ue){a.current=ue},[]),M=Qt(function(){n()&&b({maxScroll:c4()})},[n,b]);FX({droppableId:u,type:s,mode:f,direction:d,isDropDisabled:h,isCombineEnabled:g,ignoreContainerClipping:v,getDroppableRef:S});var D=ri(zX,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder,children:function(ue){var pe=ue.onClose,we=ue.data,Ee=ue.animate;return ri($X,{placeholder:we,onClose:pe,innerRef:R,animate:Ee,contextId:r,onTransitionEnd:M})}}),z=Er(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=Er(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=ri(R4,{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 Mp.createPortal(we,w())}return hU(oC.Provider,{value:L,children:[o(z,_),ee()]})}var Rx=function(t,r){return t===r.droppable.type},_5=function(t,r){return r.draggables[t.draggable.id]},oK=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ir({},t,{shouldAnimatePlaceholder:!1}),n=nn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=nn(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(!Rx(d,g))return r;var _=_5(g,u.dimensions),A=Ti(u.impact)===f;return i(f,v,A,A,_,h)}if(u.phase==="DROP_ANIMATING"){var b=u.completed;if(!Rx(d,b.critical))return r;var w=_5(b.critical,u.dimensions);return i(f,v,C4(b.result)===f,Ti(b.impact)===f,w,h)}if(u.phase==="IDLE"&&u.completed&&!u.shouldFlush){var S=u.completed;if(!Rx(d,S.critical))return r;var E=Ti(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},uK={updateViewportMaxScroll:mV};function lK(){return document.body||bt(!1),document.body}var sK={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:lK},fK=IN(oK,uK,null,{context:nC,pure:!0,areStatePropsEqual:A4})(aK);fK.defaultProps=sK;var cK=typeof performance=="object"&&typeof performance.now=="function",S5=cK?function(){return performance.now()}:function(){return Date.now()};function E5(e){cancelAnimationFrame(e.id)}function dK(e,t){var r=S5();function n(){S5()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var vf=null;function A5(e){if(e===void 0&&(e=!1),vf===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?vf="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vf="negative":vf="positive-ascending"),document.body.removeChild(t),vf}return vf}var pK=150,hK=function(t,r){return t};function vK(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){ev(g,h);function g(A){var b;return b=h.call(this,A)||this,b._instanceProps=f(b.props,rm(rm(b))),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:rm(rm(b)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=nn(function(w,S,E,R){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:S,visibleStartIndex:E,visibleStopIndex:R})}),b._callOnScroll=void 0,b._callOnScroll=nn(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=nn(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(A5()){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&&E5(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=dK(b._resetIsScrolling,pK)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}g.getDerivedStateFromProps=function(b,w){return gK(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(A5()){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&&E5(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?hK: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 gK=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},Gde=vK({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}}),mK=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yK=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}}(),bK=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},wK=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)},C5=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},xK=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")}}(),qi=void 0;typeof window<"u"?qi=window:typeof self<"u"?qi=self:qi=global;var SS=null,ES=null,T5=20,Ox=qi.clearTimeout,R5=qi.setTimeout,Ix=qi.cancelAnimationFrame||qi.mozCancelAnimationFrame||qi.webkitCancelAnimationFrame,O5=qi.requestAnimationFrame||qi.mozRequestAnimationFrame||qi.webkitRequestAnimationFrame;Ix==null||O5==null?(SS=Ox,ES=function(t){return R5(t,T5)}):(SS=function(t){var r=xK(t,2),n=r[0],i=r[1];Ix(n),Ox(i)},ES=function(t){var r=O5(function(){Ox(n),t()}),n=R5(function(){Ix(r),t()},T5);return[r,n]});function _K(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__&&SS(this.__resizeRAF__),this.__resizeRAF__=ES(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=qi.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 SK=function(e){wK(t,e);function t(){var r,n,i,a;mK(this,t);for(var o=arguments.length,u=Array(o),s=0;s<o;s++)u[s]=arguments[s];return a=(n=(i=C5(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),C5(i,a)}return yK(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=_K(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:bK({},h,s)},!_&&i(g))}}]),t}(Ut.exports.PureComponent);SK.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var EK=9007199254740991,AK="[object Arguments]",CK="[object Function]",TK="[object GeneratorFunction]",RK=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,OK=typeof self=="object"&&self&&self.Object===Object&&self,IK=RK||OK||Function("return this")();function PK(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var uC=Object.prototype,kK=uC.hasOwnProperty,O4=uC.toString,I5=IK.Symbol,MK=uC.propertyIsEnumerable,P5=I5?I5.isConcatSpreadable:void 0;function I4(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=DK),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?I4(u,t-1,r,n,i):PK(i,u):n||(i[i.length]=u)}return i}function DK(e){return LK(e)||NK(e)||!!(P5&&e&&e[P5])}function FK(e){var t=e?e.length:0;return t?I4(e,1):[]}function NK(e){return $K(e)&&kK.call(e,"callee")&&(!MK.call(e,"callee")||O4.call(e)==AK)}var LK=Array.isArray;function BK(e){return e!=null&&UK(e.length)&&!zK(e)}function $K(e){return WK(e)&&BK(e)}function zK(e){var t=jK(e)?O4.call(e):"";return t==CK||t==TK}function UK(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=EK}function jK(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function WK(e){return!!e&&typeof e=="object"}var qde=FK,k5=0/0,GK="[object Symbol]",qK=/^\s+|\s+$/g,HK=/^[-+]0x[0-9a-f]+$/i,VK=/^0b[01]+$/i,YK=/^0o[0-7]+$/i,XK=parseInt,KK=Object.prototype,QK=KK.toString;function ZK(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function M5(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function JK(e){return!!e&&typeof e=="object"}function eQ(e){return typeof e=="symbol"||JK(e)&&QK.call(e)==GK}function Px(e){if(typeof e=="number")return e;if(eQ(e))return k5;if(M5(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=M5(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(qK,"");var r=VK.test(e);return r||YK.test(e)?XK(e.slice(2),r?2:8):HK.test(e)?k5:+e}function tQ(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Px(r),r=r===r?r:0),t!==void 0&&(t=Px(t),t=t===t?t:0),ZK(Px(e),t,r)}var Hde=tQ,D5=Object.prototype.toString,P4=function(t){var r=D5.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&D5.call(t.callee)==="[object Function]"),n},kx,F5;function rQ(){if(F5)return kx;F5=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=P4,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 kx=e,kx}var nQ=Array.prototype.slice,iQ=P4,N5=Object.keys,l0=N5?function(t){return N5(t)}:rQ(),L5=Object.keys;l0.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return iQ(n)?L5(nQ.call(n)):L5(n)})}else Object.keys=l0;return Object.keys||l0};var lC=l0,R1=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},aQ=R1,Hu=function(){return aQ()&&!!Symbol.toStringTag},B5=typeof Symbol<"u"&&Symbol,oQ=R1,sC=function(){return typeof B5!="function"||typeof Symbol!="function"||typeof B5("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:oQ()},uQ="Function.prototype.bind called on incompatible ",Mx=Array.prototype.slice,lQ=Object.prototype.toString,sQ="[object Function]",fQ=function(t){var r=this;if(typeof r!="function"||lQ.call(r)!==sQ)throw new TypeError(uQ+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},cQ=fQ,fC=Function.prototype.bind||cQ,dQ=fC,pQ=dQ.call(Function.call,Object.prototype.hasOwnProperty),xr,hc=SyntaxError,k4=Function,Xf=TypeError,Dx=function(e){try{return k4('"use strict"; return ('+e+").constructor;")()}catch{}},Yl=Object.getOwnPropertyDescriptor;if(Yl)try{Yl({},"")}catch{Yl=null}var Fx=function(){throw new Xf},hQ=Yl?function(){try{return arguments.callee,Fx}catch{try{return Yl(arguments,"callee").get}catch{return Fx}}}():Fx,gf=sC(),uu=Object.getPrototypeOf||function(e){return e.__proto__},Ef={},vQ=typeof Uint8Array>"u"?xr:uu(Uint8Array),Kf={"%AggregateError%":typeof AggregateError>"u"?xr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?xr:ArrayBuffer,"%ArrayIteratorPrototype%":gf?uu([][Symbol.iterator]()):xr,"%AsyncFromSyncIteratorPrototype%":xr,"%AsyncFunction%":Ef,"%AsyncGenerator%":Ef,"%AsyncGeneratorFunction%":Ef,"%AsyncIteratorPrototype%":Ef,"%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%":k4,"%GeneratorFunction%":Ef,"%Int8Array%":typeof Int8Array>"u"?xr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?xr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?xr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gf?uu(uu([][Symbol.iterator]())):xr,"%JSON%":typeof JSON=="object"?JSON:xr,"%Map%":typeof Map>"u"?xr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!gf?xr:uu(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"||!gf?xr:uu(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?xr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gf?uu(""[Symbol.iterator]()):xr,"%Symbol%":gf?Symbol:xr,"%SyntaxError%":hc,"%ThrowTypeError%":hQ,"%TypedArray%":vQ,"%TypeError%":Xf,"%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},gQ=function e(t){var r;if(t==="%AsyncFunction%")r=Dx("async function () {}");else if(t==="%GeneratorFunction%")r=Dx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Dx("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=uu(i.prototype))}return Kf[t]=r,r},$5={"%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"]},bv=fC,ey=pQ,mQ=bv.call(Function.call,Array.prototype.concat),yQ=bv.call(Function.apply,Array.prototype.splice),z5=bv.call(Function.call,String.prototype.replace),ty=bv.call(Function.call,String.prototype.slice),bQ=bv.call(Function.call,RegExp.prototype.exec),wQ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xQ=/\\(\\)?/g,_Q=function(t){var r=ty(t,0,1),n=ty(t,-1);if(r==="%"&&n!=="%")throw new hc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new hc("invalid intrinsic syntax, expected opening `%`");var i=[];return z5(t,wQ,function(a,o,u,s){i[i.length]=u?z5(s,xQ,"$1"):o||a}),i},SQ=function(t,r){var n=t,i;if(ey($5,n)&&(i=$5[n],n="%"+i[0]+"%"),ey(Kf,n)){var a=Kf[n];if(a===Ef&&(a=gQ(n)),typeof a>"u"&&!r)throw new Xf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new hc("intrinsic "+t+" does not exist!")},Vu=function(t,r){if(typeof t!="string"||t.length===0)throw new Xf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Xf('"allowMissing" argument must be a boolean');if(bQ(/^%?[^%]*%?$/,t)===null)throw new hc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=_Q(t),i=n.length>0?n[0]:"",a=SQ("%"+i+"%",r),o=a.name,u=a.value,s=!1,f=a.alias;f&&(i=f[0],yQ(n,mQ([0,1],f)));for(var d=1,v=!0;d<n.length;d+=1){var h=n[d],g=ty(h,0,1),_=ty(h,-1);if((g==='"'||g==="'"||g==="`"||_==='"'||_==="'"||_==="`")&&g!==_)throw new hc("property names with quotes must have matching quotes");if((h==="constructor"||!v)&&(s=!0),i+="."+h,o="%"+i+"%",ey(Kf,o))u=Kf[o];else if(u!=null){if(!(h in u)){if(!r)throw new Xf("base intrinsic for "+t+" exists, but the property is not available.");return}if(Yl&&d+1>=n.length){var A=Yl(u,h);v=!!A,v&&"get"in A&&!("originalValue"in A.get)?u=A.get:u=u[h]}else v=ey(u,h),u=u[h];v&&!s&&(Kf[o]=u)}}return u},wv={exports:{}};(function(e){var t=fC,r=Vu,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})(wv);var M4=Vu,D4=wv.exports,EQ=D4(M4("String.prototype.indexOf")),Ha=function(t,r){var n=M4(t,!!r);return typeof n=="function"&&EQ(t,".prototype.")>-1?D4(n):n},AQ=Hu(),CQ=Ha,AS=CQ("Object.prototype.toString"),O1=function(t){return AQ&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:AS(t)==="[object Arguments]"},F4=function(t){return O1(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&AS(t)!=="[object Array]"&&AS(t.callee)==="[object Function]"},TQ=function(){return O1(arguments)}();O1.isLegacyArguments=F4;var N4=TQ?O1:F4,RQ=Vu,CS=RQ("%Object.defineProperty%",!0),TS=function(){if(CS)try{return CS({},"a",{value:1}),!0}catch{return!1}return!1};TS.hasArrayLengthDefineBug=function(){if(!TS())return null;try{return CS([],"length",{value:1}).length!==1}catch{return!0}};var OQ=TS,IQ=lC,PQ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",kQ=Object.prototype.toString,MQ=Array.prototype.concat,L4=Object.defineProperty,DQ=function(e){return typeof e=="function"&&kQ.call(e)==="[object Function]"},FQ=OQ(),B4=L4&&FQ,NQ=function(e,t,r,n){t in e&&(!DQ(n)||!n())||(B4?L4(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},$4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=IQ(t);PQ&&(n=MQ.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)NQ(e,n[i],t[n[i]],r[n[i]])};$4.supportsDescriptors=!!B4;var ws=$4,U5=function(e){return e!==e},z4=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||U5(t)&&U5(r))},LQ=z4,U4=function(){return typeof Object.is=="function"?Object.is:LQ},BQ=U4,$Q=ws,zQ=function(){var t=BQ();return $Q(Object,{is:t},{is:function(){return Object.is!==t}}),t},UQ=ws,jQ=wv.exports,WQ=z4,j4=U4,GQ=zQ,W4=jQ(j4(),Object);UQ(W4,{getPolyfill:j4,implementation:WQ,shim:GQ});var qQ=W4,RS=Ha,G4=Hu(),q4,H4,OS,IS;if(G4){q4=RS("Object.prototype.hasOwnProperty"),H4=RS("RegExp.prototype.exec"),OS={};var Nx=function(){throw OS};IS={toString:Nx,valueOf:Nx},typeof Symbol.toPrimitive=="symbol"&&(IS[Symbol.toPrimitive]=Nx)}var HQ=RS("Object.prototype.toString"),VQ=Object.getOwnPropertyDescriptor,YQ="[object RegExp]",XQ=G4?function(t){if(!t||typeof t!="object")return!1;var r=VQ(t,"lastIndex"),n=r&&q4(r,"value");if(!n)return!1;try{H4(t,IS)}catch(i){return i===OS}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:HQ(t)===YQ},cC={exports:{}},Fh=function(){return typeof function(){}.name=="string"},ih=Object.getOwnPropertyDescriptor;if(ih)try{ih([],"length")}catch{ih=null}Fh.functionsHaveConfigurableNames=function(){if(!Fh()||!ih)return!1;var t=ih(function(){},"name");return!!t&&!!t.configurable};var KQ=Function.prototype.bind;Fh.boundFunctionsHaveNames=function(){return Fh()&&typeof KQ=="function"&&function(){}.bind().name!==""};var QQ=Fh;(function(e){var t=QQ.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(cC);var ZQ=cC.exports,JQ=ws.supportsDescriptors,eZ=Object.getOwnPropertyDescriptor,V4=function(){if(JQ&&/a/mig.flags==="gim"){var t=eZ(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return ZQ},tZ=ws.supportsDescriptors,rZ=V4,nZ=Object.getOwnPropertyDescriptor,iZ=Object.defineProperty,aZ=TypeError,j5=Object.getPrototypeOf,oZ=/a/,uZ=function(){if(!tZ||!j5)throw new aZ("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=rZ(),r=j5(oZ),n=nZ(r,"flags");return(!n||n.get!==t)&&iZ(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},lZ=ws,sZ=wv.exports,fZ=cC.exports,Y4=V4,cZ=uZ,X4=sZ(Y4());lZ(X4,{getPolyfill:Y4,implementation:fZ,shim:cZ});var dZ=X4,pZ={}.toString,K4=Array.isArray||function(e){return pZ.call(e)=="[object Array]"},hZ=Date.prototype.getDay,vZ=function(t){try{return hZ.call(t),!0}catch{return!1}},gZ=Object.prototype.toString,mZ="[object Date]",yZ=Hu(),bZ=function(t){return typeof t!="object"||t===null?!1:yZ?vZ(t):gZ.call(t)===mZ},wZ=String.prototype.valueOf,xZ=function(t){try{return wZ.call(t),!0}catch{return!1}},_Z=Object.prototype.toString,SZ="[object String]",EZ=Hu(),Q4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:EZ?xZ(t):_Z.call(t)===SZ},AZ=Number.prototype.toString,CZ=function(t){try{return AZ.call(t),!0}catch{return!1}},TZ=Object.prototype.toString,RZ="[object Number]",OZ=Hu(),IZ=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:OZ?CZ(t):TZ.call(t)===RZ},Z4=Ha,PZ=Z4("Boolean.prototype.toString"),kZ=Z4("Object.prototype.toString"),MZ=function(t){try{return PZ(t),!0}catch{return!1}},DZ="[object Boolean]",FZ=Hu(),NZ=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:FZ&&Symbol.toStringTag in t?MZ(t):kZ(t)===DZ},PS={exports:{}},LZ=Object.prototype.toString,BZ=sC();if(BZ){var $Z=Symbol.prototype.toString,zZ=/^Symbol\(.*\)$/,UZ=function(t){return typeof t.valueOf()!="symbol"?!1:zZ.test($Z.call(t))};PS.exports=function(t){if(typeof t=="symbol")return!0;if(LZ.call(t)!=="[object Symbol]")return!1;try{return UZ(t)}catch{return!1}}}else PS.exports=function(t){return!1};var kS={exports:{}},W5=typeof BigInt<"u"&&BigInt,jZ=function(){return typeof W5=="function"&&typeof BigInt=="function"&&typeof W5(42)=="bigint"&&typeof BigInt(42)=="bigint"},WZ=jZ();if(WZ){var GZ=BigInt.prototype.valueOf,qZ=function(t){try{return GZ.call(t),!0}catch{}return!1};kS.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:qZ(t)}}else kS.exports=function(t){return!1};var HZ=Q4,VZ=IZ,YZ=NZ,XZ=PS.exports,KZ=kS.exports,QZ=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(HZ(t))return"String";if(VZ(t))return"Number";if(YZ(t))return"Boolean";if(XZ(t))return"Symbol";if(KZ(t))return"BigInt"},dC=typeof Map=="function"&&Map.prototype?Map:null,ZZ=typeof Set=="function"&&Set.prototype?Set:null,ry;dC||(ry=function(t){return!1});var J4=dC?Map.prototype.has:null,G5=ZZ?Set.prototype.has:null;!ry&&!J4&&(ry=function(t){return!1});var eL=ry||function(t){if(!t||typeof t!="object")return!1;try{if(J4.call(t),G5)try{G5.call(t)}catch{return!0}return t instanceof dC}catch{}return!1},JZ=typeof Map=="function"&&Map.prototype?Map:null,pC=typeof Set=="function"&&Set.prototype?Set:null,ny;pC||(ny=function(t){return!1});var q5=JZ?Map.prototype.has:null,tL=pC?Set.prototype.has:null;!ny&&!tL&&(ny=function(t){return!1});var rL=ny||function(t){if(!t||typeof t!="object")return!1;try{if(tL.call(t),q5)try{q5.call(t)}catch{return!0}return t instanceof pC}catch{}return!1},iy=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,H5=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,ay;iy||(ay=function(t){return!1});var MS=iy?iy.prototype.has:null,Lx=H5?H5.prototype.has:null;!ay&&!MS&&(ay=function(t){return!1});var eJ=ay||function(t){if(!t||typeof t!="object")return!1;try{if(MS.call(t,MS),Lx)try{Lx.call(t,Lx)}catch{return!0}return t instanceof iy}catch{}return!1},DS={exports:{}},tJ=Vu,nL=Ha,rJ=tJ("%WeakSet%",!0),Bx=nL("WeakSet.prototype.has",!0);if(Bx){var $x=nL("WeakMap.prototype.has",!0);DS.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Bx(t,Bx),$x)try{$x(t,$x)}catch{return!0}return t instanceof rJ}catch{}return!1}}else DS.exports=function(t){return!1};var nJ=eL,iJ=rL,aJ=eJ,oJ=DS.exports,uJ=function(t){if(t&&typeof t=="object"){if(nJ(t))return"Map";if(iJ(t))return"Set";if(aJ(t))return"WeakMap";if(oJ(t))return"WeakSet"}return!1},s0={exports:{}},V5=N4;if(sC()||R1()){var zx=Symbol.iterator;s0.exports=function(t){if(t!=null&&typeof t[zx]<"u")return t[zx]();if(V5(t))return Array.prototype[zx].call(t)}}else{var lJ=K4,sJ=Q4,Y5=Vu,fJ=Y5("%Map%",!0),cJ=Y5("%Set%",!0),la=Ha,X5=la("Array.prototype.push"),K5=la("String.prototype.charCodeAt"),dJ=la("String.prototype.slice"),pJ=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=K5(t,r);if(i<55296||i>56319)return r+1;var a=K5(t,r+1);return a<56320||a>57343?r+1:r+2},Ux=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}}}},Q5=function(t,r){if(lJ(t)||V5(t))return Ux(t);if(sJ(t)){var n=0;return{next:function(){var a=pJ(t,n),o=dJ(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(!fJ&&!cJ)s0.exports=function(t){if(t!=null)return Q5(t,!0)};else{var hJ=eL,vJ=rL,Z5=la("Map.prototype.forEach",!0),J5=la("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var eI=la("Map.prototype.iterator",!0),tI=la("Set.prototype.iterator",!0),rI=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 nI=la("Map.prototype.@@iterator",!0)||la("Map.prototype._es6-shim iterator_",!0),iI=la("Set.prototype.@@iterator",!0)||la("Set.prototype._es6-shim iterator_",!0),gJ=function(t){if(hJ(t)){if(eI)return rI(eI(t));if(nI)return nI(t);if(Z5){var r=[];return Z5(t,function(i,a){X5(r,[a,i])}),Ux(r)}}if(vJ(t)){if(tI)return rI(tI(t));if(iI)return iI(t);if(J5){var n=[];return J5(t,function(i){X5(n,i)}),Ux(n)}}};s0.exports=function(t){return gJ(t)||Q5(t)}}}const mJ={},yJ=Object.freeze(Object.defineProperty({__proto__:null,default:mJ},Symbol.toStringTag,{value:"Module"})),bJ=fs(yJ);var hC=typeof Map=="function"&&Map.prototype,jx=Object.getOwnPropertyDescriptor&&hC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,oy=hC&&jx&&typeof jx.get=="function"?jx.get:null,wJ=hC&&Map.prototype.forEach,vC=typeof Set=="function"&&Set.prototype,Wx=Object.getOwnPropertyDescriptor&&vC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,uy=vC&&Wx&&typeof Wx.get=="function"?Wx.get:null,xJ=vC&&Set.prototype.forEach,_J=typeof WeakMap=="function"&&WeakMap.prototype,ah=_J?WeakMap.prototype.has:null,SJ=typeof WeakSet=="function"&&WeakSet.prototype,oh=SJ?WeakSet.prototype.has:null,EJ=typeof WeakRef=="function"&&WeakRef.prototype,aI=EJ?WeakRef.prototype.deref:null,AJ=Boolean.prototype.valueOf,CJ=Object.prototype.toString,TJ=Function.prototype.toString,RJ=String.prototype.match,gC=String.prototype.slice,gu=String.prototype.replace,OJ=String.prototype.toUpperCase,oI=String.prototype.toLowerCase,iL=RegExp.prototype.test,uI=Array.prototype.concat,Ia=Array.prototype.join,IJ=Array.prototype.slice,lI=Math.floor,FS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Gx=Object.getOwnPropertySymbols,NS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,vc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Yn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===vc?"object":"symbol")?Symbol.toStringTag:null,aL=Object.prototype.propertyIsEnumerable,sI=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function fI(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||iL.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-lI(-e):lI(e);if(n!==e){var i=String(n),a=gC.call(t,i.length+1);return gu.call(i,r,"$&_")+"."+gu.call(gu.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gu.call(t,r,"$&_")}var LS=bJ,cI=LS.custom,dI=uL(cI)?cI:null,PJ=function e(t,r,n,i){var a=r||{};if(lu(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lu(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=lu(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(lu(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(lu(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 sL(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return u?fI(t,s):s}if(typeof t=="bigint"){var f=String(t)+"n";return u?fI(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 BS(t)?"[Array]":"[Object]";var v=XJ(a,n);if(typeof i>"u")i=[];else if(lL(i,t)>=0)return"[Circular]";function h(we,Ee,Je){if(Ee&&(i=IJ.call(i),i.push(Ee)),Je){var je={depth:a.depth};return lu(a,"quoteStyle")&&(je.quoteStyle=a.quoteStyle),e(we,je,n+1,i)}return e(we,a,n+1,i)}if(typeof t=="function"&&!pI(t)){var g=zJ(t),_=ym(t,h);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(_.length>0?" { "+Ia.call(_,", ")+" }":"")}if(uL(t)){var A=vc?gu.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):NS.call(t);return typeof t=="object"&&!vc?dp(A):A}if(HJ(t)){for(var b="<"+oI.call(String(t.nodeName)),w=t.attributes||[],S=0;S<w.length;S++)b+=" "+w[S].name+"="+oL(kJ(w[S].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+oI.call(String(t.nodeName))+">",b}if(BS(t)){if(t.length===0)return"[]";var E=ym(t,h);return v&&!YJ(E)?"["+$S(E,v)+"]":"[ "+Ia.call(E,", ")+" ]"}if(DJ(t)){var R=ym(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!aL.call(t,"cause")?"{ ["+String(t)+"] "+Ia.call(uI.call("[cause]: "+h(t.cause),R),", ")+" }":R.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ia.call(R,", ")+" }"}if(typeof t=="object"&&o){if(dI&&typeof t[dI]=="function"&&LS)return LS(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(UJ(t)){var M=[];return wJ.call(t,function(we,Ee){M.push(h(Ee,t,!0)+" => "+h(we,t))}),hI("Map",oy.call(t),M,v)}if(GJ(t)){var D=[];return xJ.call(t,function(we){D.push(h(we,t))}),hI("Set",uy.call(t),D,v)}if(jJ(t))return qx("WeakMap");if(qJ(t))return qx("WeakSet");if(WJ(t))return qx("WeakRef");if(NJ(t))return dp(h(Number(t)));if(BJ(t))return dp(h(FS.call(t)));if(LJ(t))return dp(AJ.call(t));if(FJ(t))return dp(h(String(t)));if(!MJ(t)&&!pI(t)){var z=ym(t,h),N=sI?sI(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",ee=!N&&Yn&&Object(t)===t&&Yn in t?gC.call(Yu(t),8,-1):L?"Object":"",ue=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",pe=ue+(ee||L?"["+Ia.call(uI.call([],ee||[],L||[]),": ")+"] ":"");return z.length===0?pe+"{}":v?pe+"{"+$S(z,v)+"}":pe+"{ "+Ia.call(z,", ")+" }"}return String(t)};function oL(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function kJ(e){return gu.call(String(e),/"/g,"&quot;")}function BS(e){return Yu(e)==="[object Array]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function MJ(e){return Yu(e)==="[object Date]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function pI(e){return Yu(e)==="[object RegExp]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function DJ(e){return Yu(e)==="[object Error]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function FJ(e){return Yu(e)==="[object String]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function NJ(e){return Yu(e)==="[object Number]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function LJ(e){return Yu(e)==="[object Boolean]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function uL(e){if(vc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!NS)return!1;try{return NS.call(e),!0}catch{}return!1}function BJ(e){if(!e||typeof e!="object"||!FS)return!1;try{return FS.call(e),!0}catch{}return!1}var $J=Object.prototype.hasOwnProperty||function(e){return e in this};function lu(e,t){return $J.call(e,t)}function Yu(e){return CJ.call(e)}function zJ(e){if(e.name)return e.name;var t=RJ.call(TJ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function lL(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 UJ(e){if(!oy||!e||typeof e!="object")return!1;try{oy.call(e);try{uy.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function jJ(e){if(!ah||!e||typeof e!="object")return!1;try{ah.call(e,ah);try{oh.call(e,oh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function WJ(e){if(!aI||!e||typeof e!="object")return!1;try{return aI.call(e),!0}catch{}return!1}function GJ(e){if(!uy||!e||typeof e!="object")return!1;try{uy.call(e);try{oy.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function qJ(e){if(!oh||!e||typeof e!="object")return!1;try{oh.call(e,oh);try{ah.call(e,ah)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function HJ(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function sL(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return sL(gC.call(e,0,t.maxStringLength),t)+n}var i=gu.call(gu.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,VJ);return oL(i,"single",t)}function VJ(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":"")+OJ.call(t.toString(16))}function dp(e){return"Object("+e+")"}function qx(e){return e+" { ? }"}function hI(e,t,r,n){var i=n?$S(r,n):Ia.call(r,", ");return e+" ("+t+") {"+i+"}"}function YJ(e){for(var t=0;t<e.length;t++)if(lL(e[t],`
895
- `)>=0)return!1;return!0}function XJ(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ia.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ia.call(Array(t+1),r)}}function $S(e,t){if(e.length===0)return"";var r=`
896
- `+t.prev+t.base;return r+Ia.call(e,","+r)+`
897
- `+t.prev}function ym(e,t){var r=BS(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=lu(e,i)?t(e[i],e):""}var a=typeof Gx=="function"?Gx(e):[],o;if(vc){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)!lu(e,s)||r&&String(Number(s))===s&&s<e.length||vc&&o["$"+s]instanceof Symbol||(iL.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e)));if(typeof Gx=="function")for(var f=0;f<a.length;f++)aL.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}var mC=Vu,Nc=Ha,KJ=PJ,QJ=mC("%TypeError%"),bm=mC("%WeakMap%",!0),wm=mC("%Map%",!0),ZJ=Nc("WeakMap.prototype.get",!0),JJ=Nc("WeakMap.prototype.set",!0),eee=Nc("WeakMap.prototype.has",!0),tee=Nc("Map.prototype.get",!0),ree=Nc("Map.prototype.set",!0),nee=Nc("Map.prototype.has",!0),yC=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},iee=function(e,t){var r=yC(e,t);return r&&r.value},aee=function(e,t,r){var n=yC(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},oee=function(e,t){return!!yC(e,t)},uee=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new QJ("Side channel does not contain "+KJ(a))},get:function(a){if(bm&&a&&(typeof a=="object"||typeof a=="function")){if(t)return ZJ(t,a)}else if(wm){if(r)return tee(r,a)}else if(n)return iee(n,a)},has:function(a){if(bm&&a&&(typeof a=="object"||typeof a=="function")){if(t)return eee(t,a)}else if(wm){if(r)return nee(r,a)}else if(n)return oee(n,a);return!1},set:function(a,o){bm&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new bm),JJ(t,a,o)):wm?(r||(r=new wm),ree(r,a,o)):(n||(n={key:{},next:null}),aee(n,a,o))}};return i},lee=Object.prototype.hasOwnProperty,see=Object.prototype.toString,fL=function(t,r,n){if(see.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)lee.call(t,o)&&r.call(n,t[o],o,t)},Hx=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],fee=typeof globalThis>"u"?Ar:globalThis,cL=function(){for(var t=[],r=0;r<Hx.length;r++)typeof fee[Hx[r]]=="function"&&(t[t.length]=Hx[r]);return t},Vx={exports:{}},Yx,vI;function cee(){if(vI)return Yx;vI=1;var e=Vu,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return Yx=t,Yx}var gI;function dL(){return gI||(gI=1,function(e){e.exports=cee()}(Vx)),Vx.exports}var Xx,mI;function dee(){if(mI)return Xx;mI=1;var e=fL,t=cL,r=Ha,n=r("Object.prototype.toString"),i=Hu(),a=typeof globalThis>"u"?Ar: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=dL(),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 Xx=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},Xx}var pL=fL,pee=cL,hL=Ha,hee=hL("Object.prototype.toString"),vL=Hu(),yI=typeof globalThis>"u"?Ar:globalThis,vee=pee(),gee=hL("String.prototype.slice"),gL={},Kx=dL(),Qx=Object.getPrototypeOf;vL&&Kx&&Qx&&pL(vee,function(e){if(typeof yI[e]=="function"){var t=new yI[e];if(Symbol.toStringTag in t){var r=Qx(t),n=Kx(r,Symbol.toStringTag);if(!n){var i=Qx(r);n=Kx(i,Symbol.toStringTag)}gL[e]=n.get}}});var mee=function(t){var r=!1;return pL(gL,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},yee=dee(),bee=function(t){return yee(t)?!vL||!(Symbol.toStringTag in t)?gee(hee(t),8,-1):mee(t):!1},wee=lC,mL=R1(),yL=Ha,bI=Object,xee=yL("Array.prototype.push"),wI=yL("Object.prototype.propertyIsEnumerable"),_ee=mL?Object.getOwnPropertySymbols:null,bL=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=bI(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=bI(arguments[i]),o=wee(a),u=mL&&(Object.getOwnPropertySymbols||_ee);if(u)for(var s=u(a),f=0;f<s.length;++f){var d=s[f];wI(a,d)&&xee(o,d)}for(var v=0;v<o.length;++v){var h=o[v];if(wI(a,h)){var g=a[h];n[h]=g}}}return n},Zx=bL,See=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},Eee=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},wL=function(){return!Object.assign||See()||Eee()?Zx:Object.assign},Aee=ws,Cee=wL,Tee=function(){var t=Cee();return Aee(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},Ree=ws,Oee=wv.exports,Iee=bL,xL=wL,Pee=Tee,kee=Oee.apply(xL()),_L=function(t,r){return kee(Object,arguments)};Ree(_L,{getPolyfill:xL,implementation:Iee,shim:Pee});var Mee=_L,xI=lC,_I=N4,SI=qQ,EI=XQ,AI=dZ,CI=K4,TI=bZ,RI=QZ,Dee=Vu,Mo=Ha,OI=uJ,gc=s0.exports,Fee=uee,II=bee,SL=Mee,PI=Mo("Date.prototype.getTime"),Jx=Object.getPrototypeOf,kI=Mo("Object.prototype.toString"),ly=Dee("%Set%",!0),zS=Mo("Map.prototype.has",!0),sy=Mo("Map.prototype.get",!0),MI=Mo("Map.prototype.size",!0),fy=Mo("Set.prototype.add",!0),EL=Mo("Set.prototype.delete",!0),cy=Mo("Set.prototype.has",!0),f0=Mo("Set.prototype.size",!0);function DI(e,t,r,n){for(var i=gc(e),a;(a=i.next())&&!a.done;)if(Co(t,a.value,r,n))return EL(e,a.value),!0;return!1}function AL(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 Nee(e,t,r,n,i,a){var o=AL(r);if(o!=null)return o;var u=sy(t,o),s=SL({},i,{strict:!1});return typeof u>"u"&&!zS(t,o)||!Co(n,u,s,a)?!1:!zS(e,o)&&Co(n,u,s,a)}function Lee(e,t,r){var n=AL(r);return n!=null?n:cy(t,n)&&!cy(e,n)}function FI(e,t,r,n,i,a){for(var o=gc(e),u,s;(u=o.next())&&!u.done;)if(s=u.value,Co(r,s,i,a)&&Co(n,sy(t,s),i,a))return EL(e,s),!0;return!1}function Co(e,t,r,n){var i=r||{};if(i.strict?SI(e,t):e===t)return!0;var a=RI(e),o=RI(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?SI(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),zee(e,t,i,n)}function NI(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 Bee(e,t,r,n){if(f0(e)!==f0(t))return!1;for(var i=gc(e),a=gc(t),o,u,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new ly),fy(s,o.value);else if(!cy(t,o.value)){if(r.strict||!Lee(e,t,o.value))return!1;s||(s=new ly),fy(s,o.value)}if(s){for(;(u=a.next())&&!u.done;)if(u.value&&typeof u.value=="object"){if(!DI(s,u.value,r.strict,n))return!1}else if(!r.strict&&!cy(e,u.value)&&!DI(s,u.value,r.strict,n))return!1;return f0(s)===0}return!0}function $ee(e,t,r,n){if(MI(e)!==MI(t))return!1;for(var i=gc(e),a=gc(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 ly),fy(s,f);else if(v=sy(t,f),typeof v>"u"&&!zS(t,f)||!Co(d,v,r,n)){if(r.strict||!Nee(e,t,f,d,r,n))return!1;s||(s=new ly),fy(s,f)}if(s){for(;(u=a.next())&&!u.done;)if(f=u.value[0],v=u.value[1],f&&typeof f=="object"){if(!FI(s,e,f,v,r,n))return!1}else if(!r.strict&&(!e.has(f)||!Co(sy(e,f),v,r,n))&&!FI(s,e,f,v,SL({},r,{strict:!1}),n))return!1;return f0(s)===0}return!0}function zee(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||kI(e)!==kI(t)||_I(e)!==_I(t))return!1;var o=CI(e),u=CI(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=EI(e),v=EI(t);if(d!==v||(d||v)&&(e.source!==t.source||AI(e)!==AI(t)))return!1;var h=TI(e),g=TI(t);if(h!==g||(h||g)&&PI(e)!==PI(t)||r.strict&&Jx&&Jx(e)!==Jx(t)||II(e)!==II(t))return!1;var _=NI(e),A=NI(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=xI(e),w=xI(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],!Co(e[a],t[a],r,n))return!1;var S=OI(e),E=OI(t);return S!==E?!1:S==="Set"||E==="Set"?Bee(e,t,r,n):S==="Map"?$ee(e,t,r,n):!0}var Vde=function(t,r,n){return Co(t,r,n,Fee())},Uee={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 Nh=Uee,CL={};for(const e of Object.keys(Nh))CL[Nh[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 TL=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 jee(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=CL[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(Nh)){const a=Nh[i],o=jee(e,a);o<r&&(r=o,n=i)}return n};Ht.keyword.rgb=function(e){return Nh[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 dy=TL;function Wee(){const e={},t=Object.keys(dy);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Gee(e){const t=Wee(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(dy[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 qee(e,t){return function(r){return t(e(r))}}function Hee(e,t){const r=[t[e].parent,e];let n=dy[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=qee(dy[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Vee=function(e){const t=Gee(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]=Hee(o,t))}return r};const US=TL,Yee=Vee,Af={},Xee=Object.keys(US);function Kee(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 Qee(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}Xee.forEach(e=>{Af[e]={},Object.defineProperty(Af[e],"channels",{value:US[e].channels}),Object.defineProperty(Af[e],"labels",{value:US[e].labels});const t=Yee(e);Object.keys(t).forEach(n=>{const i=t[n];Af[e][n]=Qee(i),Af[e][n].raw=Kee(i)})});var Yde=Af,RL="Expected a function",LI=0/0,Zee="[object Symbol]",Jee=/^\s+|\s+$/g,ete=/^[-+]0x[0-9a-f]+$/i,tte=/^0b[01]+$/i,rte=/^0o[0-7]+$/i,nte=parseInt,ite=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,ate=typeof self=="object"&&self&&self.Object===Object&&self,ote=ite||ate||Function("return this")(),ute=Object.prototype,lte=ute.toString,ste=Math.max,fte=Math.min,e_=function(){return ote.Date.now()};function cte(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(RL);t=BI(t)||0,py(r)&&(d=!!r.leading,v="maxWait"in r,a=v?ste(BI(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?fte(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=e_();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(e_())}function M(){var D=e_(),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 dte(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(RL);return py(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),cte(e,t,{leading:n,maxWait:t,trailing:i})}function py(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function pte(e){return!!e&&typeof e=="object"}function hte(e){return typeof e=="symbol"||pte(e)&&lte.call(e)==Zee}function BI(e){if(typeof e=="number")return e;if(hte(e))return LI;if(py(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=py(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Jee,"");var r=tte.test(e);return r||rte.test(e)?nte(e.slice(2),r?2:8):ete.test(e)?LI:+e}var Xde=dte,xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(e){return"Symbol("+e+")"};function bC(){}var OL=Number.isNaN||function(e){return e!==e},IL=bC;function ma(e){return typeof e=="object"&&e!==null||typeof e=="function"}function jS(e){return e.slice()}function vte(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function PL(e){return!(gte(e)===!1||e===1/0)}function gte(e){return!(typeof e!="number"||OL(e)||e<0)}function kL(e,t,r){if(typeof e!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function Xl(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 $I(i,e,n)};case 1:return function(a){var o=[a].concat(n);return $I(i,e,o)}}}return function(){return sn(void 0)}}function wC(e,t,r){var n=e[t];if(n!==void 0)return kL(n,e,r)}function $I(e,t,r){try{return sn(kL(e,t,r))}catch(n){return rr(n)}}function hy(e){return!1}function vy(e){if(e=Number(e),OL(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function ML(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 xC=Promise,mte=Promise.prototype.then,yte=Promise.resolve.bind(xC),bte=Promise.reject.bind(xC);function Yi(e){return new xC(e)}function sn(e){return yte(e)}function rr(e){return bte(e)}function go(e,t,r){return mte.call(e,t,r)}function ya(e,t,r){go(go(e,t,r),void 0,IL)}function t_(e,t){ya(e,t)}function DL(e,t){ya(e,void 0,t)}function gy(e,t,r){return go(e,t,r)}function Lc(e){go(e,void 0,IL)}var zI=16384,Wa=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===zI-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===zI&&(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 ha(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 FL(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,t._state==="readable"?SC(e):t._state==="closed"?wte(e):NL(e,t._storedError)}function _C(e,t){var r=e._ownerReadableStream;return Kl(r,t)}function Qf(e){e._ownerReadableStream._state==="readable"?EC(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):xte(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 mc(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function SC(e){e._closedPromise=Yi(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function NL(e,t){SC(e),EC(e,t)}function wte(e){SC(e),LL(e)}function EC(e,t){Lc(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function xte(e,t){NL(e,t)}function LL(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var AC=xo("[[CancelSteps]]"),CC=xo("[[PullSteps]]");function I1(e,t){t===void 0&&(t=!1);var r=new _te(e);return r._forAuthorCode=t,r}function BL(e){var t=Yi(function(r,n){var i={_resolve:r,_reject:n};e._reader._readRequests.push(i)});return t}function TC(e,t,r){var n=e._reader,i=n._readRequests.shift();i._resolve(ha(t,r,n._forAuthorCode))}function P1(e){return e._reader._readRequests.length}function $L(e){var t=e._reader;return!(t===void 0||!Gl(t))}var _te=function(){function e(t){if(Oa(t)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(mu(t)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");FL(this,t),this._readRequests=new Wa}return Object.defineProperty(e.prototype,"closed",{get:function(){return Gl(this)?this._closedPromise:rr(xm("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Gl(this)?this._ownerReadableStream===void 0?rr(mc("cancel")):_C(this,t):rr(xm("cancel"))},e.prototype.read=function(){return Gl(this)?this._ownerReadableStream===void 0?rr(mc("read from")):k1(this):rr(xm("read"))},e.prototype.releaseLock=function(){if(!Gl(this))throw xm("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");Qf(this)}},e}();function Gl(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function k1(e){var t=e._ownerReadableStream;return t._disturbed=!0,t._state==="closed"?sn(ha(void 0,!0,e._forAuthorCode)):t._state==="errored"?rr(t._storedError):t._readableStreamController[CC]()}function xm(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}var r_,my;typeof xo.asyncIterator=="symbol"&&(my=(r_={},r_[xo.asyncIterator]=function(){return this},r_),Object.defineProperty(my,xo.asyncIterator,{enumerable:!1}));var M1={next:function(){if(UI(this)===!1)return rr(jI("next"));var e=this._asyncIteratorReader;return e._ownerReadableStream===void 0?rr(mc("iterate")):gy(k1(e),function(t){var r=t.done;r&&Qf(e);var n=t.value;return ha(n,r,!0)})},return:function(e){if(UI(this)===!1)return rr(jI("next"));var t=this._asyncIteratorReader;if(t._ownerReadableStream===void 0)return rr(mc("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=_C(t,e);return Qf(t),gy(r,function(){return ha(e,!0,!0)})}return Qf(t),sn(ha(e,!0,!0))}};my!==void 0&&Object.setPrototypeOf(M1,my);Object.defineProperty(M1,"next",{enumerable:!1});Object.defineProperty(M1,"return",{enumerable:!1});function Ste(e,t){t===void 0&&(t=!1);var r=I1(e),n=Object.create(M1);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function UI(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader"))}function jI(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function RC(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function OC(e,t,r){if(r=Number(r),!PL(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 Ete(e){var t=e._queue.peek();return t.value}function Xu(e){e._queue=new Wa,e._queueTotalSize=0}var zL=xo("[[AbortSteps]]"),UL=xo("[[ErrorSteps]]"),Kde=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r={}),Ate(this);var n=r.size,i=r.highWaterMark,a=t.type;if(a!==void 0)throw new RangeError("Invalid type is specified");var o=ML(n);i===void 0&&(i=1),i=vy(i),jte(this,t,i,o)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(ql(this)===!1)throw Sm("locked");return Zf(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(t){return ql(this)===!1?rr(Sm("abort")):Zf(this)===!0?rr(new TypeError("Cannot abort a stream that already has a writer")):yy(this,t)},e.prototype.close=function(){return ql(this)===!1?rr(Sm("close")):Zf(this)===!0?rr(new TypeError("Cannot close a stream that already has a writer")):za(this)===!0?rr(new TypeError("Cannot close an already-closing stream")):WL(this)},e.prototype.getWriter=function(){if(ql(this)===!1)throw Sm("getWriter");return jL(this)},e}();function jL(e){return new Dte(e)}function Ate(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new Wa,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function ql(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_writableStreamController"))}function Zf(e){return e._writer!==void 0}function yy(e,t){var r=e._state;if(r==="closed"||r==="errored")return sn(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;var n=!1;r==="erroring"&&(n=!0,t=void 0);var i=Yi(function(a,o){e._pendingAbortRequest={_promise:void 0,_resolve:a,_reject:o,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,n===!1&&PC(e,t),i}function WL(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=Yi(function(i,a){var o={_resolve:i,_reject:a};e._closeRequest=o}),n=e._writer;return n!==void 0&&e._backpressure===!0&&t==="writable"&&LC(n),Wte(e._writableStreamController),r}function Cte(e){var t=Yi(function(r,n){var i={_resolve:r,_reject:n};e._writeRequests.push(i)});return t}function IC(e,t){var r=e._state;if(r==="writable"){PC(e,t);return}kC(e)}function PC(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;n!==void 0&&qL(n,t),Pte(e)===!1&&r._started===!0&&kC(e)}function kC(e){e._state="errored",e._writableStreamController[UL]();var t=e._storedError;if(e._writeRequests.forEach(function(i){i._reject(t)}),e._writeRequests=new Wa,e._pendingAbortRequest===void 0){_m(e);return}var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring===!0){r._reject(t),_m(e);return}var n=e._writableStreamController[zL](r._reason);ya(n,function(){r._resolve(),_m(e)},function(i){r._reject(i),_m(e)})}function Tte(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Rte(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,IC(e,t)}function Ote(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&&QL(r)}function Ite(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,e._pendingAbortRequest!==void 0&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),IC(e,t)}function za(e){return!(e._closeRequest===void 0&&e._inFlightCloseRequest===void 0)}function Pte(e){return!(e._inFlightWriteRequest===void 0&&e._inFlightCloseRequest===void 0)}function kte(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Mte(e){e._inFlightWriteRequest=e._writeRequests.shift()}function _m(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 MC(e,t){var r=e._writer;r!==void 0&&t!==e._backpressure&&(t===!0?Kte(r):LC(r)),e._backpressure=t}var Dte=function(){function e(t){if(ql(t)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(Zf(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")za(t)===!1&&t._backpressure===!0?N1(this):WI(this),by(this);else if(r==="erroring")WS(this,t._storedError),by(this);else if(r==="closed")WI(this),Yte(this);else{var n=t._storedError;WS(this,n),KL(this,n)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return Cl(this)===!1?rr(Tl("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Cl(this)===!1)throw Tl("desiredSize");if(this._ownerWritableStream===void 0)throw Lp("desiredSize");return Bte(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return Cl(this)===!1?rr(Tl("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(t){return Cl(this)===!1?rr(Tl("abort")):this._ownerWritableStream===void 0?rr(Lp("abort")):Fte(this,t)},e.prototype.close=function(){if(Cl(this)===!1)return rr(Tl("close"));var t=this._ownerWritableStream;return t===void 0?rr(Lp("close")):za(t)===!0?rr(new TypeError("Cannot close an already-closing stream")):GL(this)},e.prototype.releaseLock=function(){if(Cl(this)===!1)throw Tl("releaseLock");var t=this._ownerWritableStream;t!==void 0&&HL(this)},e.prototype.write=function(t){return Cl(this)===!1?rr(Tl("write")):this._ownerWritableStream===void 0?rr(Lp("write to")):VL(this,t)},e}();function Cl(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream"))}function Fte(e,t){var r=e._ownerWritableStream;return yy(r,t)}function GL(e){var t=e._ownerWritableStream;return WL(t)}function Nte(e){var t=e._ownerWritableStream,r=t._state;return za(t)===!0||r==="closed"?sn(void 0):r==="errored"?rr(t._storedError):GL(e)}function Lte(e,t){e._closedPromiseState==="pending"?NC(e,t):Xte(e,t)}function qL(e,t){e._readyPromiseState==="pending"?ZL(e,t):Qte(e,t)}function Bte(e){var t=e._ownerWritableStream,r=t._state;return r==="errored"||r==="erroring"?null:r==="closed"?0:YL(t._writableStreamController)}function HL(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");qL(e,r),Lte(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function VL(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,i=Gte(n,t);if(r!==e._ownerWritableStream)return rr(Lp("write to"));var a=r._state;if(a==="errored")return rr(r._storedError);if(za(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=Cte(r);return qte(n,t,i),o}var $te=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(t){if(zte(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var r=this._controlledWritableStream._state;r==="writable"&&XL(this,t)},e.prototype[zL]=function(t){var r=this._abortAlgorithm(t);return D1(this),r},e.prototype[UL]=function(){Xu(this)},e}();function zte(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream"))}function Ute(e,t,r,n,i,a,o,u){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Xu(t),t._started=!1,t._strategySizeAlgorithm=u,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=a;var s=FC(t);MC(e,s);var f=r(),d=sn(f);ya(d,function(){t._started=!0,F1(t)},function(v){t._started=!0,IC(e,v)})}function jte(e,t,r,n){var i=Object.create($te.prototype);function a(){return wC(t,"start",[i])}var o=Xl(t,"write",1,[i]),u=Xl(t,"close",0,[]),s=Xl(t,"abort",1,[]);Ute(e,i,a,o,u,s,r,n)}function D1(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Wte(e){OC(e,"close",0),F1(e)}function Gte(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return DC(e,r),1}}function YL(e){return e._strategyHWM-e._queueTotalSize}function qte(e,t,r){var n={chunk:t};try{OC(e,n,r)}catch(o){DC(e,o);return}var i=e._controlledWritableStream;if(za(i)===!1&&i._state==="writable"){var a=FC(e);MC(i,a)}F1(e)}function F1(e){var t=e._controlledWritableStream;if(e._started!==!1&&t._inFlightWriteRequest===void 0){var r=t._state;if(r==="erroring"){kC(t);return}if(e._queue.length!==0){var n=Ete(e);n==="close"?Hte(e):Vte(e,n.chunk)}}}function DC(e,t){e._controlledWritableStream._state==="writable"&&XL(e,t)}function Hte(e){var t=e._controlledWritableStream;kte(t),RC(e);var r=e._closeAlgorithm();D1(e),ya(r,function(){Ote(t)},function(n){Ite(t,n)})}function Vte(e,t){var r=e._controlledWritableStream;Mte(r);var n=e._writeAlgorithm(t);ya(n,function(){Tte(r);var i=r._state;if(RC(e),za(r)===!1&&i==="writable"){var a=FC(e);MC(r,a)}F1(e)},function(i){r._state==="writable"&&D1(e),Rte(r,i)})}function FC(e){var t=YL(e);return t<=0}function XL(e,t){var r=e._controlledWritableStream;D1(e),PC(r,t)}function Sm(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function Tl(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Lp(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function by(e){e._closedPromise=Yi(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function KL(e,t){by(e),NC(e,t)}function Yte(e){by(e),QL(e)}function NC(e,t){Lc(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Xte(e,t){KL(e,t)}function QL(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function N1(e){e._readyPromise=Yi(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function WS(e,t){N1(e),ZL(e,t)}function WI(e){N1(e),LC(e)}function ZL(e,t){Lc(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function Kte(e){N1(e)}function Qte(e,t){WS(e,t)}function LC(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function GI(e){if(typeof e!="object"||e===null)return!1;try{return typeof e.aborted=="boolean"}catch{return!1}}var qI=typeof DOMException<"u"?DOMException:void 0;function Zte(e){if(!(typeof e=="function"||typeof e=="object"))return!1;try{return new e,!0}catch{return!1}}function Jte(){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 ere=Zte(qI)?qI:Jte();function HI(e,t,r,n,i,a){var o=I1(e),u=jL(t);e._disturbed=!0;var s=!1,f=sn(void 0);return Yi(function(d,v){var h;if(a!==void 0){if(h=function(){var D=new ere("Aborted","AbortError"),z=[];n===!1&&z.push(function(){return t._state==="writable"?yy(t,D):sn(void 0)}),i===!1&&z.push(function(){return e._state==="readable"?Kl(e,D):sn(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 Yi(function(D,z){function N(L){L?D():go(_(),N,z)}N(!1)})}function _(){return s===!0?sn(!0):go(u._readyPromise,function(){return go(k1(o),function(D){return D.done===!0?!0:(f=go(VL(u,D.value),void 0,bC),!1)})})}if(w(e,o._closedPromise,function(D){n===!1?E(function(){return yy(t,D)},!0,D):R(!0,D)}),w(t,u._closedPromise,function(D){i===!1?E(function(){return Kl(e,D)},!0,D):R(!0,D)}),S(e,o._closedPromise,function(){r===!1?E(function(){return Nte(u)}):R()}),za(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 Kl(e,A)},!0,A):R(!0,A)}Lc(g());function b(){var D=f;return go(f,function(){return D!==f?b():void 0})}function w(D,z,N){D._state==="errored"?N(D._storedError):DL(z,N)}function S(D,z,N){D._state==="closed"?N():t_(z,N)}function E(D,z,N){if(s===!0)return;s=!0,t._state==="writable"&&za(t)===!1?t_(b(),L):L();function L(){ya(D(),function(){return M(z,N)},function(ee){return M(!0,ee)})}}function R(D,z){s!==!0&&(s=!0,t._state==="writable"&&za(t)===!1?t_(b(),function(){return M(D,z)}):M(D,z))}function M(D,z){HL(u),Qf(o),a!==void 0&&a.removeEventListener("abort",h),D?v(z):d(void 0)}})}var JL=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Em(this)===!1)throw Am("desiredSize");return BC(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(Em(this)===!1)throw Am("close");if(Bh(this)===!1)throw new TypeError("The stream is not in a state that permits close");xy(this)},e.prototype.enqueue=function(t){if(Em(this)===!1)throw Am("enqueue");if(Bh(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return _y(this,t)},e.prototype.error=function(t){if(Em(this)===!1)throw Am("error");$u(this,t)},e.prototype[AC]=function(t){Xu(this);var r=this._cancelAlgorithm(t);return wy(this),r},e.prototype[CC]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var r=RC(this);return this._closeRequested===!0&&this._queue.length===0?(wy(this),_v(t)):Lh(this),sn(ha(r,!1,t._reader._forAuthorCode))}var n=BL(t);return Lh(this),n},e}();function Em(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Lh(e){var t=eB(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();ya(r,function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,Lh(e))},function(n){$u(e,n)})}}function eB(e){var t=e._controlledReadableStream;if(Bh(e)===!1||e._started===!1)return!1;if(mu(t)===!0&&P1(t)>0)return!0;var r=BC(e);return r>0}function wy(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function xy(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(wy(e),_v(t))}function _y(e,t){var r=e._controlledReadableStream;if(mu(r)===!0&&P1(r)>0)TC(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(i){throw $u(e,i),i}try{OC(e,t,n)}catch(i){throw $u(e,i),i}}Lh(e)}function $u(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(Xu(e),wy(e),cB(r,t))}function BC(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function tre(e){return eB(e)!==!0}function Bh(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function tB(e,t,r,n,i,a,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Xu(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();ya(sn(u),function(){t._started=!0,Lh(t)},function(s){$u(t,s)})}function rre(e,t,r,n){var i=Object.create(JL.prototype);function a(){return wC(t,"start",[i])}var o=Xl(t,"pull",0,[i]),u=Xl(t,"cancel",1,[]);tB(e,i,a,o,u,r,n)}function Am(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function nre(e,t){var r=I1(e),n=!1,i=!1,a=!1,o,u,s,f,d,v=Yi(function(b){d=b});function h(){if(n===!0)return sn(void 0);n=!0;var b=gy(k1(r),function(w){n=!1;var S=w.done;if(S===!0){i===!1&&xy(s._readableStreamController),a===!1&&xy(f._readableStreamController);return}var E=w.value,R=E,M=E;i===!1&&_y(s._readableStreamController,R),a===!1&&_y(f._readableStreamController,M)});return Lc(b),sn(void 0)}function g(b){if(i=!0,o=b,a===!0){var w=jS([o,u]),S=Kl(e,w);d(S)}return v}function _(b){if(a=!0,u=b,i===!0){var w=jS([o,u]),S=Kl(e,w);d(S)}return v}function A(){}return s=YI(A,h,g),f=YI(A,h,_),DL(r._closedPromise,function(b){$u(s._readableStreamController,b),$u(f._readableStreamController,b)}),[s,f]}var ire=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},are=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(n_(this)===!1)throw i_("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(t){if(n_(this)===!1)throw i_("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");hy(this._view.buffer),hre(this._associatedReadableByteStreamController,t)},e.prototype.respondWithNewView=function(t){if(n_(this)===!1)throw i_("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");hy(t.buffer),vre(this._associatedReadableByteStreamController,t)},e}(),ore=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(Cf(this)===!1)throw pp("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(are.prototype);yre(n,this,r),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Cf(this)===!1)throw pp("desiredSize");return lB(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(Cf(this)===!1)throw pp("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");dre(this)},e.prototype.enqueue=function(t){if(Cf(this)===!1)throw pp("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var r=this._controlledReadableByteStream._state;if(r!=="readable")throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");hy(t.buffer),pre(this,t)},e.prototype.error=function(t){if(Cf(this)===!1)throw pp("error");xv(this,t)},e.prototype[AC]=function(t){if(this._pendingPullIntos.length>0){var r=this._pendingPullIntos.peek();r.bytesFilled=0}Xu(this);var n=this._cancelAlgorithm(t);return L1(this),n},e.prototype[CC]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,aB(this);var n=void 0;try{n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(s){return rr(s)}return sn(ha(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=BL(t);return xs(this),u},e}();function Cf(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function n_(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function xs(e){var t=cre(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();ya(r,function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,xs(e))},function(n){xv(e,n)})}}function ure(e){zC(e),e._pendingPullIntos=new Wa}function $C(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=rB(t);t.readerType==="default"?TC(e,n,r):wre(e,n,r)}function rB(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function c0(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function nB(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;vte(t.buffer,h,d.buffer,d.byteOffset,v),d.byteLength===v?f.shift():(d.byteOffset+=v,d.byteLength-=v),e._queueTotalSize-=v,iB(e,v,t),u-=v}return s}function iB(e,t,r){zC(e),r.bytesFilled+=t}function aB(e){e._queueTotalSize===0&&e._closeRequested===!0?(L1(e),_v(e._controlledReadableByteStream)):xs(e)}function zC(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function oB(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos.peek();nB(e,t)===!0&&(UC(e),$C(e._controlledReadableByteStream,t))}}function lre(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),VI(r);if(r._state==="closed"){var u=new i(o.buffer,o.byteOffset,0);return sn(ha(u,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(nB(e,o)===!0){var s=rB(o);return aB(e),sn(ha(s,!1,r._reader._forAuthorCode))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return xv(e,f),rr(f)}}e._pendingPullIntos.push(o);var d=VI(r);return xs(e),d}function sre(e,t){t.buffer=t.buffer;var r=e._controlledReadableByteStream;if(jC(r)===!0)for(;sB(r)>0;){var n=UC(e);$C(r,n)}}function fre(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(iB(e,t,r),!(r.bytesFilled<r.elementSize)){UC(e);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,a=r.buffer.slice(i-n,i);c0(e,a,0,a.byteLength)}r.buffer=r.buffer,r.bytesFilled-=n,$C(e._controlledReadableByteStream,r),oB(e)}}function uB(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");sre(e,r)}else fre(e,t,r);xs(e)}function UC(e){var t=e._pendingPullIntos.shift();return zC(e),t}function cre(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if($L(t)===!0&&P1(t)>0||jC(t)===!0&&sB(t)>0)return!0;var r=lB(e);return r>0}function L1(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function dre(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 xv(e,n),n}}L1(e),_v(t)}function pre(e,t){var r=e._controlledReadableByteStream,n=t.buffer,i=t.byteOffset,a=t.byteLength,o=n;if($L(r)===!0)if(P1(r)===0)c0(e,o,i,a);else{var u=new Uint8Array(o,i,a);TC(r,u,!1)}else jC(r)===!0?(c0(e,o,i,a),oB(e)):c0(e,o,i,a);xs(e)}function xv(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(ure(e),Xu(e),L1(e),cB(r,t))}function lB(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function hre(e,t){if(t=Number(t),PL(t)===!1)throw new RangeError("bytesWritten must be a finite");uB(e,t)}function vre(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,uB(e,t.byteLength)}function gre(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,Xu(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=vy(a),t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=o,t._pendingPullIntos=new Wa,e._readableStreamController=t;var u=r();ya(sn(u),function(){t._started=!0,xs(t)},function(s){xv(t,s)})}function mre(e,t,r){var n=Object.create(ore.prototype);function i(){return wC(t,"start",[n])}var a=Xl(t,"pull",0,[n]),o=Xl(t,"cancel",1,[]),u=t.autoAllocateChunkSize;if(u!==void 0&&(u=Number(u),ire(u)===!1||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");gre(e,n,i,a,o,r,u)}function yre(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function i_(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function pp(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function bre(e,t){t===void 0&&(t=!1);var r=new xre(e);return r._forAuthorCode=t,r}function VI(e){var t=Yi(function(r,n){var i={_resolve:r,_reject:n};e._reader._readIntoRequests.push(i)});return t}function wre(e,t,r){var n=e._reader,i=n._readIntoRequests.shift();i._resolve(ha(t,r,n._forAuthorCode))}function sB(e){return e._reader._readIntoRequests.length}function jC(e){var t=e._reader;return!(t===void 0||!Bp(t))}var xre=function(){function e(t){if(!Oa(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(Cf(t._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(mu(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");FL(this,t),this._readIntoRequests=new Wa}return Object.defineProperty(e.prototype,"closed",{get:function(){return Bp(this)?this._closedPromise:rr(Cm("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Bp(this)?this._ownerReadableStream===void 0?rr(mc("cancel")):_C(this,t):rr(Cm("cancel"))},e.prototype.read=function(t){return Bp(this)?this._ownerReadableStream===void 0?rr(mc("read from")):ArrayBuffer.isView(t)?(hy(t.buffer),t.byteLength===0?rr(new TypeError("view must have non-zero byteLength")):_re(this,t)):rr(new TypeError("view must be an array buffer view")):rr(Cm("read"))},e.prototype.releaseLock=function(){if(!Bp(this))throw Cm("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");Qf(this)}},e}();function Bp(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function _re(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="errored"?rr(r._storedError):lre(r._readableStreamController,t)}function Cm(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var GS=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r={}),fB(this);var n=r.size,i=r.highWaterMark,a=t.type,o=String(a);if(o==="bytes"){if(n!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");i===void 0&&(i=0),i=vy(i),mre(this,t,i)}else if(a===void 0){var u=ML(n);i===void 0&&(i=1),i=vy(i),rre(this,t,i,u)}else throw new RangeError("Invalid type is specified")}return Object.defineProperty(e.prototype,"locked",{get:function(){if(Oa(this)===!1)throw Rl("locked");return mu(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(t){return Oa(this)===!1?rr(Rl("cancel")):mu(this)===!0?rr(new TypeError("Cannot cancel a stream that already has a reader")):Kl(this,t)},e.prototype.getReader=function(t){var r=(t===void 0?{}:t).mode;if(Oa(this)===!1)throw Rl("getReader");if(r===void 0)return I1(this,!0);if(r=String(r),r==="byob")return bre(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(Oa(this)===!1)throw Rl("pipeThrough");if(ql(n)===!1)throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(Oa(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&&!GI(f))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(mu(this)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Zf(n)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var d=HI(this,n,o,u,s,f);return Lc(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 Oa(this)===!1?rr(Rl("pipeTo")):ql(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&&!GI(u)?rr(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")):mu(this)===!0?rr(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Zf(t)===!0?rr(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):HI(this,t,i,a,o,u))},e.prototype.tee=function(){if(Oa(this)===!1)throw Rl("tee");var t=nre(this);return jS(t)},e.prototype.getIterator=function(t){var r=(t===void 0?{}:t).preventCancel,n=r===void 0?!1:r;if(Oa(this)===!1)throw Rl("getIterator");return Ste(this,n)},e}();typeof xo.asyncIterator=="symbol"&&Object.defineProperty(GS.prototype,xo.asyncIterator,{value:GS.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});function YI(e,t,r,n,i){n===void 0&&(n=1),i===void 0&&(i=function(){return 1});var a=Object.create(GS.prototype);fB(a);var o=Object.create(JL.prototype);return tB(a,o,e,t,r,n,i),a}function fB(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Oa(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_readableStreamController"))}function mu(e){return e._reader!==void 0}function Kl(e,t){if(e._disturbed=!0,e._state==="closed")return sn(void 0);if(e._state==="errored")return rr(e._storedError);_v(e);var r=e._readableStreamController[AC](t);return gy(r,bC)}function _v(e){e._state="closed";var t=e._reader;t!==void 0&&(Gl(t)&&(t._readRequests.forEach(function(r){r._resolve(ha(void 0,!0,t._forAuthorCode))}),t._readRequests=new Wa),LL(t))}function cB(e,t){e._state="errored",e._storedError=t;var r=e._reader;r!==void 0&&(Gl(r)?(r._readRequests.forEach(function(n){n._reject(t)}),r._readRequests=new Wa):(r._readIntoRequests.forEach(function(n){n._reject(t)}),r._readIntoRequests=new Wa),EC(r,t))}function Rl(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Sre(e,t){$u(e._readable._readableStreamController,t),WC(e,t)}function WC(e,t){Ere(e._transformStreamController),DC(e._writable._writableStreamController,t),e._backpressure===!0&&dB(e,!1)}function dB(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=Yi(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(Tm(this)===!1)throw Rm("desiredSize");var t=this._controlledTransformStream._readable._readableStreamController;return BC(t)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(t){if(Tm(this)===!1)throw Rm("enqueue");Are(this,t)},e.prototype.error=function(t){if(Tm(this)===!1)throw Rm("error");Cre(this,t)},e.prototype.terminate=function(){if(Tm(this)===!1)throw Rm("terminate");Tre(this)},e})();function Tm(e){return!(!ma(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function Ere(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Are(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(Bh(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{_y(n,t)}catch(a){throw WC(r,a),r._readable._storedError}var i=tre(n);i!==r._backpressure&&dB(r,!0)}function Cre(e,t){Sre(e._controlledTransformStream,t)}function Tre(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;Bh(r)===!0&&xy(r);var n=new TypeError("TransformStream terminated");WC(t,n)}function Rm(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}var pB={};pB.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 a_="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(",">>",">\\&","[&;()|<>]"].join("|")+")",XI="|&;()<> \\t",Rre=`(\\\\['"`+XI+`]|[^\\s'"`+XI+"])+",Ore='"((\\\\"|[^"])*?)"',Ire="'((\\\\'|[^'])*?)'",Hl="";for(var KI=0;KI<4;KI++)Hl+=(Math.pow(16,8)*Math.random()).toString(16);pB.parse=function(e,t,r){var n=Pre(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("("+Hl+".*?"+Hl+")","g"));return o.length===1?i.concat(o[0]):i.concat(o.filter(Boolean).map(function(u){return RegExp("^"+Hl).test(u)?JSON.parse(u.split(Hl)[1]):u}))},[])};function Pre(e,t,r){var n=new RegExp(["("+a_+")","("+Rre+"|"+Ore+"|"+Ire+")*"].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("^"+a_+"$").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("^"+a_+"$").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+Hl+JSON.stringify(d)+Hl:s+d}}var hB={exports:{}};/* @license
898
- Papa Parse
899
- v5.3.2
900
- https://github.com/mholt/PapaParse
901
- License: MIT
902
- */(function(e,t){(function(r,n){e.exports=n()})(Ar,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
903
- `,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",`
904
- `,'"',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(`
905
- `),Ne=1<le.length&&le[0].length<U[0].length;if(U.length===1||Ne)return`
906
- `;for(var ze=0,qt=0;qt<U.length;qt++)U[qt][0]===`
907
- `&&ze++;return ze>=U.length/2?`\r
908
- `:"\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,Zt;le=le||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var nr=0;nr<le.length;nr++){var mr=le[nr],_r=0,an=0,ba=0;qt=void 0;for(var Xn=new w({comments:U,delimiter:mr,newline:C,preview:10}).parse(I),Pn=0;Pn<Xn.data.length;Pn++)if(P&&We(Xn.data[Pn]))ba++;else{var wa=Xn.data[Pn].length;an+=wa,qt!==void 0?0<wa&&(_r+=Math.abs(wa-qt),qt=wa):qt=wa}0<Xn.data.length&&(an/=Xn.data.length-ba),(ze===void 0||_r<=ze)&&(Zt===void 0||Zt<an)&&1.99<an&&(ze=_r,Ne=mr,Zt=an)}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!==`
909
- `&&ue!=="\r"&&ue!==`\r
910
- `&&(ue=`
911
- `);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 Zt();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 Zt();if(!pe||Ae.substring(0,Ze)!==pe){if(st){if(Rt=[],le(Ae.split(ee)),nr(),Fe)return Zt()}else le(Ae.split(ee));if(Ee&&Ee<=_e)return Rt=Rt.slice(0,Ee),Zt(!0)}}return Zt()}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 Zt();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 Zt();if(Ee&&Rt.length>=Ee)return Zt(!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 Zt();if(Ee&&Rt.length>=Ee)return Zt(!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(mr){Rt.push(mr),nt=me}function Ne(mr){var _r=0;if(mr!==-1){var an=qe.substring(C+1,mr);an&&an.trim()===""&&(_r=an.length)}return _r}function ze(mr){return be||(mr===void 0&&(mr=qe.substring(me)),Ae.push(mr),me=ye,le(Ae),st&&nr()),Zt()}function qt(mr){me=mr,le(Ae),Ae=[],te=qe.indexOf(ue,me)}function Zt(mr){return{data:Rt,errors:kt,meta:{delimiter:ee,linebreak:ue,aborted:Fe,truncated:!!mr,cursor:nt+(Ue||0)}}}function nr(){we(Zt()),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})})(hB);const Qde=hB.exports;var kre={exports:{}};/*! Native Promise Only
912
- v0.8.1 (c) Kyle Simpson
913
- MIT License: http://getify.mit-license.org
914
- */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Ar<"u"?Ar:Ar,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})})(kre);var Mre={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(Zt(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(Zt(l,c,p))};function Zt(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=mr(l),this.select(function(){return this.appendChild(l.apply(this,arguments))})};function mr(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=mr(l),c=j(c),this.select(function(){return this.insertBefore(l.apply(this,arguments),c.apply(this,arguments)||null)})},_e.remove=function(){return this.each(_r)};function _r(){var l=this.parentNode;l&&l.removeChild(this)}_e.data=function(l,c){var 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]=an(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]=an(ie);for(;G<se;++G)re[G]=an(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=wa([]),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 an(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=ba(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 ba(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=Xn.apply(this,arguments);for(var c=-1,p=this.length;++c<p;)this[c].sort(l);return this.order()};function Xn(l){return arguments.length||(l=h),function(c,p){return c&&p?l(c.__data__,p.__data__):!c-!p}}_e.each=function(l){return Pn(this,function(c,p,m){l.call(c,c.__data__,p,m)})};function Pn(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 Pn(this,function(){++l}),l};function wa(l){return Rt(l,Qi),l}var Qi=[];t.selection.enter=wa,t.selection.enter.prototype=Qi,Qi.append=_e.append,Qi.empty=_e.empty,Qi.node=_e.node,Qi.call=_e.call,Qi.size=_e.size,Qi.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)},Qi.insert=function(l,c){return arguments.length<2&&(c=Zu(this)),_e.insert.call(this,l,c)};function Zu(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(As(p,l[p],c));return this}if(m<2)return(m=this.node()["__on"+l])&&m._;p=!1}return this.each(As(l,c,p))};function As(l,c,p){var m="__on"+l,y=l.indexOf("."),x=Ts;y>0&&(l=l.slice(0,y));var O=Cs.get(l);O&&(l=O,x=rb);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 Cs=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Cs.forEach(function(l){"on"+l in i&&Cs.remove(l)});function Ts(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 rb(l,c){var p=Ts(l,c);return function(m){var y=this,x=m.relatedTarget;(!x||x!==y&&!(x.compareDocumentPosition(y)&8))&&p.call(y,m)}}var Va,nb=0;function Rs(l){var c=".dragsuppress-"+ ++nb,p="click"+c,m=t.select(o(l)).on("touchmove"+c,Ke).on("dragstart"+c,Ke).on("selectstart"+c,Ke);if(Va==null&&(Va="onselectstart"in l?!1:Fe(l.style,"userSelect")),Va){var y=a(l).style,x=y[Va];y[Va]="none"}return function(O){if(m.on(c,null),Va&&(y[Va]=x),O){var T=function(){m.on(p,null)};m.on(p,function(){Ke(),T()},!0),setTimeout(T,0)}}}t.mouse=function(l){return gi(l,We())};var fn=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function gi(l,c){c.changedTouches&&(c=c.changedTouches[0]);var p=l.ownerSVGElement||l;if(p.createSVGPoint){var m=p.createSVGPoint();if(fn<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();fn=!(x.f||x.e),p.remove()}}return fn?(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 gi(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(Kn,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=Rs(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 Kn(){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=gi(l,p);return m.identifier=p.identifier,m}):[]};var fr=1e-6,Ov=fr*fr,Zi=Math.PI,Do=2*Zi,Iv=Do-fr,ki=Zi/2,Pv=Zi/180,Ju=180/Zi;function ib(l,c,p){return(c[0]-l[0])*(p[1]-l[1])-(c[1]-l[1])*(p[0]-l[0])}function kv(l){return l>1?ki:l<-1?-ki:Math.asin(l)}function ab(l){return((l=Math.exp(l))-1/l)/2}function Mv(l){return((l=Math.exp(l))+1/l)/2}function ob(l){return((l=Math.exp(2*l))-1)/(l+1)}var el=Math.SQRT2,zc=2,Dv=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($<Ov)G=Math.log(T/y)/el,W=function(fe){return[p+fe*k,m+fe*B,y*Math.exp(el*fe*G)]};else{var oe=Math.sqrt($),se=(T*T-y*y+Dv*$)/(2*y*zc*oe),H=(T*T-y*y-Dv*$)/(2*T*zc*oe),K=Math.log(Math.sqrt(se*se+1)-se),re=Math.log(Math.sqrt(H*H+1)-H);G=(re-K)/el,W=function(fe){var ce=fe*G,ie=Mv(K),$e=y/(zc*oe)*(ie*ob(el*ce+K)-ab(K));return[p+$e*k,m+$e*B,y*ie/Mv(el*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=tl,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;Uc||(Uc="onwheel"in i?(Os=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Os=function(){return t.event.wheelDelta},"mousewheel"):(Os=function(){return-t.event.detail},"MozMousePixelScroll"));function ce(lt){lt.on(k,Vt).on(Uc+".zoom",Lr).on("dblclick.zoom",br).on(G,cr)}ce.event=function(lt){lt.each(function(){var Kt=se.of(this,arguments),er=l;aa?t.select(this).transition().each("start.zoom",function(){l=this.__chart__||{x:0,y:0,k:1},wt(Kt)}).tween("zoom:zoom",function(){var dr=y[0],kr=y[1],Hr=p?p[0]:dr/2,en=p?p[1]:kr/2,_n=t.interpolateZoom([(Hr-l.x)/l.k,(en-l.y)/l.k,dr/l.k],[(Hr-er.x)/er.k,(en-er.y)/er.k,dr/er.k]);return function(kn){var pn=_n(kn),jn=dr/pn[2];this.__chart__=l={x:Hr-pn[0]*jn,y:en-pn[1]*jn,k:jn},Xt(Kt)}}).each("interrupt.zoom",function(){Et(Kt)}).each("end.zoom",function(){Et(Kt)}):(this.__chart__=l,wt(Kt),Xt(Kt),Et(Kt))})},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?tl:[+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,Kt){Kt=$e(Kt),l.x+=lt[0]-Kt[0],l.y+=lt[1]-Kt[1]}function Xe(lt,Kt,er,dr){lt.__chart__={x:l.x,y:l.y,k:l.k},Ye(Math.pow(2,dr)),ut(p=Kt,er),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 Xt(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,Kt=se.of(lt,arguments),er=0,dr=t.select(o(lt)).on(B,en).on($,_n),kr=ie(t.mouse(lt)),Hr=Rs(lt);lf.call(lt),wt(Kt);function en(){er=1,ut(t.mouse(lt),kr),Xt(Kt)}function _n(){dr.on(B,null).on($,null),Hr(er),Et(Kt)}}function cr(){var lt=this,Kt=se.of(lt,arguments),er={},dr=0,kr,Hr=".zoom-"+t.event.changedTouches[0].identifier,en="touchmove"+Hr,_n="touchend"+Hr,kn=[],pn=t.select(lt),jn=Rs(lt);V(),wt(Kt),pn.on(k,null).on(G,V);function F(){var Le=t.touches(lt);return kr=l.k,Le.forEach(function(Te){Te.identifier in er&&(er[Te.identifier]=ie(Te))}),Le}function V(){var Le=t.event.target;t.select(Le).on(en,J).on(_n,Pe),kn.push(Le);for(var Te=t.event.changedTouches,Oe=0,tt=Te.length;Oe<tt;++Oe)er[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,er[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;lf.call(lt);for(var ot=0,ht=Le.length;ot<ht;++ot,rt=null)if(tt=Le[ot],rt=er[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),Xt(Kt)}function Pe(){if(t.event.touches.length){for(var Le=t.event.changedTouches,Te=0,Oe=Le.length;Te<Oe;++Te)delete er[Le[Te].identifier];for(var tt in er)return void F()}t.selectAll(kn).on(Hr,null),pn.on(k,Vt).on(G,cr),jn(),Et(Kt)}}function Lr(){var lt=se.of(this,arguments);W?clearTimeout(W):(lf.call(this),c=ie(p=m||t.mouse(this)),wt(lt)),W=setTimeout(function(){W=null,Et(lt)},50),Ke(),Ye(Math.pow(2,Os()*.002)*l.k),ut(p,c),Xt(lt)}function br(){var lt=t.mouse(this),Kt=Math.log(l.k)/Math.LN2;Xe(this,lt,ie(lt),t.event.shiftKey?Math.ceil(Kt)-1:Math.floor(Kt)+1)}return t.rebind(ce,se,"on")};var tl=[0,1/0],Os,Uc;t.color=xa;function xa(){}xa.prototype.toString=function(){return this.rgb()+""},t.hsl=ii;function ii(l,c,p){return this instanceof ii?(this.h=+l,this.s=+c,void(this.l=+p)):arguments.length<2?l instanceof ii?new ii(l.h,l.s,l.l):Xa(""+l,Yc,ii):new ii(l,c,p)}var Is=ii.prototype=new xa;Is.brighter=function(l){return l=Math.pow(.7,arguments.length?l:1),new ii(this.h,this.s,this.l/l)},Is.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new ii(this.h,this.s,l*this.l)},Is.rgb=function(){return Ps(this.h,this.s,this.l)};function Ps(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 cn(O(l+120),O(l),O(l-120))}t.hcl=mi;function mi(l,c,p){return this instanceof mi?(this.h=+l,this.c=+c,void(this.l=+p)):arguments.length<2?l instanceof mi?new mi(l.h,l.c,l.l):l instanceof on?Lv(l.l,l.a,l.b):Lv((l=Ka((l=t.rgb(l)).r,l.g,l.b)).l,l.a,l.b):new mi(l,c,p)}var rl=mi.prototype=new xa;rl.brighter=function(l){return new mi(this.h,this.c,Math.min(100,this.l+Ya*(arguments.length?l:1)))},rl.darker=function(l){return new mi(this.h,this.c,Math.max(0,this.l-Ya*(arguments.length?l:1)))},rl.rgb=function(){return nl(this.h,this.c,this.l).rgb()};function nl(l,c,p){return isNaN(l)&&(l=0),isNaN(c)&&(c=0),new on(p,Math.cos(l*=Pv)*c,Math.sin(l)*c)}t.lab=on;function on(l,c,p){return this instanceof on?(this.l=+l,this.a=+c,void(this.b=+p)):arguments.length<2?l instanceof on?new on(l.l,l.a,l.b):l instanceof mi?nl(l.h,l.c,l.l):Ka((l=cn(l)).r,l.g,l.b):new on(l,c,p)}var Ya=18,jc=.95047,Wc=1,Fv=1.08883,Gc=on.prototype=new xa;Gc.brighter=function(l){return new on(Math.min(100,this.l+Ya*(arguments.length?l:1)),this.a,this.b)},Gc.darker=function(l){return new on(Math.max(0,this.l-Ya*(arguments.length?l:1)),this.a,this.b)},Gc.rgb=function(){return Nv(this.l,this.a,this.b)};function Nv(l,c,p){var m=(l+16)/116,y=m+c/500,x=m-p/200;return y=qc(y)*jc,m=qc(m)*Wc,x=qc(x)*Fv,new cn(Vc(3.2404542*y-1.5371385*m-.4985314*x),Vc(-.969266*y+1.8760108*m+.041556*x),Vc(.0556434*y-.2040259*m+1.0572252*x))}function Lv(l,c,p){return l>0?new mi(Math.atan2(p,c)*Ju,Math.sqrt(c*c+p*p),l):new mi(NaN,NaN,l)}function qc(l){return l>.206893034?l*l*l:(l-4/29)/7.787037}function Hc(l){return l>.008856?Math.pow(l,1/3):7.787037*l+4/29}function Vc(l){return Math.round(255*(l<=.00304?12.92*l:1.055*Math.pow(l,1/2.4)-.055))}t.rgb=cn;function cn(l,c,p){return this instanceof cn?(this.r=~~l,this.g=~~c,void(this.b=~~p)):arguments.length<2?l instanceof cn?new cn(l.r,l.g,l.b):Xa(""+l,cn,Ps):new cn(l,c,p)}function Bv(l){return new cn(l>>16,l>>8&255,l&255)}function ks(l){return Bv(l)+""}var _a=cn.prototype=new xa;_a.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 cn(y,y,y):(c&&c<y&&(c=y),p&&p<y&&(p=y),m&&m<y&&(m=y),new cn(Math.min(255,c/l),Math.min(255,p/l),Math.min(255,m/l)))},_a.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new cn(l*this.r,l*this.g,l*this.b)},_a.hsl=function(){return Yc(this.r,this.g,this.b)},_a.toString=function(){return"#"+Fo(this.r)+Fo(this.g)+Fo(this.b)};function Fo(l){return l<16?"0"+Math.max(0,l).toString(16):Math.min(255,l).toString(16)}function Xa(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(Sa(T[0]),Sa(T[1]),Sa(T[2]))}return(k=No.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 Yc(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 ii(O,T,k)}function Ka(l,c,p){l=Ms(l),c=Ms(c),p=Ms(p);var m=Hc((.4124564*l+.3575761*c+.1804375*p)/jc),y=Hc((.2126729*l+.7151522*c+.072175*p)/Wc),x=Hc((.0193339*l+.119192*c+.9503041*p)/Fv);return on(116*y-16,500*(m-y),200*(y-x))}function Ms(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}function Sa(l){var c=parseFloat(l);return l.charAt(l.length-1)==="%"?Math.round(c*2.55):c}var No=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});No.forEach(function(l,c){No.set(l,Bv(c))});function Sr(l){return typeof l=="function"?l:function(){return l}}t.functor=Sr,t.xhr=Xc(je);function Xc(l){return function(c,p,m){return arguments.length===2&&typeof p=="function"&&(m=p,p=null),Ds(c,p,l,m)}}function Ds(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(!$&&ub(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($v(m))}function $v(l){return l.length===1?function(c,p){l(c==null?p:null)}:l}function ub(l){var c=l.responseType;return c&&c!=="text"?l.response:l.responseText}t.dsv=function(l,c){var p=new RegExp('["'+l+`
915
- ]`),m=l.charCodeAt(0);function y(B,$,W){arguments.length<3&&(W=$,$=null);var G=Ds(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(`
916
- `)},y.formatRows=function(B){return B.map(T).join(`
917
- `)};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 Fs,il,yi,Ns,bi=this[Fe(this,"requestAnimationFrame")]||function(l){setTimeout(l,17)};t.timer=function(){Lo.apply(this,arguments)};function Lo(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 il?il.n=x:Fs=x,il=x,yi||(Ns=clearTimeout(Ns),yi=1,bi(Bo)),x}function Bo(){var l=Ea(),c=Ls()-l;c>24?(isFinite(c)&&(clearTimeout(Ns),Ns=setTimeout(Bo,c)),yi=0):(yi=1,bi(Bo))}t.timer.flush=function(){Ea(),Ls()};function Ea(){for(var l=Date.now(),c=Fs;c;)l>=c.t&&c.c(l-c.t)&&(c.c=null),c=c.n;return l}function Ls(){for(var l,c=Fs,p=1/0;c;)c.c?(c.t<p&&(p=c.t),c=(l=c).n):c=l?l.n=c.n:Fs=c.n;return il=l,p}t.round=function(l,c){return c?Math.round(l*(c=Math.pow(10,c)))/c:Math.round(l)},t.geom={};function Ji(l){return l[0]}function ea(l){return l[1]}t.geom.hull=function(l){var c=Ji,p=ea;if(arguments.length)return m(l);function m(y){if(y.length<3)return[];var x=Sr(c),O=Sr(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(zv),T=0;T<k;T++)$.push([B[T][0],-B[T][1]]);var W=al(B),G=al($),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 al(l){for(var c=l.length,p=[0,1],m=2,y=2;y<c;y++){for(;m>1&&ib(l[p[m-2]],l[p[m-1]],l[y])<=0;)--m;p[m++]=y}return p.slice(0,m)}function zv(l,c){return l[0]-c[0]||l[1]-c[1]}t.geom.polygon=function(l){return Rt(l,$o),l};var $o=t.geom.polygon.prototype=[];$o.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},$o.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]},$o.clip=function(l){for(var c,p=Uv(l),m=-1,y=this.length-Uv(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],Bs($,T,k)?(Bs(B,T,k)||l.push(Kc(B,$,T,k)),l.push($)):Bs(B,T,k)&&l.push(Kc(B,$,T,k)),B=$;p&&l.push(l[0]),T=k}return l};function Bs(l,c,p){return(p[0]-c[0])*(l[1]-c[1])<(p[1]-c[1])*(l[0]-c[0])}function Kc(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 Uv(l){var c=l[0],p=l[l.length-1];return!(c[0]-p[0]||c[1]-p[1])}var zo,Qa,Aa,ol=[],ul,Za,Ja=[];function Qc(){Us(this),this.edge=this.site=this.circle=null}function $s(l){var c=ol.pop()||new Qc;return c.site=l,c}function ll(l){wi(l),Aa.remove(l),ol.push(l),Us(l)}function Zc(l){var c=l.circle,p=c.x,m=c.cy,y={x:p,y:m},x=l.P,O=l.N,T=[l];ll(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),ll(k),k=x;T.unshift(k),wi(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),ll(B),B=O;T.push(B),wi(B);var $=T.length,W;for(W=1;W<$;++W)B=T[W],k=T[W-1],Uo(B.edge,k.site,B.site,y);k=T[0],B=T[$-1],B.edge=fl(k.site,B.site,null,y),eo(k),eo(B)}function jv(l){for(var c=l.x,p=l.y,m,y,x,O,T=Aa._;T;)if(x=Jc(T,p)-c,x>fr)T=T.L;else if(O=c-Wv(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=$s(l);if(Aa.insert(m,k),!(!m&&!y)){if(m===y){wi(m),y=$s(m.site),Aa.insert(k,y),k.edge=y.edge=fl(m.site,k.site),eo(m),eo(y);return}if(!y){k.edge=fl(m.site,k.site);return}wi(m),wi(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};Uo(y.edge,B,se,ie),k.edge=fl(B,l,null,ie),y.edge=fl(l,se,null,ie),eo(m),eo(y)}}function Jc(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 Wv(l,c){var p=l.N;if(p)return Jc(p,c);var m=l.site;return m.y===c?m.x:1/0}function ed(l){this.site=l,this.edges=[]}ed.prototype.prepare=function(){for(var l=this.edges,c=l.length,p;c--;)p=l[c].edge,(!p.b||!p.a)&&l.splice(c,1);return l.sort(td),l.length};function Gv(l){for(var c=l[0][0],p=l[1][0],m=l[0][1],y=l[1][1],x,O,T,k,B=Qa,$=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 zs(lb(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 td(l,c){return c.angle-l.angle}function qv(){Us(this),this.x=this.y=this.arc=this.site=this.cy=null}function eo(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>=-Ov)){var G=k*k+B*B,oe=$*$+K*K,se=(K*G-B*oe)/W,H=(k*oe-$*G)/W,K=H+T,re=Ja.pop()||new qv;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=Za._;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}Za.insert(fe,re),fe||(ul=re)}}}}function wi(l){var c=l.circle;c&&(c.P||(ul=c.N),Za.remove(c),Ja.push(c),Us(c),l.circle=null)}function rd(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 nd(l){for(var c=zo,p=rd(l[0][0],l[0][1],l[1][0],l[1][1]),m=c.length,y;m--;)y=c[m],(!sl(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 sl(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 Hv(l,c){this.l=l,this.r=c,this.a=this.b=null}function fl(l,c,p,m){var y=new Hv(l,c);return zo.push(y),p&&Uo(y,l,c,p),m&&Uo(y,c,l,m),Qa[l.i].edges.push(new zs(y,l,c)),Qa[c.i].edges.push(new zs(y,c,l)),y}function lb(l,c,p){var m=new Hv(l,null);return m.a=c,m.b=p,zo.push(m),m}function Uo(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 zs(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)}zs.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 id(){this._=null}function Us(l){l.U=l.C=l.L=l.R=l.P=l.N=null}id.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=js(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&&(to(this,p),l=p,p=l.U),p.C=!1,m.C=!0,cl(this,m))):(y=m.L,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.L&&(cl(this,p),l=p,p=l.U),p.C=!1,m.C=!0,to(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=js(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,to(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,cl(this,p),p=c.R),p.C=c.C,c.C=p.R.C=!1,to(this,c),l=this._;break}}else if(p=c.L,p.C&&(p.C=!1,c.C=!0,cl(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,to(this,p),p=c.L),p.C=c.C,c.C=p.L.C=!1,cl(this,c),l=this._;break}p.C=!0,l=c,c=c.U}while(!l.C);l&&(l.C=!1)}}};function to(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 cl(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 js(l){for(;l.L;)l=l.L;return l}function Ws(l,c){var p=l.sort(Vv).pop(),m,y,x;for(zo=[],Qa=new Array(l.length),Aa=new id,Za=new id;;)if(x=ul,p&&(!x||p.y<x.y||p.y===x.y&&p.x<x.x))(p.x!==m||p.y!==y)&&(Qa[p.i]=new ed(p),jv(p),m=p.x,y=p.y),p=l.pop();else if(x)Zc(x.arc);else break;c&&(nd(c),Gv(c));var O={cells:Qa,edges:zo};return Aa=Za=zo=Qa=null,O}function Vv(l,c){return c.y-l.y||c.x-l.x}t.geom.voronoi=function(l){var c=Ji,p=ea,m=c,y=p,x=jo;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 Ws(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 Ws(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 Ws(T(k)).cells.forEach(function($,W){for(var G=$.site,oe=$.edges.sort(td),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&&sb(G,K,fe)<0&&B.push([k[W],k[K.i],k[fe.i]])}),B},O.x=function(k){return arguments.length?(m=Sr(c=k),O):c},O.y=function(k){return arguments.length?(y=Sr(p=k),O):p},O.clipExtent=function(k){return arguments.length?(x=k==null?jo:k,O):x===jo?null:x},O.size=function(k){return arguments.length?O.clipExtent(k&&[[0,0],k]):x===jo?null:x&&x[1]},O};var jo=[[-1e6,-1e6],[1e6,1e6]];function sb(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=Ji,O=ea,T;if(T=arguments.length)return x=Gs,O=fb,T===3&&(y=p,m=c,p=c=0),k(l);function k(B){var $,W=Sr(x),G=Sr(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,Kt,er){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,Kt,er);else{var Hr=Et.point;Et.x=Et.y=Et.point=null,wt(Et,Hr,dr,kr,br,lt,Kt,er),wt(Et,Vt,cr,Lr,br,lt,Kt,er)}else Et.x=cr,Et.y=Lr,Et.point=Vt}else wt(Et,Vt,cr,Lr,br,lt,Kt,er)}function wt(Et,Vt,cr,Lr,br,lt,Kt,er){var dr=(br+Kt)*.5,kr=(lt+er)*.5,Hr=cr>=dr,en=Lr>=kr,_n=en<<1|Hr;Et.leaf=!1,Et=Et.nodes[_n]||(Et.nodes[_n]=Yv()),Hr?br=dr:Kt=dr,en?lt=kr:er=kr,ct(Et,Vt,cr,Lr,br,lt,Kt,er)}var Xt=Yv();if(Xt.add=function(Et){ct(Xt,Et,+W(Et,++H),+G(Et,H),re,fe,ce,ie)},Xt.visit=function(Et){dl(Et,Xt,re,fe,ce,ie)},Xt.find=function(Et){return cb(Xt,Et[0],Et[1],re,fe,ce,ie)},H=-1,c==null){for(;++H<K;)ct(Xt,B[H],oe[H],se[H],re,fe,ce,ie);--H}else B.forEach(Xt.add);return oe=se=B=$=null,Xt}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 Gs(l){return l.x}function fb(l){return l.y}function Yv(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function dl(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]&&dl(l,k[0],p,m,O,T),k[1]&&dl(l,k[1],O,m,y,T),k[2]&&dl(l,k[2],p,T,O,x),k[3]&&dl(l,k[3],O,T,y,x)}}function cb(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=ad;function ad(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"#"+Fo(Math.round(p+x*k))+Fo(Math.round(m+O*k))+Fo(Math.round(y+T*k))}}t.interpolateObject=Xv;function Xv(l,c){var p={},m={},y;for(y in l)y in c?p[y]=Mi(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=ta;function ta(l,c){return l=+l,c=+c,function(p){return l*(1-p)+c*p}}t.interpolateString=od;function od(l,c){var p=ro.lastIndex=ud.lastIndex=0,m,y,x,O=-1,T=[],k=[];for(l=l+"",c=c+"";(m=ro.exec(l))&&(y=ud.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:ta(m,y)})),p=ud.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 ro=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ud=new RegExp(ro.source,"g");t.interpolate=Mi;function Mi(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"?No.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?ad:od:c instanceof xa?ad:Array.isArray(c)?Un:p==="object"&&isNaN(c)?Xv:ta)(l,c)}],t.interpolateArray=Un;function Un(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(Mi(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 no=function(){return je},Kv=t.map({linear:no,poly:un,quad:function(){return Jv},cubic:function(){return db},sin:function(){return eg},exp:function(){return tg},circle:function(){return io},elastic:rg,back:ng,bounce:function(){return pb}}),Qv=t.map({in:je,out:ld,"in-out":sd,"out-in":function(l){return sd(ld(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=Kv.get(p)||no,m=Qv.get(m)||je,Zv(m(p.apply(null,r.call(arguments,1))))};function Zv(l){return function(c){return c<=0?0:c>=1?1:l(c)}}function ld(l){return function(c){return 1-l(1-c)}}function sd(l){return function(c){return .5*(c<.5?l(2*c):2-l(2-2*c))}}function Jv(l){return l*l}function db(l){return l*l*l}function Wo(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 un(l){return function(c){return Math.pow(c,l)}}function eg(l){return 1-Math.cos(l*ki)}function tg(l){return Math.pow(2,10*(l-1))}function io(l){return 1-Math.sqrt(1-l*l)}function rg(l,c){var p;return arguments.length<2&&(c=.45),arguments.length?p=c/Do*Math.asin(1/l):(l=1,p=c/4),function(m){return 1+l*Math.pow(2,-10*m)*Math.sin((m-p)*Do/c)}}function ng(l){return l||(l=1.70158),function(c){return c*c*((l+1)*c-l)}}function pb(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=hb;function hb(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 nl(p+x*k,m+O*k,y+T*k)+""}}t.interpolateHsl=vb;function vb(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 Ps(p+x*k,m+O*k,y+T*k)+""}}t.interpolateLab=gb;function gb(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 Nv(p+x*k,m+O*k,y+T*k)+""}}t.interpolateRound=qs;function qs(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 fd(m?m.matrix:mb)})(l)};function fd(l){var c=[l.a,l.b],p=[l.c,l.d],m=cd(c),y=ig(c,p),x=cd(ag(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]))*Ju,this.translate=[l.e,l.f],this.scale=[m,x],this.skew=x?Math.atan2(y,x)*Ju:0}fd.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function ig(l,c){return l[0]*c[0]+l[1]*c[1]}function cd(l){var c=Math.sqrt(ig(l,l));return c&&(l[0]/=c,l[1]/=c),c}function ag(l,c,p){return l[0]+=p*c[0],l[1]+=p*c[1],l}var mb={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=dd;function ra(l){return l.length?l.pop()+",":""}function yb(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:ta(l[0],c[0])},{i:y-2,x:ta(l[1],c[1])})}else(c[0]||c[1])&&p.push("translate("+c+")")}function Ca(l,c,p,m){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),m.push({i:p.push(ra(p)+"rotate(",null,")")-2,x:ta(l,c)})):c&&p.push(ra(p)+"rotate("+c+")")}function Hs(l,c,p,m){l!==c?m.push({i:p.push(ra(p)+"skewX(",null,")")-2,x:ta(l,c)}):c&&p.push(ra(p)+"skewX("+c+")")}function og(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push(ra(p)+"scale(",null,",",null,")");m.push({i:y-4,x:ta(l[0],c[0])},{i:y-2,x:ta(l[1],c[1])})}else(c[0]!==1||c[1]!==1)&&p.push(ra(p)+"scale("+c+")")}function dd(l,c){var p=[],m=[];return l=t.transform(l),c=t.transform(c),yb(l.translate,c.translate,p,m),Ca(l.rotate,c.rotate,p,m),Hs(l.skew,c.skew,p,m),og(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 ug(l,c){return c=(c-=l=+l)||1/c,function(p){return(p-l)/c}}function lg(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(sg(l[p]));return c}};function sg(l){for(var c=l.source,p=l.target,m=fg(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 pd(l){for(var c=[],p=l.parent;p!=null;)c.push(l),l=p,p=p.parent;return c.push(l),c}function fg(l,c){if(l===c)return l;for(var p=pd(l),m=pd(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(Xt,Et){return O(G[Xt],G[Et])}),T&&se.forEach(function(Xt,Et){Xt.sort(function(Vt,cr){return T(m[Et][Vt],m[Et][cr])})}),H=(Do-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=na,k=hd,B=-30,$=Go,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,Xt=Xe-Ye,Et=ct*ct+wt*wt;if(Xt*Xt/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,Xt,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,(Xt=Vt*Vt+cr*cr)&&(Xt=x*K[ut]*((Xt=Math.sqrt(Xt))-H[ut])/Xt,Vt*=Xt,cr*=Xt,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(hg(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=Lo(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=Xt("x",ut)),isNaN(wt.y)&&(wt.y=Xt("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 Xt(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,Kt;++br<lt;)if(!isNaN(Kt=Lr[br][Et]))return Kt;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",cg).on("drag.force",ce).on("dragend.force",dg)),!arguments.length)return y;this.on("mouseover.force",xi).on("mouseout.force",pg).call(y)};function ce(ie){ie.px=t.event.x,ie.py=t.event.y,l.resume()}return t.rebind(l,c,"on")};function cg(l){l.fixed|=2}function dg(l){l.fixed&=-7}function xi(l){l.fixed|=4,l.px=l.x,l.py=l.y}function pg(l){l.fixed&=-5}function hg(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&&(hg(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 na=20,hd=1,Go=1/0;t.layout.hierarchy=function(){var l=bb,c=vg,p=gg;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 _i(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&&(Ho(y,function(x){x.children&&(x.value=0)}),_i(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 qo(l,c){return t.rebind(l,c,"sort","children","value"),l.nodes=l,l.links=wb,l}function Ho(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 _i(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 vg(l){return l.children}function gg(l){return l.value}function bb(l,c){return c.value-l.value}function wb(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},qo(y,l)},t.layout.pie=function(){var l=Number,c=mg,p=0,m=Do,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===mg?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 mg={};t.layout.stack=function(){var l=je,c=gd,p=md,m=Sb,y=xb,x=_b;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:vd.get(T)||gd,O):c},O.offset=function(T){return arguments.length?(p=typeof T=="function"?T:Vs.get(T)||md,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 xb(l){return l.x}function _b(l){return l.y}function Sb(l,c,p){l.y0=c,l.y=p}var vd=t.map({"inside-out":function(l){var c=l.length,p,m,y=l.map(yg),x=l.map(Ys),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:gd}),Vs=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:md});function gd(l){return t.range(l.length)}function md(l){for(var c=-1,p=l[0].length,m=[];++c<p;)m[c]=0;return m}function yg(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 Ys(l){return l.reduce(yd,0)}function yd(l,c){return l+c[1]}t.layout.histogram=function(){var l=!0,c=Number,p=Ab,m=Eb;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=Sr(x),y):p},y.bins=function(x){return arguments.length?(m=typeof x=="number"?function(O){return bd(O,x)}:Sr(x),y):m},y.frequency=function(x){return arguments.length?(l=!!x,y):l},y};function Eb(l,c){return bd(l,Math.ceil(Math.log(c.length)/Math.LN2+1))}function bd(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(Cb),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,_i(k,function(oe){oe.r=+W(oe.value)}),_i(k,xd),c){var G=c*(m?1:Math.max(2*k.r/B,2*k.r/$))/2;_i(k,function(oe){oe.r+=G}),_i(k,xd),_i(k,function(oe){oe.r-=G})}return xg(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},qo(y,l)};function Cb(l,c){return l.value-c.value}function wd(l,c){var p=l._pack_next;l._pack_next=c,c._pack_prev=l,c._pack_next=p,p._pack_prev=c}function bg(l,c){l._pack_next=c,c._pack_prev=l}function wg(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 xd(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(Tb),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],_g(O,T,k),oe(k),wd(O,k),O._pack_prev=k,wd(k,T),T=O._pack_next,B=3;B<G;B++){_g(O,T,k=c[B]);var se=0,H=1,K=1;for($=T._pack_next;$!==T;$=$._pack_next,H++)if(wg($,k)){se=1;break}if(se==1)for(W=O._pack_prev;W!==$._pack_prev&&!wg(W,k);W=W._pack_prev,K++);se?(H<K||H==K&&T.r<O.r?bg(O,T=$):bg(O=W,T),B--):(wd(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(Rb)}function Tb(l){l._pack_next=l._pack_prev=l}function Rb(l){delete l._pack_next,delete l._pack_prev}function xg(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;)xg(y[x],c,p,m)}function _g(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=Sg,p=[1,1],m=null;function y($,W){var G=l.call(this,$,W),oe=G[0],se=x(oe);if(_i(se,O),se.parent.m=-se.z,Ho(se,T),m)Ho(oe,B);else{var H=oe,K=oe,re=oe;Ho(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);Ho(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){Ib($);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=Sd(H),oe=_d(oe),H&&oe;)K=_d(K),se=Sd(se),se.a=$,$e=H.z+ce-oe.z-re+c(H._,oe._),$e>0&&(Ob(Di(H,$,G),$,$e),re+=$e,fe+=$e),ce+=H.m,re+=oe.m,ie+=K.m,fe+=se.m;H&&!Sd(se)&&(se.t=H,se.m+=ce-fe),oe&&!_d(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},qo(y,l)};function Sg(l,c){return l.parent==c.parent?1:2}function _d(l){var c=l.children;return c.length?c[0]:l.t}function Sd(l){var c=l.children,p;return(p=c.length)?c[p-1]:l.t}function Ob(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 Ib(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 Di(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=Sg,p=[1,1],m=!1;function y(x,O){var T=l.call(this,x,O),k=T[0],B,$=0;_i(k,function(H){var K=H.children;K&&K.length?(H.x=Pb(K),H.y=Eg(K)):(H.x=B?$+=c(H,B):0,H.y=0,B=H)});var W=Ag(k),G=Cg(k),oe=W.x-c(W,G)/2,se=G.x+c(G,W)/2;return _i(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},qo(y,l)};function Eg(l){return 1+t.max(l,function(c){return c.y})}function Pb(l){return l.reduce(function(c,p){return c+p.x},0)/l.length}function Ag(l){var c=l.children;return c&&c.length?Ag(c[0]):l}function Cg(l){var c=l.children,p;return c&&(p=c.length)?Cg(c[p-1]):l}t.layout.treemap=function(){var l=t.layout.hierarchy(),c=Math.round,p=[1,1],m=null,y=Ed,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?Ed(ce):Tg(ce,typeof ie=="number"?[ie,ie,ie,ie]:ie)}function re(ce){return Tg(ce,H)}var fe;return y=(m=H)==null?Ed:(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},qo(se,l)};function Ed(l){return{x:l.x,y:l.y,dx:l.dx,dy:l.dy}}function Tg(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 Xs(l){var c=l[0],p=l[l.length-1];return c<p?[c,p]:[p,c]}function Ks(l){return l.rangeExtent?l.rangeExtent():Xs(l.range())}function kb(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 Kr(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 ao(l){return l?{floor:function(c){return Math.floor(c/l)*l},ceil:function(c){return Math.ceil(c/l)*l}}:Vo}var Vo={floor:je,ceil:je};function Mb(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 oo([0,1],[0,1],Mi,!1)};function oo(l,c,p,m){var y,x;function O(){var k=Math.min(l.length,c.length)>2?Mb:kb,B=m?lg:ug;return y=k(l,c,B,p),x=k(c,l,B,Mi),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(qs)},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 hl(l,k)},T.tickFormat=function(k,B){return d3_scale_linearTickFormat(l,k,B)},T.nice=function(k){return uo(l,k),O()},T.copy=function(){return oo(l,c,p,m)},O()}function Ad(l,c){return t.rebind(l,c,"range","rangeRound","interpolate","clamp")}function uo(l,c){return Kr(l,ao(pl(l,c)[2])),Kr(l,ao(pl(l,c)[2])),l}function pl(l,c){c==null&&(c=10);var p=Xs(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 hl(l,c){return t.range.apply(t,pl(l,c))}t.scale.log=function(){return Qs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Qs(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=Kr(m.map(y),p?Math:Cd);return l.domain(T),m=T.map(x),O},O.ticks=function(){var T=Xs(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 Qs(l.copy(),c,p,m)},Ad(O,l)}var Cd={floor:function(l){return-Math.ceil(-l)},ceil:function(l){return-Math.floor(-l)}};t.scale.pow=function(){return Zs(t.scale.linear(),1,[0,1])};function Zs(l,c,p){var m=lo(c),y=lo(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 hl(p,O)},x.tickFormat=function(O,T){return d3_scale_linearTickFormat(p,O,T)},x.nice=function(O){return x.domain(uo(p,O))},x.exponent=function(O){return arguments.length?(m=lo(c=O),y=lo(1/c),l.domain(p.map(m)),x):c},x.copy=function(){return Zs(l.copy(),c,p)},Ad(x,l)}function lo(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 Td([],{t:"range",a:[[]]})};function Td(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 Xs(c.a[0])},x.copy=function(){return Td(l,c)},x.domain(l)}t.scale.category10=function(){return t.scale.ordinal().range(Rg)},t.scale.category20=function(){return t.scale.ordinal().range(Og)},t.scale.category20b=function(){return t.scale.ordinal().range(Ig)},t.scale.category20c=function(){return t.scale.ordinal().range(Pg)};var Rg=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ks),Og=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ks),Ig=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ks),Pg=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ks);t.scale.quantile=function(){return Js([],[])};function Js(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 Js(l,c)},m()}t.scale.quantize=function(){return ef(0,1,[0,1])};function ef(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 ef(l,c,p)},O()}t.scale.threshold=function(){return Rd([.5],[0,1])};function Rd(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 Rd(l,c)},p}t.scale.identity=function(){return Od([0,1])};function Od(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 hl(l,p)},c.tickFormat=function(p,m){return d3_scale_linearTickFormat(l,p,m)},c.copy=function(){return Od(l)},c}t.svg={};function kg(){return 0}t.svg.arc=function(){var l=Id,c=Mg,p=kg,m=vl,y=Pd,x=tf,O=kd;function T(){var B=Math.max(0,+l.apply(this,arguments)),$=Math.max(0,+c.apply(this,arguments)),W=y.apply(this,arguments)-ki,G=x.apply(this,arguments)-ki,oe=Math.abs(G-W),se=W>G?0:1;if($<B&&(H=$,$=B,B=H),oe>=Iv)return k($,se)+(B?k(B,1-se):"")+"Z";var H,K,re,fe,ce=0,ie=0,$e,Ye,ut,Xe,ct,wt,Xt,Et,Vt=[];if((fe=(+O.apply(this,arguments)||0)/2)&&(re=m===vl?Math.sqrt(B*B+$*$):+m.apply(this,arguments),se||(ie*=-1),$&&(ie=kv(re/$*Math.sin(fe))),B&&(ce=kv(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)<=Zi?0:1;if(ie&&gl($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),Xt=B*Math.cos(W+ce),Et=B*Math.sin(W+ce);var br=Math.abs(W-G+2*ce)<=Zi?0:1;if(ce&&gl(ct,wt,Xt,Et)===1-se^br){var lt=(W+G)/2;ct=B*Math.cos(lt),wt=B*Math.sin(lt),Xt=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 Kt=H,er=H;if(oe<Zi){var dr=Xt==null?[ct,wt]:ut==null?[$e,Ye]:Kc([$e,Ye],[Xt,Et],[ut,Xe],[ct,wt]),kr=$e-dr[0],Hr=Ye-dr[1],en=ut-dr[0],_n=Xe-dr[1],kn=1/Math.sin(Math.acos((kr*en+Hr*_n)/(Math.sqrt(kr*kr+Hr*Hr)*Math.sqrt(en*en+_n*_n)))/2),pn=Math.sqrt(dr[0]*dr[0]+dr[1]*dr[1]);er=Math.min(H,(B-pn)/(kn-1)),Kt=Math.min(H,($-pn)/(kn+1))}if(ut!=null){var jn=Yo(Xt==null?[ct,wt]:[Xt,Et],[$e,Ye],$,Kt,se),F=Yo([ut,Xe],[ct,wt],$,Kt,se);H===Kt?Vt.push("M",jn[0],"A",Kt,",",Kt," 0 0,",K," ",jn[1],"A",$,",",$," 0 ",1-se^gl(jn[1][0],jn[1][1],F[1][0],F[1][1]),",",se," ",F[1],"A",Kt,",",Kt," 0 0,",K," ",F[0]):Vt.push("M",jn[0],"A",Kt,",",Kt," 0 1,",K," ",F[0])}else Vt.push("M",$e,",",Ye);if(Xt!=null){var V=Yo([$e,Ye],[Xt,Et],B,-er,se),J=Yo([ct,wt],ut==null?[$e,Ye]:[ut,Xe],B,-er,se);H===er?Vt.push("L",J[0],"A",er,",",er," 0 0,",K," ",J[1],"A",B,",",B," 0 ",se^gl(J[1][0],J[1][1],V[1][0],V[1][1]),",",1-se," ",V[1],"A",er,",",er," 0 0,",K," ",V[0]):Vt.push("L",J[0],"A",er,",",er," 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),Xt!=null&&Vt.push("A",B,",",B," 0 ",br,",",1-se," ",Xt,",",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=Sr(B),T):l},T.outerRadius=function(B){return arguments.length?(c=Sr(B),T):c},T.cornerRadius=function(B){return arguments.length?(p=Sr(B),T):p},T.padRadius=function(B){return arguments.length?(m=B==vl?vl:Sr(B),T):m},T.startAngle=function(B){return arguments.length?(y=Sr(B),T):y},T.endAngle=function(B){return arguments.length?(x=Sr(B),T):x},T.padAngle=function(B){return arguments.length?(O=Sr(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-ki;return[Math.cos($)*B,Math.sin($)*B]},T};var vl="auto";function Id(l){return l.innerRadius}function Mg(l){return l.outerRadius}function Pd(l){return l.startAngle}function tf(l){return l.endAngle}function kd(l){return l&&l.padAngle}function gl(l,c,p,m){return(l-p)*c-(c-m)*l>0?0:1}function Yo(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,Xt=ut-H,Et=Xe-se,Vt=ct-H;return wt*wt+Xt*Xt>Et*Et+Vt*Vt&&(Ye=Xe,ut=ct),[[Ye-k,ut-B],[Ye*p/ce,ut*p/ce]]}function Md(){return!0}function Dd(l){var c=Ji,p=ea,m=Md,y=ai,x=y.key,O=.7;function T(k){var B=[],$=[],W=-1,G=k.length,oe,se=Sr(c),H=Sr(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=ml.get(k)||ai).key,T):x},T.tension=function(k){return arguments.length?(O=k,T):O},T}t.svg.line=function(){return Dd(je)};var ml=t.map({linear:ai,"linear-closed":Fd,step:Nd,"step-before":yl,"step-after":so,basis:bl,"basis-open":nf,"basis-closed":Xo,bundle:Ko,cardinal:ia,"cardinal-open":Dg,"cardinal-closed":rf,monotone:Db});ml.forEach(function(l,c){c.key=l,c.closed=/-closed$/.test(l)});function ai(l){return l.length>1?l.join("L"):l+"Z"}function Fd(l){return l.join("L")+"Z"}function Nd(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 yl(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 so(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 Dg(l,c){return l.length<4?ai(l):l[1]+fo(l.slice(1,-1),Ta(l,c))}function rf(l,c){return l.length<3?Fd(l):l[0]+fo((l.push(l[0]),l),Ta([l[l.length-2]].concat(l,[l[1]]),c))}function ia(l,c){return l.length<3?ai(l):l[0]+fo(l,Ta(l,c))}function fo(l,c){if(c.length<1||l.length!=c.length&&l.length!=c.length+2)return ai(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 Ta(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 bl(l){if(l.length<3)return ai(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",dn(Si,O),",",dn(Si,T)];for(l.push(l[p-1]);++c<=p;)m=l[c],O.shift(),O.push(m[0]),T.shift(),T.push(m[1]),wl(k,O,T);return l.pop(),k.push("L",m),k.join("")}function nf(l){if(l.length<4)return ai(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(dn(Si,x)+","+dn(Si,O)),--p;++p<m;)y=l[p],x.shift(),x.push(y[0]),O.shift(),O.push(y[1]),wl(c,x,O);return c.join("")}function Xo(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=[dn(Si,O),",",dn(Si,T)],--p;++p<y;)x=l[p%m],O.shift(),O.push(x[0]),T.shift(),T.push(x[1]),wl(c,O,T);return c.join("")}function Ko(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 bl(l)}function dn(l,c){return l[0]*c[0]+l[1]*c[1]+l[2]*c[2]+l[3]*c[3]}var af=[0,2/3,1/3,0],of=[0,1/3,2/3,0],Si=[0,1/6,2/3,1/6];function wl(l,c,p){l.push("C",dn(af,c),",",dn(af,p),",",dn(of,c),",",dn(of,p),",",dn(Si,c),",",dn(Si,p))}function xl(l,c){return(c[1]-l[1])/(c[0]-l[0])}function Qo(l){for(var c=0,p=l.length-1,m=[],y=l[0],x=l[1],O=m[0]=xl(y,x);++c<p;)m[c]=(O+(O=xl(y=x,x=l[c+1])))/2;return m[c]=O,m}function Zo(l){for(var c=[],p,m,y,x,O=Qo(l),T=-1,k=l.length-1;++T<k;)p=xl(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 Db(l){return l.length<3?ai(l):l[0]+fo(l,Zo(l))}t.svg.line.radial=function(){var l=Dd(Fg);return l.radius=l.x,delete l.x,l.angle=l.y,delete l.y,l};function Fg(l){for(var c,p=-1,m=l.length,y,x;++p<m;)c=l[p],y=c[0],x=c[1]-ki,c[0]=y*Math.cos(x),c[1]=y*Math.sin(x);return l}function Ld(l){var c=Ji,p=Ji,m=0,y=ea,x=Md,O=ai,T=O.key,k=O,B="L",$=.7;function W(G){var oe=[],se=[],H=[],K=-1,re=G.length,fe,ce=Sr(c),ie=Sr(m),$e=c===p?function(){return ut}:Sr(p),Ye=m===y?function(){return Xe}:Sr(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=ml.get(G)||ai).key,k=O.reverse||O,B=O.closed?"M":"L",W):T},W.tension=function(G){return arguments.length?($=G,W):$},W}yl.reverse=so,so.reverse=yl,t.svg.area=function(){return Ld(je)},t.svg.area.radial=function(){var l=Ld(Fg);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 Bd(l){return l.source}function $d(l){return l.target}t.svg.chord=function(){var l=Bd,c=$d,p=Fb,m=Pd,y=tf;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)-ki,re=y.call($,se,oe)-ki;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>Zi)+",1 "+W}function B($,W,G,oe){return"Q 0,0 "+oe}return x.radius=function($){return arguments.length?(p=Sr($),x):p},x.source=function($){return arguments.length?(l=Sr($),x):l},x.target=function($){return arguments.length?(c=Sr($),x):c},x.startAngle=function($){return arguments.length?(m=Sr($),x):m},x.endAngle=function($){return arguments.length?(y=Sr($),x):y},x};function Fb(l){return l.radius}t.svg.diagonal=function(){var l=Bd,c=$d,p=co;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=Sr(y),m):l},m.target=function(y){return arguments.length?(c=Sr(y),m):c},m.projection=function(y){return arguments.length?(p=y,m):p},m};function co(l){return[l.x,l.y]}t.svg.diagonal.radial=function(){var l=t.svg.diagonal(),c=co,p=l.projection;return l.projection=function(m){return arguments.length?p(zd(c=m)):c},l};function zd(l){return function(){var c=l.apply(this,arguments),p=c[0],m=c[1]-ki;return[p*Math.cos(m),p*Math.sin(m)]}}t.svg.symbol=function(){var l=Lb,c=Nb;function p(m,y){return(Lg.get(l.call(this,m,y))||Ng)(c.call(this,m,y))}return p.type=function(m){return arguments.length?(l=Sr(m),p):l},p.size=function(m){return arguments.length?(c=Sr(m),p):c},p};function Nb(){return 64}function Lb(){return"circle"}function Ng(l){var c=Math.sqrt(l/Zi);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var Lg=t.map({circle:Ng,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*Bg)),p=c*Bg;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/uf),p=c*uf/2;return"M0,"+p+"L"+c+","+-p+" "+-c+","+-p+"Z"},"triangle-up":function(l){var c=Math.sqrt(l/uf),p=c*uf/2;return"M0,"+-p+"L"+c+","+p+" "+-c+","+p+"Z"}});t.svg.symbolTypes=Lg.keys();var uf=Math.sqrt(3),Bg=Math.tan(30*Pv);_e.transition=function(l){for(var c=aa||++sf,p=Sl(l),m=[],y,x,O=Jo||{time:Date.now(),ease:Wo,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[$])&&eu(x,$,p,c,O),y.push(x)}return _l(m,p,c)},_e.interrupt=function(l){return this.each(l==null?lf:$g(Sl(l)))};var lf=$g(Sl());function $g(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 _l(l,c,p){return Rt(l,qr),l.namespace=c,l.id=p,l}var qr=[],sf=0,aa,Jo;qr.call=_e.call,qr.empty=_e.empty,qr.node=_e.node,qr.size=_e.size,t.transition=function(l,c){return l&&l.transition?aa?l.transition(c):l:t.selection().transition(l)},t.transition.prototype=qr,qr.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__),eu(x,$,p,c,O[p][c]),y.push(x)):y.push(null)}return _l(m,p,c)},qr.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])&&eu(T,se,p,c,k),y.push(T)}return _l(m,p,c)},qr.filter=function(l){var c=[],p,m,y;typeof l!="function"&&(l=ba(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 _l(c,this.namespace,this.id)},qr.tween=function(l,c){var p=this.id,m=this.namespace;return arguments.length<2?this.node()[m][p].tween.get(l):Pn(this,c==null?function(y){y[m][p].tween.remove(l)}:function(y){y[m][p].tween.set(l,c)})};function ff(l,c,p,m){var y=l.id,x=l.namespace;return Pn(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)}))}qr.attr=function(l,c){if(arguments.length<2){for(c in l)this.attr(c,l[c]);return this}var p=l=="transform"?dd:Mi,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 ff(this,"attr."+l,c,m.local?T:O)},qr.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)},qr.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=Mi(T,O),function(B){this.style.setProperty(l,k(B),p)})})}return ff(this,"style."+l,c,x)},qr.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)},qr.text=function(l){return ff(this,"text",l,Ud)};function Ud(l){return l==null&&(l=""),function(){this.textContent=l}}qr.remove=function(){var l=this.namespace;return this.each("end.transition",function(){var c;this[l].count<2&&(c=this.parentNode)&&c.removeChild(this)})},qr.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)),Pn(this,function(m){m[p][c].ease=l}))},qr.delay=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].delay:Pn(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}))},qr.duration=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].duration:Pn(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}))},qr.each=function(l,c){var p=this.id,m=this.namespace;if(arguments.length<2){var y=Jo,x=aa;try{aa=p,Pn(this,function(O,T,k){Jo=O[m][p],l.call(O,O.__data__,T,k)})}finally{Jo=y,aa=x}}else Pn(this,function(O){var T=O[m][p];(T.event||(T.event=t.dispatch("start","end","interrupt"))).on(l,c)});return this},qr.transition=function(){for(var l=this.id,c=++sf,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],eu(O,$,p,c,{time:T.time,ease:T.ease,delay:T.delay+T.duration,duration:T.duration})),y.push(O)}return _l(m,p,c)};function Sl(l){return l==null?"__transition__":"__transition_"+l+"__"}function eu(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,Lo(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=Lo(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=jd,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=Ks(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),Xt=K.select("text"),Et=fe.select("text"),Vt=c==="top"||c==="left"?-1:1,cr,Lr,br,lt;if(c==="bottom"||c==="top"?(ie=Gd,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=qd,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),Xt.attr(br,Vt*ce),ct.attr(Lr,0).attr(lt,Vt*p),Et.attr(cr,0).attr(br,Vt*ce),G.rangeBand){var Kt=G,er=Kt.rangeBand()/2;W=G=function(dr){return Kt(dr)+er}}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 Wd?B+"":jd,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 jd="bottom",Wd={top:1,right:1,bottom:1,left:1};function Gd(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate("+(isFinite(y)?y:p(m))+",0)"})}function qd(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=El[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 Hd[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=Ks(c),ie.attr("x",$e[0]).attr("width",$e[1]-$e[0]),G(ce)),p&&($e=Ks(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,aa?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=Un(m,re.x),ie=Un(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=Rs(H),Xe,ct=t.mouse(H),wt,Xt=t.select(o(H)).on("keydown.brush",cr).on("keyup.brush",Lr);if(t.event.changedTouches?Xt.on("touchmove.brush",br).on("touchend.brush",Kt):Xt.on("mousemove.brush",br).on("mouseup.brush",Kt),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 er=t.mouse(H),dr=!1;wt&&(er[0]+=wt[0],er[1]+=wt[1]),Ye||(t.event.altKey?(Xe||(Xe=[(m[0]+m[1])/2,(y[0]+y[1])/2]),ct[0]=m[+(er[0]<Xe[0])],ct[1]=y[+(er[1]<Xe[1])]):Xe=null),ie&&lt(er,c,0)&&(G(fe),dr=!0),$e&&lt(er,p,1)&&(oe(fe),dr=!0),dr&&(W(fe),re({type:"brush",mode:Ye?"move":"resize"}))}function lt(er,dr,kr){var Hr=Ks(dr),en=Hr[0],_n=Hr[1],kn=ct[kr],pn=kr?y:m,jn=pn[1]-pn[0],F,V;if(Ye&&(en-=kn,_n-=jn+kn),F=(kr?k:T)?Math.max(en,Math.min(_n,er[kr])):er[kr],Ye?V=(F+=kn)+jn:(Xe&&(kn=Math.max(en,Math.min(_n,2*Xe[kr]-F))),kn<F?(V=F,F=kn):V=kn),pn[0]!=F||pn[1]!=V)return kr?O=null:x=null,pn[0]=F,pn[1]=V,!0}function Kt(){br(),fe.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),t.select("body").style("cursor",null),Xt.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=El[!c<<1|!p],$):c},$.y=function(H){return arguments.length?(p=H,B=El[!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 Hd={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},El=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=Xc(function(l){return l.responseText}),t.json=function(l,c){return Ds(l,"application/json",Vd,c)};function Vd(l){return JSON.parse(l.responseText)}t.html=function(l,c){return Ds(l,"text/html",Yd,c)};function Yd(l){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(l.responseText)}t.xml=Xc(function(l){return l.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(Mre);var o_=new Date,u_=new Date;function xn(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 xn(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 o_.setTime(+a),u_.setTime(+o),e(o_),e(u_),Math.floor(r(o_,u_))},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 Sy=xn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Sy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Sy};const QI=Sy;var ZI=Sy.range,Ey=1e3,as=6e4,Ay=36e5,vB=864e5,gB=6048e5,mB=xn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ey)},function(e,t){return(t-e)/Ey},function(e){return e.getUTCSeconds()});const JI=mB;var eP=mB.range,yB=xn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ey)},function(e,t){e.setTime(+e+t*as)},function(e,t){return(t-e)/as},function(e){return e.getMinutes()});const Dre=yB;var Fre=yB.range,bB=xn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ey-e.getMinutes()*as)},function(e,t){e.setTime(+e+t*Ay)},function(e,t){return(t-e)/Ay},function(e){return e.getHours()});const Nre=bB;var Lre=bB.range,wB=xn(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())*as)/vB},function(e){return e.getDate()-1});const GC=wB;var Bre=wB.range;function _s(e){return xn(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())*as)/gB})}var Cy=_s(0),$h=_s(1),xB=_s(2),_B=_s(3),os=_s(4),SB=_s(5),EB=_s(6),tP=Cy.range,$re=$h.range,zre=xB.range,Ure=_B.range,jre=os.range,Wre=SB.range,Gre=EB.range,AB=xn(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 qre=AB;var Hre=AB.range,qC=xn(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()});qC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xn(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 yc=qC;var Vre=qC.range,CB=xn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*as)},function(e,t){return(t-e)/as},function(e){return e.getUTCMinutes()});const Yre=CB;var Xre=CB.range,TB=xn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ay)},function(e,t){return(t-e)/Ay},function(e){return e.getUTCHours()});const Kre=TB;var Qre=TB.range,RB=xn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/vB},function(e){return e.getUTCDate()-1});const HC=RB;var Zre=RB.range;function Ss(e){return xn(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)/gB})}var Ty=Ss(0),zh=Ss(1),OB=Ss(2),IB=Ss(3),us=Ss(4),PB=Ss(5),kB=Ss(6),rP=Ty.range,Jre=zh.range,ene=OB.range,tne=IB.range,rne=us.range,nne=PB.range,ine=kB.range,MB=xn(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 ane=MB;var one=MB.range,VC=xn(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()});VC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xn(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 bc=VC;var une=VC.range;const lne=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:xn,timeMillisecond:QI,timeMilliseconds:ZI,utcMillisecond:QI,utcMilliseconds:ZI,timeSecond:JI,timeSeconds:eP,utcSecond:JI,utcSeconds:eP,timeMinute:Dre,timeMinutes:Fre,timeHour:Nre,timeHours:Lre,timeDay:GC,timeDays:Bre,timeWeek:Cy,timeWeeks:tP,timeSunday:Cy,timeSundays:tP,timeMonday:$h,timeMondays:$re,timeTuesday:xB,timeTuesdays:zre,timeWednesday:_B,timeWednesdays:Ure,timeThursday:os,timeThursdays:jre,timeFriday:SB,timeFridays:Wre,timeSaturday:EB,timeSaturdays:Gre,timeMonth:qre,timeMonths:Hre,timeYear:yc,timeYears:Vre,utcMinute:Yre,utcMinutes:Xre,utcHour:Kre,utcHours:Qre,utcDay:HC,utcDays:Zre,utcWeek:Ty,utcWeeks:rP,utcSunday:Ty,utcSundays:rP,utcMonday:zh,utcMondays:Jre,utcTuesday:OB,utcTuesdays:ene,utcWednesday:IB,utcWednesdays:tne,utcThursday:us,utcThursdays:rne,utcFriday:PB,utcFridays:nne,utcSaturday:kB,utcSaturdays:ine,utcMonth:ane,utcMonths:one,utcYear:bc,utcYears:une},Symbol.toStringTag,{value:"Module"}));function l_(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 s_(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 hp(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function DB(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=vp(i),d=gp(i),v=vp(a),h=gp(a),g=vp(o),_=gp(o),A=vp(u),b=gp(u),w=vp(s),S=gp(s),E={a:me,A:Fe,b:qe,B:Ue,c:null,d:lP,e:lP,f:Pne,g:Une,G:Wne,H:Rne,I:One,j:Ine,L:FB,m:kne,M:Mne,p:be,q:ye,Q:cP,s:dP,S:Dne,u:Fne,U:Nne,V:Lne,w:Bne,W:$ne,x:null,X:null,y:zne,Y:jne,Z:Gne,"%":fP},R={a:Ke,A:We,b:Ze,B:st,c:null,d:sP,e:sP,f:Yne,g:iie,G:oie,H:qne,I:Hne,j:Vne,L:LB,m:Xne,M:Kne,p:Rt,q:kt,Q:cP,s:dP,S:Qne,u:Zne,U:Jne,V:eie,w:tie,W:rie,x:null,X:null,y:nie,Y:aie,Z:uie,"%":fP},M={a:ee,A:ue,b:pe,B:we,c:Ee,d:oP,e:oP,f:Ene,g:aP,G:iP,H:uP,I:uP,j:wne,L:Sne,m:bne,M:xne,p:L,q:yne,Q:Cne,s:Tne,S:_ne,u:pne,U:hne,V:vne,w:dne,W:gne,x:Je,X:je,y:aP,Y:iP,Z:mne,"%":Ane};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=nP[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=hp(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=s_(hp(_e.y,0,1)),I=te.getUTCDay(),te=I>4||I===0?zh.ceil(te):zh(te),te=HC.offset(te,(_e.V-1)*7),_e.y=te.getUTCFullYear(),_e.m=te.getUTCMonth(),_e.d=te.getUTCDate()+(_e.w+6)%7):(te=l_(hp(_e.y,0,1)),I=te.getDay(),te=I>4||I===0?$h.ceil(te):$h(te),te=GC.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?s_(hp(_e.y,0,1)).getUTCDay():l_(hp(_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,s_(_e)):l_(_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 nP?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 nP={"-":"",_:" ",0:"0"},In=/^\s*\d+/,sne=/^%/,fne=/[\\^$*+?|[\]().{}]/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 cne(e){return e.replace(fne,"\\$&")}function vp(e){return new RegExp("^(?:"+e.map(cne).join("|")+")","i")}function gp(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function dne(e,t,r){var n=In.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function pne(e,t,r){var n=In.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function hne(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function vne(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function gne(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function iP(e,t,r){var n=In.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function aP(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function mne(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 yne(e,t,r){var n=In.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function bne(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function oP(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function wne(e,t,r){var n=In.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function uP(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function xne(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function _ne(e,t,r){var n=In.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Sne(e,t,r){var n=In.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Ene(e,t,r){var n=In.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Ane(e,t,r){var n=sne.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Cne(e,t,r){var n=In.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Tne(e,t,r){var n=In.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function lP(e,t){return Tr(e.getDate(),t,2)}function Rne(e,t){return Tr(e.getHours(),t,2)}function One(e,t){return Tr(e.getHours()%12||12,t,2)}function Ine(e,t){return Tr(1+GC.count(yc(e),e),t,3)}function FB(e,t){return Tr(e.getMilliseconds(),t,3)}function Pne(e,t){return FB(e,t)+"000"}function kne(e,t){return Tr(e.getMonth()+1,t,2)}function Mne(e,t){return Tr(e.getMinutes(),t,2)}function Dne(e,t){return Tr(e.getSeconds(),t,2)}function Fne(e){var t=e.getDay();return t===0?7:t}function Nne(e,t){return Tr(Cy.count(yc(e)-1,e),t,2)}function NB(e){var t=e.getDay();return t>=4||t===0?os(e):os.ceil(e)}function Lne(e,t){return e=NB(e),Tr(os.count(yc(e),e)+(yc(e).getDay()===4),t,2)}function Bne(e){return e.getDay()}function $ne(e,t){return Tr($h.count(yc(e)-1,e),t,2)}function zne(e,t){return Tr(e.getFullYear()%100,t,2)}function Une(e,t){return e=NB(e),Tr(e.getFullYear()%100,t,2)}function jne(e,t){return Tr(e.getFullYear()%1e4,t,4)}function Wne(e,t){var r=e.getDay();return e=r>=4||r===0?os(e):os.ceil(e),Tr(e.getFullYear()%1e4,t,4)}function Gne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tr(t/60|0,"0",2)+Tr(t%60,"0",2)}function sP(e,t){return Tr(e.getUTCDate(),t,2)}function qne(e,t){return Tr(e.getUTCHours(),t,2)}function Hne(e,t){return Tr(e.getUTCHours()%12||12,t,2)}function Vne(e,t){return Tr(1+HC.count(bc(e),e),t,3)}function LB(e,t){return Tr(e.getUTCMilliseconds(),t,3)}function Yne(e,t){return LB(e,t)+"000"}function Xne(e,t){return Tr(e.getUTCMonth()+1,t,2)}function Kne(e,t){return Tr(e.getUTCMinutes(),t,2)}function Qne(e,t){return Tr(e.getUTCSeconds(),t,2)}function Zne(e){var t=e.getUTCDay();return t===0?7:t}function Jne(e,t){return Tr(Ty.count(bc(e)-1,e),t,2)}function BB(e){var t=e.getUTCDay();return t>=4||t===0?us(e):us.ceil(e)}function eie(e,t){return e=BB(e),Tr(us.count(bc(e),e)+(bc(e).getUTCDay()===4),t,2)}function tie(e){return e.getUTCDay()}function rie(e,t){return Tr(zh.count(bc(e)-1,e),t,2)}function nie(e,t){return Tr(e.getUTCFullYear()%100,t,2)}function iie(e,t){return e=BB(e),Tr(e.getUTCFullYear()%100,t,2)}function aie(e,t){return Tr(e.getUTCFullYear()%1e4,t,4)}function oie(e,t){var r=e.getUTCDay();return e=r>=4||r===0?us(e):us.ceil(e),Tr(e.getUTCFullYear()%1e4,t,4)}function uie(){return"+0000"}function fP(){return"%"}function cP(e){return+e}function dP(e){return Math.floor(+e/1e3)}var mf,$B,zB,YC,XC;UB({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 UB(e){return mf=DB(e),$B=mf.format,zB=mf.parse,YC=mf.utcFormat,XC=mf.utcParse,mf}var jB="%Y-%m-%dT%H:%M:%S.%LZ";function lie(e){return e.toISOString()}var sie=Date.prototype.toISOString?lie:YC(jB);const fie=sie;function cie(e){var t=new Date(e);return isNaN(t)?null:t}var die=+new Date("2000-01-01T00:00:00.000Z")?cie:XC(jB);const pie=die,hie=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:UB,get timeFormat(){return $B},get timeParse(){return zB},get utcFormat(){return YC},get utcParse(){return XC},timeFormatLocale:DB,isoFormat:fie,isoParse:pie},Symbol.toStringTag,{value:"Module"})),Zde=fs(hie);function vie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ry(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 wc(e){return e=Ry(Math.abs(e)),e?e[1]:NaN}function gie(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 mie(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var yie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oy(e){if(!(t=yie.exec(e)))throw new Error("invalid format: "+e);var t;return new B1({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]})}Oy.prototype=B1.prototype;function B1(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+""}B1.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 bie(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 WB;function wie(e,t){var r=Ry(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(WB=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")+Ry(e,Math.max(0,t+a-1))[0]}function pP(e,t){var r=Ry(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 hP={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:vie,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 pP(e*100,t)},r:pP,s:wie,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function vP(e){return e}var gP=Array.prototype.map,mP=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function GB(e){var t=e.grouping===void 0||e.thousands===void 0?vP:gie(gP.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?vP:mie(gP.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=Oy(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"):hP[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=hP[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=bie(ue)),me&&+ue==0&&_!=="+"&&(me=!1),pe=(me?_==="("?_:u:_==="-"||_==="("?"":_)+pe,we=(M==="s"?mP[8+WB/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=Oy(v),v.type="f",v)),_=Math.max(-8,Math.min(8,Math.floor(wc(h)/3)))*3,A=Math.pow(10,-_),b=mP[8+_/3];return function(w){return g(A*w)+b}}return{format:f,formatPrefix:d}}var Om,qB,HB;VB({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function VB(e){return Om=GB(e),qB=Om.format,HB=Om.formatPrefix,Om}function xie(e){return Math.max(0,-wc(Math.abs(e)))}function _ie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wc(t)/3)))*3-wc(Math.abs(e)))}function Sie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wc(t)-wc(e))+1}const Eie=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:VB,get format(){return qB},get formatPrefix(){return HB},formatLocale:GB,formatSpecifier:Oy,FormatSpecifier:B1,precisionFixed:xie,precisionPrefix:_ie,precisionRound:Sie},Symbol.toStringTag,{value:"Module"})),Jde=fs(Eie);var Aie=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},Cie=Aie,epe=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Cie(r))return!1}else if(t!=="number")return!1;return e-e<1},Tie={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,Zt,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?qt+(Zt-qt)*6*nr:nr<1/2?Zt:nr<2/3?qt+(Zt-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],Zt=[Ne,I,I,le,U,U][ze],nr=[U,U,Ne,I,I,le][ze];return{r:qt*255,g:Zt*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)})(Tie);var Rie=Oie;function Oie(){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 Iie=Pie;function Pie(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 kie=Mie;function Mie(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 YB=Die;function Die(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 Fie=Nie;function Nie(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 Lie=Bie;function Bie(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 $ie=zie;function zie(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 Uie=jie;function jie(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 Wie=Gie;function Gie(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 qie=Hie;function Hie(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 Vie=Yie;function Yie(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 Xie=Kie;function Kie(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 Qie=Zie;function Zie(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 Jie=eae;function eae(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 tae=rae;function rae(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 nae=iae;function iae(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 aae=oae;function oae(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 uae=lae;function lae(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 sae=fae;function fae(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 cae=dae;function dae(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 pae=hae;function hae(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 vae=gae;function gae(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 mae=yae;function yae(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 bae=wae;function wae(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 xae=_ae;function _ae(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 Sae=Eae;function Eae(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 Aae=Cae;function Cae(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 Tae=YB,Rae=Oae;function Oae(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?Tae(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 Iae=Pae;function Pae(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 tpe={create:Rie,clone:Iie,copy:kie,identity:YB,transpose:Fie,invert:Lie,adjoint:$ie,determinant:Uie,multiply:Wie,translate:qie,scale:Vie,rotate:Xie,rotateX:Qie,rotateY:Jie,rotateZ:tae,fromRotation:nae,fromRotationTranslation:aae,fromScaling:uae,fromTranslation:sae,fromXRotation:cae,fromYRotation:pae,fromZRotation:vae,fromQuat:mae,frustum:bae,perspective:xae,perspectiveFromFieldOfView:Sae,ortho:Aae,lookAt:Rae,str:Iae},KC={exports:{}};KC.exports=QC;KC.exports.isMobile=QC;KC.exports.default=QC;var kae=/(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,Mae=/(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 QC(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?Mae.test(t):kae.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var Dae=!0,Fae=Dae,qS;typeof Ar.matchMedia=="function"?qS=!Ar.matchMedia("(hover: none)").matches:qS=Fae;var rpe=qS,XB={exports:{}},Jf=typeof Reflect=="object"?Reflect:null,yP=Jf&&typeof Jf.apply=="function"?Jf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},d0;Jf&&typeof Jf.ownKeys=="function"?d0=Jf.ownKeys:Object.getOwnPropertySymbols?d0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:d0=function(t){return Object.getOwnPropertyNames(t)};function Nae(e){console&&console.warn&&console.warn(e)}var KB=Number.isNaN||function(t){return t!==t};function Dr(){Dr.init.call(this)}XB.exports=Dr;XB.exports.once=zae;Dr.EventEmitter=Dr;Dr.prototype._events=void 0;Dr.prototype._eventsCount=0;Dr.prototype._maxListeners=void 0;var bP=10;function $1(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 bP},set:function(e){if(typeof e!="number"||e<0||KB(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bP=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||KB(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 QB(e){return e._maxListeners===void 0?Dr.defaultMaxListeners:e._maxListeners}Dr.prototype.getMaxListeners=function(){return QB(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")yP(s,this,r);else for(var f=s.length,d=r6(s,f),n=0;n<f;++n)yP(d[n],this,r);return!0};function ZB(e,t,r,n){var i,a,o;if($1(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=QB(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,Nae(u)}return e}Dr.prototype.addListener=function(t,r){return ZB(this,t,r,!1)};Dr.prototype.on=Dr.prototype.addListener;Dr.prototype.prependListener=function(t,r){return ZB(this,t,r,!0)};function Lae(){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 JB(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Lae.bind(n);return i.listener=r,n.wrapFn=i,i}Dr.prototype.once=function(t,r){return $1(r),this.on(t,JB(this,t,r)),this};Dr.prototype.prependOnceListener=function(t,r){return $1(r),this.prependListener(t,JB(this,t,r)),this};Dr.prototype.removeListener=function(t,r){var n,i,a,o,u;if($1(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():Bae(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 e6(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?$ae(i):r6(i,i.length)}Dr.prototype.listeners=function(t){return e6(this,t,!0)};Dr.prototype.rawListeners=function(t){return e6(this,t,!1)};Dr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):t6.call(e,t)};Dr.prototype.listenerCount=t6;function t6(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?d0(this._events):[]};function r6(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Bae(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function $ae(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function zae(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))}n6(e,t,a,{once:!0}),t!=="error"&&Uae(e,i,{once:!0})})}function Uae(e,t,r){typeof e.on=="function"&&n6(e,"error",t,r)}function n6(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 i6=Wae,f_={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jae=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Wae(e){var t=[];return e.replace(jae,function(r,n,i){var a=n.toLowerCase();for(i=qae(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==f_[a])return i.unshift(n),t.push(i);if(i.length<f_[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,f_[a])))}}),t}var Gae=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function qae(e){var t=e.match(Gae);return t?t.map(Number):[]}var Hae={left:0,top:0},npe=Vae;function Vae(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=Yae(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Yae(e){return e===window||e===document||e===document.body?Hae:e.getBoundingClientRect()}function Xae(){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 ipe=Xae();function Kae(){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 Qae=Kae;function Zae(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 Jae=Zae,eoe={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}},toe=eoe,mp=toe;function roe(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=mp.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=mp.node({isStart:!0,pt:_.start,seg:_,primary:A,other:null,status:null});return u(b,_.end),b}function f(_,A,b){var w=mp.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=mp.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(mp.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 noe=roe;function ioe(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 aoe=ioe;function yp(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 ooe={union:function(e,t){return yp(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return yp(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return yp(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return yp(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return yp(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},uoe=ooe,loe={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}}},soe=loe;/*
918
- * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
919
- * @license MIT
920
- * @preserve Project Home: https://github.com/voidqk/polybooljs
921
- */var foe=Qae,coe=Jae,wP=noe,doe=aoe,bp=uoe,xP=soe,Li=!1,wp=coe(),di;di={buildLog:function(e){return e===!0?Li=foe():e===!1&&(Li=!1),Li===!1?!1:Li.list},epsilon:function(e){return wp.epsilon(e)},segments:function(e){var t=wP(!0,wp,Li);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=wP(!1,wp,Li);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:bp.union(e.combined,Li),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:bp.intersect(e.combined,Li),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:bp.difference(e.combined,Li),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:bp.differenceRev(e.combined,Li),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:bp.xor(e.combined,Li),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:doe(e.segments,wp,Li),inverted:e.inverted}},polygonFromGeoJSON:function(e){return xP.toPolygon(di,e)},polygonToGeoJSON:function(e){return xP.fromPolygon(di,wp,e)},union:function(e,t){return xp(e,t,di.selectUnion)},intersect:function(e,t){return xp(e,t,di.selectIntersect)},difference:function(e,t){return xp(e,t,di.selectDifference)},differenceRev:function(e,t){return xp(e,t,di.selectDifferenceRev)},xor:function(e,t){return xp(e,t,di.selectXor)}};function xp(e,t,r){var n=di.segments(e),i=di.segments(t),a=di.combine(n,i),o=r(a);return di.polygon(o)}typeof window=="object"&&(window.PolyBool=di);var ape=di,ope=function(t,r,n,i){var a=t[0],o=t[1],u=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,f=0,d=s-1;f<s;d=f++){var v=r[f+n][0],h=r[f+n][1],g=r[d+n][0],_=r[d+n][1],A=h>o!=_>o&&a<(g-v)*(o-h)/(_-h)+v;A&&(u=!u)}return u};const upe=fs(lne);var a6={exports:{}};function poe(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 hoe(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 voe(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 goe(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 moe(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 _p(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 yoe={ge:function(e,t,r,n,i){return _p(e,t,r,n,i,poe)},gt:function(e,t,r,n,i){return _p(e,t,r,n,i,hoe)},lt:function(e,t,r,n,i){return _p(e,t,r,n,i,voe)},le:function(e,t,r,n,i){return _p(e,t,r,n,i,goe)},eq:function(e,t,r,n,i){return _p(e,t,r,n,i,moe)}},Sv=boe;function boe(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var Ku=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=_P(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]=_P(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},c_={};function _P(e){return c_[e]?c_[e]:(typeof e=="string"&&(e=c_[e]=e.split(/\s*,\s*|\s+/)),e)}var woe=Ku,z1=xoe;function xoe(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=woe(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 Ev=_oe;function _oe(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 o6=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},ZC=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}},SP=ZC,Av=Soe;function Soe(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(SP(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=SP(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 Eoe=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},Aoe=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const EP=yoe,AP=Sv,Coe=z1,Toe=Ev,CP=Ku,d_=o6,Roe=Av,Ooe=Eoe,Ioe=ZC,TP=Aoe,Poe=1073741824;var koe=function(t,r){r||(r={}),t=Roe(t,"float64"),r=CP(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=d_(r.maxDepth,255),i=d_(r.bounds,Toe(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=RP(t,i),o=t.length>>>1,u;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?u=new(Ioe(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>Poe){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(Ooe(w[w.length-1])){let je=w.pop();!w.length&&(je.x!=null||je.l!=null||je.left!=null)&&(w=[je],S={}),S=CP(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=Coe(...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]=RP([R,M,D,z],i),pe=d_(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(-TP(Math.abs(je[0])/(i[2]-i[0]))),Math.ceil(-TP(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=EP.ge(N,ee),we=EP.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 RP(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]=AP((e[2*f]-r)*o,0,1),s[2*f+1]=AP((e[2*f+1]-n)*u,0,1);return s}(function(e){e.exports=koe})(a6);var u6=Moe;function Moe(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 Doe=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")}}(),uh=Math.PI*2,p_=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}},Foe=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}]},OP=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)},Noe=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=OP(1,0,D,z),ue=OP(D,z,N,L);return s===0&&ue>0&&(ue-=uh),s===1&&ue<0&&(ue+=uh),[R,M,ee,ue]},Loe=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*uh/360),b=Math.cos(f*uh/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=Noe(r,n,i,a,o,u,v,g,A,b,w,S),M=Doe(R,4),D=M[0],z=M[1],N=M[2],L=M[3],ee=Math.abs(L)/(uh/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(Foe(N,L)),N+=L;return _.map(function(we){var Ee=p_(we[0],o,u,b,A,D,z),Je=Ee.x,je=Ee.y,me=p_(we[1],o,u,b,A,D,z),Fe=me.x,qe=me.y,Ue=p_(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 Boe=Object.freeze(Object.defineProperty({__proto__:null,default:Loe},Symbol.toStringTag,{value:"Module"})),$oe=fs(Boe);var zoe=joe,Uoe=$oe;function joe(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=Uoe({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=IP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=IP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=Im(f,d,g[1],g[2]);break;case"H":g=Im(f,d,g[1],d);break;case"V":g=Im(f,d,f,g[1]);break;case"Z":g=Im(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 Im(e,t,r,n){return["C",e,t,r,n,r,n]}function IP(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 l6=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))},Woe=i6,Goe=u6,qoe=zoe,Hoe=l6,Voe=Yoe;function Yoe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Hoe(e))throw Error("String is not an SVG path.");e=Woe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Goe(e),e=qoe(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 Dl=Math.PI,PP=f6(120),Xoe=Koe;function Koe(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=s6(f,d,g[1],g[2],f6(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=kP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=kP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=Pm(f,d,g[1],g[2]);break;case"H":g=Pm(f,d,g[1],d);break;case"V":g=Pm(f,d,f,g[1]);break;case"Z":g=Pm(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 Pm(e,t,r,n){return["C",e,t,r,n,r,n]}function kP(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 s6(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=h_(e,t,-i);e=d.x,t=d.y,d=h_(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?Dl-E:E,R=u<w?Dl-R:R,E<0&&(E=Dl*2+E),R<0&&(R=Dl*2+R),o&&E>R&&(E=E-Dl*2),!o&&R>E&&(R=R-Dl*2)}if(Math.abs(R-E)>PP){var M=R,D=u,z=s;R=E+PP*(o&&R>E?1:-1),u=w+r*Math.cos(R),s=S+n*Math.sin(R);var N=s6(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=h_(pe[we],pe[we+1],i);pe[we++]=Ee.x,pe[we++]=Ee.y}return pe}function h_(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function f6(e){return e*(Dl/180)}var Qoe=u6,Zoe=Xoe,Joe={M:"moveTo",C:"bezierCurveTo"},eue=function(e,t){e.beginPath(),Zoe(Qoe(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Joe[n]].apply(e,i)}),e.closePath()},tue=Sv,rue=nue,lh=1e20;function nue(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?lh:Math.pow(Math.max(0,.5-D),2),w[_]=D===1?lh:D===0?0:Math.pow(Math.max(0,D-.5),2)}MP(b,a,o,S,E,M,R),MP(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[_]=tue(1-((b[_]-w[_])/n+r),0,1);return z}function MP(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(DP(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(DP(n,i,a,o,t),u=0;u<t;u++)e[s*t+u]=Math.sqrt(i[u])}}function DP(e,t,r,n,i){r[0]=0,n[0]=-lh,n[1]=+lh;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]=+lh}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 iue=Voe,aue=i6,oue=eue,uue=l6,lue=rue,HS=document.createElement("canvas"),ei=HS.getContext("2d"),lpe=sue;function sue(e,t){if(!uue(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=HS.width=t.w||t.width||200,n=HS.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||iue(e),u=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(u[0]||0,u[1]||0)/2;if(ei.fillStyle="black",ei.fillRect(0,0,r,n),ei.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?ei.strokeStyle="white":ei.strokeStyle="black",ei.lineWidth=Math.abs(a)),ei.translate(r*.5,n*.5),ei.scale(s,s),fue()){var f=new Path2D(e);ei.fill(f),a&&ei.stroke(f)}else{var d=aue(e);oue(ei,d),ei.fill(),a&&ei.stroke()}ei.setTransform(1,0,0,1,0,0);var v=lue(ei,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return v}var km;function fue(){if(km!=null)return km;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return km=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return km=r&&r.data&&r.data[3]===255}var cue={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]},due=Object.prototype.toString,c6=function(e){var t;return due.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},FP=cue,pue=c6,Ol=o6,hue=vue,NP={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function vue(e){var t,r=[],n=1,i;if(typeof e=="string")if(FP[e])r=FP[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(NP[g]!==void 0)return NP[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(pue(e)){var d=Ol(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Ol(e.g,e.green,e.G),Ol(e.b,e.blue,e.B)]):(i="hsl",r=[Ol(e.h,e.hue,e.H),Ol(e.s,e.saturation,e.S),Ol(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Ol(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Ar.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 gue={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}},mue=hue,yue=gue,Mm=Sv,bue=function(t){var r,n=mue(t);return n.space?(r=Array(3),r[0]=Mm(n.values[0],0,255),r[1]=Mm(n.values[1],0,255),r[2]=Mm(n.values[2],0,255),n.space[0]==="h"&&(r=yue.rgb(r)),r.push(Mm(n.alpha,0,1)),r):[]},wue=bue,Dm=Sv,xue=ZC,U1=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=xue(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=wue(t),t[0]/=255,t[1]/=255,t[2]/=255),_ue(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]=Dm(Math.floor(t[0]*255),0,255),i[1]=Dm(Math.floor(t[1]*255),0,255),i[2]=Dm(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:Dm(Math.floor(t[3]*255),0,255)),i)};function _ue(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 j1={exports:{}},Fm=Sv;j1.exports=d6;j1.exports.to=d6;j1.exports.from=Sue;function d6(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=Fm(r,0,255)&255,n=Fm(n,0,255)&255,i=Fm(i,0,255)&255,a=Fm(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function Sue(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 p6=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("")},h6=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},Eue=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),zu={exports:{}};zu.exports=sh;zu.exports.float32=zu.exports.float=sh;zu.exports.fract32=zu.exports.fract=Aue;var LP=new Float32Array(1);function Aue(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=sh(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return sh(e-sh(e))}function sh(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(LP[0]=e,LP[0])}function Cue(e,t){return Oue(e)||Pue(e,t)||v6(e,t)||Mue()}function Tue(e){return Rue(e)||Iue(e)||v6(e)||kue()}function Rue(e){if(Array.isArray(e))return VS(e)}function Oue(e){if(Array.isArray(e))return e}function Iue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pue(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 v6(e,t){if(!!e){if(typeof e=="string")return VS(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 VS(e,t)}}function VS(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 kue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
922
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
923
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Due=U1,Fue=Ev,Nue=j1.exports,Lue=a6.exports,Ql=cs,Nm=p6,Bue=Ku,$ue=h6,zue=Av,BP=Eue,Lm=zu.exports,Uue=z1,jue=En;function En(e,t){var r=this;if(!(this instanceof En))return new En(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=BP,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=Nm([`precision highp float;
924
- #define GLSLIFY 1
925
-
926
- uniform float opacity;
927
- uniform sampler2D markerTexture;
928
-
929
- varying vec4 fragColor, fragBorderColor;
930
- varying float fragWidth, fragBorderColorLevel, fragColorLevel;
931
-
932
- float smoothStep(float x, float y) {
933
- return 1.0 / (1.0 + exp(50.0*(x - y)));
934
- }
935
-
936
- void main() {
937
- float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
938
-
939
- // max-distance alpha
940
- if (dist < 0.003) discard;
941
-
942
- // null-border case
943
- if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
944
- float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
945
- gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
946
- }
947
- else {
948
- float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
949
- float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
950
-
951
- vec4 color = fragBorderColor;
952
- color.a *= borderColorAmt;
953
- color = mix(color, fragColor, colorAmt);
954
- color.a *= opacity;
955
-
956
- gl_FragColor = color;
957
- }
958
-
959
- }
960
- `]),g.vert=Nm([`precision highp float;
961
- #define GLSLIFY 1
962
-
963
- attribute float x, y, xFract, yFract;
964
- attribute float size, borderSize;
965
- attribute vec4 colorId, borderColorId;
966
- attribute float isActive;
967
-
968
- uniform bool constPointSize;
969
- uniform float pixelRatio;
970
- uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
971
- uniform sampler2D paletteTexture;
972
-
973
- const float maxSize = 100.;
974
- const float borderLevel = .5;
975
-
976
- varying vec4 fragColor, fragBorderColor;
977
- varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
978
-
979
- float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
980
-
981
- bool isDirect = (paletteSize.x < 1.);
982
-
983
- vec4 getColor(vec4 id) {
984
- return isDirect ? id / 255. : texture2D(paletteTexture,
985
- vec2(
986
- (id.x + .5) / paletteSize.x,
987
- (id.y + .5) / paletteSize.y
988
- )
989
- );
990
- }
991
-
992
- void main() {
993
- // ignore inactive points
994
- if (isActive == 0.) return;
995
-
996
- vec2 position = vec2(x, y);
997
- vec2 positionFract = vec2(xFract, yFract);
998
-
999
- vec4 color = getColor(colorId);
1000
- vec4 borderColor = getColor(borderColorId);
1001
-
1002
- float size = size * maxSize / 255.;
1003
- float borderSize = borderSize * maxSize / 255.;
1004
-
1005
- gl_PointSize = 2. * size * pointSizeScale;
1006
- fragPointSize = size * pixelRatio;
1007
-
1008
- vec2 pos = (position + translate) * scale
1009
- + (positionFract + translateFract) * scale
1010
- + (position + translate) * scaleFract
1011
- + (positionFract + translateFract) * scaleFract;
1012
-
1013
- gl_Position = vec4(pos * 2. - 1., 0., 1.);
1014
-
1015
- fragColor = color;
1016
- fragBorderColor = borderColor;
1017
- fragWidth = 1. / gl_PointSize;
1018
-
1019
- fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
1020
- fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
1021
- }`]),this.drawMarker=e(g);var _=Ql({},h);_.frag=Nm([`precision highp float;
1022
- #define GLSLIFY 1
1023
-
1024
- varying vec4 fragColor, fragBorderColor;
1025
- varying float fragBorderRadius, fragWidth;
1026
-
1027
- uniform float opacity;
1028
-
1029
- float smoothStep(float edge0, float edge1, float x) {
1030
- float t;
1031
- t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
1032
- return t * t * (3.0 - 2.0 * t);
1033
- }
1034
-
1035
- void main() {
1036
- float radius, alpha = 1.0, delta = fragWidth;
1037
-
1038
- radius = length(2.0 * gl_PointCoord.xy - 1.0);
1039
-
1040
- if (radius > 1.0 + delta) {
1041
- discard;
1042
- }
1043
-
1044
- alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
1045
-
1046
- float borderRadius = fragBorderRadius;
1047
- float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
1048
- vec4 color = mix(fragColor, fragBorderColor, ratio);
1049
- color.a *= alpha * opacity;
1050
- gl_FragColor = color;
1051
- }
1052
- `]),_.vert=Nm([`precision highp float;
1053
- #define GLSLIFY 1
1054
-
1055
- attribute float x, y, xFract, yFract;
1056
- attribute float size, borderSize;
1057
- attribute vec4 colorId, borderColorId;
1058
- attribute float isActive;
1059
-
1060
- uniform bool constPointSize;
1061
- uniform float pixelRatio;
1062
- uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
1063
- uniform sampler2D paletteTexture;
1064
-
1065
- const float maxSize = 100.;
1066
-
1067
- varying vec4 fragColor, fragBorderColor;
1068
- varying float fragBorderRadius, fragWidth;
1069
-
1070
- float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
1071
-
1072
- bool isDirect = (paletteSize.x < 1.);
1073
-
1074
- vec4 getColor(vec4 id) {
1075
- return isDirect ? id / 255. : texture2D(paletteTexture,
1076
- vec2(
1077
- (id.x + .5) / paletteSize.x,
1078
- (id.y + .5) / paletteSize.y
1079
- )
1080
- );
1081
- }
1082
-
1083
- void main() {
1084
- // ignore inactive points
1085
- if (isActive == 0.) return;
1086
-
1087
- vec2 position = vec2(x, y);
1088
- vec2 positionFract = vec2(xFract, yFract);
1089
-
1090
- vec4 color = getColor(colorId);
1091
- vec4 borderColor = getColor(borderColorId);
1092
-
1093
- float size = size * maxSize / 255.;
1094
- float borderSize = borderSize * maxSize / 255.;
1095
-
1096
- gl_PointSize = (size + borderSize) * pointSizeScale;
1097
-
1098
- vec2 pos = (position + translate) * scale
1099
- + (positionFract + translateFract) * scale
1100
- + (position + translate) * scaleFract
1101
- + (positionFract + translateFract) * scaleFract;
1102
-
1103
- gl_Position = vec4(pos * 2. - 1., 0., 1.);
1104
-
1105
- fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1106
- fragColor = color;
1107
- fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1108
- fragWidth = 1. / gl_PointSize;
1109
- }
1110
- `]),BP&&(_.frag=_.frag.replace("smoothstep","smoothStep"),g.frag=g.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(_)}En.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};En.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};En.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};En.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,Tue(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};En.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=Cue(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};En.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=Bue(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({},En.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($ue(h,d,[{snap:!0,size:function(me,Fe){return me==null&&(me=En.defaults.size),g+=me&&me.length?1:0,me},borderSize:function(me,Fe){return me==null&&(me=En.defaults.borderSize),g+=me&&me.length?1:0,me},opacity:parseFloat,color:function(me,Fe){return me==null&&(me=En.defaults.color),me=e.updateColor(me),_++,me},borderColor:function(me,Fe){return me==null&&(me=En.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=zue(me,"float64");var We=Fe.count=Math.floor(me.length/2),Ze=Fe.bounds=We?Fue(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=Lue(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=Lm.float32(me);be({data:Rt,usage:"dynamic"});var kt=Lm.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=Lm.fract(Fe.scale),Fe.translateFract=Lm.fract(Fe.translate),me},viewport:function(me){var Fe=Uue(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})}};En.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};En.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=Due(f,"uint8");var d=Nue(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};En.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)}};En.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 Wue=cs,Gue=function(t,r){var n=new jue(t,r),i=n.render.bind(n);return Wue(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},spe=Gue,JC={exports:{}};JC.exports=W1;JC.exports.default=W1;function W1(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=g6(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=Xue(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 Uh(a,o,r,u,s,g),o}function g6(e,t,r,n,i){var a,o;if(i===KS(e,t,r,n)>0)for(a=t;a<r;a+=n)o=$P(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=$P(a,e[a],e[a+1],o);return o&&G1(o,o.next)&&(Wh(o),o=o.next),o}function Uu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(G1(r,r.next)||Yr(r.prev,r,r.next)===0)){if(Wh(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Uh(e,t,r,n,i,a,o){if(!!e){!o&&a&&ele(e,n,i,a);for(var u=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?Hue(e,n,i,a):que(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),Wh(e),e=f.next,u=f.next;continue}if(e=f,e===u){o?o===1?(e=Vue(Uu(e),t,r),Uh(e,t,r,n,i,a,2)):o===2&&Yue(e,t,r,n,i,a):Uh(Uu(e),t,r,n,i,a,1);break}}}}function que(e){var t=e.prev,r=e,n=e.next;if(Yr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Lf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Yr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Hue(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Yr(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=YS(u,s,t,r,n),h=YS(f,d,t,r,n),g=e.prevZ,_=e.nextZ;g&&g.z>=v&&_&&_.z<=h;){if(g!==e.prev&&g!==e.next&&Lf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Yr(g.prev,g,g.next)>=0||(g=g.prevZ,_!==e.prev&&_!==e.next&&Lf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Yr(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;g&&g.z>=v;){if(g!==e.prev&&g!==e.next&&Lf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Yr(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;_&&_.z<=h;){if(_!==e.prev&&_!==e.next&&Lf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Yr(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function Vue(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!G1(i,a)&&m6(i,n,n.next,a)&&jh(i,a)&&jh(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Wh(n),Wh(n.next),n=e=a),n=n.next}while(n!==e);return Uu(n)}function Yue(e,t,r,n,i,a){var o=e;do{for(var u=o.next.next;u!==o.prev;){if(o.i!==u.i&&nle(o,u)){var s=y6(o,u);o=Uu(o,o.next),s=Uu(s,s.next),Uh(o,t,r,n,i,a),Uh(s,t,r,n,i,a);return}u=u.next}o=o.next}while(o!==e)}function Xue(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=g6(e,u,s,n,!1),f===f.next&&(f.steiner=!0),i.push(rle(f));for(i.sort(Kue),a=0;a<i.length;a++)r=Que(i[a],r),r=Uu(r,r.next);return r}function Kue(e,t){return e.x-t.x}function Que(e,t){var r=Zue(e,t);if(!r)return t;var n=y6(r,e),i=Uu(r,r.next);return Uu(n,n.next),t===r?i:t}function Zue(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&&Lf(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),jh(r,e)&&(h<v||h===v&&(r.x>o.x||r.x===o.x&&Jue(o,r)))&&(o=r,v=h)),r=r.next;while(r!==s);return o}function Jue(e,t){return Yr(e.prev,e,t.prev)<0&&Yr(t.next,e,e.next)<0}function ele(e,t,r,n){var i=e;do i.z===null&&(i.z=YS(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,tle(i)}function tle(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 YS(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 rle(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 Lf(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 nle(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!ile(e,t)&&(jh(e,t)&&jh(t,e)&&ale(e,t)&&(Yr(e.prev,e,t.prev)||Yr(e,t.prev,t))||G1(e,t)&&Yr(e.prev,e,e.next)>0&&Yr(t.prev,t,t.next)>0)}function Yr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function G1(e,t){return e.x===t.x&&e.y===t.y}function m6(e,t,r,n){var i=$m(Yr(e,t,r)),a=$m(Yr(e,t,n)),o=$m(Yr(r,n,e)),u=$m(Yr(r,n,t));return!!(i!==a&&o!==u||i===0&&Bm(e,r,t)||a===0&&Bm(e,n,t)||o===0&&Bm(r,e,n)||u===0&&Bm(r,t,n))}function Bm(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 $m(e){return e>0?1:e<0?-1:0}function ile(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&&m6(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function jh(e,t){return Yr(e.prev,e,e.next)<0?Yr(e,t,e.next)>=0&&Yr(e,e.prev,t)>=0:Yr(e,t,e.prev)<0||Yr(e,e.next,t)<0}function ale(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 y6(e,t){var r=new XS(e.i,e.x,e.y),n=new XS(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 $P(e,t,r,n){var i=new XS(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 Wh(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 XS(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}W1.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(KS(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(KS(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 KS(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}W1.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 ole=Ev,ule=lle;function lle(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=ole(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 sle=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")},v_,zP;function b6(){if(zP)return v_;zP=1;var e=Object.create,t=Object.getPrototypeOf,r={};return v_=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},v_}var g_,UP;function fle(){if(UP)return g_;UP=1;var e=Object.create,t;return b6()()||(t=w6()),g_=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)})}(),g_}var m_,jP;function w6(){if(jP)return m_;jP=1;var e=aA,t=va,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")},m_=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)}()),fle(),m_}var y_,WP;function eT(){return WP||(WP=1,y_=b6()()?Object.setPrototypeOf:w6()),y_}var b_,GP;function cle(){if(GP)return b_;GP=1;var e=aA;return b_=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},b_}var w_,qP;function dle(){if(qP)return w_;qP=1;var e=Object.create(null),t=Math.random;return w_=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},w_}var x_={exports:{}},__,HP;function ple(){if(HP)return __;HP=1;var e=va;return __=function(){return e(this).length=0,this},__}var S_,VP;function hle(){if(VP)return S_;VP=1;var e=Ic,t=oA,r=Object.prototype.toString;return S_=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}},S_}var E_,YP;function vle(){return YP||(YP=1,E_=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),E_}var A_,XP;function gle(){if(XP)return A_;XP=1;var e=vle(),t=/[\n\r\u2028\u2029]/g;return A_=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`
1111
- `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},A_}var C_,KP;function x6(){if(KP)return C_;KP=1;var e=Ic,t=oA,r=hle(),n=gle(),i=function(a,o){return a.replace("%v",n(o))};return C_=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))},C_}var T_,QP;function mle(){if(QP)return T_;QP=1;var e=x6(),t=Ic;return T_=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},T_}var R_,ZP;function yle(){if(ZP)return R_;ZP=1;var e=x6(),t=GD;return R_=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},R_}var O_,JP;function ble(){if(JP)return O_;JP=1;var e=e1(),t=Ky,r=va;return O_=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},O_}var I_,ek;function wle(){if(ek)return I_;ek=1;var e=Ic,t=mle(),r=yle(),n=ble(),i=iA,a=lA(),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])},_},I_=function(d){var v=i(arguments[1]);return e(v.resolveContext)&&r(v.resolveContext),a(d,function(h,g){return f(g,h,v)})},I_}var P_,tk;function _6(){if(tk)return P_;tk=1;var e=ple(),t=Ky,r=qa,n=va,i=Ki.exports,a=wle(),o=ys(),u=Object.defineProperty,s=Object.defineProperties,f;return P_=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})),P_}var rk;function xle(){if(rk)return x_.exports;rk=1;var e=eT(),t=qD,r=Ki.exports,n=ys(),i=_6(),a=Object.defineProperty,o;return o=x_.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")),x_.exports}var k_={exports:{}},nk;function _le(){if(nk)return k_.exports;nk=1;var e=eT(),t=Ki.exports,r=ys(),n=_6(),i=Object.defineProperty,a;return a=k_.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")),k_.exports}var M_,ik;function Sle(){if(ik)return M_;ik=1;var e=Zy(),t=Ro,r=Jy(),n=ys().iterator,i=Array.isArray;return M_=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},M_}var D_,ak;function Ele(){if(ak)return D_;ak=1;var e=Sle();return D_=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},D_}var F_,ok;function S6(){if(ok)return F_;ok=1;var e=Zy(),t=Jy(),r=xle(),n=_le(),i=Ele(),a=ys().iterator;return F_=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},F_}var N_,uk;function Ale(){if(uk)return N_;uk=1;var e=Zy(),t=qa,r=Jy(),n=S6(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return N_=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()}},N_}var L_,lk;function Cle(){return lk||(lk=1,L_=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),L_}var B_,sk;function Tle(){if(sk)return B_;sk=1;var e=Ro,t=eT(),r=cle(),n=va,i=dle(),a=Ki.exports,o=S6(),u=Ale(),s=ys().toStringTag,f=Cle(),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 E6=sle()?WeakMap:Tle(),Rle=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 zm=U1,Ole=Ev,QS=cs,yf=p6,Ile=Ku,Ple=Av,fk=JC.exports,kle=ule,{float32:Mle,fract32:$_}=zu.exports,Dle=E6,ck=z1,Fle=Rle;var fpe=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 Dle;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(QS({vert:yf("./rect-vert.glsl"),frag:yf("./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(QS({cull:{enable:!0,face:"back"},vert:yf("./miter-vert.glsl"),frag:yf("./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:yf("./fill-vert.glsl"),frag:yf("./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=Ile(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=QS({},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?zm(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=ck(i.viewport)),o.viewport||(o.viewport=ck([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=Ple(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let v=o.bounds=Ole(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=Fle(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=fk(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=fk(_,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);kle(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=Mle(g);o.positionBuffer(u);var s=$_(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=$_(o.scale),o.translateFract=$_(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=zm(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=zm(d[h],"uint8");v.set(g,h*4)}v.set(zm(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 Nle=Ev,Lle=U1,Ble=h6,$le=Ku,dk=cs,pk=Av,{float32:zle,fract32:z_}=zu.exports;var cpe=Ule;const hk=[[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 Ule(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:hk}),_(t),n=e({vert:`
1112
- precision highp float;
1113
-
1114
- attribute vec2 position, positionFract;
1115
- attribute vec4 error;
1116
- attribute vec4 color;
1117
-
1118
- attribute vec2 direction, lineOffset, capOffset;
1119
-
1120
- uniform vec4 viewport;
1121
- uniform float lineWidth, capSize;
1122
- uniform vec2 scale, scaleFract, translate, translateFract;
1123
-
1124
- varying vec4 fragColor;
1125
-
1126
- void main() {
1127
- fragColor = color / 255.;
1128
-
1129
- vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1130
-
1131
- vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1132
-
1133
- vec2 position = position + dxy;
1134
-
1135
- vec2 pos = (position + translate) * scale
1136
- + (positionFract + translateFract) * scale
1137
- + (position + translate) * scaleFract
1138
- + (positionFract + translateFract) * scaleFract;
1139
-
1140
- pos += pixelOffset / viewport.zw;
1141
-
1142
- gl_Position = vec4(pos * 2. - 1., 0, 1);
1143
- }
1144
- `,frag:`
1145
- precision highp float;
1146
-
1147
- varying vec4 fragColor;
1148
-
1149
- uniform float opacity;
1150
-
1151
- void main() {
1152
- gl_FragColor = fragColor;
1153
- gl_FragColor.a *= opacity;
1154
- }
1155
- `,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:hk.length}),dk(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=$le(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=dk({},f,M)),Ble(z,M,[{lineWidth:N=>+N*.5,capSize:N=>+N*.5,opacity:parseFloat,errors:N=>(N=pk(N),S+=N.length,N),positions:(N,L)=>(N=pk(N,"float64"),L.count=Math.floor(N.length/2),L.bounds=Nle(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=Lle(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=z_(L.scale),L.translateFract=z_(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=zle(D);i(E);var R=z_(D,E);a(R),o(z),u(N)}}function A(){i.destroy(),a.destroy(),o.destroy(),u.destroy(),s.destroy()}}var vk=/[\'\"]/,jle=function(t){return t?(vk.test(t.charAt(0))&&(t=t.substr(1)),vk.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const A6=["inherit","initial","unset"],C6=["caption","icon","menu","message-box","small-caption","status-bar"],T6=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],R6=["normal","italic","oblique"],O6=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function I6(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 P6(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 tT(e,t){return Array.isArray(e)?P6(e,t):I6(e,t)}tT.parse=I6;tT.stringify=P6;var Wle=tT,gk=Wle,Gle=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=gk.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]=gk.stringify(i,{flat:!0});return o};const qle=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var Hle=qle,k6={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Hle.indexOf(t)!==-1}},Vle=jle,Yle=A6,Xle=C6,Kle=T6,Qle=R6,Zle=O6,U_=Gle,Jle=k6.isSize,ese=M6,Sp=M6.cache={};function M6(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Sp[e])return Sp[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Xle.indexOf(e)!==-1)return Sp[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=U_(e,/\s+/),n;n=r.shift();){if(Yle.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Sp[e]=t;if(Qle.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(Zle.indexOf(n)!==-1){t.stretch=n;continue}if(Kle.indexOf(n)!==-1){t.weight=n;continue}if(Jle(n)){var i=U_(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=mk(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=mk(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=U_(r.join(" "),/\s*,\s*/).map(Vle),Sp[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function mk(e){var t=parseFloat(e);return t.toString()===e?t:e}var tse=Ku,rse=k6.isSize,nse=Cv(A6),ise=Cv(C6),ase=Cv(T6),ose=Cv(R6),use=Cv(O6),lse={normal:1,"small-caps":1},sse={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},j_={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},D6=function(t){if(t=tse(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&&Ep(t.system,ise),t.system;if(Ep(t.style,ose),Ep(t.variant,lse),Ep(t.weight,ase),Ep(t.stretch,use),t.size==null&&(t.size=j_.size),typeof t.size=="number"&&(t.size+="px"),!rse)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=j_.family),Array.isArray(t.family)&&(t.family.length||(t.family=[j_.family]),t.family=t.family.map(function(n){return sse[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 Ep(e,t){if(e&&!t[e]&&!nse[e])throw Error("Unknown keyword `"+e+"`");return e}function Cv(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var fse={parse:ese,stringify:D6},F6={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ar,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,Zt=7937,nr=7938,mr=35724,_r=34047,an=36063,ba=34852,Xn=3553,Pn=34067,wa=34069,Qi=33984,Zu=6408,As=5126,Cs=5121,Ts=36160,rb=36053,Va=36064,nb=16384,Rs=function(F,V){var J=1;V.ext_texture_filter_anisotropic&&(J=F.getParameter(_r));var Pe=1,Le=1;V.webgl_draw_buffers&&(Pe=F.getParameter(ba),Le=F.getParameter(an));var Te=!!V.oes_texture_float;if(Te){var Oe=F.createTexture();F.bindTexture(Xn,Oe),F.texImage2D(Xn,0,Zu,1,1,0,Zu,As,null);var tt=F.createFramebuffer();if(F.bindFramebuffer(Ts,tt),F.framebufferTexture2D(Ts,Va,Xn,Oe,0),F.bindTexture(Xn,null),F.checkFramebufferStatus(Ts)!==rb)Te=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(nb);var rt=be.allocType(As,4);F.readPixels(0,0,1,1,Zu,As,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(Cs,36);F.activeTexture(Qi),F.bindTexture(Pn,Ft),F.texImage2D(wa,0,Zu,3,3,0,Zu,Cs,Ct),be.freeType(Ct),F.bindTexture(Pn,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(mr),renderer:F.getParameter(Zt),vendor:F.getParameter(qt),version:F.getParameter(nr),readFloat:Te,npotTextureCube:ht}},fn=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 gi(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)||fn(F.data))}var Kn=function(F){return Object.keys(F).map(function(V){return F[V]})},fr={shape:Pv,flatten:ki};function Ov(F,V,J){for(var Pe=0;Pe<V;++Pe)J[Pe]=F[Pe]}function Zi(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 Do(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 Iv(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)Do(F[Oe],rt,ot,ht,Pe,Le),Le+=Te}else for(Oe=0;Oe<tt;++Oe)Iv(F[Oe],V,J+1,Pe,Le),Le+=Te}function ki(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:Ov(F,V[0],Oe);break;case 2:Zi(F,V[0],V[1],Oe);break;case 3:Do(F,V[0],V[1],V[2],Oe,0);break;default:Iv(F,V,0,Oe,0)}return Oe}function Pv(F){for(var V=[],J=F;J.length;J=J[0])V.push(J.length);return V}var Ju={"[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},ib=5120,kv=5122,ab=5124,Mv=5121,ob=5123,el=5125,zc=5126,Dv=5126,tl={int8:ib,int16:kv,int32:ab,uint8:Mv,uint16:ob,uint32:el,float:zc,float32:Dv},Os=35048,Uc=35040,xa={dynamic:Os,stream:Uc,static:35044},ii=fr.flatten,Is=fr.shape,Ps=35044,mi=35040,rl=5121,nl=5126,on=[];on[5120]=1,on[5122]=2,on[5124]=4,on[5121]=1,on[5123]=2,on[5125]=4,on[5126]=4;function Ya(F){return Ju[Object.prototype.toString.call(F)]|0}function jc(F,V){for(var J=0;J<V.length;++J)F[J]=V[J]}function Wc(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 Fv(F,V,J,Pe){var Le=0,Te={};function Oe(ve){this.id=Le++,this.buffer=F.createBuffer(),this.type=ve,this.usage=Ps,this.byteLength=0,this.dimension=1,this.dtype=rl,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,mi,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||nl,Me.length>0){var Nt;if(Array.isArray(Me[0])){dt=Is(Me);for(var He=1,Be=1;Be<dt.length;++Be)He*=dt[Be];ve.dimension=He,Nt=ii(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);jc(xt,Me),ht(ve,xt,et),yt?ve.persistentData=xt:be.freeType(xt)}else fn(Me[0])&&(ve.dimension=Me[0].length,ve.dtype=it||Ya(Me[0])||nl,Nt=ii(Me,[Me.length,Me[0].length],ve.dtype),ht(ve,Nt,et),yt?ve.persistentData=Nt:be.freeType(Nt))}}else if(fn(Me))ve.dtype=it||Ya(Me),ve.dimension=Ge,ht(ve,Me,et),yt&&(ve.persistentData=new Uint8Array(new Uint8Array(Me.buffer)));else if(gi(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||Ya(Me.data)||nl,ve.dimension=Lt;var Gt=be.allocType(ve.dtype,at*Lt);Wc(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=rl,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=Ps,xt=null,ke=0,vt=0,at=1;return Array.isArray(He)||fn(He)||gi(He)||He instanceof ArrayBuffer?xt=He:typeof He=="number"?ke=He|0:He&&("data"in He&&(xt=He.data),"usage"in He&&(Be=xa[He.usage]),"type"in He&&(vt=tl[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||rl,Ge.usage=Be,Ge.dimension=at,Ge.byteLength=ke),J.profile&&(Ge.stats.size=Ge.byteLength*on[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(),fn(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);jc(vt,He),dt(vt,xt),be.freeType(vt)}else if(Array.isArray(He[0])||fn(He[0])){ke=Is(He);var at=ii(He,ke,Ge.dtype);dt(at,xt),be.freeType(at)}}}else if(gi(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:Ya(He.data),pr=be.allocType(lr,ur*St);Wc(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(){Kn(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(){Kn(Te).forEach(Ct),tt.forEach(Ct)},getBuffer:function(ve){return ve&&ve._buffer instanceof Oe?ve._buffer:null},restore:Qe,_initBuffer:Ft}}var Gc=0,Nv=0,Lv=1,qc=1,Hc=4,Vc=4,cn={points:Gc,point:Nv,lines:Lv,line:qc,triangles:Hc,triangle:Vc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Bv=0,ks=1,_a=4,Fo=5120,Xa=5121,Yc=5122,Ka=5123,Ms=5124,Sa=5125,No=34963,Sr=35040,Xc=35044;function Ds(F,V,J,Pe){var Le={},Te=0,Oe={uint8:Xa,uint16:Ka};V.oes_element_index_uint&&(Oe.uint32=Sa);function tt(Qe){this.id=Te++,Le[this.id]=this,this.buffer=Qe,this.primType=_a,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,No,!0,!1)._buffer)),Ft(ve,Qe,Sr,-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&&(!fn(ve)||gi(ve)&&!fn(ve.data))&&(Nt=V.oes_element_index_uint?Sa:Ka),J._initBuffer(Qe.buffer,ve,Me,Nt,3)}else F.bufferData(No,Ge,Me),Qe.buffer.dtype=dt||Xa,Qe.buffer.usage=Me,Qe.buffer.dimension=3,Qe.buffer.byteLength=Ge;if(dt=yt,!yt){switch(Qe.buffer.dtype){case Xa:case Fo:dt=Xa;break;case Ka:case Yc:dt=Ka;break;case Sa:case Ms:dt=Sa;break}Qe.buffer.dtype=dt}Qe.type=dt;var He=it;He<0&&(He=Qe.buffer.byteLength,dt===Ka?He>>=1:dt===Sa&&(He>>=2)),Qe.vertCount=He;var Be=et;if(et<0){Be=_a;var xt=Qe.buffer.dimension;xt===1&&(Be=Bv),xt===2&&(Be=ks),xt===3&&(Be=_a)}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,No,!0),et=new tt(Me._buffer);Pe.elementsCount++;function it(Ge){if(!Ge)Me(),et.primType=_a,et.vertCount=0,et.type=Xa;else if(typeof Ge=="number")Me(Ge),et.primType=_a,et.vertCount=Ge|0,et.type=Xa;else{var yt=null,dt=Xc,Nt=-1,He=-1,Be=0,xt=0;Array.isArray(Ge)||fn(Ge)||gi(Ge)?yt=Ge:("data"in Ge&&(yt=Ge.data),"usage"in Ge&&(dt=xa[Ge.usage]),"primitive"in Ge&&(Nt=cn[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===Ka||xt===Yc?Be*=2:(xt===Sa||xt===Ms)&&(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(){Kn(Le).forEach(Ct)}}}var $v=new Float32Array(1),ub=new Uint32Array($v.buffer),Fs=5123;function il(F){for(var V=be.allocType(Fs,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{$v[0]=F[J];var Pe=ub[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 yi(F){return Array.isArray(F)||fn(F)}var Ns=34467,bi=3553,Lo=34067,Bo=34069,Ea=6408,Ls=6406,Ji=6407,ea=6409,al=6410,zv=32854,$o=32855,Bs=36194,Kc=32819,Uv=32820,zo=33635,Qa=34042,Aa=6402,ol=34041,ul=35904,Za=35906,Ja=36193,Qc=33776,$s=33777,ll=33778,Zc=33779,jv=35986,Jc=35987,Wv=34798,ed=35840,Gv=35841,td=35842,qv=35843,eo=36196,wi=5121,rd=5123,nd=5125,sl=5126,Hv=10242,fl=10243,lb=10497,Uo=33071,zs=33648,id=10240,Us=10241,to=9728,cl=9729,js=9984,Ws=9985,Vv=9986,jo=9987,sb=33170,Gs=4352,fb=4353,Yv=4354,dl=34046,cb=3317,ad=37440,Xv=37441,ta=37443,od=37444,ro=33984,ud=[js,Vv,Ws,jo],Mi=[0,ea,al,Ji,Ea],Un={};Un[ea]=Un[Ls]=Un[Aa]=1,Un[ol]=Un[al]=2,Un[Ji]=Un[ul]=3,Un[Ea]=Un[Za]=4;function no(F){return"[object "+F+"]"}var Kv=no("HTMLCanvasElement"),Qv=no("OffscreenCanvas"),Zv=no("CanvasRenderingContext2D"),ld=no("ImageBitmap"),sd=no("HTMLImageElement"),Jv=no("HTMLVideoElement"),db=Object.keys(Ju).concat([Kv,Qv,Zv,ld,sd,Jv]),Wo=[];Wo[wi]=1,Wo[sl]=4,Wo[Ja]=2,Wo[rd]=2,Wo[nd]=4;var un=[];un[zv]=2,un[$o]=2,un[Bs]=2,un[ol]=4,un[Qc]=.5,un[$s]=.5,un[ll]=1,un[Zc]=1,un[jv]=.5,un[Jc]=1,un[Wv]=1,un[ed]=.5,un[Gv]=.25,un[td]=.5,un[qv]=.25,un[eo]=.5;function eg(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function tg(F){if(!Array.isArray(F))return!1;var V=F.length;return!(V===0||!yi(F[0]))}function io(F){return Object.prototype.toString.call(F)}function rg(F){return io(F)===Kv}function ng(F){return io(F)===Qv}function pb(F){return io(F)===Zv}function hb(F){return io(F)===ld}function vb(F){return io(F)===sd}function gb(F){return io(F)===Jv}function qs(F){if(!F)return!1;var V=io(F);return db.indexOf(V)>=0?!0:eg(F)||tg(F)||gi(F)}function fd(F){return Ju[Object.prototype.toString.call(F)]|0}function ig(F,V){var J=V.length;switch(F.type){case wi:case rd:case nd:case sl:var Pe=be.allocType(F.type,J);Pe.set(V),F.data=Pe;break;case Ja:F.data=il(V);break}}function cd(F,V){return be.allocType(F.type===Ja?sl:F.type,V)}function ag(F,V){F.type===Ja?(F.data=il(V),be.freeType(V)):F.data=V}function mb(F,V,J,Pe,Le,Te){for(var Oe=F.width,tt=F.height,rt=F.channels,ot=Oe*tt*rt,ht=cd(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];ag(F,ht)}function ra(F,V,J,Pe,Le,Te){var Oe;if(typeof un[F]<"u"?Oe=un[F]:Oe=Un[F]*Wo[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 yb(F,V,J,Pe,Le,Te,Oe){var tt={"don't care":Gs,"dont care":Gs,nice:Yv,fast:fb},rt={repeat:lb,clamp:Uo,mirror:zs},ot={nearest:to,linear:cl},ht=r({mipmap:jo,"nearest mipmap nearest":js,"linear mipmap nearest":Ws,"nearest mipmap linear":Vv,"linear mipmap linear":jo},ot),Ft={none:0,browser:od},Ct={uint8:wi,rgba4:Kc,rgb565:zo,"rgb5 a1":Uv},ft={alpha:Ls,luminance:ea,"luminance alpha":al,rgb:Ji,rgba:Ea,rgba4:zv,"rgb5 a1":$o,rgb565:Bs},Qe={};V.ext_srgb&&(ft.srgb=ul,ft.srgba=Za),V.oes_texture_float&&(Ct.float32=Ct.float=sl),V.oes_texture_half_float&&(Ct.float16=Ct["half float"]=Ja),V.webgl_depth_texture&&(r(ft,{depth:Aa,"depth stencil":ol}),r(Ct,{uint16:rd,uint32:nd,"depth stencil":Qa})),V.webgl_compressed_texture_s3tc&&r(Qe,{"rgb s3tc dxt1":Qc,"rgba s3tc dxt1":$s,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":Zc}),V.webgl_compressed_texture_atc&&r(Qe,{"rgb atc":jv,"rgba atc explicit alpha":Jc,"rgba atc interpolated alpha":Wv}),V.webgl_compressed_texture_pvrtc&&r(Qe,{"rgb pvrtc 4bppv1":ed,"rgb pvrtc 2bppv1":Gv,"rgba pvrtc 4bppv1":td,"rgba pvrtc 2bppv1":qv}),V.webgl_compressed_texture_etc1&&(Qe["rgb etc1"]=eo);var ve=Array.prototype.slice.call(F.getParameter(Ns));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===ea||Ce===Ls||Ce===ea||Ce===al||Ce===Aa||Ce===ol||V.ext_srgb&&(Ce===ul||Ce===Za)?X[Ce]=Ce:Ce===$o||Re.indexOf("rgba")>=0?X[Ce]=Ea:X[Ce]=Ji,X},{});function He(){this.internalformat=Ea,this.format=Ea,this.type=wi,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=od,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=Un[X.format]:It&&!q&&X.channels!==Mi[X.format]&&(X.format=X.internalformat=Mi[X.channels])}}function ke(X){F.pixelStorei(ad,X.flipY),F.pixelStorei(Xv,X.premultiplyAlpha),F.pixelStorei(ta,X.colorSpace),F.pixelStorei(cb,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(qs(Re)?Ce=Re:Re&&(xt(X,Re),"x"in Re&&(X.xOffset=Re.x|0),"y"in Re&&(X.yOffset=Re.y|0),qs(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(fn(Ce))X.channels=X.channels||4,X.data=Ce,!("type"in Re)&&X.type===wi&&(X.type=fd(Ce));else if(eg(Ce))X.channels=X.channels||4,ig(X,Ce),X.alignment=1,X.needsFree=!0;else if(gi(Ce)){var Br=Ce.data;!Array.isArray(Br)&&X.type===wi&&(X.type=fd(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=Mi[Ie],X.needsFree=!0,mb(X,Br,xe,ge,he,Ce.offset)}else if(rg(Ce)||ng(Ce)||pb(Ce))rg(Ce)||ng(Ce)?X.element=Ce:X.element=Ce.canvas,X.width=X.element.width,X.height=X.element.height,X.channels=4;else if(hb(Ce))X.element=Ce,X.width=Ce.width,X.height=Ce.height,X.channels=4;else if(vb(Ce))X.element=Ce,X.width=Ce.naturalWidth,X.height=Ce.naturalHeight,X.channels=4;else if(gb(Ce))X.element=Ce,X.width=Ce.videoWidth,X.height=Ce.videoHeight,X.channels=4;else if(tg(Ce)){var de=X.width||Ce[0].length,Z=X.height||Ce.length,ae=X.channels;yi(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=cd(X,Se);fr.flatten(Ce,Q,"",Ve),ag(X,Ve),X.alignment=1,X.width=de,X.height=Z,X.channels=ae,X.format=X.internalformat=Mi[ae],X.needsFree=!0}X.type===sl||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=Gs,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 yr(X,Re){var Ce=null;if(qs(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===Qc||X.internalformat===$s||X.internalformat===ll||X.internalformat)}function hn(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 oi(){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 Mn(){this.minFilter=to,this.magFilter=to,this.wrapS=Uo,this.wrapT=Uo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Gs}function ui(X,Re){if("min"in Re){var Ce=Re.min;X.minFilter=ht[Ce],ud.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=js)}}function Wn(X,Re){F.texParameteri(Re,Us,X.minFilter),F.texParameteri(Re,id,X.magFilter),F.texParameteri(Re,Hv,X.wrapS),F.texParameteri(Re,fl,X.wrapT),V.ext_texture_filter_anisotropic&&F.texParameteri(Re,dl,X.anisotropic),X.genMipmaps&&(F.hint(sb,X.mipmapHint),F.generateMipmap(Re))}var oa=0,vn={},gn=J.maxTextureUnits,tr=Array(gn).map(function(){return null});function Ei(X){He.call(this),this.mipmask=0,this.internalformat=Ea,this.id=oa++,this.refCount=1,this.target=X,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Mn,Oe.profile&&(this.stats={size:0})}function Or(X){F.activeTexture(ro),F.bindTexture(X.target,X.texture)}function mn(){var X=tr[0];X?F.bindTexture(X.target,X.texture):F.bindTexture(bi,null)}function Qn(X){var Re=X.texture,Ce=X.unit,Ot=X.target;Ce>=0&&(F.activeTexture(ro+Ce),F.bindTexture(Ot,null),tr[Ce]=null),F.deleteTexture(Re),X.texture=null,X.params=null,X.pixels=null,X.refCount=0,delete vn[X.id],Te.textureCount--}r(Ei.prototype,{bind:function(){var X=this;X.bindCount+=1;var Re=X.unit;if(Re<0){for(var Ce=0;Ce<gn;++Ce){var Ot=tr[Ce];if(Ot){if(Ot.bindCount>0)continue;Ot.unit=-1}tr[Ce]=X,Re=Ce;break}Oe.profile&&Te.maxTextureUnits<Re+1&&(Te.maxTextureUnits=Re+1),X.unit=Re,F.activeTexture(ro+Re),F.bindTexture(X.target,X.texture)}return Re},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Qn(this)}});function Zn(X,Re){var Ce=new Ei(bi);vn[Ce.id]=Ce,Te.textureCount++;function Ot(It,q){var Y=Ce.texInfo;Mn.call(Y);var ne=oi();return typeof It=="number"?typeof q=="number"?pr(ne,It|0,q|0):pr(ne,It|0,It|0):It?(ui(Y,It),yr(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),hn(ne,bi),Wn(Y,bi),mn(),Mr(ne),Oe.profile&&(Ce.stats.size=ra(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,bi,Ie,xe,ge),mn(),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(bi,Ie,Ce.format,xe,ge,0,Ce.format,Ce.type,null)}return mn(),Oe.profile&&(Ce.stats.size=ra(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 Ei(Lo);vn[It.id]=It,Te.cubeCount++;var q=new Array(6);function Y(xe,ge,he,de,Z,ae){var Q,Se=It.texInfo;for(Mn.call(Se),Q=0;Q<6;++Q)q[Q]=oi();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)yr(q[0],xe),yr(q[1],ge),yr(q[2],he),yr(q[3],de),yr(q[4],Z),yr(q[5],ae);else if(ui(Se,xe),xt(It,xe),"faces"in xe){var Ve=xe.faces;for(Q=0;Q<6;++Q)Be(q[Q],It),yr(q[Q],Ve[Q])}else for(Q=0;Q<6;++Q)yr(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)hn(q[Q],Bo+Q);for(Wn(Se,Lo),mn(),Oe.profile&&(It.stats.size=ra(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,Bo+xe,ae,Q,Se),mn(),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(Bo+he,de,It.format,ge>>de,ge>>de,0,It.format,It.type,null);return mn(),Oe.profile&&(It.stats.size=ra(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<gn;++X)F.activeTexture(ro+X),F.bindTexture(bi,null),tr[X]=null;Kn(vn).forEach(Qn),Te.cubeCount=0,Te.textureCount=0}Oe.profile&&(Te.getTotalTextureSize=function(){var X=0;return Object.keys(vn).forEach(function(Re){X+=vn[Re].stats.size}),X});function Fr(){for(var X=0;X<gn;++X){var Re=tr[X];Re&&(Re.bindCount=0,Re.unit=-1,tr[X]=null)}Kn(vn).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===bi)F.texImage2D(bi,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(Bo+sr,Ot,Ce.internalformat,Ce.width>>Ot,Ce.height>>Ot,0,Ce.internalformat,Ce.type,null);Wn(Ce.texInfo,Ce.target)})}function yn(){for(var X=0;X<gn;++X){var Re=tr[X];Re&&(Re.bindCount=0,Re.unit=-1,tr[X]=null),F.activeTexture(ro+X),F.bindTexture(bi,null),F.bindTexture(Lo,null)}}return{create2D:Zn,createCube:ar,clear:vr,getTexture:function(X){return null},restore:Fr,refresh:yn}}var Ca=36161,Hs=32854,og=32855,dd=36194,ug=33189,lg=36168,sg=34041,pd=35907,fg=34836,cg=34842,dg=34843,xi=[];xi[Hs]=2,xi[og]=2,xi[dd]=2,xi[ug]=2,xi[lg]=1,xi[sg]=4,xi[pd]=4,xi[fg]=16,xi[cg]=8,xi[dg]=6;function pg(F,V,J){return xi[F]*V*J}var hg=function(F,V,J,Pe,Le){var Te={rgba4:Hs,rgb565:dd,"rgb5 a1":og,depth:ug,stencil:lg,"depth stencil":sg};V.ext_srgb&&(Te.srgba=pd),V.ext_color_buffer_half_float&&(Te.rgba16f=cg,Te.rgb16f=dg),V.webgl_color_buffer_float&&(Te.rgba32f=fg);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=Hs,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(Ca,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=Hs;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(Ca,ve.renderbuffer),F.renderbufferStorage(Ca,Nt,yt,dt),Le.profile&&(ve.stats.size=pg(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(Ca,ve.renderbuffer),F.renderbufferStorage(Ca,ve.format,yt,dt),Le.profile&&(ve.stats.size=pg(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(){Kn(rt).forEach(function(ft){ft.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(Ca,ft.renderbuffer),F.renderbufferStorage(Ca,ft.format,ft.width,ft.height)}),F.bindRenderbuffer(Ca,null)}return{create:Ft,clear:function(){Kn(rt).forEach(ht)},restore:Ct}},na=36160,hd=36161,Go=3553,qo=34069,Ho=36064,_i=36096,vg=36128,gg=33306,bb=36053,wb=36193,mg=5121,xb=5126,_b=6407,Sb=6408,vd=[];vd[Sb]=4,vd[_b]=3;var Vs=[];Vs[mg]=1,Vs[xb]=4,Vs[wb]=2;function gd(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(na,ke,vt.target,vt.texture._texture.texture,0):F.framebufferRenderbuffer(na,ke,hd,vt.renderbuffer._renderbuffer.renderbuffer))}function ft(ke){var vt=Go,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=hd),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(Go,St,null)}else{var Gt=Le.create({width:ke,height:vt,format:Lt});return Gt._renderbuffer.refCount=0,new ot(hd,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(na,ke.framebuffer);var at=ke.colorAttachments;for(vt=0;vt<at.length;++vt)Ct(Ho+vt,at[vt]);for(vt=at.length;vt<J.maxColorAttachments;++vt)F.framebufferTexture2D(na,Ho+vt,Go,null,0);F.framebufferTexture2D(na,gg,Go,null,0),F.framebufferTexture2D(na,_i,Go,null,0),F.framebufferTexture2D(na,vg,Go,null,0),Ct(_i,ke.depthAttachment),Ct(vg,ke.stencilAttachment),Ct(gg,ke.depthStencilAttachment);var Lt=F.checkFramebufferStatus(na);F.isContextLost(),F.bindFramebuffer(na,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,yr=!0,hn=!0,hr=null,oi=!0,Mr="rgba",Mn="uint8",ui=1,Wn=null,oa=null,vn=null,gn=!1;if(typeof St=="number")lr=St|0,pr=Gt|0||lr;else if(!St)lr=pr=1;else{var tr=St;if("shape"in tr){var Ei=tr.shape;lr=Ei[0],pr=Ei[1]}else"radius"in tr&&(lr=pr=tr.radius),"width"in tr&&(lr=tr.width),"height"in tr&&(pr=tr.height);("color"in tr||"colors"in tr)&&(hr=tr.color||tr.colors),hr||("colorCount"in tr&&(ui=tr.colorCount|0),"colorTexture"in tr&&(oi=!!tr.colorTexture,Mr="rgba4"),"colorType"in tr&&(Mn=tr.colorType,oi||(Mn==="half float"||Mn==="float16"?Mr="rgba16f":(Mn==="float"||Mn==="float32")&&(Mr="rgba32f"))),"colorFormat"in tr&&(Mr=tr.colorFormat,tt.indexOf(Mr)>=0?oi=!0:rt.indexOf(Mr)>=0&&(oi=!1))),("depthTexture"in tr||"depthStencilTexture"in tr)&&(gn=!!(tr.depthTexture||tr.depthStencilTexture)),"depth"in tr&&(typeof tr.depth=="boolean"?yr=tr.depth:(Wn=tr.depth,hn=!1)),"stencil"in tr&&(typeof tr.stencil=="boolean"?hn=tr.stencil:(oa=tr.stencil,yr=!1)),"depthStencil"in tr&&(typeof tr.depthStencil=="boolean"?yr=hn=tr.depthStencil:(vn=tr.depthStencil,yr=!1,hn=!1))}var Or=null,mn=null,Qn=null,Zn=null;if(Array.isArray(hr))Or=hr.map(ft);else if(hr)Or=[ft(hr)];else for(Or=new Array(ui),pt=0;pt<ui;++pt)Or[pt]=Qe(lr,pr,oi,Mr,Mn);for(lr=lr||Or[0].width,pr=pr||Or[0].height,Wn?mn=ft(Wn):yr&&!hn&&(mn=Qe(lr,pr,gn,"depth","uint32")),oa?Qn=ft(oa):hn&&!yr&&(Qn=Qe(lr,pr,!1,"stencil","uint8")),vn?Zn=ft(vn):!Wn&&!oa&&hn&&yr&&(Zn=Qe(lr,pr,gn,"depth stencil","depth stencil")),pt=0;pt<Or.length;++pt)Ft(Or[pt]),Or[pt]&&Or[pt].texture&&vd[Or[pt].texture._texture.format]*Vs[Or[pt].texture._texture.type];return Ft(mn),Ft(Qn),Ft(Zn),yt(at),at.width=lr,at.height=pr,at.colorAttachments=Or,at.depthAttachment=mn,at.stencilAttachment=Qn,at.depthStencilAttachment=Zn,Lt.color=Or.map(ve),Lt.depth=ve(mn),Lt.stencil=ve(Qn),Lt.depthStencil=ve(Zn),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,yr=0;yr<pr.length;++yr)Me(pr[yr],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",yr="uint8",hn=1;if(typeof ur=="number")pt=ur|0;else if(!ur)pt=1;else{var hr=ur;if("shape"in hr){var oi=hr.shape;pt=oi[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&&(hn=hr.colorCount|0),"colorType"in hr&&(yr=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(hn);var Mn={radius:pt,format:pr,type:yr};for(St=0;St<hn;++St)Mr[St]=Pe.createCube(Mn)}for(Gt.color=Array(Mr.length),St=0;St<Mr.length;++St){var ui=Mr[St];pt=pt||ui.width,Gt.color[St]={target:qo,data:Mr[St]}}for(St=0;St<6;++St){for(var Wn=0;Wn<Mr.length;++Wn)Gt.color[Wn].target=qo+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,Kn(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(){Kn(it).forEach(dt)},restore:xt})}var md=5126,yg=34962,Ys=34963;function yd(){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=md,this.offset=0,this.stride=0,this.divisor=0}function Eb(F,V,J,Pe,Le,Te,Oe){for(var tt=J.maxAttributes,rt=new Array(tt),ot=0;ot<tt;++ot)rt[ot]=new yd;var ht=0,Ft={},Ct={Record:yd,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(Ys,Oe.elements.buffer.buffer):F.bindBuffer(Ys,null)}Ct.currentVAO=He}}function Ge(){Kn(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(yg,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(Ys,at.buffer.buffer):F.bindBuffer(Ys,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&&Kn(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=cn[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 yd,lr=Gt.data||Gt;if(Array.isArray(lr)||fn(lr)||gi(lr)){var pr;Be.buffers[St]&&(pr=Be.buffers[St],fn(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,yg,!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=tl[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 yr=0;yr<Be.buffers.length;++yr)!Lt[yr]&&Be.buffers[yr]&&(Be.buffers[yr].destroy(),Be.buffers[yr]=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 bd=35632,Ab=35633,Cb=35718,wd=35721;function bg(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===bd?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(bd,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,Cb);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,wd);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);Kn(Le).forEach(ve),Le={},Kn(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 wg=6408,xd=5121,Tb=3333,Rb=5126;function xg(F,V,J,Pe,Le,Te,Oe){function tt(ht){var Ft;V.next===null?Ft=xd:Ft=V.next.colorAttachments[0].texture._texture.type;var Ct=0,ft=0,Qe=Pe.framebufferWidth,ve=Pe.framebufferHeight,Me=null;fn(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===xd?Me=new Uint8Array(et):Ft===Rb&&(Me=Me||new Float32Array(et))),F.pixelStorei(Tb,4),F.readPixels(Ct,ft,Qe,ve,wg,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 _g(F){return _d(Sg(Sd(F)))}function Sg(F){return Ib(kb(Ob(F),F.length*8))}function _d(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 Sd(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 Ob(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 Ib(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 Di(F,V){return F>>>V|F<<32-V}function Eg(F,V){return F>>>V}function Pb(F,V,J){return F&V^~F&J}function Ag(F,V,J){return F&V^F&J^V&J}function Cg(F){return Di(F,2)^Di(F,13)^Di(F,22)}function Ed(F){return Di(F,6)^Di(F,11)^Di(F,25)}function Tg(F){return Di(F,7)^Di(F,18)^Eg(F,3)}function Xs(F){return Di(F,17)^Di(F,19)^Eg(F,10)}var Ks=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 kb(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]=Kr(Kr(Kr(Xs(Pe[ft-2]),Pe[ft-7]),Tg(Pe[ft-15])),Pe[ft-16]),Qe=Kr(Kr(Kr(Kr(Ft,Ed(rt)),Pb(rt,ot,ht)),Ks[ft]),Pe[ft]),ve=Kr(Cg(Le),Ag(Le,Te,Oe)),Ft=ht,ht=ot,ot=rt,rt=Kr(tt,Qe),tt=Oe,Oe=Te,Te=Le,Le=Kr(Qe,ve);J[0]=Kr(Le,J[0]),J[1]=Kr(Te,J[1]),J[2]=Kr(Oe,J[2]),J[3]=Kr(tt,J[3]),J[4]=Kr(rt,J[4]),J[5]=Kr(ot,J[5]),J[6]=Kr(ht,J[6]),J[7]=Kr(Ft,J[7])}return J}function Kr(F,V){var J=(F&65535)+(V&65535),Pe=(F>>16)+(V>>16)+(J>>16);return Pe<<16|J&65535}function ao(F){return Array.prototype.slice.call(F)}function Vo(F){return ao(F).join("")}function Mb(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,ao(arguments))}var Me=[];function et(){var it="v"+J++;return Me.push(it),arguments.length>0&&(Qe.push(it,"="),Qe.push.apply(Qe,ao(arguments)),Qe.push(";")),it}return r(ve,{def:et,toString:function(){return Vo([Me.length>0?"var "+Me.join(",")+";":"",Vo(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,ao(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=Vo(arguments),ve=rt(),Me=rt(),et=ve.toString,it=Me.toString;return r(ve,{then:function(){return ve.apply(ve,ao(arguments)),this},else:function(){return Me.apply(Me,ao(arguments)),this},toString:function(){var Ge=it();return Ge&&(Ge="else{"+Ge+"}"),Vo(["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 Vo(["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=Vo(Qe).replace(/;/g,`;
1156
- `).replace(/}/g,`}
1157
- `).replace(/{/g,`{
1158
- `),Me;if(V&&(Me=_g(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 oo="xyzw".split(""),Ad=5121,uo=1,pl=2,hl=0,Qs=1,Cd=2,Zs=3,lo=4,Td=5,Rg=6,Og="dither",Ig="blend.enable",Pg="blend.color",Js="blend.equation",ef="blend.func",Rd="depth.enable",Od="depth.func",kg="depth.range",vl="depth.mask",Id="colorMask",Mg="cull.enable",Pd="cull.face",tf="frontFace",kd="lineWidth",gl="polygonOffset.enable",Yo="polygonOffset.offset",Md="sample.alpha",Dd="sample.enable",ml="sample.coverage",ai="stencil.enable",Fd="stencil.mask",Nd="stencil.func",yl="stencil.opFront",so="stencil.opBack",Dg="scissor.enable",rf="scissor.box",ia="viewport",fo="profile",Ta="framebuffer",bl="vert",nf="frag",Xo="elements",Ko="primitive",dn="count",af="offset",of="instances",Si="vao",wl="Width",xl="Height",Qo=Ta+wl,Zo=Ta+xl,Db=ia+wl,Fg=ia+xl,Ld="drawingBuffer",Bd=Ld+wl,$d=Ld+xl,Fb=[ef,Js,Nd,yl,so,ml,ia,rf,Yo],co=34962,zd=34963,Nb=2884,Lb=3042,Ng=3024,Lg=2960,uf=2929,Bg=3089,lf=32823,$g=32926,_l=32928,qr=5126,sf=35664,aa=35665,Jo=35666,ff=5124,Ud=35667,Sl=35668,eu=35669,jd=35670,Wd=35671,Gd=35672,qd=35673,Hd=35674,El=35675,Vd=35676,Yd=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)||fn(F)||gi(F)}function $e(F){return F.sort(function(V,J){return V===ia?-1:J===ia?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===hl){var Pe=F.data.length;return new Ye(!0,Pe>=1,Pe>=2,V)}else if(J===lo){var Le=F.data;return new Ye(Le.thisDep,Le.contextDep,Le.propDep,V)}else{if(J===Td)return new Ye(!1,!1,!1,V);if(J===Rg){for(var Te=!1,Oe=!1,tt=!1,rt=0;rt<F.data.length;++rt){var ot=F.data[rt];if(ot.type===Qs)tt=!0;else if(ot.type===Cd)Oe=!0;else if(ot.type===Zs)Te=!0;else if(ot.type===hl){Te=!0;var ht=ot.data;ht>=1&&(Oe=!0),ht>=2&&(tt=!0)}else ot.type===lo&&(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===Zs,J===Cd,J===Qs,V)}}var wt=new Ye(!1,!1,!1,function(){});function Xt(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(Og,Ng),vt(Ig,Lb),at(Pg,"blendColor",[0,0,0,0]),at(Js,"blendEquationSeparate",[G,G]),at(ef,"blendFuncSeparate",[W,$,W,$]),vt(Rd,uf,!0),at(Od,"depthFunc",oe),at(kg,"depthRange",[0,1]),at(vl,"depthMask",!0),at(Id,Id,[!0,!0,!0,!0]),vt(Mg,Nb),at(Pd,"cullFace",m),at(tf,tf,x),at(kd,kd,1),vt(gl,lf),at(Yo,"polygonOffset",[0,0]),vt(Md,$g),vt(Dd,_l),at(ml,"sampleCoverage",[1,!1]),vt(ai,Lg),at(Fd,"stencilMask",-1),at(Nd,"stencilFunc",[k,0,-1]),at(yl,"stencilOpSeparate",[p,B,B,B]),at(so,"stencilOpSeparate",[m,B,B,B]),vt(Dg,Bg),at(rf,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),at(ia,ia,[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:cn,compareFuncs:re,blendFuncs:K,blendEquations:et,stencilOps:fe,glTypes:tl,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=Mb({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 hl: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 Qs:return ae.def(xe.props,Q.data);case Cd:return ae.def(xe.context,Q.data);case Zs:return ae.def("this",Q.data);case lo:return Q.data.append(q,ae),Q.data.ref;case Td:return Q.data.toString();case Rg: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(fo in Y){var xe=!!Y[fo];Ie=Xe(function(he,de){return xe}),Ie.enable=xe}else if(fo in ne){var ge=ne[fo];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(Ta in ne){var xe=ne[Ta];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,"."+Qo,Z+".width"),de.set(Q,"."+Zo,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,"."+Qo,ae+"."+Bd),de.set(ae,"."+Zo,ae+"."+$d),"null"})}else if(Ta in Ie){var ge=Ie[Ta];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,"."+Qo,Se+"?"+Se+".width:"+De+"."+Bd),de.set(De,"."+Zo,Se+"?"+Se+".height:"+De+"."+$d),Se})}else return null}function yr(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,".",Qo,"-",Se));var Pt=zt;return"height"in ae||(Pt=Tt.def(jt,".",Zo,"-",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"),Jt=Tt.def('"width" in ',jt,"?",jt,".width|0:","(",At,".",Qo,"-",Pt,")"),$r=Tt.def('"height" in ',jt,"?",jt,".height|0:","(",At,".",Zo,"-",Mt,")");return[Pt,Mt,Jt,$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,".",Qo),Tt.def(jt,".",Zo)]}):null}var he=ge(ia);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,"."+Db,Q[2]),ae.set(Se,"."+Fg,Q[3]),Q})}return{viewport:he,scissor_box:ge(rf)}}function hn(q,Y){var ne=q.static,Ie=typeof ne[nf]=="string"&&typeof ne[bl]=="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(nf),de=ge(bl),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,".",nf);var zt;de?zt=de.append(Q,Se):zt=Se.def(De,".",bl);var Dt=De+".program("+zt+","+Ve;return Se.def(Dt+")")}),{frag:he,vert:de,progVar:ae,program:Z}}function oi(q,Y){var ne=q.static,Ie=q.dynamic,xe={},ge=!1;function he(){if(Si in ne){var Tt=ne[Si];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(Si in Ie){ge=!0;var jt=Ie[Si];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(Xo in ne){var Tt=ne[Xo];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,Jt){if(Tt){var $r=Mt.link(Tt);return Mt.ELEMENTS=$r,$r}return Mt.ELEMENTS=null,null});return At.value=Tt,At}else if(Xo in Ie){Z=!0;var Pt=Ie[Xo];return ct(Pt,function(Mt,Jt){var $r=Mt.shared,li=$r.isBufferArgs,po=$r.elements,tu=Mt.invoke(Jt,Pt),ru=Jt.def("null"),Fi=Jt.def(li,"(",tu,")"),Xd=Mt.cond(Fi).then(ru,"=",po,".createStream(",tu,");").else(ru,"=",po,".getElements(",tu,");");return Jt.entry(Xd),Jt.exit(Mt.cond(Fi).then(po,".destroyStream(",ru,");")),Mt.ELEMENTS=ru,ru})}else if(ge)return new Ye(de.thisDep,de.contextDep,de.propDep,function(Mt,Jt){return Jt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.elements+".getElements("+Mt.shared.vao+".currentVAO.elements):null")});return null}var Q=ae();function Se(){if(Ko in ne){var Tt=ne[Ko];return xe.primitive=Tt,Xe(function(At,Pt){return cn[Tt]})}else if(Ko in Ie){var jt=Ie[Ko];return ct(jt,function(At,Pt){var Mt=At.constants.primTypes,Jt=At.invoke(Pt,jt);return Pt.def(Mt,"[",Jt,"]")})}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,Jt){return jt&&(Mt.OFFSET=At),At})}else if(Tt in Ie){var Pt=Ie[Tt];return ct(Pt,function(Mt,Jt){var $r=Mt.invoke(Jt,Pt);return jt&&(Mt.OFFSET=$r),$r})}else if(jt){if(Z)return Xe(function(Mt,Jt){return Mt.OFFSET=0,0});if(ge)return new Ye(de.thisDep,de.contextDep,de.propDep,function(Mt,Jt){return Jt.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,Jt){return Jt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.instances:-1")});return null}var Ve=De(af,!0);function zt(){if(dn in ne){var Tt=ne[dn]|0;return xe.count=Tt,Xe(function(){return Tt})}else if(dn in Ie){var jt=Ie[dn];return ct(jt,function(Jt,$r){var li=Jt.invoke($r,jt);return li})}else if(Z)if(ut(Q)){if(Q)return Ve?new Ye(Ve.thisDep,Ve.contextDep,Ve.propDep,function(Jt,$r){var li=$r.def(Jt.ELEMENTS,".vertCount-",Jt.OFFSET);return li}):Xe(function(Jt,$r){return $r.def(Jt.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(Jt,$r){var li=Jt.ELEMENTS;return Jt.OFFSET?$r.def(li,"?",li,".vertCount-",Jt.OFFSET,":-1"):$r.def(li,"?",li,".vertCount:-1")});return Pt}else if(ge){var Mt=new Ye(de.thisDep,de.contextDep,de.propDep,function(Jt,$r){return $r.def(Jt.shared.vao,".currentVAO?",Jt.shared.vao,".currentVAO.count:-1")});return Mt}return null}var Dt=Se(),_t=zt(),Bt=De(of,!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 Ig:case Og:case ai:case Rd:case Dg:case gl:case Md:case Dd:case vl:return de(function(Z){return Z},function(Z,ae,Q){return Q});case Od:return de(function(Z){return re[Z]},function(Z,ae,Q){var Se=Z.constants.compareFuncs;return ae.def(Se,"[",Q,"]")});case kg: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 ef: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 Js: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 Pg: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 Fd:return de(function(Z){return Z|0},function(Z,ae,Q){return ae.def(Q,"|0")});case Nd: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 yl:case so:return de(function(Z){var ae=Z.fail||"keep",Q=Z.zfail||"keep",Se=Z.zpass||"keep";return[ge===so?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===so?m:p,De("fail"),De("zfail"),De("zpass")]});case Yo: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 Pd: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 kd:return de(function(Z){return Z},function(Z,ae,Q){return Q});case tf:return de(function(Z){return ce[Z]},function(Z,ae,Q){return ae.def(Q+'==="cw"?'+y+":"+x)});case Id:return de(function(Z){return Z.map(function(ae){return!!ae})},function(Z,ae,Q){return ee(4,function(Se){return"!!"+Q+"["+Se+"]"})});case ml: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 Mn(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 yi(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 ui(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=uo,Z.buffer=Le.getBuffer(Le.create(he,co,!1,!0)),Z.type=0;else{var ae=Le.getBuffer(he);if(ae)Z.state=uo,Z.buffer=ae,Z.type=0;else if("constant"in he){var Q=he.constant;Z.buffer="null",Z.state=pl,typeof Q=="number"?Z.x=Q:oo.forEach(function(Bt,Tt){Tt<Q.length&&(Z[Bt]=Q[Tt])})}else{ie(he.buffer)?ae=Le.getBuffer(Le.create(he.buffer,co,!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=tl[he.type]);var _t=he.divisor|0;Z.buffer=ae,Z.state=uo,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=uo,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(",co,",",Q,");",Tt,"=",Bt,".dtype;","}else{",Bt,"=",zt,".getBuffer(",Q,");","if(",Bt,"){",Tt,"=",Bt,".dtype;",'}else if("constant" in ',Q,"){",Dt.state,"=",pl,";","if(typeof "+Q+'.constant === "number"){',Dt[oo[0]],"=",Q,".constant;",oo.slice(1).map(function(At){return Dt[At]}).join("="),"=0;","}else{",oo.map(function(At,Pt){return Dt[At]+"="+Q+".constant.length>"+Pt+"?"+Q+".constant["+Pt+"]:0;"}).join(""),"}}else{","if(",Ve,"(",Q,".buffer)){",Bt,"=",zt,".createStream(",co,",",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 Wn(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 oa(q,Y,ne,Ie,xe){q.static,q.dynamic;var ge=hn(q,Y),he=pr(q),de=yr(q,he),Z=oi(q),ae=Mr(q),Q=hr(q,xe,ge);function Se(Bt){var Tt=de[Bt];Tt&&(ae[Bt]=Tt)}Se(ia),Se(ke(rf));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=Mn(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=ui(Y),Ve.context=Wn(Ie),Ve}function vn(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 gn(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 tr(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 Ei(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(yi(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 mn(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 Qn(q,Y,ne,Ie,xe){var ge=q.shared;function he(Z){switch(Z){case sf:case Ud:case Wd:return 2;case aa:case Sl:case Gd:return 3;case Jo:case eu:case qd: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(Jt){return Ve+"."+Jt+"!=="+Q[Jt]}).join("||"),"){",Se,".bindBuffer(",co,",",Dt,".buffer);",Se,".vertexAttribPointer(",[De,Pt,At,Q.normalized,Q.stride,Q.offset],");",Ve,".type=",At,";",Ve,".size=",Pt,";",Bt.map(function(Jt){return Ve+"."+Jt+"="+Q[Jt]+";"}).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(",oo.map(function(At,Pt){return Ve+"."+At+"!=="+_t[Pt]}).join("||"),"){",Se,".vertexAttrib4f(",De,",",_t,");",oo.map(function(At,Pt){return Ve+"."+At+"="+_t[Pt]+";"}).join(""),"}")}zt===uo?Tt():zt===pl?jt():(Y("if(",zt,"===",uo,"){"),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 Zn(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===Yd||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===Hd||De===El||De===Vd){var jt=q.global.def("new Float32Array(["+Array.prototype.slice.call(Bt)+"])"),At=2;De===El?At=3:De===Vd&&(At=4),Y(de,".uniformMatrix",At,"fv(",Dt,",false,",jt,");")}else{switch(De){case qr:Z="1f";break;case sf:Z="2f";break;case aa:Z="3f";break;case Jo:Z="4f";break;case jd:Z="1i";break;case ff:Z="1i";break;case Wd:Z="2i";break;case Ud:Z="2i";break;case Gd:Z="3i";break;case Sl:Z="3i";break;case qd:Z="4i";break;case eu:Z="4i";break}Y(de,".uniform",Z,"(",Dt,",",yi(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===Yd?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 Yd:case l:var Mt=Y.def(_t,"._texture");Y(de,".uniform1i(",Dt,",",Mt,".bind());"),Y.exit(Mt,".unbind();");continue;case ff:case jd:Z="1i";break;case Ud:case Wd:Z="2i",Pt=2;break;case Sl:case Gd:Z="3i",Pt=3;break;case eu:case qd:Z="4i",Pt=4;break;case qr:Z="1f";break;case sf:Z="2f",Pt=2;break;case aa:Z="3f",Pt=3;break;case Jo:Z="4f",Pt=4;break;case Hd:Z="Matrix2fv";break;case El:Z="Matrix3fv";break;case Vd:Z="Matrix4fv";break}if(Z.charAt(0)==="M"){Y(de,".uniform",Z,"(",Dt,",");var Jt=Math.pow(De-Hd+2,2),$r=q.global.def("new Float32Array(",Jt,")");Array.isArray(_t)?Y("false,(",ee(Jt,function(Fi){return $r+"["+Fi+"]="+_t[Fi]}),",",$r,")"):Y("false,(Array.isArray(",_t,")||",_t," instanceof Float32Array)?",_t,":(",ee(Jt,function(Fi){return $r+"["+Fi+"]="+_t+"["+Fi+"]"}),",",$r,")"),Y(");")}else if(Pt>1){for(var li=[],po=[],tu=0;tu<Pt;++tu)Array.isArray(_t)?po.push(_t[tu]):po.push(Y.def(_t+"["+tu+"]")),ge&&li.push(Y.def());ge&&Y("if(!",q.batchId,"||",li.map(function(Fi,Xd){return Fi+"!=="+po[Xd]}).join("||"),"){",li.map(function(Fi,Xd){return Fi+"="+po[Xd]+";"}).join("")),Y(de,".uniform",Z,"(",Dt,",",po.join(","),");"),ge&&Y("}")}else{if(ge){var ru=Y.def();Y("if(!",q.batchId,"||",ru,"!==",_t,"){",ru,"=",_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,Jt=Y;return Pt?((Pt.contextDep&&Ie.contextDynamic||Pt.propDep)&&(Jt=ne),Mt=Pt.append(q,Jt),de.elementsActive&&Jt("if("+Mt+")"+ge+".bindBuffer("+zd+","+Mt+".buffer.buffer);")):(Mt=Jt.def(),Jt(Mt,"=",he,".",Xo,";","if(",Mt,"){",ge,".bindBuffer(",zd,",",Mt,".buffer.buffer);}","else if(",xe.vao,".currentVAO){",Mt,"=",q.shared.elements+".getElements("+xe.vao,".currentVAO.elements);",yt?"":"if("+Mt+")"+ge+".bindBuffer("+zd+","+Mt+".buffer.buffer);","}")),Mt}function ae(){var Pt=de.count,Mt,Jt=Y;return Pt?((Pt.contextDep&&Ie.contextDynamic||Pt.propDep)&&(Jt=ne),Mt=Pt.append(q,Jt)):Mt=Jt.def(he,".",dn),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(Ko),Ve=Se(af),zt=ae();if(typeof zt=="number"){if(zt===0)return}else ne("if(",zt,"){"),ne.exit("}");var Dt,_t;it&&(Dt=Se(of),_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+"-"+Ad+")>>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+"-"+Ad+")>>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);"),Qn(q,Y,ne,Ie.attributes,function(){return!0})),Zn(q,Y,ne,Ie.uniforms,function(){return!0},!1),ar(q,Y,Y,ne)}function yn(q,Y){var ne=q.proc("draw",1);Or(q,ne),vn(q,ne,Y.context),gn(q,ne,Y.framebuffer),tr(q,ne,Y),Ei(q,ne,Y.state),mn(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}Qn(q,Y,ne,Ie.attributes,xe),Zn(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&&vn(q,Q,ne.context),ne.needsFramebuffer&&gn(q,Q,ne.framebuffer),Ei(q,Q,ne.state,Se),ne.profile&&Se(ne.profile)&&mn(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);"),Qn(q,ae,ne,Ie.attributes,De),Qn(q,Q,ne,Ie.attributes,Se)),Zn(q,ae,ne,Ie.uniforms,De,!1),Zn(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||(vn(q,ne,Y.context),xe=!1);var ge=Y.framebuffer,he=!1;ge?(ge.propDep?Ie=he=!0:ge.contextDep&&Ie&&(he=!0),he||gn(q,ne,ge)):gn(q,ne,null),Y.state.viewport&&Y.state.viewport.propDep&&(Ie=!0);function de(Ve){return Ve.contextDep&&Ie||Ve.propDep}tr(q,ne,Y),Ei(q,ne,Y.state,function(Ve){return!de(Ve)}),(!Y.profile||!de(Y.profile))&&mn(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(vn(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);yi(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)}),mn(q,ne,Y,!0,!0),[Xo,af,dn,of,Ko].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(bl),he(nf),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"||yi(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(lo,{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)}),Fb.forEach(function(de){Br(ge,q,de)});var he=oa(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})),yn(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;"),gn(q,Y),gn(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(",co,",",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,"("),yi(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,Kt=256,er=1024,dr=34962,kr="webglcontextlost",Hr="webglcontextrestored",en=1,_n=2,kn=3;function pn(F,V){for(var J=0;J<F.length;++J)if(F[J]===V)return J;return-1}function jn(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=Rs(J,rt),et=Fv(J,Oe,V,yt),it=Ds(J,rt,et,Oe),Ge=Eb(J,rt,Me,Oe,et,it,ve);function yt(ar){return Ge.destroyBuffer(ar)}var dt=bg(J,Te,Oe,V),Nt=yb(J,rt,Me,function(){xt.procs.poll()},ft,Oe,V),He=hg(J,rt,Me,Oe,V),Be=gd(J,rt,Me,Nt,He,Oe),xt=Xt(J,Te,rt,Me,et,it,Nt,Be,Qe,Ge,dt,ve,ft,ot,tt,V),ke=xg(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),gn();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 yr(){pt&&(A.cancel(lr),pt=null)}function hn(ar){ar.preventDefault(),yr(),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,hn,!1),at.addEventListener(Hr,hr,!1));function oi(){Lt.length=0,yr(),at&&(at.removeEventListener(kr,hn),at.removeEventListener(Hr,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 yn=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,yn,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 Mn=Be.setFBO=Mr({framebuffer:_.define.call(null,en,"framebuffer")});function ui(ar,vr){var Fr=0;xt.procs.poll();var yn=vr.color;yn&&(J.clearColor(+yn[0]||0,+yn[1]||0,+yn[2]||0,+yn[3]||0),Fr|=lt),"depth"in vr&&(J.clearDepth(+vr.depth),Fr|=Kt),"stencil"in vr&&(J.clearStencil(vr.stencil|0),Fr|=er),J.clear(Fr)}function Wn(ar){if("framebuffer"in ar)if(ar.framebuffer&&ar.framebuffer_reglType==="framebufferCube")for(var vr=0;vr<6;++vr)Mn(r({framebuffer:ar.framebuffer.faces[vr]},ar),ui);else Mn(ar,ui);else ui(null,ar)}function oa(ar){Lt.push(ar);function vr(){var Fr=pn(Lt,ar);function yn(){var X=pn(Lt,yn);Lt[X]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&yr()}Lt[Fr]=yn}return pr(),{cancel:vr}}function vn(){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 gn(){ft.tick+=1,ft.time=Ei(),vn(),xt.procs.poll()}function tr(){Nt.refresh(),vn(),xt.procs.refresh(),ot&&ot.update()}function Ei(){return(b()-ht)/1e3}tr();function Or(ar,vr){var Fr;switch(ar){case"frame":return oa(vr);case"lost":Fr=ur;break;case"restore":Fr=St;break;case"destroy":Fr=Gt;break}return Fr.push(vr),{cancel:function(){for(var yn=0;yn<Fr.length;++yn)if(Fr[yn]===vr){Fr[yn]=Fr[Fr.length-1],Fr.pop();return}}}}function mn(){return tt}function Qn(ar){Object.entries(ar).forEach(function(vr){tt[vr[0]]=vr[1]})}var Zn=r(Mr,{clear:Wn,prop:_.define.bind(null,en),context:_.define.bind(null,_n),this:_.define.bind(null,kn),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:oa,on:Or,limits:Me,hasExtension:function(ar){return Me.extensions.indexOf(ar.toLowerCase())>=0},read:ke,destroy:oi,_gl:J,_refresh:tr,poll:function(){gn(),ot&&ot.update()},now:Ei,stats:Oe,getCachedCode:mn,preloadCachedCode:Qn});return V.onDone(null,Zn),Zn}return jn})})(F6);var cse=Ku,dse=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},bk(t)?t={container:t}:pse(t)?t={container:t}:hse(t)?t={gl:t}:t=cse(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=Ar.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}bk(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=wk(),t.container.appendChild(t.canvas),yk(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=wk(),t.container.appendChild(t.canvas),yk(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 yk(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Ar.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Ar.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 bk(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function pse(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function hse(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function wk(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var vse=D6,gse=[32,126],mse=yse;function yse(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||gse;if(n&&typeof n!="string"&&(n=vse(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={},Xr={},rT=32;Xr.INT_BITS=rT;Xr.INT_MAX=2147483647;Xr.INT_MIN=-1<<rT-1;Xr.sign=function(e){return(e>0)-(e<0)};Xr.abs=function(e){var t=e>>rT-1;return(e^t)-t};Xr.min=function(e,t){return t^(e^t)&-(e<t)};Xr.max=function(e,t){return e^(e^t)&-(e<t)};Xr.isPow2=function(e){return!(e&e-1)&&!!e};Xr.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};Xr.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};Xr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function N6(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}Xr.countTrailingZeros=N6;Xr.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};Xr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Xr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var $p=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}})($p);Xr.reverse=function(e){return $p[e&255]<<24|$p[e>>>8&255]<<16|$p[e>>>16&255]<<8|$p[e>>>24&255]};Xr.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};Xr.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};Xr.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};Xr.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};Xr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>N6(e)+1};function L6(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]=L6(e,t,r+1);return i}function bse(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function wse(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return bse(e|0,t);break;case"object":if(typeof e.length=="number")return L6(e,t,0);break}return[]}var xse=wse,B6={},q1={};q1.byteLength=Ese;q1.toByteArray=Cse;q1.fromByteArray=Ose;var ka=[],Bi=[],_se=typeof Uint8Array<"u"?Uint8Array:Array,W_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var bf=0,Sse=W_.length;bf<Sse;++bf)ka[bf]=W_[bf],Bi[W_.charCodeAt(bf)]=bf;Bi["-".charCodeAt(0)]=62;Bi["_".charCodeAt(0)]=63;function $6(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 Ese(e){var t=$6(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Ase(e,t,r){return(t+r)*3/4-r}function Cse(e){var t,r=$6(e),n=r[0],i=r[1],a=new _se(Ase(e,n,i)),o=0,u=i>0?n-4:n,s;for(s=0;s<u;s+=4)t=Bi[e.charCodeAt(s)]<<18|Bi[e.charCodeAt(s+1)]<<12|Bi[e.charCodeAt(s+2)]<<6|Bi[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Bi[e.charCodeAt(s)]<<2|Bi[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=Bi[e.charCodeAt(s)]<<10|Bi[e.charCodeAt(s+1)]<<4|Bi[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function Tse(e){return ka[e>>18&63]+ka[e>>12&63]+ka[e>>6&63]+ka[e&63]}function Rse(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(Tse(n));return i.join("")}function Ose(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,u=r-n;o<u;o+=a)i.push(Rse(e,o,o+a>u?u:o+a));return n===1?(t=e[r-1],i.push(ka[t>>2]+ka[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ka[t>>10]+ka[t>>4&63]+ka[t<<2&63]+"=")),i.join("")}var nT={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */nT.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)};nT.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};/*!
1159
- * The buffer module from node.js, for the browser.
1160
- *
1161
- * @author Feross Aboukhadijeh <https://feross.org>
1162
- * @license MIT
1163
- */(function(e){var t=q1,r=nT;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,Zt=Math.min(ze,qt),nr=this.slice(le,Ne),mr=C.slice(P,U),_r=0;_r<Zt;++_r)if(nr[_r]!==mr[_r]){ze=nr[_r],qt=mr[_r];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 Zt(ba,Xn){return Ne===1?ba[Xn]:ba.readUInt16BE(Xn*Ne)}var nr;if(le){var mr=-1;for(nr=P;nr<ze;nr++)if(Zt(I,nr)===Zt(C,mr===-1?0:nr-mr)){if(mr===-1&&(mr=nr),nr-mr+1===qt)return mr*Ne}else mr!==-1&&(nr-=nr-mr),mr=-1}else for(P+qt>ze&&(P=ze-qt),nr=P;nr>=0;nr--){for(var _r=!0,an=0;an<qt;an++)if(Zt(I,nr+an)!==Zt(C,an)){_r=!1;break}if(_r)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 Zt,nr,mr,_r;switch(qt){case 1:Ne<128&&(ze=Ne);break;case 2:Zt=I[le+1],(Zt&192)===128&&(_r=(Ne&31)<<6|Zt&63,_r>127&&(ze=_r));break;case 3:Zt=I[le+1],nr=I[le+2],(Zt&192)===128&&(nr&192)===128&&(_r=(Ne&15)<<12|(Zt&63)<<6|nr&63,_r>2047&&(_r<55296||_r>57343)&&(ze=_r));break;case 4:Zt=I[le+1],nr=I[le+2],mr=I[le+3],(Zt&192)===128&&(nr&192)===128&&(mr&192)===128&&(_r=(Ne&15)<<18|(Zt&63)<<12|(nr&63)<<6|mr&63,_r>65535&&_r<1114112&&(ze=_r))}}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,Zt=0;for(this[P]=C&255;++ze<U&&(qt*=256);)C<0&&Zt===0&&this[P+ze-1]!==0&&(Zt=1),this[P+ze]=(C/qt>>0)-Zt&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,Zt=0;for(this[P+ze]=C&255;--ze>=0&&(qt*=256);)C<0&&Zt===0&&this[P+ze+1]!==0&&(Zt=1),this[P+ze]=(C/qt>>0)-Zt&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),Zt=qt.length;if(Zt===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ze=0;ze<U-P;++ze)this[ze+P]=qt[ze%Zt]}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}})(B6);var ju=Xr,Fn=xse,z6=B6.Buffer;Ar.__TYPEDARRAY_POOL||(Ar.__TYPEDARRAY_POOL={UINT8:Fn([32,0]),UINT16:Fn([32,0]),UINT32:Fn([32,0]),BIGUINT64:Fn([32,0]),INT8:Fn([32,0]),INT16:Fn([32,0]),INT32:Fn([32,0]),BIGINT64:Fn([32,0]),FLOAT:Fn([32,0]),DOUBLE:Fn([32,0]),DATA:Fn([32,0]),UINT8C:Fn([32,0]),BUFFER:Fn([32,0])});var Ise=typeof Uint8ClampedArray<"u",Pse=typeof BigUint64Array<"u",kse=typeof BigInt64Array<"u",tn=Ar.__TYPEDARRAY_POOL;tn.UINT8C||(tn.UINT8C=Fn([32,0]));tn.BIGUINT64||(tn.BIGUINT64=Fn([32,0]));tn.BIGINT64||(tn.BIGINT64=Fn([32,0]));tn.BUFFER||(tn.BUFFER=Fn([32,0]));var H1=tn.DATA,V1=tn.BUFFER;wr.free=function(t){if(z6.isBuffer(t))V1[ju.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=ju.log2(r)|0;H1[n].push(t)}};function U6(e){if(!!e){var t=e.length||e.byteLength,r=ju.log2(t);H1[r].push(e)}}function Mse(e){U6(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=Mse;wr.freeArrayBuffer=U6;wr.freeBuffer=function(t){V1[ju.log2(t.length)].push(t)};wr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return vi(t);switch(r){case"uint8":return iT(t);case"uint16":return j6(t);case"uint32":return W6(t);case"int8":return G6(t);case"int16":return q6(t);case"int32":return H6(t);case"float":case"float32":return V6(t);case"double":case"float64":return Y6(t);case"uint8_clamped":return X6(t);case"bigint64":return Q6(t);case"biguint64":return K6(t);case"buffer":return J6(t);case"data":case"dataview":return Z6(t);default:return null}return null};function vi(t){var t=ju.nextPow2(t),r=ju.log2(t),n=H1[r];return n.length>0?n.pop():new ArrayBuffer(t)}wr.mallocArrayBuffer=vi;function iT(e){return new Uint8Array(vi(e),0,e)}wr.mallocUint8=iT;function j6(e){return new Uint16Array(vi(2*e),0,e)}wr.mallocUint16=j6;function W6(e){return new Uint32Array(vi(4*e),0,e)}wr.mallocUint32=W6;function G6(e){return new Int8Array(vi(e),0,e)}wr.mallocInt8=G6;function q6(e){return new Int16Array(vi(2*e),0,e)}wr.mallocInt16=q6;function H6(e){return new Int32Array(vi(4*e),0,e)}wr.mallocInt32=H6;function V6(e){return new Float32Array(vi(4*e),0,e)}wr.mallocFloat32=wr.mallocFloat=V6;function Y6(e){return new Float64Array(vi(8*e),0,e)}wr.mallocFloat64=wr.mallocDouble=Y6;function X6(e){return Ise?new Uint8ClampedArray(vi(e),0,e):iT(e)}wr.mallocUint8Clamped=X6;function K6(e){return Pse?new BigUint64Array(vi(8*e),0,e):null}wr.mallocBigUint64=K6;function Q6(e){return kse?new BigInt64Array(vi(8*e),0,e):null}wr.mallocBigInt64=Q6;function Z6(e){return new DataView(vi(e),0,e)}wr.mallocDataView=Z6;function J6(e){e=ju.nextPow2(e);var t=ju.log2(e),r=V1[t];return r.length>0?r.pop():new z6(e)}wr.mallocBuffer=J6;wr.clearCache=function(){for(var t=0;t<32;++t)tn.UINT8[t].length=0,tn.UINT16[t].length=0,tn.UINT32[t].length=0,tn.INT8[t].length=0,tn.INT16[t].length=0,tn.INT32[t].length=0,tn.FLOAT[t].length=0,tn.DOUBLE[t].length=0,tn.BIGUINT64[t].length=0,tn.BIGINT64[t].length=0,tn.UINT8C[t].length=0,H1[t].length=0,V1[t].length=0};var e8=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},Dse=e8,Fse=t8,Ap=96;function ZS(e,t){var r=Dse(getComputedStyle(e).getPropertyValue(t));return r[0]*t8(r[1],e)}function Nse(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=ZS(r,"font-size")/128;return t.removeChild(r),n}function t8(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 Nse(e,t);case"em":return ZS(t,"font-size");case"rem":return ZS(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 Ap;case"cm":return Ap/2.54;case"mm":return Ap/25.4;case"pt":return Ap/72;case"pc":return Ap/6}return 1}var Lse=Y1,Bse=Y1.canvas=document.createElement("canvas"),Um=Bse.getContext("2d"),r8=Iy([32,126]);Y1.createPairs=Iy;Y1.ascii=r8;function Y1(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=Iy(t):Array.isArray(t)?n=t:(t.o?n=Iy(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=r8),Um.font=i+"px "+e;for(var o=0;o<n.length;o++){var u=n[o],s=Um.measureText(u[0]).width+Um.measureText(u[1]).width,f=Um.measureText(u).width;if(Math.abs(s-f)>i*a){var d=(f-s)/i;r[u]=d*1e3}}return r}function Iy(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 $se=fu;fu.canvas=document.createElement("canvas");fu.cache={};function fu(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(fu.cache[r]&&n<=fu.cache[r].em)return xk(fu.cache[r],u);var s=t.canvas||fu.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 _=Ra(f.getImageData(0,0,v,v));f.clearRect(0,0,v,v),f.textBaseline="bottom",f.fillText(h,0,v);var A=Ra(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=Ra(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=Ra(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=Ra(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=Ra(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=Ra(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=Ra(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=Ra(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=Ra(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=_k(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=_k(f.getImageData(0,0,v,v));g.overshoot=M-w}for(var D in g)g[D]/=n;return g.em=n,fu.cache[r]=g,xk(g,u)}function xk(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 Ra(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 _k(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 wf=fse,zse=Ku,Use=F6.exports,jse=dse,Wse=E6,G_=U1,Gse=mse,iu=wr,qse=z1,Hse=c6,Vse=e8,Yse=Fse,Xse=Lse,Kse=cs,Qse=$se,Zse=Av,Jse=Xr,Sk=Jse.nextPow2,Ek=new Wse,p0=!1;if(document.body){var q_=document.body.appendChild(document.createElement("div"));q_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(q_).fontStretch&&(p0=!0),document.body.removeChild(q_)}var Rr=function(t){efe(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=jse(t),this.shader=Ek.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||Use({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(),Ek.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(Hse(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:`
1164
- precision highp float;
1165
- attribute float width, charOffset, char;
1166
- attribute vec2 position;
1167
- uniform float fontSize, charStep, em, align, baseline;
1168
- uniform vec4 viewport;
1169
- uniform vec4 color;
1170
- uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1171
- varying vec2 charCoord, charId;
1172
- varying float charWidth;
1173
- varying vec4 fontColor;
1174
- void main () {
1175
- vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1176
- + vec2(positionOffset.x, -positionOffset.y)))
1177
- / (viewport.zw * scale.xy);
1178
-
1179
- vec2 position = (position + translate) * scale;
1180
- position += offset * scale;
1181
-
1182
- charCoord = position * viewport.zw + viewport.xy;
1183
-
1184
- gl_Position = vec4(position * 2. - 1., 0, 1);
1185
-
1186
- gl_PointSize = charStep;
1187
-
1188
- charId.x = mod(char, atlasDim.x);
1189
- charId.y = floor(char / atlasDim.x);
1190
-
1191
- charWidth = width * em;
1192
-
1193
- fontColor = color / 255.;
1194
- }`,frag:`
1195
- precision highp float;
1196
- uniform float fontSize, charStep, opacity;
1197
- uniform vec2 atlasSize;
1198
- uniform vec4 viewport;
1199
- uniform sampler2D atlas;
1200
- varying vec4 fontColor;
1201
- varying vec2 charCoord, charId;
1202
- varying float charWidth;
1203
-
1204
- float lightness(vec4 color) {
1205
- return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1206
- }
1207
-
1208
- void main () {
1209
- vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1210
- float halfCharStep = floor(charStep * .5 + .5);
1211
-
1212
- // invert y and shift by 1px (FF expecially needs that)
1213
- uv.y = charStep - uv.y;
1214
-
1215
- // ignore points outside of character bounding box
1216
- float halfCharWidth = ceil(charWidth * .5);
1217
- if (floor(uv.x) > halfCharStep + halfCharWidth ||
1218
- floor(uv.x) < halfCharStep - halfCharWidth) return;
1219
-
1220
- uv += charId * charStep;
1221
- uv = uv / atlasSize;
1222
-
1223
- vec4 color = fontColor;
1224
- vec4 mask = texture2D(atlas, uv);
1225
-
1226
- float maskY = lightness(mask);
1227
- // float colorY = lightness(color);
1228
- color.a *= maskY;
1229
- color.a *= opacity;
1230
-
1231
- // color.a += .1;
1232
-
1233
- // antialiasing, see yiq color space y-channel formula
1234
- // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1235
-
1236
- gl_FragColor = color;
1237
- }`}),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=zse(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=qse(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=Zse(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=wf.parse(We)}catch{We=wf.parse(Rr.baseFontSize+"px "+We)}else We=wf.parse(wf.stringify(We));var st=wf.stringify({size:Rr.baseFontSize,family:We.family,stretch:p0?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style}),Rt=Vse(We.size),kt=Math.round(Rt[0]*Yse(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),p0&&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:Qse(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=wf.stringify({size:r.fontSize[Ze],family:We.family,stretch:p0?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);Kse(We.kerning,Xse(We.family,{pairs:Ae}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=iu.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}),iu.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=iu.mallocUint8(this.count),w=iu.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"}),iu.freeUint8(b),iu.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=Sk(Ae*Rt),_e=Sk(nt*Rt);st.width=mt,st.height=_e,st.rows=nt,st.cols=Ae,st.em&&st.texture({data:Gse({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=G_(t.color,"uint8");else{var Je;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var je=t.color.length;Je=iu.mallocUint8(je);for(var me=(t.color.subarray||t.color.slice).bind(t.color),Fe=0;Fe<je;Fe+=4)Je.set(G_(me(Fe,Fe+4),"uint8"),Fe)}else{var qe=t.color.length;Je=iu.mallocUint8(qe*4);for(var Ue=0;Ue<qe;Ue++)Je.set(G_(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 efe(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var dpe=Rr;function tfe(e,t){return e.parent===t.parent?1:2}function rfe(e){return e.reduce(nfe,0)/e.length}function nfe(e,t){return e+t.x}function ife(e){return 1+e.reduce(afe,0)}function afe(e,t){return Math.max(e,t.y)}function ofe(e){for(var t;t=e.children;)e=t[0];return e}function ufe(e){for(var t;t=e.children;)e=t[t.length-1];return e}function lfe(){var e=tfe,t=1,r=1,n=!1;function i(a){var o,u=0;a.eachAfter(function(h){var g=h.children;g?(h.x=rfe(g),h.y=ife(g)):(h.x=o?u+=e(h,o):0,h.y=0,o=h)});var s=ofe(a),f=ufe(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 sfe(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 ffe(){return this.eachAfter(sfe)}function cfe(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 dfe(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 pfe(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 hfe(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 vfe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function gfe(e){for(var t=this,r=mfe(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 mfe(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 yfe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function bfe(){var e=[];return this.each(function(t){e.push(t)}),e}function wfe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function xfe(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function aT(e,t){var r=new xc(e),n=+e.value&&(r.value=e.value),i,a=[r],o,u,s,f;for(t==null&&(t=Sfe);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 xc(u[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(n8)}function _fe(){return aT(this).eachBefore(Efe)}function Sfe(e){return e.children}function Efe(e){e.data=e.data.data}function n8(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function xc(e){this.data=e,this.depth=this.height=0,this.parent=null}xc.prototype=aT.prototype={constructor:xc,count:ffe,each:cfe,eachAfter:pfe,eachBefore:dfe,sum:hfe,sort:vfe,path:gfe,ancestors:yfe,descendants:bfe,leaves:wfe,links:xfe,copy:_fe};var Afe=Array.prototype.slice;function Cfe(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 i8(e){for(var t=0,r=(e=Cfe(Afe.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&a8(a,i)?++t:(a=Rfe(n=Tfe(n,i)),t=0);return a}function Tfe(e,t){var r,n;if(H_(t,e))return[t];for(r=0;r<e.length;++r)if(jm(t,e[r])&&H_(zp(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(jm(zp(e[r],e[n]),t)&&jm(zp(e[r],t),e[n])&&jm(zp(e[n],t),e[r])&&H_(o8(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function jm(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 a8(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 H_(e,t){for(var r=0;r<t.length;++r)if(!a8(e,t[r]))return!1;return!0}function Rfe(e){switch(e.length){case 1:return Ofe(e[0]);case 2:return zp(e[0],e[1]);case 3:return o8(e[0],e[1],e[2])}}function Ofe(e){return{x:e.x,y:e.y,r:e.r}}function zp(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 o8(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 Ak(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 Ck(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 Tk(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 Wm(e){this._=e,this.next=null,this.previous=null}function u8(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;Ak(r,t,n=e[2]),t=new Wm(t),r=new Wm(r),n=new Wm(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(u=3;u<i;++u){Ak(t._,r._,n=e[u]),n=new Wm(n),s=r.next,f=t.previous,d=r._.r,v=t._.r;do if(d<=v){if(Ck(s._,n._)){r=s,t.next=r,r.previous=t,--u;continue e}d+=s._.r,s=s.next}else{if(Ck(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=Tk(t);(n=n.next)!==r;)(o=Tk(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=i8(t),u=0;u<i;++u)t=e[u],t.x-=n.x,t.y-=n.y;return n.r}function Ife(e){return u8(e),e}function Pfe(e){return e==null?null:Py(e)}function Py(e){if(typeof e!="function")throw new Error;return e}function Nl(){return 0}function Tf(e){return function(){return e}}function kfe(e){return Math.sqrt(e.value)}function Mfe(){var e=null,t=1,r=1,n=Nl;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(Rk(e)).eachAfter(V_(n,.5)).eachBefore(Ok(1)):a.eachBefore(Rk(kfe)).eachAfter(V_(Nl,1)).eachAfter(V_(n,a.r/Math.min(t,r))).eachBefore(Ok(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=Pfe(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:Tf(+a),i):n},i}function Rk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function V_(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=u8(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=u+o}}}function Ok(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 l8(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 Tv(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 Dfe(){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(l8),o}function a(o,u){return function(s){s.children&&Tv(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 Ik="$",Ffe={depth:-1},Pk={};function Nfe(e){return e.id}function Lfe(e){return e.parentId}function Bfe(){var e=Nfe,t=Lfe;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 xc(i),(v=e(i,a,n))!=null&&(v+="")&&(h=Ik+(f.id=v),g[h]=h in g?Pk: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[Ik+v],!s)throw new Error("missing: "+v);if(s===Pk)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=Ffe,u.eachBefore(function(_){_.depth=_.parent.depth+1,--o}).eachBefore(n8),u.parent=null,o>0)throw new Error("cycle");return u}return r.id=function(n){return arguments.length?(e=Py(n),r):e},r.parentId=function(n){return arguments.length?(t=Py(n),r):t},r}function $fe(e,t){return e.parent===t.parent?1:2}function Y_(e){var t=e.children;return t?t[0]:e.t}function X_(e){var t=e.children;return t?t[t.length-1]:e.t}function zfe(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 Ufe(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 jfe(e,t,r){return e.a.parent===t.parent?e.a:r}function h0(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}h0.prototype=Object.create(xc.prototype);function Wfe(e){for(var t=new h0(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 h0(a[o],o)),i.parent=r;return(t.parent=new h0(null,0)).children=[t],t}function Gfe(){var e=$fe,t=1,r=1,n=null;function i(f){var d=Wfe(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){Ufe(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;_=X_(_),h=Y_(h),_&&h;)A=Y_(A),g=X_(g),g.a=f,R=_.z+S-h.z-b+e(_._,h._),R>0&&(zfe(jfe(_,f,v),f,R),b+=R,w+=R),S+=_.m,b+=h.m,E+=A.m,w+=g.m;_&&!X_(g)&&(g.t=_,g.m+=S-w),h&&!Y_(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 X1(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 s8=(1+Math.sqrt(5))/2;function f8(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?Tv(s,r,n,i,A?n+=_*b/A:a):X1(s,r,n,A?r+=g*b/A:i,a),A-=b,d=v}return o}const c8=function e(t){function r(n,i,a,o,u){f8(t,n,i,a,o,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(s8);function qfe(){var e=c8,t=!1,r=1,n=1,i=[0],a=Nl,o=Nl,u=Nl,s=Nl,f=Nl;function d(h){return h.x0=h.y0=0,h.x1=r,h.y1=n,h.eachBefore(v),i=[0],t&&h.eachBefore(l8),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=Py(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:Tf(+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:Tf(+h),d):o},d.paddingRight=function(h){return arguments.length?(u=typeof h=="function"?h:Tf(+h),d):u},d.paddingBottom=function(h){return arguments.length?(s=typeof h=="function"?h:Tf(+h),d):s},d.paddingLeft=function(h){return arguments.length?(f=typeof h=="function"?h:Tf(+h),d):f},d}function Hfe(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 Vfe(e,t,r,n,i){(e.depth&1?X1:Tv)(e,t,r,n,i)}const Yfe=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?Tv(f,i,a,o,a+=(u-a)*f.value/A):X1(f,i,a,i+=(o-i)*f.value/A,u),A-=f.value}else n._squarify=s=f8(t,n,i,a,o,u),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(s8),Xfe=Object.freeze(Object.defineProperty({__proto__:null,cluster:lfe,hierarchy:aT,pack:Mfe,packSiblings:Ife,packEnclose:i8,partition:Dfe,stratify:Bfe,tree:Gfe,treemap:qfe,treemapBinary:Hfe,treemapDice:Tv,treemapSlice:X1,treemapSliceDice:Vfe,treemapSquarify:c8,treemapResquarify:Yfe},Symbol.toStringTag,{value:"Module"})),ppe=fs(Xfe);function Bc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Rv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qu(){}var ls=.7,_c=1/ls,ec="\\s*([+-]?\\d+)\\s*",Gh="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ua="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kfe=/^#([0-9a-f]{3,8})$/,Qfe=new RegExp("^rgb\\("+[ec,ec,ec]+"\\)$"),Zfe=new RegExp("^rgb\\("+[Ua,Ua,Ua]+"\\)$"),Jfe=new RegExp("^rgba\\("+[ec,ec,ec,Gh]+"\\)$"),ece=new RegExp("^rgba\\("+[Ua,Ua,Ua,Gh]+"\\)$"),tce=new RegExp("^hsl\\("+[Gh,Ua,Ua]+"\\)$"),rce=new RegExp("^hsla\\("+[Gh,Ua,Ua,Gh]+"\\)$"),kk={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};Bc(Qu,qh,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Mk,formatHex:Mk,formatHsl:nce,formatRgb:Dk,toString:Dk});function Mk(){return this.rgb().formatHex()}function nce(){return d8(this).formatHsl()}function Dk(){return this.rgb().formatRgb()}function qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Kfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Fk(t):r===3?new $n(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Gm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Gm(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=Qfe.exec(e))?new $n(t[1],t[2],t[3],1):(t=Zfe.exec(e))?new $n(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Jfe.exec(e))?Gm(t[1],t[2],t[3],t[4]):(t=ece.exec(e))?Gm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tce.exec(e))?Bk(t[1],t[2]/100,t[3]/100,1):(t=rce.exec(e))?Bk(t[1],t[2]/100,t[3]/100,t[4]):kk.hasOwnProperty(e)?Fk(kk[e]):e==="transparent"?new $n(NaN,NaN,NaN,0):null}function Fk(e){return new $n(e>>16&255,e>>8&255,e&255,1)}function Gm(e,t,r,n){return n<=0&&(e=t=r=NaN),new $n(e,t,r,n)}function oT(e){return e instanceof Qu||(e=qh(e)),e?(e=e.rgb(),new $n(e.r,e.g,e.b,e.opacity)):new $n}function ky(e,t,r,n){return arguments.length===1?oT(e):new $n(e,t,r,n==null?1:n)}function $n(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Bc($n,ky,Rv(Qu,{brighter:function(e){return e=e==null?_c:Math.pow(_c,e),new $n(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?ls:Math.pow(ls,e),new $n(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:Nk,formatHex:Nk,formatRgb:Lk,toString:Lk}));function Nk(){return"#"+K_(this.r)+K_(this.g)+K_(this.b)}function Lk(){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 K_(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Bk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ma(e,t,r,n)}function d8(e){if(e instanceof Ma)return new Ma(e.h,e.s,e.l,e.opacity);if(e instanceof Qu||(e=qh(e)),!e)return new Ma;if(e instanceof Ma)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 Ma(o,u,s,e.opacity)}function JS(e,t,r,n){return arguments.length===1?d8(e):new Ma(e,t,r,n==null?1:n)}function Ma(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Bc(Ma,JS,Rv(Qu,{brighter:function(e){return e=e==null?_c:Math.pow(_c,e),new Ma(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ls:Math.pow(ls,e),new Ma(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 $n(Q_(e>=240?e-240:e+120,i,n),Q_(e,i,n),Q_(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 Q_(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 p8=Math.PI/180,h8=180/Math.PI,My=18,v8=.96422,g8=1,m8=.82521,y8=4/29,tc=6/29,b8=3*tc*tc,ice=tc*tc*tc;function w8(e){if(e instanceof ja)return new ja(e.l,e.a,e.b,e.opacity);if(e instanceof bo)return x8(e);e instanceof $n||(e=oT(e));var t=t2(e.r),r=t2(e.g),n=t2(e.b),i=Z_((.2225045*t+.7168786*r+.0606169*n)/g8),a,o;return t===r&&r===n?a=o=i:(a=Z_((.4360747*t+.3850649*r+.1430804*n)/v8),o=Z_((.0139322*t+.0971045*r+.7141733*n)/m8)),new ja(116*i-16,500*(a-i),200*(i-o),e.opacity)}function eE(e,t,r,n){return arguments.length===1?w8(e):new ja(e,t,r,n==null?1:n)}function ja(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Bc(ja,eE,Rv(Qu,{brighter:function(e){return new ja(this.l+My*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new ja(this.l-My*(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=v8*J_(t),e=g8*J_(e),r=m8*J_(r),new $n(e2(3.1338561*t-1.6168667*e-.4906146*r),e2(-.9787684*t+1.9161415*e+.033454*r),e2(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function Z_(e){return e>ice?Math.pow(e,1/3):e/b8+y8}function J_(e){return e>tc?e*e*e:b8*(e-y8)}function e2(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function t2(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ace(e){if(e instanceof bo)return new bo(e.h,e.c,e.l,e.opacity);if(e instanceof ja||(e=w8(e)),e.a===0&&e.b===0)return new bo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*h8;return new bo(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function tE(e,t,r,n){return arguments.length===1?ace(e):new bo(e,t,r,n==null?1:n)}function bo(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function x8(e){if(isNaN(e.h))return new ja(e.l,0,0,e.opacity);var t=e.h*p8;return new ja(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bc(bo,tE,Rv(Qu,{brighter:function(e){return new bo(this.h,this.c,this.l+My*(e==null?1:e),this.opacity)},darker:function(e){return new bo(this.h,this.c,this.l-My*(e==null?1:e),this.opacity)},rgb:function(){return x8(this).rgb()}}));var _8=-.14861,uT=1.78277,lT=-.29227,K1=-.90649,Hh=1.97294,$k=Hh*K1,zk=Hh*uT,Uk=uT*lT-K1*_8;function oce(e){if(e instanceof Zl)return new Zl(e.h,e.s,e.l,e.opacity);e instanceof $n||(e=oT(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Uk*n+$k*t-zk*r)/(Uk+$k-zk),a=n-i,o=(Hh*(r-i)-lT*a)/K1,u=Math.sqrt(o*o+a*a)/(Hh*i*(1-i)),s=u?Math.atan2(o,a)*h8-120:NaN;return new Zl(s<0?s+360:s,u,i,e.opacity)}function rE(e,t,r,n){return arguments.length===1?oce(e):new Zl(e,t,r,n==null?1:n)}function Zl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Bc(Zl,rE,Rv(Qu,{brighter:function(e){return e=e==null?_c:Math.pow(_c,e),new Zl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ls:Math.pow(ls,e),new Zl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*p8,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new $n(255*(t+r*(_8*n+uT*i)),255*(t+r*(lT*n+K1*i)),255*(t+r*(Hh*n)),this.opacity)}}));function S8(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 E8(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 S8((r-n/t)*t,o,i,a,u)}}function A8(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 S8((r-n/t)*t,i,a,o,u)}}function Q1(e){return function(){return e}}function C8(e,t){return function(r){return e+r*t}}function uce(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 Z1(e,t){var r=t-e;return r?C8(e,r>180||r<-180?r-360*Math.round(r/360):r):Q1(isNaN(e)?t:e)}function lce(e){return(e=+e)==1?An:function(t,r){return r-t?uce(t,r,e):Q1(isNaN(t)?r:t)}}function An(e,t){var r=t-e;return r?C8(e,r):Q1(isNaN(e)?t:e)}const nE=function e(t){var r=lce(t);function n(i,a){var o=r((i=ky(i)).r,(a=ky(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),f=An(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 T8(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=ky(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 sce=T8(E8),fce=T8(A8);function sT(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 R8(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cce(e,t){return(R8(t)?sT:O8)(e,t)}function O8(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]=fT(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 I8(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Pa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function P8(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]=fT(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var iE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,r2=new RegExp(iE.source,"g");function dce(e){return function(){return e}}function pce(e){return function(t){return e(t)+""}}function k8(e,t){var r=iE.lastIndex=r2.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=iE.exec(e))&&(i=r2.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:Pa(n,i)})),r=r2.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?pce(s[0].x):dce(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 fT(e,t){var r=typeof t,n;return t==null||r==="boolean"?Q1(t):(r==="number"?Pa:r==="string"?(n=qh(t))?(t=n,nE):k8:t instanceof qh?nE:t instanceof Date?I8:R8(t)?sT:Array.isArray(t)?O8:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?P8:Pa)(e,t)}function hce(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function vce(e,t){var r=Z1(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function gce(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var jk=180/Math.PI,aE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M8(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)*jk,skewX:Math.atan(s)*jk,scaleX:o,scaleY:u}}var Cp,n2,Wk,qm;function mce(e){return e==="none"?aE:(Cp||(Cp=document.createElement("DIV"),n2=document.documentElement,Wk=document.defaultView),Cp.style.transform=e,e=Wk.getComputedStyle(n2.appendChild(Cp),null).getPropertyValue("transform"),n2.removeChild(Cp),e=e.slice(7,-1).split(","),M8(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function yce(e){return e==null||(qm||(qm=document.createElementNS("http://www.w3.org/2000/svg","g")),qm.setAttribute("transform",e),!(e=qm.transform.baseVal.consolidate()))?aE:(e=e.matrix,M8(e.a,e.b,e.c,e.d,e.e,e.f))}function D8(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:Pa(f,v)},{i:A-2,x:Pa(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:Pa(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:Pa(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:Pa(f,v)},{i:A-2,x:Pa(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 bce=D8(mce,"px, ","px)","deg)"),wce=D8(yce,", ",")",")"),Tp=Math.SQRT2,i2=2,Gk=4,xce=1e-12;function qk(e){return((e=Math.exp(e))+1/e)/2}function _ce(e){return((e=Math.exp(e))-1/e)/2}function Sce(e){return((e=Math.exp(2*e))-1)/(e+1)}function Ece(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<xce)h=Math.log(u/i)/Tp,v=function(S){return[r+S*s,n+S*f,i*Math.exp(Tp*S*h)]};else{var g=Math.sqrt(d),_=(u*u-i*i+Gk*d)/(2*i*i2*g),A=(u*u-i*i-Gk*d)/(2*u*i2*g),b=Math.log(Math.sqrt(_*_+1)-_),w=Math.log(Math.sqrt(A*A+1)-A);h=(w-b)/Tp,v=function(S){var E=S*h,R=qk(b),M=i/(i2*g)*(R*Sce(Tp*E+b)-_ce(b));return[r+M*s,n+M*f,i*R/qk(Tp*E+b)]}}return v.duration=h*1e3,v}function F8(e){return function(t,r){var n=e((t=JS(t)).h,(r=JS(r)).h),i=An(t.s,r.s),a=An(t.l,r.l),o=An(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 Ace=F8(Z1);var Cce=F8(An);function Tce(e,t){var r=An((e=eE(e)).l,(t=eE(t)).l),n=An(e.a,t.a),i=An(e.b,t.b),a=An(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 N8(e){return function(t,r){var n=e((t=tE(t)).h,(r=tE(r)).h),i=An(t.c,r.c),a=An(t.l,r.l),o=An(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 Rce=N8(Z1);var Oce=N8(An);function L8(e){return function t(r){r=+r;function n(i,a){var o=e((i=rE(i)).h,(a=rE(a)).h),u=An(i.s,a.s),s=An(i.l,a.l),f=An(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 Ice=L8(Z1);var Pce=L8(An);function kce(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 Mce(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const Dce=Object.freeze(Object.defineProperty({__proto__:null,interpolate:fT,interpolateArray:cce,interpolateBasis:E8,interpolateBasisClosed:A8,interpolateDate:I8,interpolateDiscrete:hce,interpolateHue:vce,interpolateNumber:Pa,interpolateNumberArray:sT,interpolateObject:P8,interpolateRound:gce,interpolateString:k8,interpolateTransformCss:bce,interpolateTransformSvg:wce,interpolateZoom:Ece,interpolateRgb:nE,interpolateRgbBasis:sce,interpolateRgbBasisClosed:fce,interpolateHsl:Ace,interpolateHslLong:Cce,interpolateLab:Tce,interpolateHcl:Rce,interpolateHclLong:Oce,interpolateCubehelix:Ice,interpolateCubehelixLong:Pce,piecewise:kce,quantize:Mce},Symbol.toStringTag,{value:"Module"})),hpe=fs(Dce);var Fce="Expected a function",B8="__lodash_hash_undefined__",$8=1/0,Nce=9007199254740991,Lce="[object Function]",Bce="[object GeneratorFunction]",$ce="[object Symbol]",zce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uce=/^\w*$/,jce=/^\./,Wce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gce=/[\\^$.*+?()[\]{}|]/g,qce=/\\(\\)?/g,Hce=/^\[object .+?Constructor\]$/,Vce=/^(?:0|[1-9]\d*)$/,Yce=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,Xce=typeof self=="object"&&self&&self.Object===Object&&self,cT=Yce||Xce||Function("return this")();function Kce(e,t){return e==null?void 0:e[t]}function Qce(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Zce=Array.prototype,Jce=Function.prototype,z8=Object.prototype,a2=cT["__core-js_shared__"],Hk=function(){var e=/[^.]+$/.exec(a2&&a2.keys&&a2.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U8=Jce.toString,J1=z8.hasOwnProperty,j8=z8.toString,ede=RegExp("^"+U8.call(J1).replace(Gce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vk=cT.Symbol,tde=Zce.splice,rde=W8(cT,"Map"),Vh=W8(Object,"create"),Yk=Vk?Vk.prototype:void 0,Xk=Yk?Yk.toString:void 0;function ss(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 nde(){this.__data__=Vh?Vh(null):{}}function ide(e){return this.has(e)&&delete this.__data__[e]}function ade(e){var t=this.__data__;if(Vh){var r=t[e];return r===B8?void 0:r}return J1.call(t,e)?t[e]:void 0}function ode(e){var t=this.__data__;return Vh?t[e]!==void 0:J1.call(t,e)}function ude(e,t){var r=this.__data__;return r[e]=Vh&&t===void 0?B8:t,this}ss.prototype.clear=nde;ss.prototype.delete=ide;ss.prototype.get=ade;ss.prototype.has=ode;ss.prototype.set=ude;function $c(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 lde(){this.__data__=[]}function sde(e){var t=this.__data__,r=eb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():tde.call(t,r,1),!0}function fde(e){var t=this.__data__,r=eb(t,e);return r<0?void 0:t[r][1]}function cde(e){return eb(this.__data__,e)>-1}function dde(e,t){var r=this.__data__,n=eb(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}$c.prototype.clear=lde;$c.prototype.delete=sde;$c.prototype.get=fde;$c.prototype.has=cde;$c.prototype.set=dde;function Es(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 pde(){this.__data__={hash:new ss,map:new(rde||$c),string:new ss}}function hde(e){return tb(this,e).delete(e)}function vde(e){return tb(this,e).get(e)}function gde(e){return tb(this,e).has(e)}function mde(e,t){return tb(this,e).set(e,t),this}Es.prototype.clear=pde;Es.prototype.delete=hde;Es.prototype.get=vde;Es.prototype.has=gde;Es.prototype.set=mde;function yde(e,t,r){var n=e[t];(!(J1.call(e,t)&&G8(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function eb(e,t){for(var r=e.length;r--;)if(G8(e[r][0],t))return r;return-1}function bde(e){if(!Dy(e)||Cde(e))return!1;var t=Ide(e)||Qce(e)?ede:Hce;return t.test(Ode(e))}function wde(e,t,r,n){if(!Dy(e))return e;t=Ede(t,e)?[t]:_de(t);for(var i=-1,a=t.length,o=a-1,u=e;u!=null&&++i<a;){var s=Rde(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:Sde(t[i+1])?[]:{})}yde(u,s,f),u=u[s]}return e}function xde(e){if(typeof e=="string")return e;if(pT(e))return Xk?Xk.call(e):"";var t=e+"";return t=="0"&&1/e==-$8?"-0":t}function _de(e){return q8(e)?e:Tde(e)}function tb(e,t){var r=e.__data__;return Ade(t)?r[typeof t=="string"?"string":"hash"]:r.map}function W8(e,t){var r=Kce(e,t);return bde(r)?r:void 0}function Sde(e,t){return t=t==null?Nce:t,!!t&&(typeof e=="number"||Vce.test(e))&&e>-1&&e%1==0&&e<t}function Ede(e,t){if(q8(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pT(e)?!0:Uce.test(e)||!zce.test(e)||t!=null&&e in Object(t)}function Ade(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cde(e){return!!Hk&&Hk in e}var Tde=dT(function(e){e=kde(e);var t=[];return jce.test(e)&&t.push(""),e.replace(Wce,function(r,n,i,a){t.push(i?a.replace(qce,"$1"):n||r)}),t});function Rde(e){if(typeof e=="string"||pT(e))return e;var t=e+"";return t=="0"&&1/e==-$8?"-0":t}function Ode(e){if(e!=null){try{return U8.call(e)}catch{}try{return e+""}catch{}}return""}function dT(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Fce);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(dT.Cache||Es),r}dT.Cache=Es;function G8(e,t){return e===t||e!==e&&t!==t}var q8=Array.isArray;function Ide(e){var t=Dy(e)?j8.call(e):"";return t==Lce||t==Bce}function Dy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Pde(e){return!!e&&typeof e=="object"}function pT(e){return typeof e=="symbol"||Pde(e)&&j8.call(e)==$ce}function kde(e){return e==null?"":xde(e)}function Mde(e,t,r){return e==null?e:wde(e,t,r)}var vpe=Mde;export{Qde as $,Ut as A,gr as B,ri as C,$de as D,Nde as E,hU as F,Mp as G,Fde as H,Lde as I,l1 as J,Bde as K,Ude as L,SK as M,Gde as N,Wde as O,zde as P,fK as Q,Cn as R,qde as S,mA as T,Hde as U,Yde as V,nn as W,Vde as X,jde as Y,Kde as Z,pB as _,Jde as a,Xde as a0,vpe as a1,ipe as b,ape as c,Mre as d,XB as e,epe as f,tpe as g,rpe as h,KC as i,mae as j,upe as k,U1 as l,npe as m,ope as n,a6 as o,i6 as p,F6 as q,Zde as r,lpe as s,Tie as t,spe as u,fpe as v,cpe as w,dpe as x,ppe as y,hpe as z};
1238
- //# sourceMappingURL=vendor.8b029e15.js.map