datahub/packages/components/storybook-static/assets/FlatUiTable.stories-36abe253.js
Luccas Mateus de Medeiros Gomes 58b4c1918f [éxamples]
2023-05-24 13:41:11 -03:00

457 lines
376 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{j as Sn}from"./jsx-runtime-94f6e698.js";import{R as Uh}from"./index-8ce4a492.js";import{_ as me,a as Un,b as Wh,c as V,d as Bh,e as yu,u as Vh}from"./isNativeReflectConstruct-099dc9ad.js";import{R as z,r as J}from"./index-8db94870.js";import{p as jh}from"./papaparse.min-839a1868.js";import{g as nf,c as nt}from"./_commonjsHelpers-042e6b4d.js";import{P as $}from"./index-1fc0ca9a.js";var Fr=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var i=this,a=r||function(){};return this.listeners.push(a),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==a}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),Ai=typeof window>"u";function Xe(){}function qh(e,t){return typeof e=="function"?e(t):e}function Do(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ii(e){return Array.isArray(e)?e:[e]}function rf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gi(e,t,n){return oa(e)?typeof t=="function"?me({},n,{queryKey:e,queryFn:t}):me({},t,{queryKey:e}):e}function en(e,t,n){return oa(e)?[me({},t,{queryKey:e}),n]:[e||{},t]}function Yh(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function wu(e,t){var n=e.active,r=e.exact,i=e.fetching,a=e.inactive,o=e.predicate,s=e.queryKey,u=e.stale;if(oa(s)){if(r){if(t.queryHash!==vs(s,t.options))return!1}else if(!Oi(t.queryKey,s))return!1}var l=Yh(n,a);if(l==="none")return!1;if(l!=="all"){var f=t.isActive();if(l==="active"&&!f||l==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof i=="boolean"&&t.isFetching()!==i||o&&!o(t))}function bu(e,t){var n=e.exact,r=e.fetching,i=e.predicate,a=e.mutationKey;if(oa(a)){if(!t.options.mutationKey)return!1;if(n){if(fn(t.options.mutationKey)!==fn(a))return!1}else if(!Oi(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function vs(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||fn;return n(e)}function fn(e){var t=Ii(e);return Qh(t)}function Qh(e){return JSON.stringify(e,function(t,n){return Eo(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function Oi(e,t){return af(Ii(e),Ii(t))}function af(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!af(e[n],t[n])}):!1}function Ri(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||Eo(e)&&Eo(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),a=i.length,o=n?[]:{},s=0,u=0;u<a;u++){var l=n?u:i[u];o[l]=Ri(e[l],t[l]),o[l]===e[l]&&s++}return r===a&&s===r?e:o}return t}function Kh(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function Eo(e){if(!_u(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!_u(n)||!n.hasOwnProperty("isPrototypeOf"))}function _u(e){return Object.prototype.toString.call(e)==="[object Object]"}function oa(e){return typeof e=="string"||Array.isArray(e)}function Gh(e){return new Promise(function(t){setTimeout(t,e)})}function xu(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function of(){if(typeof AbortController=="function")return new AbortController}var Xh=function(e){Un(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var a;if(!Ai&&((a=window)!=null&&a.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setFocused(s):o.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Fr),dr=new Xh,Zh=function(e){Un(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var a;if(!Ai&&((a=window)!=null&&a.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setOnline(s):o.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Fr),vi=new Zh;function Jh(e){return Math.min(1e3*Math.pow(2,e),3e4)}function ki(e){return typeof(e==null?void 0:e.cancel)=="function"}var sf=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function yi(e){return e instanceof sf}var uf=function(t){var n=this,r=!1,i,a,o,s;this.abort=t.abort,this.cancel=function(d){return i==null?void 0:i(d)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(d,h){o=d,s=h});var u=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),o(h))},l=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},f=function(){return new Promise(function(h){a=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},c=function d(){if(!n.isResolved){var h;try{h=t.fn()}catch(p){h=Promise.reject(p)}i=function(m){if(!n.isResolved&&(l(new sf(m)),n.abort==null||n.abort(),ki(h)))try{h.cancel()}catch{}},n.isTransportCancelable=ki(h),Promise.resolve(h).then(u).catch(function(p){var m,C;if(!n.isResolved){var y=(m=t.retry)!=null?m:3,v=(C=t.retryDelay)!=null?C:Jh,w=typeof v=="function"?v(n.failureCount,p):v,D=y===!0||typeof y=="number"&&n.failureCount<y||typeof y=="function"&&y(n.failureCount,p);if(r||!D){l(p);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,p),Gh(w).then(function(){if(!dr.isFocused()||!vi.isOnline())return f()}).then(function(){r?l(p):d()})}})}};c()},ep=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var i;this.transactions++;try{i=r()}finally{this.transactions--,this.transactions||this.flush()}return i},t.schedule=function(r){var i=this;this.transactions?this.queue.push(r):xu(function(){i.notifyFn(r)})},t.batchCalls=function(r){var i=this;return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];i.schedule(function(){r.apply(void 0,o)})}},t.flush=function(){var r=this,i=this.queue;this.queue=[],i.length&&xu(function(){r.batchNotifyFn(function(){i.forEach(function(a){r.notifyFn(a)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Ae=new ep,lf=console;function Fi(){return lf}function tp(e){lf=e}var np=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var i;this.options=me({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(i=this.options.cacheTime)!=null?i:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),Do(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,i){var a,o,s=this.state.data,u=qh(r,s);return(a=(o=this.options).isDataEqual)!=null&&a.call(o,s,u)?u=s:this.options.structuralSharing!==!1&&(u=Ri(s,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt}),u},t.setState=function(r,i){this.dispatch({type:"setState",state:r,setStateOptions:i})},t.cancel=function(r){var i,a=this.promise;return(i=this.retryer)==null||i.cancel(r),a?a.then(Xe).catch(Xe):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!rf(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,i=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});i&&i.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,i=this.observers.find(function(a){return a.shouldFetchOnReconnect()});i&&i.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(i){return i!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,i){var a=this,o,s,u;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return(l=this.retryer)==null||l.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var f=this.observers.find(function(v){return v.options.queryFn});f&&this.setOptions(f.options)}var c=Ii(this.queryKey),d=of(),h={queryKey:c,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return a.abortSignalConsumed=!0,d.signal}});var p=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},m={fetchOptions:i,options:this.options,queryKey:c,state:this.state,fetchFn:p,meta:this.meta};if((o=this.options.behavior)!=null&&o.onFetch){var C;(C=this.options.behavior)==null||C.onFetch(m)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=m.fetchOptions)==null?void 0:s.meta)){var y;this.dispatch({type:"fetch",meta:(y=m.fetchOptions)==null?void 0:y.meta})}return this.retryer=new uf({fn:m.fetchFn,abort:d==null||(u=d.abort)==null?void 0:u.bind(d),onSuccess:function(w){a.setData(w),a.cache.config.onSuccess==null||a.cache.config.onSuccess(w,a),a.cacheTime===0&&a.optionalRemove()},onError:function(w){yi(w)&&w.silent||a.dispatch({type:"error",error:w}),yi(w)||(a.cache.config.onError==null||a.cache.config.onError(w,a),Fi().error(w)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var i=this;this.state=this.reducer(this.state,r),Ae.batch(function(){i.observers.forEach(function(a){a.onQueryUpdate(r)}),i.cache.notify({query:i,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var i=typeof r.initialData=="function"?r.initialData():r.initialData,a=typeof r.initialData<"u",o=a?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,s=typeof i<"u";return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(r,i){var a,o;switch(i.type){case"failed":return me({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return me({},r,{isPaused:!0});case"continue":return me({},r,{isPaused:!1});case"fetch":return me({},r,{fetchFailureCount:0,fetchMeta:(a=i.meta)!=null?a:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return me({},r,{data:i.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=i.dataUpdatedAt)!=null?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=i.error;return yi(s)&&s.revert&&this.revertState?me({},this.revertState):me({},r,{error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return me({},r,{isInvalidated:!0});case"setState":return me({},r,i.state);default:return r}},e}(),rp=function(e){Un(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.queries=[],i.queriesMap={},i}var n=t.prototype;return n.build=function(i,a,o){var s,u=a.queryKey,l=(s=a.queryHash)!=null?s:vs(u,a),f=this.get(l);return f||(f=new np({cache:this,queryKey:u,queryHash:l,options:i.defaultQueryOptions(a),state:o,defaultOptions:i.getQueryDefaults(u),meta:a.meta}),this.add(f)),f},n.add=function(i){this.queriesMap[i.queryHash]||(this.queriesMap[i.queryHash]=i,this.queries.push(i),this.notify({type:"queryAdded",query:i}))},n.remove=function(i){var a=this.queriesMap[i.queryHash];a&&(i.destroy(),this.queries=this.queries.filter(function(o){return o!==i}),a===i&&delete this.queriesMap[i.queryHash],this.notify({type:"queryRemoved",query:i}))},n.clear=function(){var i=this;Ae.batch(function(){i.queries.forEach(function(a){i.remove(a)})})},n.get=function(i){return this.queriesMap[i]},n.getAll=function(){return this.queries},n.find=function(i,a){var o=en(i,a),s=o[0];return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(function(u){return wu(s,u)})},n.findAll=function(i,a){var o=en(i,a),s=o[0];return Object.keys(s).length>0?this.queries.filter(function(u){return wu(s,u)}):this.queries},n.notify=function(i){var a=this;Ae.batch(function(){a.listeners.forEach(function(o){o(i)})})},n.onFocus=function(){var i=this;Ae.batch(function(){i.queries.forEach(function(a){a.onFocus()})})},n.onOnline=function(){var i=this;Ae.batch(function(){i.queries.forEach(function(a){a.onOnline()})})},t}(Fr),ip=function(){function e(n){this.options=me({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||ap(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Xe).catch(Xe)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,i,a=this.state.status==="loading",o=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(s){s!==r.state.context&&r.dispatch({type:"loading",context:s,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(s){i=s,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(s){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(s,r.state.variables,r.state.context,r),Fi().error(s),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(s,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,s,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var r=this,i;return this.retryer=new uf({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var i=this;this.state=op(this.state,r),Ae.batch(function(){i.observers.forEach(function(a){a.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function ap(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function op(e,t){switch(t.type){case"failed":return me({},e,{failureCount:e.failureCount+1});case"pause":return me({},e,{isPaused:!0});case"continue":return me({},e,{isPaused:!1});case"loading":return me({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return me({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return me({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return me({},e,t.state);default:return e}}var sp=function(e){Un(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=t.prototype;return n.build=function(i,a,o){var s=new ip({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(a),state:o,defaultOptions:a.mutationKey?i.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(a){return a!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;Ae.batch(function(){i.mutations.forEach(function(a){i.remove(a)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(a){return bu(i,a)})},n.findAll=function(i){return this.mutations.filter(function(a){return bu(i,a)})},n.notify=function(i){var a=this;Ae.batch(function(){a.listeners.forEach(function(o){o(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(a){return a.state.isPaused});return Ae.batch(function(){return i.reduce(function(a,o){return a.then(function(){return o.continue().catch(Xe)})},Promise.resolve())})},t}(Fr);function up(){return{onFetch:function(t){t.fetchFn=function(){var n,r,i,a,o,s,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,l=(i=t.fetchOptions)==null||(a=i.meta)==null?void 0:a.fetchMore,f=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],p=((s=t.state.data)==null?void 0:s.pageParams)||[],m=of(),C=m==null?void 0:m.signal,y=p,v=!1,w=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},D=function(I,N,A,H){return y=H?[N].concat(y):[].concat(y,[N]),H?[A].concat(I):[].concat(I,[A])},g=function(I,N,A,H){if(v)return Promise.reject("Cancelled");if(typeof A>"u"&&!N&&I.length)return Promise.resolve(I);var U={queryKey:t.queryKey,signal:C,pageParam:A,meta:t.meta},K=w(U),X=Promise.resolve(K).then(function(j){return D(I,A,j,H)});if(ki(K)){var ne=X;ne.cancel=K.cancel}return X},_;if(!h.length)_=g([]);else if(c){var S=typeof f<"u",F=S?f:Cu(t.options,h);_=g(h,S,F)}else if(d){var P=typeof f<"u",k=P?f:lp(t.options,h);_=g(h,P,k,!0)}else(function(){y=[];var x=typeof t.options.getNextPageParam>"u",I=u&&h[0]?u(h[0],0,h):!0;_=I?g([],x,p[0]):Promise.resolve(D([],p[0],h[0]));for(var N=function(U){_=_.then(function(K){var X=u&&h[U]?u(h[U],U,h):!0;if(X){var ne=x?p[U]:Cu(t.options,K);return g(K,x,ne)}return Promise.resolve(D(K,p[U],h[U]))})},A=1;A<h.length;A++)N(A)})();var b=_.then(function(x){return{pages:x,pageParams:y}}),M=b;return M.cancel=function(){v=!0,m==null||m.abort(),ki(_)&&_.cancel()},b}}}}function Cu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function lp(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var cp=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new rp,this.mutationCache=n.mutationCache||new sp,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=dr.subscribe(function(){dr.isFocused()&&vi.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=vi.subscribe(function(){dr.isFocused()&&vi.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,i;(r=this.unsubscribeFocus)==null||r.call(this),(i=this.unsubscribeOnline)==null||i.call(this)},t.isFetching=function(r,i){var a=en(r,i),o=a[0];return o.fetching=!0,this.queryCache.findAll(o).length},t.isMutating=function(r){return this.mutationCache.findAll(me({},r,{fetching:!0})).length},t.getQueryData=function(r,i){var a;return(a=this.queryCache.find(r,i))==null?void 0:a.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(i){var a=i.queryKey,o=i.state,s=o.data;return[a,s]})},t.setQueryData=function(r,i,a){var o=gi(r),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(i,a)},t.setQueriesData=function(r,i,a){var o=this;return Ae.batch(function(){return o.getQueryCache().findAll(r).map(function(s){var u=s.queryKey;return[u,o.setQueryData(u,i,a)]})})},t.getQueryState=function(r,i){var a;return(a=this.queryCache.find(r,i))==null?void 0:a.state},t.removeQueries=function(r,i){var a=en(r,i),o=a[0],s=this.queryCache;Ae.batch(function(){s.findAll(o).forEach(function(u){s.remove(u)})})},t.resetQueries=function(r,i,a){var o=this,s=en(r,i,a),u=s[0],l=s[1],f=this.queryCache,c=me({},u,{active:!0});return Ae.batch(function(){return f.findAll(u).forEach(function(d){d.reset()}),o.refetchQueries(c,l)})},t.cancelQueries=function(r,i,a){var o=this,s=en(r,i,a),u=s[0],l=s[1],f=l===void 0?{}:l;typeof f.revert>"u"&&(f.revert=!0);var c=Ae.batch(function(){return o.queryCache.findAll(u).map(function(d){return d.cancel(f)})});return Promise.all(c).then(Xe).catch(Xe)},t.invalidateQueries=function(r,i,a){var o,s,u,l=this,f=en(r,i,a),c=f[0],d=f[1],h=me({},c,{active:(o=(s=c.refetchActive)!=null?s:c.active)!=null?o:!0,inactive:(u=c.refetchInactive)!=null?u:!1});return Ae.batch(function(){return l.queryCache.findAll(c).forEach(function(p){p.invalidate()}),l.refetchQueries(h,d)})},t.refetchQueries=function(r,i,a){var o=this,s=en(r,i,a),u=s[0],l=s[1],f=Ae.batch(function(){return o.queryCache.findAll(u).map(function(d){return d.fetch(void 0,me({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),c=Promise.all(f).then(Xe);return l!=null&&l.throwOnError||(c=c.catch(Xe)),c},t.fetchQuery=function(r,i,a){var o=gi(r,i,a),s=this.defaultQueryOptions(o);typeof s.retry>"u"&&(s.retry=!1);var u=this.queryCache.build(this,s);return u.isStaleByTime(s.staleTime)?u.fetch(s):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,i,a){return this.fetchQuery(r,i,a).then(Xe).catch(Xe)},t.fetchInfiniteQuery=function(r,i,a){var o=gi(r,i,a);return o.behavior=up(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,i,a){return this.fetchInfiniteQuery(r,i,a).then(Xe).catch(Xe)},t.cancelMutations=function(){var r=this,i=Ae.batch(function(){return r.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(i).then(Xe).catch(Xe)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,i){var a=this.queryDefaults.find(function(o){return fn(r)===fn(o.queryKey)});a?a.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},t.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(a){return Oi(r,a.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var a=this.mutationDefaults.find(function(o){return fn(r)===fn(o.mutationKey)});a?a.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},t.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(a){return Oi(r,a.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=me({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=vs(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:me({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),fp=function(e){Un(t,e);function t(r,i){var a;return a=e.call(this)||this,a.client=r,a.options=i,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(i),a}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Tu(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return Mo(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return Mo(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,a){var o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&Su(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(a),u&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==s||this.options.enabled!==o.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},n.getOptimisticResult=function(i){var a=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,a);return this.createResult(o,a)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,a){var o=this,s={},u=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(i).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return u(l),i[l]}})}),(a.useErrorBoundary||a.suspense)&&u("error"),s},n.getNextResult=function(i){var a=this;return new Promise(function(o,s){var u=a.subscribe(function(l){l.isFetching||(u(),l.isError&&(i!=null&&i.throwOnError)?s(l.error):o(l))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(me({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var a=this,o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return s.fetch().then(function(){return a.createResult(s,o)})},n.fetch=function(i){var a=this;return this.executeFetch(i).then(function(){return a.updateResult(),a.currentResult})},n.executeFetch=function(i){this.updateQuery();var a=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(a=a.catch(Xe)),a},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Ai||this.currentResult.isStale||!Do(this.options.staleTime))){var a=rf(this.currentResult.dataUpdatedAt,this.options.staleTime),o=a+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Ai||this.options.enabled===!1||!Do(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||dr.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,a){var o=this.currentQuery,s=this.options,u=this.currentResult,l=this.currentResultState,f=this.currentResultOptions,c=i!==o,d=c?i.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,p=i.state,m=p.dataUpdatedAt,C=p.error,y=p.errorUpdatedAt,v=p.isFetching,w=p.status,D=!1,g=!1,_;if(a.optimisticResults){var S=this.hasListeners(),F=!S&&Tu(i,a),P=S&&Su(i,o,a,s);(F||P)&&(v=!0,m||(w="loading"))}if(a.keepPreviousData&&!p.dataUpdateCount&&(h!=null&&h.isSuccess)&&w!=="error")_=h.data,m=h.dataUpdatedAt,w=h.status,D=!0;else if(a.select&&typeof p.data<"u")if(u&&p.data===(l==null?void 0:l.data)&&a.select===this.selectFn)_=this.selectResult;else try{this.selectFn=a.select,_=a.select(p.data),a.structuralSharing!==!1&&(_=Ri(u==null?void 0:u.data,_)),this.selectResult=_,this.selectError=null}catch(M){Fi().error(M),this.selectError=M}else _=p.data;if(typeof a.placeholderData<"u"&&typeof _>"u"&&(w==="loading"||w==="idle")){var k;if(u!=null&&u.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))k=u.data;else if(k=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof k<"u")try{k=a.select(k),a.structuralSharing!==!1&&(k=Ri(u==null?void 0:u.data,k)),this.selectError=null}catch(M){Fi().error(M),this.selectError=M}typeof k<"u"&&(w="success",_=k,g=!0)}this.selectError&&(C=this.selectError,_=this.selectResult,y=Date.now(),w="error");var b={status:w,isLoading:w==="loading",isSuccess:w==="success",isError:w==="error",isIdle:w==="idle",data:_,dataUpdatedAt:m,error:C,errorUpdatedAt:y,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:v,isRefetching:v&&w!=="loading",isLoadingError:w==="error"&&p.dataUpdatedAt===0,isPlaceholderData:g,isPreviousData:D,isRefetchError:w==="error"&&p.dataUpdatedAt!==0,isStale:ys(i,a),refetch:this.refetch,remove:this.remove};return b},n.shouldNotifyListeners=function(i,a){if(!a)return!0;var o=this.options,s=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(f){var c=f,d=i[c]!==a[c],h=l==null?void 0:l.some(function(m){return m===f}),p=u==null?void 0:u.some(function(m){return m===f});return d&&!p&&(!l||h)})},n.updateResult=function(i){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Kh(this.currentResult,a)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(o.listeners=!0),this.notify(me({},o,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var a=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var a={};i.type==="success"?a.onSuccess=!0:i.type==="error"&&!yi(i.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var a=this;Ae.batch(function(){i.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):i.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)}),i.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(Fr);function dp(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Tu(e,t){return dp(e,t)||e.state.dataUpdatedAt>0&&Mo(e,t,t.refetchOnMount)}function Mo(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ys(e,t)}return!1}function Su(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&ys(e,n)}function ys(e,t){return e.isStaleByTime(t.staleTime)}var hp=Uh.unstable_batchedUpdates;Ae.setBatchNotifyFunction(hp);var pp=console;tp(pp);var Du=z.createContext(void 0),cf=z.createContext(!1);function ff(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Du),window.ReactQueryClientContext):Du}var mp=function(){var t=z.useContext(ff(z.useContext(cf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gp=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,a=t.children;z.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=ff(i);return z.createElement(cf.Provider,{value:i},z.createElement(o.Provider,{value:n},a))};function vp(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var yp=z.createContext(vp()),wp=function(){return z.useContext(yp)};function bp(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function _p(e,t){var n=z.useRef(!1),r=z.useState(0),i=r[1],a=mp(),o=wp(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Ae.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Ae.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Ae.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var u=z.useState(function(){return new t(a,s)}),l=u[0],f=l.getOptimisticResult(s);if(z.useEffect(function(){n.current=!0,o.clearReset();var c=l.subscribe(Ae.batchCalls(function(){n.current&&i(function(d){return d+1})}));return l.updateResult(),function(){n.current=!1,c()}},[o,l]),z.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&f.isLoading)throw l.fetchOptimistic(s).then(function(c){var d=c.data;s.onSuccess==null||s.onSuccess(d),s.onSettled==null||s.onSettled(d,null)}).catch(function(c){o.clearReset(),s.onError==null||s.onError(c),s.onSettled==null||s.onSettled(void 0,c)});if(f.isError&&!o.isReset()&&!f.isFetching&&bp(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Eu(e,t,n){var r=gi(e,t,n);return _p(r,fp)}function xp(e){let t;const n=new Set,r=(l,f)=>{const c=typeof l=="function"?l(t):l;if(c!==t){const d=t;t=f?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},i=()=>t,a=(l,f=i,c=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=f(t);function h(){const p=f(t);if(!c(d,p)){const m=d;l(d=p,m)}}return n.add(h),()=>n.delete(h)},u={setState:r,getState:i,subscribe:(l,f,c)=>f||c?a(l,f,c):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,i,u),u}const Cp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Mu=Cp?J.useEffect:J.useLayoutEffect;function Tp(e){const t=typeof e=="function"?xp(e):e,n=(r=t.getState,i=Object.is)=>{const[,a]=J.useReducer(C=>C+1,0),o=t.getState(),s=J.useRef(o),u=J.useRef(r),l=J.useRef(i),f=J.useRef(!1),c=J.useRef();c.current===void 0&&(c.current=r(o));let d,h=!1;(s.current!==o||u.current!==r||l.current!==i||f.current)&&(d=r(o),h=!i(c.current,d)),Mu(()=>{h&&(c.current=d),s.current=o,u.current=r,l.current=i,f.current=!1});const p=J.useRef(o);Mu(()=>{const C=()=>{try{const v=t.getState(),w=u.current(v);l.current(c.current,w)||(s.current=v,c.current=w,a())}catch{f.current=!0,a()}},y=t.subscribe(C);return t.getState()!==p.current&&C(),y},[]);const m=h?d:c.current;return J.useDebugValue(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function On(e){return!!e&&!!e[lt]}function hn(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Rp}(e)||Array.isArray(e)||!!e[Pu]||!!(!((t=e.constructor)===null||t===void 0)&&t[Pu])||ws(e)||bs(e))}function gr(e,t,n){n===void 0&&(n=!1),Wn(e)===0?(n?Object.keys:Ss)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Wn(e){var t=e[lt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ws(e)?2:bs(e)?3:0}function Ao(e,t){return Wn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sp(e,t){return Wn(e)===2?e.get(t):e[t]}function df(e,t,n){var r=Wn(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dp(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ws(e){return Ip&&e instanceof Map}function bs(e){return Op&&e instanceof Set}function ln(e){return e.o||e.t}function _s(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=kp(e);delete t[lt];for(var n=Ss(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function xs(e,t){return t===void 0&&(t=!1),Cs(e)||On(e)||!hn(e)||(Wn(e)>1&&(e.set=e.add=e.clear=e.delete=Ep),Object.freeze(e),t&&gr(e,function(n,r){return xs(r,!0)},!0)),e}function Ep(){xt(2)}function Cs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ft(e){var t=Fp[e];return t||xt(18,e),t}function Au(){return vr}function La(e,t){t&&(Ft("Patches"),e.u=[],e.s=[],e.v=t)}function Ni(e){Io(e),e.p.forEach(Mp),e.p=null}function Io(e){e===vr&&(vr=e.l)}function Iu(e){return vr={p:[],l:vr,h:e,m:!0,_:0}}function Mp(e){var t=e[lt];t.i===0||t.i===1?t.j():t.g=!0}function $a(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ft("ES5").S(t,e,r),r?(n[lt].P&&(Ni(t),xt(4)),hn(e)&&(e=Pi(t,e),t.l||Li(t,e)),t.u&&Ft("Patches").M(n[lt].t,e,t.u,t.s)):e=Pi(t,n,[]),Ni(t),t.u&&t.v(t.u,t.s),e!==hf?e:void 0}function Pi(e,t,n){if(Cs(t))return t;var r=t[lt];if(!r)return gr(t,function(s,u){return Ou(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Li(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=_s(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),gr(a,function(s,u){return Ou(e,r,i,s,u,n,o)}),Li(e,i,!1),n&&e.u&&Ft("Patches").N(r,n,e.u,e.s)}return r.o}function Ou(e,t,n,r,i,a,o){if(On(i)){var s=Pi(e,i,a&&t&&t.i!==3&&!Ao(t.R,r)?a.concat(r):void 0);if(df(n,r,s),!On(s))return;e.m=!1}else o&&n.add(i);if(hn(i)&&!Cs(i)){if(!e.h.D&&e._<1)return;Pi(e,i),t&&t.A.l||Li(e,i)}}function Li(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&xs(t,n)}function za(e,t){var n=e[lt];return(n?ln(n):e)[t]}function Ru(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Oo(e){e.P||(e.P=!0,e.l&&Oo(e.l))}function Ha(e){e.o||(e.o=_s(e.t))}function Ro(e,t,n){var r=ws(t)?Ft("MapSet").F(t,n):bs(t)?Ft("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Au(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,l=ko;o&&(u=[s],l=ur);var f=Proxy.revocable(u,l),c=f.revoke,d=f.proxy;return s.k=d,s.j=c,d}(t,n):Ft("ES5").J(t,n);return(n?n.A:Au()).p.push(r),r}function Ap(e){return On(e)||xt(22,e),function t(n){if(!hn(n))return n;var r,i=n[lt],a=Wn(n);if(i){if(!i.P&&(i.i<4||!Ft("ES5").K(i)))return i.t;i.I=!0,r=ku(n,a),i.I=!1}else r=ku(n,a);return gr(r,function(o,s){i&&Sp(i.t,o)===s||df(r,o,t(s))}),a===3?new Set(r):r}(e)}function ku(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _s(e)}var Fu,vr,Ts=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ip=typeof Map<"u",Op=typeof Set<"u",Nu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hf=Ts?Symbol.for("immer-nothing"):((Fu={})["immer-nothing"]=!0,Fu),Pu=Ts?Symbol.for("immer-draftable"):"__$immer_draftable",lt=Ts?Symbol.for("immer-state"):"__$immer_state",Rp=""+Object.prototype.constructor,Ss=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,kp=Object.getOwnPropertyDescriptors||function(e){var t={};return Ss(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Fp={},ko={get:function(e,t){if(t===lt)return e;var n=ln(e);if(!Ao(n,t))return function(i,a,o){var s,u=Ru(a,o);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!hn(r)?r:r===za(e.t,t)?(Ha(e),e.o[t]=Ro(e.A.h,r,e)):r},has:function(e,t){return t in ln(e)},ownKeys:function(e){return Reflect.ownKeys(ln(e))},set:function(e,t,n){var r=Ru(ln(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=za(ln(e),t),a=i==null?void 0:i[lt];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Dp(n,i)&&(n!==void 0||Ao(e.t,t)))return!0;Ha(e),Oo(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return za(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ha(e),Oo(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ln(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},ur={};gr(ko,function(e,t){ur[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ur.deleteProperty=function(e,t){return ur.set.call(this,e,t,void 0)},ur.set=function(e,t,n){return ko.set.call(this,e[0],t,n,e[0])};var Np=function(){function e(n){var r=this;this.O=Nu,this.D=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var u=r;return function(m){var C=this;m===void 0&&(m=s);for(var y=arguments.length,v=Array(y>1?y-1:0),w=1;w<y;w++)v[w-1]=arguments[w];return u.produce(m,function(D){var g;return(g=a).call.apply(g,[C,D].concat(v))})}}var l;if(typeof a!="function"&&xt(6),o!==void 0&&typeof o!="function"&&xt(7),hn(i)){var f=Iu(r),c=Ro(r,i,void 0),d=!0;try{l=a(c),d=!1}finally{d?Ni(f):Io(f)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return La(f,o),$a(m,f)},function(m){throw Ni(f),m}):(La(f,o),$a(l,f))}if(!i||typeof i!="object"){if((l=a(i))===void 0&&(l=i),l===hf&&(l=void 0),r.D&&xs(l,!0),o){var h=[],p=[];Ft("Patches").M(i,l,h,p),o(h,p)}return l}xt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(l){for(var f=arguments.length,c=Array(f>1?f-1:0),d=1;d<f;d++)c[d-1]=arguments[d];return r.produceWithPatches(l,function(h){return i.apply(void 0,[h].concat(c))})};var o,s,u=r.produce(i,a,function(l,f){o=l,s=f});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,o,s]}):[u,o,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){hn(n)||xt(8),On(n)&&(n=Ap(n));var r=Iu(this),i=Ro(this,n,void 0);return i[lt].C=!0,Io(r),i},t.finishDraft=function(n,r){var i=n&&n[lt],a=i.A;return La(a,r),$a(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Nu&&xt(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=Ft("Patches").$;return On(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ct=new Np,Pp=ct.produce;ct.produceWithPatches.bind(ct);ct.setAutoFreeze.bind(ct);ct.setUseProxies.bind(ct);ct.applyPatches.bind(ct);ct.createDraft.bind(ct);ct.finishDraft.bind(ct);const Lp=Pp;function Ds(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function pf(e){let t=e,n=e;e.length===1&&(t=(o,s)=>e(o)-s,n=$p(e));function r(o,s,u,l){for(u==null&&(u=0),l==null&&(l=o.length);u<l;){const f=u+l>>>1;n(o[f],s)<0?u=f+1:l=f}return u}function i(o,s,u,l){for(u==null&&(u=0),l==null&&(l=o.length);u<l;){const f=u+l>>>1;n(o[f],s)>0?l=f:u=f+1}return u}function a(o,s,u,l){u==null&&(u=0),l==null&&(l=o.length);const f=r(o,s,u,l-1);return f>u&&t(o[f-1],s)>-t(o[f],s)?f-1:f}return{left:r,center:a,right:i}}function $p(e){return(t,n)=>Ds(e(t),n)}function zp(e){return e===null?NaN:+e}const mf=pf(Ds),gf=mf.right,Hp=mf.left;pf(zp).center;function Up(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function Fo(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function En(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}function Wp(e){return e}var Bp=Array.prototype,Vp=Bp.slice;function Jr(e){return function(){return e}}var No=Math.sqrt(50),Po=Math.sqrt(10),Lo=Math.sqrt(2);function vf(e,t,n){var r,i=-1,a,o,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),(s=sa(e,t,n))===0||!isFinite(s))return[];if(s>0){let u=Math.round(e/s),l=Math.round(t/s);for(u*s<e&&++u,l*s>t&&--l,o=new Array(a=l-u+1);++i<a;)o[i]=(u+i)*s}else{s=-s;let u=Math.round(e*s),l=Math.round(t*s);for(u/s<e&&++u,l/s>t&&--l,o=new Array(a=l-u+1);++i<a;)o[i]=(u+i)/s}return r&&o.reverse(),o}function sa(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=No?10:a>=Po?5:a>=Lo?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=No?10:a>=Po?5:a>=Lo?2:1)}function jp(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=No?i*=10:a>=Po?i*=5:a>=Lo&&(i*=2),t<e?-i:i}function qp(e,t,n){let r;for(;;){const i=sa(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function Yp(e){return Math.ceil(Math.log(Up(e))/Math.LN2)+1}function Ua(){var e=Wp,t=En,n=Yp;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,u=new Array(o);for(a=0;a<o;++a)u[a]=e(i[a],a,i);var l=t(u),f=l[0],c=l[1],d=n(u,f,c);if(!Array.isArray(d)){const C=c,y=+d;if(t===En&&([f,c]=qp(f,c,y)),d=vf(f,c,y),d[d.length-1]>=c)if(C>=c&&t===En){const v=sa(f,c,y);isFinite(v)&&(v>0?c=(Math.floor(c/v)+1)*v:v<0&&(c=(Math.ceil(c*-v)+1)/-v))}else d.pop()}for(var h=d.length;d[0]<=f;)d.shift(),--h;for(;d[h-1]>c;)d.pop(),--h;var p=new Array(h+1),m;for(a=0;a<=h;++a)m=p[a]=[],m.x0=a>0?d[a-1]:f,m.x1=a<h?d[a]:c;for(a=0;a<o;++a)s=u[a],f<=s&&s<=c&&p[gf(d,s,0,h)].push(i[a]);return p}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:Jr(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:Jr([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:Array.isArray(i)?Jr(Vp.call(i)):Jr(i),r):n},r}function $o(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function yf(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var zo="http://www.w3.org/1999/xhtml";const Lu={svg:"http://www.w3.org/2000/svg",xhtml:zo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ua(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Lu.hasOwnProperty(t)?{space:Lu[t],local:e}:e}function Qp(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===zo&&t.documentElement.namespaceURI===zo?t.createElement(e):t.createElementNS(n,e)}}function Kp(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wf(e){var t=ua(e);return(t.local?Kp:Qp)(t)}function Gp(){}function Es(e){return e==null?Gp:function(){return this.querySelector(e)}}function Xp(e){typeof e!="function"&&(e=Es(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,l,f=0;f<o;++f)(u=a[f])&&(l=e.call(u,u.__data__,f,a))&&("__data__"in u&&(l.__data__=u.__data__),s[f]=l);return new pt(r,this._parents)}function bf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Zp(){return[]}function _f(e){return e==null?Zp:function(){return this.querySelectorAll(e)}}function Jp(e){return function(){var t=e.apply(this,arguments);return t==null?[]:bf(t)}}function em(e){typeof e=="function"?e=Jp(e):e=_f(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&(r.push(e.call(u,u.__data__,l,o)),i.push(u));return new pt(r,i)}function xf(e){return function(){return this.matches(e)}}function Cf(e){return function(t){return t.matches(e)}}var tm=Array.prototype.find;function nm(e){return function(){return tm.call(this.children,e)}}function rm(){return this.firstElementChild}function im(e){return this.select(e==null?rm:nm(typeof e=="function"?e:Cf(e)))}var am=Array.prototype.filter;function om(){return this.children}function sm(e){return function(){return am.call(this.children,e)}}function um(e){return this.selectAll(e==null?om:sm(typeof e=="function"?e:Cf(e)))}function lm(e){typeof e!="function"&&(e=xf(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new pt(r,this._parents)}function Tf(e){return new Array(e.length)}function cm(){return new pt(this._enter||this._groups.map(Tf),this._parents)}function $i(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$i.prototype={constructor:$i,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function fm(e){return function(){return e}}function dm(e,t,n,r,i,a){for(var o=0,s,u=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new $i(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function hm(e,t,n,r,i,a,o){var s,u,l=new Map,f=t.length,c=a.length,d=new Array(f),h;for(s=0;s<f;++s)(u=t[s])&&(d[s]=h=o.call(u,u.__data__,s,t)+"",l.has(h)?i[s]=u:l.set(h,u));for(s=0;s<c;++s)h=o.call(e,a[s],s,a)+"",(u=l.get(h))?(r[s]=u,u.__data__=a[s],l.delete(h)):n[s]=new $i(e,a[s]);for(s=0;s<f;++s)(u=t[s])&&l.get(d[s])===u&&(i[s]=u)}function pm(e){return e.__data__}function mm(e,t){if(!arguments.length)return Array.from(this,pm);var n=t?hm:dm,r=this._parents,i=this._groups;typeof e!="function"&&(e=fm(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var f=r[l],c=i[l],d=c.length,h=bf(e.call(f,f&&f.__data__,l,r)),p=h.length,m=s[l]=new Array(p),C=o[l]=new Array(p),y=u[l]=new Array(d);n(f,c,m,C,y,h,t);for(var v=0,w=0,D,g;v<p;++v)if(D=m[v]){for(v>=w&&(w=v+1);!(g=C[w])&&++w<p;);D._next=g||null}}return o=new pt(o,r),o._enter=s,o._exit=u,o}function gm(){return new pt(this._exit||this._groups.map(Tf),this._parents)}function vm(e,t,n){var r=this.enter(),i=this,a=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function ym(e){if(!(e instanceof pt))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],l=n[s],f=u.length,c=o[s]=new Array(f),d,h=0;h<f;++h)(d=u[h]||l[h])&&(c[h]=d);for(;s<r;++s)o[s]=t[s];return new pt(o,this._parents)}function wm(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function bm(e){e||(e=_m);function t(c,d){return c&&d?e(c.__data__,d.__data__):!c-!d}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),l,f=0;f<s;++f)(l=o[f])&&(u[f]=l);u.sort(t)}return new pt(i,this._parents).order()}function _m(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xm(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Cm(){return Array.from(this)}function Tm(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Sm(){let e=0;for(const t of this)++e;return e}function Dm(){return!this.node()}function Em(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Mm(e){return function(){this.removeAttribute(e)}}function Am(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Im(e,t){return function(){this.setAttribute(e,t)}}function Om(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Rm(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function km(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Fm(e,t){var n=ua(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Am:Mm:typeof t=="function"?n.local?km:Rm:n.local?Om:Im)(n,t))}function Sf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Nm(e){return function(){this.style.removeProperty(e)}}function Pm(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Lm(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $m(e,t,n){return arguments.length>1?this.each((t==null?Nm:typeof t=="function"?Lm:Pm)(e,t,n??"")):Rn(this.node(),e)}function Rn(e,t){return e.style.getPropertyValue(t)||Sf(e).getComputedStyle(e,null).getPropertyValue(t)}function zm(e){return function(){delete this[e]}}function Hm(e,t){return function(){this[e]=t}}function Um(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Wm(e,t){return arguments.length>1?this.each((t==null?zm:typeof t=="function"?Um:Hm)(e,t)):this.node()[e]}function Df(e){return e.trim().split(/^|\s+/)}function Ms(e){return e.classList||new Ef(e)}function Ef(e){this._node=e,this._names=Df(e.getAttribute("class")||"")}Ef.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Mf(e,t){for(var n=Ms(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Af(e,t){for(var n=Ms(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Bm(e){return function(){Mf(this,e)}}function Vm(e){return function(){Af(this,e)}}function jm(e,t){return function(){(t.apply(this,arguments)?Mf:Af)(this,e)}}function qm(e,t){var n=Df(e+"");if(arguments.length<2){for(var r=Ms(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?jm:t?Bm:Vm)(n,t))}function Ym(){this.textContent=""}function Qm(e){return function(){this.textContent=e}}function Km(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Gm(e){return arguments.length?this.each(e==null?Ym:(typeof e=="function"?Km:Qm)(e)):this.node().textContent}function Xm(){this.innerHTML=""}function Zm(e){return function(){this.innerHTML=e}}function Jm(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function e0(e){return arguments.length?this.each(e==null?Xm:(typeof e=="function"?Jm:Zm)(e)):this.node().innerHTML}function t0(){this.nextSibling&&this.parentNode.appendChild(this)}function n0(){return this.each(t0)}function r0(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function i0(){return this.each(r0)}function a0(e){var t=typeof e=="function"?e:wf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function o0(){return null}function s0(e,t){var n=typeof e=="function"?e:wf(e),r=t==null?o0:typeof t=="function"?t:Es(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function u0(){var e=this.parentNode;e&&e.removeChild(this)}function l0(){return this.each(u0)}function c0(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function f0(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function d0(e){return this.select(e?f0:c0)}function h0(e){return arguments.length?this.property("__data__",e):this.node().__data__}function p0(e){return function(t){e.call(this,t,this.__data__)}}function m0(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function g0(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function v0(e,t,n){return function(){var r=this.__on,i,a=p0(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function y0(e,t,n){var r=m0(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,f;u<l;++u)for(i=0,f=s[u];i<a;++i)if((o=r[i]).type===f.type&&o.name===f.name)return f.value}return}for(s=t?v0:g0,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function If(e,t,n){var r=Sf(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function w0(e,t){return function(){return If(this,e,t)}}function b0(e,t){return function(){return If(this,e,t.apply(this,arguments))}}function _0(e,t){return this.each((typeof t=="function"?b0:w0)(e,t))}function*x0(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var C0=[null];function pt(e,t){this._groups=e,this._parents=t}function Nr(){return new pt([[document.documentElement]],C0)}function T0(){return this}pt.prototype=Nr.prototype={constructor:pt,select:Xp,selectAll:em,selectChild:im,selectChildren:um,filter:lm,data:mm,enter:cm,exit:gm,join:vm,merge:ym,selection:T0,order:wm,sort:bm,call:xm,nodes:Cm,node:Tm,size:Sm,empty:Dm,each:Em,attr:Fm,style:$m,property:Wm,classed:qm,text:Gm,html:e0,raise:n0,lower:i0,append:a0,insert:s0,remove:l0,clone:d0,datum:h0,on:y0,dispatch:_0,[Symbol.iterator]:x0};var S0={value:()=>{}};function Of(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new wi(n)}function wi(e){this._=e}function D0(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}wi.prototype=Of.prototype={constructor:wi,on:function(e,t){var n=this._,r=D0(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=E0(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=$u(n[i],e.name,t);else if(t==null)for(i in n)n[i]=$u(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new wi(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function E0(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function $u(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=S0,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var kn=0,lr=0,Gn=0,Rf=1e3,zi,cr,Hi=0,pn=0,la=0,yr=typeof performance=="object"&&performance.now?performance:Date,kf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function As(){return pn||(kf(M0),pn=yr.now()+la)}function M0(){pn=0}function Ui(){this._call=this._time=this._next=null}Ui.prototype=Ff.prototype={constructor:Ui,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?As():+n)+(t==null?0:+t),!this._next&&cr!==this&&(cr?cr._next=this:zi=this,cr=this),this._call=e,this._time=n,Ho()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ho())}};function Ff(e,t,n){var r=new Ui;return r.restart(e,t,n),r}function A0(){As(),++kn;for(var e=zi,t;e;)(t=pn-e._time)>=0&&e._call.call(null,t),e=e._next;--kn}function zu(){pn=(Hi=yr.now())+la,kn=lr=0;try{A0()}finally{kn=0,O0(),pn=0}}function I0(){var e=yr.now(),t=e-Hi;t>Rf&&(la-=t,Hi=e)}function O0(){for(var e,t=zi,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:zi=n);cr=e,Ho(r)}function Ho(e){if(!kn){lr&&(lr=clearTimeout(lr));var t=e-pn;t>24?(e<1/0&&(lr=setTimeout(zu,e-yr.now()-la)),Gn&&(Gn=clearInterval(Gn))):(Gn||(Hi=yr.now(),Gn=setInterval(I0,Rf)),kn=1,kf(zu))}}function Hu(e,t,n){var r=new Ui;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var R0=Of("start","end","cancel","interrupt"),k0=[],Nf=0,Uu=1,Uo=2,bi=3,Wu=4,Wo=5,_i=6;function ca(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;F0(e,n,{name:t,index:r,group:i,on:R0,tween:k0,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Nf})}function Is(e,t){var n=Tt(e,t);if(n.state>Nf)throw new Error("too late; already scheduled");return n}function $t(e,t){var n=Tt(e,t);if(n.state>bi)throw new Error("too late; already running");return n}function Tt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function F0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Ff(a,0,n.time);function a(l){n.state=Uu,n.timer.restart(o,n.delay,n.time),n.delay<=l&&o(l-n.delay)}function o(l){var f,c,d,h;if(n.state!==Uu)return u();for(f in r)if(h=r[f],h.name===n.name){if(h.state===bi)return Hu(o);h.state===Wu?(h.state=_i,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[f]):+f<t&&(h.state=_i,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[f])}if(Hu(function(){n.state===bi&&(n.state=Wu,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=Uo,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Uo){for(n.state=bi,i=new Array(d=n.tween.length),f=0,c=-1;f<d;++f)(h=n.tween[f].value.call(e,e.__data__,n.index,n.group))&&(i[++c]=h);i.length=c+1}}function s(l){for(var f=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=Wo,1),c=-1,d=i.length;++c<d;)i[c].call(e,f);n.state===Wo&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=_i,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function N0(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Uo&&r.state<Wo,r.state=_i,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function P0(e){return this.each(function(){N0(this,e)})}function Os(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pr(){}var wr=.7,Wi=1/wr,Mn="\\s*([+-]?\\d+)\\s*",br="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",L0=/^#([0-9a-f]{3,8})$/,$0=new RegExp("^rgb\\("+[Mn,Mn,Mn]+"\\)$"),z0=new RegExp("^rgb\\("+[Nt,Nt,Nt]+"\\)$"),H0=new RegExp("^rgba\\("+[Mn,Mn,Mn,br]+"\\)$"),U0=new RegExp("^rgba\\("+[Nt,Nt,Nt,br]+"\\)$"),W0=new RegExp("^hsl\\("+[br,Nt,Nt]+"\\)$"),B0=new RegExp("^hsla\\("+[br,Nt,Nt,br]+"\\)$"),Bu={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};Os(Pr,_r,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Vu,formatHex:Vu,formatHsl:V0,formatRgb:ju,toString:ju});function Vu(){return this.rgb().formatHex()}function V0(){return Lf(this).formatHsl()}function ju(){return this.rgb().formatRgb()}function _r(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=L0.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?qu(t):n===3?new ot(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ei(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ei(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=$0.exec(e))?new ot(t[1],t[2],t[3],1):(t=z0.exec(e))?new ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=H0.exec(e))?ei(t[1],t[2],t[3],t[4]):(t=U0.exec(e))?ei(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=W0.exec(e))?Ku(t[1],t[2]/100,t[3]/100,1):(t=B0.exec(e))?Ku(t[1],t[2]/100,t[3]/100,t[4]):Bu.hasOwnProperty(e)?qu(Bu[e]):e==="transparent"?new ot(NaN,NaN,NaN,0):null}function qu(e){return new ot(e>>16&255,e>>8&255,e&255,1)}function ei(e,t,n,r){return r<=0&&(e=t=n=NaN),new ot(e,t,n,r)}function j0(e){return e instanceof Pr||(e=_r(e)),e?(e=e.rgb(),new ot(e.r,e.g,e.b,e.opacity)):new ot}function Bo(e,t,n,r){return arguments.length===1?j0(e):new ot(e,t,n,r??1)}function ot(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Os(ot,Bo,Pf(Pr,{brighter:function(e){return e=e==null?Wi:Math.pow(Wi,e),new ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?wr:Math.pow(wr,e),new ot(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:Yu,formatHex:Yu,formatRgb:Qu,toString:Qu}));function Yu(){return"#"+Wa(this.r)+Wa(this.g)+Wa(this.b)}function Qu(){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 Wa(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Ku(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new At(e,t,n,r)}function Lf(e){if(e instanceof At)return new At(e.h,e.s,e.l,e.opacity);if(e instanceof Pr||(e=_r(e)),!e)return new At;if(e instanceof At)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new At(o,s,u,e.opacity)}function q0(e,t,n,r){return arguments.length===1?Lf(e):new At(e,t,n,r??1)}function At(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Os(At,q0,Pf(Pr,{brighter:function(e){return e=e==null?Wi:Math.pow(Wi,e),new At(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wr:Math.pow(wr,e),new At(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ot(Ba(e>=240?e-240:e+120,i,r),Ba(e,i,r),Ba(e<120?e+240:e-120,i,r),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 Ba(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const $f=e=>()=>e;function Y0(e,t){return function(n){return e+n*t}}function Q0(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function K0(e){return(e=+e)==1?zf:function(t,n){return n-t?Q0(t,n,e):$f(isNaN(t)?n:t)}}function zf(e,t){var n=t-e;return n?Y0(e,n):$f(isNaN(e)?t:e)}const Gu=function e(t){var n=K0(t);function r(i,a){var o=n((i=Bo(i)).r,(a=Bo(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),l=zf(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return r.gamma=e,r}(1);function tn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Vo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Va=new RegExp(Vo.source,"g");function G0(e){return function(){return e}}function X0(e){return function(t){return e(t)+""}}function Z0(e,t){var n=Vo.lastIndex=Va.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Vo.exec(e))&&(i=Va.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:tn(r,i)})),n=Va.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?X0(u[0].x):G0(t):(t=u.length,function(l){for(var f=0,c;f<t;++f)s[(c=u[f]).i]=c.x(l);return s.join("")})}var Xu=180/Math.PI,jo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Hf(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Xu,skewX:Math.atan(u)*Xu,scaleX:o,scaleY:s}}var ti;function J0(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jo:Hf(t.a,t.b,t.c,t.d,t.e,t.f)}function eg(e){return e==null||(ti||(ti=document.createElementNS("http://www.w3.org/2000/svg","g")),ti.setAttribute("transform",e),!(e=ti.transform.baseVal.consolidate()))?jo:(e=e.matrix,Hf(e.a,e.b,e.c,e.d,e.e,e.f))}function Uf(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,d,h,p){if(l!==c||f!==d){var m=h.push("translate(",null,t,null,n);p.push({i:m-4,x:tn(l,c)},{i:m-2,x:tn(f,d)})}else(c||d)&&h.push("translate("+c+t+d+n)}function o(l,f,c,d){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),d.push({i:c.push(i(c)+"rotate(",null,r)-2,x:tn(l,f)})):f&&c.push(i(c)+"rotate("+f+r)}function s(l,f,c,d){l!==f?d.push({i:c.push(i(c)+"skewX(",null,r)-2,x:tn(l,f)}):f&&c.push(i(c)+"skewX("+f+r)}function u(l,f,c,d,h,p){if(l!==c||f!==d){var m=h.push(i(h)+"scale(",null,",",null,")");p.push({i:m-4,x:tn(l,c)},{i:m-2,x:tn(f,d)})}else(c!==1||d!==1)&&h.push(i(h)+"scale("+c+","+d+")")}return function(l,f){var c=[],d=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,d),o(l.rotate,f.rotate,c,d),s(l.skewX,f.skewX,c,d),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,d),l=f=null,function(h){for(var p=-1,m=d.length,C;++p<m;)c[(C=d[p]).i]=C.x(h);return c.join("")}}}var tg=Uf(J0,"px, ","px)","deg)"),ng=Uf(eg,", ",")",")");function rg(e,t){var n,r;return function(){var i=$t(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function ig(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=$t(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}a.tween=i}}function ag(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Tt(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?rg:ig)(n,e,t))}function Rs(e,t,n){var r=e._id;return e.each(function(){var i=$t(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Tt(i,r).value[t]}}function Wf(e,t){var n;return(typeof t=="number"?tn:t instanceof _r?Gu:(n=_r(t))?(t=n,Gu):Z0)(e,t)}function og(e){return function(){this.removeAttribute(e)}}function sg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ug(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function lg(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function cg(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function fg(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function dg(e,t){var n=ua(e),r=n==="transform"?ng:Wf;return this.attrTween(e,typeof t=="function"?(n.local?fg:cg)(n,r,Rs(this,"attr."+e,t)):t==null?(n.local?sg:og)(n):(n.local?lg:ug)(n,r,t))}function hg(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function pg(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function mg(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&pg(e,a)),n}return i._value=t,i}function gg(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&hg(e,a)),n}return i._value=t,i}function vg(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=ua(e);return this.tween(n,(r.local?mg:gg)(r,t))}function yg(e,t){return function(){Is(this,e).delay=+t.apply(this,arguments)}}function wg(e,t){return t=+t,function(){Is(this,e).delay=t}}function bg(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?yg:wg)(t,e)):Tt(this.node(),t).delay}function _g(e,t){return function(){$t(this,e).duration=+t.apply(this,arguments)}}function xg(e,t){return t=+t,function(){$t(this,e).duration=t}}function Cg(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_g:xg)(t,e)):Tt(this.node(),t).duration}function Tg(e,t){if(typeof t!="function")throw new Error;return function(){$t(this,e).ease=t}}function Sg(e){var t=this._id;return arguments.length?this.each(Tg(t,e)):Tt(this.node(),t).ease}function Dg(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;$t(this,e).ease=n}}function Eg(e){if(typeof e!="function")throw new Error;return this.each(Dg(this._id,e))}function Mg(e){typeof e!="function"&&(e=xf(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new Yt(r,this._parents,this._name,this._id)}function Ag(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],l=n[s],f=u.length,c=o[s]=new Array(f),d,h=0;h<f;++h)(d=u[h]||l[h])&&(c[h]=d);for(;s<r;++s)o[s]=t[s];return new Yt(o,this._parents,this._name,this._id)}function Ig(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Og(e,t,n){var r,i,a=Ig(t)?Is:$t;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Rg(e,t){var n=this._id;return arguments.length<2?Tt(this.node(),n).on.on(e):this.each(Og(n,e,t))}function kg(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Fg(){return this.on("end.remove",kg(this._id))}function Ng(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Es(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,l=a[o]=new Array(u),f,c,d=0;d<u;++d)(f=s[d])&&(c=e.call(f,f.__data__,d,s))&&("__data__"in f&&(c.__data__=f.__data__),l[d]=c,ca(l[d],t,n,d,l,Tt(f,n)));return new Yt(a,this._parents,t,n)}function Pg(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_f(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],l=u.length,f,c=0;c<l;++c)if(f=u[c]){for(var d=e.call(f,f.__data__,c,u),h,p=Tt(f,n),m=0,C=d.length;m<C;++m)(h=d[m])&&ca(h,t,n,m,d,p);a.push(d),o.push(f)}return new Yt(a,o,t,n)}var Lg=Nr.prototype.constructor;function $g(){return new Lg(this._groups,this._parents)}function zg(e,t){var n,r,i;return function(){var a=Rn(this,e),o=(this.style.removeProperty(e),Rn(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Bf(e){return function(){this.style.removeProperty(e)}}function Hg(e,t,n){var r,i=n+"",a;return function(){var o=Rn(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ug(e,t,n){var r,i,a;return function(){var o=Rn(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Rn(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function Wg(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=$t(this,e),l=u.on,f=u.value[a]==null?s||(s=Bf(t)):void 0;(l!==n||i!==f)&&(r=(n=l).copy()).on(o,i=f),u.on=r}}function Bg(e,t,n){var r=(e+="")=="transform"?tg:Wf;return t==null?this.styleTween(e,zg(e,r)).on("end.style."+e,Bf(e)):typeof t=="function"?this.styleTween(e,Ug(e,r,Rs(this,"style."+e,t))).each(Wg(this._id,e)):this.styleTween(e,Hg(e,r,t),n).on("end.style."+e,null)}function Vg(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function jg(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Vg(e,o,n)),r}return a._value=t,a}function qg(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,jg(e,t,n??""))}function Yg(e){return function(){this.textContent=e}}function Qg(e){return function(){var t=e(this);this.textContent=t??""}}function Kg(e){return this.tween("text",typeof e=="function"?Qg(Rs(this,"text",e)):Yg(e==null?"":e+""))}function Gg(e){return function(t){this.textContent=e.call(this,t)}}function Xg(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Gg(i)),t}return r._value=e,r}function Zg(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Xg(e))}function Jg(){for(var e=this._name,t=this._id,n=Vf(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,l=0;l<s;++l)if(u=o[l]){var f=Tt(u,t);ca(u,e,n,l,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Yt(r,this._parents,e,n)}function ev(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var l=$t(this,r),f=l.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t}),i===0&&a()})}var tv=0;function Yt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Vf(){return++tv}var sn=Nr.prototype;Yt.prototype={constructor:Yt,select:Ng,selectAll:Pg,filter:Mg,merge:Ag,selection:$g,transition:Jg,call:sn.call,nodes:sn.nodes,node:sn.node,size:sn.size,empty:sn.empty,each:sn.each,on:Rg,attr:dg,attrTween:vg,style:Bg,styleTween:qg,text:Kg,textTween:Zg,remove:Fg,tween:ag,delay:bg,duration:Cg,ease:Sg,easeVarying:Eg,end:ev,[Symbol.iterator]:sn[Symbol.iterator]};function nv(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var rv={time:null,delay:0,duration:250,ease:nv};function iv(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function av(e){var t,n;e instanceof Yt?(t=e._id,e=e._name):(t=Vf(),(n=rv).time=As(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&ca(u,e,t,l,o,n||iv(u,t));return new Yt(r,this._parents,e,t)}Nr.prototype.interrupt=P0;Nr.prototype.transition=av;function ks(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function jf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lr(){}var xr=.7,Bi=1/xr,An="\\s*([+-]?\\d+)\\s*",Cr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ov=/^#([0-9a-f]{3,8})$/,sv=new RegExp("^rgb\\("+[An,An,An]+"\\)$"),uv=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),lv=new RegExp("^rgba\\("+[An,An,An,Cr]+"\\)$"),cv=new RegExp("^rgba\\("+[Pt,Pt,Pt,Cr]+"\\)$"),fv=new RegExp("^hsl\\("+[Cr,Pt,Pt]+"\\)$"),dv=new RegExp("^hsla\\("+[Cr,Pt,Pt,Cr]+"\\)$"),Zu={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};ks(Lr,Tr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ju,formatHex:Ju,formatHsl:hv,formatRgb:el,toString:el});function Ju(){return this.rgb().formatHex()}function hv(){return qf(this).formatHsl()}function el(){return this.rgb().formatRgb()}function Tr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ov.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?tl(t):n===3?new st(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ni(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ni(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=sv.exec(e))?new st(t[1],t[2],t[3],1):(t=uv.exec(e))?new st(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lv.exec(e))?ni(t[1],t[2],t[3],t[4]):(t=cv.exec(e))?ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fv.exec(e))?il(t[1],t[2]/100,t[3]/100,1):(t=dv.exec(e))?il(t[1],t[2]/100,t[3]/100,t[4]):Zu.hasOwnProperty(e)?tl(Zu[e]):e==="transparent"?new st(NaN,NaN,NaN,0):null}function tl(e){return new st(e>>16&255,e>>8&255,e&255,1)}function ni(e,t,n,r){return r<=0&&(e=t=n=NaN),new st(e,t,n,r)}function pv(e){return e instanceof Lr||(e=Tr(e)),e?(e=e.rgb(),new st(e.r,e.g,e.b,e.opacity)):new st}function Vi(e,t,n,r){return arguments.length===1?pv(e):new st(e,t,n,r??1)}function st(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ks(st,Vi,jf(Lr,{brighter:function(e){return e=e==null?Bi:Math.pow(Bi,e),new st(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?xr:Math.pow(xr,e),new st(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:nl,formatHex:nl,formatRgb:rl,toString:rl}));function nl(){return"#"+ja(this.r)+ja(this.g)+ja(this.b)}function rl(){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 ja(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function il(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new It(e,t,n,r)}function qf(e){if(e instanceof It)return new It(e.h,e.s,e.l,e.opacity);if(e instanceof Lr||(e=Tr(e)),!e)return new It;if(e instanceof It)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new It(o,s,u,e.opacity)}function mv(e,t,n,r){return arguments.length===1?qf(e):new It(e,t,n,r??1)}function It(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ks(It,mv,jf(Lr,{brighter:function(e){return e=e==null?Bi:Math.pow(Bi,e),new It(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?xr:Math.pow(xr,e),new It(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new st(qa(e>=240?e-240:e+120,i,r),qa(e,i,r),qa(e<120?e+240:e-120,i,r),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 qa(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function gv(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ji(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fn(e){return e=ji(Math.abs(e)),e?e[1]:NaN}function vv(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function yv(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var wv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qi(e){if(!(t=wv.exec(e)))throw new Error("invalid format: "+e);var t;return new Fs({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]})}qi.prototype=Fs.prototype;function Fs(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+""}Fs.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 bv(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Yf;function _v(e,t){var n=ji(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Yf=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ji(e,Math.max(0,t+a-1))[0]}function al(e,t){var n=ji(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const ol={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:gv,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>al(e*100,t),r:al,s:_v,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sl(e){return e}var ul=Array.prototype.map,ll=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xv(e){var t=e.grouping===void 0||e.thousands===void 0?sl:vv(ul.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?sl:yv(ul.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(c){c=qi(c);var d=c.fill,h=c.align,p=c.sign,m=c.symbol,C=c.zero,y=c.width,v=c.comma,w=c.precision,D=c.trim,g=c.type;g==="n"?(v=!0,g="g"):ol[g]||(w===void 0&&(w=12),D=!0,g="g"),(C||d==="0"&&h==="=")&&(C=!0,d="0",h="=");var _=m==="$"?n:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?r:/[%p]/.test(g)?o:"",F=ol[g],P=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function k(b){var M=_,x=S,I,N,A;if(g==="c")x=F(b)+x,b="";else{b=+b;var H=b<0||1/b<0;if(b=isNaN(b)?u:F(Math.abs(b),w),D&&(b=bv(b)),H&&+b==0&&p!=="+"&&(H=!1),M=(H?p==="("?p:s:p==="-"||p==="("?"":p)+M,x=(g==="s"?ll[8+Yf/3]:"")+x+(H&&p==="("?")":""),P){for(I=-1,N=b.length;++I<N;)if(A=b.charCodeAt(I),48>A||A>57){x=(A===46?i+b.slice(I+1):b.slice(I))+x,b=b.slice(0,I);break}}}v&&!C&&(b=t(b,1/0));var U=M.length+b.length+x.length,K=U<y?new Array(y-U+1).join(d):"";switch(v&&C&&(b=t(K+b,K.length?y-x.length:1/0),K=""),h){case"<":b=M+b+x+K;break;case"=":b=M+K+b+x;break;case"^":b=K.slice(0,U=K.length>>1)+M+b+x+K.slice(U);break;default:b=K+M+b+x;break}return a(b)}return k.toString=function(){return c+""},k}function f(c,d){var h=l((c=qi(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Fn(d)/3)))*3,m=Math.pow(10,-p),C=ll[8+p/3];return function(y){return h(m*y)+C}}return{format:l,formatPrefix:f}}var ri,dn,Qf;Cv({thousands:",",grouping:[3],currency:["$",""]});function Cv(e){return ri=xv(e),dn=ri.format,Qf=ri.formatPrefix,ri}function Tv(e){return Math.max(0,-Fn(Math.abs(e)))}function Sv(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fn(t)/3)))*3-Fn(Math.abs(e)))}function Dv(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fn(t)-Fn(e))+1}const Ns=e=>()=>e;function Ev(e,t){return function(n){return e+n*t}}function Mv(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Av(e){return(e=+e)==1?Kf:function(t,n){return n-t?Mv(t,n,e):Ns(isNaN(t)?n:t)}}function Kf(e,t){var n=t-e;return n?Ev(e,n):Ns(isNaN(e)?t:e)}const cl=function e(t){var n=Av(t);function r(i,a){var o=n((i=Vi(i)).r,(a=Vi(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),l=Kf(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return r.gamma=e,r}(1);function Iv(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Ov(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Rv(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Ps(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function kv(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Yi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Fv(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ps(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var qo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ya=new RegExp(qo.source,"g");function Nv(e){return function(){return e}}function Pv(e){return function(t){return e(t)+""}}function Lv(e,t){var n=qo.lastIndex=Ya.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=qo.exec(e))&&(i=Ya.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Yi(r,i)})),n=Ya.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Pv(u[0].x):Nv(t):(t=u.length,function(l){for(var f=0,c;f<t;++f)s[(c=u[f]).i]=c.x(l);return s.join("")})}function Ps(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ns(t):(n==="number"?Yi:n==="string"?(r=Tr(t))?(t=r,cl):Lv:t instanceof Tr?cl:t instanceof Date?kv:Ov(t)?Iv:Array.isArray(t)?Rv:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Fv:Yi)(e,t)}function $v(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function zv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Hv(e){return function(){return e}}function Uv(e){return+e}var fl=[0,1];function Dn(e){return e}function Yo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Hv(isNaN(t)?NaN:.5)}function Wv(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Bv(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Yo(i,r),a=n(o,a)):(r=Yo(r,i),a=n(a,o)),function(s){return a(r(s))}}function Vv(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Yo(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=gf(e,s,1,r)-1;return a[u](i[u](s))}}function jv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qv(){var e=fl,t=fl,n=Ps,r,i,a,o=Dn,s,u,l;function f(){var d=Math.min(e.length,t.length);return o!==Dn&&(o=Wv(e[0],e[d-1])),s=d>2?Vv:Bv,u=l=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(r),t,n)))(r(o(d)))}return c.invert=function(d){return o(i((l||(l=s(t,e.map(r),Yi)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Uv),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=$v,f()},c.clamp=function(d){return arguments.length?(o=d?!0:Dn,f()):o!==Dn},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,h){return r=d,i=h,f()}}function Yv(){return qv()(Dn,Dn)}function Qv(e,t,n,r){var i=jp(e,t,n),a;switch(r=qi(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Sv(i,o))&&(r.precision=a),Qf(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Dv(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Tv(i))&&(r.precision=a-(r.type==="%")*2);break}}return dn(r)}function Kv(e){var t=e.domain;return e.ticks=function(n){var r=t();return vf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Qv(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,l,f=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);f-- >0;){if(l=sa(o,s,n),l===u)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Qi(){var e=Yv();return e.copy=function(){return jv(e,Qi())},zv.apply(e,arguments),Kv(e)}var Qa=new Date,Ka=new Date;function Kt(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var u=[],l;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;do u.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return u},i.filter=function(a){return Kt(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return Qa.setTime(+a),Ka.setTime(+o),e(Qa),e(Ka),Math.floor(n(Qa,Ka))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}const Gv=1e3,Ls=Gv*60,Xv=Ls*60,$s=Xv*24,Gf=$s*7;var Xf=Kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ls)/$s,e=>e.getDate()-1);const Zf=Xf;Xf.range;function vn(e){return Kt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ls)/Gf})}var Jf=vn(0),Ki=vn(1),Zv=vn(2),Jv=vn(3),Nn=vn(4),ey=vn(5),ty=vn(6);Jf.range;Ki.range;Zv.range;Jv.range;Nn.range;ey.range;ty.range;var zs=Kt(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()});zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Sr=zs;zs.range;var ed=Kt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/$s},function(e){return e.getUTCDate()-1});const td=ed;ed.range;function yn(e){return Kt(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/Gf})}var nd=yn(0),Gi=yn(1),ny=yn(2),ry=yn(3),Pn=yn(4),iy=yn(5),ay=yn(6);nd.range;Gi.range;ny.range;ry.range;Pn.range;iy.range;ay.range;var Hs=Kt(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()});Hs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const Dr=Hs;Hs.range;function Ga(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 Xa(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 Xn(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function oy(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,l=Zn(i),f=Jn(i),c=Zn(a),d=Jn(a),h=Zn(o),p=Jn(o),m=Zn(s),C=Jn(s),y=Zn(u),v=Jn(u),w={a:H,A:U,b:K,B:X,c:null,d:vl,e:vl,f:Ay,g:zy,G:Uy,H:Dy,I:Ey,j:My,L:rd,m:Iy,M:Oy,p:ne,q:j,Q:bl,s:_l,S:Ry,u:ky,U:Fy,V:Ny,w:Py,W:Ly,x:null,X:null,y:$y,Y:Hy,Z:Wy,"%":wl},D={a:oe,A:Q,b:se,B:ee,c:null,d:yl,e:yl,f:qy,g:n1,G:i1,H:By,I:Vy,j:jy,L:ad,m:Yy,M:Qy,p:fe,q:re,Q:bl,s:_l,S:Ky,u:Gy,U:Xy,V:Zy,w:Jy,W:e1,x:null,X:null,y:t1,Y:r1,Z:a1,"%":wl},g={a:k,A:b,b:M,B:x,c:I,d:ml,e:ml,f:xy,g:pl,G:hl,H:gl,I:gl,j:yy,L:_y,m:vy,M:wy,p:P,q:gy,Q:Ty,s:Sy,S:by,u:fy,U:dy,V:hy,w:cy,W:py,x:N,X:A,y:pl,Y:hl,Z:my,"%":Cy};w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),D.x=_(n,D),D.X=_(r,D),D.c=_(t,D);function _(O,Y){return function(G){var R=[],ae=-1,q=0,Ce=O.length,Me,Ne,Ht;for(G instanceof Date||(G=new Date(+G));++ae<Ce;)O.charCodeAt(ae)===37&&(R.push(O.slice(q,ae)),(Ne=dl[Me=O.charAt(++ae)])!=null?Me=O.charAt(++ae):Ne=Me==="e"?" ":"0",(Ht=Y[Me])&&(Me=Ht(G,Ne)),R.push(Me),q=ae+1);return R.push(O.slice(q,ae)),R.join("")}}function S(O,Y){return function(G){var R=Xn(1900,void 0,1),ae=F(R,O,G+="",0),q,Ce;if(ae!=G.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(Y&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(q=Xa(Xn(R.y,0,1)),Ce=q.getUTCDay(),q=Ce>4||Ce===0?Gi.ceil(q):Gi(q),q=td.offset(q,(R.V-1)*7),R.y=q.getUTCFullYear(),R.m=q.getUTCMonth(),R.d=q.getUTCDate()+(R.w+6)%7):(q=Ga(Xn(R.y,0,1)),Ce=q.getDay(),q=Ce>4||Ce===0?Ki.ceil(q):Ki(q),q=Zf.offset(q,(R.V-1)*7),R.y=q.getFullYear(),R.m=q.getMonth(),R.d=q.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),Ce="Z"in R?Xa(Xn(R.y,0,1)).getUTCDay():Ga(Xn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(Ce+5)%7:R.w+R.U*7-(Ce+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Xa(R)):Ga(R)}}function F(O,Y,G,R){for(var ae=0,q=Y.length,Ce=G.length,Me,Ne;ae<q;){if(R>=Ce)return-1;if(Me=Y.charCodeAt(ae++),Me===37){if(Me=Y.charAt(ae++),Ne=g[Me in dl?Y.charAt(ae++):Me],!Ne||(R=Ne(O,G,R))<0)return-1}else if(Me!=G.charCodeAt(R++))return-1}return R}function P(O,Y,G){var R=l.exec(Y.slice(G));return R?(O.p=f.get(R[0].toLowerCase()),G+R[0].length):-1}function k(O,Y,G){var R=h.exec(Y.slice(G));return R?(O.w=p.get(R[0].toLowerCase()),G+R[0].length):-1}function b(O,Y,G){var R=c.exec(Y.slice(G));return R?(O.w=d.get(R[0].toLowerCase()),G+R[0].length):-1}function M(O,Y,G){var R=y.exec(Y.slice(G));return R?(O.m=v.get(R[0].toLowerCase()),G+R[0].length):-1}function x(O,Y,G){var R=m.exec(Y.slice(G));return R?(O.m=C.get(R[0].toLowerCase()),G+R[0].length):-1}function I(O,Y,G){return F(O,t,Y,G)}function N(O,Y,G){return F(O,n,Y,G)}function A(O,Y,G){return F(O,r,Y,G)}function H(O){return o[O.getDay()]}function U(O){return a[O.getDay()]}function K(O){return u[O.getMonth()]}function X(O){return s[O.getMonth()]}function ne(O){return i[+(O.getHours()>=12)]}function j(O){return 1+~~(O.getMonth()/3)}function oe(O){return o[O.getUTCDay()]}function Q(O){return a[O.getUTCDay()]}function se(O){return u[O.getUTCMonth()]}function ee(O){return s[O.getUTCMonth()]}function fe(O){return i[+(O.getUTCHours()>=12)]}function re(O){return 1+~~(O.getUTCMonth()/3)}return{format:function(O){var Y=_(O+="",w);return Y.toString=function(){return O},Y},parse:function(O){var Y=S(O+="",!1);return Y.toString=function(){return O},Y},utcFormat:function(O){var Y=_(O+="",D);return Y.toString=function(){return O},Y},utcParse:function(O){var Y=S(O+="",!0);return Y.toString=function(){return O},Y}}}var dl={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,sy=/^%/,uy=/[\\^$*+?|[\]().{}]/g;function ge(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function ly(e){return e.replace(uy,"\\$&")}function Zn(e){return new RegExp("^(?:"+e.map(ly).join("|")+")","i")}function Jn(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function cy(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fy(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function hy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function py(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hl(e,t,n){var r=Ue.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function my(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function gy(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ml(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function yy(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gl(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function wy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function by(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _y(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xy(e,t,n){var r=Ue.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Cy(e,t,n){var r=sy.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ty(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Sy(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vl(e,t){return ge(e.getDate(),t,2)}function Dy(e,t){return ge(e.getHours(),t,2)}function Ey(e,t){return ge(e.getHours()%12||12,t,2)}function My(e,t){return ge(1+Zf.count(Sr(e),e),t,3)}function rd(e,t){return ge(e.getMilliseconds(),t,3)}function Ay(e,t){return rd(e,t)+"000"}function Iy(e,t){return ge(e.getMonth()+1,t,2)}function Oy(e,t){return ge(e.getMinutes(),t,2)}function Ry(e,t){return ge(e.getSeconds(),t,2)}function ky(e){var t=e.getDay();return t===0?7:t}function Fy(e,t){return ge(Jf.count(Sr(e)-1,e),t,2)}function id(e){var t=e.getDay();return t>=4||t===0?Nn(e):Nn.ceil(e)}function Ny(e,t){return e=id(e),ge(Nn.count(Sr(e),e)+(Sr(e).getDay()===4),t,2)}function Py(e){return e.getDay()}function Ly(e,t){return ge(Ki.count(Sr(e)-1,e),t,2)}function $y(e,t){return ge(e.getFullYear()%100,t,2)}function zy(e,t){return e=id(e),ge(e.getFullYear()%100,t,2)}function Hy(e,t){return ge(e.getFullYear()%1e4,t,4)}function Uy(e,t){var n=e.getDay();return e=n>=4||n===0?Nn(e):Nn.ceil(e),ge(e.getFullYear()%1e4,t,4)}function Wy(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function yl(e,t){return ge(e.getUTCDate(),t,2)}function By(e,t){return ge(e.getUTCHours(),t,2)}function Vy(e,t){return ge(e.getUTCHours()%12||12,t,2)}function jy(e,t){return ge(1+td.count(Dr(e),e),t,3)}function ad(e,t){return ge(e.getUTCMilliseconds(),t,3)}function qy(e,t){return ad(e,t)+"000"}function Yy(e,t){return ge(e.getUTCMonth()+1,t,2)}function Qy(e,t){return ge(e.getUTCMinutes(),t,2)}function Ky(e,t){return ge(e.getUTCSeconds(),t,2)}function Gy(e){var t=e.getUTCDay();return t===0?7:t}function Xy(e,t){return ge(nd.count(Dr(e)-1,e),t,2)}function od(e){var t=e.getUTCDay();return t>=4||t===0?Pn(e):Pn.ceil(e)}function Zy(e,t){return e=od(e),ge(Pn.count(Dr(e),e)+(Dr(e).getUTCDay()===4),t,2)}function Jy(e){return e.getUTCDay()}function e1(e,t){return ge(Gi.count(Dr(e)-1,e),t,2)}function t1(e,t){return ge(e.getUTCFullYear()%100,t,2)}function n1(e,t){return e=od(e),ge(e.getUTCFullYear()%100,t,2)}function r1(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function i1(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Pn(e):Pn.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function a1(){return"+0000"}function wl(){return"%"}function bl(e){return+e}function _l(e){return Math.floor(+e/1e3)}var Cn,jt;o1({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 o1(e){return Cn=oy(e),jt=Cn.format,Cn.parse,Cn.utcFormat,Cn.utcParse,Cn}function fr(e,t,n){this.k=e,this.x=t,this.y=n}fr.prototype={constructor:fr,scale:function(e){return e===1?this:new fr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};fr.prototype;function fa(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function s1(){this.__data__=[],this.size=0}function sd(e,t){return e===t||e!==e&&t!==t}function da(e,t){for(var n=e.length;n--;)if(sd(e[n][0],t))return n;return-1}var u1=Array.prototype,l1=u1.splice;function c1(e){var t=this.__data__,n=da(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():l1.call(t,n,1),--this.size,!0}function f1(e){var t=this.__data__,n=da(t,e);return n<0?void 0:t[n][1]}function d1(e){return da(this.__data__,e)>-1}function h1(e,t){var n=this.__data__,r=da(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gt.prototype.clear=s1;Gt.prototype.delete=c1;Gt.prototype.get=f1;Gt.prototype.has=d1;Gt.prototype.set=h1;function p1(){this.__data__=new Gt,this.size=0}function m1(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function g1(e){return this.__data__.get(e)}function v1(e){return this.__data__.has(e)}var y1=typeof global=="object"&&global&&global.Object===Object&&global;const ud=y1;var w1=typeof self=="object"&&self&&self.Object===Object&&self,b1=ud||w1||Function("return this")();const zt=b1;var _1=zt.Symbol;const Ln=_1;var ld=Object.prototype,x1=ld.hasOwnProperty,C1=ld.toString,er=Ln?Ln.toStringTag:void 0;function T1(e){var t=x1.call(e,er),n=e[er];try{e[er]=void 0;var r=!0}catch{}var i=C1.call(e);return r&&(t?e[er]=n:delete e[er]),i}var S1=Object.prototype,D1=S1.toString;function E1(e){return D1.call(e)}var M1="[object Null]",A1="[object Undefined]",xl=Ln?Ln.toStringTag:void 0;function Bn(e){return e==null?e===void 0?A1:M1:xl&&xl in Object(e)?T1(e):E1(e)}function Er(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var I1="[object AsyncFunction]",O1="[object Function]",R1="[object GeneratorFunction]",k1="[object Proxy]";function cd(e){if(!Er(e))return!1;var t=Bn(e);return t==O1||t==R1||t==I1||t==k1}var F1=zt["__core-js_shared__"];const Za=F1;var Cl=function(){var e=/[^.]+$/.exec(Za&&Za.keys&&Za.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function N1(e){return!!Cl&&Cl in e}var P1=Function.prototype,L1=P1.toString;function wn(e){if(e!=null){try{return L1.call(e)}catch{}try{return e+""}catch{}}return""}var $1=/[\\^$.*+?()[\]{}|]/g,z1=/^\[object .+?Constructor\]$/,H1=Function.prototype,U1=Object.prototype,W1=H1.toString,B1=U1.hasOwnProperty,V1=RegExp("^"+W1.call(B1).replace($1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function j1(e){if(!Er(e)||N1(e))return!1;var t=cd(e)?V1:z1;return t.test(wn(e))}function q1(e,t){return e==null?void 0:e[t]}function Vn(e,t){var n=q1(e,t);return j1(n)?n:void 0}var Y1=Vn(zt,"Map");const Mr=Y1;var Q1=Vn(Object,"create");const Ar=Q1;function K1(){this.__data__=Ar?Ar(null):{},this.size=0}function G1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var X1="__lodash_hash_undefined__",Z1=Object.prototype,J1=Z1.hasOwnProperty;function ew(e){var t=this.__data__;if(Ar){var n=t[e];return n===X1?void 0:n}return J1.call(t,e)?t[e]:void 0}var tw=Object.prototype,nw=tw.hasOwnProperty;function rw(e){var t=this.__data__;return Ar?t[e]!==void 0:nw.call(t,e)}var iw="__lodash_hash_undefined__";function aw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ar&&t===void 0?iw:t,this}function mn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mn.prototype.clear=K1;mn.prototype.delete=G1;mn.prototype.get=ew;mn.prototype.has=rw;mn.prototype.set=aw;function ow(){this.size=0,this.__data__={hash:new mn,map:new(Mr||Gt),string:new mn}}function sw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ha(e,t){var n=e.__data__;return sw(t)?n[typeof t=="string"?"string":"hash"]:n.map}function uw(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t}function lw(e){return ha(this,e).get(e)}function cw(e){return ha(this,e).has(e)}function fw(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function bn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bn.prototype.clear=ow;bn.prototype.delete=uw;bn.prototype.get=lw;bn.prototype.has=cw;bn.prototype.set=fw;var dw=200;function hw(e,t){var n=this.__data__;if(n instanceof Gt){var r=n.__data__;if(!Mr||r.length<dw-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bn(r)}return n.set(e,t),this.size=n.size,this}function rn(e){var t=this.__data__=new Gt(e);this.size=t.size}rn.prototype.clear=p1;rn.prototype.delete=m1;rn.prototype.get=g1;rn.prototype.has=v1;rn.prototype.set=hw;var pw="__lodash_hash_undefined__";function mw(e){return this.__data__.set(e,pw),this}function gw(e){return this.__data__.has(e)}function Xi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bn;++t<n;)this.add(e[t])}Xi.prototype.add=Xi.prototype.push=mw;Xi.prototype.has=gw;function vw(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function yw(e,t){return e.has(t)}var ww=1,bw=2;function fd(e,t,n,r,i,a){var o=n&ww,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var c=-1,d=!0,h=n&bw?new Xi:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var p=e[c],m=t[c];if(r)var C=o?r(m,p,c,t,e,a):r(p,m,c,e,t,a);if(C!==void 0){if(C)continue;d=!1;break}if(h){if(!vw(t,function(y,v){if(!yw(h,v)&&(p===y||i(p,y,n,r,a)))return h.push(v)})){d=!1;break}}else if(!(p===m||i(p,m,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var _w=zt.Uint8Array;const Tl=_w;function xw(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Cw(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Tw=1,Sw=2,Dw="[object Boolean]",Ew="[object Date]",Mw="[object Error]",Aw="[object Map]",Iw="[object Number]",Ow="[object RegExp]",Rw="[object Set]",kw="[object String]",Fw="[object Symbol]",Nw="[object ArrayBuffer]",Pw="[object DataView]",Sl=Ln?Ln.prototype:void 0,Ja=Sl?Sl.valueOf:void 0;function Lw(e,t,n,r,i,a,o){switch(n){case Pw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nw:return!(e.byteLength!=t.byteLength||!a(new Tl(e),new Tl(t)));case Dw:case Ew:case Iw:return sd(+e,+t);case Mw:return e.name==t.name&&e.message==t.message;case Ow:case kw:return e==t+"";case Aw:var s=xw;case Rw:var u=r&Tw;if(s||(s=Cw),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;r|=Sw,o.set(e,t);var f=fd(s(e),s(t),r,i,a,o);return o.delete(e),f;case Fw:if(Ja)return Ja.call(e)==Ja.call(t)}return!1}function $w(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zw=Array.isArray;const Zi=zw;function Hw(e,t,n){var r=t(e);return Zi(e)?r:$w(r,n(e))}function Uw(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Ww(){return[]}var Bw=Object.prototype,Vw=Bw.propertyIsEnumerable,Dl=Object.getOwnPropertySymbols,jw=Dl?function(e){return e==null?[]:(e=Object(e),Uw(Dl(e),function(t){return Vw.call(e,t)}))}:Ww;const qw=jw;function Yw(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $n(e){return e!=null&&typeof e=="object"}var Qw="[object Arguments]";function El(e){return $n(e)&&Bn(e)==Qw}var dd=Object.prototype,Kw=dd.hasOwnProperty,Gw=dd.propertyIsEnumerable,Xw=El(function(){return arguments}())?El:function(e){return $n(e)&&Kw.call(e,"callee")&&!Gw.call(e,"callee")};const Zw=Xw;function Jw(){return!1}var hd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ml=hd&&typeof module=="object"&&module&&!module.nodeType&&module,eb=Ml&&Ml.exports===hd,Al=eb?zt.Buffer:void 0,tb=Al?Al.isBuffer:void 0,nb=tb||Jw;const Qo=nb;var rb=9007199254740991,ib=/^(?:0|[1-9]\d*)$/;function ab(e,t){var n=typeof e;return t=t??rb,!!t&&(n=="number"||n!="symbol"&&ib.test(e))&&e>-1&&e%1==0&&e<t}var ob=9007199254740991;function pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ob}var sb="[object Arguments]",ub="[object Array]",lb="[object Boolean]",cb="[object Date]",fb="[object Error]",db="[object Function]",hb="[object Map]",pb="[object Number]",mb="[object Object]",gb="[object RegExp]",vb="[object Set]",yb="[object String]",wb="[object WeakMap]",bb="[object ArrayBuffer]",_b="[object DataView]",xb="[object Float32Array]",Cb="[object Float64Array]",Tb="[object Int8Array]",Sb="[object Int16Array]",Db="[object Int32Array]",Eb="[object Uint8Array]",Mb="[object Uint8ClampedArray]",Ab="[object Uint16Array]",Ib="[object Uint32Array]",Se={};Se[xb]=Se[Cb]=Se[Tb]=Se[Sb]=Se[Db]=Se[Eb]=Se[Mb]=Se[Ab]=Se[Ib]=!0;Se[sb]=Se[ub]=Se[bb]=Se[lb]=Se[_b]=Se[cb]=Se[fb]=Se[db]=Se[hb]=Se[pb]=Se[mb]=Se[gb]=Se[vb]=Se[yb]=Se[wb]=!1;function Ob(e){return $n(e)&&pd(e.length)&&!!Se[Bn(e)]}function Rb(e){return function(t){return e(t)}}var md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hr=md&&typeof module=="object"&&module&&!module.nodeType&&module,kb=hr&&hr.exports===md,eo=kb&&ud.process,Fb=function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||eo&&eo.binding&&eo.binding("util")}catch{}}();const Il=Fb;var Ol=Il&&Il.isTypedArray,Nb=Ol?Rb(Ol):Ob;const gd=Nb;var Pb=Object.prototype,Lb=Pb.hasOwnProperty;function $b(e,t){var n=Zi(e),r=!n&&Zw(e),i=!n&&!r&&Qo(e),a=!n&&!r&&!i&&gd(e),o=n||r||i||a,s=o?Yw(e.length,String):[],u=s.length;for(var l in e)(t||Lb.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ab(l,u)))&&s.push(l);return s}var zb=Object.prototype;function Hb(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zb;return e===n}function Ub(e,t){return function(n){return e(t(n))}}var Wb=Ub(Object.keys,Object);const Bb=Wb;var Vb=Object.prototype,jb=Vb.hasOwnProperty;function qb(e){if(!Hb(e))return Bb(e);var t=[];for(var n in Object(e))jb.call(e,n)&&n!="constructor"&&t.push(n);return t}function Yb(e){return e!=null&&pd(e.length)&&!cd(e)}function Qb(e){return Yb(e)?$b(e):qb(e)}function Rl(e){return Hw(e,Qb,qw)}var Kb=1,Gb=Object.prototype,Xb=Gb.hasOwnProperty;function Zb(e,t,n,r,i,a){var o=n&Kb,s=Rl(e),u=s.length,l=Rl(t),f=l.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=s[c];if(!(o?d in t:Xb.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var C=o;++c<u;){d=s[c];var y=e[d],v=t[d];if(r)var w=o?r(v,y,d,t,e,a):r(y,v,d,e,t,a);if(!(w===void 0?y===v||i(y,v,n,r,a):w)){m=!1;break}C||(C=d=="constructor")}if(m&&!C){var D=e.constructor,g=t.constructor;D!=g&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof g=="function"&&g instanceof g)&&(m=!1)}return a.delete(e),a.delete(t),m}var Jb=Vn(zt,"DataView");const Ko=Jb;var e_=Vn(zt,"Promise");const Go=e_;var t_=Vn(zt,"Set");const Xo=t_;var n_=Vn(zt,"WeakMap");const Zo=n_;var kl="[object Map]",r_="[object Object]",Fl="[object Promise]",Nl="[object Set]",Pl="[object WeakMap]",Ll="[object DataView]",i_=wn(Ko),a_=wn(Mr),o_=wn(Go),s_=wn(Xo),u_=wn(Zo),cn=Bn;(Ko&&cn(new Ko(new ArrayBuffer(1)))!=Ll||Mr&&cn(new Mr)!=kl||Go&&cn(Go.resolve())!=Fl||Xo&&cn(new Xo)!=Nl||Zo&&cn(new Zo)!=Pl)&&(cn=function(e){var t=Bn(e),n=t==r_?e.constructor:void 0,r=n?wn(n):"";if(r)switch(r){case i_:return Ll;case a_:return kl;case o_:return Fl;case s_:return Nl;case u_:return Pl}return t});const $l=cn;var l_=1,zl="[object Arguments]",Hl="[object Array]",ii="[object Object]",c_=Object.prototype,Ul=c_.hasOwnProperty;function f_(e,t,n,r,i,a){var o=Zi(e),s=Zi(t),u=o?Hl:$l(e),l=s?Hl:$l(t);u=u==zl?ii:u,l=l==zl?ii:l;var f=u==ii,c=l==ii,d=u==l;if(d&&Qo(e)){if(!Qo(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new rn),o||gd(e)?fd(e,t,n,r,i,a):Lw(e,t,u,n,r,i,a);if(!(n&l_)){var h=f&&Ul.call(e,"__wrapped__"),p=c&&Ul.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,C=p?t.value():t;return a||(a=new rn),i(m,C,n,r,a)}}return d?(a||(a=new rn),Zb(e,t,n,r,i,a)):!1}function vd(e,t,n,r,i){return e===t?!0:e==null||t==null||!$n(e)&&!$n(t)?e!==e&&t!==t:f_(e,t,n,r,vd,i)}function d_(e,t){return vd(e,t)}function Qt(e){return Qt=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},Qt(e)}function Le(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function h_(e){return Le(1,arguments),e instanceof Date||Qt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rt(e){Le(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Qt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pr(e){if(Le(1,arguments),!h_(e)&&typeof e!="number")return!1;var t=rt(e);return!isNaN(Number(t))}function Wl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p_(e,t){if(e){if(typeof e=="string")return Wl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wl(e,t)}}function Bl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p_(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}var m_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},g_=function(t,n,r){var i,a=m_[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const v_=g_;function to(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var y_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},b_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},__={date:to({formats:y_,defaultWidth:"full"}),time:to({formats:w_,defaultWidth:"full"}),dateTime:to({formats:b_,defaultWidth:"full"})};const x_=__;var C_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},T_=function(t,n,r,i){return C_[t]};const S_=T_;function tr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var D_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},E_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},M_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},A_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},I_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},O_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},R_=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},k_={ordinalNumber:R_,era:tr({values:D_,defaultWidth:"wide"}),quarter:tr({values:E_,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:tr({values:M_,defaultWidth:"wide"}),day:tr({values:A_,defaultWidth:"wide"}),dayPeriod:tr({values:I_,defaultWidth:"wide",formattingValues:O_,defaultFormattingWidth:"wide"})};const F_=k_;function nr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?P_(s,function(c){return c.test(o)}):N_(s,function(c){return c.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=n.valueCallback?n.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}function N_(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function P_(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function L_(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var $_=/^(\d+)(th|st|nd|rd)?/i,z_=/\d+/i,H_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},U_={any:[/^b/i,/^(a|c)/i]},W_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B_={any:[/1/i,/2/i,/3/i,/4/i]},V_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},j_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},q_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Y_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Q_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},K_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},G_={ordinalNumber:L_({matchPattern:$_,parsePattern:z_,valueCallback:function(t){return parseInt(t,10)}}),era:nr({matchPatterns:H_,defaultMatchWidth:"wide",parsePatterns:U_,defaultParseWidth:"any"}),quarter:nr({matchPatterns:W_,defaultMatchWidth:"wide",parsePatterns:B_,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:nr({matchPatterns:V_,defaultMatchWidth:"wide",parsePatterns:j_,defaultParseWidth:"any"}),day:nr({matchPatterns:q_,defaultMatchWidth:"wide",parsePatterns:Y_,defaultParseWidth:"any"}),dayPeriod:nr({matchPatterns:Q_,defaultMatchWidth:"any",parsePatterns:K_,defaultParseWidth:"any"})};const X_=G_;var Z_={code:"en-US",formatDistance:v_,formatLong:x_,formatRelative:S_,localize:F_,match:X_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const J_=Z_;function ft(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ex(e,t){Le(2,arguments);var n=rt(e).getTime(),r=ft(t);return new Date(n+r)}function tx(e,t){Le(2,arguments);var n=ft(t);return ex(e,-n)}function nx(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var Vl=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},yd=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},rx=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return Vl(t,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",Vl(i,n)).replace("{{time}}",yd(a,n))},ix={p:yd,P:rx};const jl=ix;function ax(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var ox=["D","DD"],sx=["YY","YYYY"];function ux(e){return ox.indexOf(e)!==-1}function lx(e){return sx.indexOf(e)!==-1}function ql(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function he(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wh(e,t)}function cx(e,t){if(t&&(Qt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function pe(e){var t=Bh();return function(){var r=yu(e),i;if(t){var a=yu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return cx(this,i)}}function le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fx(e,t){if(Qt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wd(e){var t=fx(e,"string");return Qt(t)==="symbol"?t:String(t)}function Yl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wd(r.key),r)}}function ce(e,t,n){return t&&Yl(e.prototype,t),n&&Yl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(e,t,n){return t=wd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dx=10,bd=function(){function e(){le(this,e),B(this,"priority",void 0),B(this,"subPriority",0)}return ce(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),hx=function(e){he(n,e);var t=pe(n);function n(r,i,a,o,s){var u;return le(this,n),u=t.call(this),u.value=r,u.validateValue=i,u.setValue=a,u.priority=o,s&&(u.subPriority=s),u}return ce(n,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,o){return this.setValue(i,a,this.value,o)}}]),n}(bd),px=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",dx),B(V(r),"subPriority",-1),r}return ce(n,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}}]),n}(bd),be=function(){function e(){le(this,e),B(this,"incompatibleTokens",void 0),B(this,"priority",void 0),B(this,"subPriority",void 0)}return ce(e,[{key:"run",value:function(n,r,i,a){var o=this.parse(n,r,i,a);return o?{setter:new hx(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}(),mx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",140),B(V(r),"incompatibleTokens",["R","u","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})||o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,o){return a.era=o,i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Us=6e4,Ws=36e5,gx=1e3,Oe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ot={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Re(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ee(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Rt(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Ws+a*Us+o*gx),rest:t.slice(n[0].length)}}function _d(e){return Ee(Oe.anyDigitsSigned,e)}function Ie(e,t){switch(e){case 1:return Ee(Oe.singleDigit,t);case 2:return Ee(Oe.twoDigits,t);case 3:return Ee(Oe.threeDigits,t);case 4:return Ee(Oe.fourDigits,t);default:return Ee(new RegExp("^\\d{1,"+e+"}"),t)}}function Ji(e,t){switch(e){case 1:return Ee(Oe.singleDigitSigned,t);case 2:return Ee(Oe.twoDigitsSigned,t);case 3:return Ee(Oe.threeDigitsSigned,t);case 4:return Ee(Oe.fourDigitsSigned,t);default:return Ee(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Bs(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function xd(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}function Cd(e){return e%400===0||e%4===0&&e%100!==0}var vx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",130),B(V(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){var s=function(l){return{year:l,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Re(Ie(4,i),s);case"yo":return Re(o.ordinalNumber(i,{unit:"year"}),s);default:return Re(Ie(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var u=xd(o.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),yx={};function $r(){return yx}function gn(e,t){var n,r,i,a,o,s,u,l;Le(1,arguments);var f=$r(),c=ft((n=(r=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rt(e),h=d.getUTCDay(),p=(h<c?7:0)+h-c;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function Td(e,t){var n,r,i,a,o,s,u,l;Le(1,arguments);var f=rt(e),c=f.getUTCFullYear(),d=$r(),h=ft((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,h),p.setUTCHours(0,0,0,0);var m=gn(p,t),C=new Date(0);C.setUTCFullYear(c,0,h),C.setUTCHours(0,0,0,0);var y=gn(C,t);return f.getTime()>=m.getTime()?c+1:f.getTime()>=y.getTime()?c:c-1}var wx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",130),B(V(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){var s=function(l){return{year:l,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Re(Ie(4,i),s);case"Yo":return Re(o.ordinalNumber(i,{unit:"year"}),s);default:return Re(Ie(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o,s){var u=Td(i,s);if(o.isTwoDigitYear){var l=xd(o.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),gn(i,s)}var f=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(f,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),gn(i,s)}}]),n}(be);function zn(e){Le(1,arguments);var t=1,n=rt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}var bx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",130),B(V(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a){return Ji(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),zn(s)}}]),n}(be),_x=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",130),B(V(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a){return Ji(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,o){return i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),xx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",120),B(V(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"Q":case"QQ":return Ie(a.length,i);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})||o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Cx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",120),B(V(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"q":case"qq":return Ie(a.length,i);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})||o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Tx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),B(V(r),"priority",110),r}return ce(n,[{key:"parse",value:function(i,a,o){var s=function(l){return l-1};switch(a){case"M":return Re(Ee(Oe.month,i),s);case"MM":return Re(Ie(2,i),s);case"Mo":return Re(o.ordinalNumber(i,{unit:"month"}),s);case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})||o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Sx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",110),B(V(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){var s=function(l){return l-1};switch(a){case"L":return Re(Ee(Oe.month,i),s);case"LL":return Re(Ie(2,i),s);case"Lo":return Re(o.ordinalNumber(i,{unit:"month"}),s);case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})||o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(be);function Dx(e,t){var n,r,i,a,o,s,u,l;Le(1,arguments);var f=$r(),c=ft((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=Td(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=gn(h,t);return p}var Ex=6048e5;function Mx(e,t){Le(1,arguments);var n=rt(e),r=gn(n,t).getTime()-Dx(n,t).getTime();return Math.round(r/Ex)+1}function Ax(e,t,n){Le(2,arguments);var r=rt(e),i=ft(t),a=Mx(r,n)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var Ix=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",100),B(V(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"w":return Ee(Oe.week,i);case"wo":return o.ordinalNumber(i,{unit:"week"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o,s){return gn(Ax(i,o,s),s)}}]),n}(be);function Ox(e){Le(1,arguments);var t=rt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=zn(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=zn(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Rx(e){Le(1,arguments);var t=Ox(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=zn(n);return r}var kx=6048e5;function Fx(e){Le(1,arguments);var t=rt(e),n=zn(t).getTime()-Rx(t).getTime();return Math.round(n/kx)+1}function Nx(e,t){Le(2,arguments);var n=rt(e),r=ft(t),i=Fx(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var Px=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",100),B(V(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"I":return Ee(Oe.week,i);case"Io":return o.ordinalNumber(i,{unit:"week"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o){return zn(Nx(i,o))}}]),n}(be),Lx=[31,28,31,30,31,30,31,31,30,31,30,31],$x=[31,29,31,30,31,30,31,31,30,31,30,31],zx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",90),B(V(r),"subPriority",1),B(V(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"d":return Ee(Oe.date,i);case"do":return o.ordinalNumber(i,{unit:"date"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=Cd(o),u=i.getUTCMonth();return s?a>=1&&a<=$x[u]:a>=1&&a<=Lx[u]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),n}(be),Hx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",90),B(V(r),"subpriority",1),B(V(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"D":case"DD":return Ee(Oe.dayOfYear,i);case"Do":return o.ordinalNumber(i,{unit:"date"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=Cd(o);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),n}(be);function Vs(e,t,n){var r,i,a,o,s,u,l,f;Le(2,arguments);var c=$r(),d=ft((r=(i=(a=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(s=n.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&i!==void 0?i:(l=c.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=rt(e),p=ft(t),m=h.getUTCDay(),C=p%7,y=(C+7)%7,v=(y<d?7:0)+p-m;return h.setUTCDate(h.getUTCDate()+v),h}var Ux=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",90),B(V(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Vs(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(be),Wx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",90),B(V(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o,s){var u=function(f){var c=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+c};switch(a){case"e":case"ee":return Re(Ie(a.length,i),u);case"eo":return Re(o.ordinalNumber(i,{unit:"day"}),u);case"eee":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Vs(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(be),Bx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",90),B(V(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o,s){var u=function(f){var c=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+c};switch(a){case"c":case"cc":return Re(Ie(a.length,i),u);case"co":return Re(o.ordinalNumber(i,{unit:"day"}),u);case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})||o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Vs(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(be);function Vx(e,t){Le(2,arguments);var n=ft(t);n%7===0&&(n=n-7);var r=1,i=rt(e),a=i.getUTCDay(),o=n%7,s=(o+7)%7,u=(s<r?7:0)+n-a;return i.setUTCDate(i.getUTCDate()+u),i}var jx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",90),B(V(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){var s=function(l){return l===0?7:l};switch(a){case"i":case"ii":return Ie(a.length,i);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return Re(o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Re(o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Re(o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Re(o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,o){return i=Vx(i,o),i.setUTCHours(0,0,0,0),i}}]),n}(be),qx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",80),B(V(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"a":case"aa":case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Bs(o),0,0,0),i}}]),n}(be),Yx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",80),B(V(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"b":case"bb":case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Bs(o),0,0,0),i}}]),n}(be),Qx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",80),B(V(r),"incompatibleTokens",["a","b","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Bs(o),0,0,0),i}}]),n}(be),Kx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",70),B(V(r),"incompatibleTokens",["H","K","k","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"h":return Ee(Oe.hour12h,i);case"ho":return o.ordinalNumber(i,{unit:"hour"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(be),Gx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",70),B(V(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"H":return Ee(Oe.hour23h,i);case"Ho":return o.ordinalNumber(i,{unit:"hour"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),n}(be),Xx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",70),B(V(r),"incompatibleTokens",["h","H","k","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"K":return Ee(Oe.hour11h,i);case"Ko":return o.ordinalNumber(i,{unit:"hour"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(be),Zx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",70),B(V(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"k":return Ee(Oe.hour24h,i);case"ko":return o.ordinalNumber(i,{unit:"hour"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),n}(be),Jx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",60),B(V(r),"incompatibleTokens",["t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"m":return Ee(Oe.minute,i);case"mo":return o.ordinalNumber(i,{unit:"minute"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),n}(be),eC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",50),B(V(r),"incompatibleTokens",["t","T"]),r}return ce(n,[{key:"parse",value:function(i,a,o){switch(a){case"s":return Ee(Oe.second,i);case"so":return o.ordinalNumber(i,{unit:"second"});default:return Ie(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),n}(be),tC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",30),B(V(r),"incompatibleTokens",["t","T"]),r}return ce(n,[{key:"parse",value:function(i,a){var o=function(u){return Math.floor(u*Math.pow(10,-a.length+3))};return Re(Ie(a.length,i),o)}},{key:"set",value:function(i,a,o){return i.setUTCMilliseconds(o),i}}]),n}(be),nC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",10),B(V(r),"incompatibleTokens",["t","T","x"]),r}return ce(n,[{key:"parse",value:function(i,a){switch(a){case"X":return Rt(Ot.basicOptionalMinutes,i);case"XX":return Rt(Ot.basic,i);case"XXXX":return Rt(Ot.basicOptionalSeconds,i);case"XXXXX":return Rt(Ot.extendedOptionalSeconds,i);case"XXX":default:return Rt(Ot.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),n}(be),rC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",10),B(V(r),"incompatibleTokens",["t","T","X"]),r}return ce(n,[{key:"parse",value:function(i,a){switch(a){case"x":return Rt(Ot.basicOptionalMinutes,i);case"xx":return Rt(Ot.basic,i);case"xxxx":return Rt(Ot.basicOptionalSeconds,i);case"xxxxx":return Rt(Ot.extendedOptionalSeconds,i);case"xxx":default:return Rt(Ot.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),n}(be),iC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",40),B(V(r),"incompatibleTokens","*"),r}return ce(n,[{key:"parse",value:function(i){return _d(i)}},{key:"set",value:function(i,a,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),n}(be),aC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),B(V(r),"priority",20),B(V(r),"incompatibleTokens","*"),r}return ce(n,[{key:"parse",value:function(i){return _d(i)}},{key:"set",value:function(i,a,o){return[new Date(o),{timestampIsSet:!0}]}}]),n}(be),oC={G:new mx,y:new vx,Y:new wx,R:new bx,u:new _x,Q:new xx,q:new Cx,M:new Tx,L:new Sx,w:new Ix,I:new Px,d:new zx,D:new Hx,E:new Ux,e:new Wx,c:new Bx,i:new jx,a:new qx,b:new Yx,B:new Qx,h:new Kx,H:new Gx,K:new Xx,k:new Zx,m:new Jx,s:new eC,S:new tC,X:new nC,x:new rC,t:new iC,T:new aC},sC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lC=/^'([^]*?)'?$/,cC=/''/g,fC=/\S/,dC=/[a-zA-Z]/;function Jo(e,t,n,r){var i,a,o,s,u,l,f,c,d,h,p,m,C,y,v,w,D,g;Le(3,arguments);var _=String(e),S=String(t),F=$r(),P=(i=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:F.locale)!==null&&i!==void 0?i:J_;if(!P.match)throw new RangeError("locale must contain match property");var k=ft((o=(s=(u=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(c=f.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&u!==void 0?u:F.firstWeekContainsDate)!==null&&s!==void 0?s:(d=F.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=ft((p=(m=(C=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&C!==void 0?C:F.weekStartsOn)!==null&&m!==void 0?m:(D=F.locale)===null||D===void 0||(g=D.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&p!==void 0?p:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(S==="")return _===""?rt(n):new Date(NaN);var M={firstWeekContainsDate:k,weekStartsOn:b,locale:P},x=[new px],I=S.match(uC).map(function(re){var O=re[0];if(O in jl){var Y=jl[O];return Y(re,P.formatLong)}return re}).join("").match(sC),N=[],A=Bl(I),H;try{var U=function(){var O=H.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&lx(O)&&ql(O,S,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ux(O)&&ql(O,S,e);var Y=O[0],G=oC[Y];if(G){var R=G.incompatibleTokens;if(Array.isArray(R)){var ae=N.find(function(Ce){return R.includes(Ce.token)||Ce.token===Y});if(ae)throw new RangeError("The format string mustn't contain `".concat(ae.fullToken,"` and `").concat(O,"` at the same time"))}else if(G.incompatibleTokens==="*"&&N.length>0)throw new RangeError("The format string mustn't contain `".concat(O,"` and any other token at the same time"));N.push({token:Y,fullToken:O});var q=G.run(_,O,P.match,M);if(!q)return{v:new Date(NaN)};x.push(q.setter),_=q.rest}else{if(Y.match(dC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Y+"`");if(O==="''"?O="'":Y==="'"&&(O=hC(O)),_.indexOf(O)===0)_=_.slice(O.length);else return{v:new Date(NaN)}}};for(A.s();!(H=A.n()).done;){var K=U();if(Qt(K)==="object")return K.v}}catch(re){A.e(re)}finally{A.f()}if(_.length>0&&fC.test(_))return new Date(NaN);var X=x.map(function(re){return re.priority}).sort(function(re,O){return O-re}).filter(function(re,O,Y){return Y.indexOf(re)===O}).map(function(re){return x.filter(function(O){return O.priority===re}).sort(function(O,Y){return Y.subPriority-O.subPriority})}).map(function(re){return re[0]}),ne=rt(n);if(isNaN(ne.getTime()))return new Date(NaN);var j=tx(ne,ax(ne)),oe={},Q=Bl(X),se;try{for(Q.s();!(se=Q.n()).done;){var ee=se.value;if(!ee.validate(j,M))return new Date(NaN);var fe=ee.set(j,oe,M);Array.isArray(fe)?(j=fe[0],nx(oe,fe[1])):j=fe}}catch(re){Q.e(re)}finally{Q.f()}return j}function hC(e){return e.match(lC)[1].replace(cC,"'")}function pC(e,t){var n;Le(1,arguments);var r=ft((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=yC(e),a;if(i.date){var o=wC(i.date,r);a=bC(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),u=0,l;if(i.time&&(u=_C(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=xC(i.timezone),isNaN(l))return new Date(NaN)}else{var f=new Date(s+u),c=new Date(0);return c.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),c.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),c}return new Date(s+u+l)}var ai={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,gC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yC(e){var t={},n=e.split(ai.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ai.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ai.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=ai.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function wC(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function bC(e,t){if(t===null)return new Date(NaN);var n=e.match(mC);if(!n)return new Date(NaN);var r=!!n[4],i=rr(n[1]),a=rr(n[2])-1,o=rr(n[3]),s=rr(n[4]),u=rr(n[5])-1;if(r)return EC(t,s,u)?CC(t,s,u):new Date(NaN);var l=new Date(0);return!SC(t,a,o)||!DC(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}function rr(e){return e?parseInt(e):1}function _C(e){var t=e.match(gC);if(!t)return NaN;var n=no(t[1]),r=no(t[2]),i=no(t[3]);return MC(n,r,i)?n*Ws+r*Us+i*1e3:NaN}function no(e){return e&&parseFloat(e.replace(",","."))||0}function xC(e){if(e==="Z")return 0;var t=e.match(vC);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return AC(r,i)?n*(r*Ws+i*Us):NaN}function CC(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var TC=[31,null,31,30,31,30,31,31,30,31,30,31];function Sd(e){return e%400===0||e%4===0&&e%100!==0}function SC(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(TC[t]||(Sd(e)?29:28))}function DC(e,t){return t>=1&&t<=(Sd(e)?366:365)}function EC(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function MC(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function AC(e,t){return t>=0&&t<=59}var pa={exports:{}},Dd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",:"A",:"A",:"A",:"A",:"A",Æ:"AE",:"A",:"A",Ȃ:"A",Ç:"C",:"C",È:"E",É:"E",Ê:"E",Ë:"E",:"E",:"E",:"E",:"E",:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",:"O",:"O",:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",:"a",:"a",:"a",:"a",:"a",æ:"ae",:"a",:"a",ȃ:"a",ç:"c",:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",:"e",:"e",:"e",:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",:"o",:"o",:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",:"H",:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",:"K",:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",:"W",:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",:"U",:"u",:"U",:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",:"P",:"p",:"S",:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",:"O",:"o",:"O",:"o",:"U",:"u",:"W",:"w",:"Y",:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",:"S",:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",:"D",:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",:"H",:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},Ed=Object.keys(Dd).join("|"),IC=new RegExp(Ed,"g"),OC=new RegExp(Ed,""),Md=function(e){return e.replace(IC,function(t){return Dd[t]})},RC=function(e){return!!e.match(OC)};pa.exports=Md;pa.exports.has=RC;pa.exports.remove=Md;var kC=pa.exports;const FC=nf(kC);var Je={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};js.rankings=Je;var NC=function(t,n){return String(t.rankedValue).localeCompare(String(n.rankedValue))};function js(e,t,n){n===void 0&&(n={});var r=n,i=r.keys,a=r.threshold,o=a===void 0?Je.MATCHES:a,s=r.baseSort,u=s===void 0?NC:s,l=r.sorter,f=l===void 0?function(h){return h.sort(function(p,m){return zC(p,m,u)})}:l,c=e.reduce(d,[]);return f(c).map(function(h){var p=h.item;return p});function d(h,p,m){var C=PC(p,i,t,n),y=C.rank,v=C.keyThreshold,w=v===void 0?o:v;return y>=w&&h.push(me({},C,{item:p,index:m})),h}}function PC(e,t,n,r){if(!t){var i=e;return{rankedValue:i,rank:Ql(i,n,r),keyIndex:-1,keyThreshold:r.threshold}}var a=WC(e,t);return a.reduce(function(o,s,u){var l=o.rank,f=o.rankedValue,c=o.keyIndex,d=o.keyThreshold,h=s.itemValue,p=s.attributes,m=Ql(h,n,r),C=f,y=p.minRanking,v=p.maxRanking,w=p.threshold;return m<y&&m>=Je.MATCHES?m=y:m>v&&(m=v),m>l&&(l=m,c=u,d=w,C=h),{rankedValue:C,rank:l,keyIndex:c,keyThreshold:d}},{rankedValue:e,rank:Je.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function Ql(e,t,n){return e=Kl(e,n),t=Kl(t,n),t.length>e.length?Je.NO_MATCH:e===t?Je.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Je.EQUAL:e.startsWith(t)?Je.STARTS_WITH:e.includes(" "+t)?Je.WORD_STARTS_WITH:e.includes(t)?Je.CONTAINS:t.length===1?Je.NO_MATCH:LC(e).includes(t)?Je.ACRONYM:$C(e,t))}function LC(e){var t="",n=e.split(" ");return n.forEach(function(r){var i=r.split("-");i.forEach(function(a){t+=a.substr(0,1)})}),t}function $C(e,t){var n=0,r=0;function i(d,h,p){for(var m=p,C=h.length;m<C;m++){var y=h[m];if(y===d)return n+=1,m+1}return-1}function a(d){var h=1/d,p=n/t.length,m=Je.MATCHES+p*h;return m}var o=i(t[0],e,0);if(o<0)return Je.NO_MATCH;r=o;for(var s=1,u=t.length;s<u;s++){var l=t[s];r=i(l,e,r);var f=r>-1;if(!f)return Je.NO_MATCH}var c=r-o;return a(c)}function zC(e,t,n){var r=-1,i=1,a=e.rank,o=e.keyIndex,s=t.rank,u=t.keyIndex,l=a===s;return l?o===u?n(e,t):o<u?r:i:a>s?r:i}function Kl(e,t){var n=t.keepDiacritics;return e=""+e,n||(e=FC(e)),e}function HC(e,t){typeof t=="object"&&(t=t.key);var n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return UC(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function UC(e,t){for(var n=e.split("."),r=[t],i=0,a=n.length;i<a;i++){for(var o=n[i],s=[],u=0,l=r.length;u<l;u++){var f=r[u];if(f!=null)if(Object.hasOwnProperty.call(f,o)){var c=f[o];c!=null&&s.push(c)}else o==="*"&&(s=s.concat(f))}r=s}if(Array.isArray(r[0])){var d=[];return d.concat.apply(d,r)}return r}function WC(e,t){for(var n=[],r=0,i=t.length;r<i;r++)for(var a=t[r],o=BC(a),s=HC(e,a),u=0,l=s.length;u<l;u++)n.push({itemValue:s[u],attributes:o});return n}var Gl={maxRanking:1/0,minRanking:-1/0};function BC(e){return typeof e=="string"?Gl:me({},Gl,e)}function VC(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jC(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var qC=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jC(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=VC(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ge="-ms-",ea="-moz-",ye="-webkit-",Ad="comm",qs="rule",Ys="decl",YC="@import",Id="@keyframes",QC="@layer",KC=Math.abs,ma=String.fromCharCode,GC=Object.assign;function XC(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function Od(e){return e.trim()}function ZC(e,t){return(e=t.exec(e))?e[0]:e}function we(e,t,n){return e.replace(t,n)}function es(e,t){return e.indexOf(t)}function qe(e,t){return e.charCodeAt(t)|0}function Ir(e,t,n){return e.slice(t,n)}function Et(e){return e.length}function Qs(e){return e.length}function oi(e,t){return t.push(e),e}function JC(e,t){return e.map(t).join("")}var ga=1,Hn=1,Rd=0,it=0,Fe=0,jn="";function va(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ga,column:Hn,length:o,return:""}}function ir(e,t){return GC(va("",null,null,"",null,null,0),e,{length:-e.length},t)}function e5(){return Fe}function t5(){return Fe=it>0?qe(jn,--it):0,Hn--,Fe===10&&(Hn=1,ga--),Fe}function ut(){return Fe=it<Rd?qe(jn,it++):0,Hn++,Fe===10&&(Hn=1,ga++),Fe}function Lt(){return qe(jn,it)}function xi(){return it}function zr(e,t){return Ir(jn,e,t)}function Or(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kd(e){return ga=Hn=1,Rd=Et(jn=e),it=0,[]}function Fd(e){return jn="",e}function Ci(e){return Od(zr(it-1,ts(e===91?e+2:e===40?e+1:e)))}function n5(e){for(;(Fe=Lt())&&Fe<33;)ut();return Or(e)>2||Or(Fe)>3?"":" "}function r5(e,t){for(;--t&&ut()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return zr(e,xi()+(t<6&&Lt()==32&&ut()==32))}function ts(e){for(;ut();)switch(Fe){case e:return it;case 34:case 39:e!==34&&e!==39&&ts(Fe);break;case 40:e===41&&ts(e);break;case 92:ut();break}return it}function i5(e,t){for(;ut()&&e+Fe!==47+10;)if(e+Fe===42+42&&Lt()===47)break;return"/*"+zr(t,it-1)+"*"+ma(e===47?e:ut())}function a5(e){for(;!Or(Lt());)ut();return zr(e,it)}function o5(e){return Fd(Ti("",null,null,null,[""],e=kd(e),0,[0],e))}function Ti(e,t,n,r,i,a,o,s,u){for(var l=0,f=0,c=o,d=0,h=0,p=0,m=1,C=1,y=1,v=0,w="",D=i,g=a,_=r,S=w;C;)switch(p=v,v=ut()){case 40:if(p!=108&&qe(S,c-1)==58){es(S+=we(Ci(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:S+=Ci(v);break;case 9:case 10:case 13:case 32:S+=n5(p);break;case 92:S+=r5(xi()-1,7);continue;case 47:switch(Lt()){case 42:case 47:oi(s5(i5(ut(),xi()),t,n),u);break;default:S+="/"}break;case 123*m:s[l++]=Et(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+f:y==-1&&(S=we(S,/\f/g,"")),h>0&&Et(S)-c&&oi(h>32?Zl(S+";",r,n,c-1):Zl(we(S," ","")+";",r,n,c-2),u);break;case 59:S+=";";default:if(oi(_=Xl(S,t,n,l,f,i,s,w,D=[],g=[],c),a),v===123)if(f===0)Ti(S,t,_,_,D,a,c,s,g);else switch(d===99&&qe(S,3)===110?100:d){case 100:case 108:case 109:case 115:Ti(e,_,_,r&&oi(Xl(e,_,_,0,0,i,s,w,i,D=[],c),g),i,g,c,s,r?D:g);break;default:Ti(S,_,_,_,[""],g,0,s,g)}}l=f=h=0,m=y=1,w=S="",c=o;break;case 58:c=1+Et(S),h=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&t5()==125)continue}switch(S+=ma(v),v*m){case 38:y=f>0?1:(S+="\f",-1);break;case 44:s[l++]=(Et(S)-1)*y,y=1;break;case 64:Lt()===45&&(S+=Ci(ut())),d=Lt(),f=c=Et(w=S+=a5(xi())),v++;break;case 45:p===45&&Et(S)==2&&(m=0)}}return a}function Xl(e,t,n,r,i,a,o,s,u,l,f){for(var c=i-1,d=i===0?a:[""],h=Qs(d),p=0,m=0,C=0;p<r;++p)for(var y=0,v=Ir(e,c+1,c=KC(m=o[p])),w=e;y<h;++y)(w=Od(m>0?d[y]+" "+v:we(v,/&\f/g,d[y])))&&(u[C++]=w);return va(e,t,n,i===0?qs:s,u,l,f)}function s5(e,t,n){return va(e,t,n,Ad,ma(e5()),Ir(e,2,-2),0)}function Zl(e,t,n,r){return va(e,t,n,Ys,Ir(e,0,r),Ir(e,r+1,-1),r)}function In(e,t){for(var n="",r=Qs(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function u5(e,t,n,r){switch(e.type){case QC:if(e.children.length)break;case YC:case Ys:return e.return=e.return||e.value;case Ad:return"";case Id:return e.return=e.value+"{"+In(e.children,r)+"}";case qs:e.value=e.props.join(",")}return Et(n=In(e.children,r))?e.return=e.value+"{"+n+"}":""}function l5(e){var t=Qs(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function c5(e){return function(t){t.root||(t=t.return)&&e(t)}}function f5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var d5=function(t,n,r){for(var i=0,a=0;i=a,a=Lt(),i===38&&a===12&&(n[r]=1),!Or(a);)ut();return zr(t,it)},h5=function(t,n){var r=-1,i=44;do switch(Or(i)){case 0:i===38&&Lt()===12&&(n[r]=1),t[r]+=d5(it-1,n,r);break;case 2:t[r]+=Ci(i);break;case 4:if(i===44){t[++r]=Lt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ma(i)}while(i=ut());return t},p5=function(t,n){return Fd(h5(kd(t),n))},Jl=new WeakMap,m5=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Jl.get(r))&&!i){Jl.set(t,!0);for(var a=[],o=p5(n,a),s=r.props,u=0,l=0;u<o.length;u++)for(var f=0;f<s.length;f++,l++)t.props[l]=a[u]?o[u].replace(/&\f/g,s[f]):s[f]+" "+o[u]}}},g5=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Nd(e,t){switch(XC(e,t)){case 5103:return ye+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ye+e+ea+e+Ge+e+e;case 6828:case 4268:return ye+e+Ge+e+e;case 6165:return ye+e+Ge+"flex-"+e+e;case 5187:return ye+e+we(e,/(\w+).+(:[^]+)/,ye+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return ye+e+Ge+"flex-item-"+we(e,/flex-|-self/,"")+e;case 4675:return ye+e+Ge+"flex-line-pack"+we(e,/align-content|flex-|-self/,"")+e;case 5548:return ye+e+Ge+we(e,"shrink","negative")+e;case 5292:return ye+e+Ge+we(e,"basis","preferred-size")+e;case 6060:return ye+"box-"+we(e,"-grow","")+ye+e+Ge+we(e,"grow","positive")+e;case 4554:return ye+we(e,/([^-])(transform)/g,"$1"+ye+"$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,ye+"$1"),/(image-set)/,ye+"$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,ye+"$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,ye+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ye+e+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,ye+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Et(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+ea+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~es(e,"stretch")?Nd(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Et(e)-3-(~es(e,"!important")&&10))){case 107:return we(e,":",":"+ye)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ye+(qe(e,14)===45?"inline-":"")+"box$3$1"+ye+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return ye+e+Ge+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ye+e+Ge+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ye+e+Ge+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ye+e+Ge+e+e}return e}var v5=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ys:t.return=Nd(t.value,t.length);break;case Id:return In([ir(t,{value:we(t.value,"@","@"+ye)})],i);case qs:if(t.length)return JC(t.props,function(a){switch(ZC(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return In([ir(t,{props:[we(a,/:(read-\w+)/,":"+ea+"$1")]})],i);case"::placeholder":return In([ir(t,{props:[we(a,/:(plac\w+)/,":"+ye+"input-$1")]}),ir(t,{props:[we(a,/:(plac\w+)/,":"+ea+"$1")]}),ir(t,{props:[we(a,/:(plac\w+)/,Ge+"input-$1")]})],i)}return""})}},y5=[v5],w5=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||y5,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),y=1;y<C.length;y++)a[C[y]]=!0;s.push(m)});var u,l=[m5,g5];{var f,c=[u5,c5(function(m){f.insert(m)})],d=l5(l.concat(i,c)),h=function(C){return In(o5(C),d)};u=function(C,y,v,w){f=v,h(C?C+"{"+y.styles+"}":y.styles),w&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new qC({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return p.sheet.hydrate(s),p},Pd={exports:{}},_e={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var We=typeof Symbol=="function"&&Symbol.for,Ks=We?Symbol.for("react.element"):60103,Gs=We?Symbol.for("react.portal"):60106,ya=We?Symbol.for("react.fragment"):60107,wa=We?Symbol.for("react.strict_mode"):60108,ba=We?Symbol.for("react.profiler"):60114,_a=We?Symbol.for("react.provider"):60109,xa=We?Symbol.for("react.context"):60110,Xs=We?Symbol.for("react.async_mode"):60111,Ca=We?Symbol.for("react.concurrent_mode"):60111,Ta=We?Symbol.for("react.forward_ref"):60112,Sa=We?Symbol.for("react.suspense"):60113,b5=We?Symbol.for("react.suspense_list"):60120,Da=We?Symbol.for("react.memo"):60115,Ea=We?Symbol.for("react.lazy"):60116,_5=We?Symbol.for("react.block"):60121,x5=We?Symbol.for("react.fundamental"):60117,C5=We?Symbol.for("react.responder"):60118,T5=We?Symbol.for("react.scope"):60119;function dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ks:switch(e=e.type,e){case Xs:case Ca:case ya:case ba:case wa:case Sa:return e;default:switch(e=e&&e.$$typeof,e){case xa:case Ta:case Ea:case Da:case _a:return e;default:return t}}case Gs:return t}}}function Ld(e){return dt(e)===Ca}_e.AsyncMode=Xs;_e.ConcurrentMode=Ca;_e.ContextConsumer=xa;_e.ContextProvider=_a;_e.Element=Ks;_e.ForwardRef=Ta;_e.Fragment=ya;_e.Lazy=Ea;_e.Memo=Da;_e.Portal=Gs;_e.Profiler=ba;_e.StrictMode=wa;_e.Suspense=Sa;_e.isAsyncMode=function(e){return Ld(e)||dt(e)===Xs};_e.isConcurrentMode=Ld;_e.isContextConsumer=function(e){return dt(e)===xa};_e.isContextProvider=function(e){return dt(e)===_a};_e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ks};_e.isForwardRef=function(e){return dt(e)===Ta};_e.isFragment=function(e){return dt(e)===ya};_e.isLazy=function(e){return dt(e)===Ea};_e.isMemo=function(e){return dt(e)===Da};_e.isPortal=function(e){return dt(e)===Gs};_e.isProfiler=function(e){return dt(e)===ba};_e.isStrictMode=function(e){return dt(e)===wa};_e.isSuspense=function(e){return dt(e)===Sa};_e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ya||e===Ca||e===ba||e===wa||e===Sa||e===b5||typeof e=="object"&&e!==null&&(e.$$typeof===Ea||e.$$typeof===Da||e.$$typeof===_a||e.$$typeof===xa||e.$$typeof===Ta||e.$$typeof===x5||e.$$typeof===C5||e.$$typeof===T5||e.$$typeof===_5)};_e.typeOf=dt;Pd.exports=_e;var S5=Pd.exports,$d=S5,D5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zd={};zd[$d.ForwardRef]=D5;zd[$d.Memo]=E5;var M5=!0;function A5(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Hd=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||M5===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},I5=function(t,n,r){Hd(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function O5(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},k5=/[A-Z]|^ms/g,F5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ud=function(t){return t.charCodeAt(1)===45},ec=function(t){return t!=null&&typeof t!="boolean"},ro=f5(function(e){return Ud(e)?e:e.replace(k5,"-$&").toLowerCase()}),tc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(F5,function(r,i,a){return Mt={name:i,styles:a,next:Mt},i})}return R5[t]!==1&&!Ud(t)&&typeof n=="number"&&n!==0?n+"px":n};function Rr(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Mt={name:n.name,styles:n.styles,next:Mt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Mt={name:r.name,styles:r.styles,next:Mt},r=r.next;var i=n.styles+";";return i}return N5(e,t,n)}case"function":{if(e!==void 0){var a=Mt,o=n(e);return Mt=a,Rr(e,t,o)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function N5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Rr(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":ec(o)&&(r+=ro(a)+":"+tc(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)ec(o[s])&&(r+=ro(a)+":"+tc(a,o[s])+";");else{var u=Rr(e,t,o);switch(a){case"animation":case"animationName":{r+=ro(a)+":"+u+";";break}default:r+=a+"{"+u+"}"}}}return r}var nc=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Mt,P5=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";Mt=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=Rr(r,n,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=Rr(r,n,t[s]),i&&(a+=o[s]);nc.lastIndex=0;for(var u="",l;(l=nc.exec(a))!==null;)u+="-"+l[1];var f=O5(a)+u;return{name:f,styles:a,next:Mt}},Zs={}.hasOwnProperty,Wd=J.createContext(typeof HTMLElement<"u"?w5({key:"css"}):null);Wd.Provider;var L5=function(t){return J.forwardRef(function(n,r){var i=J.useContext(Wd);return t(n,i,r)})},$5=J.createContext({}),ns="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",z5=function(t,n){var r={};for(var i in n)Zs.call(n,i)&&(r[i]=n[i]);return r[ns]=t,r},H5=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Hd(n,r,i),Vh(function(){return I5(n,r,i)}),null},U5=L5(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[ns],a=[r],o="";typeof e.className=="string"?o=A5(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=P5(a,void 0,J.useContext($5));o+=t.key+"-"+s.name;var u={};for(var l in e)Zs.call(e,l)&&l!=="css"&&l!==ns&&(u[l]=e[l]);return u.ref=n,u.className=o,J.createElement(J.Fragment,null,J.createElement(H5,{cache:t,serialized:s,isStringTag:typeof i=="string"}),J.createElement(i,u))}),W5=U5,E=function(t,n){var r=arguments;if(n==null||!Zs.call(n,"css"))return J.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=W5,a[1]=z5(t,n);for(var o=2;o<i;o++)a[o]=r[o];return J.createElement.apply(null,a)};/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */function nn(e){return nn=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},nn(e)}function rs(e,t){return rs=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},rs(e,t)}function B5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Si(e,t,n){return B5()?Si=Reflect.construct:Si=function(i,a,o){var s=[null];s.push.apply(s,a);var u=Function.bind.apply(i,s),l=new u;return o&&rs(l,o.prototype),l},Si.apply(null,arguments)}function _t(e){return V5(e)||j5(e)||q5(e)||Y5()}function V5(e){if(Array.isArray(e))return is(e)}function j5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q5(e,t){if(e){if(typeof e=="string")return is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return is(e,t)}}function is(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Q5=Object.hasOwnProperty,rc=Object.setPrototypeOf,K5=Object.isFrozen,G5=Object.getPrototypeOf,X5=Object.getOwnPropertyDescriptor,et=Object.freeze,Ct=Object.seal,Z5=Object.create,Bd=typeof Reflect<"u"&&Reflect,ta=Bd.apply,as=Bd.construct;ta||(ta=function(t,n,r){return t.apply(n,r)});et||(et=function(t){return t});Ct||(Ct=function(t){return t});as||(as=function(t,n){return Si(t,_t(n))});var J5=mt(Array.prototype.forEach),ic=mt(Array.prototype.pop),ar=mt(Array.prototype.push),Di=mt(String.prototype.toLowerCase),io=mt(String.prototype.toString),e2=mt(String.prototype.match),bt=mt(String.prototype.replace),t2=mt(String.prototype.indexOf),n2=mt(String.prototype.trim),Ze=mt(RegExp.prototype.test),ao=r2(TypeError);function mt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ta(e,t,r)}}function r2(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return as(e,n)}}function ie(e,t,n){n=n||Di,rc&&rc(e,null);for(var r=t.length;r--;){var i=t[r];if(typeof i=="string"){var a=n(i);a!==i&&(K5(t)||(t[r]=a),i=a)}e[i]=!0}return e}function un(e){var t=Z5(null),n;for(n in e)ta(Q5,e,[n])===!0&&(t[n]=e[n]);return t}function si(e,t){for(;e!==null;){var n=X5(e,t);if(n){if(n.get)return mt(n.get);if(typeof n.value=="function")return mt(n.value)}e=G5(e)}function r(i){return console.warn("fallback value for",i),null}return r}var ac=et(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oo=et(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),so=et(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),i2=et(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),uo=et(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),a2=et(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oc=et(["#text"]),sc=et(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),lo=et(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),uc=et(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ui=et(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),o2=Ct(/\{\{[\w\W]*|[\w\W]*\}\}/gm),s2=Ct(/<%[\w\W]*|[\w\W]*%>/gm),u2=Ct(/\${[\w\W]*}/gm),l2=Ct(/^data-[\-\w.\u00B7-\uFFFF]/),c2=Ct(/^aria-[\-\w]+$/),f2=Ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d2=Ct(/^(?:\w+script|data):/i),h2=Ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),p2=Ct(/^html$/i),m2=function(){return typeof window>"u"?null:window},g2=function(t,n){if(nn(t)!=="object"||typeof t.createPolicy!="function")return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Vd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m2(),t=function(T){return Vd(T)};if(t.version="2.4.5",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,a=e.HTMLTemplateElement,o=e.Node,s=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,f=l===void 0?e.NamedNodeMap||e.MozNamedAttrMap:l,c=e.HTMLFormElement,d=e.DOMParser,h=e.trustedTypes,p=s.prototype,m=si(p,"cloneNode"),C=si(p,"nextSibling"),y=si(p,"childNodes"),v=si(p,"parentNode");if(typeof a=="function"){var w=r.createElement("template");w.content&&w.content.ownerDocument&&(r=w.content.ownerDocument)}var D=g2(h,n),g=D?D.createHTML(""):"",_=r,S=_.implementation,F=_.createNodeIterator,P=_.createDocumentFragment,k=_.getElementsByTagName,b=n.importNode,M={};try{M=un(r).documentMode?r.documentMode:{}}catch{}var x={};t.isSupported=typeof v=="function"&&S&&typeof S.createHTMLDocument<"u"&&M!==9;var I=o2,N=s2,A=u2,H=l2,U=c2,K=d2,X=h2,ne=f2,j=null,oe=ie({},[].concat(_t(ac),_t(oo),_t(so),_t(uo),_t(oc))),Q=null,se=ie({},[].concat(_t(sc),_t(lo),_t(uc),_t(ui))),ee=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,re=null,O=!0,Y=!0,G=!1,R=!0,ae=!1,q=!1,Ce=!1,Me=!1,Ne=!1,Ht=!1,te=!1,xe=!0,ue=!1,Ye="user-content-",ke=!0,Be=!1,Qe={},$e=null,Ut=ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),at=null,Kr=ie({},["audio","video","img","source","image","track"]),qn=null,Gr=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_n="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml",an=wt,Yn=!1,Qn=null,Ra=ie({},[_n,Xt,wt],io),on,Fh=["application/xhtml+xml","text/html"],Nh="text/html",ze,xn=null,Ph=r.createElement("form"),uu=function(T){return T instanceof RegExp||T instanceof Function},ka=function(T){xn&&xn===T||((!T||nn(T)!=="object")&&(T={}),T=un(T),on=Fh.indexOf(T.PARSER_MEDIA_TYPE)===-1?on=Nh:on=T.PARSER_MEDIA_TYPE,ze=on==="application/xhtml+xml"?io:Di,j="ALLOWED_TAGS"in T?ie({},T.ALLOWED_TAGS,ze):oe,Q="ALLOWED_ATTR"in T?ie({},T.ALLOWED_ATTR,ze):se,Qn="ALLOWED_NAMESPACES"in T?ie({},T.ALLOWED_NAMESPACES,io):Ra,qn="ADD_URI_SAFE_ATTR"in T?ie(un(Gr),T.ADD_URI_SAFE_ATTR,ze):Gr,at="ADD_DATA_URI_TAGS"in T?ie(un(Kr),T.ADD_DATA_URI_TAGS,ze):Kr,$e="FORBID_CONTENTS"in T?ie({},T.FORBID_CONTENTS,ze):Ut,fe="FORBID_TAGS"in T?ie({},T.FORBID_TAGS,ze):{},re="FORBID_ATTR"in T?ie({},T.FORBID_ATTR,ze):{},Qe="USE_PROFILES"in T?T.USE_PROFILES:!1,O=T.ALLOW_ARIA_ATTR!==!1,Y=T.ALLOW_DATA_ATTR!==!1,G=T.ALLOW_UNKNOWN_PROTOCOLS||!1,R=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ae=T.SAFE_FOR_TEMPLATES||!1,q=T.WHOLE_DOCUMENT||!1,Ne=T.RETURN_DOM||!1,Ht=T.RETURN_DOM_FRAGMENT||!1,te=T.RETURN_TRUSTED_TYPE||!1,Me=T.FORCE_BODY||!1,xe=T.SANITIZE_DOM!==!1,ue=T.SANITIZE_NAMED_PROPS||!1,ke=T.KEEP_CONTENT!==!1,Be=T.IN_PLACE||!1,ne=T.ALLOWED_URI_REGEXP||ne,an=T.NAMESPACE||wt,ee=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&uu(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&uu(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ae&&(Y=!1),Ht&&(Ne=!0),Qe&&(j=ie({},_t(oc)),Q=[],Qe.html===!0&&(ie(j,ac),ie(Q,sc)),Qe.svg===!0&&(ie(j,oo),ie(Q,lo),ie(Q,ui)),Qe.svgFilters===!0&&(ie(j,so),ie(Q,lo),ie(Q,ui)),Qe.mathMl===!0&&(ie(j,uo),ie(Q,uc),ie(Q,ui))),T.ADD_TAGS&&(j===oe&&(j=un(j)),ie(j,T.ADD_TAGS,ze)),T.ADD_ATTR&&(Q===se&&(Q=un(Q)),ie(Q,T.ADD_ATTR,ze)),T.ADD_URI_SAFE_ATTR&&ie(qn,T.ADD_URI_SAFE_ATTR,ze),T.FORBID_CONTENTS&&($e===Ut&&($e=un($e)),ie($e,T.FORBID_CONTENTS,ze)),ke&&(j["#text"]=!0),q&&ie(j,["html","head","body"]),j.table&&(ie(j,["tbody"]),delete fe.tbody),et&&et(T),xn=T)},lu=ie({},["mi","mo","mn","ms","mtext"]),cu=ie({},["foreignobject","desc","title","annotation-xml"]),Lh=ie({},["title","style","font","a","script"]),Xr=ie({},oo);ie(Xr,so),ie(Xr,i2);var Fa=ie({},uo);ie(Fa,a2);var $h=function(T){var L=v(T);(!L||!L.tagName)&&(L={namespaceURI:an,tagName:"template"});var W=Di(T.tagName),ve=Di(L.tagName);return Qn[T.namespaceURI]?T.namespaceURI===Xt?L.namespaceURI===wt?W==="svg":L.namespaceURI===_n?W==="svg"&&(ve==="annotation-xml"||lu[ve]):!!Xr[W]:T.namespaceURI===_n?L.namespaceURI===wt?W==="math":L.namespaceURI===Xt?W==="math"&&cu[ve]:!!Fa[W]:T.namespaceURI===wt?L.namespaceURI===Xt&&!cu[ve]||L.namespaceURI===_n&&!lu[ve]?!1:!Fa[W]&&(Lh[W]||!Xr[W]):!!(on==="application/xhtml+xml"&&Qn[T.namespaceURI]):!1},Wt=function(T){ar(t.removed,{element:T});try{T.parentNode.removeChild(T)}catch{try{T.outerHTML=g}catch{T.remove()}}},Na=function(T,L){try{ar(t.removed,{attribute:L.getAttributeNode(T),from:L})}catch{ar(t.removed,{attribute:null,from:L})}if(L.removeAttribute(T),T==="is"&&!Q[T])if(Ne||Ht)try{Wt(L)}catch{}else try{L.setAttribute(T,"")}catch{}},fu=function(T){var L,W;if(Me)T="<remove></remove>"+T;else{var ve=e2(T,/^[\r\n\t ]+/);W=ve&&ve[0]}on==="application/xhtml+xml"&&an===wt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");var tt=D?D.createHTML(T):T;if(an===wt)try{L=new d().parseFromString(tt,on)}catch{}if(!L||!L.documentElement){L=S.createDocument(an,"template",null);try{L.documentElement.innerHTML=Yn?g:tt}catch{}}var Ke=L.body||L.documentElement;return T&&W&&Ke.insertBefore(r.createTextNode(W),Ke.childNodes[0]||null),an===wt?k.call(L,q?"html":"body")[0]:q?L.documentElement:Ke},du=function(T){return F.call(T.ownerDocument||T,T,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},zh=function(T){return T instanceof c&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof f)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},Kn=function(T){return nn(o)==="object"?T instanceof o:T&&nn(T)==="object"&&typeof T.nodeType=="number"&&typeof T.nodeName=="string"},Bt=function(T,L,W){x[T]&&J5(x[T],function(ve){ve.call(t,L,W,xn)})},hu=function(T){var L;if(Bt("beforeSanitizeElements",T,null),zh(T)||Ze(/[\u0080-\uFFFF]/,T.nodeName))return Wt(T),!0;var W=ze(T.nodeName);if(Bt("uponSanitizeElement",T,{tagName:W,allowedTags:j}),T.hasChildNodes()&&!Kn(T.firstElementChild)&&(!Kn(T.content)||!Kn(T.content.firstElementChild))&&Ze(/<[/\w]/g,T.innerHTML)&&Ze(/<[/\w]/g,T.textContent)||W==="select"&&Ze(/<template/i,T.innerHTML))return Wt(T),!0;if(!j[W]||fe[W]){if(!fe[W]&&mu(W)&&(ee.tagNameCheck instanceof RegExp&&Ze(ee.tagNameCheck,W)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(W)))return!1;if(ke&&!$e[W]){var ve=v(T)||T.parentNode,tt=y(T)||T.childNodes;if(tt&&ve)for(var Ke=tt.length,Ve=Ke-1;Ve>=0;--Ve)ve.insertBefore(m(tt[Ve],!0),C(T))}return Wt(T),!0}return T instanceof s&&!$h(T)||(W==="noscript"||W==="noembed")&&Ze(/<\/no(script|embed)/i,T.innerHTML)?(Wt(T),!0):(ae&&T.nodeType===3&&(L=T.textContent,L=bt(L,I," "),L=bt(L,N," "),L=bt(L,A," "),T.textContent!==L&&(ar(t.removed,{element:T.cloneNode()}),T.textContent=L)),Bt("afterSanitizeElements",T,null),!1)},pu=function(T,L,W){if(xe&&(L==="id"||L==="name")&&(W in r||W in Ph))return!1;if(!(Y&&!re[L]&&Ze(H,L))){if(!(O&&Ze(U,L))){if(!Q[L]||re[L]){if(!(mu(T)&&(ee.tagNameCheck instanceof RegExp&&Ze(ee.tagNameCheck,T)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(T))&&(ee.attributeNameCheck instanceof RegExp&&Ze(ee.attributeNameCheck,L)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(L))||L==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&Ze(ee.tagNameCheck,W)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(W))))return!1}else if(!qn[L]){if(!Ze(ne,bt(W,X,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&T!=="script"&&t2(W,"data:")===0&&at[T])){if(!(G&&!Ze(K,bt(W,X,"")))){if(W)return!1}}}}}}return!0},mu=function(T){return T.indexOf("-")>0},gu=function(T){var L,W,ve,tt;Bt("beforeSanitizeAttributes",T,null);var Ke=T.attributes;if(Ke){var Ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q};for(tt=Ke.length;tt--;){L=Ke[tt];var Zr=L,He=Zr.name,Pa=Zr.namespaceURI;if(W=He==="value"?L.value:n2(L.value),ve=ze(He),Ve.attrName=ve,Ve.attrValue=W,Ve.keepAttr=!0,Ve.forceKeepAttr=void 0,Bt("uponSanitizeAttribute",T,Ve),W=Ve.attrValue,!Ve.forceKeepAttr&&(Na(He,T),!!Ve.keepAttr)){if(!R&&Ze(/\/>/i,W)){Na(He,T);continue}ae&&(W=bt(W,I," "),W=bt(W,N," "),W=bt(W,A," "));var vu=ze(T.nodeName);if(pu(vu,ve,W)){if(ue&&(ve==="id"||ve==="name")&&(Na(He,T),W=Ye+W),D&&nn(h)==="object"&&typeof h.getAttributeType=="function"&&!Pa)switch(h.getAttributeType(vu,ve)){case"TrustedHTML":W=D.createHTML(W);break;case"TrustedScriptURL":W=D.createScriptURL(W);break}try{Pa?T.setAttributeNS(Pa,He,W):T.setAttribute(He,W),ic(t.removed)}catch{}}}}Bt("afterSanitizeAttributes",T,null)}},Hh=function Z(T){var L,W=du(T);for(Bt("beforeSanitizeShadowDOM",T,null);L=W.nextNode();)Bt("uponSanitizeShadowNode",L,null),!hu(L)&&(L.content instanceof i&&Z(L.content),gu(L));Bt("afterSanitizeShadowDOM",T,null)};return t.sanitize=function(Z){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L,W,ve,tt,Ke;if(Yn=!Z,Yn&&(Z="<!-->"),typeof Z!="string"&&!Kn(Z)){if(typeof Z.toString!="function")throw ao("toString is not a function");if(Z=Z.toString(),typeof Z!="string")throw ao("dirty is not a string, aborting")}if(!t.isSupported){if(nn(e.toStaticHTML)==="object"||typeof e.toStaticHTML=="function"){if(typeof Z=="string")return e.toStaticHTML(Z);if(Kn(Z))return e.toStaticHTML(Z.outerHTML)}return Z}if(Ce||ka(T),t.removed=[],typeof Z=="string"&&(Be=!1),Be){if(Z.nodeName){var Ve=ze(Z.nodeName);if(!j[Ve]||fe[Ve])throw ao("root node is forbidden and cannot be sanitized in-place")}}else if(Z instanceof o)L=fu("<!---->"),W=L.ownerDocument.importNode(Z,!0),W.nodeType===1&&W.nodeName==="BODY"||W.nodeName==="HTML"?L=W:L.appendChild(W);else{if(!Ne&&!ae&&!q&&Z.indexOf("<")===-1)return D&&te?D.createHTML(Z):Z;if(L=fu(Z),!L)return Ne?null:te?g:""}L&&Me&&Wt(L.firstChild);for(var Zr=du(Be?Z:L);ve=Zr.nextNode();)ve.nodeType===3&&ve===tt||hu(ve)||(ve.content instanceof i&&Hh(ve.content),gu(ve),tt=ve);if(tt=null,Be)return Z;if(Ne){if(Ht)for(Ke=P.call(L.ownerDocument);L.firstChild;)Ke.appendChild(L.firstChild);else Ke=L;return(Q.shadowroot||Q.shadowrootmod)&&(Ke=b.call(n,Ke,!0)),Ke}var He=q?L.outerHTML:L.innerHTML;return q&&j["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&Ze(p2,L.ownerDocument.doctype.name)&&(He="<!DOCTYPE "+L.ownerDocument.doctype.name+`>
`+He),ae&&(He=bt(He,I," "),He=bt(He,N," "),He=bt(He,A," ")),D&&te?D.createHTML(He):He},t.setConfig=function(Z){ka(Z),Ce=!0},t.clearConfig=function(){xn=null,Ce=!1},t.isValidAttribute=function(Z,T,L){xn||ka({});var W=ze(Z),ve=ze(T);return pu(W,ve,L)},t.addHook=function(Z,T){typeof T=="function"&&(x[Z]=x[Z]||[],ar(x[Z],T))},t.removeHook=function(Z){if(x[Z])return ic(x[Z])},t.removeHooks=function(Z){x[Z]&&(x[Z]=[])},t.removeAllHooks=function(){x={}},t}var Js=Vd(),v2=function(){return zt.Date.now()};const co=v2;var y2=/\s/;function w2(e){for(var t=e.length;t--&&y2.test(e.charAt(t)););return t}var b2=/^\s+/;function _2(e){return e&&e.slice(0,w2(e)+1).replace(b2,"")}var x2="[object Symbol]";function C2(e){return typeof e=="symbol"||$n(e)&&Bn(e)==x2}var lc=0/0,T2=/^[-+]0x[0-9a-f]+$/i,S2=/^0b[01]+$/i,D2=/^0o[0-7]+$/i,E2=parseInt;function cc(e){if(typeof e=="number")return e;if(C2(e))return lc;if(Er(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Er(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_2(e);var n=S2.test(e);return n||D2.test(e)?E2(e.slice(2),n?2:8):T2.test(e)?lc:+e}var M2="Expected a function",A2=Math.max,I2=Math.min;function jd(e,t,n){var r,i,a,o,s,u,l=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(M2);t=cc(t)||0,Er(n)&&(f=!!n.leading,c="maxWait"in n,a=c?A2(cc(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(_){var S=r,F=i;return r=i=void 0,l=_,o=e.apply(F,S),o}function p(_){return l=_,s=setTimeout(y,t),f?h(_):o}function m(_){var S=_-u,F=_-l,P=t-S;return c?I2(P,a-F):P}function C(_){var S=_-u,F=_-l;return u===void 0||S>=t||S<0||c&&F>=a}function y(){var _=co();if(C(_))return v(_);s=setTimeout(y,m(_))}function v(_){return s=void 0,d&&r?h(_):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=u=i=s=void 0}function D(){return s===void 0?o:v(co())}function g(){var _=co(),S=C(_);if(r=arguments,i=this,u=_,S){if(s===void 0)return p(u);if(c)return clearTimeout(s),s=setTimeout(y,t),h(u)}return s===void 0&&(s=setTimeout(y,t)),o}return g.cancel=w,g.flush=D,g}var Te={};/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ma=60103,Aa=60106,Hr=60107,Ur=60108,Wr=60114,Br=60109,Vr=60110,jr=60112,qr=60113,eu=60120,Yr=60115,Qr=60116,qd=60121,Yd=60122,Qd=60117,Kd=60129,Gd=60131;if(typeof Symbol=="function"&&Symbol.for){var je=Symbol.for;Ma=je("react.element"),Aa=je("react.portal"),Hr=je("react.fragment"),Ur=je("react.strict_mode"),Wr=je("react.profiler"),Br=je("react.provider"),Vr=je("react.context"),jr=je("react.forward_ref"),qr=je("react.suspense"),eu=je("react.suspense_list"),Yr=je("react.memo"),Qr=je("react.lazy"),qd=je("react.block"),Yd=je("react.server.block"),Qd=je("react.fundamental"),Kd=je("react.debug_trace_mode"),Gd=je("react.legacy_hidden")}function St(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ma:switch(e=e.type,e){case Hr:case Wr:case Ur:case qr:case eu:return e;default:switch(e=e&&e.$$typeof,e){case Vr:case jr:case Qr:case Yr:case Br:return e;default:return t}}case Aa:return t}}}var O2=Br,R2=Ma,k2=jr,F2=Hr,N2=Qr,P2=Yr,L2=Aa,$2=Wr,z2=Ur,H2=qr;Te.ContextConsumer=Vr;Te.ContextProvider=O2;Te.Element=R2;Te.ForwardRef=k2;Te.Fragment=F2;Te.Lazy=N2;Te.Memo=P2;Te.Portal=L2;Te.Profiler=$2;Te.StrictMode=z2;Te.Suspense=H2;Te.isAsyncMode=function(){return!1};Te.isConcurrentMode=function(){return!1};Te.isContextConsumer=function(e){return St(e)===Vr};Te.isContextProvider=function(e){return St(e)===Br};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ma};Te.isForwardRef=function(e){return St(e)===jr};Te.isFragment=function(e){return St(e)===Hr};Te.isLazy=function(e){return St(e)===Qr};Te.isMemo=function(e){return St(e)===Yr};Te.isPortal=function(e){return St(e)===Aa};Te.isProfiler=function(e){return St(e)===Wr};Te.isStrictMode=function(e){return St(e)===Ur};Te.isSuspense=function(e){return St(e)===qr};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hr||e===Wr||e===Kd||e===Ur||e===qr||e===eu||e===Gd||typeof e=="object"&&e!==null&&(e.$$typeof===Qr||e.$$typeof===Yr||e.$$typeof===Br||e.$$typeof===Vr||e.$$typeof===jr||e.$$typeof===Qd||e.$$typeof===qd||e[0]===Yd)};Te.typeOf=St;function fc(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function dc(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function fo(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return dc(n.overflowY,t)||dc(n.overflowX,t)||function(r){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function li(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}var U2=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(q){return q!==o};if(!fc(e))throw new TypeError("Invalid target");for(var l,f,c=document.scrollingElement||document.documentElement,d=[],h=e;fc(h)&&u(h);){if((h=(f=(l=h).parentElement)==null?l.getRootNode().host||null:f)===c){d.push(h);break}h!=null&&h===document.body&&fo(h)&&!fo(document.documentElement)||h!=null&&fo(h,s)&&d.push(h)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),w=v.height,D=v.width,g=v.top,_=v.right,S=v.bottom,F=v.left,P=i==="start"||i==="nearest"?g:i==="end"?S:g+w/2,k=a==="center"?F+D/2:a==="end"?_:F,b=[],M=0;M<d.length;M++){var x=d[M],I=x.getBoundingClientRect(),N=I.height,A=I.width,H=I.top,U=I.right,K=I.bottom,X=I.left;if(r==="if-needed"&&g>=0&&F>=0&&S<=m&&_<=p&&g>=H&&S<=K&&F>=X&&_<=U)return b;var ne=getComputedStyle(x),j=parseInt(ne.borderLeftWidth,10),oe=parseInt(ne.borderTopWidth,10),Q=parseInt(ne.borderRightWidth,10),se=parseInt(ne.borderBottomWidth,10),ee=0,fe=0,re="offsetWidth"in x?x.offsetWidth-x.clientWidth-j-Q:0,O="offsetHeight"in x?x.offsetHeight-x.clientHeight-oe-se:0,Y="offsetWidth"in x?x.offsetWidth===0?0:A/x.offsetWidth:0,G="offsetHeight"in x?x.offsetHeight===0?0:N/x.offsetHeight:0;if(c===x)ee=i==="start"?P:i==="end"?P-m:i==="nearest"?li(y,y+m,m,oe,se,y+P,y+P+w,w):P-m/2,fe=a==="start"?k:a==="center"?k-p/2:a==="end"?k-p:li(C,C+p,p,j,Q,C+k,C+k+D,D),ee=Math.max(0,ee+y),fe=Math.max(0,fe+C);else{ee=i==="start"?P-H-oe:i==="end"?P-K+se+O:i==="nearest"?li(H,K,N,oe,se+O,P,P+w,w):P-(H+N/2)+O/2,fe=a==="start"?k-X-j:a==="center"?k-(X+A/2)+re/2:a==="end"?k-U+Q+re:li(X,U,A,j,Q+re,k,k+D,D);var R=x.scrollLeft,ae=x.scrollTop;P+=ae-(ee=Math.max(0,Math.min(ae+ee/G,x.scrollHeight-N/G+O))),k+=R-(fe=Math.max(0,Math.min(R+fe/Y,x.scrollWidth-A/Y+re)))}b.push({el:x,top:ee,left:fe})}return b},na=function(){return na=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},na.apply(this,arguments)};let W2=0;function hc(e){return typeof e=="function"?e:Zt}function Zt(){}function Xd(e,t){if(!e)return;U2(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach(r=>{let{el:i,top:a,left:o}=r;i.scrollTop=a,i.scrollLeft=o})}function pc(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function tu(e,t){let n;function r(){n&&clearTimeout(n)}function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];r(),n=setTimeout(()=>{n=null,e(...o)},t)}return i.cancel=r,i}function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(s=>(s&&s(r,...a),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault))}}function mc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=>{t.forEach(i=>{typeof i=="function"?i(r):i&&(i.current=r)})}}function B2(){return String(W2++)}function Zd(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${n===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function gc(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function V2(e){return typeof e.type=="string"}function j2(e){return e.props}const q2=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ci(e){e===void 0&&(e={});const t={};return q2.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Y2(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=os(t,r)?t[r]:e[r],n),{})}function os(e,t){return e[t]!==void 0}function vc(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function ho(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;const a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);let o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);const s=kr(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function kr(e,t,n,r,i){const a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!r(o).hasAttribute("disabled"))return o;return i?e>0?kr(1,0,n,r,!1):kr(-1,n-1,n,r,!1):-1}function yc(e,t,n,r){return r===void 0&&(r=!0),t.some(i=>i&&(pc(i,e,n)||r&&pc(i,n.document.activeElement,n)))}const Q2=tu(e=>{eh(e).textContent=""},500);function Jd(e,t){const n=eh(t);e&&(n.textContent=e,Q2(t))}function eh(e){e===void 0&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const th=0,nh=1,rh=2,Ei=3,Mi=4,ih=5,ah=6,oh=7,sh=8,uh=9,lh=10,ch=11,fh=12,dh=13,hh=14,ph=15,mh=16;var K2=Object.freeze({__proto__:null,unknown:th,mouseUp:nh,itemMouseEnter:rh,keyDownArrowUp:Ei,keyDownArrowDown:Mi,keyDownEscape:ih,keyDownEnter:ah,keyDownHome:oh,keyDownEnd:sh,clickItem:uh,blurInput:lh,changeInput:ch,keyDownSpaceButton:fh,clickButton:dh,blurButton:hh,controlledPropUpdatedSelectedItem:ph,touchEnd:mh});const G2=(()=>{class e extends J.Component{constructor(n){var r;super(n),r=this,this.id=this.props.id||`downshift-${B2()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(c=>`${this.id}-item-${c}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(c,d)=>{const h=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(p=>p!==h),c()},d);this.timeoutIds.push(h)},this.setItemCount=c=>{this.itemCount=c},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(c,d){c===void 0&&(c=r.props.defaultHighlightedIndex),d===void 0&&(d={}),d=ci(d),r.internalSetState({highlightedIndex:c,...d})},this.clearSelection=c=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},c)},this.selectItem=(c,d,h)=>{d=ci(d),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:c,inputValue:this.props.itemToString(c),...d},h)},this.selectItemAtIndex=(c,d,h)=>{const p=this.items[c];p!=null&&this.selectItem(p,d,h)},this.selectHighlightedItem=(c,d)=>this.selectItemAtIndex(this.getState().highlightedIndex,c,d),this.internalSetState=(c,d)=>{let h,p;const m={},C=typeof c=="function";return!C&&c.hasOwnProperty("inputValue")&&this.props.onInputValueChange(c.inputValue,{...this.getStateAndHelpers(),...c}),this.setState(y=>{y=this.getState(y);let v=C?c(y):c;v=this.props.stateReducer(y,v),h=v.hasOwnProperty("selectedItem");const w={};return h&&v.selectedItem!==y.selectedItem&&(p=v.selectedItem),v.type=v.type||th,Object.keys(v).forEach(D=>{y[D]!==v[D]&&(m[D]=v[D]),D!=="type"&&(v[D],os(this.props,D)||(w[D]=v[D]))}),C&&v.hasOwnProperty("inputValue")&&this.props.onInputValueChange(v.inputValue,{...this.getStateAndHelpers(),...v}),w},()=>{hc(d)(),Object.keys(m).length>1&&this.props.onStateChange(m,this.getStateAndHelpers()),h&&this.props.onSelect(c.selectedItem,this.getStateAndHelpers()),p!==void 0&&this.props.onChange(p,this.getStateAndHelpers()),this.props.onUserAction(m,this.getStateAndHelpers())})},this.rootRef=c=>this._rootNode=c,this.getRootProps=function(c,d){let{refKey:h="ref",ref:p,...m}=c===void 0?{}:c,{suppressRefError:C=!1}=d===void 0?{}:d;r.getRootProps.called=!0,r.getRootProps.refKey=h,r.getRootProps.suppressRefError=C;const{isOpen:y}=r.getState();return{[h]:mc(p,r.rootRef),role:"combobox","aria-expanded":y,"aria-haspopup":"listbox","aria-owns":y?r.menuId:null,"aria-labelledby":r.labelId,...m}},this.keyDownHandlers={ArrowDown(c){if(c.preventDefault(),this.getState().isOpen){const d=c.shiftKey?5:1;this.moveHighlightedIndex(d,{type:Mi})}else this.internalSetState({isOpen:!0,type:Mi},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:h}=this.getState(),p=ho(1,h,d,m=>this.getItemNodeFromIndex(m));this.setHighlightedIndex(p,{type:Mi})}})},ArrowUp(c){if(c.preventDefault(),this.getState().isOpen){const d=c.shiftKey?-5:-1;this.moveHighlightedIndex(d,{type:Ei})}else this.internalSetState({isOpen:!0,type:Ei},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:h}=this.getState(),p=ho(-1,h,d,m=>this.getItemNodeFromIndex(m));this.setHighlightedIndex(p,{type:Ei})}})},Enter(c){if(c.which===229)return;const{isOpen:d,highlightedIndex:h}=this.getState();if(d&&h!=null){c.preventDefault();const p=this.items[h],m=this.getItemNodeFromIndex(h);if(p==null||m&&m.hasAttribute("disabled"))return;this.selectHighlightedItem({type:ah})}},Escape(c){c.preventDefault(),this.reset({type:ih,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(c){c.preventDefault(),this.toggleMenu({type:fh})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(c){const{isOpen:d}=this.getState();if(!d)return;c.preventDefault();const h=this.getItemCount();if(h<=0||!d)return;const p=kr(1,0,h,m=>this.getItemNodeFromIndex(m),!1);this.setHighlightedIndex(p,{type:oh})},End(c){const{isOpen:d}=this.getState();if(!d)return;c.preventDefault();const h=this.getItemCount();if(h<=0||!d)return;const p=kr(-1,h-1,h,m=>this.getItemNodeFromIndex(m),!1);this.setHighlightedIndex(p,{type:sh})}},this.getToggleButtonProps=function(c){let{onClick:d,onPress:h,onKeyDown:p,onKeyUp:m,onBlur:C,...y}=c===void 0?{}:c;const{isOpen:v}=r.getState(),w={onClick:Dt(d,r.buttonHandleClick),onKeyDown:Dt(p,r.buttonHandleKeyDown),onKeyUp:Dt(m,r.buttonHandleKeyUp),onBlur:Dt(C,r.buttonHandleBlur)},D=y.disabled?{}:w;return{type:"button",role:"button","aria-label":v?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...D,...y}},this.buttonHandleKeyUp=c=>{c.preventDefault()},this.buttonHandleKeyDown=c=>{const d=vc(c);this.buttonKeyDownHandlers[d]&&this.buttonKeyDownHandlers[d].call(this,c)},this.buttonHandleClick=c=>{c.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&c.target.focus(),this.internalSetTimeout(()=>this.toggleMenu({type:dh}))},this.buttonHandleBlur=c=>{const d=c.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==d&&this.reset({type:hh})})},this.getLabelProps=c=>({htmlFor:this.inputId,id:this.labelId,...c}),this.getInputProps=function(c){let{onKeyDown:d,onBlur:h,onChange:p,onInput:m,onChangeText:C,...y}=c===void 0?{}:c,v,w={};v="onChange";const{inputValue:D,isOpen:g,highlightedIndex:_}=r.getState();return y.disabled||(w={[v]:Dt(p,m,r.inputHandleChange),onKeyDown:Dt(d,r.inputHandleKeyDown),onBlur:Dt(h,r.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":g&&typeof _=="number"&&_>=0?r.getItemId(_):null,"aria-controls":g?r.menuId:null,"aria-labelledby":r.labelId,autoComplete:"off",value:D,id:r.inputId,...w,...y}},this.inputHandleKeyDown=c=>{const d=vc(c);d&&this.inputKeyDownHandlers[d]&&this.inputKeyDownHandlers[d].call(this,c)},this.inputHandleChange=c=>{this.internalSetState({type:ch,isOpen:!0,inputValue:c.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const c=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!c&&this.reset({type:lh})})},this.menuRef=c=>{this._menuNode=c},this.getMenuProps=function(c,d){let{refKey:h="ref",ref:p,...m}=c===void 0?{}:c,{suppressRefError:C=!1}=d===void 0?{}:d;return r.getMenuProps.called=!0,r.getMenuProps.refKey=h,r.getMenuProps.suppressRefError=C,{[h]:mc(p,r.menuRef),role:"listbox","aria-labelledby":m&&m["aria-label"]?null:r.labelId,id:r.menuId,...m}},this.getItemProps=function(c){let{onMouseMove:d,onMouseDown:h,onClick:p,onPress:m,index:C,item:y=void 0,...v}=c===void 0?{}:c;C===void 0?(r.items.push(y),C=r.items.indexOf(y)):r.items[C]=y;const w="onClick",D=p,g={onMouseMove:Dt(d,()=>{C!==r.getState().highlightedIndex&&(r.setHighlightedIndex(C,{type:rh}),r.avoidScrolling=!0,r.internalSetTimeout(()=>r.avoidScrolling=!1,250))}),onMouseDown:Dt(h,S=>{S.preventDefault()}),[w]:Dt(D,()=>{r.selectItemAtIndex(C,{type:uh})})},_=v.disabled?{onMouseDown:g.onMouseDown}:g;return{id:r.getItemId(C),role:"option","aria-selected":r.getState().highlightedIndex===C,..._,...v}},this.clearItems=()=>{this.items=[]},this.reset=function(c,d){c===void 0&&(c={}),c=ci(c),r.internalSetState(h=>{let{selectedItem:p}=h;return{isOpen:r.props.defaultIsOpen,highlightedIndex:r.props.defaultHighlightedIndex,inputValue:r.props.itemToString(p),...c}},d)},this.toggleMenu=function(c,d){c===void 0&&(c={}),c=ci(c),r.internalSetState(h=>{let{isOpen:p}=h;return{isOpen:!p,...p&&{highlightedIndex:r.props.defaultHighlightedIndex},...c}},()=>{const{isOpen:h,highlightedIndex:p}=r.getState();h&&r.getItemCount()>0&&typeof p=="number"&&r.setHighlightedIndex(p,c),hc(d)()})},this.openMenu=c=>{this.internalSetState({isOpen:!0},c)},this.closeMenu=c=>{this.internalSetState({isOpen:!1},c)},this.updateStatus=tu(()=>{const c=this.getState(),d=this.items[c.highlightedIndex],h=this.getItemCount(),p=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:h,highlightedItem:d,...c});this.previousResultCount=h,Jd(p,this.props.environment.document)},200);const{defaultHighlightedIndex:i,initialHighlightedIndex:a=i,defaultIsOpen:o,initialIsOpen:s=o,initialInputValue:u="",initialSelectedItem:l=null}=this.props,f=this.getState({highlightedIndex:a,isOpen:s,inputValue:u,selectedItem:l});f.selectedItem!=null&&this.props.initialInputValue===void 0&&(f.inputValue=this.props.itemToString(f.selectedItem)),this.state=f}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),Y2(n,this.props)}getItemCount(){let n=this.items.length;return this.itemCount!=null?n=this.itemCount:this.props.itemCount!==void 0&&(n=this.props.itemCount),n}getItemNodeFromIndex(n){return this.props.environment.document.getElementById(this.getItemId(n))}scrollHighlightedItemIntoView(){{const n=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(n,this._menuNode)}}moveHighlightedIndex(n,r){const i=this.getItemCount(),{highlightedIndex:a}=this.getState();if(i>0){const o=ho(n,a,i,s=>this.getItemNodeFromIndex(s));this.setHighlightedIndex(o,r)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:r,selectedItem:i,isOpen:a}=this.getState(),{itemToString:o}=this.props,{id:s}=this,{getRootProps:u,getToggleButtonProps:l,getLabelProps:f,getMenuProps:c,getInputProps:d,getItemProps:h,openMenu:p,closeMenu:m,toggleMenu:C,selectItem:y,selectItemAtIndex:v,selectHighlightedItem:w,setHighlightedIndex:D,clearSelection:g,clearItems:_,reset:S,setItemCount:F,unsetItemCount:P,internalSetState:k}=this;return{getRootProps:u,getToggleButtonProps:l,getLabelProps:f,getMenuProps:c,getInputProps:d,getItemProps:h,reset:S,openMenu:p,closeMenu:m,toggleMenu:C,selectItem:y,selectItemAtIndex:v,selectHighlightedItem:w,setHighlightedIndex:D,clearSelection:g,clearItems:_,setItemCount:F,unsetItemCount:P,setState:k,itemToString:o,id:s,highlightedIndex:n,inputValue:r,isOpen:a,selectedItem:i}}componentDidMount(){{const n=()=>{this.isMouseDown=!0},r=u=>{this.isMouseDown=!1,!yc(u.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:nh},()=>this.props.onOuterClick(this.getStateAndHelpers()))},i=()=>{this.isTouchMove=!1},a=()=>{this.isTouchMove=!0},o=u=>{const l=yc(u.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!l&&this.getState().isOpen&&this.reset({type:mh},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:s}=this.props;s.addEventListener("mousedown",n),s.addEventListener("mouseup",r),s.addEventListener("touchstart",i),s.addEventListener("touchmove",a),s.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),s.removeEventListener("mousedown",n),s.removeEventListener("mouseup",r),s.removeEventListener("touchstart",i),s.removeEventListener("touchmove",a),s.removeEventListener("touchend",o)}}}shouldScroll(n,r){const{highlightedIndex:i}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:a}=r.highlightedIndex===void 0?n:r;return i&&this.getState().isOpen&&!n.isOpen||i!==a}componentDidUpdate(n,r){os(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ph,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(r,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=gc(this.props.children,Zt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const r=gc(n(this.getStateAndHelpers()));if(!r)return null;if(this.getRootProps.called||this.props.suppressRefError)return r;if(V2(r))return J.cloneElement(r,this.getRootProps(j2(r)))}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Zd,itemToString:t=>t==null?"":String(t),onStateChange:Zt,onInputValueChange:Zt,onUserAction:Zt,onChange:Zt,onSelect:Zt,onOuterClick:Zt,selectedItemChanged:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:Xd},e.stateChangeTypes=K2,e})();var X2=G2;function Z2(e,t){return t.changes}function J2(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}tu((e,t)=>{Jd(e(),t)},200);function eT(e){return e?String(e):""}const mr={itemToString:eT,stateReducer:Z2,getA11ySelectionMessage:J2,scrollIntoView:Xd,circularNavigation:!1,environment:typeof window>"u"?{}:window};$.array.isRequired,$.func,$.func,$.func,$.bool,$.number,$.number,$.number,$.bool,$.bool,$.bool,$.any,$.any,$.any,$.string,$.string,$.string,$.func,$.string,$.func,$.func,$.func,$.func,$.func,$.shape({addEventListener:$.func,removeEventListener:$.func,document:$.shape({getElementById:$.func,activeElement:$.any,body:$.any})});function tT(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}na(na({},mr),{getA11yStatusMessage:tT});$.array.isRequired,$.func,$.func,$.func,$.bool,$.number,$.number,$.number,$.bool,$.bool,$.bool,$.any,$.any,$.any,$.string,$.string,$.string,$.string,$.string,$.string,$.func,$.string,$.string,$.func,$.func,$.func,$.func,$.func,$.func,$.shape({addEventListener:$.func,removeEventListener:$.func,document:$.shape({getElementById:$.func,activeElement:$.any,body:$.any})});({...mr});function nT(e){const{removedSelectedItem:t,itemToString:n}=e;return`${n(t)} has been removed.`}$.array,$.array,$.array,$.func,$.func,$.func,$.number,$.number,$.number,$.func,$.func,$.string,$.string,$.shape({addEventListener:$.func,removeEventListener:$.func,document:$.shape({getElementById:$.func,activeElement:$.any,body:$.any})});mr.itemToString,mr.stateReducer,mr.environment;var ss={},nu={},ru={},Ia={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Direction=void 0,function(t){t.Right="to right",t.Left="to left",t.Down="to bottom",t.Up="to top"}(e.Direction||(e.Direction={}))})(Ia);(function(e){var t=nt&&nt.__spreadArray||function(b,M,x){if(x||arguments.length===2)for(var I=0,N=M.length,A;I<N;I++)(A||!(I in M))&&(A||(A=Array.prototype.slice.call(M,0,I)),A[I]=M[I]);return b.concat(A||Array.prototype.slice.call(M))};Object.defineProperty(e,"__esModule",{value:!0}),e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=J,r=Ia,i=function(b){var M=b.toString().split(".")[1];return M?M.length:0};e.getStepDecimals=i;function a(b){return b.touches&&b.touches.length||b.changedTouches&&b.changedTouches.length}e.isTouchEvent=a;function o(b,M,x){var I=(M-b)/x,N=8,A=Number(I.toFixed(N));return parseInt(A.toString(),10)===A}e.isStepDivisible=o;function s(b,M,x,I,N,A,H){var U=1e11;if(b=Math.round(b*U)/U,!A){var K=H[M-1],X=H[M+1];if(K&&K>b)return K;if(X&&X<b)return X}if(b>I)return I;if(b<x)return x;var ne=Math.floor(b*U-x*U)%Math.floor(N*U),j=Math.floor(b*U-Math.abs(ne)),oe=ne===0?b:j/U,Q=Math.abs(ne/U)<N/2?oe:oe+N,se=(0,e.getStepDecimals)(N);return parseFloat(Q.toFixed(se))}e.normalizeValue=s;function u(b,M,x){return(b-M)/(x-M)}e.relativeValue=u;function l(b){return b===r.Direction.Up||b===r.Direction.Down}e.isVertical=l;function f(b,M,x){if(M>=x)throw new RangeError("min (".concat(M,") is equal/bigger than max (").concat(x,")"));if(b<M)throw new RangeError("value (".concat(b,") is smaller than min (").concat(M,")"));if(b>x)throw new RangeError("value (".concat(b,") is bigger than max (").concat(x,")"))}e.checkBoundaries=f;function c(b,M,x){return b<M?M:b>x?x:b}e.checkValuesAgainstBoundaries=c;function d(b){if(!(b.length<2)&&!b.slice(1).every(function(M,x){return b[x]<=M}))throw new RangeError("values={[".concat(b,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=d;function h(b){var M=window.getComputedStyle(b);return{top:parseInt(M["margin-top"],10),bottom:parseInt(M["margin-bottom"],10),left:parseInt(M["margin-left"],10),right:parseInt(M["margin-right"],10)}}e.getMargin=h;function p(b){var M=window.getComputedStyle(b);return{top:parseInt(M["padding-top"],10)+parseInt(M["border-top-width"],10),bottom:parseInt(M["padding-bottom"],10)+parseInt(M["border-bottom-width"],10),left:parseInt(M["padding-left"],10)+parseInt(M["border-left-width"],10),right:parseInt(M["padding-right"],10)+parseInt(M["border-right-width"],10)}}e.getPaddingAndBorder=p;function m(b,M,x){var I=x?-1:1;b.forEach(function(N,A){return y(N,I*M[A].x,M[A].y)})}e.translateThumbs=m;function C(b,M,x,I){for(var N=0,A=k(b[0],M,x,I),H=1;H<b.length;H++){var U=k(b[H],M,x,I);U<A&&(A=U,N=H)}return N}e.getClosestThumbIndex=C;function y(b,M,x){b.style.transform="translate(".concat(M,"px, ").concat(x,"px)")}e.translate=y;var v=function(b){var M=[],x=null,I=function(){for(var N=[],A=0;A<arguments.length;A++)N[A]=arguments[A];M=N,!x&&(x=requestAnimationFrame(function(){x=null,b.apply(void 0,M)}))};return I};e.schd=v;function w(b,M,x){var I=b.slice(0);return I[M]=x,I}e.replaceAt=w;function D(b){var M=b.values,x=b.colors,I=b.min,N=b.max,A=b.direction,H=A===void 0?r.Direction.Right:A,U=b.rtl,K=U===void 0?!1:U;K&&H===r.Direction.Right?H=r.Direction.Left:K&&r.Direction.Left&&(H=r.Direction.Right);var X=M.slice(0).sort(function(j,oe){return j-oe}).map(function(j){return(j-I)/(N-I)*100}),ne=X.reduce(function(j,oe,Q){return"".concat(j,", ").concat(x[Q]," ").concat(oe,"%, ").concat(x[Q+1]," ").concat(oe,"%")},"");return"linear-gradient(".concat(H,", ").concat(x[0]," 0%").concat(ne,", ").concat(x[x.length-1]," 100%)")}e.getTrackBackground=D;function g(){}e.voidFn=g;function _(b){throw new Error("Didn't expect to get here")}e.assertUnreachable=_;var S=function(b,M,x,I,N){N===void 0&&(N=function(H){return H});var A=Math.ceil(t([b],Array.from(b.children),!0).reduce(function(H,U){var K=Math.ceil(U.getBoundingClientRect().width);if(U.innerText&&U.innerText.includes(x)&&U.childElementCount===0){var X=U.cloneNode(!0);X.innerHTML=N(M.toFixed(I)),X.style.visibility="hidden",document.body.appendChild(X),K=Math.ceil(X.getBoundingClientRect().width),document.body.removeChild(X)}return K>H?K:H},b.getBoundingClientRect().width));return A},F=function(b,M,x,I,N,A,H){H===void 0&&(H=function(X){return X});var U=[],K=function(X){var ne=S(x[X],I[X],N,A,H),j=M[X].x;M.forEach(function(oe,Q){var se=oe.x,ee=S(x[Q],I[Q],N,A,H);X!==Q&&(j>=se&&j<=se+ee||j+ne>=se&&j+ne<=se+ee)&&(U.includes(Q)||(U.push(X),U.push(Q),U=t(t([],U,!0),[X,Q],!1),K(Q)))})};return K(b),Array.from(new Set(U.sort()))},P=function(b,M,x,I,N,A){I===void 0&&(I=.1),N===void 0&&(N=" - "),A===void 0&&(A=function(Q){return Q});var H=(0,e.getStepDecimals)(I),U=(0,n.useState)({}),K=U[0],X=U[1],ne=(0,n.useState)(A(M[x].toFixed(H))),j=ne[0],oe=ne[1];return(0,n.useEffect)(function(){if(b){var Q=b.getThumbs();if(Q.length<1)return;var se={},ee=b.getOffsets(),fe=F(x,ee,Q,M,N,H,A),re=A(M[x].toFixed(H));if(fe.length){var O=fe.reduce(function(q,Ce,Me,Ne){return q.length?t(t([],q,!0),[ee[Ne[Me]].x],!1):[ee[Ne[Me]].x]},[]);if(Math.min.apply(Math,O)===ee[x].x){var Y=[];fe.forEach(function(q){Y.push(M[q].toFixed(H))}),re=Array.from(new Set(Y.sort(function(q,Ce){return parseFloat(q)-parseFloat(Ce)}))).map(A).join(N);var G=Math.min.apply(Math,O),R=Math.max.apply(Math,O),ae=Q[fe[O.indexOf(R)]].getBoundingClientRect().width;se.left="".concat(Math.abs(G-(R+ae))/2,"px"),se.transform="translate(-50%, 0)"}else se.visibility="hidden"}oe(re),X(se)}},[b,M]),[j,K]};e.useThumbOverlap=P;function k(b,M,x,I){var N=b.getBoundingClientRect(),A=N.left,H=N.top,U=N.width,K=N.height;return l(I)?Math.abs(x-(H+K/2)):Math.abs(M-(A+U/2))}})(ru);var rT=nt&&nt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),iT=nt&&nt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),aT=nt&&nt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oT=nt&&nt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&iT(t,e,n);return aT(t,e),t},wc=nt&&nt.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(nu,"__esModule",{value:!0});var fi=oT(J),de=ru,Pe=Ia,sT=["ArrowRight","ArrowUp","k","PageUp"],uT=["ArrowLeft","ArrowDown","j","PageDown"],lT=function(e){rT(t,e);function t(n){var r=e.call(this,n)||this;if(r.trackRef=fi.createRef(),r.thumbRefs=[],r.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(r.props.values.length).fill(0).map(function(i,a){return a}),isChanged:!1,markOffsets:[]},r.getOffsets=function(){var i=r.props,a=i.direction,o=i.values,s=i.min,u=i.max,l=r.trackRef.current,f=l.getBoundingClientRect(),c=(0,de.getPaddingAndBorder)(l);return r.getThumbs().map(function(d,h){var p={x:0,y:0},m=d.getBoundingClientRect(),C=(0,de.getMargin)(d);switch(a){case Pe.Direction.Right:return p.x=(C.left+c.left)*-1,p.y=((m.height-f.height)/2+c.top)*-1,p.x+=f.width*(0,de.relativeValue)(o[h],s,u)-m.width/2,p;case Pe.Direction.Left:return p.x=(C.right+c.right)*-1,p.y=((m.height-f.height)/2+c.top)*-1,p.x+=f.width-f.width*(0,de.relativeValue)(o[h],s,u)-m.width/2,p;case Pe.Direction.Up:return p.x=((m.width-f.width)/2+C.left+c.left)*-1,p.y=-c.left,p.y+=f.height-f.height*(0,de.relativeValue)(o[h],s,u)-m.height/2,p;case Pe.Direction.Down:return p.x=((m.width-f.width)/2+C.left+c.left)*-1,p.y=-c.left,p.y+=f.height*(0,de.relativeValue)(o[h],s,u)-m.height/2,p;default:return(0,de.assertUnreachable)(a)}})},r.getThumbs=function(){return r.trackRef&&r.trackRef.current?Array.from(r.trackRef.current.children).filter(function(i){return i.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},r.getTargetIndex=function(i){return r.getThumbs().findIndex(function(a){return a===i.target||a.contains(i.target)})},r.addTouchEvents=function(i){document.addEventListener("touchmove",r.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",r.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",r.schdOnEnd,{passive:!1})},r.addMouseEvents=function(i){document.addEventListener("mousemove",r.schdOnMouseMove),document.addEventListener("mouseup",r.schdOnEnd)},r.onMouseDownTrack=function(i){var a;if(i.button===0)if(i.persist(),i.preventDefault(),r.addMouseEvents(i.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some(function(s){var u;return(u=s.current)===null||u===void 0?void 0:u.contains(i.target)}))return;r.setState({draggedTrackPos:[i.clientX,i.clientY]},function(){return r.onMove(i.clientX,i.clientY)})}else{var o=(0,de.getClosestThumbIndex)(r.thumbRefs.map(function(s){return s.current}),i.clientX,i.clientY,r.props.direction);(a=r.thumbRefs[o].current)===null||a===void 0||a.focus(),r.setState({draggedThumbIndex:o},function(){return r.onMove(i.clientX,i.clientY)})}},r.onResize=function(){(0,de.translateThumbs)(r.getThumbs(),r.getOffsets(),r.props.rtl),r.calculateMarkOffsets()},r.onTouchStartTrack=function(i){var a;if(i.persist(),r.addTouchEvents(i.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some(function(s){var u;return(u=s.current)===null||u===void 0?void 0:u.contains(i.target)}))return;r.setState({draggedTrackPos:[i.touches[0].clientX,i.touches[0].clientY]},function(){return r.onMove(i.touches[0].clientX,i.touches[0].clientY)})}else{var o=(0,de.getClosestThumbIndex)(r.thumbRefs.map(function(s){return s.current}),i.touches[0].clientX,i.touches[0].clientY,r.props.direction);(a=r.thumbRefs[o].current)===null||a===void 0||a.focus(),r.setState({draggedThumbIndex:o},function(){return r.onMove(i.touches[0].clientX,i.touches[0].clientY)})}},r.onMouseOrTouchStart=function(i){if(!r.props.disabled){var a=(0,de.isTouchEvent)(i);if(!(!a&&i.button!==0)){var o=r.getTargetIndex(i);o!==-1&&(a?r.addTouchEvents(i):r.addMouseEvents(i),r.setState({draggedThumbIndex:o,thumbZIndexes:r.state.thumbZIndexes.map(function(s,u){return u===o?Math.max.apply(Math,r.state.thumbZIndexes):s<=r.state.thumbZIndexes[o]?s:s-1})}))}}},r.onMouseMove=function(i){i.preventDefault(),r.onMove(i.clientX,i.clientY)},r.onTouchMove=function(i){i.preventDefault(),r.onMove(i.touches[0].clientX,i.touches[0].clientY)},r.onKeyDown=function(i){var a=r.props,o=a.values,s=a.onChange,u=a.step,l=a.rtl,f=a.direction,c=r.state.isChanged,d=r.getTargetIndex(i.nativeEvent),h=l||f===Pe.Direction.Left||f===Pe.Direction.Down?-1:1;d!==-1&&(sT.includes(i.key)?(i.preventDefault(),r.setState({draggedThumbIndex:d,isChanged:!0}),s((0,de.replaceAt)(o,d,r.normalizeValue(o[d]+h*(i.key==="PageUp"?u*10:u),d)))):uT.includes(i.key)?(i.preventDefault(),r.setState({draggedThumbIndex:d,isChanged:!0}),s((0,de.replaceAt)(o,d,r.normalizeValue(o[d]-h*(i.key==="PageDown"?u*10:u),d)))):i.key==="Tab"?r.setState({draggedThumbIndex:-1},function(){c&&r.fireOnFinalChange()}):c&&r.fireOnFinalChange())},r.onKeyUp=function(i){var a=r.state.isChanged;r.setState({draggedThumbIndex:-1},function(){a&&r.fireOnFinalChange()})},r.onMove=function(i,a){var o=r.state,s=o.draggedThumbIndex,u=o.draggedTrackPos,l=r.props,f=l.direction,c=l.min,d=l.max,h=l.onChange,p=l.values,m=l.step,C=l.rtl;if(s===-1&&u[0]===-1&&u[1]===-1)return null;var y=r.trackRef.current;if(!y)return null;var v=y.getBoundingClientRect(),w=(0,de.isVertical)(f)?v.height:v.width;if(u[0]!==-1&&u[1]!==-1){var D=i-u[0],g=a-u[1],_=0;switch(f){case Pe.Direction.Right:case Pe.Direction.Left:_=D/w*(d-c);break;case Pe.Direction.Down:case Pe.Direction.Up:_=g/w*(d-c);break;default:(0,de.assertUnreachable)(f)}if(C&&(_*=-1),Math.abs(_)>=m/2){for(var S=0;S<r.thumbRefs.length;S++){if(p[S]===d&&Math.sign(_)===1||p[S]===c&&Math.sign(_)===-1)return;var F=p[S]+_;F>d?_=d-p[S]:F<c&&(_=c-p[S])}for(var P=p.slice(0),S=0;S<r.thumbRefs.length;S++)P=(0,de.replaceAt)(P,S,r.normalizeValue(p[S]+_,S));r.setState({draggedTrackPos:[i,a]}),h(P)}}else{var k=0;switch(f){case Pe.Direction.Right:k=(i-v.left)/w*(d-c)+c;break;case Pe.Direction.Left:k=(w-(i-v.left))/w*(d-c)+c;break;case Pe.Direction.Down:k=(a-v.top)/w*(d-c)+c;break;case Pe.Direction.Up:k=(w-(a-v.top))/w*(d-c)+c;break;default:(0,de.assertUnreachable)(f)}C&&(k=d+c-k),Math.abs(p[s]-k)>=m/2&&h((0,de.replaceAt)(p,s,r.normalizeValue(k,s)))}},r.normalizeValue=function(i,a){var o=r.props,s=o.min,u=o.max,l=o.step,f=o.allowOverlap,c=o.values;return(0,de.normalizeValue)(i,a,s,u,l,f,c)},r.onEnd=function(i){if(i.preventDefault(),document.removeEventListener("mousemove",r.schdOnMouseMove),document.removeEventListener("touchmove",r.schdOnTouchMove),document.removeEventListener("mouseup",r.schdOnEnd),document.removeEventListener("touchend",r.schdOnEnd),document.removeEventListener("touchcancel",r.schdOnEnd),r.state.draggedThumbIndex===-1&&r.state.draggedTrackPos[0]===-1&&r.state.draggedTrackPos[1]===-1)return null;r.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){r.fireOnFinalChange()})},r.fireOnFinalChange=function(){r.setState({isChanged:!1});var i=r.props,a=i.onFinalChange,o=i.values;a&&a(o)},r.updateMarkRefs=function(i){if(!i.renderMark){r.numOfMarks=void 0,r.markRefs=void 0;return}r.numOfMarks=(i.max-i.min)/r.props.step,r.markRefs=[];for(var a=0;a<r.numOfMarks+1;a++)r.markRefs[a]=fi.createRef()},r.calculateMarkOffsets=function(){if(!(!r.props.renderMark||!r.trackRef||!r.numOfMarks||!r.markRefs||r.trackRef.current===null)){for(var i=window.getComputedStyle(r.trackRef.current),a=parseInt(i.width,10),o=parseInt(i.height,10),s=parseInt(i.paddingLeft,10),u=parseInt(i.paddingTop,10),l=[],f=0;f<r.numOfMarks+1;f++){var c=9999,d=9999;if(r.markRefs[f].current){var h=r.markRefs[f].current.getBoundingClientRect();c=h.height,d=h.width}r.props.direction===Pe.Direction.Left||r.props.direction===Pe.Direction.Right?l.push([Math.round(a/r.numOfMarks*f+s-d/2),-Math.round((c-o)/2)]):l.push([Math.round(o/r.numOfMarks*f+u-c/2),-Math.round((d-a)/2)])}r.setState({markOffsets:l})}},n.step===0)throw new Error('"step" property should be a positive number');return r.schdOnMouseMove=(0,de.schd)(r.onMouseMove),r.schdOnTouchMove=(0,de.schd)(r.onTouchMove),r.schdOnEnd=(0,de.schd)(r.onEnd),r.thumbRefs=n.values.map(function(){return fi.createRef()}),r.updateMarkRefs(n),r}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.values,a=r.min,o=r.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",n.onResize)},unobserve:function(){return window.removeEventListener("resize",n.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,de.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(s){return(0,de.checkBoundaries)(s,n.props.min,n.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,de.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),i.forEach(function(s){(0,de.isStepDivisible)(a,s,o)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},t.prototype.componentDidUpdate=function(n,r){var i=this.props,a=i.max,o=i.min,s=i.step,u=i.values,l=i.rtl;(n.max!==a||n.min!==o||n.step!==s)&&this.updateMarkRefs(this.props),(0,de.translateThumbs)(this.getThumbs(),this.getOffsets(),l),(n.max!==a||n.min!==o||n.step!==s||r.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),u.forEach(function(f){(0,de.isStepDivisible)(o,f,s)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},t.prototype.componentWillUnmount=function(){var n={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,n),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},t.prototype.render=function(){var n=this,r=this.props,i=r.renderTrack,a=r.renderThumb,o=r.renderMark,s=o===void 0?function(){return null}:o,u=r.values,l=r.min,f=r.max,c=r.allowOverlap,d=r.disabled,h=this.state,p=h.draggedThumbIndex,m=h.thumbZIndexes,C=h.markOffsets;return i({props:{style:{transform:"scale(1)",cursor:p>-1?"grabbing":this.props.draggableTrack?(0,de.isVertical)(this.props.direction)?"ns-resize":"ew-resize":u.length===1&&!d?"pointer":"inherit"},onMouseDown:d?de.voidFn:this.onMouseDownTrack,onTouchStart:d?de.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:d,children:wc(wc([],C.map(function(y,v,w){return s({props:{style:n.props.direction===Pe.Direction.Left||n.props.direction===Pe.Direction.Right?{position:"absolute",left:"".concat(y[0],"px"),marginTop:"".concat(y[1],"px")}:{position:"absolute",top:"".concat(y[0],"px"),marginLeft:"".concat(y[1],"px")},key:"mark".concat(v),ref:n.markRefs[v]},index:v})}),!0),u.map(function(y,v){var w=n.state.draggedThumbIndex===v;return a({index:v,value:y,isDragged:w,props:{style:{position:"absolute",zIndex:m[v],cursor:d?"inherit":w?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:v,tabIndex:d?void 0:0,"aria-valuemax":c?f:u[v+1]||f,"aria-valuemin":c?l:u[v-1]||l,"aria-valuenow":y,draggable:!1,ref:n.thumbRefs[v],role:"slider",onKeyDown:d?de.voidFn:n.onKeyDown,onKeyUp:d?de.voidFn:n.onKeyUp}})}),!0)})},t.defaultProps={step:1,direction:Pe.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},t}(fi.Component);nu.default=lT;(function(e){var t=nt&&nt.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=t(nu);e.Range=n.default;var r=ru;Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return r.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return r.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return r.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return r.checkValuesAgainstBoundaries}});var i=Ia;Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return i.Direction}})})(ss);var cT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},gh={};let ht;typeof window<"u"?ht=window:typeof self<"u"?ht=self:ht=cT;let us=null,ls=null;const bc=20,po=ht.clearTimeout,_c=ht.setTimeout,mo=ht.cancelAnimationFrame||ht.mozCancelAnimationFrame||ht.webkitCancelAnimationFrame,xc=ht.requestAnimationFrame||ht.mozRequestAnimationFrame||ht.webkitRequestAnimationFrame;mo==null||xc==null?(us=po,ls=function(t){return _c(t,bc)}):(us=function([t,n]){mo(t),po(n)},ls=function(t){const n=xc(function(){po(r),t()}),r=_c(function(){mo(n),t()},bc);return[n,r]});function fT(e){let t,n,r,i,a,o,s;const u=typeof document<"u"&&document.attachEvent;if(!u){o=function(y){const v=y.__resizeTriggers__,w=v.firstElementChild,D=v.lastElementChild,g=w.firstElementChild;D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight,g.style.width=w.offsetWidth+1+"px",g.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},a=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},s=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const v=this;o(this),this.__resizeRAF__&&us(this.__resizeRAF__),this.__resizeRAF__=ls(function(){a(v)&&(v.__resizeLast__.width=v.offsetWidth,v.__resizeLast__.height=v.offsetHeight,v.__resizeListeners__.forEach(function(g){g.call(v,y)}))})};let d=!1,h="";r="animationstart";const p="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),C="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(d=!0),d===!1){for(let v=0;v<p.length;v++)if(y.style[p[v]+"AnimationName"]!==void 0){C=p[v],h="-"+C.toLowerCase()+"-",r=m[v],d=!0;break}}}n="resizeanim",t="@"+h+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=h+"animation: 1ms "+n+"; "}const l=function(d){if(!d.getElementById("detectElementResize")){const h=(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%; }',p=d.head||d.getElementsByTagName("head")[0],m=d.createElement("style");m.id="detectElementResize",m.type="text/css",e!=null&&m.setAttribute("nonce",e),m.styleSheet?m.styleSheet.cssText=h:m.appendChild(d.createTextNode(h)),p.appendChild(m)}};return{addResizeListener:function(d,h){if(u)d.attachEvent("onresize",h);else{if(!d.__resizeTriggers__){const p=d.ownerDocument,m=ht.getComputedStyle(d);m&&m.position==="static"&&(d.style.position="relative"),l(p),d.__resizeLast__={},d.__resizeListeners__=[],(d.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const C=p.createElement("div");C.className="expand-trigger",C.appendChild(p.createElement("div"));const y=p.createElement("div");y.className="contract-trigger",d.__resizeTriggers__.appendChild(C),d.__resizeTriggers__.appendChild(y),d.appendChild(d.__resizeTriggers__),o(d),d.addEventListener("scroll",s,!0),r&&(d.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&o(d)},d.__resizeTriggers__.addEventListener(r,d.__resizeTriggers__.__animationListener__))}d.__resizeListeners__.push(h)}},removeResizeListener:function(d,h){if(u)d.detachEvent("onresize",h);else if(d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(h),1),!d.__resizeListeners__.length){d.removeEventListener("scroll",s,!0),d.__resizeTriggers__.__animationListener__&&(d.__resizeTriggers__.removeEventListener(r,d.__resizeTriggers__.__animationListener__),d.__resizeTriggers__.__animationListener__=null);try{d.__resizeTriggers__=!d.removeChild(d.__resizeTriggers__)}catch{}}}}}gh={createDetectElementResize:fT};function Jt(e,t,n){return t=dT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(e){var t=hT(e,"string");return typeof t=="symbol"?t:String(t)}function hT(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class vh extends J.Component{constructor(...t){super(...t),Jt(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),Jt(this,"_autoSizer",null),Jt(this,"_detectElementResize",null),Jt(this,"_parentNode",null),Jt(this,"_resizeObserver",null),Jt(this,"_onResize",()=>{const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var a,o,s,u;const l=window.getComputedStyle(this._parentNode)||{},f=parseFloat((a=l.paddingLeft)!==null&&a!==void 0?a:"0"),c=parseFloat((o=l.paddingRight)!==null&&o!==void 0?o:"0"),d=parseFloat((s=l.paddingTop)!==null&&s!==void 0?s:"0"),h=parseFloat((u=l.paddingBottom)!==null&&u!==void 0?u:"0"),p=this._parentNode.getBoundingClientRect(),m=p.height-d-h,C=p.width-f-c,y=this._parentNode.offsetHeight-d-h,v=this._parentNode.offsetWidth-f-c;(!n&&(this.state.height!==y||this.state.scaledHeight!==m)||!r&&(this.state.width!==v||this.state.scaledWidth!==C))&&(this.setState({height:y,width:v,scaledHeight:m,scaledWidth:C}),typeof i=="function"&&i({height:y,scaledHeight:m,scaledWidth:C,width:v}))}}),Jt(this,"_setRef",n=>{this._autoSizer=n})}componentDidMount(){const{nonce:t}=this.props;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._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,gh.createDetectElementResize)(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i,disableWidth:a,nonce:o,onResize:s,style:u,tagName:l="div",...f}=this.props,{height:c,scaledHeight:d,scaledWidth:h,width:p}=this.state,m={overflow:"visible"},C={};let y=!1;return i||(c===0&&(y=!0),m.height=0,C.height=c,C.scaledHeight=d),a||(p===0&&(y=!0),m.width=0,C.width=p,C.scaledWidth=h),J.createElement(l,{ref:this._setRef,style:{...m,...u},...f},!y&&t(C))}}Jt(vh,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var pT=vh,Cc=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function mT(e,t){return!!(e===t||Cc(e)&&Cc(t))}function gT(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!mT(e[n],t[n]))return!1;return!0}function go(e,t){t===void 0&&(t=gT);var n,r=[],i,a=!1;function o(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return a&&n===this&&t(s,r)||(i=e.apply(this,s),a=!0,n=this,r=s),i}return o}function Tc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vT=typeof performance=="object"&&typeof performance.now=="function",Sc=vT?function(){return performance.now()}:function(){return Date.now()};function Dc(e){cancelAnimationFrame(e.id)}function yT(e,t){var n=Sc();function r(){Sc()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var vo=-1;function wT(e){if(e===void 0&&(e=!1),vo===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),vo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vo}var Tn=null;function Ec(e){if(e===void 0&&(e=!1),Tn===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Tn="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Tn="negative":Tn="positive-ascending"),document.body.removeChild(t),Tn}return Tn}var bT=150,_T=function(t){var n=t.columnIndex;t.data;var r=t.rowIndex;return r+":"+n};function xT(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,o=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,l=e.getOffsetForRowAndAlignment,f=e.getRowHeight,c=e.getRowOffset,d=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,p=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,C=e.validateProps;return t=function(y){Un(v,y);function v(D){var g;return g=y.call(this,D)||this,g._instanceProps=p(g.props,V(g)),g._resetIsScrollingTimeoutId=null,g._outerRef=void 0,g.state={instance:V(g),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof g.props.initialScrollLeft=="number"?g.props.initialScrollLeft:0,scrollTop:typeof g.props.initialScrollTop=="number"?g.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},g._callOnItemsRendered=void 0,g._callOnItemsRendered=go(function(_,S,F,P,k,b,M,x){return g.props.onItemsRendered({overscanColumnStartIndex:_,overscanColumnStopIndex:S,overscanRowStartIndex:F,overscanRowStopIndex:P,visibleColumnStartIndex:k,visibleColumnStopIndex:b,visibleRowStartIndex:M,visibleRowStopIndex:x})}),g._callOnScroll=void 0,g._callOnScroll=go(function(_,S,F,P,k){return g.props.onScroll({horizontalScrollDirection:F,scrollLeft:_,scrollTop:S,verticalScrollDirection:P,scrollUpdateWasRequested:k})}),g._getItemStyle=void 0,g._getItemStyle=function(_,S){var F=g.props,P=F.columnWidth,k=F.direction,b=F.rowHeight,M=g._getItemStyleCache(m&&P,m&&k,m&&b),x=_+":"+S,I;if(M.hasOwnProperty(x))I=M[x];else{var N=n(g.props,S,g._instanceProps),A=k==="rtl";M[x]=I={position:"absolute",left:A?void 0:N,right:A?N:void 0,top:c(g.props,_,g._instanceProps),height:f(g.props,_,g._instanceProps),width:a(g.props,S,g._instanceProps)}}return I},g._getItemStyleCache=void 0,g._getItemStyleCache=go(function(_,S,F){return{}}),g._onScroll=function(_){var S=_.currentTarget,F=S.clientHeight,P=S.clientWidth,k=S.scrollLeft,b=S.scrollTop,M=S.scrollHeight,x=S.scrollWidth;g.setState(function(I){if(I.scrollLeft===k&&I.scrollTop===b)return null;var N=g.props.direction,A=k;if(N==="rtl")switch(Ec()){case"negative":A=-k;break;case"positive-descending":A=x-P-k;break}A=Math.max(0,Math.min(A,x-P));var H=Math.max(0,Math.min(b,M-F));return{isScrolling:!0,horizontalScrollDirection:I.scrollLeft<k?"forward":"backward",scrollLeft:A,scrollTop:H,verticalScrollDirection:I.scrollTop<b?"forward":"backward",scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(_){var S=g.props.outerRef;g._outerRef=_,typeof S=="function"?S(_):S!=null&&typeof S=="object"&&S.hasOwnProperty("current")&&(S.current=_)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Dc(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=yT(g._resetIsScrolling,bT)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1)})},g}v.getDerivedStateFromProps=function(g,_){return CT(g,_),C(g),null};var w=v.prototype;return w.scrollTo=function(g){var _=g.scrollLeft,S=g.scrollTop;_!==void 0&&(_=Math.max(0,_)),S!==void 0&&(S=Math.max(0,S)),this.setState(function(F){return _===void 0&&(_=F.scrollLeft),S===void 0&&(S=F.scrollTop),F.scrollLeft===_&&F.scrollTop===S?null:{horizontalScrollDirection:F.scrollLeft<_?"forward":"backward",scrollLeft:_,scrollTop:S,scrollUpdateWasRequested:!0,verticalScrollDirection:F.scrollTop<S?"forward":"backward"}},this._resetIsScrollingDebounced)},w.scrollToItem=function(g){var _=g.align,S=_===void 0?"auto":_,F=g.columnIndex,P=g.rowIndex,k=this.props,b=k.columnCount,M=k.height,x=k.rowCount,I=k.width,N=this.state,A=N.scrollLeft,H=N.scrollTop,U=wT();F!==void 0&&(F=Math.max(0,Math.min(F,b-1))),P!==void 0&&(P=Math.max(0,Math.min(P,x-1)));var K=o(this.props,this._instanceProps),X=s(this.props,this._instanceProps),ne=X>I?U:0,j=K>M?U:0;this.scrollTo({scrollLeft:F!==void 0?u(this.props,F,S,A,this._instanceProps,j):A,scrollTop:P!==void 0?l(this.props,P,S,H,this._instanceProps,ne):H})},w.componentDidMount=function(){var g=this.props,_=g.initialScrollLeft,S=g.initialScrollTop;if(this._outerRef!=null){var F=this._outerRef;typeof _=="number"&&(F.scrollLeft=_),typeof S=="number"&&(F.scrollTop=S)}this._callPropsCallbacks()},w.componentDidUpdate=function(){var g=this.props.direction,_=this.state,S=_.scrollLeft,F=_.scrollTop,P=_.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var k=this._outerRef;if(g==="rtl")switch(Ec()){case"negative":k.scrollLeft=-S;break;case"positive-ascending":k.scrollLeft=S;break;default:var b=k.clientWidth,M=k.scrollWidth;k.scrollLeft=M-b-S;break}else k.scrollLeft=Math.max(0,S);k.scrollTop=Math.max(0,F)}this._callPropsCallbacks()},w.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Dc(this._resetIsScrollingTimeoutId)},w.render=function(){var g=this.props,_=g.children,S=g.className,F=g.columnCount,P=g.direction,k=g.height,b=g.innerRef,M=g.innerElementType,x=g.innerTagName,I=g.itemData,N=g.itemKey,A=N===void 0?_T:N,H=g.outerElementType,U=g.outerTagName,K=g.rowCount,X=g.style,ne=g.useIsScrolling,j=g.width,oe=this.state.isScrolling,Q=this._getHorizontalRangeToRender(),se=Q[0],ee=Q[1],fe=this._getVerticalRangeToRender(),re=fe[0],O=fe[1],Y=[];if(F>0&&K)for(var G=re;G<=O;G++)for(var R=se;R<=ee;R++)Y.push(J.createElement(_,{columnIndex:R,data:I,isScrolling:ne?oe:void 0,key:A({columnIndex:R,data:I,rowIndex:G}),rowIndex:G,style:this._getItemStyle(G,R)}));var ae=o(this.props,this._instanceProps),q=s(this.props,this._instanceProps);return J.createElement(H||U||"div",{className:S,onScroll:this._onScroll,ref:this._outerRefSetter,style:me({position:"relative",height:k,width:j,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},X)},J.createElement(M||x||"div",{children:Y,ref:b,style:{height:ae,pointerEvents:oe?"none":void 0,width:q}}))},w._callPropsCallbacks=function(){var g=this.props,_=g.columnCount,S=g.onItemsRendered,F=g.onScroll,P=g.rowCount;if(typeof S=="function"&&_>0&&P>0){var k=this._getHorizontalRangeToRender(),b=k[0],M=k[1],x=k[2],I=k[3],N=this._getVerticalRangeToRender(),A=N[0],H=N[1],U=N[2],K=N[3];this._callOnItemsRendered(b,M,A,H,x,I,U,K)}if(typeof F=="function"){var X=this.state,ne=X.horizontalScrollDirection,j=X.scrollLeft,oe=X.scrollTop,Q=X.scrollUpdateWasRequested,se=X.verticalScrollDirection;this._callOnScroll(j,oe,ne,se,Q)}},w._getHorizontalRangeToRender=function(){var g=this.props,_=g.columnCount,S=g.overscanColumnCount,F=g.overscanColumnsCount,P=g.overscanCount,k=g.rowCount,b=this.state,M=b.horizontalScrollDirection,x=b.isScrolling,I=b.scrollLeft,N=S||F||P||1;if(_===0||k===0)return[0,0,0,0];var A=r(this.props,I,this._instanceProps),H=i(this.props,A,I,this._instanceProps),U=!x||M==="backward"?Math.max(1,N):1,K=!x||M==="forward"?Math.max(1,N):1;return[Math.max(0,A-U),Math.max(0,Math.min(_-1,H+K)),A,H]},w._getVerticalRangeToRender=function(){var g=this.props,_=g.columnCount,S=g.overscanCount,F=g.overscanRowCount,P=g.overscanRowsCount,k=g.rowCount,b=this.state,M=b.isScrolling,x=b.verticalScrollDirection,I=b.scrollTop,N=F||P||S||1;if(_===0||k===0)return[0,0,0,0];var A=d(this.props,I,this._instanceProps),H=h(this.props,A,I,this._instanceProps),U=!M||x==="backward"?Math.max(1,N):1,K=!M||x==="forward"?Math.max(1,N):1;return[Math.max(0,A-U),Math.max(0,Math.min(k-1,H+K)),A,H]},v}(J.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var CT=function(t,n){t.children,t.direction,t.height,t.innerTagName,t.outerTagName,t.overscanColumnsCount,t.overscanCount,t.overscanRowsCount,t.width,n.instance},Mc=50,yh=function(t,n){var r=t.rowCount,i=n.rowMetadataMap,a=n.estimatedRowHeight,o=n.lastMeasuredRowIndex,s=0;if(o>=r&&(o=r-1),o>=0){var u=i[o];s=u.offset+u.size}var l=r-o-1,f=l*a;return s+f},wh=function(t,n){var r=t.columnCount,i=n.columnMetadataMap,a=n.estimatedColumnWidth,o=n.lastMeasuredColumnIndex,s=0;if(o>=r&&(o=r-1),o>=0){var u=i[o];s=u.offset+u.size}var l=r-o-1,f=l*a;return s+f},qt=function(t,n,r,i){var a,o,s;if(t==="column"?(a=i.columnMetadataMap,o=n.columnWidth,s=i.lastMeasuredColumnIndex):(a=i.rowMetadataMap,o=n.rowHeight,s=i.lastMeasuredRowIndex),r>s){var u=0;if(s>=0){var l=a[s];u=l.offset+l.size}for(var f=s+1;f<=r;f++){var c=o(f);a[f]={offset:u,size:c},u+=c}t==="column"?i.lastMeasuredColumnIndex=r:i.lastMeasuredRowIndex=r}return a[r]},Ac=function(t,n,r,i){var a,o;t==="column"?(a=r.columnMetadataMap,o=r.lastMeasuredColumnIndex):(a=r.rowMetadataMap,o=r.lastMeasuredRowIndex);var s=o>0?a[o].offset:0;return s>=i?bh(t,n,r,o,0,i):TT(t,n,r,Math.max(0,o),i)},bh=function(t,n,r,i,a,o){for(;a<=i;){var s=a+Math.floor((i-a)/2),u=qt(t,n,s,r).offset;if(u===o)return s;u<o?a=s+1:u>o&&(i=s-1)}return a>0?a-1:0},TT=function(t,n,r,i,a){for(var o=t==="column"?n.columnCount:n.rowCount,s=1;i<o&&qt(t,n,i,r).offset<a;)i+=s,s*=2;return bh(t,n,r,Math.min(i,o-1),Math.floor(i/2),a)},Ic=function(t,n,r,i,a,o,s){var u=t==="column"?n.width:n.height,l=qt(t,n,r,o),f=t==="column"?wh(n,o):yh(n,o),c=Math.max(0,Math.min(f-u,l.offset)),d=Math.max(0,l.offset-u+s+l.size);switch(i==="smart"&&(a>=d-u&&a<=c+u?i="auto":i="center"),i){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);case"auto":default:return a>=d&&a<=c?a:d>c||a<d?d:c}},ST=xT({getColumnOffset:function(t,n,r){return qt("column",t,n,r).offset},getColumnStartIndexForOffset:function(t,n,r){return Ac("column",t,r,n)},getColumnStopIndexForStartIndex:function(t,n,r,i){for(var a=t.columnCount,o=t.width,s=qt("column",t,n,i),u=r+o,l=s.offset+s.size,f=n;f<a-1&&l<u;)f++,l+=qt("column",t,f,i).size;return f},getColumnWidth:function(t,n,r){return r.columnMetadataMap[n].size},getEstimatedTotalHeight:yh,getEstimatedTotalWidth:wh,getOffsetForColumnAndAlignment:function(t,n,r,i,a,o){return Ic("column",t,n,r,i,a,o)},getOffsetForRowAndAlignment:function(t,n,r,i,a,o){return Ic("row",t,n,r,i,a,o)},getRowOffset:function(t,n,r){return qt("row",t,n,r).offset},getRowHeight:function(t,n,r){return r.rowMetadataMap[n].size},getRowStartIndexForOffset:function(t,n,r){return Ac("row",t,r,n)},getRowStopIndexForStartIndex:function(t,n,r,i){for(var a=t.rowCount,o=t.height,s=qt("row",t,n,i),u=r+o,l=s.offset+s.size,f=n;f<a-1&&l<u;)f++,l+=qt("row",t,f,i).size;return f},initInstanceProps:function(t,n){var r=t,i=r.estimatedColumnWidth,a=r.estimatedRowHeight,o={columnMetadataMap:{},estimatedColumnWidth:i||Mc,estimatedRowHeight:a||Mc,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return n.resetAfterColumnIndex=function(s,u){u===void 0&&(u=!0),n.resetAfterIndices({columnIndex:s,shouldForceUpdate:u})},n.resetAfterRowIndex=function(s,u){u===void 0&&(u=!0),n.resetAfterIndices({rowIndex:s,shouldForceUpdate:u})},n.resetAfterIndices=function(s){var u=s.columnIndex,l=s.rowIndex,f=s.shouldForceUpdate,c=f===void 0?!0:f;typeof u=="number"&&(o.lastMeasuredColumnIndex=Math.min(o.lastMeasuredColumnIndex,u-1)),typeof l=="number"&&(o.lastMeasuredRowIndex=Math.min(o.lastMeasuredRowIndex,l-1)),n._getItemStyleCache(-1),c&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.columnWidth,t.rowHeight}});function Oc(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var DT=["style"],ET=["style"];function iu(e,t){var n=e.style,r=Tc(e,DT),i=t.style,a=Tc(t,ET);return!Oc(n,i)&&!Oc(r,a)}var MT={small:16,medium:32,large:64};function vt(e){var t=e["aria-label"],n=e.className,r=e.fill,i=r===void 0?"currentColor":r,a=e.size,o=e.verticalAlign,s=e.svgDataByHeight,u=MT[a]||a,l=AT(Object.keys(s),u),f=s[l].width,c=u*(f/l),d=s[l].path;return{"aria-hidden":t?"false":"true","aria-label":t,role:"img",className:n,viewBox:"0 0 "+f+" "+l,width:c,height:u,fill:i,style:{display:"inline-block",userSelect:"none",verticalAlign:o},dangerouslySetInnerHTML:{__html:d}}}function AT(e,t){return e.map(function(n){return parseInt(n,10)}).reduce(function(n,r){return r<=t?r:n},e[0])}var yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function _h(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M13.03 8.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.47 9.28a.75.75 0 011.06-1.06l2.97 2.97V3.75a.75.75 0 011.5 0v7.44l2.97-2.97a.75.75 0 011.06 0z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M4.97 13.22a.75.75 0 000 1.06l6.25 6.25a.75.75 0 001.06 0l6.25-6.25a.75.75 0 10-1.06-1.06l-4.97 4.97V3.75a.75.75 0 00-1.5 0v14.44l-4.97-4.97a.75.75 0 00-1.06 0z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}_h.defaultProps={className:"octicon octicon-arrow-down",size:16,verticalAlign:"text-bottom"};function xh(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M7.78 12.53a.75.75 0 01-1.06 0L2.47 8.28a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.81 7h7.44a.75.75 0 010 1.5H4.81l2.97 2.97a.75.75 0 010 1.06z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M10.78 19.03a.75.75 0 01-1.06 0l-6.25-6.25a.75.75 0 010-1.06l6.25-6.25a.75.75 0 111.06 1.06L5.81 11.5h14.44a.75.75 0 010 1.5H5.81l4.97 4.97a.75.75 0 010 1.06z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}xh.defaultProps={className:"octicon octicon-arrow-left",size:16,verticalAlign:"text-bottom"};function Ch(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M13.22 19.03a.75.75 0 001.06 0l6.25-6.25a.75.75 0 000-1.06l-6.25-6.25a.75.75 0 10-1.06 1.06l4.97 4.97H3.75a.75.75 0 000 1.5h14.44l-4.97 4.97a.75.75 0 000 1.06z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}Ch.defaultProps={className:"octicon octicon-arrow-right",size:16,verticalAlign:"text-bottom"};function Th(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M3.47 7.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L9 4.81v7.44a.75.75 0 01-1.5 0V4.81L4.53 7.78a.75.75 0 01-1.06 0z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M6.47 10.78a.75.75 0 010-1.06l5.25-5.25a.75.75 0 011.06 0l5.25 5.25a.75.75 0 11-1.06 1.06L13 6.81v12.44a.75.75 0 01-1.5 0V6.81l-3.97 3.97a.75.75 0 01-1.06 0z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}Th.defaultProps={className:"octicon octicon-arrow-up",size:16,verticalAlign:"text-bottom"};function Sh(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M4.5 12.75a.75.75 0 01.75-.75h13.5a.75.75 0 010 1.5H5.25a.75.75 0 01-.75-.75z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}Sh.defaultProps={className:"octicon octicon-dash",size:16,verticalAlign:"text-bottom"};function ra(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M2.75 2.5h10.5a.25.25 0 01.25.25v10.5a.25.25 0 01-.25.25H2.75a.25.25 0 01-.25-.25V2.75a.25.25 0 01.25-.25zM13.25 1H2.75A1.75 1.75 0 001 2.75v10.5c0 .966.784 1.75 1.75 1.75h10.5A1.75 1.75 0 0015 13.25V2.75A1.75 1.75 0 0013.25 1zM8 10a2 2 0 100-4 2 2 0 000 4z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}ra.defaultProps={className:"octicon octicon-diff-modified",size:16,verticalAlign:"text-bottom"};function cs(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M7.47 10.78a.75.75 0 001.06 0l3.75-3.75a.75.75 0 00-1.06-1.06L8.75 8.44V1.75a.75.75 0 00-1.5 0v6.69L4.78 5.97a.75.75 0 00-1.06 1.06l3.75 3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"></path>'},24:{width:24,path:'<path d="M4.97 11.03a.75.75 0 111.06-1.06L11 14.94V2.75a.75.75 0 011.5 0v12.19l4.97-4.97a.75.75 0 111.06 1.06l-6.25 6.25a.75.75 0 01-1.06 0l-6.25-6.25zm-.22 9.47a.75.75 0 000 1.5h14.5a.75.75 0 000-1.5H4.75z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}cs.defaultProps={className:"octicon octicon-download",size:16,verticalAlign:"text-bottom"};function fs(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm6.5-.25A.75.75 0 017.25 7h1a.75.75 0 01.75.75v2.75h.25a.75.75 0 010 1.5h-2a.75.75 0 010-1.5h.25v-2h-.25a.75.75 0 01-.75-.75zM8 6a1 1 0 100-2 1 1 0 000 2z"></path>'},24:{width:24,path:'<path d="M13 7.5a1 1 0 11-2 0 1 1 0 012 0zm-3 3.75a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v4.25h.75a.75.75 0 010 1.5h-3a.75.75 0 010-1.5h.75V12h-.75a.75.75 0 01-.75-.75z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}fs.defaultProps={className:"octicon octicon-info",size:16,verticalAlign:"text-bottom"};function Dh(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M4.456.734a1.75 1.75 0 012.826.504l.613 1.327a3.081 3.081 0 002.084 1.707l2.454.584c1.332.317 1.8 1.972.832 2.94L11.06 10l3.72 3.72a.75.75 0 11-1.061 1.06L10 11.06l-2.204 2.205c-.968.968-2.623.5-2.94-.832l-.584-2.454a3.081 3.081 0 00-1.707-2.084l-1.327-.613a1.75 1.75 0 01-.504-2.826L4.456.734zM5.92 1.866a.25.25 0 00-.404-.072L1.794 5.516a.25.25 0 00.072.404l1.328.613A4.582 4.582 0 015.73 9.63l.584 2.454a.25.25 0 00.42.12l5.47-5.47a.25.25 0 00-.12-.42L9.63 5.73a4.581 4.581 0 01-3.098-2.537L5.92 1.866z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M7.886 1.553a1.75 1.75 0 012.869.604l.633 1.629a5.666 5.666 0 003.725 3.395l3.959 1.131a1.75 1.75 0 01.757 2.92L16.06 15l5.594 5.595a.75.75 0 11-1.06 1.06L15 16.061l-3.768 3.768a1.75 1.75 0 01-2.92-.757l-1.131-3.96a5.667 5.667 0 00-3.395-3.724l-1.63-.633a1.75 1.75 0 01-.603-2.869l6.333-6.333zm6.589 12.912l-.005.005-.005.005-4.294 4.293a.25.25 0 01-.417-.108l-1.13-3.96A7.166 7.166 0 004.33 9.99L2.7 9.356a.25.25 0 01-.086-.41l6.333-6.332a.25.25 0 01.41.086l.633 1.63a7.167 7.167 0 004.71 4.293l3.96 1.131a.25.25 0 01.108.417l-4.293 4.294z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}Dh.defaultProps={className:"octicon octicon-pin",size:16,verticalAlign:"text-bottom"};function au(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M11.75 4.5a.75.75 0 01.75.75V11h5.75a.75.75 0 010 1.5H12.5v5.75a.75.75 0 01-1.5 0V12.5H5.25a.75.75 0 010-1.5H11V5.25a.75.75 0 01.75-.75z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}au.defaultProps={className:"octicon octicon-plus",size:16,verticalAlign:"text-bottom"};function Eh(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M8 2.5a5.487 5.487 0 00-4.131 1.869l1.204 1.204A.25.25 0 014.896 6H1.25A.25.25 0 011 5.75V2.104a.25.25 0 01.427-.177l1.38 1.38A7.001 7.001 0 0114.95 7.16a.75.75 0 11-1.49.178A5.501 5.501 0 008 2.5zM1.705 8.005a.75.75 0 01.834.656 5.501 5.501 0 009.592 2.97l-1.204-1.204a.25.25 0 01.177-.427h3.646a.25.25 0 01.25.25v3.646a.25.25 0 01-.427.177l-1.38-1.38A7.001 7.001 0 011.05 8.84a.75.75 0 01.656-.834z"></path>'},24:{width:24,path:'<path d="M3.38 8A9.502 9.502 0 0112 2.5a9.502 9.502 0 019.215 7.182.75.75 0 101.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 00-9.5 5.452V4.75a.75.75 0 00-1.5 0V8.5a1 1 0 001 1h3.75a.75.75 0 000-1.5H3.38zm-.595 6.318a.75.75 0 00-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 001.5 0V15.5a1 1 0 00-1-1h-3.75a.75.75 0 000 1.5h2.37A9.502 9.502 0 0112 21.5c-4.446 0-8.181-3.055-9.215-7.182z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}Eh.defaultProps={className:"octicon octicon-sync",size:16,verticalAlign:"text-bottom"};function ou(e){var t={16:{width:16,path:'<path fill-rule="evenodd" d="M6.5 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25V3h-3V1.75zm4.5 0V3h2.25a.75.75 0 010 1.5H2.75a.75.75 0 010-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675a.75.75 0 10-1.492.15l.66 6.6A1.75 1.75 0 005.405 15h5.19c.9 0 1.652-.681 1.741-1.576l.66-6.6a.75.75 0 00-1.492-.149l-.66 6.6a.25.25 0 01-.249.225h-5.19a.25.25 0 01-.249-.225l-.66-6.6z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M16 1.75V3h5.25a.75.75 0 010 1.5H2.75a.75.75 0 010-1.5H8V1.75C8 .784 8.784 0 9.75 0h4.5C15.216 0 16 .784 16 1.75zm-6.5 0a.25.25 0 01.25-.25h4.5a.25.25 0 01.25.25V3h-5V1.75z"></path><path d="M4.997 6.178a.75.75 0 10-1.493.144L4.916 20.92a1.75 1.75 0 001.742 1.58h10.684a1.75 1.75 0 001.742-1.581l1.413-14.597a.75.75 0 00-1.494-.144l-1.412 14.596a.25.25 0 01-.249.226H6.658a.25.25 0 01-.249-.226L4.997 6.178z"></path><path d="M9.206 7.501a.75.75 0 01.793.705l.5 8.5A.75.75 0 119 16.794l-.5-8.5a.75.75 0 01.705-.793zm6.293.793A.75.75 0 1014 8.206l-.5 8.5a.75.75 0 001.498.088l.5-8.5z"></path>'}};return z.createElement("svg",vt(yt({},e,{svgDataByHeight:t})))}ou.defaultProps={className:"octicon octicon-trash",size:16,verticalAlign:"text-bottom"};var yo,Rc;function IT(){return Rc||(Rc=1,yo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),yo}var wo,kc;function OT(){return kc||(kc=1,wo=/[\0-\x1F\x7F-\x9F]/),wo}var bo,Fc;function RT(){return Fc||(Fc=1,bo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),bo}var _o,Nc;function kT(){return Nc||(Nc=1,_o=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),_o}var xo,Pc;function FT(){return Pc||(Pc=1,xo=function(e){var t={};t.src_Any=IT().source,t.src_Cc=OT().source,t.src_Z=RT().source,t.src_P=kT().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),xo}function ds(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Oa(e){return Object.prototype.toString.call(e)}function NT(e){return Oa(e)==="[object String]"}function PT(e){return Oa(e)==="[object Object]"}function LT(e){return Oa(e)==="[object RegExp]"}function Lc(e){return Oa(e)==="[object Function]"}function $T(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Mh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function zT(e){return Object.keys(e||{}).reduce(function(t,n){return t||Mh.hasOwnProperty(n)},!1)}var HT={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},UT="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",WT="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function BT(e){e.__index__=-1,e.__text_cache__=""}function VT(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function $c(){return function(e,t){t.normalize(e)}}function ia(e){var t=e.re=FT()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(UT),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function a(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(e.__schemas__).forEach(function(s){var u=e.__schemas__[s];if(u!==null){var l={validate:null,link:null};if(e.__compiled__[s]=l,PT(u)){LT(u.validate)?l.validate=VT(u.validate):Lc(u.validate)?l.validate=u.validate:a(s,u),Lc(u.normalize)?l.normalize=u.normalize:u.normalize?a(s,u):l.normalize=$c();return}if(NT(u)){i.push(s);return}a(s,u)}}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:$c()};var o=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map($T).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),BT(e)}function jT(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function zc(e,t){var n=new jT(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function gt(e,t){if(!(this instanceof gt))return new gt(e,t);t||zT(e)&&(t=e,e={}),this.__opts__=ds({},Mh,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ds({},HT,e),this.__compiled__={},this.__tlds__=WT,this.__tlds_replaced__=!1,this.re={},ia(this)}gt.prototype.add=function(t,n){return this.__schemas__[t]=n,ia(this),this};gt.prototype.set=function(t){return this.__opts__=ds(this.__opts__,t),this};gt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,r,i,a,o,s,u,l,f;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],u.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0};gt.prototype.pretest=function(t){return this.re.pretest.test(t)};gt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};gt.prototype.match=function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(zc(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(zc(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};gt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,a){return r!==a[i-1]}).reverse(),ia(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ia(this),this)};gt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};gt.prototype.onCompile=function(){};var qT=gt;const YT=nf(qT);function QT(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var KT=`.github-octo-flat-ui *,
.github-octo-flat-ui ::before,
.github-octo-flat-ui ::after {
box-sizing: border-box;
}
.github-octo-flat-ui {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
margin: 0;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}
.github-octo-flat-ui hr {
height: 0; /* 1 */
color: inherit; /* 2 */
}
.github-octo-flat-ui code,
.github-octo-flat-ui kbd,
.github-octo-flat-ui samp,
.github-octo-flat-ui pre {
font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo,
monospace; /* 1 */
font-size: 1em; /* 2 */
}
.github-octo-flat-ui table {
text-indent: 0; /* 1 */
border-color: inherit; /* 2 */
}
.github-octo-flat-ui button,
.github-octo-flat-ui input,
.github-octo-flat-ui optgroup,
.github-octo-flat-ui select,
.github-octo-flat-ui textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
.github-octo-flat-ui button,
.github-octo-flat-ui select {
/* 1 */
text-transform: none;
}
.github-octo-flat-ui button,
.github-octo-flat-ui [type='button'],
.github-octo-flat-ui [type='reset'],
.github-octo-flat-ui [type='submit'] {
-webkit-appearance: button;
}
.github-octo-flat-ui ::-moz-focus-inner {
border-style: none;
padding: 0;
}
.github-octo-flat-ui :-moz-focusring {
outline: 1px dotted ButtonText;
}
.github-octo-flat-ui :-moz-ui-invalid {
box-shadow: none;
}
.github-octo-flat-ui ::-webkit-inner-spin-button,
.github-octo-flat-ui ::-webkit-outer-spin-button {
height: auto;
}
.github-octo-flat-ui [type='search'] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
.github-octo-flat-ui ::-webkit-search-decoration {
-webkit-appearance: none;
}
.github-octo-flat-ui ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
.github-octo-flat-ui summary {
display: list-item;
}
.github-octo-flat-ui button {
background-color: transparent;
background-image: none;
}
.github-octo-flat-ui fieldset {
margin: 0;
padding: 0;
}
.github-octo-flat-ui ol,
.github-octo-flat-ui ul {
list-style: none;
margin: 0;
padding: 0;
}
.github-octo-flat-ui {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* 1 */
line-height: 1.5; /* 2 */
}
.github-octo-flat-ui *,
.github-octo-flat-ui ::before,
.github-octo-flat-ui ::after {
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: currentColor; /* 2 */
}
.github-octo-flat-ui hr {
border-top-width: 1px;
}
.github-octo-flat-ui img {
border-style: solid;
}
.github-octo-flat-ui textarea {
resize: vertical;
}
.github-octo-flat-ui input::-moz-placeholder, .github-octo-flat-ui textarea::-moz-placeholder {
opacity: 1;
color: #9ca3af;
}
.github-octo-flat-ui input:-ms-input-placeholder, .github-octo-flat-ui textarea:-ms-input-placeholder {
opacity: 1;
color: #9ca3af;
}
.github-octo-flat-ui input::placeholder,
.github-octo-flat-ui textarea::placeholder {
opacity: 1;
color: #9ca3af;
}
.github-octo-flat-ui button,
.github-octo-flat-ui [role='button'] {
cursor: pointer;
}
.github-octo-flat-ui table {
border-collapse: collapse;
}
.github-octo-flat-ui a {
color: inherit;
text-decoration: inherit;
}
.github-octo-flat-ui button,
.github-octo-flat-ui input,
.github-octo-flat-ui optgroup,
.github-octo-flat-ui select,
.github-octo-flat-ui textarea {
line-height: inherit;
color: inherit;
}
.github-octo-flat-ui pre,
.github-octo-flat-ui code,
.github-octo-flat-ui kbd,
.github-octo-flat-ui samp {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
'Liberation Mono', 'Courier New', monospace;
}
.github-octo-flat-ui img,
.github-octo-flat-ui svg,
.github-octo-flat-ui video,
.github-octo-flat-ui canvas,
.github-octo-flat-ui audio,
.github-octo-flat-ui iframe,
.github-octo-flat-ui embed,
.github-octo-flat-ui object {
display: block; /* 1 */
vertical-align: middle; /* 2 */
}
.github-octo-flat-ui img,
.github-octo-flat-ui video {
max-width: 100%;
height: auto;
}
*,
::before,
::after {
--tw-border-opacity: 1;
border-color: rgba(229, 231, 235, var(--tw-border-opacity));
}
body,
html,
#root {
height: 100%;
}
@-webkit-keyframes yScaleIn {
0% {
transform: scaleY(0);
}
100% {
transform: scaleY(1);
}
}
@keyframes yScaleIn {
0% {
transform: scaleY(0);
}
100% {
transform: scaleY(1);
}
}
.y-scale-in {
-webkit-animation: yScaleIn 0.4s ease-out;
animation: yScaleIn 0.4s ease-out;
}
@-webkit-keyframes fadeUpIn {
0% {
opacity: 0;
transform: translateY(3em);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeUpIn {
0% {
opacity: 0;
transform: translateY(3em);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.fade-up-in {
-webkit-animation: fadeUpIn 0.4s ease-out;
animation: fadeUpIn 0.4s ease-out;
}
@-webkit-keyframes fadeUpSmIn {
0% {
opacity: 0;
transform: translateY(0.6em);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeUpSmIn {
0% {
opacity: 0;
transform: translateY(0.6em);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.fade-up-sm-in {
-webkit-animation: fadeUpSmIn 0.4s ease-out;
animation: fadeUpSmIn 0.4s ease-out;
}
.html-histogram__thumb {
opacity: 0;
transition: opacity 0.3s ease-out;
}
.html-histogram:focus-within .html-histogram__thumb,
.html-histogram:hover .html-histogram__thumb {
opacity: 1;
}
.html-histogram:not(:hover):not(:focus-within) .html-histogram__range--base {
transform: scaleY(
0.3
) !important; /* please forgive me! react-range made me do it */
transition: all 0.3s ease-out;
}
.html-histogram__numbers {
transition: transform 0.3s ease-out;
transform: translateY(-0.8em);
}
.html-histogram:focus-within .html-histogram__numbers,
.html-histogram:hover .html-histogram__numbers {
transform: none;
}
.cell a {
/* @apply text-indigo-500; */
text-decoration: underline;
}
.cell:hover {
/* to get around an inline style */
z-index: 50 !important;
}
.cell:hover .cell__long-value {
pointer-events: all;
opacity: 1;
}
.cell:hover .delete-button {
opacity: 1;
}
.header__title {
right: 0;
min-width: 100%;
z-index: 50;
}
.header:not(:hover) .header__title {
box-shadow: none;
}
.header:hover .header__title {
right: auto;
}
.header__pin {
opacity: 0;
}
.header:hover .header__icon {
opacity: 1;
}
.header:hover .header__delete {
opacity: 1;
width: auto;
padding-left: 0.25em;
padding-right: 0.5em;
}
.sticky-grid__header:hover {
z-index: 250 !important;
}
.sticky-grid__header:focus-within {
z-index: 240 !important;
}
@media (max-width: 700px) {
.pin {
display: none;
}
}
`;QT(KT);function De(){return De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(this,arguments)}function GT(e,t){if(e){if(typeof e=="string")return Hc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hc(e,t)}}function Hc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XT(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=GT(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ZT=jt("%B %-d, %Y");function Uc(e){return E("span",{css:{textOverflow:"ellipsis",display:"block",whiteSpace:"nowrap",overflow:"hidden"},title:e.rawValue},e.value?ZT(e.value):"")}var JT=jt("%B %-d, %Y %-H:%M");function eS(e){return E("span",{css:{textOverflow:"ellipsis",display:"block",whiteSpace:"nowrap",overflow:"hidden"},title:e.rawValue},e.value?JT(e.value):"")}function tS(e){return E("div",{css:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"right",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:"0.875rem",lineHeight:"1.25rem",display:"block",width:"100%"},title:e.rawValue},Number.isFinite(e.value)?e.value.toLocaleString():e.rawValue?"—":"")}function nS(e){return E("span",{css:{textAlign:"right",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:"0.875rem",lineHeight:"1.25rem",display:"block",width:"100%"},title:e.rawValue},Number.isFinite(e.value)?e.value:"—")}function di(e){return E("div",{css:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:e.rawValue,dangerouslySetInnerHTML:{__html:Js.sanitize(e.formattedValue)}})}function rS(e){return E(J.Fragment,null,E("div",{css:{position:"absolute",top:"0px",bottom:"0px",left:"0px",width:"0.9em"},style:{background:e.value}}),E("div",{css:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:e.rawValue,dangerouslySetInnerHTML:{__html:Js.sanitize(e.formattedValue)}}))}function iS(e){return E("span",{css:[{textOverflow:"ellipsis",display:"block",whiteSpace:"nowrap",overflow:"hidden",borderRadius:"9999px",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",marginLeft:"-0.5rem",marginRight:"-0.5rem"},e.categoryColor],title:e.value},e.value)}var aS=dn(",");function or(e){var t=z.useState(e.value||""),n=t[0],r=t[1],i=z.useRef(""),a=z.useCallback(jd(function(){e.onChange(i.current)},400),[]);return z.useEffect(function(){a(),i.current=n},[n]),z.useEffect(function(){r(e.value||"")},[e.value]),E("input",{css:{paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.75rem",paddingBottom:"0.75rem","--tw-text-opacity":"1",color:"rgba(99, 102, 241, var(--tw-text-opacity))","::placeholder":{"--tw-placeholder-opacity":"1",color:"rgba(156, 163, 175, var(--tw-placeholder-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",outline:"2px solid transparent",outlineOffset:"2px",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},width:"100%",textOverflow:"ellipsis"},onChange:function(s){return r(s.target.value)},value:n||"",placeholder:"Filter "+aS(e.filteredData.length)+" records"})}var oS=dn(",");function sS(e){return E(X2,{onChange:e.onChange,value:(e==null?void 0:e.value)||""},function(t){var n=t.getInputProps,r=t.getItemProps,i=t.getMenuProps,a=t.clearSelection,o=t.isOpen,s=t.openMenu,u=t.inputValue,l=t.highlightedIndex,f=t.getRootProps;return E("div",{css:{width:"100%",height:"100%",margin:"-0.5rem",marginTop:"-0.5rem"},style:{height:"calc(100% + 1rem)"}},E("div",De({css:{height:"100%",width:"100%"}},f({},{suppressRefError:!0})),E("input",De({css:[e!=null&&e.value?{"--tw-text-opacity":"1",color:"rgba(99, 102, 241, var(--tw-text-opacity))"}:{"--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))"},{height:"100%",width:"100%",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.75rem",paddingBottom:"0.75rem","::placeholder":{"--tw-placeholder-opacity":"1",color:"rgba(156, 163, 175, var(--tw-placeholder-opacity))"},borderStyle:"none","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",outline:"2px solid transparent",outlineOffset:"2px",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},textOverflow:"ellipsis"}],placeholder:"Filter "+oS(e.filteredData.length)+" records"},n({onEmptied:function(){e.onChange("")},onClick:function(){o||s()},onFocus:function(){o||s()},onChange:function(d){var h=d.target.value;h||a()}})))),o&&E("ul",De({},i(),{css:{position:"absolute",minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(0.25rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0.25rem * var(--tw-space-y-reverse))"},paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))","--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",zIndex:"10"},className:"fade-up-sm-in",style:{marginTop:1}}),(e.possibleValues||[]).map(function(c,d){var h=c.value,p=c.count,m=c.color,C=u&&!js([h],u).length;return C?null:(console.log({color:m}),E("li",De({css:[m,{padding:"0.5rem",display:"inline-block",borderRadius:"9999px",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",marginLeft:"0.5rem",marginRight:"0.5rem",borderWidth:"2px",whiteSpace:"nowrap",cursor:"pointer"},l===d?{"--tw-border-opacity":"1",borderColor:"rgba(99, 102, 241, var(--tw-border-opacity))"}:{"--tw-border-opacity":"1",borderColor:"rgba(255, 255, 255, var(--tw-border-opacity))"}]},r({key:h,index:d,item:h})),E("span",{css:{textOverflow:"ellipsis",maxWidth:"80rem"}},h," (",p.toLocaleString(),")")))})))})}function uS(e){var t=e.filtered,n=e.original,r=e.value,i=e.focusedValue,a=e.shortFormat,o=e.longFormat,s=e.maxWidth,u=e.onChange,l=30,f=J.useMemo(function(){var k=s?Math.max(0,Math.floor(s/6)*.55):11,b=Ua().thresholds(k)(n);if(n.length<200){var M=Array.from(new Set(n)).sort(Ds),x=M.length;if(x>1&&x<12){var I=M[1]-M[0],N=M.find(function(A,H){return H&&A-M[H-1]!==I})===void 0;N?b=Ua().thresholds(M)(n):b.length>x&&(b=Ua().thresholds(x)(n))}}return{bins:b}},[n,s,r]),c=f.bins,d=c.map(function(k,b){var M=b===c.length-1,x=t.filter(function(I){return I>=k.x0&&(I<k.x1||M)});return x}),h=J.useMemo(function(){return{xScale:Qi().domain([yf(c,function(k){return k.x0}),$o(n)]).range([0,100]),yScale:Qi().domain([0,$o(c,function(k){return k.length})]).range([0,100])}},[c,n]),p=h.xScale,m=h.yScale,C=J.useMemo(function(){return r?[p(r[0]),p(r[1])]:[0,100]},[p,r]),y=i&&c.findIndex(function(k,b){return k.x0<=i&&k.x1>i||b===c.length-1&&k.x1===i}),v=En(n),w=v[0]===v[1],D=4,g=2,_=D+g,S=d.length*_,F=c.length>1?p(c[1].x1)-p(c[0].x1)||50:100;F<1&&(F=1);var P=C[0]!==0||C[1]!==100;return w?E("div",{css:{paddingLeft:"0.5rem",paddingRight:"0.5rem","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"tabular-nums","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)",fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",fontWeight:"500","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))"}},o(p.invert(C[0]))):E("div",{className:"html-histogram",css:{flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:"0.25rem",alignSelf:"center"},style:{width:"fit-content"}},c.length>1&&E(z.Fragment,null,E("div",{css:{display:"flex",alignItems:"flex-end",position:"relative"},style:{height:l,width:"fit-content"}},c.map(function(k,b){var M=m(k.length),x=m(d[b].length);return E(lS,{key:b,height:M,filteredHeight:x,barWidth:D,barSpacing:g,isFocused:y==b})})),E(cS,{totalWidth:S,stepSize:F,onChange:u,xScale:p,rangeValues:C,isFiltered:P})),E(fS,{totalWidth:S,rangeValues:C,min:a(p.invert(C[0])),max:a(p.invert(C[1])),isFiltered:P}))}var lS=J.memo(function(e){var t=e.height,n=e.filteredHeight,r=e.barWidth,i=e.barSpacing,a=e.isFocused;return E("div",{css:{height:"100%",flexShrink:"0",position:"relative"},style:{width:r,marginRight:i}},a&&E("div",{css:{transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",position:"absolute",top:"0px",right:"0px",bottom:"0px",left:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(224, 231, 255, var(--tw-bg-opacity))"},style:{top:-3,left:-1,right:-1}}),E("div",{css:{position:"absolute",bottom:"0px",left:"0px",right:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(229, 231, 235, var(--tw-bg-opacity))"},style:{height:t+"%"}}),E("div",{className:"y-scale-in",css:{position:"absolute",bottom:"0px",left:"0px",right:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(99, 102, 241, var(--tw-bg-opacity))",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",transitionDuration:"150ms",transformOrigin:"bottom"},style:{height:n+"%"}}))}),cS=J.memo(function(e){var t=e.totalWidth,n=e.stepSize,r=e.onChange,i=e.xScale,a=e.rangeValues,o=e.isFiltered;return E("div",{css:{marginTop:"0.25rem",marginBottom:"0.75rem"},style:{width:t}},E(ss.Range,{min:0,max:100,step:n,values:a,draggableTrack:!0,onChange:function(u){if(u[0]===0&&u[1]===100){r(void 0);return}var l=i.invert(u[0]),f=i.invert(u[1]);r([l,f])},renderTrack:function(u){var l=u.props,f=u.children;return E("div",De({},l,{css:{display:"flex",borderRadius:"0.125rem"},className:"html-histogram__range--"+(o?"filtered":"base"),style:De({},l.style,{height:3,background:ss.getTrackBackground({min:0,max:100,values:a,colors:o?["#E5E7EB","#6366F1","#E5E7EB"]:["#E5E7EB","#A5B4FBff","#E5E7EB"]})})}),f)},renderThumb:function(u){var l=u.props,f=u.isDragged;return E("div",De({},l,{className:"html-histogram__thumb",css:[{transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",transitionDuration:"150ms",borderRadius:"0.125rem","--tw-text-opacity":"1",color:"rgba(129, 140, 248, var(--tw-text-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"},display:"flex",alignItems:"center",justifyContent:"center"},f&&{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"}],style:De({},l.style,{bottom:-12,height:7,width:10})}),E("svg",{viewBox:"0 0 1 1",css:{height:"100%",width:"100%"},preserveAspectRatio:"none"},E("path",{d:"M 0 1 L 0.5 0 L 1 1 Z",fill:"currentColor"})))}}))}),fS=J.memo(function(e){var t=e.totalWidth,n=e.rangeValues,r=e.min,i=e.max,a=e.isFiltered;return E("div",{css:{display:"flex",justifyContent:"center","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"tabular-nums","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)",fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))",whiteSpace:"nowrap"},className:"html-histogram__numbers html-histogram__numbers--"+(a?"filtered":"base"),style:{margin:"0 -5px -9px",width:t+10}},E("div",{css:[{display:"flex",justifyContent:"flex-start",paddingRight:"0.5rem",flex:"1 1 0%"},n[0]!=0&&{"--tw-text-opacity":"1",color:"rgba(99, 102, 241, var(--tw-text-opacity))"}]},r),E("div",{css:[{display:"flex",justifyContent:"flex-end",paddingLeft:"0.5rem",flex:"1 1 0%"},n[1]!=100&&{"--tw-text-opacity":"1",color:"rgba(99, 102, 241, var(--tw-text-opacity))"}]},i))});function sr(e){var t=e.id,n=e.value,r=e.filteredData,i=e.originalData,a=e.focusedValue,o=e.shortFormat,s=e.maxWidth,u=e.longFormat,l=e.onChange,f=z.useState(n),c=f[0],d=f[1],h=z.useRef(),p=z.useCallback(jd(function(){l(h.current)},400),[]);z.useEffect(function(){p(),h.current=c},[c]),z.useEffect(function(){d(n)},[e.value]);var m=r.map(function(y){return y[t]}).filter(function(y){return Number.isFinite(y)||y instanceof Date}),C=J.useMemo(function(){return i.map(function(y){return y[t]}).filter(function(y){return Number.isFinite(y)||y instanceof Date})},[i,t]);return E(uS,{id:t,onChange:d,value:c,original:C,filtered:m,focusedValue:a,maxWidth:s,shortFormat:o,longFormat:u})}var dS=function(t){return function(n,r,i){return t(function(a,o){var s=typeof a=="function"?Lp(a):a;return n(s,o)},r,i)}},Vt="__originalIndex__",Ah=function(){return Tp(dS(function(t){return{data:[],rawData:[],schema:void 0,cellTypes:{},metadata:{},stickyColumnName:void 0,columnNames:[],categoryValues:{},handleStickyColumnNameChange:function(r){return t(function(i){i.columnNames.includes(r)&&(i.stickyColumnName=r)})},handleDataChange:function(r){return t(function(i){i.rawData=r.map(function(l,f){var c;return De({},l,(c={},c[Vt]=f,c))}),i.schema=gS(r);var a=i.schema,o=Object.keys(a);i.cellTypes=o.reduce(function(l,f){var c=a[f];return kt[c]||(c="string"),l[f]=c,l},{}),i.data=To(i.rawData,i.cellTypes);var s=r.length?Object.keys(r[0]).filter(function(l){return!Co.includes(l)}):[];if((!i.stickyColumnName||!s.includes(i.stickyColumnName))&&(i.stickyColumnName=s[0]),!i.sort.length){var u;i.sort=i.stickyColumnName?[i.stickyColumnName,((u=kt[i.cellTypes[i.stickyColumnName]])==null?void 0:u.sortValueType)==="string"?"asc":"desc"]:[]}})},handleMetadataChange:function(r){return t(function(i){i.metadata=r})},diffs:[],uniqueColumnName:void 0,handleDiffDataChange:function(r){return t(function(i){if(r.length){var a=i.data;i.uniqueColumnName=void 0;var o=a.length?Object.keys(a[0]).filter(function(m){return!Co.includes(m)}):[],s=o.filter(function(m){var C,y=i.cellTypes[m],v=(C=kt[y])==null?void 0:C.sortValueType,w=v==="string";return m.toLowerCase()==="id"&&(w||v==="number")?!0:w}).map(function(m){var C=new Set(a.map(function(y){return y[m]}));return[m,C.size]}),u=s.sort(function(m,C){return Fo(m[1],C[1])});if(!(!u.length||u[0][1]!==a.length)){var l=u[0][0],f=l;i.uniqueColumnName=l;var c=new Map(To(r,i.cellTypes).map(function(m){return[m[f],m]})),d=new Map(a.map(function(m){return[m[f]+"",m]})),h=a.map(function(m){var C=m[f],y=!c.get(C);if(y)return De({},m,{__status__:"new"});var v=o.filter(function(w){var D,g,_=i.cellTypes[w],S=_==="date"?(D=m[w])==null||D.toString==null?void 0:D.toString():m[w],F=c.get(C),P=_==="date"?(g=F[w])==null||g.toString==null?void 0:g.toString():F[w];return _==="object"?!d_(S,P):S!==P});return v.length?De({},m,{__status__:"modified",__modifiedColumnNames__:v}):m}),p=To(r.filter(function(m){return!d.get(m[f+""])&&m[f||""]}).map(function(m){return De({},m,{__status__:"old"})}),i.cellTypes);i.data=[].concat(h,p)}}})},focusedRowIndex:void 0,handleFocusedRowIndexChange:function(r){return t(function(i){i.focusedRowIndex=r})},filteredData:[],filters:{},handleFilterChange:function(r,i){return t(function(a){i?a.filters[r]=i:delete a.filters[r]})},handleFiltersChange:function(r){return t(function(i){i.filters=r||{}})},sort:[],handleSortChange:function(r,i){return t(function(a){r?a.sort=[r,i]:a.sort=[]})},updateFilteredColumns:function(){return t(function(r){var i,a=mS(r.sort,(i=kt[r==null?void 0:r.cellTypes[r.sort[0]]])==null?void 0:i.sortValueType),o=[].concat(hS(r.data,r.filters,r.cellTypes));o=o.sort(a),r.filteredData=o,r.diffs=vS(r.filteredData);var s=Object.keys(r.schema||{}).filter(function(u){return r.schema[u]==="category"});r.categoryValues=fa(s.map(function(u){var l=new Set(r.data.map(function(f){return f[u]}));return[u,Array.from(l).filter(function(f){var c;return(c=f||"")==null?void 0:c.trim().length}).map(function(f,c){return{value:f,count:r.filteredData.filter(function(d){return d[u]===f}).length,color:Wc[c%Wc.length]}})]}))})},columnWidths:[],updateColumnWidths:function(){return t(function(r){var i=r.columnNames.map(function(a,o){var s=r.cellTypes[a],u=kt[s];if(!u)return 150;var l=r.data.map(function(d){return u.format(d[a]||"").length}),f=$o([a.length*.6].concat(l)),c=yf([f+3,19]);return Math.max(u.minWidth||100,c*15)+(o===0?30:0)+(u.extraCellHorizontalPadding||0)});r.columnWidths=i})},updateColumnNames:function(){return t(function(r){if(!r.data.length){r.columnNames=[],r.stickyColumnName=void 0;return}var i=Object.keys(r.data[0]).filter(function(a){return!Co.includes(a)});!r.stickyColumnName||!i.includes(r.stickyColumnName||"")?r.columnNames=i:r.columnNames=[r.stickyColumnName||""].concat(i.filter(function(a){return a!==r.stickyColumnName}))})},isEditable:!1,handleIsEditableChange:function(r){return t(function(i){i.isEditable=r})},updatedData:null,onCellChange:function(r,i,a){t(function(o){var s=o.filteredData[r]||{},u=s[Vt],l=[].concat(o.rawData);if(!o.rawData[u]&&r===o.filteredData.length){var f;u=l.length,l.push(De((f={},f[Vt]=u,f),o.columnNames.reduce(function(c,d){var h;return De({},c,(h={},h[d]="",h))},{})))}l[u]&&l[u][i]!==a&&(l=l.map(function(c){var d=c[Vt];if(delete c[Vt],d===u){var h;return De({},c,(h={},h[i]=a,h))}return c}),o.updatedData=l)})},onRowDelete:function(r){t(function(i){var a=i.filteredData[r],o=a[Vt];if(i.rawData[o]){var s=[].concat(i.rawData).map(function(u){return delete u[Vt],u});s.splice(o,1),i.updatedData=s}})},onHeaderCellChange:function(r,i){t(function(a){var o=[].concat(a.rawData).map(function(s){return a.columnNames.reduce(function(u,l){return l===r?u[i]=s[r]:l!==Vt&&(u[l]=s[l]),u},{})});a.updatedData=o})},onHeaderAdd:function(r){t(function(i){var a=[].concat(i.rawData).map(function(o){var s;return De({},o,(s={},s[r]=o[r]||"",s))});i.updatedData=a})},onHeaderDelete:function(r){t(function(i){var a=[].concat(i.rawData).map(function(o){return i.columnNames.reduce(function(s,u){return u!==r&&(s[u]=o[u]),s},{})});i.updatedData=a})},focusedCellPosition:null,handleFocusedCellPositionChange:function(r){return t(function(i){i.focusedCellPosition=r})}}}))},Co=["__status__","__modifiedColumnNames__","__rowIndex__","__rawData__",Vt];function hS(e,t,n){return Object.keys(t).reduce(function(r,i){var a=t[i];return typeof a=="string"?n[i]==="category"?r.filter(function(o){return o[i]===a}):js(r,a,{keys:[i]}):Array.isArray(a)?r.filter(function(o){return pS(a,o[i])}):r},e)}var pS=function(t,n){return n>=t[0]&&n<=t[1]},mS=function(t,n){var r=t[0],i=t[1];return function(a,o){var s=a[r];if(n==="string"){var u;s=((u=s||"")==null||u.toUpperCase==null?void 0:u.toUpperCase())||"",(!s||s===`
`)&&(s=i==="asc"?"zzzzzz":""),s=s.trimStart()}else n==="number"&&(s=Number.isFinite(s)?s:1/0*(i==="asc"?1:-1));var l=o[r];if(n==="string"){var f;l=((f=l||"")==null||f.toUpperCase==null?void 0:f.toUpperCase())||"",(!l||l===`
`)&&(l=i==="asc"?"zzzzzz":""),l=l.trimStart()}else n==="number"&&(l=Number.isFinite(l)?l:1/0*(i==="asc"?1:-1));return i=="desc"?Fo(s,l):Fo(l,s)}};function gS(e){var t=Object.keys(e[0]||{}),n=fa(t.map(function(r){var i=function(I){return I.find(function(N){return N[r]!==void 0&&N[r]!==null&&N[r]!==""})||{}},a=i(e)[r];if(!a&&a!==0)return[r,"string"];var o=function(I){try{if(typeof I=="string"){var N=new Date;return!!aa.find(function(A){return pr(Jo(I,A,N))})}else return!1}catch{return!1}},s=function(I){try{if(typeof I=="string"){var N=new Date;return!!Ih.find(function(A){return pr(Jo(I,A,N))})}return!1}catch{return!1}},u=function(I){try{if(typeof I=="string"){var N=Vi(I);return!!N&&!Number.isNaN(N.r)}return!1}catch{return!1}},l=o(a);if(l){var f=e.map(function(x){return x[r]}).filter(function(x){return x}),c=!f.slice(0,30).find(function(x){return!o(x)});if(c){var d=En(f,function(x){return new Date(x).getTime()}),h=1e3*60*60*24*365,p=d[1]-d[0]>h?"date":"short-range-date";return[r,p]}}var m=s(a);if(m){var C=e.map(function(x){return x[r]}).filter(function(x){return x}).slice(0,30),y=!C.find(function(x){return!s(x)});if(y)return[r,"time"]}var v=u(a);if(v){var w=e.map(function(x){return x[r]}).filter(function(x){return x}).slice(0,30),D=!w.find(function(x){return!u(x)});if(D)return[r,"color"]}var g=Array.isArray(a);if(g){var _=e.map(function(x){return x[r]}).filter(function(x){return x}),S=_.map(function(x){return x.length}),F=!!S.find(function(x){return x>1});return[r,F||typeof a[0]!="string"?"array":"short-array"]}var P=typeof a=="object";if(P)return[r,"object"];var k=Number.isFinite(+a);if(k)return[r,r.toLowerCase().trim()==="year"?"year":"number"];var b=new Set(e.map(function(x){return x[r]})),M=Math.min(Math.floor(e.length/3),20);return[r,b.size<M?"category":"string"]}));return n}var To=function(t,n){var r=Object.keys(n).map(function(i){var a=n[i],o=kt[a]||{},s=o.parseValueFunction||function(u){return u};return[i,s]});return t.map(function(i){return De({},i,fa(r.map(function(a){var o=a[0],s=a[1];return[o,s(i[o])]})),{__rawData__:i})})},aa=["MM/dd/yy","MM-dd-yy","dd/MM/yy","dd-MM-yy","MM/dd/yyyy","MM-dd-yyyy","dd/MM/yyyy","dd-MM-yyyy","yyyy-MM-dd","yyyyMMdd"],Ih=["yyyy-MM-dd HH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd'T'HH:mm:ssxxxx","yyyy-MM-dd'T'HH:mm:ss","yyyy-MM-dd'T'HH:mm:ssSSxxxx","yyyy-MM-dd'T'HH:mm:ss.SSSX","yyyy-MM-dd'T'HH:mm:ss.SSSSX","yyyy-MM-dd'T'HH:mm:ss.SSSSxxxx","dd/MM/yy hh:mmaa","dd/MM/yy HH:mm","MM/dd/yy HH:mm","MM/dd/yy hh:mmaa","dd/MM/yyyy hh:mmaa","dd/MM/yyyy HH:mm","MM/dd/yyyy HH:mm","MM/dd/yyyy hh:mmaa"],So=function(t,n){t===void 0&&(t=""),n===void 0&&(n=aa);var r=Date.parse(t);if(pr(r))return r;for(var i=XT(n),a;!(a=i()).done;){var o=a.value;if(r=Jo(t,o,new Date),pr(r))return r}return r=pC(t),pr(r)?r:null},vS=function(t){var n=[];return t.forEach(function(r,i){r.__status__&&n.push(De({},r,{i}))}),n},kt={string:{cell:di,filter:or,format:function(t){return t},shortFormat:function(t){return t},sortValueType:"string"},color:{cell:rS,filter:or,format:function(t){return t},shortFormat:function(t){return t},sortValueType:"string"},object:{cell:di,filter:or,format:function(t){return JSON.stringify(t)},shortFormat:function(t){return JSON.stringify(t)},parseValueFunction:function(t){return typeof t=="object"?JSON.stringify(t,void 0,2):typeof t=="string"?t:""},sortValueType:"string"},array:{cell:di,filter:or,format:function(t){return t},shortFormat:function(t){return t},parseValueFunction:function(t){return Array.isArray(t)?"["+t.length+" item"+(t.length===1?"":"s")+"]":typeof t=="string"?t:""},sortValueType:"string"},"short-array":{cell:di,filter:or,format:function(t){return t},shortFormat:function(t){return t},parseValueFunction:function(t){return Array.isArray(t)?t[0]:t},sortValueType:"string"},category:{cell:iS,filter:sS,format:function(t){return t},shortFormat:function(t){return t},parseValueFunction:function(t){return t},sortValueType:"string",extraCellHorizontalPadding:6},number:{cell:tS,filter:sr,format:function(t){return(t==null?void 0:t.toLocaleString())+""},shortFormat:function(t){return t<1e3&&yS(t)?dn(",.0f")(t):t<1?dn(".2f")(t):dn(",.2s")(t)},parseValueFunction:function(t){if(typeof t=="string"){if(!t.length)return}else if(t==null)return t;return+t},minWidth:126,hasScale:!0,sortValueType:"number"},year:{cell:nS,filter:sr,format:function(t){return t+""},shortFormat:function(t){return t},parseValueFunction:function(t){return+t},minWidth:126,hasScale:!0,sortValueType:"number"},"short-range-date":{cell:Uc,filter:sr,format:jt("%B %-d %Y"),shortFormat:jt("%-m/%-d"),parseValueFunction:function(t){return t===void 0&&(t=""),So(t,aa)},hasScale:!0,sortValueType:"number"},date:{cell:Uc,filter:sr,format:jt("%B %-d %Y"),shortFormat:jt("%-Y"),parseValueFunction:function(t){return t===void 0&&(t=""),So(t,aa)},hasScale:!0,sortValueType:"number"},time:{cell:eS,filter:sr,format:jt("%B %-d, %Y %-H:%M"),shortFormat:jt("%-m/%-d %-H:%M"),parseValueFunction:function(t){return t===void 0&&(t=""),So(t,Ih)},hasScale:!0,sortValueType:"number"}},Wc=[{"--tw-bg-opacity":"1",backgroundColor:"rgba(243, 244, 246, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(75, 85, 99, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(254, 243, 199, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(217, 119, 6, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(224, 231, 255, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(79, 70, 229, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(252, 231, 243, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(219, 39, 119, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(219, 234, 254, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(37, 99, 235, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(209, 250, 229, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(5, 150, 105, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(237, 233, 254, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(124, 58, 237, var(--tw-text-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"rgba(254, 226, 226, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(220, 38, 38, var(--tw-text-opacity))"}],yS=function(t){return Math.abs(Math.round(t)-t)<.06},Oh=z.createContext(Ah()),su=function(t){var n=z.useContext(Oh);return n(t)};function wS(e){var t=e.children,n=z.useState(Ah),r=n[0];return E(Oh.Provider,{value:r},t)}function hs(e){return{row:(e==null?void 0:e.props.rowIndex)||0,column:(e==null?void 0:e.props.columnIndex)||0}}function bS(e){var t=e[0],n=hs(t),r=e[e.length-1],i=hs(r),a=Math.min(n.row,1/0),o=Math.max(i.row,0),s=Math.min(n.column,1/0),u=Math.max(i.column,0);return{from:{row:a==1/0?0:a,column:s==1/0?0:s},to:{row:o,column:u}}}function _S(e,t,n,r,i,a){return z.useMemo(function(){return z.forwardRef(function(o,s){function u(y){for(var v=0;y>1;)v+=n(y-1),y-=1;return v}function l(y){for(var v=0;y>i;)v+=t(y-1),y-=1;return v}var f=bS(o.children),c=f.to.column-f.from.column+2||r.columnNames.length,d=f.to.row-f.from.row,h=new Array(c).fill(0),p=new Array(d||1).fill(0),m=[].concat(h,[0]).map(function(y,v){return t(v+f.from.column)||0}),C=m.reduce(function(y,v){return y+v},0);return E("div",{ref:s,style:De({},o.style,{height:o.style.height+60,minWidth:C,background:"linear-gradient(to bottom, #E5E7EB 1px, white 1px) 0 -4px",backgroundSize:"100% "+n(1)+"px"})},E("div",{css:[{display:"flex",position:"sticky",top:"0px",zIndex:"300"}]},i>0&&E(a,{key:"0:0",rowIndex:0,columnIndex:0,data:r,style:{flex:"none",display:"inline-flex",width:t(0),height:n(0),position:"sticky",top:0,left:0,zIndex:200}}),h.map(function(y,v){var w=v+f.from.column+i,D=0,g=t(w),_=n(D),S=v===i?l(w-i):void 0;return E(a,{key:D+":"+w,rowIndex:D,columnIndex:w,data:r,style:{flex:"none",marginLeft:S,display:"flex",width:g,height:_,zIndex:100}})})),i>0&&p.map(function(y,v){var w=0,D=v+f.from.row,g=t(w),_=n(D+1),S=v===1?u(D):void 0;return E(e,{key:D+":"+w,rowIndex:D+1,columnIndex:w,data:r,style:{marginTop:S,width:g,height:_,position:"sticky",left:0,zIndex:60}})}),o.children.filter(function(y){var v=hs(y),w=v.column,D=v.row;return w>=i&&D!==0}))})},[e,t,n,i])}var xS=z.forwardRef(function(e,t){return E(ST,De({},e,{ref:t,innerElementType:_S(e.children,e.columnWidth,e.rowHeight,e.itemData,e.numberOfStickiedColumns,e.HeaderComponent)}))}),CS=z.memo(function(e){var t=e.value,n=e.isEditable,r=e.onChange,i=e.children,a=z.useState(!1),o=a[0],s=a[1],u=z.useState(t),l=u[0],f=u[1];J.useEffect(function(){f(t)},[t]);var c=function(){r==null||r(l),s(!1)};return n?o?E("form",{onSubmit:function(h){h.preventDefault(),c()},css:[{width:"100%",height:"100%",maxWidth:"100%",fontSize:"0.875rem",lineHeight:"1.25rem"}]},E("input",{type:"text",autoFocus:!0,onFocus:function(h){h.target.select()},css:[{width:"100%",height:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"--tw-text-opacity":"1",color:"rgba(0, 0, 0, var(--tw-text-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"}],value:l,onChange:function(h){return f(h.target.value)},onKeyDown:function(h){h.stopPropagation(),h.key==="Enter"?c():h.key==="Escape"&&(s(!1),f(t))},onBlur:function(){s(!1),f(t)}})):E("button",{css:[{height:"100%",width:"100%",maxWidth:"100%",display:"flex",alignItems:"center",cursor:"cell"},"text-align: inherit"],onClick:function(){s(!0)}},i):i},iu);function TS(e){var t=e.style,n=e.onAdd,r=J.useState(!1),i=r[0],a=r[1],o=J.useState(""),s=o[0],u=o[1];return E("div",{className:"sticky-grid__header",css:[{borderBottomWidth:"1px",borderRightWidth:"1px","--tw-bg-opacity":"1",backgroundColor:"rgba(249, 250, 251, var(--tw-bg-opacity))","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))",flexDirection:"column"},t]},i?E("form",{css:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",paddingTop:"1.5rem",paddingBottom:"1.5rem",paddingLeft:"0.75rem",paddingRight:"0.75rem"},onSubmit:function(f){f.preventDefault(),n(s),a(!1)}},E("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgba(107, 114, 128, var(--tw-text-opacity)) !important"}},"Column Name"),E("input",{type:"text",autoFocus:!0,onFocus:function(f){f.target.select()},css:{width:"100%",height:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem",paddingRight:"0.5rem","--tw-text-opacity":"1",color:"rgba(0, 0, 0, var(--tw-text-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(209, 213, 219, var(--tw-border-opacity))"},value:s,onChange:function(f){return u(f.target.value)},onKeyDown:function(f){f.key==="Escape"&&(a(!1),u(""))},onBlur:function(){a(!1),u("")}})):E("button",{css:{height:"100%",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1.5rem","--tw-text-opacity":"1",color:"rgba(107, 114, 128, var(--tw-text-opacity)) !important",fontSize:"0.875rem !important",lineHeight:"1.25rem !important",textAlign:"center"},onClick:function(){return a(!0)}},E(au,null),"Add a column"))}function SS(e){var t=e.style,n=e.columnName,r=e.activeSortDirection,i=e.width,a=e.metadata,o=e.originalData,s=e.filteredData,u=e.possibleValues,l=e.filter,f=e.cellType,c=e.cellInfo,d=e.focusedValue,h=e.showFilters,p=e.isFirstColumn,m=e.isSticky,C=e.isNewColumn,y=e.isEditable,v=e.onChange,w=e.onDelete,D=e.onAdd,g=e.onFilterChange,_=e.onSort,S=e.onSticky,F=c.filter;return C?E(TS,{style:t,onAdd:D}):E("div",{className:"sticky-grid__header",css:{borderBottomWidth:"1px",borderRightWidth:"1px","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))",flexDirection:"column"},style:De({},t)},E(DS,{cellType:f,columnName:n,activeSortDirection:r,metadata:a,isSticky:m,onSticky:S,onSort:_,isEditable:y,onChange:v,onDelete:w}),h&&E("div",{css:[{flex:"1 1 0%",display:"flex",flexDirection:"column",padding:"0.5rem",justifyContent:"center",alignItems:"flex-start"},p&&{paddingLeft:"2rem"}]},E(F,{id:n,onChange:g,originalData:o,filteredData:s,value:l,possibleValues:u,maxWidth:i,shortFormat:c.shortFormat,longFormat:c.format,focusedValue:d})))}var DS=J.memo(function(e){var t=e.cellType,n=e.columnName,r=e.activeSortDirection,i=e.metadata,a=e.isSticky,o=e.onSticky,s=e.onSort,u=e.isEditable,l=e.onChange,f=e.onDelete;return E("div",{className:"header",css:{position:"relative",borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",display:"flex",alignItems:"center",flexShrink:"0"},style:{height:37}},E("div",{className:"header__title",css:{position:"absolute",top:"0px",left:"0px",bottom:"0px",zIndex:"10","--tw-bg-opacity":"1",backgroundColor:"rgba(249, 250, 251, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(75, 85, 99, var(--tw-text-opacity))","--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",display:"flex",alignItems:"center"}},E("button",{className:"header__icon header__pin",css:[{height:"100%",padding:"0.5rem",display:"flex",alignItems:"center","--tw-border-opacity":"1",borderColor:"rgba(224, 231, 255, var(--tw-border-opacity))",":focus":{"--tw-bg-opacity":"1",backgroundColor:"rgba(224, 231, 255, var(--tw-bg-opacity)) !important",opacity:"1","--tw-ring-opacity":"1","--tw-ring-color":"rgba(165, 180, 252, var(--tw-ring-opacity))"},":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(224, 231, 255, var(--tw-bg-opacity)) !important"},appearance:"none","--tw-text-opacity":"1",color:"rgba(129, 140, 248, var(--tw-text-opacity)) !important","--tw-bg-opacity":"1",backgroundColor:"rgba(238, 242, 255, var(--tw-bg-opacity)) !important"},a?{opacity:"1"}:{opacity:"0",marginLeft:"-1.5rem !important","--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],onClick:function(){return o()}},E(Dh,null)),E("div",{className:"",css:[{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%","--tw-border-opacity":"1",borderColor:"rgba(255, 255, 255, var(--tw-border-opacity))",":focus":{"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"},":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"},appearance:"none",flex:"1 1 0%",minWidth:"0px"},["integer","number"].includes(t)&&{textAlign:"right"}]},E(CS,{value:n,isEditable:u,onChange:l},E("div",{css:[{width:"100%",padding:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}],title:n},n,!!i&&E("span",{css:{paddingLeft:"0.5rem",display:"inline-block","--tw-text-opacity":"1",color:"rgba(209, 213, 219, var(--tw-text-opacity))"}},E(fs,null)))),u&&E("button",{className:"header__icon header__delete",css:[{height:"100%",display:"flex",alignItems:"center",justifyContent:"center","--tw-text-opacity":"1",color:"rgba(239, 68, 68, var(--tw-text-opacity)) !important"},{opacity:"0",width:"0px",padding:"0px"}],onClick:function(){return f==null?void 0:f()}},E(ou,null)),E("button",{className:"header__icon",css:[{display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:"0.25rem",paddingRight:"0.25rem",marginRight:"-0.5rem"},r?{opacity:"1"}:{opacity:"0","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity)) !important"}],onClick:function(){return s(n,r=="asc"?"desc":"asc")}},r=="desc"?E(_h,null):E(Th,null))),!!i&&E("div",{className:"header__icon",css:{"--tw-translate-x":"0","--tw-translate-y":"100%","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",fontSize:"0.875rem",lineHeight:"1.25rem",position:"absolute",bottom:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",padding:"1rem","--tw-text-opacity":"1",color:"rgba(99, 102, 241, var(--tw-text-opacity))",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(165, 180, 252, var(--tw-border-opacity))",paddingTop:"0.75rem",paddingBottom:"0.75rem","--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",left:"0px",right:"0px",pointerEvents:"none",opacity:"0"}},E("div",{css:{paddingRight:"0.5rem",display:"inline-block","--tw-text-opacity":"1",color:"rgba(199, 210, 254, var(--tw-text-opacity))"}},E(fs,null)),i)))}),ES=z.memo(function(e){var t=e.value,n=e.isFirstColumn,r=e.isEditable,i=e.onChange,a=e.isFocused,o=e.isExtraBlankRow,s=e.onFocusChange,u=e.onRowDelete,l=e.children,f=z.useState(!1),c=f[0],d=f[1],h=z.useRef(c),p=z.useRef(!1),m=z.useRef(null),C=z.useState(t||""),y=C[0],v=C[1];J.useEffect(function(){v(t||"")},[t]),J.useEffect(function(){h.current=c},[c]);var w=function(){p.current=!0,i==null||i(y),d(!1),s==null||s([1,0])};return J.useEffect(function(){if(a)m.current&&m.current.focus(),p.current=!1;else{d(!1),v(t);return}var D=function(_){var S=Bc[_.key];if(S)_.metaKey&&(S=S.map(function(P){return P&&1/0*P})),s==null||s(S),_.stopPropagation(),_.preventDefault();else if(_.key==="Enter"&&!h.current){var F;if((F=_.target)!=null&&F.classList.contains("delete-button"))return;setTimeout(function(){d(!0)},0)}else _.key==="Escape"&&(h.current||s==null||s(null))};return window.addEventListener("keydown",D),function(){window.removeEventListener("keydown",D)}},[a]),r?c?E("form",{onSubmit:function(g){g.preventDefault(),g.stopPropagation(),w()},css:[{width:"100%",height:"100%",borderWidth:"3px",borderColor:"transparent"},o?"border-gray-300":"border-indigo-500"]},E("input",{type:"text",autoFocus:!0,onFocus:function(g){g.target.select()},css:[{width:"100%",height:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"1rem",paddingRight:"1rem",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:"0.875rem",lineHeight:"1.25rem",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},backgroundColor:"transparent"}],value:y||"",onChange:function(g){return v(g.target.value)},onKeyDown:function(g){g.key==="Escape"?d(!1):Bc[g.key]&&g.stopPropagation()},onBlur:function(){p.current||(i==null||i(y),d(!1))}})):E("div",{css:[{width:"100%",height:"100%"}]},n&&E("button",{css:[{position:"absolute",height:"100%","--tw-text-opacity":"1",color:"rgba(239, 68, 68, var(--tw-text-opacity)) !important",opacity:"0",":focus":{opacity:"1"}}],className:"delete-button",onClick:function(g){g.stopPropagation(),g.preventDefault(),u==null||u()}},E(ou,null)),E("button",{ref:m,css:[{width:"100%",height:"100%",display:"flex",alignItems:"center",cursor:"cell",borderWidth:"3px",borderColor:"transparent",":focus":{outline:"2px solid transparent",outlineOffset:"2px"}},a&&(o?{"--tw-border-opacity":"1",borderColor:"rgba(209, 213, 219, var(--tw-border-opacity))"}:{"--tw-border-opacity":"1",borderColor:"rgba(99, 102, 241, var(--tw-border-opacity))"})],onFocus:function(){return s==null?void 0:s([0,0])},onClick:function(){return s==null?void 0:s([0,0])},onDoubleClick:function(){return d(!0)}},l)):l},iu),Bc={ArrowUp:[-1,0],ArrowDown:[1,0],ArrowLeft:[0,-1],ArrowRight:[0,1]},Vc=YT().add("ftp:",null).add("mailto:",null),MS=z.memo(function(e){var t=e.type,n=e.value,r=e.rawValue,i=e.formattedValue,a=e.categoryColor,o=e.status,s=e.isFirstColumn,u=e.isExtraBlankRow,l=e.isNearRightEdge,f=e.isNearBottomEdge,c=e.isEditable,d=e.onCellChange,h=e.onRowDelete,p=e.isFocused,m=e.onFocusChange,C=e.background,y=e.style,v=y===void 0?{}:y,w=e.onMouseEnter,D=w===void 0?function(){}:w,g=kt[t],_=g||{},S=_.cell,F=(i||n||"").toString(),P=(F||"").length>23,k=z.useMemo(function(){if(!F)return"";var x=Js.sanitize(F);if(!Vc.test(x))return x;var I=Vc.match(x);return!I||I.length===0?x:'<a href="'+I[0].url+`" target="_blank" rel="noopener">
`+I[0].url+`
</a>`},[n]);if(J.useEffect(function(){p&&D()},[p]),!g)return null;var b=s&&{new:au,old:Sh,modified:ra,"modified-row":ra}[o||""],M=s&&{new:"text-green-400",old:"text-pink-400",modified:"text-yellow-500","modified-row":"text-yellow-500"}[o||""]||"";return E("div",{className:"cell",css:[{display:"flex",borderBottomWidth:"1px",borderRightWidth:"1px"},o==="new"&&{"--tw-border-opacity":"1",borderColor:"rgba(167, 243, 208, var(--tw-border-opacity))"},o==="old"&&{"--tw-border-opacity":"1",borderColor:"rgba(251, 207, 232, var(--tw-border-opacity))"},o==="modified"&&{"--tw-border-opacity":"1",borderColor:"rgba(253, 230, 138, var(--tw-border-opacity))"},o==="modified-row"&&{"--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))"},!o&&{"--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))"}],style:De({},v,{background:C||"#fff"})},E(ES,{value:r,isEditable:c,isFirstColumn:s,onChange:d,isFocused:p,isExtraBlankRow:u,onFocusChange:m,onRowDelete:h},E(AS,{value:n,isFirstColumn:s,statusColor:M,StatusIcon:b,rawValue:r,categoryColor:a,isLongValue:P,isNearBottomEdge:f,isNearRightEdge:l,stringWithLinks:k,CellComponent:S,onMouseEnter:D})))},iu),AS=z.memo(function(t){var n=t.value,r=t.isFirstColumn,i=t.statusColor,a=t.StatusIcon,o=t.rawValue,s=t.categoryColor,u=t.isLongValue,l=t.isNearBottomEdge,f=t.isNearRightEdge,c=t.stringWithLinks,d=t.CellComponent,h=t.onMouseEnter;return E("div",{css:[{width:"100%",height:"100%",display:"flex",flex:"none",alignItems:"center",paddingLeft:"1rem",paddingRight:"1rem"},typeof n>"u"||Number.isNaN(n)&&{"--tw-text-opacity":"1",color:"rgba(209, 213, 219, var(--tw-text-opacity))"}],onMouseEnter:function(){return h==null?void 0:h()}},r&&E("div",{css:[{width:"1.5rem",flex:"none"},i]},a&&E(a,null)),E(d,{value:n,formattedValue:c,rawValue:o,categoryColor:s}),u&&E("div",{className:"cell__long-value",css:[{position:"absolute",padding:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",opacity:"0",zIndex:"30",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))","--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",pointerEvents:"none",wordBreak:"break-all",textAlign:"left"},l?{bottom:"0px"}:{top:"0px"},f?{right:"0px"}:{left:"0px"}],style:{width:"max-content",maxWidth:"27em"},title:o},E("div",{css:{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"9"},dangerouslySetInnerHTML:{__html:c}})))}),IS=function(){return E("svg",{tw:"animate-pulse w-12 text-indigo-500",viewBox:"0 0 25 10"},E("circle",{r:"2",cx:"5",cy:"5",fill:"currentColor",tw:"animate-bounce"}),E("circle",{r:"2",cx:"12",cy:"5",fill:"currentColor",tw:"animate-bounce",style:{animationDelay:"0.3s"}}),E("circle",{r:"2",cx:"19",cy:"5",fill:"currentColor",tw:"animate-bounce",style:{animationDelay:"0.6s"}}))};function OS(e){var t,n=e.downloadFilename,r=e.canDownload,i=r===void 0?!0:r,a=z.useState(),o=a[0],s=a[1],u=z.useState(),l=u[0],f=u[1],c=z.useRef(),d=!0,h=su(function(te){return te}),p=h.data,m=h.columnNames,C=h.handleDataChange,y=h.handleDiffDataChange,v=h.uniqueColumnName,w=h.diffs,D=h.stickyColumnName,g=h.sort,_=h.filteredData,S=h.filters,F=h.focusedRowIndex,P=h.handleFocusedRowIndexChange,k=h.handleMetadataChange,b=h.handleFiltersChange,M=h.updateFilteredColumns,x=h.updateColumnNames,I=h.handleSortChange,N=h.handleStickyColumnNameChange,A=h.columnWidths,H=h.updateColumnWidths,U=h.schema,K=h.cellTypes,X=h.handleIsEditableChange,ne=h.updatedData,j=h.focusedCellPosition;z.useEffect(function(){var te;C(e.data),q.current&&(j||(te=q.current)==null||te.scrollToItem({columnIndex:0,rowIndex:0,align:"center"}))},[e.data]),z.useEffect(function(){if(j&&q.current){for(var te=q.current.props.numberOfStickiedColumns,xe=q.current.state.scrollLeft,ue=j[1],Ye=function(Yn){return Yn.reduce(function(Qn,Ra){return Qn+Ra},0)},ke=Ye(A.slice(0,te)),Be=xe+ke,Qe=Ye(A.slice(0,ue)),$e=0,Ut=Ye(A.slice(ue-$e,ue));Qe<Be&&Ut<ke&&ue>0;)$e+=1,Ut=Ye(A.slice(ue-$e,ue));ue-=$e;var at=q.current.props.rowHeight(1),Kr=q.current.props.rowHeight(0),qn=q.current.state.scrollTop,Gr=at,_n=q.current.props.height-Gr,Xt=j[0],wt=Kr+at*Xt;wt>qn+_n&&(Xt+=1),q.current.scrollToItem({rowIndex:Xt,columnIndex:ue,align:"nearest"})}},[j]),z.useEffect(function(){e.metadata&&k(e.metadata)},[e.metadata]),z.useEffect(function(){e.diffData&&y(e.diffData)},[e.diffData,e.data]),z.useEffect(function(){e.defaultFilters&&b(e.defaultFilters)},[jc(e.defaultFilters),e.data]),z.useEffect(function(){e.defaultSort&&I(e.defaultSort[0],e.defaultSort[1])},[(t=e.defaultSort)==null?void 0:t.join(",")]),z.useEffect(x,[e.data,D]),z.useEffect(function(){e.defaultStickyColumnName&&N(e.defaultStickyColumnName)},[e.defaultStickyColumnName]),z.useEffect(function(){X(!!e.isEditable)},[e.isEditable]),z.useEffect(function(){ne!==null&&(!e.onEdit||!e.isEditable||e.onEdit(ne))},[ne]),z.useEffect(M,[p,S,g]),z.useEffect(function(){if(typeof e.onChange=="function"&&U){var te={stickyColumnName:D,columnNames:m,filteredData:_,diffs:w,filters:S,sort:g,schema:U};e.onChange(te)}},[g,D,jc(S)]);var oe=function(){var xe;q==null||(xe=q.current)==null||xe.scrollToItem({rowIndex:0})};z.useEffect(oe,[g.join(",")]);var Q=Object.keys(S).length>0;z.useEffect(H,[m,p]);var se=z.useMemo(function(){var te=[].concat(_);if(e.isEditable){var xe=new Array(Rh).fill(null).map(function(){return{}});te=[].concat(te,xe)}return te},[_,e.isEditable]),ee=z.useCallback(function(te){return A[te]||150},[A.join(",")]),fe=z.useCallback(function(te){return te?40:117},[]),re=z.useMemo(function(){var te=[].concat(m);return e.isEditable&&(te=[].concat(te,["__new-blank-column__"])),te},[m,e.isEditable]),O=z.useMemo(function(){var te=[].concat(A);return e.isEditable&&(te=[].concat(te,[ee(A.length)])),te},[m,e.isEditable]),Y=z.useMemo(function(){var te={};return re.forEach(function(xe){var ue=K[xe],Ye=kt[ue]||{};if(Ye.hasScale){var ke=Qi().domain(En(p,function(Be){return Be[xe]})).range(["rgba(200,200,200,0)","rgba(224,231,255,1)"]);te[xe]=ke}}),te},[p]),G=w.filter(function(te){return te.__status__==="new"}),R=w.filter(function(te){return te.__status__==="old"}),ae=w.filter(function(te){return te.__status__==="modified"}),q=NS([O]),Ce=function(xe){xe===void 0&&(xe=0);var ue=0;if(typeof l!="number"&&typeof c.current=="number")if(c.current===0)ue=w.length;else{var Ye=Math.round((c.current-117)/40)+6,ke=Hp(w.map(function($e){return $e.__rowIndex__}),Ye);ue=xe<0?ke-1:ke}else ue=((l||0)+xe)%w.length;ue<0&&(ue=w.length+ue),f(ue);var Be=w[ue]||{};if(v){var Qe=_.findIndex(function($e){return $e[v]===Be[v]});q.current&&(q.current.scrollToItem({rowIndex:Qe,align:"center"}),P(Qe),s(void 0))}},Me=function(xe){var ue=xe.scrollTop,Ye=xe.scrollUpdateWasRequested;Ye||(c.current=ue,typeof l=="number"&&f(void 0))},Ne=function(){var xe="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(_.map(function(ke){return fa(m.map(function(Be){return[Be,ke.__rawData__[Be]||ke[Be]]}))}))),ue=document.createElement("a");ue.setAttribute("href",xe);var Ye=new Date().toDateString();ue.setAttribute("download",(n||"flat-ui__data-"+Ye)+".json"),document.body.appendChild(ue),ue.click(),document.body.removeChild(ue)},Ht=function(){var xe=[m.map(function(Qe){return Qe}),_.map(function(Qe){return m.map(function($e){var Ut=Qe.__rawData__[$e]||Qe[$e],at=typeof Ut=="object"?JSON.stringify(Ut):Ut;return typeof at=="string"&&(at.includes('"')||at.includes(",")||at.includes(`
`))&&(at='"'+at.replace(/"/g,'""')+'"'),at}).join(",")}).join(`
`)].join(`
`),ue=new Blob([xe],{type:"text/csv;charset=utf-8;"}),Ye=URL.createObjectURL(ue),ke=document.createElement("a");ke.setAttribute("href",Ye);var Be=new Date().toDateString();ke.setAttribute("download",(n||"flat-ui__data-"+Be)+".csv"),document.body.appendChild(ke),ke.click(),document.body.removeChild(ke)};return U?Object.keys(U).length?E("div",{css:{display:"flex",flexDirection:"column",height:"100%","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"},className:"fade-up-in"},E("div",{css:{flex:"1 1 0%",width:"100%",height:"100%"},style:{background:"linear-gradient(to bottom, #E5E7EB 1px, transparent 1px) 0 -4px",backgroundSize:"100% 40px"},onMouseLeave:function(){return P(void 0)}},E(pT,null,function(te){var xe=te.height,ue=te.width;return E(xS,{ref:q,height:xe,width:ue,rowCount:se.length+1,columnWidth:ee,columnCount:re.length,rowHeight:fe,columnWidths:O,numberOfStickiedColumns:ue<700?0:1,overscanRowCount:5,onScroll:Me,itemData:{filteredData:se,focusedRowIndex:F,focusedColumnIndex:o,setFocusedColumnIndex:s,columnScales:Y,columnNames:re,showFilters:d},HeaderComponent:kh},RS)}),!!Object.keys(S).length&&!_.length&&E("div",{css:{position:"absolute",width:"100%",display:"flex",justifyContent:"center",fontStyle:"italic","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))"},style:{marginTop:165}},"No data with those filters")),E("div",{css:{flex:"none",width:"100%",display:"flex",flexWrap:"wrap",verticalAlign:"middle",justifyContent:"space-between",zIndex:"20","--tw-bg-opacity":"1",backgroundColor:"rgba(31, 41, 55, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))",borderTopWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem"}},E("div",{css:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"1rem",paddingRight:"1rem"}},!!w.length&&E(z.Fragment,null,"Changes:",E("div",{css:{display:"flex",paddingLeft:"0.5rem",paddingRight:"0.5rem"}},!!G.length&&E("div",{css:{paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgba(16, 185, 129, var(--tw-text-opacity))",fontWeight:"600"}},"+",G.length," row",G.length===1?"":"s"),!!ae.length&&E("div",{css:{paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgba(245, 158, 11, var(--tw-text-opacity))",fontWeight:"600"}},E("span",{style:{marginRight:1}},E(ra,null)),ae.length," row",ae.length===1?"":"s"),!!R.length&&E("div",{css:{paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem","--tw-text-opacity":"1",color:"rgba(236, 72, 153, var(--tw-text-opacity))",fontWeight:"600"}},"-",R.length," row",R.length===1?"":"s")),E("button",{css:{},onClick:function(){return Ce(-1)}},E(xh,null)),E("div",{css:{"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"tabular-nums","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)",fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",paddingLeft:"0.25rem",paddingRight:"0.25rem",textAlign:"center"}},typeof l=="number"?l+1:""),E("button",{css:{},onClick:function(){return Ce(1)}},E(Ch,null))),E("div",{css:{margin:"0.5rem","--tw-text-opacity":"1",color:"rgba(229, 231, 235, var(--tw-text-opacity))",whiteSpace:"nowrap"}},"Showing ",_.length.toLocaleString(),Q&&" of "+p.length.toLocaleString()," row",p.length===1?"":"s"," × ",m.length.toLocaleString()," column",m.length===1?"":"s")),E("div",{css:{display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(0.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))"},margin:"0.5rem"}},i&&E("span",{css:{position:"relative",zIndex:"0",display:"inline-flex",borderRadius:"9999px"}},E("button",{onClick:Ht,type:"button",css:{position:"relative","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(0.25rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))"},display:"inline-flex",alignItems:"center",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgba(0, 0, 0, var(--tw-bg-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(17, 24, 39, var(--tw-bg-opacity))"},":focus":{"--tw-bg-opacity":"1",backgroundColor:"rgba(17, 24, 39, var(--tw-bg-opacity))",zIndex:"10",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgba(99, 102, 241, var(--tw-ring-opacity))","--tw-border-opacity":"1",borderColor:"rgba(99, 102, 241, var(--tw-border-opacity))"},fontSize:"0.875rem",lineHeight:"1.25rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(31, 41, 55, var(--tw-border-opacity))"}},E(cs,null),E("span",null,Q?"Filtered ":""," CSV")),E("button",{onClick:Ne,type:"button",css:{marginLeft:"-1px",position:"relative","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(0.25rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))"},display:"inline-flex",alignItems:"center",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgba(0, 0, 0, var(--tw-bg-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(17, 24, 39, var(--tw-bg-opacity))"},":focus":{"--tw-bg-opacity":"1",backgroundColor:"rgba(17, 24, 39, var(--tw-bg-opacity))",zIndex:"10",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgba(99, 102, 241, var(--tw-ring-opacity))","--tw-border-opacity":"1",borderColor:"rgba(99, 102, 241, var(--tw-border-opacity))"},fontSize:"0.875rem",lineHeight:"1.25rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(31, 41, 55, var(--tw-border-opacity))"}},E(cs,null),E("span",null,Q?"Filtered ":""," JSON"))),Q&&E("button",{css:{padding:"0.5rem",paddingLeft:"1.5rem",paddingRight:"1.5rem",display:"flex",justifyContent:"center",alignItems:"center","--tw-bg-opacity":"1",backgroundColor:"rgba(0, 0, 0, var(--tw-bg-opacity))",borderRadius:"9999px"},onClick:function(){return b()}},E("span",{css:{marginRight:"0.5rem"}},E(Eh,null)),"Clear filters")))):E("div",{css:{position:"relative",display:"flex",justifyContent:"center","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",width:"100%",height:"100%"}},E("div",{css:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"1rem",zIndex:"10"}},E("div",{css:{fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.75rem",fontStyle:"italic",paddingTop:"0.5rem"}},"No valid data"))):E("div",{css:{position:"relative",display:"flex",justifyContent:"center","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",width:"100%",height:"100%"}},E("div",{css:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"1rem",zIndex:"10"}},E(IS,null),E("div",{css:{fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.75rem",fontStyle:"italic",paddingTop:"0.5rem"}},"Loading...")),E("div",{css:{position:"absolute",top:"0px",right:"0px",bottom:"0px",left:"0px",zIndex:"0",animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},style:{background:"linear-gradient(to bottom, #E5E7EB 1px, white 1px) 0 -4px",backgroundSize:"100% 40px"}}))}var Rh=1,RS=function(t){var n,r,i,a=t.rowIndex,o=t.columnIndex,s=t.data,u=t.style,l=s.focusedColumnIndex,f=s.setFocusedColumnIndex,c=s.columnScales,d=su(),h=d.columnNames,p=d.filteredData,m=d.categoryValues,C=d.focusedRowIndex,y=d.handleFocusedRowIndexChange,v=d.cellTypes,w=d.isEditable,D=d.onCellChange,g=d.onRowDelete,_=d.focusedCellPosition,S=d.handleFocusedCellPositionChange,F=h[o],P=a-1,k=J.useCallback(function(O){D(P,F,O)},[D,P,F]),b=J.useCallback(function(){g(P)},[g,P]),M=J.useCallback(function(O){if(!O)S(null);else{var Y=O[0],G=O[1],R=Math.max(0,Math.min(P+Y,p.length-1+(w?Rh:0))),ae=Math.max(0,Math.min(o+G,h.length-1)),q=[R,ae];S(q)}},[P,o,p,w]),x=J.useCallback(function(){f(o),y(P)},[o,y,P,f]);if(P==-1)return E(kh,t);var I=v[F],N=p[P]||(n={},n[F]="",n),A=N[F],H=(r=N.__rawData__)==null?void 0:r[F],U=((i=kt[I||""])==null||i.format==null?void 0:i.format(A,H))||A,K=I==="category"?m[F]:[],X=K==null?void 0:K.find(function(O){return O.value===A}),ne=X==null?void 0:X.color,j=N.__status__;if(j==="modified"){var oe=N.__modifiedColumnNames__||[];j=oe.includes(F)?"modified":"modified-row"}var Q=c&&c[F],se=new Map([["new","#ECFDF5"],["old","#FDF2F8"],["modified","#FEFBEB"]]),ee=new Map([["new","#D1FBE5"],["old","#FBE7F3"],["modified","#FEF2C7"]]),fe=C==P?ee.get(j):se.get(j),re=l==o&&Q?Q(A):fe||(C==P?"#f3f4f6":"#fff");return E(kS,{type:I,value:A,rawValue:H,formattedValue:U,categoryColor:ne,background:re,style:u,status:j,isFirstColumn:o===0,isExtraBlankRow:P===p.length,isNearRightEdge:o>h.length-3,isNearBottomEdge:P>p.length-3,isEditable:w,isFocused:!!(_&&_[0]===P&&_[1]===o),onFocusChange:M,onCellChange:k,onRowDelete:b,onMouseEnter:x})},kS=z.memo(function(e){return E(MS,e)},function(e,t){return!(e.value!=t.value||e.type!=t.type||e.background!=t.background||e.style!=t.style||e.categoryColor!=t.categoryColor||e.status!=t.status||e.isNearRightEdge!=t.isNearRightEdge||e.isNearBottomEdge!=t.isNearBottomEdge||e.isExtraBlankRow!=t.isExtraBlankRow||e.isEditable!=t.isEditable||e.isFirstColumn!=t.isFirstColumn||e.isFocused!=t.isFocused||e.style.left!=t.style.left||e.style.top!=t.style.top||e.style.position!=t.style.position||e.style.display!=t.style.display||e.style.marginTop!=t.style.marginTop||e.style.marginLeft!=t.style.marginLeft)}),kh=function(t){var n=t.columnIndex,r=t.data,i=t.style,a=su(),o=a.data,s=a.columnNames,u=a.columnWidths,l=a.stickyColumnName,f=a.handleStickyColumnNameChange,c=a.filters,d=a.handleFilterChange,h=a.filteredData,p=a.metadata,m=a.sort,C=a.categoryValues,y=a.handleSortChange,v=a.focusedRowIndex,w=a.cellTypes,D=a.isEditable,g=a.handleFocusedCellPositionChange,_=a.onHeaderCellChange,S=a.onHeaderDelete,F=a.onHeaderAdd,P=z.useRef(""),k=r.showFilters,b=s[n];P.current=b;var M=u[n],x=w[b]||"string",I=kt[x]||{},N=J.useCallback(function(ee){_(b,ee)},[_,b]),A=J.useCallback(function(){S(b)},[S,b]),H=J.useCallback(function(ee){F(ee),g([0,s.length])},[F,g,s]),U=J.useCallback(function(){f(b)},[f,b]),K=J.useCallback(function(ee){d(P.current,ee)},[d,P]),X=D?s.length+1:s.length;if(n>=X)return null;var ne=D&&n===s.length,j=typeof v=="number"&&h[0]?(h[v]||{})[b]:void 0,oe=m[0]==b?m[1]:void 0,Q=l===b,se=x==="category"?C[b]:void 0;return E(FS,{style:i,columnName:b,cellType:x,cellInfo:I,width:M,activeSortDirection:oe,originalData:o,filteredData:h,filter:c[b],focusedValue:j,showFilters:k,possibleValues:se,isSticky:Q,isNewColumn:ne,metadata:p[b],isFirstColumn:n===0,isEditable:D,onChange:N,onDelete:A,onAdd:H,onSort:y,onSticky:U,onFilterChange:K})},FS=z.memo(function(e){return E(SS,e)},function(e,t){return!(e.cellType!=t.cellType||e.columnName!=t.columnName||e.activeSortDirection!=t.activeSortDirection||e.filteredData!=t.filteredData||e.filter!=t.filter||e.width!=t.width||e.isSticky!=t.isSticky||e.isNewColumn!=t.isNewColumn||e.isEditable!=t.isEditable||e.focusedValue!=t.focusedValue||e.style.width!=t.style.width||e.style.left!=t.style.left||e.style.top!=t.style.top||e.style.position!=t.style.position||e.style.display!=t.style.display||e.style.marginTop!=t.style.marginTop||e.style.marginLeft!=t.style.marginLeft)});function NS(e){var t=z.useRef();return z.useEffect(function(){t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},e),t}function jc(e){return e?encodeURI(Object.keys(e).map(function(t){var n=e[t];return[t,typeof n=="string"?n:Array.isArray(n)?n.join(","):""].join("=")}).join("&")):""}function qc(e){return E(wS,null,E("div",{css:{display:"flex",flexDirection:"column",height:"100%"},className:"github-octo-flat-ui"},E(OS,e)))}const PS=new cp;async function ps(e){return await(await fetch(e,{headers:{Range:"bytes=0-5132288"}})).text()}async function ms(e){return new Promise((t,n)=>{jh.parse(e,{header:!0,dynamicTyping:!0,skipEmptyLines:!0,transform:r=>r.trim(),complete:r=>t(r),error:r=>n(r)})})}const gs=({url:e,data:t,rawCsv:n})=>Sn.jsx(gp,{client:PS,children:Sn.jsx(LS,{url:e,data:t,rawCsv:n})}),LS=({url:e,data:t,rawCsv:n})=>{if(t)return Sn.jsx("div",{className:"w-full",style:{height:"500px"},children:Sn.jsx(qc,{data:t})});const{data:r,isLoading:i}=Eu(["dataCsv",e],()=>ps(e)),{data:a,isLoading:o}=Eu(["dataPreview",r],()=>ms(n||r),{enabled:n?!0:!!r});if(a)return Sn.jsx("div",{className:"w-full",style:{height:"500px"},children:Sn.jsx(qc,{data:a.data})})};try{ps.displayName="getCsv",ps.__docgenInfo={description:"",displayName:"getCsv",props:{}}}catch{}try{ms.displayName="parseCsv",ms.__docgenInfo={description:"",displayName:"parseCsv",props:{}}}catch{}try{gs.displayName="FlatUiTable",gs.__docgenInfo={description:"",displayName:"FlatUiTable",props:{url:{defaultValue:null,description:"",name:"url",required:!1,type:{name:"string"}},data:{defaultValue:null,description:"",name:"data",required:!1,type:{name:"{ [key: string]: string | number; }[]"}},rawCsv:{defaultValue:null,description:"",name:"rawCsv",required:!1,type:{name:"string"}}}}}catch{}const qS={title:"Components/FlatUiTable",component:gs,tags:["autodocs"],argTypes:{data:{description:"Data to be displayed in the table, must be setup as an array of key value pairs"},csv:{description:"CSV data as string."},url:{description:"Fetch the data from a CSV file remotely. only the first 5MB of data will be displayed"}}},hi={name:"Table data",args:{data:[{id:1,lastName:"Snow",firstName:"Jon",age:35},{id:2,lastName:"Lannister",firstName:"Cersei",age:42},{id:3,lastName:"Lannister",firstName:"Jaime",age:45},{id:4,lastName:"Stark",firstName:"Arya",age:16},{id:7,lastName:"Clifford",firstName:"Ferrara",age:44},{id:8,lastName:"Frances",firstName:"Rossini",age:36},{id:9,lastName:"Roxie",firstName:"Harvey",age:65}]}},pi={name:"Table from raw CSV",args:{rawCsv:`
Year,Temp Anomaly
1850,-0.418
2020,0.923
`}},mi={name:"Table from URL",args:{url:"https://raw.githubusercontent.com/datasets/finance-vix/main/data/vix-daily.csv"}};var Yc,Qc,Kc;hi.parameters={...hi.parameters,docs:{...(Yc=hi.parameters)==null?void 0:Yc.docs,source:{originalSource:`{
name: "Table data",
args: {
data: [{
id: 1,
lastName: 'Snow',
firstName: 'Jon',
age: 35
}, {
id: 2,
lastName: 'Lannister',
firstName: 'Cersei',
age: 42
}, {
id: 3,
lastName: 'Lannister',
firstName: 'Jaime',
age: 45
}, {
id: 4,
lastName: 'Stark',
firstName: 'Arya',
age: 16
}, {
id: 7,
lastName: 'Clifford',
firstName: 'Ferrara',
age: 44
}, {
id: 8,
lastName: 'Frances',
firstName: 'Rossini',
age: 36
}, {
id: 9,
lastName: 'Roxie',
firstName: 'Harvey',
age: 65
}]
}
}`,...(Kc=(Qc=hi.parameters)==null?void 0:Qc.docs)==null?void 0:Kc.source}}};var Gc,Xc,Zc;pi.parameters={...pi.parameters,docs:{...(Gc=pi.parameters)==null?void 0:Gc.docs,source:{originalSource:`{
name: "Table from raw CSV",
args: {
rawCsv: \`
Year,Temp Anomaly
1850,-0.418
2020,0.923
\`
}
}`,...(Zc=(Xc=pi.parameters)==null?void 0:Xc.docs)==null?void 0:Zc.source}}};var Jc,ef,tf;mi.parameters={...mi.parameters,docs:{...(Jc=mi.parameters)==null?void 0:Jc.docs,source:{originalSource:`{
name: "Table from URL",
args: {
url: "https://raw.githubusercontent.com/datasets/finance-vix/main/data/vix-daily.csv"
}
}`,...(tf=(ef=mi.parameters)==null?void 0:ef.docs)==null?void 0:tf.source}}};const YS=["FromColumnsAndData","FromRawCSV","FromURL"];export{hi as FromColumnsAndData,pi as FromRawCSV,mi as FromURL,YS as __namedExportsOrder,qS as default};
//# sourceMappingURL=FlatUiTable.stories-36abe253.js.map