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(t,e)=>{loadingStateStore.set({loading:!0,message:t});const r=await e;return loadingStateStore.set({loading:!1}),r};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var bundle={};(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 t(){}return t.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},t.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),t.originRequire=Module.prototype.require,Module.prototype.require=function(){var e=t.originRequire.apply(this,arguments),r=e.name;return t.requiredClasses[r]||(t.requiredClasses[r]=e),e})},t.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=t.originRequire,this.isRequireIntercepted=!1},t.isInterceptingRequire=function(){return this.isRequireIntercepted},t.getRequiredClasses=function(){return this.requiredClasses},t.clearRequiredClasses=function(){this.requiredClasses={}},t.registerClass=function(e){this.registeredClasses.push(e)},t.registerClasses=function(e){this.registeredClasses=this.registeredClasses.concat(e)},t.clearRegisteredClasses=function(){this.registeredClasses=[]},t.serialize=function(e,r){return r===void 0&&(r={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(e,r))},t.deserialize=function(e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),deserializer_1.deserializeFromParsedObj(JSON.parse(e),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(r),n)},t.originRequire=null,t.isRequireIntercepted=!1,t.requiredClasses={},t.registeredClasses=[],t}();module.exports=ESSerializer},917:function(t,e){var r=this&&this.__spreadArrays||function(){for(var ft=0,Lt=0,wt=arguments.length;Lt0&&($=$.concat(Array.from(Array(D),function(){return{}}))),o.test(H.toString()))try{R=new(H.bind.apply(H,n([void 0],$)))}catch{T(H.name),R={},Object.setPrototypeOf(R,H?H.prototype:Object.prototype)}else{R=Object.create(H.prototype.constructor.prototype);try{H.prototype.constructor.call(R,$)}catch{T(H.name)}}return R}(I[P],q);return function(H,$,R,D){for(var k in $){var B=$[k];if(!D.ignoreProperties||!D.ignoreProperties.includes(k))if(D.rawProperties&&D.rawProperties.includes(k))H[k]=JSON.stringify(B);else{var v=Object.getOwnPropertyDescriptor(H,k);J=B,E=v,k===s.CLASS_NAME_FIELD||E&&(typeof E.set=="function"||E.writable===!1&&typeof J!="object")||(v&&v.writable===!1&&typeof B=="object"?C(H[k],B,R):H[k]=l(B,R))}}var J,E;return H}(U,L,I,O)}function u(L,I){return L.map(function(O){return l(O,I)})}function h(L,I){return new I(L)}function d(L,I){return new I(L.map(function(O){return g(O[s.TO_STRING_FIELD])}))}function g(L){return BigInt(L)}function p(L,I){var O=L[s.OPTIONS_FIELD],P=O.locale;return delete O.locale,new I(P,O)}function m(L,I){var O;return delete(O=L.message?new I(L.message):new I).stack,L.name&&(O.name=L.name),L.stack&&(O.stack=L.stack),I===AggregateError&&(O.errors=l(L.errors,{})),O}function T(L){console.warn("Incorrect parameter type passed to constructor: "+L)}function C(L,I,O){for(var P in I){var z=Object.getOwnPropertyDescriptor(L,P);z&&z.writable!==!0&&typeof z.set!="function"||(L[P]=l(I[P],O))}}function A(L){L===void 0&&(L=[]);var I={};return L.forEach(function(O){if(a.isClass(O)){var P=O.name,z=I[P];z&&z!==O&&console.warn("WARNING: Found class definition with the same name: "+P),I[P]=O}}),I}e.deserializeFromParsedObj=function(L,I,O){return l(L,A(I),O)},e.deserializeFromParsedObjWithClassMapping=l,e.getClassMappingFromClassArray=A,e.getParentClassName=function(L){return L.prototype.__proto__.constructor.name}},821:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isClass=e.notObject=e.getValueFromToStringResult=void 0,e.notObject=function(r){return r===null||typeof r!="object"},e.getValueFromToStringResult=function(r){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},e.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:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSerializeValueWithClassName=void 0;var n=r(917),a=r(821);function s(l,u){u===void 0&&(u={});var h=function(m){var T,C,A;return m===void 0?((T={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_UNDEFINED,T):typeof m!="number"||isFinite(m)?typeof m=="bigint"?((A={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_BIG_INT,A[n.TO_STRING_FIELD]=m.toString(),A):a.notObject(m)?m:n.ESSERIALIZER_NULL:((C={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_NOT_FINITE,C[n.TO_STRING_FIELD]=m.toString(),C)}(l);if(h!==n.ESSERIALIZER_NULL)return h;if(Array.isArray(l))return o(l);var d={};if(!function(m){var T=m.__proto__.constructor.name;return n.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(T)}(l)){if(u.ignoreProperties&&u.ignoreProperties.forEach(function(m){delete l[m]}),u.interceptProperties)for(var g in u.interceptProperties)l[g]=u.interceptProperties[g].call(l,l[g]);for(var p in l)d[p]=s(l[p])}return function(m,T){var C=m.__proto__.constructor.name;return C!=="Object"&&(T[n.CLASS_NAME_FIELD]=C,C===n.BUILTIN_CLASS_ARRAYBUFFER||C===n.BUILTIN_CLASS_SHAREDARRAYBUFFER?T[n.ARRAY_FIELD]=o(Array.from(new Uint8Array(m))):C===n.BUILTIN_CLASS_BOOLEAN?T[n.BOOLEAN_FIELD]=m.valueOf():C===n.BUILTIN_CLASS_DATAVIEW?T[n.ARRAY_FIELD]=o(Array.from(new Uint8Array(m.buffer))):C===n.BUILTIN_CLASS_DATE?T[n.TIMESTAMP_FIELD]=m.getTime():C===n.BUILTIN_CLASS_INTL_LOCALE||C===n.BUILTIN_CLASS_REGEXP?T[n.TO_STRING_FIELD]=m.toString():C===n.BUILTIN_CLASS_SET?T[n.ARRAY_FIELD]=o(Array.from(m)):C===n.BUILTIN_CLASS_STRING?T[n.TO_STRING_FIELD]=m.toString():n.ALL_BUILTIN_ARRAYS.includes(C)?T[n.ARRAY_FIELD]=o(Array.from(m)):n.ALL_BUILTIN_ERRORS.includes(C)?function(A,L,I){A.name!=="Error"&&(L.name=A.name),A.message&&(L.message=A.message),A.stack&&(L.stack=A.stack),I===n.BUILTIN_CLASS_AGGREGATE_ERROR&&(L.errors=s(A.errors))}(m,T,C):n.ALL_BUILTIN_INTLS.includes(C)&&(T[n.OPTIONS_FIELD]=m.resolvedOptions())),T}(l,d)}function o(l){return l.map(function(u){return s(u)})}e.getSerializeValueWithClassName=s}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(e!==void 0)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].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);const ESSerializer=getDefaultExportFromCjs(bundle),alreadyWarnFor=[],warnStorageNotFound=t=>{const e=typeof process<"u"&&!0;if(!alreadyWarnFor.includes(t)&&!e){let r=`Unable to find the ${t}. 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(t)}},serialize$1=t=>ESSerializer.serialize(t),deserialize=t=>{if(t!=="undefined"){if(t!=null){try{return ESSerializer.deserialize(t)}catch{}try{return JSON.parse(t)}catch{}}return t}};function persist(t,e,r){const n=e.getValue(r);return n!==null&&t.set(n),"addListener"in e&&e.addListener(r,a=>{t.set(a)}),t.subscribe(a=>{e.setValue(r,a)}),{...t,delete(){e.deleteValue(r)}}}function getBrowserStorage(t,e=!1){const r=[],n=o=>{const l=o.key;o.storageArea===t&&r.filter(({key:u})=>u===l).forEach(({listener:u})=>{u(deserialize(o.newValue))})},a=()=>{e&&typeof window<"u"&&window.addEventListener&&window.addEventListener("storage",n)},s=()=>{e&&typeof window<"u"&&window.removeEventListener&&window.removeEventListener("storage",n)};return{addListener(o,l){r.push({key:o,listener:l}),r.length===1&&a()},removeListener(o,l){const u=r.indexOf({key:o,listener:l});u!==-1&&r.splice(u,1),r.length===0&&s()},getValue(o){const l=t.getItem(o);return deserialize(l)},deleteValue(o){t.removeItem(o)},setValue(o,l){t.setItem(o,serialize$1(l))}}}function localStorage(t=!1){return typeof window<"u"&&window.localStorage?getBrowserStorage(window.localStorage,t):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:t},{default:e}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-80770405.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-63537700.js").then(r=>r.p),[],import.meta.url)]);analytics=t({app:"mermaid-live-editor",plugins:[e({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(t){console.log(t),console.info("Analytics blocked ;)")}},detectType$1=t=>{const e=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],r=t.replace(/^\s*%%.*\n/g,` `).trimStart().split(" ")[0].toLowerCase();return e.find(a=>r.includes(a.toLowerCase()))},countLines=t=>{var e,r;return((r=(e=t.match(/\n/g))==null?void 0:e.length)!=null?r:0)+1},saveStatistics=t=>{const e=detectType$1(t);if(!e)return;const r=countLines(t);logEvent("render",{graphType:e,length:r})},minutesToMilliSeconds=t=>t*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=(t,e)=>{if(!analytics)return;const r=e?JSON.stringify({name:t,data:e}):t;timeouts.has(r)?clearTimeout(timeouts.get(r)):analytics.track(t,e),timeouts.set(r,window.setTimeout(()=>timeouts.delete(r),delaysPerEvent[t]))};/*! 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(t){let e=t.length;for(;--e>=0;)t[e]=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(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(t,e,r,n,a){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=t&&t.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const d_code=t=>t<256?_dist_code[t]:_dist_code[256+(t>>>7)],put_short=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},send_bits=(t,e,r)=>{t.bi_valid>Buf_size-r?(t.bi_buf|=e<>Buf_size-t.bi_valid,t.bi_valid+=r-Buf_size):(t.bi_buf|=e<{send_bits(t,r[e*2],r[e*2+1])},bi_reverse=(t,e)=>{let r=0;do r|=t&1,t>>>=1,r<<=1;while(--e>0);return r>>>1},bi_flush=t=>{t.bi_valid===16?(put_short(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},gen_bitlen=(t,e)=>{const r=e.dyn_tree,n=e.max_code,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,u=e.stat_desc.max_length;let h,d,g,p,m,T,C=0;for(p=0;p<=MAX_BITS$1;p++)t.bl_count[p]=0;for(r[t.heap[t.heap_max]*2+1]=0,h=t.heap_max+1;hu&&(p=u,C++),r[d*2+1]=p,!(d>n)&&(t.bl_count[p]++,m=0,d>=l&&(m=o[d-l]),T=r[d*2],t.opt_len+=T*(p+m),s&&(t.static_len+=T*(a[d*2+1]+m)));if(C!==0){do{for(p=u-1;t.bl_count[p]===0;)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,C-=2}while(C>0);for(p=u;p!==0;p--)for(d=t.bl_count[p];d!==0;)g=t.heap[--h],!(g>n)&&(r[g*2+1]!==p&&(t.opt_len+=(p-r[g*2+1])*r[g*2],r[g*2+1]=p),d--)}},gen_codes=(t,e,r)=>{const n=new Array(MAX_BITS$1+1);let a=0,s,o;for(s=1;s<=MAX_BITS$1;s++)a=a+r[s-1]<<1,n[s]=a;for(o=0;o<=e;o++){let l=t[o*2+1];l!==0&&(t[o*2]=bi_reverse(n[l]++,l))}},tr_static_init=()=>{let t,e,r,n,a;const s=new Array(MAX_BITS$1+1);for(r=0,n=0;n>=7;n{let e;for(e=0;e{t.bi_valid>8?put_short(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},smaller=(t,e,r,n)=>{const a=e*2,s=r*2;return t[a]{const n=t.heap[r];let a=r<<1;for(;a<=t.heap_len&&(a{let n,a,s=0,o,l;if(t.sym_next!==0)do n=t.pending_buf[t.sym_buf+s++]&255,n+=(t.pending_buf[t.sym_buf+s++]&255)<<8,a=t.pending_buf[t.sym_buf+s++],n===0?send_code(t,a,e):(o=_length_code[a],send_code(t,o+LITERALS$1+1,e),l=extra_lbits[o],l!==0&&(a-=base_length[o],send_bits(t,a,l)),n--,o=d_code(n),send_code(t,o,r),l=extra_dbits[o],l!==0&&(n-=base_dist[o],send_bits(t,n,l)));while(s{const r=e.dyn_tree,n=e.stat_desc.static_tree,a=e.stat_desc.has_stree,s=e.stat_desc.elems;let o,l,u=-1,h;for(t.heap_len=0,t.heap_max=HEAP_SIZE$1,o=0;o>1;o>=1;o--)pqdownheap(t,r,o);h=s;do o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pqdownheap(t,r,1),l=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=l,r[h*2]=r[o*2]+r[l*2],t.depth[h]=(t.depth[o]>=t.depth[l]?t.depth[o]:t.depth[l])+1,r[o*2+1]=r[l*2+1]=h,t.heap[1]=h++,pqdownheap(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],gen_bitlen(t,e),gen_codes(r,u,t.bl_count)},scan_tree=(t,e,r)=>{let n,a=-1,s,o=e[0*2+1],l=0,u=7,h=4;for(o===0&&(u=138,h=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)s=o,o=e[(n+1)*2+1],!(++l{let n,a=-1,s,o=e[0*2+1],l=0,u=7,h=4;for(o===0&&(u=138,h=3),n=0;n<=r;n++)if(s=o,o=e[(n+1)*2+1],!(++l{let e;for(scan_tree(t,t.dyn_ltree,t.l_desc.max_code),scan_tree(t,t.dyn_dtree,t.d_desc.max_code),build_tree(t,t.bl_desc),e=BL_CODES$1-1;e>=3&&t.bl_tree[bl_order[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},send_all_trees=(t,e,r,n)=>{let a;for(send_bits(t,e-257,5),send_bits(t,r-1,5),send_bits(t,n-4,4),a=0;a{let e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&t.dyn_ltree[r*2]!==0)return Z_BINARY;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Z_TEXT;for(r=32;r{static_init_done||(tr_static_init(),static_init_done=!0),t.l_desc=new TreeDesc(t.dyn_ltree,static_l_desc),t.d_desc=new TreeDesc(t.dyn_dtree,static_d_desc),t.bl_desc=new TreeDesc(t.bl_tree,static_bl_desc),t.bi_buf=0,t.bi_valid=0,init_block(t)},_tr_stored_block$1=(t,e,r,n)=>{send_bits(t,(STORED_BLOCK<<1)+(n?1:0),3),bi_windup(t),put_short(t,r),put_short(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r},_tr_align$1=t=>{send_bits(t,STATIC_TREES<<1,3),send_code(t,END_BLOCK,static_ltree),bi_flush(t)},_tr_flush_block$1=(t,e,r,n)=>{let a,s,o=0;t.level>0?(t.strm.data_type===Z_UNKNOWN$1&&(t.strm.data_type=detect_data_type(t)),build_tree(t,t.l_desc),build_tree(t,t.d_desc),o=build_bl_tree(t),a=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&e!==-1?_tr_stored_block$1(t,e,r,n):t.strategy===Z_FIXED$1||s===a?(send_bits(t,(STATIC_TREES<<1)+(n?1:0),3),compress_block(t,static_ltree,static_dtree)):(send_bits(t,(DYN_TREES<<1)+(n?1:0),3),send_all_trees(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),compress_block(t,t.dyn_ltree,t.dyn_dtree)),init_block(t),n&&bi_windup(t)},_tr_tally$1=(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,e===0?t.dyn_ltree[r*2]++:(t.matches++,e--,t.dyn_ltree[(_length_code[r]+LITERALS$1+1)*2]++,t.dyn_dtree[d_code(e)*2]++),t.sym_next===t.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=(t,e,r,n)=>{let a=t&65535|0,s=t>>>16&65535|0,o=0;for(;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+e[n++]|0,s=s+a|0;while(--o);a%=65521,s%=65521}return a|s<<16|0};var adler32_1=adler32;const makeTable=()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e},crcTable=new Uint32Array(makeTable()),crc32=(t,e,r,n)=>{const a=crcTable,s=n+r;t^=-1;for(let o=n;o>>8^a[(t^e[o])&255];return t^-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=(t,e)=>(t.msg=messages$1[e],e),rank$1=t=>t*2-(t>4?9:0),zero$2=t=>{let e=t.length;for(;--e>=0;)t[e]=0},slide_hash=t=>{let e,r,n,a=t.w_size;e=t.hash_size,n=e;do r=t.head[--n],t.head[n]=r>=a?r-a:0;while(--e);e=a,n=e;do r=t.prev[--n],t.prev[n]=r>=a?r-a:0;while(--e)};let HASH_ZLIB=(t,e,r)=>(e<{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))},flush_block_only=(t,e)=>{_tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,flush_pending(t.strm)},put_byte=(t,e)=>{t.pending_buf[t.pending++]=e},putShortMSB=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},read_buf=(t,e,r,n)=>{let a=t.avail_in;return a>n&&(a=n),a===0?0:(t.avail_in-=a,e.set(t.input.subarray(t.next_in,t.next_in+a),r),t.state.wrap===1?t.adler=adler32_1(t.adler,e,a,r):t.state.wrap===2&&(t.adler=crc32_1(t.adler,e,a,r)),t.next_in+=a,t.total_in+=a,a)},longest_match=(t,e)=>{let r=t.max_chain_length,n=t.strstart,a,s,o=t.prev_length,l=t.nice_match;const u=t.strstart>t.w_size-MIN_LOOKAHEAD?t.strstart-(t.w_size-MIN_LOOKAHEAD):0,h=t.window,d=t.w_mask,g=t.prev,p=t.strstart+MAX_MATCH;let m=h[n+o-1],T=h[n+o];t.prev_length>=t.good_match&&(r>>=2),l>t.lookahead&&(l=t.lookahead);do if(a=e,!(h[a+o]!==T||h[a+o-1]!==m||h[a]!==h[n]||h[++a]!==h[n+1])){n+=2,a++;do;while(h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&no){if(t.match_start=e,o=s,s>=l)break;m=h[n+o-1],T=h[n+o]}}while((e=g[e&d])>u&&--r!==0);return o<=t.lookahead?o:t.lookahead},fill_window=t=>{const e=t.w_size;let r,n,a;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-MIN_LOOKAHEAD)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),slide_hash(t),n+=e),t.strm.avail_in===0)break;if(r=read_buf(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=MIN_MATCH)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=HASH(t,t.ins_h,t.window[a+1]);t.insert&&(t.ins_h=HASH(t,t.ins_h,t.window[a+MIN_MATCH-1]),t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert{let r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,a,s,o=0,l=t.strm.avail_in;do{if(n=65535,s=t.bi_valid+42>>3,t.strm.avail_outa+t.strm.avail_in&&(n=a+t.strm.avail_in),n>s&&(n=s),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,flush_pending(t.strm),a&&(a>n&&(a=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,n-=a),n&&(read_buf(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(o===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_waters&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,s+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),s>t.strm.avail_in&&(s=t.strm.avail_in),s&&(read_buf(t.strm,t.window,t.strstart,s),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.high_water>3,s=t.pending_buf_size-s>65535?65535:t.pending_buf_size-s,r=s>t.w_size?t.w_size:s,a=t.strstart-t.block_start,(a>=r||(a||e===Z_FINISH$3)&&e!==Z_NO_FLUSH$2&&t.strm.avail_in===0&&a<=s)&&(n=a>s?s:a,o=e===Z_FINISH$3&&t.strm.avail_in===0&&n===a?1:0,_tr_stored_block(t,t.block_start,n,o),t.block_start+=n,flush_pending(t.strm)),o?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(t,e)=>{let r,n;for(;;){if(t.lookahead=MIN_MATCH&&(t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),r!==0&&t.strstart-r<=t.w_size-MIN_LOOKAHEAD&&(t.match_length=longest_match(t,r)),t.match_length>=MIN_MATCH)if(n=_tr_tally(t,t.strstart-t.match_start,t.match_length-MIN_MATCH),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=MIN_MATCH){t.match_length--;do t.strstart++,t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+1]);else n=_tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}return t.insert=t.strstart{let r,n,a;for(;;){if(t.lookahead=MIN_MATCH&&(t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=MIN_MATCH-1,r!==0&&t.prev_length4096)&&(t.match_length=MIN_MATCH-1)),t.prev_length>=MIN_MATCH&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-MIN_MATCH,n=_tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-MIN_MATCH),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=MIN_MATCH-1,t.strstart++,n&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}else if(t.match_available){if(n=_tr_tally(t,0,t.window[t.strstart-1]),n&&flush_block_only(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return BS_NEED_MORE}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=_tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let r,n,a,s;const o=t.window;for(;;){if(t.lookahead<=MAX_MATCH){if(fill_window(t),t.lookahead<=MAX_MATCH&&e===Z_NO_FLUSH$2)return BS_NEED_MORE;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=MIN_MATCH&&t.strstart>0&&(a=t.strstart-1,n=o[a],n===o[++a]&&n===o[++a]&&n===o[++a])){s=t.strstart+MAX_MATCH;do;while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&at.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=MIN_MATCH?(r=_tr_tally(t,1,t.match_length-MIN_MATCH),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=_tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH$3?(flush_block_only(t,!0),t.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):t.sym_next&&(flush_block_only(t,!1),t.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(t,e)=>{let r;for(;;){if(t.lookahead===0&&(fill_window(t),t.lookahead===0)){if(e===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(t.match_length=0,r=_tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH$3?(flush_block_only(t,!0),t.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):t.sym_next&&(flush_block_only(t,!1),t.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(t,e,r,n,a){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=a}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=t=>{t.window_size=2*t.w_size,zero$2(t.head),t.max_lazy_match=configuration_table[t.level].max_lazy,t.good_match=configuration_table[t.level].good_length,t.nice_match=configuration_table[t.level].nice_length,t.max_chain_length=configuration_table[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=MIN_MATCH-1,t.match_available=0,t.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$2(this.dyn_ltree),zero$2(this.dyn_dtree),zero$2(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$2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero$2(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=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==INIT_STATE&&e.status!==GZIP_STATE&&e.status!==EXTRA_STATE&&e.status!==NAME_STATE&&e.status!==COMMENT_STATE&&e.status!==HCRC_STATE&&e.status!==BUSY_STATE&&e.status!==FINISH_STATE?1:0},deflateResetKeep=t=>{if(deflateStateCheck(t))return err(t,Z_STREAM_ERROR$2);t.total_in=t.total_out=0,t.data_type=Z_UNKNOWN;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?GZIP_STATE:e.wrap?INIT_STATE:BUSY_STATE,t.adler=e.wrap===2?0:1,e.last_flush=-2,_tr_init(e),Z_OK$3},deflateReset=t=>{const e=deflateResetKeep(t);return e===Z_OK$3&&lm_init(t.state),e},deflateSetHeader=(t,e)=>deflateStateCheck(t)||t.state.wrap!==2?Z_STREAM_ERROR$2:(t.state.gzhead=e,Z_OK$3),deflateInit2=(t,e,r,n,a,s)=>{if(!t)return Z_STREAM_ERROR$2;let o=1;if(e===Z_DEFAULT_COMPRESSION$1&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>MAX_MEM_LEVEL||r!==Z_DEFLATED$2||n<8||n>15||e<0||e>9||s<0||s>Z_FIXED||n===8&&o!==1)return err(t,Z_STREAM_ERROR$2);n===8&&(n=9);const l=new DeflateState;return t.state=l,l.strm=t,l.status=INIT_STATE,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<deflateInit2(t,e,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(t,e)=>{if(deflateStateCheck(t)||e>Z_BLOCK$1||e<0)return t?err(t,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const r=t.state;if(!t.output||t.avail_in!==0&&!t.input||r.status===FINISH_STATE&&e!==Z_FINISH$3)return err(t,t.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const n=r.last_flush;if(r.last_flush=e,r.pending!==0){if(flush_pending(t),t.avail_out===0)return r.last_flush=-1,Z_OK$3}else if(t.avail_in===0&&rank$1(e)<=rank$1(n)&&e!==Z_FINISH$3)return err(t,Z_BUF_ERROR$1);if(r.status===FINISH_STATE&&t.avail_in!==0)return err(t,Z_BUF_ERROR$1);if(r.status===INIT_STATE&&r.wrap===0&&(r.status=BUSY_STATE),r.status===INIT_STATE){let a=Z_DEFLATED$2+(r.w_bits-8<<4)<<8,s=-1;if(r.strategy>=Z_HUFFMAN_ONLY||r.level<2?s=0:r.level<6?s=1:r.level===6?s=2:s=3,a|=s<<6,r.strstart!==0&&(a|=PRESET_DICT),a+=31-a%31,putShortMSB(r,a),r.strstart!==0&&(putShortMSB(r,t.adler>>>16),putShortMSB(r,t.adler&65535)),t.adler=1,r.status=BUSY_STATE,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===GZIP_STATE){if(t.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&&(t.adler=crc32_1(t.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(t),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===EXTRA_STATE){if(r.gzhead.extra){let a=r.pending,s=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+s>r.pending_buf_size;){let l=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+l),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex+=l,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3;a=0,s-=l}let o=new Uint8Array(r.gzhead.extra);r.pending_buf.set(o.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending+=s,r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=NAME_STATE}if(r.status===NAME_STATE){if(r.gzhead.name){let a=r.pending,s;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3;a=0}r.gzindexa&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=COMMENT_STATE}if(r.status===COMMENT_STATE){if(r.gzhead.comment){let a=r.pending,s;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3;a=0}r.gzindexa&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a))}r.status=HCRC_STATE}if(r.status===HCRC_STATE){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(flush_pending(t),r.pending!==0))return r.last_flush=-1,Z_OK$3;put_byte(r,t.adler&255),put_byte(r,t.adler>>8&255),t.adler=0}if(r.status=BUSY_STATE,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(t.avail_in!==0||r.lookahead!==0||e!==Z_NO_FLUSH$2&&r.status!==FINISH_STATE){let a=r.level===0?deflate_stored(r,e):r.strategy===Z_HUFFMAN_ONLY?deflate_huff(r,e):r.strategy===Z_RLE?deflate_rle(r,e):configuration_table[r.level].func(r,e);if((a===BS_FINISH_STARTED||a===BS_FINISH_DONE)&&(r.status=FINISH_STATE),a===BS_NEED_MORE||a===BS_FINISH_STARTED)return t.avail_out===0&&(r.last_flush=-1),Z_OK$3;if(a===BS_BLOCK_DONE&&(e===Z_PARTIAL_FLUSH?_tr_align(r):e!==Z_BLOCK$1&&(_tr_stored_block(r,0,0,!1),e===Z_FULL_FLUSH$1&&(zero$2(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),flush_pending(t),t.avail_out===0))return r.last_flush=-1,Z_OK$3}return e!==Z_FINISH$3?Z_OK$3:r.wrap<=0?Z_STREAM_END$3:(r.wrap===2?(put_byte(r,t.adler&255),put_byte(r,t.adler>>8&255),put_byte(r,t.adler>>16&255),put_byte(r,t.adler>>24&255),put_byte(r,t.total_in&255),put_byte(r,t.total_in>>8&255),put_byte(r,t.total_in>>16&255),put_byte(r,t.total_in>>24&255)):(putShortMSB(r,t.adler>>>16),putShortMSB(r,t.adler&65535)),flush_pending(t),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=t=>{if(deflateStateCheck(t))return Z_STREAM_ERROR$2;const e=t.state.status;return t.state=null,e===BUSY_STATE?err(t,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(t,e)=>{let r=e.length;if(deflateStateCheck(t))return Z_STREAM_ERROR$2;const n=t.state,a=n.wrap;if(a===2||a===1&&n.status!==INIT_STATE||n.lookahead)return Z_STREAM_ERROR$2;if(a===1&&(t.adler=adler32_1(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){a===0&&(zero$2(n.head),n.strstart=0,n.block_start=0,n.insert=0);let u=new Uint8Array(n.w_size);u.set(e.subarray(r-n.w_size,r),0),e=u,r=n.w_size}const s=t.avail_in,o=t.next_in,l=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,fill_window(n);n.lookahead>=MIN_MATCH;){let u=n.strstart,h=n.lookahead-(MIN_MATCH-1);do n.ins_h=HASH(n,n.ins_h,n.window[u+MIN_MATCH-1]),n.prev[u&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=u,u++;while(--h);n.strstart=u,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,t.next_in=o,t.input=l,t.avail_in=s,n.wrap=a,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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var assign=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(!!r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)_has(r,n)&&(t[n]=r[n])}}return t},flattenChunks=t=>{let e=0;for(let n=0,a=t.length;n=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,a,s,o=t.length,l=0;for(a=0;a>>6,e[s++]=128|r&63):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|r&63):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|r&63);return e};const buf2binstring=(t,e)=>{if(e<65534&&t.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n{const r=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let n,a;const s=new Array(r*2);for(a=0,n=0;n4){s[a++]=65533,n+=l-1;continue}for(o&=l===2?31:l===3?15:7;l>1&&n1){s[a++]=65533;continue}o<65536?s[a++]=o:(o-=65536,s[a++]=55296|o>>10&1023,s[a++]=56320|o&1023)}return buf2binstring(s,a)},utf8border=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+_utf8len[t[r]]>e?r:e},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(t){this.options=common$2.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.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,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==Z_OK$2)throw new Error(messages$1[r]);if(e.header&&deflate_1$2.deflateSetHeader(this.strm,e.header),e.dictionary){let n;if(typeof e.dictionary=="string"?n=strings.string2buf(e.dictionary):toString$1.call(e.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(e.dictionary):n=e.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(t,e){const r=this.strm,n=this.options.chunkSize;let a,s;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof t=="string"?r.input=strings.string2buf(t):toString$1.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,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),(s===Z_SYNC_FLUSH||s===Z_FULL_FLUSH)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(a=deflate_1$2.deflate(r,s),a===Z_STREAM_END$2)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=deflate_1$2.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Z_OK$2;if(r.avail_out===0){this.onData(r.output);continue}if(s>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(t){this.chunks.push(t)};Deflate$1.prototype.onEnd=function(t){t===Z_OK$2&&(this.result=common$2.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function deflate$1(t,e){const r=new Deflate$1(e);if(r.push(t,!0),r.err)throw r.msg||messages$1[r.err];return r.result}function deflateRaw$1(t,e){return e=e||{},e.raw=!0,deflate$1(t,e)}function gzip$1(t,e){return e=e||{},e.gzip=!0,deflate$1(t,e)}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 t(e,r){let n,a,s,o,l,u,h,d,g,p,m,T,C,A,L,I,O,P,z,q,U,H,$,R;const D=e.state;n=e.next_in,$=e.input,a=n+(e.avail_in-5),s=e.next_out,R=e.output,o=s-(r-e.avail_out),l=s+(e.avail_out-257),u=D.dmax,h=D.wsize,d=D.whave,g=D.wnext,p=D.window,m=D.hold,T=D.bits,C=D.lencode,A=D.distcode,L=(1<>>24,m>>>=P,T-=P,P=O>>>16&255,P===0)R[s++]=O&65535;else if(P&16){z=O&65535,P&=15,P&&(T>>=P,T-=P),T<15&&(m+=$[n++]<>>24,m>>>=P,T-=P,P=O>>>16&255,P&16){if(q=O&65535,P&=15,Tu){e.msg="invalid distance too far back",D.mode=BAD$1;break t}if(m>>>=P,T-=P,P=s-o,q>P){if(P=q-P,P>d&&D.sane){e.msg="invalid distance too far back",D.mode=BAD$1;break t}if(U=0,H=p,g===0){if(U+=h-P,P2;)R[s++]=H[U++],R[s++]=H[U++],R[s++]=H[U++],z-=3;z&&(R[s++]=H[U++],z>1&&(R[s++]=H[U++]))}else{U=s-q;do R[s++]=R[U++],R[s++]=R[U++],R[s++]=R[U++],z-=3;while(z>2);z&&(R[s++]=R[U++],z>1&&(R[s++]=R[U++]))}}else if((P&64)===0){O=A[(O&65535)+(m&(1<>3,n-=z,T-=z<<3,m&=(1<{const u=l.bits;let h=0,d=0,g=0,p=0,m=0,T=0,C=0,A=0,L=0,I=0,O,P,z,q,U,H=null,$;const R=new Uint16Array(MAXBITS+1),D=new Uint16Array(MAXBITS+1);let k=null,B,v,J;for(h=0;h<=MAXBITS;h++)R[h]=0;for(d=0;d=1&&R[p]===0;p--);if(m>p&&(m=p),p===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,l.bits=1,0;for(g=1;g0&&(t===CODES$1||p!==1))return-1;for(D[1]=0,h=1;hENOUGH_LENS$1||t===DISTS$1&&L>ENOUGH_DISTS$1)return 1;for(;;){B=h-C,o[d]+1<$?(v=0,J=o[d]):o[d]>=$?(v=k[o[d]-$],J=H[o[d]-$]):(v=32+64,J=0),O=1<>C)+P]=B<<24|v<<16|J|0;while(P!==0);for(O=1<>=1;if(O!==0?(I&=O-1,I+=O):I=0,d++,--R[h]===0){if(h===p)break;h=e[r+o[d]]}if(h>m&&(I&q)!==z){for(C===0&&(C=m),U+=g,T=h-C,A=1<ENOUGH_LENS$1||t===DISTS$1&&L>ENOUGH_DISTS$1)return 1;z=I&q,a[z]=m<<24|T<<16|U-s|0}}return I!==0&&(a[U+I]=h-C<<24|64<<16|0),l.bits=m,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=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&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=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.modeSYNC?1:0},inflateResetKeep=t=>{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=HEAD,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(ENOUGH_LENS),e.distcode=e.distdyn=new Int32Array(ENOUGH_DISTS),e.sane=1,e.back=-1,Z_OK$1},inflateReset=t=>{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,inflateResetKeep(t)},inflateReset2=(t,e)=>{let r;if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const n=t.state;return e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Z_STREAM_ERROR$1:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,inflateReset(t))},inflateInit2=(t,e)=>{if(!t)return Z_STREAM_ERROR$1;const r=new InflateState;t.state=r,r.strm=t,r.window=null,r.mode=HEAD;const n=inflateReset2(t,e);return n!==Z_OK$1&&(t.state=null),n},inflateInit=t=>inflateInit2(t,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=t=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(inftrees(LENS,t.lens,0,288,lenfix,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;inftrees(DISTS,t.lens,0,32,distfix,0,t.work,{bits:5}),virgin=!1}t.lencode=lenfix,t.lenbits=9,t.distcode=distfix,t.distbits=5},updatewindow=(t,e,r,n)=>{let a;const s=t.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(r-s.wsize,r),0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>n&&(a=n),s.window.set(e.subarray(r-n,r-n+a),s.wnext),n-=a,n?(s.window.set(e.subarray(r-n,r),0),s.wnext=n,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave{let r,n,a,s,o,l,u,h,d,g,p,m,T,C,A=0,L,I,O,P,z,q,U,H;const $=new Uint8Array(4);let R,D;const k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(t)||!t.output||!t.input&&t.avail_in!==0)return Z_STREAM_ERROR$1;r=t.state,r.mode===TYPE$2&&(r.mode=TYPEDO),o=t.next_out,a=t.output,u=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,h=r.hold,d=r.bits,g=l,p=u,H=Z_OK$1;t:for(;;)switch(r.mode){case HEAD:if(r.wrap===0){r.mode=TYPEDO;break}for(;d<16;){if(l===0)break t;l--,h+=n[s++]<>>8&255,r.check=crc32_1(r.check,$,2,0),h=0,d=0,r.mode=FLAGS;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((h&255)<<8)+(h>>8))%31){t.msg="incorrect header check",r.mode=BAD;break}if((h&15)!==Z_DEFLATED){t.msg="unknown compression method",r.mode=BAD;break}if(h>>>=4,d-=4,U=(h&15)+8,r.wbits===0&&(r.wbits=U),U>15||U>r.wbits){t.msg="invalid window size",r.mode=BAD;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&($[0]=h&255,$[1]=h>>>8&255,r.check=crc32_1(r.check,$,2,0)),h=0,d=0,r.mode=TIME;case TIME:for(;d<32;){if(l===0)break t;l--,h+=n[s++]<>>8&255,$[2]=h>>>16&255,$[3]=h>>>24&255,r.check=crc32_1(r.check,$,4,0)),h=0,d=0,r.mode=OS;case OS:for(;d<16;){if(l===0)break t;l--,h+=n[s++]<>8),r.flags&512&&r.wrap&4&&($[0]=h&255,$[1]=h>>>8&255,r.check=crc32_1(r.check,$,2,0)),h=0,d=0,r.mode=EXLEN;case EXLEN:if(r.flags&1024){for(;d<16;){if(l===0)break t;l--,h+=n[s++]<>>8&255,r.check=crc32_1(r.check,$,2,0)),h=0,d=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(r.flags&1024&&(m=r.length,m>l&&(m=l),m&&(r.head&&(U=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(s,s+m),U)),r.flags&512&&r.wrap&4&&(r.check=crc32_1(r.check,n,m,s)),l-=m,s+=m,r.length-=m),r.length))break t;r.length=0,r.mode=NAME;case NAME:if(r.flags&2048){if(l===0)break t;m=0;do U=n[s+m++],r.head&&U&&r.length<65536&&(r.head.name+=String.fromCharCode(U));while(U&&m>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=TYPE$2;break;case DICTID:for(;d<32;){if(l===0)break t;l--,h+=n[s++]<>>=d&7,d-=d&7,r.mode=CHECK;break}for(;d<3;){if(l===0)break t;l--,h+=n[s++]<>>=1,d-=1,h&3){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,e===Z_TREES){h>>>=2,d-=2;break t}break;case 2:r.mode=TABLE;break;case 3:t.msg="invalid block type",r.mode=BAD}h>>>=2,d-=2;break;case STORED:for(h>>>=d&7,d-=d&7;d<32;){if(l===0)break t;l--,h+=n[s++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=h&65535,h=0,d=0,r.mode=COPY_,e===Z_TREES)break t;case COPY_:r.mode=COPY;case COPY:if(m=r.length,m){if(m>l&&(m=l),m>u&&(m=u),m===0)break t;a.set(n.subarray(s,s+m),o),l-=m,s+=m,u-=m,o+=m,r.length-=m;break}r.mode=TYPE$2;break;case TABLE:for(;d<14;){if(l===0)break t;l--,h+=n[s++]<>>=5,d-=5,r.ndist=(h&31)+1,h>>>=5,d-=5,r.ncode=(h&15)+4,h>>>=4,d-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have>>=3,d-=3}for(;r.have<19;)r.lens[k[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},H=inftrees(CODES,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,H){t.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have>>24,I=A>>>16&255,O=A&65535,!(L<=d);){if(l===0)break t;l--,h+=n[s++]<>>=L,d-=L,r.lens[r.have++]=O;else{if(O===16){for(D=L+2;d>>=L,d-=L,r.have===0){t.msg="invalid bit length repeat",r.mode=BAD;break}U=r.lens[r.have-1],m=3+(h&3),h>>>=2,d-=2}else if(O===17){for(D=L+3;d>>=L,d-=L,U=0,m=3+(h&7),h>>>=3,d-=3}else{for(D=L+7;d>>=L,d-=L,U=0,m=11+(h&127),h>>>=7,d-=7}if(r.have+m>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=BAD;break}for(;m--;)r.lens[r.have++]=U}}if(r.mode===BAD)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,R={bits:r.lenbits},H=inftrees(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,H){t.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},H=inftrees(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,H){t.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,e===Z_TREES)break t;case LEN_:r.mode=LEN;case LEN:if(l>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=s,t.avail_in=l,r.hold=h,r.bits=d,inffast(t,p),o=t.next_out,a=t.output,u=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,h=r.hold,d=r.bits,r.mode===TYPE$2&&(r.back=-1);break}for(r.back=0;A=r.lencode[h&(1<>>24,I=A>>>16&255,O=A&65535,!(L<=d);){if(l===0)break t;l--,h+=n[s++]<>P)],L=A>>>24,I=A>>>16&255,O=A&65535,!(P+L<=d);){if(l===0)break t;l--,h+=n[s++]<>>=P,d-=P,r.back+=P}if(h>>>=L,d-=L,r.back+=L,r.length=O,I===0){r.mode=LIT;break}if(I&32){r.back=-1,r.mode=TYPE$2;break}if(I&64){t.msg="invalid literal/length code",r.mode=BAD;break}r.extra=I&15,r.mode=LENEXT;case LENEXT:if(r.extra){for(D=r.extra;d>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;A=r.distcode[h&(1<>>24,I=A>>>16&255,O=A&65535,!(L<=d);){if(l===0)break t;l--,h+=n[s++]<>P)],L=A>>>24,I=A>>>16&255,O=A&65535,!(P+L<=d);){if(l===0)break t;l--,h+=n[s++]<>>=P,d-=P,r.back+=P}if(h>>>=L,d-=L,r.back+=L,I&64){t.msg="invalid distance code",r.mode=BAD;break}r.offset=O,r.extra=I&15,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(D=r.extra;d>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(u===0)break t;if(m=p-u,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=BAD;break}m>r.wnext?(m-=r.wnext,T=r.wsize-m):T=r.wnext-m,m>r.length&&(m=r.length),C=r.window}else C=a,T=o-r.offset,m=r.length;m>u&&(m=u),u-=m,r.length-=m;do a[o++]=C[T++];while(--m);r.length===0&&(r.mode=LEN);break;case LIT:if(u===0)break t;a[o++]=r.length,u--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;d<32;){if(l===0)break t;l--,h|=n[s++]<{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;let e=t.state;return e.window&&(e.window=null),t.state=null,Z_OK$1},inflateGetHeader=(t,e)=>{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const r=t.state;return(r.wrap&2)===0?Z_STREAM_ERROR$1:(r.head=e,e.done=!1,Z_OK$1)},inflateSetDictionary=(t,e)=>{const r=e.length;let n,a,s;return inflateStateCheck(t)||(n=t.state,n.wrap!==0&&n.mode!==DICT)?Z_STREAM_ERROR$1:n.mode===DICT&&(a=1,a=adler32_1(a,e,r,0),a!==n.check)?Z_DATA_ERROR$1:(s=updatewindow(t,e,r,r),s?(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$2=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(t){this.options=common$2.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.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,e.windowBits);if(r!==Z_OK)throw new Error(messages$1[r]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=strings.string2buf(e.dictionary):toString$2.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=inflate_1$2.inflateSetDictionary(this.strm,e.dictionary),r!==Z_OK)))throw new Error(messages$1[r])}Inflate$1.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,a=this.options.dictionary;let s,o,l;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?Z_FINISH:Z_NO_FLUSH,toString$2.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,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),s=inflate_1$2.inflate(r,o),s===Z_NEED_DICT&&a&&(s=inflate_1$2.inflateSetDictionary(r,a),s===Z_OK?s=inflate_1$2.inflate(r,o):s===Z_DATA_ERROR&&(s=Z_NEED_DICT));r.avail_in>0&&s===Z_STREAM_END&&r.state.wrap>0&&t[r.next_in]!==0;)inflate_1$2.inflateReset(r),s=inflate_1$2.inflate(r,o);switch(s){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(s),this.ended=!0,!1}if(l=r.avail_out,r.next_out&&(r.avail_out===0||s===Z_STREAM_END))if(this.options.to==="string"){let u=strings.utf8border(r.output,r.next_out),h=r.next_out-u,d=strings.buf2string(r.output,u);r.next_out=h,r.avail_out=n-h,h&&r.output.set(r.output.subarray(u,u+h),0),this.onData(d)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(s===Z_OK&&l===0)){if(s===Z_STREAM_END)return s=inflate_1$2.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(t){this.chunks.push(t)};Inflate$1.prototype.onEnd=function(t){t===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common$2.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function inflate$1(t,e){const r=new Inflate$1(e);if(r.push(t),r.err)throw r.msg||messages$1[r.err];return r.result}function inflateRaw$1(t,e){return e=e||{},e.raw=!0,inflate$1(t,e)}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=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(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):(t,e=r=>r)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),_mkUriSafe=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),_tidyB64=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=t=>{let e,r,n,a,s="";const o=t.length%3;for(let l=0;l255||(n=t.charCodeAt(l++))>255||(a=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|a,s+=b64chs[e>>18&63]+b64chs[e>>12&63]+b64chs[e>>6&63]+b64chs[e&63]}return o?s.slice(0,o-3)+"===".substring(o):s},_btoa=_hasbtoa?t=>btoa(t):_hasBuffer?t=>Buffer.from(t,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,a=t.length;ne?_mkUriSafe(_fromUint8Array(t)):_fromUint8Array(t),cb_utob=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?_fromCC(192|e>>>6)+_fromCC(128|e&63):_fromCC(224|e>>>12&15)+_fromCC(128|e>>>6&63)+_fromCC(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return _fromCC(240|e>>>18&7)+_fromCC(128|e>>>12&63)+_fromCC(128|e>>>6&63)+_fromCC(128|e&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=t=>t.replace(re_utob,cb_utob),_encode=_hasBuffer?t=>Buffer.from(t,"utf8").toString("base64"):_TE?t=>_fromUint8Array(_TE.encode(t)):t=>_btoa(utob(t)),encode=(t,e=!1)=>e?_mkUriSafe(_encode(t)):_encode(t),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return _fromCC((r>>>10)+55296)+_fromCC((r&1023)+56320);case 3:return _fromCC((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return _fromCC((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},btou=t=>t.replace(re_btou,cb_btou),atobPolyfill=t=>{if(t=t.replace(/\s+/g,""),!b64re.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,a;for(let s=0;s>16&255):a===64?_fromCC(e>>16&255,e>>8&255):_fromCC(e>>16&255,e>>8&255,e&255);return r},_atob=_hasatob?t=>atob(_tidyB64(t)):_hasBuffer?t=>Buffer.from(t,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?t=>_U8Afrom(Buffer.from(t,"base64")):t=>_U8Afrom(_atob(t),e=>e.charCodeAt(0)),toUint8Array=t=>_toUint8Array(_unURI(t)),_decode=_hasBuffer?t=>Buffer.from(t,"base64").toString("utf8"):_TD?t=>_TD.decode(_toUint8Array(t)):t=>btou(_atob(t)),_unURI=t=>_tidyB64(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),decode=t=>_decode(_unURI(t)),base64Serde={serialize:t=>encode(t,!0),deserialize:t=>decode(t)},pakoSerde={serialize:t=>{const e=new TextEncoder().encode(t),r=deflate_1(e,{level:9});return fromUint8Array(r,!0)},deserialize:t=>{const e=toUint8Array(t);return inflate_1(e,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(t,e="pako")=>{if(!(e in serdes))throw new Error(`Unknown serde type: ${e}`);const r=JSON.stringify(t),n=serdes[e].serialize(r);return`${e}:${n}`},deserializeState=t=>{let e,r;if(t.includes(":")){let a;if([a,r]=t.split(":"),a in serdes)e=a;else throw new Error(`Unknown serde type: ${a}`)}else e="base64",r=t;const n=serdes[e].deserialize(r);return JSON.parse(n)};var dist$1={},words={};(function(t){var e=commonjsGlobal&&commonjsGlobal.__values||function(n){var a=typeof Symbol=="function"&&Symbol.iterator,s=a&&n[a],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.getWordsByCategory=t.wordList=void 0,t.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,a){var s,o;a===void 0&&(a=[]);var l=new Set(a),u=[];try{for(var h=e(t.wordList[n]),d=h.next();!d.done;d=h.next()){var g=d.value;(a.length===0||g.categories.some(function(p){return l.has(p)}))&&u.push(g.word)}}catch(p){s={error:p}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(s)throw s.error}}return u}t.getWordsByCategory=r})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r{a(t==="auto"?e:t==="manual"?r:t==="loader"?n:e)}),addHistoryEntry=t=>{const e={...t,id:v4()};if(e.type==="loader"){loaderHistoryStore.update(r=>[e,...r]);return}e.name||(e.name=generateSlug_1(2)),e.type==="auto"?autoHistoryStore.update(r=>(r.length>=MAX_AUTO_HISTORY_LENGTH&&(r=r.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[e,...r])):e.type==="manual"&&(manualHistoryStore.update(r=>[e,...r]),logEvent("history",{action:"save"}))},clearHistoryData=t=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(e=>(get_store_value(historyModeStore)!=="loader"&&(e=e.filter(({id:r})=>t&&r!=t),logEvent("history",{action:"clear",type:t?"single":"all"})),e))},getPreviousState=t=>{const e=get_store_value(t?autoHistoryStore:manualHistoryStore);return e.length>0?JSON.stringify(e[0].state):""},restoreHistory=t=>{const e=t.filter(validateEntry),r=t.length-e.length;if(r>0&&(console.error(`${r} invalid history entries were removed.`),console.error(t)),e.length>0){let n=0;(e[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(a=>{const s=new Set(a.map(({id:u})=>u)),o=e.filter(({id:u})=>!s.has(u));n=o.length;const l=[...a,...o];return l.sort((u,h)=>h.time-u.time),l}),alert(`${n} entries restored. ${r} invalid, ${e.length-n} duplicates.`),logEvent("history",{action:"restore",success:n,invalid:r,duplicates:e.length-n})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const t=e=>{for(const r of e)r.id||(r.id=v4());return e};autoHistoryStore.update(t),manualHistoryStore.update(t)},validateEntry=t=>t.type&&t.state&&t.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=t=>codeFileName in t,getFileContent=async t=>t.truncated?await(await fetch(t.raw_url)).text():t.content,getGistData=async t=>{const e=t.split("github.com").pop();if(!e)throw new Error("Invalid GitHub URL"+t);const[r,n,a,s]=e.split("/"),{html_url:o,files:l,history:u}=await(await fetch(`https://api.github.com/gists/${a}${s?"/"+s:""}`)).json();if(isValidGist(l)){const h=await getFileContent(l[codeFileName]);let d="{}";configFileName in l&&(d=await getFileContent(l[configFileName]));const g=u[0];return{url:`${o}/${g.version}`,code:h,config:d,author:g.user.login,time:new Date(g.committed_at).getTime(),version:g.version.slice(-7)}}else throw new Error("Invalid gist provided")},getStateFromGist=(t,e=t.url)=>{const r={...defaultState,code:t.code,loader:{type:"gist",config:{url:e}}};return t.config&&(r.mermaid=t.config),r},loadGistData=async t=>{const e=t.split("github.com").pop();if(!e)throw new Error("Invalid GitHub URL"+t);const[r,n,a,s]=e.split("/"),{history:o}=await(await fetch(`https://api.github.com/gists/${a}${s?"/"+s:""}`)).json(),l=[];for(const d of o){const g=await getGistData(d.url).catch(()=>{});g&&l.push(g)}if(l.length===0)throw new Error("Invalid gist provided");l.reverse();const u=l.slice(-1).pop();if(!u)throw new Error("Invalid gist provided");const h=getStateFromGist(u,t);for(const d of l)addHistoryEntry({state:getStateFromGist(d),time:d.time,type:"loader",url:d.url,name:`${d.author} v${d.version}`});return h},loaders={gist:loadGistData},loadDataFromUrl=async()=>{var l,u;const t=new URLSearchParams(window.location.search);let e=defaultState,r,n,a=!1;const s=(l=t.get("code"))!=null?l:void 0,o=(u=t.get("config"))!=null?u:void 0;if(s&&(r=await(await fetch(s)).text(),a=!0),o?n=await(await fetch(o)).text():n=defaultState.mermaid,r){if(!s)throw new Error("Code URL is not defined");e={code:r,mermaid:n,loader:{type:"files",config:{codeURL:s,configURL:o}}}}else for(const[h,d]of t.entries())if(h in loaders)try{e=await loaders[h](d),a=!0;break}catch(g){console.error(g)}a&&updateCodeStore({...e,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:t}=get_store_value(migrationStore),e=Object.entries(migrations);if(t!==e.length-1){console.log(`Current migration version: v${t}. Migrating to v${e.length-1}.`);for(let r=t+1;r>>0,M=0;MZt(f)?(lt=f+1,bt-Zt(f)):(lt=f,bt);return{year:lt,dayOfYear:Ct}}function we(f,b,S){var M,V,lt=_e(f.year(),b,S),lt=Math.floor((f.dayOfYear()-lt-1)/7)+1;return lt<1?M=lt+Te(V=f.year()-1,b,S):lt>Te(f.year(),b,S)?(M=lt-Te(f.year(),b,S),V=f.year()+1):(V=f.year(),M=lt),{week:M,year:V}}function Te(f,V,S){var M=_e(f,V,S),V=_e(f+1,V,S);return(Zt(f)-M+V)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),dt("week","w"),dt("isoWeek","W"),G("week",5),G("isoWeek",5),ct("w",j),ct("ww",j,ae),ct("W",j),ct("WW",j,ae),ge(["w","ww","W","WW"],function(f,b,S,M){b[M.substr(0,1)]=W(f)});function Ee(f,b){return f.slice(b,7).concat(f.slice(0,b))}Q("d",0,"do","day"),Q("dd",0,0,function(f){return this.localeData().weekdaysMin(this,f)}),Q("ddd",0,0,function(f){return this.localeData().weekdaysShort(this,f)}),Q("dddd",0,0,function(f){return this.localeData().weekdays(this,f)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),dt("day","d"),dt("weekday","e"),dt("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),ct("d",j),ct("e",j),ct("E",j),ct("dd",function(f,b){return b.weekdaysMinRegex(f)}),ct("ddd",function(f,b){return b.weekdaysShortRegex(f)}),ct("dddd",function(f,b){return b.weekdaysRegex(f)}),ge(["dd","ddd","dddd"],function(f,b,S,M){M=S._locale.weekdaysParse(f,M,S._strict),M!=null?b.d=M:T(S).invalidWeekday=f}),ge(["d","e","E"],function(f,b,S,M){b[M]=W(f)});var ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Le="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=yt,Yt=yt,rt=yt;function At(){function f(Rt,se){return se.length-Rt.length}for(var b,S,M,V=[],lt=[],bt=[],Ct=[],Bt=0;Bt<7;Bt++)M=m([2e3,1]).day(Bt),b=jt(this.weekdaysMin(M,"")),S=jt(this.weekdaysShort(M,"")),M=jt(this.weekdays(M,"")),V.push(b),lt.push(S),bt.push(M),Ct.push(b),Ct.push(S),Ct.push(M);V.sort(f),lt.sort(f),bt.sort(f),Ct.sort(f),this._weekdaysRegex=new RegExp("^("+Ct.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+bt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+lt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+V.join("|")+")","i")}function $t(){return this.hours()%12||12}function le(f,b){Q(f,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function be(f,b){return b._meridiemParse}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,$t),Q("k",["kk",2],0,function(){return this.hours()||24}),Q("hmm",0,0,function(){return""+$t.apply(this)+J(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+$t.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)}),le("a",!0),le("A",!1),dt("hour","h"),G("hour",13),ct("a",be),ct("A",be),ct("H",j),ct("h",j),ct("k",j),ct("HH",j,ae),ct("hh",j,ae),ct("kk",j,ae),ct("hmm",Ft),ct("hmmss",at),ct("Hmm",Ft),ct("Hmmss",at),zt(["H","HH"],mt),zt(["k","kk"],function(f,b,S){f=W(f),b[mt]=f===24?0:f}),zt(["a","A"],function(f,b,S){S._isPm=S._locale.isPM(f),S._meridiem=f}),zt(["h","hh"],function(f,b,S){b[mt]=W(f),T(S).bigHour=!0}),zt("hmm",function(f,b,S){var M=f.length-2;b[mt]=W(f.substr(0,M)),b[It]=W(f.substr(M)),T(S).bigHour=!0}),zt("hmmss",function(f,b,S){var M=f.length-4,V=f.length-2;b[mt]=W(f.substr(0,M)),b[It]=W(f.substr(M,2)),b[vt]=W(f.substr(V)),T(S).bigHour=!0}),zt("Hmm",function(f,b,S){var M=f.length-2;b[mt]=W(f.substr(0,M)),b[It]=W(f.substr(M))}),zt("Hmmss",function(f,b,S){var M=f.length-4,V=f.length-2;b[mt]=W(f.substr(0,M)),b[It]=W(f.substr(M,2)),b[vt]=W(f.substr(V))}),yt=Y("Hours",!0);var ye,Ce={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:Kt,monthsShort:oe,week:{dow:0,doy:6},weekdays:ke,weekdaysMin:Le,weekdaysShort:xe,meridiemParse:/[ap]\.?m?\.?/i},de={},ve={};function Ke(f){return f&&f.toLowerCase().replace("_","-")}function Qe(f){for(var b,S,M,V,lt=0;lt=b&&function(bt,Ct){for(var Bt=Math.min(bt.length,Ct.length),Rt=0;Rt=b-1)break;b--}lt++}return ye}function Oe(f){var b;if(de[f]===void 0&&!0&&t&&t.exports&&f.match("^[^/\\\\]*$")!=null)try{b=ye._abbr,commonjsRequire("./locale/"+f),Vt(b)}catch{de[f]=null}return de[f]}function Vt(f,b){return f&&((b=u(b)?ne(f):Xt(f,b))?ye=b:typeof console<"u"&&console.warn&&console.warn("Locale "+f+" not found. Did you forget to load it?")),ye._abbr}function Xt(f,b){if(b===null)return delete de[f],null;var S,M=Ce;if(b.abbr=f,de[f]!=null)R("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."),M=de[f]._config;else if(b.parentLocale!=null)if(de[b.parentLocale]!=null)M=de[b.parentLocale]._config;else{if((S=Oe(b.parentLocale))==null)return ve[b.parentLocale]||(ve[b.parentLocale]=[]),ve[b.parentLocale].push({name:f,config:b}),null;M=S._config}return de[f]=new B(k(M,b)),ve[f]&&ve[f].forEach(function(V){Xt(V.name,V.config)}),Vt(f),de[f]}function ne(f){var b;if(!(f=f&&f._locale&&f._locale._abbr?f._locale._abbr:f))return ye;if(!a(f)){if(b=Oe(f))return b;f=[f]}return Qe(f)}function Mt(f){var b=f._a;return b&&T(f).overflow===-2&&(b=b[Ot]<0||11pt(b[Pt],b[Ot])?Tt:b[mt]<0||24Te(lt,Bt,Rt)?T(M)._overflowWeeks=!0:se!=null?T(M)._overflowWeekday=!0:(Qt=ee(lt,bt,Ct,Bt,Rt),M._a[Pt]=Qt.year,M._dayOfYear=Qt.dayOfYear)),f._dayOfYear!=null&&(V=We(f._a[Pt],S[Pt]),(f._dayOfYear>Zt(V)||f._dayOfYear===0)&&(T(f)._overflowDayOfYear=!0),se=Be(V,0,f._dayOfYear),f._a[Ot]=se.getUTCMonth(),f._a[Tt]=se.getUTCDate()),b=0;b<3&&f._a[b]==null;++b)f._a[b]=Ae[b]=S[b];for(;b<7;b++)f._a[b]=Ae[b]=f._a[b]==null?b===2?1:0:f._a[b];f._a[mt]===24&&f._a[It]===0&&f._a[vt]===0&&f._a[Ut]===0&&(f._nextDay=!0,f._a[mt]=0),f._d=(f._useUTC?Be:Ue).apply(null,Ae),lt=f._useUTC?f._d.getUTCDay():f._d.getDay(),f._tzm!=null&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[mt]=24),f._w&&f._w.d!==void 0&&f._w.d!==lt&&(T(f).weekdayMismatch=!0)}}function fr(f){if(f._f===n.ISO_8601)yr(f);else if(f._f===n.RFC_2822)Ve(f);else{f._a=[],T(f).empty=!0;for(var b,S,M,V,lt,bt=""+f._i,Ct=bt.length,Bt=0,Rt=st(f._f,f._locale).match(E)||[],se=Rt.length,Qt=0;Qtf.valueOf():f.valueOf()"}),N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},N.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},N.eraName=function(){for(var f,b=this.localeData().eras(),S=0,M=b.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},N.isLocal=function(){return!!this.isValid()&&!this._isUTC},N.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},N.isUtc=$r,N.isUTC=$r,N.zoneAbbr=function(){return this._isUTC?"UTC":""},N.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},N.dates=H("dates accessor is deprecated. Use date instead.",rr),N.months=H("months accessor is deprecated. Use month instead",te),N.years=H("years accessor is deprecated. Use year instead",xr),N.zone=H("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(f,b){return f!=null?(this.utcOffset(f=typeof f!="string"?-f:f,b),this):-this.utcOffset()}),N.isDSTShifted=H("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var f,b={};return P(b,this),(b=_r(b))._a?(f=(b._isUTC?m:me)(b._a),this._isDSTShifted=this.isValid()&&0-1}function decodeHtmlCharacters(t){return t.replace(htmlEntitiesRegex,function(e,r){return String.fromCharCode(r)})}function sanitizeUrl(t){var e=decodeHtmlCharacters(t||"").replace(ctrlCharactersRegex,"").trim();if(!e)return"about:blank";if(isRelativeUrlWithoutProtocol(e))return e;var r=e.match(urlSchemeRegex);if(!r)return e;var n=r[0];return invalidProtocolRegex.test(n)?"about:blank":e}sanitizeUrl_1=dist.sanitizeUrl=sanitizeUrl;function ascending$1(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function bisector(t){let e=t,r=t,n=t;t.length!==2&&(e=(l,u)=>t(l)-u,r=ascending$1,n=(l,u)=>ascending$1(t(l),u));function a(l,u,h=0,d=l.length){if(h>>1;n(l[g],u)<0?h=g+1:d=g}while(h>>1;n(l[g],u)<=0?h=g+1:d=g}while(hh&&e(l[g-1],u)>-e(l[g],u)?g-1:g}return{left:a,center:o,right:s}}function number$3(t){return t===null?NaN:+t}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right;bisector(number$3).center;const bisect=bisectRight;class InternMap extends Map{constructor(e,r=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(intern_get(this,e))}has(e){return super.has(intern_get(this,e))}set(e,r){return super.set(intern_set(this,e),r)}delete(e){return super.delete(intern_delete(this,e))}}function intern_get({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function intern_set({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function intern_delete({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function keyof(t){return t!==null&&typeof t=="object"?t.valueOf():t}var e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function ticks(t,e,r){var n,a=-1,s,o,l;if(e=+e,t=+t,r=+r,t===e&&r>0)return[t];if((n=e0){let u=Math.round(t/l),h=Math.round(e/l);for(u*le&&--h,o=new Array(s=h-u+1);++ae&&--h,o=new Array(s=h-u+1);++a=0?(s>=e10?10:s>=e5?5:s>=e2?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=e10?10:s>=e5?5:s>=e2?2:1)}function tickStep(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/a;return s>=e10?a*=10:s>=e5?a*=5:s>=e2&&(a*=2),e=n)&&(r=n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(r=a)&&(r=a)}return r}function min$2(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function identity$5(t){return t}var top=1,right=2,bottom=3,left=4,epsilon$2=1e-6;function translateX(t){return"translate("+t+",0)"}function translateY(t){return"translate(0,"+t+")"}function number$2(t){return e=>+t(e)}function center(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function entering(){return!this.__axis}function axis(t,e){var r=[],n=null,a=null,s=6,o=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===top||t===left?-1:1,d=t===left||t===right?"x":"y",g=t===top||t===bottom?translateX:translateY;function p(m){var T=n==null?e.ticks?e.ticks.apply(e,r):e.domain():n,C=a==null?e.tickFormat?e.tickFormat.apply(e,r):identity$5:a,A=Math.max(s,0)+l,L=e.range(),I=+L[0]+u,O=+L[L.length-1]+u,P=(e.bandwidth?center:number$2)(e.copy(),u),z=m.selection?m.selection():m,q=z.selectAll(".domain").data([null]),U=z.selectAll(".tick").data(T,e).order(),H=U.exit(),$=U.enter().append("g").attr("class","tick"),R=U.select("line"),D=U.select("text");q=q.merge(q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),U=U.merge($),R=R.merge($.append("line").attr("stroke","currentColor").attr(d+"2",h*s)),D=D.merge($.append("text").attr("fill","currentColor").attr(d,h*A).attr("dy",t===top?"0em":t===bottom?"0.71em":"0.32em")),m!==z&&(q=q.transition(m),U=U.transition(m),R=R.transition(m),D=D.transition(m),H=H.transition(m).attr("opacity",epsilon$2).attr("transform",function(k){return isFinite(k=P(k))?g(k+u):this.getAttribute("transform")}),$.attr("opacity",epsilon$2).attr("transform",function(k){var B=this.parentNode.__axis;return g((B&&isFinite(B=B(k))?B:P(k))+u)})),H.remove(),q.attr("d",t===left||t===right?o?"M"+h*o+","+I+"H"+u+"V"+O+"H"+h*o:"M"+u+","+I+"V"+O:o?"M"+I+","+h*o+"V"+u+"H"+O+"V"+h*o:"M"+I+","+u+"H"+O),U.attr("opacity",1).attr("transform",function(k){return g(P(k)+u)}),R.attr(d+"2",h*s),D.attr(d,h*A).text(C),z.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===right?"start":t===left?"end":"middle"),z.each(function(){this.__axis=P})}return p.scale=function(m){return arguments.length?(e=m,p):e},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(a=m,p):a},p.tickSize=function(m){return arguments.length?(s=o=+m,p):s},p.tickSizeInner=function(m){return arguments.length?(s=+m,p):s},p.tickSizeOuter=function(m){return arguments.length?(o=+m,p):o},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function axisTop(t){return axis(top,t)}function axisBottom(t){return axis(bottom,t)}var noop$2={value:()=>{}};function dispatch(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(t,e){var r=this._,n=parseTypenames$1(t+"",r),a,s=-1,o=n.length;if(arguments.length<2){for(;++s0)for(var r=new Array(a),n=0,a,s;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),namespaces.hasOwnProperty(e)?{space:namespaces[e],local:t}:t}function creatorInherit(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===xhtml&&e.documentElement.namespaceURI===xhtml?e.createElement(t):e.createElementNS(r,t)}}function creatorFixed(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function creator(t){var e=namespace(t);return(e.local?creatorFixed:creatorInherit)(e)}function none(){}function selector(t){return t==null?none:function(){return this.querySelector(t)}}function selection_select(t){typeof t!="function"&&(t=selector(t));for(var e=this._groups,r=e.length,n=new Array(r),a=0;a=O&&(O=I+1);!(z=A[O])&&++O=0;)(o=n[a])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function selection_sort(t){t||(t=ascending);function e(g,p){return g&&p?t(g.__data__,p.__data__):!g-!p}for(var r=this._groups,n=r.length,a=new Array(n),s=0;se?1:t>=e?0:NaN}function selection_call(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?styleRemove$1:typeof e=="function"?styleFunction$1:styleConstant$1)(t,e,r==null?"":r)):styleValue(this.node(),t)}function styleValue(t,e){return t.style.getPropertyValue(e)||defaultView(t).getComputedStyle(t,null).getPropertyValue(e)}function propertyRemove(t){return function(){delete this[t]}}function propertyConstant(t,e){return function(){this[t]=e}}function propertyFunction(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function selection_property(t,e){return arguments.length>1?this.each((e==null?propertyRemove:typeof e=="function"?propertyFunction:propertyConstant)(t,e)):this.node()[t]}function classArray(t){return t.trim().split(/^|\s+/)}function classList(t){return t.classList||new ClassList(t)}function ClassList(t){this._node=t,this._names=classArray(t.getAttribute("class")||"")}ClassList.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function classedAdd(t,e){for(var r=classList(t),n=-1,a=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function onRemove(t){return function(){var e=this.__on;if(!!e){for(var r=0,n=-1,a=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?rgba$2(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?rgba$2(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=reRgbInteger.exec(t))?new Rgb(e[1],e[2],e[3],1):(e=reRgbPercent.exec(t))?new Rgb(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=reRgbaInteger.exec(t))?rgba$2(e[1],e[2],e[3],e[4]):(e=reRgbaPercent.exec(t))?rgba$2(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=reHslPercent.exec(t))?hsla(e[1],e[2]/100,e[3]/100,1):(e=reHslaPercent.exec(t))?hsla(e[1],e[2]/100,e[3]/100,e[4]):named.hasOwnProperty(t)?rgbn(named[t]):t==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(t){return new Rgb(t>>16&255,t>>8&255,t&255,1)}function rgba$2(t,e,r,n){return n<=0&&(t=e=r=NaN),new Rgb(t,e,r,n)}function rgbConvert(t){return t instanceof Color$2||(t=color(t)),t?(t=t.rgb(),new Rgb(t.r,t.g,t.b,t.opacity)):new Rgb}function rgb(t,e,r,n){return arguments.length===1?rgbConvert(t):new Rgb(t,e,r,n==null?1:n)}function Rgb(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}define(Rgb,rgb,extend$1(Color$2,{brighter:function(t){return t=t==null?brighter:Math.pow(brighter,t),new Rgb(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?darker:Math.pow(darker,t),new Rgb(this.r*t,this.g*t,this.b*t,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,formatHex:rgb_formatHex,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return"#"+hex(this.r)+hex(this.g)+hex(this.b)}function rgb_formatRgb(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===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))+(t===1?")":", "+t+")")}function hex(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function hsla(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Hsl(t,e,r,n)}function hslConvert(t){if(t instanceof Hsl)return new Hsl(t.h,t.s,t.l,t.opacity);if(t instanceof Color$2||(t=color(t)),!t)return new Hsl;if(t instanceof Hsl)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),s=Math.max(e,r,n),o=NaN,l=s-a,u=(s+a)/2;return l?(e===s?o=(r-n)/l+(r0&&u<1?0:o,new Hsl(o,l,u,t.opacity)}function hsl(t,e,r,n){return arguments.length===1?hslConvert(t):new Hsl(t,e,r,n==null?1:n)}function Hsl(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}define(Hsl,hsl,extend$1(Color$2,{brighter:function(t){return t=t==null?brighter:Math.pow(brighter,t),new Hsl(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?darker:Math.pow(darker,t),new Hsl(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new Rgb(hsl2rgb(t>=240?t-240:t+120,a,n),hsl2rgb(t,a,n),hsl2rgb(t<120?t+240:t-120,a,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 t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function hsl2rgb(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const radians=Math.PI/180,degrees$1=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(t){if(t instanceof Lab)return new Lab(t.l,t.a,t.b,t.opacity);if(t instanceof Hcl)return hcl2lab(t);t instanceof Rgb||(t=rgbConvert(t));var e=rgb2lrgb(t.r),r=rgb2lrgb(t.g),n=rgb2lrgb(t.b),a=xyz2lab((.2225045*e+.7168786*r+.0606169*n)/Yn),s,o;return e===r&&r===n?s=o=a:(s=xyz2lab((.4360747*e+.3850649*r+.1430804*n)/Xn),o=xyz2lab((.0139322*e+.0971045*r+.7141733*n)/Zn)),new Lab(116*a-16,500*(s-a),200*(a-o),t.opacity)}function lab(t,e,r,n){return arguments.length===1?labConvert(t):new Lab(t,e,r,n==null?1:n)}function Lab(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}define(Lab,lab,extend$1(Color$2,{brighter:function(t){return new Lab(this.l+K*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Lab(this.l-K*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=Xn*lab2xyz(e),t=Yn*lab2xyz(t),r=Zn*lab2xyz(r),new Rgb(lrgb2rgb(3.1338561*e-1.6168667*t-.4906146*r),lrgb2rgb(-.9787684*e+1.9161415*t+.033454*r),lrgb2rgb(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function xyz2lab(t){return t>t3?Math.pow(t,1/3):t/t2+t0$1}function lab2xyz(t){return t>t1$1?t*t*t:t2*(t-t0$1)}function lrgb2rgb(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rgb2lrgb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function hclConvert(t){if(t instanceof Hcl)return new Hcl(t.h,t.c,t.l,t.opacity);if(t instanceof Lab||(t=labConvert(t)),t.a===0&&t.b===0)return new Hcl(NaN,0()=>t;function linear$1(t,e){return function(r){return t+r*e}}function exponential(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function hue(t,e){var r=e-t;return r?linear$1(t,r>180||r<-180?r-360*Math.round(r/360):r):constant$2(isNaN(t)?e:t)}function gamma(t){return(t=+t)==1?nogamma:function(e,r){return r-e?exponential(e,r,t):constant$2(isNaN(e)?r:e)}}function nogamma(t,e){var r=e-t;return r?linear$1(t,r):constant$2(isNaN(t)?e:t)}const interpolateRgb=function t(e){var r=gamma(e);function n(a,s){var o=r((a=rgb(a)).r,(s=rgb(s)).r),l=r(a.g,s.g),u=r(a.b,s.b),h=nogamma(a.opacity,s.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=u(d),a.opacity=h(d),a+""}}return n.gamma=t,n}(1);function numberArray(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(s){for(a=0;ar&&(s=e.slice(r,s),l[o]?l[o]+=s:l[++o]=s),(n=n[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,u.push({i:o,x:interpolateNumber(n,a)})),r=reB.lastIndex;return r180?d+=360:d-h>180&&(h+=360),p.push({i:g.push(a(g)+"rotate(",null,n)-2,x:interpolateNumber(h,d)})):d&&g.push(a(g)+"rotate("+d+n)}function l(h,d,g,p){h!==d?p.push({i:g.push(a(g)+"skewX(",null,n)-2,x:interpolateNumber(h,d)}):d&&g.push(a(g)+"skewX("+d+n)}function u(h,d,g,p,m,T){if(h!==g||d!==p){var C=m.push(a(m)+"scale(",null,",",null,")");T.push({i:C-4,x:interpolateNumber(h,g)},{i:C-2,x:interpolateNumber(d,p)})}else(g!==1||p!==1)&&m.push(a(m)+"scale("+g+","+p+")")}return function(h,d){var g=[],p=[];return h=t(h),d=t(d),s(h.translateX,h.translateY,d.translateX,d.translateY,g,p),o(h.rotate,d.rotate,g,p),l(h.skewX,d.skewX,g,p),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,g,p),h=d=null,function(m){for(var T=-1,C=p.length,A;++T=0&&t._call.call(void 0,e),t=t._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var t=clock.now(),e=t-clockLast;e>pokeDelay&&(clockSkew-=e,clockLast=t)}function nap(){for(var t,e=taskHead,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:taskHead=r);taskTail=t,sleep(n)}function sleep(t){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var e=t-clockNow;e>24?(t<1/0&&(timeout$1=setTimeout(wake,t-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(t,e,r){var n=new Timer;return e=e==null?0:+e,n.restart(a=>{n.stop(),t(a+e)},e,r),n}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(t,e,r,n,a,s){var o=t.__transition;if(!o)t.__transition={};else if(r in o)return;create$1(t,r,{name:e,index:n,group:a,on:emptyOn,tween:emptyTween,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:CREATED})}function init$2(t,e){var r=get$1(t,e);if(r.state>CREATED)throw new Error("too late; already scheduled");return r}function set(t,e){var r=get$1(t,e);if(r.state>STARTED)throw new Error("too late; already running");return r}function get$1(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function create$1(t,e,r){var n=t.__transition,a;n[e]=r,r.timer=timer(s,0,r.time);function s(h){r.state=SCHEDULED,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}function o(h){var d,g,p,m;if(r.state!==SCHEDULED)return u();for(d in n)if(m=n[d],m.name===r.name){if(m.state===STARTED)return timeout(o);m.state===RUNNING?(m.state=ENDED,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete n[d]):+dSTARTING&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function onFunction(t,e,r){var n,a,s=start$1(e)?init$2:set;return function(){var o=s(this,t),l=o.on;l!==n&&(a=(n=l).copy()).on(e,r),o.on=a}}function transition_on(t,e){var r=this._id;return arguments.length<2?get$1(this.node(),r).on.on(t):this.each(onFunction(r,t,e))}function removeFunction(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(t){var e=this._name,r=this._id;typeof t!="function"&&(t=selector(t));for(var n=this._groups,a=n.length,s=new Array(a),o=0;oepsilon$1)if(!(Math.abs(d*l-u*h)>epsilon$1)||!a)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var p=r-s,m=n-o,T=l*l+u*u,C=p*p+m*m,A=Math.sqrt(T),L=Math.sqrt(g),I=a*Math.tan((pi$1-Math.acos((T+g-C)/(2*A*L)))/2),O=I/L,P=I/A;Math.abs(O-1)>epsilon$1&&(this._+="L"+(t+O*h)+","+(e+O*d)),this._+="A"+a+","+a+",0,0,"+ +(d*p>h*m)+","+(this._x1=t+P*l)+","+(this._y1=e+P*u)}},arc:function(t,e,r,n,a,s){t=+t,e=+e,r=+r,s=!!s;var o=r*Math.cos(n),l=r*Math.sin(n),u=t+o,h=e+l,d=1^s,g=s?n-a:a-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+u+","+h:(Math.abs(this._x1-u)>epsilon$1||Math.abs(this._y1-h)>epsilon$1)&&(this._+="L"+u+","+h),r&&(g<0&&(g=g%tau$1+tau$1),g>tauEpsilon?this._+="A"+r+","+r+",0,1,"+d+","+(t-o)+","+(e-l)+"A"+r+","+r+",0,1,"+d+","+(this._x1=u)+","+(this._y1=h):g>epsilon$1&&(this._+="A"+r+","+r+",0,"+ +(g>=pi$1)+","+d+","+(this._x1=t+r*Math.cos(a))+","+(this._y1=e+r*Math.sin(a))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function responseText(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function text$1(t,e){return fetch(t,e).then(responseText)}function parser$c(t){return(e,r)=>text$1(e,r).then(n=>new DOMParser().parseFromString(n,t))}var svg$2=parser$c("image/svg+xml");function formatDecimal(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function formatDecimalParts(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function exponent(t){return t=formatDecimalParts(Math.abs(t)),t?t[1]:NaN}function formatGroup(t,e){return function(r,n){for(var a=r.length,s=[],o=0,l=t[0],u=0;a>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),s.push(r.substring(a-=l,a+l)),!((u+=l+1)>n));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function formatNumerals(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(t){if(!(e=re.exec(t)))throw new Error("invalid format: "+t);var e;return new FormatSpecifier({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}FormatSpecifier.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(t){t:for(var e=t.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var prefixExponent;function formatPrefixAuto(t,e){var r=formatDecimalParts(t,e);if(!r)return t+"";var n=r[0],a=r[1],s=a-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+formatDecimalParts(t,Math.max(0,e+s-1))[0]}function formatRounded(t,e){var r=formatDecimalParts(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const formatTypes={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:formatDecimal,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>formatRounded(t*100,e),r:formatRounded,s:formatPrefixAuto,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function identity$3(t){return t}var map$2=Array.prototype.map,prefixes=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(t){var e=t.grouping===void 0||t.thousands===void 0?identity$3:formatGroup(map$2.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?identity$3:formatNumerals(map$2.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function h(g){g=formatSpecifier(g);var p=g.fill,m=g.align,T=g.sign,C=g.symbol,A=g.zero,L=g.width,I=g.comma,O=g.precision,P=g.trim,z=g.type;z==="n"?(I=!0,z="g"):formatTypes[z]||(O===void 0&&(O=12),P=!0,z="g"),(A||p==="0"&&m==="=")&&(A=!0,p="0",m="=");var q=C==="$"?r:C==="#"&&/[boxX]/.test(z)?"0"+z.toLowerCase():"",U=C==="$"?n:/[%p]/.test(z)?o:"",H=formatTypes[z],$=/[defgprs%]/.test(z);O=O===void 0?6:/[gprs]/.test(z)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function R(D){var k=q,B=U,v,J,E;if(z==="c")B=H(D)+B,D="";else{D=+D;var ft=D<0||1/D<0;if(D=isNaN(D)?u:H(Math.abs(D),O),P&&(D=formatTrim(D)),ft&&+D==0&&T!=="+"&&(ft=!1),k=(ft?T==="("?T:l:T==="-"||T==="("?"":T)+k,B=(z==="s"?prefixes[8+prefixExponent/3]:"")+B+(ft&&T==="("?")":""),$){for(v=-1,J=D.length;++vE||E>57){B=(E===46?a+D.slice(v+1):D.slice(v))+B,D=D.slice(0,v);break}}}I&&!A&&(D=e(D,1/0));var Lt=k.length+D.length+B.length,wt=Lt>1)+k+D+B+wt.slice(Lt);break;default:D=wt+k+D+B;break}return s(D)}return R.toString=function(){return g+""},R}function d(g,p){var m=h((g=formatSpecifier(g),g.type="f",g)),T=Math.max(-8,Math.min(8,Math.floor(exponent(p)/3)))*3,C=Math.pow(10,-T),A=prefixes[8+T/3];return function(L){return m(C*L)+A}}return{format:h,formatPrefix:d}}var locale$1,format$1,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(t){return locale$1=formatLocale$1(t),format$1=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(t){return Math.max(0,-exponent(Math.abs(t)))}function precisionPrefix(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(e)/3)))*3-exponent(Math.abs(t)))}function precisionRound(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,exponent(e)-exponent(t))+1}function initRange(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const implicit=Symbol("implicit");function ordinal(){var t=new InternMap,e=[],r=[],n=implicit;function a(s){let o=t.get(s);if(o===void 0){if(n!==implicit)return n;t.set(s,o=e.push(s)-1)}return r[o%r.length]}return a.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new InternMap;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return a},a.range=function(s){return arguments.length?(r=Array.from(s),a):r.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return ordinal(e,r).unknown(n)},initRange.apply(a,arguments),a}function constants(t){return function(){return t}}function number$1(t){return+t}var unit$1=[0,1];function identity$2(t){return t}function normalize(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:constants(isNaN(e)?NaN:.5)}function clamper(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function bimap(t,e,r){var n=t[0],a=t[1],s=e[0],o=e[1];return a2?polymap:bimap,u=h=null,g}function g(p){return p==null||isNaN(p=+p)?s:(u||(u=l(t.map(n),e,r)))(n(o(p)))}return g.invert=function(p){return o(a((h||(h=l(e,t.map(n),interpolateNumber)))(p)))},g.domain=function(p){return arguments.length?(t=Array.from(p,number$1),d()):t.slice()},g.range=function(p){return arguments.length?(e=Array.from(p),d()):e.slice()},g.rangeRound=function(p){return e=Array.from(p),r=interpolateRound,d()},g.clamp=function(p){return arguments.length?(o=p?!0:identity$2,d()):o!==identity$2},g.interpolate=function(p){return arguments.length?(r=p,d()):r},g.unknown=function(p){return arguments.length?(s=p,g):s},function(p,m){return n=p,a=m,d()}}function continuous(){return transformer()(identity$2,identity$2)}function tickFormat(t,e,r,n){var a=tickStep(t,e,r),s;switch(n=formatSpecifier(n==null?",f":n),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(s=precisionPrefix(a,o))&&(n.precision=s),formatPrefix(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=precisionRound(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=precisionFixed(a))&&(n.precision=s-(n.type==="%")*2);break}}return format$1(n)}function linearish(t){var e=t.domain;return t.ticks=function(r){var n=e();return ticks(n[0],n[n.length-1],r==null?10:r)},t.tickFormat=function(r,n){var a=e();return tickFormat(a[0],a[a.length-1],r==null?10:r,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,s=n.length-1,o=n[a],l=n[s],u,h,d=10;for(l0;){if(h=tickIncrement(o,l,r),h===u)return n[a]=o,n[s]=l,e(n);if(h>0)o=Math.floor(o/h)*h,l=Math.ceil(l/h)*h;else if(h<0)o=Math.ceil(o*h)/h,l=Math.floor(l*h)/h;else break;u=h}return t},t}function linear(){var t=continuous();return t.copy=function(){return copy$1(t,linear())},initRange.apply(t,arguments),linearish(t)}function nice(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],s=t[n],o;return s0))return u;do u.push(h=new Date(+s)),e(s,l),t(s);while(h=o)for(;t(o),!s(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););})},r&&(a.count=function(s,o){return t0.setTime(+s),t1.setTime(+o),t(t0),t(t1),Math.floor(r(t0,t1))},a.every=function(s){return s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(n?function(o){return n(o)%s===0}:function(o){return a.count(0,o)%s===0}):a}),a}var millisecond=newInterval(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});millisecond.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?newInterval(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):millisecond};const millisecond$1=millisecond;millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365;var second=newInterval(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*durationSecond)},function(t,e){return(e-t)/durationSecond},function(t){return t.getUTCSeconds()});const utcSecond=second;second.range;var minute=newInterval(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*durationSecond)},function(t,e){t.setTime(+t+e*durationMinute)},function(t,e){return(e-t)/durationMinute},function(t){return t.getMinutes()});const timeMinute=minute;minute.range;var hour=newInterval(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*durationSecond-t.getMinutes()*durationMinute)},function(t,e){t.setTime(+t+e*durationHour)},function(t,e){return(e-t)/durationHour},function(t){return t.getHours()});const timeHour=hour;hour.range;var day=newInterval(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute)/durationDay,t=>t.getDate()-1);const timeDay=day;day.range;function weekday(t){return newInterval(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r*7)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek})}var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range;monday.range;tuesday.range;wednesday.range;thursday.range;friday.range;saturday.range;var month=newInterval(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});const timeMonth=month;month.range;var year=newInterval(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});year.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:newInterval(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)})};const timeYear=year;year.range;var utcMinute=newInterval(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*durationMinute)},function(t,e){return(e-t)/durationMinute},function(t){return t.getUTCMinutes()});const utcMinute$1=utcMinute;utcMinute.range;var utcHour=newInterval(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*durationHour)},function(t,e){return(e-t)/durationHour},function(t){return t.getUTCHours()});const utcHour$1=utcHour;utcHour.range;var utcDay=newInterval(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/durationDay},function(t){return t.getUTCDate()-1});const utcDay$1=utcDay;utcDay.range;function utcWeekday(t){return newInterval(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r*7)},function(e,r){return(r-e)/durationWeek})}var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;var utcMonth=newInterval(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});const utcMonth$1=utcMonth;utcMonth.range;var utcYear=newInterval(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});utcYear.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:newInterval(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})};const utcYear$1=utcYear;utcYear.range;function ticker(t,e,r,n,a,s){const o=[[utcSecond,1,durationSecond],[utcSecond,5,5*durationSecond],[utcSecond,15,15*durationSecond],[utcSecond,30,30*durationSecond],[s,1,durationMinute],[s,5,5*durationMinute],[s,15,15*durationMinute],[s,30,30*durationMinute],[a,1,durationHour],[a,3,3*durationHour],[a,6,6*durationHour],[a,12,12*durationHour],[n,1,durationDay],[n,2,2*durationDay],[r,1,durationWeek],[e,1,durationMonth],[e,3,3*durationMonth],[t,1,durationYear]];function l(h,d,g){const p=dA).right(o,p);if(m===o.length)return t.every(tickStep(h/durationYear,d/durationYear,g));if(m===0)return millisecond$1.every(Math.max(tickStep(h,d,g),1));const[T,C]=o[p/o[m-1][2]53)return null;"w"in Y||(Y.w=1),"Z"in Y?(nt=utcDate(newDate(Y.y,0,1)),N=nt.getUTCDay(),nt=N>4||N===0?utcMonday.ceil(nt):utcMonday(nt),nt=utcDay$1.offset(nt,(Y.V-1)*7),Y.y=nt.getUTCFullYear(),Y.m=nt.getUTCMonth(),Y.d=nt.getUTCDate()+(Y.w+6)%7):(nt=localDate(newDate(Y.y,0,1)),N=nt.getDay(),nt=N>4||N===0?monday.ceil(nt):monday(nt),nt=timeDay.offset(nt,(Y.V-1)*7),Y.y=nt.getFullYear(),Y.m=nt.getMonth(),Y.d=nt.getDate()+(Y.w+6)%7)}else("W"in Y||"U"in Y)&&("w"in Y||(Y.w="u"in Y?Y.u%7:"W"in Y?1:0),N="Z"in Y?utcDate(newDate(Y.y,0,1)).getUTCDay():localDate(newDate(Y.y,0,1)).getDay(),Y.m=0,Y.d="W"in Y?(Y.w+6)%7+Y.W*7-(N+5)%7:Y.w+Y.U*7-(N+6)%7);return"Z"in Y?(Y.H+=Y.Z/100|0,Y.M+=Y.Z%100,utcDate(Y)):localDate(Y)}}function H(Z,tt,W,Y){for(var F=0,nt=tt.length,N=W.length,gt,j;F=N)return-1;if(gt=tt.charCodeAt(F++),gt===37){if(gt=tt.charAt(F++),j=z[gt in pads?tt.charAt(F++):gt],!j||(Y=j(Z,W,Y))<0)return-1}else if(gt!=W.charCodeAt(Y++))return-1}return Y}function $(Z,tt,W){var Y=h.exec(tt.slice(W));return Y?(Z.p=d.get(Y[0].toLowerCase()),W+Y[0].length):-1}function R(Z,tt,W){var Y=m.exec(tt.slice(W));return Y?(Z.w=T.get(Y[0].toLowerCase()),W+Y[0].length):-1}function D(Z,tt,W){var Y=g.exec(tt.slice(W));return Y?(Z.w=p.get(Y[0].toLowerCase()),W+Y[0].length):-1}function k(Z,tt,W){var Y=L.exec(tt.slice(W));return Y?(Z.m=I.get(Y[0].toLowerCase()),W+Y[0].length):-1}function B(Z,tt,W){var Y=C.exec(tt.slice(W));return Y?(Z.m=A.get(Y[0].toLowerCase()),W+Y[0].length):-1}function v(Z,tt,W){return H(Z,e,tt,W)}function J(Z,tt,W){return H(Z,r,tt,W)}function E(Z,tt,W){return H(Z,n,tt,W)}function ft(Z){return o[Z.getDay()]}function Lt(Z){return s[Z.getDay()]}function wt(Z){return u[Z.getMonth()]}function Q(Z){return l[Z.getMonth()]}function ut(Z){return a[+(Z.getHours()>=12)]}function st(Z){return 1+~~(Z.getMonth()/3)}function ot(Z){return o[Z.getUTCDay()]}function dt(Z){return s[Z.getUTCDay()]}function xt(Z){return u[Z.getUTCMonth()]}function et(Z){return l[Z.getUTCMonth()]}function Nt(Z){return a[+(Z.getUTCHours()>=12)]}function G(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var tt=q(Z+="",O);return tt.toString=function(){return Z},tt},parse:function(Z){var tt=U(Z+="",!1);return tt.toString=function(){return Z},tt},utcFormat:function(Z){var tt=q(Z+="",P);return tt.toString=function(){return Z},tt},utcParse:function(Z){var tt=U(Z+="",!0);return tt.toString=function(){return Z},tt}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",s=a.length;return n+(s[e.toLowerCase(),r]))}function parseWeekdayNumberSunday(t,e,r){var n=numberRe.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday(t,e,r){var n=numberRe.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function parseFullYear(t,e,r){var n=numberRe.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function parseYear(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter(t,e,r){var n=numberRe.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function parseMonthNumber(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function parseDayOfYear(t,e,r){var n=numberRe.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function parseHour24(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function parseMinutes(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function parseSeconds(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function parseMilliseconds(t,e,r){var n=numberRe.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function parseMicroseconds(t,e,r){var n=numberRe.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent(t,e,r){var n=percentRe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp(t,e,r){var n=numberRe.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds(t,e,r){var n=numberRe.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function formatDayOfMonth(t,e){return pad(t.getDate(),e,2)}function formatHour24(t,e){return pad(t.getHours(),e,2)}function formatHour12(t,e){return pad(t.getHours()%12||12,e,2)}function formatDayOfYear(t,e){return pad(1+timeDay.count(timeYear(t),t),e,3)}function formatMilliseconds(t,e){return pad(t.getMilliseconds(),e,3)}function formatMicroseconds(t,e){return formatMilliseconds(t,e)+"000"}function formatMonthNumber(t,e){return pad(t.getMonth()+1,e,2)}function formatMinutes(t,e){return pad(t.getMinutes(),e,2)}function formatSeconds(t,e){return pad(t.getSeconds(),e,2)}function formatWeekdayNumberMonday(t){var e=t.getDay();return e===0?7:e}function formatWeekNumberSunday(t,e){return pad(sunday.count(timeYear(t)-1,t),e,2)}function dISO(t){var e=t.getDay();return e>=4||e===0?thursday(t):thursday.ceil(t)}function formatWeekNumberISO(t,e){return t=dISO(t),pad(thursday.count(timeYear(t),t)+(timeYear(t).getDay()===4),e,2)}function formatWeekdayNumberSunday(t){return t.getDay()}function formatWeekNumberMonday(t,e){return pad(monday.count(timeYear(t)-1,t),e,2)}function formatYear(t,e){return pad(t.getFullYear()%100,e,2)}function formatYearISO(t,e){return t=dISO(t),pad(t.getFullYear()%100,e,2)}function formatFullYear(t,e){return pad(t.getFullYear()%1e4,e,4)}function formatFullYearISO(t,e){var r=t.getDay();return t=r>=4||r===0?thursday(t):thursday.ceil(t),pad(t.getFullYear()%1e4,e,4)}function formatZone(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pad(e/60|0,"0",2)+pad(e%60,"0",2)}function formatUTCDayOfMonth(t,e){return pad(t.getUTCDate(),e,2)}function formatUTCHour24(t,e){return pad(t.getUTCHours(),e,2)}function formatUTCHour12(t,e){return pad(t.getUTCHours()%12||12,e,2)}function formatUTCDayOfYear(t,e){return pad(1+utcDay$1.count(utcYear$1(t),t),e,3)}function formatUTCMilliseconds(t,e){return pad(t.getUTCMilliseconds(),e,3)}function formatUTCMicroseconds(t,e){return formatUTCMilliseconds(t,e)+"000"}function formatUTCMonthNumber(t,e){return pad(t.getUTCMonth()+1,e,2)}function formatUTCMinutes(t,e){return pad(t.getUTCMinutes(),e,2)}function formatUTCSeconds(t,e){return pad(t.getUTCSeconds(),e,2)}function formatUTCWeekdayNumberMonday(t){var e=t.getUTCDay();return e===0?7:e}function formatUTCWeekNumberSunday(t,e){return pad(utcSunday.count(utcYear$1(t)-1,t),e,2)}function UTCdISO(t){var e=t.getUTCDay();return e>=4||e===0?utcThursday(t):utcThursday.ceil(t)}function formatUTCWeekNumberISO(t,e){return t=UTCdISO(t),pad(utcThursday.count(utcYear$1(t),t)+(utcYear$1(t).getUTCDay()===4),e,2)}function formatUTCWeekdayNumberSunday(t){return t.getUTCDay()}function formatUTCWeekNumberMonday(t,e){return pad(utcMonday.count(utcYear$1(t)-1,t),e,2)}function formatUTCYear(t,e){return pad(t.getUTCFullYear()%100,e,2)}function formatUTCYearISO(t,e){return t=UTCdISO(t),pad(t.getUTCFullYear()%100,e,2)}function formatUTCFullYear(t,e){return pad(t.getUTCFullYear()%1e4,e,4)}function formatUTCFullYearISO(t,e){var r=t.getUTCDay();return t=r>=4||r===0?utcThursday(t):utcThursday.ceil(t),pad(t.getUTCFullYear()%1e4,e,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(t){return+t}function formatUnixTimestampSeconds(t){return Math.floor(+t/1e3)}var locale,timeFormat;defaultLocale({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(t){return locale=formatLocale(t),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse,locale}function date(t){return new Date(t)}function number(t){return t instanceof Date?+t:+new Date(+t)}function calendar(t,e,r,n,a,s,o,l,u,h){var d=continuous(),g=d.invert,p=d.domain,m=h(".%L"),T=h(":%S"),C=h("%I:%M"),A=h("%I %p"),L=h("%a %d"),I=h("%b %d"),O=h("%B"),P=h("%Y");function z(q){return(u(q)1?0:t<-1?pi:Math.acos(t)}function asin(t){return t>=1?halfPi:t<=-1?-halfPi:Math.asin(t)}function arcInnerRadius(t){return t.innerRadius}function arcOuterRadius(t){return t.outerRadius}function arcStartAngle(t){return t.startAngle}function arcEndAngle(t){return t.endAngle}function arcPadAngle(t){return t&&t.padAngle}function intersect$1(t,e,r,n,a,s,o,l){var u=r-t,h=n-e,d=o-a,g=l-s,p=g*u-d*h;if(!(p*pv*v+J*J&&(H=R,$=D),{cx:H,cy:$,x01:-d,y01:-g,x11:H*(a/z-1),y11:$*(a/z-1)}}function arc(){var t=arcInnerRadius,e=arcOuterRadius,r=constant$1(0),n=null,a=arcStartAngle,s=arcEndAngle,o=arcPadAngle,l=null;function u(){var h,d,g=+t.apply(this,arguments),p=+e.apply(this,arguments),m=a.apply(this,arguments)-halfPi,T=s.apply(this,arguments)-halfPi,C=abs$1(T-m),A=T>m;if(l||(l=h=path()),pepsilon))l.moveTo(0,0);else if(C>tau-epsilon)l.moveTo(p*cos(m),p*sin(m)),l.arc(0,0,p,m,T,!A),g>epsilon&&(l.moveTo(g*cos(T),g*sin(T)),l.arc(0,0,g,T,m,A));else{var L=m,I=T,O=m,P=T,z=C,q=C,U=o.apply(this,arguments)/2,H=U>epsilon&&(n?+n.apply(this,arguments):sqrt(g*g+p*p)),$=min$1(abs$1(p-g)/2,+r.apply(this,arguments)),R=$,D=$,k,B;if(H>epsilon){var v=asin(H/g*sin(U)),J=asin(H/p*sin(U));(z-=v*2)>epsilon?(v*=A?1:-1,O+=v,P-=v):(z=0,O=P=(m+T)/2),(q-=J*2)>epsilon?(J*=A?1:-1,L+=J,I-=J):(q=0,L=I=(m+T)/2)}var E=p*cos(L),ft=p*sin(L),Lt=g*cos(P),wt=g*sin(P);if($>epsilon){var Q=p*cos(I),ut=p*sin(I),st=g*cos(O),ot=g*sin(O),dt;if(Cepsilon?D>epsilon?(k=cornerTangents(st,ot,E,ft,p,D,A),B=cornerTangents(Q,ut,Lt,wt,p,D,A),l.moveTo(k.cx+k.x01,k.cy+k.y01),D<$?l.arc(k.cx,k.cy,D,atan2(k.y01,k.x01),atan2(B.y01,B.x01),!A):(l.arc(k.cx,k.cy,D,atan2(k.y01,k.x01),atan2(k.y11,k.x11),!A),l.arc(0,0,p,atan2(k.cy+k.y11,k.cx+k.x11),atan2(B.cy+B.y11,B.cx+B.x11),!A),l.arc(B.cx,B.cy,D,atan2(B.y11,B.x11),atan2(B.y01,B.x01),!A))):(l.moveTo(E,ft),l.arc(0,0,p,L,I,!A)):l.moveTo(E,ft),!(g>epsilon)||!(z>epsilon)?l.lineTo(Lt,wt):R>epsilon?(k=cornerTangents(Lt,wt,Q,ut,g,-R,A),B=cornerTangents(E,ft,st,ot,g,-R,A),l.lineTo(k.cx+k.x01,k.cy+k.y01),R<$?l.arc(k.cx,k.cy,R,atan2(k.y01,k.x01),atan2(B.y01,B.x01),!A):(l.arc(k.cx,k.cy,R,atan2(k.y01,k.x01),atan2(k.y11,k.x11),!A),l.arc(0,0,g,atan2(k.cy+k.y11,k.cx+k.x11),atan2(B.cy+B.y11,B.cx+B.x11),A),l.arc(B.cx,B.cy,R,atan2(B.y11,B.x11),atan2(B.y01,B.x01),!A))):l.arc(0,0,g,P,O,A)}if(l.closePath(),h)return l=null,h+""||null}return u.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-pi/2;return[cos(d)*h,sin(d)*h]},u.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:constant$1(+h),u):t},u.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:constant$1(+h),u):e},u.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:constant$1(+h),u):r},u.padRadius=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:constant$1(+h),u):n},u.startAngle=function(h){return arguments.length?(a=typeof h=="function"?h:constant$1(+h),u):a},u.endAngle=function(h){return arguments.length?(s=typeof h=="function"?h:constant$1(+h),u):s},u.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:constant$1(+h),u):o},u.context=function(h){return arguments.length?(l=h==null?null:h,u):l},u}function array(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Linear(t){this._context=t}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function curveLinear(t){return new Linear(t)}function x(t){return t[0]}function y(t){return t[1]}function line$1(t,e){var r=constant$1(!0),n=null,a=curveLinear,s=null;t=typeof t=="function"?t:t===void 0?x:constant$1(t),e=typeof e=="function"?e:e===void 0?y:constant$1(e);function o(l){var u,h=(l=array(l)).length,d,g=!1,p;for(n==null&&(s=a(p=path())),u=0;u<=h;++u)!(ut?1:e>=t?0:NaN}function identity$1(t){return t}function pie(){var t=identity$1,e=descending,r=null,n=constant$1(0),a=constant$1(tau),s=constant$1(0);function o(l){var u,h=(l=array(l)).length,d,g,p=0,m=new Array(h),T=new Array(h),C=+n.apply(this,arguments),A=Math.min(tau,Math.max(-tau,a.apply(this,arguments)-C)),L,I=Math.min(Math.abs(A)/h,s.apply(this,arguments)),O=I*(A<0?-1:1),P;for(u=0;u0&&(p+=P);for(e!=null?m.sort(function(z,q){return e(T[z],T[q])}):r!=null&&m.sort(function(z,q){return r(l[z],l[q])}),u=0,g=p?(A-h*O)/p:0;u0?P*g:0)+O,T[d]={data:l[d],index:u,value:P,startAngle:C,endAngle:L,padAngle:I};return T}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:constant$1(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,r=null,o):e},o.sort=function(l){return arguments.length?(r=l,e=null,o):r},o.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:constant$1(+l),o):n},o.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:constant$1(+l),o):a},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:constant$1(+l),o):s},o}function noop$1(){}function point$2(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Basis(t){this._context=t}Basis.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$2(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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$2(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function curveBasis(t){return new Basis(t)}function BasisClosed(t){this._context=t}BasisClosed.prototype={areaStart:noop$1,areaEnd:noop$1,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:point$2(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function curveBasisClosed(t){return new BasisClosed(t)}function BasisOpen(t){this._context=t}BasisOpen.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(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:point$2(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function curveBasisOpen(t){return new BasisOpen(t)}function LinearClosed(t){this._context=t}LinearClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function curveLinearClosed(t){return new LinearClosed(t)}function sign(t){return t<0?-1:1}function slope3(t,e,r){var n=t._x1-t._x0,a=e-t._x1,s=(t._y1-t._y0)/(n||a<0&&-0),o=(r-t._y1)/(a||n<0&&-0),l=(s*a+o*n)/(n+a);return(sign(s)+sign(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function slope2(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function point$1(t,e,r){var n=t._x0,a=t._y0,s=t._x1,o=t._y1,l=(s-n)/3;t._context.bezierCurveTo(n+l,a+l*e,s-l,o-l*r,s,o)}function MonotoneX(t){this._context=t}MonotoneX.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$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,r=slope3(this,t,e)),r);break;default:point$1(this,this._t0,r=slope3(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function MonotoneY(t){this._context=new ReflectContext(t)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(t,e){MonotoneX.prototype.point.call(this,e,t)};function ReflectContext(t){this._context=t}ReflectContext.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,a,s){this._context.bezierCurveTo(e,t,n,r,s,a)}};function monotoneX(t){return new MonotoneX(t)}function monotoneY(t){return new MonotoneY(t)}function Natural(t){this._context=t}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=controlPoints(t),a=controlPoints(e),s=0,o=1;o=0;--e)a[e]=(o[e]-a[e+1])/s[e];for(s[r-1]=(t[r]+a[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function curveStep(t){return new Step(t,.5)}function stepBefore(t){return new Step(t,0)}function stepAfter(t){return new Step(t,1)}function Transform(t,e,r){this.k=t,this.x=e,this.y=r}Transform.prototype={constructor:Transform,scale:function(t){return t===1?this:new Transform(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Transform(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Transform(1,0,0);Transform.prototype;/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */function _typeof(t){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(t,e,r){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(a,s,o){var l=[null];l.push.apply(l,s);var u=Function.bind.apply(a,l),h=new u;return o&&_setPrototypeOf(h,o.prototype),h},_construct.apply(null,arguments)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _iterableToArray(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _unsupportedIterableToArray(t,e){if(!!t){if(typeof t=="string")return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(t,e)}}function _arrayLikeToArray(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r-1:0),a=1;a/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/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 t(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function t(e,r){if(_typeof(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,a="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(a)&&(n=r.currentScript.getAttribute(a));var s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:function(l){return l},createScriptURL:function(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function createDOMPurify(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),e=function(rt){return createDOMPurify(rt)};if(e.version="2.4.1",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,n=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,o=t.Node,l=t.Element,u=t.NodeFilter,h=t.NamedNodeMap,d=h===void 0?t.NamedNodeMap||t.MozNamedAttrMap:h,g=t.HTMLFormElement,p=t.DOMParser,m=t.trustedTypes,T=l.prototype,C=lookupGetter(T,"cloneNode"),A=lookupGetter(T,"nextSibling"),L=lookupGetter(T,"childNodes"),I=lookupGetter(T,"parentNode");if(typeof s=="function"){var O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}var P=_createTrustedTypesPolicy(m,r),z=P?P.createHTML(""):"",q=n,U=q.implementation,H=q.createNodeIterator,$=q.createDocumentFragment,R=q.getElementsByTagName,D=r.importNode,k={};try{k=clone$2(n).documentMode?n.documentMode:{}}catch{}var B={};e.isSupported=typeof I=="function"&&U&&typeof U.createHTMLDocument<"u"&&k!==9;var v=MUSTACHE_EXPR,J=ERB_EXPR,E=TMPLIT_EXPR,ft=DATA_ATTR,Lt=ARIA_ATTR,wt=IS_SCRIPT_OR_DATA,Q=ATTR_WHITESPACE,ut=IS_ALLOWED_URI,st=null,ot=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),dt=null,xt=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),et=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}})),Nt=null,G=null,Z=!0,tt=!0,W=!1,Y=!1,F=!1,nt=!1,N=!1,gt=!1,j=!1,Ft=!1,at=!0,Dt=!1,kt="user-content-",_t=!0,St=!1,Et={},yt=null,ct=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"]),ie=null,jt=addToSet({},["audio","video","img","source","image","track"]),Wt=null,qt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),zt="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",Ht="http://www.w3.org/1999/xhtml",Pt=Ht,Ot=!1,Tt=null,mt=addToSet({},[zt,ge,Ht],stringToString),It,vt=["application/xhtml+xml","text/html"],Ut="text/html",ht,Jt=null,pt=n.createElement("form"),Kt=function(rt){return rt instanceof RegExp||rt instanceof Function},oe=function(rt){Jt&&Jt===rt||((!rt||_typeof(rt)!=="object")&&(rt={}),rt=clone$2(rt),It=vt.indexOf(rt.PARSER_MEDIA_TYPE)===-1?It=Ut:It=rt.PARSER_MEDIA_TYPE,ht=It==="application/xhtml+xml"?stringToString:stringToLowerCase,st="ALLOWED_TAGS"in rt?addToSet({},rt.ALLOWED_TAGS,ht):ot,dt="ALLOWED_ATTR"in rt?addToSet({},rt.ALLOWED_ATTR,ht):xt,Tt="ALLOWED_NAMESPACES"in rt?addToSet({},rt.ALLOWED_NAMESPACES,stringToString):mt,Wt="ADD_URI_SAFE_ATTR"in rt?addToSet(clone$2(qt),rt.ADD_URI_SAFE_ATTR,ht):qt,ie="ADD_DATA_URI_TAGS"in rt?addToSet(clone$2(jt),rt.ADD_DATA_URI_TAGS,ht):jt,yt="FORBID_CONTENTS"in rt?addToSet({},rt.FORBID_CONTENTS,ht):ct,Nt="FORBID_TAGS"in rt?addToSet({},rt.FORBID_TAGS,ht):{},G="FORBID_ATTR"in rt?addToSet({},rt.FORBID_ATTR,ht):{},Et="USE_PROFILES"in rt?rt.USE_PROFILES:!1,Z=rt.ALLOW_ARIA_ATTR!==!1,tt=rt.ALLOW_DATA_ATTR!==!1,W=rt.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=rt.SAFE_FOR_TEMPLATES||!1,F=rt.WHOLE_DOCUMENT||!1,gt=rt.RETURN_DOM||!1,j=rt.RETURN_DOM_FRAGMENT||!1,Ft=rt.RETURN_TRUSTED_TYPE||!1,N=rt.FORCE_BODY||!1,at=rt.SANITIZE_DOM!==!1,Dt=rt.SANITIZE_NAMED_PROPS||!1,_t=rt.KEEP_CONTENT!==!1,St=rt.IN_PLACE||!1,ut=rt.ALLOWED_URI_REGEXP||ut,Pt=rt.NAMESPACE||Ht,rt.CUSTOM_ELEMENT_HANDLING&&Kt(rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),rt.CUSTOM_ELEMENT_HANDLING&&Kt(rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),rt.CUSTOM_ELEMENT_HANDLING&&typeof rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(tt=!1),j&&(gt=!0),Et&&(st=addToSet({},_toConsumableArray(text)),dt=[],Et.html===!0&&(addToSet(st,html$1),addToSet(dt,html)),Et.svg===!0&&(addToSet(st,svg$1),addToSet(dt,svg),addToSet(dt,xml)),Et.svgFilters===!0&&(addToSet(st,svgFilters),addToSet(dt,svg),addToSet(dt,xml)),Et.mathMl===!0&&(addToSet(st,mathMl$1),addToSet(dt,mathMl),addToSet(dt,xml))),rt.ADD_TAGS&&(st===ot&&(st=clone$2(st)),addToSet(st,rt.ADD_TAGS,ht)),rt.ADD_ATTR&&(dt===xt&&(dt=clone$2(dt)),addToSet(dt,rt.ADD_ATTR,ht)),rt.ADD_URI_SAFE_ATTR&&addToSet(Wt,rt.ADD_URI_SAFE_ATTR,ht),rt.FORBID_CONTENTS&&(yt===ct&&(yt=clone$2(yt)),addToSet(yt,rt.FORBID_CONTENTS,ht)),_t&&(st["#text"]=!0),F&&addToSet(st,["html","head","body"]),st.table&&(addToSet(st,["tbody"]),delete Nt.tbody),freeze&&freeze(rt),Jt=rt)},ue=addToSet({},["mi","mo","mn","ms","mtext"]),he=addToSet({},["foreignobject","desc","title","annotation-xml"]),fe=addToSet({},["title","style","font","a","script"]),Gt=addToSet({},svg$1);addToSet(Gt,svgFilters),addToSet(Gt,svgDisallowed);var te=addToSet({},mathMl$1);addToSet(te,mathMlDisallowed);var ce=function(rt){var At=I(rt);(!At||!At.tagName)&&(At={namespaceURI:Pt,tagName:"template"});var $t=stringToLowerCase(rt.tagName),le=stringToLowerCase(At.tagName);return Tt[rt.namespaceURI]?rt.namespaceURI===ge?At.namespaceURI===Ht?$t==="svg":At.namespaceURI===zt?$t==="svg"&&(le==="annotation-xml"||ue[le]):Boolean(Gt[$t]):rt.namespaceURI===zt?At.namespaceURI===Ht?$t==="math":At.namespaceURI===ge?$t==="math"&&he[le]:Boolean(te[$t]):rt.namespaceURI===Ht?At.namespaceURI===ge&&!he[le]||At.namespaceURI===zt&&!ue[le]?!1:!te[$t]&&(fe[$t]||!Gt[$t]):!!(It==="application/xhtml+xml"&&Tt[rt.namespaceURI]):!1},Zt=function(rt){arrayPush$1(e.removed,{element:rt});try{rt.parentNode.removeChild(rt)}catch{try{rt.outerHTML=z}catch{rt.remove()}}},Ue=function(rt,At){try{arrayPush$1(e.removed,{attribute:At.getAttributeNode(rt),from:At})}catch{arrayPush$1(e.removed,{attribute:null,from:At})}if(At.removeAttribute(rt),rt==="is"&&!dt[rt])if(gt||j)try{Zt(At)}catch{}else try{At.setAttribute(rt,"")}catch{}},Be=function(rt){var At,$t;if(N)rt=""+rt;else{var le=stringMatch(rt,/^[\r\n\t ]+/);$t=le&&le[0]}It==="application/xhtml+xml"&&Pt===Ht&&(rt=''+rt+"");var be=P?P.createHTML(rt):rt;if(Pt===Ht)try{At=new p().parseFromString(be,It)}catch{}if(!At||!At.documentElement){At=U.createDocument(Pt,"template",null);try{At.documentElement.innerHTML=Ot?"":be}catch{}}var ye=At.body||At.documentElement;return rt&&$t&&ye.insertBefore(n.createTextNode($t),ye.childNodes[0]||null),Pt===Ht?R.call(At,F?"html":"body")[0]:F?At.documentElement:ye},_e=function(rt){return H.call(rt.ownerDocument||rt,rt,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ee=function(rt){return rt instanceof g&&(typeof rt.nodeName!="string"||typeof rt.textContent!="string"||typeof rt.removeChild!="function"||!(rt.attributes instanceof d)||typeof rt.removeAttribute!="function"||typeof rt.setAttribute!="function"||typeof rt.namespaceURI!="string"||typeof rt.insertBefore!="function"||typeof rt.hasChildNodes!="function")},we=function(rt){return _typeof(o)==="object"?rt instanceof o:rt&&_typeof(rt)==="object"&&typeof rt.nodeType=="number"&&typeof rt.nodeName=="string"},Te=function(rt,At,$t){!B[rt]||arrayForEach(B[rt],function(le){le.call(e,At,$t,Jt)})},Ee=function(rt){var At;if(Te("beforeSanitizeElements",rt,null),ee(rt)||regExpTest(/[\u0080-\uFFFF]/,rt.nodeName))return Zt(rt),!0;var $t=ht(rt.nodeName);if(Te("uponSanitizeElement",rt,{tagName:$t,allowedTags:st}),rt.hasChildNodes()&&!we(rt.firstElementChild)&&(!we(rt.content)||!we(rt.content.firstElementChild))&®ExpTest(/<[/\w]/g,rt.innerHTML)&®ExpTest(/<[/\w]/g,rt.textContent)||$t==="select"&®ExpTest(/