From e1393caf71bdfe0e4b2aaa5dba6979a1452ce7de Mon Sep 17 00:00:00 2001 From: github-actions-bot Date: Sun, 15 Mar 2026 16:15:07 +0000 Subject: [PATCH] Updates --- assets/{index-CsbIfpVF.js => index-y86Ilk1q.js} | 13 +++++++------ .../{index.es-DF46PFtR.js => index.es-Ce6wxV-H.js} | 2 +- ....es.min-CmktHkKZ.js => jspdf.es.min-5sX0Ok-m.js} | 8 ++++---- assets/purify.es-B9ZVCkUG.js | 2 -- assets/purify.es-BgtpMKW3.js | 2 ++ index.html | 5 ++++- 6 files changed, 18 insertions(+), 14 deletions(-) rename assets/{index-CsbIfpVF.js => index-y86Ilk1q.js} (99%) rename assets/{index.es-DF46PFtR.js => index.es-Ce6wxV-H.js} (99%) rename assets/{jspdf.es.min-CmktHkKZ.js => jspdf.es.min-5sX0Ok-m.js} (99%) delete mode 100644 assets/purify.es-B9ZVCkUG.js create mode 100644 assets/purify.es-BgtpMKW3.js diff --git a/assets/index-CsbIfpVF.js b/assets/index-y86Ilk1q.js similarity index 99% rename from assets/index-CsbIfpVF.js rename to assets/index-y86Ilk1q.js index b1d8fea..546656f 100644 --- a/assets/index-CsbIfpVF.js +++ b/assets/index-y86Ilk1q.js @@ -110,7 +110,7 @@ Please change the parent to to to q});L.append("text").attr("text-anchor","middle").attr("class","details").attr("transform","translate(9, ".concat(49+q*c,")")).text(function(W){return P.get(W.indi.id)[q].symbol}),L.append("text").attr("class","details").attr("transform","translate(15, ".concat(49+q*c,")")).text(function(W){return P.get(W.indi.id)[q].text})},F=0;FN});P.append("text").attr("text-anchor","middle").attr("class","details").attr("transform","translate(9, ".concat(16+N*c,")")).text(function(z){return C.get(z.data.family.id)[N].symbol}),P.append("text").attr("text-anchor","start").attr("class","details").attr("transform","translate(15, ".concat(16+N*c,")")).text(function(z){return C.get(z.data.family.id)[N].text})},R=0;R=0;A--)this.push(C[A])},pop:function(){var C=this.peek();return this.top--,C},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===-1}};function a(v){return new i(v)}function o(){this.depth=0,this.stack=a({node:null,index:-1})}o.prototype={moveDown:function(C){this.depth++,this.stack.push({node:C,index:0})},moveUp:function(){this.depth--,this.stack.pop()},moveNext:function(){this.stack.peek().index++},get parent(){return this.stack.peek().node},get index(){return this.stack.peek().index}};function s(){return new o}function u(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}u.prototype={reset:function(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}};function l(){return new u}function c(v){return v&&v.length!==0}function f(v,C,A){for(var M=l(),R=s(),N=r(M,R),P=a(v),z=Object.assign({},v);!P.isEmpty();){var V=P.pop();if(V===z){R.moveUp();continue}if(M.reset(),C(V,N),M.break)break;if(!M.remove&&(R.moveNext(),!M.skip)){M.replace&&(V=M.replace);var F=A(V);c(F)&&(P.push(z),P.pushArrayReverse(F),R.moveDown(V))}}}function d(v,C,A){for(var M=l(),R=s(),N=r(M,R),P=a(v),z=a(null);!P.isEmpty();){var V=P.peek(),F=z.peek(),$=A(V);if(M.reset(),V===F||!c($)){if(V===F&&(z.pop(),R.moveUp()),P.pop(),C(V,N),M.break)break;if(M.remove)continue;R.moveNext()}else z.push(V),R.moveDown(V),P.pushArrayReverse($)}}var p=32768;function w(v){this.xs=[v],this.top=0,this.maxLength=0}w.prototype={enqueue:function(C){this.xs.push(C)},enqueueMultiple:function(C){for(var A=0,M=C.length;Ac.level){var d=c.pointer;c.pointer=c.pointer.tree[c.pointer.tree.length-1],c.pointer.tree.push(f),c.pointer.up=d,c.level=f.level}else if(f.level0){var q=function(H){var ne=H.data?y.get(r(H.data)):H;if(ne){var ce=t(ne.tree,"FILE"),ge=t(ne.tree,"TITL");if(ce)return{url:ce.data,title:ge&&ge.data}}};S.images=K.map(q).filter(function(H){return H!==void 0})}var L=l(t(g.tree,"BIRT"));L&&(S.birth=L);var W=l(t(g.tree,"DEAT"));W&&(S.death=W);var G=u(t(g.tree,"NOTE"));return G&&(S.notes=G),S.events=n(g.tree,"EVEN").map(l).filter(function(H){return H!==null}),S}function f(g,y){var _=r(g.pointer),b=n(g.tree,"CHIL").map(function(R){return r(R.data)}).filter(function(R){return y.has(R)}),E={id:_,children:b},S=t(g.tree,"HUSB");if(S){var v=r(S.data);y.has(v)&&(E.husb=r(S.data))}var C=t(g.tree,"WIFE");if(C){var A=r(C.data);y.has(A)&&(E.wife=r(C.data))}var M=l(t(g.tree,"MARR"));return M&&(E.marriage=M),E}function d(g){return new Map(g.map(function(y){return[r(y.pointer),y]}))}function p(g){return w((0,e.parse)(g))}function w(g){var y=d(n(g,"OBJE")),_=new Set(g.map(function(S){return r(S.pointer)}).filter(function(S){return!!S})),b=n(g,"INDI").map(function(S){return c(S,y,_)}),E=n(g,"FAM").map(function(S){return f(S,_)});return{indis:b,fams:E}}return Ac}var Ih={},q5;function S0e(){if(q5)return Ih;q5=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.HourglassChart=void 0;var e=nP(),t=Ul(),n=Gw(),r=function(){function i(a){this.options=a,this.util=new t.ChartUtil(a)}return i.prototype.render=function(){var a,o,s,u,l=(0,e.getAncestorsTree)(this.options),c=this.util.layOutChart(l,{flipVertically:!0}),f=(0,n.layOutDescendants)(this.options);((a=c[0].data.indi)===null||a===void 0?void 0:a.expander)!==void 0&&(f[0].data.indi.expander=(o=c[0].data.indi)===null||o===void 0?void 0:o.expander),((s=c[0].data.spouse)===null||s===void 0?void 0:s.expander)!==void 0&&(f[0].data.spouse.expander=(u=c[0].data.spouse)===null||u===void 0?void 0:u.expander);var d=c.slice(1).concat(f),p=this.util.renderChart(d),w=(0,t.getChartInfo)(d);return this.util.updateSvgDimensions(w),Object.assign(w,{animationPromise:p})},i}();return Ih.HourglassChart=r,Ih}var Nh={},Lu={},ks={},G5;function QU(){if(G5)return ks;G5=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.LinkType=ks.ChildNodes=void 0,ks.otherSideLinkType=n;var e=function(){function r(i){i===void 0&&(i={}),this.indiParents=[],this.indiSiblings=[],this.spouseParents=[],this.spouseSiblings=[],this.children=[],Object.assign(this,i)}return r.prototype.get=function(i){switch(i){case t.IndiParents:return this.indiParents;case t.IndiSiblings:return this.indiSiblings;case t.SpouseParents:return this.spouseParents;case t.SpouseSiblings:return this.spouseSiblings;case t.Children:return this.children}},r.prototype.getAll=function(){return[].concat(this.indiSiblings,this.indiParents,this.children,this.spouseParents,this.spouseSiblings)},r.EMPTY=new r,r}();ks.ChildNodes=e;var t;(function(r){r[r.IndiParents=0]="IndiParents",r[r.IndiSiblings=1]="IndiSiblings",r[r.SpouseParents=2]="SpouseParents",r[r.SpouseSiblings=3]="SpouseSiblings",r[r.Children=4]="Children"})(t||(ks.LinkType=t={}));function n(r){switch(r){case t.IndiParents:return t.Children;case t.IndiSiblings:return t.IndiSiblings;case t.SpouseParents:return t.Children;case t.SpouseSiblings:return t.IndiSiblings;case t.Children:return t.IndiParents}}return ks}var Bu={},W5;function KU(){if(W5)return Bu;W5=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.nonEmpty=e,Bu.last=t,Bu.zip=n,Bu.points2pathd=r;function e(i){return!!(i&&i.length)}function t(i){return i[i.length-1]}function n(i,a){return i.map(function(o,s){return[o,a[s]]})}function r(i){for(var a="M ".concat(i[0].x," ").concat(i[0].y," L"),o=0,s=i.slice(1);o1&&this.renderRootDummyAdditionalMarriageLinkStub(_[0]);var S=(0,r.getChartInfo)(b);return this.util.updateSvgDimensions(S),Object.assign(S,{animationPromise:E})},d.prototype.renderLinks=function(p){var w=this,g=this.util.getSvgForRendering().select("g"),y=function(v){return v.data.id},_=g.selectAll("path.internode-link").data(p.filter(function(v){return!!v.parent}),y);_.enter().insert("path","g").attr("class",function(v){return w.cssClassForLink(v)}).merge(_).attr("d",function(v){var C=v.data.primaryMarriage?w.additionalMarriageLinkPoints(v):w.linkPoints(v.parent,v,v.data.linkFromParentType);return(0,i.points2pathd)(C)}),_.exit().remove();var b=g.selectAll("g.link-stubs").data(p.filter(function(v){return v.data.duplicateOf||v.data.duplicated||v.data.primaryMarriage}),y),E=b.enter().insert("g","g").attr("class","link-stubs");b.exit().remove();var S=E.merge(b).selectAll("g").data(function(v){return w.nodeToLinkStubRenderInfos(v)},function(v){return v.linkType.toString()});S.enter().append("g").call(function(v){return v.append("path").attr("class",function(C){return w.cssClassForLinkStub(C.linkType)}).merge(S.select("path.link-stub")).attr("d",function(C){return(0,i.points2pathd)(C.points)})}).call(function(v){return v.append("circle").attr("r",c).style("stroke","black").style("fill","none").merge(S.select("circle")).attr("transform",function(C){return"translate(".concat((0,i.last)(C.points).x,", ").concat((0,i.last)(C.points).y+c*C.treeDir,")")})}),S.exit().remove()},d.prototype.cssClassForLink=function(p){return p.data.primaryMarriage?"link internode-link additional-marriage":"link internode-link "+this.cssClassForLinkType(p.data.linkFromParentType)},d.prototype.cssClassForLinkStub=function(p){return"link link-stub "+this.cssClassForLinkType(p)},d.prototype.cssClassForLinkType=function(p){switch(p){case n.LinkType.IndiParents:case n.LinkType.SpouseParents:return"parents-link";case n.LinkType.IndiSiblings:case n.LinkType.SpouseSiblings:return"siblings-link";case n.LinkType.Children:return"children-link"}},d.prototype.nodeToLinkStubRenderInfos=function(p){var w=this;return p.data.linkStubs.map(function(g){var y=p.yy)return[-1,-1];if(_.miny)return[1,-1]}else if((w.indiParents.length||w.indiSiblings.length)&&(w.spouseParents.length||w.spouseSiblings.length)){var g=this.linkAnchorPoints(p,n.LinkType.IndiParents,!0)[0].x,b=this.findMinXOfChildNodesAnchors(p,w.spouseSiblings.concat(w.spouseParents));if(bw.y,_=this.linkAnchorPoints(p,g,y),b=this.linkAnchorPoints(w,(0,n.otherSideLinkType)(g),!y).reverse(),E=this.getLinkY(p,g);return e(e(e([],_,!0),[{x:_[_.length-1].x,y:E},{x:b[0].x,y:E}],!1),b,!0)},d.prototype.additionalMarriageLinkPoints=function(p){var w=p.parent.children.findIndex(function(_){return _.data.id===p.data.id}),g=p.parent.children[w-1],y=this.indiMidY(p);return[{x:g.x,y},{x:p.x,y}]},d.prototype.linkAnchorPoints=function(p,w,g){var y=[p.x,p.y],_=y[0],b=y[1],E=[p.data.width,p.data.height],S=E[0],v=E[1],C=_-S/2,A=_+S/2,M=[p.data.indi,p.data.spouse,p.data.family].map(function(B){return B?B.width:0}),R=M[0],N=M[1],P=M[2],z=R+N,V=_-S/2+(P>z?(P-z)/2:0),F=V+z,$=this.indiMidY(p)+s*(g?-1:1);switch(w){case n.LinkType.IndiParents:return[{x:V+o,y:b-v/2}];case n.LinkType.SpouseParents:return[{x:F-o,y:b-v/2}];case n.LinkType.IndiSiblings:return[{x:V,y:$},{x:(P>z&&!g?C:V)-u,y:$}];case n.LinkType.SpouseSiblings:return[{x:F,y:$},{x:(P>z&&!g?A:F)+u,y:$}];case n.LinkType.Children:return[{x:V+(p.data.spouse?R:R/2),y:b}]}},d.prototype.indiMidY=function(p){return p.y-p.data.height/2+p.data.indi.height/2},d.prototype.renderRootDummyAdditionalMarriageLinkStub=function(p){var w=this.util.getSvgForRendering().select("g"),g=this.indiMidY(p),y=p.data.width/2+20,_=3;w.selectAll(".root-dummy-additional-marriage").remove(),w.insert("g","g").attr("class","root-dummy-additional-marriage").call(function(b){return b.append("path").attr("d","M 0 ".concat(g," L ").concat(y," ").concat(g)).attr("class","link additional-marriage")}).call(function(b){return b.append("circle").attr("transform","translate(".concat(y+_,", ").concat(g,")")).attr("r",_).style("stroke","black").style("fill","black")})},d}();return Lu.KinshipChartRenderer=f,Lu}var As={},Oh={},Y5;function k0e(){if(Y5)return Oh;Y5=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.HierarchyFilter=void 0;var e=function(){function t(n){n===void 0&&(n={}),this.indiParents=!0,this.indiSiblings=!0,this.spouseParents=!0,this.spouseSiblings=!0,this.children=!0,this.modify(n)}return t.allAccepting=function(){return new t},t.allRejecting=function(){return new t().modify({indiParents:!1,indiSiblings:!1,spouseParents:!1,spouseSiblings:!1,children:!1})},t.prototype.modify=function(n){return Object.assign(this,n),this},t}();return Oh.HierarchyFilter=e,Oh}var Q5;function A0e(){if(Q5)return As;Q5=1,Object.defineProperty(As,"__esModule",{value:!0}),As.EntryId=As.HierarchyCreator=void 0,As.getRootsCount=s;var e=QU(),t=tP,n=k0e(),r=qw(),i=KU(),a=function(){function u(l,c){var f;this.data=l,this.queuedNodesById=new Map,this.idGenerator=new r.IdGenerator,f=this.expandStartId(c),this.startEntryId=f[0],this.startFamIndi=f[1]}return u.createHierarchy=function(l,c){return new u(l,c).createHierarchy()},u.prototype.expandStartId=function(l){if(l.isFam)return[l,null];var c=this.data.getIndi(l.id);if(!c)throw new Error("Invalid startId");var f=c.getFamiliesAsSpouse();return f.length?[o.fam(f[0]),l.id]:[l,null]},u.prototype.createHierarchy=function(){var l=this.idToNode(this.startEntryId,null,null,!1),c=this.idToNode(this.startEntryId,null,null,!1);if(!l||!c)throw new Error("Invalid root node");this.startFamIndi&&(l.indi={id:this.startFamIndi},c.indi={id:this.startFamIndi});for(var f=[l,c];f.length;){var d=f.shift(),p=d===l?u.UP_FILTER:d===c?u.DOWN_FILTER:u.ALL_ACCEPTING_FILTER;this.fillNodeData(d,p);for(var w=0,g=d.childNodes.getAll();w1]:[!1,!1]},u.prototype.getParentsAndSiblings=function(l){var c=l&&l.getFamilyAsChild(),f=this.data.getFam(c);if(!f)return[[],[]];var d=this.data.getIndi(f.getFather()),p=this.data.getIndi(f.getMother()),w=[].concat(d?d.getFamiliesAsSpouse():[],p?p.getFamiliesAsSpouse():[]).filter(function(y){return y!==c});w.unshift(c);var g=Array.from(f.getChildren());return g.splice(g.indexOf(l.getId()),1),[w,g]},u.prototype.indiIdsToFamAsSpouseNodes=function(l,c,f){var d=this;return l.flatMap(function(p){return d.indiIdToFamAsSpouseNodes(p,c,f)})},u.prototype.indiIdToFamAsSpouseNodes=function(l,c,f){var d=this;if(this.isChildNodeTypeForbidden(f,c))return[];var p=this.data.getIndi(l).getFamiliesAsSpouse();if(!p.length){var w=this.idToNode(o.indi(l),c,f);return w?[w]:[]}var g=p.map(function(y){return{id:y,indi:{id:l},family:{id:y},parentNode:c,linkFromParentType:f,childNodes:e.ChildNodes.EMPTY,linkStubs:[]}});return g.forEach(function(y,_){_!==0&&(y.primaryMarriage=g[0]);var b=d.queuedNodesById.get(y.id);b?(y.duplicateOf=b,b.duplicated=!0):d.queuedNodesById.set(y.id,y)}),g},u.prototype.famAsSpouseIdsToNodes=function(l,c,f){var d=this.idsToNodes(l.map(o.fam),c,f);return d.slice(1).forEach(function(p){return p.primaryMarriage=d[0]}),d},u.prototype.idsToNodes=function(l,c,f,d){var p=this;return d===void 0&&(d=!0),l.map(function(w){return p.idToNode(w,c,f,d)}).filter(function(w){return w!=null})},u.prototype.idToNode=function(l,c,f,d){if(d===void 0&&(d=!0),this.isChildNodeTypeForbidden(f,c))return null;var p=l.id,w=l.isFam;if(w){var g=this.data.getFam(p);if(!g||!g.getFather()&&!g.getMother())return null}var y=this.queuedNodesById.get(p),_={id:p,parentNode:c,linkFromParentType:f,childNodes:e.ChildNodes.EMPTY,linkStubs:[]};return w&&(_.family={id:p}),d&&y&&(_.duplicateOf=y,y.duplicated=!0),y||this.queuedNodesById.set(p,_),_},u.prototype.createLinkStubs=function(l){var c=this;if(!this.isFamNode(l)||!l.duplicateOf&&!l.duplicated&&!l.primaryMarriage)return[];var f=this.data.getFam(l.family.id),d=this.areParentsAndSiblingsPresent(l.indi?l.indi.id:null),p=d[0],w=d[1],g=this.areParentsAndSiblingsPresent(l.spouse?l.spouse.id:null),y=g[0],_=g[1],b=(0,i.nonEmpty)(f.getChildren());return[p?[e.LinkType.IndiParents]:[],w?[e.LinkType.IndiSiblings]:[],y?[e.LinkType.SpouseParents]:[],_?[e.LinkType.SpouseSiblings]:[],b?[e.LinkType.Children]:[]].flat().filter(function(E){return!c.isChildNodeTypeForbidden(E,l)&&!l.childNodes.get(E).length})},u.prototype.isChildNodeTypeForbidden=function(l,c){if(l===null||!c)return!1;switch((0,e.otherSideLinkType)(c.linkFromParentType)){case e.LinkType.IndiParents:case e.LinkType.IndiSiblings:if(l===e.LinkType.IndiParents||l===e.LinkType.IndiSiblings)return!0;break;case e.LinkType.Children:if(!c.primaryMarriage&&l===e.LinkType.Children)return!0;break}if(c.primaryMarriage){var f=c.indi.id,d=c.spouse.id,p=c.primaryMarriage.indi.id,w=c.primaryMarriage.spouse.id;if(f===p||f===w){if(l===e.LinkType.IndiParents||l===e.LinkType.IndiSiblings)return!0}else if((d===p||d===w)&&(l===e.LinkType.SpouseParents||l===e.LinkType.SpouseSiblings))return!0}return!1},u.prototype.isFamNode=function(l){return!!l.family},u.UP_FILTER=n.HierarchyFilter.allRejecting().modify({indiParents:!0,spouseParents:!0,indiSiblings:!0,spouseSiblings:!0}),u.DOWN_FILTER=n.HierarchyFilter.allRejecting().modify({children:!0}),u.ALL_ACCEPTING_FILTER=n.HierarchyFilter.allAccepting(),u}();As.HierarchyCreator=a;var o=function(){function u(l,c){if(!l&&!c)throw new Error("Invalid EntryId");this.id=l||c,this.isFam=!!c}return u.indi=function(l){return new u(l,null)},u.fam=function(l){return new u(null,l)},u}();As.EntryId=o;function s(u,l){var c=u.data.indi&&l.getIndi(u.data.indi.id),f=u.data.spouse&&l.getIndi(u.data.spouse.id);return(c?c.getFamiliesAsSpouse().length:0)+(f?f.getFamiliesAsSpouse().length-1:0)}return As}var K5;function T0e(){if(K5)return Nh;K5=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.KinshipChart=void 0;var e=C0e(),t=A0e(),n=function(){function i(a){this.options=a,this.renderer=new e.KinshipChartRenderer(this.options)}return i.prototype.render=function(){var a=this,o=t.HierarchyCreator.createHierarchy(this.options.data,new t.EntryId(this.options.startIndi||null,this.options.startFam||null)),s=this.renderer.layOut(o.upRoot,o.downRoot),u=s[0],l=s[1];return u.concat(l).forEach(function(c){a.setChildNodesGenerationNumber(c)}),this.renderer.render(u,l,(0,t.getRootsCount)(o.upRoot,this.options.data))},i.prototype.setChildNodesGenerationNumber=function(a){var o=this.getChildNodesByType(a),s=function(u,l){return u.forEach(function(c){return c.data.generation=a.data.generation+l})};s(o.indiParents,-1),s(o.indiSiblings,0),s(o.spouseParents,-1),s(o.spouseSiblings,0),s(o.children,1)},i.prototype.getChildNodesByType=function(a){if(!a||!a.children)return r;var o=new Map(a.children.map(function(l){return[l.data.id,l]})),s=function(l){return o.get(l.id)},u=a.data.childNodes;return{indiParents:u.indiParents.map(s),indiSiblings:u.indiSiblings.map(s),spouseParents:u.spouseParents.map(s),spouseSiblings:u.spouseSiblings.map(s),children:u.children.map(s)}},i}();Nh.KinshipChart=n;var r={indiParents:[],indiSiblings:[],spouseParents:[],spouseSiblings:[],children:[]};return Nh}var yo={},X5;function M0e(){if(X5)return yo;X5=1;var e=yo&&yo.__assign||function(){return e=Object.assign||function(c){for(var f,d=1,p=arguments.length;dc.level){var d=c.pointer;c.pointer=c.pointer.tree[c.pointer.tree.length-1],c.pointer.tree.push(f),c.pointer.up=d,c.level=f.level}else if(f.level0){var q=function(H){var ne=H.data?y.get(r(H.data)):H;if(ne){var ce=t(ne.tree,"FILE"),ge=t(ne.tree,"TITL");if(ce)return{url:ce.data,title:ge&&ge.data}}};S.images=K.map(q).filter(function(H){return H!==void 0})}var L=l(t(g.tree,"BIRT"));L&&(S.birth=L);var W=l(t(g.tree,"DEAT"));W&&(S.death=W);var G=u(t(g.tree,"NOTE"));return G&&(S.notes=G),S.events=n(g.tree,"EVEN").map(l).filter(function(H){return H!==null}),S}function f(g,y){var _=r(g.pointer),b=n(g.tree,"CHIL").map(function(R){return r(R.data)}).filter(function(R){return y.has(R)}),E={id:_,children:b},S=t(g.tree,"HUSB");if(S){var v=r(S.data);y.has(v)&&(E.husb=r(S.data))}var C=t(g.tree,"WIFE");if(C){var A=r(C.data);y.has(A)&&(E.wife=r(C.data))}var M=l(t(g.tree,"MARR"));return M&&(E.marriage=M),E}function d(g){return new Map(g.map(function(y){return[r(y.pointer),y]}))}function p(g){return w((0,e.parse)(g))}function w(g){var y=d(n(g,"OBJE")),_=new Set(g.map(function(S){return r(S.pointer)}).filter(function(S){return!!S})),b=n(g,"INDI").map(function(S){return c(S,y,_)}),E=n(g,"FAM").map(function(S){return f(S,_)});return{indis:b,fams:E}}return Ac}var Ih={},q5;function S0e(){if(q5)return Ih;q5=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.HourglassChart=void 0;var e=nP(),t=Ul(),n=Gw(),r=function(){function i(a){this.options=a,this.util=new t.ChartUtil(a)}return i.prototype.render=function(){var a,o,s,u,l=(0,e.getAncestorsTree)(this.options),c=this.util.layOutChart(l,{flipVertically:!0}),f=(0,n.layOutDescendants)(this.options);((a=c[0].data.indi)===null||a===void 0?void 0:a.expander)!==void 0&&(f[0].data.indi.expander=(o=c[0].data.indi)===null||o===void 0?void 0:o.expander),((s=c[0].data.spouse)===null||s===void 0?void 0:s.expander)!==void 0&&(f[0].data.spouse.expander=(u=c[0].data.spouse)===null||u===void 0?void 0:u.expander);var d=c.slice(1).concat(f),p=this.util.renderChart(d),w=(0,t.getChartInfo)(d);return this.util.updateSvgDimensions(w),Object.assign(w,{animationPromise:p})},i}();return Ih.HourglassChart=r,Ih}var Nh={},Lu={},ks={},G5;function QU(){if(G5)return ks;G5=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.LinkType=ks.ChildNodes=void 0,ks.otherSideLinkType=n;var e=function(){function r(i){i===void 0&&(i={}),this.indiParents=[],this.indiSiblings=[],this.spouseParents=[],this.spouseSiblings=[],this.children=[],Object.assign(this,i)}return r.prototype.get=function(i){switch(i){case t.IndiParents:return this.indiParents;case t.IndiSiblings:return this.indiSiblings;case t.SpouseParents:return this.spouseParents;case t.SpouseSiblings:return this.spouseSiblings;case t.Children:return this.children}},r.prototype.getAll=function(){return[].concat(this.indiSiblings,this.indiParents,this.children,this.spouseParents,this.spouseSiblings)},r.EMPTY=new r,r}();ks.ChildNodes=e;var t;(function(r){r[r.IndiParents=0]="IndiParents",r[r.IndiSiblings=1]="IndiSiblings",r[r.SpouseParents=2]="SpouseParents",r[r.SpouseSiblings=3]="SpouseSiblings",r[r.Children=4]="Children"})(t||(ks.LinkType=t={}));function n(r){switch(r){case t.IndiParents:return t.Children;case t.IndiSiblings:return t.IndiSiblings;case t.SpouseParents:return t.Children;case t.SpouseSiblings:return t.IndiSiblings;case t.Children:return t.IndiParents}}return ks}var Bu={},W5;function KU(){if(W5)return Bu;W5=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.nonEmpty=e,Bu.last=t,Bu.zip=n,Bu.points2pathd=r;function e(i){return!!(i&&i.length)}function t(i){return i[i.length-1]}function n(i,a){return i.map(function(o,s){return[o,a[s]]})}function r(i){for(var a="M ".concat(i[0].x," ").concat(i[0].y," L"),o=0,s=i.slice(1);o1&&this.renderRootDummyAdditionalMarriageLinkStub(_[0]);var S=(0,r.getChartInfo)(b);return this.util.updateSvgDimensions(S),Object.assign(S,{animationPromise:E})},d.prototype.renderLinks=function(p){var w=this,g=this.util.getSvgForRendering().select("g"),y=function(v){return v.data.id},_=g.selectAll("path.internode-link").data(p.filter(function(v){return!!v.parent}),y);_.enter().insert("path","g").attr("class",function(v){return w.cssClassForLink(v)}).merge(_).attr("d",function(v){var C=v.data.primaryMarriage?w.additionalMarriageLinkPoints(v):w.linkPoints(v.parent,v,v.data.linkFromParentType);return(0,i.points2pathd)(C)}),_.exit().remove();var b=g.selectAll("g.link-stubs").data(p.filter(function(v){return v.data.duplicateOf||v.data.duplicated||v.data.primaryMarriage}),y),E=b.enter().insert("g","g").attr("class","link-stubs");b.exit().remove();var S=E.merge(b).selectAll("g").data(function(v){return w.nodeToLinkStubRenderInfos(v)},function(v){return v.linkType.toString()});S.enter().append("g").call(function(v){return v.append("path").attr("class",function(C){return w.cssClassForLinkStub(C.linkType)}).merge(S.select("path.link-stub")).attr("d",function(C){return(0,i.points2pathd)(C.points)})}).call(function(v){return v.append("circle").attr("r",c).style("stroke","black").style("fill","none").merge(S.select("circle")).attr("transform",function(C){return"translate(".concat((0,i.last)(C.points).x,", ").concat((0,i.last)(C.points).y+c*C.treeDir,")")})}),S.exit().remove()},d.prototype.cssClassForLink=function(p){return p.data.primaryMarriage?"link internode-link additional-marriage":"link internode-link "+this.cssClassForLinkType(p.data.linkFromParentType)},d.prototype.cssClassForLinkStub=function(p){return"link link-stub "+this.cssClassForLinkType(p)},d.prototype.cssClassForLinkType=function(p){switch(p){case n.LinkType.IndiParents:case n.LinkType.SpouseParents:return"parents-link";case n.LinkType.IndiSiblings:case n.LinkType.SpouseSiblings:return"siblings-link";case n.LinkType.Children:return"children-link"}},d.prototype.nodeToLinkStubRenderInfos=function(p){var w=this;return p.data.linkStubs.map(function(g){var y=p.yy)return[-1,-1];if(_.miny)return[1,-1]}else if((w.indiParents.length||w.indiSiblings.length)&&(w.spouseParents.length||w.spouseSiblings.length)){var g=this.linkAnchorPoints(p,n.LinkType.IndiParents,!0)[0].x,b=this.findMinXOfChildNodesAnchors(p,w.spouseSiblings.concat(w.spouseParents));if(bw.y,_=this.linkAnchorPoints(p,g,y),b=this.linkAnchorPoints(w,(0,n.otherSideLinkType)(g),!y).reverse(),E=this.getLinkY(p,g);return e(e(e([],_,!0),[{x:_[_.length-1].x,y:E},{x:b[0].x,y:E}],!1),b,!0)},d.prototype.additionalMarriageLinkPoints=function(p){var w=p.parent.children.findIndex(function(_){return _.data.id===p.data.id}),g=p.parent.children[w-1],y=this.indiMidY(p);return[{x:g.x,y},{x:p.x,y}]},d.prototype.linkAnchorPoints=function(p,w,g){var y=[p.x,p.y],_=y[0],b=y[1],E=[p.data.width,p.data.height],S=E[0],v=E[1],C=_-S/2,A=_+S/2,M=[p.data.indi,p.data.spouse,p.data.family].map(function(B){return B?B.width:0}),R=M[0],N=M[1],P=M[2],z=R+N,V=_-S/2+(P>z?(P-z)/2:0),F=V+z,$=this.indiMidY(p)+s*(g?-1:1);switch(w){case n.LinkType.IndiParents:return[{x:V+o,y:b-v/2}];case n.LinkType.SpouseParents:return[{x:F-o,y:b-v/2}];case n.LinkType.IndiSiblings:return[{x:V,y:$},{x:(P>z&&!g?C:V)-u,y:$}];case n.LinkType.SpouseSiblings:return[{x:F,y:$},{x:(P>z&&!g?A:F)+u,y:$}];case n.LinkType.Children:return[{x:V+(p.data.spouse?R:R/2),y:b}]}},d.prototype.indiMidY=function(p){return p.y-p.data.height/2+p.data.indi.height/2},d.prototype.renderRootDummyAdditionalMarriageLinkStub=function(p){var w=this.util.getSvgForRendering().select("g"),g=this.indiMidY(p),y=p.data.width/2+20,_=3;w.selectAll(".root-dummy-additional-marriage").remove(),w.insert("g","g").attr("class","root-dummy-additional-marriage").call(function(b){return b.append("path").attr("d","M 0 ".concat(g," L ").concat(y," ").concat(g)).attr("class","link additional-marriage")}).call(function(b){return b.append("circle").attr("transform","translate(".concat(y+_,", ").concat(g,")")).attr("r",_).style("stroke","black").style("fill","black")})},d}();return Lu.KinshipChartRenderer=f,Lu}var As={},Oh={},Y5;function k0e(){if(Y5)return Oh;Y5=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.HierarchyFilter=void 0;var e=function(){function t(n){n===void 0&&(n={}),this.indiParents=!0,this.indiSiblings=!0,this.spouseParents=!0,this.spouseSiblings=!0,this.children=!0,this.modify(n)}return t.allAccepting=function(){return new t},t.allRejecting=function(){return new t().modify({indiParents:!1,indiSiblings:!1,spouseParents:!1,spouseSiblings:!1,children:!1})},t.prototype.modify=function(n){return Object.assign(this,n),this},t}();return Oh.HierarchyFilter=e,Oh}var Q5;function A0e(){if(Q5)return As;Q5=1,Object.defineProperty(As,"__esModule",{value:!0}),As.EntryId=As.HierarchyCreator=void 0,As.getRootsCount=s;var e=QU(),t=tP,n=k0e(),r=qw(),i=KU(),a=function(){function u(l,c){var f;this.data=l,this.queuedNodesById=new Map,this.idGenerator=new r.IdGenerator,f=this.expandStartId(c),this.startEntryId=f[0],this.startFamIndi=f[1]}return u.createHierarchy=function(l,c){return new u(l,c).createHierarchy()},u.prototype.expandStartId=function(l){if(l.isFam)return[l,null];var c=this.data.getIndi(l.id);if(!c)throw new Error("Invalid startId");var f=c.getFamiliesAsSpouse();return f.length?[o.fam(f[0]),l.id]:[l,null]},u.prototype.createHierarchy=function(){var l=this.idToNode(this.startEntryId,null,null,!1),c=this.idToNode(this.startEntryId,null,null,!1);if(!l||!c)throw new Error("Invalid root node");this.startFamIndi&&(l.indi={id:this.startFamIndi},c.indi={id:this.startFamIndi});for(var f=[l,c];f.length;){var d=f.shift(),p=d===l?u.UP_FILTER:d===c?u.DOWN_FILTER:u.ALL_ACCEPTING_FILTER;this.fillNodeData(d,p);for(var w=0,g=d.childNodes.getAll();w1]:[!1,!1]},u.prototype.getParentsAndSiblings=function(l){var c=l&&l.getFamilyAsChild(),f=this.data.getFam(c);if(!f)return[[],[]];var d=this.data.getIndi(f.getFather()),p=this.data.getIndi(f.getMother()),w=[].concat(d?d.getFamiliesAsSpouse():[],p?p.getFamiliesAsSpouse():[]).filter(function(y){return y!==c});w.unshift(c);var g=Array.from(f.getChildren());return g.splice(g.indexOf(l.getId()),1),[w,g]},u.prototype.indiIdsToFamAsSpouseNodes=function(l,c,f){var d=this;return l.flatMap(function(p){return d.indiIdToFamAsSpouseNodes(p,c,f)})},u.prototype.indiIdToFamAsSpouseNodes=function(l,c,f){var d=this;if(this.isChildNodeTypeForbidden(f,c))return[];var p=this.data.getIndi(l).getFamiliesAsSpouse();if(!p.length){var w=this.idToNode(o.indi(l),c,f);return w?[w]:[]}var g=p.map(function(y){return{id:y,indi:{id:l},family:{id:y},parentNode:c,linkFromParentType:f,childNodes:e.ChildNodes.EMPTY,linkStubs:[]}});return g.forEach(function(y,_){_!==0&&(y.primaryMarriage=g[0]);var b=d.queuedNodesById.get(y.id);b?(y.duplicateOf=b,b.duplicated=!0):d.queuedNodesById.set(y.id,y)}),g},u.prototype.famAsSpouseIdsToNodes=function(l,c,f){var d=this.idsToNodes(l.map(o.fam),c,f);return d.slice(1).forEach(function(p){return p.primaryMarriage=d[0]}),d},u.prototype.idsToNodes=function(l,c,f,d){var p=this;return d===void 0&&(d=!0),l.map(function(w){return p.idToNode(w,c,f,d)}).filter(function(w){return w!=null})},u.prototype.idToNode=function(l,c,f,d){if(d===void 0&&(d=!0),this.isChildNodeTypeForbidden(f,c))return null;var p=l.id,w=l.isFam;if(w){var g=this.data.getFam(p);if(!g||!g.getFather()&&!g.getMother())return null}var y=this.queuedNodesById.get(p),_={id:p,parentNode:c,linkFromParentType:f,childNodes:e.ChildNodes.EMPTY,linkStubs:[]};return w&&(_.family={id:p}),d&&y&&(_.duplicateOf=y,y.duplicated=!0),y||this.queuedNodesById.set(p,_),_},u.prototype.createLinkStubs=function(l){var c=this;if(!this.isFamNode(l)||!l.duplicateOf&&!l.duplicated&&!l.primaryMarriage)return[];var f=this.data.getFam(l.family.id),d=this.areParentsAndSiblingsPresent(l.indi?l.indi.id:null),p=d[0],w=d[1],g=this.areParentsAndSiblingsPresent(l.spouse?l.spouse.id:null),y=g[0],_=g[1],b=(0,i.nonEmpty)(f.getChildren());return[p?[e.LinkType.IndiParents]:[],w?[e.LinkType.IndiSiblings]:[],y?[e.LinkType.SpouseParents]:[],_?[e.LinkType.SpouseSiblings]:[],b?[e.LinkType.Children]:[]].flat().filter(function(E){return!c.isChildNodeTypeForbidden(E,l)&&!l.childNodes.get(E).length})},u.prototype.isChildNodeTypeForbidden=function(l,c){if(l===null||!c)return!1;switch((0,e.otherSideLinkType)(c.linkFromParentType)){case e.LinkType.IndiParents:case e.LinkType.IndiSiblings:if(l===e.LinkType.IndiParents||l===e.LinkType.IndiSiblings)return!0;break;case e.LinkType.Children:if(!c.primaryMarriage&&l===e.LinkType.Children)return!0;break}if(c.primaryMarriage){var f=c.indi.id,d=c.spouse.id,p=c.primaryMarriage.indi.id,w=c.primaryMarriage.spouse.id;if(f===p||f===w){if(l===e.LinkType.IndiParents||l===e.LinkType.IndiSiblings)return!0}else if((d===p||d===w)&&(l===e.LinkType.SpouseParents||l===e.LinkType.SpouseSiblings))return!0}return!1},u.prototype.isFamNode=function(l){return!!l.family},u.UP_FILTER=n.HierarchyFilter.allRejecting().modify({indiParents:!0,spouseParents:!0,indiSiblings:!0,spouseSiblings:!0}),u.DOWN_FILTER=n.HierarchyFilter.allRejecting().modify({children:!0}),u.ALL_ACCEPTING_FILTER=n.HierarchyFilter.allAccepting(),u}();As.HierarchyCreator=a;var o=function(){function u(l,c){if(!l&&!c)throw new Error("Invalid EntryId");this.id=l||c,this.isFam=!!c}return u.indi=function(l){return new u(l,null)},u.fam=function(l){return new u(null,l)},u}();As.EntryId=o;function s(u,l){var c=u.data.indi&&l.getIndi(u.data.indi.id),f=u.data.spouse&&l.getIndi(u.data.spouse.id);return(c?c.getFamiliesAsSpouse().length:0)+(f?f.getFamiliesAsSpouse().length-1:0)}return As}var K5;function T0e(){if(K5)return Nh;K5=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.KinshipChart=void 0;var e=C0e(),t=A0e(),n=function(){function i(a){this.options=a,this.renderer=new e.KinshipChartRenderer(this.options)}return i.prototype.render=function(){var a=this,o=t.HierarchyCreator.createHierarchy(this.options.data,new t.EntryId(this.options.startIndi||null,this.options.startFam||null)),s=this.renderer.layOut(o.upRoot,o.downRoot),u=s[0],l=s[1];return u.concat(l).forEach(function(c){a.setChildNodesGenerationNumber(c)}),this.renderer.render(u,l,(0,t.getRootsCount)(o.upRoot,this.options.data))},i.prototype.setChildNodesGenerationNumber=function(a){var o=this.getChildNodesByType(a),s=function(u,l){return u.forEach(function(c){return c.data.generation=a.data.generation+l})};s(o.indiParents,-1),s(o.indiSiblings,0),s(o.spouseParents,-1),s(o.spouseSiblings,0),s(o.children,1)},i.prototype.getChildNodesByType=function(a){if(!a||!a.children)return r;var o=new Map(a.children.map(function(l){return[l.data.id,l]})),s=function(l){return o.get(l.id)},u=a.data.childNodes;return{indiParents:u.indiParents.map(s),indiSiblings:u.indiSiblings.map(s),spouseParents:u.spouseParents.map(s),spouseSiblings:u.spouseSiblings.map(s),children:u.children.map(s)}},i}();Nh.KinshipChart=n;var r={indiParents:[],indiSiblings:[],spouseParents:[],spouseSiblings:[],children:[]};return Nh}var yo={},X5;function M0e(){if(X5)return yo;X5=1;var e=yo&&yo.__assign||function(){return e=Object.assign||function(c){for(var f,d=1,p=arguments.length;db.length)&&(E=b.length);for(var S=0,v=new Array(E);S=0)&&Object.prototype.propertyIsEnumerable.call(_,S)&&(E[S]=_[S])}return E}function a(_,b){if(_==null)return{};var E={},S=Object.keys(_),v,C;for(C=0;C=0)&&(E[v]=_[v]);return E}function o(_){return c(_)||l(_)||u(_)||s()}function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(_,b){if(_){if(typeof _=="string")return f(_,b);var E=Object.prototype.toString.call(_).slice(8,-1);if(E==="Object"&&_.constructor&&(E=_.constructor.name),E==="Map"||E==="Set")return Array.from(_);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return f(_,b)}}function l(_){if(typeof Symbol<"u"&&_[Symbol.iterator]!=null||_["@@iterator"]!=null)return Array.from(_)}function c(_){if(Array.isArray(_))return f(_)}function f(_,b){(b==null||b>_.length)&&(b=_.length);for(var E=0,S=new Array(b);EP.length)&&(z=P.length);for(var V=0,F=new Array(z);V=0)&&Object.prototype.propertyIsEnumerable.call(P,F)&&(V[F]=P[F])}return V}function w(P,z){if(P==null)return{};var V={},F=Object.keys(P),$,B;for(B=0;B=0)&&(V[$]=P[$]);return V}function g(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function y(P,z){for(var V=0;V0&&arguments[0]!==void 0?arguments[0]:{},De=Ie.onlyMatch,ot;if(ge.interaction)ot=(0,i.createClassName)("interaction",ge.interaction);else{if(ge.at){var Ye=$.breakpoints.largestBreakpoint;if(ge.at===Ye){var Oe=null;try{var ft=ce._reactInternalFiber._debugOwner.type;Oe=ft.displayName||ft.name}catch{}console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `` to account for future ')+"breakpoint definitions outside of this range.".concat(Oe?" It is being used in the ".concat(Oe," component."):""))}}var Nt=(0,i.propKey)(be),ht=be[Nt];ot=(0,i.createClassName)(Nt,ht)}var bt=!fe.hasParentMedia||(0,i.intersection)($.breakpoints.toVisibleAtBreakpointSet(fe.breakpointProps),$.breakpoints.toVisibleAtBreakpointSet(be)).length>0,kt=bt&&(De===void 0||$.shouldRenderMediaQuery(d({},be,{interaction:me}),De));return ge.children instanceof Function?ge.children(ot,kt):t.default.createElement("div",{className:"fresnel-container ".concat(ot," ").concat(_e),style:xe,suppressHydrationWarning:!kt},kt?ge.children:null)}))})}}]),H}(t.default.Component),A(z,"defaultProps",{className:"",style:{}}),A(z,"contextType",K),V);return{Media:W,MediaContextProvider:L,createMediaStyle:$.toStyle,SortedBreakpoints:o($.breakpoints.sortedBreakpoints),findBreakpointAtWidth:$.breakpoints.findBreakpointAtWidth,findBreakpointsForWidths:$.breakpoints.findBreakpointsForWidths,valuesWithBreakpointProps:$.breakpoints.valuesWithBreakpointProps}}var R=r.MediaQueries.validKeys();function N(P){var z=Object.keys(P).filter(function(V){return R.includes(V)});if(z.length<1)throw new Error("1 of ".concat(R.join(", ")," is required."));if(z.length>1)throw new Error("Only 1 of ".concat(z.join(", ")," is allowed at a time."))}return dv}var sD;function nve(){return sD||(sD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createMedia",{enumerable:!0,get:function(){return t.createMedia}}),Object.defineProperty(e,"BreakpointKey",{enumerable:!0,get:function(){return n.BreakpointConstraint}});var t=tve(),n=mj()}(m2)),m2}var rve=nve();const gj=rve.createMedia({breakpoints:{small:320,large:768}}),ive=gj.createMediaStyle(),{Media:Qc,MediaContextProvider:ave}=gj;function vj(e){const t=ee.useRef(void 0);return ee.useEffect(()=>{t.current=e}),t.current}const uD=1.3;function ove(e,t){const n=dn("#svgContainer").node(),r=t.transform.k,i=tu([0,(n.clientWidth-e[0]*r)/2]),a=tu([0,(n.clientHeight-e[1]*r)/2]);dn("#chartSvg").attr("width",e[0]*r).attr("height",e[1]*r).attr("transform",`translate(${i}, ${a})`),dn("#chart").attr("transform",`scale(${r})`),n.scrollLeft=-t.transform.x,n.scrollTop=-t.transform.y}function sve(){const e=dn("#svgContainer").node(),t=e.scrollLeft+e.clientWidth/2,n=e.scrollTop+e.clientHeight/2,r=zw(e).k;dn(e).call(PU().translateTo,t/r,n/r)}function uve(e){const t=new FileReader;return t.readAsDataURL(e),new Promise((n,r)=>{t.onload=i=>n(i.target.result)})}async function lve(e){const t=e.href.baseVal;if(t)try{const r=await(await fetch(t)).blob(),i=await uve(r);e.href.baseVal=i}catch(n){console.warn("Failed to load image:",n)}}async function cve(e){const t=Array.from(e.getElementsByTagName("image"));await Promise.all(t.map(lve))}function fve(e){const t=new Image;return t.src=URL.createObjectURL(e),new Promise((n,r)=>{t.addEventListener("load",()=>n(t))})}function dve(e){const t=document.createElement("canvas");t.width=e.width*2,t.height=e.height*2;const n=t.getContext("2d"),r=n.fillStyle;return n.fillStyle="white",n.fillRect(0,0,t.width,t.height),n.fillStyle=r,n.drawImage(e,0,0,t.width,t.height),t}function hve(e,t){return new Promise((n,r)=>{e.toBlob(i=>{i?n(i):r()},t)})}function yj(){const e=document.getElementById("chartSvg").cloneNode(!0);e.removeAttribute("transform");const t=dn("#svgContainer").node(),n=zw(t).k;return e.setAttribute("width",String(Number(e.getAttribute("width"))/n)),e.setAttribute("height",String(Number(e.getAttribute("height"))/n)),e.querySelector("#chart").removeAttribute("transform"),e}function pve(){const e=document.getElementById("chartSvg");return{width:Number(e.getAttribute("width")),height:Number(e.getAttribute("height"))}}function mve(){return new XMLSerializer().serializeToString(yj())}async function oP(){const e=yj(),n=document.createElementNS("http://www.w3.org/2000/svg","rect");return n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("fill","white"),e.prepend(n),await cve(e),new XMLSerializer().serializeToString(e)}function gve(){const e=document.createElement("iframe");e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.onload=()=>{e.contentDocument.open(),e.contentDocument.write(mve()),e.contentDocument.close(),setTimeout(()=>{e.contentWindow.focus(),e.contentWindow.print(),e.parentNode.removeChild(e)},500)},document.body.appendChild(e)}async function vve(){const e=await oP(),t=new Blob([e],{type:"image/svg+xml"});RU.saveAs(t,"topola.svg")}async function yve(){const e=await oP(),t=new Blob([e],{type:"image/svg+xml"});return dve(await fve(t))}async function wve(){const e=await yve(),t=await hve(e,"image/png");RU.saveAs(t,"topola.png")}async function _ve(){const{default:e}=await Xce(async()=>{const{default:a}=await import("./jspdf.es.min-CmktHkKZ.js");return{default:a}},[],import.meta.url),{width:t,height:n}=pve(),r=new e({orientation:t>n?"l":"p",unit:"pt",format:[t,n]}),i=await oP();await r.addSvgAsImage(i,0,0,t,n),r.save("topola.pdf")}var Os=(e=>(e[e.Hourglass=0]="Hourglass",e[e.Relatives=1]="Relatives",e[e.Donatso=2]="Donatso",e[e.Fancy=3]="Fancy",e))(Os||{});const bve=new Map([[_y.NO_COLOR,Ln.ChartColors.NO_COLOR],[_y.COLOR_BY_GENERATION,Ln.ChartColors.COLOR_BY_GENERATION],[_y.COLOR_BY_SEX,Ln.ChartColors.COLOR_BY_SEX]]);function xve(e){switch(e){case 0:return Ln.HourglassChart;case 1:return Ln.RelativesChart;case 3:return Ln.FancyChart;default:return Ln.HourglassChart}}function Eve(e){switch(e){case 3:return Ln.CircleRenderer;default:return Ln.DetailedRenderer}}function Sve(e,t=20){const n=e;return[n.clientWidth-t,n.clientHeight-t]}function Cve(e,t,n){const[r,i]=Sve(e),a=vm([1,t,r/n.size[0],i/n.size[1]]);return[tu([.1,a]),2]}let kve=class{constructor(){this.animating=!1,this.rerenderRequired=!1}zoom(t){const n=dn("#svgContainer");this.zoomBehavior.scaleBy(n,t)}renderChart(t,n,r={initialRender:!1,resetPosition:!1}){if(!r.initialRender&&this.animating){this.rerenderRequired=!0,this.rerenderProps=t,this.rerenderResetPosition=r.resetPosition;return}if(!r.initialRender&&t.freezeAnimation)return;r.initialRender?(dn("#chart").node().innerHTML="",this.chart=Ln.createChart({json:t.data,chartType:xve(t.chartType),renderer:Eve(t.chartType),svgSelector:"#chart",indiCallback:_=>t.onSelection(_),colors:bve.get(t.colors),animate:!0,updateSvgSize:!1,locale:n.locale})):this.chart.setData(t.data);const i=this.chart.render({startIndi:t.selection.id,baseGeneration:t.selection.generation}),a=dn("#chartSvg"),o=dn("#svgContainer").node(),s=zw(o).k,u=Cve(o,s,i);this.zoomBehavior=PU().scaleExtent(u).translateExtent([[0,0],i.size]).on("zoom",_=>ove(i.size,_)),dn(o).on("scroll",sve).call(this.zoomBehavior);const l=_=>()=>{const b=ya(o.scrollTop,_);return E=>{o.scrollTop=b(E)}},c=_=>()=>{const b=ya(o.scrollLeft,_);return E=>{o.scrollLeft=b(E)}},f=o.clientWidth/2-i.origin[0]*s,d=o.clientHeight/2-i.origin[1]*s,p=tu([0,(o.clientWidth-i.size[0]*s)/2]),w=tu([0,(o.clientHeight-i.size[1]*s)/2]),g=a.transition().delay(200).duration(500),y=r.initialRender?a:g;y.attr("transform",`translate(${p}, ${w})`),y.attr("width",i.size[0]*s),y.attr("height",i.size[1]*s),r.resetPosition&&(r.initialRender?(o.scrollLeft=-f,o.scrollTop=-d):g.tween("scrollLeft",c(-f)).tween("scrollTop",l(-d))),this.animating=!0,i.animationPromise.then(()=>{this.animating=!1,this.rerenderRequired&&(this.rerenderRequired=!1,this.renderChart(this.rerenderProps,n,{initialRender:!1,resetPosition:!!this.rerenderResetPosition}))})}};function Ave(e){const t=ee.useRef(new kve),n=vj(e),r=ai();return ee.useEffect(()=>{if(n){const i=e.chartType!==(n==null?void 0:n.chartType)||e.colors!==(n==null?void 0:n.colors)||e.hideIds!==(n==null?void 0:n.hideIds)||e.hideSex!==(n==null?void 0:n.hideSex),a=e.chartType!==(n==null?void 0:n.chartType)||e.data!==n.data||e.selection!==n.selection;t.current.renderChart(e,r,{initialRender:i,resetPosition:a})}else t.current.renderChart(e,r,{initialRender:!0,resetPosition:!0})}),U.jsxs("div",{id:"svgContainer",children:[U.jsxs(Qc,{greaterThanOrEqual:"large",className:"zoom",children:[U.jsx("button",{className:"zoom-in",onClick:()=>t.current.zoom(uD),children:"+"}),U.jsx("button",{className:"zoom-out",onClick:()=>t.current.zoom(1/uD),children:"−"})]}),U.jsx("svg",{id:"chartSvg",children:U.jsx("g",{id:"chart"})})]})}var Zn=(e=>(e[e.UPLOADED=0]="UPLOADED",e[e.GEDCOM_URL=1]="GEDCOM_URL",e[e.WIKITREE=2]="WIKITREE",e[e.EMBEDDED=3]="EMBEDDED",e))(Zn||{});function Fn(e,t){window.gtag("event",e,t)}var g2={},$h={},lD;function Tve(){if(lD)return $h;lD=1,$h.byteLength=s,$h.toByteArray=l,$h.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=w);var y=g===w?0:4-g%4;return[g,y]}function s(p){var w=o(p),g=w[0],y=w[1];return(g+y)*3/4-y}function u(p,w,g){return(w+g)*3/4-g}function l(p){var w,g=o(p),y=g[0],_=g[1],b=new n(u(p,y,_)),E=0,S=_>0?y-4:y,v;for(v=0;v>16&255,b[E++]=w>>8&255,b[E++]=w&255;return _===2&&(w=t[p.charCodeAt(v)]<<2|t[p.charCodeAt(v+1)]>>4,b[E++]=w&255),_===1&&(w=t[p.charCodeAt(v)]<<10|t[p.charCodeAt(v+1)]<<4|t[p.charCodeAt(v+2)]>>2,b[E++]=w>>8&255,b[E++]=w&255),b}function c(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,w,g){for(var y,_=[],b=w;bS?S:E+b));return y===1?(w=p[g-1],_.push(e[w>>2]+e[w<<4&63]+"==")):y===2&&(w=(p[g-2]<<8)+p[g-1],_.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),_.join("")}return $h}var pv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var cD;function Mve(){return cD||(cD=1,pv.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,u=(1<>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=o*256+e[t+f],f+=d,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-l}return(p?-1:1)*o*Math.pow(2,a-r)},pv.write=function(e,t,n,r,i,a){var o,s,u,l=a*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,w=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=s&255,p+=w,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=w,o/=256,l-=8);e[n+p-w]|=g*128}),pv}/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(P,z){if(P){if(typeof P=="string")return f(P,z);var V=Object.prototype.toString.call(P).slice(8,-1);if(V==="Object"&&P.constructor&&(V=P.constructor.name),V==="Map"||V==="Set")return Array.from(P);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return f(P,z)}}function l(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}function c(P){if(Array.isArray(P))return f(P)}function f(P,z){(z==null||z>P.length)&&(z=P.length);for(var V=0,F=new Array(z);V=0)&&Object.prototype.propertyIsEnumerable.call(P,F)&&(V[F]=P[F])}return V}function w(P,z){if(P==null)return{};var V={},F=Object.keys(P),$,B;for(B=0;B=0)&&(V[$]=P[$]);return V}function g(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function y(P,z){for(var V=0;V0&&arguments[0]!==void 0?arguments[0]:{},De=Ie.onlyMatch,ot;if(ge.interaction)ot=(0,i.createClassName)("interaction",ge.interaction);else{if(ge.at){var Ye=$.breakpoints.largestBreakpoint;if(ge.at===Ye){var Oe=null;try{var ft=ce._reactInternalFiber._debugOwner.type;Oe=ft.displayName||ft.name}catch{}console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `` to account for future ')+"breakpoint definitions outside of this range.".concat(Oe?" It is being used in the ".concat(Oe," component."):""))}}var Nt=(0,i.propKey)(be),ht=be[Nt];ot=(0,i.createClassName)(Nt,ht)}var bt=!fe.hasParentMedia||(0,i.intersection)($.breakpoints.toVisibleAtBreakpointSet(fe.breakpointProps),$.breakpoints.toVisibleAtBreakpointSet(be)).length>0,kt=bt&&(De===void 0||$.shouldRenderMediaQuery(d({},be,{interaction:me}),De));return ge.children instanceof Function?ge.children(ot,kt):t.default.createElement("div",{className:"fresnel-container ".concat(ot," ").concat(_e),style:xe,suppressHydrationWarning:!kt},kt?ge.children:null)}))})}}]),H}(t.default.Component),A(z,"defaultProps",{className:"",style:{}}),A(z,"contextType",K),V);return{Media:W,MediaContextProvider:L,createMediaStyle:$.toStyle,SortedBreakpoints:o($.breakpoints.sortedBreakpoints),findBreakpointAtWidth:$.breakpoints.findBreakpointAtWidth,findBreakpointsForWidths:$.breakpoints.findBreakpointsForWidths,valuesWithBreakpointProps:$.breakpoints.valuesWithBreakpointProps}}var R=r.MediaQueries.validKeys();function N(P){var z=Object.keys(P).filter(function(V){return R.includes(V)});if(z.length<1)throw new Error("1 of ".concat(R.join(", ")," is required."));if(z.length>1)throw new Error("Only 1 of ".concat(z.join(", ")," is allowed at a time."))}return dv}var sD;function nve(){return sD||(sD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createMedia",{enumerable:!0,get:function(){return t.createMedia}}),Object.defineProperty(e,"BreakpointKey",{enumerable:!0,get:function(){return n.BreakpointConstraint}});var t=tve(),n=mj()}(m2)),m2}var rve=nve();const gj=rve.createMedia({breakpoints:{small:320,large:768}}),ive=gj.createMediaStyle(),{Media:Qc,MediaContextProvider:ave}=gj;function vj(e){const t=ee.useRef(void 0);return ee.useEffect(()=>{t.current=e}),t.current}const uD=1.3;function ove(e,t){const n=dn("#svgContainer").node(),r=t.transform.k,i=tu([0,(n.clientWidth-e[0]*r)/2]),a=tu([0,(n.clientHeight-e[1]*r)/2]);dn("#chartSvg").attr("width",e[0]*r).attr("height",e[1]*r).attr("transform",`translate(${i}, ${a})`),dn("#chart").attr("transform",`scale(${r})`),n.scrollLeft=-t.transform.x,n.scrollTop=-t.transform.y}function sve(){const e=dn("#svgContainer").node(),t=e.scrollLeft+e.clientWidth/2,n=e.scrollTop+e.clientHeight/2,r=zw(e).k;dn(e).call(PU().translateTo,t/r,n/r)}function uve(e){const t=new FileReader;return t.readAsDataURL(e),new Promise((n,r)=>{t.onload=i=>n(i.target.result)})}async function lve(e){const t=e.href.baseVal;if(t)try{const r=await(await fetch(t)).blob(),i=await uve(r);e.href.baseVal=i}catch(n){console.warn("Failed to load image:",n)}}async function cve(e){const t=Array.from(e.getElementsByTagName("image"));await Promise.all(t.map(lve))}function fve(e){const t=new Image;return t.src=URL.createObjectURL(e),new Promise((n,r)=>{t.addEventListener("load",()=>n(t))})}function dve(e){const t=document.createElement("canvas");t.width=e.width*2,t.height=e.height*2;const n=t.getContext("2d"),r=n.fillStyle;return n.fillStyle="white",n.fillRect(0,0,t.width,t.height),n.fillStyle=r,n.drawImage(e,0,0,t.width,t.height),t}function hve(e,t){return new Promise((n,r)=>{e.toBlob(i=>{i?n(i):r()},t)})}function yj(){const e=document.getElementById("chartSvg").cloneNode(!0);e.removeAttribute("transform");const t=dn("#svgContainer").node(),n=zw(t).k;return e.setAttribute("width",String(Number(e.getAttribute("width"))/n)),e.setAttribute("height",String(Number(e.getAttribute("height"))/n)),e.querySelector("#chart").removeAttribute("transform"),e}function pve(){const e=document.getElementById("chartSvg");return{width:Number(e.getAttribute("width")),height:Number(e.getAttribute("height"))}}function mve(){return new XMLSerializer().serializeToString(yj())}async function oP(){const e=yj(),n=document.createElementNS("http://www.w3.org/2000/svg","rect");return n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("fill","white"),e.prepend(n),await cve(e),new XMLSerializer().serializeToString(e)}function gve(){const e=document.createElement("iframe");e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.onload=()=>{e.contentDocument.open(),e.contentDocument.write(mve()),e.contentDocument.close(),setTimeout(()=>{e.contentWindow.focus(),e.contentWindow.print(),e.parentNode.removeChild(e)},500)},document.body.appendChild(e)}async function vve(){const e=await oP(),t=new Blob([e],{type:"image/svg+xml"});RU.saveAs(t,"topola.svg")}async function yve(){const e=await oP(),t=new Blob([e],{type:"image/svg+xml"});return dve(await fve(t))}async function wve(){const e=await yve(),t=await hve(e,"image/png");RU.saveAs(t,"topola.png")}async function _ve(){const{default:e}=await Xce(async()=>{const{default:a}=await import("./jspdf.es.min-5sX0Ok-m.js");return{default:a}},[],import.meta.url),{width:t,height:n}=pve(),r=new e({orientation:t>n?"l":"p",unit:"pt",format:[t,n]}),i=await oP();await r.addSvgAsImage(i,0,0,t,n),r.save("topola.pdf")}var Os=(e=>(e[e.Hourglass=0]="Hourglass",e[e.Relatives=1]="Relatives",e[e.Donatso=2]="Donatso",e[e.Fancy=3]="Fancy",e))(Os||{});const bve=new Map([[_y.NO_COLOR,Ln.ChartColors.NO_COLOR],[_y.COLOR_BY_GENERATION,Ln.ChartColors.COLOR_BY_GENERATION],[_y.COLOR_BY_SEX,Ln.ChartColors.COLOR_BY_SEX]]);function xve(e){switch(e){case 0:return Ln.HourglassChart;case 1:return Ln.RelativesChart;case 3:return Ln.FancyChart;default:return Ln.HourglassChart}}function Eve(e){switch(e){case 3:return Ln.CircleRenderer;default:return Ln.DetailedRenderer}}function Sve(e,t=20){const n=e;return[n.clientWidth-t,n.clientHeight-t]}function Cve(e,t,n){const[r,i]=Sve(e),a=vm([1,t,r/n.size[0],i/n.size[1]]);return[tu([.1,a]),2]}let kve=class{constructor(){this.animating=!1,this.rerenderRequired=!1}zoom(t){const n=dn("#svgContainer");this.zoomBehavior.scaleBy(n,t)}renderChart(t,n,r={initialRender:!1,resetPosition:!1}){if(!r.initialRender&&this.animating){this.rerenderRequired=!0,this.rerenderProps=t,this.rerenderResetPosition=r.resetPosition;return}if(!r.initialRender&&t.freezeAnimation)return;r.initialRender?(dn("#chart").node().innerHTML="",this.chart=Ln.createChart({json:t.data,chartType:xve(t.chartType),renderer:Eve(t.chartType),svgSelector:"#chart",indiCallback:_=>t.onSelection(_),colors:bve.get(t.colors),animate:!0,updateSvgSize:!1,locale:n.locale})):this.chart.setData(t.data);const i=this.chart.render({startIndi:t.selection.id,baseGeneration:t.selection.generation}),a=dn("#chartSvg"),o=dn("#svgContainer").node(),s=zw(o).k,u=Cve(o,s,i);this.zoomBehavior=PU().scaleExtent(u).translateExtent([[0,0],i.size]).on("zoom",_=>ove(i.size,_)),dn(o).on("scroll",sve).call(this.zoomBehavior);const l=_=>()=>{const b=ya(o.scrollTop,_);return E=>{o.scrollTop=b(E)}},c=_=>()=>{const b=ya(o.scrollLeft,_);return E=>{o.scrollLeft=b(E)}},f=o.clientWidth/2-i.origin[0]*s,d=o.clientHeight/2-i.origin[1]*s,p=tu([0,(o.clientWidth-i.size[0]*s)/2]),w=tu([0,(o.clientHeight-i.size[1]*s)/2]),g=a.transition().delay(200).duration(500),y=r.initialRender?a:g;y.attr("transform",`translate(${p}, ${w})`),y.attr("width",i.size[0]*s),y.attr("height",i.size[1]*s),r.resetPosition&&(r.initialRender?(o.scrollLeft=-f,o.scrollTop=-d):g.tween("scrollLeft",c(-f)).tween("scrollTop",l(-d))),this.animating=!0,i.animationPromise.then(()=>{this.animating=!1,this.rerenderRequired&&(this.rerenderRequired=!1,this.renderChart(this.rerenderProps,n,{initialRender:!1,resetPosition:!!this.rerenderResetPosition}))})}};function Ave(e){const t=ee.useRef(new kve),n=vj(e),r=ai();return ee.useEffect(()=>{if(n){const i=e.chartType!==(n==null?void 0:n.chartType)||e.colors!==(n==null?void 0:n.colors)||e.hideIds!==(n==null?void 0:n.hideIds)||e.hideSex!==(n==null?void 0:n.hideSex),a=e.chartType!==(n==null?void 0:n.chartType)||e.data!==n.data||e.selection!==n.selection;t.current.renderChart(e,r,{initialRender:i,resetPosition:a})}else t.current.renderChart(e,r,{initialRender:!0,resetPosition:!0})}),U.jsxs("div",{id:"svgContainer",children:[U.jsxs(Qc,{greaterThanOrEqual:"large",className:"zoom",children:[U.jsx("button",{className:"zoom-in",onClick:()=>t.current.zoom(uD),children:"+"}),U.jsx("button",{className:"zoom-out",onClick:()=>t.current.zoom(1/uD),children:"−"})]}),U.jsx("svg",{id:"chartSvg",children:U.jsx("g",{id:"chart"})})]})}var Zn=(e=>(e[e.UPLOADED=0]="UPLOADED",e[e.GEDCOM_URL=1]="GEDCOM_URL",e[e.WIKITREE=2]="WIKITREE",e[e.EMBEDDED=3]="EMBEDDED",e))(Zn||{});function Fn(e,t){window.gtag("event",e,t)}var g2={},$h={},lD;function Tve(){if(lD)return $h;lD=1,$h.byteLength=s,$h.toByteArray=l,$h.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=w);var y=g===w?0:4-g%4;return[g,y]}function s(p){var w=o(p),g=w[0],y=w[1];return(g+y)*3/4-y}function u(p,w,g){return(w+g)*3/4-g}function l(p){var w,g=o(p),y=g[0],_=g[1],b=new n(u(p,y,_)),E=0,S=_>0?y-4:y,v;for(v=0;v>16&255,b[E++]=w>>8&255,b[E++]=w&255;return _===2&&(w=t[p.charCodeAt(v)]<<2|t[p.charCodeAt(v+1)]>>4,b[E++]=w&255),_===1&&(w=t[p.charCodeAt(v)]<<10|t[p.charCodeAt(v+1)]<<4|t[p.charCodeAt(v+2)]>>2,b[E++]=w>>8&255,b[E++]=w&255),b}function c(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,w,g){for(var y,_=[],b=w;bS?S:E+b));return y===1?(w=p[g-1],_.push(e[w>>2]+e[w<<4&63]+"==")):y===2&&(w=(p[g-2]<<8)+p[g-1],_.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),_.join("")}return $h}var pv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var cD;function Mve(){return cD||(cD=1,pv.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,u=(1<>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=o*256+e[t+f],f+=d,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-l}return(p?-1:1)*o*Math.pow(2,a-r)},pv.write=function(e,t,n,r,i,a){var o,s,u,l=a*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,w=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=s&255,p+=w,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=w,o/=256,l-=8);e[n+p-w]|=g*128}),pv}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -733,7 +734,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - Added "Settings" tab in side panel - Added color settings (none, by generation, by sex)`.split("##").slice(1,e+1).map(o=>({date:Date.parse(o.split(` `)[0].trim()),notes:"####"+o})).filter(o=>o.date>0).map(o=>o.notes).join(` -`)||"",a=await S$e().use(u6e).use(a$e).use(nDe).process(i);return String(a)}function P$e(){localStorage.setItem(T$e,"2026-03-04 20:12:22 +0100")}const _F=""+new URL("topola-DAj3jHeV.jpg",import.meta.url).href;function QE(e){return U.jsx(cf,{to:{pathname:"/view",search:Ur.stringify(e.params)},children:e.text})}function R$e(e){return(e==null?void 0:e.slice(0,16))||""}function bF(){const[e,t]=ee.useState("");return ee.useEffect(()=>{(async()=>(t(await M$e(1)),P$e()))()}),U.jsxs(U.Fragment,{children:[U.jsx("p",{children:U.jsx(He,{id:"intro.description",defaultMessage:"Topola Genealogy is a genealogy tree viewer that lets you browse the structure of the family."})}),U.jsx("p",{children:U.jsx(He,{id:"intro.instructions",defaultMessage:"Use the OPEN FILE or LOAD FROM URL buttons above to load a GEDCOM file. You can export a GEDCOM file from most of the existing genealogy programs and web sites."})}),U.jsx("h3",{children:U.jsx(He,{id:"intro.examples",defaultMessage:"Examples"})}),U.jsxs("ul",{children:[U.jsxs("li",{children:[U.jsx(QE,{params:{url:"https://chronoplexsoftware.com/myfamilytree/samples/The%20Kennedy%20Family.gdz"},text:"J. F. Kennedy"})," ","(",U.jsx(He,{id:"intro.from",defaultMessage:"from"})," ",U.jsx("a",{href:"https://chronoplexsoftware.com/myfamilytree/samples/",children:"chronoplexsoftware.com"}),")"]}),U.jsxs("li",{children:[U.jsx(QE,{params:{url:"https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged&file=shakespeare.ged"},text:"Shakespeare"})," ","(",U.jsx(He,{id:"intro.from",defaultMessage:"from"})," ",U.jsx("a",{href:"https://webtreeprint.com/tp_famous_gedcoms.php",children:"webtreeprint.com"}),")"]}),U.jsxs("li",{children:[U.jsx(QE,{params:{indi:"Skłodowska-2",source:"wikitree"},text:"Maria Skłodowska-Curie"})," ","(",U.jsx(He,{id:"intro.from",defaultMessage:"from"})," ",U.jsx("a",{href:"https://www.wikitree.com/wiki/Sk%C5%82odowska-2",children:"wikitree.com"}),")"]})]}),U.jsx("h3",{children:U.jsx(He,{id:"intro.whats_new",defaultMessage:"What's new"})}),U.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),U.jsx("a",{href:"https://github.com/PeWu/topola-viewer/blob/master/CHANGELOG.md",children:U.jsx(He,{id:"intro.full_changelog",defaultMessage:"See full changelog"})}),U.jsx("h3",{children:U.jsx(He,{id:"intro.privacy",defaultMessage:"Privacy"})}),U.jsx(He,{id:"intro.privacy_note",defaultMessage:'When using the "load from file" option, this site does not send your data anywhere and files loaded from disk do not leave your computer. When using "load from URL", data is passed through the {link} service to deal with an issue with cross-site file loading in the browser (CORS).',values:{link:U.jsx("a",{href:"https://topolaproxy.bieda.it/",children:"cors-anywhere"})}}),U.jsxs("p",{className:"ui right aligned version",children:["version: ",R$e("2026-03-04 20:12:22 +0100")," (",U.jsx("a",{href:"https://github.com/PeWu/topola-viewer/commit/6088d5d",children:"6088d5d"}),")"]})]})}function I$e(){return U.jsxs("div",{id:"introContent",children:[U.jsx("div",{className:"backgroundImage"}),U.jsxs(xi,{className:"intro",children:[U.jsx(xi.Content,{as:Qc,greaterThanOrEqual:"large",children:U.jsx(xi.Header,{children:U.jsx(He,{id:"intro.title",defaultMessage:"Topola Genealogy Viewer"})})}),U.jsxs(xi.Content,{children:[U.jsx(Zi,{as:Qc,greaterThanOrEqual:"large",children:U.jsxs(Zi.Row,{children:[U.jsx(Zi.Column,{width:5,children:U.jsx(_n,{src:_F,alt:"Topola logo"})}),U.jsx(Zi.Column,{width:11,children:U.jsx(bF,{})})]})}),U.jsxs(Qc,{at:"small",children:[U.jsx(_n,{src:_F,alt:"Topola logo",centered:!0,size:"tiny",className:"blockImage"}),U.jsx(bF,{})]})]})]})]})}var ar=(e=>(e[e.Menu=0]="Menu",e[e.Dropdown=1]="Dropdown",e))(ar||{});function mw(e){const t={...e};return delete t.menuType,U.jsx(U.Fragment,{children:e.menuType===0?U.jsx(on.Item,{...t,children:e.children}):U.jsx(rt.Item,{...t,children:e.children})})}var Yv={exports:{}},xF;function N$e(){if(xF)return Yv.exports;xF=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof r=="boolean"?{immediate:r}:r;let a,o,s,u,l;function c(){const p=a,w=o;return a=void 0,o=void 0,l=t.apply(p,w),l}function f(){const p=Date.now()-u;p=0?s=setTimeout(f,n-p):(s=void 0,i||(l=c()))}const d=function(...p){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,o=p,u=Date.now();const w=i&&!s;return s||(s=setTimeout(f,n)),w&&(l=c()),l};return Object.defineProperty(d,"isPending",{get(){return s!==void 0}}),d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{s&&d.trigger()},d.trigger=()=>{l=c(),d.clear()},d}return Yv.exports.debounce=e,Yv.exports=e,Yv.exports}var O$e=N$e();const D$e=Un(O$e);var KE,EF;function $$e(){return EF||(EF=1,KE=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,o=/^0x[0-9a-f]+$/i,s=/^0/,u=function(E){return e.insensitive&&(""+E).toLowerCase()||""+E},l=u(t).replace(i,"")||"",c=u(n).replace(i,"")||"",f=l.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),d=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=parseInt(l.match(o),16)||f.length!==1&&l.match(a)&&Date.parse(l),w=parseInt(c.match(o),16)||p&&c.match(a)&&Date.parse(c)||null,g,y;if(w){if(pw)return 1}for(var _=0,b=Math.max(f.length,d.length);_y)return 1}return 0}),KE}var F$e=$$e();const L$e=Un(F$e);var XE={exports:{}};/** +`)||"",a=await S$e().use(u6e).use(a$e).use(nDe).process(i);return String(a)}function P$e(){localStorage.setItem(T$e,"2026-03-15 17:12:16 +0100")}const _F=""+new URL("topola-DAj3jHeV.jpg",import.meta.url).href;function QE(e){return U.jsx(cf,{to:{pathname:"/view",search:Ur.stringify(e.params)},children:e.text})}function R$e(e){return(e==null?void 0:e.slice(0,16))||""}function bF(){const[e,t]=ee.useState("");return ee.useEffect(()=>{(async()=>(t(await M$e(1)),P$e()))()}),U.jsxs(U.Fragment,{children:[U.jsx("p",{children:U.jsx(He,{id:"intro.description",defaultMessage:"Topola Genealogy is a genealogy tree viewer that lets you browse the structure of the family."})}),U.jsx("p",{children:U.jsx(He,{id:"intro.instructions",defaultMessage:"Use the OPEN FILE or LOAD FROM URL buttons above to load a GEDCOM file. You can export a GEDCOM file from most of the existing genealogy programs and web sites."})}),U.jsx("h3",{children:U.jsx(He,{id:"intro.examples",defaultMessage:"Examples"})}),U.jsxs("ul",{children:[U.jsxs("li",{children:[U.jsx(QE,{params:{url:"https://chronoplexsoftware.com/myfamilytree/samples/The%20Kennedy%20Family.gdz"},text:"J. F. Kennedy"})," ","(",U.jsx(He,{id:"intro.from",defaultMessage:"from"})," ",U.jsx("a",{href:"https://chronoplexsoftware.com/myfamilytree/samples/",children:"chronoplexsoftware.com"}),")"]}),U.jsxs("li",{children:[U.jsx(QE,{params:{url:"https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged&file=shakespeare.ged"},text:"Shakespeare"})," ","(",U.jsx(He,{id:"intro.from",defaultMessage:"from"})," ",U.jsx("a",{href:"https://webtreeprint.com/tp_famous_gedcoms.php",children:"webtreeprint.com"}),")"]}),U.jsxs("li",{children:[U.jsx(QE,{params:{indi:"Skłodowska-2",source:"wikitree"},text:"Maria Skłodowska-Curie"})," ","(",U.jsx(He,{id:"intro.from",defaultMessage:"from"})," ",U.jsx("a",{href:"https://www.wikitree.com/wiki/Sk%C5%82odowska-2",children:"wikitree.com"}),")"]})]}),U.jsx("h3",{children:U.jsx(He,{id:"intro.whats_new",defaultMessage:"What's new"})}),U.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),U.jsx("a",{href:"https://github.com/PeWu/topola-viewer/blob/master/CHANGELOG.md",children:U.jsx(He,{id:"intro.full_changelog",defaultMessage:"See full changelog"})}),U.jsx("h3",{children:U.jsx(He,{id:"intro.privacy",defaultMessage:"Privacy"})}),U.jsx(He,{id:"intro.privacy_note",defaultMessage:'When using the "load from file" option, this site does not send your data anywhere and files loaded from disk do not leave your computer. When using "load from URL", data is passed through the {link} service to deal with an issue with cross-site file loading in the browser (CORS).',values:{link:U.jsx("a",{href:"https://topolaproxy.bieda.it/",children:"cors-anywhere"})}}),U.jsxs("p",{className:"ui right aligned version",children:["version: ",R$e("2026-03-15 17:12:16 +0100")," (",U.jsx("a",{href:"https://github.com/PeWu/topola-viewer/commit/dd4bc79",children:"dd4bc79"}),")"]})]})}function I$e(){return U.jsxs("div",{id:"introContent",children:[U.jsx("div",{className:"backgroundImage"}),U.jsxs(xi,{className:"intro",children:[U.jsx(xi.Content,{as:Qc,greaterThanOrEqual:"large",children:U.jsx(xi.Header,{children:U.jsx(He,{id:"intro.title",defaultMessage:"Topola Genealogy Viewer"})})}),U.jsxs(xi.Content,{children:[U.jsx(Zi,{as:Qc,greaterThanOrEqual:"large",children:U.jsxs(Zi.Row,{children:[U.jsx(Zi.Column,{width:5,children:U.jsx(_n,{src:_F,alt:"Topola logo"})}),U.jsx(Zi.Column,{width:11,children:U.jsx(bF,{})})]})}),U.jsxs(Qc,{at:"small",children:[U.jsx(_n,{src:_F,alt:"Topola logo",centered:!0,size:"tiny",className:"blockImage"}),U.jsx(bF,{})]})]})]})]})}var ar=(e=>(e[e.Menu=0]="Menu",e[e.Dropdown=1]="Dropdown",e))(ar||{});function mw(e){const t={...e};return delete t.menuType,U.jsx(U.Fragment,{children:e.menuType===0?U.jsx(on.Item,{...t,children:e.children}):U.jsx(rt.Item,{...t,children:e.children})})}var Yv={exports:{}},xF;function N$e(){if(xF)return Yv.exports;xF=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof r=="boolean"?{immediate:r}:r;let a,o,s,u,l;function c(){const p=a,w=o;return a=void 0,o=void 0,l=t.apply(p,w),l}function f(){const p=Date.now()-u;p=0?s=setTimeout(f,n-p):(s=void 0,i||(l=c()))}const d=function(...p){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,o=p,u=Date.now();const w=i&&!s;return s||(s=setTimeout(f,n)),w&&(l=c()),l};return Object.defineProperty(d,"isPending",{get(){return s!==void 0}}),d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{s&&d.trigger()},d.trigger=()=>{l=c(),d.clear()},d}return Yv.exports.debounce=e,Yv.exports=e,Yv.exports}var O$e=N$e();const D$e=Un(O$e);var KE,EF;function $$e(){return EF||(EF=1,KE=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,o=/^0x[0-9a-f]+$/i,s=/^0/,u=function(E){return e.insensitive&&(""+E).toLowerCase()||""+E},l=u(t).replace(i,"")||"",c=u(n).replace(i,"")||"",f=l.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),d=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=parseInt(l.match(o),16)||f.length!==1&&l.match(a)&&Date.parse(l),w=parseInt(c.match(o),16)||p&&c.match(a)&&Date.parse(c)||null,g,y;if(w){if(pw)return 1}for(var _=0,b=Math.max(f.length,d.length);_y)return 1}return 0}),KE}var F$e=$$e();const L$e=Un(F$e);var XE={exports:{}};/** * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 * Copyright (C) 2020 Oliver Nightingale * @license MIT diff --git a/assets/index.es-DF46PFtR.js b/assets/index.es-Ce6wxV-H.js similarity index 99% rename from assets/index.es-DF46PFtR.js rename to assets/index.es-Ce6wxV-H.js index e016221..92beeec 100644 --- a/assets/index.es-DF46PFtR.js +++ b/assets/index.es-Ce6wxV-H.js @@ -1,4 +1,4 @@ -import{c as Ma,t as Ul,g as Qu}from"./index-CsbIfpVF.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-y86Ilk1q.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-CmktHkKZ.js b/assets/jspdf.es.min-5sX0Ok-m.js similarity index 99% rename from assets/jspdf.es.min-CmktHkKZ.js rename to assets/jspdf.es.min-5sX0Ok-m.js index ec352af..98bbd01 100644 --- a/assets/jspdf.es.min-CmktHkKZ.js +++ b/assets/jspdf.es.min-5sX0Ok-m.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-DF46PFtR.js","./index-CsbIfpVF.js","./index-CPYpbGHF.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 _e=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as So,a as io}from"./index-CsbIfpVF.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 _e=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as So,a as io}from"./index-y86Ilk1q.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])})(),ao={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 jo{constructor(e=nc,t={}){_e(this,"buffer");_e(this,"byteLength");_e(this,"byteOffset");_e(this,"length");_e(this,"offset");_e(this,"lastWrittenByte");_e(this,"littleEndian");_e(this,"_data");_e(this,"_mark");_e(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 jo)&&(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=ao[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 ao[t](u.buffer);return this.offset+=i,c.reverse(),c}const f=new ao[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 Gi(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);Gi(uc);const hc=new Array(Pu*2);Gi(hc);const cc=new Array(lc);Gi(cc);const fc=new Array(ac-ic+1);Gi(fc);const dc=new Array(ku);Gi(dc);const pc=new Array(Pu);Gi(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 ko=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},bc=new Uint32Array(mc()),vc=(n,e,t,i)=>{const o=bc,s=i+t;n^=-1;for(let f=i;f>>8^o[(n^e[f])&255];return n^-1};var ur=vc,Po={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;_a[254]=_a[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+_a[n[t]]>e?t:e},Io={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 os=16209,Pc=16191;var Ic=function(e,t){let i,o,s,f,u,c,d,m,A,P,p,B,O,M,S,G,Y,D,ot,yt,gt,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=Y>>>16&255,D===0)et[s++]=Y&65535;else if(D&16){ot=Y&65535,D&=15,D&&(B>>=D,B-=D),B<15&&(p+=z[i++]<>>24,p>>>=D,B-=D,D=Y>>>16&255,D&16){if(yt=Y&65535,D&=15,Bc){e.msg="invalid distance too far back",N.mode=os;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=os;break t}if(gt=0,tt=P,A===0){if(gt+=d-D,D2;)et[s++]=tt[gt++],et[s++]=tt[gt++],et[s++]=tt[gt++],ot-=3;ot&&(et[s++]=tt[gt++],ot>1&&(et[s++]=tt[gt++]))}else{gt=s-yt;do et[s++]=et[gt++],et[s++]=et[gt++],et[s++]=et[gt++],ot-=3;while(ot>2);ot&&(et[s++]=et[gt++],ot>1&&(et[s++]=et[gt++]))}}else if((D&64)===0){Y=M[(Y&65535)+(p&(1<>3,i-=ot,B-=ot<<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,G=0,Y,D,ot,yt,gt,tt=null,z;const et=new Uint16Array(Mi+1),N=new Uint16Array(Mi+1);let E=null,q,U,rt;for(d=0;d<=Mi;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),Y=1<>O)+D]=q<<24|U<<16|rt|0;while(D!==0);for(Y=1<>=1;if(Y!==0?(G&=Y-1,G+=Y):G=0,m++,--et[d]===0){if(d===P)break;d=e[t+f[m]]}if(d>p&&(G&yt)!==ot){for(O===0&&(O=p),gt+=A,B=d-O,M=1<_l||n===Ll&&S>Al)return 1;ot=G&yt,o[ot]=p<<24|B<<16|gt-s|0}}return G!==0&&(o[gt+G]=d-O<<24|64<<16|0),u.bits=p,0};var xa=jc;const Bc=0,Eu=1,Ou=2,{Z_FINISH:Sl,Z_BLOCK:Mc,Z_TREES:ls,Z_OK:wi,Z_STREAM_END:Rc,Z_NEED_DICT:Tc,Z_STREAM_ERROR:zn,Z_DATA_ERROR:ju,Z_MEM_ERROR:Bu,Z_BUF_ERROR:Dc,Z_DEFLATED:kl}=Iu,Ns=16180,Pl=16181,Il=16182,Cl=16183,Fl=16184,El=16185,Ol=16186,jl=16187,Bl=16188,Ml=16189,xs=16190,Fr=16191,oo=16192,Rl=16193,lo=16194,Tl=16195,Dl=16196,ql=16197,Ul=16198,us=16199,hs=16200,zl=16201,Hl=16202,Wl=16203,Vl=16204,Gl=16205,uo=16206,Yl=16207,Jl=16208,Oe=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 xi=n=>{if(!n)return 1;const e=n.state;return!e||e.strm!==n||e.modeRu?1:0},Tu=n=>{if(xi(n))return zn;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=Ns,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,wi},Du=n=>{if(xi(n))return zn;const e=n.state;return e.wsize=0,e.whave=0,e.wnext=0,Tu(n)},qu=(n,e)=>{let t;if(xi(n))return zn;const i=n.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?zn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,Du(n))},Uu=(n,e)=>{if(!n)return zn;const t=new Wc;n.state=t,t.strm=n,t.window=null,t.mode=Ns;const i=qu(n,e);return i!==wi&&(n.state=null),i},Vc=n=>Uu(n,Hc);let Kl=!0,ho,co;const Gc=n=>{if(Kl){ho=new Int32Array(512),co=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(xa(Eu,n.lens,0,288,ho,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;xa(Ou,n.lens,0,32,co,0,n.work,{bits:5}),Kl=!1}n.lencode=ho,n.lenbits=9,n.distcode=co,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,G,Y,D,ot,yt,gt,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(xi(n)||!n.output||!n.input&&n.avail_in!==0)return zn;t=n.state,t.mode===Fr&&(t.mode=oo),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=wi;t:for(;;)switch(t.mode){case Ns:if(t.wrap===0){t.mode=oo;break}for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=ur(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=Oe;break}if((d&15)!==kl){n.msg="unknown compression method",t.mode=Oe;break}if(d>>>=4,m-=4,gt=(d&15)+8,t.wbits===0&&(t.wbits=gt),gt>15||gt>t.wbits){n.msg="invalid window size",t.mode=Oe;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=ur(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=ur(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=ur(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=ur(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&&(gt=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),gt)),t.flags&512&&t.wrap&4&&(t.check=ur(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 gt=i[s+p++],t.head&>&&t.length<65536&&(t.head.name+=String.fromCharCode(gt));while(gt&&p>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=Fr;break;case Ml:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>=m&7,m-=m&7,t.mode=uo;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=us,e===ls){d>>>=2,m-=2;break t}break;case 2:t.mode=Dl;break;case 3:n.msg="invalid block type",t.mode=Oe}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=Oe;break}if(t.length=d&65535,d=0,m=0,t.mode=lo,e===ls)break t;case lo: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=Fr;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=Oe;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=xa(Bc,t.lens,0,19,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid code lengths set",t.mode=Oe;break}t.have=0,t.mode=Ul;case Ul:for(;t.have>>24,G=M>>>16&255,Y=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=S,m-=S,t.lens[t.have++]=Y;else{if(Y===16){for(N=S+2;m>>=S,m-=S,t.have===0){n.msg="invalid bit length repeat",t.mode=Oe;break}gt=t.lens[t.have-1],p=3+(d&3),d>>>=2,m-=2}else if(Y===17){for(N=S+3;m>>=S,m-=S,gt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m>>=S,m-=S,gt=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=Oe;break}for(;p--;)t.lens[t.have++]=gt}}if(t.mode===Oe)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=Oe;break}if(t.lenbits=9,et={bits:t.lenbits},tt=xa(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=Oe;break}if(t.distbits=6,t.distcode=t.distdyn,et={bits:t.distbits},tt=xa(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=Oe;break}if(t.mode=us,e===ls)break t;case us:t.mode=hs;case hs: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===Fr&&(t.back=-1);break}for(t.back=0;M=t.lencode[d&(1<>>24,G=M>>>16&255,Y=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,G=M>>>16&255,Y=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=Y,G===0){t.mode=Gl;break}if(G&32){t.back=-1,t.mode=Fr;break}if(G&64){n.msg="invalid literal/length code",t.mode=Oe;break}t.extra=G&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,G=M>>>16&255,Y=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,G=M>>>16&255,Y=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,G&64){n.msg="invalid distance code",t.mode=Oe;break}t.offset=Y,t.extra=G&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=Oe;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=Oe;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=hs);break;case Gl:if(c===0)break t;o[f++]=t.length,c--,t.mode=hs;break;case uo:if(t.wrap){for(;m<32;){if(u===0)break t;u--,d|=i[s++]<{if(xi(n))return zn;let e=n.state;return e.window&&(e.window=null),n.state=null,wi},$c=(n,e)=>{if(xi(n))return zn;const t=n.state;return(t.wrap&2)===0?zn:(t.head=e,e.done=!1,wi)},Kc=(n,e)=>{const t=e.length;let i,o,s;return xi(n)||(i=n.state,i.wrap!==0&&i.mode!==xs)?zn:i.mode===xs&&(o=1,o=ko(o,e,t,0),o!==i.check)?ju:(s=zu(n,e,t,t),s?(i.mode=Mu,Bu):(i.havedict=1,wi))};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)",Er={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:Aa,Z_STREAM_END:fo,Z_NEED_DICT:po,Z_STREAM_ERROR:ff,Z_DATA_ERROR:Xl,Z_MEM_ERROR:df}=Iu;function Na(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=Er.inflateInit2(this.strm,e.windowBits);if(t!==Aa)throw new Error(Po[t]);if(this.header=new uf,Er.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Io.string2buf(e.dictionary):Hu.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Er.inflateSetDictionary(this.strm,e.dictionary),t!==Aa)))throw new Error(Po[t])}Na.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=Er.inflate(t,f),s===po&&o&&(s=Er.inflateSetDictionary(t,o),s===Aa?s=Er.inflate(t,f):s===Xl&&(s=po));t.avail_in>0&&s===fo&&t.state.wrap>0&&n[t.next_in]!==0;)Er.inflateReset(t),s=Er.inflate(t,f);switch(s){case ff:case Xl:case po:case df:return this.onEnd(s),this.ended=!0,!1}if(u=t.avail_out,t.next_out&&(t.avail_out===0||s===fo))if(this.options.to==="string"){let c=Io.utf8border(t.output,t.next_out),d=t.next_out-c,m=Io.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===Aa&&u===0)){if(s===fo)return s=Er.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Na.prototype.onData=function(n){this.chunks.push(n)};Na.prototype.onEnd=function(n){n===Aa&&(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 Na(e);if(t.push(n),t.err)throw t.msg||Po[t.err];return t.result}var gf=Na,mf=pf,bf={Inflate:gf,inflate:mf};const{Inflate:vf,inflate:wf}=bf;var Zl=vf,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 gt=0;gt>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 gs=Uint8Array.of(137,80,78,71,13,10,26,10);function nu(n){if(!Bf(n.readBytes(gs.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 En={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},go={UNKNOWN:-1,DEFLATE:0},ru={UNKNOWN:-1,ADAPTIVE:0},mo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},cs={NONE:0,BACKGROUND:1,PREVIOUS:2},bo={SOURCE:0,OVER:1};class Hf extends jo{constructor(t,i={}){super(t);_e(this,"_checkCrc");_e(this,"_inflator");_e(this,"_png");_e(this,"_apng");_e(this,"_end");_e(this,"_hasPalette");_e(this,"_palette");_e(this,"_hasTransparency");_e(this,"_transparency");_e(this,"_compressionMethod");_e(this,"_filterMethod");_e(this,"_interlaceMethod");_e(this,"_colorType");_e(this,"_isAnimated");_e(this,"_numberOfFrames");_e(this,"_numberOfPlays");_e(this,"_frames");_e(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=go.UNKNOWN,this._filterMethod=ru.UNKNOWN,this._interlaceMethod=mo.UNKNOWN,this._colorType=En.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 En.GREYSCALE:o=1;break;case En.TRUECOLOUR:o=3;break;case En.INDEXED_COLOUR:o=1;break;case En.GREYSCALE_ALPHA:o=2;break;case En.TRUECOLOUR_ALPHA:o=4;break;case En.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==go.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 bo.SOURCE:for(let f=0;f=200&&e.status<=299}function fs(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 mi=Jt.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var i=Jt.URL||Jt.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)?wo(n,e,t):fs(o,o.target="_blank"):fs(o)):(o.href=i.createObjectURL(n),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){fs(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(au(n))wo(n,e,t);else{var i=document.createElement("a");i.href=n,i.target="_blank",setTimeout(function(){fs(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 wo(n,e,t);var o=n.type==="application/octet-stream",s=/constructor/i.test(Jt.HTMLElement)||Jt.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=Jt.URL||Jt.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 @@ -130,7 +130,7 @@ T* `):l.join(` Tj * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ==================================================================== - */function d1(){var n,e=this.internal.__metadata__.metadata,t=unescape(encodeURIComponent(e));n=this.internal.__metadata__.rawXml?t:''+t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function p1(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var e,t,i,o,s,f,u,c,d,m=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new c,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new f,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new f,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new A(this),e=this.internal.f2,t=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,f=this.internal.Point,u=this.internal.Rectangle,c=this.internal.Matrix,d=new m}]);var A=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=x;Object.defineProperty(this,"pdf",{get:function(){return j}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(k){R=!!k}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(k){V=!!k}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(k){isNaN(k)||(J=k)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(k){isNaN(k)||(Q=k)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(k){var Lt;typeof k=="number"?Lt=[k,k,k,k]:((Lt=new Array(4))[0]=k[0],Lt[1]=k.length>=2?k[1]:Lt[0],Lt[2]=k.length>=3?k[2]:Lt[0],Lt[3]=k.length>=4?k[3]:Lt[1]),d.margin=Lt}});var it=!1;Object.defineProperty(this,"autoPaging",{get:function(){return it},set:function(k){it=k}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(k){at=k}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(k){dt=k}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(k){k instanceof m&&(d=k)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(k){d.path=k}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(k){_t=k}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(k){var Lt;Lt=P(k),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(k){var Lt=P(k);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(k){["butt","round","square"].indexOf(k)!==-1&&(this.ctx.lineCap=k,this.pdf.setLineCap(k))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(k){isNaN(k)||(this.ctx.lineWidth=k,this.pdf.setLineWidth(k))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(k){["bevel","round","miter"].indexOf(k)!==-1&&(this.ctx.lineJoin=k,this.pdf.setLineJoin(k))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(k){isNaN(k)||(this.ctx.miterLimit=k,this.pdf.setMiterLimit(k))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(k){this.ctx.textBaseline=k}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(k){["right","end","center","left","start"].indexOf(k)!==-1&&(this.ctx.textAlign=k)}});var St=null,kt=null,zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(k){St=null,kt=null,zt=k}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(k){var Lt;if(this.ctx.font=k,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(k))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],vt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(vt)[2];vt=Math.floor(It==="px"?parseFloat(vt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(vt)*this.pdf.getFontSize():parseFloat(vt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(vt);var Ut=function(Rt){var De,pe,se=[],oe=Rt.trim();if(oe==="")return Ao;if(oe in fu)return[fu[oe]];for(;oe!=="";){switch(pe=null,De=(oe=pu(oe)).charAt(0)){case'"':case"'":pe=o1(oe.substring(1),De);break;default:pe=l1(oe)}if(pe===null||(se.push(pe[0]),(oe=pu(pe[1]))!==""&&oe.charAt(0)!==","))return Ao;oe=oe.replace(/^,/,"")}return se}(Wt);if(this.fontFaces){var Dt=function(Rt,De){var pe=Rt.getFontList(),se=JSON.stringify(pe);if(St===null||kt!==se){var oe=function(Fe){var qt=[];return Object.keys(Fe).forEach(function(ke){Fe[ke].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:ke,weight:"bold"};break;case"italic":Qt={family:ke,style:"italic"};break;case"bolditalic":Qt={family:ke,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:ke}}Qt!==null&&(Qt.ref={name:ke,style:Yt},qt.push(Qt))})}),qt}(pe);St=function(Fe){for(var qt={},ke=0;ke=700||ae==="bold")&&(Zt="bold"),ae==="italic"&&(Zt+="italic"),Zt.length===0&&(Zt="normal");for(var ce="",he={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},jt=0;jt=2*Math.PI&&(V=0,J=2*Math.PI),this.path.push({type:"arc",x,y:j,radius:R,startAngle:V,endAngle:J,counterclockwise:Q})},A.prototype.arcTo=function(x,j,R,V,J){throw new Error("arcTo not implemented.")},A.prototype.rect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,j),this.lineTo(x+R,j),this.lineTo(x+R,j+V),this.lineTo(x,j+V),this.lineTo(x,j),this.lineTo(x+R,j),this.lineTo(x,j)},A.prototype.fillRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,j,R,V),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},A.prototype.strokeRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");B.call(this)||(this.beginPath(),this.rect(x,j,R,V),this.stroke())},A.prototype.clearRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,j,R,V))},A.prototype.save=function(x){x=typeof x!="boolean"||x;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(x,j,R,V,J,Q,it,at,dt){var _t=this.pdf.getImageProperties(x),St=1,kt=1,zt=1,k=1;V!==void 0&&at!==void 0&&(zt=at/V,k=dt/J,St=_t.width/V*at/V,kt=_t.height/J*dt/J),Q===void 0&&(Q=j,it=R,j=0,R=0),V!==void 0&&at===void 0&&(at=V,dt=J),V===void 0&&at===void 0&&(at=_t.width,dt=_t.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,vt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new u(Q-j*zt,it-R*k,V*St,J*kt));if(this.autoPaging){for(var Wt,It=M.call(this,vt),Ut=[],Dt=0;Dtbe||Ztvt||It0)){for(;dt>=0;dt--)if(J[dt-1].close!==!0&&J[dt-1].begin!==!0){J[dt-1].deltas.push(R),J[dt-1].abs.push(at);break}}break;case"bct":R=[at.x1-Q[it-1].x,at.y1-Q[it-1].y,at.x2-Q[it-1].x,at.y2-Q[it-1].y,at.x-Q[it-1].x,at.y-Q[it-1].y],J[J.length-1].deltas.push(R);break;case"qct":var _t=Q[it-1].x+2/3*(at.x1-Q[it-1].x),St=Q[it-1].y+2/3*(at.y1-Q[it-1].y),kt=at.x+2/3*(at.x1-at.x),zt=at.y+2/3*(at.y1-at.y),k=at.x,Lt=at.y;R=[_t-Q[it-1].x,St-Q[it-1].y,kt-Q[it-1].x,zt-Q[it-1].y,k-Q[it-1].x,Lt-Q[it-1].y],J[J.length-1].deltas.push(R);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(at)}}V=j?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),J=this.lineWidth,this.lineWidth=J*x.scale);var ee=this.autoPaging!=="text";if(ee||jt.y+jt.h<=Dt){if(ee||jt.y>=It&&jt.x<=ue){var Rt=ee?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||ue-jt.x)[0],De=G([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0],pe=ee&&(Wt>Ht||Wt=.01&&(this.pdf.setFontSize(V),this.lineWidth=J)}}else x.scale>=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),J=this.lineWidth,this.lineWidth=J*x.scale),this.pdf.text(x.text,dt.x+this.posX,dt.y+this.posY,{angle:x.angle,align:j,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(V),this.lineWidth=J)},q=function(x,j,R,V){R=R||0,V=V||0,this.pdf.internal.out(t(x+R)+" "+i(j+V)+" l")},U=function(x,j,R){return this.pdf.lines(x,j,R,null,null)},rt=function(x,j,R,V,J,Q,it,at){this.pdf.internal.out([e(o(R+x)),e(s(V+j)),e(o(J+x)),e(s(Q+j)),e(o(it+x)),e(s(at+j)),"c"].join(" "))},ct=function(x,j,R,V){for(var J=2*Math.PI,Q=Math.PI/2;j>R;)j-=J;var it=Math.abs(R-j);it1e-5;){var St=_t+dt*Math.min(it,Q);at.push(pt.call(this,x,_t,St)),it-=Math.abs(St-_t),_t=St}return at},pt=function(x,j,R){var V=(R-j)/2,J=x*Math.cos(V),Q=x*Math.sin(V),it=J,at=-Q,dt=it*it+at*at,_t=dt+it*J+at*Q,St=4/3*(Math.sqrt(2*dt*_t)-_t)/(it*Q-at*J),kt=it-St*at,zt=at+St*it,k=kt,Lt=-zt,ae=V+j,Ht=Math.cos(ae),vt=Math.sin(ae);return{x1:x*Math.cos(j),y1:x*Math.sin(j),x2:kt*Ht-zt*vt,y2:kt*vt+zt*Ht,x3:k*Ht-Lt*vt,y3:k*vt+Lt*Ht,x4:x*Math.cos(R),y4:x*Math.sin(R)}},nt=function(x){return 180*x/Math.PI},ft=function(x,j,R,V,J,Q){var it=x+.5*(R-x),at=j+.5*(V-j),dt=J+.5*(R-J),_t=Q+.5*(V-Q),St=Math.min(x,J,it,dt),kt=Math.max(x,J,it,dt),zt=Math.min(j,Q,at,_t),k=Math.max(j,Q,at,_t);return new u(St,zt,kt-St,k-zt)},At=function(x,j,R,V,J,Q,it,at){var dt,_t,St,kt,zt,k,Lt,ae,Ht,vt,Wt,It,Ut,Dt,be=R-x,ue=V-j,Zt=J-R,ce=Q-V,he=it-J,jt=at-Q;for(_t=0;_t<41;_t++)Ht=(Lt=(St=x+(dt=_t/40)*be)+dt*((zt=R+dt*Zt)-St))+dt*(zt+dt*(J+dt*he-zt)-Lt),vt=(ae=(kt=j+dt*ue)+dt*((k=V+dt*ce)-kt))+dt*(k+dt*(Q+dt*jt-k)-ae),_t==0?(Wt=Ht,It=vt,Ut=Ht,Dt=vt):(Wt=Math.min(Wt,Ht),It=Math.min(It,vt),Ut=Math.max(Ut,Ht),Dt=Math.max(Dt,vt));return new u(Math.round(Wt),Math.round(It),Math.round(Ut-Wt),Math.round(Dt-It))},xt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,j,R=(x=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:j}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Tt.API),function(n){var e=function(f){var u,c,d,m,A,P,p,B,O,M;for(c=[],d=0,m=(f+=u="\0\0\0\0".slice(f.length%4||4)).length;m>d;d+=4)(A=(f.charCodeAt(d)<<24)+(f.charCodeAt(d+1)<<16)+(f.charCodeAt(d+2)<<8)+f.charCodeAt(d+3))!==0?(P=(A=((A=((A=((A=(A-(M=A%85))/85)-(O=A%85))/85)-(B=A%85))/85)-(p=A%85))/85)%85,c.push(P+33,p+33,B+33,O+33,M+33)):c.push(122);return function(S,G){for(var Y=G;Y>0;Y--)S.pop()}(c,u.length),String.fromCharCode.apply(String,c)+"~>"},t=function(f){var u,c,d,m,A,P=String,p="length",B=255,O="charCodeAt",M="slice",S="replace";for(f[M](-2),f=f[M](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),d=[],m=0,A=(f+=u="uuuuu"[M](f[p]%5||5))[p];A>m;m+=5)c=52200625*(f[O](m)-33)+614125*(f[O](m+1)-33)+7225*(f[O](m+2)-33)+85*(f[O](m+3)-33)+(f[O](m+4)-33),d.push(B&c>>24,B&c>>16,B&c>>8,B&c);return function(G,Y){for(var D=Y;D>0;D--)G.pop()}(d,u[p]),P.fromCharCode.apply(P,d)},i=function(f){return f.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(f){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),u.test(f)===!1)return"";for(var c="",d=0;dimport("./html2canvas.esm-CBrSDip1.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))}).then(function(u){return u.default?u.default:u})}function t(){return(Jt.DOMPurify?Promise.resolve(Jt.DOMPurify):io(()=>import("./purify.es-B9ZVCkUG.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load dompurify: "+u))}).then(function(u){return u.default?u.default:u})}var i=function(u){var c=Se(u);return c==="undefined"?"undefined":c==="string"||u instanceof String?"string":c==="number"||u instanceof Number?"number":c==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":c==="object"?"object":"unknown"},o=function(u,c){var d=document.createElement(u);for(var m in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[m]=c.style[m];return d},s=function u(c,d){for(var m=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),A=c.firstChild;A;A=A.nextSibling)d!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||m.appendChild(u(A,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(m.width=c.width,m.height=c.height,m.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(m.value=c.value),m.addEventListener("load",function(){m.scrollTop=c.scrollTop,m.scrollLeft=c.scrollLeft},!0)),m},f=function u(c){var d=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),m=u.convert(Promise.resolve(),d);return(m=m.setProgress(1,u,1,[u])).set(c)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(u,c){return u.__proto__=c||f.prototype,u},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(u,c){return this.then(function(){switch(c=c||function(d){switch(i(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(u),c){case"string":return this.then(t).then(function(d){return this.set({src:o("div",{innerHTML:u,dompurify:d})})});case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}})},f.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=this.opt.jsPDF,m=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,P=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete P.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;pO&&(B=M,M=O,O=B);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",O>M&&(B=M,M=O,O=B)}return{width:M,height:O,unit:c,k:A,orientation:u}},n.html=function(u,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(_o):null;var d=new f(c);return c.worker?d:d.from(u).doCallback()}}(Tt.API),Tt.API.addJS=function(n){var e,t,i=function(o){for(var s="",f=0;f=0&&o[d]==="\\";d--)c++;s+=c%2==0?"\\"+u:u}else s+=u}return s}(n);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&t!==void 0&&this.internal.out("/Names <>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=t.outline.render().split(/\r\n/),s=0;s> endobj")}var p=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+p+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(i,o,s){var f={title:o,options:s,children:[]};return i==null&&(i=this.root),i.children.push(f),f},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(i){i.id=t.internal.newObjectDeferred();for(var o=0;o0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},t.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s0&&this.line("/Prev "+this.makeRef(i.children[s-1])),s0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var u=this.count=this.count_r({count:0},f);if(u>0&&this.line("/Count "+u),f.options&&f.options.pageNumber){var c=t.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var d=0;d'+t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function p1(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var e,t,i,o,s,f,u,c,d,m=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new c,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new f,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new f,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new A(this),e=this.internal.f2,t=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,f=this.internal.Point,u=this.internal.Rectangle,c=this.internal.Matrix,d=new m}]);var A=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=x;Object.defineProperty(this,"pdf",{get:function(){return j}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(k){R=!!k}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(k){V=!!k}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(k){isNaN(k)||(J=k)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(k){isNaN(k)||(Q=k)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(k){var Lt;typeof k=="number"?Lt=[k,k,k,k]:((Lt=new Array(4))[0]=k[0],Lt[1]=k.length>=2?k[1]:Lt[0],Lt[2]=k.length>=3?k[2]:Lt[0],Lt[3]=k.length>=4?k[3]:Lt[1]),d.margin=Lt}});var it=!1;Object.defineProperty(this,"autoPaging",{get:function(){return it},set:function(k){it=k}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(k){at=k}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(k){dt=k}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(k){k instanceof m&&(d=k)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(k){d.path=k}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(k){_t=k}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(k){var Lt;Lt=P(k),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(k){var Lt=P(k);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(k){["butt","round","square"].indexOf(k)!==-1&&(this.ctx.lineCap=k,this.pdf.setLineCap(k))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(k){isNaN(k)||(this.ctx.lineWidth=k,this.pdf.setLineWidth(k))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(k){["bevel","round","miter"].indexOf(k)!==-1&&(this.ctx.lineJoin=k,this.pdf.setLineJoin(k))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(k){isNaN(k)||(this.ctx.miterLimit=k,this.pdf.setMiterLimit(k))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(k){this.ctx.textBaseline=k}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(k){["right","end","center","left","start"].indexOf(k)!==-1&&(this.ctx.textAlign=k)}});var St=null,kt=null,zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(k){St=null,kt=null,zt=k}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(k){var Lt;if(this.ctx.font=k,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(k))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],vt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(vt)[2];vt=Math.floor(It==="px"?parseFloat(vt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(vt)*this.pdf.getFontSize():parseFloat(vt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(vt);var Ut=function(Rt){var De,pe,se=[],oe=Rt.trim();if(oe==="")return Ao;if(oe in fu)return[fu[oe]];for(;oe!=="";){switch(pe=null,De=(oe=pu(oe)).charAt(0)){case'"':case"'":pe=o1(oe.substring(1),De);break;default:pe=l1(oe)}if(pe===null||(se.push(pe[0]),(oe=pu(pe[1]))!==""&&oe.charAt(0)!==","))return Ao;oe=oe.replace(/^,/,"")}return se}(Wt);if(this.fontFaces){var Dt=function(Rt,De){var pe=Rt.getFontList(),se=JSON.stringify(pe);if(St===null||kt!==se){var oe=function(Fe){var qt=[];return Object.keys(Fe).forEach(function(ke){Fe[ke].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:ke,weight:"bold"};break;case"italic":Qt={family:ke,style:"italic"};break;case"bolditalic":Qt={family:ke,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:ke}}Qt!==null&&(Qt.ref={name:ke,style:Yt},qt.push(Qt))})}),qt}(pe);St=function(Fe){for(var qt={},ke=0;ke=700||ae==="bold")&&(Zt="bold"),ae==="italic"&&(Zt+="italic"),Zt.length===0&&(Zt="normal");for(var ce="",he={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},jt=0;jt=2*Math.PI&&(V=0,J=2*Math.PI),this.path.push({type:"arc",x,y:j,radius:R,startAngle:V,endAngle:J,counterclockwise:Q})},A.prototype.arcTo=function(x,j,R,V,J){throw new Error("arcTo not implemented.")},A.prototype.rect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,j),this.lineTo(x+R,j),this.lineTo(x+R,j+V),this.lineTo(x,j+V),this.lineTo(x,j),this.lineTo(x+R,j),this.lineTo(x,j)},A.prototype.fillRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,j,R,V),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},A.prototype.strokeRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");B.call(this)||(this.beginPath(),this.rect(x,j,R,V),this.stroke())},A.prototype.clearRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,j,R,V))},A.prototype.save=function(x){x=typeof x!="boolean"||x;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(x,j,R,V,J,Q,it,at,dt){var _t=this.pdf.getImageProperties(x),St=1,kt=1,zt=1,k=1;V!==void 0&&at!==void 0&&(zt=at/V,k=dt/J,St=_t.width/V*at/V,kt=_t.height/J*dt/J),Q===void 0&&(Q=j,it=R,j=0,R=0),V!==void 0&&at===void 0&&(at=V,dt=J),V===void 0&&at===void 0&&(at=_t.width,dt=_t.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,vt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new u(Q-j*zt,it-R*k,V*St,J*kt));if(this.autoPaging){for(var Wt,It=M.call(this,vt),Ut=[],Dt=0;Dtbe||Ztvt||It0)){for(;dt>=0;dt--)if(J[dt-1].close!==!0&&J[dt-1].begin!==!0){J[dt-1].deltas.push(R),J[dt-1].abs.push(at);break}}break;case"bct":R=[at.x1-Q[it-1].x,at.y1-Q[it-1].y,at.x2-Q[it-1].x,at.y2-Q[it-1].y,at.x-Q[it-1].x,at.y-Q[it-1].y],J[J.length-1].deltas.push(R);break;case"qct":var _t=Q[it-1].x+2/3*(at.x1-Q[it-1].x),St=Q[it-1].y+2/3*(at.y1-Q[it-1].y),kt=at.x+2/3*(at.x1-at.x),zt=at.y+2/3*(at.y1-at.y),k=at.x,Lt=at.y;R=[_t-Q[it-1].x,St-Q[it-1].y,kt-Q[it-1].x,zt-Q[it-1].y,k-Q[it-1].x,Lt-Q[it-1].y],J[J.length-1].deltas.push(R);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(at)}}V=j?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),J=this.lineWidth,this.lineWidth=J*x.scale);var ee=this.autoPaging!=="text";if(ee||jt.y+jt.h<=Dt){if(ee||jt.y>=It&&jt.x<=ue){var Rt=ee?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||ue-jt.x)[0],De=G([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0],pe=ee&&(Wt>Ht||Wt=.01&&(this.pdf.setFontSize(V),this.lineWidth=J)}}else x.scale>=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),J=this.lineWidth,this.lineWidth=J*x.scale),this.pdf.text(x.text,dt.x+this.posX,dt.y+this.posY,{angle:x.angle,align:j,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(V),this.lineWidth=J)},q=function(x,j,R,V){R=R||0,V=V||0,this.pdf.internal.out(t(x+R)+" "+i(j+V)+" l")},U=function(x,j,R){return this.pdf.lines(x,j,R,null,null)},rt=function(x,j,R,V,J,Q,it,at){this.pdf.internal.out([e(o(R+x)),e(s(V+j)),e(o(J+x)),e(s(Q+j)),e(o(it+x)),e(s(at+j)),"c"].join(" "))},ct=function(x,j,R,V){for(var J=2*Math.PI,Q=Math.PI/2;j>R;)j-=J;var it=Math.abs(R-j);it1e-5;){var St=_t+dt*Math.min(it,Q);at.push(pt.call(this,x,_t,St)),it-=Math.abs(St-_t),_t=St}return at},pt=function(x,j,R){var V=(R-j)/2,J=x*Math.cos(V),Q=x*Math.sin(V),it=J,at=-Q,dt=it*it+at*at,_t=dt+it*J+at*Q,St=4/3*(Math.sqrt(2*dt*_t)-_t)/(it*Q-at*J),kt=it-St*at,zt=at+St*it,k=kt,Lt=-zt,ae=V+j,Ht=Math.cos(ae),vt=Math.sin(ae);return{x1:x*Math.cos(j),y1:x*Math.sin(j),x2:kt*Ht-zt*vt,y2:kt*vt+zt*Ht,x3:k*Ht-Lt*vt,y3:k*vt+Lt*Ht,x4:x*Math.cos(R),y4:x*Math.sin(R)}},nt=function(x){return 180*x/Math.PI},ft=function(x,j,R,V,J,Q){var it=x+.5*(R-x),at=j+.5*(V-j),dt=J+.5*(R-J),_t=Q+.5*(V-Q),St=Math.min(x,J,it,dt),kt=Math.max(x,J,it,dt),zt=Math.min(j,Q,at,_t),k=Math.max(j,Q,at,_t);return new u(St,zt,kt-St,k-zt)},At=function(x,j,R,V,J,Q,it,at){var dt,_t,St,kt,zt,k,Lt,ae,Ht,vt,Wt,It,Ut,Dt,be=R-x,ue=V-j,Zt=J-R,ce=Q-V,he=it-J,jt=at-Q;for(_t=0;_t<41;_t++)Ht=(Lt=(St=x+(dt=_t/40)*be)+dt*((zt=R+dt*Zt)-St))+dt*(zt+dt*(J+dt*he-zt)-Lt),vt=(ae=(kt=j+dt*ue)+dt*((k=V+dt*ce)-kt))+dt*(k+dt*(Q+dt*jt-k)-ae),_t==0?(Wt=Ht,It=vt,Ut=Ht,Dt=vt):(Wt=Math.min(Wt,Ht),It=Math.min(It,vt),Ut=Math.max(Ut,Ht),Dt=Math.max(Dt,vt));return new u(Math.round(Wt),Math.round(It),Math.round(Ut-Wt),Math.round(Dt-It))},xt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,j,R=(x=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:j}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Tt.API),function(n){var e=function(f){var u,c,d,m,A,P,p,B,O,M;for(c=[],d=0,m=(f+=u="\0\0\0\0".slice(f.length%4||4)).length;m>d;d+=4)(A=(f.charCodeAt(d)<<24)+(f.charCodeAt(d+1)<<16)+(f.charCodeAt(d+2)<<8)+f.charCodeAt(d+3))!==0?(P=(A=((A=((A=((A=(A-(M=A%85))/85)-(O=A%85))/85)-(B=A%85))/85)-(p=A%85))/85)%85,c.push(P+33,p+33,B+33,O+33,M+33)):c.push(122);return function(S,G){for(var Y=G;Y>0;Y--)S.pop()}(c,u.length),String.fromCharCode.apply(String,c)+"~>"},t=function(f){var u,c,d,m,A,P=String,p="length",B=255,O="charCodeAt",M="slice",S="replace";for(f[M](-2),f=f[M](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),d=[],m=0,A=(f+=u="uuuuu"[M](f[p]%5||5))[p];A>m;m+=5)c=52200625*(f[O](m)-33)+614125*(f[O](m+1)-33)+7225*(f[O](m+2)-33)+85*(f[O](m+3)-33)+(f[O](m+4)-33),d.push(B&c>>24,B&c>>16,B&c>>8,B&c);return function(G,Y){for(var D=Y;D>0;D--)G.pop()}(d,u[p]),P.fromCharCode.apply(P,d)},i=function(f){return f.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(f){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),u.test(f)===!1)return"";for(var c="",d=0;dimport("./html2canvas.esm-CBrSDip1.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))}).then(function(u){return u.default?u.default:u})}function t(){return(Jt.DOMPurify?Promise.resolve(Jt.DOMPurify):io(()=>import("./purify.es-BgtpMKW3.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load dompurify: "+u))}).then(function(u){return u.default?u.default:u})}var i=function(u){var c=Se(u);return c==="undefined"?"undefined":c==="string"||u instanceof String?"string":c==="number"||u instanceof Number?"number":c==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":c==="object"?"object":"unknown"},o=function(u,c){var d=document.createElement(u);for(var m in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[m]=c.style[m];return d},s=function u(c,d){for(var m=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),A=c.firstChild;A;A=A.nextSibling)d!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||m.appendChild(u(A,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(m.width=c.width,m.height=c.height,m.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(m.value=c.value),m.addEventListener("load",function(){m.scrollTop=c.scrollTop,m.scrollLeft=c.scrollLeft},!0)),m},f=function u(c){var d=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),m=u.convert(Promise.resolve(),d);return(m=m.setProgress(1,u,1,[u])).set(c)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(u,c){return u.__proto__=c||f.prototype,u},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(u,c){return this.then(function(){switch(c=c||function(d){switch(i(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(u),c){case"string":return this.then(t).then(function(d){return this.set({src:o("div",{innerHTML:u,dompurify:d})})});case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}})},f.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=this.opt.jsPDF,m=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,P=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete P.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;pO&&(B=M,M=O,O=B);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",O>M&&(B=M,M=O,O=B)}return{width:M,height:O,unit:c,k:A,orientation:u}},n.html=function(u,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(_o):null;var d=new f(c);return c.worker?d:d.from(u).doCallback()}}(Tt.API),Tt.API.addJS=function(n){var e,t,i=function(o){for(var s="",f=0;f=0&&o[d]==="\\";d--)c++;s+=c%2==0?"\\"+u:u}else s+=u}return s}(n);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&t!==void 0&&this.internal.out("/Names <>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=t.outline.render().split(/\r\n/),s=0;s> endobj")}var p=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+p+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(i,o,s){var f={title:o,options:s,children:[]};return i==null&&(i=this.root),i.children.push(f),f},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(i){i.id=t.internal.newObjectDeferred();for(var o=0;o0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},t.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s0&&this.line("/Prev "+this.makeRef(i.children[s-1])),s0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var u=this.count=this.count_r({count:0},f);if(u>0&&this.line("/Count "+u),f.options&&f.options.pageNumber){var c=t.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var d=0;d1){U=!0,ct=void 0;var J=z*et;pt=new Uint8Array(J);for(var Q=new DataView(N.buffer),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},bu=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=ps.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?O[0].length+2:t.lineIndent||0){var S=Array(c).join(" "),G=[];O.map(function(D){(D=D.split(/\s*\n/)).length>1?G=G.concat(D.map(function(ot,yt){return(yt&&ot.length?` `:"")+ot})):G.push(D[0])}),O=G,c=gu.apply(this,[S,t])}for(s=0,f=O.length;se||Y){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,ot){return D+ot},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,ot){return(ot?S:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},Ti.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-DF46PFtR.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||Y){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,ot){return D+ot},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,ot){return(ot?S:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},Ti.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-Ce6wxV-H.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;m2?a-2:0),O=2;O1?l-1:0),c=1;c1?l-1:0),c=1;c2&&arguments[2]!==void 0?arguments[2]:ue;ct&&ct(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){const O=l(c);O!==c&&(Yt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Jt(s){for(let o=0;o/gm),on=L(/\$\{[\w\W]*/gm),an=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=L(/^aria-[\-\w]+$/),gt=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=L(/^(?:\w+script|data):/i),ln=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=L(/^html$/i),cn=L(/^[a-z][.\w]*(-[.\w]+)+$/i);var dt=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:At,ERB_EXPR:nn,IS_ALLOWED_URI:gt,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on});const Q={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null;const c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));const O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn();const o=i=>ht(i);if(o.version="3.3.1",o.removed=[],!s||!s.document||s.document.nodeType!==Q.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s;const a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:v,Node:me,Element:Fe,NodeFilter:B,NamedNodeMap:St=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Ot,trustedTypes:ee}=s,Y=Fe.prototype,Dt=J(Y,"cloneNode"),Lt=J(Y,"remove"),yt=J(Y,"nextSibling"),bt=J(Y,"childNodes"),te=J(Y,"parentNode");if(typeof v=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,X="";const{implementation:pe,createNodeIterator:Nt,createDocumentFragment:It,getElementsByTagName:Ct}=l,{importNode:Mt}=a;let A=Et();o.isSupported=typeof _t=="function"&&typeof te=="function"&&pe&&pe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Te,ERB_EXPR:de,TMPLIT_EXPR:Ee,DATA_ATTR:wt,ARIA_ATTR:xt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:He,CUSTOM_ELEMENT:vt}=dt;let{IS_ALLOWED_URI:ze}=dt,T=null;const Ge=r({},[...ut,...Me,...we,...xe,...mt]);let d=null;const We=r({},[...pt,...Pe,...Tt,...fe]);let u=Object.seal(ve(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,_e=null;const k=Object.seal(ve(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Be=!0,ge=!0,Ye=!1,Xe=!0,U=!1,ne=!0,x=!1,Ae=!1,he=!1,F=!1,oe=!1,ie=!1,je=!0,Ve=!1;const kt="user-content-";let Se=!0,V=!1,H={},b=null;const Re=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const qe=r({},["audio","video","img","source","image","track"]);let Oe=null;const Ke=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml";let z=C,De=!1,Le=null;const Ut=r({},[ae,re,C],Ie);let se=r({},["mi","mo","mn","ms","mtext"]),le=r({},["annotation-xml"]);const Ft=r({},["title","style","font","a","script"]);let $=null;const Ht=["application/xhtml+xml","text/html"],zt="text/html";let p=null,G=null;const Gt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!="object")&&(e={}),e=I(e),$=Ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?zt:e.PARSER_MEDIA_TYPE,p=$==="application/xhtml+xml"?Ie:ue,T=y(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,p):Ge,d=y(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,p):We,Le=y(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Ie):Ut,Oe=y(e,"ADD_URI_SAFE_ATTR")?r(I(Ke),e.ADD_URI_SAFE_ATTR,p):Ke,$e=y(e,"ADD_DATA_URI_TAGS")?r(I(qe),e.ADD_DATA_URI_TAGS,p):qe,b=y(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,p):Re,j=y(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,p):I({}),_e=y(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,p):I({}),H=y(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,ne=e.SAFE_FOR_XML!==!1,x=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,oe=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,ze=e.ALLOWED_URI_REGEXP||gt,z=e.NAMESPACE||C,se=e.MATHML_TEXT_INTEGRATION_POINTS||se,le=e.HTML_INTEGRATION_POINTS||le,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(ge=!1),oe&&(F=!0),H&&(T=r({},mt),d=[],H.html===!0&&(r(T,ut),r(d,pt)),H.svg===!0&&(r(T,Me),r(d,Pe),r(d,fe)),H.svgFilters===!0&&(r(T,we),r(d,Pe),r(d,fe)),H.mathMl===!0&&(r(T,xe),r(d,Tt),r(d,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:(T===Ge&&(T=I(T)),r(T,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:(d===We&&(d=I(d)),r(d,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&r(Oe,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(b===Re&&(b=I(b)),r(b,e.FORBID_CONTENTS,p)),e.ADD_FORBID_CONTENTS&&(b===Re&&(b=I(b)),r(b,e.ADD_FORBID_CONTENTS,p)),Se&&(T["#text"]=!0),x&&r(T,["html","head","body"]),T.table&&(r(T,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=un(ee,c)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));S&&S(e),G=e}},Je=r({},[...Me,...we,...Qt]),Qe=r({},[...xe,...en]),Wt=function(e){let t=te(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});const n=ue(e.tagName),f=ue(t.tagName);return Le[e.namespaceURI]?e.namespaceURI===re?t.namespaceURI===C?n==="svg":t.namespaceURI===ae?n==="svg"&&(f==="annotation-xml"||se[f]):!!Je[n]:e.namespaceURI===ae?t.namespaceURI===C?n==="math":t.namespaceURI===re?n==="math"&&le[f]:!!Qe[n]:e.namespaceURI===C?t.namespaceURI===re&&!le[f]||t.namespaceURI===ae&&!se[f]?!1:!Qe[n]&&(Ft[n]||!Je[n]):!!($==="application/xhtml+xml"&&Le[e.namespaceURI]):!1},N=function(e){q(o.removed,{element:e});try{te(e).removeChild(e)}catch{Lt(e)}},P=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(F||oe)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,n=null;if(he)e=""+e;else{const m=Ce(e,/^[\r\n\t ]+/);n=m&&m[0]}$==="application/xhtml+xml"&&z===C&&(e=''+e+"");const f=g?g.createHTML(e):e;if(z===C)try{t=new Ot().parseFromString(f,$)}catch{}if(!t||!t.documentElement){t=pe.createDocument(z,"template",null);try{t.documentElement.innerHTML=De?X:f}catch{}}const _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===C?Ct.call(t,x?"html":"body")[0]:x?t.documentElement:_},tt=function(e){return Nt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},be=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof me=="function"&&e instanceof me};function M(i,e,t){ce(i,n=>{n.call(o,e,t,G)})}const ot=function(e){let t=null;if(M(A.beforeSanitizeElements,e,null),be(e))return N(e),!0;const n=p(e.nodeName);if(M(A.uponSanitizeElement,e,{tagName:n,allowedTags:T}),ne&&e.hasChildNodes()&&!nt(e.firstElementChild)&&h(/<[/\w!]/g,e.innerHTML)&&h(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ne&&e.nodeType===Q.comment&&h(/<[/\w]/g,e.data))return N(e),!0;if(!(k.tagCheck instanceof Function&&k.tagCheck(n))&&(!T[n]||j[n])){if(!j[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Se&&!b[n]){const f=te(e)||e.parentNode,_=bt(e)||e.childNodes;if(_&&f){const m=_.length;for(let D=m-1;D>=0;--D){const w=Dt(_[D],!0);w.__removalCount=(e.__removalCount||0)+1,f.insertBefore(w,yt(e))}}}return N(e),!0}return e instanceof Fe&&!Wt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&h(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(U&&e.nodeType===Q.text&&(t=e.textContent,ce([Te,de,Ee],f=>{t=K(t,f," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),M(A.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(je&&(t==="id"||t==="name")&&(n in l||n in Gt))return!1;if(!(ge&&!_e[t]&&h(wt,t))){if(!(Be&&h(xt,t))){if(!(k.attributeCheck instanceof Function&&k.attributeCheck(t,e))){if(!d[t]||_e[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&h(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Oe[t]){if(!h(ze,K(n,He,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&$e[e])){if(!(Ye&&!h(Pt,K(n,He,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&Ce(e,vt)},rt=function(e){M(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||be(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let f=t.length;for(;f--;){const _=t[f],{name:m,namespaceURI:D,value:w}=_,W=p(m),Ne=w;let E=m==="value"?Ne:Kt(Ne);if(n.attrName=W,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,M(A.uponSanitizeAttribute,e,n),E=n.attrValue,Ve&&(W==="id"||W==="name")&&(P(m,e),E=kt+E),ne&&h(/((--!?|])>)|<\/(style|title|textarea)/i,E)){P(m,e);continue}if(W==="attributename"&&Ce(E,"href")){P(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){P(m,e);continue}if(!Xe&&h(/\/>/i,E)){P(m,e);continue}U&&ce([Te,de,Ee],lt=>{E=K(E,lt," ")});const st=p(e.nodeName);if(!it(st,W,E)){P(m,e);continue}if(g&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!D)switch(ee.getAttributeType(st,W)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==Ne)try{D?e.setAttributeNS(D,m,E):e.setAttribute(m,E),be(e)?N(e):ft(o.removed)}catch{P(m,e)}}M(A.afterSanitizeAttributes,e,null)},Bt=function i(e){let t=null;const n=tt(e);for(M(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)M(A.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof O&&i(t.content);M(A.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(De=!i,De&&(i=""),typeof i!="string"&&!nt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!o.isSupported)return i;if(Ae||ye(e),o.removed=[],typeof i=="string"&&(V=!1),V){if(i.nodeName){const w=p(i.nodeName);if(!T[w]||j[w])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof me)t=et(""),n=t.ownerDocument.importNode(i,!0),n.nodeType===Q.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!F&&!U&&!x&&i.indexOf("<")===-1)return g&&ie?g.createHTML(i):i;if(t=et(i),!t)return F?null:ie?X:""}t&&he&&N(t.firstChild);const m=tt(V?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof O&&Bt(f.content);if(V)return i;if(F){if(oe)for(_=It.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(d.shadowroot||d.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let D=x?t.outerHTML:t.innerHTML;return x&&T["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&h(At,t.ownerDocument.doctype.name)&&(D=" -`+D),U&&ce([Te,de,Ee],w=>{D=K(D,w," ")}),g&&ie?g.createHTML(D):D},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),Ae=!0},o.clearConfig=function(){G=null,Ae=!1},o.isValidAttribute=function(i,e,t){G||ye({});const n=p(i),f=p(e);return it(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&q(A[i],e)},o.removeHook=function(i,e){if(e!==void 0){const t=Vt(A[i],e);return t===-1?void 0:$t(A[i],t,1)[0]}return ft(A[i])},o.removeHooks=function(i){A[i]=[]},o.removeAllHooks=function(){A=Et()},o}var mn=ht();export{mn as default}; diff --git a/assets/purify.es-BgtpMKW3.js b/assets/purify.es-BgtpMKW3.js new file mode 100644 index 0000000..bfd3bf1 --- /dev/null +++ b/assets/purify.es-BgtpMKW3.js @@ -0,0 +1,2 @@ +/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:_t,setPrototypeOf:ct,isFrozen:Yt,getPrototypeOf:Xt,getOwnPropertyDescriptor:jt}=Object;let{freeze:S,seal:b,create:me}=Object,{apply:ve,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});b||(b=function(o){return o});ve||(ve=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),D=2;D1?l-1:0),c=1;c1?l-1:0),c=1;c2&&arguments[2]!==void 0?arguments[2]:pe;ct&&ct(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){const D=l(c);D!==c&&(Yt(o)||(o[a]=D),c=D)}s[c]=!0}return s}function Jt(s){for(let o=0;o/gm),on=b(/\$\{[\w\W]*/gm),an=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=b(/^aria-[\-\w]+$/),gt=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=b(/^(?:\w+script|data):/i),ln=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=b(/^html$/i),cn=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var dt=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:At,ERB_EXPR:nn,IS_ALLOWED_URI:gt,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on});const Q={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null;const c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));const D="dompurify"+(a?"#"+a:"");try{return o.createPolicy(D,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+D+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn();const o=i=>ht(i);if(o.version="3.3.3",o.removed=[],!s||!s.document||s.document.nodeType!==Q.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s;const a=l,c=a.currentScript,{DocumentFragment:D,HTMLTemplateElement:v,Node:Te,Element:Fe,NodeFilter:B,NamedNodeMap:St=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Dt,trustedTypes:ee}=s,Y=Fe.prototype,Ot=J(Y,"cloneNode"),Lt=J(Y,"remove"),bt=J(Y,"nextSibling"),yt=J(Y,"childNodes"),te=J(Y,"parentNode");if(typeof v=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,X="";const{implementation:de,createNodeIterator:Nt,createDocumentFragment:Ct,getElementsByTagName:It}=l,{importNode:Mt}=a;let A=Et();o.isSupported=typeof _t=="function"&&typeof te=="function"&&de&&de.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:_e,TMPLIT_EXPR:ge,DATA_ATTR:wt,ARIA_ATTR:xt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:He,CUSTOM_ELEMENT:kt}=dt;let{IS_ALLOWED_URI:ze}=dt,T=null;const Ge=r({},[...ut,...we,...xe,...Pe,...mt]);let d=null;const We=r({},[...pt,...ke,...Tt,...ue]);let u=Object.seal(me(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,ne=null;const x=Object.seal(me(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Be=!0,Ae=!0,Ye=!1,Xe=!0,U=!1,oe=!0,P=!1,he=!1,Se=!1,F=!1,ie=!1,ae=!1,je=!0,Ve=!1;const vt="user-content-";let Re=!0,V=!1,H={},y=null;const De=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const qe=r({},["audio","video","img","source","image","track"]);let Oe=null;const Ke=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml";let z=I,Le=!1,be=null;const Ut=r({},[re,se,I],Ie);let le=r({},["mi","mo","mn","ms","mtext"]),ce=r({},["annotation-xml"]);const Ft=r({},["title","style","font","a","script"]);let $=null;const Ht=["application/xhtml+xml","text/html"],zt="text/html";let p=null,G=null;const Gt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!="object")&&(e={}),e=C(e),$=Ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?zt:e.PARSER_MEDIA_TYPE,p=$==="application/xhtml+xml"?Ie:pe,T=L(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,p):Ge,d=L(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,p):We,be=L(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Ie):Ut,Oe=L(e,"ADD_URI_SAFE_ATTR")?r(C(Ke),e.ADD_URI_SAFE_ATTR,p):Ke,$e=L(e,"ADD_DATA_URI_TAGS")?r(C(qe),e.ADD_DATA_URI_TAGS,p):qe,y=L(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,p):De,j=L(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,p):C({}),ne=L(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,p):C({}),H=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,Be=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,P=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,ae=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,ze=e.ALLOWED_URI_REGEXP||gt,z=e.NAMESPACE||I,le=e.MATHML_TEXT_INTEGRATION_POINTS||le,ce=e.HTML_INTEGRATION_POINTS||ce,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(Ae=!1),ie&&(F=!0),H&&(T=r({},mt),d=me(null),H.html===!0&&(r(T,ut),r(d,pt)),H.svg===!0&&(r(T,we),r(d,ke),r(d,ue)),H.svgFilters===!0&&(r(T,xe),r(d,ke),r(d,ue)),H.mathMl===!0&&(r(T,Pe),r(d,Tt),r(d,ue))),L(e,"ADD_TAGS")||(x.tagCheck=null),L(e,"ADD_ATTR")||(x.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?x.tagCheck=e.ADD_TAGS:(T===Ge&&(T=C(T)),r(T,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?x.attributeCheck=e.ADD_ATTR:(d===We&&(d=C(d)),r(d,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&r(Oe,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(y===De&&(y=C(y)),r(y,e.FORBID_CONTENTS,p)),e.ADD_FORBID_CONTENTS&&(y===De&&(y=C(y)),r(y,e.ADD_FORBID_CONTENTS,p)),Re&&(T["#text"]=!0),P&&r(T,["html","head","body"]),T.table&&(r(T,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=un(ee,c)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));S&&S(e),G=e}},Je=r({},[...we,...xe,...Qt]),Qe=r({},[...Pe,...en]),Wt=function(e){let t=te(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});const n=pe(e.tagName),f=pe(t.tagName);return be[e.namespaceURI]?e.namespaceURI===se?t.namespaceURI===I?n==="svg":t.namespaceURI===re?n==="svg"&&(f==="annotation-xml"||le[f]):!!Je[n]:e.namespaceURI===re?t.namespaceURI===I?n==="math":t.namespaceURI===se?n==="math"&&ce[f]:!!Qe[n]:e.namespaceURI===I?t.namespaceURI===se&&!ce[f]||t.namespaceURI===re&&!le[f]?!1:!Qe[n]&&(Ft[n]||!Je[n]):!!($==="application/xhtml+xml"&&be[e.namespaceURI]):!1},N=function(e){q(o.removed,{element:e});try{te(e).removeChild(e)}catch{Lt(e)}},k=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(F||ie)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,n=null;if(Se)e=""+e;else{const m=Me(e,/^[\r\n\t ]+/);n=m&&m[0]}$==="application/xhtml+xml"&&z===I&&(e=''+e+"");const f=g?g.createHTML(e):e;if(z===I)try{t=new Dt().parseFromString(f,$)}catch{}if(!t||!t.documentElement){t=de.createDocument(z,"template",null);try{t.documentElement.innerHTML=Le?X:f}catch{}}const _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===I?It.call(t,P?"html":"body")[0]:P?t.documentElement:_},tt=function(e){return Nt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Ne=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof Te=="function"&&e instanceof Te};function M(i,e,t){fe(i,n=>{n.call(o,e,t,G)})}const ot=function(e){let t=null;if(M(A.beforeSanitizeElements,e,null),Ne(e))return N(e),!0;const n=p(e.nodeName);if(M(A.uponSanitizeElement,e,{tagName:n,allowedTags:T}),oe&&e.hasChildNodes()&&!nt(e.firstElementChild)&&h(/<[/\w!]/g,e.innerHTML)&&h(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||oe&&e.nodeType===Q.comment&&h(/<[/\w]/g,e.data))return N(e),!0;if(!(x.tagCheck instanceof Function&&x.tagCheck(n))&&(!T[n]||j[n])){if(!j[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Re&&!y[n]){const f=te(e)||e.parentNode,_=yt(e)||e.childNodes;if(_&&f){const m=_.length;for(let O=m-1;O>=0;--O){const w=Ot(_[O],!0);w.__removalCount=(e.__removalCount||0)+1,f.insertBefore(w,bt(e))}}}return N(e),!0}return e instanceof Fe&&!Wt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&h(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(U&&e.nodeType===Q.text&&(t=e.textContent,fe([Ee,_e,ge],f=>{t=K(t,f," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),M(A.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(ne[t]||je&&(t==="id"||t==="name")&&(n in l||n in Gt))return!1;if(!(Ae&&!ne[t]&&h(wt,t))){if(!(Be&&h(xt,t))){if(!(x.attributeCheck instanceof Function&&x.attributeCheck(t,e))){if(!d[t]||ne[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&h(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Oe[t]){if(!h(ze,K(n,He,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&$e[e])){if(!(Ye&&!h(Pt,K(n,He,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&Me(e,kt)},rt=function(e){M(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ne(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let f=t.length;for(;f--;){const _=t[f],{name:m,namespaceURI:O,value:w}=_,W=p(m),Ce=w;let E=m==="value"?Ce:Kt(Ce);if(n.attrName=W,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,M(A.uponSanitizeAttribute,e,n),E=n.attrValue,Ve&&(W==="id"||W==="name")&&(k(m,e),E=vt+E),oe&&h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){k(m,e);continue}if(W==="attributename"&&Me(E,"href")){k(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){k(m,e);continue}if(!Xe&&h(/\/>/i,E)){k(m,e);continue}U&&fe([Ee,_e,ge],lt=>{E=K(E,lt," ")});const st=p(e.nodeName);if(!it(st,W,E)){k(m,e);continue}if(g&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!O)switch(ee.getAttributeType(st,W)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==Ce)try{O?e.setAttributeNS(O,m,E):e.setAttribute(m,E),Ne(e)?N(e):ft(o.removed)}catch{k(m,e)}}M(A.afterSanitizeAttributes,e,null)},Bt=function i(e){let t=null;const n=tt(e);for(M(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)M(A.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof D&&i(t.content);M(A.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(Le=!i,Le&&(i=""),typeof i!="string"&&!nt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!o.isSupported)return i;if(he||ye(e),o.removed=[],typeof i=="string"&&(V=!1),V){if(i.nodeName){const w=p(i.nodeName);if(!T[w]||j[w])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof Te)t=et(""),n=t.ownerDocument.importNode(i,!0),n.nodeType===Q.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!F&&!U&&!P&&i.indexOf("<")===-1)return g&&ae?g.createHTML(i):i;if(t=et(i),!t)return F?null:ae?X:""}t&&Se&&N(t.firstChild);const m=tt(V?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof D&&Bt(f.content);if(V)return i;if(F){if(ie)for(_=Ct.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(d.shadowroot||d.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let O=P?t.outerHTML:t.innerHTML;return P&&T["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&h(At,t.ownerDocument.doctype.name)&&(O=" +`+O),U&&fe([Ee,_e,ge],w=>{O=K(O,w," ")}),g&&ae?g.createHTML(O):O},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),he=!0},o.clearConfig=function(){G=null,he=!1},o.isValidAttribute=function(i,e,t){G||ye({});const n=p(i),f=p(e);return it(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&q(A[i],e)},o.removeHook=function(i,e){if(e!==void 0){const t=Vt(A[i],e);return t===-1?void 0:$t(A[i],t,1)[0]}return ft(A[i])},o.removeHooks=function(i){A[i]=[]},o.removeAllHooks=function(){A=Et()},o}var mn=ht();export{mn as default}; diff --git a/index.html b/index.html index b2a2c45..d209c19 100644 --- a/index.html +++ b/index.html @@ -13,8 +13,11 @@ + + + Topola Genealogy Viewer - +