diff --git a/assets/index-B6ml6XFJ.js b/assets/index-COo4Psol.js similarity index 51% rename from assets/index-B6ml6XFJ.js rename to assets/index-COo4Psol.js index e894465..ed8bbee 100644 --- a/assets/index-B6ml6XFJ.js +++ b/assets/index-COo4Psol.js @@ -1,4 +1,4 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function In(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zf(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var zv={exports:{}},fc={},$v={exports:{}},nt={};/** +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function In(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $f(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var $v={exports:{}},dc={},Hv={exports:{}},nt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kC;function iB(){if(kC)return nt;kC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;function p($){return $===null||typeof $!="object"?null:($=d&&$[d]||$["@@iterator"],typeof $=="function"?$:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,g={};function b($,j,L){this.props=$,this.context=j,this.refs=g,this.updater=L||m}b.prototype.isReactComponent={},b.prototype.setState=function($,j){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,j,"setState")},b.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function E(){}E.prototype=b.prototype;function w($,j,L){this.props=$,this.context=j,this.refs=g,this.updater=L||m}var x=w.prototype=new E;x.constructor=w,y(x,b.prototype),x.isPureReactComponent=!0;var C=Array.isArray,_=Object.prototype.hasOwnProperty,k={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function M($,j,L){var ie,de={},pe=null,Se=null;if(j!=null)for(ie in j.ref!==void 0&&(Se=j.ref),j.key!==void 0&&(pe=""+j.key),j)_.call(j,ie)&&!A.hasOwnProperty(ie)&&(de[ie]=j[ie]);var Re=arguments.length-2;if(Re===1)de.children=L;else if(1>>16,m[1]!==61&&(c[p++]=g>>>8),m[0]!==61&&(c[p++]=g),y=0));return c};t&&(s=new t([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),r&&(!n.toBlob||!n.toBlobHD)&&(n.toBlob||(n.toBlob=function(l,u){if(u||(u="image/png"),this.mozGetAsFile){l(this.mozGetAsFile("canvas",u));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(u)){l(this.msToBlob());return}var c=Array.prototype.slice.call(arguments,1),d=this[a].apply(this,c),p=d.indexOf(","),m=d.substring(p+1),y=i.test(d.substring(0,p)),g;Blob.fake?(g=new Blob,y?g.encoding="base64":g.encoding="URI",g.data=m,g.size=m.length):t&&(y?g=new Blob([o(m)],{type:u}):g=new Blob([decodeURIComponent(m)],{type:u})),l(g)}),!n.toBlobHD&&n.toDataURLHD?n.toBlobHD=function(){a="toDataURLHD";var l=this.toBlob();return a="toDataURL",l}:n.toBlobHD=n.toBlob)}(typeof self<"u"&&self||typeof window<"u"&&window||Th.content||Th),Th}sB();var PC=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new dB:typeof navigator<"u"?yB(navigator.userAgent):wB()}function vB(e){return e!==""&&mB.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var a=i.exec(e);return!!a&&[n,a]},!1)}function yB(e){var t=vB(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new fB;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length>>16,m[1]!==61&&(c[h++]=g>>>8),m[0]!==61&&(c[h++]=g),y=0));return c};t&&(s=new t([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),r&&(!n.toBlob||!n.toBlobHD)&&(n.toBlob||(n.toBlob=function(l,u){if(u||(u="image/png"),this.mozGetAsFile){l(this.mozGetAsFile("canvas",u));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(u)){l(this.msToBlob());return}var c=Array.prototype.slice.call(arguments,1),d=this[a].apply(this,c),h=d.indexOf(","),m=d.substring(h+1),y=i.test(d.substring(0,h)),g;Blob.fake?(g=new Blob,y?g.encoding="base64":g.encoding="URI",g.data=m,g.size=m.length):t&&(y?g=new Blob([o(m)],{type:u}):g=new Blob([decodeURIComponent(m)],{type:u})),l(g)}),!n.toBlobHD&&n.toDataURLHD?n.toBlobHD=function(){a="toDataURLHD";var l=this.toBlob();return a="toDataURL",l}:n.toBlobHD=n.toBlob)}(typeof self<"u"&&self||typeof window<"u"&&window||Ah.content||Ah),Ah}uB();var OC=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new pB:typeof navigator<"u"?wB(navigator.userAgent):xB()}function _B(e){return e!==""&&vB.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var a=i.exec(e);return!!a&&[n,a]},!1)}function wB(e){var t=_B(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new hB;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length>>1,j=X[$];if(0>>1;$i(de,N))pei(Se,de)?(X[$]=Se,X[pe]=N,$=pe):(X[$]=de,X[ie]=N,$=ie);else if(pei(Se,N))X[$]=Se,X[pe]=N,$=pe;else break e}}return G}function i(X,G){var N=X.sortIndex-G.sortIndex;return N!==0?N:X.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,p=3,m=!1,y=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(X){for(var G=r(u);G!==null;){if(G.callback===null)n(u);else if(G.startTime<=X)n(u),G.sortIndex=G.expirationTime,t(l,G);else break;G=r(u)}}function C(X){if(g=!1,x(X),!y)if(r(l)!==null)y=!0,V(_);else{var G=r(u);G!==null&&Y(C,G.startTime-X)}}function _(X,G){y=!1,g&&(g=!1,E(M),M=-1),m=!0;var N=p;try{for(x(G),d=r(l);d!==null&&(!(d.expirationTime>G)||X&&!D());){var $=d.callback;if(typeof $=="function"){d.callback=null,p=d.priorityLevel;var j=$(d.expirationTime<=G);G=e.unstable_now(),typeof j=="function"?d.callback=j:d===r(l)&&n(l),x(G)}else n(l);d=r(l)}if(d!==null)var L=!0;else{var ie=r(u);ie!==null&&Y(C,ie.startTime-G),L=!1}return L}finally{d=null,p=N,m=!1}}var k=!1,A=null,M=-1,F=5,U=-1;function D(){return!(e.unstable_now()-UX||125$?(X.sortIndex=N,t(u,X),r(l)===null&&X===r(u)&&(g?(E(M),M=-1):g=!0,Y(C,N-$))):(X.sortIndex=j,t(l,X),y||m||(y=!0,V(_))),X},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(X){var G=p;return function(){var N=p;p=G;try{return X.apply(this,arguments)}finally{p=N}}}}(Gv)),Gv}var DC;function EB(){return DC||(DC=1,qv.exports=xB()),qv.exports}/** + */var DC;function SB(){return DC||(DC=1,function(e){function t(J,K){var F=J.length;J.push(K);e:for(;0>>1,j=J[$];if(0>>1;$i(ue,F))pei(xe,ue)?(J[$]=xe,J[pe]=F,$=pe):(J[$]=ue,J[re]=F,$=re);else if(pei(xe,F))J[$]=xe,J[pe]=F,$=pe;else break e}}return K}function i(J,K){var F=J.sortIndex-K.sortIndex;return F!==0?F:J.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,h=3,m=!1,y=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(J){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=J)n(u),K.sortIndex=K.expirationTime,t(l,K);else break;K=r(u)}}function C(J){if(g=!1,E(J),!y)if(r(l)!==null)y=!0,W(v);else{var K=r(u);K!==null&&X(C,K.startTime-J)}}function v(J,K){y=!1,g&&(g=!1,x(D),D=-1),m=!0;var F=h;try{for(E(K),d=r(l);d!==null&&(!(d.expirationTime>K)||J&&!N());){var $=d.callback;if(typeof $=="function"){d.callback=null,h=d.priorityLevel;var j=$(d.expirationTime<=K);K=e.unstable_now(),typeof j=="function"?d.callback=j:d===r(l)&&n(l),E(K)}else n(l);d=r(l)}if(d!==null)var M=!0;else{var re=r(u);re!==null&&X(C,re.startTime-K),M=!1}return M}finally{d=null,h=F,m=!1}}var k=!1,A=null,D=-1,L=5,q=-1;function N(){return!(e.unstable_now()-qJ||125$?(J.sortIndex=F,t(u,J),r(l)===null&&J===r(u)&&(g?(x(D),D=-1):g=!0,X(C,F-$))):(J.sortIndex=j,t(l,J),y||m||(y=!0,W(v))),J},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(J){var K=h;return function(){var F=h;h=K;try{return J.apply(this,arguments)}finally{h=F}}}}(Wv)),Wv}var FC;function CB(){return FC||(FC=1,Gv.exports=SB()),Gv.exports}/** * @license React * react-dom.production.min.js * @@ -30,42 +30,42 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var FC;function SB(){if(FC)return Wn;FC=1;var e=go(),t=EB();function r(f){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+f,v=1;v"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function p(f){return l.call(d,f)?!0:l.call(c,f)?!1:u.test(f)?d[f]=!0:(c[f]=!0,!1)}function m(f,h,v,S){if(v!==null&&v.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return S?!1:v!==null?!v.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function y(f,h,v,S){if(h===null||typeof h>"u"||m(f,h,v,S))return!0;if(S)return!1;if(v!==null)switch(v.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function g(f,h,v,S,T,R,H){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=S,this.attributeNamespace=T,this.mustUseProperty=v,this.propertyName=f,this.type=h,this.sanitizeURL=R,this.removeEmptyString=H}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){b[f]=new g(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var h=f[0];b[h]=new g(h,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){b[f]=new g(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){b[f]=new g(f,2,!1,f,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(f){b[f]=new g(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){b[f]=new g(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){b[f]=new g(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){b[f]=new g(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){b[f]=new g(f,5,!1,f.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function w(f){return f[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(f){var h=f.replace(E,w);b[h]=new g(h,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var h=f.replace(E,w);b[h]=new g(h,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var h=f.replace(E,w);b[h]=new g(h,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){b[f]=new g(f,1,!1,f.toLowerCase(),null,!1,!1)}),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){b[f]=new g(f,1,!1,f.toLowerCase(),null,!0,!0)});function x(f,h,v,S){var T=b.hasOwnProperty(h)?b[h]:null;(T!==null?T.type!==0:S||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function h(f){return l.call(d,f)?!0:l.call(c,f)?!1:u.test(f)?d[f]=!0:(c[f]=!0,!1)}function m(f,p,_,S){if(_!==null&&_.type===0)return!1;switch(typeof p){case"function":case"symbol":return!0;case"boolean":return S?!1:_!==null?!_.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function y(f,p,_,S){if(p===null||typeof p>"u"||m(f,p,_,S))return!0;if(S)return!1;if(_!==null)switch(_.type){case 3:return!p;case 4:return p===!1;case 5:return isNaN(p);case 6:return isNaN(p)||1>p}return!1}function g(f,p,_,S,T,R,H){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=S,this.attributeNamespace=T,this.mustUseProperty=_,this.propertyName=f,this.type=p,this.sanitizeURL=R,this.removeEmptyString=H}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){w[f]=new g(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var p=f[0];w[p]=new g(p,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){w[f]=new g(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){w[f]=new g(f,2,!1,f,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(f){w[f]=new g(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){w[f]=new g(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){w[f]=new g(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){w[f]=new g(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){w[f]=new g(f,5,!1,f.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function b(f){return f[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(f){var p=f.replace(x,b);w[p]=new g(p,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var p=f.replace(x,b);w[p]=new g(p,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var p=f.replace(x,b);w[p]=new g(p,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){w[f]=new g(f,1,!1,f.toLowerCase(),null,!1,!1)}),w.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){w[f]=new g(f,1,!1,f.toLowerCase(),null,!0,!0)});function E(f,p,_,S){var T=w.hasOwnProperty(p)?w[p]:null;(T!==null?T.type!==0:S||!(2Z||T[H]!==R[Z]){var ne=` -`+T[H].replace(" at new "," at ");return f.displayName&&ne.includes("")&&(ne=ne.replace("",f.displayName)),ne}while(1<=H&&0<=Z);break}}}finally{L=!1,Error.prepareStackTrace=v}return(f=f?f.displayName||f.name:"")?j(f):""}function de(f){switch(f.tag){case 5:return j(f.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return f=ie(f.type,!1),f;case 11:return f=ie(f.type.render,!1),f;case 1:return f=ie(f.type,!0),f;default:return""}}function pe(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case A:return"Fragment";case k:return"Portal";case F:return"Profiler";case M:return"StrictMode";case J:return"Suspense";case W:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case D:return(f.displayName||"Context")+".Consumer";case U:return(f._context.displayName||"Context")+".Provider";case q:var h=f.render;return f=f.displayName,f||(f=h.displayName||h.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case z:return h=f.displayName||null,h!==null?h:pe(f.type)||"Memo";case V:h=f._payload,f=f._init;try{return pe(f(h))}catch{}}return null}function Se(f){var h=f.type;switch(f.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=h.render,f=f.displayName||f.name||"",h.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(h);case 8:return h===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function Re(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Ne(f){var h=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Le(f){var h=Ne(f)?"checked":"value",v=Object.getOwnPropertyDescriptor(f.constructor.prototype,h),S=""+f[h];if(!f.hasOwnProperty(h)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var T=v.get,R=v.set;return Object.defineProperty(f,h,{configurable:!0,get:function(){return T.call(this)},set:function(H){S=""+H,R.call(this,H)}}),Object.defineProperty(f,h,{enumerable:v.enumerable}),{getValue:function(){return S},setValue:function(H){S=""+H},stopTracking:function(){f._valueTracker=null,delete f[h]}}}}function Ve(f){f._valueTracker||(f._valueTracker=Le(f))}function Oe(f){if(!f)return!1;var h=f._valueTracker;if(!h)return!0;var v=h.getValue(),S="";return f&&(S=Ne(f)?f.checked?"true":"false":f.value),f=S,f!==v?(h.setValue(f),!0):!1}function De(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function We(f,h){var v=h.checked;return N({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??f._wrapperState.initialChecked})}function rt(f,h){var v=h.defaultValue==null?"":h.defaultValue,S=h.checked!=null?h.checked:h.defaultChecked;v=Re(h.value!=null?h.value:v),f._wrapperState={initialChecked:S,initialValue:v,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function st(f,h){h=h.checked,h!=null&&x(f,"checked",h,!1)}function lt(f,h){st(f,h);var v=Re(h.value),S=h.type;if(v!=null)S==="number"?(v===0&&f.value===""||f.value!=v)&&(f.value=""+v):f.value!==""+v&&(f.value=""+v);else if(S==="submit"||S==="reset"){f.removeAttribute("value");return}h.hasOwnProperty("value")?Qt(f,h.type,v):h.hasOwnProperty("defaultValue")&&Qt(f,h.type,Re(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(f.defaultChecked=!!h.defaultChecked)}function Dt(f,h,v){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var S=h.type;if(!(S!=="submit"&&S!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+f._wrapperState.initialValue,v||h===f.value||(f.value=h),f.defaultValue=h}v=f.name,v!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,v!==""&&(f.name=v)}function Qt(f,h,v){(h!=="number"||De(f.ownerDocument)!==f)&&(v==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+v&&(f.defaultValue=""+v))}var mt=Array.isArray;function ft(f,h,v,S){if(f=f.options,h){h={};for(var T=0;T"+h.valueOf().toString()+"",h=I.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;h.firstChild;)f.appendChild(h.firstChild)}});function K(f,h){if(h){var v=f.firstChild;if(v&&v===f.lastChild&&v.nodeType===3){v.nodeValue=h;return}}f.textContent=h}var re={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(f){fe.forEach(function(h){h=h+f.charAt(0).toUpperCase()+f.substring(1),re[h]=re[f]})});function me(f,h,v){return h==null||typeof h=="boolean"||h===""?"":v||typeof h!="number"||h===0||re.hasOwnProperty(f)&&re[f]?(""+h).trim():h+"px"}function Ge(f,h){f=f.style;for(var v in h)if(h.hasOwnProperty(v)){var S=v.indexOf("--")===0,T=me(v,h[v],S);v==="float"&&(v="cssFloat"),S?f.setProperty(v,T):f[v]=T}}var at=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oe(f,h){if(h){if(at[f]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(r(137,f));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(r(60));if(typeof h.dangerouslySetInnerHTML!="object"||!("__html"in h.dangerouslySetInnerHTML))throw Error(r(61))}if(h.style!=null&&typeof h.style!="object")throw Error(r(62))}}function le(f,h){if(f.indexOf("-")===-1)return typeof h.is=="string";switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pe=null;function vt(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var bt=null,Ye=null,Pn=null;function ri(f){if(f=Yu(f)){if(typeof bt!="function")throw Error(r(280));var h=f.stateNode;h&&(h=$d(h),bt(f.stateNode,f.type,h))}}function wn(f){Ye?Pn?Pn.push(f):Pn=[f]:Ye=f}function Lr(){if(Ye){var f=Ye,h=Pn;if(Pn=Ye=null,ri(f),h)for(f=0;f>>=0,f===0?32:31-(wj(f)/bj|0)|0}var Sd=64,Cd=4194304;function Ou(f){switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function kd(f,h){var v=f.pendingLanes;if(v===0)return 0;var S=0,T=f.suspendedLanes,R=f.pingedLanes,H=v&268435455;if(H!==0){var Z=H&~T;Z!==0?S=Ou(Z):(R&=H,R!==0&&(S=Ou(R)))}else H=v&~T,H!==0?S=Ou(H):R!==0&&(S=Ou(R));if(S===0)return 0;if(h!==0&&h!==S&&(h&T)===0&&(T=S&-S,R=h&-h,T>=R||T===16&&(R&4194240)!==0))return h;if((S&4)!==0&&(S|=v&16),h=f.entangledLanes,h!==0)for(f=f.entanglements,h&=S;0v;v++)h.push(f);return h}function Nu(f,h,v){f.pendingLanes|=h,h!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,h=31-Ur(h),f[h]=v}function Cj(f,h){var v=f.pendingLanes&~h;f.pendingLanes=h,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=h,f.mutableReadLanes&=h,f.entangledLanes&=h,h=f.entanglements;var S=f.eventTimes;for(f=f.expirationTimes;0=zu),_E=" ",wE=!1;function bE(f,h){switch(f){case"keyup":return Zj.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xE(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var js=!1;function t4(f,h){switch(f){case"compositionend":return xE(h);case"keypress":return h.which!==32?null:(wE=!0,_E);case"textInput":return f=h.data,f===_E&&wE?null:f;default:return null}}function n4(f,h){if(js)return f==="compositionend"||!bg&&bE(f,h)?(f=hE(),Pd=mg=xa=null,js=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1=h)return{node:v,offset:h-f};f=S}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=IE(v)}}function PE(f,h){return f&&h?f===h?!0:f&&f.nodeType===3?!1:h&&h.nodeType===3?PE(f,h.parentNode):"contains"in f?f.contains(h):f.compareDocumentPosition?!!(f.compareDocumentPosition(h)&16):!1:!1}function OE(){for(var f=window,h=De();h instanceof f.HTMLIFrameElement;){try{var v=typeof h.contentWindow.location.href=="string"}catch{v=!1}if(v)f=h.contentWindow;else break;h=De(f.document)}return h}function Sg(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h&&(h==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||h==="textarea"||f.contentEditable==="true")}function f4(f){var h=OE(),v=f.focusedElem,S=f.selectionRange;if(h!==v&&v&&v.ownerDocument&&PE(v.ownerDocument.documentElement,v)){if(S!==null&&Sg(v)){if(h=S.start,f=S.end,f===void 0&&(f=h),"selectionStart"in v)v.selectionStart=h,v.selectionEnd=Math.min(f,v.value.length);else if(f=(h=v.ownerDocument||document)&&h.defaultView||window,f.getSelection){f=f.getSelection();var T=v.textContent.length,R=Math.min(S.start,T);S=S.end===void 0?R:Math.min(S.end,T),!f.extend&&R>S&&(T=S,S=R,R=T),T=RE(v,R);var H=RE(v,S);T&&H&&(f.rangeCount!==1||f.anchorNode!==T.node||f.anchorOffset!==T.offset||f.focusNode!==H.node||f.focusOffset!==H.offset)&&(h=h.createRange(),h.setStart(T.node,T.offset),f.removeAllRanges(),R>S?(f.addRange(h),f.extend(H.node,H.offset)):(h.setEnd(H.node,H.offset),f.addRange(h)))}}for(h=[],f=v;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v=document.documentMode,Bs=null,Cg=null,Gu=null,kg=!1;function NE(f,h,v){var S=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;kg||Bs==null||Bs!==De(S)||(S=Bs,"selectionStart"in S&&Sg(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Gu&&qu(Gu,S)||(Gu=S,S=Bd(Cg,"onSelect"),0qs||(f.current=jg[qs],jg[qs]=null,qs--)}function St(f,h){qs++,jg[qs]=f.current,f.current=h}var ka={},bn=Ca(ka),zn=Ca(!1),To=ka;function Gs(f,h){var v=f.type.contextTypes;if(!v)return ka;var S=f.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===h)return S.__reactInternalMemoizedMaskedChildContext;var T={},R;for(R in v)T[R]=h[R];return S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=h,f.__reactInternalMemoizedMaskedChildContext=T),T}function $n(f){return f=f.childContextTypes,f!=null}function Hd(){It(zn),It(bn)}function KE(f,h,v){if(bn.current!==ka)throw Error(r(168));St(bn,h),St(zn,v)}function QE(f,h,v){var S=f.stateNode;if(h=h.childContextTypes,typeof S.getChildContext!="function")return v;S=S.getChildContext();for(var T in S)if(!(T in h))throw Error(r(108,Se(f)||"Unknown",T));return N({},v,S)}function qd(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||ka,To=bn.current,St(bn,f),St(zn,zn.current),!0}function YE(f,h,v){var S=f.stateNode;if(!S)throw Error(r(169));v?(f=QE(f,h,To),S.__reactInternalMemoizedMergedChildContext=f,It(zn),It(bn),St(bn,f)):It(zn),St(zn,v)}var Fi=null,Gd=!1,Bg=!1;function XE(f){Fi===null?Fi=[f]:Fi.push(f)}function E4(f){Gd=!0,XE(f)}function Ta(){if(!Bg&&Fi!==null){Bg=!0;var f=0,h=xt;try{var v=Fi;for(xt=1;f>=H,T-=H,Li=1<<32-Ur(h)+T|v<Ke?(fn=qe,qe=null):fn=qe.sibling;var dt=ye(ue,qe,ce[Ke],ke);if(dt===null){qe===null&&(qe=fn);break}f&&qe&&dt.alternate===null&&h(ue,qe),se=R(dt,se,Ke),He===null?ze=dt:He.sibling=dt,He=dt,qe=fn}if(Ke===ce.length)return v(ue,qe),Ft&&Io(ue,Ke),ze;if(qe===null){for(;KeKe?(fn=qe,qe=null):fn=qe.sibling;var Fa=ye(ue,qe,dt.value,ke);if(Fa===null){qe===null&&(qe=fn);break}f&&qe&&Fa.alternate===null&&h(ue,qe),se=R(Fa,se,Ke),He===null?ze=Fa:He.sibling=Fa,He=Fa,qe=fn}if(dt.done)return v(ue,qe),Ft&&Io(ue,Ke),ze;if(qe===null){for(;!dt.done;Ke++,dt=ce.next())dt=xe(ue,dt.value,ke),dt!==null&&(se=R(dt,se,Ke),He===null?ze=dt:He.sibling=dt,He=dt);return Ft&&Io(ue,Ke),ze}for(qe=S(ue,qe);!dt.done;Ke++,dt=ce.next())dt=Me(qe,ue,Ke,dt.value,ke),dt!==null&&(f&&dt.alternate!==null&&qe.delete(dt.key===null?Ke:dt.key),se=R(dt,se,Ke),He===null?ze=dt:He.sibling=dt,He=dt);return f&&qe.forEach(function(rB){return h(ue,rB)}),Ft&&Io(ue,Ke),ze}function Ht(ue,se,ce,ke){if(typeof ce=="object"&&ce!==null&&ce.type===A&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case _:e:{for(var ze=ce.key,He=se;He!==null;){if(He.key===ze){if(ze=ce.type,ze===A){if(He.tag===7){v(ue,He.sibling),se=T(He,ce.props.children),se.return=ue,ue=se;break e}}else if(He.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===V&&rS(ze)===He.type){v(ue,He.sibling),se=T(He,ce.props),se.ref=Xu(ue,He,ce),se.return=ue,ue=se;break e}v(ue,He);break}else h(ue,He);He=He.sibling}ce.type===A?(se=Lo(ce.props.children,ue.mode,ke,ce.key),se.return=ue,ue=se):(ke=_h(ce.type,ce.key,ce.props,null,ue.mode,ke),ke.ref=Xu(ue,se,ce),ke.return=ue,ue=ke)}return H(ue);case k:e:{for(He=ce.key;se!==null;){if(se.key===He)if(se.tag===4&&se.stateNode.containerInfo===ce.containerInfo&&se.stateNode.implementation===ce.implementation){v(ue,se.sibling),se=T(se,ce.children||[]),se.return=ue,ue=se;break e}else{v(ue,se);break}else h(ue,se);se=se.sibling}se=Fv(ce,ue.mode,ke),se.return=ue,ue=se}return H(ue);case V:return He=ce._init,Ht(ue,se,He(ce._payload),ke)}if(mt(ce))return je(ue,se,ce,ke);if(G(ce))return Be(ue,se,ce,ke);Qd(ue,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,se!==null&&se.tag===6?(v(ue,se.sibling),se=T(se,ce),se.return=ue,ue=se):(v(ue,se),se=Dv(ce,ue.mode,ke),se.return=ue,ue=se),H(ue)):v(ue,se)}return Ht}var Qs=iS(!0),aS=iS(!1),Yd=Ca(null),Xd=null,Ys=null,Gg=null;function Wg(){Gg=Ys=Xd=null}function Vg(f){var h=Yd.current;It(Yd),f._currentValue=h}function Kg(f,h,v){for(;f!==null;){var S=f.alternate;if((f.childLanes&h)!==h?(f.childLanes|=h,S!==null&&(S.childLanes|=h)):S!==null&&(S.childLanes&h)!==h&&(S.childLanes|=h),f===v)break;f=f.return}}function Xs(f,h){Xd=f,Gg=Ys=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&h)!==0&&(Hn=!0),f.firstContext=null)}function _r(f){var h=f._currentValue;if(Gg!==f)if(f={context:f,memoizedValue:h,next:null},Ys===null){if(Xd===null)throw Error(r(308));Ys=f,Xd.dependencies={lanes:0,firstContext:f}}else Ys=Ys.next=f;return h}var Ro=null;function Qg(f){Ro===null?Ro=[f]:Ro.push(f)}function oS(f,h,v,S){var T=h.interleaved;return T===null?(v.next=v,Qg(h)):(v.next=T.next,T.next=v),h.interleaved=v,Bi(f,S)}function Bi(f,h){f.lanes|=h;var v=f.alternate;for(v!==null&&(v.lanes|=h),v=f,f=f.return;f!==null;)f.childLanes|=h,v=f.alternate,v!==null&&(v.childLanes|=h),v=f,f=f.return;return v.tag===3?v.stateNode:null}var Aa=!1;function Yg(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sS(f,h){f=f.updateQueue,h.updateQueue===f&&(h.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function Ui(f,h){return{eventTime:f,lane:h,tag:0,payload:null,callback:null,next:null}}function Ia(f,h,v){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(ct&2)!==0){var T=S.pending;return T===null?h.next=h:(h.next=T.next,T.next=h),S.pending=h,Bi(f,v)}return T=S.interleaved,T===null?(h.next=h,Qg(S)):(h.next=T.next,T.next=h),S.interleaved=h,Bi(f,v)}function Jd(f,h,v){if(h=h.updateQueue,h!==null&&(h=h.shared,(v&4194240)!==0)){var S=h.lanes;S&=f.pendingLanes,v|=S,h.lanes=v,cg(f,v)}}function lS(f,h){var v=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,v===S)){var T=null,R=null;if(v=v.firstBaseUpdate,v!==null){do{var H={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};R===null?T=R=H:R=R.next=H,v=v.next}while(v!==null);R===null?T=R=h:R=R.next=h}else T=R=h;v={baseState:S.baseState,firstBaseUpdate:T,lastBaseUpdate:R,shared:S.shared,effects:S.effects},f.updateQueue=v;return}f=v.lastBaseUpdate,f===null?v.firstBaseUpdate=h:f.next=h,v.lastBaseUpdate=h}function Zd(f,h,v,S){var T=f.updateQueue;Aa=!1;var R=T.firstBaseUpdate,H=T.lastBaseUpdate,Z=T.shared.pending;if(Z!==null){T.shared.pending=null;var ne=Z,he=ne.next;ne.next=null,H===null?R=he:H.next=he,H=ne;var _e=f.alternate;_e!==null&&(_e=_e.updateQueue,Z=_e.lastBaseUpdate,Z!==H&&(Z===null?_e.firstBaseUpdate=he:Z.next=he,_e.lastBaseUpdate=ne))}if(R!==null){var xe=T.baseState;H=0,_e=he=ne=null,Z=R;do{var ye=Z.lane,Me=Z.eventTime;if((S&ye)===ye){_e!==null&&(_e=_e.next={eventTime:Me,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var je=f,Be=Z;switch(ye=h,Me=v,Be.tag){case 1:if(je=Be.payload,typeof je=="function"){xe=je.call(Me,xe,ye);break e}xe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Be.payload,ye=typeof je=="function"?je.call(Me,xe,ye):je,ye==null)break e;xe=N({},xe,ye);break e;case 2:Aa=!0}}Z.callback!==null&&Z.lane!==0&&(f.flags|=64,ye=T.effects,ye===null?T.effects=[Z]:ye.push(Z))}else Me={eventTime:Me,lane:ye,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},_e===null?(he=_e=Me,ne=xe):_e=_e.next=Me,H|=ye;if(Z=Z.next,Z===null){if(Z=T.shared.pending,Z===null)break;ye=Z,Z=ye.next,ye.next=null,T.lastBaseUpdate=ye,T.shared.pending=null}}while(!0);if(_e===null&&(ne=xe),T.baseState=ne,T.firstBaseUpdate=he,T.lastBaseUpdate=_e,h=T.shared.interleaved,h!==null){T=h;do H|=T.lane,T=T.next;while(T!==h)}else R===null&&(T.shared.lanes=0);No|=H,f.lanes=H,f.memoizedState=xe}}function uS(f,h,v){if(f=h.effects,h.effects=null,f!==null)for(h=0;hv?v:4,f(!0);var S=tv.transition;tv.transition={};try{f(!1),h()}finally{xt=v,tv.transition=S}}function AS(){return wr().memoizedState}function T4(f,h,v){var S=Na(f);if(v={lane:S,action:v,hasEagerState:!1,eagerState:null,next:null},IS(f))RS(h,v);else if(v=oS(f,h,v,S),v!==null){var T=Mn();Wr(v,f,S,T),PS(v,h,S)}}function A4(f,h,v){var S=Na(f),T={lane:S,action:v,hasEagerState:!1,eagerState:null,next:null};if(IS(f))RS(h,T);else{var R=f.alternate;if(f.lanes===0&&(R===null||R.lanes===0)&&(R=h.lastRenderedReducer,R!==null))try{var H=h.lastRenderedState,Z=R(H,v);if(T.hasEagerState=!0,T.eagerState=Z,zr(Z,H)){var ne=h.interleaved;ne===null?(T.next=T,Qg(h)):(T.next=ne.next,ne.next=T),h.interleaved=T;return}}catch{}finally{}v=oS(f,h,T,S),v!==null&&(T=Mn(),Wr(v,f,S,T),PS(v,h,S))}}function IS(f){var h=f.alternate;return f===Ut||h!==null&&h===Ut}function RS(f,h){tc=nh=!0;var v=f.pending;v===null?h.next=h:(h.next=v.next,v.next=h),f.pending=h}function PS(f,h,v){if((v&4194240)!==0){var S=h.lanes;S&=f.pendingLanes,v|=S,h.lanes=v,cg(f,v)}}var ah={readContext:_r,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useInsertionEffect:xn,useLayoutEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useMutableSource:xn,useSyncExternalStore:xn,useId:xn,unstable_isNewReconciler:!1},I4={readContext:_r,useCallback:function(f,h){return li().memoizedState=[f,h===void 0?null:h],f},useContext:_r,useEffect:wS,useImperativeHandle:function(f,h,v){return v=v!=null?v.concat([f]):null,rh(4194308,4,ES.bind(null,h,f),v)},useLayoutEffect:function(f,h){return rh(4194308,4,f,h)},useInsertionEffect:function(f,h){return rh(4,2,f,h)},useMemo:function(f,h){var v=li();return h=h===void 0?null:h,f=f(),v.memoizedState=[f,h],f},useReducer:function(f,h,v){var S=li();return h=v!==void 0?v(h):h,S.memoizedState=S.baseState=h,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:h},S.queue=f,f=f.dispatch=T4.bind(null,Ut,f),[S.memoizedState,f]},useRef:function(f){var h=li();return f={current:f},h.memoizedState=f},useState:yS,useDebugValue:lv,useDeferredValue:function(f){return li().memoizedState=f},useTransition:function(){var f=yS(!1),h=f[0];return f=k4.bind(null,f[1]),li().memoizedState=f,[h,f]},useMutableSource:function(){},useSyncExternalStore:function(f,h,v){var S=Ut,T=li();if(Ft){if(v===void 0)throw Error(r(407));v=v()}else{if(v=h(),cn===null)throw Error(r(349));(Oo&30)!==0||hS(S,h,v)}T.memoizedState=v;var R={value:v,getSnapshot:h};return T.queue=R,wS(mS.bind(null,S,R,f),[f]),S.flags|=2048,ic(9,pS.bind(null,S,R,v,h),void 0,null),v},useId:function(){var f=li(),h=cn.identifierPrefix;if(Ft){var v=ji,S=Li;v=(S&~(1<<32-Ur(S)-1)).toString(32)+v,h=":"+h+"R"+v,v=nc++,0")&&(ne=ne.replace("",f.displayName)),ne}while(1<=H&&0<=Z);break}}}finally{M=!1,Error.prepareStackTrace=_}return(f=f?f.displayName||f.name:"")?j(f):""}function ue(f){switch(f.tag){case 5:return j(f.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return f=re(f.type,!1),f;case 11:return f=re(f.type.render,!1),f;case 1:return f=re(f.type,!0),f;default:return""}}function pe(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case A:return"Fragment";case k:return"Portal";case L:return"Profiler";case D:return"StrictMode";case Y:return"Suspense";case G:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case N:return(f.displayName||"Context")+".Consumer";case q:return(f._context.displayName||"Context")+".Provider";case z:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case U:return p=f.displayName||null,p!==null?p:pe(f.type)||"Memo";case W:p=f._payload,f=f._init;try{return pe(f(p))}catch{}}return null}function xe(f){var p=f.type;switch(f.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=p.render,f=f.displayName||f.name||"",p.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(p);case 8:return p===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Ie(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Ne(f){var p=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Le(f){var p=Ne(f)?"checked":"value",_=Object.getOwnPropertyDescriptor(f.constructor.prototype,p),S=""+f[p];if(!f.hasOwnProperty(p)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var T=_.get,R=_.set;return Object.defineProperty(f,p,{configurable:!0,get:function(){return T.call(this)},set:function(H){S=""+H,R.call(this,H)}}),Object.defineProperty(f,p,{enumerable:_.enumerable}),{getValue:function(){return S},setValue:function(H){S=""+H},stopTracking:function(){f._valueTracker=null,delete f[p]}}}}function Ve(f){f._valueTracker||(f._valueTracker=Le(f))}function Oe(f){if(!f)return!1;var p=f._valueTracker;if(!p)return!0;var _=p.getValue(),S="";return f&&(S=Ne(f)?f.checked?"true":"false":f.value),f=S,f!==_?(p.setValue(f),!0):!1}function De(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function We(f,p){var _=p.checked;return F({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??f._wrapperState.initialChecked})}function rt(f,p){var _=p.defaultValue==null?"":p.defaultValue,S=p.checked!=null?p.checked:p.defaultChecked;_=Ie(p.value!=null?p.value:_),f._wrapperState={initialChecked:S,initialValue:_,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function st(f,p){p=p.checked,p!=null&&E(f,"checked",p,!1)}function lt(f,p){st(f,p);var _=Ie(p.value),S=p.type;if(_!=null)S==="number"?(_===0&&f.value===""||f.value!=_)&&(f.value=""+_):f.value!==""+_&&(f.value=""+_);else if(S==="submit"||S==="reset"){f.removeAttribute("value");return}p.hasOwnProperty("value")?Qt(f,p.type,_):p.hasOwnProperty("defaultValue")&&Qt(f,p.type,Ie(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(f.defaultChecked=!!p.defaultChecked)}function Dt(f,p,_){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var S=p.type;if(!(S!=="submit"&&S!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+f._wrapperState.initialValue,_||p===f.value||(f.value=p),f.defaultValue=p}_=f.name,_!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,_!==""&&(f.name=_)}function Qt(f,p,_){(p!=="number"||De(f.ownerDocument)!==f)&&(_==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+_&&(f.defaultValue=""+_))}var mt=Array.isArray;function ft(f,p,_,S){if(f=f.options,p){p={};for(var T=0;T<_.length;T++)p["$"+_[T]]=!0;for(_=0;_"+p.valueOf().toString()+"",p=I.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;p.firstChild;)f.appendChild(p.firstChild)}});function V(f,p){if(p){var _=f.firstChild;if(_&&_===f.lastChild&&_.nodeType===3){_.nodeValue=p;return}}f.textContent=p}var ie={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];Object.keys(ie).forEach(function(f){de.forEach(function(p){p=p+f.charAt(0).toUpperCase()+f.substring(1),ie[p]=ie[f]})});function me(f,p,_){return p==null||typeof p=="boolean"||p===""?"":_||typeof p!="number"||p===0||ie.hasOwnProperty(f)&&ie[f]?(""+p).trim():p+"px"}function Ge(f,p){f=f.style;for(var _ in p)if(p.hasOwnProperty(_)){var S=_.indexOf("--")===0,T=me(_,p[_],S);_==="float"&&(_="cssFloat"),S?f.setProperty(_,T):f[_]=T}}var at=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oe(f,p){if(p){if(at[f]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(r(137,f));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(r(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(r(61))}if(p.style!=null&&typeof p.style!="object")throw Error(r(62))}}function le(f,p){if(f.indexOf("-")===-1)return typeof p.is=="string";switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pe=null;function vt(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var bt=null,Ye=null,Pn=null;function ri(f){if(f=Xu(f)){if(typeof bt!="function")throw Error(r(280));var p=f.stateNode;p&&(p=Hd(p),bt(f.stateNode,f.type,p))}}function wn(f){Ye?Pn?Pn.push(f):Pn=[f]:Ye=f}function Lr(){if(Ye){var f=Ye,p=Pn;if(Pn=Ye=null,ri(f),p)for(f=0;f>>=0,f===0?32:31-(xj(f)/Ej|0)|0}var Cd=64,kd=4194304;function Nu(f){switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function Td(f,p){var _=f.pendingLanes;if(_===0)return 0;var S=0,T=f.suspendedLanes,R=f.pingedLanes,H=_&268435455;if(H!==0){var Z=H&~T;Z!==0?S=Nu(Z):(R&=H,R!==0&&(S=Nu(R)))}else H=_&~T,H!==0?S=Nu(H):R!==0&&(S=Nu(R));if(S===0)return 0;if(p!==0&&p!==S&&(p&T)===0&&(T=S&-S,R=p&-p,T>=R||T===16&&(R&4194240)!==0))return p;if((S&4)!==0&&(S|=_&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=S;0_;_++)p.push(f);return p}function Mu(f,p,_){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-Ur(p),f[p]=_}function Tj(f,p){var _=f.pendingLanes&~p;f.pendingLanes=p,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=p,f.mutableReadLanes&=p,f.entangledLanes&=p,p=f.entanglements;var S=f.eventTimes;for(f=f.expirationTimes;0<_;){var T=31-Ur(_),R=1<=$u),wE=" ",bE=!1;function xE(f,p){switch(f){case"keyup":return t4.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function EE(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Bs=!1;function r4(f,p){switch(f){case"compositionend":return EE(p);case"keypress":return p.which!==32?null:(bE=!0,wE);case"textInput":return f=p.data,f===wE&&bE?null:f;default:return null}}function i4(f,p){if(Bs)return f==="compositionend"||!xg&&xE(f,p)?(f=pE(),Od=gg=xa=null,Bs=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:_,offset:p-f};f=S}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=RE(_)}}function OE(f,p){return f&&p?f===p?!0:f&&f.nodeType===3?!1:p&&p.nodeType===3?OE(f,p.parentNode):"contains"in f?f.contains(p):f.compareDocumentPosition?!!(f.compareDocumentPosition(p)&16):!1:!1}function NE(){for(var f=window,p=De();p instanceof f.HTMLIFrameElement;){try{var _=typeof p.contentWindow.location.href=="string"}catch{_=!1}if(_)f=p.contentWindow;else break;p=De(f.document)}return p}function Cg(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p&&(p==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||p==="textarea"||f.contentEditable==="true")}function h4(f){var p=NE(),_=f.focusedElem,S=f.selectionRange;if(p!==_&&_&&_.ownerDocument&&OE(_.ownerDocument.documentElement,_)){if(S!==null&&Cg(_)){if(p=S.start,f=S.end,f===void 0&&(f=p),"selectionStart"in _)_.selectionStart=p,_.selectionEnd=Math.min(f,_.value.length);else if(f=(p=_.ownerDocument||document)&&p.defaultView||window,f.getSelection){f=f.getSelection();var T=_.textContent.length,R=Math.min(S.start,T);S=S.end===void 0?R:Math.min(S.end,T),!f.extend&&R>S&&(T=S,S=R,R=T),T=PE(_,R);var H=PE(_,S);T&&H&&(f.rangeCount!==1||f.anchorNode!==T.node||f.anchorOffset!==T.offset||f.focusNode!==H.node||f.focusOffset!==H.offset)&&(p=p.createRange(),p.setStart(T.node,T.offset),f.removeAllRanges(),R>S?(f.addRange(p),f.extend(H.node,H.offset)):(p.setEnd(H.node,H.offset),f.addRange(p)))}}for(p=[],f=_;f=f.parentNode;)f.nodeType===1&&p.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_=document.documentMode,Us=null,kg=null,Wu=null,Tg=!1;function ME(f,p,_){var S=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;Tg||Us==null||Us!==De(S)||(S=Us,"selectionStart"in S&&Cg(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Wu&&Gu(Wu,S)||(Wu=S,S=Ud(kg,"onSelect"),0Gs||(f.current=Bg[Gs],Bg[Gs]=null,Gs--)}function St(f,p){Gs++,Bg[Gs]=f.current,f.current=p}var ka={},bn=Ca(ka),zn=Ca(!1),To=ka;function Ws(f,p){var _=f.type.contextTypes;if(!_)return ka;var S=f.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===p)return S.__reactInternalMemoizedMaskedChildContext;var T={},R;for(R in _)T[R]=p[R];return S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=T),T}function $n(f){return f=f.childContextTypes,f!=null}function qd(){It(zn),It(bn)}function QE(f,p,_){if(bn.current!==ka)throw Error(r(168));St(bn,p),St(zn,_)}function YE(f,p,_){var S=f.stateNode;if(p=p.childContextTypes,typeof S.getChildContext!="function")return _;S=S.getChildContext();for(var T in S)if(!(T in p))throw Error(r(108,xe(f)||"Unknown",T));return F({},_,S)}function Gd(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||ka,To=bn.current,St(bn,f),St(zn,zn.current),!0}function XE(f,p,_){var S=f.stateNode;if(!S)throw Error(r(169));_?(f=YE(f,p,To),S.__reactInternalMemoizedMergedChildContext=f,It(zn),It(bn),St(bn,f)):It(zn),St(zn,_)}var Fi=null,Wd=!1,Ug=!1;function JE(f){Fi===null?Fi=[f]:Fi.push(f)}function C4(f){Wd=!0,JE(f)}function Ta(){if(!Ug&&Fi!==null){Ug=!0;var f=0,p=xt;try{var _=Fi;for(xt=1;f<_.length;f++){var S=_[f];do S=S(!0);while(S!==null)}Fi=null,Wd=!1}catch(T){throw Fi!==null&&(Fi=Fi.slice(f+1)),xd(lg,Ta),T}finally{xt=p,Ug=!1}}return null}var Vs=[],Ks=0,Vd=null,Kd=0,vr=[],yr=0,Ao=null,Li=1,ji="";function Io(f,p){Vs[Ks++]=Kd,Vs[Ks++]=Vd,Vd=f,Kd=p}function ZE(f,p,_){vr[yr++]=Li,vr[yr++]=ji,vr[yr++]=Ao,Ao=f;var S=Li;f=ji;var T=32-Ur(S)-1;S&=~(1<>=H,T-=H,Li=1<<32-Ur(p)+T|_<Ke?(fn=qe,qe=null):fn=qe.sibling;var dt=ye(ce,qe,fe[Ke],ke);if(dt===null){qe===null&&(qe=fn);break}f&&qe&&dt.alternate===null&&p(ce,qe),se=R(dt,se,Ke),He===null?ze=dt:He.sibling=dt,He=dt,qe=fn}if(Ke===fe.length)return _(ce,qe),Ft&&Io(ce,Ke),ze;if(qe===null){for(;KeKe?(fn=qe,qe=null):fn=qe.sibling;var Fa=ye(ce,qe,dt.value,ke);if(Fa===null){qe===null&&(qe=fn);break}f&&qe&&Fa.alternate===null&&p(ce,qe),se=R(Fa,se,Ke),He===null?ze=Fa:He.sibling=Fa,He=Fa,qe=fn}if(dt.done)return _(ce,qe),Ft&&Io(ce,Ke),ze;if(qe===null){for(;!dt.done;Ke++,dt=fe.next())dt=Ee(ce,dt.value,ke),dt!==null&&(se=R(dt,se,Ke),He===null?ze=dt:He.sibling=dt,He=dt);return Ft&&Io(ce,Ke),ze}for(qe=S(ce,qe);!dt.done;Ke++,dt=fe.next())dt=Me(qe,ce,Ke,dt.value,ke),dt!==null&&(f&&dt.alternate!==null&&qe.delete(dt.key===null?Ke:dt.key),se=R(dt,se,Ke),He===null?ze=dt:He.sibling=dt,He=dt);return f&&qe.forEach(function(aB){return p(ce,aB)}),Ft&&Io(ce,Ke),ze}function Ht(ce,se,fe,ke){if(typeof fe=="object"&&fe!==null&&fe.type===A&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case v:e:{for(var ze=fe.key,He=se;He!==null;){if(He.key===ze){if(ze=fe.type,ze===A){if(He.tag===7){_(ce,He.sibling),se=T(He,fe.props.children),se.return=ce,ce=se;break e}}else if(He.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===W&&iS(ze)===He.type){_(ce,He.sibling),se=T(He,fe.props),se.ref=Ju(ce,He,fe),se.return=ce,ce=se;break e}_(ce,He);break}else p(ce,He);He=He.sibling}fe.type===A?(se=Lo(fe.props.children,ce.mode,ke,fe.key),se.return=ce,ce=se):(ke=wh(fe.type,fe.key,fe.props,null,ce.mode,ke),ke.ref=Ju(ce,se,fe),ke.return=ce,ce=ke)}return H(ce);case k:e:{for(He=fe.key;se!==null;){if(se.key===He)if(se.tag===4&&se.stateNode.containerInfo===fe.containerInfo&&se.stateNode.implementation===fe.implementation){_(ce,se.sibling),se=T(se,fe.children||[]),se.return=ce,ce=se;break e}else{_(ce,se);break}else p(ce,se);se=se.sibling}se=Lv(fe,ce.mode,ke),se.return=ce,ce=se}return H(ce);case W:return He=fe._init,Ht(ce,se,He(fe._payload),ke)}if(mt(fe))return je(ce,se,fe,ke);if(K(fe))return Be(ce,se,fe,ke);Yd(ce,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"?(fe=""+fe,se!==null&&se.tag===6?(_(ce,se.sibling),se=T(se,fe),se.return=ce,ce=se):(_(ce,se),se=Fv(fe,ce.mode,ke),se.return=ce,ce=se),H(ce)):_(ce,se)}return Ht}var Ys=aS(!0),oS=aS(!1),Xd=Ca(null),Jd=null,Xs=null,Wg=null;function Vg(){Wg=Xs=Jd=null}function Kg(f){var p=Xd.current;It(Xd),f._currentValue=p}function Qg(f,p,_){for(;f!==null;){var S=f.alternate;if((f.childLanes&p)!==p?(f.childLanes|=p,S!==null&&(S.childLanes|=p)):S!==null&&(S.childLanes&p)!==p&&(S.childLanes|=p),f===_)break;f=f.return}}function Js(f,p){Jd=f,Wg=Xs=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&p)!==0&&(Hn=!0),f.firstContext=null)}function _r(f){var p=f._currentValue;if(Wg!==f)if(f={context:f,memoizedValue:p,next:null},Xs===null){if(Jd===null)throw Error(r(308));Xs=f,Jd.dependencies={lanes:0,firstContext:f}}else Xs=Xs.next=f;return p}var Ro=null;function Yg(f){Ro===null?Ro=[f]:Ro.push(f)}function sS(f,p,_,S){var T=p.interleaved;return T===null?(_.next=_,Yg(p)):(_.next=T.next,T.next=_),p.interleaved=_,Bi(f,S)}function Bi(f,p){f.lanes|=p;var _=f.alternate;for(_!==null&&(_.lanes|=p),_=f,f=f.return;f!==null;)f.childLanes|=p,_=f.alternate,_!==null&&(_.childLanes|=p),_=f,f=f.return;return _.tag===3?_.stateNode:null}var Aa=!1;function Xg(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lS(f,p){f=f.updateQueue,p.updateQueue===f&&(p.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function Ui(f,p){return{eventTime:f,lane:p,tag:0,payload:null,callback:null,next:null}}function Ia(f,p,_){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(ct&2)!==0){var T=S.pending;return T===null?p.next=p:(p.next=T.next,T.next=p),S.pending=p,Bi(f,_)}return T=S.interleaved,T===null?(p.next=p,Yg(S)):(p.next=T.next,T.next=p),S.interleaved=p,Bi(f,_)}function Zd(f,p,_){if(p=p.updateQueue,p!==null&&(p=p.shared,(_&4194240)!==0)){var S=p.lanes;S&=f.pendingLanes,_|=S,p.lanes=_,fg(f,_)}}function uS(f,p){var _=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,_===S)){var T=null,R=null;if(_=_.firstBaseUpdate,_!==null){do{var H={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};R===null?T=R=H:R=R.next=H,_=_.next}while(_!==null);R===null?T=R=p:R=R.next=p}else T=R=p;_={baseState:S.baseState,firstBaseUpdate:T,lastBaseUpdate:R,shared:S.shared,effects:S.effects},f.updateQueue=_;return}f=_.lastBaseUpdate,f===null?_.firstBaseUpdate=p:f.next=p,_.lastBaseUpdate=p}function eh(f,p,_,S){var T=f.updateQueue;Aa=!1;var R=T.firstBaseUpdate,H=T.lastBaseUpdate,Z=T.shared.pending;if(Z!==null){T.shared.pending=null;var ne=Z,he=ne.next;ne.next=null,H===null?R=he:H.next=he,H=ne;var _e=f.alternate;_e!==null&&(_e=_e.updateQueue,Z=_e.lastBaseUpdate,Z!==H&&(Z===null?_e.firstBaseUpdate=he:Z.next=he,_e.lastBaseUpdate=ne))}if(R!==null){var Ee=T.baseState;H=0,_e=he=ne=null,Z=R;do{var ye=Z.lane,Me=Z.eventTime;if((S&ye)===ye){_e!==null&&(_e=_e.next={eventTime:Me,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var je=f,Be=Z;switch(ye=p,Me=_,Be.tag){case 1:if(je=Be.payload,typeof je=="function"){Ee=je.call(Me,Ee,ye);break e}Ee=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Be.payload,ye=typeof je=="function"?je.call(Me,Ee,ye):je,ye==null)break e;Ee=F({},Ee,ye);break e;case 2:Aa=!0}}Z.callback!==null&&Z.lane!==0&&(f.flags|=64,ye=T.effects,ye===null?T.effects=[Z]:ye.push(Z))}else Me={eventTime:Me,lane:ye,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},_e===null?(he=_e=Me,ne=Ee):_e=_e.next=Me,H|=ye;if(Z=Z.next,Z===null){if(Z=T.shared.pending,Z===null)break;ye=Z,Z=ye.next,ye.next=null,T.lastBaseUpdate=ye,T.shared.pending=null}}while(!0);if(_e===null&&(ne=Ee),T.baseState=ne,T.firstBaseUpdate=he,T.lastBaseUpdate=_e,p=T.shared.interleaved,p!==null){T=p;do H|=T.lane,T=T.next;while(T!==p)}else R===null&&(T.shared.lanes=0);No|=H,f.lanes=H,f.memoizedState=Ee}}function cS(f,p,_){if(f=p.effects,p.effects=null,f!==null)for(p=0;p_?_:4,f(!0);var S=nv.transition;nv.transition={};try{f(!1),p()}finally{xt=_,nv.transition=S}}function IS(){return wr().memoizedState}function I4(f,p,_){var S=Na(f);if(_={lane:S,action:_,hasEagerState:!1,eagerState:null,next:null},RS(f))PS(p,_);else if(_=sS(f,p,_,S),_!==null){var T=Mn();Wr(_,f,S,T),OS(_,p,S)}}function R4(f,p,_){var S=Na(f),T={lane:S,action:_,hasEagerState:!1,eagerState:null,next:null};if(RS(f))PS(p,T);else{var R=f.alternate;if(f.lanes===0&&(R===null||R.lanes===0)&&(R=p.lastRenderedReducer,R!==null))try{var H=p.lastRenderedState,Z=R(H,_);if(T.hasEagerState=!0,T.eagerState=Z,zr(Z,H)){var ne=p.interleaved;ne===null?(T.next=T,Yg(p)):(T.next=ne.next,ne.next=T),p.interleaved=T;return}}catch{}finally{}_=sS(f,p,T,S),_!==null&&(T=Mn(),Wr(_,f,S,T),OS(_,p,S))}}function RS(f){var p=f.alternate;return f===Ut||p!==null&&p===Ut}function PS(f,p){nc=rh=!0;var _=f.pending;_===null?p.next=p:(p.next=_.next,_.next=p),f.pending=p}function OS(f,p,_){if((_&4194240)!==0){var S=p.lanes;S&=f.pendingLanes,_|=S,p.lanes=_,fg(f,_)}}var oh={readContext:_r,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useInsertionEffect:xn,useLayoutEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useMutableSource:xn,useSyncExternalStore:xn,useId:xn,unstable_isNewReconciler:!1},P4={readContext:_r,useCallback:function(f,p){return li().memoizedState=[f,p===void 0?null:p],f},useContext:_r,useEffect:bS,useImperativeHandle:function(f,p,_){return _=_!=null?_.concat([f]):null,ih(4194308,4,SS.bind(null,p,f),_)},useLayoutEffect:function(f,p){return ih(4194308,4,f,p)},useInsertionEffect:function(f,p){return ih(4,2,f,p)},useMemo:function(f,p){var _=li();return p=p===void 0?null:p,f=f(),_.memoizedState=[f,p],f},useReducer:function(f,p,_){var S=li();return p=_!==void 0?_(p):p,S.memoizedState=S.baseState=p,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:p},S.queue=f,f=f.dispatch=I4.bind(null,Ut,f),[S.memoizedState,f]},useRef:function(f){var p=li();return f={current:f},p.memoizedState=f},useState:_S,useDebugValue:uv,useDeferredValue:function(f){return li().memoizedState=f},useTransition:function(){var f=_S(!1),p=f[0];return f=A4.bind(null,f[1]),li().memoizedState=f,[p,f]},useMutableSource:function(){},useSyncExternalStore:function(f,p,_){var S=Ut,T=li();if(Ft){if(_===void 0)throw Error(r(407));_=_()}else{if(_=p(),cn===null)throw Error(r(349));(Oo&30)!==0||pS(S,p,_)}T.memoizedState=_;var R={value:_,getSnapshot:p};return T.queue=R,bS(gS.bind(null,S,R,f),[f]),S.flags|=2048,ac(9,mS.bind(null,S,R,_,p),void 0,null),_},useId:function(){var f=li(),p=cn.identifierPrefix;if(Ft){var _=ji,S=Li;_=(S&~(1<<32-Ur(S)-1)).toString(32)+_,p=":"+p+"R"+_,_=rc++,0<_&&(p+="H"+_.toString(32)),p+=":"}else _=T4++,p=":"+p+"r"+_.toString(32)+":";return f.memoizedState=p},unstable_isNewReconciler:!1},O4={readContext:_r,useCallback:kS,useContext:_r,useEffect:lv,useImperativeHandle:CS,useInsertionEffect:xS,useLayoutEffect:ES,useMemo:TS,useReducer:ov,useRef:wS,useState:function(){return ov(ic)},useDebugValue:uv,useDeferredValue:function(f){var p=wr();return AS(p,nn.memoizedState,f)},useTransition:function(){var f=ov(ic)[0],p=wr().memoizedState;return[f,p]},useMutableSource:dS,useSyncExternalStore:hS,useId:IS,unstable_isNewReconciler:!1},N4={readContext:_r,useCallback:kS,useContext:_r,useEffect:lv,useImperativeHandle:CS,useInsertionEffect:xS,useLayoutEffect:ES,useMemo:TS,useReducer:sv,useRef:wS,useState:function(){return sv(ic)},useDebugValue:uv,useDeferredValue:function(f){var p=wr();return nn===null?p.memoizedState=f:AS(p,nn.memoizedState,f)},useTransition:function(){var f=sv(ic)[0],p=wr().memoizedState;return[f,p]},useMutableSource:dS,useSyncExternalStore:hS,useId:IS,unstable_isNewReconciler:!1};function Hr(f,p){if(f&&f.defaultProps){p=F({},p),f=f.defaultProps;for(var _ in f)p[_]===void 0&&(p[_]=f[_]);return p}return p}function cv(f,p,_,S){p=f.memoizedState,_=_(S,p),_=_==null?p:F({},p,_),f.memoizedState=_,f.lanes===0&&(f.updateQueue.baseState=_)}var sh={isMounted:function(f){return(f=f._reactInternals)?Br(f)===f:!1},enqueueSetState:function(f,p,_){f=f._reactInternals;var S=Mn(),T=Na(f),R=Ui(S,T);R.payload=p,_!=null&&(R.callback=_),p=Ia(f,R,T),p!==null&&(Wr(p,f,T,S),Zd(p,f,T))},enqueueReplaceState:function(f,p,_){f=f._reactInternals;var S=Mn(),T=Na(f),R=Ui(S,T);R.tag=1,R.payload=p,_!=null&&(R.callback=_),p=Ia(f,R,T),p!==null&&(Wr(p,f,T,S),Zd(p,f,T))},enqueueForceUpdate:function(f,p){f=f._reactInternals;var _=Mn(),S=Na(f),T=Ui(_,S);T.tag=2,p!=null&&(T.callback=p),p=Ia(f,T,S),p!==null&&(Wr(p,f,S,_),Zd(p,f,S))}};function NS(f,p,_,S,T,R,H){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(S,R,H):p.prototype&&p.prototype.isPureReactComponent?!Gu(_,S)||!Gu(T,R):!0}function MS(f,p,_){var S=!1,T=ka,R=p.contextType;return typeof R=="object"&&R!==null?R=_r(R):(T=$n(p)?To:bn.current,S=p.contextTypes,R=(S=S!=null)?Ws(f,T):ka),p=new p(_,R),f.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=sh,f.stateNode=p,p._reactInternals=f,S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=T,f.__reactInternalMemoizedMaskedChildContext=R),p}function DS(f,p,_,S){f=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(_,S),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(_,S),p.state!==f&&sh.enqueueReplaceState(p,p.state,null)}function fv(f,p,_,S){var T=f.stateNode;T.props=_,T.state=f.memoizedState,T.refs={},Xg(f);var R=p.contextType;typeof R=="object"&&R!==null?T.context=_r(R):(R=$n(p)?To:bn.current,T.context=Ws(f,R)),T.state=f.memoizedState,R=p.getDerivedStateFromProps,typeof R=="function"&&(cv(f,p,R,_),T.state=f.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(p=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),p!==T.state&&sh.enqueueReplaceState(T,T.state,null),eh(f,_,T,S),T.state=f.memoizedState),typeof T.componentDidMount=="function"&&(f.flags|=4194308)}function el(f,p){try{var _="",S=p;do _+=ue(S),S=S.return;while(S);var T=_}catch(R){T=` Error generating stack: `+R.message+` -`+R.stack}return{value:f,source:h,stack:T,digest:null}}function fv(f,h,v){return{value:f,source:null,stack:v??null,digest:h??null}}function dv(f,h){try{console.error(h.value)}catch(v){setTimeout(function(){throw v})}}var O4=typeof WeakMap=="function"?WeakMap:Map;function DS(f,h,v){v=Ui(-1,v),v.tag=3,v.payload={element:null};var S=h.value;return v.callback=function(){hh||(hh=!0,Tv=S),dv(f,h)},v}function FS(f,h,v){v=Ui(-1,v),v.tag=3;var S=f.type.getDerivedStateFromError;if(typeof S=="function"){var T=h.value;v.payload=function(){return S(T)},v.callback=function(){dv(f,h)}}var R=f.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(v.callback=function(){dv(f,h),typeof S!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var H=h.stack;this.componentDidCatch(h.value,{componentStack:H!==null?H:""})}),v}function LS(f,h,v){var S=f.pingCache;if(S===null){S=f.pingCache=new O4;var T=new Set;S.set(h,T)}else T=S.get(h),T===void 0&&(T=new Set,S.set(h,T));T.has(v)||(T.add(v),f=W4.bind(null,f,h,v),h.then(f,f))}function jS(f){do{var h;if((h=f.tag===13)&&(h=f.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return f;f=f.return}while(f!==null);return null}function BS(f,h,v,S,T){return(f.mode&1)===0?(f===h?f.flags|=65536:(f.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(h=Ui(-1,1),h.tag=2,Ia(v,h,1))),v.lanes|=1),f):(f.flags|=65536,f.lanes=T,f)}var N4=C.ReactCurrentOwner,Hn=!1;function Nn(f,h,v,S){h.child=f===null?aS(h,null,v,S):Qs(h,f.child,v,S)}function US(f,h,v,S,T){v=v.render;var R=h.ref;return Xs(h,T),S=rv(f,h,v,S,R,T),v=iv(),f!==null&&!Hn?(h.updateQueue=f.updateQueue,h.flags&=-2053,f.lanes&=~T,zi(f,h,T)):(Ft&&v&&Ug(h),h.flags|=1,Nn(f,h,S,T),h.child)}function zS(f,h,v,S,T){if(f===null){var R=v.type;return typeof R=="function"&&!Mv(R)&&R.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(h.tag=15,h.type=R,$S(f,h,R,S,T)):(f=_h(v.type,null,S,h,h.mode,T),f.ref=h.ref,f.return=h,h.child=f)}if(R=f.child,(f.lanes&T)===0){var H=R.memoizedProps;if(v=v.compare,v=v!==null?v:qu,v(H,S)&&f.ref===h.ref)return zi(f,h,T)}return h.flags|=1,f=Da(R,S),f.ref=h.ref,f.return=h,h.child=f}function $S(f,h,v,S,T){if(f!==null){var R=f.memoizedProps;if(qu(R,S)&&f.ref===h.ref)if(Hn=!1,h.pendingProps=S=R,(f.lanes&T)!==0)(f.flags&131072)!==0&&(Hn=!0);else return h.lanes=f.lanes,zi(f,h,T)}return hv(f,h,v,S,T)}function HS(f,h,v){var S=h.pendingProps,T=S.children,R=f!==null?f.memoizedState:null;if(S.mode==="hidden")if((h.mode&1)===0)h.memoizedState={baseLanes:0,cachePool:null,transitions:null},St(tl,sr),sr|=v;else{if((v&1073741824)===0)return f=R!==null?R.baseLanes|v:v,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:f,cachePool:null,transitions:null},h.updateQueue=null,St(tl,sr),sr|=f,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},S=R!==null?R.baseLanes:v,St(tl,sr),sr|=S}else R!==null?(S=R.baseLanes|v,h.memoizedState=null):S=v,St(tl,sr),sr|=S;return Nn(f,h,T,v),h.child}function qS(f,h){var v=h.ref;(f===null&&v!==null||f!==null&&f.ref!==v)&&(h.flags|=512,h.flags|=2097152)}function hv(f,h,v,S,T){var R=$n(v)?To:bn.current;return R=Gs(h,R),Xs(h,T),v=rv(f,h,v,S,R,T),S=iv(),f!==null&&!Hn?(h.updateQueue=f.updateQueue,h.flags&=-2053,f.lanes&=~T,zi(f,h,T)):(Ft&&S&&Ug(h),h.flags|=1,Nn(f,h,v,T),h.child)}function GS(f,h,v,S,T){if($n(v)){var R=!0;qd(h)}else R=!1;if(Xs(h,T),h.stateNode===null)lh(f,h),NS(h,v,S),cv(h,v,S,T),S=!0;else if(f===null){var H=h.stateNode,Z=h.memoizedProps;H.props=Z;var ne=H.context,he=v.contextType;typeof he=="object"&&he!==null?he=_r(he):(he=$n(v)?To:bn.current,he=Gs(h,he));var _e=v.getDerivedStateFromProps,xe=typeof _e=="function"||typeof H.getSnapshotBeforeUpdate=="function";xe||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(Z!==S||ne!==he)&&MS(h,H,S,he),Aa=!1;var ye=h.memoizedState;H.state=ye,Zd(h,S,H,T),ne=h.memoizedState,Z!==S||ye!==ne||zn.current||Aa?(typeof _e=="function"&&(uv(h,v,_e,S),ne=h.memoizedState),(Z=Aa||OS(h,v,Z,S,ye,ne,he))?(xe||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(h.flags|=4194308)):(typeof H.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=S,h.memoizedState=ne),H.props=S,H.state=ne,H.context=he,S=Z):(typeof H.componentDidMount=="function"&&(h.flags|=4194308),S=!1)}else{H=h.stateNode,sS(f,h),Z=h.memoizedProps,he=h.type===h.elementType?Z:Hr(h.type,Z),H.props=he,xe=h.pendingProps,ye=H.context,ne=v.contextType,typeof ne=="object"&&ne!==null?ne=_r(ne):(ne=$n(v)?To:bn.current,ne=Gs(h,ne));var Me=v.getDerivedStateFromProps;(_e=typeof Me=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(Z!==xe||ye!==ne)&&MS(h,H,S,ne),Aa=!1,ye=h.memoizedState,H.state=ye,Zd(h,S,H,T);var je=h.memoizedState;Z!==xe||ye!==je||zn.current||Aa?(typeof Me=="function"&&(uv(h,v,Me,S),je=h.memoizedState),(he=Aa||OS(h,v,he,S,ye,je,ne)||!1)?(_e||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(S,je,ne),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(S,je,ne)),typeof H.componentDidUpdate=="function"&&(h.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof H.componentDidUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=1024),h.memoizedProps=S,h.memoizedState=je),H.props=S,H.state=je,H.context=ne,S=he):(typeof H.componentDidUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=1024),S=!1)}return pv(f,h,v,S,R,T)}function pv(f,h,v,S,T,R){qS(f,h);var H=(h.flags&128)!==0;if(!S&&!H)return T&&YE(h,v,!1),zi(f,h,R);S=h.stateNode,N4.current=h;var Z=H&&typeof v.getDerivedStateFromError!="function"?null:S.render();return h.flags|=1,f!==null&&H?(h.child=Qs(h,f.child,null,R),h.child=Qs(h,null,Z,R)):Nn(f,h,Z,R),h.memoizedState=S.state,T&&YE(h,v,!0),h.child}function WS(f){var h=f.stateNode;h.pendingContext?KE(f,h.pendingContext,h.pendingContext!==h.context):h.context&&KE(f,h.context,!1),Xg(f,h.containerInfo)}function VS(f,h,v,S,T){return Ks(),qg(T),h.flags|=256,Nn(f,h,v,S),h.child}var mv={dehydrated:null,treeContext:null,retryLane:0};function gv(f){return{baseLanes:f,cachePool:null,transitions:null}}function KS(f,h,v){var S=h.pendingProps,T=Bt.current,R=!1,H=(h.flags&128)!==0,Z;if((Z=H)||(Z=f!==null&&f.memoizedState===null?!1:(T&2)!==0),Z?(R=!0,h.flags&=-129):(f===null||f.memoizedState!==null)&&(T|=1),St(Bt,T&1),f===null)return Hg(h),f=h.memoizedState,f!==null&&(f=f.dehydrated,f!==null)?((h.mode&1)===0?h.lanes=1:f.data==="$!"?h.lanes=8:h.lanes=1073741824,null):(H=S.children,f=S.fallback,R?(S=h.mode,R=h.child,H={mode:"hidden",children:H},(S&1)===0&&R!==null?(R.childLanes=0,R.pendingProps=H):R=wh(H,S,0,null),f=Lo(f,S,v,null),R.return=h,f.return=h,R.sibling=f,h.child=R,h.child.memoizedState=gv(v),h.memoizedState=mv,f):vv(h,H));if(T=f.memoizedState,T!==null&&(Z=T.dehydrated,Z!==null))return M4(f,h,H,S,Z,T,v);if(R){R=S.fallback,H=h.mode,T=f.child,Z=T.sibling;var ne={mode:"hidden",children:S.children};return(H&1)===0&&h.child!==T?(S=h.child,S.childLanes=0,S.pendingProps=ne,h.deletions=null):(S=Da(T,ne),S.subtreeFlags=T.subtreeFlags&14680064),Z!==null?R=Da(Z,R):(R=Lo(R,H,v,null),R.flags|=2),R.return=h,S.return=h,S.sibling=R,h.child=S,S=R,R=h.child,H=f.child.memoizedState,H=H===null?gv(v):{baseLanes:H.baseLanes|v,cachePool:null,transitions:H.transitions},R.memoizedState=H,R.childLanes=f.childLanes&~v,h.memoizedState=mv,S}return R=f.child,f=R.sibling,S=Da(R,{mode:"visible",children:S.children}),(h.mode&1)===0&&(S.lanes=v),S.return=h,S.sibling=null,f!==null&&(v=h.deletions,v===null?(h.deletions=[f],h.flags|=16):v.push(f)),h.child=S,h.memoizedState=null,S}function vv(f,h){return h=wh({mode:"visible",children:h},f.mode,0,null),h.return=f,f.child=h}function sh(f,h,v,S){return S!==null&&qg(S),Qs(h,f.child,null,v),f=vv(h,h.pendingProps.children),f.flags|=2,h.memoizedState=null,f}function M4(f,h,v,S,T,R,H){if(v)return h.flags&256?(h.flags&=-257,S=fv(Error(r(422))),sh(f,h,H,S)):h.memoizedState!==null?(h.child=f.child,h.flags|=128,null):(R=S.fallback,T=h.mode,S=wh({mode:"visible",children:S.children},T,0,null),R=Lo(R,T,H,null),R.flags|=2,S.return=h,R.return=h,S.sibling=R,h.child=S,(h.mode&1)!==0&&Qs(h,f.child,null,H),h.child.memoizedState=gv(H),h.memoizedState=mv,R);if((h.mode&1)===0)return sh(f,h,H,null);if(T.data==="$!"){if(S=T.nextSibling&&T.nextSibling.dataset,S)var Z=S.dgst;return S=Z,R=Error(r(419)),S=fv(R,S,void 0),sh(f,h,H,S)}if(Z=(H&f.childLanes)!==0,Hn||Z){if(S=cn,S!==null){switch(H&-H){case 4:T=2;break;case 16:T=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:T=32;break;case 536870912:T=268435456;break;default:T=0}T=(T&(S.suspendedLanes|H))!==0?0:T,T!==0&&T!==R.retryLane&&(R.retryLane=T,Bi(f,T),Wr(S,f,T,-1))}return Nv(),S=fv(Error(r(421))),sh(f,h,H,S)}return T.data==="$?"?(h.flags|=128,h.child=f.child,h=V4.bind(null,f),T._reactRetry=h,null):(f=R.treeContext,or=Sa(T.nextSibling),ar=h,Ft=!0,$r=null,f!==null&&(vr[yr++]=Li,vr[yr++]=ji,vr[yr++]=Ao,Li=f.id,ji=f.overflow,Ao=h),h=vv(h,S.children),h.flags|=4096,h)}function QS(f,h,v){f.lanes|=h;var S=f.alternate;S!==null&&(S.lanes|=h),Kg(f.return,h,v)}function yv(f,h,v,S,T){var R=f.memoizedState;R===null?f.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:S,tail:v,tailMode:T}:(R.isBackwards=h,R.rendering=null,R.renderingStartTime=0,R.last=S,R.tail=v,R.tailMode=T)}function YS(f,h,v){var S=h.pendingProps,T=S.revealOrder,R=S.tail;if(Nn(f,h,S.children,v),S=Bt.current,(S&2)!==0)S=S&1|2,h.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=h.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&QS(f,v,h);else if(f.tag===19)QS(f,v,h);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===h)break e;for(;f.sibling===null;){if(f.return===null||f.return===h)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}S&=1}if(St(Bt,S),(h.mode&1)===0)h.memoizedState=null;else switch(T){case"forwards":for(v=h.child,T=null;v!==null;)f=v.alternate,f!==null&&eh(f)===null&&(T=v),v=v.sibling;v=T,v===null?(T=h.child,h.child=null):(T=v.sibling,v.sibling=null),yv(h,!1,T,v,R);break;case"backwards":for(v=null,T=h.child,h.child=null;T!==null;){if(f=T.alternate,f!==null&&eh(f)===null){h.child=T;break}f=T.sibling,T.sibling=v,v=T,T=f}yv(h,!0,v,null,R);break;case"together":yv(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function lh(f,h){(h.mode&1)===0&&f!==null&&(f.alternate=null,h.alternate=null,h.flags|=2)}function zi(f,h,v){if(f!==null&&(h.dependencies=f.dependencies),No|=h.lanes,(v&h.childLanes)===0)return null;if(f!==null&&h.child!==f.child)throw Error(r(153));if(h.child!==null){for(f=h.child,v=Da(f,f.pendingProps),h.child=v,v.return=h;f.sibling!==null;)f=f.sibling,v=v.sibling=Da(f,f.pendingProps),v.return=h;v.sibling=null}return h.child}function D4(f,h,v){switch(h.tag){case 3:WS(h),Ks();break;case 5:cS(h);break;case 1:$n(h.type)&&qd(h);break;case 4:Xg(h,h.stateNode.containerInfo);break;case 10:var S=h.type._context,T=h.memoizedProps.value;St(Yd,S._currentValue),S._currentValue=T;break;case 13:if(S=h.memoizedState,S!==null)return S.dehydrated!==null?(St(Bt,Bt.current&1),h.flags|=128,null):(v&h.child.childLanes)!==0?KS(f,h,v):(St(Bt,Bt.current&1),f=zi(f,h,v),f!==null?f.sibling:null);St(Bt,Bt.current&1);break;case 19:if(S=(v&h.childLanes)!==0,(f.flags&128)!==0){if(S)return YS(f,h,v);h.flags|=128}if(T=h.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),St(Bt,Bt.current),S)break;return null;case 22:case 23:return h.lanes=0,HS(f,h,v)}return zi(f,h,v)}var XS,_v,JS,ZS;XS=function(f,h){for(var v=h.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===h)break;for(;v.sibling===null;){if(v.return===null||v.return===h)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},_v=function(){},JS=function(f,h,v,S){var T=f.memoizedProps;if(T!==S){f=h.stateNode,Po(si.current);var R=null;switch(v){case"input":T=We(f,T),S=We(f,S),R=[];break;case"select":T=N({},T,{value:void 0}),S=N({},S,{value:void 0}),R=[];break;case"textarea":T=gt(f,T),S=gt(f,S),R=[];break;default:typeof T.onClick!="function"&&typeof S.onClick=="function"&&(f.onclick=zd)}oe(v,S);var H;v=null;for(he in T)if(!S.hasOwnProperty(he)&&T.hasOwnProperty(he)&&T[he]!=null)if(he==="style"){var Z=T[he];for(H in Z)Z.hasOwnProperty(H)&&(v||(v={}),v[H]="")}else he!=="dangerouslySetInnerHTML"&&he!=="children"&&he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&he!=="autoFocus"&&(i.hasOwnProperty(he)?R||(R=[]):(R=R||[]).push(he,null));for(he in S){var ne=S[he];if(Z=T!=null?T[he]:void 0,S.hasOwnProperty(he)&&ne!==Z&&(ne!=null||Z!=null))if(he==="style")if(Z){for(H in Z)!Z.hasOwnProperty(H)||ne&&ne.hasOwnProperty(H)||(v||(v={}),v[H]="");for(H in ne)ne.hasOwnProperty(H)&&Z[H]!==ne[H]&&(v||(v={}),v[H]=ne[H])}else v||(R||(R=[]),R.push(he,v)),v=ne;else he==="dangerouslySetInnerHTML"?(ne=ne?ne.__html:void 0,Z=Z?Z.__html:void 0,ne!=null&&Z!==ne&&(R=R||[]).push(he,ne)):he==="children"?typeof ne!="string"&&typeof ne!="number"||(R=R||[]).push(he,""+ne):he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&(i.hasOwnProperty(he)?(ne!=null&&he==="onScroll"&&At("scroll",f),R||Z===ne||(R=[])):(R=R||[]).push(he,ne))}v&&(R=R||[]).push("style",v);var he=R;(h.updateQueue=he)&&(h.flags|=4)}},ZS=function(f,h,v,S){v!==S&&(h.flags|=4)};function ac(f,h){if(!Ft)switch(f.tailMode){case"hidden":h=f.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?f.tail=null:v.sibling=null;break;case"collapsed":v=f.tail;for(var S=null;v!==null;)v.alternate!==null&&(S=v),v=v.sibling;S===null?h||f.tail===null?f.tail=null:f.tail.sibling=null:S.sibling=null}}function En(f){var h=f.alternate!==null&&f.alternate.child===f.child,v=0,S=0;if(h)for(var T=f.child;T!==null;)v|=T.lanes|T.childLanes,S|=T.subtreeFlags&14680064,S|=T.flags&14680064,T.return=f,T=T.sibling;else for(T=f.child;T!==null;)v|=T.lanes|T.childLanes,S|=T.subtreeFlags,S|=T.flags,T.return=f,T=T.sibling;return f.subtreeFlags|=S,f.childLanes=v,h}function F4(f,h,v){var S=h.pendingProps;switch(zg(h),h.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(h),null;case 1:return $n(h.type)&&Hd(),En(h),null;case 3:return S=h.stateNode,Js(),It(zn),It(bn),ev(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),(f===null||f.child===null)&&(Kd(h)?h.flags|=4:f===null||f.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,$r!==null&&(Rv($r),$r=null))),_v(f,h),En(h),null;case 5:Jg(h);var T=Po(ec.current);if(v=h.type,f!==null&&h.stateNode!=null)JS(f,h,v,S,T),f.ref!==h.ref&&(h.flags|=512,h.flags|=2097152);else{if(!S){if(h.stateNode===null)throw Error(r(166));return En(h),null}if(f=Po(si.current),Kd(h)){S=h.stateNode,v=h.type;var R=h.memoizedProps;switch(S[oi]=h,S[Qu]=R,f=(h.mode&1)!==0,v){case"dialog":At("cancel",S),At("close",S);break;case"iframe":case"object":case"embed":At("load",S);break;case"video":case"audio":for(T=0;T<\/script>",f=f.removeChild(f.firstChild)):typeof S.is=="string"?f=H.createElement(v,{is:S.is}):(f=H.createElement(v),v==="select"&&(H=f,S.multiple?H.multiple=!0:S.size&&(H.size=S.size))):f=H.createElementNS(f,v),f[oi]=h,f[Qu]=S,XS(f,h,!1,!1),h.stateNode=f;e:{switch(H=le(v,S),v){case"dialog":At("cancel",f),At("close",f),T=S;break;case"iframe":case"object":case"embed":At("load",f),T=S;break;case"video":case"audio":for(T=0;Tnl&&(h.flags|=128,S=!0,ac(R,!1),h.lanes=4194304)}else{if(!S)if(f=eh(H),f!==null){if(h.flags|=128,S=!0,v=f.updateQueue,v!==null&&(h.updateQueue=v,h.flags|=4),ac(R,!0),R.tail===null&&R.tailMode==="hidden"&&!H.alternate&&!Ft)return En(h),null}else 2*$t()-R.renderingStartTime>nl&&v!==1073741824&&(h.flags|=128,S=!0,ac(R,!1),h.lanes=4194304);R.isBackwards?(H.sibling=h.child,h.child=H):(v=R.last,v!==null?v.sibling=H:h.child=H,R.last=H)}return R.tail!==null?(h=R.tail,R.rendering=h,R.tail=h.sibling,R.renderingStartTime=$t(),h.sibling=null,v=Bt.current,St(Bt,S?v&1|2:v&1),h):(En(h),null);case 22:case 23:return Ov(),S=h.memoizedState!==null,f!==null&&f.memoizedState!==null!==S&&(h.flags|=8192),S&&(h.mode&1)!==0?(sr&1073741824)!==0&&(En(h),h.subtreeFlags&6&&(h.flags|=8192)):En(h),null;case 24:return null;case 25:return null}throw Error(r(156,h.tag))}function L4(f,h){switch(zg(h),h.tag){case 1:return $n(h.type)&&Hd(),f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 3:return Js(),It(zn),It(bn),ev(),f=h.flags,(f&65536)!==0&&(f&128)===0?(h.flags=f&-65537|128,h):null;case 5:return Jg(h),null;case 13:if(It(Bt),f=h.memoizedState,f!==null&&f.dehydrated!==null){if(h.alternate===null)throw Error(r(340));Ks()}return f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 19:return It(Bt),null;case 4:return Js(),null;case 10:return Vg(h.type._context),null;case 22:case 23:return Ov(),null;case 24:return null;default:return null}}var uh=!1,Sn=!1,j4=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function el(f,h){var v=f.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(S){zt(f,h,S)}else v.current=null}function wv(f,h,v){try{v()}catch(S){zt(f,h,S)}}var eC=!1;function B4(f,h){if(Og=Id,f=OE(),Sg(f)){if("selectionStart"in f)var v={start:f.selectionStart,end:f.selectionEnd};else e:{v=(v=f.ownerDocument)&&v.defaultView||window;var S=v.getSelection&&v.getSelection();if(S&&S.rangeCount!==0){v=S.anchorNode;var T=S.anchorOffset,R=S.focusNode;S=S.focusOffset;try{v.nodeType,R.nodeType}catch{v=null;break e}var H=0,Z=-1,ne=-1,he=0,_e=0,xe=f,ye=null;t:for(;;){for(var Me;xe!==v||T!==0&&xe.nodeType!==3||(Z=H+T),xe!==R||S!==0&&xe.nodeType!==3||(ne=H+S),xe.nodeType===3&&(H+=xe.nodeValue.length),(Me=xe.firstChild)!==null;)ye=xe,xe=Me;for(;;){if(xe===f)break t;if(ye===v&&++he===T&&(Z=H),ye===R&&++_e===S&&(ne=H),(Me=xe.nextSibling)!==null)break;xe=ye,ye=xe.parentNode}xe=Me}v=Z===-1||ne===-1?null:{start:Z,end:ne}}else v=null}v=v||{start:0,end:0}}else v=null;for(Ng={focusedElem:f,selectionRange:v},Id=!1,Fe=h;Fe!==null;)if(h=Fe,f=h.child,(h.subtreeFlags&1028)!==0&&f!==null)f.return=h,Fe=f;else for(;Fe!==null;){h=Fe;try{var je=h.alternate;if((h.flags&1024)!==0)switch(h.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var Be=je.memoizedProps,Ht=je.memoizedState,ue=h.stateNode,se=ue.getSnapshotBeforeUpdate(h.elementType===h.type?Be:Hr(h.type,Be),Ht);ue.__reactInternalSnapshotBeforeUpdate=se}break;case 3:var ce=h.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ke){zt(h,h.return,ke)}if(f=h.sibling,f!==null){f.return=h.return,Fe=f;break}Fe=h.return}return je=eC,eC=!1,je}function oc(f,h,v){var S=h.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var T=S=S.next;do{if((T.tag&f)===f){var R=T.destroy;T.destroy=void 0,R!==void 0&&wv(h,v,R)}T=T.next}while(T!==S)}}function ch(f,h){if(h=h.updateQueue,h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&f)===f){var S=v.create;v.destroy=S()}v=v.next}while(v!==h)}}function bv(f){var h=f.ref;if(h!==null){var v=f.stateNode;switch(f.tag){case 5:f=v;break;default:f=v}typeof h=="function"?h(f):h.current=f}}function tC(f){var h=f.alternate;h!==null&&(f.alternate=null,tC(h)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(h=f.stateNode,h!==null&&(delete h[oi],delete h[Qu],delete h[Lg],delete h[b4],delete h[x4])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function nC(f){return f.tag===5||f.tag===3||f.tag===4}function rC(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||nC(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function xv(f,h,v){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?v.nodeType===8?v.parentNode.insertBefore(f,h):v.insertBefore(f,h):(v.nodeType===8?(h=v.parentNode,h.insertBefore(f,v)):(h=v,h.appendChild(f)),v=v._reactRootContainer,v!=null||h.onclick!==null||(h.onclick=zd));else if(S!==4&&(f=f.child,f!==null))for(xv(f,h,v),f=f.sibling;f!==null;)xv(f,h,v),f=f.sibling}function Ev(f,h,v){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?v.insertBefore(f,h):v.appendChild(f);else if(S!==4&&(f=f.child,f!==null))for(Ev(f,h,v),f=f.sibling;f!==null;)Ev(f,h,v),f=f.sibling}var gn=null,qr=!1;function Ra(f,h,v){for(v=v.child;v!==null;)iC(f,h,v),v=v.sibling}function iC(f,h,v){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(Ed,v)}catch{}switch(v.tag){case 5:Sn||el(v,h);case 6:var S=gn,T=qr;gn=null,Ra(f,h,v),gn=S,qr=T,gn!==null&&(qr?(f=gn,v=v.stateNode,f.nodeType===8?f.parentNode.removeChild(v):f.removeChild(v)):gn.removeChild(v.stateNode));break;case 18:gn!==null&&(qr?(f=gn,v=v.stateNode,f.nodeType===8?Fg(f.parentNode,v):f.nodeType===1&&Fg(f,v),ju(f)):Fg(gn,v.stateNode));break;case 4:S=gn,T=qr,gn=v.stateNode.containerInfo,qr=!0,Ra(f,h,v),gn=S,qr=T;break;case 0:case 11:case 14:case 15:if(!Sn&&(S=v.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){T=S=S.next;do{var R=T,H=R.destroy;R=R.tag,H!==void 0&&((R&2)!==0||(R&4)!==0)&&wv(v,h,H),T=T.next}while(T!==S)}Ra(f,h,v);break;case 1:if(!Sn&&(el(v,h),S=v.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=v.memoizedProps,S.state=v.memoizedState,S.componentWillUnmount()}catch(Z){zt(v,h,Z)}Ra(f,h,v);break;case 21:Ra(f,h,v);break;case 22:v.mode&1?(Sn=(S=Sn)||v.memoizedState!==null,Ra(f,h,v),Sn=S):Ra(f,h,v);break;default:Ra(f,h,v)}}function aC(f){var h=f.updateQueue;if(h!==null){f.updateQueue=null;var v=f.stateNode;v===null&&(v=f.stateNode=new j4),h.forEach(function(S){var T=K4.bind(null,f,S);v.has(S)||(v.add(S),S.then(T,T))})}}function Gr(f,h){var v=h.deletions;if(v!==null)for(var S=0;ST&&(T=H),S&=~R}if(S=T,S=$t()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*z4(S/1960))-S,10f?16:f,Oa===null)var S=!1;else{if(f=Oa,Oa=null,mh=0,(ct&6)!==0)throw Error(r(331));var T=ct;for(ct|=4,Fe=f.current;Fe!==null;){var R=Fe,H=R.child;if((Fe.flags&16)!==0){var Z=R.deletions;if(Z!==null){for(var ne=0;ne$t()-kv?Do(f,0):Cv|=v),Gn(f,h)}function yC(f,h){h===0&&((f.mode&1)===0?h=1:(h=Cd,Cd<<=1,(Cd&130023424)===0&&(Cd=4194304)));var v=Mn();f=Bi(f,h),f!==null&&(Nu(f,h,v),Gn(f,v))}function V4(f){var h=f.memoizedState,v=0;h!==null&&(v=h.retryLane),yC(f,v)}function K4(f,h){var v=0;switch(f.tag){case 13:var S=f.stateNode,T=f.memoizedState;T!==null&&(v=T.retryLane);break;case 19:S=f.stateNode;break;default:throw Error(r(314))}S!==null&&S.delete(h),yC(f,v)}var _C;_C=function(f,h,v){if(f!==null)if(f.memoizedProps!==h.pendingProps||zn.current)Hn=!0;else{if((f.lanes&v)===0&&(h.flags&128)===0)return Hn=!1,D4(f,h,v);Hn=(f.flags&131072)!==0}else Hn=!1,Ft&&(h.flags&1048576)!==0&&JE(h,Vd,h.index);switch(h.lanes=0,h.tag){case 2:var S=h.type;lh(f,h),f=h.pendingProps;var T=Gs(h,bn.current);Xs(h,v),T=rv(null,h,S,f,T,v);var R=iv();return h.flags|=1,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0?(h.tag=1,h.memoizedState=null,h.updateQueue=null,$n(S)?(R=!0,qd(h)):R=!1,h.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,Yg(h),T.updater=oh,h.stateNode=T,T._reactInternals=h,cv(h,S,f,v),h=pv(null,h,S,!0,R,v)):(h.tag=0,Ft&&R&&Ug(h),Nn(null,h,T,v),h=h.child),h;case 16:S=h.elementType;e:{switch(lh(f,h),f=h.pendingProps,T=S._init,S=T(S._payload),h.type=S,T=h.tag=Y4(S),f=Hr(S,f),T){case 0:h=hv(null,h,S,f,v);break e;case 1:h=GS(null,h,S,f,v);break e;case 11:h=US(null,h,S,f,v);break e;case 14:h=zS(null,h,S,Hr(S.type,f),v);break e}throw Error(r(306,S,""))}return h;case 0:return S=h.type,T=h.pendingProps,T=h.elementType===S?T:Hr(S,T),hv(f,h,S,T,v);case 1:return S=h.type,T=h.pendingProps,T=h.elementType===S?T:Hr(S,T),GS(f,h,S,T,v);case 3:e:{if(WS(h),f===null)throw Error(r(387));S=h.pendingProps,R=h.memoizedState,T=R.element,sS(f,h),Zd(h,S,null,v);var H=h.memoizedState;if(S=H.element,R.isDehydrated)if(R={element:S,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},h.updateQueue.baseState=R,h.memoizedState=R,h.flags&256){T=Zs(Error(r(423)),h),h=VS(f,h,S,v,T);break e}else if(S!==T){T=Zs(Error(r(424)),h),h=VS(f,h,S,v,T);break e}else for(or=Sa(h.stateNode.containerInfo.firstChild),ar=h,Ft=!0,$r=null,v=aS(h,null,S,v),h.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Ks(),S===T){h=zi(f,h,v);break e}Nn(f,h,S,v)}h=h.child}return h;case 5:return cS(h),f===null&&Hg(h),S=h.type,T=h.pendingProps,R=f!==null?f.memoizedProps:null,H=T.children,Mg(S,T)?H=null:R!==null&&Mg(S,R)&&(h.flags|=32),qS(f,h),Nn(f,h,H,v),h.child;case 6:return f===null&&Hg(h),null;case 13:return KS(f,h,v);case 4:return Xg(h,h.stateNode.containerInfo),S=h.pendingProps,f===null?h.child=Qs(h,null,S,v):Nn(f,h,S,v),h.child;case 11:return S=h.type,T=h.pendingProps,T=h.elementType===S?T:Hr(S,T),US(f,h,S,T,v);case 7:return Nn(f,h,h.pendingProps,v),h.child;case 8:return Nn(f,h,h.pendingProps.children,v),h.child;case 12:return Nn(f,h,h.pendingProps.children,v),h.child;case 10:e:{if(S=h.type._context,T=h.pendingProps,R=h.memoizedProps,H=T.value,St(Yd,S._currentValue),S._currentValue=H,R!==null)if(zr(R.value,H)){if(R.children===T.children&&!zn.current){h=zi(f,h,v);break e}}else for(R=h.child,R!==null&&(R.return=h);R!==null;){var Z=R.dependencies;if(Z!==null){H=R.child;for(var ne=Z.firstContext;ne!==null;){if(ne.context===S){if(R.tag===1){ne=Ui(-1,v&-v),ne.tag=2;var he=R.updateQueue;if(he!==null){he=he.shared;var _e=he.pending;_e===null?ne.next=ne:(ne.next=_e.next,_e.next=ne),he.pending=ne}}R.lanes|=v,ne=R.alternate,ne!==null&&(ne.lanes|=v),Kg(R.return,v,h),Z.lanes|=v;break}ne=ne.next}}else if(R.tag===10)H=R.type===h.type?null:R.child;else if(R.tag===18){if(H=R.return,H===null)throw Error(r(341));H.lanes|=v,Z=H.alternate,Z!==null&&(Z.lanes|=v),Kg(H,v,h),H=R.sibling}else H=R.child;if(H!==null)H.return=R;else for(H=R;H!==null;){if(H===h){H=null;break}if(R=H.sibling,R!==null){R.return=H.return,H=R;break}H=H.return}R=H}Nn(f,h,T.children,v),h=h.child}return h;case 9:return T=h.type,S=h.pendingProps.children,Xs(h,v),T=_r(T),S=S(T),h.flags|=1,Nn(f,h,S,v),h.child;case 14:return S=h.type,T=Hr(S,h.pendingProps),T=Hr(S.type,T),zS(f,h,S,T,v);case 15:return $S(f,h,h.type,h.pendingProps,v);case 17:return S=h.type,T=h.pendingProps,T=h.elementType===S?T:Hr(S,T),lh(f,h),h.tag=1,$n(S)?(f=!0,qd(h)):f=!1,Xs(h,v),NS(h,S,T),cv(h,S,T,v),pv(null,h,S,!0,f,v);case 19:return YS(f,h,v);case 22:return HS(f,h,v)}throw Error(r(156,h.tag))};function wC(f,h){return bd(f,h)}function Q4(f,h,v,S){this.tag=f,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xr(f,h,v,S){return new Q4(f,h,v,S)}function Mv(f){return f=f.prototype,!(!f||!f.isReactComponent)}function Y4(f){if(typeof f=="function")return Mv(f)?1:0;if(f!=null){if(f=f.$$typeof,f===q)return 11;if(f===z)return 14}return 2}function Da(f,h){var v=f.alternate;return v===null?(v=xr(f.tag,h,f.key,f.mode),v.elementType=f.elementType,v.type=f.type,v.stateNode=f.stateNode,v.alternate=f,f.alternate=v):(v.pendingProps=h,v.type=f.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=f.flags&14680064,v.childLanes=f.childLanes,v.lanes=f.lanes,v.child=f.child,v.memoizedProps=f.memoizedProps,v.memoizedState=f.memoizedState,v.updateQueue=f.updateQueue,h=f.dependencies,v.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},v.sibling=f.sibling,v.index=f.index,v.ref=f.ref,v}function _h(f,h,v,S,T,R){var H=2;if(S=f,typeof f=="function")Mv(f)&&(H=1);else if(typeof f=="string")H=5;else e:switch(f){case A:return Lo(v.children,T,R,h);case M:H=8,T|=8;break;case F:return f=xr(12,v,h,T|2),f.elementType=F,f.lanes=R,f;case J:return f=xr(13,v,h,T),f.elementType=J,f.lanes=R,f;case W:return f=xr(19,v,h,T),f.elementType=W,f.lanes=R,f;case Y:return wh(v,T,R,h);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case U:H=10;break e;case D:H=9;break e;case q:H=11;break e;case z:H=14;break e;case V:H=16,S=null;break e}throw Error(r(130,f==null?f:typeof f,""))}return h=xr(H,v,h,T),h.elementType=f,h.type=S,h.lanes=R,h}function Lo(f,h,v,S){return f=xr(7,f,S,h),f.lanes=v,f}function wh(f,h,v,S){return f=xr(22,f,S,h),f.elementType=Y,f.lanes=v,f.stateNode={isHidden:!1},f}function Dv(f,h,v){return f=xr(6,f,null,h),f.lanes=v,f}function Fv(f,h,v){return h=xr(4,f.children!==null?f.children:[],f.key,h),h.lanes=v,h.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},h}function X4(f,h,v,S,T){this.tag=h,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ug(0),this.expirationTimes=ug(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ug(0),this.identifierPrefix=S,this.onRecoverableError=T,this.mutableSourceEagerHydrationData=null}function Lv(f,h,v,S,T,R,H,Z,ne){return f=new X4(f,h,v,Z,ne),h===1?(h=1,R===!0&&(h|=8)):h=0,R=xr(3,null,null,h),f.current=R,R.stateNode=f,R.memoizedState={element:S,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yg(R),f}function J4(f,h,v){var S=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hv.exports=SB(),Hv.exports}var jC;function CB(){if(jC)return Ah;jC=1;var e=vO();return Ah.createRoot=e.createRoot,Ah.hydrateRoot=e.hydrateRoot,Ah}var kB=CB(),Lw=function(e,t){return Lw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Lw(e,t)};function Nr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lw(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u"&&(a=e.call(this,n),t.set(i,a)),a}function yO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function _O(e,t,r,n,i){return r.bind(t,e,n,i)}function IB(e,t){var r=e.length===1?AB:yO;return _O(e,this,r,t.cache.create(),t.serializer)}function RB(e,t){return _O(e,this,yO,t.cache.create(),t.serializer)}var PB=function(){return JSON.stringify(arguments)};function eb(){this.cache=Object.create(null)}eb.prototype.get=function(e){return this.cache[e]};eb.prototype.set=function(e,t){this.cache[e]=t};var OB={create:function(){return new eb}},Hf={variadic:RB};function wO(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}$f(function(){for(var e,t=[],r=0;r"u"&&(a=e.call(this,n),t.set(i,a)),a}function bO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function xO(e,t,r,n,i){return r.bind(t,e,n,i)}function DB(e,t){var r=e.length===1?MB:bO;return xO(e,this,r,t.cache.create(),t.serializer)}function FB(e,t){return xO(e,this,bO,t.cache.create(),t.serializer)}var LB=function(){return JSON.stringify(arguments)};function tb(){this.cache=Object.create(null)}tb.prototype.get=function(e){return this.cache[e]};tb.prototype.set=function(e,t){this.cache[e]=t};var jB={create:function(){return new tb}},Vv={variadic:FB},ot;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ot||(ot={}));var Ot;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ot||(Ot={}));var El;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(El||(El={}));function BC(e){return e.type===Ot.literal}function BB(e){return e.type===Ot.argument}function EO(e){return e.type===Ot.number}function SO(e){return e.type===Ot.date}function CO(e){return e.type===Ot.time}function kO(e){return e.type===Ot.select}function TO(e){return e.type===Ot.plural}function UB(e){return e.type===Ot.pound}function AO(e){return e.type===Ot.tag}function IO(e){return!!(e&&typeof e=="object"&&e.type===El.number)}function jw(e){return!!(e&&typeof e=="object"&&e.type===El.dateTime)}var RO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,zB=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $B(e){var t={};return e.replace(zB,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var HB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qB(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(HB).filter(function(p){return p.length>0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(WB,function(l,u,c,d,p,m){if(u)t.minimumIntegerDigits=c.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(OO.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(UC.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(UC,function(l,u,c,d,p,m){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&m?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Ue(Ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Ue(Ue({},t),zC(a)));continue}if(PO.test(i.stem)){t=Ue(Ue({},t),zC(i.stem));continue}var s=NO(i.stem);s&&(t=Ue(Ue({},t),s));var o=VB(i.stem);o&&(t=Ue(Ue({},t),o))}return t}var Ih={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function QB(e,t){for(var r="",n=0;n>1),l="a",u=YB(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function YB(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Ih[n||""]||Ih[r||""]||Ih["".concat(r,"-001")]||Ih["001"];return i[0]}var Kv,XB=new RegExp("^".concat(RO.source,"*")),JB=new RegExp("".concat(RO.source,"*$"));function ut(e,t){return{start:e,end:t}}var ZB=!!String.prototype.startsWith&&"_a".startsWith("a",1),eU=!!String.fromCodePoint,tU=!!Object.fromEntries,nU=!!String.prototype.codePointAt,rU=!!String.prototype.trimStart,iU=!!String.prototype.trimEnd,aU=!!Number.isSafeInteger,oU=aU?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Bw=!0;try{var sU=DO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bw=((Kv=sU.exec("a"))===null||Kv===void 0?void 0:Kv[0])==="a"}catch{Bw=!1}var HC=ZB?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Uw=eU?String.fromCodePoint:function(){for(var t=[],r=0;ra;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},qC=tU?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},lU=rU?function(t){return t.trimStart()}:function(t){return t.replace(XB,"")},uU=iU?function(t){return t.trimEnd()}:function(t){return t.replace(JB,"")};function DO(e,t){return new RegExp(e,t)}var zw;if(Bw){var GC=DO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zw=function(t,r){var n;GC.lastIndex=r;var i=GC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else zw=function(t,r){for(var n=[];;){var i=MO(t,r);if(i===void 0||FO(i)||hU(i))break;n.push(i),r+=i>=65536?2:1}return Uw.apply(void 0,n)};var cU=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Ot.pound,location:ut(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ot.UNMATCHED_CLOSING_TAG,ut(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&$w(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ot.literal,value:"<".concat(i,"/>"),location:ut(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("")?{val:{type:Ot.tag,value:i,children:s,location:ut(n,this.clonePosition())},err:null}:this.error(ot.INVALID_TAG,ut(o,this.clonePosition())))}else return this.error(ot.UNCLOSED_TAG,ut(n,this.clonePosition()))}else return this.error(ot.INVALID_TAG,ut(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&dU(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=ut(n,this.clonePosition());return{val:{type:Ot.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fU(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Uw.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Uw(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ot.EMPTY_ARGUMENT,ut(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ot.MALFORMED_ARGUMENT,ut(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ot.argument,value:i,location:ut(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(ot.MALFORMED_ARGUMENT,ut(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=zw(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=ut(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(ot.EXPECT_ARGUMENT_TYPE,ut(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=uU(d.val);if(p.length===0)return this.error(ot.EXPECT_ARGUMENT_STYLE,ut(this.clonePosition(),this.clonePosition()));var m=ut(c,this.clonePosition());u={style:p,styleLocation:m}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var g=ut(i,this.clonePosition());if(u&&HC(u==null?void 0:u.style,"::",0)){var b=lU(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(b,u.styleLocation);return d.err?d:{val:{type:Ot.number,value:n,location:g,style:d.val},err:null}}else{if(b.length===0)return this.error(ot.EXPECT_DATE_TIME_SKELETON,g);var E=b;this.locale&&(E=QB(b,this.locale));var p={type:El.dateTime,pattern:E,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?$B(E):{}},w=o==="date"?Ot.date:Ot.time;return{val:{type:w,value:n,location:g,style:p},err:null}}}return{val:{type:o==="number"?Ot.number:o==="date"?Ot.date:Ot.time,value:n,location:g,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ot.EXPECT_SELECT_ARGUMENT_OPTIONS,ut(x,Ue({},x)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),_=0;if(o!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ot.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),C=this.parseIdentifierIfPossible(),_=d.val}var k=this.tryParsePluralOrSelectOptions(t,o,r,C);if(k.err)return k;var y=this.tryParseArgumentClose(i);if(y.err)return y;var A=ut(i,this.clonePosition());return o==="select"?{val:{type:Ot.select,value:n,options:qC(k.val),location:A},err:null}:{val:{type:Ot.plural,value:n,options:qC(k.val),offset:_,pluralType:o==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(ot.INVALID_ARGUMENT_TYPE,ut(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ot.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ut(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=qB(t)}catch{return this.error(ot.INVALID_NUMBER_SKELETON,r)}return{val:{type:El.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?KB(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(ot.EXPECT_PLURAL_ARGUMENT_SELECTOR,ot.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=ut(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?ot.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ot.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ot.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ot.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ut(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var g=this.tryParseArgumentClose(m);if(g.err)return g;o.push([u,{value:y.val,location:ut(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return o.length===0?this.error(r==="select"?ot.EXPECT_SELECT_ARGUMENT_SELECTOR:ot.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ot.MISSING_OTHER_CLAUSE,ut(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=ut(i,this.clonePosition());return a?(s*=n,oU(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=MO(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(HC(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&FO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function $w(e){return e>=97&&e<=122||e>=65&&e<=90}function fU(e){return $w(e)||e===47}function dU(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function FO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function hU(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Hw(e){e.forEach(function(t){if(delete t.location,kO(t)||TO(t))for(var r in t.options)delete t.options[r].location,Hw(t.options[r].value);else EO(t)&&IO(t.style)||(SO(t)||CO(t))&&jw(t.style)?delete t.style.location:AO(t)&&Hw(t.children)})}function pU(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new cU(e,t).parse();if(r.err){var n=SyntaxError(ot[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Hw(r.val),r.val}var xi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(xi||(xi={}));var vo=function(e){Nr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),WC=function(e){Nr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),xi.INVALID_VALUE,a)||this}return t}(vo),mU=function(e){Nr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),xi.INVALID_VALUE,i)||this}return t}(vo),gU=function(e){Nr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),xi.MISSING_VALUE,n)||this}return t}(vo),Dn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Dn||(Dn={}));function vU(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Dn.literal||r.type!==Dn.literal?t.push(r):n.value+=r.value,t},[])}function LO(e){return typeof e=="function"}function gp(e,t,r,n,i,a,s){if(e.length===1&&BC(e[0]))return[{type:Dn.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<\/script>",f=f.removeChild(f.firstChild)):typeof S.is=="string"?f=H.createElement(_,{is:S.is}):(f=H.createElement(_),_==="select"&&(H=f,S.multiple?H.multiple=!0:S.size&&(H.size=S.size))):f=H.createElementNS(f,_),f[oi]=p,f[Yu]=S,JS(f,p,!1,!1),p.stateNode=f;e:{switch(H=le(_,S),_){case"dialog":At("cancel",f),At("close",f),T=S;break;case"iframe":case"object":case"embed":At("load",f),T=S;break;case"video":case"audio":for(T=0;Trl&&(p.flags|=128,S=!0,oc(R,!1),p.lanes=4194304)}else{if(!S)if(f=th(H),f!==null){if(p.flags|=128,S=!0,_=f.updateQueue,_!==null&&(p.updateQueue=_,p.flags|=4),oc(R,!0),R.tail===null&&R.tailMode==="hidden"&&!H.alternate&&!Ft)return En(p),null}else 2*$t()-R.renderingStartTime>rl&&_!==1073741824&&(p.flags|=128,S=!0,oc(R,!1),p.lanes=4194304);R.isBackwards?(H.sibling=p.child,p.child=H):(_=R.last,_!==null?_.sibling=H:p.child=H,R.last=H)}return R.tail!==null?(p=R.tail,R.rendering=p,R.tail=p.sibling,R.renderingStartTime=$t(),p.sibling=null,_=Bt.current,St(Bt,S?_&1|2:_&1),p):(En(p),null);case 22:case 23:return Nv(),S=p.memoizedState!==null,f!==null&&f.memoizedState!==null!==S&&(p.flags|=8192),S&&(p.mode&1)!==0?(sr&1073741824)!==0&&(En(p),p.subtreeFlags&6&&(p.flags|=8192)):En(p),null;case 24:return null;case 25:return null}throw Error(r(156,p.tag))}function B4(f,p){switch($g(p),p.tag){case 1:return $n(p.type)&&qd(),f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 3:return Zs(),It(zn),It(bn),tv(),f=p.flags,(f&65536)!==0&&(f&128)===0?(p.flags=f&-65537|128,p):null;case 5:return Zg(p),null;case 13:if(It(Bt),f=p.memoizedState,f!==null&&f.dehydrated!==null){if(p.alternate===null)throw Error(r(340));Qs()}return f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 19:return It(Bt),null;case 4:return Zs(),null;case 10:return Kg(p.type._context),null;case 22:case 23:return Nv(),null;case 24:return null;default:return null}}var ch=!1,Sn=!1,U4=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function tl(f,p){var _=f.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(S){zt(f,p,S)}else _.current=null}function bv(f,p,_){try{_()}catch(S){zt(f,p,S)}}var tC=!1;function z4(f,p){if(Ng=Rd,f=NE(),Cg(f)){if("selectionStart"in f)var _={start:f.selectionStart,end:f.selectionEnd};else e:{_=(_=f.ownerDocument)&&_.defaultView||window;var S=_.getSelection&&_.getSelection();if(S&&S.rangeCount!==0){_=S.anchorNode;var T=S.anchorOffset,R=S.focusNode;S=S.focusOffset;try{_.nodeType,R.nodeType}catch{_=null;break e}var H=0,Z=-1,ne=-1,he=0,_e=0,Ee=f,ye=null;t:for(;;){for(var Me;Ee!==_||T!==0&&Ee.nodeType!==3||(Z=H+T),Ee!==R||S!==0&&Ee.nodeType!==3||(ne=H+S),Ee.nodeType===3&&(H+=Ee.nodeValue.length),(Me=Ee.firstChild)!==null;)ye=Ee,Ee=Me;for(;;){if(Ee===f)break t;if(ye===_&&++he===T&&(Z=H),ye===R&&++_e===S&&(ne=H),(Me=Ee.nextSibling)!==null)break;Ee=ye,ye=Ee.parentNode}Ee=Me}_=Z===-1||ne===-1?null:{start:Z,end:ne}}else _=null}_=_||{start:0,end:0}}else _=null;for(Mg={focusedElem:f,selectionRange:_},Rd=!1,Fe=p;Fe!==null;)if(p=Fe,f=p.child,(p.subtreeFlags&1028)!==0&&f!==null)f.return=p,Fe=f;else for(;Fe!==null;){p=Fe;try{var je=p.alternate;if((p.flags&1024)!==0)switch(p.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var Be=je.memoizedProps,Ht=je.memoizedState,ce=p.stateNode,se=ce.getSnapshotBeforeUpdate(p.elementType===p.type?Be:Hr(p.type,Be),Ht);ce.__reactInternalSnapshotBeforeUpdate=se}break;case 3:var fe=p.stateNode.containerInfo;fe.nodeType===1?fe.textContent="":fe.nodeType===9&&fe.documentElement&&fe.removeChild(fe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ke){zt(p,p.return,ke)}if(f=p.sibling,f!==null){f.return=p.return,Fe=f;break}Fe=p.return}return je=tC,tC=!1,je}function sc(f,p,_){var S=p.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var T=S=S.next;do{if((T.tag&f)===f){var R=T.destroy;T.destroy=void 0,R!==void 0&&bv(p,_,R)}T=T.next}while(T!==S)}}function fh(f,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var _=p=p.next;do{if((_.tag&f)===f){var S=_.create;_.destroy=S()}_=_.next}while(_!==p)}}function xv(f){var p=f.ref;if(p!==null){var _=f.stateNode;switch(f.tag){case 5:f=_;break;default:f=_}typeof p=="function"?p(f):p.current=f}}function nC(f){var p=f.alternate;p!==null&&(f.alternate=null,nC(p)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(p=f.stateNode,p!==null&&(delete p[oi],delete p[Yu],delete p[jg],delete p[E4],delete p[S4])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function rC(f){return f.tag===5||f.tag===3||f.tag===4}function iC(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||rC(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function Ev(f,p,_){var S=f.tag;if(S===5||S===6)f=f.stateNode,p?_.nodeType===8?_.parentNode.insertBefore(f,p):_.insertBefore(f,p):(_.nodeType===8?(p=_.parentNode,p.insertBefore(f,_)):(p=_,p.appendChild(f)),_=_._reactRootContainer,_!=null||p.onclick!==null||(p.onclick=$d));else if(S!==4&&(f=f.child,f!==null))for(Ev(f,p,_),f=f.sibling;f!==null;)Ev(f,p,_),f=f.sibling}function Sv(f,p,_){var S=f.tag;if(S===5||S===6)f=f.stateNode,p?_.insertBefore(f,p):_.appendChild(f);else if(S!==4&&(f=f.child,f!==null))for(Sv(f,p,_),f=f.sibling;f!==null;)Sv(f,p,_),f=f.sibling}var gn=null,qr=!1;function Ra(f,p,_){for(_=_.child;_!==null;)aC(f,p,_),_=_.sibling}function aC(f,p,_){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(Sd,_)}catch{}switch(_.tag){case 5:Sn||tl(_,p);case 6:var S=gn,T=qr;gn=null,Ra(f,p,_),gn=S,qr=T,gn!==null&&(qr?(f=gn,_=_.stateNode,f.nodeType===8?f.parentNode.removeChild(_):f.removeChild(_)):gn.removeChild(_.stateNode));break;case 18:gn!==null&&(qr?(f=gn,_=_.stateNode,f.nodeType===8?Lg(f.parentNode,_):f.nodeType===1&&Lg(f,_),Bu(f)):Lg(gn,_.stateNode));break;case 4:S=gn,T=qr,gn=_.stateNode.containerInfo,qr=!0,Ra(f,p,_),gn=S,qr=T;break;case 0:case 11:case 14:case 15:if(!Sn&&(S=_.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){T=S=S.next;do{var R=T,H=R.destroy;R=R.tag,H!==void 0&&((R&2)!==0||(R&4)!==0)&&bv(_,p,H),T=T.next}while(T!==S)}Ra(f,p,_);break;case 1:if(!Sn&&(tl(_,p),S=_.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=_.memoizedProps,S.state=_.memoizedState,S.componentWillUnmount()}catch(Z){zt(_,p,Z)}Ra(f,p,_);break;case 21:Ra(f,p,_);break;case 22:_.mode&1?(Sn=(S=Sn)||_.memoizedState!==null,Ra(f,p,_),Sn=S):Ra(f,p,_);break;default:Ra(f,p,_)}}function oC(f){var p=f.updateQueue;if(p!==null){f.updateQueue=null;var _=f.stateNode;_===null&&(_=f.stateNode=new U4),p.forEach(function(S){var T=Y4.bind(null,f,S);_.has(S)||(_.add(S),S.then(T,T))})}}function Gr(f,p){var _=p.deletions;if(_!==null)for(var S=0;S<_.length;S++){var T=_[S];try{var R=f,H=p,Z=H;e:for(;Z!==null;){switch(Z.tag){case 5:gn=Z.stateNode,qr=!1;break e;case 3:gn=Z.stateNode.containerInfo,qr=!0;break e;case 4:gn=Z.stateNode.containerInfo,qr=!0;break e}Z=Z.return}if(gn===null)throw Error(r(160));aC(R,H,T),gn=null,qr=!1;var ne=T.alternate;ne!==null&&(ne.return=null),T.return=null}catch(he){zt(T,p,he)}}if(p.subtreeFlags&12854)for(p=p.child;p!==null;)sC(p,f),p=p.sibling}function sC(f,p){var _=f.alternate,S=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:if(Gr(p,f),ui(f),S&4){try{sc(3,f,f.return),fh(3,f)}catch(Be){zt(f,f.return,Be)}try{sc(5,f,f.return)}catch(Be){zt(f,f.return,Be)}}break;case 1:Gr(p,f),ui(f),S&512&&_!==null&&tl(_,_.return);break;case 5:if(Gr(p,f),ui(f),S&512&&_!==null&&tl(_,_.return),f.flags&32){var T=f.stateNode;try{V(T,"")}catch(Be){zt(f,f.return,Be)}}if(S&4&&(T=f.stateNode,T!=null)){var R=f.memoizedProps,H=_!==null?_.memoizedProps:R,Z=f.type,ne=f.updateQueue;if(f.updateQueue=null,ne!==null)try{Z==="input"&&R.type==="radio"&&R.name!=null&&st(T,R),le(Z,H);var he=le(Z,R);for(H=0;HT&&(T=H),S&=~R}if(S=T,S=$t()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*H4(S/1960))-S,10f?16:f,Oa===null)var S=!1;else{if(f=Oa,Oa=null,gh=0,(ct&6)!==0)throw Error(r(331));var T=ct;for(ct|=4,Fe=f.current;Fe!==null;){var R=Fe,H=R.child;if((Fe.flags&16)!==0){var Z=R.deletions;if(Z!==null){for(var ne=0;ne$t()-Tv?Do(f,0):kv|=_),Gn(f,p)}function _C(f,p){p===0&&((f.mode&1)===0?p=1:(p=kd,kd<<=1,(kd&130023424)===0&&(kd=4194304)));var _=Mn();f=Bi(f,p),f!==null&&(Mu(f,p,_),Gn(f,_))}function Q4(f){var p=f.memoizedState,_=0;p!==null&&(_=p.retryLane),_C(f,_)}function Y4(f,p){var _=0;switch(f.tag){case 13:var S=f.stateNode,T=f.memoizedState;T!==null&&(_=T.retryLane);break;case 19:S=f.stateNode;break;default:throw Error(r(314))}S!==null&&S.delete(p),_C(f,_)}var wC;wC=function(f,p,_){if(f!==null)if(f.memoizedProps!==p.pendingProps||zn.current)Hn=!0;else{if((f.lanes&_)===0&&(p.flags&128)===0)return Hn=!1,L4(f,p,_);Hn=(f.flags&131072)!==0}else Hn=!1,Ft&&(p.flags&1048576)!==0&&ZE(p,Kd,p.index);switch(p.lanes=0,p.tag){case 2:var S=p.type;uh(f,p),f=p.pendingProps;var T=Ws(p,bn.current);Js(p,_),T=iv(null,p,S,f,T,_);var R=av();return p.flags|=1,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,$n(S)?(R=!0,Gd(p)):R=!1,p.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,Xg(p),T.updater=sh,p.stateNode=T,T._reactInternals=p,fv(p,S,f,_),p=mv(null,p,S,!0,R,_)):(p.tag=0,Ft&&R&&zg(p),Nn(null,p,T,_),p=p.child),p;case 16:S=p.elementType;e:{switch(uh(f,p),f=p.pendingProps,T=S._init,S=T(S._payload),p.type=S,T=p.tag=J4(S),f=Hr(S,f),T){case 0:p=pv(null,p,S,f,_);break e;case 1:p=WS(null,p,S,f,_);break e;case 11:p=zS(null,p,S,f,_);break e;case 14:p=$S(null,p,S,Hr(S.type,f),_);break e}throw Error(r(306,S,""))}return p;case 0:return S=p.type,T=p.pendingProps,T=p.elementType===S?T:Hr(S,T),pv(f,p,S,T,_);case 1:return S=p.type,T=p.pendingProps,T=p.elementType===S?T:Hr(S,T),WS(f,p,S,T,_);case 3:e:{if(VS(p),f===null)throw Error(r(387));S=p.pendingProps,R=p.memoizedState,T=R.element,lS(f,p),eh(p,S,null,_);var H=p.memoizedState;if(S=H.element,R.isDehydrated)if(R={element:S,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},p.updateQueue.baseState=R,p.memoizedState=R,p.flags&256){T=el(Error(r(423)),p),p=KS(f,p,S,_,T);break e}else if(S!==T){T=el(Error(r(424)),p),p=KS(f,p,S,_,T);break e}else for(or=Sa(p.stateNode.containerInfo.firstChild),ar=p,Ft=!0,$r=null,_=oS(p,null,S,_),p.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(Qs(),S===T){p=zi(f,p,_);break e}Nn(f,p,S,_)}p=p.child}return p;case 5:return fS(p),f===null&&qg(p),S=p.type,T=p.pendingProps,R=f!==null?f.memoizedProps:null,H=T.children,Dg(S,T)?H=null:R!==null&&Dg(S,R)&&(p.flags|=32),GS(f,p),Nn(f,p,H,_),p.child;case 6:return f===null&&qg(p),null;case 13:return QS(f,p,_);case 4:return Jg(p,p.stateNode.containerInfo),S=p.pendingProps,f===null?p.child=Ys(p,null,S,_):Nn(f,p,S,_),p.child;case 11:return S=p.type,T=p.pendingProps,T=p.elementType===S?T:Hr(S,T),zS(f,p,S,T,_);case 7:return Nn(f,p,p.pendingProps,_),p.child;case 8:return Nn(f,p,p.pendingProps.children,_),p.child;case 12:return Nn(f,p,p.pendingProps.children,_),p.child;case 10:e:{if(S=p.type._context,T=p.pendingProps,R=p.memoizedProps,H=T.value,St(Xd,S._currentValue),S._currentValue=H,R!==null)if(zr(R.value,H)){if(R.children===T.children&&!zn.current){p=zi(f,p,_);break e}}else for(R=p.child,R!==null&&(R.return=p);R!==null;){var Z=R.dependencies;if(Z!==null){H=R.child;for(var ne=Z.firstContext;ne!==null;){if(ne.context===S){if(R.tag===1){ne=Ui(-1,_&-_),ne.tag=2;var he=R.updateQueue;if(he!==null){he=he.shared;var _e=he.pending;_e===null?ne.next=ne:(ne.next=_e.next,_e.next=ne),he.pending=ne}}R.lanes|=_,ne=R.alternate,ne!==null&&(ne.lanes|=_),Qg(R.return,_,p),Z.lanes|=_;break}ne=ne.next}}else if(R.tag===10)H=R.type===p.type?null:R.child;else if(R.tag===18){if(H=R.return,H===null)throw Error(r(341));H.lanes|=_,Z=H.alternate,Z!==null&&(Z.lanes|=_),Qg(H,_,p),H=R.sibling}else H=R.child;if(H!==null)H.return=R;else for(H=R;H!==null;){if(H===p){H=null;break}if(R=H.sibling,R!==null){R.return=H.return,H=R;break}H=H.return}R=H}Nn(f,p,T.children,_),p=p.child}return p;case 9:return T=p.type,S=p.pendingProps.children,Js(p,_),T=_r(T),S=S(T),p.flags|=1,Nn(f,p,S,_),p.child;case 14:return S=p.type,T=Hr(S,p.pendingProps),T=Hr(S.type,T),$S(f,p,S,T,_);case 15:return HS(f,p,p.type,p.pendingProps,_);case 17:return S=p.type,T=p.pendingProps,T=p.elementType===S?T:Hr(S,T),uh(f,p),p.tag=1,$n(S)?(f=!0,Gd(p)):f=!1,Js(p,_),MS(p,S,T),fv(p,S,T,_),mv(null,p,S,!0,f,_);case 19:return XS(f,p,_);case 22:return qS(f,p,_)}throw Error(r(156,p.tag))};function bC(f,p){return xd(f,p)}function X4(f,p,_,S){this.tag=f,this.key=_,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xr(f,p,_,S){return new X4(f,p,_,S)}function Dv(f){return f=f.prototype,!(!f||!f.isReactComponent)}function J4(f){if(typeof f=="function")return Dv(f)?1:0;if(f!=null){if(f=f.$$typeof,f===z)return 11;if(f===U)return 14}return 2}function Da(f,p){var _=f.alternate;return _===null?(_=xr(f.tag,p,f.key,f.mode),_.elementType=f.elementType,_.type=f.type,_.stateNode=f.stateNode,_.alternate=f,f.alternate=_):(_.pendingProps=p,_.type=f.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=f.flags&14680064,_.childLanes=f.childLanes,_.lanes=f.lanes,_.child=f.child,_.memoizedProps=f.memoizedProps,_.memoizedState=f.memoizedState,_.updateQueue=f.updateQueue,p=f.dependencies,_.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},_.sibling=f.sibling,_.index=f.index,_.ref=f.ref,_}function wh(f,p,_,S,T,R){var H=2;if(S=f,typeof f=="function")Dv(f)&&(H=1);else if(typeof f=="string")H=5;else e:switch(f){case A:return Lo(_.children,T,R,p);case D:H=8,T|=8;break;case L:return f=xr(12,_,p,T|2),f.elementType=L,f.lanes=R,f;case Y:return f=xr(13,_,p,T),f.elementType=Y,f.lanes=R,f;case G:return f=xr(19,_,p,T),f.elementType=G,f.lanes=R,f;case X:return bh(_,T,R,p);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case q:H=10;break e;case N:H=9;break e;case z:H=11;break e;case U:H=14;break e;case W:H=16,S=null;break e}throw Error(r(130,f==null?f:typeof f,""))}return p=xr(H,_,p,T),p.elementType=f,p.type=S,p.lanes=R,p}function Lo(f,p,_,S){return f=xr(7,f,S,p),f.lanes=_,f}function bh(f,p,_,S){return f=xr(22,f,S,p),f.elementType=X,f.lanes=_,f.stateNode={isHidden:!1},f}function Fv(f,p,_){return f=xr(6,f,null,p),f.lanes=_,f}function Lv(f,p,_){return p=xr(4,f.children!==null?f.children:[],f.key,p),p.lanes=_,p.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},p}function Z4(f,p,_,S,T){this.tag=p,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cg(0),this.expirationTimes=cg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cg(0),this.identifierPrefix=S,this.onRecoverableError=T,this.mutableSourceEagerHydrationData=null}function jv(f,p,_,S,T,R,H,Z,ne){return f=new Z4(f,p,_,Z,ne),p===1?(p=1,R===!0&&(p|=8)):p=0,R=xr(3,null,null,p),f.current=R,R.stateNode=f,R.memoizedState={element:S,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xg(R),f}function eB(f,p,_){var S=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qv.exports=kB(),qv.exports}var BC;function TB(){if(BC)return Ih;BC=1;var e=_O();return Ih.createRoot=e.createRoot,Ih.hydrateRoot=e.hydrateRoot,Ih}var AB=TB(),jw=function(e,t){return jw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},jw(e,t)};function Nr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jw(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u"&&(a=e.call(this,n),t.set(i,a)),a}function wO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function bO(e,t,r,n,i){return r.bind(t,e,n,i)}function PB(e,t){var r=e.length===1?RB:wO;return bO(e,this,r,t.cache.create(),t.serializer)}function OB(e,t){return bO(e,this,wO,t.cache.create(),t.serializer)}var NB=function(){return JSON.stringify(arguments)};function tb(){this.cache=Object.create(null)}tb.prototype.get=function(e){return this.cache[e]};tb.prototype.set=function(e,t){this.cache[e]=t};var MB={create:function(){return new tb}},qf={variadic:OB};function xO(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}Hf(function(){for(var e,t=[],r=0;r"u"&&(a=e.call(this,n),t.set(i,a)),a}function EO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function SO(e,t,r,n,i){return r.bind(t,e,n,i)}function LB(e,t){var r=e.length===1?FB:EO;return SO(e,this,r,t.cache.create(),t.serializer)}function jB(e,t){return SO(e,this,EO,t.cache.create(),t.serializer)}var BB=function(){return JSON.stringify(arguments)};function nb(){this.cache=Object.create(null)}nb.prototype.get=function(e){return this.cache[e]};nb.prototype.set=function(e,t){this.cache[e]=t};var UB={create:function(){return new nb}},Kv={variadic:jB},ot;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ot||(ot={}));var Ot;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ot||(Ot={}));var Sl;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Sl||(Sl={}));function UC(e){return e.type===Ot.literal}function zB(e){return e.type===Ot.argument}function CO(e){return e.type===Ot.number}function kO(e){return e.type===Ot.date}function TO(e){return e.type===Ot.time}function AO(e){return e.type===Ot.select}function IO(e){return e.type===Ot.plural}function $B(e){return e.type===Ot.pound}function RO(e){return e.type===Ot.tag}function PO(e){return!!(e&&typeof e=="object"&&e.type===Sl.number)}function Bw(e){return!!(e&&typeof e=="object"&&e.type===Sl.dateTime)}var OO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,HB=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qB(e){var t={};return e.replace(HB,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var GB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function WB(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(GB).filter(function(h){return h.length>0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(KB,function(l,u,c,d,h,m){if(u)t.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(MO.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(zC.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(zC,function(l,u,c,d,h,m){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Ue(Ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Ue(Ue({},t),$C(a)));continue}if(NO.test(i.stem)){t=Ue(Ue({},t),$C(i.stem));continue}var s=DO(i.stem);s&&(t=Ue(Ue({},t),s));var o=QB(i.stem);o&&(t=Ue(Ue({},t),o))}return t}var Rh={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function XB(e,t){for(var r="",n=0;n>1),l="a",u=JB(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function JB(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Rh[n||""]||Rh[r||""]||Rh["".concat(r,"-001")]||Rh["001"];return i[0]}var Qv,ZB=new RegExp("^".concat(OO.source,"*")),eU=new RegExp("".concat(OO.source,"*$"));function ut(e,t){return{start:e,end:t}}var tU=!!String.prototype.startsWith&&"_a".startsWith("a",1),nU=!!String.fromCodePoint,rU=!!Object.fromEntries,iU=!!String.prototype.codePointAt,aU=!!String.prototype.trimStart,oU=!!String.prototype.trimEnd,sU=!!Number.isSafeInteger,lU=sU?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Uw=!0;try{var uU=LO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Uw=((Qv=uU.exec("a"))===null||Qv===void 0?void 0:Qv[0])==="a"}catch{Uw=!1}var qC=tU?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},zw=nU?String.fromCodePoint:function(){for(var t=[],r=0;ra;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},GC=rU?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},cU=aU?function(t){return t.trimStart()}:function(t){return t.replace(ZB,"")},fU=oU?function(t){return t.trimEnd()}:function(t){return t.replace(eU,"")};function LO(e,t){return new RegExp(e,t)}var $w;if(Uw){var WC=LO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$w=function(t,r){var n;WC.lastIndex=r;var i=WC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else $w=function(t,r){for(var n=[];;){var i=FO(t,r);if(i===void 0||jO(i)||mU(i))break;n.push(i),r+=i>=65536?2:1}return zw.apply(void 0,n)};var dU=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Ot.pound,location:ut(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ot.UNMATCHED_CLOSING_TAG,ut(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Hw(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ot.literal,value:"<".concat(i,"/>"),location:ut(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("")?{val:{type:Ot.tag,value:i,children:s,location:ut(n,this.clonePosition())},err:null}:this.error(ot.INVALID_TAG,ut(o,this.clonePosition())))}else return this.error(ot.UNCLOSED_TAG,ut(n,this.clonePosition()))}else return this.error(ot.INVALID_TAG,ut(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&pU(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=ut(n,this.clonePosition());return{val:{type:Ot.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!hU(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return zw.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),zw(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ot.EMPTY_ARGUMENT,ut(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ot.MALFORMED_ARGUMENT,ut(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ot.argument,value:i,location:ut(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(ot.MALFORMED_ARGUMENT,ut(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=$w(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=ut(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(ot.EXPECT_ARGUMENT_TYPE,ut(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=fU(d.val);if(h.length===0)return this.error(ot.EXPECT_ARGUMENT_STYLE,ut(this.clonePosition(),this.clonePosition()));var m=ut(c,this.clonePosition());u={style:h,styleLocation:m}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var g=ut(i,this.clonePosition());if(u&&qC(u==null?void 0:u.style,"::",0)){var w=cU(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:Ot.number,value:n,location:g,style:d.val},err:null}}else{if(w.length===0)return this.error(ot.EXPECT_DATE_TIME_SKELETON,g);var x=w;this.locale&&(x=XB(w,this.locale));var h={type:Sl.dateTime,pattern:x,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?qB(x):{}},b=o==="date"?Ot.date:Ot.time;return{val:{type:b,value:n,location:g,style:h},err:null}}}return{val:{type:o==="number"?Ot.number:o==="date"?Ot.date:Ot.time,value:n,location:g,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ot.EXPECT_SELECT_ARGUMENT_OPTIONS,ut(E,Ue({},E)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),v=0;if(o!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ot.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),C=this.parseIdentifierIfPossible(),v=d.val}var k=this.tryParsePluralOrSelectOptions(t,o,r,C);if(k.err)return k;var y=this.tryParseArgumentClose(i);if(y.err)return y;var A=ut(i,this.clonePosition());return o==="select"?{val:{type:Ot.select,value:n,options:GC(k.val),location:A},err:null}:{val:{type:Ot.plural,value:n,options:GC(k.val),offset:v,pluralType:o==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(ot.INVALID_ARGUMENT_TYPE,ut(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,ut(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ot.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ut(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=WB(t)}catch{return this.error(ot.INVALID_NUMBER_SKELETON,r)}return{val:{type:Sl.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?YB(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ot.EXPECT_PLURAL_ARGUMENT_SELECTOR,ot.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=ut(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?ot.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ot.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ot.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ot.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ut(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var g=this.tryParseArgumentClose(m);if(g.err)return g;o.push([u,{value:y.val,location:ut(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return o.length===0?this.error(r==="select"?ot.EXPECT_SELECT_ARGUMENT_SELECTOR:ot.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ot.MISSING_OTHER_CLAUSE,ut(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=ut(i,this.clonePosition());return a?(s*=n,lU(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=FO(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(qC(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&jO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function Hw(e){return e>=97&&e<=122||e>=65&&e<=90}function hU(e){return Hw(e)||e===47}function pU(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function jO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function mU(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function qw(e){e.forEach(function(t){if(delete t.location,AO(t)||IO(t))for(var r in t.options)delete t.options[r].location,qw(t.options[r].value);else CO(t)&&PO(t.style)||(kO(t)||TO(t))&&Bw(t.style)?delete t.style.location:RO(t)&&qw(t.children)})}function gU(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new dU(e,t).parse();if(r.err){var n=SyntaxError(ot[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||qw(r.val),r.val}var xi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(xi||(xi={}));var vo=function(e){Nr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),VC=function(e){Nr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),xi.INVALID_VALUE,a)||this}return t}(vo),vU=function(e){Nr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),xi.INVALID_VALUE,i)||this}return t}(vo),yU=function(e){Nr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),xi.MISSING_VALUE,n)||this}return t}(vo),Dn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Dn||(Dn={}));function _U(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Dn.literal||r.type!==Dn.literal?t.push(r):n.value+=r.value,t},[])}function BO(e){return typeof e=="function"}function vp(e,t,r,n,i,a,s){if(e.length===1&&UC(e[0]))return[{type:Dn.literal,value:e[0].value}];for(var o=[],l=0,u=e;l"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=pU,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function jo(e,t){var r=t&&t.cache?t.cache:kU,n=t&&t.serializer?t.serializer:CU,i=t&&t.strategy?t.strategy:EU;return i(e,{cache:r,serializer:n})}function bU(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xU(e,t,r,n){var i=bU(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function BO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function UO(e,t,r,n,i){return r.bind(t,e,n,i)}function EU(e,t){var r=e.length===1?xU:BO;return UO(e,this,r,t.cache.create(),t.serializer)}function SU(e,t){return UO(e,this,BO,t.cache.create(),t.serializer)}var CU=function(){return JSON.stringify(arguments)};function nb(){this.cache=Object.create(null)}nb.prototype.get=function(e){return this.cache[e]};nb.prototype.set=function(e,t){this.cache[e]=t};var kU={create:function(){return new nb}},Bo={variadic:SU},rs;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(rs||(rs={}));var qf=function(e){Nr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,` +`,xi.MISSING_INTL_API,s);var C=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));E=c.options[C]||c.options.other}if(!E)throw new VC(c.value,h,Object.keys(c.options),s);o.push.apply(o,vp(E.value,t,r,n,i,h-(c.offset||0)));continue}}return _U(o)}function wU(e,t){return t?Ue(Ue(Ue({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ue(Ue({},e[n]),t[n]||{}),r},{})):e}function bU(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=wU(e[n],t[n]),r},Ue({},e)):e}function Yv(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function xU(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vv(function(){for(var t,r=[],n=0;n"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=gU,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function jo(e,t){var r=t&&t.cache?t.cache:AU,n=t&&t.serializer?t.serializer:TU,i=t&&t.strategy?t.strategy:CU;return i(e,{cache:r,serializer:n})}function EU(e){return e==null||typeof e=="number"||typeof e=="boolean"}function SU(e,t,r,n){var i=EU(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function zO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function $O(e,t,r,n,i){return r.bind(t,e,n,i)}function CU(e,t){var r=e.length===1?SU:zO;return $O(e,this,r,t.cache.create(),t.serializer)}function kU(e,t){return $O(e,this,zO,t.cache.create(),t.serializer)}var TU=function(){return JSON.stringify(arguments)};function rb(){this.cache=Object.create(null)}rb.prototype.get=function(e){return this.cache[e]};rb.prototype.set=function(e,t){this.cache[e]=t};var AU={create:function(){return new rb}},Bo={variadic:kU},is;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(is||(is={}));var Gf=function(e){Nr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,` `).concat(s?` `.concat(s.message,` -`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),TU=function(e){Nr(t,e);function t(r,n){return e.call(this,rs.UNSUPPORTED_FORMATTER,r,n)||this}return t}(qf),AU=function(e){Nr(t,e);function t(r,n){return e.call(this,rs.INVALID_CONFIG,r,n)||this}return t}(qf),VC=function(e){Nr(t,e);function t(r,n){return e.call(this,rs.MISSING_DATA,r,n)||this}return t}(qf),Mr=function(e){Nr(t,e);function t(r,n,i){var a=e.call(this,rs.FORMAT_ERROR,"".concat(r,` +`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),IU=function(e){Nr(t,e);function t(r,n){return e.call(this,is.UNSUPPORTED_FORMATTER,r,n)||this}return t}(Gf),RU=function(e){Nr(t,e);function t(r,n){return e.call(this,is.INVALID_CONFIG,r,n)||this}return t}(Gf),KC=function(e){Nr(t,e);function t(r,n){return e.call(this,is.MISSING_DATA,r,n)||this}return t}(Gf),Mr=function(e){Nr(t,e);function t(r,n,i){var a=e.call(this,is.FORMAT_ERROR,"".concat(r,` Locale: `).concat(n,` -`),i)||this;return a.locale=n,a}return t}(qf),Yv=function(e){Nr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,` +`),i)||this;return a.locale=n,a}return t}(Gf),Xv=function(e){Nr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,` MessageID: `).concat(i==null?void 0:i.id,` Default Message: `).concat(i==null?void 0:i.defaultMessage,` Description: `).concat(i==null?void 0:i.description,` -`),n,a)||this;return s.descriptor=i,s.locale=n,s}return t}(Mr),IU=function(e){Nr(t,e);function t(r,n){var i=e.call(this,rs.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(qf);function ws(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var RU=function(e){},PU=function(e){},zO={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:RU,onWarn:PU};function $O(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Uo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function OU(e){e===void 0&&(e=$O());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=jo(function(){for(var o,l=[],u=0;u needs to exist in the component ancestry.")}var VO=Ue(Ue({},zO),{textComponent:Q.Fragment});function ez(e){return function(t){return e(Q.Children.toArray(t))}}function Gw(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a needs to exist in the component ancestry.")}var QO=Ue(Ue({},HO),{textComponent:Q.Fragment});function nz(e){return function(t){return e(Q.Children.toArray(t))}}function Ww(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a"u")throw new Error(t)}function Ir(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cz(){return Math.random().toString(36).substring(2,10)}function ik(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Kw(e,t,r=null,n,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?bs(t):t,state:r,key:t&&t.key||n||cz(),mask:i}}function Xc({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function bs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function fz(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",l=null,u=c();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function c(){return(s.state||{idx:null}).idx}function d(){o="POP";let b=c(),E=b==null?null:b-u;u=b,l&&l({action:o,location:g.location,delta:E})}function p(b,E){o="PUSH";let w=rk(b)?b:Kw(g.location,b,E);r&&r(w,b),u=c()+1;let x=ik(w,u),C=g.createHref(w.mask||w);try{s.pushState(x,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(C)}a&&l&&l({action:o,location:g.location,delta:1})}function m(b,E){o="REPLACE";let w=rk(b)?b:Kw(g.location,b,E);r&&r(w,b),u=c();let x=ik(w,u),C=g.createHref(w.mask||w);s.replaceState(x,"",C),a&&l&&l({action:o,location:g.location,delta:0})}function y(b){return dz(b)}let g={get action(){return o},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(nk,d),l=b,()=>{i.removeEventListener(nk,d),l=null}},createHref(b){return t(i,b)},createURL:y,encodeLocation(b){let E=y(b);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:p,replace:m,go(b){return s.go(b)}};return g}function dz(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),jt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Xc(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function XO(e,t,r="/"){return hz(e,t,r,!1)}function hz(e,t,r,n,i){let a=typeof t=="string"?bs(t):t,s=ea(a.pathname||"/",r);if(s==null)return null;let o=pz(e),l=null,u=kz(s);for(let c=0;l==null&&c{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;jt(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let d=Xr([n,c.relativePath]),p=r.concat(c);s.children&&s.children.length>0&&(jt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),JO(s.children,t,p,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:xz(d,s.index),routesMeta:p})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let u of ZO(s.path))a(s,o,!0,u)}),t}function ZO(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=ZO(n.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function mz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ez(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var gz=/^:[\w-]+$/,vz=3,yz=2,_z=1,wz=10,bz=-2,ak=e=>e==="*";function xz(e,t){let r=e.split("/"),n=r.length;return r.some(ak)&&(n+=bz),t&&(n+=yz),r.filter(i=>!ak(i)).reduce((i,a)=>i+(gz.test(a)?vz:a===""?_z:wz),n)}function Ez(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Sz(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o{if(c==="*"){let y=o[p]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=o[p];return d&&!m?u[c]=void 0:u[c]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function Cz(e,t=!1,r=!0){Ir(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,u,c)=>{if(n.push({paramName:o,isOptional:l!=null}),l){let d=c.charAt(u+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function kz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ir(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ea(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var Tz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Az(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?bs(e):e,a;return r?(r=eN(r),r.startsWith("/")?a=ok(r.substring(1),"/"):a=ok(r,t)):a=t,{pathname:a,search:Pz(n),hash:Oz(i)}}function ok(e,t){let r=Bp(t).split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function ey(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Iz(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ab(e){let t=Iz(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function dm(e,t,r,n=!1){let i;typeof e=="string"?i=bs(e):(i={...e},jt(!i.pathname||!i.pathname.includes("?"),ey("?","pathname","search",i)),jt(!i.pathname||!i.pathname.includes("#"),ey("#","pathname","hash",i)),jt(!i.search||!i.search.includes("#"),ey("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}o=d>=0?t[d]:"/"}let l=Az(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var eN=e=>e.replace(/\/\/+/g,"/"),Xr=e=>eN(e.join("/")),Bp=e=>e.replace(/\/+$/,""),Rz=e=>Bp(e).replace(/^\/*/,"/"),Pz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Oz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Nz=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Mz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Dz(e){let t=e.map(r=>r.route.path).filter(Boolean);return Xr(t)||"/"}var tN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function nN(e,t){let r=e;if(typeof r!="string"||!Tz.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(tN)try{let a=new URL(window.location.href),s=r.startsWith("//")?new URL(a.protocol+r):new URL(r),o=ea(s.pathname,t);s.origin===a.origin&&o!=null?r=o+s.search+s.hash:i=!0}catch{Ir(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var rN=["POST","PUT","PATCH","DELETE"];new Set(rN);var Fz=["GET",...rN];new Set(Fz);var du=Q.createContext(null);du.displayName="DataRouter";var hm=Q.createContext(null);hm.displayName="DataRouterState";var iN=Q.createContext(!1);function Lz(){return Q.useContext(iN)}var aN=Q.createContext({isTransitioning:!1});aN.displayName="ViewTransition";var jz=Q.createContext(new Map);jz.displayName="Fetchers";var Bz=Q.createContext(null);Bz.displayName="Await";var pr=Q.createContext(null);pr.displayName="Navigation";var Wf=Q.createContext(null);Wf.displayName="Location";var Ai=Q.createContext({outlet:null,matches:[],isDataRoute:!1});Ai.displayName="Route";var ob=Q.createContext(null);ob.displayName="RouteError";var oN="REACT_ROUTER_ERROR",Uz="REDIRECT",zz="ROUTE_ERROR_RESPONSE";function $z(e){if(e.startsWith(`${oN}:${Uz}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Hz(e){if(e.startsWith(`${oN}:${zz}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Nz(t.status,t.statusText,t.data)}catch{}}function qz(e,{relative:t}={}){jt(hu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=Q.useContext(pr),{hash:i,pathname:a,search:s}=Vf(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Xr([r,a])),n.createHref({pathname:o,search:s,hash:i})}function hu(){return Q.useContext(Wf)!=null}function pn(){return jt(hu(),"useLocation() may be used only in the context of a component."),Q.useContext(Wf).location}var sN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lN(e){Q.useContext(pr).static||Q.useLayoutEffect(e)}function Ii(){let{isDataRoute:e}=Q.useContext(Ai);return e?r$():Gz()}function Gz(){jt(hu(),"useNavigate() may be used only in the context of a component.");let e=Q.useContext(du),{basename:t,navigator:r}=Q.useContext(pr),{matches:n}=Q.useContext(Ai),{pathname:i}=pn(),a=JSON.stringify(ab(n)),s=Q.useRef(!1);return lN(()=>{s.current=!0}),Q.useCallback((l,u={})=>{if(Ir(s.current,sN),!s.current)return;if(typeof l=="number"){r.go(l);return}let c=dm(l,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Xr([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,i,e])}Q.createContext(null);function Vf(e,{relative:t}={}){let{matches:r}=Q.useContext(Ai),{pathname:n}=pn(),i=JSON.stringify(ab(r));return Q.useMemo(()=>dm(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function Wz(e,t){return uN(e,t)}function uN(e,t,r){var b;jt(hu(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=Q.useContext(pr),{matches:i}=Q.useContext(Ai),a=i[i.length-1],s=a?a.params:{},o=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let E=u&&u.path||"";fN(o,!u||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${o}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + */var rk="popstate";function ik(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function fz(e={}){function t(i,a){let{pathname:s="/",search:o="",hash:l=""}=xs(i.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),Qw("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(i,a){let s=i.document.querySelector("base"),o="";if(s&&s.getAttribute("href")){let l=i.location.href,u=l.indexOf("#");o=u===-1?l:l.slice(0,u)}return o+"#"+(typeof a=="string"?a:Jc(a))}function n(i,a){Ir(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return hz(t,r,n,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ir(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dz(){return Math.random().toString(36).substring(2,10)}function ak(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Qw(e,t,r=null,n,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?xs(t):t,state:r,key:t&&t.key||n||dz(),mask:i}}function Jc({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function xs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function hz(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",l=null,u=c();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function c(){return(s.state||{idx:null}).idx}function d(){o="POP";let w=c(),x=w==null?null:w-u;u=w,l&&l({action:o,location:g.location,delta:x})}function h(w,x){o="PUSH";let b=ik(w)?w:Qw(g.location,w,x);r&&r(b,w),u=c()+1;let E=ak(b,u),C=g.createHref(b.mask||b);try{s.pushState(E,"",C)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;i.location.assign(C)}a&&l&&l({action:o,location:g.location,delta:1})}function m(w,x){o="REPLACE";let b=ik(w)?w:Qw(g.location,w,x);r&&r(b,w),u=c();let E=ak(b,u),C=g.createHref(b.mask||b);s.replaceState(E,"",C),a&&l&&l({action:o,location:g.location,delta:0})}function y(w){return pz(w)}let g={get action(){return o},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(rk,d),l=w,()=>{i.removeEventListener(rk,d),l=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let x=y(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:m,go(w){return s.go(w)}};return g}function pz(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),jt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Jc(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function ZO(e,t,r="/"){return mz(e,t,r,!1)}function mz(e,t,r,n,i){let a=typeof t=="string"?xs(t):t,s=ea(a.pathname||"/",r);if(s==null)return null;let o=gz(e),l=null,u=Az(s);for(let c=0;l==null&&c{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;jt(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let d=Xr([n,c.relativePath]),h=r.concat(c);s.children&&s.children.length>0&&(jt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),eN(s.children,t,h,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:Sz(d,s.index),routesMeta:h})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let u of tN(s.path))a(s,o,!0,u)}),t}function tN(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=tN(n.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function vz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Cz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var yz=/^:[\w-]+$/,_z=3,wz=2,bz=1,xz=10,Ez=-2,ok=e=>e==="*";function Sz(e,t){let r=e.split("/"),n=r.length;return r.some(ok)&&(n+=Ez),t&&(n+=wz),r.filter(i=>!ok(i)).reduce((i,a)=>i+(yz.test(a)?_z:a===""?bz:xz),n)}function Cz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function kz(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o{if(c==="*"){let y=o[h]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=o[h];return d&&!m?u[c]=void 0:u[c]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function Tz(e,t=!1,r=!0){Ir(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,u,c)=>{if(n.push({paramName:o,isOptional:l!=null}),l){let d=c.charAt(u+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Az(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ir(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ea(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var Iz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Rz(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?xs(e):e,a;return r?(r=nN(r),r.startsWith("/")?a=sk(r.substring(1),"/"):a=sk(r,t)):a=t,{pathname:a,search:Nz(n),hash:Mz(i)}}function sk(e,t){let r=Up(t).split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function ty(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Pz(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ob(e){let t=Pz(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function hm(e,t,r,n=!1){let i;typeof e=="string"?i=xs(e):(i={...e},jt(!i.pathname||!i.pathname.includes("?"),ty("?","pathname","search",i)),jt(!i.pathname||!i.pathname.includes("#"),ty("#","pathname","hash",i)),jt(!i.search||!i.search.includes("#"),ty("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}o=d>=0?t[d]:"/"}let l=Rz(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var nN=e=>e.replace(/\/\/+/g,"/"),Xr=e=>nN(e.join("/")),Up=e=>e.replace(/\/+$/,""),Oz=e=>Up(e).replace(/^\/*/,"/"),Nz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Dz=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Fz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Lz(e){let t=e.map(r=>r.route.path).filter(Boolean);return Xr(t)||"/"}var rN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function iN(e,t){let r=e;if(typeof r!="string"||!Iz.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(rN)try{let a=new URL(window.location.href),s=r.startsWith("//")?new URL(a.protocol+r):new URL(r),o=ea(s.pathname,t);s.origin===a.origin&&o!=null?r=o+s.search+s.hash:i=!0}catch{Ir(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var aN=["POST","PUT","PATCH","DELETE"];new Set(aN);var jz=["GET",...aN];new Set(jz);var hu=Q.createContext(null);hu.displayName="DataRouter";var pm=Q.createContext(null);pm.displayName="DataRouterState";var oN=Q.createContext(!1);function Bz(){return Q.useContext(oN)}var sN=Q.createContext({isTransitioning:!1});sN.displayName="ViewTransition";var Uz=Q.createContext(new Map);Uz.displayName="Fetchers";var zz=Q.createContext(null);zz.displayName="Await";var pr=Q.createContext(null);pr.displayName="Navigation";var Vf=Q.createContext(null);Vf.displayName="Location";var Ai=Q.createContext({outlet:null,matches:[],isDataRoute:!1});Ai.displayName="Route";var sb=Q.createContext(null);sb.displayName="RouteError";var lN="REACT_ROUTER_ERROR",$z="REDIRECT",Hz="ROUTE_ERROR_RESPONSE";function qz(e){if(e.startsWith(`${lN}:${$z}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Gz(e){if(e.startsWith(`${lN}:${Hz}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Dz(t.status,t.statusText,t.data)}catch{}}function Wz(e,{relative:t}={}){jt(pu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=Q.useContext(pr),{hash:i,pathname:a,search:s}=Kf(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Xr([r,a])),n.createHref({pathname:o,search:s,hash:i})}function pu(){return Q.useContext(Vf)!=null}function pn(){return jt(pu(),"useLocation() may be used only in the context of a component."),Q.useContext(Vf).location}var uN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cN(e){Q.useContext(pr).static||Q.useLayoutEffect(e)}function Ii(){let{isDataRoute:e}=Q.useContext(Ai);return e?a$():Vz()}function Vz(){jt(pu(),"useNavigate() may be used only in the context of a component.");let e=Q.useContext(hu),{basename:t,navigator:r}=Q.useContext(pr),{matches:n}=Q.useContext(Ai),{pathname:i}=pn(),a=JSON.stringify(ob(n)),s=Q.useRef(!1);return cN(()=>{s.current=!0}),Q.useCallback((l,u={})=>{if(Ir(s.current,uN),!s.current)return;if(typeof l=="number"){r.go(l);return}let c=hm(l,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Xr([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,i,e])}Q.createContext(null);function Kf(e,{relative:t}={}){let{matches:r}=Q.useContext(Ai),{pathname:n}=pn(),i=JSON.stringify(ob(r));return Q.useMemo(()=>hm(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function Kz(e,t){return fN(e,t)}function fN(e,t,r){var w;jt(pu(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=Q.useContext(pr),{matches:i}=Q.useContext(Ai),a=i[i.length-1],s=a?a.params:{},o=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let x=u&&u.path||"";hN(o,!u||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${o}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let c=pn(),d;if(t){let E=typeof t=="string"?bs(t):t;jt(l==="/"||((b=E.pathname)==null?void 0:b.startsWith(l)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${E.pathname}" was given in the \`location\` prop.`),d=E}else d=c;let p=d.pathname||"/",m=p;if(l!=="/"){let E=l.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(E=>Object.assign(E,{route:r.manifest[E.route.id]||E.route})):XO(e,{pathname:m});Ir(u||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Ir(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let g=Xz(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:Xr([l,n.encodeLocation?n.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:Xr([l,n.encodeLocation?n.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),i,r);return t&&g?Q.createElement(Wf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function Vz(){let e=n$(),t=Mz(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=Q.createElement(Q.Fragment,null,Q.createElement("p",null,"💿 Hey developer 👋"),Q.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Q.createElement("code",{style:a},"ErrorBoundary")," or"," ",Q.createElement("code",{style:a},"errorElement")," prop on your route.")),Q.createElement(Q.Fragment,null,Q.createElement("h2",null,"Unexpected Application Error!"),Q.createElement("h3",{style:{fontStyle:"italic"}},t),r?Q.createElement("pre",{style:i},r):null,s)}var Kz=Q.createElement(Vz,null),cN=class extends Q.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Hz(e.digest);r&&(e=r)}let t=e!==void 0?Q.createElement(Ai.Provider,{value:this.props.routeContext},Q.createElement(ob.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?Q.createElement(Qz,{error:e},t):t}};cN.contextType=iN;var ty=new WeakMap;function Qz({children:e,error:t}){let{basename:r}=Q.useContext(pr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=$z(t.digest);if(n){let i=ty.get(t);if(i)throw i;let a=nN(n.location,r);if(tN&&!ty.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw ty.set(t,s),s}return Q.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function Yz({routeContext:e,match:t,children:r}){let n=Q.useContext(du);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),Q.createElement(Ai.Provider,{value:e},r)}function Xz(e,t=[],r){let n=r==null?void 0:r.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);jt(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,o=-1;if(r&&n){s=n.renderFallback;for(let c=0;c=0?i=i.slice(0,o+1):i=[i[0]];break}}}}let l=r==null?void 0:r.onError,u=n&&l?(c,d)=>{var p,m;l(c,{location:n.location,params:((m=(p=n.matches)==null?void 0:p[0])==null?void 0:m.params)??{},pattern:Dz(n.matches),errorInfo:d})}:void 0;return i.reduceRight((c,d,p)=>{let m,y=!1,g=null,b=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||Kz,s&&(o<0&&p===0?(fN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):o===p&&(y=!0,b=d.route.hydrateFallbackElement||null)));let E=t.concat(i.slice(0,p+1)),w=()=>{let x;return m?x=g:y?x=b:d.route.Component?x=Q.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,Q.createElement(Yz,{match:d,routeContext:{outlet:c,matches:E,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?Q.createElement(cN,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:w(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:u}):w()},null)}function sb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jz(e){let t=Q.useContext(du);return jt(t,sb(e)),t}function Zz(e){let t=Q.useContext(hm);return jt(t,sb(e)),t}function e$(e){let t=Q.useContext(Ai);return jt(t,sb(e)),t}function lb(e){let t=e$(e),r=t.matches[t.matches.length-1];return jt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function t$(){return lb("useRouteId")}function n$(){var n;let e=Q.useContext(ob),t=Zz("useRouteError"),r=lb("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function r$(){let{router:e}=Jz("useNavigate"),t=lb("useNavigate"),r=Q.useRef(!1);return lN(()=>{r.current=!0}),Q.useCallback(async(i,a={})=>{Ir(r.current,sN),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var sk={};function fN(e,t,r){!t&&!sk[e]&&(sk[e]=!0,Ir(!1,r))}Q.memo(i$);function i$({routes:e,manifest:t,future:r,state:n,isStatic:i,onError:a}){return uN(e,void 0,{manifest:t,state:n,isStatic:i,onError:a})}function Ph({to:e,replace:t,state:r,relative:n}){jt(hu()," may be used only in the context of a component.");let{static:i}=Q.useContext(pr);Ir(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=Q.useContext(Ai),{pathname:s}=pn(),o=Ii(),l=dm(e,ab(a),s,n==="path"),u=JSON.stringify(l);return Q.useEffect(()=>{o(JSON.parse(u),{replace:t,state:r,relative:n})},[o,u,n,t,r]),null}function Vo(e){jt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function a$({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,useTransitions:s}){jt(!hu(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=Q.useMemo(()=>({basename:o,navigator:i,static:a,useTransitions:s,future:{}}),[o,i,a,s]);typeof r=="string"&&(r=bs(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:m="default",mask:y}=r,g=Q.useMemo(()=>{let b=ea(u,o);return b==null?null:{location:{pathname:b,search:c,hash:d,state:p,key:m,mask:y},navigationType:n}},[o,u,c,d,p,m,n,y]);return Ir(g!=null,` is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the won't render anything.`),g==null?null:Q.createElement(pr.Provider,{value:l},Q.createElement(Wf.Provider,{children:t,value:g}))}function Oh({children:e,location:t}){return Wz(Qw(e),t)}function Qw(e,t=[]){let r=[];return Q.Children.forEach(e,(n,i)=>{if(!Q.isValidElement(n))return;let a=[...t,i];if(n.type===Q.Fragment){r.push.apply(r,Qw(n.props.children,a));return}jt(n.type===Vo,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),jt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=Qw(n.props.children,a)),r.push(s)}),r}var vp="get",yp="application/x-www-form-urlencoded";function pm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function o$(e){return pm(e)&&e.tagName.toLowerCase()==="button"}function s$(e){return pm(e)&&e.tagName.toLowerCase()==="form"}function l$(e){return pm(e)&&e.tagName.toLowerCase()==="input"}function u$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c$(e,t){return e.button===0&&(!t||t==="_self")&&!u$(e)}var Nh=null;function f$(){if(Nh===null)try{new FormData(document.createElement("form"),0),Nh=!1}catch{Nh=!0}return Nh}var d$=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ny(e){return e!=null&&!d$.has(e)?(Ir(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${yp}"`),null):e}function h$(e,t){let r,n,i,a,s;if(s$(e)){let o=e.getAttribute("action");n=o?ea(o,t):null,r=e.getAttribute("method")||vp,i=ny(e.getAttribute("enctype"))||yp,a=new FormData(e)}else if(o$(e)||l$(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a - ${e.linkExistingRelative?v3(e):""} + ${e.linkExistingRelative?_3(e):""} - `}function Due(e){return` + `}function jue(e){return`
- ${y3()} + ${w3()}
- ${e.no_edit?"":jue(e)} - ${e.no_edit?Uue():Bue(e)} + ${e.no_edit?"":zue(e)} + ${e.no_edit?Hue():$ue(e)}
- ${m3(e)} + ${v3(e)} - ${g3(e)} + ${y3(e)}
- ${e.linkExistingRelative?v3(e):""} + ${e.linkExistingRelative?_3(e):""}
- ${Fue(e)} + ${Bue(e)} - ${Lue(e)} + ${Uue(e)}
- `}function Fue(e){return` + `}function Bue(e){return`
- `}function Lue(e){return` + `}function Uue(e){return`
- `}function jue(e){return` + `}function zue(e){return` - ${e.addRelativeActive?Eue():xue()} + ${e.addRelativeActive?kue():Cue()} - `}function Bue(e){return` + `}function $ue(e){return` - ${e.editable?kue():Cue()} + ${e.editable?Iue():Aue()} - `}function m3(e){return e.editable?` + `}function v3(e){return e.editable?`
${e.gender_field.options.map(t=>` `).join("")}
- `:""}function g3(e){if(!e.editable)return r();let t="";return e.fields.forEach(n=>{if(n.type==="text")t+=` + `:""}function y3(e){if(!e.editable)return r();let t="";return e.fields.forEach(n=>{if(n.type==="text")t+=`
${i.label} ${i.initial_value||""} -
`}),n}}function v3(e){const t=e.linkExistingRelative.hasOwnProperty("title")?e.linkExistingRelative.title:"Profile already exists?",r=e.linkExistingRelative.hasOwnProperty("select_placeholder")?e.linkExistingRelative.select_placeholder:"Select profile",n=e.linkExistingRelative.options;return` + `}),n}}function _3(e){const t=e.linkExistingRelative.hasOwnProperty("title")?e.linkExistingRelative.title:"Profile already exists?",r=e.linkExistingRelative.hasOwnProperty("select_placeholder")?e.linkExistingRelative.select_placeholder:"Select profile",n=e.linkExistingRelative.options;return`

- `}function y3(){return` + `}function w3(){return` × - `}function Uue(){return'
'}function zue(e,t){return _3(e,t)}function $ue(e,t){return _3(e,t)}function _3(e,t){const r=a(e),n=document.createElement("div");return i(),n;function i(){const s=r?Mue(e):Due(e);n.innerHTML=s,Hue(n,e,t,i),r?que(n,e):Gue(n,e,i),e.onFormCreation&&e.onFormCreation({cont:n,form_creator:e})}function a(s){return"new_rel"in s}}function Hue(e,t,r,n){const i=e.querySelector("form");i.addEventListener("submit",t.onSubmit),i.querySelector(".f3-cancel-btn").addEventListener("click",o),i.querySelector(".f3-close-btn").addEventListener("click",r);function o(){t.editable=!1,t.onCancel&&t.onCancel(),n()}}function que(e,t){const n=e.querySelector("form").querySelector(".f3-link-existing-relative select");n&&n.addEventListener("change",t.linkExistingRelative.onSelect)}function Gue(e,t,r){const n=e.querySelector("form"),i=n.querySelector(".f3-edit-btn");i&&i.addEventListener("click",u);const a=n.querySelector(".f3-delete-btn");a&&t.onDelete&&a.addEventListener("click",t.onDelete);const s=n.querySelector(".f3-add-relative-btn");s&&t.addRelative&&s.addEventListener("click",()=>{t.addRelativeActive?t.addRelativeCancel():t.addRelative(),t.addRelativeActive=!t.addRelativeActive,r()});const o=n.querySelector(".f3-remove-relative-btn");o&&t.removeRelative&&o.addEventListener("click",()=>{t.removeRelativeActive?t.removeRelativeCancel():t.removeRelative(),t.removeRelativeActive=!t.removeRelativeActive,r()});const l=n.querySelector(".f3-link-existing-relative select");l&&l.addEventListener("change",t.linkExistingRelative.onSelect);function u(){t.editable=!t.editable,r()}}function Wue(e,t,r){let n=[],i=-1;return{changed:a,back:s,forward:o,canForward:l,canBack:u};function a(){i0}function c(d){const p=e.getMainId();d=JSON.parse(JSON.stringify(d)),d.find(m=>m.id===p)||e.updateMainId(d.main_id),e.updateData(d),r()}}function Vue(e,t){const r=ve(e).append("div").attr("class","f3-history-controls");e.insertBefore(r.node(),e.firstChild);const n=r.append("button").attr("class","f3-back-button").on("click",()=>{t.back(),a()}),i=r.append("button").attr("class","f3-forward-button").on("click",()=>{t.forward(),a()});return n.html(Tue()),i.html(Aue()),{back_btn:n.node(),forward_btn:i.node(),updateButtons:a,destroy:s};function a(){n.classed("disabled",!t.canBack()),i.classed("disabled",!t.canForward()),!t.canBack()&&!t.canForward()?r.style("opacity",0).style("pointer-events","none"):r.style("opacity",1).style("pointer-events","auto")}function s(){ve(e).select(".f3-history-controls").remove()}}function w3({d:e,card_dim:t,card_display:r}){return{template:` + `}function Hue(){return'
'}function que(e,t){return b3(e,t)}function Gue(e,t){return b3(e,t)}function b3(e,t){const r=a(e),n=document.createElement("div");return i(),n;function i(){const s=r?Lue(e):jue(e);n.innerHTML=s,Wue(n,e,t,i),r?Vue(n,e):Kue(n,e,i),e.onFormCreation&&e.onFormCreation({cont:n,form_creator:e})}function a(s){return"new_rel"in s}}function Wue(e,t,r,n){const i=e.querySelector("form");i.addEventListener("submit",t.onSubmit),i.querySelector(".f3-cancel-btn").addEventListener("click",o),i.querySelector(".f3-close-btn").addEventListener("click",r);function o(){t.editable=!1,t.onCancel&&t.onCancel(),n()}}function Vue(e,t){const n=e.querySelector("form").querySelector(".f3-link-existing-relative select");n&&n.addEventListener("change",t.linkExistingRelative.onSelect)}function Kue(e,t,r){const n=e.querySelector("form"),i=n.querySelector(".f3-edit-btn");i&&i.addEventListener("click",u);const a=n.querySelector(".f3-delete-btn");a&&t.onDelete&&a.addEventListener("click",t.onDelete);const s=n.querySelector(".f3-add-relative-btn");s&&t.addRelative&&s.addEventListener("click",()=>{t.addRelativeActive?t.addRelativeCancel():t.addRelative(),t.addRelativeActive=!t.addRelativeActive,r()});const o=n.querySelector(".f3-remove-relative-btn");o&&t.removeRelative&&o.addEventListener("click",()=>{t.removeRelativeActive?t.removeRelativeCancel():t.removeRelative(),t.removeRelativeActive=!t.removeRelativeActive,r()});const l=n.querySelector(".f3-link-existing-relative select");l&&l.addEventListener("change",t.linkExistingRelative.onSelect);function u(){t.editable=!t.editable,r()}}function Que(e,t,r){let n=[],i=-1;return{changed:a,back:s,forward:o,canForward:l,canBack:u};function a(){i0}function c(d){const h=e.getMainId();d=JSON.parse(JSON.stringify(d)),d.find(m=>m.id===h)||e.updateMainId(d.main_id),e.updateData(d),r()}}function Yue(e,t){const r=ve(e).append("div").attr("class","f3-history-controls");e.insertBefore(r.node(),e.firstChild);const n=r.append("button").attr("class","f3-back-button").on("click",()=>{t.back(),a()}),i=r.append("button").attr("class","f3-forward-button").on("click",()=>{t.forward(),a()});return n.html(Rue()),i.html(Pue()),{back_btn:n.node(),forward_btn:i.node(),updateButtons:a,destroy:s};function a(){n.classed("disabled",!t.canBack()),i.classed("disabled",!t.canForward()),!t.canBack()&&!t.canForward()?r.style("opacity",0).style("pointer-events","none"):r.style("opacity",1).style("pointer-events","auto")}function s(){ve(e).select(".f3-history-controls").remove()}}function x3({d:e,card_dim:t,card_display:r}){return{template:` - ${Que({d:e,card_dim:t,card_display:r}).template} + ${Jue({d:e,card_dim:t,card_display:r}).template} - `}}function Kue({d:e,card_dim:t,label:r}){return{template:` + `}}function Xue({d:e,card_dim:t,label:r}){return{template:` ${r} - `}}function Que({d:e,card_dim:t,card_display:r}){return{template:` + `}}function Jue({d:e,card_dim:t,card_display:r}){return{template:` @@ -763,9 +811,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - `}}function UR({d:e,card_dim:t,is_new:r}){return{template:` + `}}function $R({d:e,card_dim:t,is_new:r}){return{template:` - `}}function Yue({d:e,card_dim:t}){return{template:` + `}}function Zue({d:e,card_dim:t}){return{template:` @@ -776,7 +824,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - `}}function Xue({d:e,image:t,card_dim:r,maleIcon:n,femaleIcon:i}){return{template:` + `}}function ece({d:e,image:t,card_dim:r,maleIcon:n,femaleIcon:i}){return{template:` ${t?``:(e.data.data.gender,e.data.data.gender,a())} @@ -789,31 +837,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z" /> - `}}function rp(e,t,r){const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.innerHTML=e,r?t.insertBefore(n,t.firstChild):t.appendChild(n)}const zR={miniTree:Jue,cardBody:Zue,cardImage:ece};function Jue(e,t){if(e.data.to_add)return;const r=t.card_dim;if(e.all_rels_displayed)return;const n=ta("svg:g").html(Yue({d:e,card_dim:r}).template);return n.on("click",function(i){i.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,i,e):u3(t.store,{d:e})}),n.node()}function Zue(e,t){const r=t.card_dim,n=ta("svg:g").html(w3({d:e,card_dim:r,card_display:t.card_display}).template);return n.on("click",function(i){i.stopPropagation(),t.onCardClick?t.onCardClick.call(this,i,e):u3(t.store,{d:e})}),n.node()}function ece(e,t){if(e.data.to_add)return;const r=t.card_dim;return ta("svg:g").html(Xue({d:e,image:e.data.data.avatar||null,card_dim:r,maleIcon:void 0,femaleIcon:void 0}).template).node()}function J1(e,t,r=!1){e&&(r?t.insertBefore(e,t.firstChild):t.appendChild(e))}function tce(e,t,r,n){if(!t.hasOwnProperty("_toggle"))return;const i=e.querySelector(".card"),a=i.querySelector(".card-inner"),s=e.querySelector(".card").offsetWidth;e.querySelector(".card").offsetHeight;let o,l;const u={};if(t.spouse){const d=t.spouse,p=d.data.main?"main":d.parent.data.id;if(o=d.data._tgdp_sp[p][t.data.id]<0,u.top=60,u.left=t.sx-t.x-30+s/2,r&&(u.top=t.sy-t.x+4,u.left=s/2+4,Math.abs(t.sx-t.y)<10&&(u.left=s-4)),l=d._toggle_id_sp?d._toggle_id_sp[t.data.id]:-1,l===-1)return}else{const d=t.data.main?"main":t.parent.data.id;o=t.data._tgdp[d]<0,u.top=-65,u.left=-30+s/2,r&&(u.top=5,u.left=-55),l=t._toggle_id}if(a.style.zIndex=1,ve(i).append("div").attr("class","f3-toggle-div").attr("style","cursor: pointer; width: 60px; height: 60px;position: absolute; z-index: -1;").style("top",u.top+"px").style("left",u.left+"px").on("click",d=>{if(d.stopPropagation(),t.spouse){const p=t.spouse,m=p.data.main?"main":p.parent.data.id;p.data._tgdp_sp[m].hasOwnProperty(t.data.id)||console.error("no toggle",t,p);let y=p.data._tgdp_sp[m][t.data.id];y<0?y=new Date().getTime():y=-new Date().getTime(),p.data._tgdp_sp[m][t.data.id]=y}else{const p=t.data.main?"main":t.parent.data.id;let m=t.data._tgdp[p];m<0?m=new Date().getTime():m=-new Date().getTime(),t.data._tgdp[p]=m}n()}).append("div").html(o?Rue():Iue()).select("svg").classed("f3-toggle-icon",!0).style("color",o?"#585656":"#61bf52").style("padding","0"),ve(i).select(".f3-toggle-icon .f3-small-circle").style("fill","#fff"),ve(i).select(".f3-toggle-icon").append("text").attr("transform",o?"translate(10.6, 14.5)":"translate(4.1, 14.5)").attr("fill","#fff").attr("font-size","7px").text("C"+l),o){let d;t.is_ancestry?r?d="translate(5, -30)rotate(-90)":d="translate(0, -10)":r?d="translate(11, -22)rotate(90)":d="translate(-7, -32)rotate(180)",ve(i).select(".f3-toggle-div").insert("div").html(p3()).select("svg").attr("style","position: absolute; z-index: -1;top: 0;left: 0;border-radius: 0;").style("width","66px").style("height","112px").attr("transform",d).attr("viewBox","0 0 72 125").select("line").attr("y1",t.is_ancestry?"62":"92")}}function b3(e){const t=e.style==="default"?u:e.style==="imageCircleRect"?l:e.style==="imageCircle"?c:e.style==="imageRect"?d:e.style==="rect"?p:u;return function(x){if(this.innerHTML=` -
- ${e.mini_tree?o(x):""} - ${e.cardInnerHtmlCreator&&!x.data._new_rel_data?e.cardInnerHtmlCreator(x):t(x)} + `}}function ip(e,t,r){const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.innerHTML=e,r?t.insertBefore(n,t.firstChild):t.appendChild(n)}const HR={miniTree:tce,cardBody:nce,cardImage:rce};function tce(e,t){if(e.data.to_add)return;const r=t.card_dim;if(e.all_rels_displayed)return;const n=ta("svg:g").html(Zue({d:e,card_dim:r}).template);return n.on("click",function(i){i.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,i,e):f3(t.store,{d:e})}),n.node()}function nce(e,t){const r=t.card_dim,n=ta("svg:g").html(x3({d:e,card_dim:r,card_display:t.card_display}).template);return n.on("click",function(i){i.stopPropagation(),t.onCardClick?t.onCardClick.call(this,i,e):f3(t.store,{d:e})}),n.node()}function rce(e,t){if(e.data.to_add)return;const r=t.card_dim;return ta("svg:g").html(ece({d:e,image:e.data.data.avatar||null,card_dim:r,maleIcon:void 0,femaleIcon:void 0}).template).node()}function Z1(e,t,r=!1){e&&(r?t.insertBefore(e,t.firstChild):t.appendChild(e))}function ice(e,t,r,n){if(!t.hasOwnProperty("_toggle"))return;const i=e.querySelector(".card"),a=i.querySelector(".card-inner"),s=e.querySelector(".card").offsetWidth;e.querySelector(".card").offsetHeight;let o,l;const u={};if(t.spouse){const d=t.spouse,h=d.data.main?"main":d.parent.data.id;if(o=d.data._tgdp_sp[h][t.data.id]<0,u.top=60,u.left=t.sx-t.x-30+s/2,r&&(u.top=t.sy-t.x+4,u.left=s/2+4,Math.abs(t.sx-t.y)<10&&(u.left=s-4)),l=d._toggle_id_sp?d._toggle_id_sp[t.data.id]:-1,l===-1)return}else{const d=t.data.main?"main":t.parent.data.id;o=t.data._tgdp[d]<0,u.top=-65,u.left=-30+s/2,r&&(u.top=5,u.left=-55),l=t._toggle_id}if(a.style.zIndex=1,ve(i).append("div").attr("class","f3-toggle-div").attr("style","cursor: pointer; width: 60px; height: 60px;position: absolute; z-index: -1;").style("top",u.top+"px").style("left",u.left+"px").on("click",d=>{if(d.stopPropagation(),t.spouse){const h=t.spouse,m=h.data.main?"main":h.parent.data.id;h.data._tgdp_sp[m].hasOwnProperty(t.data.id)||console.error("no toggle",t,h);let y=h.data._tgdp_sp[m][t.data.id];y<0?y=new Date().getTime():y=-new Date().getTime(),h.data._tgdp_sp[m][t.data.id]=y}else{const h=t.data.main?"main":t.parent.data.id;let m=t.data._tgdp[h];m<0?m=new Date().getTime():m=-new Date().getTime(),t.data._tgdp[h]=m}n()}).append("div").html(o?Nue():Oue()).select("svg").classed("f3-toggle-icon",!0).style("color",o?"#585656":"#61bf52").style("padding","0"),ve(i).select(".f3-toggle-icon .f3-small-circle").style("fill","#fff"),ve(i).select(".f3-toggle-icon").append("text").attr("transform",o?"translate(10.6, 14.5)":"translate(4.1, 14.5)").attr("fill","#fff").attr("font-size","7px").text("C"+l),o){let d;t.is_ancestry?r?d="translate(5, -30)rotate(-90)":d="translate(0, -10)":r?d="translate(11, -22)rotate(90)":d="translate(-7, -32)rotate(180)",ve(i).select(".f3-toggle-div").insert("div").html(g3()).select("svg").attr("style","position: absolute; z-index: -1;top: 0;left: 0;border-radius: 0;").style("width","66px").style("height","112px").attr("transform",d).attr("viewBox","0 0 72 125").select("line").attr("y1",t.is_ancestry?"62":"92")}}function E3(e){const t=e.style==="default"?u:e.style==="imageCircleRect"?l:e.style==="imageCircle"?c:e.style==="imageRect"?d:e.style==="rect"?h:u;return function(E){if(this.innerHTML=` +
+ ${e.mini_tree?o(E):""} + ${e.cardInnerHtmlCreator&&!E.data._new_rel_data?e.cardInnerHtmlCreator(E):t(E)}
- `,this.querySelector(".card").addEventListener("click",C=>e.onCardClick(C,x)),e.onCardUpdate&&e.onCardUpdate.call(this,x),e.onCardMouseenter&&ve(this).select(".card").on("mouseenter",C=>e.onCardMouseenter(C,x)),e.onCardMouseleave&&ve(this).select(".card").on("mouseleave",C=>e.onCardMouseleave(C,x)),x.duplicate&&w(this,x),e.duplicate_branch_toggle&&tce(this,x,e.store.state.is_horizontal,e.store.updateTree),location.origin.includes("localhost")&&(x.__node=this.querySelector(".card"),x.__label=x.data.data["first name"],x.data.to_add)){const C=x.spouse||x.coparent||null;C&&ve(this).select(".card").attr("data-to-add",C.data.data["first name"])}};function r(x){return` + `,this.querySelector(".card").addEventListener("click",C=>e.onCardClick(C,E)),e.onCardUpdate&&e.onCardUpdate.call(this,E),e.onCardMouseenter&&ve(this).select(".card").on("mouseenter",C=>e.onCardMouseenter(C,E)),e.onCardMouseleave&&ve(this).select(".card").on("mouseleave",C=>e.onCardMouseleave(C,E)),E.duplicate&&b(this,E),e.duplicate_branch_toggle&&ice(this,E,e.store.state.is_horizontal,e.store.updateTree),location.origin.includes("localhost")&&(E.__node=this.querySelector(".card"),E.__label=E.data.data["first name"],E.data.to_add)){const C=E.spouse||E.coparent||null;C&&ve(this).select(".card").attr("data-to-add",C.data.data["first name"])}};function r(E){return`
- ${x.data.data[e.cardImageField]?``:b(x)} -
${a(x)}
- ${x.duplicate?E(x):""} + ${E.data.data[e.cardImageField]?``:w(E)} +
${a(E)}
+ ${E.duplicate?x(E):""}
- `}function n(x){return` + `}function n(E){return`
- ${x.data.data[e.cardImageField]?``:b(x)} -
${a(x)}
- ${x.duplicate?E(x):""} + ${E.data.data[e.cardImageField]?``:w(E)} +
${a(E)}
+ ${E.duplicate?x(E):""}
- `}function i(x){return` + `}function i(E){return`
- ${a(x)} - ${x.duplicate?E(x):""} + ${a(E)} + ${E.duplicate?x(E):""}
- `}function a(x){return x.data._new_rel_data?s(x):x.data.to_add?`
${e.empty_card_label||"ADD"}
`:x.data.unknown?`
${e.unknown_card_label||"UNKNOWN"}
`:` - ${e.card_display.map(C=>`
${C(x.data)}
`).join("")} - `}function s(x){const C=[];return C.push(`data-rel-type="${x.data._new_rel_data.rel_type}"`),["son","daughter"].includes(x.data._new_rel_data.rel_type)&&C.push(`data-other-parent-id="${x.data._new_rel_data.other_parent_id}"`),`
${x.data._new_rel_data.label}
`}function o(x){return!e.mini_tree||x.data.to_add||x.data._new_rel_data||x.all_rels_displayed?"":`
${p3()}
`}function l(x){return x.data.data[e.cardImageField]?c(x):p(x)}function u(x){return n(x)}function c(x){return r(x)}function d(x){return n(x)}function p(x){return i(x)}function m(x){const C=[];return x.data.data.gender==="M"?C.push("card-male"):x.data.data.gender==="F"?C.push("card-female"):C.push("card-genderless"),C.push(`card-depth-${x.is_ancestry?-x.depth:x.depth}`),x.data.main&&C.push("card-main"),x.data._new_rel_data&&C.push("card-new-rel"),x.data.to_add&&C.push("card-to-add"),x.data.unknown&&C.push("card-unknown"),C}function y(){let x='style="';if(e.card_dim.w||e.card_dim.h)x+=`width: ${e.card_dim.w}px; min-height: ${e.card_dim.h}px;`,e.card_dim.height_auto?x+="height: auto;":x+=`height: ${e.card_dim.h}px;`;else return"";return x+='"',x}function g(){let x='style="position: relative;';if(e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y)x+=`width: ${e.card_dim.img_w}px; height: ${e.card_dim.img_h}px;`,x+=`left: ${e.card_dim.img_x}px; top: ${e.card_dim.img_y}px;`;else return"";return x+='"',x}function b(x){return x.data._new_rel_data?`
${Sue()}
`:`
${e.defaultPersonIcon?e.defaultPersonIcon(x):h3()}
`}function E(x){return`
x${x.duplicate}
`}function w(x,C){ve(x).on("mouseenter",_=>{ve(x.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",k=>k.data.id===C.data.id)}),ve(x).on("mouseleave",_=>{ve(x.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",!1)})}}function x3(e,t){if(e.querySelector("defs#f3CardDef"))return;e.insertAdjacentHTML("afterbegin",` + `}function a(E){return E.data._new_rel_data?s(E):E.data.to_add?`
${e.empty_card_label||"ADD"}
`:E.data.unknown?`
${e.unknown_card_label||"UNKNOWN"}
`:` + ${e.card_display.map(C=>`
${C(E.data)}
`).join("")} + `}function s(E){const C=[];return C.push(`data-rel-type="${E.data._new_rel_data.rel_type}"`),["son","daughter"].includes(E.data._new_rel_data.rel_type)&&C.push(`data-other-parent-id="${E.data._new_rel_data.other_parent_id}"`),`
${E.data._new_rel_data.label}
`}function o(E){return!e.mini_tree||E.data.to_add||E.data._new_rel_data||E.all_rels_displayed?"":`
${g3()}
`}function l(E){return E.data.data[e.cardImageField]?c(E):h(E)}function u(E){return n(E)}function c(E){return r(E)}function d(E){return n(E)}function h(E){return i(E)}function m(E){const C=[];return E.data.data.gender==="M"?C.push("card-male"):E.data.data.gender==="F"?C.push("card-female"):C.push("card-genderless"),C.push(`card-depth-${E.is_ancestry?-E.depth:E.depth}`),E.data.main&&C.push("card-main"),E.data._new_rel_data&&C.push("card-new-rel"),E.data.to_add&&C.push("card-to-add"),E.data.unknown&&C.push("card-unknown"),C}function y(){let E='style="';if(e.card_dim.w||e.card_dim.h)E+=`width: ${e.card_dim.w}px; min-height: ${e.card_dim.h}px;`,e.card_dim.height_auto?E+="height: auto;":E+=`height: ${e.card_dim.h}px;`;else return"";return E+='"',E}function g(){let E='style="position: relative;';if(e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y)E+=`width: ${e.card_dim.img_w}px; height: ${e.card_dim.img_h}px;`,E+=`left: ${e.card_dim.img_x}px; top: ${e.card_dim.img_y}px;`;else return"";return E+='"',E}function w(E){return E.data._new_rel_data?`
${Tue()}
`:`
${e.defaultPersonIcon?e.defaultPersonIcon(E):m3()}
`}function x(E){return`
x${E.duplicate}
`}function b(E,C){ve(E).on("mouseenter",v=>{ve(E.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",k=>k.data.id===C.data.id)}),ve(E).on("mouseleave",v=>{ve(E.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",!1)})}}function S3(e,t){if(e.querySelector("defs#f3CardDef"))return;e.insertAdjacentHTML("afterbegin",` @@ -826,18 +874,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - `);function r(n,i,a){const{w:s,h:o}=n,l=i,u=a||[],c=g=>u.includes(g),d=c("lx")?"M0,0":`M0,${l} Q 0,0 5,0`,p=c("rx")?`H${s}`:`H${s-l} Q ${s},0 ${s},5`,m=c("ry")?`V${o}`:`V${o-l} Q ${s},${o} ${s-l},${o}`,y=c("ly")?"H0":`H${l} Q 0,${o} 0,${o-l}`;return`${d} ${p} ${m} ${y} z`}}function nce(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),x3(e,t)}function Ux(e){return e=t(e),x3(e.svg,e.card_dim),function(r){const n=r.data.data.gender==="M"?"card-male":r.data.data.gender==="F"?"card-female":"card-genderless",i=e.card_dim,a=ta("svg:g").attr("class",`card ${n}`).attr("transform",`translate(${[-i.w/2,-i.h/2]})`);a.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(a.node()),a.on("click",function(s){s.stopPropagation(),e.onCardClick.call(this,s,r)}),r.data._new_rel_data?(rp(UR({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),rp(Kue({d:r,card_dim:i,label:r.data._new_rel_data.label}).template,this.querySelector(".card-inner"),!0),ve(this.querySelector(".card-inner")).append("g").attr("class","card-edit-icon").attr("fill","currentColor").attr("transform",`translate(-1,2)scale(${i.img_h/22})`).html(d3())):(rp(UR({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),rp(w3({d:r,card_dim:i,card_display:e.card_display}).template,this.querySelector(".card-inner"),!1),e.img&&J1(zR.cardImage(r,e),this.querySelector(".card")),e.mini_tree&&J1(zR.miniTree(r,e),this.querySelector(".card"),!0)),e.onCardUpdate&&e.onCardUpdate.call(this,r)};function t(r){const n={img:!0,mini_tree:!0,link_break:!1,card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}};r||(r={});for(const i in n)typeof r[i]>"u"&&(r[i]=n[i]);return r}}function rce(e){return e.onCardClick===void 0&&(e.onCardClick=(t,r)=>{e.store.updateMainId(r.data.id),e.store.updateTree({})}),Ux(e)}function E3(e,t){return new ice(e,t)}class ice{constructor(t,r){this.cont=t,this.active=!1,this.onClose=r,this.popup_cont=ve(this.cont).append("div").attr("class","f3-popup").node(),this.create()}create(){const t=ve(this.popup_cont);t.html(` + `);function r(n,i,a){const{w:s,h:o}=n,l=i,u=a||[],c=g=>u.includes(g),d=c("lx")?"M0,0":`M0,${l} Q 0,0 5,0`,h=c("rx")?`H${s}`:`H${s-l} Q ${s},0 ${s},5`,m=c("ry")?`V${o}`:`V${o-l} Q ${s},${o} ${s-l},${o}`,y=c("ly")?"H0":`H${l} Q 0,${o} 0,${o-l}`;return`${d} ${h} ${m} ${y} z`}}function ace(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),S3(e,t)}function zx(e){return e=t(e),S3(e.svg,e.card_dim),function(r){const n=r.data.data.gender==="M"?"card-male":r.data.data.gender==="F"?"card-female":"card-genderless",i=e.card_dim,a=ta("svg:g").attr("class",`card ${n}`).attr("transform",`translate(${[-i.w/2,-i.h/2]})`);a.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(a.node()),a.on("click",function(s){s.stopPropagation(),e.onCardClick.call(this,s,r)}),r.data._new_rel_data?(ip($R({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),ip(Xue({d:r,card_dim:i,label:r.data._new_rel_data.label}).template,this.querySelector(".card-inner"),!0),ve(this.querySelector(".card-inner")).append("g").attr("class","card-edit-icon").attr("fill","currentColor").attr("transform",`translate(-1,2)scale(${i.img_h/22})`).html(p3())):(ip($R({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),ip(x3({d:r,card_dim:i,card_display:e.card_display}).template,this.querySelector(".card-inner"),!1),e.img&&Z1(HR.cardImage(r,e),this.querySelector(".card")),e.mini_tree&&Z1(HR.miniTree(r,e),this.querySelector(".card"),!0)),e.onCardUpdate&&e.onCardUpdate.call(this,r)};function t(r){const n={img:!0,mini_tree:!0,link_break:!1,card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}};r||(r={});for(const i in n)typeof r[i]>"u"&&(r[i]=n[i]);return r}}function oce(e){return e.onCardClick===void 0&&(e.onCardClick=(t,r)=>{e.store.updateMainId(r.data.id),e.store.updateTree({})}),zx(e)}function C3(e,t){return new sce(e,t)}class sce{constructor(t,r){this.cont=t,this.active=!1,this.onClose=r,this.popup_cont=ve(this.cont).append("div").attr("class","f3-popup").node(),this.create()}create(){const t=ve(this.popup_cont);t.html(`
×
- `),t.select(".f3-popup-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t){const r=ve(this.popup_cont).select(".f3-popup-content-inner").node();t&&r.appendChild(t),this.open()}open(){this.active=!0}close(){this.popup_cont.remove(),this.active=!1,this.onClose&&this.onClose()}}function S3(e,t,r){const n=t.find(c=>c.id===e),i={};return a(n.id,"self",0),s(i),r.show_in_law&&o(i,t),l(i),i;function a(c,d,p,m=void 0){if(!c||i[c])return;d&&(i[c]=d);const g=t.find(b=>b.id===c).rels;if(d==="self")g.parents.forEach(b=>a(b,"parent",p-1,c)),(g.spouses||[]).forEach(b=>a(b,"spouse",p)),(g.children||[]).forEach(b=>a(b,"child",p+1));else if(d==="parent")g.parents.forEach(b=>a(b,"grandparent",p-1,c)),(g.children||[]).forEach(b=>{m&&m===b||a(b,"sibling",p+1)});else if(d!=="spouse")if(d==="child")(g.children||[]).forEach(b=>a(b,"grandchild",p+1));else if(d==="sibling")(g.children||[]).forEach(b=>a(b,"nephew",p+1));else if(d==="grandparent")m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(b=>a(b,"great-grandparent",p-1,c)),(g.children||[]).forEach(b=>{m&&m===b||a(b,"uncle",p+1)});else if(d.includes("grandchild"))(g.children||[]).forEach(b=>a(b,ip(d,p+1),p+1));else if(d.includes("great-grandparent"))m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(b=>a(b,ip(d,p-1),p-1,c)),(g.children||[]).forEach(b=>{if(m&&m===b)return;const E=k3(p+1);E===0?a(b,"granduncle",p+1):E>0?a(b,ip("granduncle",p+1),p+1):console.error(`${d} should have great_count > -1`)});else if(d==="nephew")(g.children||[]).forEach(b=>a(b,"grandnephew",p+1));else if(d.includes("grandnephew"))(g.children||[]).forEach(b=>a(b,ip(d,p+1),p+1));else if(d==="uncle")(g.children||[]).forEach(b=>a(b,"1st Cousin",p+1));else if(d==="granduncle")(g.children||[]).forEach(b=>a(b,"1st Cousin 1x removed",p+1));else if(d.includes("great-granduncle")){const b=p+1,E=Math.abs(b);(g.children||[]).forEach(w=>a(w,`1st Cousin ${E}x removed`,b))}else d.slice(4).startsWith("Cousin")?(g.children||[]).forEach(b=>{const E=p+1,w=Math.abs(E),x=+d[0];E===0?a(b,`${k0(x+1)} Cousin`,E):E<0?a(b,`${k0(x+1)} Cousin ${w}x removed`,E):E>0&&a(b,`${k0(x)} Cousin ${w}x removed`,E)}):console.error(`${d} not found`)}function s(c){const d=[];Object.keys(c).forEach(p=>{const m=c[p];if(m.includes("child")||m==="spouse")return;const y=C3(n.id,p,t);if(!y)return console.error(`${t.find(g=>g.id===p).data} not found in main_ancestry`);y.is_half_kin&&d.push(p)}),d.forEach(p=>{c[p]=`Half ${c[p]}`})}function o(c,d){Object.keys(c).forEach(p=>{const m=c[p],y=d.find(g=>g.id===p);if(m==="spouse"){const g=[];y.rels.parents.forEach(b=>(u(b).rels.children||[]).forEach(E=>g.push(E))),g.forEach(b=>{c[b]||(c[b]="sibling-in-law")})}m==="sibling"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="sibling-in-law")}),m==="child"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="child-in-law")}),m==="uncle"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="uncle-in-law")}),m.includes("Cousin")&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]=`${m} in-law`)})})}function l(c){Object.keys(c).forEach(d=>{const p=c[d],y=t.find(g=>g.id===d).data.gender;if(p.includes("parent")){const b=y==="M"?"father":y==="F"?"mother":"parent";c[d]=c[d].replace("parent",b)}else if(p.includes("sibling")){const b=y==="M"?"brother":y==="F"?"sister":"sibling";c[d]=c[d].replace("sibling",b)}else if(p.includes("child")){const b=y==="M"?"son":y==="F"?"daughter":"child";c[d]=c[d].replace("child",b)}else if(p.includes("uncle")){const b=y==="M"?"uncle":y==="F"?"aunt":"aunt/uncle";c[d]=c[d].replace("uncle",b)}else if(p.includes("nephew")){const b=y==="M"?"nephew":y==="F"?"niece":"neice/nephew";c[d]=c[d].replace("nephew",b)}})}function u(c){return t.find(d=>d.id===c)}}function C3(e,t,r){const n=l(e);let i,a,s;if(c(t),d(t),o(t),!i)return null;return{found:i,is_ancestor:a,is_half_kin:s};function o(m){if(i)return;if(m===e){a=!0,i=m,s=!1;return}const g=r.find(w=>w.id===m).rels,b=u(g),E=n.find(w=>w[0]&&b[0]&&w[0]===b[0]||w[1]&&b[1]&&w[1]===b[1]);if(E){i=b.filter((w,x)=>w===E[x]),s=p(b,E);return}g.parents.forEach(w=>o(w))}function l(m){const y=[];return g(m),y;function g(b){const w=r.find(x=>x.id===b).rels;y.push(u(w)),w.parents.forEach(x=>g(x))}}function u(m){return m.parents}function c(m){const y=r.find(b=>b.id===m);n.find(b=>b[0]===y.id||b[1]===y.id)&&(a=!0,i=m,s=!1)}function d(m){(r.find(g=>g.id===e).rels.spouses||[]).includes(m)&&(i=[e,m])}function p(m,y){return m.some((g,b)=>g!==y[b])||y.some((g,b)=>g!==m[b])}}function k0(e){const t=["st","nd","rd"];return t[e-1]?e+t[e-1]:e+"th"}function k3(e){return Math.abs(e)-2}function ip(e,t){const r=k3(t);return e.includes("great-")&&(e=e.split("great-")[1]),r===1?`great-${e}`:r>1?`${r}x-great-${e}`:(console.error(`${e} should have great_count > 1`),e)}function T3(e,t,r,n){var i;let a;const s=n[t].toLowerCase();if(s.includes("in-law")){a=t;const A=r.find(M=>M.id===a);s.includes("sister")||s.includes("brother")?t=e:t=(i=A.rels.spouses)===null||i===void 0?void 0:i.find(M=>n[M]&&!n[M].includes("in-law"))}const o=C3(e,t,r);if(!o)return console.error(`${t} not found in main_ancestry`);const l=o.is_ancestor?o.found:o.found[0],u=r.find(A=>A.id===l),c=ss(u,b),d=c.descendants().map(A=>A.data.id),p=E(e,d),m=E(t,d);g(c);const y=c.descendants().map(A=>{const M={id:A.data.id,data:JSON.parse(JSON.stringify(A.data.data)),kinship:n[A.data.id],rels:{parents:[],spouses:[],children:[]}};return A.children&&A.children.length>0&&(M.rels.children=A.children.map(F=>F.data.id)),M});return y.length>0&&!o.is_ancestor&&!o.is_half_kin&&w(y),a&&x(y),y;function g(A){A.children=(A.children||[]).filter(M=>!!(p.includes(M.data.id)||m.includes(M.data.id))),A.children.forEach(M=>g(M)),A.children.length===0&&delete A.children}function b(A){return[...A.rels.children||[]].map(F=>r.find(U=>U.id===F)).filter(F=>F)}function E(A,M){const F=[A];return U(A),F;function U(D){r.find(W=>W.id===D).rels.parents.forEach(W=>{M.includes(W)&&(F.push(W),U(W))})}}function w(A){const M=A[0];if(!o)return console.error(`${t} not found in main_ancestry`);const F=l===o.found[0]?o.found[1]:o.found[0];M.rels.spouses=[F];const U=r.find(q=>q.id===F),D={id:U.id,data:JSON.parse(JSON.stringify(U.data)),kinship:n[U.id],rels:{spouses:[M.id],children:M.rels.children,parents:[]}};A.push(D),(M.rels.children||[]).forEach(q=>{const J=r.find(z=>z.id===q),W=A.find(z=>z.id===q);W.rels.parents=[...J.rels.parents]})}function x(A){s.includes("sister")||s.includes("brother")?_(A):C(A)}function C(A){const M=A.find(q=>q.id===t),F=a;M.rels.spouses=[F];const U=r.find(q=>q.id===F),D={id:U.id,data:JSON.parse(JSON.stringify(U.data)),kinship:n[U.id],rels:{spouses:[M.id],children:[],parents:[]}};A.push(D)}function _(A){var M;const F=A.find(z=>z.id===t),U=k(a);A.push({id:a,data:JSON.parse(JSON.stringify(U.data)),kinship:n[a],rels:{spouses:[],children:[],parents:[]}});const D=[];U.rels.parents.forEach(z=>(k(z).rels.children||[]).forEach(V=>D.push(V)));const q=(M=k(t).rels.spouses)===null||M===void 0?void 0:M.find(z=>D.includes(z));F.rels.spouses=[q];const J=k(q),W={id:J.id,data:JSON.parse(JSON.stringify(J.data)),kinship:n[J.id],rels:{spouses:[F.id],children:[],parents:[]}};A.push(W),U.rels.parents.forEach(z=>{const V=k(z),Y=V.data.gender==="M"?"Father-in-law":V.data.gender==="F"?"Mother-in-law":"Parent-in-law",X={id:V.id,data:JSON.parse(JSON.stringify(V.data)),kinship:Y,rels:{spouses:[],children:[q,a],parents:[]}},G=U.rels.parents.find(N=>N!==N);G&&X.rels.parents.push(G),A.unshift(X)})}function k(A){return r.find(M=>M.id===A)}}function A3(e,t,r){const n=e.id;r.forEach(s=>{s.rels.parents.includes(n)&&(s.rels.parents[s.rels.parents.indexOf(n)]=t),s.rels.spouses&&s.rels.spouses.includes(n)&&(s.rels.spouses=s.rels.spouses.filter(o=>o!==n),s.rels.spouses.includes(t)||s.rels.spouses.push(t)),s.rels.children&&s.rels.children.includes(n)&&(s.rels.children=s.rels.children.filter(o=>o!==n),s.rels.children.includes(t)||s.rels.children.push(t))});const i=r.find(s=>s.id===t),a=r.find(s=>s.id===n);if(!a)throw new Error("New rel not found");if(!i)throw new Error("Link rel not found");if((a.rels.children||[]).forEach(s=>{i.rels.children||(i.rels.children=[]),i.rels.children.includes(s)||i.rels.children.push(s)}),(a.rels.spouses||[]).forEach(s=>{i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.includes(s)||i.rels.spouses.push(s)}),i.rels.parents.length===0)i.rels.parents=[...a.rels.parents];else{const s=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),o=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"}),l=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),u=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"});l&&(s?(console.error("link rel already has father"),i.rels.parents[i.rels.parents.indexOf(s)]=l):i.rels.parents.push(l)),u&&(o?(console.error("link rel already has mother"),i.rels.parents[i.rels.parents.indexOf(o)]=u):i.rels.parents.push(u))}r.splice(r.findIndex(s=>s.id===n),1)}function ace(e,t){const r=e._new_rel_data?t.find(o=>o.id===e._new_rel_data.rel_id):null,n=a(e,t),i=s(e,t);if(e._new_rel_data&&["son","daughter"].includes(e._new_rel_data.rel_type)){if(!r)throw new Error("Rel datum not found");i.push(...s(r,t))}return t.filter(o=>o.id!==e.id&&o.id!==(r==null?void 0:r.id)&&!o._new_rel_data&&!o.to_add&&!o.unknown).filter(o=>!n.includes(o.id)).filter(o=>!i.includes(o.id)).filter(o=>!(o.rels.spouses||[]).includes(e.id));function a(o,l){const u=[];return c(o),u;function c(d){d.rels.parents.forEach(p=>{if(p){u.push(p);const m=l.find(y=>y.id===p);if(!m)throw new Error("Parent not found");c(m)}})}}function s(o,l){const u=[];return c(o),u;function c(d){(d.rels.children?[...d.rels.children]:[]).forEach(m=>{u.push(m);const y=l.find(g=>g.id===m);if(!y)throw new Error("Child not found");c(y)})}}}function oce({datum:e,store:t,fields:r,postSubmitHandler:n,addRelative:i,removeRelative:a,deletePerson:s,onCancel:o,editFirst:l,link_existing_rel_config:u,onFormCreation:c,no_edit:d,onSubmit:p,onDelete:m,canEdit:y,canDelete:g}){let b=g?g(e):!0;(y?y(e):!0)||(d=!0,b=!1);let w;const x={datum_id:e.id,fields:[],onSubmit:M,onCancel:o,onFormCreation:c,no_edit:d,gender_field:C()};if(e._new_rel_data)w=Object.assign(Object.assign({},x),{title:e._new_rel_data.label,new_rel:!0,editable:!0});else{if(!i)throw new Error("addRelative is required");if(!a)throw new Error("removeRelative is required");w=Object.assign(Object.assign({},x),{onDelete:U,addRelative:()=>i.activate(e),addRelativeCancel:()=>i.onCancel(),addRelativeActive:i.is_active,removeRelative:()=>a.activate(e),removeRelativeCancel:()=>a.onCancel(),removeRelativeActive:a.is_active,editable:!1,can_delete:b})}return(e._new_rel_data||e.to_add||e.unknown)&&u&&(w.linkExistingRelative=A(e,t.getData(),u)),d?w.editable=!1:l&&(w.editable=!0),r.forEach(D=>{D.type==="rel_reference"?_(D):D.type==="select"?k(D):w.fields.push({id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id]})}),w;function C(){return{id:"gender",type:"switch",label:"Gender",initial_value:e.data.gender,disabled:!1,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]}}function _(D){D.getRelLabel||console.error("getRelLabel is not set"),D.rel_type==="spouse"&&(e.rels.spouses||[]).forEach(q=>{const J=t.getDatum(q);if(!J)throw new Error("Spouse not found");const W=`${D.id}__ref__${q}`,z={id:W,type:"rel_reference",label:D.label,rel_id:q,rel_label:D.getRelLabel(J),initial_value:e.data[W],rel_type:D.rel_type};w.fields.push(z)})}function k(D){if(!D.options&&!D.optionCreator)return console.error("optionCreator or options is not set for field",D);const q={id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id],placeholder:D.placeholder,options:D.options||D.optionCreator(e)};w.fields.push(q)}function A(D,q,J){if(!J)throw new Error("link_existing_rel_config is required");return{title:J.title,select_placeholder:J.select_placeholder,options:ace(D,q).map(z=>({value:z.id,label:J.linkRelLabel(z)})).sort((z,V)=>typeof z.label=="string"&&typeof V.label=="string"?z.label.localeCompare(V.label):z.labeln({})):(D.preventDefault(),q(),n({}));function q(){const J=new FormData(D.target);aue(e,t.getData(),J)}}function F(D){const q=D.target.value;n({link_rel_id:q})}function U(){m?m(e,()=>s(),()=>n({delete:!0})):(s(),n({delete:!0}))}}function sce(e,t){t.forEach(r=>{const n=r._new_rel_data;n&&n.rel_type==="spouse"&&(r.data.gender=r.data.gender==="M"?"F":"M")})}function lce(e){for(let t=e.length-1;t>=0;t--){const r=e[t];r._new_rel_data&&(e.forEach(n=>{n.rels.parents.includes(r.id)&&n.rels.parents.splice(n.rels.parents.indexOf(r.id),1),n.rels.children&&n.rels.children.includes(r.id)&&n.rels.children.splice(n.rels.children.indexOf(r.id),1),n.rels.spouses&&n.rels.spouses.includes(r.id)&&n.rels.spouses.splice(n.rels.spouses.indexOf(r.id),1)}),e.splice(t,1))}}function uce(e,t,r,n){let i={parent:!0,spouse:!0,child:!0};n&&(i=Object.assign(i,n(e))),e.rels.spouses||(e.rels.spouses=[]),e.rels.children||(e.rels.children=[]),i.parent&&a(),i.spouse&&(s(),o()),i.child&&l();function a(){const u=e.rels.parents,c=u.find(y=>{var g;return((g=t.find(b=>b.id===y))===null||g===void 0?void 0:g.data.gender)==="M"}),d=u.find(y=>{var g;return((g=t.find(b=>b.id===y))===null||g===void 0?void 0:g.data.gender)==="F"});if(u.length<2&&!c){const y=Va({data:{gender:"M"},rels:{children:[e.id]}});y._new_rel_data={rel_type:"father",label:r.father,rel_id:e.id},e.rels.parents.push(y.id),t.push(y)}if(u.length<2&&!d){const y=Va({data:{gender:"F"},rels:{children:[e.id]}});y._new_rel_data={rel_type:"mother",label:r.mother,rel_id:e.id},e.rels.parents.push(y.id),t.push(y)}const p=t.find(y=>y.id===e.rels.parents[0]),m=t.find(y=>y.id===e.rels.parents[1]);p.rels.spouses||(p.rels.spouses=[]),m.rels.spouses||(m.rels.spouses=[]),p.rels.spouses.includes(m.id)||p.rels.spouses.push(m.id),m.rels.spouses.includes(p.id)||m.rels.spouses.push(p.id),p.rels.children||(p.rels.children=[]),m.rels.children||(m.rels.children=[]),p.rels.children.includes(e.id)||p.rels.children.push(e.id),m.rels.children.includes(e.id)||m.rels.children.push(e.id)}function s(){if(e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let u;e.rels.children.forEach(c=>{const d=t.find(p=>p.id===c);if(d.rels.parents.length===1){const m=t.find(y=>y.id===d.rels.parents[0]).data.gender==="M"?"F":"M";u||(u=Va({data:{gender:m},rels:{spouses:[e.id]}})),u._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},u.rels.children.push(d.id),e.rels.spouses.push(u.id),d.rels.parents.push(u.id),t.push(u)}})}}function o(){e.rels.spouses||(e.rels.spouses=[]);const u=e.data.gender==="M"?"F":"M",c=Va({data:{gender:u},rels:{spouses:[e.id]}});c._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},e.rels.spouses.push(c.id),t.push(c)}function l(){e.rels.children||(e.rels.children=[]),e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.forEach(u=>{const c=t.find(m=>m.id===u);c.rels.children||(c.rels.children=[]);const d=Va({data:{gender:"M"},rels:{parents:[e.id,c.id]}});d._new_rel_data={rel_type:"son",label:r.son,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(d.id),e.rels.children.push(d.id),t.push(d);const p=Va({data:{gender:"F"},rels:{parents:[e.id,c.id]}});p._new_rel_data={rel_type:"daughter",label:r.daughter,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(p.id),e.rels.children.push(p.id),t.push(p)})}return t}var cce=(e,t,r)=>new fce(e,t,r);class fce{constructor(t,r,n){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this.addRelLabels=this.addRelLabelsDefault(),this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;this.datum=t;let n=this.datum.data.gender;uce(t,this.getStoreData(),this.addRelLabels,this.canAdd),r.updateTree({}),this.onChange=i,this.onCancel=()=>a(this);function i(s,o){s!=null&&s._new_rel_data?o!=null&&o.link_rel_id?A3(s,o.link_rel_id,r.getData()):delete s._new_rel_data:s.id===t.id?s.data.gender!==n&&(n=s.data.gender,sce(s,r.getData())):console.error("Something went wrong")}function a(s){s.is_active&&(s.is_active=!1,s.store.state.one_level_rels=!1,s.cleanUp(),s.cancelCallback(s.datum),s.datum=null,s.onChange=null,s.onCancel=null)}}setAddRelLabels(t){if(typeof t!="object"){console.error("add_rel_labels must be an object");return}for(const r in t){const n=r;this.addRelLabels[n]=t[n]}return this}setCanAdd(t){return this.canAdd=t,this}addRelLabelsDefault(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}}getStoreData(){return this.store.getData()}cleanUp(t){return t||(t=this.store.getData()),lce(t),t}}var dce=(e,t,r,n)=>new hce(e,t,r,n);class hce{constructor(t,r,n,i){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.modal=i,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;r.updateTree({}),this.datum=t,this.onChange=n.bind(this),this.onCancel=i.bind(this);function n(a,s){const o=p(a),l=t.rels;o==="parent"?u.call(this):o==="spouse"?c.call(this):o==="children"&&d.call(this);function u(){const m=a.data.id,y=r.getDatum(m);if(!y)throw new Error("Parent not found");if(!y.rels.children)throw new Error("Parent has no children");y.rels.children=y.rels.children.filter(g=>g!==t.id),l.parents=l.parents.filter(g=>g!==m),s()}function c(){const m=a.data;y()?g.call(this):b.call(this,!0);function y(){return(m.rels.children||[]).some(w=>{const x=r.getDatum(w);if(!x)throw new Error("Child not found");return!!x.rels.parents.includes(m.id)})}function g(){const E=t.data.gender==="M"?"f3-male-bg":t.data.gender==="F"?"f3-female-bg":null,w=m.data.gender==="M"?"f3-male-bg":m.data.gender==="F"?"f3-female-bg":null,x=ta("div").html(` + `),t.select(".f3-popup-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t){const r=ve(this.popup_cont).select(".f3-popup-content-inner").node();t&&r.appendChild(t),this.open()}open(){this.active=!0}close(){this.popup_cont.remove(),this.active=!1,this.onClose&&this.onClose()}}function k3(e,t,r){const n=t.find(c=>c.id===e),i={};return a(n.id,"self",0),s(i),r.show_in_law&&o(i,t),l(i),i;function a(c,d,h,m=void 0){if(!c||i[c])return;d&&(i[c]=d);const g=t.find(w=>w.id===c).rels;if(d==="self")g.parents.forEach(w=>a(w,"parent",h-1,c)),(g.spouses||[]).forEach(w=>a(w,"spouse",h)),(g.children||[]).forEach(w=>a(w,"child",h+1));else if(d==="parent")g.parents.forEach(w=>a(w,"grandparent",h-1,c)),(g.children||[]).forEach(w=>{m&&m===w||a(w,"sibling",h+1)});else if(d!=="spouse")if(d==="child")(g.children||[]).forEach(w=>a(w,"grandchild",h+1));else if(d==="sibling")(g.children||[]).forEach(w=>a(w,"nephew",h+1));else if(d==="grandparent")m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(w=>a(w,"great-grandparent",h-1,c)),(g.children||[]).forEach(w=>{m&&m===w||a(w,"uncle",h+1)});else if(d.includes("grandchild"))(g.children||[]).forEach(w=>a(w,ap(d,h+1),h+1));else if(d.includes("great-grandparent"))m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(w=>a(w,ap(d,h-1),h-1,c)),(g.children||[]).forEach(w=>{if(m&&m===w)return;const x=A3(h+1);x===0?a(w,"granduncle",h+1):x>0?a(w,ap("granduncle",h+1),h+1):console.error(`${d} should have great_count > -1`)});else if(d==="nephew")(g.children||[]).forEach(w=>a(w,"grandnephew",h+1));else if(d.includes("grandnephew"))(g.children||[]).forEach(w=>a(w,ap(d,h+1),h+1));else if(d==="uncle")(g.children||[]).forEach(w=>a(w,"1st Cousin",h+1));else if(d==="granduncle")(g.children||[]).forEach(w=>a(w,"1st Cousin 1x removed",h+1));else if(d.includes("great-granduncle")){const w=h+1,x=Math.abs(w);(g.children||[]).forEach(b=>a(b,`1st Cousin ${x}x removed`,w))}else d.slice(4).startsWith("Cousin")?(g.children||[]).forEach(w=>{const x=h+1,b=Math.abs(x),E=+d[0];x===0?a(w,`${T0(E+1)} Cousin`,x):x<0?a(w,`${T0(E+1)} Cousin ${b}x removed`,x):x>0&&a(w,`${T0(E)} Cousin ${b}x removed`,x)}):console.error(`${d} not found`)}function s(c){const d=[];Object.keys(c).forEach(h=>{const m=c[h];if(m.includes("child")||m==="spouse")return;const y=T3(n.id,h,t);if(!y)return console.error(`${t.find(g=>g.id===h).data} not found in main_ancestry`);y.is_half_kin&&d.push(h)}),d.forEach(h=>{c[h]=`Half ${c[h]}`})}function o(c,d){Object.keys(c).forEach(h=>{const m=c[h],y=d.find(g=>g.id===h);if(m==="spouse"){const g=[];y.rels.parents.forEach(w=>(u(w).rels.children||[]).forEach(x=>g.push(x))),g.forEach(w=>{c[w]||(c[w]="sibling-in-law")})}m==="sibling"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="sibling-in-law")}),m==="child"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="child-in-law")}),m==="uncle"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="uncle-in-law")}),m.includes("Cousin")&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]=`${m} in-law`)})})}function l(c){Object.keys(c).forEach(d=>{const h=c[d],y=t.find(g=>g.id===d).data.gender;if(h.includes("parent")){const w=y==="M"?"father":y==="F"?"mother":"parent";c[d]=c[d].replace("parent",w)}else if(h.includes("sibling")){const w=y==="M"?"brother":y==="F"?"sister":"sibling";c[d]=c[d].replace("sibling",w)}else if(h.includes("child")){const w=y==="M"?"son":y==="F"?"daughter":"child";c[d]=c[d].replace("child",w)}else if(h.includes("uncle")){const w=y==="M"?"uncle":y==="F"?"aunt":"aunt/uncle";c[d]=c[d].replace("uncle",w)}else if(h.includes("nephew")){const w=y==="M"?"nephew":y==="F"?"niece":"neice/nephew";c[d]=c[d].replace("nephew",w)}})}function u(c){return t.find(d=>d.id===c)}}function T3(e,t,r){const n=l(e);let i,a,s;if(c(t),d(t),o(t),!i)return null;return{found:i,is_ancestor:a,is_half_kin:s};function o(m){if(i)return;if(m===e){a=!0,i=m,s=!1;return}const g=r.find(b=>b.id===m).rels,w=u(g),x=n.find(b=>b[0]&&w[0]&&b[0]===w[0]||b[1]&&w[1]&&b[1]===w[1]);if(x){i=w.filter((b,E)=>b===x[E]),s=h(w,x);return}g.parents.forEach(b=>o(b))}function l(m){const y=[];return g(m),y;function g(w){const b=r.find(E=>E.id===w).rels;y.push(u(b)),b.parents.forEach(E=>g(E))}}function u(m){return m.parents}function c(m){const y=r.find(w=>w.id===m);n.find(w=>w[0]===y.id||w[1]===y.id)&&(a=!0,i=m,s=!1)}function d(m){(r.find(g=>g.id===e).rels.spouses||[]).includes(m)&&(i=[e,m])}function h(m,y){return m.some((g,w)=>g!==y[w])||y.some((g,w)=>g!==m[w])}}function T0(e){const t=["st","nd","rd"];return t[e-1]?e+t[e-1]:e+"th"}function A3(e){return Math.abs(e)-2}function ap(e,t){const r=A3(t);return e.includes("great-")&&(e=e.split("great-")[1]),r===1?`great-${e}`:r>1?`${r}x-great-${e}`:(console.error(`${e} should have great_count > 1`),e)}function I3(e,t,r,n){var i;let a;const s=n[t].toLowerCase();if(s.includes("in-law")){a=t;const A=r.find(D=>D.id===a);s.includes("sister")||s.includes("brother")?t=e:t=(i=A.rels.spouses)===null||i===void 0?void 0:i.find(D=>n[D]&&!n[D].includes("in-law"))}const o=T3(e,t,r);if(!o)return console.error(`${t} not found in main_ancestry`);const l=o.is_ancestor?o.found:o.found[0],u=r.find(A=>A.id===l),c=ls(u,w),d=c.descendants().map(A=>A.data.id),h=x(e,d),m=x(t,d);g(c);const y=c.descendants().map(A=>{const D={id:A.data.id,data:JSON.parse(JSON.stringify(A.data.data)),kinship:n[A.data.id],rels:{parents:[],spouses:[],children:[]}};return A.children&&A.children.length>0&&(D.rels.children=A.children.map(L=>L.data.id)),D});return y.length>0&&!o.is_ancestor&&!o.is_half_kin&&b(y),a&&E(y),y;function g(A){A.children=(A.children||[]).filter(D=>!!(h.includes(D.data.id)||m.includes(D.data.id))),A.children.forEach(D=>g(D)),A.children.length===0&&delete A.children}function w(A){return[...A.rels.children||[]].map(L=>r.find(q=>q.id===L)).filter(L=>L)}function x(A,D){const L=[A];return q(A),L;function q(N){r.find(G=>G.id===N).rels.parents.forEach(G=>{D.includes(G)&&(L.push(G),q(G))})}}function b(A){const D=A[0];if(!o)return console.error(`${t} not found in main_ancestry`);const L=l===o.found[0]?o.found[1]:o.found[0];D.rels.spouses=[L];const q=r.find(z=>z.id===L),N={id:q.id,data:JSON.parse(JSON.stringify(q.data)),kinship:n[q.id],rels:{spouses:[D.id],children:D.rels.children,parents:[]}};A.push(N),(D.rels.children||[]).forEach(z=>{const Y=r.find(U=>U.id===z),G=A.find(U=>U.id===z);G.rels.parents=[...Y.rels.parents]})}function E(A){s.includes("sister")||s.includes("brother")?v(A):C(A)}function C(A){const D=A.find(z=>z.id===t),L=a;D.rels.spouses=[L];const q=r.find(z=>z.id===L),N={id:q.id,data:JSON.parse(JSON.stringify(q.data)),kinship:n[q.id],rels:{spouses:[D.id],children:[],parents:[]}};A.push(N)}function v(A){var D;const L=A.find(U=>U.id===t),q=k(a);A.push({id:a,data:JSON.parse(JSON.stringify(q.data)),kinship:n[a],rels:{spouses:[],children:[],parents:[]}});const N=[];q.rels.parents.forEach(U=>(k(U).rels.children||[]).forEach(W=>N.push(W)));const z=(D=k(t).rels.spouses)===null||D===void 0?void 0:D.find(U=>N.includes(U));L.rels.spouses=[z];const Y=k(z),G={id:Y.id,data:JSON.parse(JSON.stringify(Y.data)),kinship:n[Y.id],rels:{spouses:[L.id],children:[],parents:[]}};A.push(G),q.rels.parents.forEach(U=>{const W=k(U),X=W.data.gender==="M"?"Father-in-law":W.data.gender==="F"?"Mother-in-law":"Parent-in-law",J={id:W.id,data:JSON.parse(JSON.stringify(W.data)),kinship:X,rels:{spouses:[],children:[z,a],parents:[]}},K=q.rels.parents.find(F=>F!==F);K&&J.rels.parents.push(K),A.unshift(J)})}function k(A){return r.find(D=>D.id===A)}}function R3(e,t,r){const n=e.id;r.forEach(s=>{s.rels.parents.includes(n)&&(s.rels.parents[s.rels.parents.indexOf(n)]=t),s.rels.spouses&&s.rels.spouses.includes(n)&&(s.rels.spouses=s.rels.spouses.filter(o=>o!==n),s.rels.spouses.includes(t)||s.rels.spouses.push(t)),s.rels.children&&s.rels.children.includes(n)&&(s.rels.children=s.rels.children.filter(o=>o!==n),s.rels.children.includes(t)||s.rels.children.push(t))});const i=r.find(s=>s.id===t),a=r.find(s=>s.id===n);if(!a)throw new Error("New rel not found");if(!i)throw new Error("Link rel not found");if((a.rels.children||[]).forEach(s=>{i.rels.children||(i.rels.children=[]),i.rels.children.includes(s)||i.rels.children.push(s)}),(a.rels.spouses||[]).forEach(s=>{i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.includes(s)||i.rels.spouses.push(s)}),i.rels.parents.length===0)i.rels.parents=[...a.rels.parents];else{const s=i.rels.parents.find(c=>{var d;return((d=r.find(h=>h.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),o=i.rels.parents.find(c=>{var d;return((d=r.find(h=>h.id===c))===null||d===void 0?void 0:d.data.gender)==="F"}),l=a.rels.parents.find(c=>{var d;return((d=r.find(h=>h.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),u=a.rels.parents.find(c=>{var d;return((d=r.find(h=>h.id===c))===null||d===void 0?void 0:d.data.gender)==="F"});l&&(s?(console.error("link rel already has father"),i.rels.parents[i.rels.parents.indexOf(s)]=l):i.rels.parents.push(l)),u&&(o?(console.error("link rel already has mother"),i.rels.parents[i.rels.parents.indexOf(o)]=u):i.rels.parents.push(u))}r.splice(r.findIndex(s=>s.id===n),1)}function lce(e,t){const r=e._new_rel_data?t.find(o=>o.id===e._new_rel_data.rel_id):null,n=a(e,t),i=s(e,t);if(e._new_rel_data&&["son","daughter"].includes(e._new_rel_data.rel_type)){if(!r)throw new Error("Rel datum not found");i.push(...s(r,t))}return t.filter(o=>o.id!==e.id&&o.id!==(r==null?void 0:r.id)&&!o._new_rel_data&&!o.to_add&&!o.unknown).filter(o=>!n.includes(o.id)).filter(o=>!i.includes(o.id)).filter(o=>!(o.rels.spouses||[]).includes(e.id));function a(o,l){const u=[];return c(o),u;function c(d){d.rels.parents.forEach(h=>{if(h){u.push(h);const m=l.find(y=>y.id===h);if(!m)throw new Error("Parent not found");c(m)}})}}function s(o,l){const u=[];return c(o),u;function c(d){(d.rels.children?[...d.rels.children]:[]).forEach(m=>{u.push(m);const y=l.find(g=>g.id===m);if(!y)throw new Error("Child not found");c(y)})}}}function uce({datum:e,store:t,fields:r,postSubmitHandler:n,addRelative:i,removeRelative:a,deletePerson:s,onCancel:o,editFirst:l,link_existing_rel_config:u,onFormCreation:c,no_edit:d,onSubmit:h,onDelete:m,canEdit:y,canDelete:g}){let w=g?g(e):!0;(y?y(e):!0)||(d=!0,w=!1);let b;const E={datum_id:e.id,fields:[],onSubmit:D,onCancel:o,onFormCreation:c,no_edit:d,gender_field:C()};if(e._new_rel_data)b=Object.assign(Object.assign({},E),{title:e._new_rel_data.label,new_rel:!0,editable:!0});else{if(!i)throw new Error("addRelative is required");if(!a)throw new Error("removeRelative is required");b=Object.assign(Object.assign({},E),{onDelete:q,addRelative:()=>i.activate(e),addRelativeCancel:()=>i.onCancel(),addRelativeActive:i.is_active,removeRelative:()=>a.activate(e),removeRelativeCancel:()=>a.onCancel(),removeRelativeActive:a.is_active,editable:!1,can_delete:w})}return(e._new_rel_data||e.to_add||e.unknown)&&u&&(b.linkExistingRelative=A(e,t.getData(),u)),d?b.editable=!1:l&&(b.editable=!0),r.forEach(N=>{N.type==="rel_reference"?v(N):N.type==="select"?k(N):b.fields.push({id:N.id,type:N.type,label:N.label,initial_value:e.data[N.id]})}),b;function C(){return{id:"gender",type:"switch",label:"Gender",initial_value:e.data.gender,disabled:!1,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]}}function v(N){N.getRelLabel||console.error("getRelLabel is not set"),N.rel_type==="spouse"&&(e.rels.spouses||[]).forEach(z=>{const Y=t.getDatum(z);if(!Y)throw new Error("Spouse not found");const G=`${N.id}__ref__${z}`,U={id:G,type:"rel_reference",label:N.label,rel_id:z,rel_label:N.getRelLabel(Y),initial_value:e.data[G],rel_type:N.rel_type};b.fields.push(U)})}function k(N){if(!N.options&&!N.optionCreator)return console.error("optionCreator or options is not set for field",N);const z={id:N.id,type:N.type,label:N.label,initial_value:e.data[N.id],placeholder:N.placeholder,options:N.options||N.optionCreator(e)};b.fields.push(z)}function A(N,z,Y){if(!Y)throw new Error("link_existing_rel_config is required");return{title:Y.title,select_placeholder:Y.select_placeholder,options:lce(N,z).map(U=>({value:U.id,label:Y.linkRelLabel(U)})).sort((U,W)=>typeof U.label=="string"&&typeof W.label=="string"?U.label.localeCompare(W.label):U.labeln({})):(N.preventDefault(),z(),n({}));function z(){const Y=new FormData(N.target);lue(e,t.getData(),Y)}}function L(N){const z=N.target.value;n({link_rel_id:z})}function q(){m?m(e,()=>s(),()=>n({delete:!0})):(s(),n({delete:!0}))}}function cce(e,t){t.forEach(r=>{const n=r._new_rel_data;n&&n.rel_type==="spouse"&&(r.data.gender=r.data.gender==="M"?"F":"M")})}function fce(e){for(let t=e.length-1;t>=0;t--){const r=e[t];r._new_rel_data&&(e.forEach(n=>{n.rels.parents.includes(r.id)&&n.rels.parents.splice(n.rels.parents.indexOf(r.id),1),n.rels.children&&n.rels.children.includes(r.id)&&n.rels.children.splice(n.rels.children.indexOf(r.id),1),n.rels.spouses&&n.rels.spouses.includes(r.id)&&n.rels.spouses.splice(n.rels.spouses.indexOf(r.id),1)}),e.splice(t,1))}}function dce(e,t,r,n){let i={parent:!0,spouse:!0,child:!0};n&&(i=Object.assign(i,n(e))),e.rels.spouses||(e.rels.spouses=[]),e.rels.children||(e.rels.children=[]),i.parent&&a(),i.spouse&&(s(),o()),i.child&&l();function a(){const u=e.rels.parents,c=u.find(y=>{var g;return((g=t.find(w=>w.id===y))===null||g===void 0?void 0:g.data.gender)==="M"}),d=u.find(y=>{var g;return((g=t.find(w=>w.id===y))===null||g===void 0?void 0:g.data.gender)==="F"});if(u.length<2&&!c){const y=Va({data:{gender:"M"},rels:{children:[e.id]}});y._new_rel_data={rel_type:"father",label:r.father,rel_id:e.id},e.rels.parents.push(y.id),t.push(y)}if(u.length<2&&!d){const y=Va({data:{gender:"F"},rels:{children:[e.id]}});y._new_rel_data={rel_type:"mother",label:r.mother,rel_id:e.id},e.rels.parents.push(y.id),t.push(y)}const h=t.find(y=>y.id===e.rels.parents[0]),m=t.find(y=>y.id===e.rels.parents[1]);h.rels.spouses||(h.rels.spouses=[]),m.rels.spouses||(m.rels.spouses=[]),h.rels.spouses.includes(m.id)||h.rels.spouses.push(m.id),m.rels.spouses.includes(h.id)||m.rels.spouses.push(h.id),h.rels.children||(h.rels.children=[]),m.rels.children||(m.rels.children=[]),h.rels.children.includes(e.id)||h.rels.children.push(e.id),m.rels.children.includes(e.id)||m.rels.children.push(e.id)}function s(){if(e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let u;e.rels.children.forEach(c=>{const d=t.find(h=>h.id===c);if(d.rels.parents.length===1){const m=t.find(y=>y.id===d.rels.parents[0]).data.gender==="M"?"F":"M";u||(u=Va({data:{gender:m},rels:{spouses:[e.id]}})),u._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},u.rels.children.push(d.id),e.rels.spouses.push(u.id),d.rels.parents.push(u.id),t.push(u)}})}}function o(){e.rels.spouses||(e.rels.spouses=[]);const u=e.data.gender==="M"?"F":"M",c=Va({data:{gender:u},rels:{spouses:[e.id]}});c._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},e.rels.spouses.push(c.id),t.push(c)}function l(){e.rels.children||(e.rels.children=[]),e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.forEach(u=>{const c=t.find(m=>m.id===u);c.rels.children||(c.rels.children=[]);const d=Va({data:{gender:"M"},rels:{parents:[e.id,c.id]}});d._new_rel_data={rel_type:"son",label:r.son,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(d.id),e.rels.children.push(d.id),t.push(d);const h=Va({data:{gender:"F"},rels:{parents:[e.id,c.id]}});h._new_rel_data={rel_type:"daughter",label:r.daughter,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(h.id),e.rels.children.push(h.id),t.push(h)})}return t}var hce=(e,t,r)=>new pce(e,t,r);class pce{constructor(t,r,n){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this.addRelLabels=this.addRelLabelsDefault(),this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;this.datum=t;let n=this.datum.data.gender;dce(t,this.getStoreData(),this.addRelLabels,this.canAdd),r.updateTree({}),this.onChange=i,this.onCancel=()=>a(this);function i(s,o){s!=null&&s._new_rel_data?o!=null&&o.link_rel_id?R3(s,o.link_rel_id,r.getData()):delete s._new_rel_data:s.id===t.id?s.data.gender!==n&&(n=s.data.gender,cce(s,r.getData())):console.error("Something went wrong")}function a(s){s.is_active&&(s.is_active=!1,s.store.state.one_level_rels=!1,s.cleanUp(),s.cancelCallback(s.datum),s.datum=null,s.onChange=null,s.onCancel=null)}}setAddRelLabels(t){if(typeof t!="object"){console.error("add_rel_labels must be an object");return}for(const r in t){const n=r;this.addRelLabels[n]=t[n]}return this}setCanAdd(t){return this.canAdd=t,this}addRelLabelsDefault(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}}getStoreData(){return this.store.getData()}cleanUp(t){return t||(t=this.store.getData()),fce(t),t}}var mce=(e,t,r,n)=>new gce(e,t,r,n);class gce{constructor(t,r,n,i){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.modal=i,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;r.updateTree({}),this.datum=t,this.onChange=n.bind(this),this.onCancel=i.bind(this);function n(a,s){const o=h(a),l=t.rels;o==="parent"?u.call(this):o==="spouse"?c.call(this):o==="children"&&d.call(this);function u(){const m=a.data.id,y=r.getDatum(m);if(!y)throw new Error("Parent not found");if(!y.rels.children)throw new Error("Parent has no children");y.rels.children=y.rels.children.filter(g=>g!==t.id),l.parents=l.parents.filter(g=>g!==m),s()}function c(){const m=a.data;y()?g.call(this):w.call(this,!0);function y(){return(m.rels.children||[]).some(b=>{const E=r.getDatum(b);if(!E)throw new Error("Child not found");return!!E.rels.parents.includes(m.id)})}function g(){const x=t.data.gender==="M"?"f3-male-bg":t.data.gender==="F"?"f3-female-bg":null,b=m.data.gender==="M"?"f3-male-bg":m.data.gender==="F"?"f3-female-bg":null,E=ta("div").html(`

You are removing a spouse relationship. Since there are shared children, please choose which parent should keep them in the family tree.

- - + +
- `);x.selectAll('[data-option="assign-to-current"]').on("click",()=>{b(!0),this.modal.close()}),x.selectAll('[data-option="assign-to-spouse"]').on("click",()=>{b(!1),this.modal.close()}),this.modal.activate(x.node())}function b(E){a.data.rels.spouses=a.data.rels.spouses.filter(C=>C!==t.id),l.spouses=l.spouses.filter(C=>C!==a.data.id);const w=E?t:a.data,x=E?a.data:t;(l.children||[]).forEach(C=>{const _=r.getDatum(C);if(!_)throw new Error("Child not found");_.rels.parents.includes(x.id)&&(_.rels.parents=_.rels.parents.filter(k=>k!==x.id))}),x.rels.children&&(x.rels.children=x.rels.children.filter(C=>!(w.rels.children||[]).includes(C))),s()}}function d(){if(!l.children)throw new Error("Children not found");l.children=l.children.filter(m=>m!==a.data.id),a.data.rels.parents=a.data.rels.parents.filter(m=>m!==t.id),s()}function p(m){if(m.is_ancestry){if(t.rels.parents.includes(m.data.id))return"parent"}else if(m.spouse){if(!t.rels.spouses)throw new Error("Spouses not found");if(t.rels.spouses.includes(m.data.id))return"spouse"}else{if(!t.rels.children)throw new Error("Children not found");if(t.rels.children.includes(m.data.id))return"children"}return null}}function i(){if(this.is_active){if(this.is_active=!1,this.store.state.one_level_rels=!1,!this.datum)throw new Error("Datum not found");this.cancelCallback(this.datum),this.datum=null,this.onChange=null,this.onCancel=null}}}}function pce(e){return new mce(e)}class mce{constructor(t){this.cont=t,this.active=!1,this.onClose=null,this.modal_cont=ve(this.cont).append("div").attr("class","f3-modal").node(),ve(this.modal_cont).style("display","none"),this.create()}create(){const t=ve(this.modal_cont);t.html(` + `);E.selectAll('[data-option="assign-to-current"]').on("click",()=>{w(!0),this.modal.close()}),E.selectAll('[data-option="assign-to-spouse"]').on("click",()=>{w(!1),this.modal.close()}),this.modal.activate(E.node())}function w(x){a.data.rels.spouses=a.data.rels.spouses.filter(C=>C!==t.id),l.spouses=l.spouses.filter(C=>C!==a.data.id);const b=x?t:a.data,E=x?a.data:t;(l.children||[]).forEach(C=>{const v=r.getDatum(C);if(!v)throw new Error("Child not found");v.rels.parents.includes(E.id)&&(v.rels.parents=v.rels.parents.filter(k=>k!==E.id))}),E.rels.children&&(E.rels.children=E.rels.children.filter(C=>!(b.rels.children||[]).includes(C))),s()}}function d(){if(!l.children)throw new Error("Children not found");l.children=l.children.filter(m=>m!==a.data.id),a.data.rels.parents=a.data.rels.parents.filter(m=>m!==t.id),s()}function h(m){if(m.is_ancestry){if(t.rels.parents.includes(m.data.id))return"parent"}else if(m.spouse){if(!t.rels.spouses)throw new Error("Spouses not found");if(t.rels.spouses.includes(m.data.id))return"spouse"}else{if(!t.rels.children)throw new Error("Children not found");if(t.rels.children.includes(m.data.id))return"children"}return null}}function i(){if(this.is_active){if(this.is_active=!1,this.store.state.one_level_rels=!1,!this.datum)throw new Error("Datum not found");this.cancelCallback(this.datum),this.datum=null,this.onChange=null,this.onCancel=null}}}}function vce(e){return new yce(e)}class yce{constructor(t){this.cont=t,this.active=!1,this.onClose=null,this.modal_cont=ve(this.cont).append("div").attr("class","f3-modal").node(),ve(this.modal_cont).style("display","none"),this.create()}create(){const t=ve(this.modal_cont);t.html(`
×
@@ -846,35 +894,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `),t.select(".f3-modal-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t,{boolean:r,onAccept:n,onCancel:i}={}){this.reset();const a=ve(this.modal_cont).select(".f3-modal-content-inner").node();if(typeof t=="string"?a.innerHTML=t:a.appendChild(t),r){if(!n)throw new Error("onAccept is required");if(!i)throw new Error("onCancel is required");ve(this.modal_cont).select(".f3-modal-content-bottom").html(` - `),ve(this.modal_cont).select(".f3-modal-accept").on("click",()=>{n(),this.reset(),this.close()}),ve(this.modal_cont).select(".f3-modal-cancel").on("click",()=>{this.close()}),this.onClose=i}this.open()}reset(){this.onClose=null,ve(this.modal_cont).select(".f3-modal-content-inner").html(""),ve(this.modal_cont).select(".f3-modal-content-bottom").html("")}open(){this.modal_cont.style.display="block",this.active=!0}close(){this.modal_cont.style.display="none",this.active=!1,this.onClose&&this.onClose()}}var gce=(e,t)=>new vce(e,t);class vce{constructor(t,r){return this.cont=t,this.store=r,this.fields=[{type:"text",label:"first name",id:"first name"},{type:"text",label:"last name",id:"last name"},{type:"text",label:"birthday",id:"birthday"},{type:"text",label:"avatar",id:"avatar"}],this.is_fixed=!0,this.no_edit=!1,this.onChange=null,this.editFirst=!1,this.postSubmit=null,this.onFormCreation=null,this.createFormEdit=null,this.createFormNew=null,this.formCont=this.getFormContDefault(),this.modal=this.setupModal(),this.addRelativeInstance=this.setupAddRelative(),this.removeRelativeInstance=this.setupRemoveRelative(),this.history=this.createHistory(),this}open(t){t.rels||(t=t.data),this.addRelativeInstance.is_active?r(this):this.removeRelativeInstance.is_active?n(this,this.store.getTreeDatum(t.id)):this.cardEditForm(t);function r(i){t._new_rel_data?i.cardEditForm(t):(i.addRelativeInstance.onCancel(),i.cardEditForm(t),i.store.updateMainId(t.id),i.store.updateTree({}))}function n(i,a){if(!a)throw new Error("Tree datum not found");if(!i.removeRelativeInstance.datum)throw new Error("Remove relative datum not found");if(!i.removeRelativeInstance.onCancel)throw new Error("Remove relative onCancel not found");if(!i.removeRelativeInstance.onChange)throw new Error("Remove relative onChange not found");if(t.id===i.removeRelativeInstance.datum.id)i.removeRelativeInstance.onCancel(),i.cardEditForm(t);else{let s=function(){i.removeRelativeInstance.onCancel(),i.updateHistory(),i.store.updateTree({})};i.removeRelativeInstance.onChange(a,s.bind(i))}}}setupAddRelative(){return cce(this.store,()=>t(this),n=>r(this,n));function t(n){n.removeRelativeInstance.is_active&&n.removeRelativeInstance.onCancel()}function r(n,i){n.store.updateMainId(i.id),n.store.updateTree({}),n.openFormWithId(i.id)}}setupRemoveRelative(){return dce(this.store,t.bind(this),r.bind(this),this.modal);function t(){this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),n(this.cont,!0)}function r(i){n(this.cont,!1),this.store.updateMainId(i.id),this.store.updateTree({}),this.openFormWithId(i.id)}function n(i,a){ve(i).select("#f3Canvas").classed("f3-remove-relative-active",a)}}createHistory(){const t=Wue(this.store,this._getStoreDataCopy.bind(this),i.bind(this)),r=this.cont.querySelector(".f3-nav-cont");if(!r)throw new Error("Nav cont not found");const n=Vue(r,t);return t.changed(),n.updateButtons(),Object.assign(Object.assign({},t),{controls:n});function i(){var a;console.log("historyUpdateTree"),this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.removeRelativeInstance.is_active&&this.removeRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId((a=this.store.getMainDatum())===null||a===void 0?void 0:a.id),this.onChange&&this.onChange()}}openWithoutRelCancel(t){this.cardEditForm(t)}getFormContDefault(){let t=ve(this.cont).select("div.f3-form-cont").node();return t||(t=ve(this.cont).append("div").classed("f3-form-cont",!0).node()),{el:t,populate(r){t.innerHTML="",t.appendChild(r)},open(){ve(t).classed("opened",!0)},close(){ve(t).classed("opened",!1).html("")}}}setFormCont(t){return this.formCont=t,this}cardEditForm(t){const r={},n=t==null?void 0:t._new_rel_data;n?r.onCancel=()=>this.addRelativeInstance.onCancel():(r.addRelative=this.addRelativeInstance,r.removeRelative=this.removeRelativeInstance,r.deletePerson=()=>{f3(t,this.store.getData()),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const i=oce(Object.assign({store:this.store,datum:t,postSubmitHandler:o=>s(this,o),fields:this.fields,onCancel:()=>{},editFirst:this.editFirst,no_edit:this.no_edit,link_existing_rel_config:this.link_existing_rel_config,onFormCreation:this.onFormCreation,onSubmit:this.onSubmit,onDelete:this.onDelete,canEdit:this.canEdit,canDelete:this.canDelete},r)),a=n?(this.createFormNew||zue)(i,this.closeForm.bind(this)):(this.createFormEdit||$ue)(i,this.closeForm.bind(this));this.formCont.populate(a),this.openForm();function s(o,l){if(o.addRelativeInstance.is_active){o.addRelativeInstance.onChange(t,l),o.postSubmit&&o.postSubmit(t,o.store.getData());const u=o.addRelativeInstance.datum;if(!u)throw new Error("Active datum not found");o.store.updateMainId(u.id),o.openWithoutRelCancel(u)}else(t.to_add||t.unknown)&&(l!=null&&l.link_rel_id)?(A3(t,l.link_rel_id,o.store.getData()),o.store.updateMainId(l.link_rel_id),o.openFormWithId(l.link_rel_id)):l!=null&&l.delete||(o.postSubmit&&o.postSubmit(t,o.store.getData()),o.openFormWithId(t.id));o.is_fixed||o.closeForm(),o.store.updateTree({}),o.updateHistory()}}openForm(){this.formCont.open()}closeForm(){this.formCont.close(),this.store.updateTree({})}fixed(){return this.is_fixed=!0,this.formCont.el&&ve(this.formCont.el).style("position","relative"),this}absolute(){return this.is_fixed=!1,this.formCont.el&&ve(this.formCont.el).style("position","absolute"),this}setCardClickOpen(t){return t.setOnCardClick((r,n)=>{this.isAddingRelative()?this.open(n.data):this.isRemovingRelative()?this.open(n.data):(this.open(n.data),t.onCardClickDefault(r,n))}),this}openFormWithId(t){if(t){const r=this.store.getDatum(t);if(!r)throw new Error("Datum not found");this.openWithoutRelCancel(r)}else{const r=this.store.getMainDatum();if(!r)throw new Error("Main datum not found");this.openWithoutRelCancel(r)}}setNoEdit(){return this.no_edit=!0,this}setEdit(){return this.no_edit=!1,this}setFields(t){const r=[];if(!Array.isArray(t))return console.error("fields must be an array"),this;for(const n of t)typeof n=="string"?r.push({type:"text",label:n,id:n}):typeof n=="object"?n.id?r.push(n):console.error("fields must be an array of objects with id property"):console.error("fields must be an array of strings or objects");return this.fields=r,this}setOnChange(t){return this.onChange=t,this}setCanEdit(t){return this.canEdit=t,this}setCanDelete(t){return this.canDelete=t,this}setCanAdd(t){return this.addRelativeInstance.setCanAdd(t),this}addRelative(t){return t||(t=this.store.getMainDatum()),this.addRelativeInstance.activate(t),this}setupModal(){return pce(this.cont)}setEditFirst(t){return this.editFirst=t,this}isAddingRelative(){return this.addRelativeInstance.is_active}isRemovingRelative(){return this.removeRelativeInstance.is_active}setAddRelLabels(t){return this.addRelativeInstance.setAddRelLabels(t),this}setLinkExistingRelConfig(t){return this.link_existing_rel_config=t,this}setOnFormCreation(t){return this.onFormCreation=t,this}setCreateFormEdit(t){return this.createFormEdit=t,this}setCreateFormNew(t){return this.createFormNew=t,this}_getStoreDataCopy(){let t=JSON.parse(JSON.stringify(this.store.getData()));return this.addRelativeInstance.is_active&&(t=this.addRelativeInstance.cleanUp(t)),t=lue(t),t}getStoreDataCopy(){return this.exportData()}exportData(){let t=this._getStoreDataCopy();return t=Ble(t,this.store.state.legacy_format),t}getDataJson(){return JSON.stringify(this.exportData(),null,2)}updateHistory(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()}setPostSubmit(t){return this.postSubmit=t,this}setOnSubmit(t){return this.onSubmit=t,this}setOnDelete(t){return this.onDelete=t,this}destroy(){return this.history.controls.destroy(),this.history=null,this.formCont.el&&ve(this.formCont.el).remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this}}function yce(e,t,r){const n=[];t.data.forEach(p=>{p.coparent&&p.data.data.gender==="F"&&n.push({nodes:[p,p.coparent],id:`${p.data.id}--${p.coparent.data.id}`}),p.spouses&&p.spouses.forEach(m=>n.push({nodes:[m,p],id:`${m.data.id}--${p.data.id}`}))});const i=ve(e).select(".links_view").selectAll("g.link-text").data(n,p=>p.id),a=i.exit(),s=i.enter().append("g").attr("class","link-text"),o=s.merge(i),l=(p,m)=>p.spouse&&p.data.data.gender==="F"?p.x-r.node_separation/2:m.spouse&&m.data.data.gender==="M"?m.x+r.node_separation/2:Math.min(p.x,m.x)+r.node_separation/2;a.each(d),s.each(u),o.each(c);function u(p){const[m,y]=p.nodes,g=ve(this);g.attr("transform",`translate(${l(m,y)}, ${m.y-3})`).style("opacity",0),g.append("text").style("font-size","12px").style("fill","#fff").style("text-anchor","middle")}function c(p){const[m,y]=p.nodes,g=ve(this),b=r.initial?pd(t,m,r.transition_time):0;g.select("text").text(r.linkSpouseText(m,y)),g.transition("text").duration(r.transition_time).delay(b).attr("transform",`translate(${l(m,y)}, ${m.y-3})`),g.transition("text-op").duration(100).delay(b+r.transition_time).style("opacity",1)}function d(p){const m=ve(this);m.transition("text").duration(100).style("opacity",0).on("end",()=>m.remove())}}function _ce(e,t,r={}){return new wce(e,t,r)}class wce{constructor(t,r,n={}){this.cont=t,this.options=[],this.onSelect=r,this.config=n,this.autocomplete_cont=ve(this.cont).append("div").attr("class","f3-autocomplete-cont").node(),this.create()}create(){var t;const r=this;ve(this.autocomplete_cont).html(` + `),ve(this.modal_cont).select(".f3-modal-accept").on("click",()=>{n(),this.reset(),this.close()}),ve(this.modal_cont).select(".f3-modal-cancel").on("click",()=>{this.close()}),this.onClose=i}this.open()}reset(){this.onClose=null,ve(this.modal_cont).select(".f3-modal-content-inner").html(""),ve(this.modal_cont).select(".f3-modal-content-bottom").html("")}open(){this.modal_cont.style.display="block",this.active=!0}close(){this.modal_cont.style.display="none",this.active=!1,this.onClose&&this.onClose()}}var _ce=(e,t)=>new wce(e,t);class wce{constructor(t,r){return this.cont=t,this.store=r,this.fields=[{type:"text",label:"first name",id:"first name"},{type:"text",label:"last name",id:"last name"},{type:"text",label:"birthday",id:"birthday"},{type:"text",label:"avatar",id:"avatar"}],this.is_fixed=!0,this.no_edit=!1,this.onChange=null,this.editFirst=!1,this.postSubmit=null,this.onFormCreation=null,this.createFormEdit=null,this.createFormNew=null,this.formCont=this.getFormContDefault(),this.modal=this.setupModal(),this.addRelativeInstance=this.setupAddRelative(),this.removeRelativeInstance=this.setupRemoveRelative(),this.history=this.createHistory(),this}open(t){t.rels||(t=t.data),this.addRelativeInstance.is_active?r(this):this.removeRelativeInstance.is_active?n(this,this.store.getTreeDatum(t.id)):this.cardEditForm(t);function r(i){t._new_rel_data?i.cardEditForm(t):(i.addRelativeInstance.onCancel(),i.cardEditForm(t),i.store.updateMainId(t.id),i.store.updateTree({}))}function n(i,a){if(!a)throw new Error("Tree datum not found");if(!i.removeRelativeInstance.datum)throw new Error("Remove relative datum not found");if(!i.removeRelativeInstance.onCancel)throw new Error("Remove relative onCancel not found");if(!i.removeRelativeInstance.onChange)throw new Error("Remove relative onChange not found");if(t.id===i.removeRelativeInstance.datum.id)i.removeRelativeInstance.onCancel(),i.cardEditForm(t);else{let s=function(){i.removeRelativeInstance.onCancel(),i.updateHistory(),i.store.updateTree({})};i.removeRelativeInstance.onChange(a,s.bind(i))}}}setupAddRelative(){return hce(this.store,()=>t(this),n=>r(this,n));function t(n){n.removeRelativeInstance.is_active&&n.removeRelativeInstance.onCancel()}function r(n,i){n.store.updateMainId(i.id),n.store.updateTree({}),n.openFormWithId(i.id)}}setupRemoveRelative(){return mce(this.store,t.bind(this),r.bind(this),this.modal);function t(){this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),n(this.cont,!0)}function r(i){n(this.cont,!1),this.store.updateMainId(i.id),this.store.updateTree({}),this.openFormWithId(i.id)}function n(i,a){ve(i).select("#f3Canvas").classed("f3-remove-relative-active",a)}}createHistory(){const t=Que(this.store,this._getStoreDataCopy.bind(this),i.bind(this)),r=this.cont.querySelector(".f3-nav-cont");if(!r)throw new Error("Nav cont not found");const n=Yue(r,t);return t.changed(),n.updateButtons(),Object.assign(Object.assign({},t),{controls:n});function i(){var a;console.log("historyUpdateTree"),this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.removeRelativeInstance.is_active&&this.removeRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId((a=this.store.getMainDatum())===null||a===void 0?void 0:a.id),this.onChange&&this.onChange()}}openWithoutRelCancel(t){this.cardEditForm(t)}getFormContDefault(){let t=ve(this.cont).select("div.f3-form-cont").node();return t||(t=ve(this.cont).append("div").classed("f3-form-cont",!0).node()),{el:t,populate(r){t.innerHTML="",t.appendChild(r)},open(){ve(t).classed("opened",!0)},close(){ve(t).classed("opened",!1).html("")}}}setFormCont(t){return this.formCont=t,this}cardEditForm(t){const r={},n=t==null?void 0:t._new_rel_data;n?r.onCancel=()=>this.addRelativeInstance.onCancel():(r.addRelative=this.addRelativeInstance,r.removeRelative=this.removeRelativeInstance,r.deletePerson=()=>{h3(t,this.store.getData()),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const i=uce(Object.assign({store:this.store,datum:t,postSubmitHandler:o=>s(this,o),fields:this.fields,onCancel:()=>{},editFirst:this.editFirst,no_edit:this.no_edit,link_existing_rel_config:this.link_existing_rel_config,onFormCreation:this.onFormCreation,onSubmit:this.onSubmit,onDelete:this.onDelete,canEdit:this.canEdit,canDelete:this.canDelete},r)),a=n?(this.createFormNew||que)(i,this.closeForm.bind(this)):(this.createFormEdit||Gue)(i,this.closeForm.bind(this));this.formCont.populate(a),this.openForm();function s(o,l){if(o.addRelativeInstance.is_active){o.addRelativeInstance.onChange(t,l),o.postSubmit&&o.postSubmit(t,o.store.getData());const u=o.addRelativeInstance.datum;if(!u)throw new Error("Active datum not found");o.store.updateMainId(u.id),o.openWithoutRelCancel(u)}else(t.to_add||t.unknown)&&(l!=null&&l.link_rel_id)?(R3(t,l.link_rel_id,o.store.getData()),o.store.updateMainId(l.link_rel_id),o.openFormWithId(l.link_rel_id)):l!=null&&l.delete||(o.postSubmit&&o.postSubmit(t,o.store.getData()),o.openFormWithId(t.id));o.is_fixed||o.closeForm(),o.store.updateTree({}),o.updateHistory()}}openForm(){this.formCont.open()}closeForm(){this.formCont.close(),this.store.updateTree({})}fixed(){return this.is_fixed=!0,this.formCont.el&&ve(this.formCont.el).style("position","relative"),this}absolute(){return this.is_fixed=!1,this.formCont.el&&ve(this.formCont.el).style("position","absolute"),this}setCardClickOpen(t){return t.setOnCardClick((r,n)=>{this.isAddingRelative()?this.open(n.data):this.isRemovingRelative()?this.open(n.data):(this.open(n.data),t.onCardClickDefault(r,n))}),this}openFormWithId(t){if(t){const r=this.store.getDatum(t);if(!r)throw new Error("Datum not found");this.openWithoutRelCancel(r)}else{const r=this.store.getMainDatum();if(!r)throw new Error("Main datum not found");this.openWithoutRelCancel(r)}}setNoEdit(){return this.no_edit=!0,this}setEdit(){return this.no_edit=!1,this}setFields(t){const r=[];if(!Array.isArray(t))return console.error("fields must be an array"),this;for(const n of t)typeof n=="string"?r.push({type:"text",label:n,id:n}):typeof n=="object"?n.id?r.push(n):console.error("fields must be an array of objects with id property"):console.error("fields must be an array of strings or objects");return this.fields=r,this}setOnChange(t){return this.onChange=t,this}setCanEdit(t){return this.canEdit=t,this}setCanDelete(t){return this.canDelete=t,this}setCanAdd(t){return this.addRelativeInstance.setCanAdd(t),this}addRelative(t){return t||(t=this.store.getMainDatum()),this.addRelativeInstance.activate(t),this}setupModal(){return vce(this.cont)}setEditFirst(t){return this.editFirst=t,this}isAddingRelative(){return this.addRelativeInstance.is_active}isRemovingRelative(){return this.removeRelativeInstance.is_active}setAddRelLabels(t){return this.addRelativeInstance.setAddRelLabels(t),this}setLinkExistingRelConfig(t){return this.link_existing_rel_config=t,this}setOnFormCreation(t){return this.onFormCreation=t,this}setCreateFormEdit(t){return this.createFormEdit=t,this}setCreateFormNew(t){return this.createFormNew=t,this}_getStoreDataCopy(){let t=JSON.parse(JSON.stringify(this.store.getData()));return this.addRelativeInstance.is_active&&(t=this.addRelativeInstance.cleanUp(t)),t=fue(t),t}getStoreDataCopy(){return this.exportData()}exportData(){let t=this._getStoreDataCopy();return t=$le(t,this.store.state.legacy_format),t}getDataJson(){return JSON.stringify(this.exportData(),null,2)}updateHistory(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()}setPostSubmit(t){return this.postSubmit=t,this}setOnSubmit(t){return this.onSubmit=t,this}setOnDelete(t){return this.onDelete=t,this}destroy(){return this.history.controls.destroy(),this.history=null,this.formCont.el&&ve(this.formCont.el).remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this}}function bce(e,t,r){const n=[];t.data.forEach(h=>{h.coparent&&h.data.data.gender==="F"&&n.push({nodes:[h,h.coparent],id:`${h.data.id}--${h.coparent.data.id}`}),h.spouses&&h.spouses.forEach(m=>n.push({nodes:[m,h],id:`${m.data.id}--${h.data.id}`}))});const i=ve(e).select(".links_view").selectAll("g.link-text").data(n,h=>h.id),a=i.exit(),s=i.enter().append("g").attr("class","link-text"),o=s.merge(i),l=(h,m)=>h.spouse&&h.data.data.gender==="F"?h.x-r.node_separation/2:m.spouse&&m.data.data.gender==="M"?m.x+r.node_separation/2:Math.min(h.x,m.x)+r.node_separation/2;a.each(d),s.each(u),o.each(c);function u(h){const[m,y]=h.nodes,g=ve(this);g.attr("transform",`translate(${l(m,y)}, ${m.y-3})`).style("opacity",0),g.append("text").style("font-size","12px").style("fill","#fff").style("text-anchor","middle")}function c(h){const[m,y]=h.nodes,g=ve(this),w=r.initial?md(t,m,r.transition_time):0;g.select("text").text(r.linkSpouseText(m,y)),g.transition("text").duration(r.transition_time).delay(w).attr("transform",`translate(${l(m,y)}, ${m.y-3})`),g.transition("text-op").duration(100).delay(w+r.transition_time).style("opacity",1)}function d(h){const m=ve(this);m.transition("text").duration(100).style("opacity",0).on("end",()=>m.remove())}}function xce(e,t,r={}){return new Ece(e,t,r)}class Ece{constructor(t,r,n={}){this.cont=t,this.options=[],this.onSelect=r,this.config=n,this.autocomplete_cont=ve(this.cont).append("div").attr("class","f3-autocomplete-cont").node(),this.create()}create(){var t;const r=this;ve(this.autocomplete_cont).html(`
- ${Pue()} + ${Mue()}
- `);const n=ve(this.autocomplete_cont).select(".f3-autocomplete"),i=n.select("input"),a=n.select(".f3-autocomplete-items");n.on("focusout",()=>{setTimeout(()=>{n.node().contains(document.activeElement)||o()},200)}),i.on("focus",()=>{u(),s()}).on("input",s).on("keydown",c),a.on("wheel",d=>d.stopPropagation()),n.select(".f3-autocomplete-toggle").on("click",d=>{d.stopPropagation();const p=n.classed("active");n.classed("active",!p),p?o():(i.node().focus(),s())});function s(){n.classed("active",!0);const d=i.property("value"),p=r.options.filter(g=>g.label.toLowerCase().includes(d.toLowerCase()));p.forEach(m),p.sort(y),l(p);function m(g){const b=g.label.toLowerCase().indexOf(d.toLowerCase());b!==-1?g.label_html=E():g.label_html=g.label;function E(){return g.label.substring(0,b)+""+g.label.substring(b,b+d.length)+""+g.label.substring(b+d.length)}}function y(g,b){return g.labelb.label?1:0}}function o(){n.classed("active",!1),l([])}function l(d){a.selectAll("div.f3-autocomplete-item").data(d,m=>m==null?void 0:m.value).join("div").attr("class","f3-autocomplete-item").on("click",(m,y)=>{r.onSelect(y.value)}).html(m=>m.optionHtml?m.optionHtml(m):p(m));function p(m){return`
${m.label_html}
`}}function u(){r.options=r.getOptions()}function c(d){const p=a.selectAll("div.f3-autocomplete-item").nodes(),m=p.findIndex(g=>ve(g).classed("f3-selected"));if(d.key==="ArrowDown"){d.preventDefault();const g=m0?m-1:p.length-1;y(p,g)}else if(d.key==="Enter"&&m!==-1){d.preventDefault();const g=ve(p[m]).datum();g&&r.onSelect(g.value)}function y(g,b){g.forEach(E=>ve(E).classed("f3-selected",!1)),g[b]&&(ve(g[b]).classed("f3-selected",!0),g[b].scrollIntoView({block:"nearest"}))}}}setOptionsGetter(t){return this.getOptions=t,this}setOptionsGetterPerson(t,r){return this.getOptions=()=>{const a=[];return t().forEach(o=>{o.to_add||o.unknown||o._new_rel_data||a.find(l=>l.value===o.id)||a.push({label:r(o),value:o.id,optionHtml:n(o)})}),a},this;function n(a){const s=!c3(a,t());return o=>` + `);const n=ve(this.autocomplete_cont).select(".f3-autocomplete"),i=n.select("input"),a=n.select(".f3-autocomplete-items");n.on("focusout",()=>{setTimeout(()=>{n.node().contains(document.activeElement)||o()},200)}),i.on("focus",()=>{u(),s()}).on("input",s).on("keydown",c),a.on("wheel",d=>d.stopPropagation()),n.select(".f3-autocomplete-toggle").on("click",d=>{d.stopPropagation();const h=n.classed("active");n.classed("active",!h),h?o():(i.node().focus(),s())});function s(){n.classed("active",!0);const d=i.property("value"),h=r.options.filter(g=>g.label.toLowerCase().includes(d.toLowerCase()));h.forEach(m),h.sort(y),l(h);function m(g){const w=g.label.toLowerCase().indexOf(d.toLowerCase());w!==-1?g.label_html=x():g.label_html=g.label;function x(){return g.label.substring(0,w)+""+g.label.substring(w,w+d.length)+""+g.label.substring(w+d.length)}}function y(g,w){return g.labelw.label?1:0}}function o(){n.classed("active",!1),l([])}function l(d){a.selectAll("div.f3-autocomplete-item").data(d,m=>m==null?void 0:m.value).join("div").attr("class","f3-autocomplete-item").on("click",(m,y)=>{r.onSelect(y.value)}).html(m=>m.optionHtml?m.optionHtml(m):h(m));function h(m){return`
${m.label_html}
`}}function u(){r.options=r.getOptions()}function c(d){const h=a.selectAll("div.f3-autocomplete-item").nodes(),m=h.findIndex(g=>ve(g).classed("f3-selected"));if(d.key==="ArrowDown"){d.preventDefault();const g=m0?m-1:h.length-1;y(h,g)}else if(d.key==="Enter"&&m!==-1){d.preventDefault();const g=ve(h[m]).datum();g&&r.onSelect(g.value)}function y(g,w){g.forEach(x=>ve(x).classed("f3-selected",!1)),g[w]&&(ve(g[w]).classed("f3-selected",!0),g[w].scrollIntoView({block:"nearest"}))}}}setOptionsGetter(t){return this.getOptions=t,this}setOptionsGetterPerson(t,r){return this.getOptions=()=>{const a=[];return t().forEach(o=>{o.to_add||o.unknown||o._new_rel_data||a.find(l=>l.value===o.id)||a.push({label:r(o),value:o.id,optionHtml:n(o)})}),a},this;function n(a){const s=!d3(a,t());return o=>`
- ${h3()} + ${m3()} ${o.label_html} - ${s?`${Oue()}`:""} + ${s?`${Due()}`:""}
- `}function i(a){return a.data.gender==="M"?"male":a.data.gender==="F"?"female":"genderless"}}destroy(){this.autocomplete_cont.remove()}}function I3(e){const t=[];return Array.isArray(e)?e.forEach(r=>{typeof r=="function"?t.push(r):typeof r=="string"?t.push(n=>n.data[r]):Array.isArray(r)&&t.push(n=>r.map(i=>n.data[i]).join(" "))}):typeof e=="function"?t.push(e):typeof e=="string"&&t.push(r=>r.data[e]),t}function bce(e,t,r,n){const i=r.is_ancestry,a=t.data();let s=[],o=[];if(i){const d=[];let p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(b=>b.spouse===!0&&(b.source===p||b.target===p));if(g){const b=a.filter(w=>Array.isArray(w.target)&&w.target.includes(g.source)&&w.target.includes(g.target)),E=c(b,n);if(!E)break;d.push(g),d.push(E),p=E.source}else{const b=a.filter(w=>Array.isArray(w.target)&&w.target.includes(p)),E=c(b,n);if(!E)break;d.push(E),p=E.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const y=u(r,d);e.each(function(g){y.includes(g)&&o.push({card:g,node:this})})}else if(r.spouse&&r.spouse.data===n.data){t.each(function(p){p.target===r&&s.push({link:p,node:this})});const d=[n,r];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else if(r.sibling){t.each(function(p){if(!Array.isArray(r.parents))throw new Error("datum.parents is not an array");p.source===r&&s.push({link:p,node:this}),p.source===n&&Array.isArray(p.target)&&p.target.length===2&&s.push({link:p,node:this}),r.parents.includes(p.source)&&!Array.isArray(p.target)&&r.parents.includes(p.target)&&s.push({link:p,node:this})});const d=[n,r,...r.parents||[]];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else{let d=[],p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(b=>b.target===p&&Array.isArray(b.source));if(g){const b=a.find(E=>E.spouse===!0&&l([E.source,E.target],g.source));d.push(g),d.push(b),b?p=b.source:p=g.source[0]}else{const b=a.find(E=>E.target===p&&!Array.isArray(E.source));if(!b)break;d.push(b),p=b.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const y=u(n,d);e.each(function(g){y.includes(g)&&o.push({card:g,node:this})})}return{cards_node_to_main:o,links_node_to_main:s};function l(d,p){return d.every(m=>p.some(y=>m===y))}function u(d,p){const m=p.filter(b=>b).reduce((b,E)=>(Array.isArray(E.target)?b.push(...E.target):b.push(E.target),Array.isArray(E.source)?b.push(...E.source):b.push(E.source),b),[]),y=[n,r];return g(d),y;function g(b){b.data.rels.children&&b.data.rels.children.forEach(E=>{const w=m.find(x=>x.data.id===E);w&&(y.push(w),g(w))})}}function c(d,p){return d.length===0?null:d.length===1?d[0]:d.find(m=>m.source===p)}}function $R(e,t){return new xce(e,t)}let xce=class{constructor(t,r){return this.cont=t,this.svg=this.cont.querySelector("svg.main_svg"),this.store=r,this.card_display=[n=>`${n.data["first name"]} ${n.data["last name"]}`],this.cardImageField="avatar",this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.card_dim={},this}getCard(){return b3({store:this.store,card_display:this.card_display,cardImageField:this.cardImageField,defaultPersonIcon:this.defaultPersonIcon,onCardClick:this.onCardClick,style:this.style,mini_tree:this.mini_tree,onCardUpdate:this.onCardUpdate,card_dim:this.card_dim,empty_card_label:this.store.state.single_parent_empty_card_label||"",unknown_card_label:this.store.state.unknown_card_label||"",cardInnerHtmlCreator:this.cardInnerHtmlCreator,duplicate_branch_toggle:this.store.state.duplicate_branch_toggle,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):void 0,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):void 0})}setCardDisplay(t){return this.card_display=I3(t),this}setCardImageField(t){return this.cardImageField=t,this}setDefaultPersonIcon(t){return this.defaultPersonIcon=t,this}setOnCardClick(t){return this.onCardClick=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setStyle(t){return this.style=t,this}setMiniTree(t){return this.mini_tree=t,this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return this}resetCardDim(){return this.card_dim={},this}setCardInnerHtmlCreator(t){return this.cardInnerHtmlCreator=t,this}setOnHoverPathToMain(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this}unsetOnHoverPathToMain(){return this.onCardMouseenter=void 0,this.onCardMouseleave=void 0,this}onEnterPathToMain(t,r){this.to_transition=r.data.id;const n=this.store.getTreeMainDatum(),i=ve(this.cont).select("div.cards_view").selectAll(".card_cont"),a=ve(this.cont).select("svg.main_svg .links_view").selectAll(".link"),{cards_node_to_main:s,links_node_to_main:o}=bce(i,a,r,n);return s.forEach(l=>{const u=Math.abs(r.depth-l.card.depth)*200;ve(l.node.querySelector("div.card-inner")).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0))}),o.forEach(l=>{const u=Math.abs(r.depth-l.link.depth)*200;ve(l.node).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node).classed("f3-path-to-main",!0))}),this}onLeavePathToMain(t,r){return this.to_transition=!1,ve(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),ve(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this}};function HR(e,t){return new Ece(e,t)}let Ece=class{constructor(t,r){return this.cont=t,this.store=r,this.svg=this.cont.querySelector("svg.main_svg"),this.card_dim={w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5},this.card_display=[],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault.bind(this),this}getCard(){return Ux({store:this.store,svg:this.svg,card_dim:this.card_dim,card_display:this.card_display,mini_tree:this.mini_tree,link_break:this.link_break,onCardClick:this.onCardClick,onCardUpdate:this.onCardUpdate})}setCardDisplay(t){return this.card_display=I3(t),this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return nce(this.svg,this.card_dim),this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setMiniTree(t){return this.mini_tree=t,this}setLinkBreak(t){return this.link_break=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setOnCardClick(t){return this.onCardClick=t,this}};function Sce(e,t){return new Cce(e,t)}class Cce{constructor(t,r){this.getCard=null,this.transition_time=2e3,this.linkSpouseText=null,this.personSearch=null,this.is_card_html=!1,this.beforeUpdate=null,this.afterUpdate=null,this.cont=kce(t);const{svg:n}=i3(this.cont);this.svg=n,Tce(this.cont);const i=r&&r.length>0?r[0].id:"";return this.store=this.createStore(r,i),this.setOnUpdate(),this.editTreeInstance=null,this}createStore(t,r){return t3({data:t,main_id:r,node_separation:250,level_separation:150,single_parent_empty_card:!0,is_horizontal:!1})}setOnUpdate(){this.store.setOnUpdate(t=>{this.beforeUpdate&&this.beforeUpdate(t),t=Object.assign({transition_time:this.store.state.transition_time},t||{}),this.is_card_html&&(t=Object.assign({},t||{},{cardHtml:!0})),l3(this.store.getTree(),this.svg,this.getCard(),t||{}),this.linkSpouseText&&yce(this.svg,this.store.getTree(),Object.assign({},t||{},{linkSpouseText:this.linkSpouseText,node_separation:this.store.state.node_separation})),this.afterUpdate&&this.afterUpdate(t)})}updateTree(t={initial:!1}){return this.store.updateTree(t),this}updateData(t){return this.store.updateData(t),this}setCardYSpacing(t){return typeof t!="number"?(console.error("card_y_spacing must be a number"),this):(this.store.state.level_separation=t,this)}setCardXSpacing(t){return typeof t!="number"?(console.error("card_x_spacing must be a number"),this):(this.store.state.node_separation=t,this)}setOrientationVertical(){return this.store.state.is_horizontal=!1,this}setOrientationHorizontal(){return this.store.state.is_horizontal=!0,this}setShowSiblingsOfMain(t){return this.store.state.show_siblings_of_main=t,this}setModifyTreeHierarchy(t){return this.store.state.modifyTreeHierarchy=t,this}setPrivateCardsConfig(t){return this.store.state.private_cards_config=t,this}setLinkSpouseText(t){return this.linkSpouseText=t,this}setSingleParentEmptyCard(t,{label:r="Unknown"}={}){return this.store.state.single_parent_empty_card=t,this.store.state.single_parent_empty_card_label=r,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),Bx(this.store.getData()||[]),this}setCard(t){if(t===$R)return this.setCardHtml();if(t===HR)return this.setCardSvg();throw new Error("Card must be an instance of cardHtml or cardSvg")}setCardHtml(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!0,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="block";const r=$R(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setCardSvg(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!1,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="none";const r=HR(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setTransitionTime(t){return this.store.state.transition_time=t,this}setSortChildrenFunction(t){return this.store.state.sortChildrenFunction=t,this}setSortSpousesFunction(t){return this.store.state.sortSpousesFunction=t,this}setAncestryDepth(t){return this.store.state.ancestry_depth=t,this}setProgenyDepth(t){return this.store.state.progeny_depth=t,this}getMaxDepth(t){return Nle(t,this.store.getData())}calculateKinships(t,r={}){return S3(t,this.store.getData(),r)}getKinshipsDataStash(t,r){return T3(t,r,this.store.getData(),this.calculateKinships(t))}setDuplicateBranchToggle(t){return this.store.state.duplicate_branch_toggle=t,this}editTree(){return this.editTreeInstance=gce(this.cont,this.store)}updateMain(t){let r;return t.id?r=t.id:r=t.data.id,this.store.updateMainId(r),this.store.updateTree({}),this}updateMainId(t){return this.store.updateMainId(t),this}getMainDatum(){return this.store.getMainDatum()}setBeforeUpdate(t){return this.beforeUpdate=t,this}setAfterUpdate(t){return this.afterUpdate=t,this}setPersonDropdown(t,{cont:r=this.cont.querySelector(".f3-nav-cont"),onSelect:n,placeholder:i="Search"}={}){n||(n=a.bind(this)),this.personSearch=_ce(r,n,{placeholder:i}),this.personSearch.setOptionsGetterPerson(this.store.getData,t);function a(s){const o=this.store.getDatum(s);if(!o)throw new Error("Datum not found");this.editTreeInstance&&this.editTreeInstance.open(o),this.updateMainId(s),this.updateTree({initial:!1})}return this}unSetPersonSearch(){return this.personSearch.destroy(),this.personSearch=null,this}}function kce(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)throw new Error("cont not found");return e}function Tce(e){ve(e).append("div").attr("class","f3-nav-cont")}function Ace(e,t,r){const{self_id:n,getLabel:i,title:a}=e,s=S3(n,r,e),o=s[t];if(!o)return;let l=o;o==="self"?l="You":l=R3(l);const u=` + `}function i(a){return a.data.gender==="M"?"male":a.data.gender==="F"?"female":"genderless"}}destroy(){this.autocomplete_cont.remove()}}function P3(e){const t=[];return Array.isArray(e)?e.forEach(r=>{typeof r=="function"?t.push(r):typeof r=="string"?t.push(n=>n.data[r]):Array.isArray(r)&&t.push(n=>r.map(i=>n.data[i]).join(" "))}):typeof e=="function"?t.push(e):typeof e=="string"&&t.push(r=>r.data[e]),t}function Sce(e,t,r,n){const i=r.is_ancestry,a=t.data();let s=[],o=[];if(i){const d=[];let h=r,m=0;for(;h!==n&&m<100;){m++;const g=a.find(w=>w.spouse===!0&&(w.source===h||w.target===h));if(g){const w=a.filter(b=>Array.isArray(b.target)&&b.target.includes(g.source)&&b.target.includes(g.target)),x=c(w,n);if(!x)break;d.push(g),d.push(x),h=x.source}else{const w=a.filter(b=>Array.isArray(b.target)&&b.target.includes(h)),x=c(w,n);if(!x)break;d.push(x),h=x.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const y=u(r,d);e.each(function(g){y.includes(g)&&o.push({card:g,node:this})})}else if(r.spouse&&r.spouse.data===n.data){t.each(function(h){h.target===r&&s.push({link:h,node:this})});const d=[n,r];e.each(function(h){d.includes(h)&&o.push({card:h,node:this})})}else if(r.sibling){t.each(function(h){if(!Array.isArray(r.parents))throw new Error("datum.parents is not an array");h.source===r&&s.push({link:h,node:this}),h.source===n&&Array.isArray(h.target)&&h.target.length===2&&s.push({link:h,node:this}),r.parents.includes(h.source)&&!Array.isArray(h.target)&&r.parents.includes(h.target)&&s.push({link:h,node:this})});const d=[n,r,...r.parents||[]];e.each(function(h){d.includes(h)&&o.push({card:h,node:this})})}else{let d=[],h=r,m=0;for(;h!==n&&m<100;){m++;const g=a.find(w=>w.target===h&&Array.isArray(w.source));if(g){const w=a.find(x=>x.spouse===!0&&l([x.source,x.target],g.source));d.push(g),d.push(w),w?h=w.source:h=g.source[0]}else{const w=a.find(x=>x.target===h&&!Array.isArray(x.source));if(!w)break;d.push(w),h=w.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const y=u(n,d);e.each(function(g){y.includes(g)&&o.push({card:g,node:this})})}return{cards_node_to_main:o,links_node_to_main:s};function l(d,h){return d.every(m=>h.some(y=>m===y))}function u(d,h){const m=h.filter(w=>w).reduce((w,x)=>(Array.isArray(x.target)?w.push(...x.target):w.push(x.target),Array.isArray(x.source)?w.push(...x.source):w.push(x.source),w),[]),y=[n,r];return g(d),y;function g(w){w.data.rels.children&&w.data.rels.children.forEach(x=>{const b=m.find(E=>E.data.id===x);b&&(y.push(b),g(b))})}}function c(d,h){return d.length===0?null:d.length===1?d[0]:d.find(m=>m.source===h)}}function qR(e,t){return new Cce(e,t)}let Cce=class{constructor(t,r){return this.cont=t,this.svg=this.cont.querySelector("svg.main_svg"),this.store=r,this.card_display=[n=>`${n.data["first name"]} ${n.data["last name"]}`],this.cardImageField="avatar",this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.card_dim={},this}getCard(){return E3({store:this.store,card_display:this.card_display,cardImageField:this.cardImageField,defaultPersonIcon:this.defaultPersonIcon,onCardClick:this.onCardClick,style:this.style,mini_tree:this.mini_tree,onCardUpdate:this.onCardUpdate,card_dim:this.card_dim,empty_card_label:this.store.state.single_parent_empty_card_label||"",unknown_card_label:this.store.state.unknown_card_label||"",cardInnerHtmlCreator:this.cardInnerHtmlCreator,duplicate_branch_toggle:this.store.state.duplicate_branch_toggle,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):void 0,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):void 0})}setCardDisplay(t){return this.card_display=P3(t),this}setCardImageField(t){return this.cardImageField=t,this}setDefaultPersonIcon(t){return this.defaultPersonIcon=t,this}setOnCardClick(t){return this.onCardClick=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setStyle(t){return this.style=t,this}setMiniTree(t){return this.mini_tree=t,this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return this}resetCardDim(){return this.card_dim={},this}setCardInnerHtmlCreator(t){return this.cardInnerHtmlCreator=t,this}setOnHoverPathToMain(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this}unsetOnHoverPathToMain(){return this.onCardMouseenter=void 0,this.onCardMouseleave=void 0,this}onEnterPathToMain(t,r){this.to_transition=r.data.id;const n=this.store.getTreeMainDatum(),i=ve(this.cont).select("div.cards_view").selectAll(".card_cont"),a=ve(this.cont).select("svg.main_svg .links_view").selectAll(".link"),{cards_node_to_main:s,links_node_to_main:o}=Sce(i,a,r,n);return s.forEach(l=>{const u=Math.abs(r.depth-l.card.depth)*200;ve(l.node.querySelector("div.card-inner")).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0))}),o.forEach(l=>{const u=Math.abs(r.depth-l.link.depth)*200;ve(l.node).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node).classed("f3-path-to-main",!0))}),this}onLeavePathToMain(t,r){return this.to_transition=!1,ve(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),ve(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this}};function GR(e,t){return new kce(e,t)}let kce=class{constructor(t,r){return this.cont=t,this.store=r,this.svg=this.cont.querySelector("svg.main_svg"),this.card_dim={w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5},this.card_display=[],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault.bind(this),this}getCard(){return zx({store:this.store,svg:this.svg,card_dim:this.card_dim,card_display:this.card_display,mini_tree:this.mini_tree,link_break:this.link_break,onCardClick:this.onCardClick,onCardUpdate:this.onCardUpdate})}setCardDisplay(t){return this.card_display=P3(t),this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return ace(this.svg,this.card_dim),this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setMiniTree(t){return this.mini_tree=t,this}setLinkBreak(t){return this.link_break=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setOnCardClick(t){return this.onCardClick=t,this}};function Tce(e,t){return new Ace(e,t)}class Ace{constructor(t,r){this.getCard=null,this.transition_time=2e3,this.linkSpouseText=null,this.personSearch=null,this.is_card_html=!1,this.beforeUpdate=null,this.afterUpdate=null,this.cont=Ice(t);const{svg:n}=o3(this.cont);this.svg=n,Rce(this.cont);const i=r&&r.length>0?r[0].id:"";return this.store=this.createStore(r,i),this.setOnUpdate(),this.editTreeInstance=null,this}createStore(t,r){return r3({data:t,main_id:r,node_separation:250,level_separation:150,single_parent_empty_card:!0,is_horizontal:!1})}setOnUpdate(){this.store.setOnUpdate(t=>{this.beforeUpdate&&this.beforeUpdate(t),t=Object.assign({transition_time:this.store.state.transition_time},t||{}),this.is_card_html&&(t=Object.assign({},t||{},{cardHtml:!0})),c3(this.store.getTree(),this.svg,this.getCard(),t||{}),this.linkSpouseText&&bce(this.svg,this.store.getTree(),Object.assign({},t||{},{linkSpouseText:this.linkSpouseText,node_separation:this.store.state.node_separation})),this.afterUpdate&&this.afterUpdate(t)})}updateTree(t={initial:!1}){return this.store.updateTree(t),this}updateData(t){return this.store.updateData(t),this}setCardYSpacing(t){return typeof t!="number"?(console.error("card_y_spacing must be a number"),this):(this.store.state.level_separation=t,this)}setCardXSpacing(t){return typeof t!="number"?(console.error("card_x_spacing must be a number"),this):(this.store.state.node_separation=t,this)}setOrientationVertical(){return this.store.state.is_horizontal=!1,this}setOrientationHorizontal(){return this.store.state.is_horizontal=!0,this}setShowSiblingsOfMain(t){return this.store.state.show_siblings_of_main=t,this}setModifyTreeHierarchy(t){return this.store.state.modifyTreeHierarchy=t,this}setPrivateCardsConfig(t){return this.store.state.private_cards_config=t,this}setLinkSpouseText(t){return this.linkSpouseText=t,this}setSingleParentEmptyCard(t,{label:r="Unknown"}={}){return this.store.state.single_parent_empty_card=t,this.store.state.single_parent_empty_card_label=r,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),Ux(this.store.getData()||[]),this}setCard(t){if(t===qR)return this.setCardHtml();if(t===GR)return this.setCardSvg();throw new Error("Card must be an instance of cardHtml or cardSvg")}setCardHtml(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!0,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="block";const r=qR(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setCardSvg(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!1,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="none";const r=GR(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setTransitionTime(t){return this.store.state.transition_time=t,this}setSortChildrenFunction(t){return this.store.state.sortChildrenFunction=t,this}setSortSpousesFunction(t){return this.store.state.sortSpousesFunction=t,this}setAncestryDepth(t){return this.store.state.ancestry_depth=t,this}setProgenyDepth(t){return this.store.state.progeny_depth=t,this}getMaxDepth(t){return Fle(t,this.store.getData())}calculateKinships(t,r={}){return k3(t,this.store.getData(),r)}getKinshipsDataStash(t,r){return I3(t,r,this.store.getData(),this.calculateKinships(t))}setDuplicateBranchToggle(t){return this.store.state.duplicate_branch_toggle=t,this}editTree(){return this.editTreeInstance=_ce(this.cont,this.store)}updateMain(t){let r;return t.id?r=t.id:r=t.data.id,this.store.updateMainId(r),this.store.updateTree({}),this}updateMainId(t){return this.store.updateMainId(t),this}getMainDatum(){return this.store.getMainDatum()}setBeforeUpdate(t){return this.beforeUpdate=t,this}setAfterUpdate(t){return this.afterUpdate=t,this}setPersonDropdown(t,{cont:r=this.cont.querySelector(".f3-nav-cont"),onSelect:n,placeholder:i="Search"}={}){n||(n=a.bind(this)),this.personSearch=xce(r,n,{placeholder:i}),this.personSearch.setOptionsGetterPerson(this.store.getData,t);function a(s){const o=this.store.getDatum(s);if(!o)throw new Error("Datum not found");this.editTreeInstance&&this.editTreeInstance.open(o),this.updateMainId(s),this.updateTree({initial:!1})}return this}unSetPersonSearch(){return this.personSearch.destroy(),this.personSearch=null,this}}function Ice(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)throw new Error("cont not found");return e}function Rce(e){ve(e).append("div").attr("class","f3-nav-cont")}function Pce(e,t,r){const{self_id:n,getLabel:i,title:a}=e,s=k3(n,r,e),o=s[t];if(!o)return;let l=o;o==="self"?l="You":l=O3(l);const u=`
${a} ${l} - ${Nue()} + ${Fue()}
- `,c=ta("div").html(u).select("div").node();let d=null;return ve(c).select(".f3-kinship-info-icon").on("click",m=>p(m,c)),c;function p(m,y){let E=m.clientX-250-10,w=m.clientY-400-10;if(E+250>window.innerWidth&&(E=window.innerWidth-250-10),w<0&&(w=10),d&&d.active){d.close(),d=null;return}d=E3(y),ve(d.popup_cont).style("width","250px").style("height","400px").style("left",`${E}px`).style("top",`${w}px`);const x=d.popup_cont.querySelector(".f3-popup-content-inner");d.activate(),Ice(n,t,r,s,x,i)}}function Ice(e,t,r,n,i,a){ve(i).select("#SmallChart").node()||ve(i).append("div").attr("id","SmallChart").attr("class","f3");const s=ve("#SmallChart");s.selectAll("*").remove();const o=T3(e,t,r,n);let l=!0;const u=s.append("div");c(o);function c(d){const p=Sce("#SmallChart",d).setTransitionTime(500).setCardXSpacing(170).setCardYSpacing(70).setSingleParentEmptyCard(!1),m=p.setCardHtml().setStyle("rect").setCardInnerHtmlCreator(E=>y(E)).setOnCardUpdate(function(E){ve(this).select(".card").classed("card-main",!1)});m.onCardClick=(E,w)=>{},p.updateTree({initial:!0}),setTimeout(()=>b(.65),100),g();function y(E){let w=E.data.kinship==="self"?"You":E.data.kinship;return w=R3(w),l||(w=a(E.data)),` -
-
${w}
+ `,c=ta("div").html(u).select("div").node();let d=null;return ve(c).select(".f3-kinship-info-icon").on("click",m=>h(m,c)),c;function h(m,y){let x=m.clientX-250-10,b=m.clientY-400-10;if(x+250>window.innerWidth&&(x=window.innerWidth-250-10),b<0&&(b=10),d&&d.active){d.close(),d=null;return}d=C3(y),ve(d.popup_cont).style("width","250px").style("height","400px").style("left",`${x}px`).style("top",`${b}px`);const E=d.popup_cont.querySelector(".f3-popup-content-inner");d.activate(),Oce(n,t,r,s,E,i)}}function Oce(e,t,r,n,i,a){ve(i).select("#SmallChart").node()||ve(i).append("div").attr("id","SmallChart").attr("class","f3");const s=ve("#SmallChart");s.selectAll("*").remove();const o=I3(e,t,r,n);let l=!0;const u=s.append("div");c(o);function c(d){const h=Tce("#SmallChart",d).setTransitionTime(500).setCardXSpacing(170).setCardYSpacing(70).setSingleParentEmptyCard(!1),m=h.setCardHtml().setStyle("rect").setCardInnerHtmlCreator(x=>y(x)).setOnCardUpdate(function(x){ve(this).select(".card").classed("card-main",!1)});m.onCardClick=(x,b)=>{},h.updateTree({initial:!0}),setTimeout(()=>w(.65),100),g();function y(x){let b=x.data.kinship==="self"?"You":x.data.kinship;return b=O3(b),l||(b=a(x.data)),` +
+
${b}
- `;function x(){return E.data.kinship==="self"?"card-kinship-self"+(l?"":" f3-real-label"):E.data.id===t?"card-kinship-rel":"card-kinship-default"}}function g(){u.classed("f3-kinship-labels-toggle",!0),u.append("label").text("Kinship labels").append("input").attr("type","checkbox").attr("checked",!0).on("change",E=>{l=!l,p.updateTree({initial:!1,tree_position:"inherit"})})}function b(E){const w=p.cont.querySelector("svg.main_svg");Gle(w).k>E&&Wle(w,E)}}}function R3(e){return e=e[0].toUpperCase()+e.slice(1),e.includes("great-")&&(e=e.replace("great-","Great-")),e}var Rce=Object.freeze({__proto__:null,Card:rce,CardHtml:b3,CardSvg:Ux,appendElement:J1,infoPopup:E3,kinshipInfo:Ace});Object.assign({},Jle,{setupHtmlSvg:eue,setupReactiveTreeData:tue,getUniqueId:nue});function Pce(e,t){return e.husb===t?e.wife:e.husb}function qR(e,t){const r=new Map;return e.fams.forEach(n=>r.set(n.id,n)),e.indis.map(n=>{var d,p;const i=n.famc&&r.get(n.famc)||void 0,a=(n.fams||[]).map(m=>r.get(m)).filter(m=>m!==void 0),s=i==null?void 0:i.husb,o=i==null?void 0:i.wife,l=[s,o].filter(m=>!!m),u=a.map(m=>Pce(m,n.id)).filter(m=>m!==void 0),c=a.flatMap(m=>m.children||[]);return{id:n.id,data:{"first name":n.firstName,"last name":n.lastName,birthday:Il(n.birth,t),avatar:(p=(d=n.images)==null?void 0:d[0])==null?void 0:p.url,gender:n.sex},rels:{parents:l,spouses:u,children:c}}})}class Oce{initializeChart(t,r){const n=qR(t.data,r);this.store=t3({data:n,main_id:t.selection.id});const i=r3(document.querySelector("#dotatsoSvgContainer")),a=Rce.CardSvg({store:this.store,svg:i,card_display:[s=>`${s.data["first name"]||""} ${s.data["last name"]||""}`,s=>`${s.data.birthday||""}`],mini_tree:!0,link_break:!1,onCardClick:(s,o)=>t.onSelection({id:o.data.id,generation:0}),card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}});this.store.setOnUpdate(s=>{l3(this.store.getTree(),i,a,s||{})}),this.store.updateTree({initial:!0})}updateChart(t,r){const n=qR(t.data,r);this.store.updateData(n),this.store.updateMainId(t.selection.id),this.store.updateTree()}}function Nce(e){const t=Q.useRef(new Oce),r=VL(e),n=hr();return Q.useEffect(()=>{var i;r?t.current.updateChart(e,n):(t.current.initializeChart(e,n),(i=e.onFirstRender)==null||i.call(e))}),P.jsx("div",{id:"dotatsoSvgContainer"})}class Mce{isNewData(t,r,n){return!1}async onMessage(t,r,n,i){if(t.message==="parent_ready")window.parent.postMessage({message:"ready"},"*");else if(t.message==="gedcom"){const a=t.gedcom;if(!a)return;try{const s="embedded";dD(s,a,new Map);const o=await gD(s,i,{useSessionCache:!1}),l=Ub(o.gedcom.head);_n("embedded_file_loaded",{event_label:l}),r(o)}catch(s){_n("embedded_file_error"),n(s)}}}async loadData(t,r){return this.activeListener&&(window.removeEventListener("message",this.activeListener),this.activeListener=void 0),new Promise((n,i)=>{const a=l=>{this.activeListener===o&&(window.removeEventListener("message",o),this.activeListener=void 0),n(l)},s=l=>{this.activeListener===o&&(window.removeEventListener("message",o),this.activeListener=void 0),i(l)},o=l=>this.onMessage(l.data,a,s,r);this.activeListener=o,window.parent.postMessage({message:"ready"},"*"),window.addEventListener("message",o)})}}const GR=new _7,WR=new w7,VR=new Mce,KR=new b7;function Dce(e,t){return e instanceof pu?t.formatMessage({id:`error.${e.code}`,defaultMessage:e.message},e.args):e.message}function Fce(e){const{intl:t,urlSelection:r,urlDetail:n,onAuthError:i}=e,a=Ii(),s=pn(),[o,l]=Q.useState(Xt.INITIAL),[u,c]=Q.useState("Loading…"),[d,p]=Q.useState(),[m,y]=Q.useState(),[g,b]=Q.useState(!1),[E,w]=Q.useState(),x=Q.useRef(!0),C=Q.useRef(0),_=Q.useRef();Q.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const k=Q.useMemo(()=>new vW(t),[t]),A=Q.useCallback((N,$)=>{if(!E||E.source!==N.source)return!0;const j={spec:N,selection:$},L={spec:E,selection:_.current};switch(j.spec.source){case qt.UPLOADED:return GR.isNewData(j,L,d);case qt.GEDCOM_URL:return WR.isNewData(j,L,d);case qt.WIKITREE:return k.isNewData(j,L,d);case qt.EMBEDDED:return VR.isNewData(j,L,d);case qt.GOOGLE_DRIVE:return KR.isNewData(j,L,d);default:return!1}},[E,d,k]),M=Q.useCallback((N,$,j)=>{switch(N.source){case qt.UPLOADED:return GR.loadData({spec:N,selection:$},j);case qt.GEDCOM_URL:return WR.loadData({spec:N,selection:$},j);case qt.WIKITREE:return k.loadData({spec:N,selection:$},j);case qt.EMBEDDED:return VR.loadData({spec:N,selection:$},j);case qt.GOOGLE_DRIVE:return KR.loadData({spec:N,selection:$},j);default:throw new Error("Unsupported data source")}},[k]),F=Q.useCallback(N=>{y(N),l(Xt.ERROR)},[]),U=Q.useCallback(N=>{b(!0),y(N)},[]),D=Q.useCallback(()=>{b(!1)},[]),q=Q.useCallback(()=>{l(Xt.INITIAL)},[]),J=Q.useCallback(()=>{p(void 0),_.current=void 0},[]),W=Q.useCallback((N,$)=>(o===Xt.INITIAL||A(N,$))&&o!==Xt.LOADING&&o!==Xt.LOADING_MORE,[o,A]),z=Q.useCallback(async(N,$)=>{l(Xt.LOADING),w(N),_.current=$;const j=++C.current;c("Loading…");try{const L=await M(N,$,ie=>{x.current&&c(ie)});if(!x.current||C.current!==j)return;c(`Rendering chart (${L.chartData.indis.length.toLocaleString()} people)…`),p(L),_.current=xy(L.chartData,$),l(Xt.SHOWING_CHART)}catch(L){if(!x.current||C.current!==j)return;L instanceof af?N.source===qt.GOOGLE_DRIVE&&i(N.fileId):F(Dce(L,t))}},[t,M,i,F]),V=Q.useCallback((N,$)=>o!==Xt.SHOWING_CHART&&o!==Xt.LOADING_MORE?!1:N.source===qt.WIKITREE&&!!$&&(!_.current||_.current.id!==$.id),[o]),Y=Q.useCallback(async N=>{l(Xt.LOADING_MORE);const $=++C.current;try{const j=await CD(N.id,t);if(!x.current||C.current!==$)return;const L=xy(j.chartData,N);p(j),_.current=L,l(Xt.SHOWING_CHART)}catch(j){if(!x.current||C.current!==$)return;l(Xt.SHOWING_CHART),U(t.formatMessage({id:"error.failed_wikitree_load_more",defaultMessage:"Failed to load data from WikiTree. {error}"},{error:j.message||String(j)}))}},[t,U]);Q.useEffect(()=>{if(s.pathname!=="/view"){o!==Xt.INITIAL&&l(Xt.INITIAL),p(void 0);return}const N=Fx(s);if(!N.sourceSpec){a({pathname:"/"},{replace:!0});return}W(N.sourceSpec,N.selection)?z(N.sourceSpec,N.selection):V(N.sourceSpec,N.selection)&&N.selection?Y(N.selection):o===Xt.LOADING_MORE&&l(Xt.SHOWING_CHART)},[s,o,a,W,z,V,Y]),Q.useEffect(()=>()=>{Pm(d==null?void 0:d.images)},[d]);const X=Q.useMemo(()=>d?xy(d.chartData,r):void 0,[d,r]),G=n||(X==null?void 0:X.id);return{state:o,loadingStatus:u,data:d,error:m,showErrorPopup:g,sourceSpec:E,updatedSelection:X,detailIndi:G,loadedSelectionRef:_,onDismissErrorPopup:D,resetLoader:q,clearData:J,setLoadingStatus:c,displayErrorPopup:U}}function Lce(){const e=pn(),t=Ii(),r=Q.useMemo(()=>Fx(e),[e]),n=Q.useCallback((l,u)=>{t(Lse(e,l),u)},[e,t]),i=Q.useCallback(l=>{l.id.startsWith($b)||(_n("selection_changed"),n({indi:l.id,gen:String(l.generation),detail:null}))},[n]),a=Q.useCallback(l=>{n({detail:l.id})},[n]),s=Q.useCallback(()=>{const l=!r.showSidePanel;n({sidePanel:l?"true":"false"},{replace:!0})},[r.showSidePanel,n]),o=Q.useCallback(l=>{n(Pse(l),{replace:!0})},[n]);return{args:r,chartType:r.chartType,standalone:r.standalone,showWikiTreeMenus:r.showWikiTreeMenus,freezeAnimation:r.freezeAnimation,showSidePanel:r.showSidePanel,config:r.config,sourceSpec:r.sourceSpec,selection:r.selection,detail:r.detail,updateUrl:n,onSelection:i,onDetailSelection:a,onToggleSidePanel:s,onConfigChange:o}}const jce={name:"get_selected_person",description:"Returns the full details (name, events, immediate relatives) of the individual currently selected in the browser viewport.",inputSchema:{type:"object",properties:{}}},Bce={name:"search_indi",description:"Searches the genealogy index for individuals by name. Returns up to 10 results starting with the ones that match the best.",inputSchema:{type:"object",properties:{query:{type:"string",description:"The name to search for."}},required:["query"]}},Uce={name:"inspect_indi",description:"Fetches detailed information for a specific individual by ID, including their immediate relatives and life events.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID of the individual."}},required:["id"]}},zce={name:"focus_indi",description:"Instructs the Topola viewer camera view to center on and focus a specific person. Restructures the tree view to show ancestors and descendants of the selected person.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID to focus."}},required:["id"]}},$ce={name:"find_relationship_path",description:"Finds the shortest path connecting two individuals (e.g., through parents or marriages). Returns an ordered list of connecting individuals.",inputSchema:{type:"object",properties:{source:{type:"string",description:"Start individual ID"},target:{type:"string",description:"End individual ID"}},required:["source","target"]}},Hce={name:"get_ancestors",description:"Returns ancestors of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},qce={name:"get_descendants",description:"Returns descendants of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},QR=5,Gce=10;function Wo(e){return{content:[{type:"text",text:JSON.stringify(e)}],structuredContent:e}}function Bc(e){return{content:[{type:"text",text:e}]}}class Wce{constructor(){this.detailIndi=null,this.searchIndex=null,this.chartData=null,this.indiMap=new Map,this.famMap=new Map,this.setSelectionCallback=null,this.toolsRegistered=!1}async handleGetSelectedPerson(){const t=this.detailIndi;return!t||t.startsWith("private_")?Bc("No person is currently selected."):Wo(this.toFullIndi(t))}async handleSearchIndi(t){!this.searchIndex&&this.chartData&&(this.searchIndex=G1(this.chartData));const r=this.searchIndex;if(!r)return Bc("Data not loaded.");const i=r.search(t.query).slice(0,Gce).map(a=>this.toBasicIndi(a.id)).filter(Boolean);return Wo(i)}async handleInspectIndi(t){const r=this.toFullIndi(t.id);return r?Wo(r):Bc(`No person found with id ${t.id}.`)}async handleFocusIndi(t){if(t.id.startsWith("private_"))return Bc(`No person found with id ${t.id}.`);const r=this.setSelectionCallback;return r?(r(t.id),Wo({status:"success"})):Bc("Error shifting viewport.")}async handleFindRelationshipPath(t){const n=d7(t.source,t.target,this.indiMap,this.famMap).map(i=>this.toBasicIndi(i)).filter(Boolean);return Wo(n)}async handleGetAncestors(t){const r=Math.min(t.generations??3,QR),i=h7(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return Wo(i)}async handleGetDescendants(t){const r=Math.min(t.generations??3,QR),i=p7(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return Wo(i)}setDetailIndi(t){this.detailIndi=t}setData(t){t?(this.indiMap=Am(t.chartData),this.famMap=jb(t.chartData),this.chartData=t.chartData,this.searchIndex=null):(this.indiMap.clear(),this.famMap.clear(),this.chartData=null,this.searchIndex=null)}setSetSelectionCallback(t){this.setSelectionCallback=t}getIndiName(t){const r=this.indiMap.get(t);return r&&[r.firstName,r.lastName].filter(Boolean).join(" ")||"Unknown"}getIndiReference(t){return{id:t,name:this.getIndiName(t)}}getEvent(t){if(!t)return;const r=[];if(t.date){const n=t.date;n.day||n.month||n.year?r.push([n.day,n.month,n.year].filter(Boolean).join("-")):n.text&&r.push(n.text)}return{date:r.join(" ")||void 0,place:t.place}}toBasicIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const a=this.famMap.get(r.famc);a&&(a.wife&&(n=this.getIndiReference(a.wife)),a.husb&&(i=this.getIndiReference(a.husb)))}return{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i}}toFullIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const o=this.famMap.get(r.famc);o&&(o.wife&&(n=this.toBasicIndi(o.wife)),o.husb&&(i=this.toBasicIndi(o.husb)))}const a=[],s=[];return r.fams&&r.fams.forEach(o=>{const l=this.famMap.get(o);if(l){const u=l.wife===t?l.husb:l.wife;u&&s.push({spouse:this.toBasicIndi(u),marriage:this.getEvent(l.marriage)}),l.children&&l.children.forEach(c=>{const d=this.toBasicIndi(c);d&&a.push(d)})}}),{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i,children:a,spouses:s}}getTools(){return[{...jce,execute:()=>this.handleGetSelectedPerson()},{...Bce,execute:t=>this.handleSearchIndi(t)},{...Uce,execute:t=>this.handleInspectIndi(t)},{...zce,execute:t=>this.handleFocusIndi(t)},{...$ce,execute:t=>this.handleFindRelationshipPath(t)},{...Hce,execute:t=>this.handleGetAncestors(t)},{...qce,execute:t=>this.handleGetDescendants(t)}]}registerTools(){if(this.toolsRegistered||!navigator.modelContext)return;const t=navigator.modelContext;this.getTools().forEach(r=>{t.registerTool(r)}),this.toolsRegistered=!0}unregisterTools(){if(!this.toolsRegistered||!navigator.modelContext)return;const r=navigator.modelContext.unregisterTool;typeof r=="function"&&this.getTools().forEach(n=>{try{r(n.name)}catch{}}),this.toolsRegistered=!1}}function Vce(e,t,r){const[n]=Q.useState(()=>new Wce),i=Q.useRef(r);Q.useEffect(()=>{i.current=r},[r]),Q.useEffect(()=>(n.registerTools(),()=>{n.unregisterTools()}),[n]),Q.useEffect(()=>{n.setData(e||null)},[e,n]),Q.useEffect(()=>{n.setDetailIndi(t||null)},[t,n]),Q.useEffect(()=>{n.setSetSelectionCallback(a=>{i.current({id:a,generation:0})})},[n])}function Kce(e){const[t,r]=Q.useState(!1),[n,i]=Q.useState(!1),[a,s]=Q.useState(null),o=Q.useRef(null);Q.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);async function l(d){if((await window.fetch(`https://www.googleapis.com/drive/v3/files/${e.failedFileId}?alt=media`,{headers:{Authorization:`Bearer ${d}`}})).status===200){r(!1),e.onAuthSuccess(e.failedFileId);return}i(!0),Ka.showPicker(m=>{r(!1),e.onAuthSuccess(m)},()=>{r(!1)})}async function u(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Ka.requestToken(!1);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Auth error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}async function c(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Ka.requestToken(!0);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Switch account error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}return P.jsxs(Vt,{open:!0,onClose:e.onCancel,centered:!0,size:"tiny",children:[P.jsxs(Lt,{children:[P.jsx($e,{name:"google drive"}),P.jsx(Ae,{id:"google_auth.title",defaultMessage:"Google Drive Access Required"})]}),P.jsxs(Vt.Content,{children:[P.jsx("p",{children:P.jsx(Ae,{id:"google_auth.instructions",defaultMessage:"To view this file, you must authenticate and select the file from your Google Drive to grant permissions."})}),n&&P.jsxs(Bn,{warning:!0,children:[P.jsx(Bn.Header,{children:P.jsx(Ae,{id:"google_auth.picker_instructions_header",defaultMessage:"Permissions Required"})}),P.jsx("p",{children:P.jsx(Ae,{id:"google_auth.picker_instructions",defaultMessage:"The application does not have permission to read this file. Please select it in the file browser popup to grant access. If this is a shared file that doesn't show up, try adding a shortcut to your Drive first."})})]}),a&&P.jsx(Bn,{negative:!0,children:P.jsx("p",{children:a})})]}),P.jsxs(Vt.Actions,{children:[P.jsx(en,{secondary:!0,onClick:e.onCancel,children:P.jsx(Ae,{id:"google_auth.cancel",defaultMessage:"Cancel"})}),n&&P.jsx(en,{basic:!0,onClick:c,loading:t,children:P.jsx(Ae,{id:"google_auth.switch_account_button",defaultMessage:"Switch Account"})}),P.jsx(en,{primary:!0,onClick:u,loading:t,children:P.jsx(Ae,{id:"google_auth.grant_button",defaultMessage:"Grant Access & Select File"})})]})]})}function Qce(e){const r=e.gedcom.indis[e.indi].tree.find(i=>i.tag==="NAME"),n=(r==null?void 0:r.data.replaceAll("/",""))??"";return P.jsx("div",{className:"collapsed-details",children:n?P.jsx("span",{className:"vertical-name",children:n}):P.jsx("span",{className:"vertical-name",children:P.jsx(Ae,{id:"name.unknown_name",defaultMessage:"N.N."})})})}var T0,YR;function P3(){if(YR)return T0;YR=1;var e=Object.prototype.toString;return T0=function(r){var n=e.call(r),i=n==="[object Arguments]";return i||(i=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),i},T0}var A0,XR;function Yce(){if(XR)return A0;XR=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=P3(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var m=p.constructor;return m&&m.prototype===p},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return l(p);try{return l(p)}catch{return!1}};e=function(m){var y=m!==null&&typeof m=="object",g=r.call(m)==="[object Function]",b=n(m),E=y&&r.call(m)==="[object String]",w=[];if(!y&&!g&&!b)throw new TypeError("Object.keys called on a non-object");var x=s&&g;if(E&&m.length>0&&!t.call(m,0))for(var C=0;C0)for(var _=0;_3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,p=!!n&&n(a,s);if(e)e(a,s,{configurable:c===null&&p?p.configurable:!c,enumerable:l===null&&p?p.enumerable:!l,value:o,writable:u===null&&p?p.writable:!u});else if(d||!l&&!u&&!c)a[s]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},D0}var F0,a2;function ng(){if(a2)return F0;a2=1;var e=md(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},F0=t,F0}var L0,o2;function $x(){if(o2)return L0;o2=1;var e=Xce(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,i=zx(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=ng()(),o=function(u,c,d,p){if(c in u){if(p===!0){if(u[c]===d)return}else if(!a(p)||!p())return}s?i(u,c,d,!0):i(u,c,d)},l=function(u,c){var d=arguments.length>2?arguments[2]:{},p=e(c);t&&(p=n.call(p,Object.getOwnPropertySymbols(c)));for(var m=0;m"u"||!A?e:A(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":q,"%AsyncGenerator%":q,"%AsyncGeneratorFunction%":q,"%AsyncIteratorPrototype%":q,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":q,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!A?e:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!A?e:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":_,"%TypedArray%":J,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":U,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":M,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":g,"%Reflect.getPrototypeOf%":F};if(A)try{null.error}catch(Ne){var z=A(A(Ne));W["%Error.prototype%"]=z}var V=function Ne(Le){var Ve;if(Le==="%AsyncFunction%")Ve=E("async function () {}");else if(Le==="%GeneratorFunction%")Ve=E("function* () {}");else if(Le==="%AsyncGeneratorFunction%")Ve=E("async function* () {}");else if(Le==="%AsyncGenerator%"){var Oe=Ne("%AsyncGeneratorFunction%");Oe&&(Ve=Oe.prototype)}else if(Le==="%AsyncIteratorPrototype%"){var De=Ne("%AsyncGenerator%");De&&A&&(Ve=A(De.prototype))}return W[Le]=Ve,Ve},Y={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X=vd(),G=Ps(),N=X.call(D,Array.prototype.concat),$=X.call(U,Array.prototype.splice),j=X.call(D,String.prototype.replace),L=X.call(D,String.prototype.slice),ie=X.call(D,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,Se=function(Le){var Ve=L(Le,0,1),Oe=L(Le,-1);if(Ve==="%"&&Oe!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Oe==="%"&&Ve!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var De=[];return j(Le,de,function(We,rt,st,lt){De[De.length]=st?j(lt,pe,"$1"):rt||We}),De},Re=function(Le,Ve){var Oe=Le,De;if(G(Y,Oe)&&(De=Y[Oe],Oe="%"+De[0]+"%"),G(W,Oe)){var We=W[Oe];if(We===q&&(We=V(Oe)),typeof We>"u"&&!Ve)throw new o("intrinsic "+Le+" exists, but is not available. Please file an issue!");return{alias:De,name:Oe,value:We}}throw new s("intrinsic "+Le+" does not exist!")};return h_=function(Le,Ve){if(typeof Le!="string"||Le.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ve!="boolean")throw new o('"allowMissing" argument must be a boolean');if(ie(/^%?[^%]*%?$/,Le)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Oe=Se(Le),De=Oe.length>0?Oe[0]:"",We=Re("%"+De+"%",Ve),rt=We.name,st=We.value,lt=!1,Dt=We.alias;Dt&&(De=Dt[0],$(Oe,N([0,1],Dt)));for(var Qt=1,mt=!0;Qt=Oe.length){var mn=w(st,ft);mt=!!mn,mt&&"get"in mn&&!("originalValue"in mn.get)?st=mn.get:st=st[ft]}else mt=G(st,ft),st=st[ft];mt&&!lt&&(W[rt]=st)}}return st},h_}var p_,F2;function dfe(){if(F2)return p_;F2=1;var e=ni(),t=zx(),r=ng()(),n=Rs(),i=wt(),a=e("%Math.floor%");return p_=function(o,l){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&n){var p=n(o,"length");p&&!p.configurable&&(c=!1),p&&!p.writable&&(d=!1)}return(c||d||!u)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},p_}var m_,L2;function hfe(){if(L2)return m_;L2=1;var e=vd(),t=Gx(),r=j3();return m_=function(){return r(e,t,arguments)},m_}var j2;function B3(){return j2||(j2=1,function(e){var t=dfe(),r=md(),n=ig(),i=hfe();e.exports=function(s){var o=n(arguments),l=1+s.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(j0)),j0.exports}var g_,B2;function U3(){if(B2)return g_;B2=1;var e=gd();return g_=function(r){return(typeof r=="number"||typeof r=="bigint")&&!e(r)&&r!==1/0&&r!==-1/0},g_}var v_,U2;function z3(){if(U2)return v_;U2=1;var e=N3(),t=Hx(),r=gd(),n=U3();return v_=function(a){if(typeof a!="number"||r(a)||!n(a))return!1;var s=e(a);return t(s)===s},v_}var y_,z2;function Oi(){return z2||(z2=1,y_=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}),y_}var __,$2;function pfe(){return $2||($2=1,__=4294967295),__}var w_,H2;function mfe(){return H2||(H2=1,w_=typeof Reflect<"u"&&Reflect.setPrototypeOf||null),w_}var b_,q2;function gfe(){if(q2)return b_;q2=1;var e=rg();return b_=e.setPrototypeOf||null,b_}var x_,G2;function vfe(){if(G2)return x_;G2=1;var e=ig(),t=Rs(),r=wt(),n={};try{n.__proto__=null}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!("toString"in n),a=t&&t(Object.prototype,"__proto__");return x_=i&&(!!a&&typeof a.set=="function"&&e([a.set])||function(o,l){if(o==null)throw new r("set Object.prototype.__proto__ called on null or undefined");return o.__proto__=l,l}),x_}var E_,W2;function yfe(){if(W2)return E_;W2=1;var e=mfe(),t=gfe(),r=vfe(),n=wt();return E_=e?function(a,s){if(e(a,s))return a;throw new n("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:t||(r?function(a,s){return r(a,s),a}:null),E_}var S_,V2;function _fe(){if(V2)return S_;V2=1;var e=ni(),t=e("%Array.prototype%"),r=O3(),n=tg(),i=wt(),a=z3(),s=pfe(),o=yfe();return S_=function(u){if(!a(u)||u<0)throw new i("Assertion failed: `length` must be an integer Number >= 0");if(u>s)throw new r("length is greater than (2**32 - 1)");var c=arguments.length>1?arguments[1]:t,d=[];if(c!==t){if(!o)throw new n("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");o(d,c)}return u!==0&&(d.length=u),d},S_}const wfe={},bfe=Object.freeze(Object.defineProperty({__proto__:null,default:wfe},Symbol.toStringTag,{value:"Module"})),xfe=zf(bfe);var C_,K2;function Efe(){if(K2)return C_;K2=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&a&&typeof a.get=="function"?a.get:null,o=i&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,d=c?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,m=p?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,b=Function.prototype.toString,E=String.prototype.match,w=String.prototype.slice,x=String.prototype.replace,C=String.prototype.toUpperCase,_=String.prototype.toLowerCase,k=RegExp.prototype.test,A=Array.prototype.concat,M=Array.prototype.join,F=Array.prototype.slice,U=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,Y=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(oe){return oe.__proto__}:null);function X(oe,le){if(oe===1/0||oe===-1/0||oe!==oe||oe&&oe>-1e3&&oe<1e3||k.call(/e/,le))return le;var Pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof oe=="number"){var vt=oe<0?-U(-oe):U(oe);if(vt!==oe){var bt=String(vt),Ye=w.call(le,bt.length+1);return x.call(bt,Pe,"$&_")+"."+x.call(x.call(Ye,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(le,Pe,"$&_")}var G=xfe,N=G.custom,$=We(N)?N:null,j={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};C_=function oe(le,Pe,vt,bt){var Ye=Pe||{};if(lt(Ye,"quoteStyle")&&!lt(j,Ye.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(Ye,"maxStringLength")&&(typeof Ye.maxStringLength=="number"?Ye.maxStringLength<0&&Ye.maxStringLength!==1/0:Ye.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Pn=lt(Ye,"customInspect")?Ye.customInspect:!0;if(typeof Pn!="boolean"&&Pn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(Ye,"indent")&&Ye.indent!==null&&Ye.indent!==" "&&!(parseInt(Ye.indent,10)===Ye.indent&&Ye.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(Ye,"numericSeparator")&&typeof Ye.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ri=Ye.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return B(le,Ye);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var wn=String(le);return ri?X(le,wn):wn}if(typeof le=="bigint"){var Lr=String(le)+"n";return ri?X(le,Lr):Lr}var Ns=typeof Ye.depth>"u"?5:Ye.depth;if(typeof vt>"u"&&(vt=0),vt>=Ns&&Ns>0&&typeof le=="object")return Se(le)?"[Array]":"[Object]";var Ni=me(Ye,vt);if(typeof bt>"u")bt=[];else if(mt(bt,le)>=0)return"[Circular]";function On(Mi,Co,bd){if(Co&&(bt=F.call(bt),bt.push(Co)),bd){var Pu={depth:Ye.depth};return lt(Ye,"quoteStyle")&&(Pu.quoteStyle=Ye.quoteStyle),oe(Mi,Pu,vt+1,bt)}return oe(Mi,Ye,vt+1,bt)}if(typeof le=="function"&&!Ne(le)){var ku=Qt(le),ma=at(le,On);return"[Function"+(ku?": "+ku:" (anonymous)")+"]"+(ma.length>0?" { "+M.call(ma,", ")+" }":"")}if(We(le)){var Ms=W?x.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(le);return typeof le=="object"&&!W?O(Ms):Ms}if(ge(le)){for(var jr="<"+_.call(String(le.nodeName)),Tu=le.attributes||[],ii=0;ii",jr}if(Se(le)){if(le.length===0)return"[]";var ga=at(le,On);return Ni&&!fe(ga)?"["+Ge(ga,Ni)+"]":"[ "+M.call(ga,", ")+" ]"}if(Le(le)){var va=at(le,On);return!("cause"in Error.prototype)&&"cause"in le&&!V.call(le,"cause")?"{ ["+String(le)+"] "+M.call(A.call("[cause]: "+On(le.cause),va),", ")+" }":va.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+M.call(va,", ")+" }"}if(typeof le=="object"&&Pn){if($&&typeof le[$]=="function"&&G)return G(le,{depth:Ns-vt});if(Pn!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(ft(le)){var Ds=[];return n&&n.call(le,function(Mi,Co){Ds.push(On(Co,le,!0)+" => "+On(Mi,le))}),re("Map",r.call(le),Ds,Ni)}if(mn(le)){var yd=[];return o&&o.call(le,function(Mi){yd.push(On(Mi,le))}),re("Set",s.call(le),yd,Ni)}if(gt(le))return K("WeakMap");if(ln(le))return K("WeakSet");if(tn(le))return K("WeakRef");if(Oe(le))return O(On(Number(le)));if(rt(le))return O(On(D.call(le)));if(De(le))return O(y.call(le));if(Ve(le))return O(On(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof gi<"u"&&le===gi)return"{ [object globalThis] }";if(!Re(le)&&!Ne(le)){var Au=at(le,On),_d=Y?Y(le)===Object.prototype:le instanceof Object||le.constructor===Object,Br=le instanceof Object?"":"null prototype",Iu=!_d&&z&&Object(le)===le&&z in le?w.call(Dt(le),8,-1):Br?"Object":"",wd=_d||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",Ru=wd+(Iu||Br?"["+M.call(A.call([],Iu||[],Br||[]),": ")+"] ":"");return Au.length===0?Ru+"{}":Ni?Ru+"{"+Ge(Au,Ni)+"}":Ru+"{ "+M.call(Au,", ")+" }"}return String(le)};function ie(oe,le,Pe){var vt=Pe.quoteStyle||le,bt=j[vt];return bt+oe+bt}function de(oe){return x.call(String(oe),/"/g,""")}function pe(oe){return!z||!(typeof oe=="object"&&(z in oe||typeof oe[z]<"u"))}function Se(oe){return Dt(oe)==="[object Array]"&&pe(oe)}function Re(oe){return Dt(oe)==="[object Date]"&&pe(oe)}function Ne(oe){return Dt(oe)==="[object RegExp]"&&pe(oe)}function Le(oe){return Dt(oe)==="[object Error]"&&pe(oe)}function Ve(oe){return Dt(oe)==="[object String]"&&pe(oe)}function Oe(oe){return Dt(oe)==="[object Number]"&&pe(oe)}function De(oe){return Dt(oe)==="[object Boolean]"&&pe(oe)}function We(oe){if(W)return oe&&typeof oe=="object"&&oe instanceof Symbol;if(typeof oe=="symbol")return!0;if(!oe||typeof oe!="object"||!J)return!1;try{return J.call(oe),!0}catch{}return!1}function rt(oe){if(!oe||typeof oe!="object"||!D)return!1;try{return D.call(oe),!0}catch{}return!1}var st=Object.prototype.hasOwnProperty||function(oe){return oe in this};function lt(oe,le){return st.call(oe,le)}function Dt(oe){return g.call(oe)}function Qt(oe){if(oe.name)return oe.name;var le=E.call(b.call(oe),/^function\s*([\w$]+)/);return le?le[1]:null}function mt(oe,le){if(oe.indexOf)return oe.indexOf(le);for(var Pe=0,vt=oe.length;Pele.maxStringLength){var Pe=oe.length-le.maxStringLength,vt="... "+Pe+" more character"+(Pe>1?"s":"");return B(w.call(oe,0,le.maxStringLength),le)+vt}var bt=L[le.quoteStyle||"single"];bt.lastIndex=0;var Ye=x.call(x.call(oe,bt,"\\$1"),/[\x00-\x1f]/g,I);return ie(Ye,"single",le)}function I(oe){var le=oe.charCodeAt(0),Pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return Pe?"\\"+Pe:"\\x"+(le<16?"0":"")+C.call(le.toString(16))}function O(oe){return"Object("+oe+")"}function K(oe){return oe+" { ? }"}function re(oe,le,Pe,vt){var bt=vt?Ge(Pe,vt):M.call(Pe,", ");return oe+" ("+le+") {"+bt+"}"}function fe(oe){for(var le=0;le=0)return!1;return!0}function me(oe,le){var Pe;if(oe.indent===" ")Pe=" ";else if(typeof oe.indent=="number"&&oe.indent>0)Pe=M.call(Array(oe.indent+1)," ");else return null;return{base:Pe,prev:M.call(Array(le+1),Pe)}}function Ge(oe,le){if(oe.length===0)return"";var Pe=` -`+le.prev+le.base;return Pe+M.call(oe,","+Pe)+` -`+le.prev}function at(oe,le){var Pe=Se(oe),vt=[];if(Pe){vt.length=oe.length;for(var bt=0;bt-1?t([s]):s},A_}var I_,J2;function $3(){if(J2)return I_;J2=1;var e=ni(),t=e("%Array%"),r=!t.isArray&&pa()("Object.prototype.toString");return I_=t.isArray||function(i){return r(i)==="[object Array]"},I_}var R_,Z2;function Wx(){return Z2||(Z2=1,R_=$3()),R_}var ap={exports:{}},P_,eP;function Sfe(){return eP||(eP=1,P_=ni()),P_}var O_,tP;function So(){if(tP)return O_;tP=1;var e=wt(),t=Ps(),r={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};return O_=function(i){if(!i||typeof i!="object")return!1;for(var a in i)if(t(i,a)&&!r[a])return!1;var s=t(i,"[[Value]]")||t(i,"[[Writable]]"),o=t(i,"[[Get]]")||t(i,"[[Set]]");if(s&&o)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},O_}var N_,nP;function H3(){if(nP)return N_;nP=1;var e=ng(),t=md(),r=e.hasArrayLengthDefineBug(),n=r&&$3(),i=pa(),a=i("Object.prototype.propertyIsEnumerable");return N_=function(o,l,u,c,d,p){if(!t){if(!o(p)||!p["[[Configurable]]"]||!p["[[Writable]]"]||d in c&&a(c,d)!==!!p["[[Enumerable]]"])return!1;var m=p["[[Value]]"];return c[d]=m,l(c[d],m)}return r&&d==="length"&&"[[Value]]"in p&&n(c)&&c.length!==p["[[Value]]"]?(c.length=p["[[Value]]"],c.length===p["[[Value]]"]):(t(c,d,u(p)),!0)},N_}var M_,rP;function Cfe(){return rP||(rP=1,M_=function(t){if(typeof t>"u")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}),M_}var D_,iP;function q3(){if(iP)return D_;iP=1;var e=wt(),t=So(),r=Cfe();return D_=function(i){if(typeof i<"u"&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return r(i)},D_}var F_,aP;function Vx(){if(aP)return F_;aP=1;var e=wt(),t=Ps(),r=So();return F_=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))},F_}var L_,oP;function Kx(){if(oP)return L_;oP=1;var e=gd();return L_=function(r,n){return r===n?r===0?1/r===1/n:!0:e(r)&&e(n)},L_}var j_,sP;function G3(){if(sP)return j_;sP=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(w){w!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(x){try{var C=e.call(x);return i.test(C)}catch{return!1}},s=function(x){try{return a(x)?!1:(e.call(x),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",u="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",p="[object HTML document.all class]",m="[object HTMLCollection]",y=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var E=document.all;o.call(E)===o.call(document.all)&&(b=function(x){if((g||!x)&&(typeof x>"u"||typeof x=="object"))try{var C=o.call(x);return(C===d||C===p||C===m||C===l)&&x("")==null}catch{}return!1})}return j_=t?function(x){if(b(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;try{t(x,null,r)}catch(C){if(C!==n)return!1}return!a(x)&&s(x)}:function(x){if(b(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;if(y)return s(x);if(a(x))return!1;var C=o.call(x);return C!==u&&C!==c&&!/^\[object HTML/.test(C)?!1:s(x)},j_}var B_,lP;function W3(){return lP||(lP=1,B_=G3()),B_}var U_,uP;function kfe(){return uP||(uP=1,U_=function(t){return!!t}),U_}var z_,cP;function V3(){if(cP)return z_;cP=1;var e=Ps(),t=wt(),r=Oi(),n=W3(),i=kfe();return z_=function(s){if(!r(s))throw new t("ToPropertyDescriptor requires an object");var o={};if(e(s,"enumerable")&&(o["[[Enumerable]]"]=i(s.enumerable)),e(s,"configurable")&&(o["[[Configurable]]"]=i(s.configurable)),e(s,"value")&&(o["[[Value]]"]=s.value),e(s,"writable")&&(o["[[Writable]]"]=i(s.writable)),e(s,"get")){var l=s.get;if(typeof l<"u"&&!n(l))throw new t("getter must be a function");o["[[Get]]"]=l}if(e(s,"set")){var u=s.set;if(typeof u<"u"&&!n(u))throw new t("setter must be a function");o["[[Set]]"]=u}if((e(o,"[[Get]]")||e(o,"[[Set]]"))&&(e(o,"[[Value]]")||e(o,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return o},z_}var $_,fP;function Tfe(){if(fP)return $_;fP=1;var e=wt(),t=Oi(),r=So(),n=H3(),i=q3(),a=Vx(),s=Os(),o=Kx(),l=V3();return $_=function(c,d,p){if(!t(c))throw new e("Assertion failed: Type(O) is not Object");if(!s(d))throw new e("Assertion failed: P is not a Property Key");var m=r(p)?p:l(p);if(!r(m))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,o,i,c,d,m)},$_}var dP;function Afe(){if(dP)return ap.exports;dP=1;var e=Sfe(),t=e("%Reflect.construct%",!0),r=Tfe();try{r({},"",{"[[Get]]":function(){}})}catch{r=null}if(r&&t){var n={},i={};r(i,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),ap.exports=function(s){try{t(s,i)}catch(o){return o===n}}}else ap.exports=function(s){return typeof s=="function"&&!!s.prototype};return ap.exports}var H_,hP;function Ife(){if(hP)return H_;hP=1;var e=ni(),t=e("%Symbol.species%",!0),r=wt(),n=z3(),i=Oi(),a=_fe(),s=ag(),o=Wx(),l=Afe();return H_=function(c,d){if(!n(d)||d<0)throw new r("Assertion failed: length must be an integer >= 0");var p=o(c);if(!p)return a(d);var m=s(c,"constructor");if(t&&i(m)&&(m=s(m,t),m===null&&(m=void 0)),typeof m>"u")return a(d);if(!l(m))throw new r("C must be a constructor");return new m(d)},H_}var q_,pP;function K3(){return pP||(pP=1,q_=Number.MAX_SAFE_INTEGER||9007199254740991),q_}var G_,mP;function Rfe(){if(mP)return G_;mP=1;var e=ni(),t=pa(),r=wt(),n=Wx(),i=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return G_=function(s,o){var l=arguments.length>2?arguments[2]:[];if(!n(l))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(s,o,l)},G_}var W_,gP;function Qx(){if(gP)return W_;gP=1;var e=wt(),t=Ps(),r=So();return W_=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))},W_}var V_,vP;function Q3(){return vP||(vP=1,V_=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),V_}var K_,yP;function Pfe(){if(yP)return K_;yP=1;var e=ni(),t=e("%Object.preventExtensions%",!0),r=e("%Object.isExtensible%",!0),n=Q3();return K_=t?function(a){return!n(a)&&r(a)}:function(a){return!n(a)},K_}var Q_,_P;function Ofe(){if(_P)return Q_;_P=1;var e=So();return Q_=function(r,n){return e(n)&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(r.IsAccessorDescriptor(n)||r.IsDataDescriptor(n))},Q_}var Y_,wP;function Nfe(){if(wP)return Y_;wP=1;var e=wt(),t=Qx(),r=Vx(),n=So();return Y_=function(a){if(typeof a>"u")return!1;if(!n(a))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(a)&&!r(a)},Y_}var X_,bP;function Mfe(){if(bP)return X_;bP=1;var e=wt(),t=Oi(),r=H3(),n=Ofe(),i=So(),a=q3(),s=Qx(),o=Vx(),l=Nfe(),u=Os(),c=Kx();return X_=function(p,m,y,g,b){if(typeof p<"u"&&!t(p))throw new e("Assertion failed: O must be undefined or an Object");if(!u(m))throw new e("Assertion failed: P must be a Property Key");if(typeof y!="boolean")throw new e("Assertion failed: extensible must be a Boolean");if(!i(g))throw new e("Assertion failed: Desc must be a Property Descriptor");if(typeof b<"u"&&!i(b))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof b>"u")return y?typeof p>"u"?!0:s(g)?r(o,c,a,p,m,g):r(o,c,a,p,m,{"[[Configurable]]":!!g["[[Configurable]]"],"[[Enumerable]]":!!g["[[Enumerable]]"],"[[Value]]":g["[[Value]]"],"[[Writable]]":!!g["[[Writable]]"]}):!1;if(!n({IsAccessorDescriptor:s,IsDataDescriptor:o},b))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!b["[[Configurable]]"]){if("[[Configurable]]"in g&&g["[[Configurable]]"]||"[[Enumerable]]"in g&&!c(g["[[Enumerable]]"],b["[[Enumerable]]"])||!l(g)&&!c(s(g),s(b)))return!1;if(s(b)){if("[[Get]]"in g&&!c(g["[[Get]]"],b["[[Get]]"])||"[[Set]]"in g&&!c(g["[[Set]]"],b["[[Set]]"]))return!1}else if(!b["[[Writable]]"]&&("[[Writable]]"in g&&g["[[Writable]]"]||"[[Value]]"in g&&!c(g["[[Value]]"],b["[[Value]]"])))return!1}if(typeof p<"u"){var E,w;return o(b)&&s(g)?(E=("[[Configurable]]"in g?g:b)["[[Configurable]]"],w=("[[Enumerable]]"in g?g:b)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!w,"[[Get]]":("[[Get]]"in g?g:b)["[[Get]]"],"[[Set]]":("[[Set]]"in g?g:b)["[[Set]]"]})):s(b)&&o(g)?(E=("[[Configurable]]"in g?g:b)["[[Configurable]]"],w=("[[Enumerable]]"in g?g:b)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!w,"[[Value]]":("[[Value]]"in g?g:b)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in g?g:b)["[[Writable]]"]})):r(o,c,a,p,m,g)}return!0},X_}var J_,xP;function Dfe(){if(xP)return J_;xP=1;var e=Rs(),t=tg(),r=wt(),n=Oi(),i=So(),a=Qx(),s=Pfe(),o=Os(),l=V3(),u=Kx(),c=Mfe();return J_=function(p,m,y){if(!n(p))throw new r("Assertion failed: O must be an Object");if(!o(m))throw new r("Assertion failed: P must be a Property Key");if(!i(y))throw new r("Assertion failed: Desc must be a Property Descriptor");if(!e){if(a(y))throw new t("This environment does not support accessor property descriptors.");var g=!(m in p)&&y["[[Writable]]"]&&y["[[Enumerable]]"]&&y["[[Configurable]]"]&&"[[Value]]"in y,b=m in p&&(!("[[Configurable]]"in y)||y["[[Configurable]]"])&&(!("[[Enumerable]]"in y)||y["[[Enumerable]]"])&&(!("[[Writable]]"in y)||y["[[Writable]]"])&&"[[Value]]"in y;if(g||b)return p[m]=y["[[Value]]"],u(p[m],y["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var E=e(p,m),w=E&&l(E),x=s(p);return c(p,m,x,y,w)},J_}var Z_,EP;function Ffe(){if(EP)return Z_;EP=1;var e=wt(),t=Oi(),r=Os(),n=Dfe();return Z_=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!r(s))throw new e("Assertion failed: P is not a Property Key");var l={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":o,"[[Writable]]":!0};return n(a,s,l)},Z_}var ew,SP;function Lfe(){if(SP)return ew;SP=1;var e=wt(),t=Oi(),r=Ffe(),n=Os();return ew=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!n(s))throw new e("Assertion failed: P is not a Property Key");var l=r(a,s,o);if(!l)throw new e("unable to create data property")},ew}var tw,CP;function jfe(){if(CP)return tw;CP=1;var e=wt(),t=Oi(),r=Os();return tw=function(i,a){if(!t(i))throw new e("Assertion failed: `O` must be an Object");if(!r(a))throw new e("Assertion failed: `P` must be a Property Key");return a in i},tw}var nw,kP;function Bfe(){return kP||(kP=1,nw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),nw}var rw,TP;function Y3(){if(TP)return rw;TP=1;var e=M3();return rw=function(){return e()&&!!Symbol.toStringTag},rw}var iw,AP;function Ufe(){if(AP)return iw;AP=1;var e=pa(),t=e("Date.prototype.getDay"),r=function(o){try{return t(o),!0}catch{return!1}},n=e("Object.prototype.toString"),i="[object Date]",a=Y3()();return iw=function(o){return typeof o!="object"||o===null?!1:a?r(o):n(o)===i},iw}var op={exports:{}},aw,IP;function zfe(){if(IP)return aw;IP=1;var e=pa(),t=Y3()(),r=Ps(),n=Rs(),i;if(t){var a=e("RegExp.prototype.exec"),s={},o=function(){throw s},l={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=o),i=function(p){if(!p||typeof p!="object")return!1;var m=n(p,"lastIndex"),y=m&&r(m,"value");if(!y)return!1;try{a(p,l)}catch(g){return g===s}}}else{var u=e("Object.prototype.toString"),c="[object RegExp]";i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:u(p)===c}}return aw=i,aw}var ow,RP;function X3(){if(RP)return ow;RP=1;var e=pa(),t=zfe(),r=e("RegExp.prototype.exec"),n=wt();return ow=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(o){return r(a,o)!==null}},ow}var PP;function $fe(){if(PP)return op.exports;PP=1;var e=pa(),t=e("Object.prototype.toString"),r=D3()(),n=X3();if(r){var i=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(i(l))};op.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else op.exports=function(l){return!1};return op.exports}var sw,OP;function Hfe(){if(OP)return sw;OP=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=Bfe(),r=G3(),n=Ufe(),i=$fe(),a=function(l,u){if(typeof l>"u"||l===null)throw new TypeError("Cannot call method on "+l);if(typeof u!="string"||u!=="number"&&u!=="string")throw new TypeError('hint must be "string" or "number"');var c=u==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,m;for(m=0;m1&&(arguments[1]===String?u="string":arguments[1]===Number&&(u="number"));var c;if(e&&(Symbol.toPrimitive?c=s(l,Symbol.toPrimitive):i(l)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(l,u);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return u==="default"&&(n(l)||i(l))&&(u="string"),a(l,u==="default"?"number":u)},sw}var lw,NP;function qfe(){if(NP)return lw;NP=1;var e=Hfe();return lw=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},lw}var uw,MP;function Yx(){if(MP)return uw;MP=1;var e=wt();return uw=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},uw}var cw,DP;function J3(){if(DP)return cw;DP=1;var e=ni(),t=e("%String%"),r=wt();return cw=function(i){if(typeof i=="symbol")throw new r("Cannot convert a Symbol value to a string");return t(i)},cw}var fw,FP;function Z3(){if(FP)return fw;FP=1;var e=Yx(),t=J3(),r=pa(),n=r("String.prototype.replace"),i=/^\s$/.test("᠎"),a=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return fw=function(){var l=t(e(this));return n(n(l,a,""),s,"")},fw}var dw,LP;function ej(){if(LP)return dw;LP=1;var e=Z3(),t="​",r="᠎";return dw=function(){return String.prototype.trim&&t.trim()===t&&r.trim()===r&&("_"+r).trim()==="_"+r&&(r+"_").trim()===r+"_"?String.prototype.trim:e},dw}var hw,jP;function Gfe(){if(jP)return hw;jP=1;var e=ng()(),t=zx(),r=ej();return hw=function(){var i=r();return String.prototype.trim!==i&&(e?t(String.prototype,"trim",i,!0):t(String.prototype,"trim",i)),i},hw}var pw,BP;function Wfe(){if(BP)return pw;BP=1;var e=B3(),t=$x(),r=Yx(),n=Z3(),i=ej(),a=Gfe(),s=e(i()),o=function(u){return r(u),s(u)};return t(o,{getPolyfill:i,implementation:n,shim:a}),pw=o,pw}var mw,UP;function Vfe(){if(UP)return mw;UP=1;var e=ni(),t=e("%RegExp%"),r=wt(),n=e("%parseInt%"),i=pa(),a=X3(),s=i("String.prototype.slice"),o=a(/^0b[01]+$/i),l=a(/^0o[0-7]+$/i),u=a(/^[-+]0x[0-9a-f]+$/i),c=["…","​","￾"].join(""),d=new t("["+c+"]","g"),p=a(d),m=Wfe();return mw=function y(g){if(typeof g!="string")throw new r("Assertion failed: `argument` is not a String");if(o(g))return+n(s(g,2),2);if(l(g))return+n(s(g,2),8);if(p(g)||u(g))return NaN;var b=m(g);return b!==g?y(b):+g},mw}var gw,zP;function Kfe(){if(zP)return gw;zP=1;var e=ni(),t=wt(),r=e("%Number%"),n=Q3(),i=qfe(),a=Vfe();return gw=function(o){var l=n(o)?o:i(o,r);if(typeof l=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof l=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof l=="string"?a(l):+l},gw}var vw,$P;function Qfe(){if($P)return vw;$P=1;var e=Hx();return vw=function(r){return typeof r=="bigint"?r:e(r)},vw}var yw,HP;function Yfe(){if(HP)return yw;HP=1;var e=Qfe(),t=wt();return yw=function(n){if(typeof n!="number"&&typeof n!="bigint")throw new t("argument must be a Number or a BigInt");var i=n<0?-e(-n):e(n);return i===0?0:i},yw}var _w,qP;function Xfe(){if(qP)return _w;qP=1;var e=Kfe(),t=Yfe(),r=gd(),n=U3();return _w=function(a){var s=e(a);return r(s)||s===0?0:n(s)?t(s):s},_w}var ww,GP;function tj(){if(GP)return ww;GP=1;var e=K3(),t=Xfe();return ww=function(n){var i=t(n);return i<=0?0:i>e?e:i},ww}var bw,WP;function Jfe(){if(WP)return bw;WP=1;var e=wt(),t=Oi(),r=ag(),n=tj();return bw=function(a){if(!t(a))throw new e("Assertion failed: `obj` must be an Object");return n(r(a,"length"))},bw}var xw,VP;function Zfe(){if(VP)return xw;VP=1;var e=wt(),t=K3(),r=Rfe(),n=Lfe(),i=ag(),a=jfe(),s=Wx(),o=Jfe(),l=J3();return xw=function u(c,d,p,m,y){var g;arguments.length>5&&(g=arguments[5]);for(var b=m,E=0;E0&&(_=s(C)),_){var k=o(C);b=u(c,C,k,b,y-1)}else{if(b>=t)throw new e("index too large");n(c,l(b),C),b+=1}}E+=1}return b},xw}var Ew,KP;function ede(){if(KP)return Ew;KP=1;var e=rg(),t=Yx();return Ew=function(n){return t(n),e(n)},Ew}var Sw,QP;function tde(){return QP||(QP=1,Sw=ede()),Sw}var Cw,YP;function nj(){if(YP)return Cw;YP=1;var e=Ife(),t=Zfe(),r=ag(),n=W3(),i=tj(),a=tde();return Cw=function(o){var l=a(this),u=i(r(l,"length"));if(!n(o))throw new TypeError("mapperFunction must be a function");var c;arguments.length>1&&(c=arguments[1]);var d=e(l,0);return t(d,l,u,0,1,o,c),d},Cw}var kw,XP;function rj(){if(XP)return kw;XP=1;var e=nj();return kw=function(){return Array.prototype.flatMap||e},kw}var Tw,JP;function nde(){if(JP)return Tw;JP=1;var e=Ps(),t=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",r=t&&Array.prototype[Symbol.unscopables],n=TypeError;return Tw=function(a){if(typeof a!="string"||!a)throw new n("method must be a non-empty string");if(!e(Array.prototype,a))throw new n("method must be on Array.prototype");t&&(r[a]=!0)},Tw}var Aw,ZP;function rde(){if(ZP)return Aw;ZP=1;var e=$x(),t=nde(),r=rj();return Aw=function(){var i=r();return e(Array.prototype,{flatMap:i},{flatMap:function(){return Array.prototype.flatMap!==i}}),t("flatMap"),i},Aw}var Iw,eO;function ide(){if(eO)return Iw;eO=1;var e=$x(),t=B3(),r=nj(),n=rj(),i=n(),a=rde(),s=t(i);return e(s,{getPolyfill:n,implementation:r,shim:a}),Iw=s,Iw}var ade=ide();const og=In(ade);function ij({files:e}){return e!=null&&e.length?P.jsx(tt,{children:e.map((t,r)=>P.jsxs(tt.Item,{children:[P.jsx(tt.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),P.jsxs(tt.Content,{children:[P.jsx(tt.Header,{children:P.jsx("a",{target:"_blank",href:t.url,rel:"noopener noreferrer",children:t.filename||t.url.split("/").pop()||t.url})}),P.jsx(tt.Description,{children:t.titl&&P.jsx("div",{children:t.titl})})]})]},r))}):null}function ode(e,t,r){const n=Uf(e,t),i=e.qualifier||t.qualifier,a=i&&rD(i,r)+" ";return r.formatMessage({id:"age.exact",defaultMessage:"{qualifier}{age, plural, =0 {Less than 1 year} one {1 year} other {# years}}"},{age:n,qualifier:a})}function sp(e,t,r){const n=Uf(e,t);return r.formatMessage({id:"age.more",defaultMessage:"More than {age, plural, =0 {0 years} one {1 year} other {# years}}"},{age:n})}function lp(e,t,r){const n=Uf(e,t);return r.formatMessage({id:"age.less",defaultMessage:"Less than {age, plural, =0 {1 year} one {1 year} other {# years}}"},{age:n})}function Rw(e,t,r,n,i){const a=Uf(t,r),s=Uf(e,n);return i.formatMessage({id:"age.between",defaultMessage:"Between {ageFrom} and {ageTo, plural, =0 {0 years} one {1 year} other {# years}}"},{ageFrom:a,ageTo:s})}function sde(e,t){return e&&t?!m1(e)||!m1(t)||nd(e,t)>0?!1:e.dateRange&&t.dateRange&&g1(e==null?void 0:e.dateRange)&&g1(t==null?void 0:t.dateRange)?!Z9(e.dateRange,t.dateRange):!0:!1}function Uf(e,t){const r=v1(e),n=v1(t),i=r.getUTCFullYear();let a=n.getUTCFullYear()-i,s=n.getUTCMonth()-r.getUTCMonth();return s<0&&(a--,s+=12),n.getUTCDate()-r.getUTCDate()<0&&s<=0&&a--,Math.abs(a)}function lde(e,t,r){var n,i,a,s,o,l,u,c,d,p,m,y,g,b,E,w,x,C,_,k,A,M,F,U,D,q,J,W,z,V,Y,X,G,N;if(e&&t){const $=dn.getDate(e),j=dn.getDate(t);if(sde($,j)){if($!=null&&$.date){if(j!=null&&j.date)return ode($.date,j.date,r);if((n=j==null?void 0:j.dateRange)!=null&&n.from&&((i=j.dateRange)!=null&&i.to))return Rw($.date,$.date,(a=j==null?void 0:j.dateRange)==null?void 0:a.from,(s=j==null?void 0:j.dateRange)==null?void 0:s.to,r);if((o=j==null?void 0:j.dateRange)!=null&&o.from)return sp($.date,(l=j.dateRange)==null?void 0:l.from,r);if((u=j==null?void 0:j.dateRange)!=null&&u.to)return lp($.date,(c=j.dateRange)==null?void 0:c.to,r)}if((d=$==null?void 0:$.dateRange)!=null&&d.from&&((p=$==null?void 0:$.dateRange)!=null&&p.to)){if(j!=null&&j.date)return Rw((m=$==null?void 0:$.dateRange)==null?void 0:m.from,(y=$==null?void 0:$.dateRange)==null?void 0:y.to,j==null?void 0:j.date,j==null?void 0:j.date,r);if((g=j==null?void 0:j.dateRange)!=null&&g.from&&((b=j.dateRange)!=null&&b.to))return Rw((E=$==null?void 0:$.dateRange)==null?void 0:E.from,(w=$==null?void 0:$.dateRange)==null?void 0:w.to,(x=j==null?void 0:j.dateRange)==null?void 0:x.from,(C=j==null?void 0:j.dateRange)==null?void 0:C.to,r);if((_=j==null?void 0:j.dateRange)!=null&&_.from)return sp((k=$.dateRange)==null?void 0:k.to,(A=j.dateRange)==null?void 0:A.from,r);if((M=j==null?void 0:j.dateRange)!=null&&M.to)return lp((F=$.dateRange)==null?void 0:F.from,(U=j.dateRange)==null?void 0:U.to,r)}if((D=$==null?void 0:$.dateRange)!=null&&D.from){if(j!=null&&j.date)return lp((q=$.dateRange)==null?void 0:q.from,j.date,r);if((J=j==null?void 0:j.dateRange)!=null&&J.to)return lp((W=$.dateRange)==null?void 0:W.from,(z=j.dateRange)==null?void 0:z.to,r)}if((V=$==null?void 0:$.dateRange)!=null&&V.to){if(j!=null&&j.date)return sp((Y=$==null?void 0:$.dateRange)==null?void 0:Y.to,j.date,r);if((X=j==null?void 0:j.dateRange)!=null&&X.from)return sp((G=$==null?void 0:$.dateRange)==null?void 0:G.to,(N=j.dateRange)==null?void 0:N.from,r)}}}}var up={},cp={},fp={},tO;function ude(){if(tO)return fp;tO=1,Object.defineProperty(fp,"__esModule",{value:!0});var e=go(),t=r(e);function r(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a]);return i.default=n,i}return fp.default=function(n,i,a){return t.createElement("a",{href:n,key:a},i)},fp}var dp={},nO;function cde(){return nO||(nO=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=function(e){return e}),dp}var hp={},Pw,rO;function fde(){return rO||(rO=1,Pw=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Pw}var Ow,iO;function dde(){return iO||(iO=1,Ow=/[\0-\x1F\x7F-\x9F]/),Ow}var Nw,aO;function hde(){return aO||(aO=1,Nw=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Nw}var Mw,oO;function pde(){return oO||(oO=1,Mw=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Mw}var Dw,sO;function mde(){return sO||(sO=1,Dw=function(e){var t={};t.src_Any=fde().source,t.src_Cc=dde().source,t.src_Z=hde().source,t.src_P=pde().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Dw}var Fw,lO;function gde(){if(lO)return Fw;lO=1;function e(x){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(_){_&&Object.keys(_).forEach(function(k){x[k]=_[k]})}),x}function t(x){return Object.prototype.toString.call(x)}function r(x){return t(x)==="[object String]"}function n(x){return t(x)==="[object Object]"}function i(x){return t(x)==="[object RegExp]"}function a(x){return t(x)==="[object Function]"}function s(x){return x.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(x){return Object.keys(x||{}).reduce(function(C,_){return C||o.hasOwnProperty(_)},!1)}var u={"http:":{validate:function(x,C,_){var k=x.slice(C);return _.re.http||(_.re.http=new RegExp("^\\/\\/"+_.re.src_auth+_.re.src_host_port_strict+_.re.src_path,"i")),_.re.http.test(k)?k.match(_.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(x,C,_){var k=x.slice(C);return _.re.no_http||(_.re.no_http=new RegExp("^"+_.re.src_auth+"(?:localhost|(?:(?:"+_.re.src_domain+")\\.)+"+_.re.src_domain_root+")"+_.re.src_port+_.re.src_host_terminator+_.re.src_path,"i")),_.re.no_http.test(k)?C>=3&&x[C-3]===":"||C>=3&&x[C-3]==="/"?0:k.match(_.re.no_http)[0].length:0}},"mailto:":{validate:function(x,C,_){var k=x.slice(C);return _.re.mailto||(_.re.mailto=new RegExp("^"+_.re.src_email_name+"@"+_.re.src_host_strict,"i")),_.re.mailto.test(k)?k.match(_.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(x){x.__index__=-1,x.__text_cache__=""}function m(x){return function(C,_){var k=C.slice(_);return x.test(k)?k.match(x)[0].length:0}}function y(){return function(x,C){C.normalize(x)}}function g(x){var C=x.re=mde()(x.__opts__),_=x.__tlds__.slice();x.onCompile(),x.__tlds_replaced__||_.push(c),_.push(C.src_xn),C.src_tlds=_.join("|");function k(U){return U.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(k(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(k(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(k(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(k(C.tpl_host_fuzzy_test),"i");var A=[];x.__compiled__={};function M(U,D){throw new Error('(LinkifyIt) Invalid schema "'+U+'": '+D)}Object.keys(x.__schemas__).forEach(function(U){var D=x.__schemas__[U];if(D!==null){var q={validate:null,link:null};if(x.__compiled__[U]=q,n(D)){i(D.validate)?q.validate=m(D.validate):a(D.validate)?q.validate=D.validate:M(U,D),a(D.normalize)?q.normalize=D.normalize:D.normalize?M(U,D):q.normalize=y();return}if(r(D)){A.push(U);return}M(U,D)}}),A.forEach(function(U){x.__compiled__[x.__schemas__[U]]&&(x.__compiled__[U].validate=x.__compiled__[x.__schemas__[U]].validate,x.__compiled__[U].normalize=x.__compiled__[x.__schemas__[U]].normalize)}),x.__compiled__[""]={validate:null,normalize:y()};var F=Object.keys(x.__compiled__).filter(function(U){return U.length>0&&x.__compiled__[U]}).map(s).join("|");x.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+F+")","i"),x.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+F+")","ig"),x.re.pretest=RegExp("("+x.re.schema_test.source+")|("+x.re.host_fuzzy_test.source+")|@","i"),p(x)}function b(x,C){var _=x.__index__,k=x.__last_index__,A=x.__text_cache__.slice(_,k);this.schema=x.__schema__.toLowerCase(),this.index=_+C,this.lastIndex=k+C,this.raw=A,this.text=A,this.url=A}function E(x,C){var _=new b(x,C);return x.__compiled__[_.schema].normalize(_,x),_}function w(x,C){if(!(this instanceof w))return new w(x,C);C||l(x)&&(C=x,x={}),this.__opts__=e({},o,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,x),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},g(this)}return w.prototype.add=function(C,_){return this.__schemas__[C]=_,g(this),this},w.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},w.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var _,k,A,M,F,U,D,q,J;if(this.re.schema_test.test(C)){for(D=this.re.schema_search,D.lastIndex=0;(_=D.exec(C))!==null;)if(M=this.testSchemaAt(C,_[2],D.lastIndex),M){this.__schema__=_[2],this.__index__=_.index+_[1].length,this.__last_index__=_.index+_[0].length+M;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(q=C.search(this.re.host_fuzzy_test),q>=0&&(this.__index__<0||q=0&&(A=C.match(this.re.email_fuzzy))!==null&&(F=A.index+A[1].length,U=A.index+A[0].length,(this.__index__<0||Fthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=F,this.__last_index__=U))),this.__index__>=0},w.prototype.pretest=function(C){return this.re.pretest.test(C)},w.prototype.testSchemaAt=function(C,_,k){return this.__compiled__[_.toLowerCase()]?this.__compiled__[_.toLowerCase()].validate(C,k,this):0},w.prototype.match=function(C){var _=0,k=[];this.__index__>=0&&this.__text_cache__===C&&(k.push(E(this,_)),_=this.__last_index__);for(var A=_?C.slice(_):C;this.test(A);)k.push(E(this,_)),A=A.slice(this.__last_index__),_+=this.__last_index__;return k.length?k:null},w.prototype.tlds=function(C,_){return C=Array.isArray(C)?C:[C],_?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(k,A,M){return k!==M[A-1]}).reverse(),g(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,g(this),this)},w.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},w.prototype.onCompile=function(){},Fw=w,Fw}const vde=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var uO;function yde(){if(uO)return hp;uO=1,Object.defineProperty(hp,"__esModule",{value:!0});var e=gde(),t=i(e),r=vde,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}var a=new t.default;return a.tlds(n.default),hp.default=function(s){return a.match(s)},hp}var pp={},cO;function _de(){return cO||(cO=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=function(e){return e}),pp}var fO;function wde(){if(fO)return cp;fO=1,Object.defineProperty(cp,"__esModule",{value:!0});var e=function(){function E(w,x){for(var C=0;CM&&A.push(C.substring(M,F.index));var D=_.props.hrefDecorator(F.url),q=_.props.textDecorator(F.text),J=_.props.componentDecorator(D,q,U);A.push(J),M=F.lastIndex}),C.length>M&&A.push(C.substring(M)),A.length===1?A[0]:A}},{key:"parse",value:function(C){var _=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof C=="string"?this.parseString(C):r.isValidElement(C)&&C.type!=="a"&&C.type!=="button"?r.cloneElement(C,{key:k},this.parse(C.props.children)):Array.isArray(C)?C.map(function(A,M){return _.parse(A,M)}):C}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.parse(this.props.children))}}]),w}(r.Component);return b.defaultProps={componentDecorator:i.default,hrefDecorator:s.default,matchDecorator:l.default,textDecorator:c.default},cp.default=b,cp}var dO;function bde(){if(dO)return up;dO=1,Object.defineProperty(up,"__esModule",{value:!0});var e=wde(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return up.default=t.default,up}var xde=bde();const Ede=In(xde);function Z1({children:e}){return P.jsx(Ede,{componentDecorator:(t,r,n)=>P.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:r},n),children:e})}function Xx(e){return P.jsx(P.Fragment,{children:e.lines.map((t,r)=>P.jsxs("div",{children:[P.jsx(Z1,{children:t}),P.jsx("br",{})]},r))})}function aj({sources:e}){const t=hr();return e!=null&&e.length?P.jsx(tt,{children:e.map((r,n)=>P.jsxs(tt.Item,{children:[P.jsx(tt.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),P.jsxs(tt.Content,{children:[P.jsx(tt.Header,{children:P.jsx(Z1,{children:[r.author,r.title,r.publicationInfo].filter(i=>!!i).join(", ")})}),P.jsxs(tt.Description,{children:[P.jsx(Z1,{children:r.page}),r.date&&` [${Il(r.date,t)}]`]})]})]},n))}):null}function oj(e){const[t,r]=Q.useState(!1),[n,i]=Q.useState(!1),[a,s]=Q.useState(!1),[o,l]=Q.useState("");return Bb(e.url)?(n&&o!==e.url&&i(!1),P.jsxs(P.Fragment,{children:[P.jsx(on,{className:n?"loaded-image-thumbnail":"hidden-image",onClick:()=>r(!0),onLoad:()=>{i(!0),l(e.url),s(!1)},onError:u=>{i(!0),l(e.url),s(!0),u.currentTarget.alt=""},src:e.url,alt:e.title||e.filename,centered:!0}),P.jsx(Ci,{className:n?"hidden-image":"image-placeholder",children:P.jsx(Ci.Image,{square:!0})}),a&&P.jsx(Sf,{fluid:!0,textAlign:"center",children:P.jsx(Bn,{negative:!0,compact:!0,children:P.jsx(Bn.Header,{children:P.jsx(Ae,{id:"error.failed_to_load_image",defaultMessage:"Failed to load image file"})})})}),P.jsxs(Vt,{basic:!0,size:"large",closeIcon:P.jsx($e,{name:"close",color:"red"}),open:t,onClose:()=>r(!1),onOpen:()=>r(!0),centered:!1,children:[P.jsx(Vt.Header,{children:e.title}),P.jsx(Vt.Content,{image:!0,children:P.jsx(on,{className:"modal-image",src:e.url,alt:e.title||e.filename,label:P.jsx(fr,{attached:"bottom",content:e.filename}),wrapped:!0})})]})]})):P.jsx(An,{centered:!0,style:{width:"100%",maxWidth:"290px",margin:"0 auto 14px"},children:P.jsxs(An.Content,{textAlign:"center",style:{backgroundColor:"#f9f9f9"},children:[P.jsx($e,{name:"image",size:"huge",color:"grey",style:{marginBottom:"10px",opacity:.6}}),P.jsx(An.Header,{style:{fontSize:"14px",wordBreak:"break-all"},children:e.title||e.filename}),P.jsx(An.Meta,{style:{marginTop:"5px",fontStyle:"italic"},children:P.jsx(Ae,{id:"media.not_uploaded",defaultMessage:"File not uploaded"})})]})})}function Sde(e){return!!e&&e.map((t,r)=>P.jsx(tt,{children:P.jsx(tt.Item,{children:P.jsx(oj,{url:t.url,filename:t.filename,title:t.title})})},r))}function Cde(e){return!!(e!=null&&e.length)&&e.map((t,r)=>P.jsx("div",{children:P.jsx(Xx,{lines:t.map((n,i)=>P.jsx("i",{children:n},i))})},r))}function kde(e){var d,p,m,y;const[t,r]=Q.useState(-1),[n,i]=Q.useState("");(!n||n!==e.indi)&&(r(-1),i(e.indi));function a(g,b){b.index!==void 0&&t!==b.index?r(b.index):r(-1)}const s=((d=e.images)==null?void 0:d.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.images",defaultMessage:"Images"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"camera"})})},"images"),render:()=>P.jsx(Qr.Pane,{children:Sde(e.images)})},o=((p=e.notes)==null?void 0:p.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.notes",defaultMessage:"Notes"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"sticky note outline"})})},"notes"),render:()=>P.jsx(Qr.Pane,{children:Cde(e.notes)})},l=((m=e.sources)==null?void 0:m.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.sources",defaultMessage:"Sources"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"quote right"})})},"sources"),render:()=>P.jsx(Qr.Pane,{children:P.jsx(aj,{sources:e.sources})})},u=((y=e.files)==null?void 0:y.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.files",defaultMessage:"Additional files"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"file alternate outline"})})},"files"),render:()=>P.jsx(Qr.Pane,{children:P.jsx(ij,{files:e.files})})},c=[s,o,l,u].flatMap(g=>g?[g]:[]);return c.length?P.jsx(et.Description,{children:P.jsx(Qr,{className:"event-extras",activeIndex:t,renderActiveOnly:!0,menu:{tabular:!0,attached:!0,compact:!0,borderless:!0},panes:c})}):null}function Hc(e){const t=pn(),r=f7(e.person),n=Tn.parse(t.search);return n.indi=Qn(e.person.pointer),P.jsx(Sl,{to:{pathname:"/view",search:Tn.stringify(n)},children:r||P.jsx(Ae,{id:"name.unknown_name",defaultMessage:"N.N."})})}const Tde=new Map([["ADOP","Adoption"],["BAPM","Baptism"],["BARM","Bar Mitzvah"],["BASM","Bas Mitzvah"],["BIRT","Birth"],["BLES","Blessing"],["BURI","Burial"],["CENS","Census"],["CHR","Christening"],["CHRA","Adult christening"],["CONF","Confirmation"],["CREM","Cremation"],["DEAT","Death"],["DEG","Degree"],["DIV","Divorce"],["DIVF","Divorce filed"],["EDUC","Education"],["ELEC","Elected"],["EMAIL","E-mail"],["EMIG","Emigration"],["ENGA","Engagement"],["EVEN","Event"],["FACT","Fact"],["FCOM","First communion"],["GRAD","Graduation"],["IMMI","Immigration"],["MARB","Marriage bann"],["MARC","Marriage contract"],["MARL","Marriage license"],["MARR","Marriage"],["MARS","Marriage settlement"],["MDCL","Medical info"],["MILT","Military services"],["NATU","Naturalization"],["OBJE","Additional files"],["OCCU","Occupation"],["ORDN","Ordination"],["PROB","Probate"],["PROP","Property"],["RESI","Residence"],["RETI","Retirement"],["SOUR","Sources"],["TITL","Title"],["WILL","Will"],["WWW","WWW"],["birth","Birth name"],["married","Married name"],["maiden","Maiden name"],["immigrant","Immigrant name"],["aka","Also known as"]]);function _s(e){const t=e.tag.replace(/_/g,"");return P.jsx(Ae,{id:`gedcom.${t}`,defaultMessage:Tde.get(t)||t})}const Jx=["BIRT"],Ade=["ADOP","BAPM","BARM","BASM","BLES","CENS","CHR","CHRA","CONF","EDUC","EMIG","EVEN","FAMS","FCOM","GRAD","IMMI","NATU","ORDN","OCCU","PROP","RESI","RETI","WILL","_DEG","_ELEC","_MDCL","_MILT"],sj=["ANUL","CENS","DIV","DIVF","ENGA","EVEN","MARB","MARC","MARL","MARR","MARS"],lj=[...Ade,...sj],Zx=["DEAT"],uj=["BURI","CREM","PROB"],Ide=[Jx,lj,Zx,uj],Rde=[...Jx,...lj,...Zx,...uj];function Pde(e){const t=hr();return P.jsxs("div",{className:"item-header",children:[P.jsx(Lt,{as:"span",size:"small",children:P.jsx(_s,{tag:Ode(e.event)})}),e.event.date?P.jsx(Lt,{as:"span",textAlign:"right",sub:!0,children:Il(e.event.date,t)}):null]})}function Ode(e){return e.tag==="EVEN"&&e.type?e.type:e.tag}function Nde(e,t,r){const n=t.tree.filter(i=>["WIFE","HUSB"].includes(i.tag)).find(i=>!i.data.includes(e));if(n)return ei(n,r,i=>i.indis)}function Mde(e,t,r,n){if(!Zx.includes(e.tag))return;const i=Rl(e),a=r.indis[t].tree.filter(s=>Jx.includes(s.tag)).map(s=>Rl(s)).find(s=>s);if(!(!a||!i))return lde(a==null?void 0:a.data,i==null?void 0:i.data,n)}function cj(e){const t=e.tree.find(r=>r.tag==="PLAC");return t!=null&&t.data?us(t):void 0}function fj(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{const a=ei(i,t,o=>o.other),s=lD(a);s&&n.push({url:rd(s.data,r),filename:Rm(s)||""})}),n}function dj(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{var o;const a=ei(i,t,l=>l.other),s=sD(a);s&&n.push({url:rd(s.data,r),filename:Rm(s),titl:(o=a.tree.find(l=>l.tag==="TITL"))==null?void 0:o.data})}),n}function hj(e,t){return e.tree.filter(r=>r.tag==="SOUR").map(r=>cD(r,t))}function pj(e,t){const r=e.tree.filter(i=>i.tag==="NOTE").map(i=>ei(i,t,a=>a.other)),n=e.tag!=="EVEN"?e.tree.filter(i=>i.tag==="TYPE"):[];return[e,...n,...r].filter(i=>!!i.data).filter(i=>i.data!=="Y").map(i=>us(i))}function Dde(e,t,r,n,i){return e.tag==="FAMS"?Lde(e,t,r,i):Fde(e,t,r,n,i)}function Fde(e,t,r,n,i){const a=Rl(e)||null;return[{tag:e.tag,date:a?dn.getDate(a.data):void 0,type:uD(e),age:Mde(e,r,t,n),place:cj(e),images:fj(e,t,i),files:dj(e,t,i),notes:pj(e,t),sources:hj(e,t),indi:r}]}function Lde(e,t,r,n){const i=ei(e,t,a=>a.fams);return og(sj,a=>i.tree.filter(s=>s.tag===a)).map(a=>{const s=Rl(a)||null;return{tag:a.tag,date:s?dn.getDate(s.data):void 0,type:uD(a),personLink:Nde(r,i,t),place:cj(a),images:fj(a,t,n),files:dj(a,t,n),notes:pj(a,t),sources:hj(a,t),indi:r}})}function jde(e){return P.jsx(et,{children:P.jsxs(et.Content,{children:[P.jsx(Pde,{event:e.event}),!!e.event.age&&P.jsx(et.Meta,{children:e.event.age}),!!e.event.personLink&&P.jsx(Hc,{person:e.event.personLink}),!!e.event.place&&P.jsx(et.Description,{children:e.event.place}),P.jsx(kde,{images:e.event.images,notes:e.event.notes,sources:e.event.sources,indi:e.event.indi,files:e.event.files})]})})}function Bde(e){const t=hr(),r=og(Ide,n=>e.entries.filter(i=>n.includes(i.tag)).map(i=>Dde(i,e.gedcom,e.indi,t,e.images)).flatMap(i=>i).sort((i,a)=>nd(i.date,a.date)));return r.length?P.jsx(P.Fragment,{children:r.map((n,i)=>P.jsx(jde,{event:n},i))}):null}function Ude(e,t,r){var c,d;const n=(c=e.tree)==null?void 0:c.find(p=>["HUSB","WIFE"].includes(p.tag)&&Qn(p.data)!==r),i=n?Qn(n.data):void 0,a=i?t.indis[i]:void 0,u=(((d=e.tree)==null?void 0:d.filter(p=>p.tag==="CHIL"))||[]).filter(p=>!!t.indis[Qn(p.data)]).map(p=>{const m=t.indis[Qn(p.data)],y=m==null?void 0:m.tree.find(E=>E.tag==="BIRT"),g=y?Rl(y):void 0,b=g?dn.getDate(g.data):void 0;return{childEntry:m,parsedDate:b}}).sort((p,m)=>nd(p.parsedDate,m.parsedDate)).map(p=>p.childEntry);return{familyId:Qn(e.pointer),spouseTag:n==null?void 0:n.tag,spouseRecord:a,children:u}}function zde(e){const t=e.gedcom.indis[e.indi];if(!t)return null;const r=t.tree,n=r.find(x=>x.tag==="FAMC"),i=n?e.gedcom.fams[Qn(n.data)]:void 0,a=(i==null?void 0:i.tag)==="FAM",s=a?i==null?void 0:i.tree.find(x=>x.tag==="HUSB"):void 0,o=a?i==null?void 0:i.tree.find(x=>x.tag==="WIFE"):void 0,l=s?Qn(s.data):void 0,u=l?e.gedcom.indis[l]:void 0,c=o?Qn(o.data):void 0,d=c?e.gedcom.indis[c]:void 0,p=u||d,b=r.filter(x=>x.tag==="FAMS").map(x=>e.gedcom.fams[Qn(x.data)]).map(x=>Ude(x,e.gedcom,e.indi)).filter(x=>x.spouseRecord||x.children.length>0),E=b.length,w=E>0;return!p&&!w?null:P.jsx(et,{children:P.jsxs(et.Content,{children:[P.jsx("div",{className:"item-header",children:P.jsx(Lt,{as:"span",size:"small",children:P.jsx(Ae,{id:"family.immediate_family",defaultMessage:"Immediate Family"})})}),p&&P.jsxs("div",{className:"parents-block",children:[u&&P.jsxs("div",{children:[P.jsx("strong",{children:P.jsx(Ae,{id:"family.father",defaultMessage:"Father"})}),": ",P.jsx(Hc,{person:u})]}),d&&P.jsxs("div",{children:[P.jsx("strong",{children:P.jsx(Ae,{id:"family.mother",defaultMessage:"Mother"})}),": ",P.jsx(Hc,{person:d})]})]}),b.map(x=>{const C=!x.spouseRecord&&E>1;return P.jsxs("div",{className:"spousal-group",children:[x.spouseRecord?P.jsxs("div",{children:[P.jsx("strong",{children:x.spouseTag==="HUSB"?P.jsx(Ae,{id:"family.husband",defaultMessage:"Husband"}):P.jsx(Ae,{id:"family.wife",defaultMessage:"Wife"})}),": ",P.jsx(Hc,{person:x.spouseRecord})]}):C?P.jsx("div",{children:P.jsx("strong",{children:P.jsx(Ae,{id:"family.unknown_spouse",defaultMessage:"Unknown Spouse"})})}):null,x.children.length>0&&P.jsxs("div",{className:"children-block",children:[P.jsxs("div",{children:[P.jsx("strong",{children:x.children.length===1?P.jsx(Ae,{id:"family.child",defaultMessage:"Child"}):P.jsx(Ae,{id:"family.children",defaultMessage:"Children"})}),": "]}),P.jsx("div",{children:x.children.map(_=>P.jsx("div",{children:P.jsx(Hc,{person:_})},_.pointer))})]})]},x.familyId)})]})})}const $de=[...Rde,"NAME","SEX","FAMC","FAMS","NOTE","SOUR","FACT"];function Hde(e){const t=[];return e.data&&t.push(...us(e)),e.tree.filter(r=>r.tag==="NOTE").forEach(r=>us(r).forEach(n=>t.push(P.jsx("i",{children:n})))),t.length?P.jsxs(P.Fragment,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(_s,{tag:e.tag})}),P.jsx("span",{children:P.jsx(Xx,{lines:t})})]}):null}function qde(e){if(!e.data)return null;const t=e.tree.filter(n=>n.tag==="TYPE").flatMap(n=>us(n)).join().trim(),r=us(e).join(" ").trim();return t?P.jsxs(P.Fragment,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(_s,{tag:e.tag})}),P.jsxs("div",{children:[P.jsx("b",{children:t}),": ",r]})]}):P.jsxs(P.Fragment,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(_s,{tag:e.tag})}),P.jsx("div",{children:r})]})}function Gde(e,t,r){const n=ei(e,t,a=>a.other),i=lD(n);return!i||!eE(n)?null:P.jsx("div",{className:"person-image",children:P.jsx(oj,{url:rd(i.data,r),filename:Rm(i)||""})})}function Wde(e,t){const r=e.map(n=>cD(n,t));return r.length?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"item-header",children:P.jsx(Lt,{as:"span",size:"small",children:P.jsx(_s,{tag:"SOUR"})})}),P.jsx(aj,{sources:r})]}):null}function Vde(e,t,r){const n=[];return e.map(i=>ei(i,t,a=>a.other)).forEach(i=>{var s;const a=sD(i);a&&n.push({url:rd(a.data,r),filename:Rm(a),titl:(s=i.tree.find(o=>o.tag==="TITL"))==null?void 0:s.data})}),n.length?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"item-header",children:P.jsx(Lt,{as:"span",size:"small",children:P.jsx(_s,{tag:"OBJE"})})}),P.jsx(ij,{files:n})]}):null}function Kde(e,t){const r=ei(e,t,n=>n.other);return!r||!eE(r)?null:P.jsx(Xx,{lines:us(r).map((n,i)=>P.jsx("i",{children:n},i))})}function Qde(e){var d,p,m,y,g,b,E,w;const t=(d=e.tree.find(x=>x.tag==="NPFX"))==null?void 0:d.data;let r=(p=e.tree.find(x=>x.tag==="GIVN"))==null?void 0:p.data,n=(m=e.tree.find(x=>x.tag==="_RUFNAME"))==null?void 0:m.data;const i=(y=e.tree.find(x=>x.tag==="NICK"))==null?void 0:y.data,a=(g=e.tree.find(x=>x.tag==="SPFX"))==null?void 0:g.data,s=(b=e.tree.find(x=>x.tag==="SURN"))==null?void 0:b.data,o=(E=e.tree.find(x=>x.tag==="NSFX"))==null?void 0:E.data;r&&n&&r.includes(n)&&(r=r.replace(n,`"${n}"`),n=void 0);const u=[t,r,n&&`"${n}"`,i&&`(${i})`,a,s,o].filter(Boolean).join(" ").trim()||e.data.replaceAll("/","")||"",c=(w=e.tree.find(x=>x.tag==="TYPE"&&x.data!=="Unknown"))==null?void 0:w.data;return P.jsxs(P.Fragment,{children:[P.jsx(Lt,{as:"span",size:"large",children:u||P.jsx(Ae,{id:"name.unknown_name",defaultMessage:"N.N."})}),u&&c&&P.jsx(et.Meta,{children:P.jsx(_s,{tag:c})})]})}function mp(e,t,r,n,i){return og(r,a=>e.filter(s=>s.tag===a).map(s=>n(s,t,i))).filter(a=>a!==null).map((a,s)=>P.jsx(et,{children:P.jsx(et.Content,{children:a})},s))}function hO(e,t,r,n,i){const a=og(r,o=>e.filter(l=>l.tag===o)).filter(o=>o!==null),s=a.length?n(a,t,i):null;return s?P.jsx(et,{children:P.jsx(et.Content,{children:s})}):null}function eE(e){return e.tree.length>0||e.data&&!e.data.startsWith("@")}function Yde(e,t){return e.filter(r=>!$de.includes(r.tag)).map(r=>ei(r,t,n=>n.other)).filter(eE).map(r=>Hde(r)).filter(r=>r!==null).map((r,n)=>P.jsx(et,{children:P.jsx(et.Content,{children:r})},n))}function Xde(e){return P.jsx(et,{children:P.jsxs(et.Content,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(Ae,{id:"config.ids",defaultMessage:"Identification"})}),P.jsx("div",{children:P.jsx("i",{children:e})})]})})}function Jde(e){const t=e.gedcom.indis[e.indi].tree;return P.jsx("div",{className:"details","data-testid":"details",children:P.jsxs(et.Group,{divided:!0,children:[mp(t,e.gedcom,["NAME"],Qde),mp(t,e.gedcom,["OBJE"],Gde,e.images),P.jsx(zde,{gedcom:e.gedcom,indi:e.indi}),P.jsx(Bde,{gedcom:e.gedcom,entries:t,indi:e.indi,images:e.images}),e.config.id===Dx.SHOW?Xde(e.indi):null,mp(t,e.gedcom,["FACT"],qde),Yde(t,e.gedcom),mp(t,e.gedcom,["NOTE"],Kde),hO(t,e.gedcom,["OBJE"],Vde,e.images),hO(t,e.gedcom,["SOUR"],Wde)]})})}function Zde({data:e,selectedIndiId:t,config:r,onConfigChange:n,expanded:i,onToggle:a}){const s=hr(),o=[{menuItem:s.formatMessage({id:"tab.info",defaultMessage:"Info"}),render:()=>P.jsx(Jde,{gedcom:e.gedcom,indi:t,config:r,images:e.images})},{menuItem:s.formatMessage({id:"tab.settings",defaultMessage:"Settings"}),render:()=>P.jsx(Ose,{gedcom:e.gedcom,config:r,onChange:n})}];return P.jsxs(xo,{id:"sidebar",animation:"overlay",icon:"labeled",width:i?"wide":"very thin",direction:"right",visible:!0,children:[i?P.jsx(Qr,{id:"sideTabs",panes:o}):P.jsx(Qce,{gedcom:e.gedcom,indi:t}),P.jsx(en,{id:"sideToggle",icon:!0,size:"mini",onClick:()=>a(),children:P.jsx($e,{size:"large",name:i?"arrow right":"arrow left"})})]})}var Xt=(e=>(e[e.INITIAL=0]="INITIAL",e[e.LOADING=1]="LOADING",e[e.ERROR=2]="ERROR",e[e.SHOWING_CHART=3]="SHOWING_CHART",e[e.LOADING_MORE=4]="LOADING_MORE",e))(Xt||{});function ehe(e,t){if(t===void 0)return;const r=e.id===Dx.HIDE,n=e.sex===LL.HIDE;Am(t.chartData).forEach(a=>{a.hideId=r,a.hideSex=n})}function the(){const e=hr(),{chartType:t,standalone:r,showWikiTreeMenus:n,freezeAnimation:i,showSidePanel:a,config:s,selection:o,detail:l,onSelection:u,onDetailSelection:c,onToggleSidePanel:d,onConfigChange:p}=Lce(),{state:m,loadingStatus:y,data:g,error:b,showErrorPopup:E,sourceSpec:w,updatedSelection:x,detailIndi:C,onDismissErrorPopup:_,resetLoader:k,clearData:A,setLoadingStatus:M,displayErrorPopup:F}=Fce({intl:e,urlSelection:o,urlDetail:l,onAuthError:Q.useCallback(ie=>{z(ie)},[])}),{showAuthModal:U,failedFileId:D,hasGoogleToken:q,setHasGoogleToken:J,onGoogleSignOut:W,triggerAuthError:z,onAuthSuccess:V,onCancel:Y}=kD({onSignOut:A,onAuthSuccess:k});Q.useMemo(()=>{ehe(s,g)},[s,g]),Vce(g,C,u);function X(){_n("print"),fle()}async function G(){_n("download_pdf");try{await mle()}catch{F(e.formatMessage({id:"error.failed_pdf",defaultMessage:"Failed to generate PDF file. Please try with a smaller diagram or download an SVG file."}))}}async function N(){_n("download_png");try{await ple()}catch{F(e.formatMessage({id:"error.failed_png",defaultMessage:"Failed to generate PNG file. Please try with a smaller diagram or download an SVG file."}))}}function $(){_n("download_svg"),dle()}function j(ie){return g?t===Zo.Donatso?P.jsx(Nce,{data:g.chartData,selection:ie,onSelection:u,onFirstRender:()=>M("")}):P.jsx(Jse,{data:g.chartData,selection:ie,chartType:t,onSelection:u,onDetailSelection:c,freezeAnimation:i,colors:s.color,hideIds:s.id,hideSex:s.sex,placeDisplay:s.place,placeCount:s.placeCount,onFirstRender:()=>M("")}):null}function L(){switch(m){case 3:case 4:{if(!g||!x)return null;const ie=x;return P.jsxs("div",{id:"content","data-testid":"content",children:[P.jsx(vle,{open:E,message:b,onDismiss:_}),m===4?P.jsx(Yl,{active:!0,size:"small",className:"loading-more"}):null,P.jsxs(iu,{children:[P.jsx(Zde,{data:g,selectedIndiId:C||ie.id,config:s,expanded:a,onToggle:d,onConfigChange:p}),P.jsx(au,{children:j(ie)})]})]})}case 2:return P.jsx(gle,{message:b||"Unknown error"});case 0:case 1:return P.jsx(Yl,{active:!0,size:"large"})}}return P.jsxs(P.Fragment,{children:[P.jsx(yle,{loadingStatus:y,state:m}),P.jsx(FL,{data:g==null?void 0:g.chartData,allowAllRelativesChart:(w==null?void 0:w.source)!==qt.WIKITREE,allowPrintAndDownload:t!==Zo.Donatso,showingChart:m===3||m===4,standalone:r,eventHandlers:{onSelection:u,onPrint:X,onDownloadPdf:G,onDownloadPng:N,onDownloadSvg:$},showWikiTreeMenus:(w==null?void 0:w.source)===qt.WIKITREE&&n,hasGoogleToken:q,onGoogleSignOut:W,onGoogleTokenAcquired:()=>J(!0)}),L(),U&&D&&P.jsx(Kce,{failedFileId:D,onAuthSuccess:V,onCancel:Y})]})}const nhe=WL();function rhe(){const e=pn(),t=Q.useMemo(()=>{if(typeof window>"u")return null;const n=Tn.parse(window.location.search),i=Tn.parse(e.search);let a=null;const s={...i,...n};let o=!1;const l=x7(s);l&&(a=l.redirectPath,s.source="google-drive",s.fileId=l.fileId,delete s.state,o=!0);const u=yW(n,e.pathname);u&&(a=a||u.redirectPath,o=o||u.paramsModified);const c=CT.some(d=>n[d]!==void 0)||tA.some(d=>n[d]!==void 0);if(o||c){const d={...n};CT.forEach(y=>delete d[y]),tA.forEach(y=>delete d[y]);const p=Tn.stringify(d),m=window.location.origin+window.location.pathname+(p?"?"+p:"")+window.location.hash;return window.history.replaceState(null,"",m),{pathname:a||e.pathname,search:Tn.stringify(s)}}return null},[e.pathname,e.search]);return t?P.jsx(Oh,{children:P.jsx(Vo,{path:"*",element:P.jsx(Ph,{to:t,replace:!0})})}):e.pathname==="/view"?P.jsxs(Oh,{children:[P.jsx(Vo,{path:"/view",element:P.jsx(the,{})}),P.jsx(Vo,{path:"*",element:P.jsx(Ph,{to:"/view",replace:!0})})]}):nhe?P.jsx(Oh,{children:P.jsx(Vo,{path:"*",element:P.jsx(Ph,{to:"/view",replace:!0})})}):P.jsxs(Oh,{children:[P.jsx(Vo,{path:"/",element:P.jsx(jse,{})}),P.jsx(Vo,{path:"*",element:P.jsx(Ph,{to:"/",replace:!0})})]})}const ihe={"menu.open":"Отваряне","menu.open_file":"Отваряне на файл","menu.load_from_url":"Зареждане от адрес","menu.select_wikitree_id":"Избор на WikiTree ID","menu.print":"Отпечатване","menu.download":"Изтегляне","menu.pdf_file":"PDF файл","menu.png_file":"PNG файл","menu.svg_file":"SVG файл","menu.download_pdf":"Изтегляне като PDF","menu.download_png":"Изтегляне като PNG","menu.download_svg":"Изтегляне като SVG","menu.view":"Изглед","menu.hourglass":"Пясъчен часовник","menu.relatives":"Всички роднини","menu.donatso":"Семейна диаграма на Донацо","menu.fancy":"Декоративно дърво (експериментално)","menu.wikitree_login":"Вход в WikiTree","menu.wikitree_logged_in":"Вписани","menu.wikitree_popup_username":"Вписани сте в WikiTree като {username}","menu.wikitree_popup":"Вписани в WikiTree","menu.github":"Проект в GitHub","menu.search.placeholder":"Търсене на лице","menu.search.placeholder_with_shortcut":"Търсене на лице (натиснете '/')","menu.search.no_results":"Няма резултати","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy е приложение за преглед на родословни дървета, която дава възможност за разглеждане структурата на семейство.","intro.instructions":"Използвайте бутоните за отваряне на файл и зареждане от адрес, за да отворите GEDCOM файл. Повечето приложения и страници за генеалогия позволяват изнасяне на GEDCOM файлове.","intro.examples":"Примерни родословни дървета","intro.from":"от","intro.whats_new":"Последни промени","intro.full_changelog":"Списък с всички промени","whats_new.title":"Новото в това издание","intro.privacy":"Поверителност","intro.privacy_note":"При отваряне на файл тази страницата не изпраща никъде вашите данни - заредените файловете не напускат вашето устройство. При зареждане на файл от адрес, данните преминават през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.title":"Зареждане от адрес","load_from_url.comment":"Данните от адреса ще преминат през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.cancel":"Отказ","load_from_url.load":"Зареждане","select_wikitree_id.title":"Избиране на WikiTree ID","select_wikitree_id.comment":"Въведете идентификатор на профил в {wikiTreeLink}. Пример: {example1}, {example2}","select_wikitree_id.cancel":"Отказ","select_wikitree_id.load":"Зареждане","gedcom.ADOP":"Осиновяване","gedcom.BAPM":"Кръщене","gedcom.BARM":"Бар мицва","gedcom.BASM":"Бат мицва","gedcom.BIRT":"Раждане","gedcom.BLES":"Благословия","gedcom.BURI":"Погребение","gedcom.CENS":"Преброяване на населението","gedcom.CHR":"Кръщене","gedcom.CHRA":"Кръщение за възрастни","gedcom.CONF":"Потвърждение","gedcom.CREM":"Кремиране","gedcom.DEAT":"Смърт","gedcom.DEG":"Академична степен","gedcom.DIV":"Развод","gedcom.DIVF":"Подадено е заявление за развод","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Подбор за длъжността","gedcom.EMAIL":"Електронна поща","gedcom.EMIG":"Емигриране","gedcom.ENGA":"Годеж","gedcom.EVEN":"Събитие","gedcom.FACT":"Факт","gedcom.FCOM":"Първо причастие","gedcom.GRAD":"Завършване на обучението","gedcom.IMMI":"Имигриране","gedcom.MARB":"Забрана за брак","gedcom.MARC":"Брачен договор","gedcom.MARL":"Брачно свидетелство","gedcom.MARR":"Бракосъчетание","gedcom.MARS":"Предбрачен договор","gedcom.MDCL":"Медицинска информация","gedcom.MILT":"Военна служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Допълнителни файлове","gedcom.OCCU":"Професия","gedcom.ORDN":"Ръкополагане","gedcom.PROB":"Потвърждение на завещанието","gedcom.PROP":"Имот","gedcom.RESI":"Местожителство","gedcom.RETI":"Пенсиониране","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Източници","gedcom.TITL":"Обръщение","gedcom.WILL":"Завещание","gedcom.WWW":"Препратка","gedcom._UPD":"Последно обновяване","gedcom.birth":"Рождено име","gedcom.married":"Име след брак","gedcom.maiden":"Моминско име","gedcom.immigrant":"Имигрантско име","gedcom.aka":"Също известни като","date.abt":"около","date.cal":"изчислено","date.est":"приблизително","date.between":"между {from} и {to}","date.after":"след {from}","date.before":"преди {to}","age.exact":"{age, plural, =0 {Под 1 година} one {{qualifier} 1 година} other {{qualifier} # години}}","age.less":"Под {age, plural, =0 {1 година} one {1 година} other {# години}}","age.more":"Над {age, plural, =0 {0 години} one {1 година} other {# години}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 години} one {1 година} other {# години}}","error.error":"Грешка","error.failed_pdf":"Неуспешно създаване на PDF файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_png":"Неуспешно създаване на PNG файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_to_load_file":"Грешка при зареждане на файл","error.failed_wikitree_load_more":"Грешка при зареждане на данни от WikiTree. {error}}","error.GEDCOM_READ_FAILED":"Грешка при отваряне на GEDCOM файл","error.ERROR_LOADING_UPLOADED_FILE":"Грешка при зареждането на данни. Качете файла отново.","error.WIKITREE_ID_NOT_PROVIDED":"Не е указан идентификатор на профил в WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профилът {id} в WikiTree е недостъпен. Опитайте да се впишете.","error.WIKITREE_PROFILE_NOT_FOUND":"Профилът {id} в WikiTree не е намерен","error.failed_to_load_image":"Грешка при зареждане на изображение","wikitree.private":"Скрито","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвят","config.colors.NO_COLOR":"Без цвят","config.colors.COLOR_BY_GENERATION":"По поколения","config.colors.COLOR_BY_SEX":"По пол","config.ids":"Идентификатори","config.ids.HIDE":"Скриване","config.ids.SHOW":"Показване","config.sex":"Пол","config.sex.HIDE":"Скриване","config.sex.SHOW":"Показване","config.places":"Места","config.places.FULL":"пълно","config.places.SHORT":"съкратено","config.places.HIDE":"скриване","head.source":"Източник на данни","name.unknown_name":"Неизвестно име","extras.images":"Изображение","extras.notes":"Бележки","extras.sources":"Източници","extras.files":"Допълнителни файлове","family.immediate_family":"Най-близко семейство","family.parents":"Родители","family.father":"Баща","family.mother":"Майка","family.husband":"Съпруг","family.wife":"Съпруга","family.unknown_spouse":"Неизвестен съпруг/а","family.children":"Деца","family.child":"Дете","media.not_uploaded":"Файлът не е качен","menu.load_from_google_drive":"Зареждане от Google Диск","menu.google_sign_out":"Прекъсване на връзката с Google Диск","google_auth.title":"Изисква се достъп до Google Диск","google_auth.instructions":"За да прегледате този файл, трябва да се удостоверите и да изберете файла от вашия Google Диск, за да предоставите разрешения.","google_auth.picker_instructions_header":"Изискват се разрешения","google_auth.picker_instructions":"Приложението няма разрешение да чете този файл. Моля, изберете го в изскачащия прозорец на браузъра за файлове, за да предоставите достъп. Ако това е споделен файл, който не се показва, опитайте първо да добавите пряк път към вашия Диск.","google_auth.cancel":"Отказ","google_auth.grant_button":"Предоставяне на достъп и избор на файл","google_auth.switch_account_button":"Смяна на акаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграцията с Google Drive не е конфигурирана."},ahe={"menu.open":"Otevřít","menu.open_file":"Otevřít soubor","menu.load_from_url":"Otevřít z URL","menu.select_wikitree_id":"Vybrat WikiTree ID","menu.print":"Tisknout","menu.download":"Stáhnout","menu.pdf_file":"Soubor PDF","menu.png_file":"Soubor PNG","menu.svg_file":"Soubor SVG","menu.download_pdf":"Stáhnout PDF","menu.download_png":"Stáhnout PNG","menu.download_svg":"Stáhnout SVG","menu.view":"Zobrazení","menu.hourglass":"Přesýpací hodiny","menu.relatives":"Všichni příbuzní","menu.donatso":"Donatso rodokmen","menu.fancy":"Rodinný strom (experimentální)","menu.wikitree_login":"Přihlášení na WikiTree","menu.wikitree_logged_in":"Přihlášeno","menu.wikitree_popup_username":"Přihlášeno do WikiTree jako {username}","menu.wikitree_popup":"Přihlášeno do WikiTree","menu.github":"GitHub projekt","menu.search.placeholder":"Hledej osobu","menu.search.placeholder_with_shortcut":"Hledej osobu (stiskněte '/')","menu.search.no_results":"Žádné výsledky","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy vám umožňuje interaktivní prohlížení rodokmenu.","intro.instructions":"Kliknutím na OTEVŘÍT SOUBOR nebo OTEVŘÍT Z URL načtete soubor GEDCOM. Většina genealogických programů má funkci exportu do formátu GEDCOM.","intro.examples":"Níže je uvedeno několik příkladů použití z internetu:","intro.from":"zdroj:","intro.whats_new":"Co je nového","intro.full_changelog":"Úplný seznam změn","whats_new.title":"Co je nového v této verzi?","intro.privacy":"Soukromí","intro.privacy_note":"Pomocí funkce „Otevřít soubor“ nejsou vaše data nikam odesílána a zůstávají ve vašem počítači. Při použití funkce „Otevřít z URL“ jsou data z dané adresy odeslána službou {link}, aby bylo možné data načíst (CORS).","load_from_url.title":"Otevřít z adresy URL","load_from_url.comment":"Data z dané adresy URL budou načtena prostřednictvím služby {link}, aby nedocházelo k problémům s CORS.","load_from_url.cancel":"Storno","load_from_url.load":"Otevřít","select_wikitree_id.title":"Zadejte WikiTree ID","select_wikitree_id.comment":"Zadejte ID profilu {wikiTreeLink}. Příklad: {example1}, {example2}","select_wikitree_id.cancel":"Storno","select_wikitree_id.load":"Otevřít","gedcom.ADOP":"Adopce","gedcom.BAPM":"Křest","gedcom.BARM":"Bar micva","gedcom.BASM":"Bas micva","gedcom.BIRT":"Narození","gedcom.BLES":"Požehnání","gedcom.BURI":"Pohřeb","gedcom.CENS":"Sčítání lidu","gedcom.CHR":"Křest","gedcom.CHRA":"Křest dospělých","gedcom.CONF":"Potvrzení","gedcom.CREM":"Kremace","gedcom.DEAT":"Úmrtí","gedcom.DEG":"Academic degree","gedcom.DIV":"Rozvod","gedcom.DIVF":"Potvrzení","gedcom.DSCR":"Popis","gedcom.EDUC":"Vzdělání","gedcom.ELEC":"Výběr na pozici","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrace","gedcom.ENGA":"zasnoubení","gedcom.EVEN":"Událost","gedcom.FACT":"Údaj","gedcom.FCOM":"První přijímání","gedcom.GRAD":"Dokončení školení ","gedcom.IMMI":"Imigrace","gedcom.MARB":"Družstvo","gedcom.MARC":"Manželská smlouva ","gedcom.MARL":"Oddací list","gedcom.MARR":"Svatba","gedcom.MARS":"Předmanželská smlouva","gedcom.MDCL":"Lékařské informace","gedcom.MILT":"Vojenská služba","gedcom.NATU":"Získání občanství","gedcom.OBJE":"Další soubory","gedcom.OCCU":"Povolání","gedcom.ORDN":"Vysvěcení","gedcom.PROB":"Potvrzení závěti","gedcom.PROP":"Majetek","gedcom.RESI":"Bydliště","gedcom.RETI":"Odchod do důchodu ","gedcom.RELI":"Vyznání","gedcom.RIN":"ID","gedcom.SOUR":"Zdroje","gedcom.TITL":"Titul","gedcom.WILL":"Závěť","gedcom.WWW":"Stránka WWW","gedcom._UPD":"Poslední aktualizace","gedcom.birth":"Rodné jméno","gedcom.married":"Jméno po svatbě","gedcom.maiden":"Jméno za svobodna","gedcom.immigrant":"Jméno získané imigrací","gedcom.aka":"Také znám(a) jako","date.abt":"kolem","date.cal":"vypočteno","date.est":"asi","date.between":"mezi {from} a {to}","date.after":"po {from}","date.before":"před {to}","age.exact":"{qualifier}{age, plural, =0 {Méně než rok} one {1 rok} few {# roky} other {# let}}","age.less":"Méne než {age, plural, =0 {1 rok} one {1 rok} few {# roky} other {# let}}","age.more":"Více než {age, plural, =0 {0 let} one {1 rok} few {# roky} other {# let}}","age.between":"Mezi {ageFrom} a {ageTo, plural, =0 {0 lety} one {1 rokem} few {# roky} other {# lety}}","error.error":"Chyba","error.failed_pdf":"Soubor PDF nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_png":"Soubor PNG nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_to_load_file":"Chyba při načítání souboru","error.failed_wikitree_load_more":"Chyba při načítání dat z WikiTree. {chyba}","error.GEDCOM_READ_FAILED":"Chyba při načítání souboru GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Chyba při načítání dat. Znovu otevřete soubor.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID nebylo získáno","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} není k dispozici","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} neexistuje","error.failed_to_load_image":"Nepodařilo se načíst obrázek","wikitree.private":"Soukromé","tab.info":"Informace","tab.settings":"Nastavení","config.colors":"Barvy","config.colors.NO_COLOR":"žádné","config.colors.COLOR_BY_GENERATION":"podle generace","config.colors.COLOR_BY_SEX":"podle pohlaví","config.ids":"Identifikátory","config.ids.HIDE":"skrýt","config.ids.SHOW":"zobrazit","config.sex":"Pohlaví","config.sex.HIDE":"skrýt","config.sex.SHOW":"zobrazit","config.places":"Místa","config.places.FULL":"plný","config.places.SHORT":"zkrácený","config.places.HIDE":"skrýt","head.source":"Zdroj dat","name.unknown_name":"N.N.","extras.images":"Obrázky","extras.notes":"Poznámky","extras.sources":"Zdroje","extras.files":"Další soubory","family.immediate_family":"Nejbližší rodina","family.parents":"Rodiče","family.father":"Otec","family.mother":"Matka","family.husband":"Manžel","family.wife":"Manželka","family.unknown_spouse":"Neznámý manžel/ka","family.children":"Děti","family.child":"Dítě","media.not_uploaded":"Soubor nebyl nahrán","menu.load_from_google_drive":"Načíst z Google Disku","menu.google_sign_out":"Odpojit Google Disk","google_auth.title":"Je vyžadován přístup k Disku Google","google_auth.instructions":"Chcete-li tento soubor zobrazit, musíte se ověřit a vybrat soubor z Disku Google, abyste udělili oprávnění.","google_auth.picker_instructions_header":"Vyžadována oprávnění","google_auth.picker_instructions":"Aplikace nemá oprávnění ke čtení tohoto souboru. Vyberte jej prosím v rozevíracím seznamu prohlížeče souborů pro udělení přístupu. Pokud se jedná o sdílený soubor, který se nezobrazuje, zkuste nejprve přidat zástupce na svůj Disk.","google_auth.cancel":"Zrušit","google_auth.grant_button":"Udělit přístup a vybrat soubor","google_auth.switch_account_button":"Přepnout účet","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integrace s Diskem Google není nakonfigurována."},ohe={"menu.open":"Öffnen","menu.open_file":"Datei öffnen","menu.load_from_url":"URL öffnen","menu.select_wikitree_id":"WikiTree ID auswählen","menu.print":"Drucken","menu.download":"Download","menu.pdf_file":"PDF-Datei","menu.png_file":"PNG-Datei","menu.svg_file":"SVG-Datei","menu.download_pdf":"PDF herunterladen","menu.download_png":"PNG herunterladen","menu.download_svg":"SVG herunterladen","menu.view":"Ansicht","menu.hourglass":"Sanduhrkarte","menu.relatives":"Alle Verwandten","menu.donatso":"Donatso-Stammbaum","menu.fancy":"Zierbaum (experimentell)","menu.wikitree_login":"Bei WikiTree anmelden","menu.wikitree_logged_in":"Eingeloggt","menu.wikitree_popup_username":"Bei WikiTree als {username} angemeldet","menu.wikitree_popup":"Bei WikiTree angemeldet","menu.github":"Projekt auf der GitHub-Website","menu.search.placeholder":"Person suchen","menu.search.placeholder_with_shortcut":"Person suchen ('/' drücken)","menu.search.no_results":"Keine Ergebnisse","intro.title":"Topola Genealogie","intro.description":"Mit der Topola Genealogie können Sie den Stammbaum auf interaktive Weise durchsuchen.","intro.instructions":"Klicken Sie auf Datei öffnen oder URL öffnen, um eine GEDCOM-Datei zu laden. Die meisten Genealogie-Programme verfügen über eine GEDCOM-Exportfunktion.","intro.examples":"Nachfolgend einige Beispiele aus dem Internet:","intro.from":"Quelle:","intro.whats_new":"Was ist neu","intro.full_changelog":"Siehe komplette Änderungshistorie","whats_new.title":"Was ist in dieser Version neu!","intro.privacy":"Datenschutz","intro.privacy_note":'Bei Verwendung der Funktion "Datei öffnen" werden Ihre Daten nirgendwo gesendet und verbleiben auf Ihrem Computer. Bei Verwendung der Funktion "URL öffnen" werden Daten von der angegebenen Adresse vom Dienst {link} an gesendet Ermöglichen des Ladens von Daten aus einer anderen Domäne (CORS).',"load_from_url.title":"Von URL öffnen","load_from_url.comment":"Die Daten der angegebenen URL werden über den {link} -Dienst geladen, um CORS-Probleme zu vermeiden.","load_from_url.cancel":"Abbrechen","load_from_url.load":"Öffnen","select_wikitree_id.title":"WikiTree ID eingeben","select_wikitree_id.comment":"Geben Sie die Profil-ID {wikiTreeLink} ein. Beispiele: {example1}, {example2}","select_wikitree_id.cancel":"Abbrechen","select_wikitree_id.load":"Öffnen","gedcom.ADOP":"Adoption","gedcom.BAPM":"Taufe","gedcom.BARM":"Bar-Mitzwah","gedcom.BASM":"Bas-Mitzwah","gedcom.BIRT":"Geburt","gedcom.BLES":"Segnung","gedcom.BURI":"Beerdigung","gedcom.CENS":"Volkszählung","gedcom.CHR":"Taufe","gedcom.CHRA":"Erwachsenentaufe","gedcom.CONF":"Konfirmation/Firmung","gedcom.CREM":"Feuerbestattung","gedcom.DEAT":"Tod","gedcom.DEG":"Akademischer Grad","gedcom.DIV":"Scheidung","gedcom.DIVF":"Scheidung eingereicht","gedcom.DSCR":"Beschreibung","gedcom.EDUC":"Ausbildung","gedcom.ELEC":"Auswahl für die Position","gedcom.EMAIL":"E-Mail","gedcom.EMIG":"Auswanderung","gedcom.ENGA":"Verlobung","gedcom.EVEN":"Ereignis","gedcom.FACT":"Merkmal","gedcom.FCOM":"Erstkommunion","gedcom.GRAD":"Ausbildungsabschluss","gedcom.IMMI":"Einwanderung","gedcom.MARB":"Aufgebot","gedcom.MARC":"Ehevertrag","gedcom.MARL":"Eheerlaubnis","gedcom.MARR":"Heirat","gedcom.MARS":"Ehevereinbarung","gedcom.MDCL":"Medizinische Informationen","gedcom.MILT":"Mititärdienst","gedcom.NATU":"Einbürgerung","gedcom.OBJE":"Zusätzliche Dateien","gedcom.OCCU":"Beruf","gedcom.ORDN":"Ordinierung","gedcom.PROB":"Testamentsbestätigung","gedcom.PROP":"Besitz","gedcom.RESI":"Wohnort","gedcom.RETI":"Ruhestand","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Quellen","gedcom.TITL":"Titel","gedcom.WILL":"Testament","gedcom.WWW":"Website","gedcom._UPD":"Zuletzt aktualisiert","gedcom.birth":"Geburtsname","gedcom.married":"Ehenamen","gedcom.maiden":"Mädchenname","gedcom.immigrant":"Immigrant name","gedcom.aka":"Auch bekannt als","date.abt":"Über","date.cal":"berechnet","date.est":"geschätzt","date.between":"zwischen {from} und {to}","date.after":"nach {from}","date.before":"vor {to}","age.exact":"{qualifier}{age, plural, =0 {Weniger als 1 Jahr} one {1 Jahr} other {# Jahre}}","age.less":"Weniger als {age, plural, =0 {1 Jahr} one {1 Jahr} other {# Jahre}}","age.more":"Mehr als {age, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","age.between":"Zwischen {ageFrom} und {ageTo, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","error.error":"Fehler","error.failed_pdf":"PDF konnte nicht erstellt werden. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_png":"Fehler beim Erstellen der PNG-Datei. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_to_load_file":"Fehler beim Laden der Datei","error.failed_wikitree_load_more":"Fehler beim Abrufen der Daten aus WikiTree. {error}","error.GEDCOM_READ_FAILED":"Fehler beim Lesen der GEDCOM-Datei","error.ERROR_LOADING_UPLOADED_FILE":"Fehler beim Laden der Daten. Bitte laden Sie Ihre Datei erneut hoch.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree-ID muss angegeben werden","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Das WikiTree-Profil {id} ist nicht zugänglich. Versuchen Sie sich anzumelden.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-Profil {id} nicht gefunden","error.failed_to_load_image":"Bilddatei konnte nicht geladen werden","wikitree.private":"Privat","tab.info":"Informationen","tab.settings":"Einstellungen","config.colors":"Farben","config.colors.NO_COLOR":"keine","config.colors.COLOR_BY_GENERATION":"je Generation","config.colors.COLOR_BY_SEX":"nach Geschlecht","config.ids":"Identifikation","config.ids.HIDE":"verbergen","config.ids.SHOW":"anzeigen","config.sex":"Geschlecht","config.sex.HIDE":"verbergen","config.sex.SHOW":"anzeigen","config.places":"Orte","config.places.FULL":"vollständig","config.places.SHORT":"gekürzt","config.places.HIDE":"verbergen","head.source":"Datenquelle","name.unknown_name":"N.N.","extras.images":"Bilder","extras.notes":"Notizen","extras.sources":"Quellen","extras.files":"Weitere Dateien","family.immediate_family":"Engere Familie","family.parents":"Eltern","family.father":"Vater","family.mother":"Mutter","family.husband":"Ehemann","family.wife":"Ehefrau","family.unknown_spouse":"Unbekannter Ehepartner","family.children":"Kinder","family.child":"Kind","media.not_uploaded":"Datei nicht hochgeladen","menu.load_from_google_drive":"Von Google Drive laden","menu.google_sign_out":"Google Drive trennen","google_auth.title":"Google Drive-Zugriff erforderlich","google_auth.instructions":"Um diese Datei anzuzeigen, müssen Sie sich authentifizieren und die Datei aus Ihrem Google Drive auswählen, um Berechtigungen zu erteilen.","google_auth.picker_instructions_header":"Berechtigungen erforderlich","google_auth.picker_instructions":"Die Anwendung hat keine Berechtigung, diese Datei zu lesen. Bitte wählen Sie sie im Dateibrowser-Popup aus, um Zugriff zu gewähren. Wenn es sich um eine freigegebene Datei handelt, die nicht angezeigt wird, versuchen Sie zuerst, eine Verknüpfung zu Ihrem Drive hinzuzufügen.","google_auth.cancel":"Abbrechen","google_auth.grant_button":"Zugriff gewähren & Datei auswählen","google_auth.switch_account_button":"Konto wechseln","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Die Google Drive-Integration ist nicht konfiguriert."},she={"menu.open":"Ouvrir","menu.open_file":"Ouvrir le fichier","menu.load_from_url":"Ouvrir l'URL","menu.select_wikitree_id":"Sélectionnez l'ID WikiTree","menu.print":"Imprimer","menu.download":"Télécharger","menu.pdf_file":"Fichier PDF","menu.png_file":"Fichier PNG","menu.svg_file":"Fichier SVG","menu.download_pdf":"Télécharger le PDF","menu.download_png":"Télécharger PNG","menu.download_svg":"Télécharger SVG","menu.view":"Afficher","menu.hourglass":"Graphique en sablier","menu.relatives":"Tous les parents","menu.donatso":"Donatso tableau généalogique","menu.fancy":"Arbre ornemental (expérimental)","menu.wikitree_login":"Connectez-vous à WikiTree","menu.wikitree_logged_in":"Connecté","menu.wikitree_popup_username":"Connecté à WikiTree en tant que {username}","menu.wikitree_popup":"Connecté à WikiTree","menu.github":"Projet sur le site Web GitHub","menu.search.placeholder":"Rechercher une personne","menu.search.placeholder_with_shortcut":"Rechercher une personne (appuyez sur '/')","menu.search.no_results":"Aucun résultat","intro.title":"Topola Généalogie","intro.description":"La Topola Généalogie vous permet de parcourir l'arbre généalogique de manière interactive.","intro.instructions":"Cliquez sur OPEN FILE ou OPEN URL pour charger un fichier GEDCOM. La plupart des logiciels de généalogie ont une fonction d'exportation GEDCOM.","intro.examples":"Voici quelques exemples trouvés sur Internet:","intro.from":"source:","intro.whats_new":"Quoi de neuf","intro.full_changelog":"Voir toutes les modifications","whats_new.title":"Quoi de neuf dans cette version?","intro.privacy":"Confidentialité","intro.privacy_note":`Lorsque vous utilisez la fonction "Ouvrir un fichier", vos données ne sont envoyées nulle part et restent sur votre ordinateur. Lorsque vous utilisez la fonction "Ouvrir l'URL", les données de l'adresse indiquée sont envoyées par le service {link} pour permettre le chargement des données depuis un autre domaine (CORS).`,"load_from_url.title":"Ouvrir depuis l'URL","load_from_url.comment":"Les données de l'URL donnée seront chargées via le service {link} pour éviter les problèmes CORS.","load_from_url.cancel":"Annuler","load_from_url.load":"Ouvrir","select_wikitree_id.title":"Entrez l'ID de WikiTree","select_wikitree_id.comment":"Entrez l'ID de profil {wikiTreeLink}. Exemples: {example1}, {example2}","select_wikitree_id.cancel":"Annuler","select_wikitree_id.load":"Ouvrir","gedcom.ADOP":"Adoption","gedcom.BAPM":"Baptême","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Naissance","gedcom.BLES":"Bénédiction","gedcom.BURI":"Funérailles","gedcom.CENS":"Recensement","gedcom.CHR":"Baptême","gedcom.CHRA":"Baptême des adultes","gedcom.CONF":"Confirmation","gedcom.CREM":"Crémation","gedcom.DEAT":"Mort","gedcom.DEG":"Diplôme universitaire","gedcom.DIV":"Divorce","gedcom.DIVF":"Divorce déposé","gedcom.DSCR":"Description","gedcom.EDUC":"Études","gedcom.ELEC":"Nomination au poste","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Émigration","gedcom.ENGA":"Fiançailles","gedcom.EVEN":"EVEN","gedcom.FACT":"FACT","gedcom.FCOM":"Première communion","gedcom.GRAD":"Achèvement de la formation","gedcom.IMMI":"Immigration","gedcom.MARB":"Équipe","gedcom.MARC":"Contrat de mariage ","gedcom.MARL":"Licence de mariage","gedcom.MARR":"Mariage","gedcom.MARS":"Contrat prénuptial","gedcom.MDCL":"Informations médicales","gedcom.MILT":"Service militaire","gedcom.NATU":"Naturalisation","gedcom.OBJE":"Fichiers supplémentaires","gedcom.OCCU":"Profession","gedcom.ORDN":"Ordination","gedcom.PROB":"Confirmation de volonté","gedcom.PROP":"Possession","gedcom.RESI":"Lieu de résidence","gedcom.RETI":"Retraite","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Sources","gedcom.TITL":"Titre","gedcom.WILL":"Testament","gedcom.WWW":"Site Web","gedcom._UPD":"Dernière mise à jour","gedcom.birth":"Nom de naissance","gedcom.married":"Nom marital","gedcom.maiden":"Nom de jeune fille","gedcom.immigrant":"Nom d'immigrant","gedcom.aka":"Alias","date.abt":"environ","date.cal":"calculé","date.est":"estimé","date.between":"entre {from} et {to}","date.after":"après {from}","date.before":"avant {to}","age.exact":"{qualifier}{age, plural, =0 {Moins d'1 an} one {1 an} other {# ans}}","age.less":"Moins de {age, plural, =0 {1 an} one {1 an} other {# ans}}","age.more":"Plus de {age, plural, =0 {0 an} one {1 an} other {# ans}}","age.between":"Entre {ageFrom} et {ageTo, plural, =0 {0 an} one {1 an} other {# ans}}","error.error":"Erreur","error.failed_pdf":"Échec de la création du PDF. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_png":"Impossible de créer le fichier PNG. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_to_load_file":"Erreur lors du chargement du fichier","error.failed_wikitree_load_more":"Erreur lors de l'obtention des données de WikiTree. {error}","error.GEDCOM_READ_FAILED":"Erreur de lecture du fichier GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Erreur de chargement des données. Renvoyez votre fichier.","error.WIKITREE_ID_NOT_PROVIDED":"L'ID WikiTree est obligatoire","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Le profil WikiTree ${id} n'est pas accessible. Connectez-vous.","error.WIKITREE_PROFILE_NOT_FOUND":"Le profil WikiTree ${id} n'a pas été trouvé","error.failed_to_load_image":"Erreur de chargement de l'image","wikitree.private":"Privé","tab.info":"Informations","tab.settings":"Paramètres","config.colors":"Couleurs","config.colors.NO_COLOR":"aucune","config.colors.COLOR_BY_GENERATION":"par génération","config.colors.COLOR_BY_SEX":"par sexe","config.ids":"Identification","config.ids.HIDE":"cacher","config.ids.SHOW":"afficher","config.sex":"Sexe","config.sex.HIDE":"cacher","config.sex.SHOW":"afficher","config.places":"Lieux","config.places.FULL":"complet","config.places.SHORT":"abrégé","config.places.HIDE":"cacher","head.source":"Source de données","name.unknown_name":"?","extras.images":"Images","extras.notes":"Notes","extras.sources":"Sources","extras.files":"Fichiers supplémentaires","family.immediate_family":"Famille proche","family.parents":"Parents","family.father":"Père","family.mother":"Mère","family.husband":"Mari","family.wife":"Femme","family.unknown_spouse":"Conjoint inconnu","family.children":"Enfants","family.child":"Enfant","media.not_uploaded":"Fichier non téléversé","menu.load_from_google_drive":"Charger depuis Google Drive","menu.google_sign_out":"Déconnecter Google Drive","google_auth.title":"Accès à Google Drive requis","google_auth.instructions":"Pour afficher ce fichier, vous devez vous authentifier et sélectionner le fichier depuis votre Google Drive pour accorder les autorisations.","google_auth.picker_instructions_header":"Autorisations requises","google_auth.picker_instructions":"L'application n'a pas l'autorisation de lire ce fichier. Veuillez le sélectionner dans la fenêtre contextuelle du navigateur de fichiers pour accorder l'accès. S'il s'agit d'un fichier partagé qui ne s'affiche pas, essayez d'abord d'ajouter un raccourci vers votre Drive.","google_auth.cancel":"Annuler","google_auth.grant_button":"Accorder l'accès et sélectionner le fichier","google_auth.switch_account_button":"Changer de compte","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'intégration de Google Drive n'est pas configurée."},lhe={"menu.open":"Apri","menu.open_file":"Apri file","menu.load_from_url":"Apri URL","menu.select_wikitree_id":"Seleziona ID WikiTree","menu.print":"Stampa","menu.download":"Scarica","menu.pdf_file":"File PDF","menu.png_file":"File PNG","menu.svg_file":"File SVG","menu.download_pdf":"Scarica PDF","menu.download_png":"Scarica PNG","menu.download_svg":"Scarica SVG","menu.view":"Visualizza","menu.hourglass":"Grafico a clessidra","menu.relatives":"Tutti i parenti","menu.donatso":"Donatso albero genealogico","menu.fancy":"Albero ornamentale (sperimentale)","menu.wikitree_login":"Accedi a WikiTree","menu.wikitree_logged_in":"Accesso effettuato","menu.wikitree_popup_username":"Accesso a WikiTree come {username}","menu.wikitree_popup":"Accesso a WikiTree","menu.github":"Progetto sul sito web GitHub","menu.search.placeholder":"Cerca persona","menu.search.placeholder_with_shortcut":"Cerca persona (premi '/')","menu.search.no_results":"Nessun risultato","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy ti consente di esplorare l'albero genealogico in modo interattivo.","intro.instructions":"Fai clic su OPEN FILE o OPEN URL per caricare un file GEDCOM. La maggior parte dei software di genealogia ha una funzione di esportazione GEDCOM.","intro.examples":"Di seguito sono riportati alcuni esempi trovati su Internet:","intro.from":"fonte:","intro.whats_new":"Novità","intro.full_changelog":"Vedi il log delle modifiche completo","whats_new.title":"Cosa c'è di nuovo in questa versione?","intro.privacy":"Protezione dei dati","intro.privacy_note":`Quando si utilizza la funzione "Apri file", i dati non vengono inviati da nessuna parte e rimangono sul computer. Quando si utilizza la funzione "Apri URL", i dati dall'indirizzo specificato vengono inviati dal servizio {link} a consentire il caricamento dei dati da un altro dominio (CORS).`,"load_from_url.title":"Apri da URL","load_from_url.comment":"I dati dall'URL specificato verranno caricati tramite il servizio {link} per evitare problemi CORS.","load_from_url.cancel":"Annulla","load_from_url.load":"Apri","select_wikitree_id.title":"Inserisci ID WikiTree","select_wikitree_id.comment":"Inserisci l'ID profilo {wikiTreeLink}. Esempi: {example1}, {example2}","select_wikitree_id.cancel":"Annulla","select_wikitree_id.load":"Apri","gedcom.ADOP":"Adozione","gedcom.BAPM":"Battesimo","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Nascita","gedcom.BLES":"Benedizione","gedcom.BURI":"Sepoltura","gedcom.CENS":"Censimento","gedcom.CHR":"Battesimo","gedcom.CHRA":"Battesimo degli adulti","gedcom.CONF":"Cresima","gedcom.CREM":"Cremazione","gedcom.DEAT":"Morte","gedcom.DEG":"Titolo accademico","gedcom.DIV":"Divorzio","gedcom.DIVF":"Richiesta di divorzio","gedcom.DSCR":"Descrizione fisica","gedcom.EDUC":"Istruzione","gedcom.ELEC":"Elezione a carica","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrazione","gedcom.ENGA":"Fidanzamento","gedcom.EVEN":"Evento","gedcom.FACT":"Fatto","gedcom.FCOM":"Prima Comunione","gedcom.GRAD":"Conseguimento del titolo di studio","gedcom.IMMI":"Immigrazione","gedcom.MARB":"Pubblicazioni matrimoniali","gedcom.MARC":"Accordo matrimoniale","gedcom.MARL":"Licenza di matrimonio","gedcom.MARR":"Matrimonio","gedcom.MARS":"Accordo prematrimoniale","gedcom.MDCL":"Informazioni mediche","gedcom.MILT":"Servizio militare","gedcom.NATU":"Naturalizzazione","gedcom.OBJE":"Media allegati","gedcom.OCCU":"Professione","gedcom.ORDN":"Ordinazione religiosa","gedcom.PROB":"Omologazione del testamento","gedcom.PROP":"Proprietà","gedcom.RESI":"Residenza","gedcom.RETI":"Pensionamento","gedcom.RELI":"Religione","gedcom.RIN":"ID","gedcom.SOUR":"Fonti","gedcom.TITL":"Titolo nobiliare/professionale","gedcom.WILL":"Testamento","gedcom.WWW":"Sito web","gedcom._UPD":"Ultimo aggiornamento","gedcom.birth":"Nome alla nascita","gedcom.married":"Nome dopo il matrimonio","gedcom.maiden":"Cognome da nubile","gedcom.immigrant":"Nome all'immigrazione","gedcom.aka":"Detto anche","date.abt":"circa","date.cal":"calcolato","date.est":"stimato","date.between":"tra il {from} e il {to}","date.after":"dopo il {from}","date.before":"prima del {to}","age.exact":"{qualifier}{age, plural, =0 {Meno di 1 anno} one {1 anno} other {# anni}}","age.less":"Meno di {age, plural, =0 {1 anno} one {1 anno} other {# anni}}","age.more":"Più di {age, plural, =0 {0 anni} one {1 anno} other {# anni}}","age.between":"Tra {ageFrom} e {ageTo, plural, =0 {0 anni} one {1 anno} other {# anni}}","error.error":"Errore","error.failed_pdf":"Impossibile creare PDF. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_png":"Impossibile creare il file PNG. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_to_load_file":"Errore durante il caricamento del file","error.failed_wikitree_load_more":"Errore durante il recupero dei dati da WikiTree. {error}","error.GEDCOM_READ_FAILED":"Impossibile leggere il file GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Errore durante il caricamento dei dati. Carica nuovamente il file.","error.WIKITREE_ID_NOT_PROVIDED":"È necessario fornire l'ID WikiTree.","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Il profilo WikiTree {id} non è accessibile. Prova ad effettuare il login.","error.WIKITREE_PROFILE_NOT_FOUND":"Profilo WikiTree {id} non trovato","error.failed_to_load_image":"Impossibile caricare il file immagine","wikitree.private":"Privato","tab.info":"Informazioni","tab.settings":"Impostazioni","config.colors":"Colori","config.colors.NO_COLOR":"nessuno","config.colors.COLOR_BY_GENERATION":"per generazione","config.colors.COLOR_BY_SEX":"per sesso","config.ids":"Identificazione","config.ids.HIDE":"nascondere","config.ids.SHOW":"visualizzare","config.sex":"Sesso","config.sex.HIDE":"nascondere","config.sex.SHOW":"visualizzare","config.places":"Luoghi","config.places.FULL":"completo","config.places.SHORT":"abbreviato","config.places.HIDE":"nascondere","head.source":"Origine dati","name.unknown_name":"N.N.","extras.images":"Immagini","extras.notes":"Appunti","extras.sources":"Fonti","extras.files":"File aggiuntivi","family.immediate_family":"Famiglia stretta","family.parents":"Genitori","family.father":"Padre","family.mother":"Madre","family.husband":"Marito","family.wife":"Moglie","family.unknown_spouse":"Coniuge sconosciuto","family.children":"Figli","family.child":"Figlio/a","media.not_uploaded":"File non caricato","menu.load_from_google_drive":"Carica da Google Drive","menu.google_sign_out":"Disconnetti Google Drive","google_auth.title":"Accesso a Google Drive richiesto","google_auth.instructions":"Per visualizzare questo file, devi autenticarti e selezionare il file dal tuo Google Drive per concedere le autorisations.","google_auth.picker_instructions_header":"Autorizzazioni richieste","google_auth.picker_instructions":"L'applicazione non ha l'autorizzazione di leggere questo file. Selezionalo nel popup del browser dei file per concedere l'accesso. Se si tratta di un file condiviso che non viene visualizzato, prova prima ad aggiungere una scorciatoia al tuo Drive.","google_auth.cancel":"Annulla","google_auth.grant_button":"Concedi l'accesso e seleziona il file","google_auth.switch_account_button":"Cambia account","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'integrazione con Google Drive non è configurata."},uhe={"menu.open":"Otwórz","menu.open_file":"Otwórz plik","menu.load_from_url":"Otwórz URL","menu.select_wikitree_id":"Wybierz WikiTree ID","menu.print":"Drukuj","menu.download":"Pobierz","menu.pdf_file":"Plik PDF","menu.png_file":"Plik PNG","menu.svg_file":"Plik SVG","menu.download_pdf":"Pobierz PDF","menu.download_png":"Pobierz PNG","menu.download_svg":"Pobierz SVG","menu.view":"Widok","menu.hourglass":"Wykres klepsydrowy","menu.relatives":"Wszyscy krewni","menu.donatso":"Donatso wykres rodzinny","menu.fancy":"Ozdobne drzewo (eksperymentalne)","menu.wikitree_login":"Zaloguj do WikiTree","menu.wikitree_logged_in":"Zalogowano","menu.wikitree_popup_username":"Zalogowano do WikiTree jako {username}","menu.wikitree_popup":"Zalogowano do WikiTree","menu.github":"Projekt na stronie GitHub","menu.search.placeholder":"Szukaj osoby","menu.search.placeholder_with_shortcut":"Szukaj osoby (naciśnij '/')","menu.search.no_results":"Brak wyników","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy pozwala przeglądać drzewo genealogiczne w interaktywny sposób.","intro.instructions":"Kliknij OTWÓRZ PLIK lub OTWÓRZ URL, aby załadować plik GEDCOM. Większość programów genealogicznych posiada funkcję eksportu do pliku GEDCOM.","intro.examples":"Przykłady","intro.from":"źródło:","intro.whats_new":"Co nowego?","intro.full_changelog":"Zobacz pełną listę zmian","whats_new.title":"Co nowego w tej wersji?","intro.privacy":"Prywatność","intro.privacy_note":'Używając funkcji "Otwórz plik", Twoje dane nie są nigdzie wysyłane i pozostają na Twoim komputerze. Używając funkcji "Otwórz URL", dane z podanego adresu przesyłane są przez usługę {link} w celu umożliwienia załadowania danych z innej domeny (CORS).',"load_from_url.title":"Otwórz z adresu URL","load_from_url.comment":"Dane z podanego adresu URL zostaną załadowane poprzez usługę {link} w celu uniknięcia problemów z CORS.","load_from_url.cancel":"Anuluj","load_from_url.load":"Otwórz","select_wikitree_id.title":"Podaj WikiTree ID","select_wikitree_id.comment":"Wpisz identyfikator profilu {wikiTreeLink}. Przykłady: {example1}, {example2}","select_wikitree_id.cancel":"Anuluj","select_wikitree_id.load":"Otwórz","gedcom.ADOP":"Adopcja","gedcom.BAPM":"Chrzest","gedcom.BARM":"Bar Micwa","gedcom.BASM":"Bat Micwa","gedcom.BIRT":"Narodziny","gedcom.BLES":"Błogosławieństwo","gedcom.BURI":"Pogrzeb","gedcom.CENS":"Spis ludności","gedcom.CHR":"Chrzest","gedcom.CHRA":"Chrzest dorosłych","gedcom.CONF":"Bierzmowanie","gedcom.CREM":"Kremacja","gedcom.DEAT":"Śmierć","gedcom.DEG":"Stopień naukowy","gedcom.DIV":"Rozwód","gedcom.DIVF":"Wniesienie pozwu o rozwód","gedcom.DSCR":"Opis","gedcom.EDUC":"Wykształcenie","gedcom.ELEC":"Wybór na stanowisko","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigracja","gedcom.ENGA":"Zaręczyny","gedcom.EVEN":"Wydarzenie","gedcom.FACT":"Fakt","gedcom.FCOM":"Pierwsza komunia","gedcom.GRAD":"Ukończenie szkoły","gedcom.IMMI":"Imigracja","gedcom.MARB":"Zapowiedzi małżeńskie","gedcom.MARC":"Kontrakt małżeński","gedcom.MARL":"Licencja małżeńska","gedcom.MARR":"Małżeństwo","gedcom.MARS":"Ugoda małżeńska","gedcom.MDCL":"Informacje medyczne","gedcom.MILT":"Służba wojskowa","gedcom.NATU":"Nadanie obywatelstwa","gedcom.OBJE":"Dodatkowe pliki","gedcom.OCCU":"Zawód","gedcom.ORDN":"Święcenia","gedcom.PROB":"Postępowanie spadkowe","gedcom.PROP":"Nieruchomość","gedcom.RESI":"Miejsce zamieszkania","gedcom.RETI":"Emerytura","gedcom.RELI":"Religia","gedcom.RIN":"ID","gedcom.SOUR":"Źródła","gedcom.TITL":"Tytuł","gedcom.WILL":"Testament","gedcom.WWW":"Strona WWW","gedcom._UPD":"Ostatnia aktualizacja","gedcom.birth":"Nazwisko rodowe","gedcom.married":"Nazwisko po małżeństwie","gedcom.maiden":"Nazwisko panieńskie","gedcom.immigrant":"Nazwisko po imigracji","gedcom.aka":"Alias","date.abt":"około","date.cal":"wyliczone","date.est":"oszacowane","date.between":"między {from} a {to}","date.after":"po {from}","date.before":"przed {to}","age.exact":"{age, plural, =0 {Mniej niż 1 rok} one {{qualifier} 1 rok} many {{qualifier} # lat} other {{qualifier} # lata}}","age.less":"Mniej niż {age, plural, =0 {1 rok} one {1 rok} many {# lat} other {# lata}}","age.more":"Więcej niż {age, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","age.between":"Między {ageFrom} a {ageTo, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","error.error":"Błąd","error.failed_pdf":"Nie udało się utworzyć pliku PDF. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_png":"Nie udało się utworzyć pliku PNG. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_to_load_file":"Błąd wczytywania pliku","error.failed_wikitree_load_more":"Błąd podczas pobierania danych z WikiTree. {error}","error.GEDCOM_READ_FAILED":"Błąd wczytywania pliku GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Błąd wczytywania danych. Otwórz ponownie plik.","error.WIKITREE_ID_NOT_PROVIDED":"Identyfikator WikiTree nie został podany","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nie jest dostępny","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} nie istnieje","error.failed_to_load_image":"Błąd podczas pobierania pliku ze zdjęciem","wikitree.private":"Prywatne","tab.info":"Informacje","tab.settings":"Ustawienia","config.colors":"Kolory","config.colors.NO_COLOR":"brak","config.colors.COLOR_BY_GENERATION":"według pokolenia","config.colors.COLOR_BY_SEX":"według płci","config.ids":"Identyfikator","config.ids.HIDE":"ukryj","config.ids.SHOW":"pokaż","config.sex":"Płeć","config.sex.HIDE":"ukryj","config.sex.SHOW":"pokaż","config.places":"Miejsca","config.places.FULL":"pełne","config.places.SHORT":"skrócone","config.places.HIDE":"ukryj","head.source":"Źródło danych","name.unknown_name":"N.N.","extras.images":"Zdjęcia","extras.notes":"Notatki","extras.sources":"Źródła","extras.files":"Dodatkowe pliki","family.immediate_family":"Najbliższa rodzina","family.parents":"Rodzice","family.father":"Ojciec","family.mother":"Matka","family.husband":"Mąż","family.wife":"Żona","family.unknown_spouse":"Nieznany współmałżonek","family.children":"Dzieci","family.child":"Dziecko","media.not_uploaded":"Plik nieprzesłany","menu.load_from_google_drive":"Otwórz z Dysku Google","menu.google_sign_out":"Rozłącz Dysk Google","google_auth.title":"Wymagany dostęp do Dysku Google","google_auth.instructions":"Aby wyświetlić ten plik, musisz się zalogować i wybrać plik z Dysku Google, aby przyznać uprawnienia.","google_auth.picker_instructions_header":"Wymagane uprawnienia","google_auth.picker_instructions":"Aplikacja nie ma uprawnień do odczytu tego pliku. Wybierz go w oknie wyszukiwania plików, aby przyznać dostęp. Jeśli to jest plik udostępniony, który się nie wyświetla, spróbuj najpierw dodać skrót do swojego Dysku.","google_auth.cancel":"Anuluj","google_auth.grant_button":"Przejdź do autoryzacji i wyboru pliku","google_auth.switch_account_button":"Przełącz konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integracja z Dyskiem Google nie jest skonfigurowana."},che={"menu.open":"Открыть","menu.open_file":"Открыть файл","menu.load_from_url":"Открыть URL","menu.select_wikitree_id":"Выберите WikiTree ID","menu.print":"Печать","menu.download":"Скачать","menu.pdf_file":"Файл PDF","menu.png_file":"Файл PNG","menu.svg_file":"Файл SVG","menu.download_pdf":"Скачать PDF","menu.download_png":"Скачать PNG","menu.download_svg":"Скачать SVG","menu.view":"Вид","menu.hourglass":"График Песочные часы","menu.relatives":"Все родственники","menu.donatso":"Donatso семейная схема","menu.fancy":"Декоративное дерево (экспериментальное)","menu.wikitree_login":"Войти в WikiTree","menu.wikitree_logged_in":"Вход выполнен","menu.wikitree_popup_username":"Вы вошли в WikiTree как {username}","menu.wikitree_popup":"Вы вошли в WikiTree","menu.github":"Проект на сайте GitHub","menu.search.placeholder":"Искать человека","menu.search.placeholder_with_shortcut":"Искать человека (нажмите '/')","menu.search.no_results":"Нет результатов","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy позволяет просматривать семейное древо в интерактивном режиме.","intro.instructions":'Щелкните "Открыть файл" или "Открыть URL", чтобы загрузить файл GEDCOM. Большинство программ для генеалогии имеют функцию экспорта GEDCOM.',"intro.examples":"Ниже приведены некоторые примеры, найденные в Интернете:","intro.from":"источник:","intro.whats_new":"Что нового?","intro.full_changelog":"Список изменений","whats_new.title":"Что нового в этой версии?","intro.privacy":"Конфиденциальность","intro.privacy_note":'При использовании функции "Открыть файл" Ваши данные никуда не отправляются и остаются на Вашем компьютере. При использовании функции "Открыть URL" данные с указанного адреса отправляются службой {link} на включение загрузки данных из другого домена (CORS).',"load_from_url.title":"Открыть с адреса URL","load_from_url.comment":"Данные с указанного адреса URL будут загружены через службу {link}, чтобы избежать проблем CORS.","load_from_url.cancel":"Отменить","load_from_url.load":"Открыть","select_wikitree_id.title":"Введите идентификатор WikiTree","select_wikitree_id.comment":"Введите идентификатор профиля {wikiTreeLink}. Примеры: {example1}, {example2}","select_wikitree_id.cancel":"Отмена","select_wikitree_id.load":"Открыть","gedcom.ADOP":"Усыновление","gedcom.BAPM":"Крещение","gedcom.BARM":"Бар-мицва","gedcom.BASM":"Бас Мицва","gedcom.BIRT":"Рождение","gedcom.BLES":"Благословение","gedcom.BURI":"Похороны","gedcom.CENS":"Перепись населения","gedcom.CHR":"Крещение","gedcom.CHRA":"Крещение взрослых","gedcom.CONF":"Подтверждение","gedcom.CREM":"Кремация","gedcom.DEAT":"Смерть","gedcom.DEG":"Ученая степень","gedcom.DIV":"Развод","gedcom.DIVF":"Подано заявление о разводе","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Выбор на должность","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Эмиграция","gedcom.ENGA":"Помолвка","gedcom.EVEN":"Событие","gedcom.FACT":"Факт","gedcom.FCOM":"Первое Причастие","gedcom.GRAD":"Завершение обучения","gedcom.IMMI":"Иммиграция","gedcom.MARB":"Отряд","gedcom.MARC":"Брачный контракт","gedcom.MARL":"Свидетельство о браке","gedcom.MARR":"Свадьба","gedcom.MARS":"Брачный договор","gedcom.MDCL":"Медицинская информация","gedcom.MILT":"Военная служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Дополнительные файлы","gedcom.OCCU":"Вид деятельности","gedcom.ORDN":"Рукоположение","gedcom.PROB":"Подтверждение завещания","gedcom.PROP":"Владение","gedcom.RESI":"Место жительства","gedcom.RETI":"Выход на пенсию","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Источники","gedcom.TITL":"Титул","gedcom.WILL":"Завещание","gedcom.WWW":"Веб-сайт WWW","gedcom._UPD":"Последнее обновление","gedcom.birth":"Имя при рождении","gedcom.married":"Имя в браке","gedcom.maiden":"Девичья фамилия","gedcom.immigrant":"Имя в эмиграции","gedcom.aka":"Он(а) же","date.abt":"около","date.cal":"рассчитано","date.est":"приблизительно","date.between":"между {from} и {to}","date.after":"после {from}","date.before":"до {to}","age.exact":"{age, plural, =0 {Менее 1 года} one {{qualifier} 1 год} many {{qualifier} # лет} other {{qualifier} # года}}","age.less":"Менее {age, plural, =0 {1 года} one {1 год} many {# лет} other {# года}}","age.more":"Более {age, plural, =0 {0 лет} one {1 год} many {# лет} other {# года}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 лет} one {1 год} many {# год} other {# лет}}","error.error":"Ошибка","error.failed_pdf":"Не удалось создать PDF-файл. Повторите попытку с меньшей диаграммой или загрузите файл SVG.","error.failed_png":"Не удалось создать файл PNG. Повторите попытку с меньшей схемой или загрузите файл SVG.","error.failed_to_load_file":"Ошибка загрузки файла","error.failed_wikitree_load_more":"Ошибка при получении данных из WikiTree. {error}","error.GEDCOM_READ_FAILED":"Ошибка чтения файла GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Ошибка чтения данных. Повторите.","error.WIKITREE_ID_NOT_PROVIDED":"Не указан идентификатор WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профиль WikiTree {id} недоступен","error.WIKITREE_PROFILE_NOT_FOUND":"Профиль WikiTree {id} не найден","error.failed_to_load_image":"Ошибка при открытии картинки","wikitree.private":"Частный","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвет","config.colors.NO_COLOR":"Без цвета","config.colors.COLOR_BY_GENERATION":"По поколениям","config.colors.COLOR_BY_SEX":"По полу","config.ids":"Идентификатор","config.ids.HIDE":"Скрыть","config.ids.SHOW":"Показать","config.sex":"Пол","config.sex.HIDE":"Скрыть","config.sex.SHOW":"Показать","config.places":"Места","config.places.FULL":"полное","config.places.SHORT":"сокращённое","config.places.HIDE":"скрыть","head.source":"Источник данных","name.unknown_name":"Неизвестно","extras.images":"Картинки","extras.notes":"Примечание","extras.sources":"Источники","extras.files":"Дополнительные файлы","family.immediate_family":"Ближайшие родственники","family.parents":"Родители","family.father":"Отец","family.mother":"Мать","family.husband":"Муж","family.wife":"Жена","family.unknown_spouse":"Неизвестный супруг(а)","family.children":"Дети","family.child":"Ребёнок","media.not_uploaded":"Файл не загружен","menu.load_from_google_drive":"Загрузить с Google Диска","menu.google_sign_out":"Отключить Google Диск","google_auth.title":"Требуется доступ к Google Диску","google_auth.instructions":"Чтобы просмотреть этот файл, необходимо пройти авторизацию и выбрать файл на Google Диске для предоставления разрешений.","google_auth.picker_instructions_header":"Требуются разрешения","google_auth.picker_instructions":"У приложения нет разрешения на чтение этого файла. Пожалуйста, выберите его во всплывающем окне выбора файлов, чтобы предоставить доступ. Если это общий файл, который не отображается, попробуйте сначала добавить ярлык на свой Диск.","google_auth.cancel":"Отмена","google_auth.grant_button":"Предоставить доступ и выбрать файл","google_auth.switch_account_button":"Сменить аккаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграция с Google Диском не настроена."},fhe={"menu.open":"Öppna","menu.open_file":"Öppna fil","menu.load_from_url":"Öppna URL","menu.select_wikitree_id":"Välj WikiTree ID","menu.print":"Skriv ut","menu.download":"Ladda ner","menu.pdf_file":"PDF-fil","menu.png_file":"PNG-fil","menu.svg_file":"SVG-fil","menu.download_pdf":"Ladda ner PDF","menu.download_png":"Ladda ner PNG","menu.download_svg":"Ladda ner SVG","menu.view":"Visa","menu.hourglass":"Timglasdiagram","menu.relatives":"Alla släktingar","menu.donatso":"Donatso stamträd","menu.fancy":"Prydnadsträd (experimentellt)","menu.wikitree_login":"Logga in på WikiTree","menu.wikitree_logged_in":"Inloggad","menu.wikitree_popup_username":"Inloggad på WikiTree som {username}","menu.wikitree_popup":"Inloggad på WikiTree","menu.github":"Projekt på GitHub-webbplats","menu.search.placeholder":"Sök person","menu.search.no_results":"Inga resultat","intro.title":"Topola Genealogi","intro.description":"Med Topola Genealogi kan du bläddra i stamträdet på ett interaktivt sätt.","intro.instructions":"Klicka på Öppna fil eller Öppna URL för att ladda en GEDCOM-fil. De flesta genealogiprogam har en GEDCOM-exportfunktion.","intro.examples":"Här är några exempel från Internet:","intro.from":"källa:","intro.whats_new":"Vad är nytt","intro.full_changelog":"Se full ändringshistorik","whats_new.title":"Vad är nytt i denna version!","intro.privacy":"Integritet","intro.privacy_note":'När du använder funktionen "Öppna fil" skickas dina data inte någonstans och förblir på din dator. När du använder funktionen "Öppna URL" skickas data från den angivna adressen via tjänsten {link} för att möjliggöra inläsning av data från en annan domän (CORS).',"load_from_url.title":"Öppna från URL","load_from_url.comment":"Data från den angivna URL:en kommer att laddas via tjänsten {link} för att undvika CORS-problem.","load_from_url.cancel":"Avbryt","load_from_url.load":"Öppna","select_wikitree_id.title":"Ange WikiTree ID","select_wikitree_id.comment":"Ange profil-ID {wikiTreeLink}. Exempel: {example1}, {example2}","select_wikitree_id.cancel":"Avbryt","select_wikitree_id.load":"Öppna","gedcom.ADOP":"Adoption","gedcom.BAPM":"Dop","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Födsla","gedcom.BLES":"Välsignelse","gedcom.BURI":"Begravning","gedcom.CENS":"Folkräkning","gedcom.CHR":"Dop","gedcom.CHRA":"Vuxendop","gedcom.CONF":"Konfirmation","gedcom.CREM":"Kremering","gedcom.DEAT":"Död","gedcom.DEG":"Universitetsgrad","gedcom.DIV":"Skilsmässa","gedcom.DIVF":"Skilsmässoansökan","gedcom.DSCR":"Beskrivning","gedcom.EDUC":"Utbildning","gedcom.ELEC":"Val till befattning","gedcom.EMAIL":"E-post","gedcom.EMIG":"Emigration","gedcom.ENGA":"Förlovning","gedcom.EVEN":"Händelse","gedcom.FACT":"Faktum","gedcom.FCOM":"Första nattvarden","gedcom.GRAD":"Utbildningsavslutning","gedcom.IMMI":"Immigration","gedcom.MARB":"Lysning","gedcom.MARC":"Äktenskapskontakt","gedcom.MARL":"Äktenskapslicens","gedcom.MARR":"Äktenskap","gedcom.MARS":"Förlikning före äktenskap","gedcom.MDCL":"Medicinsk information","gedcom.MILT":"Militärtjänst","gedcom.NATU":"Naturalisering","gedcom.OBJE":"Ytterligare filer","gedcom.OCCU":"Yrke","gedcom.ORDN":"Ordination","gedcom.PROB":"Testamentsbekräftelse","gedcom.PROP":"Egendom","gedcom.RESI":"Bostadsort","gedcom.RETI":"Pensionering","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Källor","gedcom.TITL":"Titel","gedcom.WILL":"Testamente","gedcom.WWW":"Webbplats","gedcom._UPD":"Senast uppdaterad","gedcom.birth":"Födelsenamn","gedcom.married":"Äktenskapsnamn","gedcom.maiden":"Flicknamn","gedcom.immigrant":"Immigrantnamn","gedcom.aka":"Alias","date.abt":"ungefär","date.cal":"beräknad","date.est":"uppskattat","date.between":"mellan {from} och {to}","date.after":"efter {from}","date.before":"före {to}","age.exact":"{qualifier}{age, plural, =0 {Mindre än 1 år} one {1 år} other {# år}}","age.less":"Mindre än {age, plural, =0 {1 år} one {1 år} other {# år}}","age.more":"Mer än {age, plural, =0 {0 år} one {1 år} other {# år}}","age.between":"Mellan {ageFrom} och {ageTo, plural, =0 {0 år} one {1 år} other {# år}}","error.error":"Fel","error.failed_pdf":"Kunde inte skapa PDF. Försök igen med ett mindre diagram eller ladda ner SVG-filen.","error.failed_png":"Kunde inte skapa PNG-filen. Försök igen med ett mindre diagram eller ladda ner SVG-filen.","error.failed_to_load_file":"Fel vid inläsning av fil","error.failed_wikitree_load_more":"Fel vid hämtning av data från WikiTree. {error}","error.GEDCOM_READ_FAILED":"Fel vid läsning av GEDCOM-fil","error.ERROR_LOADING_UPLOADED_FILE":"Fel vid inläsning av data. Ladda upp filen igen.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID måste anges","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"WikiTree-profilen {id} är inte tillgänglig. Försök logga in.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-profilen {id} hittades inte","error.failed_to_load_image":"Kunde inte ladda bildfil","wikitree.private":"Privat","tab.info":"Information","tab.settings":"Inställningar","config.colors":"Färger","config.colors.NO_COLOR":"ingen","config.colors.COLOR_BY_GENERATION":"per generation","config.colors.COLOR_BY_SEX":"efter kön","config.ids":"Identifikation","config.ids.HIDE":"dölj","config.ids.SHOW":"visa","config.sex":"Kön","config.sex.HIDE":"dölj","config.sex.SHOW":"visa","config.places":"Platser","config.places.FULL":"fullständig","config.places.SHORT":"förkortad","config.places.HIDE":"dölj","head.source":"Datakälla","name.unknown_name":"?","extras.images":"Bilder","extras.notes":"Anteckningar","extras.sources":"Källor","extras.files":"Ytterligare filer","family.immediate_family":"Närmaste familj","family.parents":"Föräldrar","family.father":"Far","family.mother":"Mor","family.husband":"Make","family.wife":"Hustru","family.unknown_spouse":"Okänd make/hustru","family.children":"Barn","family.child":"Barn","media.not_uploaded":"Fil inte uppladdad","menu.load_from_google_drive":"Ladda från Google Drive","menu.google_sign_out":"Koppla från Google Drive","google_auth.title":"Google Drive-åtkomst krävs","google_auth.instructions":"För att visa denna fil måste du autentisera och välja filen från din Google Drive för att bevilja behörigheter.","google_auth.picker_instructions_header":"Behörigheter krävs","google_auth.picker_instructions":"Programmet har inte behörighet att läsa denna fil. Välj den i popup-fönstret för filbläddrare för att ge åtkomst. Om det är en delad fil som inte visas kan du först försöka lägga till en genväg till din Drive.","google_auth.cancel":"Avbryt","google_auth.grant_button":"Bevilja åtkomst och välj fil","google_auth.switch_account_button":"Byt konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Google Drive-integrationen är inte konfigurerad."},dhe={bg:ihe,cs:ahe,de:ohe,fr:she,it:lhe,pl:uhe,ru:che,sv:fhe},pO=navigator.language&&navigator.language.split(/[-_]/)[0],mO=gB(),hhe=document.getElementById("root"),gO=kB.createRoot(hhe);mO&&mO.name==="ie"?gO.render(P.jsx("p",{children:"Topola Genealogy Viewer does not support Internet Explorer. Please try a different (modern) browser."})):gO.render(P.jsx(sz,{locale:pO,messages:dhe[pO],children:P.jsxs(Ioe,{children:[P.jsx("style",{children:Aoe}),P.jsx(I$,{children:P.jsx(rhe,{})})]})}));export{Df as _,tle as a,gi as c,In as g,xee as t,mhe as z}; + `;function E(){return x.data.kinship==="self"?"card-kinship-self"+(l?"":" f3-real-label"):x.data.id===t?"card-kinship-rel":"card-kinship-default"}}function g(){u.classed("f3-kinship-labels-toggle",!0),u.append("label").text("Kinship labels").append("input").attr("type","checkbox").attr("checked",!0).on("change",x=>{l=!l,h.updateTree({initial:!1,tree_position:"inherit"})})}function w(x){const b=h.cont.querySelector("svg.main_svg");Kle(b).k>x&&Qle(b,x)}}}function O3(e){return e=e[0].toUpperCase()+e.slice(1),e.includes("great-")&&(e=e.replace("great-","Great-")),e}var Nce=Object.freeze({__proto__:null,Card:oce,CardHtml:E3,CardSvg:zx,appendElement:Z1,infoPopup:C3,kinshipInfo:Pce});Object.assign({},tue,{setupHtmlSvg:rue,setupReactiveTreeData:iue,getUniqueId:aue});function Mce(e,t){return e.husb===t?e.wife:e.husb}function WR(e,t){const r=new Map;return e.fams.forEach(n=>r.set(n.id,n)),e.indis.map(n=>{var d,h;const i=n.famc&&r.get(n.famc)||void 0,a=(n.fams||[]).map(m=>r.get(m)).filter(m=>m!==void 0),s=i==null?void 0:i.husb,o=i==null?void 0:i.wife,l=[s,o].filter(m=>!!m),u=a.map(m=>Mce(m,n.id)).filter(m=>m!==void 0),c=a.flatMap(m=>m.children||[]);return{id:n.id,data:{"first name":n.firstName,"last name":n.lastName,birthday:Rl(n.birth,t),avatar:(h=(d=n.images)==null?void 0:d[0])==null?void 0:h.url,gender:n.sex},rels:{parents:l,spouses:u,children:c}}})}class Dce{initializeChart(t,r){const n=WR(t.data,r);this.store=r3({data:n,main_id:t.selection.id});const i=a3(document.querySelector("#dotatsoSvgContainer")),a=Nce.CardSvg({store:this.store,svg:i,card_display:[s=>`${s.data["first name"]||""} ${s.data["last name"]||""}`,s=>`${s.data.birthday||""}`],mini_tree:!0,link_break:!1,onCardClick:(s,o)=>t.onSelection({id:o.data.id,generation:0}),card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}});this.store.setOnUpdate(s=>{c3(this.store.getTree(),i,a,s||{})}),this.store.updateTree({initial:!0})}updateChart(t,r){const n=WR(t.data,r);this.store.updateData(n),this.store.updateMainId(t.selection.id),this.store.updateTree()}}function Fce(e){const t=Q.useRef(new Dce),r=QL(e),n=hr();return Q.useEffect(()=>{var i;r?t.current.updateChart(e,n):(t.current.initializeChart(e,n),(i=e.onFirstRender)==null||i.call(e))}),P.jsx("div",{id:"dotatsoSvgContainer"})}class Lce{isNewData(t,r,n){return!1}async onMessage(t,r,n,i){if(t.message==="parent_ready")window.parent.postMessage({message:"ready"},"*");else if(t.message==="gedcom"){const a=t.gedcom;if(!a)return;try{const s="embedded";pD(s,a,new Map);const o=await yD(s,i,{useSessionCache:!1}),l=zb(o.gedcom.head);_n("embedded_file_loaded",{event_label:l}),r(o)}catch(s){_n("embedded_file_error"),n(s)}}}async loadData(t,r){return this.activeListener&&(window.removeEventListener("message",this.activeListener),this.activeListener=void 0),new Promise((n,i)=>{const a=l=>{this.activeListener===o&&(window.removeEventListener("message",o),this.activeListener=void 0),n(l)},s=l=>{this.activeListener===o&&(window.removeEventListener("message",o),this.activeListener=void 0),i(l)},o=l=>this.onMessage(l.data,a,s,r);this.activeListener=o,window.parent.postMessage({message:"ready"},"*"),window.addEventListener("message",o)})}}const VR=new x7,KR=new E7,QR=new Lce,YR=new S7;function jce(e,t){return e instanceof mu?t.formatMessage({id:`error.${e.code}`,defaultMessage:e.message},e.args):e.message}function Bce(e){const{intl:t,urlSelection:r,urlDetail:n,onAuthError:i}=e,a=Ii(),s=pn(),[o,l]=Q.useState(Xt.INITIAL),[u,c]=Q.useState("Loading…"),[d,h]=Q.useState(),[m,y]=Q.useState(),[g,w]=Q.useState(!1),[x,b]=Q.useState(),E=Q.useRef(!0),C=Q.useRef(0),v=Q.useRef();Q.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const k=Q.useMemo(()=>new wW(t),[t]),A=Q.useCallback((F,$)=>{if(!x||x.source!==F.source)return!0;const j={spec:F,selection:$},M={spec:x,selection:v.current};switch(j.spec.source){case qt.UPLOADED:return VR.isNewData(j,M,d);case qt.GEDCOM_URL:return KR.isNewData(j,M,d);case qt.WIKITREE:return k.isNewData(j,M,d);case qt.EMBEDDED:return QR.isNewData(j,M,d);case qt.GOOGLE_DRIVE:return YR.isNewData(j,M,d);default:return!1}},[x,d,k]),D=Q.useCallback((F,$,j)=>{switch(F.source){case qt.UPLOADED:return VR.loadData({spec:F,selection:$},j);case qt.GEDCOM_URL:return KR.loadData({spec:F,selection:$},j);case qt.WIKITREE:return k.loadData({spec:F,selection:$},j);case qt.EMBEDDED:return QR.loadData({spec:F,selection:$},j);case qt.GOOGLE_DRIVE:return YR.loadData({spec:F,selection:$},j);default:throw new Error("Unsupported data source")}},[k]),L=Q.useCallback(F=>{y(F),l(Xt.ERROR)},[]),q=Q.useCallback(F=>{w(!0),y(F)},[]),N=Q.useCallback(()=>{w(!1)},[]),z=Q.useCallback(()=>{l(Xt.INITIAL)},[]),Y=Q.useCallback(()=>{h(void 0),v.current=void 0},[]),G=Q.useCallback((F,$)=>(o===Xt.INITIAL||A(F,$))&&o!==Xt.LOADING&&o!==Xt.LOADING_MORE,[o,A]),U=Q.useCallback(async(F,$)=>{l(Xt.LOADING),b(F),v.current=$;const j=++C.current;c("Loading…");try{const M=await D(F,$,re=>{E.current&&c(re)});if(!E.current||C.current!==j)return;c(`Rendering chart (${M.chartData.indis.length.toLocaleString()} people)…`),h(M),v.current=Ey(M.chartData,$),l(Xt.SHOWING_CHART)}catch(M){if(!E.current||C.current!==j)return;M instanceof of?F.source===qt.GOOGLE_DRIVE&&i(F.fileId):L(jce(M,t))}},[t,D,i,L]),W=Q.useCallback((F,$)=>o!==Xt.SHOWING_CHART&&o!==Xt.LOADING_MORE?!1:F.source===qt.WIKITREE&&!!$&&(!v.current||v.current.id!==$.id),[o]),X=Q.useCallback(async F=>{l(Xt.LOADING_MORE);const $=++C.current;try{const j=await TD(F.id,t);if(!E.current||C.current!==$)return;const M=Ey(j.chartData,F);h(j),v.current=M,l(Xt.SHOWING_CHART)}catch(j){if(!E.current||C.current!==$)return;l(Xt.SHOWING_CHART),q(t.formatMessage({id:"error.failed_wikitree_load_more",defaultMessage:"Failed to load data from WikiTree. {error}"},{error:j.message||String(j)}))}},[t,q]);Q.useEffect(()=>{if(s.pathname!=="/view"){o!==Xt.INITIAL&&l(Xt.INITIAL),h(void 0);return}const F=Lx(s);if(!F.sourceSpec){a({pathname:"/"},{replace:!0});return}G(F.sourceSpec,F.selection)?U(F.sourceSpec,F.selection):W(F.sourceSpec,F.selection)&&F.selection?X(F.selection):o===Xt.LOADING_MORE&&l(Xt.SHOWING_CHART)},[s,o,a,G,U,W,X]),Q.useEffect(()=>()=>{Om(d==null?void 0:d.images)},[d]);const J=Q.useMemo(()=>d?Ey(d.chartData,r):void 0,[d,r]),K=n||(J==null?void 0:J.id);return{state:o,loadingStatus:u,data:d,error:m,showErrorPopup:g,sourceSpec:x,updatedSelection:J,detailIndi:K,loadedSelectionRef:v,onDismissErrorPopup:N,resetLoader:z,clearData:Y,setLoadingStatus:c,displayErrorPopup:q}}function Uce(){const e=pn(),t=Ii(),r=Q.useMemo(()=>Lx(e),[e]),n=Q.useCallback((l,u)=>{t(Use(e,l),u)},[e,t]),i=Q.useCallback(l=>{l.id.startsWith(Hb)||(_n("selection_changed"),n({indi:l.id,gen:String(l.generation),detail:null}))},[n]),a=Q.useCallback(l=>{n({detail:l.id})},[n]),s=Q.useCallback(()=>{const l=!r.showSidePanel;n({sidePanel:l?"true":"false"},{replace:!0})},[r.showSidePanel,n]),o=Q.useCallback(l=>{n(Mse(l),{replace:!0})},[n]);return{args:r,chartType:r.chartType,standalone:r.standalone,showWikiTreeMenus:r.showWikiTreeMenus,freezeAnimation:r.freezeAnimation,showSidePanel:r.showSidePanel,config:r.config,sourceSpec:r.sourceSpec,selection:r.selection,detail:r.detail,updateUrl:n,onSelection:i,onDetailSelection:a,onToggleSidePanel:s,onConfigChange:o}}const zce={name:"get_selected_person",description:"Returns the full details (name, events, immediate relatives) of the individual currently selected in the browser viewport.",inputSchema:{type:"object",properties:{}}},$ce={name:"search_indi",description:"Searches the genealogy index for individuals by name. Returns up to 10 results starting with the ones that match the best.",inputSchema:{type:"object",properties:{query:{type:"string",description:"The name to search for."}},required:["query"]}},Hce={name:"inspect_indi",description:"Fetches detailed information for a specific individual by ID, including their immediate relatives and life events.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID of the individual."}},required:["id"]}},qce={name:"focus_indi",description:"Instructs the Topola viewer camera view to center on and focus a specific person. Restructures the tree view to show ancestors and descendants of the selected person.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID to focus."}},required:["id"]}},Gce={name:"find_relationship_path",description:"Finds the shortest path connecting two individuals (e.g., through parents or marriages). Returns an ordered list of connecting individuals.",inputSchema:{type:"object",properties:{source:{type:"string",description:"Start individual ID"},target:{type:"string",description:"End individual ID"}},required:["source","target"]}},Wce={name:"get_ancestors",description:"Returns ancestors of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},Vce={name:"get_descendants",description:"Returns descendants of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},XR=5,Kce=10;function Vo(e){return{content:[{type:"text",text:JSON.stringify(e)}],structuredContent:e}}function Uc(e){return{content:[{type:"text",text:e}]}}class Qce{constructor(){this.detailIndi=null,this.searchIndex=null,this.chartData=null,this.indiMap=new Map,this.famMap=new Map,this.setSelectionCallback=null,this.toolsRegistered=!1}async handleGetSelectedPerson(){const t=this.detailIndi;return!t||t.startsWith("private_")?Uc("No person is currently selected."):Vo(this.toFullIndi(t))}async handleSearchIndi(t){!this.searchIndex&&this.chartData&&(this.searchIndex=W1(this.chartData));const r=this.searchIndex;if(!r)return Uc("Data not loaded.");const i=r.search(t.query).slice(0,Kce).map(a=>this.toBasicIndi(a.id)).filter(Boolean);return Vo(i)}async handleInspectIndi(t){const r=this.toFullIndi(t.id);return r?Vo(r):Uc(`No person found with id ${t.id}.`)}async handleFocusIndi(t){if(t.id.startsWith("private_"))return Uc(`No person found with id ${t.id}.`);const r=this.setSelectionCallback;return r?(r(t.id),Vo({status:"success"})):Uc("Error shifting viewport.")}async handleFindRelationshipPath(t){const n=m7(t.source,t.target,this.indiMap,this.famMap).map(i=>this.toBasicIndi(i)).filter(Boolean);return Vo(n)}async handleGetAncestors(t){const r=Math.min(t.generations??3,XR),i=g7(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return Vo(i)}async handleGetDescendants(t){const r=Math.min(t.generations??3,XR),i=v7(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return Vo(i)}setDetailIndi(t){this.detailIndi=t}setData(t){t?(this.indiMap=Im(t.chartData),this.famMap=Bb(t.chartData),this.chartData=t.chartData,this.searchIndex=null):(this.indiMap.clear(),this.famMap.clear(),this.chartData=null,this.searchIndex=null)}setSetSelectionCallback(t){this.setSelectionCallback=t}getIndiName(t){const r=this.indiMap.get(t);return r&&[r.firstName,r.lastName].filter(Boolean).join(" ")||"Unknown"}getIndiReference(t){return{id:t,name:this.getIndiName(t)}}getEvent(t){if(!t)return;const r=[];if(t.date){const n=t.date;n.day||n.month||n.year?r.push([n.day,n.month,n.year].filter(Boolean).join("-")):n.text&&r.push(n.text)}return{date:r.join(" ")||void 0,place:t.place}}toBasicIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const a=this.famMap.get(r.famc);a&&(a.wife&&(n=this.getIndiReference(a.wife)),a.husb&&(i=this.getIndiReference(a.husb)))}return{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i}}toFullIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const o=this.famMap.get(r.famc);o&&(o.wife&&(n=this.toBasicIndi(o.wife)),o.husb&&(i=this.toBasicIndi(o.husb)))}const a=[],s=[];return r.fams&&r.fams.forEach(o=>{const l=this.famMap.get(o);if(l){const u=l.wife===t?l.husb:l.wife;u&&s.push({spouse:this.toBasicIndi(u),marriage:this.getEvent(l.marriage)}),l.children&&l.children.forEach(c=>{const d=this.toBasicIndi(c);d&&a.push(d)})}}),{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i,children:a,spouses:s}}getTools(){return[{...zce,execute:()=>this.handleGetSelectedPerson()},{...$ce,execute:t=>this.handleSearchIndi(t)},{...Hce,execute:t=>this.handleInspectIndi(t)},{...qce,execute:t=>this.handleFocusIndi(t)},{...Gce,execute:t=>this.handleFindRelationshipPath(t)},{...Wce,execute:t=>this.handleGetAncestors(t)},{...Vce,execute:t=>this.handleGetDescendants(t)}]}registerTools(){if(this.toolsRegistered||!navigator.modelContext)return;const t=navigator.modelContext;this.getTools().forEach(r=>{t.registerTool(r)}),this.toolsRegistered=!0}unregisterTools(){if(!this.toolsRegistered||!navigator.modelContext)return;const r=navigator.modelContext.unregisterTool;typeof r=="function"&&this.getTools().forEach(n=>{try{r(n.name)}catch{}}),this.toolsRegistered=!1}}function Yce(e,t,r){const[n]=Q.useState(()=>new Qce),i=Q.useRef(r);Q.useEffect(()=>{i.current=r},[r]),Q.useEffect(()=>(n.registerTools(),()=>{n.unregisterTools()}),[n]),Q.useEffect(()=>{n.setData(e||null)},[e,n]),Q.useEffect(()=>{n.setDetailIndi(t||null)},[t,n]),Q.useEffect(()=>{n.setSetSelectionCallback(a=>{i.current({id:a,generation:0})})},[n])}function Xce(e){const[t,r]=Q.useState(!1),[n,i]=Q.useState(!1),[a,s]=Q.useState(null),o=Q.useRef(null);Q.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);async function l(d){if((await window.fetch(`https://www.googleapis.com/drive/v3/files/${e.failedFileId}?alt=media`,{headers:{Authorization:`Bearer ${d}`}})).status===200){r(!1),e.onAuthSuccess(e.failedFileId);return}i(!0),Ka.showPicker(m=>{r(!1),e.onAuthSuccess(m)},()=>{r(!1)})}async function u(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Ka.requestToken(!1);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Auth error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}async function c(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Ka.requestToken(!0);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Switch account error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}return P.jsxs(Vt,{open:!0,onClose:e.onCancel,centered:!0,size:"tiny",children:[P.jsxs(Lt,{children:[P.jsx($e,{name:"google drive"}),P.jsx(Ae,{id:"google_auth.title",defaultMessage:"Google Drive Access Required"})]}),P.jsxs(Vt.Content,{children:[P.jsx("p",{children:P.jsx(Ae,{id:"google_auth.instructions",defaultMessage:"To view this file, you must authenticate and select the file from your Google Drive to grant permissions."})}),n&&P.jsxs(Bn,{warning:!0,children:[P.jsx(Bn.Header,{children:P.jsx(Ae,{id:"google_auth.picker_instructions_header",defaultMessage:"Permissions Required"})}),P.jsx("p",{children:P.jsx(Ae,{id:"google_auth.picker_instructions",defaultMessage:"The application does not have permission to read this file. Please select it in the file browser popup to grant access. If this is a shared file that doesn't show up, try adding a shortcut to your Drive first."})})]}),a&&P.jsx(Bn,{negative:!0,children:P.jsx("p",{children:a})})]}),P.jsxs(Vt.Actions,{children:[P.jsx(en,{secondary:!0,onClick:e.onCancel,children:P.jsx(Ae,{id:"google_auth.cancel",defaultMessage:"Cancel"})}),n&&P.jsx(en,{basic:!0,onClick:c,loading:t,children:P.jsx(Ae,{id:"google_auth.switch_account_button",defaultMessage:"Switch Account"})}),P.jsx(en,{primary:!0,onClick:u,loading:t,children:P.jsx(Ae,{id:"google_auth.grant_button",defaultMessage:"Grant Access & Select File"})})]})]})}function Jce(e){const r=e.gedcom.indis[e.indi].tree.find(i=>i.tag==="NAME"),n=(r==null?void 0:r.data.replaceAll("/",""))??"";return P.jsx("div",{className:"collapsed-details",children:n?P.jsx("span",{className:"vertical-name",children:n}):P.jsx("span",{className:"vertical-name",children:P.jsx(Ae,{id:"name.unknown_name",defaultMessage:"N.N."})})})}var A0,JR;function N3(){if(JR)return A0;JR=1;var e=Object.prototype.toString;return A0=function(r){var n=e.call(r),i=n==="[object Arguments]";return i||(i=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),i},A0}var I0,ZR;function Zce(){if(ZR)return I0;ZR=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=N3(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(h){var m=h.constructor;return m&&m.prototype===h},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var h in window)try{if(!u["$"+h]&&t.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{l(window[h])}catch{return!0}}catch{return!0}return!1}(),d=function(h){if(typeof window>"u"||!c)return l(h);try{return l(h)}catch{return!1}};e=function(m){var y=m!==null&&typeof m=="object",g=r.call(m)==="[object Function]",w=n(m),x=y&&r.call(m)==="[object String]",b=[];if(!y&&!g&&!w)throw new TypeError("Object.keys called on a non-object");var E=s&&g;if(x&&m.length>0&&!t.call(m,0))for(var C=0;C0)for(var v=0;v3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,h=!!n&&n(a,s);if(e)e(a,s,{configurable:c===null&&h?h.configurable:!c,enumerable:l===null&&h?h.enumerable:!l,value:o,writable:u===null&&h?h.writable:!u});else if(d||!l&&!u&&!c)a[s]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},F0}var L0,s2;function rg(){if(s2)return L0;s2=1;var e=gd(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},L0=t,L0}var j0,l2;function Hx(){if(l2)return j0;l2=1;var e=efe(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,i=$x(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=rg()(),o=function(u,c,d,h){if(c in u){if(h===!0){if(u[c]===d)return}else if(!a(h)||!h())return}s?i(u,c,d,!0):i(u,c,d)},l=function(u,c){var d=arguments.length>2?arguments[2]:{},h=e(c);t&&(h=n.call(h,Object.getOwnPropertySymbols(c)));for(var m=0;m"u"||!A?e:A(Uint8Array),G={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":z,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!A?e:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!A?e:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":v,"%TypedArray%":Y,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":q,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":D,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":g,"%Reflect.getPrototypeOf%":L};if(A)try{null.error}catch(Ne){var U=A(A(Ne));G["%Error.prototype%"]=U}var W=function Ne(Le){var Ve;if(Le==="%AsyncFunction%")Ve=x("async function () {}");else if(Le==="%GeneratorFunction%")Ve=x("function* () {}");else if(Le==="%AsyncGeneratorFunction%")Ve=x("async function* () {}");else if(Le==="%AsyncGenerator%"){var Oe=Ne("%AsyncGeneratorFunction%");Oe&&(Ve=Oe.prototype)}else if(Le==="%AsyncIteratorPrototype%"){var De=Ne("%AsyncGenerator%");De&&A&&(Ve=A(De.prototype))}return G[Le]=Ve,Ve},X={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},J=yd(),K=Os(),F=J.call(N,Array.prototype.concat),$=J.call(q,Array.prototype.splice),j=J.call(N,String.prototype.replace),M=J.call(N,String.prototype.slice),re=J.call(N,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,xe=function(Le){var Ve=M(Le,0,1),Oe=M(Le,-1);if(Ve==="%"&&Oe!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Oe==="%"&&Ve!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var De=[];return j(Le,ue,function(We,rt,st,lt){De[De.length]=st?j(lt,pe,"$1"):rt||We}),De},Ie=function(Le,Ve){var Oe=Le,De;if(K(X,Oe)&&(De=X[Oe],Oe="%"+De[0]+"%"),K(G,Oe)){var We=G[Oe];if(We===z&&(We=W(Oe)),typeof We>"u"&&!Ve)throw new o("intrinsic "+Le+" exists, but is not available. Please file an issue!");return{alias:De,name:Oe,value:We}}throw new s("intrinsic "+Le+" does not exist!")};return p_=function(Le,Ve){if(typeof Le!="string"||Le.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ve!="boolean")throw new o('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,Le)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Oe=xe(Le),De=Oe.length>0?Oe[0]:"",We=Ie("%"+De+"%",Ve),rt=We.name,st=We.value,lt=!1,Dt=We.alias;Dt&&(De=Dt[0],$(Oe,F([0,1],Dt)));for(var Qt=1,mt=!0;Qt=Oe.length){var mn=b(st,ft);mt=!!mn,mt&&"get"in mn&&!("originalValue"in mn.get)?st=mn.get:st=st[ft]}else mt=K(st,ft),st=st[ft];mt&&!lt&&(G[rt]=st)}}return st},p_}var m_,j2;function mfe(){if(j2)return m_;j2=1;var e=ni(),t=$x(),r=rg()(),n=Ps(),i=wt(),a=e("%Math.floor%");return m_=function(o,l){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&n){var h=n(o,"length");h&&!h.configurable&&(c=!1),h&&!h.writable&&(d=!1)}return(c||d||!u)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},m_}var g_,B2;function gfe(){if(B2)return g_;B2=1;var e=yd(),t=Wx(),r=U3();return g_=function(){return r(e,t,arguments)},g_}var U2;function z3(){return U2||(U2=1,function(e){var t=mfe(),r=gd(),n=ag(),i=gfe();e.exports=function(s){var o=n(arguments),l=1+s.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(B0)),B0.exports}var v_,z2;function $3(){if(z2)return v_;z2=1;var e=vd();return v_=function(r){return(typeof r=="number"||typeof r=="bigint")&&!e(r)&&r!==1/0&&r!==-1/0},v_}var y_,$2;function H3(){if($2)return y_;$2=1;var e=D3(),t=qx(),r=vd(),n=$3();return y_=function(a){if(typeof a!="number"||r(a)||!n(a))return!1;var s=e(a);return t(s)===s},y_}var __,H2;function Oi(){return H2||(H2=1,__=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}),__}var w_,q2;function vfe(){return q2||(q2=1,w_=4294967295),w_}var b_,G2;function yfe(){return G2||(G2=1,b_=typeof Reflect<"u"&&Reflect.setPrototypeOf||null),b_}var x_,W2;function _fe(){if(W2)return x_;W2=1;var e=ig();return x_=e.setPrototypeOf||null,x_}var E_,V2;function wfe(){if(V2)return E_;V2=1;var e=ag(),t=Ps(),r=wt(),n={};try{n.__proto__=null}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!("toString"in n),a=t&&t(Object.prototype,"__proto__");return E_=i&&(!!a&&typeof a.set=="function"&&e([a.set])||function(o,l){if(o==null)throw new r("set Object.prototype.__proto__ called on null or undefined");return o.__proto__=l,l}),E_}var S_,K2;function bfe(){if(K2)return S_;K2=1;var e=yfe(),t=_fe(),r=wfe(),n=wt();return S_=e?function(a,s){if(e(a,s))return a;throw new n("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:t||(r?function(a,s){return r(a,s),a}:null),S_}var C_,Q2;function xfe(){if(Q2)return C_;Q2=1;var e=ni(),t=e("%Array.prototype%"),r=M3(),n=ng(),i=wt(),a=H3(),s=vfe(),o=bfe();return C_=function(u){if(!a(u)||u<0)throw new i("Assertion failed: `length` must be an integer Number >= 0");if(u>s)throw new r("length is greater than (2**32 - 1)");var c=arguments.length>1?arguments[1]:t,d=[];if(c!==t){if(!o)throw new n("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");o(d,c)}return u!==0&&(d.length=u),d},C_}const Efe={},Sfe=Object.freeze(Object.defineProperty({__proto__:null,default:Efe},Symbol.toStringTag,{value:"Module"})),Cfe=$f(Sfe);var k_,Y2;function kfe(){if(Y2)return k_;Y2=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&a&&typeof a.get=="function"?a.get:null,o=i&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,d=c?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,m=h?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,w=Function.prototype.toString,x=String.prototype.match,b=String.prototype.slice,E=String.prototype.replace,C=String.prototype.toUpperCase,v=String.prototype.toLowerCase,k=RegExp.prototype.test,A=Array.prototype.concat,D=Array.prototype.join,L=Array.prototype.slice,q=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,X=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(oe){return oe.__proto__}:null);function J(oe,le){if(oe===1/0||oe===-1/0||oe!==oe||oe&&oe>-1e3&&oe<1e3||k.call(/e/,le))return le;var Pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof oe=="number"){var vt=oe<0?-q(-oe):q(oe);if(vt!==oe){var bt=String(vt),Ye=b.call(le,bt.length+1);return E.call(bt,Pe,"$&_")+"."+E.call(E.call(Ye,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(le,Pe,"$&_")}var K=Cfe,F=K.custom,$=We(F)?F:null,j={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};k_=function oe(le,Pe,vt,bt){var Ye=Pe||{};if(lt(Ye,"quoteStyle")&&!lt(j,Ye.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(Ye,"maxStringLength")&&(typeof Ye.maxStringLength=="number"?Ye.maxStringLength<0&&Ye.maxStringLength!==1/0:Ye.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Pn=lt(Ye,"customInspect")?Ye.customInspect:!0;if(typeof Pn!="boolean"&&Pn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(Ye,"indent")&&Ye.indent!==null&&Ye.indent!==" "&&!(parseInt(Ye.indent,10)===Ye.indent&&Ye.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(Ye,"numericSeparator")&&typeof Ye.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ri=Ye.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return B(le,Ye);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var wn=String(le);return ri?J(le,wn):wn}if(typeof le=="bigint"){var Lr=String(le)+"n";return ri?J(le,Lr):Lr}var Ms=typeof Ye.depth>"u"?5:Ye.depth;if(typeof vt>"u"&&(vt=0),vt>=Ms&&Ms>0&&typeof le=="object")return xe(le)?"[Array]":"[Object]";var Ni=me(Ye,vt);if(typeof bt>"u")bt=[];else if(mt(bt,le)>=0)return"[Circular]";function On(Mi,Co,xd){if(Co&&(bt=L.call(bt),bt.push(Co)),xd){var Ou={depth:Ye.depth};return lt(Ye,"quoteStyle")&&(Ou.quoteStyle=Ye.quoteStyle),oe(Mi,Ou,vt+1,bt)}return oe(Mi,Ye,vt+1,bt)}if(typeof le=="function"&&!Ne(le)){var Tu=Qt(le),ma=at(le,On);return"[Function"+(Tu?": "+Tu:" (anonymous)")+"]"+(ma.length>0?" { "+D.call(ma,", ")+" }":"")}if(We(le)){var Ds=G?E.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):Y.call(le);return typeof le=="object"&&!G?O(Ds):Ds}if(ge(le)){for(var jr="<"+v.call(String(le.nodeName)),Au=le.attributes||[],ii=0;ii",jr}if(xe(le)){if(le.length===0)return"[]";var ga=at(le,On);return Ni&&!de(ga)?"["+Ge(ga,Ni)+"]":"[ "+D.call(ga,", ")+" ]"}if(Le(le)){var va=at(le,On);return!("cause"in Error.prototype)&&"cause"in le&&!W.call(le,"cause")?"{ ["+String(le)+"] "+D.call(A.call("[cause]: "+On(le.cause),va),", ")+" }":va.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+D.call(va,", ")+" }"}if(typeof le=="object"&&Pn){if($&&typeof le[$]=="function"&&K)return K(le,{depth:Ms-vt});if(Pn!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(ft(le)){var Fs=[];return n&&n.call(le,function(Mi,Co){Fs.push(On(Co,le,!0)+" => "+On(Mi,le))}),ie("Map",r.call(le),Fs,Ni)}if(mn(le)){var _d=[];return o&&o.call(le,function(Mi){_d.push(On(Mi,le))}),ie("Set",s.call(le),_d,Ni)}if(gt(le))return V("WeakMap");if(ln(le))return V("WeakSet");if(tn(le))return V("WeakRef");if(Oe(le))return O(On(Number(le)));if(rt(le))return O(On(N.call(le)));if(De(le))return O(y.call(le));if(Ve(le))return O(On(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof gi<"u"&&le===gi)return"{ [object globalThis] }";if(!Ie(le)&&!Ne(le)){var Iu=at(le,On),wd=X?X(le)===Object.prototype:le instanceof Object||le.constructor===Object,Br=le instanceof Object?"":"null prototype",Ru=!wd&&U&&Object(le)===le&&U in le?b.call(Dt(le),8,-1):Br?"Object":"",bd=wd||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",Pu=bd+(Ru||Br?"["+D.call(A.call([],Ru||[],Br||[]),": ")+"] ":"");return Iu.length===0?Pu+"{}":Ni?Pu+"{"+Ge(Iu,Ni)+"}":Pu+"{ "+D.call(Iu,", ")+" }"}return String(le)};function re(oe,le,Pe){var vt=Pe.quoteStyle||le,bt=j[vt];return bt+oe+bt}function ue(oe){return E.call(String(oe),/"/g,""")}function pe(oe){return!U||!(typeof oe=="object"&&(U in oe||typeof oe[U]<"u"))}function xe(oe){return Dt(oe)==="[object Array]"&&pe(oe)}function Ie(oe){return Dt(oe)==="[object Date]"&&pe(oe)}function Ne(oe){return Dt(oe)==="[object RegExp]"&&pe(oe)}function Le(oe){return Dt(oe)==="[object Error]"&&pe(oe)}function Ve(oe){return Dt(oe)==="[object String]"&&pe(oe)}function Oe(oe){return Dt(oe)==="[object Number]"&&pe(oe)}function De(oe){return Dt(oe)==="[object Boolean]"&&pe(oe)}function We(oe){if(G)return oe&&typeof oe=="object"&&oe instanceof Symbol;if(typeof oe=="symbol")return!0;if(!oe||typeof oe!="object"||!Y)return!1;try{return Y.call(oe),!0}catch{}return!1}function rt(oe){if(!oe||typeof oe!="object"||!N)return!1;try{return N.call(oe),!0}catch{}return!1}var st=Object.prototype.hasOwnProperty||function(oe){return oe in this};function lt(oe,le){return st.call(oe,le)}function Dt(oe){return g.call(oe)}function Qt(oe){if(oe.name)return oe.name;var le=x.call(w.call(oe),/^function\s*([\w$]+)/);return le?le[1]:null}function mt(oe,le){if(oe.indexOf)return oe.indexOf(le);for(var Pe=0,vt=oe.length;Pele.maxStringLength){var Pe=oe.length-le.maxStringLength,vt="... "+Pe+" more character"+(Pe>1?"s":"");return B(b.call(oe,0,le.maxStringLength),le)+vt}var bt=M[le.quoteStyle||"single"];bt.lastIndex=0;var Ye=E.call(E.call(oe,bt,"\\$1"),/[\x00-\x1f]/g,I);return re(Ye,"single",le)}function I(oe){var le=oe.charCodeAt(0),Pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return Pe?"\\"+Pe:"\\x"+(le<16?"0":"")+C.call(le.toString(16))}function O(oe){return"Object("+oe+")"}function V(oe){return oe+" { ? }"}function ie(oe,le,Pe,vt){var bt=vt?Ge(Pe,vt):D.call(Pe,", ");return oe+" ("+le+") {"+bt+"}"}function de(oe){for(var le=0;le=0)return!1;return!0}function me(oe,le){var Pe;if(oe.indent===" ")Pe=" ";else if(typeof oe.indent=="number"&&oe.indent>0)Pe=D.call(Array(oe.indent+1)," ");else return null;return{base:Pe,prev:D.call(Array(le+1),Pe)}}function Ge(oe,le){if(oe.length===0)return"";var Pe=` +`+le.prev+le.base;return Pe+D.call(oe,","+Pe)+` +`+le.prev}function at(oe,le){var Pe=xe(oe),vt=[];if(Pe){vt.length=oe.length;for(var bt=0;bt-1?t([s]):s},I_}var R_,eP;function q3(){if(eP)return R_;eP=1;var e=ni(),t=e("%Array%"),r=!t.isArray&&pa()("Object.prototype.toString");return R_=t.isArray||function(i){return r(i)==="[object Array]"},R_}var P_,tP;function Vx(){return tP||(tP=1,P_=q3()),P_}var op={exports:{}},O_,nP;function Tfe(){return nP||(nP=1,O_=ni()),O_}var N_,rP;function So(){if(rP)return N_;rP=1;var e=wt(),t=Os(),r={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};return N_=function(i){if(!i||typeof i!="object")return!1;for(var a in i)if(t(i,a)&&!r[a])return!1;var s=t(i,"[[Value]]")||t(i,"[[Writable]]"),o=t(i,"[[Get]]")||t(i,"[[Set]]");if(s&&o)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},N_}var M_,iP;function G3(){if(iP)return M_;iP=1;var e=rg(),t=gd(),r=e.hasArrayLengthDefineBug(),n=r&&q3(),i=pa(),a=i("Object.prototype.propertyIsEnumerable");return M_=function(o,l,u,c,d,h){if(!t){if(!o(h)||!h["[[Configurable]]"]||!h["[[Writable]]"]||d in c&&a(c,d)!==!!h["[[Enumerable]]"])return!1;var m=h["[[Value]]"];return c[d]=m,l(c[d],m)}return r&&d==="length"&&"[[Value]]"in h&&n(c)&&c.length!==h["[[Value]]"]?(c.length=h["[[Value]]"],c.length===h["[[Value]]"]):(t(c,d,u(h)),!0)},M_}var D_,aP;function Afe(){return aP||(aP=1,D_=function(t){if(typeof t>"u")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}),D_}var F_,oP;function W3(){if(oP)return F_;oP=1;var e=wt(),t=So(),r=Afe();return F_=function(i){if(typeof i<"u"&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return r(i)},F_}var L_,sP;function Kx(){if(sP)return L_;sP=1;var e=wt(),t=Os(),r=So();return L_=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))},L_}var j_,lP;function Qx(){if(lP)return j_;lP=1;var e=vd();return j_=function(r,n){return r===n?r===0?1/r===1/n:!0:e(r)&&e(n)},j_}var B_,uP;function V3(){if(uP)return B_;uP=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(b){b!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(E){try{var C=e.call(E);return i.test(C)}catch{return!1}},s=function(E){try{return a(E)?!1:(e.call(E),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",u="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",m="[object HTMLCollection]",y=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var x=document.all;o.call(x)===o.call(document.all)&&(w=function(E){if((g||!E)&&(typeof E>"u"||typeof E=="object"))try{var C=o.call(E);return(C===d||C===h||C===m||C===l)&&E("")==null}catch{}return!1})}return B_=t?function(E){if(w(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,r)}catch(C){if(C!==n)return!1}return!a(E)&&s(E)}:function(E){if(w(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(y)return s(E);if(a(E))return!1;var C=o.call(E);return C!==u&&C!==c&&!/^\[object HTML/.test(C)?!1:s(E)},B_}var U_,cP;function K3(){return cP||(cP=1,U_=V3()),U_}var z_,fP;function Ife(){return fP||(fP=1,z_=function(t){return!!t}),z_}var $_,dP;function Q3(){if(dP)return $_;dP=1;var e=Os(),t=wt(),r=Oi(),n=K3(),i=Ife();return $_=function(s){if(!r(s))throw new t("ToPropertyDescriptor requires an object");var o={};if(e(s,"enumerable")&&(o["[[Enumerable]]"]=i(s.enumerable)),e(s,"configurable")&&(o["[[Configurable]]"]=i(s.configurable)),e(s,"value")&&(o["[[Value]]"]=s.value),e(s,"writable")&&(o["[[Writable]]"]=i(s.writable)),e(s,"get")){var l=s.get;if(typeof l<"u"&&!n(l))throw new t("getter must be a function");o["[[Get]]"]=l}if(e(s,"set")){var u=s.set;if(typeof u<"u"&&!n(u))throw new t("setter must be a function");o["[[Set]]"]=u}if((e(o,"[[Get]]")||e(o,"[[Set]]"))&&(e(o,"[[Value]]")||e(o,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return o},$_}var H_,hP;function Rfe(){if(hP)return H_;hP=1;var e=wt(),t=Oi(),r=So(),n=G3(),i=W3(),a=Kx(),s=Ns(),o=Qx(),l=Q3();return H_=function(c,d,h){if(!t(c))throw new e("Assertion failed: Type(O) is not Object");if(!s(d))throw new e("Assertion failed: P is not a Property Key");var m=r(h)?h:l(h);if(!r(m))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,o,i,c,d,m)},H_}var pP;function Pfe(){if(pP)return op.exports;pP=1;var e=Tfe(),t=e("%Reflect.construct%",!0),r=Rfe();try{r({},"",{"[[Get]]":function(){}})}catch{r=null}if(r&&t){var n={},i={};r(i,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),op.exports=function(s){try{t(s,i)}catch(o){return o===n}}}else op.exports=function(s){return typeof s=="function"&&!!s.prototype};return op.exports}var q_,mP;function Ofe(){if(mP)return q_;mP=1;var e=ni(),t=e("%Symbol.species%",!0),r=wt(),n=H3(),i=Oi(),a=xfe(),s=og(),o=Vx(),l=Pfe();return q_=function(c,d){if(!n(d)||d<0)throw new r("Assertion failed: length must be an integer >= 0");var h=o(c);if(!h)return a(d);var m=s(c,"constructor");if(t&&i(m)&&(m=s(m,t),m===null&&(m=void 0)),typeof m>"u")return a(d);if(!l(m))throw new r("C must be a constructor");return new m(d)},q_}var G_,gP;function Y3(){return gP||(gP=1,G_=Number.MAX_SAFE_INTEGER||9007199254740991),G_}var W_,vP;function Nfe(){if(vP)return W_;vP=1;var e=ni(),t=pa(),r=wt(),n=Vx(),i=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return W_=function(s,o){var l=arguments.length>2?arguments[2]:[];if(!n(l))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(s,o,l)},W_}var V_,yP;function Yx(){if(yP)return V_;yP=1;var e=wt(),t=Os(),r=So();return V_=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))},V_}var K_,_P;function X3(){return _P||(_P=1,K_=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),K_}var Q_,wP;function Mfe(){if(wP)return Q_;wP=1;var e=ni(),t=e("%Object.preventExtensions%",!0),r=e("%Object.isExtensible%",!0),n=X3();return Q_=t?function(a){return!n(a)&&r(a)}:function(a){return!n(a)},Q_}var Y_,bP;function Dfe(){if(bP)return Y_;bP=1;var e=So();return Y_=function(r,n){return e(n)&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(r.IsAccessorDescriptor(n)||r.IsDataDescriptor(n))},Y_}var X_,xP;function Ffe(){if(xP)return X_;xP=1;var e=wt(),t=Yx(),r=Kx(),n=So();return X_=function(a){if(typeof a>"u")return!1;if(!n(a))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(a)&&!r(a)},X_}var J_,EP;function Lfe(){if(EP)return J_;EP=1;var e=wt(),t=Oi(),r=G3(),n=Dfe(),i=So(),a=W3(),s=Yx(),o=Kx(),l=Ffe(),u=Ns(),c=Qx();return J_=function(h,m,y,g,w){if(typeof h<"u"&&!t(h))throw new e("Assertion failed: O must be undefined or an Object");if(!u(m))throw new e("Assertion failed: P must be a Property Key");if(typeof y!="boolean")throw new e("Assertion failed: extensible must be a Boolean");if(!i(g))throw new e("Assertion failed: Desc must be a Property Descriptor");if(typeof w<"u"&&!i(w))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof w>"u")return y?typeof h>"u"?!0:s(g)?r(o,c,a,h,m,g):r(o,c,a,h,m,{"[[Configurable]]":!!g["[[Configurable]]"],"[[Enumerable]]":!!g["[[Enumerable]]"],"[[Value]]":g["[[Value]]"],"[[Writable]]":!!g["[[Writable]]"]}):!1;if(!n({IsAccessorDescriptor:s,IsDataDescriptor:o},w))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!w["[[Configurable]]"]){if("[[Configurable]]"in g&&g["[[Configurable]]"]||"[[Enumerable]]"in g&&!c(g["[[Enumerable]]"],w["[[Enumerable]]"])||!l(g)&&!c(s(g),s(w)))return!1;if(s(w)){if("[[Get]]"in g&&!c(g["[[Get]]"],w["[[Get]]"])||"[[Set]]"in g&&!c(g["[[Set]]"],w["[[Set]]"]))return!1}else if(!w["[[Writable]]"]&&("[[Writable]]"in g&&g["[[Writable]]"]||"[[Value]]"in g&&!c(g["[[Value]]"],w["[[Value]]"])))return!1}if(typeof h<"u"){var x,b;return o(w)&&s(g)?(x=("[[Configurable]]"in g?g:w)["[[Configurable]]"],b=("[[Enumerable]]"in g?g:w)["[[Enumerable]]"],r(o,c,a,h,m,{"[[Configurable]]":!!x,"[[Enumerable]]":!!b,"[[Get]]":("[[Get]]"in g?g:w)["[[Get]]"],"[[Set]]":("[[Set]]"in g?g:w)["[[Set]]"]})):s(w)&&o(g)?(x=("[[Configurable]]"in g?g:w)["[[Configurable]]"],b=("[[Enumerable]]"in g?g:w)["[[Enumerable]]"],r(o,c,a,h,m,{"[[Configurable]]":!!x,"[[Enumerable]]":!!b,"[[Value]]":("[[Value]]"in g?g:w)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in g?g:w)["[[Writable]]"]})):r(o,c,a,h,m,g)}return!0},J_}var Z_,SP;function jfe(){if(SP)return Z_;SP=1;var e=Ps(),t=ng(),r=wt(),n=Oi(),i=So(),a=Yx(),s=Mfe(),o=Ns(),l=Q3(),u=Qx(),c=Lfe();return Z_=function(h,m,y){if(!n(h))throw new r("Assertion failed: O must be an Object");if(!o(m))throw new r("Assertion failed: P must be a Property Key");if(!i(y))throw new r("Assertion failed: Desc must be a Property Descriptor");if(!e){if(a(y))throw new t("This environment does not support accessor property descriptors.");var g=!(m in h)&&y["[[Writable]]"]&&y["[[Enumerable]]"]&&y["[[Configurable]]"]&&"[[Value]]"in y,w=m in h&&(!("[[Configurable]]"in y)||y["[[Configurable]]"])&&(!("[[Enumerable]]"in y)||y["[[Enumerable]]"])&&(!("[[Writable]]"in y)||y["[[Writable]]"])&&"[[Value]]"in y;if(g||w)return h[m]=y["[[Value]]"],u(h[m],y["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var x=e(h,m),b=x&&l(x),E=s(h);return c(h,m,E,y,b)},Z_}var ew,CP;function Bfe(){if(CP)return ew;CP=1;var e=wt(),t=Oi(),r=Ns(),n=jfe();return ew=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!r(s))throw new e("Assertion failed: P is not a Property Key");var l={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":o,"[[Writable]]":!0};return n(a,s,l)},ew}var tw,kP;function Ufe(){if(kP)return tw;kP=1;var e=wt(),t=Oi(),r=Bfe(),n=Ns();return tw=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!n(s))throw new e("Assertion failed: P is not a Property Key");var l=r(a,s,o);if(!l)throw new e("unable to create data property")},tw}var nw,TP;function zfe(){if(TP)return nw;TP=1;var e=wt(),t=Oi(),r=Ns();return nw=function(i,a){if(!t(i))throw new e("Assertion failed: `O` must be an Object");if(!r(a))throw new e("Assertion failed: `P` must be a Property Key");return a in i},nw}var rw,AP;function $fe(){return AP||(AP=1,rw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),rw}var iw,IP;function J3(){if(IP)return iw;IP=1;var e=F3();return iw=function(){return e()&&!!Symbol.toStringTag},iw}var aw,RP;function Hfe(){if(RP)return aw;RP=1;var e=pa(),t=e("Date.prototype.getDay"),r=function(o){try{return t(o),!0}catch{return!1}},n=e("Object.prototype.toString"),i="[object Date]",a=J3()();return aw=function(o){return typeof o!="object"||o===null?!1:a?r(o):n(o)===i},aw}var sp={exports:{}},ow,PP;function qfe(){if(PP)return ow;PP=1;var e=pa(),t=J3()(),r=Os(),n=Ps(),i;if(t){var a=e("RegExp.prototype.exec"),s={},o=function(){throw s},l={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=o),i=function(h){if(!h||typeof h!="object")return!1;var m=n(h,"lastIndex"),y=m&&r(m,"value");if(!y)return!1;try{a(h,l)}catch(g){return g===s}}}else{var u=e("Object.prototype.toString"),c="[object RegExp]";i=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:u(h)===c}}return ow=i,ow}var sw,OP;function Z3(){if(OP)return sw;OP=1;var e=pa(),t=qfe(),r=e("RegExp.prototype.exec"),n=wt();return sw=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(o){return r(a,o)!==null}},sw}var NP;function Gfe(){if(NP)return sp.exports;NP=1;var e=pa(),t=e("Object.prototype.toString"),r=L3()(),n=Z3();if(r){var i=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(i(l))};sp.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else sp.exports=function(l){return!1};return sp.exports}var lw,MP;function Wfe(){if(MP)return lw;MP=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=$fe(),r=V3(),n=Hfe(),i=Gfe(),a=function(l,u){if(typeof l>"u"||l===null)throw new TypeError("Cannot call method on "+l);if(typeof u!="string"||u!=="number"&&u!=="string")throw new TypeError('hint must be "string" or "number"');var c=u==="string"?["toString","valueOf"]:["valueOf","toString"],d,h,m;for(m=0;m1&&(arguments[1]===String?u="string":arguments[1]===Number&&(u="number"));var c;if(e&&(Symbol.toPrimitive?c=s(l,Symbol.toPrimitive):i(l)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(l,u);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return u==="default"&&(n(l)||i(l))&&(u="string"),a(l,u==="default"?"number":u)},lw}var uw,DP;function Vfe(){if(DP)return uw;DP=1;var e=Wfe();return uw=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},uw}var cw,FP;function Xx(){if(FP)return cw;FP=1;var e=wt();return cw=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},cw}var fw,LP;function ej(){if(LP)return fw;LP=1;var e=ni(),t=e("%String%"),r=wt();return fw=function(i){if(typeof i=="symbol")throw new r("Cannot convert a Symbol value to a string");return t(i)},fw}var dw,jP;function tj(){if(jP)return dw;jP=1;var e=Xx(),t=ej(),r=pa(),n=r("String.prototype.replace"),i=/^\s$/.test("᠎"),a=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return dw=function(){var l=t(e(this));return n(n(l,a,""),s,"")},dw}var hw,BP;function nj(){if(BP)return hw;BP=1;var e=tj(),t="​",r="᠎";return hw=function(){return String.prototype.trim&&t.trim()===t&&r.trim()===r&&("_"+r).trim()==="_"+r&&(r+"_").trim()===r+"_"?String.prototype.trim:e},hw}var pw,UP;function Kfe(){if(UP)return pw;UP=1;var e=rg()(),t=$x(),r=nj();return pw=function(){var i=r();return String.prototype.trim!==i&&(e?t(String.prototype,"trim",i,!0):t(String.prototype,"trim",i)),i},pw}var mw,zP;function Qfe(){if(zP)return mw;zP=1;var e=z3(),t=Hx(),r=Xx(),n=tj(),i=nj(),a=Kfe(),s=e(i()),o=function(u){return r(u),s(u)};return t(o,{getPolyfill:i,implementation:n,shim:a}),mw=o,mw}var gw,$P;function Yfe(){if($P)return gw;$P=1;var e=ni(),t=e("%RegExp%"),r=wt(),n=e("%parseInt%"),i=pa(),a=Z3(),s=i("String.prototype.slice"),o=a(/^0b[01]+$/i),l=a(/^0o[0-7]+$/i),u=a(/^[-+]0x[0-9a-f]+$/i),c=["…","​","￾"].join(""),d=new t("["+c+"]","g"),h=a(d),m=Qfe();return gw=function y(g){if(typeof g!="string")throw new r("Assertion failed: `argument` is not a String");if(o(g))return+n(s(g,2),2);if(l(g))return+n(s(g,2),8);if(h(g)||u(g))return NaN;var w=m(g);return w!==g?y(w):+g},gw}var vw,HP;function Xfe(){if(HP)return vw;HP=1;var e=ni(),t=wt(),r=e("%Number%"),n=X3(),i=Vfe(),a=Yfe();return vw=function(o){var l=n(o)?o:i(o,r);if(typeof l=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof l=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof l=="string"?a(l):+l},vw}var yw,qP;function Jfe(){if(qP)return yw;qP=1;var e=qx();return yw=function(r){return typeof r=="bigint"?r:e(r)},yw}var _w,GP;function Zfe(){if(GP)return _w;GP=1;var e=Jfe(),t=wt();return _w=function(n){if(typeof n!="number"&&typeof n!="bigint")throw new t("argument must be a Number or a BigInt");var i=n<0?-e(-n):e(n);return i===0?0:i},_w}var ww,WP;function ede(){if(WP)return ww;WP=1;var e=Xfe(),t=Zfe(),r=vd(),n=$3();return ww=function(a){var s=e(a);return r(s)||s===0?0:n(s)?t(s):s},ww}var bw,VP;function rj(){if(VP)return bw;VP=1;var e=Y3(),t=ede();return bw=function(n){var i=t(n);return i<=0?0:i>e?e:i},bw}var xw,KP;function tde(){if(KP)return xw;KP=1;var e=wt(),t=Oi(),r=og(),n=rj();return xw=function(a){if(!t(a))throw new e("Assertion failed: `obj` must be an Object");return n(r(a,"length"))},xw}var Ew,QP;function nde(){if(QP)return Ew;QP=1;var e=wt(),t=Y3(),r=Nfe(),n=Ufe(),i=og(),a=zfe(),s=Vx(),o=tde(),l=ej();return Ew=function u(c,d,h,m,y){var g;arguments.length>5&&(g=arguments[5]);for(var w=m,x=0;x0&&(v=s(C)),v){var k=o(C);w=u(c,C,k,w,y-1)}else{if(w>=t)throw new e("index too large");n(c,l(w),C),w+=1}}x+=1}return w},Ew}var Sw,YP;function rde(){if(YP)return Sw;YP=1;var e=ig(),t=Xx();return Sw=function(n){return t(n),e(n)},Sw}var Cw,XP;function ide(){return XP||(XP=1,Cw=rde()),Cw}var kw,JP;function ij(){if(JP)return kw;JP=1;var e=Ofe(),t=nde(),r=og(),n=K3(),i=rj(),a=ide();return kw=function(o){var l=a(this),u=i(r(l,"length"));if(!n(o))throw new TypeError("mapperFunction must be a function");var c;arguments.length>1&&(c=arguments[1]);var d=e(l,0);return t(d,l,u,0,1,o,c),d},kw}var Tw,ZP;function aj(){if(ZP)return Tw;ZP=1;var e=ij();return Tw=function(){return Array.prototype.flatMap||e},Tw}var Aw,eO;function ade(){if(eO)return Aw;eO=1;var e=Os(),t=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",r=t&&Array.prototype[Symbol.unscopables],n=TypeError;return Aw=function(a){if(typeof a!="string"||!a)throw new n("method must be a non-empty string");if(!e(Array.prototype,a))throw new n("method must be on Array.prototype");t&&(r[a]=!0)},Aw}var Iw,tO;function ode(){if(tO)return Iw;tO=1;var e=Hx(),t=ade(),r=aj();return Iw=function(){var i=r();return e(Array.prototype,{flatMap:i},{flatMap:function(){return Array.prototype.flatMap!==i}}),t("flatMap"),i},Iw}var Rw,nO;function sde(){if(nO)return Rw;nO=1;var e=Hx(),t=z3(),r=ij(),n=aj(),i=n(),a=ode(),s=t(i);return e(s,{getPolyfill:n,implementation:r,shim:a}),Rw=s,Rw}var lde=sde();const sg=In(lde);function oj({files:e}){return e!=null&&e.length?P.jsx(tt,{children:e.map((t,r)=>P.jsxs(tt.Item,{children:[P.jsx(tt.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),P.jsxs(tt.Content,{children:[P.jsx(tt.Header,{children:P.jsx("a",{target:"_blank",href:t.url,rel:"noopener noreferrer",children:t.filename||t.url.split("/").pop()||t.url})}),P.jsx(tt.Description,{children:t.titl&&P.jsx("div",{children:t.titl})})]})]},r))}):null}function ude(e,t,r){const n=zf(e,t),i=e.qualifier||t.qualifier,a=i&&aD(i,r)+" ";return r.formatMessage({id:"age.exact",defaultMessage:"{qualifier}{age, plural, =0 {Less than 1 year} one {1 year} other {# years}}"},{age:n,qualifier:a})}function lp(e,t,r){const n=zf(e,t);return r.formatMessage({id:"age.more",defaultMessage:"More than {age, plural, =0 {0 years} one {1 year} other {# years}}"},{age:n})}function up(e,t,r){const n=zf(e,t);return r.formatMessage({id:"age.less",defaultMessage:"Less than {age, plural, =0 {1 year} one {1 year} other {# years}}"},{age:n})}function Pw(e,t,r,n,i){const a=zf(t,r),s=zf(e,n);return i.formatMessage({id:"age.between",defaultMessage:"Between {ageFrom} and {ageTo, plural, =0 {0 years} one {1 year} other {# years}}"},{ageFrom:a,ageTo:s})}function cde(e,t){return e&&t?!g1(e)||!g1(t)||rd(e,t)>0?!1:e.dateRange&&t.dateRange&&v1(e==null?void 0:e.dateRange)&&v1(t==null?void 0:t.dateRange)?!n7(e.dateRange,t.dateRange):!0:!1}function zf(e,t){const r=y1(e),n=y1(t),i=r.getUTCFullYear();let a=n.getUTCFullYear()-i,s=n.getUTCMonth()-r.getUTCMonth();return s<0&&(a--,s+=12),n.getUTCDate()-r.getUTCDate()<0&&s<=0&&a--,Math.abs(a)}function fde(e,t,r){var n,i,a,s,o,l,u,c,d,h,m,y,g,w,x,b,E,C,v,k,A,D,L,q,N,z,Y,G,U,W,X,J,K,F;if(e&&t){const $=dn.getDate(e),j=dn.getDate(t);if(cde($,j)){if($!=null&&$.date){if(j!=null&&j.date)return ude($.date,j.date,r);if((n=j==null?void 0:j.dateRange)!=null&&n.from&&((i=j.dateRange)!=null&&i.to))return Pw($.date,$.date,(a=j==null?void 0:j.dateRange)==null?void 0:a.from,(s=j==null?void 0:j.dateRange)==null?void 0:s.to,r);if((o=j==null?void 0:j.dateRange)!=null&&o.from)return lp($.date,(l=j.dateRange)==null?void 0:l.from,r);if((u=j==null?void 0:j.dateRange)!=null&&u.to)return up($.date,(c=j.dateRange)==null?void 0:c.to,r)}if((d=$==null?void 0:$.dateRange)!=null&&d.from&&((h=$==null?void 0:$.dateRange)!=null&&h.to)){if(j!=null&&j.date)return Pw((m=$==null?void 0:$.dateRange)==null?void 0:m.from,(y=$==null?void 0:$.dateRange)==null?void 0:y.to,j==null?void 0:j.date,j==null?void 0:j.date,r);if((g=j==null?void 0:j.dateRange)!=null&&g.from&&((w=j.dateRange)!=null&&w.to))return Pw((x=$==null?void 0:$.dateRange)==null?void 0:x.from,(b=$==null?void 0:$.dateRange)==null?void 0:b.to,(E=j==null?void 0:j.dateRange)==null?void 0:E.from,(C=j==null?void 0:j.dateRange)==null?void 0:C.to,r);if((v=j==null?void 0:j.dateRange)!=null&&v.from)return lp((k=$.dateRange)==null?void 0:k.to,(A=j.dateRange)==null?void 0:A.from,r);if((D=j==null?void 0:j.dateRange)!=null&&D.to)return up((L=$.dateRange)==null?void 0:L.from,(q=j.dateRange)==null?void 0:q.to,r)}if((N=$==null?void 0:$.dateRange)!=null&&N.from){if(j!=null&&j.date)return up((z=$.dateRange)==null?void 0:z.from,j.date,r);if((Y=j==null?void 0:j.dateRange)!=null&&Y.to)return up((G=$.dateRange)==null?void 0:G.from,(U=j.dateRange)==null?void 0:U.to,r)}if((W=$==null?void 0:$.dateRange)!=null&&W.to){if(j!=null&&j.date)return lp((X=$==null?void 0:$.dateRange)==null?void 0:X.to,j.date,r);if((J=j==null?void 0:j.dateRange)!=null&&J.from)return lp((K=$==null?void 0:$.dateRange)==null?void 0:K.to,(F=j.dateRange)==null?void 0:F.from,r)}}}}var cp={},fp={},dp={},rO;function dde(){if(rO)return dp;rO=1,Object.defineProperty(dp,"__esModule",{value:!0});var e=go(),t=r(e);function r(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a]);return i.default=n,i}return dp.default=function(n,i,a){return t.createElement("a",{href:n,key:a},i)},dp}var hp={},iO;function hde(){return iO||(iO=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=function(e){return e}),hp}var pp={},Ow,aO;function pde(){return aO||(aO=1,Ow=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ow}var Nw,oO;function mde(){return oO||(oO=1,Nw=/[\0-\x1F\x7F-\x9F]/),Nw}var Mw,sO;function gde(){return sO||(sO=1,Mw=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Mw}var Dw,lO;function vde(){return lO||(lO=1,Dw=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Dw}var Fw,uO;function yde(){return uO||(uO=1,Fw=function(e){var t={};t.src_Any=pde().source,t.src_Cc=mde().source,t.src_Z=gde().source,t.src_P=vde().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Fw}var Lw,cO;function _de(){if(cO)return Lw;cO=1;function e(E){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(v){v&&Object.keys(v).forEach(function(k){E[k]=v[k]})}),E}function t(E){return Object.prototype.toString.call(E)}function r(E){return t(E)==="[object String]"}function n(E){return t(E)==="[object Object]"}function i(E){return t(E)==="[object RegExp]"}function a(E){return t(E)==="[object Function]"}function s(E){return E.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(E){return Object.keys(E||{}).reduce(function(C,v){return C||o.hasOwnProperty(v)},!1)}var u={"http:":{validate:function(E,C,v){var k=E.slice(C);return v.re.http||(v.re.http=new RegExp("^\\/\\/"+v.re.src_auth+v.re.src_host_port_strict+v.re.src_path,"i")),v.re.http.test(k)?k.match(v.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(E,C,v){var k=E.slice(C);return v.re.no_http||(v.re.no_http=new RegExp("^"+v.re.src_auth+"(?:localhost|(?:(?:"+v.re.src_domain+")\\.)+"+v.re.src_domain_root+")"+v.re.src_port+v.re.src_host_terminator+v.re.src_path,"i")),v.re.no_http.test(k)?C>=3&&E[C-3]===":"||C>=3&&E[C-3]==="/"?0:k.match(v.re.no_http)[0].length:0}},"mailto:":{validate:function(E,C,v){var k=E.slice(C);return v.re.mailto||(v.re.mailto=new RegExp("^"+v.re.src_email_name+"@"+v.re.src_host_strict,"i")),v.re.mailto.test(k)?k.match(v.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function h(E){E.__index__=-1,E.__text_cache__=""}function m(E){return function(C,v){var k=C.slice(v);return E.test(k)?k.match(E)[0].length:0}}function y(){return function(E,C){C.normalize(E)}}function g(E){var C=E.re=yde()(E.__opts__),v=E.__tlds__.slice();E.onCompile(),E.__tlds_replaced__||v.push(c),v.push(C.src_xn),C.src_tlds=v.join("|");function k(q){return q.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(k(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(k(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(k(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(k(C.tpl_host_fuzzy_test),"i");var A=[];E.__compiled__={};function D(q,N){throw new Error('(LinkifyIt) Invalid schema "'+q+'": '+N)}Object.keys(E.__schemas__).forEach(function(q){var N=E.__schemas__[q];if(N!==null){var z={validate:null,link:null};if(E.__compiled__[q]=z,n(N)){i(N.validate)?z.validate=m(N.validate):a(N.validate)?z.validate=N.validate:D(q,N),a(N.normalize)?z.normalize=N.normalize:N.normalize?D(q,N):z.normalize=y();return}if(r(N)){A.push(q);return}D(q,N)}}),A.forEach(function(q){E.__compiled__[E.__schemas__[q]]&&(E.__compiled__[q].validate=E.__compiled__[E.__schemas__[q]].validate,E.__compiled__[q].normalize=E.__compiled__[E.__schemas__[q]].normalize)}),E.__compiled__[""]={validate:null,normalize:y()};var L=Object.keys(E.__compiled__).filter(function(q){return q.length>0&&E.__compiled__[q]}).map(s).join("|");E.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+L+")","i"),E.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+L+")","ig"),E.re.pretest=RegExp("("+E.re.schema_test.source+")|("+E.re.host_fuzzy_test.source+")|@","i"),h(E)}function w(E,C){var v=E.__index__,k=E.__last_index__,A=E.__text_cache__.slice(v,k);this.schema=E.__schema__.toLowerCase(),this.index=v+C,this.lastIndex=k+C,this.raw=A,this.text=A,this.url=A}function x(E,C){var v=new w(E,C);return E.__compiled__[v.schema].normalize(v,E),v}function b(E,C){if(!(this instanceof b))return new b(E,C);C||l(E)&&(C=E,E={}),this.__opts__=e({},o,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,E),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},g(this)}return b.prototype.add=function(C,v){return this.__schemas__[C]=v,g(this),this},b.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},b.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var v,k,A,D,L,q,N,z,Y;if(this.re.schema_test.test(C)){for(N=this.re.schema_search,N.lastIndex=0;(v=N.exec(C))!==null;)if(D=this.testSchemaAt(C,v[2],N.lastIndex),D){this.__schema__=v[2],this.__index__=v.index+v[1].length,this.__last_index__=v.index+v[0].length+D;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(z=C.search(this.re.host_fuzzy_test),z>=0&&(this.__index__<0||z=0&&(A=C.match(this.re.email_fuzzy))!==null&&(L=A.index+A[1].length,q=A.index+A[0].length,(this.__index__<0||Lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=L,this.__last_index__=q))),this.__index__>=0},b.prototype.pretest=function(C){return this.re.pretest.test(C)},b.prototype.testSchemaAt=function(C,v,k){return this.__compiled__[v.toLowerCase()]?this.__compiled__[v.toLowerCase()].validate(C,k,this):0},b.prototype.match=function(C){var v=0,k=[];this.__index__>=0&&this.__text_cache__===C&&(k.push(x(this,v)),v=this.__last_index__);for(var A=v?C.slice(v):C;this.test(A);)k.push(x(this,v)),A=A.slice(this.__last_index__),v+=this.__last_index__;return k.length?k:null},b.prototype.tlds=function(C,v){return C=Array.isArray(C)?C:[C],v?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(k,A,D){return k!==D[A-1]}).reverse(),g(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,g(this),this)},b.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},b.prototype.onCompile=function(){},Lw=b,Lw}const wde=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var fO;function bde(){if(fO)return pp;fO=1,Object.defineProperty(pp,"__esModule",{value:!0});var e=_de(),t=i(e),r=wde,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}var a=new t.default;return a.tlds(n.default),pp.default=function(s){return a.match(s)},pp}var mp={},dO;function xde(){return dO||(dO=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=function(e){return e}),mp}var hO;function Ede(){if(hO)return fp;hO=1,Object.defineProperty(fp,"__esModule",{value:!0});var e=function(){function x(b,E){for(var C=0;CD&&A.push(C.substring(D,L.index));var N=v.props.hrefDecorator(L.url),z=v.props.textDecorator(L.text),Y=v.props.componentDecorator(N,z,q);A.push(Y),D=L.lastIndex}),C.length>D&&A.push(C.substring(D)),A.length===1?A[0]:A}},{key:"parse",value:function(C){var v=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof C=="string"?this.parseString(C):r.isValidElement(C)&&C.type!=="a"&&C.type!=="button"?r.cloneElement(C,{key:k},this.parse(C.props.children)):Array.isArray(C)?C.map(function(A,D){return v.parse(A,D)}):C}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.parse(this.props.children))}}]),b}(r.Component);return w.defaultProps={componentDecorator:i.default,hrefDecorator:s.default,matchDecorator:l.default,textDecorator:c.default},fp.default=w,fp}var pO;function Sde(){if(pO)return cp;pO=1,Object.defineProperty(cp,"__esModule",{value:!0});var e=Ede(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return cp.default=t.default,cp}var Cde=Sde();const kde=In(Cde);function eb({children:e}){return P.jsx(kde,{componentDecorator:(t,r,n)=>P.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:r},n),children:e})}function Jx(e){return P.jsx(P.Fragment,{children:e.lines.map((t,r)=>P.jsxs("div",{children:[P.jsx(eb,{children:t}),P.jsx("br",{})]},r))})}function sj({sources:e}){const t=hr();return e!=null&&e.length?P.jsx(tt,{children:e.map((r,n)=>P.jsxs(tt.Item,{children:[P.jsx(tt.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),P.jsxs(tt.Content,{children:[P.jsx(tt.Header,{children:P.jsx(eb,{children:[r.author,r.title,r.publicationInfo].filter(i=>!!i).join(", ")})}),P.jsxs(tt.Description,{children:[P.jsx(eb,{children:r.page}),r.date&&` [${Rl(r.date,t)}]`]})]})]},n))}):null}function lj(e){const[t,r]=Q.useState(!1),[n,i]=Q.useState(!1),[a,s]=Q.useState(!1),[o,l]=Q.useState("");return Ub(e.url)?(n&&o!==e.url&&i(!1),P.jsxs(P.Fragment,{children:[P.jsx(on,{className:n?"loaded-image-thumbnail":"hidden-image",onClick:()=>r(!0),onLoad:()=>{i(!0),l(e.url),s(!1)},onError:u=>{i(!0),l(e.url),s(!0),u.currentTarget.alt=""},src:e.url,alt:e.title||e.filename,centered:!0}),P.jsx(Ci,{className:n?"hidden-image":"image-placeholder",children:P.jsx(Ci.Image,{square:!0})}),a&&P.jsx(Cf,{fluid:!0,textAlign:"center",children:P.jsx(Bn,{negative:!0,compact:!0,children:P.jsx(Bn.Header,{children:P.jsx(Ae,{id:"error.failed_to_load_image",defaultMessage:"Failed to load image file"})})})}),P.jsxs(Vt,{basic:!0,size:"large",closeIcon:P.jsx($e,{name:"close",color:"red"}),open:t,onClose:()=>r(!1),onOpen:()=>r(!0),centered:!1,children:[P.jsx(Vt.Header,{children:e.title}),P.jsx(Vt.Content,{image:!0,children:P.jsx(on,{className:"modal-image",src:e.url,alt:e.title||e.filename,label:P.jsx(fr,{attached:"bottom",content:e.filename}),wrapped:!0})})]})]})):P.jsx(An,{centered:!0,style:{width:"100%",maxWidth:"290px",margin:"0 auto 14px"},children:P.jsxs(An.Content,{textAlign:"center",style:{backgroundColor:"#f9f9f9"},children:[P.jsx($e,{name:"image",size:"huge",color:"grey",style:{marginBottom:"10px",opacity:.6}}),P.jsx(An.Header,{style:{fontSize:"14px",wordBreak:"break-all"},children:e.title||e.filename}),P.jsx(An.Meta,{style:{marginTop:"5px",fontStyle:"italic"},children:P.jsx(Ae,{id:"media.not_uploaded",defaultMessage:"File not uploaded"})})]})})}function Tde(e){return!!e&&e.map((t,r)=>P.jsx(tt,{children:P.jsx(tt.Item,{children:P.jsx(lj,{url:t.url,filename:t.filename,title:t.title})})},r))}function Ade(e){return!!(e!=null&&e.length)&&e.map((t,r)=>P.jsx("div",{children:P.jsx(Jx,{lines:t.map((n,i)=>P.jsx("i",{children:n},i))})},r))}function Ide(e){var d,h,m,y;const[t,r]=Q.useState(-1),[n,i]=Q.useState("");(!n||n!==e.indi)&&(r(-1),i(e.indi));function a(g,w){w.index!==void 0&&t!==w.index?r(w.index):r(-1)}const s=((d=e.images)==null?void 0:d.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.images",defaultMessage:"Images"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"camera"})})},"images"),render:()=>P.jsx(Qr.Pane,{children:Tde(e.images)})},o=((h=e.notes)==null?void 0:h.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.notes",defaultMessage:"Notes"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"sticky note outline"})})},"notes"),render:()=>P.jsx(Qr.Pane,{children:Ade(e.notes)})},l=((m=e.sources)==null?void 0:m.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.sources",defaultMessage:"Sources"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"quote right"})})},"sources"),render:()=>P.jsx(Qr.Pane,{children:P.jsx(sj,{sources:e.sources})})},u=((y=e.files)==null?void 0:y.length)&&{menuItem:P.jsx(Gt.Item,{fitted:!0,onClick:a,children:P.jsx(Xi,{content:P.jsx(Ae,{id:"extras.files",defaultMessage:"Additional files"}),size:"mini",position:"bottom center",trigger:P.jsx($e,{circular:!0,name:"file alternate outline"})})},"files"),render:()=>P.jsx(Qr.Pane,{children:P.jsx(oj,{files:e.files})})},c=[s,o,l,u].flatMap(g=>g?[g]:[]);return c.length?P.jsx(et.Description,{children:P.jsx(Qr,{className:"event-extras",activeIndex:t,renderActiveOnly:!0,menu:{tabular:!0,attached:!0,compact:!0,borderless:!0},panes:c})}):null}function qc(e){const t=pn(),r=p7(e.person),n=Tn.parse(t.search);return n.indi=Qn(e.person.pointer),P.jsx(Cl,{to:{pathname:"/view",search:Tn.stringify(n)},children:r||P.jsx(Ae,{id:"name.unknown_name",defaultMessage:"N.N."})})}const Rde=new Map([["ADOP","Adoption"],["BAPM","Baptism"],["BARM","Bar Mitzvah"],["BASM","Bas Mitzvah"],["BIRT","Birth"],["BLES","Blessing"],["BURI","Burial"],["CENS","Census"],["CHR","Christening"],["CHRA","Adult christening"],["CONF","Confirmation"],["CREM","Cremation"],["DEAT","Death"],["DEG","Degree"],["DIV","Divorce"],["DIVF","Divorce filed"],["EDUC","Education"],["ELEC","Elected"],["EMAIL","E-mail"],["EMIG","Emigration"],["ENGA","Engagement"],["EVEN","Event"],["FACT","Fact"],["FCOM","First communion"],["GRAD","Graduation"],["IMMI","Immigration"],["MARB","Marriage bann"],["MARC","Marriage contract"],["MARL","Marriage license"],["MARR","Marriage"],["MARS","Marriage settlement"],["MDCL","Medical info"],["MILT","Military services"],["NATU","Naturalization"],["OBJE","Additional files"],["OCCU","Occupation"],["ORDN","Ordination"],["PROB","Probate"],["PROP","Property"],["RESI","Residence"],["RETI","Retirement"],["SOUR","Sources"],["TITL","Title"],["WILL","Will"],["WWW","WWW"],["birth","Birth name"],["married","Married name"],["maiden","Maiden name"],["immigrant","Immigrant name"],["aka","Also known as"]]);function ws(e){const t=e.tag.replace(/_/g,"");return P.jsx(Ae,{id:`gedcom.${t}`,defaultMessage:Rde.get(t)||t})}const Zx=["BIRT"],Pde=["ADOP","BAPM","BARM","BASM","BLES","CENS","CHR","CHRA","CONF","EDUC","EMIG","EVEN","FAMS","FCOM","GRAD","IMMI","NATU","ORDN","OCCU","PROP","RESI","RETI","WILL","_DEG","_ELEC","_MDCL","_MILT"],uj=["ANUL","CENS","DIV","DIVF","ENGA","EVEN","MARB","MARC","MARL","MARR","MARS"],cj=[...Pde,...uj],eE=["DEAT"],fj=["BURI","CREM","PROB"],Ode=[Zx,cj,eE,fj],Nde=[...Zx,...cj,...eE,...fj];function Mde(e){const t=hr();return P.jsxs("div",{className:"item-header",children:[P.jsx(Lt,{as:"span",size:"small",children:P.jsx(ws,{tag:Dde(e.event)})}),e.event.date?P.jsx(Lt,{as:"span",textAlign:"right",sub:!0,children:Rl(e.event.date,t)}):null]})}function Dde(e){return e.tag==="EVEN"&&e.type?e.type:e.tag}function Fde(e,t,r){const n=t.tree.filter(i=>["WIFE","HUSB"].includes(i.tag)).find(i=>!i.data.includes(e));if(n)return ei(n,r,i=>i.indis)}function Lde(e,t,r,n){if(!eE.includes(e.tag))return;const i=Pl(e),a=r.indis[t].tree.filter(s=>Zx.includes(s.tag)).map(s=>Pl(s)).find(s=>s);if(!(!a||!i))return fde(a==null?void 0:a.data,i==null?void 0:i.data,n)}function dj(e){const t=e.tree.find(r=>r.tag==="PLAC");return t!=null&&t.data?cs(t):void 0}function hj(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{const a=ei(i,t,o=>o.other),s=cD(a);s&&n.push({url:id(s.data,r),filename:Pm(s)||""})}),n}function pj(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{var o;const a=ei(i,t,l=>l.other),s=uD(a);s&&n.push({url:id(s.data,r),filename:Pm(s),titl:(o=a.tree.find(l=>l.tag==="TITL"))==null?void 0:o.data})}),n}function mj(e,t){return e.tree.filter(r=>r.tag==="SOUR").map(r=>dD(r,t))}function gj(e,t){const r=e.tree.filter(i=>i.tag==="NOTE").map(i=>ei(i,t,a=>a.other)),n=e.tag!=="EVEN"?e.tree.filter(i=>i.tag==="TYPE"):[];return[e,...n,...r].filter(i=>!!i.data).filter(i=>i.data!=="Y").map(i=>cs(i))}function jde(e,t,r,n,i){return e.tag==="FAMS"?Ude(e,t,r,i):Bde(e,t,r,n,i)}function Bde(e,t,r,n,i){const a=Pl(e)||null;return[{tag:e.tag,date:a?dn.getDate(a.data):void 0,type:fD(e),age:Lde(e,r,t,n),place:dj(e),images:hj(e,t,i),files:pj(e,t,i),notes:gj(e,t),sources:mj(e,t),indi:r}]}function Ude(e,t,r,n){const i=ei(e,t,a=>a.fams);return sg(uj,a=>i.tree.filter(s=>s.tag===a)).map(a=>{const s=Pl(a)||null;return{tag:a.tag,date:s?dn.getDate(s.data):void 0,type:fD(a),personLink:Fde(r,i,t),place:dj(a),images:hj(a,t,n),files:pj(a,t,n),notes:gj(a,t),sources:mj(a,t),indi:r}})}function zde(e){return P.jsx(et,{children:P.jsxs(et.Content,{children:[P.jsx(Mde,{event:e.event}),!!e.event.age&&P.jsx(et.Meta,{children:e.event.age}),!!e.event.personLink&&P.jsx(qc,{person:e.event.personLink}),!!e.event.place&&P.jsx(et.Description,{children:e.event.place}),P.jsx(Ide,{images:e.event.images,notes:e.event.notes,sources:e.event.sources,indi:e.event.indi,files:e.event.files})]})})}function $de(e){const t=hr(),r=sg(Ode,n=>e.entries.filter(i=>n.includes(i.tag)).map(i=>jde(i,e.gedcom,e.indi,t,e.images)).flatMap(i=>i).sort((i,a)=>rd(i.date,a.date)));return r.length?P.jsx(P.Fragment,{children:r.map((n,i)=>P.jsx(zde,{event:n},i))}):null}function Hde(e,t,r){var c,d;const n=(c=e.tree)==null?void 0:c.find(h=>["HUSB","WIFE"].includes(h.tag)&&Qn(h.data)!==r),i=n?Qn(n.data):void 0,a=i?t.indis[i]:void 0,u=(((d=e.tree)==null?void 0:d.filter(h=>h.tag==="CHIL"))||[]).filter(h=>!!t.indis[Qn(h.data)]).map(h=>{const m=t.indis[Qn(h.data)],y=m==null?void 0:m.tree.find(x=>x.tag==="BIRT"),g=y?Pl(y):void 0,w=g?dn.getDate(g.data):void 0;return{childEntry:m,parsedDate:w}}).sort((h,m)=>rd(h.parsedDate,m.parsedDate)).map(h=>h.childEntry);return{familyId:Qn(e.pointer),spouseTag:n==null?void 0:n.tag,spouseRecord:a,children:u}}function qde(e){const t=e.gedcom.indis[e.indi];if(!t)return null;const r=t.tree,n=r.find(E=>E.tag==="FAMC"),i=n?e.gedcom.fams[Qn(n.data)]:void 0,a=(i==null?void 0:i.tag)==="FAM",s=a?i==null?void 0:i.tree.find(E=>E.tag==="HUSB"):void 0,o=a?i==null?void 0:i.tree.find(E=>E.tag==="WIFE"):void 0,l=s?Qn(s.data):void 0,u=l?e.gedcom.indis[l]:void 0,c=o?Qn(o.data):void 0,d=c?e.gedcom.indis[c]:void 0,h=u||d,w=r.filter(E=>E.tag==="FAMS").map(E=>e.gedcom.fams[Qn(E.data)]).map(E=>Hde(E,e.gedcom,e.indi)).filter(E=>E.spouseRecord||E.children.length>0),x=w.length,b=x>0;return!h&&!b?null:P.jsx(et,{children:P.jsxs(et.Content,{children:[P.jsx("div",{className:"item-header",children:P.jsx(Lt,{as:"span",size:"small",children:P.jsx(Ae,{id:"family.immediate_family",defaultMessage:"Immediate Family"})})}),h&&P.jsxs("div",{className:"parents-block",children:[u&&P.jsxs("div",{children:[P.jsx("strong",{children:P.jsx(Ae,{id:"family.father",defaultMessage:"Father"})}),": ",P.jsx(qc,{person:u})]}),d&&P.jsxs("div",{children:[P.jsx("strong",{children:P.jsx(Ae,{id:"family.mother",defaultMessage:"Mother"})}),": ",P.jsx(qc,{person:d})]})]}),w.map(E=>{const C=!E.spouseRecord&&x>1;return P.jsxs("div",{className:"spousal-group",children:[E.spouseRecord?P.jsxs("div",{children:[P.jsx("strong",{children:E.spouseTag==="HUSB"?P.jsx(Ae,{id:"family.husband",defaultMessage:"Husband"}):P.jsx(Ae,{id:"family.wife",defaultMessage:"Wife"})}),": ",P.jsx(qc,{person:E.spouseRecord})]}):C?P.jsx("div",{children:P.jsx("strong",{children:P.jsx(Ae,{id:"family.unknown_spouse",defaultMessage:"Unknown Spouse"})})}):null,E.children.length>0&&P.jsxs("div",{className:"children-block",children:[P.jsxs("div",{children:[P.jsx("strong",{children:E.children.length===1?P.jsx(Ae,{id:"family.child",defaultMessage:"Child"}):P.jsx(Ae,{id:"family.children",defaultMessage:"Children"})}),": "]}),P.jsx("div",{children:E.children.map(v=>P.jsx("div",{children:P.jsx(qc,{person:v})},v.pointer))})]})]},E.familyId)})]})})}const Gde=[...Nde,"NAME","SEX","FAMC","FAMS","NOTE","SOUR","FACT"];function Wde(e){const t=[];return e.data&&t.push(...cs(e)),e.tree.filter(r=>r.tag==="NOTE").forEach(r=>cs(r).forEach(n=>t.push(P.jsx("i",{children:n})))),t.length?P.jsxs(P.Fragment,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(ws,{tag:e.tag})}),P.jsx("span",{children:P.jsx(Jx,{lines:t})})]}):null}function Vde(e){if(!e.data)return null;const t=e.tree.filter(n=>n.tag==="TYPE").flatMap(n=>cs(n)).join().trim(),r=cs(e).join(" ").trim();return t?P.jsxs(P.Fragment,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(ws,{tag:e.tag})}),P.jsxs("div",{children:[P.jsx("b",{children:t}),": ",r]})]}):P.jsxs(P.Fragment,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(ws,{tag:e.tag})}),P.jsx("div",{children:r})]})}function Kde(e,t,r){const n=ei(e,t,a=>a.other),i=cD(n);return!i||!tE(n)?null:P.jsx("div",{className:"person-image",children:P.jsx(lj,{url:id(i.data,r),filename:Pm(i)||""})})}function Qde(e,t){const r=e.map(n=>dD(n,t));return r.length?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"item-header",children:P.jsx(Lt,{as:"span",size:"small",children:P.jsx(ws,{tag:"SOUR"})})}),P.jsx(sj,{sources:r})]}):null}function Yde(e,t,r){const n=[];return e.map(i=>ei(i,t,a=>a.other)).forEach(i=>{var s;const a=uD(i);a&&n.push({url:id(a.data,r),filename:Pm(a),titl:(s=i.tree.find(o=>o.tag==="TITL"))==null?void 0:s.data})}),n.length?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"item-header",children:P.jsx(Lt,{as:"span",size:"small",children:P.jsx(ws,{tag:"OBJE"})})}),P.jsx(oj,{files:n})]}):null}function Xde(e,t){const r=ei(e,t,n=>n.other);return!r||!tE(r)?null:P.jsx(Jx,{lines:cs(r).map((n,i)=>P.jsx("i",{children:n},i))})}function Jde(e){var d,h,m,y,g,w,x,b;const t=(d=e.tree.find(E=>E.tag==="NPFX"))==null?void 0:d.data;let r=(h=e.tree.find(E=>E.tag==="GIVN"))==null?void 0:h.data,n=(m=e.tree.find(E=>E.tag==="_RUFNAME"))==null?void 0:m.data;const i=(y=e.tree.find(E=>E.tag==="NICK"))==null?void 0:y.data,a=(g=e.tree.find(E=>E.tag==="SPFX"))==null?void 0:g.data,s=(w=e.tree.find(E=>E.tag==="SURN"))==null?void 0:w.data,o=(x=e.tree.find(E=>E.tag==="NSFX"))==null?void 0:x.data;r&&n&&r.includes(n)&&(r=r.replace(n,`"${n}"`),n=void 0);const u=[t,r,n&&`"${n}"`,i&&`(${i})`,a,s,o].filter(Boolean).join(" ").trim()||e.data.replaceAll("/","")||"",c=(b=e.tree.find(E=>E.tag==="TYPE"&&E.data!=="Unknown"))==null?void 0:b.data;return P.jsxs(P.Fragment,{children:[P.jsx(Lt,{as:"span",size:"large",children:u||P.jsx(Ae,{id:"name.unknown_name",defaultMessage:"N.N."})}),u&&c&&P.jsx(et.Meta,{children:P.jsx(ws,{tag:c})})]})}function gp(e,t,r,n,i){return sg(r,a=>e.filter(s=>s.tag===a).map(s=>n(s,t,i))).filter(a=>a!==null).map((a,s)=>P.jsx(et,{children:P.jsx(et.Content,{children:a})},s))}function mO(e,t,r,n,i){const a=sg(r,o=>e.filter(l=>l.tag===o)).filter(o=>o!==null),s=a.length?n(a,t,i):null;return s?P.jsx(et,{children:P.jsx(et.Content,{children:s})}):null}function tE(e){return e.tree.length>0||e.data&&!e.data.startsWith("@")}function Zde(e,t){return e.filter(r=>!Gde.includes(r.tag)).map(r=>ei(r,t,n=>n.other)).filter(tE).map(r=>Wde(r)).filter(r=>r!==null).map((r,n)=>P.jsx(et,{children:P.jsx(et.Content,{children:r})},n))}function ehe(e){return P.jsx(et,{children:P.jsxs(et.Content,{children:[P.jsx(Lt,{sub:!0,children:P.jsx(Ae,{id:"config.ids",defaultMessage:"Identification"})}),P.jsx("div",{children:P.jsx("i",{children:e})})]})})}function the(e){const t=e.gedcom.indis[e.indi].tree;return P.jsx("div",{className:"details","data-testid":"details",children:P.jsxs(et.Group,{divided:!0,children:[gp(t,e.gedcom,["NAME"],Jde),gp(t,e.gedcom,["OBJE"],Kde,e.images),P.jsx(qde,{gedcom:e.gedcom,indi:e.indi}),P.jsx($de,{gedcom:e.gedcom,entries:t,indi:e.indi,images:e.images}),e.config.id===Fx.SHOW?ehe(e.indi):null,gp(t,e.gedcom,["FACT"],Vde),Zde(t,e.gedcom),gp(t,e.gedcom,["NOTE"],Xde),mO(t,e.gedcom,["OBJE"],Yde,e.images),mO(t,e.gedcom,["SOUR"],Qde)]})})}function nhe({data:e,selectedIndiId:t,config:r,onConfigChange:n,expanded:i,onToggle:a}){const s=hr(),o=[{menuItem:s.formatMessage({id:"tab.info",defaultMessage:"Info"}),render:()=>P.jsx(the,{gedcom:e.gedcom,indi:t,config:r,images:e.images})},{menuItem:s.formatMessage({id:"tab.settings",defaultMessage:"Settings"}),render:()=>P.jsx(Dse,{gedcom:e.gedcom,config:r,onChange:n})}];return P.jsxs(xo,{id:"sidebar",animation:"overlay",icon:"labeled",width:i?"wide":"very thin",direction:"right",visible:!0,children:[i?P.jsx(Qr,{id:"sideTabs",panes:o}):P.jsx(Jce,{gedcom:e.gedcom,indi:t}),P.jsx(en,{id:"sideToggle",icon:!0,size:"mini",onClick:()=>a(),children:P.jsx($e,{size:"large",name:i?"arrow right":"arrow left"})})]})}var Xt=(e=>(e[e.INITIAL=0]="INITIAL",e[e.LOADING=1]="LOADING",e[e.ERROR=2]="ERROR",e[e.SHOWING_CHART=3]="SHOWING_CHART",e[e.LOADING_MORE=4]="LOADING_MORE",e))(Xt||{});function rhe(e,t){if(t===void 0)return;const r=e.id===Fx.HIDE,n=e.sex===BL.HIDE;Im(t.chartData).forEach(a=>{a.hideId=r,a.hideSex=n})}function ihe(){const e=hr(),{chartType:t,standalone:r,showWikiTreeMenus:n,freezeAnimation:i,showSidePanel:a,config:s,selection:o,detail:l,onSelection:u,onDetailSelection:c,onToggleSidePanel:d,onConfigChange:h}=Uce(),{state:m,loadingStatus:y,data:g,error:w,showErrorPopup:x,sourceSpec:b,updatedSelection:E,detailIndi:C,onDismissErrorPopup:v,resetLoader:k,clearData:A,setLoadingStatus:D,displayErrorPopup:L}=Bce({intl:e,urlSelection:o,urlDetail:l,onAuthError:Q.useCallback(re=>{U(re)},[])}),{showAuthModal:q,failedFileId:N,hasGoogleToken:z,setHasGoogleToken:Y,onGoogleSignOut:G,triggerAuthError:U,onAuthSuccess:W,onCancel:X}=AD({onSignOut:A,onAuthSuccess:k});Q.useMemo(()=>{rhe(s,g)},[s,g]),Yce(g,C,u);function J(){_n("print"),ple()}async function K(){_n("download_pdf");try{await yle()}catch{L(e.formatMessage({id:"error.failed_pdf",defaultMessage:"Failed to generate PDF file. Please try with a smaller diagram or download an SVG file."}))}}async function F(){_n("download_png");try{await vle()}catch{L(e.formatMessage({id:"error.failed_png",defaultMessage:"Failed to generate PNG file. Please try with a smaller diagram or download an SVG file."}))}}function $(){_n("download_svg"),mle()}function j(re){return g?t===es.Donatso?P.jsx(Fce,{data:g.chartData,selection:re,onSelection:u,onFirstRender:()=>D("")}):P.jsx(tle,{data:g.chartData,selection:re,chartType:t,onSelection:u,onDetailSelection:c,freezeAnimation:i,colors:s.color,hideIds:s.id,hideSex:s.sex,placeDisplay:s.place,placeCount:s.placeCount,onFirstRender:()=>D("")}):null}function M(){switch(m){case 3:case 4:{if(!g||!E)return null;const re=E;return P.jsxs("div",{id:"content","data-testid":"content",children:[P.jsx(wle,{open:x,message:w,onDismiss:v}),m===4?P.jsx(Xl,{active:!0,size:"small",className:"loading-more"}):null,P.jsxs(au,{children:[P.jsx(nhe,{data:g,selectedIndiId:C||re.id,config:s,expanded:a,onToggle:d,onConfigChange:h}),P.jsx(ou,{children:j(re)})]})]})}case 2:return P.jsx(_le,{message:w||"Unknown error"});case 0:case 1:return P.jsx(Xl,{active:!0,size:"large"})}}return P.jsxs(P.Fragment,{children:[P.jsx(ble,{loadingStatus:y,state:m}),P.jsx(jL,{data:g==null?void 0:g.chartData,allowAllRelativesChart:(b==null?void 0:b.source)!==qt.WIKITREE,allowPrintAndDownload:t!==es.Donatso,showingChart:m===3||m===4,standalone:r,eventHandlers:{onSelection:u,onPrint:J,onDownloadPdf:K,onDownloadPng:F,onDownloadSvg:$},showWikiTreeMenus:(b==null?void 0:b.source)===qt.WIKITREE&&n,hasGoogleToken:z,onGoogleSignOut:G,onGoogleTokenAcquired:()=>Y(!0)}),M(),q&&N&&P.jsx(Xce,{failedFileId:N,onAuthSuccess:W,onCancel:X})]})}const ahe=KL();function ohe(){const e=pn(),t=Q.useMemo(()=>{if(typeof window>"u")return null;const n=Tn.parse(window.location.search),i=Tn.parse(e.search);let a=null;const s={...i,...n};let o=!1;const l=C7(s);l&&(a=l.redirectPath,s.source="google-drive",s.fileId=l.fileId,delete s.state,o=!0);const u=bW(n,e.pathname);u&&(a=a||u.redirectPath,o=o||u.paramsModified);const c=TT.some(d=>n[d]!==void 0)||rA.some(d=>n[d]!==void 0);if(o||c){const d={...n};TT.forEach(y=>delete d[y]),rA.forEach(y=>delete d[y]);const h=Tn.stringify(d),m=window.location.origin+window.location.pathname+(h?"?"+h:"")+window.location.hash;return window.history.replaceState(null,"",m),{pathname:a||e.pathname,search:Tn.stringify(s)}}return null},[e.pathname,e.search]);return t?P.jsx(Nh,{children:P.jsx(Ko,{path:"*",element:P.jsx(Oh,{to:t,replace:!0})})}):e.pathname==="/view"?P.jsxs(Nh,{children:[P.jsx(Ko,{path:"/view",element:P.jsx(ihe,{})}),P.jsx(Ko,{path:"*",element:P.jsx(Oh,{to:"/view",replace:!0})})]}):ahe?P.jsx(Nh,{children:P.jsx(Ko,{path:"*",element:P.jsx(Oh,{to:"/view",replace:!0})})}):P.jsxs(Nh,{children:[P.jsx(Ko,{path:"/",element:P.jsx(zse,{})}),P.jsx(Ko,{path:"*",element:P.jsx(Oh,{to:"/",replace:!0})})]})}const she={"menu.open":"Отваряне","menu.open_file":"Отваряне на файл","menu.load_from_url":"Зареждане от адрес","menu.select_wikitree_id":"Избор на WikiTree ID","menu.print":"Отпечатване","menu.download":"Изтегляне","menu.pdf_file":"PDF файл","menu.png_file":"PNG файл","menu.svg_file":"SVG файл","menu.download_pdf":"Изтегляне като PDF","menu.download_png":"Изтегляне като PNG","menu.download_svg":"Изтегляне като SVG","menu.view":"Изглед","menu.hourglass":"Пясъчен часовник","menu.relatives":"Всички роднини","menu.donatso":"Семейна диаграма на Донацо","menu.fancy":"Декоративно дърво (експериментално)","menu.wikitree_login":"Вход в WikiTree","menu.wikitree_logged_in":"Вписани","menu.wikitree_popup_username":"Вписани сте в WikiTree като {username}","menu.wikitree_popup":"Вписани в WikiTree","menu.github":"Проект в GitHub","menu.search.placeholder":"Търсене на лице","menu.search.placeholder_with_shortcut":"Търсене на лице (натиснете '/')","menu.search.no_results":"Няма резултати","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy е приложение за преглед на родословни дървета, която дава възможност за разглеждане структурата на семейство.","intro.instructions":"Използвайте бутоните за отваряне на файл и зареждане от адрес, за да отворите GEDCOM файл. Повечето приложения и страници за генеалогия позволяват изнасяне на GEDCOM файлове.","intro.examples":"Примерни родословни дървета","intro.from":"от","intro.whats_new":"Последни промени","intro.full_changelog":"Списък с всички промени","whats_new.title":"Новото в това издание","intro.privacy":"Поверителност","intro.privacy_note":"При отваряне на файл тази страницата не изпраща никъде вашите данни - заредените файловете не напускат вашето устройство. При зареждане на файл от адрес, данните преминават през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.title":"Зареждане от адрес","load_from_url.comment":"Данните от адреса ще преминат през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.cancel":"Отказ","load_from_url.load":"Зареждане","select_wikitree_id.title":"Избиране на WikiTree ID","select_wikitree_id.comment":"Въведете идентификатор на профил в {wikiTreeLink}. Пример: {example1}, {example2}","select_wikitree_id.cancel":"Отказ","select_wikitree_id.load":"Зареждане","gedcom.ADOP":"Осиновяване","gedcom.BAPM":"Кръщене","gedcom.BARM":"Бар мицва","gedcom.BASM":"Бат мицва","gedcom.BIRT":"Раждане","gedcom.BLES":"Благословия","gedcom.BURI":"Погребение","gedcom.CENS":"Преброяване на населението","gedcom.CHR":"Кръщене","gedcom.CHRA":"Кръщение за възрастни","gedcom.CONF":"Потвърждение","gedcom.CREM":"Кремиране","gedcom.DEAT":"Смърт","gedcom.DEG":"Академична степен","gedcom.DIV":"Развод","gedcom.DIVF":"Подадено е заявление за развод","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Подбор за длъжността","gedcom.EMAIL":"Електронна поща","gedcom.EMIG":"Емигриране","gedcom.ENGA":"Годеж","gedcom.EVEN":"Събитие","gedcom.FACT":"Факт","gedcom.FCOM":"Първо причастие","gedcom.GRAD":"Завършване на обучението","gedcom.IMMI":"Имигриране","gedcom.MARB":"Забрана за брак","gedcom.MARC":"Брачен договор","gedcom.MARL":"Брачно свидетелство","gedcom.MARR":"Бракосъчетание","gedcom.MARS":"Предбрачен договор","gedcom.MDCL":"Медицинска информация","gedcom.MILT":"Военна служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Допълнителни файлове","gedcom.OCCU":"Професия","gedcom.ORDN":"Ръкополагане","gedcom.PROB":"Потвърждение на завещанието","gedcom.PROP":"Имот","gedcom.RESI":"Местожителство","gedcom.RETI":"Пенсиониране","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Източници","gedcom.TITL":"Обръщение","gedcom.WILL":"Завещание","gedcom.WWW":"Препратка","gedcom._UPD":"Последно обновяване","gedcom.birth":"Рождено име","gedcom.married":"Име след брак","gedcom.maiden":"Моминско име","gedcom.immigrant":"Имигрантско име","gedcom.aka":"Също известни като","date.abt":"около","date.cal":"изчислено","date.est":"приблизително","date.between":"между {from} и {to}","date.after":"след {from}","date.before":"преди {to}","age.exact":"{age, plural, =0 {Под 1 година} one {{qualifier} 1 година} other {{qualifier} # години}}","age.less":"Под {age, plural, =0 {1 година} one {1 година} other {# години}}","age.more":"Над {age, plural, =0 {0 години} one {1 година} other {# години}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 години} one {1 година} other {# години}}","error.error":"Грешка","error.failed_pdf":"Неуспешно създаване на PDF файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_png":"Неуспешно създаване на PNG файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_to_load_file":"Грешка при зареждане на файл","error.failed_wikitree_load_more":"Грешка при зареждане на данни от WikiTree. {error}}","error.GEDCOM_READ_FAILED":"Грешка при отваряне на GEDCOM файл","error.ERROR_LOADING_UPLOADED_FILE":"Грешка при зареждането на данни. Качете файла отново.","error.WIKITREE_ID_NOT_PROVIDED":"Не е указан идентификатор на профил в WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профилът {id} в WikiTree е недостъпен. Опитайте да се впишете.","error.WIKITREE_PROFILE_NOT_FOUND":"Профилът {id} в WikiTree не е намерен","error.failed_to_load_image":"Грешка при зареждане на изображение","wikitree.private":"Скрито","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвят","config.colors.NO_COLOR":"Без цвят","config.colors.COLOR_BY_GENERATION":"По поколения","config.colors.COLOR_BY_SEX":"По пол","config.ids":"Идентификатори","config.ids.HIDE":"Скриване","config.ids.SHOW":"Показване","config.sex":"Пол","config.sex.HIDE":"Скриване","config.sex.SHOW":"Показване","config.places":"Места","config.places.FULL":"пълно","config.places.SHORT":"съкратено","config.places.HIDE":"скриване","head.source":"Източник на данни","name.unknown_name":"Неизвестно име","extras.images":"Изображение","extras.notes":"Бележки","extras.sources":"Източници","extras.files":"Допълнителни файлове","family.immediate_family":"Най-близко семейство","family.parents":"Родители","family.father":"Баща","family.mother":"Майка","family.husband":"Съпруг","family.wife":"Съпруга","family.unknown_spouse":"Неизвестен съпруг/а","family.children":"Деца","family.child":"Дете","media.not_uploaded":"Файлът не е качен","menu.load_from_google_drive":"Зареждане от Google Диск","menu.google_sign_out":"Прекъсване на връзката с Google Диск","google_auth.title":"Изисква се достъп до Google Диск","google_auth.instructions":"За да прегледате този файл, трябва да се удостоверите и да изберете файла от вашия Google Диск, за да предоставите разрешения.","google_auth.picker_instructions_header":"Изискват се разрешения","google_auth.picker_instructions":"Приложението няма разрешение да чете този файл. Моля, изберете го в изскачащия прозорец на браузъра за файлове, за да предоставите достъп. Ако това е споделен файл, който не се показва, опитайте първо да добавите пряк път към вашия Диск.","google_auth.cancel":"Отказ","google_auth.grant_button":"Предоставяне на достъп и избор на файл","google_auth.switch_account_button":"Смяна на акаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграцията с Google Drive не е конфигурирана."},lhe={"menu.open":"Otevřít","menu.open_file":"Otevřít soubor","menu.load_from_url":"Otevřít z URL","menu.select_wikitree_id":"Vybrat WikiTree ID","menu.print":"Tisknout","menu.download":"Stáhnout","menu.pdf_file":"Soubor PDF","menu.png_file":"Soubor PNG","menu.svg_file":"Soubor SVG","menu.download_pdf":"Stáhnout PDF","menu.download_png":"Stáhnout PNG","menu.download_svg":"Stáhnout SVG","menu.view":"Zobrazení","menu.hourglass":"Přesýpací hodiny","menu.relatives":"Všichni příbuzní","menu.donatso":"Donatso rodokmen","menu.fancy":"Rodinný strom (experimentální)","menu.wikitree_login":"Přihlášení na WikiTree","menu.wikitree_logged_in":"Přihlášeno","menu.wikitree_popup_username":"Přihlášeno do WikiTree jako {username}","menu.wikitree_popup":"Přihlášeno do WikiTree","menu.github":"GitHub projekt","menu.search.placeholder":"Hledej osobu","menu.search.placeholder_with_shortcut":"Hledej osobu (stiskněte '/')","menu.search.no_results":"Žádné výsledky","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy vám umožňuje interaktivní prohlížení rodokmenu.","intro.instructions":"Kliknutím na OTEVŘÍT SOUBOR nebo OTEVŘÍT Z URL načtete soubor GEDCOM. Většina genealogických programů má funkci exportu do formátu GEDCOM.","intro.examples":"Níže je uvedeno několik příkladů použití z internetu:","intro.from":"zdroj:","intro.whats_new":"Co je nového","intro.full_changelog":"Úplný seznam změn","whats_new.title":"Co je nového v této verzi?","intro.privacy":"Soukromí","intro.privacy_note":"Pomocí funkce „Otevřít soubor“ nejsou vaše data nikam odesílána a zůstávají ve vašem počítači. Při použití funkce „Otevřít z URL“ jsou data z dané adresy odeslána službou {link}, aby bylo možné data načíst (CORS).","load_from_url.title":"Otevřít z adresy URL","load_from_url.comment":"Data z dané adresy URL budou načtena prostřednictvím služby {link}, aby nedocházelo k problémům s CORS.","load_from_url.cancel":"Storno","load_from_url.load":"Otevřít","select_wikitree_id.title":"Zadejte WikiTree ID","select_wikitree_id.comment":"Zadejte ID profilu {wikiTreeLink}. Příklad: {example1}, {example2}","select_wikitree_id.cancel":"Storno","select_wikitree_id.load":"Otevřít","gedcom.ADOP":"Adopce","gedcom.BAPM":"Křest","gedcom.BARM":"Bar micva","gedcom.BASM":"Bas micva","gedcom.BIRT":"Narození","gedcom.BLES":"Požehnání","gedcom.BURI":"Pohřeb","gedcom.CENS":"Sčítání lidu","gedcom.CHR":"Křest","gedcom.CHRA":"Křest dospělých","gedcom.CONF":"Potvrzení","gedcom.CREM":"Kremace","gedcom.DEAT":"Úmrtí","gedcom.DEG":"Academic degree","gedcom.DIV":"Rozvod","gedcom.DIVF":"Potvrzení","gedcom.DSCR":"Popis","gedcom.EDUC":"Vzdělání","gedcom.ELEC":"Výběr na pozici","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrace","gedcom.ENGA":"zasnoubení","gedcom.EVEN":"Událost","gedcom.FACT":"Údaj","gedcom.FCOM":"První přijímání","gedcom.GRAD":"Dokončení školení ","gedcom.IMMI":"Imigrace","gedcom.MARB":"Družstvo","gedcom.MARC":"Manželská smlouva ","gedcom.MARL":"Oddací list","gedcom.MARR":"Svatba","gedcom.MARS":"Předmanželská smlouva","gedcom.MDCL":"Lékařské informace","gedcom.MILT":"Vojenská služba","gedcom.NATU":"Získání občanství","gedcom.OBJE":"Další soubory","gedcom.OCCU":"Povolání","gedcom.ORDN":"Vysvěcení","gedcom.PROB":"Potvrzení závěti","gedcom.PROP":"Majetek","gedcom.RESI":"Bydliště","gedcom.RETI":"Odchod do důchodu ","gedcom.RELI":"Vyznání","gedcom.RIN":"ID","gedcom.SOUR":"Zdroje","gedcom.TITL":"Titul","gedcom.WILL":"Závěť","gedcom.WWW":"Stránka WWW","gedcom._UPD":"Poslední aktualizace","gedcom.birth":"Rodné jméno","gedcom.married":"Jméno po svatbě","gedcom.maiden":"Jméno za svobodna","gedcom.immigrant":"Jméno získané imigrací","gedcom.aka":"Také znám(a) jako","date.abt":"kolem","date.cal":"vypočteno","date.est":"asi","date.between":"mezi {from} a {to}","date.after":"po {from}","date.before":"před {to}","age.exact":"{qualifier}{age, plural, =0 {Méně než rok} one {1 rok} few {# roky} other {# let}}","age.less":"Méne než {age, plural, =0 {1 rok} one {1 rok} few {# roky} other {# let}}","age.more":"Více než {age, plural, =0 {0 let} one {1 rok} few {# roky} other {# let}}","age.between":"Mezi {ageFrom} a {ageTo, plural, =0 {0 lety} one {1 rokem} few {# roky} other {# lety}}","error.error":"Chyba","error.failed_pdf":"Soubor PDF nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_png":"Soubor PNG nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_to_load_file":"Chyba při načítání souboru","error.failed_wikitree_load_more":"Chyba při načítání dat z WikiTree. {chyba}","error.GEDCOM_READ_FAILED":"Chyba při načítání souboru GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Chyba při načítání dat. Znovu otevřete soubor.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID nebylo získáno","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} není k dispozici","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} neexistuje","error.failed_to_load_image":"Nepodařilo se načíst obrázek","wikitree.private":"Soukromé","tab.info":"Informace","tab.settings":"Nastavení","config.colors":"Barvy","config.colors.NO_COLOR":"žádné","config.colors.COLOR_BY_GENERATION":"podle generace","config.colors.COLOR_BY_SEX":"podle pohlaví","config.ids":"Identifikátory","config.ids.HIDE":"skrýt","config.ids.SHOW":"zobrazit","config.sex":"Pohlaví","config.sex.HIDE":"skrýt","config.sex.SHOW":"zobrazit","config.places":"Místa","config.places.FULL":"plný","config.places.SHORT":"zkrácený","config.places.HIDE":"skrýt","head.source":"Zdroj dat","name.unknown_name":"N.N.","extras.images":"Obrázky","extras.notes":"Poznámky","extras.sources":"Zdroje","extras.files":"Další soubory","family.immediate_family":"Nejbližší rodina","family.parents":"Rodiče","family.father":"Otec","family.mother":"Matka","family.husband":"Manžel","family.wife":"Manželka","family.unknown_spouse":"Neznámý manžel/ka","family.children":"Děti","family.child":"Dítě","media.not_uploaded":"Soubor nebyl nahrán","menu.load_from_google_drive":"Načíst z Google Disku","menu.google_sign_out":"Odpojit Google Disk","google_auth.title":"Je vyžadován přístup k Disku Google","google_auth.instructions":"Chcete-li tento soubor zobrazit, musíte se ověřit a vybrat soubor z Disku Google, abyste udělili oprávnění.","google_auth.picker_instructions_header":"Vyžadována oprávnění","google_auth.picker_instructions":"Aplikace nemá oprávnění ke čtení tohoto souboru. Vyberte jej prosím v rozevíracím seznamu prohlížeče souborů pro udělení přístupu. Pokud se jedná o sdílený soubor, který se nezobrazuje, zkuste nejprve přidat zástupce na svůj Disk.","google_auth.cancel":"Zrušit","google_auth.grant_button":"Udělit přístup a vybrat soubor","google_auth.switch_account_button":"Přepnout účet","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integrace s Diskem Google není nakonfigurována."},uhe={"menu.open":"Öffnen","menu.open_file":"Datei öffnen","menu.load_from_url":"URL öffnen","menu.select_wikitree_id":"WikiTree ID auswählen","menu.print":"Drucken","menu.download":"Download","menu.pdf_file":"PDF-Datei","menu.png_file":"PNG-Datei","menu.svg_file":"SVG-Datei","menu.download_pdf":"PDF herunterladen","menu.download_png":"PNG herunterladen","menu.download_svg":"SVG herunterladen","menu.view":"Ansicht","menu.hourglass":"Sanduhrkarte","menu.relatives":"Alle Verwandten","menu.donatso":"Donatso-Stammbaum","menu.fancy":"Zierbaum (experimentell)","menu.wikitree_login":"Bei WikiTree anmelden","menu.wikitree_logged_in":"Eingeloggt","menu.wikitree_popup_username":"Bei WikiTree als {username} angemeldet","menu.wikitree_popup":"Bei WikiTree angemeldet","menu.github":"Projekt auf der GitHub-Website","menu.search.placeholder":"Person suchen","menu.search.placeholder_with_shortcut":"Person suchen ('/' drücken)","menu.search.no_results":"Keine Ergebnisse","intro.title":"Topola Genealogie","intro.description":"Mit der Topola Genealogie können Sie den Stammbaum auf interaktive Weise durchsuchen.","intro.instructions":"Klicken Sie auf Datei öffnen oder URL öffnen, um eine GEDCOM-Datei zu laden. Die meisten Genealogie-Programme verfügen über eine GEDCOM-Exportfunktion.","intro.examples":"Nachfolgend einige Beispiele aus dem Internet:","intro.from":"Quelle:","intro.whats_new":"Was ist neu","intro.full_changelog":"Siehe komplette Änderungshistorie","whats_new.title":"Was ist in dieser Version neu!","intro.privacy":"Datenschutz","intro.privacy_note":'Bei Verwendung der Funktion "Datei öffnen" werden Ihre Daten nirgendwo gesendet und verbleiben auf Ihrem Computer. Bei Verwendung der Funktion "URL öffnen" werden Daten von der angegebenen Adresse vom Dienst {link} an gesendet Ermöglichen des Ladens von Daten aus einer anderen Domäne (CORS).',"load_from_url.title":"Von URL öffnen","load_from_url.comment":"Die Daten der angegebenen URL werden über den {link} -Dienst geladen, um CORS-Probleme zu vermeiden.","load_from_url.cancel":"Abbrechen","load_from_url.load":"Öffnen","select_wikitree_id.title":"WikiTree ID eingeben","select_wikitree_id.comment":"Geben Sie die Profil-ID {wikiTreeLink} ein. Beispiele: {example1}, {example2}","select_wikitree_id.cancel":"Abbrechen","select_wikitree_id.load":"Öffnen","gedcom.ADOP":"Adoption","gedcom.BAPM":"Taufe","gedcom.BARM":"Bar-Mitzwah","gedcom.BASM":"Bas-Mitzwah","gedcom.BIRT":"Geburt","gedcom.BLES":"Segnung","gedcom.BURI":"Beerdigung","gedcom.CENS":"Volkszählung","gedcom.CHR":"Taufe","gedcom.CHRA":"Erwachsenentaufe","gedcom.CONF":"Konfirmation/Firmung","gedcom.CREM":"Feuerbestattung","gedcom.DEAT":"Tod","gedcom.DEG":"Akademischer Grad","gedcom.DIV":"Scheidung","gedcom.DIVF":"Scheidung eingereicht","gedcom.DSCR":"Beschreibung","gedcom.EDUC":"Ausbildung","gedcom.ELEC":"Auswahl für die Position","gedcom.EMAIL":"E-Mail","gedcom.EMIG":"Auswanderung","gedcom.ENGA":"Verlobung","gedcom.EVEN":"Ereignis","gedcom.FACT":"Merkmal","gedcom.FCOM":"Erstkommunion","gedcom.GRAD":"Ausbildungsabschluss","gedcom.IMMI":"Einwanderung","gedcom.MARB":"Aufgebot","gedcom.MARC":"Ehevertrag","gedcom.MARL":"Eheerlaubnis","gedcom.MARR":"Heirat","gedcom.MARS":"Ehevereinbarung","gedcom.MDCL":"Medizinische Informationen","gedcom.MILT":"Mititärdienst","gedcom.NATU":"Einbürgerung","gedcom.OBJE":"Zusätzliche Dateien","gedcom.OCCU":"Beruf","gedcom.ORDN":"Ordinierung","gedcom.PROB":"Testamentsbestätigung","gedcom.PROP":"Besitz","gedcom.RESI":"Wohnort","gedcom.RETI":"Ruhestand","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Quellen","gedcom.TITL":"Titel","gedcom.WILL":"Testament","gedcom.WWW":"Website","gedcom._UPD":"Zuletzt aktualisiert","gedcom.birth":"Geburtsname","gedcom.married":"Ehenamen","gedcom.maiden":"Mädchenname","gedcom.immigrant":"Immigrant name","gedcom.aka":"Auch bekannt als","date.abt":"Über","date.cal":"berechnet","date.est":"geschätzt","date.between":"zwischen {from} und {to}","date.after":"nach {from}","date.before":"vor {to}","age.exact":"{qualifier}{age, plural, =0 {Weniger als 1 Jahr} one {1 Jahr} other {# Jahre}}","age.less":"Weniger als {age, plural, =0 {1 Jahr} one {1 Jahr} other {# Jahre}}","age.more":"Mehr als {age, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","age.between":"Zwischen {ageFrom} und {ageTo, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","error.error":"Fehler","error.failed_pdf":"PDF konnte nicht erstellt werden. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_png":"Fehler beim Erstellen der PNG-Datei. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_to_load_file":"Fehler beim Laden der Datei","error.failed_wikitree_load_more":"Fehler beim Abrufen der Daten aus WikiTree. {error}","error.GEDCOM_READ_FAILED":"Fehler beim Lesen der GEDCOM-Datei","error.ERROR_LOADING_UPLOADED_FILE":"Fehler beim Laden der Daten. Bitte laden Sie Ihre Datei erneut hoch.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree-ID muss angegeben werden","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Das WikiTree-Profil {id} ist nicht zugänglich. Versuchen Sie sich anzumelden.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-Profil {id} nicht gefunden","error.failed_to_load_image":"Bilddatei konnte nicht geladen werden","wikitree.private":"Privat","tab.info":"Informationen","tab.settings":"Einstellungen","config.colors":"Farben","config.colors.NO_COLOR":"keine","config.colors.COLOR_BY_GENERATION":"je Generation","config.colors.COLOR_BY_SEX":"nach Geschlecht","config.ids":"Identifikation","config.ids.HIDE":"verbergen","config.ids.SHOW":"anzeigen","config.sex":"Geschlecht","config.sex.HIDE":"verbergen","config.sex.SHOW":"anzeigen","config.places":"Orte","config.places.FULL":"vollständig","config.places.SHORT":"gekürzt","config.places.HIDE":"verbergen","head.source":"Datenquelle","name.unknown_name":"N.N.","extras.images":"Bilder","extras.notes":"Notizen","extras.sources":"Quellen","extras.files":"Weitere Dateien","family.immediate_family":"Engere Familie","family.parents":"Eltern","family.father":"Vater","family.mother":"Mutter","family.husband":"Ehemann","family.wife":"Ehefrau","family.unknown_spouse":"Unbekannter Ehepartner","family.children":"Kinder","family.child":"Kind","media.not_uploaded":"Datei nicht hochgeladen","menu.load_from_google_drive":"Von Google Drive laden","menu.google_sign_out":"Google Drive trennen","google_auth.title":"Google Drive-Zugriff erforderlich","google_auth.instructions":"Um diese Datei anzuzeigen, müssen Sie sich authentifizieren und die Datei aus Ihrem Google Drive auswählen, um Berechtigungen zu erteilen.","google_auth.picker_instructions_header":"Berechtigungen erforderlich","google_auth.picker_instructions":"Die Anwendung hat keine Berechtigung, diese Datei zu lesen. Bitte wählen Sie sie im Dateibrowser-Popup aus, um Zugriff zu gewähren. Wenn es sich um eine freigegebene Datei handelt, die nicht angezeigt wird, versuchen Sie zuerst, eine Verknüpfung zu Ihrem Drive hinzuzufügen.","google_auth.cancel":"Abbrechen","google_auth.grant_button":"Zugriff gewähren & Datei auswählen","google_auth.switch_account_button":"Konto wechseln","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Die Google Drive-Integration ist nicht konfiguriert."},che={"menu.open":"Ouvrir","menu.open_file":"Ouvrir le fichier","menu.load_from_url":"Ouvrir l'URL","menu.select_wikitree_id":"Sélectionnez l'ID WikiTree","menu.print":"Imprimer","menu.download":"Télécharger","menu.pdf_file":"Fichier PDF","menu.png_file":"Fichier PNG","menu.svg_file":"Fichier SVG","menu.download_pdf":"Télécharger le PDF","menu.download_png":"Télécharger PNG","menu.download_svg":"Télécharger SVG","menu.view":"Afficher","menu.hourglass":"Graphique en sablier","menu.relatives":"Tous les parents","menu.donatso":"Donatso tableau généalogique","menu.fancy":"Arbre ornemental (expérimental)","menu.wikitree_login":"Connectez-vous à WikiTree","menu.wikitree_logged_in":"Connecté","menu.wikitree_popup_username":"Connecté à WikiTree en tant que {username}","menu.wikitree_popup":"Connecté à WikiTree","menu.github":"Projet sur le site Web GitHub","menu.search.placeholder":"Rechercher une personne","menu.search.placeholder_with_shortcut":"Rechercher une personne (appuyez sur '/')","menu.search.no_results":"Aucun résultat","intro.title":"Topola Généalogie","intro.description":"La Topola Généalogie vous permet de parcourir l'arbre généalogique de manière interactive.","intro.instructions":"Cliquez sur OPEN FILE ou OPEN URL pour charger un fichier GEDCOM. La plupart des logiciels de généalogie ont une fonction d'exportation GEDCOM.","intro.examples":"Voici quelques exemples trouvés sur Internet:","intro.from":"source:","intro.whats_new":"Quoi de neuf","intro.full_changelog":"Voir toutes les modifications","whats_new.title":"Quoi de neuf dans cette version?","intro.privacy":"Confidentialité","intro.privacy_note":`Lorsque vous utilisez la fonction "Ouvrir un fichier", vos données ne sont envoyées nulle part et restent sur votre ordinateur. Lorsque vous utilisez la fonction "Ouvrir l'URL", les données de l'adresse indiquée sont envoyées par le service {link} pour permettre le chargement des données depuis un autre domaine (CORS).`,"load_from_url.title":"Ouvrir depuis l'URL","load_from_url.comment":"Les données de l'URL donnée seront chargées via le service {link} pour éviter les problèmes CORS.","load_from_url.cancel":"Annuler","load_from_url.load":"Ouvrir","select_wikitree_id.title":"Entrez l'ID de WikiTree","select_wikitree_id.comment":"Entrez l'ID de profil {wikiTreeLink}. Exemples: {example1}, {example2}","select_wikitree_id.cancel":"Annuler","select_wikitree_id.load":"Ouvrir","gedcom.ADOP":"Adoption","gedcom.BAPM":"Baptême","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Naissance","gedcom.BLES":"Bénédiction","gedcom.BURI":"Funérailles","gedcom.CENS":"Recensement","gedcom.CHR":"Baptême","gedcom.CHRA":"Baptême des adultes","gedcom.CONF":"Confirmation","gedcom.CREM":"Crémation","gedcom.DEAT":"Mort","gedcom.DEG":"Diplôme universitaire","gedcom.DIV":"Divorce","gedcom.DIVF":"Divorce déposé","gedcom.DSCR":"Description","gedcom.EDUC":"Études","gedcom.ELEC":"Nomination au poste","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Émigration","gedcom.ENGA":"Fiançailles","gedcom.EVEN":"EVEN","gedcom.FACT":"FACT","gedcom.FCOM":"Première communion","gedcom.GRAD":"Achèvement de la formation","gedcom.IMMI":"Immigration","gedcom.MARB":"Équipe","gedcom.MARC":"Contrat de mariage ","gedcom.MARL":"Licence de mariage","gedcom.MARR":"Mariage","gedcom.MARS":"Contrat prénuptial","gedcom.MDCL":"Informations médicales","gedcom.MILT":"Service militaire","gedcom.NATU":"Naturalisation","gedcom.OBJE":"Fichiers supplémentaires","gedcom.OCCU":"Profession","gedcom.ORDN":"Ordination","gedcom.PROB":"Confirmation de volonté","gedcom.PROP":"Possession","gedcom.RESI":"Lieu de résidence","gedcom.RETI":"Retraite","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Sources","gedcom.TITL":"Titre","gedcom.WILL":"Testament","gedcom.WWW":"Site Web","gedcom._UPD":"Dernière mise à jour","gedcom.birth":"Nom de naissance","gedcom.married":"Nom marital","gedcom.maiden":"Nom de jeune fille","gedcom.immigrant":"Nom d'immigrant","gedcom.aka":"Alias","date.abt":"environ","date.cal":"calculé","date.est":"estimé","date.between":"entre {from} et {to}","date.after":"après {from}","date.before":"avant {to}","age.exact":"{qualifier}{age, plural, =0 {Moins d'1 an} one {1 an} other {# ans}}","age.less":"Moins de {age, plural, =0 {1 an} one {1 an} other {# ans}}","age.more":"Plus de {age, plural, =0 {0 an} one {1 an} other {# ans}}","age.between":"Entre {ageFrom} et {ageTo, plural, =0 {0 an} one {1 an} other {# ans}}","error.error":"Erreur","error.failed_pdf":"Échec de la création du PDF. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_png":"Impossible de créer le fichier PNG. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_to_load_file":"Erreur lors du chargement du fichier","error.failed_wikitree_load_more":"Erreur lors de l'obtention des données de WikiTree. {error}","error.GEDCOM_READ_FAILED":"Erreur de lecture du fichier GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Erreur de chargement des données. Renvoyez votre fichier.","error.WIKITREE_ID_NOT_PROVIDED":"L'ID WikiTree est obligatoire","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Le profil WikiTree ${id} n'est pas accessible. Connectez-vous.","error.WIKITREE_PROFILE_NOT_FOUND":"Le profil WikiTree ${id} n'a pas été trouvé","error.failed_to_load_image":"Erreur de chargement de l'image","wikitree.private":"Privé","tab.info":"Informations","tab.settings":"Paramètres","config.colors":"Couleurs","config.colors.NO_COLOR":"aucune","config.colors.COLOR_BY_GENERATION":"par génération","config.colors.COLOR_BY_SEX":"par sexe","config.ids":"Identification","config.ids.HIDE":"cacher","config.ids.SHOW":"afficher","config.sex":"Sexe","config.sex.HIDE":"cacher","config.sex.SHOW":"afficher","config.places":"Lieux","config.places.FULL":"complet","config.places.SHORT":"abrégé","config.places.HIDE":"cacher","head.source":"Source de données","name.unknown_name":"?","extras.images":"Images","extras.notes":"Notes","extras.sources":"Sources","extras.files":"Fichiers supplémentaires","family.immediate_family":"Famille proche","family.parents":"Parents","family.father":"Père","family.mother":"Mère","family.husband":"Mari","family.wife":"Femme","family.unknown_spouse":"Conjoint inconnu","family.children":"Enfants","family.child":"Enfant","media.not_uploaded":"Fichier non téléversé","menu.load_from_google_drive":"Charger depuis Google Drive","menu.google_sign_out":"Déconnecter Google Drive","google_auth.title":"Accès à Google Drive requis","google_auth.instructions":"Pour afficher ce fichier, vous devez vous authentifier et sélectionner le fichier depuis votre Google Drive pour accorder les autorisations.","google_auth.picker_instructions_header":"Autorisations requises","google_auth.picker_instructions":"L'application n'a pas l'autorisation de lire ce fichier. Veuillez le sélectionner dans la fenêtre contextuelle du navigateur de fichiers pour accorder l'accès. S'il s'agit d'un fichier partagé qui ne s'affiche pas, essayez d'abord d'ajouter un raccourci vers votre Drive.","google_auth.cancel":"Annuler","google_auth.grant_button":"Accorder l'accès et sélectionner le fichier","google_auth.switch_account_button":"Changer de compte","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'intégration de Google Drive n'est pas configurée."},fhe={"menu.open":"Apri","menu.open_file":"Apri file","menu.load_from_url":"Apri URL","menu.select_wikitree_id":"Seleziona ID WikiTree","menu.print":"Stampa","menu.download":"Scarica","menu.pdf_file":"File PDF","menu.png_file":"File PNG","menu.svg_file":"File SVG","menu.download_pdf":"Scarica PDF","menu.download_png":"Scarica PNG","menu.download_svg":"Scarica SVG","menu.view":"Visualizza","menu.hourglass":"Grafico a clessidra","menu.relatives":"Tutti i parenti","menu.donatso":"Donatso albero genealogico","menu.fancy":"Albero ornamentale (sperimentale)","menu.wikitree_login":"Accedi a WikiTree","menu.wikitree_logged_in":"Accesso effettuato","menu.wikitree_popup_username":"Accesso a WikiTree come {username}","menu.wikitree_popup":"Accesso a WikiTree","menu.github":"Progetto sul sito web GitHub","menu.search.placeholder":"Cerca persona","menu.search.placeholder_with_shortcut":"Cerca persona (premi '/')","menu.search.no_results":"Nessun risultato","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy ti consente di esplorare l'albero genealogico in modo interattivo.","intro.instructions":"Fai clic su OPEN FILE o OPEN URL per caricare un file GEDCOM. La maggior parte dei software di genealogia ha una funzione di esportazione GEDCOM.","intro.examples":"Di seguito sono riportati alcuni esempi trovati su Internet:","intro.from":"fonte:","intro.whats_new":"Novità","intro.full_changelog":"Vedi il log delle modifiche completo","whats_new.title":"Cosa c'è di nuovo in questa versione?","intro.privacy":"Protezione dei dati","intro.privacy_note":`Quando si utilizza la funzione "Apri file", i dati non vengono inviati da nessuna parte e rimangono sul computer. Quando si utilizza la funzione "Apri URL", i dati dall'indirizzo specificato vengono inviati dal servizio {link} a consentire il caricamento dei dati da un altro dominio (CORS).`,"load_from_url.title":"Apri da URL","load_from_url.comment":"I dati dall'URL specificato verranno caricati tramite il servizio {link} per evitare problemi CORS.","load_from_url.cancel":"Annulla","load_from_url.load":"Apri","select_wikitree_id.title":"Inserisci ID WikiTree","select_wikitree_id.comment":"Inserisci l'ID profilo {wikiTreeLink}. Esempi: {example1}, {example2}","select_wikitree_id.cancel":"Annulla","select_wikitree_id.load":"Apri","gedcom.ADOP":"Adozione","gedcom.BAPM":"Battesimo","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Nascita","gedcom.BLES":"Benedizione","gedcom.BURI":"Sepoltura","gedcom.CENS":"Censimento","gedcom.CHR":"Battesimo","gedcom.CHRA":"Battesimo degli adulti","gedcom.CONF":"Cresima","gedcom.CREM":"Cremazione","gedcom.DEAT":"Morte","gedcom.DEG":"Titolo accademico","gedcom.DIV":"Divorzio","gedcom.DIVF":"Richiesta di divorzio","gedcom.DSCR":"Descrizione fisica","gedcom.EDUC":"Istruzione","gedcom.ELEC":"Elezione a carica","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrazione","gedcom.ENGA":"Fidanzamento","gedcom.EVEN":"Evento","gedcom.FACT":"Fatto","gedcom.FCOM":"Prima Comunione","gedcom.GRAD":"Conseguimento del titolo di studio","gedcom.IMMI":"Immigrazione","gedcom.MARB":"Pubblicazioni matrimoniali","gedcom.MARC":"Accordo matrimoniale","gedcom.MARL":"Licenza di matrimonio","gedcom.MARR":"Matrimonio","gedcom.MARS":"Accordo prematrimoniale","gedcom.MDCL":"Informazioni mediche","gedcom.MILT":"Servizio militare","gedcom.NATU":"Naturalizzazione","gedcom.OBJE":"Media allegati","gedcom.OCCU":"Professione","gedcom.ORDN":"Ordinazione religiosa","gedcom.PROB":"Omologazione del testamento","gedcom.PROP":"Proprietà","gedcom.RESI":"Residenza","gedcom.RETI":"Pensionamento","gedcom.RELI":"Religione","gedcom.RIN":"ID","gedcom.SOUR":"Fonti","gedcom.TITL":"Titolo nobiliare/professionale","gedcom.WILL":"Testamento","gedcom.WWW":"Sito web","gedcom._UPD":"Ultimo aggiornamento","gedcom.birth":"Nome alla nascita","gedcom.married":"Nome dopo il matrimonio","gedcom.maiden":"Cognome da nubile","gedcom.immigrant":"Nome all'immigrazione","gedcom.aka":"Detto anche","date.abt":"circa","date.cal":"calcolato","date.est":"stimato","date.between":"tra il {from} e il {to}","date.after":"dopo il {from}","date.before":"prima del {to}","age.exact":"{qualifier}{age, plural, =0 {Meno di 1 anno} one {1 anno} other {# anni}}","age.less":"Meno di {age, plural, =0 {1 anno} one {1 anno} other {# anni}}","age.more":"Più di {age, plural, =0 {0 anni} one {1 anno} other {# anni}}","age.between":"Tra {ageFrom} e {ageTo, plural, =0 {0 anni} one {1 anno} other {# anni}}","error.error":"Errore","error.failed_pdf":"Impossibile creare PDF. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_png":"Impossibile creare il file PNG. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_to_load_file":"Errore durante il caricamento del file","error.failed_wikitree_load_more":"Errore durante il recupero dei dati da WikiTree. {error}","error.GEDCOM_READ_FAILED":"Impossibile leggere il file GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Errore durante il caricamento dei dati. Carica nuovamente il file.","error.WIKITREE_ID_NOT_PROVIDED":"È necessario fornire l'ID WikiTree.","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Il profilo WikiTree {id} non è accessibile. Prova ad effettuare il login.","error.WIKITREE_PROFILE_NOT_FOUND":"Profilo WikiTree {id} non trovato","error.failed_to_load_image":"Impossibile caricare il file immagine","wikitree.private":"Privato","tab.info":"Informazioni","tab.settings":"Impostazioni","config.colors":"Colori","config.colors.NO_COLOR":"nessuno","config.colors.COLOR_BY_GENERATION":"per generazione","config.colors.COLOR_BY_SEX":"per sesso","config.ids":"Identificazione","config.ids.HIDE":"nascondere","config.ids.SHOW":"visualizzare","config.sex":"Sesso","config.sex.HIDE":"nascondere","config.sex.SHOW":"visualizzare","config.places":"Luoghi","config.places.FULL":"completo","config.places.SHORT":"abbreviato","config.places.HIDE":"nascondere","head.source":"Origine dati","name.unknown_name":"N.N.","extras.images":"Immagini","extras.notes":"Appunti","extras.sources":"Fonti","extras.files":"File aggiuntivi","family.immediate_family":"Famiglia stretta","family.parents":"Genitori","family.father":"Padre","family.mother":"Madre","family.husband":"Marito","family.wife":"Moglie","family.unknown_spouse":"Coniuge sconosciuto","family.children":"Figli","family.child":"Figlio/a","media.not_uploaded":"File non caricato","menu.load_from_google_drive":"Carica da Google Drive","menu.google_sign_out":"Disconnetti Google Drive","google_auth.title":"Accesso a Google Drive richiesto","google_auth.instructions":"Per visualizzare questo file, devi autenticarti e selezionare il file dal tuo Google Drive per concedere le autorisations.","google_auth.picker_instructions_header":"Autorizzazioni richieste","google_auth.picker_instructions":"L'applicazione non ha l'autorizzazione di leggere questo file. Selezionalo nel popup del browser dei file per concedere l'accesso. Se si tratta di un file condiviso che non viene visualizzato, prova prima ad aggiungere una scorciatoia al tuo Drive.","google_auth.cancel":"Annulla","google_auth.grant_button":"Concedi l'accesso e seleziona il file","google_auth.switch_account_button":"Cambia account","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'integrazione con Google Drive non è configurata."},dhe={"menu.open":"Otwórz","menu.open_file":"Otwórz plik","menu.load_from_url":"Otwórz URL","menu.select_wikitree_id":"Wybierz WikiTree ID","menu.print":"Drukuj","menu.download":"Pobierz","menu.pdf_file":"Plik PDF","menu.png_file":"Plik PNG","menu.svg_file":"Plik SVG","menu.download_pdf":"Pobierz PDF","menu.download_png":"Pobierz PNG","menu.download_svg":"Pobierz SVG","menu.view":"Widok","menu.hourglass":"Wykres klepsydrowy","menu.relatives":"Wszyscy krewni","menu.donatso":"Donatso wykres rodzinny","menu.fancy":"Ozdobne drzewo (eksperymentalne)","menu.wikitree_login":"Zaloguj do WikiTree","menu.wikitree_logged_in":"Zalogowano","menu.wikitree_popup_username":"Zalogowano do WikiTree jako {username}","menu.wikitree_popup":"Zalogowano do WikiTree","menu.github":"Projekt na stronie GitHub","menu.search.placeholder":"Szukaj osoby","menu.search.placeholder_with_shortcut":"Szukaj osoby (naciśnij '/')","menu.search.no_results":"Brak wyników","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy pozwala przeglądać drzewo genealogiczne w interaktywny sposób.","intro.instructions":"Kliknij OTWÓRZ PLIK lub OTWÓRZ URL, aby załadować plik GEDCOM. Większość programów genealogicznych posiada funkcję eksportu do pliku GEDCOM.","intro.examples":"Przykłady","intro.from":"źródło:","intro.whats_new":"Co nowego?","intro.full_changelog":"Zobacz pełną listę zmian","whats_new.title":"Co nowego w tej wersji?","intro.privacy":"Prywatność","intro.privacy_note":'Używając funkcji "Otwórz plik", Twoje dane nie są nigdzie wysyłane i pozostają na Twoim komputerze. Używając funkcji "Otwórz URL", dane z podanego adresu przesyłane są przez usługę {link} w celu umożliwienia załadowania danych z innej domeny (CORS).',"load_from_url.title":"Otwórz z adresu URL","load_from_url.comment":"Dane z podanego adresu URL zostaną załadowane poprzez usługę {link} w celu uniknięcia problemów z CORS.","load_from_url.cancel":"Anuluj","load_from_url.load":"Otwórz","select_wikitree_id.title":"Podaj WikiTree ID","select_wikitree_id.comment":"Wpisz identyfikator profilu {wikiTreeLink}. Przykłady: {example1}, {example2}","select_wikitree_id.cancel":"Anuluj","select_wikitree_id.load":"Otwórz","gedcom.ADOP":"Adopcja","gedcom.BAPM":"Chrzest","gedcom.BARM":"Bar Micwa","gedcom.BASM":"Bat Micwa","gedcom.BIRT":"Narodziny","gedcom.BLES":"Błogosławieństwo","gedcom.BURI":"Pogrzeb","gedcom.CENS":"Spis ludności","gedcom.CHR":"Chrzest","gedcom.CHRA":"Chrzest dorosłych","gedcom.CONF":"Bierzmowanie","gedcom.CREM":"Kremacja","gedcom.DEAT":"Śmierć","gedcom.DEG":"Stopień naukowy","gedcom.DIV":"Rozwód","gedcom.DIVF":"Wniesienie pozwu o rozwód","gedcom.DSCR":"Opis","gedcom.EDUC":"Wykształcenie","gedcom.ELEC":"Wybór na stanowisko","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigracja","gedcom.ENGA":"Zaręczyny","gedcom.EVEN":"Wydarzenie","gedcom.FACT":"Fakt","gedcom.FCOM":"Pierwsza komunia","gedcom.GRAD":"Ukończenie szkoły","gedcom.IMMI":"Imigracja","gedcom.MARB":"Zapowiedzi małżeńskie","gedcom.MARC":"Kontrakt małżeński","gedcom.MARL":"Licencja małżeńska","gedcom.MARR":"Małżeństwo","gedcom.MARS":"Ugoda małżeńska","gedcom.MDCL":"Informacje medyczne","gedcom.MILT":"Służba wojskowa","gedcom.NATU":"Nadanie obywatelstwa","gedcom.OBJE":"Dodatkowe pliki","gedcom.OCCU":"Zawód","gedcom.ORDN":"Święcenia","gedcom.PROB":"Postępowanie spadkowe","gedcom.PROP":"Nieruchomość","gedcom.RESI":"Miejsce zamieszkania","gedcom.RETI":"Emerytura","gedcom.RELI":"Religia","gedcom.RIN":"ID","gedcom.SOUR":"Źródła","gedcom.TITL":"Tytuł","gedcom.WILL":"Testament","gedcom.WWW":"Strona WWW","gedcom._UPD":"Ostatnia aktualizacja","gedcom.birth":"Nazwisko rodowe","gedcom.married":"Nazwisko po małżeństwie","gedcom.maiden":"Nazwisko panieńskie","gedcom.immigrant":"Nazwisko po imigracji","gedcom.aka":"Alias","date.abt":"około","date.cal":"wyliczone","date.est":"oszacowane","date.between":"między {from} a {to}","date.after":"po {from}","date.before":"przed {to}","age.exact":"{age, plural, =0 {Mniej niż 1 rok} one {{qualifier} 1 rok} many {{qualifier} # lat} other {{qualifier} # lata}}","age.less":"Mniej niż {age, plural, =0 {1 rok} one {1 rok} many {# lat} other {# lata}}","age.more":"Więcej niż {age, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","age.between":"Między {ageFrom} a {ageTo, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","error.error":"Błąd","error.failed_pdf":"Nie udało się utworzyć pliku PDF. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_png":"Nie udało się utworzyć pliku PNG. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_to_load_file":"Błąd wczytywania pliku","error.failed_wikitree_load_more":"Błąd podczas pobierania danych z WikiTree. {error}","error.GEDCOM_READ_FAILED":"Błąd wczytywania pliku GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Błąd wczytywania danych. Otwórz ponownie plik.","error.WIKITREE_ID_NOT_PROVIDED":"Identyfikator WikiTree nie został podany","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nie jest dostępny","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} nie istnieje","error.failed_to_load_image":"Błąd podczas pobierania pliku ze zdjęciem","wikitree.private":"Prywatne","tab.info":"Informacje","tab.settings":"Ustawienia","config.colors":"Kolory","config.colors.NO_COLOR":"brak","config.colors.COLOR_BY_GENERATION":"według pokolenia","config.colors.COLOR_BY_SEX":"według płci","config.ids":"Identyfikator","config.ids.HIDE":"ukryj","config.ids.SHOW":"pokaż","config.sex":"Płeć","config.sex.HIDE":"ukryj","config.sex.SHOW":"pokaż","config.places":"Miejsca","config.places.FULL":"pełne","config.places.SHORT":"skrócone","config.places.HIDE":"ukryj","head.source":"Źródło danych","name.unknown_name":"N.N.","extras.images":"Zdjęcia","extras.notes":"Notatki","extras.sources":"Źródła","extras.files":"Dodatkowe pliki","family.immediate_family":"Najbliższa rodzina","family.parents":"Rodzice","family.father":"Ojciec","family.mother":"Matka","family.husband":"Mąż","family.wife":"Żona","family.unknown_spouse":"Nieznany współmałżonek","family.children":"Dzieci","family.child":"Dziecko","media.not_uploaded":"Plik nieprzesłany","menu.load_from_google_drive":"Otwórz z Dysku Google","menu.google_sign_out":"Rozłącz Dysk Google","google_auth.title":"Wymagany dostęp do Dysku Google","google_auth.instructions":"Aby wyświetlić ten plik, musisz się zalogować i wybrać plik z Dysku Google, aby przyznać uprawnienia.","google_auth.picker_instructions_header":"Wymagane uprawnienia","google_auth.picker_instructions":"Aplikacja nie ma uprawnień do odczytu tego pliku. Wybierz go w oknie wyszukiwania plików, aby przyznać dostęp. Jeśli to jest plik udostępniony, który się nie wyświetla, spróbuj najpierw dodać skrót do swojego Dysku.","google_auth.cancel":"Anuluj","google_auth.grant_button":"Przejdź do autoryzacji i wyboru pliku","google_auth.switch_account_button":"Przełącz konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integracja z Dyskiem Google nie jest skonfigurowana."},hhe={"menu.open":"Открыть","menu.open_file":"Открыть файл","menu.load_from_url":"Открыть URL","menu.select_wikitree_id":"Выберите WikiTree ID","menu.print":"Печать","menu.download":"Скачать","menu.pdf_file":"Файл PDF","menu.png_file":"Файл PNG","menu.svg_file":"Файл SVG","menu.download_pdf":"Скачать PDF","menu.download_png":"Скачать PNG","menu.download_svg":"Скачать SVG","menu.view":"Вид","menu.hourglass":"График Песочные часы","menu.relatives":"Все родственники","menu.donatso":"Donatso семейная схема","menu.fancy":"Декоративное дерево (экспериментальное)","menu.wikitree_login":"Войти в WikiTree","menu.wikitree_logged_in":"Вход выполнен","menu.wikitree_popup_username":"Вы вошли в WikiTree как {username}","menu.wikitree_popup":"Вы вошли в WikiTree","menu.github":"Проект на сайте GitHub","menu.search.placeholder":"Искать человека","menu.search.placeholder_with_shortcut":"Искать человека (нажмите '/')","menu.search.no_results":"Нет результатов","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy позволяет просматривать семейное древо в интерактивном режиме.","intro.instructions":'Щелкните "Открыть файл" или "Открыть URL", чтобы загрузить файл GEDCOM. Большинство программ для генеалогии имеют функцию экспорта GEDCOM.',"intro.examples":"Ниже приведены некоторые примеры, найденные в Интернете:","intro.from":"источник:","intro.whats_new":"Что нового?","intro.full_changelog":"Список изменений","whats_new.title":"Что нового в этой версии?","intro.privacy":"Конфиденциальность","intro.privacy_note":'При использовании функции "Открыть файл" Ваши данные никуда не отправляются и остаются на Вашем компьютере. При использовании функции "Открыть URL" данные с указанного адреса отправляются службой {link} на включение загрузки данных из другого домена (CORS).',"load_from_url.title":"Открыть с адреса URL","load_from_url.comment":"Данные с указанного адреса URL будут загружены через службу {link}, чтобы избежать проблем CORS.","load_from_url.cancel":"Отменить","load_from_url.load":"Открыть","select_wikitree_id.title":"Введите идентификатор WikiTree","select_wikitree_id.comment":"Введите идентификатор профиля {wikiTreeLink}. Примеры: {example1}, {example2}","select_wikitree_id.cancel":"Отмена","select_wikitree_id.load":"Открыть","gedcom.ADOP":"Усыновление","gedcom.BAPM":"Крещение","gedcom.BARM":"Бар-мицва","gedcom.BASM":"Бас Мицва","gedcom.BIRT":"Рождение","gedcom.BLES":"Благословение","gedcom.BURI":"Похороны","gedcom.CENS":"Перепись населения","gedcom.CHR":"Крещение","gedcom.CHRA":"Крещение взрослых","gedcom.CONF":"Подтверждение","gedcom.CREM":"Кремация","gedcom.DEAT":"Смерть","gedcom.DEG":"Ученая степень","gedcom.DIV":"Развод","gedcom.DIVF":"Подано заявление о разводе","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Выбор на должность","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Эмиграция","gedcom.ENGA":"Помолвка","gedcom.EVEN":"Событие","gedcom.FACT":"Факт","gedcom.FCOM":"Первое Причастие","gedcom.GRAD":"Завершение обучения","gedcom.IMMI":"Иммиграция","gedcom.MARB":"Отряд","gedcom.MARC":"Брачный контракт","gedcom.MARL":"Свидетельство о браке","gedcom.MARR":"Свадьба","gedcom.MARS":"Брачный договор","gedcom.MDCL":"Медицинская информация","gedcom.MILT":"Военная служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Дополнительные файлы","gedcom.OCCU":"Вид деятельности","gedcom.ORDN":"Рукоположение","gedcom.PROB":"Подтверждение завещания","gedcom.PROP":"Владение","gedcom.RESI":"Место жительства","gedcom.RETI":"Выход на пенсию","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Источники","gedcom.TITL":"Титул","gedcom.WILL":"Завещание","gedcom.WWW":"Веб-сайт WWW","gedcom._UPD":"Последнее обновление","gedcom.birth":"Имя при рождении","gedcom.married":"Имя в браке","gedcom.maiden":"Девичья фамилия","gedcom.immigrant":"Имя в эмиграции","gedcom.aka":"Он(а) же","date.abt":"около","date.cal":"рассчитано","date.est":"приблизительно","date.between":"между {from} и {to}","date.after":"после {from}","date.before":"до {to}","age.exact":"{age, plural, =0 {Менее 1 года} one {{qualifier} 1 год} many {{qualifier} # лет} other {{qualifier} # года}}","age.less":"Менее {age, plural, =0 {1 года} one {1 год} many {# лет} other {# года}}","age.more":"Более {age, plural, =0 {0 лет} one {1 год} many {# лет} other {# года}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 лет} one {1 год} many {# год} other {# лет}}","error.error":"Ошибка","error.failed_pdf":"Не удалось создать PDF-файл. Повторите попытку с меньшей диаграммой или загрузите файл SVG.","error.failed_png":"Не удалось создать файл PNG. Повторите попытку с меньшей схемой или загрузите файл SVG.","error.failed_to_load_file":"Ошибка загрузки файла","error.failed_wikitree_load_more":"Ошибка при получении данных из WikiTree. {error}","error.GEDCOM_READ_FAILED":"Ошибка чтения файла GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Ошибка чтения данных. Повторите.","error.WIKITREE_ID_NOT_PROVIDED":"Не указан идентификатор WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профиль WikiTree {id} недоступен","error.WIKITREE_PROFILE_NOT_FOUND":"Профиль WikiTree {id} не найден","error.failed_to_load_image":"Ошибка при открытии картинки","wikitree.private":"Частный","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвет","config.colors.NO_COLOR":"Без цвета","config.colors.COLOR_BY_GENERATION":"По поколениям","config.colors.COLOR_BY_SEX":"По полу","config.ids":"Идентификатор","config.ids.HIDE":"Скрыть","config.ids.SHOW":"Показать","config.sex":"Пол","config.sex.HIDE":"Скрыть","config.sex.SHOW":"Показать","config.places":"Места","config.places.FULL":"полное","config.places.SHORT":"сокращённое","config.places.HIDE":"скрыть","head.source":"Источник данных","name.unknown_name":"Неизвестно","extras.images":"Картинки","extras.notes":"Примечание","extras.sources":"Источники","extras.files":"Дополнительные файлы","family.immediate_family":"Ближайшие родственники","family.parents":"Родители","family.father":"Отец","family.mother":"Мать","family.husband":"Муж","family.wife":"Жена","family.unknown_spouse":"Неизвестный супруг(а)","family.children":"Дети","family.child":"Ребёнок","media.not_uploaded":"Файл не загружен","menu.load_from_google_drive":"Загрузить с Google Диска","menu.google_sign_out":"Отключить Google Диск","google_auth.title":"Требуется доступ к Google Диску","google_auth.instructions":"Чтобы просмотреть этот файл, необходимо пройти авторизацию и выбрать файл на Google Диске для предоставления разрешений.","google_auth.picker_instructions_header":"Требуются разрешения","google_auth.picker_instructions":"У приложения нет разрешения на чтение этого файла. Пожалуйста, выберите его во всплывающем окне выбора файлов, чтобы предоставить доступ. Если это общий файл, который не отображается, попробуйте сначала добавить ярлык на свой Диск.","google_auth.cancel":"Отмена","google_auth.grant_button":"Предоставить доступ и выбрать файл","google_auth.switch_account_button":"Сменить аккаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграция с Google Диском не настроена."},phe={"menu.open":"Öppna","menu.open_file":"Öppna fil","menu.load_from_url":"Öppna URL","menu.select_wikitree_id":"Välj WikiTree ID","menu.print":"Skriv ut","menu.download":"Ladda ner","menu.pdf_file":"PDF-fil","menu.png_file":"PNG-fil","menu.svg_file":"SVG-fil","menu.download_pdf":"Ladda ner PDF","menu.download_png":"Ladda ner PNG","menu.download_svg":"Ladda ner SVG","menu.view":"Visa","menu.hourglass":"Timglasdiagram","menu.relatives":"Alla släktingar","menu.donatso":"Donatso stamträd","menu.fancy":"Prydnadsträd (experimentellt)","menu.wikitree_login":"Logga in på WikiTree","menu.wikitree_logged_in":"Inloggad","menu.wikitree_popup_username":"Inloggad på WikiTree som {username}","menu.wikitree_popup":"Inloggad på WikiTree","menu.github":"Projekt på GitHub-webbplats","menu.search.placeholder":"Sök person","menu.search.no_results":"Inga resultat","intro.title":"Topola Genealogi","intro.description":"Med Topola Genealogi kan du bläddra i stamträdet på ett interaktivt sätt.","intro.instructions":"Klicka på Öppna fil eller Öppna URL för att ladda en GEDCOM-fil. De flesta genealogiprogam har en GEDCOM-exportfunktion.","intro.examples":"Här är några exempel från Internet:","intro.from":"källa:","intro.whats_new":"Vad är nytt","intro.full_changelog":"Se full ändringshistorik","whats_new.title":"Vad är nytt i denna version!","intro.privacy":"Integritet","intro.privacy_note":'När du använder funktionen "Öppna fil" skickas dina data inte någonstans och förblir på din dator. När du använder funktionen "Öppna URL" skickas data från den angivna adressen via tjänsten {link} för att möjliggöra inläsning av data från en annan domän (CORS).',"load_from_url.title":"Öppna från URL","load_from_url.comment":"Data från den angivna URL:en kommer att laddas via tjänsten {link} för att undvika CORS-problem.","load_from_url.cancel":"Avbryt","load_from_url.load":"Öppna","select_wikitree_id.title":"Ange WikiTree ID","select_wikitree_id.comment":"Ange profil-ID {wikiTreeLink}. Exempel: {example1}, {example2}","select_wikitree_id.cancel":"Avbryt","select_wikitree_id.load":"Öppna","gedcom.ADOP":"Adoption","gedcom.BAPM":"Dop","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Födsla","gedcom.BLES":"Välsignelse","gedcom.BURI":"Begravning","gedcom.CENS":"Folkräkning","gedcom.CHR":"Dop","gedcom.CHRA":"Vuxendop","gedcom.CONF":"Konfirmation","gedcom.CREM":"Kremering","gedcom.DEAT":"Död","gedcom.DEG":"Universitetsgrad","gedcom.DIV":"Skilsmässa","gedcom.DIVF":"Skilsmässoansökan","gedcom.DSCR":"Beskrivning","gedcom.EDUC":"Utbildning","gedcom.ELEC":"Val till befattning","gedcom.EMAIL":"E-post","gedcom.EMIG":"Emigration","gedcom.ENGA":"Förlovning","gedcom.EVEN":"Händelse","gedcom.FACT":"Faktum","gedcom.FCOM":"Första nattvarden","gedcom.GRAD":"Utbildningsavslutning","gedcom.IMMI":"Immigration","gedcom.MARB":"Lysning","gedcom.MARC":"Äktenskapskontakt","gedcom.MARL":"Äktenskapslicens","gedcom.MARR":"Äktenskap","gedcom.MARS":"Förlikning före äktenskap","gedcom.MDCL":"Medicinsk information","gedcom.MILT":"Militärtjänst","gedcom.NATU":"Naturalisering","gedcom.OBJE":"Ytterligare filer","gedcom.OCCU":"Yrke","gedcom.ORDN":"Ordination","gedcom.PROB":"Testamentsbekräftelse","gedcom.PROP":"Egendom","gedcom.RESI":"Bostadsort","gedcom.RETI":"Pensionering","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Källor","gedcom.TITL":"Titel","gedcom.WILL":"Testamente","gedcom.WWW":"Webbplats","gedcom._UPD":"Senast uppdaterad","gedcom.birth":"Födelsenamn","gedcom.married":"Äktenskapsnamn","gedcom.maiden":"Flicknamn","gedcom.immigrant":"Immigrantnamn","gedcom.aka":"Alias","date.abt":"ungefär","date.cal":"beräknad","date.est":"uppskattat","date.between":"mellan {from} och {to}","date.after":"efter {from}","date.before":"före {to}","age.exact":"{qualifier}{age, plural, =0 {Mindre än 1 år} one {1 år} other {# år}}","age.less":"Mindre än {age, plural, =0 {1 år} one {1 år} other {# år}}","age.more":"Mer än {age, plural, =0 {0 år} one {1 år} other {# år}}","age.between":"Mellan {ageFrom} och {ageTo, plural, =0 {0 år} one {1 år} other {# år}}","error.error":"Fel","error.failed_pdf":"Kunde inte skapa PDF. Försök igen med ett mindre diagram eller ladda ner SVG-filen.","error.failed_png":"Kunde inte skapa PNG-filen. Försök igen med ett mindre diagram eller ladda ner SVG-filen.","error.failed_to_load_file":"Fel vid inläsning av fil","error.failed_wikitree_load_more":"Fel vid hämtning av data från WikiTree. {error}","error.GEDCOM_READ_FAILED":"Fel vid läsning av GEDCOM-fil","error.ERROR_LOADING_UPLOADED_FILE":"Fel vid inläsning av data. Ladda upp filen igen.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID måste anges","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"WikiTree-profilen {id} är inte tillgänglig. Försök logga in.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-profilen {id} hittades inte","error.failed_to_load_image":"Kunde inte ladda bildfil","wikitree.private":"Privat","tab.info":"Information","tab.settings":"Inställningar","config.colors":"Färger","config.colors.NO_COLOR":"ingen","config.colors.COLOR_BY_GENERATION":"per generation","config.colors.COLOR_BY_SEX":"efter kön","config.ids":"Identifikation","config.ids.HIDE":"dölj","config.ids.SHOW":"visa","config.sex":"Kön","config.sex.HIDE":"dölj","config.sex.SHOW":"visa","config.places":"Platser","config.places.FULL":"fullständig","config.places.SHORT":"förkortad","config.places.HIDE":"dölj","head.source":"Datakälla","name.unknown_name":"?","extras.images":"Bilder","extras.notes":"Anteckningar","extras.sources":"Källor","extras.files":"Ytterligare filer","family.immediate_family":"Närmaste familj","family.parents":"Föräldrar","family.father":"Far","family.mother":"Mor","family.husband":"Make","family.wife":"Hustru","family.unknown_spouse":"Okänd make/hustru","family.children":"Barn","family.child":"Barn","media.not_uploaded":"Fil inte uppladdad","menu.load_from_google_drive":"Ladda från Google Drive","menu.google_sign_out":"Koppla från Google Drive","google_auth.title":"Google Drive-åtkomst krävs","google_auth.instructions":"För att visa denna fil måste du autentisera och välja filen från din Google Drive för att bevilja behörigheter.","google_auth.picker_instructions_header":"Behörigheter krävs","google_auth.picker_instructions":"Programmet har inte behörighet att läsa denna fil. Välj den i popup-fönstret för filbläddrare för att ge åtkomst. Om det är en delad fil som inte visas kan du först försöka lägga till en genväg till din Drive.","google_auth.cancel":"Avbryt","google_auth.grant_button":"Bevilja åtkomst och välj fil","google_auth.switch_account_button":"Byt konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Google Drive-integrationen är inte konfigurerad."},mhe={bg:she,cs:lhe,de:uhe,fr:che,it:fhe,pl:dhe,ru:hhe,sv:phe},gO=navigator.language&&navigator.language.split(/[-_]/)[0],vO=yB(),ghe=document.getElementById("root"),yO=AB.createRoot(ghe);vO&&vO.name==="ie"?yO.render(P.jsx("p",{children:"Topola Genealogy Viewer does not support Internet Explorer. Please try a different (modern) browser."})):yO.render(P.jsx(uz,{locale:gO,messages:mhe[gO],children:P.jsxs(Ooe,{children:[P.jsx("style",{children:Poe}),P.jsx(P$,{children:P.jsx(ohe,{})})]})}));export{Ff as _,ile as a,gi as c,In as g,Cee as t,yhe as z}; diff --git a/assets/index.es-Dw1dz7SE.js b/assets/index.es-ufYPKWJh.js similarity index 99% rename from assets/index.es-Dw1dz7SE.js rename to assets/index.es-ufYPKWJh.js index 11187d6..571a89f 100644 --- a/assets/index.es-Dw1dz7SE.js +++ b/assets/index.es-ufYPKWJh.js @@ -1,4 +1,4 @@ -import{c as Ma,t as Ul,g as Qu}from"./index-B6ml6XFJ.js";var on={},un={},lr,ln;function Z(){if(ln)return lr;ln=1;var n=function(e){return e&&e.Math===Math&&e};return lr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Ma=="object"&&Ma)||n(typeof lr=="object"&&lr)||function(){return this}()||Function("return this")(),lr}var Qr={},Zr,hn;function ee(){return hn||(hn=1,Zr=function(n){try{return!!n()}catch{return!0}}),Zr}var Jr,fn;function Ee(){if(fn)return Jr;fn=1;var n=ee();return Jr=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Jr}var et,cn;function Ar(){if(cn)return et;cn=1;var n=ee();return et=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),et}var rt,vn;function se(){if(vn)return rt;vn=1;var n=Ar(),e=Function.prototype.call;return rt=n?e.bind(e):function(){return e.apply(e,arguments)},rt}var tt={},gn;function Gl(){if(gn)return tt;gn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return tt.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,tt}var it,dn;function ka(){return dn||(dn=1,it=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),it}var at,pn;function re(){if(pn)return at;pn=1;var n=Ar(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return at=n?t:function(i){return function(){return r.apply(i,arguments)}},at}var nt,yn;function Ze(){if(yn)return nt;yn=1;var n=re(),e=n({}.toString),r=n("".slice);return nt=function(t){return r(e(t),8,-1)},nt}var st,mn;function Zu(){if(mn)return st;mn=1;var n=re(),e=ee(),r=Ze(),t=Object,i=n("".split);return st=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,st}var ot,bn;function Je(){return bn||(bn=1,ot=function(n){return n==null}),ot}var ut,xn;function Re(){if(xn)return ut;xn=1;var n=Je(),e=TypeError;return ut=function(r){if(n(r))throw new e("Can't call method on "+r);return r},ut}var lt,On;function cr(){if(On)return lt;On=1;var n=Zu(),e=Re();return lt=function(r){return n(e(r))},lt}var ht,Tn;function te(){if(Tn)return ht;Tn=1;var n=typeof document=="object"&&document.all;return ht=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ht}var ft,Sn;function Ce(){if(Sn)return ft;Sn=1;var n=te();return ft=function(e){return typeof e=="object"?e!==null:n(e)},ft}var ct,En;function er(){if(En)return ct;En=1;var n=Z(),e=te(),r=function(t){return e(t)?t:void 0};return ct=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},ct}var vt,Rn;function Ir(){if(Rn)return vt;Rn=1;var n=re();return vt=n({}.isPrototypeOf),vt}var gt,Cn;function vr(){if(Cn)return gt;Cn=1;var n=Z(),e=n.navigator,r=e&&e.userAgent;return gt=r?String(r):"",gt}var dt,wn;function ja(){if(wn)return dt;wn=1;var n=Z(),e=vr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),dt=o,dt}var pt,Pn;function Ju(){if(Pn)return pt;Pn=1;var n=ja(),e=ee(),r=Z(),t=r.String;return pt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),pt}var yt,An;function el(){if(An)return yt;An=1;var n=Ju();return yt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yt}var mt,In;function rl(){if(In)return mt;In=1;var n=er(),e=te(),r=Ir(),t=el(),i=Object;return mt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},mt}var bt,Nn;function Nr(){if(Nn)return bt;Nn=1;var n=String;return bt=function(e){try{return n(e)}catch{return"Object"}},bt}var xt,_n;function Be(){if(_n)return xt;_n=1;var n=te(),e=Nr(),r=TypeError;return xt=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},xt}var Ot,Mn;function ar(){if(Mn)return Ot;Mn=1;var n=Be(),e=Je();return Ot=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Ot}var Tt,qn;function $l(){if(qn)return Tt;qn=1;var n=se(),e=te(),r=Ce(),t=TypeError;return Tt=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},Tt}var St={exports:{}},Et,Dn;function Me(){return Dn||(Dn=1,Et=!1),Et}var Rt,Vn;function Ba(){if(Vn)return Rt;Vn=1;var n=Z(),e=Object.defineProperty;return Rt=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Rt}var Ln;function Fa(){if(Ln)return St.exports;Ln=1;var n=Me(),e=Z(),r=Ba(),t="__core-js_shared__",i=St.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),St.exports}var Ct,kn;function Ua(){if(kn)return Ct;kn=1;var n=Fa();return Ct=function(e,r){return n[e]||(n[e]=r||{})},Ct}var wt,jn;function _r(){if(jn)return wt;jn=1;var n=Re(),e=Object;return wt=function(r){return e(n(r))},wt}var Pt,Bn;function we(){if(Bn)return Pt;Bn=1;var n=re(),e=_r(),r=n({}.hasOwnProperty);return Pt=Object.hasOwn||function(i,a){return r(e(i),a)},Pt}var At,Fn;function tl(){if(Fn)return At;Fn=1;var n=re(),e=0,r=Math.random(),t=n(1 .toString);return At=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},At}var It,Un;function ne(){if(Un)return It;Un=1;var n=Z(),e=Ua(),r=we(),t=tl(),i=Ju(),a=el(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return It=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},It}var Nt,Gn;function zl(){if(Gn)return Nt;Gn=1;var n=se(),e=Ce(),r=rl(),t=ar(),i=$l(),a=ne(),s=TypeError,o=a("toPrimitive");return Nt=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Nt}var _t,$n;function il(){if($n)return _t;$n=1;var n=zl(),e=rl();return _t=function(r){var t=n(r,"string");return e(t)?t:t+""},_t}var Mt,zn;function Mr(){if(zn)return Mt;zn=1;var n=Z(),e=Ce(),r=n.document,t=e(r)&&e(r.createElement);return Mt=function(i){return t?r.createElement(i):{}},Mt}var qt,Hn;function al(){if(Hn)return qt;Hn=1;var n=Ee(),e=ee(),r=Mr();return qt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qt}var Wn;function qr(){if(Wn)return Qr;Wn=1;var n=Ee(),e=se(),r=Gl(),t=ka(),i=cr(),a=il(),s=we(),o=al(),u=Object.getOwnPropertyDescriptor;return Qr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Qr}var Dt={},Vt,Yn;function nl(){if(Yn)return Vt;Yn=1;var n=Ee(),e=ee();return Vt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vt}var Lt,Xn;function ue(){if(Xn)return Lt;Xn=1;var n=Ce(),e=String,r=TypeError;return Lt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},Lt}var Kn;function He(){if(Kn)return Dt;Kn=1;var n=Ee(),e=al(),r=nl(),t=ue(),i=il(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Dt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Dt}var kt,Qn;function gr(){if(Qn)return kt;Qn=1;var n=Ee(),e=He(),r=ka();return kt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},kt}var jt={exports:{}},Bt,Zn;function Dr(){if(Zn)return Bt;Zn=1;var n=Ee(),e=we(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Bt={EXISTS:i,PROPER:a,CONFIGURABLE:s},Bt}var Ft,Jn;function Ga(){if(Jn)return Ft;Jn=1;var n=re(),e=te(),r=Fa(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ft=r.inspectSource,Ft}var Ut,es;function Hl(){if(es)return Ut;es=1;var n=Z(),e=te(),r=n.WeakMap;return Ut=e(r)&&/native code/.test(String(r)),Ut}var Gt,rs;function $a(){if(rs)return Gt;rs=1;var n=Ua(),e=tl(),r=n("keys");return Gt=function(t){return r[t]||(r[t]=e(t))},Gt}var $t,ts;function za(){return ts||(ts=1,$t={}),$t}var zt,is;function Vr(){if(is)return zt;is=1;var n=Hl(),e=Z(),r=Ce(),t=gr(),i=we(),a=Fa(),s=$a(),o=za(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return zt={set:c,get:v,has:f,enforce:g,getterFor:d},zt}var as;function sl(){if(as)return jt.exports;as=1;var n=re(),e=ee(),r=te(),t=we(),i=Ee(),a=Dr().CONFIGURABLE,s=Ga(),o=Vr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=jt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),jt.exports}var Ht,ns;function rr(){if(ns)return Ht;ns=1;var n=te(),e=He(),r=sl(),t=Ba();return Ht=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Ht}var Wt={},Yt,ss;function Wl(){if(ss)return Yt;ss=1;var n=Math.ceil,e=Math.floor;return Yt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Yt}var Xt,os;function Lr(){if(os)return Xt;os=1;var n=Wl();return Xt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Xt}var Kt,us;function Yl(){if(us)return Kt;us=1;var n=Lr(),e=Math.max,r=Math.min;return Kt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Kt}var Qt,ls;function nr(){if(ls)return Qt;ls=1;var n=Lr(),e=Math.min;return Qt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Qt}var Zt,hs;function Ha(){if(hs)return Zt;hs=1;var n=nr();return Zt=function(e){return n(e.length)},Zt}var Jt,fs;function ol(){if(fs)return Jt;fs=1;var n=cr(),e=Yl(),r=Ha(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return Jt={includes:t(!0),indexOf:t(!1)},Jt}var ei,cs;function ul(){if(cs)return ei;cs=1;var n=re(),e=we(),r=cr(),t=ol().indexOf,i=za(),a=n([].push);return ei=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ei}var ri,vs;function Wa(){return vs||(vs=1,ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ri}var gs;function Xl(){if(gs)return Wt;gs=1;var n=ul(),e=Wa(),r=e.concat("length","prototype");return Wt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Wt}var ti={},ds;function Kl(){return ds||(ds=1,ti.f=Object.getOwnPropertySymbols),ti}var ii,ps;function Ql(){if(ps)return ii;ps=1;var n=er(),e=re(),r=Xl(),t=Kl(),i=ue(),a=e([].concat);return ii=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ii}var ai,ys;function Zl(){if(ys)return ai;ys=1;var n=we(),e=Ql(),r=qr(),t=He();return ai=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h_;_++)if(P=R(f[_]),P&&s(v,P))return P;return new c(!1)}E=o(f,O)}for(M=m?f.next:E.next;!(w=e(M,E)).done;){try{P=R(w.value)}catch(A){l(E,"throw",A)}if(typeof P=="object"&&P&&s(v,P))return P}return new c(!1)},zi}var Hi,oo;function bh(){if(oo)return Hi;oo=1;var n=ne(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Hi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Hi}var Wi,uo;function xl(){if(uo)return Wi;uo=1;var n=dr(),e=bh(),r=pr().CONSTRUCTOR;return Wi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Wi}var lo;function xh(){if(lo)return eo;lo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),eo}var ho={},fo;function Oh(){if(fo)return ho;fo=1;var n=le(),e=Me(),r=pr().CONSTRUCTOR,t=dr(),i=er(),a=te(),s=rr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return ho}var co={},vo;function Th(){if(vo)return co;vo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),co}var go={},po;function Sh(){if(po)return go;po=1;var n=le(),e=yr(),r=pr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),go}var yo={},Yi,mo;function Eh(){if(mo)return Yi;mo=1;var n=ue(),e=Ce(),r=yr();return Yi=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Yi}var bo;function Rh(){if(bo)return yo;bo=1;var n=le(),e=er(),r=Me(),t=dr(),i=pr().CONSTRUCTOR,a=Eh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),yo}var xo;function Ch(){return xo||(xo=1,dh(),xh(),Oh(),Th(),Sh(),Rh()),on}Ch();function Oo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function je(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){Oo(a,t,i,s,o,"next",u)}function o(u){Oo(a,t,i,s,o,"throw",u)}s(void 0)})}}var To={},So={},Xi,Eo;function qe(){if(Eo)return Xi;Eo=1;var n=Ya(),e=String;return Xi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Xi}var Ki,Ro;function Ol(){if(Ro)return Ki;Ro=1;var n=ue();return Ki=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Ki}var Qi,Co;function Tl(){if(Co)return Qi;Co=1;var n=ee(),e=Z(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Qi={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Qi}var Zi={},Ji,wo;function wh(){if(wo)return Ji;wo=1;var n=ul(),e=Wa();return Ji=Object.keys||function(t){return n(t,e)},Ji}var Po;function Ph(){if(Po)return Zi;Po=1;var n=Ee(),e=nl(),r=He(),t=ue(),i=cr(),a=wh();return Zi.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},Zi}var ea,Ao;function Fr(){if(Ao)return ea;Ao=1;var n=ue(),e=Ph(),r=Wa(),t=za(),i=gl(),a=Mr(),s=$a(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ea=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ea}var ra,Io;function Ah(){if(Io)return ra;Io=1;var n=ee(),e=Z(),r=e.RegExp;return ra=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(` +import{c as Ma,t as Ul,g as Qu}from"./index-COo4Psol.js";var on={},un={},lr,ln;function Z(){if(ln)return lr;ln=1;var n=function(e){return e&&e.Math===Math&&e};return lr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Ma=="object"&&Ma)||n(typeof lr=="object"&&lr)||function(){return this}()||Function("return this")(),lr}var Qr={},Zr,hn;function ee(){return hn||(hn=1,Zr=function(n){try{return!!n()}catch{return!0}}),Zr}var Jr,fn;function Ee(){if(fn)return Jr;fn=1;var n=ee();return Jr=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Jr}var et,cn;function Ar(){if(cn)return et;cn=1;var n=ee();return et=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),et}var rt,vn;function se(){if(vn)return rt;vn=1;var n=Ar(),e=Function.prototype.call;return rt=n?e.bind(e):function(){return e.apply(e,arguments)},rt}var tt={},gn;function Gl(){if(gn)return tt;gn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return tt.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,tt}var it,dn;function ka(){return dn||(dn=1,it=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),it}var at,pn;function re(){if(pn)return at;pn=1;var n=Ar(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return at=n?t:function(i){return function(){return r.apply(i,arguments)}},at}var nt,yn;function Ze(){if(yn)return nt;yn=1;var n=re(),e=n({}.toString),r=n("".slice);return nt=function(t){return r(e(t),8,-1)},nt}var st,mn;function Zu(){if(mn)return st;mn=1;var n=re(),e=ee(),r=Ze(),t=Object,i=n("".split);return st=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,st}var ot,bn;function Je(){return bn||(bn=1,ot=function(n){return n==null}),ot}var ut,xn;function Re(){if(xn)return ut;xn=1;var n=Je(),e=TypeError;return ut=function(r){if(n(r))throw new e("Can't call method on "+r);return r},ut}var lt,On;function cr(){if(On)return lt;On=1;var n=Zu(),e=Re();return lt=function(r){return n(e(r))},lt}var ht,Tn;function te(){if(Tn)return ht;Tn=1;var n=typeof document=="object"&&document.all;return ht=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ht}var ft,Sn;function Ce(){if(Sn)return ft;Sn=1;var n=te();return ft=function(e){return typeof e=="object"?e!==null:n(e)},ft}var ct,En;function er(){if(En)return ct;En=1;var n=Z(),e=te(),r=function(t){return e(t)?t:void 0};return ct=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},ct}var vt,Rn;function Ir(){if(Rn)return vt;Rn=1;var n=re();return vt=n({}.isPrototypeOf),vt}var gt,Cn;function vr(){if(Cn)return gt;Cn=1;var n=Z(),e=n.navigator,r=e&&e.userAgent;return gt=r?String(r):"",gt}var dt,wn;function ja(){if(wn)return dt;wn=1;var n=Z(),e=vr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),dt=o,dt}var pt,Pn;function Ju(){if(Pn)return pt;Pn=1;var n=ja(),e=ee(),r=Z(),t=r.String;return pt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),pt}var yt,An;function el(){if(An)return yt;An=1;var n=Ju();return yt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yt}var mt,In;function rl(){if(In)return mt;In=1;var n=er(),e=te(),r=Ir(),t=el(),i=Object;return mt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},mt}var bt,Nn;function Nr(){if(Nn)return bt;Nn=1;var n=String;return bt=function(e){try{return n(e)}catch{return"Object"}},bt}var xt,_n;function Be(){if(_n)return xt;_n=1;var n=te(),e=Nr(),r=TypeError;return xt=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},xt}var Ot,Mn;function ar(){if(Mn)return Ot;Mn=1;var n=Be(),e=Je();return Ot=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Ot}var Tt,qn;function $l(){if(qn)return Tt;qn=1;var n=se(),e=te(),r=Ce(),t=TypeError;return Tt=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},Tt}var St={exports:{}},Et,Dn;function Me(){return Dn||(Dn=1,Et=!1),Et}var Rt,Vn;function Ba(){if(Vn)return Rt;Vn=1;var n=Z(),e=Object.defineProperty;return Rt=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Rt}var Ln;function Fa(){if(Ln)return St.exports;Ln=1;var n=Me(),e=Z(),r=Ba(),t="__core-js_shared__",i=St.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),St.exports}var Ct,kn;function Ua(){if(kn)return Ct;kn=1;var n=Fa();return Ct=function(e,r){return n[e]||(n[e]=r||{})},Ct}var wt,jn;function _r(){if(jn)return wt;jn=1;var n=Re(),e=Object;return wt=function(r){return e(n(r))},wt}var Pt,Bn;function we(){if(Bn)return Pt;Bn=1;var n=re(),e=_r(),r=n({}.hasOwnProperty);return Pt=Object.hasOwn||function(i,a){return r(e(i),a)},Pt}var At,Fn;function tl(){if(Fn)return At;Fn=1;var n=re(),e=0,r=Math.random(),t=n(1 .toString);return At=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},At}var It,Un;function ne(){if(Un)return It;Un=1;var n=Z(),e=Ua(),r=we(),t=tl(),i=Ju(),a=el(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return It=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},It}var Nt,Gn;function zl(){if(Gn)return Nt;Gn=1;var n=se(),e=Ce(),r=rl(),t=ar(),i=$l(),a=ne(),s=TypeError,o=a("toPrimitive");return Nt=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Nt}var _t,$n;function il(){if($n)return _t;$n=1;var n=zl(),e=rl();return _t=function(r){var t=n(r,"string");return e(t)?t:t+""},_t}var Mt,zn;function Mr(){if(zn)return Mt;zn=1;var n=Z(),e=Ce(),r=n.document,t=e(r)&&e(r.createElement);return Mt=function(i){return t?r.createElement(i):{}},Mt}var qt,Hn;function al(){if(Hn)return qt;Hn=1;var n=Ee(),e=ee(),r=Mr();return qt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qt}var Wn;function qr(){if(Wn)return Qr;Wn=1;var n=Ee(),e=se(),r=Gl(),t=ka(),i=cr(),a=il(),s=we(),o=al(),u=Object.getOwnPropertyDescriptor;return Qr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Qr}var Dt={},Vt,Yn;function nl(){if(Yn)return Vt;Yn=1;var n=Ee(),e=ee();return Vt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vt}var Lt,Xn;function ue(){if(Xn)return Lt;Xn=1;var n=Ce(),e=String,r=TypeError;return Lt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},Lt}var Kn;function He(){if(Kn)return Dt;Kn=1;var n=Ee(),e=al(),r=nl(),t=ue(),i=il(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Dt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Dt}var kt,Qn;function gr(){if(Qn)return kt;Qn=1;var n=Ee(),e=He(),r=ka();return kt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},kt}var jt={exports:{}},Bt,Zn;function Dr(){if(Zn)return Bt;Zn=1;var n=Ee(),e=we(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Bt={EXISTS:i,PROPER:a,CONFIGURABLE:s},Bt}var Ft,Jn;function Ga(){if(Jn)return Ft;Jn=1;var n=re(),e=te(),r=Fa(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ft=r.inspectSource,Ft}var Ut,es;function Hl(){if(es)return Ut;es=1;var n=Z(),e=te(),r=n.WeakMap;return Ut=e(r)&&/native code/.test(String(r)),Ut}var Gt,rs;function $a(){if(rs)return Gt;rs=1;var n=Ua(),e=tl(),r=n("keys");return Gt=function(t){return r[t]||(r[t]=e(t))},Gt}var $t,ts;function za(){return ts||(ts=1,$t={}),$t}var zt,is;function Vr(){if(is)return zt;is=1;var n=Hl(),e=Z(),r=Ce(),t=gr(),i=we(),a=Fa(),s=$a(),o=za(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return zt={set:c,get:v,has:f,enforce:g,getterFor:d},zt}var as;function sl(){if(as)return jt.exports;as=1;var n=re(),e=ee(),r=te(),t=we(),i=Ee(),a=Dr().CONFIGURABLE,s=Ga(),o=Vr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=jt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),jt.exports}var Ht,ns;function rr(){if(ns)return Ht;ns=1;var n=te(),e=He(),r=sl(),t=Ba();return Ht=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Ht}var Wt={},Yt,ss;function Wl(){if(ss)return Yt;ss=1;var n=Math.ceil,e=Math.floor;return Yt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Yt}var Xt,os;function Lr(){if(os)return Xt;os=1;var n=Wl();return Xt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Xt}var Kt,us;function Yl(){if(us)return Kt;us=1;var n=Lr(),e=Math.max,r=Math.min;return Kt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Kt}var Qt,ls;function nr(){if(ls)return Qt;ls=1;var n=Lr(),e=Math.min;return Qt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Qt}var Zt,hs;function Ha(){if(hs)return Zt;hs=1;var n=nr();return Zt=function(e){return n(e.length)},Zt}var Jt,fs;function ol(){if(fs)return Jt;fs=1;var n=cr(),e=Yl(),r=Ha(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return Jt={includes:t(!0),indexOf:t(!1)},Jt}var ei,cs;function ul(){if(cs)return ei;cs=1;var n=re(),e=we(),r=cr(),t=ol().indexOf,i=za(),a=n([].push);return ei=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ei}var ri,vs;function Wa(){return vs||(vs=1,ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ri}var gs;function Xl(){if(gs)return Wt;gs=1;var n=ul(),e=Wa(),r=e.concat("length","prototype");return Wt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Wt}var ti={},ds;function Kl(){return ds||(ds=1,ti.f=Object.getOwnPropertySymbols),ti}var ii,ps;function Ql(){if(ps)return ii;ps=1;var n=er(),e=re(),r=Xl(),t=Kl(),i=ue(),a=e([].concat);return ii=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ii}var ai,ys;function Zl(){if(ys)return ai;ys=1;var n=we(),e=Ql(),r=qr(),t=He();return ai=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h_;_++)if(P=R(f[_]),P&&s(v,P))return P;return new c(!1)}E=o(f,O)}for(M=m?f.next:E.next;!(w=e(M,E)).done;){try{P=R(w.value)}catch(A){l(E,"throw",A)}if(typeof P=="object"&&P&&s(v,P))return P}return new c(!1)},zi}var Hi,oo;function bh(){if(oo)return Hi;oo=1;var n=ne(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Hi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Hi}var Wi,uo;function xl(){if(uo)return Wi;uo=1;var n=dr(),e=bh(),r=pr().CONSTRUCTOR;return Wi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Wi}var lo;function xh(){if(lo)return eo;lo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),eo}var ho={},fo;function Oh(){if(fo)return ho;fo=1;var n=le(),e=Me(),r=pr().CONSTRUCTOR,t=dr(),i=er(),a=te(),s=rr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return ho}var co={},vo;function Th(){if(vo)return co;vo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),co}var go={},po;function Sh(){if(po)return go;po=1;var n=le(),e=yr(),r=pr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),go}var yo={},Yi,mo;function Eh(){if(mo)return Yi;mo=1;var n=ue(),e=Ce(),r=yr();return Yi=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Yi}var bo;function Rh(){if(bo)return yo;bo=1;var n=le(),e=er(),r=Me(),t=dr(),i=pr().CONSTRUCTOR,a=Eh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),yo}var xo;function Ch(){return xo||(xo=1,dh(),xh(),Oh(),Th(),Sh(),Rh()),on}Ch();function Oo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function je(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){Oo(a,t,i,s,o,"next",u)}function o(u){Oo(a,t,i,s,o,"throw",u)}s(void 0)})}}var To={},So={},Xi,Eo;function qe(){if(Eo)return Xi;Eo=1;var n=Ya(),e=String;return Xi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Xi}var Ki,Ro;function Ol(){if(Ro)return Ki;Ro=1;var n=ue();return Ki=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Ki}var Qi,Co;function Tl(){if(Co)return Qi;Co=1;var n=ee(),e=Z(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Qi={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Qi}var Zi={},Ji,wo;function wh(){if(wo)return Ji;wo=1;var n=ul(),e=Wa();return Ji=Object.keys||function(t){return n(t,e)},Ji}var Po;function Ph(){if(Po)return Zi;Po=1;var n=Ee(),e=nl(),r=He(),t=ue(),i=cr(),a=wh();return Zi.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},Zi}var ea,Ao;function Fr(){if(Ao)return ea;Ao=1;var n=ue(),e=Ph(),r=Wa(),t=za(),i=gl(),a=Mr(),s=$a(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ea=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ea}var ra,Io;function Ah(){if(Io)return ra;Io=1;var n=ee(),e=Z(),r=e.RegExp;return ra=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(` `)&&t.flags==="s")}),ra}var ta,No;function Ih(){if(No)return ta;No=1;var n=ee(),e=Z(),r=e.RegExp;return ta=n(function(){var t=r("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),ta}var ia,_o;function Qa(){if(_o)return ia;_o=1;var n=se(),e=re(),r=qe(),t=Ol(),i=Tl(),a=Ua(),s=Fr(),o=Vr().get,u=Ah(),l=Ih(),h=a("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,v=c,f=e("".charAt),g=e("".indexOf),d=e("".replace),p=e("".slice),y=function(){var S=/a/,E=/b*/g;return n(c,S,"a"),n(c,E,"a"),S.lastIndex!==0||E.lastIndex!==0}(),m=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,x=y||b||m||u||l;return x&&(v=function(E){var O=this,_=o(O),V=r(E),P=_.raw,M,w,k,R,A,U,I;if(P)return P.lastIndex=O.lastIndex,M=n(v,P,V),O.lastIndex=P.lastIndex,M;var j=_.groups,N=m&&O.sticky,L=n(t,O),B=O.source,z=0,X=V;if(N&&(L=d(L,"y",""),g(L,"g")===-1&&(L+="g"),X=p(V,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&f(V,O.lastIndex-1)!==` `)&&(B="(?: "+B+")",X=" "+X,z++),w=new RegExp("^(?:"+B+")",L)),b&&(w=new RegExp("^"+B+"$(?!\\s)",L)),y&&(k=O.lastIndex),R=n(c,N?w:O,X),N?R?(R.input=p(R.input,z),R[0]=p(R[0],z),R.index=O.lastIndex,O.lastIndex+=R[0].length):O.lastIndex=0:y&&R&&(O.lastIndex=O.global?R.index+R[0].length:k),b&&R&&R.length>1&&n(h,R[0],w,function(){for(A=1;A=f?u?"":void 0:(g=a(c,v),g<55296||g>56319||v+1===f||(d=a(c,v+1))<56320||d>57343?u?i(c,v):g:u?s(c,v,v+2):(g-55296<<10)+(d-56320)+65536)}};return na={codeAt:o(!1),charAt:o(!0)},na}var sa,Vo;function Ja(){if(Vo)return sa;Vo=1;var n=_h().charAt;return sa=function(e,r,t){return r+(t?n(e,r).length:1)},sa}var oa,Lo;function en(){if(Lo)return oa;Lo=1;var n=se(),e=ue(),r=te(),t=Ze(),i=Qa(),a=TypeError;return oa=function(s,o){var u=s.exec;if(r(u)){var l=n(u,s,o);return l!==null&&e(l),l}if(t(s)==="RegExp")return n(i,s,o);throw new a("RegExp#exec called on incompatible receiver")},oa}var ko;function Mh(){if(ko)return To;ko=1;var n=se(),e=Za(),r=ue(),t=Je(),i=nr(),a=qe(),s=Re(),o=ar(),u=Ja(),l=en();return e("match",function(h,c,v){return[function(g){var d=s(this),p=t(g)?void 0:o(g,h);return p?n(p,g,d):new RegExp(g)[h](a(d))},function(f){var g=r(this),d=a(f),p=v(c,g,d);if(p.done)return p.value;if(!g.global)return l(g,d);var y=g.unicode;g.lastIndex=0;for(var m=[],b=0,x;(x=l(g,d))!==null;){var S=a(x[0]);m[b]=S,S===""&&(g.lastIndex=u(d,i(g.lastIndex),y)),b++}return b===0?null:m}]}),To}Mh();var jo={},ua,Bo;function qh(){if(Bo)return ua;Bo=1;var n=re(),e=_r(),r=Math.floor,t=n("".charAt),i=n("".replace),a=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ua=function(u,l,h,c,v,f){var g=h+u.length,d=c.length,p=o;return v!==void 0&&(v=e(v),p=s),i(f,p,function(y,m){var b;switch(t(m,0)){case"$":return"$";case"&":return u;case"`":return a(l,0,h);case"'":return a(l,g);case"<":b=v[a(m,1,-1)];break;default:var x=+m;if(x===0)return y;if(x>d){var S=r(x/10);return S===0?y:S<=d?c[S-1]===void 0?t(m,1):c[S-1]+t(m,1):y}b=c[x-1]}return b===void 0?"":b})},ua}var Fo;function Dh(){if(Fo)return jo;Fo=1;var n=vl(),e=se(),r=re(),t=Za(),i=ee(),a=ue(),s=te(),o=Je(),u=Lr(),l=nr(),h=qe(),c=Re(),v=Ja(),f=ar(),g=qh(),d=en(),p=ne(),y=p("replace"),m=Math.max,b=Math.min,x=r([].concat),S=r([].push),E=r("".indexOf),O=r("".slice),_=function(w){return w===void 0?w:String(w)},V=function(){return"a".replace(/./,"$0")==="$0"}(),P=function(){return/./[y]?/./[y]("a","$0")==="":!1}(),M=!i(function(){var w=/./;return w.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(w,"$")!=="7"});return t("replace",function(w,k,R){var A=P?"$":"$0";return[function(I,j){var N=c(this),L=o(I)?void 0:f(I,y);return L?e(L,I,N,j):e(k,h(N),I,j)},function(U,I){var j=a(this),N=h(U);if(typeof I=="string"&&E(I,A)===-1&&E(I,"$<")===-1){var L=R(k,j,N,I);if(L.done)return L.value}var B=s(I);B||(I=h(I));var z=j.global,X;z&&(X=j.unicode,j.lastIndex=0);for(var H=[],Q;Q=d(j,N),!(Q===null||(S(H,Q),!z));){var Fe=h(Q[0]);Fe===""&&(j.lastIndex=v(N,l(j.lastIndex),X))}for(var De="",Ae=0,de=0;de=Ae&&(De+=O(N,Ae,ye)+Ne,Ae=ye+pe.length)}return De+O(N,Ae)}]},!M||!V||P),jo}Dh();var Uo={},la,Go;function Vh(){if(Go)return la;Go=1;var n=Ce(),e=Ze(),r=ne(),t=r("match");return la=function(i){var a;return n(i)&&((a=i[t])!==void 0?!!a:e(i)==="RegExp")},la}var ha,$o;function rn(){if($o)return ha;$o=1;var n=Vh(),e=TypeError;return ha=function(r){if(n(r))throw new e("The method doesn't accept regular expressions");return r},ha}var fa,zo;function tn(){if(zo)return fa;zo=1;var n=ne(),e=n("match");return fa=function(r){var t=/./;try{"/./"[r](t)}catch{try{return t[e]=!1,"/./"[r](t)}catch{}}return!1},fa}var Ho;function Lh(){if(Ho)return Uo;Ho=1;var n=le(),e=Br(),r=qr().f,t=nr(),i=qe(),a=rn(),s=Re(),o=tn(),u=Me(),l=e("".slice),h=Math.min,c=o("startsWith"),v=!u&&!c&&!!function(){var f=r(String.prototype,"startsWith");return f&&!f.writable}();return n({target:"String",proto:!0,forced:!v&&!c},{startsWith:function(g){var d=i(s(this));a(g);var p=t(h(arguments.length>1?arguments[1]:void 0,d.length)),y=i(g);return l(d,p,p+y.length)===y}}),Uo}Lh();var ca,Wo;function kh(){if(Wo)return ca;Wo=1;var n=ne(),e=Fr(),r=He().f,t=n("unscopables"),i=Array.prototype;return i[t]===void 0&&r(i,t,{configurable:!0,value:e(null)}),ca=function(a){i[t][a]=!0},ca}var va,Yo;function jh(){if(Yo)return va;Yo=1;var n=ee();return va=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),va}var ga,Xo;function Sl(){if(Xo)return ga;Xo=1;var n=we(),e=te(),r=_r(),t=$a(),i=jh(),a=t("IE_PROTO"),s=Object,o=s.prototype;return ga=i?s.getPrototypeOf:function(u){var l=r(u);if(n(l,a))return l[a];var h=l.constructor;return e(h)&&l instanceof h?h.prototype:l instanceof s?o:null},ga}var da,Ko;function El(){if(Ko)return da;Ko=1;var n=ee(),e=te(),r=Ce(),t=Fr(),i=Sl(),a=rr(),s=ne(),o=Me(),u=s("iterator"),l=!1,h,c,v;[].keys&&(v=[].keys(),"next"in v?(c=i(i(v)),c!==Object.prototype&&(h=c)):l=!0);var f=!r(h)||n(function(){var g={};return h[u].call(g)!==g});return f?h={}:o&&(h=t(h)),e(h[u])||a(h,u,function(){return this}),da={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:l},da}var pa,Qo;function Bh(){if(Qo)return pa;Qo=1;var n=El().IteratorPrototype,e=Fr(),r=ka(),t=jr(),i=mr(),a=function(){return this};return pa=function(s,o,u,l){var h=o+" Iterator";return s.prototype=e(n,{next:r(+!l,u)}),t(s,h,!1,!0),i[h]=a,s},pa}var ya,Zo;function Fh(){if(Zo)return ya;Zo=1;var n=le(),e=se(),r=Me(),t=Dr(),i=te(),a=Bh(),s=Sl(),o=fl(),u=jr(),l=gr(),h=rr(),c=ne(),v=mr(),f=El(),g=t.PROPER,d=t.CONFIGURABLE,p=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",S="entries",E=function(){return this};return ya=function(O,_,V,P,M,w,k){a(V,_,P);var R=function(H){if(H===M&&N)return N;if(!y&&H&&H in I)return I[H];switch(H){case b:return function(){return new V(this,H)};case x:return function(){return new V(this,H)};case S:return function(){return new V(this,H)}}return function(){return new V(this)}},A=_+" Iterator",U=!1,I=O.prototype,j=I[m]||I["@@iterator"]||M&&I[M],N=!y&&j||R(M),L=_==="Array"&&I.entries||j,B,z,X;if(L&&(B=s(L.call(new O)),B!==Object.prototype&&B.next&&(!r&&s(B)!==p&&(o?o(B,p):i(B[m])||h(B,m,E)),u(B,A,!0,!0),r&&(v[A]=E))),g&&M===x&&j&&j.name!==x&&(!r&&d?l(I,"name",x):(U=!0,N=function(){return e(j,this)})),M)if(z={values:R(x),keys:w?N:R(b),entries:R(S)},k)for(X in z)(y||U||!(X in I))&&h(I,X,z[X]);else n({target:_,proto:!0,forced:y||U},z);return(!r||k)&&I[m]!==N&&h(I,m,N,{name:M}),v[_]=N,z},ya}var ma,Jo;function Uh(){return Jo||(Jo=1,ma=function(n,e){return{value:n,done:e}}),ma}var ba,eu;function Rl(){if(eu)return ba;eu=1;var n=cr(),e=kh(),r=mr(),t=Vr(),i=He().f,a=Fh(),s=Uh(),o=Me(),u=Ee(),l="Array Iterator",h=t.set,c=t.getterFor(l);ba=a(Array,"Array",function(f,g){h(this,{type:l,target:n(f),index:0,kind:g})},function(){var f=c(this),g=f.target,d=f.index++;if(!g||d>=g.length)return f.target=null,s(void 0,!0);switch(f.kind){case"keys":return s(d,!1);case"values":return s(g[d],!1)}return s([d,g[d]],!1)},"values");var v=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&v.name!=="values")try{i(v,"name",{value:"values"})}catch{}return ba}Rl();var ru={},xa,tu;function Gh(){return tu||(tu=1,xa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),xa}var Oa,iu;function $h(){if(iu)return Oa;iu=1;var n=Mr(),e=n("span").classList,r=e&&e.constructor&&e.constructor.prototype;return Oa=r===Object.prototype?void 0:r,Oa}var au;function zh(){if(au)return ru;au=1;var n=Z(),e=Gh(),r=$h(),t=Rl(),i=gr(),a=jr(),s=ne(),o=s("iterator"),u=t.values,l=function(c,v){if(c){if(c[o]!==u)try{i(c,o,u)}catch{c[o]=u}if(a(c,v,!0),e[v]){for(var f in t)if(c[f]!==t[f])try{i(c,f,t[f])}catch{c[f]=t[f]}}}};for(var h in e)l(n[h]&&n[h].prototype,h);return l(r,"DOMTokenList"),ru}zh();function an(n,e,r){return(e=Ul(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var nu={},Ta,su;function Hh(){if(su)return Ta;su=1;var n=Be(),e=_r(),r=Zu(),t=Ha(),i=TypeError,a="Reduce of empty array with no initial value",s=function(o){return function(u,l,h,c){var v=e(u),f=r(v),g=t(v);if(n(l),g===0&&h<2)throw new i(a);var d=o?g-1:0,p=o?-1:1;if(h<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,o?d<0:g<=d)throw new i(a)}for(;o?d>=0:g>d;d+=p)d in f&&(c=l(c,f[d],d,v));return c}};return Ta={left:s(!1),right:s(!0)},Ta}var Sa,ou;function Cl(){if(ou)return Sa;ou=1;var n=ee();return Sa=function(e,r){var t=[][e];return!!t&&n(function(){t.call(null,r||function(){return 1},1)})},Sa}var uu;function Wh(){if(uu)return nu;uu=1;var n=le(),e=Hh().left,r=Cl(),t=ja(),i=kr(),a=!i&&t>79&&t<83,s=a||!r("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),nu}Wh();var lu={},hu;function Yh(){if(hu)return lu;hu=1;var n=le(),e=Br(),r=qr().f,t=nr(),i=qe(),a=rn(),s=Re(),o=tn(),u=Me(),l=e("".slice),h=Math.min,c=o("endsWith"),v=!u&&!c&&!!function(){var f=r(String.prototype,"endsWith");return f&&!f.writable}();return n({target:"String",proto:!0,forced:!v&&!c},{endsWith:function(g){var d=i(s(this));a(g);var p=arguments.length>1?arguments[1]:void 0,y=d.length,m=p===void 0?y:h(t(p),y),b=i(g);return l(d,m-b.length,m)===b}}),lu}Yh();var fu={},cu;function Xh(){if(cu)return fu;cu=1;var n=se(),e=re(),r=Za(),t=ue(),i=Je(),a=Re(),s=cl(),o=Ja(),u=nr(),l=qe(),h=ar(),c=en(),v=Tl(),f=ee(),g=v.UNSUPPORTED_Y,d=4294967295,p=Math.min,y=e([].push),m=e("".slice),b=!f(function(){var S=/(?:)/,E=S.exec;S.exec=function(){return E.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(S,E,O){var _="0".split(void 0,0).length?function(V,P){return V===void 0&&P===0?[]:n(E,this,V,P)}:E;return[function(P,M){var w=a(this),k=i(P)?void 0:h(P,S);return k?n(k,P,w,M):n(_,l(w),P,M)},function(V,P){var M=t(this),w=l(V);if(!x){var k=O(_,M,w,P,_!==E);if(k.done)return k.value}var R=s(M,RegExp),A=M.unicode,U=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),I=new R(g?"^(?:"+M.source+")":M,U),j=P===void 0?d:P>>>0;if(j===0)return[];if(w.length===0)return c(I,w)===null?[w]:[];for(var N=0,L=0,B=[];L"u"?Ma:window,r=["moz","webkit"],t="AnimationFrame",i=e["request"+t],a=e["cancel"+t]||e["cancelRequest"+t],s=0;!i&&s3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),f.appendChild(g)}catch{}return f}}),Pa}var nf=af();const qa=Qu(nf);var Ou={},Tu;function sf(){if(Tu)return Ou;Tu=1;var n=le(),e=Br(),r=ol().indexOf,t=Cl(),i=e([].indexOf),a=!!i&&1/i([1],1,-0)<0,s=a||!t("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return a?i(this,u,l)||0:r(this,u,l)}}),Ou}sf();var Su={},Eu;function of(){if(Eu)return Su;Eu=1;var n=le(),e=re(),r=rn(),t=Re(),i=qe(),a=tn(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~s(i(t(this)),i(r(u)),arguments.length>1?arguments[1]:void 0)}}),Su}of();var Ru={},Aa,Cu;function uf(){if(Cu)return Aa;Cu=1;var n=Ze();return Aa=Array.isArray||function(r){return n(r)==="Array"},Aa}var wu;function lf(){if(wu)return Ru;wu=1;var n=le(),e=re(),r=uf(),t=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),t(this)}}),Ru}lf();/*! ***************************************************************************** diff --git a/assets/jspdf.es.min-CoBZPd5H.js b/assets/jspdf.es.min-D6lJHWRA.js similarity index 99% rename from assets/jspdf.es.min-CoBZPd5H.js rename to assets/jspdf.es.min-D6lJHWRA.js index 527c292..9330c3d 100644 --- a/assets/jspdf.es.min-CoBZPd5H.js +++ b/assets/jspdf.es.min-D6lJHWRA.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-Dw1dz7SE.js","./index-B6ml6XFJ.js","./index-DkcMwWbw.css"])))=>i.map(i=>d[i]); -var Jh=Object.defineProperty;var $h=(n,e,t)=>e in n?Jh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xe=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as Po,a as so}from"./index-B6ml6XFJ.js";function Kh(n){if(Array.isArray(n))return n}function Xh(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,o,s,f,u=[],c=!0,d=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(c=(i=s.call(t)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(m){d=!0,o=m}finally{try{if(!c&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(d)throw o}}return u}}function wl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=Array(e);ti.map(i=>d[i]); +var Jh=Object.defineProperty;var $h=(n,e,t)=>e in n?Jh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xe=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as Po,a as so}from"./index-COo4Psol.js";function Kh(n){if(Array.isArray(n))return n}function Xh(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,o,s,f,u=[],c=!0,d=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(c=(i=s.call(t)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(m){d=!0,o=m}finally{try{if(!c&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(d)throw o}}return u}}function wl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=Array(e);t{const n=new Uint8Array(4),e=new Uint32Array(n.buffer);return!((e[0]=1)&n[0])})(),oo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Mo{constructor(e=nc,t={}){xe(this,"buffer");xe(this,"byteLength");xe(this,"byteOffset");xe(this,"length");xe(this,"offset");xe(this,"lastWrittenByte");xe(this,"littleEndian");xe(this,"_data");xe(this,"_mark");xe(this,"_marks");let i=!1;typeof e=="number"?e=new ArrayBuffer(e):(i=!0,this.lastWrittenByte=e.byteLength);const o=t.offset?t.offset>>>0:0,s=e.byteLength-o;let f=o;(ArrayBuffer.isView(e)||e instanceof Mo)&&(e.byteLength!==e.buffer.byteLength&&(f=e.byteOffset+o),e=e.buffer),i?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=e,this.length=s,this.byteLength=s,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,s),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const i=(this.offset+e)*2,o=new Uint8Array(i);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const i=oo[t].BYTES_PER_ELEMENT*e,o=this.byteOffset+this.offset,s=this.buffer.slice(o,o+i);if(this.littleEndian===rc&&t!=="uint8"&&t!=="int8"){const u=new Uint8Array(this.buffer.slice(o,o+i));u.reverse();const c=new oo[t](u.buffer);return this.offset+=i,c.reverse(),c}const f=new oo[t](s);return this.offset+=i,f}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let i=0;ithis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Zi(n){let e=n.length;for(;--e>=0;)n[e]=0}const ic=3,ac=258,ku=29,sc=256,oc=sc+1+ku,Pu=30,lc=512,uc=new Array((oc+2)*2);Zi(uc);const hc=new Array(Pu*2);Zi(hc);const cc=new Array(lc);Zi(cc);const fc=new Array(ac-ic+1);Zi(fc);const dc=new Array(ku);Zi(dc);const pc=new Array(Pu);Zi(pc);const gc=(n,e,t,i)=>{let o=n&65535|0,s=n>>>16&65535|0,f=0;for(;t!==0;){f=t>2e3?2e3:t,t-=f;do o=o+e[i++]|0,s=s+o|0;while(--f);o%=65521,s%=65521}return o|s<<16|0};var Io=gc;const mc=()=>{let n,e=[];for(var t=0;t<256;t++){n=t;for(var i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e},vc=new Uint32Array(mc()),bc=(n,e,t,i)=>{const o=vc,s=i+t;n^=-1;for(let f=i;f>>8^o[(n^e[f])&255];return n^-1};var hr=bc,Co={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"},Iu={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const wc=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var yc=function(n){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)wc(t,i)&&(n[i]=t[i])}}return n},xc=n=>{let e=0;for(let i=0,o=n.length;i=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Aa[254]=Aa[254]=1;var _c=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let e,t,i,o,s,f=n.length,u=0;for(o=0;o>>6,e[s++]=128|t&63):t<65536?(e[s++]=224|t>>>12,e[s++]=128|t>>>6&63,e[s++]=128|t&63):(e[s++]=240|t>>>18,e[s++]=128|t>>>12&63,e[s++]=128|t>>>6&63,e[s++]=128|t&63);return e};const Ac=(n,e)=>{if(e<65534&&n.subarray&&Fu)return String.fromCharCode.apply(null,n.length===e?n:n.subarray(0,e));let t="";for(let i=0;i{const t=e||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,e));let i,o;const s=new Array(t*2);for(o=0,i=0;i4){s[o++]=65533,i+=u-1;continue}for(f&=u===2?31:u===3?15:7;u>1&&i1){s[o++]=65533;continue}f<65536?s[o++]=f:(f-=65536,s[o++]=55296|f>>10&1023,s[o++]=56320|f&1023)}return Ac(s,o)},Lc=(n,e)=>{e=e||n.length,e>n.length&&(e=n.length);let t=e-1;for(;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+Aa[n[t]]>e?t:e},Fo={string2buf:_c,buf2string:Nc,utf8border:Lc};function Sc(){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 kc=Sc;const ss=16209,Pc=16191;var Ic=function(e,t){let i,o,s,f,u,c,d,m,A,P,p,B,O,M,S,Y,J,D,lt,yt,mt,tt,z,et;const N=e.state;i=e.next_in,z=e.input,o=i+(e.avail_in-5),s=e.next_out,et=e.output,f=s-(t-e.avail_out),u=s+(e.avail_out-257),c=N.dmax,d=N.wsize,m=N.whave,A=N.wnext,P=N.window,p=N.hold,B=N.bits,O=N.lencode,M=N.distcode,S=(1<>>24,p>>>=D,B-=D,D=J>>>16&255,D===0)et[s++]=J&65535;else if(D&16){lt=J&65535,D&=15,D&&(B>>=D,B-=D),B<15&&(p+=z[i++]<>>24,p>>>=D,B-=D,D=J>>>16&255,D&16){if(yt=J&65535,D&=15,Bc){e.msg="invalid distance too far back",N.mode=ss;break t}if(p>>>=D,B-=D,D=s-f,yt>D){if(D=yt-D,D>m&&N.sane){e.msg="invalid distance too far back",N.mode=ss;break t}if(mt=0,tt=P,A===0){if(mt+=d-D,D2;)et[s++]=tt[mt++],et[s++]=tt[mt++],et[s++]=tt[mt++],lt-=3;lt&&(et[s++]=tt[mt++],lt>1&&(et[s++]=tt[mt++]))}else{mt=s-yt;do et[s++]=et[mt++],et[s++]=et[mt++],et[s++]=et[mt++],lt-=3;while(lt>2);lt&&(et[s++]=et[mt++],lt>1&&(et[s++]=et[mt++]))}}else if((D&64)===0){J=M[(J&65535)+(p&(1<>3,i-=lt,B-=lt<<3,p&=(1<{const c=u.bits;let d=0,m=0,A=0,P=0,p=0,B=0,O=0,M=0,S=0,Y=0,J,D,lt,yt,mt,tt=null,z;const et=new Uint16Array(zi+1),N=new Uint16Array(zi+1);let E=null,q,U,rt;for(d=0;d<=zi;d++)et[d]=0;for(m=0;m=1&&et[P]===0;P--);if(p>P&&(p=P),P===0)return o[s++]=1<<24|64<<16|0,o[s++]=1<<24|64<<16|0,u.bits=1,0;for(A=1;A0&&(n===Nl||P!==1))return-1;for(N[1]=0,d=1;d_l||n===Ll&&S>Al)return 1;for(;;){q=d-O,f[m]+1=z?(U=E[f[m]-z],rt=tt[f[m]-z]):(U=96,rt=0),J=1<>O)+D]=q<<24|U<<16|rt|0;while(D!==0);for(J=1<>=1;if(J!==0?(Y&=J-1,Y+=J):Y=0,m++,--et[d]===0){if(d===P)break;d=e[t+f[m]]}if(d>p&&(Y&yt)!==lt){for(O===0&&(O=p),mt+=A,B=d-O,M=1<_l||n===Ll&&S>Al)return 1;lt=Y&yt,o[lt]=p<<24|B<<16|mt-s|0}}return Y!==0&&(o[mt+Y]=d-O<<24|64<<16|0),u.bits=p,0};var _a=jc;const Bc=0,Eu=1,Ou=2,{Z_FINISH:Sl,Z_BLOCK:Mc,Z_TREES:os,Z_OK:mi,Z_STREAM_END:Rc,Z_NEED_DICT:Tc,Z_STREAM_ERROR:Hn,Z_DATA_ERROR:ju,Z_MEM_ERROR:Bu,Z_BUF_ERROR:Dc,Z_DEFLATED:kl}=Iu,As=16180,Pl=16181,Il=16182,Cl=16183,Fl=16184,El=16185,Ol=16186,jl=16187,Bl=16188,Ml=16189,ys=16190,Pr=16191,uo=16192,Rl=16193,ho=16194,Tl=16195,Dl=16196,ql=16197,Ul=16198,ls=16199,us=16200,zl=16201,Hl=16202,Wl=16203,Vl=16204,Gl=16205,co=16206,Yl=16207,Jl=16208,Be=16209,Mu=16210,Ru=16211,qc=852,Uc=592,zc=15,Hc=zc,$l=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function Wc(){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 bi=n=>{if(!n)return 1;const e=n.state;return!e||e.strm!==n||e.modeRu?1:0},Tu=n=>{if(bi(n))return Hn;const e=n.state;return n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=As,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(qc),e.distcode=e.distdyn=new Int32Array(Uc),e.sane=1,e.back=-1,mi},Du=n=>{if(bi(n))return Hn;const e=n.state;return e.wsize=0,e.whave=0,e.wnext=0,Tu(n)},qu=(n,e)=>{let t;if(bi(n))return Hn;const i=n.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Hn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,Du(n))},Uu=(n,e)=>{if(!n)return Hn;const t=new Wc;n.state=t,t.strm=n,t.window=null,t.mode=As;const i=qu(n,e);return i!==mi&&(n.state=null),i},Vc=n=>Uu(n,Hc);let Kl=!0,fo,po;const Gc=n=>{if(Kl){fo=new Int32Array(512),po=new Int32Array(32);let e=0;for(;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(_a(Eu,n.lens,0,288,fo,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;_a(Ou,n.lens,0,32,po,0,n.work,{bits:5}),Kl=!1}n.lencode=fo,n.lenbits=9,n.distcode=po,n.distbits=5},zu=(n,e,t,i)=>{let o;const s=n.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(t-s.wsize,t),0),s.wnext=0,s.whave=s.wsize):(o=s.wsize-s.wnext,o>i&&(o=i),s.window.set(e.subarray(t-i,t-i+o),s.wnext),i-=o,i?(s.window.set(e.subarray(t-i,t),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave{let t,i,o,s,f,u,c,d,m,A,P,p,B,O,M=0,S,Y,J,D,lt,yt,mt,tt;const z=new Uint8Array(4);let et,N;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(bi(n)||!n.output||!n.input&&n.avail_in!==0)return Hn;t=n.state,t.mode===Pr&&(t.mode=uo),f=n.next_out,o=n.output,c=n.avail_out,s=n.next_in,i=n.input,u=n.avail_in,d=t.hold,m=t.bits,A=u,P=c,tt=mi;t:for(;;)switch(t.mode){case As:if(t.wrap===0){t.mode=uo;break}for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=hr(t.check,z,2,0),d=0,m=0,t.mode=Pl;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){n.msg="incorrect header check",t.mode=Be;break}if((d&15)!==kl){n.msg="unknown compression method",t.mode=Be;break}if(d>>>=4,m-=4,mt=(d&15)+8,t.wbits===0&&(t.wbits=mt),mt>15||mt>t.wbits){n.msg="invalid window size",t.mode=Be;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=hr(t.check,z,2,0)),d=0,m=0,t.mode=Il;case Il:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>8&255,z[2]=d>>>16&255,z[3]=d>>>24&255,t.check=hr(t.check,z,4,0)),d=0,m=0,t.mode=Cl;case Cl:for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>8),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=hr(t.check,z,2,0)),d=0,m=0,t.mode=Fl;case Fl:if(t.flags&1024){for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=hr(t.check,z,2,0)),d=0,m=0}else t.head&&(t.head.extra=null);t.mode=El;case El:if(t.flags&1024&&(p=t.length,p>u&&(p=u),p&&(t.head&&(mt=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(s,s+p),mt)),t.flags&512&&t.wrap&4&&(t.check=hr(t.check,i,p,s)),u-=p,s+=p,t.length-=p),t.length))break t;t.length=0,t.mode=Ol;case Ol:if(t.flags&2048){if(u===0)break t;p=0;do mt=i[s+p++],t.head&&mt&&t.length<65536&&(t.head.name+=String.fromCharCode(mt));while(mt&&p>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=Pr;break;case Ml:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>=m&7,m-=m&7,t.mode=co;break}for(;m<3;){if(u===0)break t;u--,d+=i[s++]<>>=1,m-=1,d&3){case 0:t.mode=Rl;break;case 1:if(Gc(t),t.mode=ls,e===os){d>>>=2,m-=2;break t}break;case 2:t.mode=Dl;break;case 3:n.msg="invalid block type",t.mode=Be}d>>>=2,m-=2;break;case Rl:for(d>>>=m&7,m-=m&7;m<32;){if(u===0)break t;u--,d+=i[s++]<>>16^65535)){n.msg="invalid stored block lengths",t.mode=Be;break}if(t.length=d&65535,d=0,m=0,t.mode=ho,e===os)break t;case ho:t.mode=Tl;case Tl:if(p=t.length,p){if(p>u&&(p=u),p>c&&(p=c),p===0)break t;o.set(i.subarray(s,s+p),f),u-=p,s+=p,c-=p,f+=p,t.length-=p;break}t.mode=Pr;break;case Dl:for(;m<14;){if(u===0)break t;u--,d+=i[s++]<>>=5,m-=5,t.ndist=(d&31)+1,d>>>=5,m-=5,t.ncode=(d&15)+4,d>>>=4,m-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=Be;break}t.have=0,t.mode=ql;case ql:for(;t.have>>=3,m-=3}for(;t.have<19;)t.lens[E[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,et={bits:t.lenbits},tt=_a(Bc,t.lens,0,19,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid code lengths set",t.mode=Be;break}t.have=0,t.mode=Ul;case Ul:for(;t.have>>24,Y=M>>>16&255,J=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=S,m-=S,t.lens[t.have++]=J;else{if(J===16){for(N=S+2;m>>=S,m-=S,t.have===0){n.msg="invalid bit length repeat",t.mode=Be;break}mt=t.lens[t.have-1],p=3+(d&3),d>>>=2,m-=2}else if(J===17){for(N=S+3;m>>=S,m-=S,mt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m>>=S,m-=S,mt=0,p=11+(d&127),d>>>=7,m-=7}if(t.have+p>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=Be;break}for(;p--;)t.lens[t.have++]=mt}}if(t.mode===Be)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=Be;break}if(t.lenbits=9,et={bits:t.lenbits},tt=_a(Eu,t.lens,0,t.nlen,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid literal/lengths set",t.mode=Be;break}if(t.distbits=6,t.distcode=t.distdyn,et={bits:t.distbits},tt=_a(Ou,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,et),t.distbits=et.bits,tt){n.msg="invalid distances set",t.mode=Be;break}if(t.mode=ls,e===os)break t;case ls:t.mode=us;case us:if(u>=6&&c>=258){n.next_out=f,n.avail_out=c,n.next_in=s,n.avail_in=u,t.hold=d,t.bits=m,Ic(n,P),f=n.next_out,o=n.output,c=n.avail_out,s=n.next_in,i=n.input,u=n.avail_in,d=t.hold,m=t.bits,t.mode===Pr&&(t.back=-1);break}for(t.back=0;M=t.lencode[d&(1<>>24,Y=M>>>16&255,J=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,Y=M>>>16&255,J=M&65535,!(D+S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,t.length=J,Y===0){t.mode=Gl;break}if(Y&32){t.back=-1,t.mode=Pr;break}if(Y&64){n.msg="invalid literal/length code",t.mode=Be;break}t.extra=Y&15,t.mode=zl;case zl:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Hl;case Hl:for(;M=t.distcode[d&(1<>>24,Y=M>>>16&255,J=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,Y=M>>>16&255,J=M&65535,!(D+S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,Y&64){n.msg="invalid distance code",t.mode=Be;break}t.offset=J,t.extra=Y&15,t.mode=Wl;case Wl:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=Be;break}t.mode=Vl;case Vl:if(c===0)break t;if(p=P-c,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=Be;break}p>t.wnext?(p-=t.wnext,B=t.wsize-p):B=t.wnext-p,p>t.length&&(p=t.length),O=t.window}else O=o,B=f-t.offset,p=t.length;p>c&&(p=c),c-=p,t.length-=p;do o[f++]=O[B++];while(--p);t.length===0&&(t.mode=us);break;case Gl:if(c===0)break t;o[f++]=t.length,c--,t.mode=us;break;case co:if(t.wrap){for(;m<32;){if(u===0)break t;u--,d|=i[s++]<{if(bi(n))return Hn;let e=n.state;return e.window&&(e.window=null),n.state=null,mi},$c=(n,e)=>{if(bi(n))return Hn;const t=n.state;return(t.wrap&2)===0?Hn:(t.head=e,e.done=!1,mi)},Kc=(n,e)=>{const t=e.length;let i,o,s;return bi(n)||(i=n.state,i.wrap!==0&&i.mode!==ys)?Hn:i.mode===ys&&(o=1,o=Io(o,e,t,0),o!==i.check)?ju:(s=zu(n,e,t,t),s?(i.mode=Mu,Bu):(i.havedict=1,mi))};var Xc=Du,Zc=qu,Qc=Tu,tf=Vc,ef=Uu,nf=Yc,rf=Jc,af=$c,sf=Kc,of="pako inflate (from Nodeca project)",Ir={inflateReset:Xc,inflateReset2:Zc,inflateResetKeep:Qc,inflateInit:tf,inflateInit2:ef,inflate:nf,inflateEnd:rf,inflateGetHeader:af,inflateSetDictionary:sf,inflateInfo:of};function lf(){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 uf=lf;const Hu=Object.prototype.toString,{Z_NO_FLUSH:hf,Z_FINISH:cf,Z_OK:Na,Z_STREAM_END:go,Z_NEED_DICT:mo,Z_STREAM_ERROR:ff,Z_DATA_ERROR:Xl,Z_MEM_ERROR:df}=Iu;function La(n){this.options=Cu.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});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&&!(n&&n.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 kc,this.strm.avail_out=0;let t=Ir.inflateInit2(this.strm,e.windowBits);if(t!==Na)throw new Error(Co[t]);if(this.header=new uf,Ir.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Fo.string2buf(e.dictionary):Hu.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Ir.inflateSetDictionary(this.strm,e.dictionary),t!==Na)))throw new Error(Co[t])}La.prototype.push=function(n,e){const t=this.strm,i=this.options.chunkSize,o=this.options.dictionary;let s,f,u;if(this.ended)return!1;for(e===~~e?f=e:f=e===!0?cf:hf,Hu.call(n)==="[object ArrayBuffer]"?t.input=new Uint8Array(n):t.input=n,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),s=Ir.inflate(t,f),s===mo&&o&&(s=Ir.inflateSetDictionary(t,o),s===Na?s=Ir.inflate(t,f):s===Xl&&(s=mo));t.avail_in>0&&s===go&&t.state.wrap>0&&n[t.next_in]!==0;)Ir.inflateReset(t),s=Ir.inflate(t,f);switch(s){case ff:case Xl:case mo:case df:return this.onEnd(s),this.ended=!0,!1}if(u=t.avail_out,t.next_out&&(t.avail_out===0||s===go))if(this.options.to==="string"){let c=Fo.utf8border(t.output,t.next_out),d=t.next_out-c,m=Fo.buf2string(t.output,c);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(c,c+d),0),this.onData(m)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(s===Na&&u===0)){if(s===go)return s=Ir.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};La.prototype.onData=function(n){this.chunks.push(n)};La.prototype.onEnd=function(n){n===Na&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function pf(n,e){const t=new La(e);if(t.push(n),t.err)throw t.msg||Co[t.err];return t.result}var gf=La,mf=pf,vf={Inflate:gf,inflate:mf};const{Inflate:bf,inflate:wf}=vf;var Zl=bf,yf=wf;const Wu=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;Wu[n]=e}const Ql=4294967295;function xf(n,e,t){let i=n;for(let o=0;o>>8;return i}function _f(n,e){return(xf(Ql,n,e)^Ql)>>>0}function tu(n,e,t){const i=n.readUint32(),o=_f(new Uint8Array(n.buffer,n.byteOffset+n.offset-e-4,e),e);if(o!==i)throw new Error(`CRC mismatch for chunk ${t}. Expected ${i}, found ${o}`)}function Vu(n,e,t){for(let i=0;i>1)&255}else{for(;s>1)&255;for(;s>1)&255}}function $u(n,e,t,i,o){let s=0;if(t.length===0){for(;s=t||yt>=i))for(let mt=0;mt>8&255}const Cf=new Uint16Array([255]),Ff=new Uint8Array(Cf.buffer),Ef=Ff[0]===255,Of=new Uint8Array(0);function eu(n){const{data:e,width:t,height:i,channels:o,depth:s}=n,f=Math.ceil(s/8)*o,u=Math.ceil(s/8*o*t),c=new Uint8Array(i*u);let d=Of,m=0,A,P;for(let p=0;p>8&255}const ps=Uint8Array.of(137,80,78,71,13,10,26,10);function nu(n){if(!Bf(n.readBytes(ps.length)))throw new Error("wrong PNG signature")}function Bf(n){if(n.length79)throw new Error("keyword length must be between 1 and 79")}const Df=/^[\u0000-\u00FF]*$/;function qf(n){if(!Df.test(n))throw new Error("invalid latin1 text")}function Uf(n,e,t){const i=Xu(e);n[i]=zf(e,t-i.length-1)}function Xu(n){for(n.mark();n.readByte()!==Rf;);const e=n.offset;n.reset();const t=Ku.decode(n.readBytes(e-n.offset-1));return n.skip(1),Tf(t),t}function zf(n,e){return Ku.decode(n.readBytes(e))}const Bn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},vo={UNKNOWN:-1,DEFLATE:0},ru={UNKNOWN:-1,ADAPTIVE:0},bo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},hs={NONE:0,BACKGROUND:1,PREVIOUS:2},wo={SOURCE:0,OVER:1};class Hf extends Mo{constructor(t,i={}){super(t);xe(this,"_checkCrc");xe(this,"_inflator");xe(this,"_png");xe(this,"_apng");xe(this,"_end");xe(this,"_hasPalette");xe(this,"_palette");xe(this,"_hasTransparency");xe(this,"_transparency");xe(this,"_compressionMethod");xe(this,"_filterMethod");xe(this,"_interlaceMethod");xe(this,"_colorType");xe(this,"_isAnimated");xe(this,"_numberOfFrames");xe(this,"_numberOfPlays");xe(this,"_frames");xe(this,"_writingDataChunks");const{checkCrc:o=!1}=i;this._checkCrc=o,this._inflator=new Zl,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=vo.UNKNOWN,this._filterMethod=ru.UNKNOWN,this._interlaceMethod=bo.UNKNOWN,this._colorType=Bn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(nu(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeChunk(t,i)}return this.decodeImage(),this._png}decodeApng(){for(nu(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeApngChunk(t,i)}return this.decodeApngImage(),this._apng}decodeChunk(t,i){const o=this.offset;switch(i){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case Mf:Uf(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?tu(this,t+4,i):this.skip(4)}decodeApngChunk(t,i){const o=this.offset;switch(i!=="fdAT"&&i!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),i){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,i),this.offset=o+t;break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?tu(this,t+4,i):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=Wf(this.readUint8());const i=this.readUint8();this._colorType=i;let o;switch(i){case Bn.GREYSCALE:o=1;break;case Bn.TRUECOLOUR:o=3;break;case Bn.INDEXED_COLOUR:o=1;break;case Bn.GREYSCALE_ALPHA:o=2;break;case Bn.TRUECOLOUR_ALPHA:o=4;break;case Bn.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==vo.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const i=t/3;this._hasPalette=!0;const o=[];this._palette=o;for(let s=0;sthis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let i=0;ithis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let i=0;for(;i{const c=((f+i.yOffset)*this._png.width+i.xOffset+u)*this._png.channels,d=(f*i.width+u)*this._png.channels;return{index:c,frameIndex:d}};switch(i.blendOp){case wo.SOURCE:for(let f=0;f=200&&e.status<=299}function cs(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var di=$t.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var i=$t.URL||$t.webkitURL,o=document.createElement("a");e=e||n.name||"download",o.download=e,o.rel="noopener",typeof n=="string"?(o.href=n,o.origin!==location.origin?au(o.href)?xo(n,e,t):cs(o,o.target="_blank"):cs(o)):(o.href=i.createObjectURL(n),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){cs(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(au(n))xo(n,e,t);else{var i=document.createElement("a");i.href=n,i.target="_blank",setTimeout(function(){cs(i)})}else navigator.msSaveOrOpenBlob(function(o,s){return s===void 0?s={autoBom:!1}:Se(s)!=="object"&&(Le.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(n,t),e)}:function(n,e,t,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof n=="string")return xo(n,e,t);var o=n.type==="application/octet-stream",s=/constructor/i.test($t.HTMLElement)||$t.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||o&&s)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var m=u.result;m=f?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},u.readAsDataURL(n)}else{var c=$t.URL||$t.webkitURL,d=c.createObjectURL(n);i?i.location=d:location.href=d,i=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov @@ -138,7 +138,7 @@ T* `):l.join(` Tj endobj\r `},t.outline.count_r=function(i,o){for(var s=0;s1){U=!0,ct=void 0;var $=z*et;pt=new Uint8Array($);for(var Q=new DataView(N.buffer),it=0;it<$;it++){var at=So(Q,it,q),dt=yl(E[at],4)[3];pt[it]=dt}}else ft===0&&(ct=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:N,alphaBytes:pt,needSMask:U,palette:rt,mask:ct}}(s):c===2||c===4?function(tt){for(var z=tt.data,et=tt.width,N=tt.height,E=tt.channels,q=tt.depth,U=E===2?"DeviceGray":"DeviceRGB",rt=E-1,ct=et*N,pt=rt,nt=ct*pt,ft=1*ct,At=Math.ceil(nt*q/8),xt=Math.ceil(ft*q/8),x=new Uint8Array(At),j=new Uint8Array(xt),R=new DataView(z.buffer),V=new DataView(x.buffer),$=new DataView(j.buffer),Q=!1,it=0;it536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[n]()}catch(t){Le.log("bit decode error:"+t)}},Xn.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),t=e%4;for(n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o>7-u&1];this.data[f+4*u]=c.blue,this.data[f+4*u+1]=c.green,this.data[f+4*u+2]=c.red,this.data[f+4*u+3]=255}t!==0&&(this.pos+=4-t)}},Xn.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,o=0;o>4,c=15&s,d=this.palette[u];if(this.data[f]=d.blue,this.data[f+1]=d.green,this.data[f+2]=d.red,this.data[f+3]=255,2*o+1>=this.width)break;d=this.palette[c],this.data[f+4]=d.blue,this.data[f+4+1]=d.green,this.data[f+4+2]=d.red,this.data[f+4+3]=255}e!==0&&(this.pos+=4-e)}},Xn.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,i=0;i=0;t--){for(var i=this.bottom_up?t:this.height-1-t,o=0;o>5&e)/e*255|0,c=(s>>10&e)/e*255|0,d=s>>15?255:0,m=i*this.width*4+4*o;this.data[m]=c,this.data[m+1]=u,this.data[m+2]=f,this.data[m+3]=d}this.pos+=n}},Xn.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var o=this.bottom_up?i:this.height-1-i,s=0;s>5&t)/t*255|0,d=(f>>11)/e*255|0,m=o*this.width*4+4*s;this.data[m]=d,this.data[m+1]=c,this.data[m+2]=u,this.data[m+3]=255}this.pos+=n}},Xn.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,t=0;t=0;n--)for(var e=this.bottom_up?n:this.height-1-n,t=0;ti&&(o.push(n.slice(c,s)),u=0,c=s),u+=e[s],s++;return c!==s&&o.push(n.slice(c,s)),o},vu=function(n,e,t){t||(t={});var i,o,s,f,u,c,d,m=[],A=[m],P=t.textIndent||0,p=0,B=0,O=n.split(" "),M=ds.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?O[0].length+2:t.lineIndent||0){var S=Array(c).join(" "),Y=[];O.map(function(D){(D=D.split(/\s*\n/)).length>1?Y=Y.concat(D.map(function(lt,yt){return(yt&<.length?` `:"")+lt})):Y.push(D[0])}),O=Y,c=gu.apply(this,[S,t])}for(s=0,f=O.length;se||J){if(B>e){for(u=mu.apply(this,[i,o,e-(P+p),e]),m.push(u.shift()),m=[u.pop()];u.length;)A.push([u.shift()]);B=o.slice(i.length-(m[0]?m[0].length:0)).reduce(function(D,lt){return D+lt},0)}else m=[i];A.push(m),P=B+c,p=M}else m.push(i),P+=p+B,p=M}return d=c?function(D,lt){return(lt?S:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},Wi.splitTextToSize=function(n,e,t){var i,o=(t=t||{}).fontSize||this.internal.getFontSize(),s=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),P="Unicode";return A.metadata[P]?{widths:A.metadata[P].widths||{0:1},kerning:A.metadata[P].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);i=Array.isArray(n)?n:String(n).split(/\r?\n/);var f=1*this.internal.scaleFactor*e/o;s.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/o:0,s.lineIndent=t.lineIndent;var u,c,d=[];for(u=0,c=i.length;uimport("./index.es-Dw1dz7SE.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(P){return Promise.reject(new Error("Could not load canvg: "+P))}).then(function(P){return P.default?P.default:P}).then(function(P){return P.fromString(d,n,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(P){return P.render(m)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),e,t,i,o,f,u)})},Tt.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o1){for(m=0;me||J){if(B>e){for(u=mu.apply(this,[i,o,e-(P+p),e]),m.push(u.shift()),m=[u.pop()];u.length;)A.push([u.shift()]);B=o.slice(i.length-(m[0]?m[0].length:0)).reduce(function(D,lt){return D+lt},0)}else m=[i];A.push(m),P=B+c,p=M}else m.push(i),P+=p+B,p=M}return d=c?function(D,lt){return(lt?S:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},Wi.splitTextToSize=function(n,e,t){var i,o=(t=t||{}).fontSize||this.internal.getFontSize(),s=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),P="Unicode";return A.metadata[P]?{widths:A.metadata[P].widths||{0:1},kerning:A.metadata[P].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);i=Array.isArray(n)?n:String(n).split(/\r?\n/);var f=1*this.internal.scaleFactor*e/o;s.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/o:0,s.lineIndent=t.lineIndent;var u,c,d=[];for(u=0,c=i.length;uimport("./index.es-ufYPKWJh.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(P){return Promise.reject(new Error("Could not load canvg: "+P))}).then(function(P){return P.default?P.default:P}).then(function(P){return P.fromString(d,n,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(P){return P.render(m)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),e,t,i,o,f,u)})},Tt.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o1){for(m=0;m Topola Genealogy Viewer - +