school-erp-ui-shared 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,444 @@
1
+ "use strict";const G=require("react"),BC=require("@tanstack/react-query"),x=require("react/jsx-runtime"),Ge=require("lucide-react"),ns=require("react-router-dom");function $C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const is=$C(G);function gN(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=gN(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=gN(e))&&(n&&(n+=" "),n+=t);return n}const G2="-",qC=e=>{const t=zC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(G2);return s[0]===""&&s.length!==1&&s.shift(),xN(s,t)||UC(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},xN=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?xN(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(G2);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},X5=/^\[(.+)\]$/,UC=e=>{if(X5.test(e)){const t=X5.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zC=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return HC(Object.entries(e.classGroups),r).forEach(([a,o])=>{oy(o,n,a,t)}),n},oy=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:J5(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(WC(i)){oy(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{oy(o,J5(t,a),r,n)})})},J5=(e,t)=>{let r=e;return t.split(G2).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},WC=e=>e.isThemeGetter,HC=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,GC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},yN="!",VC=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let c=0,u=0,f;for(let v=0;v<s.length;v++){let y=s[v];if(c===0){if(y===i&&(n||s.slice(v,v+a)===t)){l.push(s.slice(u,v)),u=v+a;continue}if(y==="/"){f=v;continue}}y==="["?c++:y==="]"&&c--}const d=l.length===0?s:s.substring(u),h=d.startsWith(yN),g=h?d.substring(1):d,p=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},YC=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},KC=e=>({cache:GC(e.cacheSize),parseClassName:VC(e),...qC(e)}),XC=/\s+/,JC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(XC);let s="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(c);let g=!!h,p=n(g?d.substring(0,h):d);if(!p){if(!g){s=c+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=c+(s.length>0?" "+s:s);continue}g=!1}const v=YC(u).join(":"),y=f?v+yN:v,b=y+p;if(a.includes(b))continue;a.push(b);const _=i(p,g);for(let S=0;S<_.length;++S){const A=_[S];a.push(y+A)}s=c+(s.length>0?" "+s:s)}return s};function ZC(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=bN(t))&&(n&&(n+=" "),n+=r);return n}const bN=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=bN(e[n]))&&(r&&(r+=" "),r+=t);return r};function QC(e,...t){let r,n,i,a=o;function o(l){const c=t.reduce((u,f)=>f(u),e());return r=KC(c),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const c=n(l);if(c)return c;const u=JC(l,r);return i(l,u),u}return function(){return a(ZC.apply(null,arguments))}}const jr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},wN=/^\[(?:([a-z-]+):)?(.+)\]$/i,ek=/^\d+\/\d+$/,tk=new Set(["px","full","screen"]),rk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ik=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ak=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ok=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ro=e=>ec(e)||tk.has(e)||ek.test(e),zo=e=>$c(e,"length",pk),ec=e=>!!e&&!Number.isNaN(Number(e)),k1=e=>$c(e,"number",ec),Nu=e=>!!e&&Number.isInteger(Number(e)),sk=e=>e.endsWith("%")&&ec(e.slice(0,-1)),$t=e=>wN.test(e),Wo=e=>rk.test(e),lk=new Set(["length","size","percentage"]),ck=e=>$c(e,lk,_N),uk=e=>$c(e,"position",_N),fk=new Set(["image","url"]),hk=e=>$c(e,fk,vk),dk=e=>$c(e,"",mk),Pu=()=>!0,$c=(e,t,r)=>{const n=wN.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},pk=e=>nk.test(e)&&!ik.test(e),_N=()=>!1,mk=e=>ak.test(e),vk=e=>ok.test(e),gk=()=>{const e=jr("colors"),t=jr("spacing"),r=jr("blur"),n=jr("brightness"),i=jr("borderColor"),a=jr("borderRadius"),o=jr("borderSpacing"),s=jr("borderWidth"),l=jr("contrast"),c=jr("grayscale"),u=jr("hueRotate"),f=jr("invert"),d=jr("gap"),h=jr("gradientColorStops"),g=jr("gradientColorStopPositions"),p=jr("inset"),v=jr("margin"),y=jr("opacity"),b=jr("padding"),_=jr("saturate"),S=jr("scale"),A=jr("sepia"),P=jr("skew"),T=jr("space"),k=jr("translate"),L=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",$t,t],N=()=>[$t,t],D=()=>["",ro,zo],U=()=>["auto",ec,$t],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",$t],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[ec,$t];return{cacheSize:500,separator:":",theme:{colors:[Pu],spacing:[ro,zo],blur:["none","",Wo,$t],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Wo,$t],borderSpacing:N(),borderWidth:D(),contrast:ce(),grayscale:Z(),hueRotate:ce(),invert:Z(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[sk,zo],inset:j(),margin:j(),opacity:ce(),padding:N(),saturate:ce(),scale:ce(),sepia:Z(),skew:ce(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",$t]}],container:["container"],columns:[{columns:[Wo]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),$t]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Nu,$t]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$t]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Nu,$t]}],"grid-cols":[{"grid-cols":[Pu]}],"col-start-end":[{col:["auto",{span:["full",Nu,$t]},$t]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Pu]}],"row-start-end":[{row:["auto",{span:[Nu,$t]},$t]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$t]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$t,t]}],"min-w":[{"min-w":[$t,t,"min","max","fit"]}],"max-w":[{"max-w":[$t,t,"none","full","min","max","fit","prose",{screen:[Wo]},Wo]}],h:[{h:[$t,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$t,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wo,zo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",k1]}],"font-family":[{font:[Pu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$t]}],"line-clamp":[{"line-clamp":["none",ec,k1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ro,$t]}],"list-image":[{"list-image":["none",$t]}],"list-style-type":[{list:["none","disc","decimal",$t]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ro,zo]}],"underline-offset":[{"underline-offset":["auto",ro,$t]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$t]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),uk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ck]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:R()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[ro,$t]}],"outline-w":[{outline:[ro,zo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ro,zo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wo,dk]}],"shadow-color":[{shadow:[Pu]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Wo,$t]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$t]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",$t]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",$t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Nu,$t]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$t]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$t]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$t]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ro,zo,k1]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},xk=QC(gk);function vt(...e){return xk(Rt(e))}function yk(e,t,r){const n=[t.join(","),...r.map(s=>s.map(l=>`"${String(l||"").replace(/"/g,'""')}"`).join(","))].join(`
2
+ `),i=new Blob([n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(i),o=document.createElement("a");o.href=a,o.download=`${e}.csv`,o.click(),URL.revokeObjectURL(a)}function cr(e){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(e)}var Wn=Uint8Array,ki=Uint16Array,V2=Int32Array,op=new Wn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sp=new Wn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),sy=new Wn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),SN=function(e,t){for(var r=new ki(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new V2(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},AN=SN(op,2),TN=AN.b,ly=AN.r;TN[28]=258,ly[258]=28;var EN=SN(sp,0),bk=EN.b,Z5=EN.r,cy=new ki(32768);for(var Lr=0;Lr<32768;++Lr){var Ho=(Lr&43690)>>1|(Lr&21845)<<1;Ho=(Ho&52428)>>2|(Ho&13107)<<2,Ho=(Ho&61680)>>4|(Ho&3855)<<4,cy[Lr]=((Ho&65280)>>8|(Ho&255)<<8)>>1}var Ma=(function(e,t,r){for(var n=e.length,i=0,a=new ki(t);i<n;++i)e[i]&&++a[e[i]-1];var o=new ki(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(r){s=new ki(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],f=o[e[i]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)s[cy[f]>>l]=c}else for(s=new ki(n),i=0;i<n;++i)e[i]&&(s[i]=cy[o[e[i]-1]++]>>15-e[i]);return s}),as=new Wn(288);for(var Lr=0;Lr<144;++Lr)as[Lr]=8;for(var Lr=144;Lr<256;++Lr)as[Lr]=9;for(var Lr=256;Lr<280;++Lr)as[Lr]=7;for(var Lr=280;Lr<288;++Lr)as[Lr]=8;var uf=new Wn(32);for(var Lr=0;Lr<32;++Lr)uf[Lr]=5;var wk=Ma(as,9,0),_k=Ma(as,9,1),Sk=Ma(uf,5,0),Ak=Ma(uf,5,1),L1=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},sa=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},I1=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Y2=function(e){return(e+7)/8|0},NN=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Wn(e.subarray(t,r))},Tk=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ha=function(e,t,r){var n=new Error(t||Tk[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,ha),!r)throw n;return n},Ek=function(e,t,r,n){var i=e.length,a=0;if(!i||t.f&&!t.l)return r||new Wn(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new Wn(i*3));var c=function(we){var se=r.length;if(we>se){var Fe=new Wn(Math.max(se*2,we));Fe.set(r),r=Fe}},u=t.f||0,f=t.p||0,d=t.b||0,h=t.l,g=t.d,p=t.m,v=t.n,y=i*8;do{if(!h){u=sa(e,f,1);var b=sa(e,f+1,3);if(f+=3,b)if(b==1)h=_k,g=Ak,p=9,v=5;else if(b==2){var P=sa(e,f,31)+257,T=sa(e,f+10,15)+4,k=P+sa(e,f+5,31)+1;f+=14;for(var L=new Wn(k),B=new Wn(19),j=0;j<T;++j)B[sy[j]]=sa(e,f+j*3,7);f+=T*3;for(var N=L1(B),D=(1<<N)-1,U=Ma(B,N,1),j=0;j<k;){var W=U[sa(e,f,D)];f+=W&15;var _=W>>4;if(_<16)L[j++]=_;else{var R=0,z=0;for(_==16?(z=3+sa(e,f,3),f+=2,R=L[j-1]):_==17?(z=3+sa(e,f,7),f+=3):_==18&&(z=11+sa(e,f,127),f+=7);z--;)L[j++]=R}}var Q=L.subarray(0,P),Z=L.subarray(P);p=L1(Q),v=L1(Z),h=Ma(Q,p,1),g=Ma(Z,v,1)}else ha(1);else{var _=Y2(f)+4,S=e[_-4]|e[_-3]<<8,A=_+S;if(A>i){l&&ha(0);break}s&&c(d+S),r.set(e.subarray(_,A),d),t.b=d+=S,t.p=f=A*8,t.f=u;continue}if(f>y){l&&ha(0);break}}s&&c(d+131072);for(var ee=(1<<p)-1,ce=(1<<v)-1,O=f;;O=f){var R=h[I1(e,f)&ee],I=R>>4;if(f+=R&15,f>y){l&&ha(0);break}if(R||ha(2),I<256)r[d++]=I;else if(I==256){O=f,h=null;break}else{var M=I-254;if(I>264){var j=I-257,q=op[j];M=sa(e,f,(1<<q)-1)+TN[j],f+=q}var Y=g[I1(e,f)&ce],fe=Y>>4;Y||ha(3),f+=Y&15;var Z=bk[fe];if(fe>3){var q=sp[fe];Z+=I1(e,f)&(1<<q)-1,f+=q}if(f>y){l&&ha(0);break}s&&c(d+131072);var ae=d+M;if(d<Z){var ne=a-Z,ve=Math.min(Z,ae);for(ne+d<0&&ha(3);d<ve;++d)r[d]=n[ne+d]}for(;d<ae;++d)r[d]=r[d-Z]}}t.l=h,t.p=O,t.b=d,t.f=u,h&&(u=1,t.m=p,t.d=g,t.n=v)}while(!u);return d!=r.length&&o?NN(r,0,d):r.subarray(0,d)},no=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Ou=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},F1=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:ON,l:0};if(i==1){var o=new Wn(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(A,P){return A.f-P.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[c].f<r[f].f?c++:f++],l=r[c!=u&&r[c].f<r[f].f?c++:f++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=a[0].s,n=1;n<i;++n)a[n].s>d&&(d=a[n].s);var h=new ki(d+1),g=uy(r[u-1],h,0);if(g>t){var n=0,p=0,v=g-t,y=1<<v;for(a.sort(function(P,T){return h[T.s]-h[P.s]||P.f-T.f});n<i;++n){var b=a[n].s;if(h[b]>t)p+=y-(1<<g-h[b]),h[b]=t;else break}for(p>>=v;p>0;){var _=a[n].s;h[_]<t?p-=1<<t-h[_]++-1:++n}for(;n>=0&&p;--n){var S=a[n].s;h[S]==t&&(--h[S],++p)}g=t}return{t:new Wn(h),l:g}},uy=function(e,t,r){return e.s==-1?Math.max(uy(e.l,t,r+1),uy(e.r,t,r+1)):t[e.s]=r},Q5=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new ki(++t),n=0,i=e[0],a=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},ju=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},PN=function(e,t,r){var n=r.length,i=Y2(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},ew=function(e,t,r,n,i,a,o,s,l,c,u){no(t,u++,r),++i[256];for(var f=F1(i,15),d=f.t,h=f.l,g=F1(a,15),p=g.t,v=g.l,y=Q5(d),b=y.c,_=y.n,S=Q5(p),A=S.c,P=S.n,T=new ki(19),k=0;k<b.length;++k)++T[b[k]&31];for(var k=0;k<A.length;++k)++T[A[k]&31];for(var L=F1(T,7),B=L.t,j=L.l,N=19;N>4&&!B[sy[N-1]];--N);var D=c+5<<3,U=ju(i,as)+ju(a,uf)+o,W=ju(i,d)+ju(a,p)+o+14+3*N+ju(T,B)+2*T[16]+3*T[17]+7*T[18];if(l>=0&&D<=U&&D<=W)return PN(t,u,e.subarray(l,l+c));var R,z,Q,Z;if(no(t,u,1+(W<U)),u+=2,W<U){R=Ma(d,h,0),z=d,Q=Ma(p,v,0),Z=p;var ee=Ma(B,j,0);no(t,u,_-257),no(t,u+5,P-1),no(t,u+10,N-4),u+=14;for(var k=0;k<N;++k)no(t,u+3*k,B[sy[k]]);u+=3*N;for(var ce=[b,A],O=0;O<2;++O)for(var I=ce[O],k=0;k<I.length;++k){var M=I[k]&31;no(t,u,ee[M]),u+=B[M],M>15&&(no(t,u,I[k]>>5&127),u+=I[k]>>12)}}else R=wk,z=as,Q=Sk,Z=uf;for(var k=0;k<s;++k){var q=n[k];if(q>255){var M=q>>18&31;Ou(t,u,R[M+257]),u+=z[M+257],M>7&&(no(t,u,q>>23&31),u+=op[M]);var Y=q&31;Ou(t,u,Q[Y]),u+=Z[Y],Y>3&&(Ou(t,u,q>>5&8191),u+=sp[Y])}else Ou(t,u,R[q]),u+=z[q]}return Ou(t,u,R[256]),u+z[256]},Nk=new V2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ON=new Wn(0),Pk=function(e,t,r,n,i,a){var o=a.z||e.length,s=new Wn(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),c=a.l,u=(a.r||0)&7;if(t){u&&(l[0]=a.r>>3);for(var f=Nk[t-1],d=f>>13,h=f&8191,g=(1<<r)-1,p=a.p||new ki(32768),v=a.h||new ki(g+1),y=Math.ceil(r/3),b=2*y,_=function(Ae){return(e[Ae]^e[Ae+1]<<y^e[Ae+2]<<b)&g},S=new V2(25e3),A=new ki(288),P=new ki(32),T=0,k=0,L=a.i||0,B=0,j=a.w||0,N=0;L+2<o;++L){var D=_(L),U=L&32767,W=v[D];if(p[U]=W,v[D]=U,j<=L){var R=o-L;if((T>7e3||B>24576)&&(R>423||!c)){u=ew(e,l,0,S,A,P,k,B,N,L-N,u),B=T=k=0,N=L;for(var z=0;z<286;++z)A[z]=0;for(var z=0;z<30;++z)P[z]=0}var Q=2,Z=0,ee=h,ce=U-W&32767;if(R>2&&D==_(L-ce))for(var O=Math.min(d,R)-1,I=Math.min(32767,L),M=Math.min(258,R);ce<=I&&--ee&&U!=W;){if(e[L+Q]==e[L+Q-ce]){for(var q=0;q<M&&e[L+q]==e[L+q-ce];++q);if(q>Q){if(Q=q,Z=ce,q>O)break;for(var Y=Math.min(ce,q-2),fe=0,z=0;z<Y;++z){var ae=L-ce+z&32767,ne=p[ae],ve=ae-ne&32767;ve>fe&&(fe=ve,W=ae)}}}U=W,W=p[U],ce+=U-W&32767}if(Z){S[B++]=268435456|ly[Q]<<18|Z5[Z];var we=ly[Q]&31,se=Z5[Z]&31;k+=op[we]+sp[se],++A[257+we],++P[se],j=L+Q,++T}else S[B++]=e[L],++A[e[L]]}}for(L=Math.max(L,j);L<o;++L)S[B++]=e[L],++A[e[L]];u=ew(e,l,c,S,A,P,k,B,N,L-N,u),c||(a.r=u&7|l[u/8|0]<<3,u-=7,a.h=v,a.p=p,a.i=L,a.w=j)}else{for(var L=a.w||0;L<o+c;L+=65535){var Fe=L+65535;Fe>=o&&(l[u/8|0]=c,Fe=o),u=PN(l,u+1,e.subarray(L,Fe))}a.i=o}return NN(s,0,n+Y2(u)+i)},jN=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=n+=r[o];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Ok=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Wn(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return Pk(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},CN=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},jk=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=jN();i.p(t.dictionary),CN(e,2,i.d())}},Ck=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ha(6,"invalid zlib data"),(e[1]>>5&1)==1&&ha(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function fy(e,t){t||(t={});var r=jN();r.p(e);var n=Ok(e,t,t.dictionary?6:2,4);return jk(n,t),CN(n,n.length-4,r.d()),n}function kk(e,t){return Ek(e.subarray(Ck(e),-4),{i:2},t,t)}var Lk=typeof TextDecoder<"u"&&new TextDecoder,Ik=0;try{Lk.decode(ON,{stream:!0}),Ik=1}catch{}/** @license
3
+ *
4
+ * jsPDF - PDF Document creation from JavaScript
5
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
6
+ * CommitID 00000000
7
+ *
8
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
9
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
10
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
11
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
12
+ * 2010 Aaron Spike, https://github.com/acspike
13
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
14
+ * 2012 Pablo Hess, https://github.com/pablohess
15
+ * 2012 Florian Jenett, https://github.com/fjenett
16
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
17
+ * 2013 Youssef Beddad, https://github.com/lifof
18
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
19
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
20
+ * 2013 Jeremy Morel, https://github.com/jmorel
21
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
22
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
23
+ * 2014 James Makes, https://github.com/dollaruw
24
+ * 2014 Diego Casorran, https://github.com/diegocr
25
+ * 2014 Steven Spungin, https://github.com/Flamenco
26
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining
29
+ * a copy of this software and associated documentation files (the
30
+ * "Software"), to deal in the Software without restriction, including
31
+ * without limitation the rights to use, copy, modify, merge, publish,
32
+ * distribute, sublicense, and/or sell copies of the Software, and to
33
+ * permit persons to whom the Software is furnished to do so, subject to
34
+ * the following conditions:
35
+ *
36
+ * The above copyright notice and this permission notice shall be
37
+ * included in all copies or substantial portions of the Software.
38
+ *
39
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
43
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
44
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
45
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
+ *
47
+ * Contributor(s):
48
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
49
+ * kim3er, mfo, alnorth, Flamenco
50
+ */var Pt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function M1(){Pt.console&&typeof Pt.console.log=="function"&&Pt.console.log.apply(Pt.console,arguments)}var Tr={log:M1,warn:function(e){Pt.console&&(typeof Pt.console.warn=="function"?Pt.console.warn.apply(Pt.console,arguments):M1.call(null,arguments))},error:function(e){Pt.console&&(typeof Pt.console.error=="function"?Pt.console.error.apply(Pt.console,arguments):M1(e))}};function D1(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Ps(n.response,t,r)},n.onerror=function(){Tr.error("could not download file")},n.send()}function tw(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function u0(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Hu,hy,Ps=Pt.saveAs||((typeof window>"u"?"undefined":cr(window))!=="object"||window!==Pt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Pt.URL||Pt.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?tw(i.href)?D1(e,t,r):u0(i,i.target="_blank"):u0(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){u0(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(tw(e))D1(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){u0(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:cr(a)!=="object"&&(Tr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return D1(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test(Pt.HTMLElement)||Pt.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":cr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(e)}else{var l=Pt.URL||Pt.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout((function(){l.revokeObjectURL(c)}),4e4)}});/**
51
+ * A class to parse color values
52
+ * @author Stoyan Stefanov <sstoo@gmail.com>
53
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
54
+ * @license Use it if you like it
55
+ */function kN(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
56
+ * @license
57
+ * Joseph Myers does not specify a particular license for his work.
58
+ *
59
+ * Author: Joseph Myers
60
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
61
+ *
62
+ * Modified by: Owen Leong
63
+ */function R1(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=Rn(r,n,i,a,t[0],7,-680876936),a=Rn(a,r,n,i,t[1],12,-389564586),i=Rn(i,a,r,n,t[2],17,606105819),n=Rn(n,i,a,r,t[3],22,-1044525330),r=Rn(r,n,i,a,t[4],7,-176418897),a=Rn(a,r,n,i,t[5],12,1200080426),i=Rn(i,a,r,n,t[6],17,-1473231341),n=Rn(n,i,a,r,t[7],22,-45705983),r=Rn(r,n,i,a,t[8],7,1770035416),a=Rn(a,r,n,i,t[9],12,-1958414417),i=Rn(i,a,r,n,t[10],17,-42063),n=Rn(n,i,a,r,t[11],22,-1990404162),r=Rn(r,n,i,a,t[12],7,1804603682),a=Rn(a,r,n,i,t[13],12,-40341101),i=Rn(i,a,r,n,t[14],17,-1502002290),r=Bn(r,n=Rn(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=Bn(a,r,n,i,t[6],9,-1069501632),i=Bn(i,a,r,n,t[11],14,643717713),n=Bn(n,i,a,r,t[0],20,-373897302),r=Bn(r,n,i,a,t[5],5,-701558691),a=Bn(a,r,n,i,t[10],9,38016083),i=Bn(i,a,r,n,t[15],14,-660478335),n=Bn(n,i,a,r,t[4],20,-405537848),r=Bn(r,n,i,a,t[9],5,568446438),a=Bn(a,r,n,i,t[14],9,-1019803690),i=Bn(i,a,r,n,t[3],14,-187363961),n=Bn(n,i,a,r,t[8],20,1163531501),r=Bn(r,n,i,a,t[13],5,-1444681467),a=Bn(a,r,n,i,t[2],9,-51403784),i=Bn(i,a,r,n,t[7],14,1735328473),r=$n(r,n=Bn(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=$n(a,r,n,i,t[8],11,-2022574463),i=$n(i,a,r,n,t[11],16,1839030562),n=$n(n,i,a,r,t[14],23,-35309556),r=$n(r,n,i,a,t[1],4,-1530992060),a=$n(a,r,n,i,t[4],11,1272893353),i=$n(i,a,r,n,t[7],16,-155497632),n=$n(n,i,a,r,t[10],23,-1094730640),r=$n(r,n,i,a,t[13],4,681279174),a=$n(a,r,n,i,t[0],11,-358537222),i=$n(i,a,r,n,t[3],16,-722521979),n=$n(n,i,a,r,t[6],23,76029189),r=$n(r,n,i,a,t[9],4,-640364487),a=$n(a,r,n,i,t[12],11,-421815835),i=$n(i,a,r,n,t[15],16,530742520),r=qn(r,n=$n(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=qn(a,r,n,i,t[7],10,1126891415),i=qn(i,a,r,n,t[14],15,-1416354905),n=qn(n,i,a,r,t[5],21,-57434055),r=qn(r,n,i,a,t[12],6,1700485571),a=qn(a,r,n,i,t[3],10,-1894986606),i=qn(i,a,r,n,t[10],15,-1051523),n=qn(n,i,a,r,t[1],21,-2054922799),r=qn(r,n,i,a,t[8],6,1873313359),a=qn(a,r,n,i,t[15],10,-30611744),i=qn(i,a,r,n,t[6],15,-1560198380),n=qn(n,i,a,r,t[13],21,1309151649),r=qn(r,n,i,a,t[4],6,-145523070),a=qn(a,r,n,i,t[11],10,-1120210379),i=qn(i,a,r,n,t[2],15,718787259),n=qn(n,i,a,r,t[9],21,-343485551),e[0]=Jo(r,e[0]),e[1]=Jo(n,e[1]),e[2]=Jo(i,e[2]),e[3]=Jo(a,e[3])}function lp(e,t,r,n,i,a){return t=Jo(Jo(t,e),Jo(n,a)),Jo(t<<i|t>>>32-i,r)}function Rn(e,t,r,n,i,a,o){return lp(t&r|~t&n,e,t,i,a,o)}function Bn(e,t,r,n,i,a,o){return lp(t&n|r&~n,e,t,i,a,o)}function $n(e,t,r,n,i,a,o){return lp(t^r^n,e,t,i,a,o)}function qn(e,t,r,n,i,a,o){return lp(r^(t|~n),e,t,i,a,o)}function LN(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)R1(n,Fk(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(R1(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,R1(n,i),n}function Fk(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}Hu=Pt.atob.bind(Pt),hy=Pt.btoa.bind(Pt);var rw="0123456789abcdef".split("");function Mk(e){for(var t="",r=0;r<4;r++)t+=rw[e>>8*r+4&15]+rw[e>>8*r&15];return t}function Dk(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function dy(e){return LN(e).map(Dk).join("")}var Rk=(function(e){for(var t=0;t<e.length;t++)e[t]=Mk(e[t]);return e.join("")})(LN("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jo(e,t){if(Rk){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
64
+ * @license
65
+ * FPDF is released under a permissive license: there is no usage restriction.
66
+ * You may embed it freely in your application (commercial or not), with or
67
+ * without modifications.
68
+ *
69
+ * Reference: http://www.fpdf.org/en/script/script37.php
70
+ */function py(e,t){var r,n,i,a;if(e!==r){for(var o=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=e,n=s}else s=n;var f=t.length,d=0,h=0,g="";for(l=0;l<f;l++)h=(h+(u=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=u,o=s[(s[d]+s[h])%256],g+=String.fromCharCode(t.charCodeAt(l)^o);return g}/**
71
+ * @license
72
+ * Licensed under the MIT License.
73
+ * http://opensource.org/licenses/mit-license
74
+ * Author: Owen Leong (@owenl131)
75
+ * Date: 15 Oct 2020
76
+ * References:
77
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
78
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
79
+ * http://www.fpdf.org/en/script/script37.php
80
+ */var nw={print:4,modify:8,copy:16,"annot-forms":32};function Hl(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach((function(s){if(nw.perm!==void 0)throw new Error("Invalid permission: "+s);i+=nw[s]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=dy(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=py(this.encryptionKey,this.padding)}function Gl(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[n]}return t}function iw(e){if(cr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var a=Math.random().toString(35);return t[r][a]=[n,!!i],a},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[r]){var o=t[r][a];try{o[0].apply(e,n)}catch(s){Pt.console&&Tr.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ff(e){if(!(this instanceof ff))return new ff(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function IN(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ko(e,t,r,n,i){if(!(this instanceof Ko))return new Ko(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,IN.call(this,n,i)}function Ls(e,t,r,n,i){if(!(this instanceof Ls))return new Ls(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,IN.call(this,n,i)}function xt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,c="S",u=null;cr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,d={},h={internal:{},__private__:{}};h.__private__.PubSub=iw;var g="1.3",p=h.__private__.getPdfVersion=function(){return g};h.__private__.setPdfVersion=function(E){g=E};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return v};var y=h.__private__.getPageFormat=function(E){return v[E]};i=i||"a4";var b={COMPAT:"compat",ADVANCED:"advanced"},_=b.COMPAT;function S(){this.saveGraphicsState(),le(new _t(at,0,0,-at,0,Co()*at).toString()+" cm"),this.setFontSize(this.getFontSize()/at),c="n",_=b.ADVANCED}function A(){this.restoreGraphicsState(),c="S",_=b.COMPAT}var P=h.__private__.combineFontStyleAndFontWeight=function(E,V){if(E=="bold"&&V=="normal"||E=="bold"&&V==400||E=="normal"&&V=="italic"||E=="bold"&&V=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return V&&(E=V==400||V==="normal"?E==="italic"?"italic":"normal":V!=700&&V!=="bold"||E!=="normal"?(V==700?"bold":V)+""+E:"bold"),E};h.advancedAPI=function(E){var V=_===b.COMPAT;return V&&S.call(this),typeof E!="function"||(E(this),V&&A.call(this)),this},h.compatAPI=function(E){var V=_===b.ADVANCED;return V&&A.call(this),typeof E!="function"||(E(this),V&&S.call(this)),this},h.isAdvancedAPI=function(){return _===b.ADVANCED};var T,k=function(E){if(_!==b.ADVANCED)throw new Error(E+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=h.roundToPrecision=h.__private__.roundToPrecision=function(E,V){var me=t||V;if(isNaN(E)||isNaN(me))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return E.toFixed(me).replace(/0+$/,"")};T=h.hpf=h.__private__.hpf=typeof l=="number"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,l)}:l==="smart"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,E>-1&&E<1?16:5)}:function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,16)};var B=h.f2=h.__private__.f2=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f2");return L(E,2)},j=h.__private__.f3=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f3");return L(E,3)},N=h.scale=h.__private__.scale=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.scale");return _===b.COMPAT?E*at:_===b.ADVANCED?E:void 0},D=function(E){return _===b.COMPAT?Co()-E:_===b.ADVANCED?E:void 0},U=function(E){return N(D(E))};h.__private__.setPrecision=h.setPrecision=function(E){typeof parseInt(E,10)=="number"&&(t=parseInt(E,10))};var W,R="00000000000000000000000000000000",z=h.__private__.getFileId=function(){return R},Q=h.__private__.setFileId=function(E){return R=E!==void 0&&/^[a-fA-F0-9]{32}$/.test(E)?E.toUpperCase():R.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),u!==null&&(Mn=new Hl(u.userPermissions,u.userPassword,u.ownerPassword,R)),R};h.setFileId=function(E){return Q(E),this},h.getFileId=function(){return z()};var Z=h.__private__.convertDateToPDFDate=function(E){var V=E.getTimezoneOffset(),me=V<0?"+":"-",ge=Math.floor(Math.abs(V/60)),Te=Math.abs(V%60),Me=[me,M(ge),"'",M(Te),"'"].join("");return["D:",E.getFullYear(),M(E.getMonth()+1),M(E.getDate()),M(E.getHours()),M(E.getMinutes()),M(E.getSeconds()),Me].join("")},ee=h.__private__.convertPDFDateToDate=function(E){var V=parseInt(E.substr(2,4),10),me=parseInt(E.substr(6,2),10)-1,ge=parseInt(E.substr(8,2),10),Te=parseInt(E.substr(10,2),10),Me=parseInt(E.substr(12,2),10),Ve=parseInt(E.substr(14,2),10);return new Date(V,me,ge,Te,Me,Ve,0)},ce=h.__private__.setCreationDate=function(E){var V;if(E===void 0&&(E=new Date),E instanceof Date)V=Z(E);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(E))throw new Error("Invalid argument passed to jsPDF.setCreationDate");V=E}return W=V},O=h.__private__.getCreationDate=function(E){var V=W;return E==="jsDate"&&(V=ee(W)),V};h.setCreationDate=function(E){return ce(E),this},h.getCreationDate=function(E){return O(E)};var I,M=h.__private__.padd2=function(E){return("0"+parseInt(E)).slice(-2)},q=h.__private__.padd2Hex=function(E){return("00"+(E=E.toString())).substr(E.length)},Y=0,fe=[],ae=[],ne=0,ve=[],we=[],se=!1,Fe=ae,Ae=function(){Y=0,ne=0,ae=[],fe=[],ve=[],ie=Rr(),oe=Rr()};h.__private__.setCustomOutputDestination=function(E){se=!0,Fe=E};var Ee=function(E){se||(Fe=E)};h.__private__.resetCustomOutputDestination=function(){se=!1,Fe=ae};var le=h.__private__.out=function(E){return E=E.toString(),ne+=E.length+1,Fe.push(E),Fe},Re=h.__private__.write=function(E){return le(arguments.length===1?E.toString():Array.prototype.join.call(arguments," "))},tt=h.__private__.getArrayBuffer=function(E){for(var V=E.length,me=new ArrayBuffer(V),ge=new Uint8Array(me);V--;)ge[V]=E.charCodeAt(V);return me},Ue=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Ue};var Ke=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(E){return Ke=_===b.ADVANCED?E/at:E,this};var Ze,Je=h.__private__.getFontSize=h.getFontSize=function(){return _===b.COMPAT?Ke:Ke*at},ft=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(E){return ft=E,this},h.__private__.getR2L=h.getR2L=function(){return ft};var pt,bt=h.__private__.setZoomMode=function(E){var V=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(E))Ze=E;else if(isNaN(E)){if(V.indexOf(E)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+E+'" is not recognized.');Ze=E}else Ze=parseInt(E,10)};h.__private__.getZoomMode=function(){return Ze};var Ot,Ft=h.__private__.setPageMode=function(E){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(E)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+E+'" is not recognized.');pt=E};h.__private__.getPageMode=function(){return pt};var zt=h.__private__.setLayoutMode=function(E){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(E)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+E+'" is not recognized.');Ot=E};h.__private__.getLayoutMode=function(){return Ot},h.__private__.setDisplayMode=h.setDisplayMode=function(E,V,me){return bt(E),zt(V),Ft(me),this};var wt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(E){if(Object.keys(wt).indexOf(E)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return wt[E]},h.__private__.getDocumentProperties=function(){return wt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(E){for(var V in wt)wt.hasOwnProperty(V)&&E[V]&&(wt[V]=E[V]);return this},h.__private__.setDocumentProperty=function(E,V){if(Object.keys(wt).indexOf(E)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return wt[E]=V};var Mt,at,Dr,Wt,An,Vt={},fr={},Vn=[],_e={},mt={},Et={},Sr={},Yt=null,Nt=0,At=[],Xt=new iw(h),Ha=e.hotfixes||[],ln={},Ii={},Fi=[],_t=function E(V,me,ge,Te,Me,Ve){if(!(this instanceof E))return new E(V,me,ge,Te,Me,Ve);isNaN(V)&&(V=1),isNaN(me)&&(me=0),isNaN(ge)&&(ge=0),isNaN(Te)&&(Te=1),isNaN(Me)&&(Me=0),isNaN(Ve)&&(Ve=0),this._matrix=[V,me,ge,Te,Me,Ve]};Object.defineProperty(_t.prototype,"sx",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(_t.prototype,"shy",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(_t.prototype,"shx",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(_t.prototype,"sy",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(_t.prototype,"tx",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(_t.prototype,"ty",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(_t.prototype,"a",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(_t.prototype,"b",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(_t.prototype,"c",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(_t.prototype,"d",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(_t.prototype,"e",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(_t.prototype,"f",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(_t.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(_t.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(_t.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(_t.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),_t.prototype.join=function(E){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(E)},_t.prototype.multiply=function(E){var V=E.sx*this.sx+E.shy*this.shx,me=E.sx*this.shy+E.shy*this.sy,ge=E.shx*this.sx+E.sy*this.shx,Te=E.shx*this.shy+E.sy*this.sy,Me=E.tx*this.sx+E.ty*this.shx+this.tx,Ve=E.tx*this.shy+E.ty*this.sy+this.ty;return new _t(V,me,ge,Te,Me,Ve)},_t.prototype.decompose=function(){var E=this.sx,V=this.shy,me=this.shx,ge=this.sy,Te=this.tx,Me=this.ty,Ve=Math.sqrt(E*E+V*V),ct=(E/=Ve)*me+(V/=Ve)*ge;me-=E*ct,ge-=V*ct;var gt=Math.sqrt(me*me+ge*ge);return ct/=gt,E*(ge/=gt)<V*(me/=gt)&&(E=-E,V=-V,ct=-ct,Ve=-Ve),{scale:new _t(Ve,0,0,gt,0,0),translate:new _t(1,0,0,1,Te,Me),rotate:new _t(E,V,-V,E,0,0),skew:new _t(1,0,ct,1,0,0)}},_t.prototype.toString=function(E){return this.join(" ")},_t.prototype.inversed=function(){var E=this.sx,V=this.shy,me=this.shx,ge=this.sy,Te=this.tx,Me=this.ty,Ve=1/(E*ge-V*me),ct=ge*Ve,gt=-V*Ve,Dt=-me*Ve,Lt=E*Ve;return new _t(ct,gt,Dt,Lt,-ct*Te-Dt*Me,-gt*Te-Lt*Me)},_t.prototype.applyToPoint=function(E){var V=E.x*this.sx+E.y*this.shx+this.tx,me=E.x*this.shy+E.y*this.sy+this.ty;return new gl(V,me)},_t.prototype.applyToRectangle=function(E){var V=this.applyToPoint(E),me=this.applyToPoint(new gl(E.x+E.w,E.y+E.h));return new su(V.x,V.y,me.x-V.x,me.y-V.y)},_t.prototype.clone=function(){var E=this.sx,V=this.shy,me=this.shx,ge=this.sy,Te=this.tx,Me=this.ty;return new _t(E,V,me,ge,Te,Me)},h.Matrix=_t;var xi=h.matrixMult=function(E,V){return V.multiply(E)},ai=new _t(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=ai;var Fn=function(E,V){if(!mt[E]){var me=(V instanceof Ko?"Sh":"P")+(Object.keys(_e).length+1).toString(10);V.id=me,mt[E]=me,_e[me]=V,Xt.publish("addPattern",V)}};h.ShadingPattern=Ko,h.TilingPattern=Ls,h.addShadingPattern=function(E,V){return k("addShadingPattern()"),Fn(E,V),this},h.beginTilingPattern=function(E){k("beginTilingPattern()"),Rh(E.boundingBox[0],E.boundingBox[1],E.boundingBox[2]-E.boundingBox[0],E.boundingBox[3]-E.boundingBox[1],E.matrix)},h.endTilingPattern=function(E,V){k("endTilingPattern()"),V.stream=we[I].join(`
81
+ `),Fn(E,V),Xt.publish("endTilingPattern",V),Fi.pop().restore()};var Hr=h.__private__.newObject=function(){var E=Rr();return X(E,!0),E},Rr=h.__private__.newObjectDeferred=function(){return Y++,fe[Y]=function(){return ne},Y},X=function(E,V){return V=typeof V=="boolean"&&V,fe[E]=ne,V&&le(E+" 0 obj"),E},de=h.__private__.newAdditionalObject=function(){var E={objId:Rr(),content:""};return ve.push(E),E},ie=Rr(),oe=Rr(),he=h.__private__.decodeColorString=function(E){var V=E.split(" ");if(V.length!==2||V[1]!=="g"&&V[1]!=="G")V.length===5&&(V[4]==="k"||V[4]==="K")&&(V=[(1-V[0])*(1-V[3]),(1-V[1])*(1-V[3]),(1-V[2])*(1-V[3]),"r"]);else{var me=parseFloat(V[0]);V=[me,me,me,"r"]}for(var ge="#",Te=0;Te<3;Te++)ge+=("0"+Math.floor(255*parseFloat(V[Te])).toString(16)).slice(-2);return ge},pe=h.__private__.encodeColorString=function(E){var V;typeof E=="string"&&(E={ch1:E});var me=E.ch1,ge=E.ch2,Te=E.ch3,Me=E.ch4,Ve=E.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof me=="string"&&me.charAt(0)!=="#"){var ct=new kN(me);if(ct.ok)me=ct.toHex();else if(!/^\d*\.?\d*$/.test(me))throw new Error('Invalid color "'+me+'" passed to jsPDF.encodeColorString.')}if(typeof me=="string"&&/^#[0-9A-Fa-f]{3}$/.test(me)&&(me="#"+me[1]+me[1]+me[2]+me[2]+me[3]+me[3]),typeof me=="string"&&/^#[0-9A-Fa-f]{6}$/.test(me)){var gt=parseInt(me.substr(1),16);me=gt>>16&255,ge=gt>>8&255,Te=255&gt}if(ge===void 0||Me===void 0&&me===ge&&ge===Te)if(typeof me=="string")V=me+" "+Ve[0];else switch(E.precision){case 2:V=B(me/255)+" "+Ve[0];break;case 3:default:V=j(me/255)+" "+Ve[0]}else if(Me===void 0||cr(Me)==="object"){if(Me&&!isNaN(Me.a)&&Me.a===0)return V=["1.","1.","1.",Ve[1]].join(" ");if(typeof me=="string")V=[me,ge,Te,Ve[1]].join(" ");else switch(E.precision){case 2:V=[B(me/255),B(ge/255),B(Te/255),Ve[1]].join(" ");break;default:case 3:V=[j(me/255),j(ge/255),j(Te/255),Ve[1]].join(" ")}}else if(typeof me=="string")V=[me,ge,Te,Me,Ve[2]].join(" ");else switch(E.precision){case 2:V=[B(me),B(ge),B(Te),B(Me),Ve[2]].join(" ");break;case 3:default:V=[j(me),j(ge),j(Te),j(Me),Ve[2]].join(" ")}return V},Pe=h.__private__.getFilters=function(){return o},Le=h.__private__.putStream=function(E){var V=(E=E||{}).data||"",me=E.filters||Pe(),ge=E.alreadyAppliedFilters||[],Te=E.addLength1||!1,Me=V.length,Ve=E.objectId,ct=function(Dn){return Dn};if(u!==null&&Ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ct=Mn.encryptor(Ve,0));var gt={};me===!0&&(me=["FlateEncode"]);var Dt=E.additionalKeyValues||[],Lt=(gt=xt.API.processDataByFilters!==void 0?xt.API.processDataByFilters(V,me):{data:V,reverseChain:[]}).reverseChain+(Array.isArray(ge)?ge.join(" "):ge.toString());if(gt.data.length!==0&&(Dt.push({key:"Length",value:gt.data.length}),Te===!0&&Dt.push({key:"Length1",value:Me})),Lt.length!=0)if(Lt.split("/").length-1==1)Dt.push({key:"Filter",value:Lt});else{Dt.push({key:"Filter",value:"["+Lt+"]"});for(var Gt=0;Gt<Dt.length;Gt+=1)if(Dt[Gt].key==="DecodeParms"){for(var Mr=[],Br=0;Br<gt.reverseChain.split("/").length-1;Br+=1)Mr.push("null");Mr.push(Dt[Gt].value),Dt[Gt].value="["+Mr.join(" ")+"]"}}le("<<");for(var Qr=0;Qr<Dt.length;Qr++)le("/"+Dt[Qr].key+" "+Dt[Qr].value);le(">>"),gt.data.length!==0&&(le("stream"),le(ct(gt.data)),le("endstream"))},Ne=h.__private__.putPage=function(E){var V=E.number,me=E.data,ge=E.objId,Te=E.contentsObjId;X(ge,!0),le("<</Type /Page"),le("/Parent "+E.rootDictionaryObjId+" 0 R"),le("/Resources "+E.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(T(E.mediaBox.bottomLeftX))+" "+parseFloat(T(E.mediaBox.bottomLeftY))+" "+T(E.mediaBox.topRightX)+" "+T(E.mediaBox.topRightY)+"]"),E.cropBox!==null&&le("/CropBox ["+T(E.cropBox.bottomLeftX)+" "+T(E.cropBox.bottomLeftY)+" "+T(E.cropBox.topRightX)+" "+T(E.cropBox.topRightY)+"]"),E.bleedBox!==null&&le("/BleedBox ["+T(E.bleedBox.bottomLeftX)+" "+T(E.bleedBox.bottomLeftY)+" "+T(E.bleedBox.topRightX)+" "+T(E.bleedBox.topRightY)+"]"),E.trimBox!==null&&le("/TrimBox ["+T(E.trimBox.bottomLeftX)+" "+T(E.trimBox.bottomLeftY)+" "+T(E.trimBox.topRightX)+" "+T(E.trimBox.topRightY)+"]"),E.artBox!==null&&le("/ArtBox ["+T(E.artBox.bottomLeftX)+" "+T(E.artBox.bottomLeftY)+" "+T(E.artBox.topRightX)+" "+T(E.artBox.topRightY)+"]"),typeof E.userUnit=="number"&&E.userUnit!==1&&le("/UserUnit "+E.userUnit),Xt.publish("putPage",{objId:ge,pageContext:At[V],pageNumber:V,page:me}),le("/Contents "+Te+" 0 R"),le(">>"),le("endobj");var Me=me.join(`
82
+ `);return _===b.ADVANCED&&(Me+=`
83
+ Q`),X(Te,!0),Le({data:Me,filters:Pe(),objectId:Te}),le("endobj"),ge},Ce=h.__private__.putPages=function(){var E,V,me=[];for(E=1;E<=Nt;E++)At[E].objId=Rr(),At[E].contentsObjId=Rr();for(E=1;E<=Nt;E++)me.push(Ne({number:E,data:we[E],objId:At[E].objId,contentsObjId:At[E].contentsObjId,mediaBox:At[E].mediaBox,cropBox:At[E].cropBox,bleedBox:At[E].bleedBox,trimBox:At[E].trimBox,artBox:At[E].artBox,userUnit:At[E].userUnit,rootDictionaryObjId:ie,resourceDictionaryObjId:oe}));X(ie,!0),le("<</Type /Pages");var ge="/Kids [";for(V=0;V<Nt;V++)ge+=me[V]+" 0 R ";le(ge+"]"),le("/Count "+Nt),le(">>"),le("endobj"),Xt.publish("postPutPages")},ke=function(E){Xt.publish("putFont",{font:E,out:le,newObject:Hr,putStream:Le}),E.isAlreadyPutted!==!0&&(E.objectNumber=Hr(),le("<<"),le("/Type /Font"),le("/BaseFont /"+Gl(E.postScriptName)),le("/Subtype /Type1"),typeof E.encoding=="string"&&le("/Encoding /"+E.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},Ye=function(){for(var E in Vt)Vt.hasOwnProperty(E)&&(f===!1||f===!0&&d.hasOwnProperty(E))&&ke(Vt[E])},Qe=function(E){E.objectNumber=Hr();var V=[];V.push({key:"Type",value:"/XObject"}),V.push({key:"Subtype",value:"/Form"}),V.push({key:"BBox",value:"["+[T(E.x),T(E.y),T(E.x+E.width),T(E.y+E.height)].join(" ")+"]"}),V.push({key:"Matrix",value:"["+E.matrix.toString()+"]"});var me=E.pages[1].join(`
84
+ `);Le({data:me,additionalKeyValues:V,objectId:E.objectNumber}),le("endobj")},lt=function(){for(var E in ln)ln.hasOwnProperty(E)&&Qe(ln[E])},Xe=function(E,V){var me,ge=[],Te=1/(V-1);for(me=0;me<1;me+=Te)ge.push(me);if(ge.push(1),E[0].offset!=0){var Me={offset:0,color:E[0].color};E.unshift(Me)}if(E[E.length-1].offset!=1){var Ve={offset:1,color:E[E.length-1].color};E.push(Ve)}for(var ct="",gt=0,Dt=0;Dt<ge.length;Dt++){for(me=ge[Dt];me>E[gt+1].offset;)gt++;var Lt=E[gt].offset,Gt=(me-Lt)/(E[gt+1].offset-Lt),Mr=E[gt].color,Br=E[gt+1].color;ct+=q(Math.round((1-Gt)*Mr[0]+Gt*Br[0]).toString(16))+q(Math.round((1-Gt)*Mr[1]+Gt*Br[1]).toString(16))+q(Math.round((1-Gt)*Mr[2]+Gt*Br[2]).toString(16))}return ct.trim()},st=function(E,V){V||(V=21);var me=Hr(),ge=Xe(E.colors,V),Te=[];Te.push({key:"FunctionType",value:"0"}),Te.push({key:"Domain",value:"[0.0 1.0]"}),Te.push({key:"Size",value:"["+V+"]"}),Te.push({key:"BitsPerSample",value:"8"}),Te.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Te.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Le({data:ge,additionalKeyValues:Te,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:me}),le("endobj"),E.objectNumber=Hr(),le("<< /ShadingType "+E.type),le("/ColorSpace /DeviceRGB");var Me="/Coords ["+T(parseFloat(E.coords[0]))+" "+T(parseFloat(E.coords[1]))+" ";E.type===2?Me+=T(parseFloat(E.coords[2]))+" "+T(parseFloat(E.coords[3])):Me+=T(parseFloat(E.coords[2]))+" "+T(parseFloat(E.coords[3]))+" "+T(parseFloat(E.coords[4]))+" "+T(parseFloat(E.coords[5])),le(Me+="]"),E.matrix&&le("/Matrix ["+E.matrix.toString()+"]"),le("/Function "+me+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},jt=function(E,V){var me=Rr(),ge=Hr();V.push({resourcesOid:me,objectOid:ge}),E.objectNumber=ge;var Te=[];Te.push({key:"Type",value:"/Pattern"}),Te.push({key:"PatternType",value:"1"}),Te.push({key:"PaintType",value:"1"}),Te.push({key:"TilingType",value:"1"}),Te.push({key:"BBox",value:"["+E.boundingBox.map(T).join(" ")+"]"}),Te.push({key:"XStep",value:T(E.xStep)}),Te.push({key:"YStep",value:T(E.yStep)}),Te.push({key:"Resources",value:me+" 0 R"}),E.matrix&&Te.push({key:"Matrix",value:"["+E.matrix.toString()+"]"}),Le({data:E.stream,additionalKeyValues:Te,objectId:E.objectNumber}),le("endobj")},tr=function(E){var V;for(V in _e)_e.hasOwnProperty(V)&&(_e[V]instanceof Ko?st(_e[V]):_e[V]instanceof Ls&&jt(_e[V],E))},xr=function(E){for(var V in E.objectNumber=Hr(),le("<<"),E)switch(V){case"opacity":le("/ca "+B(E[V]));break;case"stroke-opacity":le("/CA "+B(E[V]))}le(">>"),le("endobj")},Zr=function(){var E;for(E in Et)Et.hasOwnProperty(E)&&xr(Et[E])},ea=function(){for(var E in le("/XObject <<"),ln)ln.hasOwnProperty(E)&&ln[E].objectNumber>=0&&le("/"+E+" "+ln[E].objectNumber+" 0 R");Xt.publish("putXobjectDict"),le(">>")},Ga=function(){Mn.oid=Hr(),le("<<"),le("/Filter /Standard"),le("/V "+Mn.v),le("/R "+Mn.r),le("/U <"+Mn.toHexString(Mn.U)+">"),le("/O <"+Mn.toHexString(Mn.O)+">"),le("/P "+Mn.P),le(">>"),le("endobj")},Ta=function(){for(var E in le("/Font <<"),Vt)Vt.hasOwnProperty(E)&&(f===!1||f===!0&&d.hasOwnProperty(E))&&le("/"+E+" "+Vt[E].objectNumber+" 0 R");le(">>")},ta=function(){if(Object.keys(_e).length>0){for(var E in le("/Shading <<"),_e)_e.hasOwnProperty(E)&&_e[E]instanceof Ko&&_e[E].objectNumber>=0&&le("/"+E+" "+_e[E].objectNumber+" 0 R");Xt.publish("putShadingPatternDict"),le(">>")}},Ea=function(E){if(Object.keys(_e).length>0){for(var V in le("/Pattern <<"),_e)_e.hasOwnProperty(V)&&_e[V]instanceof h.TilingPattern&&_e[V].objectNumber>=0&&_e[V].objectNumber<E&&le("/"+V+" "+_e[V].objectNumber+" 0 R");Xt.publish("putTilingPatternDict"),le(">>")}},yi=function(){if(Object.keys(Et).length>0){var E;for(E in le("/ExtGState <<"),Et)Et.hasOwnProperty(E)&&Et[E].objectNumber>=0&&le("/"+E+" "+Et[E].objectNumber+" 0 R");Xt.publish("putGStateDict"),le(">>")}},Gr=function(E){X(E.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ta(),ta(),Ea(E.objectOid),yi(),ea(),le(">>"),le("endobj")},Sh=function(){var E=[];Ye(),Zr(),lt(),tr(E),Xt.publish("putResources"),E.forEach(Gr),Gr({resourcesOid:oe,objectOid:Number.MAX_SAFE_INTEGER}),Xt.publish("postPutResources")},Ah=function(){Xt.publish("putAdditionalObjects");for(var E=0;E<ve.length;E++){var V=ve[E];X(V.objId,!0),le(V.content),le("endobj")}Xt.publish("postPutAdditionalObjects")},Th=function(E){fr[E.fontName]=fr[E.fontName]||{},fr[E.fontName][E.fontStyle]=E.id},Zc=function(E,V,me,ge,Te){var Me={id:"F"+(Object.keys(Vt).length+1).toString(10),postScriptName:E,fontName:V,fontStyle:me,encoding:ge,isStandardFont:Te||!1,metadata:{}};return Xt.publish("addFont",{font:Me,instance:this}),Vt[Me.id]=Me,Th(Me),Me.id},Xp=function(E){for(var V=0,me=Ue.length;V<me;V++){var ge=Zc.call(this,E[V][0],E[V][1],E[V][2],Ue[V][3],!0);f===!1&&(d[ge]=!0);var Te=E[V][0].split("-");Th({id:ge,fontName:Te[0],fontStyle:Te[1]||""})}Xt.publish("addFonts",{fonts:Vt,dictionary:fr})},ra=function(E){return E.foo=function(){try{return E.apply(this,arguments)}catch(ge){var V=ge.stack||"";~V.indexOf(" at ")&&(V=V.split(" at ")[1]);var me="Error in function "+V.split(`
85
+ `)[0].split("<")[0]+": "+ge.message;if(!Pt.console)throw new Error(me);Pt.console.error(me,ge),Pt.alert&&alert(me)}},E.foo.bar=E,E.foo},fl=function(E,V){var me,ge,Te,Me,Ve,ct,gt,Dt,Lt;if(Te=(V=V||{}).sourceEncoding||"Unicode",Ve=V.outputEncoding,(V.autoencode||Ve)&&Vt[Mt].metadata&&Vt[Mt].metadata[Te]&&Vt[Mt].metadata[Te].encoding&&(Me=Vt[Mt].metadata[Te].encoding,!Ve&&Vt[Mt].encoding&&(Ve=Vt[Mt].encoding),!Ve&&Me.codePages&&(Ve=Me.codePages[0]),typeof Ve=="string"&&(Ve=Me[Ve]),Ve)){for(gt=!1,ct=[],me=0,ge=E.length;me<ge;me++)(Dt=Ve[E.charCodeAt(me)])?ct.push(String.fromCharCode(Dt)):ct.push(E[me]),ct[me].charCodeAt(0)>>8&&(gt=!0);E=ct.join("")}for(me=E.length;gt===void 0&&me!==0;)E.charCodeAt(me-1)>>8&&(gt=!0),me--;if(!gt)return E;for(ct=V.noBOM?[]:[254,255],me=0,ge=E.length;me<ge;me++){if((Lt=(Dt=E.charCodeAt(me))>>8)>>8)throw new Error("Character at position "+me+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ct.push(Lt),ct.push(Dt-(Lt<<8))}return String.fromCharCode.apply(void 0,ct)},oi=h.__private__.pdfEscape=h.pdfEscape=function(E,V){return fl(E,V).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qc=h.__private__.beginPage=function(E){we[++Nt]=[],At[Nt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(E[0]),topRightY:Number(E[1])}},Nh(Nt),Ee(we[I])},Eh=function(E,V){var me,ge,Te;switch(r=V||r,typeof E=="string"&&(me=y(E.toLowerCase()),Array.isArray(me)&&(ge=me[0],Te=me[1])),Array.isArray(E)&&(ge=E[0]*at,Te=E[1]*at),isNaN(ge)&&(ge=i[0],Te=i[1]),(ge>14400||Te>14400)&&(Tr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ge=Math.min(14400,ge),Te=Math.min(14400,Te)),i=[ge,Te],r.substr(0,1)){case"l":Te>ge&&(i=[Te,ge]);break;case"p":ge>Te&&(i=[Te,ge])}Qc(i),Lh(nu),le(na),au!==0&&le(au+" J"),ou!==0&&le(ou+" j"),Xt.publish("addPage",{pageNumber:Nt})},Jp=function(E){E>0&&E<=Nt&&(we.splice(E,1),At.splice(E,1),Nt--,I>Nt&&(I=Nt),this.setPage(I))},Nh=function(E){E>0&&E<=Nt&&(I=E)},Zp=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return we.length-1},Ph=function(E,V,me){var ge,Te=void 0;return me=me||{},E=E!==void 0?E:Vt[Mt].fontName,V=V!==void 0?V:Vt[Mt].fontStyle,ge=E.toLowerCase(),fr[ge]!==void 0&&fr[ge][V]!==void 0?Te=fr[ge][V]:fr[E]!==void 0&&fr[E][V]!==void 0?Te=fr[E][V]:me.disableWarning===!1&&Tr.warn("Unable to look up font label for font '"+E+"', '"+V+"'. Refer to getFontList() for available fonts."),Te||me.noFallback||(Te=fr.times[V])==null&&(Te=fr.times.normal),Te},Qp=h.__private__.putInfo=function(){var E=Hr(),V=function(ge){return ge};for(var me in u!==null&&(V=Mn.encryptor(E,0)),le("<<"),le("/Producer ("+oi(V("jsPDF "+xt.version))+")"),wt)wt.hasOwnProperty(me)&&wt[me]&&le("/"+me.substr(0,1).toUpperCase()+me.substr(1)+" ("+oi(V(wt[me]))+")");le("/CreationDate ("+oi(V(W))+")"),le(">>"),le("endobj")},eu=h.__private__.putCatalog=function(E){var V=(E=E||{}).rootDictionaryObjId||ie;switch(Hr(),le("<<"),le("/Type /Catalog"),le("/Pages "+V+" 0 R"),Ze||(Ze="fullwidth"),Ze){case"fullwidth":le("/OpenAction [3 0 R /FitH null]");break;case"fullheight":le("/OpenAction [3 0 R /FitV null]");break;case"fullpage":le("/OpenAction [3 0 R /Fit]");break;case"original":le("/OpenAction [3 0 R /XYZ null null 1]");break;default:var me=""+Ze;me.substr(me.length-1)==="%"&&(Ze=parseInt(Ze)/100),typeof Ze=="number"&&le("/OpenAction [3 0 R /XYZ null null "+B(Ze)+"]")}switch(Ot||(Ot="continuous"),Ot){case"continuous":le("/PageLayout /OneColumn");break;case"single":le("/PageLayout /SinglePage");break;case"two":case"twoleft":le("/PageLayout /TwoColumnLeft");break;case"tworight":le("/PageLayout /TwoColumnRight")}pt&&le("/PageMode /"+pt),Xt.publish("putCatalog"),le(">>"),le("endobj")},e1=h.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(Y+1)),le("/Root "+Y+" 0 R"),le("/Info "+(Y-1)+" 0 R"),u!==null&&le("/Encrypt "+Mn.oid+" 0 R"),le("/ID [ <"+R+"> <"+R+"> ]"),le(">>")},t1=h.__private__.putHeader=function(){le("%PDF-"+g),le("%ºß¬à")},r1=h.__private__.putXRef=function(){var E="0000000000";le("xref"),le("0 "+(Y+1)),le("0000000000 65535 f ");for(var V=1;V<=Y;V++)typeof fe[V]=="function"?le((E+fe[V]()).slice(-10)+" 00000 n "):fe[V]!==void 0?le((E+fe[V]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Va=h.__private__.buildDocument=function(){Ae(),Ee(ae),Xt.publish("buildDocument"),t1(),Ce(),Ah(),Sh(),u!==null&&Ga(),Qp(),eu();var E=ne;return r1(),e1(),le("startxref"),le(""+E),le("%%EOF"),Ee(we[I]),ae.join(`
86
+ `)},hl=h.__private__.getBlob=function(E){return new Blob([tt(E)],{type:"application/pdf"})},dl=h.output=h.__private__.output=ra((function(E,V){switch(typeof(V=V||{})=="string"?V={filename:V}:V.filename=V.filename||"generated.pdf",E){case void 0:return Va();case"save":h.save(V.filename);break;case"arraybuffer":return tt(Va());case"blob":return hl(Va());case"bloburi":case"bloburl":if(Pt.URL!==void 0&&typeof Pt.URL.createObjectURL=="function")return Pt.URL&&Pt.URL.createObjectURL(hl(Va()))||void 0;Tr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var me="",ge=Va();try{me=hy(ge)}catch{me=hy(unescape(encodeURIComponent(ge)))}return"data:application/pdf;filename="+V.filename+";base64,"+me;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Pt)==="[object Window]"){var Te="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Me=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';V.pdfObjectUrl&&(Te=V.pdfObjectUrl,Me="");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Te+'"'+Me+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(V)+");<\/script></body></html>",ct=Pt.open();return ct!==null&&ct.document.write(Ve),ct}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Pt)==="[object Window]"){var gt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(V.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+V.filename+'" width="500px" height="400px" /></body></html>',Dt=Pt.open();if(Dt!==null){Dt.document.write(gt);var Lt=this;Dt.document.documentElement.querySelector("#pdfViewer").onload=function(){Dt.document.title=V.filename,Dt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Lt.output("bloburl"))}}return Dt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Pt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Gt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",V)+'"></iframe></body></html>',Mr=Pt.open();if(Mr!==null&&(Mr.document.write(Gt),Mr.document.title=V.filename),Mr||typeof safari>"u")return Mr;break;case"datauri":case"dataurl":return Pt.document.location.href=this.output("datauristring",V);default:return null}})),Oh=function(E){return Array.isArray(Ha)===!0&&Ha.indexOf(E)>-1};switch(n){case"pt":at=1;break;case"mm":at=72/25.4;break;case"cm":at=72/2.54;break;case"in":at=72;break;case"px":at=Oh("px_scaling")==1?.75:96/72;break;case"pc":case"em":at=12;break;case"ex":at=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);at=n}var Mn=null;ce(),Q();var n1=function(E){return u!==null?Mn.encryptor(E,0):function(V){return V}},jh=h.__private__.getPageInfo=h.getPageInfo=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:At[E].objId,pageNumber:E,pageContext:At[E]}},kt=h.__private__.getPageInfoByObjId=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var V in At)if(At[V].objId===E)break;return jh(V)},i1=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:At[I].objId,pageNumber:I,pageContext:At[I]}};h.addPage=function(){return Eh.apply(this,arguments),this},h.setPage=function(){return Nh.apply(this,arguments),Ee.call(this,we[I]),this},h.insertPage=function(E){return this.addPage(),this.movePage(I,E),this},h.movePage=function(E,V){var me,ge;if(E>V){me=we[E],ge=At[E];for(var Te=E;Te>V;Te--)we[Te]=we[Te-1],At[Te]=At[Te-1];we[V]=me,At[V]=ge,this.setPage(V)}else if(E<V){me=we[E],ge=At[E];for(var Me=E;Me<V;Me++)we[Me]=we[Me+1],At[Me]=At[Me+1];we[V]=me,At[V]=ge,this.setPage(V)}return this},h.deletePage=function(){return Jp.apply(this,arguments),this},h.__private__.text=h.text=function(E,V,me,ge,Te){var Me,Ve,ct,gt,Dt,Lt,Gt,Mr,Br,Qr=(ge=ge||{}).scope||this;if(typeof E=="number"&&typeof V=="number"&&(typeof me=="string"||Array.isArray(me))){var Dn=me;me=V,V=E,E=Dn}if(arguments[3]instanceof _t?(k("The transform parameter of text() with a Matrix value"),Br=Te):(ct=arguments[4],gt=arguments[5],cr(Gt=arguments[3])==="object"&&Gt!==null||(typeof ct=="string"&&(gt=ct,ct=null),typeof Gt=="string"&&(gt=Gt,Gt=null),typeof Gt=="number"&&(ct=Gt,Gt=null),ge={flags:Gt,angle:ct,align:gt})),isNaN(V)||isNaN(me)||E==null)throw new Error("Invalid arguments passed to jsPDF.text");if(E.length===0)return Qr;var vn="",ia=!1,bi=typeof ge.lineHeightFactor=="number"?ge.lineHeightFactor:vs,Oa=Qr.internal.scaleFactor;function Bh(Nr){return Nr=Nr.split(" ").join(Array(ge.TabLen||9).join(" ")),oi(Nr,Gt)}function fu(Nr){for(var Pr,Yr=Nr.concat(),cn=[],Za=Yr.length;Za--;)typeof(Pr=Yr.shift())=="string"?cn.push(Pr):Array.isArray(Nr)&&(Pr.length===1||Pr[1]===void 0&&Pr[2]===void 0)?cn.push(Pr[0]):cn.push([Pr[0],Pr[1],Pr[2]]);return cn}function hu(Nr,Pr){var Yr;if(typeof Nr=="string")Yr=Pr(Nr)[0];else if(Array.isArray(Nr)){for(var cn,Za,bu=Nr.concat(),Pl=[],Wh=bu.length;Wh--;)typeof(cn=bu.shift())=="string"?Pl.push(Pr(cn)[0]):Array.isArray(cn)&&typeof cn[0]=="string"&&(Za=Pr(cn[0],cn[1],cn[2]),Pl.push([Za[0],Za[1],Za[2]]));Yr=Pl}return Yr}var yl=!1,du=!0;if(typeof E=="string")yl=!0;else if(Array.isArray(E)){var pu=E.concat();Ve=[];for(var bl,Tn=pu.length;Tn--;)(typeof(bl=pu.shift())!="string"||Array.isArray(bl)&&typeof bl[0]!="string")&&(du=!1);yl=du}if(yl===!1)throw new Error('Type of text must be string or Array. "'+E+'" is not recognized.');typeof E=="string"&&(E=E.match(/[\r?\n]/)?E.split(/\r\n|\r|\n/g):[E]);var wl=Ke/Qr.internal.scaleFactor,_l=wl*(bi-1);switch(ge.baseline){case"bottom":me-=_l;break;case"top":me+=wl-_l;break;case"hanging":me+=wl-2*_l;break;case"middle":me+=wl/2-_l}if((Lt=ge.maxWidth||0)>0&&(typeof E=="string"?E=Qr.splitTextToSize(E,Lt):Object.prototype.toString.call(E)==="[object Array]"&&(E=E.reduce((function(Nr,Pr){return Nr.concat(Qr.splitTextToSize(Pr,Lt))}),[]))),Me={text:E,x:V,y:me,options:ge,mutex:{pdfEscape:oi,activeFontKey:Mt,fonts:Vt,activeFontSize:Ke}},Xt.publish("preProcessText",Me),E=Me.text,ct=(ge=Me.options).angle,!(Br instanceof _t)&&ct&&typeof ct=="number"){ct*=Math.PI/180,ge.rotationDirection===0&&(ct=-ct),_===b.ADVANCED&&(ct=-ct);var Sl=Math.cos(ct),mu=Math.sin(ct);Br=new _t(Sl,mu,-mu,Sl,0,0)}else ct&&ct instanceof _t&&(Br=ct);_!==b.ADVANCED||Br||(Br=ai),(Dt=ge.charSpace||vl)!==void 0&&(vn+=T(N(Dt))+` Tc
87
+ `,this.setCharSpace(this.getCharSpace()||0)),(Mr=ge.horizontalScale)!==void 0&&(vn+=T(100*Mr)+` Tz
88
+ `),ge.lang;var si=-1,p1=ge.renderingMode!==void 0?ge.renderingMode:ge.stroke,vu=Qr.internal.getCurrentPageInfo().pageContext;switch(p1){case 0:case!1:case"fill":si=0;break;case 1:case!0:case"stroke":si=1;break;case 2:case"fillThenStroke":si=2;break;case 3:case"invisible":si=3;break;case 4:case"fillAndAddForClipping":si=4;break;case 5:case"strokeAndAddPathForClipping":si=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":si=6;break;case 7:case"addToPathForClipping":si=7}var $h=vu.usedRenderingMode!==void 0?vu.usedRenderingMode:-1;si!==-1?vn+=si+` Tr
89
+ `:$h!==-1&&(vn+=`0 Tr
90
+ `),si!==-1&&(vu.usedRenderingMode=si),gt=ge.align||"left";var Mi,Al=Ke*bi,qh=Qr.internal.pageSize.getWidth(),Uh=Vt[Mt];Dt=ge.charSpace||vl,Lt=ge.maxWidth||0,Gt=Object.assign({autoencode:!0,noBOM:!0},ge.flags);var ko=[],ys=function(Nr){return Qr.getStringUnitWidth(Nr,{font:Uh,charSpace:Dt,fontSize:Ke,doKerning:!1})*Ke/Oa};if(Object.prototype.toString.call(E)==="[object Array]"){var li;Ve=fu(E),gt!=="left"&&(Mi=Ve.map(ys));var Yn,Lo=0;if(gt==="right"){V-=Mi[0],E=[],Tn=Ve.length;for(var Ka=0;Ka<Tn;Ka++)Ka===0?(Yn=Pa(V),li=Ya(me)):(Yn=N(Lo-Mi[Ka]),li=-Al),E.push([Ve[Ka],Yn,li]),Lo=Mi[Ka]}else if(gt==="center"){V-=Mi[0]/2,E=[],Tn=Ve.length;for(var Xa=0;Xa<Tn;Xa++)Xa===0?(Yn=Pa(V),li=Ya(me)):(Yn=N((Lo-Mi[Xa])/2),li=-Al),E.push([Ve[Xa],Yn,li]),Lo=Mi[Xa]}else if(gt==="left"){E=[],Tn=Ve.length;for(var Tl=0;Tl<Tn;Tl++)E.push(Ve[Tl])}else if(gt==="justify"&&Uh.encoding==="Identity-H"){E=[],Tn=Ve.length,Lt=Lt!==0?Lt:qh;for(var Ja=0,Vr=0;Vr<Tn;Vr++)if(li=Vr===0?Ya(me):-Al,Yn=Vr===0?Pa(V):Ja,Vr<Tn-1){var gu=N((Lt-Mi[Vr])/(Ve[Vr].split(" ").length-1)),Kn=Ve[Vr].split(" ");E.push([Kn[0]+" ",Yn,li]),Ja=0;for(var Di=1;Di<Kn.length;Di++){var El=(ys(Kn[Di-1]+" "+Kn[Di])-ys(Kn[Di]))*Oa+gu;Di==Kn.length-1?E.push([Kn[Di],El,0]):E.push([Kn[Di]+" ",El,0]),Ja-=El}}else E.push([Ve[Vr],Yn,li]);E.push(["",Ja,0])}else{if(gt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(E=[],Tn=Ve.length,Lt=Lt!==0?Lt:qh,Vr=0;Vr<Tn;Vr++)li=Vr===0?Ya(me):-Al,Yn=Vr===0?Pa(V):0,Vr<Tn-1?ko.push(T(N((Lt-Mi[Vr])/(Ve[Vr].split(" ").length-1)))):ko.push(0),E.push([Ve[Vr],Yn,li])}}var zh=typeof ge.R2L=="boolean"?ge.R2L:ft;zh===!0&&(E=hu(E,(function(Nr,Pr,Yr){return[Nr.split("").reverse().join(""),Pr,Yr]}))),Me={text:E,x:V,y:me,options:ge,mutex:{pdfEscape:oi,activeFontKey:Mt,fonts:Vt,activeFontSize:Ke}},Xt.publish("postProcessText",Me),E=Me.text,ia=Me.mutex.isHex||!1;var xu=Vt[Mt].encoding;xu!=="WinAnsiEncoding"&&xu!=="StandardEncoding"||(E=hu(E,(function(Nr,Pr,Yr){return[Bh(Nr),Pr,Yr]}))),Ve=fu(E),E=[];for(var bs,ws,Io,_s=0,Nl=1,Ss=Array.isArray(Ve[0])?Nl:_s,Fo="",yu=function(Nr,Pr,Yr){var cn="";return Yr instanceof _t?(Yr=typeof ge.angle=="number"?xi(Yr,new _t(1,0,0,1,Nr,Pr)):xi(new _t(1,0,0,1,Nr,Pr),Yr),_===b.ADVANCED&&(Yr=xi(new _t(1,0,0,-1,0,0),Yr)),cn=Yr.join(" ")+` Tm
91
+ `):cn=T(Nr)+" "+T(Pr)+` Td
92
+ `,cn},Ri=0;Ri<Ve.length;Ri++){switch(Fo="",Ss){case Nl:Io=(ia?"<":"(")+Ve[Ri][0]+(ia?">":")"),bs=parseFloat(Ve[Ri][1]),ws=parseFloat(Ve[Ri][2]);break;case _s:Io=(ia?"<":"(")+Ve[Ri]+(ia?">":")"),bs=Pa(V),ws=Ya(me)}ko!==void 0&&ko[Ri]!==void 0&&(Fo=ko[Ri]+` Tw
93
+ `),Ri===0?E.push(Fo+yu(bs,ws,Br)+Io):Ss===_s?E.push(Fo+Io):Ss===Nl&&E.push(Fo+yu(bs,ws,Br)+Io)}E=Ss===_s?E.join(` Tj
94
+ T* `):E.join(` Tj
95
+ `),E+=` Tj
96
+ `;var Bi=`BT
97
+ /`;return Bi+=Mt+" "+Ke+` Tf
98
+ `,Bi+=T(Ke*bi)+` TL
99
+ `,Bi+=gs+`
100
+ `,Bi+=vn,Bi+=E,le(Bi+="ET"),d[Mt]=!0,Qr};var a1=h.__private__.clip=h.clip=function(E){return le(E==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return a1("evenodd")},h.__private__.discardPath=h.discardPath=function(){return le("n"),this};var Na=h.__private__.isValidStyle=function(E){var V=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(E)!==-1&&(V=!0),V};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(E){return Na(E)&&(c=E),this};var Ch=h.__private__.getStyle=h.getStyle=function(E){var V=c;switch(E){case"D":case"S":V="S";break;case"F":V="f";break;case"FD":case"DF":V="B";break;case"f":case"f*":case"B":case"B*":V=E}return V},kh=h.close=function(){return le("h"),this};h.stroke=function(){return le("S"),this},h.fill=function(E){return pl("f",E),this},h.fillEvenOdd=function(E){return pl("f*",E),this},h.fillStroke=function(E){return pl("B",E),this},h.fillStrokeEvenOdd=function(E){return pl("B*",E),this};var pl=function(E,V){cr(V)==="object"?s1(V,E):le(E)},tu=function(E){E===null||_===b.ADVANCED&&E===void 0||(E=Ch(E),le(E))};function o1(E,V,me,ge,Te){var Me=new Ls(V||this.boundingBox,me||this.xStep,ge||this.yStep,this.gState,Te||this.matrix);Me.stream=this.stream;var Ve=E+"$$"+this.cloneIndex+++"$$";return Fn(Ve,Me),Me}var s1=function(E,V){var me=mt[E.key],ge=_e[me];if(ge instanceof Ko)le("q"),le(l1(V)),ge.gState&&h.setGState(ge.gState),le(E.matrix.toString()+" cm"),le("/"+me+" sh"),le("Q");else if(ge instanceof Ls){var Te=new _t(1,0,0,-1,0,Co());E.matrix&&(Te=Te.multiply(E.matrix||ai),me=o1.call(ge,E.key,E.boundingBox,E.xStep,E.yStep,Te).id),le("q"),le("/Pattern cs"),le("/"+me+" scn"),ge.gState&&h.setGState(ge.gState),le(V),le("Q")}},l1=function(E){switch(E){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ru=h.moveTo=function(E,V){return le(T(N(E))+" "+T(U(V))+" m"),this},ms=h.lineTo=function(E,V){return le(T(N(E))+" "+T(U(V))+" l"),this},Oo=h.curveTo=function(E,V,me,ge,Te,Me){return le([T(N(E)),T(U(V)),T(N(me)),T(U(ge)),T(N(Te)),T(U(Me)),"c"].join(" ")),this};h.__private__.line=h.line=function(E,V,me,ge,Te){if(isNaN(E)||isNaN(V)||isNaN(me)||isNaN(ge)||!Na(Te))throw new Error("Invalid arguments passed to jsPDF.line");return _===b.COMPAT?this.lines([[me-E,ge-V]],E,V,[1,1],Te||"S"):this.lines([[me-E,ge-V]],E,V,[1,1]).stroke()},h.__private__.lines=h.lines=function(E,V,me,ge,Te,Me){var Ve,ct,gt,Dt,Lt,Gt,Mr,Br,Qr,Dn,vn,ia;if(typeof E=="number"&&(ia=me,me=V,V=E,E=ia),ge=ge||[1,1],Me=Me||!1,isNaN(V)||isNaN(me)||!Array.isArray(E)||!Array.isArray(ge)||!Na(Te)||typeof Me!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ru(V,me),Ve=ge[0],ct=ge[1],Dt=E.length,Dn=V,vn=me,gt=0;gt<Dt;gt++)(Lt=E[gt]).length===2?(Dn=Lt[0]*Ve+Dn,vn=Lt[1]*ct+vn,ms(Dn,vn)):(Gt=Lt[0]*Ve+Dn,Mr=Lt[1]*ct+vn,Br=Lt[2]*Ve+Dn,Qr=Lt[3]*ct+vn,Dn=Lt[4]*Ve+Dn,vn=Lt[5]*ct+vn,Oo(Gt,Mr,Br,Qr,Dn,vn));return Me&&kh(),tu(Te),this},h.path=function(E){for(var V=0;V<E.length;V++){var me=E[V],ge=me.c;switch(me.op){case"m":ru(ge[0],ge[1]);break;case"l":ms(ge[0],ge[1]);break;case"c":Oo.apply(this,ge);break;case"h":kh()}}return this},h.__private__.rect=h.rect=function(E,V,me,ge,Te){if(isNaN(E)||isNaN(V)||isNaN(me)||isNaN(ge)||!Na(Te))throw new Error("Invalid arguments passed to jsPDF.rect");return _===b.COMPAT&&(ge=-ge),le([T(N(E)),T(U(V)),T(N(me)),T(N(ge)),"re"].join(" ")),tu(Te),this},h.__private__.triangle=h.triangle=function(E,V,me,ge,Te,Me,Ve){if(isNaN(E)||isNaN(V)||isNaN(me)||isNaN(ge)||isNaN(Te)||isNaN(Me)||!Na(Ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[me-E,ge-V],[Te-me,Me-ge],[E-Te,V-Me]],E,V,[1,1],Ve,!0),this},h.__private__.roundedRect=h.roundedRect=function(E,V,me,ge,Te,Me,Ve){if(isNaN(E)||isNaN(V)||isNaN(me)||isNaN(ge)||isNaN(Te)||isNaN(Me)||!Na(Ve))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ct=4/3*(Math.SQRT2-1);return Te=Math.min(Te,.5*me),Me=Math.min(Me,.5*ge),this.lines([[me-2*Te,0],[Te*ct,0,Te,Me-Me*ct,Te,Me],[0,ge-2*Me],[0,Me*ct,-Te*ct,Me,-Te,Me],[2*Te-me,0],[-Te*ct,0,-Te,-Me*ct,-Te,-Me],[0,2*Me-ge],[0,-Me*ct,Te*ct,-Me,Te,-Me]],E+Te,V,[1,1],Ve,!0),this},h.__private__.ellipse=h.ellipse=function(E,V,me,ge,Te){if(isNaN(E)||isNaN(V)||isNaN(me)||isNaN(ge)||!Na(Te))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Me=4/3*(Math.SQRT2-1)*me,Ve=4/3*(Math.SQRT2-1)*ge;return ru(E+me,V),Oo(E+me,V-Ve,E+Me,V-ge,E,V-ge),Oo(E-Me,V-ge,E-me,V-Ve,E-me,V),Oo(E-me,V+Ve,E-Me,V+ge,E,V+ge),Oo(E+Me,V+ge,E+me,V+Ve,E+me,V),tu(Te),this},h.__private__.circle=h.circle=function(E,V,me,ge){if(isNaN(E)||isNaN(V)||isNaN(me)||!Na(ge))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(E,V,me,me,ge)},h.setFont=function(E,V,me){return me&&(V=P(V,me)),Mt=Ph(E,V,{disableWarning:!1}),this};var c1=h.__private__.getFont=h.getFont=function(){return Vt[Ph.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var E,V,me={};for(E in fr)if(fr.hasOwnProperty(E))for(V in me[E]=[],fr[E])fr[E].hasOwnProperty(V)&&me[E].push(V);return me},h.addFont=function(E,V,me,ge,Te){var Me=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Me.indexOf(arguments[3])!==-1?Te=arguments[3]:arguments[3]&&Me.indexOf(arguments[3])==-1&&(me=P(me,ge)),Te=Te||"Identity-H",Zc.call(this,E,V,me,Te)};var vs,nu=e.lineWidth||.200025,ml=h.__private__.getLineWidth=h.getLineWidth=function(){return nu},Lh=h.__private__.setLineWidth=h.setLineWidth=function(E){return nu=E,le(T(N(E))+" w"),this};h.__private__.setLineDash=xt.API.setLineDash=xt.API.setLineDashPattern=function(E,V){if(E=E||[],V=V||0,isNaN(V)||!Array.isArray(E))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return E=E.map((function(me){return T(N(me))})).join(" "),V=T(N(V)),le("["+E+"] "+V+" d"),this};var Ih=h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*vs};h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*vs};var Fh=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(E){return typeof(E=E||1.15)=="number"&&(vs=E),this},Mh=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return vs};Fh(e.lineHeight);var Pa=h.__private__.getHorizontalCoordinate=function(E){return N(E)},Ya=h.__private__.getVerticalCoordinate=function(E){return _===b.ADVANCED?E:At[I].mediaBox.topRightY-At[I].mediaBox.bottomLeftY-N(E)},u1=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(E){return T(Pa(E))},jo=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(E){return T(Ya(E))},na=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return he(na)},h.__private__.setStrokeColor=h.setDrawColor=function(E,V,me,ge){return na=pe({ch1:E,ch2:V,ch3:me,ch4:ge,pdfColorType:"draw",precision:2}),le(na),this};var iu=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return he(iu)},h.__private__.setFillColor=h.setFillColor=function(E,V,me,ge){return iu=pe({ch1:E,ch2:V,ch3:me,ch4:ge,pdfColorType:"fill",precision:2}),le(iu),this};var gs=e.textColor||"0 g",f1=h.__private__.getTextColor=h.getTextColor=function(){return he(gs)};h.__private__.setTextColor=h.setTextColor=function(E,V,me,ge){return gs=pe({ch1:E,ch2:V,ch3:me,ch4:ge,pdfColorType:"text",precision:3}),this};var vl=e.charSpace,h1=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(vl||0)};h.__private__.setCharSpace=h.setCharSpace=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return vl=E,this};var au=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(E){var V=h.CapJoinStyles[E];if(V===void 0)throw new Error("Line cap style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return au=V,le(V+" J"),this};var ou=0;h.__private__.setLineJoin=h.setLineJoin=function(E){var V=h.CapJoinStyles[E];if(V===void 0)throw new Error("Line join style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ou=V,le(V+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(E){if(E=E||0,isNaN(E))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(T(N(E))+" M"),this},h.GState=ff,h.setGState=function(E){(E=typeof E=="string"?Et[Sr[E]]:Dh(null,E)).equals(Yt)||(le("/"+E.id+" gs"),Yt=E)};var Dh=function(E,V){if(!E||!Sr[E]){var me=!1;for(var ge in Et)if(Et.hasOwnProperty(ge)&&Et[ge].equals(V)){me=!0;break}if(me)V=Et[ge];else{var Te="GS"+(Object.keys(Et).length+1).toString(10);Et[Te]=V,V.id=Te}return E&&(Sr[E]=V.id),Xt.publish("addGState",V),V}};h.addGState=function(E,V){return Dh(E,V),this},h.saveGraphicsState=function(){return le("q"),Vn.push({key:Mt,size:Ke,color:gs}),this},h.restoreGraphicsState=function(){le("Q");var E=Vn.pop();return Mt=E.key,Ke=E.size,gs=E.color,Yt=null,this},h.setCurrentTransformationMatrix=function(E){return le(E.toString()+" cm"),this},h.comment=function(E){return le("#"+E),this};var gl=function(E,V){var me=E||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return me},set:function(Me){isNaN(Me)||(me=parseFloat(Me))}});var ge=V||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ge},set:function(Me){isNaN(Me)||(ge=parseFloat(Me))}});var Te="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Te},set:function(Me){Te=Me.toString()}}),this},su=function(E,V,me,ge){gl.call(this,E,V),this.type="rect";var Te=me||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Te},set:function(Ve){isNaN(Ve)||(Te=parseFloat(Ve))}});var Me=ge||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Me},set:function(Ve){isNaN(Ve)||(Me=parseFloat(Ve))}}),this},lu=function(){this.page=Nt,this.currentPage=I,this.pages=we.slice(0),this.pagesContext=At.slice(0),this.x=Dr,this.y=Wt,this.matrix=An,this.width=xs(I),this.height=Co(I),this.outputDestination=Fe,this.id="",this.objectNumber=-1};lu.prototype.restore=function(){Nt=this.page,I=this.currentPage,At=this.pagesContext,we=this.pages,Dr=this.x,Wt=this.y,An=this.matrix,cu(I,this.width),uu(I,this.height),Fe=this.outputDestination};var Rh=function(E,V,me,ge,Te){Fi.push(new lu),Nt=I=0,we=[],Dr=E,Wt=V,An=Te,Qc([me,ge])},d1=function(E){if(Ii[E])Fi.pop().restore();else{var V=new lu,me="Xo"+(Object.keys(ln).length+1).toString(10);V.id=me,Ii[E]=me,ln[me]=V,Xt.publish("addFormObject",V),Fi.pop().restore()}};for(var xl in h.beginFormObject=function(E,V,me,ge,Te){return Rh(E,V,me,ge,Te),this},h.endFormObject=function(E){return d1(E),this},h.doFormObject=function(E,V){var me=ln[Ii[E]];return le("q"),le(V.toString()+" cm"),le("/"+me.id+" Do"),le("Q"),this},h.getFormObject=function(E){var V=ln[Ii[E]];return{x:V.x,y:V.y,width:V.width,height:V.height,matrix:V.matrix}},h.save=function(E,V){return E=E||"generated.pdf",(V=V||{}).returnPromise=V.returnPromise||!1,V.returnPromise===!1?(Ps(hl(Va()),E),typeof Ps.unload=="function"&&Pt.setTimeout&&setTimeout(Ps.unload,911),this):new Promise((function(me,ge){try{var Te=Ps(hl(Va()),E);typeof Ps.unload=="function"&&Pt.setTimeout&&setTimeout(Ps.unload,911),me(Te)}catch(Me){ge(Me.message)}}))},xt.API)xt.API.hasOwnProperty(xl)&&(xl==="events"&&xt.API.events.length?(function(E,V){var me,ge,Te;for(Te=V.length-1;Te!==-1;Te--)me=V[Te][0],ge=V[Te][1],E.subscribe.apply(E,[me].concat(typeof ge=="function"?[ge]:ge))})(Xt,xt.API.events):h[xl]=xt.API[xl]);var xs=h.getPageWidth=function(E){return(At[E=E||I].mediaBox.topRightX-At[E].mediaBox.bottomLeftX)/at},cu=h.setPageWidth=function(E,V){At[E].mediaBox.topRightX=V*at+At[E].mediaBox.bottomLeftX},Co=h.getPageHeight=function(E){return(At[E=E||I].mediaBox.topRightY-At[E].mediaBox.bottomLeftY)/at},uu=h.setPageHeight=function(E,V){At[E].mediaBox.topRightY=V*at+At[E].mediaBox.bottomLeftY};return h.internal={pdfEscape:oi,getStyle:Ch,getFont:c1,getFontSize:Je,getCharSpace:h1,getTextColor:f1,getLineHeight:Ih,getLineHeightFactor:Mh,getLineWidth:ml,write:Re,getHorizontalCoordinate:Pa,getVerticalCoordinate:Ya,getCoordinateString:u1,getVerticalCoordinateString:jo,collections:{},newObject:Hr,newAdditionalObject:de,newObjectDeferred:Rr,newObjectDeferredBegin:X,getFilters:Pe,putStream:Le,events:Xt,scaleFactor:at,pageSize:{getWidth:function(){return xs(I)},setWidth:function(E){cu(I,E)},getHeight:function(){return Co(I)},setHeight:function(E){uu(I,E)}},encryptionOptions:u,encryption:Mn,getEncryptor:n1,output:dl,getNumberOfPages:Zp,pages:we,out:le,f2:B,f3:j,getPageInfo:jh,getPageInfoByObjId:kt,getCurrentPageInfo:i1,getPDFVersion:p,Point:gl,Rectangle:su,Matrix:_t,hasHotfix:Oh},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return xs(I)},set:function(E){cu(I,E)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Co(I)},set:function(E){uu(I,E)},enumerable:!0,configurable:!0}),Xp.call(h,Ue),Mt="F1",Eh(i,r),Xt.publish("initialized"),h}Hl.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Hl.prototype.toHexString=function(e){return e.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Hl.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Hl.prototype.processOwnerPassword=function(e,t){return py(dy(t).substr(0,5),e)},Hl.prototype.encryptor=function(e,t){var r=dy(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return py(r,n)}},ff.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||cr(e)!==cr(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},xt.API={events:[]},xt.version="2.5.2";var qr=xt.API,K2=1,Qs=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ll=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},It=function(e){return e.toFixed(2)},Go=function(e){return e.toFixed(5)};qr.__acroform__={};var vi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},aw=function(e){return e*K2},Ca=function(e){var t=new MN,r=dt.internal.getHeight(e)||0,n=dt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(It(n)),Number(It(r))],t},Bk=qr.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},$k=qr.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},qk=qr.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<t)==0?0:1},Kr=qr.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return qk(e,t-1)},Xr=qr.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Bk(e,t-1)},Jr=qr.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return $k(e,t-1)},Uk=qr.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(a+s)||0,l.upperRight_X=r(i+o)||0,l.upperRight_Y=n(a)||0,[Number(It(l.lowerLeft_X)),Number(It(l.lowerLeft_Y)),Number(It(l.upperRight_X)),Number(It(l.upperRight_Y))]},zk=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=my(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+It(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=Ca(e);return a.scope=e.scope,a.stream=t.join(`
101
+ `),a}},my=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map((function(j){return j.split(`
102
+ `)})):i.map((function(j){return[j]}));var a=r,o=dt.internal.getHeight(e)||0;o=o<0?-o:o;var s=dt.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(j,N,D){if(j+1<i.length){var U=N+" "+i[j+1][0];return f0(U,e,D).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,u,f=f0("3",e,a).height,d=e.multiline?o-a:(o-f)/2,h=d+=2,g=0,p=0,v=0;if(a<=0){t=`(...) Tj
103
+ `,t+="% Width of Text: "+f0(t,e,a=12).width+", FieldWidth:"+s+`
104
+ `;break}for(var y="",b=0,_=0;_<i.length;_++)if(i.hasOwnProperty(_)){var S=!1;if(i[_].length!==1&&v!==i[_].length-1){if((f+2)*(b+2)+2>o)continue e;y+=i[_][v],S=!0,p=_,_--}else{y=(y+=i[_][v]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var A=parseInt(_),P=l(A,y,a),T=_>=i.length-1;if(P&&!T){y+=" ",v=0;continue}if(P||T){if(T)p=A;else if(e.multiline&&(f+2)*(b+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(b+2)+2>o)continue e;p=A}}for(var k="",L=g;L<=p;L++){var B=i[L];if(e.multiline){if(L===p){k+=B[v]+" ",v=(v+1)%B.length;continue}if(L===g){k+=B[B.length-1]+" ";continue}}k+=B[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,u=f0(k,e,a).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}t+=It(c)+" "+It(h)+` Td
105
+ `,t+="("+Qs(k)+`) Tj
106
+ `,t+=-It(c)+` 0 Td
107
+ `,h=-(a+2),u=0,g=S?p:p+1,b++,y=""}break}return n.text=t,n.fontSize=a,n},f0=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},Wk={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Hk=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find((function(n){return n.type===r.type&&n.object===r.object}))===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},Gk=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,i=e[r];t.internal.newObjectDeferredBegin(i.objId,!0),cr(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},Vk=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(_a.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Wk)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");K2=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new DN,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)})),e.internal.events.subscribe("buildDocument",(function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&Hk(a,r)}})(e)})),e.internal.events.subscribe("putCatalog",(function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)})),e.internal.events.subscribe("postPutPages",(function(r){(function(n,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=Uk(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=dt.createDefaultAppearanceStream(s),cr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=zk(s);l.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var f="";for(var d in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(d)){var h=s.appearanceStreamContent[d];if(f+="/"+d+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var g=h[o];typeof g=="function"&&(g=g.call(i,s)),f+="/"+o+" "+g+" ",i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g)}}else typeof(g=h)=="function"&&(g=g.call(i,s)),f+="/"+o+" "+g,i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g);f+=">>"}l.push({key:"AP",value:`<<
108
+ `+f+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}a&&Gk(i.internal.acroformPlugin.xForms,i)})(r,e)})),e.internal.acroformPlugin.isInitialized=!0}},FN=qr.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(o){return o};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),cr(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+Qs(n(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},B1=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),e="("+Qs(n(e))+")"},Ia=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ia.prototype.toString=function(){return this.objId+" 0 R"},Ia.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ia.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"}));for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:FN(i,this.objId,this.scope)}):i instanceof Ia?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var MN=function(){Ia.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};vi(MN,Ia);var DN=function(){Ia.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Qs(r(e))+")"}},set:function(r){e=r}})};vi(DN,Ia);var _a=function e(){Ia.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Kr(t,3)},set:function(y){y?this.F=Xr(t,3):this.F=Jr(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');r=y}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(y){n=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(y){n[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(y){n[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(y){n[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(y){n[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof U0)return;a="FieldObject"+e.FieldNum++}var y=function(b){return b};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Qs(y(a))+")"},set:function(y){a=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(y){a=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/K2:c},set:function(y){c=y}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(y){u=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof U0||this instanceof ts))return B1(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=y}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof dn?d:B1(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=this instanceof dn?y:y.substr(0,1)==="("?Ll(y.substr(1,y.length-2)):Ll(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn?Ll(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof dn?"/"+y:y}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof dn?h:B1(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof dn?y:y.substr(0,1)==="("?Ll(y.substr(1,y.length-2)):Ll(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn?Ll(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof dn?"/"+y:y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var g,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(y){y=!!y,p=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(y){g=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,1)},set:function(y){y?this.Ff=Xr(this.Ff,1):this.Ff=Jr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,2)},set:function(y){y?this.Ff=Xr(this.Ff,2):this.Ff=Jr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,3)},set:function(y){y?this.Ff=Xr(this.Ff,3):this.Ff=Jr(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(v!==null)return v},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');v=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(v){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:v=2;break;case"center":case 1:v=1;break;case"left":case 0:default:v=0}}})};vi(_a,Ia);var Bs=function(){_a.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return FN(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=(function(a,o,s){s||(s=1);for(var l,c=[];l=o.exec(a);)c.push(l[s]);return c})(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,18)},set:function(r){r?this.Ff=Xr(this.Ff,18):this.Ff=Jr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Xr(this.Ff,19):this.Ff=Jr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,20)},set:function(r){r?(this.Ff=Xr(this.Ff,20),t.sort()):this.Ff=Jr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,22)},set:function(r){r?this.Ff=Xr(this.Ff,22):this.Ff=Jr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(r){r?this.Ff=Xr(this.Ff,23):this.Ff=Jr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,27)},set:function(r){r?this.Ff=Xr(this.Ff,27):this.Ff=Jr(this.Ff,27)}}),this.hasAppearanceStream=!1};vi(Bs,_a);var $s=function(){Bs.call(this),this.fontName="helvetica",this.combo=!1};vi($s,Bs);var qs=function(){$s.call(this),this.combo=!0};vi(qs,$s);var Gu=function(){qs.call(this),this.edit=!0};vi(Gu,qs);var dn=function(){_a.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,15)},set:function(r){r?this.Ff=Xr(this.Ff,15):this.Ff=Jr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,16)},set:function(r){r?this.Ff=Xr(this.Ff,16):this.Ff=Jr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,17)},set:function(r){r?this.Ff=Xr(this.Ff,17):this.Ff=Jr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(r){r?this.Ff=Xr(this.Ff,26):this.Ff=Jr(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+Qs(r(t[n]))+")");return i.push(">>"),i.join(`
109
+ `)}},set:function(r){cr(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};vi(dn,_a);var Vu=function(){dn.call(this),this.pushButton=!0};vi(Vu,dn);var Us=function(){dn.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};vi(Us,dn);var U0=function(){var e,t;_a.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),n)o.push("/"+a+" ("+Qs(i(n[a]))+")");return o.push(">>"),o.join(`
110
+ `)},set:function(i){cr(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=dt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vi(U0,_a),Us.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},Us.prototype.createOption=function(e){var t=new U0;return t.Parent=this,t.optionName=e,this.Kids.push(t),Yk.call(this.scope,t),t};var Yu=function(){dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=dt.CheckBox.createAppearanceStream()};vi(Yu,dn);var ts=function(){_a.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,13)},set:function(t){t?this.Ff=Xr(this.Ff,13):this.Ff=Jr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,21)},set:function(t){t?this.Ff=Xr(this.Ff,21):this.Ff=Jr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(t){t?this.Ff=Xr(this.Ff,23):this.Ff=Jr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,24)},set:function(t){t?this.Ff=Xr(this.Ff,24):this.Ff=Jr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,25)},set:function(t){t?this.Ff=Xr(this.Ff,25):this.Ff=Jr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(t){t?this.Ff=Xr(this.Ff,26):this.Ff=Jr(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};vi(ts,_a);var Ku=function(){ts.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,14)},set:function(e){e?this.Ff=Xr(this.Ff,14):this.Ff=Jr(this.Ff,14)}}),this.password=!0};vi(Ku,ts);var dt={CheckBox:{createAppearanceStream:function(){return{N:{On:dt.CheckBox.YesNormal},D:{On:dt.CheckBox.YesPushDown,Off:dt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=my(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+It(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
111
+ `),t},YesNormal:function(e){var t=Ca(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=dt.internal.getHeight(e),o=dt.internal.getWidth(e),s=my(e,e.caption);return i.push("1 g"),i.push("0 0 "+It(o)+" "+It(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+It(o-1)+" "+It(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+It(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
112
+ `),t},OffPushDown:function(e){var t=Ca(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
113
+ `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:dt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=dt.RadioButton.Circle.YesNormal,t.D[e]=dt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=dt.internal.getWidth(e)<=dt.internal.getHeight(e)?dt.internal.getWidth(e)/4:dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=dt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
114
+ `),t},YesPushDown:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=dt.internal.getWidth(e)<=dt.internal.getHeight(e)?dt.internal.getWidth(e)/4:dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*dt.internal.Bezier_C).toFixed(5)),o=Number((n*dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
115
+ `),t},OffPushDown:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=dt.internal.getWidth(e)<=dt.internal.getHeight(e)?dt.internal.getWidth(e)/4:dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
116
+ `),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:dt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=dt.RadioButton.Cross.YesNormal,t.D[e]=dt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=dt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+It(dt.internal.getWidth(e)-2)+" "+It(dt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(It(n.x1.x)+" "+It(n.x1.y)+" m"),r.push(It(n.x2.x)+" "+It(n.x2.y)+" l"),r.push(It(n.x4.x)+" "+It(n.x4.y)+" m"),r.push(It(n.x3.x)+" "+It(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
117
+ `),t},YesPushDown:function(e){var t=Ca(e);t.scope=e.scope;var r=dt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+It(dt.internal.getWidth(e)-2)+" "+It(dt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(It(r.x1.x)+" "+It(r.x1.y)+" m"),n.push(It(r.x2.x)+" "+It(r.x2.y)+" l"),n.push(It(r.x4.x)+" "+It(r.x4.y)+" m"),n.push(It(r.x3.x)+" "+It(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
118
+ `),t},OffPushDown:function(e){var t=Ca(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
119
+ `),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};dt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=dt.internal.getWidth(e),r=dt.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},dt.internal.getWidth=function(e){var t=0;return cr(e)==="object"&&(t=aw(e.Rect[2])),t},dt.internal.getHeight=function(e){var t=0;return cr(e)==="object"&&(t=aw(e.Rect[3])),t};var Yk=qr.addField=function(e){if(Vk(this,e),!(e instanceof _a))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};qr.AcroFormChoiceField=Bs,qr.AcroFormListBox=$s,qr.AcroFormComboBox=qs,qr.AcroFormEditBox=Gu,qr.AcroFormButton=dn,qr.AcroFormPushButton=Vu,qr.AcroFormRadioButton=Us,qr.AcroFormCheckBox=Yu,qr.AcroFormTextField=ts,qr.AcroFormPasswordField=Ku,qr.AcroFormAppearance=dt,qr.AcroForm={ChoiceField:Bs,ListBox:$s,ComboBox:qs,EditBox:Gu,Button:dn,PushButton:Vu,RadioButton:Us,CheckBox:Yu,TextField:ts,PasswordField:Ku,Appearance:dt},xt.AcroForm={ChoiceField:Bs,ListBox:$s,ComboBox:qs,EditBox:Gu,Button:dn,PushButton:Vu,RadioButton:Us,CheckBox:Yu,TextField:ts,PasswordField:Ku,Appearance:dt};var Kk=xt.AcroForm;function RN(e){return e.reduce((function(t,r,n){return t[r]=n,t}),{})}(function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(j,N){var D,U,W,R,z,Q=t;if((N=N||t)==="RGBA"||j.data!==void 0&&j.data instanceof Uint8ClampedArray&&"height"in j&&"width"in j)return"RGBA";if(P(j))for(z in r)for(W=r[z],D=0;D<W.length;D+=1){for(R=!0,U=0;U<W[D].length;U+=1)if(W[D][U]!==void 0&&W[D][U]!==j[U]){R=!1;break}if(R===!0){Q=z;break}}else for(z in r)for(W=r[z],D=0;D<W.length;D+=1){for(R=!0,U=0;U<W[D].length;U+=1)if(W[D][U]!==void 0&&W[D][U]!==j.charCodeAt(U)){R=!1;break}if(R===!0){Q=z;break}}return Q===t&&N!==t&&(Q=N),Q},i=function j(N){for(var D=this.internal.write,U=this.internal.putStream,W=(0,this.internal.getFilters)();W.indexOf("FlateEncode")!==-1;)W.splice(W.indexOf("FlateEncode"),1);N.objectId=this.internal.newObject();var R=[];if(R.push({key:"Type",value:"/XObject"}),R.push({key:"Subtype",value:"/Image"}),R.push({key:"Width",value:N.width}),R.push({key:"Height",value:N.height}),N.colorSpace===v.INDEXED?R.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(N.palette.length/3-1)+" "+("sMask"in N&&N.sMask!==void 0?N.objectId+2:N.objectId+1)+" 0 R]"}):(R.push({key:"ColorSpace",value:"/"+N.colorSpace}),N.colorSpace===v.DEVICE_CMYK&&R.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),R.push({key:"BitsPerComponent",value:N.bitsPerComponent}),"decodeParameters"in N&&N.decodeParameters!==void 0&&R.push({key:"DecodeParms",value:"<<"+N.decodeParameters+">>"}),"transparency"in N&&Array.isArray(N.transparency)){for(var z="",Q=0,Z=N.transparency.length;Q<Z;Q++)z+=N.transparency[Q]+" "+N.transparency[Q]+" ";R.push({key:"Mask",value:"["+z+"]"})}N.sMask!==void 0&&R.push({key:"SMask",value:N.objectId+1+" 0 R"});var ee=N.filter!==void 0?["/"+N.filter]:void 0;if(U({data:N.data,additionalKeyValues:R,alreadyAppliedFilters:ee,objectId:N.objectId}),D("endobj"),"sMask"in N&&N.sMask!==void 0){var ce="/Predictor "+N.predictor+" /Colors 1 /BitsPerComponent "+N.bitsPerComponent+" /Columns "+N.width,O={width:N.width,height:N.height,colorSpace:"DeviceGray",bitsPerComponent:N.bitsPerComponent,decodeParameters:ce,data:N.sMask};"filter"in N&&(O.filter=N.filter),j.call(this,O)}if(N.colorSpace===v.INDEXED){var I=this.internal.newObject();U({data:k(new Uint8Array(N.palette)),objectId:I}),D("endobj")}},a=function(){var j=this.internal.collections.addImage_images;for(var N in j)i.call(this,j[N])},o=function(){var j,N=this.internal.collections.addImage_images,D=this.internal.write;for(var U in N)D("/I"+(j=N[U]).index,j.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var j=this.internal.collections.addImage_images;return s.call(this),j},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(j){return typeof e["process"+j.toUpperCase()]=="function"},f=function(j){return cr(j)==="object"&&j.nodeType===1},d=function(j,N){if(j.nodeName==="IMG"&&j.hasAttribute("src")){var D=""+j.getAttribute("src");if(D.indexOf("data:image/")===0)return Hu(unescape(D).split("base64,").pop());var U=e.loadFile(D,!0);if(U!==void 0)return U}if(j.nodeName==="CANVAS"){if(j.width===0||j.height===0)throw new Error("Given canvas must have data. Canvas width: "+j.width+", height: "+j.height);var W;switch(N){case"PNG":W="image/png";break;case"WEBP":W="image/webp";break;case"JPEG":case"JPG":default:W="image/jpeg"}return Hu(j.toDataURL(W,1).split("base64,").pop())}},h=function(j){var N=this.internal.collections.addImage_images;if(N){for(var D in N)if(j===N[D].alias)return N[D]}},g=function(j,N,D){return j||N||(j=-96,N=-96),j<0&&(j=-1*D.width*72/j/this.internal.scaleFactor),N<0&&(N=-1*D.height*72/N/this.internal.scaleFactor),j===0&&(j=N*D.width/D.height),N===0&&(N=j*D.height/D.width),[j,N]},p=function(j,N,D,U,W,R){var z=g.call(this,D,U,W),Q=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,ee=l.call(this);if(D=z[0],U=z[1],ee[W.index]=W,R){R*=Math.PI/180;var ce=Math.cos(R),O=Math.sin(R),I=function(q){return q.toFixed(4)},M=[I(ce),I(O),I(-1*O),I(ce),0,0,"cm"]}this.internal.write("q"),R?(this.internal.write([1,"0","0",1,Q(j),Z(N+U),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([Q(D),"0","0",Q(U),"0","0","cm"].join(" "))):this.internal.write([Q(D),"0","0",Q(U),Q(j),Z(N+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+W.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=e.__addimage__.sHashCode=function(j){var N,D,U=0;if(typeof j=="string")for(D=j.length,N=0;N<D;N++)U=(U<<5)-U+j.charCodeAt(N),U|=0;else if(P(j))for(D=j.byteLength/2,N=0;N<D;N++)U=(U<<5)-U+j[N],U|=0;return U},_=e.__addimage__.validateStringAsBase64=function(j){(j=j||"").toString().trim();var N=!0;return j.length===0&&(N=!1),j.length%4!=0&&(N=!1),/^[A-Za-z0-9+/]+$/.test(j.substr(0,j.length-2))===!1&&(N=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(j.substr(-2))===!1&&(N=!1),N},S=e.__addimage__.extractImageFromDataUrl=function(j){var N=(j=j||"").split("base64,"),D=null;if(N.length===2){var U=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(N[0]);Array.isArray(U)&&(D={mimeType:U[1],charset:U[2],data:N[1]})}return D},A=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(j){return A()&&j instanceof ArrayBuffer};var P=e.__addimage__.isArrayBufferView=function(j){return A()&&typeof Uint32Array<"u"&&(j instanceof Int8Array||j instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&j instanceof Uint8ClampedArray||j instanceof Int16Array||j instanceof Uint16Array||j instanceof Int32Array||j instanceof Uint32Array||j instanceof Float32Array||j instanceof Float64Array)},T=e.__addimage__.binaryStringToUint8Array=function(j){for(var N=j.length,D=new Uint8Array(N),U=0;U<N;U++)D[U]=j.charCodeAt(U);return D},k=e.__addimage__.arrayBufferToBinaryString=function(j){for(var N="",D=P(j)?j:new Uint8Array(j),U=0;U<D.length;U+=8192)N+=String.fromCharCode.apply(null,D.subarray(U,U+8192));return N};e.addImage=function(){var j,N,D,U,W,R,z,Q,Z;if(typeof arguments[1]=="number"?(N=t,D=arguments[1],U=arguments[2],W=arguments[3],R=arguments[4],z=arguments[5],Q=arguments[6],Z=arguments[7]):(N=arguments[1],D=arguments[2],U=arguments[3],W=arguments[4],R=arguments[5],z=arguments[6],Q=arguments[7],Z=arguments[8]),cr(j=arguments[0])==="object"&&!f(j)&&"imageData"in j){var ee=j;j=ee.imageData,N=ee.format||N||t,D=ee.x||D||0,U=ee.y||U||0,W=ee.w||ee.width||W,R=ee.h||ee.height||R,z=ee.alias||z,Q=ee.compression||Q,Z=ee.rotation||ee.angle||Z}var ce=this.internal.getFilters();if(Q===void 0&&ce.indexOf("FlateEncode")!==-1&&(Q="SLOW"),isNaN(D)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var O=L.call(this,j,N,z,Q);return p.call(this,D,U,W,R,O,Z),this};var L=function(j,N,D,U){var W,R,z;if(typeof j=="string"&&n(j)===t){j=unescape(j);var Q=B(j,!1);(Q!==""||(Q=e.loadFile(j,!0))!==void 0)&&(j=Q)}if(f(j)&&(j=d(j,N)),N=n(j,N),!u(N))throw new Error("addImage does not support files of type '"+N+"', please ensure that a plugin for '"+N+"' support is added.");if(((z=D)==null||z.length===0)&&(D=(function(Z){return typeof Z=="string"||P(Z)?b(Z):P(Z.data)?b(Z.data):null})(j)),(W=h.call(this,D))||(A()&&(j instanceof Uint8Array||N==="RGBA"||(R=j,j=T(j))),W=this["process"+N.toUpperCase()](j,c.call(this),D,(function(Z){return Z&&typeof Z=="string"&&(Z=Z.toUpperCase()),Z in e.image_compression?Z:y.NONE})(U),R)),!W)throw new Error("An unknown error occurred whilst processing the image.");return W},B=e.__addimage__.convertBase64ToBinaryString=function(j,N){var D;N=typeof N!="boolean"||N;var U,W="";if(typeof j=="string"){U=(D=S(j))!==null?D.data:j;try{W=Hu(U)}catch(R){if(N)throw _(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+R.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return W};e.getImageProperties=function(j){var N,D,U="";if(f(j)&&(j=d(j)),typeof j=="string"&&n(j)===t&&((U=B(j,!1))===""&&(U=e.loadFile(j)||""),j=U),D=n(j),!u(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(!A()||j instanceof Uint8Array||(j=T(j)),!(N=this["process"+D.toUpperCase()](j)))throw new Error("An unknown error occurred whilst processing the image");return N.fileType=D,N}})(xt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};xt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,u=!1,f=0;f<c.length&&!u;f++)switch((n=c[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var d=0;d<c.length;d++){n=c[d];var h=this.internal.pdfEscape,g=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),v=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(p.objId),b=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+h(y(n.contents))+")",a+=" /Popup "+v.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+h(y(b))+") >>",p.content=a;var _=p.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+_,n.open&&(a+=" /Open true"),a+=" >>",v.content=a,this.internal.write(p.objId,"0 R",v.objId,"0 R");break;case"freetext":i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var S=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(g(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+S+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var A=this.annotations._nameMap[n.options.name];n.options.pageNumber=A.page,n.options.top=A.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(g(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var P=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+P+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+i),h:c(n+a)},options:o,type:"link"})},e.textWithLink=function(r,n,i,a){var o,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var u=this.splitTextToSize(r,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(r,n,i,a),i+=.2*c,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-c,s,o,a),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(xt.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(p){return t[p.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(p){return typeof p=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(p)},s=e.__arabicParser__.isArabicEndLetter=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(p){return o(p)&&i.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var v=0,y=r,b="",_=0;for(v=0;v<p.length;v+=1)y[p.charCodeAt(v)]!==void 0?(_++,typeof(y=y[p.charCodeAt(v)])=="number"&&(b+=String.fromCharCode(y),y=r,_=0),v===p.length-1&&(y=r,b+=p.charAt(v-(_-1)),v-=_-1,_=0)):(y=r,b+=p.charAt(v-_),v-=_,_=0);return b};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(p,v,y){return o(p)?a(p)===!1?-1:!c(p)||!o(v)&&!o(y)||!o(y)&&s(v)||s(p)&&!o(v)||s(p)&&l(v)||s(p)&&s(v)?0:u(p)&&o(v)&&!s(v)&&o(y)&&c(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var v=0,y=0,b=0,_="",S="",A="",P=(p=p||"").split("\\s+"),T=[];for(v=0;v<P.length;v+=1){for(T.push(""),y=0;y<P[v].length;y+=1)_=P[v][y],S=P[v][y-1],A=P[v][y+1],o(_)?(b=d(_,S,A),T[v]+=b!==-1?String.fromCharCode(t[_.charCodeAt(0)][b]):_):T[v]+=_;T[v]=f(T[v])}return T.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,v=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(v)){var b=0;for(y=[],b=0;b<v.length;b+=1)Array.isArray(v[b])?y.push([h(v[b][0]),v[b][1],v[b][2]]):y.push([h(v[b])]);p=y}else p=h(v);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])})(xt.API),xt.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(xt.API),(function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(p){l=p}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(p){c=p}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(p){f=p}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(p){d=p}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(p){h=p}});var g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(p){g=p}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),f=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,h=0,g=0,p=0,v=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(_,S){return _.concat(v.splitTextToSize(S,y))}),[])):l=Array.isArray(l)?l:[l];for(var b=0;b<l.length;b++)h<(p=this.getStringUnitWidth(l[b],{font:f})*u)&&(h=p);return h!==0&&(g=l.length),{w:h/=d,h:Math.max((g*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/d,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=f.top,h&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,u,f,d){if(n.call(this),!u)throw new Error("No data for PDF table.");var h,g,p,v,y=[],b=[],_=[],S={},A={},P=[],T=[],k=(d=d||{}).autoSize||!1,L=d.printHeaders!==!1,B=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,j=d.margins||Object.assign({width:this.getPageWidth()},t),N=typeof d.padding=="number"?d.padding:3,D=d.headerBackgroundColor||"#c8c8c8",U=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=j,this.internal.__cell__.table_font_size=B,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=D,this.internal.__cell__.headerTextColor=U,this.setFontSize(B),f==null)b=y=Object.keys(u[0]),_=y.map((function(){return"left"}));else if(Array.isArray(f)&&cr(f[0])==="object")for(y=f.map((function(ee){return ee.name})),b=f.map((function(ee){return ee.prompt||ee.name||""})),_=f.map((function(ee){return ee.align||"left"})),h=0;h<f.length;h+=1)A[f[h].name]=f[h].width*(19.049976/25.4);else Array.isArray(f)&&typeof f[0]=="string"&&(b=y=f,_=y.map((function(){return"left"})));if(k||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(S[v=y[h]]=u.map((function(ee){return ee[v]})),this.setFont(void 0,"bold"),P.push(this.getTextDimensions(b[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=S[v],this.setFont(void 0,"normal"),p=0;p<g.length;p+=1)P.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);A[v]=Math.max.apply(null,P)+N+N,P=[]}if(L){var W={};for(h=0;h<y.length;h+=1)W[y[h]]={},W[y[h]].text=b[h],W[y[h]].align=_[h];var R=s.call(this,W,A);T=y.map((function(ee){return new a(l,c,A[ee],R,W[ee].text,void 0,W[ee].align)})),this.setTableHeaderRow(T),this.printHeaderRow(1,!1)}var z=f.reduce((function(ee,ce){return ee[ce.name]=ce.align,ee}),{});for(h=0;h<u.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:u[h]},this);var Q=s.call(this,u[h],A);for(p=0;p<y.length;p+=1){var Z=u[h][y[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:Z},this),o.call(this,new a(l,c,A[y[p]],Q,Z,h+2,z[y[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(l).map((function(h){var g=l[h];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,c[h]-u-u)}),this).map((function(h){return this.getLineHeightFactor()*h.length*f/d+u+u}),this).reduce((function(h,g){return Math.max(h,g)}),0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){u=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,d.push(u)),u.lineNumber=l;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(g)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}})(xt.API);var BN={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},$N=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vy=RN($N),qN=[100,200,300,400,500,600,700,800,900],Xk=RN(qN);function gy(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return BN[a=a||"normal"]?a:"normal"})(e.style),n=(function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}})(e.weight),i=(function(a){return typeof vy[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function ow(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var Jk={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},sw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function lw(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Zk(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Jk,r.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=gy(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+lw(a)+"' and default family '"+n+"'.");if(o=(function(l,c){if(c[l])return c[l];var u=vy[l],f=u<=vy.normal?-1:1,d=ow(c,$N,u,f);if(!d)throw new Error("Could not find a matching font-stretch value for "+l);return d})(a.stretch,o),o=(function(l,c){if(c[l])return c[l];for(var u=BN[l],f=0;f<u.length;++f)if(c[u[f]])return c[u[f]];throw new Error("Could not find a matching font-style for "+l)})(a.style,o),!(o=(function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var u=Xk[l],f=ow(c,qN,u,l<400?-1:1);if(!f)throw new Error("Could not find a matching font-weight for value "+l);return f})(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+lw(a)+"'.");return o}function cw(e){return e.trimLeft()}function Qk(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function eL(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var h0,uw,fw,$1=["times"];(function(e){var t,r,n,i,a,o,s,l,c,u=function(O){return O=O||{},this.isStrokeTransparent=O.isStrokeTransparent||!1,this.strokeOpacity=O.strokeOpacity||1,this.strokeStyle=O.strokeStyle||"#000000",this.fillStyle=O.fillStyle||"#000000",this.isFillTransparent=O.isFillTransparent||!1,this.fillOpacity=O.fillOpacity||1,this.font=O.font||"10px sans-serif",this.textBaseline=O.textBaseline||"alphabetic",this.textAlign=O.textAlign||"left",this.lineWidth=O.lineWidth||1,this.lineJoin=O.lineJoin||"miter",this.lineCap=O.lineCap||"butt",this.path=O.path||[],this.transform=O.transform!==void 0?O.transform.clone():new l,this.globalCompositeOperation=O.globalCompositeOperation||"normal",this.globalAlpha=O.globalAlpha||1,this.clip_path=O.clip_path||[],this.currentPoint=O.currentPoint||new o,this.miterLimit=O.miterLimit||10,this.lastPoint=O.lastPoint||new o,this.lineDashOffset=O.lineDashOffset||0,this.lineDash=O.lineDash||[],this.margin=O.margin||[0,0,0,0],this.prevPageLastElemOffset=O.prevPageLastElemOffset||0,this.ignoreClearRect=typeof O.ignoreClearRect!="boolean"||O.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var f=function(O){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var I=O;Object.defineProperty(this,"pdf",{get:function(){return I}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(Ee){M=!!Ee}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(Ee){q=!!Ee}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(Ee){isNaN(Ee)||(Y=Ee)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(Ee){isNaN(Ee)||(fe=Ee)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ee){var le;typeof Ee=="number"?le=[Ee,Ee,Ee,Ee]:((le=new Array(4))[0]=Ee[0],le[1]=Ee.length>=2?Ee[1]:le[0],le[2]=Ee.length>=3?Ee[2]:le[0],le[3]=Ee.length>=4?Ee[3]:le[1]),c.margin=le}});var ae=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ae},set:function(Ee){ae=Ee}});var ne=0;Object.defineProperty(this,"lastBreak",{get:function(){return ne},set:function(Ee){ne=Ee}});var ve=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ve},set:function(Ee){ve=Ee}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ee){Ee instanceof u&&(c=Ee)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ee){c.path=Ee}});var we=[];Object.defineProperty(this,"ctxStack",{get:function(){return we},set:function(Ee){we=Ee}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ee){var le;le=d(Ee),this.ctx.fillStyle=le.style,this.ctx.isFillTransparent=le.a===0,this.ctx.fillOpacity=le.a,this.pdf.setFillColor(le.r,le.g,le.b,{a:le.a}),this.pdf.setTextColor(le.r,le.g,le.b,{a:le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ee){var le=d(Ee);this.ctx.strokeStyle=le.style,this.ctx.isStrokeTransparent=le.a===0,this.ctx.strokeOpacity=le.a,le.a===0?this.pdf.setDrawColor(255,255,255):(le.a,this.pdf.setDrawColor(le.r,le.g,le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ee){["butt","round","square"].indexOf(Ee)!==-1&&(this.ctx.lineCap=Ee,this.pdf.setLineCap(Ee))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ee){isNaN(Ee)||(this.ctx.lineWidth=Ee,this.pdf.setLineWidth(Ee))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ee){["bevel","round","miter"].indexOf(Ee)!==-1&&(this.ctx.lineJoin=Ee,this.pdf.setLineJoin(Ee))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ee){isNaN(Ee)||(this.ctx.miterLimit=Ee,this.pdf.setMiterLimit(Ee))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ee){this.ctx.textBaseline=Ee}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ee){["right","end","center","left","start"].indexOf(Ee)!==-1&&(this.ctx.textAlign=Ee)}});var se=null;function Fe(Ee,le){if(se===null){var Re=(function(tt){var Ue=[];return Object.keys(tt).forEach((function(Ke){tt[Ke].forEach((function(Ze){var Je=null;switch(Ze){case"bold":Je={family:Ke,weight:"bold"};break;case"italic":Je={family:Ke,style:"italic"};break;case"bolditalic":Je={family:Ke,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:Ke}}Je!==null&&(Je.ref={name:Ke,style:Ze},Ue.push(Je))}))})),Ue})(Ee.getFontList());se=(function(tt){for(var Ue={},Ke=0;Ke<tt.length;++Ke){var Ze=gy(tt[Ke]),Je=Ze.family,ft=Ze.stretch,pt=Ze.style,bt=Ze.weight;Ue[Je]=Ue[Je]||{},Ue[Je][ft]=Ue[Je][ft]||{},Ue[Je][ft][pt]=Ue[Je][ft][pt]||{},Ue[Je][ft][pt][bt]=Ze}return Ue})(Re.concat(le))}return se}var Ae=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ae},set:function(Ee){se=null,Ae=Ee}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ee){var le;if(this.ctx.font=Ee,(le=/^\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-z]+?)\s*$/i.exec(Ee))!==null){var Re=le[1],tt=(le[2],le[3]),Ue=le[4],Ke=(le[5],le[6]),Ze=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ue)[2];Ue=Math.floor(Ze==="px"?parseFloat(Ue)*this.pdf.internal.scaleFactor:Ze==="em"?parseFloat(Ue)*this.pdf.getFontSize():parseFloat(Ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ue);var Je=(function(wt){var Mt,at,Dr=[],Wt=wt.trim();if(Wt==="")return $1;if(Wt in sw)return[sw[Wt]];for(;Wt!=="";){switch(at=null,Mt=(Wt=cw(Wt)).charAt(0)){case'"':case"'":at=Qk(Wt.substring(1),Mt);break;default:at=eL(Wt)}if(at===null||(Dr.push(at[0]),(Wt=cw(at[1]))!==""&&Wt.charAt(0)!==","))return $1;Wt=Wt.replace(/^,/,"")}return Dr})(Ke);if(this.fontFaces){var ft=Zk(Fe(this.pdf,this.fontFaces),Je.map((function(wt){return{family:wt,stretch:"normal",weight:tt,style:Re}})));this.pdf.setFont(ft.ref.name,ft.ref.style)}else{var pt="";(tt==="bold"||parseInt(tt,10)>=700||Re==="bold")&&(pt="bold"),Re==="italic"&&(pt+="italic"),pt.length===0&&(pt="normal");for(var bt="",Ot={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"},Ft=0;Ft<Je.length;Ft++){if(this.pdf.internal.getFont(Je[Ft],pt,{noFallback:!0,disableWarning:!0})!==void 0){bt=Je[Ft];break}if(pt==="bolditalic"&&this.pdf.internal.getFont(Je[Ft],"bold",{noFallback:!0,disableWarning:!0})!==void 0)bt=Je[Ft],pt="bold";else if(this.pdf.internal.getFont(Je[Ft],"normal",{noFallback:!0,disableWarning:!0})!==void 0){bt=Je[Ft],pt="normal";break}}if(bt===""){for(var zt=0;zt<Je.length;zt++)if(Ot[Je[zt]]){bt=Ot[Je[zt]];break}}bt=bt===""?"Times":bt,this.pdf.setFont(bt,pt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ee){this.ctx.globalCompositeOperation=Ee}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ee){this.ctx.globalAlpha=Ee}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ee){this.ctx.lineDashOffset=Ee,ce.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ee){this.ctx.lineDash=Ee,ce.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ee){this.ctx.ignoreClearRect=!!Ee}})};f.prototype.setLineDash=function(O){this.lineDash=O},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){S.call(this,"fill",!1)},f.prototype.stroke=function(){S.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(O,I){if(isNaN(O)||isNaN(I))throw Tr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new o(O,I));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(O,I)},f.prototype.closePath=function(){var O=new o(0,0),I=0;for(I=this.path.length-1;I!==-1;I--)if(this.path[I].type==="begin"&&cr(this.path[I+1])==="object"&&typeof this.path[I+1].x=="number"){O=new o(this.path[I+1].x,this.path[I+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(O.x,O.y)},f.prototype.lineTo=function(O,I){if(isNaN(O)||isNaN(I))throw Tr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new o(O,I));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(M.x,M.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},f.prototype.quadraticCurveTo=function(O,I,M,q){if(isNaN(M)||isNaN(q)||isNaN(O)||isNaN(I))throw Tr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new o(M,q)),fe=this.ctx.transform.applyToPoint(new o(O,I));this.path.push({type:"qct",x1:fe.x,y1:fe.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new o(Y.x,Y.y)},f.prototype.bezierCurveTo=function(O,I,M,q,Y,fe){if(isNaN(Y)||isNaN(fe)||isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q))throw Tr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ae=this.ctx.transform.applyToPoint(new o(Y,fe)),ne=this.ctx.transform.applyToPoint(new o(O,I)),ve=this.ctx.transform.applyToPoint(new o(M,q));this.path.push({type:"bct",x1:ne.x,y1:ne.y,x2:ve.x,y2:ve.y,x:ae.x,y:ae.y}),this.ctx.lastPoint=new o(ae.x,ae.y)},f.prototype.arc=function(O,I,M,q,Y,fe){if(isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q)||isNaN(Y))throw Tr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var ae=this.ctx.transform.applyToPoint(new o(O,I));O=ae.x,I=ae.y;var ne=this.ctx.transform.applyToPoint(new o(0,M)),ve=this.ctx.transform.applyToPoint(new o(0,0));M=Math.sqrt(Math.pow(ne.x-ve.x,2)+Math.pow(ne.y-ve.y,2))}Math.abs(Y-q)>=2*Math.PI&&(q=0,Y=2*Math.PI),this.path.push({type:"arc",x:O,y:I,radius:M,startAngle:q,endAngle:Y,counterclockwise:fe})},f.prototype.arcTo=function(O,I,M,q,Y){throw new Error("arcTo not implemented.")},f.prototype.rect=function(O,I,M,q){if(isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q))throw Tr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(O,I),this.lineTo(O+M,I),this.lineTo(O+M,I+q),this.lineTo(O,I+q),this.lineTo(O,I),this.lineTo(O+M,I),this.lineTo(O,I)},f.prototype.fillRect=function(O,I,M,q){if(isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q))throw Tr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(O,I,M,q),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},f.prototype.strokeRect=function(O,I,M,q){if(isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q))throw Tr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(O,I,M,q),this.stroke())},f.prototype.clearRect=function(O,I,M,q){if(isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q))throw Tr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(O,I,M,q))},f.prototype.save=function(O){O=typeof O!="boolean"||O;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(I),O){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},f.prototype.restore=function(O){O=typeof O!="boolean"||O;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(I),O&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(O){var I,M,q,Y;if(O.isCanvasGradient===!0&&(O=O.getColor()),!O)return{r:0,g:0,b:0,a:0,style:O};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(O))I=0,M=0,q=0,Y=0;else{var fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(O);if(fe!==null)I=parseInt(fe[1]),M=parseInt(fe[2]),q=parseInt(fe[3]),Y=1;else if((fe=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(O))!==null)I=parseInt(fe[1]),M=parseInt(fe[2]),q=parseInt(fe[3]),Y=parseFloat(fe[4]);else{if(Y=1,typeof O=="string"&&O.charAt(0)!=="#"){var ae=new kN(O);O=ae.ok?ae.toHex():"#000000"}O.length===4?(I=O.substring(1,2),I+=I,M=O.substring(2,3),M+=M,q=O.substring(3,4),q+=q):(I=O.substring(1,3),M=O.substring(3,5),q=O.substring(5,7)),I=parseInt(I,16),M=parseInt(M,16),q=parseInt(q,16)}}return{r:I,g:M,b:q,a:Y,style:O}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(O,I,M,q){if(isNaN(I)||isNaN(M)||typeof O!="string")throw Tr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!h.call(this)){var Y=Q(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;N.call(this,{text:O,x:I,y:M,scale:fe,angle:Y,align:this.textAlign,maxWidth:q})}},f.prototype.strokeText=function(O,I,M,q){if(isNaN(I)||isNaN(M)||typeof O!="string")throw Tr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){q=isNaN(q)?void 0:q;var Y=Q(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;N.call(this,{text:O,x:I,y:M,scale:fe,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:q})}},f.prototype.measureText=function(O){if(typeof O!="string")throw Tr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var I=this.pdf,M=this.pdf.internal.scaleFactor,q=I.internal.getFontSize(),Y=I.getStringUnitWidth(O)*q/I.internal.scaleFactor,fe=function(ae){var ne=(ae=ae||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ne}}),this};return new fe({width:Y*=Math.round(96*M/72*1e4)/1e4})},f.prototype.scale=function(O,I){if(isNaN(O)||isNaN(I))throw Tr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new l(O,0,0,I,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.rotate=function(O){if(isNaN(O))throw Tr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var I=new l(Math.cos(O),Math.sin(O),-Math.sin(O),Math.cos(O),0,0);this.ctx.transform=this.ctx.transform.multiply(I)},f.prototype.translate=function(O,I){if(isNaN(O)||isNaN(I))throw Tr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new l(1,0,0,1,O,I);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.transform=function(O,I,M,q,Y,fe){if(isNaN(O)||isNaN(I)||isNaN(M)||isNaN(q)||isNaN(Y)||isNaN(fe))throw Tr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ae=new l(O,I,M,q,Y,fe);this.ctx.transform=this.ctx.transform.multiply(ae)},f.prototype.setTransform=function(O,I,M,q,Y,fe){O=isNaN(O)?1:O,I=isNaN(I)?0:I,M=isNaN(M)?0:M,q=isNaN(q)?1:q,Y=isNaN(Y)?0:Y,fe=isNaN(fe)?0:fe,this.ctx.transform=new l(O,I,M,q,Y,fe)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(O,I,M,q,Y,fe,ae,ne,ve){var we=this.pdf.getImageProperties(O),se=1,Fe=1,Ae=1,Ee=1;q!==void 0&&ne!==void 0&&(Ae=ne/q,Ee=ve/Y,se=we.width/q*ne/q,Fe=we.height/Y*ve/Y),fe===void 0&&(fe=I,ae=M,I=0,M=0),q!==void 0&&ne===void 0&&(ne=q,ve=Y),q===void 0&&ne===void 0&&(ne=we.width,ve=we.height);for(var le,Re=this.ctx.transform.decompose(),tt=Q(Re.rotate.shx),Ue=new l,Ke=(Ue=(Ue=(Ue=Ue.multiply(Re.translate)).multiply(Re.skew)).multiply(Re.scale)).applyToRectangle(new s(fe-I*Ae,ae-M*Ee,q*se,Y*Fe)),Ze=v.call(this,Ke),Je=[],ft=0;ft<Ze.length;ft+=1)Je.indexOf(Ze[ft])===-1&&Je.push(Ze[ft]);if(_(Je),this.autoPaging)for(var pt=Je[0],bt=Je[Je.length-1],Ot=pt;Ot<bt+1;Ot++){this.pdf.setPage(Ot);var Ft=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=Ot===1?this.posY+this.margin[0]:this.margin[0],wt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],at=Ot===1?0:wt+(Ot-2)*Mt;if(this.ctx.clip_path.length!==0){var Dr=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(le,this.posX+this.margin[3],-at+zt+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=Dr}var Wt=JSON.parse(JSON.stringify(Ke));Wt=b([Wt],this.posX+this.margin[3],-at+zt+this.ctx.prevPageLastElemOffset)[0];var An=(Ot>pt||Ot<bt)&&p.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ft,Mt,null).clip().discardPath()),this.pdf.addImage(O,"JPEG",Wt.x,Wt.y,Wt.w,Wt.h,null,null,tt),An&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(O,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,tt)};var v=function(O,I,M){var q=[];I=I||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(O.type){default:case"mt":case"lt":q.push(Math.floor((O.y+Y)/M)+1);break;case"arc":q.push(Math.floor((O.y+Y-O.radius)/M)+1),q.push(Math.floor((O.y+Y+O.radius)/M)+1);break;case"qct":var fe=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,O.x1,O.y1,O.x,O.y);q.push(Math.floor((fe.y+Y)/M)+1),q.push(Math.floor((fe.y+fe.h+Y)/M)+1);break;case"bct":var ae=ee(this.ctx.lastPoint.x,this.ctx.lastPoint.y,O.x1,O.y1,O.x2,O.y2,O.x,O.y);q.push(Math.floor((ae.y+Y)/M)+1),q.push(Math.floor((ae.y+ae.h+Y)/M)+1);break;case"rect":q.push(Math.floor((O.y+Y)/M)+1),q.push(Math.floor((O.y+O.h+Y)/M)+1)}for(var ne=0;ne<q.length;ne+=1)for(;this.pdf.internal.getNumberOfPages()<q[ne];)y.call(this);return q},y=function(){var O=this.fillStyle,I=this.strokeStyle,M=this.font,q=this.lineCap,Y=this.lineWidth,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=O,this.strokeStyle=I,this.font=M,this.lineCap=q,this.lineWidth=Y,this.lineJoin=fe},b=function(O,I,M){for(var q=0;q<O.length;q++)switch(O[q].type){case"bct":O[q].x2+=I,O[q].y2+=M;case"qct":O[q].x1+=I,O[q].y1+=M;case"mt":case"lt":case"arc":default:O[q].x+=I,O[q].y+=M}return O},_=function(O){return O.sort((function(I,M){return I-M}))},S=function(O,I){for(var M,q,Y=this.fillStyle,fe=this.strokeStyle,ae=this.lineCap,ne=this.lineWidth,ve=Math.abs(ne*this.ctx.transform.scaleX),we=this.lineJoin,se=JSON.parse(JSON.stringify(this.path)),Fe=JSON.parse(JSON.stringify(this.path)),Ae=[],Ee=0;Ee<Fe.length;Ee++)if(Fe[Ee].x!==void 0)for(var le=v.call(this,Fe[Ee]),Re=0;Re<le.length;Re+=1)Ae.indexOf(le[Re])===-1&&Ae.push(le[Re]);for(var tt=0;tt<Ae.length;tt++)for(;this.pdf.internal.getNumberOfPages()<Ae[tt];)y.call(this);if(_(Ae),this.autoPaging)for(var Ue=Ae[0],Ke=Ae[Ae.length-1],Ze=Ue;Ze<Ke+1;Ze++){this.pdf.setPage(Ze),this.fillStyle=Y,this.strokeStyle=fe,this.lineCap=ae,this.lineWidth=ve,this.lineJoin=we;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ft=Ze===1?this.posY+this.margin[0]:this.margin[0],pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],bt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ot=Ze===1?0:pt+(Ze-2)*bt;if(this.ctx.clip_path.length!==0){var Ft=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(M,this.posX+this.margin[3],-Ot+ft+this.ctx.prevPageLastElemOffset),A.call(this,O,!0),this.path=Ft}if(q=JSON.parse(JSON.stringify(se)),this.path=b(q,this.posX+this.margin[3],-Ot+ft+this.ctx.prevPageLastElemOffset),I===!1||Ze===0){var zt=(Ze>Ue||Ze<Ke)&&p.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,bt,null).clip().discardPath()),A.call(this,O,I),zt&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}else this.lineWidth=ve,A.call(this,O,I),this.lineWidth=ne;this.path=se},A=function(O,I){if((O!=="stroke"||I||!g.call(this))&&(O==="stroke"||I||!h.call(this))){for(var M,q,Y=[],fe=this.path,ae=0;ae<fe.length;ae++){var ne=fe[ae];switch(ne.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:ne,deltas:[],abs:[]});break;case"lt":var ve=Y.length;if(fe[ae-1]&&!isNaN(fe[ae-1].x)&&(M=[ne.x-fe[ae-1].x,ne.y-fe[ae-1].y],ve>0)){for(;ve>=0;ve--)if(Y[ve-1].close!==!0&&Y[ve-1].begin!==!0){Y[ve-1].deltas.push(M),Y[ve-1].abs.push(ne);break}}break;case"bct":M=[ne.x1-fe[ae-1].x,ne.y1-fe[ae-1].y,ne.x2-fe[ae-1].x,ne.y2-fe[ae-1].y,ne.x-fe[ae-1].x,ne.y-fe[ae-1].y],Y[Y.length-1].deltas.push(M);break;case"qct":var we=fe[ae-1].x+2/3*(ne.x1-fe[ae-1].x),se=fe[ae-1].y+2/3*(ne.y1-fe[ae-1].y),Fe=ne.x+2/3*(ne.x1-ne.x),Ae=ne.y+2/3*(ne.y1-ne.y),Ee=ne.x,le=ne.y;M=[we-fe[ae-1].x,se-fe[ae-1].y,Fe-fe[ae-1].x,Ae-fe[ae-1].y,Ee-fe[ae-1].x,le-fe[ae-1].y],Y[Y.length-1].deltas.push(M);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(ne)}}q=I?null:O==="stroke"?"stroke":"fill";for(var Re=!1,tt=0;tt<Y.length;tt++)if(Y[tt].arc)for(var Ue=Y[tt].abs,Ke=0;Ke<Ue.length;Ke++){var Ze=Ue[Ke];Ze.type==="arc"?k.call(this,Ze.x,Ze.y,Ze.radius,Ze.startAngle,Ze.endAngle,Ze.counterclockwise,void 0,I,!Re):D.call(this,Ze.x,Ze.y),Re=!0}else if(Y[tt].close===!0)this.pdf.internal.out("h"),Re=!1;else if(Y[tt].begin!==!0){var Je=Y[tt].start.x,ft=Y[tt].start.y;U.call(this,Y[tt].deltas,Je,ft),Re=!0}q&&L.call(this,q),I&&B.call(this)}},P=function(O){var I=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=I*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return O-M;case"top":return O+I-M;case"hanging":return O+I-2*M;case"middle":return O+I/2-M;case"ideographic":return O;case"alphabetic":default:return O}},T=function(O){return O+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var O=function(){};return O.colorStops=[],O.addColorStop=function(I,M){this.colorStops.push([I,M])},O.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},O.isCanvasGradient=!0,O},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(O,I,M,q,Y,fe,ae,ne,ve){for(var we=R.call(this,M,q,Y,fe),se=0;se<we.length;se++){var Fe=we[se];se===0&&(ve?j.call(this,Fe.x1+O,Fe.y1+I):D.call(this,Fe.x1+O,Fe.y1+I)),W.call(this,O,I,Fe.x2,Fe.y2,Fe.x3,Fe.y3,Fe.x4,Fe.y4)}ne?B.call(this):L.call(this,ae)},L=function(O){switch(O){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},B=function(){this.pdf.clip(),this.pdf.discardPath()},j=function(O,I){this.pdf.internal.out(r(O)+" "+n(I)+" m")},N=function(O){var I;switch(O.align){case"right":case"end":I="right";break;case"center":I="center";break;case"left":case"start":default:I="left"}var M=this.pdf.getTextDimensions(O.text),q=P.call(this,O.y),Y=T.call(this,q)-M.h,fe=this.ctx.transform.applyToPoint(new o(O.x,q)),ae=this.ctx.transform.decompose(),ne=new l;ne=(ne=(ne=ne.multiply(ae.translate)).multiply(ae.skew)).multiply(ae.scale);for(var ve,we,se,Fe=this.ctx.transform.applyToRectangle(new s(O.x,q,M.w,M.h)),Ae=ne.applyToRectangle(new s(O.x,Y,M.w,M.h)),Ee=v.call(this,Ae),le=[],Re=0;Re<Ee.length;Re+=1)le.indexOf(Ee[Re])===-1&&le.push(Ee[Re]);if(_(le),this.autoPaging)for(var tt=le[0],Ue=le[le.length-1],Ke=tt;Ke<Ue+1;Ke++){this.pdf.setPage(Ke);var Ze=Ke===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ft=this.pdf.internal.pageSize.height-this.margin[2],pt=ft-this.margin[0],bt=this.pdf.internal.pageSize.width-this.margin[1],Ot=bt-this.margin[3],Ft=Ke===1?0:Je+(Ke-2)*pt;if(this.ctx.clip_path.length!==0){var zt=this.path;ve=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(ve,this.posX+this.margin[3],-1*Ft+Ze),A.call(this,"fill",!0),this.path=zt}var wt=b([JSON.parse(JSON.stringify(Ae))],this.posX+this.margin[3],-Ft+Ze+this.ctx.prevPageLastElemOffset)[0];O.scale>=.01&&(we=this.pdf.internal.getFontSize(),this.pdf.setFontSize(we*O.scale),se=this.lineWidth,this.lineWidth=se*O.scale);var Mt=this.autoPaging!=="text";if(Mt||wt.y+wt.h<=ft){if(Mt||wt.y>=Ze&&wt.x<=bt){var at=Mt?O.text:this.pdf.splitTextToSize(O.text,O.maxWidth||bt-wt.x)[0],Dr=b([JSON.parse(JSON.stringify(Fe))],this.posX+this.margin[3],-Ft+Ze+this.ctx.prevPageLastElemOffset)[0],Wt=Mt&&(Ke>tt||Ke<Ue)&&p.call(this);Wt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ot,pt,null).clip().discardPath()),this.pdf.text(at,Dr.x,Dr.y,{angle:O.angle,align:I,renderingMode:O.renderingMode}),Wt&&this.pdf.restoreGraphicsState()}}else wt.y<ft&&(this.ctx.prevPageLastElemOffset+=ft-wt.y);O.scale>=.01&&(this.pdf.setFontSize(we),this.lineWidth=se)}else O.scale>=.01&&(we=this.pdf.internal.getFontSize(),this.pdf.setFontSize(we*O.scale),se=this.lineWidth,this.lineWidth=se*O.scale),this.pdf.text(O.text,fe.x+this.posX,fe.y+this.posY,{angle:O.angle,align:I,renderingMode:O.renderingMode,maxWidth:O.maxWidth}),O.scale>=.01&&(this.pdf.setFontSize(we),this.lineWidth=se)},D=function(O,I,M,q){M=M||0,q=q||0,this.pdf.internal.out(r(O+M)+" "+n(I+q)+" l")},U=function(O,I,M){return this.pdf.lines(O,I,M,null,null)},W=function(O,I,M,q,Y,fe,ae,ne){this.pdf.internal.out([t(i(M+O)),t(a(q+I)),t(i(Y+O)),t(a(fe+I)),t(i(ae+O)),t(a(ne+I)),"c"].join(" "))},R=function(O,I,M,q){for(var Y=2*Math.PI,fe=Math.PI/2;I>M;)I-=Y;var ae=Math.abs(M-I);ae<Y&&q&&(ae=Y-ae);for(var ne=[],ve=q?-1:1,we=I;ae>1e-5;){var se=we+ve*Math.min(ae,fe);ne.push(z.call(this,O,we,se)),ae-=Math.abs(se-we),we=se}return ne},z=function(O,I,M){var q=(M-I)/2,Y=O*Math.cos(q),fe=O*Math.sin(q),ae=Y,ne=-fe,ve=ae*ae+ne*ne,we=ve+ae*Y+ne*fe,se=4/3*(Math.sqrt(2*ve*we)-we)/(ae*fe-ne*Y),Fe=ae-se*ne,Ae=ne+se*ae,Ee=Fe,le=-Ae,Re=q+I,tt=Math.cos(Re),Ue=Math.sin(Re);return{x1:O*Math.cos(I),y1:O*Math.sin(I),x2:Fe*tt-Ae*Ue,y2:Fe*Ue+Ae*tt,x3:Ee*tt-le*Ue,y3:Ee*Ue+le*tt,x4:O*Math.cos(M),y4:O*Math.sin(M)}},Q=function(O){return 180*O/Math.PI},Z=function(O,I,M,q,Y,fe){var ae=O+.5*(M-O),ne=I+.5*(q-I),ve=Y+.5*(M-Y),we=fe+.5*(q-fe),se=Math.min(O,Y,ae,ve),Fe=Math.max(O,Y,ae,ve),Ae=Math.min(I,fe,ne,we),Ee=Math.max(I,fe,ne,we);return new s(se,Ae,Fe-se,Ee-Ae)},ee=function(O,I,M,q,Y,fe,ae,ne){var ve,we,se,Fe,Ae,Ee,le,Re,tt,Ue,Ke,Ze,Je,ft,pt=M-O,bt=q-I,Ot=Y-M,Ft=fe-q,zt=ae-Y,wt=ne-fe;for(we=0;we<41;we++)tt=(le=(se=O+(ve=we/40)*pt)+ve*((Ae=M+ve*Ot)-se))+ve*(Ae+ve*(Y+ve*zt-Ae)-le),Ue=(Re=(Fe=I+ve*bt)+ve*((Ee=q+ve*Ft)-Fe))+ve*(Ee+ve*(fe+ve*wt-Ee)-Re),we==0?(Ke=tt,Ze=Ue,Je=tt,ft=Ue):(Ke=Math.min(Ke,tt),Ze=Math.min(Ze,Ue),Je=Math.max(Je,tt),ft=Math.max(ft,Ue));return new s(Math.round(Ke),Math.round(Ze),Math.round(Je-Ke),Math.round(ft-Ze))},ce=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var O,I,M=(O=this.ctx.lineDash,I=this.ctx.lineDashOffset,JSON.stringify({lineDash:O,lineDashOffset:I}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(xt.API),(function(e){var t=function(a){var o,s,l,c,u,f,d,h,g,p;for(s=[],l=0,c=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;c>l;l+=4)(u=(a.charCodeAt(l)<<24)+(a.charCodeAt(l+1)<<16)+(a.charCodeAt(l+2)<<8)+a.charCodeAt(l+3))!==0?(f=(u=((u=((u=((u=(u-(p=u%85))/85)-(g=u%85))/85)-(h=u%85))/85)-(d=u%85))/85)%85,s.push(f+33,d+33,h+33,g+33,p+33)):s.push(122);return(function(v,y){for(var b=y;b>0;b--)v.pop()})(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(a){var o,s,l,c,u,f=String,d="length",h=255,g="charCodeAt",p="slice",v="replace";for(a[p](-2),a=a[p](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),l=[],c=0,u=(a+=o="uuuuu"[p](a[d]%5||5))[d];u>c;c+=5)s=52200625*(a[g](c)-33)+614125*(a[g](c+1)-33)+7225*(a[g](c+2)-33)+85*(a[g](c+3)-33)+(a[g](c+4)-33),l.push(h&s>>24,h&s>>16,h&s>>8,h&s);return(function(y,b){for(var _=b;_>0;_--)y.pop()})(l,o[d]),f.fromCharCode.apply(f,l)},n=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",l=0;l<a.length;l+=2)s+=String.fromCharCode("0x"+(a[l]+a[l+1]));return s},i=function(a){for(var o=new Uint8Array(a.length),s=a.length;s--;)o[s]=a.charCodeAt(s);return a=(o=fy(o)).reduce((function(l,c){return l+String.fromCharCode(c)}),"")};e.processDataByFilters=function(a,o){var s=0,l=a||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}})(xt.API),(function(e){e.loadFile=function(t,r,n){return(function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,c,u){var f=new XMLHttpRequest,d=0,h=function(g){var p=g.length,v=[],y=String.fromCharCode;for(d=0;d<p;d+=1)v.push(y(255&g.charCodeAt(d)));return v.join("")};if(f.open("GET",l,!c),f.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(f.onload=function(){f.status===200?u(h(this.responseText)):u(void 0)}),f.send(null),c&&f.status===200)return h(f.responseText)})(i,a,o)}catch{}return s})(t,r,n)},e.loadImageFile=e.loadFile})(xt.API),(function(e){function t(){return(Pt.html2canvas?Promise.resolve(Pt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-C4Mnoizn.js"))).catch((function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))})).then((function(o){return o.default?o.default:o}))}function r(){return(Pt.DOMPurify?Promise.resolve(Pt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-B0uier8o.js"))).catch((function(o){return Promise.reject(new Error("Could not load dompurify: "+o))})).then((function(o){return o.default?o.default:o}))}var n=function(o){var s=cr(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},i=function(o,s){var l=document.createElement(o);for(var c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},a=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(s)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(o,s){return o.__proto__=s||a.prototype,o},a.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"}},a.prototype.from=function(o,s){return this.then((function(){switch(s=s||(function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o)){case"string":return this.then(r).then((function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})}));case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}}))},a.prototype.to=function(o){switch(o){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.")}},a.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 o={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},s=(function l(c,u){for(var f=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),d=c.firstChild;d;d=d.nextSibling)u!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||f.appendChild(l(d,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(f.width=c.width,f.height=c.height,f.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(f.value=c.value),f.addEventListener("load",(function(){f.scrollTop=c.scrollTop,f.scrollLeft=c.scrollLeft}),!0)),f})(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("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"}))},a.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)})).then((function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},a.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=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,f=Object.assign({async:!0,allowTaint:!0,scale:u,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 f.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var d=0;d<c.length;++d){var h=c[d],g=h.src.find((function(p){return p.format==="truetype"}));g&&l.addFont(g.url,h.ref.name,h.ref.style)}return f.windowHeight=f.windowHeight||0,f.windowHeight=f.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):f.windowHeight,l.context2d.save(!0),s(this.prop.container,f)})).then((function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o}))},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},a.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},a.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(o,s)}))},a.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}}))},a.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},a.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map((function(l){if(l in a.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}}),this);return this.then((function(){return this.thenList(s)}))},a.prototype.get=function(o,s){return this.then((function(){var l=o in a.template.prop?this.prop[o]:this.opt[o];return s?s(l):l}))},a.prototype.setMargin=function(o){return this.then((function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o})).then(this.setPageSize)},a.prototype.setPageSize=function(o){function s(l,c){return Math.floor(l*c/72*96)}return this.then((function(){(o=o||xt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o}))},a.prototype.setProgress=function(o,s,l,c){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,s,l,c){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},a.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,(function(c,u){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,(function(f){return l.updateProgress(null,c),f})).then(c,u).then((function(f){return l.updateProgress(1),f}))}))},a.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),u=l.call(c,o,s);return a.convert(u,this.__proto__)},a.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},a.prototype.thenList=function(o){var s=this;return o.forEach((function(l){s=s.thenCore(l)})),s},a.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return a.convert(s,this)},a.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},a.prototype.error=function(o){return this.then((function(){throw new Error(o)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,xt.getPageSize=function(o,s,l){if(cr(o)==="object"){var c=o;o=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var u,f=(""+l).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var h,g=0,p=0;if(d.hasOwnProperty(f))g=d[f][1]/u,p=d[f][0]/u;else try{g=l[1],p=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",p>g&&(h=p,p=g,g=h);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",g>p&&(h=p,p=g,g=h)}return{width:p,height:g,unit:s,k:u,orientation:o}},e.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(gy):null;var l=new a(s);return s.worker?l:l.from(o).doCallback()}})(xt.API),xt.API.addJS=function(e){return fw=e,this.internal.events.subscribe("postPutResources",(function(){h0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(h0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),uw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+fw+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){h0!==void 0&&uw!==void 0&&this.internal.out("/Names <</JavaScript "+h0+" 0 R>>")})),this},(function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],s=n.exec(o);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(a=0;a<c;a++){var f=r.internal.newObject();u.push(f);var d=r.internal.getPageInfo(a+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=r.internal.newObject();for(r.internal.write("<< /Names [ "),a=0;a<u.length;a++)r.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+h+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,a){var o={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(o),o},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var o=n.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=r.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
120
+ `},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
121
+ `+n.id+` 0 obj\r
122
+ <<\r
123
+ `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
124
+ endobj\r
125
+ `},r.outline.count_r=function(n,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])})(xt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=o||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(l=(function(f){for(var d,h=256*f.charCodeAt(4)+f.charCodeAt(5),g=f.length,p={width:0,height:0,numcomponents:1},v=4;v<g;v+=2){if(v+=h,t.indexOf(f.charCodeAt(v+1))!==-1){d=256*f.charCodeAt(v+5)+f.charCodeAt(v+6),p={width:256*f.charCodeAt(v+7)+f.charCodeAt(v+8),height:d,numcomponents:f.charCodeAt(v+9)};break}h=256*f.charCodeAt(v+2)+f.charCodeAt(v+3)}return p})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:i}}return u}})(xt.API);var Il,d0,hw,dw,pw,tL=(function(){var e,t,r;function n(a){var o,s,l,c,u,f,d,h,g,p,v,y,b,_;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},f=null;;){switch(o=this.readUInt32(),g=(function(){var S,A;for(A=[],S=0;S<4;++S)A.push(String.fromCharCode(this.data[this.pos++]));return A}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":f&&this.animation.frames.push(f),this.pos+=4,f={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),c=this.readUInt16()||100,f.delay=1e3*u/c,f.disposeOp=this.data[this.pos++],f.blendOp=this.data[this.pos++],f.data=[];break;case"IDAT":case"fdAT":for(g==="fdAT"&&(this.pos+=4,o-=4),a=(f!=null?f.data:void 0)||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((p=l-this.transparency.indexed.length)>0)for(b=0;0<=p?b<p:b>p;0<=p?++b:--b)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":d=(v=this.read(o)).indexOf(0),h=String.fromCharCode.apply(String,v.slice(0,d)),this.text[h]=String.fromCharCode.apply(String,v.slice(d+1));break;case"IEND":return f&&this.animation.frames.push(f),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(_=this.colorType)===4||_===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var o,s;for(s=[],o=0;0<=a?o<a:o>a;0<=a?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,c=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(f,d,h,g){var p,v,y,b,_,S,A,P,T,k,L,B,j,N,D,U,W,R,z,Q,Z,ee=Math.ceil((c.width-f)/h),ce=Math.ceil((c.height-d)/g),O=c.width==ee&&c.height==ce;for(N=o*ee,B=O?s:new Uint8Array(N*ce),S=a.length,j=0,v=0;j<ce&&l<S;){switch(a[l++]){case 0:for(b=W=0;W<N;b=W+=1)B[v++]=a[l++];break;case 1:for(b=R=0;R<N;b=R+=1)p=a[l++],_=b<o?0:B[v-o],B[v++]=(p+_)%256;break;case 2:for(b=z=0;z<N;b=z+=1)p=a[l++],y=(b-b%o)/o,D=j&&B[(j-1)*N+y*o+b%o],B[v++]=(D+p)%256;break;case 3:for(b=Q=0;Q<N;b=Q+=1)p=a[l++],y=(b-b%o)/o,_=b<o?0:B[v-o],D=j&&B[(j-1)*N+y*o+b%o],B[v++]=(p+Math.floor((_+D)/2))%256;break;case 4:for(b=Z=0;Z<N;b=Z+=1)p=a[l++],y=(b-b%o)/o,_=b<o?0:B[v-o],j===0?D=U=0:(D=B[(j-1)*N+y*o+b%o],U=y&&B[(j-1)*N+(y-1)*o+b%o]),A=_+D-U,P=Math.abs(A-_),k=Math.abs(A-D),L=Math.abs(A-U),T=P<=k&&P<=L?_:k<=L?D:U,B[v++]=(p+T)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!O){var I=((d+j*g)*c.width+f)*o,M=j*N;for(b=0;b<ee;b+=1){for(var q=0;q<o;q+=1)s[I++]=B[M++];I+=(h-1)*o}}j++}}return a=kk(a),c.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},n.prototype.decodePalette=function(){var a,o,s,l,c,u,f,d,h;for(s=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+s.length),l=0,a=0,o=f=0,d=s.length;f<d;o=f+=3)c[l++]=s[o],c[l++]=s[o+1],c[l++]=s[o+2],c[l++]=(h=u[a++])!=null?h:255;return c},n.prototype.copyToImageData=function(a,o){var s,l,c,u,f,d,h,g,p,v,y;if(l=this.colors,p=null,s=this.hasAlphaChannel,this.palette.length&&(p=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),l=4,s=!0),g=(c=a.data||a).length,f=p||o,u=d=0,l===1)for(;u<g;)h=p?4*o[u/4]:d,v=f[h++],c[u++]=v,c[u++]=v,c[u++]=v,c[u++]=s?f[h++]:255,d=h;else for(;u<g;)h=p?4*o[u/4]:d,c[u++]=f[h++],c[u++]=f[h++],c[u++]=f[h++],c[u++]=s?f[h++]:255,d=h},n.prototype.decode=function(){var a;return a=new Uint8Array(this.width*this.height*4),this.copyToImageData(a,this.decodePixels()),a};var i=function(){if(Object.prototype.toString.call(Pt)==="[object Window]"){try{t=Pt.document.createElement("canvas"),r=t.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(a){var o;if(i()===!0)return r.width=a.width,r.height=a.height,r.clearRect(0,0,a.width,a.height),r.putImageData(a,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(a){var o,s,l,c,u,f,d,h;if(this.animation){for(h=[],s=u=0,f=(d=this.animation.frames).length;u<f;s=++u)o=d[s],l=a.createImageData(o.width,o.height),c=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,c),o.imageData=l,h.push(o.image=e(l));return h}},n.prototype.renderFrame=function(a,o){var s,l,c;return s=(l=this.animation.frames)[o],c=l[o-1],o===0&&a.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?a.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&a.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&a.clearRect(s.xOffset,s.yOffset,s.width,s.height),a.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(a){var o,s,l,c,u,f,d=this;return s=0,f=this.animation,c=f.numFrames,l=f.frames,u=f.numPlays,(o=function(){var h,g;if(h=s++%c,g=l[h],d.renderFrame(a,h),c>1&&s/c<u)return d.animation._timeout=setTimeout(o,g.delay)})()},n.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},n.prototype.render=function(a){var o,s;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,o=a.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},n})();/**
126
+ * @license
127
+ *
128
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
129
+ *
130
+ * Permission is hereby granted, free of charge, to any person obtaining
131
+ * a copy of this software and associated documentation files (the
132
+ * "Software"), to deal in the Software without restriction, including
133
+ * without limitation the rights to use, copy, modify, merge, publish,
134
+ * distribute, sublicense, and/or sell copies of the Software, and to
135
+ * permit persons to whom the Software is furnished to do so, subject to
136
+ * the following conditions:
137
+ *
138
+ * The above copyright notice and this permission notice shall be
139
+ * included in all copies or substantial portions of the Software.
140
+ *
141
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
142
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
143
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
144
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
145
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
146
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
147
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
148
+ * ====================================================================
149
+ *//**
150
+ * @license
151
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
152
+ *
153
+ * https://github.com/deanm/omggif
154
+ *
155
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
156
+ * of this software and associated documentation files (the "Software"), to
157
+ * deal in the Software without restriction, including without limitation the
158
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
159
+ * sell copies of the Software, and to permit persons to whom the Software is
160
+ * furnished to do so, subject to the following conditions:
161
+ *
162
+ * The above copyright notice and this permission notice shall be included in
163
+ * all copies or substantial portions of the Software.
164
+ *
165
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
166
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
168
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
169
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
170
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
171
+ * IN THE SOFTWARE.
172
+ *
173
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
174
+ * including animation and compression. It does not rely on any specific
175
+ * underlying system, so should run in the browser, Node, or Plask.
176
+ */function rL(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<(7&i)+1;e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var c=!0,u=[],f=0,d=null,h=0,g=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,g=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var p=e[t++];f=e[t++]|e[t++]<<8,d=e[t++],(1&p)==0&&(d=null),h=p>>2&7,t++;break;case 254:for(;;){if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,S=e[t++],A=S>>6&1,P=1<<(7&S)+1,T=s,k=l,L=!1;S>>7&&(L=!0,T=t,k=P,t+=3*P);var B=t;for(t++;;){var j;if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}u.push({x:v,y,width:b,height:_,has_local_palette:L,palette_offset:T,palette_size:k,data_offset:B,data_length:t-B,transparent_index:d,interlaced:!!A,delay:f,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return g},this.frameInfo=function(N){if(N<0||N>=u.length)throw new Error("Frame index out of range.");return u[N]},this.decodeAndBlitFrameBGRA=function(N,D){var U=this.frameInfo(N),W=U.width*U.height,R=new Uint8Array(W);mw(e,U.data_offset,R,W);var z=U.palette_offset,Q=U.transparent_index;Q===null&&(Q=256);var Z=U.width,ee=r-Z,ce=Z,O=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),M=O,q=4*ee;U.interlaced===!0&&(q+=4*r*7);for(var Y=8,fe=0,ae=R.length;fe<ae;++fe){var ne=R[fe];if(ce===0&&(ce=Z,(M+=q)>=I&&(q=4*ee+4*r*(Y-1),M=O+(Z+ee)*(Y<<1),Y>>=1)),ne===Q)M+=4;else{var ve=e[z+3*ne],we=e[z+3*ne+1],se=e[z+3*ne+2];D[M++]=se,D[M++]=we,D[M++]=ve,D[M++]=255}--ce}},this.decodeAndBlitFrameRGBA=function(N,D){var U=this.frameInfo(N),W=U.width*U.height,R=new Uint8Array(W);mw(e,U.data_offset,R,W);var z=U.palette_offset,Q=U.transparent_index;Q===null&&(Q=256);var Z=U.width,ee=r-Z,ce=Z,O=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),M=O,q=4*ee;U.interlaced===!0&&(q+=4*r*7);for(var Y=8,fe=0,ae=R.length;fe<ae;++fe){var ne=R[fe];if(ce===0&&(ce=Z,(M+=q)>=I&&(q=4*ee+4*r*(Y-1),M=O+(Z+ee)*(Y<<1),Y>>=1)),ne===Q)M+=4;else{var ve=e[z+3*ne],we=e[z+3*ne+1],se=e[z+3*ne+2];D[M++]=ve,D[M++]=we,D[M++]=se,D[M++]=255}--ce}}}function mw(e,t,r,n){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,c=(1<<l)-1,u=0,f=0,d=0,h=e[t++],g=new Int32Array(4096),p=null;;){for(;u<16&&h!==0;)f|=e[t++]<<u,u+=8,h===1?h=e[t++]:--h;if(u<l)break;var v=f&c;if(f>>=l,u-=l,v!==a){if(v===o)break;for(var y=v<s?v:p,b=0,_=y;_>a;)_=g[_]>>8,++b;var S=_;if(d+b+(y!==v?1:0)>n)return void Tr.log("Warning, gif stream longer than expected.");r[d++]=S;var A=d+=b;for(y!==v&&(r[d++]=S),_=y;b--;)_=g[_],r[--A]=255&_,_>>=8;p!==null&&s<4096&&(g[s++]=p<<8|S,s>=c+1&&l<12&&(++l,c=c<<1|1)),p=v}else s=o+1,c=(1<<(l=i+1))-1,p=null}return d!==n&&Tr.log("Warning, gif stream shorter than expected."),r}/**
177
+ * @license
178
+ Copyright (c) 2008, Adobe Systems Incorporated
179
+ All rights reserved.
180
+
181
+ Redistribution and use in source and binary forms, with or without
182
+ modification, are permitted provided that the following conditions are
183
+ met:
184
+
185
+ * Redistributions of source code must retain the above copyright notice,
186
+ this list of conditions and the following disclaimer.
187
+
188
+ * Redistributions in binary form must reproduce the above copyright
189
+ notice, this list of conditions and the following disclaimer in the
190
+ documentation and/or other materials provided with the distribution.
191
+
192
+ * Neither the name of Adobe Systems Incorporated nor the names of its
193
+ contributors may be used to endorse or promote products derived from
194
+ this software without specific prior written permission.
195
+
196
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
197
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
198
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
199
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
200
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
201
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
202
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
203
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
204
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
205
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
206
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
207
+ */function q1(e){var t,r,n,i,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),g=new Array(64),p=[],v=0,y=7,b=new Array(64),_=new Array(64),S=new Array(64),A=new Array(256),P=new Array(2048),T=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],j=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function R(O,I){for(var M=0,q=0,Y=new Array,fe=1;fe<=16;fe++){for(var ae=1;ae<=O[fe];ae++)Y[I[q]]=[],Y[I[q]][0]=M,Y[I[q]][1]=fe,q++,M++;M*=2}return Y}function z(O){for(var I=O[0],M=O[1]-1;M>=0;)I&1<<M&&(v|=1<<y),M--,--y<0&&(v==255?(Q(255),Q(0)):Q(v),y=7,v=0)}function Q(O){p.push(O)}function Z(O){Q(O>>8&255),Q(255&O)}function ee(O,I,M,q,Y){for(var fe,ae=Y[0],ne=Y[240],ve=(function(Ue,Ke){var Ze,Je,ft,pt,bt,Ot,Ft,zt,wt,Mt,at=0;for(wt=0;wt<8;++wt){Ze=Ue[at],Je=Ue[at+1],ft=Ue[at+2],pt=Ue[at+3],bt=Ue[at+4],Ot=Ue[at+5],Ft=Ue[at+6];var Dr=Ze+(zt=Ue[at+7]),Wt=Ze-zt,An=Je+Ft,Vt=Je-Ft,fr=ft+Ot,Vn=ft-Ot,_e=pt+bt,mt=pt-bt,Et=Dr+_e,Sr=Dr-_e,Yt=An+fr,Nt=An-fr;Ue[at]=Et+Yt,Ue[at+4]=Et-Yt;var At=.707106781*(Nt+Sr);Ue[at+2]=Sr+At,Ue[at+6]=Sr-At;var Xt=.382683433*((Et=mt+Vn)-(Nt=Vt+Wt)),Ha=.5411961*Et+Xt,ln=1.306562965*Nt+Xt,Ii=.707106781*(Yt=Vn+Vt),Fi=Wt+Ii,_t=Wt-Ii;Ue[at+5]=_t+Ha,Ue[at+3]=_t-Ha,Ue[at+1]=Fi+ln,Ue[at+7]=Fi-ln,at+=8}for(at=0,wt=0;wt<8;++wt){Ze=Ue[at],Je=Ue[at+8],ft=Ue[at+16],pt=Ue[at+24],bt=Ue[at+32],Ot=Ue[at+40],Ft=Ue[at+48];var xi=Ze+(zt=Ue[at+56]),ai=Ze-zt,Fn=Je+Ft,Hr=Je-Ft,Rr=ft+Ot,X=ft-Ot,de=pt+bt,ie=pt-bt,oe=xi+de,he=xi-de,pe=Fn+Rr,Pe=Fn-Rr;Ue[at]=oe+pe,Ue[at+32]=oe-pe;var Le=.707106781*(Pe+he);Ue[at+16]=he+Le,Ue[at+48]=he-Le;var Ne=.382683433*((oe=ie+X)-(Pe=Hr+ai)),Ce=.5411961*oe+Ne,ke=1.306562965*Pe+Ne,Ye=.707106781*(pe=X+Hr),Qe=ai+Ye,lt=ai-Ye;Ue[at+40]=lt+Ce,Ue[at+24]=lt-Ce,Ue[at+8]=Qe+ke,Ue[at+56]=Qe-ke,at++}for(wt=0;wt<64;++wt)Mt=Ue[wt]*Ke[wt],h[wt]=Mt>0?Mt+.5|0:Mt-.5|0;return h})(O,I),we=0;we<64;++we)g[T[we]]=ve[we];var se=g[0]-M;M=g[0],se==0?z(q[0]):(z(q[d[fe=32767+se]]),z(f[fe]));for(var Fe=63;Fe>0&&g[Fe]==0;)Fe--;if(Fe==0)return z(ae),M;for(var Ae,Ee=1;Ee<=Fe;){for(var le=Ee;g[Ee]==0&&Ee<=Fe;)++Ee;var Re=Ee-le;if(Re>=16){Ae=Re>>4;for(var tt=1;tt<=Ae;++tt)z(ne);Re&=15}fe=32767+g[Ee],z(Y[(Re<<4)+d[fe]]),z(f[fe]),Ee++}return Fe!=63&&z(ae),M}function ce(O){O=Math.min(Math.max(O,1),100),a!=O&&((function(I){for(var M=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],q=0;q<64;q++){var Y=o((M[q]*I+50)/100);Y=Math.min(Math.max(Y,1),255),s[T[q]]=Y}for(var fe=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ae=0;ae<64;ae++){var ne=o((fe[ae]*I+50)/100);ne=Math.min(Math.max(ne,1),255),l[T[ae]]=ne}for(var ve=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],we=0,se=0;se<8;se++)for(var Fe=0;Fe<8;Fe++)c[we]=1/(s[T[we]]*ve[se]*ve[Fe]*8),u[we]=1/(l[T[we]]*ve[se]*ve[Fe]*8),we++})(O<50?Math.floor(5e3/O):Math.floor(200-2*O)),a=O)}this.encode=function(O,I){I&&ce(I),p=new Array,v=0,y=7,Z(65496),Z(65504),Z(16),Q(74),Q(70),Q(73),Q(70),Q(0),Q(1),Q(1),Q(0),Z(1),Z(1),Q(0),Q(0),(function(){Z(65499),Z(132),Q(0);for(var Je=0;Je<64;Je++)Q(s[Je]);Q(1);for(var ft=0;ft<64;ft++)Q(l[ft])})(),(function(Je,ft){Z(65472),Z(17),Q(8),Z(ft),Z(Je),Q(3),Q(1),Q(17),Q(0),Q(2),Q(17),Q(1),Q(3),Q(17),Q(1)})(O.width,O.height),(function(){Z(65476),Z(418),Q(0);for(var Je=0;Je<16;Je++)Q(k[Je+1]);for(var ft=0;ft<=11;ft++)Q(L[ft]);Q(16);for(var pt=0;pt<16;pt++)Q(B[pt+1]);for(var bt=0;bt<=161;bt++)Q(j[bt]);Q(1);for(var Ot=0;Ot<16;Ot++)Q(N[Ot+1]);for(var Ft=0;Ft<=11;Ft++)Q(D[Ft]);Q(17);for(var zt=0;zt<16;zt++)Q(U[zt+1]);for(var wt=0;wt<=161;wt++)Q(W[wt])})(),Z(65498),Z(12),Q(3),Q(1),Q(0),Q(2),Q(17),Q(3),Q(17),Q(0),Q(63),Q(0);var M=0,q=0,Y=0;v=0,y=7,this.encode.displayName="_encode_";for(var fe,ae,ne,ve,we,se,Fe,Ae,Ee,le=O.data,Re=O.width,tt=O.height,Ue=4*Re,Ke=0;Ke<tt;){for(fe=0;fe<Ue;){for(we=Ue*Ke+fe,Fe=-1,Ae=0,Ee=0;Ee<64;Ee++)se=we+(Ae=Ee>>3)*Ue+(Fe=4*(7&Ee)),Ke+Ae>=tt&&(se-=Ue*(Ke+1+Ae-tt)),fe+Fe>=Ue&&(se-=fe+Fe-Ue+4),ae=le[se++],ne=le[se++],ve=le[se++],b[Ee]=(P[ae]+P[ne+256>>0]+P[ve+512>>0]>>16)-128,_[Ee]=(P[ae+768>>0]+P[ne+1024>>0]+P[ve+1280>>0]>>16)-128,S[Ee]=(P[ae+1280>>0]+P[ne+1536>>0]+P[ve+1792>>0]>>16)-128;M=ee(b,c,M,t,n),q=ee(_,u,q,r,i),Y=ee(S,u,Y,r,i),fe+=32}Ke+=8}if(y>=0){var Ze=[];Ze[1]=y+1,Ze[0]=(1<<y+1)-1,z(Ze)}return Z(65497),new Uint8Array(p)},e=e||50,(function(){for(var O=String.fromCharCode,I=0;I<256;I++)A[I]=O(I)})(),t=R(k,L),r=R(N,D),n=R(B,j),i=R(U,W),(function(){for(var O=1,I=2,M=1;M<=15;M++){for(var q=O;q<I;q++)d[32767+q]=M,f[32767+q]=[],f[32767+q][1]=M,f[32767+q][0]=q;for(var Y=-(I-1);Y<=-O;Y++)d[32767+Y]=M,f[32767+Y]=[],f[32767+Y][1]=M,f[32767+Y][0]=I-1+Y;O<<=1,I<<=1}})(),(function(){for(var O=0;O<256;O++)P[O]=19595*O,P[O+256>>0]=38470*O,P[O+512>>0]=7471*O+32768,P[O+768>>0]=-11059*O,P[O+1024>>0]=-21709*O,P[O+1280>>0]=32768*O+8421375,P[O+1536>>0]=-27439*O,P[O+1792>>0]=-5329*O})(),ce(e)}/**
208
+ * @license
209
+ * Copyright (c) 2017 Aras Abbasi
210
+ *
211
+ * Licensed under the MIT License.
212
+ * http://opensource.org/licenses/mit-license
213
+ */function la(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function vw(e){function t(k){if(!k)throw Error("assert :P")}function r(k,L,B){for(var j=0;4>j;j++)if(k[L+j]!=B.charCodeAt(j))return!0;return!1}function n(k,L,B,j,N){for(var D=0;D<N;D++)k[L+D]=B[j+D]}function i(k,L,B,j){for(var N=0;N<j;N++)k[L+N]=B}function a(k){return new Int32Array(k)}function o(k,L){for(var B=[],j=0;j<k;j++)B.push(new L);return B}function s(k,L){var B=[];return(function j(N,D,U){for(var W=U[D],R=0;R<W&&(N.push(U.length>D+1?[]:new L),!(U.length<D+1));R++)j(N[R],D+1,U)})(B,0,k),B}var l=function(){var k=this;function L(m,w){for(var C=1<<w-1>>>0;m&C;)C>>>=1;return C?(m&C-1)+C:m}function B(m,w,C,F,H){t(!(F%C));do m[w+(F-=C)]=H;while(0<F)}function j(m,w,C,F,H){if(t(2328>=H),512>=H)var K=a(512);else if((K=a(H))==null)return 0;return(function(J,te,re,ue,xe,Oe){var je,Se,ze=te,Ie=1<<re,ye=a(16),be=a(16);for(t(xe!=0),t(ue!=null),t(J!=null),t(0<re),Se=0;Se<xe;++Se){if(15<ue[Se])return 0;++ye[ue[Se]]}if(ye[0]==xe)return 0;for(be[1]=0,je=1;15>je;++je){if(ye[je]>1<<je)return 0;be[je+1]=be[je]+ye[je]}for(Se=0;Se<xe;++Se)je=ue[Se],0<ue[Se]&&(Oe[be[je]++]=Se);if(be[15]==1)return(ue=new N).g=0,ue.value=Oe[0],B(J,ze,1,Ie,ue),Ie;var $e,He=-1,qe=Ie-1,ut=0,it=1,St=1,ot=1<<re;for(Se=0,je=1,xe=2;je<=re;++je,xe<<=1){if(it+=St<<=1,0>(St-=ye[je]))return 0;for(;0<ye[je];--ye[je])(ue=new N).g=je,ue.value=Oe[Se++],B(J,ze+ut,xe,ot,ue),ut=L(ut,je)}for(je=re+1,xe=2;15>=je;++je,xe<<=1){if(it+=St<<=1,0>(St-=ye[je]))return 0;for(;0<ye[je];--ye[je]){if(ue=new N,(ut&qe)!=He){for(ze+=ot,$e=1<<(He=je)-re;15>He&&!(0>=($e-=ye[He]));)++He,$e<<=1;Ie+=ot=1<<($e=He-re),J[te+(He=ut&qe)].g=$e+re,J[te+He].value=ze-te-He}ue.g=je-re,ue.value=Oe[Se++],B(J,ze+(ut>>re),xe,ot,ue),ut=L(ut,je)}}return it!=2*be[15]-1?0:Ie})(m,w,C,F,H,K)}function N(){this.value=this.g=0}function D(){this.value=this.g=0}function U(){this.G=o(5,N),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Tn,D)}function W(m,w,C,F){t(m!=null),t(w!=null),t(2147483648>F),m.Ca=254,m.I=0,m.b=-8,m.Ka=0,m.oa=w,m.pa=C,m.Jd=w,m.Yc=C+F,m.Zc=4<=F?C+F-4+1:C,fe(m)}function R(m,w){for(var C=0;0<w--;)C|=ne(m,128)<<w;return C}function z(m,w){var C=R(m,w);return ae(m)?-C:C}function Q(m,w,C,F){var H,K=0;for(t(m!=null),t(w!=null),t(4294967288>F),m.Sb=F,m.Ra=0,m.u=0,m.h=0,4<F&&(F=4),H=0;H<F;++H)K+=w[C+H]<<8*H;m.Ra=K,m.bb=F,m.oa=w,m.pa=C}function Z(m){for(;8<=m.u&&m.bb<m.Sb;)m.Ra>>>=8,m.Ra+=m.oa[m.pa+m.bb]<<Sl-8>>>0,++m.bb,m.u-=8;M(m)&&(m.h=1,m.u=0)}function ee(m,w){if(t(0<=w),!m.h&&w<=_l){var C=I(m)&wl[w];return m.u+=w,Z(m),C}return m.h=1,m.u=0}function ce(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function O(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function I(m){return m.Ra>>>(m.u&Sl-1)>>>0}function M(m){return t(m.bb<=m.Sb),m.h||m.bb==m.Sb&&m.u>Sl}function q(m,w){m.u=w,m.h=M(m)}function Y(m){m.u>=mu&&(t(m.u>=mu),Z(m))}function fe(m){t(m!=null&&m.oa!=null),m.pa<m.Zc?(m.I=(m.oa[m.pa++]|m.I<<8)>>>0,m.b+=8):(t(m!=null&&m.oa!=null),m.pa<m.Yc?(m.b+=8,m.I=m.oa[m.pa++]|m.I<<8):m.Ka?m.b=0:(m.I<<=8,m.b+=8,m.Ka=1))}function ae(m){return R(m,1)}function ne(m,w){var C=m.Ca;0>m.b&&fe(m);var F=m.b,H=C*w>>>8,K=(m.I>>>F>H)+0;for(K?(C-=H,m.I-=H+1<<F>>>0):C=H+1,F=C,H=0;256<=F;)H+=8,F>>=8;return F=7^H+si[F],m.b-=F,m.Ca=(C<<F)-1,K}function ve(m,w,C){m[w+0]=C>>24&255,m[w+1]=C>>16&255,m[w+2]=C>>8&255,m[w+3]=C>>0&255}function we(m,w){return m[w+0]<<0|m[w+1]<<8}function se(m,w){return we(m,w)|m[w+2]<<16}function Fe(m,w){return we(m,w)|we(m,w+2)<<16}function Ae(m,w){var C=1<<w;return t(m!=null),t(0<w),m.X=a(C),m.X==null?0:(m.Mb=32-w,m.Xa=w,1)}function Ee(m,w){t(m!=null),t(w!=null),t(m.Xa==w.Xa),n(w.X,0,m.X,0,1<<w.Xa)}function le(){this.X=[],this.Xa=this.Mb=0}function Re(m,w,C,F){t(C!=null),t(F!=null);var H=C[0],K=F[0];return H==0&&(H=(m*K+w/2)/w),K==0&&(K=(w*H+m/2)/m),0>=H||0>=K?0:(C[0]=H,F[0]=K,1)}function tt(m,w){return m+(1<<w)-1>>>w}function Ue(m,w){return((4278255360&m)+(4278255360&w)>>>0&4278255360)+((16711935&m)+(16711935&w)>>>0&16711935)>>>0}function Ke(m,w){k[w]=function(C,F,H,K,J,te,re){var ue;for(ue=0;ue<J;++ue){var xe=k[m](te[re+ue-1],H,K+ue);te[re+ue]=Ue(C[F+ue],xe)}}}function Ze(){this.ud=this.hd=this.jd=0}function Je(m,w){return((4278124286&(m^w))>>>1)+(m&w)>>>0}function ft(m){return 0<=m&&256>m?m:0>m?0:255<m?255:void 0}function pt(m,w){return ft(m+(m-w+.5>>1))}function bt(m,w,C){return Math.abs(w-C)-Math.abs(m-C)}function Ot(m,w,C,F,H,K,J){for(F=K[J-1],C=0;C<H;++C)K[J+C]=F=Ue(m[w+C],F)}function Ft(m,w,C,F,H){var K;for(K=0;K<C;++K){var J=m[w+K],te=J>>8&255,re=16711935&(re=(re=16711935&J)+((te<<16)+te));F[H+K]=(4278255360&J)+re>>>0}}function zt(m,w){w.jd=m>>0&255,w.hd=m>>8&255,w.ud=m>>16&255}function wt(m,w,C,F,H,K){var J;for(J=0;J<F;++J){var te=w[C+J],re=te>>>8,ue=te,xe=255&(xe=(xe=te>>>16)+((m.jd<<24>>24)*(re<<24>>24)>>>5));ue=255&(ue=(ue=ue+((m.hd<<24>>24)*(re<<24>>24)>>>5))+((m.ud<<24>>24)*(xe<<24>>24)>>>5)),H[K+J]=(4278255360&te)+(xe<<16)+ue}}function Mt(m,w,C,F,H){k[w]=function(K,J,te,re,ue,xe,Oe,je,Se){for(re=Oe;re<je;++re)for(Oe=0;Oe<Se;++Oe)ue[xe++]=H(te[F(K[J++])])},k[m]=function(K,J,te,re,ue,xe,Oe){var je=8>>K.b,Se=K.Ea,ze=K.K[0],Ie=K.w;if(8>je)for(K=(1<<K.b)-1,Ie=(1<<je)-1;J<te;++J){var ye,be=0;for(ye=0;ye<Se;++ye)ye&K||(be=F(re[ue++])),xe[Oe++]=H(ze[be&Ie]),be>>=je}else k["VP8LMapColor"+C](re,ue,ze,Ie,xe,Oe,J,te,Se)}}function at(m,w,C,F,H){for(C=w+C;w<C;){var K=m[w++];F[H++]=K>>16&255,F[H++]=K>>8&255,F[H++]=K>>0&255}}function Dr(m,w,C,F,H){for(C=w+C;w<C;){var K=m[w++];F[H++]=K>>16&255,F[H++]=K>>8&255,F[H++]=K>>0&255,F[H++]=K>>24&255}}function Wt(m,w,C,F,H){for(C=w+C;w<C;){var K=(J=m[w++])>>16&240|J>>12&15,J=J>>0&240|J>>28&15;F[H++]=K,F[H++]=J}}function An(m,w,C,F,H){for(C=w+C;w<C;){var K=(J=m[w++])>>16&248|J>>13&7,J=J>>5&224|J>>3&31;F[H++]=K,F[H++]=J}}function Vt(m,w,C,F,H){for(C=w+C;w<C;){var K=m[w++];F[H++]=K>>0&255,F[H++]=K>>8&255,F[H++]=K>>16&255}}function fr(m,w,C,F,H,K){if(K==0)for(C=w+C;w<C;)ve(F,((K=m[w++])[0]>>24|K[1]>>8&65280|K[2]<<8&16711680|K[3]<<24)>>>0),H+=32;else n(F,H,m,w,C)}function Vn(m,w){k[w][0]=k[m+"0"],k[w][1]=k[m+"1"],k[w][2]=k[m+"2"],k[w][3]=k[m+"3"],k[w][4]=k[m+"4"],k[w][5]=k[m+"5"],k[w][6]=k[m+"6"],k[w][7]=k[m+"7"],k[w][8]=k[m+"8"],k[w][9]=k[m+"9"],k[w][10]=k[m+"10"],k[w][11]=k[m+"11"],k[w][12]=k[m+"12"],k[w][13]=k[m+"13"],k[w][14]=k[m+"0"],k[w][15]=k[m+"0"]}function _e(m){return m==g1||m==x1||m==Xh||m==y1}function mt(){this.eb=[],this.size=this.A=this.fb=0}function Et(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Sr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new mt,this.f.kb=new Et,this.sd=null}function Yt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Nt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function At(m){return alert("todo:WebPSamplerProcessPlane"),m.T}function Xt(m,w){var C=m.T,F=w.ba.f.RGBA,H=F.eb,K=F.fb+m.ka*F.A,J=qi[w.ba.S],te=m.y,re=m.O,ue=m.f,xe=m.N,Oe=m.ea,je=m.W,Se=w.cc,ze=w.dc,Ie=w.Mc,ye=w.Nc,be=m.ka,$e=m.ka+m.T,He=m.U,qe=He+1>>1;for(be==0?J(te,re,null,null,ue,xe,Oe,je,ue,xe,Oe,je,H,K,null,null,He):(J(w.ec,w.fc,te,re,Se,ze,Ie,ye,ue,xe,Oe,je,H,K-F.A,H,K,He),++C);be+2<$e;be+=2)Se=ue,ze=xe,Ie=Oe,ye=je,xe+=m.Rc,je+=m.Rc,K+=2*F.A,J(te,(re+=2*m.fa)-m.fa,te,re,Se,ze,Ie,ye,ue,xe,Oe,je,H,K-F.A,H,K,He);return re+=m.fa,m.j+$e<m.o?(n(w.ec,w.fc,te,re,He),n(w.cc,w.dc,ue,xe,qe),n(w.Mc,w.Nc,Oe,je,qe),C--):1&$e||J(te,re,null,null,ue,xe,Oe,je,ue,xe,Oe,je,H,K+F.A,null,null,He),C}function Ha(m,w,C){var F=m.F,H=[m.J];if(F!=null){var K=m.U,J=w.ba.S,te=J==Kh||J==Xh;w=w.ba.f.RGBA;var re=[0],ue=m.ka;re[0]=m.T,m.Kb&&(ue==0?--re[0]:(--ue,H[0]-=m.width),m.j+m.ka+m.T==m.o&&(re[0]=m.o-m.j-ue));var xe=w.eb;ue=w.fb+ue*w.A,m=Pr(F,H[0],m.width,K,re,xe,ue+(te?0:3),w.A),t(C==re),m&&_e(J)&&Bi(xe,ue,te,K,re,w.A)}return 0}function ln(m){var w=m.ma,C=w.ba.S,F=11>C,H=C==Vh||C==Yh||C==Kh||C==v1||C==12||_e(C);if(w.memory=null,w.Ib=null,w.Jb=null,w.Nd=null,!du(w.Oa,m,H?11:12))return 0;if(H&&_e(C)&&Ve(),m.da)alert("todo:use_scaling");else{if(F){if(w.Ib=At,m.Kb){if(C=m.U+1>>1,w.memory=a(m.U+2*C),w.memory==null)return 0;w.ec=w.memory,w.fc=0,w.cc=w.ec,w.dc=w.fc+m.U,w.Mc=w.cc,w.Nc=w.dc+C,w.Ib=Xt,Ve()}}else alert("todo:EmitYUV");H&&(w.Jb=Ha,F&&Te())}if(F&&!k5){for(m=0;256>m;++m)bC[m]=89858*(m-128)+Zh>>Jh,SC[m]=-22014*(m-128)+Zh,_C[m]=-45773*(m-128),wC[m]=113618*(m-128)+Zh>>Jh;for(m=_u;m<_1;++m)w=76283*(m-16)+Zh>>Jh,AC[m-_u]=bi(w,255),TC[m-_u]=bi(w+8>>4,15);k5=1}return 1}function Ii(m){var w=m.ma,C=m.U,F=m.T;return t(!(1&m.ka)),0>=C||0>=F?0:(C=w.Ib(m,w),w.Jb!=null&&w.Jb(m,w,C),w.Dc+=C,1)}function Fi(m){m.ma.memory=null}function _t(m,w,C,F){return ee(m,8)!=47?0:(w[0]=ee(m,14)+1,C[0]=ee(m,14)+1,F[0]=ee(m,1),ee(m,3)!=0?0:!m.h)}function xi(m,w){if(4>m)return m+1;var C=m-2>>1;return(2+(1&m)<<C)+ee(w,C)+1}function ai(m,w){return 120<w?w-120:1<=(C=((C=oC[w-1])>>4)*m+(8-(15&C)))?C:1;var C}function Fn(m,w,C){var F=I(C),H=m[w+=255&F].g-8;return 0<H&&(q(C,C.u+8),F=I(C),w+=m[w].value,w+=F&(1<<H)-1),q(C,C.u+m[w].g),m[w].value}function Hr(m,w,C){return C.g+=m.g,C.value+=m.value<<w>>>0,t(8>=C.g),m.g}function Rr(m,w,C){var F=m.xc;return t((w=F==0?0:m.vc[m.md*(C>>F)+(w>>F)])<m.Wb),m.Ya[w]}function X(m,w,C,F){var H=m.ab,K=m.c*w,J=m.C;w=J+w;var te=C,re=F;for(F=m.Ta,C=m.Ua;0<H--;){var ue=m.gc[H],xe=J,Oe=w,je=te,Se=re,ze=(re=F,te=C,ue.Ea);switch(t(xe<Oe),t(Oe<=ue.nc),ue.hc){case 2:$h(je,Se,(Oe-xe)*ze,re,te);break;case 0:var Ie=xe,ye=Oe,be=re,$e=te,He=(ot=ue).Ea;Ie==0&&(p1(je,Se,null,null,1,be,$e),Ot(je,Se+1,0,0,He-1,be,$e+1),Se+=He,$e+=He,++Ie);for(var qe=1<<ot.b,ut=qe-1,it=tt(He,ot.b),St=ot.K,ot=ot.w+(Ie>>ot.b)*it;Ie<ye;){var Qt=St,hr=ot,Kt=1;for(vu(je,Se,be,$e-He,1,be,$e);Kt<He;){var Ht=(Kt&~ut)+qe;Ht>He&&(Ht=He),(0,ko[Qt[hr++]>>8&15])(je,Se+ +Kt,be,$e+Kt-He,Ht-Kt,be,$e+Kt),Kt=Ht}Se+=He,$e+=He,++Ie&ut||(ot+=it)}Oe!=ue.nc&&n(re,te-ze,re,te+(Oe-xe-1)*ze,ze);break;case 1:for(ze=je,ye=Se,He=(je=ue.Ea)-($e=je&~(be=(Se=1<<ue.b)-1)),Ie=tt(je,ue.b),qe=ue.K,ue=ue.w+(xe>>ue.b)*Ie;xe<Oe;){for(ut=qe,it=ue,St=new Ze,ot=ye+$e,Qt=ye+je;ye<ot;)zt(ut[it++],St),ys(St,ze,ye,Se,re,te),ye+=Se,te+=Se;ye<Qt&&(zt(ut[it++],St),ys(St,ze,ye,He,re,te),ye+=He,te+=He),++xe&be||(ue+=Ie)}break;case 3:if(je==re&&Se==te&&0<ue.b){for(ye=re,je=ze=te+(Oe-xe)*ze-($e=(Oe-xe)*tt(ue.Ea,ue.b)),Se=re,be=te,Ie=[],$e=(He=$e)-1;0<=$e;--$e)Ie[$e]=Se[be+$e];for($e=He-1;0<=$e;--$e)ye[je+$e]=Ie[$e];Mi(ue,xe,Oe,re,ze,re,te)}else Mi(ue,xe,Oe,je,Se,re,te)}te=F,re=C}re!=C&&n(F,C,te,re,K)}function de(m,w){var C=m.V,F=m.Ba+m.c*m.C,H=w-m.C;if(t(w<=m.l.o),t(16>=H),0<H){var K=m.l,J=m.Ta,te=m.Ua,re=K.width;if(X(m,H,C,F),H=te=[te],t((C=m.C)<(F=w)),t(K.v<K.va),F>K.o&&(F=K.o),C<K.j){var ue=K.j-C;C=K.j,H[0]+=ue*re}if(C>=F?C=0:(H[0]+=4*K.v,K.ka=C-K.j,K.U=K.va-K.v,K.T=F-C,C=1),C){if(te=te[0],11>(C=m.ca).S){var xe=C.f.RGBA,Oe=(F=C.S,H=K.U,K=K.T,ue=xe.eb,xe.A),je=K;for(xe=xe.fb+m.Ma*xe.A;0<je--;){var Se=J,ze=te,Ie=H,ye=ue,be=xe;switch(F){case Gh:li(Se,ze,Ie,ye,be);break;case Vh:Yn(Se,ze,Ie,ye,be);break;case g1:Yn(Se,ze,Ie,ye,be),Bi(ye,be,0,Ie,1,0);break;case S5:Xa(Se,ze,Ie,ye,be);break;case Yh:fr(Se,ze,Ie,ye,be,1);break;case x1:fr(Se,ze,Ie,ye,be,1),Bi(ye,be,0,Ie,1,0);break;case Kh:fr(Se,ze,Ie,ye,be,0);break;case Xh:fr(Se,ze,Ie,ye,be,0),Bi(ye,be,1,Ie,1,0);break;case v1:Lo(Se,ze,Ie,ye,be);break;case y1:Lo(Se,ze,Ie,ye,be),Nr(ye,be,Ie,1,0);break;case A5:Ka(Se,ze,Ie,ye,be);break;default:t(0)}te+=re,xe+=Oe}m.Ma+=K}else alert("todo:EmitRescaledRowsYUVA");t(m.Ma<=C.height)}}m.C=w,t(m.C<=m.i)}function ie(m){var w;if(0<m.ua)return 0;for(w=0;w<m.Wb;++w){var C=m.Ya[w].G,F=m.Ya[w].H;if(0<C[1][F[1]+0].g||0<C[2][F[2]+0].g||0<C[3][F[3]+0].g)return 0}return 1}function oe(m,w,C,F,H,K){if(m.Z!=0){var J=m.qd,te=m.rd;for(t(Do[m.Z]!=null);w<C;++w)Do[m.Z](J,te,F,H,F,H,K),J=F,te=H,H+=K;m.qd=J,m.rd=te}}function he(m,w){var C=m.l.ma,F=C.Z==0||C.Z==1?m.l.j:m.C;if(F=m.C<F?F:m.C,t(w<=m.l.o),w>F){var H=m.l.width,K=C.ca,J=C.tb+H*F,te=m.V,re=m.Ba+m.c*F,ue=m.gc;t(m.ab==1),t(ue[0].hc==3),qh(ue[0],F,w,te,re,K,J),oe(C,F,w,K,J,H)}m.C=m.Ma=w}function pe(m,w,C,F,H,K,J){var te=m.$/F,re=m.$%F,ue=m.m,xe=m.s,Oe=C+m.$,je=Oe;H=C+F*H;var Se=C+F*K,ze=280+xe.ua,Ie=m.Pb?te:16777216,ye=0<xe.ua?xe.Wa:null,be=xe.wc,$e=Oe<Se?Rr(xe,re,te):null;t(m.C<K),t(Se<=H);var He=!1;e:for(;;){for(;He||Oe<Se;){var qe=0;if(te>=Ie){var ut=Oe-C;t((Ie=m).Pb),Ie.wd=Ie.m,Ie.xd=ut,0<Ie.s.ua&&Ee(Ie.s.Wa,Ie.s.vb),Ie=te+lC}if(re&be||($e=Rr(xe,re,te)),t($e!=null),$e.Qb&&(w[Oe]=$e.qb,He=!0),!He)if(Y(ue),$e.jc){qe=ue,ut=w;var it=Oe,St=$e.pd[I(qe)&Tn-1];t($e.jc),256>St.g?(q(qe,qe.u+St.g),ut[it]=St.value,qe=0):(q(qe,qe.u+St.g-256),t(256<=St.value),qe=St.value),qe==0&&(He=!0)}else qe=Fn($e.G[0],$e.H[0],ue);if(ue.h)break;if(He||256>qe){if(!He)if($e.nd)w[Oe]=($e.qb|qe<<8)>>>0;else{if(Y(ue),He=Fn($e.G[1],$e.H[1],ue),Y(ue),ut=Fn($e.G[2],$e.H[2],ue),it=Fn($e.G[3],$e.H[3],ue),ue.h)break;w[Oe]=(it<<24|He<<16|qe<<8|ut)>>>0}if(He=!1,++Oe,++re>=F&&(re=0,++te,J!=null&&te<=K&&!(te%16)&&J(m,te),ye!=null))for(;je<Oe;)qe=w[je++],ye.X[(506832829*qe&4294967295)>>>ye.Mb]=qe}else if(280>qe){if(qe=xi(qe-256,ue),ut=Fn($e.G[4],$e.H[4],ue),Y(ue),ut=ai(F,ut=xi(ut,ue)),ue.h)break;if(Oe-C<ut||H-Oe<qe)break e;for(it=0;it<qe;++it)w[Oe+it]=w[Oe+it-ut];for(Oe+=qe,re+=qe;re>=F;)re-=F,++te,J!=null&&te<=K&&!(te%16)&&J(m,te);if(t(Oe<=H),re&be&&($e=Rr(xe,re,te)),ye!=null)for(;je<Oe;)qe=w[je++],ye.X[(506832829*qe&4294967295)>>>ye.Mb]=qe}else{if(!(qe<ze))break e;for(He=qe-280,t(ye!=null);je<Oe;)qe=w[je++],ye.X[(506832829*qe&4294967295)>>>ye.Mb]=qe;qe=Oe,t(!(He>>>(ut=ye).Xa)),w[qe]=ut.X[He],He=!0}He||t(ue.h==M(ue))}if(m.Pb&&ue.h&&Oe<H)t(m.m.h),m.a=5,m.m=m.wd,m.$=m.xd,0<m.s.ua&&Ee(m.s.vb,m.s.Wa);else{if(ue.h)break e;J!=null&&J(m,te>K?K:te),m.a=0,m.$=Oe-C}return 1}return m.a=3,0}function Pe(m){t(m!=null),m.vc=null,m.yc=null,m.Ya=null;var w=m.Wa;w!=null&&(w.X=null),m.vb=null,t(m!=null)}function Le(){var m=new d1;return m==null?null:(m.a=0,m.xb=N5,Vn("Predictor","VP8LPredictors"),Vn("Predictor","VP8LPredictors_C"),Vn("PredictorAdd","VP8LPredictorsAdd"),Vn("PredictorAdd","VP8LPredictorsAdd_C"),$h=Ft,ys=wt,li=at,Yn=Dr,Lo=Wt,Ka=An,Xa=Vt,k.VP8LMapColor32b=Al,k.VP8LMapColor8b=Uh,m)}function Ne(m,w,C,F,H){var K=1,J=[m],te=[w],re=F.m,ue=F.s,xe=null,Oe=0;e:for(;;){if(C)for(;K&&ee(re,1);){var je=J,Se=te,ze=F,Ie=1,ye=ze.m,be=ze.gc[ze.ab],$e=ee(ye,2);if(ze.Oc&1<<$e)K=0;else{switch(ze.Oc|=1<<$e,be.hc=$e,be.Ea=je[0],be.nc=Se[0],be.K=[null],++ze.ab,t(4>=ze.ab),$e){case 0:case 1:be.b=ee(ye,3)+2,Ie=Ne(tt(be.Ea,be.b),tt(be.nc,be.b),0,ze,be.K),be.K=be.K[0];break;case 3:var He,qe=ee(ye,8)+1,ut=16<qe?0:4<qe?1:2<qe?2:3;if(je[0]=tt(be.Ea,ut),be.b=ut,He=Ie=Ne(qe,1,0,ze,be.K)){var it,St=qe,ot=be,Qt=1<<(8>>ot.b),hr=a(Qt);if(hr==null)He=0;else{var Kt=ot.K[0],Ht=ot.w;for(hr[0]=ot.K[0][0],it=1;it<1*St;++it)hr[it]=Ue(Kt[Ht+it],hr[it-1]);for(;it<4*Qt;++it)hr[it]=0;ot.K[0]=null,ot.K[0]=hr,He=1}}Ie=He;break;case 2:break;default:t(0)}K=Ie}}if(J=J[0],te=te[0],K&&ee(re,1)&&!(K=1<=(Oe=ee(re,4))&&11>=Oe)){F.a=3;break e}var Ar;if(Ar=K)t:{var yr,Bt,en,ci=F,tn=J,ui=te,dr=Oe,_i=C,Si=ci.m,gn=ci.s,En=[null],Xn=1,Ui=0,ja=sC[dr];r:for(;;){if(_i&&ee(Si,1)){var xn=ee(Si,3)+2,eo=tt(tn,xn),As=tt(ui,xn),Ol=eo*As;if(!Ne(eo,As,0,ci,En))break r;for(En=En[0],gn.xc=xn,yr=0;yr<Ol;++yr){var Ro=En[yr]>>8&65535;En[yr]=Ro,Ro>=Xn&&(Xn=Ro+1)}}if(Si.h)break r;for(Bt=0;5>Bt;++Bt){var $r=T5[Bt];!Bt&&0<dr&&($r+=1<<dr),Ui<$r&&(Ui=$r)}var S1=o(Xn*ja,N),F5=Xn,M5=o(F5,U);if(M5==null)var e0=null;else t(65536>=F5),e0=M5;var Su=a(Ui);if(e0==null||Su==null||S1==null){ci.a=1;break r}var t0=S1;for(yr=en=0;yr<Xn;++yr){var oa=e0[yr],jl=oa.G,Cl=oa.H,D5=0,r0=1,R5=0;for(Bt=0;5>Bt;++Bt){$r=T5[Bt],jl[Bt]=t0,Cl[Bt]=en,!Bt&&0<dr&&($r+=1<<dr);i:{var n0,A1=$r,i0=ci,Au=Su,PC=t0,OC=en,T1=0,Bo=i0.m,jC=ee(Bo,1);if(i(Au,0,0,A1),jC){var CC=ee(Bo,1)+1,kC=ee(Bo,1),B5=ee(Bo,kC==0?1:8);Au[B5]=1,CC==2&&(Au[B5=ee(Bo,8)]=1);var a0=1}else{var $5=a(19),q5=ee(Bo,4)+4;if(19<q5){i0.a=3;var o0=0;break i}for(n0=0;n0<q5;++n0)$5[aC[n0]]=ee(Bo,3);var E1=void 0,Tu=void 0,U5=i0,LC=$5,s0=A1,z5=Au,N1=0,$o=U5.m,W5=8,H5=o(128,N);n:for(;j(H5,0,7,LC,19);){if(ee($o,1)){var IC=2+2*ee($o,3);if((E1=2+ee($o,IC))>s0)break n}else E1=s0;for(Tu=0;Tu<s0&&E1--;){Y($o);var G5=H5[0+(127&I($o))];q($o,$o.u+G5.g);var kl=G5.value;if(16>kl)z5[Tu++]=kl,kl!=0&&(W5=kl);else{var FC=kl==16,V5=kl-16,MC=nC[V5],Y5=ee($o,rC[V5])+MC;if(Tu+Y5>s0)break n;for(var DC=FC?W5:0;0<Y5--;)z5[Tu++]=DC}}N1=1;break n}N1||(U5.a=3),a0=N1}(a0=a0&&!Bo.h)&&(T1=j(PC,OC,8,Au,A1)),a0&&T1!=0?o0=T1:(i0.a=3,o0=0)}if(o0==0)break r;if(r0&&iC[Bt]==1&&(r0=t0[en].g==0),D5+=t0[en].g,en+=o0,3>=Bt){var Eu,P1=Su[0];for(Eu=1;Eu<$r;++Eu)Su[Eu]>P1&&(P1=Su[Eu]);R5+=P1}}if(oa.nd=r0,oa.Qb=0,r0&&(oa.qb=(jl[3][Cl[3]+0].value<<24|jl[1][Cl[1]+0].value<<16|jl[2][Cl[2]+0].value)>>>0,D5==0&&256>jl[0][Cl[0]+0].value&&(oa.Qb=1,oa.qb+=jl[0][Cl[0]+0].value<<8)),oa.jc=!oa.Qb&&6>R5,oa.jc){var l0,to=oa;for(l0=0;l0<Tn;++l0){var qo=l0,Uo=to.pd[qo],c0=to.G[0][to.H[0]+qo];256<=c0.value?(Uo.g=c0.g+256,Uo.value=c0.value):(Uo.g=0,Uo.value=0,qo>>=Hr(c0,8,Uo),qo>>=Hr(to.G[1][to.H[1]+qo],16,Uo),qo>>=Hr(to.G[2][to.H[2]+qo],0,Uo),Hr(to.G[3][to.H[3]+qo],24,Uo))}}}gn.vc=En,gn.Wb=Xn,gn.Ya=e0,gn.yc=S1,Ar=1;break t}Ar=0}if(!(K=Ar)){F.a=3;break e}if(0<Oe){if(ue.ua=1<<Oe,!Ae(ue.Wa,Oe)){F.a=1,K=0;break e}}else ue.ua=0;var O1=F,K5=J,RC=te,j1=O1.s,C1=j1.xc;if(O1.c=K5,O1.i=RC,j1.md=tt(K5,C1),j1.wc=C1==0?-1:(1<<C1)-1,C){F.xb=mC;break e}if((xe=a(J*te))==null){F.a=1,K=0;break e}K=(K=pe(F,xe,0,J,te,te,null))&&!re.h;break e}return K?(H!=null?H[0]=xe:(t(xe==null),t(C)),F.$=0,C||Pe(ue)):Pe(ue),K}function Ce(m,w){var C=m.c*m.i,F=C+w+16*w;return t(m.c<=w),m.V=a(F),m.V==null?(m.Ta=null,m.Ua=0,m.a=1,0):(m.Ta=m.V,m.Ua=m.Ba+C+w,1)}function ke(m,w){var C=m.C,F=w-C,H=m.V,K=m.Ba+m.c*C;for(t(w<=m.l.o);0<F;){var J=16<F?16:F,te=m.l.ma,re=m.l.width,ue=re*J,xe=te.ca,Oe=te.tb+re*C,je=m.Ta,Se=m.Ua;X(m,J,H,K),Yr(je,Se,xe,Oe,ue),oe(te,C,C+J,xe,Oe,re),F-=J,H+=J*m.c,C+=J}t(C==w),m.C=m.Ma=w}function Ye(){this.ub=this.yd=this.td=this.Rb=0}function Qe(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function lt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Xe(){this.Yb=(function(){var m=[];return(function w(C,F,H){for(var K=H[F],J=0;J<K&&(C.push(H.length>F+1?[]:0),!(H.length<F+1));J++)w(C[J],F+1,H)})(m,0,[3,11]),m})()}function st(){this.jb=a(3),this.Wc=s([4,8],Xe),this.Xc=s([4,17],Xe)}function jt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function tr(){this.ld=this.La=this.dd=this.tc=0}function xr(){this.Na=this.la=0}function Zr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ea(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ga(){this.uc=this.M=this.Nb=0,this.wa=Array(new tr),this.Y=0,this.ya=Array(new ea),this.aa=0,this.l=new Ea}function Ta(){this.y=a(16),this.f=a(8),this.ea=a(8)}function ta(){this.cb=this.a=0,this.sc="",this.m=new ce,this.Od=new Ye,this.Kc=new Qe,this.ed=new jt,this.Qa=new lt,this.Ic=this.$c=this.Aa=0,this.D=new Ga,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,ce),this.ia=0,this.pb=o(4,Zr),this.Pa=new st,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ta),this.Hd=0,this.rb=Array(new xr),this.sb=0,this.wa=Array(new tr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ea),this.L=this.aa=0,this.gd=s([4,2],tr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ea(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function yi(){var m=new ta;return m!=null&&(m.a=0,m.sc="OK",m.cb=0,m.Xb=0,wu||(wu=Th)),m}function Gr(m,w,C){return m.a==0&&(m.a=w,m.sc=C,m.cb=0),0}function Sh(m,w,C){return 3<=C&&m[w+0]==157&&m[w+1]==1&&m[w+2]==42}function Ah(m,w){if(m==null)return 0;if(m.a=0,m.sc="OK",w==null)return Gr(m,2,"null VP8Io passed to VP8GetHeaders()");var C=w.data,F=w.w,H=w.ha;if(4>H)return Gr(m,7,"Truncated header.");var K=C[F+0]|C[F+1]<<8|C[F+2]<<16,J=m.Od;if(J.Rb=!(1&K),J.td=K>>1&7,J.yd=K>>4&1,J.ub=K>>5,3<J.td)return Gr(m,3,"Incorrect keyframe parameters.");if(!J.yd)return Gr(m,4,"Frame not displayable.");F+=3,H-=3;var te=m.Kc;if(J.Rb){if(7>H)return Gr(m,7,"cannot parse picture header");if(!Sh(C,F,H))return Gr(m,3,"Bad code word");te.c=16383&(C[F+4]<<8|C[F+3]),te.Td=C[F+4]>>6,te.i=16383&(C[F+6]<<8|C[F+5]),te.Ud=C[F+6]>>6,F+=7,H-=7,m.za=te.c+15>>4,m.Ub=te.i+15>>4,w.width=te.c,w.height=te.i,w.Da=0,w.j=0,w.v=0,w.va=w.width,w.o=w.height,w.da=0,w.ib=w.width,w.hb=w.height,w.U=w.width,w.T=w.height,i((K=m.Pa).jb,0,255,K.jb.length),t((K=m.Qa)!=null),K.Cb=0,K.Bb=0,K.Fb=1,i(K.Zb,0,0,K.Zb.length),i(K.Lb,0,0,K.Lb)}if(J.ub>H)return Gr(m,7,"bad partition length");W(K=m.m,C,F,J.ub),F+=J.ub,H-=J.ub,J.Rb&&(te.Ld=ae(K),te.Kd=ae(K)),te=m.Qa;var re,ue=m.Pa;if(t(K!=null),t(te!=null),te.Cb=ae(K),te.Cb){if(te.Bb=ae(K),ae(K)){for(te.Fb=ae(K),re=0;4>re;++re)te.Zb[re]=ae(K)?z(K,7):0;for(re=0;4>re;++re)te.Lb[re]=ae(K)?z(K,6):0}if(te.Bb)for(re=0;3>re;++re)ue.jb[re]=ae(K)?R(K,8):255}else te.Bb=0;if(K.Ka)return Gr(m,3,"cannot parse segment header");if((te=m.ed).zd=ae(K),te.Tb=R(K,6),te.wb=R(K,3),te.Pc=ae(K),te.Pc&&ae(K)){for(ue=0;4>ue;++ue)ae(K)&&(te.vd[ue]=z(K,6));for(ue=0;4>ue;++ue)ae(K)&&(te.od[ue]=z(K,6))}if(m.L=te.Tb==0?0:te.zd?1:2,K.Ka)return Gr(m,3,"cannot parse filter header");var xe=H;if(H=re=F,F=re+xe,te=xe,m.Xb=(1<<R(m.m,2))-1,xe<3*(ue=m.Xb))C=7;else{for(re+=3*ue,te-=3*ue,xe=0;xe<ue;++xe){var Oe=C[H+0]|C[H+1]<<8|C[H+2]<<16;Oe>te&&(Oe=te),W(m.Jc[+xe],C,re,Oe),re+=Oe,te-=Oe,H+=3}W(m.Jc[+ue],C,re,te),C=re<F?0:5}if(C!=0)return Gr(m,C,"cannot parse partitions");for(C=R(re=m.m,7),H=ae(re)?z(re,4):0,F=ae(re)?z(re,4):0,te=ae(re)?z(re,4):0,ue=ae(re)?z(re,4):0,re=ae(re)?z(re,4):0,xe=m.Qa,Oe=0;4>Oe;++Oe){if(xe.Cb){var je=xe.Zb[Oe];xe.Fb||(je+=C)}else{if(0<Oe){m.pb[Oe]=m.pb[0];continue}je=C}var Se=m.pb[Oe];Se.Sc[0]=b1[bi(je+H,127)],Se.Sc[1]=w1[bi(je+0,127)],Se.Eb[0]=2*b1[bi(je+F,127)],Se.Eb[1]=101581*w1[bi(je+te,127)]>>16,8>Se.Eb[1]&&(Se.Eb[1]=8),Se.Qc[0]=b1[bi(je+ue,117)],Se.Qc[1]=w1[bi(je+re,127)],Se.lc=je+re}if(!J.Rb)return Gr(m,4,"Not a key frame.");for(ae(K),J=m.Pa,C=0;4>C;++C){for(H=0;8>H;++H)for(F=0;3>F;++F)for(te=0;11>te;++te)ue=ne(K,dC[C][H][F][te])?R(K,8):fC[C][H][F][te],J.Wc[C][H].Yb[F][te]=ue;for(H=0;17>H;++H)J.Xc[C][H]=J.Wc[C][pC[H]]}return m.kc=ae(K),m.kc&&(m.Bd=R(K,8)),m.cb=1}function Th(m,w,C,F,H,K,J){var te=w[H].Yb[C];for(C=0;16>H;++H){if(!ne(m,te[C+0]))return H;for(;!ne(m,te[C+1]);)if(te=w[++H].Yb[0],C=0,H==16)return 16;var re=w[H+1].Yb;if(ne(m,te[C+2])){var ue=m,xe=0;if(ne(ue,(je=te)[(Oe=C)+3]))if(ne(ue,je[Oe+6])){for(te=0,Oe=2*(xe=ne(ue,je[Oe+8]))+(je=ne(ue,je[Oe+9+xe])),xe=0,je=cC[Oe];je[te];++te)xe+=xe+ne(ue,je[te]);xe+=3+(8<<Oe)}else ne(ue,je[Oe+7])?(xe=7+2*ne(ue,165),xe+=ne(ue,145)):xe=5+ne(ue,159);else xe=ne(ue,je[Oe+4])?3+ne(ue,je[Oe+5]):2;te=re[2]}else xe=1,te=re[1];re=J+uC[H],0>(ue=m).b&&fe(ue);var Oe,je=ue.b,Se=(Oe=ue.Ca>>1)-(ue.I>>je)>>31;--ue.b,ue.Ca+=Se,ue.Ca|=1,ue.I-=(Oe+1&Se)<<je,K[re]=((xe^Se)-Se)*F[(0<H)+0]}return 16}function Zc(m){var w=m.rb[m.sb-1];w.la=0,w.Na=0,i(m.zc,0,0,m.zc.length),m.ja=0}function Xp(m,w){if(m==null)return 0;if(w==null)return Gr(m,2,"NULL VP8Io parameter in VP8Decode().");if(!m.cb&&!Ah(m,w))return 0;if(t(m.cb),w.ac==null||w.ac(w)){w.ob&&(m.L=0);var C=Qh[m.L];if(m.L==2?(m.yb=0,m.zb=0):(m.yb=w.v-C>>4,m.zb=w.j-C>>4,0>m.yb&&(m.yb=0),0>m.zb&&(m.zb=0)),m.Va=w.o+15+C>>4,m.Hb=w.va+15+C>>4,m.Hb>m.za&&(m.Hb=m.za),m.Va>m.Ub&&(m.Va=m.Ub),0<m.L){var F=m.ed;for(C=0;4>C;++C){var H;if(m.Qa.Cb){var K=m.Qa.Lb[C];m.Qa.Fb||(K+=F.Tb)}else K=F.Tb;for(H=0;1>=H;++H){var J=m.gd[C][H],te=K;if(F.Pc&&(te+=F.vd[0],H&&(te+=F.od[0])),0<(te=0>te?0:63<te?63:te)){var re=te;0<F.wb&&(re=4<F.wb?re>>2:re>>1)>9-F.wb&&(re=9-F.wb),1>re&&(re=1),J.dd=re,J.tc=2*te+re,J.ld=40<=te?2:15<=te?1:0}else J.tc=0;J.La=H}}}C=0}else Gr(m,6,"Frame setup failed"),C=m.a;if(C=C==0){if(C){m.$c=0,0<m.Aa||(m.Ic=NC);e:{C=m.Ic,F=4*(re=m.za);var ue=32*re,xe=re+1,Oe=0<m.L?re*(0<m.Aa?2:1):0,je=(m.Aa==2?2:1)*re;if((J=F+832+(H=3*(16*C+Qh[m.L])/2*ue)+(K=m.Fa!=null&&0<m.Fa.length?m.Kc.c*m.Kc.i:0))!=J)C=0;else{if(J>m.Vb){if(m.Vb=0,m.Ec=a(J),m.Fc=0,m.Ec==null){C=Gr(m,1,"no memory during frame initialization.");break e}m.Vb=J}J=m.Ec,te=m.Fc,m.Ac=J,m.Bc=te,te+=F,m.Gd=o(ue,Ta),m.Hd=0,m.rb=o(xe+1,xr),m.sb=1,m.wa=Oe?o(Oe,tr):null,m.Y=0,m.D.Nb=0,m.D.wa=m.wa,m.D.Y=m.Y,0<m.Aa&&(m.D.Y+=re),t(!0),m.oc=J,m.pc=te,te+=832,m.ya=o(je,ea),m.aa=0,m.D.ya=m.ya,m.D.aa=m.aa,m.Aa==2&&(m.D.aa+=re),m.R=16*re,m.B=8*re,re=(ue=Qh[m.L])*m.R,ue=ue/2*m.B,m.sa=J,m.ta=te+re,m.qa=m.sa,m.ra=m.ta+16*C*m.R+ue,m.Ha=m.qa,m.Ia=m.ra+8*C*m.B+ue,m.$c=0,te+=H,m.mb=K?J:null,m.nb=K?te:null,t(te+K<=m.Fc+m.Vb),Zc(m),i(m.Ac,m.Bc,0,F),C=1}}if(C){if(w.ka=0,w.y=m.sa,w.O=m.ta,w.f=m.qa,w.N=m.ra,w.ea=m.Ha,w.Vd=m.Ia,w.fa=m.R,w.Rc=m.B,w.F=null,w.J=0,!Wh){for(C=-255;255>=C;++C)cn[255+C]=0>C?-C:C;for(C=-1020;1020>=C;++C)Za[1020+C]=-128>C?-128:127<C?127:C;for(C=-112;112>=C;++C)bu[112+C]=-16>C?-16:15<C?15:C;for(C=-255;510>=C;++C)Pl[255+C]=0>C?0:255<C?255:C;Wh=1}Tl=Qp,Ja=Jp,gu=Nh,Kn=Zp,Di=Ph,Vr=Eh,El=iu,zh=gs,xu=h1,bs=au,ws=f1,Io=vl,_s=ou,Nl=Dh,Ss=Mh,Fo=Pa,yu=Ya,Ri=u1,aa[0]=Na,aa[1]=e1,aa[2]=i1,aa[3]=a1,aa[4]=Ch,aa[5]=pl,aa[6]=kh,aa[7]=tu,aa[8]=s1,aa[9]=o1,Mo[0]=Oh,Mo[1]=r1,Mo[2]=Va,Mo[3]=hl,Mo[4]=Mn,Mo[5]=n1,Mo[6]=jh,Qa[0]=Oo,Qa[1]=t1,Qa[2]=l1,Qa[3]=ru,Qa[4]=vs,Qa[5]=c1,Qa[6]=nu,C=1}else C=0}C&&(C=(function(Se,ze){for(Se.M=0;Se.M<Se.Va;++Se.M){var Ie,ye=Se.Jc[Se.M&Se.Xb],be=Se.m,$e=Se;for(Ie=0;Ie<$e.za;++Ie){var He=be,qe=$e,ut=qe.Ac,it=qe.Bc+4*Ie,St=qe.zc,ot=qe.ya[qe.aa+Ie];if(qe.Qa.Bb?ot.$b=ne(He,qe.Pa.jb[0])?2+ne(He,qe.Pa.jb[2]):ne(He,qe.Pa.jb[1]):ot.$b=0,qe.kc&&(ot.Ad=ne(He,qe.Bd)),ot.Za=!ne(He,145)+0,ot.Za){var Qt=ot.Ob,hr=0;for(qe=0;4>qe;++qe){var Kt,Ht=St[0+qe];for(Kt=0;4>Kt;++Kt){Ht=hC[ut[it+Kt]][Ht];for(var Ar=E5[ne(He,Ht[0])];0<Ar;)Ar=E5[2*Ar+ne(He,Ht[Ar])];Ht=-Ar,ut[it+Kt]=Ht}n(Qt,hr,ut,it,4),hr+=4,St[0+qe]=Ht}}else Ht=ne(He,156)?ne(He,128)?1:3:ne(He,163)?2:0,ot.Ob[0]=Ht,i(ut,it,Ht,4),i(St,0,Ht,4);ot.Dd=ne(He,142)?ne(He,114)?ne(He,183)?1:3:2:0}if($e.m.Ka)return Gr(Se,7,"Premature end-of-partition0 encountered.");for(;Se.ja<Se.za;++Se.ja){if($e=ye,He=(be=Se).rb[be.sb-1],ut=be.rb[be.sb+be.ja],Ie=be.ya[be.aa+be.ja],it=be.kc?Ie.Ad:0)He.la=ut.la=0,Ie.Za||(He.Na=ut.Na=0),Ie.Hc=0,Ie.Gc=0,Ie.ia=0;else{var yr,Bt;if(He=ut,ut=$e,it=be.Pa.Xc,St=be.ya[be.aa+be.ja],ot=be.pb[St.$b],qe=St.ad,Qt=0,hr=be.rb[be.sb-1],Ht=Kt=0,i(qe,Qt,0,384),St.Za)var en=0,ci=it[3];else{Ar=a(16);var tn=He.Na+hr.Na;if(tn=wu(ut,it[1],tn,ot.Eb,0,Ar,0),He.Na=hr.Na=(0<tn)+0,1<tn)Tl(Ar,0,qe,Qt);else{var ui=Ar[0]+3>>3;for(Ar=0;256>Ar;Ar+=16)qe[Qt+Ar]=ui}en=1,ci=it[0]}var dr=15&He.la,_i=15&hr.la;for(Ar=0;4>Ar;++Ar){var Si=1&_i;for(ui=Bt=0;4>ui;++ui)dr=dr>>1|(Si=(tn=wu(ut,ci,tn=Si+(1&dr),ot.Sc,en,qe,Qt))>en)<<7,Bt=Bt<<2|(3<tn?3:1<tn?2:qe[Qt+0]!=0),Qt+=16;dr>>=4,_i=_i>>1|Si<<7,Kt=(Kt<<8|Bt)>>>0}for(ci=dr,en=_i>>4,yr=0;4>yr;yr+=2){for(Bt=0,dr=He.la>>4+yr,_i=hr.la>>4+yr,Ar=0;2>Ar;++Ar){for(Si=1&_i,ui=0;2>ui;++ui)tn=Si+(1&dr),dr=dr>>1|(Si=0<(tn=wu(ut,it[2],tn,ot.Qc,0,qe,Qt)))<<3,Bt=Bt<<2|(3<tn?3:1<tn?2:qe[Qt+0]!=0),Qt+=16;dr>>=2,_i=_i>>1|Si<<5}Ht|=Bt<<4*yr,ci|=dr<<4<<yr,en|=(240&_i)<<yr}He.la=ci,hr.la=en,St.Hc=Kt,St.Gc=Ht,St.ia=43690&Ht?0:ot.ia,it=!(Kt|Ht)}if(0<be.L&&(be.wa[be.Y+be.ja]=be.gd[Ie.$b][Ie.Za],be.wa[be.Y+be.ja].La|=!it),$e.Ka)return Gr(Se,7,"Premature end-of-file encountered.")}if(Zc(Se),be=ze,$e=1,Ie=(ye=Se).D,He=0<ye.L&&ye.M>=ye.zb&&ye.M<=ye.Va,ye.Aa==0)e:{if(Ie.M=ye.M,Ie.uc=He,hu(ye,Ie),$e=1,Ie=(Bt=ye.D).Nb,He=(Ht=Qh[ye.L])*ye.R,ut=Ht/2*ye.B,Ar=16*Ie*ye.R,ui=8*Ie*ye.B,it=ye.sa,St=ye.ta-He+Ar,ot=ye.qa,qe=ye.ra-ut+ui,Qt=ye.Ha,hr=ye.Ia-ut+ui,_i=(dr=Bt.M)==0,Kt=dr>=ye.Va-1,ye.Aa==2&&hu(ye,Bt),Bt.uc)for(Si=(tn=ye).D.M,t(tn.D.uc),Bt=tn.yb;Bt<tn.Hb;++Bt){en=Bt,ci=Si;var gn=(En=($r=tn).D).Nb;yr=$r.R;var En=En.wa[En.Y+en],Xn=$r.sa,Ui=$r.ta+16*gn*yr+16*en,ja=En.dd,xn=En.tc;if(xn!=0)if(t(3<=xn),$r.L==1)0<en&&Fo(Xn,Ui,yr,xn+4),En.La&&Ri(Xn,Ui,yr,xn),0<ci&&Ss(Xn,Ui,yr,xn+4),En.La&&yu(Xn,Ui,yr,xn);else{var eo=$r.B,As=$r.qa,Ol=$r.ra+8*gn*eo+8*en,Ro=$r.Ha,$r=$r.Ia+8*gn*eo+8*en;gn=En.ld,0<en&&(zh(Xn,Ui,yr,xn+4,ja,gn),bs(As,Ol,Ro,$r,eo,xn+4,ja,gn)),En.La&&(Io(Xn,Ui,yr,xn,ja,gn),Nl(As,Ol,Ro,$r,eo,xn,ja,gn)),0<ci&&(El(Xn,Ui,yr,xn+4,ja,gn),xu(As,Ol,Ro,$r,eo,xn+4,ja,gn)),En.La&&(ws(Xn,Ui,yr,xn,ja,gn),_s(As,Ol,Ro,$r,eo,xn,ja,gn))}}if(ye.ia&&alert("todo:DitherRow"),be.put!=null){if(Bt=16*dr,dr=16*(dr+1),_i?(be.y=ye.sa,be.O=ye.ta+Ar,be.f=ye.qa,be.N=ye.ra+ui,be.ea=ye.Ha,be.W=ye.Ia+ui):(Bt-=Ht,be.y=it,be.O=St,be.f=ot,be.N=qe,be.ea=Qt,be.W=hr),Kt||(dr-=Ht),dr>be.o&&(dr=be.o),be.F=null,be.J=null,ye.Fa!=null&&0<ye.Fa.length&&Bt<dr&&(be.J=uu(ye,be,Bt,dr-Bt),be.F=ye.mb,be.F==null&&be.F.length==0)){$e=Gr(ye,3,"Could not decode alpha data.");break e}Bt<be.j&&(Ht=be.j-Bt,Bt=be.j,t(!(1&Ht)),be.O+=ye.R*Ht,be.N+=ye.B*(Ht>>1),be.W+=ye.B*(Ht>>1),be.F!=null&&(be.J+=be.width*Ht)),Bt<dr&&(be.O+=be.v,be.N+=be.v>>1,be.W+=be.v>>1,be.F!=null&&(be.J+=be.v),be.ka=Bt-be.j,be.U=be.va-be.v,be.T=dr-Bt,$e=be.put(be))}Ie+1!=ye.Ic||Kt||(n(ye.sa,ye.ta-He,it,St+16*ye.R,He),n(ye.qa,ye.ra-ut,ot,qe+8*ye.B,ut),n(ye.Ha,ye.Ia-ut,Qt,hr+8*ye.B,ut))}if(!$e)return Gr(Se,6,"Output aborted.")}return 1})(m,w)),w.bc!=null&&w.bc(w),C&=1}return C?(m.cb=0,C):0}function ra(m,w,C,F,H){H=m[w+C+32*F]+(H>>3),m[w+C+32*F]=-256&H?0>H?0:255:H}function fl(m,w,C,F,H,K){ra(m,w,0,C,F+H),ra(m,w,1,C,F+K),ra(m,w,2,C,F-K),ra(m,w,3,C,F-H)}function oi(m){return(20091*m>>16)+m}function Qc(m,w,C,F){var H,K=0,J=a(16);for(H=0;4>H;++H){var te=m[w+0]+m[w+8],re=m[w+0]-m[w+8],ue=(35468*m[w+4]>>16)-oi(m[w+12]),xe=oi(m[w+4])+(35468*m[w+12]>>16);J[K+0]=te+xe,J[K+1]=re+ue,J[K+2]=re-ue,J[K+3]=te-xe,K+=4,w++}for(H=K=0;4>H;++H)te=(m=J[K+0]+4)+J[K+8],re=m-J[K+8],ue=(35468*J[K+4]>>16)-oi(J[K+12]),ra(C,F,0,0,te+(xe=oi(J[K+4])+(35468*J[K+12]>>16))),ra(C,F,1,0,re+ue),ra(C,F,2,0,re-ue),ra(C,F,3,0,te-xe),K++,F+=32}function Eh(m,w,C,F){var H=m[w+0]+4,K=35468*m[w+4]>>16,J=oi(m[w+4]),te=35468*m[w+1]>>16;fl(C,F,0,H+J,m=oi(m[w+1]),te),fl(C,F,1,H+K,m,te),fl(C,F,2,H-K,m,te),fl(C,F,3,H-J,m,te)}function Jp(m,w,C,F,H){Qc(m,w,C,F),H&&Qc(m,w+16,C,F+4)}function Nh(m,w,C,F){Ja(m,w+0,C,F,1),Ja(m,w+32,C,F+128,1)}function Zp(m,w,C,F){var H;for(m=m[w+0]+4,H=0;4>H;++H)for(w=0;4>w;++w)ra(C,F,w,H,m)}function Ph(m,w,C,F){m[w+0]&&Kn(m,w+0,C,F),m[w+16]&&Kn(m,w+16,C,F+4),m[w+32]&&Kn(m,w+32,C,F+128),m[w+48]&&Kn(m,w+48,C,F+128+4)}function Qp(m,w,C,F){var H,K=a(16);for(H=0;4>H;++H){var J=m[w+0+H]+m[w+12+H],te=m[w+4+H]+m[w+8+H],re=m[w+4+H]-m[w+8+H],ue=m[w+0+H]-m[w+12+H];K[0+H]=J+te,K[8+H]=J-te,K[4+H]=ue+re,K[12+H]=ue-re}for(H=0;4>H;++H)J=(m=K[0+4*H]+3)+K[3+4*H],te=K[1+4*H]+K[2+4*H],re=K[1+4*H]-K[2+4*H],ue=m-K[3+4*H],C[F+0]=J+te>>3,C[F+16]=ue+re>>3,C[F+32]=J-te>>3,C[F+48]=ue-re>>3,F+=64}function eu(m,w,C){var F,H=w-32,K=wi,J=255-m[H-1];for(F=0;F<C;++F){var te,re=K,ue=J+m[w-1];for(te=0;te<C;++te)m[w+te]=re[ue+m[H+te]];w+=32}}function e1(m,w){eu(m,w,4)}function t1(m,w){eu(m,w,8)}function r1(m,w){eu(m,w,16)}function Va(m,w){var C;for(C=0;16>C;++C)n(m,w+32*C,m,w-32,16)}function hl(m,w){var C;for(C=16;0<C;--C)i(m,w,m[w-1],16),w+=32}function dl(m,w,C){var F;for(F=0;16>F;++F)i(w,C+32*F,m,16)}function Oh(m,w){var C,F=16;for(C=0;16>C;++C)F+=m[w-1+32*C]+m[w+C-32];dl(F>>5,m,w)}function Mn(m,w){var C,F=8;for(C=0;16>C;++C)F+=m[w-1+32*C];dl(F>>4,m,w)}function n1(m,w){var C,F=8;for(C=0;16>C;++C)F+=m[w+C-32];dl(F>>4,m,w)}function jh(m,w){dl(128,m,w)}function kt(m,w,C){return m+2*w+C+2>>2}function i1(m,w){var C,F=w-32;for(F=new Uint8Array([kt(m[F-1],m[F+0],m[F+1]),kt(m[F+0],m[F+1],m[F+2]),kt(m[F+1],m[F+2],m[F+3]),kt(m[F+2],m[F+3],m[F+4])]),C=0;4>C;++C)n(m,w+32*C,F,0,F.length)}function a1(m,w){var C=m[w-1],F=m[w-1+32],H=m[w-1+64],K=m[w-1+96];ve(m,w+0,16843009*kt(m[w-1-32],C,F)),ve(m,w+32,16843009*kt(C,F,H)),ve(m,w+64,16843009*kt(F,H,K)),ve(m,w+96,16843009*kt(H,K,K))}function Na(m,w){var C,F=4;for(C=0;4>C;++C)F+=m[w+C-32]+m[w-1+32*C];for(F>>=3,C=0;4>C;++C)i(m,w+32*C,F,4)}function Ch(m,w){var C=m[w-1+0],F=m[w-1+32],H=m[w-1+64],K=m[w-1-32],J=m[w+0-32],te=m[w+1-32],re=m[w+2-32],ue=m[w+3-32];m[w+0+96]=kt(F,H,m[w-1+96]),m[w+1+96]=m[w+0+64]=kt(C,F,H),m[w+2+96]=m[w+1+64]=m[w+0+32]=kt(K,C,F),m[w+3+96]=m[w+2+64]=m[w+1+32]=m[w+0+0]=kt(J,K,C),m[w+3+64]=m[w+2+32]=m[w+1+0]=kt(te,J,K),m[w+3+32]=m[w+2+0]=kt(re,te,J),m[w+3+0]=kt(ue,re,te)}function kh(m,w){var C=m[w+1-32],F=m[w+2-32],H=m[w+3-32],K=m[w+4-32],J=m[w+5-32],te=m[w+6-32],re=m[w+7-32];m[w+0+0]=kt(m[w+0-32],C,F),m[w+1+0]=m[w+0+32]=kt(C,F,H),m[w+2+0]=m[w+1+32]=m[w+0+64]=kt(F,H,K),m[w+3+0]=m[w+2+32]=m[w+1+64]=m[w+0+96]=kt(H,K,J),m[w+3+32]=m[w+2+64]=m[w+1+96]=kt(K,J,te),m[w+3+64]=m[w+2+96]=kt(J,te,re),m[w+3+96]=kt(te,re,re)}function pl(m,w){var C=m[w-1+0],F=m[w-1+32],H=m[w-1+64],K=m[w-1-32],J=m[w+0-32],te=m[w+1-32],re=m[w+2-32],ue=m[w+3-32];m[w+0+0]=m[w+1+64]=K+J+1>>1,m[w+1+0]=m[w+2+64]=J+te+1>>1,m[w+2+0]=m[w+3+64]=te+re+1>>1,m[w+3+0]=re+ue+1>>1,m[w+0+96]=kt(H,F,C),m[w+0+64]=kt(F,C,K),m[w+0+32]=m[w+1+96]=kt(C,K,J),m[w+1+32]=m[w+2+96]=kt(K,J,te),m[w+2+32]=m[w+3+96]=kt(J,te,re),m[w+3+32]=kt(te,re,ue)}function tu(m,w){var C=m[w+0-32],F=m[w+1-32],H=m[w+2-32],K=m[w+3-32],J=m[w+4-32],te=m[w+5-32],re=m[w+6-32],ue=m[w+7-32];m[w+0+0]=C+F+1>>1,m[w+1+0]=m[w+0+64]=F+H+1>>1,m[w+2+0]=m[w+1+64]=H+K+1>>1,m[w+3+0]=m[w+2+64]=K+J+1>>1,m[w+0+32]=kt(C,F,H),m[w+1+32]=m[w+0+96]=kt(F,H,K),m[w+2+32]=m[w+1+96]=kt(H,K,J),m[w+3+32]=m[w+2+96]=kt(K,J,te),m[w+3+64]=kt(J,te,re),m[w+3+96]=kt(te,re,ue)}function o1(m,w){var C=m[w-1+0],F=m[w-1+32],H=m[w-1+64],K=m[w-1+96];m[w+0+0]=C+F+1>>1,m[w+2+0]=m[w+0+32]=F+H+1>>1,m[w+2+32]=m[w+0+64]=H+K+1>>1,m[w+1+0]=kt(C,F,H),m[w+3+0]=m[w+1+32]=kt(F,H,K),m[w+3+32]=m[w+1+64]=kt(H,K,K),m[w+3+64]=m[w+2+64]=m[w+0+96]=m[w+1+96]=m[w+2+96]=m[w+3+96]=K}function s1(m,w){var C=m[w-1+0],F=m[w-1+32],H=m[w-1+64],K=m[w-1+96],J=m[w-1-32],te=m[w+0-32],re=m[w+1-32],ue=m[w+2-32];m[w+0+0]=m[w+2+32]=C+J+1>>1,m[w+0+32]=m[w+2+64]=F+C+1>>1,m[w+0+64]=m[w+2+96]=H+F+1>>1,m[w+0+96]=K+H+1>>1,m[w+3+0]=kt(te,re,ue),m[w+2+0]=kt(J,te,re),m[w+1+0]=m[w+3+32]=kt(C,J,te),m[w+1+32]=m[w+3+64]=kt(F,C,J),m[w+1+64]=m[w+3+96]=kt(H,F,C),m[w+1+96]=kt(K,H,F)}function l1(m,w){var C;for(C=0;8>C;++C)n(m,w+32*C,m,w-32,8)}function ru(m,w){var C;for(C=0;8>C;++C)i(m,w,m[w-1],8),w+=32}function ms(m,w,C){var F;for(F=0;8>F;++F)i(w,C+32*F,m,8)}function Oo(m,w){var C,F=8;for(C=0;8>C;++C)F+=m[w+C-32]+m[w-1+32*C];ms(F>>4,m,w)}function c1(m,w){var C,F=4;for(C=0;8>C;++C)F+=m[w+C-32];ms(F>>3,m,w)}function vs(m,w){var C,F=4;for(C=0;8>C;++C)F+=m[w-1+32*C];ms(F>>3,m,w)}function nu(m,w){ms(128,m,w)}function ml(m,w,C){var F=m[w-C],H=m[w+0],K=3*(H-F)+m1[1020+m[w-2*C]-m[w+C]],J=Hh[112+(K+4>>3)];m[w-C]=wi[255+F+Hh[112+(K+3>>3)]],m[w+0]=wi[255+H-J]}function Lh(m,w,C,F){var H=m[w+0],K=m[w+C];return $i[255+m[w-2*C]-m[w-C]]>F||$i[255+K-H]>F}function Ih(m,w,C,F){return 4*$i[255+m[w-C]-m[w+0]]+$i[255+m[w-2*C]-m[w+C]]<=F}function Fh(m,w,C,F,H){var K=m[w-3*C],J=m[w-2*C],te=m[w-C],re=m[w+0],ue=m[w+C],xe=m[w+2*C],Oe=m[w+3*C];return 4*$i[255+te-re]+$i[255+J-ue]>F?0:$i[255+m[w-4*C]-K]<=H&&$i[255+K-J]<=H&&$i[255+J-te]<=H&&$i[255+Oe-xe]<=H&&$i[255+xe-ue]<=H&&$i[255+ue-re]<=H}function Mh(m,w,C,F){var H=2*F+1;for(F=0;16>F;++F)Ih(m,w+F,C,H)&&ml(m,w+F,C)}function Pa(m,w,C,F){var H=2*F+1;for(F=0;16>F;++F)Ih(m,w+F*C,1,H)&&ml(m,w+F*C,1)}function Ya(m,w,C,F){var H;for(H=3;0<H;--H)Mh(m,w+=4*C,C,F)}function u1(m,w,C,F){var H;for(H=3;0<H;--H)Pa(m,w+=4,C,F)}function jo(m,w,C,F,H,K,J,te){for(K=2*K+1;0<H--;){if(Fh(m,w,C,K,J))if(Lh(m,w,C,te))ml(m,w,C);else{var re=m,ue=w,xe=C,Oe=re[ue-2*xe],je=re[ue-xe],Se=re[ue+0],ze=re[ue+xe],Ie=re[ue+2*xe],ye=27*($e=m1[1020+3*(Se-je)+m1[1020+Oe-ze]])+63>>7,be=18*$e+63>>7,$e=9*$e+63>>7;re[ue-3*xe]=wi[255+re[ue-3*xe]+$e],re[ue-2*xe]=wi[255+Oe+be],re[ue-xe]=wi[255+je+ye],re[ue+0]=wi[255+Se-ye],re[ue+xe]=wi[255+ze-be],re[ue+2*xe]=wi[255+Ie-$e]}w+=F}}function na(m,w,C,F,H,K,J,te){for(K=2*K+1;0<H--;){if(Fh(m,w,C,K,J))if(Lh(m,w,C,te))ml(m,w,C);else{var re=m,ue=w,xe=C,Oe=re[ue-xe],je=re[ue+0],Se=re[ue+xe],ze=Hh[112+((Ie=3*(je-Oe))+4>>3)],Ie=Hh[112+(Ie+3>>3)],ye=ze+1>>1;re[ue-2*xe]=wi[255+re[ue-2*xe]+ye],re[ue-xe]=wi[255+Oe+Ie],re[ue+0]=wi[255+je-ze],re[ue+xe]=wi[255+Se-ye]}w+=F}}function iu(m,w,C,F,H,K){jo(m,w,C,1,16,F,H,K)}function gs(m,w,C,F,H,K){jo(m,w,1,C,16,F,H,K)}function f1(m,w,C,F,H,K){var J;for(J=3;0<J;--J)na(m,w+=4*C,C,1,16,F,H,K)}function vl(m,w,C,F,H,K){var J;for(J=3;0<J;--J)na(m,w+=4,1,C,16,F,H,K)}function h1(m,w,C,F,H,K,J,te){jo(m,w,H,1,8,K,J,te),jo(C,F,H,1,8,K,J,te)}function au(m,w,C,F,H,K,J,te){jo(m,w,1,H,8,K,J,te),jo(C,F,1,H,8,K,J,te)}function ou(m,w,C,F,H,K,J,te){na(m,w+4*H,H,1,8,K,J,te),na(C,F+4*H,H,1,8,K,J,te)}function Dh(m,w,C,F,H,K,J,te){na(m,w+4,1,H,8,K,J,te),na(C,F+4,1,H,8,K,J,te)}function gl(){this.ba=new Sr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Nt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function su(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function lu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Rh(){this.ua=0,this.Wa=new le,this.vb=new le,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new U,this.yc=new N}function d1(){this.xb=this.a=0,this.l=new Ea,this.ca=new Sr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new O,this.Pb=0,this.wd=new O,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Rh,this.ab=0,this.gc=o(4,lu),this.Oc=0}function xl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ea,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xs(m,w,C,F,H,K,J){for(m=m==null?0:m[w+0],w=0;w<J;++w)H[K+w]=m+C[F+w]&255,m=H[K+w]}function cu(m,w,C,F,H,K,J){var te;if(m==null)xs(null,null,C,F,H,K,J);else for(te=0;te<J;++te)H[K+te]=m[w+te]+C[F+te]&255}function Co(m,w,C,F,H,K,J){if(m==null)xs(null,null,C,F,H,K,J);else{var te,re=m[w+0],ue=re,xe=re;for(te=0;te<J;++te)ue=xe+(re=m[w+te])-ue,xe=C[F+te]+(-256&ue?0>ue?0:255:ue)&255,ue=re,H[K+te]=xe}}function uu(m,w,C,F){var H=w.width,K=w.o;if(t(m!=null&&w!=null),0>C||0>=F||C+F>K)return null;if(!m.Cc){if(m.ga==null){var J;if(m.ga=new xl,(J=m.ga==null)||(J=w.width*w.o,t(m.Gb.length==0),m.Gb=a(J),m.Uc=0,m.Gb==null?J=0:(m.mb=m.Gb,m.nb=m.Uc,m.rc=null,J=1),J=!J),!J){J=m.ga;var te=m.Fa,re=m.P,ue=m.qc,xe=m.mb,Oe=m.nb,je=re+1,Se=ue-1,ze=J.l;if(t(te!=null&&xe!=null&&w!=null),Do[0]=null,Do[1]=xs,Do[2]=cu,Do[3]=Co,J.ca=xe,J.tb=Oe,J.c=w.width,J.i=w.height,t(0<J.c&&0<J.i),1>=ue)w=0;else if(J.$a=te[re+0]>>0&3,J.Z=te[re+0]>>2&3,J.Lc=te[re+0]>>4&3,re=te[re+0]>>6&3,0>J.$a||1<J.$a||4<=J.Z||1<J.Lc||re)w=0;else if(ze.put=Ii,ze.ac=ln,ze.bc=Fi,ze.ma=J,ze.width=w.width,ze.height=w.height,ze.Da=w.Da,ze.v=w.v,ze.va=w.va,ze.j=w.j,ze.o=w.o,J.$a)e:{t(J.$a==1),w=Le();t:for(;;){if(w==null){w=0;break e}if(t(J!=null),J.mc=w,w.c=J.c,w.i=J.i,w.l=J.l,w.l.ma=J,w.l.width=J.c,w.l.height=J.i,w.a=0,Q(w.m,te,je,Se),!Ne(J.c,J.i,1,w,null)||(w.ab==1&&w.gc[0].hc==3&&ie(w.s)?(J.ic=1,te=w.c*w.i,w.Ta=null,w.Ua=0,w.V=a(te),w.Ba=0,w.V==null?(w.a=1,w=0):w=1):(J.ic=0,w=Ce(w,J.c)),!w))break t;w=1;break e}J.mc=null,w=0}else w=Se>=J.c*J.i;J=!w}if(J)return null;m.ga.Lc!=1?m.Ga=0:F=K-C}t(m.ga!=null),t(C+F<=K);e:{if(w=(te=m.ga).c,K=te.l.o,te.$a==0){if(je=m.rc,Se=m.Vc,ze=m.Fa,re=m.P+1+C*w,ue=m.mb,xe=m.nb+C*w,t(re<=m.P+m.qc),te.Z!=0)for(t(Do[te.Z]!=null),J=0;J<F;++J)Do[te.Z](je,Se,ze,re,ue,xe,w),je=ue,Se=xe,xe+=w,re+=w;else for(J=0;J<F;++J)n(ue,xe,ze,re,w),je=ue,Se=xe,xe+=w,re+=w;m.rc=je,m.Vc=Se}else{if(t(te.mc!=null),w=C+F,t((J=te.mc)!=null),t(w<=J.i),J.C>=w)w=1;else if(te.ic||Te(),te.ic){te=J.V,je=J.Ba,Se=J.c;var Ie=J.i,ye=(ze=1,re=J.$/Se,ue=J.$%Se,xe=J.m,Oe=J.s,J.$),be=Se*Ie,$e=Se*w,He=Oe.wc,qe=ye<$e?Rr(Oe,ue,re):null;t(ye<=be),t(w<=Ie),t(ie(Oe));t:for(;;){for(;!xe.h&&ye<$e;){if(ue&He||(qe=Rr(Oe,ue,re)),t(qe!=null),Y(xe),256>(Ie=Fn(qe.G[0],qe.H[0],xe)))te[je+ye]=Ie,++ye,++ue>=Se&&(ue=0,++re<=w&&!(re%16)&&he(J,re));else{if(!(280>Ie)){ze=0;break t}Ie=xi(Ie-256,xe);var ut,it=Fn(qe.G[4],qe.H[4],xe);if(Y(xe),!(ye>=(it=ai(Se,it=xi(it,xe)))&&be-ye>=Ie)){ze=0;break t}for(ut=0;ut<Ie;++ut)te[je+ye+ut]=te[je+ye+ut-it];for(ye+=Ie,ue+=Ie;ue>=Se;)ue-=Se,++re<=w&&!(re%16)&&he(J,re);ye<$e&&ue&He&&(qe=Rr(Oe,ue,re))}t(xe.h==M(xe))}he(J,re>w?w:re);break t}!ze||xe.h&&ye<be?(ze=0,J.a=xe.h?5:3):J.$=ye,w=ze}else w=pe(J,J.V,J.Ba,J.c,J.i,w,ke);if(!w){F=0;break e}}C+F>=K&&(m.Cc=1),F=1}if(!F)return null;if(m.Cc&&((F=m.ga)!=null&&(F.mc=null),m.ga=null,0<m.Ga))return alert("todo:WebPDequantizeLevels"),null}return m.nb+C*H}function E(m,w,C,F,H,K){for(;0<H--;){var J,te=m,re=w+(C?1:0),ue=m,xe=w+(C?0:3);for(J=0;J<F;++J){var Oe=ue[xe+4*J];Oe!=255&&(Oe*=32897,te[re+4*J+0]=te[re+4*J+0]*Oe>>23,te[re+4*J+1]=te[re+4*J+1]*Oe>>23,te[re+4*J+2]=te[re+4*J+2]*Oe>>23)}w+=K}}function V(m,w,C,F,H){for(;0<F--;){var K;for(K=0;K<C;++K){var J=m[w+2*K+0],te=15&(ue=m[w+2*K+1]),re=4369*te,ue=(240&ue|ue>>4)*re>>16;m[w+2*K+0]=(240&J|J>>4)*re>>16&240|(15&J|J<<4)*re>>16>>4&15,m[w+2*K+1]=240&ue|te}w+=H}}function me(m,w,C,F,H,K,J,te){var re,ue,xe=255;for(ue=0;ue<H;++ue){for(re=0;re<F;++re){var Oe=m[w+re];K[J+4*re]=Oe,xe&=Oe}w+=C,J+=te}return xe!=255}function ge(m,w,C,F,H){var K;for(K=0;K<H;++K)C[F+K]=m[w+K]>>8}function Te(){Bi=E,Nr=V,Pr=me,Yr=ge}function Me(m,w,C){k[m]=function(F,H,K,J,te,re,ue,xe,Oe,je,Se,ze,Ie,ye,be,$e,He){var qe,ut=He-1>>1,it=te[re+0]|ue[xe+0]<<16,St=Oe[je+0]|Se[ze+0]<<16;t(F!=null);var ot=3*it+St+131074>>2;for(w(F[H+0],255&ot,ot>>16,Ie,ye),K!=null&&(ot=3*St+it+131074>>2,w(K[J+0],255&ot,ot>>16,be,$e)),qe=1;qe<=ut;++qe){var Qt=te[re+qe]|ue[xe+qe]<<16,hr=Oe[je+qe]|Se[ze+qe]<<16,Kt=it+Qt+St+hr+524296,Ht=Kt+2*(Qt+St)>>3;ot=Ht+it>>1,it=(Kt=Kt+2*(it+hr)>>3)+Qt>>1,w(F[H+2*qe-1],255&ot,ot>>16,Ie,ye+(2*qe-1)*C),w(F[H+2*qe-0],255&it,it>>16,Ie,ye+(2*qe-0)*C),K!=null&&(ot=Kt+St>>1,it=Ht+hr>>1,w(K[J+2*qe-1],255&ot,ot>>16,be,$e+(2*qe-1)*C),w(K[J+2*qe+0],255&it,it>>16,be,$e+(2*qe+0)*C)),it=Qt,St=hr}1&He||(ot=3*it+St+131074>>2,w(F[H+He-1],255&ot,ot>>16,Ie,ye+(He-1)*C),K!=null&&(ot=3*St+it+131074>>2,w(K[J+He-1],255&ot,ot>>16,be,$e+(He-1)*C)))}}function Ve(){qi[Gh]=vC,qi[Vh]=P5,qi[S5]=gC,qi[Yh]=O5,qi[Kh]=j5,qi[v1]=C5,qi[A5]=xC,qi[g1]=P5,qi[x1]=O5,qi[Xh]=j5,qi[y1]=C5}function ct(m){return m&-16384?0>m?0:255:m>>yC}function gt(m,w){return ct((19077*m>>8)+(26149*w>>8)-14234)}function Dt(m,w,C){return ct((19077*m>>8)-(6419*w>>8)-(13320*C>>8)+8708)}function Lt(m,w){return ct((19077*m>>8)+(33050*w>>8)-17685)}function Gt(m,w,C,F,H){F[H+0]=gt(m,C),F[H+1]=Dt(m,w,C),F[H+2]=Lt(m,w)}function Mr(m,w,C,F,H){F[H+0]=Lt(m,w),F[H+1]=Dt(m,w,C),F[H+2]=gt(m,C)}function Br(m,w,C,F,H){var K=Dt(m,w,C);w=K<<3&224|Lt(m,w)>>3,F[H+0]=248&gt(m,C)|K>>5,F[H+1]=w}function Qr(m,w,C,F,H){var K=240&Lt(m,w)|15;F[H+0]=240&gt(m,C)|Dt(m,w,C)>>4,F[H+1]=K}function Dn(m,w,C,F,H){F[H+0]=255,Gt(m,w,C,F,H+1)}function vn(m,w,C,F,H){Mr(m,w,C,F,H),F[H+3]=255}function ia(m,w,C,F,H){Gt(m,w,C,F,H),F[H+3]=255}function bi(m,w){return 0>m?0:m>w?w:m}function Oa(m,w,C){k[m]=function(F,H,K,J,te,re,ue,xe,Oe){for(var je=xe+(-2&Oe)*C;xe!=je;)w(F[H+0],K[J+0],te[re+0],ue,xe),w(F[H+1],K[J+0],te[re+0],ue,xe+C),H+=2,++J,++re,xe+=2*C;1&Oe&&w(F[H+0],K[J+0],te[re+0],ue,xe)}}function Bh(m,w,C){return C==0?m==0?w==0?6:5:w==0?4:0:C}function fu(m,w,C,F,H){switch(m>>>30){case 3:Ja(w,C,F,H,0);break;case 2:Vr(w,C,F,H);break;case 1:Kn(w,C,F,H)}}function hu(m,w){var C,F,H=w.M,K=w.Nb,J=m.oc,te=m.pc+40,re=m.oc,ue=m.pc+584,xe=m.oc,Oe=m.pc+600;for(C=0;16>C;++C)J[te+32*C-1]=129;for(C=0;8>C;++C)re[ue+32*C-1]=129,xe[Oe+32*C-1]=129;for(0<H?J[te-1-32]=re[ue-1-32]=xe[Oe-1-32]=129:(i(J,te-32-1,127,21),i(re,ue-32-1,127,9),i(xe,Oe-32-1,127,9)),F=0;F<m.za;++F){var je=w.ya[w.aa+F];if(0<F){for(C=-1;16>C;++C)n(J,te+32*C-4,J,te+32*C+12,4);for(C=-1;8>C;++C)n(re,ue+32*C-4,re,ue+32*C+4,4),n(xe,Oe+32*C-4,xe,Oe+32*C+4,4)}var Se=m.Gd,ze=m.Hd+F,Ie=je.ad,ye=je.Hc;if(0<H&&(n(J,te-32,Se[ze].y,0,16),n(re,ue-32,Se[ze].f,0,8),n(xe,Oe-32,Se[ze].ea,0,8)),je.Za){var be=J,$e=te-32+16;for(0<H&&(F>=m.za-1?i(be,$e,Se[ze].y[15],4):n(be,$e,Se[ze+1].y,0,4)),C=0;4>C;C++)be[$e+128+C]=be[$e+256+C]=be[$e+384+C]=be[$e+0+C];for(C=0;16>C;++C,ye<<=2)be=J,$e=te+L5[C],aa[je.Ob[C]](be,$e),fu(ye,Ie,16*+C,be,$e)}else if(be=Bh(F,H,je.Ob[0]),Mo[be](J,te),ye!=0)for(C=0;16>C;++C,ye<<=2)fu(ye,Ie,16*+C,J,te+L5[C]);for(C=je.Gc,be=Bh(F,H,je.Dd),Qa[be](re,ue),Qa[be](xe,Oe),ye=Ie,be=re,$e=ue,255&(je=C>>0)&&(170&je?gu(ye,256,be,$e):Di(ye,256,be,$e)),je=xe,ye=Oe,255&(C>>=8)&&(170&C?gu(Ie,320,je,ye):Di(Ie,320,je,ye)),H<m.Ub-1&&(n(Se[ze].y,0,J,te+480,16),n(Se[ze].f,0,re,ue+224,8),n(Se[ze].ea,0,xe,Oe+224,8)),C=8*K*m.B,Se=m.sa,ze=m.ta+16*F+16*K*m.R,Ie=m.qa,je=m.ra+8*F+C,ye=m.Ha,be=m.Ia+8*F+C,C=0;16>C;++C)n(Se,ze+C*m.R,J,te+32*C,16);for(C=0;8>C;++C)n(Ie,je+C*m.B,re,ue+32*C,8),n(ye,be+C*m.B,xe,Oe+32*C,8)}}function yl(m,w,C,F,H,K,J,te,re){var ue=[0],xe=[0],Oe=0,je=re!=null?re.kd:0,Se=re??new su;if(m==null||12>C)return 7;Se.data=m,Se.w=w,Se.ha=C,w=[w],C=[C],Se.gb=[Se.gb];e:{var ze=w,Ie=C,ye=Se.gb;if(t(m!=null),t(Ie!=null),t(ye!=null),ye[0]=0,12<=Ie[0]&&!r(m,ze[0],"RIFF")){if(r(m,ze[0]+8,"WEBP")){ye=3;break e}var be=Fe(m,ze[0]+4);if(12>be||4294967286<be){ye=3;break e}if(je&&be>Ie[0]-8){ye=7;break e}ye[0]=be,ze[0]+=12,Ie[0]-=12}ye=0}if(ye!=0)return ye;for(be=0<Se.gb[0],C=C[0];;){e:{var $e=m;Ie=w,ye=C;var He=ue,qe=xe,ut=ze=[0];if((ot=Oe=[Oe])[0]=0,8>ye[0])ye=7;else{if(!r($e,Ie[0],"VP8X")){if(Fe($e,Ie[0]+4)!=10){ye=3;break e}if(18>ye[0]){ye=7;break e}var it=Fe($e,Ie[0]+8),St=1+se($e,Ie[0]+12);if(2147483648<=St*($e=1+se($e,Ie[0]+15))){ye=3;break e}ut!=null&&(ut[0]=it),He!=null&&(He[0]=St),qe!=null&&(qe[0]=$e),Ie[0]+=18,ye[0]-=18,ot[0]=1}ye=0}}if(Oe=Oe[0],ze=ze[0],ye!=0)return ye;if(Ie=!!(2&ze),!be&&Oe)return 3;if(K!=null&&(K[0]=!!(16&ze)),J!=null&&(J[0]=Ie),te!=null&&(te[0]=0),J=ue[0],ze=xe[0],Oe&&Ie&&re==null){ye=0;break}if(4>C){ye=7;break}if(be&&Oe||!be&&!Oe&&!r(m,w[0],"ALPH")){C=[C],Se.na=[Se.na],Se.P=[Se.P],Se.Sa=[Se.Sa];e:{it=m,ye=w,be=C;var ot=Se.gb;He=Se.na,qe=Se.P,ut=Se.Sa,St=22,t(it!=null),t(be!=null),$e=ye[0];var Qt=be[0];for(t(He!=null),t(ut!=null),He[0]=null,qe[0]=null,ut[0]=0;;){if(ye[0]=$e,be[0]=Qt,8>Qt){ye=7;break e}var hr=Fe(it,$e+4);if(4294967286<hr){ye=3;break e}var Kt=8+hr+1&-2;if(St+=Kt,0<ot&&St>ot){ye=3;break e}if(!r(it,$e,"VP8 ")||!r(it,$e,"VP8L")){ye=0;break e}if(Qt[0]<Kt){ye=7;break e}r(it,$e,"ALPH")||(He[0]=it,qe[0]=$e+8,ut[0]=hr),$e+=Kt,Qt-=Kt}}if(C=C[0],Se.na=Se.na[0],Se.P=Se.P[0],Se.Sa=Se.Sa[0],ye!=0)break}C=[C],Se.Ja=[Se.Ja],Se.xa=[Se.xa];e:if(ot=m,ye=w,be=C,He=Se.gb[0],qe=Se.Ja,ut=Se.xa,it=ye[0],$e=!r(ot,it,"VP8 "),St=!r(ot,it,"VP8L"),t(ot!=null),t(be!=null),t(qe!=null),t(ut!=null),8>be[0])ye=7;else{if($e||St){if(ot=Fe(ot,it+4),12<=He&&ot>He-12){ye=3;break e}if(je&&ot>be[0]-8){ye=7;break e}qe[0]=ot,ye[0]+=8,be[0]-=8,ut[0]=St}else ut[0]=5<=be[0]&&ot[it+0]==47&&!(ot[it+4]>>5),qe[0]=be[0];ye=0}if(C=C[0],Se.Ja=Se.Ja[0],Se.xa=Se.xa[0],w=w[0],ye!=0)break;if(4294967286<Se.Ja)return 3;if(te==null||Ie||(te[0]=Se.xa?2:1),J=[J],ze=[ze],Se.xa){if(5>C){ye=7;break}te=J,je=ze,Ie=K,m==null||5>C?m=0:5<=C&&m[w+0]==47&&!(m[w+4]>>5)?(be=[0],ot=[0],He=[0],Q(qe=new O,m,w,C),_t(qe,be,ot,He)?(te!=null&&(te[0]=be[0]),je!=null&&(je[0]=ot[0]),Ie!=null&&(Ie[0]=He[0]),m=1):m=0):m=0}else{if(10>C){ye=7;break}te=ze,m==null||10>C||!Sh(m,w+3,C-3)?m=0:(je=m[w+0]|m[w+1]<<8|m[w+2]<<16,Ie=16383&(m[w+7]<<8|m[w+6]),m=16383&(m[w+9]<<8|m[w+8]),1&je||3<(je>>1&7)||!(je>>4&1)||je>>5>=Se.Ja||!Ie||!m?m=0:(J&&(J[0]=Ie),te&&(te[0]=m),m=1))}if(!m||(J=J[0],ze=ze[0],Oe&&(ue[0]!=J||xe[0]!=ze)))return 3;re!=null&&(re[0]=Se,re.offset=w-re.w,t(4294967286>w-re.w),t(re.offset==re.ha-C));break}return ye==0||ye==7&&Oe&&re==null?(K!=null&&(K[0]|=Se.na!=null&&0<Se.na.length),F!=null&&(F[0]=J),H!=null&&(H[0]=ze),0):ye}function du(m,w,C){var F=w.width,H=w.height,K=0,J=0,te=F,re=H;if(w.Da=m!=null&&0<m.Da,w.Da&&(te=m.cd,re=m.bd,K=m.v,J=m.j,11>C||(K&=-2,J&=-2),0>K||0>J||0>=te||0>=re||K+te>F||J+re>H))return 0;if(w.v=K,w.j=J,w.va=K+te,w.o=J+re,w.U=te,w.T=re,w.da=m!=null&&0<m.da,w.da){if(!Re(te,re,C=[m.ib],K=[m.hb]))return 0;w.ib=C[0],w.hb=K[0]}return w.ob=m!=null&&m.ob,w.Kb=m==null||!m.Sd,w.da&&(w.ob=w.ib<3*F/4&&w.hb<3*H/4,w.Kb=0),1}function pu(m){if(m==null)return 2;if(11>m.S){var w=m.f.RGBA;w.fb+=(m.height-1)*w.A,w.A=-w.A}else w=m.f.kb,m=m.height,w.O+=(m-1)*w.fa,w.fa=-w.fa,w.N+=(m-1>>1)*w.Ab,w.Ab=-w.Ab,w.W+=(m-1>>1)*w.Db,w.Db=-w.Db,w.F!=null&&(w.J+=(m-1)*w.lb,w.lb=-w.lb);return 0}function bl(m,w,C,F){if(F==null||0>=m||0>=w)return 2;if(C!=null){if(C.Da){var H=C.cd,K=C.bd,J=-2&C.v,te=-2&C.j;if(0>J||0>te||0>=H||0>=K||J+H>m||te+K>w)return 2;m=H,w=K}if(C.da){if(!Re(m,w,H=[C.ib],K=[C.hb]))return 2;m=H[0],w=K[0]}}F.width=m,F.height=w;e:{var re=F.width,ue=F.height;if(m=F.S,0>=re||0>=ue||!(m>=Gh&&13>m))m=2;else{if(0>=F.Rd&&F.sd==null){J=K=H=w=0;var xe=(te=re*I5[m])*ue;if(11>m||(K=(ue+1)/2*(w=(re+1)/2),m==12&&(J=(H=re)*ue)),(ue=a(xe+2*K+J))==null){m=1;break e}F.sd=ue,11>m?((re=F.f.RGBA).eb=ue,re.fb=0,re.A=te,re.size=xe):((re=F.f.kb).y=ue,re.O=0,re.fa=te,re.Fd=xe,re.f=ue,re.N=0+xe,re.Ab=w,re.Cd=K,re.ea=ue,re.W=0+xe+K,re.Db=w,re.Ed=K,m==12&&(re.F=ue,re.J=0+xe+2*K),re.Tc=J,re.lb=H)}if(w=1,H=F.S,K=F.width,J=F.height,H>=Gh&&13>H)if(11>H)m=F.f.RGBA,w&=(te=Math.abs(m.A))*(J-1)+K<=m.size,w&=te>=K*I5[H],w&=m.eb!=null;else{m=F.f.kb,te=(K+1)/2,xe=(J+1)/2,re=Math.abs(m.fa),ue=Math.abs(m.Ab);var Oe=Math.abs(m.Db),je=Math.abs(m.lb),Se=je*(J-1)+K;w&=re*(J-1)+K<=m.Fd,w&=ue*(xe-1)+te<=m.Cd,w=(w&=Oe*(xe-1)+te<=m.Ed)&re>=K&ue>=te&Oe>=te,w&=m.y!=null,w&=m.f!=null,w&=m.ea!=null,H==12&&(w&=je>=K,w&=Se<=m.Tc,w&=m.F!=null)}else w=0;m=w?0:2}}return m!=0||C!=null&&C.fd&&(m=pu(F)),m}var Tn=64,wl=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],_l=24,Sl=32,mu=8,si=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ke("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(m){return m},k.Predictor2=function(m,w,C){return w[C+0]},k.Predictor3=function(m,w,C){return w[C+1]},k.Predictor4=function(m,w,C){return w[C-1]},k.Predictor5=function(m,w,C){return Je(Je(m,w[C+1]),w[C+0])},k.Predictor6=function(m,w,C){return Je(m,w[C-1])},k.Predictor7=function(m,w,C){return Je(m,w[C+0])},k.Predictor8=function(m,w,C){return Je(w[C-1],w[C+0])},k.Predictor9=function(m,w,C){return Je(w[C+0],w[C+1])},k.Predictor10=function(m,w,C){return Je(Je(m,w[C-1]),Je(w[C+0],w[C+1]))},k.Predictor11=function(m,w,C){var F=w[C+0];return 0>=bt(F>>24&255,m>>24&255,(w=w[C-1])>>24&255)+bt(F>>16&255,m>>16&255,w>>16&255)+bt(F>>8&255,m>>8&255,w>>8&255)+bt(255&F,255&m,255&w)?F:m},k.Predictor12=function(m,w,C){var F=w[C+0];return(ft((m>>24&255)+(F>>24&255)-((w=w[C-1])>>24&255))<<24|ft((m>>16&255)+(F>>16&255)-(w>>16&255))<<16|ft((m>>8&255)+(F>>8&255)-(w>>8&255))<<8|ft((255&m)+(255&F)-(255&w)))>>>0},k.Predictor13=function(m,w,C){var F=w[C-1];return(pt((m=Je(m,w[C+0]))>>24&255,F>>24&255)<<24|pt(m>>16&255,F>>16&255)<<16|pt(m>>8&255,F>>8&255)<<8|pt(m>>0&255,F>>0&255))>>>0};var p1=k.PredictorAdd0;k.PredictorAdd1=Ot,Ke("Predictor2","PredictorAdd2"),Ke("Predictor3","PredictorAdd3"),Ke("Predictor4","PredictorAdd4"),Ke("Predictor5","PredictorAdd5"),Ke("Predictor6","PredictorAdd6"),Ke("Predictor7","PredictorAdd7"),Ke("Predictor8","PredictorAdd8"),Ke("Predictor9","PredictorAdd9"),Ke("Predictor10","PredictorAdd10"),Ke("Predictor11","PredictorAdd11"),Ke("Predictor12","PredictorAdd12"),Ke("Predictor13","PredictorAdd13");var vu=k.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",(function(m){return m>>8&255}),(function(m){return m})),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(m){return m}),(function(m){return m>>8&255}));var $h,Mi=k.ColorIndexInverseTransform,Al=k.MapARGB,qh=k.VP8LColorIndexInverseTransformAlpha,Uh=k.MapAlpha,ko=k.VP8LPredictorsAdd=[];ko.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var ys,li,Yn,Lo,Ka,Xa,Tl,Ja,Vr,gu,Kn,Di,El,zh,xu,bs,ws,Io,_s,Nl,Ss,Fo,yu,Ri,Bi,Nr,Pr,Yr,cn=a(511),Za=a(2041),bu=a(225),Pl=a(767),Wh=0,m1=Za,Hh=bu,wi=Pl,$i=cn,Gh=0,Vh=1,S5=2,Yh=3,Kh=4,v1=5,A5=6,g1=7,x1=8,Xh=9,y1=10,rC=[2,3,7],nC=[3,3,11],T5=[280,256,256,256,40],iC=[0,1,1,1,0],aC=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],oC=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],sC=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],lC=8,b1=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],w1=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],wu=null,cC=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],uC=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],E5=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],fC=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],hC=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],dC=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],pC=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Mo=[],aa=[],Qa=[],mC=1,N5=2,Do=[],qi=[];Me("UpsampleRgbLinePair",Gt,3),Me("UpsampleBgrLinePair",Mr,3),Me("UpsampleRgbaLinePair",ia,4),Me("UpsampleBgraLinePair",vn,4),Me("UpsampleArgbLinePair",Dn,4),Me("UpsampleRgba4444LinePair",Qr,2),Me("UpsampleRgb565LinePair",Br,2);var vC=k.UpsampleRgbLinePair,gC=k.UpsampleBgrLinePair,P5=k.UpsampleRgbaLinePair,O5=k.UpsampleBgraLinePair,j5=k.UpsampleArgbLinePair,C5=k.UpsampleRgba4444LinePair,xC=k.UpsampleRgb565LinePair,Jh=16,Zh=1<<Jh-1,_u=-227,_1=482,yC=6,k5=0,bC=a(256),wC=a(256),_C=a(256),SC=a(256),AC=a(_1-_u),TC=a(_1-_u);Oa("YuvToRgbRow",Gt,3),Oa("YuvToBgrRow",Mr,3),Oa("YuvToRgbaRow",ia,4),Oa("YuvToBgraRow",vn,4),Oa("YuvToArgbRow",Dn,4),Oa("YuvToRgba4444Row",Qr,2),Oa("YuvToRgb565Row",Br,2);var L5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Qh=[0,2,8],EC=[8,7,6,4,4,2,2,2,1,1,1,1],NC=1;this.WebPDecodeRGBA=function(m,w,C,F,H){var K=Vh,J=new gl,te=new Sr;J.ba=te,te.S=K,te.width=[te.width],te.height=[te.height];var re=te.width,ue=te.height,xe=new Yt;if(xe==null||m==null)var Oe=2;else t(xe!=null),Oe=yl(m,w,C,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Oe!=0?re=0:(re!=null&&(re[0]=xe.width[0]),ue!=null&&(ue[0]=xe.height[0]),re=1),re){te.width=te.width[0],te.height=te.height[0],F!=null&&(F[0]=te.width),H!=null&&(H[0]=te.height);e:{if(F=new Ea,(H=new su).data=m,H.w=w,H.ha=C,H.kd=1,w=[0],t(H!=null),((m=yl(H.data,H.w,H.ha,null,null,null,w,null,H))==0||m==7)&&w[0]&&(m=4),(w=m)==0){if(t(J!=null),F.data=H.data,F.w=H.w+H.offset,F.ha=H.ha-H.offset,F.put=Ii,F.ac=ln,F.bc=Fi,F.ma=J,H.xa){if((m=Le())==null){J=1;break e}if((function(je,Se){var ze=[0],Ie=[0],ye=[0];t:for(;;){if(je==null)return 0;if(Se==null)return je.a=2,0;if(je.l=Se,je.a=0,Q(je.m,Se.data,Se.w,Se.ha),!_t(je.m,ze,Ie,ye)){je.a=3;break t}if(je.xb=N5,Se.width=ze[0],Se.height=Ie[0],!Ne(ze[0],Ie[0],1,je,null))break t;return 1}return t(je.a!=0),0})(m,F)){if(F=(w=bl(F.width,F.height,J.Oa,J.ba))==0){t:{F=m;r:for(;;){if(F==null){F=0;break t}if(t(F.s.yc!=null),t(F.s.Ya!=null),t(0<F.s.Wb),t((C=F.l)!=null),t((H=C.ma)!=null),F.xb!=0){if(F.ca=H.ba,F.tb=H.tb,t(F.ca!=null),!du(H.Oa,C,Yh)){F.a=2;break r}if(!Ce(F,C.width)||C.da)break r;if((C.da||_e(F.ca.S))&&Te(),11>F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&Te()),F.Pb&&0<F.s.ua&&F.s.vb.X==null&&!Ae(F.s.vb,F.s.Wa.Xa)){F.a=1;break r}F.xb=0}if(!pe(F,F.V,F.Ba,F.c,F.i,C.o,de))break r;H.Dc=F.Ma,F=1;break t}t(F.a!=0),F=0}F=!F}F&&(w=m.a)}else w=m.a}else{if((m=new yi)==null){J=1;break e}if(m.Fa=H.na,m.P=H.P,m.qc=H.Sa,Ah(m,F)){if((w=bl(F.width,F.height,J.Oa,J.ba))==0){if(m.Aa=0,C=J.Oa,t((H=m)!=null),C!=null){if(0<(re=0>(re=C.Md)?0:100<re?255:255*re/100)){for(ue=xe=0;4>ue;++ue)12>(Oe=H.pb[ue]).lc&&(Oe.ia=re*EC[0>Oe.lc?0:Oe.lc]>>3),xe|=Oe.ia;xe&&(alert("todo:VP8InitRandom"),H.ia=1)}H.Ga=C.Id,100<H.Ga?H.Ga=100:0>H.Ga&&(H.Ga=0)}Xp(m,F)||(w=m.a)}}else w=m.a}w==0&&J.Oa!=null&&J.Oa.fd&&(w=pu(J.ba))}J=w}K=J!=0?null:11>K?te.f.RGBA.eb:te.f.kb.y}else K=null;return K};var I5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(k,L){for(var B="",j=0;j<4;j++)B+=String.fromCharCode(k[L++]);return B}function u(k,L){return(k[L+0]<<0|k[L+1]<<8|k[L+2]<<16)>>>0}function f(k,L){return(k[L+0]<<0|k[L+1]<<8|k[L+2]<<16|k[L+3]<<24)>>>0}new l;var d=[0],h=[0],g=[],p=new l,v=e,y=(function(k,L){var B={},j=0,N=!1,D=0,U=0;if(B.frames=[],!(function(I,M,q,Y){for(var fe=0;fe<Y;fe++)if(I[M+fe]!=q.charCodeAt(fe))return!0;return!1})(k,L,"RIFF",4)){var W,R;for(f(k,L+=4),L+=8;L<k.length;){var z=c(k,L),Q=f(k,L+=4);L+=4;var Z=Q+(1&Q);switch(z){case"VP8 ":case"VP8L":B.frames[j]===void 0&&(B.frames[j]={}),(O=B.frames[j]).src_off=N?U:L-8,O.src_size=D+Q+8,j++,N&&(N=!1,D=0,U=0);break;case"VP8X":(O=B.header={}).feature_flags=k[L];var ee=L+4;O.canvas_width=1+u(k,ee),ee+=3,O.canvas_height=1+u(k,ee),ee+=3;break;case"ALPH":N=!0,D=Z+8,U=L-8;break;case"ANIM":(O=B.header).bgcolor=f(k,L),ee=L+4,O.loop_count=(W=k)[(R=ee)+0]<<0|W[R+1]<<8,ee+=2;break;case"ANMF":var ce,O;(O=B.frames[j]={}).offset_x=2*u(k,L),L+=3,O.offset_y=2*u(k,L),L+=3,O.width=1+u(k,L),L+=3,O.height=1+u(k,L),L+=3,O.duration=u(k,L),L+=3,ce=k[L++],O.dispose=1&ce,O.blend=ce>>1&1}z!="ANMF"&&(L+=Z)}return B}})(v,0);y.response=v,y.rgbaoutput=!0,y.dataurl=!1;var b=y.header?y.header:null,_=y.frames?y.frames:null;if(b){b.loop_counter=b.loop_count,d=[b.canvas_height],h=[b.canvas_width];for(var S=0;S<_.length&&_[S].blend!=0;S++);}var A=_[0],P=p.WebPDecodeRGBA(v,A.src_off,A.src_size,h,d);A.rgba=P,A.imgwidth=h[0],A.imgheight=d[0];for(var T=0;T<h[0]*d[0]*4;T++)g[T]=P[T];return this.width=h,this.height=d,this.data=g,this}(function(e){var t=function(){return typeof fy=="function"},r=function(d,h,g,p){var v=4,y=o;switch(p){case e.image_compression.FAST:v=1,y=a;break;case e.image_compression.MEDIUM:v=6,y=s;break;case e.image_compression.SLOW:v=9,y=l}d=n(d,h,g,y);var b=fy(d,{level:v});return e.__addimage__.arrayBufferToBinaryString(b)},n=function(d,h,g,p){for(var v,y,b,_=d.length/h,S=new Uint8Array(d.length+_),A=u(),P=0;P<_;P+=1){if(b=P*h,v=d.subarray(b,b+h),p)S.set(p(v,g,y),b+P);else{for(var T,k=A.length,L=[];T<k;T+=1)L[T]=A[T](v,g,y);var B=f(L.concat());S.set(L[B],b+P)}y=v}return S},i=function(d){var h=Array.apply([],d);return h.unshift(0),h},a=function(d,h){var g,p=[],v=d.length;p[0]=1;for(var y=0;y<v;y+=1)g=d[y-h]||0,p[y+1]=d[y]-g+256&255;return p},o=function(d,h,g){var p,v=[],y=d.length;v[0]=2;for(var b=0;b<y;b+=1)p=g&&g[b]||0,v[b+1]=d[b]-p+256&255;return v},s=function(d,h,g){var p,v,y=[],b=d.length;y[0]=3;for(var _=0;_<b;_+=1)p=d[_-h]||0,v=g&&g[_]||0,y[_+1]=d[_]+256-(p+v>>>1)&255;return y},l=function(d,h,g){var p,v,y,b,_=[],S=d.length;_[0]=4;for(var A=0;A<S;A+=1)p=d[A-h]||0,v=g&&g[A]||0,y=g&&g[A-h]||0,b=c(p,v,y),_[A+1]=d[A]-b+256&255;return _},c=function(d,h,g){if(d===h&&h===g)return d;var p=Math.abs(h-g),v=Math.abs(d-g),y=Math.abs(d+h-g-g);return p<=v&&p<=y?d:v<=y?h:g},u=function(){return[i,a,o,s,l]},f=function(d){var h=d.map((function(g){return g.reduce((function(p,v){return p+Math.abs(v)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(d,h,g,p){var v,y,b,_,S,A,P,T,k,L,B,j,N,D,U,W=this.decode.FLATE_DECODE,R="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(b=new tL(d)).imgData,y=b.bits,v=b.colorSpace,S=b.colors,[4,6].indexOf(b.colorType)!==-1){if(b.bits===8){k=(T=b.pixelBitlength==32?new Uint32Array(b.decodePixels().buffer):b.pixelBitlength==16?new Uint16Array(b.decodePixels().buffer):new Uint8Array(b.decodePixels().buffer)).length,B=new Uint8Array(k*b.colors),L=new Uint8Array(k);var z,Q=b.pixelBitlength-b.bits;for(D=0,U=0;D<k;D++){for(N=T[D],z=0;z<Q;)B[U++]=N>>>z&255,z+=b.bits;L[D]=N>>>z&255}}if(b.bits===16){k=(T=new Uint32Array(b.decodePixels().buffer)).length,B=new Uint8Array(k*(32/b.pixelBitlength)*b.colors),L=new Uint8Array(k*(32/b.pixelBitlength)),j=b.colors>1,D=0,U=0;for(var Z=0;D<k;)N=T[D++],B[U++]=N>>>0&255,j&&(B[U++]=N>>>16&255,N=T[D++],B[U++]=N>>>0&255),L[Z++]=N>>>16&255;y=8}p!==e.image_compression.NONE&&t()?(d=r(B,b.width*b.colors,b.colors,p),P=r(L,b.width,1,p)):(d=B,P=L,W=void 0)}if(b.colorType===3&&(v=this.color_spaces.INDEXED,A=b.palette,b.transparency.indexed)){var ee=b.transparency.indexed,ce=0;for(D=0,k=ee.length;D<k;++D)ce+=ee[D];if((ce/=255)===k-1&&ee.indexOf(0)!==-1)_=[ee.indexOf(0)];else if(ce!==k){for(T=b.decodePixels(),L=new Uint8Array(T.length),D=0,k=T.length;D<k;D++)L[D]=ee[T[D]];P=r(L,b.width,1)}}var O=(function(I){var M;switch(I){case e.image_compression.FAST:M=11;break;case e.image_compression.MEDIUM:M=13;break;case e.image_compression.SLOW:M=14;break;default:M=12}return M})(p);return W===this.decode.FLATE_DECODE&&(R="/Predictor "+O+" "),R+="/Colors "+S+" /BitsPerComponent "+y+" /Columns "+b.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(P&&this.__addimage__.isArrayBuffer(P)||this.__addimage__.isArrayBufferView(P))&&(P=this.__addimage__.arrayBufferToBinaryString(P)),{alias:g,data:d,index:h,filter:W,decodeParameters:R,transparency:_,palette:A,sMask:P,predictor:O,width:b.width,height:b.height,bitsPerComponent:y,colorSpace:v}}}})(xt.API),(function(e){e.processGIF89A=function(t,r,n,i){var a=new rL(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new q1(100).encode(c,100);return e.processJPEG.call(this,u,r,n,i)},e.processGIF87A=e.processGIF89A})(xt.API),la.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},la.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){Tr.log("bit decode error:"+r)}},la.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}r!==0&&(this.pos+=4-r)}},la.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},la.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},la.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},la.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},la.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},la.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},la.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,i){var a=new la(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new q1(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}})(xt.API),vw.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,i){var a=new vw(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new q1(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}})(xt.API),xt.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=n[c],f=n[c+1],d=n[c+2],h=n[c+3];a[s++]=u,a[s++]=f,a[s++]=d,o[l++]=h}var g=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:g,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},xt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Il=xt.API,d0=Il.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=t.doKerning!==!1,d=0,h=e.length,g=0,p=s[0]||l,v=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/a)||0)/1e3):(d=f&&cr(c[n])==="object"&&!isNaN(parseInt(c[n][g],10))?c[n][g]/u:0,v.push((s[n]||p)/l+d)),g=n;return v},hw=Il.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Il.processArabic&&(e=Il.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:d0.apply(this,arguments).reduce((function(a,o){return a+o}),0)},dw=function(e,t,r,n){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<r;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>n&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},pw=function(e,t,r){r||(r={});var n,i,a,o,s,l,c,u=[],f=[u],d=r.textIndent||0,h=0,g=0,p=e.split(" "),v=d0.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),b=[];p.map((function(S){(S=S.split(/\s*\n/)).length>1?b=b.concat(S.map((function(A,P){return(P&&A.length?`
214
+ `:"")+A}))):b.push(S[0])})),p=b,l=hw.apply(this,[y,r])}for(a=0,o=p.length;a<o;a++){var _=0;if(n=p[a],l&&n[0]==`
215
+ `&&(n=n.substr(1),_=1),d+h+(g=(i=d0.apply(this,[n,r])).reduce((function(S,A){return S+A}),0))>t||_){if(g>t){for(s=dw.apply(this,[n,i,t-(d+h),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);g=i.slice(n.length-(u[0]?u[0].length:0)).reduce((function(S,A){return S+A}),0)}else u=[n];f.push(u),d=g+l,h=v}else u.push(n),d+=h+g,h=v}return c=l?function(S,A){return(A?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},Il.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle);return f.metadata.Unicode?{widths:f.metadata.Unicode.widths||{0:1},kerning:f.metadata.Unicode.kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(pw.apply(this,[n[s],o,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},i=0;i<t.length;i++)r[t[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=t[i];var a=function(f){return"0x"+parseInt(f,10).toString(16)},o=e.__fontmetrics__.compress=function(f){var d,h,g,p,v=["{"];for(var y in f){if(d=f[y],isNaN(parseInt(y,10))?h="'"+y+"'":(y=parseInt(y,10),h=(h=a(y).slice(2)).slice(0,-1)+n[h.slice(-1)]),typeof d=="number")d<0?(g=a(d).slice(3),p="-"):(g=a(d).slice(2),p=""),g=p+g.slice(0,-1)+n[g.slice(-1)];else{if(cr(d)!=="object")throw new Error("Don't know what to do with value type "+cr(d)+".");g=o(d)}v.push(h+g)}return v.push("}"),v.join("")},s=e.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,h,g,p,v={},y=1,b=v,_=[],S="",A="",P=f.length-1,T=1;T<P;T+=1)(p=f[T])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(p):p=="{"?(_.push([b,g]),b={},g=void 0):p=="}"?((h=_.pop())[0][h[1]]=b,g=void 0,b=h[0]):p=="-"?y=-1:g===void 0?r.hasOwnProperty(p)?(S+=r[p],g=parseInt(S,16)*y,y=1,S=""):S+=p:r.hasOwnProperty(p)?(A+=r[p],b[g]=parseInt(A,16)*y,y=1,g=void 0,A=""):A+=p;return v},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(f){var d=f.font,h=u.Unicode[d.postScriptName];h&&(d.metadata.Unicode={},d.metadata.Unicode.widths=h.widths,d.metadata.Unicode.kerning=h.kerning);var g=c.Unicode[d.postScriptName];g&&(d.metadata.Unicode.encoding=g,d.encoding=g.codePages[0])}])})(xt.API),(function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=r.charCodeAt(a);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Hu(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])})(xt),(function(e){function t(){return(Pt.canvg?Promise.resolve(Pt.canvg):Promise.resolve().then(()=>require("./index.es-BhWB2cC4.js"))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}xt.API.addSvgAsImage=function(r,n,i,a,o,s,l,c){if(isNaN(n)||isNaN(i))throw Tr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw Tr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=a,u.height=o;var f=u.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,u.width,u.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return t().then((function(g){return g.fromString(f,r,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(g){return g.render(d)})).then((function(){h.addImage(u.toDataURL("image/jpeg",1),n,i,a,o,l,c)}))}})(),xt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},xt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function d(g,p){var v,y=!1;for(v=0;v<g.length;v+=1)g[v]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(f=0;f<h;f+=1)r[s[f]].value=r[s[f]].defaultValue,r[s[f]].explicitSet=!1}if(cr(e)==="object"){for(i in e)if(a=e[i],d(s,i)&&a!==void 0){if(r[i].type==="boolean"&&typeof a=="boolean")r[i].value=a;else if(r[i].type==="name"&&d(r[i].valueSet,a))r[i].value=a;else if(r[i].type==="integer"&&Number.isInteger(a))r[i].value=a;else if(r[i].type==="array"){for(c=0;c<a.length;c+=1)if(n=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(n=!1);n===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var g,p=[];for(g in r)r[g].explicitSet===!0&&(r[g].type==="name"?p.push("/"+g+" /"+r[g].value):p.push("/"+g+" "+r[g].value));p.length!==0&&this.internal.write(`/ViewerPreferences
216
+ <<
217
+ `+p.join(`
218
+ `)+`
219
+ >>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+o.length+s.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+a+o+s+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}})(xt.API),(function(e){var t=e.API,r=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],f=0,d=a.length;f<d;++f){if(s=o.metadata.characterToGlyph(a.charCodeAt(f)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(f),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},n=function(a){var o,s,l,c,u,f,d;for(u=`/CIDInit /ProcSet findresource begin
220
+ 12 dict begin
221
+ begincmap
222
+ /CIDSystemInfo <<
223
+ /Registry (Adobe)
224
+ /Ordering (UCS)
225
+ /Supplement 0
226
+ >> def
227
+ /CMapName /Adobe-Identity-UCS def
228
+ /CMapType 2 def
229
+ 1 begincodespacerange
230
+ <0000><ffff>
231
+ endcodespacerange`,l=[],f=0,d=(s=Object.keys(a).sort((function(h,g){return h-g}))).length;f<d;f++)o=s[f],l.length>=100&&(u+=`
232
+ `+l.length+` beginbfchar
233
+ `+l.join(`
234
+ `)+`
235
+ endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(c=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=`
236
+ `+l.length+` beginbfchar
237
+ `+l.join(`
238
+ `)+`
239
+ endbfchar
240
+ `),u+=`endcmap
241
+ CMapName currentdict /CMap defineresource pop
242
+ end
243
+ end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var f=s.metadata.Unicode.widths,d=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",g=0;g<d.length;g++)h+=String.fromCharCode(d[g]);var p=c();u({data:h,addLength1:!0,objectId:p}),l("endobj");var v=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Gl(s.fontName)),l("/FontFile2 "+p+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var b=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+Gl(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(f)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+v+" 0 R"),l("/BaseFont /"+Gl(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+b+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var f=s.metadata.rawData,d="",h=0;h<f.length;h++)d+=String.fromCharCode(f[h]);var g=c();u({data:d,addLength1:!0,objectId:g}),l("endobj");var p=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var v=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+g+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+Gl(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+Gl(s.fontName)+"/FontDescriptor "+v+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",l=a.x,c=a.y,u=a.options||{},f=a.mutex||{},d=f.pdfEscape,h=f.activeFontKey,g=f.fonts,p=h,v="",y=0,b="",_=g[p].encoding;if(g[p].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:f};for(b=s,p=h,Array.isArray(s)&&(b=s[0]),y=0;y<b.length;y+=1)g[p].metadata.hasOwnProperty("cmap")&&(o=g[p].metadata.cmap.unicode.codeMap[b[y].charCodeAt(0)]),o||b[y].charCodeAt(0)<256&&g[p].metadata.hasOwnProperty("Unicode")?v+=b[y]:v+="";var S="";return parseInt(p.slice(1))<14||_==="WinAnsiEncoding"?S=d(v,p).split("").map((function(A){return A.charCodeAt(0).toString(16)})).join(""):_==="Identity-H"&&(S=r(v,g[p])),f.isHex=!0,{text:S,x:l,y:c,options:u,mutex:f}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(i(Object.assign({},l,{text:o[c]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])})(xt),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(xt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,o,s,l,c,u,f=t,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],g={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},v=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),b=!1,_=0;this.__bidiEngine__={};var S=function(j){var N=j.charCodeAt(),D=N>>8,U=p[D];return U!==void 0?f[256*U+(255&N)]:D===252||D===253?"AL":y.test(D)?"L":D===8?"R":"N"},A=function(j){for(var N,D=0;D<j.length;D++){if((N=S(j.charAt(D)))==="L")return!1;if(N==="R")return!0}return!1},P=function(j,N,D,U){var W,R,z,Q,Z=N[U];switch(Z){case"L":case"R":b=!1;break;case"N":case"AN":break;case"EN":b&&(Z="AN");break;case"AL":b=!0,Z="R";break;case"WS":Z="N";break;case"CS":U<1||U+1>=N.length||(W=D[U-1])!=="EN"&&W!=="AN"||(R=N[U+1])!=="EN"&&R!=="AN"?Z="N":b&&(R="AN"),Z=R===W?R:"N";break;case"ES":Z=(W=U>0?D[U-1]:"B")==="EN"&&U+1<N.length&&N[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&D[U-1]==="EN"){Z="EN";break}if(b){Z="N";break}for(z=U+1,Q=N.length;z<Q&&N[z]==="ET";)z++;Z=z<Q&&N[z]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(Q=N.length,z=U+1;z<Q&&N[z]==="NSM";)z++;if(z<Q){var ee=j[U],ce=ee>=1425&&ee<=2303||ee===64286;if(W=N[z],ce&&(W==="R"||W==="AL")){Z="R";break}}}Z=U<1||(W=N[U-1])==="B"?"N":D[U-1];break;case"B":b=!1,i=!0,Z=_;break;case"S":a=!0,Z="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"BN":Z="N"}return Z},T=function(j,N,D){var U=j.split("");return D&&k(U,D,{hiLevel:_}),U.reverse(),N&&N.reverse(),U.join("")},k=function(j,N,D){var U,W,R,z,Q,Z=-1,ee=j.length,ce=0,O=[],I=_?h:d,M=[];for(b=!1,i=!1,a=!1,W=0;W<ee;W++)M[W]=S(j[W]);for(R=0;R<ee;R++){if(Q=ce,O[R]=P(j,M,O,R),U=240&(ce=I[Q][g[O[R]]]),ce&=15,N[R]=z=I[ce][5],U>0)if(U===16){for(W=Z;W<R;W++)N[W]=1;Z=-1}else Z=-1;if(I[ce][6])Z===-1&&(Z=R);else if(Z>-1){for(W=Z;W<R;W++)N[W]=z;Z=-1}M[R]==="B"&&(N[R]=0),D.hiLevel|=z}a&&(function(q,Y,fe){for(var ae=0;ae<fe;ae++)if(q[ae]==="S"){Y[ae]=_;for(var ne=ae-1;ne>=0&&q[ne]==="WS";ne--)Y[ne]=_}})(M,N,ee)},L=function(j,N,D,U,W){if(!(W.hiLevel<j)){if(j===1&&_===1&&!i)return N.reverse(),void(D&&D.reverse());for(var R,z,Q,Z,ee=N.length,ce=0;ce<ee;){if(U[ce]>=j){for(Q=ce+1;Q<ee&&U[Q]>=j;)Q++;for(Z=ce,z=Q-1;Z<z;Z++,z--)R=N[Z],N[Z]=N[z],N[z]=R,D&&(R=D[Z],D[Z]=D[z],D[z]=R);ce=Q}ce++}}},B=function(j,N,D){var U=j.split(""),W={hiLevel:_};return D||(D=[]),k(U,D,W),(function(R,z,Q){if(Q.hiLevel!==0&&u)for(var Z,ee=0;ee<R.length;ee++)z[ee]===1&&(Z=v.indexOf(R[ee]))>=0&&(R[ee]=v[Z+1])})(U,D,W),L(2,U,N,D,W),L(1,U,N,D,W),U.join("")};return this.__bidiEngine__.doBidiReorder=function(j,N,D){if((function(W,R){if(R)for(var z=0;z<W.length;z++)R[z]=z;s===void 0&&(s=A(W)),c===void 0&&(c=A(W))})(j,N),o||!l||c)if(o&&l&&s^c)_=s?1:0,j=T(j,N,D);else if(!o&&l&&c)_=s?1:0,j=B(j,N,D),j=T(j,N);else if(!o||s||l||c){if(o&&!l&&s^c)j=T(j,N),s?(_=0,j=B(j,N,D)):(_=1,j=B(j,N,D),j=T(j,N));else if(o&&s&&!l&&c)_=1,j=B(j,N,D),j=T(j,N);else if(!o&&!l&&s^c){var U=u;s?(_=1,j=B(j,N,D),_=0,u=!1,j=B(j,N,D),u=U):(_=0,j=B(j,N,D),j=T(j,N),_=1,u=!1,j=B(j,N,D),u=U,j=T(j,N))}}else _=0,j=B(j,N,D);else _=s?1:0,j=B(j,N,D);return j},this.__bidiEngine__.setOptions=function(j){j&&(o=j.isInputVisual,l=j.isOutputVisual,s=j.isInputRtl,c=j.isOutputRtl,u=j.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text,a=(n.x,n.y,n.options||{}),o=(n.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,r.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([r.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([r.doBidiReorder(i[s])]);n.text=o}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])})(xt),xt.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new os(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new gL(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new nL(this.contents),this.head=new aL(this),this.name=new uL(this),this.cmap=new UN(this),this.toUnicode={},this.hhea=new oL(this),this.maxp=new fL(this),this.hmtx=new hL(this),this.post=new lL(this),this.os2=new sL(this),this.loca=new vL(this),this.glyf=new dL(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),(32768&(r=i>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return o*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e})();var Sa,os=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,a,o,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*a+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,a;for(a=[],n=0,i=t.length;n<i;n++)r=t[n],a.push(this.writeByte(r));return a},e})(),nL=(function(){var e;function t(r){var n,i,a;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,a,o,s,l,c,u,f,d,h,g,p;for(p in h=Object.keys(r).length,l=Math.log(2),f=16*Math.floor(Math.log(h)/l),o=Math.floor(f/l),u=16*h-f,(i=new os).writeInt(this.scalarType),i.writeShort(h),i.writeShort(f),i.writeShort(o),i.writeShort(u),a=16*h,c=i.pos+a,s=null,g=[],r)for(d=r[p],i.writeString(p),i.writeInt(e(d)),i.writeInt(c),i.writeInt(d.length),g=g.concat(d),p==="head"&&(s=c),c+=d.length;c%4;)g.push(0),c++;return i.write(g),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(r){var n,i,a,o;for(r=zN.call(r);r.length%4;)r.push(0);for(a=new os(r),i=0,n=0,o=r.length;n<o;n=n+=4)i+=a.readUInt32();return 4294967295&i},t})(),iL={}.hasOwnProperty,Ua=function(e,t){for(var r in t)iL.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Sa=(function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var aL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="head",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},t.prototype.encode=function(r){var n;return(n=new os).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(r),n.writeShort(this.glyphDataFormat),n.data},t})(),gw=(function(){function e(t,r){var n,i,a,o,s,l,c,u,f,d,h,g,p,v,y,b,_;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),f=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(h=t.readUInt16(),d=h/2,t.pos+=6,a=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),t.pos+=2,p=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),c=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),u=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),i=(this.length-t.pos+this.offset)/2,s=(function(){var S,A;for(A=[],l=S=0;0<=i?S<i:S>i;l=0<=i?++S:--S)A.push(t.readUInt16());return A})(),l=y=0,_=a.length;y<_;l=++y)for(v=a[l],n=b=g=p[l];g<=v?b<=v:b>=v;n=g<=v?++b:--b)u[l]===0?o=n+c[l]:(o=s[u[l]/2+(n-g)-(d-l)]||0)!==0&&(o+=c[l]),this.codeMap[n]=65535&o}t.pos=f}return e.encode=function(t,r){var n,i,a,o,s,l,c,u,f,d,h,g,p,v,y,b,_,S,A,P,T,k,L,B,j,N,D,U,W,R,z,Q,Z,ee,ce,O,I,M,q,Y,fe,ae,ne,ve,we,se;switch(U=new os,o=Object.keys(t).sort((function(Fe,Ae){return Fe-Ae})),r){case"macroman":for(p=0,v=(function(){var Fe=[];for(g=0;g<256;++g)Fe.push(0);return Fe})(),b={0:0},a={},W=0,Z=o.length;W<Z;W++)b[ne=t[i=o[W]]]==null&&(b[ne]=++p),a[i]={old:t[i],new:b[t[i]]},v[i]=b[t[i]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(v),{charMap:a,subtable:U.data,maxGlyphID:p+1};case"unicode":for(N=[],f=[],_=0,b={},n={},y=c=null,R=0,ee=o.length;R<ee;R++)b[A=t[i=o[R]]]==null&&(b[A]=++_),n[i]={old:A,new:b[A]},s=b[A]-i,y!=null&&s===c||(y&&f.push(y),N.push(i),c=s),y=i;for(y&&f.push(y),f.push(65535),N.push(65535),B=2*(L=N.length),k=2*Math.pow(Math.log(L)/Math.LN2,2),d=Math.log(k/2)/Math.LN2,T=2*L-k,l=[],P=[],h=[],g=z=0,ce=N.length;z<ce;g=++z){if(j=N[g],u=f[g],j===65535){l.push(0),P.push(0);break}if(j-(D=n[j].new)>=32768)for(l.push(0),P.push(2*(h.length+L-g)),i=Q=j;j<=u?Q<=u:Q>=u;i=j<=u?++Q:--Q)h.push(n[i].new);else l.push(D-j),P.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*L+2*h.length),U.writeUInt16(0),U.writeUInt16(B),U.writeUInt16(k),U.writeUInt16(d),U.writeUInt16(T),fe=0,O=f.length;fe<O;fe++)i=f[fe],U.writeUInt16(i);for(U.writeUInt16(0),ae=0,I=N.length;ae<I;ae++)i=N[ae],U.writeUInt16(i);for(ve=0,M=l.length;ve<M;ve++)s=l[ve],U.writeUInt16(s);for(we=0,q=P.length;we<q;we++)S=P[we],U.writeUInt16(S);for(se=0,Y=h.length;se<Y;se++)p=h[se],U.writeUInt16(p);return{charMap:n,subtable:U.data,maxGlyphID:_+1}}},e})(),UN=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="cmap",t.prototype.parse=function(r){var n,i,a;for(r.pos=this.offset,this.version=r.readUInt16(),a=r.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)n=new gw(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(r,n){var i,a;return n==null&&(n="macroman"),i=gw.encode(r,n),(a=new os).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t})(),oL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="hhea",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},t})(),sL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="OS/2",t.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=(function(){var n,i;for(i=[],n=0;n<10;++n)i.push(r.readByte());return i})(),this.charRange=(function(){var n,i;for(i=[],n=0;n<4;++n)i.push(r.readInt());return i})(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=(function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(r.readInt());return i})(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},t})(),lL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="post",t.prototype.parse=function(r){var n,i,a;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var o;for(i=r.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],a=[];r.pos<this.offset+this.length;)n=r.readByte(),a.push(this.names.push(r.readString(n)));return a;case 151552:return i=r.readUInt16(),this.offsets=r.read(i);case 196608:break;case 262144:return this.map=(function(){var s,l,c;for(c=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)c.push(r.readUInt32());return c}).call(this)}},t})(),cL=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},uL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="name",t.prototype.parse=function(r){var n,i,a,o,s,l,c,u,f,d,h;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),i=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)i.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(c={},o=f=0,d=i.length;f<d;o=++f)a=i[o],r.pos=a.offset,u=r.readString(a.length),s=new cL(u,a),c[h=a.nameID]==null&&(c[h]=[]),c[a.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t})(),fL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="maxp",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},t})(),hL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,i,a,o,s,l,c;for(r.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var u,f;for(f=[],n=u=0;0<=a?u<a:u>a;n=0<=a?++u:--u)f.push(r.readInt16());return f})(),this.widths=(function(){var u,f,d,h;for(h=[],u=0,f=(d=this.metrics).length;u<f;u++)o=d[u],h.push(o.advance);return h}).call(this),i=this.widths[this.widths.length-1],c=[],n=s=0;0<=a?s<a:s>a;n=0<=a?++s:--s)c.push(this.widths.push(i));return c},t.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},t})(),zN=[].slice,dL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,i,a,o,s,l,c,u,f,d;return r in this.cache?this.cache[r]:(o=this.file.loca,n=this.file.contents,i=o.indexOf(r),(a=o.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+i,s=(l=new os(n.read(a))).readShort(),u=l.readShort(),d=l.readShort(),c=l.readShort(),f=l.readShort(),this.cache[r]=s===-1?new mL(l,u,d,c,f):new pL(l,s,u,d,c,f),this.cache[r]))},t.prototype.encode=function(r,n,i){var a,o,s,l,c;for(s=[],o=[],l=0,c=n.length;l<c;l++)a=r[n[l]],o.push(s.length),a&&(s=s.concat(a.encode(i)));return o.push(s.length),{table:s,offsets:o}},t})(),pL=(function(){function e(t,r,n,i,a,o){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),mL=(function(){function e(t,r,n,i,a){var o,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new os(zN.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),vL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="loca",t.prototype.parse=function(r){var n,i;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=2)o.push(2*r.readUInt16());return o}).call(this):(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=4)o.push(r.readUInt32());return o}).call(this)},t.prototype.indexOf=function(r){return this.offsets[r]},t.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},t.prototype.encode=function(r,n){for(var i=new Uint32Array(this.offsets.length),a=0,o=0,s=0;s<i.length;++s)if(i[s]=a,o<n.length&&n[o]==s){++o,i[s]=a;var l=this.offsets[s],c=this.offsets[s+1]-l;c>0&&(a+=c)}for(var u=new Array(4*i.length),f=0;f<i.length;++f)u[4*f+3]=255&i[f],u[4*f+2]=(65280&i[f])>>8,u[4*f+1]=(16711680&i[f])>>16,u[4*f]=(4278190080&i[f])>>24;return u},t})(),gL=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,a;for(r in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)n=a[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,a,o,s,l;for(i={},o=0,s=t.length;o<s;o++)i[a=t[o]]=this.font.glyf.glyphFor(a);for(a in r=[],i)(n=i[a])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(a in l=this.glyphsFor(r))n=l[a],i[a]=n;return i},e.prototype.encode=function(t,r){var n,i,a,o,s,l,c,u,f,d,h,g,p,v,y;for(i in n=UN.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},y=n.charMap)h[(l=y[i]).old]=l.new;for(g in d=n.maxGlyphID,o)g in h||(h[g]=d++);return u=(function(b){var _,S;for(_ in S={},b)S[b[_]]=_;return S})(h),f=Object.keys(u).sort((function(b,_){return b-_})),p=(function(){var b,_,S;for(S=[],b=0,_=f.length;b<_;b++)s=f[b],S.push(u[s]);return S})(),a=this.font.glyf.encode(o,p,h),c=this.font.loca.encode(a.offsets,p),v={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(v["OS/2"]=this.font.os2.raw()),this.font.directory.encode(v)},e})();xt.API.PDFObject=(function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+(function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(t.convert(n));return c})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+t.convert(o));return a.push(">>"),a.join(`
244
+ `)}return""+r},t})();const xL=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:Kk,AcroFormAppearance:dt,AcroFormButton:dn,AcroFormCheckBox:Yu,AcroFormChoiceField:Bs,AcroFormComboBox:qs,AcroFormEditBox:Gu,AcroFormListBox:$s,AcroFormPasswordField:Ku,AcroFormPushButton:Vu,AcroFormRadioButton:Us,AcroFormTextField:ts,GState:ff,ShadingPattern:Ko,TilingPattern:Ls,default:xt,jsPDF:xt},Symbol.toStringTag,{value:"Module"}));var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yL(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var $0={exports:{}};const bL=yL(xL);/*!
245
+ *
246
+ * jsPDF AutoTable plugin v3.8.4
247
+ *
248
+ * Copyright (c) 2024 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
249
+ * Licensed under the MIT License.
250
+ * http://opensource.org/licenses/mit-license
251
+ *
252
+ */var xw=$0.exports,yw;function wL(){return yw||(yw=1,(function(e,t){(function(n,i){e.exports=i((function(){try{return bL}catch{}})())})(typeof globalThis<"u"?globalThis:typeof xw<"u"?xw:typeof window<"u"?window:typeof self<"u"?self:Yl,function(r){return(function(){var n={172:(function(s,l){var c=this&&this.__extends||(function(){var d=function(h,g){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(p[y]=v[y])},d(h,g)};return function(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");d(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.CellHookData=l.HookData=void 0;var u=(function(){function d(h,g,p){this.table=g,this.pageNumber=g.pageNumber,this.pageCount=this.pageNumber,this.settings=g.settings,this.cursor=p,this.doc=h.getDocument()}return d})();l.HookData=u;var f=(function(d){c(h,d);function h(g,p,v,y,b,_){var S=d.call(this,g,p,_)||this;return S.cell=v,S.row=y,S.column=b,S.section=y.section,S}return h})(u);l.CellHookData=f}),340:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=c(4),f=c(136),d=c(744),h=c(776),g=c(664),p=c(972);function v(y){y.API.autoTable=function(){for(var b=[],_=0;_<arguments.length;_++)b[_]=arguments[_];var S;b.length===1?S=b[0]:(console.error("Use of deprecated autoTable initiation"),S=b[2]||{},S.columns=b[0],S.body=b[1]);var A=(0,h.parseInput)(this,S),P=(0,p.createTable)(this,A);return(0,g.drawTable)(this,P),this},y.API.lastAutoTable=!1,y.API.previousAutoTable=!1,y.API.autoTable.previous=!1,y.API.autoTableText=function(b,_,S,A){(0,f.default)(b,_,S,A,this)},y.API.autoTableSetDefaults=function(b){return d.DocHandler.setDefaults(b,this),this},y.autoTableSetDefaults=function(b,_){d.DocHandler.setDefaults(b,_)},y.API.autoTableHtmlToJson=function(b,_){var S;if(_===void 0&&(_=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var A=new d.DocHandler(this),P=(0,u.parseHtml)(A,b,window,_,!1),T=P.head,k=P.body,L=((S=T[0])===null||S===void 0?void 0:S.map(function(B){return B.content}))||[];return{columns:L,rows:k,data:k}},y.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var b=this.lastAutoTable;return b&&b.finalY?b.finalY:0},y.API.autoTableAddPageContent=function(b){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),y.API.autoTable.globalDefaults||(y.API.autoTable.globalDefaults={}),y.API.autoTable.globalDefaults.addPageContent=b,this},y.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}l.default=v}),136:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(u,f,d,h,g){h=h||{};var p=1.15,v=g.internal.scaleFactor,y=g.internal.getFontSize()/v,b=g.getLineHeightFactor?g.getLineHeightFactor():p,_=y*b,S=/\r\n|\r|\n/g,A="",P=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(A=typeof u=="string"?u.split(S):u,P=A.length||1),d+=y*(2-p),h.valign==="middle"?d-=P/2*_:h.valign==="bottom"&&(d-=P*_),h.halign==="center"||h.halign==="right"){var T=y;if(h.halign==="center"&&(T*=.5),A&&P>=1){for(var k=0;k<A.length;k++)g.text(A[k],f-g.getStringUnitWidth(A[k])*T,d),d+=_;return g}f-=g.getStringUnitWidth(u)*T}return h.halign==="justify"?g.text(u,f,d,{maxWidth:h.maxWidth||100,align:"justify"}):g.text(u,f,d),g}l.default=c}),420:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getPageAvailableWidth=l.parseSpacing=l.getFillStyle=l.addTableBorder=l.getStringWidth=void 0;function c(g,p,v){v.applyStyles(p,!0);var y=Array.isArray(g)?g:[g],b=y.map(function(_){return v.getTextWidth(_)}).reduce(function(_,S){return Math.max(_,S)},0);return b}l.getStringWidth=c;function u(g,p,v,y){var b=p.settings.tableLineWidth,_=p.settings.tableLineColor;g.applyStyles({lineWidth:b,lineColor:_});var S=f(b,!1);S&&g.rect(v.x,v.y,p.getWidth(g.pageSize().width),y.y-v.y,S)}l.addTableBorder=u;function f(g,p){var v=g>0,y=p||p===0;return v&&y?"DF":v?"S":y?"F":null}l.getFillStyle=f;function d(g,p){var v,y,b,_;if(g=g||p,Array.isArray(g)){if(g.length>=4)return{top:g[0],right:g[1],bottom:g[2],left:g[3]};if(g.length===3)return{top:g[0],right:g[1],bottom:g[2],left:g[1]};if(g.length===2)return{top:g[0],right:g[1],bottom:g[0],left:g[1]};g.length===1?g=g[0]:g=p}return typeof g=="object"?(typeof g.vertical=="number"&&(g.top=g.vertical,g.bottom=g.vertical),typeof g.horizontal=="number"&&(g.right=g.horizontal,g.left=g.horizontal),{left:(v=g.left)!==null&&v!==void 0?v:p,top:(y=g.top)!==null&&y!==void 0?y:p,right:(b=g.right)!==null&&b!==void 0?b:p,bottom:(_=g.bottom)!==null&&_!==void 0?_:p}):(typeof g!="number"&&(g=p),{top:g,right:g,bottom:g,left:g})}l.parseSpacing=d;function h(g,p){var v=d(p.settings.margin,0);return g.pageSize().width-(v.left+v.right)}l.getPageAvailableWidth=h}),796:(function(s,l){var c=this&&this.__extends||(function(){var h=function(g,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])},h(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(g,p);function v(){this.constructor=g}g.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.getTheme=l.defaultStyles=l.HtmlRowInput=void 0;var u=(function(h){c(g,h);function g(p){var v=h.call(this)||this;return v._element=p,v}return g})(Array);l.HtmlRowInput=u;function f(h){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/h,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}l.defaultStyles=f;function d(h){var g={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return g[h]}l.getTheme=d}),903:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseCss=void 0;var u=c(420);function f(v,y,b,_,S){var A={},P=1.3333333333333333,T=h(y,function(Z){return S.getComputedStyle(Z).backgroundColor});T!=null&&(A.fillColor=T);var k=h(y,function(Z){return S.getComputedStyle(Z).color});k!=null&&(A.textColor=k);var L=p(_,b);L&&(A.cellPadding=L);var B="borderTopColor",j=P*b,N=_.borderTopWidth;if(_.borderBottomWidth===N&&_.borderRightWidth===N&&_.borderLeftWidth===N){var D=(parseFloat(N)||0)/j;D&&(A.lineWidth=D)}else A.lineWidth={top:(parseFloat(_.borderTopWidth)||0)/j,right:(parseFloat(_.borderRightWidth)||0)/j,bottom:(parseFloat(_.borderBottomWidth)||0)/j,left:(parseFloat(_.borderLeftWidth)||0)/j},A.lineWidth.top||(A.lineWidth.right?B="borderRightColor":A.lineWidth.bottom?B="borderBottomColor":A.lineWidth.left&&(B="borderLeftColor"));var U=h(y,function(Z){return S.getComputedStyle(Z)[B]});U!=null&&(A.lineColor=U);var W=["left","right","center","justify"];W.indexOf(_.textAlign)!==-1&&(A.halign=_.textAlign),W=["middle","bottom","top"],W.indexOf(_.verticalAlign)!==-1&&(A.valign=_.verticalAlign);var R=parseInt(_.fontSize||"");isNaN(R)||(A.fontSize=R/P);var z=d(_);z&&(A.fontStyle=z);var Q=(_.fontFamily||"").toLowerCase();return v.indexOf(Q)!==-1&&(A.font=Q),A}l.parseCss=f;function d(v){var y="";return(v.fontWeight==="bold"||v.fontWeight==="bolder"||parseInt(v.fontWeight)>=700)&&(y="bold"),(v.fontStyle==="italic"||v.fontStyle==="oblique")&&(y+="italic"),y}function h(v,y){var b=g(v,y);if(!b)return null;var _=b.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!_||!Array.isArray(_))return null;var S=[parseInt(_[1]),parseInt(_[2]),parseInt(_[3])],A=parseInt(_[4]);return A===0||isNaN(S[0])||isNaN(S[1])||isNaN(S[2])?null:S}function g(v,y){var b=y(v);return b==="rgba(0, 0, 0, 0)"||b==="transparent"||b==="initial"||b==="inherit"?v.parentElement==null?null:g(v.parentElement,y):b}function p(v,y){var b=[v.paddingTop,v.paddingRight,v.paddingBottom,v.paddingLeft],_=96/(72/y),S=(parseInt(v.lineHeight)-parseInt(v.fontSize))/y/2,A=b.map(function(T){return parseInt(T||"0")/_}),P=(0,u.parseSpacing)(A,0);return S>P.top&&(P.top=S),S>P.bottom&&(P.bottom=S),P}}),744:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DocHandler=void 0;var c={},u=(function(){function f(d){this.jsPDFDocument=d,this.userStyles={textColor:d.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:d.internal.getFontSize(),fontStyle:d.internal.getFont().fontStyle,font:d.internal.getFont().fontName,lineWidth:d.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:d.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return f.setDefaults=function(d,h){h===void 0&&(h=null),h?h.__autoTableDocumentDefaults=d:c=d},f.unifyColor=function(d){return Array.isArray(d)?d:typeof d=="number"?[d,d,d]:typeof d=="string"?[d]:null},f.prototype.applyStyles=function(d,h){var g,p,v;h===void 0&&(h=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var y=this.jsPDFDocument.internal.getFont(),b=y.fontStyle,_=y.fontName;if(d.font&&(_=d.font),d.fontStyle){b=d.fontStyle;var S=this.getFontList()[_];S&&S.indexOf(b)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(S[0]),b=S[0])}if(this.jsPDFDocument.setFont(_,b),d.fontSize&&this.jsPDFDocument.setFontSize(d.fontSize),!h){var A=f.unifyColor(d.fillColor);A&&(g=this.jsPDFDocument).setFillColor.apply(g,A),A=f.unifyColor(d.textColor),A&&(p=this.jsPDFDocument).setTextColor.apply(p,A),A=f.unifyColor(d.lineColor),A&&(v=this.jsPDFDocument).setDrawColor.apply(v,A),typeof d.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(d.lineWidth)}},f.prototype.splitTextToSize=function(d,h,g){return this.jsPDFDocument.splitTextToSize(d,h,g)},f.prototype.rect=function(d,h,g,p,v){return this.jsPDFDocument.rect(d,h,g,p,v)},f.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},f.prototype.getTextWidth=function(d){return this.jsPDFDocument.getTextWidth(d)},f.prototype.getDocument=function(){return this.jsPDFDocument},f.prototype.setPage=function(d){this.jsPDFDocument.setPage(d)},f.prototype.addPage=function(){return this.jsPDFDocument.addPage()},f.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},f.prototype.getGlobalOptions=function(){return c||{}},f.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},f.prototype.pageSize=function(){var d=this.jsPDFDocument.internal.pageSize;return d.width==null&&(d={width:d.getWidth(),height:d.getHeight()}),d},f.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},f.prototype.getLineHeightFactor=function(){var d=this.jsPDFDocument;return d.getLineHeightFactor?d.getLineHeightFactor():1.15},f.prototype.getLineHeight=function(d){return d/this.scaleFactor()*this.getLineHeightFactor()},f.prototype.pageNumber=function(){var d=this.jsPDFDocument.internal.getCurrentPageInfo();return d?d.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},f})();l.DocHandler=u}),4:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseHtml=void 0;var u=c(903),f=c(796);function d(p,v,y,b,_){var S,A;b===void 0&&(b=!1),_===void 0&&(_=!1);var P;typeof v=="string"?P=y.document.querySelector(v):P=v;var T=Object.keys(p.getFontList()),k=p.scaleFactor(),L=[],B=[],j=[];if(!P)return console.error("Html table could not be found with input: ",v),{head:L,body:B,foot:j};for(var N=0;N<P.rows.length;N++){var D=P.rows[N],U=(A=(S=D==null?void 0:D.parentElement)===null||S===void 0?void 0:S.tagName)===null||A===void 0?void 0:A.toLowerCase(),W=h(T,k,y,D,b,_);W&&(U==="thead"?L.push(W):U==="tfoot"?j.push(W):B.push(W))}return{head:L,body:B,foot:j}}l.parseHtml=d;function h(p,v,y,b,_,S){for(var A=new f.HtmlRowInput(b),P=0;P<b.cells.length;P++){var T=b.cells[P],k=y.getComputedStyle(T);if(_||k.display!=="none"){var L=void 0;S&&(L=(0,u.parseCss)(p,T,v,k,y)),A.push({rowSpan:T.rowSpan,colSpan:T.colSpan,styles:L,_element:T,content:g(T)})}}var B=y.getComputedStyle(b);if(A.length>0&&(_||B.display!=="none"))return A}function g(p){var v=p.cloneNode(!0);return v.innerHTML=v.innerHTML.replace(/\n/g,"").replace(/ +/g," "),v.innerHTML=v.innerHTML.split(/<br.*?>/).map(function(y){return y.trim()}).join(`
253
+ `),v.innerText||v.textContent||""}}),776:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseInput=void 0;var u=c(4),f=c(356),d=c(420),h=c(744),g=c(792);function p(P,T){var k=new h.DocHandler(P),L=k.getDocumentOptions(),B=k.getGlobalOptions();(0,g.default)(k,B,L,T);var j=(0,f.assign)({},B,L,T),N;typeof window<"u"&&(N=window);var D=v(B,L,T),U=y(B,L,T),W=b(k,j),R=S(k,j,N);return{id:T.tableId,content:R,hooks:U,styles:D,settings:W}}l.parseInput=p;function v(P,T,k){for(var L={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},B=function(U){if(U==="columnStyles"){var W=P[U],R=T[U],z=k[U];L.columnStyles=(0,f.assign)({},W,R,z)}else{var Q=[P,T,k],Z=Q.map(function(ee){return ee[U]||{}});L[U]=(0,f.assign)({},Z[0],Z[1],Z[2])}},j=0,N=Object.keys(L);j<N.length;j++){var D=N[j];B(D)}return L}function y(P,T,k){for(var L=[P,T,k],B={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},j=0,N=L;j<N.length;j++){var D=N[j];D.didParseCell&&B.didParseCell.push(D.didParseCell),D.willDrawCell&&B.willDrawCell.push(D.willDrawCell),D.didDrawCell&&B.didDrawCell.push(D.didDrawCell),D.willDrawPage&&B.willDrawPage.push(D.willDrawPage),D.didDrawPage&&B.didDrawPage.push(D.didDrawPage)}return B}function b(P,T){var k,L,B,j,N,D,U,W,R,z,Q,Z,ee=(0,d.parseSpacing)(T.margin,40/P.scaleFactor()),ce=(k=_(P,T.startY))!==null&&k!==void 0?k:ee.top,O;T.showFoot===!0?O="everyPage":T.showFoot===!1?O="never":O=(L=T.showFoot)!==null&&L!==void 0?L:"everyPage";var I;T.showHead===!0?I="everyPage":T.showHead===!1?I="never":I=(B=T.showHead)!==null&&B!==void 0?B:"everyPage";var M=(j=T.useCss)!==null&&j!==void 0?j:!1,q=T.theme||(M?"plain":"striped"),Y=!!T.horizontalPageBreak,fe=(N=T.horizontalPageBreakRepeat)!==null&&N!==void 0?N:null;return{includeHiddenHtml:(D=T.includeHiddenHtml)!==null&&D!==void 0?D:!1,useCss:M,theme:q,startY:ce,margin:ee,pageBreak:(U=T.pageBreak)!==null&&U!==void 0?U:"auto",rowPageBreak:(W=T.rowPageBreak)!==null&&W!==void 0?W:"auto",tableWidth:(R=T.tableWidth)!==null&&R!==void 0?R:"auto",showHead:I,showFoot:O,tableLineWidth:(z=T.tableLineWidth)!==null&&z!==void 0?z:0,tableLineColor:(Q=T.tableLineColor)!==null&&Q!==void 0?Q:200,horizontalPageBreak:Y,horizontalPageBreakRepeat:fe,horizontalPageBreakBehaviour:(Z=T.horizontalPageBreakBehaviour)!==null&&Z!==void 0?Z:"afterAllRows"}}function _(P,T){var k=P.getLastAutoTable(),L=P.scaleFactor(),B=P.pageNumber(),j=!1;if(k&&k.startPageNumber){var N=k.startPageNumber+k.pageNumber-1;j=N===B}return typeof T=="number"?T:(T==null||T===!1)&&j&&(k==null?void 0:k.finalY)!=null?k.finalY+20/L:null}function S(P,T,k){var L=T.head||[],B=T.body||[],j=T.foot||[];if(T.html){var N=T.includeHiddenHtml;if(k){var D=(0,u.parseHtml)(P,T.html,k,N,T.useCss)||{};L=D.head||L,B=D.body||L,j=D.foot||L}else console.error("Cannot parse html in non browser environment")}var U=T.columns||A(L,B,j);return{columns:U,head:L,body:B,foot:j}}function A(P,T,k){var L=P[0]||T[0]||k[0]||[],B=[];return Object.keys(L).filter(function(j){return j!=="_element"}).forEach(function(j){var N=1,D;Array.isArray(L)?D=L[parseInt(j)]:D=L[j],typeof D=="object"&&!Array.isArray(D)&&(N=(D==null?void 0:D.colSpan)||1);for(var U=0;U<N;U++){var W=void 0;Array.isArray(L)?W=B.length:W=j+(U>0?"_".concat(U):"");var R={dataKey:W};B.push(R)}}),B}}),792:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(f,d,h,g){for(var p=function(_){_&&typeof _!="object"&&console.error("The options parameter should be of type object, is: "+typeof _),typeof _.extendWidth<"u"&&(_.tableWidth=_.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof _.margins<"u"&&(typeof _.margin>"u"&&(_.margin=_.margins),console.error("Use of deprecated option: margins, use margin instead.")),_.startY&&typeof _.startY!="number"&&(console.error("Invalid value for startY option",_.startY),delete _.startY),!_.didDrawPage&&(_.afterPageContent||_.beforePageContent||_.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),_.didDrawPage=function(j){f.applyStyles(f.userStyles),_.beforePageContent&&_.beforePageContent(j),f.applyStyles(f.userStyles),_.afterPageContent&&_.afterPageContent(j),f.applyStyles(f.userStyles),_.afterPageAdd&&j.pageNumber>1&&j.afterPageAdd(j),f.applyStyles(f.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(j){_[j]&&console.error('The "'.concat(j,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(j){var N=j[0],D=j[1];_[D]&&(console.error("Use of deprecated option ".concat(D,". Use ").concat(N," instead")),_[N]=_[D])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(j){var N=typeof j=="string"?j:j[0],D=typeof j=="string"?j:j[1];typeof _[N]<"u"&&(typeof _.styles[D]>"u"&&(_.styles[D]=_[N]),console.error("Use of deprecated option: "+N+", use the style "+D+" instead."))});for(var S=0,A=["styles","bodyStyles","headStyles","footStyles"];S<A.length;S++){var P=A[S];u(_[P]||{})}for(var T=_.columnStyles||{},k=0,L=Object.keys(T);k<L.length;k++){var B=L[k];u(T[B]||{})}},v=0,y=[d,h,g];v<y.length;v++){var b=y[v];p(b)}}l.default=c;function u(f){f.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),f.minCellHeight||(f.minCellHeight=f.rowHeight)):f.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),f.cellWidth||(f.cellWidth=f.columnWidth))}}),260:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.Column=l.Cell=l.Row=l.Table=void 0;var u=c(796),f=c(172),d=c(420),h=(function(){function y(b,_){this.pageNumber=1,this.pageCount=1,this.id=b.id,this.settings=b.settings,this.styles=b.styles,this.hooks=b.hooks,this.columns=_.columns,this.head=_.head,this.body=_.body,this.foot=_.foot}return y.prototype.getHeadHeight=function(b){return this.head.reduce(function(_,S){return _+S.getMaxCellHeight(b)},0)},y.prototype.getFootHeight=function(b){return this.foot.reduce(function(_,S){return _+S.getMaxCellHeight(b)},0)},y.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},y.prototype.callCellHooks=function(b,_,S,A,P,T){for(var k=0,L=_;k<L.length;k++){var B=L[k],j=new f.CellHookData(b,this,S,A,P,T),N=B(j)===!1;if(S.text=Array.isArray(S.text)?S.text:[S.text],N)return!1}return!0},y.prototype.callEndPageHooks=function(b,_){b.applyStyles(b.userStyles);for(var S=0,A=this.hooks.didDrawPage;S<A.length;S++){var P=A[S];P(new f.HookData(b,this,_))}},y.prototype.callWillDrawPageHooks=function(b,_){for(var S=0,A=this.hooks.willDrawPage;S<A.length;S++){var P=A[S];P(new f.HookData(b,this,_))}},y.prototype.getWidth=function(b){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var _=this.columns.reduce(function(A,P){return A+P.wrappedWidth},0);return _}else{var S=this.settings.margin;return b-S.left-S.right}},y})();l.Table=h;var g=(function(){function y(b,_,S,A,P){P===void 0&&(P=!1),this.height=0,this.raw=b,b instanceof u.HtmlRowInput&&(this.raw=b._element,this.element=b._element),this.index=_,this.section=S,this.cells=A,this.spansMultiplePages=P}return y.prototype.getMaxCellHeight=function(b){var _=this;return b.reduce(function(S,A){var P;return Math.max(S,((P=_.cells[A.index])===null||P===void 0?void 0:P.height)||0)},0)},y.prototype.hasRowSpan=function(b){var _=this;return b.filter(function(S){var A=_.cells[S.index];return A?A.rowSpan>1:!1}).length>0},y.prototype.canEntireRowFit=function(b,_){return this.getMaxCellHeight(_)<=b},y.prototype.getMinimumRowHeight=function(b,_){var S=this;return b.reduce(function(A,P){var T=S.cells[P.index];if(!T)return 0;var k=_.getLineHeight(T.styles.fontSize),L=T.padding("vertical"),B=L+k;return B>A?B:A},0)},y})();l.Row=g;var p=(function(){function y(b,_,S){var A,P;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=_,this.section=S,this.raw=b;var T=b;b!=null&&typeof b=="object"&&!Array.isArray(b)?(this.rowSpan=b.rowSpan||1,this.colSpan=b.colSpan||1,T=(P=(A=b.content)!==null&&A!==void 0?A:b.title)!==null&&P!==void 0?P:b,b._element&&(this.raw=b._element)):(this.rowSpan=1,this.colSpan=1);var k=T!=null?""+T:"",L=/\r\n|\r|\n/g;this.text=k.split(L)}return y.prototype.getTextPos=function(){var b;if(this.styles.valign==="top")b=this.y+this.padding("top");else if(this.styles.valign==="bottom")b=this.y+this.height-this.padding("bottom");else{var _=this.height-this.padding("vertical");b=this.y+_/2+this.padding("top")}var S;if(this.styles.halign==="right")S=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var A=this.width-this.padding("horizontal");S=this.x+A/2+this.padding("left")}else S=this.x+this.padding("left");return{x:S,y:b}},y.prototype.getContentHeight=function(b,_){_===void 0&&(_=1.15);var S=Array.isArray(this.text)?this.text.length:1,A=this.styles.fontSize/b*_,P=S*A+this.padding("vertical");return Math.max(P,this.styles.minCellHeight)},y.prototype.padding=function(b){var _=(0,d.parseSpacing)(this.styles.cellPadding,0);return b==="vertical"?_.top+_.bottom:b==="horizontal"?_.left+_.right:_[b]},y})();l.Cell=p;var v=(function(){function y(b,_,S){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=b,this.raw=_,this.index=S}return y.prototype.getMaxCustomCellWidth=function(b){for(var _=0,S=0,A=b.allRows();S<A.length;S++){var P=A[S],T=P.cells[this.index];T&&typeof T.styles.cellWidth=="number"&&(_=Math.max(_,T.styles.cellWidth))}return _},y})();l.Column=v}),356:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.assign=void 0;function c(u,f,d,h,g){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(u),v=1;v<arguments.length;v++){var y=arguments[v];if(y!=null)for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(p[b]=y[b])}return p}l.assign=c}),972:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.createTable=void 0;var u=c(744),f=c(260),d=c(324),h=c(796),g=c(356);function p(P,T){var k=new u.DocHandler(P),L=v(T,k.scaleFactor()),B=new f.Table(T,L);return(0,d.calculateWidths)(k,B),k.applyStyles(k.userStyles),B}l.createTable=p;function v(P,T){var k=P.content,L=S(k.columns);if(k.head.length===0){var B=b(L,"head");B&&k.head.push(B)}if(k.foot.length===0){var B=b(L,"foot");B&&k.foot.push(B)}var j=P.settings.theme,N=P.styles;return{columns:L,head:y("head",k.head,L,N,j,T),body:y("body",k.body,L,N,j,T),foot:y("foot",k.foot,L,N,j,T)}}function y(P,T,k,L,B,j){var N={},D=T.map(function(U,W){for(var R=0,z={},Q=0,Z=0,ee=0,ce=k;ee<ce.length;ee++){var O=ce[ee];if(N[O.index]==null||N[O.index].left===0)if(Z===0){var I=void 0;Array.isArray(U)?I=U[O.index-Q-R]:I=U[O.dataKey];var M={};typeof I=="object"&&!Array.isArray(I)&&(M=(I==null?void 0:I.styles)||{});var q=A(P,O,W,B,L,j,M),Y=new f.Cell(I,q,P);z[O.dataKey]=Y,z[O.index]=Y,Z=Y.colSpan-1,N[O.index]={left:Y.rowSpan-1,times:Z}}else Z--,Q++;else N[O.index].left--,Z=N[O.index].times,R++}return new f.Row(U,W,P,z)});return D}function b(P,T){var k={};return P.forEach(function(L){if(L.raw!=null){var B=_(T,L.raw);B!=null&&(k[L.dataKey]=B)}}),Object.keys(k).length>0?k:null}function _(P,T){if(P==="head"){if(typeof T=="object")return T.header||T.title||null;if(typeof T=="string"||typeof T=="number")return T}else if(P==="foot"&&typeof T=="object")return T.footer;return null}function S(P){return P.map(function(T,k){var L,B,j;return typeof T=="object"?j=(B=(L=T.dataKey)!==null&&L!==void 0?L:T.key)!==null&&B!==void 0?B:k:j=k,new f.Column(j,T,k)})}function A(P,T,k,L,B,j,N){var D=(0,h.getTheme)(L),U;P==="head"?U=B.headStyles:P==="body"?U=B.bodyStyles:P==="foot"&&(U=B.footStyles);var W=(0,g.assign)({},D.table,D[P],B.styles,U),R=B.columnStyles[T.dataKey]||B.columnStyles[T.index]||{},z=P==="body"?R:{},Q=P==="body"&&k%2===0?(0,g.assign)({},D.alternateRow,B.alternateRowStyles):{},Z=(0,h.defaultStyles)(j),ee=(0,g.assign)({},Z,W,Q,z);return(0,g.assign)(ee,N)}}),664:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.addPage=l.drawTable=void 0;var u=c(420),f=c(260),d=c(744),h=c(356),g=c(136),p=c(224);function v(R,z){var Q=z.settings,Z=Q.startY,ee=Q.margin,ce={x:ee.left,y:Z},O=z.getHeadHeight(z.columns)+z.getFootHeight(z.columns),I=Z+ee.bottom+O;if(Q.pageBreak==="avoid"){var M=z.body,q=M.reduce(function(ae,ne){return ae+ne.height},0);I+=q}var Y=new d.DocHandler(R);(Q.pageBreak==="always"||Q.startY!=null&&I>Y.pageSize().height)&&(W(Y),ce.y=ee.top),z.callWillDrawPageHooks(Y,ce);var fe=(0,h.assign)({},ce);z.startPageNumber=Y.pageNumber(),Q.horizontalPageBreak?y(Y,z,fe,ce):(Y.applyStyles(Y.userStyles),(Q.showHead==="firstPage"||Q.showHead==="everyPage")&&z.head.forEach(function(ae){return B(Y,z,ae,ce,z.columns)}),Y.applyStyles(Y.userStyles),z.body.forEach(function(ae,ne){var ve=ne===z.body.length-1;L(Y,z,ae,ve,fe,ce,z.columns)}),Y.applyStyles(Y.userStyles),(Q.showFoot==="lastPage"||Q.showFoot==="everyPage")&&z.foot.forEach(function(ae){return B(Y,z,ae,ce,z.columns)})),(0,u.addTableBorder)(Y,z,fe,ce),z.callEndPageHooks(Y,ce),z.finalY=ce.y,R.lastAutoTable=z,R.previousAutoTable=z,R.autoTable&&(R.autoTable.previous=z),Y.applyStyles(Y.userStyles)}l.drawTable=v;function y(R,z,Q,Z){var ee=(0,p.calculateAllColumnsCanFitInPage)(R,z),ce=z.settings;if(ce.horizontalPageBreakBehaviour==="afterAllRows")ee.forEach(function(q,Y){R.applyStyles(R.userStyles),Y>0?U(R,z,Q,Z,q.columns,!0):b(R,z,Z,q.columns),_(R,z,Q,Z,q.columns),A(R,z,Z,q.columns)});else for(var O=-1,I=ee[0],M=function(){var q=O;if(I){R.applyStyles(R.userStyles);var Y=I.columns;O>=0?U(R,z,Q,Z,Y,!0):b(R,z,Z,Y),q=S(R,z,O+1,Z,Y),A(R,z,Z,Y)}var fe=q-O;ee.slice(1).forEach(function(ae){R.applyStyles(R.userStyles),U(R,z,Q,Z,ae.columns,!0),S(R,z,O+1,Z,ae.columns,fe),A(R,z,Z,ae.columns)}),O=q};O<z.body.length-1;)M()}function b(R,z,Q,Z){var ee=z.settings;R.applyStyles(R.userStyles),(ee.showHead==="firstPage"||ee.showHead==="everyPage")&&z.head.forEach(function(ce){return B(R,z,ce,Q,Z)})}function _(R,z,Q,Z,ee){R.applyStyles(R.userStyles),z.body.forEach(function(ce,O){var I=O===z.body.length-1;L(R,z,ce,I,Q,Z,ee)})}function S(R,z,Q,Z,ee,ce){R.applyStyles(R.userStyles),ce=ce??z.body.length;var O=Math.min(Q+ce,z.body.length),I=-1;return z.body.slice(Q,O).forEach(function(M,q){var Y=Q+q===z.body.length-1,fe=D(R,z,Y,Z);M.canEntireRowFit(fe,ee)&&(B(R,z,M,Z,ee),I=Q+q)}),I}function A(R,z,Q,Z){var ee=z.settings;R.applyStyles(R.userStyles),(ee.showFoot==="lastPage"||ee.showFoot==="everyPage")&&z.foot.forEach(function(ce){return B(R,z,ce,Q,Z)})}function P(R,z,Q){var Z=Q.getLineHeight(R.styles.fontSize),ee=R.padding("vertical"),ce=Math.floor((z-ee)/Z);return Math.max(0,ce)}function T(R,z,Q,Z){var ee={};R.spansMultiplePages=!0,R.height=0;for(var ce=0,O=0,I=Q.columns;O<I.length;O++){var M=I[O],q=R.cells[M.index];if(q){Array.isArray(q.text)||(q.text=[q.text]);var Y=new f.Cell(q.raw,q.styles,q.section);Y=(0,h.assign)(Y,q),Y.text=[];var fe=P(q,z,Z);q.text.length>fe&&(Y.text=q.text.splice(fe,q.text.length));var ae=Z.scaleFactor(),ne=Z.getLineHeightFactor();q.contentHeight=q.getContentHeight(ae,ne),q.contentHeight>=z&&(q.contentHeight=z,Y.styles.minCellHeight-=z),q.contentHeight>R.height&&(R.height=q.contentHeight),Y.contentHeight=Y.getContentHeight(ae,ne),Y.contentHeight>ce&&(ce=Y.contentHeight),ee[M.index]=Y}}var ve=new f.Row(R.raw,-1,R.section,ee,!0);ve.height=ce;for(var we=0,se=Q.columns;we<se.length;we++){var M=se[we],Y=ve.cells[M.index];Y&&(Y.height=ve.height);var q=R.cells[M.index];q&&(q.height=R.height)}return ve}function k(R,z,Q,Z){var ee=R.pageSize().height,ce=Z.settings.margin,O=ce.top+ce.bottom,I=ee-O;z.section==="body"&&(I-=Z.getHeadHeight(Z.columns)+Z.getFootHeight(Z.columns));var M=z.getMinimumRowHeight(Z.columns,R),q=M<Q;if(M>I)return console.error("Will not be able to print row ".concat(z.index," correctly since it's minimum height is larger than page height")),!0;if(!q)return!1;var Y=z.hasRowSpan(Z.columns),fe=z.getMaxCellHeight(Z.columns)>I;return fe?(Y&&console.error("The content of row ".concat(z.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(Y||Z.settings.rowPageBreak==="avoid")}function L(R,z,Q,Z,ee,ce,O){var I=D(R,z,Z,ce);if(Q.canEntireRowFit(I,O))B(R,z,Q,ce,O);else if(k(R,Q,I,z)){var M=T(Q,I,z,R);B(R,z,Q,ce,O),U(R,z,ee,ce,O),L(R,z,M,Z,ee,ce,O)}else U(R,z,ee,ce,O),L(R,z,Q,Z,ee,ce,O)}function B(R,z,Q,Z,ee){Z.x=z.settings.margin.left;for(var ce=0,O=ee;ce<O.length;ce++){var I=O[ce],M=Q.cells[I.index];if(!M){Z.x+=I.width;continue}R.applyStyles(M.styles),M.x=Z.x,M.y=Z.y;var q=z.callCellHooks(R,z.hooks.willDrawCell,M,Q,I,Z);if(q===!1){Z.x+=I.width;continue}j(R,M,Z);var Y=M.getTextPos();(0,g.default)(M.text,Y.x,Y.y,{halign:M.styles.halign,valign:M.styles.valign,maxWidth:Math.ceil(M.width-M.padding("left")-M.padding("right"))},R.getDocument()),z.callCellHooks(R,z.hooks.didDrawCell,M,Q,I,Z),Z.x+=I.width}Z.y+=Q.height}function j(R,z,Q){var Z=z.styles;if(R.getDocument().setFillColor(R.getDocument().getFillColor()),typeof Z.lineWidth=="number"){var ee=(0,u.getFillStyle)(Z.lineWidth,Z.fillColor);ee&&R.rect(z.x,Q.y,z.width,z.height,ee)}else typeof Z.lineWidth=="object"&&(Z.fillColor&&R.rect(z.x,Q.y,z.width,z.height,"F"),N(R,z,Q,Z.lineWidth))}function N(R,z,Q,Z){var ee,ce,O,I;Z.top&&(ee=Q.x,ce=Q.y,O=Q.x+z.width,I=Q.y,Z.right&&(O+=.5*Z.right),Z.left&&(ee-=.5*Z.left),M(Z.top,ee,ce,O,I)),Z.bottom&&(ee=Q.x,ce=Q.y+z.height,O=Q.x+z.width,I=Q.y+z.height,Z.right&&(O+=.5*Z.right),Z.left&&(ee-=.5*Z.left),M(Z.bottom,ee,ce,O,I)),Z.left&&(ee=Q.x,ce=Q.y,O=Q.x,I=Q.y+z.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),M(Z.left,ee,ce,O,I)),Z.right&&(ee=Q.x+z.width,ce=Q.y,O=Q.x+z.width,I=Q.y+z.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),M(Z.right,ee,ce,O,I));function M(q,Y,fe,ae,ne){R.getDocument().setLineWidth(q),R.getDocument().line(Y,fe,ae,ne,"S")}}function D(R,z,Q,Z){var ee=z.settings.margin.bottom,ce=z.settings.showFoot;return(ce==="everyPage"||ce==="lastPage"&&Q)&&(ee+=z.getFootHeight(z.columns)),R.pageSize().height-Z.y-ee}function U(R,z,Q,Z,ee,ce){ee===void 0&&(ee=[]),ce===void 0&&(ce=!1),R.applyStyles(R.userStyles),z.settings.showFoot==="everyPage"&&!ce&&z.foot.forEach(function(I){return B(R,z,I,Z,ee)}),z.callEndPageHooks(R,Z);var O=z.settings.margin;(0,u.addTableBorder)(R,z,Q,Z),W(R),z.pageNumber++,z.pageCount++,Z.x=O.left,Z.y=O.top,Q.y=O.top,z.callWillDrawPageHooks(R,Z),z.settings.showHead==="everyPage"&&(z.head.forEach(function(I){return B(R,z,I,Z,ee)}),R.applyStyles(R.userStyles))}l.addPage=U;function W(R){var z=R.pageNumber();R.setPage(z+1);var Q=R.pageNumber();return Q===z?(R.addPage(),!0):!1}}),224:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.calculateAllColumnsCanFitInPage=void 0;var u=c(420);function f(h,g,p){var v;p===void 0&&(p={});var y=(0,u.getPageAvailableWidth)(h,g),b=new Map,_=[],S=[],A=[];g.settings.horizontalPageBreakRepeat,Array.isArray(g.settings.horizontalPageBreakRepeat)?A=g.settings.horizontalPageBreakRepeat:(typeof g.settings.horizontalPageBreakRepeat=="string"||typeof g.settings.horizontalPageBreakRepeat=="number")&&(A=[g.settings.horizontalPageBreakRepeat]),A.forEach(function(L){var B=g.columns.find(function(j){return j.dataKey===L||j.index===L});B&&!b.has(B.index)&&(b.set(B.index,!0),_.push(B.index),S.push(g.columns[B.index]),y-=B.wrappedWidth)});for(var P=!0,T=(v=p==null?void 0:p.start)!==null&&v!==void 0?v:0;T<g.columns.length;){if(b.has(T)){T++;continue}var k=g.columns[T].wrappedWidth;if(P||y>=k)P=!1,_.push(T),S.push(g.columns[T]),y-=k;else break;T++}return{colIndexes:_,columns:S,lastIndex:T-1}}function d(h,g){for(var p=[],v=0;v<g.columns.length;v++){var y=f(h,g,{start:v});y.columns.length&&(p.push(y),v=y.lastIndex)}return p}l.calculateAllColumnsCanFitInPage=d}),324:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.ellipsize=l.resizeColumns=l.calculateWidths=void 0;var u=c(420);function f(_,S){d(_,S);var A=[],P=0;S.columns.forEach(function(k){var L=k.getMaxCustomCellWidth(S);L?k.width=L:(k.width=k.wrappedWidth,A.push(k)),P+=k.width});var T=S.getWidth(_.pageSize().width)-P;T&&(T=h(A,T,function(k){return Math.max(k.minReadableWidth,k.minWidth)})),T&&(T=h(A,T,function(k){return k.minWidth})),T=Math.abs(T),!S.settings.horizontalPageBreak&&T>.1/_.scaleFactor()&&(T=T<1?T:Math.round(T),console.warn("Of the table content, ".concat(T," units width could not fit page"))),p(S),v(S,_),g(S)}l.calculateWidths=f;function d(_,S){var A=_.scaleFactor(),P=S.settings.horizontalPageBreak,T=(0,u.getPageAvailableWidth)(_,S);S.allRows().forEach(function(k){for(var L=0,B=S.columns;L<B.length;L++){var j=B[L],N=k.cells[j.index];if(N){var D=S.hooks.didParseCell;S.callCellHooks(_,D,N,k,j,null);var U=N.padding("horizontal");N.contentWidth=(0,u.getStringWidth)(N.text,N.styles,_)+U;var W=(0,u.getStringWidth)(N.text.join(" ").split(/[^\S\u00A0]+/),N.styles,_);if(N.minReadableWidth=W+N.padding("horizontal"),typeof N.styles.cellWidth=="number")N.minWidth=N.styles.cellWidth,N.wrappedWidth=N.styles.cellWidth;else if(N.styles.cellWidth==="wrap"||P===!0)N.contentWidth>T?(N.minWidth=T,N.wrappedWidth=T):(N.minWidth=N.contentWidth,N.wrappedWidth=N.contentWidth);else{var R=10/A;N.minWidth=N.styles.minCellWidth||R,N.wrappedWidth=N.contentWidth,N.minWidth>N.wrappedWidth&&(N.wrappedWidth=N.minWidth)}}}}),S.allRows().forEach(function(k){for(var L=0,B=S.columns;L<B.length;L++){var j=B[L],N=k.cells[j.index];if(N&&N.colSpan===1)j.wrappedWidth=Math.max(j.wrappedWidth,N.wrappedWidth),j.minWidth=Math.max(j.minWidth,N.minWidth),j.minReadableWidth=Math.max(j.minReadableWidth,N.minReadableWidth);else{var D=S.styles.columnStyles[j.dataKey]||S.styles.columnStyles[j.index]||{},U=D.cellWidth||D.minCellWidth;U&&typeof U=="number"&&(j.minWidth=U,j.wrappedWidth=U)}N&&(N.colSpan>1&&!j.minWidth&&(j.minWidth=N.minWidth),N.colSpan>1&&!j.wrappedWidth&&(j.wrappedWidth=N.minWidth))}})}function h(_,S,A){for(var P=S,T=_.reduce(function(R,z){return R+z.wrappedWidth},0),k=0;k<_.length;k++){var L=_[k],B=L.wrappedWidth/T,j=P*B,N=L.width+j,D=A(L),U=N<D?D:N;S-=U-L.width,L.width=U}if(S=Math.round(S*1e10)/1e10,S){var W=_.filter(function(R){return S<0?R.width>A(R):!0});W.length&&(S=h(W,S,A))}return S}l.resizeColumns=h;function g(_){for(var S={},A=1,P=_.allRows(),T=0;T<P.length;T++)for(var k=P[T],L=0,B=_.columns;L<B.length;L++){var j=B[L],N=S[j.index];if(A>1)A--,delete k.cells[j.index];else if(N)N.cell.height+=k.height,A=N.cell.colSpan,delete k.cells[j.index],N.left--,N.left<=1&&delete S[j.index];else{var D=k.cells[j.index];if(!D)continue;if(D.height=k.height,D.rowSpan>1){var U=P.length-T,W=D.rowSpan>U?U:D.rowSpan;S[j.index]={cell:D,left:W,row:k}}}}}function p(_){for(var S=_.allRows(),A=0;A<S.length;A++)for(var P=S[A],T=null,k=0,L=0,B=0;B<_.columns.length;B++){var j=_.columns[B];if(L-=1,L>1&&_.columns[B+1])k+=j.width,delete P.cells[j.index];else if(T){var N=T;delete P.cells[j.index],T=null,N.width=j.width+k}else{var N=P.cells[j.index];if(!N)continue;if(L=N.colSpan,k=0,N.colSpan>1){T=N,k+=j.width;continue}N.width=j.width+k}}}function v(_,S){for(var A={count:0,height:0},P=0,T=_.allRows();P<T.length;P++){for(var k=T[P],L=0,B=_.columns;L<B.length;L++){var j=B[L],N=k.cells[j.index];if(N){S.applyStyles(N.styles,!0);var D=N.width-N.padding("horizontal");if(N.styles.overflow==="linebreak")N.text=S.splitTextToSize(N.text,D+1/S.scaleFactor(),{fontSize:N.styles.fontSize});else if(N.styles.overflow==="ellipsize")N.text=y(N.text,D,N.styles,S,"...");else if(N.styles.overflow==="hidden")N.text=y(N.text,D,N.styles,S,"");else if(typeof N.styles.overflow=="function"){var U=N.styles.overflow(N.text,D);typeof U=="string"?N.text=[U]:N.text=U}N.contentHeight=N.getContentHeight(S.scaleFactor(),S.getLineHeightFactor());var W=N.contentHeight/N.rowSpan;N.rowSpan>1&&A.count*A.height<W*N.rowSpan?A={height:W,count:N.rowSpan}:A&&A.count>0&&A.height>W&&(W=A.height),W>k.height&&(k.height=W)}}A.count--}}function y(_,S,A,P,T){return _.map(function(k){return b(k,S,A,P,T)})}l.ellipsize=y;function b(_,S,A,P,T){var k=1e4*P.scaleFactor();if(S=Math.ceil(S*k)/k,S>=(0,u.getStringWidth)(_,A,P))return _;for(;S<(0,u.getStringWidth)(_+T,A,P)&&!(_.length<=1);)_=_.substring(0,_.length-1);return _.trim()+T}}),964:(function(s){if(typeof r>"u"){var l=new Error("Cannot find module 'undefined'");throw l.code="MODULE_NOT_FOUND",l}s.exports=r})},i={};function a(s){var l=i[s];if(l!==void 0)return l.exports;var c=i[s]={exports:{}};return n[s].call(c.exports,c,c.exports,a),c.exports}var o={};return(function(){var s=o;Object.defineProperty(s,"__esModule",{value:!0}),s.Cell=s.Column=s.Row=s.Table=s.CellHookData=s.__drawTable=s.__createTable=s.applyPlugin=void 0;var l=a(340),c=a(776),u=a(664),f=a(972),d=a(260);Object.defineProperty(s,"Table",{enumerable:!0,get:function(){return d.Table}});var h=a(172);Object.defineProperty(s,"CellHookData",{enumerable:!0,get:function(){return h.CellHookData}});var g=a(260);Object.defineProperty(s,"Cell",{enumerable:!0,get:function(){return g.Cell}}),Object.defineProperty(s,"Column",{enumerable:!0,get:function(){return g.Column}}),Object.defineProperty(s,"Row",{enumerable:!0,get:function(){return g.Row}});function p(S){(0,l.default)(S)}s.applyPlugin=p;function v(S,A){var P=(0,c.parseInput)(S,A),T=(0,f.createTable)(S,P);(0,u.drawTable)(S,T)}function y(S,A){var P=(0,c.parseInput)(S,A);return(0,f.createTable)(S,P)}s.__createTable=y;function b(S,A){(0,u.drawTable)(S,A)}s.__drawTable=b;try{var _=a(964);_.jsPDF&&(_=_.jsPDF),p(_)}catch{}s.default=v})(),o})()})})($0)),$0.exports}wL();function _L({title:e,subtitle:t,headers:r,rows:n,filename:i,orientation:a="portrait"}){const o=new xt(a);o.setFontSize(18),o.setTextColor(30,41,59),o.text(e,14,22),t&&(o.setFontSize(10),o.setTextColor(100,116,139),o.text(t,14,30)),o.autoTable({startY:t?36:30,head:[r],body:n,styles:{fontSize:9,cellPadding:3},headStyles:{fillColor:[14,165,233],textColor:255,fontStyle:"bold"},alternateRowStyles:{fillColor:[248,250,252]},margin:{left:14,right:14}});const s=o.internal.getNumberOfPages();for(let l=1;l<=s;l++)o.setPage(l),o.setFontSize(8),o.setTextColor(148,163,184),o.text(`Generated on ${new Date().toLocaleDateString()} | Page ${l} of ${s}`,14,o.internal.pageSize.height-10);o.save(`${i}.pdf`)}function SL({student:e,exams:t,schoolName:r}){var a;const n=new xt;n.setFontSize(16),n.setTextColor(30,41,59),n.text(r||"School ERP",105,20,{align:"center"}),n.setFontSize(12),n.text("Student Report Card",105,28,{align:"center"}),n.setFontSize(10),n.setTextColor(71,85,105),n.text(`Name: ${e.full_name}`,14,42),n.text(`Roll No: ${e.roll_number||e.admission_number||""}`,14,48),n.text(`Class: ${e.class_section||e.class_name+"-"+e.section}`,120,42),n.text("Academic Year: 2025-2026",120,48);let i=58;(t||[]).forEach(o=>{n.setFontSize(11),n.setTextColor(30,41,59),n.text(o.name,14,i),i+=4,o.subjects&&o.subjects.length>0&&(n.autoTable({startY:i,head:[["Subject","Marks","Total","Grade"]],body:o.subjects.map(s=>[s.name,s.marks,s.total,s.grade||""]),styles:{fontSize:9},headStyles:{fillColor:[99,102,241]},margin:{left:14,right:14}}),i=n.lastAutoTable.finalY+8)}),n.save(`report-card-${(a=e.full_name)==null?void 0:a.replace(/\s+/g,"-")}.pdf`)}function AL({student:e,payment:t,schoolName:r}){const n=new xt;n.setFontSize(16),n.text(r||"School ERP",105,20,{align:"center"}),n.setFontSize(12),n.text("Fee Payment Receipt",105,28,{align:"center"}),n.setFontSize(10),n.setTextColor(71,85,105);const i=[["Student Name",e.name||e.full_name||""],["Class",e.class_name||""],["Receipt No",t.ref||t.reference||`RCP-${Date.now()}`],["Date",t.date||new Date().toLocaleDateString()],["Amount Paid",`Rs. ${(t.amount||0).toLocaleString()}`],["Payment Method",t.method||"Online"],["Status",t.status||"Paid"]];n.autoTable({startY:38,body:i,styles:{fontSize:10},columnStyles:{0:{fontStyle:"bold",cellWidth:50}},margin:{left:14,right:14}}),n.setFontSize(8),n.setTextColor(148,163,184),n.text("This is a computer-generated receipt.",105,n.internal.pageSize.height-15,{align:"center"}),n.save(`fee-receipt-${e.name||"student"}.pdf`)}function TL({className:e,date:t,records:r,summary:n}){const i=new xt;i.setFontSize(16),i.text("Attendance Report",14,20),i.setFontSize(10),i.setTextColor(71,85,105),i.text(`Class: ${e} | Date: ${t}`,14,28),i.text(`Present: ${(n==null?void 0:n.present)||0} | Absent: ${(n==null?void 0:n.absent)||0} | Late: ${(n==null?void 0:n.late)||0} | Total: ${(r==null?void 0:r.length)||0}`,14,34),i.autoTable({startY:42,head:[["Roll No","Student Name","Status"]],body:(r||[]).map(a=>[a.roll_number||"",a.full_name||"",a.status||""]),styles:{fontSize:9},headStyles:{fillColor:[14,165,233]}}),i.save(`attendance-${e}-${t}.pdf`)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var z0={};z0.version="0.18.5";var WN=1252,EL=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],HN=function(e){EL.indexOf(e)!=-1&&(WN=e)};function NL(){HN(1252)}var hf=function(e){HN(e)};function PL(){hf(1200),NL()}var p0=function(t){return String.fromCharCode(t)},bw=function(t){return String.fromCharCode(t)},W0,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function df(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0,c=0;c<e.length;)r=e.charCodeAt(c++),a=r>>2,n=e.charCodeAt(c++),o=(r&3)<<4|n>>4,i=e.charCodeAt(c++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=Zo.charAt(a)+Zo.charAt(o)+Zo.charAt(s)+Zo.charAt(l);return t}function yo(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)a=Zo.indexOf(e.charAt(c++)),o=Zo.indexOf(e.charAt(c++)),r=a<<2|o>>4,t+=String.fromCharCode(r),s=Zo.indexOf(e.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=Zo.indexOf(e.charAt(c++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var er=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),To=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function Vs(e){return er?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function ww(e){return er?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var va=function(t){return er?To(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function cp(e){if(typeof ArrayBuffer>"u")return va(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function th(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function OL(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Cn=er?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:To(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function jL(e){for(var t=[],r=0,n=e.length+250,i=Vs(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[r++]=o;else if(o<2048)i[r++]=192|o>>6&31,i[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++a)&1023;i[r++]=240|o>>8&7,i[r++]=128|o>>2&63,i[r++]=128|s>>6&15|(o&3)<<4,i[r++]=128|s&63}else i[r++]=224|o>>12&15,i[r++]=128|o>>6&63,i[r++]=128|o&63;r>n&&(t.push(i.slice(0,r)),r=0,i=Vs(65535),n=65530)}return t.push(i.slice(0,r)),Cn(t)}var Xu=/\u0000/g,m0=/[\u0001-\u0006]/g;function tc(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function xa(e,t){var r=""+e;return r.length>=t?r:Ur("0",t-r.length)+r}function X2(e,t){var r=""+e;return r.length>=t?r:Ur(" ",t-r.length)+r}function H0(e,t){var r=""+e;return r.length>=t?r:r+Ur(" ",t-r.length)}function CL(e,t){var r=""+Math.round(e);return r.length>=t?r:Ur("0",t-r.length)+r}function kL(e,t){var r=""+e;return r.length>=t?r:Ur("0",t-r.length)+r}var _w=Math.pow(2,32);function Fl(e,t){if(e>_w||e<-_w)return CL(e,t);var r=Math.round(e);return kL(r,t)}function G0(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Sw=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],U1=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function LL(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Wr={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Aw={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},IL={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function V0(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(i);c<t&&(f=Math.floor(i),s=f*o+a,u=f*c+l,!(i-f<5e-8));)i=1/(i-f),a=o,o=s,l=c,c=u;if(u>t&&(c>t?(u=l,s=a):(u=c,s=o)),!r)return[0,n*s,u];var d=Math.floor(n*s/u);return[d,n*s-d*u,u]}function v0(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,o=[],s={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++i==86400&&(s.T=i=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=qL(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var GN=new Date(1899,11,31,0,0,0),FL=GN.getTime(),ML=new Date(1900,2,1,0,0,0);function VN(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=ML&&(r+=1440*60*1e3),(r-(FL+(e.getTimezoneOffset()-GN.getTimezoneOffset())*6e4))/(1440*60*1e3)}function J2(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function DL(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function RL(e){var t=e<0?12:11,r=J2(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function BL(e){var t=J2(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function $L(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=RL(e):t===10?r=e.toFixed(10).substr(0,12):r=BL(e),J2(DL(r.toUpperCase()))}function xy(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):$L(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ss(14,VN(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function qL(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function UL(e,t,r,n){var i="",a=0,o=0,s=r.y,l,c=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return U1[r.m-1][1];case 5:return U1[r.m-1][0];default:return U1[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return Sw[r.q][0];default:return Sw[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?xa(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,a=Math.round(o*(r.S+r.u)),a>=60*o&&(a=0),t==="s"?a===0?"0":""+a/o:(i=xa(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?xa(l,c):"";return u}function Qo(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var YN=/%/g;function zL(e,t,r){var n=t.replace(YN,""),i=t.length-n.length;return fo(e,n,r*Math.pow(10,2*i))+Ur("%",i)}function WL(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return fo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function KN(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+KN(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+a):r+="E+"+(o-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var XN=/# (\?+)( ?)\/( ?)(\d+)/;function HL(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),o=i-a*n,s=n;return r+(a===0?"":""+a)+" "+(o===0?Ur(" ",e[1].length+1+e[4].length):X2(o,e[1].length)+e[2]+"/"+e[3]+xa(s,e[4].length))}function GL(e,t,r){return r+(t===0?"":""+t)+Ur(" ",e[1].length+2+e[4].length)}var JN=/^#*0*\.([0#]+)/,ZN=/\).*[0#]/,QN=/\(###\) ###\\?-####/;function Qn(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function Tw(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Ew(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function VL(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function YL(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Gi(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ZN)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Gi("n",n,r):"("+Gi("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return WL(e,t,r);if(t.indexOf("%")!==-1)return zL(e,t,r);if(t.indexOf("E")!==-1)return KN(t,r);if(t.charCodeAt(0)===36)return"$"+Gi(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+Fl(l,t.length);if(t.match(/^[#?]+$/))return i=Fl(r,0),i==="0"&&(i=""),i.length>t.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(XN))return HL(a,l,c);if(t.match(/^#+0+$/))return c+Fl(l,t.length-t.indexOf("0"));if(a=t.match(JN))return i=Tw(r,a[1].length).replace(/^([^\.]+)$/,"$1."+Qn(a[1])).replace(/\.$/,"."+Qn(a[1])).replace(/\.(\d*)$/,function(g,p){return"."+p+Ur("0",Qn(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+Tw(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+Qo(Fl(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Gi(e,t,-r):Qo(""+(Math.floor(r)+VL(r,a[1].length)))+"."+xa(Ew(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Gi(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=tc(Gi(e,t.replace(/[\\-]/g,""),r)),o=0,tc(tc(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(QN))return i=Gi(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=V0(l,Math.pow(10,o)-1,!1),i=""+c,u=fo("n",a[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=H0(s[2],o),u.length<a[4].length&&(u=Qn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=V0(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?X2(s[1],o)+a[2]+"/"+a[3]+H0(s[2],o):Ur(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Fl(r,0),t.length<=i.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return Qn(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=Ew(r,a[1].length),r<0?"-"+Gi(e,t,-r):Qo(YL(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?xa(0,3-g.length):"")+g})+"."+xa(o,a[1].length);switch(t){case"###,##0.00":return Gi(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=Qo(Fl(l,0));return h!=="0"?c+h:"";case"###,###.00":return Gi(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Gi(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function KL(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return fo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function XL(e,t,r){var n=t.replace(YN,""),i=t.length-n.length;return fo(e,n,r*Math.pow(10,2*i))+Ur("%",i)}function eP(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+eP(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+a):r+="E+"+(o-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function ka(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ZN)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ka("n",n,r):"("+ka("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return KL(e,t,r);if(t.indexOf("%")!==-1)return XL(e,t,r);if(t.indexOf("E")!==-1)return eP(t,r);if(t.charCodeAt(0)===36)return"$"+ka(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+xa(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(XN))return GL(a,l,c);if(t.match(/^#+0+$/))return c+xa(l,t.length-t.indexOf("0"));if(a=t.match(JN))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Qn(a[1])).replace(/\.$/,"."+Qn(a[1])),i=i.replace(/\.(\d*)$/,function(g,p){return"."+p+Ur("0",Qn(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+Qo(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ka(e,t,-r):Qo(""+r)+"."+Ur("0",a[1].length);if(a=t.match(/^#,#*,#0/))return ka(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=tc(ka(e,t.replace(/[\\-]/g,""),r)),o=0,tc(tc(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(QN))return i=ka(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=V0(l,Math.pow(10,o)-1,!1),i=""+c,u=fo("n",a[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=H0(s[2],o),u.length<a[4].length&&(u=Qn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=V0(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?X2(s[1],o)+a[2]+"/"+a[3]+H0(s[2],o):Ur(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return Qn(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+ka(e,t,-r):Qo(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?xa(0,3-g.length):"")+g})+"."+xa(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=Qo(""+l);return h!=="0"?c+h:"";default:if(t.match(/\.[0#?]*$/))return ka(e,t.slice(0,t.lastIndexOf(".")),r)+Qn(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function fo(e,t,r){return(r|0)===r?ka(e,t,r):Gi(e,t,r)}function JL(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var tP=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function rP(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":G0(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(tP))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function ZL(e,t,r,n){for(var i=[],a="",o=0,s="",l="t",c,u,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!G0(e,o))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(a="";(f=e.charCodeAt(++o))!==34&&o<e.length;)a+=String.fromCharCode(f);i[i.length]={t:"t",v:a},++o;break;case"\\":var h=e.charAt(++o),g=h==="("||h===")"?h:"t";i[i.length]={t:g,v:h},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(c==null&&(c=v0(t,r,e.charAt(o+1)==="2"),c==null))return"";i[i.length]={t:"X",v:e.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||c==null&&(c=v0(t,r),c==null))return"";for(a=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)a+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),i[i.length]={t:s,v:a},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(c==null&&(c=v0(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(p.v=c.H>=12?"P":"A"),p.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(p.v=c.H>=12?"PM":"AM"),p.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(p.v=c.H>=12?"下午":"上午"),p.t="T",o+=5,d="h"):(p.t="t",++o),c==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(a=s;e.charAt(o++)!=="]"&&o<e.length;)a+=e.charAt(o);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(tP)){if(c==null&&(c=v0(t,r),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",rP(e)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=null){for(a=s;++o<e.length&&(s=e.charAt(o))==="0";)a+=s;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)a+=s;i[i.length]={t:"n",v:a};break;case"?":for(a=s;e.charAt(++o)===s;)a+=s;i[i.length]={t:s,v:a},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)a+=e.charAt(o);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:s,v:s},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++o;break}var v=0,y=0,b;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=d,l="h",v<1&&(v=1);break;case"s":(b=i[o].v.match(/\.0+$/))&&(y=Math.max(y,b[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&i[o].v.match(/[Hh]/)&&(v=1),v<2&&i[o].v.match(/[Mm]/)&&(v=2),v<3&&i[o].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var _="",S;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=UL(i[o].t.charCodeAt(0),i[o].v,c,y),i[o].t="t";break;case"n":case"?":for(S=o+1;i[S]!=null&&((s=i[S].t)==="?"||s==="D"||(s===" "||s==="t")&&i[S+1]!=null&&(i[S+1].t==="?"||i[S+1].t==="t"&&i[S+1].v==="/")||i[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[S].v==="/"||i[S].v===" "&&i[S+1]!=null&&i[S+1].t=="?"));)i[o].v+=i[S].v,i[S]={v:"",t:";"},++S;_+=i[o].v,o=S-1;break;case"G":i[o].t="t",i[o].v=xy(t,r);break}var A="",P,T;if(_.length>0){_.charCodeAt(0)==40?(P=t<0&&_.charCodeAt(0)===45?-t:t,T=fo("n",_,P)):(P=t<0&&n>1?-t:t,T=fo("n",_,P),P<0&&i[0]&&i[0].t=="t"&&(T=T.substr(1),i[0].v="-"+i[0].v)),S=T.length-1;var k=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){k=o;break}var L=i.length;if(k===i.length&&T.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(S>=i[o].v.length-1?(S-=i[o].v.length,i[o].v=T.substr(S+1,i[o].v.length)):S<0?i[o].v="":(i[o].v=T.substr(0,S+1),S=-1),i[o].t="t",L=o);S>=0&&L<i.length&&(i[L].v=T.substr(0,S+1)+i[L].v)}else if(k!==i.length&&T.indexOf("E")===-1){for(S=T.indexOf(".")-1,o=k;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(u=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")-1:i[o].v.length-1,A=i[o].v.substr(u+1);u>=0;--u)S>=0&&(i[o].v.charAt(u)==="0"||i[o].v.charAt(u)==="#")&&(A=T.charAt(S--)+A);i[o].v=A,i[o].t="t",L=o}for(S>=0&&L<i.length&&(i[L].v=T.substr(0,S+1)+i[L].v),S=T.indexOf(".")+1,o=k;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==k)){for(u=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")+1:0,A=i[o].v.substr(0,u);u<i[o].v.length;++u)S<T.length&&(A+=T.charAt(S++));i[o].v=A,i[o].t="t",L=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(P=n>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=fo(i[o].t,i[o].v,P),i[o].t="t");var B="";for(o=0;o!==i.length;++o)i[o]!=null&&(B+=i[o].v);return B}var Nw=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Pw(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function QL(e,t){var r=JL(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(Nw),s=r[1].match(Nw);return Pw(t,o)?[n,r[0]]:Pw(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,a]}function ss(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Wr)[e],n==null&&(n=r.table&&r.table[Aw[e]]||Wr[Aw[e]]),n==null&&(n=IL[e]||"General");break}if(G0(n,0))return xy(t,r);t instanceof Date&&(t=VN(t,r.date1904));var i=QL(n,t);if(G0(i[1]))return xy(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return ZL(i[1],t,r,i[0])}function nP(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Wr[r]==null){t<0&&(t=r);continue}if(Wr[r]==e){t=r;break}}t<0&&(t=391)}return Wr[t]=e,t}function up(e){for(var t=0;t!=392;++t)e[t]!==void 0&&nP(e[t],t)}function fp(){Wr=LL()}var iP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function eI(e){var t=typeof e=="number"?Wr[e]:e;return t=t.replace(iP,"(\\d+)"),new RegExp("^"+t+"$")}function tI(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(iP)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":a=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:i=h;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?c:n==-1&&i==-1&&a==-1?u:c+"T"+u}var rI=(function(){var e={};e.version="1.2.0";function t(){for(var T=0,k=new Array(256),L=0;L!=256;++L)T=L,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,k[L]=T;return typeof Int32Array<"u"?new Int32Array(k):k}var r=t();function n(T){var k=0,L=0,B=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(B=0;B!=256;++B)j[B]=T[B];for(B=0;B!=256;++B)for(L=T[B],k=256+B;k<4096;k+=256)L=j[k]=L>>>8^T[L&255];var N=[];for(B=1;B!=16;++B)N[B-1]=typeof Int32Array<"u"?j.subarray(B*256,B*256+256):j.slice(B*256,B*256+256);return N}var i=n(r),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=i[6],d=i[7],h=i[8],g=i[9],p=i[10],v=i[11],y=i[12],b=i[13],_=i[14];function S(T,k){for(var L=k^-1,B=0,j=T.length;B<j;)L=L>>>8^r[(L^T.charCodeAt(B++))&255];return~L}function A(T,k){for(var L=k^-1,B=T.length-15,j=0;j<B;)L=_[T[j++]^L&255]^b[T[j++]^L>>8&255]^y[T[j++]^L>>16&255]^v[T[j++]^L>>>24]^p[T[j++]]^g[T[j++]]^h[T[j++]]^d[T[j++]]^f[T[j++]]^u[T[j++]]^c[T[j++]]^l[T[j++]]^s[T[j++]]^o[T[j++]]^a[T[j++]]^r[T[j++]];for(B+=15;j<B;)L=L>>>8^r[(L^T[j++])&255];return~L}function P(T,k){for(var L=k^-1,B=0,j=T.length,N=0,D=0;B<j;)N=T.charCodeAt(B++),N<128?L=L>>>8^r[(L^N)&255]:N<2048?(L=L>>>8^r[(L^(192|N>>6&31))&255],L=L>>>8^r[(L^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,D=T.charCodeAt(B++)&1023,L=L>>>8^r[(L^(240|N>>8&7))&255],L=L>>>8^r[(L^(128|N>>2&63))&255],L=L>>>8^r[(L^(128|D>>6&15|(N&3)<<4))&255],L=L>>>8^r[(L^(128|D&63))&255]):(L=L>>>8^r[(L^(224|N>>12&15))&255],L=L>>>8^r[(L^(128|N>>6&63))&255],L=L>>>8^r[(L^(128|N&63))&255]);return~L}return e.table=r,e.bstr=S,e.buf=A,e.str=P,e})(),br=(function(){var t={};t.version="1.2.1";function r(X,de){for(var ie=X.split("/"),oe=de.split("/"),he=0,pe=0,Pe=Math.min(ie.length,oe.length);he<Pe;++he){if(pe=ie[he].length-oe[he].length)return pe;if(ie[he]!=oe[he])return ie[he]<oe[he]?-1:1}return ie.length-oe.length}function n(X){if(X.charAt(X.length-1)=="/")return X.slice(0,-1).indexOf("/")===-1?X:n(X.slice(0,-1));var de=X.lastIndexOf("/");return de===-1?X:X.slice(0,de+1)}function i(X){if(X.charAt(X.length-1)=="/")return i(X.slice(0,-1));var de=X.lastIndexOf("/");return de===-1?X:X.slice(de+1)}function a(X,de){typeof de=="string"&&(de=new Date(de));var ie=de.getHours();ie=ie<<6|de.getMinutes(),ie=ie<<5|de.getSeconds()>>>1,X.write_shift(2,ie);var oe=de.getFullYear()-1980;oe=oe<<4|de.getMonth()+1,oe=oe<<5|de.getDate(),X.write_shift(2,oe)}function o(X){var de=X.read_shift(2)&65535,ie=X.read_shift(2)&65535,oe=new Date,he=ie&31;ie>>>=5;var pe=ie&15;ie>>>=4,oe.setMilliseconds(0),oe.setFullYear(ie+1980),oe.setMonth(pe-1),oe.setDate(he);var Pe=de&31;de>>>=5;var Le=de&63;return de>>>=6,oe.setHours(de),oe.setMinutes(Le),oe.setSeconds(Pe<<1),oe}function s(X){Pi(X,0);for(var de={},ie=0;X.l<=X.length-4;){var oe=X.read_shift(2),he=X.read_shift(2),pe=X.l+he,Pe={};switch(oe){case 21589:ie=X.read_shift(1),ie&1&&(Pe.mtime=X.read_shift(4)),he>5&&(ie&2&&(Pe.atime=X.read_shift(4)),ie&4&&(Pe.ctime=X.read_shift(4))),Pe.mtime&&(Pe.mt=new Date(Pe.mtime*1e3));break}X.l=pe,de[oe]=Pe}return de}var l;function c(){return l||(l={})}function u(X,de){if(X[0]==80&&X[1]==75)return Et(X,de);if((X[0]|32)==109&&(X[1]|32)==105)return Fi(X,de);if(X.length<512)throw new Error("CFB file size "+X.length+" < 512");var ie=3,oe=512,he=0,pe=0,Pe=0,Le=0,Ne=0,Ce=[],ke=X.slice(0,512);Pi(ke,0);var Ye=f(ke);switch(ie=Ye[0],ie){case 3:oe=512;break;case 4:oe=4096;break;case 0:if(Ye[1]==0)return Et(X,de);default:throw new Error("Major Version: Expected 3 or 4 saw "+ie)}oe!==512&&(ke=X.slice(0,oe),Pi(ke,28));var Qe=X.slice(0,oe);d(ke,ie);var lt=ke.read_shift(4,"i");if(ie===3&&lt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+lt);ke.l+=4,Pe=ke.read_shift(4,"i"),ke.l+=4,ke.chk("00100000","Mini Stream Cutoff Size: "),Le=ke.read_shift(4,"i"),he=ke.read_shift(4,"i"),Ne=ke.read_shift(4,"i"),pe=ke.read_shift(4,"i");for(var Xe=-1,st=0;st<109&&(Xe=ke.read_shift(4,"i"),!(Xe<0));++st)Ce[st]=Xe;var jt=h(X,oe);v(Ne,pe,jt,oe,Ce);var tr=b(jt,Pe,Ce,oe);tr[Pe].name="!Directory",he>0&&Le!==D&&(tr[Le].name="!MiniFAT"),tr[Ce[0]].name="!FAT",tr.fat_addrs=Ce,tr.ssz=oe;var xr={},Zr=[],ea=[],Ga=[];_(Pe,tr,jt,Zr,he,xr,ea,Le),g(ea,Ga,Zr),Zr.shift();var Ta={FileIndex:ea,FullPaths:Ga};return de&&de.raw&&(Ta.raw={header:Qe,sectors:jt}),Ta}function f(X){if(X[X.l]==80&&X[X.l+1]==75)return[0,0];X.chk(U,"Header Signature: "),X.l+=16;var de=X.read_shift(2,"u");return[X.read_shift(2,"u"),de]}function d(X,de){var ie=9;switch(X.l+=2,ie=X.read_shift(2)){case 9:if(de!=3)throw new Error("Sector Shift: Expected 9 saw "+ie);break;case 12:if(de!=4)throw new Error("Sector Shift: Expected 12 saw "+ie);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ie)}X.chk("0600","Mini Sector Shift: "),X.chk("000000000000","Reserved: ")}function h(X,de){for(var ie=Math.ceil(X.length/de)-1,oe=[],he=1;he<ie;++he)oe[he-1]=X.slice(he*de,(he+1)*de);return oe[ie-1]=X.slice(ie*de),oe}function g(X,de,ie){for(var oe=0,he=0,pe=0,Pe=0,Le=0,Ne=ie.length,Ce=[],ke=[];oe<Ne;++oe)Ce[oe]=ke[oe]=oe,de[oe]=ie[oe];for(;Le<ke.length;++Le)oe=ke[Le],he=X[oe].L,pe=X[oe].R,Pe=X[oe].C,Ce[oe]===oe&&(he!==-1&&Ce[he]!==he&&(Ce[oe]=Ce[he]),pe!==-1&&Ce[pe]!==pe&&(Ce[oe]=Ce[pe])),Pe!==-1&&(Ce[Pe]=oe),he!==-1&&oe!=Ce[oe]&&(Ce[he]=Ce[oe],ke.lastIndexOf(he)<Le&&ke.push(he)),pe!==-1&&oe!=Ce[oe]&&(Ce[pe]=Ce[oe],ke.lastIndexOf(pe)<Le&&ke.push(pe));for(oe=1;oe<Ne;++oe)Ce[oe]===oe&&(pe!==-1&&Ce[pe]!==pe?Ce[oe]=Ce[pe]:he!==-1&&Ce[he]!==he&&(Ce[oe]=Ce[he]));for(oe=1;oe<Ne;++oe)if(X[oe].type!==0){if(Le=oe,Le!=Ce[Le])do Le=Ce[Le],de[oe]=de[Le]+"/"+de[oe];while(Le!==0&&Ce[Le]!==-1&&Le!=Ce[Le]);Ce[oe]=-1}for(de[0]+="/",oe=1;oe<Ne;++oe)X[oe].type!==2&&(de[oe]+="/")}function p(X,de,ie){for(var oe=X.start,he=X.size,pe=[],Pe=oe;ie&&he>0&&Pe>=0;)pe.push(de.slice(Pe*N,Pe*N+N)),he-=N,Pe=Cs(ie,Pe*4);return pe.length===0?De(0):Cn(pe).slice(0,X.size)}function v(X,de,ie,oe,he){var pe=D;if(X===D){if(de!==0)throw new Error("DIFAT chain shorter than expected")}else if(X!==-1){var Pe=ie[X],Le=(oe>>>2)-1;if(!Pe)return;for(var Ne=0;Ne<Le&&(pe=Cs(Pe,Ne*4))!==D;++Ne)he.push(pe);v(Cs(Pe,oe-4),de-1,ie,oe,he)}}function y(X,de,ie,oe,he){var pe=[],Pe=[];he||(he=[]);var Le=oe-1,Ne=0,Ce=0;for(Ne=de;Ne>=0;){he[Ne]=!0,pe[pe.length]=Ne,Pe.push(X[Ne]);var ke=ie[Math.floor(Ne*4/oe)];if(Ce=Ne*4&Le,oe<4+Ce)throw new Error("FAT boundary crossed: "+Ne+" 4 "+oe);if(!X[ke])break;Ne=Cs(X[ke],Ce)}return{nodes:pe,data:Mw([Pe])}}function b(X,de,ie,oe){var he=X.length,pe=[],Pe=[],Le=[],Ne=[],Ce=oe-1,ke=0,Ye=0,Qe=0,lt=0;for(ke=0;ke<he;++ke)if(Le=[],Qe=ke+de,Qe>=he&&(Qe-=he),!Pe[Qe]){Ne=[];var Xe=[];for(Ye=Qe;Ye>=0;){Xe[Ye]=!0,Pe[Ye]=!0,Le[Le.length]=Ye,Ne.push(X[Ye]);var st=ie[Math.floor(Ye*4/oe)];if(lt=Ye*4&Ce,oe<4+lt)throw new Error("FAT boundary crossed: "+Ye+" 4 "+oe);if(!X[st]||(Ye=Cs(X[st],lt),Xe[Ye]))break}pe[Qe]={nodes:Le,data:Mw([Ne])}}return pe}function _(X,de,ie,oe,he,pe,Pe,Le){for(var Ne=0,Ce=oe.length?2:0,ke=de[X].data,Ye=0,Qe=0,lt;Ye<ke.length;Ye+=128){var Xe=ke.slice(Ye,Ye+128);Pi(Xe,64),Qe=Xe.read_shift(2),lt=rb(Xe,0,Qe-Ce),oe.push(lt);var st={name:lt,type:Xe.read_shift(1),color:Xe.read_shift(1),L:Xe.read_shift(4,"i"),R:Xe.read_shift(4,"i"),C:Xe.read_shift(4,"i"),clsid:Xe.read_shift(16),state:Xe.read_shift(4,"i"),start:0,size:0},jt=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);jt!==0&&(st.ct=S(Xe,Xe.l-8));var tr=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);tr!==0&&(st.mt=S(Xe,Xe.l-8)),st.start=Xe.read_shift(4,"i"),st.size=Xe.read_shift(4,"i"),st.size<0&&st.start<0&&(st.size=st.type=0,st.start=D,st.name=""),st.type===5?(Ne=st.start,he>0&&Ne!==D&&(de[Ne].name="!StreamData")):st.size>=4096?(st.storage="fat",de[st.start]===void 0&&(de[st.start]=y(ie,st.start,de.fat_addrs,de.ssz)),de[st.start].name=st.name,st.content=de[st.start].data.slice(0,st.size)):(st.storage="minifat",st.size<0?st.size=0:Ne!==D&&st.start!==D&&de[Ne]&&(st.content=p(st,de[Ne].data,(de[Le]||{}).data))),st.content&&Pi(st.content,0),pe[lt]=st,Pe.push(st)}}function S(X,de){return new Date((ji(X,de+4)/1e7*Math.pow(2,32)+ji(X,de)/1e7-11644473600)*1e3)}function A(X,de){return c(),u(l.readFileSync(X),de)}function P(X,de){var ie=de&&de.type;switch(ie||er&&Buffer.isBuffer(X)&&(ie="buffer"),ie||"base64"){case"file":return A(X,de);case"base64":return u(va(yo(X)),de);case"binary":return u(va(X),de)}return u(X,de)}function T(X,de){var ie=de||{},oe=ie.root||"Root Entry";if(X.FullPaths||(X.FullPaths=[]),X.FileIndex||(X.FileIndex=[]),X.FullPaths.length!==X.FileIndex.length)throw new Error("inconsistent CFB structure");X.FullPaths.length===0&&(X.FullPaths[0]=oe+"/",X.FileIndex[0]={name:oe,type:5}),ie.CLSID&&(X.FileIndex[0].clsid=ie.CLSID),k(X)}function k(X){var de="Sh33tJ5";if(!br.find(X,"/"+de)){var ie=De(4);ie[0]=55,ie[1]=ie[3]=50,ie[2]=54,X.FileIndex.push({name:de,type:2,content:ie,size:4,L:69,R:69,C:69}),X.FullPaths.push(X.FullPaths[0]+de),L(X)}}function L(X,de){T(X);for(var ie=!1,oe=!1,he=X.FullPaths.length-1;he>=0;--he){var pe=X.FileIndex[he];switch(pe.type){case 0:oe?ie=!0:(X.FileIndex.pop(),X.FullPaths.pop());break;case 1:case 2:case 5:oe=!0,isNaN(pe.R*pe.L*pe.C)&&(ie=!0),pe.R>-1&&pe.L>-1&&pe.R==pe.L&&(ie=!0);break;default:ie=!0;break}}if(!(!ie&&!de)){var Pe=new Date(1987,1,19),Le=0,Ne=Object.create?Object.create(null):{},Ce=[];for(he=0;he<X.FullPaths.length;++he)Ne[X.FullPaths[he]]=!0,X.FileIndex[he].type!==0&&Ce.push([X.FullPaths[he],X.FileIndex[he]]);for(he=0;he<Ce.length;++he){var ke=n(Ce[he][0]);oe=Ne[ke],oe||(Ce.push([ke,{name:i(ke).replace("/",""),type:1,clsid:R,ct:Pe,mt:Pe,content:null}]),Ne[ke]=!0)}for(Ce.sort(function(lt,Xe){return r(lt[0],Xe[0])}),X.FullPaths=[],X.FileIndex=[],he=0;he<Ce.length;++he)X.FullPaths[he]=Ce[he][0],X.FileIndex[he]=Ce[he][1];for(he=0;he<Ce.length;++he){var Ye=X.FileIndex[he],Qe=X.FullPaths[he];if(Ye.name=i(Qe).replace("/",""),Ye.L=Ye.R=Ye.C=-(Ye.color=1),Ye.size=Ye.content?Ye.content.length:0,Ye.start=0,Ye.clsid=Ye.clsid||R,he===0)Ye.C=Ce.length>1?1:-1,Ye.size=0,Ye.type=5;else if(Qe.slice(-1)=="/"){for(Le=he+1;Le<Ce.length&&n(X.FullPaths[Le])!=Qe;++Le);for(Ye.C=Le>=Ce.length?-1:Le,Le=he+1;Le<Ce.length&&n(X.FullPaths[Le])!=n(Qe);++Le);Ye.R=Le>=Ce.length?-1:Le,Ye.type=1}else n(X.FullPaths[he+1]||"")==n(Qe)&&(Ye.R=he+1),Ye.type=2}}}function B(X,de){var ie=de||{};if(ie.fileType=="mad")return _t(X,ie);switch(L(X),ie.fileType){case"zip":return Yt(X,ie)}var oe=(function(lt){for(var Xe=0,st=0,jt=0;jt<lt.FileIndex.length;++jt){var tr=lt.FileIndex[jt];if(tr.content){var xr=tr.content.length;xr>0&&(xr<4096?Xe+=xr+63>>6:st+=xr+511>>9)}}for(var Zr=lt.FullPaths.length+3>>2,ea=Xe+7>>3,Ga=Xe+127>>7,Ta=ea+st+Zr+Ga,ta=Ta+127>>7,Ea=ta<=109?0:Math.ceil((ta-109)/127);Ta+ta+Ea+127>>7>ta;)Ea=++ta<=109?0:Math.ceil((ta-109)/127);var yi=[1,Ea,ta,Ga,Zr,st,Xe,0];return lt.FileIndex[0].size=Xe<<6,yi[7]=(lt.FileIndex[0].start=yi[0]+yi[1]+yi[2]+yi[3]+yi[4]+yi[5])+(yi[6]+7>>3),yi})(X),he=De(oe[7]<<9),pe=0,Pe=0;{for(pe=0;pe<8;++pe)he.write_shift(1,W[pe]);for(pe=0;pe<8;++pe)he.write_shift(2,0);for(he.write_shift(2,62),he.write_shift(2,3),he.write_shift(2,65534),he.write_shift(2,9),he.write_shift(2,6),pe=0;pe<3;++pe)he.write_shift(2,0);for(he.write_shift(4,0),he.write_shift(4,oe[2]),he.write_shift(4,oe[0]+oe[1]+oe[2]+oe[3]-1),he.write_shift(4,0),he.write_shift(4,4096),he.write_shift(4,oe[3]?oe[0]+oe[1]+oe[2]-1:D),he.write_shift(4,oe[3]),he.write_shift(-4,oe[1]?oe[0]-1:D),he.write_shift(4,oe[1]),pe=0;pe<109;++pe)he.write_shift(-4,pe<oe[2]?oe[1]+pe:-1)}if(oe[1])for(Pe=0;Pe<oe[1];++Pe){for(;pe<236+Pe*127;++pe)he.write_shift(-4,pe<oe[2]?oe[1]+pe:-1);he.write_shift(-4,Pe===oe[1]-1?D:Pe+1)}var Le=function(lt){for(Pe+=lt;pe<Pe-1;++pe)he.write_shift(-4,pe+1);lt&&(++pe,he.write_shift(-4,D))};for(Pe=pe=0,Pe+=oe[1];pe<Pe;++pe)he.write_shift(-4,z.DIFSECT);for(Pe+=oe[2];pe<Pe;++pe)he.write_shift(-4,z.FATSECT);Le(oe[3]),Le(oe[4]);for(var Ne=0,Ce=0,ke=X.FileIndex[0];Ne<X.FileIndex.length;++Ne)ke=X.FileIndex[Ne],ke.content&&(Ce=ke.content.length,!(Ce<4096)&&(ke.start=Pe,Le(Ce+511>>9)));for(Le(oe[6]+7>>3);he.l&511;)he.write_shift(-4,z.ENDOFCHAIN);for(Pe=pe=0,Ne=0;Ne<X.FileIndex.length;++Ne)ke=X.FileIndex[Ne],ke.content&&(Ce=ke.content.length,!(!Ce||Ce>=4096)&&(ke.start=Pe,Le(Ce+63>>6)));for(;he.l&511;)he.write_shift(-4,z.ENDOFCHAIN);for(pe=0;pe<oe[4]<<2;++pe){var Ye=X.FullPaths[pe];if(!Ye||Ye.length===0){for(Ne=0;Ne<17;++Ne)he.write_shift(4,0);for(Ne=0;Ne<3;++Ne)he.write_shift(4,-1);for(Ne=0;Ne<12;++Ne)he.write_shift(4,0);continue}ke=X.FileIndex[pe],pe===0&&(ke.start=ke.size?ke.start-1:D);var Qe=pe===0&&ie.root||ke.name;if(Ce=2*(Qe.length+1),he.write_shift(64,Qe,"utf16le"),he.write_shift(2,Ce),he.write_shift(1,ke.type),he.write_shift(1,ke.color),he.write_shift(-4,ke.L),he.write_shift(-4,ke.R),he.write_shift(-4,ke.C),ke.clsid)he.write_shift(16,ke.clsid,"hex");else for(Ne=0;Ne<4;++Ne)he.write_shift(4,0);he.write_shift(4,ke.state||0),he.write_shift(4,0),he.write_shift(4,0),he.write_shift(4,0),he.write_shift(4,0),he.write_shift(4,ke.start),he.write_shift(4,ke.size),he.write_shift(4,0)}for(pe=1;pe<X.FileIndex.length;++pe)if(ke=X.FileIndex[pe],ke.size>=4096)if(he.l=ke.start+1<<9,er&&Buffer.isBuffer(ke.content))ke.content.copy(he,he.l,0,ke.size),he.l+=ke.size+511&-512;else{for(Ne=0;Ne<ke.size;++Ne)he.write_shift(1,ke.content[Ne]);for(;Ne&511;++Ne)he.write_shift(1,0)}for(pe=1;pe<X.FileIndex.length;++pe)if(ke=X.FileIndex[pe],ke.size>0&&ke.size<4096)if(er&&Buffer.isBuffer(ke.content))ke.content.copy(he,he.l,0,ke.size),he.l+=ke.size+63&-64;else{for(Ne=0;Ne<ke.size;++Ne)he.write_shift(1,ke.content[Ne]);for(;Ne&63;++Ne)he.write_shift(1,0)}if(er)he.l=he.length;else for(;he.l<he.length;)he.write_shift(1,0);return he}function j(X,de){var ie=X.FullPaths.map(function(Ne){return Ne.toUpperCase()}),oe=ie.map(function(Ne){var Ce=Ne.split("/");return Ce[Ce.length-(Ne.slice(-1)=="/"?2:1)]}),he=!1;de.charCodeAt(0)===47?(he=!0,de=ie[0].slice(0,-1)+de):he=de.indexOf("/")!==-1;var pe=de.toUpperCase(),Pe=he===!0?ie.indexOf(pe):oe.indexOf(pe);if(Pe!==-1)return X.FileIndex[Pe];var Le=!pe.match(m0);for(pe=pe.replace(Xu,""),Le&&(pe=pe.replace(m0,"!")),Pe=0;Pe<ie.length;++Pe)if((Le?ie[Pe].replace(m0,"!"):ie[Pe]).replace(Xu,"")==pe||(Le?oe[Pe].replace(m0,"!"):oe[Pe]).replace(Xu,"")==pe)return X.FileIndex[Pe];return null}var N=64,D=-2,U="d0cf11e0a1b11ae1",W=[208,207,17,224,161,177,26,225],R="00000000000000000000000000000000",z={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:D,FREESECT:-1,HEADER_SIGNATURE:U,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:R,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Q(X,de,ie){c();var oe=B(X,ie);l.writeFileSync(de,oe)}function Z(X){for(var de=new Array(X.length),ie=0;ie<X.length;++ie)de[ie]=String.fromCharCode(X[ie]);return de.join("")}function ee(X,de){var ie=B(X,de);switch(de&&de.type||"buffer"){case"file":return c(),l.writeFileSync(de.filename,ie),ie;case"binary":return typeof ie=="string"?ie:Z(ie);case"base64":return df(typeof ie=="string"?ie:Z(ie));case"buffer":if(er)return Buffer.isBuffer(ie)?ie:To(ie);case"array":return typeof ie=="string"?va(ie):ie}return ie}var ce;function O(X){try{var de=X.InflateRaw,ie=new de;if(ie._processChunk(new Uint8Array([3,0]),ie._finishFlushFlag),ie.bytesRead)ce=X;else throw new Error("zlib does not expose bytesRead")}catch(oe){console.error("cannot use native zlib: "+(oe.message||oe))}}function I(X,de){if(!ce)return _e(X,de);var ie=ce.InflateRaw,oe=new ie,he=oe._processChunk(X.slice(X.l),oe._finishFlushFlag);return X.l+=oe.bytesRead,he}function M(X){return ce?ce.deflateRawSync(X):Mt(X)}var q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],fe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ae(X){var de=(X<<1|X<<11)&139536|(X<<5|X<<15)&558144;return(de>>16|de>>8|de)&255}for(var ne=typeof Uint8Array<"u",ve=ne?new Uint8Array(256):[],we=0;we<256;++we)ve[we]=ae(we);function se(X,de){var ie=ve[X&255];return de<=8?ie>>>8-de:(ie=ie<<8|ve[X>>8&255],de<=16?ie>>>16-de:(ie=ie<<8|ve[X>>16&255],ie>>>24-de))}function Fe(X,de){var ie=de&7,oe=de>>>3;return(X[oe]|(ie<=6?0:X[oe+1]<<8))>>>ie&3}function Ae(X,de){var ie=de&7,oe=de>>>3;return(X[oe]|(ie<=5?0:X[oe+1]<<8))>>>ie&7}function Ee(X,de){var ie=de&7,oe=de>>>3;return(X[oe]|(ie<=4?0:X[oe+1]<<8))>>>ie&15}function le(X,de){var ie=de&7,oe=de>>>3;return(X[oe]|(ie<=3?0:X[oe+1]<<8))>>>ie&31}function Re(X,de){var ie=de&7,oe=de>>>3;return(X[oe]|(ie<=1?0:X[oe+1]<<8))>>>ie&127}function tt(X,de,ie){var oe=de&7,he=de>>>3,pe=(1<<ie)-1,Pe=X[he]>>>oe;return ie<8-oe||(Pe|=X[he+1]<<8-oe,ie<16-oe)||(Pe|=X[he+2]<<16-oe,ie<24-oe)||(Pe|=X[he+3]<<24-oe),Pe&pe}function Ue(X,de,ie){var oe=de&7,he=de>>>3;return oe<=5?X[he]|=(ie&7)<<oe:(X[he]|=ie<<oe&255,X[he+1]=(ie&7)>>8-oe),de+3}function Ke(X,de,ie){var oe=de&7,he=de>>>3;return ie=(ie&1)<<oe,X[he]|=ie,de+1}function Ze(X,de,ie){var oe=de&7,he=de>>>3;return ie<<=oe,X[he]|=ie&255,ie>>>=8,X[he+1]=ie,de+8}function Je(X,de,ie){var oe=de&7,he=de>>>3;return ie<<=oe,X[he]|=ie&255,ie>>>=8,X[he+1]=ie&255,X[he+2]=ie>>>8,de+16}function ft(X,de){var ie=X.length,oe=2*ie>de?2*ie:de+5,he=0;if(ie>=de)return X;if(er){var pe=ww(oe);if(X.copy)X.copy(pe);else for(;he<X.length;++he)pe[he]=X[he];return pe}else if(ne){var Pe=new Uint8Array(oe);if(Pe.set)Pe.set(X);else for(;he<ie;++he)Pe[he]=X[he];return Pe}return X.length=oe,X}function pt(X){for(var de=new Array(X),ie=0;ie<X;++ie)de[ie]=0;return de}function bt(X,de,ie){var oe=1,he=0,pe=0,Pe=0,Le=0,Ne=X.length,Ce=ne?new Uint16Array(32):pt(32);for(pe=0;pe<32;++pe)Ce[pe]=0;for(pe=Ne;pe<ie;++pe)X[pe]=0;Ne=X.length;var ke=ne?new Uint16Array(Ne):pt(Ne);for(pe=0;pe<Ne;++pe)Ce[he=X[pe]]++,oe<he&&(oe=he),ke[pe]=0;for(Ce[0]=0,pe=1;pe<=oe;++pe)Ce[pe+16]=Le=Le+Ce[pe-1]<<1;for(pe=0;pe<Ne;++pe)Le=X[pe],Le!=0&&(ke[pe]=Ce[Le+16]++);var Ye=0;for(pe=0;pe<Ne;++pe)if(Ye=X[pe],Ye!=0)for(Le=se(ke[pe],oe)>>oe-Ye,Pe=(1<<oe+4-Ye)-1;Pe>=0;--Pe)de[Le|Pe<<Ye]=Ye&15|pe<<4;return oe}var Ot=ne?new Uint16Array(512):pt(512),Ft=ne?new Uint16Array(32):pt(32);if(!ne){for(var zt=0;zt<512;++zt)Ot[zt]=0;for(zt=0;zt<32;++zt)Ft[zt]=0}(function(){for(var X=[],de=0;de<32;de++)X.push(5);bt(X,Ft,32);var ie=[];for(de=0;de<=143;de++)ie.push(8);for(;de<=255;de++)ie.push(9);for(;de<=279;de++)ie.push(7);for(;de<=287;de++)ie.push(8);bt(ie,Ot,288)})();var wt=(function(){for(var de=ne?new Uint8Array(32768):[],ie=0,oe=0;ie<fe.length-1;++ie)for(;oe<fe[ie+1];++oe)de[oe]=ie;for(;oe<32768;++oe)de[oe]=29;var he=ne?new Uint8Array(259):[];for(ie=0,oe=0;ie<Y.length-1;++ie)for(;oe<Y[ie+1];++oe)he[oe]=ie;function pe(Le,Ne){for(var Ce=0;Ce<Le.length;){var ke=Math.min(65535,Le.length-Ce),Ye=Ce+ke==Le.length;for(Ne.write_shift(1,+Ye),Ne.write_shift(2,ke),Ne.write_shift(2,~ke&65535);ke-- >0;)Ne[Ne.l++]=Le[Ce++]}return Ne.l}function Pe(Le,Ne){for(var Ce=0,ke=0,Ye=ne?new Uint16Array(32768):[];ke<Le.length;){var Qe=Math.min(65535,Le.length-ke);if(Qe<10){for(Ce=Ue(Ne,Ce,+(ke+Qe==Le.length)),Ce&7&&(Ce+=8-(Ce&7)),Ne.l=Ce/8|0,Ne.write_shift(2,Qe),Ne.write_shift(2,~Qe&65535);Qe-- >0;)Ne[Ne.l++]=Le[ke++];Ce=Ne.l*8;continue}Ce=Ue(Ne,Ce,+(ke+Qe==Le.length)+2);for(var lt=0;Qe-- >0;){var Xe=Le[ke];lt=(lt<<5^Xe)&32767;var st=-1,jt=0;if((st=Ye[lt])&&(st|=ke&-32768,st>ke&&(st-=32768),st<ke))for(;Le[st+jt]==Le[ke+jt]&&jt<250;)++jt;if(jt>2){Xe=he[jt],Xe<=22?Ce=Ze(Ne,Ce,ve[Xe+1]>>1)-1:(Ze(Ne,Ce,3),Ce+=5,Ze(Ne,Ce,ve[Xe-23]>>5),Ce+=3);var tr=Xe<8?0:Xe-4>>2;tr>0&&(Je(Ne,Ce,jt-Y[Xe]),Ce+=tr),Xe=de[ke-st],Ce=Ze(Ne,Ce,ve[Xe]>>3),Ce-=3;var xr=Xe<4?0:Xe-2>>1;xr>0&&(Je(Ne,Ce,ke-st-fe[Xe]),Ce+=xr);for(var Zr=0;Zr<jt;++Zr)Ye[lt]=ke&32767,lt=(lt<<5^Le[ke])&32767,++ke;Qe-=jt-1}else Xe<=143?Xe=Xe+48:Ce=Ke(Ne,Ce,1),Ce=Ze(Ne,Ce,ve[Xe]),Ye[lt]=ke&32767,++ke}Ce=Ze(Ne,Ce,0)-1}return Ne.l=(Ce+7)/8|0,Ne.l}return function(Ne,Ce){return Ne.length<8?pe(Ne,Ce):Pe(Ne,Ce)}})();function Mt(X){var de=De(50+Math.floor(X.length*1.1)),ie=wt(X,de);return de.slice(0,ie)}var at=ne?new Uint16Array(32768):pt(32768),Dr=ne?new Uint16Array(32768):pt(32768),Wt=ne?new Uint16Array(128):pt(128),An=1,Vt=1;function fr(X,de){var ie=le(X,de)+257;de+=5;var oe=le(X,de)+1;de+=5;var he=Ee(X,de)+4;de+=4;for(var pe=0,Pe=ne?new Uint8Array(19):pt(19),Le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ne=1,Ce=ne?new Uint8Array(8):pt(8),ke=ne?new Uint8Array(8):pt(8),Ye=Pe.length,Qe=0;Qe<he;++Qe)Pe[q[Qe]]=pe=Ae(X,de),Ne<pe&&(Ne=pe),Ce[pe]++,de+=3;var lt=0;for(Ce[0]=0,Qe=1;Qe<=Ne;++Qe)ke[Qe]=lt=lt+Ce[Qe-1]<<1;for(Qe=0;Qe<Ye;++Qe)(lt=Pe[Qe])!=0&&(Le[Qe]=ke[lt]++);var Xe=0;for(Qe=0;Qe<Ye;++Qe)if(Xe=Pe[Qe],Xe!=0){lt=ve[Le[Qe]]>>8-Xe;for(var st=(1<<7-Xe)-1;st>=0;--st)Wt[lt|st<<Xe]=Xe&7|Qe<<3}var jt=[];for(Ne=1;jt.length<ie+oe;)switch(lt=Wt[Re(X,de)],de+=lt&7,lt>>>=3){case 16:for(pe=3+Fe(X,de),de+=2,lt=jt[jt.length-1];pe-- >0;)jt.push(lt);break;case 17:for(pe=3+Ae(X,de),de+=3;pe-- >0;)jt.push(0);break;case 18:for(pe=11+Re(X,de),de+=7;pe-- >0;)jt.push(0);break;default:jt.push(lt),Ne<lt&&(Ne=lt);break}var tr=jt.slice(0,ie),xr=jt.slice(ie);for(Qe=ie;Qe<286;++Qe)tr[Qe]=0;for(Qe=oe;Qe<30;++Qe)xr[Qe]=0;return An=bt(tr,at,286),Vt=bt(xr,Dr,30),de}function Vn(X,de){if(X[0]==3&&!(X[1]&3))return[Vs(de),2];for(var ie=0,oe=0,he=ww(de||1<<18),pe=0,Pe=he.length>>>0,Le=0,Ne=0;(oe&1)==0;){if(oe=Ae(X,ie),ie+=3,oe>>>1)oe>>1==1?(Le=9,Ne=5):(ie=fr(X,ie),Le=An,Ne=Vt);else{ie&7&&(ie+=8-(ie&7));var Ce=X[ie>>>3]|X[(ie>>>3)+1]<<8;if(ie+=32,Ce>0)for(!de&&Pe<pe+Ce&&(he=ft(he,pe+Ce),Pe=he.length);Ce-- >0;)he[pe++]=X[ie>>>3],ie+=8;continue}for(;;){!de&&Pe<pe+32767&&(he=ft(he,pe+32767),Pe=he.length);var ke=tt(X,ie,Le),Ye=oe>>>1==1?Ot[ke]:at[ke];if(ie+=Ye&15,Ye>>>=4,(Ye>>>8&255)===0)he[pe++]=Ye;else{if(Ye==256)break;Ye-=257;var Qe=Ye<8?0:Ye-4>>2;Qe>5&&(Qe=0);var lt=pe+Y[Ye];Qe>0&&(lt+=tt(X,ie,Qe),ie+=Qe),ke=tt(X,ie,Ne),Ye=oe>>>1==1?Ft[ke]:Dr[ke],ie+=Ye&15,Ye>>>=4;var Xe=Ye<4?0:Ye-2>>1,st=fe[Ye];for(Xe>0&&(st+=tt(X,ie,Xe),ie+=Xe),!de&&Pe<lt&&(he=ft(he,lt+100),Pe=he.length);pe<lt;)he[pe]=he[pe-st],++pe}}}return de?[he,ie+7>>>3]:[he.slice(0,pe),ie+7>>>3]}function _e(X,de){var ie=X.slice(X.l||0),oe=Vn(ie,de);return X.l+=oe[1],oe[0]}function mt(X,de){if(X)typeof console<"u"&&console.error(de);else throw new Error(de)}function Et(X,de){var ie=X;Pi(ie,0);var oe=[],he=[],pe={FileIndex:oe,FullPaths:he};T(pe,{root:de.root});for(var Pe=ie.length-4;(ie[Pe]!=80||ie[Pe+1]!=75||ie[Pe+2]!=5||ie[Pe+3]!=6)&&Pe>=0;)--Pe;ie.l=Pe+4,ie.l+=4;var Le=ie.read_shift(2);ie.l+=6;var Ne=ie.read_shift(4);for(ie.l=Ne,Pe=0;Pe<Le;++Pe){ie.l+=20;var Ce=ie.read_shift(4),ke=ie.read_shift(4),Ye=ie.read_shift(2),Qe=ie.read_shift(2),lt=ie.read_shift(2);ie.l+=8;var Xe=ie.read_shift(4),st=s(ie.slice(ie.l+Ye,ie.l+Ye+Qe));ie.l+=Ye+Qe+lt;var jt=ie.l;ie.l=Xe+4,Sr(ie,Ce,ke,pe,st),ie.l=jt}return pe}function Sr(X,de,ie,oe,he){X.l+=2;var pe=X.read_shift(2),Pe=X.read_shift(2),Le=o(X);if(pe&8257)throw new Error("Unsupported ZIP encryption");for(var Ne=X.read_shift(4),Ce=X.read_shift(4),ke=X.read_shift(4),Ye=X.read_shift(2),Qe=X.read_shift(2),lt="",Xe=0;Xe<Ye;++Xe)lt+=String.fromCharCode(X[X.l++]);if(Qe){var st=s(X.slice(X.l,X.l+Qe));(st[21589]||{}).mt&&(Le=st[21589].mt),((he||{})[21589]||{}).mt&&(Le=he[21589].mt)}X.l+=Qe;var jt=X.slice(X.l,X.l+Ce);switch(Pe){case 8:jt=I(X,ke);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Pe)}var tr=!1;pe&8&&(Ne=X.read_shift(4),Ne==134695760&&(Ne=X.read_shift(4),tr=!0),Ce=X.read_shift(4),ke=X.read_shift(4)),Ce!=de&&mt(tr,"Bad compressed size: "+de+" != "+Ce),ke!=ie&&mt(tr,"Bad uncompressed size: "+ie+" != "+ke),ai(oe,lt,jt,{unsafe:!0,mt:Le})}function Yt(X,de){var ie=de||{},oe=[],he=[],pe=De(1),Pe=ie.compression?8:0,Le=0,Ne=0,Ce=0,ke=0,Ye=0,Qe=X.FullPaths[0],lt=Qe,Xe=X.FileIndex[0],st=[],jt=0;for(Ne=1;Ne<X.FullPaths.length;++Ne)if(lt=X.FullPaths[Ne].slice(Qe.length),Xe=X.FileIndex[Ne],!(!Xe.size||!Xe.content||lt=="Sh33tJ5")){var tr=ke,xr=De(lt.length);for(Ce=0;Ce<lt.length;++Ce)xr.write_shift(1,lt.charCodeAt(Ce)&127);xr=xr.slice(0,xr.l),st[Ye]=rI.buf(Xe.content,0);var Zr=Xe.content;Pe==8&&(Zr=M(Zr)),pe=De(30),pe.write_shift(4,67324752),pe.write_shift(2,20),pe.write_shift(2,Le),pe.write_shift(2,Pe),Xe.mt?a(pe,Xe.mt):pe.write_shift(4,0),pe.write_shift(-4,st[Ye]),pe.write_shift(4,Zr.length),pe.write_shift(4,Xe.content.length),pe.write_shift(2,xr.length),pe.write_shift(2,0),ke+=pe.length,oe.push(pe),ke+=xr.length,oe.push(xr),ke+=Zr.length,oe.push(Zr),pe=De(46),pe.write_shift(4,33639248),pe.write_shift(2,0),pe.write_shift(2,20),pe.write_shift(2,Le),pe.write_shift(2,Pe),pe.write_shift(4,0),pe.write_shift(-4,st[Ye]),pe.write_shift(4,Zr.length),pe.write_shift(4,Xe.content.length),pe.write_shift(2,xr.length),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(4,0),pe.write_shift(4,tr),jt+=pe.l,he.push(pe),jt+=xr.length,he.push(xr),++Ye}return pe=De(22),pe.write_shift(4,101010256),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,Ye),pe.write_shift(2,Ye),pe.write_shift(4,jt),pe.write_shift(4,ke),pe.write_shift(2,0),Cn([Cn(oe),Cn(he),pe])}var Nt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function At(X,de){if(X.ctype)return X.ctype;var ie=X.name||"",oe=ie.match(/\.([^\.]+)$/);return oe&&Nt[oe[1]]||de&&(oe=(ie=de).match(/[\.\\]([^\.\\])+$/),oe&&Nt[oe[1]])?Nt[oe[1]]:"application/octet-stream"}function Xt(X){for(var de=df(X),ie=[],oe=0;oe<de.length;oe+=76)ie.push(de.slice(oe,oe+76));return ie.join(`\r
254
+ `)+`\r
255
+ `}function Ha(X){var de=X.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ce){var ke=Ce.charCodeAt(0).toString(16).toUpperCase();return"="+(ke.length==1?"0"+ke:ke)});de=de.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),de.charAt(0)==`
256
+ `&&(de="=0D"+de.slice(1)),de=de.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
257
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var ie=[],oe=de.split(`\r
258
+ `),he=0;he<oe.length;++he){var pe=oe[he];if(pe.length==0){ie.push("");continue}for(var Pe=0;Pe<pe.length;){var Le=76,Ne=pe.slice(Pe,Pe+Le);Ne.charAt(Le-1)=="="?Le--:Ne.charAt(Le-2)=="="?Le-=2:Ne.charAt(Le-3)=="="&&(Le-=3),Ne=pe.slice(Pe,Pe+Le),Pe+=Le,Pe<pe.length&&(Ne+="="),ie.push(Ne)}}return ie.join(`\r
259
+ `)}function ln(X){for(var de=[],ie=0;ie<X.length;++ie){for(var oe=X[ie];ie<=X.length&&oe.charAt(oe.length-1)=="=";)oe=oe.slice(0,oe.length-1)+X[++ie];de.push(oe)}for(var he=0;he<de.length;++he)de[he]=de[he].replace(/[=][0-9A-Fa-f]{2}/g,function(pe){return String.fromCharCode(parseInt(pe.slice(1),16))});return va(de.join(`\r
260
+ `))}function Ii(X,de,ie){for(var oe="",he="",pe="",Pe,Le=0;Le<10;++Le){var Ne=de[Le];if(!Ne||Ne.match(/^\s*$/))break;var Ce=Ne.match(/^(.*?):\s*([^\s].*)$/);if(Ce)switch(Ce[1].toLowerCase()){case"content-location":oe=Ce[2].trim();break;case"content-type":pe=Ce[2].trim();break;case"content-transfer-encoding":he=Ce[2].trim();break}}switch(++Le,he.toLowerCase()){case"base64":Pe=va(yo(de.slice(Le).join("")));break;case"quoted-printable":Pe=ln(de.slice(Le));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+he)}var ke=ai(X,oe.slice(ie.length),Pe,{unsafe:!0});pe&&(ke.ctype=pe)}function Fi(X,de){if(Z(X.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ie=de&&de.root||"",oe=(er&&Buffer.isBuffer(X)?X.toString("binary"):Z(X)).split(`\r
261
+ `),he=0,pe="";for(he=0;he<oe.length;++he)if(pe=oe[he],!!/^Content-Location:/i.test(pe)&&(pe=pe.slice(pe.indexOf("file")),ie||(ie=pe.slice(0,pe.lastIndexOf("/")+1)),pe.slice(0,ie.length)!=ie))for(;ie.length>0&&(ie=ie.slice(0,ie.length-1),ie=ie.slice(0,ie.lastIndexOf("/")+1),pe.slice(0,ie.length)!=ie););var Pe=(oe[1]||"").match(/boundary="(.*?)"/);if(!Pe)throw new Error("MAD cannot find boundary");var Le="--"+(Pe[1]||""),Ne=[],Ce=[],ke={FileIndex:Ne,FullPaths:Ce};T(ke);var Ye,Qe=0;for(he=0;he<oe.length;++he){var lt=oe[he];lt!==Le&&lt!==Le+"--"||(Qe++&&Ii(ke,oe.slice(Ye,he),ie),Ye=he)}return ke}function _t(X,de){var ie=de||{},oe=ie.boundary||"SheetJS";oe="------="+oe;for(var he=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+oe.slice(2)+'"',"","",""],pe=X.FullPaths[0],Pe=pe,Le=X.FileIndex[0],Ne=1;Ne<X.FullPaths.length;++Ne)if(Pe=X.FullPaths[Ne].slice(pe.length),Le=X.FileIndex[Ne],!(!Le.size||!Le.content||Pe=="Sh33tJ5")){Pe=Pe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(jt){return"_x"+jt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(jt){return"_u"+jt.charCodeAt(0).toString(16)+"_"});for(var Ce=Le.content,ke=er&&Buffer.isBuffer(Ce)?Ce.toString("binary"):Z(Ce),Ye=0,Qe=Math.min(1024,ke.length),lt=0,Xe=0;Xe<=Qe;++Xe)(lt=ke.charCodeAt(Xe))>=32&&lt<128&&++Ye;var st=Ye>=Qe*4/5;he.push(oe),he.push("Content-Location: "+(ie.root||"file:///C:/SheetJS/")+Pe),he.push("Content-Transfer-Encoding: "+(st?"quoted-printable":"base64")),he.push("Content-Type: "+At(Le,Pe)),he.push(""),he.push(st?Ha(ke):Xt(ke))}return he.push(oe+`--\r
262
+ `),he.join(`\r
263
+ `)}function xi(X){var de={};return T(de,X),de}function ai(X,de,ie,oe){var he=oe&&oe.unsafe;he||T(X);var pe=!he&&br.find(X,de);if(!pe){var Pe=X.FullPaths[0];de.slice(0,Pe.length)==Pe?Pe=de:(Pe.slice(-1)!="/"&&(Pe+="/"),Pe=(Pe+de).replace("//","/")),pe={name:i(de),type:2},X.FileIndex.push(pe),X.FullPaths.push(Pe),he||br.utils.cfb_gc(X)}return pe.content=ie,pe.size=ie?ie.length:0,oe&&(oe.CLSID&&(pe.clsid=oe.CLSID),oe.mt&&(pe.mt=oe.mt),oe.ct&&(pe.ct=oe.ct)),pe}function Fn(X,de){T(X);var ie=br.find(X,de);if(ie){for(var oe=0;oe<X.FileIndex.length;++oe)if(X.FileIndex[oe]==ie)return X.FileIndex.splice(oe,1),X.FullPaths.splice(oe,1),!0}return!1}function Hr(X,de,ie){T(X);var oe=br.find(X,de);if(oe){for(var he=0;he<X.FileIndex.length;++he)if(X.FileIndex[he]==oe)return X.FileIndex[he].name=i(ie),X.FullPaths[he]=ie,!0}return!1}function Rr(X){L(X,!0)}return t.find=j,t.read=P,t.parse=u,t.write=ee,t.writeFile=Q,t.utils={cfb_new:xi,cfb_add:ai,cfb_del:Fn,cfb_mov:Hr,cfb_gc:Rr,ReadShift:Zu,CheckField:_P,prep_blob:Pi,bconcat:Cn,use_zlib:O,_deflateRaw:Mt,_inflateRaw:_e,consts:z},t})();function nI(e){return typeof e=="string"?cp(e):Array.isArray(e)?OL(e):e}function rh(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=cp(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?mf(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([nI(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=th(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function In(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function Ow(e,t){for(var r=[],n=In(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function Z2(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function hp(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function iI(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Y0=new Date(1899,11,30,0,0,0);function pi(e,t){var r=e.getTime(),n=Y0.getTime()+(e.getTimezoneOffset()-Y0.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var aP=new Date,aI=Y0.getTime()+(aP.getTimezoneOffset()-Y0.getTimezoneOffset())*6e4,jw=aP.getTimezoneOffset();function oP(e){var t=new Date;return t.setTime(e*24*60*60*1e3+aI),t.getTimezoneOffset()!==jw&&t.setTime(t.getTime()+(t.getTimezoneOffset()-jw)*6e4),t}var Cw=new Date("2017-02-19T19:06:09.000Z"),sP=isNaN(Cw.getFullYear())?new Date("2/19/17"):Cw,oI=sP.getFullYear()==2017;function ni(e,t){var r=new Date(e);if(oI)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(sP.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function dp(e,t){if(er&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function mi(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=mi(e[r]));return t}function Ur(e,t){for(var r="";r.length<t;)r+=e;return r}function ho(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return r=-r,a}),!isNaN(t=Number(n)))?t/r:t}var sI=["january","february","march","april","may","june","july","august","september","october","november","december"];function pf(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&sI.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function qt(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return er?n=To(r):n=jL(r),br.utils.cfb_add(e,t,n)}br.utils.cfb_add(e,t,r)}else e.file(t,r)}function Q2(){return br.utils.cfb_new()}var sn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
+ `,lI={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},eb=Z2(lI),tb=/[&<>'"]/g,cI=/[\u0000-\u0008\u000b-\u001f]/g;function vr(e){var t=e+"";return t.replace(tb,function(r){return eb[r]}).replace(cI,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function kw(e){return vr(e).replace(/ /g,"_x0020_")}var lP=/[\u0000-\u001f]/g;function uI(e){var t=e+"";return t.replace(tb,function(r){return eb[r]}).replace(/\n/g,"<br/>").replace(lP,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function fI(e){var t=e+"";return t.replace(tb,function(r){return eb[r]}).replace(lP,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function hI(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function dI(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function z1(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=i&63,t+=String.fromCharCode(o);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function Lw(e){var t=Vs(2*e.length),r,n,i=1,a=0,o=0,s;for(n=0;n<e.length;n+=i)i=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),i=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[a++]=o&255,t[a++]=o>>>8,o=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function Iw(e){return To(e,"binary").toString("utf8")}var g0="foo bar baz☃🍣",Ju=er&&(Iw(g0)==z1(g0)&&Iw||Lw(g0)==z1(g0)&&Lw)||z1,mf=er?function(e){return To(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},pI=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
265
+ `).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}})(),cP=/(^\s|\s$|\n)/;function kn(e,t){return"<"+e+(t.match(cP)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function vf(e){return In(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function et(e,t,r){return"<"+e+(r!=null?vf(r):"")+(t!=null?(t.match(cP)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function yy(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function mI(e,t){switch(typeof e){case"string":var r=et("vt:lpwstr",vr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return et((e|0)==e?"vt:i4":"vt:r8",vr(String(e)));case"boolean":return et("vt:bool",e?"true":"false")}if(e instanceof Date)return et("vt:filetime",yy(e));throw new Error("Unable to serialize "+e)}var bn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},qc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Oi={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function vI(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function gI(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=n?-t:t;isFinite(o)?o==0?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[r+s]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var Fw=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},Mw=er?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:To(t)})):Fw(e)}:Fw,Dw=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(qu(e,i)));return n.join("").replace(Xu,"")},rb=er?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Xu,""):Dw(e,t,r)}:Dw,Rw=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},uP=er?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Rw(e,t,r)}:Rw,Bw=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Vl(e,i)));return n.join("")},nh=er?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Bw(t,r,n)}:Bw,fP=function(e,t){var r=ji(e,t);return r>0?nh(e,t+4,t+4+r-1):""},hP=fP,dP=function(e,t){var r=ji(e,t);return r>0?nh(e,t+4,t+4+r-1):""},pP=dP,mP=function(e,t){var r=2*ji(e,t);return r>0?nh(e,t+4,t+4+r-1):""},vP=mP,gP=function(t,r){var n=ji(t,r);return n>0?rb(t,r+4,r+4+n):""},xP=gP,yP=function(e,t){var r=ji(e,t);return r>0?nh(e,t+4,t+4+r):""},bP=yP,wP=function(e,t){return vI(e,t)},K0=wP,nb=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};er&&(hP=function(t,r){if(!Buffer.isBuffer(t))return fP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},pP=function(t,r){if(!Buffer.isBuffer(t))return dP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},vP=function(t,r){if(!Buffer.isBuffer(t))return mP(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},xP=function(t,r){if(!Buffer.isBuffer(t))return gP(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},bP=function(t,r){if(!Buffer.isBuffer(t))return yP(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},K0=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):wP(t,r)},nb=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Vl=function(e,t){return e[t]},qu=function(e,t){return e[t+1]*256+e[t]},xI=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},ji=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Cs=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},yI=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Zu(e,t){var r="",n,i,a=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,er&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(qu(this,c)),c+=2;e*=2;break;case"utf8":r=nh(this,this.l,this.l+e);break;case"utf16le":e*=2,r=rb(this,this.l,this.l+e);break;case"wstr":return Zu.call(this,e,"dbcs");case"lpstr-ansi":r=hP(this,this.l),e=4+ji(this,this.l);break;case"lpstr-cp":r=pP(this,this.l),e=4+ji(this,this.l);break;case"lpwstr":r=vP(this,this.l),e=4+2*ji(this,this.l);break;case"lpp4":e=4+ji(this,this.l),r=xP(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+ji(this,this.l),r=bP(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=Vl(this,this.l+e++))!==0;)a.push(p0(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=qu(this,this.l+e))!==0;)a.push(p0(o)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Vl(this,c),this.l=c+1,s=Zu.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(p0(qu(this,c))),c+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Vl(this,c),this.l=c+1,s=Zu.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(p0(Vl(this,c))),c+=1}r=a.join("");break;default:switch(e){case 1:return n=Vl(this,this.l),this.l++,n;case 2:return n=(t==="i"?xI:qu)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?Cs:yI)(this,this.l),this.l+=4,n):(i=ji(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=K0(this,this.l):i=K0([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=uP(this,this.l,e);break}}return this.l+=e,r}var bI=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},wI=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},_I=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function SI(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)_I(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,bI(this,t,this.l);break;case 8:if(n=8,r==="f"){gI(this,t,this.l);break}case 16:break;case-4:n=4,wI(this,t,this.l);break}return this.l+=n,this}function _P(e,t){var r=uP(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Pi(e,t){e.l=t,e.read_shift=Zu,e.chk=_P,e.write_shift=SI}function Ba(e,t){e.l+=t}function De(e){var t=Vs(e);return Pi(t,0),t}function di(){var e=[],t=er?256:2048,r=function(c){var u=De(c);return Pi(u,0),u},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(c){return n&&c<n.length-n.l?n:(i(),n=r(Math.max(c+1,t)))},o=function(){return i(),Cn(e)},s=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function We(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=v9[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var o=e.next(a);i<=127?o.write_shift(1,i):(o.write_shift(1,(i&127)+128),o.write_shift(1,i>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&nb(r)&&e.push(r)}}function Qu(e,t,r){var n=mi(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function $w(e,t,r){var n=mi(e);return n.s=Qu(n.s,t.s,r),n.e=Qu(n.e,t.s,r),n}function ef(e,t){if(e.cRel&&e.c<0)for(e=mi(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=mi(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=gr(e);return!e.cRel&&e.cRel!=null&&(r=EI(r)),!e.rRel&&e.rRel!=null&&(r=AI(r)),r}function W1(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Hn(e.s.c)+":"+(e.e.cRel?"":"$")+Hn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Ln(e.s.r)+":"+(e.e.rRel?"":"$")+Ln(e.e.r):ef(e.s,t.biff)+":"+ef(e.e,t.biff)}function ib(e){return parseInt(TI(e),10)-1}function Ln(e){return""+(e+1)}function AI(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function TI(e){return e.replace(/\$(\d+)$/,"$1")}function ab(e){for(var t=NI(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Hn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function EI(e){return e.replace(/^([A-Z])/,"$$$1")}function NI(e){return e.replace(/^\$([A-Z])/,"$1")}function PI(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function wn(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function gr(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Li(e){var t=e.indexOf(":");return t==-1?{s:wn(e),e:wn(e)}:{s:wn(e.slice(0,t)),e:wn(e.slice(t+1))}}function an(e,t){return typeof t>"u"||typeof t=="number"?an(e.s,e.e):(typeof e!="string"&&(e=gr(e)),typeof t!="string"&&(t=gr(t)),e==t?e:e+":"+t)}function Ir(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function qw(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=ss(e.z,r?pi(t):t)}catch{}try{return e.w=ss((e.XF||{}).numFmtId||(r?14:0),r?pi(t):t)}catch{return""+t}}function bo(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?ih[e.v]||e.v:t==null?qw(e,e.v):qw(e,t))}function el(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function SP(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),o=0,s=0;if(a&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?wn(n.origin):n.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=Ir(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var h={v:t[f][d]},g=o+f,p=s+d;if(c.s.r>g&&(c.s.r=g),c.s.c>p&&(c.s.c=p),c.e.r<g&&(c.e.r=g),c.e.c<p&&(c.e.c=p),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))h=t[f][d];else if(Array.isArray(h.v)&&(h.f=t[f][d][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(n.nullError)h.t="e",h.v=0;else if(n.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=n.dateNF||Wr[14],n.cellDates?(h.t="d",h.w=ss(h.z,pi(h.v))):(h.t="n",h.v=pi(h.v),h.w=ss(h.z,h.v))):h.t="s";if(i)a[g]||(a[g]=[]),a[g][p]&&a[g][p].z&&(h.z=a[g][p].z),a[g][p]=h;else{var v=gr({c:p,r:g});a[v]&&a[v].z&&(h.z=a[v].z),a[v]=h}}}return c.s.c<1e7&&(a["!ref"]=an(c)),a}function Uc(e,t){return SP(null,e,t)}function OI(e){return e.read_shift(4,"i")}function wa(e,t){return t||(t=De(4)),t.write_shift(4,e),t}function Gn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function _n(e,t){var r=!1;return t==null&&(r=!0,t=De(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function jI(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function CI(e,t){return t||(t=De(4)),t.write_shift(2,0),t.write_shift(2,0),t}function ob(e,t){var r=e.l,n=e.read_shift(1),i=Gn(e),a=[],o={t:i,h:i};if((n&1)!==0){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(jI(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function kI(e,t){var r=!1;return t==null&&(r=!0,t=De(15+4*e.t.length)),t.write_shift(1,0),_n(e.t,t),r?t.slice(0,t.l):t}var LI=ob;function II(e,t){var r=!1;return t==null&&(r=!0,t=De(23+4*e.t.length)),t.write_shift(1,1),_n(e.t,t),t.write_shift(4,1),CI({},t),r?t.slice(0,t.l):t}function Zi(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function tl(e,t){return t==null&&(t=De(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function rl(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function nl(e,t){return t==null&&(t=De(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var FI=Gn,AP=_n;function sb(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function X0(e,t){var r=!1;return t==null&&(r=!0,t=De(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var MI=Gn,by=sb,lb=X0;function TP(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?K0([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Cs(t,0)>>2;return r?i/100:i}function EP(e,t){t==null&&(t=De(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function NP(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function DI(e,t){return t||(t=De(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var il=NP,zc=DI;function Wc(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ys(e,t){return(t||De(8)).write_shift(8,e,"f")}function RI(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var c=VI[i];c&&(t.rgb=Zw(c));break;case 2:t.rgb=Zw([o,s,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function J0(e,t){if(t||(t=De(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function BI(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function $I(e,t){t||(t=De(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var PP=2,Ei=3,x0=11,Z0=19,y0=64,qI=65,UI=71,zI=4108,WI=4126,On=80,Uw={1:{n:"CodePage",t:PP},2:{n:"Category",t:On},3:{n:"PresentationFormat",t:On},4:{n:"ByteCount",t:Ei},5:{n:"LineCount",t:Ei},6:{n:"ParagraphCount",t:Ei},7:{n:"SlideCount",t:Ei},8:{n:"NoteCount",t:Ei},9:{n:"HiddenCount",t:Ei},10:{n:"MultimediaClipCount",t:Ei},11:{n:"ScaleCrop",t:x0},12:{n:"HeadingPairs",t:zI},13:{n:"TitlesOfParts",t:WI},14:{n:"Manager",t:On},15:{n:"Company",t:On},16:{n:"LinksUpToDate",t:x0},17:{n:"CharacterCount",t:Ei},19:{n:"SharedDoc",t:x0},22:{n:"HyperlinksChanged",t:x0},23:{n:"AppVersion",t:Ei,p:"version"},24:{n:"DigSig",t:qI},26:{n:"ContentType",t:On},27:{n:"ContentStatus",t:On},28:{n:"Language",t:On},29:{n:"Version",t:On},255:{},2147483648:{n:"Locale",t:Z0},2147483651:{n:"Behavior",t:Z0},1919054434:{}},zw={1:{n:"CodePage",t:PP},2:{n:"Title",t:On},3:{n:"Subject",t:On},4:{n:"Author",t:On},5:{n:"Keywords",t:On},6:{n:"Comments",t:On},7:{n:"Template",t:On},8:{n:"LastAuthor",t:On},9:{n:"RevNumber",t:On},10:{n:"EditTime",t:y0},11:{n:"LastPrinted",t:y0},12:{n:"CreatedDate",t:y0},13:{n:"ModifiedDate",t:y0},14:{n:"PageCount",t:Ei},15:{n:"WordCount",t:Ei},16:{n:"CharCount",t:Ei},17:{n:"Thumbnail",t:UI},18:{n:"Application",t:On},19:{n:"DocSecurity",t:Ei},255:{},2147483648:{n:"Locale",t:Z0},2147483651:{n:"Behavior",t:Z0},1919054434:{}};function HI(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var GI=HI([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),VI=mi(GI),ih={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},YI={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},b0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function OP(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function jP(e,t){var r=iI(YI),n=[],i;n[n.length]=sn,n[n.length]=et("Types",null,{xmlns:bn.CT,"xmlns:xsd":bn.xsd,"xmlns:xsi":bn.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return et("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=et("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:b0[l][t.bookType]||b0[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=et("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:b0[l][t.bookType]||b0[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=et("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Jt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function CP(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function rc(e){var t=[sn,et("Relationships",null,{xmlns:bn.RELS})];return In(e["!id"]).forEach(function(r){t[t.length]=et("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function mr(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,[Jt.HLINK,Jt.XPATH,Jt.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function KI(e){var t=[sn];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
266
+ `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
267
+ `);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
268
+ `);return t.push("</manifest:manifest>"),t.join("")}function Ww(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
269
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
270
+ `,` </rdf:Description>
271
+ `].join("")}function XI(e,t){return[' <rdf:Description rdf:about="'+e+`">
272
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
273
+ `,` </rdf:Description>
274
+ `].join("")}function JI(e){var t=[sn];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
275
+ `);for(var r=0;r!=e.length;++r)t.push(Ww(e[r][0],e[r][1])),t.push(XI("",e[r][0]));return t.push(Ww("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function kP(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+z0.version+"</meta:generator></office:meta></office:document-meta>"}var zs=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function H1(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=vr(t),n[n.length]=r?et(e,t,r):kn(e,t))}function LP(e,t){var r=t||{},n=[sn,et("cp:coreProperties",null,{"xmlns:cp":bn.CORE_PROPS,"xmlns:dc":bn.dc,"xmlns:dcterms":bn.dcterms,"xmlns:dcmitype":bn.dcmitype,"xmlns:xsi":bn.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&H1("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:yy(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&H1("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:yy(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=zs.length;++a){var o=zs[a],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&H1(o[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var nc=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],IP=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function FP(e){var t=[],r=et;return e||(e={}),e.Application="SheetJS",t[t.length]=sn,t[t.length]=et("Properties",null,{xmlns:bn.EXT_PROPS,"xmlns:vt":bn.vt}),nc.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=vr(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+vr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function MP(e){var t=[sn,et("Properties",null,{xmlns:bn.CUST_PROPS,"xmlns:vt":bn.vt})];if(!e)return t.join("");var r=1;return In(e).forEach(function(i){++r,t[t.length]=et("property",mI(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:vr(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Hw={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function ZI(e,t){var r=[];return In(Hw).map(function(n){for(var i=0;i<zs.length;++i)if(zs[i][1]==n)return zs[i];for(i=0;i<nc.length;++i)if(nc[i][1]==n)return nc[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(kn(Hw[n[1]]||n[1],i))}}),et("DocumentProperties",r.join(""),{xmlns:Oi.o})}function QI(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&In(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var o=0;o<zs.length;++o)if(a==zs[o][1])return;for(o=0;o<nc.length;++o)if(a==nc[o][1])return;for(o=0;o<r.length;++o)if(a==r[o])return;var s=e[a],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(et(kw(a),s,{"dt:dt":l}))}}),t&&In(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var o=t[a],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),i.push(et(kw(a),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Oi.o+'">'+i.join("")+"</"+n+">"}function e7(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var o=De(8);return o.write_shift(4,n),o.write_shift(4,i),o}function Gw(e,t){var r=De(4),n=De(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=De(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=e7(t);break;case 31:case 80:for(n=De(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Cn([r,n])}var DP=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function t7(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Vw(e,t,r){var n=De(8),i=[],a=[],o=8,s=0,l=De(8),c=De(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),o+=8+l.length,!t){c=De(8),c.write_shift(4,0),i.unshift(c);var u=[De(4)];for(u[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=De(8+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=Cn(u),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(DP.indexOf(e[s][0])>-1||IP.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var g=r[h];if(g.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=Gw(g.t,d)}else{var v=t7(d);v==-1&&(v=31,d=String(d)),l=Gw(v,d)}a.push(l),c=De(8),c.write_shift(4,t?h:2+s),i.push(c),o+=8+l.length}var y=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,y),y+=a[s].length;return n.write_shift(4,o),n.write_shift(4,a.length),Cn([n].concat(i).concat(a))}function Yw(e,t,r,n,i,a){var o=De(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,br.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var l=Vw(e,r,n);if(s.push(l),i){var c=Vw(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(c)}return Cn(s)}function r7(e,t){t||(t=De(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function n7(e,t){return e.read_shift(t)===1}function ei(e,t){return t||(t=De(2)),t.write_shift(2,+!!e),t}function RP(e){return e.read_shift(2,"u")}function Vi(e,t){return t||(t=De(2)),t.write_shift(2,e),t}function BP(e,t,r){return r||(r=De(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function $P(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var o=n?e.read_shift(n,i):"";return o}function i7(e){var t=e.t||"",r=De(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=De(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return Cn(i)}function a7(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function o7(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):a7(e,n,r)}function s7(e,t,r){if(r.biff>5)return o7(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function qP(e,t,r){return r||(r=De(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Kw(e,t){t||(t=De(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function l7(e){var t=De(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(a==28)n=n.slice(1),Kw(n,t);else if(a&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));var s=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),a&8&&Kw(i>-1?n.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Ks(e,t,r,n){return n||(n=De(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function c7(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[i,a,o]}function u7(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function UP(e,t){return t||(t=De(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function cb(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=De(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function f7(e,t){var r=!t||t.biff==8,n=De(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function h7(e,t){var r=!t||t.biff>=8?2:1,n=De(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function d7(e,t){var r=De(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=i7(e[i]);var a=Cn([r].concat(n));return a.parts=[r.length].concat(n.map(function(o){return o.length})),a}function p7(){var e=De(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function m7(e){var t=De(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function v7(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=De(i);return a.write_shift(2,e.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function g7(e,t,r,n){var i=De(10);return Ks(e,t,n,i),i.write_shift(4,r),i}function x7(e,t,r,n,i){var a=!i||i.biff==8,o=De(8+ +a+(1+a)*r.length);return Ks(e,t,n,o),o.write_shift(2,r.length),a&&o.write_shift(1,1),o.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),o}function y7(e,t,r,n){var i=r&&r.biff==5;n||(n=De(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function b7(e,t){var r=t.biff==8||!t.biff?4:2,n=De(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Xw(e,t,r,n){var i=r&&r.biff==5;n||(n=De(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function w7(e){var t=De(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function _7(e,t,r,n,i,a){var o=De(8);return Ks(e,t,n,o),BP(r,a,o),o}function S7(e,t,r,n){var i=De(14);return Ks(e,t,n,i),Ys(r,i),i}function A7(e,t,r){if(r.biff<8)return T7(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(c7(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function T7(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=$P(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function E7(e){var t=De(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)UP(e[r],t);return t}function N7(e){var t=De(24),r=wn(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return Cn([t,l7(e[1])])}function P7(e){var t=e[1].Tooltip,r=De(10+2*(t.length+1));r.write_shift(2,2048);var n=wn(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function O7(e){return e||(e=De(4)),e.write_shift(2,1),e.write_shift(2,1),e}function j7(e,t,r){if(!r.cellStyles)return Ba(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:i,e:a,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function C7(e,t){var r=De(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function k7(e){for(var t=De(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function L7(e,t,r){var n=De(15);return oh(n,e,t),n.write_shift(8,r,"f"),n}function I7(e,t,r){var n=De(9);return oh(n,e,t),n.write_shift(2,r),n}var F7=(function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Z2({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var c=[],u=Vs(1);switch(l.type){case"base64":u=va(yo(s));break;case"binary":u=va(s);break;case"buffer":case"array":u=s;break}Pi(u,0);var f=u.read_shift(1),d=!!(f&136),h=!1,g=!1;switch(f){case 2:break;case 3:break;case 48:h=!0,d=!0;break;case 49:h=!0,d=!0;break;case 131:break;case 139:break;case 140:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,v=521;f==2&&(p=u.read_shift(2)),u.l+=3,f!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(v=u.read_shift(2));var y=u.read_shift(2),b=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(b=e[u[u.l]]),u.l+=1,u.l+=2),g&&(u.l+=36);for(var _=[],S={},A=Math.min(u.length,f==2?521:v-10-(h?264:0)),P=g?32:11;u.l<A&&u[u.l]!=13;)switch(S={},S.name=W0.utils.decode(b,u.slice(u.l,u.l+P)).replace(/[\u0000\r\n].*$/g,""),u.l+=P,S.type=String.fromCharCode(u.read_shift(1)),f!=2&&!g&&(S.offset=u.read_shift(4)),S.len=u.read_shift(1),f==2&&(S.offset=u.read_shift(2)),S.dec=u.read_shift(1),S.name.length&&_.push(S),f!=2&&(u.l+=g?13:14),S.type){case"B":(!h||S.len!=8)&&l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(u[u.l]!==13&&(u.l=v-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=v;var T=0,k=0;for(c[0]=[],k=0;k!=_.length;++k)c[0][k]=_[k].name;for(;p-- >0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++T]=[],k=0,k=0;k!=_.length;++k){var L=u.slice(u.l,u.l+_[k].len);u.l+=_[k].len,Pi(L,0);var B=W0.utils.decode(b,L);switch(_[k].type){case"C":B.trim().length&&(c[T][k]=B.replace(/\s+$/,""));break;case"D":B.length===8?c[T][k]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):c[T][k]=B;break;case"F":c[T][k]=parseFloat(B.trim());break;case"+":case"I":c[T][k]=g?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(B.trim().toUpperCase()){case"Y":case"T":c[T][k]=!0;break;case"N":case"F":c[T][k]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+B+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[T][k]="##MEMO##"+(g?parseInt(B.trim(),10):L.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(c[T][k]=+B||0);break;case"@":c[T][k]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":c[T][k]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":c[T][k]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[T][k]=-L.read_shift(-8,"f");break;case"B":if(h&&_[k].len==8){c[T][k]=L.read_shift(8,"f");break}case"G":case"P":L.l+=_[k].len;break;case"0":if(_[k].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[k].type)}}}if(f!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=_,c}function n(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=Uc(r(s,c),c);return u["!cols"]=c.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete c.DBF,u}function i(s,l){try{return el(n(s,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var c=l||{};if(+c.codepage>=0&&hf(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=di(),f=nd(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),g=s["!cols"]||[],p=0,v=0,y=0,b=1;for(p=0;p<d.length;++p){if(((g[p]||{}).DBF||{}).name){d[p]=g[p].DBF.name,++y;continue}if(d[p]!=null){if(++y,typeof d[p]=="number"&&(d[p]=d[p].toString(10)),typeof d[p]!="string")throw new Error("DBF Invalid column name "+d[p]+" |"+typeof d[p]+"|");if(d.indexOf(d[p])!==p){for(v=0;v<1024;++v)if(d.indexOf(d[p]+"_"+v)==-1){d[p]+="_"+v;break}}}}var _=Ir(s["!ref"]),S=[],A=[],P=[];for(p=0;p<=_.e.c-_.s.c;++p){var T="",k="",L=0,B=[];for(v=0;v<h.length;++v)h[v][p]!=null&&B.push(h[v][p]);if(B.length==0||d[p]==null){S[p]="?";continue}for(v=0;v<B.length;++v){switch(typeof B[v]){case"number":k="B";break;case"string":k="C";break;case"boolean":k="L";break;case"object":k=B[v]instanceof Date?"D":"C";break;default:k="C"}L=Math.max(L,String(B[v]).length),T=T&&T!=k?"C":k}L>250&&(L=250),k=((g[p]||{}).DBF||{}).type,k=="C"&&g[p].DBF.len>L&&(L=g[p].DBF.len),T=="B"&&k=="N"&&(T="N",P[p]=g[p].DBF.dec,L=g[p].DBF.len),A[p]=T=="C"||k=="N"?L:a[T]||0,b+=A[p],S[p]=T}var j=u.next(32);for(j.write_shift(4,318902576),j.write_shift(4,h.length),j.write_shift(2,296+32*y),j.write_shift(2,b),p=0;p<4;++p)j.write_shift(4,0);for(j.write_shift(4,0|(+t[WN]||3)<<8),p=0,v=0;p<d.length;++p)if(d[p]!=null){var N=u.next(32),D=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);N.write_shift(1,D,"sbcs"),N.write_shift(1,S[p]=="?"?"C":S[p],"sbcs"),N.write_shift(4,v),N.write_shift(1,A[p]||a[S[p]]||0),N.write_shift(1,P[p]||0),N.write_shift(1,2),N.write_shift(4,0),N.write_shift(1,0),N.write_shift(4,0),N.write_shift(4,0),v+=A[p]||a[S[p]]||0}var U=u.next(264);for(U.write_shift(4,13),p=0;p<65;++p)U.write_shift(4,0);for(p=0;p<h.length;++p){var W=u.next(b);for(W.write_shift(1,0),v=0;v<d.length;++v)if(d[v]!=null)switch(S[v]){case"L":W.write_shift(1,h[p][v]==null?63:h[p][v]?84:70);break;case"B":W.write_shift(8,h[p][v]||0,"f");break;case"N":var R="0";for(typeof h[p][v]=="number"&&(R=h[p][v].toFixed(P[v]||0)),y=0;y<A[v]-R.length;++y)W.write_shift(1,32);W.write_shift(1,R,"sbcs");break;case"D":h[p][v]?(W.write_shift(4,("0000"+h[p][v].getFullYear()).slice(-4),"sbcs"),W.write_shift(2,("00"+(h[p][v].getMonth()+1)).slice(-2),"sbcs"),W.write_shift(2,("00"+h[p][v].getDate()).slice(-2),"sbcs")):W.write_shift(8,"00000000","sbcs");break;case"C":var z=String(h[p][v]!=null?h[p][v]:"").slice(0,A[v]);for(W.write_shift(1,z,"sbcs"),y=0;y<A[v]-z.length;++y)W.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}})(),M7=(function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+In(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var g=e[h];return typeof g=="number"?bw(g):g},n=function(d,h,g){var p=h.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return p==59?d:bw(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return a(yo(d),h);case"binary":return a(d,h);case"buffer":return a(er&&Buffer.isBuffer(d)?d.toString("binary"):th(d),h);case"array":return a(dp(d),h)}throw new Error("Unrecognized type "+h.type)}function a(d,h){var g=d.split(/[\n\r]+/),p=-1,v=-1,y=0,b=0,_=[],S=[],A=null,P={},T=[],k=[],L=[],B=0,j;for(+h.codepage>=0&&hf(+h.codepage);y!==g.length;++y){B=0;var N=g[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),D=N.replace(/;;/g,"\0").split(";").map(function(q){return q.replace(/\u0000/g,";")}),U=D[0],W;if(N.length>0)switch(U){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":D[1].charAt(0)=="P"&&S.push(N.slice(3).replace(/;;/g,";"));break;case"C":var R=!1,z=!1,Q=!1,Z=!1,ee=-1,ce=-1;for(b=1;b<D.length;++b)switch(D[b].charAt(0)){case"A":break;case"X":v=parseInt(D[b].slice(1))-1,z=!0;break;case"Y":for(p=parseInt(D[b].slice(1))-1,z||(v=0),j=_.length;j<=p;++j)_[j]=[];break;case"K":W=D[b].slice(1),W.charAt(0)==='"'?W=W.slice(1,W.length-1):W==="TRUE"?W=!0:W==="FALSE"?W=!1:isNaN(ho(W))?isNaN(pf(W).getDate())||(W=ni(W)):(W=ho(W),A!==null&&rP(A)&&(W=oP(W))),R=!0;break;case"E":Z=!0;var O=IF(D[b].slice(1),{r:p,c:v});_[p][v]=[_[p][v],O];break;case"S":Q=!0,_[p][v]=[_[p][v],"S5S"];break;case"G":break;case"R":ee=parseInt(D[b].slice(1))-1;break;case"C":ce=parseInt(D[b].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}if(R&&(_[p][v]&&_[p][v].length==2?_[p][v][0]=W:_[p][v]=W,A=null),Q){if(Z)throw new Error("SYLK shared formula cannot have own formula");var I=ee>-1&&_[ee][ce];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");_[p][v][1]=FF(I[1],{r:p-ee,c:v-ce})}break;case"F":var M=0;for(b=1;b<D.length;++b)switch(D[b].charAt(0)){case"X":v=parseInt(D[b].slice(1))-1,++M;break;case"Y":for(p=parseInt(D[b].slice(1))-1,j=_.length;j<=p;++j)_[j]=[];break;case"M":B=parseInt(D[b].slice(1))/20;break;case"F":break;case"G":break;case"P":A=S[parseInt(D[b].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=D[b].slice(1).split(" "),j=parseInt(L[0],10);j<=parseInt(L[1],10);++j)B=parseInt(L[2],10),k[j-1]=B===0?{hidden:!0}:{wch:B},ub(k[j-1]);break;case"C":v=parseInt(D[b].slice(1))-1,k[v]||(k[v]={});break;case"R":p=parseInt(D[b].slice(1))-1,T[p]||(T[p]={}),B>0?(T[p].hpt=B,T[p].hpx=VP(B)):B===0&&(T[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}M<1&&(A=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}}return T.length>0&&(P["!rows"]=T),k.length>0&&(P["!cols"]=k),h&&h.sheetRows&&(_=_.slice(0,h.sheetRows)),[_,P]}function o(d,h){var g=i(d,h),p=g[0],v=g[1],y=Uc(p,h);return In(v).forEach(function(b){y[b]=v[b]}),y}function s(d,h){return el(o(d,h),h)}function l(d,h,g,p){var v="C;Y"+(g+1)+";X"+(p+1)+";K";switch(d.t){case"n":v+=d.v||0,d.f&&!d.F&&(v+=";E"+hb(d.f,{r:g,c:p}));break;case"b":v+=d.v?"TRUE":"FALSE";break;case"e":v+=d.w||d.v;break;case"d":v+='"'+(d.w||d.v)+'"';break;case"s":v+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function c(d,h){h.forEach(function(g,p){var v="F;W"+(p+1)+" "+(p+1)+" ";g.hidden?v+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=Q0(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=ed(g.wpx)),typeof g.wch=="number"&&(v+=Math.round(g.wch))),v.charAt(v.length-1)!=" "&&d.push(v)})}function u(d,h){h.forEach(function(g,p){var v="F;";g.hidden?v+="M0;":g.hpt?v+="M"+20*g.hpt+";":g.hpx&&(v+="M"+20*td(g.hpx)+";"),v.length>2&&d.push(v+"R"+(p+1))})}function f(d,h){var g=["ID;PWXL;N;E"],p=[],v=Ir(d["!ref"]),y,b=Array.isArray(d),_=`\r
276
+ `;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),d["!cols"]&&c(g,d["!cols"]),d["!rows"]&&u(g,d["!rows"]),g.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var S=v.s.r;S<=v.e.r;++S)for(var A=v.s.c;A<=v.e.c;++A){var P=gr({r:S,c:A});y=b?(d[S]||[])[A]:d[P],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,S,A))}return g.join(_)+_+p.join(_)+_+"E"+_}return{to_workbook:s,to_sheet:o,from_sheet:f}})(),D7=(function(){function e(a,o){switch(o.type){case"base64":return t(yo(a),o);case"binary":return t(a,o);case"buffer":return t(er&&Buffer.isBuffer(a)?a.toString("binary"):th(a),o);case"array":return t(dp(a),o)}throw new Error("Unrecognized type "+o.type)}function t(a,o){for(var s=a.split(`
277
+ `),l=-1,c=-1,u=0,f=[];u!==s.length;++u){if(s[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var d=s[u].trim().split(","),h=d[0],g=d[1];++u;for(var p=s[u]||"";(p.match(/["]/g)||[]).length&1&&u<s.length-1;)p+=`
278
+ `+s[++u];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],c=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][c]=!0:p==="FALSE"?f[l][c]=!1:isNaN(ho(g))?isNaN(pf(g).getDate())?f[l][c]=g:f[l][c]=ni(g):f[l][c]=ho(g),++c;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][c++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(a,o){return Uc(e(a,o),o)}function n(a,o){return el(r(a,o),o)}var i=(function(){var a=function(l,c,u,f,d){l.push(c),l.push(u+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,c,u,f){l.push(c+","+u),l.push(c==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var c=[],u=Ir(l["!ref"]),f,d=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,u.e.r-u.s.r+1,""),a(c,"TUPLES",0,u.e.c-u.s.c+1,""),a(c,"DATA",0,0,"");for(var h=u.s.r;h<=u.e.r;++h){o(c,-1,0,"BOT");for(var g=u.s.c;g<=u.e.c;++g){var p=gr({r:h,c:g});if(f=d?(l[h]||[])[g]:l[p],!f){o(c,1,0,"");continue}switch(f.t){case"n":var v=f.w;!v&&f.v!=null&&(v=f.v),v==null?f.f&&!f.F?o(c,1,0,"="+f.f):o(c,1,0,""):o(c,0,v,"V");break;case"b":o(c,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(c,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=ss(f.z||Wr[14],pi(ni(f.v)))),o(c,0,f.w,"V");break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var y=`\r
279
+ `,b=c.join(y);return b}})();return{to_workbook:n,to_sheet:r,from_sheet:i}})(),zP=(function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
280
+ `)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var h=f.split(`
281
+ `),g=-1,p=-1,v=0,y=[];v!==h.length;++v){var b=h[v].trim().split(":");if(b[0]==="cell"){var _=wn(b[1]);if(y.length<=_.r)for(g=y.length;g<=_.r;++g)y[g]||(y[g]=[]);switch(g=_.r,p=_.c,b[2]){case"t":y[g][p]=e(b[3]);break;case"v":y[g][p]=+b[3];break;case"vtf":var S=b[b.length-1];case"vtc":switch(b[3]){case"nl":y[g][p]=!!+b[4];break;default:y[g][p]=+b[4];break}b[2]=="vtf"&&(y[g][p]=[y[g][p],S])}}}return d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),y}function n(f,d){return Uc(r(f,d),d)}function i(f,d){return el(n(f,d),d)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
282
+ `),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
283
+ `)+`
284
+ `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
285
+ `),l="--SocialCalcSpreadsheetControlSave--";function c(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],g,p="",v=Li(f["!ref"]),y=Array.isArray(f),b=v.s.r;b<=v.e.r;++b)for(var _=v.s.c;_<=v.e.c;++_)if(p=gr({r:b,c:_}),g=y?(f[b]||[])[_]:f[p],!(!g||g.v==null||g.t==="z")){switch(h=["cell",p,"t"],g.t){case"s":case"str":h.push(t(g.v));break;case"n":g.f?(h[2]="vtf",h[3]="n",h[4]=g.v,h[5]=t(g.f)):(h[2]="v",h[3]=g.v);break;case"b":h[2]="vt"+(g.f?"f":"c"),h[3]="nl",h[4]=g.v?"1":"0",h[5]=t(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var S=pi(ni(g.v));h[2]="vtc",h[3]="nd",h[4]=""+S,h[5]=g.w||ss(g.z||Wr[14],S);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(v.e.c-v.s.c+1)+":r:"+(v.e.r-v.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
286
+ `)}function u(f){return[a,o,s,o,c(f),l].join(`
287
+ `)}return{to_workbook:i,to_sheet:n,from_sheet:u}})(),R7=(function(){function e(u,f,d,h,g){g.raw?f[d][h]=u:u===""||(u==="TRUE"?f[d][h]=!0:u==="FALSE"?f[d][h]=!1:isNaN(ho(u))?isNaN(pf(u).getDate())?f[d][h]=u:f[d][h]=ni(u):f[d][h]=ho(u))}function t(u,f){var d=f||{},h=[];if(!u||u.length===0)return h;for(var g=u.split(/[\r\n]/),p=g.length-1;p>=0&&g[p].length===0;)--p;for(var v=10,y=0,b=0;b<=p;++b)y=g[b].indexOf(" "),y==-1?y=g[b].length:y++,v=Math.max(v,y);for(b=0;b<=p;++b){h[b]=[];var _=0;for(e(g[b].slice(0,v).trim(),h,b,_,d),_=1;_<=(g[b].length-v)/10+1;++_)e(g[b].slice(v+(_-1)*10,v+_*10).trim(),h,b,_,d)}return d.sheetRows&&(h=h.slice(0,d.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(u){for(var f={},d=!1,h=0,g=0;h<u.length;++h)(g=u.charCodeAt(h))==34?d=!d:!d&&g in r&&(f[g]=(f[g]||0)+1);g=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&g.push([f[h],h]);if(!g.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&g.push([f[h],h])}return g.sort(function(p,v){return p[0]-v[0]||n[p[1]]-n[v[1]]}),r[g.pop()[1]]||44}function a(u,f){var d=f||{},h="",g=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(h=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(h=u.charAt(4),u=u.slice(6)):h=i(u.slice(0,1024)):d&&d.FS?h=d.FS:h=i(u.slice(0,1024));var v=0,y=0,b=0,_=0,S=0,A=h.charCodeAt(0),P=!1,T=0,k=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
288
+ `);var L=d.dateNF!=null?eI(d.dateNF):null;function B(){var j=u.slice(_,S),N={};if(j.charAt(0)=='"'&&j.charAt(j.length-1)=='"'&&(j=j.slice(1,-1).replace(/""/g,'"')),j.length===0)N.t="z";else if(d.raw)N.t="s",N.v=j;else if(j.trim().length===0)N.t="s",N.v=j;else if(j.charCodeAt(0)==61)j.charCodeAt(1)==34&&j.charCodeAt(j.length-1)==34?(N.t="s",N.v=j.slice(2,-1).replace(/""/g,'"')):MF(j)?(N.t="n",N.f=j.slice(1)):(N.t="s",N.v=j);else if(j=="TRUE")N.t="b",N.v=!0;else if(j=="FALSE")N.t="b",N.v=!1;else if(!isNaN(b=ho(j)))N.t="n",d.cellText!==!1&&(N.w=j),N.v=b;else if(!isNaN(pf(j).getDate())||L&&j.match(L)){N.z=d.dateNF||Wr[14];var D=0;L&&j.match(L)&&(j=tI(j,d.dateNF,j.match(L)||[]),D=1),d.cellDates?(N.t="d",N.v=ni(j,D)):(N.t="n",N.v=pi(ni(j,D))),d.cellText!==!1&&(N.w=ss(N.z,N.v instanceof Date?pi(N.v):N.v)),d.cellNF||delete N.z}else N.t="s",N.v=j;if(N.t=="z"||(d.dense?(g[v]||(g[v]=[]),g[v][y]=N):g[gr({c:y,r:v})]=N),_=S+1,k=u.charCodeAt(_),p.e.c<y&&(p.e.c=y),p.e.r<v&&(p.e.r=v),T==A)++y;else if(y=0,++v,d.sheetRows&&d.sheetRows<=v)return!0}e:for(;S<u.length;++S)switch(T=u.charCodeAt(S)){case 34:k===34&&(P=!P);break;case A:case 10:case 13:if(!P&&B())break e;break}return S-_>0&&B(),g["!ref"]=an(p),g}function o(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,f):Uc(t(u,f),f)}function s(u,f){var d="",h=f.type=="string"?[0,0,0,0]:X9(u,f);switch(f.type){case"base64":d=yo(u);break;case"binary":d=u;break;case"buffer":f.codepage==65001?d=u.toString("utf8"):f.codepage&&typeof W0<"u"||(d=er&&Buffer.isBuffer(u)?u.toString("binary"):th(u));break;case"array":d=dp(u);break;case"string":d=u;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=Ju(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=Ju(d):f.type=="binary"&&typeof W0<"u",d.slice(0,19)=="socialcalc:version:"?zP.to_sheet(f.type=="string"?d:Ju(d),f):o(d,f)}function l(u,f){return el(s(u,f),f)}function c(u){for(var f=[],d=Ir(u["!ref"]),h,g=Array.isArray(u),p=d.s.r;p<=d.e.r;++p){for(var v=[],y=d.s.c;y<=d.e.c;++y){var b=gr({r:p,c:y});if(h=g?(u[p]||[])[y]:u[b],!h||h.v==null){v.push(" ");continue}for(var _=(h.w||(bo(h),h.w)||"").slice(0,10);_.length<10;)_+=" ";v.push(_+(y===0?" ":""))}f.push(v.join(""))}return f.join(`
289
+ `)}return{to_workbook:l,to_sheet:s,from_sheet:c}})(),Jw=(function(){function e(O,I,M){if(O){Pi(O,O.l||0);for(var q=M.Enum||ee;O.l<O.length;){var Y=O.read_shift(2),fe=q[Y]||q[65535],ae=O.read_shift(2),ne=O.l+ae,ve=fe.f&&fe.f(O,ae,M);if(O.l=ne,I(ve,fe,Y))return}}}function t(O,I){switch(I.type){case"base64":return r(va(yo(O)),I);case"binary":return r(va(O),I);case"buffer":case"array":return r(O,I)}throw"Unsupported type "+I.type}function r(O,I){if(!O)return O;var M=I||{},q=M.dense?[]:{},Y="Sheet1",fe="",ae=0,ne={},ve=[],we=[],se={s:{r:0,c:0},e:{r:0,c:0}},Fe=M.sheetRows||0;if(O[2]==0&&(O[3]==8||O[3]==9)&&O.length>=16&&O[14]==5&&O[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(O[2]==2)M.Enum=ee,e(O,function(Re,tt,Ue){switch(Ue){case 0:M.vers=Re,Re>=4096&&(M.qpro=!0);break;case 6:se=Re;break;case 204:Re&&(fe=Re);break;case 222:fe=Re;break;case 15:case 51:M.qpro||(Re[1].v=Re[1].v.slice(1));case 13:case 14:case 16:Ue==14&&(Re[2]&112)==112&&(Re[2]&15)>1&&(Re[2]&15)<15&&(Re[1].z=M.dateNF||Wr[14],M.cellDates&&(Re[1].t="d",Re[1].v=oP(Re[1].v))),M.qpro&&Re[3]>ae&&(q["!ref"]=an(se),ne[Y]=q,ve.push(Y),q=M.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ae=Re[3],Y=fe||"Sheet"+(ae+1),fe="");var Ke=M.dense?(q[Re[0].r]||[])[Re[0].c]:q[gr(Re[0])];if(Ke){Ke.t=Re[1].t,Ke.v=Re[1].v,Re[1].z!=null&&(Ke.z=Re[1].z),Re[1].f!=null&&(Ke.f=Re[1].f);break}M.dense?(q[Re[0].r]||(q[Re[0].r]=[]),q[Re[0].r][Re[0].c]=Re[1]):q[gr(Re[0])]=Re[1];break}},M);else if(O[2]==26||O[2]==14)M.Enum=ce,O[2]==14&&(M.qpro=!0,O.l=0),e(O,function(Re,tt,Ue){switch(Ue){case 204:Y=Re;break;case 22:Re[1].v=Re[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Re[3]>ae&&(q["!ref"]=an(se),ne[Y]=q,ve.push(Y),q=M.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ae=Re[3],Y="Sheet"+(ae+1)),Fe>0&&Re[0].r>=Fe)break;M.dense?(q[Re[0].r]||(q[Re[0].r]=[]),q[Re[0].r][Re[0].c]=Re[1]):q[gr(Re[0])]=Re[1],se.e.c<Re[0].c&&(se.e.c=Re[0].c),se.e.r<Re[0].r&&(se.e.r=Re[0].r);break;case 27:Re[14e3]&&(we[Re[14e3][0]]=Re[14e3][1]);break;case 1537:we[Re[0]]=Re[1],Re[0]==ae&&(Y=Re[1]);break}},M);else throw new Error("Unrecognized LOTUS BOF "+O[2]);if(q["!ref"]=an(se),ne[fe||Y]=q,ve.push(fe||Y),!we.length)return{SheetNames:ve,Sheets:ne};for(var Ae={},Ee=[],le=0;le<we.length;++le)ne[ve[le]]?(Ee.push(we[le]||ve[le]),Ae[we[le]]=ne[we[le]]||ne[ve[le]]):(Ee.push(we[le]),Ae[we[le]]={"!ref":"A1"});return{SheetNames:Ee,Sheets:Ae}}function n(O,I){var M=I||{};if(+M.codepage>=0&&hf(+M.codepage),M.type=="string")throw new Error("Cannot write WK1 to JS string");var q=di(),Y=Ir(O["!ref"]),fe=Array.isArray(O),ae=[];rt(q,0,a(1030)),rt(q,6,l(Y));for(var ne=Math.min(Y.e.r,8191),ve=Y.s.r;ve<=ne;++ve)for(var we=Ln(ve),se=Y.s.c;se<=Y.e.c;++se){ve===Y.s.r&&(ae[se]=Hn(se));var Fe=ae[se]+we,Ae=fe?(O[ve]||[])[se]:O[Fe];if(!(!Ae||Ae.t=="z"))if(Ae.t=="n")(Ae.v|0)==Ae.v&&Ae.v>=-32768&&Ae.v<=32767?rt(q,13,h(ve,se,Ae.v)):rt(q,14,p(ve,se,Ae.v));else{var Ee=bo(Ae);rt(q,15,f(ve,se,Ee.slice(0,239)))}}return rt(q,1),q.end()}function i(O,I){var M=I||{};if(+M.codepage>=0&&hf(+M.codepage),M.type=="string")throw new Error("Cannot write WK3 to JS string");var q=di();rt(q,0,o(O));for(var Y=0,fe=0;Y<O.SheetNames.length;++Y)(O.Sheets[O.SheetNames[Y]]||{})["!ref"]&&rt(q,27,Z(O.SheetNames[Y],fe++));var ae=0;for(Y=0;Y<O.SheetNames.length;++Y){var ne=O.Sheets[O.SheetNames[Y]];if(!(!ne||!ne["!ref"])){for(var ve=Ir(ne["!ref"]),we=Array.isArray(ne),se=[],Fe=Math.min(ve.e.r,8191),Ae=ve.s.r;Ae<=Fe;++Ae)for(var Ee=Ln(Ae),le=ve.s.c;le<=ve.e.c;++le){Ae===ve.s.r&&(se[le]=Hn(le));var Re=se[le]+Ee,tt=we?(ne[Ae]||[])[le]:ne[Re];if(!(!tt||tt.t=="z"))if(tt.t=="n")rt(q,23,B(Ae,le,ae,tt.v));else{var Ue=bo(tt);rt(q,22,T(Ae,le,ae,Ue.slice(0,239)))}}++ae}}return rt(q,1),q.end()}function a(O){var I=De(2);return I.write_shift(2,O),I}function o(O){var I=De(26);I.write_shift(2,4096),I.write_shift(2,4),I.write_shift(4,0);for(var M=0,q=0,Y=0,fe=0;fe<O.SheetNames.length;++fe){var ae=O.SheetNames[fe],ne=O.Sheets[ae];if(!(!ne||!ne["!ref"])){++Y;var ve=Li(ne["!ref"]);M<ve.e.r&&(M=ve.e.r),q<ve.e.c&&(q=ve.e.c)}}return M>8191&&(M=8191),I.write_shift(2,M),I.write_shift(1,Y),I.write_shift(1,q),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(1,1),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(4,0),I}function s(O,I,M){var q={s:{c:0,r:0},e:{c:0,r:0}};return I==8&&M.qpro?(q.s.c=O.read_shift(1),O.l++,q.s.r=O.read_shift(2),q.e.c=O.read_shift(1),O.l++,q.e.r=O.read_shift(2),q):(q.s.c=O.read_shift(2),q.s.r=O.read_shift(2),I==12&&M.qpro&&(O.l+=2),q.e.c=O.read_shift(2),q.e.r=O.read_shift(2),I==12&&M.qpro&&(O.l+=2),q.s.c==65535&&(q.s.c=q.e.c=q.s.r=q.e.r=0),q)}function l(O){var I=De(8);return I.write_shift(2,O.s.c),I.write_shift(2,O.s.r),I.write_shift(2,O.e.c),I.write_shift(2,O.e.r),I}function c(O,I,M){var q=[{c:0,r:0},{t:"n",v:0},0,0];return M.qpro&&M.vers!=20768?(q[0].c=O.read_shift(1),q[3]=O.read_shift(1),q[0].r=O.read_shift(2),O.l+=2):(q[2]=O.read_shift(1),q[0].c=O.read_shift(2),q[0].r=O.read_shift(2)),q}function u(O,I,M){var q=O.l+I,Y=c(O,I,M);if(Y[1].t="s",M.vers==20768){O.l++;var fe=O.read_shift(1);return Y[1].v=O.read_shift(fe,"utf8"),Y}return M.qpro&&O.l++,Y[1].v=O.read_shift(q-O.l,"cstr"),Y}function f(O,I,M){var q=De(7+M.length);q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,O),q.write_shift(1,39);for(var Y=0;Y<q.length;++Y){var fe=M.charCodeAt(Y);q.write_shift(1,fe>=128?95:fe)}return q.write_shift(1,0),q}function d(O,I,M){var q=c(O,I,M);return q[1].v=O.read_shift(2,"i"),q}function h(O,I,M){var q=De(7);return q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,O),q.write_shift(2,M,"i"),q}function g(O,I,M){var q=c(O,I,M);return q[1].v=O.read_shift(8,"f"),q}function p(O,I,M){var q=De(13);return q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,O),q.write_shift(8,M,"f"),q}function v(O,I,M){var q=O.l+I,Y=c(O,I,M);if(Y[1].v=O.read_shift(8,"f"),M.qpro)O.l=q;else{var fe=O.read_shift(2);S(O.slice(O.l,O.l+fe),Y),O.l+=fe}return Y}function y(O,I,M){var q=I&32768;return I&=-32769,I=(q?O:0)+(I>=8192?I-16384:I),(q?"":"$")+(M?Hn(I):Ln(I))}var b={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},_=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(O,I){Pi(O,0);for(var M=[],q=0,Y="",fe="",ae="",ne="";O.l<O.length;){var ve=O[O.l++];switch(ve){case 0:M.push(O.read_shift(8,"f"));break;case 1:fe=y(I[0].c,O.read_shift(2),!0),Y=y(I[0].r,O.read_shift(2),!1),M.push(fe+Y);break;case 2:{var we=y(I[0].c,O.read_shift(2),!0),se=y(I[0].r,O.read_shift(2),!1);fe=y(I[0].c,O.read_shift(2),!0),Y=y(I[0].r,O.read_shift(2),!1),M.push(we+se+":"+fe+Y)}break;case 3:if(O.l<O.length){console.error("WK1 premature formula end");return}break;case 4:M.push("("+M.pop()+")");break;case 5:M.push(O.read_shift(2));break;case 6:{for(var Fe="";ve=O[O.l++];)Fe+=String.fromCharCode(ve);M.push('"'+Fe.replace(/"/g,'""')+'"')}break;case 8:M.push("-"+M.pop());break;case 23:M.push("+"+M.pop());break;case 22:M.push("NOT("+M.pop()+")");break;case 20:case 21:ne=M.pop(),ae=M.pop(),M.push(["AND","OR"][ve-20]+"("+ae+","+ne+")");break;default:if(ve<32&&_[ve])ne=M.pop(),ae=M.pop(),M.push(ae+_[ve]+ne);else if(b[ve]){if(q=b[ve][1],q==69&&(q=O[O.l++]),q>M.length){console.error("WK1 bad formula parse 0x"+ve.toString(16)+":|"+M.join("|")+"|");return}var Ae=M.slice(-q);M.length-=q,M.push(b[ve][0]+"("+Ae.join(",")+")")}else return ve<=7?console.error("WK1 invalid opcode "+ve.toString(16)):ve<=24?console.error("WK1 unsupported op "+ve.toString(16)):ve<=30?console.error("WK1 invalid opcode "+ve.toString(16)):ve<=115?console.error("WK1 unsupported function opcode "+ve.toString(16)):console.error("WK1 unrecognized opcode "+ve.toString(16))}}M.length==1?I[1].f=""+M[0]:console.error("WK1 bad formula parse |"+M.join("|")+"|")}function A(O){var I=[{c:0,r:0},{t:"n",v:0},0];return I[0].r=O.read_shift(2),I[3]=O[O.l++],I[0].c=O[O.l++],I}function P(O,I){var M=A(O);return M[1].t="s",M[1].v=O.read_shift(I-4,"cstr"),M}function T(O,I,M,q){var Y=De(6+q.length);Y.write_shift(2,O),Y.write_shift(1,M),Y.write_shift(1,I),Y.write_shift(1,39);for(var fe=0;fe<q.length;++fe){var ae=q.charCodeAt(fe);Y.write_shift(1,ae>=128?95:ae)}return Y.write_shift(1,0),Y}function k(O,I){var M=A(O);M[1].v=O.read_shift(2);var q=M[1].v>>1;if(M[1].v&1)switch(q&7){case 0:q=(q>>3)*5e3;break;case 1:q=(q>>3)*500;break;case 2:q=(q>>3)/20;break;case 3:q=(q>>3)/200;break;case 4:q=(q>>3)/2e3;break;case 5:q=(q>>3)/2e4;break;case 6:q=(q>>3)/16;break;case 7:q=(q>>3)/64;break}return M[1].v=q,M}function L(O,I){var M=A(O),q=O.read_shift(4),Y=O.read_shift(4),fe=O.read_shift(2);if(fe==65535)return q===0&&Y===3221225472?(M[1].t="e",M[1].v=15):q===0&&Y===3489660928?(M[1].t="e",M[1].v=42):M[1].v=0,M;var ae=fe&32768;return fe=(fe&32767)-16446,M[1].v=(1-ae*2)*(Y*Math.pow(2,fe+32)+q*Math.pow(2,fe)),M}function B(O,I,M,q){var Y=De(14);if(Y.write_shift(2,O),Y.write_shift(1,M),Y.write_shift(1,I),q==0)return Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(2,65535),Y;var fe=0,ae=0,ne=0,ve=0;return q<0&&(fe=1,q=-q),ae=Math.log2(q)|0,q/=Math.pow(2,ae-31),ve=q>>>0,(ve&2147483648)==0&&(q/=2,++ae,ve=q>>>0),q-=ve,ve|=2147483648,ve>>>=0,q*=Math.pow(2,32),ne=q>>>0,Y.write_shift(4,ne),Y.write_shift(4,ve),ae+=16383+(fe?32768:0),Y.write_shift(2,ae),Y}function j(O,I){var M=L(O);return O.l+=I-14,M}function N(O,I){var M=A(O),q=O.read_shift(4);return M[1].v=q>>6,M}function D(O,I){var M=A(O),q=O.read_shift(8,"f");return M[1].v=q,M}function U(O,I){var M=D(O);return O.l+=I-10,M}function W(O,I){return O[O.l+I-1]==0?O.read_shift(I,"cstr"):""}function R(O,I){var M=O[O.l++];M>I-1&&(M=I-1);for(var q="";q.length<M;)q+=String.fromCharCode(O[O.l++]);return q}function z(O,I,M){if(!(!M.qpro||I<21)){var q=O.read_shift(1);O.l+=17,O.l+=1,O.l+=2;var Y=O.read_shift(I-21,"cstr");return[q,Y]}}function Q(O,I){for(var M={},q=O.l+I;O.l<q;){var Y=O.read_shift(2);if(Y==14e3){for(M[Y]=[0,""],M[Y][0]=O.read_shift(2);O[O.l];)M[Y][1]+=String.fromCharCode(O[O.l]),O.l++;O.l++}}return M}function Z(O,I){var M=De(5+O.length);M.write_shift(2,14e3),M.write_shift(2,I);for(var q=0;q<O.length;++q){var Y=O.charCodeAt(q);M[M.l++]=Y>127?95:Y}return M[M.l++]=0,M}var ee={0:{n:"BOF",f:RP},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:g},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:W},222:{n:"SHEETNAMELP",f:R},65535:{n:""}},ce={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:P},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:k},25:{n:"FORMULA19",f:j},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Q},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:D},40:{n:"FORMULA28",f:U},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:W},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:z},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}})(),B7=/^\s|\s$|[\t\n\r]/;function WP(e,t){if(!t.bookSST)return"";var r=[sn];r[r.length]=et("sst",null,{xmlns:qc[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(B7)&&(a+=' xml:space="preserve"'),a+=">"+vr(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function $7(e){return[e.read_shift(4),e.read_shift(4)]}function q7(e,t){return t||(t=De(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var U7=kI;function z7(e){var t=di();We(t,159,q7(e));for(var r=0;r<e.length;++r)We(t,19,U7(e[r]));return We(t,160),t.end()}function W7(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function HP(e){var t=0,r,n=W7(e),i=n.length+1,a,o,s,l,c;for(r=Vs(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)o=r[a],s=(t&16384)===0?0:1,l=t<<1&32767,c=s|l,t=c^o;return t^52811}var H7=(function(){function e(i,a){switch(a.type){case"base64":return t(yo(i),a);case"binary":return t(i,a);case"buffer":return t(er&&Buffer.isBuffer(i)?i.toString("binary"):th(i),a);case"array":return t(dp(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var o=a||{},s=o.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,g,p=-1;g=d.exec(u);){switch(g[0]){case"\\cell":var v=u.slice(h,d.lastIndex-g[0].length);if(v[0]==" "&&(v=v.slice(1)),++p,v.length){var y={v,t:"s"};Array.isArray(s)?s[f][p]=y:s[gr({r:f,c:p})]=y}break}h=d.lastIndex}p>c.e.c&&(c.e.c=p)}),s["!ref"]=an(c),s}function r(i,a){return el(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],o=Ir(i["!ref"]),s,l=Array.isArray(i),c=o.s.r;c<=o.e.r;++c){a.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var f=gr({r:c,c:u});s=l?(i[c]||[])[u]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(a.push(" "+(s.w||(bo(s),s.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}})();function Zw(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var G7=6,po=G7;function Q0(e){return Math.floor((e+Math.round(128/po)/256)*po)}function ed(e){return Math.floor((e-5)/po*100+.5)/100}function wy(e){return Math.round((e*po+5)/po*256)/256}function ub(e){e.width?(e.wpx=Q0(e.width),e.wch=ed(e.wpx),e.MDW=po):e.wpx?(e.wch=ed(e.wpx),e.width=wy(e.wch),e.MDW=po):typeof e.wch=="number"&&(e.width=wy(e.wch),e.wpx=Q0(e.width),e.MDW=po),e.customWidth&&delete e.customWidth}var V7=96,GP=V7;function td(e){return e*96/GP}function VP(e){return e*GP/96}function Y7(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=et("numFmt",null,{numFmtId:n,formatCode:vr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=et("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function K7(e){var t=[];return t[t.length]=et("cellXfs",null),e.forEach(function(r){t[t.length]=et("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=et("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function YP(e,t){var r=[sn,et("styleSheet",null,{xmlns:qc[0],"xmlns:vt":bn.vt})],n;return e.SSF&&(n=Y7(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=K7(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function X7(e,t){var r=e.read_shift(2),n=Gn(e);return[r,n]}function J7(e,t,r){r||(r=De(6+4*t.length)),r.write_shift(2,e),_n(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Z7(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=BI(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=RI(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Gn(e),n}function Q7(e,t){t||(t=De(153)),t.write_shift(2,e.sz*20),$I(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),J0(e.color,t);var n=0;return n=2,t.write_shift(1,n),_n(e.name,t),t.length>t.l?t.slice(0,t.l):t}var eF=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],G1,tF=Ba;function Qw(e,t){t||(t=De(84)),G1||(G1=Z2(eF));var r=G1[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(J0({auto:1},t),J0({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function rF(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function KP(e,t,r){r||(r=De(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Cu(e,t){return t||(t=De(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var nF=Ba;function iF(e,t){return t||(t=De(51)),t.write_shift(1,0),Cu(null,t),Cu(null,t),Cu(null,t),Cu(null,t),Cu(null,t),t.length>t.l?t.slice(0,t.l):t}function aF(e,t){return t||(t=De(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),X0(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function oF(e,t,r){var n=De(2052);return n.write_shift(4,e),X0(t,n),X0(r,n),n.length>n.l?n.slice(0,n.l):n}function sF(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(We(e,615,wa(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&We(e,44,J7(i,t[i]))}),We(e,616))}}function lF(e){var t=1;We(e,611,wa(t)),We(e,43,Q7({sz:12,color:{theme:1},name:"Calibri",family:2})),We(e,612)}function cF(e){var t=2;We(e,603,wa(t)),We(e,45,Qw({patternType:"none"})),We(e,45,Qw({patternType:"gray125"})),We(e,604)}function uF(e){var t=1;We(e,613,wa(t)),We(e,46,iF()),We(e,614)}function fF(e){var t=1;We(e,626,wa(t)),We(e,47,KP({numFmtId:0},65535)),We(e,627)}function hF(e,t){We(e,617,wa(t.length)),t.forEach(function(r){We(e,47,KP(r,0))}),We(e,618)}function dF(e){var t=1;We(e,619,wa(t)),We(e,48,aF({xfId:0,name:"Normal"})),We(e,620)}function pF(e){var t=0;We(e,505,wa(t)),We(e,506)}function mF(e){var t=0;We(e,508,oF(t,"TableStyleMedium9","PivotStyleMedium4")),We(e,509)}function vF(e,t){var r=di();return We(r,278),sF(r,e.SSF),lF(r),cF(r),uF(r),fF(r),hF(r,t.cellXfs),dF(r),pF(r),mF(r),We(r,279),r.end()}function XP(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[sn];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function gF(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Gn(e)}}function xF(e){var t=De(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),_n(e.name,t),t.slice(0,t.l)}function yF(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function bF(e){var t=De(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function wF(e,t){var r=De(8+2*t.length);return r.write_shift(4,e),_n(t,r),r.slice(0,r.l)}function _F(e){return e.l+=4,e.read_shift(4)!=0}function SF(e,t){var r=De(8);return r.write_shift(4,e),r.write_shift(4,1),r}function AF(){var e=di();return We(e,332),We(e,334,wa(1)),We(e,335,xF({name:"XLDAPR",version:12e4,flags:3496657072})),We(e,336),We(e,339,wF(1,"XLDAPR")),We(e,52),We(e,35,wa(514)),We(e,4096,wa(0)),We(e,4097,Vi(1)),We(e,36),We(e,53),We(e,340),We(e,337,SF(1)),We(e,51,bF([[1,0]])),We(e,338),We(e,333),e.end()}function JP(){var e=[sn];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
290
+ <metadataTypes count="1">
291
+ <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
292
+ </metadataTypes>
293
+ <futureMetadata name="XLDAPR" count="1">
294
+ <bk>
295
+ <extLst>
296
+ <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
297
+ <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
298
+ </ext>
299
+ </extLst>
300
+ </bk>
301
+ </futureMetadata>
302
+ <cellMetadata count="1">
303
+ <bk>
304
+ <rc t="1" v="0"/>
305
+ </bk>
306
+ </cellMetadata>
307
+ </metadata>`),e.join("")}function TF(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=gr(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Kl=1024;function ZP(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[et("xml",null,{"xmlns:v":Oi.v,"xmlns:o":Oi.o,"xmlns:x":Oi.x,"xmlns:mv":Oi.mv}).replace(/\/>/,">"),et("o:shapelayout",et("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),et("v:shapetype",[et("v:stroke",null,{joinstyle:"miter"}),et("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Kl<e*1e3;)Kl+=1e3;return t.forEach(function(a){var o=wn(a[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?et("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=et("v:fill",l,s),u={on:"t",obscured:"t"};++Kl,i=i.concat(["<v:shape"+vf({id:"_x0000_s"+Kl,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,et("v:shadow",null,u),et("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",kn("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),kn("x:AutoFill","False"),kn("x:Row",String(o.r)),kn("x:Column",String(o.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function QP(e){var t=[sn,et("comments",null,{xmlns:qc[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=vr(i.a);r.indexOf(a)==-1&&(r.push(a),t.push("<author>"+a+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(vr(l.a))),a.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(kn("t",vr(a[0]||"")));else{for(var o=`Comment:
308
+ `+a[0]+`
309
+ `,s=1;s<a.length;++s)o+=`Reply:
310
+ `+a[s]+`
311
+ `;t.push(kn("t",vr(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function EF(e,t,r){var n=[sn,et("ThreadedComments",null,{xmlns:bn.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?a=l.id:l.parentId=a,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(et("threadedComment",kn("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function NF(e){var t=[sn,et("personList",null,{xmlns:bn.TCMNT,"xmlns:x":qc[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(et("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function PF(e){var t={};t.iauthor=e.read_shift(4);var r=il(e);return t.rfx=r.s,t.ref=gr(r.s),e.l+=16,t}function OF(e,t){return t==null&&(t=De(36)),t.write_shift(4,e[1].iauthor),zc(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var jF=Gn;function CF(e){return _n(e.slice(0,54))}function kF(e){var t=di(),r=[];return We(t,628),We(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),We(t,632,CF(i.a)))})}),We(t,631),We(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:wn(n[0]),e:wn(n[0])};We(t,635,OF([a,i])),i.t&&i.t.length>0&&We(t,637,II(i)),We(t,636),delete i.iauthor})}),We(t,634),We(t,629),t.end()}function LF(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&br.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var eO=["xlsb","xlsm","xlam","biff8","xla"],IF=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,i,a,o){var s=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var c=a.length>0?parseInt(a,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=t.c:--u,l?c+=t.r:--c,i+(s?"":"$")+Hn(u)+(l?"":"$")+Ln(c)}return function(i,a){return t=a,i.replace(e,r)}})(),fb=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,hb=(function(){return function(t,r){return t.replace(fb,function(n,i,a,o,s,l){var c=ab(o)-(a?0:r.c),u=ib(l)-(s?0:r.r),f=u==0?"":s?u+1:"["+u+"]",d=c==0?"":a?c+1:"["+c+"]";return i+"R"+f+"C"+d})}})();function FF(e,t){return e.replace(fb,function(r,n,i,a,o,s){return n+(i=="$"?i+a:Hn(ab(a)+t.c))+(o=="$"?o+s:Ln(ib(s)+t.r))})}function MF(e){return e.length!=1}function rn(e){e.l+=1}function ls(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function tO(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return rO(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),o=ls(e),s=ls(e);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function rO(e){var t=ls(e),r=ls(e),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function DF(e,t,r){if(r.biff<8)return rO(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=ls(e),o=ls(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function nO(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return RF(e);var n=e.read_shift(r&&r.biff==12?4:2),i=ls(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function RF(e){var t=ls(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function BF(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function $F(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return qF(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),o=(a&16384)>>14,s=(a&32768)>>15;if(a&=16383,s==1)for(;i>524287;)i-=1048576;if(o==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:o,rRel:s}}function qF(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function UF(e,t,r){var n=(e[e.l++]&96)>>5,i=tO(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function zF(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var o=tO(e,a,r);return[n,i,o]}function WF(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function HF(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function GF(e,t,r){var n=(e[e.l++]&96)>>5,i=DF(e,t-1,r);return[n,i]}function VF(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function e_(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function YF(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function KF(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function XF(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function JF(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function ZF(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function iO(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function QF(e){return e.read_shift(2),iO(e)}function eM(e){return e.read_shift(2),iO(e)}function tM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=nO(e,0,r);return[n,i]}function rM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=$F(e,0,r);return[n,i]}function nM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=nO(e,0,r);return[n,i,a]}function iM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[iD[i],sO[i],n]}function aM(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:oM(e);return[i,(a[0]===0?sO:nD)[a[1]]]}function oM(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function sM(e,t,r){e.l+=r&&r.biff==2?3:4}function lM(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function cM(e){return e.l++,ih[e.read_shift(1)]}function uM(e){return e.l++,e.read_shift(2)}function fM(e){return e.l++,e.read_shift(1)!==0}function hM(e){return e.l++,Wc(e)}function dM(e,t,r){return e.l++,$P(e,t-1,r)}function pM(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=n7(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=ih[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Wc(e);break;case 2:r[1]=s7(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function mM(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?il:u7)(e));return i}function vM(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,o=[];a!=n&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=pM(e,r.biff);return o}function gM(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function xM(e,t,r){if(r.biff==5)return yM(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function yM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function bM(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function wM(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function _M(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function SM(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var AM=Ba,TM=Ba,EM=Ba;function ah(e,t,r){return e.l+=2,[BF(e)]}function db(e){return e.l+=6,[]}var NM=ah,PM=db,OM=db,jM=ah;function aO(e){return e.l+=2,[RP(e),e.read_shift(2)&1]}var CM=ah,kM=aO,LM=db,IM=ah,FM=ah,MM=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function DM(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),o=MM[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function RM(e){return e.l+=2,[e.read_shift(4)]}function BM(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function $M(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function qM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function UM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function zM(e){return e.l+=4,[0,0]}var t_={1:{n:"PtgExp",f:lM},2:{n:"PtgTbl",f:EM},3:{n:"PtgAdd",f:rn},4:{n:"PtgSub",f:rn},5:{n:"PtgMul",f:rn},6:{n:"PtgDiv",f:rn},7:{n:"PtgPower",f:rn},8:{n:"PtgConcat",f:rn},9:{n:"PtgLt",f:rn},10:{n:"PtgLe",f:rn},11:{n:"PtgEq",f:rn},12:{n:"PtgGe",f:rn},13:{n:"PtgGt",f:rn},14:{n:"PtgNe",f:rn},15:{n:"PtgIsect",f:rn},16:{n:"PtgUnion",f:rn},17:{n:"PtgRange",f:rn},18:{n:"PtgUplus",f:rn},19:{n:"PtgUminus",f:rn},20:{n:"PtgPercent",f:rn},21:{n:"PtgParen",f:rn},22:{n:"PtgMissArg",f:rn},23:{n:"PtgStr",f:dM},26:{n:"PtgSheet",f:BM},27:{n:"PtgEndSheet",f:$M},28:{n:"PtgErr",f:cM},29:{n:"PtgBool",f:fM},30:{n:"PtgInt",f:uM},31:{n:"PtgNum",f:hM},32:{n:"PtgArray",f:VF},33:{n:"PtgFunc",f:iM},34:{n:"PtgFuncVar",f:aM},35:{n:"PtgName",f:gM},36:{n:"PtgRef",f:tM},37:{n:"PtgArea",f:UF},38:{n:"PtgMemArea",f:bM},39:{n:"PtgMemErr",f:AM},40:{n:"PtgMemNoMem",f:TM},41:{n:"PtgMemFunc",f:wM},42:{n:"PtgRefErr",f:_M},43:{n:"PtgAreaErr",f:WF},44:{n:"PtgRefN",f:rM},45:{n:"PtgAreaN",f:GF},46:{n:"PtgMemAreaN",f:qM},47:{n:"PtgMemNoMemN",f:UM},57:{n:"PtgNameX",f:xM},58:{n:"PtgRef3d",f:nM},59:{n:"PtgArea3d",f:zF},60:{n:"PtgRefErr3d",f:SM},61:{n:"PtgAreaErr3d",f:HF},255:{}},WM={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},HM={1:{n:"PtgElfLel",f:aO},2:{n:"PtgElfRw",f:IM},3:{n:"PtgElfCol",f:NM},6:{n:"PtgElfRwV",f:FM},7:{n:"PtgElfColV",f:jM},10:{n:"PtgElfRadical",f:CM},11:{n:"PtgElfRadicalS",f:LM},13:{n:"PtgElfColS",f:PM},15:{n:"PtgElfColSV",f:OM},16:{n:"PtgElfRadicalLel",f:kM},25:{n:"PtgList",f:DM},29:{n:"PtgSxName",f:RM},255:{}},GM={0:{n:"PtgAttrNoop",f:zM},1:{n:"PtgAttrSemi",f:ZF},2:{n:"PtgAttrIf",f:XF},4:{n:"PtgAttrChoose",f:YF},8:{n:"PtgAttrGoto",f:KF},16:{n:"PtgAttrSum",f:sM},32:{n:"PtgAttrBaxcel",f:e_},33:{n:"PtgAttrBaxcel",f:e_},64:{n:"PtgAttrSpace",f:QF},65:{n:"PtgAttrSpaceSemi",f:eM},128:{n:"PtgAttrIfError",f:JF},255:{}};function VM(e,t,r,n){if(n.biff<8)return Ba(e,t);for(var i=e.l+t,a=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=vM(e,0,n),a.push(r[o][1]);break;case"PtgMemArea":r[o][2]=mM(e,r[o][1],n),a.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),a.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=i-e.l,t!==0&&a.push(Ba(e,t)),a}function YM(e,t,r){for(var n=e.l+t,i,a,o=[];n!=e.l;)t=n-e.l,a=e[e.l],i=t_[a]||t_[WM[a]],(a===24||a===25)&&(i=(a===24?HM:GM)[e[e.l+1]]),!i||!i.f?Ba(e,t):o.push([i.n,i.f(e,t,r)]);return o}function KM(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var o=n[a];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var XM={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function JM(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function oO(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function r_(e,t,r){var n=oO(e,t,r);return n=="#REF"?n:JM(n,r)}function cc(e,t,r,n,i){var a=i&&i.biff||8,o={s:{c:0,r:0}},s=[],l,c,u,f=0,d=0,h,g="";if(!e[0]||!e[0][0])return"";for(var p=-1,v="",y=0,b=e[0].length;y<b;++y){var _=e[0][y];switch(_[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),c=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:v=Ur(" ",e[0][p][1][1]);break;case 1:v=Ur("\r",e[0][p][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}c=c+v,p=-1}s.push(c+XM[_[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Qu(_[1][1],o,i),s.push(ef(u,a));break;case"PtgRefN":u=r?Qu(_[1][1],r,i):_[1][1],s.push(ef(u,a));break;case"PtgRef3d":f=_[1][1],u=Qu(_[1][2],o,i),g=r_(n,f,i),s.push(g+"!"+ef(u,a));break;case"PtgFunc":case"PtgFuncVar":var S=_[1][0],A=_[1][1];S||(S=0),S&=127;var P=S==0?[]:s.slice(-S);s.length-=S,A==="User"&&(A=P.shift()),s.push(A+"("+P.join(",")+")");break;case"PtgBool":s.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(_[1]);break;case"PtgNum":s.push(String(_[1]));break;case"PtgStr":s.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(_[1]);break;case"PtgAreaN":h=$w(_[1][1],r?{s:r}:o,i),s.push(W1(h,i));break;case"PtgArea":h=$w(_[1][1],o,i),s.push(W1(h,i));break;case"PtgArea3d":f=_[1][1],h=_[1][2],g=r_(n,f,i),s.push(g+"!"+W1(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=_[1][2];var T=(n.names||[])[d-1]||(n[0]||[])[d],k=T?T.Name:"SH33TJSNAME"+String(d);k&&k.slice(0,6)=="_xlfn."&&!i.xlfn&&(k=k.slice(6)),s.push(k);break;case"PtgNameX":var L=_[1][1];d=_[1][2];var B;if(i.biff<=5)L<0&&(L=-L),n[L]&&(B=n[L][d]);else{var j="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][d]&&n[L][d].itab>0&&(j=n.SheetNames[n[L][d].itab-1]+"!"):j=n.SheetNames[d-1]+"!"),n[L]&&n[L][d])j+=n[L][d].Name;else if(n[0]&&n[0][d])j+=n[0][d].Name;else{var N=(oO(n,L,i)||"").split(";;");N[d-1]?j=N[d-1]:j+="SH33TJSERRX"}s.push(j);break}B||(B={Name:"SH33TJSERRY"}),s.push(B.Name);break;case"PtgParen":var D="(",U=")";if(p>=0){switch(v="",e[0][p][1][0]){case 2:D=Ur(" ",e[0][p][1][1])+D;break;case 3:D=Ur("\r",e[0][p][1][1])+D;break;case 4:U=Ur(" ",e[0][p][1][1])+U;break;case 5:U=Ur("\r",e[0][p][1][1])+U;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(D+s.pop()+U);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:_[1][1],r:_[1][0]};var W={c:r.c,r:r.r};if(n.sharedf[gr(u)]){var R=n.sharedf[gr(u)];s.push(cc(R,o,W,n,i))}else{var z=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){s.push(cc(c[1],o,W,n,i)),z=!0;break}z||s.push(_[1])}break;case"PtgArray":s.push("{"+KM(_[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var Q=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&Q.indexOf(e[0][y][0])==-1){_=e[0][p];var Z=!0;switch(_[1][0]){case 4:Z=!1;case 0:v=Ur(" ",_[1][1]);break;case 5:Z=!1;case 1:v=Ur("\r",_[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}s.push((Z?v:"")+s.pop()+(Z?"":v)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function ZM(e){if(e==null){var t=De(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Ys(e);return Ys(0)}function QM(e,t,r,n,i){var a=Ks(t,r,i),o=ZM(e.v),s=De(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=De(e.bf.length),u=0;u<e.bf.length;++u)c[u]=e.bf[u];var f=Cn([a,o,s,c]);return f}function pp(e,t,r){var n=e.read_shift(4),i=YM(e,n,r),a=e.read_shift(4),o=a>0?VM(e,a,i,r):null;return[i,o]}var eD=pp,mp=pp,tD=pp,rD=pp,nD={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},sO={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},iD={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function aD(e){var t="of:="+e.replace(fb,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function oD(e){return e.replace(/\./,"!")}var tf=typeof Map<"u";function pb(e,t,r){var n=0,i=e.length;if(r){if(tf?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=tf?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(tf?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function vp(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(po=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=ed(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=wy(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function lO(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function us(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){nP(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function sD(e,t,r){if(e&&e["!ref"]){var n=Ir(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function lD(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+an(e[r])+'"/>';return t+"</mergeCells>"}function cD(e,t,r,n,i){var a=!1,o={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}a=!0,o.codeName=mf(vr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+et("outlinePr",null,c)}!a&&!s||(i[i.length]=et("sheetPr",s,o))}var uD=["objects","scenarios","selectLockedCells","selectUnlockedCells"],fD=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function hD(e){var t={sheet:1};return uD.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),fD.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=HP(e.password).toString(16).toUpperCase()),et("sheetProtection",null,t)}function dD(e){return lO(e),et("pageMargins",null,e)}function pD(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=et("col",null,vp(i,n)));return r[r.length]="</cols>",r.join("")}function mD(e,t,r,n){var i=typeof e.ref=="string"?e.ref:an(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,o=Li(i);o.s.r==o.e.r&&(o.e.r=Li(t["!ref"]).e.r,i=an(o));for(var s=0;s<a.length;++s){var l=a[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),et("autoFilter",null,{ref:i})}function vD(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),et("sheetViews",et("sheetView",null,i),{})}function gD(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=ih[e.v];break;case"d":n&&n.cellDates?i=ni(e.v,-1).toISOString():(e=mi(e),e.t="n",i=""+(e.v=pi(ni(e.v)))),typeof e.z>"u"&&(e.z=Wr[14]);break;default:i=e.v;break}var s=kn("v",vr(i)),l={r:t},c=us(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=kn("v",""+pb(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=o),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=et("f",vr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),et("c",s,l)}function xD(e,t,r,n){var i=[],a=[],o=Ir(e["!ref"]),s="",l,c="",u=[],f=0,d=0,h=e["!rows"],g=Array.isArray(e),p={r:c},v,y=-1;for(d=o.s.c;d<=o.e.c;++d)u[d]=Hn(d);for(f=o.s.r;f<=o.e.r;++f){for(a=[],c=Ln(f),d=o.s.c;d<=o.e.c;++d){l=u[d]+c;var b=g?(e[f]||[])[d]:e[l];b!==void 0&&(s=gD(b,l,e,t))!=null&&a.push(s)}(a.length>0||h&&h[f])&&(p={r:c},h&&h[f]&&(v=h[f],v.hidden&&(p.hidden=1),y=-1,v.hpx?y=td(v.hpx):v.hpt&&(y=v.hpt),y>-1&&(p.ht=y,p.customHeight=1),v.level&&(p.outlineLevel=v.level)),i[i.length]=et("row",a.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},v=h[f],v.hidden&&(p.hidden=1),y=-1,v.hpx?y=td(v.hpx):v.hpt&&(y=v.hpt),y>-1&&(p.ht=y,p.customHeight=1),v.level&&(p.outlineLevel=v.level),i[i.length]=et("row","",p));return i.join("")}function cO(e,t,r,n){var i=[sn,et("worksheet",null,{xmlns:qc[0],"xmlns:r":bn.r})],a=r.SheetNames[e],o=0,s="",l=r.Sheets[a];l==null&&(l={});var c=l["!ref"]||"A1",u=Ir(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=an(u)}n||(n={}),l["!comments"]=[];var f=[];cD(l,r,e,t,i),i[i.length]=et("dimension",null,{ref:c}),i[i.length]=vD(l,t,e,r),t.sheetFormat&&(i[i.length]=et("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=pD(l,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=xD(l,t),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=hD(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=mD(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=lD(l["!merges"]));var d=-1,h,g=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(g=mr(n,-1,vr(p[1].Target).replace(/#.*$/,""),Jt.HLINK),h["r:id"]="rId"+g),(d=p[1].Target.indexOf("#"))>-1&&(h.location=vr(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=vr(p[1].Tooltip)),i[i.length]=et("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=dD(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=kn("ignoredErrors",et("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(g=mr(n,-1,"../drawings/drawing"+(e+1)+".xml",Jt.DRAW),i[i.length]=et("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=f),l["!comments"].length>0&&(g=mr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Jt.VML),i[i.length]=et("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function yD(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function bD(e,t,r){var n=De(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=td(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var f=-1,d=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var g=Array.isArray(r)?(r[c.r]||[])[c.c]:r[gr(c)];g&&(f<0&&(f=h),d=h)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,d))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function wD(e,t,r,n){var i=bD(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&We(e,0,i)}var _D=il,SD=zc;function AD(){}function TD(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=FI(e),r}function ED(e,t,r){r==null&&(r=De(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return J0({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),AP(e,r),r.slice(0,r.l)}function ND(e){var t=Zi(e);return[t]}function PD(e,t,r){return r==null&&(r=De(8)),tl(t,r)}function OD(e){var t=rl(e);return[t]}function jD(e,t,r){return r==null&&(r=De(4)),nl(t,r)}function CD(e){var t=Zi(e),r=e.read_shift(1);return[t,r,"b"]}function kD(e,t,r){return r==null&&(r=De(9)),tl(t,r),r.write_shift(1,e.v?1:0),r}function LD(e){var t=rl(e),r=e.read_shift(1);return[t,r,"b"]}function ID(e,t,r){return r==null&&(r=De(5)),nl(t,r),r.write_shift(1,e.v?1:0),r}function FD(e){var t=Zi(e),r=e.read_shift(1);return[t,r,"e"]}function MD(e,t,r){return r==null&&(r=De(9)),tl(t,r),r.write_shift(1,e.v),r}function DD(e){var t=rl(e),r=e.read_shift(1);return[t,r,"e"]}function RD(e,t,r){return r==null&&(r=De(8)),nl(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function BD(e){var t=Zi(e),r=e.read_shift(4);return[t,r,"s"]}function $D(e,t,r){return r==null&&(r=De(12)),tl(t,r),r.write_shift(4,t.v),r}function qD(e){var t=rl(e),r=e.read_shift(4);return[t,r,"s"]}function UD(e,t,r){return r==null&&(r=De(8)),nl(t,r),r.write_shift(4,t.v),r}function zD(e){var t=Zi(e),r=Wc(e);return[t,r,"n"]}function WD(e,t,r){return r==null&&(r=De(16)),tl(t,r),Ys(e.v,r),r}function HD(e){var t=rl(e),r=Wc(e);return[t,r,"n"]}function GD(e,t,r){return r==null&&(r=De(12)),nl(t,r),Ys(e.v,r),r}function VD(e){var t=Zi(e),r=TP(e);return[t,r,"n"]}function YD(e,t,r){return r==null&&(r=De(12)),tl(t,r),EP(e.v,r),r}function KD(e){var t=rl(e),r=TP(e);return[t,r,"n"]}function XD(e,t,r){return r==null&&(r=De(8)),nl(t,r),EP(e.v,r),r}function JD(e){var t=Zi(e),r=ob(e);return[t,r,"is"]}function ZD(e){var t=Zi(e),r=Gn(e);return[t,r,"str"]}function QD(e,t,r){return r==null&&(r=De(12+4*e.v.length)),tl(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function eR(e){var t=rl(e),r=Gn(e);return[t,r,"str"]}function tR(e,t,r){return r==null&&(r=De(8+4*e.v.length)),nl(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function rR(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=cc(s,null,i,r.supbooks,r)}else e.l=n;return o}function nR(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=cc(s,null,i,r.supbooks,r)}else e.l=n;return o}function iR(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=Wc(e),o=[i,a,"n"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=cc(s,null,i,r.supbooks,r)}else e.l=n;return o}function aR(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=Gn(e),o=[i,a,"str"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=cc(s,null,i,r.supbooks,r)}else e.l=n;return o}var oR=il,sR=zc;function lR(e,t){return t==null&&(t=De(4)),t.write_shift(4,e),t}function cR(e,t){var r=e.l+t,n=il(e),i=sb(e),a=Gn(e),o=Gn(e),s=Gn(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function uR(e,t){var r=De(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));zc({s:wn(e[0]),e:wn(e[0])},r),lb("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return _n(i||"",r),_n(e[1].Tooltip||"",r),_n("",r),r.slice(0,r.l)}function fR(){}function hR(e,t,r){var n=e.l+t,i=NP(e),a=e.read_shift(1),o=[i];if(o[2]=a,r.cellFormula){var s=eD(e,n-e.l,r);o[1]=s}else e.l=n;return o}function dR(e,t,r){var n=e.l+t,i=il(e),a=[i];if(r.cellFormula){var o=rD(e,n-e.l,r);a[1]=o,e.l=n}else e.l=n;return a}function pR(e,t,r){r==null&&(r=De(18));var n=vp(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var uO=["left","right","top","bottom","header","footer"];function mR(e){var t={};return uO.forEach(function(r){t[r]=Wc(e)}),t}function vR(e,t){return t==null&&(t=De(48)),lO(e),uO.forEach(function(r){Ys(e[r],t)}),t}function gR(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function xR(e,t,r){r==null&&(r=De(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function yR(e){var t=De(24);return t.write_shift(4,4),t.write_shift(4,1),zc(e,t),t}function bR(e,t){return t==null&&(t=De(66)),t.write_shift(2,e.password?HP(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function wR(){}function _R(){}function SR(e,t,r,n,i,a,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=mi(t),t.z=t.z||Wr[14],t.v=pi(ni(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=us(i.cellXfs,t,i),t.l&&a["!links"].push([gr(l),t.l]),t.c&&a["!comments"].push([gr(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=pb(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?We(e,18,UD(t,l)):We(e,7,$D(t,l))):(l.t="str",o?We(e,17,tR(t,l)):We(e,6,QD(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?We(e,13,XD(t,l)):We(e,2,YD(t,l)):o?We(e,16,GD(t,l)):We(e,5,WD(t,l)),!0;case"b":return l.t="b",o?We(e,15,ID(t,l)):We(e,4,kD(t,l)),!0;case"e":return l.t="e",o?We(e,14,RD(t,l)):We(e,3,MD(t,l)),!0}return o?We(e,12,jD(t,l)):We(e,1,PD(t,l)),!0}function AR(e,t,r,n){var i=Ir(t["!ref"]||"A1"),a,o="",s=[];We(e,145);var l=Array.isArray(t),c=i.e.r;t["!rows"]&&(c=Math.max(i.e.r,t["!rows"].length-1));for(var u=i.s.r;u<=c;++u){o=Ln(u),wD(e,t,i,u);var f=!1;if(u<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){u===i.s.r&&(s[d]=Hn(d)),a=s[d]+o;var h=l?(t[u]||[])[d]:t[a];if(!h){f=!1;continue}f=SR(e,h,u,d,n,t,f)}}We(e,146)}function TR(e,t){!t||!t["!merges"]||(We(e,177,lR(t["!merges"].length)),t["!merges"].forEach(function(r){We(e,176,sR(r))}),We(e,178))}function ER(e,t){!t||!t["!cols"]||(We(e,390),t["!cols"].forEach(function(r,n){r&&We(e,60,pR(n,r))}),We(e,391))}function NR(e,t){!t||!t["!ref"]||(We(e,648),We(e,649,yR(Ir(t["!ref"]))),We(e,650))}function PR(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=mr(r,-1,n[1].Target.replace(/#.*$/,""),Jt.HLINK);We(e,494,uR(n,i))}}),delete t["!links"]}function OR(e,t,r,n){if(t["!comments"].length>0){var i=mr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Jt.VML);We(e,551,lb("rId"+i)),t["!legacy"]=i}}function jR(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:an(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=Li(a);s.s.r==s.e.r&&(s.e.r=Li(t["!ref"]).e.r,a=an(s));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),We(e,161,zc(Ir(a))),We(e,162)}}function CR(e,t,r){We(e,133),We(e,137,xR(t,r)),We(e,138),We(e,134)}function kR(e,t){t["!protect"]&&We(e,535,bR(t["!protect"]))}function LR(e,t,r,n){var i=di(),a=r.SheetNames[e],o=r.Sheets[a]||{},s=a;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Ir(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],We(i,129),(r.vbaraw||o["!outline"])&&We(i,147,ED(s,o["!outline"])),We(i,148,SD(l)),CR(i,o,r.Workbook),ER(i,o),AR(i,o,e,t),kR(i,o),jR(i,o,r,e),TR(i,o),PR(i,o,n),o["!margins"]&&We(i,476,vR(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&NR(i,o),OR(i,o,e,n),We(i,130),i.end()}function IR(e,t){e.l+=10;var r=Gn(e);return{name:r}}var FR=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function MR(e){return!e.Workbook||!e.Workbook.WBProps?"false":dI(e.Workbook.WBProps.date1904)?"true":"false"}var DR="][*?/\\".split("");function fO(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return DR.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function RR(e,t,r){e.forEach(function(n,i){fO(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=t&&t[i]&&t[i].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function BR(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];RR(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)sD(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function hO(e){var t=[sn];t[t.length]=et("workbook",null,{xmlns:qc[0],"xmlns:r":bn.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(FR.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=et("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:vr(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=et("sheet",null,o)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=et("definedName",vr(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function $R(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=by(e),r.name=Gn(e),r}function qR(e,t){return t||(t=De(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),lb(e.strRelID,t),_n(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function UR(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Gn(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function zR(e,t){t||(t=De(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),AP(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function WR(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=MI(e),o=tD(e,0,r),s=sb(e);e.l=n;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function HR(e,t){We(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};We(e,156,qR(i))}We(e,144)}function GR(e,t){t||(t=De(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return _n("SheetJS",t),_n(z0.version,t),_n(z0.version,t),_n("7262",t),t.length>t.l?t.slice(0,t.l):t}function VR(e,t){t||(t=De(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function YR(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(We(e,135),We(e,158,VR(i)),We(e,136))}}function KR(e,t){var r=di();return We(r,131),We(r,128,GR()),We(r,153,zR(e.Workbook&&e.Workbook.WBProps||null)),YR(r,e),HR(r,e),We(r,132),r.end()}function XR(e,t,r){return(t.slice(-4)===".bin"?KR:hO)(e)}function JR(e,t,r,n,i){return(t.slice(-4)===".bin"?LR:cO)(e,r,n,i)}function ZR(e,t,r){return(t.slice(-4)===".bin"?vF:YP)(e,r)}function QR(e,t,r){return(t.slice(-4)===".bin"?z7:WP)(e,r)}function e9(e,t,r){return(t.slice(-4)===".bin"?kF:QP)(e)}function t9(e){return(e.slice(-4)===".bin"?AF:JP)()}function r9(e,t){var r=[];return e.Props&&r.push(ZI(e.Props,t)),e.Custprops&&r.push(QI(e.Props,e.Custprops)),r.join("")}function n9(){return""}function i9(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(et("NumberFormat",null,{"ss:Format":vr(Wr[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};r.push(et("Style",a.join(""),o))}),et("Styles",r.join(""))}function dO(e){return et("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+hb(e.Ref,{r:0,c:0})})}function a9(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(dO(i)))}return et("Names",r.join(""))}function o9(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||a.push(dO(s)))}return a.join("")}function s9(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(et("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(et("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(et("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(et("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(kn("ProtectContents","True")),e["!protect"].objects&&i.push(kn("ProtectObjects","True")),e["!protect"].scenarios&&i.push(kn("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(kn("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(kn("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&i.push("<"+o[1]+"/>")})),i.length==0?"":et("WorksheetOptions",i.join(""),{xmlns:Oi.x})}function l9(e){return e.map(function(t){var r=hI(t.t||""),n=et("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return et("Comment",n,{"ss:Author":t.a})}).join("")}function c9(e,t,r,n,i,a,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+vr(hb(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=wn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=vr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=vr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",d="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",d=String(e.v);break;case"b":f="Boolean",d=e.v?"1":"0";break;case"e":f="Error",d=ih[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Wr[14]);break;case"s":f="String",d=fI(e.v||"");break}var h=us(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var g=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+g+"</Data>";return(e.c||[]).length>0&&(p+=l9(e.c)),et("Cell",p,s)}function u9(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=VP(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function f9(e,t,r,n){if(!e["!ref"])return"";var i=Ir(e["!ref"]),a=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(v,y){ub(v);var b=!!v.width,_=vp(y,v),S={"ss:Index":y+1};b&&(S["ss:Width"]=Q0(_.width)),v.hidden&&(S["ss:Hidden"]="1"),s.push(et("Column",null,S))});for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[u9(c,(e["!rows"]||[])[c])],f=i.s.c;f<=i.e.c;++f){var d=!1;for(o=0;o!=a.length;++o)if(!(a[o].s.c>f)&&!(a[o].s.r>c)&&!(a[o].e.c<f)&&!(a[o].e.r<c)){(a[o].s.c!=f||a[o].s.r!=c)&&(d=!0);break}if(!d){var h={r:c,c:f},g=gr(h),p=l?(e[c]||[])[f]:e[g];u.push(c9(p,g,e,t,r,n,h))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}function h9(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],o=a?o9(a,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=a?f9(a,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(s9(a,t,e,r)),n.join("")}function d9(e,t){t||(t={}),e.SSF||(e.SSF=mi(Wr)),e.SSF&&(fp(),up(e.SSF),t.revssf=hp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(r9(e,t)),r.push(n9()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(et("Worksheet",h9(n,t,e),{"ss:Name":vr(e.SheetNames[n])}));return r[2]=i9(e,t),r[3]=a9(e),sn+et("Workbook",r.join(""),{xmlns:Oi.ss,"xmlns:o":Oi.o,"xmlns:x":Oi.x,"xmlns:ss":Oi.ss,"xmlns:dt":Oi.dt,"xmlns:html":Oi.html})}var V1={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function p9(e,t){var r=[],n=[],i=[],a=0,o,s=Ow(Uw,"n"),l=Ow(zw,"n");if(e.Props)for(o=In(e.Props),a=0;a<o.length;++a)(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Props[o[a]]]);if(e.Custprops)for(o=In(e.Custprops),a=0;a<o.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},o[a])||(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Custprops[o[a]]]);var c=[];for(a=0;a<i.length;++a)DP.indexOf(i[a][0])>-1||IP.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&br.utils.cfb_add(t,"/SummaryInformation",Yw(n,V1.SI,l,zw)),(r.length||c.length)&&br.utils.cfb_add(t,"/DocumentSummaryInformation",Yw(r,V1.DSI,s,Uw,c.length?c:null,V1.UDI))}function m9(e,t){var r=t||{},n=br.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return br.utils.cfb_add(n,i,pO(e,r)),r.biff==8&&(e.Props||e.Custprops)&&p9(e,n),r.biff==8&&e.vbaraw&&LF(n,br.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var v9={0:{f:yD},1:{f:ND},2:{f:VD},3:{f:FD},4:{f:CD},5:{f:zD},6:{f:ZD},7:{f:BD},8:{f:aR},9:{f:iR},10:{f:rR},11:{f:nR},12:{f:OD},13:{f:KD},14:{f:DD},15:{f:LD},16:{f:HD},17:{f:eR},18:{f:qD},19:{f:ob},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:WR},40:{},42:{},43:{f:Z7},44:{f:X7},45:{f:tF},46:{f:nF},47:{f:rF},48:{},49:{f:OI},50:{},51:{f:yF},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:j7},62:{f:JD},63:{f:TF},64:{f:wR},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ba,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:gR},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:TD},148:{f:_D,p:16},151:{f:fR},152:{},153:{f:UR},154:{},155:{},156:{f:$R},157:{},158:{},159:{T:1,f:$7},160:{T:-1},161:{T:1,f:il},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:oR},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:gF},336:{T:-1},337:{f:_F,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:by},357:{},358:{},359:{},360:{T:1},361:{},362:{f:A7},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:hR},427:{f:dR},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:mR},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:AD},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:cR},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:by},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:jF},633:{T:1},634:{T:-1},635:{T:1,f:PF},636:{T:-1},637:{f:LI},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:IR},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:_R},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function rt(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&nb(r)&&e.push(r)}}function g9(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return rt(e,t,r,i);var a=t;if(!isNaN(a)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,a),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<i;){for(u=e.next(4),u.write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}function oh(e,t,r){return e||(e=De(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function x9(e,t,r,n){var i=De(9);return oh(i,e,t),BP(r,n||"b",i),i}function y9(e,t,r){var n=De(8+2*r.length);return oh(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function b9(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?pi(ni(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?rt(e,2,I7(r,n,i)):rt(e,3,L7(r,n,i));return;case"b":case"e":rt(e,5,x9(r,n,t.v,t.t));return;case"s":case"str":rt(e,4,y9(r,n,(t.v||"").slice(0,255)));return}rt(e,1,oh(null,r,n))}function w9(e,t,r,n){var i=Array.isArray(t),a=Ir(t["!ref"]||"A1"),o,s="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),o=an(a)}for(var c=a.s.r;c<=a.e.r;++c){s=Ln(c);for(var u=a.s.c;u<=a.e.c;++u){c===a.s.r&&(l[u]=Hn(u)),o=l[u]+s;var f=i?(t[c]||[])[u]:t[o];f&&b9(e,f,c,u)}}}function _9(e,t){for(var r=t||{},n=di(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return rt(n,r.biff==4?1033:r.biff==3?521:9,cb(e,16,r)),w9(n,e.Sheets[e.SheetNames[i]],i,r),rt(n,10),n.end()}function S9(e,t,r){rt(e,49,v7({sz:12,name:"Arial"},r))}function A9(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&rt(e,1054,y7(i,t[i],r))})}function T9(e,t){var r=De(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),rt(e,2151,r),r=De(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),UP(Ir(t["!ref"]||"A1"),r),r.write_shift(4,4),rt(e,2152,r)}function E9(e,t){for(var r=0;r<16;++r)rt(e,224,Xw({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){rt(e,224,Xw(n,0,t))})}function N9(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];rt(e,440,N7(n)),n[1].Tooltip&&rt(e,2048,P7(n))}delete t["!links"]}function P9(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&rt(e,125,C7(vp(i,n),i))})}}function O9(e,t,r,n,i){var a=16+us(i.cellXfs,t,i);if(t.v==null&&!t.bf){rt(e,513,Ks(r,n,a));return}if(t.bf)rt(e,6,QM(t,r,n,i,a));else switch(t.t){case"d":case"n":var o=t.t=="d"?pi(ni(t.v)):t.v;rt(e,515,S7(r,n,o,a));break;case"b":case"e":rt(e,517,_7(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=pb(i.Strings,t.v,i.revStrings);rt(e,253,g7(r,n,s,a))}else rt(e,516,x7(r,n,(t.v||"").slice(0,255),a,i));break;default:rt(e,513,Ks(r,n,a))}}function j9(e,t,r){var n=di(),i=r.SheetNames[e],a=r.Sheets[i]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(a),c=t.biff==8,u,f="",d=[],h=Ir(a["!ref"]||"A1"),g=c?65536:16384;if(h.e.c>255||h.e.r>=g){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,g-1)}rt(n,2057,cb(r,16,t)),rt(n,13,Vi(1)),rt(n,12,Vi(100)),rt(n,15,ei(!0)),rt(n,17,ei(!1)),rt(n,16,Ys(.001)),rt(n,95,ei(!0)),rt(n,42,ei(!1)),rt(n,43,ei(!1)),rt(n,130,Vi(1)),rt(n,128,w7()),rt(n,131,ei(!1)),rt(n,132,ei(!1)),c&&P9(n,a["!cols"]),rt(n,512,b7(h,t)),c&&(a["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=Ln(p);for(var v=h.s.c;v<=h.e.c;++v){p===h.s.r&&(d[v]=Hn(v)),u=d[v]+f;var y=l?(a[p]||[])[v]:a[u];y&&(O9(n,y,p,v,t),c&&y.l&&a["!links"].push([u,y.l]))}}var b=s.CodeName||s.name||i;return c&&rt(n,574,m7((o.Views||[])[0])),c&&(a["!merges"]||[]).length&&rt(n,229,E7(a["!merges"])),c&&N9(n,a),rt(n,442,qP(b)),c&&T9(n,a),rt(n,10),n.end()}function C9(e,t,r){var n=di(),i=(e||{}).Workbook||{},a=i.Sheets||[],o=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(rt(n,2057,cb(e,5,r)),r.bookType=="xla"&&rt(n,135),rt(n,225,s?Vi(1200):null),rt(n,193,r7(2)),l&&rt(n,191),l&&rt(n,192),rt(n,226),rt(n,92,f7("SheetJS",r)),rt(n,66,Vi(s?1200:1252)),s&&rt(n,353,Vi(0)),s&&rt(n,448),rt(n,317,k7(e.SheetNames.length)),s&&e.vbaraw&&rt(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";rt(n,442,qP(c))}rt(n,156,Vi(17)),rt(n,25,ei(!1)),rt(n,18,ei(!1)),rt(n,19,Vi(0)),s&&rt(n,431,ei(!1)),s&&rt(n,444,Vi(0)),rt(n,61,p7()),rt(n,64,ei(!1)),rt(n,141,Vi(0)),rt(n,34,ei(MR(e)=="true")),rt(n,14,ei(!0)),s&&rt(n,439,ei(!1)),rt(n,218,Vi(0)),S9(n,e,r),A9(n,e.SSF,r),E9(n,r),s&&rt(n,352,ei(!1));var u=n.end(),f=di();s&&rt(f,140,O7()),s&&r.Strings&&g9(f,252,d7(r.Strings)),rt(f,10);var d=f.end(),h=di(),g=0,p=0;for(p=0;p<e.SheetNames.length;++p)g+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var v=u.length+g+d.length;for(p=0;p<e.SheetNames.length;++p){var y=a[p]||{};rt(h,133,h7({pos:v,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),v+=t[p].length}var b=h.end();if(g!=b.length)throw new Error("BS8 "+g+" != "+b.length);var _=[];return u.length&&_.push(u),b.length&&_.push(b),d.length&&_.push(d),Cn(_)}function k9(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=mi(Wr)),e&&e.SSF&&(fp(),up(e.SSF),r.revssf=hp(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,mb(r),r.cellXfs=[],us(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=j9(i,r,e);return n.unshift(C9(e,n,r)),Cn(n)}function pO(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Li(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return k9(e,t);case 4:case 3:case 2:return _9(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function L9(e,t,r,n){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>r||i[c].s.c>o)&&!(i[c].e.r<r||i[c].e.c<o)){if(i[c].s.r<r||i[c].s.c<o){s=-1;break}s=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(s<0)){var u=gr({r,c:o}),f=n.dense?(e[r]||[])[o]:e[u],d=f&&f.v!=null&&(f.h||uI(f.w||(bo(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(n.id||"sjs")+"-"+u,a.push(et("td",d,h))}}var g="<tr>";return g+a.join("")+"</tr>"}var I9='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',F9="</body></html>";function M9(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function mO(e,t){var r=t||{},n=r.header!=null?r.header:I9,i=r.footer!=null?r.footer:F9,a=[n],o=Li(e["!ref"]);r.dense=Array.isArray(e),a.push(M9(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)a.push(L9(e,o,s,r));return a.push("</table>"+i),a.join("")}function vO(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var o=typeof n.origin=="string"?wn(n.origin):n.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var u=Li(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),i==-1&&(c.e.r=i=u.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),g=0,p=0,v=0,y=0,b=0,_=0;for(e["!cols"]||(e["!cols"]=[]);g<s.length&&p<l;++g){var S=s[g];if(n_(S)){if(n.display)continue;h[p]={hidden:!0}}var A=S.children;for(v=y=0;v<A.length;++v){var P=A[v];if(!(n.display&&n_(P))){var T=P.hasAttribute("data-v")?P.getAttribute("data-v"):P.hasAttribute("v")?P.getAttribute("v"):pI(P.innerHTML),k=P.getAttribute("data-z")||P.getAttribute("z");for(d=0;d<f.length;++d){var L=f[d];L.s.c==y+a&&L.s.r<p+i&&p+i<=L.e.r&&(y=L.e.c+1-a,d=-1)}_=+P.getAttribute("colspan")||1,((b=+P.getAttribute("rowspan")||1)>1||_>1)&&f.push({s:{r:p+i,c:y+a},e:{r:p+i+(b||1)-1,c:y+a+(_||1)-1}});var B={t:"s",v:T},j=P.getAttribute("data-t")||P.getAttribute("t")||"";T!=null&&(T.length==0?B.t=j||"z":n.raw||T.trim().length==0||j=="s"||(T==="TRUE"?B={t:"b",v:!0}:T==="FALSE"?B={t:"b",v:!1}:isNaN(ho(T))?isNaN(pf(T).getDate())||(B={t:"d",v:ni(T)},n.cellDates||(B={t:"n",v:pi(B.v)}),B.z=n.dateNF||Wr[14]):B={t:"n",v:ho(T)})),B.z===void 0&&k!=null&&(B.z=k);var N="",D=P.getElementsByTagName("A");if(D&&D.length)for(var U=0;U<D.length&&!(D[U].hasAttribute("href")&&(N=D[U].getAttribute("href"),N.charAt(0)!="#"));++U);N&&N.charAt(0)!="#"&&(B.l={Target:N}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][y+a]=B):e[gr({c:y+a,r:p+i})]=B,c.e.c<y+a&&(c.e.c=y+a),y+=_}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),c.e.r=Math.max(c.e.r,p-1+i),e["!ref"]=an(c),p>=l&&(e["!fullref"]=an((c.e.r=s.length-g+p-1+i,c))),e}function gO(e,t){var r=t||{},n=r.dense?[]:{};return vO(n,e,t)}function D9(e,t){return el(gO(e,t),t)}function n_(e){var t="",r=R9(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function R9(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var B9=(function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+vf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return sn+t}})(),i_=(function(){var e=function(a){return vr(a).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
312
+ `,r=` <table:covered-table-cell/>
313
+ `,n=function(a,o,s){var l=[];l.push(' <table:table table:name="'+vr(o.SheetNames[s])+`" table:style-name="ta1">
314
+ `);var c=0,u=0,f=Li(a["!ref"]||"A1"),d=a["!merges"]||[],h=0,g=Array.isArray(a);if(a["!cols"])for(u=0;u<=f.e.c;++u)l.push(" <table:table-column"+(a["!cols"][u]?' table:style-name="co'+a["!cols"][u].ods+'"':"")+`></table:table-column>
315
+ `);var p="",v=a["!rows"]||[];for(c=0;c<f.s.r;++c)p=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
316
+ `);for(;c<=f.e.r;++c){for(p=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" <table:table-row"+p+`>
317
+ `),u=0;u<f.s.c;++u)l.push(t);for(;u<=f.e.c;++u){var y=!1,b={},_="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>u)&&!(d[h].s.r>c)&&!(d[h].e.c<u)&&!(d[h].e.r<c)){(d[h].s.c!=u||d[h].s.r!=c)&&(y=!0),b["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,b["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(y){l.push(r);continue}var S=gr({r:c,c:u}),A=g?(a[c]||[])[u]:a[S];if(A&&A.f&&(b["table:formula"]=vr(aD(A.f)),A.F&&A.F.slice(0,S.length)==S)){var P=Li(A.F);b["table:number-matrix-columns-spanned"]=P.e.c-P.s.c+1,b["table:number-matrix-rows-spanned"]=P.e.r-P.s.r+1}if(!A){l.push(t);continue}switch(A.t){case"b":_=A.v?"TRUE":"FALSE",b["office:value-type"]="boolean",b["office:boolean-value"]=A.v?"true":"false";break;case"n":_=A.w||String(A.v||0),b["office:value-type"]="float",b["office:value"]=A.v||0;break;case"s":case"str":_=A.v==null?"":A.v,b["office:value-type"]="string";break;case"d":_=A.w||ni(A.v).toISOString(),b["office:value-type"]="date",b["office:date-value"]=ni(A.v).toISOString(),b["table:style-name"]="ce1";break;default:l.push(t);continue}var T=e(_);if(A.l&&A.l.Target){var k=A.l.Target;k=k.charAt(0)=="#"?"#"+oD(k.slice(1)):k,k.charAt(0)!="#"&&!k.match(/^\w+:/)&&(k="../"+k),T=et("text:a",T,{"xlink:href":k.replace(/&/g,"&amp;")})}l.push(" "+et("table:table-cell",et("text:p",T,{}),b)+`
318
+ `)}l.push(` </table:table-row>
319
+ `)}return l.push(` </table:table>
320
+ `),l.join("")},i=function(a,o){a.push(` <office:automatic-styles>
321
+ `),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
322
+ `),a.push(` <number:month number:style="long"/>
323
+ `),a.push(` <number:text>/</number:text>
324
+ `),a.push(` <number:day number:style="long"/>
325
+ `),a.push(` <number:text>/</number:text>
326
+ `),a.push(` <number:year/>
327
+ `),a.push(` </number:date-style>
328
+ `);var s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var f=c["!cols"][u];if(f.width==null&&f.wpx==null&&f.wch==null)continue;ub(f),f.ods=s;var d=c["!cols"][u].wpx+"px";a.push(' <style:style style:name="co'+s+`" style:family="table-column">
329
+ `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
330
+ `),a.push(` </style:style>
331
+ `),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var f=c["!rows"][u].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row">
332
+ `),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
333
+ `),a.push(` </style:style>
334
+ `),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
335
+ `),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
336
+ `),a.push(` </style:style>
337
+ `),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
338
+ `),a.push(` </office:automatic-styles>
339
+ `)};return function(o,s){var l=[sn],c=vf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=vf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+c+u+`>
340
+ `),l.push(kP().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
341
+ `),i(l,o),l.push(` <office:body>
342
+ `),l.push(` <office:spreadsheet>
343
+ `);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(` </office:spreadsheet>
344
+ `),l.push(` </office:body>
345
+ `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function xO(e,t){if(t.bookType=="fods")return i_(e,t);var r=Q2(),n="",i=[],a=[];return n="mimetype",qt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",qt(r,n,i_(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",qt(r,n,B9(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",qt(r,n,sn+kP()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",qt(r,n,JI(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",qt(r,n,KI(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function rd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $9(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):va(mf(e))}function q9(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function cs(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function U9(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function gf(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function pr(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function ic(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function hn(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=gf(e,r),a=i&7;i=Math.floor(i/8);var o=0,s;if(i==0)break;switch(a){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=gf(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var c={data:s,type:a};t[i]==null?t[i]=[c]:t[i].push(c)}return t}function Nn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(pr(n*8+i.type)),i.type==2&&t.push(pr(i.data.length)),t.push(i.data))})}),cs(t)}function ca(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=gf(e,n),a=hn(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:ic(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=hn(s.data),c=ic(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(t=a[3])!=null&&t[0]&&(o.merge=ic(a[3][0].data)>>>0>0),r.push(o)}return r}function Ml(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:pr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:pr(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:pr(o.data.length)}],n[2].push({data:Nn(o.meta),type:2})});var a=Nn(n);t.push(pr(a.length)),t.push(a),i.forEach(function(o){return t.push(o)})}),cs(t)}function z9(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=gf(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==0){var o=t[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}i.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,c=0;if(a==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(t[r[0]++]>>2)+1,a==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[cs(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var u=cs(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function ua(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(z9(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return cs(t)}function Dl(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var a=pr(n),o=a.length;t.push(a),n<=60?(o++,t.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,i[0]=0,i[1]=o&255,i[2]=o>>8&255,i[3]=o>>16&255,r+=n}return cs(t)}function Y1(e,t){var r=new Uint8Array(32),n=rd(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,U9(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function K1(e,t){var r=new Uint8Array(32),n=rd(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Vo(e){var t=hn(e);return gf(t[1][0].data)}function W9(e,t,r){var n,i,a,o;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(a=e[8])==null?void 0:a[0])==null?void 0:o.data)&&ic(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=rd(e[7][0].data),u=0,f=[],d=rd(e[4][0].data),h=0,g=[],p=0;p<t.length;++p){if(t[p]==null){c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}c.setUint16(p*2,u,!0),d.setUint16(p*2,h,!0);var v,y;switch(typeof t[p]){case"string":v=Y1({t:"s",v:t[p]},r),y=K1({t:"s",v:t[p]},r);break;case"number":v=Y1({t:"n",v:t[p]},r),y=K1({t:"n",v:t[p]},r);break;case"boolean":v=Y1({t:"b",v:t[p]},r),y=K1({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(v),u+=v.length,g.push(y),h+=y.length,++l}for(e[2][0].data=pr(l);p<e[7][0].data.length/2;++p)c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=cs(f),e[3][0].data=cs(g),l}function H9(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Li(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(an(n)));var a=nd(r,{range:n,header:1}),o=["~Sh33tJ5~"];a.forEach(function(I){return I.forEach(function(M){typeof M=="string"&&o.push(M)})});var s={},l=[],c=br.read(t.numbers,{type:"base64"});c.FileIndex.map(function(I,M){return[I,c.FullPaths[M]]}).forEach(function(I){var M=I[0],q=I[1];if(M.type==2&&M.name.match(/\.iwa/)){var Y=M.content,fe=ua(Y),ae=ca(fe);ae.forEach(function(ne){l.push(ne.id),s[ne.id]={deps:[],location:q,type:ic(ne.messages[0].meta[1][0].data)}})}}),l.sort(function(I,M){return I-M});var u=l.filter(function(I){return I>1}).map(function(I){return[I,pr(I)]});c.FileIndex.map(function(I,M){return[I,c.FullPaths[M]]}).forEach(function(I){var M=I[0];if(I[1],!!M.name.match(/\.iwa/)){var q=ca(ua(M.content));q.forEach(function(Y){Y.messages.forEach(function(fe){u.forEach(function(ae){Y.messages.some(function(ne){return ic(ne.meta[1][0].data)!=11006&&q9(ne.data,ae[1])})&&s[ae[0]].deps.push(Y.id)})})})}});for(var f=br.find(c,s[1].location),d=ca(ua(f.content)),h,g=0;g<d.length;++g){var p=d[g];p.id==1&&(h=p)}var v=Vo(hn(h.messages[0].data)[1][0].data);for(f=br.find(c,s[v].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==v&&(h=p);for(v=Vo(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[v].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==v&&(h=p);for(v=Vo(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[v].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==v&&(h=p);var y=hn(h.messages[0].data);{y[6][0].data=pr(n.e.r+1),y[7][0].data=pr(n.e.c+1);var b=Vo(y[46][0].data),_=br.find(c,s[b].location),S=ca(ua(_.content));{for(var A=0;A<S.length&&S[A].id!=b;++A);if(S[A].id!=b)throw"Bad ColumnRowUIDMapArchive";var P=hn(S[A].messages[0].data);P[1]=[],P[2]=[],P[3]=[];for(var T=0;T<=n.e.c;++T){var k=[];k[1]=k[2]=[{type:0,data:pr(T+420690)}],P[1].push({type:2,data:Nn(k)}),P[2].push({type:0,data:pr(T)}),P[3].push({type:0,data:pr(T)})}P[4]=[],P[5]=[],P[6]=[];for(var L=0;L<=n.e.r;++L)k=[],k[1]=k[2]=[{type:0,data:pr(L+726270)}],P[4].push({type:2,data:Nn(k)}),P[5].push({type:0,data:pr(L)}),P[6].push({type:0,data:pr(L)});S[A].messages[0].data=Nn(P)}_.content=Dl(Ml(S)),_.size=_.content.length,delete y[46];var B=hn(y[4][0].data);{B[7][0].data=pr(n.e.r+1);var j=hn(B[1][0].data),N=Vo(j[2][0].data);_=br.find(c,s[N].location),S=ca(ua(_.content));{if(S[0].id!=N)throw"Bad HeaderStorageBucket";var D=hn(S[0].messages[0].data);for(L=0;L<a.length;++L){var U=hn(D[2][0].data);U[1][0].data=pr(L),U[4][0].data=pr(a[L].length),D[2][L]={type:D[2][0].type,data:Nn(U)}}S[0].messages[0].data=Nn(D)}_.content=Dl(Ml(S)),_.size=_.content.length;var W=Vo(B[2][0].data);_=br.find(c,s[W].location),S=ca(ua(_.content));{if(S[0].id!=W)throw"Bad HeaderStorageBucket";for(D=hn(S[0].messages[0].data),T=0;T<=n.e.c;++T)U=hn(D[2][0].data),U[1][0].data=pr(T),U[4][0].data=pr(n.e.r+1),D[2][T]={type:D[2][0].type,data:Nn(U)};S[0].messages[0].data=Nn(D)}_.content=Dl(Ml(S)),_.size=_.content.length;var R=Vo(B[4][0].data);(function(){for(var I=br.find(c,s[R].location),M=ca(ua(I.content)),q,Y=0;Y<M.length;++Y){var fe=M[Y];fe.id==R&&(q=fe)}var ae=hn(q.messages[0].data);{ae[3]=[];var ne=[];o.forEach(function(se,Fe){ne[1]=[{type:0,data:pr(Fe)}],ne[2]=[{type:0,data:pr(1)}],ne[3]=[{type:2,data:$9(se)}],ae[3].push({type:2,data:Nn(ne)})})}q.messages[0].data=Nn(ae);var ve=Ml(M),we=Dl(ve);I.content=we,I.size=I.content.length})();var z=hn(B[3][0].data);{var Q=z[1][0];delete z[2];var Z=hn(Q.data);{var ee=Vo(Z[2][0].data);(function(){for(var I=br.find(c,s[ee].location),M=ca(ua(I.content)),q,Y=0;Y<M.length;++Y){var fe=M[Y];fe.id==ee&&(q=fe)}var ae=hn(q.messages[0].data);{delete ae[6],delete z[7];var ne=new Uint8Array(ae[5][0].data);ae[5]=[];for(var ve=0,we=0;we<=n.e.r;++we){var se=hn(ne);ve+=W9(se,a[we],o),se[1][0].data=pr(we),ae[5].push({data:Nn(se),type:2})}ae[1]=[{type:0,data:pr(n.e.c+1)}],ae[2]=[{type:0,data:pr(n.e.r+1)}],ae[3]=[{type:0,data:pr(ve)}],ae[4]=[{type:0,data:pr(n.e.r+1)}]}q.messages[0].data=Nn(ae);var Fe=Ml(M),Ae=Dl(Fe);I.content=Ae,I.size=I.content.length})()}Q.data=Nn(Z)}B[3][0].data=Nn(z)}y[4][0].data=Nn(B)}h.messages[0].data=Nn(y);var ce=Ml(d),O=Dl(ce);return f.content=O,f.size=f.content.length,c}function G9(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function mb(e){G9([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function V9(e,t){return t.bookType=="ods"?xO(e,t):t.bookType=="numbers"?H9(e,t):t.bookType=="xlsb"?Y9(e,t):K9(e,t)}function Y9(e,t){Kl=1024,e&&!e.SSF&&(e.SSF=mi(Wr)),e&&e.SSF&&(fp(),up(e.SSF),t.revssf=hp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,tf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=eO.indexOf(t.bookType)>-1,i=OP();mb(t=t||{});var a=Q2(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",qt(a,o,LP(e.Props,t)),i.coreprops.push(o),mr(t.rels,2,o,Jt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,qt(a,o,FP(e.Props)),i.extprops.push(o),mr(t.rels,3,o,Jt.EXT_PROPS),e.Custprops!==e.Props&&In(e.Custprops||{}).length>0&&(o="docProps/custom.xml",qt(a,o,MP(e.Custprops)),i.custprops.push(o),mr(t.rels,4,o,Jt.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,qt(a,o,JR(s-1,o,t,e,u)),i.sheets.push(o),mr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Jt.WS[0])}if(f){var h=f["!comments"],g=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,qt(a,p,e9(h,p)),i.comments.push(p),mr(u,-1,"../comments"+s+"."+r,Jt.CMNT),g=!0),f["!legacy"]&&g&&qt(a,"xl/drawings/vmlDrawing"+s+".vml",ZP(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&qt(a,CP(o),rc(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,qt(a,o,QR(t.Strings,o,t)),i.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Jt.SST)),o="xl/workbook."+r,qt(a,o,XR(e,o)),i.workbooks.push(o),mr(t.rels,1,o,Jt.WB),o="xl/theme/theme1.xml",qt(a,o,XP(e.Themes,t)),i.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Jt.THEME),o="xl/styles."+r,qt(a,o,ZR(e,o,t)),i.styles.push(o),mr(t.wbrels,-1,"styles."+r,Jt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",qt(a,o,e.vbaraw),i.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Jt.VBA)),o="xl/metadata."+r,qt(a,o,t9(o)),i.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Jt.XLMETA),qt(a,"[Content_Types].xml",jP(i,t)),qt(a,"_rels/.rels",rc(t.rels)),qt(a,"xl/_rels/workbook."+r+".rels",rc(t.wbrels)),delete t.revssf,delete t.ssf,a}function K9(e,t){Kl=1024,e&&!e.SSF&&(e.SSF=mi(Wr)),e&&e.SSF&&(fp(),up(e.SSF),t.revssf=hp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,tf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=eO.indexOf(t.bookType)>-1,i=OP();mb(t=t||{});var a=Q2(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",qt(a,o,LP(e.Props,t)),i.coreprops.push(o),mr(t.rels,2,o,Jt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,qt(a,o,FP(e.Props)),i.extprops.push(o),mr(t.rels,3,o,Jt.EXT_PROPS),e.Custprops!==e.Props&&In(e.Custprops||{}).length>0&&(o="docProps/custom.xml",qt(a,o,MP(e.Custprops)),i.custprops.push(o),mr(t.rels,4,o,Jt.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,qt(a,o,cO(s-1,t,e,f)),i.sheets.push(o),mr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Jt.WS[0])}if(d){var g=d["!comments"],p=!1,v="";if(g&&g.length>0){var y=!1;g.forEach(function(b){b[1].forEach(function(_){_.T==!0&&(y=!0)})}),y&&(v="xl/threadedComments/threadedComment"+s+"."+r,qt(a,v,EF(g,u,t)),i.threadedcomments.push(v),mr(f,-1,"../threadedComments/threadedComment"+s+"."+r,Jt.TCMNT)),v="xl/comments"+s+"."+r,qt(a,v,QP(g)),i.comments.push(v),mr(f,-1,"../comments"+s+"."+r,Jt.CMNT),p=!0}d["!legacy"]&&p&&qt(a,"xl/drawings/vmlDrawing"+s+".vml",ZP(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&qt(a,CP(o),rc(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,qt(a,o,WP(t.Strings,t)),i.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Jt.SST)),o="xl/workbook."+r,qt(a,o,hO(e)),i.workbooks.push(o),mr(t.rels,1,o,Jt.WB),o="xl/theme/theme1.xml",qt(a,o,XP(e.Themes,t)),i.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Jt.THEME),o="xl/styles."+r,qt(a,o,YP(e,t)),i.styles.push(o),mr(t.wbrels,-1,"styles."+r,Jt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",qt(a,o,e.vbaraw),i.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Jt.VBA)),o="xl/metadata."+r,qt(a,o,JP()),i.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Jt.XLMETA),u.length>1&&(o="xl/persons/person.xml",qt(a,o,NF(u)),i.people.push(o),mr(t.wbrels,-1,"persons/person.xml",Jt.PEOPLE)),qt(a,"[Content_Types].xml",jP(i,t)),qt(a,"_rels/.rels",rc(t.rels)),qt(a,"xl/_rels/workbook."+r+".rels",rc(t.wbrels)),delete t.revssf,delete t.ssf,a}function X9(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=yo(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function yO(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return rh(t.file,br.write(e,{type:er?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return br.write(e,t)}function J9(e,t){var r=mi(t||{}),n=V9(e,r);return Z9(n,r)}function Z9(e,t){var r={},n=er?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?br.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(cp(i))}return t.password&&typeof encrypt_agile<"u"?yO(encrypt_agile(i,t.password),t):t.type==="file"?rh(t.file,i):t.type=="string"?Ju(i):i}function Q9(e,t){var r=t||{},n=m9(e,r);return yO(n,r)}function La(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return df(mf(n));case"binary":return mf(n);case"string":return e;case"file":return rh(t.file,n,"utf8");case"buffer":return er?To(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):La(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function eB(e,t){switch(t.type){case"base64":return df(e);case"binary":return e;case"string":return e;case"file":return rh(t.file,e,"binary");case"buffer":return er?To(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function w0(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?df(r):t.type=="string"?Ju(r):r;case"file":return rh(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function bO(e,t){PL(),BR(e);var r=mi(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=bO(e,r);return r.type="array",cp(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return La(d9(e,r),r);case"slk":case"sylk":return La(M7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return La(mO(e.Sheets[e.SheetNames[i]],r),r);case"txt":return eB(_O(e.Sheets[e.SheetNames[i]],r),r);case"csv":return La(vb(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return La(D7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return w0(F7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return La(R7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return La(H7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return La(zP.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return La(xO(e,r),r);case"wk1":return w0(Jw.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return w0(Jw.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),w0(pO(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),Q9(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return J9(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function tB(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function wO(e,t,r){var n={};return n.type="file",n.file=t,tB(n),bO(e,n)}function rB(e,t,r,n,i,a,o,s){var l=Ln(r),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!o||e[r])for(var h=t.s.c;h<=t.e.c;++h){var g=o?e[r][h]:e[n[h]+l];if(g===void 0||g.t===void 0){if(c===void 0)continue;a[h]!=null&&(d[a[h]]=c);continue}var p=g.v;switch(g.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(a[h]!=null){if(p==null)if(g.t=="e"&&p===null)d[a[h]]=null;else if(c!==void 0)d[a[h]]=c;else if(u&&p===null)d[a[h]]=null;else continue;else d[a[h]]=u&&(g.t!=="n"||g.t==="n"&&s.rawNumbers!==!1)?p:bo(g,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function nd(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,a=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=Ir(u);break;case"number":l=Ir(e["!ref"]),l.s.r=u;break;default:l=u}n>0&&(i=0);var f=Ln(l.s.r),d=[],h=[],g=0,p=0,v=Array.isArray(e),y=l.s.r,b=0,_={};v&&!e[y]&&(e[y]=[]);var S=c.skipHidden&&e["!cols"]||[],A=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(S[b]||{}).hidden)switch(d[b]=Hn(b),r=v?e[y][b]:e[d[b]+f],n){case 1:a[b]=b-l.s.c;break;case 2:a[b]=d[b];break;case 3:a[b]=c.header[b-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=bo(r,null,c),p=_[o]||0,!p)_[o]=1;else{do s=o+"_"+p++;while(_[s]);_[o]=p,_[s]=1}a[b]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(A[y]||{}).hidden){var P=rB(e,l,y,d,n,a,v,c);(P.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[g++]=P.row)}return h.length=g,h}var a_=/"/g;function nB(e,t,r,n,i,a,o,s){for(var l=!0,c=[],u="",f=Ln(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var h=s.dense?(e[r]||[])[d]:e[n[d]+f];if(h==null)u="";else if(h.v!=null){l=!1,u=""+(s.rawNumbers&&h.t=="n"?h.v:bo(h,null,s));for(var g=0,p=0;g!==u.length;++g)if((p=u.charCodeAt(g))===i||p===a||p===34||s.forceQuotes){u='"'+u.replace(a_,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(a_,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function vb(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ir(e["!ref"]),a=n.FS!==void 0?n.FS:",",o=a.charCodeAt(0),s=n.RS!==void 0?n.RS:`
346
+ `,l=s.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],g=i.s.c;g<=i.e.c;++g)(d[g]||{}).hidden||(f[g]=Hn(g));for(var p=0,v=i.s.r;v<=i.e.r;++v)(h[v]||{}).hidden||(u=nB(e,i,v,f,o,l,a,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((p++?s:"")+u)));return delete n.dense,r.join("")}function _O(e,t){t||(t={}),t.FS=" ",t.RS=`
347
+ `;var r=vb(e,t);return r}function iB(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ir(e["!ref"]),a="",o=[],s,l=[],c=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=Hn(s);for(var u=i.s.r;u<=i.e.r;++u)for(a=Ln(u),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,r=c?(e[u]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function SO(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},o=0,s=0;if(a&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?wn(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a["!ref"]){var f=Ir(a["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(o=f.e.r+1,u.e.r=o+t.length-1+i)}else o==-1&&(o=0,u.e.r=t.length-1+i);var d=n.header||[],h=0;t.forEach(function(p,v){In(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var b=p[y],_="z",S="",A=gr({c:s+h,r:o+v+i});c=xf(a,A),b&&typeof b=="object"&&!(b instanceof Date)?a[A]=b:(typeof b=="number"?_="n":typeof b=="boolean"?_="b":typeof b=="string"?_="s":b instanceof Date?(_="d",n.cellDates||(_="n",b=pi(b)),S=n.dateNF||Wr[14]):b===null&&n.nullError&&(_="e",b=0),c?(c.t=_,c.v=b,delete c.w,delete c.R,S&&(c.z=S)):a[A]=c={t:_,v:b},S&&(c.z=S))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var g=Ln(o);if(i)for(h=0;h<d.length;++h)a[Hn(h+s)+g]={t:"s",v:d[h]};return a["!ref"]=an(u),a}function aB(e,t){return SO(null,e,t)}function xf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=wn(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?xf(e,gr(t)):xf(e,gr({r:t,c:r||0}))}function oB(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function sB(){return{SheetNames:[],Sheets:{}}}function lB(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=o+i)!=-1;++i);}if(fO(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function cB(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=oB(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function uB(e,t){return e.z=t,e}function AO(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function fB(e,t,r){return AO(e,"#"+t,r)}function hB(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function dB(e,t,r,n){for(var i=typeof t!="string"?t:Ir(t),a=typeof t=="string"?t:an(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=xf(e,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var ac={encode_col:Hn,encode_row:Ln,encode_cell:gr,encode_range:an,decode_col:ab,decode_row:ib,split_cell:PI,decode_cell:wn,decode_range:Li,format_cell:bo,sheet_add_aoa:SP,sheet_add_json:SO,sheet_add_dom:vO,aoa_to_sheet:Uc,json_to_sheet:aB,table_to_sheet:gO,table_to_book:D9,sheet_to_csv:vb,sheet_to_txt:_O,sheet_to_json:nd,sheet_to_html:mO,sheet_to_formulae:iB,sheet_to_row_object_array:nd,sheet_get_cell:xf,book_new:sB,book_append_sheet:lB,book_set_sheet_visibility:cB,cell_set_number_format:uB,cell_set_hyperlink:AO,cell_set_internal_link:fB,cell_add_comment:hB,sheet_set_array_formula:dB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function pB(e,t,r,n="Sheet1"){const i=[t,...r],a=ac.aoa_to_sheet(i),o=ac.book_new();ac.book_append_sheet(o,a,n),wO(o,`${e}.xlsx`)}function mB(e,t){const r=ac.book_new();t.forEach(({name:n,headers:i,rows:a})=>{const o=[i,...a],s=ac.aoa_to_sheet(o);ac.book_append_sheet(r,s,n)}),wO(r,`${e}.xlsx`)}function vB(e,t){const[r,n]=G.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=G.useCallback(a=>{const o=a instanceof Function?a(r):a;n(o);try{window.localStorage.setItem(e,JSON.stringify(o))}catch{}},[e,r]);return[r,i]}function gB(e){G.useEffect(()=>{const t=r=>{e.forEach(({key:n,ctrl:i,meta:a,shift:o,handler:s})=>{const l=r.key.toLowerCase()===n.toLowerCase(),c=i?r.ctrlKey||r.metaKey:!0,u=o?r.shiftKey:!0;l&&c&&u&&(r.preventDefault(),s())})};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function xB(e,t={}){const r=`form-draft-${e}`,[n,i]=G.useState(()=>{try{return!!localStorage.getItem(r)}catch{return!1}}),a=G.useCallback(l=>{try{localStorage.setItem(r,JSON.stringify({data:l,savedAt:Date.now()})),i(!0)}catch{}},[r]),o=G.useCallback(()=>{try{const l=localStorage.getItem(r);if(!l)return null;const c=JSON.parse(l);return Date.now()-c.savedAt>1440*60*1e3?(localStorage.removeItem(r),i(!1),null):c.data}catch{return null}},[r]),s=G.useCallback(()=>{try{localStorage.removeItem(r)}catch{}i(!1)},[r]);return{hasDraft:n,saveDraft:a,loadDraft:o,clearDraft:s}}const X1="recently-viewed",yB=8;function bB(){const[e,t]=G.useState(()=>{try{return JSON.parse(localStorage.getItem(X1))||[]}catch{return[]}}),r=G.useCallback(i=>{t(a=>{const o=a.filter(l=>l.id!==i.id||l.type!==i.type),s=[{...i,viewedAt:Date.now()},...o].slice(0,yB);try{localStorage.setItem(X1,JSON.stringify(s))}catch{}return s})},[]),n=G.useCallback(()=>{t([]);try{localStorage.removeItem(X1)}catch{}},[]);return{items:e,addItem:r,clearAll:n}}function wB(e=[],{paramName:t="tab"}={}){const r=G.useMemo(()=>e.map(s=>s.id||_B(s.label||"")),[e]),n=()=>{try{const l=new URLSearchParams(window.location.search).get(t);if(l!=null){const c=r.indexOf(l);if(c!==-1)return c}}catch{}return 0},[i,a]=G.useState(n),o=G.useCallback(s=>{a(s);try{const l=new URL(window.location.href),c=r[s];s===0?l.searchParams.delete(t):c&&l.searchParams.set(t,c),window.history.replaceState({},"",l.toString())}catch{}},[r,t]);return[i,o]}function _B(e){return e.toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function SB(e,t=null){const[r,n]=G.useState(t);return{sortedData:G.useMemo(()=>{if(!r||!e)return e||[];const{key:o,direction:s}=r;return[...e].sort((l,c)=>{const u=l[o]??"",f=c[o]??"";return u<f?s==="asc"?-1:1:u>f?s==="asc"?1:-1:0})},[e,r]),sortConfig:r,requestSort:o=>{n(s=>{if((s==null?void 0:s.key)===o){if(s.direction==="asc")return{key:o,direction:"desc"};if(s.direction==="desc")return null}return{key:o,direction:"asc"}})}}}const TO=[20,50,100,1e3],_y="table-page-sizes";function AB(e,t){if(!e)return t;try{const n=JSON.parse(localStorage.getItem(_y)||"{}")[e];if(n&&TO.includes(n))return n}catch{}return t}function TB(e,t){if(e)try{const r=JSON.parse(localStorage.getItem(_y)||"{}");r[e]=t,localStorage.setItem(_y,JSON.stringify(r))}catch{}}function EB(e=20,t){const[r,n]=G.useState(0),[i,a]=G.useState(()=>AB(t,e)),o=G.useCallback(c=>{a(c),n(0),TB(t,c)},[t]),s=G.useCallback(()=>n(0),[]),l={page:r+1,page_size:i};return{page:r,pageSize:i,setPage:n,setPageSize:o,params:l,reset:s,pageSizeOptions:TO}}const o_=1440*60*1e3;function NB(e,{allClassesLabel:t="All Classes",allSectionsLabel:r="All Sections"}={}){const[n,i]=G.useState(""),[a,o]=G.useState(""),{data:s,isLoading:l}=BC.useQuery({queryKey:["class-sections-lookup"],queryFn:e,staleTime:o_,gcTime:o_,enabled:!!e}),c=(s==null?void 0:s.classes)||[],u=G.useMemo(()=>[{value:"",label:t},...c.map(g=>({value:g.name,label:g.display_name}))],[c,t]),f=l&&!!n,d=G.useMemo(()=>{if(!n)return[{value:"",label:r}];const g=c.find(p=>p.name===n);return!g||!g.sections.length?[{value:"",label:r}]:[{value:"",label:r},...g.sections.map(p=>({value:p.section_name,label:p.section_name}))]},[n,c,r]);return{selectedClass:n,selectedSection:a,setSelectedClass:g=>{i(g),o("")},setSelectedSection:o,classOptions:u,sectionOptions:d,sectionsLoading:f,classes:c,isLoading:l}}const PB={primary:"bg-primary-500 text-white hover:bg-primary-700 hover:shadow-glow-primary focus:ring-primary-500",secondary:"bg-slate-100 text-slate-700 hover:bg-slate-200 focus:ring-slate-400",danger:"bg-danger-500 text-white hover:bg-danger-600 hover:shadow-glow-danger focus:ring-danger-500",ghost:"text-slate-600 hover:bg-slate-100 focus:ring-slate-400"},OB={sm:"px-3 py-1.5 text-xs gap-1.5",md:"px-4 py-2 text-sm gap-2",lg:"px-5 py-2.5 text-base gap-2"};function sr({children:e,variant:t="primary",size:r="md",icon:n,loading:i,disabled:a,className:o,...s}){return x.jsxs("button",{disabled:a||i,className:vt("inline-flex items-center justify-center font-medium rounded-lg transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-offset-1 active:scale-[0.97]","disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",PB[t],OB[r],o),...s,children:[i?x.jsx(Ge.Loader2,{size:16,className:"animate-spin"}):n&&x.jsx(n,{size:16}),e]})}function jB({children:e,className:t,hover:r=!1,interactive:n=!1,...i}){return x.jsx("div",{className:vt("bg-white rounded-xl shadow-soft border border-slate-100 p-6 transition-all duration-200",r&&"hover:shadow-soft-lg hover:-translate-y-0.5",n&&"cursor-pointer hover:shadow-soft-lg hover:-translate-y-1 hover:border-slate-200 active:translate-y-0 active:shadow-soft",t),...i,children:e})}function CB({children:e,className:t}){return x.jsx("div",{className:vt("pb-4 mb-4 border-b border-slate-200",t),children:e})}function kB({children:e,className:t}){return x.jsx("div",{className:vt(t),children:e})}function LB({children:e,className:t}){return x.jsx("h3",{className:vt("text-lg font-semibold text-slate-900",t),children:e})}const IB={primary:"bg-primary-100 text-primary-700",success:"bg-success-100 text-success-600",warning:"bg-warning-100 text-warning-600",danger:"bg-danger-100 text-danger-600",neutral:"bg-slate-100 text-slate-600"},FB={Active:"success",Approved:"success",Paid:"success",Present:"success",Completed:"success",Published:"primary",Operational:"success",Pending:"warning",Late:"warning",Maintenance:"warning",Draft:"neutral",Generated:"warning","Partially Paid":"warning",Rejected:"danger",Absent:"danger",Overdue:"danger",Cancelled:"danger",Inactive:"neutral",Unpaid:"danger"};function q0({children:e,variant:t,status:r,className:n}){const i=t||FB[r||e]||"neutral";return x.jsx("span",{className:vt("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",IB[i],n),children:e||r})}function gb({items:e,className:t}){return x.jsx("nav",{className:vt("flex items-center gap-1 text-xs text-slate-500 mb-2",t),children:e.map((r,n)=>x.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&x.jsx(Ge.ChevronRight,{size:12,className:"text-slate-400"}),r.href?x.jsx(ns.Link,{to:r.href,className:"hover:text-primary-600 transition-colors duration-150",children:r.label}):x.jsx("span",{className:"text-slate-800 font-medium",children:r.label})]},n))})}function EO({label:e,error:t,icon:r,className:n,...i}){return x.jsxs("div",{className:"space-y-1.5",children:[e&&x.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),x.jsxs("div",{className:"relative",children:[r&&x.jsx(r,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{className:vt("w-full px-3 py-2 text-sm border border-slate-300 rounded-lg bg-white","placeholder:text-slate-400","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150","hover:border-slate-400",r&&"pl-9",t&&"border-danger-500 focus:ring-danger-500",n),...i})]}),t&&x.jsx("p",{className:"text-xs text-danger-500",children:t})]})}function NO({value:e,onChange:t,placeholder:r="Search...",className:n}){return x.jsx(EO,{icon:Ge.Search,value:e,onChange:i=>t(i.target.value),placeholder:r,className:n})}function MB({label:e,options:t=[],value:r,onChange:n,placeholder:i="Select...",error:a,className:o,...s}){return x.jsxs("div",{className:"space-y-1.5",children:[e&&x.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),x.jsxs("div",{className:"relative",children:[x.jsxs("select",{value:r,onChange:l=>n(l.target.value),className:vt("w-full px-3 py-2 text-sm border border-slate-300 rounded-lg bg-white appearance-none","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150 hover:border-slate-400",a&&"border-danger-500 focus:ring-danger-500",o),...s,children:[x.jsx("option",{value:"",children:i}),t.map(l=>x.jsx("option",{value:l.value??l,children:l.label??l},l.value??l))]}),x.jsx(Ge.ChevronDown,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),a&&x.jsx("p",{className:"text-xs text-danger-500",children:a})]})}const DB={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl",full:"max-w-[90vw]"};function sh({open:e,onClose:t,title:r,children:n,footer:i,size:a="md",persistent:o=!0}){const s=G.useRef(null),l=G.useRef(null),c=G.useCallback(f=>{var d,h,g;if(f.key==="Escape"&&(f.stopPropagation(),o||t()),f.key==="Enter"&&i&&s.current){const v=((h=(d=document.activeElement)==null?void 0:d.tagName)==null?void 0:h.toLowerCase())==="textarea",y=((g=document.activeElement)==null?void 0:g.getAttribute("contenteditable"))==="true";if(!v&&!y){const b=s.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),_=b.length>0?b[b.length-1]:null;_&&!_.disabled&&(f.preventDefault(),_.click())}}if(f.key==="Tab"&&s.current){const p=s.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(p.length===0)return;const v=p[0],y=p[p.length-1];f.shiftKey&&document.activeElement===v?(f.preventDefault(),y.focus()):!f.shiftKey&&document.activeElement===y&&(f.preventDefault(),v.focus())}},[t,i]),u=G.useRef(!1);return G.useEffect(()=>{if(!e){u.current=!1;return}return document.body.style.overflow="hidden",document.addEventListener("keydown",c),()=>{document.body.style.overflow="",document.removeEventListener("keydown",c)}},[e,c]),G.useEffect(()=>{if(!(!e||u.current))return u.current=!0,l.current=document.activeElement,setTimeout(()=>{var d;const f=(d=s.current)==null?void 0:d.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');f!=null&&f.length&&f[0].focus()},50),()=>{var f;(f=l.current)==null||f.focus()}},[e]),e?x.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[x.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up",style:{animationDuration:"0.15s"},onClick:o?void 0:t,"aria-hidden":"true"}),x.jsxs("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:vt("relative bg-white rounded-xl shadow-2xl w-full max-h-[90vh] flex flex-col animate-fade-in-up",DB[a]),children:[x.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200 shrink-0",children:[x.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:r}),x.jsx("button",{onClick:t,"aria-label":"Close dialog",className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-primary-500",children:x.jsx(Ge.X,{size:16,className:"text-slate-500"})})]}),x.jsx("div",{className:"px-6 py-4 overflow-y-auto flex-1",children:n}),i&&x.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200 shrink-0",children:i})]})]}):null}function oo({value:e,onChange:t,options:r=[],onSearch:n,placeholder:i="Search...",labelKey:a="label",valueKey:o="value",renderOption:s,loading:l=!1,showSearch:c}){const[u,f]=G.useState(!1),[d,h]=G.useState(""),g=G.useRef(null),p=G.useRef(null),v=c===!0||c!==!1&&r.length>5,y=r.find(P=>P[o]===e);G.useEffect(()=>{const P=T=>{g.current&&!g.current.contains(T.target)&&f(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);const b=P=>{h(P),n&&(clearTimeout(p.current),p.current=setTimeout(()=>n(P),300))},_=P=>{t(P[o]),f(!1),h("")},S=P=>{P.stopPropagation(),t(""),h("")},A=d&&!n?r.filter(P=>(P[a]||"").toLowerCase().includes(d.toLowerCase())):r;return x.jsxs("div",{ref:g,className:"relative",children:[x.jsxs("div",{role:"combobox","aria-expanded":u,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>f(!u),onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),f(!u)),P.key==="Escape"&&f(!1)},className:"w-full min-w-[160px] border border-slate-300 rounded-lg px-3.5 py-2.5 text-sm flex items-center justify-between cursor-pointer hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150",children:[x.jsx("span",{className:y?"text-slate-800":"text-slate-400",children:y?s?s(y):y[a]:i}),x.jsxs("div",{className:"flex items-center gap-1",children:[e&&x.jsx("button",{onClick:S,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:x.jsx(Ge.X,{size:12,className:"text-slate-400"})}),x.jsx(Ge.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${u?"rotate-180":""}`})]})]}),u&&x.jsxs("div",{className:"absolute z-[9999] mt-1 w-full bg-white border border-slate-200 rounded-xl shadow-soft-lg max-h-60 overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[v&&x.jsx("div",{className:"p-2 border-b border-slate-100",children:x.jsxs("div",{className:"flex items-center gap-2 border border-slate-200 rounded-lg px-2 py-1.5 focus-within:ring-2 focus-within:ring-primary-500 focus-within:border-transparent transition-all duration-150",children:[x.jsx(Ge.Search,{size:14,className:"text-slate-400"}),x.jsx("input",{autoFocus:!0,value:d,onChange:P=>b(P.target.value),onKeyDown:P=>{P.key==="Escape"&&f(!1)},placeholder:"Type to search...",className:"w-full text-sm outline-none","aria-label":"Search options"})]})}),x.jsxs("div",{className:"overflow-y-auto max-h-44",role:"listbox",children:[l&&x.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&A.length===0&&x.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),A.map(P=>x.jsx("div",{role:"option","aria-selected":P[o]===e,onClick:()=>_(P),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${P[o]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"}`,children:s?s(P):P[a]},P[o]))]})]})]})}function RB({columns:e=[],data:t=[],loading:r=!1,emptyMessage:n="No data found",emptyIcon:i,page:a,totalPages:o,totalCount:s,pageSize:l=20,onPageChange:c,onPageSizeChange:u,pageSizeOptions:f=[20,50,100,1e3],filters:d,search:h,onExport:g,exportLabel:p="Export",headerTitle:v,headerCount:y,headerExtra:b,sortConfig:_,onSort:S,onRowClick:A,rowClassName:P,className:T}){const k=c&&o>1,L=d&&d.length>0||h,B=v||g||b;return x.jsxs("div",{className:vt("bg-white border border-slate-200 rounded-xl transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",T),children:[B&&x.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-slate-100",children:[x.jsx("div",{className:"flex items-center gap-2",children:v&&x.jsxs("h3",{className:"text-base font-semibold text-slate-900",children:[v,y!=null&&x.jsxs("span",{className:"ml-1.5 text-sm font-normal text-slate-400",children:["(",y,")"]})]})}),x.jsxs("div",{className:"flex items-center gap-2",children:[g&&x.jsxs("button",{onClick:g,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium text-slate-600 hover:bg-slate-100 border border-slate-200 transition-colors",children:[x.jsx(Ge.Download,{size:13}),p]}),b]})]}),L&&x.jsx("div",{className:"px-5 pt-4 pb-5 border-b border-slate-100",children:x.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-xl px-4 py-4 space-y-3",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[x.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[x.jsx(Ge.Filter,{size:14}),x.jsx("span",{className:"text-xs font-semibold",children:"Filters"})]}),d&&d.map(j=>{var N;return x.jsx("div",{className:"min-w-[170px]",children:x.jsx(oo,{value:j.value,onChange:j.onChange,options:j.options,placeholder:j.placeholder||((N=j.options[0])==null?void 0:N.label)||"Select...",loading:j.loading})},j.key)})]}),h&&x.jsx("div",{className:"w-full",children:x.jsx(NO,{value:h.value,onChange:h.onChange,placeholder:h.placeholder||"Search..."})})]})}),k&&x.jsx("div",{className:"border-b border-slate-100",children:x.jsx(BB,{page:a,totalPages:o,totalCount:s,pageSize:l,onPageChange:c,onPageSizeChange:u,pageSizeOptions:f})}),t.length===0&&!r?x.jsxs("div",{className:"text-center py-12 px-5",children:[i&&x.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-3",children:x.jsx(i,{size:20,className:"text-slate-400"})}),x.jsx("p",{className:"text-sm text-slate-400",children:n})]}):x.jsxs("div",{className:vt("overflow-x-auto relative",r&&"min-h-[200px]"),children:[r&&x.jsx("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-[1px] z-10 flex items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center gap-3 px-6 py-5 rounded-2xl bg-white/90 shadow-lg border border-slate-100",children:[x.jsxs("div",{className:"relative w-10 h-10",children:[x.jsx("div",{className:"absolute inset-0 border-[3px] border-slate-100 rounded-full"}),x.jsx("div",{className:"absolute inset-0 border-[3px] border-primary-500 border-t-transparent rounded-full animate-spin"})]}),x.jsx("span",{className:"text-xs font-medium text-slate-500 tracking-wide",children:"Fetching data..."})]})}),x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsx("tr",{className:"bg-slate-50 border-b border-slate-200 text-left",children:e.map(j=>x.jsx("th",{className:vt("py-2.5 px-4 text-xs font-semibold text-slate-500 uppercase tracking-wider",j.align==="center"&&"text-center",j.align==="right"&&"text-right",j.sortable&&S&&"cursor-pointer select-none hover:text-slate-700",j.width),onClick:j.sortable&&S?()=>S(j.key):void 0,children:x.jsxs("span",{className:"inline-flex items-center gap-1",children:[j.label,j.sortable&&S&&(_==null?void 0:_.key)===j.key&&(_.direction==="asc"?x.jsx(Ge.ChevronUp,{size:12,className:"text-slate-700"}):x.jsx(Ge.ChevronDown,{size:12,className:"text-slate-700"}))]})},j.key))})}),x.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((j,N)=>x.jsx("tr",{className:vt("hover:bg-primary-50/40 transition-colors duration-150",A&&"cursor-pointer",P&&P(j)),onClick:A?()=>A(j):void 0,children:e.map(D=>x.jsx("td",{className:vt("py-2.5 px-4",D.align==="center"&&"text-center",D.align==="right"&&"text-right"),children:D.render?D.render(j,N):j[D.key]??""},D.key))},j.id||N))})]})]})]})}function BB({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:i,onPageSizeChange:a,pageSizeOptions:o=[20,50,100,1e3]}){const s=e*n+1,l=Math.min((e+1)*n,r||(e+1)*n),c=()=>{const u=[];if(t<=5)for(let f=0;f<t;f++)u.push(f);else{u.push(0),e>2&&u.push("...");const f=Math.max(1,e-1),d=Math.min(t-2,e+1);for(let h=f;h<=d;h++)u.push(h);e<t-3&&u.push("..."),u.push(t-1)}return u};return x.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-slate-100",children:[x.jsxs("div",{className:"flex items-center gap-5",children:[x.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-slate-600 font-semibold",children:[s,"–",l]})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):x.jsxs(x.Fragment,{children:["Page ",x.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),a&&x.jsx("div",{className:"flex items-center gap-1 bg-slate-50 rounded-lg border border-slate-200 p-0.5",children:o.map(u=>x.jsx("button",{onClick:()=>a(u),className:vt("px-2.5 py-1 rounded-md text-[11px] font-semibold transition-all duration-150",u===n?"bg-white text-slate-900 shadow-sm border border-slate-200":"text-slate-400 hover:text-slate-600"),children:u},u))})]}),x.jsxs("div",{className:"flex items-center",children:[x.jsx("button",{onClick:()=>i(e-1),disabled:e<=0,className:"w-8 h-8 rounded-l-lg border border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:x.jsx(Ge.ChevronLeft,{size:14,className:"text-slate-500"})}),c().map((u,f)=>u==="..."?x.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${f}`):x.jsx("button",{onClick:()=>i(u),className:`w-8 h-8 border-y border-r border-slate-200 flex items-center justify-center text-xs font-semibold transition-all duration-150 ${u===e?"bg-slate-900 text-white border-slate-900 relative z-10 shadow-sm":"text-slate-500 hover:bg-slate-50 hover:text-slate-900"}`,children:u+1},u)),x.jsx("button",{onClick:()=>i(e+1),disabled:e>=t-1,className:"w-8 h-8 rounded-r-lg border border-l-0 border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:x.jsx(Ge.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function $B({items:e,brand:t,user:r,collapsed:n,onToggle:i,onLogout:a,onSettings:o}){const s=ns.useLocation(),[l,c]=G.useState(!1);e.findIndex(v=>s.pathname.startsWith(v.path)),G.useEffect(()=>{const v=s.pathname,y=e.find(b=>v.startsWith(b.path));if(y)try{const b=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),_=[y.path,...b.filter(S=>S!==y.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(_))}catch{}},[s.pathname,e]);const[u,f]=G.useState(!1);G.useEffect(()=>{const v=setTimeout(()=>f(!0),50);return()=>clearTimeout(v)},[]);const d=e.some(v=>v.group),h=d?e.reduce((v,y)=>{const b=y.group||"Other";return v[b]||(v[b]=[]),v[b].push(y),v},{}):null,g=(v,y)=>{const b=v.icon;return x.jsxs(ns.NavLink,{to:v.path,style:{animationDelay:`${y*50}ms`,animationFillMode:"forwards"},className:({isActive:_})=>vt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors duration-150",n&&"justify-center px-2",_?"text-white bg-primary-500 shadow-lg shadow-primary-500/20 font-semibold":"text-slate-300 hover:bg-white/10 hover:text-white hover:shadow-[0_2px_12px_-2px_rgba(255,255,255,0.1)] hover:translate-x-0.5"),children:[b&&x.jsx(b,{size:20,className:vt("flex-shrink-0 transition-all duration-200",s.pathname.startsWith(v.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),x.jsx("span",{className:vt("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:v.label}),n&&x.jsx("span",{className:"absolute left-full ml-3 px-2.5 py-1.5 rounded-md bg-slate-900 text-white text-xs font-medium whitespace-nowrap opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-lg z-50 pointer-events-none",children:v.label})]},v.path)},p=()=>{if(d&&h){let v=0;return Object.entries(h).map(([y,b])=>x.jsxs("div",{children:[!n&&x.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:y}),b.map(_=>{const S=v;return v++,g(_,S)})]},y))}return e.map((v,y)=>g(v,y))};return x.jsxs(x.Fragment,{children:[x.jsxs("aside",{className:vt("fixed left-0 top-0 h-screen bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white flex flex-col transition-[width] duration-200 z-40 hidden md:flex border-r border-slate-700/30",n?"w-[68px]":"w-60"),children:[x.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&x.jsxs("div",{className:"flex flex-col",children:[x.jsx("span",{className:"text-lg font-bold tracking-tight",children:t}),x.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),x.jsx("button",{onClick:i,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:x.jsx("span",{className:vt("block transition-transform duration-200",n&&"rotate-180"),children:n?x.jsx(Ge.PanelLeft,{size:18}):x.jsx(Ge.PanelLeftClose,{size:18})})})]}),x.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),r&&x.jsx("div",{className:vt("px-4 py-4 cursor-pointer hover:bg-white/5 transition-colors duration-150 rounded-lg mx-2",n&&"px-2 py-4 flex justify-center mx-0"),onClick:()=>{o&&o()},children:x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("div",{className:"relative flex-shrink-0",children:[x.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center text-xs font-bold",children:(r.name||"").slice(0,2).toUpperCase()}),x.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&x.jsxs("div",{className:"overflow-hidden",children:[x.jsx("p",{className:"text-sm font-semibold truncate",children:r.name}),x.jsx("p",{className:"text-xs text-slate-400 truncate",children:r.email}),r.role&&x.jsx("span",{className:"inline-block mt-1 px-2 py-0.5 text-[10px] font-medium bg-primary-500/20 text-primary-300 rounded-full",children:r.role})]})]})}),x.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),x.jsx("nav",{className:"relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",children:p()}),a&&x.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:x.jsxs("button",{onClick:()=>c(!0),className:vt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-slate-300 hover:bg-red-500/10 hover:text-red-400 w-full transition-all duration-200",n&&"justify-center px-2"),children:[x.jsx(Ge.LogOut,{size:20}),!n&&x.jsx("span",{children:"Logout"}),n&&x.jsx("span",{className:"absolute left-full ml-3 px-2.5 py-1.5 rounded-md bg-slate-900 text-white text-xs font-medium whitespace-nowrap opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-lg z-50 pointer-events-none",children:"Logout"})]})}),l&&x.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50",onClick:()=>c(!1),children:x.jsx("div",{className:"bg-white rounded-xl p-6 w-80 shadow-2xl",onClick:v=>v.stopPropagation(),children:x.jsxs("div",{className:"flex flex-col items-center text-center",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:x.jsx(Ge.LogOut,{size:22,className:"text-red-600"})}),x.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:"Confirm Logout"}),x.jsx("p",{className:"text-sm text-slate-500 mb-5",children:"Are you sure you want to logout?"}),x.jsxs("div",{className:"flex gap-3 w-full",children:[x.jsx("button",{onClick:()=>c(!1),className:"flex-1 px-4 py-2 rounded-lg border border-slate-200 text-sm font-medium text-slate-700 hover:bg-slate-50 transition-colors",children:"Cancel"}),x.jsx("button",{onClick:()=>{c(!1),a()},className:"flex-1 px-4 py-2 rounded-lg bg-red-600 text-sm font-medium text-white hover:bg-red-700 transition-colors",children:"Logout"})]})]})})})]}),x.jsx(qB,{items:e,onLogout:a})]})}function qB({items:e,onLogout:t}){const[r,n]=G.useState(!1),[i,a]=G.useState(!1),o=e.slice(0,4),s=e.slice(4);return x.jsxs(x.Fragment,{children:[x.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:x.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[o.map(l=>{const c=l.icon;return x.jsxs(ns.NavLink,{to:l.path,className:({isActive:u})=>vt("flex flex-col items-center gap-0.5 px-2 py-1.5 rounded-lg text-[10px] font-medium transition-colors duration-150 min-w-[48px]",u?"text-primary-600 bg-primary-50":"text-slate-500 hover:text-slate-700"),children:[c&&x.jsx(c,{size:20}),x.jsx("span",{className:"truncate",children:l.label.split(" ")[0]})]},l.path)}),s.length>0&&x.jsxs("button",{onClick:()=>n(!0),className:"flex flex-col items-center gap-0.5 px-2 py-1.5 rounded-lg text-[10px] font-medium text-slate-500 hover:text-slate-700 transition-colors duration-150 min-w-[48px]",children:[x.jsx(Ge.MoreHorizontal,{size:20}),x.jsx("span",{children:"More"})]})]})}),r&&x.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[x.jsx("div",{className:"fixed inset-0 bg-black/40"}),x.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[x.jsxs("div",{className:"flex items-center justify-between mb-4",children:[x.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),x.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:x.jsx(Ge.X,{size:16,className:"text-slate-500"})})]}),x.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[s.map(l=>{const c=l.icon;return x.jsxs(ns.NavLink,{to:l.path,onClick:()=>n(!1),className:({isActive:u})=>vt("flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium transition-all duration-150",u?"text-primary-600 bg-primary-50":"text-slate-600 hover:bg-slate-50"),children:[c&&x.jsx(c,{size:22}),x.jsx("span",{className:"text-center leading-tight",children:l.label})]},l.path)}),t&&x.jsxs("button",{onClick:()=>{n(!1),a(!0)},className:"flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium text-danger-600 hover:bg-danger-50 transition-all duration-150",children:[x.jsx(Ge.LogOut,{size:22}),x.jsx("span",{children:"Logout"})]})]})]})]}),i&&x.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50",onClick:()=>a(!1),children:x.jsx("div",{className:"bg-white rounded-xl p-6 w-80 shadow-2xl",onClick:l=>l.stopPropagation(),children:x.jsxs("div",{className:"flex flex-col items-center text-center",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:x.jsx(Ge.LogOut,{size:22,className:"text-red-600"})}),x.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:"Confirm Logout"}),x.jsx("p",{className:"text-sm text-slate-500 mb-5",children:"Are you sure you want to logout?"}),x.jsxs("div",{className:"flex gap-3 w-full",children:[x.jsx("button",{onClick:()=>a(!1),className:"flex-1 px-4 py-2 rounded-lg border border-slate-200 text-sm font-medium text-slate-700 hover:bg-slate-50 transition-colors",children:"Cancel"}),x.jsx("button",{onClick:()=>{a(!1),t()},className:"flex-1 px-4 py-2 rounded-lg bg-red-600 text-sm font-medium text-white hover:bg-red-700 transition-colors",children:"Logout"})]})]})})})]})}function UB({title:e,subtitle:t,school:r,user:n,notificationCount:i=0,onNotificationClick:a,onLogout:o,onProfile:s,onSettings:l,onChangePassword:c,navItems:u=[]}){const[f,d]=G.useState(!1),h=G.useRef(null),g=ns.useNavigate(),p=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return G.useEffect(()=>{const v=y=>{h.current&&!h.current.contains(y.target)&&d(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),x.jsxs("header",{className:"sticky top-0 z-30 bg-white/95 backdrop-blur-sm border-b border-slate-200 px-4 md:px-6 h-16 flex items-center justify-between",children:[x.jsx("div",{className:"flex-1"}),x.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center gap-3",children:[(r==null?void 0:r.logo)&&x.jsx("img",{src:r.logo,alt:r.name||"School",className:"w-9 h-9 rounded-lg object-cover border border-slate-200"}),r!=null&&r.name?x.jsx("h1",{className:"text-lg font-bold text-slate-900",children:r.name}):!r&&e?x.jsxs("div",{children:[x.jsx("h1",{className:"text-lg font-bold text-slate-900",children:e}),t&&x.jsx("p",{className:"text-xs text-slate-500",children:t})]}):null]}),x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("button",{className:"hidden md:flex items-center gap-2 px-3 py-1.5 text-xs text-slate-400 bg-slate-50 border border-slate-200 rounded-lg hover:border-slate-300 hover:bg-slate-100 transition-all duration-150",children:[x.jsx(Ge.Search,{size:14}),x.jsx("span",{children:"Search..."}),x.jsx("kbd",{className:"ml-4 text-[10px] bg-white border border-slate-200 px-1.5 py-0.5 rounded text-slate-400",children:"⌘K"})]}),x.jsxs("button",{onClick:a,className:"relative p-2 rounded-lg hover:bg-slate-100 transition-colors duration-150",children:[x.jsx(Ge.Bell,{size:20,className:"text-slate-600"}),i>0&&x.jsx("span",{className:"absolute top-1 right-1 w-4 h-4 bg-danger-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center",children:i})]}),n&&x.jsxs("div",{ref:h,className:"relative",children:[x.jsxs("button",{onClick:()=>d(!f),className:"flex items-center gap-2.5 pl-3 border-l border-slate-200 hover:bg-slate-50 rounded-lg py-1.5 pr-2 transition-colors duration-150",children:[x.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center text-xs font-bold text-white",children:(n.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{className:"hidden sm:block text-left",children:[x.jsx("p",{className:"text-xs font-medium text-slate-900",children:n.name}),x.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:n.role})]}),x.jsx(Ge.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${f?"rotate-180":""}`})]}),f&&x.jsxs("div",{className:"absolute right-0 top-full mt-2 w-56 bg-white border border-slate-200 rounded-xl shadow-soft-lg overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[x.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-900",children:n.name}),x.jsx("p",{className:"text-xs text-slate-500 capitalize",children:n.role})]}),x.jsxs("div",{className:"py-1.5",children:[s&&x.jsxs("button",{onClick:()=>{d(!1),s()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[x.jsx(Ge.User,{size:16,className:"text-slate-400"}),"My Profile"]}),l&&x.jsxs("button",{onClick:()=>{d(!1),l()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[x.jsx(Ge.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),c&&x.jsxs("button",{onClick:()=>{d(!1),c()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[x.jsx(Ge.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),p.length>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"border-t border-slate-100 my-1"}),x.jsxs("div",{className:"px-4 py-2",children:[x.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[x.jsx(Ge.Clock,{size:10})," Recents"]}),p.map(v=>{const y=u.find(_=>_.path===v);if(!y)return null;const b=y.icon;return x.jsxs("button",{onClick:()=>{d(!1),g(v)},className:"flex items-center gap-2.5 w-full px-2 py-1.5 rounded-lg text-xs text-slate-600 hover:bg-slate-50 hover:text-slate-900 transition-colors duration-150",children:[b&&x.jsx(b,{size:14,className:"text-slate-400"}),y.label]},v)})]})]}),o&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"border-t border-slate-100 my-1"}),x.jsxs("button",{onClick:()=>{d(!1),o()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-red-600 hover:bg-red-50 transition-colors duration-150",children:[x.jsx(Ge.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function Zn({className:e}){return x.jsx("div",{className:vt("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function zB(){return x.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[x.jsx(Zn,{className:"h-4 w-1/3"}),x.jsx(Zn,{className:"h-8 w-1/2"}),x.jsx(Zn,{className:"h-3 w-2/3"})]})}function PO(){return x.jsxs("div",{className:"space-y-6",children:[x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,t)=>x.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[x.jsx(Zn,{className:"w-11 h-11 rounded-xl"}),x.jsxs("div",{className:"space-y-2 flex-1",children:[x.jsx(Zn,{className:"h-3 w-2/3"}),x.jsx(Zn,{className:"h-6 w-1/2"})]})]},t))}),x.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[x.jsx(Zn,{className:"h-4 w-1/4 mb-4"}),x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,t)=>x.jsx(Zn,{className:"h-20 rounded-xl"},t))})]}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[x.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[x.jsx(Zn,{className:"h-4 w-1/4 mb-4"}),x.jsx(Zn,{className:"h-48 w-full"})]}),x.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[x.jsx(Zn,{className:"h-4 w-1/3 mb-4"}),x.jsx(Zn,{className:"h-48 w-full"})]})]})]})}function WB({rows:e=5,cols:t=4}){return x.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[x.jsx("div",{className:"flex gap-4 px-4 py-3 bg-slate-50 border-b border-slate-200",children:Array.from({length:t}).map((r,n)=>x.jsx(Zn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((r,n)=>x.jsx("div",{className:"flex gap-4 px-4 py-3 border-b border-slate-100 last:border-0",children:Array.from({length:t}).map((i,a)=>x.jsx(Zn,{className:"h-3 flex-1"},a))},n))]})}function HB({children:e,user:t,allowedRoles:r,redirectTo:n="/login"}){return t?r&&!r.includes(t.role)?x.jsx(ns.Navigate,{to:n,replace:!0}):e:x.jsx(ns.Navigate,{to:n,replace:!0})}function GB({activities:e=[],className:t}){return e.length===0?null:x.jsx("div",{className:vt("space-y-1",t),children:e.map((r,n)=>x.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[x.jsx("div",{className:vt("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",r.bgColor||"bg-info-100"),children:r.icon||x.jsx(Ge.Activity,{className:"w-3.5 h-3.5 text-info-600"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:r.title}),x.jsx("p",{className:"text-xs text-surface-500",children:r.description})]}),x.jsxs("div",{className:"text-right flex-shrink-0",children:[x.jsx("p",{className:"text-2xs text-surface-400",children:r.time}),r.tag&&x.jsx("span",{className:"inline-block mt-0.5 px-1.5 py-0.5 text-2xs border border-surface-200 text-surface-500 rounded",children:r.tag})]})]},n))})}const OO=G.createContext(null),VB={success:Ge.CheckCircle,error:Ge.AlertCircle,warning:Ge.AlertTriangle,info:Ge.Info},YB={success:"bg-emerald-100 text-emerald-600",error:"bg-red-100 text-red-600",warning:"bg-amber-100 text-amber-600",info:"bg-blue-100 text-blue-600"},KB={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function XB({id:e,type:t="info",message:r,onRemove:n}){const i=VB[t]||Ge.Info,[a,o]=G.useState(!1),[s,l]=G.useState(100);G.useEffect(()=>{const f=setInterval(()=>{l(h=>h<=0?(clearInterval(f),0):h-1)},50),d=setTimeout(()=>{o(!0),setTimeout(()=>n(e),300)},5e3);return()=>{clearInterval(f),clearTimeout(d)}},[e,n]);const c=()=>{o(!0),setTimeout(()=>n(e),300)};return x.jsxs("div",{className:`flex items-start gap-3 px-4 py-3.5 bg-white border border-slate-200 border-l-4 ${KB[t]} rounded-xl shadow-soft-lg max-w-sm transition-all duration-300 ${a?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[x.jsx("div",{className:`w-8 h-8 rounded-lg ${YB[t]} flex items-center justify-center flex-shrink-0`,children:x.jsx(i,{size:16})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm font-medium text-slate-900",children:r}),x.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:x.jsx("div",{className:`h-full rounded-full transition-all duration-100 ${t==="success"?"bg-emerald-400":t==="error"?"bg-red-400":t==="warning"?"bg-amber-400":"bg-blue-400"}`,style:{width:`${s}%`}})})]}),x.jsx("button",{onClick:c,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:x.jsx(Ge.X,{size:14,className:"text-slate-400"})})]})}function JB({id:e,message:t,onConfirm:r,onUndo:n,timeout:i=5e3,onRemove:a}){const[o,s]=G.useState(i),[l,c]=G.useState(!1),u=G.useRef(!1);G.useEffect(()=>{const d=setInterval(()=>{s(h=>h<=100?(clearInterval(d),u.current||(r(),c(!0),setTimeout(()=>a(e),300)),0):h-100)},100);return()=>clearInterval(d)},[e,r,a,i]);const f=()=>{u.current=!0,n(),c(!0),setTimeout(()=>a(e),300)};return x.jsxs("div",{className:`flex items-center gap-3 px-4 py-3.5 rounded-xl shadow-soft-lg max-w-sm bg-slate-900 text-white transition-all duration-300 ${l?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm font-medium",children:t}),x.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:x.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${o/i*100}%`}})})]}),x.jsx("button",{onClick:f,className:"text-sm font-bold text-primary-400 hover:text-primary-300 transition-colors whitespace-nowrap px-3 py-1.5 bg-slate-800 rounded-lg hover:bg-slate-700",children:"Undo"})]})}function ZB({children:e}){const[t,r]=G.useState([]),[n,i]=G.useState([]),a=G.useCallback((u,f="info")=>{const d=Date.now()+Math.random();r(h=>[...h,{id:d,message:u,type:f}])},[]),o=G.useCallback(u=>{r(f=>f.filter(d=>d.id!==u))},[]),s=G.useCallback((u,f,d,h=5e3)=>{const g=Date.now()+Math.random();i(p=>[...p,{id:g,message:u,onConfirm:f,onUndo:d,timeout:h}])},[]),l=G.useCallback(u=>{i(f=>f.filter(d=>d.id!==u))},[]),c=G.useMemo(()=>({success:u=>a(u,"success"),error:u=>a(u,"error"),warning:u=>a(u,"warning"),info:u=>a(u,"info"),undoable:(u,f,d,h)=>s(u,f,d,h)}),[a,s]);return x.jsxs(OO.Provider,{value:c,children:[e,x.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[t.map(u=>x.jsx(XB,{...u,onRemove:o},u.id)),n.map(u=>x.jsx(JB,{...u,onRemove:l},u.id))]})]})}function QB(){const e=G.useContext(OO);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function e$({open:e,onClose:t,onConfirm:r,title:n="Confirm Delete",message:i="Are you sure you want to delete this? This action cannot be undone.",confirmText:a="Delete",loading:o=!1}){return x.jsxs(sh,{open:e,onClose:t,title:n,size:"sm",children:[x.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:x.jsx(Ge.AlertTriangle,{className:"w-6 h-6 text-red-600"})}),x.jsx("p",{className:"text-sm text-slate-600",children:i})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[x.jsx(sr,{variant:"ghost",onClick:t,children:"Cancel"}),x.jsx(sr,{variant:"primary",onClick:r,disabled:o,className:"!bg-red-600 hover:!bg-red-700",children:o?"Deleting...":a})]})]})}function t$({tabs:e,active:t,onChange:r,className:n}){return x.jsx("div",{className:vt("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 max-w-full overflow-x-auto",n),children:e.map((i,a)=>{const o=t===a,s=typeof i=="string"?i:i.label,l=typeof i=="object"?i.icon:null;return x.jsxs("button",{onClick:()=>r(a),className:vt("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 whitespace-nowrap",o?"bg-white text-primary-700 shadow-sm ring-1 ring-slate-200/60 font-semibold":"text-slate-500 hover:text-slate-700 hover:bg-white/50"),children:[l&&x.jsx(l,{size:15,className:o?"text-primary-600":"text-slate-400"}),s,typeof i=="object"&&i.count!=null&&x.jsx("span",{className:vt("text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[18px] text-center",o?"bg-primary-100 text-primary-700":"bg-slate-200 text-slate-500"),children:i.count})]},s)})})}function r$({checked:e,onChange:t,label:r,description:n,disabled:i,className:a}){return x.jsxs("label",{className:vt("flex items-center gap-3 cursor-pointer group",i&&"opacity-50 cursor-not-allowed",a),children:[x.jsxs("div",{className:"relative",children:[x.jsx("input",{type:"checkbox",checked:e,onChange:t,disabled:i,className:"sr-only peer"}),x.jsx("div",{className:vt("w-5 h-5 rounded-md border-2 flex items-center justify-center transition-all duration-200","peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 peer-focus-visible:ring-offset-2","group-hover:border-primary-400","group-active:scale-90",e?"bg-primary-500 border-primary-500 shadow-glow-primary":"border-slate-300 bg-white"),children:e&&x.jsx(Ge.Check,{size:13,className:"text-white",strokeWidth:3})})]}),(r||n)&&x.jsxs("div",{children:[r&&x.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:r}),n&&x.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function jO({children:e,className:t}){return x.jsxs("div",{className:vt("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",t),children:[x.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[x.jsx(Ge.Filter,{size:15}),x.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}jO.Item=function({children:t,className:r}){return x.jsx("div",{className:vt("min-w-[160px]",r),children:t})};const n$=["January","February","March","April","May","June","July","August","September","October","November","December"],i$=["Su","Mo","Tu","We","Th","Fr","Sa"];function Rl(e){if(!e)return null;const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function s_(e){if(!e)return"";const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function a$(e){if(!e)return"";const[t,r,n]=e.split("-");return`${n}/${r}/${t}`}function o$(e,t){return new Date(e,t+1,0).getDate()}function s$(e,t){return new Date(e,t,1).getDay()}function CO({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s,error:l}){const[c,u]=G.useState(!1),[f,d]=G.useState(()=>(Rl(e)||new Date).getFullYear()),[h,g]=G.useState(()=>(Rl(e)||new Date).getMonth()),[p,v]=G.useState(!1),y=G.useRef(null),b=G.useRef(null);G.useEffect(()=>{if(e){const z=Rl(e);z&&(d(z.getFullYear()),g(z.getMonth()))}},[e]),G.useEffect(()=>{function z(Q){y.current&&!y.current.contains(Q.target)&&(u(!1),v(!1))}return c&&document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[c]),G.useEffect(()=>{if(p&&b.current){const z=b.current.querySelector('[data-active="true"]');z&&z.scrollIntoView({block:"center"})}},[p]);const _=Rl(e),S=new Date;S.setHours(0,0,0,0);const A=Rl(i),P=Rl(a),T=z=>!!(A&&z<A||P&&z>P),k=o$(f,h),L=s$(f,h),B=()=>{h===0?(g(11),d(f-1)):g(h-1)},j=()=>{h===11?(g(0),d(f+1)):g(h+1)},N=z=>{const Q=new Date(f,h,z);T(Q)||(t(s_(Q)),u(!1),v(!1))},D=()=>{T(S)||(t(s_(S)),d(S.getFullYear()),g(S.getMonth()),u(!1),v(!1))},U=()=>{t(""),u(!1),v(!1)},W=new Date().getFullYear(),R=Array.from({length:80},(z,Q)=>W-60+Q);return x.jsxs("div",{className:vt("relative",o),ref:y,children:[r&&x.jsx("label",{className:"text-xs font-medium text-slate-600 mb-1.5 block",children:r}),x.jsxs("button",{type:"button",disabled:s,onClick:()=>{s||u(!c)},className:vt("w-full flex items-center gap-2.5 px-3 py-2.5 text-sm border rounded-xl bg-white text-left transition-all duration-200","hover:border-primary-300 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-primary-500/20 focus:border-primary-400",c&&"ring-2 ring-primary-500/20 border-primary-400 shadow-sm",l?"border-red-400":"border-slate-300",s&&"opacity-50 cursor-not-allowed bg-slate-50"),children:[x.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary-50 flex items-center justify-center flex-shrink-0",children:x.jsx(Ge.Calendar,{size:15,className:"text-primary-500"})}),x.jsx("span",{className:vt("flex-1 truncate",e?"text-slate-800 font-medium":"text-slate-400"),children:e?a$(e):n||"Select date"}),e&&!s&&x.jsx("span",{onClick:z=>{z.stopPropagation(),U()},className:"text-slate-400 hover:text-slate-600 text-lg leading-none px-1",children:"×"})]}),l&&x.jsx("p",{className:"text-xs text-red-500 mt-1",children:l}),c&&x.jsxs("div",{className:"absolute z-50 mt-2 w-[300px] bg-white border border-slate-200 rounded-xl shadow-lg shadow-slate-200/50 p-3 animate-in fade-in slide-in-from-top-2 duration-200",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("button",{type:"button",onClick:B,className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-600 transition-colors",children:x.jsx(Ge.ChevronLeft,{size:16})}),x.jsxs("button",{type:"button",onClick:()=>v(!p),className:"text-sm font-semibold text-slate-800 hover:text-primary-600 hover:bg-primary-50 px-3 py-1 rounded-lg transition-colors",children:[n$[h]," ",f]}),x.jsx("button",{type:"button",onClick:j,className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-600 transition-colors",children:x.jsx(Ge.ChevronRight,{size:16})})]}),p?x.jsx("div",{ref:b,className:"h-[220px] overflow-y-auto grid grid-cols-4 gap-1 px-1",children:R.map(z=>x.jsx("button",{type:"button","data-active":z===f,onClick:()=>{d(z),v(!1)},className:vt("py-1.5 text-xs rounded-lg transition-colors",z===f?"bg-primary-500 text-white font-bold":"hover:bg-slate-100 text-slate-700",z===W&&z!==f&&"font-semibold text-primary-600"),children:z},z))}):x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"grid grid-cols-7 mb-1",children:i$.map(z=>x.jsx("div",{className:"text-center text-[10px] font-semibold text-slate-400 uppercase py-1",children:z},z))}),x.jsxs("div",{className:"grid grid-cols-7 gap-0.5",children:[Array.from({length:L},(z,Q)=>x.jsx("div",{},`empty-${Q}`)),Array.from({length:k},(z,Q)=>{const Z=Q+1,ee=new Date(f,h,Z),ce=_&&ee.getTime()===_.getTime(),O=ee.getTime()===S.getTime(),I=T(ee);return x.jsx("button",{type:"button",disabled:I,onClick:()=>N(Z),className:vt("w-9 h-9 flex items-center justify-center text-sm rounded-lg transition-all duration-150 mx-auto",ce?"bg-primary-500 text-white font-bold shadow-sm shadow-primary-200":O?"bg-primary-50 text-primary-700 font-semibold ring-1 ring-primary-200":"text-slate-700 hover:bg-slate-100",I&&"opacity-30 cursor-not-allowed hover:bg-transparent"),children:Z},Z)})]}),x.jsxs("div",{className:"flex items-center justify-between mt-3 pt-2.5 border-t border-slate-100",children:[x.jsx("button",{type:"button",onClick:D,className:"text-xs font-medium text-primary-600 hover:text-primary-700 hover:bg-primary-50 px-2.5 py-1.5 rounded-lg transition-colors",children:"Today"}),e&&x.jsx("button",{type:"button",onClick:U,className:"text-xs font-medium text-slate-500 hover:text-red-600 hover:bg-red-50 px-2.5 py-1.5 rounded-lg transition-colors",children:"Clear"})]})]})]})]})}function l$({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s,error:l}){return x.jsx(CO,{value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s,error:l})}const l_=["January","February","March","April","May","June","July","August","September","October","November","December"],c$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u$=["Su","Mo","Tu","We","Th","Fr","Sa"];function Is(e){if(!e)return null;const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function Bl(e){if(!e)return"";const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function _0(e){if(!e)return"";const t=Is(e);return t?`${t.getDate()} ${c$[t.getMonth()]} ${t.getFullYear()}`:""}function f$(e,t){return new Date(e,t+1,0).getDate()}function h$(e,t){return new Date(e,t,1).getDay()}function J1(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function d$(e,t,r){return!e||!t||!r?!1:e>t&&e<r}function c_({year:e,month:t,startDate:r,endDate:n,hoverDate:i,onSelect:a,onHover:o,min:s,max:l}){const c=f$(e,t),u=h$(e,t),f=Is(s),d=Is(l),h=v=>!!(f&&v<f||d&&v>d),g=new Date;g.setHours(0,0,0,0);const p=n||i;return x.jsxs("div",{children:[x.jsx("div",{className:"grid grid-cols-7 mb-1",children:u$.map(v=>x.jsx("div",{className:"text-center text-[10px] font-semibold text-slate-400 uppercase py-1",children:v},v))}),x.jsxs("div",{className:"grid grid-cols-7 gap-y-0.5",children:[Array.from({length:u},(v,y)=>x.jsx("div",{},`e-${y}`)),Array.from({length:c},(v,y)=>{const b=y+1,_=new Date(e,t,b),S=J1(_,r),A=J1(_,n),P=r&&p&&d$(_,r,p),T=J1(_,g),k=h(_);let L="text-slate-700",B="";return S||A?B="bg-gradient-to-br from-orange-400 to-rose-500 text-white font-bold shadow-sm shadow-orange-200":P?B="bg-orange-50 text-orange-800":T&&(B="ring-1 ring-orange-300 text-orange-700 font-semibold"),x.jsx("button",{type:"button",disabled:k,onClick:()=>!k&&a(_),onMouseEnter:()=>o(_),className:vt("w-9 h-9 flex items-center justify-center text-sm rounded-lg transition-all duration-100 mx-auto",B||L,!k&&!S&&!A&&!P&&"hover:bg-orange-100 hover:text-orange-700",k&&"opacity-30 cursor-not-allowed",S&&"rounded-r-none",A&&"rounded-l-none",P&&"rounded-none"),children:b},b)})]})]})}function p$({startValue:e,endValue:t,onChange:r,label:n,placeholder:i,min:a,max:o,className:s,disabled:l,error:c}){const[u,f]=G.useState(!1),[d,h]=G.useState("start"),[g,p]=G.useState(null),[v,y]=G.useState(null),[b,_]=G.useState(null),[S,A]=G.useState(()=>{const W=Is(e)||new Date;return{year:W.getFullYear(),month:W.getMonth()}}),P=G.useRef(null),T=S.month===11?{year:S.year+1,month:0}:{year:S.year,month:S.month+1};G.useEffect(()=>{if(e){const W=Is(e);W&&A({year:W.getFullYear(),month:W.getMonth()})}},[e]),G.useEffect(()=>{p(Is(e)),y(Is(t))},[e,t]),G.useEffect(()=>{function W(R){P.current&&!P.current.contains(R.target)&&f(!1)}return u&&document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[u]);const k=W=>{d==="start"||W<g?(p(W),y(null),h("end")):(y(W),h("start"),r(Bl(g),Bl(W)),f(!1))},L=()=>{S.month===0?A({year:S.year-1,month:11}):A({year:S.year,month:S.month-1})},B=()=>{S.month===11?A({year:S.year+1,month:0}):A({year:S.year,month:S.month+1})},j=[{label:"Today",fn:()=>{const W=new Date;return W.setHours(0,0,0,0),[W,W]}},{label:"This Week",fn:()=>{const W=new Date;W.setHours(0,0,0,0);const R=new Date(W);R.setDate(W.getDate()-W.getDay());const z=new Date(R);return z.setDate(R.getDate()+6),[R,z]}},{label:"This Month",fn:()=>{const W=new Date;return[new Date(W.getFullYear(),W.getMonth(),1),new Date(W.getFullYear(),W.getMonth()+1,0)]}},{label:"Last 7 Days",fn:()=>{const W=new Date;W.setHours(0,0,0,0);const R=new Date(W);return R.setDate(W.getDate()-6),[R,W]}},{label:"Last 30 Days",fn:()=>{const W=new Date;W.setHours(0,0,0,0);const R=new Date(W);return R.setDate(W.getDate()-29),[R,W]}}],N=W=>{const[R,z]=W();p(R),y(z),r(Bl(R),Bl(z)),f(!1),h("start")},D=()=>{p(null),y(null),r("",""),f(!1),h("start")},U=e&&t;return x.jsxs("div",{className:vt("relative",s),ref:P,children:[n&&x.jsx("label",{className:"text-xs font-medium text-slate-600 mb-1.5 block",children:n}),x.jsxs("button",{type:"button",disabled:l,onClick:()=>{l||f(!u)},className:vt("w-full flex items-center gap-2 px-3 py-2.5 text-sm border rounded-xl bg-white text-left transition-all duration-200","hover:border-orange-300 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-orange-500/20 focus:border-orange-400",u&&"ring-2 ring-orange-500/20 border-orange-400 shadow-sm",c?"border-red-400":"border-slate-300",l&&"opacity-50 cursor-not-allowed bg-slate-50"),children:[x.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-orange-50 to-rose-50 flex items-center justify-center flex-shrink-0 border border-orange-100",children:x.jsx(Ge.Calendar,{size:15,className:"text-orange-500"})}),x.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0",children:[x.jsx("span",{className:vt("truncate",e?"text-slate-800 font-medium":"text-slate-400"),children:e?_0(e):"Start date"}),x.jsx(Ge.ArrowRight,{size:12,className:"text-slate-300 flex-shrink-0"}),x.jsx("span",{className:vt("truncate",t?"text-slate-800 font-medium":"text-slate-400"),children:t?_0(t):"End date"})]}),U&&!l&&x.jsx("span",{onClick:W=>{W.stopPropagation(),D()},className:"text-slate-400 hover:text-slate-600 text-lg leading-none px-1 flex-shrink-0",children:"×"})]}),c&&x.jsx("p",{className:"text-xs text-red-500 mt-1",children:c}),u&&x.jsxs("div",{className:"absolute z-50 mt-2 bg-white border border-slate-200 rounded-2xl shadow-xl shadow-slate-200/60 p-4 animate-in fade-in slide-in-from-top-2 duration-200 left-0",children:[x.jsxs("div",{className:"flex gap-4",children:[x.jsxs("div",{className:"w-[120px] border-r border-slate-100 pr-3 space-y-1",children:[x.jsx("p",{className:"text-[10px] font-semibold text-slate-400 uppercase mb-2",children:"Quick Select"}),j.map(W=>x.jsx("button",{type:"button",onClick:()=>N(W.fn),className:"w-full text-left text-xs text-slate-600 hover:text-orange-700 hover:bg-orange-50 px-2.5 py-1.5 rounded-lg transition-colors font-medium",children:W.label},W.label))]}),x.jsxs("div",{className:"flex gap-4",children:[x.jsxs("div",{className:"w-[260px]",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("button",{type:"button",onClick:L,className:"w-7 h-7 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-500 transition-colors",children:x.jsx(Ge.ChevronLeft,{size:14})}),x.jsxs("span",{className:"text-sm font-semibold text-slate-800",children:[l_[S.month]," ",S.year]}),x.jsx("div",{className:"w-7"})]}),x.jsx(c_,{year:S.year,month:S.month,startDate:g,endDate:v,hoverDate:d==="end"?b:null,onSelect:k,onHover:_,min:a,max:o})]}),x.jsxs("div",{className:"w-[260px]",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("div",{className:"w-7"}),x.jsxs("span",{className:"text-sm font-semibold text-slate-800",children:[l_[T.month]," ",T.year]}),x.jsx("button",{type:"button",onClick:B,className:"w-7 h-7 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-500 transition-colors",children:x.jsx(Ge.ChevronRight,{size:14})})]}),x.jsx(c_,{year:T.year,month:T.month,startDate:g,endDate:v,hoverDate:d==="end"?b:null,onSelect:k,onHover:_,min:a,max:o})]})]})]}),x.jsxs("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-slate-100",children:[x.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[x.jsx("span",{className:vt("px-2.5 py-1 rounded-lg border transition-colors",d==="start"?"bg-orange-50 border-orange-200 text-orange-700 font-semibold":"border-slate-200 text-slate-500"),children:g?_0(Bl(g)):"Start"}),x.jsx(Ge.ArrowRight,{size:12,className:"text-slate-300"}),x.jsx("span",{className:vt("px-2.5 py-1 rounded-lg border transition-colors",d==="end"?"bg-orange-50 border-orange-200 text-orange-700 font-semibold":"border-slate-200 text-slate-500"),children:v?_0(Bl(v)):"End"})]}),U&&x.jsx("button",{type:"button",onClick:D,className:"text-xs font-medium text-slate-500 hover:text-red-600 hover:bg-red-50 px-2.5 py-1.5 rounded-lg transition-colors",children:"Clear"})]})]})]})}function m$({value:e,onChange:t,label:r,className:n,disabled:i}){return x.jsxs("div",{className:n,children:[r&&x.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Clock,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),x.jsx("input",{type:"time",value:e||"",onChange:a=>t(a.target.value),disabled:i,className:vt("w-full min-w-[160px] pl-10 pr-3.5 py-2.5 text-sm border border-slate-300 rounded-lg bg-white","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150 hover:border-slate-400","disabled:opacity-50 disabled:cursor-not-allowed","[&::-webkit-calendar-picker-indicator]:opacity-60 [&::-webkit-calendar-picker-indicator]:cursor-pointer")})]})]})}class v$ extends G.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught:",t,r)}render(){return this.state.hasError?x.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[x.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:x.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),x.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),x.jsx("p",{className:"text-sm text-slate-500 text-center mb-4 max-w-md",children:"An unexpected error occurred. Please try refreshing the page."}),x.jsx("button",{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:"px-4 py-2 bg-primary-500 text-white text-sm font-medium rounded-lg hover:bg-primary-700 transition-colors",children:"Retry"})]}):this.props.children}}function g$(){const[e,t]=G.useState(navigator.onLine),[r,n]=G.useState(!1);return G.useEffect(()=>{const i=()=>{t(!0),n(!0),setTimeout(()=>n(!1),3e3)},a=()=>t(!1);return window.addEventListener("online",i),window.addEventListener("offline",a),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}},[]),e&&!r?null:x.jsx("div",{className:`fixed top-0 left-0 right-0 z-[200] flex items-center justify-center py-2 px-4 text-sm font-medium transition-all duration-300 ${e?"bg-emerald-500 text-white":"bg-red-500 text-white"}`,children:e?x.jsxs(x.Fragment,{children:[x.jsx(Ge.Wifi,{size:16,className:"mr-2"})," Back online"]}):x.jsxs(x.Fragment,{children:[x.jsx(Ge.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function x$({label:e,sortKey:t,sortConfig:r,onSort:n,className:i}){const a=(r==null?void 0:r.key)===t,o=a?r.direction:null;return x.jsxs("button",{onClick:()=>n(t),className:vt("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",i),children:[e,x.jsxs("span",{className:"text-slate-300",children:[!a&&x.jsx(Ge.ChevronsUpDown,{size:12}),o==="asc"&&x.jsx(Ge.ChevronUp,{size:12,className:"text-primary-500"}),o==="desc"&&x.jsx(Ge.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function y$({children:e,content:t,className:r}){const[n,i]=G.useState(!1),[a,o]=G.useState({top:0,left:0}),s=G.useRef(null),l=G.useRef(null),c=()=>{clearTimeout(l.current),l.current=setTimeout(()=>{if(s.current){const f=s.current.getBoundingClientRect();o({top:f.bottom+8,left:Math.min(f.left,window.innerWidth-320)})}i(!0)},400)},u=()=>{clearTimeout(l.current),l.current=setTimeout(()=>i(!1),200)};return x.jsxs(x.Fragment,{children:[x.jsx("span",{ref:s,onMouseEnter:c,onMouseLeave:u,className:vt("inline-block",r),children:e}),n&&x.jsx("div",{className:"fixed z-[100] w-72 bg-white border border-slate-200 rounded-xl shadow-soft-lg p-4 animate-fade-in-up",style:{top:a.top,left:a.left,animationDuration:"0.15s"},onMouseEnter:()=>clearTimeout(l.current),onMouseLeave:u,children:t})]})}const u_={noData:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),x.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),x.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),x.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),x.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),x.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),x.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),x.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),x.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),x.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),x.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),x.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),x.jsx("path",{d:"M80 75 L95 90 L120 60",stroke:"#22c55e",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]})};function b$({type:e="noData",title:t,message:r,action:n,className:i}){return x.jsxs("div",{className:vt("flex flex-col items-center justify-center py-12 text-center",i),children:[u_[e]||u_.noData,t&&x.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:t}),r&&x.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:r}),n&&x.jsx("div",{className:"mt-4",children:n})]})}function w$({title:e,children:t,className:r}){return x.jsxs("div",{className:vt("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",r),children:[x.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[x.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),t]})}function _$({tokenExpiresAt:e,onLogout:t,onRefresh:r,warningMinutes:n=5}){const[i,a]=G.useState(!1),[o,s]=G.useState(0),[l,c]=G.useState(!1),u=G.useRef(null);G.useEffect(()=>{if(!e)return;const g=()=>{const p=Date.now(),y=(typeof e=="number"?e:new Date(e).getTime())-p,b=n*60*1e3;y<=0?(a(!1),t==null||t()):y<=b?(a(!0),s(Math.ceil(y/1e3))):a(!1)};return g(),u.current=setInterval(g,1e3),()=>clearInterval(u.current)},[e,n,t]);const f=async()=>{c(!0);try{r?await r():window.location.reload(),a(!1)}catch{t==null||t()}finally{c(!1)}};if(!i)return null;const d=Math.floor(o/60),h=o%60;return x.jsx("div",{className:"fixed bottom-20 right-4 z-[150] bg-amber-50 border border-amber-200 rounded-xl shadow-soft-lg p-4 max-w-sm animate-slide-in-right",children:x.jsxs("div",{className:"flex items-start gap-3",children:[x.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:x.jsx(Ge.Clock,{size:16,className:"text-amber-600"})}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),x.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",d,":",h.toString().padStart(2,"0")]}),x.jsxs("div",{className:"flex gap-2 mt-2",children:[x.jsx("button",{onClick:f,disabled:l,className:"px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors disabled:opacity-50",children:l?"Refreshing...":"Stay Logged In"}),x.jsx("button",{onClick:t,className:"px-3 py-1.5 text-xs font-medium text-amber-700 hover:bg-amber-100 rounded-lg transition-colors",children:"Logout Now"})]})]})]})})}const S$=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function S0(e){if(!e)return"";const[t,r]=e.split(":"),n=parseInt(t);return`${n>12?n-12:n}:${r} ${n>=12?"PM":"AM"}`}function A$({periods:e=[],timetable:t={},days:r=S$,editable:n=!1,onSlotClick:i,onSlotDelete:a,onEmptyClick:o,onDrop:s}){e.filter(u=>!u.is_break);const l=[...e].sort((u,f)=>(u.start_time||"").localeCompare(f.start_time||"")),c=(u,f)=>{const d=t[f];return d&&d[u]||null};return l.length===0?x.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-8 text-center text-slate-400",children:"No timetable configured yet"}):x.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-auto shadow-soft",children:x.jsxs("div",{className:"grid min-w-[900px]",style:{gridTemplateColumns:`220px repeat(${r.length}, 1fr)`},children:[x.jsx("div",{className:"p-4 bg-gradient-to-br from-slate-50 to-slate-100/80 border-b border-slate-200 flex flex-col justify-center",children:x.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Time / Day"})}),r.map(u=>{const f=new Date().toLocaleDateString("en-US",{weekday:"long"})===u;return x.jsx("div",{className:"p-3 bg-gradient-to-br from-slate-50 to-slate-100/80 border-b border-l border-slate-200 flex items-center justify-center",children:x.jsx("div",{className:`px-4 py-2 rounded-lg text-center ${f?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:x.jsx("p",{className:`text-sm font-semibold ${f?"text-white":"text-slate-800"}`,children:u})})},u)}),l.map((u,f)=>{const d=l.filter((h,g)=>g<f&&!h.is_break).length;return u.is_break?x.jsxs("div",{className:"bg-red-50 border-b border-red-100 p-4 flex items-center justify-center gap-3",style:{gridColumn:"1 / -1"},children:[x.jsxs("span",{className:"text-sm font-bold text-red-500",children:["☕ ",u.name||"Break"]}),x.jsxs("span",{className:"text-sm text-red-400",children:["(",S0(u.start_time)," – ",S0(u.end_time),")"]})]},u.id||`break-${f}`):x.jsxs(G.Fragment,{children:[x.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/50 flex items-center gap-3",children:[x.jsx("span",{className:"w-8 h-8 rounded-lg bg-primary-100 text-primary-700 flex items-center justify-center text-xs font-bold flex-shrink-0",children:d+1}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-bold text-slate-900",children:u.name||`Period ${d+1}`}),x.jsxs("p",{className:"text-xs font-medium text-slate-600",children:[S0(u.start_time)," – ",S0(u.end_time)]})]})]}),r.map(h=>{const g=c(d,h);return x.jsx("div",{className:"p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px]",children:g?x.jsxs("div",{className:`relative w-full p-3 rounded-lg group transition-all duration-200 ${g.slot_type&&g.slot_type!=="Subject"?"bg-amber-50 border border-amber-200"+(i?" cursor-pointer hover:shadow-md hover:border-amber-300":""):"bg-blue-100 border border-blue-200"+(i?" cursor-pointer hover:shadow-md hover:border-blue-300":"")}`,onClick:()=>i&&i(d,h,g),children:[n&&x.jsxs("div",{className:"absolute top-1.5 right-1.5 flex gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:[x.jsx("button",{onClick:p=>{p.stopPropagation(),i&&i(d,h,g)},className:"p-1 rounded hover:bg-blue-200 transition-colors",children:x.jsx(Ge.Pencil,{className:"w-3.5 h-3.5 text-blue-600"})}),x.jsx("button",{onClick:p=>{p.stopPropagation(),a&&a(d,h,g)},className:"p-1 rounded hover:bg-red-100 transition-colors",children:x.jsx(Ge.Trash2,{className:"w-3.5 h-3.5 text-red-500"})})]}),x.jsx("p",{className:"text-sm font-bold text-slate-900",children:g.subject||""}),x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:g.teacher_name||g.teacher||""}),(g.slot_type||g.type)&&(g.slot_type||g.type)!=="class"&&x.jsx("span",{className:"inline-block mt-1 text-[10px] px-1.5 py-0.5 rounded bg-slate-200 text-slate-600",children:g.slot_type||g.type})]}):n?x.jsx("div",{onClick:()=>o&&o(d,h),onDragOver:p=>{p.preventDefault(),p.currentTarget.classList.add("border-primary-400","bg-primary-50")},onDragLeave:p=>{p.currentTarget.classList.remove("border-primary-400","bg-primary-50")},onDrop:p=>{if(p.preventDefault(),p.currentTarget.classList.remove("border-primary-400","bg-primary-50"),s)try{const v=JSON.parse(p.dataTransfer.getData("application/json"));s(d,h,v)}catch{}},className:"w-full h-full min-h-[70px] border-2 border-dashed border-slate-200 rounded-lg flex items-center justify-center cursor-pointer hover:border-primary-400 hover:bg-blue-50/40 transition-all duration-200",children:x.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"+ Add"})}):x.jsx("div",{className:"w-full h-full min-h-[70px] flex items-center justify-center",children:x.jsx("span",{className:"text-xs text-slate-300",children:"—"})})},`${u.id||f}-${h}`)})]},u.id||`period-${f}`)})]})})}function T$({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:i}){if(t<=1)return null;const a=e*n+1,o=Math.min((e+1)*n,r||(e+1)*n),s=()=>{const l=[];if(t<=5)for(let c=0;c<t;c++)l.push(c);else{l.push(0),e>2&&l.push("...");const c=Math.max(1,e-1),u=Math.min(t-2,e+1);for(let f=c;f<=u;f++)l.push(f);e<t-3&&l.push("..."),l.push(t-1)}return l};return x.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[x.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-slate-600 font-semibold",children:[a,"–",o]})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):x.jsxs(x.Fragment,{children:["Page ",x.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),x.jsxs("div",{className:"flex items-center",children:[x.jsx("button",{onClick:()=>i(e-1),disabled:e<=0,className:"w-8 h-8 rounded-l-lg border border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:x.jsx(Ge.ChevronLeft,{size:14,className:"text-slate-500"})}),s().map((l,c)=>l==="..."?x.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${c}`):x.jsx("button",{onClick:()=>i(l),className:`w-8 h-8 border-y border-r border-slate-200 flex items-center justify-center text-xs font-semibold transition-all duration-150 ${l===e?"bg-slate-900 text-white border-slate-900 relative z-10 shadow-sm":"text-slate-500 hover:bg-slate-50 hover:text-slate-900"} `,children:l+1},l)),x.jsx("button",{onClick:()=>i(e+1),disabled:e>=t-1,className:"w-8 h-8 rounded-r-lg border border-l-0 border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:x.jsx(Ge.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function E$({title:e="Portal",subtitle:t="Sign in to your account",icon:r,gradientFrom:n="from-indigo-500",gradientTo:i="to-purple-700",accentColor:a="indigo",buttonColor:o="bg-teal-600 hover:bg-teal-700 shadow-teal-500/20 hover:shadow-teal-500/30",onSubmit:s,loading:l=!1,error:c=null,supportEmail:u="support@theinquisitive.in"}){const[f,d]=G.useState(""),[h,g]=G.useState(""),[p,v]=G.useState(!1),[y,b]=G.useState(""),[_,S]=G.useState(""),A=P=>{if(P.preventDefault(),b(""),S(""),!f){b("Email is required");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f)){b("Invalid email");return}if(!h){S("Password is required");return}s({email:f,password:h})};return x.jsxs("div",{className:`min-h-screen flex items-center justify-center bg-gradient-to-br ${n} ${i} relative overflow-hidden`,children:[x.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[x.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-white/5"}),x.jsx("div",{className:"absolute -bottom-32 -left-32 w-64 h-64 rounded-full bg-white/5"})]}),x.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl p-8 w-full max-w-[420px] text-center mx-4",children:[r&&x.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br from-${a}-50 to-${a}-100 flex items-center justify-center mx-auto mb-5 shadow-sm`,children:x.jsx(r,{className:`w-7 h-7 text-${a}-600`})}),x.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-0.5",children:e}),x.jsx("p",{className:"text-sm text-slate-400 mb-6",children:t}),c&&x.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg p-3 mb-4 text-left",children:c}),x.jsxs("form",{onSubmit:A,className:"space-y-4",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Mail,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),x.jsx("input",{type:"email",placeholder:"Email Address",value:f,onChange:P=>{d(P.target.value),b("")},className:`w-full pl-10 pr-4 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${a}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${y?"border-red-400":"border-slate-300"}`})]}),y&&x.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:y})]}),x.jsxs("div",{children:[x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Lock,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),x.jsx("input",{type:p?"text":"password",placeholder:"Password",value:h,onChange:P=>{g(P.target.value),S("")},className:`w-full pl-10 pr-10 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${a}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${_?"border-red-400":"border-slate-300"}`}),x.jsx("button",{type:"button",onClick:()=>v(!p),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:p?x.jsx(Ge.EyeOff,{className:"w-4 h-4"}):x.jsx(Ge.Eye,{className:"w-4 h-4"})})]}),_&&x.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:_})]}),x.jsx("button",{type:"submit",disabled:l,className:`w-full py-3 ${o} text-white font-semibold rounded-xl disabled:opacity-50 transition-all duration-150 active:scale-[0.97] shadow-lg`,children:l?"Signing in...":"Sign In"})]}),x.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100",children:x.jsxs("p",{className:"text-xs text-slate-400",children:["Having technical issues?"," ",x.jsx("a",{href:`mailto:${u}`,className:`text-${a}-500 hover:underline font-medium`,children:"Contact support"})]})})]})]})}function N$({open:e,onClose:t,onSubmit:r,loading:n,error:i}){const[a,o]=G.useState({current_password:"",new_password:"",confirm_password:""}),[s,l]=G.useState(!1),[c,u]=G.useState(!1),[f,d]=G.useState(!1),[h,g]=G.useState({}),p=()=>{const b={};return a.current_password||(b.current_password="Current password is required"),a.new_password?a.new_password.length<6&&(b.new_password="Password must be at least 6 characters"):b.new_password="New password is required",a.confirm_password?a.new_password!==a.confirm_password&&(b.confirm_password="Passwords do not match"):b.confirm_password="Please confirm your new password",b},v=()=>{const b=p();g(b),!(Object.keys(b).length>0)&&r(a)},y=()=>{o({current_password:"",new_password:"",confirm_password:""}),g({}),l(!1),u(!1),d(!1),t()};return x.jsxs(sh,{open:e,onClose:y,title:"Change Password",size:"sm",children:[x.jsxs("div",{className:"space-y-4",children:[i&&x.jsx("div",{className:"p-3 rounded-lg bg-red-50 border border-red-200",children:x.jsx("p",{className:"text-sm text-red-600",children:i})}),x.jsxs("div",{className:"space-y-1.5",children:[x.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Current Password"}),x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{type:s?"text":"password",value:a.current_password,onChange:b=>o({...a,current_password:b.target.value}),placeholder:"Enter current password",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.current_password?"border-red-400":"border-slate-300"}`}),x.jsx("button",{type:"button",onClick:()=>l(!s),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:s?x.jsx(Ge.EyeOff,{size:16}):x.jsx(Ge.Eye,{size:16})})]}),h.current_password&&x.jsx("p",{className:"text-xs text-red-500",children:h.current_password})]}),x.jsxs("div",{className:"space-y-1.5",children:[x.jsx("label",{className:"text-sm font-medium text-slate-700",children:"New Password"}),x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{type:c?"text":"password",value:a.new_password,onChange:b=>o({...a,new_password:b.target.value}),placeholder:"Enter new password (min 6 characters)",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.new_password?"border-red-400":"border-slate-300"}`}),x.jsx("button",{type:"button",onClick:()=>u(!c),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:c?x.jsx(Ge.EyeOff,{size:16}):x.jsx(Ge.Eye,{size:16})})]}),h.new_password&&x.jsx("p",{className:"text-xs text-red-500",children:h.new_password})]}),x.jsxs("div",{className:"space-y-1.5",children:[x.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Confirm New Password"}),x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{type:f?"text":"password",value:a.confirm_password,onChange:b=>o({...a,confirm_password:b.target.value}),placeholder:"Confirm new password",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.confirm_password?"border-red-400":"border-slate-300"}`}),x.jsx("button",{type:"button",onClick:()=>d(!f),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:f?x.jsx(Ge.EyeOff,{size:16}):x.jsx(Ge.Eye,{size:16})})]}),h.confirm_password&&x.jsx("p",{className:"text-xs text-red-500",children:h.confirm_password})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-6 pt-4 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",onClick:y,disabled:n,children:"Cancel"}),x.jsx(sr,{onClick:v,loading:n,icon:Ge.Lock,children:"Change Password"})]})]})}function P$({open:e,onClose:t,onSubmit:r,loading:n=!1,userName:i=""}){const[a,o]=G.useState(""),[s,l]=G.useState(!1),[c,u]=G.useState(!1),[f,d]=G.useState(""),h=()=>{if(!a||a.length<6){d("Password must be at least 6 characters");return}d(""),r(a)},g=()=>{navigator.clipboard.writeText(a),u(!0),setTimeout(()=>u(!1),2e3)},p=()=>{o(""),l(!1),u(!1),d(""),t()};return x.jsxs(sh,{open:e,onClose:p,title:"Reset Password",size:"sm",children:[x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"flex items-center gap-3 p-3 bg-amber-50 border border-amber-200 rounded-xl",children:[x.jsx("div",{className:"w-9 h-9 rounded-lg bg-amber-100 flex items-center justify-center shrink-0",children:x.jsx(Ge.Key,{size:16,className:"text-amber-600"})}),x.jsxs("div",{children:[x.jsxs("p",{className:"text-sm font-medium text-amber-900",children:["Reset password",i?` for ${i}`:""]}),x.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"The user will need to use this new password to log in."})]})]}),x.jsxs("div",{children:[x.jsx("label",{className:"text-sm font-medium text-slate-700 mb-1.5 block",children:"New Password"}),x.jsxs("div",{className:"relative",children:[x.jsx("input",{type:s?"text":"password",value:a,onChange:v=>{o(v.target.value),d("")},placeholder:"Enter new password (min 6 chars)",className:"w-full border border-slate-300 rounded-lg px-3 py-2.5 pr-20 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent hover:border-slate-400 transition-colors"}),x.jsxs("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[x.jsx("button",{onClick:()=>l(!s),className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:s?x.jsx(Ge.EyeOff,{size:14}):x.jsx(Ge.Eye,{size:14})}),x.jsx("button",{onClick:g,className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:c?x.jsx(Ge.Check,{size:14,className:"text-emerald-500"}):x.jsx(Ge.Copy,{size:14})})]})]}),f&&x.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),x.jsx("p",{className:"text-[11px] text-slate-400 mt-1.5",children:"Minimum 6 characters. The user should change this after logging in."})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-5 pt-4 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",onClick:p,children:"Cancel"}),x.jsx(sr,{onClick:h,loading:n,disabled:!a||a.length<6,children:"Reset Password"})]})]})}function O$({name:e,subtitle:t,avatarInitials:r,badges:n=[],extra:i}){const a={primary:"bg-indigo-50 text-indigo-600",success:"bg-green-100 text-green-600",warning:"bg-amber-100 text-amber-700",info:"bg-sky-100 text-sky-600"};return x.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:x.jsxs("div",{className:"flex justify-between items-start",children:[x.jsxs("div",{className:"flex gap-4 items-center",children:[x.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xl font-bold shadow-sm",children:r||(e||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[x.jsx("h2",{className:"text-xl font-bold text-slate-900",children:e}),n.map((o,s)=>x.jsx("span",{className:`text-xs font-semibold px-2.5 py-0.5 rounded-full ${a[o.variant]||a.primary}`,children:o.label},s))]}),t&&x.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:t})]})]}),i&&x.jsx("div",{className:"flex-shrink-0",children:i})]})})}function j$({title:e,titleIcon:t,titleIconColor:r,titleIconBg:n,items:i=[],columns:a=2}){const o=a===3?"grid grid-cols-1 md:grid-cols-3 gap-4":"grid grid-cols-1 md:grid-cols-2 gap-4";return x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[e&&x.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t&&x.jsx("div",{className:`w-7 h-7 rounded-lg ${n||"bg-gradient-to-br from-slate-50 to-slate-100"} flex items-center justify-center`,children:x.jsx(t,{className:`w-3.5 h-3.5 ${r||"text-slate-600"}`})}),x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:e})]}),x.jsx("div",{className:o,children:i.map((s,l)=>x.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gradient-to-br from-slate-50 to-slate-100 rounded-xl transition-all duration-150 hover:bg-slate-100",children:[s.icon&&x.jsx("div",{className:"w-9 h-9 rounded-lg bg-white border border-slate-200 flex items-center justify-center flex-shrink-0",children:x.jsx(s.icon,{className:"w-4 h-4 text-slate-500"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400",children:s.label}),x.jsx("p",{className:"text-sm font-medium text-slate-900",children:s.value||"N/A"})]})]},l))})]})}var Z1,f_;function gi(){if(f_)return Z1;f_=1;var e=Array.isArray;return Z1=e,Z1}var Q1,h_;function kO(){if(h_)return Q1;h_=1;var e=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl;return Q1=e,Q1}var em,d_;function za(){if(d_)return em;d_=1;var e=kO(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return em=r,em}var tm,p_;function lh(){if(p_)return tm;p_=1;var e=za(),t=e.Symbol;return tm=t,tm}var rm,m_;function C$(){if(m_)return rm;m_=1;var e=lh(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var c=!0}catch{}var u=n.call(o);return c&&(s?o[i]=l:delete o[i]),u}return rm=a,rm}var nm,v_;function k$(){if(v_)return nm;v_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nm=r,nm}var im,g_;function Eo(){if(g_)return im;g_=1;var e=lh(),t=C$(),r=k$(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return im=o,im}var am,x_;function No(){if(x_)return am;x_=1;function e(t){return t!=null&&typeof t=="object"}return am=e,am}var om,y_;function Hc(){if(y_)return om;y_=1;var e=Eo(),t=No(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return om=n,om}var sm,b_;function xb(){if(b_)return sm;b_=1;var e=gi(),t=Hc(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return sm=i,sm}var lm,w_;function fs(){if(w_)return lm;w_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return lm=e,lm}var cm,__;function yb(){if(__)return cm;__=1;var e=Eo(),t=fs(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return cm=o,cm}var um,S_;function L$(){if(S_)return um;S_=1;var e=za(),t=e["__core-js_shared__"];return um=t,um}var fm,A_;function I$(){if(A_)return fm;A_=1;var e=L$(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return fm=r,fm}var hm,T_;function LO(){if(T_)return hm;T_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return hm=r,hm}var dm,E_;function F$(){if(E_)return dm;E_=1;var e=yb(),t=I$(),r=fs(),n=LO(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?u:a;return h.test(n(d))}return dm=f,dm}var pm,N_;function M$(){if(N_)return pm;N_=1;function e(t,r){return t==null?void 0:t[r]}return pm=e,pm}var mm,P_;function al(){if(P_)return mm;P_=1;var e=F$(),t=M$();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return mm=r,mm}var vm,O_;function gp(){if(O_)return vm;O_=1;var e=al(),t=e(Object,"create");return vm=t,vm}var gm,j_;function D$(){if(j_)return gm;j_=1;var e=gp();function t(){this.__data__=e?e(null):{},this.size=0}return gm=t,gm}var xm,C_;function R$(){if(C_)return xm;C_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return xm=e,xm}var ym,k_;function B$(){if(k_)return ym;k_=1;var e=gp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return ym=i,ym}var bm,L_;function $$(){if(L_)return bm;L_=1;var e=gp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return bm=n,bm}var wm,I_;function q$(){if(I_)return wm;I_=1;var e=gp(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return wm=r,wm}var _m,F_;function U$(){if(F_)return _m;F_=1;var e=D$(),t=R$(),r=B$(),n=$$(),i=q$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,_m=a,_m}var Sm,M_;function z$(){if(M_)return Sm;M_=1;function e(){this.__data__=[],this.size=0}return Sm=e,Sm}var Am,D_;function bb(){if(D_)return Am;D_=1;function e(t,r){return t===r||t!==t&&r!==r}return Am=e,Am}var Tm,R_;function xp(){if(R_)return Tm;R_=1;var e=bb();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Tm=t,Tm}var Em,B_;function W$(){if(B_)return Em;B_=1;var e=xp(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Em=n,Em}var Nm,$_;function H$(){if($_)return Nm;$_=1;var e=xp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Nm=t,Nm}var Pm,q_;function G$(){if(q_)return Pm;q_=1;var e=xp();function t(r){return e(this.__data__,r)>-1}return Pm=t,Pm}var Om,U_;function V$(){if(U_)return Om;U_=1;var e=xp();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Om=t,Om}var jm,z_;function yp(){if(z_)return jm;z_=1;var e=z$(),t=W$(),r=H$(),n=G$(),i=V$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,jm=a,jm}var Cm,W_;function wb(){if(W_)return Cm;W_=1;var e=al(),t=za(),r=e(t,"Map");return Cm=r,Cm}var km,H_;function Y$(){if(H_)return km;H_=1;var e=U$(),t=yp(),r=wb();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return km=n,km}var Lm,G_;function K$(){if(G_)return Lm;G_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Lm=e,Lm}var Im,V_;function bp(){if(V_)return Im;V_=1;var e=K$();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Im=t,Im}var Fm,Y_;function X$(){if(Y_)return Fm;Y_=1;var e=bp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Fm=t,Fm}var Mm,K_;function J$(){if(K_)return Mm;K_=1;var e=bp();function t(r){return e(this,r).get(r)}return Mm=t,Mm}var Dm,X_;function Z$(){if(X_)return Dm;X_=1;var e=bp();function t(r){return e(this,r).has(r)}return Dm=t,Dm}var Rm,J_;function Q$(){if(J_)return Rm;J_=1;var e=bp();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Rm=t,Rm}var Bm,Z_;function _b(){if(Z_)return Bm;Z_=1;var e=Y$(),t=X$(),r=J$(),n=Z$(),i=Q$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bm=a,Bm}var $m,Q_;function IO(){if(Q_)return $m;Q_=1;var e=_b(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var c=n.apply(this,o);return a.cache=l.set(s,c)||l,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,$m=r,$m}var qm,e4;function eq(){if(e4)return qm;e4=1;var e=IO(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return qm=r,qm}var Um,t4;function tq(){if(t4)return Um;t4=1;var e=eq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,c){a.push(l?c.replace(r,"$1"):s||o)}),a});return Um=n,Um}var zm,r4;function Sb(){if(r4)return zm;r4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return zm=e,zm}var Wm,n4;function rq(){if(n4)return Wm;n4=1;var e=lh(),t=Sb(),r=gi(),n=Hc(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Wm=o,Wm}var Hm,i4;function FO(){if(i4)return Hm;i4=1;var e=rq();function t(r){return r==null?"":e(r)}return Hm=t,Hm}var Gm,a4;function MO(){if(a4)return Gm;a4=1;var e=gi(),t=xb(),r=tq(),n=FO();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Gm=i,Gm}var Vm,o4;function wp(){if(o4)return Vm;o4=1;var e=Hc();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Vm=t,Vm}var Ym,s4;function Ab(){if(s4)return Ym;s4=1;var e=MO(),t=wp();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Ym=r,Ym}var Km,l4;function DO(){if(l4)return Km;l4=1;var e=Ab();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Km=t,Km}var nq=DO();const Ki=ur(nq);var Xm,c4;function iq(){if(c4)return Xm;c4=1;function e(t){return t==null}return Xm=e,Xm}var aq=iq();const Ut=ur(aq);var Jm,u4;function oq(){if(u4)return Jm;u4=1;var e=Eo(),t=gi(),r=No(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Jm=i,Jm}var sq=oq();const Xs=ur(sq);var lq=yb();const Ct=ur(lq);var cq=fs();const Gc=ur(cq);var A0={exports:{}},rr={};/**
348
+ * @license React
349
+ * react-is.production.min.js
350
+ *
351
+ * Copyright (c) Facebook, Inc. and its affiliates.
352
+ *
353
+ * This source code is licensed under the MIT license found in the
354
+ * LICENSE file in the root directory of this source tree.
355
+ */var f4;function uq(){if(f4)return rr;f4=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case i:case n:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case d:case f:case a:return v;default:return y}}case t:return y}}}return rr.ContextConsumer=o,rr.ContextProvider=a,rr.Element=e,rr.ForwardRef=l,rr.Fragment=r,rr.Lazy=d,rr.Memo=f,rr.Portal=t,rr.Profiler=i,rr.StrictMode=n,rr.Suspense=c,rr.SuspenseList=u,rr.isAsyncMode=function(){return!1},rr.isConcurrentMode=function(){return!1},rr.isContextConsumer=function(v){return p(v)===o},rr.isContextProvider=function(v){return p(v)===a},rr.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rr.isForwardRef=function(v){return p(v)===l},rr.isFragment=function(v){return p(v)===r},rr.isLazy=function(v){return p(v)===d},rr.isMemo=function(v){return p(v)===f},rr.isPortal=function(v){return p(v)===t},rr.isProfiler=function(v){return p(v)===i},rr.isStrictMode=function(v){return p(v)===n},rr.isSuspense=function(v){return p(v)===c},rr.isSuspenseList=function(v){return p(v)===u},rr.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===c||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===a||v.$$typeof===o||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},rr.typeOf=p,rr}var nr={};/**
356
+ * @license React
357
+ * react-is.development.js
358
+ *
359
+ * Copyright (c) Facebook, Inc. and its affiliates.
360
+ *
361
+ * This source code is licensed under the MIT license found in the
362
+ * LICENSE file in the root directory of this source tree.
363
+ */var h4;function fq(){return h4||(h4=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,v=!1,y=!1,b=!1,_;_=Symbol.for("react.module.reference");function S(Ae){return!!(typeof Ae=="string"||typeof Ae=="function"||Ae===r||Ae===i||b||Ae===n||Ae===c||Ae===u||y||Ae===h||g||p||v||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===d||Ae.$$typeof===f||Ae.$$typeof===a||Ae.$$typeof===o||Ae.$$typeof===l||Ae.$$typeof===_||Ae.getModuleId!==void 0))}function A(Ae){if(typeof Ae=="object"&&Ae!==null){var Ee=Ae.$$typeof;switch(Ee){case e:var le=Ae.type;switch(le){case r:case i:case n:case c:case u:return le;default:var Re=le&&le.$$typeof;switch(Re){case s:case o:case l:case d:case f:case a:return Re;default:return Ee}}case t:return Ee}}}var P=o,T=a,k=e,L=l,B=r,j=d,N=f,D=t,U=i,W=n,R=c,z=u,Q=!1,Z=!1;function ee(Ae){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ce(Ae){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function O(Ae){return A(Ae)===o}function I(Ae){return A(Ae)===a}function M(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===e}function q(Ae){return A(Ae)===l}function Y(Ae){return A(Ae)===r}function fe(Ae){return A(Ae)===d}function ae(Ae){return A(Ae)===f}function ne(Ae){return A(Ae)===t}function ve(Ae){return A(Ae)===i}function we(Ae){return A(Ae)===n}function se(Ae){return A(Ae)===c}function Fe(Ae){return A(Ae)===u}nr.ContextConsumer=P,nr.ContextProvider=T,nr.Element=k,nr.ForwardRef=L,nr.Fragment=B,nr.Lazy=j,nr.Memo=N,nr.Portal=D,nr.Profiler=U,nr.StrictMode=W,nr.Suspense=R,nr.SuspenseList=z,nr.isAsyncMode=ee,nr.isConcurrentMode=ce,nr.isContextConsumer=O,nr.isContextProvider=I,nr.isElement=M,nr.isForwardRef=q,nr.isFragment=Y,nr.isLazy=fe,nr.isMemo=ae,nr.isPortal=ne,nr.isProfiler=ve,nr.isStrictMode=we,nr.isSuspense=se,nr.isSuspenseList=Fe,nr.isValidElementType=S,nr.typeOf=A})()),nr}var d4;function hq(){return d4||(d4=1,process.env.NODE_ENV==="production"?A0.exports=uq():A0.exports=fq()),A0.exports}var dq=hq(),Zm,p4;function RO(){if(p4)return Zm;p4=1;var e=Eo(),t=No(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Zm=n,Zm}var Qm,m4;function pq(){if(m4)return Qm;m4=1;var e=RO();function t(r){return e(r)&&r!=+r}return Qm=t,Qm}var mq=pq();const ch=ur(mq);var vq=RO();const gq=ur(vq);var ya=function(t){return t===0?0:t>0?1:-1},Fs=function(t){return Xs(t)&&t.indexOf("%")===t.length-1},nt=function(t){return gq(t)&&!ch(t)},xq=function(t){return Ut(t)},pn=function(t){return nt(t)||Xs(t)},yq=0,uh=function(t){var r=++yq;return"".concat(t||"").concat(r)},ba=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!Xs(t))return n;var a;if(Fs(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ch(a)&&(a=n),i&&a>r&&(a=r),a},Xo=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},bq=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ti=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function id(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ki(n,t))===r})}var wq=function(t,r){return nt(t)&&nt(r)?t-r:Xs(t)&&Xs(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function oc(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Sy(e){"@babel/helpers - typeof";return Sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sy(e)}var _q=["viewBox","children"],Sq=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],v4=["points","pathLength"],ev={svg:_q,polygon:v4,polyline:v4},Tb=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ad=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(G.isValidElement(t)&&(n=t.props),!Gc(n))return null;var i={};return Object.keys(n).forEach(function(a){Tb.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Aq=function(t,r,n){return function(i){return t(r,n,i),null}},uc=function(t,r,n){if(!Gc(t)||Sy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Tb.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Aq(o,r,n))}),i},Tq=["children"],Eq=["children"];function g4(e,t){if(e==null)return{};var r=Nq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ay(e){"@babel/helpers - typeof";return Ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ay(e)}var x4={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},mo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},y4=null,tv=null,Eb=function e(t){if(t===y4&&Array.isArray(tv))return tv;var r=[];return G.Children.forEach(t,function(n){Ut(n)||(dq.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tv=r,y4=t,r};function Xi(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return mo(i)}):n=[mo(t)],Eb(e).forEach(function(i){var a=Ki(i,"type.displayName")||Ki(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ni(e,t){var r=Xi(e,t);return r&&r[0]}var b4=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!nt(n)||n<=0||!nt(i)||i<=0)},Pq=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Oq=function(t){return t&&t.type&&Xs(t.type)&&Pq.indexOf(t.type)>=0},jq=function(t){return t&&Ay(t)==="object"&&"clipDot"in t},Cq=function(t,r,n,i){var a,o=(a=ev==null?void 0:ev[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Ct(t)&&(i&&o.includes(r)||Sq.includes(r))||n&&Tb.includes(r)},yt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(G.isValidElement(t)&&(i=t.props),!Gc(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;Cq((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Ty=function e(t,r){if(t===r)return!0;var n=G.Children.count(t);if(n!==G.Children.count(r))return!1;if(n===0)return!0;if(n===1)return w4(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!w4(a,o))return!1}return!0},w4=function(t,r){if(Ut(t)&&Ut(r))return!0;if(!Ut(t)&&!Ut(r)){var n=t.props||{},i=n.children,a=g4(n,Tq),o=r.props||{},s=o.children,l=g4(o,Eq);return i&&s?oc(a,l)&&Ty(i,s):!i&&!s?oc(a,l):!1}return!1},_4=function(t,r){var n=[],i={};return Eb(t).forEach(function(a,o){if(Oq(a))n.push(a);else if(a){var s=mo(a.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!i[s])){var f=c(a,s,o);n.push(f),i[s]=!0}}}),n},kq=function(t){var r=t&&t.type;return r&&x4[r]?x4[r]:null},Lq=function(t,r){return Eb(r).indexOf(t)},Iq=["children","width","height","viewBox","className","style","title","desc"];function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ey.apply(this,arguments)}function Fq(e,t){if(e==null)return{};var r=Mq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ny(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,c=Fq(e,Iq),u=i||{width:r,height:n,x:0,y:0},f=Rt("recharts-surface",a);return G.createElement("svg",Ey({},yt(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),G.createElement("title",null,s),G.createElement("desc",null,l),t)}var Dq=["children","className"];function Py(){return Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Py.apply(this,arguments)}function Rq(e,t){if(e==null)return{};var r=Bq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var lr=G.forwardRef(function(e,t){var r=e.children,n=e.className,i=Rq(e,Dq),a=Rt("recharts-layer",n);return G.createElement("g",Py({className:a},yt(i,!0),{ref:t}),r)}),$q=process.env.NODE_ENV!=="production",vo=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if($q&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},rv,S4;function qq(){if(S4)return rv;S4=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return rv=e,rv}var nv,A4;function Uq(){if(A4)return nv;A4=1;var e=qq();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return nv=t,nv}var iv,T4;function BO(){if(T4)return iv;T4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(c){return s.test(c)}return iv=l,iv}var av,E4;function zq(){if(E4)return av;E4=1;function e(t){return t.split("")}return av=e,av}var ov,N4;function Wq(){if(N4)return ov;N4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",u="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",g=c+"?",p="["+a+"]?",v="(?:"+h+"(?:"+[u,f,d].join("|")+")"+p+g+")*",y=p+g+v,b="(?:"+[u+s+"?",s,f,d,o].join("|")+")",_=RegExp(l+"(?="+l+")|"+b+y,"g");function S(A){return A.match(_)||[]}return ov=S,ov}var sv,P4;function Hq(){if(P4)return sv;P4=1;var e=zq(),t=BO(),r=Wq();function n(i){return t(i)?r(i):e(i)}return sv=n,sv}var lv,O4;function Gq(){if(O4)return lv;O4=1;var e=Uq(),t=BO(),r=Hq(),n=FO();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return l[a]()+c}}return lv=i,lv}var cv,j4;function Vq(){if(j4)return cv;j4=1;var e=Gq(),t=e("toUpperCase");return cv=t,cv}var Yq=Vq();const _p=ur(Yq);function Or(e){return function(){return e}}const $O=Math.cos,od=Math.sin,Aa=Math.sqrt,sd=Math.PI,Sp=2*sd,Oy=Math.PI,jy=2*Oy,Os=1e-6,Kq=jy-Os;function qO(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Xq(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qO;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Jq{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?qO:Xq(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Os)if(!(Math.abs(f*l-c*u)>Os)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,g=i-s,p=l*l+c*c,v=h*h+g*g,y=Math.sqrt(p),b=Math.sqrt(d),_=a*Math.tan((Oy-Math.acos((p+d-v)/(2*y*b)))/2),S=_/b,A=_/y;Math.abs(S-1)>Os&&this._append`L${t+S*u},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*h>u*g)},${this._x1=t+A*l},${this._y1=r+A*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),c=t+s,u=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Os||Math.abs(this._y1-u)>Os)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%jy+jy),d>Kq?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Os&&this._append`A${n},${n},0,${+(d>=Oy)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Nb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Jq(t)}function Pb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UO(e){this._context=e}UO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ap(e){return new UO(e)}function zO(e){return e[0]}function WO(e){return e[1]}function HO(e,t){var r=Or(!0),n=null,i=Ap,a=null,o=Nb(s);e=typeof e=="function"?e:e===void 0?zO:Or(e),t=typeof t=="function"?t:t===void 0?WO:Or(t);function s(l){var c,u=(l=Pb(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Or(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Or(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Or(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function T0(e,t,r){var n=null,i=Or(!0),a=null,o=Ap,s=null,l=Nb(c);e=typeof e=="function"?e:e===void 0?zO:Or(+e),t=typeof t=="function"?t:Or(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?WO:Or(+r);function c(f){var d,h,g,p=(f=Pb(f)).length,v,y=!1,b,_=new Array(p),S=new Array(p);for(a==null&&(s=o(b=l())),d=0;d<=p;++d){if(!(d<p&&i(v=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=d-1;g>=h;--g)s.point(_[g],S[g]);s.lineEnd(),s.areaEnd()}y&&(_[d]=+e(v,d,f),S[d]=+t(v,d,f),s.point(n?+n(v,d,f):_[d],r?+r(v,d,f):S[d]))}if(b)return s=null,b+""||null}function u(){return HO().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Or(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Or(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Or(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Or(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Or(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Or(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Or(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}class GO{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Zq(e){return new GO(e,!0)}function Qq(e){return new GO(e,!1)}const Ob={draw(e,t){const r=Aa(t/sd);e.moveTo(r,0),e.arc(0,0,r,0,Sp)}},eU={draw(e,t){const r=Aa(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},VO=Aa(1/3),tU=VO*2,rU={draw(e,t){const r=Aa(t/tU),n=r*VO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},nU={draw(e,t){const r=Aa(t),n=-r/2;e.rect(n,n,r,r)}},iU=.8908130915292852,YO=od(sd/10)/od(7*sd/10),aU=od(Sp/10)*YO,oU=-$O(Sp/10)*YO,sU={draw(e,t){const r=Aa(t*iU),n=aU*r,i=oU*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Sp*a/5,s=$O(o),l=od(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},uv=Aa(3),lU={draw(e,t){const r=-Aa(t/(uv*3));e.moveTo(0,r*2),e.lineTo(-uv*r,-r),e.lineTo(uv*r,-r),e.closePath()}},zi=-.5,Wi=Aa(3)/2,Cy=1/Aa(12),cU=(Cy/2+1)*3,uU={draw(e,t){const r=Aa(t/cU),n=r/2,i=r*Cy,a=n,o=r*Cy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(zi*n-Wi*i,Wi*n+zi*i),e.lineTo(zi*a-Wi*o,Wi*a+zi*o),e.lineTo(zi*s-Wi*l,Wi*s+zi*l),e.lineTo(zi*n+Wi*i,zi*i-Wi*n),e.lineTo(zi*a+Wi*o,zi*o-Wi*a),e.lineTo(zi*s+Wi*l,zi*l-Wi*s),e.closePath()}};function fU(e,t){let r=null,n=Nb(i);e=typeof e=="function"?e:Or(e||Ob),t=typeof t=="function"?t:Or(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Or(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Or(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ld(){}function cd(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function KO(e){this._context=e}KO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:cd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hU(e){return new KO(e)}function XO(e){this._context=e}XO.prototype={areaStart:ld,areaEnd:ld,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dU(e){return new XO(e)}function JO(e){this._context=e}JO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pU(e){return new JO(e)}function ZO(e){this._context=e}ZO.prototype={areaStart:ld,areaEnd:ld,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function mU(e){return new ZO(e)}function C4(e){return e<0?-1:1}function k4(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(C4(a)+C4(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function L4(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fv(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function ud(e){this._context=e}ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fv(this,this._t0,L4(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fv(this,L4(this,r=k4(this,e,t)),r);break;default:fv(this,this._t0,r=k4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function QO(e){this._context=new e6(e)}(QO.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function e6(e){this._context=e}e6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function vU(e){return new ud(e)}function gU(e){return new QO(e)}function t6(e){this._context=e}t6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=I4(e),i=I4(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function I4(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function xU(e){return new t6(e)}function Tp(e,t){this._context=e,this._t=t}Tp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function yU(e){return new Tp(e,.5)}function bU(e){return new Tp(e,0)}function wU(e){return new Tp(e,1)}function fc(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ky(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function _U(e,t){return e[t]}function SU(e){const t=[];return t.key=e,t}function AU(){var e=Or([]),t=ky,r=fc,n=_U;function i(a){var o=Array.from(e.apply(this,arguments),SU),s,l=o.length,c=-1,u;for(const f of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(f,o[s].key,c,a)]).data=f;for(s=0,u=Pb(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Or(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Or(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?ky:typeof a=="function"?a:Or(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??fc,i):r},i}function TU(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}fc(e,t)}}function EU(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}fc(e,t)}}function NU(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],f=u[n][1]||0,d=u[n-1][1]||0,h=(f-d)/2,g=0;g<s;++g){var p=e[t[g]],v=p[n][1]||0,y=p[n-1][1]||0;h+=v-y}l+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,fc(e,t)}}function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}var PU=["type","size","sizeType"];function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ly.apply(this,arguments)}function F4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F4(Object(r),!0).forEach(function(n){OU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OU(e,t,r){return t=jU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jU(e){var t=CU(e,"string");return yf(t)=="symbol"?t:t+""}function CU(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kU(e,t){if(e==null)return{};var r=LU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var r6={symbolCircle:Ob,symbolCross:eU,symbolDiamond:rU,symbolSquare:nU,symbolStar:sU,symbolTriangle:lU,symbolWye:uU},IU=Math.PI/180,FU=function(t){var r="symbol".concat(_p(t));return r6[r]||Ob},MU=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*IU;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},DU=function(t,r){r6["symbol".concat(_p(t))]=r},jb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=kU(t,PU),c=M4(M4({},l),{},{type:n,size:a,sizeType:s}),u=function(){var v=FU(n),y=fU().type(v).size(MU(a,s,n));return y()},f=c.className,d=c.cx,h=c.cy,g=yt(c,!0);return d===+d&&h===+h&&a===+a?G.createElement("path",Ly({},g,{className:Rt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:u()})):null};jb.registerSymbol=DU;function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iy.apply(this,arguments)}function D4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D4(Object(r),!0).forEach(function(n){bf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i6(n.key),n)}}function qU(e,t,r){return t&&$U(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UU(e,t,r){return t=fd(t),zU(e,n6()?Reflect.construct(t,r||[],fd(e).constructor):t.apply(e,r))}function zU(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WU(e)}function WU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n6=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fd(e)}function HU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fy(e,t)}function Fy(e,t){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fy(e,t)}function bf(e,t,r){return t=i6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i6(e){var t=GU(e,"string");return hc(t)=="symbol"?t:t+""}function GU(e,t){if(hc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hi=32,Cb=(function(e){function t(){return BU(this,t),UU(this,t,arguments)}return HU(t,e),qU(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Hi/2,o=Hi/6,s=Hi/3,l=n.inactive?i:n.color;if(n.type==="plainline")return G.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Hi,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return G.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
364
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
365
+ H`).concat(Hi,"M").concat(2*s,",").concat(a,`
366
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return G.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Hi/8,"h").concat(Hi,"v").concat(Hi*3/4,"h").concat(-Hi,"z"),className:"recharts-legend-icon"});if(G.isValidElement(n.legendIcon)){var c=RU({},n);return delete c.legendIcon,G.cloneElement(n.legendIcon,c)}return G.createElement(jb,{fill:l,cx:a,cy:a,size:Hi,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,c=i.inactiveColor,u={x:0,y:0,width:Hi,height:Hi},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,g){var p=h.formatter||l,v=Rt(bf(bf({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=Ct(h.value)?null:h.value;vo(!Ct(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=h.inactive?c:h.color;return G.createElement("li",Iy({className:v,style:f,key:"legend-item-".concat(g)},uc(n.props,h,g)),G.createElement(Ny,{width:o,height:o,viewBox:u,style:d},n.renderIcon(h)),G.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},p?p(y,h,g):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return G.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(G.PureComponent);bf(Cb,"displayName","Legend");bf(Cb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hv,R4;function VU(){if(R4)return hv;R4=1;var e=yp();function t(){this.__data__=new e,this.size=0}return hv=t,hv}var dv,B4;function YU(){if(B4)return dv;B4=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return dv=e,dv}var pv,$4;function KU(){if($4)return pv;$4=1;function e(t){return this.__data__.get(t)}return pv=e,pv}var mv,q4;function XU(){if(q4)return mv;q4=1;function e(t){return this.__data__.has(t)}return mv=e,mv}var vv,U4;function JU(){if(U4)return vv;U4=1;var e=yp(),t=wb(),r=_b(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return vv=i,vv}var gv,z4;function a6(){if(z4)return gv;z4=1;var e=yp(),t=VU(),r=YU(),n=KU(),i=XU(),a=JU();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,gv=o,gv}var xv,W4;function ZU(){if(W4)return xv;W4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return xv=t,xv}var yv,H4;function QU(){if(H4)return yv;H4=1;function e(t){return this.__data__.has(t)}return yv=e,yv}var bv,G4;function o6(){if(G4)return bv;G4=1;var e=_b(),t=ZU(),r=QU();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,bv=n,bv}var wv,V4;function s6(){if(V4)return wv;V4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return wv=e,wv}var _v,Y4;function l6(){if(Y4)return _v;Y4=1;function e(t,r){return t.has(r)}return _v=e,_v}var Sv,K4;function c6(){if(K4)return Sv;K4=1;var e=o6(),t=s6(),r=l6(),n=1,i=2;function a(o,s,l,c,u,f){var d=l&n,h=o.length,g=s.length;if(h!=g&&!(d&&g>h))return!1;var p=f.get(o),v=f.get(s);if(p&&v)return p==s&&v==o;var y=-1,b=!0,_=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var S=o[y],A=s[y];if(c)var P=d?c(A,S,y,s,o,f):c(S,A,y,o,s,f);if(P!==void 0){if(P)continue;b=!1;break}if(_){if(!t(s,function(T,k){if(!r(_,k)&&(S===T||u(S,T,l,c,f)))return _.push(k)})){b=!1;break}}else if(!(S===A||u(S,A,l,c,f))){b=!1;break}}return f.delete(o),f.delete(s),b}return Sv=a,Sv}var Av,X4;function ez(){if(X4)return Av;X4=1;var e=za(),t=e.Uint8Array;return Av=t,Av}var Tv,J4;function tz(){if(J4)return Tv;J4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Tv=e,Tv}var Ev,Z4;function kb(){if(Z4)return Ev;Z4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ev=e,Ev}var Nv,Q4;function rz(){if(Q4)return Nv;Q4=1;var e=lh(),t=ez(),r=bb(),n=c6(),i=tz(),a=kb(),o=1,s=2,l="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",g="[object Set]",p="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",_=e?e.prototype:void 0,S=_?_.valueOf:void 0;function A(P,T,k,L,B,j,N){switch(k){case b:if(P.byteLength!=T.byteLength||P.byteOffset!=T.byteOffset)return!1;P=P.buffer,T=T.buffer;case y:return!(P.byteLength!=T.byteLength||!j(new t(P),new t(T)));case l:case c:case d:return r(+P,+T);case u:return P.name==T.name&&P.message==T.message;case h:case p:return P==T+"";case f:var D=i;case g:var U=L&o;if(D||(D=a),P.size!=T.size&&!U)return!1;var W=N.get(P);if(W)return W==T;L|=s,N.set(P,T);var R=n(D(P),D(T),L,B,j,N);return N.delete(P),R;case v:if(S)return S.call(P)==S.call(T)}return!1}return Nv=A,Nv}var Pv,eS;function u6(){if(eS)return Pv;eS=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Pv=e,Pv}var Ov,tS;function nz(){if(tS)return Ov;tS=1;var e=u6(),t=gi();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Ov=r,Ov}var jv,rS;function iz(){if(rS)return jv;rS=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return jv=e,jv}var Cv,nS;function az(){if(nS)return Cv;nS=1;function e(){return[]}return Cv=e,Cv}var kv,iS;function oz(){if(iS)return kv;iS=1;var e=iz(),t=az(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return kv=a,kv}var Lv,aS;function sz(){if(aS)return Lv;aS=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Lv=e,Lv}var Iv,oS;function lz(){if(oS)return Iv;oS=1;var e=Eo(),t=No(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Iv=n,Iv}var Fv,sS;function Lb(){if(sS)return Fv;sS=1;var e=lz(),t=No(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Fv=a,Fv}var Uu={exports:{}},Mv,lS;function cz(){if(lS)return Mv;lS=1;function e(){return!1}return Mv=e,Mv}Uu.exports;var cS;function f6(){return cS||(cS=1,(function(e,t){var r=za(),n=cz(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Uu,Uu.exports)),Uu.exports}var Dv,uS;function Ib(){if(uS)return Dv;uS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Dv=r,Dv}var Rv,fS;function Fb(){if(fS)return Rv;fS=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Rv=t,Rv}var Bv,hS;function uz(){if(hS)return Bv;hS=1;var e=Eo(),t=Fb(),r=No(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",p="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",A="[object Int16Array]",P="[object Int32Array]",T="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",B="[object Uint32Array]",j={};j[b]=j[_]=j[S]=j[A]=j[P]=j[T]=j[k]=j[L]=j[B]=!0,j[n]=j[i]=j[v]=j[a]=j[y]=j[o]=j[s]=j[l]=j[c]=j[u]=j[f]=j[d]=j[h]=j[g]=j[p]=!1;function N(D){return r(D)&&t(D.length)&&!!j[e(D)]}return Bv=N,Bv}var $v,dS;function h6(){if(dS)return $v;dS=1;function e(t){return function(r){return t(r)}}return $v=e,$v}var zu={exports:{}};zu.exports;var pS;function fz(){return pS||(pS=1,(function(e,t){var r=kO(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(zu,zu.exports)),zu.exports}var qv,mS;function d6(){if(mS)return qv;mS=1;var e=uz(),t=h6(),r=fz(),n=r&&r.isTypedArray,i=n?t(n):e;return qv=i,qv}var Uv,vS;function hz(){if(vS)return Uv;vS=1;var e=sz(),t=Lb(),r=gi(),n=f6(),i=Ib(),a=d6(),o=Object.prototype,s=o.hasOwnProperty;function l(c,u){var f=r(c),d=!f&&t(c),h=!f&&!d&&n(c),g=!f&&!d&&!h&&a(c),p=f||d||h||g,v=p?e(c.length,String):[],y=v.length;for(var b in c)(u||s.call(c,b))&&!(p&&(b=="length"||h&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,y)))&&v.push(b);return v}return Uv=l,Uv}var zv,gS;function dz(){if(gS)return zv;gS=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return zv=t,zv}var Wv,xS;function p6(){if(xS)return Wv;xS=1;function e(t,r){return function(n){return t(r(n))}}return Wv=e,Wv}var Hv,yS;function pz(){if(yS)return Hv;yS=1;var e=p6(),t=e(Object.keys,Object);return Hv=t,Hv}var Gv,bS;function mz(){if(bS)return Gv;bS=1;var e=dz(),t=pz(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Gv=i,Gv}var Vv,wS;function fh(){if(wS)return Vv;wS=1;var e=yb(),t=Fb();function r(n){return n!=null&&t(n.length)&&!e(n)}return Vv=r,Vv}var Yv,_S;function Ep(){if(_S)return Yv;_S=1;var e=hz(),t=mz(),r=fh();function n(i){return r(i)?e(i):t(i)}return Yv=n,Yv}var Kv,SS;function vz(){if(SS)return Kv;SS=1;var e=nz(),t=oz(),r=Ep();function n(i){return e(i,r,t)}return Kv=n,Kv}var Xv,AS;function gz(){if(AS)return Xv;AS=1;var e=vz(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,c,u){var f=s&t,d=e(a),h=d.length,g=e(o),p=g.length;if(h!=p&&!f)return!1;for(var v=h;v--;){var y=d[v];if(!(f?y in o:n.call(o,y)))return!1}var b=u.get(a),_=u.get(o);if(b&&_)return b==o&&_==a;var S=!0;u.set(a,o),u.set(o,a);for(var A=f;++v<h;){y=d[v];var P=a[y],T=o[y];if(l)var k=f?l(T,P,y,o,a,u):l(P,T,y,a,o,u);if(!(k===void 0?P===T||c(P,T,s,l,u):k)){S=!1;break}A||(A=y=="constructor")}if(S&&!A){var L=a.constructor,B=o.constructor;L!=B&&"constructor"in a&&"constructor"in o&&!(typeof L=="function"&&L instanceof L&&typeof B=="function"&&B instanceof B)&&(S=!1)}return u.delete(a),u.delete(o),S}return Xv=i,Xv}var Jv,TS;function xz(){if(TS)return Jv;TS=1;var e=al(),t=za(),r=e(t,"DataView");return Jv=r,Jv}var Zv,ES;function yz(){if(ES)return Zv;ES=1;var e=al(),t=za(),r=e(t,"Promise");return Zv=r,Zv}var Qv,NS;function m6(){if(NS)return Qv;NS=1;var e=al(),t=za(),r=e(t,"Set");return Qv=r,Qv}var eg,PS;function bz(){if(PS)return eg;PS=1;var e=al(),t=za(),r=e(t,"WeakMap");return eg=r,eg}var tg,OS;function wz(){if(OS)return tg;OS=1;var e=xz(),t=wb(),r=yz(),n=m6(),i=bz(),a=Eo(),o=LO(),s="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),g=o(t),p=o(r),v=o(n),y=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=c||n&&b(new n)!=u||i&&b(new i)!=f)&&(b=function(_){var S=a(_),A=S==l?_.constructor:void 0,P=A?o(A):"";if(P)switch(P){case h:return d;case g:return s;case p:return c;case v:return u;case y:return f}return S}),tg=b,tg}var rg,jS;function _z(){if(jS)return rg;jS=1;var e=a6(),t=c6(),r=rz(),n=gz(),i=wz(),a=gi(),o=f6(),s=d6(),l=1,c="[object Arguments]",u="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function g(p,v,y,b,_,S){var A=a(p),P=a(v),T=A?u:i(p),k=P?u:i(v);T=T==c?f:T,k=k==c?f:k;var L=T==f,B=k==f,j=T==k;if(j&&o(p)){if(!o(v))return!1;A=!0,L=!1}if(j&&!L)return S||(S=new e),A||s(p)?t(p,v,y,b,_,S):r(p,v,T,y,b,_,S);if(!(y&l)){var N=L&&h.call(p,"__wrapped__"),D=B&&h.call(v,"__wrapped__");if(N||D){var U=N?p.value():p,W=D?v.value():v;return S||(S=new e),_(U,W,y,b,S)}}return j?(S||(S=new e),n(p,v,y,b,_,S)):!1}return rg=g,rg}var ng,CS;function Mb(){if(CS)return ng;CS=1;var e=_z(),t=No();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return ng=r,ng}var ig,kS;function Sz(){if(kS)return ig;kS=1;var e=a6(),t=Mb(),r=1,n=2;function i(a,o,s,l){var c=s.length,u=c,f=!l;if(a==null)return!u;for(a=Object(a);c--;){var d=s[c];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<u;){d=s[c];var h=d[0],g=a[h],p=d[1];if(f&&d[2]){if(g===void 0&&!(h in a))return!1}else{var v=new e;if(l)var y=l(g,p,h,a,o,v);if(!(y===void 0?t(p,g,r|n,l,v):y))return!1}}return!0}return ig=i,ig}var ag,LS;function v6(){if(LS)return ag;LS=1;var e=fs();function t(r){return r===r&&!e(r)}return ag=t,ag}var og,IS;function Az(){if(IS)return og;IS=1;var e=v6(),t=Ep();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return og=r,og}var sg,FS;function g6(){if(FS)return sg;FS=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return sg=e,sg}var lg,MS;function Tz(){if(MS)return lg;MS=1;var e=Sz(),t=Az(),r=g6();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return lg=n,lg}var cg,DS;function Ez(){if(DS)return cg;DS=1;function e(t,r){return t!=null&&r in Object(t)}return cg=e,cg}var ug,RS;function Nz(){if(RS)return ug;RS=1;var e=MO(),t=Lb(),r=gi(),n=Ib(),i=Fb(),a=wp();function o(s,l,c){l=e(l,s);for(var u=-1,f=l.length,d=!1;++u<f;){var h=a(l[u]);if(!(d=s!=null&&c(s,h)))break;s=s[h]}return d||++u!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return ug=o,ug}var fg,BS;function Pz(){if(BS)return fg;BS=1;var e=Ez(),t=Nz();function r(n,i){return n!=null&&t(n,i,e)}return fg=r,fg}var hg,$S;function Oz(){if($S)return hg;$S=1;var e=Mb(),t=DO(),r=Pz(),n=xb(),i=v6(),a=g6(),o=wp(),s=1,l=2;function c(u,f){return n(u)&&i(f)?a(o(u),f):function(d){var h=t(d,u);return h===void 0&&h===f?r(d,u):e(f,h,s|l)}}return hg=c,hg}var dg,qS;function Vc(){if(qS)return dg;qS=1;function e(t){return t}return dg=e,dg}var pg,US;function jz(){if(US)return pg;US=1;function e(t){return function(r){return r==null?void 0:r[t]}}return pg=e,pg}var mg,zS;function Cz(){if(zS)return mg;zS=1;var e=Ab();function t(r){return function(n){return e(n,r)}}return mg=t,mg}var vg,WS;function kz(){if(WS)return vg;WS=1;var e=jz(),t=Cz(),r=xb(),n=wp();function i(a){return r(a)?e(n(a)):t(a)}return vg=i,vg}var gg,HS;function Wa(){if(HS)return gg;HS=1;var e=Tz(),t=Oz(),r=Vc(),n=gi(),i=kz();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return gg=a,gg}var xg,GS;function x6(){if(GS)return xg;GS=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return xg=e,xg}var yg,VS;function Lz(){if(VS)return yg;VS=1;function e(t){return t!==t}return yg=e,yg}var bg,YS;function Iz(){if(YS)return bg;YS=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return bg=e,bg}var wg,KS;function Fz(){if(KS)return wg;KS=1;var e=x6(),t=Lz(),r=Iz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wg=n,wg}var _g,XS;function Mz(){if(XS)return _g;XS=1;var e=Fz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return _g=t,_g}var Sg,JS;function Dz(){if(JS)return Sg;JS=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Sg=e,Sg}var Ag,ZS;function Rz(){if(ZS)return Ag;ZS=1;function e(){}return Ag=e,Ag}var Tg,QS;function Bz(){if(QS)return Tg;QS=1;var e=m6(),t=Rz(),r=kb(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Tg=i,Tg}var Eg,e3;function $z(){if(e3)return Eg;e3=1;var e=o6(),t=Mz(),r=Dz(),n=l6(),i=Bz(),a=kb(),o=200;function s(l,c,u){var f=-1,d=t,h=l.length,g=!0,p=[],v=p;if(u)g=!1,d=r;else if(h>=o){var y=c?null:i(l);if(y)return a(y);g=!1,d=n,v=new e}else v=c?[]:p;e:for(;++f<h;){var b=l[f],_=c?c(b):b;if(b=u||b!==0?b:0,g&&_===_){for(var S=v.length;S--;)if(v[S]===_)continue e;c&&v.push(_),p.push(b)}else d(v,_,u)||(v!==p&&v.push(_),p.push(b))}return p}return Eg=s,Eg}var Ng,t3;function qz(){if(t3)return Ng;t3=1;var e=Wa(),t=$z();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Ng=r,Ng}var Uz=qz();const r3=ur(Uz);function y6(e,t,r){return t===!0?r3(e,r):Ct(t)?r3(e,t):e}function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}var zz=["ref"];function n3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n3(Object(r),!0).forEach(function(n){Np(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w6(n.key),n)}}function Hz(e,t,r){return t&&i3(e.prototype,t),r&&i3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gz(e,t,r){return t=hd(t),Vz(e,b6()?Reflect.construct(t,r||[],hd(e).constructor):t.apply(e,r))}function Vz(e,t){if(t&&(dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yz(e)}function Yz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b6=function(){return!!e})()}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hd(e)}function Kz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&My(e,t)}function My(e,t){return My=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},My(e,t)}function Np(e,t,r){return t=w6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w6(e){var t=Xz(e,"string");return dc(t)=="symbol"?t:t+""}function Xz(e,t){if(dc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Jz(e,t){if(e==null)return{};var r=Zz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qz(e){return e.value}function eW(e,t){if(G.isValidElement(e))return G.cloneElement(e,t);if(typeof e=="function")return G.createElement(e,t);t.ref;var r=Jz(t,zz);return G.createElement(Cb,r)}var a3=1,Ws=(function(e){function t(){var r;Wz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Gz(this,t,[].concat(i)),Np(r,"lastBoundingBox",{width:-1,height:-1}),r}return Kz(t,e),Hz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>a3||Math.abs(i.height-this.lastBoundingBox.height)>a3)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?io({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,c=i.chartWidth,u=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((c||0)-h.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();d={top:((u||0)-g.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return io(io({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,u=i.payload,f=io(io({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return G.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},eW(a,io(io({},this.props),{},{payload:y6(u,c,Qz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=io(io({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(G.PureComponent);Np(Ws,"displayName","Legend");Np(Ws,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pg,o3;function tW(){if(o3)return Pg;o3=1;var e=lh(),t=Lb(),r=gi(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Pg=i,Pg}var Og,s3;function _6(){if(s3)return Og;s3=1;var e=u6(),t=tW();function r(n,i,a,o,s){var l=-1,c=n.length;for(a||(a=t),s||(s=[]);++l<c;){var u=n[l];i>0&&a(u)?i>1?r(u,i-1,a,o,s):e(s,u):o||(s[s.length]=u)}return s}return Og=r,Og}var jg,l3;function rW(){if(l3)return jg;l3=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var c=s[t?l:++a];if(n(o[c],c,o)===!1)break}return r}}return jg=e,jg}var Cg,c3;function nW(){if(c3)return Cg;c3=1;var e=rW(),t=e();return Cg=t,Cg}var kg,u3;function S6(){if(u3)return kg;u3=1;var e=nW(),t=Ep();function r(n,i){return n&&e(n,i,t)}return kg=r,kg}var Lg,f3;function iW(){if(f3)return Lg;f3=1;var e=fh();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return Lg=t,Lg}var Ig,h3;function Db(){if(h3)return Ig;h3=1;var e=S6(),t=iW(),r=t(e);return Ig=r,Ig}var Fg,d3;function A6(){if(d3)return Fg;d3=1;var e=Db(),t=fh();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,c){o[++a]=i(s,l,c)}),o}return Fg=r,Fg}var Mg,p3;function aW(){if(p3)return Mg;p3=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Mg=e,Mg}var Dg,m3;function oW(){if(m3)return Dg;m3=1;var e=Hc();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,c=n===null,u=n===n,f=e(n);if(!c&&!f&&!s&&r>n||s&&l&&u&&!c&&!f||a&&l&&u||!i&&u||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||c&&i&&o||!l&&o||!u)return-1}return 0}return Dg=t,Dg}var Rg,v3;function sW(){if(v3)return Rg;v3=1;var e=oW();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,c=i.length;++a<l;){var u=e(o[a],s[a]);if(u){if(a>=c)return u;var f=i[a];return u*(f=="desc"?-1:1)}}return r.index-n.index}return Rg=t,Rg}var Bg,g3;function lW(){if(g3)return Bg;g3=1;var e=Sb(),t=Ab(),r=Wa(),n=A6(),i=aW(),a=h6(),o=sW(),s=Vc(),l=gi();function c(u,f,d){f.length?f=e(f,function(p){return l(p)?function(v){return t(v,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var g=n(u,function(p,v,y){var b=e(f,function(_){return _(p)});return{criteria:b,index:++h,value:p}});return i(g,function(p,v){return o(p,v,d)})}return Bg=c,Bg}var $g,x3;function cW(){if(x3)return $g;x3=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return $g=e,$g}var qg,y3;function uW(){if(y3)return qg;y3=1;var e=cW(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),c=Array(l);++s<l;)c[s]=o[i+s];s=-1;for(var u=Array(i+1);++s<i;)u[s]=o[s];return u[i]=a(c),e(n,this,u)}}return qg=r,qg}var Ug,b3;function fW(){if(b3)return Ug;b3=1;function e(t){return function(){return t}}return Ug=e,Ug}var zg,w3;function T6(){if(w3)return zg;w3=1;var e=al(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zg=t,zg}var Wg,_3;function hW(){if(_3)return Wg;_3=1;var e=fW(),t=T6(),r=Vc(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Wg=n,Wg}var Hg,S3;function dW(){if(S3)return Hg;S3=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Hg=n,Hg}var Gg,A3;function pW(){if(A3)return Gg;A3=1;var e=hW(),t=dW(),r=t(e);return Gg=r,Gg}var Vg,T3;function mW(){if(T3)return Vg;T3=1;var e=Vc(),t=uW(),r=pW();function n(i,a){return r(t(i,a,e),i+"")}return Vg=n,Vg}var Yg,E3;function Pp(){if(E3)return Yg;E3=1;var e=bb(),t=fh(),r=Ib(),n=fs();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Yg=i,Yg}var Kg,N3;function vW(){if(N3)return Kg;N3=1;var e=_6(),t=lW(),r=mW(),n=Pp(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Kg=i,Kg}var gW=vW();const Rb=ur(gW);function wf(e){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(e)}function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dy.apply(this,arguments)}function xW(e,t){return _W(e)||wW(e,t)||bW(e,t)||yW()}function yW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
367
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bW(e,t){if(e){if(typeof e=="string")return P3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P3(e,t)}}function P3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function _W(e){if(Array.isArray(e))return e}function O3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O3(Object(r),!0).forEach(function(n){SW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SW(e,t,r){return t=AW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AW(e){var t=TW(e,"string");return wf(t)=="symbol"?t:t+""}function TW(e,t){if(wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EW(e){return Array.isArray(e)&&pn(e[0])&&pn(e[1])?e.join(" ~ "):e}var NW=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,g=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,_=function(){if(u&&u.length){var N={padding:0,margin:0},D=(d?Rb(u,d):u).map(function(U,W){if(U.type==="none")return null;var R=Xg({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},s),z=U.formatter||f||EW,Q=U.value,Z=U.name,ee=Q,ce=Z;if(z&&ee!=null&&ce!=null){var O=z(Q,Z,U,W,u);if(Array.isArray(O)){var I=xW(O,2);ee=I[0],ce=I[1]}else ee=O}return G.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:R},pn(ce)?G.createElement("span",{className:"recharts-tooltip-item-name"},ce):null,pn(ce)?G.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,G.createElement("span",{className:"recharts-tooltip-item-value"},ee),G.createElement("span",{className:"recharts-tooltip-item-unit"},U.unit||""))});return G.createElement("ul",{className:"recharts-tooltip-item-list",style:N},D)}return null},S=Xg({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),A=Xg({margin:0},c),P=!Ut(p),T=P?p:"",k=Rt("recharts-default-tooltip",h),L=Rt("recharts-tooltip-label",g);P&&v&&u!==void 0&&u!==null&&(T=v(p,u));var B=b?{role:"status","aria-live":"assertive"}:{};return G.createElement("div",Dy({className:k,style:S},B),G.createElement("p",{className:L,style:A},G.isValidElement(T)?T:"".concat(T)),_())};function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function E0(e,t,r){return t=PW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PW(e){var t=OW(e,"string");return _f(t)=="symbol"?t:t+""}function OW(e,t){if(_f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ku="recharts-tooltip-wrapper",jW={visibility:"hidden"};function CW(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Rt(ku,E0(E0(E0(E0({},"".concat(ku,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(ku,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(ku,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(ku,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function j3(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var u=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?u:f;if(o[n]){var d=u,h=l[n];return d<h?Math.max(f,l[n]):Math.max(u,l[n])}var g=f+s,p=l[n]+c;return g>p?Math.max(u,l[n]):Math.max(f,l[n])}function kW(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function LW(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,f;return o.height>0&&o.width>0&&r?(u=j3({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=j3({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=kW({translateX:u,translateY:f,useTranslate3d:s})):c=jW,{cssProperties:c,cssClasses:CW({translateX:u,translateY:f,coordinate:r})}}function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function C3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(r),!0).forEach(function(n){By(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N6(n.key),n)}}function MW(e,t,r){return t&&FW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DW(e,t,r){return t=dd(t),RW(e,E6()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}function RW(e,t){if(t&&(pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BW(e)}function BW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E6=function(){return!!e})()}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dd(e)}function $W(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ry(e,t)}function Ry(e,t){return Ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ry(e,t)}function By(e,t,r){return t=N6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N6(e){var t=qW(e,"string");return pc(t)=="symbol"?t:t+""}function qW(e,t){if(pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var L3=1,UW=(function(e){function t(){var r;IW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=DW(this,t,[].concat(i)),By(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),By(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,u;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return $W(t,e),MW(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>L3||Math.abs(n.height-this.state.lastBoundingBox.height)>L3)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.children,u=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,g=i.position,p=i.reverseDirection,v=i.useTranslate3d,y=i.viewBox,b=i.wrapperStyle,_=LW({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:h,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),S=_.cssClasses,A=_.cssProperties,P=k3(k3({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return G.createElement("div",{tabIndex:-1,className:S,style:P,ref:function(k){n.wrapperNode=k}},c)}}])})(G.PureComponent),zW=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ol={isSsr:zW()};function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function I3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function F3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(r),!0).forEach(function(n){Bb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O6(n.key),n)}}function GW(e,t,r){return t&&HW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VW(e,t,r){return t=pd(t),YW(e,P6()?Reflect.construct(t,r||[],pd(e).constructor):t.apply(e,r))}function YW(e,t){if(t&&(mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KW(e)}function KW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P6=function(){return!!e})()}function pd(e){return pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pd(e)}function XW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$y(e,t)}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$y(e,t)}function Bb(e,t,r){return t=O6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O6(e){var t=JW(e,"string");return mc(t)=="symbol"?t:t+""}function JW(e,t){if(mc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ZW(e){return e.dataKey}function QW(e,t){return G.isValidElement(e)?G.cloneElement(e,t):typeof e=="function"?G.createElement(e,t):G.createElement(NW,t)}var da=(function(e){function t(){return WW(this,t),VW(this,t,arguments)}return XW(t,e),GW(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.content,u=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,g=i.payload,p=i.payloadUniqBy,v=i.position,y=i.reverseDirection,b=i.useTranslate3d,_=i.viewBox,S=i.wrapperStyle,A=g??[];f&&A.length&&(A=y6(g.filter(function(T){return T.value!=null&&(T.hide!==!0||n.props.includeHidden)}),p,ZW));var P=A.length>0;return G.createElement(UW,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:u,hasPayload:P,offset:h,position:v,reverseDirection:y,useTranslate3d:b,viewBox:_,wrapperStyle:S},QW(c,F3(F3({},this.props),{},{payload:A})))}}])})(G.PureComponent);Bb(da,"displayName","Tooltip");Bb(da,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ol.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Jg,M3;function eH(){if(M3)return Jg;M3=1;var e=za(),t=function(){return e.Date.now()};return Jg=t,Jg}var Zg,D3;function tH(){if(D3)return Zg;D3=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Zg=t,Zg}var Qg,R3;function rH(){if(R3)return Qg;R3=1;var e=tH(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qg=r,Qg}var ex,B3;function j6(){if(B3)return ex;B3=1;var e=rH(),t=fs(),r=Hc(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=a.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):i.test(c)?n:+c}return ex=l,ex}var tx,$3;function nH(){if($3)return tx;$3=1;var e=fs(),t=eH(),r=j6(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,c){var u,f,d,h,g,p,v=0,y=!1,b=!1,_=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(y=!!c.leading,b="maxWait"in c,d=b?i(r(c.maxWait)||0,l):d,_="trailing"in c?!!c.trailing:_);function S(D){var U=u,W=f;return u=f=void 0,v=D,h=s.apply(W,U),h}function A(D){return v=D,g=setTimeout(k,l),y?S(D):h}function P(D){var U=D-p,W=D-v,R=l-U;return b?a(R,d-W):R}function T(D){var U=D-p,W=D-v;return p===void 0||U>=l||U<0||b&&W>=d}function k(){var D=t();if(T(D))return L(D);g=setTimeout(k,P(D))}function L(D){return g=void 0,_&&u?S(D):(u=f=void 0,h)}function B(){g!==void 0&&clearTimeout(g),v=0,u=p=f=g=void 0}function j(){return g===void 0?h:L(t())}function N(){var D=t(),U=T(D);if(u=arguments,f=this,p=D,U){if(g===void 0)return A(p);if(b)return clearTimeout(g),g=setTimeout(k,l),S(p)}return g===void 0&&(g=setTimeout(k,l)),h}return N.cancel=B,N.flush=j,N}return tx=o,tx}var rx,q3;function iH(){if(q3)return rx;q3=1;var e=nH(),t=fs(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return rx=n,rx}var aH=iH();const C6=ur(aH);function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}function U3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function N0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U3(Object(r),!0).forEach(function(n){oH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oH(e,t,r){return t=sH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sH(e){var t=lH(e,"string");return Sf(t)=="symbol"?t:t+""}function lH(e,t){if(Sf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cH(e,t){return dH(e)||hH(e,t)||fH(e,t)||uH()}function uH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
368
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fH(e,t){if(e){if(typeof e=="string")return z3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z3(e,t)}}function z3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function dH(e){if(Array.isArray(e))return e}var nx=G.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,f=e.minHeight,d=e.maxHeight,h=e.children,g=e.debounce,p=g===void 0?0:g,v=e.id,y=e.className,b=e.onResize,_=e.style,S=_===void 0?{}:_,A=G.useRef(null),P=G.useRef();P.current=b,G.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var T=G.useState({containerWidth:i.width,containerHeight:i.height}),k=cH(T,2),L=k[0],B=k[1],j=G.useCallback(function(D,U){B(function(W){var R=Math.round(D),z=Math.round(U);return W.containerWidth===R&&W.containerHeight===z?W:{containerWidth:R,containerHeight:z}})},[]);G.useEffect(function(){var D=function(Z){var ee,ce=Z[0].contentRect,O=ce.width,I=ce.height;j(O,I),(ee=P.current)===null||ee===void 0||ee.call(P,O,I)};p>0&&(D=C6(D,p,{trailing:!0,leading:!1}));var U=new ResizeObserver(D),W=A.current.getBoundingClientRect(),R=W.width,z=W.height;return j(R,z),U.observe(A.current),function(){U.disconnect()}},[j,p]);var N=G.useMemo(function(){var D=L.containerWidth,U=L.containerHeight;if(D<0||U<0)return null;vo(Fs(o)||Fs(l),`The width(%s) and height(%s) are both fixed numbers,
369
+ maybe you don't need to use a ResponsiveContainer.`,o,l),vo(!r||r>0,"The aspect(%s) must be greater than zero.",r);var W=Fs(o)?D:o,R=Fs(l)?U:l;r&&r>0&&(W?R=W/r:R&&(W=R*r),d&&R>d&&(R=d)),vo(W>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
370
+ please check the style of container, or the props width(%s) and height(%s),
371
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
372
+ height and width.`,W,R,o,l,u,f,r);var z=!Array.isArray(h)&&mo(h.type).endsWith("Chart");return G.Children.map(h,function(Q){return G.isValidElement(Q)?G.cloneElement(Q,N0({width:W,height:R},z?{style:N0({height:"100%",width:"100%",maxHeight:R,maxWidth:W},Q.props.style)}:{})):Q})},[r,h,l,d,f,u,L,o]);return G.createElement("div",{id:v?"".concat(v):void 0,className:Rt("recharts-responsive-container",y),style:N0(N0({},S),{},{width:o,height:l,minWidth:u,minHeight:f,maxHeight:d}),ref:A},N)}),k6=function(t){return null};k6.displayName="Cell";function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function W3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W3(Object(r),!0).forEach(function(n){pH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pH(e,t,r){return t=mH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mH(e){var t=vH(e,"string");return Af(t)=="symbol"?t:t+""}function vH(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $l={widthCache:{},cacheCount:0},gH=2e3,xH={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},H3="recharts_measurement_span";function yH(e){var t=qy({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var rf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ol.isSsr)return{width:0,height:0};var n=yH(r),i=JSON.stringify({text:t,copyStyle:n});if($l.widthCache[i])return $l.widthCache[i];try{var a=document.getElementById(H3);a||(a=document.createElement("span"),a.setAttribute("id",H3),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=qy(qy({},xH),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return $l.widthCache[i]=l,++$l.cacheCount>gH&&($l.cacheCount=0,$l.widthCache={}),l}catch{return{width:0,height:0}}},bH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function md(e,t){return AH(e)||SH(e,t)||_H(e,t)||wH()}function wH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
373
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _H(e,t){if(e){if(typeof e=="string")return G3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G3(e,t)}}function G3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function AH(e){if(Array.isArray(e))return e}function TH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NH(n.key),n)}}function EH(e,t,r){return t&&V3(e.prototype,t),r&&V3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NH(e){var t=PH(e,"string");return Tf(t)=="symbol"?t:t+""}function PH(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Y3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,K3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,OH=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,jH=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,L6={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},CH=Object.keys(L6),Xl="NaN";function kH(e,t){return e*L6[t]}var P0=(function(){function e(t,r){TH(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!OH.test(r)&&(this.num=NaN,this.unit=""),CH.includes(r)&&(this.num=kH(t,r),this.unit="px")}return EH(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=jH.exec(r))!==null&&n!==void 0?n:[],a=md(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function I6(e){if(e.includes(Xl))return Xl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Y3.exec(t))!==null&&r!==void 0?r:[],i=md(n,4),a=i[1],o=i[2],s=i[3],l=P0.parse(a??""),c=P0.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Xl;t=t.replace(Y3,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=K3.exec(t))!==null&&f!==void 0?f:[],h=md(d,4),g=h[1],p=h[2],v=h[3],y=P0.parse(g??""),b=P0.parse(v??""),_=p==="+"?y.add(b):y.subtract(b);if(_.isNaN())return Xl;t=t.replace(K3,_.toString())}return t}var X3=/\(([^()]*)\)/;function LH(e){for(var t=e;t.includes("(");){var r=X3.exec(t),n=md(r,2),i=n[1];t=t.replace(X3,I6(i))}return t}function IH(e){var t=e.replace(/\s+/g,"");return t=LH(t),t=I6(t),t}function FH(e){try{return IH(e)}catch{return Xl}}function ix(e){var t=FH(e.slice(5,-1));return t===Xl?"":t}var MH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],DH=["dx","dy","angle","className","breakAll"];function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uy.apply(this,arguments)}function J3(e,t){if(e==null)return{};var r=RH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Z3(e,t){return UH(e)||qH(e,t)||$H(e,t)||BH()}function BH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
374
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $H(e,t){if(e){if(typeof e=="string")return Q3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q3(e,t)}}function Q3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function UH(e){if(Array.isArray(e))return e}var F6=/[ \f\n\r\t\v\u2028\u2029]+/,M6=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Ut(r)||(n?a=r.toString().split(""):a=r.toString().split(F6));var o=a.map(function(l){return{word:l,width:rf(l,i).width}}),s=n?0:rf(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},zH=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=nt(o),f=s,d=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(R,z){var Q=z.word,Z=z.width,ee=R[R.length-1];if(ee&&(i==null||a||ee.width+Z+n<Number(i)))ee.words.push(Q),ee.width+=Z+n;else{var ce={words:[Q],width:Z};R.push(ce)}return R},[])},h=d(r),g=function(W){return W.reduce(function(R,z){return R.width>z.width?R:z})};if(!u)return h;for(var p="…",v=function(W){var R=f.slice(0,W),z=M6({breakAll:c,style:l,children:R+p}).wordsWithComputedWidth,Q=d(z),Z=Q.length>o||g(Q).width>Number(i);return[Z,Q]},y=0,b=f.length-1,_=0,S;y<=b&&_<=f.length-1;){var A=Math.floor((y+b)/2),P=A-1,T=v(P),k=Z3(T,2),L=k[0],B=k[1],j=v(A),N=Z3(j,1),D=N[0];if(!L&&!D&&(y=A+1),L&&D&&(b=A-1),!L&&D){S=B;break}_++}return S||h},eA=function(t){var r=Ut(t)?[]:t.toString().split(F6);return[{words:r}]},WH=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ol.isSsr){var l,c,u=M6({breakAll:o,children:i,style:a});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;l=f,c=d}else return eA(i);return zH({breakAll:o,children:i,maxLines:s,style:a},l,c,r,n)}return eA(i)},tA="#808080",vc=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,v=t.fill,y=v===void 0?tA:v,b=J3(t,MH),_=G.useMemo(function(){return WH({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),S=b.dx,A=b.dy,P=b.angle,T=b.className,k=b.breakAll,L=J3(b,DH);if(!pn(n)||!pn(a))return null;var B=n+(nt(S)?S:0),j=a+(nt(A)?A:0),N;switch(p){case"start":N=ix("calc(".concat(c,")"));break;case"middle":N=ix("calc(".concat((_.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:N=ix("calc(".concat(_.length-1," * -").concat(s,")"));break}var D=[];if(f){var U=_[0].width,W=b.width;D.push("scale(".concat((nt(W)?W/U:1)/U,")"))}return P&&D.push("rotate(".concat(P,", ").concat(B,", ").concat(j,")")),D.length&&(L.transform=D.join(" ")),G.createElement("text",Uy({},yt(L,!0),{x:B,y:j,className:Rt("recharts-text",T),textAnchor:h,fill:y.includes("url")?tA:y}),_.map(function(R,z){var Q=R.words.join(k?"":" ");return G.createElement("tspan",{x:B,dy:z===0?N:s,key:"".concat(Q,"-").concat(z)},Q)}))};function rs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function HH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $b(e){let t,r,n;e.length!==2?(t=rs,r=(s,l)=>rs(e(s),l),n=(s,l)=>e(s)-l):(t=e===rs||e===HH?e:GH,r=e,n=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=i(s,l,c,u-1);return f>c&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function GH(){return 0}function D6(e){return e===null?NaN:+e}function*VH(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const YH=$b(rs),hh=YH.right;$b(D6).center;class rA extends Map{constructor(t,r=JH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(nA(this,t))}has(t){return super.has(nA(this,t))}set(t,r){return super.set(KH(this,t),r)}delete(t){return super.delete(XH(this,t))}}function nA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function KH({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function XH({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function JH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ZH(e=rs){if(e===rs)return R6;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function R6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const QH=Math.sqrt(50),eG=Math.sqrt(10),tG=Math.sqrt(2);function vd(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=QH?10:a>=eG?5:a>=tG?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?vd(e,t,r*2):[s,l,c]}function zy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?vd(t,e,r):vd(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function Wy(e,t,r){return t=+t,e=+e,r=+r,vd(e,t,r)[2]}function Hy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Wy(t,e,r):Wy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function iA(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function aA(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function B6(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?R6:ZH(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),g=Math.min(n,Math.floor(t+(l-c)*f/l+d));B6(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(Lu(e,r,t),i(e[n],a)>0&&Lu(e,r,n);o<s;){for(Lu(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Lu(e,r,s):(++s,Lu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Lu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function rG(e,t,r){if(e=Float64Array.from(VH(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return aA(e);if(t>=1)return iA(e);var n,i=(n-1)*t,a=Math.floor(i),o=iA(B6(e,a).subarray(0,a+1)),s=aA(e.subarray(a+1));return o+(s-o)*(i-a)}}function nG(e,t,r=D6){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function iG(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Qi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Po(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Gy=Symbol("implicit");function qb(){var e=new rA,t=[],r=[],n=Gy;function i(a){let o=e.get(a);if(o===void 0){if(n!==Gy)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new rA;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return qb(t,r).unknown(n)},Qi.apply(i,arguments),i}function Ef(){var e=qb().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=i<n,g=h?i:n,p=h?n:i;a=(p-g)/Math.max(1,d-l+c*2),s&&(a=Math.floor(a)),g+=(p-g-a*(d-l))*u,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var v=iG(d).map(function(y){return g+a*y});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return Ef(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Qi.apply(f(),arguments)}function $6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $6(t())},e}function nf(){return $6(Ef.apply(null,arguments).paddingInner(1))}function Ub(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function q6(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function dh(){}var Nf=.7,gd=1/Nf,sc="\\s*([+-]?\\d+)\\s*",Pf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Da="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aG=/^#([0-9a-f]{3,8})$/,oG=new RegExp(`^rgb\\(${sc},${sc},${sc}\\)$`),sG=new RegExp(`^rgb\\(${Da},${Da},${Da}\\)$`),lG=new RegExp(`^rgba\\(${sc},${sc},${sc},${Pf}\\)$`),cG=new RegExp(`^rgba\\(${Da},${Da},${Da},${Pf}\\)$`),uG=new RegExp(`^hsl\\(${Pf},${Da},${Da}\\)$`),fG=new RegExp(`^hsla\\(${Pf},${Da},${Da},${Pf}\\)$`),oA={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ub(dh,Of,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sA,formatHex:sA,formatHex8:hG,formatHsl:dG,formatRgb:lA,toString:lA});function sA(){return this.rgb().formatHex()}function hG(){return this.rgb().formatHex8()}function dG(){return U6(this).formatHsl()}function lA(){return this.rgb().formatRgb()}function Of(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=aG.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?cA(t):r===3?new fi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?O0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?O0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oG.exec(e))?new fi(t[1],t[2],t[3],1):(t=sG.exec(e))?new fi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lG.exec(e))?O0(t[1],t[2],t[3],t[4]):(t=cG.exec(e))?O0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uG.exec(e))?hA(t[1],t[2]/100,t[3]/100,1):(t=fG.exec(e))?hA(t[1],t[2]/100,t[3]/100,t[4]):oA.hasOwnProperty(e)?cA(oA[e]):e==="transparent"?new fi(NaN,NaN,NaN,0):null}function cA(e){return new fi(e>>16&255,e>>8&255,e&255,1)}function O0(e,t,r,n){return n<=0&&(e=t=r=NaN),new fi(e,t,r,n)}function pG(e){return e instanceof dh||(e=Of(e)),e?(e=e.rgb(),new fi(e.r,e.g,e.b,e.opacity)):new fi}function Vy(e,t,r,n){return arguments.length===1?pG(e):new fi(e,t,r,n??1)}function fi(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ub(fi,Vy,q6(dh,{brighter(e){return e=e==null?gd:Math.pow(gd,e),new fi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Nf:Math.pow(Nf,e),new fi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fi(Hs(this.r),Hs(this.g),Hs(this.b),xd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:uA,formatHex:uA,formatHex8:mG,formatRgb:fA,toString:fA}));function uA(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}`}function mG(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}${Ms((isNaN(this.opacity)?1:this.opacity)*255)}`}function fA(){const e=xd(this.opacity);return`${e===1?"rgb(":"rgba("}${Hs(this.r)}, ${Hs(this.g)}, ${Hs(this.b)}${e===1?")":`, ${e})`}`}function xd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ms(e){return e=Hs(e),(e<16?"0":"")+e.toString(16)}function hA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ga(e,t,r,n)}function U6(e){if(e instanceof ga)return new ga(e.h,e.s,e.l,e.opacity);if(e instanceof dh||(e=Of(e)),!e)return new ga;if(e instanceof ga)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new ga(o,s,l,e.opacity)}function vG(e,t,r,n){return arguments.length===1?U6(e):new ga(e,t,r,n??1)}function ga(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ub(ga,vG,q6(dh,{brighter(e){return e=e==null?gd:Math.pow(gd,e),new ga(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Nf:Math.pow(Nf,e),new ga(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new fi(ax(e>=240?e-240:e+120,i,n),ax(e,i,n),ax(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ga(dA(this.h),j0(this.s),j0(this.l),xd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=xd(this.opacity);return`${e===1?"hsl(":"hsla("}${dA(this.h)}, ${j0(this.s)*100}%, ${j0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dA(e){return e=(e||0)%360,e<0?e+360:e}function j0(e){return Math.max(0,Math.min(1,e||0))}function ax(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const zb=e=>()=>e;function gG(e,t){return function(r){return e+r*t}}function xG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function yG(e){return(e=+e)==1?z6:function(t,r){return r-t?xG(t,r,e):zb(isNaN(t)?r:t)}}function z6(e,t){var r=t-e;return r?gG(e,r):zb(isNaN(e)?t:e)}const pA=(function e(t){var r=yG(t);function n(i,a){var o=r((i=Vy(i)).r,(a=Vy(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=z6(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=e,n})(1);function bG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function wG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _G(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Yc(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function SG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function yd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function AG(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Yc(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Yy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ox=new RegExp(Yy.source,"g");function TG(e){return function(){return e}}function EG(e){return function(t){return e(t)+""}}function NG(e,t){var r=Yy.lastIndex=ox.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Yy.exec(e))&&(i=ox.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:yd(n,i)})),r=ox.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?EG(l[0].x):TG(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function Yc(e,t){var r=typeof t,n;return t==null||r==="boolean"?zb(t):(r==="number"?yd:r==="string"?(n=Of(t))?(t=n,pA):NG:t instanceof Of?pA:t instanceof Date?SG:wG(t)?bG:Array.isArray(t)?_G:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?AG:yd)(e,t)}function Wb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function PG(e,t){t===void 0&&(t=e,e=Yc);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function OG(e){return function(){return e}}function bd(e){return+e}var mA=[0,1];function ri(e){return e}function Ky(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:OG(isNaN(t)?NaN:.5)}function jG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function CG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Ky(i,n),a=r(o,a)):(n=Ky(n,i),a=r(a,o)),function(s){return a(n(s))}}function kG(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Ky(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=hh(e,s,1,n)-1;return a[l](i[l](s))}}function ph(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Op(){var e=mA,t=mA,r=Yc,n,i,a,o=ri,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==ri&&(o=jG(e[0],e[d-1])),s=d>2?kG:CG,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=s(t,e.map(n),yd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,bd),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Wb,u()},f.clamp=function(d){return arguments.length?(o=d?!0:ri,u()):o!==ri},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,u()}}function Hb(){return Op()(ri,ri)}function LG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function wd(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function gc(e){return e=wd(Math.abs(e)),e?e[1]:NaN}function IG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function FG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var MG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jf(e){if(!(t=MG.exec(e)))throw new Error("invalid format: "+e);var t;return new Gb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}jf.prototype=Gb.prototype;function Gb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Gb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function DG(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var _d;function RG(e,t){var r=wd(e,t);if(!r)return _d=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(_d=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+wd(e,Math.max(0,t+a-1))[0]}function vA(e,t){var r=wd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const gA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>vA(e*100,t),r:vA,s:RG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xA(e){return e}var yA=Array.prototype.map,bA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function BG(e){var t=e.grouping===void 0||e.thousands===void 0?xA:IG(yA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?xA:FG(yA.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,d){f=jf(f);var h=f.fill,g=f.align,p=f.sign,v=f.symbol,y=f.zero,b=f.width,_=f.comma,S=f.precision,A=f.trim,P=f.type;P==="n"?(_=!0,P="g"):gA[P]||(S===void 0&&(S=12),A=!0,P="g"),(y||h==="0"&&g==="=")&&(y=!0,h="0",g="=");var T=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),k=(v==="$"?n:/[%p]/.test(P)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),L=gA[P],B=/[defgprs%]/.test(P);S=S===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function j(N){var D=T,U=k,W,R,z;if(P==="c")U=L(N)+U,N="";else{N=+N;var Q=N<0||1/N<0;if(N=isNaN(N)?l:L(Math.abs(N),S),A&&(N=DG(N)),Q&&+N==0&&p!=="+"&&(Q=!1),D=(Q?p==="("?p:s:p==="-"||p==="("?"":p)+D,U=(P==="s"&&!isNaN(N)&&_d!==void 0?bA[8+_d/3]:"")+U+(Q&&p==="("?")":""),B){for(W=-1,R=N.length;++W<R;)if(z=N.charCodeAt(W),48>z||z>57){U=(z===46?i+N.slice(W+1):N.slice(W))+U,N=N.slice(0,W);break}}}_&&!y&&(N=t(N,1/0));var Z=D.length+N.length+U.length,ee=Z<b?new Array(b-Z+1).join(h):"";switch(_&&y&&(N=t(ee+N,ee.length?b-U.length:1/0),ee=""),g){case"<":N=D+N+U+ee;break;case"=":N=D+ee+N+U;break;case"^":N=ee.slice(0,Z=ee.length>>1)+D+N+U+ee.slice(Z);break;default:N=ee+D+N+U;break}return a(N)}return j.toString=function(){return f+""},j}function u(f,d){var h=Math.max(-8,Math.min(8,Math.floor(gc(d)/3)))*3,g=Math.pow(10,-h),p=c((f=jf(f),f.type="f",f),{suffix:bA[8+h/3]});return function(v){return p(g*v)}}return{format:c,formatPrefix:u}}var C0,Vb,W6;$G({thousands:",",grouping:[3],currency:["$",""]});function $G(e){return C0=BG(e),Vb=C0.format,W6=C0.formatPrefix,C0}function qG(e){return Math.max(0,-gc(Math.abs(e)))}function UG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gc(t)/3)))*3-gc(Math.abs(e)))}function zG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,gc(t)-gc(e))+1}function H6(e,t,r,n){var i=Hy(e,t,r),a;switch(n=jf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=UG(i,o))&&(n.precision=a),W6(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=zG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=qG(i))&&(n.precision=a-(n.type==="%")*2);break}}return Vb(n)}function hs(e){var t=e.domain;return e.ticks=function(r){var n=t();return zy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return H6(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=Wy(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Sd(){var e=Hb();return e.copy=function(){return ph(e,Sd())},Qi.apply(e,arguments),hs(e)}function G6(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,bd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return G6(e).unknown(t)},e=arguments.length?Array.from(e,bd):[0,1],hs(r)}function V6(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function wA(e){return Math.log(e)}function _A(e){return Math.exp(e)}function WG(e){return-Math.log(-e)}function HG(e){return-Math.exp(-e)}function GG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function VG(e){return e===10?GG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function YG(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function SA(e){return(t,r)=>-e(-t,r)}function Yb(e){const t=e(wA,_A),r=t.domain;let n=10,i,a;function o(){return i=YG(n),a=VG(n),r()[0]<0?(i=SA(i),a=SA(a),e(WG,HG)):e(wA,_A),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),g,p;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(g=1;g<n;++g)if(p=d<0?g/a(-d):g*a(d),!(p<c)){if(p>u)break;y.push(p)}}else for(;d<=h;++d)for(g=n-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(p<c)){if(p>u)break;y.push(p)}y.length*2<v&&(y=zy(c,u,v))}else y=zy(d,h,Math.min(h-d,v)).map(a);return f?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=jf(l)).precision==null&&(l.trim=!0),l=Vb(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=c?l(u):""}},t.nice=()=>r(V6(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Y6(){const e=Yb(Op()).domain([1,10]);return e.copy=()=>ph(e,Y6()).base(e.base()),Qi.apply(e,arguments),e}function AA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function TA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Kb(e){var t=1,r=e(AA(t),TA(t));return r.constant=function(n){return arguments.length?e(AA(t=+n),TA(t)):t},hs(r)}function K6(){var e=Kb(Op());return e.copy=function(){return ph(e,K6()).constant(e.constant())},Qi.apply(e,arguments)}function EA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XG(e){return e<0?-e*e:e*e}function Xb(e){var t=e(ri,ri),r=1;function n(){return r===1?e(ri,ri):r===.5?e(KG,XG):e(EA(r),EA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},hs(t)}function Jb(){var e=Xb(Op());return e.copy=function(){return ph(e,Jb()).exponent(e.exponent())},Qi.apply(e,arguments),e}function JG(){return Jb.apply(null,arguments).exponent(.5)}function NA(e){return Math.sign(e)*e*e}function ZG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function X6(){var e=Hb(),t=[0,1],r=!1,n;function i(a){var o=ZG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(NA(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,bd)).map(NA)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return X6(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qi.apply(i,arguments),hs(i)}function J6(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=nG(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[hh(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(rs),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return J6().domain(e).range(t).unknown(n)},Qi.apply(a,arguments)}function Z6(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[hh(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Z6().domain([e,t]).range(i).unknown(a)},Qi.apply(hs(o),arguments)}function Q6(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[hh(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Q6().domain(e).range(t).unknown(r)},Qi.apply(i,arguments)}const sx=new Date,lx=new Date;function mn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>mn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(sx.setTime(+a),lx.setTime(+o),e(sx),e(lx),Math.floor(r(sx,lx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ad=mn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ad.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?mn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ad);Ad.range;const lo=1e3,Yi=lo*60,co=Yi*60,wo=co*24,Zb=wo*7,PA=wo*30,cx=wo*365,Ds=mn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lo)},(e,t)=>(t-e)/lo,e=>e.getUTCSeconds());Ds.range;const Qb=mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lo)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getMinutes());Qb.range;const e5=mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getUTCMinutes());e5.range;const t5=mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lo-e.getMinutes()*Yi)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getHours());t5.range;const r5=mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getUTCHours());r5.range;const mh=mn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yi)/wo,e=>e.getDate()-1);mh.range;const jp=mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wo,e=>e.getUTCDate()-1);jp.range;const ej=mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wo,e=>Math.floor(e/wo));ej.range;function sl(e){return mn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Yi)/Zb)}const Cp=sl(0),Td=sl(1),QG=sl(2),eV=sl(3),xc=sl(4),tV=sl(5),rV=sl(6);Cp.range;Td.range;QG.range;eV.range;xc.range;tV.range;rV.range;function ll(e){return mn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Zb)}const kp=ll(0),Ed=ll(1),nV=ll(2),iV=ll(3),yc=ll(4),aV=ll(5),oV=ll(6);kp.range;Ed.range;nV.range;iV.range;yc.range;aV.range;oV.range;const n5=mn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());n5.range;const i5=mn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());i5.range;const _o=mn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());_o.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});_o.range;const So=mn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());So.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});So.range;function tj(e,t,r,n,i,a){const o=[[Ds,1,lo],[Ds,5,5*lo],[Ds,15,15*lo],[Ds,30,30*lo],[a,1,Yi],[a,5,5*Yi],[a,15,15*Yi],[a,30,30*Yi],[i,1,co],[i,3,3*co],[i,6,6*co],[i,12,12*co],[n,1,wo],[n,2,2*wo],[r,1,Zb],[t,1,PA],[t,3,3*PA],[e,1,cx]];function s(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:l(c,u,f),g=h?h.range(c,+u+1):[];return d?g.reverse():g}function l(c,u,f){const d=Math.abs(u-c)/f,h=$b(([,,v])=>v).right(o,d);if(h===o.length)return e.every(Hy(c/cx,u/cx,f));if(h===0)return Ad.every(Math.max(Hy(c,u,f),1));const[g,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return g.every(p)}return[s,l]}const[sV,lV]=tj(So,i5,kp,ej,r5,e5),[cV,uV]=tj(_o,n5,Cp,mh,t5,Qb);function ux(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function fx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Iu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function fV(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Fu(i),u=Mu(i),f=Fu(a),d=Mu(a),h=Fu(o),g=Mu(o),p=Fu(s),v=Mu(s),y=Fu(l),b=Mu(l),_={a:z,A:Q,b:Z,B:ee,c:null,d:IA,e:IA,f:IV,g:WV,G:GV,H:CV,I:kV,j:LV,L:rj,m:FV,M:MV,p:ce,q:O,Q:DA,s:RA,S:DV,u:RV,U:BV,V:$V,w:qV,W:UV,x:null,X:null,y:zV,Y:HV,Z:VV,"%":MA},S={a:I,A:M,b:q,B:Y,c:null,d:FA,e:FA,f:JV,g:sY,G:cY,H:YV,I:KV,j:XV,L:ij,m:ZV,M:QV,p:fe,q:ae,Q:DA,s:RA,S:eY,u:tY,U:rY,V:nY,w:iY,W:aY,x:null,X:null,y:oY,Y:lY,Z:uY,"%":MA},A={a:B,A:j,b:N,B:D,c:U,d:kA,e:kA,f:NV,g:CA,G:jA,H:LA,I:LA,j:SV,L:EV,m:_V,M:AV,p:L,q:wV,Q:OV,s:jV,S:TV,u:vV,U:gV,V:xV,w:mV,W:yV,x:W,X:R,y:CA,Y:jA,Z:bV,"%":PV};_.x=P(r,_),_.X=P(n,_),_.c=P(t,_),S.x=P(r,S),S.X=P(n,S),S.c=P(t,S);function P(ne,ve){return function(we){var se=[],Fe=-1,Ae=0,Ee=ne.length,le,Re,tt;for(we instanceof Date||(we=new Date(+we));++Fe<Ee;)ne.charCodeAt(Fe)===37&&(se.push(ne.slice(Ae,Fe)),(Re=OA[le=ne.charAt(++Fe)])!=null?le=ne.charAt(++Fe):Re=le==="e"?" ":"0",(tt=ve[le])&&(le=tt(we,Re)),se.push(le),Ae=Fe+1);return se.push(ne.slice(Ae,Fe)),se.join("")}}function T(ne,ve){return function(we){var se=Iu(1900,void 0,1),Fe=k(se,ne,we+="",0),Ae,Ee;if(Fe!=we.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(ve&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(Ae=fx(Iu(se.y,0,1)),Ee=Ae.getUTCDay(),Ae=Ee>4||Ee===0?Ed.ceil(Ae):Ed(Ae),Ae=jp.offset(Ae,(se.V-1)*7),se.y=Ae.getUTCFullYear(),se.m=Ae.getUTCMonth(),se.d=Ae.getUTCDate()+(se.w+6)%7):(Ae=ux(Iu(se.y,0,1)),Ee=Ae.getDay(),Ae=Ee>4||Ee===0?Td.ceil(Ae):Td(Ae),Ae=mh.offset(Ae,(se.V-1)*7),se.y=Ae.getFullYear(),se.m=Ae.getMonth(),se.d=Ae.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Ee="Z"in se?fx(Iu(se.y,0,1)).getUTCDay():ux(Iu(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ee+5)%7:se.w+se.U*7-(Ee+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,fx(se)):ux(se)}}function k(ne,ve,we,se){for(var Fe=0,Ae=ve.length,Ee=we.length,le,Re;Fe<Ae;){if(se>=Ee)return-1;if(le=ve.charCodeAt(Fe++),le===37){if(le=ve.charAt(Fe++),Re=A[le in OA?ve.charAt(Fe++):le],!Re||(se=Re(ne,we,se))<0)return-1}else if(le!=we.charCodeAt(se++))return-1}return se}function L(ne,ve,we){var se=c.exec(ve.slice(we));return se?(ne.p=u.get(se[0].toLowerCase()),we+se[0].length):-1}function B(ne,ve,we){var se=h.exec(ve.slice(we));return se?(ne.w=g.get(se[0].toLowerCase()),we+se[0].length):-1}function j(ne,ve,we){var se=f.exec(ve.slice(we));return se?(ne.w=d.get(se[0].toLowerCase()),we+se[0].length):-1}function N(ne,ve,we){var se=y.exec(ve.slice(we));return se?(ne.m=b.get(se[0].toLowerCase()),we+se[0].length):-1}function D(ne,ve,we){var se=p.exec(ve.slice(we));return se?(ne.m=v.get(se[0].toLowerCase()),we+se[0].length):-1}function U(ne,ve,we){return k(ne,t,ve,we)}function W(ne,ve,we){return k(ne,r,ve,we)}function R(ne,ve,we){return k(ne,n,ve,we)}function z(ne){return o[ne.getDay()]}function Q(ne){return a[ne.getDay()]}function Z(ne){return l[ne.getMonth()]}function ee(ne){return s[ne.getMonth()]}function ce(ne){return i[+(ne.getHours()>=12)]}function O(ne){return 1+~~(ne.getMonth()/3)}function I(ne){return o[ne.getUTCDay()]}function M(ne){return a[ne.getUTCDay()]}function q(ne){return l[ne.getUTCMonth()]}function Y(ne){return s[ne.getUTCMonth()]}function fe(ne){return i[+(ne.getUTCHours()>=12)]}function ae(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var ve=P(ne+="",_);return ve.toString=function(){return ne},ve},parse:function(ne){var ve=T(ne+="",!1);return ve.toString=function(){return ne},ve},utcFormat:function(ne){var ve=P(ne+="",S);return ve.toString=function(){return ne},ve},utcParse:function(ne){var ve=T(ne+="",!0);return ve.toString=function(){return ne},ve}}}var OA={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,hV=/^%/,dV=/[\\^$*+?|[\]().{}]/g;function Zt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function pV(e){return e.replace(dV,"\\$&")}function Fu(e){return new RegExp("^(?:"+e.map(pV).join("|")+")","i")}function Mu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function mV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function vV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function gV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function xV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function yV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function jA(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function CA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function bV(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function wV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function _V(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function kA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function SV(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function LA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function AV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function TV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function EV(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function NV(e,t,r){var n=Sn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function PV(e,t,r){var n=hV.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function OV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function jV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function IA(e,t){return Zt(e.getDate(),t,2)}function CV(e,t){return Zt(e.getHours(),t,2)}function kV(e,t){return Zt(e.getHours()%12||12,t,2)}function LV(e,t){return Zt(1+mh.count(_o(e),e),t,3)}function rj(e,t){return Zt(e.getMilliseconds(),t,3)}function IV(e,t){return rj(e,t)+"000"}function FV(e,t){return Zt(e.getMonth()+1,t,2)}function MV(e,t){return Zt(e.getMinutes(),t,2)}function DV(e,t){return Zt(e.getSeconds(),t,2)}function RV(e){var t=e.getDay();return t===0?7:t}function BV(e,t){return Zt(Cp.count(_o(e)-1,e),t,2)}function nj(e){var t=e.getDay();return t>=4||t===0?xc(e):xc.ceil(e)}function $V(e,t){return e=nj(e),Zt(xc.count(_o(e),e)+(_o(e).getDay()===4),t,2)}function qV(e){return e.getDay()}function UV(e,t){return Zt(Td.count(_o(e)-1,e),t,2)}function zV(e,t){return Zt(e.getFullYear()%100,t,2)}function WV(e,t){return e=nj(e),Zt(e.getFullYear()%100,t,2)}function HV(e,t){return Zt(e.getFullYear()%1e4,t,4)}function GV(e,t){var r=e.getDay();return e=r>=4||r===0?xc(e):xc.ceil(e),Zt(e.getFullYear()%1e4,t,4)}function VV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Zt(t/60|0,"0",2)+Zt(t%60,"0",2)}function FA(e,t){return Zt(e.getUTCDate(),t,2)}function YV(e,t){return Zt(e.getUTCHours(),t,2)}function KV(e,t){return Zt(e.getUTCHours()%12||12,t,2)}function XV(e,t){return Zt(1+jp.count(So(e),e),t,3)}function ij(e,t){return Zt(e.getUTCMilliseconds(),t,3)}function JV(e,t){return ij(e,t)+"000"}function ZV(e,t){return Zt(e.getUTCMonth()+1,t,2)}function QV(e,t){return Zt(e.getUTCMinutes(),t,2)}function eY(e,t){return Zt(e.getUTCSeconds(),t,2)}function tY(e){var t=e.getUTCDay();return t===0?7:t}function rY(e,t){return Zt(kp.count(So(e)-1,e),t,2)}function aj(e){var t=e.getUTCDay();return t>=4||t===0?yc(e):yc.ceil(e)}function nY(e,t){return e=aj(e),Zt(yc.count(So(e),e)+(So(e).getUTCDay()===4),t,2)}function iY(e){return e.getUTCDay()}function aY(e,t){return Zt(Ed.count(So(e)-1,e),t,2)}function oY(e,t){return Zt(e.getUTCFullYear()%100,t,2)}function sY(e,t){return e=aj(e),Zt(e.getUTCFullYear()%100,t,2)}function lY(e,t){return Zt(e.getUTCFullYear()%1e4,t,4)}function cY(e,t){var r=e.getUTCDay();return e=r>=4||r===0?yc(e):yc.ceil(e),Zt(e.getUTCFullYear()%1e4,t,4)}function uY(){return"+0000"}function MA(){return"%"}function DA(e){return+e}function RA(e){return Math.floor(+e/1e3)}var ql,oj,sj;fY({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fY(e){return ql=fV(e),oj=ql.format,ql.parse,sj=ql.utcFormat,ql.utcParse,ql}function hY(e){return new Date(e)}function dY(e){return e instanceof Date?+e:+new Date(+e)}function a5(e,t,r,n,i,a,o,s,l,c){var u=Hb(),f=u.invert,d=u.domain,h=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),_=c("%B"),S=c("%Y");function A(P){return(l(P)<P?h:s(P)<P?g:o(P)<P?p:a(P)<P?v:n(P)<P?i(P)<P?y:b:r(P)<P?_:S)(P)}return u.invert=function(P){return new Date(f(P))},u.domain=function(P){return arguments.length?d(Array.from(P,dY)):d().map(hY)},u.ticks=function(P){var T=d();return e(T[0],T[T.length-1],P??10)},u.tickFormat=function(P,T){return T==null?A:c(T)},u.nice=function(P){var T=d();return(!P||typeof P.range!="function")&&(P=t(T[0],T[T.length-1],P??10)),P?d(V6(T,P)):u},u.copy=function(){return ph(u,a5(e,t,r,n,i,a,o,s,l,c))},u}function pY(){return Qi.apply(a5(cV,uV,_o,n5,Cp,mh,t5,Qb,Ds,oj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mY(){return Qi.apply(a5(sV,lV,So,i5,kp,jp,r5,e5,Ds,sj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lp(){var e=0,t=1,r,n,i,a,o=ri,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,g;return arguments.length?([h,g]=d,o=f(h,g),c):[o(0),o(1)]}}return c.range=u(Yc),c.rangeRound=u(Wb),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function ds(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lj(){var e=hs(Lp()(ri));return e.copy=function(){return ds(e,lj())},Po.apply(e,arguments)}function cj(){var e=Yb(Lp()).domain([1,10]);return e.copy=function(){return ds(e,cj()).base(e.base())},Po.apply(e,arguments)}function uj(){var e=Kb(Lp());return e.copy=function(){return ds(e,uj()).constant(e.constant())},Po.apply(e,arguments)}function o5(){var e=Xb(Lp());return e.copy=function(){return ds(e,o5()).exponent(e.exponent())},Po.apply(e,arguments)}function vY(){return o5.apply(null,arguments).exponent(.5)}function fj(){var e=[],t=ri;function r(n){if(n!=null&&!isNaN(n=+n))return t((hh(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(rs),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>rG(e,a/n))},r.copy=function(){return fj(t).domain(e)},Po.apply(r,arguments)}function Ip(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=ri,u,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+u(p))-a)*(n*p<n*a?s:l),c(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),a=u(t=+t),o=u(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(c=p,h):c};function g(p){return function(v){var y,b,_;return arguments.length?([y,b,_]=v,c=PG(p,[y,b,_]),h):[c(0),c(.5),c(1)]}}return h.range=g(Yc),h.rangeRound=g(Wb),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return u=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function hj(){var e=hs(Ip()(ri));return e.copy=function(){return ds(e,hj())},Po.apply(e,arguments)}function dj(){var e=Yb(Ip()).domain([.1,1,10]);return e.copy=function(){return ds(e,dj()).base(e.base())},Po.apply(e,arguments)}function pj(){var e=Kb(Ip());return e.copy=function(){return ds(e,pj()).constant(e.constant())},Po.apply(e,arguments)}function s5(){var e=Xb(Ip());return e.copy=function(){return ds(e,s5()).exponent(e.exponent())},Po.apply(e,arguments)}function gY(){return s5.apply(null,arguments).exponent(.5)}const BA=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ef,scaleDiverging:hj,scaleDivergingLog:dj,scaleDivergingPow:s5,scaleDivergingSqrt:gY,scaleDivergingSymlog:pj,scaleIdentity:G6,scaleImplicit:Gy,scaleLinear:Sd,scaleLog:Y6,scaleOrdinal:qb,scalePoint:nf,scalePow:Jb,scaleQuantile:J6,scaleQuantize:Z6,scaleRadial:X6,scaleSequential:lj,scaleSequentialLog:cj,scaleSequentialPow:o5,scaleSequentialQuantile:fj,scaleSequentialSqrt:vY,scaleSequentialSymlog:uj,scaleSqrt:JG,scaleSymlog:K6,scaleThreshold:Q6,scaleTime:pY,scaleUtc:mY,tickFormat:H6},Symbol.toStringTag,{value:"Module"}));var hx,$A;function Fp(){if($A)return hx;$A=1;var e=Hc();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,u=s}return u}return hx=t,hx}var dx,qA;function mj(){if(qA)return dx;qA=1;function e(t,r){return t>r}return dx=e,dx}var px,UA;function xY(){if(UA)return px;UA=1;var e=Fp(),t=mj(),r=Vc();function n(i){return i&&i.length?e(i,r,t):void 0}return px=n,px}var yY=xY();const Mp=ur(yY);var mx,zA;function vj(){if(zA)return mx;zA=1;function e(t,r){return t<r}return mx=e,mx}var vx,WA;function bY(){if(WA)return vx;WA=1;var e=Fp(),t=vj(),r=Vc();function n(i){return i&&i.length?e(i,r,t):void 0}return vx=n,vx}var wY=bY();const Dp=ur(wY);var gx,HA;function _Y(){if(HA)return gx;HA=1;var e=Sb(),t=Wa(),r=A6(),n=gi();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return gx=i,gx}var xx,GA;function SY(){if(GA)return xx;GA=1;var e=_6(),t=_Y();function r(n,i){return e(t(n,i),1)}return xx=r,xx}var AY=SY();const TY=ur(AY);var yx,VA;function EY(){if(VA)return yx;VA=1;var e=Mb();function t(r,n){return e(r,n)}return yx=t,yx}var NY=EY();const vh=ur(NY);var Kc=1e9,PY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c5,Fr=!0,Ji="[DecimalError] ",Gs=Ji+"Invalid argument: ",l5=Ji+"Exponent out of range: ",Xc=Math.floor,js=Math.pow,OY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ci,yn=1e7,kr=7,gj=9007199254740991,Nd=Xc(gj/kr),ht={};ht.absoluteValue=ht.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ht.comparedTo=ht.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ht.decimalPlaces=ht.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*kr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ht.dividedBy=ht.div=function(e){return go(this,new this.constructor(e))};ht.dividedToIntegerBy=ht.idiv=function(e){var t=this,r=t.constructor;return Er(go(t,new r(e),0,1),r.precision)};ht.equals=ht.eq=function(e){return!this.cmp(e)};ht.exponent=function(){return on(this)};ht.greaterThan=ht.gt=function(e){return this.cmp(e)>0};ht.greaterThanOrEqualTo=ht.gte=function(e){return this.cmp(e)>=0};ht.isInteger=ht.isint=function(){return this.e>this.d.length-2};ht.isNegative=ht.isneg=function(){return this.s<0};ht.isPositive=ht.ispos=function(){return this.s>0};ht.isZero=function(){return this.s===0};ht.lessThan=ht.lt=function(e){return this.cmp(e)<0};ht.lessThanOrEqualTo=ht.lte=function(e){return this.cmp(e)<1};ht.logarithm=ht.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ci))throw Error(Ji+"NaN");if(r.s<1)throw Error(Ji+(r.s?"NaN":"-Infinity"));return r.eq(Ci)?new n(0):(Fr=!1,t=go(Cf(r,a),Cf(e,a),a),Fr=!0,Er(t,i))};ht.minus=ht.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bj(t,e):xj(t,(e.s=-e.s,e))};ht.modulo=ht.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ji+"NaN");return r.s?(Fr=!1,t=go(r,e,0,1).times(e),Fr=!0,r.minus(t)):Er(new n(r),i)};ht.naturalExponential=ht.exp=function(){return yj(this)};ht.naturalLogarithm=ht.ln=function(){return Cf(this)};ht.negated=ht.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ht.plus=ht.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xj(t,e):bj(t,(e.s=-e.s,e))};ht.precision=ht.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gs+e);if(t=on(i)+1,n=i.d.length-1,r=n*kr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ht.squareRoot=ht.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ji+"NaN")}for(e=on(s),Fr=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Fa(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Xc((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(go(s,a,o+2)).times(.5),Fa(a.d).slice(0,o)===(t=Fa(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Er(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fr=!0,Er(n,r)};ht.times=ht.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=d.length,c=h.length,l<c&&(a=d,d=h,h=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%yn|0,t=s/yn|0;a[i]=(a[i]+t)%yn|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Fr?Er(e,f.precision):e};ht.toDecimalPlaces=ht.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:($a(e,0,Kc),t===void 0?t=n.rounding:$a(t,0,8),Er(r,e+on(r)+1,t))};ht.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Js(n,!0):($a(e,0,Kc),t===void 0?t=i.rounding:$a(t,0,8),n=Er(new i(n),e+1,t),r=Js(n,!0,e+1)),r};ht.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Js(i):($a(e,0,Kc),t===void 0?t=a.rounding:$a(t,0,8),n=Er(new a(i),e+on(i)+1,t),r=Js(n.abs(),!1,e+on(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ht.toInteger=ht.toint=function(){var e=this,t=e.constructor;return Er(new t(e),on(e)+1,t.rounding)};ht.toNumber=function(){return+this};ht.toPower=ht.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ci);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ji+"Infinity");return s}if(s.eq(Ci))return s;if(n=l.precision,e.eq(Ci))return Er(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=gj){for(i=new l(Ci),t=Math.ceil(n/kr+4),Fr=!1;r%2&&(i=i.times(s),KA(i.d,t)),r=Xc(r/2),r!==0;)s=s.times(s),KA(s.d,t);return Fr=!0,e.s<0?new l(Ci).div(i):Er(i,n)}}else if(a<0)throw Error(Ji+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fr=!1,i=e.times(Cf(s,n+c)),Fr=!0,i=yj(i),i.s=a,i};ht.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=on(i),n=Js(i,r<=a.toExpNeg||r>=a.toExpPos)):($a(e,1,Kc),t===void 0?t=a.rounding:$a(t,0,8),i=Er(new a(i),e,t),r=on(i),n=Js(i,e<=r||r<=a.toExpNeg,e)),n};ht.toSignificantDigits=ht.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):($a(e,1,Kc),t===void 0?t=n.rounding:$a(t,0,8)),Er(new n(r),e,t)};ht.toString=ht.valueOf=ht.val=ht.toJSON=ht[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=on(e),r=e.constructor;return Js(e,t<=r.toExpNeg||t>=r.toExpPos)};function xj(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Fr?Er(t,f):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(f/kr),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/yn|0,l[a]%=yn;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Fr?Er(t,f):t}function $a(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Gs+e)}function Fa(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=kr-n.length,r&&(a+=Yo(r)),a+=n;o=e[t],n=o+"",r=kr-n.length,r&&(a+=Yo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var go=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%yn|0,o=a/yn|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*yn+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,f,d,h,g,p,v,y,b,_,S,A,P,T,k,L=n.constructor,B=n.s==i.s?1:-1,j=n.d,N=i.d;if(!n.s)return new L(n);if(!i.s)throw Error(Ji+"Division by zero");for(l=n.e-i.e,T=N.length,A=j.length,h=new L(B),g=h.d=[],c=0;N[c]==(j[c]||0);)++c;if(N[c]>(j[c]||0)&&--l,a==null?b=a=L.precision:o?b=a+(on(n)-on(i))+1:b=a,b<0)return new L(0);if(b=b/kr+2|0,c=0,T==1)for(u=0,N=N[0],b++;(c<A||u)&&b--;c++)_=u*yn+(j[c]||0),g[c]=_/N|0,u=_%N|0;else{for(u=yn/(N[0]+1)|0,u>1&&(N=e(N,u),j=e(j,u),T=N.length,A=j.length),S=T,p=j.slice(0,T),v=p.length;v<T;)p[v++]=0;k=N.slice(),k.unshift(0),P=N[0],N[1]>=yn/2&&++P;do u=0,s=t(N,p,T,v),s<0?(y=p[0],T!=v&&(y=y*yn+(p[1]||0)),u=y/P|0,u>1?(u>=yn&&(u=yn-1),f=e(N,u),d=f.length,v=p.length,s=t(f,p,d,v),s==1&&(u--,r(f,T<d?k:N,d))):(u==0&&(s=u=1),f=N.slice()),d=f.length,d<v&&f.unshift(0),r(p,f,v),s==-1&&(v=p.length,s=t(N,p,T,v),s<1&&(u++,r(p,T<v?k:N,v))),v=p.length):s===0&&(u++,p=[0]),g[c++]=u,s&&p[0]?p[v++]=j[S]||0:(p=[j[S]],v=1);while((S++<A||p[0]!==void 0)&&b--)}return g[0]||g.shift(),h.e=l,Er(h,o?a+on(h)+1:a)}})();function yj(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,f=u.precision;if(on(e)>16)throw Error(l5+on(e));if(!e.s)return new u(Ci);for(Fr=!1,s=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(js(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(Ci),u.precision=s;;){if(i=Er(i.times(e),s),r=r.times(++l),o=a.plus(go(i,r,s)),Fa(o.d).slice(0,s)===Fa(a.d).slice(0,s)){for(;c--;)a=Er(a.times(a),s);return u.precision=f,t==null?(Fr=!0,Er(a,f)):a}a=o}}function on(e){for(var t=e.e*kr,r=e.d[0];r>=10;r/=10)t++;return t}function bx(e,t,r){if(t>e.LN10.sd())throw Fr=!0,r&&(e.precision=r),Error(Ji+"LN10 precision limit exceeded");return Er(new e(e.LN10),t)}function Yo(e){for(var t="";e--;)t+="0";return t}function Cf(e,t){var r,n,i,a,o,s,l,c,u,f=1,d=10,h=e,g=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(Ji+(h.s?"NaN":"-Infinity"));if(h.eq(Ci))return new p(0);if(t==null?(Fr=!1,c=v):c=t,h.eq(10))return t==null&&(Fr=!0),bx(p,c);if(c+=d,p.precision=c,r=Fa(g),n=r.charAt(0),a=on(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Fa(h.d),n=r.charAt(0),f++;a=on(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=bx(p,c+2,v).times(a+""),h=Cf(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=v,t==null?(Fr=!0,Er(h,v)):h;for(s=o=h=go(h.minus(Ci),h.plus(Ci),c),u=Er(h.times(h),c),i=3;;){if(o=Er(o.times(u),c),l=s.plus(go(o,new p(i),c)),Fa(l.d).slice(0,c)===Fa(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(bx(p,c+2,v).times(a+""))),s=go(s,new p(f),c),p.precision=v,t==null?(Fr=!0,Er(s,v)):s;s=l,i+=2}}function YA(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Xc(r/kr),e.d=[],n=(r+1)%kr,r<0&&(n+=kr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=kr;n<i;)e.d.push(+t.slice(n,n+=kr));t=t.slice(n),n=kr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Fr&&(e.e>Nd||e.e<-Nd))throw Error(l5+r)}else e.s=0,e.e=0,e.d=[0];return e}function Er(e,t,r){var n,i,a,o,s,l,c,u,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=kr,i=t,c=f[u=0];else{if(u=Math.ceil((n+1)/kr),a=f.length,u>=a)return e;for(c=a=f[u],o=1;a>=10;a/=10)o++;n%=kr,i=n-kr+o}if(r!==void 0&&(a=js(10,o-i-1),s=c/a%10|0,l=t<0||f[u+1]!==void 0||c%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?c/js(10,o-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=on(e),f.length=1,t=t-a-1,f[0]=js(10,(kr-t%kr)%kr),e.e=Xc(-t/kr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=js(10,kr-n),f[u]=i>0?(c/js(10,o-i)%js(10,i)|0)*a:0),l)for(;;)if(u==0){(f[0]+=a)==yn&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=yn)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Fr&&(e.e>Nd||e.e<-Nd))throw Error(l5+on(e));return e}function bj(e,t){var r,n,i,a,o,s,l,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fr?Er(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),i=Math.max(Math.ceil(h/kr),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){u=l[i]<f[i];break}o=0}for(u&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=yn-1;--l[a],l[i]+=yn}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Fr?Er(t,h):t):new d(0)}function Js(e,t,r){var n,i=on(e),a=Fa(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Yo(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Yo(-i-1)+a,r&&(n=r-o)>0&&(a+=Yo(n))):i>=o?(a+=Yo(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Yo(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Yo(n))),e.s<0?"-"+a:a}function KA(e,t){if(e.length>t)return e.length=t,!0}function wj(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Gs+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return YA(o,a.toString())}else if(typeof a!="string")throw Error(Gs+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,OY.test(a))YA(o,a);else throw Error(Gs+a)}if(i.prototype=ht,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=wj,i.config=i.set=jY,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function jY(e){if(!e||typeof e!="object")throw Error(Ji+"Object expected");var t,r,n,i=["precision",1,Kc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Xc(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Gs+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Gs+r+": "+n);return this}var c5=wj(PY);Ci=new c5(1);const wr=c5;function CY(e){return FY(e)||IY(e)||LY(e)||kY()}function kY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
375
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LY(e,t){if(e){if(typeof e=="string")return Xy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xy(e,t)}}function IY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function FY(e){if(Array.isArray(e))return Xy(e)}function Xy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var MY=function(t){return t},_j={},Sj=function(t){return t===_j},XA=function(t){return function r(){return arguments.length===0||arguments.length===1&&Sj(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},DY=function e(t,r){return t===1?r:XA(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==_j}).length;return o>=t?r.apply(void 0,i):e(t-o,XA(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=i.map(function(f){return Sj(f)?l.shift():f});return r.apply(void 0,CY(u).concat(l))}))})},Rp=function(t){return DY(t.length,t)},Jy=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},RY=Rp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),BY=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return MY;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},Zy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Aj=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function $Y(e){var t;return e===0?t=1:t=Math.floor(new wr(e).abs().log(10).toNumber())+1,t}function qY(e,t,r){for(var n=new wr(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var UY=Rp(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),zY=Rp(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),WY=Rp(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Bp={rangeStep:qY,getDigitCount:$Y,interpolateNumber:UY,uninterpolateNumber:zY,uninterpolateTruncation:WY};function Qy(e){return VY(e)||GY(e)||Tj(e)||HY()}function HY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
376
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function VY(e){if(Array.isArray(e))return e2(e)}function kf(e,t){return XY(e)||KY(e,t)||Tj(e,t)||YY()}function YY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
377
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tj(e,t){if(e){if(typeof e=="string")return e2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e2(e,t)}}function e2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KY(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function XY(e){if(Array.isArray(e))return e}function Ej(e){var t=kf(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Nj(e,t,r){if(e.lte(0))return new wr(0);var n=Bp.getDigitCount(e.toNumber()),i=new wr(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new wr(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new wr(Math.ceil(l))}function JY(e,t,r){var n=1,i=new wr(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new wr(10).pow(Bp.getDigitCount(e)-1),i=new wr(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new wr(Math.floor(e)))}else e===0?i=new wr(Math.floor((t-1)/2)):r||(i=new wr(Math.floor(e)));var o=Math.floor((t-1)/2),s=BY(RY(function(l){return i.add(new wr(l-o).mul(n)).toNumber()}),Jy);return s(0,t)}function Pj(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new wr(0),tickMin:new wr(0),tickMax:new wr(0)};var a=Nj(new wr(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new wr(0):(o=new wr(e).add(t).div(2),o=o.sub(new wr(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new wr(t).sub(o).div(a).toNumber()),c=s+l+1;return c>r?Pj(e,t,r,n,i+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new wr(s).mul(a)),tickMax:o.add(new wr(l).mul(a))})}function ZY(e){var t=kf(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=Ej([r,n]),l=kf(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(Qy(Jy(0,i-1).map(function(){return 1/0}))):[].concat(Qy(Jy(0,i-1).map(function(){return-1/0})),[u]);return r>n?Zy(f):f}if(c===u)return JY(c,i,a);var d=Pj(c,u,o,a),h=d.step,g=d.tickMin,p=d.tickMax,v=Bp.rangeStep(g,p.add(new wr(.1).mul(h)),h);return r>n?Zy(v):v}function QY(e,t){var r=kf(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Ej([n,i]),s=kf(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var u=Math.max(t,2),f=Nj(new wr(c).sub(l).div(u-1),a,0),d=[].concat(Qy(Bp.rangeStep(new wr(l),new wr(c).sub(new wr(.99).mul(f)),f)),[c]);return n>i?Zy(d):d}var eK=Aj(ZY),tK=Aj(QY),rK=process.env.NODE_ENV==="production",wx="Invariant failed";function hi(e,t){if(rK)throw new Error(wx);var r=typeof t=="function"?t():t,n=r?"".concat(wx,": ").concat(r):wx;throw new Error(n)}var nK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd.apply(this,arguments)}function iK(e,t){return lK(e)||sK(e,t)||oK(e,t)||aK()}function aK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
378
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oK(e,t){if(e){if(typeof e=="string")return JA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JA(e,t)}}function JA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function lK(e){if(Array.isArray(e))return e}function cK(e,t){if(e==null)return{};var r=uK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cj(n.key),n)}}function dK(e,t,r){return t&&hK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pK(e,t,r){return t=Od(t),mK(e,Oj()?Reflect.construct(t,r||[],Od(e).constructor):t.apply(e,r))}function mK(e,t){if(t&&(bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vK(e)}function vK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oj=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Od(e)}function gK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t2(e,t)}function t2(e,t){return t2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},t2(e,t)}function jj(e,t,r){return t=Cj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cj(e){var t=xK(e,"string");return bc(t)=="symbol"?t:t+""}function xK(e,t){if(bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gh=(function(e){function t(){return fK(this,t),pK(this,t,arguments)}return gK(t,e),dK(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,c=n.dataPointFormatter,u=n.xAxis,f=n.yAxis,d=cK(n,nK),h=yt(d,!1);this.props.direction==="x"&&u.type!=="number"&&(process.env.NODE_ENV!=="production"?hi(!1,'ErrorBar requires Axis type property to be "number".'):hi());var g=l.map(function(p){var v=c(p,s),y=v.x,b=v.y,_=v.value,S=v.errorVal;if(!S)return null;var A=[],P,T;if(Array.isArray(S)){var k=iK(S,2);P=k[0],T=k[1]}else P=T=S;if(a==="vertical"){var L=u.scale,B=b+i,j=B+o,N=B-o,D=L(_-P),U=L(_+T);A.push({x1:U,y1:j,x2:U,y2:N}),A.push({x1:D,y1:B,x2:U,y2:B}),A.push({x1:D,y1:j,x2:D,y2:N})}else if(a==="horizontal"){var W=f.scale,R=y+i,z=R-o,Q=R+o,Z=W(_-P),ee=W(_+T);A.push({x1:z,y1:ee,x2:Q,y2:ee}),A.push({x1:R,y1:Z,x2:R,y2:ee}),A.push({x1:z,y1:Z,x2:Q,y2:Z})}return G.createElement(lr,Pd({className:"recharts-errorBar",key:"bar-".concat(A.map(function(ce){return"".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))},h),A.map(function(ce){return G.createElement("line",Pd({},ce,{key:"line-".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))}))});return G.createElement(lr,{className:"recharts-errorBars"},g)}}])})(G.Component);jj(gh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});jj(gh,"displayName","ErrorBar");function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function ZA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(r),!0).forEach(function(n){yK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yK(e,t,r){return t=bK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bK(e){var t=wK(e,"string");return Lf(t)=="symbol"?t:t+""}function wK(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kj=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ni(r,Ws);if(!o)return null;var s=Ws.defaultProps,l=s!==void 0?Ts(Ts({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(u,f){var d=f.item,h=f.props,g=h.sectors||h.data||[];return u.concat(g.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(u){var f=u.item,d=f.type.defaultProps,h=d!==void 0?Ts(Ts({},d),f.props):{},g=h.dataKey,p=h.name,v=h.legendType,y=h.hide;return{inactive:y,dataKey:g,type:l.iconType||v||"square",color:u5(f),value:p||g,payload:h}}),Ts(Ts(Ts({},l),Ws.getWithHeight(o,i)),{},{payload:c,item:o})};function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function QA(e){return TK(e)||AK(e)||SK(e)||_K()}function _K(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
379
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SK(e,t){if(e){if(typeof e=="string")return r2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r2(e,t)}}function AK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TK(e){if(Array.isArray(e))return r2(e)}function r2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eT(Object(r),!0).forEach(function(n){lc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lc(e,t,r){return t=EK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EK(e){var t=NK(e,"string");return If(t)=="symbol"?t:t+""}function NK(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ii(e,t,r){return Ut(e)||Ut(t)?r:pn(t)?Ki(e,t,r):Ct(t)?t(e):r}function af(e,t,r,n){var i=TY(e,function(s){return ii(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[Dp(a),Mp(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!Ut(s)}):i;return o.map(function(s){return pn(s)||s instanceof Date?s:""})}var PK=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<s;c++){var u=c>0?i[c-1].coordinate:i[s-1].coordinate,f=i[c].coordinate,d=c>=s-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(ya(f-u)!==ya(d-f)){var g=[];if(ya(d-f)===ya(l[1]-l[0])){h=d;var p=f+l[1]-l[0];g[0]=Math.min(p,(p+u)/2),g[1]=Math.max(p,(p+u)/2)}else{h=u;var v=d+l[1]-l[0];g[0]=Math.min(f,(v+f)/2),g[1]=Math.max(f,(v+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=i[c].index;break}}else{var b=Math.min(u,d),_=Math.max(u,d);if(t>(b+f)/2&&t<=(_+f)/2){o=i[c].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},u5=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},OK=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,c=s.length;l<c;l++)for(var u=a[s[l]].stackGroups,f=Object.keys(u),d=0,h=f.length;d<h;d++){var g=u[f[d]],p=g.items,v=g.cateAxisId,y=p.filter(function(T){return mo(T.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,_=b!==void 0?zr(zr({},b),y[0].props):y[0].props,S=_.barSize,A=_[v];o[A]||(o[A]=[]);var P=Ut(S)?r:S;o[A].push({item:y[0],stackList:y.slice(1),barSize:Ut(P)?void 0:ba(P,n,0)})}}return o},jK=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=ba(r,i,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,g=o.reduce(function(S,A){return S+A.barSize||0},0);g+=(l-1)*c,g>=i&&(g-=(l-1)*c,c=0),g>=i&&h>0&&(d=!0,h*=.9,g=l*h);var p=(i-g)/2>>0,v={offset:p-c,size:0};u=o.reduce(function(S,A){var P={item:A.item,position:{offset:v.offset+v.size+c,size:d?h:A.barSize}},T=[].concat(QA(S),[P]);return v=T[T.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(k){T.push({item:k,position:v})}),T},f)}else{var y=ba(n,i,0,!0);i-2*y-(l-1)*c<=0&&(c=0);var b=(i-2*y-(l-1)*c)/l;b>1&&(b>>=0);var _=s===+s?Math.min(b,s):b;u=o.reduce(function(S,A,P){var T=[].concat(QA(S),[{item:A.item,position:{offset:y+(b+c)*P+(b-_)/2,size:_}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(k){T.push({item:k,position:T[T.length-1].position})}),T},f)}return u},CK=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=kj({children:a,legendWidth:l});if(c){var u=i||{},f=u.width,d=u.height,h=c.align,g=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&h!=="center"&&nt(t[h]))return zr(zr({},t),{},lc({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&g!=="middle"&&nt(t[g]))return zr(zr({},t),{},lc({},g,t[g]+(d||0)))}return t},kK=function(t,r,n){return Ut(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Lj=function(t,r,n,i,a){var o=r.props.children,s=Xi(o,gh).filter(function(c){return kK(i,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var f=ii(u,n);if(Ut(f))return c;var d=Array.isArray(f)?[Dp(f),Mp(f)]:[f,f],h=l.reduce(function(g,p){var v=ii(u,p,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),b=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,g[0]),Math.max(b,g[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},LK=function(t,r,n,i,a){var o=r.map(function(s){return Lj(t,s,n,a,i)}).filter(function(s){return!Ut(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},Ij=function(t,r,n,i,a){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&Lj(t,l,c,i)||af(t,c,n,a)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var u=0,f=c.length;u<f;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},Fj=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Mj=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},uo=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?ya(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+c,value:f,offset:c}});return u.filter(function(f){return!ch(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+c,value:f,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+c,value:f,offset:c}}):i.domain().map(function(f,d){return{coordinate:i(f)+c,value:a?a[f]:f,index:d,offset:c}})},_x=new WeakMap,k0=function(t,r){if(typeof r!="function")return t;_x.has(t)||_x.set(t,new WeakMap);var n=_x.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Dj=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Ef(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Sd(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:nf(),realScaleType:"point"}:a==="category"?{scale:Ef(),realScaleType:"band"}:{scale:Sd(),realScaleType:"linear"};if(Xs(i)){var l="scale".concat(_p(i));return{scale:(BA[l]||nf)(),realScaleType:BA[l]?l:"point"}}return Ct(i)?{scale:i}:{scale:nf(),realScaleType:"point"}},tT=1e-4,Rj=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-tT,o=Math.max(i[0],i[1])+tT,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},IK=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},FK=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},MK=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=ch(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},DK=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=ch(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},RK={sign:MK,expand:TU,none:fc,silhouette:EU,wiggle:NU,positive:DK},BK=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=RK[n],o=AU().keys(i).value(function(s,l){return+ii(s,l,0)}).order(ky).offset(a);return o(t)},$K=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(f,d){var h,g=(h=d.type)!==null&&h!==void 0&&h.defaultProps?zr(zr({},d.type.defaultProps),d.props):d.props,p=g.stackId,v=g.hide;if(v)return f;var y=g[n],b=f[y]||{hasStack:!1,stackGroups:{}};if(pn(p)){var _=b.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};_.items.push(d),b.hasStack=!0,b.stackGroups[p]=_}else b.stackGroups[uh("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return zr(zr({},f),{},lc({},y,b))},l),u={};return Object.keys(c).reduce(function(f,d){var h=c[d];if(h.hasStack){var g={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var y=h.stackGroups[v];return zr(zr({},p),{},lc({},v,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:BK(t,y.items,a)}))},g)}return zr(zr({},f),{},lc({},d,h))},u)},Bj=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=eK(c,a,s);return t.domain([Dp(u),Mp(u)]),{niceTicks:u}}if(a&&i==="number"){var f=t.domain(),d=tK(f,a,s);return{niceTicks:d}}return null};function rT(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ut(i[t.dataKey])){var s=id(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=ii(i,Ut(o)?t.dataKey:o);return Ut(l)?null:t.scale(l)}var nT=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=ii(o,r.dataKey,r.domain[s]);return Ut(l)?null:r.scale(l)-a/2+i},qK=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},UK=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(pn(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},zK=function(t){return t.reduce(function(r,n){return[Dp(n.concat([r[0]]).filter(nt)),Mp(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},$j=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(c,u){var f=zK(u.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},iT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,n2=function(t,r,n){if(Ct(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(iT.test(t[0])){var a=+iT.exec(t[0])[1];i[0]=r[0]-a}else Ct(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(aT.test(t[1])){var o=+aT.exec(t[1])[1];i[1]=r[1]+o}else Ct(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},jd=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Rb(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var c=a[s],u=a[s-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},oT=function(t,r,n){return!t||!t.length||vh(t,Ki(n,"type.defaultProps.domain"))?r:t},qj=function(t,r){var n=t.type.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,c=n.chartType,u=n.hide;return zr(zr({},yt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:u5(t),value:ii(r,i),type:l,payload:r,chartType:c,hide:u})};function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function sT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ao(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sT(Object(r),!0).forEach(function(n){Uj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uj(e,t,r){return t=WK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WK(e){var t=HK(e,"string");return Ff(t)=="symbol"?t:t+""}function HK(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GK(e,t){return XK(e)||KK(e,t)||YK(e,t)||VK()}function VK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
380
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YK(e,t){if(e){if(typeof e=="string")return lT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lT(e,t)}}function lT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function XK(e){if(Array.isArray(e))return e}var Cd=Math.PI/180,JK=function(t){return t*180/Math.PI},_r=function(t,r,n,i){return{x:t+Math.cos(-Cd*i)*n,y:r+Math.sin(-Cd*i)*n}},ZK=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},QK=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=ba(t.cx,o,o/2),f=ba(t.cy,s,s/2),d=ZK(o,s,n),h=ba(t.innerRadius,d,0),g=ba(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(v,y){var b=r[y],_=b.domain,S=b.reversed,A;if(Ut(b.range))i==="angleAxis"?A=[l,c]:i==="radiusAxis"&&(A=[h,g]),S&&(A=[A[1],A[0]]);else{A=b.range;var P=A,T=GK(P,2);l=T[0],c=T[1]}var k=Dj(b,a),L=k.realScaleType,B=k.scale;B.domain(_).range(A),Rj(B);var j=Bj(B,ao(ao({},b),{},{realScaleType:L})),N=ao(ao(ao({},b),j),{},{range:A,radius:g,realScaleType:L,scale:B,cx:u,cy:f,innerRadius:h,outerRadius:g,startAngle:l,endAngle:c});return ao(ao({},v),{},Uj({},y,N))},{})},eX=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},tX=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=eX({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,c=Math.acos(l);return i>o&&(c=2*Math.PI-c),{radius:s,angle:JK(c),angleInRadian:c}},rX=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},nX=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},cT=function(t,r){var n=t.x,i=t.y,a=tX({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var u=rX(r),f=u.startAngle,d=u.endAngle,h=s,g;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;g=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;g=h>=d&&h<=f}return g?ao(ao({},r),{},{radius:o,angle:nX(h,r)}):null},zj=function(t){return!G.isValidElement(t)&&!Ct(t)&&typeof t!="boolean"?t.className:""};function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}var iX=["offset"];function aX(e){return cX(e)||lX(e)||sX(e)||oX()}function oX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
381
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sX(e,t){if(e){if(typeof e=="string")return i2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i2(e,t)}}function lX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cX(e){if(Array.isArray(e))return i2(e)}function i2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uX(e,t){if(e==null)return{};var r=fX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uT(Object(r),!0).forEach(function(n){hX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hX(e,t,r){return t=dX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dX(e){var t=pX(e,"string");return Mf(t)=="symbol"?t:t+""}function pX(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Df.apply(this,arguments)}var mX=function(t){var r=t.value,n=t.formatter,i=Ut(t.children)?r:t.children;return Ct(n)?n(i):i},vX=function(t,r){var n=ya(r-t),i=Math.min(Math.abs(r-t),360);return n*i},gX=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,u=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,g=l.endAngle,p=l.clockWise,v=(f+d)/2,y=vX(h,g),b=y>=0?1:-1,_,S;i==="insideStart"?(_=h+b*o,S=p):i==="insideEnd"?(_=g-b*o,S=!p):i==="end"&&(_=g+b*o,S=p),S=y<=0?S:!S;var A=_r(c,u,v,_),P=_r(c,u,v,_+(S?1:-1)*359),T="M".concat(A.x,",").concat(A.y,`
382
+ A`).concat(v,",").concat(v,",0,1,").concat(S?0:1,`,
383
+ `).concat(P.x,",").concat(P.y),k=Ut(t.id)?uh("recharts-radial-line-"):t.id;return G.createElement("text",Df({},n,{dominantBaseline:"central",className:Rt("recharts-radial-bar-label",s)}),G.createElement("defs",null,G.createElement("path",{id:k,d:T})),G.createElement("textPath",{xlinkHref:"#".concat(k)},r))},xX=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,u=a.startAngle,f=a.endAngle,d=(u+f)/2;if(i==="outside"){var h=_r(o,s,c+n,d),g=h.x,p=h.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+c)/2,y=_r(o,s,v,d),b=y.x,_=y.y;return{x:b,y:_,textAnchor:"middle",verticalAnchor:"middle"}},yX=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,c=o.width,u=o.height,f=u>=0?1:-1,d=f*i,h=f>0?"end":"start",g=f>0?"start":"end",p=c>=0?1:-1,v=p*i,y=p>0?"end":"start",b=p>0?"start":"end";if(a==="top"){var _={x:s+c/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return fn(fn({},_),n?{height:Math.max(l-n.y,0),width:c}:{})}if(a==="bottom"){var S={x:s+c/2,y:l+u+d,textAnchor:"middle",verticalAnchor:g};return fn(fn({},S),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{})}if(a==="left"){var A={x:s-v,y:l+u/2,textAnchor:y,verticalAnchor:"middle"};return fn(fn({},A),n?{width:Math.max(A.x-n.x,0),height:u}:{})}if(a==="right"){var P={x:s+c+v,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return fn(fn({},P),n?{width:Math.max(n.x+n.width-P.x,0),height:u}:{})}var T=n?{width:c,height:u}:{};return a==="insideLeft"?fn({x:s+v,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},T):a==="insideRight"?fn({x:s+c-v,y:l+u/2,textAnchor:y,verticalAnchor:"middle"},T):a==="insideTop"?fn({x:s+c/2,y:l+d,textAnchor:"middle",verticalAnchor:g},T):a==="insideBottom"?fn({x:s+c/2,y:l+u-d,textAnchor:"middle",verticalAnchor:h},T):a==="insideTopLeft"?fn({x:s+v,y:l+d,textAnchor:b,verticalAnchor:g},T):a==="insideTopRight"?fn({x:s+c-v,y:l+d,textAnchor:y,verticalAnchor:g},T):a==="insideBottomLeft"?fn({x:s+v,y:l+u-d,textAnchor:b,verticalAnchor:h},T):a==="insideBottomRight"?fn({x:s+c-v,y:l+u-d,textAnchor:y,verticalAnchor:h},T):Gc(a)&&(nt(a.x)||Fs(a.x))&&(nt(a.y)||Fs(a.y))?fn({x:s+ba(a.x,c),y:l+ba(a.y,u),textAnchor:"end",verticalAnchor:"end"},T):fn({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},T)},bX=function(t){return"cx"in t&&nt(t.cx)};function jn(e){var t=e.offset,r=t===void 0?5:t,n=uX(e,iX),i=fn({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,c=i.content,u=i.className,f=u===void 0?"":u,d=i.textBreakAll;if(!a||Ut(s)&&Ut(l)&&!G.isValidElement(c)&&!Ct(c))return null;if(G.isValidElement(c))return G.cloneElement(c,i);var h;if(Ct(c)){if(h=G.createElement(c,i),G.isValidElement(h))return h}else h=mX(i);var g=bX(a),p=yt(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return gX(i,h,p);var v=g?xX(i):yX(i);return G.createElement(vc,Df({className:Rt("recharts-label",f)},p,v,{breakAll:d}),h)}jn.displayName="Label";var Wj=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,v=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(nt(p)&&nt(v)){if(nt(f)&&nt(d))return{x:f,y:d,width:p,height:v};if(nt(h)&&nt(g))return{x:h,y:g,width:p,height:v}}return nt(f)&&nt(d)?{x:f,y:d,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},wX=function(t,r){return t?t===!0?G.createElement(jn,{key:"label-implicit",viewBox:r}):pn(t)?G.createElement(jn,{key:"label-implicit",viewBox:r,value:t}):G.isValidElement(t)?t.type===jn?G.cloneElement(t,{key:"label-implicit",viewBox:r}):G.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):Ct(t)?G.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):Gc(t)?G.createElement(jn,Df({viewBox:r},t,{key:"label-implicit"})):null:null},_X=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Wj(t),o=Xi(i,jn).map(function(l,c){return G.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=wX(t.label,r||a);return[s].concat(aX(o))};jn.parseViewBox=Wj;jn.renderCallByParent=_X;var Sx,fT;function SX(){if(fT)return Sx;fT=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Sx=e,Sx}var AX=SX();const Hj=ur(AX);function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}var TX=["valueAccessor"],EX=["data","dataKey","clockWise","id","textBreakAll"];function NX(e){return CX(e)||jX(e)||OX(e)||PX()}function PX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
384
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OX(e,t){if(e){if(typeof e=="string")return a2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a2(e,t)}}function jX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CX(e){if(Array.isArray(e))return a2(e)}function a2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(this,arguments)}function hT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hT(Object(r),!0).forEach(function(n){kX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kX(e,t,r){return t=LX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LX(e){var t=IX(e,"string");return Rf(t)=="symbol"?t:t+""}function IX(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pT(e,t){if(e==null)return{};var r=FX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var MX=function(t){return Array.isArray(t.value)?Hj(t.value):t.value};function xo(e){var t=e.valueAccessor,r=t===void 0?MX:t,n=pT(e,TX),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=pT(n,EX);return!i||!i.length?null:G.createElement(lr,{className:"recharts-label-list"},i.map(function(u,f){var d=Ut(a)?r(u,f):ii(u&&u.payload,a),h=Ut(s)?{}:{id:"".concat(s,"-").concat(f)};return G.createElement(jn,kd({},yt(u,!0),c,h,{parentViewBox:u.parentViewBox,value:d,textBreakAll:l,viewBox:jn.parseViewBox(Ut(o)?u:dT(dT({},u),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}xo.displayName="LabelList";function DX(e,t){return e?e===!0?G.createElement(xo,{key:"labelList-implicit",data:t}):G.isValidElement(e)||Ct(e)?G.createElement(xo,{key:"labelList-implicit",data:t,content:e}):Gc(e)?G.createElement(xo,kd({data:t},e,{key:"labelList-implicit"})):null:null}function RX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Xi(n,xo).map(function(o,s){return G.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=DX(e.label,t);return[a].concat(NX(i))}xo.renderCallByParent=RX;function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o2.apply(this,arguments)}function mT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(r),!0).forEach(function(n){BX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BX(e,t,r){return t=$X(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $X(e){var t=qX(e,"string");return Bf(t)=="symbol"?t:t+""}function qX(e,t){if(Bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UX=function(t,r){var n=ya(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},L0=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+i,f=Math.asin(l/u)/Cd,d=c?a:a+o*f,h=_r(r,n,u,d),g=_r(r,n,i,d),p=c?a-o*f:a,v=_r(r,n,u*Math.cos(f*Cd),p);return{center:h,circleTangency:g,lineTangency:v,theta:f}},Gj=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=UX(o,s),c=o+l,u=_r(r,n,a,o),f=_r(r,n,a,c),d="M ".concat(u.x,",").concat(u.y,`
385
+ A `).concat(a,",").concat(a,`,0,
386
+ `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`,
387
+ `).concat(f.x,",").concat(f.y,`
388
+ `);if(i>0){var h=_r(r,n,i,o),g=_r(r,n,i,c);d+="L ".concat(g.x,",").concat(g.y,`
389
+ A `).concat(i,",").concat(i,`,0,
390
+ `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`,
391
+ `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},zX=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,f=ya(u-c),d=L0({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,g=d.lineTangency,p=d.theta,v=L0({cx:r,cy:n,radius:a,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=v.circleTangency,b=v.lineTangency,_=v.theta,S=l?Math.abs(c-u):Math.abs(c-u)-p-_;if(S<0)return s?"M ".concat(g.x,",").concat(g.y,`
392
+ a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
393
+ a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
394
+ `):Gj({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u});var A="M ".concat(g.x,",").concat(g.y,`
395
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
396
+ A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
397
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
398
+ `);if(i>0){var P=L0({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),T=P.circleTangency,k=P.lineTangency,L=P.theta,B=L0({cx:r,cy:n,radius:i,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=B.circleTangency,N=B.lineTangency,D=B.theta,U=l?Math.abs(c-u):Math.abs(c-u)-L-D;if(U<0&&o===0)return"".concat(A,"L").concat(r,",").concat(n,"Z");A+="L".concat(N.x,",").concat(N.y,`
399
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,`
400
+ A`).concat(i,",").concat(i,",0,").concat(+(U>180),",").concat(+(f>0),",").concat(T.x,",").concat(T.y,`
401
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else A+="L".concat(r,",").concat(n,"Z");return A},WX={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Vj=function(t){var r=vT(vT({},WX),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,f=r.endAngle,d=r.className;if(o<a||u===f)return null;var h=Rt("recharts-sector",d),g=o-a,p=ba(s,g,0,!0),v;return p>0&&Math.abs(u-f)<360?v=zX({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):v=Gj({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:f}),G.createElement("path",o2({},yt(r,!0),{className:h,d:v,role:"img"}))};function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s2.apply(this,arguments)}function gT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gT(Object(r),!0).forEach(function(n){HX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HX(e,t,r){return t=GX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GX(e){var t=VX(e,"string");return $f(t)=="symbol"?t:t+""}function VX(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yT={curveBasisClosed:dU,curveBasisOpen:pU,curveBasis:hU,curveBumpX:Zq,curveBumpY:Qq,curveLinearClosed:mU,curveLinear:Ap,curveMonotoneX:vU,curveMonotoneY:gU,curveNatural:xU,curveStep:yU,curveStepAfter:wU,curveStepBefore:bU},I0=function(t){return t.x===+t.x&&t.y===+t.y},Du=function(t){return t.x},Ru=function(t){return t.y},YX=function(t,r){if(Ct(t))return t;var n="curve".concat(_p(t));return(n==="curveMonotone"||n==="curveBump")&&r?yT["".concat(n).concat(r==="vertical"?"Y":"X")]:yT[n]||Ap},KX=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=YX(n,s),f=c?a.filter(function(p){return I0(p)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(p){return I0(p)}):o,g=f.map(function(p,v){return xT(xT({},p),{},{base:h[v]})});return s==="vertical"?d=T0().y(Ru).x1(Du).x0(function(p){return p.base.x}):d=T0().x(Du).y1(Ru).y0(function(p){return p.base.y}),d.defined(I0).curve(u),d(g)}return s==="vertical"&&nt(o)?d=T0().y(Ru).x1(Du).x0(o):nt(o)?d=T0().x(Du).y1(Ru).y0(o):d=HO().x(Du).y(Ru),d.defined(I0).curve(u),d(f)},l2=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?KX(t):i;return is.createElement("path",s2({},yt(t,!1),ad(t),{className:Rt("recharts-curve",r),d:o,ref:a}))},F0={exports:{}},M0={exports:{}},ir={};/** @license React v16.13.1
402
+ * react-is.production.min.js
403
+ *
404
+ * Copyright (c) Facebook, Inc. and its affiliates.
405
+ *
406
+ * This source code is licensed under the MIT license found in the
407
+ * LICENSE file in the root directory of this source tree.
408
+ */var bT;function XX(){if(bT)return ir;bT=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function _(A){if(typeof A=="object"&&A!==null){var P=A.$$typeof;switch(P){case t:switch(A=A.type,A){case l:case c:case n:case a:case i:case f:return A;default:switch(A=A&&A.$$typeof,A){case s:case u:case g:case h:case o:return A;default:return P}}case r:return P}}}function S(A){return _(A)===c}return ir.AsyncMode=l,ir.ConcurrentMode=c,ir.ContextConsumer=s,ir.ContextProvider=o,ir.Element=t,ir.ForwardRef=u,ir.Fragment=n,ir.Lazy=g,ir.Memo=h,ir.Portal=r,ir.Profiler=a,ir.StrictMode=i,ir.Suspense=f,ir.isAsyncMode=function(A){return S(A)||_(A)===l},ir.isConcurrentMode=S,ir.isContextConsumer=function(A){return _(A)===s},ir.isContextProvider=function(A){return _(A)===o},ir.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},ir.isForwardRef=function(A){return _(A)===u},ir.isFragment=function(A){return _(A)===n},ir.isLazy=function(A){return _(A)===g},ir.isMemo=function(A){return _(A)===h},ir.isPortal=function(A){return _(A)===r},ir.isProfiler=function(A){return _(A)===a},ir.isStrictMode=function(A){return _(A)===i},ir.isSuspense=function(A){return _(A)===f},ir.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===c||A===a||A===i||A===f||A===d||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===h||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===y||A.$$typeof===b||A.$$typeof===p)},ir.typeOf=_,ir}var ar={};/** @license React v16.13.1
409
+ * react-is.development.js
410
+ *
411
+ * Copyright (c) Facebook, Inc. and its affiliates.
412
+ *
413
+ * This source code is licensed under the MIT license found in the
414
+ * LICENSE file in the root directory of this source tree.
415
+ */var wT;function JX(){return wT||(wT=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function _(se){return typeof se=="string"||typeof se=="function"||se===n||se===c||se===a||se===i||se===f||se===d||typeof se=="object"&&se!==null&&(se.$$typeof===g||se.$$typeof===h||se.$$typeof===o||se.$$typeof===s||se.$$typeof===u||se.$$typeof===v||se.$$typeof===y||se.$$typeof===b||se.$$typeof===p)}function S(se){if(typeof se=="object"&&se!==null){var Fe=se.$$typeof;switch(Fe){case t:var Ae=se.type;switch(Ae){case l:case c:case n:case a:case i:case f:return Ae;default:var Ee=Ae&&Ae.$$typeof;switch(Ee){case s:case u:case g:case h:case o:return Ee;default:return Fe}}case r:return Fe}}}var A=l,P=c,T=s,k=o,L=t,B=u,j=n,N=g,D=h,U=r,W=a,R=i,z=f,Q=!1;function Z(se){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ee(se)||S(se)===l}function ee(se){return S(se)===c}function ce(se){return S(se)===s}function O(se){return S(se)===o}function I(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function M(se){return S(se)===u}function q(se){return S(se)===n}function Y(se){return S(se)===g}function fe(se){return S(se)===h}function ae(se){return S(se)===r}function ne(se){return S(se)===a}function ve(se){return S(se)===i}function we(se){return S(se)===f}ar.AsyncMode=A,ar.ConcurrentMode=P,ar.ContextConsumer=T,ar.ContextProvider=k,ar.Element=L,ar.ForwardRef=B,ar.Fragment=j,ar.Lazy=N,ar.Memo=D,ar.Portal=U,ar.Profiler=W,ar.StrictMode=R,ar.Suspense=z,ar.isAsyncMode=Z,ar.isConcurrentMode=ee,ar.isContextConsumer=ce,ar.isContextProvider=O,ar.isElement=I,ar.isForwardRef=M,ar.isFragment=q,ar.isLazy=Y,ar.isMemo=fe,ar.isPortal=ae,ar.isProfiler=ne,ar.isStrictMode=ve,ar.isSuspense=we,ar.isValidElementType=_,ar.typeOf=S})()),ar}var _T;function Yj(){return _T||(_T=1,process.env.NODE_ENV==="production"?M0.exports=XX():M0.exports=JX()),M0.exports}/*
416
+ object-assign
417
+ (c) Sindre Sorhus
418
+ @license MIT
419
+ */var Ax,ST;function ZX(){if(ST)return Ax;ST=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ax=i()?Object.assign:function(a,o){for(var s,l=n(a),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},Ax}var Tx,AT;function f5(){if(AT)return Tx;AT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tx=e,Tx}var Ex,TT;function Kj(){return TT||(TT=1,Ex=Function.call.bind(Object.prototype.hasOwnProperty)),Ex}var Nx,ET;function QX(){if(ET)return Nx;ET=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=f5(),r={},n=Kj();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(n(a,u)){var f;try{if(typeof a[u]!="function"){var d=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[u](o,u,l,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Nx=i,Nx}var Px,NT;function eJ(){if(NT)return Px;NT=1;var e=Yj(),t=ZX(),r=f5(),n=Kj(),i=QX(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Px=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(ee){var ce=ee&&(c&&ee[c]||ee[u]);if(typeof ce=="function")return ce}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:_,element:S(),elementType:A(),instanceOf:P,node:B(),objectOf:k,oneOf:T,oneOfType:L,shape:N,exact:D};function g(ee,ce){return ee===ce?ee!==0||1/ee===1/ce:ee!==ee&&ce!==ce}function p(ee,ce){this.message=ee,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}p.prototype=Error.prototype;function v(ee){if(process.env.NODE_ENV!=="production")var ce={},O=0;function I(q,Y,fe,ae,ne,ve,we){if(ae=ae||d,ve=ve||fe,we!==r){if(l){var se=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=ae+":"+fe;!ce[Fe]&&O<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ve+"` prop on `"+ae+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ce[Fe]=!0,O++)}}return Y[fe]==null?q?Y[fe]===null?new p("The "+ne+" `"+ve+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new p("The "+ne+" `"+ve+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:ee(Y,fe,ae,ne,ve)}var M=I.bind(null,!1);return M.isRequired=I.bind(null,!0),M}function y(ee){function ce(O,I,M,q,Y,fe){var ae=O[I],ne=R(ae);if(ne!==ee){var ve=z(ae);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ve+"` supplied to `"+M+"`, expected ")+("`"+ee+"`."),{expectedType:ee})}return null}return v(ce)}function b(){return v(o)}function _(ee){function ce(O,I,M,q,Y){if(typeof ee!="function")return new p("Property `"+Y+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var fe=O[I];if(!Array.isArray(fe)){var ae=R(fe);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ae+"` supplied to `"+M+"`, expected an array."))}for(var ne=0;ne<fe.length;ne++){var ve=ee(fe,ne,M,q,Y+"["+ne+"]",r);if(ve instanceof Error)return ve}return null}return v(ce)}function S(){function ee(ce,O,I,M,q){var Y=ce[O];if(!s(Y)){var fe=R(Y);return new p("Invalid "+M+" `"+q+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(ee)}function A(){function ee(ce,O,I,M,q){var Y=ce[O];if(!e.isValidElementType(Y)){var fe=R(Y);return new p("Invalid "+M+" `"+q+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(ee)}function P(ee){function ce(O,I,M,q,Y){if(!(O[I]instanceof ee)){var fe=ee.name||d,ae=Z(O[I]);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ae+"` supplied to `"+M+"`, expected ")+("instance of `"+fe+"`."))}return null}return v(ce)}function T(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function ce(O,I,M,q,Y){for(var fe=O[I],ae=0;ae<ee.length;ae++)if(g(fe,ee[ae]))return null;var ne=JSON.stringify(ee,function(we,se){var Fe=z(se);return Fe==="symbol"?String(se):se});return new p("Invalid "+q+" `"+Y+"` of value `"+String(fe)+"` "+("supplied to `"+M+"`, expected one of "+ne+"."))}return v(ce)}function k(ee){function ce(O,I,M,q,Y){if(typeof ee!="function")return new p("Property `"+Y+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var fe=O[I],ae=R(fe);if(ae!=="object")return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ae+"` supplied to `"+M+"`, expected an object."));for(var ne in fe)if(n(fe,ne)){var ve=ee(fe,ne,M,q,Y+"."+ne,r);if(ve instanceof Error)return ve}return null}return v(ce)}function L(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var ce=0;ce<ee.length;ce++){var O=ee[ce];if(typeof O!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(O)+" at index "+ce+"."),o}function I(M,q,Y,fe,ae){for(var ne=[],ve=0;ve<ee.length;ve++){var we=ee[ve],se=we(M,q,Y,fe,ae,r);if(se==null)return null;se.data&&n(se.data,"expectedType")&&ne.push(se.data.expectedType)}var Fe=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+fe+" `"+ae+"` supplied to "+("`"+Y+"`"+Fe+"."))}return v(I)}function B(){function ee(ce,O,I,M,q){return U(ce[O])?null:new p("Invalid "+M+" `"+q+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(ee)}function j(ee,ce,O,I,M){return new p((ee||"React class")+": "+ce+" type `"+O+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function N(ee){function ce(O,I,M,q,Y){var fe=O[I],ae=R(fe);if(ae!=="object")return new p("Invalid "+q+" `"+Y+"` of type `"+ae+"` "+("supplied to `"+M+"`, expected `object`."));for(var ne in ee){var ve=ee[ne];if(typeof ve!="function")return j(M,q,Y,ne,z(ve));var we=ve(fe,ne,M,q,Y+"."+ne,r);if(we)return we}return null}return v(ce)}function D(ee){function ce(O,I,M,q,Y){var fe=O[I],ae=R(fe);if(ae!=="object")return new p("Invalid "+q+" `"+Y+"` of type `"+ae+"` "+("supplied to `"+M+"`, expected `object`."));var ne=t({},O[I],ee);for(var ve in ne){var we=ee[ve];if(n(ee,ve)&&typeof we!="function")return j(M,q,Y,ve,z(we));if(!we)return new p("Invalid "+q+" `"+Y+"` key `"+ve+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(O[I],null," ")+`
420
+ Valid keys: `+JSON.stringify(Object.keys(ee),null," "));var se=we(fe,ve,M,q,Y+"."+ve,r);if(se)return se}return null}return v(ce)}function U(ee){switch(typeof ee){case"number":case"string":case"undefined":return!0;case"boolean":return!ee;case"object":if(Array.isArray(ee))return ee.every(U);if(ee===null||s(ee))return!0;var ce=f(ee);if(ce){var O=ce.call(ee),I;if(ce!==ee.entries){for(;!(I=O.next()).done;)if(!U(I.value))return!1}else for(;!(I=O.next()).done;){var M=I.value;if(M&&!U(M[1]))return!1}}else return!1;return!0;default:return!1}}function W(ee,ce){return ee==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function R(ee){var ce=typeof ee;return Array.isArray(ee)?"array":ee instanceof RegExp?"object":W(ce,ee)?"symbol":ce}function z(ee){if(typeof ee>"u"||ee===null)return""+ee;var ce=R(ee);if(ce==="object"){if(ee instanceof Date)return"date";if(ee instanceof RegExp)return"regexp"}return ce}function Q(ee){var ce=z(ee);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function Z(ee){return!ee.constructor||!ee.constructor.name?d:ee.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Px}var Ox,PT;function tJ(){if(PT)return Ox;PT=1;var e=f5();function t(){}function r(){}return r.resetWarningCache=t,Ox=function(){function n(o,s,l,c,u,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Ox}var OT;function rJ(){if(OT)return F0.exports;if(OT=1,process.env.NODE_ENV!=="production"){var e=Yj(),t=!0;F0.exports=eJ()(e.isElement,t)}else F0.exports=tJ()();return F0.exports}var nJ=rJ();const or=ur(nJ),{getOwnPropertyNames:iJ,getOwnPropertySymbols:aJ}=Object,{hasOwnProperty:oJ}=Object.prototype;function jx(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function D0(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function sJ(e){return e!=null?e[Symbol.toStringTag]:void 0}function jT(e){return iJ(e).concat(aJ(e))}const lJ=Object.hasOwn||((e,t)=>oJ.call(e,t));function cl(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const cJ="__v",uJ="__o",fJ="_owner",{getOwnPropertyDescriptor:CT,keys:kT}=Object;function hJ(e,t){return e.byteLength===t.byteLength&&Ld(new Uint8Array(e),new Uint8Array(t))}function dJ(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function pJ(e,t){return e.byteLength===t.byteLength&&Ld(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function mJ(e,t){return cl(e.getTime(),t.getTime())}function vJ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function gJ(e,t){return e===t}function LT(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let u=!1,f=0;for(;(s=c.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],l,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1;l++}return!0}const xJ=cl;function yJ(e,t,r){const n=kT(e);let i=n.length;if(kT(t).length!==i)return!1;for(;i-- >0;)if(!Xj(e,t,r,n[i]))return!1;return!0}function Bu(e,t,r){const n=jT(e);let i=n.length;if(jT(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!Xj(e,t,r,a)||(o=CT(e,a),s=CT(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function bJ(e,t){return cl(e.valueOf(),t.valueOf())}function wJ(e,t){return e.source===t.source&&e.flags===t.flags}function IT(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let c=!1,u=0;for(;(s=l.next())&&!s.done;){if(!i[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function Ld(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function _J(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Xj(e,t,r,n){return(n===fJ||n===uJ||n===cJ)&&(e.$$typeof||t.$$typeof)?!0:lJ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const SJ="[object ArrayBuffer]",AJ="[object Arguments]",TJ="[object Boolean]",EJ="[object DataView]",NJ="[object Date]",PJ="[object Error]",OJ="[object Map]",jJ="[object Number]",CJ="[object Object]",kJ="[object RegExp]",LJ="[object Set]",IJ="[object String]",FJ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},MJ="[object URL]",DJ=Object.prototype.toString;function RJ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:g}){return function(v,y,b){if(v===y)return!0;if(v==null||y==null)return!1;const _=typeof v;if(_!==typeof y)return!1;if(_!=="object")return _==="number"?s(v,y,b):_==="function"?a(v,y,b):!1;const S=v.constructor;if(S!==y.constructor)return!1;if(S===Object)return l(v,y,b);if(Array.isArray(v))return t(v,y,b);if(S===Date)return n(v,y,b);if(S===RegExp)return u(v,y,b);if(S===Map)return o(v,y,b);if(S===Set)return f(v,y,b);const A=DJ.call(v);if(A===NJ)return n(v,y,b);if(A===kJ)return u(v,y,b);if(A===OJ)return o(v,y,b);if(A===LJ)return f(v,y,b);if(A===CJ)return typeof v.then!="function"&&typeof y.then!="function"&&l(v,y,b);if(A===MJ)return h(v,y,b);if(A===PJ)return i(v,y,b);if(A===AJ)return l(v,y,b);if(FJ[A])return d(v,y,b);if(A===SJ)return e(v,y,b);if(A===EJ)return r(v,y,b);if(A===TJ||A===jJ||A===IJ)return c(v,y,b);if(g){let P=g[A];if(!P){const T=sJ(v);T&&(P=g[T])}if(P)return P(v,y,b)}return!1}}function BJ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:hJ,areArraysEqual:r?Bu:dJ,areDataViewsEqual:pJ,areDatesEqual:mJ,areErrorsEqual:vJ,areFunctionsEqual:gJ,areMapsEqual:r?jx(LT,Bu):LT,areNumbersEqual:xJ,areObjectsEqual:r?Bu:yJ,arePrimitiveWrappersEqual:bJ,areRegExpsEqual:wJ,areSetsEqual:r?jx(IT,Bu):IT,areTypedArraysEqual:r?jx(Ld,Bu):Ld,areUrlsEqual:_J,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=D0(n.areArraysEqual),a=D0(n.areMapsEqual),o=D0(n.areObjectsEqual),s=D0(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function $J(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function qJ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:c=e?new WeakMap:void 0,meta:u}=r();return t(s,l,{cache:c,equals:n,meta:u,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const UJ=ps();ps({strict:!0});ps({circular:!0});ps({circular:!0,strict:!0});ps({createInternalComparator:()=>cl});ps({strict:!0,createInternalComparator:()=>cl});ps({circular:!0,createInternalComparator:()=>cl});ps({circular:!0,createInternalComparator:()=>cl,strict:!0});function ps(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=BJ(e),o=RJ(a),s=r?r(o):$J(o);return qJ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function zJ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function FT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):zJ(i)};requestAnimationFrame(n)}function c2(e){"@babel/helpers - typeof";return c2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c2(e)}function WJ(e){return YJ(e)||VJ(e)||GJ(e)||HJ()}function HJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
421
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GJ(e,t){if(e){if(typeof e=="string")return MT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MT(e,t)}}function MT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YJ(e){if(Array.isArray(e))return e}function KJ(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=WJ(o),l=s[0],c=s.slice(1);if(typeof l=="number"){FT(i.bind(null,c),l);return}i(l),FT(i.bind(null,c));return}c2(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function DT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DT(Object(r),!0).forEach(function(n){Jj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jj(e,t,r){return t=XJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XJ(e){var t=JJ(e,"string");return qf(t)==="symbol"?t:String(t)}function JJ(e,t){if(qf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZJ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},QJ=function(t){return t},eZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},of=function(t,r){return Object.keys(r).reduce(function(n,i){return RT(RT({},n),{},Jj({},i,t(i,r[i])))},{})},BT=function(t,r,n){return t.map(function(i){return"".concat(eZ(i)," ").concat(r,"ms ").concat(n)}).join(",")},tZ=process.env.NODE_ENV!=="production",Id=function(t,r,n,i,a,o,s,l){if(tZ&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,a,o,s,l],u=0;console.warn(r.replace(/%s/g,function(){return c[u++]}))}};function rZ(e,t){return aZ(e)||iZ(e,t)||Zj(e,t)||nZ()}function nZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
422
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function aZ(e){if(Array.isArray(e))return e}function oZ(e){return cZ(e)||lZ(e)||Zj(e)||sZ()}function sZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
423
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zj(e,t){if(e){if(typeof e=="string")return u2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u2(e,t)}}function lZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cZ(e){if(Array.isArray(e))return u2(e)}function u2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Fd=1e-4,Qj=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},e8=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},$T=function(t,r){return function(n){var i=Qj(t,r);return e8(i,n)}},uZ=function(t,r){return function(n){var i=Qj(t,r),a=[].concat(oZ(i.map(function(o,s){return o*s}).slice(1)),[0]);return e8(a,n)}},qT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),u=rZ(c,4);i=u[0],a=u[1],o=u[2],s=u[3]}else Id(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Id([i,o,a,s].every(function(v){return typeof v=="number"&&v>=0&&v<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=$T(i,o),d=$T(a,s),h=uZ(i,o),g=function(y){return y>1?1:y<0?0:y},p=function(y){for(var b=y>1?1:y,_=b,S=0;S<8;++S){var A=f(_)-b,P=h(_);if(Math.abs(A-b)<Fd||P<Fd)return d(_);_=g(_-A/P)}return d(_)};return p.isStepper=!1,p},fZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(u,f,d){var h=-(u-f)*n,g=d*a,p=d+(h-g)*s/1e3,v=d*s/1e3+u;return Math.abs(v-f)<Fd&&Math.abs(p)<Fd?[f,0]:[v,p]};return l.isStepper=!0,l.dt=s,l},hZ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return qT(i);case"spring":return fZ();default:if(i.split("(")[0]==="cubic-bezier")return qT(i);Id(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Id(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function UT(e){return mZ(e)||pZ(e)||t8(e)||dZ()}function dZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
424
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mZ(e){if(Array.isArray(e))return h2(e)}function zT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zT(Object(r),!0).forEach(function(n){f2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f2(e,t,r){return t=vZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vZ(e){var t=gZ(e,"string");return Uf(t)==="symbol"?t:String(t)}function gZ(e,t){if(Uf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xZ(e,t){return wZ(e)||bZ(e,t)||t8(e,t)||yZ()}function yZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
425
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t8(e,t){if(e){if(typeof e=="string")return h2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h2(e,t)}}function h2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function wZ(e){if(Array.isArray(e))return e}var Md=function(t,r,n){return t+(r-t)*n},d2=function(t){var r=t.from,n=t.to;return r!==n},_Z=function e(t,r,n){var i=of(function(a,o){if(d2(o)){var s=t(o.from,o.to,o.velocity),l=xZ(s,2),c=l[0],u=l[1];return Pn(Pn({},o),{},{from:c,velocity:u})}return o},r);return n<1?of(function(a,o){return d2(o)?Pn(Pn({},o),{},{velocity:Md(o.velocity,i[a].velocity,n),from:Md(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const SZ=(function(e,t,r,n,i){var a=ZJ(e,t),o=a.reduce(function(v,y){return Pn(Pn({},v),{},f2({},y,[e[y],t[y]]))},{}),s=a.reduce(function(v,y){return Pn(Pn({},v),{},f2({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,u,f=function(){return null},d=function(){return of(function(y,b){return b.from},s)},h=function(){return!Object.values(s).filter(d2).length},g=function(y){c||(c=y);var b=y-c,_=b/r.dt;s=_Z(r,s,_),i(Pn(Pn(Pn({},e),t),d())),c=y,h()||(l=requestAnimationFrame(f))},p=function(y){u||(u=y);var b=(y-u)/n,_=of(function(A,P){return Md.apply(void 0,UT(P).concat([r(b)]))},o);if(i(Pn(Pn(Pn({},e),t),_)),b<1)l=requestAnimationFrame(f);else{var S=of(function(A,P){return Md.apply(void 0,UT(P).concat([r(1)]))},o);i(Pn(Pn(Pn({},e),t),S))}};return f=r.isStepper?g:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}var AZ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function TZ(e,t){if(e==null)return{};var r=EZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Cx(e){return jZ(e)||OZ(e)||PZ(e)||NZ()}function NZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
426
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PZ(e,t){if(e){if(typeof e=="string")return p2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p2(e,t)}}function OZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jZ(e){if(Array.isArray(e))return p2(e)}function p2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(r),!0).forEach(function(n){Wu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wu(e,t,r){return t=r8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r8(n.key),n)}}function LZ(e,t,r){return t&&kZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r8(e){var t=IZ(e,"string");return wc(t)==="symbol"?t:String(t)}function IZ(e,t){if(wc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m2(e,t)}function m2(e,t){return m2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},m2(e,t)}function MZ(e){var t=DZ();return function(){var n=Dd(e),i;if(t){var a=Dd(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return v2(this,i)}}function v2(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g2(e)}function g2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}var qa=(function(e){FZ(r,e);var t=MZ(r);function r(n,i){var a;CZ(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,c=o.from,u=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(g2(a)),a.changeStyle=a.changeStyle.bind(g2(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:u}),v2(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof d=="function")return a.state={style:c},v2(a);a.state={style:l?Wu({},l,c):c}}else a.state={style:{}};return a}return LZ(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,c=a.shouldReAnimate,u=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:l?Wu({},l,u):u};this.state&&d&&(l&&d[l]!==u||!l&&d!==u)&&this.setState(h);return}if(!(UJ(i.to,u)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||c?f:i.to;if(this.state&&d){var v={style:l?Wu({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(v)}this.runAnimation(fa(fa({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,c=i.easing,u=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=SZ(o,s,hZ(c),l,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,u,g,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,c=o[0],u=c.style,f=c.duration,d=f===void 0?0:f,h=function(p,v,y){if(y===0)return p;var b=v.duration,_=v.easing,S=_===void 0?"ease":_,A=v.style,P=v.properties,T=v.onAnimationEnd,k=y>0?o[y-1]:v,L=P||Object.keys(A);if(typeof S=="function"||S==="spring")return[].concat(Cx(p),[a.runJSAnimation.bind(a,{from:k.style,to:A,duration:b,easing:S}),b]);var B=BT(L,b,S),j=fa(fa(fa({},k.style),A),{},{transition:B});return[].concat(Cx(p),[j,b,T]).filter(QJ)};return this.manager.start([l].concat(Cx(o.reduce(h,[u,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=KJ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,c=i.easing,u=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Wu({},s,l):l,v=BT(Object.keys(p),o,c);g.start([u,a,fa(fa({},p),{},{transition:v}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=TZ(i,AZ),c=G.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!s||c===0||o<=0)return a;var f=function(h){var g=h.props,p=g.style,v=p===void 0?{}:p,y=g.className,b=G.cloneElement(h,fa(fa({},l),{},{style:fa(fa({},v),u),className:y}));return b};return c===1?f(G.Children.only(a)):G.createElement("div",null,G.Children.map(a,function(d){return f(d)}))}}]),r})(G.PureComponent);qa.displayName="Animate";qa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};qa.propTypes={from:or.oneOfType([or.object,or.string]),to:or.oneOfType([or.object,or.string]),attributeName:or.string,duration:or.number,begin:or.number,easing:or.oneOfType([or.string,or.func]),steps:or.arrayOf(or.shape({duration:or.number.isRequired,style:or.object.isRequired,easing:or.oneOfType([or.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),or.func]),properties:or.arrayOf("string"),onAnimationEnd:or.func})),children:or.oneOfType([or.node,or.func]),isActive:or.bool,canBegin:or.bool,onAnimationEnd:or.func,shouldReAnimate:or.bool,onAnimationStart:or.func,onAnimationReStart:or.func};function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rd.apply(this,arguments)}function RZ(e,t){return UZ(e)||qZ(e,t)||$Z(e,t)||BZ()}function BZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
427
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Z(e,t){if(e){if(typeof e=="string")return HT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HT(e,t)}}function HT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function UZ(e){if(Array.isArray(e))return e}function GT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(r),!0).forEach(function(n){zZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zZ(e,t,r){return t=WZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WZ(e){var t=HZ(e,"string");return zf(t)=="symbol"?t:t+""}function HZ(e,t){if(zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YT=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,u;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];u="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(r)),u+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
428
+ `).concat(t+n,",").concat(r+s*f[1])),u+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
429
+ `).concat(t+n-l*f[2],",").concat(r+i)),u+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
430
+ `).concat(t,",").concat(r+i-s*f[3])),u+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);u="M ".concat(t,",").concat(r+s*g,`
431
+ A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+l*g,",").concat(r,`
432
+ L `).concat(t+n-l*g,",").concat(r,`
433
+ A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*g,`
434
+ L `).concat(t+n,",").concat(r+i-s*g,`
435
+ A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+n-l*g,",").concat(r+i,`
436
+ L `).concat(t+l*g,",").concat(r+i,`
437
+ A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t,",").concat(r+i-s*g," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},GZ=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(a,a+s),u=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=c&&n<=u&&i>=f&&i<=d}return!1},VZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},h5=function(t){var r=VT(VT({},VZ),t),n=G.useRef(),i=G.useState(-1),a=RZ(i,2),o=a[0],s=a[1];G.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,c=r.y,u=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var _=Rt("recharts-rectangle",h);return b?G.createElement(qa,{canBegin:o>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:p,animationEasing:g,isActive:b},function(S){var A=S.width,P=S.height,T=S.x,k=S.y;return G.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:g},G.createElement("path",Rd({},yt(r,!0),{className:_,d:YT(T,k,A,P,d),ref:n})))}):G.createElement("path",Rd({},yt(r,!0),{className:_,d:YT(l,c,u,f,d)}))},YZ=["points","className","baseLinePoints","connectNulls"];function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jl.apply(this,arguments)}function KZ(e,t){if(e==null)return{};var r=XZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function KT(e){return eQ(e)||QZ(e)||ZZ(e)||JZ()}function JZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
438
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZZ(e,t){if(e){if(typeof e=="string")return x2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x2(e,t)}}function QZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eQ(e){if(Array.isArray(e))return x2(e)}function x2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var XT=function(t){return t&&t.x===+t.x&&t.y===+t.y},tQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){XT(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),XT(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},sf=function(t,r){var n=tQ(t);r&&(n=[n.reduce(function(a,o){return[].concat(KT(a),KT(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},rQ=function(t,r,n){var i=sf(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(sf(r.reverse(),n).slice(1))},n8=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=KZ(t,YZ);if(!r||!r.length)return null;var s=Rt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",c=rQ(r,i,a);return G.createElement("g",{className:s},G.createElement("path",Jl({},yt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?G.createElement("path",Jl({},yt(o,!0),{fill:"none",d:sf(r,a)})):null,l?G.createElement("path",Jl({},yt(o,!0),{fill:"none",d:sf(i,a)})):null)}var u=sf(r,a);return G.createElement("path",Jl({},yt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:s,d:u}))};function y2(){return y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y2.apply(this,arguments)}var xh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Rt("recharts-dot",a);return r===+r&&n===+n&&i===+i?is.createElement("circle",y2({},yt(t,!1),ad(t),{className:o,cx:r,cy:n,r:i})):null};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}var nQ=["x","y","top","left","width","height","className"];function b2(){return b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b2.apply(this,arguments)}function JT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JT(Object(r),!0).forEach(function(n){aQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aQ(e,t,r){return t=oQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oQ(e){var t=sQ(e,"string");return Wf(t)=="symbol"?t:t+""}function sQ(e,t){if(Wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lQ(e,t){if(e==null)return{};var r=cQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var uQ=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},fQ=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,u=t.width,f=u===void 0?0:u,d=t.height,h=d===void 0?0:d,g=t.className,p=lQ(t,nQ),v=iQ({x:n,y:a,top:s,left:c,width:f,height:h},p);return!nt(n)||!nt(a)||!nt(f)||!nt(h)||!nt(s)||!nt(c)?null:G.createElement("path",b2({},yt(v,!0),{className:Rt("recharts-cross",g),d:uQ(n,a,f,h,s,c)}))},hQ=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function dQ(e,t){if(e==null)return{};var r=pQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ao.apply(this,arguments)}function ZT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(r),!0).forEach(function(n){mQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mQ(e,t,r){return t=vQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vQ(e){var t=gQ(e,"string");return Hf(t)=="symbol"?t:t+""}function gQ(e,t){if(Hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xQ=function(t,r,n,i){var a="";return i.forEach(function(o,s){var l=_r(r,n,t,o);s?a+="L ".concat(l.x,",").concat(l.y):a+="M ".concat(l.x,",").concat(l.y)}),a+="Z",a},yQ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var l=Gf({stroke:"#ccc"},yt(t,!1));return G.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(c){var u=_r(r,n,i,c),f=_r(r,n,a,c);return G.createElement("line",Ao({},l,{key:"line-".concat(c),x1:u.x,y1:u.y,x2:f.x,y2:f.y}))}))},bQ=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Gf(Gf({stroke:"#ccc"},yt(t,!1)),{},{fill:"none"});return G.createElement("circle",Ao({},o,{className:Rt("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},wQ=function(t){var r=t.radius,n=t.index,i=Gf(Gf({stroke:"#ccc"},yt(t,!1)),{},{fill:"none"});return G.createElement("path",Ao({},i,{className:Rt("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:xQ(r,t.cx,t.cy,t.polarAngles)}))},_Q=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:G.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?G.createElement(bQ,Ao({key:o},t,{radius:i,index:a})):G.createElement(wQ,Ao({key:o},t,{radius:i,index:a}))}))},i8=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,l=t.outerRadius,c=l===void 0?0:l,u=t.gridType,f=u===void 0?"polygon":u,d=t.radialLines,h=d===void 0?!0:d,g=dQ(t,hQ);return c<=0?null:G.createElement("g",{className:"recharts-polar-grid"},G.createElement(yQ,Ao({cx:n,cy:a,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},g)),G.createElement(_Q,Ao({cx:n,cy:a,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},g)))};i8.displayName="PolarGrid";var kx,QT;function SQ(){if(QT)return kx;QT=1;var e=Fp(),t=mj(),r=Wa();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return kx=n,kx}var AQ=SQ();const TQ=ur(AQ);var Lx,eE;function EQ(){if(eE)return Lx;eE=1;var e=Fp(),t=Wa(),r=vj();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Lx=n,Lx}var NQ=EQ();const PQ=ur(NQ);var OQ=["cx","cy","angle","ticks","axisLine"],jQ=["ticks","tick","angle","tickFormatter","stroke"];function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lf.apply(this,arguments)}function tE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tE(Object(r),!0).forEach(function(n){$p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rE(e,t){if(e==null)return{};var r=CQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o8(n.key),n)}}function LQ(e,t,r){return t&&nE(e.prototype,t),r&&nE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IQ(e,t,r){return t=Bd(t),FQ(e,a8()?Reflect.construct(t,r||[],Bd(e).constructor):t.apply(e,r))}function FQ(e,t){if(t&&(_c(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MQ(e)}function MQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a8=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bd(e)}function DQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w2(e,t)}function w2(e,t){return w2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},w2(e,t)}function $p(e,t,r){return t=o8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o8(e){var t=RQ(e,"string");return _c(t)=="symbol"?t:t+""}function RQ(e,t){if(_c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yh=(function(e){function t(){return kQ(this,t),IQ(this,t,arguments)}return DQ(t,e),LQ(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return _r(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=TQ(s,function(u){return u.coordinate||0}),c=PQ(s,function(u){return u.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,c=rE(n,OQ),u=s.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),f=_r(i,a,u[0],o),d=_r(i,a,u[1],o),h=Es(Es(Es({},yt(c,!1)),{},{fill:"none"},yt(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return G.createElement("line",lf({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,c=i.stroke,u=rE(i,jQ),f=this.getTickTextAnchor(),d=yt(u,!1),h=yt(o,!1),g=a.map(function(p,v){var y=n.getTickValueCoord(p),b=Es(Es(Es(Es({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:v},y),{},{payload:p});return G.createElement(lr,lf({className:Rt("recharts-polar-radius-axis-tick",zj(o)),key:"tick-".concat(p.coordinate)},uc(n.props,p,v)),t.renderTickItem(o,b,l?l(p.value,v):p.value))});return G.createElement(lr,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:G.createElement(lr,{className:Rt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),jn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return G.isValidElement(n)?o=G.cloneElement(n,i):Ct(n)?o=n(i):o=G.createElement(vc,lf({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(G.PureComponent);$p(yh,"displayName","PolarRadiusAxis");$p(yh,"axisType","radiusAxis");$p(yh,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ks.apply(this,arguments)}function iE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(r),!0).forEach(function(n){qp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l8(n.key),n)}}function $Q(e,t,r){return t&&aE(e.prototype,t),r&&aE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qQ(e,t,r){return t=$d(t),UQ(e,s8()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function UQ(e,t){if(t&&(Sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zQ(e)}function zQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s8=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(e)}function WQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_2(e,t)}function _2(e,t){return _2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_2(e,t)}function qp(e,t,r){return t=l8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l8(e){var t=HQ(e,"string");return Sc(t)=="symbol"?t:t+""}function HQ(e,t){if(Sc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GQ=Math.PI/180,oE=1e-5,bh=(function(e){function t(){return BQ(this,t),qQ(this,t,arguments)}return WQ(t,e),$Q(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,c=i.tickSize,u=c||8,f=_r(a,o,s,n.coordinate),d=_r(a,o,s+(l==="inner"?-1:1)*u,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*GQ),o;return a>oE?o=i==="outer"?"start":"end":a<-oE?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,c=Ns(Ns({},yt(this.props,!1)),{},{fill:"none"},yt(s,!1));if(l==="circle")return G.createElement(xh,ks({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var u=this.props.ticks,f=u.map(function(d){return _r(i,a,o,d.coordinate)});return G.createElement(n8,ks({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,c=i.stroke,u=yt(this.props,!1),f=yt(o,!1),d=Ns(Ns({},u),{},{fill:"none"},yt(s,!1)),h=a.map(function(g,p){var v=n.getTickLineCoord(g),y=n.getTickTextAnchor(g),b=Ns(Ns(Ns({textAnchor:y},u),{},{stroke:"none",fill:c},f),{},{index:p,payload:g,x:v.x2,y:v.y2});return G.createElement(lr,ks({className:Rt("recharts-polar-angle-axis-tick",zj(o)),key:"tick-".concat(g.coordinate)},uc(n.props,g,p)),s&&G.createElement("line",ks({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,b,l?l(g.value,p):g.value))});return G.createElement(lr,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:G.createElement(lr,{className:Rt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return G.isValidElement(n)?o=G.cloneElement(n,i):Ct(n)?o=n(i):o=G.createElement(vc,ks({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(G.PureComponent);qp(bh,"displayName","PolarAngleAxis");qp(bh,"axisType","angleAxis");qp(bh,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Ix,sE;function VQ(){if(sE)return Ix;sE=1;var e=p6(),t=e(Object.getPrototypeOf,Object);return Ix=t,Ix}var Fx,lE;function YQ(){if(lE)return Fx;lE=1;var e=Eo(),t=VQ(),r=No(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function c(u){if(!r(u)||e(u)!=n)return!1;var f=t(u);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==l}return Fx=c,Fx}var KQ=YQ();const XQ=ur(KQ);var Mx,cE;function JQ(){if(cE)return Mx;cE=1;var e=Eo(),t=No(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Mx=n,Mx}var ZQ=JQ();const QQ=ur(ZQ);function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qd.apply(this,arguments)}function eee(e,t){return iee(e)||nee(e,t)||ree(e,t)||tee()}function tee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
439
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ree(e,t){if(e){if(typeof e=="string")return uE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uE(e,t)}}function uE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function iee(e){if(Array.isArray(e))return e}function fE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fE(Object(r),!0).forEach(function(n){aee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aee(e,t,r){return t=oee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oee(e){var t=see(e,"string");return Vf(t)=="symbol"?t:t+""}function see(e,t){if(Vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dE=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},lee={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cee=function(t){var r=hE(hE({},lee),t),n=G.useRef(),i=G.useState(-1),a=eee(i,2),o=a[0],s=a[1];G.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,c=r.y,u=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var b=Rt("recharts-trapezoid",h);return y?G.createElement(qa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:d,x:l,y:c},duration:p,animationEasing:g,isActive:y},function(_){var S=_.upperWidth,A=_.lowerWidth,P=_.height,T=_.x,k=_.y;return G.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:g},G.createElement("path",qd({},yt(r,!0),{className:b,d:dE(T,k,S,A,P),ref:n})))}):G.createElement("g",null,G.createElement("path",qd({},yt(r,!0),{className:b,d:dE(l,c,u,f,d)})))},uee=["option","shapeType","propTransformer","activeClassName","isActive"];function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function fee(e,t){if(e==null)return{};var r=hee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ud(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pE(Object(r),!0).forEach(function(n){dee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dee(e,t,r){return t=pee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pee(e){var t=mee(e,"string");return Yf(t)=="symbol"?t:t+""}function mee(e,t){if(Yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vee(e,t){return Ud(Ud({},t),e)}function gee(e,t){return e==="symbols"}function mE(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return G.createElement(h5,r);case"trapezoid":return G.createElement(cee,r);case"sector":return G.createElement(Vj,r);case"symbols":if(gee(t))return G.createElement(jb,r);break;default:return null}}function xee(e){return G.isValidElement(e)?e.props:e}function yee(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?vee:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=fee(e,uee),c;if(G.isValidElement(t))c=G.cloneElement(t,Ud(Ud({},l),xee(t)));else if(Ct(t))c=t(l);else if(XQ(t)&&!QQ(t)){var u=i(t,l);c=G.createElement(mE,{shapeType:r,elementProps:u})}else{var f=l;c=G.createElement(mE,{shapeType:r,elementProps:f})}return s?G.createElement(lr,{className:o},c):c}function Up(e,t){return t!=null&&"trapezoids"in e.props}function zp(e,t){return t!=null&&"sectors"in e.props}function Kf(e,t){return t!=null&&"points"in e.props}function bee(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function wee(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function _ee(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function See(e,t){var r;return Up(e,t)?r=bee:zp(e,t)?r=wee:Kf(e,t)&&(r=_ee),r}function Aee(e,t){var r;return Up(e,t)?r="trapezoids":zp(e,t)?r="sectors":Kf(e,t)&&(r="points"),r}function Tee(e,t){if(Up(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(zp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Kf(e,t)?t.payload:{}}function Eee(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=Aee(r,t),a=Tee(r,t),o=n.filter(function(l,c){var u=vh(a,l),f=r.props[i].filter(function(g){var p=See(r,t);return p(g,t)}),d=r.props[i].indexOf(f[f.length-1]),h=c===d;return u&&h}),s=n.indexOf(o[o.length-1]);return s}var Dx,vE;function Nee(){if(vE)return Dx;vE=1;function e(t){return t&&t.length?t[0]:void 0}return Dx=e,Dx}var Rx,gE;function Pee(){return gE||(gE=1,Rx=Nee()),Rx}var Oee=Pee();const jee=ur(Oee);var Cee=["key"];function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function kee(e,t){if(e==null)return{};var r=Lee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zd.apply(this,arguments)}function xE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xE(Object(r),!0).forEach(function(n){so(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u8(n.key),n)}}function Fee(e,t,r){return t&&yE(e.prototype,t),r&&yE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mee(e,t,r){return t=Wd(t),Dee(e,c8()?Reflect.construct(t,r||[],Wd(e).constructor):t.apply(e,r))}function Dee(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ree(e)}function Ree(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c8=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wd(e)}function Bee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S2(e,t)}function S2(e,t){return S2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},S2(e,t)}function so(e,t,r){return t=u8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u8(e){var t=$ee(e,"string");return Ac(t)=="symbol"?t:t+""}function $ee(e,t){if(Ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wh=(function(e){function t(){var r;Iee(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Mee(this,t,[].concat(i)),so(r,"state",{isAnimationFinished:!1}),so(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ct(o)&&o()}),so(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ct(o)&&o()}),so(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),so(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return Bee(t,e),Fee(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=yt(this.props,!1),l=yt(a,!0),c=n.map(function(u,f){var d=Jn(Jn(Jn({key:"dot-".concat(f),r:3},s),l),{},{dataKey:o,cx:u.x,cy:u.y,index:f,payload:u});return t.renderDotItem(a,d)});return G.createElement(lr,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,l=i.baseLinePoints,c=i.connectNulls,u;return G.isValidElement(a)?u=G.cloneElement(a,Jn(Jn({},this.props),{},{points:n})):Ct(a)?u=a(Jn(Jn({},this.props),{},{points:n})):u=G.createElement(n8,zd({},yt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:c})),G.createElement(lr,{className:"recharts-radar-polygon"},u,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,c=i.animationEasing,u=i.animationId,f=this.state.prevPoints;return G.createElement(qa,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,g=f&&f.length/a.length,p=a.map(function(v,y){var b=f&&f[Math.floor(y*g)];if(b){var _=ti(b.x,v.x),S=ti(b.y,v.y);return Jn(Jn({},v),{},{x:_(h),y:S(h)})}var A=ti(v.cx,v.x),P=ti(v.cy,v.y);return Jn(Jn({},v),{},{x:A(h),y:P(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!vh(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var l=this.state.isAnimationFinished,c=Rt("recharts-radar",a);return G.createElement(lr,{className:c},this.renderPolygon(),(!s||l)&&xo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(G.isValidElement(n))a=G.cloneElement(n,i);else if(Ct(n))a=n(i);else{var o=i.key,s=kee(i,Cee);a=G.createElement(xh,zd({},s,{key:o,className:Rt("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(G.PureComponent);so(wh,"displayName","Radar");so(wh,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ol.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});so(wh,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,l=!1,c=[],u=r.type!=="number"?a??0:0;n.forEach(function(d,h){var g=ii(d,r.dataKey,h),p=ii(d,i),v=r.scale(g)+u,y=Array.isArray(p)?Hj(p):p,b=Ut(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(l=!0),c.push(Jn(Jn({},_r(o,s,b,v)),{},{name:g,value:p,cx:o,cy:s,radius:b,angle:v,payload:d}))});var f=[];return l&&c.forEach(function(d){if(Array.isArray(d.value)){var h=jee(d.value),g=Ut(h)?void 0:t.scale(h);f.push(Jn(Jn({},d),{},{radius:g},_r(o,s,g,d.angle)))}else f.push(d)}),{points:c,isRange:l,baseLinePoints:f}});var Bx,bE;function qee(){if(bE)return Bx;bE=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),c=Array(l);l--;)c[o?l:++s]=n,n+=a;return c}return Bx=r,Bx}var $x,wE;function f8(){if(wE)return $x;wE=1;var e=j6(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return $x=n,$x}var qx,_E;function Uee(){if(_E)return qx;_E=1;var e=qee(),t=Pp(),r=f8();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return qx=n,qx}var Ux,SE;function zee(){if(SE)return Ux;SE=1;var e=Uee(),t=e();return Ux=t,Ux}var Wee=zee();const Hd=ur(Wee);function Xf(e){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(e)}function AE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AE(Object(r),!0).forEach(function(n){h8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h8(e,t,r){return t=Hee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hee(e){var t=Gee(e,"string");return Xf(t)=="symbol"?t:t+""}function Gee(e,t){if(Xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vee=["Webkit","Moz","O","ms"],Yee=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Vee.reduce(function(a,o){return TE(TE({},a),{},h8({},o+n,r))},{});return i[t]=r,i};function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gd.apply(this,arguments)}function EE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EE(Object(r),!0).forEach(function(n){Ti(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p8(n.key),n)}}function Xee(e,t,r){return t&&NE(e.prototype,t),r&&NE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jee(e,t,r){return t=Vd(t),Zee(e,d8()?Reflect.construct(t,r||[],Vd(e).constructor):t.apply(e,r))}function Zee(e,t){if(t&&(Tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qee(e)}function Qee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d8=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vd(e)}function ete(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A2(e,t)}function A2(e,t){return A2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},A2(e,t)}function Ti(e,t,r){return t=p8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p8(e){var t=tte(e,"string");return Tc(t)=="symbol"?t:t+""}function tte(e,t){if(Tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rte=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=nf().domain(Hd(0,l)).range([a,a+o-s]),u=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:u}},PE=function(t){return t.changedTouches&&!!t.changedTouches.length},Ec=(function(e){function t(r){var n;return Kee(this,t),n=Jee(this,t,[r]),Ti(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ti(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ti(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Ti(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ti(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ti(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ti(n,"handleSlideDragStart",function(i){var a=PE(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return ete(t,e),Xee(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),g=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:g===u?u:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=ii(a[n],s,n);return Ct(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,c=l.x,u=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,g=l.onChange,p=n.pageX-a;p>0?p=Math.min(p,c+u-f-s,c+u-f-o):p<0&&(p=Math.max(p,c-o,c-s));var v=this.getIndex({startX:o+p,endX:s+p});(v.startIndex!==d||v.endIndex!==h)&&g&&g(v),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=PE(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,c=this.state[o],u=this.props,f=u.x,d=u.width,h=u.travellerWidth,g=u.onChange,p=u.gap,v=u.data,y={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,f+d-h-c):b<0&&(b=Math.max(b,f-c)),y[o]=c+b;var _=this.getIndex(y),S=_.startIndex,A=_.endIndex,P=function(){var k=v.length-1;return o==="startX"&&(s>l?S%p===0:A%p===0)||s<l&&A===k||o==="endX"&&(s>l?A%p===0:S%p===0)||s>l&&A===k};this.setState(Ti(Ti({},o,c+b),"brushMoveStartX",n.pageX),function(){g&&P()&&g(_)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,u=this.state[i],f=s.indexOf(u);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=c||i==="endX"&&h<=l||this.setState(Ti({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,c=n.stroke;return G.createElement("rect",{stroke:c,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,c=n.children,u=n.padding,f=G.Children.only(c);return f?G.cloneElement(f,{x:i,y:a,width:o,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,c=l.y,u=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,g=l.data,p=l.startIndex,v=l.endIndex,y=Math.max(n,this.props.x),b=zx(zx({},yt(this.props,!1)),{},{x:y,y:c,width:u,height:f}),_=h||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return G.createElement(lr,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,u=Math.min(n,i)+c,f=Math.max(Math.abs(i-n)-c,0);return G.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,c=n.stroke,u=this.state,f=u.startX,d=u.endX,h=5,g={pointerEvents:"none",fill:c};return G.createElement(lr,{className:"recharts-brush-texts"},G.createElement(vc,Gd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},g),this.getTextOfTick(i)),G.createElement(vc,Gd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,c=n.width,u=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,g=d.endX,p=d.isTextActive,v=d.isSlideMoving,y=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(l)||!nt(c)||!nt(u)||c<=0||u<=0)return null;var _=Rt("recharts-brush",a),S=G.Children.count(o)===1,A=Yee("userSelect","none");return G.createElement(lr,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(h,g),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(g,"endX"),(p||v||y||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,c=Math.floor(a+s/2)-1;return G.createElement(G.Fragment,null,G.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),G.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),G.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return G.isValidElement(n)?a=G.cloneElement(n,i):Ct(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,c=n.updateId,u=n.startIndex,f=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return zx({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?rte({data:a,width:o,x:s,travellerWidth:l,startIndex:u,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(G.PureComponent);Ti(Ec,"displayName","Brush");Ti(Ec,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Wx,OE;function nte(){if(OE)return Wx;OE=1;var e=Db();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Wx=t,Wx}var Hx,jE;function ite(){if(jE)return Hx;jE=1;var e=s6(),t=Wa(),r=nte(),n=gi(),i=Pp();function a(o,s,l){var c=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),c(o,t(s,3))}return Hx=a,Hx}var ate=ite();const ote=ur(ate);var Ra=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Gx,CE;function ste(){if(CE)return Gx;CE=1;var e=T6();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Gx=t,Gx}var Vx,kE;function lte(){if(kE)return Vx;kE=1;var e=ste(),t=S6(),r=Wa();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,c){e(o,l,a(s,l,c))}),o}return Vx=n,Vx}var cte=lte();const ute=ur(cte);var Yx,LE;function fte(){if(LE)return Yx;LE=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Yx=e,Yx}var Kx,IE;function hte(){if(IE)return Kx;IE=1;var e=Db();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Kx=t,Kx}var Xx,FE;function dte(){if(FE)return Xx;FE=1;var e=fte(),t=hte(),r=Wa(),n=gi(),i=Pp();function a(o,s,l){var c=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),c(o,r(s,3))}return Xx=a,Xx}var pte=dte();const m8=ur(pte);var mte=["x","y"];function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function T2(){return T2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T2.apply(this,arguments)}function ME(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ME(Object(r),!0).forEach(function(n){vte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ME(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vte(e,t,r){return t=gte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gte(e){var t=xte(e,"string");return Nc(t)=="symbol"?t:t+""}function xte(e,t){if(Nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yte(e,t){if(e==null)return{};var r=bte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wte(e,t){var r=e.x,n=e.y,i=yte(e,mte),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return $u($u($u($u($u({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function DE(e){return G.createElement(yee,T2({shapeType:"rectangle",propTransformer:wte,activeClassName:"recharts-active-bar"},e))}var _te=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=nt(n)||xq(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?hi(!1,"minPointSize callback function received a value with type of ".concat(Nc(n),". Currently only numbers or null/undefined are supported.")):hi()),r)}},Ste=["value","background"],v8;function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function Ate(e,t){if(e==null)return{};var r=Tte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yd.apply(this,arguments)}function RE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RE(Object(r),!0).forEach(function(n){es(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ete(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x8(n.key),n)}}function Nte(e,t,r){return t&&BE(e.prototype,t),r&&BE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pte(e,t,r){return t=Kd(t),Ote(e,g8()?Reflect.construct(t,r||[],Kd(e).constructor):t.apply(e,r))}function Ote(e,t){if(t&&(Pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jte(e)}function jte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g8=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}function Cte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E2(e,t)}function E2(e,t){return E2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},E2(e,t)}function es(e,t,r){return t=x8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x8(e){var t=kte(e,"string");return Pc(t)=="symbol"?t:t+""}function kte(e,t){if(Pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ul=(function(e){function t(){var r;Ete(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Pte(this,t,[].concat(i)),es(r,"state",{isAnimationFinished:!1}),es(r,"id",uh("recharts-bar-")),es(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),es(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Cte(t,e),Nte(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,c=a.activeBar,u=yt(this.props,!1);return n&&n.map(function(f,d){var h=d===l,g=h?c:o,p=nn(nn(nn({},u),f),{},{isActive:h,option:g,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return G.createElement(lr,Yd({className:"recharts-bar-rectangle"},uc(i.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),G.createElement(DE,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state.prevData;return G.createElement(qa,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var g=h.t,p=a.map(function(v,y){var b=d&&d[y];if(b){var _=ti(b.x,v.x),S=ti(b.y,v.y),A=ti(b.width,v.width),P=ti(b.height,v.height);return nn(nn({},v),{},{x:_(g),y:S(g),width:A(g),height:P(g)})}if(o==="horizontal"){var T=ti(0,v.height),k=T(g);return nn(nn({},v),{},{y:v.y+v.height-k,height:k})}var L=ti(0,v.width),B=L(g);return nn(nn({},v),{},{width:B})});return G.createElement(lr,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!vh(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=yt(this.props.background,!1);return a.map(function(c,u){c.value;var f=c.background,d=Ate(c,Ste);if(!f)return null;var h=nn(nn(nn(nn(nn({},d),{},{fill:"#eee"},f),l),uc(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return G.createElement(DE,Yd({key:"background-bar-".concat(u),option:n.props.background,isActive:u===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,c=a.layout,u=a.children,f=Xi(u,gh);if(!f)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(v,y){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:ii(v,y)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return G.createElement(lr,g,f.map(function(p){return G.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,c=n.left,u=n.top,f=n.width,d=n.height,h=n.isAnimationActive,g=n.background,p=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=Rt("recharts-bar",o),b=s&&s.allowDataOverflow,_=l&&l.allowDataOverflow,S=b||_,A=Ut(p)?this.id:p;return G.createElement(lr,{className:y},b||_?G.createElement("defs",null,G.createElement("clipPath",{id:"clipPath-".concat(A)},G.createElement("rect",{x:b?c:c-f/2,y:_?u:u-d/2,width:b?f:f*2,height:_?d:d*2}))):null,G.createElement(lr,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(A,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,A),(!h||v)&&xo.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(G.PureComponent);v8=ul;es(ul,"displayName","Bar");es(ul,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ol.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});es(ul,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,h=IK(n,r);if(!h)return null;var g=t.layout,p=r.type.defaultProps,v=p!==void 0?nn(nn({},p),r.props):r.props,y=v.dataKey,b=v.children,_=v.minPointSize,S=g==="horizontal"?o:a,A=c?S.scale.domain():null,P=qK({numericAxis:S}),T=Xi(b,k6),k=f.map(function(L,B){var j,N,D,U,W,R;c?j=FK(c[u+B],A):(j=ii(L,y),Array.isArray(j)||(j=[P,j]));var z=_te(_,v8.defaultProps.minPointSize)(j[1],B);if(g==="horizontal"){var Q,Z=[o.scale(j[0]),o.scale(j[1])],ee=Z[0],ce=Z[1];N=nT({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:L,index:B}),D=(Q=ce??ee)!==null&&Q!==void 0?Q:void 0,U=h.size;var O=ee-ce;if(W=Number.isNaN(O)?0:O,R={x:N,y:o.y,width:U,height:o.height},Math.abs(z)>0&&Math.abs(W)<Math.abs(z)){var I=ya(W||z)*(Math.abs(z)-Math.abs(W));D-=I,W+=I}}else{var M=[a.scale(j[0]),a.scale(j[1])],q=M[0],Y=M[1];if(N=q,D=nT({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:L,index:B}),U=Y-q,W=h.size,R={x:a.x,y:D,width:a.width,height:W},Math.abs(z)>0&&Math.abs(U)<Math.abs(z)){var fe=ya(U||z)*(Math.abs(z)-Math.abs(U));U+=fe}}return nn(nn(nn({},L),{},{x:N,y:D,width:U,height:W,value:c?j:j[1],payload:L,background:R},T&&T[B]&&T[B].props),{},{tooltipPayload:[qj(r,L)],tooltipPosition:{x:N+U/2,y:D+W/2}})});return nn({data:k,layout:g},d)});function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function Lte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y8(n.key),n)}}function Ite(e,t,r){return t&&$E(e.prototype,t),r&&$E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(r),!0).forEach(function(n){Wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wp(e,t,r){return t=y8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y8(e){var t=Fte(e,"string");return Jf(t)=="symbol"?t:t+""}function Fte(e,t){if(Jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b8=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Ni(c,ul);return u.reduce(function(h,g){var p=r[g],v=p.orientation,y=p.domain,b=p.padding,_=b===void 0?{}:b,S=p.mirror,A=p.reversed,P="".concat(v).concat(S?"Mirror":""),T,k,L,B,j;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var N=y[1]-y[0],D=1/0,U=p.categoricalDomain.sort(wq);if(U.forEach(function(M,q){q>0&&(D=Math.min((M||0)-(U[q-1]||0),D))}),Number.isFinite(D)){var W=D/N,R=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(T=W*R/2),p.padding==="no-gap"){var z=ba(t.barCategoryGap,W*R),Q=W*R/2;T=Q-z-(Q-z)/R*z}}}i==="xAxis"?k=[n.left+(_.left||0)+(T||0),n.left+n.width-(_.right||0)-(T||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(T||0),n.top+n.height-(_.bottom||0)-(T||0)]:k=p.range,A&&(k=[k[1],k[0]]);var Z=Dj(p,a,d),ee=Z.scale,ce=Z.realScaleType;ee.domain(y).range(k),Rj(ee);var O=Bj(ee,pa(pa({},p),{},{realScaleType:ce}));i==="xAxis"?(j=v==="top"&&!S||v==="bottom"&&S,L=n.left,B=f[P]-j*p.height):i==="yAxis"&&(j=v==="left"&&!S||v==="right"&&S,L=f[P]-j*p.width,B=n.top);var I=pa(pa(pa({},p),O),{},{realScaleType:ce,x:L,y:B,scale:ee,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return I.bandSize=jd(I,O),!p.hide&&i==="xAxis"?f[P]+=(j?-1:1)*I.height:p.hide||(f[P]+=(j?-1:1)*I.width),pa(pa({},h),{},Wp({},g,I))},{})},w8=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},Mte=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return w8({x:r,y:n},{x:i,y:a})},_8=(function(){function e(t){Lte(this,e),this.scale=t}return Ite(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Wp(_8,"EPS",1e-4);var d5=function(t){var r=Object.keys(t).reduce(function(n,i){return pa(pa({},n),{},Wp({},i,_8.create(t[i])))},{});return pa(pa({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return ute(i,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return m8(i,function(a,o){return r[o].isInRange(a)})}})};function Dte(e){return(e%180+180)%180}var Rte=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Dte(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Jx,UE;function Bte(){if(UE)return Jx;UE=1;var e=Wa(),t=fh(),r=Ep();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(f){return c(l[f],f,l)}}var u=i(a,o,s);return u>-1?l[c?a[u]:u]:void 0}}return Jx=n,Jx}var Zx,zE;function $te(){if(zE)return Zx;zE=1;var e=f8();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Zx=t,Zx}var Qx,WE;function qte(){if(WE)return Qx;WE=1;var e=x6(),t=Wa(),r=$te(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var c=s==null?0:r(s);return c<0&&(c=n(l+c,0)),e(a,t(o,3),c)}return Qx=i,Qx}var ey,HE;function Ute(){if(HE)return ey;HE=1;var e=Bte(),t=qte(),r=e(t);return ey=r,ey}var zte=Ute();const Wte=ur(zte);var Hte=IO();const Gte=ur(Hte);var Vte=Gte(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Xd(e){"@babel/helpers - typeof";return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(e)}var p5=G.createContext(void 0),m5=G.createContext(void 0),S8=G.createContext(void 0),A8=G.createContext({}),T8=G.createContext(void 0),E8=G.createContext(0),N8=G.createContext(0),GE=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,u=Vte(a);return G.createElement(p5.Provider,{value:n},G.createElement(m5.Provider,{value:i},G.createElement(A8.Provider,{value:a},G.createElement(S8.Provider,{value:u},G.createElement(T8.Provider,{value:o},G.createElement(E8.Provider,{value:c},G.createElement(N8.Provider,{value:l},s)))))))},Yte=function(){return G.useContext(T8)};function P8(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var O8=function(t){var r=G.useContext(p5);r==null&&(process.env.NODE_ENV!=="production"?hi(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):hi());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?hi(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Xd(t),"]. ").concat(P8(r))):hi()),n},Kte=function(){var t=G.useContext(p5);return Xo(t)},Xte=function(){var t=G.useContext(m5),r=Wte(t,function(n){return m8(n.domain,Number.isFinite)});return r||Xo(t)},j8=function(t){var r=G.useContext(m5);r==null&&(process.env.NODE_ENV!=="production"?hi(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):hi());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?hi(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Xd(t),"]. ").concat(P8(r))):hi()),n},Jte=function(){var t=G.useContext(S8);return t},Zte=function(){return G.useContext(A8)},v5=function(){return G.useContext(N8)},g5=function(){return G.useContext(E8)};function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function Qte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ere(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k8(n.key),n)}}function tre(e,t,r){return t&&ere(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rre(e,t,r){return t=Jd(t),nre(e,C8()?Reflect.construct(t,r||[],Jd(e).constructor):t.apply(e,r))}function nre(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ire(e)}function ire(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C8=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jd(e)}function are(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},N2(e,t)}function VE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VE(Object(r),!0).forEach(function(n){x5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x5(e,t,r){return t=k8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k8(e){var t=ore(e,"string");return Oc(t)=="symbol"?t:t+""}function ore(e,t){if(Oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sre(e,t){return fre(e)||ure(e,t)||cre(e,t)||lre()}function lre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
440
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cre(e,t){if(e){if(typeof e=="string")return KE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KE(e,t)}}function KE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ure(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function fre(e){if(Array.isArray(e))return e}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P2.apply(this,arguments)}var hre=function(t,r){var n;return G.isValidElement(t)?n=G.cloneElement(t,r):Ct(t)?n=t(r):n=G.createElement("line",P2({},r,{className:"recharts-reference-line-line"})),n},dre=function(t,r,n,i,a,o,s,l,c){var u=a.x,f=a.y,d=a.width,h=a.height;if(n){var g=c.y,p=t.y.apply(g,{position:o});if(Ra(c,"discard")&&!t.y.isInRange(p))return null;var v=[{x:u+d,y:p},{x:u,y:p}];return l==="left"?v.reverse():v}if(r){var y=c.x,b=t.x.apply(y,{position:o});if(Ra(c,"discard")&&!t.x.isInRange(b))return null;var _=[{x:b,y:f+h},{x:b,y:f}];return s==="top"?_.reverse():_}if(i){var S=c.segment,A=S.map(function(P){return t.apply(P,{position:o})});return Ra(c,"discard")&&ote(A,function(P){return!t.isInRange(P)})?null:A}return null};function pre(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,c=Yte(),u=O8(i),f=j8(a),d=Jte();if(!c||!d)return null;vo(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=d5({x:u.scale,y:f.scale}),g=pn(t),p=pn(r),v=n&&n.length===2,y=dre(h,g,p,v,d,e.position,u.orientation,f.orientation,e);if(!y)return null;var b=sre(y,2),_=b[0],S=_.x,A=_.y,P=b[1],T=P.x,k=P.y,L=Ra(e,"hidden")?"url(#".concat(c,")"):void 0,B=YE(YE({clipPath:L},yt(e,!0)),{},{x1:S,y1:A,x2:T,y2:k});return G.createElement(lr,{className:Rt("recharts-reference-line",s)},hre(o,B),jn.renderCallByParent(e,Mte({x1:S,y1:A,x2:T,y2:k})))}var y5=(function(e){function t(){return Qte(this,t),rre(this,t,arguments)}return are(t,e),tre(t,[{key:"render",value:function(){return G.createElement(pre,this.props)}}])})(G.Component);x5(y5,"displayName","ReferenceLine");x5(y5,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O2.apply(this,arguments)}function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function JE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XE(Object(r),!0).forEach(function(n){Hp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I8(n.key),n)}}function gre(e,t,r){return t&&vre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xre(e,t,r){return t=Zd(t),yre(e,L8()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function yre(e,t){if(t&&(jc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bre(e)}function bre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L8=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(e)}function wre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j2(e,t)}function j2(e,t){return j2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},j2(e,t)}function Hp(e,t,r){return t=I8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I8(e){var t=_re(e,"string");return jc(t)=="symbol"?t:t+""}function _re(e,t){if(jc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sre=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=d5({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Ra(t,"discard")&&!o.isInRange(s)?null:s},Gp=(function(e){function t(){return mre(this,t),xre(this,t,arguments)}return wre(t,e),gre(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,c=pn(i),u=pn(a);if(vo(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var f=Sre(this.props);if(!f)return null;var d=f.x,h=f.y,g=this.props,p=g.shape,v=g.className,y=Ra(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=JE(JE({clipPath:y},yt(this.props,!0)),{},{cx:d,cy:h});return G.createElement(lr,{className:Rt("recharts-reference-dot",v)},t.renderDot(p,b),jn.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(G.Component);Hp(Gp,"displayName","ReferenceDot");Hp(Gp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Hp(Gp,"renderDot",function(e,t){var r;return G.isValidElement(e)?r=G.cloneElement(e,t):Ct(e)?r=e(t):r=G.createElement(xh,O2({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function C2(){return C2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C2.apply(this,arguments)}function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function ZE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZE(Object(r),!0).forEach(function(n){Vp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Are(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M8(n.key),n)}}function Ere(e,t,r){return t&&Tre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nre(e,t,r){return t=Qd(t),Pre(e,F8()?Reflect.construct(t,r||[],Qd(e).constructor):t.apply(e,r))}function Pre(e,t){if(t&&(Cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ore(e)}function Ore(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F8=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qd(e)}function jre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k2(e,t)}function k2(e,t){return k2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k2(e,t)}function Vp(e,t,r){return t=M8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M8(e){var t=Cre(e,"string");return Cc(t)=="symbol"?t:t+""}function Cre(e,t){if(Cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kre=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,c=a.y2,u=a.xAxis,f=a.yAxis;if(!u||!f)return null;var d=d5({x:u.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},g={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return Ra(a,"discard")&&(!d.isInRange(h)||!d.isInRange(g))?null:w8(h,g)},Yp=(function(e){function t(){return Are(this,t),Nre(this,t,arguments)}return jre(t,e),Ere(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,c=n.alwaysShow,u=n.clipPathId;vo(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=pn(i),d=pn(a),h=pn(o),g=pn(s),p=this.props.shape;if(!f&&!d&&!h&&!g&&!p)return null;var v=kre(f,d,h,g,this.props);if(!v&&!p)return null;var y=Ra(this.props,"hidden")?"url(#".concat(u,")"):void 0;return G.createElement(lr,{className:Rt("recharts-reference-area",l)},t.renderRect(p,QE(QE({clipPath:y},yt(this.props,!0)),v)),jn.renderCallByParent(this.props,v))}}])})(G.Component);Vp(Yp,"displayName","ReferenceArea");Vp(Yp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Vp(Yp,"renderRect",function(e,t){var r;return G.isValidElement(e)?r=G.cloneElement(e,t):Ct(e)?r=e(t):r=G.createElement(h5,C2({},t,{className:"recharts-reference-area-rect"})),r});function D8(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Lre(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Rte(n,r)}function Ire(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function ep(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Fre(e,t){return D8(e,t+1)}function Mre(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,u=o,f=function(){var g=n==null?void 0:n[l];if(g===void 0)return{v:D8(n,c)};var p=l,v,y=function(){return v===void 0&&(v=r(g,p)),v},b=g.coordinate,_=l===0||ep(e,b,y,u,s);_||(l=0,u=o,c+=1),_&&(u=b+e*(y()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function eN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eN(Object(r),!0).forEach(function(n){Dre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dre(e,t,r){return t=Rre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rre(e){var t=Bre(e,"string");return Zf(t)=="symbol"?t:t+""}function Bre(e,t){if(Zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $re(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(d){var h=a[d],g,p=function(){return g===void 0&&(g=r(h,d)),g};if(d===o-1){var v=e*(h.coordinate+e*p()/2-l);a[d]=h=Un(Un({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Un(Un({},h),{},{tickCoord:h.coordinate});var y=ep(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),a[d]=Un(Un({},h),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function qre(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var u=n[s-1],f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);o[s-1]=u=Un(Un({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate});var h=ep(e,u.tickCoord,function(){return f},l,c);h&&(c=u.tickCoord-e*(f/2+i),o[s-1]=Un(Un({},u),{},{isShow:!0}))}for(var g=a?s-1:s,p=function(b){var _=o[b],S,A=function(){return S===void 0&&(S=r(_,b)),S};if(b===0){var P=e*(_.coordinate-e*A()/2-l);o[b]=_=Un(Un({},_),{},{tickCoord:P<0?_.coordinate-P*e:_.coordinate})}else o[b]=_=Un(Un({},_),{},{tickCoord:_.coordinate});var T=ep(e,_.tickCoord,A,l,c);T&&(l=_.tickCoord+e*(A()/2+i),o[b]=Un(Un({},_),{},{isShow:!0}))},v=0;v<g;v++)p(v);return o}function b5(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(l)||ol.isSsr)return Fre(i,typeof l=="number"&&nt(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",g=u&&h==="width"?rf(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(_,S){var A=Ct(c)?c(_.value,S):_.value;return h==="width"?Lre(rf(A,{fontSize:t,letterSpacing:r}),g,f):rf(A,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?ya(i[1].coordinate-i[0].coordinate):1,y=Ire(a,v,h);return l==="equidistantPreserveStart"?Mre(v,y,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=qre(v,y,p,i,o,l==="preserveStartEnd"):d=$re(v,y,p,i,o),d.filter(function(b){return b.isShow}))}var Ure=["viewBox"],zre=["viewBox"],Wre=["ticks"];function kc(e){"@babel/helpers - typeof";return kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(e)}function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zl.apply(this,arguments)}function tN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(r),!0).forEach(function(n){w5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ty(e,t){if(e==null)return{};var r=Hre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B8(n.key),n)}}function Vre(e,t,r){return t&&rN(e.prototype,t),r&&rN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yre(e,t,r){return t=tp(t),Kre(e,R8()?Reflect.construct(t,r||[],tp(e).constructor):t.apply(e,r))}function Kre(e,t){if(t&&(kc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xre(e)}function Xre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R8=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tp(e)}function Jre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L2(e,t)}function L2(e,t){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},L2(e,t)}function w5(e,t,r){return t=B8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B8(e){var t=Zre(e,"string");return kc(t)=="symbol"?t:t+""}function Zre(e,t){if(kc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jc=(function(e){function t(r){var n;return Gre(this,t),n=Yre(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Jre(t,e),Vre(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ty(n,Ure),s=this.props,l=s.viewBox,c=ty(s,zre);return!oc(a,l)||!oc(o,c)||!oc(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,c=i.orientation,u=i.tickSize,f=i.mirror,d=i.tickMargin,h,g,p,v,y,b,_=f?-1:1,S=n.tickSize||u,A=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=g=n.coordinate,v=o+ +!f*l,p=v-_*S,b=p-_*d,y=A;break;case"left":p=v=n.coordinate,g=a+ +!f*s,h=g-_*S,y=h-_*d,b=A;break;case"right":p=v=n.coordinate,g=a+ +f*s,h=g+_*S,y=h+_*d,b=A;break;default:h=g=n.coordinate,v=o+ +f*l,p=v+_*S,b=p+_*d,y=A;break}return{line:{x1:h,y1:p,x2:g,y2:v},tick:{x:y,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,c=n.mirror,u=n.axisLine,f=un(un(un({},yt(this.props,!1)),yt(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!c||l==="bottom"&&c);f=un(un({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!c||l==="right"&&c);f=un(un({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return G.createElement("line",Zl({},f,{className:Rt("recharts-cartesian-axis-line",Ki(u,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,f=s.tickFormatter,d=s.unit,h=b5(un(un({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=yt(this.props,!1),y=yt(u,!1),b=un(un({},v),{},{fill:"none"},yt(l,!1)),_=h.map(function(S,A){var P=o.getTickLineCoord(S),T=P.line,k=P.tick,L=un(un(un(un({textAnchor:g,verticalAnchor:p},v),{},{stroke:"none",fill:c},y),k),{},{index:A,payload:S,visibleTicksCount:h.length,tickFormatter:f});return G.createElement(lr,Zl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},uc(o.props,S,A)),l&&G.createElement("line",Zl({},b,T,{className:Rt("recharts-cartesian-axis-tick-line",Ki(l,"className"))})),u&&t.renderTickItem(u,L,"".concat(Ct(f)?f(S.value,A):S.value).concat(d||"")))});return G.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,c=i.className,u=i.hide;if(u)return null;var f=this.props,d=f.ticks,h=ty(f,Wre),g=d;return Ct(l)&&(g=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!g||!g.length?null:G.createElement(lr,{className:Rt("recharts-cartesian-axis",c),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Rt(i.className,"recharts-cartesian-axis-tick-value");return G.isValidElement(n)?o=G.cloneElement(n,un(un({},i),{},{className:s})):Ct(n)?o=n(un(un({},i),{},{className:s})):o=G.createElement(vc,Zl({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(G.Component);w5(Jc,"displayName","CartesianAxis");w5(Jc,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Qre=["x1","y1","x2","y2","key"],ene=["offset"];function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}function nN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nN(Object(r),!0).forEach(function(n){tne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tne(e,t,r){return t=rne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rne(e){var t=nne(e,"string");return Zs(t)=="symbol"?t:t+""}function nne(e,t){if(Zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rs.apply(this,arguments)}function iN(e,t){if(e==null)return{};var r=ine(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ine(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ane=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return G.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function $8(e,t){var r;if(G.isValidElement(e))r=G.cloneElement(e,t);else if(Ct(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=iN(t,Qre),c=yt(l,!1);c.offset;var u=iN(c,ene);r=G.createElement("line",Rs({},u,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function one(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var c=zn(zn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return $8(i,c)});return G.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function sne(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var c=zn(zn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return $8(i,c)});return G.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function lne(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var g=!u[h+1],p=g?i+o-d:u[h+1]-d;if(p<=0)return null;var v=h%t.length;return G.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return G.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function cne(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var u=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var g=!u[h+1],p=g?a+s-d:u[h+1]-d;if(p<=0)return null;var v=h%n.length;return G.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return G.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var une=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Mj(b5(zn(zn(zn({},Jc.defaultProps),n),{},{ticks:uo(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},fne=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Mj(b5(zn(zn(zn({},Jc.defaultProps),n),{},{ticks:uo(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ul={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function I2(e){var t,r,n,i,a,o,s=v5(),l=g5(),c=Zte(),u=zn(zn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ul.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ul.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ul.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ul.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ul.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ul.verticalFill,x:nt(e.x)?e.x:c.left,y:nt(e.y)?e.y:c.top,width:nt(e.width)?e.width:c.width,height:nt(e.height)?e.height:c.height}),f=u.x,d=u.y,h=u.width,g=u.height,p=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues,b=Kte(),_=Xte();if(!nt(h)||h<=0||!nt(g)||g<=0||!nt(f)||f!==+f||!nt(d)||d!==+d)return null;var S=u.verticalCoordinatesGenerator||une,A=u.horizontalCoordinatesGenerator||fne,P=u.horizontalPoints,T=u.verticalPoints;if((!P||!P.length)&&Ct(A)){var k=v&&v.length,L=A({yAxis:_?zn(zn({},_),{},{ticks:k?v:_.ticks}):void 0,width:s,height:l,offset:c},k?!0:p);vo(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Zs(L),"]")),Array.isArray(L)&&(P=L)}if((!T||!T.length)&&Ct(S)){var B=y&&y.length,j=S({xAxis:b?zn(zn({},b),{},{ticks:B?y:b.ticks}):void 0,width:s,height:l,offset:c},B?!0:p);vo(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Zs(j),"]")),Array.isArray(j)&&(T=j)}return G.createElement("g",{className:"recharts-cartesian-grid"},G.createElement(ane,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),G.createElement(one,Rs({},u,{offset:c,horizontalPoints:P,xAxis:b,yAxis:_})),G.createElement(sne,Rs({},u,{offset:c,verticalPoints:T,xAxis:b,yAxis:_})),G.createElement(lne,Rs({},u,{horizontalPoints:P})),G.createElement(cne,Rs({},u,{verticalPoints:T})))}I2.displayName="CartesianGrid";var hne=["type","layout","connectNulls","ref"],dne=["key"];function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function aN(e,t){if(e==null)return{};var r=pne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cf.apply(this,arguments)}function oN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oN(Object(r),!0).forEach(function(n){ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zl(e){return xne(e)||gne(e)||vne(e)||mne()}function mne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
441
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vne(e,t){if(e){if(typeof e=="string")return F2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F2(e,t)}}function gne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xne(e){if(Array.isArray(e))return F2(e)}function F2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U8(n.key),n)}}function bne(e,t,r){return t&&sN(e.prototype,t),r&&sN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wne(e,t,r){return t=rp(t),_ne(e,q8()?Reflect.construct(t,r||[],rp(e).constructor):t.apply(e,r))}function _ne(e,t){if(t&&(Lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sne(e)}function Sne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q8=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rp(e)}function Ane(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M2(e,t)}function M2(e,t){return M2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},M2(e,t)}function ma(e,t,r){return t=U8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U8(e){var t=Tne(e,"string");return Lc(t)=="symbol"?t:t+""}function Tne(e,t){if(Lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _h=(function(e){function t(){var r;yne(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=wne(this,t,[].concat(i)),ma(r,"state",{isAnimationFinished:!0,totalLength:0}),ma(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),ma(r,"getStrokeDasharray",function(o,s,l){var c=l.reduce(function(y,b){return y+b});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var u=Math.floor(o/c),f=o%c,d=s-o,h=[],g=0,p=0;g<l.length;p+=l[g],++g)if(p+l[g]>f){h=[].concat(zl(l.slice(0,g)),[f-p]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(zl(t.repeat(l,u)),zl(h),v).map(function(y){return"".concat(y,"px")}).join(", ")}),ma(r,"id",uh("recharts-line-")),ma(r,"pathRef",function(o){r.mainCurve=o}),ma(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ma(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Ane(t,e),bne(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,c=a.layout,u=a.children,f=Xi(u,gh);if(!f)return null;var d=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:ii(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return G.createElement(lr,h,f.map(function(g){return G.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,f=yt(this.props,!1),d=yt(l,!0),h=c.map(function(p,v){var y=Ai(Ai(Ai({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:u,payload:p.payload,points:c});return t.renderDotItem(l,y)}),g={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return G.createElement(lr,cf({className:"recharts-line-dots",key:"dots"},g),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var f=aN(s,hne),d=Ai(Ai(Ai({},yt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:c,connectNulls:u});return G.createElement(l2,cf({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,g=o.animateNewValues,p=o.width,v=o.height,y=this.state,b=y.prevPoints,_=y.totalLength;return G.createElement(qa,{begin:u,duration:f,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var A=S.t;if(b){var P=b.length/s.length,T=s.map(function(N,D){var U=Math.floor(D*P);if(b[U]){var W=b[U],R=ti(W.x,N.x),z=ti(W.y,N.y);return Ai(Ai({},N),{},{x:R(A),y:z(A)})}if(g){var Q=ti(p*2,N.x),Z=ti(v/2,N.y);return Ai(Ai({},N),{},{x:Q(A),y:Z(A)})}return Ai(Ai({},N),{},{x:N.x,y:N.y})});return a.renderCurveStatically(T,n,i)}var k=ti(0,_),L=k(A),B;if(l){var j="".concat(l).split(/[,\s]+/gim).map(function(N){return parseFloat(N)});B=a.getStrokeDasharray(L,_,j)}else B=a.generateSimpleStrokeDasharray(_,L);return a.renderCurveStatically(s,n,i,{strokeDasharray:B})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&o&&o.length&&(!c&&u>0||!vh(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,c=i.xAxis,u=i.yAxis,f=i.top,d=i.left,h=i.width,g=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,b=s.length===1,_=Rt("recharts-line",l),S=c&&c.allowDataOverflow,A=u&&u.allowDataOverflow,P=S||A,T=Ut(v)?this.id:v,k=(n=yt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},L=k.r,B=L===void 0?3:L,j=k.strokeWidth,N=j===void 0?2:j,D=jq(o)?o:{},U=D.clipDot,W=U===void 0?!0:U,R=B*2+N;return G.createElement(lr,{className:_},S||A?G.createElement("defs",null,G.createElement("clipPath",{id:"clipPath-".concat(T)},G.createElement("rect",{x:S?d:d-h/2,y:A?f:f-g/2,width:S?h:h*2,height:A?g:g*2})),!W&&G.createElement("clipPath",{id:"clipPath-dots-".concat(T)},G.createElement("rect",{x:d-R/2,y:f-R/2,width:h+R,height:g+R}))):null,!b&&this.renderCurve(P,T),this.renderErrorBar(P,T),(b||o)&&this.renderDots(P,W,T),(!p||y)&&xo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(zl(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(zl(o),zl(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(G.isValidElement(n))a=G.cloneElement(n,i);else if(Ct(n))a=n(i);else{var o=i.key,s=aN(i,dne),l=Rt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=G.createElement(xh,cf({key:o},s,{className:l}))}return a}}])})(G.PureComponent);ma(_h,"displayName","Line");ma(_h,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ol.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ma(_h,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,f=l.map(function(d,h){var g=ii(d,o);return u==="horizontal"?{x:rT({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:Ut(g)?null:n.scale(g),value:g,payload:d}:{x:Ut(g)?null:r.scale(g),y:rT({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:g,payload:d}});return Ai({points:f,layout:u},c)});function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function Ene(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H8(n.key),n)}}function Pne(e,t,r){return t&&Nne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function One(e,t,r){return t=np(t),jne(e,z8()?Reflect.construct(t,r||[],np(e).constructor):t.apply(e,r))}function jne(e,t){if(t&&(Ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cne(e)}function Cne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z8=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},np(e)}function kne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D2(e,t)}function D2(e,t){return D2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},D2(e,t)}function W8(e,t,r){return t=H8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H8(e){var t=Lne(e,"string");return Ic(t)=="symbol"?t:t+""}function Lne(e,t){if(Ic(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ic(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R2.apply(this,arguments)}function Ine(e){var t=e.xAxisId,r=v5(),n=g5(),i=O8(t);return i==null?null:is.createElement(Jc,R2({},i,{className:Rt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return uo(o,!0)}}))}var Fc=(function(e){function t(){return Ene(this,t),One(this,t,arguments)}return kne(t,e),Pne(t,[{key:"render",value:function(){return is.createElement(Ine,this.props)}}])})(is.Component);W8(Fc,"displayName","XAxis");W8(Fc,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function Fne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y8(n.key),n)}}function Dne(e,t,r){return t&&Mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rne(e,t,r){return t=ip(t),Bne(e,G8()?Reflect.construct(t,r||[],ip(e).constructor):t.apply(e,r))}function Bne(e,t){if(t&&(Mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ne(e)}function $ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G8=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ip(e)}function qne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B2(e,t)}function B2(e,t){return B2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},B2(e,t)}function V8(e,t,r){return t=Y8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y8(e){var t=Une(e,"string");return Mc(t)=="symbol"?t:t+""}function Une(e,t){if(Mc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $2(){return $2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$2.apply(this,arguments)}var zne=function(t){var r=t.yAxisId,n=v5(),i=g5(),a=j8(r);return a==null?null:is.createElement(Jc,$2({},a,{className:Rt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return uo(s,!0)}}))},Dc=(function(e){function t(){return Fne(this,t),Rne(this,t,arguments)}return qne(t,e),Dne(t,[{key:"render",value:function(){return is.createElement(zne,this.props)}}])})(is.Component);V8(Dc,"displayName","YAxis");V8(Dc,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function lN(e){return Vne(e)||Gne(e)||Hne(e)||Wne()}function Wne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
442
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hne(e,t){if(e){if(typeof e=="string")return q2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q2(e,t)}}function Gne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vne(e){if(Array.isArray(e))return q2(e)}function q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var U2=function(t,r,n,i,a){var o=Xi(t,y5),s=Xi(t,Gp),l=[].concat(lN(o),lN(s)),c=Xi(t,Yp),u="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(p,v){if(v.props[u]===n&&Ra(v.props,"extendDomain")&&nt(v.props[f])){var y=v.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),c.length){var h="".concat(f,"1"),g="".concat(f,"2");d=c.reduce(function(p,v){if(v.props[u]===n&&Ra(v.props,"extendDomain")&&nt(v.props[h])&&nt(v.props[g])){var y=v.props[h],b=v.props[g];return[Math.min(p[0],y,b),Math.max(p[1],y,b)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,v){return nt(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},d)),d},ry={exports:{}},cN;function Yne(){return cN||(cN=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),g=r?r+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d<h;d++)g[d]=f[d].fn;return g},s.prototype.listenerCount=function(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,g){var p=r?r+c:c;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,b,_;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,f),!0;case 4:return v.fn.call(v.context,u,f,d),!0;case 5:return v.fn.call(v.context,u,f,d,h),!0;case 6:return v.fn.call(v.context,u,f,d,h,g),!0}for(_=1,b=new Array(y-1);_<y;_++)b[_-1]=arguments[_];v.fn.apply(v.context,b)}else{var S=v.length,A;for(_=0;_<S;_++)switch(v[_].once&&this.removeListener(c,v[_].fn,void 0,!0),y){case 1:v[_].fn.call(v[_].context);break;case 2:v[_].fn.call(v[_].context,u);break;case 3:v[_].fn.call(v[_].context,u,f);break;case 4:v[_].fn.call(v[_].context,u,f,d);break;default:if(!b)for(A=1,b=new Array(y-1);A<y;A++)b[A-1]=arguments[A];v[_].fn.apply(v[_].context,b)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!d||g.once)&&(!f||g.context===f)&&o(this,h);else{for(var p=0,v=[],y=g.length;p<y;p++)(g[p].fn!==u||d&&!g[p].once||f&&g[p].context!==f)&&v.push(g[p]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(ry)),ry.exports}var Kne=Yne();const Xne=ur(Kne);var ny=new Xne,iy="recharts.syncMouseEvents";function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function Jne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K8(n.key),n)}}function Qne(e,t,r){return t&&Zne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ay(e,t,r){return t=K8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K8(e){var t=eie(e,"string");return Qf(t)=="symbol"?t:t+""}function eie(e,t){if(Qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tie=(function(){function e(){Jne(this,e),ay(this,"activeIndex",0),ay(this,"coordinateList",[]),ay(this,"layout","horizontal")}return Qne(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,c=l===void 0?null:l,u=r.offset,f=u===void 0?null:u,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+c,d=o+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function rie(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&nt(n)&&nt(i))return!0}return!1}function nie(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function X8(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=_r(t,r,n,i),s=_r(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function iie(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,f=t.angle,d=_r(s,l,c,f),h=_r(s,l,u,f);n=d.x,i=d.y,a=h.x,o=h.y}else return X8(t);return[{x:n,y:i},{x:a,y:o}]}function eh(e){"@babel/helpers - typeof";return eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eh(e)}function uN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function R0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(r),!0).forEach(function(n){aie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aie(e,t,r){return t=oie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oie(e){var t=sie(e,"string");return eh(t)=="symbol"?t:t+""}function sie(e,t){if(eh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lie(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var g,p=l2;if(d==="ScatterChart")g=o,p=fQ;else if(d==="BarChart")g=nie(f,o,l,u),p=h5;else if(f==="radial"){var v=X8(o),y=v.cx,b=v.cy,_=v.radius,S=v.startAngle,A=v.endAngle;g={cx:y,cy:b,startAngle:S,endAngle:A,innerRadius:_,outerRadius:_},p=Vj}else g={points:iie(f,o,l)},p=l2;var P=R0(R0(R0(R0({stroke:"#ccc",pointerEvents:"none"},l),g),yt(h,!1)),{},{payload:s,payloadIndex:c,className:Rt("recharts-tooltip-cursor",h.className)});return G.isValidElement(h)?G.cloneElement(h,P):G.createElement(p,P)}var cie=["item"],uie=["children","className","width","height","style","compact","title","desc"];function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}function fN(e,t){return die(e)||hie(e,t)||Z8(e,t)||fie()}function fie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
443
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function die(e){if(Array.isArray(e))return e}function hN(e,t){if(e==null)return{};var r=pie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Q8(n.key),n)}}function gie(e,t,r){return t&&vie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xie(e,t,r){return t=ap(t),yie(e,J8()?Reflect.construct(t,r||[],ap(e).constructor):t.apply(e,r))}function yie(e,t){if(t&&(Rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bie(e)}function bie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J8=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ap(e)}function wie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z2(e,t)}function z2(e,t){return z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},z2(e,t)}function Bc(e){return Aie(e)||Sie(e)||Z8(e)||_ie()}function _ie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
444
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z8(e,t){if(e){if(typeof e=="string")return W2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W2(e,t)}}function Sie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aie(e){if(Array.isArray(e))return W2(e)}function W2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dN(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tt(e,t,r){return t=Q8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q8(e){var t=Tie(e,"string");return Rc(t)=="symbol"?t:t+""}function Tie(e,t){if(Rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eie={xAxis:["bottom","top"],yAxis:["left","right"]},Nie={width:"100%",height:"100%"},eC={x:0,y:0};function B0(e){return e}var Pie=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Oie=function(t,r,n,i){var a=r.find(function(u){return u&&u.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return Be(Be(Be({},i),_r(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=i.angle;return Be(Be(Be({},i),_r(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return eC},Kp=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(Bc(s),Bc(c)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function tC(e){return e==="number"?[0,"auto"]:void 0}var H2=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Kp(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=id(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(Bc(l),[qj(c,d)]):l},[])},pN=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Pie(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=PK(o,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,d=H2(t,r,u,f),h=Oie(n,s,u,a);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},jie=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=t.stackOffset,h=Fj(u,a);return n.reduce(function(g,p){var v,y=p.type.defaultProps!==void 0?Be(Be({},p.type.defaultProps),p.props):p.props,b=y.type,_=y.dataKey,S=y.allowDataOverflow,A=y.allowDuplicatedCategory,P=y.scale,T=y.ticks,k=y.includeHidden,L=y[o];if(g[L])return g;var B=Kp(t.data,{graphicalItems:i.filter(function(O){var I,M=o in O.props?O.props[o]:(I=O.type.defaultProps)===null||I===void 0?void 0:I[o];return M===L}),dataStartIndex:l,dataEndIndex:c}),j=B.length,N,D,U;rie(y.domain,S,b)&&(N=n2(y.domain,null,S),h&&(b==="number"||P!=="auto")&&(U=af(B,_,"category")));var W=tC(b);if(!N||N.length===0){var R,z=(R=y.domain)!==null&&R!==void 0?R:W;if(_){if(N=af(B,_,b),b==="category"&&h){var Q=bq(N);A&&Q?(D=N,N=Hd(0,j)):A||(N=oT(z,N,p).reduce(function(O,I){return O.indexOf(I)>=0?O:[].concat(Bc(O),[I])},[]))}else if(b==="category")A?N=N.filter(function(O){return O!==""&&!Ut(O)}):N=oT(z,N,p).reduce(function(O,I){return O.indexOf(I)>=0||I===""||Ut(I)?O:[].concat(Bc(O),[I])},[]);else if(b==="number"){var Z=LK(B,i.filter(function(O){var I,M,q=o in O.props?O.props[o]:(I=O.type.defaultProps)===null||I===void 0?void 0:I[o],Y="hide"in O.props?O.props.hide:(M=O.type.defaultProps)===null||M===void 0?void 0:M.hide;return q===L&&(k||!Y)}),_,a,u);Z&&(N=Z)}h&&(b==="number"||P!=="auto")&&(U=af(B,_,"category"))}else h?N=Hd(0,j):s&&s[L]&&s[L].hasStack&&b==="number"?N=d==="expand"?[0,1]:$j(s[L].stackGroups,l,c):N=Ij(B,i.filter(function(O){var I=o in O.props?O.props[o]:O.type.defaultProps[o],M="hide"in O.props?O.props.hide:O.type.defaultProps.hide;return I===L&&(k||!M)}),b,u,!0);if(b==="number")N=U2(f,N,L,a,T),z&&(N=n2(z,N,S));else if(b==="category"&&z){var ee=z,ce=N.every(function(O){return ee.indexOf(O)>=0});ce&&(N=ee)}}return Be(Be({},g),{},Tt({},L,Be(Be({},y),{},{axisType:a,domain:N,categoricalDomain:U,duplicateDomain:D,originalDomain:(v=y.domain)!==null&&v!==void 0?v:W,isCategorical:h,layout:u})))},{})},Cie=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=Kp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),h=d.length,g=Fj(u,a),p=-1;return n.reduce(function(v,y){var b=y.type.defaultProps!==void 0?Be(Be({},y.type.defaultProps),y.props):y.props,_=b[o],S=tC("number");if(!v[_]){p++;var A;return g?A=Hd(0,h):s&&s[_]&&s[_].hasStack?(A=$j(s[_].stackGroups,l,c),A=U2(f,A,_,a)):(A=n2(S,Ij(d,n.filter(function(P){var T,k,L=o in P.props?P.props[o]:(T=P.type.defaultProps)===null||T===void 0?void 0:T[o],B="hide"in P.props?P.props.hide:(k=P.type.defaultProps)===null||k===void 0?void 0:k.hide;return L===_&&!B}),"number",u),i.defaultProps.allowDataOverflow),A=U2(f,A,_,a)),Be(Be({},v),{},Tt({},_,Be(Be({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ki(Eie,"".concat(a,".").concat(p%2),null),domain:A,originalDomain:S,isCategorical:g,layout:u})))}return v},{})},kie=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.children,f="".concat(i,"Id"),d=Xi(u,a),h={};return d&&d.length?h=jie(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(h=Cie(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),h},Lie=function(t){var r=Xo(t),n=uo(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Rb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:jd(r,n)}},mN=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ni(r,Ec),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Iie=function(t){return!t||!t.length?!1:t.some(function(r){var n=mo(r&&r.type);return n&&n.indexOf("Bar")>=0})},vN=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Fie=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,u=n.height,f=n.children,d=n.margin||{},h=Ni(f,Ec),g=Ni(f,Ws),p=Object.keys(l).reduce(function(A,P){var T=l[P],k=T.orientation;return!T.mirror&&!T.hide?Be(Be({},A),{},Tt({},k,A[k]+T.width)):A},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(A,P){var T=o[P],k=T.orientation;return!T.mirror&&!T.hide?Be(Be({},A),{},Tt({},k,Ki(A,"".concat(k))+T.height)):A},{top:d.top||0,bottom:d.bottom||0}),y=Be(Be({},v),p),b=y.bottom;h&&(y.bottom+=h.props.height||Ec.defaultProps.height),g&&r&&(y=CK(y,i,n,r));var _=c-y.left-y.right,S=u-y.top-y.bottom;return Be(Be({brushBottom:b},y),{},{width:Math.max(_,0),height:Math.max(S,0)})},Mie=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},_5=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,f=t.defaultProps,d=function(y,b){var _=b.graphicalItems,S=b.stackGroups,A=b.offset,P=b.updateId,T=b.dataStartIndex,k=b.dataEndIndex,L=y.barSize,B=y.layout,j=y.barGap,N=y.barCategoryGap,D=y.maxBarSize,U=vN(B),W=U.numericAxisName,R=U.cateAxisName,z=Iie(_),Q=[];return _.forEach(function(Z,ee){var ce=Kp(y.data,{graphicalItems:[Z],dataStartIndex:T,dataEndIndex:k}),O=Z.type.defaultProps!==void 0?Be(Be({},Z.type.defaultProps),Z.props):Z.props,I=O.dataKey,M=O.maxBarSize,q=O["".concat(W,"Id")],Y=O["".concat(R,"Id")],fe={},ae=l.reduce(function(Ze,Je){var ft,pt,bt=b["".concat(Je.axisType,"Map")],Ot=O["".concat(Je.axisType,"Id")];bt&&bt[Ot]||Je.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?hi(!1,"Specifying a(n) ".concat(Je.axisType,"Id requires a corresponding ").concat(Je.axisType,"Id on the targeted graphical component ").concat((ft=Z==null||(pt=Z.type)===null||pt===void 0?void 0:pt.displayName)!==null&&ft!==void 0?ft:"")):hi());var Ft=bt[Ot];return Be(Be({},Ze),{},Tt(Tt({},Je.axisType,Ft),"".concat(Je.axisType,"Ticks"),uo(Ft)))},fe),ne=ae[R],ve=ae["".concat(R,"Ticks")],we=S&&S[q]&&S[q].hasStack&&UK(Z,S[q].stackGroups),se=mo(Z.type).indexOf("Bar")>=0,Fe=jd(ne,ve),Ae=[],Ee=z&&OK({barSize:L,stackGroups:S,totalSize:Mie(ae,R)});if(se){var le,Re,tt=Ut(M)?D:M,Ue=(le=(Re=jd(ne,ve,!0))!==null&&Re!==void 0?Re:tt)!==null&&le!==void 0?le:0;Ae=jK({barGap:j,barCategoryGap:N,bandSize:Ue!==Fe?Ue:Fe,sizeList:Ee[Y],maxBarSize:tt}),Ue!==Fe&&(Ae=Ae.map(function(Ze){return Be(Be({},Ze),{},{position:Be(Be({},Ze.position),{},{offset:Ze.position.offset-Ue/2})})}))}var Ke=Z&&Z.type&&Z.type.getComposedData;Ke&&Q.push({props:Be(Be({},Ke(Be(Be({},ae),{},{displayedData:ce,props:y,dataKey:I,item:Z,bandSize:Fe,barPosition:Ae,offset:A,stackedData:we,layout:B,dataStartIndex:T,dataEndIndex:k}))),{},Tt(Tt(Tt({key:Z.key||"item-".concat(ee)},W,ae[W]),R,ae[R]),"animationId",P)),childIndex:Lq(Z,y.children),item:Z})}),Q},h=function(y,b){var _=y.props,S=y.dataStartIndex,A=y.dataEndIndex,P=y.updateId;if(!b4({props:_}))return null;var T=_.children,k=_.layout,L=_.stackOffset,B=_.data,j=_.reverseStackOrder,N=vN(k),D=N.numericAxisName,U=N.cateAxisName,W=Xi(T,n),R=$K(B,W,"".concat(D,"Id"),"".concat(U,"Id"),L,j),z=l.reduce(function(O,I){var M="".concat(I.axisType,"Map");return Be(Be({},O),{},Tt({},M,kie(_,Be(Be({},I),{},{graphicalItems:W,stackGroups:I.axisType===D&&R,dataStartIndex:S,dataEndIndex:A}))))},{}),Q=Fie(Be(Be({},z),{},{props:_,graphicalItems:W}),b==null?void 0:b.legendBBox);Object.keys(z).forEach(function(O){z[O]=u(_,z[O],Q,O.replace("Map",""),r)});var Z=z["".concat(U,"Map")],ee=Lie(Z),ce=d(_,Be(Be({},z),{},{dataStartIndex:S,dataEndIndex:A,updateId:P,graphicalItems:W,stackGroups:R,offset:Q}));return Be(Be({formattedGraphicalItems:ce,graphicalItems:W,offset:Q,stackGroups:R},ee),z)},g=(function(v){function y(b){var _,S,A;return mie(this,y),A=xie(this,y,[b]),Tt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Tt(A,"accessibilityManager",new tie),Tt(A,"handleLegendBBoxUpdate",function(P){if(P){var T=A.state,k=T.dataStartIndex,L=T.dataEndIndex,B=T.updateId;A.setState(Be({legendBBox:P},h({props:A.props,dataStartIndex:k,dataEndIndex:L,updateId:B},Be(Be({},A.state),{},{legendBBox:P}))))}}),Tt(A,"handleReceiveSyncEvent",function(P,T,k){if(A.props.syncId===P){if(k===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(T)}}),Tt(A,"handleBrushChange",function(P){var T=P.startIndex,k=P.endIndex;if(T!==A.state.dataStartIndex||k!==A.state.dataEndIndex){var L=A.state.updateId;A.setState(function(){return Be({dataStartIndex:T,dataEndIndex:k},h({props:A.props,dataStartIndex:T,dataEndIndex:k,updateId:L},A.state))}),A.triggerSyncEvent({dataStartIndex:T,dataEndIndex:k})}}),Tt(A,"handleMouseEnter",function(P){var T=A.getMouseInfo(P);if(T){var k=Be(Be({},T),{},{isTooltipActive:!0});A.setState(k),A.triggerSyncEvent(k);var L=A.props.onMouseEnter;Ct(L)&&L(k,P)}}),Tt(A,"triggeredAfterMouseMove",function(P){var T=A.getMouseInfo(P),k=T?Be(Be({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(k),A.triggerSyncEvent(k);var L=A.props.onMouseMove;Ct(L)&&L(k,P)}),Tt(A,"handleItemMouseEnter",function(P){A.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),Tt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Tt(A,"handleMouseMove",function(P){P.persist(),A.throttleTriggeredAfterMouseMove(P)}),Tt(A,"handleMouseLeave",function(P){A.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};A.setState(T),A.triggerSyncEvent(T);var k=A.props.onMouseLeave;Ct(k)&&k(T,P)}),Tt(A,"handleOuterEvent",function(P){var T=kq(P),k=Ki(A.props,"".concat(T));if(T&&Ct(k)){var L,B;/.*touch.*/i.test(T)?B=A.getMouseInfo(P.changedTouches[0]):B=A.getMouseInfo(P),k((L=B)!==null&&L!==void 0?L:{},P)}}),Tt(A,"handleClick",function(P){var T=A.getMouseInfo(P);if(T){var k=Be(Be({},T),{},{isTooltipActive:!0});A.setState(k),A.triggerSyncEvent(k);var L=A.props.onClick;Ct(L)&&L(k,P)}}),Tt(A,"handleMouseDown",function(P){var T=A.props.onMouseDown;if(Ct(T)){var k=A.getMouseInfo(P);T(k,P)}}),Tt(A,"handleMouseUp",function(P){var T=A.props.onMouseUp;if(Ct(T)){var k=A.getMouseInfo(P);T(k,P)}}),Tt(A,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),Tt(A,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&A.handleMouseDown(P.changedTouches[0])}),Tt(A,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&A.handleMouseUp(P.changedTouches[0])}),Tt(A,"handleDoubleClick",function(P){var T=A.props.onDoubleClick;if(Ct(T)){var k=A.getMouseInfo(P);T(k,P)}}),Tt(A,"handleContextMenu",function(P){var T=A.props.onContextMenu;if(Ct(T)){var k=A.getMouseInfo(P);T(k,P)}}),Tt(A,"triggerSyncEvent",function(P){A.props.syncId!==void 0&&ny.emit(iy,A.props.syncId,P,A.eventEmitterSymbol)}),Tt(A,"applySyncEvent",function(P){var T=A.props,k=T.layout,L=T.syncMethod,B=A.state.updateId,j=P.dataStartIndex,N=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)A.setState(Be({dataStartIndex:j,dataEndIndex:N},h({props:A.props,dataStartIndex:j,dataEndIndex:N,updateId:B},A.state)));else if(P.activeTooltipIndex!==void 0){var D=P.chartX,U=P.chartY,W=P.activeTooltipIndex,R=A.state,z=R.offset,Q=R.tooltipTicks;if(!z)return;if(typeof L=="function")W=L(Q,P);else if(L==="value"){W=-1;for(var Z=0;Z<Q.length;Z++)if(Q[Z].value===P.activeLabel){W=Z;break}}var ee=Be(Be({},z),{},{x:z.left,y:z.top}),ce=Math.min(D,ee.x+ee.width),O=Math.min(U,ee.y+ee.height),I=Q[W]&&Q[W].value,M=H2(A.state,A.props.data,W),q=Q[W]?{x:k==="horizontal"?Q[W].coordinate:ce,y:k==="horizontal"?O:Q[W].coordinate}:eC;A.setState(Be(Be({},P),{},{activeLabel:I,activeCoordinate:q,activePayload:M,activeTooltipIndex:W}))}else A.setState(P)}),Tt(A,"renderCursor",function(P){var T,k=A.state,L=k.isTooltipActive,B=k.activeCoordinate,j=k.activePayload,N=k.offset,D=k.activeTooltipIndex,U=k.tooltipAxisBandSize,W=A.getTooltipEventType(),R=(T=P.props.active)!==null&&T!==void 0?T:L,z=A.props.layout,Q=P.key||"_recharts-cursor";return G.createElement(lie,{key:Q,activeCoordinate:B,activePayload:j,activeTooltipIndex:D,chartName:r,element:P,isActive:R,layout:z,offset:N,tooltipAxisBandSize:U,tooltipEventType:W})}),Tt(A,"renderPolarAxis",function(P,T,k){var L=Ki(P,"type.axisType"),B=Ki(A.state,"".concat(L,"Map")),j=P.type.defaultProps,N=j!==void 0?Be(Be({},j),P.props):P.props,D=B&&B[N["".concat(L,"Id")]];return G.cloneElement(P,Be(Be({},D),{},{className:Rt(L,D.className),key:P.key||"".concat(T,"-").concat(k),ticks:uo(D,!0)}))}),Tt(A,"renderPolarGrid",function(P){var T=P.props,k=T.radialLines,L=T.polarAngles,B=T.polarRadius,j=A.state,N=j.radiusAxisMap,D=j.angleAxisMap,U=Xo(N),W=Xo(D),R=W.cx,z=W.cy,Q=W.innerRadius,Z=W.outerRadius;return G.cloneElement(P,{polarAngles:Array.isArray(L)?L:uo(W,!0).map(function(ee){return ee.coordinate}),polarRadius:Array.isArray(B)?B:uo(U,!0).map(function(ee){return ee.coordinate}),cx:R,cy:z,innerRadius:Q,outerRadius:Z,key:P.key||"polar-grid",radialLines:k})}),Tt(A,"renderLegend",function(){var P=A.state.formattedGraphicalItems,T=A.props,k=T.children,L=T.width,B=T.height,j=A.props.margin||{},N=L-(j.left||0)-(j.right||0),D=kj({children:k,formattedGraphicalItems:P,legendWidth:N,legendContent:c});if(!D)return null;var U=D.item,W=hN(D,cie);return G.cloneElement(U,Be(Be({},W),{},{chartWidth:L,chartHeight:B,margin:j,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Tt(A,"renderTooltip",function(){var P,T=A.props,k=T.children,L=T.accessibilityLayer,B=Ni(k,da);if(!B)return null;var j=A.state,N=j.isTooltipActive,D=j.activeCoordinate,U=j.activePayload,W=j.activeLabel,R=j.offset,z=(P=B.props.active)!==null&&P!==void 0?P:N;return G.cloneElement(B,{viewBox:Be(Be({},R),{},{x:R.left,y:R.top}),active:z,label:W,payload:z?U:[],coordinate:D,accessibilityLayer:L})}),Tt(A,"renderBrush",function(P){var T=A.props,k=T.margin,L=T.data,B=A.state,j=B.offset,N=B.dataStartIndex,D=B.dataEndIndex,U=B.updateId;return G.cloneElement(P,{key:P.key||"_recharts-brush",onChange:k0(A.handleBrushChange,P.props.onChange),data:L,x:nt(P.props.x)?P.props.x:j.left,y:nt(P.props.y)?P.props.y:j.top+j.height+j.brushBottom-(k.bottom||0),width:nt(P.props.width)?P.props.width:j.width,startIndex:N,endIndex:D,updateId:"brush-".concat(U)})}),Tt(A,"renderReferenceElement",function(P,T,k){if(!P)return null;var L=A,B=L.clipPathId,j=A.state,N=j.xAxisMap,D=j.yAxisMap,U=j.offset,W=P.type.defaultProps||{},R=P.props,z=R.xAxisId,Q=z===void 0?W.xAxisId:z,Z=R.yAxisId,ee=Z===void 0?W.yAxisId:Z;return G.cloneElement(P,{key:P.key||"".concat(T,"-").concat(k),xAxis:N[Q],yAxis:D[ee],viewBox:{x:U.left,y:U.top,width:U.width,height:U.height},clipPathId:B})}),Tt(A,"renderActivePoints",function(P){var T=P.item,k=P.activePoint,L=P.basePoint,B=P.childIndex,j=P.isRange,N=[],D=T.props.key,U=T.item.type.defaultProps!==void 0?Be(Be({},T.item.type.defaultProps),T.item.props):T.item.props,W=U.activeDot,R=U.dataKey,z=Be(Be({index:B,dataKey:R,cx:k.x,cy:k.y,r:4,fill:u5(T.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},yt(W,!1)),ad(W));return N.push(y.renderActiveDot(W,z,"".concat(D,"-activePoint-").concat(B))),L?N.push(y.renderActiveDot(W,Be(Be({},z),{},{cx:L.x,cy:L.y}),"".concat(D,"-basePoint-").concat(B))):j&&N.push(null),N}),Tt(A,"renderGraphicChild",function(P,T,k){var L=A.filterFormatItem(P,T,k);if(!L)return null;var B=A.getTooltipEventType(),j=A.state,N=j.isTooltipActive,D=j.tooltipAxis,U=j.activeTooltipIndex,W=j.activeLabel,R=A.props.children,z=Ni(R,da),Q=L.props,Z=Q.points,ee=Q.isRange,ce=Q.baseLine,O=L.item.type.defaultProps!==void 0?Be(Be({},L.item.type.defaultProps),L.item.props):L.item.props,I=O.activeDot,M=O.hide,q=O.activeBar,Y=O.activeShape,fe=!!(!M&&N&&z&&(I||q||Y)),ae={};B!=="axis"&&z&&z.props.trigger==="click"?ae={onClick:k0(A.handleItemMouseEnter,P.props.onClick)}:B!=="axis"&&(ae={onMouseLeave:k0(A.handleItemMouseLeave,P.props.onMouseLeave),onMouseEnter:k0(A.handleItemMouseEnter,P.props.onMouseEnter)});var ne=G.cloneElement(P,Be(Be({},L.props),ae));function ve(Je){return typeof D.dataKey=="function"?D.dataKey(Je.payload):null}if(fe)if(U>=0){var we,se;if(D.dataKey&&!D.allowDuplicatedCategory){var Fe=typeof D.dataKey=="function"?ve:"payload.".concat(D.dataKey.toString());we=id(Z,Fe,W),se=ee&&ce&&id(ce,Fe,W)}else we=Z==null?void 0:Z[U],se=ee&&ce&&ce[U];if(Y||q){var Ae=P.props.activeIndex!==void 0?P.props.activeIndex:U;return[G.cloneElement(P,Be(Be(Be({},L.props),ae),{},{activeIndex:Ae})),null,null]}if(!Ut(we))return[ne].concat(Bc(A.renderActivePoints({item:L,activePoint:we,basePoint:se,childIndex:U,isRange:ee})))}else{var Ee,le=(Ee=A.getItemByXY(A.state.activeCoordinate))!==null&&Ee!==void 0?Ee:{graphicalItem:ne},Re=le.graphicalItem,tt=Re.item,Ue=tt===void 0?P:tt,Ke=Re.childIndex,Ze=Be(Be(Be({},L.props),ae),{},{activeIndex:Ke});return[G.cloneElement(Ue,Ze),null,null]}return ee?[ne,null,null]:[ne,null]}),Tt(A,"renderCustomized",function(P,T,k){return G.cloneElement(P,Be(Be({key:"recharts-customized-".concat(k)},A.props),A.state))}),Tt(A,"renderMap",{CartesianGrid:{handler:B0,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:B0},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:B0},YAxis:{handler:B0},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((_=b.id)!==null&&_!==void 0?_:uh("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=C6(A.triggeredAfterMouseMove,(S=b.throttleDelay)!==null&&S!==void 0?S:1e3/60),A.state={},A}return wie(y,v),gie(y,[{key:"componentDidMount",value:function(){var _,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var _=this.props,S=_.children,A=_.data,P=_.height,T=_.layout,k=Ni(S,da);if(k){var L=k.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,j=H2(this.state,A,L,B),N=this.state.tooltipTicks[L].coordinate,D=(this.state.offset.top+P)/2,U=T==="horizontal",W=U?{x:N,y:D}:{y:N,x:D},R=this.state.formattedGraphicalItems.find(function(Q){var Z=Q.item;return Z.type.name==="Scatter"});R&&(W=Be(Be({},W),R.props.points[L].tooltipPosition),j=R.props.points[L].tooltipPayload);var z={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:B,activePayload:j,activeCoordinate:W};this.setState(z),this.renderCursor(k),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(_,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==_.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==_.margin){var A,P;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(_){Ty([Ni(_.children,da)],[Ni(this.props.children,da)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var _=Ni(this.props.children,da);if(_&&typeof _.props.shared=="boolean"){var S=_.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(_){if(!this.container)return null;var S=this.container,A=S.getBoundingClientRect(),P=bH(A),T={chartX:Math.round(_.pageX-P.left),chartY:Math.round(_.pageY-P.top)},k=A.width/S.offsetWidth||1,L=this.inRange(T.chartX,T.chartY,k);if(!L)return null;var B=this.state,j=B.xAxisMap,N=B.yAxisMap,D=this.getTooltipEventType(),U=pN(this.state,this.props.data,this.props.layout,L);if(D!=="axis"&&j&&N){var W=Xo(j).scale,R=Xo(N).scale,z=W&&W.invert?W.invert(T.chartX):null,Q=R&&R.invert?R.invert(T.chartY):null;return Be(Be({},T),{},{xValue:z,yValue:Q},U)}return U?Be(Be({},T),U):null}},{key:"inRange",value:function(_,S){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,T=_/A,k=S/A;if(P==="horizontal"||P==="vertical"){var L=this.state.offset,B=T>=L.left&&T<=L.left+L.width&&k>=L.top&&k<=L.top+L.height;return B?{x:T,y:k}:null}var j=this.state,N=j.angleAxisMap,D=j.radiusAxisMap;if(N&&D){var U=Xo(N);return cT({x:T,y:k},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var _=this.props.children,S=this.getTooltipEventType(),A=Ni(_,da),P={};A&&S==="axis"&&(A.props.trigger==="click"?P={onClick:this.handleClick}:P={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var T=ad(this.props,this.handleOuterEvent);return Be(Be({},T),P)}},{key:"addListener",value:function(){ny.on(iy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ny.removeListener(iy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(_,S,A){for(var P=this.state.formattedGraphicalItems,T=0,k=P.length;T<k;T++){var L=P[T];if(L.item===_||L.props.key===_.key||S===mo(L.item.type)&&A===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var _=this.clipPathId,S=this.state.offset,A=S.left,P=S.top,T=S.height,k=S.width;return G.createElement("defs",null,G.createElement("clipPath",{id:_},G.createElement("rect",{x:A,y:P,height:T,width:k})))}},{key:"getXScales",value:function(){var _=this.state.xAxisMap;return _?Object.entries(_).reduce(function(S,A){var P=fN(A,2),T=P[0],k=P[1];return Be(Be({},S),{},Tt({},T,k.scale))},{}):null}},{key:"getYScales",value:function(){var _=this.state.yAxisMap;return _?Object.entries(_).reduce(function(S,A){var P=fN(A,2),T=P[0],k=P[1];return Be(Be({},S),{},Tt({},T,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(_){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[_])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(_){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[_])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(_){var S=this.state,A=S.formattedGraphicalItems,P=S.activeItem;if(A&&A.length)for(var T=0,k=A.length;T<k;T++){var L=A[T],B=L.props,j=L.item,N=j.type.defaultProps!==void 0?Be(Be({},j.type.defaultProps),j.props):j.props,D=mo(j.type);if(D==="Bar"){var U=(B.data||[]).find(function(Q){return GZ(_,Q)});if(U)return{graphicalItem:L,payload:U}}else if(D==="RadialBar"){var W=(B.data||[]).find(function(Q){return cT(_,Q)});if(W)return{graphicalItem:L,payload:W}}else if(Up(L,P)||zp(L,P)||Kf(L,P)){var R=Eee({graphicalItem:L,activeTooltipItem:P,itemData:N.data}),z=N.activeIndex===void 0?R:N.activeIndex;return{graphicalItem:Be(Be({},L),{},{childIndex:z}),payload:Kf(L,P)?N.data[R]:L.props.data[R]}}}return null}},{key:"render",value:function(){var _=this;if(!b4(this))return null;var S=this.props,A=S.children,P=S.className,T=S.width,k=S.height,L=S.style,B=S.compact,j=S.title,N=S.desc,D=hN(S,uie),U=yt(D,!1);if(B)return G.createElement(GE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},G.createElement(Ny,Ql({},U,{width:T,height:k,title:j,desc:N}),this.renderClipPath(),_4(A,this.renderMap)));if(this.props.accessibilityLayer){var W,R;U.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,U.role=(R=this.props.role)!==null&&R!==void 0?R:"application",U.onKeyDown=function(Q){_.accessibilityManager.keyboardEvent(Q)},U.onFocus=function(){_.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return G.createElement(GE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},G.createElement("div",Ql({className:Rt("recharts-wrapper",P),style:Be({position:"relative",cursor:"default",width:T,height:k},L)},z,{ref:function(Z){_.container=Z}}),G.createElement(Ny,Ql({},U,{width:T,height:k,title:j,desc:N,style:Nie}),this.renderClipPath(),_4(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(G.Component);Tt(g,"displayName",r),Tt(g,"defaultProps",Be({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Tt(g,"getDerivedStateFromProps",function(v,y){var b=v.dataKey,_=v.data,S=v.children,A=v.width,P=v.height,T=v.layout,k=v.stackOffset,L=v.margin,B=y.dataStartIndex,j=y.dataEndIndex;if(y.updateId===void 0){var N=mN(v);return Be(Be(Be({},N),{},{updateId:0},h(Be(Be({props:v},N),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:_,prevWidth:A,prevHeight:P,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:S})}if(b!==y.prevDataKey||_!==y.prevData||A!==y.prevWidth||P!==y.prevHeight||T!==y.prevLayout||k!==y.prevStackOffset||!oc(L,y.prevMargin)){var D=mN(v),U={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},W=Be(Be({},pN(y,_,T)),{},{updateId:y.updateId+1}),R=Be(Be(Be({},D),U),W);return Be(Be(Be({},R),h(Be({props:v},R),y)),{},{prevDataKey:b,prevData:_,prevWidth:A,prevHeight:P,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:S})}if(!Ty(S,y.prevChildren)){var z,Q,Z,ee,ce=Ni(S,Ec),O=ce&&(z=(Q=ce.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&z!==void 0?z:B,I=ce&&(Z=(ee=ce.props)===null||ee===void 0?void 0:ee.endIndex)!==null&&Z!==void 0?Z:j,M=O!==B||I!==j,q=!Ut(_),Y=q&&!M?y.updateId:y.updateId+1;return Be(Be({updateId:Y},h(Be(Be({props:v},y),{},{updateId:Y,dataStartIndex:O,dataEndIndex:I}),y)),{},{prevChildren:S,dataStartIndex:O,dataEndIndex:I})}return null}),Tt(g,"renderActiveDot",function(v,y,b){var _;return G.isValidElement(v)?_=G.cloneElement(v,y):Ct(v)?_=v(y):_=G.createElement(xh,y),G.createElement(lr,{className:"recharts-active-dot",key:b},_)});var p=G.forwardRef(function(y,b){return G.createElement(g,Ql({},y,{ref:b}))});return p.displayName=g.displayName,p},Die=_5({chartName:"LineChart",GraphicalChild:_h,axisComponents:[{axisType:"xAxis",AxisComp:Fc},{axisType:"yAxis",AxisComp:Dc}],formatAxisMap:b8}),Rie=_5({chartName:"BarChart",GraphicalChild:ul,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Fc},{axisType:"yAxis",AxisComp:Dc}],formatAxisMap:b8}),Bie=_5({chartName:"RadarChart",GraphicalChild:wh,axisComponents:[{axisType:"angleAxis",AxisComp:bh},{axisType:"radiusAxis",AxisComp:yh}],formatAxisMap:QK,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function $ie({student:e,examResults:t=[],meetings:r=[],activities:n={activities:[],awards:[]},feeHistory:i={structure:[],payments:[]},disciplinaryRecords:a=[],students:o=[],selectedStudentId:s,onSelectStudent:l,classFilter:c,setClassFilter:u,classOptions:f=[],sectionFilter:d,setSectionFilter:h,sectionOptions:g=[],searchName:p,setSearchName:v,onEdit:y,onResetPassword:b,onPrint:_,onExportPdf:S,breadcrumbItems:A,children:P,editingSection:T=null,editForm:k={},onEditSection:L,onSaveSection:B,onCancelEdit:j,onFieldChange:N,isSaving:D=!1,onAwardAdd:U,onAwardEdit:W,onAwardDelete:R,onActivityAdd:z,onActivityEdit:Q,onActivityDelete:Z,onMeetingAdd:ee,onMeetingEdit:ce,onMeetingDelete:O,onDisciplinaryAdd:I,onDisciplinaryEdit:M,onDisciplinaryDelete:q}){var Ke,Ze,Je,ft,pt,bt,Ot,Ft,zt,wt,Mt,at,Dr,Wt,An,Vt,fr,Vn;const[Y,fe]=G.useState({}),ae=e||{name:"",roll:"",class:"",email:"",phone:"",type:"",personal:{},parent:{},medical:{},mentor:{}},ne=t,ve=Array.isArray(n==null?void 0:n.activities)?n.activities:[],we=Array.isArray(n==null?void 0:n.awards)?n.awards:[],se=Array.isArray(i==null?void 0:i.structure)?i.structure:[],Fe=Array.isArray(i==null?void 0:i.payments)?i.payments:[],Ae=_e=>fe(mt=>({...mt,[_e]:!mt[_e]})),Ee=ne.length>0?(()=>{const _e={};return ne.forEach(mt=>mt.subjects.forEach(Et=>{_e[Et.name]||(_e[Et.name]={total:0,count:0}),_e[Et.name].total+=Et.marks/(Et.total||100)*100,_e[Et.name].count+=1})),Object.entries(_e).map(([mt,Et])=>({subject:mt.slice(0,10),avg:Math.round(Et.total/Et.count)}))})():[],le=Ee.map(_e=>({subject:_e.subject,score:_e.avg})),Re=ne.map(_e=>{const mt={exam:_e.name.split(" ")[0]};return _e.subjects.forEach(Et=>{mt[Et.name.slice(0,10)]=Math.round(Et.marks/(Et.total||100)*100)}),mt}),tt=[...new Set(ne.flatMap(_e=>_e.subjects.map(mt=>mt.name.slice(0,10))))],Ue=o.filter(_e=>(!c||_e.class.split("-")[0]===c)&&(!p||_e.name.toLowerCase().includes(p.toLowerCase())));return x.jsxs("div",{className:"flex gap-4 h-[calc(100vh-80px)] overflow-hidden",children:[x.jsxs("div",{className:"w-80 min-w-[320px] overflow-y-auto pr-2",children:[x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-3 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[x.jsx("div",{className:"mb-2",children:x.jsx(oo,{value:c,onChange:_e=>{u(_e),h&&h("")},options:f,placeholder:"All Classes"})}),g.length>0&&h&&x.jsx("div",{className:"mb-2",children:x.jsx(oo,{value:d,onChange:h,options:g,placeholder:"All Sections"})}),x.jsxs("div",{className:"relative",children:[x.jsx(Ge.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),x.jsx("input",{value:p,onChange:_e=>v(_e.target.value),placeholder:"Search Student Name",className:"w-full pl-9 pr-3 py-1.5 border border-slate-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}),x.jsxs("p",{className:"text-xs text-slate-500 mb-2",children:[Ue.length," Students"]}),Ue.map(_e=>x.jsx("div",{onClick:()=>l(_e.id),className:`border rounded-xl p-2.5 mb-1.5 cursor-pointer transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 ${s===_e.id?"border-indigo-500 bg-indigo-50 shadow-sm":"bg-white border-slate-200 hover:border-indigo-400 hover:shadow-soft-lg"}`,children:x.jsxs("div",{className:"flex items-center gap-2.5",children:[x.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xs font-semibold shadow-sm",children:_e.avatar}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:_e.name}),x.jsxs("p",{className:"text-xs text-slate-500",children:[_e.roll," • ",_e.class]})]})]})},_e.id))]}),x.jsxs("div",{className:"flex-1 overflow-y-auto pr-2 scroll-smooth",children:[x.jsxs("div",{className:"flex gap-2 mb-3",children:[x.jsx(sr,{variant:"secondary",size:"sm",icon:Ge.Printer,onClick:_,children:"Print Profile"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ge.FileText,onClick:S,children:"Export PDF"}),x.jsx(sr,{variant:"primary",size:"sm",icon:Ge.Pencil,onClick:y,children:"Edit Details"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ge.Key,onClick:b,children:"Reset Password"})]}),x.jsx(gb,{items:A}),x.jsxs("div",{id:"student-profile-content",className:`bg-white border rounded-xl p-4 md:p-5 mb-3 mt-3 transition-all duration-200 hover:shadow-soft-lg ${T==="academic"?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[x.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[x.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xl font-bold shadow-sm",children:"AS"}),x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx("h2",{className:"text-lg font-bold text-slate-900",children:ae.name}),x.jsx("span",{className:"text-xs font-semibold bg-indigo-50 text-indigo-600 px-2.5 py-0.5 rounded-full",children:"Day Scholar"}),L&&!T&&x.jsxs("button",{onClick:()=>L("academic"),className:"ml-auto text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[x.jsx(Ge.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),T==="academic"&&N?x.jsxs("div",{className:"grid grid-cols-4 gap-3 mt-2",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Full Name"}),x.jsx("input",{value:k.full_name||"",onChange:_e=>N("full_name",_e.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),x.jsx("input",{value:k.email||"",onChange:_e=>N("email",_e.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),x.jsx("input",{value:k.class_name||"",onChange:_e=>N("class_name",_e.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),x.jsx("input",{value:k.phone||"",onChange:_e=>N("phone",_e.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}):x.jsxs("div",{className:"grid grid-cols-4 gap-4 mt-2",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Roll No"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.roll})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.email})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.class})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.phone})]})]})]})]}),T==="academic"&&x.jsxs("div",{className:"flex justify-end gap-2 mt-2 pt-2 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:j,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:B,disabled:D,children:D?"Saving...":"Save"})]}),x.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Attendance",value:(Ke=ae.stats)!=null&&Ke.attendance_percentage?`${ae.stats.attendance_percentage}%`:"-",color:"text-amber-500"},{label:"Avg Grade",value:(Ze=ae.stats)!=null&&Ze.average_grade?`${ae.stats.average_grade}%`:"-",color:"text-green-500"},{label:"Assignments",value:((Je=ae.stats)==null?void 0:Je.assignments_submitted)??"-",color:"text-indigo-500"},{label:"Fee Due",value:se.length>0?`₹${Math.max(0,se.reduce((_e,mt)=>_e+(mt.amount||0),0)-Fe.reduce((_e,mt)=>_e+(mt.amount||0),0)).toLocaleString()}`:"-",color:"text-green-500"}].map(_e=>x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2 text-center transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[x.jsx("p",{className:"text-xs text-slate-500",children:_e.label}),x.jsx("p",{className:`text-lg font-bold ${_e.color}`,children:_e.value})]},_e.label))})]}),[{title:"Personal Information",key:"personal",fields:[["Phone",ae.phone||(e==null?void 0:e.phone),"phone"],["Email",ae.email||(e==null?void 0:e.email),"email"],["Date of Birth",(ft=ae.personal)==null?void 0:ft.dob,"date_of_birth"],["Admission Date",(pt=ae.personal)==null?void 0:pt.admissionDate,"admission_date"],["Student Type",ae.type||((bt=e==null?void 0:e.metadata_)==null?void 0:bt.student_type),"student_type"],["Address",(Ot=ae.personal)==null?void 0:Ot.address,"address"]]},{title:"Parent/Guardian Information",key:"parent",fields:[["Parent Name",(Ft=ae.parent)==null?void 0:Ft.name,"parent_name"],["Phone",(zt=ae.parent)==null?void 0:zt.phone,"parent_phone"],["Email",(wt=ae.parent)==null?void 0:wt.email,"parent_email"],["Relationship",(Mt=ae.parent)==null?void 0:Mt.relationship,"parent_relationship"],["Emergency Contact",(at=ae.parent)==null?void 0:at.emergency,"parent_emergency"]]},{title:"Medical & Additional Information",key:"medical",fields:[["Blood Group",(Dr=ae.medical)==null?void 0:Dr.bloodGroup,"blood_group"],["Gender",(Wt=ae.medical)==null?void 0:Wt.gender,"gender"],["Religion",(An=ae.medical)==null?void 0:An.religion,"religion"],["Medical Conditions",(Vt=ae.medical)==null?void 0:Vt.conditions,"medical_conditions"]]}].map(_e=>{const mt=T===_e.key;return x.jsxs("div",{className:`bg-white border rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg ${mt?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:_e.title}),L&&!mt&&!T&&x.jsxs("button",{onClick:()=>L(_e.key),className:"text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[x.jsx(Ge.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),x.jsx("div",{className:"grid grid-cols-3 gap-3",children:_e.fields.map(([Et,Sr,Yt])=>x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:Et}),mt&&N?Yt==="gender"?x.jsx(oo,{value:k[Yt]||"",onChange:Nt=>N(Yt,Nt),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."}):Yt==="parent_relationship"?x.jsx(oo,{value:k[Yt]||"",onChange:Nt=>N(Yt,Nt),options:[{value:"Father",label:"Father"},{value:"Mother",label:"Mother"},{value:"Guardian",label:"Guardian"},{value:"Parent/Guardian",label:"Parent/Guardian"}],placeholder:"Select..."}):Yt==="student_type"?x.jsx(oo,{value:k[Yt]||"",onChange:Nt=>N(Yt,Nt),options:[{value:"",label:"Select"},{value:"Day Scholar",label:"Day Scholar"},{value:"Hosteller",label:"Hosteller"}],placeholder:"Select..."}):Yt==="date_of_birth"||Yt==="admission_date"?x.jsx("input",{type:"date",value:k[Yt]||"",onChange:Nt=>N(Yt,Nt.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}):x.jsx("input",{value:k[Yt]||"",onChange:Nt=>N(Yt,Nt.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}):x.jsx("p",{className:"text-sm text-slate-800",children:Sr||"-"})]},Et))}),mt&&x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:j,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:B,disabled:D,children:D?"Saving...":"Save"})]})]},_e.title)}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Class Teacher & Mentor"}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3",children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase font-semibold mb-2",children:"Class Teacher"}),(fr=ae.class_teacher)!=null&&fr.name?x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-emerald-500 to-emerald-700 text-white flex items-center justify-center text-xs font-bold",children:(ae.class_teacher.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ae.class_teacher.name}),ae.class_teacher.email&&x.jsx("p",{className:"text-[10px] text-slate-500",children:ae.class_teacher.email})]})]}):x.jsx("p",{className:"text-xs text-slate-400",children:"Not assigned"})]}),x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3",children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase font-semibold mb-2",children:"Mentor"}),(Vn=ae.mentor)!=null&&Vn.name?x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xs font-bold",children:(ae.mentor.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ae.mentor.name}),ae.mentor.email&&x.jsx("p",{className:"text-[10px] text-slate-500",children:ae.mentor.email})]})]}):x.jsx("p",{className:"text-xs text-slate-400",children:"Not assigned"})]})]})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-3",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Examination Results"}),x.jsx("button",{onClick:()=>{const _e={};ne.forEach((mt,Et)=>{_e[Et]=!0}),fe(_e)},className:"text-xs text-indigo-600 transition-all duration-150 active:scale-[0.97]",children:"Expand All"})]}),ne.map((_e,mt)=>{const Et=_e.subjects.reduce((Nt,At)=>Nt+At.marks,0),Sr=_e.subjects.reduce((Nt,At)=>Nt+At.total,0),Yt=(Et/Sr*100).toFixed(1);return x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3 mb-2 transition-all duration-200 hover:shadow-sm",children:[x.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>Ae(mt),children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:_e.name}),x.jsxs("p",{className:"text-xs text-slate-500",children:[_e.subjects.length," subjects • ",Et,"/",Sr," • ",Yt,"%"]})]}),Y[mt]?x.jsx(Ge.ChevronUp,{className:"w-4 h-4 text-slate-400"}):x.jsx(Ge.ChevronDown,{className:"w-4 h-4 text-slate-400"})]}),Y[mt]&&x.jsx("div",{className:"overflow-x-auto rounded-lg border border-slate-200 mt-2",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[x.jsx("th",{className:"text-left py-1.5 px-2",children:"Subject"}),x.jsx("th",{className:"text-left py-1.5 px-2",children:"Marks"}),x.jsx("th",{className:"text-left py-1.5 px-2",children:"Percentage"}),x.jsx("th",{className:"text-left py-1.5 px-2",children:"Grade"})]})}),x.jsx("tbody",{children:_e.subjects.map(Nt=>x.jsxs("tr",{className:"border-t border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[x.jsx("td",{className:"py-1.5 px-2 text-slate-800",children:Nt.name}),x.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Nt.marks,"/",Nt.total]}),x.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Nt.marks,"%"]}),x.jsx("td",{className:"py-1.5 px-2",children:x.jsx("span",{className:`text-xs px-2.5 py-0.5 rounded-full font-semibold ${Nt.marks>=80?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"}`,children:Nt.grade})})]},Nt.name))})]})})]},mt)})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Performance Analysis"}),Ee.length>0?x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Average % by Subject"}),x.jsx(nx,{width:"100%",height:200,children:x.jsxs(Rie,{data:Ee,children:[x.jsx(I2,{strokeDasharray:"3 3"}),x.jsx(Fc,{dataKey:"subject",fontSize:11}),x.jsx(Dc,{domain:[0,100]}),x.jsx(da,{}),x.jsx(ul,{dataKey:"avg",fill:"#6366f1",radius:[4,4,0,0],name:"Avg %"})]})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject Strength"}),x.jsx(nx,{width:"100%",height:200,children:x.jsxs(Bie,{data:le,children:[x.jsx(i8,{}),x.jsx(bh,{dataKey:"subject",fontSize:11}),x.jsx(yh,{domain:[0,100]}),x.jsx(wh,{dataKey:"score",stroke:"#6366f1",fill:"#6366f1",fillOpacity:.3})]})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Performance Trend"}),x.jsx(nx,{width:"100%",height:200,children:x.jsxs(Die,{data:Re,children:[x.jsx(I2,{strokeDasharray:"3 3"}),x.jsx(Fc,{dataKey:"exam",fontSize:11}),x.jsx(Dc,{domain:[0,100]}),x.jsx(da,{}),x.jsx(Ws,{}),tt.map((_e,mt)=>x.jsx(_h,{type:"monotone",dataKey:_e,stroke:["#6366f1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"][mt%7],strokeWidth:2},_e))]})})]})]}):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No exam data for performance analysis"})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Parent Meeting History"}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600",children:[r.length," Meetings"]}),ee&&x.jsx(sr,{variant:"primary",size:"sm",onClick:ee,children:"+ Add Meeting"})]})]}),r.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No meetings yet"}),r.map((_e,mt)=>x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 hover:bg-slate-50",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:_e.type||"Meeting"}),x.jsxs("p",{className:"text-xs text-slate-500",children:[_e.date,_e.agenda?` • ${_e.agenda}`:""]}),_e.notes&&x.jsx("p",{className:"text-xs text-slate-500",children:_e.notes})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(q0,{status:_e.status||"Scheduled"}),(ce||O)&&x.jsxs("div",{className:"flex gap-1",children:[ce&&x.jsx("button",{onClick:()=>ce(_e),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),O&&x.jsx("button",{onClick:()=>O(_e),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]})]},_e.id||mt))]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Extra-Curricular Activities"}),z&&x.jsx(sr,{variant:"primary",size:"sm",onClick:z,children:"+ Add Activity"})]}),ve.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No activities yet"}),ve.map((_e,mt)=>x.jsx("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 transition-colors duration-150 hover:bg-slate-50",children:x.jsxs("div",{className:"flex justify-between items-center",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:_e.name}),x.jsx(q0,{status:_e.status||"Active"})]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[_e.activity_type,_e.role?` • ${_e.role}`:"",_e.since?` • Since ${_e.since}`:""]}),_e.achievement&&x.jsxs("p",{className:"text-xs text-slate-500",children:["Achievement: ",_e.achievement]})]}),(Q||Z)&&x.jsxs("div",{className:"flex gap-1",children:[Q&&x.jsx("button",{onClick:()=>Q(_e),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),Z&&x.jsx("button",{onClick:()=>Z(_e),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]})},_e.id||mt))]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Awards & Achievements"}),U&&x.jsx(sr,{variant:"primary",size:"sm",onClick:U,children:"+ Add Award"})]}),we.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards yet"}),we.map((_e,mt)=>x.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-2.5 mb-1.5 transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx(Ge.Trophy,{className:"w-4 h-4 text-amber-500"}),x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:_e.name||_e.title})]}),(W||R)&&x.jsxs("div",{className:"flex gap-1",children:[W&&x.jsx("button",{onClick:()=>W(_e),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),R&&x.jsx("button",{onClick:()=>R(_e),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[_e.category,_e.category&&_e.year?" • ":"",_e.year,_e.level?` • ${_e.level}`:"",_e.awarded_by?` • By: ${_e.awarded_by}`:""]}),_e.description&&x.jsx("p",{className:"text-xs text-slate-500",children:_e.description})]},_e.id||mt))]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Disciplinary Records"}),I&&x.jsxs("button",{onClick:I,className:"text-xs font-medium text-primary-600 hover:text-primary-700 flex items-center gap-1",children:[x.jsx(Ge.Plus,{className:"w-3 h-3"}),"Add"]})]}),a.length===0?x.jsxs("div",{className:"bg-gradient-to-br from-green-50 to-green-100 border border-green-200 rounded-xl p-3 flex items-center gap-2",children:[x.jsx(Ge.CheckCircle,{className:"w-5 h-5 text-green-500"}),x.jsx("p",{className:"text-sm text-slate-800",children:"Clean Record - No disciplinary issues reported"})]}):x.jsx("div",{className:"space-y-2",children:a.map(_e=>x.jsx("div",{className:"border border-slate-200 rounded-lg p-3 hover:bg-slate-50",children:x.jsxs("div",{className:"flex justify-between items-start",children:[x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${_e.severity==="High"?"bg-red-100 text-red-700":_e.severity==="Medium"?"bg-yellow-100 text-yellow-700":"bg-blue-100 text-blue-700"}`,children:_e.severity}),x.jsx("span",{className:"text-xs text-slate-500",children:_e.category}),x.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${_e.status==="Open"?"bg-orange-100 text-orange-700":_e.status==="Resolved"?"bg-green-100 text-green-700":"bg-slate-100 text-slate-700"}`,children:_e.status})]}),x.jsx("p",{className:"text-sm text-slate-800",children:_e.description}),x.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:[_e.incident_date,_e.action_taken?` • ${_e.action_taken}`:""]})]}),x.jsxs("div",{className:"flex gap-1 ml-2",children:[M&&x.jsx("button",{onClick:()=>M(_e),className:"p-1 text-slate-400 hover:text-primary-600",children:x.jsx(Ge.Pencil,{className:"w-3.5 h-3.5"})}),q&&x.jsx("button",{onClick:()=>q(_e),className:"p-1 text-slate-400 hover:text-red-500",children:x.jsx(Ge.Trash2,{className:"w-3.5 h-3.5"})})]})]})},_e.id))})]}),(e==null?void 0:e.transport)&&x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-3",children:"Transport Information"}),x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Transport Service"}),e.transport.enrolled?x.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-700",children:"Enrolled"}):x.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-600",children:"Not Enrolled"})]}),e.transport.enrolled&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Route"}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.route_name||"—"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Bus Number"}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.bus_number||"—"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Pickup Point"}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.pickup_point||"—"})]})]})]})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Fee Structure"}),x.jsx("div",{className:"flex gap-1",children:ae.type&&x.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-indigo-100 text-indigo-600",children:ae.type})})]}),x.jsx("div",{className:"overflow-x-auto rounded-xl border border-slate-200",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[x.jsx("th",{className:"text-left py-2 px-3",children:"Fee Component"}),x.jsx("th",{className:"text-left py-2 px-3",children:"Amount (₹)"}),x.jsx("th",{className:"text-left py-2 px-3",children:"Concession"}),x.jsx("th",{className:"text-left py-2 px-3",children:"Status"})]})}),x.jsxs("tbody",{children:[se.map(_e=>x.jsxs("tr",{className:"border-b border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[x.jsx("td",{className:"py-2 px-3 text-slate-800",children:_e.component}),x.jsxs("td",{className:"py-2 px-3 text-slate-800",children:["₹",(_e.amount||0).toLocaleString()]}),x.jsx("td",{className:"py-2 px-3 text-slate-800",children:_e.concession>0?x.jsxs("span",{className:"text-green-600",children:["-₹",_e.concession.toLocaleString()]}):"—"}),x.jsx("td",{className:"py-2 px-3",children:_e.status||_e.frequency})]},_e.component)),x.jsxs("tr",{className:"bg-slate-50",children:[x.jsx("td",{className:"py-2 px-3 font-bold text-slate-800",children:"Total"}),x.jsxs("td",{className:"py-2 px-3 font-bold text-slate-800",children:["₹",se.reduce((_e,mt)=>_e+(mt.amount||0),0).toLocaleString()]}),x.jsx("td",{className:"py-2 px-3 font-bold text-green-600",children:se.reduce((_e,mt)=>_e+(mt.concession||0),0)>0?`-₹${se.reduce((_e,mt)=>_e+(mt.concession||0),0).toLocaleString()}`:""}),x.jsx("td",{})]})]})]})})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Fee Payment History"}),x.jsx("div",{className:"grid grid-cols-3 gap-3 mb-3",children:(()=>{const _e=se.reduce((Sr,Yt)=>Sr+(Yt.amount||0),0),mt=Fe.reduce((Sr,Yt)=>Sr+(Yt.amount||0),0),Et=Math.max(0,_e-mt);return[{label:"Total Fees",value:`₹${_e.toLocaleString()}`,color:"text-slate-800"},{label:"Paid",value:`₹${mt.toLocaleString()}`,color:"text-green-500"},{label:"Due",value:`₹${Et.toLocaleString()}`,color:"text-red-500"}].map(Sr=>x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2 text-center transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[x.jsx("p",{className:"text-xs text-slate-500",children:Sr.label}),x.jsx("p",{className:`text-lg font-bold ${Sr.color}`,children:Sr.value})]},Sr.label))})()}),Fe.length>0?Fe.map((_e,mt)=>x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 hover:bg-slate-50",children:[x.jsxs("div",{children:[x.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["₹",(_e.amount||0).toLocaleString()," - ",_e.method||_e.payment_method||"-"]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[_e.date||_e.payment_date||"-",_e.ref||_e.reference?` • Ref: ${_e.ref||_e.reference}`:""]})]}),x.jsx(q0,{status:_e.status||"Paid"})]},mt)):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No payment history"})]})]}),P]})}function qie({teacher:e,assignments:t=[],onEdit:r,onResetPassword:n,onPrint:i,onExportPdf:a,onBack:o,breadcrumbItems:s,isLoading:l,children:c,editingSection:u=null,editForm:f={},onEditSection:d,onSaveSection:h,onCancelEdit:g,onFieldChange:p,isSaving:v=!1,onAwardAdd:y,onAwardEdit:b,onAwardDelete:_}){var B,j,N,D,U,W;if(l||!e)return x.jsx(PO,{});const S=e,A=((B=S.user)==null?void 0:B.full_name)||S.full_name||"",P=((j=S.user)==null?void 0:j.email)||S.email||"",T=((N=S.user)==null?void 0:N.phone)||S.phone||"",k=A.split(" ").map(R=>R[0]).join("").slice(0,2).toUpperCase(),L=[{label:"Total Classes",value:t.length||S.classes_count||0,icon:Ge.GraduationCap,color:"text-blue-600",bg:"bg-gradient-to-br from-blue-50 to-blue-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(59,130,246,0.3)]"},{label:"Periods/Week",value:S.total_periods_per_week||0,icon:Ge.ClipboardList,color:"text-amber-600",bg:"bg-gradient-to-br from-amber-50 to-amber-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(245,158,11,0.3)]"},{label:"Max Workload",value:S.max_workload_hours?`${S.max_workload_hours}h`:"-",icon:Ge.TrendingUp,color:"text-purple-600",bg:"bg-gradient-to-br from-purple-50 to-purple-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(147,51,234,0.3)]"}];return x.jsxs("div",{children:[x.jsx(gb,{items:s}),x.jsxs("div",{className:"flex justify-between items-center mb-4 mt-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("button",{onClick:o,className:"p-1.5 hover:bg-slate-100 rounded-lg transition-all duration-150 active:scale-[0.97]",children:x.jsx(Ge.ArrowLeft,{className:"w-5 h-5"})}),x.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-slate-900",children:"Teacher Profile"})]}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(sr,{variant:"secondary",size:"sm",icon:Ge.Printer,onClick:i,children:"Print"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ge.FileText,onClick:a,children:"Export PDF"}),x.jsx(sr,{variant:"primary",size:"sm",icon:Ge.Pencil,onClick:r,children:"Edit Profile"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ge.Key,onClick:n,children:"Reset Password"})]})]}),x.jsx("div",{id:"teacher-profile",className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:x.jsxs("div",{className:"flex justify-between items-start",children:[x.jsxs("div",{className:"flex gap-4 items-center",children:[x.jsx("div",{className:"w-[72px] h-[72px] rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-2xl font-bold shadow-sm",children:k}),x.jsxs("div",{children:[x.jsx("h2",{className:"text-xl font-bold text-slate-900",children:A}),x.jsxs("p",{className:"text-sm text-slate-500 mb-2",children:[S.primary_subject||((D=S.subjects)==null?void 0:D[0])||S.department||""," Teacher"]}),x.jsxs("div",{className:"flex gap-4 text-xs text-slate-600",children:[x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx("span",{className:"text-slate-400",children:"ID:"})," ",S.employee_id]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx(Ge.Mail,{className:"w-3 h-3 text-slate-400"}),P]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx(Ge.Phone,{className:"w-3 h-3 text-slate-400"}),T||"N/A"]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx(Ge.Calendar,{className:"w-3 h-3 text-slate-400"}),"Joined: ",S.joining_date||"N/A"]})]})]})]}),x.jsx("span",{className:"text-sm font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600 border border-green-200",children:S.max_workload_hours?`${S.max_workload_hours} hours/week`:"-"})]})}),x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mb-4",children:L.map(R=>x.jsxs("div",{className:`bg-white border border-slate-200 rounded-xl p-4 md:p-5 flex items-center gap-3 md:gap-4 transition-all duration-200 hover:-translate-y-1 ${R.glow} cursor-default group`,children:[x.jsx("div",{className:`${R.bg} p-2.5 md:p-3 rounded-xl transition-transform duration-200 group-hover:scale-110`,children:x.jsx(R.icon,{className:`w-5 h-5 ${R.color}`})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 font-medium",children:R.label}),x.jsx("p",{className:"text-xl md:text-2xl font-bold text-slate-900 mt-0.5",children:R.value})]})]},R.label))}),x.jsx(Wl,{title:"Professional Information",editButton:d&&!u&&x.jsxs("button",{onClick:()=>d("professional"),className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium flex items-center gap-1",children:[x.jsx(Ge.Pencil,{className:"w-3 h-3"}),"Edit"]}),highlight:u==="professional",children:u==="professional"&&p?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Qualification"}),x.jsx("input",{value:f.qualification||"",onChange:R=>p("qualification",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Primary Subject"}),x.jsx("input",{value:f.primary_subject||"",onChange:R=>p("primary_subject",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Max Workload (hrs/week)"}),x.jsx("input",{type:"number",value:f.max_workload_hours||"",onChange:R=>p("max_workload_hours",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Department"}),x.jsx("input",{value:f.department||"",onChange:R=>p("department",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Designation"}),x.jsx("input",{value:f.designation||"",onChange:R=>p("designation",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Employment Type"}),x.jsx(oo,{value:f.employment_type||"",onChange:R=>p("employment_type",R),options:[{value:"",label:"Select"},{value:"Full-time",label:"Full-time"},{value:"Part-time",label:"Part-time"},{value:"Contract",label:"Contract"}],placeholder:"Select..."})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:h,disabled:v,children:v?"Saving...":"Save"})]})]}):x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsx(Cr,{label:"Qualification",value:S.qualification||"-"}),x.jsx(Cr,{label:"Subject Specialization",value:Array.isArray(S.subjects)?S.subjects.map(R=>R.name||R).join(", ")||"-":S.primary_subject||"-"}),x.jsx(Cr,{label:"Designation",value:S.designation||"-"}),x.jsx(Cr,{label:"Teaching Load",value:S.max_workload_hours?`${S.max_workload_hours} hours per week`:"-"}),x.jsx(Cr,{label:"Department",value:S.department||"-"}),x.jsx(Cr,{label:"Employment Type",value:S.employment_type||"-"})]})}),x.jsx(Wl,{title:"Personal Information",editButton:d&&!u&&x.jsxs("button",{onClick:()=>d("personal"),className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium flex items-center gap-1",children:[x.jsx(Ge.Pencil,{className:"w-3 h-3"}),"Edit"]}),highlight:u==="personal",children:u==="personal"&&p?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Full Name"}),x.jsx("input",{value:f.full_name||"",onChange:R=>p("full_name",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Email"}),x.jsx("input",{value:f.email||"",onChange:R=>p("email",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Phone"}),x.jsx("input",{value:f.phone||"",onChange:R=>p("phone",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Gender"}),x.jsx(oo,{value:f.gender||"",onChange:R=>p("gender",R),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Date of Joining"}),x.jsx("input",{type:"date",value:f.joining_date||"",onChange:R=>p("joining_date",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Address"}),x.jsx("input",{value:f.address||"",onChange:R=>p("address",R.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:h,disabled:v,children:v?"Saving...":"Save"})]})]}):x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsx(Cr,{label:"Date of Birth",value:S.date_of_birth||"-"}),x.jsx(Cr,{label:"Date of Joining",value:S.joining_date||"-"}),x.jsx(Cr,{label:"Gender",value:S.gender||"-"}),x.jsx(Cr,{label:"Phone",value:((U=S.user)==null?void 0:U.phone)||S.phone||"-"}),x.jsx(Cr,{label:"Email",value:((W=S.user)==null?void 0:W.email)||S.email||"-"}),x.jsx(Cr,{label:"Address",value:[S.address_line1||S.address,S.city,S.state,S.pincode].filter(Boolean).join(", ")||"-"}),x.jsx(Cr,{label:"Emergency Contact",value:S.emergency_contact_name?`${S.emergency_contact_name} (${S.emergency_contact_relationship||""}) - ${S.emergency_contact_phone||""}`:"-"})]})}),x.jsx(Wl,{title:"Salary & Bank Details",children:x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsx(Cr,{label:"Basic Salary",value:S.basic_salary?`₹${Number(S.basic_salary).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"HRA",value:S.hra?`₹${Number(S.hra).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"DA",value:S.da?`₹${Number(S.da).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"Transport Allowance",value:S.ta?`₹${Number(S.ta).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"Other Allowances",value:S.other_allowances?`₹${Number(S.other_allowances).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"PF Deduction",value:S.pf_deduction?`₹${Number(S.pf_deduction).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"Tax Deduction",value:S.tax_deduction?`₹${Number(S.tax_deduction).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"Other Deductions",value:S.other_deductions?`₹${Number(S.other_deductions).toLocaleString()}`:"-"}),x.jsx(Cr,{label:"Bank Name",value:S.bank_name||"-"}),x.jsx(Cr,{label:"Account Number",value:S.account_number||"-"}),x.jsx(Cr,{label:"IFSC Code",value:S.ifsc_code||"-"}),x.jsx(Cr,{label:"PAN Number",value:S.pan_number||"-"})]})}),x.jsx(Wl,{title:"Leave Summary",children:x.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4",children:(S.leave_balances||[]).length>0?(S.leave_balances||[]).map((R,z)=>x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 rounded-xl p-3 transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[x.jsx("p",{className:"text-xs text-slate-500 font-medium",children:R.display_name||R.leave_type}),x.jsxs("div",{className:"flex items-baseline gap-1 mt-1",children:[x.jsx("span",{className:"text-2xl font-bold text-slate-800",children:R.used||0}),x.jsxs("span",{className:"text-sm text-slate-400",children:["/ ",R.total_allocated||0," days"]})]}),x.jsxs("p",{className:"text-[10px] text-slate-400 mt-0.5",children:["Remaining: ",R.remaining||0," | Pending: ",R.pending||0]}),x.jsx("div",{className:"w-full h-1.5 bg-slate-200 rounded-full mt-2",children:x.jsx("div",{className:`h-full ${["bg-blue-500","bg-red-500","bg-green-500","bg-amber-500","bg-purple-500"][z%5]} rounded-full transition-all duration-300`,style:{width:`${R.total_allocated>0?(R.used||0)/R.total_allocated*100:0}%`}})})]},R.leave_type||z)):x.jsx("div",{className:"col-span-3 text-center py-4 text-sm text-slate-400",children:"No leave data available"})})}),x.jsx(Wl,{title:"Current Teaching Schedule",children:t.length>0?x.jsx("div",{className:"rounded-lg border border-slate-200 overflow-hidden",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Class"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Section"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Subject"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Periods/Week"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Role"})]})}),x.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((R,z)=>x.jsxs("tr",{className:"hover:bg-slate-50/50",children:[x.jsx("td",{className:"px-4 py-2.5 font-medium text-slate-800",children:R.class_name}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:R.section}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:R.subject||"-"}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:R.periods_per_week||"-"}),x.jsx("td",{className:"px-4 py-2.5",children:R.is_class_teacher?x.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-emerald-100 text-emerald-700",children:"Class Teacher"}):x.jsx("span",{className:"text-xs text-slate-400",children:"Subject Teacher"})})]},z))})]})}):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No teaching schedule assigned"})}),x.jsx(Wl,{title:"Awards & Recognition",editButton:y&&x.jsx("button",{onClick:y,className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium",children:"+ Add Award"}),children:(S.awards||[]).length>0?(S.awards||[]).map((R,z)=>x.jsxs("div",{className:"flex gap-3 p-3 mb-2 bg-amber-50 border border-amber-200 rounded-xl transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[x.jsx(Ge.Trophy,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:R.title}),x.jsx("p",{className:"text-xs text-slate-500",children:R.awarded_by||R.org}),x.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:R.description||R.desc})]}),(b||_)&&x.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[b&&x.jsx("button",{onClick:()=>b(R),className:"text-xs text-indigo-600 hover:text-indigo-700 px-1",children:"Edit"}),_&&x.jsx("button",{onClick:()=>_(R),className:"text-xs text-red-600 hover:text-red-700 px-1",children:"Delete"})]})]},R.id||z)):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards recorded"})}),c]})}function Wl({title:e,badge:t,editButton:r,highlight:n,children:i}){return x.jsxs("div",{className:`bg-white border rounded-xl p-5 md:p-6 mb-4 transition-all duration-200 hover:shadow-md ${n?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[x.jsxs("div",{className:"flex justify-between items-center mb-4",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 uppercase tracking-wide",children:e}),r||t]}),i]})}function Cr({label:e,value:t}){return x.jsxs("div",{className:"mb-3",children:[x.jsx("p",{className:"text-[11px] text-slate-400 uppercase tracking-wide mb-0.5",children:e}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:t||"-"})]})}function Uie({open:e,onClose:t,title:r,steps:n,activeStep:i,onStepChange:a,onNext:o,onSubmit:s,isSubmitting:l,submitLabel:c="Submit",submitErrorMessage:u,size:f="3xl",children:d}){const[h,g]=G.useState(!1),p=async()=>{if(o){g(!0);const y=await o(i);if(g(!1),!y)return}a(i+1)},v=()=>{a(i-1)};return x.jsxs(sh,{open:e,onClose:t,title:r,size:f,children:[x.jsx("div",{className:"flex items-center justify-between mb-6 px-2",children:n.map((y,b)=>x.jsxs("div",{className:"flex items-center flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2.5",children:[x.jsx("div",{className:vt("w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold transition-all duration-200",b<i&&"bg-emerald-500 text-white",b===i&&"bg-primary-600 text-white shadow-md shadow-primary-200",b>i&&"bg-slate-100 text-slate-400"),children:b<i?"✓":y.icon||String(b+1)}),x.jsx("span",{className:vt("text-xs font-medium hidden sm:inline",b===i&&"text-primary-700",b<i&&"text-emerald-600",b>i&&"text-slate-400"),children:y.label})]}),b<n.length-1&&x.jsx("div",{className:vt("flex-1 h-0.5 mx-3 rounded",b<i?"bg-emerald-300":"bg-slate-200")})]},y.id))}),x.jsx("div",{className:"max-h-[55vh] overflow-y-auto pr-1 pb-4",children:d}),u&&x.jsx("p",{className:"text-sm text-red-600 bg-red-50 px-3 py-2 rounded-lg mt-3",children:u}),x.jsxs("div",{className:"flex items-center justify-between mt-6 pt-4 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",onClick:t,children:"Cancel"}),x.jsxs("div",{className:"flex items-center gap-2",children:[i>0&&x.jsx(sr,{variant:"secondary",onClick:v,children:"← Previous"}),i<n.length-1?x.jsx(sr,{variant:"primary",onClick:p,loading:h,children:"Next →"}):x.jsx(sr,{variant:"primary",onClick:s,loading:l,children:c})]})]})]})}function zie({school:e={},title:t,subtitle:r}){return x.jsxs("div",{className:"print-header border-b-2 border-slate-800 pb-4 mb-6",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[e.logo_url?x.jsx("img",{src:e.logo_url,alt:e.name,className:"w-16 h-16 object-contain rounded"}):x.jsx("div",{className:"w-16 h-16 bg-primary-100 rounded flex items-center justify-center text-primary-700 text-2xl font-bold",children:(e.name||"S").charAt(0)}),x.jsxs("div",{className:"flex-1 text-center",children:[x.jsx("h1",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:e.name||"School Name"}),e.affiliation&&x.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:e.affiliation}),e.address&&x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:e.address}),x.jsxs("div",{className:"flex items-center justify-center gap-3 mt-1 text-[10px] text-slate-500",children:[e.phone&&x.jsxs("span",{children:["📞 ",e.phone]}),e.email&&x.jsxs("span",{children:["✉ ",e.email]}),e.website&&x.jsxs("span",{children:["🌐 ",e.website]})]})]}),x.jsx("div",{className:"w-16"})]}),t&&x.jsxs("div",{className:"text-center mt-3 pt-3 border-t border-slate-200",children:[x.jsx("h2",{className:"text-sm font-bold text-slate-800 uppercase tracking-wider",children:t}),r&&x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:r})]})]})}exports.Badge=q0;exports.Breadcrumb=gb;exports.Button=sr;exports.Card=jB;exports.CardContent=kB;exports.CardHeader=CB;exports.CardTitle=LB;exports.ChangePasswordModal=N$;exports.Checkbox=r$;exports.ConfirmDialog=e$;exports.DataTable=RB;exports.DateInput=l$;exports.DatePicker=CO;exports.DateRangePicker=p$;exports.EmptyState=b$;exports.ErrorBoundary=v$;exports.FilterBar=jO;exports.HoverCard=y$;exports.Input=EO;exports.LoginPage=E$;exports.Modal=sh;exports.MultiStepFormModal=Uie;exports.NetworkStatus=g$;exports.Pagination=T$;exports.PrintHeader=zie;exports.ProfileHeader=O$;exports.ProfileInfoGrid=j$;exports.ProtectedRoute=HB;exports.RecentActivities=GB;exports.ResetPasswordModal=P$;exports.SearchInput=NO;exports.SearchableSelect=oo;exports.SectionCard=w$;exports.Select=MB;exports.SessionTimeout=_$;exports.Sidebar=$B;exports.Skeleton=Zn;exports.SkeletonCard=zB;exports.SkeletonDashboard=PO;exports.SkeletonTable=WB;exports.SortableHeader=x$;exports.StudentDetailView=$ie;exports.Tabs=t$;exports.TeacherDetailView=qie;exports.TimeInput=m$;exports.TimetableGrid=A$;exports.ToastProvider=ZB;exports.Topbar=UB;exports._typeof=cr;exports.cn=vt;exports.commonjsGlobal=Yl;exports.exportMultiSheetExcel=mB;exports.exportToCsv=yk;exports.exportToExcel=pB;exports.generateAttendanceReport=TL;exports.generateFeeReceipt=AL;exports.generatePdf=_L;exports.generateStudentReportCard=SL;exports.getDefaultExportFromCjs=ur;exports.useClassSectionFilter=NB;exports.useFormDraft=xB;exports.useKeyboardShortcuts=gB;exports.useLocalStorage=vB;exports.usePagination=EB;exports.useRecentlyViewed=bB;exports.useSortableData=SB;exports.useTabState=wB;exports.useToast=QB;