Files
chinese-family-tree-2/.next/static/chunks/3a2617f7f6450c62.js
T
freedakgmail 2b4bc92f1b 0.0.3.0
2025-11-23 13:31:06 +08:00

1 line
16 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49173,(e,t,n)=>{(e=>{let n=(()=>{let t=0;return{escape:function(e){return e.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(e){return -1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):new Promise(function(t){var n=m(e.toDataURL().split(",")[1]),o=n.length,r=new Uint8Array(o);for(let e=0;e<o;e++)r[e]=n.charCodeAt(e);t(new Blob([r],{type:"image/png"}))})},resolveUrl:function(e,t){var n=document.implementation.createHTMLDocument(),o=n.createElement("base"),r=(n.head.appendChild(o),n.createElement("a"));return n.body.appendChild(r),o.href=t,r.href=e,r.href},getAndEncode:function(e){let t=u.impl.urlCache.find(function(t){return t.url===e});return t||(t={url:e,promise:null},u.impl.urlCache.push(t)),null===t.promise&&(u.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()),t.promise=new Promise(function(t){let n=new XMLHttpRequest;function o(e){console.error(e),t("")}function r(){var r=u.impl.options.imagePlaceholder;r?t(r):o("Status:"+n.status+" while fetching resource: "+e)}if(n.timeout=u.impl.options.httpTimeout,n.onerror=r,n.ontimeout=r,n.onloadend=function(){if(n.readyState===XMLHttpRequest.DONE){var i=n.status;if(0===i&&e.toLowerCase().startsWith("file://")||200<=i&&i<=300&&null!==n.response){(i=n.response)instanceof Blob||o("Expected response to be a Blob, but got: "+typeof i);let e=new FileReader;e.onloadend=function(){t(e.result)};try{e.readAsDataURL(i)}catch(e){o("Failed to read the response as Data URL: "+e.toString())}}else r()}},0<u.impl.options.useCredentialsFilters.length&&(u.impl.options.useCredentials=0<u.impl.options.useCredentialsFilters.filter(t=>0<=e.search(t)).length),u.impl.options.useCredentials&&(n.withCredentials=!0),u.impl.options.corsImg&&0===e.indexOf("http")&&-1===e.indexOf(window.location.origin)){var i="POST"===(u.impl.options.corsImg.method||"GET").toUpperCase()?"POST":"GET";n.open(i,(u.impl.options.corsImg.url||"").replace("#{cors}",e),!0);let t=!1,r=u.impl.options.corsImg.headers||{},l=(Object.keys(r).forEach(function(e){-1!==r[e].indexOf("application/json")&&(t=!0),n.setRequestHeader(e,r[e])}),(e=>{try{return JSON.parse(JSON.stringify(e))}catch(e){o("corsImg.data is missing or invalid:"+e.toString())}})(u.impl.options.corsImg.data||""));Object.keys(l).forEach(function(t){"string"==typeof l[t]&&(l[t]=l[t].replace("#{cors}",e))}),n.responseType="blob",n.send(t?JSON.stringify(l):l)}else n.open("GET",e,!0),n.responseType="blob",n.send()})),t.promise},uid:function(){return"u"+("0000"+(1679616*Math.random()|0).toString(36)).slice(-4)+t++},asArray:function(e){var t=[],n=e.length;for(let o=0;o<n;o++)t.push(e[o]);return t},escapeXhtml:function(e){return e.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return"data:,"!==e?new Promise(function(t,n){let o=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=new Image;u.impl.options.useCredentials&&(r.crossOrigin="use-credentials"),r.onload=function(){document.body.removeChild(o),window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){t(r)}):t(r)},r.onerror=e=>{document.body.removeChild(o),n(e)},o.appendChild(r),r.src=e,document.body.appendChild(o)}):Promise.resolve()},width:function(e){var t=l(e,"width");if(!isNaN(t))return t;var t=l(e,"border-left-width"),n=l(e,"border-right-width");return e.scrollWidth+t+n},height:function(e){var t=l(e,"height");if(!isNaN(t))return t;var t=l(e,"border-top-width"),n=l(e,"border-bottom-width");return e.scrollHeight+t+n},getWindow:n,isElement:i,isElementHostForOpenShadowRoot:function(e){return i(e)&&null!==e.shadowRoot},isShadowRoot:o,isInShadowRoot:r,isHTMLElement:function(e){return e instanceof n(e).HTMLElement},isHTMLCanvasElement:function(e){return e instanceof n(e).HTMLCanvasElement},isHTMLInputElement:function(e){return e instanceof n(e).HTMLInputElement},isHTMLImageElement:function(e){return e instanceof n(e).HTMLImageElement},isHTMLLinkElement:function(e){return e instanceof n(e).HTMLLinkElement},isHTMLScriptElement:function(e){return e instanceof n(e).HTMLScriptElement},isHTMLStyleElement:function(e){return e instanceof n(e).HTMLStyleElement},isHTMLTextAreaElement:function(e){return e instanceof n(e).HTMLTextAreaElement},isShadowSlotElement:function(e){return r(e)&&e instanceof n(e).HTMLSlotElement},isSVGElement:function(e){return e instanceof n(e).SVGElement},isSVGRectElement:function(e){return e instanceof n(e).SVGRectElement},isDimensionMissing:function(e){return isNaN(e)||e<=0}};function n(t){return((t=t?t.ownerDocument:void 0)?t.defaultView:void 0)||window||e}function o(e){return e instanceof n(e).ShadowRoot}function r(e){return null!=e&&void 0!==e.getRootNode&&o(e.getRootNode())}function i(e){return e instanceof n(e).Element}function l(e,t){if(e.nodeType===c){let n=d(e).getPropertyValue(t);if("px"===n.slice(-2))return parseFloat(n=n.slice(0,-2))}return NaN}})(),o=(()=>{let e=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return{inlineAll:function(e,n,r){return t(e)?Promise.resolve(e).then(o).then(function(t){let o=Promise.resolve(e);return t.forEach(function(e){o=o.then(function(t){return i(t,e,n,r)})}),o}):Promise.resolve(e)},shouldProcess:t,impl:{readUrls:o,inline:i,urlAsRegex:r}};function t(t){return -1!==t.search(e)}function o(t){for(var o,r=[];null!==(o=e.exec(t));)r.push(o[2]);return r.filter(function(e){return!n.isDataUrl(e)})}function r(e){return RegExp(`url\\((["']?)(${n.escape(e)})\\1\\)`,"gm")}function i(e,t,o,i){return Promise.resolve(t).then(function(e){return o?n.resolveUrl(e,o):e}).then(i||n.getAndEncode).then(function(n){var o=r(t);return e.replace(o,`url($1${n}$1)`)})}})(),r={resolveAll:function(){return i().then(function(e){return Promise.all(e.map(function(e){return e.resolve()}))}).then(function(e){return e.join("\n")})},impl:{readAll:i}};function i(){return Promise.resolve(n.asArray(document.styleSheets)).then(function(e){let t=[];return e.forEach(function(e){var o=Object.getPrototypeOf(e);if(Object.prototype.hasOwnProperty.call(o,"cssRules"))try{n.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.error("domtoimage: Error while reading CSS rules from: "+e.href,t.toString())}}),t}).then(function(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return o.shouldProcess(e.style.getPropertyValue("src"))})}).then(function(t){return t.map(e)});function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return o.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}}let l={inlineAll:function e(t){var r;return n.isElement(t)?(r=t,Promise.all(["background","background-image"].map(function(e){let t=r.style.getPropertyValue(e),n=r.style.getPropertyPriority(e);return t?o.inlineAll(t).then(function(t){r.style.setProperty(e,t,n)}):Promise.resolve()})).then(function(){return r})).then(function(){return n.isHTMLImageElement(t)?s(t).inline():Promise.all(n.asArray(t.childNodes).map(function(t){return e(t)}))}):Promise.resolve(t)},impl:{newImage:s}};function s(e){return{inline:function(t){return n.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||n.getAndEncode).then(function(t){return new Promise(function(n){e.onload=n,e.onerror=n,e.src=t})})}}}let a={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0,adjustClonedNode:void 0,filterStyles:void 0},u={toSvg:h,toPng:function(e,t){return f(e,t).then(function(e){return e.toDataURL()})},toJpeg:function(e,t){return f(e,t).then(function(e){return e.toDataURL("image/jpeg",(t?t.quality:void 0)||1)})},toBlob:function(e,t){return f(e,t).then(n.canvasToBlob)},toPixelData:function(e,t){return f(e,t).then(function(t){return t.getContext("2d").getImageData(0,0,n.width(e),n.height(e)).data})},toCanvas:f,impl:{fontFaces:r,images:l,util:n,inliner:o,urlCache:[],options:{},copyOptions:function(e){void 0===e.copyDefaultStyles?u.impl.options.copyDefaultStyles=a.copyDefaultStyles:u.impl.options.copyDefaultStyles=e.copyDefaultStyles,u.impl.options.imagePlaceholder=(void 0===e.imagePlaceholder?a:e).imagePlaceholder,u.impl.options.cacheBust=(void 0===e.cacheBust?a:e).cacheBust,u.impl.options.corsImg=(void 0===e.corsImg?a:e).corsImg,u.impl.options.useCredentials=(void 0===e.useCredentials?a:e).useCredentials,u.impl.options.useCredentialsFilters=(void 0===e.useCredentialsFilters?a:e).useCredentialsFilters,u.impl.options.httpTimeout=(void 0===e.httpTimeout?a:e).httpTimeout,u.impl.options.styleCaching=(void 0===e.styleCaching?a:e).styleCaching}}},c=(t.exports=u,(void 0===Node?void 0:Node.ELEMENT_NODE)||1),d=(void 0===e?void 0:e.getComputedStyle)||(void 0===window?void 0:window.getComputedStyle)||globalThis.getComputedStyle,m=(void 0===e?void 0:e.atob)||(void 0===window?void 0:window.atob)||globalThis.atob;function h(e,t){let o=u.impl.util.getWindow(e),r=(t=t||{},u.impl.copyOptions(t),[]);return Promise.resolve(e).then(function(e){if(e.nodeType===c)return e;var t=document.createElement("span");return e.replaceWith(t),t.append(e),r.push({child:e,wrapper:t}),t}).then(function(e){return function e(t,o,r,i){let l=o.filter;return t===p||n.isHTMLScriptElement(t)||n.isHTMLStyleElement(t)||n.isHTMLLinkElement(t)||null!==r&&l&&!l(t)?Promise.resolve():Promise.resolve(t).then(function(e){return n.isHTMLCanvasElement(e)?n.makeImage(e.toDataURL()):e.cloneNode(!1)}).then(function(e){return o.adjustClonedNode&&o.adjustClonedNode(t,e,!1),Promise.resolve(e)}).then(function(r){var l;return function(t,r){let l=function(e){if(n.isShadowSlotElement(e)){let t=e.assignedNodes();if(t&&0<t.length)return t}return e.childNodes}(r),s=Promise.resolve();if(0!==l.length){var a;let u=d((a=r,n.isShadowRoot(a)?a.host:a));n.asArray(l).forEach(function(n){s=s.then(function(){return e(n,o,u,i).then(function(e){e&&t.appendChild(e)})})})}return s.then(function(){return t})}(r,(l=t,n.isElementHostForOpenShadowRoot(l)?l.shadowRoot:l))}).then(function(e){return o.adjustClonedNode&&o.adjustClonedNode(t,e,!0),Promise.resolve(e)}).then(function(e){var i,l;return i=e,l=t,!n.isElement(i)||n.isShadowSlotElement(l)?Promise.resolve(i):Promise.resolve().then(function(){var e,t,s,a,m,h;let f,g,y;(f=d(l)).cssText?(i.style.cssText=f.cssText,(e=i.style).font=f.font,e.fontFamily=f.fontFamily,e.fontFeatureSettings=f.fontFeatureSettings,e.fontKerning=f.fontKerning,e.fontSize=f.fontSize,e.fontStretch=f.fontStretch,e.fontStyle=f.fontStyle,e.fontVariant=f.fontVariant,e.fontVariantCaps=f.fontVariantCaps,e.fontVariantEastAsian=f.fontVariantEastAsian,e.fontVariantLigatures=f.fontVariantLigatures,e.fontVariantNumeric=f.fontVariantNumeric,e.fontVariationSettings=f.fontVariationSettings,e.fontWeight=f.fontWeight):(t=o,s=l,a=f,m=r,h=i,g=u.impl.options.copyDefaultStyles?((e,t)=>{let o,r,i;var l,s,a,u=(o=t=(e=>{var t=[];do if(e.nodeType===c){var n=e.tagName;if(t.push(n),w.includes(n))break}while(e=e.parentNode)return t})(t),("relaxed"!==e.styleCaching?o:o.filter((e,t,n)=>0===t||t===n.length-1)).join(">"));if(E[u])return E[u];t=((e,t)=>{let n=e.body;do{var o=t.pop(),o=e.createElement(o);n.appendChild(o),n=o}while(0<t.length)return n.textContent="",n})((a=(()=>{if(p)return p.contentWindow;t=document.characterSet||"UTF-8",e=(e=document.doctype)?(`<!DOCTYPE ${a(e.name)} ${a(e.publicId)} `+a(e.systemId)).trim()+">":"",(p=document.createElement("iframe")).id="domtoimage-sandbox-"+n.uid(),p.style.top="-9999px",p.style.visibility="hidden",p.style.position="fixed",document.body.appendChild(p);var e,t,o=p,r="domtoimage-sandbox";try{return o.contentWindow.document.write(e+`<html><head><meta charset='${t}'><title>${r}</title></head><body></body></html>`),o.contentWindow}catch(e){}var i=document.createElement("meta");i.setAttribute("charset",t);try{var l=document.implementation.createHTMLDocument(r),s=(l.head.appendChild(i),e+l.documentElement.outerHTML);return o.setAttribute("srcdoc",s),o.contentWindow}catch(e){}return o.contentDocument.head.appendChild(i),o.contentDocument.title=r,o.contentWindow;function a(e){var t;return e?((t=document.createElement("div")).innerText=e,t.innerHTML):""}})()).document,t),l=a,s=t,r={},i=l.getComputedStyle(s),n.asArray(i).forEach(function(e){r[e]="width"===e||"height"===e?"auto":i.getPropertyValue(e)}),a=r;var d=t;do{var m=d.parentElement;null!==m&&m.removeChild(d),d=m}while(d&&"BODY"!==d.tagName)return E[u]=a})(t,s):{},y=h.style,n.asArray(a).forEach(function(e){var n,o,r,i;t.filterStyles&&!t.filterStyles(s,e)||(o=a.getPropertyValue(e),r=g[e],n=m?m.getPropertyValue(e):void 0,y.getPropertyValue(e))||(o!==r||m&&o!==n)&&(r=a.getPropertyPriority(e),n=y,i=0<=["background-clip"].indexOf(e),r?(n.setProperty(e,o,r),i&&n.setProperty("-webkit-"+e,o,r)):(n.setProperty(e,o),i&&n.setProperty("-webkit-"+e,o)))}),null===r&&(["inset-block","inset-block-start","inset-block-end"].forEach(e=>i.style.removeProperty(e)),["left","right","top","bottom"].forEach(e=>{i.style.getPropertyValue(e)&&i.style.setProperty(e,"0px")})))}).then(function(){let e=n.uid();[":before",":after"].forEach(function(t){!function(t){let o=d(l,t),r=o.getPropertyValue("content");if(""!==r&&"none"!==r){let l,s,a=i.getAttribute("class")||"",u=(i.setAttribute("class",a+" "+e),document.createElement("style"));u.appendChild((l=`.${e}:`+t,s=(o.cssText?function(){return`${o.cssText} content: ${r};`}:function(){return n.asArray(o).map(function(e){let t=o.getPropertyValue(e),n=o.getPropertyPriority(e)?" !important":"";return e+": "+t+n}).join("; ")+";"})(),document.createTextNode(l+`{${s}}`))),i.appendChild(u)}}(t)})}).then(function(){n.isHTMLTextAreaElement(l)&&(i.innerHTML=l.value),n.isHTMLInputElement(l)&&i.setAttribute("value",l.value)}).then(function(){n.isSVGElement(i)&&(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.isSVGRectElement(i))&&["width","height"].forEach(function(e){let t=i.getAttribute(e);t&&i.style.setProperty(e,t)})}).then(function(){n.isHTMLImageElement(i)&&(i.removeAttribute("loading"),l.srcset||l.sizes)&&(i.removeAttribute("srcset"),i.removeAttribute("sizes"),i.src=l.currentSrc||l.src)}).then(function(){return i})})}(e,t,null,o)}).then(t.disableEmbedFonts?Promise.resolve(e):g).then(t.disableInlineImages?Promise.resolve(e):y).then(function(e){t.bgcolor&&(e.style.backgroundColor=t.bgcolor),t.width&&(e.style.width=t.width+"px"),t.height&&(e.style.height=t.height+"px"),t.style&&Object.keys(t.style).forEach(function(n){e.style[n]=t.style[n]});let n=null;return"function"==typeof t.onclone&&(n=t.onclone(e)),Promise.resolve(n).then(function(){return e})}).then(function(o){let r=t.width||n.width(e),i=t.height||n.height(e);return Promise.resolve(o).then(function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)}).then(n.escapeXhtml).then(function(e){var t=(n.isDimensionMissing(r)?' width="100%"':` width="${r}"`)+(n.isDimensionMissing(i)?' height="100%"':` height="${i}"`);return`<svg xmlns="http://www.w3.org/2000/svg"${(n.isDimensionMissing(r)?"":` width="${r}"`)+(n.isDimensionMissing(i)?"":` height="${i}"`)}><foreignObject${t}>${e}</foreignObject></svg>`}).then(function(e){return"data:image/svg+xml;charset=utf-8,"+e})}).then(function(e){for(;0<r.length;){var t=r.pop();t.wrapper.replaceWith(t.child)}return e}).then(function(e){return u.impl.urlCache=[],p&&(document.body.removeChild(p),p=null),v&&clearTimeout(v),v=setTimeout(()=>{v=null,E={}},2e4),e})}function f(e,t){return h(e,t=t||{}).then(n.makeImage).then(function(o){let r,i;var l,s,a="number"!=typeof t.scale?1:t.scale,u=(l=e,s=a,r=t.width||n.width(l),i=t.height||n.height(l),n.isDimensionMissing(r)&&(r=n.isDimensionMissing(i)?300:2*i),n.isDimensionMissing(i)&&(i=r/2),(l=document.createElement("canvas")).width=r*s,l.height=i*s,t.bgcolor&&((s=l.getContext("2d")).fillStyle=t.bgcolor,s.fillRect(0,0,l.width,l.height)),l),c=u.getContext("2d");return c.msImageSmoothingEnabled=!1,c.imageSmoothingEnabled=!1,o&&(c.scale(a,a),c.drawImage(o,0,0)),u})}let p=null;function g(e){return r.resolveAll().then(function(t){var n;return""!==t&&(n=document.createElement("style"),e.appendChild(n),n.appendChild(document.createTextNode(t))),e})}function y(e){return l.inlineAll(e).then(function(){return e})}let v=null,E={},w=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"]})(e.e)}]);