school-erp-ui-shared 1.0.32 → 1.0.33

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,450 @@
1
+ "use strict";const W=require("react"),H8=require("@tanstack/react-query"),x=require("react/jsx-runtime"),$e=require("lucide-react"),ns=require("react-router-dom"),G8=require("react-dom");function V8(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=V8(W);function _E(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=_E(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=_E(e))&&(n&&(n+=" "),n+=t);return n}const V2="-",Y8=e=>{const t=X8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(V2);return s[0]===""&&s.length!==1&&s.shift(),SE(s,t)||K8(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},SE=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?SE(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(V2);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},J5=/^\[(.+)\]$/,K8=e=>{if(J5.test(e)){const t=J5.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},X8=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Z8(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:Z5(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(J8(i)){oy(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{oy(o,Z5(t,a),r,n)})})},Z5=(e,t)=>{let r=e;return t.split(V2).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},J8=e=>e.isThemeGetter,Z8=(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,Q8=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)}}},AE="!",ek=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 m=0;m<s.length;m++){let y=s[m];if(c===0){if(y===i&&(n||s.slice(m,m+a)===t)){l.push(s.slice(u,m)),u=m+a;continue}if(y==="/"){f=m;continue}}y==="["?c++:y==="]"&&c--}const d=l.length===0?s:s.substring(u),h=d.startsWith(AE),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},tk=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},rk=e=>({cache:Q8(e.cacheSize),parseClassName:ek(e),...Y8(e)}),nk=/\s+/,ik=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(nk);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 m=tk(u).join(":"),y=f?m+AE:m,b=y+p;if(a.includes(b))continue;a.push(b);const w=i(p,g);for(let S=0;S<w.length;++S){const A=w[S];a.push(y+A)}s=c+(s.length>0?" "+s:s)}return s};function ak(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=TE(t))&&(n&&(n+=" "),n+=r);return n}const TE=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=TE(e[n]))&&(r&&(r+=" "),r+=t);return r};function ok(e,...t){let r,n,i,a=o;function o(l){const c=t.reduce((u,f)=>f(u),e());return r=rk(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=ik(l,r);return i(l,u),u}return function(){return a(ak.apply(null,arguments))}}const jr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},NE=/^\[(?:([a-z-]+):)?(.+)\]$/i,sk=/^\d+\/\d+$/,lk=new Set(["px","full","screen"]),ck=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uk=/\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$/,fk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ro=e=>tc(e)||lk.has(e)||sk.test(e),zo=e=>qc(e,"length",wk),tc=e=>!!e&&!Number.isNaN(Number(e)),k1=e=>qc(e,"number",tc),Pu=e=>!!e&&Number.isInteger(Number(e)),pk=e=>e.endsWith("%")&&tc(e.slice(0,-1)),Bt=e=>NE.test(e),Wo=e=>ck.test(e),mk=new Set(["length","size","percentage"]),vk=e=>qc(e,mk,EE),gk=e=>qc(e,"position",EE),xk=new Set(["image","url"]),yk=e=>qc(e,xk,Sk),bk=e=>qc(e,"",_k),Ou=()=>!0,qc=(e,t,r)=>{const n=NE.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},wk=e=>uk.test(e)&&!fk.test(e),EE=()=>!1,_k=e=>hk.test(e),Sk=e=>dk.test(e),Ak=()=>{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"),m=jr("margin"),y=jr("opacity"),b=jr("padding"),w=jr("saturate"),S=jr("scale"),A=jr("sepia"),O=jr("skew"),T=jr("space"),k=jr("translate"),L=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",Bt,t],E=()=>[Bt,t],D=()=>["",ro,zo],U=()=>["auto",tc,Bt],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["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"],te=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Bt],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[tc,Bt];return{cacheSize:500,separator:":",theme:{colors:[Ou],spacing:[ro,zo],blur:["none","",Wo,Bt],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Wo,Bt],borderSpacing:E(),borderWidth:D(),contrast:ce(),grayscale:Z(),hueRotate:ce(),invert:Z(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[pk,zo],inset:j(),margin:j(),opacity:ce(),padding:E(),saturate:ce(),scale:ce(),sepia:Z(),skew:ce(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Bt]}],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:[...H(),Bt]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],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",Pu,Bt]}],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",Bt]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Pu,Bt]}],"grid-cols":[{"grid-cols":[Ou]}],"col-start-end":[{col:["auto",{span:["full",Pu,Bt]},Bt]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Ou]}],"row-start-end":[{row:["auto",{span:[Pu,Bt]},Bt]}],"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",Bt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Bt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"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",Bt,t]}],"min-w":[{"min-w":[Bt,t,"min","max","fit"]}],"max-w":[{"max-w":[Bt,t,"none","full","min","max","fit","prose",{screen:[Wo]},Wo]}],h:[{h:[Bt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Bt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Bt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Bt,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:[Ou]}],"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",Bt]}],"line-clamp":[{"line-clamp":["none",tc,k1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ro,Bt]}],"list-image":[{"list-image":["none",Bt]}],"list-style-type":[{list:["none","disc","decimal",Bt]}],"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:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ro,zo]}],"underline-offset":[{"underline-offset":["auto",ro,Bt]}],"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:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Bt]}],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",Bt]}],"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:[...H(),gk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yk]}],"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:[...B(),"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:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[ro,Bt]}],"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,bk]}],"shadow-color":[{shadow:[Ou]}],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,Bt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],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":[w]}],"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",Bt]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",Bt]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",Bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Pu,Bt]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Bt]}],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",Bt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",Bt]}],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"]}}},Tk=ok(Ak);function gt(...e){return Tk(Dt(e))}function Nk(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,Y2=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]),PE=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 Y2(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}},OE=PE(op,2),jE=OE.b,ly=OE.r;jE[28]=258,ly[258]=28;var CE=PE(sp,0),Ek=CE.b,Q5=CE.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 ff=new Wn(32);for(var Lr=0;Lr<32;++Lr)ff[Lr]=5;var Pk=Ma(as,9,0),Ok=Ma(as,9,1),jk=Ma(ff,5,0),Ck=Ma(ff,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)},K2=function(e){return(e+7)/8|0},kE=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Wn(e.subarray(t,r))},kk=["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||kk[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,ha),!r)throw n;return n},Lk=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(be){var se=r.length;if(be>se){var Le=new Wn(Math.max(se*2,be));Le.set(r),r=Le}},u=t.f||0,f=t.p||0,d=t.b||0,h=t.l,g=t.d,p=t.m,m=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=Ok,g=Ck,p=9,m=5;else if(b==2){var O=sa(e,f,31)+257,T=sa(e,f+10,15)+4,k=O+sa(e,f+5,31)+1;f+=14;for(var L=new Wn(k),R=new Wn(19),j=0;j<T;++j)R[sy[j]]=sa(e,f+j*3,7);f+=T*3;for(var E=L1(R),D=(1<<E)-1,U=Ma(R,E,1),j=0;j<k;){var H=U[sa(e,f,D)];f+=H&15;var w=H>>4;if(w<16)L[j++]=w;else{var B=0,z=0;for(w==16?(z=3+sa(e,f,3),f+=2,B=L[j-1]):w==17?(z=3+sa(e,f,7),f+=3):w==18&&(z=11+sa(e,f,127),f+=7);z--;)L[j++]=B}}var te=L.subarray(0,O),Z=L.subarray(O);p=L1(te),m=L1(Z),h=Ma(te,p,1),g=Ma(Z,m,1)}else ha(1);else{var w=K2(f)+4,S=e[w-4]|e[w-3]<<8,A=w+S;if(A>i){l&&ha(0);break}s&&c(d+S),r.set(e.subarray(w,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<<m)-1,P=f;;P=f){var B=h[I1(e,f)&ee],I=B>>4;if(f+=B&15,f>y){l&&ha(0);break}if(B||ha(2),I<256)r[d++]=I;else if(I==256){P=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)+jE[j],f+=q}var Y=g[I1(e,f)&ce],fe=Y>>4;Y||ha(3),f+=Y&15;var Z=Ek[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 ne=d+M;if(d<Z){var K=a-Z,he=Math.min(Z,ne);for(K+d<0&&ha(3);d<he;++d)r[d]=n[K+d]}for(;d<ne;++d)r[d]=r[d-Z]}}t.l=h,t.p=P,t.b=d,t.f=u,h&&(u=1,t.m=p,t.d=g,t.n=m)}while(!u);return d!=r.length&&o?kE(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},ju=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:IE,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,O){return A.f-O.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,m=g-t,y=1<<m;for(a.sort(function(O,T){return h[T.s]-h[O.s]||O.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>>=m;p>0;){var w=a[n].s;h[w]<t?p-=1<<t-h[w]++-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},ew=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}},Cu=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},LE=function(e,t,r){var n=r.length,i=K2(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},tw=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,m=g.l,y=ew(d),b=y.c,w=y.n,S=ew(p),A=S.c,O=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),R=L.t,j=L.l,E=19;E>4&&!R[sy[E-1]];--E);var D=c+5<<3,U=Cu(i,as)+Cu(a,ff)+o,H=Cu(i,d)+Cu(a,p)+o+14+3*E+Cu(T,R)+2*T[16]+3*T[17]+7*T[18];if(l>=0&&D<=U&&D<=H)return LE(t,u,e.subarray(l,l+c));var B,z,te,Z;if(no(t,u,1+(H<U)),u+=2,H<U){B=Ma(d,h,0),z=d,te=Ma(p,m,0),Z=p;var ee=Ma(R,j,0);no(t,u,w-257),no(t,u+5,O-1),no(t,u+10,E-4),u+=14;for(var k=0;k<E;++k)no(t,u+3*k,R[sy[k]]);u+=3*E;for(var ce=[b,A],P=0;P<2;++P)for(var I=ce[P],k=0;k<I.length;++k){var M=I[k]&31;no(t,u,ee[M]),u+=R[M],M>15&&(no(t,u,I[k]>>5&127),u+=I[k]>>12)}}else B=Pk,z=as,te=jk,Z=ff;for(var k=0;k<s;++k){var q=n[k];if(q>255){var M=q>>18&31;ju(t,u,B[M+257]),u+=z[M+257],M>7&&(no(t,u,q>>23&31),u+=op[M]);var Y=q&31;ju(t,u,te[Y]),u+=Z[Y],Y>3&&(ju(t,u,q>>5&8191),u+=sp[Y])}else ju(t,u,B[q]),u+=z[q]}return ju(t,u,B[256]),u+z[256]},Ik=new Y2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),IE=new Wn(0),Fk=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=Ik[t-1],d=f>>13,h=f&8191,g=(1<<r)-1,p=a.p||new ki(32768),m=a.h||new ki(g+1),y=Math.ceil(r/3),b=2*y,w=function(Se){return(e[Se]^e[Se+1]<<y^e[Se+2]<<b)&g},S=new Y2(25e3),A=new ki(288),O=new ki(32),T=0,k=0,L=a.i||0,R=0,j=a.w||0,E=0;L+2<o;++L){var D=w(L),U=L&32767,H=m[D];if(p[U]=H,m[D]=U,j<=L){var B=o-L;if((T>7e3||R>24576)&&(B>423||!c)){u=tw(e,l,0,S,A,O,k,R,E,L-E,u),R=T=k=0,E=L;for(var z=0;z<286;++z)A[z]=0;for(var z=0;z<30;++z)O[z]=0}var te=2,Z=0,ee=h,ce=U-H&32767;if(B>2&&D==w(L-ce))for(var P=Math.min(d,B)-1,I=Math.min(32767,L),M=Math.min(258,B);ce<=I&&--ee&&U!=H;){if(e[L+te]==e[L+te-ce]){for(var q=0;q<M&&e[L+q]==e[L+q-ce];++q);if(q>te){if(te=q,Z=ce,q>P)break;for(var Y=Math.min(ce,q-2),fe=0,z=0;z<Y;++z){var ne=L-ce+z&32767,K=p[ne],he=ne-K&32767;he>fe&&(fe=he,H=ne)}}}U=H,H=p[U],ce+=U-H&32767}if(Z){S[R++]=268435456|ly[te]<<18|Q5[Z];var be=ly[te]&31,se=Q5[Z]&31;k+=op[be]+sp[se],++A[257+be],++O[se],j=L+te,++T}else S[R++]=e[L],++A[e[L]]}}for(L=Math.max(L,j);L<o;++L)S[R++]=e[L],++A[e[L]];u=tw(e,l,c,S,A,O,k,R,E,L-E,u),c||(a.r=u&7|l[u/8|0]<<3,u-=7,a.h=m,a.p=p,a.i=L,a.w=j)}else{for(var L=a.w||0;L<o+c;L+=65535){var Le=L+65535;Le>=o&&(l[u/8|0]=c,Le=o),u=LE(l,u+1,e.subarray(L,Le))}a.i=o}return kE(s,0,n+K2(u)+i)},FE=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}}},Mk=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 Fk(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)},ME=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Dk=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=FE();i.p(t.dictionary),ME(e,2,i.d())}},Rk=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=FE();r.p(e);var n=Mk(e,t,t.dictionary?6:2,4);return Dk(n,t),ME(n,n.length-4,r.d()),n}function Bk(e,t){return Lk(e.subarray(Rk(e),-4),{i:2},t,t)}var $k=typeof TextDecoder<"u"&&new TextDecoder,qk=0;try{$k.decode(IE,{stream:!0}),qk=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 Et=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function M1(){Et.console&&typeof Et.console.log=="function"&&Et.console.log.apply(Et.console,arguments)}var Ar={log:M1,warn:function(e){Et.console&&(typeof Et.console.warn=="function"?Et.console.warn.apply(Et.console,arguments):M1.call(null,arguments))},error:function(e){Et.console&&(typeof Et.console.error=="function"?Et.console.error.apply(Et.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(){Ar.error("could not download file")},n.send()}function rw(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function fh(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 Gu,hy,Ps=Et.saveAs||((typeof window>"u"?"undefined":cr(window))!=="object"||window!==Et?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Et.URL||Et.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?rw(i.href)?D1(e,t,r):fh(i,i.target="_blank"):fh(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){fh(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(rw(e))D1(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){fh(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:cr(a)!=="object"&&(Ar.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(Et.HTMLElement)||Et.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=Et.URL||Et.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 DE(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 RE(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)R1(n,Uk(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 Uk(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}Gu=Et.atob.bind(Et),hy=Et.btoa.bind(Et);var nw="0123456789abcdef".split("");function zk(e){for(var t="",r=0;r<4;r++)t+=nw[e>>8*r+4&15]+nw[e>>8*r&15];return t}function Wk(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function dy(e){return RE(e).map(Wk).join("")}var Hk=(function(e){for(var t=0;t<e.length;t++)e[t]=zk(e[t]);return e.join("")})(RE("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jo(e,t){if(Hk){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 iw={print:4,modify:8,copy:16,"annot-forms":32};function Gl(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach((function(s){if(iw.perm!==void 0)throw new Error("Invalid permission: "+s);i+=iw[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 Vl(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 aw(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){Et.console&&Ar.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function hf(e){if(!(this instanceof hf))return new hf(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 BE(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,BE.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,BE.call(this,n,i)}function yt(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=aw;var g="1.3",p=h.__private__.getPdfVersion=function(){return g};h.__private__.setPdfVersion=function(N){g=N};var m={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 m};var y=h.__private__.getPageFormat=function(N){return m[N]};i=i||"a4";var b={COMPAT:"compat",ADVANCED:"advanced"},w=b.COMPAT;function S(){this.saveGraphicsState(),le(new St(at,0,0,-at,0,Co()*at).toString()+" cm"),this.setFontSize(this.getFontSize()/at),c="n",w=b.ADVANCED}function A(){this.restoreGraphicsState(),c="S",w=b.COMPAT}var O=h.__private__.combineFontStyleAndFontWeight=function(N,V){if(N=="bold"&&V=="normal"||N=="bold"&&V==400||N=="normal"&&V=="italic"||N=="bold"&&V=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return V&&(N=V==400||V==="normal"?N==="italic"?"italic":"normal":V!=700&&V!=="bold"||N!=="normal"?(V==700?"bold":V)+""+N:"bold"),N};h.advancedAPI=function(N){var V=w===b.COMPAT;return V&&S.call(this),typeof N!="function"||(N(this),V&&A.call(this)),this},h.compatAPI=function(N){var V=w===b.ADVANCED;return V&&A.call(this),typeof N!="function"||(N(this),V&&S.call(this)),this},h.isAdvancedAPI=function(){return w===b.ADVANCED};var T,k=function(N){if(w!==b.ADVANCED)throw new Error(N+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=h.roundToPrecision=h.__private__.roundToPrecision=function(N,V){var ve=t||V;if(isNaN(N)||isNaN(ve))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return N.toFixed(ve).replace(/0+$/,"")};T=h.hpf=h.__private__.hpf=typeof l=="number"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return L(N,l)}:l==="smart"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return L(N,N>-1&&N<1?16:5)}:function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return L(N,16)};var R=h.f2=h.__private__.f2=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f2");return L(N,2)},j=h.__private__.f3=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f3");return L(N,3)},E=h.scale=h.__private__.scale=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.scale");return w===b.COMPAT?N*at:w===b.ADVANCED?N:void 0},D=function(N){return w===b.COMPAT?Co()-N:w===b.ADVANCED?N:void 0},U=function(N){return E(D(N))};h.__private__.setPrecision=h.setPrecision=function(N){typeof parseInt(N,10)=="number"&&(t=parseInt(N,10))};var H,B="00000000000000000000000000000000",z=h.__private__.getFileId=function(){return B},te=h.__private__.setFileId=function(N){return B=N!==void 0&&/^[a-fA-F0-9]{32}$/.test(N)?N.toUpperCase():B.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),u!==null&&(Mn=new Gl(u.userPermissions,u.userPassword,u.ownerPassword,B)),B};h.setFileId=function(N){return te(N),this},h.getFileId=function(){return z()};var Z=h.__private__.convertDateToPDFDate=function(N){var V=N.getTimezoneOffset(),ve=V<0?"+":"-",ge=Math.floor(Math.abs(V/60)),Te=Math.abs(V%60),De=[ve,M(ge),"'",M(Te),"'"].join("");return["D:",N.getFullYear(),M(N.getMonth()+1),M(N.getDate()),M(N.getHours()),M(N.getMinutes()),M(N.getSeconds()),De].join("")},ee=h.__private__.convertPDFDateToDate=function(N){var V=parseInt(N.substr(2,4),10),ve=parseInt(N.substr(6,2),10)-1,ge=parseInt(N.substr(8,2),10),Te=parseInt(N.substr(10,2),10),De=parseInt(N.substr(12,2),10),Ve=parseInt(N.substr(14,2),10);return new Date(V,ve,ge,Te,De,Ve,0)},ce=h.__private__.setCreationDate=function(N){var V;if(N===void 0&&(N=new Date),N instanceof Date)V=Z(N);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(N))throw new Error("Invalid argument passed to jsPDF.setCreationDate");V=N}return H=V},P=h.__private__.getCreationDate=function(N){var V=H;return N==="jsDate"&&(V=ee(H)),V};h.setCreationDate=function(N){return ce(N),this},h.getCreationDate=function(N){return P(N)};var I,M=h.__private__.padd2=function(N){return("0"+parseInt(N)).slice(-2)},q=h.__private__.padd2Hex=function(N){return("00"+(N=N.toString())).substr(N.length)},Y=0,fe=[],ne=[],K=0,he=[],be=[],se=!1,Le=ne,Se=function(){Y=0,K=0,ne=[],fe=[],he=[],ae=Rr(),oe=Rr()};h.__private__.setCustomOutputDestination=function(N){se=!0,Le=N};var Ae=function(N){se||(Le=N)};h.__private__.resetCustomOutputDestination=function(){se=!1,Le=ne};var le=h.__private__.out=function(N){return N=N.toString(),K+=N.length+1,Le.push(N),Le},Me=h.__private__.write=function(N){return le(arguments.length===1?N.toString():Array.prototype.join.call(arguments," "))},Qe=h.__private__.getArrayBuffer=function(N){for(var V=N.length,ve=new ArrayBuffer(V),ge=new Uint8Array(ve);V--;)ge[V]=N.charCodeAt(V);return ve},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(N){return Ke=w===b.ADVANCED?N/at:N,this};var Ze,Je=h.__private__.getFontSize=h.getFontSize=function(){return w===b.COMPAT?Ke:Ke*at},dt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(N){return dt=N,this},h.__private__.getR2L=h.getR2L=function(){return dt};var vt,wt=h.__private__.setZoomMode=function(N){var V=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(N))Ze=N;else if(isNaN(N)){if(V.indexOf(N)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+N+'" is not recognized.');Ze=N}else Ze=parseInt(N,10)};h.__private__.getZoomMode=function(){return Ze};var Pt,It=h.__private__.setPageMode=function(N){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(N)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+N+'" is not recognized.');vt=N};h.__private__.getPageMode=function(){return vt};var Ut=h.__private__.setLayoutMode=function(N){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(N)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+N+'" is not recognized.');Pt=N};h.__private__.getLayoutMode=function(){return Pt},h.__private__.setDisplayMode=h.setDisplayMode=function(N,V,ve){return wt(N),Ut(V),It(ve),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(N){if(Object.keys(_t).indexOf(N)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[N]},h.__private__.getDocumentProperties=function(){return _t},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(N){for(var V in _t)_t.hasOwnProperty(V)&&N[V]&&(_t[V]=N[V]);return this},h.__private__.setDocumentProperty=function(N,V){if(Object.keys(_t).indexOf(N)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[N]=V};var Ft,at,Dr,zt,An,Kt={},fr={},Vn=[],Ht={},Pe={},ct={},Wt={},Or=null,Nt=0,ht=[],Gt=new aw(h),Ha=e.hotfixes||[],ln={},Ii={},Fi=[],St=function N(V,ve,ge,Te,De,Ve){if(!(this instanceof N))return new N(V,ve,ge,Te,De,Ve);isNaN(V)&&(V=1),isNaN(ve)&&(ve=0),isNaN(ge)&&(ge=0),isNaN(Te)&&(Te=1),isNaN(De)&&(De=0),isNaN(Ve)&&(Ve=0),this._matrix=[V,ve,ge,Te,De,Ve]};Object.defineProperty(St.prototype,"sx",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(St.prototype,"shy",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(St.prototype,"shx",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(St.prototype,"sy",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(St.prototype,"tx",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(St.prototype,"ty",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(St.prototype,"a",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(St.prototype,"b",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(St.prototype,"c",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(St.prototype,"d",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(St.prototype,"e",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(St.prototype,"f",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(St.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(St.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(St.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(St.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),St.prototype.join=function(N){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(N)},St.prototype.multiply=function(N){var V=N.sx*this.sx+N.shy*this.shx,ve=N.sx*this.shy+N.shy*this.sy,ge=N.shx*this.sx+N.sy*this.shx,Te=N.shx*this.shy+N.sy*this.sy,De=N.tx*this.sx+N.ty*this.shx+this.tx,Ve=N.tx*this.shy+N.ty*this.sy+this.ty;return new St(V,ve,ge,Te,De,Ve)},St.prototype.decompose=function(){var N=this.sx,V=this.shy,ve=this.shx,ge=this.sy,Te=this.tx,De=this.ty,Ve=Math.sqrt(N*N+V*V),ut=(N/=Ve)*ve+(V/=Ve)*ge;ve-=N*ut,ge-=V*ut;var xt=Math.sqrt(ve*ve+ge*ge);return ut/=xt,N*(ge/=xt)<V*(ve/=xt)&&(N=-N,V=-V,ut=-ut,Ve=-Ve),{scale:new St(Ve,0,0,xt,0,0),translate:new St(1,0,0,1,Te,De),rotate:new St(N,V,-V,N,0,0),skew:new St(1,0,ut,1,0,0)}},St.prototype.toString=function(N){return this.join(" ")},St.prototype.inversed=function(){var N=this.sx,V=this.shy,ve=this.shx,ge=this.sy,Te=this.tx,De=this.ty,Ve=1/(N*ge-V*ve),ut=ge*Ve,xt=-V*Ve,Mt=-ve*Ve,kt=N*Ve;return new St(ut,xt,Mt,kt,-ut*Te-Mt*De,-xt*Te-kt*De)},St.prototype.applyToPoint=function(N){var V=N.x*this.sx+N.y*this.shx+this.tx,ve=N.x*this.shy+N.y*this.sy+this.ty;return new xl(V,ve)},St.prototype.applyToRectangle=function(N){var V=this.applyToPoint(N),ve=this.applyToPoint(new xl(N.x+N.w,N.y+N.h));return new lu(V.x,V.y,ve.x-V.x,ve.y-V.y)},St.prototype.clone=function(){var N=this.sx,V=this.shy,ve=this.shx,ge=this.sy,Te=this.tx,De=this.ty;return new St(N,V,ve,ge,Te,De)},h.Matrix=St;var xi=h.matrixMult=function(N,V){return V.multiply(N)},ai=new St(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=ai;var Fn=function(N,V){if(!Pe[N]){var ve=(V instanceof Ko?"Sh":"P")+(Object.keys(Ht).length+1).toString(10);V.id=ve,Pe[N]=ve,Ht[ve]=V,Gt.publish("addPattern",V)}};h.ShadingPattern=Ko,h.TilingPattern=Ls,h.addShadingPattern=function(N,V){return k("addShadingPattern()"),Fn(N,V),this},h.beginTilingPattern=function(N){k("beginTilingPattern()"),B0(N.boundingBox[0],N.boundingBox[1],N.boundingBox[2]-N.boundingBox[0],N.boundingBox[3]-N.boundingBox[1],N.matrix)},h.endTilingPattern=function(N,V){k("endTilingPattern()"),V.stream=be[I].join(`
81
+ `),Fn(N,V),Gt.publish("endTilingPattern",V),Fi.pop().restore()};var Hr=h.__private__.newObject=function(){var N=Rr();return J(N,!0),N},Rr=h.__private__.newObjectDeferred=function(){return Y++,fe[Y]=function(){return K},Y},J=function(N,V){return V=typeof V=="boolean"&&V,fe[N]=K,V&&le(N+" 0 obj"),N},pe=h.__private__.newAdditionalObject=function(){var N={objId:Rr(),content:""};return he.push(N),N},ae=Rr(),oe=Rr(),de=h.__private__.decodeColorString=function(N){var V=N.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 ve=parseFloat(V[0]);V=[ve,ve,ve,"r"]}for(var ge="#",Te=0;Te<3;Te++)ge+=("0"+Math.floor(255*parseFloat(V[Te])).toString(16)).slice(-2);return ge},me=h.__private__.encodeColorString=function(N){var V;typeof N=="string"&&(N={ch1:N});var ve=N.ch1,ge=N.ch2,Te=N.ch3,De=N.ch4,Ve=N.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ve=="string"&&ve.charAt(0)!=="#"){var ut=new DE(ve);if(ut.ok)ve=ut.toHex();else if(!/^\d*\.?\d*$/.test(ve))throw new Error('Invalid color "'+ve+'" passed to jsPDF.encodeColorString.')}if(typeof ve=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ve)&&(ve="#"+ve[1]+ve[1]+ve[2]+ve[2]+ve[3]+ve[3]),typeof ve=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ve)){var xt=parseInt(ve.substr(1),16);ve=xt>>16&255,ge=xt>>8&255,Te=255&xt}if(ge===void 0||De===void 0&&ve===ge&&ge===Te)if(typeof ve=="string")V=ve+" "+Ve[0];else switch(N.precision){case 2:V=R(ve/255)+" "+Ve[0];break;case 3:default:V=j(ve/255)+" "+Ve[0]}else if(De===void 0||cr(De)==="object"){if(De&&!isNaN(De.a)&&De.a===0)return V=["1.","1.","1.",Ve[1]].join(" ");if(typeof ve=="string")V=[ve,ge,Te,Ve[1]].join(" ");else switch(N.precision){case 2:V=[R(ve/255),R(ge/255),R(Te/255),Ve[1]].join(" ");break;default:case 3:V=[j(ve/255),j(ge/255),j(Te/255),Ve[1]].join(" ")}}else if(typeof ve=="string")V=[ve,ge,Te,De,Ve[2]].join(" ");else switch(N.precision){case 2:V=[R(ve),R(ge),R(Te),R(De),Ve[2]].join(" ");break;case 3:default:V=[j(ve),j(ge),j(Te),j(De),Ve[2]].join(" ")}return V},Ee=h.__private__.getFilters=function(){return o},Ie=h.__private__.putStream=function(N){var V=(N=N||{}).data||"",ve=N.filters||Ee(),ge=N.alreadyAppliedFilters||[],Te=N.addLength1||!1,De=V.length,Ve=N.objectId,ut=function(Dn){return Dn};if(u!==null&&Ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ut=Mn.encryptor(Ve,0));var xt={};ve===!0&&(ve=["FlateEncode"]);var Mt=N.additionalKeyValues||[],kt=(xt=yt.API.processDataByFilters!==void 0?yt.API.processDataByFilters(V,ve):{data:V,reverseChain:[]}).reverseChain+(Array.isArray(ge)?ge.join(" "):ge.toString());if(xt.data.length!==0&&(Mt.push({key:"Length",value:xt.data.length}),Te===!0&&Mt.push({key:"Length1",value:De})),kt.length!=0)if(kt.split("/").length-1==1)Mt.push({key:"Filter",value:kt});else{Mt.push({key:"Filter",value:"["+kt+"]"});for(var Yt=0;Yt<Mt.length;Yt+=1)if(Mt[Yt].key==="DecodeParms"){for(var Mr=[],Br=0;Br<xt.reverseChain.split("/").length-1;Br+=1)Mr.push("null");Mr.push(Mt[Yt].value),Mt[Yt].value="["+Mr.join(" ")+"]"}}le("<<");for(var Qr=0;Qr<Mt.length;Qr++)le("/"+Mt[Qr].key+" "+Mt[Qr].value);le(">>"),xt.data.length!==0&&(le("stream"),le(ut(xt.data)),le("endstream"))},Ne=h.__private__.putPage=function(N){var V=N.number,ve=N.data,ge=N.objId,Te=N.contentsObjId;J(ge,!0),le("<</Type /Page"),le("/Parent "+N.rootDictionaryObjId+" 0 R"),le("/Resources "+N.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(T(N.mediaBox.bottomLeftX))+" "+parseFloat(T(N.mediaBox.bottomLeftY))+" "+T(N.mediaBox.topRightX)+" "+T(N.mediaBox.topRightY)+"]"),N.cropBox!==null&&le("/CropBox ["+T(N.cropBox.bottomLeftX)+" "+T(N.cropBox.bottomLeftY)+" "+T(N.cropBox.topRightX)+" "+T(N.cropBox.topRightY)+"]"),N.bleedBox!==null&&le("/BleedBox ["+T(N.bleedBox.bottomLeftX)+" "+T(N.bleedBox.bottomLeftY)+" "+T(N.bleedBox.topRightX)+" "+T(N.bleedBox.topRightY)+"]"),N.trimBox!==null&&le("/TrimBox ["+T(N.trimBox.bottomLeftX)+" "+T(N.trimBox.bottomLeftY)+" "+T(N.trimBox.topRightX)+" "+T(N.trimBox.topRightY)+"]"),N.artBox!==null&&le("/ArtBox ["+T(N.artBox.bottomLeftX)+" "+T(N.artBox.bottomLeftY)+" "+T(N.artBox.topRightX)+" "+T(N.artBox.topRightY)+"]"),typeof N.userUnit=="number"&&N.userUnit!==1&&le("/UserUnit "+N.userUnit),Gt.publish("putPage",{objId:ge,pageContext:ht[V],pageNumber:V,page:ve}),le("/Contents "+Te+" 0 R"),le(">>"),le("endobj");var De=ve.join(`
82
+ `);return w===b.ADVANCED&&(De+=`
83
+ Q`),J(Te,!0),Ie({data:De,filters:Ee(),objectId:Te}),le("endobj"),ge},Ce=h.__private__.putPages=function(){var N,V,ve=[];for(N=1;N<=Nt;N++)ht[N].objId=Rr(),ht[N].contentsObjId=Rr();for(N=1;N<=Nt;N++)ve.push(Ne({number:N,data:be[N],objId:ht[N].objId,contentsObjId:ht[N].contentsObjId,mediaBox:ht[N].mediaBox,cropBox:ht[N].cropBox,bleedBox:ht[N].bleedBox,trimBox:ht[N].trimBox,artBox:ht[N].artBox,userUnit:ht[N].userUnit,rootDictionaryObjId:ae,resourceDictionaryObjId:oe}));J(ae,!0),le("<</Type /Pages");var ge="/Kids [";for(V=0;V<Nt;V++)ge+=ve[V]+" 0 R ";le(ge+"]"),le("/Count "+Nt),le(">>"),le("endobj"),Gt.publish("postPutPages")},ke=function(N){Gt.publish("putFont",{font:N,out:le,newObject:Hr,putStream:Ie}),N.isAlreadyPutted!==!0&&(N.objectNumber=Hr(),le("<<"),le("/Type /Font"),le("/BaseFont /"+Vl(N.postScriptName)),le("/Subtype /Type1"),typeof N.encoding=="string"&&le("/Encoding /"+N.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},Ye=function(){for(var N in Kt)Kt.hasOwnProperty(N)&&(f===!1||f===!0&&d.hasOwnProperty(N))&&ke(Kt[N])},et=function(N){N.objectNumber=Hr();var V=[];V.push({key:"Type",value:"/XObject"}),V.push({key:"Subtype",value:"/Form"}),V.push({key:"BBox",value:"["+[T(N.x),T(N.y),T(N.x+N.width),T(N.y+N.height)].join(" ")+"]"}),V.push({key:"Matrix",value:"["+N.matrix.toString()+"]"});var ve=N.pages[1].join(`
84
+ `);Ie({data:ve,additionalKeyValues:V,objectId:N.objectNumber}),le("endobj")},lt=function(){for(var N in ln)ln.hasOwnProperty(N)&&et(ln[N])},Xe=function(N,V){var ve,ge=[],Te=1/(V-1);for(ve=0;ve<1;ve+=Te)ge.push(ve);if(ge.push(1),N[0].offset!=0){var De={offset:0,color:N[0].color};N.unshift(De)}if(N[N.length-1].offset!=1){var Ve={offset:1,color:N[N.length-1].color};N.push(Ve)}for(var ut="",xt=0,Mt=0;Mt<ge.length;Mt++){for(ve=ge[Mt];ve>N[xt+1].offset;)xt++;var kt=N[xt].offset,Yt=(ve-kt)/(N[xt+1].offset-kt),Mr=N[xt].color,Br=N[xt+1].color;ut+=q(Math.round((1-Yt)*Mr[0]+Yt*Br[0]).toString(16))+q(Math.round((1-Yt)*Mr[1]+Yt*Br[1]).toString(16))+q(Math.round((1-Yt)*Mr[2]+Yt*Br[2]).toString(16))}return ut.trim()},st=function(N,V){V||(V=21);var ve=Hr(),ge=Xe(N.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]"}),Ie({data:ge,additionalKeyValues:Te,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ve}),le("endobj"),N.objectNumber=Hr(),le("<< /ShadingType "+N.type),le("/ColorSpace /DeviceRGB");var De="/Coords ["+T(parseFloat(N.coords[0]))+" "+T(parseFloat(N.coords[1]))+" ";N.type===2?De+=T(parseFloat(N.coords[2]))+" "+T(parseFloat(N.coords[3])):De+=T(parseFloat(N.coords[2]))+" "+T(parseFloat(N.coords[3]))+" "+T(parseFloat(N.coords[4]))+" "+T(parseFloat(N.coords[5])),le(De+="]"),N.matrix&&le("/Matrix ["+N.matrix.toString()+"]"),le("/Function "+ve+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},Ot=function(N,V){var ve=Rr(),ge=Hr();V.push({resourcesOid:ve,objectOid:ge}),N.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:"["+N.boundingBox.map(T).join(" ")+"]"}),Te.push({key:"XStep",value:T(N.xStep)}),Te.push({key:"YStep",value:T(N.yStep)}),Te.push({key:"Resources",value:ve+" 0 R"}),N.matrix&&Te.push({key:"Matrix",value:"["+N.matrix.toString()+"]"}),Ie({data:N.stream,additionalKeyValues:Te,objectId:N.objectNumber}),le("endobj")},rr=function(N){var V;for(V in Ht)Ht.hasOwnProperty(V)&&(Ht[V]instanceof Ko?st(Ht[V]):Ht[V]instanceof Ls&&Ot(Ht[V],N))},xr=function(N){for(var V in N.objectNumber=Hr(),le("<<"),N)switch(V){case"opacity":le("/ca "+R(N[V]));break;case"stroke-opacity":le("/CA "+R(N[V]))}le(">>"),le("endobj")},Zr=function(){var N;for(N in ct)ct.hasOwnProperty(N)&&xr(ct[N])},ea=function(){for(var N in le("/XObject <<"),ln)ln.hasOwnProperty(N)&&ln[N].objectNumber>=0&&le("/"+N+" "+ln[N].objectNumber+" 0 R");Gt.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 N in le("/Font <<"),Kt)Kt.hasOwnProperty(N)&&(f===!1||f===!0&&d.hasOwnProperty(N))&&le("/"+N+" "+Kt[N].objectNumber+" 0 R");le(">>")},ta=function(){if(Object.keys(Ht).length>0){for(var N in le("/Shading <<"),Ht)Ht.hasOwnProperty(N)&&Ht[N]instanceof Ko&&Ht[N].objectNumber>=0&&le("/"+N+" "+Ht[N].objectNumber+" 0 R");Gt.publish("putShadingPatternDict"),le(">>")}},Na=function(N){if(Object.keys(Ht).length>0){for(var V in le("/Pattern <<"),Ht)Ht.hasOwnProperty(V)&&Ht[V]instanceof h.TilingPattern&&Ht[V].objectNumber>=0&&Ht[V].objectNumber<N&&le("/"+V+" "+Ht[V].objectNumber+" 0 R");Gt.publish("putTilingPatternDict"),le(">>")}},yi=function(){if(Object.keys(ct).length>0){var N;for(N in le("/ExtGState <<"),ct)ct.hasOwnProperty(N)&&ct[N].objectNumber>=0&&le("/"+N+" "+ct[N].objectNumber+" 0 R");Gt.publish("putGStateDict"),le(">>")}},Gr=function(N){J(N.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ta(),ta(),Na(N.objectOid),yi(),ea(),le(">>"),le("endobj")},A0=function(){var N=[];Ye(),Zr(),lt(),rr(N),Gt.publish("putResources"),N.forEach(Gr),Gr({resourcesOid:oe,objectOid:Number.MAX_SAFE_INTEGER}),Gt.publish("postPutResources")},T0=function(){Gt.publish("putAdditionalObjects");for(var N=0;N<he.length;N++){var V=he[N];J(V.objId,!0),le(V.content),le("endobj")}Gt.publish("postPutAdditionalObjects")},N0=function(N){fr[N.fontName]=fr[N.fontName]||{},fr[N.fontName][N.fontStyle]=N.id},Qc=function(N,V,ve,ge,Te){var De={id:"F"+(Object.keys(Kt).length+1).toString(10),postScriptName:N,fontName:V,fontStyle:ve,encoding:ge,isStandardFont:Te||!1,metadata:{}};return Gt.publish("addFont",{font:De,instance:this}),Kt[De.id]=De,N0(De),De.id},Xp=function(N){for(var V=0,ve=Ue.length;V<ve;V++){var ge=Qc.call(this,N[V][0],N[V][1],N[V][2],Ue[V][3],!0);f===!1&&(d[ge]=!0);var Te=N[V][0].split("-");N0({id:ge,fontName:Te[0],fontStyle:Te[1]||""})}Gt.publish("addFonts",{fonts:Kt,dictionary:fr})},ra=function(N){return N.foo=function(){try{return N.apply(this,arguments)}catch(ge){var V=ge.stack||"";~V.indexOf(" at ")&&(V=V.split(" at ")[1]);var ve="Error in function "+V.split(`
85
+ `)[0].split("<")[0]+": "+ge.message;if(!Et.console)throw new Error(ve);Et.console.error(ve,ge),Et.alert&&alert(ve)}},N.foo.bar=N,N.foo},hl=function(N,V){var ve,ge,Te,De,Ve,ut,xt,Mt,kt;if(Te=(V=V||{}).sourceEncoding||"Unicode",Ve=V.outputEncoding,(V.autoencode||Ve)&&Kt[Ft].metadata&&Kt[Ft].metadata[Te]&&Kt[Ft].metadata[Te].encoding&&(De=Kt[Ft].metadata[Te].encoding,!Ve&&Kt[Ft].encoding&&(Ve=Kt[Ft].encoding),!Ve&&De.codePages&&(Ve=De.codePages[0]),typeof Ve=="string"&&(Ve=De[Ve]),Ve)){for(xt=!1,ut=[],ve=0,ge=N.length;ve<ge;ve++)(Mt=Ve[N.charCodeAt(ve)])?ut.push(String.fromCharCode(Mt)):ut.push(N[ve]),ut[ve].charCodeAt(0)>>8&&(xt=!0);N=ut.join("")}for(ve=N.length;xt===void 0&&ve!==0;)N.charCodeAt(ve-1)>>8&&(xt=!0),ve--;if(!xt)return N;for(ut=V.noBOM?[]:[254,255],ve=0,ge=N.length;ve<ge;ve++){if((kt=(Mt=N.charCodeAt(ve))>>8)>>8)throw new Error("Character at position "+ve+" of string '"+N+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ut.push(kt),ut.push(Mt-(kt<<8))}return String.fromCharCode.apply(void 0,ut)},oi=h.__private__.pdfEscape=h.pdfEscape=function(N,V){return hl(N,V).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},eu=h.__private__.beginPage=function(N){be[++Nt]=[],ht[Nt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(N[0]),topRightY:Number(N[1])}},P0(Nt),Ae(be[I])},E0=function(N,V){var ve,ge,Te;switch(r=V||r,typeof N=="string"&&(ve=y(N.toLowerCase()),Array.isArray(ve)&&(ge=ve[0],Te=ve[1])),Array.isArray(N)&&(ge=N[0]*at,Te=N[1]*at),isNaN(ge)&&(ge=i[0],Te=i[1]),(ge>14400||Te>14400)&&(Ar.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])}eu(i),I0(iu),le(na),ou!==0&&le(ou+" J"),su!==0&&le(su+" j"),Gt.publish("addPage",{pageNumber:Nt})},Jp=function(N){N>0&&N<=Nt&&(be.splice(N,1),ht.splice(N,1),Nt--,I>Nt&&(I=Nt),this.setPage(I))},P0=function(N){N>0&&N<=Nt&&(I=N)},Zp=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return be.length-1},O0=function(N,V,ve){var ge,Te=void 0;return ve=ve||{},N=N!==void 0?N:Kt[Ft].fontName,V=V!==void 0?V:Kt[Ft].fontStyle,ge=N.toLowerCase(),fr[ge]!==void 0&&fr[ge][V]!==void 0?Te=fr[ge][V]:fr[N]!==void 0&&fr[N][V]!==void 0?Te=fr[N][V]:ve.disableWarning===!1&&Ar.warn("Unable to look up font label for font '"+N+"', '"+V+"'. Refer to getFontList() for available fonts."),Te||ve.noFallback||(Te=fr.times[V])==null&&(Te=fr.times.normal),Te},Qp=h.__private__.putInfo=function(){var N=Hr(),V=function(ge){return ge};for(var ve in u!==null&&(V=Mn.encryptor(N,0)),le("<<"),le("/Producer ("+oi(V("jsPDF "+yt.version))+")"),_t)_t.hasOwnProperty(ve)&&_t[ve]&&le("/"+ve.substr(0,1).toUpperCase()+ve.substr(1)+" ("+oi(V(_t[ve]))+")");le("/CreationDate ("+oi(V(H))+")"),le(">>"),le("endobj")},tu=h.__private__.putCatalog=function(N){var V=(N=N||{}).rootDictionaryObjId||ae;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 ve=""+Ze;ve.substr(ve.length-1)==="%"&&(Ze=parseInt(Ze)/100),typeof Ze=="number"&&le("/OpenAction [3 0 R /XYZ null null "+R(Ze)+"]")}switch(Pt||(Pt="continuous"),Pt){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")}vt&&le("/PageMode /"+vt),Gt.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 [ <"+B+"> <"+B+"> ]"),le(">>")},t1=h.__private__.putHeader=function(){le("%PDF-"+g),le("%ºß¬à")},r1=h.__private__.putXRef=function(){var N="0000000000";le("xref"),le("0 "+(Y+1)),le("0000000000 65535 f ");for(var V=1;V<=Y;V++)typeof fe[V]=="function"?le((N+fe[V]()).slice(-10)+" 00000 n "):fe[V]!==void 0?le((N+fe[V]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Va=h.__private__.buildDocument=function(){Se(),Ae(ne),Gt.publish("buildDocument"),t1(),Ce(),T0(),A0(),u!==null&&Ga(),Qp(),tu();var N=K;return r1(),e1(),le("startxref"),le(""+N),le("%%EOF"),Ae(be[I]),ne.join(`
86
+ `)},dl=h.__private__.getBlob=function(N){return new Blob([Qe(N)],{type:"application/pdf"})},pl=h.output=h.__private__.output=ra((function(N,V){switch(typeof(V=V||{})=="string"?V={filename:V}:V.filename=V.filename||"generated.pdf",N){case void 0:return Va();case"save":h.save(V.filename);break;case"arraybuffer":return Qe(Va());case"blob":return dl(Va());case"bloburi":case"bloburl":if(Et.URL!==void 0&&typeof Et.URL.createObjectURL=="function")return Et.URL&&Et.URL.createObjectURL(dl(Va()))||void 0;Ar.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ve="",ge=Va();try{ve=hy(ge)}catch{ve=hy(unescape(encodeURIComponent(ge)))}return"data:application/pdf;filename="+V.filename+";base64,"+ve;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Et)==="[object Window]"){var Te="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",De=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';V.pdfObjectUrl&&(Te=V.pdfObjectUrl,De="");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Te+'"'+De+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(V)+");<\/script></body></html>",ut=Et.open();return ut!==null&&ut.document.write(Ve),ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Et)==="[object Window]"){var xt='<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>',Mt=Et.open();if(Mt!==null){Mt.document.write(xt);var kt=this;Mt.document.documentElement.querySelector("#pdfViewer").onload=function(){Mt.document.title=V.filename,Mt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(kt.output("bloburl"))}}return Mt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Et)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Yt='<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=Et.open();if(Mr!==null&&(Mr.document.write(Yt),Mr.document.title=V.filename),Mr||typeof safari>"u")return Mr;break;case"datauri":case"dataurl":return Et.document.location.href=this.output("datauristring",V);default:return null}})),j0=function(N){return Array.isArray(Ha)===!0&&Ha.indexOf(N)>-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=j0("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(),te();var n1=function(N){return u!==null?Mn.encryptor(N,0):function(V){return V}},C0=h.__private__.getPageInfo=h.getPageInfo=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ht[N].objId,pageNumber:N,pageContext:ht[N]}},Ct=h.__private__.getPageInfoByObjId=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var V in ht)if(ht[V].objId===N)break;return C0(V)},i1=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:ht[I].objId,pageNumber:I,pageContext:ht[I]}};h.addPage=function(){return E0.apply(this,arguments),this},h.setPage=function(){return P0.apply(this,arguments),Ae.call(this,be[I]),this},h.insertPage=function(N){return this.addPage(),this.movePage(I,N),this},h.movePage=function(N,V){var ve,ge;if(N>V){ve=be[N],ge=ht[N];for(var Te=N;Te>V;Te--)be[Te]=be[Te-1],ht[Te]=ht[Te-1];be[V]=ve,ht[V]=ge,this.setPage(V)}else if(N<V){ve=be[N],ge=ht[N];for(var De=N;De<V;De++)be[De]=be[De+1],ht[De]=ht[De+1];be[V]=ve,ht[V]=ge,this.setPage(V)}return this},h.deletePage=function(){return Jp.apply(this,arguments),this},h.__private__.text=h.text=function(N,V,ve,ge,Te){var De,Ve,ut,xt,Mt,kt,Yt,Mr,Br,Qr=(ge=ge||{}).scope||this;if(typeof N=="number"&&typeof V=="number"&&(typeof ve=="string"||Array.isArray(ve))){var Dn=ve;ve=V,V=N,N=Dn}if(arguments[3]instanceof St?(k("The transform parameter of text() with a Matrix value"),Br=Te):(ut=arguments[4],xt=arguments[5],cr(Yt=arguments[3])==="object"&&Yt!==null||(typeof ut=="string"&&(xt=ut,ut=null),typeof Yt=="string"&&(xt=Yt,Yt=null),typeof Yt=="number"&&(ut=Yt,Yt=null),ge={flags:Yt,angle:ut,align:xt})),isNaN(V)||isNaN(ve)||N==null)throw new Error("Invalid arguments passed to jsPDF.text");if(N.length===0)return Qr;var vn="",ia=!1,bi=typeof ge.lineHeightFactor=="number"?ge.lineHeightFactor:vs,Oa=Qr.internal.scaleFactor;function $0(Nr){return Nr=Nr.split(" ").join(Array(ge.TabLen||9).join(" ")),oi(Nr,Yt)}function hu(Nr){for(var Er,Yr=Nr.concat(),cn=[],Za=Yr.length;Za--;)typeof(Er=Yr.shift())=="string"?cn.push(Er):Array.isArray(Nr)&&(Er.length===1||Er[1]===void 0&&Er[2]===void 0)?cn.push(Er[0]):cn.push([Er[0],Er[1],Er[2]]);return cn}function du(Nr,Er){var Yr;if(typeof Nr=="string")Yr=Er(Nr)[0];else if(Array.isArray(Nr)){for(var cn,Za,wu=Nr.concat(),Ol=[],H0=wu.length;H0--;)typeof(cn=wu.shift())=="string"?Ol.push(Er(cn)[0]):Array.isArray(cn)&&typeof cn[0]=="string"&&(Za=Er(cn[0],cn[1],cn[2]),Ol.push([Za[0],Za[1],Za[2]]));Yr=Ol}return Yr}var bl=!1,pu=!0;if(typeof N=="string")bl=!0;else if(Array.isArray(N)){var mu=N.concat();Ve=[];for(var wl,Tn=mu.length;Tn--;)(typeof(wl=mu.shift())!="string"||Array.isArray(wl)&&typeof wl[0]!="string")&&(pu=!1);bl=pu}if(bl===!1)throw new Error('Type of text must be string or Array. "'+N+'" is not recognized.');typeof N=="string"&&(N=N.match(/[\r?\n]/)?N.split(/\r\n|\r|\n/g):[N]);var _l=Ke/Qr.internal.scaleFactor,Sl=_l*(bi-1);switch(ge.baseline){case"bottom":ve-=Sl;break;case"top":ve+=_l-Sl;break;case"hanging":ve+=_l-2*Sl;break;case"middle":ve+=_l/2-Sl}if((kt=ge.maxWidth||0)>0&&(typeof N=="string"?N=Qr.splitTextToSize(N,kt):Object.prototype.toString.call(N)==="[object Array]"&&(N=N.reduce((function(Nr,Er){return Nr.concat(Qr.splitTextToSize(Er,kt))}),[]))),De={text:N,x:V,y:ve,options:ge,mutex:{pdfEscape:oi,activeFontKey:Ft,fonts:Kt,activeFontSize:Ke}},Gt.publish("preProcessText",De),N=De.text,ut=(ge=De.options).angle,!(Br instanceof St)&&ut&&typeof ut=="number"){ut*=Math.PI/180,ge.rotationDirection===0&&(ut=-ut),w===b.ADVANCED&&(ut=-ut);var Al=Math.cos(ut),vu=Math.sin(ut);Br=new St(Al,vu,-vu,Al,0,0)}else ut&&ut instanceof St&&(Br=ut);w!==b.ADVANCED||Br||(Br=ai),(Mt=ge.charSpace||gl)!==void 0&&(vn+=T(E(Mt))+` 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,gu=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 q0=gu.usedRenderingMode!==void 0?gu.usedRenderingMode:-1;si!==-1?vn+=si+` Tr
89
+ `:q0!==-1&&(vn+=`0 Tr
90
+ `),si!==-1&&(gu.usedRenderingMode=si),xt=ge.align||"left";var Mi,Tl=Ke*bi,U0=Qr.internal.pageSize.getWidth(),z0=Kt[Ft];Mt=ge.charSpace||gl,kt=ge.maxWidth||0,Yt=Object.assign({autoencode:!0,noBOM:!0},ge.flags);var ko=[],ys=function(Nr){return Qr.getStringUnitWidth(Nr,{font:z0,charSpace:Mt,fontSize:Ke,doKerning:!1})*Ke/Oa};if(Object.prototype.toString.call(N)==="[object Array]"){var li;Ve=hu(N),xt!=="left"&&(Mi=Ve.map(ys));var Yn,Lo=0;if(xt==="right"){V-=Mi[0],N=[],Tn=Ve.length;for(var Ka=0;Ka<Tn;Ka++)Ka===0?(Yn=Pa(V),li=Ya(ve)):(Yn=E(Lo-Mi[Ka]),li=-Tl),N.push([Ve[Ka],Yn,li]),Lo=Mi[Ka]}else if(xt==="center"){V-=Mi[0]/2,N=[],Tn=Ve.length;for(var Xa=0;Xa<Tn;Xa++)Xa===0?(Yn=Pa(V),li=Ya(ve)):(Yn=E((Lo-Mi[Xa])/2),li=-Tl),N.push([Ve[Xa],Yn,li]),Lo=Mi[Xa]}else if(xt==="left"){N=[],Tn=Ve.length;for(var Nl=0;Nl<Tn;Nl++)N.push(Ve[Nl])}else if(xt==="justify"&&z0.encoding==="Identity-H"){N=[],Tn=Ve.length,kt=kt!==0?kt:U0;for(var Ja=0,Vr=0;Vr<Tn;Vr++)if(li=Vr===0?Ya(ve):-Tl,Yn=Vr===0?Pa(V):Ja,Vr<Tn-1){var xu=E((kt-Mi[Vr])/(Ve[Vr].split(" ").length-1)),Kn=Ve[Vr].split(" ");N.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+xu;Di==Kn.length-1?N.push([Kn[Di],El,0]):N.push([Kn[Di]+" ",El,0]),Ja-=El}}else N.push([Ve[Vr],Yn,li]);N.push(["",Ja,0])}else{if(xt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(N=[],Tn=Ve.length,kt=kt!==0?kt:U0,Vr=0;Vr<Tn;Vr++)li=Vr===0?Ya(ve):-Tl,Yn=Vr===0?Pa(V):0,Vr<Tn-1?ko.push(T(E((kt-Mi[Vr])/(Ve[Vr].split(" ").length-1)))):ko.push(0),N.push([Ve[Vr],Yn,li])}}var W0=typeof ge.R2L=="boolean"?ge.R2L:dt;W0===!0&&(N=du(N,(function(Nr,Er,Yr){return[Nr.split("").reverse().join(""),Er,Yr]}))),De={text:N,x:V,y:ve,options:ge,mutex:{pdfEscape:oi,activeFontKey:Ft,fonts:Kt,activeFontSize:Ke}},Gt.publish("postProcessText",De),N=De.text,ia=De.mutex.isHex||!1;var yu=Kt[Ft].encoding;yu!=="WinAnsiEncoding"&&yu!=="StandardEncoding"||(N=du(N,(function(Nr,Er,Yr){return[$0(Nr),Er,Yr]}))),Ve=hu(N),N=[];for(var bs,ws,Io,_s=0,Pl=1,Ss=Array.isArray(Ve[0])?Pl:_s,Fo="",bu=function(Nr,Er,Yr){var cn="";return Yr instanceof St?(Yr=typeof ge.angle=="number"?xi(Yr,new St(1,0,0,1,Nr,Er)):xi(new St(1,0,0,1,Nr,Er),Yr),w===b.ADVANCED&&(Yr=xi(new St(1,0,0,-1,0,0),Yr)),cn=Yr.join(" ")+` Tm
91
+ `):cn=T(Nr)+" "+T(Er)+` Td
92
+ `,cn},Ri=0;Ri<Ve.length;Ri++){switch(Fo="",Ss){case Pl: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(ve)}ko!==void 0&&ko[Ri]!==void 0&&(Fo=ko[Ri]+` Tw
93
+ `),Ri===0?N.push(Fo+bu(bs,ws,Br)+Io):Ss===_s?N.push(Fo+Io):Ss===Pl&&N.push(Fo+bu(bs,ws,Br)+Io)}N=Ss===_s?N.join(` Tj
94
+ T* `):N.join(` Tj
95
+ `),N+=` Tj
96
+ `;var Bi=`BT
97
+ /`;return Bi+=Ft+" "+Ke+` Tf
98
+ `,Bi+=T(Ke*bi)+` TL
99
+ `,Bi+=gs+`
100
+ `,Bi+=vn,Bi+=N,le(Bi+="ET"),d[Ft]=!0,Qr};var a1=h.__private__.clip=h.clip=function(N){return le(N==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return a1("evenodd")},h.__private__.discardPath=h.discardPath=function(){return le("n"),this};var Ea=h.__private__.isValidStyle=function(N){var V=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(N)!==-1&&(V=!0),V};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(N){return Ea(N)&&(c=N),this};var k0=h.__private__.getStyle=h.getStyle=function(N){var V=c;switch(N){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=N}return V},L0=h.close=function(){return le("h"),this};h.stroke=function(){return le("S"),this},h.fill=function(N){return ml("f",N),this},h.fillEvenOdd=function(N){return ml("f*",N),this},h.fillStroke=function(N){return ml("B",N),this},h.fillStrokeEvenOdd=function(N){return ml("B*",N),this};var ml=function(N,V){cr(V)==="object"?s1(V,N):le(N)},ru=function(N){N===null||w===b.ADVANCED&&N===void 0||(N=k0(N),le(N))};function o1(N,V,ve,ge,Te){var De=new Ls(V||this.boundingBox,ve||this.xStep,ge||this.yStep,this.gState,Te||this.matrix);De.stream=this.stream;var Ve=N+"$$"+this.cloneIndex+++"$$";return Fn(Ve,De),De}var s1=function(N,V){var ve=Pe[N.key],ge=Ht[ve];if(ge instanceof Ko)le("q"),le(l1(V)),ge.gState&&h.setGState(ge.gState),le(N.matrix.toString()+" cm"),le("/"+ve+" sh"),le("Q");else if(ge instanceof Ls){var Te=new St(1,0,0,-1,0,Co());N.matrix&&(Te=Te.multiply(N.matrix||ai),ve=o1.call(ge,N.key,N.boundingBox,N.xStep,N.yStep,Te).id),le("q"),le("/Pattern cs"),le("/"+ve+" scn"),ge.gState&&h.setGState(ge.gState),le(V),le("Q")}},l1=function(N){switch(N){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"}},nu=h.moveTo=function(N,V){return le(T(E(N))+" "+T(U(V))+" m"),this},ms=h.lineTo=function(N,V){return le(T(E(N))+" "+T(U(V))+" l"),this},Oo=h.curveTo=function(N,V,ve,ge,Te,De){return le([T(E(N)),T(U(V)),T(E(ve)),T(U(ge)),T(E(Te)),T(U(De)),"c"].join(" ")),this};h.__private__.line=h.line=function(N,V,ve,ge,Te){if(isNaN(N)||isNaN(V)||isNaN(ve)||isNaN(ge)||!Ea(Te))throw new Error("Invalid arguments passed to jsPDF.line");return w===b.COMPAT?this.lines([[ve-N,ge-V]],N,V,[1,1],Te||"S"):this.lines([[ve-N,ge-V]],N,V,[1,1]).stroke()},h.__private__.lines=h.lines=function(N,V,ve,ge,Te,De){var Ve,ut,xt,Mt,kt,Yt,Mr,Br,Qr,Dn,vn,ia;if(typeof N=="number"&&(ia=ve,ve=V,V=N,N=ia),ge=ge||[1,1],De=De||!1,isNaN(V)||isNaN(ve)||!Array.isArray(N)||!Array.isArray(ge)||!Ea(Te)||typeof De!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(nu(V,ve),Ve=ge[0],ut=ge[1],Mt=N.length,Dn=V,vn=ve,xt=0;xt<Mt;xt++)(kt=N[xt]).length===2?(Dn=kt[0]*Ve+Dn,vn=kt[1]*ut+vn,ms(Dn,vn)):(Yt=kt[0]*Ve+Dn,Mr=kt[1]*ut+vn,Br=kt[2]*Ve+Dn,Qr=kt[3]*ut+vn,Dn=kt[4]*Ve+Dn,vn=kt[5]*ut+vn,Oo(Yt,Mr,Br,Qr,Dn,vn));return De&&L0(),ru(Te),this},h.path=function(N){for(var V=0;V<N.length;V++){var ve=N[V],ge=ve.c;switch(ve.op){case"m":nu(ge[0],ge[1]);break;case"l":ms(ge[0],ge[1]);break;case"c":Oo.apply(this,ge);break;case"h":L0()}}return this},h.__private__.rect=h.rect=function(N,V,ve,ge,Te){if(isNaN(N)||isNaN(V)||isNaN(ve)||isNaN(ge)||!Ea(Te))throw new Error("Invalid arguments passed to jsPDF.rect");return w===b.COMPAT&&(ge=-ge),le([T(E(N)),T(U(V)),T(E(ve)),T(E(ge)),"re"].join(" ")),ru(Te),this},h.__private__.triangle=h.triangle=function(N,V,ve,ge,Te,De,Ve){if(isNaN(N)||isNaN(V)||isNaN(ve)||isNaN(ge)||isNaN(Te)||isNaN(De)||!Ea(Ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ve-N,ge-V],[Te-ve,De-ge],[N-Te,V-De]],N,V,[1,1],Ve,!0),this},h.__private__.roundedRect=h.roundedRect=function(N,V,ve,ge,Te,De,Ve){if(isNaN(N)||isNaN(V)||isNaN(ve)||isNaN(ge)||isNaN(Te)||isNaN(De)||!Ea(Ve))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ut=4/3*(Math.SQRT2-1);return Te=Math.min(Te,.5*ve),De=Math.min(De,.5*ge),this.lines([[ve-2*Te,0],[Te*ut,0,Te,De-De*ut,Te,De],[0,ge-2*De],[0,De*ut,-Te*ut,De,-Te,De],[2*Te-ve,0],[-Te*ut,0,-Te,-De*ut,-Te,-De],[0,2*De-ge],[0,-De*ut,Te*ut,-De,Te,-De]],N+Te,V,[1,1],Ve,!0),this},h.__private__.ellipse=h.ellipse=function(N,V,ve,ge,Te){if(isNaN(N)||isNaN(V)||isNaN(ve)||isNaN(ge)||!Ea(Te))throw new Error("Invalid arguments passed to jsPDF.ellipse");var De=4/3*(Math.SQRT2-1)*ve,Ve=4/3*(Math.SQRT2-1)*ge;return nu(N+ve,V),Oo(N+ve,V-Ve,N+De,V-ge,N,V-ge),Oo(N-De,V-ge,N-ve,V-Ve,N-ve,V),Oo(N-ve,V+Ve,N-De,V+ge,N,V+ge),Oo(N+De,V+ge,N+ve,V+Ve,N+ve,V),ru(Te),this},h.__private__.circle=h.circle=function(N,V,ve,ge){if(isNaN(N)||isNaN(V)||isNaN(ve)||!Ea(ge))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(N,V,ve,ve,ge)},h.setFont=function(N,V,ve){return ve&&(V=O(V,ve)),Ft=O0(N,V,{disableWarning:!1}),this};var c1=h.__private__.getFont=h.getFont=function(){return Kt[O0.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var N,V,ve={};for(N in fr)if(fr.hasOwnProperty(N))for(V in ve[N]=[],fr[N])fr[N].hasOwnProperty(V)&&ve[N].push(V);return ve},h.addFont=function(N,V,ve,ge,Te){var De=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&De.indexOf(arguments[3])!==-1?Te=arguments[3]:arguments[3]&&De.indexOf(arguments[3])==-1&&(ve=O(ve,ge)),Te=Te||"Identity-H",Qc.call(this,N,V,ve,Te)};var vs,iu=e.lineWidth||.200025,vl=h.__private__.getLineWidth=h.getLineWidth=function(){return iu},I0=h.__private__.setLineWidth=h.setLineWidth=function(N){return iu=N,le(T(E(N))+" w"),this};h.__private__.setLineDash=yt.API.setLineDash=yt.API.setLineDashPattern=function(N,V){if(N=N||[],V=V||0,isNaN(V)||!Array.isArray(N))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return N=N.map((function(ve){return T(E(ve))})).join(" "),V=T(E(V)),le("["+N+"] "+V+" d"),this};var F0=h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*vs};h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*vs};var M0=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(N){return typeof(N=N||1.15)=="number"&&(vs=N),this},D0=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return vs};M0(e.lineHeight);var Pa=h.__private__.getHorizontalCoordinate=function(N){return E(N)},Ya=h.__private__.getVerticalCoordinate=function(N){return w===b.ADVANCED?N:ht[I].mediaBox.topRightY-ht[I].mediaBox.bottomLeftY-E(N)},u1=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(N){return T(Pa(N))},jo=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(N){return T(Ya(N))},na=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return de(na)},h.__private__.setStrokeColor=h.setDrawColor=function(N,V,ve,ge){return na=me({ch1:N,ch2:V,ch3:ve,ch4:ge,pdfColorType:"draw",precision:2}),le(na),this};var au=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return de(au)},h.__private__.setFillColor=h.setFillColor=function(N,V,ve,ge){return au=me({ch1:N,ch2:V,ch3:ve,ch4:ge,pdfColorType:"fill",precision:2}),le(au),this};var gs=e.textColor||"0 g",f1=h.__private__.getTextColor=h.getTextColor=function(){return de(gs)};h.__private__.setTextColor=h.setTextColor=function(N,V,ve,ge){return gs=me({ch1:N,ch2:V,ch3:ve,ch4:ge,pdfColorType:"text",precision:3}),this};var gl=e.charSpace,h1=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(gl||0)};h.__private__.setCharSpace=h.setCharSpace=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return gl=N,this};var ou=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(N){var V=h.CapJoinStyles[N];if(V===void 0)throw new Error("Line cap style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ou=V,le(V+" J"),this};var su=0;h.__private__.setLineJoin=h.setLineJoin=function(N){var V=h.CapJoinStyles[N];if(V===void 0)throw new Error("Line join style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return su=V,le(V+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(N){if(N=N||0,isNaN(N))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(T(E(N))+" M"),this},h.GState=hf,h.setGState=function(N){(N=typeof N=="string"?ct[Wt[N]]:R0(null,N)).equals(Or)||(le("/"+N.id+" gs"),Or=N)};var R0=function(N,V){if(!N||!Wt[N]){var ve=!1;for(var ge in ct)if(ct.hasOwnProperty(ge)&&ct[ge].equals(V)){ve=!0;break}if(ve)V=ct[ge];else{var Te="GS"+(Object.keys(ct).length+1).toString(10);ct[Te]=V,V.id=Te}return N&&(Wt[N]=V.id),Gt.publish("addGState",V),V}};h.addGState=function(N,V){return R0(N,V),this},h.saveGraphicsState=function(){return le("q"),Vn.push({key:Ft,size:Ke,color:gs}),this},h.restoreGraphicsState=function(){le("Q");var N=Vn.pop();return Ft=N.key,Ke=N.size,gs=N.color,Or=null,this},h.setCurrentTransformationMatrix=function(N){return le(N.toString()+" cm"),this},h.comment=function(N){return le("#"+N),this};var xl=function(N,V){var ve=N||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ve},set:function(De){isNaN(De)||(ve=parseFloat(De))}});var ge=V||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ge},set:function(De){isNaN(De)||(ge=parseFloat(De))}});var Te="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Te},set:function(De){Te=De.toString()}}),this},lu=function(N,V,ve,ge){xl.call(this,N,V),this.type="rect";var Te=ve||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Te},set:function(Ve){isNaN(Ve)||(Te=parseFloat(Ve))}});var De=ge||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return De},set:function(Ve){isNaN(Ve)||(De=parseFloat(Ve))}}),this},cu=function(){this.page=Nt,this.currentPage=I,this.pages=be.slice(0),this.pagesContext=ht.slice(0),this.x=Dr,this.y=zt,this.matrix=An,this.width=xs(I),this.height=Co(I),this.outputDestination=Le,this.id="",this.objectNumber=-1};cu.prototype.restore=function(){Nt=this.page,I=this.currentPage,ht=this.pagesContext,be=this.pages,Dr=this.x,zt=this.y,An=this.matrix,uu(I,this.width),fu(I,this.height),Le=this.outputDestination};var B0=function(N,V,ve,ge,Te){Fi.push(new cu),Nt=I=0,be=[],Dr=N,zt=V,An=Te,eu([ve,ge])},d1=function(N){if(Ii[N])Fi.pop().restore();else{var V=new cu,ve="Xo"+(Object.keys(ln).length+1).toString(10);V.id=ve,Ii[N]=ve,ln[ve]=V,Gt.publish("addFormObject",V),Fi.pop().restore()}};for(var yl in h.beginFormObject=function(N,V,ve,ge,Te){return B0(N,V,ve,ge,Te),this},h.endFormObject=function(N){return d1(N),this},h.doFormObject=function(N,V){var ve=ln[Ii[N]];return le("q"),le(V.toString()+" cm"),le("/"+ve.id+" Do"),le("Q"),this},h.getFormObject=function(N){var V=ln[Ii[N]];return{x:V.x,y:V.y,width:V.width,height:V.height,matrix:V.matrix}},h.save=function(N,V){return N=N||"generated.pdf",(V=V||{}).returnPromise=V.returnPromise||!1,V.returnPromise===!1?(Ps(dl(Va()),N),typeof Ps.unload=="function"&&Et.setTimeout&&setTimeout(Ps.unload,911),this):new Promise((function(ve,ge){try{var Te=Ps(dl(Va()),N);typeof Ps.unload=="function"&&Et.setTimeout&&setTimeout(Ps.unload,911),ve(Te)}catch(De){ge(De.message)}}))},yt.API)yt.API.hasOwnProperty(yl)&&(yl==="events"&&yt.API.events.length?(function(N,V){var ve,ge,Te;for(Te=V.length-1;Te!==-1;Te--)ve=V[Te][0],ge=V[Te][1],N.subscribe.apply(N,[ve].concat(typeof ge=="function"?[ge]:ge))})(Gt,yt.API.events):h[yl]=yt.API[yl]);var xs=h.getPageWidth=function(N){return(ht[N=N||I].mediaBox.topRightX-ht[N].mediaBox.bottomLeftX)/at},uu=h.setPageWidth=function(N,V){ht[N].mediaBox.topRightX=V*at+ht[N].mediaBox.bottomLeftX},Co=h.getPageHeight=function(N){return(ht[N=N||I].mediaBox.topRightY-ht[N].mediaBox.bottomLeftY)/at},fu=h.setPageHeight=function(N,V){ht[N].mediaBox.topRightY=V*at+ht[N].mediaBox.bottomLeftY};return h.internal={pdfEscape:oi,getStyle:k0,getFont:c1,getFontSize:Je,getCharSpace:h1,getTextColor:f1,getLineHeight:F0,getLineHeightFactor:D0,getLineWidth:vl,write:Me,getHorizontalCoordinate:Pa,getVerticalCoordinate:Ya,getCoordinateString:u1,getVerticalCoordinateString:jo,collections:{},newObject:Hr,newAdditionalObject:pe,newObjectDeferred:Rr,newObjectDeferredBegin:J,getFilters:Ee,putStream:Ie,events:Gt,scaleFactor:at,pageSize:{getWidth:function(){return xs(I)},setWidth:function(N){uu(I,N)},getHeight:function(){return Co(I)},setHeight:function(N){fu(I,N)}},encryptionOptions:u,encryption:Mn,getEncryptor:n1,output:pl,getNumberOfPages:Zp,pages:be,out:le,f2:R,f3:j,getPageInfo:C0,getPageInfoByObjId:Ct,getCurrentPageInfo:i1,getPDFVersion:p,Point:xl,Rectangle:lu,Matrix:St,hasHotfix:j0},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return xs(I)},set:function(N){uu(I,N)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Co(I)},set:function(N){fu(I,N)},enumerable:!0,configurable:!0}),Xp.call(h,Ue),Ft="F1",E0(i,r),Gt.publish("initialized"),h}Gl.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Gl.prototype.toHexString=function(e){return e.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Gl.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("")},Gl.prototype.processOwnerPassword=function(e,t){return py(dy(t).substr(0,5),e)},Gl.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)}},hf.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},yt.API={events:[]},yt.version="2.5.2";var qr=yt.API,X2=1,el=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Il=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Lt=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},ow=function(e){return e*X2},Ca=function(e){var t=new qE,r=mt.internal.getHeight(e)||0,n=mt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Lt(n)),Number(Lt(r))],t},Gk=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},Vk=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)},Yk=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 Yk(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 Gk(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 Vk(e,t-1)},Kk=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(Lt(l.lowerLeft_X)),Number(Lt(l.lowerLeft_Y)),Number(Lt(l.upperRight_X)),Number(Lt(l.upperRight_Y))]},Xk=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+" "+Lt(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=mt.internal.getHeight(e)||0;o=o<0?-o:o;var s=mt.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(j,E,D){if(j+1<i.length){var U=E+" "+i[j+1][0];return hh(U,e,D).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,u,f=hh("3",e,a).height,d=e.multiline?o-a:(o-f)/2,h=d+=2,g=0,p=0,m=0;if(a<=0){t=`(...) Tj
103
+ `,t+="% Width of Text: "+hh(t,e,a=12).width+", FieldWidth:"+s+`
104
+ `;break}for(var y="",b=0,w=0;w<i.length;w++)if(i.hasOwnProperty(w)){var S=!1;if(i[w].length!==1&&m!==i[w].length-1){if((f+2)*(b+2)+2>o)continue e;y+=i[w][m],S=!0,p=w,w--}else{y=(y+=i[w][m]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var A=parseInt(w),O=l(A,y,a),T=w>=i.length-1;if(O&&!T){y+=" ",m=0;continue}if(O||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 R=i[L];if(e.multiline){if(L===p){k+=R[m]+" ",m=(m+1)%R.length;continue}if(L===g){k+=R[R.length-1]+" ";continue}}k+=R[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,u=hh(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+=Lt(c)+" "+Lt(h)+` Td
105
+ `,t+="("+el(k)+`) Tj
106
+ `,t+=-Lt(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},hh=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}},Jk={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Zk=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)},Qk=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]}},eL=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(Jk)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");X2=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new UE,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&&Zk(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=Kk(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=mt.createDefaultAppearanceStream(s),cr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=Xk(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&&Qk(i.internal.acroformPlugin.xForms,i)})(r,e)})),e.internal.acroformPlugin.isInitialized=!0}},$E=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+="("+el(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="("+el(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:$E(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 qE=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(qE,Ia);var UE=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)),"("+el(r(e))+")"}},set:function(r){e=r}})};vi(UE,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 Uh)return;a="FieldObject"+e.FieldNum++}var y=function(b){return b};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+el(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/X2: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 Uh||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)==="("?Il(y.substr(1,y.length-2)):Il(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn?Il(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)==="("?Il(y.substr(1,y.length-2)):Il(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn?Il(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 m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');m=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(m){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:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=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 $E(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 Vu=function(){qs.call(this),this.edit=!0};vi(Vu,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+" ("+el(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 Yu=function(){dn.call(this),this.pushButton=!0};vi(Yu,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 Uh=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+" ("+el(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=mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vi(Uh,_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 Uh;return t.Parent=this,t.optionName=e,this.Kids.push(t),tL.call(this.scope,t),t};var Ku=function(){dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=mt.CheckBox.createAppearanceStream()};vi(Ku,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 Xu=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(Xu,ts);var mt={CheckBox:{createAppearanceStream:function(){return{N:{On:mt.CheckBox.YesNormal},D:{On:mt.CheckBox.YesPushDown,Off:mt.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 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Lt(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=mt.internal.getHeight(e),o=mt.internal.getWidth(e),s=my(e,e.caption);return i.push("1 g"),i.push("0 0 "+Lt(o)+" "+Lt(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Lt(o-1)+" "+Lt(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+Lt(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 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
113
+ `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:mt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=mt.RadioButton.Circle.YesNormal,t.D[e]=mt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=mt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Go(mt.internal.getWidth(e)/2)+" "+Go(mt.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=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*mt.internal.Bezier_C).toFixed(5)),o=Number((n*mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Go(mt.internal.getWidth(e)/2)+" "+Go(mt.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(mt.internal.getWidth(e)/2)+" "+Go(mt.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=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Go(mt.internal.getWidth(e)/2)+" "+Go(mt.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:mt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=mt.RadioButton.Cross.YesNormal,t.D[e]=mt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ca(e);t.scope=e.scope;var r=[],n=mt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+Lt(mt.internal.getWidth(e)-2)+" "+Lt(mt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Lt(n.x1.x)+" "+Lt(n.x1.y)+" m"),r.push(Lt(n.x2.x)+" "+Lt(n.x2.y)+" l"),r.push(Lt(n.x4.x)+" "+Lt(n.x4.y)+" m"),r.push(Lt(n.x3.x)+" "+Lt(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=mt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Lt(mt.internal.getWidth(e)-2)+" "+Lt(mt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Lt(r.x1.x)+" "+Lt(r.x1.y)+" m"),n.push(Lt(r.x2.x)+" "+Lt(r.x2.y)+" l"),n.push(Lt(r.x4.x)+" "+Lt(r.x4.y)+" m"),n.push(Lt(r.x3.x)+" "+Lt(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 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.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}};mt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=mt.internal.getWidth(e),r=mt.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}}}},mt.internal.getWidth=function(e){var t=0;return cr(e)==="object"&&(t=ow(e.Rect[2])),t},mt.internal.getHeight=function(e){var t=0;return cr(e)==="object"&&(t=ow(e.Rect[3])),t};var tL=qr.addField=function(e){if(eL(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=Vu,qr.AcroFormButton=dn,qr.AcroFormPushButton=Yu,qr.AcroFormRadioButton=Us,qr.AcroFormCheckBox=Ku,qr.AcroFormTextField=ts,qr.AcroFormPasswordField=Xu,qr.AcroFormAppearance=mt,qr.AcroForm={ChoiceField:Bs,ListBox:$s,ComboBox:qs,EditBox:Vu,Button:dn,PushButton:Yu,RadioButton:Us,CheckBox:Ku,TextField:ts,PasswordField:Xu,Appearance:mt},yt.AcroForm={ChoiceField:Bs,ListBox:$s,ComboBox:qs,EditBox:Vu,Button:dn,PushButton:Yu,RadioButton:Us,CheckBox:Ku,TextField:ts,PasswordField:Xu,Appearance:mt};var rL=yt.AcroForm;function zE(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,E){var D,U,H,B,z,te=t;if((E=E||t)==="RGBA"||j.data!==void 0&&j.data instanceof Uint8ClampedArray&&"height"in j&&"width"in j)return"RGBA";if(O(j))for(z in r)for(H=r[z],D=0;D<H.length;D+=1){for(B=!0,U=0;U<H[D].length;U+=1)if(H[D][U]!==void 0&&H[D][U]!==j[U]){B=!1;break}if(B===!0){te=z;break}}else for(z in r)for(H=r[z],D=0;D<H.length;D+=1){for(B=!0,U=0;U<H[D].length;U+=1)if(H[D][U]!==void 0&&H[D][U]!==j.charCodeAt(U)){B=!1;break}if(B===!0){te=z;break}}return te===t&&E!==t&&(te=E),te},i=function j(E){for(var D=this.internal.write,U=this.internal.putStream,H=(0,this.internal.getFilters)();H.indexOf("FlateEncode")!==-1;)H.splice(H.indexOf("FlateEncode"),1);E.objectId=this.internal.newObject();var B=[];if(B.push({key:"Type",value:"/XObject"}),B.push({key:"Subtype",value:"/Image"}),B.push({key:"Width",value:E.width}),B.push({key:"Height",value:E.height}),E.colorSpace===m.INDEXED?B.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(B.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===m.DEVICE_CMYK&&B.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),B.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&B.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)){for(var z="",te=0,Z=E.transparency.length;te<Z;te++)z+=E.transparency[te]+" "+E.transparency[te]+" ";B.push({key:"Mask",value:"["+z+"]"})}E.sMask!==void 0&&B.push({key:"SMask",value:E.objectId+1+" 0 R"});var ee=E.filter!==void 0?["/"+E.filter]:void 0;if(U({data:E.data,additionalKeyValues:B,alreadyAppliedFilters:ee,objectId:E.objectId}),D("endobj"),"sMask"in E&&E.sMask!==void 0){var ce="/Predictor "+E.predictor+" /Colors 1 /BitsPerComponent "+E.bitsPerComponent+" /Columns "+E.width,P={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:E.bitsPerComponent,decodeParameters:ce,data:E.sMask};"filter"in E&&(P.filter=E.filter),j.call(this,P)}if(E.colorSpace===m.INDEXED){var I=this.internal.newObject();U({data:k(new Uint8Array(E.palette)),objectId:I}),D("endobj")}},a=function(){var j=this.internal.collections.addImage_images;for(var E in j)i.call(this,j[E])},o=function(){var j,E=this.internal.collections.addImage_images,D=this.internal.write;for(var U in E)D("/I"+(j=E[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,E){if(j.nodeName==="IMG"&&j.hasAttribute("src")){var D=""+j.getAttribute("src");if(D.indexOf("data:image/")===0)return Gu(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 H;switch(E){case"PNG":H="image/png";break;case"WEBP":H="image/webp";break;case"JPEG":case"JPG":default:H="image/jpeg"}return Gu(j.toDataURL(H,1).split("base64,").pop())}},h=function(j){var E=this.internal.collections.addImage_images;if(E){for(var D in E)if(j===E[D].alias)return E[D]}},g=function(j,E,D){return j||E||(j=-96,E=-96),j<0&&(j=-1*D.width*72/j/this.internal.scaleFactor),E<0&&(E=-1*D.height*72/E/this.internal.scaleFactor),j===0&&(j=E*D.width/D.height),E===0&&(E=j*D.height/D.width),[j,E]},p=function(j,E,D,U,H,B){var z=g.call(this,D,U,H),te=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,ee=l.call(this);if(D=z[0],U=z[1],ee[H.index]=H,B){B*=Math.PI/180;var ce=Math.cos(B),P=Math.sin(B),I=function(q){return q.toFixed(4)},M=[I(ce),I(P),I(-1*P),I(ce),0,0,"cm"]}this.internal.write("q"),B?(this.internal.write([1,"0","0",1,te(j),Z(E+U),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([te(D),"0","0",te(U),"0","0","cm"].join(" "))):this.internal.write([te(D),"0","0",te(U),te(j),Z(E+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+H.index+" Do"),this.internal.write("Q")},m=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 E,D,U=0;if(typeof j=="string")for(D=j.length,E=0;E<D;E++)U=(U<<5)-U+j.charCodeAt(E),U|=0;else if(O(j))for(D=j.byteLength/2,E=0;E<D;E++)U=(U<<5)-U+j[E],U|=0;return U},w=e.__addimage__.validateStringAsBase64=function(j){(j=j||"").toString().trim();var E=!0;return j.length===0&&(E=!1),j.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(j.substr(0,j.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(j.substr(-2))===!1&&(E=!1),E},S=e.__addimage__.extractImageFromDataUrl=function(j){var E=(j=j||"").split("base64,"),D=null;if(E.length===2){var U=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(E[0]);Array.isArray(U)&&(D={mimeType:U[1],charset:U[2],data:E[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 O=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 E=j.length,D=new Uint8Array(E),U=0;U<E;U++)D[U]=j.charCodeAt(U);return D},k=e.__addimage__.arrayBufferToBinaryString=function(j){for(var E="",D=O(j)?j:new Uint8Array(j),U=0;U<D.length;U+=8192)E+=String.fromCharCode.apply(null,D.subarray(U,U+8192));return E};e.addImage=function(){var j,E,D,U,H,B,z,te,Z;if(typeof arguments[1]=="number"?(E=t,D=arguments[1],U=arguments[2],H=arguments[3],B=arguments[4],z=arguments[5],te=arguments[6],Z=arguments[7]):(E=arguments[1],D=arguments[2],U=arguments[3],H=arguments[4],B=arguments[5],z=arguments[6],te=arguments[7],Z=arguments[8]),cr(j=arguments[0])==="object"&&!f(j)&&"imageData"in j){var ee=j;j=ee.imageData,E=ee.format||E||t,D=ee.x||D||0,U=ee.y||U||0,H=ee.w||ee.width||H,B=ee.h||ee.height||B,z=ee.alias||z,te=ee.compression||te,Z=ee.rotation||ee.angle||Z}var ce=this.internal.getFilters();if(te===void 0&&ce.indexOf("FlateEncode")!==-1&&(te="SLOW"),isNaN(D)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var P=L.call(this,j,E,z,te);return p.call(this,D,U,H,B,P,Z),this};var L=function(j,E,D,U){var H,B,z;if(typeof j=="string"&&n(j)===t){j=unescape(j);var te=R(j,!1);(te!==""||(te=e.loadFile(j,!0))!==void 0)&&(j=te)}if(f(j)&&(j=d(j,E)),E=n(j,E),!u(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((z=D)==null||z.length===0)&&(D=(function(Z){return typeof Z=="string"||O(Z)?b(Z):O(Z.data)?b(Z.data):null})(j)),(H=h.call(this,D))||(A()&&(j instanceof Uint8Array||E==="RGBA"||(B=j,j=T(j))),H=this["process"+E.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),B)),!H)throw new Error("An unknown error occurred whilst processing the image.");return H},R=e.__addimage__.convertBase64ToBinaryString=function(j,E){var D;E=typeof E!="boolean"||E;var U,H="";if(typeof j=="string"){U=(D=S(j))!==null?D.data:j;try{H=Gu(U)}catch(B){if(E)throw w(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+B.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return H};e.getImageProperties=function(j){var E,D,U="";if(f(j)&&(j=d(j)),typeof j=="string"&&n(j)===t&&((U=R(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)),!(E=this["process"+D.toUpperCase()](j)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=D,E}})(yt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};yt.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(),m=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 "+m.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+h(y(b))+") >>",p.content=a;var w=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 "+w,n.open&&(a+=" /Open true"),a+=" >>",m.content=a,this.internal.write(p.objId,"0 R",m.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 O=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+" "+O+" "+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}})(yt.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 m=0,y=r,b="",w=0;for(m=0;m<p.length;m+=1)y[p.charCodeAt(m)]!==void 0?(w++,typeof(y=y[p.charCodeAt(m)])=="number"&&(b+=String.fromCharCode(y),y=r,w=0),m===p.length-1&&(y=r,b+=p.charAt(m-(w-1)),m-=w-1,w=0)):(y=r,b+=p.charAt(m-w),m-=w,w=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,m,y){return o(p)?a(p)===!1?-1:!c(p)||!o(m)&&!o(y)||!o(y)&&s(m)||s(p)&&!o(m)||s(p)&&l(m)||s(p)&&s(m)?0:u(p)&&o(m)&&!s(m)&&o(y)&&c(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var m=0,y=0,b=0,w="",S="",A="",O=(p=p||"").split("\\s+"),T=[];for(m=0;m<O.length;m+=1){for(T.push(""),y=0;y<O[m].length;y+=1)w=O[m][y],S=O[m][y-1],A=O[m][y+1],o(w)?(b=d(w,S,A),T[m]+=b!==-1?String.fromCharCode(t[w.charCodeAt(0)][b]):w):T[m]+=w;T[m]=f(T[m])}return T.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(m)){var b=0;for(y=[],b=0;b<m.length;b+=1)Array.isArray(m[b])?y.push([h(m[b][0]),m[b][1],m[b][2]]):y.push([h(m[b])]);p=y}else p=h(m);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])})(yt.API),yt.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}])})(yt.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,m=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(w,S){return w.concat(m.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,m,y=[],b=[],w=[],S={},A={},O=[],T=[],k=(d=d||{}).autoSize||!1,L=d.printHeaders!==!1,R=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),E=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=R,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=D,this.internal.__cell__.headerTextColor=U,this.setFontSize(R),f==null)b=y=Object.keys(u[0]),w=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||""})),w=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,w=y.map((function(){return"left"})));if(k||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(S[m=y[h]]=u.map((function(ee){return ee[m]})),this.setFont(void 0,"bold"),O.push(this.getTextDimensions(b[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=S[m],this.setFont(void 0,"normal"),p=0;p<g.length;p+=1)O.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);A[m]=Math.max.apply(null,O)+E+E,O=[]}if(L){var H={};for(h=0;h<y.length;h+=1)H[y[h]]={},H[y[h]].text=b[h],H[y[h]].align=w[h];var B=s.call(this,H,A);T=y.map((function(ee){return new a(l,c,A[ee],B,H[ee].text,void 0,H[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 te=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]],te,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}})(yt.API);var WE={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},HE=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vy=zE(HE),GE=[100,200,300,400,500,600,700,800,900],nL=zE(GE);function gy(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return WE[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 sw(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 iL={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},lw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cw(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function aL(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},iL,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 '"+cw(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=sw(c,HE,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=WE[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=nL[l],f=sw(c,GE,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 '"+cw(a)+"'.");return o}function uw(e){return e.trimLeft()}function oL(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 sL(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 dh,fw,hw,$1=["times"];(function(e){var t,r,n,i,a,o,s,l,c,u=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new l,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new o,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new o,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.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(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var I=P;Object.defineProperty(this,"pdf",{get:function(){return I}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(Ae){M=!!Ae}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(Ae){q=!!Ae}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(Ae){isNaN(Ae)||(Y=Ae)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(Ae){isNaN(Ae)||(fe=Ae)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ae){var le;typeof Ae=="number"?le=[Ae,Ae,Ae,Ae]:((le=new Array(4))[0]=Ae[0],le[1]=Ae.length>=2?Ae[1]:le[0],le[2]=Ae.length>=3?Ae[2]:le[0],le[3]=Ae.length>=4?Ae[3]:le[1]),c.margin=le}});var ne=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ne},set:function(Ae){ne=Ae}});var K=0;Object.defineProperty(this,"lastBreak",{get:function(){return K},set:function(Ae){K=Ae}});var he=[];Object.defineProperty(this,"pageBreaks",{get:function(){return he},set:function(Ae){he=Ae}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ae){Ae instanceof u&&(c=Ae)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ae){c.path=Ae}});var be=[];Object.defineProperty(this,"ctxStack",{get:function(){return be},set:function(Ae){be=Ae}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ae){var le;le=d(Ae),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(Ae){var le=d(Ae);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(Ae){["butt","round","square"].indexOf(Ae)!==-1&&(this.ctx.lineCap=Ae,this.pdf.setLineCap(Ae))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ae){isNaN(Ae)||(this.ctx.lineWidth=Ae,this.pdf.setLineWidth(Ae))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ae){["bevel","round","miter"].indexOf(Ae)!==-1&&(this.ctx.lineJoin=Ae,this.pdf.setLineJoin(Ae))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ae){isNaN(Ae)||(this.ctx.miterLimit=Ae,this.pdf.setMiterLimit(Ae))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ae){this.ctx.textBaseline=Ae}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ae){["right","end","center","left","start"].indexOf(Ae)!==-1&&(this.ctx.textAlign=Ae)}});var se=null;function Le(Ae,le){if(se===null){var Me=(function(Qe){var Ue=[];return Object.keys(Qe).forEach((function(Ke){Qe[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})(Ae.getFontList());se=(function(Qe){for(var Ue={},Ke=0;Ke<Qe.length;++Ke){var Ze=gy(Qe[Ke]),Je=Ze.family,dt=Ze.stretch,vt=Ze.style,wt=Ze.weight;Ue[Je]=Ue[Je]||{},Ue[Je][dt]=Ue[Je][dt]||{},Ue[Je][dt][vt]=Ue[Je][dt][vt]||{},Ue[Je][dt][vt][wt]=Ze}return Ue})(Me.concat(le))}return se}var Se=null;Object.defineProperty(this,"fontFaces",{get:function(){return Se},set:function(Ae){se=null,Se=Ae}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ae){var le;if(this.ctx.font=Ae,(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(Ae))!==null){var Me=le[1],Qe=(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(_t){var Ft,at,Dr=[],zt=_t.trim();if(zt==="")return $1;if(zt in lw)return[lw[zt]];for(;zt!=="";){switch(at=null,Ft=(zt=uw(zt)).charAt(0)){case'"':case"'":at=oL(zt.substring(1),Ft);break;default:at=sL(zt)}if(at===null||(Dr.push(at[0]),(zt=uw(at[1]))!==""&&zt.charAt(0)!==","))return $1;zt=zt.replace(/^,/,"")}return Dr})(Ke);if(this.fontFaces){var dt=aL(Le(this.pdf,this.fontFaces),Je.map((function(_t){return{family:_t,stretch:"normal",weight:Qe,style:Me}})));this.pdf.setFont(dt.ref.name,dt.ref.style)}else{var vt="";(Qe==="bold"||parseInt(Qe,10)>=700||Me==="bold")&&(vt="bold"),Me==="italic"&&(vt+="italic"),vt.length===0&&(vt="normal");for(var wt="",Pt={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"},It=0;It<Je.length;It++){if(this.pdf.internal.getFont(Je[It],vt,{noFallback:!0,disableWarning:!0})!==void 0){wt=Je[It];break}if(vt==="bolditalic"&&this.pdf.internal.getFont(Je[It],"bold",{noFallback:!0,disableWarning:!0})!==void 0)wt=Je[It],vt="bold";else if(this.pdf.internal.getFont(Je[It],"normal",{noFallback:!0,disableWarning:!0})!==void 0){wt=Je[It],vt="normal";break}}if(wt===""){for(var Ut=0;Ut<Je.length;Ut++)if(Pt[Je[Ut]]){wt=Pt[Je[Ut]];break}}wt=wt===""?"Times":wt,this.pdf.setFont(wt,vt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ae){this.ctx.globalCompositeOperation=Ae}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ae){this.ctx.globalAlpha=Ae}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ae){this.ctx.lineDashOffset=Ae,ce.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ae){this.ctx.lineDash=Ae,ce.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ae){this.ctx.ignoreClearRect=!!Ae}})};f.prototype.setLineDash=function(P){this.lineDash=P},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(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new o(P,I));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(P,I)},f.prototype.closePath=function(){var P=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"){P=new o(this.path[I+1].x,this.path[I+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(P.x,P.y)},f.prototype.lineTo=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new o(P,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(P,I,M,q){if(isNaN(M)||isNaN(q)||isNaN(P)||isNaN(I))throw Ar.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(P,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(P,I,M,q,Y,fe){if(isNaN(Y)||isNaN(fe)||isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ne=this.ctx.transform.applyToPoint(new o(Y,fe)),K=this.ctx.transform.applyToPoint(new o(P,I)),he=this.ctx.transform.applyToPoint(new o(M,q));this.path.push({type:"bct",x1:K.x,y1:K.y,x2:he.x,y2:he.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new o(ne.x,ne.y)},f.prototype.arc=function(P,I,M,q,Y,fe){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q)||isNaN(Y))throw Ar.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var ne=this.ctx.transform.applyToPoint(new o(P,I));P=ne.x,I=ne.y;var K=this.ctx.transform.applyToPoint(new o(0,M)),he=this.ctx.transform.applyToPoint(new o(0,0));M=Math.sqrt(Math.pow(K.x-he.x,2)+Math.pow(K.y-he.y,2))}Math.abs(Y-q)>=2*Math.PI&&(q=0,Y=2*Math.PI),this.path.push({type:"arc",x:P,y:I,radius:M,startAngle:q,endAngle:Y,counterclockwise:fe})},f.prototype.arcTo=function(P,I,M,q,Y){throw new Error("arcTo not implemented.")},f.prototype.rect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,I),this.lineTo(P+M,I),this.lineTo(P+M,I+q),this.lineTo(P,I+q),this.lineTo(P,I),this.lineTo(P+M,I),this.lineTo(P,I)},f.prototype.fillRect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.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(P,I,M,q),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},f.prototype.strokeRect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(P,I,M,q),this.stroke())},f.prototype.clearRect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,I,M,q))},f.prototype.save=function(P){P=typeof P!="boolean"||P;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),P){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(P){P=typeof P!="boolean"||P;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),P&&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(P){var I,M,q,Y;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))I=0,M=0,q=0,Y=0;else{var fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);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(P))!==null)I=parseInt(fe[1]),M=parseInt(fe[2]),q=parseInt(fe[3]),Y=parseFloat(fe[4]);else{if(Y=1,typeof P=="string"&&P.charAt(0)!=="#"){var ne=new DE(P);P=ne.ok?ne.toHex():"#000000"}P.length===4?(I=P.substring(1,2),I+=I,M=P.substring(2,3),M+=M,q=P.substring(3,4),q+=q):(I=P.substring(1,3),M=P.substring(3,5),q=P.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:P}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(P,I,M,q){if(isNaN(I)||isNaN(M)||typeof P!="string")throw Ar.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=te(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;E.call(this,{text:P,x:I,y:M,scale:fe,angle:Y,align:this.textAlign,maxWidth:q})}},f.prototype.strokeText=function(P,I,M,q){if(isNaN(I)||isNaN(M)||typeof P!="string")throw Ar.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=te(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;E.call(this,{text:P,x:I,y:M,scale:fe,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:q})}},f.prototype.measureText=function(P){if(typeof P!="string")throw Ar.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(P)*q/I.internal.scaleFactor,fe=function(ne){var K=(ne=ne||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return K}}),this};return new fe({width:Y*=Math.round(96*M/72*1e4)/1e4})},f.prototype.scale=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new l(P,0,0,I,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.rotate=function(P){if(isNaN(P))throw Ar.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var I=new l(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(I)},f.prototype.translate=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new l(1,0,0,1,P,I);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.transform=function(P,I,M,q,Y,fe){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q)||isNaN(Y)||isNaN(fe))throw Ar.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ne=new l(P,I,M,q,Y,fe);this.ctx.transform=this.ctx.transform.multiply(ne)},f.prototype.setTransform=function(P,I,M,q,Y,fe){P=isNaN(P)?1:P,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(P,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(P,I,M,q,Y,fe,ne,K,he){var be=this.pdf.getImageProperties(P),se=1,Le=1,Se=1,Ae=1;q!==void 0&&K!==void 0&&(Se=K/q,Ae=he/Y,se=be.width/q*K/q,Le=be.height/Y*he/Y),fe===void 0&&(fe=I,ne=M,I=0,M=0),q!==void 0&&K===void 0&&(K=q,he=Y),q===void 0&&K===void 0&&(K=be.width,he=be.height);for(var le,Me=this.ctx.transform.decompose(),Qe=te(Me.rotate.shx),Ue=new l,Ke=(Ue=(Ue=(Ue=Ue.multiply(Me.translate)).multiply(Me.skew)).multiply(Me.scale)).applyToRectangle(new s(fe-I*Se,ne-M*Ae,q*se,Y*Le)),Ze=m.call(this,Ke),Je=[],dt=0;dt<Ze.length;dt+=1)Je.indexOf(Ze[dt])===-1&&Je.push(Ze[dt]);if(w(Je),this.autoPaging)for(var vt=Je[0],wt=Je[Je.length-1],Pt=vt;Pt<wt+1;Pt++){this.pdf.setPage(Pt);var It=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=Pt===1?this.posY+this.margin[0]:this.margin[0],_t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ft=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],at=Pt===1?0:_t+(Pt-2)*Ft;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+Ut+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=Dr}var zt=JSON.parse(JSON.stringify(Ke));zt=b([zt],this.posX+this.margin[3],-at+Ut+this.ctx.prevPageLastElemOffset)[0];var An=(Pt>vt||Pt<wt)&&p.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],It,Ft,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",zt.x,zt.y,zt.w,zt.h,null,null,Qe),An&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(P,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,Qe)};var m=function(P,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(P.type){default:case"mt":case"lt":q.push(Math.floor((P.y+Y)/M)+1);break;case"arc":q.push(Math.floor((P.y+Y-P.radius)/M)+1),q.push(Math.floor((P.y+Y+P.radius)/M)+1);break;case"qct":var fe=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.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 ne=ee(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);q.push(Math.floor((ne.y+Y)/M)+1),q.push(Math.floor((ne.y+ne.h+Y)/M)+1);break;case"rect":q.push(Math.floor((P.y+Y)/M)+1),q.push(Math.floor((P.y+P.h+Y)/M)+1)}for(var K=0;K<q.length;K+=1)for(;this.pdf.internal.getNumberOfPages()<q[K];)y.call(this);return q},y=function(){var P=this.fillStyle,I=this.strokeStyle,M=this.font,q=this.lineCap,Y=this.lineWidth,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=I,this.font=M,this.lineCap=q,this.lineWidth=Y,this.lineJoin=fe},b=function(P,I,M){for(var q=0;q<P.length;q++)switch(P[q].type){case"bct":P[q].x2+=I,P[q].y2+=M;case"qct":P[q].x1+=I,P[q].y1+=M;case"mt":case"lt":case"arc":default:P[q].x+=I,P[q].y+=M}return P},w=function(P){return P.sort((function(I,M){return I-M}))},S=function(P,I){for(var M,q,Y=this.fillStyle,fe=this.strokeStyle,ne=this.lineCap,K=this.lineWidth,he=Math.abs(K*this.ctx.transform.scaleX),be=this.lineJoin,se=JSON.parse(JSON.stringify(this.path)),Le=JSON.parse(JSON.stringify(this.path)),Se=[],Ae=0;Ae<Le.length;Ae++)if(Le[Ae].x!==void 0)for(var le=m.call(this,Le[Ae]),Me=0;Me<le.length;Me+=1)Se.indexOf(le[Me])===-1&&Se.push(le[Me]);for(var Qe=0;Qe<Se.length;Qe++)for(;this.pdf.internal.getNumberOfPages()<Se[Qe];)y.call(this);if(w(Se),this.autoPaging)for(var Ue=Se[0],Ke=Se[Se.length-1],Ze=Ue;Ze<Ke+1;Ze++){this.pdf.setPage(Ze),this.fillStyle=Y,this.strokeStyle=fe,this.lineCap=ne,this.lineWidth=he,this.lineJoin=be;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dt=Ze===1?this.posY+this.margin[0]:this.margin[0],vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],wt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Pt=Ze===1?0:vt+(Ze-2)*wt;if(this.ctx.clip_path.length!==0){var It=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(M,this.posX+this.margin[3],-Pt+dt+this.ctx.prevPageLastElemOffset),A.call(this,P,!0),this.path=It}if(q=JSON.parse(JSON.stringify(se)),this.path=b(q,this.posX+this.margin[3],-Pt+dt+this.ctx.prevPageLastElemOffset),I===!1||Ze===0){var Ut=(Ze>Ue||Ze<Ke)&&p.call(this);Ut&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,wt,null).clip().discardPath()),A.call(this,P,I),Ut&&this.pdf.restoreGraphicsState()}this.lineWidth=K}else this.lineWidth=he,A.call(this,P,I),this.lineWidth=K;this.path=se},A=function(P,I){if((P!=="stroke"||I||!g.call(this))&&(P==="stroke"||I||!h.call(this))){for(var M,q,Y=[],fe=this.path,ne=0;ne<fe.length;ne++){var K=fe[ne];switch(K.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:K,deltas:[],abs:[]});break;case"lt":var he=Y.length;if(fe[ne-1]&&!isNaN(fe[ne-1].x)&&(M=[K.x-fe[ne-1].x,K.y-fe[ne-1].y],he>0)){for(;he>=0;he--)if(Y[he-1].close!==!0&&Y[he-1].begin!==!0){Y[he-1].deltas.push(M),Y[he-1].abs.push(K);break}}break;case"bct":M=[K.x1-fe[ne-1].x,K.y1-fe[ne-1].y,K.x2-fe[ne-1].x,K.y2-fe[ne-1].y,K.x-fe[ne-1].x,K.y-fe[ne-1].y],Y[Y.length-1].deltas.push(M);break;case"qct":var be=fe[ne-1].x+2/3*(K.x1-fe[ne-1].x),se=fe[ne-1].y+2/3*(K.y1-fe[ne-1].y),Le=K.x+2/3*(K.x1-K.x),Se=K.y+2/3*(K.y1-K.y),Ae=K.x,le=K.y;M=[be-fe[ne-1].x,se-fe[ne-1].y,Le-fe[ne-1].x,Se-fe[ne-1].y,Ae-fe[ne-1].x,le-fe[ne-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(K)}}q=I?null:P==="stroke"?"stroke":"fill";for(var Me=!1,Qe=0;Qe<Y.length;Qe++)if(Y[Qe].arc)for(var Ue=Y[Qe].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,!Me):D.call(this,Ze.x,Ze.y),Me=!0}else if(Y[Qe].close===!0)this.pdf.internal.out("h"),Me=!1;else if(Y[Qe].begin!==!0){var Je=Y[Qe].start.x,dt=Y[Qe].start.y;U.call(this,Y[Qe].deltas,Je,dt),Me=!0}q&&L.call(this,q),I&&R.call(this)}},O=function(P){var I=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=I*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-M;case"top":return P+I-M;case"hanging":return P+I-2*M;case"middle":return P+I/2-M;case"ideographic":return P;case"alphabetic":default:return P}},T=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(I,M){this.colorStops.push([I,M])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(P,I,M,q,Y,fe,ne,K,he){for(var be=B.call(this,M,q,Y,fe),se=0;se<be.length;se++){var Le=be[se];se===0&&(he?j.call(this,Le.x1+P,Le.y1+I):D.call(this,Le.x1+P,Le.y1+I)),H.call(this,P,I,Le.x2,Le.y2,Le.x3,Le.y3,Le.x4,Le.y4)}K?R.call(this):L.call(this,ne)},L=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},R=function(){this.pdf.clip(),this.pdf.discardPath()},j=function(P,I){this.pdf.internal.out(r(P)+" "+n(I)+" m")},E=function(P){var I;switch(P.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(P.text),q=O.call(this,P.y),Y=T.call(this,q)-M.h,fe=this.ctx.transform.applyToPoint(new o(P.x,q)),ne=this.ctx.transform.decompose(),K=new l;K=(K=(K=K.multiply(ne.translate)).multiply(ne.skew)).multiply(ne.scale);for(var he,be,se,Le=this.ctx.transform.applyToRectangle(new s(P.x,q,M.w,M.h)),Se=K.applyToRectangle(new s(P.x,Y,M.w,M.h)),Ae=m.call(this,Se),le=[],Me=0;Me<Ae.length;Me+=1)le.indexOf(Ae[Me])===-1&&le.push(Ae[Me]);if(w(le),this.autoPaging)for(var Qe=le[0],Ue=le[le.length-1],Ke=Qe;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],dt=this.pdf.internal.pageSize.height-this.margin[2],vt=dt-this.margin[0],wt=this.pdf.internal.pageSize.width-this.margin[1],Pt=wt-this.margin[3],It=Ke===1?0:Je+(Ke-2)*vt;if(this.ctx.clip_path.length!==0){var Ut=this.path;he=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(he,this.posX+this.margin[3],-1*It+Ze),A.call(this,"fill",!0),this.path=Ut}var _t=b([JSON.parse(JSON.stringify(Se))],this.posX+this.margin[3],-It+Ze+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(be=this.pdf.internal.getFontSize(),this.pdf.setFontSize(be*P.scale),se=this.lineWidth,this.lineWidth=se*P.scale);var Ft=this.autoPaging!=="text";if(Ft||_t.y+_t.h<=dt){if(Ft||_t.y>=Ze&&_t.x<=wt){var at=Ft?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||wt-_t.x)[0],Dr=b([JSON.parse(JSON.stringify(Le))],this.posX+this.margin[3],-It+Ze+this.ctx.prevPageLastElemOffset)[0],zt=Ft&&(Ke>Qe||Ke<Ue)&&p.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pt,vt,null).clip().discardPath()),this.pdf.text(at,Dr.x,Dr.y,{angle:P.angle,align:I,renderingMode:P.renderingMode}),zt&&this.pdf.restoreGraphicsState()}}else _t.y<dt&&(this.ctx.prevPageLastElemOffset+=dt-_t.y);P.scale>=.01&&(this.pdf.setFontSize(be),this.lineWidth=se)}else P.scale>=.01&&(be=this.pdf.internal.getFontSize(),this.pdf.setFontSize(be*P.scale),se=this.lineWidth,this.lineWidth=se*P.scale),this.pdf.text(P.text,fe.x+this.posX,fe.y+this.posY,{angle:P.angle,align:I,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(be),this.lineWidth=se)},D=function(P,I,M,q){M=M||0,q=q||0,this.pdf.internal.out(r(P+M)+" "+n(I+q)+" l")},U=function(P,I,M){return this.pdf.lines(P,I,M,null,null)},H=function(P,I,M,q,Y,fe,ne,K){this.pdf.internal.out([t(i(M+P)),t(a(q+I)),t(i(Y+P)),t(a(fe+I)),t(i(ne+P)),t(a(K+I)),"c"].join(" "))},B=function(P,I,M,q){for(var Y=2*Math.PI,fe=Math.PI/2;I>M;)I-=Y;var ne=Math.abs(M-I);ne<Y&&q&&(ne=Y-ne);for(var K=[],he=q?-1:1,be=I;ne>1e-5;){var se=be+he*Math.min(ne,fe);K.push(z.call(this,P,be,se)),ne-=Math.abs(se-be),be=se}return K},z=function(P,I,M){var q=(M-I)/2,Y=P*Math.cos(q),fe=P*Math.sin(q),ne=Y,K=-fe,he=ne*ne+K*K,be=he+ne*Y+K*fe,se=4/3*(Math.sqrt(2*he*be)-be)/(ne*fe-K*Y),Le=ne-se*K,Se=K+se*ne,Ae=Le,le=-Se,Me=q+I,Qe=Math.cos(Me),Ue=Math.sin(Me);return{x1:P*Math.cos(I),y1:P*Math.sin(I),x2:Le*Qe-Se*Ue,y2:Le*Ue+Se*Qe,x3:Ae*Qe-le*Ue,y3:Ae*Ue+le*Qe,x4:P*Math.cos(M),y4:P*Math.sin(M)}},te=function(P){return 180*P/Math.PI},Z=function(P,I,M,q,Y,fe){var ne=P+.5*(M-P),K=I+.5*(q-I),he=Y+.5*(M-Y),be=fe+.5*(q-fe),se=Math.min(P,Y,ne,he),Le=Math.max(P,Y,ne,he),Se=Math.min(I,fe,K,be),Ae=Math.max(I,fe,K,be);return new s(se,Se,Le-se,Ae-Se)},ee=function(P,I,M,q,Y,fe,ne,K){var he,be,se,Le,Se,Ae,le,Me,Qe,Ue,Ke,Ze,Je,dt,vt=M-P,wt=q-I,Pt=Y-M,It=fe-q,Ut=ne-Y,_t=K-fe;for(be=0;be<41;be++)Qe=(le=(se=P+(he=be/40)*vt)+he*((Se=M+he*Pt)-se))+he*(Se+he*(Y+he*Ut-Se)-le),Ue=(Me=(Le=I+he*wt)+he*((Ae=q+he*It)-Le))+he*(Ae+he*(fe+he*_t-Ae)-Me),be==0?(Ke=Qe,Ze=Ue,Je=Qe,dt=Ue):(Ke=Math.min(Ke,Qe),Ze=Math.min(Ze,Ue),Je=Math.max(Je,Qe),dt=Math.max(dt,Ue));return new s(Math.round(Ke),Math.round(Ze),Math.round(Je-Ke),Math.round(dt-Ze))},ce=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,I,M=(P=this.ctx.lineDash,I=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:I}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(yt.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(m,y){for(var b=y;b>0;b--)m.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",m="replace";for(a[p](-2),a=a[p](0,-2)[m](/\s/g,"")[m]("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 w=b;w>0;w--)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(" ")}}})(yt.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,m=[],y=String.fromCharCode;for(d=0;d<p;d+=1)m.push(y(255&g.charCodeAt(d)));return m.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})(yt.API),(function(e){function t(){return(Et.html2canvas?Promise.resolve(Et.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(Et.DOMPurify?Promise.resolve(Et.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||yt.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,yt.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()}})(yt.API),yt.API.addJS=function(e){return hw=e,this.internal.events.subscribe("postPutResources",(function(){dh=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(dh+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),fw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hw+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){dh!==void 0&&fw!==void 0&&this.internal.out("/Names <</JavaScript "+dh+" 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}}])})(yt.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},m=4;m<g;m+=2){if(m+=h,t.indexOf(f.charCodeAt(m+1))!==-1){d=256*f.charCodeAt(m+5)+f.charCodeAt(m+6),p={width:256*f.charCodeAt(m+7)+f.charCodeAt(m+8),height:d,numcomponents:f.charCodeAt(m+9)};break}h=256*f.charCodeAt(m+2)+f.charCodeAt(m+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}})(yt.API);var Fl,ph,dw,pw,mw,lL=(function(){var e,t,r;function n(a){var o,s,l,c,u,f,d,h,g,p,m,y,b,w;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=(m=this.read(o)).indexOf(0),h=String.fromCharCode.apply(String,m.slice(0,d)),this.text[h]=String.fromCharCode.apply(String,m.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=(w=this.colorType)===4||w===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,m,y,b,w,S,A,O,T,k,L,R,j,E,D,U,H,B,z,te,Z,ee=Math.ceil((c.width-f)/h),ce=Math.ceil((c.height-d)/g),P=c.width==ee&&c.height==ce;for(E=o*ee,R=P?s:new Uint8Array(E*ce),S=a.length,j=0,m=0;j<ce&&l<S;){switch(a[l++]){case 0:for(b=H=0;H<E;b=H+=1)R[m++]=a[l++];break;case 1:for(b=B=0;B<E;b=B+=1)p=a[l++],w=b<o?0:R[m-o],R[m++]=(p+w)%256;break;case 2:for(b=z=0;z<E;b=z+=1)p=a[l++],y=(b-b%o)/o,D=j&&R[(j-1)*E+y*o+b%o],R[m++]=(D+p)%256;break;case 3:for(b=te=0;te<E;b=te+=1)p=a[l++],y=(b-b%o)/o,w=b<o?0:R[m-o],D=j&&R[(j-1)*E+y*o+b%o],R[m++]=(p+Math.floor((w+D)/2))%256;break;case 4:for(b=Z=0;Z<E;b=Z+=1)p=a[l++],y=(b-b%o)/o,w=b<o?0:R[m-o],j===0?D=U=0:(D=R[(j-1)*E+y*o+b%o],U=y&&R[(j-1)*E+(y-1)*o+b%o]),A=w+D-U,O=Math.abs(A-w),k=Math.abs(A-D),L=Math.abs(A-U),T=O<=k&&O<=L?w:k<=L?D:U,R[m++]=(p+T)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!P){var I=((d+j*g)*c.width+f)*o,M=j*E;for(b=0;b<ee;b+=1){for(var q=0;q<o;q+=1)s[I++]=R[M++];I+=(h-1)*o}}j++}}return a=Bk(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,m,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,m=f[h++],c[u++]=m,c[u++]=m,c[u++]=m,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(Et)==="[object Window]"){try{t=Et.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 cL(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 m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,S=e[t++],A=S>>6&1,O=1<<(7&S)+1,T=s,k=l,L=!1;S>>7&&(L=!0,T=t,k=O,t+=3*O);var R=t;for(t++;;){var j;if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}u.push({x:m,y,width:b,height:w,has_local_palette:L,palette_offset:T,palette_size:k,data_offset:R,data_length:t-R,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(E){if(E<0||E>=u.length)throw new Error("Frame index out of range.");return u[E]},this.decodeAndBlitFrameBGRA=function(E,D){var U=this.frameInfo(E),H=U.width*U.height,B=new Uint8Array(H);vw(e,U.data_offset,B,H);var z=U.palette_offset,te=U.transparent_index;te===null&&(te=256);var Z=U.width,ee=r-Z,ce=Z,P=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),M=P,q=4*ee;U.interlaced===!0&&(q+=4*r*7);for(var Y=8,fe=0,ne=B.length;fe<ne;++fe){var K=B[fe];if(ce===0&&(ce=Z,(M+=q)>=I&&(q=4*ee+4*r*(Y-1),M=P+(Z+ee)*(Y<<1),Y>>=1)),K===te)M+=4;else{var he=e[z+3*K],be=e[z+3*K+1],se=e[z+3*K+2];D[M++]=se,D[M++]=be,D[M++]=he,D[M++]=255}--ce}},this.decodeAndBlitFrameRGBA=function(E,D){var U=this.frameInfo(E),H=U.width*U.height,B=new Uint8Array(H);vw(e,U.data_offset,B,H);var z=U.palette_offset,te=U.transparent_index;te===null&&(te=256);var Z=U.width,ee=r-Z,ce=Z,P=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),M=P,q=4*ee;U.interlaced===!0&&(q+=4*r*7);for(var Y=8,fe=0,ne=B.length;fe<ne;++fe){var K=B[fe];if(ce===0&&(ce=Z,(M+=q)>=I&&(q=4*ee+4*r*(Y-1),M=P+(Z+ee)*(Y<<1),Y>>=1)),K===te)M+=4;else{var he=e[z+3*K],be=e[z+3*K+1],se=e[z+3*K+2];D[M++]=he,D[M++]=be,D[M++]=se,D[M++]=255}--ce}}}function vw(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 m=f&c;if(f>>=l,u-=l,m!==a){if(m===o)break;for(var y=m<s?m:p,b=0,w=y;w>a;)w=g[w]>>8,++b;var S=w;if(d+b+(y!==m?1:0)>n)return void Ar.log("Warning, gif stream longer than expected.");r[d++]=S;var A=d+=b;for(y!==m&&(r[d++]=S),w=y;b--;)w=g[w],r[--A]=255&w,w>>=8;p!==null&&s<4096&&(g[s++]=p<<8|S,s>=c+1&&l<12&&(++l,c=c<<1|1)),p=m}else s=o+1,c=(1<<(l=i+1))-1,p=null}return d!==n&&Ar.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=[],m=0,y=7,b=new Array(64),w=new Array(64),S=new Array(64),A=new Array(256),O=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],R=[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],E=[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],H=[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 B(P,I){for(var M=0,q=0,Y=new Array,fe=1;fe<=16;fe++){for(var ne=1;ne<=P[fe];ne++)Y[I[q]]=[],Y[I[q]][0]=M,Y[I[q]][1]=fe,q++,M++;M*=2}return Y}function z(P){for(var I=P[0],M=P[1]-1;M>=0;)I&1<<M&&(m|=1<<y),M--,--y<0&&(m==255?(te(255),te(0)):te(m),y=7,m=0)}function te(P){p.push(P)}function Z(P){te(P>>8&255),te(255&P)}function ee(P,I,M,q,Y){for(var fe,ne=Y[0],K=Y[240],he=(function(Ue,Ke){var Ze,Je,dt,vt,wt,Pt,It,Ut,_t,Ft,at=0;for(_t=0;_t<8;++_t){Ze=Ue[at],Je=Ue[at+1],dt=Ue[at+2],vt=Ue[at+3],wt=Ue[at+4],Pt=Ue[at+5],It=Ue[at+6];var Dr=Ze+(Ut=Ue[at+7]),zt=Ze-Ut,An=Je+It,Kt=Je-It,fr=dt+Pt,Vn=dt-Pt,Ht=vt+wt,Pe=vt-wt,ct=Dr+Ht,Wt=Dr-Ht,Or=An+fr,Nt=An-fr;Ue[at]=ct+Or,Ue[at+4]=ct-Or;var ht=.707106781*(Nt+Wt);Ue[at+2]=Wt+ht,Ue[at+6]=Wt-ht;var Gt=.382683433*((ct=Pe+Vn)-(Nt=Kt+zt)),Ha=.5411961*ct+Gt,ln=1.306562965*Nt+Gt,Ii=.707106781*(Or=Vn+Kt),Fi=zt+Ii,St=zt-Ii;Ue[at+5]=St+Ha,Ue[at+3]=St-Ha,Ue[at+1]=Fi+ln,Ue[at+7]=Fi-ln,at+=8}for(at=0,_t=0;_t<8;++_t){Ze=Ue[at],Je=Ue[at+8],dt=Ue[at+16],vt=Ue[at+24],wt=Ue[at+32],Pt=Ue[at+40],It=Ue[at+48];var xi=Ze+(Ut=Ue[at+56]),ai=Ze-Ut,Fn=Je+It,Hr=Je-It,Rr=dt+Pt,J=dt-Pt,pe=vt+wt,ae=vt-wt,oe=xi+pe,de=xi-pe,me=Fn+Rr,Ee=Fn-Rr;Ue[at]=oe+me,Ue[at+32]=oe-me;var Ie=.707106781*(Ee+de);Ue[at+16]=de+Ie,Ue[at+48]=de-Ie;var Ne=.382683433*((oe=ae+J)-(Ee=Hr+ai)),Ce=.5411961*oe+Ne,ke=1.306562965*Ee+Ne,Ye=.707106781*(me=J+Hr),et=ai+Ye,lt=ai-Ye;Ue[at+40]=lt+Ce,Ue[at+24]=lt-Ce,Ue[at+8]=et+ke,Ue[at+56]=et-ke,at++}for(_t=0;_t<64;++_t)Ft=Ue[_t]*Ke[_t],h[_t]=Ft>0?Ft+.5|0:Ft-.5|0;return h})(P,I),be=0;be<64;++be)g[T[be]]=he[be];var se=g[0]-M;M=g[0],se==0?z(q[0]):(z(q[d[fe=32767+se]]),z(f[fe]));for(var Le=63;Le>0&&g[Le]==0;)Le--;if(Le==0)return z(ne),M;for(var Se,Ae=1;Ae<=Le;){for(var le=Ae;g[Ae]==0&&Ae<=Le;)++Ae;var Me=Ae-le;if(Me>=16){Se=Me>>4;for(var Qe=1;Qe<=Se;++Qe)z(K);Me&=15}fe=32767+g[Ae],z(Y[(Me<<4)+d[fe]]),z(f[fe]),Ae++}return Le!=63&&z(ne),M}function ce(P){P=Math.min(Math.max(P,1),100),a!=P&&((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],ne=0;ne<64;ne++){var K=o((fe[ne]*I+50)/100);K=Math.min(Math.max(K,1),255),l[T[ne]]=K}for(var he=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],be=0,se=0;se<8;se++)for(var Le=0;Le<8;Le++)c[be]=1/(s[T[be]]*he[se]*he[Le]*8),u[be]=1/(l[T[be]]*he[se]*he[Le]*8),be++})(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),a=P)}this.encode=function(P,I){I&&ce(I),p=new Array,m=0,y=7,Z(65496),Z(65504),Z(16),te(74),te(70),te(73),te(70),te(0),te(1),te(1),te(0),Z(1),Z(1),te(0),te(0),(function(){Z(65499),Z(132),te(0);for(var Je=0;Je<64;Je++)te(s[Je]);te(1);for(var dt=0;dt<64;dt++)te(l[dt])})(),(function(Je,dt){Z(65472),Z(17),te(8),Z(dt),Z(Je),te(3),te(1),te(17),te(0),te(2),te(17),te(1),te(3),te(17),te(1)})(P.width,P.height),(function(){Z(65476),Z(418),te(0);for(var Je=0;Je<16;Je++)te(k[Je+1]);for(var dt=0;dt<=11;dt++)te(L[dt]);te(16);for(var vt=0;vt<16;vt++)te(R[vt+1]);for(var wt=0;wt<=161;wt++)te(j[wt]);te(1);for(var Pt=0;Pt<16;Pt++)te(E[Pt+1]);for(var It=0;It<=11;It++)te(D[It]);te(17);for(var Ut=0;Ut<16;Ut++)te(U[Ut+1]);for(var _t=0;_t<=161;_t++)te(H[_t])})(),Z(65498),Z(12),te(3),te(1),te(0),te(2),te(17),te(3),te(17),te(0),te(63),te(0);var M=0,q=0,Y=0;m=0,y=7,this.encode.displayName="_encode_";for(var fe,ne,K,he,be,se,Le,Se,Ae,le=P.data,Me=P.width,Qe=P.height,Ue=4*Me,Ke=0;Ke<Qe;){for(fe=0;fe<Ue;){for(be=Ue*Ke+fe,Le=-1,Se=0,Ae=0;Ae<64;Ae++)se=be+(Se=Ae>>3)*Ue+(Le=4*(7&Ae)),Ke+Se>=Qe&&(se-=Ue*(Ke+1+Se-Qe)),fe+Le>=Ue&&(se-=fe+Le-Ue+4),ne=le[se++],K=le[se++],he=le[se++],b[Ae]=(O[ne]+O[K+256>>0]+O[he+512>>0]>>16)-128,w[Ae]=(O[ne+768>>0]+O[K+1024>>0]+O[he+1280>>0]>>16)-128,S[Ae]=(O[ne+1280>>0]+O[K+1536>>0]+O[he+1792>>0]>>16)-128;M=ee(b,c,M,t,n),q=ee(w,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 P=String.fromCharCode,I=0;I<256;I++)A[I]=P(I)})(),t=B(k,L),r=B(E,D),n=B(R,j),i=B(U,H),(function(){for(var P=1,I=2,M=1;M<=15;M++){for(var q=P;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<=-P;Y++)d[32767+Y]=M,f[32767+Y]=[],f[32767+Y][1]=M,f[32767+Y][0]=I-1+Y;P<<=1,I<<=1}})(),(function(){for(var P=0;P<256;P++)O[P]=19595*P,O[P+256>>0]=38470*P,O[P+512>>0]=7471*P+32768,O[P+768>>0]=-11059*P,O[P+1024>>0]=-21709*P,O[P+1280>>0]=32768*P+8421375,O[P+1536>>0]=-27439*P,O[P+1792>>0]=-5329*P})(),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 gw(e){function t(k){if(!k)throw Error("assert :P")}function r(k,L,R){for(var j=0;4>j;j++)if(k[L+j]!=R.charCodeAt(j))return!0;return!1}function n(k,L,R,j,E){for(var D=0;D<E;D++)k[L+D]=R[j+D]}function i(k,L,R,j){for(var E=0;E<j;E++)k[L+E]=R}function a(k){return new Int32Array(k)}function o(k,L){for(var R=[],j=0;j<k;j++)R.push(new L);return R}function s(k,L){var R=[];return(function j(E,D,U){for(var H=U[D],B=0;B<H&&(E.push(U.length>D+1?[]:new L),!(U.length<D+1));B++)j(E[B],D+1,U)})(R,0,k),R}var l=function(){var k=this;function L(v,_){for(var C=1<<_-1>>>0;v&C;)C>>>=1;return C?(v&C-1)+C:v}function R(v,_,C,F,G){t(!(F%C));do v[_+(F-=C)]=G;while(0<F)}function j(v,_,C,F,G){if(t(2328>=G),512>=G)var X=a(512);else if((X=a(G))==null)return 0;return(function(Q,re,ie,ue,xe,Oe){var je,_e,We=re,Fe=1<<ie,ye=a(16),we=a(16);for(t(xe!=0),t(ue!=null),t(Q!=null),t(0<ie),_e=0;_e<xe;++_e){if(15<ue[_e])return 0;++ye[ue[_e]]}if(ye[0]==xe)return 0;for(we[1]=0,je=1;15>je;++je){if(ye[je]>1<<je)return 0;we[je+1]=we[je]+ye[je]}for(_e=0;_e<xe;++_e)je=ue[_e],0<ue[_e]&&(Oe[we[je]++]=_e);if(we[15]==1)return(ue=new E).g=0,ue.value=Oe[0],R(Q,We,1,Fe,ue),Fe;var qe,Ge=-1,ze=Fe-1,ft=0,it=1,At=1,ot=1<<ie;for(_e=0,je=1,xe=2;je<=ie;++je,xe<<=1){if(it+=At<<=1,0>(At-=ye[je]))return 0;for(;0<ye[je];--ye[je])(ue=new E).g=je,ue.value=Oe[_e++],R(Q,We+ft,xe,ot,ue),ft=L(ft,je)}for(je=ie+1,xe=2;15>=je;++je,xe<<=1){if(it+=At<<=1,0>(At-=ye[je]))return 0;for(;0<ye[je];--ye[je]){if(ue=new E,(ft&ze)!=Ge){for(We+=ot,qe=1<<(Ge=je)-ie;15>Ge&&!(0>=(qe-=ye[Ge]));)++Ge,qe<<=1;Fe+=ot=1<<(qe=Ge-ie),Q[re+(Ge=ft&ze)].g=qe+ie,Q[re+Ge].value=We-re-Ge}ue.g=je-ie,ue.value=Oe[_e++],R(Q,We+(ft>>ie),xe,ot,ue),ft=L(ft,je)}}return it!=2*we[15]-1?0:Fe})(v,_,C,F,G,X)}function E(){this.value=this.g=0}function D(){this.value=this.g=0}function U(){this.G=o(5,E),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Tn,D)}function H(v,_,C,F){t(v!=null),t(_!=null),t(2147483648>F),v.Ca=254,v.I=0,v.b=-8,v.Ka=0,v.oa=_,v.pa=C,v.Jd=_,v.Yc=C+F,v.Zc=4<=F?C+F-4+1:C,fe(v)}function B(v,_){for(var C=0;0<_--;)C|=K(v,128)<<_;return C}function z(v,_){var C=B(v,_);return ne(v)?-C:C}function te(v,_,C,F){var G,X=0;for(t(v!=null),t(_!=null),t(4294967288>F),v.Sb=F,v.Ra=0,v.u=0,v.h=0,4<F&&(F=4),G=0;G<F;++G)X+=_[C+G]<<8*G;v.Ra=X,v.bb=F,v.oa=_,v.pa=C}function Z(v){for(;8<=v.u&&v.bb<v.Sb;)v.Ra>>>=8,v.Ra+=v.oa[v.pa+v.bb]<<Al-8>>>0,++v.bb,v.u-=8;M(v)&&(v.h=1,v.u=0)}function ee(v,_){if(t(0<=_),!v.h&&_<=Sl){var C=I(v)&_l[_];return v.u+=_,Z(v),C}return v.h=1,v.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 P(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function I(v){return v.Ra>>>(v.u&Al-1)>>>0}function M(v){return t(v.bb<=v.Sb),v.h||v.bb==v.Sb&&v.u>Al}function q(v,_){v.u=_,v.h=M(v)}function Y(v){v.u>=vu&&(t(v.u>=vu),Z(v))}function fe(v){t(v!=null&&v.oa!=null),v.pa<v.Zc?(v.I=(v.oa[v.pa++]|v.I<<8)>>>0,v.b+=8):(t(v!=null&&v.oa!=null),v.pa<v.Yc?(v.b+=8,v.I=v.oa[v.pa++]|v.I<<8):v.Ka?v.b=0:(v.I<<=8,v.b+=8,v.Ka=1))}function ne(v){return B(v,1)}function K(v,_){var C=v.Ca;0>v.b&&fe(v);var F=v.b,G=C*_>>>8,X=(v.I>>>F>G)+0;for(X?(C-=G,v.I-=G+1<<F>>>0):C=G+1,F=C,G=0;256<=F;)G+=8,F>>=8;return F=7^G+si[F],v.b-=F,v.Ca=(C<<F)-1,X}function he(v,_,C){v[_+0]=C>>24&255,v[_+1]=C>>16&255,v[_+2]=C>>8&255,v[_+3]=C>>0&255}function be(v,_){return v[_+0]<<0|v[_+1]<<8}function se(v,_){return be(v,_)|v[_+2]<<16}function Le(v,_){return be(v,_)|be(v,_+2)<<16}function Se(v,_){var C=1<<_;return t(v!=null),t(0<_),v.X=a(C),v.X==null?0:(v.Mb=32-_,v.Xa=_,1)}function Ae(v,_){t(v!=null),t(_!=null),t(v.Xa==_.Xa),n(_.X,0,v.X,0,1<<_.Xa)}function le(){this.X=[],this.Xa=this.Mb=0}function Me(v,_,C,F){t(C!=null),t(F!=null);var G=C[0],X=F[0];return G==0&&(G=(v*X+_/2)/_),X==0&&(X=(_*G+v/2)/v),0>=G||0>=X?0:(C[0]=G,F[0]=X,1)}function Qe(v,_){return v+(1<<_)-1>>>_}function Ue(v,_){return((4278255360&v)+(4278255360&_)>>>0&4278255360)+((16711935&v)+(16711935&_)>>>0&16711935)>>>0}function Ke(v,_){k[_]=function(C,F,G,X,Q,re,ie){var ue;for(ue=0;ue<Q;++ue){var xe=k[v](re[ie+ue-1],G,X+ue);re[ie+ue]=Ue(C[F+ue],xe)}}}function Ze(){this.ud=this.hd=this.jd=0}function Je(v,_){return((4278124286&(v^_))>>>1)+(v&_)>>>0}function dt(v){return 0<=v&&256>v?v:0>v?0:255<v?255:void 0}function vt(v,_){return dt(v+(v-_+.5>>1))}function wt(v,_,C){return Math.abs(_-C)-Math.abs(v-C)}function Pt(v,_,C,F,G,X,Q){for(F=X[Q-1],C=0;C<G;++C)X[Q+C]=F=Ue(v[_+C],F)}function It(v,_,C,F,G){var X;for(X=0;X<C;++X){var Q=v[_+X],re=Q>>8&255,ie=16711935&(ie=(ie=16711935&Q)+((re<<16)+re));F[G+X]=(4278255360&Q)+ie>>>0}}function Ut(v,_){_.jd=v>>0&255,_.hd=v>>8&255,_.ud=v>>16&255}function _t(v,_,C,F,G,X){var Q;for(Q=0;Q<F;++Q){var re=_[C+Q],ie=re>>>8,ue=re,xe=255&(xe=(xe=re>>>16)+((v.jd<<24>>24)*(ie<<24>>24)>>>5));ue=255&(ue=(ue=ue+((v.hd<<24>>24)*(ie<<24>>24)>>>5))+((v.ud<<24>>24)*(xe<<24>>24)>>>5)),G[X+Q]=(4278255360&re)+(xe<<16)+ue}}function Ft(v,_,C,F,G){k[_]=function(X,Q,re,ie,ue,xe,Oe,je,_e){for(ie=Oe;ie<je;++ie)for(Oe=0;Oe<_e;++Oe)ue[xe++]=G(re[F(X[Q++])])},k[v]=function(X,Q,re,ie,ue,xe,Oe){var je=8>>X.b,_e=X.Ea,We=X.K[0],Fe=X.w;if(8>je)for(X=(1<<X.b)-1,Fe=(1<<je)-1;Q<re;++Q){var ye,we=0;for(ye=0;ye<_e;++ye)ye&X||(we=F(ie[ue++])),xe[Oe++]=G(We[we&Fe]),we>>=je}else k["VP8LMapColor"+C](ie,ue,We,Fe,xe,Oe,Q,re,_e)}}function at(v,_,C,F,G){for(C=_+C;_<C;){var X=v[_++];F[G++]=X>>16&255,F[G++]=X>>8&255,F[G++]=X>>0&255}}function Dr(v,_,C,F,G){for(C=_+C;_<C;){var X=v[_++];F[G++]=X>>16&255,F[G++]=X>>8&255,F[G++]=X>>0&255,F[G++]=X>>24&255}}function zt(v,_,C,F,G){for(C=_+C;_<C;){var X=(Q=v[_++])>>16&240|Q>>12&15,Q=Q>>0&240|Q>>28&15;F[G++]=X,F[G++]=Q}}function An(v,_,C,F,G){for(C=_+C;_<C;){var X=(Q=v[_++])>>16&248|Q>>13&7,Q=Q>>5&224|Q>>3&31;F[G++]=X,F[G++]=Q}}function Kt(v,_,C,F,G){for(C=_+C;_<C;){var X=v[_++];F[G++]=X>>0&255,F[G++]=X>>8&255,F[G++]=X>>16&255}}function fr(v,_,C,F,G,X){if(X==0)for(C=_+C;_<C;)he(F,((X=v[_++])[0]>>24|X[1]>>8&65280|X[2]<<8&16711680|X[3]<<24)>>>0),G+=32;else n(F,G,v,_,C)}function Vn(v,_){k[_][0]=k[v+"0"],k[_][1]=k[v+"1"],k[_][2]=k[v+"2"],k[_][3]=k[v+"3"],k[_][4]=k[v+"4"],k[_][5]=k[v+"5"],k[_][6]=k[v+"6"],k[_][7]=k[v+"7"],k[_][8]=k[v+"8"],k[_][9]=k[v+"9"],k[_][10]=k[v+"10"],k[_][11]=k[v+"11"],k[_][12]=k[v+"12"],k[_][13]=k[v+"13"],k[_][14]=k[v+"0"],k[_][15]=k[v+"0"]}function Ht(v){return v==g1||v==x1||v==J0||v==y1}function Pe(){this.eb=[],this.size=this.A=this.fb=0}function ct(){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 Wt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Pe,this.f.kb=new ct,this.sd=null}function Or(){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 ht(v){return alert("todo:WebPSamplerProcessPlane"),v.T}function Gt(v,_){var C=v.T,F=_.ba.f.RGBA,G=F.eb,X=F.fb+v.ka*F.A,Q=qi[_.ba.S],re=v.y,ie=v.O,ue=v.f,xe=v.N,Oe=v.ea,je=v.W,_e=_.cc,We=_.dc,Fe=_.Mc,ye=_.Nc,we=v.ka,qe=v.ka+v.T,Ge=v.U,ze=Ge+1>>1;for(we==0?Q(re,ie,null,null,ue,xe,Oe,je,ue,xe,Oe,je,G,X,null,null,Ge):(Q(_.ec,_.fc,re,ie,_e,We,Fe,ye,ue,xe,Oe,je,G,X-F.A,G,X,Ge),++C);we+2<qe;we+=2)_e=ue,We=xe,Fe=Oe,ye=je,xe+=v.Rc,je+=v.Rc,X+=2*F.A,Q(re,(ie+=2*v.fa)-v.fa,re,ie,_e,We,Fe,ye,ue,xe,Oe,je,G,X-F.A,G,X,Ge);return ie+=v.fa,v.j+qe<v.o?(n(_.ec,_.fc,re,ie,Ge),n(_.cc,_.dc,ue,xe,ze),n(_.Mc,_.Nc,Oe,je,ze),C--):1&qe||Q(re,ie,null,null,ue,xe,Oe,je,ue,xe,Oe,je,G,X+F.A,null,null,Ge),C}function Ha(v,_,C){var F=v.F,G=[v.J];if(F!=null){var X=v.U,Q=_.ba.S,re=Q==X0||Q==J0;_=_.ba.f.RGBA;var ie=[0],ue=v.ka;ie[0]=v.T,v.Kb&&(ue==0?--ie[0]:(--ue,G[0]-=v.width),v.j+v.ka+v.T==v.o&&(ie[0]=v.o-v.j-ue));var xe=_.eb;ue=_.fb+ue*_.A,v=Er(F,G[0],v.width,X,ie,xe,ue+(re?0:3),_.A),t(C==ie),v&&Ht(Q)&&Bi(xe,ue,re,X,ie,_.A)}return 0}function ln(v){var _=v.ma,C=_.ba.S,F=11>C,G=C==Y0||C==K0||C==X0||C==v1||C==12||Ht(C);if(_.memory=null,_.Ib=null,_.Jb=null,_.Nd=null,!pu(_.Oa,v,G?11:12))return 0;if(G&&Ht(C)&&Ve(),v.da)alert("todo:use_scaling");else{if(F){if(_.Ib=ht,v.Kb){if(C=v.U+1>>1,_.memory=a(v.U+2*C),_.memory==null)return 0;_.ec=_.memory,_.fc=0,_.cc=_.ec,_.dc=_.fc+v.U,_.Mc=_.cc,_.Nc=_.dc+C,_.Ib=Gt,Ve()}}else alert("todo:EmitYUV");G&&(_.Jb=Ha,F&&Te())}if(F&&!L5){for(v=0;256>v;++v)N8[v]=89858*(v-128)+Q0>>Z0,O8[v]=-22014*(v-128)+Q0,P8[v]=-45773*(v-128),E8[v]=113618*(v-128)+Q0>>Z0;for(v=Su;v<_1;++v)_=76283*(v-16)+Q0>>Z0,j8[v-Su]=bi(_,255),C8[v-Su]=bi(_+8>>4,15);L5=1}return 1}function Ii(v){var _=v.ma,C=v.U,F=v.T;return t(!(1&v.ka)),0>=C||0>=F?0:(C=_.Ib(v,_),_.Jb!=null&&_.Jb(v,_,C),_.Dc+=C,1)}function Fi(v){v.ma.memory=null}function St(v,_,C,F){return ee(v,8)!=47?0:(_[0]=ee(v,14)+1,C[0]=ee(v,14)+1,F[0]=ee(v,1),ee(v,3)!=0?0:!v.h)}function xi(v,_){if(4>v)return v+1;var C=v-2>>1;return(2+(1&v)<<C)+ee(_,C)+1}function ai(v,_){return 120<_?_-120:1<=(C=((C=h8[_-1])>>4)*v+(8-(15&C)))?C:1;var C}function Fn(v,_,C){var F=I(C),G=v[_+=255&F].g-8;return 0<G&&(q(C,C.u+8),F=I(C),_+=v[_].value,_+=F&(1<<G)-1),q(C,C.u+v[_].g),v[_].value}function Hr(v,_,C){return C.g+=v.g,C.value+=v.value<<_>>>0,t(8>=C.g),v.g}function Rr(v,_,C){var F=v.xc;return t((_=F==0?0:v.vc[v.md*(C>>F)+(_>>F)])<v.Wb),v.Ya[_]}function J(v,_,C,F){var G=v.ab,X=v.c*_,Q=v.C;_=Q+_;var re=C,ie=F;for(F=v.Ta,C=v.Ua;0<G--;){var ue=v.gc[G],xe=Q,Oe=_,je=re,_e=ie,We=(ie=F,re=C,ue.Ea);switch(t(xe<Oe),t(Oe<=ue.nc),ue.hc){case 2:q0(je,_e,(Oe-xe)*We,ie,re);break;case 0:var Fe=xe,ye=Oe,we=ie,qe=re,Ge=(ot=ue).Ea;Fe==0&&(p1(je,_e,null,null,1,we,qe),Pt(je,_e+1,0,0,Ge-1,we,qe+1),_e+=Ge,qe+=Ge,++Fe);for(var ze=1<<ot.b,ft=ze-1,it=Qe(Ge,ot.b),At=ot.K,ot=ot.w+(Fe>>ot.b)*it;Fe<ye;){var er=At,hr=ot,Xt=1;for(gu(je,_e,we,qe-Ge,1,we,qe);Xt<Ge;){var Vt=(Xt&~ft)+ze;Vt>Ge&&(Vt=Ge),(0,ko[er[hr++]>>8&15])(je,_e+ +Xt,we,qe+Xt-Ge,Vt-Xt,we,qe+Xt),Xt=Vt}_e+=Ge,qe+=Ge,++Fe&ft||(ot+=it)}Oe!=ue.nc&&n(ie,re-We,ie,re+(Oe-xe-1)*We,We);break;case 1:for(We=je,ye=_e,Ge=(je=ue.Ea)-(qe=je&~(we=(_e=1<<ue.b)-1)),Fe=Qe(je,ue.b),ze=ue.K,ue=ue.w+(xe>>ue.b)*Fe;xe<Oe;){for(ft=ze,it=ue,At=new Ze,ot=ye+qe,er=ye+je;ye<ot;)Ut(ft[it++],At),ys(At,We,ye,_e,ie,re),ye+=_e,re+=_e;ye<er&&(Ut(ft[it++],At),ys(At,We,ye,Ge,ie,re),ye+=Ge,re+=Ge),++xe&we||(ue+=Fe)}break;case 3:if(je==ie&&_e==re&&0<ue.b){for(ye=ie,je=We=re+(Oe-xe)*We-(qe=(Oe-xe)*Qe(ue.Ea,ue.b)),_e=ie,we=re,Fe=[],qe=(Ge=qe)-1;0<=qe;--qe)Fe[qe]=_e[we+qe];for(qe=Ge-1;0<=qe;--qe)ye[je+qe]=Fe[qe];Mi(ue,xe,Oe,ie,We,ie,re)}else Mi(ue,xe,Oe,je,_e,ie,re)}re=F,ie=C}ie!=C&&n(F,C,re,ie,X)}function pe(v,_){var C=v.V,F=v.Ba+v.c*v.C,G=_-v.C;if(t(_<=v.l.o),t(16>=G),0<G){var X=v.l,Q=v.Ta,re=v.Ua,ie=X.width;if(J(v,G,C,F),G=re=[re],t((C=v.C)<(F=_)),t(X.v<X.va),F>X.o&&(F=X.o),C<X.j){var ue=X.j-C;C=X.j,G[0]+=ue*ie}if(C>=F?C=0:(G[0]+=4*X.v,X.ka=C-X.j,X.U=X.va-X.v,X.T=F-C,C=1),C){if(re=re[0],11>(C=v.ca).S){var xe=C.f.RGBA,Oe=(F=C.S,G=X.U,X=X.T,ue=xe.eb,xe.A),je=X;for(xe=xe.fb+v.Ma*xe.A;0<je--;){var _e=Q,We=re,Fe=G,ye=ue,we=xe;switch(F){case V0:li(_e,We,Fe,ye,we);break;case Y0:Yn(_e,We,Fe,ye,we);break;case g1:Yn(_e,We,Fe,ye,we),Bi(ye,we,0,Fe,1,0);break;case A5:Xa(_e,We,Fe,ye,we);break;case K0:fr(_e,We,Fe,ye,we,1);break;case x1:fr(_e,We,Fe,ye,we,1),Bi(ye,we,0,Fe,1,0);break;case X0:fr(_e,We,Fe,ye,we,0);break;case J0:fr(_e,We,Fe,ye,we,0),Bi(ye,we,1,Fe,1,0);break;case v1:Lo(_e,We,Fe,ye,we);break;case y1:Lo(_e,We,Fe,ye,we),Nr(ye,we,Fe,1,0);break;case T5:Ka(_e,We,Fe,ye,we);break;default:t(0)}re+=ie,xe+=Oe}v.Ma+=X}else alert("todo:EmitRescaledRowsYUVA");t(v.Ma<=C.height)}}v.C=_,t(v.C<=v.i)}function ae(v){var _;if(0<v.ua)return 0;for(_=0;_<v.Wb;++_){var C=v.Ya[_].G,F=v.Ya[_].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(v,_,C,F,G,X){if(v.Z!=0){var Q=v.qd,re=v.rd;for(t(Do[v.Z]!=null);_<C;++_)Do[v.Z](Q,re,F,G,F,G,X),Q=F,re=G,G+=X;v.qd=Q,v.rd=re}}function de(v,_){var C=v.l.ma,F=C.Z==0||C.Z==1?v.l.j:v.C;if(F=v.C<F?F:v.C,t(_<=v.l.o),_>F){var G=v.l.width,X=C.ca,Q=C.tb+G*F,re=v.V,ie=v.Ba+v.c*F,ue=v.gc;t(v.ab==1),t(ue[0].hc==3),U0(ue[0],F,_,re,ie,X,Q),oe(C,F,_,X,Q,G)}v.C=v.Ma=_}function me(v,_,C,F,G,X,Q){var re=v.$/F,ie=v.$%F,ue=v.m,xe=v.s,Oe=C+v.$,je=Oe;G=C+F*G;var _e=C+F*X,We=280+xe.ua,Fe=v.Pb?re:16777216,ye=0<xe.ua?xe.Wa:null,we=xe.wc,qe=Oe<_e?Rr(xe,ie,re):null;t(v.C<X),t(_e<=G);var Ge=!1;e:for(;;){for(;Ge||Oe<_e;){var ze=0;if(re>=Fe){var ft=Oe-C;t((Fe=v).Pb),Fe.wd=Fe.m,Fe.xd=ft,0<Fe.s.ua&&Ae(Fe.s.Wa,Fe.s.vb),Fe=re+p8}if(ie&we||(qe=Rr(xe,ie,re)),t(qe!=null),qe.Qb&&(_[Oe]=qe.qb,Ge=!0),!Ge)if(Y(ue),qe.jc){ze=ue,ft=_;var it=Oe,At=qe.pd[I(ze)&Tn-1];t(qe.jc),256>At.g?(q(ze,ze.u+At.g),ft[it]=At.value,ze=0):(q(ze,ze.u+At.g-256),t(256<=At.value),ze=At.value),ze==0&&(Ge=!0)}else ze=Fn(qe.G[0],qe.H[0],ue);if(ue.h)break;if(Ge||256>ze){if(!Ge)if(qe.nd)_[Oe]=(qe.qb|ze<<8)>>>0;else{if(Y(ue),Ge=Fn(qe.G[1],qe.H[1],ue),Y(ue),ft=Fn(qe.G[2],qe.H[2],ue),it=Fn(qe.G[3],qe.H[3],ue),ue.h)break;_[Oe]=(it<<24|Ge<<16|ze<<8|ft)>>>0}if(Ge=!1,++Oe,++ie>=F&&(ie=0,++re,Q!=null&&re<=X&&!(re%16)&&Q(v,re),ye!=null))for(;je<Oe;)ze=_[je++],ye.X[(506832829*ze&4294967295)>>>ye.Mb]=ze}else if(280>ze){if(ze=xi(ze-256,ue),ft=Fn(qe.G[4],qe.H[4],ue),Y(ue),ft=ai(F,ft=xi(ft,ue)),ue.h)break;if(Oe-C<ft||G-Oe<ze)break e;for(it=0;it<ze;++it)_[Oe+it]=_[Oe+it-ft];for(Oe+=ze,ie+=ze;ie>=F;)ie-=F,++re,Q!=null&&re<=X&&!(re%16)&&Q(v,re);if(t(Oe<=G),ie&we&&(qe=Rr(xe,ie,re)),ye!=null)for(;je<Oe;)ze=_[je++],ye.X[(506832829*ze&4294967295)>>>ye.Mb]=ze}else{if(!(ze<We))break e;for(Ge=ze-280,t(ye!=null);je<Oe;)ze=_[je++],ye.X[(506832829*ze&4294967295)>>>ye.Mb]=ze;ze=Oe,t(!(Ge>>>(ft=ye).Xa)),_[ze]=ft.X[Ge],Ge=!0}Ge||t(ue.h==M(ue))}if(v.Pb&&ue.h&&Oe<G)t(v.m.h),v.a=5,v.m=v.wd,v.$=v.xd,0<v.s.ua&&Ae(v.s.vb,v.s.Wa);else{if(ue.h)break e;Q!=null&&Q(v,re>X?X:re),v.a=0,v.$=Oe-C}return 1}return v.a=3,0}function Ee(v){t(v!=null),v.vc=null,v.yc=null,v.Ya=null;var _=v.Wa;_!=null&&(_.X=null),v.vb=null,t(v!=null)}function Ie(){var v=new d1;return v==null?null:(v.a=0,v.xb=P5,Vn("Predictor","VP8LPredictors"),Vn("Predictor","VP8LPredictors_C"),Vn("PredictorAdd","VP8LPredictorsAdd"),Vn("PredictorAdd","VP8LPredictorsAdd_C"),q0=It,ys=_t,li=at,Yn=Dr,Lo=zt,Ka=An,Xa=Kt,k.VP8LMapColor32b=Tl,k.VP8LMapColor8b=z0,v)}function Ne(v,_,C,F,G){var X=1,Q=[v],re=[_],ie=F.m,ue=F.s,xe=null,Oe=0;e:for(;;){if(C)for(;X&&ee(ie,1);){var je=Q,_e=re,We=F,Fe=1,ye=We.m,we=We.gc[We.ab],qe=ee(ye,2);if(We.Oc&1<<qe)X=0;else{switch(We.Oc|=1<<qe,we.hc=qe,we.Ea=je[0],we.nc=_e[0],we.K=[null],++We.ab,t(4>=We.ab),qe){case 0:case 1:we.b=ee(ye,3)+2,Fe=Ne(Qe(we.Ea,we.b),Qe(we.nc,we.b),0,We,we.K),we.K=we.K[0];break;case 3:var Ge,ze=ee(ye,8)+1,ft=16<ze?0:4<ze?1:2<ze?2:3;if(je[0]=Qe(we.Ea,ft),we.b=ft,Ge=Fe=Ne(ze,1,0,We,we.K)){var it,At=ze,ot=we,er=1<<(8>>ot.b),hr=a(er);if(hr==null)Ge=0;else{var Xt=ot.K[0],Vt=ot.w;for(hr[0]=ot.K[0][0],it=1;it<1*At;++it)hr[it]=Ue(Xt[Vt+it],hr[it-1]);for(;it<4*er;++it)hr[it]=0;ot.K[0]=null,ot.K[0]=hr,Ge=1}}Fe=Ge;break;case 2:break;default:t(0)}X=Fe}}if(Q=Q[0],re=re[0],X&&ee(ie,1)&&!(X=1<=(Oe=ee(ie,4))&&11>=Oe)){F.a=3;break e}var Sr;if(Sr=X)t:{var yr,Rt,en,ci=F,tn=Q,ui=re,dr=Oe,_i=C,Si=ci.m,gn=ci.s,Nn=[null],Xn=1,Ui=0,ja=d8[dr];r:for(;;){if(_i&&ee(Si,1)){var xn=ee(Si,3)+2,eo=Qe(tn,xn),As=Qe(ui,xn),jl=eo*As;if(!Ne(eo,As,0,ci,Nn))break r;for(Nn=Nn[0],gn.xc=xn,yr=0;yr<jl;++yr){var Ro=Nn[yr]>>8&65535;Nn[yr]=Ro,Ro>=Xn&&(Xn=Ro+1)}}if(Si.h)break r;for(Rt=0;5>Rt;++Rt){var $r=N5[Rt];!Rt&&0<dr&&($r+=1<<dr),Ui<$r&&(Ui=$r)}var S1=o(Xn*ja,E),M5=Xn,D5=o(M5,U);if(D5==null)var th=null;else t(65536>=M5),th=D5;var Au=a(Ui);if(th==null||Au==null||S1==null){ci.a=1;break r}var rh=S1;for(yr=en=0;yr<Xn;++yr){var oa=th[yr],Cl=oa.G,kl=oa.H,R5=0,nh=1,B5=0;for(Rt=0;5>Rt;++Rt){$r=N5[Rt],Cl[Rt]=rh,kl[Rt]=en,!Rt&&0<dr&&($r+=1<<dr);i:{var ih,A1=$r,ah=ci,Tu=Au,I8=rh,F8=en,T1=0,Bo=ah.m,M8=ee(Bo,1);if(i(Tu,0,0,A1),M8){var D8=ee(Bo,1)+1,R8=ee(Bo,1),$5=ee(Bo,R8==0?1:8);Tu[$5]=1,D8==2&&(Tu[$5=ee(Bo,8)]=1);var oh=1}else{var q5=a(19),U5=ee(Bo,4)+4;if(19<U5){ah.a=3;var sh=0;break i}for(ih=0;ih<U5;++ih)q5[f8[ih]]=ee(Bo,3);var N1=void 0,Nu=void 0,z5=ah,B8=q5,lh=A1,W5=Tu,E1=0,$o=z5.m,H5=8,G5=o(128,E);n:for(;j(G5,0,7,B8,19);){if(ee($o,1)){var $8=2+2*ee($o,3);if((N1=2+ee($o,$8))>lh)break n}else N1=lh;for(Nu=0;Nu<lh&&N1--;){Y($o);var V5=G5[0+(127&I($o))];q($o,$o.u+V5.g);var Ll=V5.value;if(16>Ll)W5[Nu++]=Ll,Ll!=0&&(H5=Ll);else{var q8=Ll==16,Y5=Ll-16,U8=c8[Y5],K5=ee($o,l8[Y5])+U8;if(Nu+K5>lh)break n;for(var z8=q8?H5:0;0<K5--;)W5[Nu++]=z8}}E1=1;break n}E1||(z5.a=3),oh=E1}(oh=oh&&!Bo.h)&&(T1=j(I8,F8,8,Tu,A1)),oh&&T1!=0?sh=T1:(ah.a=3,sh=0)}if(sh==0)break r;if(nh&&u8[Rt]==1&&(nh=rh[en].g==0),R5+=rh[en].g,en+=sh,3>=Rt){var Eu,P1=Au[0];for(Eu=1;Eu<$r;++Eu)Au[Eu]>P1&&(P1=Au[Eu]);B5+=P1}}if(oa.nd=nh,oa.Qb=0,nh&&(oa.qb=(Cl[3][kl[3]+0].value<<24|Cl[1][kl[1]+0].value<<16|Cl[2][kl[2]+0].value)>>>0,R5==0&&256>Cl[0][kl[0]+0].value&&(oa.Qb=1,oa.qb+=Cl[0][kl[0]+0].value<<8)),oa.jc=!oa.Qb&&6>B5,oa.jc){var ch,to=oa;for(ch=0;ch<Tn;++ch){var qo=ch,Uo=to.pd[qo],uh=to.G[0][to.H[0]+qo];256<=uh.value?(Uo.g=uh.g+256,Uo.value=uh.value):(Uo.g=0,Uo.value=0,qo>>=Hr(uh,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=Nn,gn.Wb=Xn,gn.Ya=th,gn.yc=S1,Sr=1;break t}Sr=0}if(!(X=Sr)){F.a=3;break e}if(0<Oe){if(ue.ua=1<<Oe,!Se(ue.Wa,Oe)){F.a=1,X=0;break e}}else ue.ua=0;var O1=F,X5=Q,W8=re,j1=O1.s,C1=j1.xc;if(O1.c=X5,O1.i=W8,j1.md=Qe(X5,C1),j1.wc=C1==0?-1:(1<<C1)-1,C){F.xb=w8;break e}if((xe=a(Q*re))==null){F.a=1,X=0;break e}X=(X=me(F,xe,0,Q,re,re,null))&&!ie.h;break e}return X?(G!=null?G[0]=xe:(t(xe==null),t(C)),F.$=0,C||Ee(ue)):Ee(ue),X}function Ce(v,_){var C=v.c*v.i,F=C+_+16*_;return t(v.c<=_),v.V=a(F),v.V==null?(v.Ta=null,v.Ua=0,v.a=1,0):(v.Ta=v.V,v.Ua=v.Ba+C+_,1)}function ke(v,_){var C=v.C,F=_-C,G=v.V,X=v.Ba+v.c*C;for(t(_<=v.l.o);0<F;){var Q=16<F?16:F,re=v.l.ma,ie=v.l.width,ue=ie*Q,xe=re.ca,Oe=re.tb+ie*C,je=v.Ta,_e=v.Ua;J(v,Q,G,X),Yr(je,_e,xe,Oe,ue),oe(re,C,C+Q,xe,Oe,ie),F-=Q,G+=Q*v.c,C+=Q}t(C==_),v.C=v.Ma=_}function Ye(){this.ub=this.yd=this.td=this.Rb=0}function et(){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 v=[];return(function _(C,F,G){for(var X=G[F],Q=0;Q<X&&(C.push(G.length>F+1?[]:0),!(G.length<F+1));Q++)_(C[Q],F+1,G)})(v,0,[3,11]),v})()}function st(){this.jb=a(3),this.Wc=s([4,8],Xe),this.Xc=s([4,17],Xe)}function Ot(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function rr(){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 rr),this.Y=0,this.ya=Array(new ea),this.aa=0,this.l=new Na}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 et,this.ed=new Ot,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 rr),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],rr),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 Na(){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 v=new ta;return v!=null&&(v.a=0,v.sc="OK",v.cb=0,v.Xb=0,_u||(_u=N0)),v}function Gr(v,_,C){return v.a==0&&(v.a=_,v.sc=C,v.cb=0),0}function A0(v,_,C){return 3<=C&&v[_+0]==157&&v[_+1]==1&&v[_+2]==42}function T0(v,_){if(v==null)return 0;if(v.a=0,v.sc="OK",_==null)return Gr(v,2,"null VP8Io passed to VP8GetHeaders()");var C=_.data,F=_.w,G=_.ha;if(4>G)return Gr(v,7,"Truncated header.");var X=C[F+0]|C[F+1]<<8|C[F+2]<<16,Q=v.Od;if(Q.Rb=!(1&X),Q.td=X>>1&7,Q.yd=X>>4&1,Q.ub=X>>5,3<Q.td)return Gr(v,3,"Incorrect keyframe parameters.");if(!Q.yd)return Gr(v,4,"Frame not displayable.");F+=3,G-=3;var re=v.Kc;if(Q.Rb){if(7>G)return Gr(v,7,"cannot parse picture header");if(!A0(C,F,G))return Gr(v,3,"Bad code word");re.c=16383&(C[F+4]<<8|C[F+3]),re.Td=C[F+4]>>6,re.i=16383&(C[F+6]<<8|C[F+5]),re.Ud=C[F+6]>>6,F+=7,G-=7,v.za=re.c+15>>4,v.Ub=re.i+15>>4,_.width=re.c,_.height=re.i,_.Da=0,_.j=0,_.v=0,_.va=_.width,_.o=_.height,_.da=0,_.ib=_.width,_.hb=_.height,_.U=_.width,_.T=_.height,i((X=v.Pa).jb,0,255,X.jb.length),t((X=v.Qa)!=null),X.Cb=0,X.Bb=0,X.Fb=1,i(X.Zb,0,0,X.Zb.length),i(X.Lb,0,0,X.Lb)}if(Q.ub>G)return Gr(v,7,"bad partition length");H(X=v.m,C,F,Q.ub),F+=Q.ub,G-=Q.ub,Q.Rb&&(re.Ld=ne(X),re.Kd=ne(X)),re=v.Qa;var ie,ue=v.Pa;if(t(X!=null),t(re!=null),re.Cb=ne(X),re.Cb){if(re.Bb=ne(X),ne(X)){for(re.Fb=ne(X),ie=0;4>ie;++ie)re.Zb[ie]=ne(X)?z(X,7):0;for(ie=0;4>ie;++ie)re.Lb[ie]=ne(X)?z(X,6):0}if(re.Bb)for(ie=0;3>ie;++ie)ue.jb[ie]=ne(X)?B(X,8):255}else re.Bb=0;if(X.Ka)return Gr(v,3,"cannot parse segment header");if((re=v.ed).zd=ne(X),re.Tb=B(X,6),re.wb=B(X,3),re.Pc=ne(X),re.Pc&&ne(X)){for(ue=0;4>ue;++ue)ne(X)&&(re.vd[ue]=z(X,6));for(ue=0;4>ue;++ue)ne(X)&&(re.od[ue]=z(X,6))}if(v.L=re.Tb==0?0:re.zd?1:2,X.Ka)return Gr(v,3,"cannot parse filter header");var xe=G;if(G=ie=F,F=ie+xe,re=xe,v.Xb=(1<<B(v.m,2))-1,xe<3*(ue=v.Xb))C=7;else{for(ie+=3*ue,re-=3*ue,xe=0;xe<ue;++xe){var Oe=C[G+0]|C[G+1]<<8|C[G+2]<<16;Oe>re&&(Oe=re),H(v.Jc[+xe],C,ie,Oe),ie+=Oe,re-=Oe,G+=3}H(v.Jc[+ue],C,ie,re),C=ie<F?0:5}if(C!=0)return Gr(v,C,"cannot parse partitions");for(C=B(ie=v.m,7),G=ne(ie)?z(ie,4):0,F=ne(ie)?z(ie,4):0,re=ne(ie)?z(ie,4):0,ue=ne(ie)?z(ie,4):0,ie=ne(ie)?z(ie,4):0,xe=v.Qa,Oe=0;4>Oe;++Oe){if(xe.Cb){var je=xe.Zb[Oe];xe.Fb||(je+=C)}else{if(0<Oe){v.pb[Oe]=v.pb[0];continue}je=C}var _e=v.pb[Oe];_e.Sc[0]=b1[bi(je+G,127)],_e.Sc[1]=w1[bi(je+0,127)],_e.Eb[0]=2*b1[bi(je+F,127)],_e.Eb[1]=101581*w1[bi(je+re,127)]>>16,8>_e.Eb[1]&&(_e.Eb[1]=8),_e.Qc[0]=b1[bi(je+ue,117)],_e.Qc[1]=w1[bi(je+ie,127)],_e.lc=je+ie}if(!Q.Rb)return Gr(v,4,"Not a key frame.");for(ne(X),Q=v.Pa,C=0;4>C;++C){for(G=0;8>G;++G)for(F=0;3>F;++F)for(re=0;11>re;++re)ue=K(X,y8[C][G][F][re])?B(X,8):g8[C][G][F][re],Q.Wc[C][G].Yb[F][re]=ue;for(G=0;17>G;++G)Q.Xc[C][G]=Q.Wc[C][b8[G]]}return v.kc=ne(X),v.kc&&(v.Bd=B(X,8)),v.cb=1}function N0(v,_,C,F,G,X,Q){var re=_[G].Yb[C];for(C=0;16>G;++G){if(!K(v,re[C+0]))return G;for(;!K(v,re[C+1]);)if(re=_[++G].Yb[0],C=0,G==16)return 16;var ie=_[G+1].Yb;if(K(v,re[C+2])){var ue=v,xe=0;if(K(ue,(je=re)[(Oe=C)+3]))if(K(ue,je[Oe+6])){for(re=0,Oe=2*(xe=K(ue,je[Oe+8]))+(je=K(ue,je[Oe+9+xe])),xe=0,je=m8[Oe];je[re];++re)xe+=xe+K(ue,je[re]);xe+=3+(8<<Oe)}else K(ue,je[Oe+7])?(xe=7+2*K(ue,165),xe+=K(ue,145)):xe=5+K(ue,159);else xe=K(ue,je[Oe+4])?3+K(ue,je[Oe+5]):2;re=ie[2]}else xe=1,re=ie[1];ie=Q+v8[G],0>(ue=v).b&&fe(ue);var Oe,je=ue.b,_e=(Oe=ue.Ca>>1)-(ue.I>>je)>>31;--ue.b,ue.Ca+=_e,ue.Ca|=1,ue.I-=(Oe+1&_e)<<je,X[ie]=((xe^_e)-_e)*F[(0<G)+0]}return 16}function Qc(v){var _=v.rb[v.sb-1];_.la=0,_.Na=0,i(v.zc,0,0,v.zc.length),v.ja=0}function Xp(v,_){if(v==null)return 0;if(_==null)return Gr(v,2,"NULL VP8Io parameter in VP8Decode().");if(!v.cb&&!T0(v,_))return 0;if(t(v.cb),_.ac==null||_.ac(_)){_.ob&&(v.L=0);var C=eh[v.L];if(v.L==2?(v.yb=0,v.zb=0):(v.yb=_.v-C>>4,v.zb=_.j-C>>4,0>v.yb&&(v.yb=0),0>v.zb&&(v.zb=0)),v.Va=_.o+15+C>>4,v.Hb=_.va+15+C>>4,v.Hb>v.za&&(v.Hb=v.za),v.Va>v.Ub&&(v.Va=v.Ub),0<v.L){var F=v.ed;for(C=0;4>C;++C){var G;if(v.Qa.Cb){var X=v.Qa.Lb[C];v.Qa.Fb||(X+=F.Tb)}else X=F.Tb;for(G=0;1>=G;++G){var Q=v.gd[C][G],re=X;if(F.Pc&&(re+=F.vd[0],G&&(re+=F.od[0])),0<(re=0>re?0:63<re?63:re)){var ie=re;0<F.wb&&(ie=4<F.wb?ie>>2:ie>>1)>9-F.wb&&(ie=9-F.wb),1>ie&&(ie=1),Q.dd=ie,Q.tc=2*re+ie,Q.ld=40<=re?2:15<=re?1:0}else Q.tc=0;Q.La=G}}}C=0}else Gr(v,6,"Frame setup failed"),C=v.a;if(C=C==0){if(C){v.$c=0,0<v.Aa||(v.Ic=L8);e:{C=v.Ic,F=4*(ie=v.za);var ue=32*ie,xe=ie+1,Oe=0<v.L?ie*(0<v.Aa?2:1):0,je=(v.Aa==2?2:1)*ie;if((Q=F+832+(G=3*(16*C+eh[v.L])/2*ue)+(X=v.Fa!=null&&0<v.Fa.length?v.Kc.c*v.Kc.i:0))!=Q)C=0;else{if(Q>v.Vb){if(v.Vb=0,v.Ec=a(Q),v.Fc=0,v.Ec==null){C=Gr(v,1,"no memory during frame initialization.");break e}v.Vb=Q}Q=v.Ec,re=v.Fc,v.Ac=Q,v.Bc=re,re+=F,v.Gd=o(ue,Ta),v.Hd=0,v.rb=o(xe+1,xr),v.sb=1,v.wa=Oe?o(Oe,rr):null,v.Y=0,v.D.Nb=0,v.D.wa=v.wa,v.D.Y=v.Y,0<v.Aa&&(v.D.Y+=ie),t(!0),v.oc=Q,v.pc=re,re+=832,v.ya=o(je,ea),v.aa=0,v.D.ya=v.ya,v.D.aa=v.aa,v.Aa==2&&(v.D.aa+=ie),v.R=16*ie,v.B=8*ie,ie=(ue=eh[v.L])*v.R,ue=ue/2*v.B,v.sa=Q,v.ta=re+ie,v.qa=v.sa,v.ra=v.ta+16*C*v.R+ue,v.Ha=v.qa,v.Ia=v.ra+8*C*v.B+ue,v.$c=0,re+=G,v.mb=X?Q:null,v.nb=X?re:null,t(re+X<=v.Fc+v.Vb),Qc(v),i(v.Ac,v.Bc,0,F),C=1}}if(C){if(_.ka=0,_.y=v.sa,_.O=v.ta,_.f=v.qa,_.N=v.ra,_.ea=v.Ha,_.Vd=v.Ia,_.fa=v.R,_.Rc=v.B,_.F=null,_.J=0,!H0){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)wu[112+C]=-16>C?-16:15<C?15:C;for(C=-255;510>=C;++C)Ol[255+C]=0>C?0:255<C?255:C;H0=1}Nl=Qp,Ja=Jp,xu=P0,Kn=Zp,Di=O0,Vr=E0,El=au,W0=gs,yu=h1,bs=ou,ws=f1,Io=gl,_s=su,Pl=R0,Ss=D0,Fo=Pa,bu=Ya,Ri=u1,aa[0]=Ea,aa[1]=e1,aa[2]=i1,aa[3]=a1,aa[4]=k0,aa[5]=ml,aa[6]=L0,aa[7]=ru,aa[8]=s1,aa[9]=o1,Mo[0]=j0,Mo[1]=r1,Mo[2]=Va,Mo[3]=dl,Mo[4]=Mn,Mo[5]=n1,Mo[6]=C0,Qa[0]=Oo,Qa[1]=t1,Qa[2]=l1,Qa[3]=nu,Qa[4]=vs,Qa[5]=c1,Qa[6]=iu,C=1}else C=0}C&&(C=(function(_e,We){for(_e.M=0;_e.M<_e.Va;++_e.M){var Fe,ye=_e.Jc[_e.M&_e.Xb],we=_e.m,qe=_e;for(Fe=0;Fe<qe.za;++Fe){var Ge=we,ze=qe,ft=ze.Ac,it=ze.Bc+4*Fe,At=ze.zc,ot=ze.ya[ze.aa+Fe];if(ze.Qa.Bb?ot.$b=K(Ge,ze.Pa.jb[0])?2+K(Ge,ze.Pa.jb[2]):K(Ge,ze.Pa.jb[1]):ot.$b=0,ze.kc&&(ot.Ad=K(Ge,ze.Bd)),ot.Za=!K(Ge,145)+0,ot.Za){var er=ot.Ob,hr=0;for(ze=0;4>ze;++ze){var Xt,Vt=At[0+ze];for(Xt=0;4>Xt;++Xt){Vt=x8[ft[it+Xt]][Vt];for(var Sr=E5[K(Ge,Vt[0])];0<Sr;)Sr=E5[2*Sr+K(Ge,Vt[Sr])];Vt=-Sr,ft[it+Xt]=Vt}n(er,hr,ft,it,4),hr+=4,At[0+ze]=Vt}}else Vt=K(Ge,156)?K(Ge,128)?1:3:K(Ge,163)?2:0,ot.Ob[0]=Vt,i(ft,it,Vt,4),i(At,0,Vt,4);ot.Dd=K(Ge,142)?K(Ge,114)?K(Ge,183)?1:3:2:0}if(qe.m.Ka)return Gr(_e,7,"Premature end-of-partition0 encountered.");for(;_e.ja<_e.za;++_e.ja){if(qe=ye,Ge=(we=_e).rb[we.sb-1],ft=we.rb[we.sb+we.ja],Fe=we.ya[we.aa+we.ja],it=we.kc?Fe.Ad:0)Ge.la=ft.la=0,Fe.Za||(Ge.Na=ft.Na=0),Fe.Hc=0,Fe.Gc=0,Fe.ia=0;else{var yr,Rt;if(Ge=ft,ft=qe,it=we.Pa.Xc,At=we.ya[we.aa+we.ja],ot=we.pb[At.$b],ze=At.ad,er=0,hr=we.rb[we.sb-1],Vt=Xt=0,i(ze,er,0,384),At.Za)var en=0,ci=it[3];else{Sr=a(16);var tn=Ge.Na+hr.Na;if(tn=_u(ft,it[1],tn,ot.Eb,0,Sr,0),Ge.Na=hr.Na=(0<tn)+0,1<tn)Nl(Sr,0,ze,er);else{var ui=Sr[0]+3>>3;for(Sr=0;256>Sr;Sr+=16)ze[er+Sr]=ui}en=1,ci=it[0]}var dr=15&Ge.la,_i=15&hr.la;for(Sr=0;4>Sr;++Sr){var Si=1&_i;for(ui=Rt=0;4>ui;++ui)dr=dr>>1|(Si=(tn=_u(ft,ci,tn=Si+(1&dr),ot.Sc,en,ze,er))>en)<<7,Rt=Rt<<2|(3<tn?3:1<tn?2:ze[er+0]!=0),er+=16;dr>>=4,_i=_i>>1|Si<<7,Xt=(Xt<<8|Rt)>>>0}for(ci=dr,en=_i>>4,yr=0;4>yr;yr+=2){for(Rt=0,dr=Ge.la>>4+yr,_i=hr.la>>4+yr,Sr=0;2>Sr;++Sr){for(Si=1&_i,ui=0;2>ui;++ui)tn=Si+(1&dr),dr=dr>>1|(Si=0<(tn=_u(ft,it[2],tn,ot.Qc,0,ze,er)))<<3,Rt=Rt<<2|(3<tn?3:1<tn?2:ze[er+0]!=0),er+=16;dr>>=2,_i=_i>>1|Si<<5}Vt|=Rt<<4*yr,ci|=dr<<4<<yr,en|=(240&_i)<<yr}Ge.la=ci,hr.la=en,At.Hc=Xt,At.Gc=Vt,At.ia=43690&Vt?0:ot.ia,it=!(Xt|Vt)}if(0<we.L&&(we.wa[we.Y+we.ja]=we.gd[Fe.$b][Fe.Za],we.wa[we.Y+we.ja].La|=!it),qe.Ka)return Gr(_e,7,"Premature end-of-file encountered.")}if(Qc(_e),we=We,qe=1,Fe=(ye=_e).D,Ge=0<ye.L&&ye.M>=ye.zb&&ye.M<=ye.Va,ye.Aa==0)e:{if(Fe.M=ye.M,Fe.uc=Ge,du(ye,Fe),qe=1,Fe=(Rt=ye.D).Nb,Ge=(Vt=eh[ye.L])*ye.R,ft=Vt/2*ye.B,Sr=16*Fe*ye.R,ui=8*Fe*ye.B,it=ye.sa,At=ye.ta-Ge+Sr,ot=ye.qa,ze=ye.ra-ft+ui,er=ye.Ha,hr=ye.Ia-ft+ui,_i=(dr=Rt.M)==0,Xt=dr>=ye.Va-1,ye.Aa==2&&du(ye,Rt),Rt.uc)for(Si=(tn=ye).D.M,t(tn.D.uc),Rt=tn.yb;Rt<tn.Hb;++Rt){en=Rt,ci=Si;var gn=(Nn=($r=tn).D).Nb;yr=$r.R;var Nn=Nn.wa[Nn.Y+en],Xn=$r.sa,Ui=$r.ta+16*gn*yr+16*en,ja=Nn.dd,xn=Nn.tc;if(xn!=0)if(t(3<=xn),$r.L==1)0<en&&Fo(Xn,Ui,yr,xn+4),Nn.La&&Ri(Xn,Ui,yr,xn),0<ci&&Ss(Xn,Ui,yr,xn+4),Nn.La&&bu(Xn,Ui,yr,xn);else{var eo=$r.B,As=$r.qa,jl=$r.ra+8*gn*eo+8*en,Ro=$r.Ha,$r=$r.Ia+8*gn*eo+8*en;gn=Nn.ld,0<en&&(W0(Xn,Ui,yr,xn+4,ja,gn),bs(As,jl,Ro,$r,eo,xn+4,ja,gn)),Nn.La&&(Io(Xn,Ui,yr,xn,ja,gn),Pl(As,jl,Ro,$r,eo,xn,ja,gn)),0<ci&&(El(Xn,Ui,yr,xn+4,ja,gn),yu(As,jl,Ro,$r,eo,xn+4,ja,gn)),Nn.La&&(ws(Xn,Ui,yr,xn,ja,gn),_s(As,jl,Ro,$r,eo,xn,ja,gn))}}if(ye.ia&&alert("todo:DitherRow"),we.put!=null){if(Rt=16*dr,dr=16*(dr+1),_i?(we.y=ye.sa,we.O=ye.ta+Sr,we.f=ye.qa,we.N=ye.ra+ui,we.ea=ye.Ha,we.W=ye.Ia+ui):(Rt-=Vt,we.y=it,we.O=At,we.f=ot,we.N=ze,we.ea=er,we.W=hr),Xt||(dr-=Vt),dr>we.o&&(dr=we.o),we.F=null,we.J=null,ye.Fa!=null&&0<ye.Fa.length&&Rt<dr&&(we.J=fu(ye,we,Rt,dr-Rt),we.F=ye.mb,we.F==null&&we.F.length==0)){qe=Gr(ye,3,"Could not decode alpha data.");break e}Rt<we.j&&(Vt=we.j-Rt,Rt=we.j,t(!(1&Vt)),we.O+=ye.R*Vt,we.N+=ye.B*(Vt>>1),we.W+=ye.B*(Vt>>1),we.F!=null&&(we.J+=we.width*Vt)),Rt<dr&&(we.O+=we.v,we.N+=we.v>>1,we.W+=we.v>>1,we.F!=null&&(we.J+=we.v),we.ka=Rt-we.j,we.U=we.va-we.v,we.T=dr-Rt,qe=we.put(we))}Fe+1!=ye.Ic||Xt||(n(ye.sa,ye.ta-Ge,it,At+16*ye.R,Ge),n(ye.qa,ye.ra-ft,ot,ze+8*ye.B,ft),n(ye.Ha,ye.Ia-ft,er,hr+8*ye.B,ft))}if(!qe)return Gr(_e,6,"Output aborted.")}return 1})(v,_)),_.bc!=null&&_.bc(_),C&=1}return C?(v.cb=0,C):0}function ra(v,_,C,F,G){G=v[_+C+32*F]+(G>>3),v[_+C+32*F]=-256&G?0>G?0:255:G}function hl(v,_,C,F,G,X){ra(v,_,0,C,F+G),ra(v,_,1,C,F+X),ra(v,_,2,C,F-X),ra(v,_,3,C,F-G)}function oi(v){return(20091*v>>16)+v}function eu(v,_,C,F){var G,X=0,Q=a(16);for(G=0;4>G;++G){var re=v[_+0]+v[_+8],ie=v[_+0]-v[_+8],ue=(35468*v[_+4]>>16)-oi(v[_+12]),xe=oi(v[_+4])+(35468*v[_+12]>>16);Q[X+0]=re+xe,Q[X+1]=ie+ue,Q[X+2]=ie-ue,Q[X+3]=re-xe,X+=4,_++}for(G=X=0;4>G;++G)re=(v=Q[X+0]+4)+Q[X+8],ie=v-Q[X+8],ue=(35468*Q[X+4]>>16)-oi(Q[X+12]),ra(C,F,0,0,re+(xe=oi(Q[X+4])+(35468*Q[X+12]>>16))),ra(C,F,1,0,ie+ue),ra(C,F,2,0,ie-ue),ra(C,F,3,0,re-xe),X++,F+=32}function E0(v,_,C,F){var G=v[_+0]+4,X=35468*v[_+4]>>16,Q=oi(v[_+4]),re=35468*v[_+1]>>16;hl(C,F,0,G+Q,v=oi(v[_+1]),re),hl(C,F,1,G+X,v,re),hl(C,F,2,G-X,v,re),hl(C,F,3,G-Q,v,re)}function Jp(v,_,C,F,G){eu(v,_,C,F),G&&eu(v,_+16,C,F+4)}function P0(v,_,C,F){Ja(v,_+0,C,F,1),Ja(v,_+32,C,F+128,1)}function Zp(v,_,C,F){var G;for(v=v[_+0]+4,G=0;4>G;++G)for(_=0;4>_;++_)ra(C,F,_,G,v)}function O0(v,_,C,F){v[_+0]&&Kn(v,_+0,C,F),v[_+16]&&Kn(v,_+16,C,F+4),v[_+32]&&Kn(v,_+32,C,F+128),v[_+48]&&Kn(v,_+48,C,F+128+4)}function Qp(v,_,C,F){var G,X=a(16);for(G=0;4>G;++G){var Q=v[_+0+G]+v[_+12+G],re=v[_+4+G]+v[_+8+G],ie=v[_+4+G]-v[_+8+G],ue=v[_+0+G]-v[_+12+G];X[0+G]=Q+re,X[8+G]=Q-re,X[4+G]=ue+ie,X[12+G]=ue-ie}for(G=0;4>G;++G)Q=(v=X[0+4*G]+3)+X[3+4*G],re=X[1+4*G]+X[2+4*G],ie=X[1+4*G]-X[2+4*G],ue=v-X[3+4*G],C[F+0]=Q+re>>3,C[F+16]=ue+ie>>3,C[F+32]=Q-re>>3,C[F+48]=ue-ie>>3,F+=64}function tu(v,_,C){var F,G=_-32,X=wi,Q=255-v[G-1];for(F=0;F<C;++F){var re,ie=X,ue=Q+v[_-1];for(re=0;re<C;++re)v[_+re]=ie[ue+v[G+re]];_+=32}}function e1(v,_){tu(v,_,4)}function t1(v,_){tu(v,_,8)}function r1(v,_){tu(v,_,16)}function Va(v,_){var C;for(C=0;16>C;++C)n(v,_+32*C,v,_-32,16)}function dl(v,_){var C;for(C=16;0<C;--C)i(v,_,v[_-1],16),_+=32}function pl(v,_,C){var F;for(F=0;16>F;++F)i(_,C+32*F,v,16)}function j0(v,_){var C,F=16;for(C=0;16>C;++C)F+=v[_-1+32*C]+v[_+C-32];pl(F>>5,v,_)}function Mn(v,_){var C,F=8;for(C=0;16>C;++C)F+=v[_-1+32*C];pl(F>>4,v,_)}function n1(v,_){var C,F=8;for(C=0;16>C;++C)F+=v[_+C-32];pl(F>>4,v,_)}function C0(v,_){pl(128,v,_)}function Ct(v,_,C){return v+2*_+C+2>>2}function i1(v,_){var C,F=_-32;for(F=new Uint8Array([Ct(v[F-1],v[F+0],v[F+1]),Ct(v[F+0],v[F+1],v[F+2]),Ct(v[F+1],v[F+2],v[F+3]),Ct(v[F+2],v[F+3],v[F+4])]),C=0;4>C;++C)n(v,_+32*C,F,0,F.length)}function a1(v,_){var C=v[_-1],F=v[_-1+32],G=v[_-1+64],X=v[_-1+96];he(v,_+0,16843009*Ct(v[_-1-32],C,F)),he(v,_+32,16843009*Ct(C,F,G)),he(v,_+64,16843009*Ct(F,G,X)),he(v,_+96,16843009*Ct(G,X,X))}function Ea(v,_){var C,F=4;for(C=0;4>C;++C)F+=v[_+C-32]+v[_-1+32*C];for(F>>=3,C=0;4>C;++C)i(v,_+32*C,F,4)}function k0(v,_){var C=v[_-1+0],F=v[_-1+32],G=v[_-1+64],X=v[_-1-32],Q=v[_+0-32],re=v[_+1-32],ie=v[_+2-32],ue=v[_+3-32];v[_+0+96]=Ct(F,G,v[_-1+96]),v[_+1+96]=v[_+0+64]=Ct(C,F,G),v[_+2+96]=v[_+1+64]=v[_+0+32]=Ct(X,C,F),v[_+3+96]=v[_+2+64]=v[_+1+32]=v[_+0+0]=Ct(Q,X,C),v[_+3+64]=v[_+2+32]=v[_+1+0]=Ct(re,Q,X),v[_+3+32]=v[_+2+0]=Ct(ie,re,Q),v[_+3+0]=Ct(ue,ie,re)}function L0(v,_){var C=v[_+1-32],F=v[_+2-32],G=v[_+3-32],X=v[_+4-32],Q=v[_+5-32],re=v[_+6-32],ie=v[_+7-32];v[_+0+0]=Ct(v[_+0-32],C,F),v[_+1+0]=v[_+0+32]=Ct(C,F,G),v[_+2+0]=v[_+1+32]=v[_+0+64]=Ct(F,G,X),v[_+3+0]=v[_+2+32]=v[_+1+64]=v[_+0+96]=Ct(G,X,Q),v[_+3+32]=v[_+2+64]=v[_+1+96]=Ct(X,Q,re),v[_+3+64]=v[_+2+96]=Ct(Q,re,ie),v[_+3+96]=Ct(re,ie,ie)}function ml(v,_){var C=v[_-1+0],F=v[_-1+32],G=v[_-1+64],X=v[_-1-32],Q=v[_+0-32],re=v[_+1-32],ie=v[_+2-32],ue=v[_+3-32];v[_+0+0]=v[_+1+64]=X+Q+1>>1,v[_+1+0]=v[_+2+64]=Q+re+1>>1,v[_+2+0]=v[_+3+64]=re+ie+1>>1,v[_+3+0]=ie+ue+1>>1,v[_+0+96]=Ct(G,F,C),v[_+0+64]=Ct(F,C,X),v[_+0+32]=v[_+1+96]=Ct(C,X,Q),v[_+1+32]=v[_+2+96]=Ct(X,Q,re),v[_+2+32]=v[_+3+96]=Ct(Q,re,ie),v[_+3+32]=Ct(re,ie,ue)}function ru(v,_){var C=v[_+0-32],F=v[_+1-32],G=v[_+2-32],X=v[_+3-32],Q=v[_+4-32],re=v[_+5-32],ie=v[_+6-32],ue=v[_+7-32];v[_+0+0]=C+F+1>>1,v[_+1+0]=v[_+0+64]=F+G+1>>1,v[_+2+0]=v[_+1+64]=G+X+1>>1,v[_+3+0]=v[_+2+64]=X+Q+1>>1,v[_+0+32]=Ct(C,F,G),v[_+1+32]=v[_+0+96]=Ct(F,G,X),v[_+2+32]=v[_+1+96]=Ct(G,X,Q),v[_+3+32]=v[_+2+96]=Ct(X,Q,re),v[_+3+64]=Ct(Q,re,ie),v[_+3+96]=Ct(re,ie,ue)}function o1(v,_){var C=v[_-1+0],F=v[_-1+32],G=v[_-1+64],X=v[_-1+96];v[_+0+0]=C+F+1>>1,v[_+2+0]=v[_+0+32]=F+G+1>>1,v[_+2+32]=v[_+0+64]=G+X+1>>1,v[_+1+0]=Ct(C,F,G),v[_+3+0]=v[_+1+32]=Ct(F,G,X),v[_+3+32]=v[_+1+64]=Ct(G,X,X),v[_+3+64]=v[_+2+64]=v[_+0+96]=v[_+1+96]=v[_+2+96]=v[_+3+96]=X}function s1(v,_){var C=v[_-1+0],F=v[_-1+32],G=v[_-1+64],X=v[_-1+96],Q=v[_-1-32],re=v[_+0-32],ie=v[_+1-32],ue=v[_+2-32];v[_+0+0]=v[_+2+32]=C+Q+1>>1,v[_+0+32]=v[_+2+64]=F+C+1>>1,v[_+0+64]=v[_+2+96]=G+F+1>>1,v[_+0+96]=X+G+1>>1,v[_+3+0]=Ct(re,ie,ue),v[_+2+0]=Ct(Q,re,ie),v[_+1+0]=v[_+3+32]=Ct(C,Q,re),v[_+1+32]=v[_+3+64]=Ct(F,C,Q),v[_+1+64]=v[_+3+96]=Ct(G,F,C),v[_+1+96]=Ct(X,G,F)}function l1(v,_){var C;for(C=0;8>C;++C)n(v,_+32*C,v,_-32,8)}function nu(v,_){var C;for(C=0;8>C;++C)i(v,_,v[_-1],8),_+=32}function ms(v,_,C){var F;for(F=0;8>F;++F)i(_,C+32*F,v,8)}function Oo(v,_){var C,F=8;for(C=0;8>C;++C)F+=v[_+C-32]+v[_-1+32*C];ms(F>>4,v,_)}function c1(v,_){var C,F=4;for(C=0;8>C;++C)F+=v[_+C-32];ms(F>>3,v,_)}function vs(v,_){var C,F=4;for(C=0;8>C;++C)F+=v[_-1+32*C];ms(F>>3,v,_)}function iu(v,_){ms(128,v,_)}function vl(v,_,C){var F=v[_-C],G=v[_+0],X=3*(G-F)+m1[1020+v[_-2*C]-v[_+C]],Q=G0[112+(X+4>>3)];v[_-C]=wi[255+F+G0[112+(X+3>>3)]],v[_+0]=wi[255+G-Q]}function I0(v,_,C,F){var G=v[_+0],X=v[_+C];return $i[255+v[_-2*C]-v[_-C]]>F||$i[255+X-G]>F}function F0(v,_,C,F){return 4*$i[255+v[_-C]-v[_+0]]+$i[255+v[_-2*C]-v[_+C]]<=F}function M0(v,_,C,F,G){var X=v[_-3*C],Q=v[_-2*C],re=v[_-C],ie=v[_+0],ue=v[_+C],xe=v[_+2*C],Oe=v[_+3*C];return 4*$i[255+re-ie]+$i[255+Q-ue]>F?0:$i[255+v[_-4*C]-X]<=G&&$i[255+X-Q]<=G&&$i[255+Q-re]<=G&&$i[255+Oe-xe]<=G&&$i[255+xe-ue]<=G&&$i[255+ue-ie]<=G}function D0(v,_,C,F){var G=2*F+1;for(F=0;16>F;++F)F0(v,_+F,C,G)&&vl(v,_+F,C)}function Pa(v,_,C,F){var G=2*F+1;for(F=0;16>F;++F)F0(v,_+F*C,1,G)&&vl(v,_+F*C,1)}function Ya(v,_,C,F){var G;for(G=3;0<G;--G)D0(v,_+=4*C,C,F)}function u1(v,_,C,F){var G;for(G=3;0<G;--G)Pa(v,_+=4,C,F)}function jo(v,_,C,F,G,X,Q,re){for(X=2*X+1;0<G--;){if(M0(v,_,C,X,Q))if(I0(v,_,C,re))vl(v,_,C);else{var ie=v,ue=_,xe=C,Oe=ie[ue-2*xe],je=ie[ue-xe],_e=ie[ue+0],We=ie[ue+xe],Fe=ie[ue+2*xe],ye=27*(qe=m1[1020+3*(_e-je)+m1[1020+Oe-We]])+63>>7,we=18*qe+63>>7,qe=9*qe+63>>7;ie[ue-3*xe]=wi[255+ie[ue-3*xe]+qe],ie[ue-2*xe]=wi[255+Oe+we],ie[ue-xe]=wi[255+je+ye],ie[ue+0]=wi[255+_e-ye],ie[ue+xe]=wi[255+We-we],ie[ue+2*xe]=wi[255+Fe-qe]}_+=F}}function na(v,_,C,F,G,X,Q,re){for(X=2*X+1;0<G--;){if(M0(v,_,C,X,Q))if(I0(v,_,C,re))vl(v,_,C);else{var ie=v,ue=_,xe=C,Oe=ie[ue-xe],je=ie[ue+0],_e=ie[ue+xe],We=G0[112+((Fe=3*(je-Oe))+4>>3)],Fe=G0[112+(Fe+3>>3)],ye=We+1>>1;ie[ue-2*xe]=wi[255+ie[ue-2*xe]+ye],ie[ue-xe]=wi[255+Oe+Fe],ie[ue+0]=wi[255+je-We],ie[ue+xe]=wi[255+_e-ye]}_+=F}}function au(v,_,C,F,G,X){jo(v,_,C,1,16,F,G,X)}function gs(v,_,C,F,G,X){jo(v,_,1,C,16,F,G,X)}function f1(v,_,C,F,G,X){var Q;for(Q=3;0<Q;--Q)na(v,_+=4*C,C,1,16,F,G,X)}function gl(v,_,C,F,G,X){var Q;for(Q=3;0<Q;--Q)na(v,_+=4,1,C,16,F,G,X)}function h1(v,_,C,F,G,X,Q,re){jo(v,_,G,1,8,X,Q,re),jo(C,F,G,1,8,X,Q,re)}function ou(v,_,C,F,G,X,Q,re){jo(v,_,1,G,8,X,Q,re),jo(C,F,1,G,8,X,Q,re)}function su(v,_,C,F,G,X,Q,re){na(v,_+4*G,G,1,8,X,Q,re),na(C,F+4*G,G,1,8,X,Q,re)}function R0(v,_,C,F,G,X,Q,re){na(v,_+4,1,G,8,X,Q,re),na(C,F+4,1,G,8,X,Q,re)}function xl(){this.ba=new Wt,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 lu(){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 cu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function B0(){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 E}function d1(){this.xb=this.a=0,this.l=new Na,this.ca=new Wt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new P,this.Pb=0,this.wd=new P,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new B0,this.ab=0,this.gc=o(4,cu),this.Oc=0}function yl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Na,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xs(v,_,C,F,G,X,Q){for(v=v==null?0:v[_+0],_=0;_<Q;++_)G[X+_]=v+C[F+_]&255,v=G[X+_]}function uu(v,_,C,F,G,X,Q){var re;if(v==null)xs(null,null,C,F,G,X,Q);else for(re=0;re<Q;++re)G[X+re]=v[_+re]+C[F+re]&255}function Co(v,_,C,F,G,X,Q){if(v==null)xs(null,null,C,F,G,X,Q);else{var re,ie=v[_+0],ue=ie,xe=ie;for(re=0;re<Q;++re)ue=xe+(ie=v[_+re])-ue,xe=C[F+re]+(-256&ue?0>ue?0:255:ue)&255,ue=ie,G[X+re]=xe}}function fu(v,_,C,F){var G=_.width,X=_.o;if(t(v!=null&&_!=null),0>C||0>=F||C+F>X)return null;if(!v.Cc){if(v.ga==null){var Q;if(v.ga=new yl,(Q=v.ga==null)||(Q=_.width*_.o,t(v.Gb.length==0),v.Gb=a(Q),v.Uc=0,v.Gb==null?Q=0:(v.mb=v.Gb,v.nb=v.Uc,v.rc=null,Q=1),Q=!Q),!Q){Q=v.ga;var re=v.Fa,ie=v.P,ue=v.qc,xe=v.mb,Oe=v.nb,je=ie+1,_e=ue-1,We=Q.l;if(t(re!=null&&xe!=null&&_!=null),Do[0]=null,Do[1]=xs,Do[2]=uu,Do[3]=Co,Q.ca=xe,Q.tb=Oe,Q.c=_.width,Q.i=_.height,t(0<Q.c&&0<Q.i),1>=ue)_=0;else if(Q.$a=re[ie+0]>>0&3,Q.Z=re[ie+0]>>2&3,Q.Lc=re[ie+0]>>4&3,ie=re[ie+0]>>6&3,0>Q.$a||1<Q.$a||4<=Q.Z||1<Q.Lc||ie)_=0;else if(We.put=Ii,We.ac=ln,We.bc=Fi,We.ma=Q,We.width=_.width,We.height=_.height,We.Da=_.Da,We.v=_.v,We.va=_.va,We.j=_.j,We.o=_.o,Q.$a)e:{t(Q.$a==1),_=Ie();t:for(;;){if(_==null){_=0;break e}if(t(Q!=null),Q.mc=_,_.c=Q.c,_.i=Q.i,_.l=Q.l,_.l.ma=Q,_.l.width=Q.c,_.l.height=Q.i,_.a=0,te(_.m,re,je,_e),!Ne(Q.c,Q.i,1,_,null)||(_.ab==1&&_.gc[0].hc==3&&ae(_.s)?(Q.ic=1,re=_.c*_.i,_.Ta=null,_.Ua=0,_.V=a(re),_.Ba=0,_.V==null?(_.a=1,_=0):_=1):(Q.ic=0,_=Ce(_,Q.c)),!_))break t;_=1;break e}Q.mc=null,_=0}else _=_e>=Q.c*Q.i;Q=!_}if(Q)return null;v.ga.Lc!=1?v.Ga=0:F=X-C}t(v.ga!=null),t(C+F<=X);e:{if(_=(re=v.ga).c,X=re.l.o,re.$a==0){if(je=v.rc,_e=v.Vc,We=v.Fa,ie=v.P+1+C*_,ue=v.mb,xe=v.nb+C*_,t(ie<=v.P+v.qc),re.Z!=0)for(t(Do[re.Z]!=null),Q=0;Q<F;++Q)Do[re.Z](je,_e,We,ie,ue,xe,_),je=ue,_e=xe,xe+=_,ie+=_;else for(Q=0;Q<F;++Q)n(ue,xe,We,ie,_),je=ue,_e=xe,xe+=_,ie+=_;v.rc=je,v.Vc=_e}else{if(t(re.mc!=null),_=C+F,t((Q=re.mc)!=null),t(_<=Q.i),Q.C>=_)_=1;else if(re.ic||Te(),re.ic){re=Q.V,je=Q.Ba,_e=Q.c;var Fe=Q.i,ye=(We=1,ie=Q.$/_e,ue=Q.$%_e,xe=Q.m,Oe=Q.s,Q.$),we=_e*Fe,qe=_e*_,Ge=Oe.wc,ze=ye<qe?Rr(Oe,ue,ie):null;t(ye<=we),t(_<=Fe),t(ae(Oe));t:for(;;){for(;!xe.h&&ye<qe;){if(ue&Ge||(ze=Rr(Oe,ue,ie)),t(ze!=null),Y(xe),256>(Fe=Fn(ze.G[0],ze.H[0],xe)))re[je+ye]=Fe,++ye,++ue>=_e&&(ue=0,++ie<=_&&!(ie%16)&&de(Q,ie));else{if(!(280>Fe)){We=0;break t}Fe=xi(Fe-256,xe);var ft,it=Fn(ze.G[4],ze.H[4],xe);if(Y(xe),!(ye>=(it=ai(_e,it=xi(it,xe)))&&we-ye>=Fe)){We=0;break t}for(ft=0;ft<Fe;++ft)re[je+ye+ft]=re[je+ye+ft-it];for(ye+=Fe,ue+=Fe;ue>=_e;)ue-=_e,++ie<=_&&!(ie%16)&&de(Q,ie);ye<qe&&ue&Ge&&(ze=Rr(Oe,ue,ie))}t(xe.h==M(xe))}de(Q,ie>_?_:ie);break t}!We||xe.h&&ye<we?(We=0,Q.a=xe.h?5:3):Q.$=ye,_=We}else _=me(Q,Q.V,Q.Ba,Q.c,Q.i,_,ke);if(!_){F=0;break e}}C+F>=X&&(v.Cc=1),F=1}if(!F)return null;if(v.Cc&&((F=v.ga)!=null&&(F.mc=null),v.ga=null,0<v.Ga))return alert("todo:WebPDequantizeLevels"),null}return v.nb+C*G}function N(v,_,C,F,G,X){for(;0<G--;){var Q,re=v,ie=_+(C?1:0),ue=v,xe=_+(C?0:3);for(Q=0;Q<F;++Q){var Oe=ue[xe+4*Q];Oe!=255&&(Oe*=32897,re[ie+4*Q+0]=re[ie+4*Q+0]*Oe>>23,re[ie+4*Q+1]=re[ie+4*Q+1]*Oe>>23,re[ie+4*Q+2]=re[ie+4*Q+2]*Oe>>23)}_+=X}}function V(v,_,C,F,G){for(;0<F--;){var X;for(X=0;X<C;++X){var Q=v[_+2*X+0],re=15&(ue=v[_+2*X+1]),ie=4369*re,ue=(240&ue|ue>>4)*ie>>16;v[_+2*X+0]=(240&Q|Q>>4)*ie>>16&240|(15&Q|Q<<4)*ie>>16>>4&15,v[_+2*X+1]=240&ue|re}_+=G}}function ve(v,_,C,F,G,X,Q,re){var ie,ue,xe=255;for(ue=0;ue<G;++ue){for(ie=0;ie<F;++ie){var Oe=v[_+ie];X[Q+4*ie]=Oe,xe&=Oe}_+=C,Q+=re}return xe!=255}function ge(v,_,C,F,G){var X;for(X=0;X<G;++X)C[F+X]=v[_+X]>>8}function Te(){Bi=N,Nr=V,Er=ve,Yr=ge}function De(v,_,C){k[v]=function(F,G,X,Q,re,ie,ue,xe,Oe,je,_e,We,Fe,ye,we,qe,Ge){var ze,ft=Ge-1>>1,it=re[ie+0]|ue[xe+0]<<16,At=Oe[je+0]|_e[We+0]<<16;t(F!=null);var ot=3*it+At+131074>>2;for(_(F[G+0],255&ot,ot>>16,Fe,ye),X!=null&&(ot=3*At+it+131074>>2,_(X[Q+0],255&ot,ot>>16,we,qe)),ze=1;ze<=ft;++ze){var er=re[ie+ze]|ue[xe+ze]<<16,hr=Oe[je+ze]|_e[We+ze]<<16,Xt=it+er+At+hr+524296,Vt=Xt+2*(er+At)>>3;ot=Vt+it>>1,it=(Xt=Xt+2*(it+hr)>>3)+er>>1,_(F[G+2*ze-1],255&ot,ot>>16,Fe,ye+(2*ze-1)*C),_(F[G+2*ze-0],255&it,it>>16,Fe,ye+(2*ze-0)*C),X!=null&&(ot=Xt+At>>1,it=Vt+hr>>1,_(X[Q+2*ze-1],255&ot,ot>>16,we,qe+(2*ze-1)*C),_(X[Q+2*ze+0],255&it,it>>16,we,qe+(2*ze+0)*C)),it=er,At=hr}1&Ge||(ot=3*it+At+131074>>2,_(F[G+Ge-1],255&ot,ot>>16,Fe,ye+(Ge-1)*C),X!=null&&(ot=3*At+it+131074>>2,_(X[Q+Ge-1],255&ot,ot>>16,we,qe+(Ge-1)*C)))}}function Ve(){qi[V0]=_8,qi[Y0]=O5,qi[A5]=S8,qi[K0]=j5,qi[X0]=C5,qi[v1]=k5,qi[T5]=A8,qi[g1]=O5,qi[x1]=j5,qi[J0]=C5,qi[y1]=k5}function ut(v){return v&-16384?0>v?0:255:v>>T8}function xt(v,_){return ut((19077*v>>8)+(26149*_>>8)-14234)}function Mt(v,_,C){return ut((19077*v>>8)-(6419*_>>8)-(13320*C>>8)+8708)}function kt(v,_){return ut((19077*v>>8)+(33050*_>>8)-17685)}function Yt(v,_,C,F,G){F[G+0]=xt(v,C),F[G+1]=Mt(v,_,C),F[G+2]=kt(v,_)}function Mr(v,_,C,F,G){F[G+0]=kt(v,_),F[G+1]=Mt(v,_,C),F[G+2]=xt(v,C)}function Br(v,_,C,F,G){var X=Mt(v,_,C);_=X<<3&224|kt(v,_)>>3,F[G+0]=248&xt(v,C)|X>>5,F[G+1]=_}function Qr(v,_,C,F,G){var X=240&kt(v,_)|15;F[G+0]=240&xt(v,C)|Mt(v,_,C)>>4,F[G+1]=X}function Dn(v,_,C,F,G){F[G+0]=255,Yt(v,_,C,F,G+1)}function vn(v,_,C,F,G){Mr(v,_,C,F,G),F[G+3]=255}function ia(v,_,C,F,G){Yt(v,_,C,F,G),F[G+3]=255}function bi(v,_){return 0>v?0:v>_?_:v}function Oa(v,_,C){k[v]=function(F,G,X,Q,re,ie,ue,xe,Oe){for(var je=xe+(-2&Oe)*C;xe!=je;)_(F[G+0],X[Q+0],re[ie+0],ue,xe),_(F[G+1],X[Q+0],re[ie+0],ue,xe+C),G+=2,++Q,++ie,xe+=2*C;1&Oe&&_(F[G+0],X[Q+0],re[ie+0],ue,xe)}}function $0(v,_,C){return C==0?v==0?_==0?6:5:_==0?4:0:C}function hu(v,_,C,F,G){switch(v>>>30){case 3:Ja(_,C,F,G,0);break;case 2:Vr(_,C,F,G);break;case 1:Kn(_,C,F,G)}}function du(v,_){var C,F,G=_.M,X=_.Nb,Q=v.oc,re=v.pc+40,ie=v.oc,ue=v.pc+584,xe=v.oc,Oe=v.pc+600;for(C=0;16>C;++C)Q[re+32*C-1]=129;for(C=0;8>C;++C)ie[ue+32*C-1]=129,xe[Oe+32*C-1]=129;for(0<G?Q[re-1-32]=ie[ue-1-32]=xe[Oe-1-32]=129:(i(Q,re-32-1,127,21),i(ie,ue-32-1,127,9),i(xe,Oe-32-1,127,9)),F=0;F<v.za;++F){var je=_.ya[_.aa+F];if(0<F){for(C=-1;16>C;++C)n(Q,re+32*C-4,Q,re+32*C+12,4);for(C=-1;8>C;++C)n(ie,ue+32*C-4,ie,ue+32*C+4,4),n(xe,Oe+32*C-4,xe,Oe+32*C+4,4)}var _e=v.Gd,We=v.Hd+F,Fe=je.ad,ye=je.Hc;if(0<G&&(n(Q,re-32,_e[We].y,0,16),n(ie,ue-32,_e[We].f,0,8),n(xe,Oe-32,_e[We].ea,0,8)),je.Za){var we=Q,qe=re-32+16;for(0<G&&(F>=v.za-1?i(we,qe,_e[We].y[15],4):n(we,qe,_e[We+1].y,0,4)),C=0;4>C;C++)we[qe+128+C]=we[qe+256+C]=we[qe+384+C]=we[qe+0+C];for(C=0;16>C;++C,ye<<=2)we=Q,qe=re+I5[C],aa[je.Ob[C]](we,qe),hu(ye,Fe,16*+C,we,qe)}else if(we=$0(F,G,je.Ob[0]),Mo[we](Q,re),ye!=0)for(C=0;16>C;++C,ye<<=2)hu(ye,Fe,16*+C,Q,re+I5[C]);for(C=je.Gc,we=$0(F,G,je.Dd),Qa[we](ie,ue),Qa[we](xe,Oe),ye=Fe,we=ie,qe=ue,255&(je=C>>0)&&(170&je?xu(ye,256,we,qe):Di(ye,256,we,qe)),je=xe,ye=Oe,255&(C>>=8)&&(170&C?xu(Fe,320,je,ye):Di(Fe,320,je,ye)),G<v.Ub-1&&(n(_e[We].y,0,Q,re+480,16),n(_e[We].f,0,ie,ue+224,8),n(_e[We].ea,0,xe,Oe+224,8)),C=8*X*v.B,_e=v.sa,We=v.ta+16*F+16*X*v.R,Fe=v.qa,je=v.ra+8*F+C,ye=v.Ha,we=v.Ia+8*F+C,C=0;16>C;++C)n(_e,We+C*v.R,Q,re+32*C,16);for(C=0;8>C;++C)n(Fe,je+C*v.B,ie,ue+32*C,8),n(ye,we+C*v.B,xe,Oe+32*C,8)}}function bl(v,_,C,F,G,X,Q,re,ie){var ue=[0],xe=[0],Oe=0,je=ie!=null?ie.kd:0,_e=ie??new lu;if(v==null||12>C)return 7;_e.data=v,_e.w=_,_e.ha=C,_=[_],C=[C],_e.gb=[_e.gb];e:{var We=_,Fe=C,ye=_e.gb;if(t(v!=null),t(Fe!=null),t(ye!=null),ye[0]=0,12<=Fe[0]&&!r(v,We[0],"RIFF")){if(r(v,We[0]+8,"WEBP")){ye=3;break e}var we=Le(v,We[0]+4);if(12>we||4294967286<we){ye=3;break e}if(je&&we>Fe[0]-8){ye=7;break e}ye[0]=we,We[0]+=12,Fe[0]-=12}ye=0}if(ye!=0)return ye;for(we=0<_e.gb[0],C=C[0];;){e:{var qe=v;Fe=_,ye=C;var Ge=ue,ze=xe,ft=We=[0];if((ot=Oe=[Oe])[0]=0,8>ye[0])ye=7;else{if(!r(qe,Fe[0],"VP8X")){if(Le(qe,Fe[0]+4)!=10){ye=3;break e}if(18>ye[0]){ye=7;break e}var it=Le(qe,Fe[0]+8),At=1+se(qe,Fe[0]+12);if(2147483648<=At*(qe=1+se(qe,Fe[0]+15))){ye=3;break e}ft!=null&&(ft[0]=it),Ge!=null&&(Ge[0]=At),ze!=null&&(ze[0]=qe),Fe[0]+=18,ye[0]-=18,ot[0]=1}ye=0}}if(Oe=Oe[0],We=We[0],ye!=0)return ye;if(Fe=!!(2&We),!we&&Oe)return 3;if(X!=null&&(X[0]=!!(16&We)),Q!=null&&(Q[0]=Fe),re!=null&&(re[0]=0),Q=ue[0],We=xe[0],Oe&&Fe&&ie==null){ye=0;break}if(4>C){ye=7;break}if(we&&Oe||!we&&!Oe&&!r(v,_[0],"ALPH")){C=[C],_e.na=[_e.na],_e.P=[_e.P],_e.Sa=[_e.Sa];e:{it=v,ye=_,we=C;var ot=_e.gb;Ge=_e.na,ze=_e.P,ft=_e.Sa,At=22,t(it!=null),t(we!=null),qe=ye[0];var er=we[0];for(t(Ge!=null),t(ft!=null),Ge[0]=null,ze[0]=null,ft[0]=0;;){if(ye[0]=qe,we[0]=er,8>er){ye=7;break e}var hr=Le(it,qe+4);if(4294967286<hr){ye=3;break e}var Xt=8+hr+1&-2;if(At+=Xt,0<ot&&At>ot){ye=3;break e}if(!r(it,qe,"VP8 ")||!r(it,qe,"VP8L")){ye=0;break e}if(er[0]<Xt){ye=7;break e}r(it,qe,"ALPH")||(Ge[0]=it,ze[0]=qe+8,ft[0]=hr),qe+=Xt,er-=Xt}}if(C=C[0],_e.na=_e.na[0],_e.P=_e.P[0],_e.Sa=_e.Sa[0],ye!=0)break}C=[C],_e.Ja=[_e.Ja],_e.xa=[_e.xa];e:if(ot=v,ye=_,we=C,Ge=_e.gb[0],ze=_e.Ja,ft=_e.xa,it=ye[0],qe=!r(ot,it,"VP8 "),At=!r(ot,it,"VP8L"),t(ot!=null),t(we!=null),t(ze!=null),t(ft!=null),8>we[0])ye=7;else{if(qe||At){if(ot=Le(ot,it+4),12<=Ge&&ot>Ge-12){ye=3;break e}if(je&&ot>we[0]-8){ye=7;break e}ze[0]=ot,ye[0]+=8,we[0]-=8,ft[0]=At}else ft[0]=5<=we[0]&&ot[it+0]==47&&!(ot[it+4]>>5),ze[0]=we[0];ye=0}if(C=C[0],_e.Ja=_e.Ja[0],_e.xa=_e.xa[0],_=_[0],ye!=0)break;if(4294967286<_e.Ja)return 3;if(re==null||Fe||(re[0]=_e.xa?2:1),Q=[Q],We=[We],_e.xa){if(5>C){ye=7;break}re=Q,je=We,Fe=X,v==null||5>C?v=0:5<=C&&v[_+0]==47&&!(v[_+4]>>5)?(we=[0],ot=[0],Ge=[0],te(ze=new P,v,_,C),St(ze,we,ot,Ge)?(re!=null&&(re[0]=we[0]),je!=null&&(je[0]=ot[0]),Fe!=null&&(Fe[0]=Ge[0]),v=1):v=0):v=0}else{if(10>C){ye=7;break}re=We,v==null||10>C||!A0(v,_+3,C-3)?v=0:(je=v[_+0]|v[_+1]<<8|v[_+2]<<16,Fe=16383&(v[_+7]<<8|v[_+6]),v=16383&(v[_+9]<<8|v[_+8]),1&je||3<(je>>1&7)||!(je>>4&1)||je>>5>=_e.Ja||!Fe||!v?v=0:(Q&&(Q[0]=Fe),re&&(re[0]=v),v=1))}if(!v||(Q=Q[0],We=We[0],Oe&&(ue[0]!=Q||xe[0]!=We)))return 3;ie!=null&&(ie[0]=_e,ie.offset=_-ie.w,t(4294967286>_-ie.w),t(ie.offset==ie.ha-C));break}return ye==0||ye==7&&Oe&&ie==null?(X!=null&&(X[0]|=_e.na!=null&&0<_e.na.length),F!=null&&(F[0]=Q),G!=null&&(G[0]=We),0):ye}function pu(v,_,C){var F=_.width,G=_.height,X=0,Q=0,re=F,ie=G;if(_.Da=v!=null&&0<v.Da,_.Da&&(re=v.cd,ie=v.bd,X=v.v,Q=v.j,11>C||(X&=-2,Q&=-2),0>X||0>Q||0>=re||0>=ie||X+re>F||Q+ie>G))return 0;if(_.v=X,_.j=Q,_.va=X+re,_.o=Q+ie,_.U=re,_.T=ie,_.da=v!=null&&0<v.da,_.da){if(!Me(re,ie,C=[v.ib],X=[v.hb]))return 0;_.ib=C[0],_.hb=X[0]}return _.ob=v!=null&&v.ob,_.Kb=v==null||!v.Sd,_.da&&(_.ob=_.ib<3*F/4&&_.hb<3*G/4,_.Kb=0),1}function mu(v){if(v==null)return 2;if(11>v.S){var _=v.f.RGBA;_.fb+=(v.height-1)*_.A,_.A=-_.A}else _=v.f.kb,v=v.height,_.O+=(v-1)*_.fa,_.fa=-_.fa,_.N+=(v-1>>1)*_.Ab,_.Ab=-_.Ab,_.W+=(v-1>>1)*_.Db,_.Db=-_.Db,_.F!=null&&(_.J+=(v-1)*_.lb,_.lb=-_.lb);return 0}function wl(v,_,C,F){if(F==null||0>=v||0>=_)return 2;if(C!=null){if(C.Da){var G=C.cd,X=C.bd,Q=-2&C.v,re=-2&C.j;if(0>Q||0>re||0>=G||0>=X||Q+G>v||re+X>_)return 2;v=G,_=X}if(C.da){if(!Me(v,_,G=[C.ib],X=[C.hb]))return 2;v=G[0],_=X[0]}}F.width=v,F.height=_;e:{var ie=F.width,ue=F.height;if(v=F.S,0>=ie||0>=ue||!(v>=V0&&13>v))v=2;else{if(0>=F.Rd&&F.sd==null){Q=X=G=_=0;var xe=(re=ie*F5[v])*ue;if(11>v||(X=(ue+1)/2*(_=(ie+1)/2),v==12&&(Q=(G=ie)*ue)),(ue=a(xe+2*X+Q))==null){v=1;break e}F.sd=ue,11>v?((ie=F.f.RGBA).eb=ue,ie.fb=0,ie.A=re,ie.size=xe):((ie=F.f.kb).y=ue,ie.O=0,ie.fa=re,ie.Fd=xe,ie.f=ue,ie.N=0+xe,ie.Ab=_,ie.Cd=X,ie.ea=ue,ie.W=0+xe+X,ie.Db=_,ie.Ed=X,v==12&&(ie.F=ue,ie.J=0+xe+2*X),ie.Tc=Q,ie.lb=G)}if(_=1,G=F.S,X=F.width,Q=F.height,G>=V0&&13>G)if(11>G)v=F.f.RGBA,_&=(re=Math.abs(v.A))*(Q-1)+X<=v.size,_&=re>=X*F5[G],_&=v.eb!=null;else{v=F.f.kb,re=(X+1)/2,xe=(Q+1)/2,ie=Math.abs(v.fa),ue=Math.abs(v.Ab);var Oe=Math.abs(v.Db),je=Math.abs(v.lb),_e=je*(Q-1)+X;_&=ie*(Q-1)+X<=v.Fd,_&=ue*(xe-1)+re<=v.Cd,_=(_&=Oe*(xe-1)+re<=v.Ed)&ie>=X&ue>=re&Oe>=re,_&=v.y!=null,_&=v.f!=null,_&=v.ea!=null,G==12&&(_&=je>=X,_&=_e<=v.Tc,_&=v.F!=null)}else _=0;v=_?0:2}}return v!=0||C!=null&&C.fd&&(v=mu(F)),v}var Tn=64,_l=[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],Sl=24,Al=32,vu=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(v){return v},k.Predictor2=function(v,_,C){return _[C+0]},k.Predictor3=function(v,_,C){return _[C+1]},k.Predictor4=function(v,_,C){return _[C-1]},k.Predictor5=function(v,_,C){return Je(Je(v,_[C+1]),_[C+0])},k.Predictor6=function(v,_,C){return Je(v,_[C-1])},k.Predictor7=function(v,_,C){return Je(v,_[C+0])},k.Predictor8=function(v,_,C){return Je(_[C-1],_[C+0])},k.Predictor9=function(v,_,C){return Je(_[C+0],_[C+1])},k.Predictor10=function(v,_,C){return Je(Je(v,_[C-1]),Je(_[C+0],_[C+1]))},k.Predictor11=function(v,_,C){var F=_[C+0];return 0>=wt(F>>24&255,v>>24&255,(_=_[C-1])>>24&255)+wt(F>>16&255,v>>16&255,_>>16&255)+wt(F>>8&255,v>>8&255,_>>8&255)+wt(255&F,255&v,255&_)?F:v},k.Predictor12=function(v,_,C){var F=_[C+0];return(dt((v>>24&255)+(F>>24&255)-((_=_[C-1])>>24&255))<<24|dt((v>>16&255)+(F>>16&255)-(_>>16&255))<<16|dt((v>>8&255)+(F>>8&255)-(_>>8&255))<<8|dt((255&v)+(255&F)-(255&_)))>>>0},k.Predictor13=function(v,_,C){var F=_[C-1];return(vt((v=Je(v,_[C+0]))>>24&255,F>>24&255)<<24|vt(v>>16&255,F>>16&255)<<16|vt(v>>8&255,F>>8&255)<<8|vt(v>>0&255,F>>0&255))>>>0};var p1=k.PredictorAdd0;k.PredictorAdd1=Pt,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 gu=k.PredictorAdd2;Ft("ColorIndexInverseTransform","MapARGB","32b",(function(v){return v>>8&255}),(function(v){return v})),Ft("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(v){return v}),(function(v){return v>>8&255}));var q0,Mi=k.ColorIndexInverseTransform,Tl=k.MapARGB,U0=k.VP8LColorIndexInverseTransformAlpha,z0=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,Nl,Ja,Vr,xu,Kn,Di,El,W0,yu,bs,ws,Io,_s,Pl,Ss,Fo,bu,Ri,Bi,Nr,Er,Yr,cn=a(511),Za=a(2041),wu=a(225),Ol=a(767),H0=0,m1=Za,G0=wu,wi=Ol,$i=cn,V0=0,Y0=1,A5=2,K0=3,X0=4,v1=5,T5=6,g1=7,x1=8,J0=9,y1=10,l8=[2,3,7],c8=[3,3,11],N5=[280,256,256,256,40],u8=[0,1,1,1,0],f8=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],h8=[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],d8=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],p8=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],_u=null,m8=[[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]],v8=[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],g8=[[[[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]]]],x8=[[[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]]],y8=[[[[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]]]],b8=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Mo=[],aa=[],Qa=[],w8=1,P5=2,Do=[],qi=[];De("UpsampleRgbLinePair",Yt,3),De("UpsampleBgrLinePair",Mr,3),De("UpsampleRgbaLinePair",ia,4),De("UpsampleBgraLinePair",vn,4),De("UpsampleArgbLinePair",Dn,4),De("UpsampleRgba4444LinePair",Qr,2),De("UpsampleRgb565LinePair",Br,2);var _8=k.UpsampleRgbLinePair,S8=k.UpsampleBgrLinePair,O5=k.UpsampleRgbaLinePair,j5=k.UpsampleBgraLinePair,C5=k.UpsampleArgbLinePair,k5=k.UpsampleRgba4444LinePair,A8=k.UpsampleRgb565LinePair,Z0=16,Q0=1<<Z0-1,Su=-227,_1=482,T8=6,L5=0,N8=a(256),E8=a(256),P8=a(256),O8=a(256),j8=a(_1-Su),C8=a(_1-Su);Oa("YuvToRgbRow",Yt,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 I5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],eh=[0,2,8],k8=[8,7,6,4,4,2,2,2,1,1,1,1],L8=1;this.WebPDecodeRGBA=function(v,_,C,F,G){var X=Y0,Q=new xl,re=new Wt;Q.ba=re,re.S=X,re.width=[re.width],re.height=[re.height];var ie=re.width,ue=re.height,xe=new Or;if(xe==null||v==null)var Oe=2;else t(xe!=null),Oe=bl(v,_,C,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Oe!=0?ie=0:(ie!=null&&(ie[0]=xe.width[0]),ue!=null&&(ue[0]=xe.height[0]),ie=1),ie){re.width=re.width[0],re.height=re.height[0],F!=null&&(F[0]=re.width),G!=null&&(G[0]=re.height);e:{if(F=new Na,(G=new lu).data=v,G.w=_,G.ha=C,G.kd=1,_=[0],t(G!=null),((v=bl(G.data,G.w,G.ha,null,null,null,_,null,G))==0||v==7)&&_[0]&&(v=4),(_=v)==0){if(t(Q!=null),F.data=G.data,F.w=G.w+G.offset,F.ha=G.ha-G.offset,F.put=Ii,F.ac=ln,F.bc=Fi,F.ma=Q,G.xa){if((v=Ie())==null){Q=1;break e}if((function(je,_e){var We=[0],Fe=[0],ye=[0];t:for(;;){if(je==null)return 0;if(_e==null)return je.a=2,0;if(je.l=_e,je.a=0,te(je.m,_e.data,_e.w,_e.ha),!St(je.m,We,Fe,ye)){je.a=3;break t}if(je.xb=P5,_e.width=We[0],_e.height=Fe[0],!Ne(We[0],Fe[0],1,je,null))break t;return 1}return t(je.a!=0),0})(v,F)){if(F=(_=wl(F.width,F.height,Q.Oa,Q.ba))==0){t:{F=v;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((G=C.ma)!=null),F.xb!=0){if(F.ca=G.ba,F.tb=G.tb,t(F.ca!=null),!pu(G.Oa,C,K0)){F.a=2;break r}if(!Ce(F,C.width)||C.da)break r;if((C.da||Ht(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&&!Se(F.s.vb,F.s.Wa.Xa)){F.a=1;break r}F.xb=0}if(!me(F,F.V,F.Ba,F.c,F.i,C.o,pe))break r;G.Dc=F.Ma,F=1;break t}t(F.a!=0),F=0}F=!F}F&&(_=v.a)}else _=v.a}else{if((v=new yi)==null){Q=1;break e}if(v.Fa=G.na,v.P=G.P,v.qc=G.Sa,T0(v,F)){if((_=wl(F.width,F.height,Q.Oa,Q.ba))==0){if(v.Aa=0,C=Q.Oa,t((G=v)!=null),C!=null){if(0<(ie=0>(ie=C.Md)?0:100<ie?255:255*ie/100)){for(ue=xe=0;4>ue;++ue)12>(Oe=G.pb[ue]).lc&&(Oe.ia=ie*k8[0>Oe.lc?0:Oe.lc]>>3),xe|=Oe.ia;xe&&(alert("todo:VP8InitRandom"),G.ia=1)}G.Ga=C.Id,100<G.Ga?G.Ga=100:0>G.Ga&&(G.Ga=0)}Xp(v,F)||(_=v.a)}}else _=v.a}_==0&&Q.Oa!=null&&Q.Oa.fd&&(_=mu(Q.ba))}Q=_}X=Q!=0?null:11>X?re.f.RGBA.eb:re.f.kb.y}else X=null;return X};var F5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(k,L){for(var R="",j=0;j<4;j++)R+=String.fromCharCode(k[L++]);return R}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,m=e,y=(function(k,L){var R={},j=0,E=!1,D=0,U=0;if(R.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 H,B;for(f(k,L+=4),L+=8;L<k.length;){var z=c(k,L),te=f(k,L+=4);L+=4;var Z=te+(1&te);switch(z){case"VP8 ":case"VP8L":R.frames[j]===void 0&&(R.frames[j]={}),(P=R.frames[j]).src_off=E?U:L-8,P.src_size=D+te+8,j++,E&&(E=!1,D=0,U=0);break;case"VP8X":(P=R.header={}).feature_flags=k[L];var ee=L+4;P.canvas_width=1+u(k,ee),ee+=3,P.canvas_height=1+u(k,ee),ee+=3;break;case"ALPH":E=!0,D=Z+8,U=L-8;break;case"ANIM":(P=R.header).bgcolor=f(k,L),ee=L+4,P.loop_count=(H=k)[(B=ee)+0]<<0|H[B+1]<<8,ee+=2;break;case"ANMF":var ce,P;(P=R.frames[j]={}).offset_x=2*u(k,L),L+=3,P.offset_y=2*u(k,L),L+=3,P.width=1+u(k,L),L+=3,P.height=1+u(k,L),L+=3,P.duration=u(k,L),L+=3,ce=k[L++],P.dispose=1&ce,P.blend=ce>>1&1}z!="ANMF"&&(L+=Z)}return R}})(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var b=y.header?y.header:null,w=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<w.length&&w[S].blend!=0;S++);}var A=w[0],O=p.WebPDecodeRGBA(m,A.src_off,A.src_size,h,d);A.rgba=O,A.imgwidth=h[0],A.imgheight=d[0];for(var T=0;T<h[0]*d[0]*4;T++)g[T]=O[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 m=4,y=o;switch(p){case e.image_compression.FAST:m=1,y=a;break;case e.image_compression.MEDIUM:m=6,y=s;break;case e.image_compression.SLOW:m=9,y=l}d=n(d,h,g,y);var b=fy(d,{level:m});return e.__addimage__.arrayBufferToBinaryString(b)},n=function(d,h,g,p){for(var m,y,b,w=d.length/h,S=new Uint8Array(d.length+w),A=u(),O=0;O<w;O+=1){if(b=O*h,m=d.subarray(b,b+h),p)S.set(p(m,g,y),b+O);else{for(var T,k=A.length,L=[];T<k;T+=1)L[T]=A[T](m,g,y);var R=f(L.concat());S.set(L[R],b+O)}y=m}return S},i=function(d){var h=Array.apply([],d);return h.unshift(0),h},a=function(d,h){var g,p=[],m=d.length;p[0]=1;for(var y=0;y<m;y+=1)g=d[y-h]||0,p[y+1]=d[y]-g+256&255;return p},o=function(d,h,g){var p,m=[],y=d.length;m[0]=2;for(var b=0;b<y;b+=1)p=g&&g[b]||0,m[b+1]=d[b]-p+256&255;return m},s=function(d,h,g){var p,m,y=[],b=d.length;y[0]=3;for(var w=0;w<b;w+=1)p=d[w-h]||0,m=g&&g[w]||0,y[w+1]=d[w]+256-(p+m>>>1)&255;return y},l=function(d,h,g){var p,m,y,b,w=[],S=d.length;w[0]=4;for(var A=0;A<S;A+=1)p=d[A-h]||0,m=g&&g[A]||0,y=g&&g[A-h]||0,b=c(p,m,y),w[A+1]=d[A]-b+256&255;return w},c=function(d,h,g){if(d===h&&h===g)return d;var p=Math.abs(h-g),m=Math.abs(d-g),y=Math.abs(d+h-g-g);return p<=m&&p<=y?d:m<=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,m){return p+Math.abs(m)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(d,h,g,p){var m,y,b,w,S,A,O,T,k,L,R,j,E,D,U,H=this.decode.FLATE_DECODE,B="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(b=new lL(d)).imgData,y=b.bits,m=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,R=new Uint8Array(k*b.colors),L=new Uint8Array(k);var z,te=b.pixelBitlength-b.bits;for(D=0,U=0;D<k;D++){for(E=T[D],z=0;z<te;)R[U++]=E>>>z&255,z+=b.bits;L[D]=E>>>z&255}}if(b.bits===16){k=(T=new Uint32Array(b.decodePixels().buffer)).length,R=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;)E=T[D++],R[U++]=E>>>0&255,j&&(R[U++]=E>>>16&255,E=T[D++],R[U++]=E>>>0&255),L[Z++]=E>>>16&255;y=8}p!==e.image_compression.NONE&&t()?(d=r(R,b.width*b.colors,b.colors,p),O=r(L,b.width,1,p)):(d=R,O=L,H=void 0)}if(b.colorType===3&&(m=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)w=[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]];O=r(L,b.width,1)}}var P=(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 H===this.decode.FLATE_DECODE&&(B="/Predictor "+P+" "),B+="/Colors "+S+" /BitsPerComponent "+y+" /Columns "+b.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(O&&this.__addimage__.isArrayBuffer(O)||this.__addimage__.isArrayBufferView(O))&&(O=this.__addimage__.arrayBufferToBinaryString(O)),{alias:g,data:d,index:h,filter:H,decodeParameters:B,transparency:w,palette:A,sMask:O,predictor:P,width:b.width,height:b.height,bitsPerComponent:y,colorSpace:m}}}})(yt.API),(function(e){e.processGIF89A=function(t,r,n,i){var a=new cL(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})(yt.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){Ar.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)}})(yt.API),gw.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,i){var a=new gw(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)}})(yt.API),yt.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}},yt.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},Fl=yt.API,ph=Fl.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,m=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?m.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,m.push((s[n]||p)/l+d)),g=n;return m},dw=Fl.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 Fl.processArabic&&(e=Fl.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:ph.apply(this,arguments).reduce((function(a,o){return a+o}),0)},pw=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},mw=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(" "),m=ph.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,O){return(O&&A.length?`
214
+ `:"")+A}))):b.push(S[0])})),p=b,l=dw.apply(this,[y,r])}for(a=0,o=p.length;a<o;a++){var w=0;if(n=p[a],l&&n[0]==`
215
+ `&&(n=n.substr(1),w=1),d+h+(g=(i=ph.apply(this,[n,r])).reduce((function(S,A){return S+A}),0))>t||w){if(g>t){for(s=pw.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=m}else u.push(n),d+=h+g,h=m}return c=l?function(S,A){return(A?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},Fl.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(mw.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,m=["{"];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)}m.push(h+g)}return m.push("}"),m.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,m={},y=1,b=m,w=[],S="",A="",O=f.length-1,T=1;T<O;T+=1)(p=f[T])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(p):p=="{"?(w.push([b,g]),b={},g=void 0):p=="}"?((h=w.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 m},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])}])})(yt.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(Gu(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])})(yt),(function(e){function t(){return(Et.canvg?Promise.resolve(Et.canvg):Promise.resolve().then(()=>require("./index.es-Byc7or0f.js"))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}yt.API.addSvgAsImage=function(r,n,i,a,o,s,l,c){if(isNaN(n)||isNaN(i))throw Ar.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw Ar.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)}))}})(),yt.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},yt.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 m,y=!1;for(m=0;m<g.length;m+=1)g[m]===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}})(yt.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 m=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Vl(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 /"+Vl(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 "+m+" 0 R"),l("/BaseFont /"+Vl(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 m=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 /"+Vl(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/"+Vl(s.fontName)+"/FontDescriptor "+m+" 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,m="",y=0,b="",w=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")?m+=b[y]:m+="";var S="";return parseInt(p.slice(1))<14||w==="WinAnsiEncoding"?S=d(m,p).split("").map((function(A){return A.charCodeAt(0).toString(16)})).join(""):w==="Identity-H"&&(S=r(m,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}])})(yt),(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}})(yt.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},m=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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,w=0;this.__bidiEngine__={};var S=function(j){var E=j.charCodeAt(),D=E>>8,U=p[D];return U!==void 0?f[256*U+(255&E)]:D===252||D===253?"AL":y.test(D)?"L":D===8?"R":"N"},A=function(j){for(var E,D=0;D<j.length;D++){if((E=S(j.charAt(D)))==="L")return!1;if(E==="R")return!0}return!1},O=function(j,E,D,U){var H,B,z,te,Z=E[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>=E.length||(H=D[U-1])!=="EN"&&H!=="AN"||(B=E[U+1])!=="EN"&&B!=="AN"?Z="N":b&&(B="AN"),Z=B===H?B:"N";break;case"ES":Z=(H=U>0?D[U-1]:"B")==="EN"&&U+1<E.length&&E[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,te=E.length;z<te&&E[z]==="ET";)z++;Z=z<te&&E[z]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(te=E.length,z=U+1;z<te&&E[z]==="NSM";)z++;if(z<te){var ee=j[U],ce=ee>=1425&&ee<=2303||ee===64286;if(H=E[z],ce&&(H==="R"||H==="AL")){Z="R";break}}}Z=U<1||(H=E[U-1])==="B"?"N":D[U-1];break;case"B":b=!1,i=!0,Z=w;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,E,D){var U=j.split("");return D&&k(U,D,{hiLevel:w}),U.reverse(),E&&E.reverse(),U.join("")},k=function(j,E,D){var U,H,B,z,te,Z=-1,ee=j.length,ce=0,P=[],I=w?h:d,M=[];for(b=!1,i=!1,a=!1,H=0;H<ee;H++)M[H]=S(j[H]);for(B=0;B<ee;B++){if(te=ce,P[B]=O(j,M,P,B),U=240&(ce=I[te][g[P[B]]]),ce&=15,E[B]=z=I[ce][5],U>0)if(U===16){for(H=Z;H<B;H++)E[H]=1;Z=-1}else Z=-1;if(I[ce][6])Z===-1&&(Z=B);else if(Z>-1){for(H=Z;H<B;H++)E[H]=z;Z=-1}M[B]==="B"&&(E[B]=0),D.hiLevel|=z}a&&(function(q,Y,fe){for(var ne=0;ne<fe;ne++)if(q[ne]==="S"){Y[ne]=w;for(var K=ne-1;K>=0&&q[K]==="WS";K--)Y[K]=w}})(M,E,ee)},L=function(j,E,D,U,H){if(!(H.hiLevel<j)){if(j===1&&w===1&&!i)return E.reverse(),void(D&&D.reverse());for(var B,z,te,Z,ee=E.length,ce=0;ce<ee;){if(U[ce]>=j){for(te=ce+1;te<ee&&U[te]>=j;)te++;for(Z=ce,z=te-1;Z<z;Z++,z--)B=E[Z],E[Z]=E[z],E[z]=B,D&&(B=D[Z],D[Z]=D[z],D[z]=B);ce=te}ce++}}},R=function(j,E,D){var U=j.split(""),H={hiLevel:w};return D||(D=[]),k(U,D,H),(function(B,z,te){if(te.hiLevel!==0&&u)for(var Z,ee=0;ee<B.length;ee++)z[ee]===1&&(Z=m.indexOf(B[ee]))>=0&&(B[ee]=m[Z+1])})(U,D,H),L(2,U,E,D,H),L(1,U,E,D,H),U.join("")};return this.__bidiEngine__.doBidiReorder=function(j,E,D){if((function(H,B){if(B)for(var z=0;z<H.length;z++)B[z]=z;s===void 0&&(s=A(H)),c===void 0&&(c=A(H))})(j,E),o||!l||c)if(o&&l&&s^c)w=s?1:0,j=T(j,E,D);else if(!o&&l&&c)w=s?1:0,j=R(j,E,D),j=T(j,E);else if(!o||s||l||c){if(o&&!l&&s^c)j=T(j,E),s?(w=0,j=R(j,E,D)):(w=1,j=R(j,E,D),j=T(j,E));else if(o&&s&&!l&&c)w=1,j=R(j,E,D),j=T(j,E);else if(!o&&!l&&s^c){var U=u;s?(w=1,j=R(j,E,D),w=0,u=!1,j=R(j,E,D),u=U):(w=0,j=R(j,E,D),j=T(j,E),w=1,u=!1,j=R(j,E,D),u=U,j=T(j,E))}}else w=0,j=R(j,E,D);else w=s?1:0,j=R(j,E,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})}])})(yt),yt.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 AL(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new uL(this.contents),this.head=new hL(this),this.name=new gL(this),this.cmap=new VE(this),this.toUnicode={},this.hhea=new dL(this),this.maxp=new xL(this),this.hmtx=new yL(this),this.post=new mL(this),this.os2=new pL(this),this.loca=new SL(this),this.glyf=new bL(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})(),uL=(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=YE.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})(),fL={}.hasOwnProperty,Ua=function(e,t){for(var r in t)fL.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 hL=(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})(),xw=(function(){function e(t,r){var n,i,a,o,s,l,c,u,f,d,h,g,p,m,y,b,w;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,w=a.length;y<w;l=++y)for(m=a[l],n=b=g=p[l];g<=m?b<=m:b>=m;n=g<=m?++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,m,y,b,w,S,A,O,T,k,L,R,j,E,D,U,H,B,z,te,Z,ee,ce,P,I,M,q,Y,fe,ne,K,he,be,se;switch(U=new os,o=Object.keys(t).sort((function(Le,Se){return Le-Se})),r){case"macroman":for(p=0,m=(function(){var Le=[];for(g=0;g<256;++g)Le.push(0);return Le})(),b={0:0},a={},H=0,Z=o.length;H<Z;H++)b[K=t[i=o[H]]]==null&&(b[K]=++p),a[i]={old:t[i],new:b[t[i]]},m[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(m),{charMap:a,subtable:U.data,maxGlyphID:p+1};case"unicode":for(E=[],f=[],w=0,b={},n={},y=c=null,B=0,ee=o.length;B<ee;B++)b[A=t[i=o[B]]]==null&&(b[A]=++w),n[i]={old:A,new:b[A]},s=b[A]-i,y!=null&&s===c||(y&&f.push(y),E.push(i),c=s),y=i;for(y&&f.push(y),f.push(65535),E.push(65535),R=2*(L=E.length),k=2*Math.pow(Math.log(L)/Math.LN2,2),d=Math.log(k/2)/Math.LN2,T=2*L-k,l=[],O=[],h=[],g=z=0,ce=E.length;z<ce;g=++z){if(j=E[g],u=f[g],j===65535){l.push(0),O.push(0);break}if(j-(D=n[j].new)>=32768)for(l.push(0),O.push(2*(h.length+L-g)),i=te=j;j<=u?te<=u:te>=u;i=j<=u?++te:--te)h.push(n[i].new);else l.push(D-j),O.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(R),U.writeUInt16(k),U.writeUInt16(d),U.writeUInt16(T),fe=0,P=f.length;fe<P;fe++)i=f[fe],U.writeUInt16(i);for(U.writeUInt16(0),ne=0,I=E.length;ne<I;ne++)i=E[ne],U.writeUInt16(i);for(he=0,M=l.length;he<M;he++)s=l[he],U.writeUInt16(s);for(be=0,q=O.length;be<q;be++)S=O[be],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:w+1}}},e})(),VE=(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 xw(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=xw.encode(r,n),(a=new os).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t})(),dL=(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})(),pL=(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})(),mL=(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})(),vL=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},gL=(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 vL(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})(),xL=(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})(),yL=(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})(),YE=[].slice,bL=(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 _L(l,u,d,c,f):new wL(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})(),wL=(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})(),_L=(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(YE.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),SL=(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})(),AL=(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,m,y;for(i in n=VE.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 w,S;for(w in S={},b)S[b[w]]=w;return S})(h),f=Object.keys(u).sort((function(b,w){return b-w})),p=(function(){var b,w,S;for(S=[],b=0,w=f.length;b<w;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),m={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&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e})();yt.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 TL=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:rL,AcroFormAppearance:mt,AcroFormButton:dn,AcroFormCheckBox:Ku,AcroFormChoiceField:Bs,AcroFormComboBox:qs,AcroFormEditBox:Vu,AcroFormListBox:$s,AcroFormPasswordField:Xu,AcroFormPushButton:Yu,AcroFormRadioButton:Us,AcroFormTextField:ts,GState:hf,ShadingPattern:Ko,TilingPattern:Ls,default:yt,jsPDF:yt},Symbol.toStringTag,{value:"Module"}));var Kl=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 NL(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 qh={exports:{}};const EL=NL(TL);/*!
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 yw=qh.exports,bw;function PL(){return bw||(bw=1,(function(e,t){(function(n,i){e.exports=i((function(){try{return EL}catch{}})())})(typeof globalThis<"u"?globalThis:typeof yw<"u"?yw:typeof window<"u"?window:typeof self<"u"?self:Kl,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,m){p.__proto__=m}||function(p,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(p[y]=m[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,m,y,b,w){var S=d.call(this,g,p,w)||this;return S.cell=m,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 m(y){y.API.autoTable=function(){for(var b=[],w=0;w<arguments.length;w++)b[w]=arguments[w];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),O=(0,p.createTable)(this,A);return(0,g.drawTable)(this,O),this},y.API.lastAutoTable=!1,y.API.previousAutoTable=!1,y.API.autoTable.previous=!1,y.API.autoTableText=function(b,w,S,A){(0,f.default)(b,w,S,A,this)},y.API.autoTableSetDefaults=function(b){return d.DocHandler.setDefaults(b,this),this},y.autoTableSetDefaults=function(b,w){d.DocHandler.setDefaults(b,w)},y.API.autoTableHtmlToJson=function(b,w){var S;if(w===void 0&&(w=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var A=new d.DocHandler(this),O=(0,u.parseHtml)(A,b,window,w,!1),T=O.head,k=O.body,L=((S=T[0])===null||S===void 0?void 0:S.map(function(R){return R.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=m}),136:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(u,f,d,h,g){h=h||{};var p=1.15,m=g.internal.scaleFactor,y=g.internal.getFontSize()/m,b=g.getLineHeightFactor?g.getLineHeightFactor():p,w=y*b,S=/\r\n|\r|\n/g,A="",O=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(A=typeof u=="string"?u.split(S):u,O=A.length||1),d+=y*(2-p),h.valign==="middle"?d-=O/2*w:h.valign==="bottom"&&(d-=O*w),h.halign==="center"||h.halign==="right"){var T=y;if(h.halign==="center"&&(T*=.5),A&&O>=1){for(var k=0;k<A.length;k++)g.text(A[k],f-g.getStringUnitWidth(A[k])*T,d),d+=w;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,m){m.applyStyles(p,!0);var y=Array.isArray(g)?g:[g],b=y.map(function(w){return m.getTextWidth(w)}).reduce(function(w,S){return Math.max(w,S)},0);return b}l.getStringWidth=c;function u(g,p,m,y){var b=p.settings.tableLineWidth,w=p.settings.tableLineColor;g.applyStyles({lineWidth:b,lineColor:w});var S=f(b,!1);S&&g.rect(m.x,m.y,p.getWidth(g.pageSize().width),y.y-m.y,S)}l.addTableBorder=u;function f(g,p){var m=g>0,y=p||p===0;return m&&y?"DF":m?"S":y?"F":null}l.getFillStyle=f;function d(g,p){var m,y,b,w;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:(m=g.left)!==null&&m!==void 0?m:p,top:(y=g.top)!==null&&y!==void 0?y:p,right:(b=g.right)!==null&&b!==void 0?b:p,bottom:(w=g.bottom)!==null&&w!==void 0?w:p}):(typeof g!="number"&&(g=p),{top:g,right:g,bottom:g,left:g})}l.parseSpacing=d;function h(g,p){var m=d(p.settings.margin,0);return g.pageSize().width-(m.left+m.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(m,y){m.__proto__=y}||function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[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 m(){this.constructor=g}g.prototype=p===null?Object.create(p):(m.prototype=p.prototype,new m)}})();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 m=h.call(this)||this;return m._element=p,m}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(m,y,b,w,S){var A={},O=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(w,b);L&&(A.cellPadding=L);var R="borderTopColor",j=O*b,E=w.borderTopWidth;if(w.borderBottomWidth===E&&w.borderRightWidth===E&&w.borderLeftWidth===E){var D=(parseFloat(E)||0)/j;D&&(A.lineWidth=D)}else A.lineWidth={top:(parseFloat(w.borderTopWidth)||0)/j,right:(parseFloat(w.borderRightWidth)||0)/j,bottom:(parseFloat(w.borderBottomWidth)||0)/j,left:(parseFloat(w.borderLeftWidth)||0)/j},A.lineWidth.top||(A.lineWidth.right?R="borderRightColor":A.lineWidth.bottom?R="borderBottomColor":A.lineWidth.left&&(R="borderLeftColor"));var U=h(y,function(Z){return S.getComputedStyle(Z)[R]});U!=null&&(A.lineColor=U);var H=["left","right","center","justify"];H.indexOf(w.textAlign)!==-1&&(A.halign=w.textAlign),H=["middle","bottom","top"],H.indexOf(w.verticalAlign)!==-1&&(A.valign=w.verticalAlign);var B=parseInt(w.fontSize||"");isNaN(B)||(A.fontSize=B/O);var z=d(w);z&&(A.fontStyle=z);var te=(w.fontFamily||"").toLowerCase();return m.indexOf(te)!==-1&&(A.font=te),A}l.parseCss=f;function d(m){var y="";return(m.fontWeight==="bold"||m.fontWeight==="bolder"||parseInt(m.fontWeight)>=700)&&(y="bold"),(m.fontStyle==="italic"||m.fontStyle==="oblique")&&(y+="italic"),y}function h(m,y){var b=g(m,y);if(!b)return null;var w=b.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!w||!Array.isArray(w))return null;var S=[parseInt(w[1]),parseInt(w[2]),parseInt(w[3])],A=parseInt(w[4]);return A===0||isNaN(S[0])||isNaN(S[1])||isNaN(S[2])?null:S}function g(m,y){var b=y(m);return b==="rgba(0, 0, 0, 0)"||b==="transparent"||b==="initial"||b==="inherit"?m.parentElement==null?null:g(m.parentElement,y):b}function p(m,y){var b=[m.paddingTop,m.paddingRight,m.paddingBottom,m.paddingLeft],w=96/(72/y),S=(parseInt(m.lineHeight)-parseInt(m.fontSize))/y/2,A=b.map(function(T){return parseInt(T||"0")/w}),O=(0,u.parseSpacing)(A,0);return S>O.top&&(O.top=S),S>O.bottom&&(O.bottom=S),O}}),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,m;h===void 0&&(h=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var y=this.jsPDFDocument.internal.getFont(),b=y.fontStyle,w=y.fontName;if(d.font&&(w=d.font),d.fontStyle){b=d.fontStyle;var S=this.getFontList()[w];S&&S.indexOf(b)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(S[0]),b=S[0])}if(this.jsPDFDocument.setFont(w,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&&(m=this.jsPDFDocument).setDrawColor.apply(m,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,m){return this.jsPDFDocument.rect(d,h,g,p,m)},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,m,y,b,w){var S,A;b===void 0&&(b=!1),w===void 0&&(w=!1);var O;typeof m=="string"?O=y.document.querySelector(m):O=m;var T=Object.keys(p.getFontList()),k=p.scaleFactor(),L=[],R=[],j=[];if(!O)return console.error("Html table could not be found with input: ",m),{head:L,body:R,foot:j};for(var E=0;E<O.rows.length;E++){var D=O.rows[E],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(),H=h(T,k,y,D,b,w);H&&(U==="thead"?L.push(H):U==="tfoot"?j.push(H):R.push(H))}return{head:L,body:R,foot:j}}l.parseHtml=d;function h(p,m,y,b,w,S){for(var A=new f.HtmlRowInput(b),O=0;O<b.cells.length;O++){var T=b.cells[O],k=y.getComputedStyle(T);if(w||k.display!=="none"){var L=void 0;S&&(L=(0,u.parseCss)(p,T,m,k,y)),A.push({rowSpan:T.rowSpan,colSpan:T.colSpan,styles:L,_element:T,content:g(T)})}}var R=y.getComputedStyle(b);if(A.length>0&&(w||R.display!=="none"))return A}function g(p){var m=p.cloneNode(!0);return m.innerHTML=m.innerHTML.replace(/\n/g,"").replace(/ +/g," "),m.innerHTML=m.innerHTML.split(/<br.*?>/).map(function(y){return y.trim()}).join(`
253
+ `),m.innerText||m.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(O,T){var k=new h.DocHandler(O),L=k.getDocumentOptions(),R=k.getGlobalOptions();(0,g.default)(k,R,L,T);var j=(0,f.assign)({},R,L,T),E;typeof window<"u"&&(E=window);var D=m(R,L,T),U=y(R,L,T),H=b(k,j),B=S(k,j,E);return{id:T.tableId,content:B,hooks:U,styles:D,settings:H}}l.parseInput=p;function m(O,T,k){for(var L={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},R=function(U){if(U==="columnStyles"){var H=O[U],B=T[U],z=k[U];L.columnStyles=(0,f.assign)({},H,B,z)}else{var te=[O,T,k],Z=te.map(function(ee){return ee[U]||{}});L[U]=(0,f.assign)({},Z[0],Z[1],Z[2])}},j=0,E=Object.keys(L);j<E.length;j++){var D=E[j];R(D)}return L}function y(O,T,k){for(var L=[O,T,k],R={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},j=0,E=L;j<E.length;j++){var D=E[j];D.didParseCell&&R.didParseCell.push(D.didParseCell),D.willDrawCell&&R.willDrawCell.push(D.willDrawCell),D.didDrawCell&&R.didDrawCell.push(D.didDrawCell),D.willDrawPage&&R.willDrawPage.push(D.willDrawPage),D.didDrawPage&&R.didDrawPage.push(D.didDrawPage)}return R}function b(O,T){var k,L,R,j,E,D,U,H,B,z,te,Z,ee=(0,d.parseSpacing)(T.margin,40/O.scaleFactor()),ce=(k=w(O,T.startY))!==null&&k!==void 0?k:ee.top,P;T.showFoot===!0?P="everyPage":T.showFoot===!1?P="never":P=(L=T.showFoot)!==null&&L!==void 0?L:"everyPage";var I;T.showHead===!0?I="everyPage":T.showHead===!1?I="never":I=(R=T.showHead)!==null&&R!==void 0?R:"everyPage";var M=(j=T.useCss)!==null&&j!==void 0?j:!1,q=T.theme||(M?"plain":"striped"),Y=!!T.horizontalPageBreak,fe=(E=T.horizontalPageBreakRepeat)!==null&&E!==void 0?E: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:(H=T.rowPageBreak)!==null&&H!==void 0?H:"auto",tableWidth:(B=T.tableWidth)!==null&&B!==void 0?B:"auto",showHead:I,showFoot:P,tableLineWidth:(z=T.tableLineWidth)!==null&&z!==void 0?z:0,tableLineColor:(te=T.tableLineColor)!==null&&te!==void 0?te:200,horizontalPageBreak:Y,horizontalPageBreakRepeat:fe,horizontalPageBreakBehaviour:(Z=T.horizontalPageBreakBehaviour)!==null&&Z!==void 0?Z:"afterAllRows"}}function w(O,T){var k=O.getLastAutoTable(),L=O.scaleFactor(),R=O.pageNumber(),j=!1;if(k&&k.startPageNumber){var E=k.startPageNumber+k.pageNumber-1;j=E===R}return typeof T=="number"?T:(T==null||T===!1)&&j&&(k==null?void 0:k.finalY)!=null?k.finalY+20/L:null}function S(O,T,k){var L=T.head||[],R=T.body||[],j=T.foot||[];if(T.html){var E=T.includeHiddenHtml;if(k){var D=(0,u.parseHtml)(O,T.html,k,E,T.useCss)||{};L=D.head||L,R=D.body||L,j=D.foot||L}else console.error("Cannot parse html in non browser environment")}var U=T.columns||A(L,R,j);return{columns:U,head:L,body:R,foot:j}}function A(O,T,k){var L=O[0]||T[0]||k[0]||[],R=[];return Object.keys(L).filter(function(j){return j!=="_element"}).forEach(function(j){var E=1,D;Array.isArray(L)?D=L[parseInt(j)]:D=L[j],typeof D=="object"&&!Array.isArray(D)&&(E=(D==null?void 0:D.colSpan)||1);for(var U=0;U<E;U++){var H=void 0;Array.isArray(L)?H=R.length:H=j+(U>0?"_".concat(U):"");var B={dataKey:H};R.push(B)}}),R}}),792:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(f,d,h,g){for(var p=function(w){w&&typeof w!="object"&&console.error("The options parameter should be of type object, is: "+typeof w),typeof w.extendWidth<"u"&&(w.tableWidth=w.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof w.margins<"u"&&(typeof w.margin>"u"&&(w.margin=w.margins),console.error("Use of deprecated option: margins, use margin instead.")),w.startY&&typeof w.startY!="number"&&(console.error("Invalid value for startY option",w.startY),delete w.startY),!w.didDrawPage&&(w.afterPageContent||w.beforePageContent||w.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),w.didDrawPage=function(j){f.applyStyles(f.userStyles),w.beforePageContent&&w.beforePageContent(j),f.applyStyles(f.userStyles),w.afterPageContent&&w.afterPageContent(j),f.applyStyles(f.userStyles),w.afterPageAdd&&j.pageNumber>1&&j.afterPageAdd(j),f.applyStyles(f.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(j){w[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 E=j[0],D=j[1];w[D]&&(console.error("Use of deprecated option ".concat(D,". Use ").concat(E," instead")),w[E]=w[D])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(j){var E=typeof j=="string"?j:j[0],D=typeof j=="string"?j:j[1];typeof w[E]<"u"&&(typeof w.styles[D]>"u"&&(w.styles[D]=w[E]),console.error("Use of deprecated option: "+E+", use the style "+D+" instead."))});for(var S=0,A=["styles","bodyStyles","headStyles","footStyles"];S<A.length;S++){var O=A[S];u(w[O]||{})}for(var T=w.columnStyles||{},k=0,L=Object.keys(T);k<L.length;k++){var R=L[k];u(T[R]||{})}},m=0,y=[d,h,g];m<y.length;m++){var b=y[m];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,w){this.pageNumber=1,this.pageCount=1,this.id=b.id,this.settings=b.settings,this.styles=b.styles,this.hooks=b.hooks,this.columns=w.columns,this.head=w.head,this.body=w.body,this.foot=w.foot}return y.prototype.getHeadHeight=function(b){return this.head.reduce(function(w,S){return w+S.getMaxCellHeight(b)},0)},y.prototype.getFootHeight=function(b){return this.foot.reduce(function(w,S){return w+S.getMaxCellHeight(b)},0)},y.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},y.prototype.callCellHooks=function(b,w,S,A,O,T){for(var k=0,L=w;k<L.length;k++){var R=L[k],j=new f.CellHookData(b,this,S,A,O,T),E=R(j)===!1;if(S.text=Array.isArray(S.text)?S.text:[S.text],E)return!1}return!0},y.prototype.callEndPageHooks=function(b,w){b.applyStyles(b.userStyles);for(var S=0,A=this.hooks.didDrawPage;S<A.length;S++){var O=A[S];O(new f.HookData(b,this,w))}},y.prototype.callWillDrawPageHooks=function(b,w){for(var S=0,A=this.hooks.willDrawPage;S<A.length;S++){var O=A[S];O(new f.HookData(b,this,w))}},y.prototype.getWidth=function(b){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var w=this.columns.reduce(function(A,O){return A+O.wrappedWidth},0);return w}else{var S=this.settings.margin;return b-S.left-S.right}},y})();l.Table=h;var g=(function(){function y(b,w,S,A,O){O===void 0&&(O=!1),this.height=0,this.raw=b,b instanceof u.HtmlRowInput&&(this.raw=b._element,this.element=b._element),this.index=w,this.section=S,this.cells=A,this.spansMultiplePages=O}return y.prototype.getMaxCellHeight=function(b){var w=this;return b.reduce(function(S,A){var O;return Math.max(S,((O=w.cells[A.index])===null||O===void 0?void 0:O.height)||0)},0)},y.prototype.hasRowSpan=function(b){var w=this;return b.filter(function(S){var A=w.cells[S.index];return A?A.rowSpan>1:!1}).length>0},y.prototype.canEntireRowFit=function(b,w){return this.getMaxCellHeight(w)<=b},y.prototype.getMinimumRowHeight=function(b,w){var S=this;return b.reduce(function(A,O){var T=S.cells[O.index];if(!T)return 0;var k=w.getLineHeight(T.styles.fontSize),L=T.padding("vertical"),R=L+k;return R>A?R:A},0)},y})();l.Row=g;var p=(function(){function y(b,w,S){var A,O;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=w,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=(O=(A=b.content)!==null&&A!==void 0?A:b.title)!==null&&O!==void 0?O: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 w=this.height-this.padding("vertical");b=this.y+w/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,w){w===void 0&&(w=1.15);var S=Array.isArray(this.text)?this.text.length:1,A=this.styles.fontSize/b*w,O=S*A+this.padding("vertical");return Math.max(O,this.styles.minCellHeight)},y.prototype.padding=function(b){var w=(0,d.parseSpacing)(this.styles.cellPadding,0);return b==="vertical"?w.top+w.bottom:b==="horizontal"?w.left+w.right:w[b]},y})();l.Cell=p;var m=(function(){function y(b,w,S){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=b,this.raw=w,this.index=S}return y.prototype.getMaxCustomCellWidth=function(b){for(var w=0,S=0,A=b.allRows();S<A.length;S++){var O=A[S],T=O.cells[this.index];T&&typeof T.styles.cellWidth=="number"&&(w=Math.max(w,T.styles.cellWidth))}return w},y})();l.Column=m}),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),m=1;m<arguments.length;m++){var y=arguments[m];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(O,T){var k=new u.DocHandler(O),L=m(T,k.scaleFactor()),R=new f.Table(T,L);return(0,d.calculateWidths)(k,R),k.applyStyles(k.userStyles),R}l.createTable=p;function m(O,T){var k=O.content,L=S(k.columns);if(k.head.length===0){var R=b(L,"head");R&&k.head.push(R)}if(k.foot.length===0){var R=b(L,"foot");R&&k.foot.push(R)}var j=O.settings.theme,E=O.styles;return{columns:L,head:y("head",k.head,L,E,j,T),body:y("body",k.body,L,E,j,T),foot:y("foot",k.foot,L,E,j,T)}}function y(O,T,k,L,R,j){var E={},D=T.map(function(U,H){for(var B=0,z={},te=0,Z=0,ee=0,ce=k;ee<ce.length;ee++){var P=ce[ee];if(E[P.index]==null||E[P.index].left===0)if(Z===0){var I=void 0;Array.isArray(U)?I=U[P.index-te-B]:I=U[P.dataKey];var M={};typeof I=="object"&&!Array.isArray(I)&&(M=(I==null?void 0:I.styles)||{});var q=A(O,P,H,R,L,j,M),Y=new f.Cell(I,q,O);z[P.dataKey]=Y,z[P.index]=Y,Z=Y.colSpan-1,E[P.index]={left:Y.rowSpan-1,times:Z}}else Z--,te++;else E[P.index].left--,Z=E[P.index].times,B++}return new f.Row(U,H,O,z)});return D}function b(O,T){var k={};return O.forEach(function(L){if(L.raw!=null){var R=w(T,L.raw);R!=null&&(k[L.dataKey]=R)}}),Object.keys(k).length>0?k:null}function w(O,T){if(O==="head"){if(typeof T=="object")return T.header||T.title||null;if(typeof T=="string"||typeof T=="number")return T}else if(O==="foot"&&typeof T=="object")return T.footer;return null}function S(O){return O.map(function(T,k){var L,R,j;return typeof T=="object"?j=(R=(L=T.dataKey)!==null&&L!==void 0?L:T.key)!==null&&R!==void 0?R:k:j=k,new f.Column(j,T,k)})}function A(O,T,k,L,R,j,E){var D=(0,h.getTheme)(L),U;O==="head"?U=R.headStyles:O==="body"?U=R.bodyStyles:O==="foot"&&(U=R.footStyles);var H=(0,g.assign)({},D.table,D[O],R.styles,U),B=R.columnStyles[T.dataKey]||R.columnStyles[T.index]||{},z=O==="body"?B:{},te=O==="body"&&k%2===0?(0,g.assign)({},D.alternateRow,R.alternateRowStyles):{},Z=(0,h.defaultStyles)(j),ee=(0,g.assign)({},Z,H,te,z);return(0,g.assign)(ee,E)}}),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 m(B,z){var te=z.settings,Z=te.startY,ee=te.margin,ce={x:ee.left,y:Z},P=z.getHeadHeight(z.columns)+z.getFootHeight(z.columns),I=Z+ee.bottom+P;if(te.pageBreak==="avoid"){var M=z.body,q=M.reduce(function(ne,K){return ne+K.height},0);I+=q}var Y=new d.DocHandler(B);(te.pageBreak==="always"||te.startY!=null&&I>Y.pageSize().height)&&(H(Y),ce.y=ee.top),z.callWillDrawPageHooks(Y,ce);var fe=(0,h.assign)({},ce);z.startPageNumber=Y.pageNumber(),te.horizontalPageBreak?y(Y,z,fe,ce):(Y.applyStyles(Y.userStyles),(te.showHead==="firstPage"||te.showHead==="everyPage")&&z.head.forEach(function(ne){return R(Y,z,ne,ce,z.columns)}),Y.applyStyles(Y.userStyles),z.body.forEach(function(ne,K){var he=K===z.body.length-1;L(Y,z,ne,he,fe,ce,z.columns)}),Y.applyStyles(Y.userStyles),(te.showFoot==="lastPage"||te.showFoot==="everyPage")&&z.foot.forEach(function(ne){return R(Y,z,ne,ce,z.columns)})),(0,u.addTableBorder)(Y,z,fe,ce),z.callEndPageHooks(Y,ce),z.finalY=ce.y,B.lastAutoTable=z,B.previousAutoTable=z,B.autoTable&&(B.autoTable.previous=z),Y.applyStyles(Y.userStyles)}l.drawTable=m;function y(B,z,te,Z){var ee=(0,p.calculateAllColumnsCanFitInPage)(B,z),ce=z.settings;if(ce.horizontalPageBreakBehaviour==="afterAllRows")ee.forEach(function(q,Y){B.applyStyles(B.userStyles),Y>0?U(B,z,te,Z,q.columns,!0):b(B,z,Z,q.columns),w(B,z,te,Z,q.columns),A(B,z,Z,q.columns)});else for(var P=-1,I=ee[0],M=function(){var q=P;if(I){B.applyStyles(B.userStyles);var Y=I.columns;P>=0?U(B,z,te,Z,Y,!0):b(B,z,Z,Y),q=S(B,z,P+1,Z,Y),A(B,z,Z,Y)}var fe=q-P;ee.slice(1).forEach(function(ne){B.applyStyles(B.userStyles),U(B,z,te,Z,ne.columns,!0),S(B,z,P+1,Z,ne.columns,fe),A(B,z,Z,ne.columns)}),P=q};P<z.body.length-1;)M()}function b(B,z,te,Z){var ee=z.settings;B.applyStyles(B.userStyles),(ee.showHead==="firstPage"||ee.showHead==="everyPage")&&z.head.forEach(function(ce){return R(B,z,ce,te,Z)})}function w(B,z,te,Z,ee){B.applyStyles(B.userStyles),z.body.forEach(function(ce,P){var I=P===z.body.length-1;L(B,z,ce,I,te,Z,ee)})}function S(B,z,te,Z,ee,ce){B.applyStyles(B.userStyles),ce=ce??z.body.length;var P=Math.min(te+ce,z.body.length),I=-1;return z.body.slice(te,P).forEach(function(M,q){var Y=te+q===z.body.length-1,fe=D(B,z,Y,Z);M.canEntireRowFit(fe,ee)&&(R(B,z,M,Z,ee),I=te+q)}),I}function A(B,z,te,Z){var ee=z.settings;B.applyStyles(B.userStyles),(ee.showFoot==="lastPage"||ee.showFoot==="everyPage")&&z.foot.forEach(function(ce){return R(B,z,ce,te,Z)})}function O(B,z,te){var Z=te.getLineHeight(B.styles.fontSize),ee=B.padding("vertical"),ce=Math.floor((z-ee)/Z);return Math.max(0,ce)}function T(B,z,te,Z){var ee={};B.spansMultiplePages=!0,B.height=0;for(var ce=0,P=0,I=te.columns;P<I.length;P++){var M=I[P],q=B.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=O(q,z,Z);q.text.length>fe&&(Y.text=q.text.splice(fe,q.text.length));var ne=Z.scaleFactor(),K=Z.getLineHeightFactor();q.contentHeight=q.getContentHeight(ne,K),q.contentHeight>=z&&(q.contentHeight=z,Y.styles.minCellHeight-=z),q.contentHeight>B.height&&(B.height=q.contentHeight),Y.contentHeight=Y.getContentHeight(ne,K),Y.contentHeight>ce&&(ce=Y.contentHeight),ee[M.index]=Y}}var he=new f.Row(B.raw,-1,B.section,ee,!0);he.height=ce;for(var be=0,se=te.columns;be<se.length;be++){var M=se[be],Y=he.cells[M.index];Y&&(Y.height=he.height);var q=B.cells[M.index];q&&(q.height=B.height)}return he}function k(B,z,te,Z){var ee=B.pageSize().height,ce=Z.settings.margin,P=ce.top+ce.bottom,I=ee-P;z.section==="body"&&(I-=Z.getHeadHeight(Z.columns)+Z.getFootHeight(Z.columns));var M=z.getMinimumRowHeight(Z.columns,B),q=M<te;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(B,z,te,Z,ee,ce,P){var I=D(B,z,Z,ce);if(te.canEntireRowFit(I,P))R(B,z,te,ce,P);else if(k(B,te,I,z)){var M=T(te,I,z,B);R(B,z,te,ce,P),U(B,z,ee,ce,P),L(B,z,M,Z,ee,ce,P)}else U(B,z,ee,ce,P),L(B,z,te,Z,ee,ce,P)}function R(B,z,te,Z,ee){Z.x=z.settings.margin.left;for(var ce=0,P=ee;ce<P.length;ce++){var I=P[ce],M=te.cells[I.index];if(!M){Z.x+=I.width;continue}B.applyStyles(M.styles),M.x=Z.x,M.y=Z.y;var q=z.callCellHooks(B,z.hooks.willDrawCell,M,te,I,Z);if(q===!1){Z.x+=I.width;continue}j(B,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"))},B.getDocument()),z.callCellHooks(B,z.hooks.didDrawCell,M,te,I,Z),Z.x+=I.width}Z.y+=te.height}function j(B,z,te){var Z=z.styles;if(B.getDocument().setFillColor(B.getDocument().getFillColor()),typeof Z.lineWidth=="number"){var ee=(0,u.getFillStyle)(Z.lineWidth,Z.fillColor);ee&&B.rect(z.x,te.y,z.width,z.height,ee)}else typeof Z.lineWidth=="object"&&(Z.fillColor&&B.rect(z.x,te.y,z.width,z.height,"F"),E(B,z,te,Z.lineWidth))}function E(B,z,te,Z){var ee,ce,P,I;Z.top&&(ee=te.x,ce=te.y,P=te.x+z.width,I=te.y,Z.right&&(P+=.5*Z.right),Z.left&&(ee-=.5*Z.left),M(Z.top,ee,ce,P,I)),Z.bottom&&(ee=te.x,ce=te.y+z.height,P=te.x+z.width,I=te.y+z.height,Z.right&&(P+=.5*Z.right),Z.left&&(ee-=.5*Z.left),M(Z.bottom,ee,ce,P,I)),Z.left&&(ee=te.x,ce=te.y,P=te.x,I=te.y+z.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),M(Z.left,ee,ce,P,I)),Z.right&&(ee=te.x+z.width,ce=te.y,P=te.x+z.width,I=te.y+z.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),M(Z.right,ee,ce,P,I));function M(q,Y,fe,ne,K){B.getDocument().setLineWidth(q),B.getDocument().line(Y,fe,ne,K,"S")}}function D(B,z,te,Z){var ee=z.settings.margin.bottom,ce=z.settings.showFoot;return(ce==="everyPage"||ce==="lastPage"&&te)&&(ee+=z.getFootHeight(z.columns)),B.pageSize().height-Z.y-ee}function U(B,z,te,Z,ee,ce){ee===void 0&&(ee=[]),ce===void 0&&(ce=!1),B.applyStyles(B.userStyles),z.settings.showFoot==="everyPage"&&!ce&&z.foot.forEach(function(I){return R(B,z,I,Z,ee)}),z.callEndPageHooks(B,Z);var P=z.settings.margin;(0,u.addTableBorder)(B,z,te,Z),H(B),z.pageNumber++,z.pageCount++,Z.x=P.left,Z.y=P.top,te.y=P.top,z.callWillDrawPageHooks(B,Z),z.settings.showHead==="everyPage"&&(z.head.forEach(function(I){return R(B,z,I,Z,ee)}),B.applyStyles(B.userStyles))}l.addPage=U;function H(B){var z=B.pageNumber();B.setPage(z+1);var te=B.pageNumber();return te===z?(B.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 m;p===void 0&&(p={});var y=(0,u.getPageAvailableWidth)(h,g),b=new Map,w=[],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 R=g.columns.find(function(j){return j.dataKey===L||j.index===L});R&&!b.has(R.index)&&(b.set(R.index,!0),w.push(R.index),S.push(g.columns[R.index]),y-=R.wrappedWidth)});for(var O=!0,T=(m=p==null?void 0:p.start)!==null&&m!==void 0?m:0;T<g.columns.length;){if(b.has(T)){T++;continue}var k=g.columns[T].wrappedWidth;if(O||y>=k)O=!1,w.push(T),S.push(g.columns[T]),y-=k;else break;T++}return{colIndexes:w,columns:S,lastIndex:T-1}}function d(h,g){for(var p=[],m=0;m<g.columns.length;m++){var y=f(h,g,{start:m});y.columns.length&&(p.push(y),m=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(w,S){d(w,S);var A=[],O=0;S.columns.forEach(function(k){var L=k.getMaxCustomCellWidth(S);L?k.width=L:(k.width=k.wrappedWidth,A.push(k)),O+=k.width});var T=S.getWidth(w.pageSize().width)-O;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/w.scaleFactor()&&(T=T<1?T:Math.round(T),console.warn("Of the table content, ".concat(T," units width could not fit page"))),p(S),m(S,w),g(S)}l.calculateWidths=f;function d(w,S){var A=w.scaleFactor(),O=S.settings.horizontalPageBreak,T=(0,u.getPageAvailableWidth)(w,S);S.allRows().forEach(function(k){for(var L=0,R=S.columns;L<R.length;L++){var j=R[L],E=k.cells[j.index];if(E){var D=S.hooks.didParseCell;S.callCellHooks(w,D,E,k,j,null);var U=E.padding("horizontal");E.contentWidth=(0,u.getStringWidth)(E.text,E.styles,w)+U;var H=(0,u.getStringWidth)(E.text.join(" ").split(/[^\S\u00A0]+/),E.styles,w);if(E.minReadableWidth=H+E.padding("horizontal"),typeof E.styles.cellWidth=="number")E.minWidth=E.styles.cellWidth,E.wrappedWidth=E.styles.cellWidth;else if(E.styles.cellWidth==="wrap"||O===!0)E.contentWidth>T?(E.minWidth=T,E.wrappedWidth=T):(E.minWidth=E.contentWidth,E.wrappedWidth=E.contentWidth);else{var B=10/A;E.minWidth=E.styles.minCellWidth||B,E.wrappedWidth=E.contentWidth,E.minWidth>E.wrappedWidth&&(E.wrappedWidth=E.minWidth)}}}}),S.allRows().forEach(function(k){for(var L=0,R=S.columns;L<R.length;L++){var j=R[L],E=k.cells[j.index];if(E&&E.colSpan===1)j.wrappedWidth=Math.max(j.wrappedWidth,E.wrappedWidth),j.minWidth=Math.max(j.minWidth,E.minWidth),j.minReadableWidth=Math.max(j.minReadableWidth,E.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)}E&&(E.colSpan>1&&!j.minWidth&&(j.minWidth=E.minWidth),E.colSpan>1&&!j.wrappedWidth&&(j.wrappedWidth=E.minWidth))}})}function h(w,S,A){for(var O=S,T=w.reduce(function(B,z){return B+z.wrappedWidth},0),k=0;k<w.length;k++){var L=w[k],R=L.wrappedWidth/T,j=O*R,E=L.width+j,D=A(L),U=E<D?D:E;S-=U-L.width,L.width=U}if(S=Math.round(S*1e10)/1e10,S){var H=w.filter(function(B){return S<0?B.width>A(B):!0});H.length&&(S=h(H,S,A))}return S}l.resizeColumns=h;function g(w){for(var S={},A=1,O=w.allRows(),T=0;T<O.length;T++)for(var k=O[T],L=0,R=w.columns;L<R.length;L++){var j=R[L],E=S[j.index];if(A>1)A--,delete k.cells[j.index];else if(E)E.cell.height+=k.height,A=E.cell.colSpan,delete k.cells[j.index],E.left--,E.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=O.length-T,H=D.rowSpan>U?U:D.rowSpan;S[j.index]={cell:D,left:H,row:k}}}}}function p(w){for(var S=w.allRows(),A=0;A<S.length;A++)for(var O=S[A],T=null,k=0,L=0,R=0;R<w.columns.length;R++){var j=w.columns[R];if(L-=1,L>1&&w.columns[R+1])k+=j.width,delete O.cells[j.index];else if(T){var E=T;delete O.cells[j.index],T=null,E.width=j.width+k}else{var E=O.cells[j.index];if(!E)continue;if(L=E.colSpan,k=0,E.colSpan>1){T=E,k+=j.width;continue}E.width=j.width+k}}}function m(w,S){for(var A={count:0,height:0},O=0,T=w.allRows();O<T.length;O++){for(var k=T[O],L=0,R=w.columns;L<R.length;L++){var j=R[L],E=k.cells[j.index];if(E){S.applyStyles(E.styles,!0);var D=E.width-E.padding("horizontal");if(E.styles.overflow==="linebreak")E.text=S.splitTextToSize(E.text,D+1/S.scaleFactor(),{fontSize:E.styles.fontSize});else if(E.styles.overflow==="ellipsize")E.text=y(E.text,D,E.styles,S,"...");else if(E.styles.overflow==="hidden")E.text=y(E.text,D,E.styles,S,"");else if(typeof E.styles.overflow=="function"){var U=E.styles.overflow(E.text,D);typeof U=="string"?E.text=[U]:E.text=U}E.contentHeight=E.getContentHeight(S.scaleFactor(),S.getLineHeightFactor());var H=E.contentHeight/E.rowSpan;E.rowSpan>1&&A.count*A.height<H*E.rowSpan?A={height:H,count:E.rowSpan}:A&&A.count>0&&A.height>H&&(H=A.height),H>k.height&&(k.height=H)}}A.count--}}function y(w,S,A,O,T){return w.map(function(k){return b(k,S,A,O,T)})}l.ellipsize=y;function b(w,S,A,O,T){var k=1e4*O.scaleFactor();if(S=Math.ceil(S*k)/k,S>=(0,u.getStringWidth)(w,A,O))return w;for(;S<(0,u.getStringWidth)(w+T,A,O)&&!(w.length<=1);)w=w.substring(0,w.length-1);return w.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 m(S,A){var O=(0,c.parseInput)(S,A),T=(0,f.createTable)(S,O);(0,u.drawTable)(S,T)}function y(S,A){var O=(0,c.parseInput)(S,A);return(0,f.createTable)(S,O)}s.__createTable=y;function b(S,A){(0,u.drawTable)(S,A)}s.__drawTable=b;try{var w=a(964);w.jsPDF&&(w=w.jsPDF),p(w)}catch{}s.default=m})(),o})()})})(qh)),qh.exports}PL();function OL({title:e,subtitle:t,headers:r,rows:n,filename:i,orientation:a="portrait"}){const o=new yt(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 jL({student:e,exams:t,schoolName:r}){var a;const n=new yt;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 CL({student:e,payment:t,schoolName:r}){const n=new yt;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 kL({className:e,date:t,records:r,summary:n}){const i=new yt;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 zh={};zh.version="0.18.5";var KE=1252,LL=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],XE=function(e){LL.indexOf(e)!=-1&&(KE=e)};function IL(){XE(1252)}var df=function(e){XE(e)};function FL(){df(1200),IL()}var mh=function(t){return String.fromCharCode(t)},ww=function(t){return String.fromCharCode(t)},Wh,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function pf(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 tr=(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 Ys(e){return tr?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function _w(e){return tr?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var va=function(t){return tr?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 r0(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 ML(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Cn=tr?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 DL(e){for(var t=[],r=0,n=e.length+250,i=Ys(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=Ys(65535),n=65530)}return t.push(i.slice(0,r)),Cn(t)}var Ju=/\u0000/g,vh=/[\u0001-\u0006]/g;function rc(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 J2(e,t){var r=""+e;return r.length>=t?r:Ur(" ",t-r.length)+r}function Hh(e,t){var r=""+e;return r.length>=t?r:r+Ur(" ",t-r.length)}function RL(e,t){var r=""+Math.round(e);return r.length>=t?r:Ur("0",t-r.length)+r}function BL(e,t){var r=""+e;return r.length>=t?r:Ur("0",t-r.length)+r}var Sw=Math.pow(2,32);function Ml(e,t){if(e>Sw||e<-Sw)return RL(e,t);var r=Math.round(e);return BL(r,t)}function Gh(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 Aw=[["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 $L(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"秒 "'},Tw={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},qL={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 Vh(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 gh(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=YL(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 JE=new Date(1899,11,31,0,0,0),UL=JE.getTime(),zL=new Date(1900,2,1,0,0,0);function ZE(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=zL&&(r+=1440*60*1e3),(r-(UL+(e.getTimezoneOffset()-JE.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Z2(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function WL(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function HL(e){var t=e<0?12:11,r=Z2(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function GL(e){var t=Z2(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function VL(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=HL(e):t===10?r=e.toFixed(10).substr(0,12):r=GL(e),Z2(WL(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):VL(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ss(14,ZE(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function YL(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function KL(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 Aw[r.q][0];default:return Aw[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 QE=/%/g;function XL(e,t,r){var n=t.replace(QE,""),i=t.length-n.length;return fo(e,n,r*Math.pow(10,2*i))+Ur("%",i)}function JL(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 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.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 tP=/# (\?+)( ?)\/( ?)(\d+)/;function ZL(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):J2(o,e[1].length)+e[2]+"/"+e[3]+xa(s,e[4].length))}function QL(e,t,r){return r+(t===0?"":""+t)+Ur(" ",e[1].length+2+e[4].length)}var rP=/^#*0*\.([0#]+)/,nP=/\).*[0#]/,iP=/\(###\) ###\\?-####/;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 Nw(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 eI(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function tI(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(nP)){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 JL(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"$"+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+Ml(l,t.length);if(t.match(/^[#?]+$/))return i=Ml(r,0),i==="0"&&(i=""),i.length>t.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(tP))return ZL(a,l,c);if(t.match(/^#+0+$/))return c+Ml(l,t.length-t.indexOf("0"));if(a=t.match(rP))return i=Nw(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+Nw(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(Ml(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Gi(e,t,-r):Qo(""+(Math.floor(r)+eI(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=rc(Gi(e,t.replace(/[\\-]/g,""),r)),o=0,rc(rc(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(iP))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=Vh(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=Hh(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=Vh(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?J2(s[1],o)+a[2]+"/"+a[3]+Hh(s[2],o):Ur(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Ml(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(tI(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(Ml(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 rI(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 nI(e,t,r){var n=t.replace(QE,""),i=t.length-n.length;return fo(e,n,r*Math.pow(10,2*i))+Ur("%",i)}function aP(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"-"+aP(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(nP)){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 rI(e,t,r);if(t.indexOf("%")!==-1)return nI(e,t,r);if(t.indexOf("E")!==-1)return aP(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(tP))return QL(a,l,c);if(t.match(/^#+0+$/))return c+xa(l,t.length-t.indexOf("0"));if(a=t.match(rP))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=rc(ka(e,t.replace(/[\\-]/g,""),r)),o=0,rc(rc(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(iP))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=Vh(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=Hh(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=Vh(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?J2(s[1],o)+a[2]+"/"+a[3]+Hh(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 iI(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 oP=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function sP(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Gh(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(oP))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 aI(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(!Gh(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=gh(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=gh(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=gh(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(oP)){if(c==null&&(c=gh(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]||"$",sP(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 m=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",m<1&&(m=1);break;case"s":(b=i[o].v.match(/\.0+$/))&&(y=Math.max(y,b[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[o].v.match(/[Hh]/)&&(m=1),m<2&&i[o].v.match(/[Mm]/)&&(m=2),m<3&&i[o].v.match(/[Ss]/)&&(m=3)}switch(m){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 w="",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=KL(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;w+=i[o].v,o=S-1;break;case"G":i[o].t="t",i[o].v=xy(t,r);break}var A="",O,T;if(w.length>0){w.charCodeAt(0)==40?(O=t<0&&w.charCodeAt(0)===45?-t:t,T=fo("n",w,O)):(O=t<0&&n>1?-t:t,T=fo("n",w,O),O<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&&(O=n>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=fo(i[o].t,i[o].v,O),i[o].t="t");var R="";for(o=0;o!==i.length;++o)i[o]!=null&&(R+=i[o].v);return R}var Pw=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Ow(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 oI(e,t){var r=iI(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(Pw),s=r[1].match(Pw);return Ow(t,o)?[n,r[0]]:Ow(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[Tw[e]]||Wr[Tw[e]]),n==null&&(n=qL[e]||"General");break}if(Gh(n,0))return xy(t,r);t instanceof Date&&(t=ZE(t,r.date1904));var i=oI(n,t);if(Gh(i[1]))return xy(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return aI(i[1],t,r,i[0])}function lP(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&&lP(e[t],t)}function fp(){Wr=$L()}var cP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function sI(e){var t=typeof e=="number"?Wr[e]:e;return t=t.replace(cP,"(\\d+)"),new RegExp("^"+t+"$")}function lI(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(cP)||[]).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 cI=(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,R=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)j[R]=T[R];for(R=0;R!=256;++R)for(L=T[R],k=256+R;k<4096;k+=256)L=j[k]=L>>>8^T[L&255];var E=[];for(R=1;R!=16;++R)E[R-1]=typeof Int32Array<"u"?j.subarray(R*256,R*256+256):j.slice(R*256,R*256+256);return E}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],m=i[11],y=i[12],b=i[13],w=i[14];function S(T,k){for(var L=k^-1,R=0,j=T.length;R<j;)L=L>>>8^r[(L^T.charCodeAt(R++))&255];return~L}function A(T,k){for(var L=k^-1,R=T.length-15,j=0;j<R;)L=w[T[j++]^L&255]^b[T[j++]^L>>8&255]^y[T[j++]^L>>16&255]^m[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(R+=15;j<R;)L=L>>>8^r[(L^T[j++])&255];return~L}function O(T,k){for(var L=k^-1,R=0,j=T.length,E=0,D=0;R<j;)E=T.charCodeAt(R++),E<128?L=L>>>8^r[(L^E)&255]:E<2048?(L=L>>>8^r[(L^(192|E>>6&31))&255],L=L>>>8^r[(L^(128|E&63))&255]):E>=55296&&E<57344?(E=(E&1023)+64,D=T.charCodeAt(R++)&1023,L=L>>>8^r[(L^(240|E>>8&7))&255],L=L>>>8^r[(L^(128|E>>2&63))&255],L=L>>>8^r[(L^(128|D>>6&15|(E&3)<<4))&255],L=L>>>8^r[(L^(128|D&63))&255]):(L=L>>>8^r[(L^(224|E>>12&15))&255],L=L>>>8^r[(L^(128|E>>6&63))&255],L=L>>>8^r[(L^(128|E&63))&255]);return~L}return e.table=r,e.bstr=S,e.buf=A,e.str=O,e})(),br=(function(){var t={};t.version="1.2.1";function r(J,pe){for(var ae=J.split("/"),oe=pe.split("/"),de=0,me=0,Ee=Math.min(ae.length,oe.length);de<Ee;++de){if(me=ae[de].length-oe[de].length)return me;if(ae[de]!=oe[de])return ae[de]<oe[de]?-1:1}return ae.length-oe.length}function n(J){if(J.charAt(J.length-1)=="/")return J.slice(0,-1).indexOf("/")===-1?J:n(J.slice(0,-1));var pe=J.lastIndexOf("/");return pe===-1?J:J.slice(0,pe+1)}function i(J){if(J.charAt(J.length-1)=="/")return i(J.slice(0,-1));var pe=J.lastIndexOf("/");return pe===-1?J:J.slice(pe+1)}function a(J,pe){typeof pe=="string"&&(pe=new Date(pe));var ae=pe.getHours();ae=ae<<6|pe.getMinutes(),ae=ae<<5|pe.getSeconds()>>>1,J.write_shift(2,ae);var oe=pe.getFullYear()-1980;oe=oe<<4|pe.getMonth()+1,oe=oe<<5|pe.getDate(),J.write_shift(2,oe)}function o(J){var pe=J.read_shift(2)&65535,ae=J.read_shift(2)&65535,oe=new Date,de=ae&31;ae>>>=5;var me=ae&15;ae>>>=4,oe.setMilliseconds(0),oe.setFullYear(ae+1980),oe.setMonth(me-1),oe.setDate(de);var Ee=pe&31;pe>>>=5;var Ie=pe&63;return pe>>>=6,oe.setHours(pe),oe.setMinutes(Ie),oe.setSeconds(Ee<<1),oe}function s(J){Pi(J,0);for(var pe={},ae=0;J.l<=J.length-4;){var oe=J.read_shift(2),de=J.read_shift(2),me=J.l+de,Ee={};switch(oe){case 21589:ae=J.read_shift(1),ae&1&&(Ee.mtime=J.read_shift(4)),de>5&&(ae&2&&(Ee.atime=J.read_shift(4)),ae&4&&(Ee.ctime=J.read_shift(4))),Ee.mtime&&(Ee.mt=new Date(Ee.mtime*1e3));break}J.l=me,pe[oe]=Ee}return pe}var l;function c(){return l||(l={})}function u(J,pe){if(J[0]==80&&J[1]==75)return ct(J,pe);if((J[0]|32)==109&&(J[1]|32)==105)return Fi(J,pe);if(J.length<512)throw new Error("CFB file size "+J.length+" < 512");var ae=3,oe=512,de=0,me=0,Ee=0,Ie=0,Ne=0,Ce=[],ke=J.slice(0,512);Pi(ke,0);var Ye=f(ke);switch(ae=Ye[0],ae){case 3:oe=512;break;case 4:oe=4096;break;case 0:if(Ye[1]==0)return ct(J,pe);default:throw new Error("Major Version: Expected 3 or 4 saw "+ae)}oe!==512&&(ke=J.slice(0,oe),Pi(ke,28));var et=J.slice(0,oe);d(ke,ae);var lt=ke.read_shift(4,"i");if(ae===3&&lt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+lt);ke.l+=4,Ee=ke.read_shift(4,"i"),ke.l+=4,ke.chk("00100000","Mini Stream Cutoff Size: "),Ie=ke.read_shift(4,"i"),de=ke.read_shift(4,"i"),Ne=ke.read_shift(4,"i"),me=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 Ot=h(J,oe);m(Ne,me,Ot,oe,Ce);var rr=b(Ot,Ee,Ce,oe);rr[Ee].name="!Directory",de>0&&Ie!==D&&(rr[Ie].name="!MiniFAT"),rr[Ce[0]].name="!FAT",rr.fat_addrs=Ce,rr.ssz=oe;var xr={},Zr=[],ea=[],Ga=[];w(Ee,rr,Ot,Zr,de,xr,ea,Ie),g(ea,Ga,Zr),Zr.shift();var Ta={FileIndex:ea,FullPaths:Ga};return pe&&pe.raw&&(Ta.raw={header:et,sectors:Ot}),Ta}function f(J){if(J[J.l]==80&&J[J.l+1]==75)return[0,0];J.chk(U,"Header Signature: "),J.l+=16;var pe=J.read_shift(2,"u");return[J.read_shift(2,"u"),pe]}function d(J,pe){var ae=9;switch(J.l+=2,ae=J.read_shift(2)){case 9:if(pe!=3)throw new Error("Sector Shift: Expected 9 saw "+ae);break;case 12:if(pe!=4)throw new Error("Sector Shift: Expected 12 saw "+ae);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ae)}J.chk("0600","Mini Sector Shift: "),J.chk("000000000000","Reserved: ")}function h(J,pe){for(var ae=Math.ceil(J.length/pe)-1,oe=[],de=1;de<ae;++de)oe[de-1]=J.slice(de*pe,(de+1)*pe);return oe[ae-1]=J.slice(ae*pe),oe}function g(J,pe,ae){for(var oe=0,de=0,me=0,Ee=0,Ie=0,Ne=ae.length,Ce=[],ke=[];oe<Ne;++oe)Ce[oe]=ke[oe]=oe,pe[oe]=ae[oe];for(;Ie<ke.length;++Ie)oe=ke[Ie],de=J[oe].L,me=J[oe].R,Ee=J[oe].C,Ce[oe]===oe&&(de!==-1&&Ce[de]!==de&&(Ce[oe]=Ce[de]),me!==-1&&Ce[me]!==me&&(Ce[oe]=Ce[me])),Ee!==-1&&(Ce[Ee]=oe),de!==-1&&oe!=Ce[oe]&&(Ce[de]=Ce[oe],ke.lastIndexOf(de)<Ie&&ke.push(de)),me!==-1&&oe!=Ce[oe]&&(Ce[me]=Ce[oe],ke.lastIndexOf(me)<Ie&&ke.push(me));for(oe=1;oe<Ne;++oe)Ce[oe]===oe&&(me!==-1&&Ce[me]!==me?Ce[oe]=Ce[me]:de!==-1&&Ce[de]!==de&&(Ce[oe]=Ce[de]));for(oe=1;oe<Ne;++oe)if(J[oe].type!==0){if(Ie=oe,Ie!=Ce[Ie])do Ie=Ce[Ie],pe[oe]=pe[Ie]+"/"+pe[oe];while(Ie!==0&&Ce[Ie]!==-1&&Ie!=Ce[Ie]);Ce[oe]=-1}for(pe[0]+="/",oe=1;oe<Ne;++oe)J[oe].type!==2&&(pe[oe]+="/")}function p(J,pe,ae){for(var oe=J.start,de=J.size,me=[],Ee=oe;ae&&de>0&&Ee>=0;)me.push(pe.slice(Ee*E,Ee*E+E)),de-=E,Ee=Cs(ae,Ee*4);return me.length===0?Re(0):Cn(me).slice(0,J.size)}function m(J,pe,ae,oe,de){var me=D;if(J===D){if(pe!==0)throw new Error("DIFAT chain shorter than expected")}else if(J!==-1){var Ee=ae[J],Ie=(oe>>>2)-1;if(!Ee)return;for(var Ne=0;Ne<Ie&&(me=Cs(Ee,Ne*4))!==D;++Ne)de.push(me);m(Cs(Ee,oe-4),pe-1,ae,oe,de)}}function y(J,pe,ae,oe,de){var me=[],Ee=[];de||(de=[]);var Ie=oe-1,Ne=0,Ce=0;for(Ne=pe;Ne>=0;){de[Ne]=!0,me[me.length]=Ne,Ee.push(J[Ne]);var ke=ae[Math.floor(Ne*4/oe)];if(Ce=Ne*4&Ie,oe<4+Ce)throw new Error("FAT boundary crossed: "+Ne+" 4 "+oe);if(!J[ke])break;Ne=Cs(J[ke],Ce)}return{nodes:me,data:Dw([Ee])}}function b(J,pe,ae,oe){var de=J.length,me=[],Ee=[],Ie=[],Ne=[],Ce=oe-1,ke=0,Ye=0,et=0,lt=0;for(ke=0;ke<de;++ke)if(Ie=[],et=ke+pe,et>=de&&(et-=de),!Ee[et]){Ne=[];var Xe=[];for(Ye=et;Ye>=0;){Xe[Ye]=!0,Ee[Ye]=!0,Ie[Ie.length]=Ye,Ne.push(J[Ye]);var st=ae[Math.floor(Ye*4/oe)];if(lt=Ye*4&Ce,oe<4+lt)throw new Error("FAT boundary crossed: "+Ye+" 4 "+oe);if(!J[st]||(Ye=Cs(J[st],lt),Xe[Ye]))break}me[et]={nodes:Ie,data:Dw([Ne])}}return me}function w(J,pe,ae,oe,de,me,Ee,Ie){for(var Ne=0,Ce=oe.length?2:0,ke=pe[J].data,Ye=0,et=0,lt;Ye<ke.length;Ye+=128){var Xe=ke.slice(Ye,Ye+128);Pi(Xe,64),et=Xe.read_shift(2),lt=nb(Xe,0,et-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},Ot=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);Ot!==0&&(st.ct=S(Xe,Xe.l-8));var rr=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);rr!==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,de>0&&Ne!==D&&(pe[Ne].name="!StreamData")):st.size>=4096?(st.storage="fat",pe[st.start]===void 0&&(pe[st.start]=y(ae,st.start,pe.fat_addrs,pe.ssz)),pe[st.start].name=st.name,st.content=pe[st.start].data.slice(0,st.size)):(st.storage="minifat",st.size<0?st.size=0:Ne!==D&&st.start!==D&&pe[Ne]&&(st.content=p(st,pe[Ne].data,(pe[Ie]||{}).data))),st.content&&Pi(st.content,0),me[lt]=st,Ee.push(st)}}function S(J,pe){return new Date((ji(J,pe+4)/1e7*Math.pow(2,32)+ji(J,pe)/1e7-11644473600)*1e3)}function A(J,pe){return c(),u(l.readFileSync(J),pe)}function O(J,pe){var ae=pe&&pe.type;switch(ae||tr&&Buffer.isBuffer(J)&&(ae="buffer"),ae||"base64"){case"file":return A(J,pe);case"base64":return u(va(yo(J)),pe);case"binary":return u(va(J),pe)}return u(J,pe)}function T(J,pe){var ae=pe||{},oe=ae.root||"Root Entry";if(J.FullPaths||(J.FullPaths=[]),J.FileIndex||(J.FileIndex=[]),J.FullPaths.length!==J.FileIndex.length)throw new Error("inconsistent CFB structure");J.FullPaths.length===0&&(J.FullPaths[0]=oe+"/",J.FileIndex[0]={name:oe,type:5}),ae.CLSID&&(J.FileIndex[0].clsid=ae.CLSID),k(J)}function k(J){var pe="Sh33tJ5";if(!br.find(J,"/"+pe)){var ae=Re(4);ae[0]=55,ae[1]=ae[3]=50,ae[2]=54,J.FileIndex.push({name:pe,type:2,content:ae,size:4,L:69,R:69,C:69}),J.FullPaths.push(J.FullPaths[0]+pe),L(J)}}function L(J,pe){T(J);for(var ae=!1,oe=!1,de=J.FullPaths.length-1;de>=0;--de){var me=J.FileIndex[de];switch(me.type){case 0:oe?ae=!0:(J.FileIndex.pop(),J.FullPaths.pop());break;case 1:case 2:case 5:oe=!0,isNaN(me.R*me.L*me.C)&&(ae=!0),me.R>-1&&me.L>-1&&me.R==me.L&&(ae=!0);break;default:ae=!0;break}}if(!(!ae&&!pe)){var Ee=new Date(1987,1,19),Ie=0,Ne=Object.create?Object.create(null):{},Ce=[];for(de=0;de<J.FullPaths.length;++de)Ne[J.FullPaths[de]]=!0,J.FileIndex[de].type!==0&&Ce.push([J.FullPaths[de],J.FileIndex[de]]);for(de=0;de<Ce.length;++de){var ke=n(Ce[de][0]);oe=Ne[ke],oe||(Ce.push([ke,{name:i(ke).replace("/",""),type:1,clsid:B,ct:Ee,mt:Ee,content:null}]),Ne[ke]=!0)}for(Ce.sort(function(lt,Xe){return r(lt[0],Xe[0])}),J.FullPaths=[],J.FileIndex=[],de=0;de<Ce.length;++de)J.FullPaths[de]=Ce[de][0],J.FileIndex[de]=Ce[de][1];for(de=0;de<Ce.length;++de){var Ye=J.FileIndex[de],et=J.FullPaths[de];if(Ye.name=i(et).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||B,de===0)Ye.C=Ce.length>1?1:-1,Ye.size=0,Ye.type=5;else if(et.slice(-1)=="/"){for(Ie=de+1;Ie<Ce.length&&n(J.FullPaths[Ie])!=et;++Ie);for(Ye.C=Ie>=Ce.length?-1:Ie,Ie=de+1;Ie<Ce.length&&n(J.FullPaths[Ie])!=n(et);++Ie);Ye.R=Ie>=Ce.length?-1:Ie,Ye.type=1}else n(J.FullPaths[de+1]||"")==n(et)&&(Ye.R=de+1),Ye.type=2}}}function R(J,pe){var ae=pe||{};if(ae.fileType=="mad")return St(J,ae);switch(L(J),ae.fileType){case"zip":return Or(J,ae)}var oe=(function(lt){for(var Xe=0,st=0,Ot=0;Ot<lt.FileIndex.length;++Ot){var rr=lt.FileIndex[Ot];if(rr.content){var xr=rr.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,Na=ta<=109?0:Math.ceil((ta-109)/127);Ta+ta+Na+127>>7>ta;)Na=++ta<=109?0:Math.ceil((ta-109)/127);var yi=[1,Na,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})(J),de=Re(oe[7]<<9),me=0,Ee=0;{for(me=0;me<8;++me)de.write_shift(1,H[me]);for(me=0;me<8;++me)de.write_shift(2,0);for(de.write_shift(2,62),de.write_shift(2,3),de.write_shift(2,65534),de.write_shift(2,9),de.write_shift(2,6),me=0;me<3;++me)de.write_shift(2,0);for(de.write_shift(4,0),de.write_shift(4,oe[2]),de.write_shift(4,oe[0]+oe[1]+oe[2]+oe[3]-1),de.write_shift(4,0),de.write_shift(4,4096),de.write_shift(4,oe[3]?oe[0]+oe[1]+oe[2]-1:D),de.write_shift(4,oe[3]),de.write_shift(-4,oe[1]?oe[0]-1:D),de.write_shift(4,oe[1]),me=0;me<109;++me)de.write_shift(-4,me<oe[2]?oe[1]+me:-1)}if(oe[1])for(Ee=0;Ee<oe[1];++Ee){for(;me<236+Ee*127;++me)de.write_shift(-4,me<oe[2]?oe[1]+me:-1);de.write_shift(-4,Ee===oe[1]-1?D:Ee+1)}var Ie=function(lt){for(Ee+=lt;me<Ee-1;++me)de.write_shift(-4,me+1);lt&&(++me,de.write_shift(-4,D))};for(Ee=me=0,Ee+=oe[1];me<Ee;++me)de.write_shift(-4,z.DIFSECT);for(Ee+=oe[2];me<Ee;++me)de.write_shift(-4,z.FATSECT);Ie(oe[3]),Ie(oe[4]);for(var Ne=0,Ce=0,ke=J.FileIndex[0];Ne<J.FileIndex.length;++Ne)ke=J.FileIndex[Ne],ke.content&&(Ce=ke.content.length,!(Ce<4096)&&(ke.start=Ee,Ie(Ce+511>>9)));for(Ie(oe[6]+7>>3);de.l&511;)de.write_shift(-4,z.ENDOFCHAIN);for(Ee=me=0,Ne=0;Ne<J.FileIndex.length;++Ne)ke=J.FileIndex[Ne],ke.content&&(Ce=ke.content.length,!(!Ce||Ce>=4096)&&(ke.start=Ee,Ie(Ce+63>>6)));for(;de.l&511;)de.write_shift(-4,z.ENDOFCHAIN);for(me=0;me<oe[4]<<2;++me){var Ye=J.FullPaths[me];if(!Ye||Ye.length===0){for(Ne=0;Ne<17;++Ne)de.write_shift(4,0);for(Ne=0;Ne<3;++Ne)de.write_shift(4,-1);for(Ne=0;Ne<12;++Ne)de.write_shift(4,0);continue}ke=J.FileIndex[me],me===0&&(ke.start=ke.size?ke.start-1:D);var et=me===0&&ae.root||ke.name;if(Ce=2*(et.length+1),de.write_shift(64,et,"utf16le"),de.write_shift(2,Ce),de.write_shift(1,ke.type),de.write_shift(1,ke.color),de.write_shift(-4,ke.L),de.write_shift(-4,ke.R),de.write_shift(-4,ke.C),ke.clsid)de.write_shift(16,ke.clsid,"hex");else for(Ne=0;Ne<4;++Ne)de.write_shift(4,0);de.write_shift(4,ke.state||0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,ke.start),de.write_shift(4,ke.size),de.write_shift(4,0)}for(me=1;me<J.FileIndex.length;++me)if(ke=J.FileIndex[me],ke.size>=4096)if(de.l=ke.start+1<<9,tr&&Buffer.isBuffer(ke.content))ke.content.copy(de,de.l,0,ke.size),de.l+=ke.size+511&-512;else{for(Ne=0;Ne<ke.size;++Ne)de.write_shift(1,ke.content[Ne]);for(;Ne&511;++Ne)de.write_shift(1,0)}for(me=1;me<J.FileIndex.length;++me)if(ke=J.FileIndex[me],ke.size>0&&ke.size<4096)if(tr&&Buffer.isBuffer(ke.content))ke.content.copy(de,de.l,0,ke.size),de.l+=ke.size+63&-64;else{for(Ne=0;Ne<ke.size;++Ne)de.write_shift(1,ke.content[Ne]);for(;Ne&63;++Ne)de.write_shift(1,0)}if(tr)de.l=de.length;else for(;de.l<de.length;)de.write_shift(1,0);return de}function j(J,pe){var ae=J.FullPaths.map(function(Ne){return Ne.toUpperCase()}),oe=ae.map(function(Ne){var Ce=Ne.split("/");return Ce[Ce.length-(Ne.slice(-1)=="/"?2:1)]}),de=!1;pe.charCodeAt(0)===47?(de=!0,pe=ae[0].slice(0,-1)+pe):de=pe.indexOf("/")!==-1;var me=pe.toUpperCase(),Ee=de===!0?ae.indexOf(me):oe.indexOf(me);if(Ee!==-1)return J.FileIndex[Ee];var Ie=!me.match(vh);for(me=me.replace(Ju,""),Ie&&(me=me.replace(vh,"!")),Ee=0;Ee<ae.length;++Ee)if((Ie?ae[Ee].replace(vh,"!"):ae[Ee]).replace(Ju,"")==me||(Ie?oe[Ee].replace(vh,"!"):oe[Ee]).replace(Ju,"")==me)return J.FileIndex[Ee];return null}var E=64,D=-2,U="d0cf11e0a1b11ae1",H=[208,207,17,224,161,177,26,225],B="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:B,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function te(J,pe,ae){c();var oe=R(J,ae);l.writeFileSync(pe,oe)}function Z(J){for(var pe=new Array(J.length),ae=0;ae<J.length;++ae)pe[ae]=String.fromCharCode(J[ae]);return pe.join("")}function ee(J,pe){var ae=R(J,pe);switch(pe&&pe.type||"buffer"){case"file":return c(),l.writeFileSync(pe.filename,ae),ae;case"binary":return typeof ae=="string"?ae:Z(ae);case"base64":return pf(typeof ae=="string"?ae:Z(ae));case"buffer":if(tr)return Buffer.isBuffer(ae)?ae:To(ae);case"array":return typeof ae=="string"?va(ae):ae}return ae}var ce;function P(J){try{var pe=J.InflateRaw,ae=new pe;if(ae._processChunk(new Uint8Array([3,0]),ae._finishFlushFlag),ae.bytesRead)ce=J;else throw new Error("zlib does not expose bytesRead")}catch(oe){console.error("cannot use native zlib: "+(oe.message||oe))}}function I(J,pe){if(!ce)return Ht(J,pe);var ae=ce.InflateRaw,oe=new ae,de=oe._processChunk(J.slice(J.l),oe._finishFlushFlag);return J.l+=oe.bytesRead,de}function M(J){return ce?ce.deflateRawSync(J):Ft(J)}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 ne(J){var pe=(J<<1|J<<11)&139536|(J<<5|J<<15)&558144;return(pe>>16|pe>>8|pe)&255}for(var K=typeof Uint8Array<"u",he=K?new Uint8Array(256):[],be=0;be<256;++be)he[be]=ne(be);function se(J,pe){var ae=he[J&255];return pe<=8?ae>>>8-pe:(ae=ae<<8|he[J>>8&255],pe<=16?ae>>>16-pe:(ae=ae<<8|he[J>>16&255],ae>>>24-pe))}function Le(J,pe){var ae=pe&7,oe=pe>>>3;return(J[oe]|(ae<=6?0:J[oe+1]<<8))>>>ae&3}function Se(J,pe){var ae=pe&7,oe=pe>>>3;return(J[oe]|(ae<=5?0:J[oe+1]<<8))>>>ae&7}function Ae(J,pe){var ae=pe&7,oe=pe>>>3;return(J[oe]|(ae<=4?0:J[oe+1]<<8))>>>ae&15}function le(J,pe){var ae=pe&7,oe=pe>>>3;return(J[oe]|(ae<=3?0:J[oe+1]<<8))>>>ae&31}function Me(J,pe){var ae=pe&7,oe=pe>>>3;return(J[oe]|(ae<=1?0:J[oe+1]<<8))>>>ae&127}function Qe(J,pe,ae){var oe=pe&7,de=pe>>>3,me=(1<<ae)-1,Ee=J[de]>>>oe;return ae<8-oe||(Ee|=J[de+1]<<8-oe,ae<16-oe)||(Ee|=J[de+2]<<16-oe,ae<24-oe)||(Ee|=J[de+3]<<24-oe),Ee&me}function Ue(J,pe,ae){var oe=pe&7,de=pe>>>3;return oe<=5?J[de]|=(ae&7)<<oe:(J[de]|=ae<<oe&255,J[de+1]=(ae&7)>>8-oe),pe+3}function Ke(J,pe,ae){var oe=pe&7,de=pe>>>3;return ae=(ae&1)<<oe,J[de]|=ae,pe+1}function Ze(J,pe,ae){var oe=pe&7,de=pe>>>3;return ae<<=oe,J[de]|=ae&255,ae>>>=8,J[de+1]=ae,pe+8}function Je(J,pe,ae){var oe=pe&7,de=pe>>>3;return ae<<=oe,J[de]|=ae&255,ae>>>=8,J[de+1]=ae&255,J[de+2]=ae>>>8,pe+16}function dt(J,pe){var ae=J.length,oe=2*ae>pe?2*ae:pe+5,de=0;if(ae>=pe)return J;if(tr){var me=_w(oe);if(J.copy)J.copy(me);else for(;de<J.length;++de)me[de]=J[de];return me}else if(K){var Ee=new Uint8Array(oe);if(Ee.set)Ee.set(J);else for(;de<ae;++de)Ee[de]=J[de];return Ee}return J.length=oe,J}function vt(J){for(var pe=new Array(J),ae=0;ae<J;++ae)pe[ae]=0;return pe}function wt(J,pe,ae){var oe=1,de=0,me=0,Ee=0,Ie=0,Ne=J.length,Ce=K?new Uint16Array(32):vt(32);for(me=0;me<32;++me)Ce[me]=0;for(me=Ne;me<ae;++me)J[me]=0;Ne=J.length;var ke=K?new Uint16Array(Ne):vt(Ne);for(me=0;me<Ne;++me)Ce[de=J[me]]++,oe<de&&(oe=de),ke[me]=0;for(Ce[0]=0,me=1;me<=oe;++me)Ce[me+16]=Ie=Ie+Ce[me-1]<<1;for(me=0;me<Ne;++me)Ie=J[me],Ie!=0&&(ke[me]=Ce[Ie+16]++);var Ye=0;for(me=0;me<Ne;++me)if(Ye=J[me],Ye!=0)for(Ie=se(ke[me],oe)>>oe-Ye,Ee=(1<<oe+4-Ye)-1;Ee>=0;--Ee)pe[Ie|Ee<<Ye]=Ye&15|me<<4;return oe}var Pt=K?new Uint16Array(512):vt(512),It=K?new Uint16Array(32):vt(32);if(!K){for(var Ut=0;Ut<512;++Ut)Pt[Ut]=0;for(Ut=0;Ut<32;++Ut)It[Ut]=0}(function(){for(var J=[],pe=0;pe<32;pe++)J.push(5);wt(J,It,32);var ae=[];for(pe=0;pe<=143;pe++)ae.push(8);for(;pe<=255;pe++)ae.push(9);for(;pe<=279;pe++)ae.push(7);for(;pe<=287;pe++)ae.push(8);wt(ae,Pt,288)})();var _t=(function(){for(var pe=K?new Uint8Array(32768):[],ae=0,oe=0;ae<fe.length-1;++ae)for(;oe<fe[ae+1];++oe)pe[oe]=ae;for(;oe<32768;++oe)pe[oe]=29;var de=K?new Uint8Array(259):[];for(ae=0,oe=0;ae<Y.length-1;++ae)for(;oe<Y[ae+1];++oe)de[oe]=ae;function me(Ie,Ne){for(var Ce=0;Ce<Ie.length;){var ke=Math.min(65535,Ie.length-Ce),Ye=Ce+ke==Ie.length;for(Ne.write_shift(1,+Ye),Ne.write_shift(2,ke),Ne.write_shift(2,~ke&65535);ke-- >0;)Ne[Ne.l++]=Ie[Ce++]}return Ne.l}function Ee(Ie,Ne){for(var Ce=0,ke=0,Ye=K?new Uint16Array(32768):[];ke<Ie.length;){var et=Math.min(65535,Ie.length-ke);if(et<10){for(Ce=Ue(Ne,Ce,+(ke+et==Ie.length)),Ce&7&&(Ce+=8-(Ce&7)),Ne.l=Ce/8|0,Ne.write_shift(2,et),Ne.write_shift(2,~et&65535);et-- >0;)Ne[Ne.l++]=Ie[ke++];Ce=Ne.l*8;continue}Ce=Ue(Ne,Ce,+(ke+et==Ie.length)+2);for(var lt=0;et-- >0;){var Xe=Ie[ke];lt=(lt<<5^Xe)&32767;var st=-1,Ot=0;if((st=Ye[lt])&&(st|=ke&-32768,st>ke&&(st-=32768),st<ke))for(;Ie[st+Ot]==Ie[ke+Ot]&&Ot<250;)++Ot;if(Ot>2){Xe=de[Ot],Xe<=22?Ce=Ze(Ne,Ce,he[Xe+1]>>1)-1:(Ze(Ne,Ce,3),Ce+=5,Ze(Ne,Ce,he[Xe-23]>>5),Ce+=3);var rr=Xe<8?0:Xe-4>>2;rr>0&&(Je(Ne,Ce,Ot-Y[Xe]),Ce+=rr),Xe=pe[ke-st],Ce=Ze(Ne,Ce,he[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<Ot;++Zr)Ye[lt]=ke&32767,lt=(lt<<5^Ie[ke])&32767,++ke;et-=Ot-1}else Xe<=143?Xe=Xe+48:Ce=Ke(Ne,Ce,1),Ce=Ze(Ne,Ce,he[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?me(Ne,Ce):Ee(Ne,Ce)}})();function Ft(J){var pe=Re(50+Math.floor(J.length*1.1)),ae=_t(J,pe);return pe.slice(0,ae)}var at=K?new Uint16Array(32768):vt(32768),Dr=K?new Uint16Array(32768):vt(32768),zt=K?new Uint16Array(128):vt(128),An=1,Kt=1;function fr(J,pe){var ae=le(J,pe)+257;pe+=5;var oe=le(J,pe)+1;pe+=5;var de=Ae(J,pe)+4;pe+=4;for(var me=0,Ee=K?new Uint8Array(19):vt(19),Ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ne=1,Ce=K?new Uint8Array(8):vt(8),ke=K?new Uint8Array(8):vt(8),Ye=Ee.length,et=0;et<de;++et)Ee[q[et]]=me=Se(J,pe),Ne<me&&(Ne=me),Ce[me]++,pe+=3;var lt=0;for(Ce[0]=0,et=1;et<=Ne;++et)ke[et]=lt=lt+Ce[et-1]<<1;for(et=0;et<Ye;++et)(lt=Ee[et])!=0&&(Ie[et]=ke[lt]++);var Xe=0;for(et=0;et<Ye;++et)if(Xe=Ee[et],Xe!=0){lt=he[Ie[et]]>>8-Xe;for(var st=(1<<7-Xe)-1;st>=0;--st)zt[lt|st<<Xe]=Xe&7|et<<3}var Ot=[];for(Ne=1;Ot.length<ae+oe;)switch(lt=zt[Me(J,pe)],pe+=lt&7,lt>>>=3){case 16:for(me=3+Le(J,pe),pe+=2,lt=Ot[Ot.length-1];me-- >0;)Ot.push(lt);break;case 17:for(me=3+Se(J,pe),pe+=3;me-- >0;)Ot.push(0);break;case 18:for(me=11+Me(J,pe),pe+=7;me-- >0;)Ot.push(0);break;default:Ot.push(lt),Ne<lt&&(Ne=lt);break}var rr=Ot.slice(0,ae),xr=Ot.slice(ae);for(et=ae;et<286;++et)rr[et]=0;for(et=oe;et<30;++et)xr[et]=0;return An=wt(rr,at,286),Kt=wt(xr,Dr,30),pe}function Vn(J,pe){if(J[0]==3&&!(J[1]&3))return[Ys(pe),2];for(var ae=0,oe=0,de=_w(pe||1<<18),me=0,Ee=de.length>>>0,Ie=0,Ne=0;(oe&1)==0;){if(oe=Se(J,ae),ae+=3,oe>>>1)oe>>1==1?(Ie=9,Ne=5):(ae=fr(J,ae),Ie=An,Ne=Kt);else{ae&7&&(ae+=8-(ae&7));var Ce=J[ae>>>3]|J[(ae>>>3)+1]<<8;if(ae+=32,Ce>0)for(!pe&&Ee<me+Ce&&(de=dt(de,me+Ce),Ee=de.length);Ce-- >0;)de[me++]=J[ae>>>3],ae+=8;continue}for(;;){!pe&&Ee<me+32767&&(de=dt(de,me+32767),Ee=de.length);var ke=Qe(J,ae,Ie),Ye=oe>>>1==1?Pt[ke]:at[ke];if(ae+=Ye&15,Ye>>>=4,(Ye>>>8&255)===0)de[me++]=Ye;else{if(Ye==256)break;Ye-=257;var et=Ye<8?0:Ye-4>>2;et>5&&(et=0);var lt=me+Y[Ye];et>0&&(lt+=Qe(J,ae,et),ae+=et),ke=Qe(J,ae,Ne),Ye=oe>>>1==1?It[ke]:Dr[ke],ae+=Ye&15,Ye>>>=4;var Xe=Ye<4?0:Ye-2>>1,st=fe[Ye];for(Xe>0&&(st+=Qe(J,ae,Xe),ae+=Xe),!pe&&Ee<lt&&(de=dt(de,lt+100),Ee=de.length);me<lt;)de[me]=de[me-st],++me}}}return pe?[de,ae+7>>>3]:[de.slice(0,me),ae+7>>>3]}function Ht(J,pe){var ae=J.slice(J.l||0),oe=Vn(ae,pe);return J.l+=oe[1],oe[0]}function Pe(J,pe){if(J)typeof console<"u"&&console.error(pe);else throw new Error(pe)}function ct(J,pe){var ae=J;Pi(ae,0);var oe=[],de=[],me={FileIndex:oe,FullPaths:de};T(me,{root:pe.root});for(var Ee=ae.length-4;(ae[Ee]!=80||ae[Ee+1]!=75||ae[Ee+2]!=5||ae[Ee+3]!=6)&&Ee>=0;)--Ee;ae.l=Ee+4,ae.l+=4;var Ie=ae.read_shift(2);ae.l+=6;var Ne=ae.read_shift(4);for(ae.l=Ne,Ee=0;Ee<Ie;++Ee){ae.l+=20;var Ce=ae.read_shift(4),ke=ae.read_shift(4),Ye=ae.read_shift(2),et=ae.read_shift(2),lt=ae.read_shift(2);ae.l+=8;var Xe=ae.read_shift(4),st=s(ae.slice(ae.l+Ye,ae.l+Ye+et));ae.l+=Ye+et+lt;var Ot=ae.l;ae.l=Xe+4,Wt(ae,Ce,ke,me,st),ae.l=Ot}return me}function Wt(J,pe,ae,oe,de){J.l+=2;var me=J.read_shift(2),Ee=J.read_shift(2),Ie=o(J);if(me&8257)throw new Error("Unsupported ZIP encryption");for(var Ne=J.read_shift(4),Ce=J.read_shift(4),ke=J.read_shift(4),Ye=J.read_shift(2),et=J.read_shift(2),lt="",Xe=0;Xe<Ye;++Xe)lt+=String.fromCharCode(J[J.l++]);if(et){var st=s(J.slice(J.l,J.l+et));(st[21589]||{}).mt&&(Ie=st[21589].mt),((de||{})[21589]||{}).mt&&(Ie=de[21589].mt)}J.l+=et;var Ot=J.slice(J.l,J.l+Ce);switch(Ee){case 8:Ot=I(J,ke);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ee)}var rr=!1;me&8&&(Ne=J.read_shift(4),Ne==134695760&&(Ne=J.read_shift(4),rr=!0),Ce=J.read_shift(4),ke=J.read_shift(4)),Ce!=pe&&Pe(rr,"Bad compressed size: "+pe+" != "+Ce),ke!=ae&&Pe(rr,"Bad uncompressed size: "+ae+" != "+ke),ai(oe,lt,Ot,{unsafe:!0,mt:Ie})}function Or(J,pe){var ae=pe||{},oe=[],de=[],me=Re(1),Ee=ae.compression?8:0,Ie=0,Ne=0,Ce=0,ke=0,Ye=0,et=J.FullPaths[0],lt=et,Xe=J.FileIndex[0],st=[],Ot=0;for(Ne=1;Ne<J.FullPaths.length;++Ne)if(lt=J.FullPaths[Ne].slice(et.length),Xe=J.FileIndex[Ne],!(!Xe.size||!Xe.content||lt=="Sh33tJ5")){var rr=ke,xr=Re(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]=cI.buf(Xe.content,0);var Zr=Xe.content;Ee==8&&(Zr=M(Zr)),me=Re(30),me.write_shift(4,67324752),me.write_shift(2,20),me.write_shift(2,Ie),me.write_shift(2,Ee),Xe.mt?a(me,Xe.mt):me.write_shift(4,0),me.write_shift(-4,st[Ye]),me.write_shift(4,Zr.length),me.write_shift(4,Xe.content.length),me.write_shift(2,xr.length),me.write_shift(2,0),ke+=me.length,oe.push(me),ke+=xr.length,oe.push(xr),ke+=Zr.length,oe.push(Zr),me=Re(46),me.write_shift(4,33639248),me.write_shift(2,0),me.write_shift(2,20),me.write_shift(2,Ie),me.write_shift(2,Ee),me.write_shift(4,0),me.write_shift(-4,st[Ye]),me.write_shift(4,Zr.length),me.write_shift(4,Xe.content.length),me.write_shift(2,xr.length),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(4,0),me.write_shift(4,rr),Ot+=me.l,de.push(me),Ot+=xr.length,de.push(xr),++Ye}return me=Re(22),me.write_shift(4,101010256),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,Ye),me.write_shift(2,Ye),me.write_shift(4,Ot),me.write_shift(4,ke),me.write_shift(2,0),Cn([Cn(oe),Cn(de),me])}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 ht(J,pe){if(J.ctype)return J.ctype;var ae=J.name||"",oe=ae.match(/\.([^\.]+)$/);return oe&&Nt[oe[1]]||pe&&(oe=(ae=pe).match(/[\.\\]([^\.\\])+$/),oe&&Nt[oe[1]])?Nt[oe[1]]:"application/octet-stream"}function Gt(J){for(var pe=pf(J),ae=[],oe=0;oe<pe.length;oe+=76)ae.push(pe.slice(oe,oe+76));return ae.join(`\r
254
+ `)+`\r
255
+ `}function Ha(J){var pe=J.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)});pe=pe.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),pe.charAt(0)==`
256
+ `&&(pe="=0D"+pe.slice(1)),pe=pe.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
257
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var ae=[],oe=pe.split(`\r
258
+ `),de=0;de<oe.length;++de){var me=oe[de];if(me.length==0){ae.push("");continue}for(var Ee=0;Ee<me.length;){var Ie=76,Ne=me.slice(Ee,Ee+Ie);Ne.charAt(Ie-1)=="="?Ie--:Ne.charAt(Ie-2)=="="?Ie-=2:Ne.charAt(Ie-3)=="="&&(Ie-=3),Ne=me.slice(Ee,Ee+Ie),Ee+=Ie,Ee<me.length&&(Ne+="="),ae.push(Ne)}}return ae.join(`\r
259
+ `)}function ln(J){for(var pe=[],ae=0;ae<J.length;++ae){for(var oe=J[ae];ae<=J.length&&oe.charAt(oe.length-1)=="=";)oe=oe.slice(0,oe.length-1)+J[++ae];pe.push(oe)}for(var de=0;de<pe.length;++de)pe[de]=pe[de].replace(/[=][0-9A-Fa-f]{2}/g,function(me){return String.fromCharCode(parseInt(me.slice(1),16))});return va(pe.join(`\r
260
+ `))}function Ii(J,pe,ae){for(var oe="",de="",me="",Ee,Ie=0;Ie<10;++Ie){var Ne=pe[Ie];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":me=Ce[2].trim();break;case"content-transfer-encoding":de=Ce[2].trim();break}}switch(++Ie,de.toLowerCase()){case"base64":Ee=va(yo(pe.slice(Ie).join("")));break;case"quoted-printable":Ee=ln(pe.slice(Ie));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+de)}var ke=ai(J,oe.slice(ae.length),Ee,{unsafe:!0});me&&(ke.ctype=me)}function Fi(J,pe){if(Z(J.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ae=pe&&pe.root||"",oe=(tr&&Buffer.isBuffer(J)?J.toString("binary"):Z(J)).split(`\r
261
+ `),de=0,me="";for(de=0;de<oe.length;++de)if(me=oe[de],!!/^Content-Location:/i.test(me)&&(me=me.slice(me.indexOf("file")),ae||(ae=me.slice(0,me.lastIndexOf("/")+1)),me.slice(0,ae.length)!=ae))for(;ae.length>0&&(ae=ae.slice(0,ae.length-1),ae=ae.slice(0,ae.lastIndexOf("/")+1),me.slice(0,ae.length)!=ae););var Ee=(oe[1]||"").match(/boundary="(.*?)"/);if(!Ee)throw new Error("MAD cannot find boundary");var Ie="--"+(Ee[1]||""),Ne=[],Ce=[],ke={FileIndex:Ne,FullPaths:Ce};T(ke);var Ye,et=0;for(de=0;de<oe.length;++de){var lt=oe[de];lt!==Ie&&lt!==Ie+"--"||(et++&&Ii(ke,oe.slice(Ye,de),ae),Ye=de)}return ke}function St(J,pe){var ae=pe||{},oe=ae.boundary||"SheetJS";oe="------="+oe;for(var de=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+oe.slice(2)+'"',"","",""],me=J.FullPaths[0],Ee=me,Ie=J.FileIndex[0],Ne=1;Ne<J.FullPaths.length;++Ne)if(Ee=J.FullPaths[Ne].slice(me.length),Ie=J.FileIndex[Ne],!(!Ie.size||!Ie.content||Ee=="Sh33tJ5")){Ee=Ee.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ot){return"_x"+Ot.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ot){return"_u"+Ot.charCodeAt(0).toString(16)+"_"});for(var Ce=Ie.content,ke=tr&&Buffer.isBuffer(Ce)?Ce.toString("binary"):Z(Ce),Ye=0,et=Math.min(1024,ke.length),lt=0,Xe=0;Xe<=et;++Xe)(lt=ke.charCodeAt(Xe))>=32&&lt<128&&++Ye;var st=Ye>=et*4/5;de.push(oe),de.push("Content-Location: "+(ae.root||"file:///C:/SheetJS/")+Ee),de.push("Content-Transfer-Encoding: "+(st?"quoted-printable":"base64")),de.push("Content-Type: "+ht(Ie,Ee)),de.push(""),de.push(st?Ha(ke):Gt(ke))}return de.push(oe+`--\r
262
+ `),de.join(`\r
263
+ `)}function xi(J){var pe={};return T(pe,J),pe}function ai(J,pe,ae,oe){var de=oe&&oe.unsafe;de||T(J);var me=!de&&br.find(J,pe);if(!me){var Ee=J.FullPaths[0];pe.slice(0,Ee.length)==Ee?Ee=pe:(Ee.slice(-1)!="/"&&(Ee+="/"),Ee=(Ee+pe).replace("//","/")),me={name:i(pe),type:2},J.FileIndex.push(me),J.FullPaths.push(Ee),de||br.utils.cfb_gc(J)}return me.content=ae,me.size=ae?ae.length:0,oe&&(oe.CLSID&&(me.clsid=oe.CLSID),oe.mt&&(me.mt=oe.mt),oe.ct&&(me.ct=oe.ct)),me}function Fn(J,pe){T(J);var ae=br.find(J,pe);if(ae){for(var oe=0;oe<J.FileIndex.length;++oe)if(J.FileIndex[oe]==ae)return J.FileIndex.splice(oe,1),J.FullPaths.splice(oe,1),!0}return!1}function Hr(J,pe,ae){T(J);var oe=br.find(J,pe);if(oe){for(var de=0;de<J.FileIndex.length;++de)if(J.FileIndex[de]==oe)return J.FileIndex[de].name=i(ae),J.FullPaths[de]=ae,!0}return!1}function Rr(J){L(J,!0)}return t.find=j,t.read=O,t.parse=u,t.write=ee,t.writeFile=te,t.utils={cfb_new:xi,cfb_add:ai,cfb_del:Fn,cfb_mov:Hr,cfb_gc:Rr,ReadShift:Qu,CheckField:EP,prep_blob:Pi,bconcat:Cn,use_zlib:P,_deflateRaw:Ft,_inflateRaw:Ht,consts:z},t})();function uI(e){return typeof e=="string"?cp(e):Array.isArray(e)?ML(e):e}function n0(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"?vf(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([uI(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=r0(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 jw(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 Q2(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 fI(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 Yh=new Date(1899,11,30,0,0,0);function pi(e,t){var r=e.getTime(),n=Yh.getTime()+(e.getTimezoneOffset()-Yh.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var uP=new Date,hI=Yh.getTime()+(uP.getTimezoneOffset()-Yh.getTimezoneOffset())*6e4,Cw=uP.getTimezoneOffset();function fP(e){var t=new Date;return t.setTime(e*24*60*60*1e3+hI),t.getTimezoneOffset()!==Cw&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Cw)*6e4),t}var kw=new Date("2017-02-19T19:06:09.000Z"),hP=isNaN(kw.getFullYear())?new Date("2/19/17"):kw,dI=hP.getFullYear()==2017;function ni(e,t){var r=new Date(e);if(dI)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(hP.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(tr&&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 pI=["january","february","march","april","may","june","july","august","september","october","november","december"];function mf(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&&pI.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 $t(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return tr?n=To(r):n=DL(r),br.utils.cfb_add(e,t,n)}br.utils.cfb_add(e,t,r)}else e.file(t,r)}function eb(){return br.utils.cfb_new()}var sn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
+ `,mI={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},tb=Q2(mI),rb=/[&<>'"]/g,vI=/[\u0000-\u0008\u000b-\u001f]/g;function vr(e){var t=e+"";return t.replace(rb,function(r){return tb[r]}).replace(vI,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Lw(e){return vr(e).replace(/ /g,"_x0020_")}var dP=/[\u0000-\u001f]/g;function gI(e){var t=e+"";return t.replace(rb,function(r){return tb[r]}).replace(/\n/g,"<br/>").replace(dP,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function xI(e){var t=e+"";return t.replace(rb,function(r){return tb[r]}).replace(dP,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function yI(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function bI(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 Iw(e){var t=Ys(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 Fw(e){return To(e,"binary").toString("utf8")}var xh="foo bar baz☃🍣",Zu=tr&&(Fw(xh)==z1(xh)&&Fw||Iw(xh)==z1(xh)&&Iw)||z1,vf=tr?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("")},wI=(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}})(),pP=/(^\s|\s$|\n)/;function kn(e,t){return"<"+e+(t.match(pP)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function gf(e){return In(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function tt(e,t,r){return"<"+e+(r!=null?gf(r):"")+(t!=null?(t.match(pP)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function yy(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function _I(e,t){switch(typeof e){case"string":var r=tt("vt:lpwstr",vr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return tt((e|0)==e?"vt:i4":"vt:r8",vr(String(e)));case"boolean":return tt("vt:bool",e?"true":"false")}if(e instanceof Date)return tt("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"},Uc=["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 SI(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 AI(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 Mw=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},Dw=tr?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)})):Mw(e)}:Mw,Rw=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Uu(e,i)));return n.join("").replace(Ju,"")},nb=tr?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Ju,""):Rw(e,t,r)}:Rw,Bw=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("")},mP=tr?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Bw(e,t,r)}:Bw,$w=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Yl(e,i)));return n.join("")},i0=tr?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):$w(t,r,n)}:$w,vP=function(e,t){var r=ji(e,t);return r>0?i0(e,t+4,t+4+r-1):""},gP=vP,xP=function(e,t){var r=ji(e,t);return r>0?i0(e,t+4,t+4+r-1):""},yP=xP,bP=function(e,t){var r=2*ji(e,t);return r>0?i0(e,t+4,t+4+r-1):""},wP=bP,_P=function(t,r){var n=ji(t,r);return n>0?nb(t,r+4,r+4+n):""},SP=_P,AP=function(e,t){var r=ji(e,t);return r>0?i0(e,t+4,t+4+r):""},TP=AP,NP=function(e,t){return SI(e,t)},Kh=NP,ib=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};tr&&(gP=function(t,r){if(!Buffer.isBuffer(t))return vP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},yP=function(t,r){if(!Buffer.isBuffer(t))return xP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},wP=function(t,r){if(!Buffer.isBuffer(t))return bP(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},SP=function(t,r){if(!Buffer.isBuffer(t))return _P(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},TP=function(t,r){if(!Buffer.isBuffer(t))return AP(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Kh=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):NP(t,r)},ib=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Yl=function(e,t){return e[t]},Uu=function(e,t){return e[t+1]*256+e[t]},TI=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]},NI=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Qu(e,t){var r="",n,i,a=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,tr&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Uu(this,c)),c+=2;e*=2;break;case"utf8":r=i0(this,this.l,this.l+e);break;case"utf16le":e*=2,r=nb(this,this.l,this.l+e);break;case"wstr":return Qu.call(this,e,"dbcs");case"lpstr-ansi":r=gP(this,this.l),e=4+ji(this,this.l);break;case"lpstr-cp":r=yP(this,this.l),e=4+ji(this,this.l);break;case"lpwstr":r=wP(this,this.l),e=4+2*ji(this,this.l);break;case"lpp4":e=4+ji(this,this.l),r=SP(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+ji(this,this.l),r=TP(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=Yl(this,this.l+e++))!==0;)a.push(mh(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=Uu(this,this.l+e))!==0;)a.push(mh(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=Yl(this,c),this.l=c+1,s=Qu.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(mh(Uu(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=Yl(this,c),this.l=c+1,s=Qu.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(mh(Yl(this,c))),c+=1}r=a.join("");break;default:switch(e){case 1:return n=Yl(this,this.l),this.l++,n;case 2:return n=(t==="i"?TI:Uu)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?Cs:NI)(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=Kh(this,this.l):i=Kh([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=mP(this,this.l,e);break}}return this.l+=e,r}var EI=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},PI=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},OI=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function jI(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)OI(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,EI(this,t,this.l);break;case 8:if(n=8,r==="f"){AI(this,t,this.l);break}case 16:break;case-4:n=4,PI(this,t,this.l);break}return this.l+=n,this}function EP(e,t){var r=mP(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=Qu,e.chk=EP,e.write_shift=jI}function Ba(e,t){e.l+=t}function Re(e){var t=Ys(e);return Pi(t,0),t}function di(){var e=[],t=tr?256:2048,r=function(c){var u=Re(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 He(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=S9[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&&ib(r)&&e.push(r)}}function ef(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 qw(e,t,r){var n=mi(e);return n.s=ef(n.s,t.s,r),n.e=ef(n.e,t.s,r),n}function tf(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=LI(r)),!e.rRel&&e.rRel!=null&&(r=CI(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):tf(e.s,t.biff)+":"+tf(e.e,t.biff)}function ab(e){return parseInt(kI(e),10)-1}function Ln(e){return""+(e+1)}function CI(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function kI(e){return e.replace(/\$(\d+)$/,"$1")}function ob(e){for(var t=II(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 LI(e){return e.replace(/^([A-Z])/,"$$$1")}function II(e){return e.replace(/^\$([A-Z])/,"$1")}function FI(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 Uw(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"?a0[e.v]||e.v:t==null?Uw(e,e.v):Uw(e,t))}function tl(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function PP(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 m=gr({c:p,r:g});a[m]&&a[m].z&&(h.z=a[m].z),a[m]=h}}}return c.s.c<1e7&&(a["!ref"]=an(c)),a}function zc(e,t){return PP(null,e,t)}function MI(e){return e.read_shift(4,"i")}function wa(e,t){return t||(t=Re(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=Re(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 DI(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function RI(e,t){return t||(t=Re(4)),t.write_shift(2,0),t.write_shift(2,0),t}function sb(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(DI(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function BI(e,t){var r=!1;return t==null&&(r=!0,t=Re(15+4*e.t.length)),t.write_shift(1,0),_n(e.t,t),r?t.slice(0,t.l):t}var $I=sb;function qI(e,t){var r=!1;return t==null&&(r=!0,t=Re(23+4*e.t.length)),t.write_shift(1,1),_n(e.t,t),t.write_shift(4,1),RI({},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 rl(e,t){return t==null&&(t=Re(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function nl(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function il(e,t){return t==null&&(t=Re(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var UI=Gn,OP=_n;function lb(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Xh(e,t){var r=!1;return t==null&&(r=!0,t=Re(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 zI=Gn,by=lb,cb=Xh;function jP(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?Kh([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Cs(t,0)>>2;return r?i/100:i}function CP(e,t){t==null&&(t=Re(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 kP(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 WI(e,t){return t||(t=Re(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 al=kP,Wc=WI;function Hc(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ks(e,t){return(t||Re(8)).write_shift(8,e,"f")}function HI(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=e7[i];c&&(t.rgb=Qw(c));break;case 2:t.rgb=Qw([o,s,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function Jh(e,t){if(t||(t=Re(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 GI(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 VI(e,t){t||(t=Re(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 LP=2,Ni=3,yh=11,Zh=19,bh=64,YI=65,KI=71,XI=4108,JI=4126,On=80,zw={1:{n:"CodePage",t:LP},2:{n:"Category",t:On},3:{n:"PresentationFormat",t:On},4:{n:"ByteCount",t:Ni},5:{n:"LineCount",t:Ni},6:{n:"ParagraphCount",t:Ni},7:{n:"SlideCount",t:Ni},8:{n:"NoteCount",t:Ni},9:{n:"HiddenCount",t:Ni},10:{n:"MultimediaClipCount",t:Ni},11:{n:"ScaleCrop",t:yh},12:{n:"HeadingPairs",t:XI},13:{n:"TitlesOfParts",t:JI},14:{n:"Manager",t:On},15:{n:"Company",t:On},16:{n:"LinksUpToDate",t:yh},17:{n:"CharacterCount",t:Ni},19:{n:"SharedDoc",t:yh},22:{n:"HyperlinksChanged",t:yh},23:{n:"AppVersion",t:Ni,p:"version"},24:{n:"DigSig",t:YI},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:Zh},2147483651:{n:"Behavior",t:Zh},1919054434:{}},Ww={1:{n:"CodePage",t:LP},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:bh},11:{n:"LastPrinted",t:bh},12:{n:"CreatedDate",t:bh},13:{n:"ModifiedDate",t:bh},14:{n:"PageCount",t:Ni},15:{n:"WordCount",t:Ni},16:{n:"CharCount",t:Ni},17:{n:"Thumbnail",t:KI},18:{n:"Application",t:On},19:{n:"DocSecurity",t:Ni},255:{},2147483648:{n:"Locale",t:Zh},2147483651:{n:"Behavior",t:Zh},1919054434:{}};function ZI(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var QI=ZI([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]),e7=mi(QI),a0={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},t7={"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"},wh={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 IP(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function FP(e,t){var r=fI(t7),n=[],i;n[n.length]=sn,n[n.length]=tt("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 tt("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]=tt("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:wh[l][t.bookType]||wh[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=tt("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:wh[l][t.bookType]||wh[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=tt("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 MP(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function nc(e){var t=[sn,tt("Relationships",null,{xmlns:bn.RELS})];return In(e["!id"]).forEach(function(r){t[t.length]=tt("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 r7(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 Hw(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 n7(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 i7(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(Hw(e[r][0],e[r][1])),t.push(n7("",e[r][0]));return t.push(Hw("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function DP(){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 '+zh.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?tt(e,t,r):kn(e,t))}function RP(e,t){var r=t||{},n=[sn,tt("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 ic=[["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"]],BP=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function $P(e){var t=[],r=tt;return e||(e={}),e.Application="SheetJS",t[t.length]=sn,t[t.length]=tt("Properties",null,{xmlns:bn.EXT_PROPS,"xmlns:vt":bn.vt}),ic.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 qP(e){var t=[sn,tt("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]=tt("property",_I(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 Gw={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 a7(e,t){var r=[];return In(Gw).map(function(n){for(var i=0;i<zs.length;++i)if(zs[i][1]==n)return zs[i];for(i=0;i<ic.length;++i)if(ic[i][1]==n)return ic[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(Gw[n[1]]||n[1],i))}}),tt("DocumentProperties",r.join(""),{xmlns:Oi.o})}function o7(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<ic.length;++o)if(a==ic[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(tt(Lw(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(tt(Lw(a),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Oi.o+'">'+i.join("")+"</"+n+">"}function s7(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=Re(8);return o.write_shift(4,n),o.write_shift(4,i),o}function Vw(e,t){var r=Re(4),n=Re(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Re(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=s7(t);break;case 31:case 80:for(n=Re(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 UP=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function l7(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 Yw(e,t,r){var n=Re(8),i=[],a=[],o=8,s=0,l=Re(8),c=Re(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=Re(8),c.write_shift(4,0),i.unshift(c);var u=[Re(4)];for(u[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Re(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]])&&!(UP.indexOf(e[s][0])>-1||BP.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=Vw(g.t,d)}else{var m=l7(d);m==-1&&(m=31,d=String(d)),l=Vw(m,d)}a.push(l),c=Re(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 Kw(e,t,r,n,i,a){var o=Re(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=Yw(e,r,n);if(s.push(l),i){var c=Yw(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(c)}return Cn(s)}function c7(e,t){t||(t=Re(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function u7(e,t){return e.read_shift(t)===1}function ei(e,t){return t||(t=Re(2)),t.write_shift(2,+!!e),t}function zP(e){return e.read_shift(2,"u")}function Vi(e,t){return t||(t=Re(2)),t.write_shift(2,e),t}function WP(e,t,r){return r||(r=Re(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function HP(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 f7(e){var t=e.t||"",r=Re(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Re(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return Cn(i)}function h7(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 d7(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):h7(e,n,r)}function p7(e,t,r){if(r.biff>5)return d7(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 GP(e,t,r){return r||(r=Re(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Xw(e,t){t||(t=Re(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 m7(e){var t=Re(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),Xw(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&&Xw(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 Xs(e,t,r,n){return n||(n=Re(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function v7(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 g7(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 VP(e,t){return t||(t=Re(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 ub(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=Re(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 x7(e,t){var r=!t||t.biff==8,n=Re(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 y7(e,t){var r=!t||t.biff>=8?2:1,n=Re(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 b7(e,t){var r=Re(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=f7(e[i]);var a=Cn([r].concat(n));return a.parts=[r.length].concat(n.map(function(o){return o.length})),a}function w7(){var e=Re(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 _7(e){var t=Re(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 S7(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=Re(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 A7(e,t,r,n){var i=Re(10);return Xs(e,t,n,i),i.write_shift(4,r),i}function T7(e,t,r,n,i){var a=!i||i.biff==8,o=Re(8+ +a+(1+a)*r.length);return Xs(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 N7(e,t,r,n){var i=r&&r.biff==5;n||(n=Re(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 E7(e,t){var r=t.biff==8||!t.biff?4:2,n=Re(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 Jw(e,t,r,n){var i=r&&r.biff==5;n||(n=Re(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 P7(e){var t=Re(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function O7(e,t,r,n,i,a){var o=Re(8);return Xs(e,t,n,o),WP(r,a,o),o}function j7(e,t,r,n){var i=Re(14);return Xs(e,t,n,i),Ks(r,i),i}function C7(e,t,r){if(r.biff<8)return k7(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(v7(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function k7(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=HP(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function L7(e){var t=Re(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)VP(e[r],t);return t}function I7(e){var t=Re(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,m7(e[1])])}function F7(e){var t=e[1].Tooltip,r=Re(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 M7(e){return e||(e=Re(4)),e.write_shift(2,1),e.write_shift(2,1),e}function D7(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 R7(e,t){var r=Re(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 B7(e){for(var t=Re(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function $7(e,t,r){var n=Re(15);return s0(n,e,t),n.write_shift(8,r,"f"),n}function q7(e,t,r){var n=Re(9);return s0(n,e,t),n.write_shift(2,r),n}var U7=(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=Q2({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=Ys(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,m=521;f==2&&(p=u.read_shift(2)),u.l+=3,f!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(m=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 w=[],S={},A=Math.min(u.length,f==2?521:m-10-(h?264:0)),O=g?32:11;u.l<A&&u[u.l]!=13;)switch(S={},S.name=Wh.utils.decode(b,u.slice(u.l,u.l+O)).replace(/[\u0000\r\n].*$/g,""),u.l+=O,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&&w.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=m-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=m;var T=0,k=0;for(c[0]=[],k=0;k!=w.length;++k)c[0][k]=w[k].name;for(;p-- >0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++T]=[],k=0,k=0;k!=w.length;++k){var L=u.slice(u.l,u.l+w[k].len);u.l+=w[k].len,Pi(L,0);var R=Wh.utils.decode(b,L);switch(w[k].type){case"C":R.trim().length&&(c[T][k]=R.replace(/\s+$/,""));break;case"D":R.length===8?c[T][k]=new Date(+R.slice(0,4),+R.slice(4,6)-1,+R.slice(6,8)):c[T][k]=R;break;case"F":c[T][k]=parseFloat(R.trim());break;case"+":case"I":c[T][k]=g?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(R.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:|"+R+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[T][k]="##MEMO##"+(g?parseInt(R.trim(),10):L.read_shift(4));break;case"N":R=R.replace(/\u0000/g,"").trim(),R&&R!="."&&(c[T][k]=+R||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&&w[k].len==8){c[T][k]=L.read_shift(8,"f");break}case"G":case"P":L.l+=w[k].len;break;case"0":if(w[k].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[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=w,c}function n(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=zc(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 tl(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&&df(+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,m=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(m=0;m<1024;++m)if(d.indexOf(d[p]+"_"+m)==-1){d[p]+="_"+m;break}}}}var w=Ir(s["!ref"]),S=[],A=[],O=[];for(p=0;p<=w.e.c-w.s.c;++p){var T="",k="",L=0,R=[];for(m=0;m<h.length;++m)h[m][p]!=null&&R.push(h[m][p]);if(R.length==0||d[p]==null){S[p]="?";continue}for(m=0;m<R.length;++m){switch(typeof R[m]){case"number":k="B";break;case"string":k="C";break;case"boolean":k="L";break;case"object":k=R[m]instanceof Date?"D":"C";break;default:k="C"}L=Math.max(L,String(R[m]).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",O[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[KE]||3)<<8),p=0,m=0;p<d.length;++p)if(d[p]!=null){var E=u.next(32),D=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E.write_shift(1,D,"sbcs"),E.write_shift(1,S[p]=="?"?"C":S[p],"sbcs"),E.write_shift(4,m),E.write_shift(1,A[p]||a[S[p]]||0),E.write_shift(1,O[p]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),m+=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 H=u.next(b);for(H.write_shift(1,0),m=0;m<d.length;++m)if(d[m]!=null)switch(S[m]){case"L":H.write_shift(1,h[p][m]==null?63:h[p][m]?84:70);break;case"B":H.write_shift(8,h[p][m]||0,"f");break;case"N":var B="0";for(typeof h[p][m]=="number"&&(B=h[p][m].toFixed(O[m]||0)),y=0;y<A[m]-B.length;++y)H.write_shift(1,32);H.write_shift(1,B,"sbcs");break;case"D":h[p][m]?(H.write_shift(4,("0000"+h[p][m].getFullYear()).slice(-4),"sbcs"),H.write_shift(2,("00"+(h[p][m].getMonth()+1)).slice(-2),"sbcs"),H.write_shift(2,("00"+h[p][m].getDate()).slice(-2),"sbcs")):H.write_shift(8,"00000000","sbcs");break;case"C":var z=String(h[p][m]!=null?h[p][m]:"").slice(0,A[m]);for(H.write_shift(1,z,"sbcs"),y=0;y<A[m]-z.length;++y)H.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}})(),z7=(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"?ww(g):g},n=function(d,h,g){var p=h.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return p==59?d:ww(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(tr&&Buffer.isBuffer(d)?d.toString("binary"):r0(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,m=-1,y=0,b=0,w=[],S=[],A=null,O={},T=[],k=[],L=[],R=0,j;for(+h.codepage>=0&&df(+h.codepage);y!==g.length;++y){R=0;var E=g[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),D=E.replace(/;;/g,"\0").split(";").map(function(q){return q.replace(/\u0000/g,";")}),U=D[0],H;if(E.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(E.slice(3).replace(/;;/g,";"));break;case"C":var B=!1,z=!1,te=!1,Z=!1,ee=-1,ce=-1;for(b=1;b<D.length;++b)switch(D[b].charAt(0)){case"A":break;case"X":m=parseInt(D[b].slice(1))-1,z=!0;break;case"Y":for(p=parseInt(D[b].slice(1))-1,z||(m=0),j=w.length;j<=p;++j)w[j]=[];break;case"K":H=D[b].slice(1),H.charAt(0)==='"'?H=H.slice(1,H.length-1):H==="TRUE"?H=!0:H==="FALSE"?H=!1:isNaN(ho(H))?isNaN(mf(H).getDate())||(H=ni(H)):(H=ho(H),A!==null&&sP(A)&&(H=fP(H))),B=!0;break;case"E":Z=!0;var P=qF(D[b].slice(1),{r:p,c:m});w[p][m]=[w[p][m],P];break;case"S":te=!0,w[p][m]=[w[p][m],"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 "+E)}if(B&&(w[p][m]&&w[p][m].length==2?w[p][m][0]=H:w[p][m]=H,A=null),te){if(Z)throw new Error("SYLK shared formula cannot have own formula");var I=ee>-1&&w[ee][ce];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");w[p][m][1]=UF(I[1],{r:p-ee,c:m-ce})}break;case"F":var M=0;for(b=1;b<D.length;++b)switch(D[b].charAt(0)){case"X":m=parseInt(D[b].slice(1))-1,++M;break;case"Y":for(p=parseInt(D[b].slice(1))-1,j=w.length;j<=p;++j)w[j]=[];break;case"M":R=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)R=parseInt(L[2],10),k[j-1]=R===0?{hidden:!0}:{wch:R},fb(k[j-1]);break;case"C":m=parseInt(D[b].slice(1))-1,k[m]||(k[m]={});break;case"R":p=parseInt(D[b].slice(1))-1,T[p]||(T[p]={}),R>0?(T[p].hpt=R,T[p].hpx=ZP(R)):R===0&&(T[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+E)}M<1&&(A=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+E)}}return T.length>0&&(O["!rows"]=T),k.length>0&&(O["!cols"]=k),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,O]}function o(d,h){var g=i(d,h),p=g[0],m=g[1],y=zc(p,h);return In(m).forEach(function(b){y[b]=m[b]}),y}function s(d,h){return tl(o(d,h),h)}function l(d,h,g,p){var m="C;Y"+(g+1)+";X"+(p+1)+";K";switch(d.t){case"n":m+=d.v||0,d.f&&!d.F&&(m+=";E"+db(d.f,{r:g,c:p}));break;case"b":m+=d.v?"TRUE":"FALSE";break;case"e":m+=d.w||d.v;break;case"d":m+='"'+(d.w||d.v)+'"';break;case"s":m+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function c(d,h){h.forEach(function(g,p){var m="F;W"+(p+1)+" "+(p+1)+" ";g.hidden?m+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=Qh(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=ed(g.wpx)),typeof g.wch=="number"&&(m+=Math.round(g.wch))),m.charAt(m.length-1)!=" "&&d.push(m)})}function u(d,h){h.forEach(function(g,p){var m="F;";g.hidden?m+="M0;":g.hpt?m+="M"+20*g.hpt+";":g.hpx&&(m+="M"+20*td(g.hpx)+";"),m.length>2&&d.push(m+"R"+(p+1))})}function f(d,h){var g=["ID;PWXL;N;E"],p=[],m=Ir(d["!ref"]),y,b=Array.isArray(d),w=`\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"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var S=m.s.r;S<=m.e.r;++S)for(var A=m.s.c;A<=m.e.c;++A){var O=gr({r:S,c:A});y=b?(d[S]||[])[A]:d[O],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,S,A))}return g.join(w)+w+p.join(w)+w+"E"+w}return{to_workbook:s,to_sheet:o,from_sheet:f}})(),W7=(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(tr&&Buffer.isBuffer(a)?a.toString("binary"):r0(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(mf(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 zc(e(a,o),o)}function n(a,o){return tl(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 m=f.w;!m&&f.v!=null&&(m=f.v),m==null?f.f&&!f.F?o(c,1,0,"="+f.f):o(c,1,0,""):o(c,0,m,"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}})(),YP=(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,m=0,y=[];m!==h.length;++m){var b=h[m].trim().split(":");if(b[0]==="cell"){var w=wn(b[1]);if(y.length<=w.r)for(g=y.length;g<=w.r;++g)y[g]||(y[g]=[]);switch(g=w.r,p=w.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 zc(r(f,d),d)}function i(f,d){return tl(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="",m=Li(f["!ref"]),y=Array.isArray(f),b=m.s.r;b<=m.e.r;++b)for(var w=m.s.c;w<=m.e.c;++w)if(p=gr({r:b,c:w}),g=y?(f[b]||[])[w]: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:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.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}})(),H7=(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(mf(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 m=10,y=0,b=0;b<=p;++b)y=g[b].indexOf(" "),y==-1?y=g[b].length:y++,m=Math.max(m,y);for(b=0;b<=p;++b){h[b]=[];var w=0;for(e(g[b].slice(0,m).trim(),h,b,w,d),w=1;w<=(g[b].length-m)/10+1;++w)e(g[b].slice(m+(w-1)*10,m+w*10).trim(),h,b,w,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,m){return p[0]-m[0]||n[p[1]]-n[m[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 m=0,y=0,b=0,w=0,S=0,A=h.charCodeAt(0),O=!1,T=0,k=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
288
+ `);var L=d.dateNF!=null?sI(d.dateNF):null;function R(){var j=u.slice(w,S),E={};if(j.charAt(0)=='"'&&j.charAt(j.length-1)=='"'&&(j=j.slice(1,-1).replace(/""/g,'"')),j.length===0)E.t="z";else if(d.raw)E.t="s",E.v=j;else if(j.trim().length===0)E.t="s",E.v=j;else if(j.charCodeAt(0)==61)j.charCodeAt(1)==34&&j.charCodeAt(j.length-1)==34?(E.t="s",E.v=j.slice(2,-1).replace(/""/g,'"')):zF(j)?(E.t="n",E.f=j.slice(1)):(E.t="s",E.v=j);else if(j=="TRUE")E.t="b",E.v=!0;else if(j=="FALSE")E.t="b",E.v=!1;else if(!isNaN(b=ho(j)))E.t="n",d.cellText!==!1&&(E.w=j),E.v=b;else if(!isNaN(mf(j).getDate())||L&&j.match(L)){E.z=d.dateNF||Wr[14];var D=0;L&&j.match(L)&&(j=lI(j,d.dateNF,j.match(L)||[]),D=1),d.cellDates?(E.t="d",E.v=ni(j,D)):(E.t="n",E.v=pi(ni(j,D))),d.cellText!==!1&&(E.w=ss(E.z,E.v instanceof Date?pi(E.v):E.v)),d.cellNF||delete E.z}else E.t="s",E.v=j;if(E.t=="z"||(d.dense?(g[m]||(g[m]=[]),g[m][y]=E):g[gr({c:y,r:m})]=E),w=S+1,k=u.charCodeAt(w),p.e.c<y&&(p.e.c=y),p.e.r<m&&(p.e.r=m),T==A)++y;else if(y=0,++m,d.sheetRows&&d.sheetRows<=m)return!0}e:for(;S<u.length;++S)switch(T=u.charCodeAt(S)){case 34:k===34&&(O=!O);break;case A:case 10:case 13:if(!O&&R())break e;break}return S-w>0&&R(),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):zc(t(u,f),f)}function s(u,f){var d="",h=f.type=="string"?[0,0,0,0]:nB(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 Wh<"u"||(d=tr&&Buffer.isBuffer(u)?u.toString("binary"):r0(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=Zu(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=Zu(d):f.type=="binary"&&typeof Wh<"u",d.slice(0,19)=="socialcalc:version:"?YP.to_sheet(f.type=="string"?d:Zu(d),f):o(d,f)}function l(u,f){return tl(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 m=[],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){m.push(" ");continue}for(var w=(h.w||(bo(h),h.w)||"").slice(0,10);w.length<10;)w+=" ";m.push(w+(y===0?" ":""))}f.push(m.join(""))}return f.join(`
289
+ `)}return{to_workbook:l,to_sheet:s,from_sheet:c}})(),Zw=(function(){function e(P,I,M){if(P){Pi(P,P.l||0);for(var q=M.Enum||ee;P.l<P.length;){var Y=P.read_shift(2),fe=q[Y]||q[65535],ne=P.read_shift(2),K=P.l+ne,he=fe.f&&fe.f(P,ne,M);if(P.l=K,I(he,fe,Y))return}}}function t(P,I){switch(I.type){case"base64":return r(va(yo(P)),I);case"binary":return r(va(P),I);case"buffer":case"array":return r(P,I)}throw"Unsupported type "+I.type}function r(P,I){if(!P)return P;var M=I||{},q=M.dense?[]:{},Y="Sheet1",fe="",ne=0,K={},he=[],be=[],se={s:{r:0,c:0},e:{r:0,c:0}},Le=M.sheetRows||0;if(P[2]==0&&(P[3]==8||P[3]==9)&&P.length>=16&&P[14]==5&&P[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(P[2]==2)M.Enum=ee,e(P,function(Me,Qe,Ue){switch(Ue){case 0:M.vers=Me,Me>=4096&&(M.qpro=!0);break;case 6:se=Me;break;case 204:Me&&(fe=Me);break;case 222:fe=Me;break;case 15:case 51:M.qpro||(Me[1].v=Me[1].v.slice(1));case 13:case 14:case 16:Ue==14&&(Me[2]&112)==112&&(Me[2]&15)>1&&(Me[2]&15)<15&&(Me[1].z=M.dateNF||Wr[14],M.cellDates&&(Me[1].t="d",Me[1].v=fP(Me[1].v))),M.qpro&&Me[3]>ne&&(q["!ref"]=an(se),K[Y]=q,he.push(Y),q=M.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ne=Me[3],Y=fe||"Sheet"+(ne+1),fe="");var Ke=M.dense?(q[Me[0].r]||[])[Me[0].c]:q[gr(Me[0])];if(Ke){Ke.t=Me[1].t,Ke.v=Me[1].v,Me[1].z!=null&&(Ke.z=Me[1].z),Me[1].f!=null&&(Ke.f=Me[1].f);break}M.dense?(q[Me[0].r]||(q[Me[0].r]=[]),q[Me[0].r][Me[0].c]=Me[1]):q[gr(Me[0])]=Me[1];break}},M);else if(P[2]==26||P[2]==14)M.Enum=ce,P[2]==14&&(M.qpro=!0,P.l=0),e(P,function(Me,Qe,Ue){switch(Ue){case 204:Y=Me;break;case 22:Me[1].v=Me[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Me[3]>ne&&(q["!ref"]=an(se),K[Y]=q,he.push(Y),q=M.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ne=Me[3],Y="Sheet"+(ne+1)),Le>0&&Me[0].r>=Le)break;M.dense?(q[Me[0].r]||(q[Me[0].r]=[]),q[Me[0].r][Me[0].c]=Me[1]):q[gr(Me[0])]=Me[1],se.e.c<Me[0].c&&(se.e.c=Me[0].c),se.e.r<Me[0].r&&(se.e.r=Me[0].r);break;case 27:Me[14e3]&&(be[Me[14e3][0]]=Me[14e3][1]);break;case 1537:be[Me[0]]=Me[1],Me[0]==ne&&(Y=Me[1]);break}},M);else throw new Error("Unrecognized LOTUS BOF "+P[2]);if(q["!ref"]=an(se),K[fe||Y]=q,he.push(fe||Y),!be.length)return{SheetNames:he,Sheets:K};for(var Se={},Ae=[],le=0;le<be.length;++le)K[he[le]]?(Ae.push(be[le]||he[le]),Se[be[le]]=K[be[le]]||K[he[le]]):(Ae.push(be[le]),Se[be[le]]={"!ref":"A1"});return{SheetNames:Ae,Sheets:Se}}function n(P,I){var M=I||{};if(+M.codepage>=0&&df(+M.codepage),M.type=="string")throw new Error("Cannot write WK1 to JS string");var q=di(),Y=Ir(P["!ref"]),fe=Array.isArray(P),ne=[];rt(q,0,a(1030)),rt(q,6,l(Y));for(var K=Math.min(Y.e.r,8191),he=Y.s.r;he<=K;++he)for(var be=Ln(he),se=Y.s.c;se<=Y.e.c;++se){he===Y.s.r&&(ne[se]=Hn(se));var Le=ne[se]+be,Se=fe?(P[he]||[])[se]:P[Le];if(!(!Se||Se.t=="z"))if(Se.t=="n")(Se.v|0)==Se.v&&Se.v>=-32768&&Se.v<=32767?rt(q,13,h(he,se,Se.v)):rt(q,14,p(he,se,Se.v));else{var Ae=bo(Se);rt(q,15,f(he,se,Ae.slice(0,239)))}}return rt(q,1),q.end()}function i(P,I){var M=I||{};if(+M.codepage>=0&&df(+M.codepage),M.type=="string")throw new Error("Cannot write WK3 to JS string");var q=di();rt(q,0,o(P));for(var Y=0,fe=0;Y<P.SheetNames.length;++Y)(P.Sheets[P.SheetNames[Y]]||{})["!ref"]&&rt(q,27,Z(P.SheetNames[Y],fe++));var ne=0;for(Y=0;Y<P.SheetNames.length;++Y){var K=P.Sheets[P.SheetNames[Y]];if(!(!K||!K["!ref"])){for(var he=Ir(K["!ref"]),be=Array.isArray(K),se=[],Le=Math.min(he.e.r,8191),Se=he.s.r;Se<=Le;++Se)for(var Ae=Ln(Se),le=he.s.c;le<=he.e.c;++le){Se===he.s.r&&(se[le]=Hn(le));var Me=se[le]+Ae,Qe=be?(K[Se]||[])[le]:K[Me];if(!(!Qe||Qe.t=="z"))if(Qe.t=="n")rt(q,23,R(Se,le,ne,Qe.v));else{var Ue=bo(Qe);rt(q,22,T(Se,le,ne,Ue.slice(0,239)))}}++ne}}return rt(q,1),q.end()}function a(P){var I=Re(2);return I.write_shift(2,P),I}function o(P){var I=Re(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<P.SheetNames.length;++fe){var ne=P.SheetNames[fe],K=P.Sheets[ne];if(!(!K||!K["!ref"])){++Y;var he=Li(K["!ref"]);M<he.e.r&&(M=he.e.r),q<he.e.c&&(q=he.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(P,I,M){var q={s:{c:0,r:0},e:{c:0,r:0}};return I==8&&M.qpro?(q.s.c=P.read_shift(1),P.l++,q.s.r=P.read_shift(2),q.e.c=P.read_shift(1),P.l++,q.e.r=P.read_shift(2),q):(q.s.c=P.read_shift(2),q.s.r=P.read_shift(2),I==12&&M.qpro&&(P.l+=2),q.e.c=P.read_shift(2),q.e.r=P.read_shift(2),I==12&&M.qpro&&(P.l+=2),q.s.c==65535&&(q.s.c=q.e.c=q.s.r=q.e.r=0),q)}function l(P){var I=Re(8);return I.write_shift(2,P.s.c),I.write_shift(2,P.s.r),I.write_shift(2,P.e.c),I.write_shift(2,P.e.r),I}function c(P,I,M){var q=[{c:0,r:0},{t:"n",v:0},0,0];return M.qpro&&M.vers!=20768?(q[0].c=P.read_shift(1),q[3]=P.read_shift(1),q[0].r=P.read_shift(2),P.l+=2):(q[2]=P.read_shift(1),q[0].c=P.read_shift(2),q[0].r=P.read_shift(2)),q}function u(P,I,M){var q=P.l+I,Y=c(P,I,M);if(Y[1].t="s",M.vers==20768){P.l++;var fe=P.read_shift(1);return Y[1].v=P.read_shift(fe,"utf8"),Y}return M.qpro&&P.l++,Y[1].v=P.read_shift(q-P.l,"cstr"),Y}function f(P,I,M){var q=Re(7+M.length);q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,P),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(P,I,M){var q=c(P,I,M);return q[1].v=P.read_shift(2,"i"),q}function h(P,I,M){var q=Re(7);return q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,P),q.write_shift(2,M,"i"),q}function g(P,I,M){var q=c(P,I,M);return q[1].v=P.read_shift(8,"f"),q}function p(P,I,M){var q=Re(13);return q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,P),q.write_shift(8,M,"f"),q}function m(P,I,M){var q=P.l+I,Y=c(P,I,M);if(Y[1].v=P.read_shift(8,"f"),M.qpro)P.l=q;else{var fe=P.read_shift(2);S(P.slice(P.l,P.l+fe),Y),P.l+=fe}return Y}function y(P,I,M){var q=I&32768;return I&=-32769,I=(q?P: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]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(P,I){Pi(P,0);for(var M=[],q=0,Y="",fe="",ne="",K="";P.l<P.length;){var he=P[P.l++];switch(he){case 0:M.push(P.read_shift(8,"f"));break;case 1:fe=y(I[0].c,P.read_shift(2),!0),Y=y(I[0].r,P.read_shift(2),!1),M.push(fe+Y);break;case 2:{var be=y(I[0].c,P.read_shift(2),!0),se=y(I[0].r,P.read_shift(2),!1);fe=y(I[0].c,P.read_shift(2),!0),Y=y(I[0].r,P.read_shift(2),!1),M.push(be+se+":"+fe+Y)}break;case 3:if(P.l<P.length){console.error("WK1 premature formula end");return}break;case 4:M.push("("+M.pop()+")");break;case 5:M.push(P.read_shift(2));break;case 6:{for(var Le="";he=P[P.l++];)Le+=String.fromCharCode(he);M.push('"'+Le.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:K=M.pop(),ne=M.pop(),M.push(["AND","OR"][he-20]+"("+ne+","+K+")");break;default:if(he<32&&w[he])K=M.pop(),ne=M.pop(),M.push(ne+w[he]+K);else if(b[he]){if(q=b[he][1],q==69&&(q=P[P.l++]),q>M.length){console.error("WK1 bad formula parse 0x"+he.toString(16)+":|"+M.join("|")+"|");return}var Se=M.slice(-q);M.length-=q,M.push(b[he][0]+"("+Se.join(",")+")")}else return he<=7?console.error("WK1 invalid opcode "+he.toString(16)):he<=24?console.error("WK1 unsupported op "+he.toString(16)):he<=30?console.error("WK1 invalid opcode "+he.toString(16)):he<=115?console.error("WK1 unsupported function opcode "+he.toString(16)):console.error("WK1 unrecognized opcode "+he.toString(16))}}M.length==1?I[1].f=""+M[0]:console.error("WK1 bad formula parse |"+M.join("|")+"|")}function A(P){var I=[{c:0,r:0},{t:"n",v:0},0];return I[0].r=P.read_shift(2),I[3]=P[P.l++],I[0].c=P[P.l++],I}function O(P,I){var M=A(P);return M[1].t="s",M[1].v=P.read_shift(I-4,"cstr"),M}function T(P,I,M,q){var Y=Re(6+q.length);Y.write_shift(2,P),Y.write_shift(1,M),Y.write_shift(1,I),Y.write_shift(1,39);for(var fe=0;fe<q.length;++fe){var ne=q.charCodeAt(fe);Y.write_shift(1,ne>=128?95:ne)}return Y.write_shift(1,0),Y}function k(P,I){var M=A(P);M[1].v=P.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(P,I){var M=A(P),q=P.read_shift(4),Y=P.read_shift(4),fe=P.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 ne=fe&32768;return fe=(fe&32767)-16446,M[1].v=(1-ne*2)*(Y*Math.pow(2,fe+32)+q*Math.pow(2,fe)),M}function R(P,I,M,q){var Y=Re(14);if(Y.write_shift(2,P),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,ne=0,K=0,he=0;return q<0&&(fe=1,q=-q),ne=Math.log2(q)|0,q/=Math.pow(2,ne-31),he=q>>>0,(he&2147483648)==0&&(q/=2,++ne,he=q>>>0),q-=he,he|=2147483648,he>>>=0,q*=Math.pow(2,32),K=q>>>0,Y.write_shift(4,K),Y.write_shift(4,he),ne+=16383+(fe?32768:0),Y.write_shift(2,ne),Y}function j(P,I){var M=L(P);return P.l+=I-14,M}function E(P,I){var M=A(P),q=P.read_shift(4);return M[1].v=q>>6,M}function D(P,I){var M=A(P),q=P.read_shift(8,"f");return M[1].v=q,M}function U(P,I){var M=D(P);return P.l+=I-10,M}function H(P,I){return P[P.l+I-1]==0?P.read_shift(I,"cstr"):""}function B(P,I){var M=P[P.l++];M>I-1&&(M=I-1);for(var q="";q.length<M;)q+=String.fromCharCode(P[P.l++]);return q}function z(P,I,M){if(!(!M.qpro||I<21)){var q=P.read_shift(1);P.l+=17,P.l+=1,P.l+=2;var Y=P.read_shift(I-21,"cstr");return[q,Y]}}function te(P,I){for(var M={},q=P.l+I;P.l<q;){var Y=P.read_shift(2);if(Y==14e3){for(M[Y]=[0,""],M[Y][0]=P.read_shift(2);P[P.l];)M[Y][1]+=String.fromCharCode(P[P.l]),P.l++;P.l++}}return M}function Z(P,I){var M=Re(5+P.length);M.write_shift(2,14e3),M.write_shift(2,I);for(var q=0;q<P.length;++q){var Y=P.charCodeAt(q);M[M.l++]=Y>127?95:Y}return M[M.l++]=0,M}var ee={0:{n:"BOF",f:zP},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:m},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:H},222:{n:"SHEETNAMELP",f:B},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:O},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:k},25:{n:"FORMULA19",f:j},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:te},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:E},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:H},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}})(),G7=/^\s|\s$|[\t\n\r]/;function KP(e,t){if(!t.bookSST)return"";var r=[sn];r[r.length]=tt("sst",null,{xmlns:Uc[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(G7)&&(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 V7(e){return[e.read_shift(4),e.read_shift(4)]}function Y7(e,t){return t||(t=Re(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var K7=BI;function X7(e){var t=di();He(t,159,Y7(e));for(var r=0;r<e.length;++r)He(t,19,K7(e[r]));return He(t,160),t.end()}function J7(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function XP(e){var t=0,r,n=J7(e),i=n.length+1,a,o,s,l,c;for(r=Ys(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 Z7=(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(tr&&Buffer.isBuffer(i)?i.toString("binary"):r0(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 m=u.slice(h,d.lastIndex-g[0].length);if(m[0]==" "&&(m=m.slice(1)),++p,m.length){var y={v:m,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 tl(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 Qw(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 Q7=6,po=Q7;function Qh(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 fb(e){e.width?(e.wpx=Qh(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=Qh(e.width),e.MDW=po),e.customWidth&&delete e.customWidth}var eF=96,JP=eF;function td(e){return e*96/JP}function ZP(e){return e*JP/96}function tF(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]=tt("numFmt",null,{numFmtId:n,formatCode:vr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=tt("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function rF(e){var t=[];return t[t.length]=tt("cellXfs",null),e.forEach(function(r){t[t.length]=tt("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=tt("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function QP(e,t){var r=[sn,tt("styleSheet",null,{xmlns:Uc[0],"xmlns:vt":bn.vt})],n;return e.SSF&&(n=tF(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=rF(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 nF(e,t){var r=e.read_shift(2),n=Gn(e);return[r,n]}function iF(e,t,r){r||(r=Re(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 aF(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=GI(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=HI(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Gn(e),n}function oF(e,t){t||(t=Re(153)),t.write_shift(2,e.sz*20),VI(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),Jh(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 sF=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],G1,lF=Ba;function e_(e,t){t||(t=Re(84)),G1||(G1=Q2(sF));var r=G1[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Jh({auto:1},t),Jh({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 cF(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 eO(e,t,r){r||(r=Re(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 ku(e,t){return t||(t=Re(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var uF=Ba;function fF(e,t){return t||(t=Re(51)),t.write_shift(1,0),ku(null,t),ku(null,t),ku(null,t),ku(null,t),ku(null,t),t.length>t.l?t.slice(0,t.l):t}function hF(e,t){return t||(t=Re(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Xh(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function dF(e,t,r){var n=Re(2052);return n.write_shift(4,e),Xh(t,n),Xh(r,n),n.length>n.l?n.slice(0,n.l):n}function pF(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&&(He(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&&He(e,44,iF(i,t[i]))}),He(e,616))}}function mF(e){var t=1;He(e,611,wa(t)),He(e,43,oF({sz:12,color:{theme:1},name:"Calibri",family:2})),He(e,612)}function vF(e){var t=2;He(e,603,wa(t)),He(e,45,e_({patternType:"none"})),He(e,45,e_({patternType:"gray125"})),He(e,604)}function gF(e){var t=1;He(e,613,wa(t)),He(e,46,fF()),He(e,614)}function xF(e){var t=1;He(e,626,wa(t)),He(e,47,eO({numFmtId:0},65535)),He(e,627)}function yF(e,t){He(e,617,wa(t.length)),t.forEach(function(r){He(e,47,eO(r,0))}),He(e,618)}function bF(e){var t=1;He(e,619,wa(t)),He(e,48,hF({xfId:0,name:"Normal"})),He(e,620)}function wF(e){var t=0;He(e,505,wa(t)),He(e,506)}function _F(e){var t=0;He(e,508,dF(t,"TableStyleMedium9","PivotStyleMedium4")),He(e,509)}function SF(e,t){var r=di();return He(r,278),pF(r,e.SSF),mF(r),vF(r),gF(r),xF(r),yF(r,t.cellXfs),bF(r),wF(r),_F(r),He(r,279),r.end()}function tO(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 AF(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Gn(e)}}function TF(e){var t=Re(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 NF(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function EF(e){var t=Re(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 PF(e,t){var r=Re(8+2*t.length);return r.write_shift(4,e),_n(t,r),r.slice(0,r.l)}function OF(e){return e.l+=4,e.read_shift(4)!=0}function jF(e,t){var r=Re(8);return r.write_shift(4,e),r.write_shift(4,1),r}function CF(){var e=di();return He(e,332),He(e,334,wa(1)),He(e,335,TF({name:"XLDAPR",version:12e4,flags:3496657072})),He(e,336),He(e,339,PF(1,"XLDAPR")),He(e,52),He(e,35,wa(514)),He(e,4096,wa(0)),He(e,4097,Vi(1)),He(e,36),He(e,53),He(e,340),He(e,337,jF(1)),He(e,51,EF([[1,0]])),He(e,338),He(e,333),e.end()}function rO(){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 kF(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 Xl=1024;function nO(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[tt("xml",null,{"xmlns:v":Oi.v,"xmlns:o":Oi.o,"xmlns:x":Oi.x,"xmlns:mv":Oi.mv}).replace(/\/>/,">"),tt("o:shapelayout",tt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),tt("v:shapetype",[tt("v:stroke",null,{joinstyle:"miter"}),tt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Xl<e*1e3;)Xl+=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"?tt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=tt("v:fill",l,s),u={on:"t",obscured:"t"};++Xl,i=i.concat(["<v:shape"+gf({id:"_x0000_s"+Xl,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,tt("v:shadow",null,u),tt("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 iO(e){var t=[sn,tt("comments",null,{xmlns:Uc[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 LF(e,t,r){var n=[sn,tt("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(tt("threadedComment",kn("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function IF(e){var t=[sn,tt("personList",null,{xmlns:bn.TCMNT,"xmlns:x":Uc[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(tt("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function FF(e){var t={};t.iauthor=e.read_shift(4);var r=al(e);return t.rfx=r.s,t.ref=gr(r.s),e.l+=16,t}function MF(e,t){return t==null&&(t=Re(36)),t.write_shift(4,e[1].iauthor),Wc(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 DF=Gn;function RF(e){return _n(e.slice(0,54))}function BF(e){var t=di(),r=[];return He(t,628),He(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),He(t,632,RF(i.a)))})}),He(t,631),He(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])};He(t,635,MF([a,i])),i.t&&i.t.length>0&&He(t,637,qI(i)),He(t,636),delete i.iauthor})}),He(t,634),He(t,629),t.end()}function $F(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 aO=["xlsb","xlsm","xlam","biff8","xla"],qF=(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)}})(),hb=/(^|[^._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,db=(function(){return function(t,r){return t.replace(hb,function(n,i,a,o,s,l){var c=ob(o)-(a?0:r.c),u=ab(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 UF(e,t){return e.replace(hb,function(r,n,i,a,o,s){return n+(i=="$"?i+a:Hn(ob(a)+t.c))+(o=="$"?o+s:Ln(ab(s)+t.r))})}function zF(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 oO(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return sO(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 sO(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 WF(e,t,r){if(r.biff<8)return sO(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 lO(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return HF(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 HF(e){var t=ls(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function GF(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 VF(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return YF(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 YF(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 KF(e,t,r){var n=(e[e.l++]&96)>>5,i=oO(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function XF(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=oO(e,a,r);return[n,i,o]}function JF(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 ZF(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 QF(e,t,r){var n=(e[e.l++]&96)>>5,i=WF(e,t-1,r);return[n,i]}function eM(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function t_(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function tM(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 rM(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 nM(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 iM(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function aM(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function cO(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function oM(e){return e.read_shift(2),cO(e)}function sM(e){return e.read_shift(2),cO(e)}function lM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=lO(e,0,r);return[n,i]}function cM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=VF(e,0,r);return[n,i]}function uM(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=lO(e,0,r);return[n,i,a]}function fM(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[fD[i],hO[i],n]}function hM(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)]:dM(e);return[i,(a[0]===0?hO:uD)[a[1]]]}function dM(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function pM(e,t,r){e.l+=r&&r.biff==2?3:4}function mM(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 vM(e){return e.l++,a0[e.read_shift(1)]}function gM(e){return e.l++,e.read_shift(2)}function xM(e){return e.l++,e.read_shift(1)!==0}function yM(e){return e.l++,Hc(e)}function bM(e,t,r){return e.l++,HP(e,t-1,r)}function wM(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]=u7(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=a0[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Hc(e);break;case 2:r[1]=p7(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function _M(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?al:g7)(e));return i}function SM(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]=wM(e,r.biff);return o}function AM(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 TM(e,t,r){if(r.biff==5)return NM(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function NM(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 EM(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 PM(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 OM(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 jM(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 CM=Ba,kM=Ba,LM=Ba;function o0(e,t,r){return e.l+=2,[GF(e)]}function pb(e){return e.l+=6,[]}var IM=o0,FM=pb,MM=pb,DM=o0;function uO(e){return e.l+=2,[zP(e),e.read_shift(2)&1]}var RM=o0,BM=uO,$M=pb,qM=o0,UM=o0,zM=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function WM(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=zM[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function HM(e){return e.l+=2,[e.read_shift(4)]}function GM(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function VM(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function YM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function KM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function XM(e){return e.l+=4,[0,0]}var r_={1:{n:"PtgExp",f:mM},2:{n:"PtgTbl",f:LM},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:bM},26:{n:"PtgSheet",f:GM},27:{n:"PtgEndSheet",f:VM},28:{n:"PtgErr",f:vM},29:{n:"PtgBool",f:xM},30:{n:"PtgInt",f:gM},31:{n:"PtgNum",f:yM},32:{n:"PtgArray",f:eM},33:{n:"PtgFunc",f:fM},34:{n:"PtgFuncVar",f:hM},35:{n:"PtgName",f:AM},36:{n:"PtgRef",f:lM},37:{n:"PtgArea",f:KF},38:{n:"PtgMemArea",f:EM},39:{n:"PtgMemErr",f:CM},40:{n:"PtgMemNoMem",f:kM},41:{n:"PtgMemFunc",f:PM},42:{n:"PtgRefErr",f:OM},43:{n:"PtgAreaErr",f:JF},44:{n:"PtgRefN",f:cM},45:{n:"PtgAreaN",f:QF},46:{n:"PtgMemAreaN",f:YM},47:{n:"PtgMemNoMemN",f:KM},57:{n:"PtgNameX",f:TM},58:{n:"PtgRef3d",f:uM},59:{n:"PtgArea3d",f:XF},60:{n:"PtgRefErr3d",f:jM},61:{n:"PtgAreaErr3d",f:ZF},255:{}},JM={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},ZM={1:{n:"PtgElfLel",f:uO},2:{n:"PtgElfRw",f:qM},3:{n:"PtgElfCol",f:IM},6:{n:"PtgElfRwV",f:UM},7:{n:"PtgElfColV",f:DM},10:{n:"PtgElfRadical",f:RM},11:{n:"PtgElfRadicalS",f:$M},13:{n:"PtgElfColS",f:FM},15:{n:"PtgElfColSV",f:MM},16:{n:"PtgElfRadicalLel",f:BM},25:{n:"PtgList",f:WM},29:{n:"PtgSxName",f:HM},255:{}},QM={0:{n:"PtgAttrNoop",f:XM},1:{n:"PtgAttrSemi",f:aM},2:{n:"PtgAttrIf",f:nM},4:{n:"PtgAttrChoose",f:tM},8:{n:"PtgAttrGoto",f:rM},16:{n:"PtgAttrSum",f:pM},32:{n:"PtgAttrBaxcel",f:t_},33:{n:"PtgAttrBaxcel",f:t_},64:{n:"PtgAttrSpace",f:oM},65:{n:"PtgAttrSpaceSemi",f:sM},128:{n:"PtgAttrIfError",f:iM},255:{}};function eD(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]=SM(e,0,n),a.push(r[o][1]);break;case"PtgMemArea":r[o][2]=_M(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 tD(e,t,r){for(var n=e.l+t,i,a,o=[];n!=e.l;)t=n-e.l,a=e[e.l],i=r_[a]||r_[JM[a]],(a===24||a===25)&&(i=(a===24?ZM:QM)[e[e.l+1]]),!i||!i.f?Ba(e,t):o.push([i.n,i.f(e,t,r)]);return o}function rD(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 nD={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function iD(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 fO(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 n_(e,t,r){var n=fO(e,t,r);return n=="#REF"?n:iD(n,r)}function uc(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,m="",y=0,b=e[0].length;y<b;++y){var w=e[0][y];switch(w[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:m=Ur(" ",e[0][p][1][1]);break;case 1:m=Ur("\r",e[0][p][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}c=c+m,p=-1}s.push(c+nD[w[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=ef(w[1][1],o,i),s.push(tf(u,a));break;case"PtgRefN":u=r?ef(w[1][1],r,i):w[1][1],s.push(tf(u,a));break;case"PtgRef3d":f=w[1][1],u=ef(w[1][2],o,i),g=n_(n,f,i),s.push(g+"!"+tf(u,a));break;case"PtgFunc":case"PtgFuncVar":var S=w[1][0],A=w[1][1];S||(S=0),S&=127;var O=S==0?[]:s.slice(-S);s.length-=S,A==="User"&&(A=O.shift()),s.push(A+"("+O.join(",")+")");break;case"PtgBool":s.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(w[1]);break;case"PtgNum":s.push(String(w[1]));break;case"PtgStr":s.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(w[1]);break;case"PtgAreaN":h=qw(w[1][1],r?{s:r}:o,i),s.push(W1(h,i));break;case"PtgArea":h=qw(w[1][1],o,i),s.push(W1(h,i));break;case"PtgArea3d":f=w[1][1],h=w[1][2],g=n_(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=w[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=w[1][1];d=w[1][2];var R;if(i.biff<=5)L<0&&(L=-L),n[L]&&(R=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 E=(fO(n,L,i)||"").split(";;");E[d-1]?j=E[d-1]:j+="SH33TJSERRX"}s.push(j);break}R||(R={Name:"SH33TJSERRY"}),s.push(R.Name);break;case"PtgParen":var D="(",U=")";if(p>=0){switch(m="",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:w[1][1],r:w[1][0]};var H={c:r.c,r:r.r};if(n.sharedf[gr(u)]){var B=n.sharedf[gr(u)];s.push(uc(B,o,H,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(uc(c[1],o,H,n,i)),z=!0;break}z||s.push(w[1])}break;case"PtgArray":s.push("{"+rD(w[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"+w[1].idx+"[#"+w[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(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var te=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&te.indexOf(e[0][y][0])==-1){w=e[0][p];var Z=!0;switch(w[1][0]){case 4:Z=!1;case 0:m=Ur(" ",w[1][1]);break;case 5:Z=!1;case 1:m=Ur("\r",w[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}s.push((Z?m:"")+s.pop()+(Z?"":m)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function aD(e){if(e==null){var t=Re(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 Ks(e);return Ks(0)}function oD(e,t,r,n,i){var a=Xs(t,r,i),o=aD(e.v),s=Re(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Re(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=tD(e,n,r),a=e.read_shift(4),o=a>0?eD(e,a,i,r):null;return[i,o]}var sD=pp,mp=pp,lD=pp,cD=pp,uD={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"},hO={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"},fD={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 hD(e){var t="of:="+e.replace(hb,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function dD(e){return e.replace(/\./,"!")}var rf=typeof Map<"u";function mb(e,t,r){var n=0,i=e.length;if(r){if(rf?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=rf?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&&(rf?(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 dO(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){lP(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 pD(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 mD(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 vD(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=vf(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||"")+tt("outlinePr",null,c)}!a&&!s||(i[i.length]=tt("sheetPr",s,o))}var gD=["objects","scenarios","selectLockedCells","selectUnlockedCells"],xD=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function yD(e){var t={sheet:1};return gD.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),xD.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=XP(e.password).toString(16).toUpperCase()),tt("sheetProtection",null,t)}function bD(e){return dO(e),tt("pageMargins",null,e)}function wD(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=tt("col",null,vp(i,n)));return r[r.length]="</cols>",r.join("")}function _D(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}),tt("autoFilter",null,{ref:i})}function SD(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),tt("sheetViews",tt("sheetView",null,i),{})}function AD(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=a0[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",""+mb(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=tt("f",vr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),tt("c",s,l)}function TD(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},m,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=AD(b,l,e,t))!=null&&a.push(s)}(a.length>0||h&&h[f])&&(p={r:c},h&&h[f]&&(m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=td(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level)),i[i.length]=tt("row",a.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=td(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level),i[i.length]=tt("row","",p));return i.join("")}function pO(e,t,r,n){var i=[sn,tt("worksheet",null,{xmlns:Uc[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=[];vD(l,r,e,t,i),i[i.length]=tt("dimension",null,{ref:c}),i[i.length]=SD(l,t,e,r),t.sheetFormat&&(i[i.length]=tt("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]=wD(l,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=TD(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]=yD(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=_D(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=mD(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]=tt("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=bD(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=kn("ignoredErrors",tt("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(g=mr(n,-1,"../drawings/drawing"+(e+1)+".xml",Jt.DRAW),i[i.length]=tt("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]=tt("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function ND(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 ED(e,t,r){var n=Re(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 PD(e,t,r,n){var i=ED(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&He(e,0,i)}var OD=al,jD=Wc;function CD(){}function kD(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=UI(e),r}function LD(e,t,r){r==null&&(r=Re(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 Jh({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),OP(e,r),r.slice(0,r.l)}function ID(e){var t=Zi(e);return[t]}function FD(e,t,r){return r==null&&(r=Re(8)),rl(t,r)}function MD(e){var t=nl(e);return[t]}function DD(e,t,r){return r==null&&(r=Re(4)),il(t,r)}function RD(e){var t=Zi(e),r=e.read_shift(1);return[t,r,"b"]}function BD(e,t,r){return r==null&&(r=Re(9)),rl(t,r),r.write_shift(1,e.v?1:0),r}function $D(e){var t=nl(e),r=e.read_shift(1);return[t,r,"b"]}function qD(e,t,r){return r==null&&(r=Re(5)),il(t,r),r.write_shift(1,e.v?1:0),r}function UD(e){var t=Zi(e),r=e.read_shift(1);return[t,r,"e"]}function zD(e,t,r){return r==null&&(r=Re(9)),rl(t,r),r.write_shift(1,e.v),r}function WD(e){var t=nl(e),r=e.read_shift(1);return[t,r,"e"]}function HD(e,t,r){return r==null&&(r=Re(8)),il(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function GD(e){var t=Zi(e),r=e.read_shift(4);return[t,r,"s"]}function VD(e,t,r){return r==null&&(r=Re(12)),rl(t,r),r.write_shift(4,t.v),r}function YD(e){var t=nl(e),r=e.read_shift(4);return[t,r,"s"]}function KD(e,t,r){return r==null&&(r=Re(8)),il(t,r),r.write_shift(4,t.v),r}function XD(e){var t=Zi(e),r=Hc(e);return[t,r,"n"]}function JD(e,t,r){return r==null&&(r=Re(16)),rl(t,r),Ks(e.v,r),r}function ZD(e){var t=nl(e),r=Hc(e);return[t,r,"n"]}function QD(e,t,r){return r==null&&(r=Re(12)),il(t,r),Ks(e.v,r),r}function eR(e){var t=Zi(e),r=jP(e);return[t,r,"n"]}function tR(e,t,r){return r==null&&(r=Re(12)),rl(t,r),CP(e.v,r),r}function rR(e){var t=nl(e),r=jP(e);return[t,r,"n"]}function nR(e,t,r){return r==null&&(r=Re(8)),il(t,r),CP(e.v,r),r}function iR(e){var t=Zi(e),r=sb(e);return[t,r,"is"]}function aR(e){var t=Zi(e),r=Gn(e);return[t,r,"str"]}function oR(e,t,r){return r==null&&(r=Re(12+4*e.v.length)),rl(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function sR(e){var t=nl(e),r=Gn(e);return[t,r,"str"]}function lR(e,t,r){return r==null&&(r=Re(8+4*e.v.length)),il(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function cR(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]=uc(s,null,i,r.supbooks,r)}else e.l=n;return o}function uR(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]=uc(s,null,i,r.supbooks,r)}else e.l=n;return o}function fR(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=Hc(e),o=[i,a,"n"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=uc(s,null,i,r.supbooks,r)}else e.l=n;return o}function hR(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]=uc(s,null,i,r.supbooks,r)}else e.l=n;return o}var dR=al,pR=Wc;function mR(e,t){return t==null&&(t=Re(4)),t.write_shift(4,e),t}function vR(e,t){var r=e.l+t,n=al(e),i=lb(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 gR(e,t){var r=Re(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Wc({s:wn(e[0]),e:wn(e[0])},r),cb("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 xR(){}function yR(e,t,r){var n=e.l+t,i=kP(e),a=e.read_shift(1),o=[i];if(o[2]=a,r.cellFormula){var s=sD(e,n-e.l,r);o[1]=s}else e.l=n;return o}function bR(e,t,r){var n=e.l+t,i=al(e),a=[i];if(r.cellFormula){var o=cD(e,n-e.l,r);a[1]=o,e.l=n}else e.l=n;return a}function wR(e,t,r){r==null&&(r=Re(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 mO=["left","right","top","bottom","header","footer"];function _R(e){var t={};return mO.forEach(function(r){t[r]=Hc(e)}),t}function SR(e,t){return t==null&&(t=Re(48)),dO(e),mO.forEach(function(r){Ks(e[r],t)}),t}function AR(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function TR(e,t,r){r==null&&(r=Re(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 NR(e){var t=Re(24);return t.write_shift(4,4),t.write_shift(4,1),Wc(e,t),t}function ER(e,t){return t==null&&(t=Re(66)),t.write_shift(2,e.password?XP(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 PR(){}function OR(){}function jR(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=mb(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?He(e,18,KD(t,l)):He(e,7,VD(t,l))):(l.t="str",o?He(e,17,lR(t,l)):He(e,6,oR(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?He(e,13,nR(t,l)):He(e,2,tR(t,l)):o?He(e,16,QD(t,l)):He(e,5,JD(t,l)),!0;case"b":return l.t="b",o?He(e,15,qD(t,l)):He(e,4,BD(t,l)),!0;case"e":return l.t="e",o?He(e,14,HD(t,l)):He(e,3,zD(t,l)),!0}return o?He(e,12,DD(t,l)):He(e,1,FD(t,l)),!0}function CR(e,t,r,n){var i=Ir(t["!ref"]||"A1"),a,o="",s=[];He(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),PD(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=jR(e,h,u,d,n,t,f)}}He(e,146)}function kR(e,t){!t||!t["!merges"]||(He(e,177,mR(t["!merges"].length)),t["!merges"].forEach(function(r){He(e,176,pR(r))}),He(e,178))}function LR(e,t){!t||!t["!cols"]||(He(e,390),t["!cols"].forEach(function(r,n){r&&He(e,60,wR(n,r))}),He(e,391))}function IR(e,t){!t||!t["!ref"]||(He(e,648),He(e,649,NR(Ir(t["!ref"]))),He(e,650))}function FR(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=mr(r,-1,n[1].Target.replace(/#.*$/,""),Jt.HLINK);He(e,494,gR(n,i))}}),delete t["!links"]}function MR(e,t,r,n){if(t["!comments"].length>0){var i=mr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Jt.VML);He(e,551,cb("rId"+i)),t["!legacy"]=i}}function DR(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}),He(e,161,Wc(Ir(a))),He(e,162)}}function RR(e,t,r){He(e,133),He(e,137,TR(t,r)),He(e,138),He(e,134)}function BR(e,t){t["!protect"]&&He(e,535,ER(t["!protect"]))}function $R(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"]=[],He(i,129),(r.vbaraw||o["!outline"])&&He(i,147,LD(s,o["!outline"])),He(i,148,jD(l)),RR(i,o,r.Workbook),LR(i,o),CR(i,o,e,t),BR(i,o),DR(i,o,r,e),kR(i,o),FR(i,o,n),o["!margins"]&&He(i,476,SR(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&IR(i,o),MR(i,o,e,n),He(i,130),i.end()}function qR(e,t){e.l+=10;var r=Gn(e);return{name:r}}var UR=[["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 zR(e){return!e.Workbook||!e.Workbook.WBProps?"false":bI(e.Workbook.WBProps.date1904)?"true":"false"}var WR="][*?/\\".split("");function vO(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return WR.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function HR(e,t,r){e.forEach(function(n,i){vO(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 GR(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||[];HR(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)pD(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function gO(e){var t=[sn];t[t.length]=tt("workbook",null,{xmlns:Uc[0],"xmlns:r":bn.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(UR.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]=tt("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]=tt("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]=tt("definedName",vr(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function VR(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 YR(e,t){return t||(t=Re(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),cb(e.strRelID,t),_n(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function KR(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 XR(e,t){t||(t=Re(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),OP(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function JR(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=zI(e),o=lD(e,0,r),s=lb(e);e.l=n;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function ZR(e,t){He(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]};He(e,156,YR(i))}He(e,144)}function QR(e,t){t||(t=Re(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return _n("SheetJS",t),_n(zh.version,t),_n(zh.version,t),_n("7262",t),t.length>t.l?t.slice(0,t.l):t}function e9(e,t){t||(t=Re(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 t9(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||(He(e,135),He(e,158,e9(i)),He(e,136))}}function r9(e,t){var r=di();return He(r,131),He(r,128,QR()),He(r,153,XR(e.Workbook&&e.Workbook.WBProps||null)),t9(r,e),ZR(r,e),He(r,132),r.end()}function n9(e,t,r){return(t.slice(-4)===".bin"?r9:gO)(e)}function i9(e,t,r,n,i){return(t.slice(-4)===".bin"?$R:pO)(e,r,n,i)}function a9(e,t,r){return(t.slice(-4)===".bin"?SF:QP)(e,r)}function o9(e,t,r){return(t.slice(-4)===".bin"?X7:KP)(e,r)}function s9(e,t,r){return(t.slice(-4)===".bin"?BF:iO)(e)}function l9(e){return(e.slice(-4)===".bin"?CF:rO)()}function c9(e,t){var r=[];return e.Props&&r.push(a7(e.Props,t)),e.Custprops&&r.push(o7(e.Props,e.Custprops)),r.join("")}function u9(){return""}function f9(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(tt("NumberFormat",null,{"ss:Format":vr(Wr[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};r.push(tt("Style",a.join(""),o))}),tt("Styles",r.join(""))}function xO(e){return tt("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+db(e.Ref,{r:0,c:0})})}function h9(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(xO(i)))}return tt("Names",r.join(""))}function d9(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(xO(s)))}return a.join("")}function p9(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(tt("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(tt("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(tt("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(tt("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?"":tt("WorksheetOptions",i.join(""),{xmlns:Oi.x})}function m9(e){return e.map(function(t){var r=yI(t.t||""),n=tt("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return tt("Comment",n,{"ss:Author":t.a})}).join("")}function v9(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(db(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=a0[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=xI(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+=m9(e.c)),tt("Cell",p,s)}function g9(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ZP(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function x9(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(m,y){fb(m);var b=!!m.width,w=vp(y,m),S={"ss:Index":y+1};b&&(S["ss:Width"]=Qh(w.width)),m.hidden&&(S["ss:Hidden"]="1"),s.push(tt("Column",null,S))});for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[g9(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(v9(p,g,e,t,r,n,h))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}function y9(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],o=a?d9(a,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=a?x9(a,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(p9(a,t,e,r)),n.join("")}function b9(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(c9(e,t)),r.push(u9()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(tt("Worksheet",y9(n,t,e),{"ss:Name":vr(e.SheetNames[n])}));return r[2]=f9(e,t),r[3]=h9(e),sn+tt("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 w9(e,t){var r=[],n=[],i=[],a=0,o,s=jw(zw,"n"),l=jw(Ww,"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)UP.indexOf(i[a][0])>-1||BP.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&br.utils.cfb_add(t,"/SummaryInformation",Kw(n,V1.SI,l,Ww)),(r.length||c.length)&&br.utils.cfb_add(t,"/DocumentSummaryInformation",Kw(r,V1.DSI,s,zw,c.length?c:null,V1.UDI))}function _9(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,yO(e,r)),r.biff==8&&(e.Props||e.Custprops)&&w9(e,n),r.biff==8&&e.vbaraw&&$F(n,br.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var S9={0:{f:ND},1:{f:ID},2:{f:eR},3:{f:UD},4:{f:RD},5:{f:XD},6:{f:aR},7:{f:GD},8:{f:hR},9:{f:fR},10:{f:cR},11:{f:uR},12:{f:MD},13:{f:rR},14:{f:WD},15:{f:$D},16:{f:ZD},17:{f:sR},18:{f:YD},19:{f:sb},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:JR},40:{},42:{},43:{f:aF},44:{f:nF},45:{f:lF},46:{f:uF},47:{f:cF},48:{},49:{f:MI},50:{},51:{f:NF},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:D7},62:{f:iR},63:{f:kF},64:{f:PR},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:AR},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:kD},148:{f:OD,p:16},151:{f:xR},152:{},153:{f:KR},154:{},155:{},156:{f:VR},157:{},158:{},159:{T:1,f:V7},160:{T:-1},161:{T:1,f:al},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:dR},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:AF},336:{T:-1},337:{f:OF,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:C7},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:yR},427:{f:bR},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:_R},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:CD},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:vR},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:DF},633:{T:1},634:{T:-1},635:{T:1,f:FF},636:{T:-1},637:{f:$I},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:qR},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:OR},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&&ib(r)&&e.push(r)}}function A9(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 s0(e,t,r){return e||(e=Re(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function T9(e,t,r,n){var i=Re(9);return s0(i,e,t),WP(r,n||"b",i),i}function N9(e,t,r){var n=Re(8+2*r.length);return s0(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 E9(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,q7(r,n,i)):rt(e,3,$7(r,n,i));return;case"b":case"e":rt(e,5,T9(r,n,t.v,t.t));return;case"s":case"str":rt(e,4,N9(r,n,(t.v||"").slice(0,255)));return}rt(e,1,s0(null,r,n))}function P9(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&&E9(e,f,c,u)}}}function O9(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,ub(e,16,r)),P9(n,e.Sheets[e.SheetNames[i]],i,r),rt(n,10),n.end()}function j9(e,t,r){rt(e,49,S7({sz:12,name:"Arial"},r))}function C9(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,N7(i,t[i],r))})}function k9(e,t){var r=Re(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=Re(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),VP(Ir(t["!ref"]||"A1"),r),r.write_shift(4,4),rt(e,2152,r)}function L9(e,t){for(var r=0;r<16;++r)rt(e,224,Jw({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){rt(e,224,Jw(n,0,t))})}function I9(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];rt(e,440,I7(n)),n[1].Tooltip&&rt(e,2048,F7(n))}delete t["!links"]}function F9(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&rt(e,125,R7(vp(i,n),i))})}}function M9(e,t,r,n,i){var a=16+us(i.cellXfs,t,i);if(t.v==null&&!t.bf){rt(e,513,Xs(r,n,a));return}if(t.bf)rt(e,6,oD(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,j7(r,n,o,a));break;case"b":case"e":rt(e,517,O7(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=mb(i.Strings,t.v,i.revStrings);rt(e,253,A7(r,n,s,a))}else rt(e,516,T7(r,n,(t.v||"").slice(0,255),a,i));break;default:rt(e,513,Xs(r,n,a))}}function D9(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,ub(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,Ks(.001)),rt(n,95,ei(!0)),rt(n,42,ei(!1)),rt(n,43,ei(!1)),rt(n,130,Vi(1)),rt(n,128,P7()),rt(n,131,ei(!1)),rt(n,132,ei(!1)),c&&F9(n,a["!cols"]),rt(n,512,E7(h,t)),c&&(a["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=Ln(p);for(var m=h.s.c;m<=h.e.c;++m){p===h.s.r&&(d[m]=Hn(m)),u=d[m]+f;var y=l?(a[p]||[])[m]:a[u];y&&(M9(n,y,p,m,t),c&&y.l&&a["!links"].push([u,y.l]))}}var b=s.CodeName||s.name||i;return c&&rt(n,574,_7((o.Views||[])[0])),c&&(a["!merges"]||[]).length&&rt(n,229,L7(a["!merges"])),c&&I9(n,a),rt(n,442,GP(b)),c&&k9(n,a),rt(n,10),n.end()}function R9(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,ub(e,5,r)),r.bookType=="xla"&&rt(n,135),rt(n,225,s?Vi(1200):null),rt(n,193,c7(2)),l&&rt(n,191),l&&rt(n,192),rt(n,226),rt(n,92,x7("SheetJS",r)),rt(n,66,Vi(s?1200:1252)),s&&rt(n,353,Vi(0)),s&&rt(n,448),rt(n,317,B7(e.SheetNames.length)),s&&e.vbaraw&&rt(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";rt(n,442,GP(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,w7()),rt(n,64,ei(!1)),rt(n,141,Vi(0)),rt(n,34,ei(zR(e)=="true")),rt(n,14,ei(!0)),s&&rt(n,439,ei(!1)),rt(n,218,Vi(0)),j9(n,e,r),C9(n,e.SSF,r),L9(n,r),s&&rt(n,352,ei(!1));var u=n.end(),f=di();s&&rt(f,140,M7()),s&&r.Strings&&A9(f,252,b7(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 m=u.length+g+d.length;for(p=0;p<e.SheetNames.length;++p){var y=a[p]||{};rt(h,133,y7({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),m+=t[p].length}var b=h.end();if(g!=b.length)throw new Error("BS8 "+g+" != "+b.length);var w=[];return u.length&&w.push(u),b.length&&w.push(b),d.length&&w.push(d),Cn(w)}function B9(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,vb(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]=D9(i,r,e);return n.unshift(R9(e,n,r)),Cn(n)}function yO(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 B9(e,t);case 4:case 3:case 2:return O9(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function $9(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||gI(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(tt("td",d,h))}}var g="<tr>";return g+a.join("")+"</tr>"}var q9='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',U9="</body></html>";function z9(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function bO(e,t){var r=t||{},n=r.header!=null?r.header:q9,i=r.footer!=null?r.footer:U9,a=[n],o=Li(e["!ref"]);r.dense=Array.isArray(e),a.push(z9(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)a.push($9(e,o,s,r));return a.push("</table>"+i),a.join("")}function wO(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,m=0,y=0,b=0,w=0;for(e["!cols"]||(e["!cols"]=[]);g<s.length&&p<l;++g){var S=s[g];if(i_(S)){if(n.display)continue;h[p]={hidden:!0}}var A=S.children;for(m=y=0;m<A.length;++m){var O=A[m];if(!(n.display&&i_(O))){var T=O.hasAttribute("data-v")?O.getAttribute("data-v"):O.hasAttribute("v")?O.getAttribute("v"):wI(O.innerHTML),k=O.getAttribute("data-z")||O.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)}w=+O.getAttribute("colspan")||1,((b=+O.getAttribute("rowspan")||1)>1||w>1)&&f.push({s:{r:p+i,c:y+a},e:{r:p+i+(b||1)-1,c:y+a+(w||1)-1}});var R={t:"s",v:T},j=O.getAttribute("data-t")||O.getAttribute("t")||"";T!=null&&(T.length==0?R.t=j||"z":n.raw||T.trim().length==0||j=="s"||(T==="TRUE"?R={t:"b",v:!0}:T==="FALSE"?R={t:"b",v:!1}:isNaN(ho(T))?isNaN(mf(T).getDate())||(R={t:"d",v:ni(T)},n.cellDates||(R={t:"n",v:pi(R.v)}),R.z=n.dateNF||Wr[14]):R={t:"n",v:ho(T)})),R.z===void 0&&k!=null&&(R.z=k);var E="",D=O.getElementsByTagName("A");if(D&&D.length)for(var U=0;U<D.length&&!(D[U].hasAttribute("href")&&(E=D[U].getAttribute("href"),E.charAt(0)!="#"));++U);E&&E.charAt(0)!="#"&&(R.l={Target:E}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][y+a]=R):e[gr({c:y+a,r:p+i})]=R,c.e.c<y+a&&(c.e.c=y+a),y+=w}}++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 _O(e,t){var r=t||{},n=r.dense?[]:{};return wO(n,e,t)}function W9(e,t){return tl(_O(e,t),t)}function i_(e){var t="",r=H9(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function H9(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var G9=(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 "+gf({"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}})(),a_=(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="",m=a["!rows"]||[];for(c=0;c<f.s.r;++c)p=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
316
+ `);for(;c<=f.e.r;++c){for(p=m[c]?' table:style-name="ro'+m[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={},w="";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(hD(A.f)),A.F&&A.F.slice(0,S.length)==S)){var O=Li(A.F);b["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,b["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1}if(!A){l.push(t);continue}switch(A.t){case"b":w=A.v?"TRUE":"FALSE",b["office:value-type"]="boolean",b["office:boolean-value"]=A.v?"true":"false";break;case"n":w=A.w||String(A.v||0),b["office:value-type"]="float",b["office:value"]=A.v||0;break;case"s":case"str":w=A.v==null?"":A.v,b["office:value-type"]="string";break;case"d":w=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(w);if(A.l&&A.l.Target){var k=A.l.Target;k=k.charAt(0)=="#"?"#"+dD(k.slice(1)):k,k.charAt(0)!="#"&&!k.match(/^\w+:/)&&(k="../"+k),T=tt("text:a",T,{"xlink:href":k.replace(/&/g,"&amp;")})}l.push(" "+tt("table:table-cell",tt("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;fb(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=gf({"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=gf({"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(DP().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 SO(e,t){if(t.bookType=="fods")return a_(e,t);var r=eb(),n="",i=[],a=[];return n="mimetype",$t(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",$t(r,n,a_(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",$t(r,n,G9(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",$t(r,n,sn+DP()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",$t(r,n,i7(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",$t(r,n,r7(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function rd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function V9(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):va(vf(e))}function Y9(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 K9(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 xf(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 ac(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=xf(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=xf(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 En(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=xf(e,n),a=hn(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:ac(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=hn(s.data),c=ac(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=ac(a[3][0].data)>>>0>0),r.push(o)}return r}function Dl(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:En(o.meta),type:2})});var a=En(n);t.push(pr(a.length)),t.push(a),i.forEach(function(o){return t.push(o)})}),cs(t)}function X9(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=xf(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(X9(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 Rl(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,K9(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 xf(t[1][0].data)}function J9(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)&&ac(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 m,y;switch(typeof t[p]){case"string":m=Y1({t:"s",v:t[p]},r),y=K1({t:"s",v:t[p]},r);break;case"number":m=Y1({t:"n",v:t[p]},r),y=K1({t:"n",v:t[p]},r);break;case"boolean":m=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(m),u+=m.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 Z9(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),ne=ca(fe);ne.forEach(function(K){l.push(K.id),s[K.id]={deps:[],location:q,type:ac(K.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(ne){Y.messages.some(function(K){return ac(K.meta[1][0].data)!=11006&&Y9(K.data,ne[1])})&&s[ne[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 m=Vo(hn(h.messages[0].data)[1][0].data);for(f=br.find(c,s[m].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);for(m=Vo(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[m].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);for(m=Vo(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[m].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(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),w=br.find(c,s[b].location),S=ca(ua(w.content));{for(var A=0;A<S.length&&S[A].id!=b;++A);if(S[A].id!=b)throw"Bad ColumnRowUIDMapArchive";var O=hn(S[A].messages[0].data);O[1]=[],O[2]=[],O[3]=[];for(var T=0;T<=n.e.c;++T){var k=[];k[1]=k[2]=[{type:0,data:pr(T+420690)}],O[1].push({type:2,data:En(k)}),O[2].push({type:0,data:pr(T)}),O[3].push({type:0,data:pr(T)})}O[4]=[],O[5]=[],O[6]=[];for(var L=0;L<=n.e.r;++L)k=[],k[1]=k[2]=[{type:0,data:pr(L+726270)}],O[4].push({type:2,data:En(k)}),O[5].push({type:0,data:pr(L)}),O[6].push({type:0,data:pr(L)});S[A].messages[0].data=En(O)}w.content=Rl(Dl(S)),w.size=w.content.length,delete y[46];var R=hn(y[4][0].data);{R[7][0].data=pr(n.e.r+1);var j=hn(R[1][0].data),E=Vo(j[2][0].data);w=br.find(c,s[E].location),S=ca(ua(w.content));{if(S[0].id!=E)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:En(U)}}S[0].messages[0].data=En(D)}w.content=Rl(Dl(S)),w.size=w.content.length;var H=Vo(R[2][0].data);w=br.find(c,s[H].location),S=ca(ua(w.content));{if(S[0].id!=H)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:En(U)};S[0].messages[0].data=En(D)}w.content=Rl(Dl(S)),w.size=w.content.length;var B=Vo(R[4][0].data);(function(){for(var I=br.find(c,s[B].location),M=ca(ua(I.content)),q,Y=0;Y<M.length;++Y){var fe=M[Y];fe.id==B&&(q=fe)}var ne=hn(q.messages[0].data);{ne[3]=[];var K=[];o.forEach(function(se,Le){K[1]=[{type:0,data:pr(Le)}],K[2]=[{type:0,data:pr(1)}],K[3]=[{type:2,data:V9(se)}],ne[3].push({type:2,data:En(K)})})}q.messages[0].data=En(ne);var he=Dl(M),be=Rl(he);I.content=be,I.size=I.content.length})();var z=hn(R[3][0].data);{var te=z[1][0];delete z[2];var Z=hn(te.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 ne=hn(q.messages[0].data);{delete ne[6],delete z[7];var K=new Uint8Array(ne[5][0].data);ne[5]=[];for(var he=0,be=0;be<=n.e.r;++be){var se=hn(K);he+=J9(se,a[be],o),se[1][0].data=pr(be),ne[5].push({data:En(se),type:2})}ne[1]=[{type:0,data:pr(n.e.c+1)}],ne[2]=[{type:0,data:pr(n.e.r+1)}],ne[3]=[{type:0,data:pr(he)}],ne[4]=[{type:0,data:pr(n.e.r+1)}]}q.messages[0].data=En(ne);var Le=Dl(M),Se=Rl(Le);I.content=Se,I.size=I.content.length})()}te.data=En(Z)}R[3][0].data=En(z)}y[4][0].data=En(R)}h.messages[0].data=En(y);var ce=Dl(d),P=Rl(ce);return f.content=P,f.size=f.content.length,c}function Q9(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 vb(e){Q9([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function eB(e,t){return t.bookType=="ods"?SO(e,t):t.bookType=="numbers"?Z9(e,t):t.bookType=="xlsb"?tB(e,t):rB(e,t)}function tB(e,t){Xl=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,rf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=aO.indexOf(t.bookType)>-1,i=IP();vb(t=t||{});var a=eb(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",$t(a,o,RP(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,$t(a,o,$P(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",$t(a,o,qP(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,$t(a,o,i9(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,$t(a,p,s9(h,p)),i.comments.push(p),mr(u,-1,"../comments"+s+"."+r,Jt.CMNT),g=!0),f["!legacy"]&&g&&$t(a,"xl/drawings/vmlDrawing"+s+".vml",nO(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&$t(a,MP(o),nc(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,$t(a,o,o9(t.Strings,o,t)),i.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Jt.SST)),o="xl/workbook."+r,$t(a,o,n9(e,o)),i.workbooks.push(o),mr(t.rels,1,o,Jt.WB),o="xl/theme/theme1.xml",$t(a,o,tO(e.Themes,t)),i.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Jt.THEME),o="xl/styles."+r,$t(a,o,a9(e,o,t)),i.styles.push(o),mr(t.wbrels,-1,"styles."+r,Jt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",$t(a,o,e.vbaraw),i.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Jt.VBA)),o="xl/metadata."+r,$t(a,o,l9(o)),i.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Jt.XLMETA),$t(a,"[Content_Types].xml",FP(i,t)),$t(a,"_rels/.rels",nc(t.rels)),$t(a,"xl/_rels/workbook."+r+".rels",nc(t.wbrels)),delete t.revssf,delete t.ssf,a}function rB(e,t){Xl=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,rf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=aO.indexOf(t.bookType)>-1,i=IP();vb(t=t||{});var a=eb(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",$t(a,o,RP(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,$t(a,o,$P(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",$t(a,o,qP(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,$t(a,o,pO(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,m="";if(g&&g.length>0){var y=!1;g.forEach(function(b){b[1].forEach(function(w){w.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+s+"."+r,$t(a,m,LF(g,u,t)),i.threadedcomments.push(m),mr(f,-1,"../threadedComments/threadedComment"+s+"."+r,Jt.TCMNT)),m="xl/comments"+s+"."+r,$t(a,m,iO(g)),i.comments.push(m),mr(f,-1,"../comments"+s+"."+r,Jt.CMNT),p=!0}d["!legacy"]&&p&&$t(a,"xl/drawings/vmlDrawing"+s+".vml",nO(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&$t(a,MP(o),nc(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,$t(a,o,KP(t.Strings,t)),i.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Jt.SST)),o="xl/workbook."+r,$t(a,o,gO(e)),i.workbooks.push(o),mr(t.rels,1,o,Jt.WB),o="xl/theme/theme1.xml",$t(a,o,tO(e.Themes,t)),i.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Jt.THEME),o="xl/styles."+r,$t(a,o,QP(e,t)),i.styles.push(o),mr(t.wbrels,-1,"styles."+r,Jt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",$t(a,o,e.vbaraw),i.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Jt.VBA)),o="xl/metadata."+r,$t(a,o,rO()),i.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Jt.XLMETA),u.length>1&&(o="xl/persons/person.xml",$t(a,o,IF(u)),i.people.push(o),mr(t.wbrels,-1,"persons/person.xml",Jt.PEOPLE)),$t(a,"[Content_Types].xml",FP(i,t)),$t(a,"_rels/.rels",nc(t.rels)),$t(a,"xl/_rels/workbook."+r+".rels",nc(t.wbrels)),delete t.revssf,delete t.ssf,a}function nB(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 AO(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return n0(t.file,br.write(e,{type:tr?"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 iB(e,t){var r=mi(t||{}),n=eB(e,r);return aB(n,r)}function aB(e,t){var r={},n=tr?"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"?AO(encrypt_agile(i,t.password),t):t.type==="file"?n0(t.file,i):t.type=="string"?Zu(i):i}function oB(e,t){var r=t||{},n=_9(e,r);return AO(n,r)}function La(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return pf(vf(n));case"binary":return vf(n);case"string":return e;case"file":return n0(t.file,n,"utf8");case"buffer":return tr?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 sB(e,t){switch(t.type){case"base64":return pf(e);case"binary":return e;case"string":return e;case"file":return n0(t.file,e,"binary");case"buffer":return tr?To(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function _h(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"?pf(r):t.type=="string"?Zu(r):r;case"file":return n0(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function TO(e,t){FL(),GR(e);var r=mi(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=TO(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(b9(e,r),r);case"slk":case"sylk":return La(z7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return La(bO(e.Sheets[e.SheetNames[i]],r),r);case"txt":return sB(EO(e.Sheets[e.SheetNames[i]],r),r);case"csv":return La(gb(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return La(W7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return _h(U7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return La(H7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return La(Z7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return La(YP.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return La(SO(e,r),r);case"wk1":return _h(Zw.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return _h(Zw.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),_h(yO(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),oB(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return iB(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function lB(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 NO(e,t,r){var n={};return n.type="file",n.file=t,lB(n),TO(e,n)}function cB(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,m=Array.isArray(e),y=l.s.r,b=0,w={};m&&!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=m?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=w[o]||0,!p)w[o]=1;else{do s=o+"_"+p++;while(w[s]);w[o]=p,w[s]=1}a[b]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(A[y]||{}).hidden){var O=cB(e,l,y,d,n,a,m,c);(O.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[g++]=O.row)}return h.length=g,h}var o_=/"/g;function uB(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(o_,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(o_,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function gb(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,m=i.s.r;m<=i.e.r;++m)(h[m]||{}).hidden||(u=uB(e,i,m,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 EO(e,t){t||(t={}),t.FS=" ",t.RS=`
347
+ `;var r=gb(e,t);return r}function fB(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 PO(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,m){In(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var b=p[y],w="z",S="",A=gr({c:s+h,r:o+m+i});c=yf(a,A),b&&typeof b=="object"&&!(b instanceof Date)?a[A]=b:(typeof b=="number"?w="n":typeof b=="boolean"?w="b":typeof b=="string"?w="s":b instanceof Date?(w="d",n.cellDates||(w="n",b=pi(b)),S=n.dateNF||Wr[14]):b===null&&n.nullError&&(w="e",b=0),c?(c.t=w,c.v=b,delete c.w,delete c.R,S&&(c.z=S)):a[A]=c={t:w,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 hB(e,t){return PO(null,e,t)}function yf(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"?yf(e,gr(t)):yf(e,gr({r:t,c:r||0}))}function dB(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 pB(){return{SheetNames:[],Sheets:{}}}function mB(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(vO(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 vB(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=dB(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 gB(e,t){return e.z=t,e}function OO(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function xB(e,t,r){return OO(e,"#"+t,r)}function yB(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function bB(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=yf(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 oc={encode_col:Hn,encode_row:Ln,encode_cell:gr,encode_range:an,decode_col:ob,decode_row:ab,split_cell:FI,decode_cell:wn,decode_range:Li,format_cell:bo,sheet_add_aoa:PP,sheet_add_json:PO,sheet_add_dom:wO,aoa_to_sheet:zc,json_to_sheet:hB,table_to_sheet:_O,table_to_book:W9,sheet_to_csv:gb,sheet_to_txt:EO,sheet_to_json:nd,sheet_to_html:bO,sheet_to_formulae:fB,sheet_to_row_object_array:nd,sheet_get_cell:yf,book_new:pB,book_append_sheet:mB,book_set_sheet_visibility:vB,cell_set_number_format:gB,cell_set_hyperlink:OO,cell_set_internal_link:xB,cell_add_comment:yB,sheet_set_array_formula:bB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function wB(e,t,r,n="Sheet1"){const i=[t,...r],a=oc.aoa_to_sheet(i),o=oc.book_new();oc.book_append_sheet(o,a,n),NO(o,`${e}.xlsx`)}function _B(e,t){const r=oc.book_new();t.forEach(({name:n,headers:i,rows:a})=>{const o=[i,...a],s=oc.aoa_to_sheet(o);oc.book_append_sheet(r,s,n)}),NO(r,`${e}.xlsx`)}function SB(e,t){const[r,n]=W.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=W.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 AB(e){W.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 TB(e,t={}){const r=`form-draft-${e}`,[n,i]=W.useState(()=>{try{return!!localStorage.getItem(r)}catch{return!1}}),a=W.useCallback(l=>{try{localStorage.setItem(r,JSON.stringify({data:l,savedAt:Date.now()})),i(!0)}catch{}},[r]),o=W.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=W.useCallback(()=>{try{localStorage.removeItem(r)}catch{}i(!1)},[r]);return{hasDraft:n,saveDraft:a,loadDraft:o,clearDraft:s}}const X1="recently-viewed",NB=8;function EB(){const[e,t]=W.useState(()=>{try{return JSON.parse(localStorage.getItem(X1))||[]}catch{return[]}}),r=W.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,NB);try{localStorage.setItem(X1,JSON.stringify(s))}catch{}return s})},[]),n=W.useCallback(()=>{t([]);try{localStorage.removeItem(X1)}catch{}},[]);return{items:e,addItem:r,clearAll:n}}function PB(e=[],{paramName:t="tab"}={}){const r=W.useMemo(()=>e.map(s=>s.id||OB(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]=W.useState(n),o=W.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 OB(e){return e.toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function jB(e,t=null){const[r,n]=W.useState(t);return{sortedData:W.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 jO=[20,50,100,1e3],_y="table-page-sizes";function CB(e,t){if(!e)return t;try{const n=JSON.parse(localStorage.getItem(_y)||"{}")[e];if(n&&jO.includes(n))return n}catch{}return t}function kB(e,t){if(e)try{const r=JSON.parse(localStorage.getItem(_y)||"{}");r[e]=t,localStorage.setItem(_y,JSON.stringify(r))}catch{}}function LB(e=20,t){const[r,n]=W.useState(0),[i,a]=W.useState(()=>CB(t,e)),o=W.useCallback(c=>{a(c),n(0),kB(t,c)},[t]),s=W.useCallback(()=>n(0),[]),l={page:r+1,page_size:i};return{page:r,pageSize:i,setPage:n,setPageSize:o,params:l,reset:s,pageSizeOptions:jO}}const s_=1440*60*1e3;function IB(e,{allClassesLabel:t="All Classes",allSectionsLabel:r="All Sections"}={}){const[n,i]=W.useState(""),[a,o]=W.useState(""),{data:s,isLoading:l}=H8.useQuery({queryKey:["class-sections-lookup"],queryFn:e,staleTime:s_,gcTime:s_,enabled:!!e}),c=(s==null?void 0:s.classes)||[],u=W.useMemo(()=>[{value:"",label:t},...c.map(g=>({value:g.name,label:g.display_name}))],[c,t]),f=l&&!!n,d=W.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}}function CO({value:e,id:t}){const r=typeof e=="string"?parseInt(e):e;if(isNaN(r))return e;const n=t||String(r),i=sessionStorage.getItem(`kpi_${n}`),[a,o]=W.useState(i?Number(i):0);return W.useEffect(()=>{if(r===0)return;const s=Number(sessionStorage.getItem(`kpi_${n}`)||0);if(s===r){o(r);return}let l=!1;const c=700,u=Date.now(),f=()=>{if(l)return;const d=Date.now()-u;if(d>=c){o(r),sessionStorage.setItem(`kpi_${n}`,r);return}const h=d/c;o(Math.round(s+(r-s)*h)),requestAnimationFrame(f)};return f(),()=>{l=!0}},[r,n]),a}const FB={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"},MB={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 Zt({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:gt("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",FB[t],MB[r],o),...s,children:[i?x.jsx($e.Loader2,{size:16,className:"animate-spin"}):n&&x.jsx(n,{size:16}),e]})}function DB({children:e,className:t,hover:r=!1,interactive:n=!1,...i}){return x.jsx("div",{className:gt("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 RB({children:e,className:t}){return x.jsx("div",{className:gt("pb-4 mb-4 border-b border-slate-200",t),children:e})}function BB({children:e,className:t}){return x.jsx("div",{className:gt(t),children:e})}function $B({children:e,className:t}){return x.jsx("h3",{className:gt("text-lg font-semibold text-slate-900",t),children:e})}const qB={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"},UB={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 Ws({children:e,variant:t,status:r,className:n}){const i=t||UB[r||e]||"neutral";return x.jsx("span",{className:gt("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",qB[i],n),children:e||r})}function xb({items:e,className:t}){return x.jsx("nav",{className:gt("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($e.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 kO({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:gt("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 LO({value:e,onChange:t,placeholder:r="Search...",className:n}){return x.jsx(kO,{icon:$e.Search,value:e,onChange:i=>t(i.target.value),placeholder:r,className:n})}function zB({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:gt("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($e.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 WB={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 l0({open:e,onClose:t,title:r,children:n,footer:i,size:a="md",persistent:o=!0}){const s=W.useRef(null),l=W.useRef(null),c=W.useCallback(f=>{var d,h,g;if(f.key==="Escape"&&(f.stopPropagation(),o||t()),f.key==="Enter"&&(f.ctrlKey||f.metaKey)&&i&&s.current){const m=((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(!m&&!y){const b=s.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),w=b.length>0?b[b.length-1]:null;w&&!w.disabled&&(f.preventDefault(),w.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 m=p[0],y=p[p.length-1];f.shiftKey&&document.activeElement===m?(f.preventDefault(),y.focus()):!f.shiftKey&&document.activeElement===y&&(f.preventDefault(),m.focus())}},[t,i]),u=W.useRef(!1);return W.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]),W.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:gt("relative bg-white rounded-xl shadow-2xl w-full max-h-[90vh] flex flex-col animate-fade-in-up",WB[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($e.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]=W.useState(!1),[d,h]=W.useState(""),[g,p]=W.useState({top:0,left:0,width:0}),m=W.useRef(null),y=W.useRef(null),b=c===!0||c!==!1&&r.length>5,w=r.find(L=>L[o]===e),S=W.useCallback(()=>{if(m.current){const L=m.current.getBoundingClientRect(),R=window.innerHeight-L.bottom,j=260,E=R<j&&L.top>j;p({top:E?L.top-j-4:L.bottom+4,left:L.left,width:L.width,above:E})}},[]);W.useEffect(()=>{const L=R=>{m.current&&!m.current.contains(R.target)&&!R.target.closest("[data-select-portal]")&&f(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]),W.useEffect(()=>{if(u)return S(),window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S)}},[u,S]);const A=L=>{h(L),n&&(clearTimeout(y.current),y.current=setTimeout(()=>n(L),300))},O=L=>{t(L[o]),f(!1),h("")},T=L=>{L.stopPropagation(),t(""),h("")},k=d&&!n?r.filter(L=>(L[a]||"").toLowerCase().includes(d.toLowerCase())):r;return x.jsxs("div",{ref:m,className:"relative",children:[x.jsxs("div",{role:"combobox","aria-expanded":u,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>f(!u),onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),f(!u)),L.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:w?"text-slate-800":"text-slate-400",children:w?s?s(w):w[a]:i}),x.jsxs("div",{className:"flex items-center gap-1",children:[e&&x.jsx("button",{onClick:T,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:x.jsx($e.X,{size:12,className:"text-slate-400"})}),x.jsx($e.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${u?"rotate-180":""}`})]})]}),u&&G8.createPortal(x.jsxs("div",{"data-select-portal":!0,className:"fixed z-[99999] bg-white border border-slate-200 rounded-xl shadow-lg max-h-[260px] overflow-hidden animate-fade-in-up",style:{top:g.top,left:g.left,width:g.width,animationDuration:"0.1s"},children:[b&&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($e.Search,{size:14,className:"text-slate-400"}),x.jsx("input",{autoFocus:!0,value:d,onChange:L=>A(L.target.value),onKeyDown:L=>{L.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-[200px]",role:"listbox",children:[l&&x.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&k.length===0&&x.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),k.map(L=>x.jsx("div",{role:"option","aria-selected":L[o]===e,onClick:()=>O(L),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${L[o]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"} ${L.disabled?"opacity-50 pointer-events-none":""}`,children:s?s(L):L[a]},L[o]))]})]}),document.body)]})}function HB({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:m,headerCount:y,headerExtra:b,sortConfig:w,onSort:S,onRowClick:A,rowClassName:O,className:T}){const k=c&&o>1,L=d&&d.length>0||h,R=m||g||b;return x.jsxs("div",{className:gt("bg-white border border-slate-200 rounded-xl transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",T),children:[R&&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:m&&x.jsxs("h3",{className:"text-base font-semibold text-slate-900",children:[m,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($e.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($e.Filter,{size:14}),x.jsx("span",{className:"text-xs font-semibold",children:"Filters"})]}),d&&d.map(j=>{var E;return x.jsx("div",{className:"min-w-[170px]",children:x.jsx(oo,{value:j.value,onChange:j.onChange,options:j.options,placeholder:j.placeholder||((E=j.options[0])==null?void 0:E.label)||"Select...",loading:j.loading})},j.key)})]}),h&&x.jsx("div",{className:"w-full",children:x.jsx(LO,{value:h.value,onChange:h.onChange,placeholder:h.placeholder||"Search..."})})]})}),k&&x.jsx("div",{className:"border-b border-slate-100",children:x.jsx(GB,{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:gt("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:gt("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&&(w==null?void 0:w.key)===j.key&&(w.direction==="asc"?x.jsx($e.ChevronUp,{size:12,className:"text-slate-700"}):x.jsx($e.ChevronDown,{size:12,className:"text-slate-700"}))]})},j.key))})}),x.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((j,E)=>x.jsx("tr",{className:gt("hover:bg-primary-50/40 transition-colors duration-150",A&&"cursor-pointer",O&&O(j)),onClick:A?()=>A(j):void 0,children:e.map(D=>x.jsx("td",{className:gt("py-2.5 px-4",D.align==="center"&&"text-center",D.align==="right"&&"text-right"),children:D.render?D.render(j,E):j[D.key]??""},D.key))},j.id||E))})]})]})]})}function GB({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:gt("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($e.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($e.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function VB({items:e,brand:t,user:r,collapsed:n,onToggle:i,onLogout:a,onSettings:o}){const s=ns.useLocation(),[l,c]=W.useState(!1);e.findIndex(m=>s.pathname.startsWith(m.path)),W.useEffect(()=>{const m=s.pathname,y=e.find(b=>m.startsWith(b.path));if(y)try{const b=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),w=[y.path,...b.filter(S=>S!==y.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(w))}catch{}},[s.pathname,e]);const[u,f]=W.useState(!1);W.useEffect(()=>{const m=setTimeout(()=>f(!0),50);return()=>clearTimeout(m)},[]);const d=e.some(m=>m.group),h=d?e.reduce((m,y)=>{const b=y.group||"Other";return m[b]||(m[b]=[]),m[b].push(y),m},{}):null,g=(m,y)=>{const b=m.icon;return x.jsxs(ns.NavLink,{to:m.path,style:{animationDelay:`${y*50}ms`,animationFillMode:"forwards"},className:({isActive:w})=>gt("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",w?"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:gt("flex-shrink-0 transition-all duration-200",s.pathname.startsWith(m.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),x.jsx("span",{className:gt("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:m.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:m.label})]},m.path)},p=()=>{if(d&&h){let m=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(w=>{const S=m;return m++,g(w,S)})]},y))}return e.map((m,y)=>g(m,y))};return x.jsxs(x.Fragment,{children:[x.jsxs("aside",{className:gt("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:gt("block transition-transform duration-200",n&&"rotate-180"),children:n?x.jsx($e.PanelLeft,{size:18}):x.jsx($e.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:gt("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:gt("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($e.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:m=>m.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($e.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(YB,{items:e,onLogout:a})]})}function YB({items:e,onLogout:t}){const[r,n]=W.useState(!1),[i,a]=W.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})=>gt("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($e.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($e.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})=>gt("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($e.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($e.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 KB({title:e,subtitle:t,school:r,user:n,notificationCount:i=0,onNotificationClick:a,onLogout:o,onProfile:s,onSettings:l,onChangePassword:c,navItems:u=[],extraActions:f}){const[d,h]=W.useState(!1),g=W.useRef(null),p=ns.useNavigate(),m=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return W.useEffect(()=>{const y=b=>{g.current&&!g.current.contains(b.target)&&h(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]),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($e.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"})]}),f,x.jsxs("button",{onClick:a,className:"relative p-2 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors duration-150",children:[x.jsx($e.Bell,{size:20,className:"text-slate-600 dark:text-slate-300"}),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:g,className:"relative",children:[x.jsxs("button",{onClick:()=>h(!d),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($e.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${d?"rotate-180":""}`})]}),d&&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:()=>{h(!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($e.User,{size:16,className:"text-slate-400"}),"My Profile"]}),l&&x.jsxs("button",{onClick:()=>{h(!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($e.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),c&&x.jsxs("button",{onClick:()=>{h(!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($e.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),m.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($e.Clock,{size:10})," Recents"]}),m.map(y=>{const b=u.find(S=>S.path===y);if(!b)return null;const w=b.icon;return x.jsxs("button",{onClick:()=>{h(!1),p(y)},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:[w&&x.jsx(w,{size:14,className:"text-slate-400"}),b.label]},y)})]})]}),o&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"border-t border-slate-100 my-1"}),x.jsxs("button",{onClick:()=>{h(!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($e.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function Zn({className:e}){return x.jsx("div",{className:gt("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function XB(){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 IO(){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 JB({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 ZB({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 QB({activities:e=[],className:t}){return e.length===0?null:x.jsx("div",{className:gt("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:gt("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",r.bgColor||"bg-info-100"),children:r.icon||x.jsx($e.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 FO=W.createContext(null),e$={success:$e.CheckCircle,error:$e.AlertCircle,warning:$e.AlertTriangle,info:$e.Info},t$={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"},r$={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function n$({id:e,type:t="info",message:r,onRemove:n}){const i=e$[t]||$e.Info,[a,o]=W.useState(!1),[s,l]=W.useState(100);W.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 ${r$[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 ${t$[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($e.X,{size:14,className:"text-slate-400"})})]})}function i$({id:e,message:t,onConfirm:r,onUndo:n,timeout:i=5e3,onRemove:a}){const[o,s]=W.useState(i),[l,c]=W.useState(!1),u=W.useRef(!1);W.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 a$({children:e}){const[t,r]=W.useState([]),[n,i]=W.useState([]),a=W.useCallback((u,f="info")=>{const d=Date.now()+Math.random();r(h=>[...h,{id:d,message:u,type:f}])},[]),o=W.useCallback(u=>{r(f=>f.filter(d=>d.id!==u))},[]),s=W.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=W.useCallback(u=>{i(f=>f.filter(d=>d.id!==u))},[]),c=W.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(FO.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(n$,{...u,onRemove:o},u.id)),n.map(u=>x.jsx(i$,{...u,onRemove:l},u.id))]})]})}function o$(){const e=W.useContext(FO);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function Sy({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(l0,{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($e.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(Zt,{variant:"ghost",onClick:t,children:"Cancel"}),x.jsx(Zt,{variant:"primary",onClick:r,disabled:o,className:"!bg-red-600 hover:!bg-red-700",children:o?"Deleting...":a})]})]})}function s$({tabs:e,active:t,onChange:r,className:n}){return x.jsx("div",{className:gt("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:gt("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:gt("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 l$({checked:e,onChange:t,label:r,description:n,disabled:i,className:a}){return x.jsxs("label",{className:gt("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:gt("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($e.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 MO({children:e,className:t}){return x.jsxs("div",{className:gt("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($e.Filter,{size:15}),x.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}MO.Item=function({children:t,className:r}){return x.jsx("div",{className:gt("min-w-[160px]",r),children:t})};const c$=["January","February","March","April","May","June","July","August","September","October","November","December"],u$=["Su","Mo","Tu","We","Th","Fr","Sa"];function Bl(e){if(!e)return null;const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function l_(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 f$(e){if(!e)return"";const[t,r,n]=e.split("-");return`${n}/${r}/${t}`}function h$(e,t){return new Date(e,t+1,0).getDate()}function d$(e,t){return new Date(e,t,1).getDay()}function DO({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s,error:l}){const[c,u]=W.useState(!1),[f,d]=W.useState(()=>(Bl(e)||new Date).getFullYear()),[h,g]=W.useState(()=>(Bl(e)||new Date).getMonth()),[p,m]=W.useState(!1),y=W.useRef(null),b=W.useRef(null);W.useEffect(()=>{if(e){const z=Bl(e);z&&(d(z.getFullYear()),g(z.getMonth()))}},[e]),W.useEffect(()=>{function z(te){y.current&&!y.current.contains(te.target)&&(u(!1),m(!1))}return c&&document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[c]),W.useEffect(()=>{if(p&&b.current){const z=b.current.querySelector('[data-active="true"]');z&&z.scrollIntoView({block:"center"})}},[p]);const w=Bl(e),S=new Date;S.setHours(0,0,0,0);const A=Bl(i),O=Bl(a),T=z=>!!(A&&z<A||O&&z>O),k=h$(f,h),L=d$(f,h),R=()=>{h===0?(g(11),d(f-1)):g(h-1)},j=()=>{h===11?(g(0),d(f+1)):g(h+1)},E=z=>{const te=new Date(f,h,z);T(te)||(t(l_(te)),u(!1),m(!1))},D=()=>{T(S)||(t(l_(S)),d(S.getFullYear()),g(S.getMonth()),u(!1),m(!1))},U=()=>{t(""),u(!1),m(!1)},H=new Date().getFullYear(),B=Array.from({length:80},(z,te)=>H-60+te);return x.jsxs("div",{className:gt("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:gt("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($e.Calendar,{size:15,className:"text-primary-500"})}),x.jsx("span",{className:gt("flex-1 truncate",e?"text-slate-800 font-medium":"text-slate-400"),children:e?f$(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:R,className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-600 transition-colors",children:x.jsx($e.ChevronLeft,{size:16})}),x.jsxs("button",{type:"button",onClick:()=>m(!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:[c$[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($e.ChevronRight,{size:16})})]}),p?x.jsx("div",{ref:b,className:"h-[220px] overflow-y-auto grid grid-cols-4 gap-1 px-1",children:B.map(z=>x.jsx("button",{type:"button","data-active":z===f,onClick:()=>{d(z),m(!1)},className:gt("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===H&&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:u$.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,te)=>x.jsx("div",{},`empty-${te}`)),Array.from({length:k},(z,te)=>{const Z=te+1,ee=new Date(f,h,Z),ce=w&&ee.getTime()===w.getTime(),P=ee.getTime()===S.getTime(),I=T(ee);return x.jsx("button",{type:"button",disabled:I,onClick:()=>E(Z),className:gt("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":P?"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 p$({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s,error:l}){return x.jsx(DO,{value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s,error:l})}const c_=["January","February","March","April","May","June","July","August","September","October","November","December"],m$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],v$=["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 $l(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 Sh(e){if(!e)return"";const t=Is(e);return t?`${t.getDate()} ${m$[t.getMonth()]} ${t.getFullYear()}`:""}function g$(e,t){return new Date(e,t+1,0).getDate()}function x$(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 y$(e,t,r){return!e||!t||!r?!1:e>t&&e<r}function u_({year:e,month:t,startDate:r,endDate:n,hoverDate:i,onSelect:a,onHover:o,min:s,max:l}){const c=g$(e,t),u=x$(e,t),f=Is(s),d=Is(l),h=m=>!!(f&&m<f||d&&m>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:v$.map(m=>x.jsx("div",{className:"text-center text-[10px] font-semibold text-slate-400 uppercase py-1",children:m},m))}),x.jsxs("div",{className:"grid grid-cols-7 gap-y-0.5",children:[Array.from({length:u},(m,y)=>x.jsx("div",{},`e-${y}`)),Array.from({length:c},(m,y)=>{const b=y+1,w=new Date(e,t,b),S=J1(w,r),A=J1(w,n),O=r&&p&&y$(w,r,p),T=J1(w,g),k=h(w);let L="text-slate-700",R="";return S||A?R="bg-gradient-to-br from-orange-400 to-rose-500 text-white font-bold shadow-sm shadow-orange-200":O?R="bg-orange-50 text-orange-800":T&&(R="ring-1 ring-orange-300 text-orange-700 font-semibold"),x.jsx("button",{type:"button",disabled:k,onClick:()=>!k&&a(w),onMouseEnter:()=>o(w),className:gt("w-9 h-9 flex items-center justify-center text-sm rounded-lg transition-all duration-100 mx-auto",R||L,!k&&!S&&!A&&!O&&"hover:bg-orange-100 hover:text-orange-700",k&&"opacity-30 cursor-not-allowed",S&&"rounded-r-none",A&&"rounded-l-none",O&&"rounded-none"),children:b},b)})]})]})}function b$({startValue:e,endValue:t,onChange:r,label:n,placeholder:i,min:a,max:o,className:s,disabled:l,error:c}){const[u,f]=W.useState(!1),[d,h]=W.useState("start"),[g,p]=W.useState(null),[m,y]=W.useState(null),[b,w]=W.useState(null),[S,A]=W.useState(()=>{const H=Is(e)||new Date;return{year:H.getFullYear(),month:H.getMonth()}}),O=W.useRef(null),T=S.month===11?{year:S.year+1,month:0}:{year:S.year,month:S.month+1};W.useEffect(()=>{if(e){const H=Is(e);H&&A({year:H.getFullYear(),month:H.getMonth()})}},[e]),W.useEffect(()=>{p(Is(e)),y(Is(t))},[e,t]),W.useEffect(()=>{function H(B){O.current&&!O.current.contains(B.target)&&f(!1)}return u&&document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[u]);const k=H=>{d==="start"||H<g?(p(H),y(null),h("end")):(y(H),h("start"),r($l(g),$l(H)),f(!1))},L=()=>{S.month===0?A({year:S.year-1,month:11}):A({year:S.year,month:S.month-1})},R=()=>{S.month===11?A({year:S.year+1,month:0}):A({year:S.year,month:S.month+1})},j=[{label:"Today",fn:()=>{const H=new Date;return H.setHours(0,0,0,0),[H,H]}},{label:"This Week",fn:()=>{const H=new Date;H.setHours(0,0,0,0);const B=new Date(H);B.setDate(H.getDate()-H.getDay());const z=new Date(B);return z.setDate(B.getDate()+6),[B,z]}},{label:"This Month",fn:()=>{const H=new Date;return[new Date(H.getFullYear(),H.getMonth(),1),new Date(H.getFullYear(),H.getMonth()+1,0)]}},{label:"Last 7 Days",fn:()=>{const H=new Date;H.setHours(0,0,0,0);const B=new Date(H);return B.setDate(H.getDate()-6),[B,H]}},{label:"Last 30 Days",fn:()=>{const H=new Date;H.setHours(0,0,0,0);const B=new Date(H);return B.setDate(H.getDate()-29),[B,H]}}],E=H=>{const[B,z]=H();p(B),y(z),r($l(B),$l(z)),f(!1),h("start")},D=()=>{p(null),y(null),r("",""),f(!1),h("start")},U=e&&t;return x.jsxs("div",{className:gt("relative",s),ref:O,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:gt("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($e.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:gt("truncate",e?"text-slate-800 font-medium":"text-slate-400"),children:e?Sh(e):"Start date"}),x.jsx($e.ArrowRight,{size:12,className:"text-slate-300 flex-shrink-0"}),x.jsx("span",{className:gt("truncate",t?"text-slate-800 font-medium":"text-slate-400"),children:t?Sh(t):"End date"})]}),U&&!l&&x.jsx("span",{onClick:H=>{H.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(H=>x.jsx("button",{type:"button",onClick:()=>E(H.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:H.label},H.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($e.ChevronLeft,{size:14})}),x.jsxs("span",{className:"text-sm font-semibold text-slate-800",children:[c_[S.month]," ",S.year]}),x.jsx("div",{className:"w-7"})]}),x.jsx(u_,{year:S.year,month:S.month,startDate:g,endDate:m,hoverDate:d==="end"?b:null,onSelect:k,onHover:w,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:[c_[T.month]," ",T.year]}),x.jsx("button",{type:"button",onClick:R,className:"w-7 h-7 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-500 transition-colors",children:x.jsx($e.ChevronRight,{size:14})})]}),x.jsx(u_,{year:T.year,month:T.month,startDate:g,endDate:m,hoverDate:d==="end"?b:null,onSelect:k,onHover:w,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:gt("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?Sh($l(g)):"Start"}),x.jsx($e.ArrowRight,{size:12,className:"text-slate-300"}),x.jsx("span",{className:gt("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:m?Sh($l(m)):"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 w$({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($e.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:gt("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 _$ extends W.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 S$(){const[e,t]=W.useState(navigator.onLine),[r,n]=W.useState(!1);return W.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($e.Wifi,{size:16,className:"mr-2"})," Back online"]}):x.jsxs(x.Fragment,{children:[x.jsx($e.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function A$({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:gt("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($e.ChevronsUpDown,{size:12}),o==="asc"&&x.jsx($e.ChevronUp,{size:12,className:"text-primary-500"}),o==="desc"&&x.jsx($e.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function T$({children:e,content:t,className:r}){const[n,i]=W.useState(!1),[a,o]=W.useState({top:0,left:0}),s=W.useRef(null),l=W.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:gt("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 f_={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 N$({type:e="noData",title:t,message:r,action:n,className:i}){return x.jsxs("div",{className:gt("flex flex-col items-center justify-center py-12 text-center",i),children:[f_[e]||f_.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 E$({title:e,children:t,className:r}){return x.jsxs("div",{className:gt("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 P$({tokenExpiresAt:e,onLogout:t,onRefresh:r,warningMinutes:n=5}){const[i,a]=W.useState(!1),[o,s]=W.useState(0),[l,c]=W.useState(!1),u=W.useRef(null);W.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($e.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 O$=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Ah(e){if(!e)return"";const[t,r]=e.split(":"),n=parseInt(t);return`${n>12?n-12:n}:${r} ${n>=12?"PM":"AM"}`}function j$({periods:e=[],timetable:t={},days:r=O$,editable:n=!1,onSlotClick:i,onSlotDelete:a,onEmptyClick:o,onDrop:s}){e.filter(p=>!p.is_break);const l=[...e].sort((p,m)=>(p.start_time||"").localeCompare(m.start_time||"")),c=new Date,u=`${String(c.getHours()).padStart(2,"0")}:${String(c.getMinutes()).padStart(2,"0")}`,f=c.toLocaleDateString("en-US",{weekday:"long"}),d=l.findIndex(p=>!p.is_break&&p.start_time<=u&&p.end_time>u),h=r.includes(f),g=(p,m)=>{const y=t[m];return y&&y[p]||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(p=>{const m=new Date().toLocaleDateString("en-US",{weekday:"long"})===p;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 ${m?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:x.jsx("p",{className:`text-sm font-semibold ${m?"text-white":"text-slate-800"}`,children:p})})},p)}),l.map((p,m)=>{const y=l.filter((w,S)=>S<m&&!w.is_break).length;if(p.is_break)return 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:["☕ ",p.name||"Break"]}),x.jsxs("span",{className:"text-sm text-red-400",children:["(",Ah(p.start_time)," – ",Ah(p.end_time),")"]})]},p.id||`break-${m}`);const b=h&&m===d;return x.jsxs(W.Fragment,{children:[x.jsxs("div",{className:`p-4 border-b border-slate-100 flex items-center gap-3 relative ${b?"bg-red-50/60":"bg-slate-50/50"}`,children:[b&&x.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-red-500 rounded-r"}),x.jsx("span",{className:`w-8 h-8 rounded-lg flex items-center justify-center text-xs font-bold flex-shrink-0 ${b?"bg-red-100 text-red-700":"bg-primary-100 text-primary-700"}`,children:y+1}),x.jsxs("div",{children:[x.jsx("p",{className:`text-sm font-bold ${b?"text-red-900":"text-slate-900"}`,children:p.name||`Period ${y+1}`}),x.jsxs("p",{className:`text-xs font-medium ${b?"text-red-600":"text-slate-600"}`,children:[Ah(p.start_time)," – ",Ah(p.end_time)]}),b&&x.jsx("p",{className:"text-[9px] font-semibold text-red-500 mt-0.5 animate-pulse",children:"● NOW"})]})]}),r.map(w=>{const S=g(y,w),A=b&&w===f;return x.jsx("div",{className:`p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px] ${b?"bg-red-50/30":""} ${A?"ring-2 ring-inset ring-red-300 bg-red-50/50":""}`,children:S?x.jsxs("div",{className:`relative w-full p-3 rounded-lg group transition-all duration-200 ${S.slot_type&&S.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(y,w,S),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:O=>{O.stopPropagation(),i&&i(y,w,S)},className:"p-1 rounded hover:bg-blue-200 transition-colors",children:x.jsx($e.Pencil,{className:"w-3.5 h-3.5 text-blue-600"})}),x.jsx("button",{onClick:O=>{O.stopPropagation(),a&&a(y,w,S)},className:"p-1 rounded hover:bg-red-100 transition-colors",children:x.jsx($e.Trash2,{className:"w-3.5 h-3.5 text-red-500"})})]}),x.jsx("p",{className:"text-sm font-bold text-slate-900",children:S.subject||""}),x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:S.teacher_name||S.teacher||""}),(S.slot_type||S.type)&&(S.slot_type||S.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:S.slot_type||S.type})]}):n?x.jsx("div",{onClick:()=>o&&o(y,w),onDragOver:O=>{O.preventDefault(),O.currentTarget.classList.add("border-primary-400","bg-primary-50")},onDragLeave:O=>{O.currentTarget.classList.remove("border-primary-400","bg-primary-50")},onDrop:O=>{if(O.preventDefault(),O.currentTarget.classList.remove("border-primary-400","bg-primary-50"),s)try{const T=JSON.parse(O.dataTransfer.getData("application/json"));s(y,w,T)}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:"—"})})},`${p.id||m}-${w}`)})]},p.id||`period-${m}`)})]})})}function C$({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($e.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($e.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function k$({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]=W.useState(""),[h,g]=W.useState(""),[p,m]=W.useState(!1),[y,b]=W.useState(""),[w,S]=W.useState(""),A=O=>{if(O.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($e.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:O=>{d(O.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($e.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:O=>{g(O.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 ${w?"border-red-400":"border-slate-300"}`}),x.jsx("button",{type:"button",onClick:()=>m(!p),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:p?x.jsx($e.EyeOff,{className:"w-4 h-4"}):x.jsx($e.Eye,{className:"w-4 h-4"})})]}),w&&x.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:w})]}),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 L$({open:e,onClose:t,onSubmit:r,loading:n,error:i}){const[a,o]=W.useState({current_password:"",new_password:"",confirm_password:""}),[s,l]=W.useState(!1),[c,u]=W.useState(!1),[f,d]=W.useState(!1),[h,g]=W.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},m=()=>{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(l0,{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($e.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($e.EyeOff,{size:16}):x.jsx($e.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($e.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($e.EyeOff,{size:16}):x.jsx($e.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($e.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($e.EyeOff,{size:16}):x.jsx($e.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(Zt,{variant:"ghost",onClick:y,disabled:n,children:"Cancel"}),x.jsx(Zt,{onClick:m,loading:n,icon:$e.Lock,children:"Change Password"})]})]})}function I$({open:e,onClose:t,onSubmit:r,loading:n=!1,userName:i=""}){const[a,o]=W.useState(""),[s,l]=W.useState(!1),[c,u]=W.useState(!1),[f,d]=W.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(l0,{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($e.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:m=>{o(m.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($e.EyeOff,{size:14}):x.jsx($e.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($e.Check,{size:14,className:"text-emerald-500"}):x.jsx($e.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(Zt,{variant:"ghost",onClick:p,children:"Cancel"}),x.jsx(Zt,{onClick:h,loading:n,disabled:!a||a.length<6,children:"Reset Password"})]})]})}function F$({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 M$({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,h_;function gi(){if(h_)return Z1;h_=1;var e=Array.isArray;return Z1=e,Z1}var Q1,d_;function RO(){if(d_)return Q1;d_=1;var e=typeof Kl=="object"&&Kl&&Kl.Object===Object&&Kl;return Q1=e,Q1}var em,p_;function za(){if(p_)return em;p_=1;var e=RO(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return em=r,em}var tm,m_;function c0(){if(m_)return tm;m_=1;var e=za(),t=e.Symbol;return tm=t,tm}var rm,v_;function D$(){if(v_)return rm;v_=1;var e=c0(),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,g_;function R$(){if(g_)return nm;g_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nm=r,nm}var im,x_;function No(){if(x_)return im;x_=1;var e=c0(),t=D$(),r=R$(),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,y_;function Eo(){if(y_)return am;y_=1;function e(t){return t!=null&&typeof t=="object"}return am=e,am}var om,b_;function Gc(){if(b_)return om;b_=1;var e=No(),t=Eo(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return om=n,om}var sm,w_;function yb(){if(w_)return sm;w_=1;var e=gi(),t=Gc(),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,__;function fs(){if(__)return lm;__=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return lm=e,lm}var cm,S_;function bb(){if(S_)return cm;S_=1;var e=No(),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,A_;function B$(){if(A_)return um;A_=1;var e=za(),t=e["__core-js_shared__"];return um=t,um}var fm,T_;function $$(){if(T_)return fm;T_=1;var e=B$(),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,N_;function BO(){if(N_)return hm;N_=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 q$(){if(E_)return dm;E_=1;var e=bb(),t=$$(),r=fs(),n=BO(),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,P_;function U$(){if(P_)return pm;P_=1;function e(t,r){return t==null?void 0:t[r]}return pm=e,pm}var mm,O_;function ol(){if(O_)return mm;O_=1;var e=q$(),t=U$();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return mm=r,mm}var vm,j_;function gp(){if(j_)return vm;j_=1;var e=ol(),t=e(Object,"create");return vm=t,vm}var gm,C_;function z$(){if(C_)return gm;C_=1;var e=gp();function t(){this.__data__=e?e(null):{},this.size=0}return gm=t,gm}var xm,k_;function W$(){if(k_)return xm;k_=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,L_;function H$(){if(L_)return ym;L_=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,I_;function G$(){if(I_)return bm;I_=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,F_;function V$(){if(F_)return wm;F_=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,M_;function Y$(){if(M_)return _m;M_=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,_m=a,_m}var Sm,D_;function K$(){if(D_)return Sm;D_=1;function e(){this.__data__=[],this.size=0}return Sm=e,Sm}var Am,R_;function wb(){if(R_)return Am;R_=1;function e(t,r){return t===r||t!==t&&r!==r}return Am=e,Am}var Tm,B_;function xp(){if(B_)return Tm;B_=1;var e=wb();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 Nm,$_;function X$(){if($_)return Nm;$_=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 Nm=n,Nm}var Em,q_;function J$(){if(q_)return Em;q_=1;var e=xp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Em=t,Em}var Pm,U_;function Z$(){if(U_)return Pm;U_=1;var e=xp();function t(r){return e(this.__data__,r)>-1}return Pm=t,Pm}var Om,z_;function Q$(){if(z_)return Om;z_=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,W_;function yp(){if(W_)return jm;W_=1;var e=K$(),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,jm=a,jm}var Cm,H_;function _b(){if(H_)return Cm;H_=1;var e=ol(),t=za(),r=e(t,"Map");return Cm=r,Cm}var km,G_;function eq(){if(G_)return km;G_=1;var e=Y$(),t=yp(),r=_b();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return km=n,km}var Lm,V_;function tq(){if(V_)return Lm;V_=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,Y_;function bp(){if(Y_)return Im;Y_=1;var e=tq();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,K_;function rq(){if(K_)return Fm;K_=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,X_;function nq(){if(X_)return Mm;X_=1;var e=bp();function t(r){return e(this,r).get(r)}return Mm=t,Mm}var Dm,J_;function iq(){if(J_)return Dm;J_=1;var e=bp();function t(r){return e(this,r).has(r)}return Dm=t,Dm}var Rm,Z_;function aq(){if(Z_)return Rm;Z_=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,Q_;function Sb(){if(Q_)return Bm;Q_=1;var e=eq(),t=rq(),r=nq(),n=iq(),i=aq();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,e4;function $O(){if(e4)return $m;e4=1;var e=Sb(),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,t4;function oq(){if(t4)return qm;t4=1;var e=$O(),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,r4;function sq(){if(r4)return Um;r4=1;var e=oq(),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,n4;function Ab(){if(n4)return zm;n4=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,i4;function lq(){if(i4)return Wm;i4=1;var e=c0(),t=Ab(),r=gi(),n=Gc(),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,a4;function qO(){if(a4)return Hm;a4=1;var e=lq();function t(r){return r==null?"":e(r)}return Hm=t,Hm}var Gm,o4;function UO(){if(o4)return Gm;o4=1;var e=gi(),t=yb(),r=sq(),n=qO();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Gm=i,Gm}var Vm,s4;function wp(){if(s4)return Vm;s4=1;var e=Gc();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,l4;function Tb(){if(l4)return Ym;l4=1;var e=UO(),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,c4;function zO(){if(c4)return Km;c4=1;var e=Tb();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 cq=zO();const Ki=ur(cq);var Xm,u4;function uq(){if(u4)return Xm;u4=1;function e(t){return t==null}return Xm=e,Xm}var fq=uq();const qt=ur(fq);var Jm,f4;function hq(){if(f4)return Jm;f4=1;var e=No(),t=gi(),r=Eo(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Jm=i,Jm}var dq=hq();const Js=ur(dq);var pq=bb();const jt=ur(pq);var mq=fs();const Vc=ur(mq);var Th={exports:{}},nr={};/**
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 h4;function vq(){if(h4)return nr;h4=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(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case r:case i:case n:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case l:case d:case f:case a:return m;default:return y}}case t:return y}}}return nr.ContextConsumer=o,nr.ContextProvider=a,nr.Element=e,nr.ForwardRef=l,nr.Fragment=r,nr.Lazy=d,nr.Memo=f,nr.Portal=t,nr.Profiler=i,nr.StrictMode=n,nr.Suspense=c,nr.SuspenseList=u,nr.isAsyncMode=function(){return!1},nr.isConcurrentMode=function(){return!1},nr.isContextConsumer=function(m){return p(m)===o},nr.isContextProvider=function(m){return p(m)===a},nr.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},nr.isForwardRef=function(m){return p(m)===l},nr.isFragment=function(m){return p(m)===r},nr.isLazy=function(m){return p(m)===d},nr.isMemo=function(m){return p(m)===f},nr.isPortal=function(m){return p(m)===t},nr.isProfiler=function(m){return p(m)===i},nr.isStrictMode=function(m){return p(m)===n},nr.isSuspense=function(m){return p(m)===c},nr.isSuspenseList=function(m){return p(m)===u},nr.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===c||m===u||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===f||m.$$typeof===a||m.$$typeof===o||m.$$typeof===l||m.$$typeof===g||m.getModuleId!==void 0)},nr.typeOf=p,nr}var ir={};/**
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 d4;function gq(){return d4||(d4=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,m=!1,y=!1,b=!1,w;w=Symbol.for("react.module.reference");function S(Se){return!!(typeof Se=="string"||typeof Se=="function"||Se===r||Se===i||b||Se===n||Se===c||Se===u||y||Se===h||g||p||m||typeof Se=="object"&&Se!==null&&(Se.$$typeof===d||Se.$$typeof===f||Se.$$typeof===a||Se.$$typeof===o||Se.$$typeof===l||Se.$$typeof===w||Se.getModuleId!==void 0))}function A(Se){if(typeof Se=="object"&&Se!==null){var Ae=Se.$$typeof;switch(Ae){case e:var le=Se.type;switch(le){case r:case i:case n:case c:case u:return le;default:var Me=le&&le.$$typeof;switch(Me){case s:case o:case l:case d:case f:case a:return Me;default:return Ae}}case t:return Ae}}}var O=o,T=a,k=e,L=l,R=r,j=d,E=f,D=t,U=i,H=n,B=c,z=u,te=!1,Z=!1;function ee(Se){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ce(Se){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(Se){return A(Se)===o}function I(Se){return A(Se)===a}function M(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function q(Se){return A(Se)===l}function Y(Se){return A(Se)===r}function fe(Se){return A(Se)===d}function ne(Se){return A(Se)===f}function K(Se){return A(Se)===t}function he(Se){return A(Se)===i}function be(Se){return A(Se)===n}function se(Se){return A(Se)===c}function Le(Se){return A(Se)===u}ir.ContextConsumer=O,ir.ContextProvider=T,ir.Element=k,ir.ForwardRef=L,ir.Fragment=R,ir.Lazy=j,ir.Memo=E,ir.Portal=D,ir.Profiler=U,ir.StrictMode=H,ir.Suspense=B,ir.SuspenseList=z,ir.isAsyncMode=ee,ir.isConcurrentMode=ce,ir.isContextConsumer=P,ir.isContextProvider=I,ir.isElement=M,ir.isForwardRef=q,ir.isFragment=Y,ir.isLazy=fe,ir.isMemo=ne,ir.isPortal=K,ir.isProfiler=he,ir.isStrictMode=be,ir.isSuspense=se,ir.isSuspenseList=Le,ir.isValidElementType=S,ir.typeOf=A})()),ir}var p4;function xq(){return p4||(p4=1,process.env.NODE_ENV==="production"?Th.exports=vq():Th.exports=gq()),Th.exports}var yq=xq(),Zm,m4;function WO(){if(m4)return Zm;m4=1;var e=No(),t=Eo(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Zm=n,Zm}var Qm,v4;function bq(){if(v4)return Qm;v4=1;var e=WO();function t(r){return e(r)&&r!=+r}return Qm=t,Qm}var wq=bq();const u0=ur(wq);var _q=WO();const Sq=ur(_q);var ya=function(t){return t===0?0:t>0?1:-1},Fs=function(t){return Js(t)&&t.indexOf("%")===t.length-1},nt=function(t){return Sq(t)&&!u0(t)},Aq=function(t){return qt(t)},pn=function(t){return nt(t)||Js(t)},Tq=0,f0=function(t){var r=++Tq;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)&&!Js(t))return n;var a;if(Fs(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return u0(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},Nq=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 Eq=function(t,r){return nt(t)&&nt(r)?t-r:Js(t)&&Js(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function sc(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 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 Pq=["viewBox","children"],Oq=["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"],g4=["points","pathLength"],ev={svg:Pq,polygon:g4,polyline:g4},Nb=["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(W.isValidElement(t)&&(n=t.props),!Vc(n))return null;var i={};return Object.keys(n).forEach(function(a){Nb.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},jq=function(t,r,n){return function(i){return t(r,n,i),null}},fc=function(t,r,n){if(!Vc(t)||Ay(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Nb.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=jq(o,r,n))}),i},Cq=["children"],kq=["children"];function x4(e,t){if(e==null)return{};var r=Lq(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 Lq(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 Ty(e){"@babel/helpers - typeof";return Ty=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},Ty(e)}var y4={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":""},b4=null,tv=null,Eb=function e(t){if(t===b4&&Array.isArray(tv))return tv;var r=[];return W.Children.forEach(t,function(n){qt(n)||(yq.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tv=r,b4=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 Ei(e,t){var r=Xi(e,t);return r&&r[0]}var w4=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)},Iq=["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"],Fq=function(t){return t&&t.type&&Js(t.type)&&Iq.indexOf(t.type)>=0},Mq=function(t){return t&&Ty(t)==="object"&&"clipDot"in t},Dq=function(t,r,n,i){var a,o=(a=ev==null?void 0:ev[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!jt(t)&&(i&&o.includes(r)||Oq.includes(r))||n&&Nb.includes(r)},bt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(W.isValidElement(t)&&(i=t.props),!Vc(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;Dq((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Ny=function e(t,r){if(t===r)return!0;var n=W.Children.count(t);if(n!==W.Children.count(r))return!1;if(n===0)return!0;if(n===1)return _4(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(!_4(a,o))return!1}return!0},_4=function(t,r){if(qt(t)&&qt(r))return!0;if(!qt(t)&&!qt(r)){var n=t.props||{},i=n.children,a=x4(n,Cq),o=r.props||{},s=o.children,l=x4(o,kq);return i&&s?sc(a,l)&&Ny(i,s):!i&&!s?sc(a,l):!1}return!1},S4=function(t,r){var n=[],i={};return Eb(t).forEach(function(a,o){if(Fq(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},Rq=function(t){var r=t&&t.type;return r&&y4[r]?y4[r]:null},Bq=function(t,r){return Eb(r).indexOf(t)},$q=["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 qq(e,t){if(e==null)return{};var r=Uq(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 Uq(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 Py(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=qq(e,$q),u=i||{width:r,height:n,x:0,y:0},f=Dt("recharts-surface",a);return W.createElement("svg",Ey({},bt(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),W.createElement("title",null,s),W.createElement("desc",null,l),t)}var zq=["children","className"];function Oy(){return Oy=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},Oy.apply(this,arguments)}function Wq(e,t){if(e==null)return{};var r=Hq(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 Hq(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=W.forwardRef(function(e,t){var r=e.children,n=e.className,i=Wq(e,zq),a=Dt("recharts-layer",n);return W.createElement("g",Oy({className:a},bt(i,!0),{ref:t}),r)}),Gq=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(Gq&&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,A4;function Vq(){if(A4)return rv;A4=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,T4;function Yq(){if(T4)return nv;T4=1;var e=Vq();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,N4;function HO(){if(N4)return iv;N4=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 Kq(){if(E4)return av;E4=1;function e(t){return t.split("")}return av=e,av}var ov,P4;function Xq(){if(P4)return ov;P4=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+"]?",m="(?:"+h+"(?:"+[u,f,d].join("|")+")"+p+g+")*",y=p+g+m,b="(?:"+[u+s+"?",s,f,d,o].join("|")+")",w=RegExp(l+"(?="+l+")|"+b+y,"g");function S(A){return A.match(w)||[]}return ov=S,ov}var sv,O4;function Jq(){if(O4)return sv;O4=1;var e=Kq(),t=HO(),r=Xq();function n(i){return t(i)?r(i):e(i)}return sv=n,sv}var lv,j4;function Zq(){if(j4)return lv;j4=1;var e=Yq(),t=HO(),r=Jq(),n=qO();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,C4;function Qq(){if(C4)return cv;C4=1;var e=Zq(),t=e("toUpperCase");return cv=t,cv}var eU=Qq();const _p=ur(eU);function Pr(e){return function(){return e}}const GO=Math.cos,od=Math.sin,Aa=Math.sqrt,sd=Math.PI,Sp=2*sd,jy=Math.PI,Cy=2*jy,Os=1e-6,tU=Cy-Os;function VO(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function rU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return VO;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 nU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?VO:rU(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,m=h*h+g*g,y=Math.sqrt(p),b=Math.sqrt(d),w=a*Math.tan((jy-Math.acos((p+d-m)/(2*y*b)))/2),S=w/b,A=w/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%Cy+Cy),d>tU?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>=jy)},${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 Pb(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 nU(t)}function Ob(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YO(e){this._context=e}YO.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 YO(e)}function KO(e){return e[0]}function XO(e){return e[1]}function JO(e,t){var r=Pr(!0),n=null,i=Ap,a=null,o=Pb(s);e=typeof e=="function"?e:e===void 0?KO:Pr(e),t=typeof t=="function"?t:t===void 0?XO:Pr(t);function s(l){var c,u=(l=Ob(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:Pr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pr(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Pr(!!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 Nh(e,t,r){var n=null,i=Pr(!0),a=null,o=Ap,s=null,l=Pb(c);e=typeof e=="function"?e:e===void 0?KO:Pr(+e),t=typeof t=="function"?t:Pr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?XO:Pr(+r);function c(f){var d,h,g,p=(f=Ob(f)).length,m,y=!1,b,w=new Array(p),S=new Array(p);for(a==null&&(s=o(b=l())),d=0;d<=p;++d){if(!(d<p&&i(m=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(w[g],S[g]);s.lineEnd(),s.areaEnd()}y&&(w[d]=+e(m,d,f),S[d]=+t(m,d,f),s.point(n?+n(m,d,f):w[d],r?+r(m,d,f):S[d]))}if(b)return s=null,b+""||null}function u(){return JO().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pr(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pr(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pr(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pr(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pr(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pr(+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:Pr(!!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 ZO{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 iU(e){return new ZO(e,!0)}function aU(e){return new ZO(e,!1)}const jb={draw(e,t){const r=Aa(t/sd);e.moveTo(r,0),e.arc(0,0,r,0,Sp)}},oU={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()}},QO=Aa(1/3),sU=QO*2,lU={draw(e,t){const r=Aa(t/sU),n=r*QO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},cU={draw(e,t){const r=Aa(t),n=-r/2;e.rect(n,n,r,r)}},uU=.8908130915292852,e6=od(sd/10)/od(7*sd/10),fU=od(Sp/10)*e6,hU=-GO(Sp/10)*e6,dU={draw(e,t){const r=Aa(t*uU),n=fU*r,i=hU*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Sp*a/5,s=GO(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),pU={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,ky=1/Aa(12),mU=(ky/2+1)*3,vU={draw(e,t){const r=Aa(t/mU),n=r/2,i=r*ky,a=n,o=r*ky+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 gU(e,t){let r=null,n=Pb(i);e=typeof e=="function"?e:Pr(e||jb),t=typeof t=="function"?t:Pr(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:Pr(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pr(+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 t6(e){this._context=e}t6.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 xU(e){return new t6(e)}function r6(e){this._context=e}r6.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 yU(e){return new r6(e)}function n6(e){this._context=e}n6.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 bU(e){return new n6(e)}function i6(e){this._context=e}i6.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 wU(e){return new i6(e)}function k4(e){return e<0?-1:1}function L4(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(k4(a)+k4(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function I4(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,I4(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,I4(this,r=L4(this,e,t)),r);break;default:fv(this,this._t0,r=L4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function a6(e){this._context=new o6(e)}(a6.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function o6(e){this._context=e}o6.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 _U(e){return new ud(e)}function SU(e){return new a6(e)}function s6(e){this._context=e}s6.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=F4(e),i=F4(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 F4(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 AU(e){return new s6(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 TU(e){return new Tp(e,.5)}function NU(e){return new Tp(e,0)}function EU(e){return new Tp(e,1)}function hc(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 Ly(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function PU(e,t){return e[t]}function OU(e){const t=[];return t.key=e,t}function jU(){var e=Pr([]),t=Ly,r=hc,n=PU;function i(a){var o=Array.from(e.apply(this,arguments),OU),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=Ob(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:Pr(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Pr(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ly:typeof a=="function"?a:Pr(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??hc,i):r},i}function CU(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}hc(e,t)}}function kU(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}hc(e,t)}}function LU(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]],m=p[n][1]||0,y=p[n-1][1]||0;h+=m-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,hc(e,t)}}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)}var IU=["type","size","sizeType"];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 M4(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 D4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M4(Object(r),!0).forEach(function(n){FU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FU(e,t,r){return t=MU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MU(e){var t=DU(e,"string");return bf(t)=="symbol"?t:t+""}function DU(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)}function RU(e,t){if(e==null)return{};var r=BU(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 BU(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 l6={symbolCircle:jb,symbolCross:oU,symbolDiamond:lU,symbolSquare:cU,symbolStar:dU,symbolTriangle:pU,symbolWye:vU},$U=Math.PI/180,qU=function(t){var r="symbol".concat(_p(t));return l6[r]||jb},UU=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*$U;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}},zU=function(t,r){l6["symbol".concat(_p(t))]=r},Cb=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=RU(t,IU),c=D4(D4({},l),{},{type:n,size:a,sizeType:s}),u=function(){var m=qU(n),y=gU().type(m).size(UU(a,s,n));return y()},f=c.className,d=c.cx,h=c.cy,g=bt(c,!0);return d===+d&&h===+h&&a===+a?W.createElement("path",Iy({},g,{className:Dt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:u()})):null};Cb.registerSymbol=zU;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)}function Fy(){return Fy=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},Fy.apply(this,arguments)}function R4(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 WU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R4(Object(r),!0).forEach(function(n){wf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GU(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,u6(n.key),n)}}function VU(e,t,r){return t&&GU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YU(e,t,r){return t=fd(t),KU(e,c6()?Reflect.construct(t,r||[],fd(e).constructor):t.apply(e,r))}function KU(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 XU(e)}function XU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c6=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fd(e)}function JU(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 wf(e,t,r){return t=u6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u6(e){var t=ZU(e,"string");return dc(t)=="symbol"?t:t+""}function ZU(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)}var Hi=32,kb=(function(e){function t(){return HU(this,t),YU(this,t,arguments)}return JU(t,e),VU(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 W.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 W.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 W.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(W.isValidElement(n.legendIcon)){var c=WU({},n);return delete c.legendIcon,W.cloneElement(n.legendIcon,c)}return W.createElement(Cb,{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,m=Dt(wf(wf({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=jt(h.value)?null:h.value;vo(!jt(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 W.createElement("li",Fy({className:m,style:f,key:"legend-item-".concat(g)},fc(n.props,h,g)),W.createElement(Py,{width:o,height:o,viewBox:u,style:d},n.renderIcon(h)),W.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 W.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(W.PureComponent);wf(kb,"displayName","Legend");wf(kb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hv,B4;function QU(){if(B4)return hv;B4=1;var e=yp();function t(){this.__data__=new e,this.size=0}return hv=t,hv}var dv,$4;function ez(){if($4)return dv;$4=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return dv=e,dv}var pv,q4;function tz(){if(q4)return pv;q4=1;function e(t){return this.__data__.get(t)}return pv=e,pv}var mv,U4;function rz(){if(U4)return mv;U4=1;function e(t){return this.__data__.has(t)}return mv=e,mv}var vv,z4;function nz(){if(z4)return vv;z4=1;var e=yp(),t=_b(),r=Sb(),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,W4;function f6(){if(W4)return gv;W4=1;var e=yp(),t=QU(),r=ez(),n=tz(),i=rz(),a=nz();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,H4;function iz(){if(H4)return xv;H4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return xv=t,xv}var yv,G4;function az(){if(G4)return yv;G4=1;function e(t){return this.__data__.has(t)}return yv=e,yv}var bv,V4;function h6(){if(V4)return bv;V4=1;var e=Sb(),t=iz(),r=az();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,Y4;function d6(){if(Y4)return wv;Y4=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,K4;function p6(){if(K4)return _v;K4=1;function e(t,r){return t.has(r)}return _v=e,_v}var Sv,X4;function m6(){if(X4)return Sv;X4=1;var e=h6(),t=d6(),r=p6(),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),m=f.get(s);if(p&&m)return p==s&&m==o;var y=-1,b=!0,w=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 O=d?c(A,S,y,s,o,f):c(S,A,y,o,s,f);if(O!==void 0){if(O)continue;b=!1;break}if(w){if(!t(s,function(T,k){if(!r(w,k)&&(S===T||u(S,T,l,c,f)))return w.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,J4;function oz(){if(J4)return Av;J4=1;var e=za(),t=e.Uint8Array;return Av=t,Av}var Tv,Z4;function sz(){if(Z4)return Tv;Z4=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 Nv,Q4;function Lb(){if(Q4)return Nv;Q4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Nv=e,Nv}var Ev,eS;function lz(){if(eS)return Ev;eS=1;var e=c0(),t=oz(),r=wb(),n=m6(),i=sz(),a=Lb(),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]",m="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",w=e?e.prototype:void 0,S=w?w.valueOf:void 0;function A(O,T,k,L,R,j,E){switch(k){case b:if(O.byteLength!=T.byteLength||O.byteOffset!=T.byteOffset)return!1;O=O.buffer,T=T.buffer;case y:return!(O.byteLength!=T.byteLength||!j(new t(O),new t(T)));case l:case c:case d:return r(+O,+T);case u:return O.name==T.name&&O.message==T.message;case h:case p:return O==T+"";case f:var D=i;case g:var U=L&o;if(D||(D=a),O.size!=T.size&&!U)return!1;var H=E.get(O);if(H)return H==T;L|=s,E.set(O,T);var B=n(D(O),D(T),L,R,j,E);return E.delete(O),B;case m:if(S)return S.call(O)==S.call(T)}return!1}return Ev=A,Ev}var Pv,tS;function v6(){if(tS)return Pv;tS=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,rS;function cz(){if(rS)return Ov;rS=1;var e=v6(),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,nS;function uz(){if(nS)return jv;nS=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,iS;function fz(){if(iS)return Cv;iS=1;function e(){return[]}return Cv=e,Cv}var kv,aS;function hz(){if(aS)return kv;aS=1;var e=uz(),t=fz(),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,oS;function dz(){if(oS)return Lv;oS=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,sS;function pz(){if(sS)return Iv;sS=1;var e=No(),t=Eo(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Iv=n,Iv}var Fv,lS;function Ib(){if(lS)return Fv;lS=1;var e=pz(),t=Eo(),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 zu={exports:{}},Mv,cS;function mz(){if(cS)return Mv;cS=1;function e(){return!1}return Mv=e,Mv}zu.exports;var uS;function g6(){return uS||(uS=1,(function(e,t){var r=za(),n=mz(),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})(zu,zu.exports)),zu.exports}var Dv,fS;function Fb(){if(fS)return Dv;fS=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,hS;function Mb(){if(hS)return Rv;hS=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Rv=t,Rv}var Bv,dS;function vz(){if(dS)return Bv;dS=1;var e=No(),t=Mb(),r=Eo(),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]",m="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",R="[object Uint32Array]",j={};j[b]=j[w]=j[S]=j[A]=j[O]=j[T]=j[k]=j[L]=j[R]=!0,j[n]=j[i]=j[m]=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 E(D){return r(D)&&t(D.length)&&!!j[e(D)]}return Bv=E,Bv}var $v,pS;function x6(){if(pS)return $v;pS=1;function e(t){return function(r){return t(r)}}return $v=e,$v}var Wu={exports:{}};Wu.exports;var mS;function gz(){return mS||(mS=1,(function(e,t){var r=RO(),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})(Wu,Wu.exports)),Wu.exports}var qv,vS;function y6(){if(vS)return qv;vS=1;var e=vz(),t=x6(),r=gz(),n=r&&r.isTypedArray,i=n?t(n):e;return qv=i,qv}var Uv,gS;function xz(){if(gS)return Uv;gS=1;var e=dz(),t=Ib(),r=gi(),n=g6(),i=Fb(),a=y6(),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,m=p?e(c.length,String):[],y=m.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)))&&m.push(b);return m}return Uv=l,Uv}var zv,xS;function yz(){if(xS)return zv;xS=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,yS;function b6(){if(yS)return Wv;yS=1;function e(t,r){return function(n){return t(r(n))}}return Wv=e,Wv}var Hv,bS;function bz(){if(bS)return Hv;bS=1;var e=b6(),t=e(Object.keys,Object);return Hv=t,Hv}var Gv,wS;function wz(){if(wS)return Gv;wS=1;var e=yz(),t=bz(),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,_S;function h0(){if(_S)return Vv;_S=1;var e=bb(),t=Mb();function r(n){return n!=null&&t(n.length)&&!e(n)}return Vv=r,Vv}var Yv,SS;function Np(){if(SS)return Yv;SS=1;var e=xz(),t=wz(),r=h0();function n(i){return r(i)?e(i):t(i)}return Yv=n,Yv}var Kv,AS;function _z(){if(AS)return Kv;AS=1;var e=cz(),t=hz(),r=Np();function n(i){return e(i,r,t)}return Kv=n,Kv}var Xv,TS;function Sz(){if(TS)return Xv;TS=1;var e=_z(),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 m=h;m--;){var y=d[m];if(!(f?y in o:n.call(o,y)))return!1}var b=u.get(a),w=u.get(o);if(b&&w)return b==o&&w==a;var S=!0;u.set(a,o),u.set(o,a);for(var A=f;++m<h;){y=d[m];var O=a[y],T=o[y];if(l)var k=f?l(T,O,y,o,a,u):l(O,T,y,a,o,u);if(!(k===void 0?O===T||c(O,T,s,l,u):k)){S=!1;break}A||(A=y=="constructor")}if(S&&!A){var L=a.constructor,R=o.constructor;L!=R&&"constructor"in a&&"constructor"in o&&!(typeof L=="function"&&L instanceof L&&typeof R=="function"&&R instanceof R)&&(S=!1)}return u.delete(a),u.delete(o),S}return Xv=i,Xv}var Jv,NS;function Az(){if(NS)return Jv;NS=1;var e=ol(),t=za(),r=e(t,"DataView");return Jv=r,Jv}var Zv,ES;function Tz(){if(ES)return Zv;ES=1;var e=ol(),t=za(),r=e(t,"Promise");return Zv=r,Zv}var Qv,PS;function w6(){if(PS)return Qv;PS=1;var e=ol(),t=za(),r=e(t,"Set");return Qv=r,Qv}var eg,OS;function Nz(){if(OS)return eg;OS=1;var e=ol(),t=za(),r=e(t,"WeakMap");return eg=r,eg}var tg,jS;function Ez(){if(jS)return tg;jS=1;var e=Az(),t=_b(),r=Tz(),n=w6(),i=Nz(),a=No(),o=BO(),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),m=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(w){var S=a(w),A=S==l?w.constructor:void 0,O=A?o(A):"";if(O)switch(O){case h:return d;case g:return s;case p:return c;case m:return u;case y:return f}return S}),tg=b,tg}var rg,CS;function Pz(){if(CS)return rg;CS=1;var e=f6(),t=m6(),r=lz(),n=Sz(),i=Ez(),a=gi(),o=g6(),s=y6(),l=1,c="[object Arguments]",u="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function g(p,m,y,b,w,S){var A=a(p),O=a(m),T=A?u:i(p),k=O?u:i(m);T=T==c?f:T,k=k==c?f:k;var L=T==f,R=k==f,j=T==k;if(j&&o(p)){if(!o(m))return!1;A=!0,L=!1}if(j&&!L)return S||(S=new e),A||s(p)?t(p,m,y,b,w,S):r(p,m,T,y,b,w,S);if(!(y&l)){var E=L&&h.call(p,"__wrapped__"),D=R&&h.call(m,"__wrapped__");if(E||D){var U=E?p.value():p,H=D?m.value():m;return S||(S=new e),w(U,H,y,b,S)}}return j?(S||(S=new e),n(p,m,y,b,w,S)):!1}return rg=g,rg}var ng,kS;function Db(){if(kS)return ng;kS=1;var e=Pz(),t=Eo();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,LS;function Oz(){if(LS)return ig;LS=1;var e=f6(),t=Db(),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 m=new e;if(l)var y=l(g,p,h,a,o,m);if(!(y===void 0?t(p,g,r|n,l,m):y))return!1}}return!0}return ig=i,ig}var ag,IS;function _6(){if(IS)return ag;IS=1;var e=fs();function t(r){return r===r&&!e(r)}return ag=t,ag}var og,FS;function jz(){if(FS)return og;FS=1;var e=_6(),t=Np();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,MS;function S6(){if(MS)return sg;MS=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,DS;function Cz(){if(DS)return lg;DS=1;var e=Oz(),t=jz(),r=S6();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,RS;function kz(){if(RS)return cg;RS=1;function e(t,r){return t!=null&&r in Object(t)}return cg=e,cg}var ug,BS;function Lz(){if(BS)return ug;BS=1;var e=UO(),t=Ib(),r=gi(),n=Fb(),i=Mb(),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,$S;function Iz(){if($S)return fg;$S=1;var e=kz(),t=Lz();function r(n,i){return n!=null&&t(n,i,e)}return fg=r,fg}var hg,qS;function Fz(){if(qS)return hg;qS=1;var e=Db(),t=zO(),r=Iz(),n=yb(),i=_6(),a=S6(),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,US;function Yc(){if(US)return dg;US=1;function e(t){return t}return dg=e,dg}var pg,zS;function Mz(){if(zS)return pg;zS=1;function e(t){return function(r){return r==null?void 0:r[t]}}return pg=e,pg}var mg,WS;function Dz(){if(WS)return mg;WS=1;var e=Tb();function t(r){return function(n){return e(n,r)}}return mg=t,mg}var vg,HS;function Rz(){if(HS)return vg;HS=1;var e=Mz(),t=Dz(),r=yb(),n=wp();function i(a){return r(a)?e(n(a)):t(a)}return vg=i,vg}var gg,GS;function Wa(){if(GS)return gg;GS=1;var e=Cz(),t=Fz(),r=Yc(),n=gi(),i=Rz();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,VS;function A6(){if(VS)return xg;VS=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,YS;function Bz(){if(YS)return yg;YS=1;function e(t){return t!==t}return yg=e,yg}var bg,KS;function $z(){if(KS)return bg;KS=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,XS;function qz(){if(XS)return wg;XS=1;var e=A6(),t=Bz(),r=$z();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wg=n,wg}var _g,JS;function Uz(){if(JS)return _g;JS=1;var e=qz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return _g=t,_g}var Sg,ZS;function zz(){if(ZS)return Sg;ZS=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,QS;function Wz(){if(QS)return Ag;QS=1;function e(){}return Ag=e,Ag}var Tg,e3;function Hz(){if(e3)return Tg;e3=1;var e=w6(),t=Wz(),r=Lb(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Tg=i,Tg}var Ng,t3;function Gz(){if(t3)return Ng;t3=1;var e=h6(),t=Uz(),r=zz(),n=p6(),i=Hz(),a=Lb(),o=200;function s(l,c,u){var f=-1,d=t,h=l.length,g=!0,p=[],m=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,m=new e}else m=c?[]:p;e:for(;++f<h;){var b=l[f],w=c?c(b):b;if(b=u||b!==0?b:0,g&&w===w){for(var S=m.length;S--;)if(m[S]===w)continue e;c&&m.push(w),p.push(b)}else d(m,w,u)||(m!==p&&m.push(w),p.push(b))}return p}return Ng=s,Ng}var Eg,r3;function Vz(){if(r3)return Eg;r3=1;var e=Wa(),t=Gz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Eg=r,Eg}var Yz=Vz();const n3=ur(Yz);function T6(e,t,r){return t===!0?n3(e,r):jt(t)?n3(e,t):e}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)}var Kz=["ref"];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 io(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){Ep(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 Xz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a3(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,E6(n.key),n)}}function Jz(e,t,r){return t&&a3(e.prototype,t),r&&a3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zz(e,t,r){return t=hd(t),Qz(e,N6()?Reflect.construct(t,r||[],hd(e).constructor):t.apply(e,r))}function Qz(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 eW(e)}function eW(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 hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hd(e)}function tW(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&&Dy(e,t)}function Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dy(e,t)}function Ep(e,t,r){return t=E6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E6(e){var t=rW(e,"string");return pc(t)=="symbol"?t:t+""}function rW(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)}function nW(e,t){if(e==null)return{};var r=iW(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 iW(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 aW(e){return e.value}function oW(e,t){if(W.isValidElement(e))return W.cloneElement(e,t);if(typeof e=="function")return W.createElement(e,t);t.ref;var r=nW(t,Kz);return W.createElement(kb,r)}var o3=1,Hs=(function(e){function t(){var r;Xz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Zz(this,t,[].concat(i)),Ep(r,"lastBoundingBox",{width:-1,height:-1}),r}return tW(t,e),Jz(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)>o3||Math.abs(i.height-this.lastBoundingBox.height)>o3)&&(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 W.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},oW(a,io(io({},this.props),{},{payload:T6(u,c,aW)})))}}],[{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}}])})(W.PureComponent);Ep(Hs,"displayName","Legend");Ep(Hs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pg,s3;function sW(){if(s3)return Pg;s3=1;var e=c0(),t=Ib(),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,l3;function P6(){if(l3)return Og;l3=1;var e=v6(),t=sW();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,c3;function lW(){if(c3)return jg;c3=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,u3;function cW(){if(u3)return Cg;u3=1;var e=lW(),t=e();return Cg=t,Cg}var kg,f3;function O6(){if(f3)return kg;f3=1;var e=cW(),t=Np();function r(n,i){return n&&e(n,i,t)}return kg=r,kg}var Lg,h3;function uW(){if(h3)return Lg;h3=1;var e=h0();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,d3;function Rb(){if(d3)return Ig;d3=1;var e=O6(),t=uW(),r=t(e);return Ig=r,Ig}var Fg,p3;function j6(){if(p3)return Fg;p3=1;var e=Rb(),t=h0();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,m3;function fW(){if(m3)return Mg;m3=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,v3;function hW(){if(v3)return Dg;v3=1;var e=Gc();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,g3;function dW(){if(g3)return Rg;g3=1;var e=hW();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,x3;function pW(){if(x3)return Bg;x3=1;var e=Ab(),t=Tb(),r=Wa(),n=j6(),i=fW(),a=x6(),o=dW(),s=Yc(),l=gi();function c(u,f,d){f.length?f=e(f,function(p){return l(p)?function(m){return t(m,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var g=n(u,function(p,m,y){var b=e(f,function(w){return w(p)});return{criteria:b,index:++h,value:p}});return i(g,function(p,m){return o(p,m,d)})}return Bg=c,Bg}var $g,y3;function mW(){if(y3)return $g;y3=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,b3;function vW(){if(b3)return qg;b3=1;var e=mW(),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,w3;function gW(){if(w3)return Ug;w3=1;function e(t){return function(){return t}}return Ug=e,Ug}var zg,_3;function C6(){if(_3)return zg;_3=1;var e=ol(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zg=t,zg}var Wg,S3;function xW(){if(S3)return Wg;S3=1;var e=gW(),t=C6(),r=Yc(),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,A3;function yW(){if(A3)return Hg;A3=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,T3;function bW(){if(T3)return Gg;T3=1;var e=xW(),t=yW(),r=t(e);return Gg=r,Gg}var Vg,N3;function wW(){if(N3)return Vg;N3=1;var e=Yc(),t=vW(),r=bW();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=wb(),t=h0(),r=Fb(),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,P3;function _W(){if(P3)return Kg;P3=1;var e=P6(),t=pW(),r=wW(),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 SW=_W();const Bb=ur(SW);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 Ry(){return Ry=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},Ry.apply(this,arguments)}function AW(e,t){return PW(e)||EW(e,t)||NW(e,t)||TW()}function TW(){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 NW(e,t){if(e){if(typeof e=="string")return O3(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 O3(e,t)}}function O3(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 EW(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 PW(e){if(Array.isArray(e))return e}function j3(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?j3(Object(r),!0).forEach(function(n){OW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OW(e,t,r){return t=jW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jW(e){var t=CW(e,"string");return _f(t)=="symbol"?t:t+""}function CW(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)}function kW(e){return Array.isArray(e)&&pn(e[0])&&pn(e[1])?e.join(" ~ "):e}var LW=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,m=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,w=function(){if(u&&u.length){var E={padding:0,margin:0},D=(d?Bb(u,d):u).map(function(U,H){if(U.type==="none")return null;var B=Xg({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},s),z=U.formatter||f||kW,te=U.value,Z=U.name,ee=te,ce=Z;if(z&&ee!=null&&ce!=null){var P=z(te,Z,U,H,u);if(Array.isArray(P)){var I=AW(P,2);ee=I[0],ce=I[1]}else ee=P}return W.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(H),style:B},pn(ce)?W.createElement("span",{className:"recharts-tooltip-item-name"},ce):null,pn(ce)?W.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,W.createElement("span",{className:"recharts-tooltip-item-value"},ee),W.createElement("span",{className:"recharts-tooltip-item-unit"},U.unit||""))});return W.createElement("ul",{className:"recharts-tooltip-item-list",style:E},D)}return null},S=Xg({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),A=Xg({margin:0},c),O=!qt(p),T=O?p:"",k=Dt("recharts-default-tooltip",h),L=Dt("recharts-tooltip-label",g);O&&m&&u!==void 0&&u!==null&&(T=m(p,u));var R=b?{role:"status","aria-live":"assertive"}:{};return W.createElement("div",Ry({className:k,style:S},R),W.createElement("p",{className:L,style:A},W.isValidElement(T)?T:"".concat(T)),w())};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 Eh(e,t,r){return t=IW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IW(e){var t=FW(e,"string");return Sf(t)=="symbol"?t:t+""}function FW(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)}var Lu="recharts-tooltip-wrapper",MW={visibility:"hidden"};function DW(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Dt(Lu,Eh(Eh(Eh(Eh({},"".concat(Lu,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(Lu,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(Lu,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(Lu,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function C3(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 RW(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 BW(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=C3({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=C3({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=RW({translateX:u,translateY:f,useTranslate3d:s})):c=MW,{cssProperties:c,cssClasses:DW({translateX:u,translateY:f,coordinate:r})}}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 k3(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 L3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k3(Object(r),!0).forEach(function(n){$y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qW(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,L6(n.key),n)}}function UW(e,t,r){return t&&qW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zW(e,t,r){return t=dd(t),WW(e,k6()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}function WW(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 HW(e)}function HW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k6=function(){return!!e})()}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dd(e)}function GW(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&&By(e,t)}function By(e,t){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},By(e,t)}function $y(e,t,r){return t=L6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L6(e){var t=VW(e,"string");return mc(t)=="symbol"?t:t+""}function VW(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)}var I3=1,YW=(function(e){function t(){var r;$W(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=zW(this,t,[].concat(i)),$y(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$y(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 GW(t,e),UW(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>I3||Math.abs(n.height-this.state.lastBoundingBox.height)>I3)&&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,m=i.useTranslate3d,y=i.viewBox,b=i.wrapperStyle,w=BW({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:h,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:y}),S=w.cssClasses,A=w.cssProperties,O=L3(L3({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 W.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(k){n.wrapperNode=k}},c)}}])})(W.PureComponent),KW=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},sl={isSsr:KW()};function vc(e){"@babel/helpers - typeof";return vc=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},vc(e)}function F3(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 M3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F3(Object(r),!0).forEach(function(n){$b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JW(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,F6(n.key),n)}}function ZW(e,t,r){return t&&JW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QW(e,t,r){return t=pd(t),eH(e,I6()?Reflect.construct(t,r||[],pd(e).constructor):t.apply(e,r))}function eH(e,t){if(t&&(vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tH(e)}function tH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I6=function(){return!!e})()}function pd(e){return pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pd(e)}function rH(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&&qy(e,t)}function qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qy(e,t)}function $b(e,t,r){return t=F6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F6(e){var t=nH(e,"string");return vc(t)=="symbol"?t:t+""}function nH(e,t){if(vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iH(e){return e.dataKey}function aH(e,t){return W.isValidElement(e)?W.cloneElement(e,t):typeof e=="function"?W.createElement(e,t):W.createElement(LW,t)}var da=(function(e){function t(){return XW(this,t),QW(this,t,arguments)}return rH(t,e),ZW(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,m=i.position,y=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,A=g??[];f&&A.length&&(A=T6(g.filter(function(T){return T.value!=null&&(T.hide!==!0||n.props.includeHidden)}),p,iH));var O=A.length>0;return W.createElement(YW,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:u,hasPayload:O,offset:h,position:m,reverseDirection:y,useTranslate3d:b,viewBox:w,wrapperStyle:S},aH(c,M3(M3({},this.props),{},{payload:A})))}}])})(W.PureComponent);$b(da,"displayName","Tooltip");$b(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:!sl.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,D3;function oH(){if(D3)return Jg;D3=1;var e=za(),t=function(){return e.Date.now()};return Jg=t,Jg}var Zg,R3;function sH(){if(R3)return Zg;R3=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,B3;function lH(){if(B3)return Qg;B3=1;var e=sH(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qg=r,Qg}var ex,$3;function M6(){if($3)return ex;$3=1;var e=lH(),t=fs(),r=Gc(),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,q3;function cH(){if(q3)return tx;q3=1;var e=fs(),t=oH(),r=M6(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,c){var u,f,d,h,g,p,m=0,y=!1,b=!1,w=!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,w="trailing"in c?!!c.trailing:w);function S(D){var U=u,H=f;return u=f=void 0,m=D,h=s.apply(H,U),h}function A(D){return m=D,g=setTimeout(k,l),y?S(D):h}function O(D){var U=D-p,H=D-m,B=l-U;return b?a(B,d-H):B}function T(D){var U=D-p,H=D-m;return p===void 0||U>=l||U<0||b&&H>=d}function k(){var D=t();if(T(D))return L(D);g=setTimeout(k,O(D))}function L(D){return g=void 0,w&&u?S(D):(u=f=void 0,h)}function R(){g!==void 0&&clearTimeout(g),m=0,u=p=f=g=void 0}function j(){return g===void 0?h:L(t())}function E(){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 E.cancel=R,E.flush=j,E}return tx=o,tx}var rx,U3;function uH(){if(U3)return rx;U3=1;var e=cH(),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 fH=uH();const D6=ur(fH);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 z3(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 Ph(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z3(Object(r),!0).forEach(function(n){hH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hH(e,t,r){return t=dH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dH(e){var t=pH(e,"string");return Af(t)=="symbol"?t:t+""}function pH(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)}function mH(e,t){return yH(e)||xH(e,t)||gH(e,t)||vH()}function vH(){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 gH(e,t){if(e){if(typeof e=="string")return W3(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 W3(e,t)}}function W3(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 xH(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 yH(e){if(Array.isArray(e))return e}var nx=W.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,m=e.id,y=e.className,b=e.onResize,w=e.style,S=w===void 0?{}:w,A=W.useRef(null),O=W.useRef();O.current=b,W.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=W.useState({containerWidth:i.width,containerHeight:i.height}),k=mH(T,2),L=k[0],R=k[1],j=W.useCallback(function(D,U){R(function(H){var B=Math.round(D),z=Math.round(U);return H.containerWidth===B&&H.containerHeight===z?H:{containerWidth:B,containerHeight:z}})},[]);W.useEffect(function(){var D=function(Z){var ee,ce=Z[0].contentRect,P=ce.width,I=ce.height;j(P,I),(ee=O.current)===null||ee===void 0||ee.call(O,P,I)};p>0&&(D=D6(D,p,{trailing:!0,leading:!1}));var U=new ResizeObserver(D),H=A.current.getBoundingClientRect(),B=H.width,z=H.height;return j(B,z),U.observe(A.current),function(){U.disconnect()}},[j,p]);var E=W.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 H=Fs(o)?D:o,B=Fs(l)?U:l;r&&r>0&&(H?B=H/r:B&&(H=B*r),d&&B>d&&(B=d)),vo(H>0||B>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.`,H,B,o,l,u,f,r);var z=!Array.isArray(h)&&mo(h.type).endsWith("Chart");return W.Children.map(h,function(te){return W.isValidElement(te)?W.cloneElement(te,Ph({width:H,height:B},z?{style:Ph({height:"100%",width:"100%",maxHeight:B,maxWidth:H},te.props.style)}:{})):te})},[r,h,l,d,f,u,L,o]);return W.createElement("div",{id:m?"".concat(m):void 0,className:Dt("recharts-responsive-container",y),style:Ph(Ph({},S),{},{width:o,height:l,minWidth:u,minHeight:f,maxHeight:d}),ref:A},E)}),R6=function(t){return null};R6.displayName="Cell";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 H3(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 Uy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H3(Object(r),!0).forEach(function(n){bH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bH(e,t,r){return t=wH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wH(e){var t=_H(e,"string");return Tf(t)=="symbol"?t:t+""}function _H(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(t==="string"?String:Number)(e)}var ql={widthCache:{},cacheCount:0},SH=2e3,AH={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},G3="recharts_measurement_span";function TH(e){var t=Uy({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var nf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||sl.isSsr)return{width:0,height:0};var n=TH(r),i=JSON.stringify({text:t,copyStyle:n});if(ql.widthCache[i])return ql.widthCache[i];try{var a=document.getElementById(G3);a||(a=document.createElement("span"),a.setAttribute("id",G3),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Uy(Uy({},AH),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return ql.widthCache[i]=l,++ql.cacheCount>SH&&(ql.cacheCount=0,ql.widthCache={}),l}catch{return{width:0,height:0}}},NH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Nf(e){"@babel/helpers - typeof";return Nf=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},Nf(e)}function md(e,t){return jH(e)||OH(e,t)||PH(e,t)||EH()}function EH(){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 PH(e,t){if(e){if(typeof e=="string")return V3(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 V3(e,t)}}function V3(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 OH(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 jH(e){if(Array.isArray(e))return e}function CH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y3(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,LH(n.key),n)}}function kH(e,t,r){return t&&Y3(e.prototype,t),r&&Y3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LH(e){var t=IH(e,"string");return Nf(t)=="symbol"?t:t+""}function IH(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var K3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,X3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,FH=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,MH=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,B6={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},DH=Object.keys(B6),Jl="NaN";function RH(e,t){return e*B6[t]}var Oh=(function(){function e(t,r){CH(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!FH.test(r)&&(this.num=NaN,this.unit=""),DH.includes(r)&&(this.num=RH(t,r),this.unit="px")}return kH(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=MH.exec(r))!==null&&n!==void 0?n:[],a=md(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function $6(e){if(e.includes(Jl))return Jl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=K3.exec(t))!==null&&r!==void 0?r:[],i=md(n,4),a=i[1],o=i[2],s=i[3],l=Oh.parse(a??""),c=Oh.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Jl;t=t.replace(K3,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=X3.exec(t))!==null&&f!==void 0?f:[],h=md(d,4),g=h[1],p=h[2],m=h[3],y=Oh.parse(g??""),b=Oh.parse(m??""),w=p==="+"?y.add(b):y.subtract(b);if(w.isNaN())return Jl;t=t.replace(X3,w.toString())}return t}var J3=/\(([^()]*)\)/;function BH(e){for(var t=e;t.includes("(");){var r=J3.exec(t),n=md(r,2),i=n[1];t=t.replace(J3,$6(i))}return t}function $H(e){var t=e.replace(/\s+/g,"");return t=BH(t),t=$6(t),t}function qH(e){try{return $H(e)}catch{return Jl}}function ix(e){var t=qH(e.slice(5,-1));return t===Jl?"":t}var UH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],zH=["dx","dy","angle","className","breakAll"];function zy(){return zy=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},zy.apply(this,arguments)}function Z3(e,t){if(e==null)return{};var r=WH(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 WH(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 Q3(e,t){return YH(e)||VH(e,t)||GH(e,t)||HH()}function HH(){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 GH(e,t){if(e){if(typeof e=="string")return eA(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 eA(e,t)}}function eA(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 VH(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 YH(e){if(Array.isArray(e))return e}var q6=/[ \f\n\r\t\v\u2028\u2029]+/,U6=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];qt(r)||(n?a=r.toString().split(""):a=r.toString().split(q6));var o=a.map(function(l){return{word:l,width:nf(l,i).width}}),s=n?0:nf(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},KH=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 H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce(function(B,z){var te=z.word,Z=z.width,ee=B[B.length-1];if(ee&&(i==null||a||ee.width+Z+n<Number(i)))ee.words.push(te),ee.width+=Z+n;else{var ce={words:[te],width:Z};B.push(ce)}return B},[])},h=d(r),g=function(H){return H.reduce(function(B,z){return B.width>z.width?B:z})};if(!u)return h;for(var p="…",m=function(H){var B=f.slice(0,H),z=U6({breakAll:c,style:l,children:B+p}).wordsWithComputedWidth,te=d(z),Z=te.length>o||g(te).width>Number(i);return[Z,te]},y=0,b=f.length-1,w=0,S;y<=b&&w<=f.length-1;){var A=Math.floor((y+b)/2),O=A-1,T=m(O),k=Q3(T,2),L=k[0],R=k[1],j=m(A),E=Q3(j,1),D=E[0];if(!L&&!D&&(y=A+1),L&&D&&(b=A-1),!L&&D){S=R;break}w++}return S||h},tA=function(t){var r=qt(t)?[]:t.toString().split(q6);return[{words:r}]},XH=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!sl.isSsr){var l,c,u=U6({breakAll:o,children:i,style:a});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;l=f,c=d}else return tA(i);return KH({breakAll:o,children:i,maxLines:s,style:a},l,c,r,n)}return tA(i)},rA="#808080",gc=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,m=t.fill,y=m===void 0?rA:m,b=Z3(t,UH),w=W.useMemo(function(){return XH({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,O=b.angle,T=b.className,k=b.breakAll,L=Z3(b,zH);if(!pn(n)||!pn(a))return null;var R=n+(nt(S)?S:0),j=a+(nt(A)?A:0),E;switch(p){case"start":E=ix("calc(".concat(c,")"));break;case"middle":E=ix("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:E=ix("calc(".concat(w.length-1," * -").concat(s,")"));break}var D=[];if(f){var U=w[0].width,H=b.width;D.push("scale(".concat((nt(H)?H/U:1)/U,")"))}return O&&D.push("rotate(".concat(O,", ").concat(R,", ").concat(j,")")),D.length&&(L.transform=D.join(" ")),W.createElement("text",zy({},bt(L,!0),{x:R,y:j,className:Dt("recharts-text",T),textAnchor:h,fill:y.includes("url")?rA:y}),w.map(function(B,z){var te=B.words.join(k?"":" ");return W.createElement("tspan",{x:R,dy:z===0?E:s,key:"".concat(te,"-").concat(z)},te)}))};function rs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function JH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qb(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===JH?e:ZH,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 ZH(){return 0}function z6(e){return e===null?NaN:+e}function*QH(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eG=qb(rs),d0=eG.right;qb(z6).center;class nA extends Map{constructor(t,r=nG){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(iA(this,t))}has(t){return super.has(iA(this,t))}set(t,r){return super.set(tG(this,t),r)}delete(t){return super.delete(rG(this,t))}}function iA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function tG({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function rG({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function nG(e){return e!==null&&typeof e=="object"?e.valueOf():e}function iG(e=rs){if(e===rs)return W6;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 W6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const aG=Math.sqrt(50),oG=Math.sqrt(10),sG=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>=aG?10:a>=oG?5:a>=sG?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 Wy(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 Hy(e,t,r){return t=+t,e=+e,r=+r,vd(e,t,r)[2]}function Gy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Hy(t,e,r):Hy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}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 oA(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function H6(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?W6:iG(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));H6(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(Iu(e,r,t),i(e[n],a)>0&&Iu(e,r,n);o<s;){for(Iu(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Iu(e,r,s):(++s,Iu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Iu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function lG(e,t,r){if(e=Float64Array.from(QH(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return oA(e);if(t>=1)return aA(e);var n,i=(n-1)*t,a=Math.floor(i),o=aA(H6(e,a).subarray(0,a+1)),s=oA(e.subarray(a+1));return o+(s-o)*(i-a)}}function cG(e,t,r=z6){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 uG(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 Vy=Symbol("implicit");function Ub(){var e=new nA,t=[],r=[],n=Vy;function i(a){let o=e.get(a);if(o===void 0){if(n!==Vy)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 nA;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 Ub(t,r).unknown(n)},Qi.apply(i,arguments),i}function Ef(){var e=Ub().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 m=uG(d).map(function(y){return g+a*y});return r(h?m.reverse():m)}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 G6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return G6(t())},e}function af(){return G6(Ef.apply(null,arguments).paddingInner(1))}function zb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function V6(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function p0(){}var Pf=.7,gd=1/Pf,lc="\\s*([+-]?\\d+)\\s*",Of="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Da="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fG=/^#([0-9a-f]{3,8})$/,hG=new RegExp(`^rgb\\(${lc},${lc},${lc}\\)$`),dG=new RegExp(`^rgb\\(${Da},${Da},${Da}\\)$`),pG=new RegExp(`^rgba\\(${lc},${lc},${lc},${Of}\\)$`),mG=new RegExp(`^rgba\\(${Da},${Da},${Da},${Of}\\)$`),vG=new RegExp(`^hsl\\(${Of},${Da},${Da}\\)$`),gG=new RegExp(`^hsla\\(${Of},${Da},${Da},${Of}\\)$`),sA={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};zb(p0,jf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:lA,formatHex:lA,formatHex8:xG,formatHsl:yG,formatRgb:cA,toString:cA});function lA(){return this.rgb().formatHex()}function xG(){return this.rgb().formatHex8()}function yG(){return Y6(this).formatHsl()}function cA(){return this.rgb().formatRgb()}function jf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=fG.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?uA(t):r===3?new fi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jh(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=hG.exec(e))?new fi(t[1],t[2],t[3],1):(t=dG.exec(e))?new fi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pG.exec(e))?jh(t[1],t[2],t[3],t[4]):(t=mG.exec(e))?jh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vG.exec(e))?dA(t[1],t[2]/100,t[3]/100,1):(t=gG.exec(e))?dA(t[1],t[2]/100,t[3]/100,t[4]):sA.hasOwnProperty(e)?uA(sA[e]):e==="transparent"?new fi(NaN,NaN,NaN,0):null}function uA(e){return new fi(e>>16&255,e>>8&255,e&255,1)}function jh(e,t,r,n){return n<=0&&(e=t=r=NaN),new fi(e,t,r,n)}function bG(e){return e instanceof p0||(e=jf(e)),e?(e=e.rgb(),new fi(e.r,e.g,e.b,e.opacity)):new fi}function Yy(e,t,r,n){return arguments.length===1?bG(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}zb(fi,Yy,V6(p0,{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?Pf:Math.pow(Pf,e),new fi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fi(Gs(this.r),Gs(this.g),Gs(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:fA,formatHex:fA,formatHex8:wG,formatRgb:hA,toString:hA}));function fA(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}`}function wG(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}${Ms((isNaN(this.opacity)?1:this.opacity)*255)}`}function hA(){const e=xd(this.opacity);return`${e===1?"rgb(":"rgba("}${Gs(this.r)}, ${Gs(this.g)}, ${Gs(this.b)}${e===1?")":`, ${e})`}`}function xd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ms(e){return e=Gs(e),(e<16?"0":"")+e.toString(16)}function dA(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 Y6(e){if(e instanceof ga)return new ga(e.h,e.s,e.l,e.opacity);if(e instanceof p0||(e=jf(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 _G(e,t,r,n){return arguments.length===1?Y6(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}zb(ga,_G,V6(p0,{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?Pf:Math.pow(Pf,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(pA(this.h),Ch(this.s),Ch(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("}${pA(this.h)}, ${Ch(this.s)*100}%, ${Ch(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pA(e){return e=(e||0)%360,e<0?e+360:e}function Ch(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 Wb=e=>()=>e;function SG(e,t){return function(r){return e+r*t}}function AG(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 TG(e){return(e=+e)==1?K6:function(t,r){return r-t?AG(t,r,e):Wb(isNaN(t)?r:t)}}function K6(e,t){var r=t-e;return r?SG(e,r):Wb(isNaN(e)?t:e)}const mA=(function e(t){var r=TG(t);function n(i,a){var o=r((i=Yy(i)).r,(a=Yy(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=K6(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 NG(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 EG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function PG(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]=Kc(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 OG(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 jG(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]=Kc(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ky=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ox=new RegExp(Ky.source,"g");function CG(e){return function(){return e}}function kG(e){return function(t){return e(t)+""}}function LG(e,t){var r=Ky.lastIndex=ox.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Ky.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]?kG(l[0].x):CG(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 Kc(e,t){var r=typeof t,n;return t==null||r==="boolean"?Wb(t):(r==="number"?yd:r==="string"?(n=jf(t))?(t=n,mA):LG:t instanceof jf?mA:t instanceof Date?OG:EG(t)?NG:Array.isArray(t)?PG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?jG:yd)(e,t)}function Hb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function IG(e,t){t===void 0&&(t=e,e=Kc);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 FG(e){return function(){return e}}function bd(e){return+e}var vA=[0,1];function ri(e){return e}function Xy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:FG(isNaN(t)?NaN:.5)}function MG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function DG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Xy(i,n),a=r(o,a)):(n=Xy(n,i),a=r(a,o)),function(s){return a(n(s))}}function RG(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]=Xy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=d0(e,s,1,n)-1;return a[l](i[l](s))}}function m0(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Op(){var e=vA,t=vA,r=Kc,n,i,a,o=ri,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==ri&&(o=MG(e[0],e[d-1])),s=d>2?RG:DG,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=Hb,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 Gb(){return Op()(ri,ri)}function BG(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 xc(e){return e=wd(Math.abs(e)),e?e[1]:NaN}function $G(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 qG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var UG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cf(e){if(!(t=UG.exec(e)))throw new Error("invalid format: "+e);var t;return new Vb({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]})}Cf.prototype=Vb.prototype;function Vb(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+""}Vb.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 zG(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 WG(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 gA(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 xA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:BG,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)=>gA(e*100,t),r:gA,s:WG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yA(e){return e}var bA=Array.prototype.map,wA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HG(e){var t=e.grouping===void 0||e.thousands===void 0?yA:$G(bA.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?yA:qG(bA.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=Cf(f);var h=f.fill,g=f.align,p=f.sign,m=f.symbol,y=f.zero,b=f.width,w=f.comma,S=f.precision,A=f.trim,O=f.type;O==="n"?(w=!0,O="g"):xA[O]||(S===void 0&&(S=12),A=!0,O="g"),(y||h==="0"&&g==="=")&&(y=!0,h="0",g="=");var T=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?r:m==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),k=(m==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),L=xA[O],R=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function j(E){var D=T,U=k,H,B,z;if(O==="c")U=L(E)+U,E="";else{E=+E;var te=E<0||1/E<0;if(E=isNaN(E)?l:L(Math.abs(E),S),A&&(E=zG(E)),te&&+E==0&&p!=="+"&&(te=!1),D=(te?p==="("?p:s:p==="-"||p==="("?"":p)+D,U=(O==="s"&&!isNaN(E)&&_d!==void 0?wA[8+_d/3]:"")+U+(te&&p==="("?")":""),R){for(H=-1,B=E.length;++H<B;)if(z=E.charCodeAt(H),48>z||z>57){U=(z===46?i+E.slice(H+1):E.slice(H))+U,E=E.slice(0,H);break}}}w&&!y&&(E=t(E,1/0));var Z=D.length+E.length+U.length,ee=Z<b?new Array(b-Z+1).join(h):"";switch(w&&y&&(E=t(ee+E,ee.length?b-U.length:1/0),ee=""),g){case"<":E=D+E+U+ee;break;case"=":E=D+ee+E+U;break;case"^":E=ee.slice(0,Z=ee.length>>1)+D+E+U+ee.slice(Z);break;default:E=ee+D+E+U;break}return a(E)}return j.toString=function(){return f+""},j}function u(f,d){var h=Math.max(-8,Math.min(8,Math.floor(xc(d)/3)))*3,g=Math.pow(10,-h),p=c((f=Cf(f),f.type="f",f),{suffix:wA[8+h/3]});return function(m){return p(g*m)}}return{format:c,formatPrefix:u}}var kh,Yb,X6;GG({thousands:",",grouping:[3],currency:["$",""]});function GG(e){return kh=HG(e),Yb=kh.format,X6=kh.formatPrefix,kh}function VG(e){return Math.max(0,-xc(Math.abs(e)))}function YG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xc(t)/3)))*3-xc(Math.abs(e)))}function KG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xc(t)-xc(e))+1}function J6(e,t,r,n){var i=Gy(e,t,r),a;switch(n=Cf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=YG(i,o))&&(n.precision=a),X6(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=KG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=VG(i))&&(n.precision=a-(n.type==="%")*2);break}}return Yb(n)}function hs(e){var t=e.domain;return e.ticks=function(r){var n=t();return Wy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return J6(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=Hy(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=Gb();return e.copy=function(){return m0(e,Sd())},Qi.apply(e,arguments),hs(e)}function Z6(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 Z6(e).unknown(t)},e=arguments.length?Array.from(e,bd):[0,1],hs(r)}function Q6(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 _A(e){return Math.log(e)}function SA(e){return Math.exp(e)}function XG(e){return-Math.log(-e)}function JG(e){return-Math.exp(-e)}function ZG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function QG(e){return e===10?ZG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eV(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 AA(e){return(t,r)=>-e(-t,r)}function Kb(e){const t=e(_A,SA),r=t.domain;let n=10,i,a;function o(){return i=eV(n),a=QG(n),r()[0]<0?(i=AA(i),a=AA(a),e(XG,JG)):e(_A,SA),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 m=s==null?10:+s;let y=[];if(!(n%1)&&h-d<m){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<m&&(y=Wy(c,u,m))}else y=Wy(d,h,Math.min(h-d,m)).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=Cf(l)).precision==null&&(l.trim=!0),l=Yb(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(Q6(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function ej(){const e=Kb(Op()).domain([1,10]);return e.copy=()=>m0(e,ej()).base(e.base()),Qi.apply(e,arguments),e}function TA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Xb(e){var t=1,r=e(TA(t),NA(t));return r.constant=function(n){return arguments.length?e(TA(t=+n),NA(t)):t},hs(r)}function tj(){var e=Xb(Op());return e.copy=function(){return m0(e,tj()).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 tV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function rV(e){return e<0?-e*e:e*e}function Jb(e){var t=e(ri,ri),r=1;function n(){return r===1?e(ri,ri):r===.5?e(tV,rV):e(EA(r),EA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},hs(t)}function Zb(){var e=Jb(Op());return e.copy=function(){return m0(e,Zb()).exponent(e.exponent())},Qi.apply(e,arguments),e}function nV(){return Zb.apply(null,arguments).exponent(.5)}function PA(e){return Math.sign(e)*e*e}function iV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rj(){var e=Gb(),t=[0,1],r=!1,n;function i(a){var o=iV(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(PA(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(PA)),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 rj(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qi.apply(i,arguments),hs(i)}function nj(){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]=cG(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[d0(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 nj().domain(e).range(t).unknown(n)},Qi.apply(a,arguments)}function ij(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[d0(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 ij().domain([e,t]).range(i).unknown(a)},Qi.apply(hs(o),arguments)}function aj(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[d0(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 aj().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,Qb=wo*7,OA=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 e5=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());e5.range;const t5=mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getUTCMinutes());t5.range;const r5=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());r5.range;const n5=mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getUTCHours());n5.range;const v0=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);v0.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 oj=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));oj.range;function ll(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)/Qb)}const Cp=ll(0),Td=ll(1),aV=ll(2),oV=ll(3),yc=ll(4),sV=ll(5),lV=ll(6);Cp.range;Td.range;aV.range;oV.range;yc.range;sV.range;lV.range;function cl(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)/Qb)}const kp=cl(0),Nd=cl(1),cV=cl(2),uV=cl(3),bc=cl(4),fV=cl(5),hV=cl(6);kp.range;Nd.range;cV.range;uV.range;bc.range;fV.range;hV.range;const i5=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());i5.range;const a5=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());a5.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 sj(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,Qb],[t,1,OA],[t,3,3*OA],[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=qb(([,,m])=>m).right(o,d);if(h===o.length)return e.every(Gy(c/cx,u/cx,f));if(h===0)return Ad.every(Math.max(Gy(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[dV,pV]=sj(So,a5,kp,oj,n5,t5),[mV,vV]=sj(_o,i5,Cp,v0,r5,e5);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 Fu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function gV(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=Mu(i),u=Du(i),f=Mu(a),d=Du(a),h=Mu(o),g=Du(o),p=Mu(s),m=Du(s),y=Mu(l),b=Du(l),w={a:z,A:te,b:Z,B:ee,c:null,d:FA,e:FA,f:$V,g:XV,G:ZV,H:DV,I:RV,j:BV,L:lj,m:qV,M:UV,p:ce,q:P,Q:RA,s:BA,S:zV,u:WV,U:HV,V:GV,w:VV,W:YV,x:null,X:null,y:KV,Y:JV,Z:QV,"%":DA},S={a:I,A:M,b:q,B:Y,c:null,d:MA,e:MA,f:nY,g:dY,G:mY,H:eY,I:tY,j:rY,L:uj,m:iY,M:aY,p:fe,q:ne,Q:RA,s:BA,S:oY,u:sY,U:lY,V:cY,w:uY,W:fY,x:null,X:null,y:hY,Y:pY,Z:vY,"%":DA},A={a:R,A:j,b:E,B:D,c:U,d:LA,e:LA,f:LV,g:kA,G:CA,H:IA,I:IA,j:OV,L:kV,m:PV,M:jV,p:L,q:EV,Q:FV,s:MV,S:CV,u:_V,U:SV,V:AV,w:wV,W:TV,x:H,X:B,y:kA,Y:CA,Z:NV,"%":IV};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),S.x=O(r,S),S.X=O(n,S),S.c=O(t,S);function O(K,he){return function(be){var se=[],Le=-1,Se=0,Ae=K.length,le,Me,Qe;for(be instanceof Date||(be=new Date(+be));++Le<Ae;)K.charCodeAt(Le)===37&&(se.push(K.slice(Se,Le)),(Me=jA[le=K.charAt(++Le)])!=null?le=K.charAt(++Le):Me=le==="e"?" ":"0",(Qe=he[le])&&(le=Qe(be,Me)),se.push(le),Se=Le+1);return se.push(K.slice(Se,Le)),se.join("")}}function T(K,he){return function(be){var se=Fu(1900,void 0,1),Le=k(se,K,be+="",0),Se,Ae;if(Le!=be.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(he&&!("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?(Se=fx(Fu(se.y,0,1)),Ae=Se.getUTCDay(),Se=Ae>4||Ae===0?Nd.ceil(Se):Nd(Se),Se=jp.offset(Se,(se.V-1)*7),se.y=Se.getUTCFullYear(),se.m=Se.getUTCMonth(),se.d=Se.getUTCDate()+(se.w+6)%7):(Se=ux(Fu(se.y,0,1)),Ae=Se.getDay(),Se=Ae>4||Ae===0?Td.ceil(Se):Td(Se),Se=v0.offset(Se,(se.V-1)*7),se.y=Se.getFullYear(),se.m=Se.getMonth(),se.d=Se.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),Ae="Z"in se?fx(Fu(se.y,0,1)).getUTCDay():ux(Fu(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ae+5)%7:se.w+se.U*7-(Ae+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,fx(se)):ux(se)}}function k(K,he,be,se){for(var Le=0,Se=he.length,Ae=be.length,le,Me;Le<Se;){if(se>=Ae)return-1;if(le=he.charCodeAt(Le++),le===37){if(le=he.charAt(Le++),Me=A[le in jA?he.charAt(Le++):le],!Me||(se=Me(K,be,se))<0)return-1}else if(le!=be.charCodeAt(se++))return-1}return se}function L(K,he,be){var se=c.exec(he.slice(be));return se?(K.p=u.get(se[0].toLowerCase()),be+se[0].length):-1}function R(K,he,be){var se=h.exec(he.slice(be));return se?(K.w=g.get(se[0].toLowerCase()),be+se[0].length):-1}function j(K,he,be){var se=f.exec(he.slice(be));return se?(K.w=d.get(se[0].toLowerCase()),be+se[0].length):-1}function E(K,he,be){var se=y.exec(he.slice(be));return se?(K.m=b.get(se[0].toLowerCase()),be+se[0].length):-1}function D(K,he,be){var se=p.exec(he.slice(be));return se?(K.m=m.get(se[0].toLowerCase()),be+se[0].length):-1}function U(K,he,be){return k(K,t,he,be)}function H(K,he,be){return k(K,r,he,be)}function B(K,he,be){return k(K,n,he,be)}function z(K){return o[K.getDay()]}function te(K){return a[K.getDay()]}function Z(K){return l[K.getMonth()]}function ee(K){return s[K.getMonth()]}function ce(K){return i[+(K.getHours()>=12)]}function P(K){return 1+~~(K.getMonth()/3)}function I(K){return o[K.getUTCDay()]}function M(K){return a[K.getUTCDay()]}function q(K){return l[K.getUTCMonth()]}function Y(K){return s[K.getUTCMonth()]}function fe(K){return i[+(K.getUTCHours()>=12)]}function ne(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var he=O(K+="",w);return he.toString=function(){return K},he},parse:function(K){var he=T(K+="",!1);return he.toString=function(){return K},he},utcFormat:function(K){var he=O(K+="",S);return he.toString=function(){return K},he},utcParse:function(K){var he=T(K+="",!0);return he.toString=function(){return K},he}}}var jA={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,xV=/^%/,yV=/[\\^$*+?|[\]().{}]/g;function Qt(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 bV(e){return e.replace(yV,"\\$&")}function Mu(e){return new RegExp("^(?:"+e.map(bV).join("|")+")","i")}function Du(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function wV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function _V(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function SV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function AV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function TV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function CA(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kA(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 NV(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 EV(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 PV(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 LA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function OV(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 IA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function jV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function CV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function kV(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function LV(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 IV(e,t,r){var n=xV.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function FV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function MV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function FA(e,t){return Qt(e.getDate(),t,2)}function DV(e,t){return Qt(e.getHours(),t,2)}function RV(e,t){return Qt(e.getHours()%12||12,t,2)}function BV(e,t){return Qt(1+v0.count(_o(e),e),t,3)}function lj(e,t){return Qt(e.getMilliseconds(),t,3)}function $V(e,t){return lj(e,t)+"000"}function qV(e,t){return Qt(e.getMonth()+1,t,2)}function UV(e,t){return Qt(e.getMinutes(),t,2)}function zV(e,t){return Qt(e.getSeconds(),t,2)}function WV(e){var t=e.getDay();return t===0?7:t}function HV(e,t){return Qt(Cp.count(_o(e)-1,e),t,2)}function cj(e){var t=e.getDay();return t>=4||t===0?yc(e):yc.ceil(e)}function GV(e,t){return e=cj(e),Qt(yc.count(_o(e),e)+(_o(e).getDay()===4),t,2)}function VV(e){return e.getDay()}function YV(e,t){return Qt(Td.count(_o(e)-1,e),t,2)}function KV(e,t){return Qt(e.getFullYear()%100,t,2)}function XV(e,t){return e=cj(e),Qt(e.getFullYear()%100,t,2)}function JV(e,t){return Qt(e.getFullYear()%1e4,t,4)}function ZV(e,t){var r=e.getDay();return e=r>=4||r===0?yc(e):yc.ceil(e),Qt(e.getFullYear()%1e4,t,4)}function QV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Qt(t/60|0,"0",2)+Qt(t%60,"0",2)}function MA(e,t){return Qt(e.getUTCDate(),t,2)}function eY(e,t){return Qt(e.getUTCHours(),t,2)}function tY(e,t){return Qt(e.getUTCHours()%12||12,t,2)}function rY(e,t){return Qt(1+jp.count(So(e),e),t,3)}function uj(e,t){return Qt(e.getUTCMilliseconds(),t,3)}function nY(e,t){return uj(e,t)+"000"}function iY(e,t){return Qt(e.getUTCMonth()+1,t,2)}function aY(e,t){return Qt(e.getUTCMinutes(),t,2)}function oY(e,t){return Qt(e.getUTCSeconds(),t,2)}function sY(e){var t=e.getUTCDay();return t===0?7:t}function lY(e,t){return Qt(kp.count(So(e)-1,e),t,2)}function fj(e){var t=e.getUTCDay();return t>=4||t===0?bc(e):bc.ceil(e)}function cY(e,t){return e=fj(e),Qt(bc.count(So(e),e)+(So(e).getUTCDay()===4),t,2)}function uY(e){return e.getUTCDay()}function fY(e,t){return Qt(Nd.count(So(e)-1,e),t,2)}function hY(e,t){return Qt(e.getUTCFullYear()%100,t,2)}function dY(e,t){return e=fj(e),Qt(e.getUTCFullYear()%100,t,2)}function pY(e,t){return Qt(e.getUTCFullYear()%1e4,t,4)}function mY(e,t){var r=e.getUTCDay();return e=r>=4||r===0?bc(e):bc.ceil(e),Qt(e.getUTCFullYear()%1e4,t,4)}function vY(){return"+0000"}function DA(){return"%"}function RA(e){return+e}function BA(e){return Math.floor(+e/1e3)}var Ul,hj,dj;gY({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 gY(e){return Ul=gV(e),hj=Ul.format,Ul.parse,dj=Ul.utcFormat,Ul.utcParse,Ul}function xY(e){return new Date(e)}function yY(e){return e instanceof Date?+e:+new Date(+e)}function o5(e,t,r,n,i,a,o,s,l,c){var u=Gb(),f=u.invert,d=u.domain,h=c(".%L"),g=c(":%S"),p=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),b=c("%b %d"),w=c("%B"),S=c("%Y");function A(O){return(l(O)<O?h:s(O)<O?g:o(O)<O?p:a(O)<O?m:n(O)<O?i(O)<O?y:b:r(O)<O?w:S)(O)}return u.invert=function(O){return new Date(f(O))},u.domain=function(O){return arguments.length?d(Array.from(O,yY)):d().map(xY)},u.ticks=function(O){var T=d();return e(T[0],T[T.length-1],O??10)},u.tickFormat=function(O,T){return T==null?A:c(T)},u.nice=function(O){var T=d();return(!O||typeof O.range!="function")&&(O=t(T[0],T[T.length-1],O??10)),O?d(Q6(T,O)):u},u.copy=function(){return m0(u,o5(e,t,r,n,i,a,o,s,l,c))},u}function bY(){return Qi.apply(o5(mV,vV,_o,i5,Cp,v0,r5,e5,Ds,hj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wY(){return Qi.apply(o5(dV,pV,So,a5,kp,jp,n5,t5,Ds,dj).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(Kc),c.rangeRound=u(Hb),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 pj(){var e=hs(Lp()(ri));return e.copy=function(){return ds(e,pj())},Po.apply(e,arguments)}function mj(){var e=Kb(Lp()).domain([1,10]);return e.copy=function(){return ds(e,mj()).base(e.base())},Po.apply(e,arguments)}function vj(){var e=Xb(Lp());return e.copy=function(){return ds(e,vj()).constant(e.constant())},Po.apply(e,arguments)}function s5(){var e=Jb(Lp());return e.copy=function(){return ds(e,s5()).exponent(e.exponent())},Po.apply(e,arguments)}function _Y(){return s5.apply(null,arguments).exponent(.5)}function gj(){var e=[],t=ri;function r(n){if(n!=null&&!isNaN(n=+n))return t((d0(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)=>lG(e,a/n))},r.copy=function(){return gj(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(m){var y,b,w;return arguments.length?([y,b,w]=m,c=IG(p,[y,b,w]),h):[c(0),c(.5),c(1)]}}return h.range=g(Kc),h.rangeRound=g(Hb),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 xj(){var e=hs(Ip()(ri));return e.copy=function(){return ds(e,xj())},Po.apply(e,arguments)}function yj(){var e=Kb(Ip()).domain([.1,1,10]);return e.copy=function(){return ds(e,yj()).base(e.base())},Po.apply(e,arguments)}function bj(){var e=Xb(Ip());return e.copy=function(){return ds(e,bj()).constant(e.constant())},Po.apply(e,arguments)}function l5(){var e=Jb(Ip());return e.copy=function(){return ds(e,l5()).exponent(e.exponent())},Po.apply(e,arguments)}function SY(){return l5.apply(null,arguments).exponent(.5)}const $A=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ef,scaleDiverging:xj,scaleDivergingLog:yj,scaleDivergingPow:l5,scaleDivergingSqrt:SY,scaleDivergingSymlog:bj,scaleIdentity:Z6,scaleImplicit:Vy,scaleLinear:Sd,scaleLog:ej,scaleOrdinal:Ub,scalePoint:af,scalePow:Zb,scaleQuantile:nj,scaleQuantize:ij,scaleRadial:rj,scaleSequential:pj,scaleSequentialLog:mj,scaleSequentialPow:s5,scaleSequentialQuantile:gj,scaleSequentialSqrt:_Y,scaleSequentialSymlog:vj,scaleSqrt:nV,scaleSymlog:tj,scaleThreshold:aj,scaleTime:bY,scaleUtc:wY,tickFormat:J6},Symbol.toStringTag,{value:"Module"}));var hx,qA;function Fp(){if(qA)return hx;qA=1;var e=Gc();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,UA;function wj(){if(UA)return dx;UA=1;function e(t,r){return t>r}return dx=e,dx}var px,zA;function AY(){if(zA)return px;zA=1;var e=Fp(),t=wj(),r=Yc();function n(i){return i&&i.length?e(i,r,t):void 0}return px=n,px}var TY=AY();const Mp=ur(TY);var mx,WA;function _j(){if(WA)return mx;WA=1;function e(t,r){return t<r}return mx=e,mx}var vx,HA;function NY(){if(HA)return vx;HA=1;var e=Fp(),t=_j(),r=Yc();function n(i){return i&&i.length?e(i,r,t):void 0}return vx=n,vx}var EY=NY();const Dp=ur(EY);var gx,GA;function PY(){if(GA)return gx;GA=1;var e=Ab(),t=Wa(),r=j6(),n=gi();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return gx=i,gx}var xx,VA;function OY(){if(VA)return xx;VA=1;var e=P6(),t=PY();function r(n,i){return e(t(n,i),1)}return xx=r,xx}var jY=OY();const CY=ur(jY);var yx,YA;function kY(){if(YA)return yx;YA=1;var e=Db();function t(r,n){return e(r,n)}return yx=t,yx}var LY=kY();const g0=ur(LY);var Xc=1e9,IY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u5,Fr=!0,Ji="[DecimalError] ",Vs=Ji+"Invalid argument: ",c5=Ji+"Exponent out of range: ",Jc=Math.floor,js=Math.pow,FY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ci,yn=1e7,kr=7,Sj=9007199254740991,Ed=Jc(Sj/kr),pt={};pt.absoluteValue=pt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pt.comparedTo=pt.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};pt.decimalPlaces=pt.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};pt.dividedBy=pt.div=function(e){return go(this,new this.constructor(e))};pt.dividedToIntegerBy=pt.idiv=function(e){var t=this,r=t.constructor;return Tr(go(t,new r(e),0,1),r.precision)};pt.equals=pt.eq=function(e){return!this.cmp(e)};pt.exponent=function(){return on(this)};pt.greaterThan=pt.gt=function(e){return this.cmp(e)>0};pt.greaterThanOrEqualTo=pt.gte=function(e){return this.cmp(e)>=0};pt.isInteger=pt.isint=function(){return this.e>this.d.length-2};pt.isNegative=pt.isneg=function(){return this.s<0};pt.isPositive=pt.ispos=function(){return this.s>0};pt.isZero=function(){return this.s===0};pt.lessThan=pt.lt=function(e){return this.cmp(e)<0};pt.lessThanOrEqualTo=pt.lte=function(e){return this.cmp(e)<1};pt.logarithm=pt.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(kf(r,a),kf(e,a),a),Fr=!0,Tr(t,i))};pt.minus=pt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Nj(t,e):Aj(t,(e.s=-e.s,e))};pt.modulo=pt.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)):Tr(new n(r),i)};pt.naturalExponential=pt.exp=function(){return Tj(this)};pt.naturalLogarithm=pt.ln=function(){return kf(this)};pt.negated=pt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pt.plus=pt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Aj(t,e):Nj(t,(e.s=-e.s,e))};pt.precision=pt.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vs+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};pt.squareRoot=pt.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=Jc((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(Tr(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fr=!0,Tr(n,r)};pt.times=pt.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?Tr(e,f.precision):e};pt.toDecimalPlaces=pt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:($a(e,0,Xc),t===void 0?t=n.rounding:$a(t,0,8),Tr(r,e+on(r)+1,t))};pt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Zs(n,!0):($a(e,0,Xc),t===void 0?t=i.rounding:$a(t,0,8),n=Tr(new i(n),e+1,t),r=Zs(n,!0,e+1)),r};pt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Zs(i):($a(e,0,Xc),t===void 0?t=a.rounding:$a(t,0,8),n=Tr(new a(i),e+on(i)+1,t),r=Zs(n.abs(),!1,e+on(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};pt.toInteger=pt.toint=function(){var e=this,t=e.constructor;return Tr(new t(e),on(e)+1,t.rounding)};pt.toNumber=function(){return+this};pt.toPower=pt.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 Tr(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=Sj){for(i=new l(Ci),t=Math.ceil(n/kr+4),Fr=!1;r%2&&(i=i.times(s),XA(i.d,t)),r=Jc(r/2),r!==0;)s=s.times(s),XA(s.d,t);return Fr=!0,e.s<0?new l(Ci).div(i):Tr(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(kf(s,n+c)),Fr=!0,i=Tj(i),i.s=a,i};pt.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=on(i),n=Zs(i,r<=a.toExpNeg||r>=a.toExpPos)):($a(e,1,Xc),t===void 0?t=a.rounding:$a(t,0,8),i=Tr(new a(i),e,t),r=on(i),n=Zs(i,e<=r||r<=a.toExpNeg,e)),n};pt.toSignificantDigits=pt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):($a(e,1,Xc),t===void 0?t=n.rounding:$a(t,0,8)),Tr(new n(r),e,t)};pt.toString=pt.valueOf=pt.val=pt.toJSON=pt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=on(e),r=e.constructor;return Zs(e,t<=r.toExpNeg||t>=r.toExpPos)};function Aj(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?Tr(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?Tr(t,f):t}function $a(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vs+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,m,y,b,w,S,A,O,T,k,L=n.constructor,R=n.s==i.s?1:-1,j=n.d,E=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=E.length,A=j.length,h=new L(R),g=h.d=[],c=0;E[c]==(j[c]||0);)++c;if(E[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,E=E[0],b++;(c<A||u)&&b--;c++)w=u*yn+(j[c]||0),g[c]=w/E|0,u=w%E|0;else{for(u=yn/(E[0]+1)|0,u>1&&(E=e(E,u),j=e(j,u),T=E.length,A=j.length),S=T,p=j.slice(0,T),m=p.length;m<T;)p[m++]=0;k=E.slice(),k.unshift(0),O=E[0],E[1]>=yn/2&&++O;do u=0,s=t(E,p,T,m),s<0?(y=p[0],T!=m&&(y=y*yn+(p[1]||0)),u=y/O|0,u>1?(u>=yn&&(u=yn-1),f=e(E,u),d=f.length,m=p.length,s=t(f,p,d,m),s==1&&(u--,r(f,T<d?k:E,d))):(u==0&&(s=u=1),f=E.slice()),d=f.length,d<m&&f.unshift(0),r(p,f,m),s==-1&&(m=p.length,s=t(E,p,T,m),s<1&&(u++,r(p,T<m?k:E,m))),m=p.length):s===0&&(u++,p=[0]),g[c++]=u,s&&p[0]?p[m++]=j[S]||0:(p=[j[S]],m=1);while((S++<A||p[0]!==void 0)&&b--)}return g[0]||g.shift(),h.e=l,Tr(h,o?a+on(h)+1:a)}})();function Tj(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(c5+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=Tr(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=Tr(a.times(a),s);return u.precision=f,t==null?(Fr=!0,Tr(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 Tr(new e(e.LN10),t)}function Yo(e){for(var t="";e--;)t+="0";return t}function kf(e,t){var r,n,i,a,o,s,l,c,u,f=1,d=10,h=e,g=h.d,p=h.constructor,m=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=m):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,m).times(a+""),h=kf(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=m,t==null?(Fr=!0,Tr(h,m)):h;for(s=o=h=go(h.minus(Ci),h.plus(Ci),c),u=Tr(h.times(h),c),i=3;;){if(o=Tr(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,m).times(a+""))),s=go(s,new p(f),c),p.precision=m,t==null?(Fr=!0,Tr(s,m)):s;s=l,i+=2}}function KA(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=Jc(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>Ed||e.e<-Ed))throw Error(c5+r)}else e.s=0,e.e=0,e.d=[0];return e}function Tr(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=Jc(-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>Ed||e.e<-Ed))throw Error(c5+on(e));return e}function Nj(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?Tr(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?Tr(t,h):t):new d(0)}function Zs(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 XA(e,t){if(e.length>t)return e.length=t,!0}function Ej(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(Vs+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 KA(o,a.toString())}else if(typeof a!="string")throw Error(Vs+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,FY.test(a))KA(o,a);else throw Error(Vs+a)}if(i.prototype=pt,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=Ej,i.config=i.set=MY,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 MY(e){if(!e||typeof e!="object")throw Error(Ji+"Object expected");var t,r,n,i=["precision",1,Xc,"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(Jc(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vs+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vs+r+": "+n);return this}var u5=Ej(IY);Ci=new u5(1);const wr=u5;function DY(e){return qY(e)||$Y(e)||BY(e)||RY()}function RY(){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 BY(e,t){if(e){if(typeof e=="string")return Jy(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 Jy(e,t)}}function $Y(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qY(e){if(Array.isArray(e))return Jy(e)}function Jy(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 UY=function(t){return t},Pj={},Oj=function(t){return t===Pj},JA=function(t){return function r(){return arguments.length===0||arguments.length===1&&Oj(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},zY=function e(t,r){return t===1?r:JA(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!==Pj}).length;return o>=t?r.apply(void 0,i):e(t-o,JA(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 Oj(f)?l.shift():f});return r.apply(void 0,DY(u).concat(l))}))})},Rp=function(t){return zY(t.length,t)},Zy=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},WY=Rp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),HY=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return UY;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))}},Qy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jj=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 GY(e){var t;return e===0?t=1:t=Math.floor(new wr(e).abs().log(10).toNumber())+1,t}function VY(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 YY=Rp(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),KY=Rp(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),XY=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:VY,getDigitCount:GY,interpolateNumber:YY,uninterpolateNumber:KY,uninterpolateTruncation:XY};function e2(e){return QY(e)||ZY(e)||Cj(e)||JY()}function JY(){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 ZY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function QY(e){if(Array.isArray(e))return t2(e)}function Lf(e,t){return rK(e)||tK(e,t)||Cj(e,t)||eK()}function eK(){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 Cj(e,t){if(e){if(typeof e=="string")return t2(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 t2(e,t)}}function t2(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 tK(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 rK(e){if(Array.isArray(e))return e}function kj(e){var t=Lf(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Lj(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 nK(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=HY(WY(function(l){return i.add(new wr(l-o).mul(n)).toNumber()}),Zy);return s(0,t)}function Ij(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=Lj(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?Ij(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 iK(e){var t=Lf(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=kj([r,n]),l=Lf(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(e2(Zy(0,i-1).map(function(){return 1/0}))):[].concat(e2(Zy(0,i-1).map(function(){return-1/0})),[u]);return r>n?Qy(f):f}if(c===u)return nK(c,i,a);var d=Ij(c,u,o,a),h=d.step,g=d.tickMin,p=d.tickMax,m=Bp.rangeStep(g,p.add(new wr(.1).mul(h)),h);return r>n?Qy(m):m}function aK(e,t){var r=Lf(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=kj([n,i]),s=Lf(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=Lj(new wr(c).sub(l).div(u-1),a,0),d=[].concat(e2(Bp.rangeStep(new wr(l),new wr(c).sub(new wr(.99).mul(f)),f)),[c]);return n>i?Qy(d):d}var oK=jj(iK),sK=jj(aK),lK=process.env.NODE_ENV==="production",wx="Invariant failed";function hi(e,t){if(lK)throw new Error(wx);var r=typeof t=="function"?t():t,n=r?"".concat(wx,": ").concat(r):wx;throw new Error(n)}var cK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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)}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 uK(e,t){return pK(e)||dK(e,t)||hK(e,t)||fK()}function fK(){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 hK(e,t){if(e){if(typeof e=="string")return ZA(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 ZA(e,t)}}function ZA(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 dK(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 pK(e){if(Array.isArray(e))return e}function mK(e,t){if(e==null)return{};var r=vK(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 vK(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 gK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xK(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,Dj(n.key),n)}}function yK(e,t,r){return t&&xK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bK(e,t,r){return t=Od(t),wK(e,Fj()?Reflect.construct(t,r||[],Od(e).constructor):t.apply(e,r))}function wK(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 _K(e)}function _K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fj=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Od(e)}function SK(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&&r2(e,t)}function r2(e,t){return r2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},r2(e,t)}function Mj(e,t,r){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dj(e){var t=AK(e,"string");return wc(t)=="symbol"?t:t+""}function AK(e,t){if(wc(e)!="object"||!e)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 String(e)}var x0=(function(e){function t(){return gK(this,t),bK(this,t,arguments)}return SK(t,e),yK(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=mK(n,cK),h=bt(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 m=c(p,s),y=m.x,b=m.y,w=m.value,S=m.errorVal;if(!S)return null;var A=[],O,T;if(Array.isArray(S)){var k=uK(S,2);O=k[0],T=k[1]}else O=T=S;if(a==="vertical"){var L=u.scale,R=b+i,j=R+o,E=R-o,D=L(w-O),U=L(w+T);A.push({x1:U,y1:j,x2:U,y2:E}),A.push({x1:D,y1:R,x2:U,y2:R}),A.push({x1:D,y1:j,x2:D,y2:E})}else if(a==="horizontal"){var H=f.scale,B=y+i,z=B-o,te=B+o,Z=H(w-O),ee=H(w+T);A.push({x1:z,y1:ee,x2:te,y2:ee}),A.push({x1:B,y1:Z,x2:B,y2:ee}),A.push({x1:z,y1:Z,x2:te,y2:Z})}return W.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 W.createElement("line",Pd({},ce,{key:"line-".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))}))});return W.createElement(lr,{className:"recharts-errorBars"},g)}}])})(W.Component);Mj(x0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Mj(x0,"displayName","ErrorBar");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,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?QA(Object(r),!0).forEach(function(n){TK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TK(e,t,r){return t=NK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NK(e){var t=EK(e,"string");return If(t)=="symbol"?t:t+""}function EK(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)}var Rj=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ei(r,Hs);if(!o)return null;var s=Hs.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,m=h.legendType,y=h.hide;return{inactive:y,dataKey:g,type:l.iconType||m||"square",color:f5(f),value:p||g,payload:h}}),Ts(Ts(Ts({},l),Hs.getWithHeight(o,i)),{},{payload:c,item:o})};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 eT(e){return CK(e)||jK(e)||OK(e)||PK()}function PK(){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 OK(e,t){if(e){if(typeof e=="string")return n2(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 n2(e,t)}}function jK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CK(e){if(Array.isArray(e))return n2(e)}function n2(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 tT(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?tT(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cc(e,t,r){return t=kK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kK(e){var t=LK(e,"string");return Ff(t)=="symbol"?t:t+""}function LK(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 ii(e,t,r){return qt(e)||qt(t)?r:pn(t)?Ki(e,t,r):jt(t)?t(e):r}function of(e,t,r,n){var i=CY(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!qt(s)}):i;return o.map(function(s){return pn(s)||s instanceof Date?s:""})}var IK=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 m=d+l[1]-l[0];g[0]=Math.min(f,(m+f)/2),g[1]=Math.max(f,(m+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),w=Math.max(u,d);if(t>(b+f)/2&&t<=(w+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},f5=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},FK=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,m=g.cateAxisId,y=p.filter(function(T){return mo(T.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,w=b!==void 0?zr(zr({},b),y[0].props):y[0].props,S=w.barSize,A=w[m];o[A]||(o[A]=[]);var O=qt(S)?r:S;o[A].push({item:y[0],stackList:y.slice(1),barSize:qt(O)?void 0:ba(O,n,0)})}}return o},MK=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,m={offset:p-c,size:0};u=o.reduce(function(S,A){var O={item:A.item,position:{offset:m.offset+m.size+c,size:d?h:A.barSize}},T=[].concat(eT(S),[O]);return m=T[T.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(k){T.push({item:k,position:m})}),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 w=s===+s?Math.min(b,s):b;u=o.reduce(function(S,A,O){var T=[].concat(eT(S),[{item:A.item,position:{offset:y+(b+c)*O+(b-w)/2,size:w}}]);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},DK=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=Rj({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),{},cc({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&g!=="middle"&&nt(t[g]))return zr(zr({},t),{},cc({},g,t[g]+(d||0)))}return t},RK=function(t,r,n){return qt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Bj=function(t,r,n,i,a){var o=r.props.children,s=Xi(o,x0).filter(function(c){return RK(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(qt(f))return c;var d=Array.isArray(f)?[Dp(f),Mp(f)]:[f,f],h=l.reduce(function(g,p){var m=ii(u,p,0),y=d[0]-Math.abs(Array.isArray(m)?m[0]:m),b=d[1]+Math.abs(Array.isArray(m)?m[1]:m);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},BK=function(t,r,n,i,a){var o=r.map(function(s){return Bj(t,s,n,a,i)}).filter(function(s){return!qt(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},$j=function(t,r,n,i,a){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&Bj(t,l,c,i)||of(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},[])},qj=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Uj=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!u0(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,Lh=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},zj=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:af(),realScaleType:"point"}:a==="category"?{scale:Ef(),realScaleType:"band"}:{scale:Sd(),realScaleType:"linear"};if(Js(i)){var l="scale".concat(_p(i));return{scale:($A[l]||af)(),realScaleType:$A[l]?l:"point"}}return jt(i)?{scale:i}:{scale:af(),realScaleType:"point"}},rT=1e-4,Wj=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])-rT,o=Math.max(i[0],i[1])+rT,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},$K=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},qK=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},UK=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=u0(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])}},zK=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=u0(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)}},WK={sign:UK,expand:CU,none:hc,silhouette:kU,wiggle:LU,positive:zK},HK=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=WK[n],o=jU().keys(i).value(function(s,l){return+ii(s,l,0)}).order(Ly).offset(a);return o(t)},GK=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,m=g.hide;if(m)return f;var y=g[n],b=f[y]||{hasStack:!1,stackGroups:{}};if(pn(p)){var w=b.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),b.hasStack=!0,b.stackGroups[p]=w}else b.stackGroups[f0("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return zr(zr({},f),{},cc({},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,m){var y=h.stackGroups[m];return zr(zr({},p),{},cc({},m,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:HK(t,y.items,a)}))},g)}return zr(zr({},f),{},cc({},d,h))},u)},Hj=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=oK(c,a,s);return t.domain([Dp(u),Mp(u)]),{niceTicks:u}}if(a&&i==="number"){var f=t.domain(),d=sK(f,a,s);return{niceTicks:d}}return null};function nT(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&&!qt(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,qt(o)?t.dataKey:o);return qt(l)?null:t.scale(l)}var iT=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 qt(l)?null:r.scale(l)-a/2+i},VK=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]},YK=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},KK=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])},Gj=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=KK(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})},aT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,i2=function(t,r,n){if(jt(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(aT.test(t[0])){var a=+aT.exec(t[0])[1];i[0]=r[0]-a}else jt(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(oT.test(t[1])){var o=+oT.exec(t[1])[1];i[1]=r[1]+o}else jt(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=Bb(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},sT=function(t,r,n){return!t||!t.length||g0(t,Ki(n,"type.defaultProps.domain"))?r:t},Vj=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({},bt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:f5(t),value:ii(r,i),type:l,payload:r,chartType:c,hide:u})};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)}function lT(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?lT(Object(r),!0).forEach(function(n){Yj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yj(e,t,r){return t=XK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XK(e){var t=JK(e,"string");return Mf(t)=="symbol"?t:t+""}function JK(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 ZK(e,t){return rX(e)||tX(e,t)||eX(e,t)||QK()}function QK(){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 eX(e,t){if(e){if(typeof e=="string")return cT(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 cT(e,t)}}function cT(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 tX(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 rX(e){if(Array.isArray(e))return e}var Cd=Math.PI/180,nX=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}},iX=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},aX=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=iX(o,s,n),h=ba(t.innerRadius,d,0),g=ba(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(m,y){var b=r[y],w=b.domain,S=b.reversed,A;if(qt(b.range))i==="angleAxis"?A=[l,c]:i==="radiusAxis"&&(A=[h,g]),S&&(A=[A[1],A[0]]);else{A=b.range;var O=A,T=ZK(O,2);l=T[0],c=T[1]}var k=zj(b,a),L=k.realScaleType,R=k.scale;R.domain(w).range(A),Wj(R);var j=Hj(R,ao(ao({},b),{},{realScaleType:L})),E=ao(ao(ao({},b),j),{},{range:A,radius:g,realScaleType:L,scale:R,cx:u,cy:f,innerRadius:h,outerRadius:g,startAngle:l,endAngle:c});return ao(ao({},m),{},Yj({},y,E))},{})},oX=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))},sX=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=oX({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:nX(c),angleInRadian:c}},lX=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}},cX=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},uT=function(t,r){var n=t.x,i=t.y,a=sX({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=lX(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:cX(h,r)}):null},Kj=function(t){return!W.isValidElement(t)&&!jt(t)&&typeof t!="boolean"?t.className:""};function Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}var uX=["offset"];function fX(e){return mX(e)||pX(e)||dX(e)||hX()}function hX(){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 dX(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 pX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mX(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 vX(e,t){if(e==null)return{};var r=gX(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 gX(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 fT(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?fT(Object(r),!0).forEach(function(n){xX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xX(e,t,r){return t=yX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yX(e){var t=bX(e,"string");return Df(t)=="symbol"?t:t+""}function bX(e,t){if(Df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rf(){return Rf=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},Rf.apply(this,arguments)}var wX=function(t){var r=t.value,n=t.formatter,i=qt(t.children)?r:t.children;return jt(n)?n(i):i},_X=function(t,r){var n=ya(r-t),i=Math.min(Math.abs(r-t),360);return n*i},SX=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,m=(f+d)/2,y=_X(h,g),b=y>=0?1:-1,w,S;i==="insideStart"?(w=h+b*o,S=p):i==="insideEnd"?(w=g-b*o,S=!p):i==="end"&&(w=g+b*o,S=p),S=y<=0?S:!S;var A=_r(c,u,m,w),O=_r(c,u,m,w+(S?1:-1)*359),T="M".concat(A.x,",").concat(A.y,`
382
+ A`).concat(m,",").concat(m,",0,1,").concat(S?0:1,`,
383
+ `).concat(O.x,",").concat(O.y),k=qt(t.id)?f0("recharts-radial-line-"):t.id;return W.createElement("text",Rf({},n,{dominantBaseline:"central",className:Dt("recharts-radial-bar-label",s)}),W.createElement("defs",null,W.createElement("path",{id:k,d:T})),W.createElement("textPath",{xlinkHref:"#".concat(k)},r))},AX=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 m=(l+c)/2,y=_r(o,s,m,d),b=y.x,w=y.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},TX=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,m=p*i,y=p>0?"end":"start",b=p>0?"start":"end";if(a==="top"){var w={x:s+c/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return fn(fn({},w),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-m,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 O={x:s+c+m,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return fn(fn({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:u}:{})}var T=n?{width:c,height:u}:{};return a==="insideLeft"?fn({x:s+m,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},T):a==="insideRight"?fn({x:s+c-m,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+m,y:l+d,textAnchor:b,verticalAnchor:g},T):a==="insideTopRight"?fn({x:s+c-m,y:l+d,textAnchor:y,verticalAnchor:g},T):a==="insideBottomLeft"?fn({x:s+m,y:l+u-d,textAnchor:b,verticalAnchor:h},T):a==="insideBottomRight"?fn({x:s+c-m,y:l+u-d,textAnchor:y,verticalAnchor:h},T):Vc(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)},NX=function(t){return"cx"in t&&nt(t.cx)};function jn(e){var t=e.offset,r=t===void 0?5:t,n=vX(e,uX),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||qt(s)&&qt(l)&&!W.isValidElement(c)&&!jt(c))return null;if(W.isValidElement(c))return W.cloneElement(c,i);var h;if(jt(c)){if(h=W.createElement(c,i),W.isValidElement(h))return h}else h=wX(i);var g=NX(a),p=bt(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return SX(i,h,p);var m=g?AX(i):TX(i);return W.createElement(gc,Rf({className:Dt("recharts-label",f)},p,m,{breakAll:d}),h)}jn.displayName="Label";var Xj=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,m=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(nt(p)&&nt(m)){if(nt(f)&&nt(d))return{x:f,y:d,width:p,height:m};if(nt(h)&&nt(g))return{x:h,y:g,width:p,height:m}}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:{}},EX=function(t,r){return t?t===!0?W.createElement(jn,{key:"label-implicit",viewBox:r}):pn(t)?W.createElement(jn,{key:"label-implicit",viewBox:r,value:t}):W.isValidElement(t)?t.type===jn?W.cloneElement(t,{key:"label-implicit",viewBox:r}):W.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):jt(t)?W.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):Vc(t)?W.createElement(jn,Rf({viewBox:r},t,{key:"label-implicit"})):null:null},PX=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=Xj(t),o=Xi(i,jn).map(function(l,c){return W.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=EX(t.label,r||a);return[s].concat(fX(o))};jn.parseViewBox=Xj;jn.renderCallByParent=PX;var Sx,hT;function OX(){if(hT)return Sx;hT=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Sx=e,Sx}var jX=OX();const Jj=ur(jX);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)}var CX=["valueAccessor"],kX=["data","dataKey","clockWise","id","textBreakAll"];function LX(e){return DX(e)||MX(e)||FX(e)||IX()}function IX(){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 FX(e,t){if(e){if(typeof e=="string")return o2(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 o2(e,t)}}function MX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DX(e){if(Array.isArray(e))return o2(e)}function o2(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 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 pT(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){RX(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 RX(e,t,r){return t=BX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BX(e){var t=$X(e,"string");return Bf(t)=="symbol"?t:t+""}function $X(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)}function mT(e,t){if(e==null)return{};var r=qX(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 qX(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 UX=function(t){return Array.isArray(t.value)?Jj(t.value):t.value};function xo(e){var t=e.valueAccessor,r=t===void 0?UX:t,n=mT(e,CX),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=mT(n,kX);return!i||!i.length?null:W.createElement(lr,{className:"recharts-label-list"},i.map(function(u,f){var d=qt(a)?r(u,f):ii(u&&u.payload,a),h=qt(s)?{}:{id:"".concat(s,"-").concat(f)};return W.createElement(jn,kd({},bt(u,!0),c,h,{parentViewBox:u.parentViewBox,value:d,textBreakAll:l,viewBox:jn.parseViewBox(qt(o)?u:pT(pT({},u),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}xo.displayName="LabelList";function zX(e,t){return e?e===!0?W.createElement(xo,{key:"labelList-implicit",data:t}):W.isValidElement(e)||jt(e)?W.createElement(xo,{key:"labelList-implicit",data:t,content:e}):Vc(e)?W.createElement(xo,kd({data:t},e,{key:"labelList-implicit"})):null:null}function WX(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 W.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=zX(e.label,t);return[a].concat(LX(i))}xo.renderCallByParent=WX;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 vT(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 gT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vT(Object(r),!0).forEach(function(n){HX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vT(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 YX=function(t,r){var n=ya(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ih=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,m=_r(r,n,u*Math.cos(f*Cd),p);return{center:h,circleTangency:g,lineTangency:m,theta:f}},Zj=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=YX(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},KX=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=Ih({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,g=d.lineTangency,p=d.theta,m=Ih({cx:r,cy:n,radius:a,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=m.circleTangency,b=m.lineTangency,w=m.theta,S=l?Math.abs(c-u):Math.abs(c-u)-p-w;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
+ `):Zj({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 O=Ih({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),T=O.circleTangency,k=O.lineTangency,L=O.theta,R=Ih({cx:r,cy:n,radius:i,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=R.circleTangency,E=R.lineTangency,D=R.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(E.x,",").concat(E.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},XX={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Qj=function(t){var r=gT(gT({},XX),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=Dt("recharts-sector",d),g=o-a,p=ba(s,g,0,!0),m;return p>0&&Math.abs(u-f)<360?m=KX({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):m=Zj({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:f}),W.createElement("path",s2({},bt(r,!0),{className:h,d:m,role:"img"}))};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 l2(){return l2=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},l2.apply(this,arguments)}function xT(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 yT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xT(Object(r),!0).forEach(function(n){JX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JX(e,t,r){return t=ZX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZX(e){var t=QX(e,"string");return qf(t)=="symbol"?t:t+""}function QX(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(t==="string"?String:Number)(e)}var bT={curveBasisClosed:yU,curveBasisOpen:bU,curveBasis:xU,curveBumpX:iU,curveBumpY:aU,curveLinearClosed:wU,curveLinear:Ap,curveMonotoneX:_U,curveMonotoneY:SU,curveNatural:AU,curveStep:TU,curveStepAfter:EU,curveStepBefore:NU},Fh=function(t){return t.x===+t.x&&t.y===+t.y},Ru=function(t){return t.x},Bu=function(t){return t.y},eJ=function(t,r){if(jt(t))return t;var n="curve".concat(_p(t));return(n==="curveMonotone"||n==="curveBump")&&r?bT["".concat(n).concat(r==="vertical"?"Y":"X")]:bT[n]||Ap},tJ=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=eJ(n,s),f=c?a.filter(function(p){return Fh(p)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(p){return Fh(p)}):o,g=f.map(function(p,m){return yT(yT({},p),{},{base:h[m]})});return s==="vertical"?d=Nh().y(Bu).x1(Ru).x0(function(p){return p.base.x}):d=Nh().x(Ru).y1(Bu).y0(function(p){return p.base.y}),d.defined(Fh).curve(u),d(g)}return s==="vertical"&&nt(o)?d=Nh().y(Bu).x1(Ru).x0(o):nt(o)?d=Nh().x(Ru).y1(Bu).y0(o):d=JO().x(Ru).y(Bu),d.defined(Fh).curve(u),d(f)},c2=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?tJ(t):i;return is.createElement("path",l2({},bt(t,!1),ad(t),{className:Dt("recharts-curve",r),d:o,ref:a}))},Mh={exports:{}},Dh={exports:{}},ar={};/** @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 wT;function rJ(){if(wT)return ar;wT=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,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(A){if(typeof A=="object"&&A!==null){var O=A.$$typeof;switch(O){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 O}}case r:return O}}}function S(A){return w(A)===c}return ar.AsyncMode=l,ar.ConcurrentMode=c,ar.ContextConsumer=s,ar.ContextProvider=o,ar.Element=t,ar.ForwardRef=u,ar.Fragment=n,ar.Lazy=g,ar.Memo=h,ar.Portal=r,ar.Profiler=a,ar.StrictMode=i,ar.Suspense=f,ar.isAsyncMode=function(A){return S(A)||w(A)===l},ar.isConcurrentMode=S,ar.isContextConsumer=function(A){return w(A)===s},ar.isContextProvider=function(A){return w(A)===o},ar.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},ar.isForwardRef=function(A){return w(A)===u},ar.isFragment=function(A){return w(A)===n},ar.isLazy=function(A){return w(A)===g},ar.isMemo=function(A){return w(A)===h},ar.isPortal=function(A){return w(A)===r},ar.isProfiler=function(A){return w(A)===a},ar.isStrictMode=function(A){return w(A)===i},ar.isSuspense=function(A){return w(A)===f},ar.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===m||A.$$typeof===y||A.$$typeof===b||A.$$typeof===p)},ar.typeOf=w,ar}var or={};/** @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 _T;function nJ(){return _T||(_T=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,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(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===m||se.$$typeof===y||se.$$typeof===b||se.$$typeof===p)}function S(se){if(typeof se=="object"&&se!==null){var Le=se.$$typeof;switch(Le){case t:var Se=se.type;switch(Se){case l:case c:case n:case a:case i:case f:return Se;default:var Ae=Se&&Se.$$typeof;switch(Ae){case s:case u:case g:case h:case o:return Ae;default:return Le}}case r:return Le}}}var A=l,O=c,T=s,k=o,L=t,R=u,j=n,E=g,D=h,U=r,H=a,B=i,z=f,te=!1;function Z(se){return te||(te=!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 P(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 ne(se){return S(se)===r}function K(se){return S(se)===a}function he(se){return S(se)===i}function be(se){return S(se)===f}or.AsyncMode=A,or.ConcurrentMode=O,or.ContextConsumer=T,or.ContextProvider=k,or.Element=L,or.ForwardRef=R,or.Fragment=j,or.Lazy=E,or.Memo=D,or.Portal=U,or.Profiler=H,or.StrictMode=B,or.Suspense=z,or.isAsyncMode=Z,or.isConcurrentMode=ee,or.isContextConsumer=ce,or.isContextProvider=P,or.isElement=I,or.isForwardRef=M,or.isFragment=q,or.isLazy=Y,or.isMemo=fe,or.isPortal=ne,or.isProfiler=K,or.isStrictMode=he,or.isSuspense=be,or.isValidElementType=w,or.typeOf=S})()),or}var ST;function eC(){return ST||(ST=1,process.env.NODE_ENV==="production"?Dh.exports=rJ():Dh.exports=nJ()),Dh.exports}/*
416
+ object-assign
417
+ (c) Sindre Sorhus
418
+ @license MIT
419
+ */var Ax,AT;function iJ(){if(AT)return Ax;AT=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,TT;function h5(){if(TT)return Tx;TT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tx=e,Tx}var Nx,NT;function tC(){return NT||(NT=1,Nx=Function.call.bind(Object.prototype.hasOwnProperty)),Nx}var Ex,ET;function aJ(){if(ET)return Ex;ET=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=h5(),r={},n=tC();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={})},Ex=i,Ex}var Px,PT;function oJ(){if(PT)return Px;PT=1;var e=eC(),t=iJ(),r=h5(),n=tC(),i=aJ(),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:w,element:S(),elementType:A(),instanceOf:O,node:R(),objectOf:k,oneOf:T,oneOfType:L,shape:E,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 m(ee){if(process.env.NODE_ENV!=="production")var ce={},P=0;function I(q,Y,fe,ne,K,he,be){if(ne=ne||d,he=he||fe,be!==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 Le=ne+":"+fe;!ce[Le]&&P<3&&(a("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+ne+"`. 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[Le]=!0,P++)}}return Y[fe]==null?q?Y[fe]===null?new p("The "+K+" `"+he+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new p("The "+K+" `"+he+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:ee(Y,fe,ne,K,he)}var M=I.bind(null,!1);return M.isRequired=I.bind(null,!0),M}function y(ee){function ce(P,I,M,q,Y,fe){var ne=P[I],K=B(ne);if(K!==ee){var he=z(ne);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+he+"` supplied to `"+M+"`, expected ")+("`"+ee+"`."),{expectedType:ee})}return null}return m(ce)}function b(){return m(o)}function w(ee){function ce(P,I,M,q,Y){if(typeof ee!="function")return new p("Property `"+Y+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var fe=P[I];if(!Array.isArray(fe)){var ne=B(fe);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+M+"`, expected an array."))}for(var K=0;K<fe.length;K++){var he=ee(fe,K,M,q,Y+"["+K+"]",r);if(he instanceof Error)return he}return null}return m(ce)}function S(){function ee(ce,P,I,M,q){var Y=ce[P];if(!s(Y)){var fe=B(Y);return new p("Invalid "+M+" `"+q+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return m(ee)}function A(){function ee(ce,P,I,M,q){var Y=ce[P];if(!e.isValidElementType(Y)){var fe=B(Y);return new p("Invalid "+M+" `"+q+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return m(ee)}function O(ee){function ce(P,I,M,q,Y){if(!(P[I]instanceof ee)){var fe=ee.name||d,ne=Z(P[I]);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+M+"`, expected ")+("instance of `"+fe+"`."))}return null}return m(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(P,I,M,q,Y){for(var fe=P[I],ne=0;ne<ee.length;ne++)if(g(fe,ee[ne]))return null;var K=JSON.stringify(ee,function(be,se){var Le=z(se);return Le==="symbol"?String(se):se});return new p("Invalid "+q+" `"+Y+"` of value `"+String(fe)+"` "+("supplied to `"+M+"`, expected one of "+K+"."))}return m(ce)}function k(ee){function ce(P,I,M,q,Y){if(typeof ee!="function")return new p("Property `"+Y+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var fe=P[I],ne=B(fe);if(ne!=="object")return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+M+"`, expected an object."));for(var K in fe)if(n(fe,K)){var he=ee(fe,K,M,q,Y+"."+K,r);if(he instanceof Error)return he}return null}return m(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 P=ee[ce];if(typeof P!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(P)+" at index "+ce+"."),o}function I(M,q,Y,fe,ne){for(var K=[],he=0;he<ee.length;he++){var be=ee[he],se=be(M,q,Y,fe,ne,r);if(se==null)return null;se.data&&n(se.data,"expectedType")&&K.push(se.data.expectedType)}var Le=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new p("Invalid "+fe+" `"+ne+"` supplied to "+("`"+Y+"`"+Le+"."))}return m(I)}function R(){function ee(ce,P,I,M,q){return U(ce[P])?null:new p("Invalid "+M+" `"+q+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return m(ee)}function j(ee,ce,P,I,M){return new p((ee||"React class")+": "+ce+" type `"+P+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function E(ee){function ce(P,I,M,q,Y){var fe=P[I],ne=B(fe);if(ne!=="object")return new p("Invalid "+q+" `"+Y+"` of type `"+ne+"` "+("supplied to `"+M+"`, expected `object`."));for(var K in ee){var he=ee[K];if(typeof he!="function")return j(M,q,Y,K,z(he));var be=he(fe,K,M,q,Y+"."+K,r);if(be)return be}return null}return m(ce)}function D(ee){function ce(P,I,M,q,Y){var fe=P[I],ne=B(fe);if(ne!=="object")return new p("Invalid "+q+" `"+Y+"` of type `"+ne+"` "+("supplied to `"+M+"`, expected `object`."));var K=t({},P[I],ee);for(var he in K){var be=ee[he];if(n(ee,he)&&typeof be!="function")return j(M,q,Y,he,z(be));if(!be)return new p("Invalid "+q+" `"+Y+"` key `"+he+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(P[I],null," ")+`
420
+ Valid keys: `+JSON.stringify(Object.keys(ee),null," "));var se=be(fe,he,M,q,Y+"."+he,r);if(se)return se}return null}return m(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 P=ce.call(ee),I;if(ce!==ee.entries){for(;!(I=P.next()).done;)if(!U(I.value))return!1}else for(;!(I=P.next()).done;){var M=I.value;if(M&&!U(M[1]))return!1}}else return!1;return!0;default:return!1}}function H(ee,ce){return ee==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function B(ee){var ce=typeof ee;return Array.isArray(ee)?"array":ee instanceof RegExp?"object":H(ce,ee)?"symbol":ce}function z(ee){if(typeof ee>"u"||ee===null)return""+ee;var ce=B(ee);if(ce==="object"){if(ee instanceof Date)return"date";if(ee instanceof RegExp)return"regexp"}return ce}function te(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,OT;function sJ(){if(OT)return Ox;OT=1;var e=h5();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 jT;function lJ(){if(jT)return Mh.exports;if(jT=1,process.env.NODE_ENV!=="production"){var e=eC(),t=!0;Mh.exports=oJ()(e.isElement,t)}else Mh.exports=sJ()();return Mh.exports}var cJ=lJ();const sr=ur(cJ),{getOwnPropertyNames:uJ,getOwnPropertySymbols:fJ}=Object,{hasOwnProperty:hJ}=Object.prototype;function jx(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Rh(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 dJ(e){return e!=null?e[Symbol.toStringTag]:void 0}function CT(e){return uJ(e).concat(fJ(e))}const pJ=Object.hasOwn||((e,t)=>hJ.call(e,t));function ul(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const mJ="__v",vJ="__o",gJ="_owner",{getOwnPropertyDescriptor:kT,keys:LT}=Object;function xJ(e,t){return e.byteLength===t.byteLength&&Ld(new Uint8Array(e),new Uint8Array(t))}function yJ(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 bJ(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 wJ(e,t){return ul(e.getTime(),t.getTime())}function _J(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function SJ(e,t){return e===t}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.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 AJ=ul;function TJ(e,t,r){const n=LT(e);let i=n.length;if(LT(t).length!==i)return!1;for(;i-- >0;)if(!rC(e,t,r,n[i]))return!1;return!0}function $u(e,t,r){const n=CT(e);let i=n.length;if(CT(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!rC(e,t,r,a)||(o=kT(e,a),s=kT(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function NJ(e,t){return ul(e.valueOf(),t.valueOf())}function EJ(e,t){return e.source===t.source&&e.flags===t.flags}function FT(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 PJ(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 rC(e,t,r,n){return(n===gJ||n===vJ||n===mJ)&&(e.$$typeof||t.$$typeof)?!0:pJ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const OJ="[object ArrayBuffer]",jJ="[object Arguments]",CJ="[object Boolean]",kJ="[object DataView]",LJ="[object Date]",IJ="[object Error]",FJ="[object Map]",MJ="[object Number]",DJ="[object Object]",RJ="[object RegExp]",BJ="[object Set]",$J="[object String]",qJ={"[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},UJ="[object URL]",zJ=Object.prototype.toString;function WJ({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(m,y,b){if(m===y)return!0;if(m==null||y==null)return!1;const w=typeof m;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(m,y,b):w==="function"?a(m,y,b):!1;const S=m.constructor;if(S!==y.constructor)return!1;if(S===Object)return l(m,y,b);if(Array.isArray(m))return t(m,y,b);if(S===Date)return n(m,y,b);if(S===RegExp)return u(m,y,b);if(S===Map)return o(m,y,b);if(S===Set)return f(m,y,b);const A=zJ.call(m);if(A===LJ)return n(m,y,b);if(A===RJ)return u(m,y,b);if(A===FJ)return o(m,y,b);if(A===BJ)return f(m,y,b);if(A===DJ)return typeof m.then!="function"&&typeof y.then!="function"&&l(m,y,b);if(A===UJ)return h(m,y,b);if(A===IJ)return i(m,y,b);if(A===jJ)return l(m,y,b);if(qJ[A])return d(m,y,b);if(A===OJ)return e(m,y,b);if(A===kJ)return r(m,y,b);if(A===CJ||A===MJ||A===$J)return c(m,y,b);if(g){let O=g[A];if(!O){const T=dJ(m);T&&(O=g[T])}if(O)return O(m,y,b)}return!1}}function HJ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:xJ,areArraysEqual:r?$u:yJ,areDataViewsEqual:bJ,areDatesEqual:wJ,areErrorsEqual:_J,areFunctionsEqual:SJ,areMapsEqual:r?jx(IT,$u):IT,areNumbersEqual:AJ,areObjectsEqual:r?$u:TJ,arePrimitiveWrappersEqual:NJ,areRegExpsEqual:EJ,areSetsEqual:r?jx(FT,$u):FT,areTypedArraysEqual:r?jx(Ld,$u):Ld,areUrlsEqual:PJ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Rh(n.areArraysEqual),a=Rh(n.areMapsEqual),o=Rh(n.areObjectsEqual),s=Rh(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function GJ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function VJ({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 YJ=ps();ps({strict:!0});ps({circular:!0});ps({circular:!0,strict:!0});ps({createInternalComparator:()=>ul});ps({strict:!0,createInternalComparator:()=>ul});ps({circular:!0,createInternalComparator:()=>ul});ps({circular:!0,createInternalComparator:()=>ul,strict:!0});function ps(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=HJ(e),o=WJ(a),s=r?r(o):GJ(o);return VJ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function KJ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function MT(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):KJ(i)};requestAnimationFrame(n)}function u2(e){"@babel/helpers - typeof";return u2=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},u2(e)}function XJ(e){return eZ(e)||QJ(e)||ZJ(e)||JJ()}function JJ(){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 ZJ(e,t){if(e){if(typeof e=="string")return DT(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 DT(e,t)}}function DT(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 QJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eZ(e){if(Array.isArray(e))return e}function tZ(){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=XJ(o),l=s[0],c=s.slice(1);if(typeof l=="number"){MT(i.bind(null,c),l);return}i(l),MT(i.bind(null,c));return}u2(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 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 RT(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 BT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(r),!0).forEach(function(n){nC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nC(e,t,r){return t=rZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rZ(e){var t=nZ(e,"string");return Uf(t)==="symbol"?t:String(t)}function nZ(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)}var iZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},aZ=function(t){return t},oZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},sf=function(t,r){return Object.keys(r).reduce(function(n,i){return BT(BT({},n),{},nC({},i,t(i,r[i])))},{})},$T=function(t,r,n){return t.map(function(i){return"".concat(oZ(i)," ").concat(r,"ms ").concat(n)}).join(",")},sZ=process.env.NODE_ENV!=="production",Id=function(t,r,n,i,a,o,s,l){if(sZ&&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 lZ(e,t){return fZ(e)||uZ(e,t)||iC(e,t)||cZ()}function cZ(){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 uZ(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 fZ(e){if(Array.isArray(e))return e}function hZ(e){return mZ(e)||pZ(e)||iC(e)||dZ()}function dZ(){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 iC(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 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 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}var Fd=1e-4,aC=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oC=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},qT=function(t,r){return function(n){var i=aC(t,r);return oC(i,n)}},vZ=function(t,r){return function(n){var i=aC(t,r),a=[].concat(hZ(i.map(function(o,s){return o*s}).slice(1)),[0]);return oC(a,n)}},UT=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(m){return parseFloat(m)}),u=lZ(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(m){return typeof m=="number"&&m>=0&&m<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=qT(i,o),d=qT(a,s),h=vZ(i,o),g=function(y){return y>1?1:y<0?0:y},p=function(y){for(var b=y>1?1:y,w=b,S=0;S<8;++S){var A=f(w)-b,O=h(w);if(Math.abs(A-b)<Fd||O<Fd)return d(w);w=g(w-A/O)}return d(w)};return p.isStepper=!1,p},gZ=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,m=d*s/1e3+u;return Math.abs(m-f)<Fd&&Math.abs(p)<Fd?[f,0]:[m,p]};return l.isStepper=!0,l.dt=s,l},xZ=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 UT(i);case"spring":return gZ();default:if(i.split("(")[0]==="cubic-bezier")return UT(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 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 zT(e){return wZ(e)||bZ(e)||sC(e)||yZ()}function yZ(){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 bZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wZ(e){if(Array.isArray(e))return d2(e)}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 Pn(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){h2(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 h2(e,t,r){return t=_Z(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Z(e){var t=SZ(e,"string");return zf(t)==="symbol"?t:String(t)}function SZ(e,t){if(zf(e)!=="object"||e===null)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 AZ(e,t){return EZ(e)||NZ(e,t)||sC(e,t)||TZ()}function TZ(){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 sC(e,t){if(e){if(typeof e=="string")return d2(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 d2(e,t)}}function d2(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 NZ(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 EZ(e){if(Array.isArray(e))return e}var Md=function(t,r,n){return t+(r-t)*n},p2=function(t){var r=t.from,n=t.to;return r!==n},PZ=function e(t,r,n){var i=sf(function(a,o){if(p2(o)){var s=t(o.from,o.to,o.velocity),l=AZ(s,2),c=l[0],u=l[1];return Pn(Pn({},o),{},{from:c,velocity:u})}return o},r);return n<1?sf(function(a,o){return p2(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 OZ=(function(e,t,r,n,i){var a=iZ(e,t),o=a.reduce(function(m,y){return Pn(Pn({},m),{},h2({},y,[e[y],t[y]]))},{}),s=a.reduce(function(m,y){return Pn(Pn({},m),{},h2({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,u,f=function(){return null},d=function(){return sf(function(y,b){return b.from},s)},h=function(){return!Object.values(s).filter(p2).length},g=function(y){c||(c=y);var b=y-c,w=b/r.dt;s=PZ(r,s,w),i(Pn(Pn(Pn({},e),t),d())),c=y,h()||(l=requestAnimationFrame(f))},p=function(y){u||(u=y);var b=(y-u)/n,w=sf(function(A,O){return Md.apply(void 0,zT(O).concat([r(b)]))},o);if(i(Pn(Pn(Pn({},e),t),w)),b<1)l=requestAnimationFrame(f);else{var S=sf(function(A,O){return Md.apply(void 0,zT(O).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 _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)}var jZ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function CZ(e,t){if(e==null)return{};var r=kZ(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 kZ(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 MZ(e)||FZ(e)||IZ(e)||LZ()}function LZ(){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 IZ(e,t){if(e){if(typeof e=="string")return m2(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 m2(e,t)}}function FZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MZ(e){if(Array.isArray(e))return m2(e)}function m2(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 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 fa(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){Hu(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 Hu(e,t,r){return t=lC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RZ(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,lC(n.key),n)}}function BZ(e,t,r){return t&&RZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lC(e){var t=$Z(e,"string");return _c(t)==="symbol"?t:String(t)}function $Z(e,t){if(_c(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function qZ(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&&v2(e,t)}function v2(e,t){return v2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},v2(e,t)}function UZ(e){var t=zZ();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 g2(this,i)}}function g2(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 x2(e)}function x2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zZ(){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){qZ(r,e);var t=UZ(r);function r(n,i){var a;DZ(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(x2(a)),a.changeStyle=a.changeStyle.bind(x2(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:u}),g2(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof d=="function")return a.state={style:c},g2(a);a.state={style:l?Hu({},l,c):c}}else a.state={style:{}};return a}return BZ(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?Hu({},l,u):u};this.state&&d&&(l&&d[l]!==u||!l&&d!==u)&&this.setState(h);return}if(!(YJ(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 m={style:l?Hu({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(m)}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=OZ(o,s,xZ(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,m,y){if(y===0)return p;var b=m.duration,w=m.easing,S=w===void 0?"ease":w,A=m.style,O=m.properties,T=m.onAnimationEnd,k=y>0?o[y-1]:m,L=O||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 R=$T(L,b,S),j=fa(fa(fa({},k.style),A),{},{transition:R});return[].concat(Cx(p),[j,b,T]).filter(aZ)};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=tZ());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?Hu({},s,l):l,m=$T(Object.keys(p),o,c);g.start([u,a,fa(fa({},p),{},{transition:m}),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=CZ(i,jZ),c=W.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,m=p===void 0?{}:p,y=g.className,b=W.cloneElement(h,fa(fa({},l),{},{style:fa(fa({},m),u),className:y}));return b};return c===1?f(W.Children.only(a)):W.createElement("div",null,W.Children.map(a,function(d){return f(d)}))}}]),r})(W.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:sr.oneOfType([sr.object,sr.string]),to:sr.oneOfType([sr.object,sr.string]),attributeName:sr.string,duration:sr.number,begin:sr.number,easing:sr.oneOfType([sr.string,sr.func]),steps:sr.arrayOf(sr.shape({duration:sr.number.isRequired,style:sr.object.isRequired,easing:sr.oneOfType([sr.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),sr.func]),properties:sr.arrayOf("string"),onAnimationEnd:sr.func})),children:sr.oneOfType([sr.node,sr.func]),isActive:sr.bool,canBegin:sr.bool,onAnimationEnd:sr.func,shouldReAnimate:sr.bool,onAnimationStart:sr.func,onAnimationReStart:sr.func};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 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 WZ(e,t){return YZ(e)||VZ(e,t)||GZ(e,t)||HZ()}function HZ(){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 GZ(e,t){if(e){if(typeof e=="string")return GT(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 GT(e,t)}}function GT(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 VZ(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 YZ(e){if(Array.isArray(e))return e}function VT(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 YT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(r),!0).forEach(function(n){KZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KZ(e,t,r){return t=XZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XZ(e){var t=JZ(e,"string");return Wf(t)=="symbol"?t:t+""}function JZ(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)}var KT=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},ZZ=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},QZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},d5=function(t){var r=YT(YT({},QZ),t),n=W.useRef(),i=W.useState(-1),a=WZ(i,2),o=a[0],s=a[1];W.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,m=r.animationBegin,y=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var w=Dt("recharts-rectangle",h);return b?W.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,O=S.height,T=S.x,k=S.y;return W.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,isActive:y,easing:g},W.createElement("path",Rd({},bt(r,!0),{className:w,d:KT(T,k,A,O,d),ref:n})))}):W.createElement("path",Rd({},bt(r,!0),{className:w,d:KT(l,c,u,f,d)}))},eQ=["points","className","baseLinePoints","connectNulls"];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 tQ(e,t){if(e==null)return{};var r=rQ(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 rQ(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 XT(e){return oQ(e)||aQ(e)||iQ(e)||nQ()}function nQ(){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 iQ(e,t){if(e){if(typeof e=="string")return y2(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 y2(e,t)}}function aQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oQ(e){if(Array.isArray(e))return y2(e)}function y2(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 JT=function(t){return t&&t.x===+t.x&&t.y===+t.y},sQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){JT(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),JT(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},lf=function(t,r){var n=sQ(t);r&&(n=[n.reduce(function(a,o){return[].concat(XT(a),XT(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},lQ=function(t,r,n){var i=lf(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(lf(r.reverse(),n).slice(1))},cC=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=tQ(t,eQ);if(!r||!r.length)return null;var s=Dt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",c=lQ(r,i,a);return W.createElement("g",{className:s},W.createElement("path",Zl({},bt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?W.createElement("path",Zl({},bt(o,!0),{fill:"none",d:lf(r,a)})):null,l?W.createElement("path",Zl({},bt(o,!0),{fill:"none",d:lf(i,a)})):null)}var u=lf(r,a);return W.createElement("path",Zl({},bt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:s,d:u}))};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)}var y0=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Dt("recharts-dot",a);return r===+r&&n===+n&&i===+i?is.createElement("circle",b2({},bt(t,!1),ad(t),{className:o,cx:r,cy:n,r:i})):null};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)}var cQ=["x","y","top","left","width","height","className"];function w2(){return w2=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},w2.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 uQ(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){fQ(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 fQ(e,t,r){return t=hQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hQ(e){var t=dQ(e,"string");return Hf(t)=="symbol"?t:t+""}function dQ(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)}function pQ(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}var vQ=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},gQ=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=pQ(t,cQ),m=uQ({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:W.createElement("path",w2({},bt(m,!0),{className:Dt("recharts-cross",g),d:vQ(n,a,f,h,s,c)}))},xQ=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Gf(e){"@babel/helpers - typeof";return Gf=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},Gf(e)}function yQ(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}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 QT(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 Vf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QT(Object(r),!0).forEach(function(n){wQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wQ(e,t,r){return t=_Q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Q(e){var t=SQ(e,"string");return Gf(t)=="symbol"?t:t+""}function SQ(e,t){if(Gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AQ=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},TQ=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=Vf({stroke:"#ccc"},bt(t,!1));return W.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 W.createElement("line",Ao({},l,{key:"line-".concat(c),x1:u.x,y1:u.y,x2:f.x,y2:f.y}))}))},NQ=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Vf(Vf({stroke:"#ccc"},bt(t,!1)),{},{fill:"none"});return W.createElement("circle",Ao({},o,{className:Dt("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},EQ=function(t){var r=t.radius,n=t.index,i=Vf(Vf({stroke:"#ccc"},bt(t,!1)),{},{fill:"none"});return W.createElement("path",Ao({},i,{className:Dt("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:AQ(r,t.cx,t.cy,t.polarAngles)}))},PQ=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:W.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?W.createElement(NQ,Ao({key:o},t,{radius:i,index:a})):W.createElement(EQ,Ao({key:o},t,{radius:i,index:a}))}))},uC=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=yQ(t,xQ);return c<=0?null:W.createElement("g",{className:"recharts-polar-grid"},W.createElement(TQ,Ao({cx:n,cy:a,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},g)),W.createElement(PQ,Ao({cx:n,cy:a,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},g)))};uC.displayName="PolarGrid";var kx,eN;function OQ(){if(eN)return kx;eN=1;var e=Fp(),t=wj(),r=Wa();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return kx=n,kx}var jQ=OQ();const CQ=ur(jQ);var Lx,tN;function kQ(){if(tN)return Lx;tN=1;var e=Fp(),t=Wa(),r=_j();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Lx=n,Lx}var LQ=kQ();const IQ=ur(LQ);var FQ=["cx","cy","angle","ticks","axisLine"],MQ=["ticks","tick","angle","tickFormatter","stroke"];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 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 rN(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?rN(Object(r),!0).forEach(function(n){$p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nN(e,t){if(e==null)return{};var r=DQ(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 DQ(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 RQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(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,hC(n.key),n)}}function BQ(e,t,r){return t&&iN(e.prototype,t),r&&iN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Q(e,t,r){return t=Bd(t),qQ(e,fC()?Reflect.construct(t,r||[],Bd(e).constructor):t.apply(e,r))}function qQ(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 UQ(e)}function UQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fC=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bd(e)}function zQ(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 $p(e,t,r){return t=hC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hC(e){var t=WQ(e,"string");return Sc(t)=="symbol"?t:t+""}function WQ(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 b0=(function(e){function t(){return RQ(this,t),$Q(this,t,arguments)}return zQ(t,e),BQ(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=CQ(s,function(u){return u.coordinate||0}),c=IQ(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=nN(n,FQ),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=Ns(Ns(Ns({},bt(c,!1)),{},{fill:"none"},bt(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return W.createElement("line",cf({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=nN(i,MQ),f=this.getTickTextAnchor(),d=bt(u,!1),h=bt(o,!1),g=a.map(function(p,m){var y=n.getTickValueCoord(p),b=Ns(Ns(Ns(Ns({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:m},y),{},{payload:p});return W.createElement(lr,cf({className:Dt("recharts-polar-radius-axis-tick",Kj(o)),key:"tick-".concat(p.coordinate)},fc(n.props,p,m)),t.renderTickItem(o,b,l?l(p.value,m):p.value))});return W.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:W.createElement(lr,{className:Dt("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 W.isValidElement(n)?o=W.cloneElement(n,i):jt(n)?o=n(i):o=W.createElement(gc,cf({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(W.PureComponent);$p(b0,"displayName","PolarRadiusAxis");$p(b0,"axisType","radiusAxis");$p(b0,"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 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 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 aN(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?aN(Object(r),!0).forEach(function(n){qp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oN(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,pC(n.key),n)}}function GQ(e,t,r){return t&&oN(e.prototype,t),r&&oN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VQ(e,t,r){return t=$d(t),YQ(e,dC()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function YQ(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 KQ(e)}function KQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dC=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(e)}function XQ(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 qp(e,t,r){return t=pC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pC(e){var t=JQ(e,"string");return Ac(t)=="symbol"?t:t+""}function JQ(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 ZQ=Math.PI/180,sN=1e-5,w0=(function(e){function t(){return HQ(this,t),VQ(this,t,arguments)}return XQ(t,e),GQ(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*ZQ),o;return a>sN?o=i==="outer"?"start":"end":a<-sN?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=Es(Es({},bt(this.props,!1)),{},{fill:"none"},bt(s,!1));if(l==="circle")return W.createElement(y0,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 W.createElement(cC,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=bt(this.props,!1),f=bt(o,!1),d=Es(Es({},u),{},{fill:"none"},bt(s,!1)),h=a.map(function(g,p){var m=n.getTickLineCoord(g),y=n.getTickTextAnchor(g),b=Es(Es(Es({textAnchor:y},u),{},{stroke:"none",fill:c},f),{},{index:p,payload:g,x:m.x2,y:m.y2});return W.createElement(lr,ks({className:Dt("recharts-polar-angle-axis-tick",Kj(o)),key:"tick-".concat(g.coordinate)},fc(n.props,g,p)),s&&W.createElement("line",ks({className:"recharts-polar-angle-axis-tick-line"},d,m)),o&&t.renderTickItem(o,b,l?l(g.value,p):g.value))});return W.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:W.createElement(lr,{className:Dt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return W.isValidElement(n)?o=W.cloneElement(n,i):jt(n)?o=n(i):o=W.createElement(gc,ks({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(W.PureComponent);qp(w0,"displayName","PolarAngleAxis");qp(w0,"axisType","angleAxis");qp(w0,"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,lN;function QQ(){if(lN)return Ix;lN=1;var e=b6(),t=e(Object.getPrototypeOf,Object);return Ix=t,Ix}var Fx,cN;function eee(){if(cN)return Fx;cN=1;var e=No(),t=QQ(),r=Eo(),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 tee=eee();const ree=ur(tee);var Mx,uN;function nee(){if(uN)return Mx;uN=1;var e=No(),t=Eo(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Mx=n,Mx}var iee=nee();const aee=ur(iee);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 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 oee(e,t){return uee(e)||cee(e,t)||lee(e,t)||see()}function see(){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 lee(e,t){if(e){if(typeof e=="string")return fN(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 fN(e,t)}}function fN(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 cee(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 uee(e){if(Array.isArray(e))return e}function hN(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 dN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(r),!0).forEach(function(n){fee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fee(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=dee(e,"string");return Yf(t)=="symbol"?t:t+""}function dee(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)}var pN=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},pee={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mee=function(t){var r=dN(dN({},pee),t),n=W.useRef(),i=W.useState(-1),a=oee(i,2),o=a[0],s=a[1];W.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}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,m=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=Dt("recharts-trapezoid",h);return y?W.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(w){var S=w.upperWidth,A=w.lowerWidth,O=w.height,T=w.x,k=w.y;return W.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:g},W.createElement("path",qd({},bt(r,!0),{className:b,d:pN(T,k,S,A,O),ref:n})))}):W.createElement("g",null,W.createElement("path",qd({},bt(r,!0),{className:b,d:pN(l,c,u,f,d)})))},vee=["option","shapeType","propTransformer","activeClassName","isActive"];function Kf(e){"@babel/helpers - typeof";return Kf=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},Kf(e)}function gee(e,t){if(e==null)return{};var r=xee(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 xee(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 mN(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?mN(Object(r),!0).forEach(function(n){yee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yee(e,t,r){return t=bee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bee(e){var t=wee(e,"string");return Kf(t)=="symbol"?t:t+""}function wee(e,t){if(Kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ee(e,t){return Ud(Ud({},t),e)}function See(e,t){return e==="symbols"}function vN(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return W.createElement(d5,r);case"trapezoid":return W.createElement(mee,r);case"sector":return W.createElement(Qj,r);case"symbols":if(See(t))return W.createElement(Cb,r);break;default:return null}}function Aee(e){return W.isValidElement(e)?e.props:e}function Tee(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?_ee:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=gee(e,vee),c;if(W.isValidElement(t))c=W.cloneElement(t,Ud(Ud({},l),Aee(t)));else if(jt(t))c=t(l);else if(ree(t)&&!aee(t)){var u=i(t,l);c=W.createElement(vN,{shapeType:r,elementProps:u})}else{var f=l;c=W.createElement(vN,{shapeType:r,elementProps:f})}return s?W.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 Xf(e,t){return t!=null&&"points"in e.props}function Nee(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 Eee(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Pee(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Oee(e,t){var r;return Up(e,t)?r=Nee:zp(e,t)?r=Eee:Xf(e,t)&&(r=Pee),r}function jee(e,t){var r;return Up(e,t)?r="trapezoids":zp(e,t)?r="sectors":Xf(e,t)&&(r="points"),r}function Cee(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 Xf(e,t)?t.payload:{}}function kee(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=jee(r,t),a=Cee(r,t),o=n.filter(function(l,c){var u=g0(a,l),f=r.props[i].filter(function(g){var p=Oee(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,gN;function Lee(){if(gN)return Dx;gN=1;function e(t){return t&&t.length?t[0]:void 0}return Dx=e,Dx}var Rx,xN;function Iee(){return xN||(xN=1,Rx=Lee()),Rx}var Fee=Iee();const Mee=ur(Fee);var Dee=["key"];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 Ree(e,t){if(e==null)return{};var r=Bee(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 Bee(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 yN(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?yN(Object(r),!0).forEach(function(n){so(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bN(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,vC(n.key),n)}}function qee(e,t,r){return t&&bN(e.prototype,t),r&&bN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uee(e,t,r){return t=Wd(t),zee(e,mC()?Reflect.construct(t,r||[],Wd(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 Wee(e)}function Wee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mC=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wd(e)}function Hee(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 so(e,t,r){return t=vC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vC(e){var t=Gee(e,"string");return Tc(t)=="symbol"?t:t+""}function Gee(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 _0=(function(e){function t(){var r;$ee(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Uee(this,t,[].concat(i)),so(r,"state",{isAnimationFinished:!1}),so(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),jt(o)&&o()}),so(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),jt(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 Hee(t,e),qee(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=bt(this.props,!1),l=bt(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 W.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 W.isValidElement(a)?u=W.cloneElement(a,Jn(Jn({},this.props),{},{points:n})):jt(a)?u=a(Jn(Jn({},this.props),{},{points:n})):u=W.createElement(cC,zd({},bt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:c})),W.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 W.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(m,y){var b=f&&f[Math.floor(y*g)];if(b){var w=ti(b.x,m.x),S=ti(b.y,m.y);return Jn(Jn({},m),{},{x:w(h),y:S(h)})}var A=ti(m.cx,m.x),O=ti(m.cy,m.y);return Jn(Jn({},m),{},{x:A(h),y:O(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||!g0(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=Dt("recharts-radar",a);return W.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(W.isValidElement(n))a=W.cloneElement(n,i);else if(jt(n))a=n(i);else{var o=i.key,s=Ree(i,Dee);a=W.createElement(y0,zd({},s,{key:o,className:Dt("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(W.PureComponent);so(_0,"displayName","Radar");so(_0,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!sl.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});so(_0,"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),m=r.scale(g)+u,y=Array.isArray(p)?Jj(p):p,b=qt(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(l=!0),c.push(Jn(Jn({},_r(o,s,b,m)),{},{name:g,value:p,cx:o,cy:s,radius:b,angle:m,payload:d}))});var f=[];return l&&c.forEach(function(d){if(Array.isArray(d.value)){var h=Mee(d.value),g=qt(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,wN;function Vee(){if(wN)return Bx;wN=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,_N;function gC(){if(_N)return $x;_N=1;var e=M6(),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,SN;function Yee(){if(SN)return qx;SN=1;var e=Vee(),t=Pp(),r=gC();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,AN;function Kee(){if(AN)return Ux;AN=1;var e=Yee(),t=e();return Ux=t,Ux}var Xee=Kee();const Hd=ur(Xee);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 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 NN(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){xC(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 xC(e,t,r){return t=Jee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jee(e){var t=Zee(e,"string");return Jf(t)=="symbol"?t:t+""}function Zee(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 Qee=["Webkit","Moz","O","ms"],ete=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Qee.reduce(function(a,o){return NN(NN({},a),{},xC({},o+n,r))},{});return i[t]=r,i};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 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 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 zx(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){Ti(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 tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PN(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,bC(n.key),n)}}function rte(e,t,r){return t&&PN(e.prototype,t),r&&PN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nte(e,t,r){return t=Vd(t),ite(e,yC()?Reflect.construct(t,r||[],Vd(e).constructor):t.apply(e,r))}function ite(e,t){if(t&&(Nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ate(e)}function ate(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yC=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vd(e)}function ote(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 Ti(e,t,r){return t=bC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bC(e){var t=ste(e,"string");return Nc(t)=="symbol"?t:t+""}function ste(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 String(e)}var lte=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=af().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}},ON=function(t){return t.changedTouches&&!!t.changedTouches.length},Ec=(function(e){function t(r){var n;return tte(this,t),n=nte(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=ON(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 ote(t,e),rte(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 jt(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 m=this.getIndex({startX:o+p,endX:s+p});(m.startIndex!==d||m.endIndex!==h)&&g&&g(m),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ON(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,m=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 w=this.getIndex(y),S=w.startIndex,A=w.endIndex,O=function(){var k=m.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&&O()&&g(w)})}},{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 W.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=W.Children.only(c);return f?W.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,m=l.endIndex,y=Math.max(n,this.props.x),b=zx(zx({},bt(this.props,!1)),{},{x:y,y:c,width:u,height:f}),w=h||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[m])===null||o===void 0?void 0:o.name);return W.createElement(lr,{tabIndex:0,role:"slider","aria-label":w,"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 W.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 W.createElement(lr,{className:"recharts-brush-texts"},W.createElement(gc,Gd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},g),this.getTextOfTick(i)),W.createElement(gc,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,m=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 w=Dt("recharts-brush",a),S=W.Children.count(o)===1,A=ete("userSelect","none");return W.createElement(lr,{className:w,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||m||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 W.createElement(W.Fragment,null,W.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),W.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),W.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 W.isValidElement(n)?a=W.cloneElement(n,i):jt(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?lte({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}}])})(W.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,jN;function cte(){if(jN)return Wx;jN=1;var e=Rb();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,CN;function ute(){if(CN)return Hx;CN=1;var e=d6(),t=Wa(),r=cte(),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 fte=ute();const hte=ur(fte);var Ra=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Gx,kN;function dte(){if(kN)return Gx;kN=1;var e=C6();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,LN;function pte(){if(LN)return Vx;LN=1;var e=dte(),t=O6(),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 mte=pte();const vte=ur(mte);var Yx,IN;function gte(){if(IN)return Yx;IN=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,FN;function xte(){if(FN)return Kx;FN=1;var e=Rb();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,MN;function yte(){if(MN)return Xx;MN=1;var e=gte(),t=xte(),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 bte=yte();const wC=ur(bte);var wte=["x","y"];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 N2(){return N2=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},N2.apply(this,arguments)}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 qu(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){_te(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 _te(e,t,r){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ste(e){var t=Ate(e,"string");return Pc(t)=="symbol"?t:t+""}function Ate(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(t==="string"?String:Number)(e)}function Tte(e,t){if(e==null)return{};var r=Nte(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 Nte(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 Ete(e,t){var r=e.x,n=e.y,i=Tte(e,wte),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 qu(qu(qu(qu(qu({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function RN(e){return W.createElement(Tee,N2({shapeType:"rectangle",propTransformer:Ete,activeClassName:"recharts-active-bar"},e))}var Pte=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)||Aq(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?hi(!1,"minPointSize callback function received a value with type of ".concat(Pc(n),". Currently only numbers or null/undefined are supported.")):hi()),r)}},Ote=["value","background"],_C;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 jte(e,t){if(e==null)return{};var r=Cte(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 Cte(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 BN(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?BN(Object(r),!0).forEach(function(n){es(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $N(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,AC(n.key),n)}}function Lte(e,t,r){return t&&$N(e.prototype,t),r&&$N(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ite(e,t,r){return t=Kd(t),Fte(e,SC()?Reflect.construct(t,r||[],Kd(e).constructor):t.apply(e,r))}function Fte(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 Mte(e)}function Mte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SC=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}function Dte(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=AC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AC(e){var t=Rte(e,"string");return Oc(t)=="symbol"?t:t+""}function Rte(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)}var fl=(function(e){function t(){var r;kte(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Ite(this,t,[].concat(i)),es(r,"state",{isAnimationFinished:!1}),es(r,"id",f0("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 Dte(t,e),Lte(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=bt(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 W.createElement(lr,Yd({className:"recharts-bar-rectangle"},fc(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)}),W.createElement(RN,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 W.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(m,y){var b=d&&d[y];if(b){var w=ti(b.x,m.x),S=ti(b.y,m.y),A=ti(b.width,m.width),O=ti(b.height,m.height);return nn(nn({},m),{},{x:w(g),y:S(g),width:A(g),height:O(g)})}if(o==="horizontal"){var T=ti(0,m.height),k=T(g);return nn(nn({},m),{},{y:m.y+m.height-k,height:k})}var L=ti(0,m.width),R=L(g);return nn(nn({},m),{},{width:R})});return W.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||!g0(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=bt(this.props.background,!1);return a.map(function(c,u){c.value;var f=c.background,d=jte(c,Ote);if(!f)return null;var h=nn(nn(nn(nn(nn({},d),{},{fill:"#eee"},f),l),fc(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return W.createElement(RN,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,x0);if(!f)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(m,y){var b=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:b,errorVal:ii(m,y)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return W.createElement(lr,g,f.map(function(p){return W.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 m=this.state.isAnimationFinished,y=Dt("recharts-bar",o),b=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,S=b||w,A=qt(p)?this.id:p;return W.createElement(lr,{className:y},b||w?W.createElement("defs",null,W.createElement("clipPath",{id:"clipPath-".concat(A)},W.createElement("rect",{x:b?c:c-f/2,y:w?u:u-d/2,width:b?f:f*2,height:w?d:d*2}))):null,W.createElement(lr,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(A,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,A),(!h||m)&&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}}])})(W.PureComponent);_C=fl;es(fl,"displayName","Bar");es(fl,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!sl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});es(fl,"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=$K(n,r);if(!h)return null;var g=t.layout,p=r.type.defaultProps,m=p!==void 0?nn(nn({},p),r.props):r.props,y=m.dataKey,b=m.children,w=m.minPointSize,S=g==="horizontal"?o:a,A=c?S.scale.domain():null,O=VK({numericAxis:S}),T=Xi(b,R6),k=f.map(function(L,R){var j,E,D,U,H,B;c?j=qK(c[u+R],A):(j=ii(L,y),Array.isArray(j)||(j=[O,j]));var z=Pte(w,_C.defaultProps.minPointSize)(j[1],R);if(g==="horizontal"){var te,Z=[o.scale(j[0]),o.scale(j[1])],ee=Z[0],ce=Z[1];E=iT({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:L,index:R}),D=(te=ce??ee)!==null&&te!==void 0?te:void 0,U=h.size;var P=ee-ce;if(H=Number.isNaN(P)?0:P,B={x:E,y:o.y,width:U,height:o.height},Math.abs(z)>0&&Math.abs(H)<Math.abs(z)){var I=ya(H||z)*(Math.abs(z)-Math.abs(H));D-=I,H+=I}}else{var M=[a.scale(j[0]),a.scale(j[1])],q=M[0],Y=M[1];if(E=q,D=iT({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:L,index:R}),U=Y-q,H=h.size,B={x:a.x,y:D,width:a.width,height:H},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:E,y:D,width:U,height:H,value:c?j:j[1],payload:L,background:B},T&&T[R]&&T[R].props),{},{tooltipPayload:[Vj(r,L)],tooltipPosition:{x:E+U/2,y:D+H/2}})});return nn({data:k,layout:g},d)});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 Bte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(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,TC(n.key),n)}}function $te(e,t,r){return t&&qN(e.prototype,t),r&&qN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),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 pa(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){Wp(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 Wp(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TC(e){var t=qte(e,"string");return Zf(t)=="symbol"?t:t+""}function qte(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 NC=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=!!Ei(c,fl);return u.reduce(function(h,g){var p=r[g],m=p.orientation,y=p.domain,b=p.padding,w=b===void 0?{}:b,S=p.mirror,A=p.reversed,O="".concat(m).concat(S?"Mirror":""),T,k,L,R,j;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var E=y[1]-y[0],D=1/0,U=p.categoricalDomain.sort(Eq);if(U.forEach(function(M,q){q>0&&(D=Math.min((M||0)-(U[q-1]||0),D))}),Number.isFinite(D)){var H=D/E,B=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(T=H*B/2),p.padding==="no-gap"){var z=ba(t.barCategoryGap,H*B),te=H*B/2;T=te-z-(te-z)/B*z}}}i==="xAxis"?k=[n.left+(w.left||0)+(T||0),n.left+n.width-(w.right||0)-(T||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(T||0),n.top+n.height-(w.bottom||0)-(T||0)]:k=p.range,A&&(k=[k[1],k[0]]);var Z=zj(p,a,d),ee=Z.scale,ce=Z.realScaleType;ee.domain(y).range(k),Wj(ee);var P=Hj(ee,pa(pa({},p),{},{realScaleType:ce}));i==="xAxis"?(j=m==="top"&&!S||m==="bottom"&&S,L=n.left,R=f[O]-j*p.height):i==="yAxis"&&(j=m==="left"&&!S||m==="right"&&S,L=f[O]-j*p.width,R=n.top);var I=pa(pa(pa({},p),P),{},{realScaleType:ce,x:L,y:R,scale:ee,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return I.bandSize=jd(I,P),!p.hide&&i==="xAxis"?f[O]+=(j?-1:1)*I.height:p.hide||(f[O]+=(j?-1:1)*I.width),pa(pa({},h),{},Wp({},g,I))},{})},EC=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)}},Ute=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return EC({x:r,y:n},{x:i,y:a})},PC=(function(){function e(t){Bte(this,e),this.scale=t}return $te(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(PC,"EPS",1e-4);var p5=function(t){var r=Object.keys(t).reduce(function(n,i){return pa(pa({},n),{},Wp({},i,PC.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 vte(i,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return wC(i,function(a,o){return r[o].isInRange(a)})}})};function zte(e){return(e%180+180)%180}var Wte=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=zte(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,zN;function Hte(){if(zN)return Jx;zN=1;var e=Wa(),t=h0(),r=Np();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,WN;function Gte(){if(WN)return Zx;WN=1;var e=gC();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Zx=t,Zx}var Qx,HN;function Vte(){if(HN)return Qx;HN=1;var e=A6(),t=Wa(),r=Gte(),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,GN;function Yte(){if(GN)return ey;GN=1;var e=Hte(),t=Vte(),r=e(t);return ey=r,ey}var Kte=Yte();const Xte=ur(Kte);var Jte=$O();const Zte=ur(Jte);var Qte=Zte(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 m5=W.createContext(void 0),v5=W.createContext(void 0),OC=W.createContext(void 0),jC=W.createContext({}),CC=W.createContext(void 0),kC=W.createContext(0),LC=W.createContext(0),VN=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=Qte(a);return W.createElement(m5.Provider,{value:n},W.createElement(v5.Provider,{value:i},W.createElement(jC.Provider,{value:a},W.createElement(OC.Provider,{value:u},W.createElement(CC.Provider,{value:o},W.createElement(kC.Provider,{value:c},W.createElement(LC.Provider,{value:l},s)))))))},ere=function(){return W.useContext(CC)};function IC(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var FC=function(t){var r=W.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 xAxis by id "'.concat(t,'" [').concat(Xd(t),"]. ").concat(IC(r))):hi()),n},tre=function(){var t=W.useContext(m5);return Xo(t)},rre=function(){var t=W.useContext(v5),r=Xte(t,function(n){return wC(n.domain,Number.isFinite)});return r||Xo(t)},MC=function(t){var r=W.useContext(v5);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(IC(r))):hi()),n},nre=function(){var t=W.useContext(OC);return t},ire=function(){return W.useContext(jC)},g5=function(){return W.useContext(LC)},x5=function(){return W.useContext(kC)};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 are(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ore(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,RC(n.key),n)}}function sre(e,t,r){return t&&ore(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lre(e,t,r){return t=Jd(t),cre(e,DC()?Reflect.construct(t,r||[],Jd(e).constructor):t.apply(e,r))}function cre(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 ure(e)}function ure(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DC=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jd(e)}function fre(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&&P2(e,t)}function P2(e,t){return P2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},P2(e,t)}function YN(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 KN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(r),!0).forEach(function(n){y5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y5(e,t,r){return t=RC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RC(e){var t=hre(e,"string");return jc(t)=="symbol"?t:t+""}function hre(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)}function dre(e,t){return gre(e)||vre(e,t)||mre(e,t)||pre()}function pre(){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 mre(e,t){if(e){if(typeof e=="string")return XN(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 XN(e,t)}}function XN(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 vre(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 gre(e){if(Array.isArray(e))return 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)}var xre=function(t,r){var n;return W.isValidElement(t)?n=W.cloneElement(t,r):jt(t)?n=t(r):n=W.createElement("line",O2({},r,{className:"recharts-reference-line-line"})),n},yre=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 m=[{x:u+d,y:p},{x:u,y:p}];return l==="left"?m.reverse():m}if(r){var y=c.x,b=t.x.apply(y,{position:o});if(Ra(c,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:f+h},{x:b,y:f}];return s==="top"?w.reverse():w}if(i){var S=c.segment,A=S.map(function(O){return t.apply(O,{position:o})});return Ra(c,"discard")&&hte(A,function(O){return!t.isInRange(O)})?null:A}return null};function bre(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=ere(),u=FC(i),f=MC(a),d=nre();if(!c||!d)return null;vo(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=p5({x:u.scale,y:f.scale}),g=pn(t),p=pn(r),m=n&&n.length===2,y=yre(h,g,p,m,d,e.position,u.orientation,f.orientation,e);if(!y)return null;var b=dre(y,2),w=b[0],S=w.x,A=w.y,O=b[1],T=O.x,k=O.y,L=Ra(e,"hidden")?"url(#".concat(c,")"):void 0,R=KN(KN({clipPath:L},bt(e,!0)),{},{x1:S,y1:A,x2:T,y2:k});return W.createElement(lr,{className:Dt("recharts-reference-line",s)},xre(o,R),jn.renderCallByParent(e,Ute({x1:S,y1:A,x2:T,y2:k})))}var b5=(function(e){function t(){return are(this,t),lre(this,t,arguments)}return fre(t,e),sre(t,[{key:"render",value:function(){return W.createElement(bre,this.props)}}])})(W.Component);y5(b5,"displayName","ReferenceLine");y5(b5,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function j2(){return j2=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},j2.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 JN(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?JN(Object(r),!0).forEach(function(n){Hp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _re(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,$C(n.key),n)}}function Sre(e,t,r){return t&&_re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Are(e,t,r){return t=Zd(t),Tre(e,BC()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function Tre(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 Nre(e)}function Nre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BC=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(e)}function Ere(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&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},C2(e,t)}function Hp(e,t,r){return t=$C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $C(e){var t=Pre(e,"string");return Cc(t)=="symbol"?t:t+""}function Pre(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 Ore=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=p5({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 wre(this,t),Are(this,t,arguments)}return Ere(t,e),Sre(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=Ore(this.props);if(!f)return null;var d=f.x,h=f.y,g=this.props,p=g.shape,m=g.className,y=Ra(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=ZN(ZN({clipPath:y},bt(this.props,!0)),{},{cx:d,cy:h});return W.createElement(lr,{className:Dt("recharts-reference-dot",m)},t.renderDot(p,b),jn.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(W.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 W.isValidElement(e)?r=W.cloneElement(e,t):jt(e)?r=e(t):r=W.createElement(y0,j2({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function k2(){return k2=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},k2.apply(this,arguments)}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 QN(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 eE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(r),!0).forEach(function(n){Vp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cre(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,UC(n.key),n)}}function kre(e,t,r){return t&&Cre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lre(e,t,r){return t=Qd(t),Ire(e,qC()?Reflect.construct(t,r||[],Qd(e).constructor):t.apply(e,r))}function Ire(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 Fre(e)}function Fre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qC=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qd(e)}function Mre(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 Vp(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=Dre(e,"string");return kc(t)=="symbol"?t:t+""}function Dre(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 Rre=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=p5({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:EC(h,g)},Yp=(function(e){function t(){return jre(this,t),Lre(this,t,arguments)}return Mre(t,e),kre(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 m=Rre(f,d,h,g,this.props);if(!m&&!p)return null;var y=Ra(this.props,"hidden")?"url(#".concat(u,")"):void 0;return W.createElement(lr,{className:Dt("recharts-reference-area",l)},t.renderRect(p,eE(eE({clipPath:y},bt(this.props,!0)),m)),jn.renderCallByParent(this.props,m))}}])})(W.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 W.isValidElement(e)?r=W.cloneElement(e,t):jt(e)?r=e(t):r=W.createElement(d5,k2({},t,{className:"recharts-reference-area-rect"})),r});function zC(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 Bre(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Wte(n,r)}function $re(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 qre(e,t){return zC(e,t+1)}function Ure(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:zC(n,c)};var p=l,m,y=function(){return m===void 0&&(m=r(g,p)),m},b=g.coordinate,w=l===0||ep(e,b,y,u,s);w||(l=0,u=o,c+=1),w&&(u=b+e*(y()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}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 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 Un(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){zre(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 zre(e,t,r){return t=Wre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wre(e){var t=Hre(e,"string");return Qf(t)=="symbol"?t:t+""}function Hre(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(t==="string"?String:Number)(e)}function Gre(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 m=e*(h.coordinate+e*p()/2-l);a[d]=h=Un(Un({},h),{},{tickCoord:m>0?h.coordinate-m*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 Vre(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 w=o[b],S,A=function(){return S===void 0&&(S=r(w,b)),S};if(b===0){var O=e*(w.coordinate-e*A()/2-l);o[b]=w=Un(Un({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[b]=w=Un(Un({},w),{},{tickCoord:w.coordinate});var T=ep(e,w.tickCoord,A,l,c);T&&(l=w.tickCoord+e*(A()/2+i),o[b]=Un(Un({},w),{},{isShow:!0}))},m=0;m<g;m++)p(m);return o}function w5(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)||sl.isSsr)return qre(i,typeof l=="number"&&nt(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",g=u&&h==="width"?nf(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(w,S){var A=jt(c)?c(w.value,S):w.value;return h==="width"?Bre(nf(A,{fontSize:t,letterSpacing:r}),g,f):nf(A,{fontSize:t,letterSpacing:r})[h]},m=i.length>=2?ya(i[1].coordinate-i[0].coordinate):1,y=$re(a,m,h);return l==="equidistantPreserveStart"?Ure(m,y,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=Vre(m,y,p,i,o,l==="preserveStartEnd"):d=Gre(m,y,p,i,o),d.filter(function(b){return b.isShow}))}var Yre=["viewBox"],Kre=["viewBox"],Xre=["ticks"];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 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 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 un(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){_5(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 ty(e,t){if(e==null)return{};var r=Jre(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 Jre(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 Zre(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,HC(n.key),n)}}function Qre(e,t,r){return t&&nE(e.prototype,t),r&&nE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ene(e,t,r){return t=tp(t),tne(e,WC()?Reflect.construct(t,r||[],tp(e).constructor):t.apply(e,r))}function tne(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 rne(e)}function rne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tp(e)}function nne(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&&I2(e,t)}function I2(e,t){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},I2(e,t)}function _5(e,t,r){return t=HC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HC(e){var t=ine(e,"string");return Lc(t)=="symbol"?t:t+""}function ine(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 Zc=(function(e){function t(r){var n;return Zre(this,t),n=ene(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return nne(t,e),Qre(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ty(n,Yre),s=this.props,l=s.viewBox,c=ty(s,Kre);return!sc(a,l)||!sc(o,c)||!sc(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,m,y,b,w=f?-1:1,S=n.tickSize||u,A=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=g=n.coordinate,m=o+ +!f*l,p=m-w*S,b=p-w*d,y=A;break;case"left":p=m=n.coordinate,g=a+ +!f*s,h=g-w*S,y=h-w*d,b=A;break;case"right":p=m=n.coordinate,g=a+ +f*s,h=g+w*S,y=h+w*d,b=A;break;default:h=g=n.coordinate,m=o+ +f*l,p=m+w*S,b=p+w*d,y=A;break}return{line:{x1:h,y1:p,x2:g,y2:m},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({},bt(this.props,!1)),bt(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 W.createElement("line",Ql({},f,{className:Dt("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=w5(un(un({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),m=bt(this.props,!1),y=bt(u,!1),b=un(un({},m),{},{fill:"none"},bt(l,!1)),w=h.map(function(S,A){var O=o.getTickLineCoord(S),T=O.line,k=O.tick,L=un(un(un(un({textAnchor:g,verticalAnchor:p},m),{},{stroke:"none",fill:c},y),k),{},{index:A,payload:S,visibleTicksCount:h.length,tickFormatter:f});return W.createElement(lr,Ql({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},fc(o.props,S,A)),l&&W.createElement("line",Ql({},b,T,{className:Dt("recharts-cartesian-axis-tick-line",Ki(l,"className"))})),u&&t.renderTickItem(u,L,"".concat(jt(f)?f(S.value,A):S.value).concat(d||"")))});return W.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{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,Xre),g=d;return jt(l)&&(g=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!g||!g.length?null:W.createElement(lr,{className:Dt("recharts-cartesian-axis",c),ref:function(m){n.layerReference=m}},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=Dt(i.className,"recharts-cartesian-axis-tick-value");return W.isValidElement(n)?o=W.cloneElement(n,un(un({},i),{},{className:s})):jt(n)?o=n(un(un({},i),{},{className:s})):o=W.createElement(gc,Ql({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(W.Component);_5(Zc,"displayName","CartesianAxis");_5(Zc,"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 ane=["x1","y1","x2","y2","key"],one=["offset"];function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}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 zn(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){sne(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 sne(e,t,r){return t=lne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lne(e){var t=cne(e,"string");return Qs(t)=="symbol"?t:t+""}function cne(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(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 aE(e,t){if(e==null)return{};var r=une(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 une(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 fne=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 W.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function GC(e,t){var r;if(W.isValidElement(e))r=W.cloneElement(e,t);else if(jt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=aE(t,ane),c=bt(l,!1);c.offset;var u=aE(c,one);r=W.createElement("line",Rs({},u,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function hne(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 GC(i,c)});return W.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function dne(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 GC(i,c)});return W.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function pne(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 m=h%t.length;return W.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function mne(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 m=h%n.length;return W.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[m],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var vne=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Uj(w5(zn(zn(zn({},Zc.defaultProps),n),{},{ticks:uo(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},gne=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Uj(w5(zn(zn(zn({},Zc.defaultProps),n),{},{ticks:uo(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},zl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function F2(e){var t,r,n,i,a,o,s=g5(),l=x5(),c=ire(),u=zn(zn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:zl.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:zl.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:zl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:zl.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:zl.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:zl.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,m=u.horizontalValues,y=u.verticalValues,b=tre(),w=rre();if(!nt(h)||h<=0||!nt(g)||g<=0||!nt(f)||f!==+f||!nt(d)||d!==+d)return null;var S=u.verticalCoordinatesGenerator||vne,A=u.horizontalCoordinatesGenerator||gne,O=u.horizontalPoints,T=u.verticalPoints;if((!O||!O.length)&&jt(A)){var k=m&&m.length,L=A({yAxis:w?zn(zn({},w),{},{ticks:k?m:w.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(Qs(L),"]")),Array.isArray(L)&&(O=L)}if((!T||!T.length)&&jt(S)){var R=y&&y.length,j=S({xAxis:b?zn(zn({},b),{},{ticks:R?y:b.ticks}):void 0,width:s,height:l,offset:c},R?!0:p);vo(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Qs(j),"]")),Array.isArray(j)&&(T=j)}return W.createElement("g",{className:"recharts-cartesian-grid"},W.createElement(fne,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),W.createElement(hne,Rs({},u,{offset:c,horizontalPoints:O,xAxis:b,yAxis:w})),W.createElement(dne,Rs({},u,{offset:c,verticalPoints:T,xAxis:b,yAxis:w})),W.createElement(pne,Rs({},u,{horizontalPoints:O})),W.createElement(mne,Rs({},u,{verticalPoints:T})))}F2.displayName="CartesianGrid";var xne=["type","layout","connectNulls","ref"],yne=["key"];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 oE(e,t){if(e==null)return{};var r=bne(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 bne(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 uf(){return uf=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},uf.apply(this,arguments)}function sE(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?sE(Object(r),!0).forEach(function(n){ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wl(e){return Ane(e)||Sne(e)||_ne(e)||wne()}function wne(){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 _ne(e,t){if(e){if(typeof e=="string")return M2(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 M2(e,t)}}function Sne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ane(e){if(Array.isArray(e))return M2(e)}function M2(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 Tne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lE(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,YC(n.key),n)}}function Nne(e,t,r){return t&&lE(e.prototype,t),r&&lE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ene(e,t,r){return t=rp(t),Pne(e,VC()?Reflect.construct(t,r||[],rp(e).constructor):t.apply(e,r))}function Pne(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 One(e)}function One(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rp(e)}function jne(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 ma(e,t,r){return t=YC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YC(e){var t=Cne(e,"string");return Ic(t)=="symbol"?t:t+""}function Cne(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)}var S0=(function(e){function t(){var r;Tne(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Ene(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(Wl(l.slice(0,g)),[f-p]);break}var m=h.length%2===0?[0,d]:[d];return[].concat(Wl(t.repeat(l,u)),Wl(h),m).map(function(y){return"".concat(y,"px")}).join(", ")}),ma(r,"id",f0("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 jne(t,e),Nne(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,x0);if(!f)return null;var d=function(p,m){return{x:p.x,y:p.y,value:p.value,errorVal:ii(p.payload,m)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return W.createElement(lr,h,f.map(function(g){return W.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=bt(this.props,!1),d=bt(l,!0),h=c.map(function(p,m){var y=Ai(Ai(Ai({key:"dot-".concat(m),r:3},f),d),{},{index:m,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 W.createElement(lr,uf({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=oE(s,xne),d=Ai(Ai(Ai({},bt(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 W.createElement(c2,uf({},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,m=o.height,y=this.state,b=y.prevPoints,w=y.totalLength;return W.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 O=b.length/s.length,T=s.map(function(E,D){var U=Math.floor(D*O);if(b[U]){var H=b[U],B=ti(H.x,E.x),z=ti(H.y,E.y);return Ai(Ai({},E),{},{x:B(A),y:z(A)})}if(g){var te=ti(p*2,E.x),Z=ti(m/2,E.y);return Ai(Ai({},E),{},{x:te(A),y:Z(A)})}return Ai(Ai({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(T,n,i)}var k=ti(0,w),L=k(A),R;if(l){var j="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});R=a.getStrokeDasharray(L,w,j)}else R=a.generateSimpleStrokeDasharray(w,L);return a.renderCurveStatically(s,n,i,{strokeDasharray:R})})}},{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||!g0(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,m=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,b=s.length===1,w=Dt("recharts-line",l),S=c&&c.allowDataOverflow,A=u&&u.allowDataOverflow,O=S||A,T=qt(m)?this.id:m,k=(n=bt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},L=k.r,R=L===void 0?3:L,j=k.strokeWidth,E=j===void 0?2:j,D=Mq(o)?o:{},U=D.clipDot,H=U===void 0?!0:U,B=R*2+E;return W.createElement(lr,{className:w},S||A?W.createElement("defs",null,W.createElement("clipPath",{id:"clipPath-".concat(T)},W.createElement("rect",{x:S?d:d-h/2,y:A?f:f-g/2,width:S?h:h*2,height:A?g:g*2})),!H&&W.createElement("clipPath",{id:"clipPath-dots-".concat(T)},W.createElement("rect",{x:d-B/2,y:f-B/2,width:h+B,height:g+B}))):null,!b&&this.renderCurve(O,T),this.renderErrorBar(O,T),(b||o)&&this.renderDots(O,H,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(Wl(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Wl(o),Wl(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(W.isValidElement(n))a=W.cloneElement(n,i);else if(jt(n))a=n(i);else{var o=i.key,s=oE(i,yne),l=Dt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=W.createElement(y0,uf({key:o},s,{className:l}))}return a}}])})(W.PureComponent);ma(S0,"displayName","Line");ma(S0,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!sl.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ma(S0,"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:nT({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:qt(g)?null:n.scale(g),value:g,payload:d}:{x:qt(g)?null:r.scale(g),y:nT({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:g,payload:d}});return Ai({points:f,layout:u},c)});function Fc(e){"@babel/helpers - typeof";return Fc=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},Fc(e)}function kne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lne(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,JC(n.key),n)}}function Ine(e,t,r){return t&&Lne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fne(e,t,r){return t=np(t),Mne(e,KC()?Reflect.construct(t,r||[],np(e).constructor):t.apply(e,r))}function Mne(e,t){if(t&&(Fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dne(e)}function Dne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KC=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},np(e)}function Rne(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&&R2(e,t)}function R2(e,t){return R2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},R2(e,t)}function XC(e,t,r){return t=JC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JC(e){var t=Bne(e,"string");return Fc(t)=="symbol"?t:t+""}function Bne(e,t){if(Fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}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 $ne(e){var t=e.xAxisId,r=g5(),n=x5(),i=FC(t);return i==null?null:is.createElement(Zc,B2({},i,{className:Dt("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 Mc=(function(e){function t(){return kne(this,t),Fne(this,t,arguments)}return Rne(t,e),Ine(t,[{key:"render",value:function(){return is.createElement($ne,this.props)}}])})(is.Component);XC(Mc,"displayName","XAxis");XC(Mc,"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 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)}function qne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Une(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,e8(n.key),n)}}function zne(e,t,r){return t&&Une(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wne(e,t,r){return t=ip(t),Hne(e,ZC()?Reflect.construct(t,r||[],ip(e).constructor):t.apply(e,r))}function Hne(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 Gne(e)}function Gne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZC=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ip(e)}function Vne(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 QC(e,t,r){return t=e8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e8(e){var t=Yne(e,"string");return Dc(t)=="symbol"?t:t+""}function Yne(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 q2(){return q2=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},q2.apply(this,arguments)}var Kne=function(t){var r=t.yAxisId,n=g5(),i=x5(),a=MC(r);return a==null?null:is.createElement(Zc,q2({},a,{className:Dt("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)}}))},Rc=(function(e){function t(){return qne(this,t),Wne(this,t,arguments)}return Vne(t,e),zne(t,[{key:"render",value:function(){return is.createElement(Kne,this.props)}}])})(is.Component);QC(Rc,"displayName","YAxis");QC(Rc,"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 cE(e){return Qne(e)||Zne(e)||Jne(e)||Xne()}function Xne(){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 Jne(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 Zne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qne(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 z2=function(t,r,n,i,a){var o=Xi(t,b5),s=Xi(t,Gp),l=[].concat(cE(o),cE(s)),c=Xi(t,Yp),u="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(p,m){if(m.props[u]===n&&Ra(m.props,"extendDomain")&&nt(m.props[f])){var y=m.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,m){if(m.props[u]===n&&Ra(m.props,"extendDomain")&&nt(m.props[h])&&nt(m.props[g])){var y=m.props[h],b=m.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,m){return nt(m)?[Math.min(p[0],m),Math.max(p[1],m)]:p},d)),d},ry={exports:{}},uE;function eie(){return uE||(uE=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 m=this._events[p],y=arguments.length,b,w;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,f),!0;case 4:return m.fn.call(m.context,u,f,d),!0;case 5:return m.fn.call(m.context,u,f,d,h),!0;case 6:return m.fn.call(m.context,u,f,d,h,g),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];m.fn.apply(m.context,b)}else{var S=m.length,A;for(w=0;w<S;w++)switch(m[w].once&&this.removeListener(c,m[w].fn,void 0,!0),y){case 1:m[w].fn.call(m[w].context);break;case 2:m[w].fn.call(m[w].context,u);break;case 3:m[w].fn.call(m[w].context,u,f);break;case 4:m[w].fn.call(m[w].context,u,f,d);break;default:if(!b)for(A=1,b=new Array(y-1);A<y;A++)b[A-1]=arguments[A];m[w].fn.apply(m[w].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,m=[],y=g.length;p<y;p++)(g[p].fn!==u||d&&!g[p].once||f&&g[p].context!==f)&&m.push(g[p]);m.length?this._events[h]=m.length===1?m[0]:m: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 tie=eie();const rie=ur(tie);var ny=new rie,iy="recharts.syncMouseEvents";function e0(e){"@babel/helpers - typeof";return e0=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},e0(e)}function nie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iie(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,t8(n.key),n)}}function aie(e,t,r){return t&&iie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ay(e,t,r){return t=t8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t8(e){var t=oie(e,"string");return e0(t)=="symbol"?t:t+""}function oie(e,t){if(e0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(e0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sie=(function(){function e(){nie(this,e),ay(this,"activeIndex",0),ay(this,"coordinateList",[]),ay(this,"layout","horizontal")}return aie(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 lie(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 cie(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 r8(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 uie(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 r8(t);return[{x:n,y:i},{x:a,y:o}]}function t0(e){"@babel/helpers - typeof";return t0=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},t0(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 Bh(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){fie(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 fie(e,t,r){return t=hie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hie(e){var t=die(e,"string");return t0(t)=="symbol"?t:t+""}function die(e,t){if(t0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(t0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pie(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=c2;if(d==="ScatterChart")g=o,p=gQ;else if(d==="BarChart")g=cie(f,o,l,u),p=d5;else if(f==="radial"){var m=r8(o),y=m.cx,b=m.cy,w=m.radius,S=m.startAngle,A=m.endAngle;g={cx:y,cy:b,startAngle:S,endAngle:A,innerRadius:w,outerRadius:w},p=Qj}else g={points:uie(f,o,l)},p=c2;var O=Bh(Bh(Bh(Bh({stroke:"#ccc",pointerEvents:"none"},l),g),bt(h,!1)),{},{payload:s,payloadIndex:c,className:Dt("recharts-tooltip-cursor",h.className)});return W.isValidElement(h)?W.cloneElement(h,O):W.createElement(p,O)}var mie=["item"],vie=["children","className","width","height","style","compact","title","desc"];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 ec(){return ec=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},ec.apply(this,arguments)}function hE(e,t){return yie(e)||xie(e,t)||i8(e,t)||gie()}function gie(){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 xie(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 yie(e){if(Array.isArray(e))return e}function dE(e,t){if(e==null)return{};var r=bie(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 bie(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 wie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ie(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,a8(n.key),n)}}function Sie(e,t,r){return t&&_ie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aie(e,t,r){return t=ap(t),Tie(e,n8()?Reflect.construct(t,r||[],ap(e).constructor):t.apply(e,r))}function Tie(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 Nie(e)}function Nie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n8=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ap(e)}function Eie(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 $c(e){return jie(e)||Oie(e)||i8(e)||Pie()}function Pie(){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 i8(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 Oie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jie(e){if(Array.isArray(e))return H2(e)}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 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 Be(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){Tt(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 Tt(e,t,r){return t=a8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a8(e){var t=Cie(e,"string");return Bc(t)=="symbol"?t:t+""}function Cie(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(t==="string"?String:Number)(e)}var kie={xAxis:["bottom","top"],yAxis:["left","right"]},Lie={width:"100%",height:"100%"},o8={x:0,y:0};function $h(e){return e}var Iie=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Fie=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 o8},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($c(s),$c(c)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function s8(e){return e==="number"?[0,"auto"]:void 0}var G2=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($c(l),[Vj(c,d)]):l},[])},mE=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Iie(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=IK(o,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,d=G2(t,r,u,f),h=Fie(n,s,u,a);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},Mie=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=qj(u,a);return n.reduce(function(g,p){var m,y=p.type.defaultProps!==void 0?Be(Be({},p.type.defaultProps),p.props):p.props,b=y.type,w=y.dataKey,S=y.allowDataOverflow,A=y.allowDuplicatedCategory,O=y.scale,T=y.ticks,k=y.includeHidden,L=y[o];if(g[L])return g;var R=Kp(t.data,{graphicalItems:i.filter(function(P){var I,M=o in P.props?P.props[o]:(I=P.type.defaultProps)===null||I===void 0?void 0:I[o];return M===L}),dataStartIndex:l,dataEndIndex:c}),j=R.length,E,D,U;lie(y.domain,S,b)&&(E=i2(y.domain,null,S),h&&(b==="number"||O!=="auto")&&(U=of(R,w,"category")));var H=s8(b);if(!E||E.length===0){var B,z=(B=y.domain)!==null&&B!==void 0?B:H;if(w){if(E=of(R,w,b),b==="category"&&h){var te=Nq(E);A&&te?(D=E,E=Hd(0,j)):A||(E=sT(z,E,p).reduce(function(P,I){return P.indexOf(I)>=0?P:[].concat($c(P),[I])},[]))}else if(b==="category")A?E=E.filter(function(P){return P!==""&&!qt(P)}):E=sT(z,E,p).reduce(function(P,I){return P.indexOf(I)>=0||I===""||qt(I)?P:[].concat($c(P),[I])},[]);else if(b==="number"){var Z=BK(R,i.filter(function(P){var I,M,q=o in P.props?P.props[o]:(I=P.type.defaultProps)===null||I===void 0?void 0:I[o],Y="hide"in P.props?P.props.hide:(M=P.type.defaultProps)===null||M===void 0?void 0:M.hide;return q===L&&(k||!Y)}),w,a,u);Z&&(E=Z)}h&&(b==="number"||O!=="auto")&&(U=of(R,w,"category"))}else h?E=Hd(0,j):s&&s[L]&&s[L].hasStack&&b==="number"?E=d==="expand"?[0,1]:Gj(s[L].stackGroups,l,c):E=$j(R,i.filter(function(P){var I=o in P.props?P.props[o]:P.type.defaultProps[o],M="hide"in P.props?P.props.hide:P.type.defaultProps.hide;return I===L&&(k||!M)}),b,u,!0);if(b==="number")E=z2(f,E,L,a,T),z&&(E=i2(z,E,S));else if(b==="category"&&z){var ee=z,ce=E.every(function(P){return ee.indexOf(P)>=0});ce&&(E=ee)}}return Be(Be({},g),{},Tt({},L,Be(Be({},y),{},{axisType:a,domain:E,categoricalDomain:U,duplicateDomain:D,originalDomain:(m=y.domain)!==null&&m!==void 0?m:H,isCategorical:h,layout:u})))},{})},Die=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=qj(u,a),p=-1;return n.reduce(function(m,y){var b=y.type.defaultProps!==void 0?Be(Be({},y.type.defaultProps),y.props):y.props,w=b[o],S=s8("number");if(!m[w]){p++;var A;return g?A=Hd(0,h):s&&s[w]&&s[w].hasStack?(A=Gj(s[w].stackGroups,l,c),A=z2(f,A,w,a)):(A=i2(S,$j(d,n.filter(function(O){var T,k,L=o in O.props?O.props[o]:(T=O.type.defaultProps)===null||T===void 0?void 0:T[o],R="hide"in O.props?O.props.hide:(k=O.type.defaultProps)===null||k===void 0?void 0:k.hide;return L===w&&!R}),"number",u),i.defaultProps.allowDataOverflow),A=z2(f,A,w,a)),Be(Be({},m),{},Tt({},w,Be(Be({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ki(kie,"".concat(a,".").concat(p%2),null),domain:A,originalDomain:S,isCategorical:g,layout:u})))}return m},{})},Rie=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=Mie(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(h=Die(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),h},Bie=function(t){var r=Xo(t),n=uo(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:jd(r,n)}},vE=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ei(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}},$ie=function(t){return!t||!t.length?!1:t.some(function(r){var n=mo(r&&r.type);return n&&n.indexOf("Bar")>=0})},gE=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"}},qie=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=Ei(f,Ec),g=Ei(f,Hs),p=Object.keys(l).reduce(function(A,O){var T=l[O],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}),m=Object.keys(o).reduce(function(A,O){var T=o[O],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({},m),p),b=y.bottom;h&&(y.bottom+=h.props.height||Ec.defaultProps.height),g&&r&&(y=DK(y,i,n,r));var w=c-y.left-y.right,S=u-y.top-y.bottom;return Be(Be({brushBottom:b},y),{},{width:Math.max(w,0),height:Math.max(S,0)})},Uie=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},S5=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 w=b.graphicalItems,S=b.stackGroups,A=b.offset,O=b.updateId,T=b.dataStartIndex,k=b.dataEndIndex,L=y.barSize,R=y.layout,j=y.barGap,E=y.barCategoryGap,D=y.maxBarSize,U=gE(R),H=U.numericAxisName,B=U.cateAxisName,z=$ie(w),te=[];return w.forEach(function(Z,ee){var ce=Kp(y.data,{graphicalItems:[Z],dataStartIndex:T,dataEndIndex:k}),P=Z.type.defaultProps!==void 0?Be(Be({},Z.type.defaultProps),Z.props):Z.props,I=P.dataKey,M=P.maxBarSize,q=P["".concat(H,"Id")],Y=P["".concat(B,"Id")],fe={},ne=l.reduce(function(Ze,Je){var dt,vt,wt=b["".concat(Je.axisType,"Map")],Pt=P["".concat(Je.axisType,"Id")];wt&&wt[Pt]||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((dt=Z==null||(vt=Z.type)===null||vt===void 0?void 0:vt.displayName)!==null&&dt!==void 0?dt:"")):hi());var It=wt[Pt];return Be(Be({},Ze),{},Tt(Tt({},Je.axisType,It),"".concat(Je.axisType,"Ticks"),uo(It)))},fe),K=ne[B],he=ne["".concat(B,"Ticks")],be=S&&S[q]&&S[q].hasStack&&YK(Z,S[q].stackGroups),se=mo(Z.type).indexOf("Bar")>=0,Le=jd(K,he),Se=[],Ae=z&&FK({barSize:L,stackGroups:S,totalSize:Uie(ne,B)});if(se){var le,Me,Qe=qt(M)?D:M,Ue=(le=(Me=jd(K,he,!0))!==null&&Me!==void 0?Me:Qe)!==null&&le!==void 0?le:0;Se=MK({barGap:j,barCategoryGap:E,bandSize:Ue!==Le?Ue:Le,sizeList:Ae[Y],maxBarSize:Qe}),Ue!==Le&&(Se=Se.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&&te.push({props:Be(Be({},Ke(Be(Be({},ne),{},{displayedData:ce,props:y,dataKey:I,item:Z,bandSize:Le,barPosition:Se,offset:A,stackedData:be,layout:R,dataStartIndex:T,dataEndIndex:k}))),{},Tt(Tt(Tt({key:Z.key||"item-".concat(ee)},H,ne[H]),B,ne[B]),"animationId",O)),childIndex:Bq(Z,y.children),item:Z})}),te},h=function(y,b){var w=y.props,S=y.dataStartIndex,A=y.dataEndIndex,O=y.updateId;if(!w4({props:w}))return null;var T=w.children,k=w.layout,L=w.stackOffset,R=w.data,j=w.reverseStackOrder,E=gE(k),D=E.numericAxisName,U=E.cateAxisName,H=Xi(T,n),B=GK(R,H,"".concat(D,"Id"),"".concat(U,"Id"),L,j),z=l.reduce(function(P,I){var M="".concat(I.axisType,"Map");return Be(Be({},P),{},Tt({},M,Rie(w,Be(Be({},I),{},{graphicalItems:H,stackGroups:I.axisType===D&&B,dataStartIndex:S,dataEndIndex:A}))))},{}),te=qie(Be(Be({},z),{},{props:w,graphicalItems:H}),b==null?void 0:b.legendBBox);Object.keys(z).forEach(function(P){z[P]=u(w,z[P],te,P.replace("Map",""),r)});var Z=z["".concat(U,"Map")],ee=Bie(Z),ce=d(w,Be(Be({},z),{},{dataStartIndex:S,dataEndIndex:A,updateId:O,graphicalItems:H,stackGroups:B,offset:te}));return Be(Be({formattedGraphicalItems:ce,graphicalItems:H,offset:te,stackGroups:B},ee),z)},g=(function(m){function y(b){var w,S,A;return wie(this,y),A=Aie(this,y,[b]),Tt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Tt(A,"accessibilityManager",new sie),Tt(A,"handleLegendBBoxUpdate",function(O){if(O){var T=A.state,k=T.dataStartIndex,L=T.dataEndIndex,R=T.updateId;A.setState(Be({legendBBox:O},h({props:A.props,dataStartIndex:k,dataEndIndex:L,updateId:R},Be(Be({},A.state),{},{legendBBox:O}))))}}),Tt(A,"handleReceiveSyncEvent",function(O,T,k){if(A.props.syncId===O){if(k===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(T)}}),Tt(A,"handleBrushChange",function(O){var T=O.startIndex,k=O.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(O){var T=A.getMouseInfo(O);if(T){var k=Be(Be({},T),{},{isTooltipActive:!0});A.setState(k),A.triggerSyncEvent(k);var L=A.props.onMouseEnter;jt(L)&&L(k,O)}}),Tt(A,"triggeredAfterMouseMove",function(O){var T=A.getMouseInfo(O),k=T?Be(Be({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(k),A.triggerSyncEvent(k);var L=A.props.onMouseMove;jt(L)&&L(k,O)}),Tt(A,"handleItemMouseEnter",function(O){A.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),Tt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Tt(A,"handleMouseMove",function(O){O.persist(),A.throttleTriggeredAfterMouseMove(O)}),Tt(A,"handleMouseLeave",function(O){A.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};A.setState(T),A.triggerSyncEvent(T);var k=A.props.onMouseLeave;jt(k)&&k(T,O)}),Tt(A,"handleOuterEvent",function(O){var T=Rq(O),k=Ki(A.props,"".concat(T));if(T&&jt(k)){var L,R;/.*touch.*/i.test(T)?R=A.getMouseInfo(O.changedTouches[0]):R=A.getMouseInfo(O),k((L=R)!==null&&L!==void 0?L:{},O)}}),Tt(A,"handleClick",function(O){var T=A.getMouseInfo(O);if(T){var k=Be(Be({},T),{},{isTooltipActive:!0});A.setState(k),A.triggerSyncEvent(k);var L=A.props.onClick;jt(L)&&L(k,O)}}),Tt(A,"handleMouseDown",function(O){var T=A.props.onMouseDown;if(jt(T)){var k=A.getMouseInfo(O);T(k,O)}}),Tt(A,"handleMouseUp",function(O){var T=A.props.onMouseUp;if(jt(T)){var k=A.getMouseInfo(O);T(k,O)}}),Tt(A,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),Tt(A,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseDown(O.changedTouches[0])}),Tt(A,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseUp(O.changedTouches[0])}),Tt(A,"handleDoubleClick",function(O){var T=A.props.onDoubleClick;if(jt(T)){var k=A.getMouseInfo(O);T(k,O)}}),Tt(A,"handleContextMenu",function(O){var T=A.props.onContextMenu;if(jt(T)){var k=A.getMouseInfo(O);T(k,O)}}),Tt(A,"triggerSyncEvent",function(O){A.props.syncId!==void 0&&ny.emit(iy,A.props.syncId,O,A.eventEmitterSymbol)}),Tt(A,"applySyncEvent",function(O){var T=A.props,k=T.layout,L=T.syncMethod,R=A.state.updateId,j=O.dataStartIndex,E=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)A.setState(Be({dataStartIndex:j,dataEndIndex:E},h({props:A.props,dataStartIndex:j,dataEndIndex:E,updateId:R},A.state)));else if(O.activeTooltipIndex!==void 0){var D=O.chartX,U=O.chartY,H=O.activeTooltipIndex,B=A.state,z=B.offset,te=B.tooltipTicks;if(!z)return;if(typeof L=="function")H=L(te,O);else if(L==="value"){H=-1;for(var Z=0;Z<te.length;Z++)if(te[Z].value===O.activeLabel){H=Z;break}}var ee=Be(Be({},z),{},{x:z.left,y:z.top}),ce=Math.min(D,ee.x+ee.width),P=Math.min(U,ee.y+ee.height),I=te[H]&&te[H].value,M=G2(A.state,A.props.data,H),q=te[H]?{x:k==="horizontal"?te[H].coordinate:ce,y:k==="horizontal"?P:te[H].coordinate}:o8;A.setState(Be(Be({},O),{},{activeLabel:I,activeCoordinate:q,activePayload:M,activeTooltipIndex:H}))}else A.setState(O)}),Tt(A,"renderCursor",function(O){var T,k=A.state,L=k.isTooltipActive,R=k.activeCoordinate,j=k.activePayload,E=k.offset,D=k.activeTooltipIndex,U=k.tooltipAxisBandSize,H=A.getTooltipEventType(),B=(T=O.props.active)!==null&&T!==void 0?T:L,z=A.props.layout,te=O.key||"_recharts-cursor";return W.createElement(pie,{key:te,activeCoordinate:R,activePayload:j,activeTooltipIndex:D,chartName:r,element:O,isActive:B,layout:z,offset:E,tooltipAxisBandSize:U,tooltipEventType:H})}),Tt(A,"renderPolarAxis",function(O,T,k){var L=Ki(O,"type.axisType"),R=Ki(A.state,"".concat(L,"Map")),j=O.type.defaultProps,E=j!==void 0?Be(Be({},j),O.props):O.props,D=R&&R[E["".concat(L,"Id")]];return W.cloneElement(O,Be(Be({},D),{},{className:Dt(L,D.className),key:O.key||"".concat(T,"-").concat(k),ticks:uo(D,!0)}))}),Tt(A,"renderPolarGrid",function(O){var T=O.props,k=T.radialLines,L=T.polarAngles,R=T.polarRadius,j=A.state,E=j.radiusAxisMap,D=j.angleAxisMap,U=Xo(E),H=Xo(D),B=H.cx,z=H.cy,te=H.innerRadius,Z=H.outerRadius;return W.cloneElement(O,{polarAngles:Array.isArray(L)?L:uo(H,!0).map(function(ee){return ee.coordinate}),polarRadius:Array.isArray(R)?R:uo(U,!0).map(function(ee){return ee.coordinate}),cx:B,cy:z,innerRadius:te,outerRadius:Z,key:O.key||"polar-grid",radialLines:k})}),Tt(A,"renderLegend",function(){var O=A.state.formattedGraphicalItems,T=A.props,k=T.children,L=T.width,R=T.height,j=A.props.margin||{},E=L-(j.left||0)-(j.right||0),D=Rj({children:k,formattedGraphicalItems:O,legendWidth:E,legendContent:c});if(!D)return null;var U=D.item,H=dE(D,mie);return W.cloneElement(U,Be(Be({},H),{},{chartWidth:L,chartHeight:R,margin:j,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Tt(A,"renderTooltip",function(){var O,T=A.props,k=T.children,L=T.accessibilityLayer,R=Ei(k,da);if(!R)return null;var j=A.state,E=j.isTooltipActive,D=j.activeCoordinate,U=j.activePayload,H=j.activeLabel,B=j.offset,z=(O=R.props.active)!==null&&O!==void 0?O:E;return W.cloneElement(R,{viewBox:Be(Be({},B),{},{x:B.left,y:B.top}),active:z,label:H,payload:z?U:[],coordinate:D,accessibilityLayer:L})}),Tt(A,"renderBrush",function(O){var T=A.props,k=T.margin,L=T.data,R=A.state,j=R.offset,E=R.dataStartIndex,D=R.dataEndIndex,U=R.updateId;return W.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Lh(A.handleBrushChange,O.props.onChange),data:L,x:nt(O.props.x)?O.props.x:j.left,y:nt(O.props.y)?O.props.y:j.top+j.height+j.brushBottom-(k.bottom||0),width:nt(O.props.width)?O.props.width:j.width,startIndex:E,endIndex:D,updateId:"brush-".concat(U)})}),Tt(A,"renderReferenceElement",function(O,T,k){if(!O)return null;var L=A,R=L.clipPathId,j=A.state,E=j.xAxisMap,D=j.yAxisMap,U=j.offset,H=O.type.defaultProps||{},B=O.props,z=B.xAxisId,te=z===void 0?H.xAxisId:z,Z=B.yAxisId,ee=Z===void 0?H.yAxisId:Z;return W.cloneElement(O,{key:O.key||"".concat(T,"-").concat(k),xAxis:E[te],yAxis:D[ee],viewBox:{x:U.left,y:U.top,width:U.width,height:U.height},clipPathId:R})}),Tt(A,"renderActivePoints",function(O){var T=O.item,k=O.activePoint,L=O.basePoint,R=O.childIndex,j=O.isRange,E=[],D=T.props.key,U=T.item.type.defaultProps!==void 0?Be(Be({},T.item.type.defaultProps),T.item.props):T.item.props,H=U.activeDot,B=U.dataKey,z=Be(Be({index:R,dataKey:B,cx:k.x,cy:k.y,r:4,fill:f5(T.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},bt(H,!1)),ad(H));return E.push(y.renderActiveDot(H,z,"".concat(D,"-activePoint-").concat(R))),L?E.push(y.renderActiveDot(H,Be(Be({},z),{},{cx:L.x,cy:L.y}),"".concat(D,"-basePoint-").concat(R))):j&&E.push(null),E}),Tt(A,"renderGraphicChild",function(O,T,k){var L=A.filterFormatItem(O,T,k);if(!L)return null;var R=A.getTooltipEventType(),j=A.state,E=j.isTooltipActive,D=j.tooltipAxis,U=j.activeTooltipIndex,H=j.activeLabel,B=A.props.children,z=Ei(B,da),te=L.props,Z=te.points,ee=te.isRange,ce=te.baseLine,P=L.item.type.defaultProps!==void 0?Be(Be({},L.item.type.defaultProps),L.item.props):L.item.props,I=P.activeDot,M=P.hide,q=P.activeBar,Y=P.activeShape,fe=!!(!M&&E&&z&&(I||q||Y)),ne={};R!=="axis"&&z&&z.props.trigger==="click"?ne={onClick:Lh(A.handleItemMouseEnter,O.props.onClick)}:R!=="axis"&&(ne={onMouseLeave:Lh(A.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Lh(A.handleItemMouseEnter,O.props.onMouseEnter)});var K=W.cloneElement(O,Be(Be({},L.props),ne));function he(Je){return typeof D.dataKey=="function"?D.dataKey(Je.payload):null}if(fe)if(U>=0){var be,se;if(D.dataKey&&!D.allowDuplicatedCategory){var Le=typeof D.dataKey=="function"?he:"payload.".concat(D.dataKey.toString());be=id(Z,Le,H),se=ee&&ce&&id(ce,Le,H)}else be=Z==null?void 0:Z[U],se=ee&&ce&&ce[U];if(Y||q){var Se=O.props.activeIndex!==void 0?O.props.activeIndex:U;return[W.cloneElement(O,Be(Be(Be({},L.props),ne),{},{activeIndex:Se})),null,null]}if(!qt(be))return[K].concat($c(A.renderActivePoints({item:L,activePoint:be,basePoint:se,childIndex:U,isRange:ee})))}else{var Ae,le=(Ae=A.getItemByXY(A.state.activeCoordinate))!==null&&Ae!==void 0?Ae:{graphicalItem:K},Me=le.graphicalItem,Qe=Me.item,Ue=Qe===void 0?O:Qe,Ke=Me.childIndex,Ze=Be(Be(Be({},L.props),ne),{},{activeIndex:Ke});return[W.cloneElement(Ue,Ze),null,null]}return ee?[K,null,null]:[K,null]}),Tt(A,"renderCustomized",function(O,T,k){return W.cloneElement(O,Be(Be({key:"recharts-customized-".concat(k)},A.props),A.state))}),Tt(A,"renderMap",{CartesianGrid:{handler:$h,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:$h},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:$h},YAxis:{handler:$h},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((w=b.id)!==null&&w!==void 0?w:f0("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=D6(A.triggeredAfterMouseMove,(S=b.throttleDelay)!==null&&S!==void 0?S:1e3/60),A.state={},A}return Eie(y,m),Sie(y,[{key:"componentDidMount",value:function(){var w,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w: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 w=this.props,S=w.children,A=w.data,O=w.height,T=w.layout,k=Ei(S,da);if(k){var L=k.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,j=G2(this.state,A,L,R),E=this.state.tooltipTicks[L].coordinate,D=(this.state.offset.top+O)/2,U=T==="horizontal",H=U?{x:E,y:D}:{y:E,x:D},B=this.state.formattedGraphicalItems.find(function(te){var Z=te.item;return Z.type.name==="Scatter"});B&&(H=Be(Be({},H),B.props.points[L].tooltipPosition),j=B.props.points[L].tooltipPayload);var z={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:R,activePayload:j,activeCoordinate:H};this.setState(z),this.renderCursor(k),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var A,O;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(w){Ny([Ei(w.children,da)],[Ei(this.props.children,da)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ei(this.props.children,da);if(w&&typeof w.props.shared=="boolean"){var S=w.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var S=this.container,A=S.getBoundingClientRect(),O=NH(A),T={chartX:Math.round(w.pageX-O.left),chartY:Math.round(w.pageY-O.top)},k=A.width/S.offsetWidth||1,L=this.inRange(T.chartX,T.chartY,k);if(!L)return null;var R=this.state,j=R.xAxisMap,E=R.yAxisMap,D=this.getTooltipEventType(),U=mE(this.state,this.props.data,this.props.layout,L);if(D!=="axis"&&j&&E){var H=Xo(j).scale,B=Xo(E).scale,z=H&&H.invert?H.invert(T.chartX):null,te=B&&B.invert?B.invert(T.chartY):null;return Be(Be({},T),{},{xValue:z,yValue:te},U)}return U?Be(Be({},T),U):null}},{key:"inRange",value:function(w,S){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,T=w/A,k=S/A;if(O==="horizontal"||O==="vertical"){var L=this.state.offset,R=T>=L.left&&T<=L.left+L.width&&k>=L.top&&k<=L.top+L.height;return R?{x:T,y:k}:null}var j=this.state,E=j.angleAxisMap,D=j.radiusAxisMap;if(E&&D){var U=Xo(E);return uT({x:T,y:k},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,S=this.getTooltipEventType(),A=Ei(w,da),O={};A&&S==="axis"&&(A.props.trigger==="click"?O={onClick:this.handleClick}:O={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),O)}},{key:"addListener",value:function(){ny.on(iy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ny.removeListener(iy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,S,A){for(var O=this.state.formattedGraphicalItems,T=0,k=O.length;T<k;T++){var L=O[T];if(L.item===w||L.props.key===w.key||S===mo(L.item.type)&&A===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,S=this.state.offset,A=S.left,O=S.top,T=S.height,k=S.width;return W.createElement("defs",null,W.createElement("clipPath",{id:w},W.createElement("rect",{x:A,y:O,height:T,width:k})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(S,A){var O=hE(A,2),T=O[0],k=O[1];return Be(Be({},S),{},Tt({},T,k.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(S,A){var O=hE(A,2),T=O[0],k=O[1];return Be(Be({},S),{},Tt({},T,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(w){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(w){var S=this.state,A=S.formattedGraphicalItems,O=S.activeItem;if(A&&A.length)for(var T=0,k=A.length;T<k;T++){var L=A[T],R=L.props,j=L.item,E=j.type.defaultProps!==void 0?Be(Be({},j.type.defaultProps),j.props):j.props,D=mo(j.type);if(D==="Bar"){var U=(R.data||[]).find(function(te){return ZZ(w,te)});if(U)return{graphicalItem:L,payload:U}}else if(D==="RadialBar"){var H=(R.data||[]).find(function(te){return uT(w,te)});if(H)return{graphicalItem:L,payload:H}}else if(Up(L,O)||zp(L,O)||Xf(L,O)){var B=kee({graphicalItem:L,activeTooltipItem:O,itemData:E.data}),z=E.activeIndex===void 0?B:E.activeIndex;return{graphicalItem:Be(Be({},L),{},{childIndex:z}),payload:Xf(L,O)?E.data[B]:L.props.data[B]}}}return null}},{key:"render",value:function(){var w=this;if(!w4(this))return null;var S=this.props,A=S.children,O=S.className,T=S.width,k=S.height,L=S.style,R=S.compact,j=S.title,E=S.desc,D=dE(S,vie),U=bt(D,!1);if(R)return W.createElement(VN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement(Py,ec({},U,{width:T,height:k,title:j,desc:E}),this.renderClipPath(),S4(A,this.renderMap)));if(this.props.accessibilityLayer){var H,B;U.tabIndex=(H=this.props.tabIndex)!==null&&H!==void 0?H:0,U.role=(B=this.props.role)!==null&&B!==void 0?B:"application",U.onKeyDown=function(te){w.accessibilityManager.keyboardEvent(te)},U.onFocus=function(){w.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return W.createElement(VN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement("div",ec({className:Dt("recharts-wrapper",O),style:Be({position:"relative",cursor:"default",width:T,height:k},L)},z,{ref:function(Z){w.container=Z}}),W.createElement(Py,ec({},U,{width:T,height:k,title:j,desc:E,style:Lie}),this.renderClipPath(),S4(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(W.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(m,y){var b=m.dataKey,w=m.data,S=m.children,A=m.width,O=m.height,T=m.layout,k=m.stackOffset,L=m.margin,R=y.dataStartIndex,j=y.dataEndIndex;if(y.updateId===void 0){var E=vE(m);return Be(Be(Be({},E),{},{updateId:0},h(Be(Be({props:m},E),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:w,prevWidth:A,prevHeight:O,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:S})}if(b!==y.prevDataKey||w!==y.prevData||A!==y.prevWidth||O!==y.prevHeight||T!==y.prevLayout||k!==y.prevStackOffset||!sc(L,y.prevMargin)){var D=vE(m),U={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},H=Be(Be({},mE(y,w,T)),{},{updateId:y.updateId+1}),B=Be(Be(Be({},D),U),H);return Be(Be(Be({},B),h(Be({props:m},B),y)),{},{prevDataKey:b,prevData:w,prevWidth:A,prevHeight:O,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:S})}if(!Ny(S,y.prevChildren)){var z,te,Z,ee,ce=Ei(S,Ec),P=ce&&(z=(te=ce.props)===null||te===void 0?void 0:te.startIndex)!==null&&z!==void 0?z:R,I=ce&&(Z=(ee=ce.props)===null||ee===void 0?void 0:ee.endIndex)!==null&&Z!==void 0?Z:j,M=P!==R||I!==j,q=!qt(w),Y=q&&!M?y.updateId:y.updateId+1;return Be(Be({updateId:Y},h(Be(Be({props:m},y),{},{updateId:Y,dataStartIndex:P,dataEndIndex:I}),y)),{},{prevChildren:S,dataStartIndex:P,dataEndIndex:I})}return null}),Tt(g,"renderActiveDot",function(m,y,b){var w;return W.isValidElement(m)?w=W.cloneElement(m,y):jt(m)?w=m(y):w=W.createElement(y0,y),W.createElement(lr,{className:"recharts-active-dot",key:b},w)});var p=W.forwardRef(function(y,b){return W.createElement(g,ec({},y,{ref:b}))});return p.displayName=g.displayName,p},zie=S5({chartName:"LineChart",GraphicalChild:S0,axisComponents:[{axisType:"xAxis",AxisComp:Mc},{axisType:"yAxis",AxisComp:Rc}],formatAxisMap:NC}),Wie=S5({chartName:"BarChart",GraphicalChild:fl,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Mc},{axisType:"yAxis",AxisComp:Rc}],formatAxisMap:NC}),Hie=S5({chartName:"RadarChart",GraphicalChild:_0,axisComponents:[{axisType:"angleAxis",AxisComp:w0},{axisType:"radiusAxis",AxisComp:b0}],formatAxisMap:aX,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Gie({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:m,onEdit:y,onResetPassword:b,onPrint:w,onExportPdf:S,breadcrumbItems:A,children:O,editingSection:T=null,editForm:k={},onEditSection:L,onSaveSection:R,onCancelEdit:j,onFieldChange:E,isSaving:D=!1,onAwardAdd:U,onAwardEdit:H,onAwardDelete:B,onActivityAdd:z,onActivityEdit:te,onActivityDelete:Z,onMeetingAdd:ee,onMeetingEdit:ce,onMeetingDelete:P,onDisciplinaryAdd:I,onDisciplinaryEdit:M,onDisciplinaryDelete:q,hideSections:Y=[]}){var Ze,Je,dt,vt,wt,Pt,It,Ut,_t,Ft,at,Dr,zt,An,Kt,fr,Vn,Ht;const[fe,ne]=W.useState({}),K=e||{name:"",roll:"",class:"",email:"",phone:"",type:"",personal:{},parent:{},medical:{},mentor:{}},he=t,be=Array.isArray(n==null?void 0:n.activities)?n.activities:[],se=Array.isArray(n==null?void 0:n.awards)?n.awards:[],Le=Array.isArray(i==null?void 0:i.structure)?i.structure:[],Se=Array.isArray(i==null?void 0:i.payments)?i.payments:[],Ae=Pe=>ne(ct=>({...ct,[Pe]:!ct[Pe]})),le=he.length>0?(()=>{const Pe={};return he.forEach(ct=>ct.subjects.forEach(Wt=>{Pe[Wt.name]||(Pe[Wt.name]={total:0,count:0}),Pe[Wt.name].total+=Wt.marks/(Wt.total||100)*100,Pe[Wt.name].count+=1})),Object.entries(Pe).map(([ct,Wt])=>({subject:ct.slice(0,10),avg:Math.round(Wt.total/Wt.count)}))})():[],Me=le.map(Pe=>({subject:Pe.subject,score:Pe.avg})),Qe=he.map(Pe=>{const ct={exam:Pe.name.split(" ")[0]};return Pe.subjects.forEach(Wt=>{ct[Wt.name.slice(0,10)]=Math.round(Wt.marks/(Wt.total||100)*100)}),ct}),Ue=[...new Set(he.flatMap(Pe=>Pe.subjects.map(ct=>ct.name.slice(0,10))))],Ke=o.filter(Pe=>(!c||Pe.class.split("-")[0]===c)&&(!p||Pe.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:Pe=>{u(Pe),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($e.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:Pe=>m(Pe.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:[Ke.length," Students"]}),Ke.map(Pe=>x.jsx("div",{onClick:()=>l(Pe.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===Pe.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:Pe.avatar}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Pe.name}),x.jsxs("p",{className:"text-xs text-slate-500",children:[Pe.roll," • ",Pe.class]})]})]})},Pe.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(Zt,{variant:"secondary",size:"sm",icon:$e.Printer,onClick:w,children:"Print Profile"}),x.jsx(Zt,{variant:"secondary",size:"sm",icon:$e.FileText,onClick:S,children:"Export PDF"}),x.jsx(Zt,{variant:"primary",size:"sm",icon:$e.Pencil,onClick:y,children:"Edit Details"}),x.jsx(Zt,{variant:"secondary",size:"sm",icon:$e.Key,onClick:b,children:"Reset Password"})]}),x.jsx(xb,{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:K.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($e.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),T==="academic"&&E?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:Pe=>E("full_name",Pe.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:Pe=>E("email",Pe.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:Pe=>E("class_name",Pe.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:Pe=>E("phone",Pe.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:K.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:K.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:K.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:K.phone})]})]})]})]}),T==="academic"&&x.jsxs("div",{className:"flex justify-end gap-2 mt-2 pt-2 border-t border-slate-100",children:[x.jsx(Zt,{variant:"ghost",size:"sm",onClick:j,children:"Cancel"}),x.jsx(Zt,{variant:"primary",size:"sm",onClick:R,disabled:D,children:D?"Saving...":"Save"})]}),x.jsx("div",{className:`grid gap-3 ${Y.includes("fees")?"grid-cols-3":"grid-cols-4"}`,children:[{label:"Attendance",value:(Ze=K.stats)!=null&&Ze.attendance_percentage?`${K.stats.attendance_percentage}%`:"-",color:"text-amber-500"},{label:"Avg Grade",value:(Je=K.stats)!=null&&Je.average_grade?`${K.stats.average_grade}%`:"-",color:"text-green-500"},{label:"Assignments",value:((dt=K.stats)==null?void 0:dt.assignments_submitted)??"-",color:"text-indigo-500"},...Y.includes("fees")?[]:[{label:"Fee Due",value:Le.length>0?`₹${Math.max(0,Le.reduce((Pe,ct)=>Pe+(ct.amount||0),0)-Se.reduce((Pe,ct)=>Pe+(ct.amount||0),0)).toLocaleString()}`:"-",color:"text-green-500"}]].map(Pe=>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:Pe.label}),x.jsx("p",{className:`text-lg font-bold ${Pe.color}`,children:Pe.value})]},Pe.label))})]}),[{title:"Personal Information",key:"personal",fields:[["Phone",K.phone||(e==null?void 0:e.phone),"phone"],["Email",K.email||(e==null?void 0:e.email),"email"],["Date of Birth",(vt=K.personal)==null?void 0:vt.dob,"date_of_birth"],["Admission Date",(wt=K.personal)==null?void 0:wt.admissionDate,"admission_date"],["Student Type",K.type||((Pt=e==null?void 0:e.metadata_)==null?void 0:Pt.student_type),"student_type"],["Address",(It=K.personal)==null?void 0:It.address,"address"]]},{title:"Parent/Guardian Information",key:"parent",fields:[["Parent Name",(Ut=K.parent)==null?void 0:Ut.name,"parent_name"],["Phone",(_t=K.parent)==null?void 0:_t.phone,"parent_phone"],["Email",(Ft=K.parent)==null?void 0:Ft.email,"parent_email"],["Relationship",(at=K.parent)==null?void 0:at.relationship,"parent_relationship"],["Emergency Contact",(Dr=K.parent)==null?void 0:Dr.emergency,"parent_emergency"]]},{title:"Medical & Additional Information",key:"medical",fields:[["Blood Group",(zt=K.medical)==null?void 0:zt.bloodGroup,"blood_group"],["Gender",(An=K.medical)==null?void 0:An.gender,"gender"],["Religion",(Kt=K.medical)==null?void 0:Kt.religion,"religion"],["Medical Conditions",(fr=K.medical)==null?void 0:fr.conditions,"medical_conditions"]]}].map(Pe=>{const ct=T===Pe.key;return x.jsxs("div",{className:`bg-white border rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg ${ct?"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:Pe.title}),L&&!ct&&!T&&x.jsxs("button",{onClick:()=>L(Pe.key),className:"text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[x.jsx($e.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),x.jsx("div",{className:"grid grid-cols-3 gap-3",children:Pe.fields.map(([Wt,Or,Nt])=>x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:Wt}),ct&&E?Nt==="gender"?x.jsx(oo,{value:k[Nt]||"",onChange:ht=>E(Nt,ht),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."}):Nt==="parent_relationship"?x.jsx(oo,{value:k[Nt]||"",onChange:ht=>E(Nt,ht),options:[{value:"Father",label:"Father"},{value:"Mother",label:"Mother"},{value:"Guardian",label:"Guardian"},{value:"Parent/Guardian",label:"Parent/Guardian"}],placeholder:"Select..."}):Nt==="student_type"?x.jsx(oo,{value:k[Nt]||"",onChange:ht=>E(Nt,ht),options:[{value:"",label:"Select"},{value:"Day Scholar",label:"Day Scholar"},{value:"Hosteller",label:"Hosteller"}],placeholder:"Select..."}):Nt==="date_of_birth"||Nt==="admission_date"?x.jsx("input",{type:"date",value:k[Nt]||"",onChange:ht=>E(Nt,ht.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[Nt]||"",onChange:ht=>E(Nt,ht.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:Or||"-"})]},Wt))}),ct&&x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(Zt,{variant:"ghost",size:"sm",onClick:j,children:"Cancel"}),x.jsx(Zt,{variant:"primary",size:"sm",onClick:R,disabled:D,children:D?"Saving...":"Save"})]})]},Pe.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"}),(Vn=K.class_teacher)!=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-emerald-500 to-emerald-700 text-white flex items-center justify-center text-xs font-bold",children:(K.class_teacher.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:K.class_teacher.name}),K.class_teacher.email&&x.jsx("p",{className:"text-[10px] text-slate-500",children:K.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"}),(Ht=K.mentor)!=null&&Ht.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:(K.mentor.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:K.mentor.name}),K.mentor.email&&x.jsx("p",{className:"text-[10px] text-slate-500",children:K.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 Pe={};he.forEach((ct,Wt)=>{Pe[Wt]=!0}),ne(Pe)},className:"text-xs text-indigo-600 transition-all duration-150 active:scale-[0.97]",children:"Expand All"})]}),he.map((Pe,ct)=>{const Wt=Pe.subjects.reduce((ht,Gt)=>ht+Gt.marks,0),Or=Pe.subjects.reduce((ht,Gt)=>ht+Gt.total,0),Nt=(Wt/Or*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(ct),children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Pe.name}),x.jsxs("p",{className:"text-xs text-slate-500",children:[Pe.subjects.length," subjects • ",Wt,"/",Or," • ",Nt,"%"]})]}),fe[ct]?x.jsx($e.ChevronUp,{className:"w-4 h-4 text-slate-400"}):x.jsx($e.ChevronDown,{className:"w-4 h-4 text-slate-400"})]}),fe[ct]&&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:Pe.subjects.map(ht=>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:ht.name}),x.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[ht.marks,"/",ht.total]}),x.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[ht.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 ${ht.marks>=80?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"}`,children:ht.grade})})]},ht.name))})]})})]},ct)})]}),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"}),le.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(Wie,{data:le,children:[x.jsx(F2,{strokeDasharray:"3 3"}),x.jsx(Mc,{dataKey:"subject",fontSize:11}),x.jsx(Rc,{domain:[0,100]}),x.jsx(da,{}),x.jsx(fl,{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(Hie,{data:Me,children:[x.jsx(uC,{}),x.jsx(w0,{dataKey:"subject",fontSize:11}),x.jsx(b0,{domain:[0,100]}),x.jsx(_0,{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(zie,{data:Qe,children:[x.jsx(F2,{strokeDasharray:"3 3"}),x.jsx(Mc,{dataKey:"exam",fontSize:11}),x.jsx(Rc,{domain:[0,100]}),x.jsx(da,{}),x.jsx(Hs,{}),Ue.map((Pe,ct)=>x.jsx(S0,{type:"monotone",dataKey:Pe,stroke:["#6366f1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"][ct%7],strokeWidth:2},Pe))]})})]})]}):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(Zt,{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((Pe,ct)=>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:Pe.type||"Meeting"}),x.jsxs("p",{className:"text-xs text-slate-500",children:[Pe.date,Pe.agenda?` • ${Pe.agenda}`:""]}),Pe.notes&&x.jsx("p",{className:"text-xs text-slate-500",children:Pe.notes})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Ws,{status:Pe.status||"Scheduled"}),(ce||P)&&x.jsxs("div",{className:"flex gap-1",children:[ce&&x.jsx("button",{onClick:()=>ce(Pe),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"}),P&&x.jsx("button",{onClick:()=>P(Pe),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"})]})]})]},Pe.id||ct))]}),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(Zt,{variant:"primary",size:"sm",onClick:z,children:"+ Add Activity"})]}),be.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No activities yet"}),be.map((Pe,ct)=>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:Pe.name}),x.jsx(Ws,{status:Pe.status||"Active"})]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[Pe.activity_type,Pe.role?` • ${Pe.role}`:"",Pe.since?` • Since ${Pe.since}`:""]}),Pe.achievement&&x.jsxs("p",{className:"text-xs text-slate-500",children:["Achievement: ",Pe.achievement]})]}),(te||Z)&&x.jsxs("div",{className:"flex gap-1",children:[te&&x.jsx("button",{onClick:()=>te(Pe),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(Pe),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"})]})]})},Pe.id||ct))]}),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(Zt,{variant:"primary",size:"sm",onClick:U,children:"+ Add Award"})]}),se.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards yet"}),se.map((Pe,ct)=>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($e.Trophy,{className:"w-4 h-4 text-amber-500"}),x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Pe.name||Pe.title})]}),(H||B)&&x.jsxs("div",{className:"flex gap-1",children:[H&&x.jsx("button",{onClick:()=>H(Pe),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"}),B&&x.jsx("button",{onClick:()=>B(Pe),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:[Pe.category,Pe.category&&Pe.year?" • ":"",Pe.year,Pe.level?` • ${Pe.level}`:"",Pe.awarded_by?` • By: ${Pe.awarded_by}`:""]}),Pe.description&&x.jsx("p",{className:"text-xs text-slate-500",children:Pe.description})]},Pe.id||ct))]}),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($e.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($e.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(Pe=>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 ${Pe.severity==="High"?"bg-red-100 text-red-700":Pe.severity==="Medium"?"bg-yellow-100 text-yellow-700":"bg-blue-100 text-blue-700"}`,children:Pe.severity}),x.jsx("span",{className:"text-xs text-slate-500",children:Pe.category}),x.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${Pe.status==="Open"?"bg-orange-100 text-orange-700":Pe.status==="Resolved"?"bg-green-100 text-green-700":"bg-slate-100 text-slate-700"}`,children:Pe.status})]}),x.jsx("p",{className:"text-sm text-slate-800",children:Pe.description}),x.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:[Pe.incident_date,Pe.action_taken?` • ${Pe.action_taken}`:""]})]}),x.jsxs("div",{className:"flex gap-1 ml-2",children:[M&&x.jsx("button",{onClick:()=>M(Pe),className:"p-1 text-slate-400 hover:text-primary-600",children:x.jsx($e.Pencil,{className:"w-3.5 h-3.5"})}),q&&x.jsx("button",{onClick:()=>q(Pe),className:"p-1 text-slate-400 hover:text-red-500",children:x.jsx($e.Trash2,{className:"w-3.5 h-3.5"})})]})]})},Pe.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||"—"})]})]})]})]}),!Y.includes("fees")&&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:K.type&&x.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-indigo-100 text-indigo-600",children:K.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:[Le.map(Pe=>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:Pe.component}),x.jsxs("td",{className:"py-2 px-3 text-slate-800",children:["₹",(Pe.amount||0).toLocaleString()]}),x.jsx("td",{className:"py-2 px-3 text-slate-800",children:Pe.concession>0?x.jsxs("span",{className:"text-green-600",children:["-₹",Pe.concession.toLocaleString()]}):"—"}),x.jsx("td",{className:"py-2 px-3",children:Pe.status||Pe.frequency})]},Pe.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:["₹",Le.reduce((Pe,ct)=>Pe+(ct.amount||0),0).toLocaleString()]}),x.jsx("td",{className:"py-2 px-3 font-bold text-green-600",children:Le.reduce((Pe,ct)=>Pe+(ct.concession||0),0)>0?`-₹${Le.reduce((Pe,ct)=>Pe+(ct.concession||0),0).toLocaleString()}`:""}),x.jsx("td",{})]})]})]})})]}),!Y.includes("fees")&&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 Pe=Le.reduce((Or,Nt)=>Or+(Nt.amount||0),0),ct=Se.reduce((Or,Nt)=>Or+(Nt.amount||0),0),Wt=Math.max(0,Pe-ct);return[{label:"Total Fees",value:`₹${Pe.toLocaleString()}`,color:"text-slate-800"},{label:"Paid",value:`₹${ct.toLocaleString()}`,color:"text-green-500"},{label:"Due",value:`₹${Wt.toLocaleString()}`,color:"text-red-500"}].map(Or=>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:Or.label}),x.jsx("p",{className:`text-lg font-bold ${Or.color}`,children:Or.value})]},Or.label))})()}),Se.length>0?Se.map((Pe,ct)=>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:["₹",(Pe.amount||0).toLocaleString()," - ",Pe.method||Pe.payment_method||"-"]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[Pe.date||Pe.payment_date||"-",Pe.ref||Pe.reference?` • Ref: ${Pe.ref||Pe.reference}`:""]})]}),x.jsx(Ws,{status:Pe.status||"Paid"})]},ct)):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No payment history"})]})]}),O]})}function Vie({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:m=!1,onAwardAdd:y,onAwardEdit:b,onAwardDelete:w}){var R,j,E,D,U,H;if(l||!e)return x.jsx(IO,{});const S=e,A=((R=S.user)==null?void 0:R.full_name)||S.full_name||"",O=((j=S.user)==null?void 0:j.email)||S.email||"",T=((E=S.user)==null?void 0:E.phone)||S.phone||"",k=A.split(" ").map(B=>B[0]).join("").slice(0,2).toUpperCase(),L=[{label:"Total Classes",value:t.length||S.classes_count||0,icon:$e.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:$e.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:$e.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(xb,{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($e.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(Zt,{variant:"secondary",size:"sm",icon:$e.Printer,onClick:i,children:"Print"}),x.jsx(Zt,{variant:"secondary",size:"sm",icon:$e.FileText,onClick:a,children:"Export PDF"}),x.jsx(Zt,{variant:"primary",size:"sm",icon:$e.Pencil,onClick:r,children:"Edit Profile"}),x.jsx(Zt,{variant:"secondary",size:"sm",icon:$e.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($e.Mail,{className:"w-3 h-3 text-slate-400"}),O]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx($e.Phone,{className:"w-3 h-3 text-slate-400"}),T||"N/A"]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx($e.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(B=>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 ${B.glow} cursor-default group`,children:[x.jsx("div",{className:`${B.bg} p-2.5 md:p-3 rounded-xl transition-transform duration-200 group-hover:scale-110`,children:x.jsx(B.icon,{className:`w-5 h-5 ${B.color}`})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 font-medium",children:B.label}),x.jsx("p",{className:"text-xl md:text-2xl font-bold text-slate-900 mt-0.5",children:B.value})]})]},B.label))}),x.jsx(Hl,{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($e.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:B=>p("qualification",B.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:B=>p("primary_subject",B.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:B=>p("max_workload_hours",B.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:B=>p("department",B.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:B=>p("designation",B.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:B=>p("employment_type",B),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(Zt,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"}),x.jsx(Zt,{variant:"primary",size:"sm",onClick:h,disabled:m,children:m?"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(B=>B.name||B).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(Hl,{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($e.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:B=>p("full_name",B.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:B=>p("email",B.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:B=>p("phone",B.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:B=>p("gender",B),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:B=>p("joining_date",B.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:B=>p("address",B.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(Zt,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"}),x.jsx(Zt,{variant:"primary",size:"sm",onClick:h,disabled:m,children:m?"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:((H=S.user)==null?void 0:H.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(Hl,{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(Hl,{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((B,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:B.display_name||B.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:B.used||0}),x.jsxs("span",{className:"text-sm text-slate-400",children:["/ ",B.total_allocated||0," days"]})]}),x.jsxs("p",{className:"text-[10px] text-slate-400 mt-0.5",children:["Remaining: ",B.remaining||0," | Pending: ",B.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:`${B.total_allocated>0?(B.used||0)/B.total_allocated*100:0}%`}})})]},B.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(Hl,{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((B,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:B.class_name}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:B.section}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:B.subject||"-"}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:B.periods_per_week||"-"}),x.jsx("td",{className:"px-4 py-2.5",children:B.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(Hl,{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((B,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($e.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:B.title}),x.jsx("p",{className:"text-xs text-slate-500",children:B.awarded_by||B.org}),x.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:B.description||B.desc})]}),(b||w)&&x.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[b&&x.jsx("button",{onClick:()=>b(B),className:"text-xs text-indigo-600 hover:text-indigo-700 px-1",children:"Edit"}),w&&x.jsx("button",{onClick:()=>w(B),className:"text-xs text-red-600 hover:text-red-700 px-1",children:"Delete"})]})]},B.id||z)):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards recorded"})}),c]})}function Hl({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 Yie({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]=W.useState(!1),p=async()=>{if(o){g(!0);const y=await o(i);if(g(!1),!y)return}a(i+1)},m=()=>{a(i-1)};return x.jsxs(l0,{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:gt("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:gt("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:gt("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(Zt,{variant:"ghost",onClick:t,children:"Cancel"}),x.jsxs("div",{className:"flex items-center gap-2",children:[i>0&&x.jsx(Zt,{variant:"secondary",onClick:m,children:"← Previous"}),i<n.length-1?x.jsx(Zt,{variant:"primary",onClick:p,loading:h,children:"Next →"}):x.jsx(Zt,{variant:"primary",onClick:s,loading:l,children:c})]})]})]})}function Kie({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})]})]})}const xE=["Present","Absent","Late"],yE={Present:"bg-green-100 text-green-700 border-green-300",Absent:"bg-red-100 text-red-700 border-red-300",Late:"bg-amber-100 text-amber-700 border-amber-300"},Xie={Present:$e.CheckCircle2,Absent:$e.XCircle,Late:$e.Clock};function bE(e,t){const r=new Date(e+"T00:00:00");return r.setDate(r.getDate()+t),r.toISOString().split("T")[0]}function wE(e){return e?new Date(e+"T00:00:00").toLocaleDateString("en-IN",{weekday:"short",day:"numeric",month:"short"}):""}function Jie({studentList:e=[],isSubmitted:t=!1,isLoading:r=!1,onSubmit:n,isSubmitting:i=!1,date:a,onDateChange:o,showDateNav:s=!1,showHistory:l=!1,history:c=[],onEditHistory:u,onDeleteHistory:f,showDownloadReport:d=!1,onDownloadReport:h,className:g="",headerExtra:p,showKeyboardHints:m=!1,holidayWarning:y=null,children:b}){const[w,S]=W.useState([]),[A,O]=W.useState([]),[T,k]=W.useState(""),[L,R]=W.useState(!1),[j,E]=W.useState(null),[D,U]=W.useState(0);W.useEffect(()=>{if(e.length>0){const ne=new Set,K=[];for(const he of e)ne.has(he.student_id)||(ne.add(he.student_id),K.push({student_id:he.student_id,status:he.status==="Not Marked"?"Present":he.status}));S(K),O(K.map(he=>({...he})))}else S([]),O([]);U(0)},[e]);const H=(ne,K)=>{S(he=>he.map(be=>be.student_id===ne?{...be,status:K}:be))},B=ne=>S(K=>K.map(he=>({...he,status:ne}))),z=()=>{w.length&&R(!0)},te=()=>{R(!1),n&&n(w.filter(ne=>ne.student_id&&ne.status))},Z=w.length,ee=w.filter(ne=>ne.status==="Present").length,ce=w.filter(ne=>ne.status==="Absent").length,P=w.filter(ne=>ne.status==="Late").length,I=Z?Math.round((ee+P)/Z*100):0,M=W.useMemo(()=>{if(!t||!A.length)return new Set;const ne=new Set;return w.forEach(K=>{const he=A.find(be=>be.student_id===K.student_id);he&&he.status!==K.status&&ne.add(K.student_id)}),ne},[w,A,t]),q=W.useMemo(()=>{const ne=e.filter(be=>{const se=w.find(Le=>Le.student_id===be.student_id);return(se==null?void 0:se.status)==="Absent"}),K=M.size;let he=`${t?"Update":"Submit"} attendance for ${Z} student(s)?
445
+
446
+ `;if(he+=`Present: ${ee} | Absent: ${ce} | Late: ${P}`,ne.length>0){const be=ne.map(se=>se.full_name).slice(0,8);he+=`
447
+
448
+ Absent students: ${be.join(", ")}`,ne.length>8&&(he+=` and ${ne.length-8} more`)}return t&&K>0&&(he+=`
449
+
450
+ ${K} record(s) modified from original.`),he},[w,e,t,Z,ee,ce,P,M]),Y=ne=>ne.consecutive_absent||ne.absent_streak||0;W.useEffect(()=>{if(!m)return;const ne=K=>{var Le,Se;if(w.length===0)return;const he=(Se=(Le=document.activeElement)==null?void 0:Le.tagName)==null?void 0:Se.toLowerCase();if(he==="input"||he==="textarea"||he==="select")return;const be={1:"Present",2:"Absent",3:"Late"},se={Digit1:"Present",Digit2:"Absent",Digit3:"Late"};if(K.shiftKey&&se[K.code]){K.preventDefault(),B(se[K.code]);return}if(!K.shiftKey&&!K.ctrlKey&&!K.metaKey&&!K.altKey&&be[K.key]){K.preventDefault();const Ae=e.filter(Qe=>{var Ue;return!T||((Ue=Qe.full_name)==null?void 0:Ue.toLowerCase().includes(T.toLowerCase()))});if(Ae.length===0)return;const le=Math.min(D,Ae.length-1),Me=Ae[le];H(Me.student_id,be[K.key]),U(Qe=>Math.min(Qe+1,Ae.length-1))}};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[m,w,D,e,T]);const fe=e.filter(ne=>{var K;return!T||((K=ne.full_name)==null?void 0:K.toLowerCase().includes(T.toLowerCase()))});return x.jsxs("div",{className:"space-y-4",children:[y&&x.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-3 flex items-center gap-3",children:[x.jsx("span",{className:"text-lg",children:x.jsx($e.AlertTriangle,{size:18,className:"text-amber-600"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-medium text-amber-800",children:y}),x.jsx("p",{className:"text-xs text-amber-600 mt-0.5",children:"Are you sure you want to mark attendance for this date? School is typically closed."})]})]}),s&&o&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("button",{onClick:()=>o(bE(a,-1)),className:"p-2 rounded-lg border border-slate-300 text-slate-500 hover:bg-slate-50 hover:text-slate-700 transition-colors",title:"Previous day",children:x.jsx($e.ChevronLeft,{size:16})}),x.jsx("span",{className:"text-sm font-medium text-slate-700 px-2",children:wE(a)}),x.jsx("button",{onClick:()=>o(bE(a,1)),disabled:a>=new Date().toISOString().split("T")[0],className:"p-2 rounded-lg border border-slate-300 text-slate-500 hover:bg-slate-50 hover:text-slate-700 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",title:"Next day",children:x.jsx($e.ChevronRight,{size:16})})]}),Z>0&&x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[{label:"Total Students",value:Z,icon:$e.Users,color:"text-blue-600",bg:"bg-blue-50"},{label:"Present",value:ee,icon:$e.CheckCircle2,color:"text-emerald-600",bg:"bg-emerald-50"},{label:"Absent",value:ce,icon:$e.XCircle,color:"text-red-600",bg:"bg-red-50"},{label:"Late",value:P,icon:$e.Clock,color:"text-amber-600",bg:"bg-amber-50"},{label:"Attendance Rate",value:`${I}%`,icon:$e.Percent,color:"text-purple-600",bg:"bg-purple-50"}].map(ne=>x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 text-center",children:[x.jsx("div",{className:`${ne.bg} w-10 h-10 rounded-xl mx-auto mb-2 flex items-center justify-center`,children:x.jsx(ne.icon,{size:18,className:ne.color})}),x.jsx("p",{className:`text-xl font-bold ${ne.color}`,children:x.jsx(CO,{value:ne.value,id:`att-${g}-${a}-${ne.label}`})}),x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:ne.label})]},ne.label))}),!r&&e.length>0&&x.jsxs("div",{className:`flex items-center gap-3 px-4 py-3 rounded-xl border ${t?"bg-emerald-50 border-emerald-200":"bg-amber-50 border-amber-200"}`,children:[t?x.jsx($e.CheckCircle2,{size:18,className:"text-emerald-600 flex-shrink-0"}):x.jsx($e.Clock,{size:18,className:"text-amber-600 flex-shrink-0"}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:`text-sm font-medium ${t?"text-emerald-800":"text-amber-800"}`,children:t?"Attendance submitted for this date":"Attendance not yet submitted"}),x.jsx("p",{className:`text-xs ${t?"text-emerald-600":"text-amber-600"}`,children:t?"You can still edit and update the records below.":"Mark attendance and click submit when done."})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[t&&M.size>0&&x.jsxs("span",{className:"text-[10px] font-medium px-2 py-0.5 rounded-full bg-blue-100 text-blue-700",children:[M.size," changed"]}),x.jsx(Ws,{variant:t?"success":"warning",children:t?"Submitted":"Pending"})]})]}),p,r&&x.jsx("div",{className:"space-y-3",children:[1,2,3].map(ne=>x.jsx("div",{className:"h-14 bg-slate-100 rounded-lg animate-pulse"},ne))}),!r&&e.length===0&&x.jsx("p",{className:"text-sm text-slate-500 text-center py-8",children:"No students found for this class-section."}),e.length>0&&!r&&x.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 shadow-sm",children:[x.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between flex-wrap gap-3",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs("span",{className:"text-sm font-medium text-slate-700",children:[e.length," students"]}),t&&x.jsx(Ws,{variant:"success",children:"Submitted"})]}),x.jsxs("div",{className:"flex gap-2 items-center",children:[x.jsxs("div",{className:"relative",children:[x.jsx($e.Search,{className:"absolute left-2.5 top-2 h-3.5 w-3.5 text-slate-400"}),x.jsx("input",{type:"text",value:T,onChange:ne=>{k(ne.target.value),U(0)},placeholder:"Search student...",className:"pl-8 pr-3 py-1.5 border border-slate-300 rounded-lg text-sm w-48 focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),xE.map(ne=>x.jsxs("button",{onClick:()=>B(ne),className:`text-xs px-2 py-1 rounded border ${yE[ne]} hover:opacity-80`,children:["All ",ne]},ne))]})]}),m&&x.jsx("div",{className:"px-4 py-1.5 bg-slate-50 border-b border-slate-100",children:x.jsx("p",{className:"text-[11px] text-slate-400",children:"Keyboard: 1=Present, 2=Absent, 3=Late | Shift+1/2/3=Mark All"})}),x.jsx("div",{className:"divide-y divide-slate-100 max-h-[60vh] overflow-y-auto",children:fe.map((ne,K)=>{var Se;const he=((Se=w.find(Ae=>Ae.student_id===ne.student_id))==null?void 0:Se.status)||"Present",be=M.has(ne.student_id),se=Y(ne),Le=m&&K===D;return x.jsxs("div",{className:`px-4 py-3 flex items-center justify-between transition-colors ${be?"bg-blue-50/60 border-l-2 border-l-blue-400":Le?"bg-primary-50/50 ring-1 ring-inset ring-primary-200":"hover:bg-slate-50"}`,children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx("span",{className:`text-xs w-6 ${Le?"text-primary-600 font-semibold":"text-slate-400"}`,children:K+1}),x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("p",{className:"text-sm font-medium text-slate-800",children:ne.full_name}),be&&x.jsx("span",{className:"text-[9px] font-medium px-1.5 py-0.5 rounded-full bg-blue-100 text-blue-700",children:"Modified"}),se>=3&&x.jsxs("span",{className:"flex items-center gap-0.5 text-[9px] font-medium px-1.5 py-0.5 rounded-full bg-red-100 text-red-700",title:`Absent for ${se} consecutive days`,children:[x.jsx($e.AlertTriangle,{size:9}),se," days absent"]})]}),ne.roll_number&&x.jsx("p",{className:"text-xs text-slate-500",children:ne.roll_number})]})]}),x.jsx("div",{className:"flex gap-1",children:xE.map(Ae=>{const le=Xie[Ae],Me=he===Ae;return x.jsxs("button",{onClick:()=>H(ne.student_id,Ae),className:`flex items-center gap-1 px-2.5 py-1.5 rounded-md text-xs font-medium border transition-all ${Me?yE[Ae]+" ring-1 ring-offset-1":"bg-white text-slate-500 border-slate-200 hover:bg-slate-50"}`,children:[x.jsx(le,{className:"h-3.5 w-3.5"}),Ae]},Ae)})})]},ne.student_id)})}),x.jsxs("div",{className:"p-4 border-t border-slate-100 flex justify-between",children:[d&&h?x.jsx(Zt,{variant:"secondary",icon:$e.FileDown,onClick:h,children:"Download Report"}):x.jsx("div",{}),x.jsx(Zt,{onClick:z,loading:i,disabled:w.length===0,children:t?"Update Attendance":"Submit Attendance"})]})]}),l&&c.length>0&&x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl overflow-hidden mt-6",children:[x.jsx("div",{className:"p-4 border-b border-slate-100",children:x.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"Attendance History"})}),x.jsx("div",{className:"divide-y divide-slate-100",children:c.map(ne=>x.jsxs("div",{className:"flex items-center justify-between p-4 hover:bg-slate-50",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-900",children:ne.class_section}),x.jsx(Ws,{variant:"success",children:"Submitted"})]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[wE(ne.date)," • ",x.jsxs("span",{className:"text-emerald-600",children:[ne.present," Present"]})," • ",x.jsxs("span",{className:"text-red-600",children:[ne.absent," Absent"]})," • ",x.jsxs("span",{className:"text-amber-600",children:[ne.late||0," Late"]})]})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[u&&x.jsx("button",{onClick:()=>u(ne),className:"p-2 rounded-lg text-slate-400 hover:text-blue-600 hover:bg-blue-50",children:x.jsx($e.Edit3,{size:16})}),f&&x.jsx("button",{onClick:()=>E(ne.id),className:"p-2 rounded-lg text-slate-400 hover:text-red-600 hover:bg-red-50",children:x.jsx($e.Trash2,{size:16})})]})]},ne.id))})]}),x.jsx(Sy,{open:L,onClose:()=>R(!1),onConfirm:te,title:t?"Update Attendance":"Submit Attendance",message:q,confirmText:t?"Update":"Submit"}),l&&f&&x.jsx(Sy,{open:!!j,onClose:()=>E(null),onConfirm:()=>{f(j),E(null)},message:"Delete this attendance record?"}),b]})}exports.AnimatedNumber=CO;exports.AttendanceMarkingView=Jie;exports.Badge=Ws;exports.Breadcrumb=xb;exports.Button=Zt;exports.Card=DB;exports.CardContent=BB;exports.CardHeader=RB;exports.CardTitle=$B;exports.ChangePasswordModal=L$;exports.Checkbox=l$;exports.ConfirmDialog=Sy;exports.DataTable=HB;exports.DateInput=p$;exports.DatePicker=DO;exports.DateRangePicker=b$;exports.EmptyState=N$;exports.ErrorBoundary=_$;exports.FilterBar=MO;exports.HoverCard=T$;exports.Input=kO;exports.LoginPage=k$;exports.Modal=l0;exports.MultiStepFormModal=Yie;exports.NetworkStatus=S$;exports.Pagination=C$;exports.PrintHeader=Kie;exports.ProfileHeader=F$;exports.ProfileInfoGrid=M$;exports.ProtectedRoute=ZB;exports.RecentActivities=QB;exports.ResetPasswordModal=I$;exports.SearchInput=LO;exports.SearchableSelect=oo;exports.SectionCard=E$;exports.Select=zB;exports.SessionTimeout=P$;exports.Sidebar=VB;exports.Skeleton=Zn;exports.SkeletonCard=XB;exports.SkeletonDashboard=IO;exports.SkeletonTable=JB;exports.SortableHeader=A$;exports.StudentDetailView=Gie;exports.Tabs=s$;exports.TeacherDetailView=Vie;exports.TimeInput=w$;exports.TimetableGrid=j$;exports.ToastProvider=a$;exports.Topbar=KB;exports._typeof=cr;exports.cn=gt;exports.commonjsGlobal=Kl;exports.exportMultiSheetExcel=_B;exports.exportToCsv=Nk;exports.exportToExcel=wB;exports.generateAttendanceReport=kL;exports.generateFeeReceipt=CL;exports.generatePdf=OL;exports.generateStudentReportCard=jL;exports.getDefaultExportFromCjs=ur;exports.useClassSectionFilter=IB;exports.useFormDraft=TB;exports.useKeyboardShortcuts=AB;exports.useLocalStorage=SB;exports.usePagination=LB;exports.useRecentlyViewed=EB;exports.useSortableData=jB;exports.useTabState=PB;exports.useToast=o$;