import{B as writable,I as derived,J as get_store_value}from"./index-b1a93a0b.js";import{_ as __vitePreload}from"./preload-helper-9b728935.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(e,t)=>{loadingStateStore.set({loading:!0,message:e});const r=await t;return loadingStateStore.set({loading:!1}),r};var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var bundle$1={};(function(exports){(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function e(){}return e.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},e.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),e.originRequire=Module.prototype.require,Module.prototype.require=function(){var t=e.originRequire.apply(this,arguments),r=t.name;return e.requiredClasses[r]||(e.requiredClasses[r]=t),t})},e.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=e.originRequire,this.isRequireIntercepted=!1},e.isInterceptingRequire=function(){return this.isRequireIntercepted},e.getRequiredClasses=function(){return this.requiredClasses},e.clearRequiredClasses=function(){this.requiredClasses={}},e.registerClass=function(t){this.registeredClasses.push(t)},e.registerClasses=function(t){this.registeredClasses=this.registeredClasses.concat(t)},e.clearRegisteredClasses=function(){this.registeredClasses=[]},e.serialize=function(t,r){return r===void 0&&(r={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(t,r))},e.deserialize=function(t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),deserializer_1.deserializeFromParsedObj(JSON.parse(t),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(r),n)},e.originRequire=null,e.isRequireIntercepted=!1,e.requiredClasses={},e.registeredClasses=[],e}();module.exports=ESSerializer},917:function(e,t){var r=this&&this.__spreadArrays||function(){for(var _e=0,ke=0,de=arguments.length;ke0&&(P=P.concat(Array.from(Array(S),function(){return{}}))),u.test(G.toString()))try{W=new(G.bind.apply(G,n([void 0],P)))}catch{v(G.name),W={},Object.setPrototypeOf(W,G?G.prototype:Object.prototype)}else{W=Object.create(G.prototype.constructor.prototype);try{G.prototype.constructor.call(W,P)}catch{v(G.name)}}return W}(N[F],V);return function(G,P,W,S){for(var U in P){var L=P[U];if(!S.ignoreProperties||!S.ignoreProperties.includes(U))if(S.rawProperties&&S.rawProperties.includes(U))G[U]=JSON.stringify(L);else{var ae=Object.getOwnPropertyDescriptor(G,U);Q=L,ue=ae,U===l.CLASS_NAME_FIELD||ue&&(typeof ue.set=="function"||ue.writable===!1&&typeof Q!="object")||(ae&&ae.writable===!1&&typeof L=="object"?T(G[U],L,W):G[U]=h(L,W))}}var Q,ue;return G}(z,I,N,q)}function f(I,N){return I.map(function(q){return h(q,N)})}function d(I,N){return new N(I)}function p(I,N){return new N(I.map(function(q){return m(q[l.TO_STRING_FIELD])}))}function m(I){return BigInt(I)}function g(I,N){var q=I[l.OPTIONS_FIELD],F=q.locale;return delete q.locale,new N(F,q)}function b(I,N){var q;return delete(q=I.message?new N(I.message):new N).stack,I.name&&(q.name=I.name),I.stack&&(q.stack=I.stack),N===AggregateError&&(q.errors=h(I.errors,{})),q}function v(I){console.warn("Incorrect parameter type passed to constructor: "+I)}function T(I,N,q){for(var F in N){var H=Object.getOwnPropertyDescriptor(I,F);H&&H.writable!==!0&&typeof H.set!="function"||(I[F]=h(N[F],q))}}function R(I){I===void 0&&(I=[]);var N={};return I.forEach(function(q){if(o.isClass(q)){var F=q.name,H=N[F];H&&H!==q&&console.warn("WARNING: Found class definition with the same name: "+F),N[F]=q}}),N}t.deserializeFromParsedObj=function(I,N,q){return h(I,R(N),q)},t.deserializeFromParsedObjWithClassMapping=h,t.getClassMappingFromClassArray=R,t.getParentClassName=function(I){return I.prototype.__proto__.constructor.name}},821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=t.notObject=t.getValueFromToStringResult=void 0,t.notObject=function(r){return r===null||typeof r!="object"},t.getValueFromToStringResult=function(r){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},t.isClass=function(r){if(function(n){return[Date].indexOf(n)>=0}(r))return!0;try{Reflect.construct(String,[],r)}catch{return!1}return!0}},810:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializeValueWithClassName=void 0;var n=r(917),o=r(821);function l(h,f){f===void 0&&(f={});var d=function(b){var v,T,R;return b===void 0?((v={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_UNDEFINED,v):typeof b!="number"||isFinite(b)?typeof b=="bigint"?((R={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_BIG_INT,R[n.TO_STRING_FIELD]=b.toString(),R):o.notObject(b)?b:n.ESSERIALIZER_NULL:((T={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_NOT_FINITE,T[n.TO_STRING_FIELD]=b.toString(),T)}(h);if(d!==n.ESSERIALIZER_NULL)return d;if(Array.isArray(h))return u(h);var p={};if(!function(b){var v=b.__proto__.constructor.name;return n.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(v)}(h)){if(f.ignoreProperties&&f.ignoreProperties.forEach(function(b){delete h[b]}),f.interceptProperties)for(var m in f.interceptProperties)h[m]=f.interceptProperties[m].call(h,h[m]);for(var g in h)p[g]=l(h[g])}return function(b,v){var T=b.__proto__.constructor.name;return T!=="Object"&&(v[n.CLASS_NAME_FIELD]=T,T===n.BUILTIN_CLASS_ARRAYBUFFER||T===n.BUILTIN_CLASS_SHAREDARRAYBUFFER?v[n.ARRAY_FIELD]=u(Array.from(new Uint8Array(b))):T===n.BUILTIN_CLASS_BOOLEAN?v[n.BOOLEAN_FIELD]=b.valueOf():T===n.BUILTIN_CLASS_DATAVIEW?v[n.ARRAY_FIELD]=u(Array.from(new Uint8Array(b.buffer))):T===n.BUILTIN_CLASS_DATE?v[n.TIMESTAMP_FIELD]=b.getTime():T===n.BUILTIN_CLASS_INTL_LOCALE||T===n.BUILTIN_CLASS_REGEXP?v[n.TO_STRING_FIELD]=b.toString():T===n.BUILTIN_CLASS_SET?v[n.ARRAY_FIELD]=u(Array.from(b)):T===n.BUILTIN_CLASS_STRING?v[n.TO_STRING_FIELD]=b.toString():n.ALL_BUILTIN_ARRAYS.includes(T)?v[n.ARRAY_FIELD]=u(Array.from(b)):n.ALL_BUILTIN_ERRORS.includes(T)?function(R,I,N){R.name!=="Error"&&(I.name=R.name),R.message&&(I.message=R.message),R.stack&&(I.stack=R.stack),N===n.BUILTIN_CLASS_AGGREGATE_ERROR&&(I.errors=l(R.errors))}(b,v,T):n.ALL_BUILTIN_INTLS.includes(T)&&(v[n.OPTIONS_FIELD]=b.resolvedOptions())),v}(h,p)}function u(h){return h.map(function(f){return l(f)})}t.getSerializeValueWithClassName=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(t!==void 0)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(607),__webpack_export_target__=exports;for(var i in __webpack_exports__)__webpack_export_target__[i]=__webpack_exports__[i];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})()})(bundle$1);const ESSerializer=getDefaultExportFromCjs(bundle$1),alreadyWarnFor=[],warnStorageNotFound=e=>{const t=typeof process<"u"&&!0;if(!alreadyWarnFor.includes(e)&&!t){let r=`Unable to find the ${e}. No data will be persisted.`;typeof window>"u"&&(r+=` Are you running on a server? Most of storages are not available while running on a server.`),console.warn(r),alreadyWarnFor.push(e)}},serialize$1=e=>ESSerializer.serialize(e),deserialize=e=>{if(e!=="undefined"){if(e!=null){try{return ESSerializer.deserialize(e)}catch{}try{return JSON.parse(e)}catch{}}return e}};function persist(e,t,r){const n=t.getValue(r);return n!==null&&e.set(n),"addListener"in t&&t.addListener(r,o=>{e.set(o)}),e.subscribe(o=>{t.setValue(r,o)}),{...e,delete(){t.deleteValue(r)}}}function getBrowserStorage(e,t=!1){const r=[],n=u=>{const h=u.key;u.storageArea===e&&r.filter(({key:f})=>f===h).forEach(({listener:f})=>{f(deserialize(u.newValue))})},o=()=>{t&&typeof window<"u"&&window.addEventListener&&window.addEventListener("storage",n)},l=()=>{t&&typeof window<"u"&&window.removeEventListener&&window.removeEventListener("storage",n)};return{addListener(u,h){r.push({key:u,listener:h}),r.length===1&&o()},removeListener(u,h){const f=r.indexOf({key:u,listener:h});f!==-1&&r.splice(f,1),r.length===0&&l()},getValue(u){const h=e.getItem(u);return deserialize(h)},deleteValue(u){e.removeItem(u)},setValue(u,h){e.setItem(u,serialize$1(h))}}}function localStorage(e=!1){return typeof window<"u"&&window.localStorage?getBrowserStorage(window.localStorage,e):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:e},{default:t}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-80770405.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-721f44c8.js").then(r=>r.p),[],import.meta.url)]);analytics=e({app:"mermaid-live-editor",plugins:[t({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(e){console.log(e),console.info("Analytics blocked ;)")}},detectType$1=e=>{const t=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],r=e.replace(/^\s*%%.*\n/g,` `).trimStart().split(" ")[0].toLowerCase();return t.find(o=>r.includes(o.toLowerCase()))},countLines=e=>{var t,r;return((r=(t=e.match(/\n/g))==null?void 0:t.length)!=null?r:0)+1},saveStatistics=e=>{const t=detectType$1(e);if(!t)return;const r=countLines(e);logEvent("render",{graphType:t,length:r})},minutesToMilliSeconds=e=>e*6e4,defaultDelay=minutesToMilliSeconds(1),delaysPerEvent={render:minutesToMilliSeconds(5),panZoom:minutesToMilliSeconds(10),copyClipboard:defaultDelay,download:defaultDelay,copyMarkdown:defaultDelay,loadGist:defaultDelay,loadSampleDiagram:defaultDelay,renderDiagram:defaultDelay,history:defaultDelay,migration:defaultDelay,themeChange:defaultDelay},timeouts=new Map,logEvent=(e,t)=>{if(!analytics)return;const r=t?JSON.stringify({name:e,data:t}):e;timeouts.has(r)?clearTimeout(timeouts.get(r)):analytics.track(e,t),timeouts.set(r,window.setTimeout(()=>timeouts.delete(r),delaysPerEvent[e]))};/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1$1(e){let t=e.length;for(;--t>=0;)e[t]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1$1(base_length);const base_dist=new Array(D_CODES$1);zero$1$1(base_dist);function StaticTreeDesc(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const d_code=e=>e<256?_dist_code[e]:_dist_code[256+(e>>>7)],put_short=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},send_bits=(e,t,r)=>{e.bi_valid>Buf_size-r?(e.bi_buf|=t<>Buf_size-e.bi_valid,e.bi_valid+=r-Buf_size):(e.bi_buf|=t<{send_bits(e,r[t*2],r[t*2+1])},bi_reverse=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},bi_flush=e=>{e.bi_valid===16?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gen_bitlen=(e,t)=>{const r=t.dyn_tree,n=t.max_code,o=t.stat_desc.static_tree,l=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,f=t.stat_desc.max_length;let d,p,m,g,b,v,T=0;for(g=0;g<=MAX_BITS$1;g++)e.bl_count[g]=0;for(r[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;df&&(g=f,T++),r[p*2+1]=g,!(p>n)&&(e.bl_count[g]++,b=0,p>=h&&(b=u[p-h]),v=r[p*2],e.opt_len+=v*(g+b),l&&(e.static_len+=v*(o[p*2+1]+b)));if(T!==0){do{for(g=f-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[f]--,T-=2}while(T>0);for(g=f;g!==0;g--)for(p=e.bl_count[g];p!==0;)m=e.heap[--d],!(m>n)&&(r[m*2+1]!==g&&(e.opt_len+=(g-r[m*2+1])*r[m*2],r[m*2+1]=g),p--)}},gen_codes=(e,t,r)=>{const n=new Array(MAX_BITS$1+1);let o=0,l,u;for(l=1;l<=MAX_BITS$1;l++)o=o+r[l-1]<<1,n[l]=o;for(u=0;u<=t;u++){let h=e[u*2+1];h!==0&&(e[u*2]=bi_reverse(n[h]++,h))}},tr_static_init=()=>{let e,t,r,n,o;const l=new Array(MAX_BITS$1+1);for(r=0,n=0;n>=7;n{let t;for(t=0;t{e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},smaller=(e,t,r,n)=>{const o=t*2,l=r*2;return e[o]{const n=e.heap[r];let o=r<<1;for(;o<=e.heap_len&&(o{let n,o,l=0,u,h;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+l++]&255,n+=(e.pending_buf[e.sym_buf+l++]&255)<<8,o=e.pending_buf[e.sym_buf+l++],n===0?send_code(e,o,t):(u=_length_code[o],send_code(e,u+LITERALS$1+1,t),h=extra_lbits[u],h!==0&&(o-=base_length[u],send_bits(e,o,h)),n--,u=d_code(n),send_code(e,u,r),h=extra_dbits[u],h!==0&&(n-=base_dist[u],send_bits(e,n,h)));while(l{const r=t.dyn_tree,n=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems;let u,h,f=-1,d;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,u=0;u>1;u>=1;u--)pqdownheap(e,r,u);d=l;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,r,1),h=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=h,r[d*2]=r[u*2]+r[h*2],e.depth[d]=(e.depth[u]>=e.depth[h]?e.depth[u]:e.depth[h])+1,r[u*2+1]=r[h*2+1]=d,e.heap[1]=d++,pqdownheap(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,t),gen_codes(r,f,e.bl_count)},scan_tree=(e,t,r)=>{let n,o=-1,l,u=t[0*2+1],h=0,f=7,d=4;for(u===0&&(f=138,d=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)l=u,u=t[(n+1)*2+1],!(++h{let n,o=-1,l,u=t[0*2+1],h=0,f=7,d=4;for(u===0&&(f=138,d=3),n=0;n<=r;n++)if(l=u,u=t[(n+1)*2+1],!(++h{let t;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),t=BL_CODES$1-1;t>=3&&e.bl_tree[bl_order[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},send_all_trees=(e,t,r,n)=>{let o;for(send_bits(e,t-257,5),send_bits(e,r-1,5),send_bits(e,n-4,4),o=0;o{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Z_BINARY;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Z_TEXT;for(r=32;r{static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)},_tr_stored_block$1=(e,t,r,n)=>{send_bits(e,(STORED_BLOCK<<1)+(n?1:0),3),bi_windup(e),put_short(e,r),put_short(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},_tr_align$1=e=>{send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)},_tr_flush_block$1=(e,t,r,n)=>{let o,l,u=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),u=build_bl_tree(e),o=e.opt_len+3+7>>>3,l=e.static_len+3+7>>>3,l<=o&&(o=l)):o=l=r+5,r+4<=o&&t!==-1?_tr_stored_block$1(e,t,r,n):e.strategy===Z_FIXED$1||l===o?(send_bits(e,(STATIC_TREES<<1)+(n?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(n?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),n&&bi_windup(e)},_tr_tally$1=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(_length_code[r]+LITERALS$1+1)*2]++,e.dyn_dtree[d_code(t)*2]++),e.sym_next===e.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(e,t,r,n)=>{let o=e&65535|0,l=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do o=o+t[n++]|0,l=l+o|0;while(--u);o%=65521,l%=65521}return o|l<<16|0};var adler32_1=adler32;const makeTable=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},crcTable=new Uint32Array(makeTable()),crc32=(e,t,r,n)=>{const o=crcTable,l=n+r;e^=-1;for(let u=n;u>>8^o[(e^t[u])&255];return e^-1};var crc32_1=crc32,messages$1={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(e,t)=>(e.msg=messages$1[t],t),rank$2=e=>e*2-(e>4?9:0),zero$3=e=>{let t=e.length;for(;--t>=0;)e[t]=0},slide_hash=e=>{let t,r,n,o=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=o?r-o:0;while(--t);t=o,n=t;do r=e.prev[--n],e.prev[n]=r>=o?r-o:0;while(--t)};let HASH_ZLIB=(e,t,r)=>(t<{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},flush_block_only=(e,t)=>{_tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,flush_pending(e.strm)},put_byte=(e,t)=>{e.pending_buf[e.pending++]=t},putShortMSB=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},read_buf=(e,t,r,n)=>{let o=e.avail_in;return o>n&&(o=n),o===0?0:(e.avail_in-=o,t.set(e.input.subarray(e.next_in,e.next_in+o),r),e.state.wrap===1?e.adler=adler32_1(e.adler,t,o,r):e.state.wrap===2&&(e.adler=crc32_1(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)},longest_match=(e,t)=>{let r=e.max_chain_length,n=e.strstart,o,l,u=e.prev_length,h=e.nice_match;const f=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,d=e.window,p=e.w_mask,m=e.prev,g=e.strstart+MAX_MATCH;let b=d[n+u-1],v=d[n+u];e.prev_length>=e.good_match&&(r>>=2),h>e.lookahead&&(h=e.lookahead);do if(o=t,!(d[o+u]!==v||d[o+u-1]!==b||d[o]!==d[n]||d[++o]!==d[n+1])){n+=2,o++;do;while(d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&nu){if(e.match_start=t,u=l,l>=h)break;b=d[n+u-1],v=d[n+u]}}while((t=m[t&p])>f&&--r!==0);return u<=e.lookahead?u:e.lookahead},fill_window=e=>{const t=e.w_size;let r,n,o;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-MIN_LOOKAHEAD)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),slide_hash(e),n+=t),e.strm.avail_in===0)break;if(r=read_buf(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=MIN_MATCH)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=HASH(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=HASH(e,e.ins_h,e.window[o+MIN_MATCH-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,o,l,u=0,h=e.strm.avail_in;do{if(n=65535,l=e.bi_valid+42>>3,e.strm.avail_outo+e.strm.avail_in&&(n=o+e.strm.avail_in),n>l&&(n=l),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,flush_pending(e.strm),o&&(o>n&&(o=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+o),e.strm.next_out),e.strm.next_out+=o,e.strm.avail_out-=o,e.strm.total_out+=o,e.block_start+=o,n-=o),n&&(read_buf(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(u===0);return h-=e.strm.avail_in,h&&(h>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=h&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-h,e.strm.next_in),e.strstart),e.strstart+=h,e.insert+=h>e.w_size-e.insert?e.w_size-e.insert:h),e.block_start=e.strstart),e.high_waterl&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,l+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),l>e.strm.avail_in&&(l=e.strm.avail_in),l&&(read_buf(e.strm,e.window,e.strstart,l),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.high_water>3,l=e.pending_buf_size-l>65535?65535:e.pending_buf_size-l,r=l>e.w_size?e.w_size:l,o=e.strstart-e.block_start,(o>=r||(o||t===Z_FINISH$3)&&t!==Z_NO_FLUSH$2&&e.strm.avail_in===0&&o<=l)&&(n=o>l?l:o,u=t===Z_FINISH$3&&e.strm.avail_in===0&&n===o?1:0,_tr_stored_block(e,e.block_start,n,u),e.block_start+=n,flush_pending(e.strm)),u?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(e,t)=>{let r,n;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,r)),e.match_length>=MIN_MATCH)if(n=_tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do e.strstart++,e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+1]);else n=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=e.strstart{let r,n,o;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,r!==0&&e.prev_length4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-MIN_MATCH,n=_tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=o&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,n&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}else if(e.match_available){if(n=_tr_tally(e,0,e.window[e.strstart-1]),n&&flush_block_only(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=_tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let r,n,o,l;const u=e.window;for(;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&t===Z_NO_FLUSH$2)return BS_NEED_MORE;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(o=e.strstart-1,n=u[o],n===u[++o]&&n===u[++o]&&n===u[++o])){l=e.strstart+MAX_MATCH;do;while(n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&oe.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(r=_tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(fill_window(e),e.lookahead===0)){if(t===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(e.match_length=0,r=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=e=>{e.window_size=2*e.w_size,zero$3(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero$3(this.dyn_ltree),zero$3(this.dyn_dtree),zero$3(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero$3(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero$3(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==INIT_STATE&&t.status!==GZIP_STATE&&t.status!==EXTRA_STATE&&t.status!==NAME_STATE&&t.status!==COMMENT_STATE&&t.status!==HCRC_STATE&&t.status!==BUSY_STATE&&t.status!==FINISH_STATE?1:0},deflateResetKeep=e=>{if(deflateStateCheck(e))return err(e,Z_STREAM_ERROR$2);e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?GZIP_STATE:t.wrap?INIT_STATE:BUSY_STATE,e.adler=t.wrap===2?0:1,t.last_flush=-2,_tr_init(t),Z_OK$3},deflateReset=e=>{const t=deflateResetKeep(e);return t===Z_OK$3&&lm_init(e.state),t},deflateSetHeader=(e,t)=>deflateStateCheck(e)||e.state.wrap!==2?Z_STREAM_ERROR$2:(e.state.gzhead=t,Z_OK$3),deflateInit2=(e,t,r,n,o,l)=>{if(!e)return Z_STREAM_ERROR$2;let u=1;if(t===Z_DEFAULT_COMPRESSION$1&&(t=6),n<0?(u=0,n=-n):n>15&&(u=2,n-=16),o<1||o>MAX_MEM_LEVEL||r!==Z_DEFLATED$2||n<8||n>15||t<0||t>9||l<0||l>Z_FIXED||n===8&&u!==1)return err(e,Z_STREAM_ERROR$2);n===8&&(n=9);const h=new DeflateState;return e.state=h,h.strm=e,h.status=INIT_STATE,h.wrap=u,h.gzhead=null,h.w_bits=n,h.w_size=1<deflateInit2(e,t,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(e,t)=>{if(deflateStateCheck(e)||t>Z_BLOCK$1||t<0)return e?err(e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===FINISH_STATE&&t!==Z_FINISH$3)return err(e,e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(flush_pending(e),e.avail_out===0)return r.last_flush=-1,Z_OK$3}else if(e.avail_in===0&&rank$2(t)<=rank$2(n)&&t!==Z_FINISH$3)return err(e,Z_BUF_ERROR$1);if(r.status===FINISH_STATE&&e.avail_in!==0)return err(e,Z_BUF_ERROR$1);if(r.status===INIT_STATE&&r.wrap===0&&(r.status=BUSY_STATE),r.status===INIT_STATE){let o=Z_DEFLATED$2+(r.w_bits-8<<4)<<8,l=-1;if(r.strategy>=Z_HUFFMAN_ONLY||r.level<2?l=0:r.level<6?l=1:r.level===6?l=2:l=3,o|=l<<6,r.strstart!==0&&(o|=PRESET_DICT),o+=31-o%31,putShortMSB(r,o),r.strstart!==0&&(putShortMSB(r,e.adler>>>16),putShortMSB(r,e.adler&65535)),e.adler=1,r.status=BUSY_STATE,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===GZIP_STATE){if(e.adler=0,put_byte(r,31),put_byte(r,139),put_byte(r,8),r.gzhead)put_byte(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),put_byte(r,r.gzhead.time&255),put_byte(r,r.gzhead.time>>8&255),put_byte(r,r.gzhead.time>>16&255),put_byte(r,r.gzhead.time>>24&255),put_byte(r,r.level===9?2:r.strategy>=Z_HUFFMAN_ONLY||r.level<2?4:0),put_byte(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(put_byte(r,r.gzhead.extra.length&255),put_byte(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=EXTRA_STATE;else if(put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,r.level===9?2:r.strategy>=Z_HUFFMAN_ONLY||r.level<2?4:0),put_byte(r,OS_CODE),r.status=BUSY_STATE,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===EXTRA_STATE){if(r.gzhead.extra){let o=r.pending,l=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+l>r.pending_buf_size;){let h=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+h),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>o&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex+=h,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3;o=0,l-=h}let u=new Uint8Array(r.gzhead.extra);r.pending_buf.set(u.subarray(r.gzindex,r.gzindex+l),r.pending),r.pending+=l,r.gzhead.hcrc&&r.pending>o&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex=0}r.status=NAME_STATE}if(r.status===NAME_STATE){if(r.gzhead.name){let o=r.pending,l;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>o&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-o,o)),flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3;o=0}r.gzindexo&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex=0}r.status=COMMENT_STATE}if(r.status===COMMENT_STATE){if(r.gzhead.comment){let o=r.pending,l;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>o&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-o,o)),flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3;o=0}r.gzindexo&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-o,o))}r.status=HCRC_STATE}if(r.status===HCRC_STATE){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(flush_pending(e),r.pending!==0))return r.last_flush=-1,Z_OK$3;put_byte(r,e.adler&255),put_byte(r,e.adler>>8&255),e.adler=0}if(r.status=BUSY_STATE,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(e.avail_in!==0||r.lookahead!==0||t!==Z_NO_FLUSH$2&&r.status!==FINISH_STATE){let o=r.level===0?deflate_stored(r,t):r.strategy===Z_HUFFMAN_ONLY?deflate_huff(r,t):r.strategy===Z_RLE?deflate_rle(r,t):configuration_table[r.level].func(r,t);if((o===BS_FINISH_STARTED||o===BS_FINISH_DONE)&&(r.status=FINISH_STATE),o===BS_NEED_MORE||o===BS_FINISH_STARTED)return e.avail_out===0&&(r.last_flush=-1),Z_OK$3;if(o===BS_BLOCK_DONE&&(t===Z_PARTIAL_FLUSH?_tr_align(r):t!==Z_BLOCK$1&&(_tr_stored_block(r,0,0,!1),t===Z_FULL_FLUSH$1&&(zero$3(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),flush_pending(e),e.avail_out===0))return r.last_flush=-1,Z_OK$3}return t!==Z_FINISH$3?Z_OK$3:r.wrap<=0?Z_STREAM_END$3:(r.wrap===2?(put_byte(r,e.adler&255),put_byte(r,e.adler>>8&255),put_byte(r,e.adler>>16&255),put_byte(r,e.adler>>24&255),put_byte(r,e.total_in&255),put_byte(r,e.total_in>>8&255),put_byte(r,e.total_in>>16&255),put_byte(r,e.total_in>>24&255)):(putShortMSB(r,e.adler>>>16),putShortMSB(r,e.adler&65535)),flush_pending(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=e=>{if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const t=e.state.status;return e.state=null,t===BUSY_STATE?err(e,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(e,t)=>{let r=t.length;if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const n=e.state,o=n.wrap;if(o===2||o===1&&n.status!==INIT_STATE||n.lookahead)return Z_STREAM_ERROR$2;if(o===1&&(e.adler=adler32_1(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){o===0&&(zero$3(n.head),n.strstart=0,n.block_start=0,n.insert=0);let f=new Uint8Array(n.w_size);f.set(t.subarray(r-n.w_size,r),0),t=f,r=n.w_size}const l=e.avail_in,u=e.next_in,h=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,fill_window(n);n.lookahead>=MIN_MATCH;){let f=n.strstart,d=n.lookahead-(MIN_MATCH-1);do n.ins_h=HASH(n,n.ins_h,n.window[f+MIN_MATCH-1]),n.prev[f&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=f,f++;while(--d);n.strstart=f,n.lookahead=MIN_MATCH-1,fill_window(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=MIN_MATCH-1,n.match_available=0,e.next_in=u,e.input=h,e.avail_in=l,n.wrap=o,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var assign=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(!!r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)_has(r,n)&&(e[n]=r[n])}}return e},flattenChunks=e=>{let t=0;for(let n=0,o=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,o,l,u=e.length,h=0;for(o=0;o>>6,t[l++]=128|r&63):r<65536?(t[l++]=224|r>>>12,t[l++]=128|r>>>6&63,t[l++]=128|r&63):(t[l++]=240|r>>>18,t[l++]=128|r>>>12&63,t[l++]=128|r>>>6&63,t[l++]=128|r&63);return t};const buf2binstring=(e,t)=>{if(t<65534&&e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,o;const l=new Array(r*2);for(o=0,n=0;n4){l[o++]=65533,n+=h-1;continue}for(u&=h===2?31:h===3?15:7;h>1&&n1){l[o++]=65533;continue}u<65536?l[o++]=u:(u-=65536,l[o++]=55296|u>>10&1023,l[o++]=56320|u&1023)}return buf2binstring(l,o)},utf8border=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+_utf8len[e[r]]>t?r:t},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(e){this.options=common$1.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let r=deflate_1$2.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Z_OK$2)throw new Error(messages$1[r]);if(t.header&&deflate_1$2.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=strings.string2buf(t.dictionary):toString$1.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=deflate_1$2.deflateSetDictionary(this.strm,n),r!==Z_OK$2)throw new Error(messages$1[r]);this._dict_set=!0}}Deflate$1.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let o,l;if(this.ended)return!1;for(t===~~t?l=t:l=t===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof e=="string"?r.input=strings.string2buf(e):toString$1.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(l===Z_SYNC_FLUSH||l===Z_FULL_FLUSH)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(o=deflate_1$2.deflate(r,l),o===Z_STREAM_END$2)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),o=deflate_1$2.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===Z_OK$2;if(r.avail_out===0){this.onData(r.output);continue}if(l>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(e){this.chunks.push(e)};Deflate$1.prototype.onEnd=function(e){e===Z_OK$2&&(this.result=common$1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function deflate$1(e,t){const r=new Deflate$1(t);if(r.push(e,!0),r.err)throw r.msg||messages$1[r.err];return r.result}function deflateRaw$1(e,t){return t=t||{},t.raw=!0,deflate$1(e,t)}function gzip$1(e,t){return t=t||{},t.gzip=!0,deflate$1(e,t)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=16209,TYPE$1=16191;var inffast=function e(t,r){let n,o,l,u,h,f,d,p,m,g,b,v,T,R,I,N,q,F,H,V,z,G,P,W;const S=t.state;n=t.next_in,P=t.input,o=n+(t.avail_in-5),l=t.next_out,W=t.output,u=l-(r-t.avail_out),h=l+(t.avail_out-257),f=S.dmax,d=S.wsize,p=S.whave,m=S.wnext,g=S.window,b=S.hold,v=S.bits,T=S.lencode,R=S.distcode,I=(1<>>24,b>>>=F,v-=F,F=q>>>16&255,F===0)W[l++]=q&65535;else if(F&16){H=q&65535,F&=15,F&&(v>>=F,v-=F),v<15&&(b+=P[n++]<>>24,b>>>=F,v-=F,F=q>>>16&255,F&16){if(V=q&65535,F&=15,vf){t.msg="invalid distance too far back",S.mode=BAD$1;break e}if(b>>>=F,v-=F,F=l-u,V>F){if(F=V-F,F>p&&S.sane){t.msg="invalid distance too far back",S.mode=BAD$1;break e}if(z=0,G=g,m===0){if(z+=d-F,F2;)W[l++]=G[z++],W[l++]=G[z++],W[l++]=G[z++],H-=3;H&&(W[l++]=G[z++],H>1&&(W[l++]=G[z++]))}else{z=l-V;do W[l++]=W[z++],W[l++]=W[z++],W[l++]=W[z++],H-=3;while(H>2);H&&(W[l++]=W[z++],H>1&&(W[l++]=W[z++]))}}else if((F&64)===0){q=R[(q&65535)+(b&(1<>3,n-=H,v-=H<<3,b&=(1<{const f=h.bits;let d=0,p=0,m=0,g=0,b=0,v=0,T=0,R=0,I=0,N=0,q,F,H,V,z,G=null,P;const W=new Uint16Array(MAXBITS+1),S=new Uint16Array(MAXBITS+1);let U=null,L,ae,Q;for(d=0;d<=MAXBITS;d++)W[d]=0;for(p=0;p=1&&W[g]===0;g--);if(b>g&&(b=g),g===0)return o[l++]=1<<24|64<<16|0,o[l++]=1<<24|64<<16|0,h.bits=1,0;for(m=1;m0&&(e===CODES$1||g!==1))return-1;for(S[1]=0,d=1;dENOUGH_LENS$1||e===DISTS$1&&I>ENOUGH_DISTS$1)return 1;for(;;){L=d-T,u[p]+1=P?(ae=U[u[p]-P],Q=G[u[p]-P]):(ae=32+64,Q=0),q=1<>T)+F]=L<<24|ae<<16|Q|0;while(F!==0);for(q=1<>=1;if(q!==0?(N&=q-1,N+=q):N=0,p++,--W[d]===0){if(d===g)break;d=t[r+u[p]]}if(d>b&&(N&V)!==H){for(T===0&&(T=b),z+=m,v=d-T,R=1<ENOUGH_LENS$1||e===DISTS$1&&I>ENOUGH_DISTS$1)return 1;H=N&V,o[H]=b<<24|v<<16|z-l|0}}return N!==0&&(o[z+N]=d-T<<24|64<<16|0),h.bits=b,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT$1=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE$2=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeSYNC?1:0},inflateResetKeep=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=HEAD,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ENOUGH_LENS),t.distcode=t.distdyn=new Int32Array(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK$1},inflateReset=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)},inflateReset2=(e,t)=>{let r;if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Z_STREAM_ERROR$1:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,inflateReset(e))},inflateInit2=(e,t)=>{if(!e)return Z_STREAM_ERROR$1;const r=new InflateState;e.state=r,r.strm=e,r.window=null,r.mode=HEAD;const n=inflateReset2(e,t);return n!==Z_OK$1&&(e.state=null),n},inflateInit=e=>inflateInit2(e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(inftrees(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;inftrees(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5},updatewindow=(e,t,r,n)=>{let o;const l=e.state;return l.window===null&&(l.wsize=1<=l.wsize?(l.window.set(t.subarray(r-l.wsize,r),0),l.wnext=0,l.whave=l.wsize):(o=l.wsize-l.wnext,o>n&&(o=n),l.window.set(t.subarray(r-n,r-n+o),l.wnext),n-=o,n?(l.window.set(t.subarray(r-n,r),0),l.wnext=n,l.whave=l.wsize):(l.wnext+=o,l.wnext===l.wsize&&(l.wnext=0),l.whave{let r,n,o,l,u,h,f,d,p,m,g,b,v,T,R=0,I,N,q,F,H,V,z,G;const P=new Uint8Array(4);let W,S;const U=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(e)||!e.output||!e.input&&e.avail_in!==0)return Z_STREAM_ERROR$1;r=e.state,r.mode===TYPE$2&&(r.mode=TYPEDO),u=e.next_out,o=e.output,f=e.avail_out,l=e.next_in,n=e.input,h=e.avail_in,d=r.hold,p=r.bits,m=h,g=f,G=Z_OK$1;e:for(;;)switch(r.mode){case HEAD:if(r.wrap===0){r.mode=TYPEDO;break}for(;p<16;){if(h===0)break e;h--,d+=n[l++]<>>8&255,r.check=crc32_1(r.check,P,2,0),d=0,p=0,r.mode=FLAGS;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",r.mode=BAD;break}if((d&15)!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(d>>>=4,p-=4,z=(d&15)+8,r.wbits===0&&(r.wbits=z),z>15||z>r.wbits){e.msg="invalid window size",r.mode=BAD;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&(P[0]=d&255,P[1]=d>>>8&255,r.check=crc32_1(r.check,P,2,0)),d=0,p=0,r.mode=TIME;case TIME:for(;p<32;){if(h===0)break e;h--,d+=n[l++]<>>8&255,P[2]=d>>>16&255,P[3]=d>>>24&255,r.check=crc32_1(r.check,P,4,0)),d=0,p=0,r.mode=OS;case OS:for(;p<16;){if(h===0)break e;h--,d+=n[l++]<>8),r.flags&512&&r.wrap&4&&(P[0]=d&255,P[1]=d>>>8&255,r.check=crc32_1(r.check,P,2,0)),d=0,p=0,r.mode=EXLEN;case EXLEN:if(r.flags&1024){for(;p<16;){if(h===0)break e;h--,d+=n[l++]<>>8&255,r.check=crc32_1(r.check,P,2,0)),d=0,p=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(r.flags&1024&&(b=r.length,b>h&&(b=h),b&&(r.head&&(z=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(l,l+b),z)),r.flags&512&&r.wrap&4&&(r.check=crc32_1(r.check,n,b,l)),h-=b,l+=b,r.length-=b),r.length))break e;r.length=0,r.mode=NAME;case NAME:if(r.flags&2048){if(h===0)break e;b=0;do z=n[l+b++],r.head&&z&&r.length<65536&&(r.head.name+=String.fromCharCode(z));while(z&&b>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=TYPE$2;break;case DICTID:for(;p<32;){if(h===0)break e;h--,d+=n[l++]<>>=p&7,p-=p&7,r.mode=CHECK;break}for(;p<3;){if(h===0)break e;h--,d+=n[l++]<>>=1,p-=1,d&3){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,t===Z_TREES){d>>>=2,p-=2;break e}break;case 2:r.mode=TABLE;break;case 3:e.msg="invalid block type",r.mode=BAD}d>>>=2,p-=2;break;case STORED:for(d>>>=p&7,p-=p&7;p<32;){if(h===0)break e;h--,d+=n[l++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=d&65535,d=0,p=0,r.mode=COPY_,t===Z_TREES)break e;case COPY_:r.mode=COPY;case COPY:if(b=r.length,b){if(b>h&&(b=h),b>f&&(b=f),b===0)break e;o.set(n.subarray(l,l+b),u),h-=b,l+=b,f-=b,u+=b,r.length-=b;break}r.mode=TYPE$2;break;case TABLE:for(;p<14;){if(h===0)break e;h--,d+=n[l++]<>>=5,p-=5,r.ndist=(d&31)+1,d>>>=5,p-=5,r.ncode=(d&15)+4,d>>>=4,p-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have>>=3,p-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,W={bits:r.lenbits},G=inftrees(CODES,r.lens,0,19,r.lencode,0,r.work,W),r.lenbits=W.bits,G){e.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have>>24,N=R>>>16&255,q=R&65535,!(I<=p);){if(h===0)break e;h--,d+=n[l++]<>>=I,p-=I,r.lens[r.have++]=q;else{if(q===16){for(S=I+2;p>>=I,p-=I,r.have===0){e.msg="invalid bit length repeat",r.mode=BAD;break}z=r.lens[r.have-1],b=3+(d&3),d>>>=2,p-=2}else if(q===17){for(S=I+3;p>>=I,p-=I,z=0,b=3+(d&7),d>>>=3,p-=3}else{for(S=I+7;p>>=I,p-=I,z=0,b=11+(d&127),d>>>=7,p-=7}if(r.have+b>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=BAD;break}for(;b--;)r.lens[r.have++]=z}}if(r.mode===BAD)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,W={bits:r.lenbits},G=inftrees(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,W),r.lenbits=W.bits,G){e.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,W={bits:r.distbits},G=inftrees(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,W),r.distbits=W.bits,G){e.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,t===Z_TREES)break e;case LEN_:r.mode=LEN;case LEN:if(h>=6&&f>=258){e.next_out=u,e.avail_out=f,e.next_in=l,e.avail_in=h,r.hold=d,r.bits=p,inffast(e,g),u=e.next_out,o=e.output,f=e.avail_out,l=e.next_in,n=e.input,h=e.avail_in,d=r.hold,p=r.bits,r.mode===TYPE$2&&(r.back=-1);break}for(r.back=0;R=r.lencode[d&(1<>>24,N=R>>>16&255,q=R&65535,!(I<=p);){if(h===0)break e;h--,d+=n[l++]<>F)],I=R>>>24,N=R>>>16&255,q=R&65535,!(F+I<=p);){if(h===0)break e;h--,d+=n[l++]<>>=F,p-=F,r.back+=F}if(d>>>=I,p-=I,r.back+=I,r.length=q,N===0){r.mode=LIT;break}if(N&32){r.back=-1,r.mode=TYPE$2;break}if(N&64){e.msg="invalid literal/length code",r.mode=BAD;break}r.extra=N&15,r.mode=LENEXT;case LENEXT:if(r.extra){for(S=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;R=r.distcode[d&(1<>>24,N=R>>>16&255,q=R&65535,!(I<=p);){if(h===0)break e;h--,d+=n[l++]<>F)],I=R>>>24,N=R>>>16&255,q=R&65535,!(F+I<=p);){if(h===0)break e;h--,d+=n[l++]<>>=F,p-=F,r.back+=F}if(d>>>=I,p-=I,r.back+=I,N&64){e.msg="invalid distance code",r.mode=BAD;break}r.offset=q,r.extra=N&15,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(S=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(f===0)break e;if(b=g-f,r.offset>b){if(b=r.offset-b,b>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=BAD;break}b>r.wnext?(b-=r.wnext,v=r.wsize-b):v=r.wnext-b,b>r.length&&(b=r.length),T=r.window}else T=o,v=u-r.offset,b=r.length;b>f&&(b=f),f-=b,r.length-=b;do o[u++]=T[v++];while(--b);r.length===0&&(r.mode=LEN);break;case LIT:if(f===0)break e;o[u++]=r.length,f--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;p<32;){if(h===0)break e;h--,d|=n[l++]<{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;let t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK$1},inflateGetHeader=(e,t)=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const r=e.state;return(r.wrap&2)===0?Z_STREAM_ERROR$1:(r.head=t,t.done=!1,Z_OK$1)},inflateSetDictionary=(e,t)=>{const r=t.length;let n,o,l;return inflateStateCheck(e)||(n=e.state,n.wrap!==0&&n.mode!==DICT)?Z_STREAM_ERROR$1:n.mode===DICT&&(o=1,o=adler32_1(o,t,r,0),o!==n.check)?Z_DATA_ERROR$1:(l=updatewindow(e,t,r,r),l?(n.mode=MEM,Z_MEM_ERROR$1):(n.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(e){this.options=common$1.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let r=inflate_1$2.inflateInit2(this.strm,t.windowBits);if(r!==Z_OK)throw new Error(messages$1[r]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=strings.string2buf(t.dictionary):toString.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=inflate_1$2.inflateSetDictionary(this.strm,t.dictionary),r!==Z_OK)))throw new Error(messages$1[r])}Inflate$1.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,o=this.options.dictionary;let l,u,h;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?Z_FINISH:Z_NO_FLUSH,toString.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),l=inflate_1$2.inflate(r,u),l===Z_NEED_DICT&&o&&(l=inflate_1$2.inflateSetDictionary(r,o),l===Z_OK?l=inflate_1$2.inflate(r,u):l===Z_DATA_ERROR&&(l=Z_NEED_DICT));r.avail_in>0&&l===Z_STREAM_END&&r.state.wrap>0&&e[r.next_in]!==0;)inflate_1$2.inflateReset(r),l=inflate_1$2.inflate(r,u);switch(l){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(l),this.ended=!0,!1}if(h=r.avail_out,r.next_out&&(r.avail_out===0||l===Z_STREAM_END))if(this.options.to==="string"){let f=strings.utf8border(r.output,r.next_out),d=r.next_out-f,p=strings.buf2string(r.output,f);r.next_out=d,r.avail_out=n-d,d&&r.output.set(r.output.subarray(f,f+d),0),this.onData(p)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(l===Z_OK&&h===0)){if(l===Z_STREAM_END)return l=inflate_1$2.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(e){this.chunks.push(e)};Inflate$1.prototype.onEnd=function(e){e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common$1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function inflate$1(e,t){const r=new Inflate$1(t);if(r.push(e),r.err)throw r.msg||messages$1[r.err];return r.result}function inflateRaw$1(e,t){return t=t||{},t.raw=!0,inflate$1(e,t)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants$3=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants:constants$3};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(e,t=r=>r)=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),_mkUriSafe=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),_tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=e=>{let t,r,n,o,l="";const u=e.length%3;for(let h=0;h255||(n=e.charCodeAt(h++))>255||(o=e.charCodeAt(h++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,l+=b64chs[t>>18&63]+b64chs[t>>12&63]+b64chs[t>>6&63]+b64chs[t&63]}return u?l.slice(0,u-3)+"===".substring(u):l},_btoa=_hasbtoa?e=>btoa(e):_hasBuffer?e=>Buffer.from(e,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,o=e.length;nt?_mkUriSafe(_fromUint8Array(e)):_fromUint8Array(e),cb_utob=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?_fromCC(192|t>>>6)+_fromCC(128|t&63):_fromCC(224|t>>>12&15)+_fromCC(128|t>>>6&63)+_fromCC(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return _fromCC(240|t>>>18&7)+_fromCC(128|t>>>12&63)+_fromCC(128|t>>>6&63)+_fromCC(128|t&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=e=>e.replace(re_utob,cb_utob),_encode=_hasBuffer?e=>Buffer.from(e,"utf8").toString("base64"):_TE?e=>_fromUint8Array(_TE.encode(e)):e=>_btoa(utob(e)),encode=(e,t=!1)=>t?_mkUriSafe(_encode(e)):_encode(e),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return _fromCC((r>>>10)+55296)+_fromCC((r&1023)+56320);case 3:return _fromCC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _fromCC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=e=>e.replace(re_btou,cb_btou),atobPolyfill=e=>{if(e=e.replace(/\s+/g,""),!b64re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,o;for(let l=0;l>16&255):o===64?_fromCC(t>>16&255,t>>8&255):_fromCC(t>>16&255,t>>8&255,t&255);return r},_atob=_hasatob?e=>atob(_tidyB64(e)):_hasBuffer?e=>Buffer.from(e,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?e=>_U8Afrom(Buffer.from(e,"base64")):e=>_U8Afrom(_atob(e),t=>t.charCodeAt(0)),toUint8Array=e=>_toUint8Array(_unURI(e)),_decode=_hasBuffer?e=>Buffer.from(e,"base64").toString("utf8"):_TD?e=>_TD.decode(_toUint8Array(e)):e=>btou(_atob(e)),_unURI=e=>_tidyB64(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),decode=e=>_decode(_unURI(e)),base64Serde={serialize:e=>encode(e,!0),deserialize:e=>decode(e)},pakoSerde={serialize:e=>{const t=new TextEncoder().encode(e),r=deflate_1(t,{level:9});return fromUint8Array(r,!0)},deserialize:e=>{const t=toUint8Array(e);return inflate_1(t,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(e,t="pako")=>{if(!(t in serdes))throw new Error(`Unknown serde type: ${t}`);const r=JSON.stringify(e),n=serdes[t].serialize(r);return`${t}:${n}`},deserializeState=e=>{let t,r;if(e.includes(":")){let o;if([o,r]=e.split(":"),o in serdes)t=o;else throw new Error(`Unknown serde type: ${o}`)}else t="base64",r=e;const n=serdes[t].deserialize(r);return JSON.parse(n)};var dist$1={},words={};(function(e){var t=commonjsGlobal$1&&commonjsGlobal$1.__values||function(n){var o=typeof Symbol=="function"&&Symbol.iterator,l=o&&n[o],u=0;if(l)return l.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&u>=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.getWordsByCategory=e.wordList=void 0,e.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function r(n,o){var l,u;o===void 0&&(o=[]);var h=new Set(o),f=[];try{for(var d=t(e.wordList[n]),p=d.next();!p.done;p=d.next()){var m=p.value;(o.length===0||m.categories.some(function(g){return h.has(g)}))&&f.push(m.word)}}catch(g){l={error:g}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return f}e.getWordsByCategory=r})(words);var __assign=commonjsGlobal$1&&commonjsGlobal$1.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{o(e==="auto"?t:e==="manual"?r:e==="loader"?n:t)}),addHistoryEntry=e=>{const t={...e,id:v4()};if(t.type==="loader"){loaderHistoryStore.update(r=>[t,...r]);return}t.name||(t.name=generateSlug_1(2)),t.type==="auto"?autoHistoryStore.update(r=>(r.length>=MAX_AUTO_HISTORY_LENGTH&&(r=r.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[t,...r])):t.type==="manual"&&(manualHistoryStore.update(r=>[t,...r]),logEvent("history",{action:"save"}))},clearHistoryData=e=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(t=>(get_store_value(historyModeStore)!=="loader"&&(t=t.filter(({id:r})=>e&&r!=e),logEvent("history",{action:"clear",type:e?"single":"all"})),t))},getPreviousState=e=>{const t=get_store_value(e?autoHistoryStore:manualHistoryStore);return t.length>0?JSON.stringify(t[0].state):""},restoreHistory=e=>{const t=e.filter(validateEntry),r=e.length-t.length;if(r>0&&(console.error(`${r} invalid history entries were removed.`),console.error(e)),t.length>0){let n=0;(t[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(o=>{const l=new Set(o.map(({id:f})=>f)),u=t.filter(({id:f})=>!l.has(f));n=u.length;const h=[...o,...u];return h.sort((f,d)=>d.time-f.time),h}),alert(`${n} entries restored. ${r} invalid, ${t.length-n} duplicates.`),logEvent("history",{action:"restore",success:n,invalid:r,duplicates:t.length-n})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const e=t=>{for(const r of t)r.id||(r.id=v4());return t};autoHistoryStore.update(e),manualHistoryStore.update(e)},validateEntry=e=>e.type&&e.state&&e.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=e=>codeFileName in e,getFileContent=async e=>e.truncated?await(await fetch(e.raw_url)).text():e.content,getGistData=async e=>{const t=e.split("github.com").pop();if(!t)throw new Error("Invalid GitHub URL"+e);const[r,n,o,l]=t.split("/"),{html_url:u,files:h,history:f}=await(await fetch(`https://api.github.com/gists/${o}${l?"/"+l:""}`)).json();if(isValidGist(h)){const d=await getFileContent(h[codeFileName]);let p="{}";configFileName in h&&(p=await getFileContent(h[configFileName]));const m=f[0];return{url:`${u}/${m.version}`,code:d,config:p,author:m.user.login,time:new Date(m.committed_at).getTime(),version:m.version.slice(-7)}}else throw new Error("Invalid gist provided")},getStateFromGist=(e,t=e.url)=>{const r={...defaultState,code:e.code,loader:{type:"gist",config:{url:t}}};return e.config&&(r.mermaid=e.config),r},loadGistData=async e=>{const t=e.split("github.com").pop();if(!t)throw new Error("Invalid GitHub URL"+e);const[r,n,o,l]=t.split("/"),{history:u}=await(await fetch(`https://api.github.com/gists/${o}${l?"/"+l:""}`)).json(),h=[];for(const p of u){const m=await getGistData(p.url).catch(()=>{});m&&h.push(m)}if(h.length===0)throw new Error("Invalid gist provided");h.reverse();const f=h.slice(-1).pop();if(!f)throw new Error("Invalid gist provided");const d=getStateFromGist(f,e);for(const p of h)addHistoryEntry({state:getStateFromGist(p),time:p.time,type:"loader",url:p.url,name:`${p.author} v${p.version}`});return d},loaders={gist:loadGistData},loadDataFromUrl=async()=>{var h,f;const e=new URLSearchParams(window.location.search);let t=defaultState,r,n,o=!1;const l=(h=e.get("code"))!=null?h:void 0,u=(f=e.get("config"))!=null?f:void 0;if(l&&(r=await(await fetch(l)).text(),o=!0),u?n=await(await fetch(u)).text():n=defaultState.mermaid,r){if(!l)throw new Error("Code URL is not defined");t={code:r,mermaid:n,loader:{type:"files",config:{codeURL:l,configURL:u}}}}else for(const[d,p]of e.entries())if(d in loaders)try{t=await loaders[d](p),o=!0;break}catch(m){console.error(m)}o&&updateCodeStore({...t,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:e}=get_store_value(migrationStore),t=Object.entries(migrations);if(e!==t.length-1){console.log(`Current migration version: v${e}. Migrating to v${t.length-1}.`);for(let r=e+1;r>>0,ne=0;negt($)?($e=$+1,De-gt($)):($e=$,De);return{year:$e,dayOfYear:ze}}function Nt($,O,j){var ne,le,$e=St($.year(),O,j),$e=Math.floor(($.dayOfYear()-$e-1)/7)+1;return $e<1?ne=$e+Pt(le=$.year()-1,O,j):$e>Pt($.year(),O,j)?(ne=$e-Pt($.year(),O,j),le=$.year()+1):(le=$.year(),ne=$e),{week:ne,year:le}}function Pt($,le,j){var ne=St($,le,j),le=St($+1,le,j);return(gt($)-ne+le)/7}ce("w",["ww",2],"wo","week"),ce("W",["WW",2],"Wo","isoWeek"),me("week","w"),me("isoWeek","W"),pe("week",5),pe("isoWeek",5),Te("w",we),Te("ww",we,mt),Te("W",we),Te("WW",we,mt),wt(["w","ww","W","WW"],function($,O,j,ne){O[ne.substr(0,1)]=ee($)});function Lt($,O){return $.slice(O,7).concat($.slice(0,O))}ce("d",0,"do","day"),ce("dd",0,0,function($){return this.localeData().weekdaysMin(this,$)}),ce("ddd",0,0,function($){return this.localeData().weekdaysShort(this,$)}),ce("dddd",0,0,function($){return this.localeData().weekdays(this,$)}),ce("e",0,0,"weekday"),ce("E",0,0,"isoWeekday"),me("day","d"),me("weekday","e"),me("isoWeekday","E"),pe("day",11),pe("weekday",11),pe("isoWeekday",11),Te("d",we),Te("e",we),Te("E",we),Te("dd",function($,O){return O.weekdaysMinRegex($)}),Te("ddd",function($,O){return O.weekdaysShortRegex($)}),Te("dddd",function($,O){return O.weekdaysRegex($)}),wt(["dd","ddd","dddd"],function($,O,j,ne){ne=j._locale.weekdaysParse($,ne,j._strict),ne!=null?O.d=ne:v(j).invalidWeekday=$}),wt(["d","e","E"],function($,O,j,ne){O[ne]=ee($)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=Be,Ve=Be,ot=Be;function Mt(){function $(We,yt){return yt.length-We.length}for(var O,j,ne,le=[],$e=[],De=[],ze=[],Qe=0;Qe<7;Qe++)ne=b([2e3,1]).day(Qe),O=Ge(this.weekdaysMin(ne,"")),j=Ge(this.weekdaysShort(ne,"")),ne=Ge(this.weekdays(ne,"")),le.push(O),$e.push(j),De.push(ne),ze.push(O),ze.push(j),ze.push(ne);le.sort($),$e.sort($),De.sort($),ze.sort($),this._weekdaysRegex=new RegExp("^("+ze.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+De.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+$e.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+le.join("|")+")","i")}function At(){return this.hours()%12||12}function Rt($,O){ce($,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),O)})}function Ut($,O){return O._meridiemParse}ce("H",["HH",2],0,"hour"),ce("h",["hh",2],0,At),ce("k",["kk",2],0,function(){return this.hours()||24}),ce("hmm",0,0,function(){return""+At.apply(this)+Q(this.minutes(),2)}),ce("hmmss",0,0,function(){return""+At.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),ce("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),ce("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)}),Rt("a",!0),Rt("A",!1),me("hour","h"),pe("hour",13),Te("a",Ut),Te("A",Ut),Te("H",we),Te("h",we),Te("k",we),Te("HH",we,mt),Te("hh",we,mt),Te("kk",we,mt),Te("hmm",Ye),Te("hmmss",He),Te("Hmm",Ye),Te("Hmmss",He),st(["H","HH"],Me),st(["k","kk"],function($,O,j){$=ee($),O[Me]=$===24?0:$}),st(["a","A"],function($,O,j){j._isPm=j._locale.isPM($),j._meridiem=$}),st(["h","hh"],function($,O,j){O[Me]=ee($),v(j).bigHour=!0}),st("hmm",function($,O,j){var ne=$.length-2;O[Me]=ee($.substr(0,ne)),O[Fe]=ee($.substr(ne)),v(j).bigHour=!0}),st("hmmss",function($,O,j){var ne=$.length-4,le=$.length-2;O[Me]=ee($.substr(0,ne)),O[Fe]=ee($.substr(ne,2)),O[qe]=ee($.substr(le)),v(j).bigHour=!0}),st("Hmm",function($,O,j){var ne=$.length-2;O[Me]=ee($.substr(0,ne)),O[Fe]=ee($.substr(ne))}),st("Hmmss",function($,O,j){var ne=$.length-4,le=$.length-2;O[Me]=ee($.substr(0,ne)),O[Fe]=ee($.substr(ne,2)),O[qe]=ee($.substr(le))}),Be=Z("Hours",!0);var It,rr={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:lt,monthsShort:xt,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:ye,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},Tt={},Qt={};function Sr($){return $&&$.toLowerCase().replace("_","-")}function xr($){for(var O,j,ne,le,$e=0;$e<$.length;){for(O=(le=Sr($[$e]).split("-")).length,j=(j=Sr($[$e+1]))?j.split("-"):null;0=O&&function(De,ze){for(var Qe=Math.min(De.length,ze.length),We=0;We=O-1)break;O--}$e++}return It}function Gt($){var O;if(Tt[$]===void 0&&!0&&e&&e.exports&&$.match("^[^/\\\\]*$")!=null)try{O=It._abbr,commonjsRequire$1("./locale/"+$),at(O)}catch{Tt[$]=null}return Tt[$]}function at($,O){return $&&((O=f(O)?pt($):ct($,O))?It=O:typeof console<"u"&&console.warn&&console.warn("Locale "+$+" not found. Did you forget to load it?")),It._abbr}function ct($,O){if(O===null)return delete Tt[$],null;var j,ne=rr;if(O.abbr=$,Tt[$]!=null)W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ne=Tt[$]._config;else if(O.parentLocale!=null)if(Tt[O.parentLocale]!=null)ne=Tt[O.parentLocale]._config;else{if((j=Gt(O.parentLocale))==null)return Qt[O.parentLocale]||(Qt[O.parentLocale]=[]),Qt[O.parentLocale].push({name:$,config:O}),null;ne=j._config}return Tt[$]=new L(U(ne,O)),Qt[$]&&Qt[$].forEach(function(le){ct(le.name,le.config)}),at($),Tt[$]}function pt($){var O;if(!($=$&&$._locale&&$._locale._abbr?$._locale._abbr:$))return It;if(!o($)){if(O=Gt($))return O;$=[$]}return xr($)}function Ze($){var O=$._a;return O&&v($).overflow===-2&&(O=O[Je]<0||11Re(O[Ke],O[Je])?Oe:O[Me]<0||24Pt($e,Qe,We)?v(ne)._overflowWeeks=!0:yt!=null?v(ne)._overflowWeekday=!0:(ut=ft($e,De,ze,Qe,We),ne._a[Ke]=ut.year,ne._dayOfYear=ut.dayOfYear)),$._dayOfYear!=null&&(le=er($._a[Ke],j[Ke]),($._dayOfYear>gt(le)||$._dayOfYear===0)&&(v($)._overflowDayOfYear=!0),yt=Ht(le,0,$._dayOfYear),$._a[Je]=yt.getUTCMonth(),$._a[Oe]=yt.getUTCDate()),O=0;O<3&&$._a[O]==null;++O)$._a[O]=Ot[O]=j[O];for(;O<7;O++)$._a[O]=Ot[O]=$._a[O]==null?O===2?1:0:$._a[O];$._a[Me]===24&&$._a[Fe]===0&&$._a[qe]===0&&$._a[et]===0&&($._nextDay=!0,$._a[Me]=0),$._d=($._useUTC?Ht:tr).apply(null,Ot),$e=$._useUTC?$._d.getUTCDay():$._d.getDay(),$._tzm!=null&&$._d.setUTCMinutes($._d.getUTCMinutes()-$._tzm),$._nextDay&&($._a[Me]=24),$._w&&$._w.d!==void 0&&$._w.d!==$e&&(v($).weekdayMismatch=!0)}}function wr($){if($._f===n.ISO_8601)Ar($);else if($._f===n.RFC_2822)Jt($);else{$._a=[],v($).empty=!0;for(var O,j,ne,le,$e,De=""+$._i,ze=De.length,Qe=0,We=Se($._f,$._locale).match(ue)||[],yt=We.length,ut=0;ut$.valueOf():$.valueOf()"}),te.toJSON=function(){return this.isValid()?this.toISOString():null},te.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},te.unix=function(){return Math.floor(this.valueOf()/1e3)},te.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},te.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},te.eraName=function(){for(var $,O=this.localeData().eras(),j=0,ne=O.length;jthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},te.isLocal=function(){return!!this.isValid()&&!this._isUTC},te.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},te.isUtc=Yr,te.isUTC=Yr,te.zoneAbbr=function(){return this._isUTC?"UTC":""},te.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},te.dates=G("dates accessor is deprecated. Use date instead.",hr),te.months=G("months accessor is deprecated. Use month instead",ht),te.years=G("years accessor is deprecated. Use year instead",Dr),te.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function($,O){return $!=null?(this.utcOffset($=typeof $!="string"?-$:$,O),this):-this.utcOffset()}),te.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!f(this._isDSTShifted))return this._isDSTShifted;var $,O={};return F(O,this),(O=Rr(O))._a?($=(O._isUTC?b:Et)(O._a),this._isDSTShifted=this.isValid()&&0-1}function decodeHtmlCharacters(e){return e.replace(htmlEntitiesRegex,function(t,r){return String.fromCharCode(r)})}function sanitizeUrl(e){var t=decodeHtmlCharacters(e||"").replace(ctrlCharactersRegex,"").trim();if(!t)return"about:blank";if(isRelativeUrlWithoutProtocol(t))return t;var r=t.match(urlSchemeRegex);if(!r)return t;var n=r[0];return invalidProtocolRegex.test(n)?"about:blank":t}sanitizeUrl_1=dist.sanitizeUrl=sanitizeUrl;class InternMap extends Map{constructor(t,r=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(intern_get(this,t))}has(t){return super.has(intern_get(this,t))}set(t,r){return super.set(intern_set(this,t),r)}delete(t){return super.delete(intern_delete(this,t))}}function intern_get({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function intern_set({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function intern_delete({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}function max$4(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r=o)&&(r=o)}return r}function min$3(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function identity$e(e){return e}var top$1=1,right$1=2,bottom$1=3,left$1=4,epsilon$7=1e-6;function translateX$1(e){return"translate("+e+",0)"}function translateY$1(e){return"translate(0,"+e+")"}function number$7(e){return t=>+e(t)}function center$2(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function entering$1(){return!this.__axis}function axis$1(e,t){var r=[],n=null,o=null,l=6,u=6,h=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,d=e===top$1||e===left$1?-1:1,p=e===left$1||e===right$1?"x":"y",m=e===top$1||e===bottom$1?translateX$1:translateY$1;function g(b){var v=n==null?t.ticks?t.ticks.apply(t,r):t.domain():n,T=o==null?t.tickFormat?t.tickFormat.apply(t,r):identity$e:o,R=Math.max(l,0)+h,I=t.range(),N=+I[0]+f,q=+I[I.length-1]+f,F=(t.bandwidth?center$2:number$7)(t.copy(),f),H=b.selection?b.selection():b,V=H.selectAll(".domain").data([null]),z=H.selectAll(".tick").data(v,t).order(),G=z.exit(),P=z.enter().append("g").attr("class","tick"),W=z.select("line"),S=z.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),z=z.merge(P),W=W.merge(P.append("line").attr("stroke","currentColor").attr(p+"2",d*l)),S=S.merge(P.append("text").attr("fill","currentColor").attr(p,d*R).attr("dy",e===top$1?"0em":e===bottom$1?"0.71em":"0.32em")),b!==H&&(V=V.transition(b),z=z.transition(b),W=W.transition(b),S=S.transition(b),G=G.transition(b).attr("opacity",epsilon$7).attr("transform",function(U){return isFinite(U=F(U))?m(U+f):this.getAttribute("transform")}),P.attr("opacity",epsilon$7).attr("transform",function(U){var L=this.parentNode.__axis;return m((L&&isFinite(L=L(U))?L:F(U))+f)})),G.remove(),V.attr("d",e===left$1||e===right$1?u?"M"+d*u+","+N+"H"+f+"V"+q+"H"+d*u:"M"+f+","+N+"V"+q:u?"M"+N+","+d*u+"V"+f+"H"+q+"V"+d*u:"M"+N+","+f+"H"+q),z.attr("opacity",1).attr("transform",function(U){return m(F(U)+f)}),W.attr(p+"2",d*l),S.attr(p,d*R).text(T),H.filter(entering$1).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right$1?"start":e===left$1?"end":"middle"),H.each(function(){this.__axis=F})}return g.scale=function(b){return arguments.length?(t=b,g):t},g.ticks=function(){return r=Array.from(arguments),g},g.tickArguments=function(b){return arguments.length?(r=b==null?[]:Array.from(b),g):r.slice()},g.tickValues=function(b){return arguments.length?(n=b==null?null:Array.from(b),g):n&&n.slice()},g.tickFormat=function(b){return arguments.length?(o=b,g):o},g.tickSize=function(b){return arguments.length?(l=u=+b,g):l},g.tickSizeInner=function(b){return arguments.length?(l=+b,g):l},g.tickSizeOuter=function(b){return arguments.length?(u=+b,g):u},g.tickPadding=function(b){return arguments.length?(h=+b,g):h},g.offset=function(b){return arguments.length?(f=+b,g):f},g}function axisTop$1(e){return axis$1(top$1,e)}function axisBottom$1(e){return axis$1(bottom$1,e)}function define$2(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function extend$2(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Color$4(){}var darker$2=.7,brighter$2=1/darker$2,reI$2="\\s*([+-]?\\d+)\\s*",reN$2="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP$2="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex$2=/^#([0-9a-f]{3,8})$/,reRgbInteger$2=new RegExp("^rgb\\("+[reI$2,reI$2,reI$2]+"\\)$"),reRgbPercent$2=new RegExp("^rgb\\("+[reP$2,reP$2,reP$2]+"\\)$"),reRgbaInteger$2=new RegExp("^rgba\\("+[reI$2,reI$2,reI$2,reN$2]+"\\)$"),reRgbaPercent$2=new RegExp("^rgba\\("+[reP$2,reP$2,reP$2,reN$2]+"\\)$"),reHslPercent$2=new RegExp("^hsl\\("+[reN$2,reP$2,reP$2]+"\\)$"),reHslaPercent$2=new RegExp("^hsla\\("+[reN$2,reP$2,reP$2,reN$2]+"\\)$"),named$2={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};define$2(Color$4,color$2,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:color_formatHex$2,formatHex:color_formatHex$2,formatHsl:color_formatHsl$2,formatRgb:color_formatRgb$2,toString:color_formatRgb$2});function color_formatHex$2(){return this.rgb().formatHex()}function color_formatHsl$2(){return hslConvert$2(this).formatHsl()}function color_formatRgb$2(){return this.rgb().formatRgb()}function color$2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=reHex$2.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?rgbn$2(t):r===3?new Rgb$2(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?rgba$4(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?rgba$4(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=reRgbInteger$2.exec(e))?new Rgb$2(t[1],t[2],t[3],1):(t=reRgbPercent$2.exec(e))?new Rgb$2(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger$2.exec(e))?rgba$4(t[1],t[2],t[3],t[4]):(t=reRgbaPercent$2.exec(e))?rgba$4(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent$2.exec(e))?hsla$2(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent$2.exec(e))?hsla$2(t[1],t[2]/100,t[3]/100,t[4]):named$2.hasOwnProperty(e)?rgbn$2(named$2[e]):e==="transparent"?new Rgb$2(NaN,NaN,NaN,0):null}function rgbn$2(e){return new Rgb$2(e>>16&255,e>>8&255,e&255,1)}function rgba$4(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rgb$2(e,t,r,n)}function rgbConvert$2(e){return e instanceof Color$4||(e=color$2(e)),e?(e=e.rgb(),new Rgb$2(e.r,e.g,e.b,e.opacity)):new Rgb$2}function rgb$3(e,t,r,n){return arguments.length===1?rgbConvert$2(e):new Rgb$2(e,t,r,n==null?1:n)}function Rgb$2(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}define$2(Rgb$2,rgb$3,extend$2(Color$4,{brighter:function(e){return e=e==null?brighter$2:Math.pow(brighter$2,e),new Rgb$2(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?darker$2:Math.pow(darker$2,e),new Rgb$2(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:rgb_formatHex$2,formatHex:rgb_formatHex$2,formatRgb:rgb_formatRgb$2,toString:rgb_formatRgb$2}));function rgb_formatHex$2(){return"#"+hex$2(this.r)+hex$2(this.g)+hex$2(this.b)}function rgb_formatRgb$2(){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 hex$2(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function hsla$2(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl$2(e,t,r,n)}function hslConvert$2(e){if(e instanceof Hsl$2)return new Hsl$2(e.h,e.s,e.l,e.opacity);if(e instanceof Color$4||(e=color$2(e)),!e)return new Hsl$2;if(e instanceof Hsl$2)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),l=Math.max(t,r,n),u=NaN,h=l-o,f=(l+o)/2;return h?(t===l?u=(r-n)/h+(r0&&f<1?0:u,new Hsl$2(u,h,f,e.opacity)}function hsl$4(e,t,r,n){return arguments.length===1?hslConvert$2(e):new Hsl$2(e,t,r,n==null?1:n)}function Hsl$2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}define$2(Hsl$2,hsl$4,extend$2(Color$4,{brighter:function(e){return e=e==null?brighter$2:Math.pow(brighter$2,e),new Hsl$2(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?darker$2:Math.pow(darker$2,e),new Hsl$2(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Rgb$2(hsl2rgb$2(e>=240?e-240:e+120,o,n),hsl2rgb$2(e,o,n),hsl2rgb$2(e<120?e+240:e-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function hsl2rgb$2(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const radians$1=Math.PI/180,degrees$3=180/Math.PI,K$1=18,Xn$1=.96422,Yn$1=1,Zn$1=.82521,t0$4=4/29,t1$4=6/29,t2$1=3*t1$4*t1$4,t3$1=t1$4*t1$4*t1$4;function labConvert$1(e){if(e instanceof Lab$1)return new Lab$1(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl$1)return hcl2lab$1(e);e instanceof Rgb$2||(e=rgbConvert$2(e));var t=rgb2lrgb$1(e.r),r=rgb2lrgb$1(e.g),n=rgb2lrgb$1(e.b),o=xyz2lab$1((.2225045*t+.7168786*r+.0606169*n)/Yn$1),l,u;return t===r&&r===n?l=u=o:(l=xyz2lab$1((.4360747*t+.3850649*r+.1430804*n)/Xn$1),u=xyz2lab$1((.0139322*t+.0971045*r+.7141733*n)/Zn$1)),new Lab$1(116*o-16,500*(l-o),200*(o-u),e.opacity)}function lab$2(e,t,r,n){return arguments.length===1?labConvert$1(e):new Lab$1(e,t,r,n==null?1:n)}function Lab$1(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}define$2(Lab$1,lab$2,extend$2(Color$4,{brighter:function(e){return new Lab$1(this.l+K$1*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Lab$1(this.l-K$1*(e==null?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=Xn$1*lab2xyz$1(t),e=Yn$1*lab2xyz$1(e),r=Zn$1*lab2xyz$1(r),new Rgb$2(lrgb2rgb$1(3.1338561*t-1.6168667*e-.4906146*r),lrgb2rgb$1(-.9787684*t+1.9161415*e+.033454*r),lrgb2rgb$1(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function xyz2lab$1(e){return e>t3$1?Math.pow(e,1/3):e/t2$1+t0$4}function lab2xyz$1(e){return e>t1$4?e*e*e:t2$1*(e-t0$4)}function lrgb2rgb$1(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb$1(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert$1(e){if(e instanceof Hcl$1)return new Hcl$1(e.h,e.c,e.l,e.opacity);if(e instanceof Lab$1||(e=labConvert$1(e)),e.a===0&&e.b===0)return new Hcl$1(NaN,0{}};function dispatch$1(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Dispatch$1.prototype=dispatch$1.prototype={constructor:Dispatch$1,on:function(e,t){var r=this._,n=parseTypenames$3(e+"",r),o,l=-1,u=n.length;if(arguments.length<2){for(;++l0)for(var r=new Array(o),n=0,o,l;n=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),namespaces$1.hasOwnProperty(t)?{space:namespaces$1[t],local:e}:e}function creatorInherit$1(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===xhtml$1&&t.documentElement.namespaceURI===xhtml$1?t.createElement(e):t.createElementNS(r,e)}}function creatorFixed$1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator$1(e){var t=namespace$1(e);return(t.local?creatorFixed$1:creatorInherit$1)(t)}function none$3(){}function selector$1(e){return e==null?none$3:function(){return this.querySelector(e)}}function selection_select$1(e){typeof e!="function"&&(e=selector$1(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o=q&&(q=N+1);!(H=R[q])&&++q=0;)(u=n[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function selection_sort$1(e){e||(e=ascending$5);function t(m,g){return m&&g?e(m.__data__,g.__data__):!m-!g}for(var r=this._groups,n=r.length,o=new Array(n),l=0;lt?1:e>=t?0:NaN}function selection_call$1(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes$1(){return Array.from(this)}function selection_node$1(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?styleRemove$3:typeof t=="function"?styleFunction$3:styleConstant$3)(e,t,r==null?"":r)):styleValue$1(this.node(),e)}function styleValue$1(e,t){return e.style.getPropertyValue(t)||defaultView$1(e).getComputedStyle(e,null).getPropertyValue(t)}function propertyRemove$1(e){return function(){delete this[e]}}function propertyConstant$1(e,t){return function(){this[e]=t}}function propertyFunction$1(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function selection_property$1(e,t){return arguments.length>1?this.each((t==null?propertyRemove$1:typeof t=="function"?propertyFunction$1:propertyConstant$1)(e,t)):this.node()[e]}function classArray$1(e){return e.trim().split(/^|\s+/)}function classList$1(e){return e.classList||new ClassList$1(e)}function ClassList$1(e){this._node=e,this._names=classArray$1(e.getAttribute("class")||"")}ClassList$1.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 classedAdd$1(e,t){for(var r=classList$1(e),n=-1,o=t.length;++n=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function onRemove$1(e){return function(){var t=this.__on;if(!!t){for(var r=0,n=-1,o=t.length,l;r()=>e;function linear$5(e,t){return function(r){return e+r*t}}function exponential$3(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function hue$2(e,t){var r=t-e;return r?linear$5(e,r>180||r<-180?r-360*Math.round(r/360):r):constant$g(isNaN(e)?t:e)}function gamma$2(e){return(e=+e)==1?nogamma$2:function(t,r){return r-t?exponential$3(t,r,e):constant$g(isNaN(t)?r:t)}}function nogamma$2(e,t){var r=t-e;return r?linear$5(e,r):constant$g(isNaN(e)?t:e)}const interpolateRgb$1=function e(t){var r=gamma$2(t);function n(o,l){var u=r((o=rgb$3(o)).r,(l=rgb$3(l)).r),h=r(o.g,l.g),f=r(o.b,l.b),d=nogamma$2(o.opacity,l.opacity);return function(p){return o.r=u(p),o.g=h(p),o.b=f(p),o.opacity=d(p),o+""}}return n.gamma=e,n}(1);function interpolateNumber$2(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var reA$2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB$2=new RegExp(reA$2.source,"g");function zero$2(e){return function(){return e}}function one$2(e){return function(t){return e(t)+""}}function interpolateString$1(e,t){var r=reA$2.lastIndex=reB$2.lastIndex=0,n,o,l,u=-1,h=[],f=[];for(e=e+"",t=t+"";(n=reA$2.exec(e))&&(o=reB$2.exec(t));)(l=o.index)>r&&(l=t.slice(r,l),h[u]?h[u]+=l:h[++u]=l),(n=n[0])===(o=o[0])?h[u]?h[u]+=o:h[++u]=o:(h[++u]=null,f.push({i:u,x:interpolateNumber$2(n,o)})),r=reB$2.lastIndex;return r180?p+=360:p-d>180&&(d+=360),g.push({i:m.push(o(m)+"rotate(",null,n)-2,x:interpolateNumber$2(d,p)})):p&&m.push(o(m)+"rotate("+p+n)}function h(d,p,m,g){d!==p?g.push({i:m.push(o(m)+"skewX(",null,n)-2,x:interpolateNumber$2(d,p)}):p&&m.push(o(m)+"skewX("+p+n)}function f(d,p,m,g,b,v){if(d!==m||p!==g){var T=b.push(o(b)+"scale(",null,",",null,")");v.push({i:T-4,x:interpolateNumber$2(d,m)},{i:T-2,x:interpolateNumber$2(p,g)})}else(m!==1||g!==1)&&b.push(o(b)+"scale("+m+","+g+")")}return function(d,p){var m=[],g=[];return d=e(d),p=e(p),l(d.translateX,d.translateY,p.translateX,p.translateY,m,g),u(d.rotate,p.rotate,m,g),h(d.skewX,p.skewX,m,g),f(d.scaleX,d.scaleY,p.scaleX,p.scaleY,m,g),d=p=null,function(b){for(var v=-1,T=g.length,R;++vt?1:e>=t?0:NaN}function bisector$1(e){let t=e,r=e,n=e;e.length!==2&&(t=(h,f)=>e(h)-f,r=ascending$4,n=(h,f)=>ascending$4(e(h),f));function o(h,f,d=0,p=h.length){if(d>>1;n(h[m],f)<0?d=m+1:p=m}while(d>>1;n(h[m],f)<=0?d=m+1:p=m}while(dd&&t(h[m-1],f)>-t(h[m],f)?m-1:m}return{left:o,center:u,right:l}}function number$6(e){return e===null?NaN:+e}const ascendingBisect$1=bisector$1(ascending$4),bisectRight$1=ascendingBisect$1.right;bisector$1(number$6).center;const bisect=bisectRight$1;var e10$1=Math.sqrt(50),e5$1=Math.sqrt(10),e2$1=Math.sqrt(2);function ticks$1(e,t,r){var n,o=-1,l,u,h;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((n=t0){let f=Math.round(e/h),d=Math.round(t/h);for(f*ht&&--d,u=new Array(l=d-f+1);++ot&&--d,u=new Array(l=d-f+1);++o=0?(l>=e10$1?10:l>=e5$1?5:l>=e2$1?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(l>=e10$1?10:l>=e5$1?5:l>=e2$1?2:1)}function tickStep$1(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),o=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),l=n/o;return l>=e10$1?o*=10:l>=e5$1?o*=5:l>=e2$1&&(o*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?rgba$3(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?rgba$3(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=reRgbInteger$1.exec(e))?new Rgb$1(t[1],t[2],t[3],1):(t=reRgbPercent$1.exec(e))?new Rgb$1(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger$1.exec(e))?rgba$3(t[1],t[2],t[3],t[4]):(t=reRgbaPercent$1.exec(e))?rgba$3(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent$1.exec(e))?hsla$1(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent$1.exec(e))?hsla$1(t[1],t[2]/100,t[3]/100,t[4]):named$1.hasOwnProperty(e)?rgbn$1(named$1[e]):e==="transparent"?new Rgb$1(NaN,NaN,NaN,0):null}function rgbn$1(e){return new Rgb$1(e>>16&255,e>>8&255,e&255,1)}function rgba$3(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rgb$1(e,t,r,n)}function rgbConvert$1(e){return e instanceof Color$3||(e=color$1(e)),e?(e=e.rgb(),new Rgb$1(e.r,e.g,e.b,e.opacity)):new Rgb$1}function rgb$2(e,t,r,n){return arguments.length===1?rgbConvert$1(e):new Rgb$1(e,t,r,n==null?1:n)}function Rgb$1(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}define$1(Rgb$1,rgb$2,extend$1(Color$3,{brighter:function(e){return e=e==null?brighter$1:Math.pow(brighter$1,e),new Rgb$1(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?darker$1:Math.pow(darker$1,e),new Rgb$1(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:rgb_formatHex$1,formatHex:rgb_formatHex$1,formatRgb:rgb_formatRgb$1,toString:rgb_formatRgb$1}));function rgb_formatHex$1(){return"#"+hex$1(this.r)+hex$1(this.g)+hex$1(this.b)}function rgb_formatRgb$1(){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 hex$1(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function hsla$1(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl$1(e,t,r,n)}function hslConvert$1(e){if(e instanceof Hsl$1)return new Hsl$1(e.h,e.s,e.l,e.opacity);if(e instanceof Color$3||(e=color$1(e)),!e)return new Hsl$1;if(e instanceof Hsl$1)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),l=Math.max(t,r,n),u=NaN,h=l-o,f=(l+o)/2;return h?(t===l?u=(r-n)/h+(r0&&f<1?0:u,new Hsl$1(u,h,f,e.opacity)}function hsl$3(e,t,r,n){return arguments.length===1?hslConvert$1(e):new Hsl$1(e,t,r,n==null?1:n)}function Hsl$1(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}define$1(Hsl$1,hsl$3,extend$1(Color$3,{brighter:function(e){return e=e==null?brighter$1:Math.pow(brighter$1,e),new Hsl$1(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?darker$1:Math.pow(darker$1,e),new Hsl$1(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Rgb$1(hsl2rgb$1(e>=240?e-240:e+120,o,n),hsl2rgb$1(e,o,n),hsl2rgb$1(e<120?e+240:e-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function hsl2rgb$1(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const constant$f=e=>()=>e;function linear$4(e,t){return function(r){return e+r*t}}function exponential$2(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function gamma$1(e){return(e=+e)==1?nogamma$1:function(t,r){return r-t?exponential$2(t,r,e):constant$f(isNaN(t)?r:t)}}function nogamma$1(e,t){var r=t-e;return r?linear$4(e,r):constant$f(isNaN(e)?t:e)}const rgb$1=function e(t){var r=gamma$1(t);function n(o,l){var u=r((o=rgb$2(o)).r,(l=rgb$2(l)).r),h=r(o.g,l.g),f=r(o.b,l.b),d=nogamma$1(o.opacity,l.opacity);return function(p){return o.r=u(p),o.g=h(p),o.b=f(p),o.opacity=d(p),o+""}}return n.gamma=e,n}(1);function numberArray$1(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(l){for(o=0;or&&(l=t.slice(r,l),h[u]?h[u]+=l:h[++u]=l),(n=n[0])===(o=o[0])?h[u]?h[u]+=o:h[++u]=o:(h[++u]=null,f.push({i:u,x:interpolateNumber$1(n,o)})),r=reB$1.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function bimap$1(e,t,r){var n=e[0],o=e[1],l=t[0],u=t[1];return o2?polymap$1:bimap$1,f=d=null,m}function m(g){return g==null||isNaN(g=+g)?l:(f||(f=h(e.map(n),t,r)))(n(u(g)))}return m.invert=function(g){return u(o((d||(d=h(t,e.map(n),interpolateNumber$1)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,number$5),p()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),p()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),r=interpolateRound$1,p()},m.clamp=function(g){return arguments.length?(u=g?!0:identity$c,p()):u!==identity$c},m.interpolate=function(g){return arguments.length?(r=g,p()):r},m.unknown=function(g){return arguments.length?(l=g,m):l},function(g,b){return n=g,o=b,p()}}function continuous$1(){return transformer$4()(identity$c,identity$c)}function formatDecimal$1(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts$1(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function exponent$2(e){return e=formatDecimalParts$1(Math.abs(e)),e?e[1]:NaN}function formatGroup$1(e,t){return function(r,n){for(var o=r.length,l=[],u=0,h=e[0],f=0;o>0&&h>0&&(f+h+1>n&&(h=Math.max(1,n-f)),l.push(r.substring(o-=h,o+h)),!((f+=h+1)>n));)h=e[u=(u+1)%e.length];return l.reverse().join(t)}}function formatNumerals$1(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var re$1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier$1(e){if(!(t=re$1.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier$1({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]})}formatSpecifier$1.prototype=FormatSpecifier$1.prototype;function FormatSpecifier$1(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+""}FormatSpecifier$1.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 formatTrim$1(e){e:for(var t=e.length,r=1,n=-1,o;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var prefixExponent$1;function formatPrefixAuto$1(e,t){var r=formatDecimalParts$1(e,t);if(!r)return e+"";var n=r[0],o=r[1],l=o-(prefixExponent$1=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,u=n.length;return l===u?n:l>u?n+new Array(l-u+1).join("0"):l>0?n.slice(0,l)+"."+n.slice(l):"0."+new Array(1-l).join("0")+formatDecimalParts$1(e,Math.max(0,t+l-1))[0]}function formatRounded$1(e,t){var r=formatDecimalParts$1(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const formatTypes$1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal$1,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)=>formatRounded$1(e*100,t),r:formatRounded$1,s:formatPrefixAuto$1,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$b(e){return e}var map$4=Array.prototype.map,prefixes$1=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$4(e){var t=e.grouping===void 0||e.thousands===void 0?identity$b:formatGroup$1(map$4.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?identity$b:formatNumerals$1(map$4.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",h=e.minus===void 0?"\u2212":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(m){m=formatSpecifier$1(m);var g=m.fill,b=m.align,v=m.sign,T=m.symbol,R=m.zero,I=m.width,N=m.comma,q=m.precision,F=m.trim,H=m.type;H==="n"?(N=!0,H="g"):formatTypes$1[H]||(q===void 0&&(q=12),F=!0,H="g"),(R||g==="0"&&b==="=")&&(R=!0,g="0",b="=");var V=T==="$"?r:T==="#"&&/[boxX]/.test(H)?"0"+H.toLowerCase():"",z=T==="$"?n:/[%p]/.test(H)?u:"",G=formatTypes$1[H],P=/[defgprs%]/.test(H);q=q===void 0?6:/[gprs]/.test(H)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function W(S){var U=V,L=z,ae,Q,ue;if(H==="c")L=G(S)+L,S="";else{S=+S;var _e=S<0||1/S<0;if(S=isNaN(S)?f:G(Math.abs(S),q),F&&(S=formatTrim$1(S)),_e&&+S==0&&v!=="+"&&(_e=!1),U=(_e?v==="("?v:h:v==="-"||v==="("?"":v)+U,L=(H==="s"?prefixes$1[8+prefixExponent$1/3]:"")+L+(_e&&v==="("?")":""),P){for(ae=-1,Q=S.length;++aeue||ue>57){L=(ue===46?o+S.slice(ae+1):S.slice(ae))+L,S=S.slice(0,ae);break}}}N&&!R&&(S=t(S,1/0));var ke=U.length+S.length+L.length,de=ke>1)+U+S+L+de.slice(ke);break;default:S=de+U+S+L;break}return l(S)}return W.toString=function(){return m+""},W}function p(m,g){var b=d((m=formatSpecifier$1(m),m.type="f",m)),v=Math.max(-8,Math.min(8,Math.floor(exponent$2(g)/3)))*3,T=Math.pow(10,-v),R=prefixes$1[8+v/3];return function(I){return b(T*I)+R}}return{format:d,formatPrefix:p}}var locale$4,format$2,formatPrefix$1;defaultLocale$4({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$4(e){return locale$4=formatLocale$4(e),format$2=locale$4.format,formatPrefix$1=locale$4.formatPrefix,locale$4}function precisionFixed$1(e){return Math.max(0,-exponent$2(Math.abs(e)))}function precisionPrefix$1(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent$2(t)/3)))*3-exponent$2(Math.abs(e)))}function precisionRound$1(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,exponent$2(t)-exponent$2(e))+1}function tickFormat$1(e,t,r,n){var o=tickStep$1(e,t,r),l;switch(n=formatSpecifier$1(n==null?",f":n),n.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(l=precisionPrefix$1(o,u))&&(n.precision=l),formatPrefix$1(n,u)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(l=precisionRound$1(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=l-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(l=precisionFixed$1(o))&&(n.precision=l-(n.type==="%")*2);break}}return format$2(n)}function linearish$1(e){var t=e.domain;return e.ticks=function(r){var n=t();return ticks$1(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var o=t();return tickFormat$1(o[0],o[o.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,l=n.length-1,u=n[o],h=n[l],f,d,p=10;for(h0;){if(d=tickIncrement$1(u,h,r),d===f)return n[o]=u,n[l]=h,t(n);if(d>0)u=Math.floor(u/d)*d,h=Math.ceil(h/d)*d;else if(d<0)u=Math.ceil(u*d)/d,h=Math.floor(h*d)/d;else break;f=d}return e},e}function linear$3(){var e=continuous$1();return e.copy=function(){return copy$3(e,linear$3())},initRange$1.apply(e,arguments),linearish$1(e)}function nice$1(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],l=e[n],u;return l0))return f;do f.push(d=new Date(+l)),t(l,h),e(l);while(d=u)for(;e(u),!l(u);)u.setTime(u-1)},function(u,h){if(u>=u)if(h<0)for(;++h<=0;)for(;t(u,-1),!l(u););else for(;--h>=0;)for(;t(u,1),!l(u););})},r&&(o.count=function(l,u){return t0$3.setTime(+l),t1$3.setTime(+u),e(t0$3),e(t1$3),Math.floor(r(t0$3,t1$3))},o.every=function(l){return l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(n?function(u){return n(u)%l===0}:function(u){return o.count(0,u)%l===0}):o}),o}var millisecond$1=newInterval$2(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});millisecond$1.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?newInterval$2(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):millisecond$1};const millisecond$2=millisecond$1;millisecond$1.range;const durationSecond$3=1e3,durationMinute$3=durationSecond$3*60,durationHour$3=durationMinute$3*60,durationDay$3=durationHour$3*24,durationWeek$3=durationDay$3*7,durationMonth$1=durationDay$3*30,durationYear$1=durationDay$3*365;var second$1=newInterval$2(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*durationSecond$3)},function(e,t){return(t-e)/durationSecond$3},function(e){return e.getUTCSeconds()});const utcSecond$1=second$1;second$1.range;var minute$1=newInterval$2(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*durationSecond$3)},function(e,t){e.setTime(+e+t*durationMinute$3)},function(e,t){return(t-e)/durationMinute$3},function(e){return e.getMinutes()});const timeMinute$1=minute$1;minute$1.range;var hour$1=newInterval$2(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*durationSecond$3-e.getMinutes()*durationMinute$3)},function(e,t){e.setTime(+e+t*durationHour$3)},function(e,t){return(t-e)/durationHour$3},function(e){return e.getHours()});const timeHour$1=hour$1;hour$1.range;var day$2=newInterval$2(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute$3)/durationDay$3,e=>e.getDate()-1);const timeDay$2=day$2;day$2.range;function weekday$2(e){return newInterval$2(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute$3)/durationWeek$3})}var sunday$2=weekday$2(0),monday$2=weekday$2(1),tuesday$2=weekday$2(2),wednesday$2=weekday$2(3),thursday$2=weekday$2(4),friday$2=weekday$2(5),saturday$2=weekday$2(6);sunday$2.range;monday$2.range;tuesday$2.range;wednesday$2.range;thursday$2.range;friday$2.range;saturday$2.range;var month$1=newInterval$2(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const timeMonth$1=month$1;month$1.range;var year$2=newInterval$2(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()});year$2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$2(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const timeYear$2=year$2;year$2.range;var utcMinute$2=newInterval$2(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*durationMinute$3)},function(e,t){return(t-e)/durationMinute$3},function(e){return e.getUTCMinutes()});const utcMinute$3=utcMinute$2;utcMinute$2.range;var utcHour$2=newInterval$2(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*durationHour$3)},function(e,t){return(t-e)/durationHour$3},function(e){return e.getUTCHours()});const utcHour$3=utcHour$2;utcHour$2.range;var utcDay$4=newInterval$2(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/durationDay$3},function(e){return e.getUTCDate()-1});const utcDay$5=utcDay$4;utcDay$4.range;function utcWeekday$2(e){return newInterval$2(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/durationWeek$3})}var utcSunday$2=utcWeekday$2(0),utcMonday$2=utcWeekday$2(1),utcTuesday$2=utcWeekday$2(2),utcWednesday$2=utcWeekday$2(3),utcThursday$2=utcWeekday$2(4),utcFriday$2=utcWeekday$2(5),utcSaturday$2=utcWeekday$2(6);utcSunday$2.range;utcMonday$2.range;utcTuesday$2.range;utcWednesday$2.range;utcThursday$2.range;utcFriday$2.range;utcSaturday$2.range;var utcMonth$2=newInterval$2(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const utcMonth$3=utcMonth$2;utcMonth$2.range;var utcYear$4=newInterval$2(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()});utcYear$4.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$2(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const utcYear$5=utcYear$4;utcYear$4.range;function ticker(e,t,r,n,o,l){const u=[[utcSecond$1,1,durationSecond$3],[utcSecond$1,5,5*durationSecond$3],[utcSecond$1,15,15*durationSecond$3],[utcSecond$1,30,30*durationSecond$3],[l,1,durationMinute$3],[l,5,5*durationMinute$3],[l,15,15*durationMinute$3],[l,30,30*durationMinute$3],[o,1,durationHour$3],[o,3,3*durationHour$3],[o,6,6*durationHour$3],[o,12,12*durationHour$3],[n,1,durationDay$3],[n,2,2*durationDay$3],[r,1,durationWeek$3],[t,1,durationMonth$1],[t,3,3*durationMonth$1],[e,1,durationYear$1]];function h(d,p,m){const g=pR).right(u,g);if(b===u.length)return e.every(tickStep$1(d/durationYear$1,p/durationYear$1,m));if(b===0)return millisecond$2.every(Math.max(tickStep$1(d,p,m),1));const[v,T]=u[g/u[b-1][2]53)return null;"w"in Z||(Z.w=1),"Z"in Z?(se=utcDate$2(newDate$2(Z.y,0,1)),te=se.getUTCDay(),se=te>4||te===0?utcMonday$2.ceil(se):utcMonday$2(se),se=utcDay$5.offset(se,(Z.V-1)*7),Z.y=se.getUTCFullYear(),Z.m=se.getUTCMonth(),Z.d=se.getUTCDate()+(Z.w+6)%7):(se=localDate$2(newDate$2(Z.y,0,1)),te=se.getDay(),se=te>4||te===0?monday$2.ceil(se):monday$2(se),se=timeDay$2.offset(se,(Z.V-1)*7),Z.y=se.getFullYear(),Z.m=se.getMonth(),Z.d=se.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),te="Z"in Z?utcDate$2(newDate$2(Z.y,0,1)).getUTCDay():localDate$2(newDate$2(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(te+5)%7:Z.w+Z.U*7-(te+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,utcDate$2(Z)):localDate$2(Z)}}function G(J,oe,ee,Z){for(var ie=0,se=oe.length,te=ee.length,fe,we;ie=te)return-1;if(fe=oe.charCodeAt(ie++),fe===37){if(fe=oe.charAt(ie++),we=H[fe in pads$2?oe.charAt(ie++):fe],!we||(Z=we(J,ee,Z))<0)return-1}else if(fe!=ee.charCodeAt(Z++))return-1}return Z}function P(J,oe,ee){var Z=d.exec(oe.slice(ee));return Z?(J.p=p.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function W(J,oe,ee){var Z=b.exec(oe.slice(ee));return Z?(J.w=v.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function S(J,oe,ee){var Z=m.exec(oe.slice(ee));return Z?(J.w=g.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function U(J,oe,ee){var Z=I.exec(oe.slice(ee));return Z?(J.m=N.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function L(J,oe,ee){var Z=T.exec(oe.slice(ee));return Z?(J.m=R.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function ae(J,oe,ee){return G(J,t,oe,ee)}function Q(J,oe,ee){return G(J,r,oe,ee)}function ue(J,oe,ee){return G(J,n,oe,ee)}function _e(J){return u[J.getDay()]}function ke(J){return l[J.getDay()]}function de(J){return f[J.getMonth()]}function ce(J){return h[J.getMonth()]}function he(J){return o[+(J.getHours()>=12)]}function Se(J){return 1+~~(J.getMonth()/3)}function ve(J){return u[J.getUTCDay()]}function me(J){return l[J.getUTCDay()]}function Ce(J){return f[J.getUTCMonth()]}function xe(J){return h[J.getUTCMonth()]}function Ne(J){return o[+(J.getUTCHours()>=12)]}function pe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var oe=V(J+="",q);return oe.toString=function(){return J},oe},parse:function(J){var oe=z(J+="",!1);return oe.toString=function(){return J},oe},utcFormat:function(J){var oe=V(J+="",F);return oe.toString=function(){return J},oe},utcParse:function(J){var oe=z(J+="",!0);return oe.toString=function(){return J},oe}}}var pads$2={"-":"",_:" ",0:"0"},numberRe$2=/^\s*\d+/,percentRe$2=/^%/,requoteRe$2=/[\\^$*+?|[\]().{}]/g;function pad$3(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",l=o.length;return n+(l[t.toLowerCase(),r]))}function parseWeekdayNumberSunday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone$2(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function parseMonthNumber$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent$2(e,t,r){var n=percentRe$2.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp$2(e,t,r){var n=numberRe$2.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth$2(e,t){return pad$3(e.getDate(),t,2)}function formatHour24$2(e,t){return pad$3(e.getHours(),t,2)}function formatHour12$2(e,t){return pad$3(e.getHours()%12||12,t,2)}function formatDayOfYear$2(e,t){return pad$3(1+timeDay$2.count(timeYear$2(e),e),t,3)}function formatMilliseconds$2(e,t){return pad$3(e.getMilliseconds(),t,3)}function formatMicroseconds$2(e,t){return formatMilliseconds$2(e,t)+"000"}function formatMonthNumber$2(e,t){return pad$3(e.getMonth()+1,t,2)}function formatMinutes$2(e,t){return pad$3(e.getMinutes(),t,2)}function formatSeconds$2(e,t){return pad$3(e.getSeconds(),t,2)}function formatWeekdayNumberMonday$2(e){var t=e.getDay();return t===0?7:t}function formatWeekNumberSunday$2(e,t){return pad$3(sunday$2.count(timeYear$2(e)-1,e),t,2)}function dISO$2(e){var t=e.getDay();return t>=4||t===0?thursday$2(e):thursday$2.ceil(e)}function formatWeekNumberISO$2(e,t){return e=dISO$2(e),pad$3(thursday$2.count(timeYear$2(e),e)+(timeYear$2(e).getDay()===4),t,2)}function formatWeekdayNumberSunday$2(e){return e.getDay()}function formatWeekNumberMonday$2(e,t){return pad$3(monday$2.count(timeYear$2(e)-1,e),t,2)}function formatYear$3(e,t){return pad$3(e.getFullYear()%100,t,2)}function formatYearISO$2(e,t){return e=dISO$2(e),pad$3(e.getFullYear()%100,t,2)}function formatFullYear$2(e,t){return pad$3(e.getFullYear()%1e4,t,4)}function formatFullYearISO$2(e,t){var r=e.getDay();return e=r>=4||r===0?thursday$2(e):thursday$2.ceil(e),pad$3(e.getFullYear()%1e4,t,4)}function formatZone$2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad$3(t/60|0,"0",2)+pad$3(t%60,"0",2)}function formatUTCDayOfMonth$2(e,t){return pad$3(e.getUTCDate(),t,2)}function formatUTCHour24$2(e,t){return pad$3(e.getUTCHours(),t,2)}function formatUTCHour12$2(e,t){return pad$3(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear$2(e,t){return pad$3(1+utcDay$5.count(utcYear$5(e),e),t,3)}function formatUTCMilliseconds$2(e,t){return pad$3(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds$2(e,t){return formatUTCMilliseconds$2(e,t)+"000"}function formatUTCMonthNumber$2(e,t){return pad$3(e.getUTCMonth()+1,t,2)}function formatUTCMinutes$2(e,t){return pad$3(e.getUTCMinutes(),t,2)}function formatUTCSeconds$2(e,t){return pad$3(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday$2(e){var t=e.getUTCDay();return t===0?7:t}function formatUTCWeekNumberSunday$2(e,t){return pad$3(utcSunday$2.count(utcYear$5(e)-1,e),t,2)}function UTCdISO$2(e){var t=e.getUTCDay();return t>=4||t===0?utcThursday$2(e):utcThursday$2.ceil(e)}function formatUTCWeekNumberISO$2(e,t){return e=UTCdISO$2(e),pad$3(utcThursday$2.count(utcYear$5(e),e)+(utcYear$5(e).getUTCDay()===4),t,2)}function formatUTCWeekdayNumberSunday$2(e){return e.getUTCDay()}function formatUTCWeekNumberMonday$2(e,t){return pad$3(utcMonday$2.count(utcYear$5(e)-1,e),t,2)}function formatUTCYear$2(e,t){return pad$3(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO$2(e,t){return e=UTCdISO$2(e),pad$3(e.getUTCFullYear()%100,t,2)}function formatUTCFullYear$2(e,t){return pad$3(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO$2(e,t){var r=e.getUTCDay();return e=r>=4||r===0?utcThursday$2(e):utcThursday$2.ceil(e),pad$3(e.getUTCFullYear()%1e4,t,4)}function formatUTCZone$2(){return"+0000"}function formatLiteralPercent$2(){return"%"}function formatUnixTimestamp$2(e){return+e}function formatUnixTimestampSeconds$2(e){return Math.floor(+e/1e3)}var locale$3,timeFormat$2;defaultLocale$3({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 defaultLocale$3(e){return locale$3=formatLocale$3(e),timeFormat$2=locale$3.format,locale$3.parse,locale$3.utcFormat,locale$3.utcParse,locale$3}function date$2(e){return new Date(e)}function number$4(e){return e instanceof Date?+e:+new Date(+e)}function calendar$1(e,t,r,n,o,l,u,h,f,d){var p=continuous$1(),m=p.invert,g=p.domain,b=d(".%L"),v=d(":%S"),T=d("%I:%M"),R=d("%I %p"),I=d("%a %d"),N=d("%b %d"),q=d("%B"),F=d("%Y");function H(V){return(f(V)epsilon$6)if(!(Math.abs(p*h-f*d)>epsilon$6)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var g=r-l,b=n-u,v=h*h+f*f,T=g*g+b*b,R=Math.sqrt(v),I=Math.sqrt(m),N=o*Math.tan((pi$6-Math.acos((v+m-T)/(2*R*I)))/2),q=N/I,F=N/R;Math.abs(q-1)>epsilon$6&&(this._+="L"+(e+q*d)+","+(t+q*p)),this._+="A"+o+","+o+",0,0,"+ +(p*g>d*b)+","+(this._x1=e+F*h)+","+(this._y1=t+F*f)}},arc:function(e,t,r,n,o,l){e=+e,t=+t,r=+r,l=!!l;var u=r*Math.cos(n),h=r*Math.sin(n),f=e+u,d=t+h,p=1^l,m=l?n-o:o-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+f+","+d:(Math.abs(this._x1-f)>epsilon$6||Math.abs(this._y1-d)>epsilon$6)&&(this._+="L"+f+","+d),r&&(m<0&&(m=m%tau$6+tau$6),m>tauEpsilon$1?this._+="A"+r+","+r+",0,1,"+p+","+(e-u)+","+(t-h)+"A"+r+","+r+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):m>epsilon$6&&(this._+="A"+r+","+r+",0,"+ +(m>=pi$6)+","+p+","+(this._x1=e+r*Math.cos(o))+","+(this._y1=t+r*Math.sin(o))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function constant$e(e){return function(){return e}}var abs$3=Math.abs,atan2$2=Math.atan2,cos$3=Math.cos,max$3=Math.max,min$2=Math.min,sin$3=Math.sin,sqrt$3=Math.sqrt,epsilon$5=1e-12,pi$5=Math.PI,halfPi$4=pi$5/2,tau$5=2*pi$5;function acos$2(e){return e>1?0:e<-1?pi$5:Math.acos(e)}function asin$2(e){return e>=1?halfPi$4:e<=-1?-halfPi$4:Math.asin(e)}function arcInnerRadius$1(e){return e.innerRadius}function arcOuterRadius$1(e){return e.outerRadius}function arcStartAngle$1(e){return e.startAngle}function arcEndAngle$1(e){return e.endAngle}function arcPadAngle$1(e){return e&&e.padAngle}function intersect$3(e,t,r,n,o,l,u,h){var f=r-e,d=n-t,p=u-o,m=h-l,g=m*f-p*d;if(!(g*gae*ae+Q*Q&&(G=W,P=S),{cx:G,cy:P,x01:-p,y01:-m,x11:G*(o/H-1),y11:P*(o/H-1)}}function arc$1(){var e=arcInnerRadius$1,t=arcOuterRadius$1,r=constant$e(0),n=null,o=arcStartAngle$1,l=arcEndAngle$1,u=arcPadAngle$1,h=null;function f(){var d,p,m=+e.apply(this,arguments),g=+t.apply(this,arguments),b=o.apply(this,arguments)-halfPi$4,v=l.apply(this,arguments)-halfPi$4,T=abs$3(v-b),R=v>b;if(h||(h=d=path$1()),gepsilon$5))h.moveTo(0,0);else if(T>tau$5-epsilon$5)h.moveTo(g*cos$3(b),g*sin$3(b)),h.arc(0,0,g,b,v,!R),m>epsilon$5&&(h.moveTo(m*cos$3(v),m*sin$3(v)),h.arc(0,0,m,v,b,R));else{var I=b,N=v,q=b,F=v,H=T,V=T,z=u.apply(this,arguments)/2,G=z>epsilon$5&&(n?+n.apply(this,arguments):sqrt$3(m*m+g*g)),P=min$2(abs$3(g-m)/2,+r.apply(this,arguments)),W=P,S=P,U,L;if(G>epsilon$5){var ae=asin$2(G/m*sin$3(z)),Q=asin$2(G/g*sin$3(z));(H-=ae*2)>epsilon$5?(ae*=R?1:-1,q+=ae,F-=ae):(H=0,q=F=(b+v)/2),(V-=Q*2)>epsilon$5?(Q*=R?1:-1,I+=Q,N-=Q):(V=0,I=N=(b+v)/2)}var ue=g*cos$3(I),_e=g*sin$3(I),ke=m*cos$3(F),de=m*sin$3(F);if(P>epsilon$5){var ce=g*cos$3(N),he=g*sin$3(N),Se=m*cos$3(q),ve=m*sin$3(q),me;if(Tepsilon$5?S>epsilon$5?(U=cornerTangents$1(Se,ve,ue,_e,g,S,R),L=cornerTangents$1(ce,he,ke,de,g,S,R),h.moveTo(U.cx+U.x01,U.cy+U.y01),Sepsilon$5)||!(H>epsilon$5)?h.lineTo(ke,de):W>epsilon$5?(U=cornerTangents$1(ke,de,ce,he,m,-W,R),L=cornerTangents$1(ue,_e,Se,ve,m,-W,R),h.lineTo(U.cx+U.x01,U.cy+U.y01),We?1:t>=e?0:NaN}function identity$a(e){return e}function pie$1(){var e=identity$a,t=descending$3,r=null,n=constant$e(0),o=constant$e(tau$5),l=constant$e(0);function u(h){var f,d=(h=array$4(h)).length,p,m,g=0,b=new Array(d),v=new Array(d),T=+n.apply(this,arguments),R=Math.min(tau$5,Math.max(-tau$5,o.apply(this,arguments)-T)),I,N=Math.min(Math.abs(R)/d,l.apply(this,arguments)),q=N*(R<0?-1:1),F;for(f=0;f0&&(g+=F);for(t!=null?b.sort(function(H,V){return t(v[H],v[V])}):r!=null&&b.sort(function(H,V){return r(h[H],h[V])}),f=0,m=g?(R-d*q)/g:0;f0?F*m:0)+q,v[p]={data:h[p],index:f,value:F,startAngle:T,endAngle:I,padAngle:N};return v}return u.value=function(h){return arguments.length?(e=typeof h=="function"?h:constant$e(+h),u):e},u.sortValues=function(h){return arguments.length?(t=h,r=null,u):t},u.sort=function(h){return arguments.length?(r=h,t=null,u):r},u.startAngle=function(h){return arguments.length?(n=typeof h=="function"?h:constant$e(+h),u):n},u.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:constant$e(+h),u):o},u.padAngle=function(h){return arguments.length?(l=typeof h=="function"?h:constant$e(+h),u):l},u}function noop$4(){}function point$8(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Basis$1(e){this._context=e}Basis$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$8(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$8(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasis(e){return new Basis$1(e)}function BasisClosed$1(e){this._context=e}BasisClosed$1.prototype={areaStart:noop$4,areaEnd:noop$4,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$8(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisClosed(e){return new BasisClosed$1(e)}function BasisOpen$1(e){this._context=e}BasisOpen$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:point$8(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisOpen(e){return new BasisOpen$1(e)}function LinearClosed$1(e){this._context=e}LinearClosed$1.prototype={areaStart:noop$4,areaEnd:noop$4,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function curveLinearClosed(e){return new LinearClosed$1(e)}function sign$2(e){return e<0?-1:1}function slope3$1(e,t,r){var n=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(n||o<0&&-0),u=(r-e._y1)/(o||n<0&&-0),h=(l*o+u*n)/(n+o);return(sign$2(l)+sign$2(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(h))||0}function slope2$1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function point$7(e,t,r){var n=e._x0,o=e._y0,l=e._x1,u=e._y1,h=(l-n)/3;e._context.bezierCurveTo(n+h,o+h*t,l-h,u-h*r,l,u)}function MonotoneX$1(e){this._context=e}MonotoneX$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$7(this,this._t0,slope2$1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$7(this,slope2$1(this,r=slope3$1(this,e,t)),r);break;default:point$7(this,this._t0,r=slope3$1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function MonotoneY$1(e){this._context=new ReflectContext$1(e)}(MonotoneY$1.prototype=Object.create(MonotoneX$1.prototype)).point=function(e,t){MonotoneX$1.prototype.point.call(this,t,e)};function ReflectContext$1(e){this._context=e}ReflectContext$1.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,l){this._context.bezierCurveTo(t,e,n,r,l,o)}};function monotoneX$1(e){return new MonotoneX$1(e)}function monotoneY$1(e){return new MonotoneY$1(e)}function Natural$1(e){this._context=e}Natural$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=controlPoints$1(e),o=controlPoints$1(t),l=0,u=1;u=0;--t)o[t]=(u[t]-o[t+1])/l[t];for(l[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function curveStep(e){return new Step$1(e,.5)}function stepBefore$1(e){return new Step$1(e,0)}function stepAfter$1(e){return new Step$1(e,1)}var t0$2=new Date,t1$2=new Date;function newInterval$1(e,t,r,n){function o(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return o.floor=function(l){return e(l=new Date(+l)),l},o.ceil=function(l){return e(l=new Date(l-1)),t(l,1),e(l),l},o.round=function(l){var u=o(l),h=o.ceil(l);return l-u0))return f;do f.push(d=new Date(+l)),t(l,h),e(l);while(d=u)for(;e(u),!l(u);)u.setTime(u-1)},function(u,h){if(u>=u)if(h<0)for(;++h<=0;)for(;t(u,-1),!l(u););else for(;--h>=0;)for(;t(u,1),!l(u););})},r&&(o.count=function(l,u){return t0$2.setTime(+l),t1$2.setTime(+u),e(t0$2),e(t1$2),Math.floor(r(t0$2,t1$2))},o.every=function(l){return l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(n?function(u){return n(u)%l===0}:function(u){return o.count(0,u)%l===0}):o}),o}const durationSecond$2=1e3,durationMinute$2=durationSecond$2*60,durationHour$2=durationMinute$2*60,durationDay$2=durationHour$2*24,durationWeek$2=durationDay$2*7;var day$1=newInterval$1(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute$2)/durationDay$2,e=>e.getDate()-1);const timeDay$1=day$1;day$1.range;function weekday$1(e){return newInterval$1(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute$2)/durationWeek$2})}var sunday$1=weekday$1(0),monday$1=weekday$1(1),tuesday$1=weekday$1(2),wednesday$1=weekday$1(3),thursday$1=weekday$1(4),friday$1=weekday$1(5),saturday$1=weekday$1(6);sunday$1.range;monday$1.range;tuesday$1.range;wednesday$1.range;thursday$1.range;friday$1.range;saturday$1.range;var year$1=newInterval$1(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()});year$1.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$1(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const timeYear$1=year$1;year$1.range;var utcDay$2=newInterval$1(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/durationDay$2},function(e){return e.getUTCDate()-1});const utcDay$3=utcDay$2;utcDay$2.range;function utcWeekday$1(e){return newInterval$1(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/durationWeek$2})}var utcSunday$1=utcWeekday$1(0),utcMonday$1=utcWeekday$1(1),utcTuesday$1=utcWeekday$1(2),utcWednesday$1=utcWeekday$1(3),utcThursday$1=utcWeekday$1(4),utcFriday$1=utcWeekday$1(5),utcSaturday$1=utcWeekday$1(6);utcSunday$1.range;utcMonday$1.range;utcTuesday$1.range;utcWednesday$1.range;utcThursday$1.range;utcFriday$1.range;utcSaturday$1.range;var utcYear$2=newInterval$1(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()});utcYear$2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$1(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const utcYear$3=utcYear$2;utcYear$2.range;function localDate$1(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 utcDate$1(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 newDate$1(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function formatLocale$2(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,l=e.days,u=e.shortDays,h=e.months,f=e.shortMonths,d=formatRe$1(o),p=formatLookup$1(o),m=formatRe$1(l),g=formatLookup$1(l),b=formatRe$1(u),v=formatLookup$1(u),T=formatRe$1(h),R=formatLookup$1(h),I=formatRe$1(f),N=formatLookup$1(f),q={a:_e,A:ke,b:de,B:ce,c:null,d:formatDayOfMonth$1,e:formatDayOfMonth$1,f:formatMicroseconds$1,g:formatYearISO$1,G:formatFullYearISO$1,H:formatHour24$1,I:formatHour12$1,j:formatDayOfYear$1,L:formatMilliseconds$1,m:formatMonthNumber$1,M:formatMinutes$1,p:he,q:Se,Q:formatUnixTimestamp$1,s:formatUnixTimestampSeconds$1,S:formatSeconds$1,u:formatWeekdayNumberMonday$1,U:formatWeekNumberSunday$1,V:formatWeekNumberISO$1,w:formatWeekdayNumberSunday$1,W:formatWeekNumberMonday$1,x:null,X:null,y:formatYear$2,Y:formatFullYear$1,Z:formatZone$1,"%":formatLiteralPercent$1},F={a:ve,A:me,b:Ce,B:xe,c:null,d:formatUTCDayOfMonth$1,e:formatUTCDayOfMonth$1,f:formatUTCMicroseconds$1,g:formatUTCYearISO$1,G:formatUTCFullYearISO$1,H:formatUTCHour24$1,I:formatUTCHour12$1,j:formatUTCDayOfYear$1,L:formatUTCMilliseconds$1,m:formatUTCMonthNumber$1,M:formatUTCMinutes$1,p:Ne,q:pe,Q:formatUnixTimestamp$1,s:formatUnixTimestampSeconds$1,S:formatUTCSeconds$1,u:formatUTCWeekdayNumberMonday$1,U:formatUTCWeekNumberSunday$1,V:formatUTCWeekNumberISO$1,w:formatUTCWeekdayNumberSunday$1,W:formatUTCWeekNumberMonday$1,x:null,X:null,y:formatUTCYear$1,Y:formatUTCFullYear$1,Z:formatUTCZone$1,"%":formatLiteralPercent$1},H={a:W,A:S,b:U,B:L,c:ae,d:parseDayOfMonth$1,e:parseDayOfMonth$1,f:parseMicroseconds$1,g:parseYear$1,G:parseFullYear$1,H:parseHour24$1,I:parseHour24$1,j:parseDayOfYear$1,L:parseMilliseconds$1,m:parseMonthNumber$1,M:parseMinutes$1,p:P,q:parseQuarter$1,Q:parseUnixTimestamp$1,s:parseUnixTimestampSeconds$1,S:parseSeconds$1,u:parseWeekdayNumberMonday$1,U:parseWeekNumberSunday$1,V:parseWeekNumberISO$1,w:parseWeekdayNumberSunday$1,W:parseWeekNumberMonday$1,x:Q,X:ue,y:parseYear$1,Y:parseFullYear$1,Z:parseZone$1,"%":parseLiteralPercent$1};q.x=V(r,q),q.X=V(n,q),q.c=V(t,q),F.x=V(r,F),F.X=V(n,F),F.c=V(t,F);function V(J,oe){return function(ee){var Z=[],ie=-1,se=0,te=J.length,fe,we,Ye;for(ee instanceof Date||(ee=new Date(+ee));++ie53)return null;"w"in Z||(Z.w=1),"Z"in Z?(se=utcDate$1(newDate$1(Z.y,0,1)),te=se.getUTCDay(),se=te>4||te===0?utcMonday$1.ceil(se):utcMonday$1(se),se=utcDay$3.offset(se,(Z.V-1)*7),Z.y=se.getUTCFullYear(),Z.m=se.getUTCMonth(),Z.d=se.getUTCDate()+(Z.w+6)%7):(se=localDate$1(newDate$1(Z.y,0,1)),te=se.getDay(),se=te>4||te===0?monday$1.ceil(se):monday$1(se),se=timeDay$1.offset(se,(Z.V-1)*7),Z.y=se.getFullYear(),Z.m=se.getMonth(),Z.d=se.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),te="Z"in Z?utcDate$1(newDate$1(Z.y,0,1)).getUTCDay():localDate$1(newDate$1(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(te+5)%7:Z.w+Z.U*7-(te+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,utcDate$1(Z)):localDate$1(Z)}}function G(J,oe,ee,Z){for(var ie=0,se=oe.length,te=ee.length,fe,we;ie=te)return-1;if(fe=oe.charCodeAt(ie++),fe===37){if(fe=oe.charAt(ie++),we=H[fe in pads$1?oe.charAt(ie++):fe],!we||(Z=we(J,ee,Z))<0)return-1}else if(fe!=ee.charCodeAt(Z++))return-1}return Z}function P(J,oe,ee){var Z=d.exec(oe.slice(ee));return Z?(J.p=p.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function W(J,oe,ee){var Z=b.exec(oe.slice(ee));return Z?(J.w=v.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function S(J,oe,ee){var Z=m.exec(oe.slice(ee));return Z?(J.w=g.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function U(J,oe,ee){var Z=I.exec(oe.slice(ee));return Z?(J.m=N.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function L(J,oe,ee){var Z=T.exec(oe.slice(ee));return Z?(J.m=R.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function ae(J,oe,ee){return G(J,t,oe,ee)}function Q(J,oe,ee){return G(J,r,oe,ee)}function ue(J,oe,ee){return G(J,n,oe,ee)}function _e(J){return u[J.getDay()]}function ke(J){return l[J.getDay()]}function de(J){return f[J.getMonth()]}function ce(J){return h[J.getMonth()]}function he(J){return o[+(J.getHours()>=12)]}function Se(J){return 1+~~(J.getMonth()/3)}function ve(J){return u[J.getUTCDay()]}function me(J){return l[J.getUTCDay()]}function Ce(J){return f[J.getUTCMonth()]}function xe(J){return h[J.getUTCMonth()]}function Ne(J){return o[+(J.getUTCHours()>=12)]}function pe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var oe=V(J+="",q);return oe.toString=function(){return J},oe},parse:function(J){var oe=z(J+="",!1);return oe.toString=function(){return J},oe},utcFormat:function(J){var oe=V(J+="",F);return oe.toString=function(){return J},oe},utcParse:function(J){var oe=z(J+="",!0);return oe.toString=function(){return J},oe}}}var pads$1={"-":"",_:" ",0:"0"},numberRe$1=/^\s*\d+/,percentRe$1=/^%/,requoteRe$1=/[\\^$*+?|[\]().{}]/g;function pad$2(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",l=o.length;return n+(l[t.toLowerCase(),r]))}function parseWeekdayNumberSunday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone$1(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function parseMonthNumber$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent$1(e,t,r){var n=percentRe$1.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp$1(e,t,r){var n=numberRe$1.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth$1(e,t){return pad$2(e.getDate(),t,2)}function formatHour24$1(e,t){return pad$2(e.getHours(),t,2)}function formatHour12$1(e,t){return pad$2(e.getHours()%12||12,t,2)}function formatDayOfYear$1(e,t){return pad$2(1+timeDay$1.count(timeYear$1(e),e),t,3)}function formatMilliseconds$1(e,t){return pad$2(e.getMilliseconds(),t,3)}function formatMicroseconds$1(e,t){return formatMilliseconds$1(e,t)+"000"}function formatMonthNumber$1(e,t){return pad$2(e.getMonth()+1,t,2)}function formatMinutes$1(e,t){return pad$2(e.getMinutes(),t,2)}function formatSeconds$1(e,t){return pad$2(e.getSeconds(),t,2)}function formatWeekdayNumberMonday$1(e){var t=e.getDay();return t===0?7:t}function formatWeekNumberSunday$1(e,t){return pad$2(sunday$1.count(timeYear$1(e)-1,e),t,2)}function dISO$1(e){var t=e.getDay();return t>=4||t===0?thursday$1(e):thursday$1.ceil(e)}function formatWeekNumberISO$1(e,t){return e=dISO$1(e),pad$2(thursday$1.count(timeYear$1(e),e)+(timeYear$1(e).getDay()===4),t,2)}function formatWeekdayNumberSunday$1(e){return e.getDay()}function formatWeekNumberMonday$1(e,t){return pad$2(monday$1.count(timeYear$1(e)-1,e),t,2)}function formatYear$2(e,t){return pad$2(e.getFullYear()%100,t,2)}function formatYearISO$1(e,t){return e=dISO$1(e),pad$2(e.getFullYear()%100,t,2)}function formatFullYear$1(e,t){return pad$2(e.getFullYear()%1e4,t,4)}function formatFullYearISO$1(e,t){var r=e.getDay();return e=r>=4||r===0?thursday$1(e):thursday$1.ceil(e),pad$2(e.getFullYear()%1e4,t,4)}function formatZone$1(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad$2(t/60|0,"0",2)+pad$2(t%60,"0",2)}function formatUTCDayOfMonth$1(e,t){return pad$2(e.getUTCDate(),t,2)}function formatUTCHour24$1(e,t){return pad$2(e.getUTCHours(),t,2)}function formatUTCHour12$1(e,t){return pad$2(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear$1(e,t){return pad$2(1+utcDay$3.count(utcYear$3(e),e),t,3)}function formatUTCMilliseconds$1(e,t){return pad$2(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds$1(e,t){return formatUTCMilliseconds$1(e,t)+"000"}function formatUTCMonthNumber$1(e,t){return pad$2(e.getUTCMonth()+1,t,2)}function formatUTCMinutes$1(e,t){return pad$2(e.getUTCMinutes(),t,2)}function formatUTCSeconds$1(e,t){return pad$2(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday$1(e){var t=e.getUTCDay();return t===0?7:t}function formatUTCWeekNumberSunday$1(e,t){return pad$2(utcSunday$1.count(utcYear$3(e)-1,e),t,2)}function UTCdISO$1(e){var t=e.getUTCDay();return t>=4||t===0?utcThursday$1(e):utcThursday$1.ceil(e)}function formatUTCWeekNumberISO$1(e,t){return e=UTCdISO$1(e),pad$2(utcThursday$1.count(utcYear$3(e),e)+(utcYear$3(e).getUTCDay()===4),t,2)}function formatUTCWeekdayNumberSunday$1(e){return e.getUTCDay()}function formatUTCWeekNumberMonday$1(e,t){return pad$2(utcMonday$1.count(utcYear$3(e)-1,e),t,2)}function formatUTCYear$1(e,t){return pad$2(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO$1(e,t){return e=UTCdISO$1(e),pad$2(e.getUTCFullYear()%100,t,2)}function formatUTCFullYear$1(e,t){return pad$2(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO$1(e,t){var r=e.getUTCDay();return e=r>=4||r===0?utcThursday$1(e):utcThursday$1.ceil(e),pad$2(e.getUTCFullYear()%1e4,t,4)}function formatUTCZone$1(){return"+0000"}function formatLiteralPercent$1(){return"%"}function formatUnixTimestamp$1(e){return+e}function formatUnixTimestampSeconds$1(e){return Math.floor(+e/1e3)}var locale$2,timeFormat$1;defaultLocale$2({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 defaultLocale$2(e){return locale$2=formatLocale$2(e),timeFormat$1=locale$2.format,locale$2.parse,locale$2.utcFormat,locale$2.utcParse,locale$2}var frame$1=0,timeout$3=0,interval$2=0,pokeDelay$1=1e3,taskHead$1,taskTail$1,clockLast$1=0,clockNow$1=0,clockSkew$1=0,clock$1=typeof performance=="object"&&performance.now?performance:Date,setFrame$1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function now$1(){return clockNow$1||(setFrame$1(clearNow$1),clockNow$1=clock$1.now()+clockSkew$1)}function clearNow$1(){clockNow$1=0}function Timer$1(){this._call=this._time=this._next=null}Timer$1.prototype=timer$1.prototype={constructor:Timer$1,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?now$1():+r)+(t==null?0:+t),!this._next&&taskTail$1!==this&&(taskTail$1?taskTail$1._next=this:taskHead$1=this,taskTail$1=this),this._call=e,this._time=r,sleep$1()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep$1())}};function timer$1(e,t,r){var n=new Timer$1;return n.restart(e,t,r),n}function timerFlush$1(){now$1(),++frame$1;for(var e=taskHead$1,t;e;)(t=clockNow$1-e._time)>=0&&e._call.call(void 0,t),e=e._next;--frame$1}function wake$1(){clockNow$1=(clockLast$1=clock$1.now())+clockSkew$1,frame$1=timeout$3=0;try{timerFlush$1()}finally{frame$1=0,nap$1(),clockNow$1=0}}function poke$1(){var e=clock$1.now(),t=e-clockLast$1;t>pokeDelay$1&&(clockSkew$1-=t,clockLast$1=e)}function nap$1(){for(var e,t=taskHead$1,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:taskHead$1=r);taskTail$1=e,sleep$1(n)}function sleep$1(e){if(!frame$1){timeout$3&&(timeout$3=clearTimeout(timeout$3));var t=e-clockNow$1;t>24?(e<1/0&&(timeout$3=setTimeout(wake$1,e-clock$1.now()-clockSkew$1)),interval$2&&(interval$2=clearInterval(interval$2))):(interval$2||(clockLast$1=clock$1.now(),interval$2=setInterval(poke$1,pokeDelay$1)),frame$1=1,setFrame$1(wake$1))}}function timeout$2(e,t,r){var n=new Timer$1;return t=t==null?0:+t,n.restart(o=>{n.stop(),e(o+t)},t,r),n}var emptyOn$1=dispatch$1("start","end","cancel","interrupt"),emptyTween$1=[],CREATED$1=0,SCHEDULED$1=1,STARTING$1=2,STARTED$1=3,RUNNING$1=4,ENDING$1=5,ENDED$1=6;function schedule$1(e,t,r,n,o,l){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;create$3(e,r,{name:t,index:n,group:o,on:emptyOn$1,tween:emptyTween$1,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:CREATED$1})}function init$3(e,t){var r=get$2(e,t);if(r.state>CREATED$1)throw new Error("too late; already scheduled");return r}function set$3(e,t){var r=get$2(e,t);if(r.state>STARTED$1)throw new Error("too late; already running");return r}function get$2(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function create$3(e,t,r){var n=e.__transition,o;n[t]=r,r.timer=timer$1(l,0,r.time);function l(d){r.state=SCHEDULED$1,r.timer.restart(u,r.delay,r.time),r.delay<=d&&u(d-r.delay)}function u(d){var p,m,g,b;if(r.state!==SCHEDULED$1)return f();for(p in n)if(b=n[p],b.name===r.name){if(b.state===STARTED$1)return timeout$2(u);b.state===RUNNING$1?(b.state=ENDED$1,b.timer.stop(),b.on.call("interrupt",e,e.__data__,b.index,b.group),delete n[p]):+pSTARTING$1&&n.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function onFunction$1(e,t,r){var n,o,l=start$2(t)?init$3:set$3;return function(){var u=l(this,e),h=u.on;h!==n&&(o=(n=h).copy()).on(t,r),u.on=o}}function transition_on$1(e,t){var r=this._id;return arguments.length<2?get$2(this.node(),r).on.on(e):this.each(onFunction$1(r,e,t))}function removeFunction$1(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function transition_remove$1(){return this.on("end.remove",removeFunction$1(this._id))}function transition_select$1(e){var t=this._name,r=this._id;typeof e!="function"&&(e=selector$1(e));for(var n=this._groups,o=n.length,l=new Array(o),u=0;u"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 _construct(e,t,r){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(o,l,u){var h=[null];h.push.apply(h,l);var f=Function.bind.apply(o,h),d=new f;return u&&_setPrototypeOf(d,u.prototype),d},_construct.apply(null,arguments)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(!!e){if(typeof e=="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),o=1;o/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function e(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function e(t,r){if(_typeof(t)!=="object"||typeof t.createPolicy!="function")return null;var n=null,o="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(o)&&(n=r.currentScript.getAttribute(o));var l="dompurify"+(n?"#"+n:"");try{return t.createPolicy(l,{createHTML:function(h){return h},createScriptURL:function(h){return h}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}};function createDOMPurify(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),t=function(ye){return createDOMPurify(ye)};if(t.version="2.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var r=e.document,n=e.document,o=e.DocumentFragment,l=e.HTMLTemplateElement,u=e.Node,h=e.Element,f=e.NodeFilter,d=e.NamedNodeMap,p=d===void 0?e.NamedNodeMap||e.MozNamedAttrMap:d,m=e.HTMLFormElement,g=e.DOMParser,b=e.trustedTypes,v=h.prototype,T=lookupGetter(v,"cloneNode"),R=lookupGetter(v,"nextSibling"),I=lookupGetter(v,"childNodes"),N=lookupGetter(v,"parentNode");if(typeof l=="function"){var q=n.createElement("template");q.content&&q.content.ownerDocument&&(n=q.content.ownerDocument)}var F=_createTrustedTypesPolicy(b,r),H=F?F.createHTML(""):"",V=n,z=V.implementation,G=V.createNodeIterator,P=V.createDocumentFragment,W=V.getElementsByTagName,S=r.importNode,U={};try{U=clone$1(n).documentMode?n.documentMode:{}}catch{}var L={};t.isSupported=typeof N=="function"&&z&&typeof z.createHTMLDocument<"u"&&U!==9;var ae=MUSTACHE_EXPR,Q=ERB_EXPR,ue=DATA_ATTR,_e=ARIA_ATTR,ke=IS_SCRIPT_OR_DATA,de=ATTR_WHITESPACE,ce=IS_ALLOWED_URI,he=null,Se=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text$1))),ve=null,me=addToSet({},[].concat(_toConsumableArray(html$2),_toConsumableArray(svg$2),_toConsumableArray(mathMl),_toConsumableArray(xml$1))),Ce=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}})),xe=null,Ne=null,pe=!0,J=!0,oe=!1,ee=!1,Z=!1,ie=!1,se=!1,te=!1,fe=!1,we=!1,Ye=!0,He=!1,je="user-content-",Pe=!0,Ee=!1,Ie={},Le=null,Be=addToSet({},["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"]),Te=null,dt=addToSet({},["audio","video","img","source","image","track"]),Ge=null,rt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml",nt=wt,Ke=!1,Je,Oe=["application/xhtml+xml","text/html"],Me="text/html",Fe,qe=null,et=n.createElement("form"),Ae=function(ye){return ye instanceof RegExp||ye instanceof Function},_t=function(ye){qe&&qe===ye||((!ye||_typeof(ye)!=="object")&&(ye={}),ye=clone$1(ye),Je=Oe.indexOf(ye.PARSER_MEDIA_TYPE)===-1?Je=Me:Je=ye.PARSER_MEDIA_TYPE,Fe=Je==="application/xhtml+xml"?function(Ue){return Ue}:stringToLowerCase,he="ALLOWED_TAGS"in ye?addToSet({},ye.ALLOWED_TAGS,Fe):Se,ve="ALLOWED_ATTR"in ye?addToSet({},ye.ALLOWED_ATTR,Fe):me,Ge="ADD_URI_SAFE_ATTR"in ye?addToSet(clone$1(rt),ye.ADD_URI_SAFE_ATTR,Fe):rt,Te="ADD_DATA_URI_TAGS"in ye?addToSet(clone$1(dt),ye.ADD_DATA_URI_TAGS,Fe):dt,Le="FORBID_CONTENTS"in ye?addToSet({},ye.FORBID_CONTENTS,Fe):Be,xe="FORBID_TAGS"in ye?addToSet({},ye.FORBID_TAGS,Fe):{},Ne="FORBID_ATTR"in ye?addToSet({},ye.FORBID_ATTR,Fe):{},Ie="USE_PROFILES"in ye?ye.USE_PROFILES:!1,pe=ye.ALLOW_ARIA_ATTR!==!1,J=ye.ALLOW_DATA_ATTR!==!1,oe=ye.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=ye.SAFE_FOR_TEMPLATES||!1,Z=ye.WHOLE_DOCUMENT||!1,te=ye.RETURN_DOM||!1,fe=ye.RETURN_DOM_FRAGMENT||!1,we=ye.RETURN_TRUSTED_TYPE||!1,se=ye.FORCE_BODY||!1,Ye=ye.SANITIZE_DOM!==!1,He=ye.SANITIZE_NAMED_PROPS||!1,Pe=ye.KEEP_CONTENT!==!1,Ee=ye.IN_PLACE||!1,ce=ye.ALLOWED_URI_REGEXP||ce,nt=ye.NAMESPACE||wt,ye.CUSTOM_ELEMENT_HANDLING&&Ae(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&Ae(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ee&&(J=!1),fe&&(te=!0),Ie&&(he=addToSet({},_toConsumableArray(text$1)),ve=[],Ie.html===!0&&(addToSet(he,html$1),addToSet(ve,html$2)),Ie.svg===!0&&(addToSet(he,svg$1),addToSet(ve,svg$2),addToSet(ve,xml$1)),Ie.svgFilters===!0&&(addToSet(he,svgFilters),addToSet(ve,svg$2),addToSet(ve,xml$1)),Ie.mathMl===!0&&(addToSet(he,mathMl$1),addToSet(ve,mathMl),addToSet(ve,xml$1))),ye.ADD_TAGS&&(he===Se&&(he=clone$1(he)),addToSet(he,ye.ADD_TAGS,Fe)),ye.ADD_ATTR&&(ve===me&&(ve=clone$1(ve)),addToSet(ve,ye.ADD_ATTR,Fe)),ye.ADD_URI_SAFE_ATTR&&addToSet(Ge,ye.ADD_URI_SAFE_ATTR,Fe),ye.FORBID_CONTENTS&&(Le===Be&&(Le=clone$1(Le)),addToSet(Le,ye.FORBID_CONTENTS,Fe)),Pe&&(he["#text"]=!0),Z&&addToSet(he,["html","head","body"]),he.table&&(addToSet(he,["tbody"]),delete xe.tbody),freeze&&freeze(ye),qe=ye)},Re=addToSet({},["mi","mo","mn","ms","mtext"]),lt=addToSet({},["foreignobject","desc","title","annotation-xml"]),xt=addToSet({},["title","style","font","a","script"]),bt=addToSet({},svg$1);addToSet(bt,svgFilters),addToSet(bt,svgDisallowed);var $t=addToSet({},mathMl$1);addToSet($t,mathMlDisallowed);var kt=function(ye){var Ue=N(ye);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:wt,tagName:"template"});var Ve=stringToLowerCase(ye.tagName),ot=stringToLowerCase(Ue.tagName);return ye.namespaceURI===st?Ue.namespaceURI===wt?Ve==="svg":Ue.namespaceURI===it?Ve==="svg"&&(ot==="annotation-xml"||Re[ot]):Boolean(bt[Ve]):ye.namespaceURI===it?Ue.namespaceURI===wt?Ve==="math":Ue.namespaceURI===st?Ve==="math"&<[ot]:Boolean($t[Ve]):ye.namespaceURI===wt?Ue.namespaceURI===st&&!lt[ot]||Ue.namespaceURI===it&&!Re[ot]?!1:!$t[Ve]&&(xt[Ve]||!bt[Ve]):!1},tt=function(ye){arrayPush(t.removed,{element:ye});try{ye.parentNode.removeChild(ye)}catch{try{ye.outerHTML=H}catch{ye.remove()}}},ht=function(ye,Ue){try{arrayPush(t.removed,{attribute:Ue.getAttributeNode(ye),from:Ue})}catch{arrayPush(t.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(ye),ye==="is"&&!ve[ye])if(te||fe)try{tt(Ue)}catch{}else try{Ue.setAttribute(ye,"")}catch{}},vt=function(ye){var Ue,Ve;if(se)ye=""+ye;else{var ot=stringMatch(ye,/^[\r\n\t ]+/);Ve=ot&&ot[0]}Je==="application/xhtml+xml"&&(ye=''+ye+"");var Mt=F?F.createHTML(ye):ye;if(nt===wt)try{Ue=new g().parseFromString(Mt,Je)}catch{}if(!Ue||!Ue.documentElement){Ue=z.createDocument(nt,"template",null);try{Ue.documentElement.innerHTML=Ke?"":Mt}catch{}}var At=Ue.body||Ue.documentElement;return ye&&Ve&&At.insertBefore(n.createTextNode(Ve),At.childNodes[0]||null),nt===wt?W.call(Ue,Z?"html":"body")[0]:Z?Ue.documentElement:At},gt=function(ye){return G.call(ye.ownerDocument||ye,ye,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},tr=function(ye){return ye instanceof m&&(typeof ye.nodeName!="string"||typeof ye.textContent!="string"||typeof ye.removeChild!="function"||!(ye.attributes instanceof p)||typeof ye.removeAttribute!="function"||typeof ye.setAttribute!="function"||typeof ye.namespaceURI!="string"||typeof ye.insertBefore!="function")},Ht=function(ye){return _typeof(u)==="object"?ye instanceof u:ye&&_typeof(ye)==="object"&&typeof ye.nodeType=="number"&&typeof ye.nodeName=="string"},St=function(ye,Ue,Ve){!L[ye]||arrayForEach(L[ye],function(ot){ot.call(t,Ue,Ve,qe)})},ft=function(ye){var Ue;if(St("beforeSanitizeElements",ye,null),tr(ye)||regExpTest(/[\u0080-\uFFFF]/,ye.nodeName))return tt(ye),!0;var Ve=Fe(ye.nodeName);if(St("uponSanitizeElement",ye,{tagName:Ve,allowedTags:he}),ye.hasChildNodes()&&!Ht(ye.firstElementChild)&&(!Ht(ye.content)||!Ht(ye.content.firstElementChild))&®ExpTest(/<[/\w]/g,ye.innerHTML)&®ExpTest(/<[/\w]/g,ye.textContent)||Ve==="select"&®ExpTest(/