school-erp-ui-shared 1.0.0

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,518 @@
1
+ "use strict";const st=require("react"),za=require("react-router-dom");function sh(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=sh(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function s2(){for(var e,r,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=sh(e))&&(n&&(n+=" "),n+=r);return n}const Vf="-",o2=e=>{const r=f2(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const o=s.split(Vf);return o[0]===""&&o.length!==1&&o.shift(),oh(o,r)||l2(s)},getConflictingClassGroupIds:(s,o)=>{const f=t[s]||[];return o&&n[s]?[...f,...n[s]]:f}}},oh=(e,r)=>{var s;if(e.length===0)return r.classGroupId;const t=e[0],n=r.nextPart.get(t),i=n?oh(e.slice(1),n):void 0;if(i)return i;if(r.validators.length===0)return;const a=e.join(Vf);return(s=r.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},Gc=/^\[(.+)\]$/,l2=e=>{if(Gc.test(e)){const r=Gc.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},f2=e=>{const{theme:r,prefix:t}=e,n={nextPart:new Map,validators:[]};return u2(Object.entries(e.classGroups),t).forEach(([a,s])=>{Lf(s,n,a,r)}),n},Lf=(e,r,t,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?r:Yc(r,i);a.classGroupId=t;return}if(typeof i=="function"){if(c2(i)){Lf(i(n),r,t,n);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([a,s])=>{Lf(s,Yc(r,a),t,n)})})},Yc=(e,r)=>{let t=e;return r.split(Vf).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},c2=e=>e.isThemeGetter,u2=(e,r)=>r?e.map(([t,n])=>{const i=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[r+s,o])):a);return[t,i]}):e,h2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,n=new Map;const i=(a,s)=>{t.set(a,s),r++,r>e&&(r=0,n=t,t=new Map)};return{get(a){let s=t.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return i(a,s),s},set(a,s){t.has(a)?t.set(a,s):i(a,s)}}},lh="!",d2=e=>{const{separator:r,experimentalParseClassName:t}=e,n=r.length===1,i=r[0],a=r.length,s=o=>{const f=[];let c=0,u=0,p;for(let b=0;b<o.length;b++){let _=o[b];if(c===0){if(_===i&&(n||o.slice(b,b+a)===r)){f.push(o.slice(u,b)),u=b+a;continue}if(_==="/"){p=b;continue}}_==="["?c++:_==="]"&&c--}const g=f.length===0?o:o.substring(u),h=g.startsWith(lh),w=h?g.substring(1):g,v=p&&p>u?p-u:void 0;return{modifiers:f,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:v}};return t?o=>t({className:o,parseClassName:s}):s},p2=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(n=>{n[0]==="["?(r.push(...t.sort(),n),t=[]):t.push(n)}),r.push(...t.sort()),r},g2=e=>({cache:h2(e.cacheSize),parseClassName:d2(e),...o2(e)}),m2=/\s+/,v2=(e,r)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:i}=r,a=[],s=e.trim().split(m2);let o="";for(let f=s.length-1;f>=0;f-=1){const c=s[f],{modifiers:u,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}=t(c);let w=!!h,v=n(w?g.substring(0,h):g);if(!v){if(!w){o=c+(o.length>0?" "+o:o);continue}if(v=n(g),!v){o=c+(o.length>0?" "+o:o);continue}w=!1}const b=p2(u).join(":"),_=p?b+lh:b,S=_+v;if(a.includes(S))continue;a.push(S);const A=i(v,w);for(let k=0;k<A.length;++k){const M=A[k];a.push(_+M)}o=c+(o.length>0?" "+o:o)}return o};function x2(){let e=0,r,t,n="";for(;e<arguments.length;)(r=arguments[e++])&&(t=fh(r))&&(n&&(n+=" "),n+=t);return n}const fh=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=fh(e[n]))&&(t&&(t+=" "),t+=r);return t};function w2(e,...r){let t,n,i,a=s;function s(f){const c=r.reduce((u,p)=>p(u),e());return t=g2(c),n=t.cache.get,i=t.cache.set,a=o,o(f)}function o(f){const c=n(f);if(c)return c;const u=v2(f,t);return i(f,u),u}return function(){return a(x2.apply(null,arguments))}}const sr=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},ch=/^\[(?:([a-z-]+):)?(.+)\]$/i,y2=/^\d+\/\d+$/,b2=new Set(["px","full","screen"]),_2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S2=/\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$/,A2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>Ls(e)||b2.has(e)||y2.test(e),oa=e=>Rs(e,"length",I2),Ls=e=>!!e&&!Number.isNaN(Number(e)),ff=e=>Rs(e,"number",Ls),mo=e=>!!e&&Number.isInteger(Number(e)),E2=e=>e.endsWith("%")&&Ls(e.slice(0,-1)),Tt=e=>ch.test(e),la=e=>_2.test(e),L2=new Set(["length","size","percentage"]),F2=e=>Rs(e,L2,uh),C2=e=>Rs(e,"position",uh),k2=new Set(["image","url"]),P2=e=>Rs(e,k2,D2),O2=e=>Rs(e,"",R2),vo=()=>!0,Rs=(e,r,t)=>{const n=ch.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):t(n[2]):!1},I2=e=>S2.test(e)&&!A2.test(e),uh=()=>!1,R2=e=>T2.test(e),D2=e=>N2.test(e),M2=()=>{const e=sr("colors"),r=sr("spacing"),t=sr("blur"),n=sr("brightness"),i=sr("borderColor"),a=sr("borderRadius"),s=sr("borderSpacing"),o=sr("borderWidth"),f=sr("contrast"),c=sr("grayscale"),u=sr("hueRotate"),p=sr("invert"),g=sr("gap"),h=sr("gradientColorStops"),w=sr("gradientColorStopPositions"),v=sr("inset"),b=sr("margin"),_=sr("opacity"),S=sr("padding"),A=sr("saturate"),k=sr("scale"),M=sr("sepia"),K=sr("skew"),F=sr("space"),P=sr("translate"),D=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",Tt,r],T=()=>[Tt,r],z=()=>["",ji,oa],Y=()=>["auto",Ls,Tt],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Tt],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Ls,Tt];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[ji,oa],blur:["none","",la,Tt],brightness:ie(),borderColor:[e],borderRadius:["none","","full",la,Tt],borderSpacing:T(),borderWidth:z(),contrast:ie(),grayscale:te(),hueRotate:ie(),invert:te(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[E2,oa],inset:E(),margin:E(),opacity:ie(),padding:T(),saturate:ie(),scale:ie(),sepia:te(),skew:ie(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Tt]}],container:["container"],columns:[{columns:[la]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"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:[...ue(),Tt]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mo,Tt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Tt]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",mo,Tt]}],"grid-cols":[{"grid-cols":[vo]}],"col-start-end":[{col:["auto",{span:["full",mo,Tt]},Tt]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[mo,Tt]},Tt]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Tt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Tt,r]}],"min-w":[{"min-w":[Tt,r,"min","max","fit"]}],"max-w":[{"max-w":[Tt,r,"none","full","min","max","fit","prose",{screen:[la]},la]}],h:[{h:[Tt,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Tt,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Tt,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Tt,r,"auto","min","max","fit"]}],"font-size":[{text:["base",la,oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ff]}],"font-family":[{font:[vo]}],"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",Tt]}],"line-clamp":[{"line-clamp":["none",Ls,ff]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ji,Tt]}],"list-image":[{"list-image":["none",Tt]}],"list-style-type":[{list:["none","disc","decimal",Tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ji,oa]}],"underline-offset":[{"underline-offset":["auto",ji,Tt]}],"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:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Tt]}],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",Tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),C2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",F2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"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:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:Q()}],"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:["",...Q()]}],"outline-offset":[{"outline-offset":[ji,Tt]}],"outline-w":[{outline:[ji,oa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[ji,oa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",la,O2]}],"shadow-color":[{shadow:[vo]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",la,Tt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Tt]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",Tt]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",Tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[mo,Tt]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Tt]}],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",Tt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",Tt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ji,oa,ff]}],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"]}}},B2=w2(M2);function Lt(...e){return B2(s2(e))}function j2(e,r,t){const n=[r.join(","),...t.map(o=>o.map(f=>`"${String(f||"").replace(/"/g,'""')}"`).join(","))].join(`
2
+ `),i=new Blob([n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=`${e}.csv`,s.click(),URL.revokeObjectURL(a)}function Wt(e){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wt(e)}var rn=Uint8Array,Rn=Uint16Array,Gf=Int32Array,dl=new rn([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]),pl=new rn([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]),Ff=new rn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hh=function(e,r){for(var t=new Rn(31),n=0;n<31;++n)t[n]=r+=1<<e[n-1];for(var i=new Gf(t[30]),n=1;n<30;++n)for(var a=t[n];a<t[n+1];++a)i[a]=a-t[n]<<5|n;return{b:t,r:i}},dh=hh(dl,2),ph=dh.b,Cf=dh.r;ph[28]=258,Cf[258]=28;var gh=hh(pl,0),U2=gh.b,Xc=gh.r,kf=new Rn(32768);for(var or=0;or<32768;++or){var fa=(or&43690)>>1|(or&21845)<<1;fa=(fa&52428)>>2|(fa&13107)<<2,fa=(fa&61680)>>4|(fa&3855)<<4,kf[or]=((fa&65280)>>8|(fa&255)<<8)>>1}var Ti=(function(e,r,t){for(var n=e.length,i=0,a=new Rn(r);i<n;++i)e[i]&&++a[e[i]-1];var s=new Rn(r);for(i=1;i<r;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(t){o=new Rn(1<<r);var f=15-r;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],u=r-e[i],p=s[e[i]-1]++<<u,g=p|(1<<u)-1;p<=g;++p)o[kf[p]>>f]=c}else for(o=new Rn(n),i=0;i<n;++i)e[i]&&(o[i]=kf[s[e[i]-1]++]>>15-e[i]);return o}),va=new rn(288);for(var or=0;or<144;++or)va[or]=8;for(var or=144;or<256;++or)va[or]=9;for(var or=256;or<280;++or)va[or]=7;for(var or=280;or<288;++or)va[or]=8;var Ro=new rn(32);for(var or=0;or<32;++or)Ro[or]=5;var z2=Ti(va,9,0),W2=Ti(va,9,1),H2=Ti(Ro,5,0),q2=Ti(Ro,5,1),cf=function(e){for(var r=e[0],t=1;t<e.length;++t)e[t]>r&&(r=e[t]);return r},ii=function(e,r,t){var n=r/8|0;return(e[n]|e[n+1]<<8)>>(r&7)&t},uf=function(e,r){var t=r/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(r&7)},Yf=function(e){return(e+7)/8|0},mh=function(e,r,t){return(t==null||t>e.length)&&(t=e.length),new rn(e.subarray(r,t))},V2=["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"],li=function(e,r,t){var n=new Error(r||V2[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,li),!t)throw n;return n},G2=function(e,r,t,n){var i=e.length,a=0;if(!i||r.f&&!r.l)return t||new rn(0);var s=!t,o=s||r.i!=2,f=r.i;s&&(t=new rn(i*3));var c=function(Pe){var De=t.length;if(Pe>De){var He=new rn(Math.max(De*2,Pe));He.set(t),t=He}},u=r.f||0,p=r.p||0,g=r.b||0,h=r.l,w=r.d,v=r.m,b=r.n,_=i*8;do{if(!h){u=ii(e,p,1);var S=ii(e,p+1,3);if(p+=3,S)if(S==1)h=W2,w=q2,v=9,b=5;else if(S==2){var K=ii(e,p,31)+257,F=ii(e,p+10,15)+4,P=K+ii(e,p+5,31)+1;p+=14;for(var D=new rn(P),V=new rn(19),E=0;E<F;++E)V[Ff[E]]=ii(e,p+E*3,7);p+=F*3;for(var T=cf(V),z=(1<<T)-1,Y=Ti(V,T,1),E=0;E<P;){var ue=Y[ii(e,p,z)];p+=ue&15;var A=ue>>4;if(A<16)D[E++]=A;else{var Q=0,J=0;for(A==16?(J=3+ii(e,p,3),p+=2,Q=D[E-1]):A==17?(J=3+ii(e,p,7),p+=3):A==18&&(J=11+ii(e,p,127),p+=7);J--;)D[E++]=Q}}var oe=D.subarray(0,K),te=D.subarray(K);v=cf(oe),b=cf(te),h=Ti(oe,v,1),w=Ti(te,b,1)}else li(1);else{var A=Yf(p)+4,k=e[A-4]|e[A-3]<<8,M=A+k;if(M>i){f&&li(0);break}o&&c(g+k),t.set(e.subarray(A,M),g),r.b=g+=k,r.p=p=M*8,r.f=u;continue}if(p>_){f&&li(0);break}}o&&c(g+131072);for(var pe=(1<<v)-1,ie=(1<<b)-1,y=p;;y=p){var Q=h[uf(e,p)&pe],L=Q>>4;if(p+=Q&15,p>_){f&&li(0);break}if(Q||li(2),L<256)t[g++]=L;else if(L==256){y=p,h=null;break}else{var C=L-254;if(L>264){var E=L-257,O=dl[E];C=ii(e,p,(1<<O)-1)+ph[E],p+=O}var H=w[uf(e,p)&ie],fe=H>>4;H||li(3),p+=H&15;var te=U2[fe];if(fe>3){var O=pl[fe];te+=uf(e,p)&(1<<O)-1,p+=O}if(p>_){f&&li(0);break}o&&c(g+131072);var ce=g+C;if(g<te){var he=a-te,we=Math.min(te,ce);for(he+g<0&&li(3);g<we;++g)t[g]=n[he+g]}for(;g<ce;++g)t[g]=t[g-te]}}r.l=h,r.p=y,r.b=g,r.f=u,h&&(u=1,r.m=v,r.d=w,r.n=b)}while(!u);return g!=t.length&&s?mh(t,0,g):t.subarray(0,g)},Ui=function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8},xo=function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8,e[n+2]|=t>>16},hf=function(e,r){for(var t=[],n=0;n<e.length;++n)e[n]&&t.push({s:n,f:e[n]});var i=t.length,a=t.slice();if(!i)return{t:xh,l:0};if(i==1){var s=new rn(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(M,K){return M.f-K.f}),t.push({s:-1,f:25001});var o=t[0],f=t[1],c=0,u=1,p=2;for(t[0]={s:-1,f:o.f+f.f,l:o,r:f};u!=i-1;)o=t[t[c].f<t[p].f?c++:p++],f=t[c!=u&&t[c].f<t[p].f?c++:p++],t[u++]={s:-1,f:o.f+f.f,l:o,r:f};for(var g=a[0].s,n=1;n<i;++n)a[n].s>g&&(g=a[n].s);var h=new Rn(g+1),w=Pf(t[u-1],h,0);if(w>r){var n=0,v=0,b=w-r,_=1<<b;for(a.sort(function(K,F){return h[F.s]-h[K.s]||K.f-F.f});n<i;++n){var S=a[n].s;if(h[S]>r)v+=_-(1<<w-h[S]),h[S]=r;else break}for(v>>=b;v>0;){var A=a[n].s;h[A]<r?v-=1<<r-h[A]++-1:++n}for(;n>=0&&v;--n){var k=a[n].s;h[k]==r&&(--h[k],++v)}w=r}return{t:new rn(h),l:w}},Pf=function(e,r,t){return e.s==-1?Math.max(Pf(e.l,r,t+1),Pf(e.r,r,t+1)):r[e.s]=t},$c=function(e){for(var r=e.length;r&&!e[--r];);for(var t=new Rn(++r),n=0,i=e[0],a=1,s=function(f){t[n++]=f},o=1;o<=r;++o)if(e[o]==i&&o!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[o]}return{c:t.subarray(0,n),n:r}},wo=function(e,r){for(var t=0,n=0;n<r.length;++n)t+=e[n]*r[n];return t},vh=function(e,r,t){var n=t.length,i=Yf(r+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]=t[a];return(i+4+n)*8},Kc=function(e,r,t,n,i,a,s,o,f,c,u){Ui(r,u++,t),++i[256];for(var p=hf(i,15),g=p.t,h=p.l,w=hf(a,15),v=w.t,b=w.l,_=$c(g),S=_.c,A=_.n,k=$c(v),M=k.c,K=k.n,F=new Rn(19),P=0;P<S.length;++P)++F[S[P]&31];for(var P=0;P<M.length;++P)++F[M[P]&31];for(var D=hf(F,7),V=D.t,E=D.l,T=19;T>4&&!V[Ff[T-1]];--T);var z=c+5<<3,Y=wo(i,va)+wo(a,Ro)+s,ue=wo(i,g)+wo(a,v)+s+14+3*T+wo(F,V)+2*F[16]+3*F[17]+7*F[18];if(f>=0&&z<=Y&&z<=ue)return vh(r,u,e.subarray(f,f+c));var Q,J,oe,te;if(Ui(r,u,1+(ue<Y)),u+=2,ue<Y){Q=Ti(g,h,0),J=g,oe=Ti(v,b,0),te=v;var pe=Ti(V,E,0);Ui(r,u,A-257),Ui(r,u+5,K-1),Ui(r,u+10,T-4),u+=14;for(var P=0;P<T;++P)Ui(r,u+3*P,V[Ff[P]]);u+=3*T;for(var ie=[S,M],y=0;y<2;++y)for(var L=ie[y],P=0;P<L.length;++P){var C=L[P]&31;Ui(r,u,pe[C]),u+=V[C],C>15&&(Ui(r,u,L[P]>>5&127),u+=L[P]>>12)}}else Q=z2,J=va,oe=H2,te=Ro;for(var P=0;P<o;++P){var O=n[P];if(O>255){var C=O>>18&31;xo(r,u,Q[C+257]),u+=J[C+257],C>7&&(Ui(r,u,O>>23&31),u+=dl[C]);var H=O&31;xo(r,u,oe[H]),u+=te[H],H>3&&(xo(r,u,O>>5&8191),u+=pl[H])}else xo(r,u,Q[O]),u+=J[O]}return xo(r,u,Q[256]),u+J[256]},Y2=new Gf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xh=new rn(0),X2=function(e,r,t,n,i,a){var s=a.z||e.length,o=new rn(n+s+5*(1+Math.ceil(s/7e3))+i),f=o.subarray(n,o.length-i),c=a.l,u=(a.r||0)&7;if(r){u&&(f[0]=a.r>>3);for(var p=Y2[r-1],g=p>>13,h=p&8191,w=(1<<t)-1,v=a.p||new Rn(32768),b=a.h||new Rn(w+1),_=Math.ceil(t/3),S=2*_,A=function($e){return(e[$e]^e[$e+1]<<_^e[$e+2]<<S)&w},k=new Gf(25e3),M=new Rn(288),K=new Rn(32),F=0,P=0,D=a.i||0,V=0,E=a.w||0,T=0;D+2<s;++D){var z=A(D),Y=D&32767,ue=b[z];if(v[Y]=ue,b[z]=Y,E<=D){var Q=s-D;if((F>7e3||V>24576)&&(Q>423||!c)){u=Kc(e,f,0,k,M,K,P,V,T,D-T,u),V=F=P=0,T=D;for(var J=0;J<286;++J)M[J]=0;for(var J=0;J<30;++J)K[J]=0}var oe=2,te=0,pe=h,ie=Y-ue&32767;if(Q>2&&z==A(D-ie))for(var y=Math.min(g,Q)-1,L=Math.min(32767,D),C=Math.min(258,Q);ie<=L&&--pe&&Y!=ue;){if(e[D+oe]==e[D+oe-ie]){for(var O=0;O<C&&e[D+O]==e[D+O-ie];++O);if(O>oe){if(oe=O,te=ie,O>y)break;for(var H=Math.min(ie,O-2),fe=0,J=0;J<H;++J){var ce=D-ie+J&32767,he=v[ce],we=ce-he&32767;we>fe&&(fe=we,ue=ce)}}}Y=ue,ue=v[Y],ie+=Y-ue&32767}if(te){k[V++]=268435456|Cf[oe]<<18|Xc[te];var Pe=Cf[oe]&31,De=Xc[te]&31;P+=dl[Pe]+pl[De],++M[257+Pe],++K[De],E=D+oe,++F}else k[V++]=e[D],++M[e[D]]}}for(D=Math.max(D,E);D<s;++D)k[V++]=e[D],++M[e[D]];u=Kc(e,f,c,k,M,K,P,V,T,D-T,u),c||(a.r=u&7|f[u/8|0]<<3,u-=7,a.h=b,a.p=v,a.i=D,a.w=E)}else{for(var D=a.w||0;D<s+c;D+=65535){var He=D+65535;He>=s&&(f[u/8|0]=c,He=s),u=vh(f,u+1,e.subarray(D,He))}a.i=s}return mh(o,0,n+Yf(u)+i)},wh=function(){var e=1,r=0;return{p:function(t){for(var n=e,i=r,a=t.length|0,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=n+=t[s];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,r=i},d:function(){return e%=65521,r%=65521,(e&255)<<24|(e&65280)<<8|(r&255)<<8|r>>8}}},$2=function(e,r,t,n,i){if(!i&&(i={l:1},r.dictionary)){var a=r.dictionary.subarray(-32768),s=new rn(a.length+e.length);s.set(a),s.set(e,a.length),e=s,i.w=a.length}return X2(e,r.level==null?6:r.level,r.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+r.mem,t,n,i)},yh=function(e,r,t){for(;t;++r)e[r]=t,t>>>=8},K2=function(e,r){var t=r.level,n=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=n<<6|(r.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,r.dictionary){var i=wh();i.p(r.dictionary),yh(e,2,i.d())}},J2=function(e,r){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&li(6,"invalid zlib data"),(e[1]>>5&1)==1&&li(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Of(e,r){r||(r={});var t=wh();t.p(e);var n=$2(e,r,r.dictionary?6:2,4);return K2(n,r),yh(n,n.length-4,t.d()),n}function Z2(e,r){return G2(e.subarray(J2(e),-4),{i:2},r,r)}var Q2=typeof TextDecoder<"u"&&new TextDecoder,ep=0;try{Q2.decode(xh,{stream:!0}),ep=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 gt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function df(){gt.console&&typeof gt.console.log=="function"&&gt.console.log.apply(gt.console,arguments)}var er={log:df,warn:function(e){gt.console&&(typeof gt.console.warn=="function"?gt.console.warn.apply(gt.console,arguments):df.call(null,arguments))},error:function(e){gt.console&&(typeof gt.console.error=="function"?gt.console.error.apply(gt.console,arguments):df(e))}};function pf(e,r,t){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Oa(n.response,r,t)},n.onerror=function(){er.error("could not download file")},n.send()}function Jc(e){var r=new XMLHttpRequest;r.open("HEAD",e,!1);try{r.send()}catch{}return r.status>=200&&r.status<=299}function M0(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(r)}}var Ao,If,Oa=gt.saveAs||((typeof window>"u"?"undefined":Wt(window))!=="object"||window!==gt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,r,t){var n=gt.URL||gt.webkitURL,i=document.createElement("a");r=r||e.name||"download",i.download=r,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?Jc(i.href)?pf(e,r,t):M0(i,i.target="_blank"):M0(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){M0(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,t){if(r=r||e.name||"download",typeof e=="string")if(Jc(e))pf(e,r,t);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){M0(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Wt(a)!=="object"&&(er.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,t),r)}:function(e,r,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return pf(e,r,t);var i=e.type==="application/octet-stream",a=/constructor/i.test(gt.HTMLElement)||gt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a)&&(typeof FileReader>"u"?"undefined":Wt(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var u=o.result;u=s?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},o.readAsDataURL(e)}else{var f=gt.URL||gt.webkitURL,c=f.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout((function(){f.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 bh(e){var r;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 t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<t.length;n++){var i=t[n].re,a=t[n].process,s=i.exec(e);s&&(r=a(s),this.r=r[0],this.g=r[1],this.b=r[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 o=this.r.toString(16),f=this.g.toString(16),c=this.b.toString(16);return o.length==1&&(o="0"+o),f.length==1&&(f="0"+f),c.length==1&&(c="0"+c),"#"+o+f+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 gf(e,r){var t=e[0],n=e[1],i=e[2],a=e[3];t=Zr(t,n,i,a,r[0],7,-680876936),a=Zr(a,t,n,i,r[1],12,-389564586),i=Zr(i,a,t,n,r[2],17,606105819),n=Zr(n,i,a,t,r[3],22,-1044525330),t=Zr(t,n,i,a,r[4],7,-176418897),a=Zr(a,t,n,i,r[5],12,1200080426),i=Zr(i,a,t,n,r[6],17,-1473231341),n=Zr(n,i,a,t,r[7],22,-45705983),t=Zr(t,n,i,a,r[8],7,1770035416),a=Zr(a,t,n,i,r[9],12,-1958414417),i=Zr(i,a,t,n,r[10],17,-42063),n=Zr(n,i,a,t,r[11],22,-1990404162),t=Zr(t,n,i,a,r[12],7,1804603682),a=Zr(a,t,n,i,r[13],12,-40341101),i=Zr(i,a,t,n,r[14],17,-1502002290),t=Qr(t,n=Zr(n,i,a,t,r[15],22,1236535329),i,a,r[1],5,-165796510),a=Qr(a,t,n,i,r[6],9,-1069501632),i=Qr(i,a,t,n,r[11],14,643717713),n=Qr(n,i,a,t,r[0],20,-373897302),t=Qr(t,n,i,a,r[5],5,-701558691),a=Qr(a,t,n,i,r[10],9,38016083),i=Qr(i,a,t,n,r[15],14,-660478335),n=Qr(n,i,a,t,r[4],20,-405537848),t=Qr(t,n,i,a,r[9],5,568446438),a=Qr(a,t,n,i,r[14],9,-1019803690),i=Qr(i,a,t,n,r[3],14,-187363961),n=Qr(n,i,a,t,r[8],20,1163531501),t=Qr(t,n,i,a,r[13],5,-1444681467),a=Qr(a,t,n,i,r[2],9,-51403784),i=Qr(i,a,t,n,r[7],14,1735328473),t=en(t,n=Qr(n,i,a,t,r[12],20,-1926607734),i,a,r[5],4,-378558),a=en(a,t,n,i,r[8],11,-2022574463),i=en(i,a,t,n,r[11],16,1839030562),n=en(n,i,a,t,r[14],23,-35309556),t=en(t,n,i,a,r[1],4,-1530992060),a=en(a,t,n,i,r[4],11,1272893353),i=en(i,a,t,n,r[7],16,-155497632),n=en(n,i,a,t,r[10],23,-1094730640),t=en(t,n,i,a,r[13],4,681279174),a=en(a,t,n,i,r[0],11,-358537222),i=en(i,a,t,n,r[3],16,-722521979),n=en(n,i,a,t,r[6],23,76029189),t=en(t,n,i,a,r[9],4,-640364487),a=en(a,t,n,i,r[12],11,-421815835),i=en(i,a,t,n,r[15],16,530742520),t=tn(t,n=en(n,i,a,t,r[2],23,-995338651),i,a,r[0],6,-198630844),a=tn(a,t,n,i,r[7],10,1126891415),i=tn(i,a,t,n,r[14],15,-1416354905),n=tn(n,i,a,t,r[5],21,-57434055),t=tn(t,n,i,a,r[12],6,1700485571),a=tn(a,t,n,i,r[3],10,-1894986606),i=tn(i,a,t,n,r[10],15,-1051523),n=tn(n,i,a,t,r[1],21,-2054922799),t=tn(t,n,i,a,r[8],6,1873313359),a=tn(a,t,n,i,r[15],10,-30611744),i=tn(i,a,t,n,r[6],15,-1560198380),n=tn(n,i,a,t,r[13],21,1309151649),t=tn(t,n,i,a,r[4],6,-145523070),a=tn(a,t,n,i,r[11],10,-1120210379),i=tn(i,a,t,n,r[2],15,718787259),n=tn(n,i,a,t,r[9],21,-343485551),e[0]=da(t,e[0]),e[1]=da(n,e[1]),e[2]=da(i,e[2]),e[3]=da(a,e[3])}function gl(e,r,t,n,i,a){return r=da(da(r,e),da(n,a)),da(r<<i|r>>>32-i,t)}function Zr(e,r,t,n,i,a,s){return gl(r&t|~r&n,e,r,i,a,s)}function Qr(e,r,t,n,i,a,s){return gl(r&n|t&~n,e,r,i,a,s)}function en(e,r,t,n,i,a,s){return gl(r^t^n,e,r,i,a,s)}function tn(e,r,t,n,i,a,s){return gl(t^(r|~n),e,r,i,a,s)}function _h(e){var r,t=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=e.length;r+=64)gf(n,tp(e.substring(r-64,r)));e=e.substring(r-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<e.length;r++)i[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(gf(n,i),r=0;r<16;r++)i[r]=0;return i[14]=8*t,gf(n,i),n}function tp(e){var r,t=[];for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}Ao=gt.atob.bind(gt),If=gt.btoa.bind(gt);var Zc="0123456789abcdef".split("");function rp(e){for(var r="",t=0;t<4;t++)r+=Zc[e>>8*t+4&15]+Zc[e>>8*t&15];return r}function np(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Rf(e){return _h(e).map(np).join("")}var ip=(function(e){for(var r=0;r<e.length;r++)e[r]=rp(e[r]);return e.join("")})(_h("hello"))!="5d41402abc4b2a76b9719d911017c592";function da(e,r){if(ip){var t=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(t>>16)<<16|65535&t}return e+r&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 Df(e,r){var t,n,i,a;if(e!==t){for(var s=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),o=[],f=0;f<256;f++)o[f]=f;var c=0;for(f=0;f<256;f++){var u=o[f];c=(c+u+s.charCodeAt(f))%256,o[f]=o[c],o[c]=u}t=e,n=o}else o=n;var p=r.length,g=0,h=0,w="";for(f=0;f<p;f++)h=(h+(u=o[g=(g+1)%256]))%256,o[g]=o[h],o[h]=u,s=o[(o[g]+o[h])%256],w+=String.fromCharCode(r.charCodeAt(f)^s);return w}/**
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 Qc={print:4,modify:8,copy:16,"annot-forms":32};function As(e,r,t,n){this.v=1,this.r=2;var i=192;e.forEach((function(o){if(Qc.perm!==void 0)throw new Error("Invalid permission: "+o);i+=Qc[o]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(r+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=Rf(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Df(this.encryptionKey,this.padding)}function Ts(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var r="",t=e.length,n=0;n<t;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?r+="#"+("0"+i.toString(16)).slice(-2):r+=e[n]}return r}function eu(e){if(Wt(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var a=Math.random().toString(35);return r[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in r)if(r[n][t])return delete r[n][t],Object.keys(r[n]).length===0&&delete r[n],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in r[t]){var s=r[t][a];try{s[0].apply(e,n)}catch(o){gt.console&&er.error("jsPDF PubSub Error",o.message,o)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function Do(e){if(!(this instanceof Do))return new Do(e);var r="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&r.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function Sh(e,r){this.gState=e,this.matrix=r,this.id="",this.objectNumber=-1}function ha(e,r,t,n,i){if(!(this instanceof ha))return new ha(e,r,t,n,i);this.type=e==="axial"?2:3,this.coords=r,this.colors=t,Sh.call(this,n,i)}function Ra(e,r,t,n,i){if(!(this instanceof Ra))return new Ra(e,r,t,n,i);this.boundingBox=e,this.xStep=r,this.yStep=t,this.stream="",this.cloneIndex=0,Sh.call(this,n,i)}function ut(e){var r,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],s=[],o=1,f=16,c="S",u=null;Wt(e=e||{})==="object"&&(t=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||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(r=e.precision),e.floatPrecision!==void 0&&(f=e.floatPrecision),c=e.defaultPathOperation||"S"),s=e.filters||(a===!0?["FlateEncode"]:s),n=n||"mm",t=(""+(t||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,g={},h={internal:{},__private__:{}};h.__private__.PubSub=eu;var w="1.3",v=h.__private__.getPdfVersion=function(){return w};h.__private__.setPdfVersion=function(m){w=m};var b={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 b};var _=h.__private__.getPageFormat=function(m){return b[m]};i=i||"a4";var S={COMPAT:"compat",ADVANCED:"advanced"},A=S.COMPAT;function k(){this.saveGraphicsState(),le(new ht(et,0,0,-et,0,$i()*et).toString()+" cm"),this.setFontSize(this.getFontSize()/et),c="n",A=S.ADVANCED}function M(){this.restoreGraphicsState(),c="S",A=S.COMPAT}var K=h.__private__.combineFontStyleAndFontWeight=function(m,R){if(m=="bold"&&R=="normal"||m=="bold"&&R==400||m=="normal"&&R=="italic"||m=="bold"&&R=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return R&&(m=R==400||R==="normal"?m==="italic"?"italic":"normal":R!=700&&R!=="bold"||m!=="normal"?(R==700?"bold":R)+""+m:"bold"),m};h.advancedAPI=function(m){var R=A===S.COMPAT;return R&&k.call(this),typeof m!="function"||(m(this),R&&M.call(this)),this},h.compatAPI=function(m){var R=A===S.ADVANCED;return R&&M.call(this),typeof m!="function"||(m(this),R&&k.call(this)),this},h.isAdvancedAPI=function(){return A===S.ADVANCED};var F,P=function(m){if(A!==S.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=h.roundToPrecision=h.__private__.roundToPrecision=function(m,R){var se=r||R;if(isNaN(m)||isNaN(se))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(se).replace(/0+$/,"")};F=h.hpf=h.__private__.hpf=typeof f=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return D(m,f)}:f==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return D(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return D(m,16)};var V=h.f2=h.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return D(m,2)},E=h.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return D(m,3)},T=h.scale=h.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return A===S.COMPAT?m*et:A===S.ADVANCED?m:void 0},z=function(m){return A===S.COMPAT?$i()-m:A===S.ADVANCED?m:void 0},Y=function(m){return T(z(m))};h.__private__.setPrecision=h.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(r=parseInt(m,10))};var ue,Q="00000000000000000000000000000000",J=h.__private__.getFileId=function(){return Q},oe=h.__private__.setFileId=function(m){return Q=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():Q.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),u!==null&&(Kr=new As(u.userPermissions,u.userPassword,u.ownerPassword,Q)),Q};h.setFileId=function(m){return oe(m),this},h.getFileId=function(){return J()};var te=h.__private__.convertDateToPDFDate=function(m){var R=m.getTimezoneOffset(),se=R<0?"+":"-",de=Math.floor(Math.abs(R/60)),ye=Math.abs(R%60),Ce=[se,C(de),"'",C(ye),"'"].join("");return["D:",m.getFullYear(),C(m.getMonth()+1),C(m.getDate()),C(m.getHours()),C(m.getMinutes()),C(m.getSeconds()),Ce].join("")},pe=h.__private__.convertPDFDateToDate=function(m){var R=parseInt(m.substr(2,4),10),se=parseInt(m.substr(6,2),10)-1,de=parseInt(m.substr(8,2),10),ye=parseInt(m.substr(10,2),10),Ce=parseInt(m.substr(12,2),10),ze=parseInt(m.substr(14,2),10);return new Date(R,se,de,ye,Ce,ze,0)},ie=h.__private__.setCreationDate=function(m){var R;if(m===void 0&&(m=new Date),m instanceof Date)R=te(m);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(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");R=m}return ue=R},y=h.__private__.getCreationDate=function(m){var R=ue;return m==="jsDate"&&(R=pe(ue)),R};h.setCreationDate=function(m){return ie(m),this},h.getCreationDate=function(m){return y(m)};var L,C=h.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},O=h.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},H=0,fe=[],ce=[],he=0,we=[],Pe=[],De=!1,He=ce,$e=function(){H=0,he=0,ce=[],fe=[],we=[],X=cr(),Z=cr()};h.__private__.setCustomOutputDestination=function(m){De=!0,He=m};var Ee=function(m){De||(He=m)};h.__private__.resetCustomOutputDestination=function(){De=!1,He=ce};var le=h.__private__.out=function(m){return m=m.toString(),he+=m.length+1,He.push(m),He},Me=h.__private__.write=function(m){return le(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},nt=h.__private__.getArrayBuffer=function(m){for(var R=m.length,se=new ArrayBuffer(R),de=new Uint8Array(se);R--;)de[R]=m.charCodeAt(R);return se},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 Ve=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(m){return Ve=A===S.ADVANCED?m/et:m,this};var Ke,Ze=h.__private__.getFontSize=h.getFontSize=function(){return A===S.COMPAT?Ve:Ve*et},lt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(m){return lt=m,this},h.__private__.getR2L=h.getR2L=function(){return lt};var ft,vt=h.__private__.setZoomMode=function(m){var R=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Ke=m;else if(isNaN(m)){if(R.indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Ke=m}else Ke=parseInt(m,10)};h.__private__.getZoomMode=function(){return Ke};var St,Ft=h.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');ft=m};h.__private__.getPageMode=function(){return ft};var Ct=h.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');St=m};h.__private__.getLayoutMode=function(){return St},h.__private__.setDisplayMode=h.setDisplayMode=function(m,R,se){return vt(m),Ct(R),Ft(se),this};var pt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(m){if(Object.keys(pt).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return pt[m]},h.__private__.getDocumentProperties=function(){return pt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(m){for(var R in pt)pt.hasOwnProperty(R)&&m[R]&&(pt[R]=m[R]);return this},h.__private__.setDocumentProperty=function(m,R){if(Object.keys(pt).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return pt[m]=R};var Nt,et,Cr,Pt,dn,Ut={},tr={},Mn=[],It={},pi={},ar={},An={},Kn=null,Zt=0,xt=[],Dt=new eu(h),Li=e.hotfixes||[],kr={},Bn={},jn=[],ht=function m(R,se,de,ye,Ce,ze){if(!(this instanceof m))return new m(R,se,de,ye,Ce,ze);isNaN(R)&&(R=1),isNaN(se)&&(se=0),isNaN(de)&&(de=0),isNaN(ye)&&(ye=1),isNaN(Ce)&&(Ce=0),isNaN(ze)&&(ze=0),this._matrix=[R,se,de,ye,Ce,ze]};Object.defineProperty(ht.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(ht.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(ht.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(ht.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(ht.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(ht.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(ht.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(ht.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(ht.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(ht.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(ht.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(ht.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(ht.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ht.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ht.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ht.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ht.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(F).join(m)},ht.prototype.multiply=function(m){var R=m.sx*this.sx+m.shy*this.shx,se=m.sx*this.shy+m.shy*this.sy,de=m.shx*this.sx+m.sy*this.shx,ye=m.shx*this.shy+m.sy*this.sy,Ce=m.tx*this.sx+m.ty*this.shx+this.tx,ze=m.tx*this.shy+m.ty*this.sy+this.ty;return new ht(R,se,de,ye,Ce,ze)},ht.prototype.decompose=function(){var m=this.sx,R=this.shy,se=this.shx,de=this.sy,ye=this.tx,Ce=this.ty,ze=Math.sqrt(m*m+R*R),it=(m/=ze)*se+(R/=ze)*de;se-=m*it,de-=R*it;var ct=Math.sqrt(se*se+de*de);return it/=ct,m*(de/=ct)<R*(se/=ct)&&(m=-m,R=-R,it=-it,ze=-ze),{scale:new ht(ze,0,0,ct,0,0),translate:new ht(1,0,0,1,ye,Ce),rotate:new ht(m,R,-R,m,0,0),skew:new ht(1,0,it,1,0,0)}},ht.prototype.toString=function(m){return this.join(" ")},ht.prototype.inversed=function(){var m=this.sx,R=this.shy,se=this.shx,de=this.sy,ye=this.tx,Ce=this.ty,ze=1/(m*de-R*se),it=de*ze,ct=-R*ze,_t=-se*ze,yt=m*ze;return new ht(it,ct,_t,yt,-it*ye-_t*Ce,-ct*ye-yt*Ce)},ht.prototype.applyToPoint=function(m){var R=m.x*this.sx+m.y*this.shx+this.tx,se=m.x*this.shy+m.y*this.sy+this.ty;return new ns(R,se)},ht.prototype.applyToRectangle=function(m){var R=this.applyToPoint(m),se=this.applyToPoint(new ns(m.x+m.w,m.y+m.h));return new $s(R.x,R.y,se.x-R.x,se.y-R.y)},ht.prototype.clone=function(){var m=this.sx,R=this.shy,se=this.shx,de=this.sy,ye=this.tx,Ce=this.ty;return new ht(m,R,se,de,ye,Ce)},h.Matrix=ht;var Tn=h.matrixMult=function(m,R){return R.multiply(m)},pn=new ht(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=pn;var $r=function(m,R){if(!pi[m]){var se=(R instanceof ha?"Sh":"P")+(Object.keys(It).length+1).toString(10);R.id=se,pi[m]=se,It[se]=R,Dt.publish("addPattern",R)}};h.ShadingPattern=ha,h.TilingPattern=Ra,h.addShadingPattern=function(m,R){return P("addShadingPattern()"),$r(m,R),this},h.beginTilingPattern=function(m){P("beginTilingPattern()"),u0(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},h.endTilingPattern=function(m,R){P("endTilingPattern()"),R.stream=Pe[L].join(`
81
+ `),$r(m,R),Dt.publish("endTilingPattern",R),jn.pop().restore()};var mr=h.__private__.newObject=function(){var m=cr();return j(m,!0),m},cr=h.__private__.newObjectDeferred=function(){return H++,fe[H]=function(){return he},H},j=function(m,R){return R=typeof R=="boolean"&&R,fe[m]=he,R&&le(m+" 0 obj"),m},ne=h.__private__.newAdditionalObject=function(){var m={objId:cr(),content:""};return we.push(m),m},X=cr(),Z=cr(),re=h.__private__.decodeColorString=function(m){var R=m.split(" ");if(R.length!==2||R[1]!=="g"&&R[1]!=="G")R.length===5&&(R[4]==="k"||R[4]==="K")&&(R=[(1-R[0])*(1-R[3]),(1-R[1])*(1-R[3]),(1-R[2])*(1-R[3]),"r"]);else{var se=parseFloat(R[0]);R=[se,se,se,"r"]}for(var de="#",ye=0;ye<3;ye++)de+=("0"+Math.floor(255*parseFloat(R[ye])).toString(16)).slice(-2);return de},ae=h.__private__.encodeColorString=function(m){var R;typeof m=="string"&&(m={ch1:m});var se=m.ch1,de=m.ch2,ye=m.ch3,Ce=m.ch4,ze=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof se=="string"&&se.charAt(0)!=="#"){var it=new bh(se);if(it.ok)se=it.toHex();else if(!/^\d*\.?\d*$/.test(se))throw new Error('Invalid color "'+se+'" passed to jsPDF.encodeColorString.')}if(typeof se=="string"&&/^#[0-9A-Fa-f]{3}$/.test(se)&&(se="#"+se[1]+se[1]+se[2]+se[2]+se[3]+se[3]),typeof se=="string"&&/^#[0-9A-Fa-f]{6}$/.test(se)){var ct=parseInt(se.substr(1),16);se=ct>>16&255,de=ct>>8&255,ye=255&ct}if(de===void 0||Ce===void 0&&se===de&&de===ye)if(typeof se=="string")R=se+" "+ze[0];else switch(m.precision){case 2:R=V(se/255)+" "+ze[0];break;case 3:default:R=E(se/255)+" "+ze[0]}else if(Ce===void 0||Wt(Ce)==="object"){if(Ce&&!isNaN(Ce.a)&&Ce.a===0)return R=["1.","1.","1.",ze[1]].join(" ");if(typeof se=="string")R=[se,de,ye,ze[1]].join(" ");else switch(m.precision){case 2:R=[V(se/255),V(de/255),V(ye/255),ze[1]].join(" ");break;default:case 3:R=[E(se/255),E(de/255),E(ye/255),ze[1]].join(" ")}}else if(typeof se=="string")R=[se,de,ye,Ce,ze[2]].join(" ");else switch(m.precision){case 2:R=[V(se),V(de),V(ye),V(Ce),ze[2]].join(" ");break;case 3:default:R=[E(se),E(de),E(ye),E(Ce),ze[2]].join(" ")}return R},_e=h.__private__.getFilters=function(){return s},Le=h.__private__.putStream=function(m){var R=(m=m||{}).data||"",se=m.filters||_e(),de=m.alreadyAppliedFilters||[],ye=m.addLength1||!1,Ce=R.length,ze=m.objectId,it=function(Jr){return Jr};if(u!==null&&ze===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(it=Kr.encryptor(ze,0));var ct={};se===!0&&(se=["FlateEncode"]);var _t=m.additionalKeyValues||[],yt=(ct=ut.API.processDataByFilters!==void 0?ut.API.processDataByFilters(R,se):{data:R,reverseChain:[]}).reverseChain+(Array.isArray(de)?de.join(" "):de.toString());if(ct.data.length!==0&&(_t.push({key:"Length",value:ct.data.length}),ye===!0&&_t.push({key:"Length1",value:Ce})),yt.length!=0)if(yt.split("/").length-1==1)_t.push({key:"Filter",value:yt});else{_t.push({key:"Filter",value:"["+yt+"]"});for(var Ot=0;Ot<_t.length;Ot+=1)if(_t[Ot].key==="DecodeParms"){for(var fr=[],ur=0;ur<ct.reverseChain.split("/").length-1;ur+=1)fr.push("null");fr.push(_t[Ot].value),_t[Ot].value="["+fr.join(" ")+"]"}}le("<<");for(var Ar=0;Ar<_t.length;Ar++)le("/"+_t[Ar].key+" "+_t[Ar].value);le(">>"),ct.data.length!==0&&(le("stream"),le(it(ct.data)),le("endstream"))},be=h.__private__.putPage=function(m){var R=m.number,se=m.data,de=m.objId,ye=m.contentsObjId;j(de,!0),le("<</Type /Page"),le("/Parent "+m.rootDictionaryObjId+" 0 R"),le("/Resources "+m.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(F(m.mediaBox.bottomLeftX))+" "+parseFloat(F(m.mediaBox.bottomLeftY))+" "+F(m.mediaBox.topRightX)+" "+F(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&le("/CropBox ["+F(m.cropBox.bottomLeftX)+" "+F(m.cropBox.bottomLeftY)+" "+F(m.cropBox.topRightX)+" "+F(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&le("/BleedBox ["+F(m.bleedBox.bottomLeftX)+" "+F(m.bleedBox.bottomLeftY)+" "+F(m.bleedBox.topRightX)+" "+F(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&le("/TrimBox ["+F(m.trimBox.bottomLeftX)+" "+F(m.trimBox.bottomLeftY)+" "+F(m.trimBox.topRightX)+" "+F(m.trimBox.topRightY)+"]"),m.artBox!==null&&le("/ArtBox ["+F(m.artBox.bottomLeftX)+" "+F(m.artBox.bottomLeftY)+" "+F(m.artBox.topRightX)+" "+F(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&le("/UserUnit "+m.userUnit),Dt.publish("putPage",{objId:de,pageContext:xt[R],pageNumber:R,page:se}),le("/Contents "+ye+" 0 R"),le(">>"),le("endobj");var Ce=se.join(`
82
+ `);return A===S.ADVANCED&&(Ce+=`
83
+ Q`),j(ye,!0),Le({data:Ce,filters:_e(),objectId:ye}),le("endobj"),de},Te=h.__private__.putPages=function(){var m,R,se=[];for(m=1;m<=Zt;m++)xt[m].objId=cr(),xt[m].contentsObjId=cr();for(m=1;m<=Zt;m++)se.push(be({number:m,data:Pe[m],objId:xt[m].objId,contentsObjId:xt[m].contentsObjId,mediaBox:xt[m].mediaBox,cropBox:xt[m].cropBox,bleedBox:xt[m].bleedBox,trimBox:xt[m].trimBox,artBox:xt[m].artBox,userUnit:xt[m].userUnit,rootDictionaryObjId:X,resourceDictionaryObjId:Z}));j(X,!0),le("<</Type /Pages");var de="/Kids [";for(R=0;R<Zt;R++)de+=se[R]+" 0 R ";le(de+"]"),le("/Count "+Zt),le(">>"),le("endobj"),Dt.publish("postPutPages")},Ne=function(m){Dt.publish("putFont",{font:m,out:le,newObject:mr,putStream:Le}),m.isAlreadyPutted!==!0&&(m.objectNumber=mr(),le("<<"),le("/Type /Font"),le("/BaseFont /"+Ts(m.postScriptName)),le("/Subtype /Type1"),typeof m.encoding=="string"&&le("/Encoding /"+m.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},We=function(){for(var m in Ut)Ut.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&Ne(Ut[m])},Ge=function(m){m.objectNumber=mr();var R=[];R.push({key:"Type",value:"/XObject"}),R.push({key:"Subtype",value:"/Form"}),R.push({key:"BBox",value:"["+[F(m.x),F(m.y),F(m.x+m.width),F(m.y+m.height)].join(" ")+"]"}),R.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var se=m.pages[1].join(`
84
+ `);Le({data:se,additionalKeyValues:R,objectId:m.objectNumber}),le("endobj")},rt=function(){for(var m in kr)kr.hasOwnProperty(m)&&Ge(kr[m])},qe=function(m,R){var se,de=[],ye=1/(R-1);for(se=0;se<1;se+=ye)de.push(se);if(de.push(1),m[0].offset!=0){var Ce={offset:0,color:m[0].color};m.unshift(Ce)}if(m[m.length-1].offset!=1){var ze={offset:1,color:m[m.length-1].color};m.push(ze)}for(var it="",ct=0,_t=0;_t<de.length;_t++){for(se=de[_t];se>m[ct+1].offset;)ct++;var yt=m[ct].offset,Ot=(se-yt)/(m[ct+1].offset-yt),fr=m[ct].color,ur=m[ct+1].color;it+=O(Math.round((1-Ot)*fr[0]+Ot*ur[0]).toString(16))+O(Math.round((1-Ot)*fr[1]+Ot*ur[1]).toString(16))+O(Math.round((1-Ot)*fr[2]+Ot*ur[2]).toString(16))}return it.trim()},tt=function(m,R){R||(R=21);var se=mr(),de=qe(m.colors,R),ye=[];ye.push({key:"FunctionType",value:"0"}),ye.push({key:"Domain",value:"[0.0 1.0]"}),ye.push({key:"Size",value:"["+R+"]"}),ye.push({key:"BitsPerSample",value:"8"}),ye.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ye.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Le({data:de,additionalKeyValues:ye,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:se}),le("endobj"),m.objectNumber=mr(),le("<< /ShadingType "+m.type),le("/ColorSpace /DeviceRGB");var Ce="/Coords ["+F(parseFloat(m.coords[0]))+" "+F(parseFloat(m.coords[1]))+" ";m.type===2?Ce+=F(parseFloat(m.coords[2]))+" "+F(parseFloat(m.coords[3])):Ce+=F(parseFloat(m.coords[2]))+" "+F(parseFloat(m.coords[3]))+" "+F(parseFloat(m.coords[4]))+" "+F(parseFloat(m.coords[5])),le(Ce+="]"),m.matrix&&le("/Matrix ["+m.matrix.toString()+"]"),le("/Function "+se+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},mt=function(m,R){var se=cr(),de=mr();R.push({resourcesOid:se,objectOid:de}),m.objectNumber=de;var ye=[];ye.push({key:"Type",value:"/Pattern"}),ye.push({key:"PatternType",value:"1"}),ye.push({key:"PaintType",value:"1"}),ye.push({key:"TilingType",value:"1"}),ye.push({key:"BBox",value:"["+m.boundingBox.map(F).join(" ")+"]"}),ye.push({key:"XStep",value:F(m.xStep)}),ye.push({key:"YStep",value:F(m.yStep)}),ye.push({key:"Resources",value:se+" 0 R"}),m.matrix&&ye.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),Le({data:m.stream,additionalKeyValues:ye,objectId:m.objectNumber}),le("endobj")},zt=function(m){var R;for(R in It)It.hasOwnProperty(R)&&(It[R]instanceof ha?tt(It[R]):It[R]instanceof Ra&&mt(It[R],m))},$t=function(m){for(var R in m.objectNumber=mr(),le("<<"),m)switch(R){case"opacity":le("/ca "+V(m[R]));break;case"stroke-opacity":le("/CA "+V(m[R]))}le(">>"),le("endobj")},Sr=function(){var m;for(m in ar)ar.hasOwnProperty(m)&&$t(ar[m])},Jn=function(){for(var m in le("/XObject <<"),kr)kr.hasOwnProperty(m)&&kr[m].objectNumber>=0&&le("/"+m+" "+kr[m].objectNumber+" 0 R");Dt.publish("putXobjectDict"),le(">>")},Fi=function(){Kr.oid=mr(),le("<<"),le("/Filter /Standard"),le("/V "+Kr.v),le("/R "+Kr.r),le("/U <"+Kr.toHexString(Kr.U)+">"),le("/O <"+Kr.toHexString(Kr.O)+">"),le("/P "+Kr.P),le(">>"),le("endobj")},gi=function(){for(var m in le("/Font <<"),Ut)Ut.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&le("/"+m+" "+Ut[m].objectNumber+" 0 R");le(">>")},Zn=function(){if(Object.keys(It).length>0){for(var m in le("/Shading <<"),It)It.hasOwnProperty(m)&&It[m]instanceof ha&&It[m].objectNumber>=0&&le("/"+m+" "+It[m].objectNumber+" 0 R");Dt.publish("putShadingPatternDict"),le(">>")}},mi=function(m){if(Object.keys(It).length>0){for(var R in le("/Pattern <<"),It)It.hasOwnProperty(R)&&It[R]instanceof h.TilingPattern&&It[R].objectNumber>=0&&It[R].objectNumber<m&&le("/"+R+" "+It[R].objectNumber+" 0 R");Dt.publish("putTilingPatternDict"),le(">>")}},Nn=function(){if(Object.keys(ar).length>0){var m;for(m in le("/ExtGState <<"),ar)ar.hasOwnProperty(m)&&ar[m].objectNumber>=0&&le("/"+m+" "+ar[m].objectNumber+" 0 R");Dt.publish("putGStateDict"),le(">>")}},vr=function(m){j(m.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),gi(),Zn(),mi(m.objectOid),Nn(),Jn(),le(">>"),le("endobj")},Ko=function(){var m=[];We(),Sr(),rt(),zt(m),Dt.publish("putResources"),m.forEach(vr),vr({resourcesOid:Z,objectOid:Number.MAX_SAFE_INTEGER}),Dt.publish("postPutResources")},Jo=function(){Dt.publish("putAdditionalObjects");for(var m=0;m<we.length;m++){var R=we[m];j(R.objId,!0),le(R.content),le("endobj")}Dt.publish("postPutAdditionalObjects")},Zo=function(m){tr[m.fontName]=tr[m.fontName]||{},tr[m.fontName][m.fontStyle]=m.id},Us=function(m,R,se,de,ye){var Ce={id:"F"+(Object.keys(Ut).length+1).toString(10),postScriptName:m,fontName:R,fontStyle:se,encoding:de,isStandardFont:ye||!1,metadata:{}};return Dt.publish("addFont",{font:Ce,instance:this}),Ut[Ce.id]=Ce,Zo(Ce),Ce.id},Nl=function(m){for(var R=0,se=Ue.length;R<se;R++){var de=Us.call(this,m[R][0],m[R][1],m[R][2],Ue[R][3],!0);p===!1&&(g[de]=!0);var ye=m[R][0].split("-");Zo({id:de,fontName:ye[0],fontStyle:ye[1]||""})}Dt.publish("addFonts",{fonts:Ut,dictionary:tr})},Qn=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(de){var R=de.stack||"";~R.indexOf(" at ")&&(R=R.split(" at ")[1]);var se="Error in function "+R.split(`
85
+ `)[0].split("<")[0]+": "+de.message;if(!gt.console)throw new Error(se);gt.console.error(se,de),gt.alert&&alert(se)}},m.foo.bar=m,m.foo},Ja=function(m,R){var se,de,ye,Ce,ze,it,ct,_t,yt;if(ye=(R=R||{}).sourceEncoding||"Unicode",ze=R.outputEncoding,(R.autoencode||ze)&&Ut[Nt].metadata&&Ut[Nt].metadata[ye]&&Ut[Nt].metadata[ye].encoding&&(Ce=Ut[Nt].metadata[ye].encoding,!ze&&Ut[Nt].encoding&&(ze=Ut[Nt].encoding),!ze&&Ce.codePages&&(ze=Ce.codePages[0]),typeof ze=="string"&&(ze=Ce[ze]),ze)){for(ct=!1,it=[],se=0,de=m.length;se<de;se++)(_t=ze[m.charCodeAt(se)])?it.push(String.fromCharCode(_t)):it.push(m[se]),it[se].charCodeAt(0)>>8&&(ct=!0);m=it.join("")}for(se=m.length;ct===void 0&&se!==0;)m.charCodeAt(se-1)>>8&&(ct=!0),se--;if(!ct)return m;for(it=R.noBOM?[]:[254,255],se=0,de=m.length;se<de;se++){if((yt=(_t=m.charCodeAt(se))>>8)>>8)throw new Error("Character at position "+se+" of string '"+m+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");it.push(yt),it.push(_t-(yt<<8))}return String.fromCharCode.apply(void 0,it)},gn=h.__private__.pdfEscape=h.pdfEscape=function(m,R){return Ja(m,R).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zs=h.__private__.beginPage=function(m){Pe[++Zt]=[],xt[Zt]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},e0(Zt),Ee(Pe[L])},Qo=function(m,R){var se,de,ye;switch(t=R||t,typeof m=="string"&&(se=_(m.toLowerCase()),Array.isArray(se)&&(de=se[0],ye=se[1])),Array.isArray(m)&&(de=m[0]*et,ye=m[1]*et),isNaN(de)&&(de=i[0],ye=i[1]),(de>14400||ye>14400)&&(er.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),de=Math.min(14400,de),ye=Math.min(14400,ye)),i=[de,ye],t.substr(0,1)){case"l":ye>de&&(i=[ye,de]);break;case"p":de>ye&&(i=[ye,de])}zs(i),s0(Vs),le(ei),Ys!==0&&le(Ys+" J"),Xs!==0&&le(Xs+" j"),Dt.publish("addPage",{pageNumber:Zt})},El=function(m){m>0&&m<=Zt&&(Pe.splice(m,1),xt.splice(m,1),Zt--,L>Zt&&(L=Zt),this.setPage(L))},e0=function(m){m>0&&m<=Zt&&(L=m)},Ll=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Pe.length-1},t0=function(m,R,se){var de,ye=void 0;return se=se||{},m=m!==void 0?m:Ut[Nt].fontName,R=R!==void 0?R:Ut[Nt].fontStyle,de=m.toLowerCase(),tr[de]!==void 0&&tr[de][R]!==void 0?ye=tr[de][R]:tr[m]!==void 0&&tr[m][R]!==void 0?ye=tr[m][R]:se.disableWarning===!1&&er.warn("Unable to look up font label for font '"+m+"', '"+R+"'. Refer to getFontList() for available fonts."),ye||se.noFallback||(ye=tr.times[R])==null&&(ye=tr.times.normal),ye},Fl=h.__private__.putInfo=function(){var m=mr(),R=function(de){return de};for(var se in u!==null&&(R=Kr.encryptor(m,0)),le("<<"),le("/Producer ("+gn(R("jsPDF "+ut.version))+")"),pt)pt.hasOwnProperty(se)&&pt[se]&&le("/"+se.substr(0,1).toUpperCase()+se.substr(1)+" ("+gn(R(pt[se]))+")");le("/CreationDate ("+gn(R(ue))+")"),le(">>"),le("endobj")},Ws=h.__private__.putCatalog=function(m){var R=(m=m||{}).rootDictionaryObjId||X;switch(mr(),le("<<"),le("/Type /Catalog"),le("/Pages "+R+" 0 R"),Ke||(Ke="fullwidth"),Ke){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 se=""+Ke;se.substr(se.length-1)==="%"&&(Ke=parseInt(Ke)/100),typeof Ke=="number"&&le("/OpenAction [3 0 R /XYZ null null "+V(Ke)+"]")}switch(St||(St="continuous"),St){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")}ft&&le("/PageMode /"+ft),Dt.publish("putCatalog"),le(">>"),le("endobj")},Cl=h.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(H+1)),le("/Root "+H+" 0 R"),le("/Info "+(H-1)+" 0 R"),u!==null&&le("/Encrypt "+Kr.oid+" 0 R"),le("/ID [ <"+Q+"> <"+Q+"> ]"),le(">>")},kl=h.__private__.putHeader=function(){le("%PDF-"+w),le("%ºß¬à")},Pl=h.__private__.putXRef=function(){var m="0000000000";le("xref"),le("0 "+(H+1)),le("0000000000 65535 f ");for(var R=1;R<=H;R++)typeof fe[R]=="function"?le((m+fe[R]()).slice(-10)+" 00000 n "):fe[R]!==void 0?le((m+fe[R]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Ci=h.__private__.buildDocument=function(){$e(),Ee(ce),Dt.publish("buildDocument"),kl(),Te(),Jo(),Ko(),u!==null&&Fi(),Fl(),Ws();var m=he;return Pl(),Cl(),le("startxref"),le(""+m),le("%%EOF"),Ee(Pe[L]),ce.join(`
86
+ `)},Za=h.__private__.getBlob=function(m){return new Blob([nt(m)],{type:"application/pdf"})},Qa=h.output=h.__private__.output=Qn((function(m,R){switch(typeof(R=R||{})=="string"?R={filename:R}:R.filename=R.filename||"generated.pdf",m){case void 0:return Ci();case"save":h.save(R.filename);break;case"arraybuffer":return nt(Ci());case"blob":return Za(Ci());case"bloburi":case"bloburl":if(gt.URL!==void 0&&typeof gt.URL.createObjectURL=="function")return gt.URL&&gt.URL.createObjectURL(Za(Ci()))||void 0;er.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var se="",de=Ci();try{se=If(de)}catch{se=If(unescape(encodeURIComponent(de)))}return"data:application/pdf;filename="+R.filename+";base64,"+se;case"pdfobjectnewwindow":if(Object.prototype.toString.call(gt)==="[object Window]"){var ye="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';R.pdfObjectUrl&&(ye=R.pdfObjectUrl,Ce="");var ze='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ye+'"'+Ce+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(R)+");<\/script></body></html>",it=gt.open();return it!==null&&it.document.write(ze),it}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(gt)==="[object Window]"){var ct='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(R.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+R.filename+'" width="500px" height="400px" /></body></html>',_t=gt.open();if(_t!==null){_t.document.write(ct);var yt=this;_t.document.documentElement.querySelector("#pdfViewer").onload=function(){_t.document.title=R.filename,_t.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(yt.output("bloburl"))}}return _t}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(gt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ot='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",R)+'"></iframe></body></html>',fr=gt.open();if(fr!==null&&(fr.document.write(Ot),fr.document.title=R.filename),fr||typeof safari>"u")return fr;break;case"datauri":case"dataurl":return gt.document.location.href=this.output("datauristring",R);default:return null}})),r0=function(m){return Array.isArray(Li)===!0&&Li.indexOf(m)>-1};switch(n){case"pt":et=1;break;case"mm":et=72/25.4;break;case"cm":et=72/2.54;break;case"in":et=72;break;case"px":et=r0("px_scaling")==1?.75:96/72;break;case"pc":case"em":et=12;break;case"ex":et=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);et=n}var Kr=null;ie(),oe();var Ol=function(m){return u!==null?Kr.encryptor(m,0):function(R){return R}},n0=h.__private__.getPageInfo=h.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:xt[m].objId,pageNumber:m,pageContext:xt[m]}},wt=h.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var R in xt)if(xt[R].objId===m)break;return n0(R)},Il=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:xt[L].objId,pageNumber:L,pageContext:xt[L]}};h.addPage=function(){return Qo.apply(this,arguments),this},h.setPage=function(){return e0.apply(this,arguments),Ee.call(this,Pe[L]),this},h.insertPage=function(m){return this.addPage(),this.movePage(L,m),this},h.movePage=function(m,R){var se,de;if(m>R){se=Pe[m],de=xt[m];for(var ye=m;ye>R;ye--)Pe[ye]=Pe[ye-1],xt[ye]=xt[ye-1];Pe[R]=se,xt[R]=de,this.setPage(R)}else if(m<R){se=Pe[m],de=xt[m];for(var Ce=m;Ce<R;Ce++)Pe[Ce]=Pe[Ce+1],xt[Ce]=xt[Ce+1];Pe[R]=se,xt[R]=de,this.setPage(R)}return this},h.deletePage=function(){return El.apply(this,arguments),this},h.__private__.text=h.text=function(m,R,se,de,ye){var Ce,ze,it,ct,_t,yt,Ot,fr,ur,Ar=(de=de||{}).scope||this;if(typeof m=="number"&&typeof R=="number"&&(typeof se=="string"||Array.isArray(se))){var Jr=se;se=R,R=m,m=Jr}if(arguments[3]instanceof ht?(P("The transform parameter of text() with a Matrix value"),ur=ye):(it=arguments[4],ct=arguments[5],Wt(Ot=arguments[3])==="object"&&Ot!==null||(typeof it=="string"&&(ct=it,it=null),typeof Ot=="string"&&(ct=Ot,Ot=null),typeof Ot=="number"&&(it=Ot,Ot=null),de={flags:Ot,angle:it,align:ct})),isNaN(R)||isNaN(se)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return Ar;var Rr="",ti=!1,En=typeof de.lineHeightFactor=="number"?de.lineHeightFactor:Aa,wi=Ar.internal.scaleFactor;function h0(rr){return rr=rr.split(" ").join(Array(de.TabLen||9).join(" ")),gn(rr,Ot)}function Qs(rr){for(var nr,wr=rr.concat(),Pr=[],Ri=wr.length;Ri--;)typeof(nr=wr.shift())=="string"?Pr.push(nr):Array.isArray(rr)&&(nr.length===1||nr[1]===void 0&&nr[2]===void 0)?Pr.push(nr[0]):Pr.push([nr[0],nr[1],nr[2]]);return Pr}function eo(rr,nr){var wr;if(typeof rr=="string")wr=nr(rr)[0];else if(Array.isArray(rr)){for(var Pr,Ri,lo=rr.concat(),ps=[],v0=lo.length;v0--;)typeof(Pr=lo.shift())=="string"?ps.push(nr(Pr)[0]):Array.isArray(Pr)&&typeof Pr[0]=="string"&&(Ri=nr(Pr[0],Pr[1],Pr[2]),ps.push([Ri[0],Ri[1],Ri[2]]));wr=ps}return wr}var as=!1,to=!0;if(typeof m=="string")as=!0;else if(Array.isArray(m)){var ro=m.concat();ze=[];for(var ss,zr=ro.length;zr--;)(typeof(ss=ro.shift())!="string"||Array.isArray(ss)&&typeof ss[0]!="string")&&(to=!1);as=to}if(as===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var os=Ve/Ar.internal.scaleFactor,ls=os*(En-1);switch(de.baseline){case"bottom":se-=ls;break;case"top":se+=os-ls;break;case"hanging":se+=os-2*ls;break;case"middle":se+=os/2-ls}if((yt=de.maxWidth||0)>0&&(typeof m=="string"?m=Ar.splitTextToSize(m,yt):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce((function(rr,nr){return rr.concat(Ar.splitTextToSize(nr,yt))}),[]))),Ce={text:m,x:R,y:se,options:de,mutex:{pdfEscape:gn,activeFontKey:Nt,fonts:Ut,activeFontSize:Ve}},Dt.publish("preProcessText",Ce),m=Ce.text,it=(de=Ce.options).angle,!(ur instanceof ht)&&it&&typeof it=="number"){it*=Math.PI/180,de.rotationDirection===0&&(it=-it),A===S.ADVANCED&&(it=-it);var fs=Math.cos(it),no=Math.sin(it);ur=new ht(fs,no,-no,fs,0,0)}else it&&it instanceof ht&&(ur=it);A!==S.ADVANCED||ur||(ur=pn),(_t=de.charSpace||rs)!==void 0&&(Rr+=F(T(_t))+` Tc
87
+ `,this.setCharSpace(this.getCharSpace()||0)),(fr=de.horizontalScale)!==void 0&&(Rr+=F(100*fr)+` Tz
88
+ `),de.lang;var mn=-1,ql=de.renderingMode!==void 0?de.renderingMode:de.stroke,io=Ar.internal.getCurrentPageInfo().pageContext;switch(ql){case 0:case!1:case"fill":mn=0;break;case 1:case!0:case"stroke":mn=1;break;case 2:case"fillThenStroke":mn=2;break;case 3:case"invisible":mn=3;break;case 4:case"fillAndAddForClipping":mn=4;break;case 5:case"strokeAndAddPathForClipping":mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mn=6;break;case 7:case"addToPathForClipping":mn=7}var d0=io.usedRenderingMode!==void 0?io.usedRenderingMode:-1;mn!==-1?Rr+=mn+` Tr
89
+ `:d0!==-1&&(Rr+=`0 Tr
90
+ `),mn!==-1&&(io.usedRenderingMode=mn),ct=de.align||"left";var Un,cs=Ve*En,p0=Ar.internal.pageSize.getWidth(),g0=Ut[Nt];_t=de.charSpace||rs,yt=de.maxWidth||0,Ot=Object.assign({autoencode:!0,noBOM:!0},de.flags);var Ki=[],Ea=function(rr){return Ar.getStringUnitWidth(rr,{font:g0,charSpace:_t,fontSize:Ve,doKerning:!1})*Ve/wi};if(Object.prototype.toString.call(m)==="[object Array]"){var vn;ze=Qs(m),ct!=="left"&&(Un=ze.map(Ea));var sn,Ji=0;if(ct==="right"){R-=Un[0],m=[],zr=ze.length;for(var Pi=0;Pi<zr;Pi++)Pi===0?(sn=xi(R),vn=ki(se)):(sn=T(Ji-Un[Pi]),vn=-cs),m.push([ze[Pi],sn,vn]),Ji=Un[Pi]}else if(ct==="center"){R-=Un[0]/2,m=[],zr=ze.length;for(var Oi=0;Oi<zr;Oi++)Oi===0?(sn=xi(R),vn=ki(se)):(sn=T((Ji-Un[Oi])/2),vn=-cs),m.push([ze[Oi],sn,vn]),Ji=Un[Oi]}else if(ct==="left"){m=[],zr=ze.length;for(var us=0;us<zr;us++)m.push(ze[us])}else if(ct==="justify"&&g0.encoding==="Identity-H"){m=[],zr=ze.length,yt=yt!==0?yt:p0;for(var Ii=0,xr=0;xr<zr;xr++)if(vn=xr===0?ki(se):-cs,sn=xr===0?xi(R):Ii,xr<zr-1){var ao=T((yt-Un[xr])/(ze[xr].split(" ").length-1)),on=ze[xr].split(" ");m.push([on[0]+" ",sn,vn]),Ii=0;for(var zn=1;zn<on.length;zn++){var hs=(Ea(on[zn-1]+" "+on[zn])-Ea(on[zn]))*wi+ao;zn==on.length-1?m.push([on[zn],hs,0]):m.push([on[zn]+" ",hs,0]),Ii-=hs}}else m.push([ze[xr],sn,vn]);m.push(["",Ii,0])}else{if(ct!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(m=[],zr=ze.length,yt=yt!==0?yt:p0,xr=0;xr<zr;xr++)vn=xr===0?ki(se):-cs,sn=xr===0?xi(R):0,xr<zr-1?Ki.push(F(T((yt-Un[xr])/(ze[xr].split(" ").length-1)))):Ki.push(0),m.push([ze[xr],sn,vn])}}var m0=typeof de.R2L=="boolean"?de.R2L:lt;m0===!0&&(m=eo(m,(function(rr,nr,wr){return[rr.split("").reverse().join(""),nr,wr]}))),Ce={text:m,x:R,y:se,options:de,mutex:{pdfEscape:gn,activeFontKey:Nt,fonts:Ut,activeFontSize:Ve}},Dt.publish("postProcessText",Ce),m=Ce.text,ti=Ce.mutex.isHex||!1;var so=Ut[Nt].encoding;so!=="WinAnsiEncoding"&&so!=="StandardEncoding"||(m=eo(m,(function(rr,nr,wr){return[h0(rr),nr,wr]}))),ze=Qs(m),m=[];for(var La,Fa,Zi,Ca=0,ds=1,ka=Array.isArray(ze[0])?ds:Ca,Qi="",oo=function(rr,nr,wr){var Pr="";return wr instanceof ht?(wr=typeof de.angle=="number"?Tn(wr,new ht(1,0,0,1,rr,nr)):Tn(new ht(1,0,0,1,rr,nr),wr),A===S.ADVANCED&&(wr=Tn(new ht(1,0,0,-1,0,0),wr)),Pr=wr.join(" ")+` Tm
91
+ `):Pr=F(rr)+" "+F(nr)+` Td
92
+ `,Pr},Wn=0;Wn<ze.length;Wn++){switch(Qi="",ka){case ds:Zi=(ti?"<":"(")+ze[Wn][0]+(ti?">":")"),La=parseFloat(ze[Wn][1]),Fa=parseFloat(ze[Wn][2]);break;case Ca:Zi=(ti?"<":"(")+ze[Wn]+(ti?">":")"),La=xi(R),Fa=ki(se)}Ki!==void 0&&Ki[Wn]!==void 0&&(Qi=Ki[Wn]+` Tw
93
+ `),Wn===0?m.push(Qi+oo(La,Fa,ur)+Zi):ka===Ca?m.push(Qi+Zi):ka===ds&&m.push(Qi+oo(La,Fa,ur)+Zi)}m=ka===Ca?m.join(` Tj
94
+ T* `):m.join(` Tj
95
+ `),m+=` Tj
96
+ `;var Hn=`BT
97
+ /`;return Hn+=Nt+" "+Ve+` Tf
98
+ `,Hn+=F(Ve*En)+` TL
99
+ `,Hn+=Ta+`
100
+ `,Hn+=Rr,Hn+=m,le(Hn+="ET"),g[Nt]=!0,Ar};var Rl=h.__private__.clip=h.clip=function(m){return le(m==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Rl("evenodd")},h.__private__.discardPath=h.discardPath=function(){return le("n"),this};var vi=h.__private__.isValidStyle=function(m){var R=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(R=!0),R};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(m){return vi(m)&&(c=m),this};var i0=h.__private__.getStyle=h.getStyle=function(m){var R=c;switch(m){case"D":case"S":R="S";break;case"F":R="f";break;case"FD":case"DF":R="B";break;case"f":case"f*":case"B":case"B*":R=m}return R},a0=h.close=function(){return le("h"),this};h.stroke=function(){return le("S"),this},h.fill=function(m){return es("f",m),this},h.fillEvenOdd=function(m){return es("f*",m),this},h.fillStroke=function(m){return es("B",m),this},h.fillStrokeEvenOdd=function(m){return es("B*",m),this};var es=function(m,R){Wt(R)==="object"?Ml(R,m):le(m)},Hs=function(m){m===null||A===S.ADVANCED&&m===void 0||(m=i0(m),le(m))};function Dl(m,R,se,de,ye){var Ce=new Ra(R||this.boundingBox,se||this.xStep,de||this.yStep,this.gState,ye||this.matrix);Ce.stream=this.stream;var ze=m+"$$"+this.cloneIndex+++"$$";return $r(ze,Ce),Ce}var Ml=function(m,R){var se=pi[m.key],de=It[se];if(de instanceof ha)le("q"),le(Bl(R)),de.gState&&h.setGState(de.gState),le(m.matrix.toString()+" cm"),le("/"+se+" sh"),le("Q");else if(de instanceof Ra){var ye=new ht(1,0,0,-1,0,$i());m.matrix&&(ye=ye.multiply(m.matrix||pn),se=Dl.call(de,m.key,m.boundingBox,m.xStep,m.yStep,ye).id),le("q"),le("/Pattern cs"),le("/"+se+" scn"),de.gState&&h.setGState(de.gState),le(R),le("Q")}},Bl=function(m){switch(m){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"}},qs=h.moveTo=function(m,R){return le(F(T(m))+" "+F(Y(R))+" m"),this},Sa=h.lineTo=function(m,R){return le(F(T(m))+" "+F(Y(R))+" l"),this},Yi=h.curveTo=function(m,R,se,de,ye,Ce){return le([F(T(m)),F(Y(R)),F(T(se)),F(Y(de)),F(T(ye)),F(Y(Ce)),"c"].join(" ")),this};h.__private__.line=h.line=function(m,R,se,de,ye){if(isNaN(m)||isNaN(R)||isNaN(se)||isNaN(de)||!vi(ye))throw new Error("Invalid arguments passed to jsPDF.line");return A===S.COMPAT?this.lines([[se-m,de-R]],m,R,[1,1],ye||"S"):this.lines([[se-m,de-R]],m,R,[1,1]).stroke()},h.__private__.lines=h.lines=function(m,R,se,de,ye,Ce){var ze,it,ct,_t,yt,Ot,fr,ur,Ar,Jr,Rr,ti;if(typeof m=="number"&&(ti=se,se=R,R=m,m=ti),de=de||[1,1],Ce=Ce||!1,isNaN(R)||isNaN(se)||!Array.isArray(m)||!Array.isArray(de)||!vi(ye)||typeof Ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(qs(R,se),ze=de[0],it=de[1],_t=m.length,Jr=R,Rr=se,ct=0;ct<_t;ct++)(yt=m[ct]).length===2?(Jr=yt[0]*ze+Jr,Rr=yt[1]*it+Rr,Sa(Jr,Rr)):(Ot=yt[0]*ze+Jr,fr=yt[1]*it+Rr,ur=yt[2]*ze+Jr,Ar=yt[3]*it+Rr,Jr=yt[4]*ze+Jr,Rr=yt[5]*it+Rr,Yi(Ot,fr,ur,Ar,Jr,Rr));return Ce&&a0(),Hs(ye),this},h.path=function(m){for(var R=0;R<m.length;R++){var se=m[R],de=se.c;switch(se.op){case"m":qs(de[0],de[1]);break;case"l":Sa(de[0],de[1]);break;case"c":Yi.apply(this,de);break;case"h":a0()}}return this},h.__private__.rect=h.rect=function(m,R,se,de,ye){if(isNaN(m)||isNaN(R)||isNaN(se)||isNaN(de)||!vi(ye))throw new Error("Invalid arguments passed to jsPDF.rect");return A===S.COMPAT&&(de=-de),le([F(T(m)),F(Y(R)),F(T(se)),F(T(de)),"re"].join(" ")),Hs(ye),this},h.__private__.triangle=h.triangle=function(m,R,se,de,ye,Ce,ze){if(isNaN(m)||isNaN(R)||isNaN(se)||isNaN(de)||isNaN(ye)||isNaN(Ce)||!vi(ze))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[se-m,de-R],[ye-se,Ce-de],[m-ye,R-Ce]],m,R,[1,1],ze,!0),this},h.__private__.roundedRect=h.roundedRect=function(m,R,se,de,ye,Ce,ze){if(isNaN(m)||isNaN(R)||isNaN(se)||isNaN(de)||isNaN(ye)||isNaN(Ce)||!vi(ze))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var it=4/3*(Math.SQRT2-1);return ye=Math.min(ye,.5*se),Ce=Math.min(Ce,.5*de),this.lines([[se-2*ye,0],[ye*it,0,ye,Ce-Ce*it,ye,Ce],[0,de-2*Ce],[0,Ce*it,-ye*it,Ce,-ye,Ce],[2*ye-se,0],[-ye*it,0,-ye,-Ce*it,-ye,-Ce],[0,2*Ce-de],[0,-Ce*it,ye*it,-Ce,ye,-Ce]],m+ye,R,[1,1],ze,!0),this},h.__private__.ellipse=h.ellipse=function(m,R,se,de,ye){if(isNaN(m)||isNaN(R)||isNaN(se)||isNaN(de)||!vi(ye))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ce=4/3*(Math.SQRT2-1)*se,ze=4/3*(Math.SQRT2-1)*de;return qs(m+se,R),Yi(m+se,R-ze,m+Ce,R-de,m,R-de),Yi(m-Ce,R-de,m-se,R-ze,m-se,R),Yi(m-se,R+ze,m-Ce,R+de,m,R+de),Yi(m+Ce,R+de,m+se,R+ze,m+se,R),Hs(ye),this},h.__private__.circle=h.circle=function(m,R,se,de){if(isNaN(m)||isNaN(R)||isNaN(se)||!vi(de))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,R,se,se,de)},h.setFont=function(m,R,se){return se&&(R=K(R,se)),Nt=t0(m,R,{disableWarning:!1}),this};var jl=h.__private__.getFont=h.getFont=function(){return Ut[t0.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var m,R,se={};for(m in tr)if(tr.hasOwnProperty(m))for(R in se[m]=[],tr[m])tr[m].hasOwnProperty(R)&&se[m].push(R);return se},h.addFont=function(m,R,se,de,ye){var Ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ce.indexOf(arguments[3])!==-1?ye=arguments[3]:arguments[3]&&Ce.indexOf(arguments[3])==-1&&(se=K(se,de)),ye=ye||"Identity-H",Us.call(this,m,R,se,ye)};var Aa,Vs=e.lineWidth||.200025,ts=h.__private__.getLineWidth=h.getLineWidth=function(){return Vs},s0=h.__private__.setLineWidth=h.setLineWidth=function(m){return Vs=m,le(F(T(m))+" w"),this};h.__private__.setLineDash=ut.API.setLineDash=ut.API.setLineDashPattern=function(m,R){if(m=m||[],R=R||0,isNaN(R)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map((function(se){return F(T(se))})).join(" "),R=F(T(R)),le("["+m+"] "+R+" d"),this};var o0=h.__private__.getLineHeight=h.getLineHeight=function(){return Ve*Aa};h.__private__.getLineHeight=h.getLineHeight=function(){return Ve*Aa};var l0=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(Aa=m),this},f0=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Aa};l0(e.lineHeight);var xi=h.__private__.getHorizontalCoordinate=function(m){return T(m)},ki=h.__private__.getVerticalCoordinate=function(m){return A===S.ADVANCED?m:xt[L].mediaBox.topRightY-xt[L].mediaBox.bottomLeftY-T(m)},Ul=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(m){return F(xi(m))},Xi=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(m){return F(ki(m))},ei=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return re(ei)},h.__private__.setStrokeColor=h.setDrawColor=function(m,R,se,de){return ei=ae({ch1:m,ch2:R,ch3:se,ch4:de,pdfColorType:"draw",precision:2}),le(ei),this};var Gs=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return re(Gs)},h.__private__.setFillColor=h.setFillColor=function(m,R,se,de){return Gs=ae({ch1:m,ch2:R,ch3:se,ch4:de,pdfColorType:"fill",precision:2}),le(Gs),this};var Ta=e.textColor||"0 g",zl=h.__private__.getTextColor=h.getTextColor=function(){return re(Ta)};h.__private__.setTextColor=h.setTextColor=function(m,R,se,de){return Ta=ae({ch1:m,ch2:R,ch3:se,ch4:de,pdfColorType:"text",precision:3}),this};var rs=e.charSpace,Wl=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(rs||0)};h.__private__.setCharSpace=h.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return rs=m,this};var Ys=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(m){var R=h.CapJoinStyles[m];if(R===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ys=R,le(R+" J"),this};var Xs=0;h.__private__.setLineJoin=h.setLineJoin=function(m){var R=h.CapJoinStyles[m];if(R===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xs=R,le(R+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(F(T(m))+" M"),this},h.GState=Do,h.setGState=function(m){(m=typeof m=="string"?ar[An[m]]:c0(null,m)).equals(Kn)||(le("/"+m.id+" gs"),Kn=m)};var c0=function(m,R){if(!m||!An[m]){var se=!1;for(var de in ar)if(ar.hasOwnProperty(de)&&ar[de].equals(R)){se=!0;break}if(se)R=ar[de];else{var ye="GS"+(Object.keys(ar).length+1).toString(10);ar[ye]=R,R.id=ye}return m&&(An[m]=R.id),Dt.publish("addGState",R),R}};h.addGState=function(m,R){return c0(m,R),this},h.saveGraphicsState=function(){return le("q"),Mn.push({key:Nt,size:Ve,color:Ta}),this},h.restoreGraphicsState=function(){le("Q");var m=Mn.pop();return Nt=m.key,Ve=m.size,Ta=m.color,Kn=null,this},h.setCurrentTransformationMatrix=function(m){return le(m.toString()+" cm"),this},h.comment=function(m){return le("#"+m),this};var ns=function(m,R){var se=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return se},set:function(Ce){isNaN(Ce)||(se=parseFloat(Ce))}});var de=R||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return de},set:function(Ce){isNaN(Ce)||(de=parseFloat(Ce))}});var ye="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ye},set:function(Ce){ye=Ce.toString()}}),this},$s=function(m,R,se,de){ns.call(this,m,R),this.type="rect";var ye=se||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ye},set:function(ze){isNaN(ze)||(ye=parseFloat(ze))}});var Ce=de||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ce},set:function(ze){isNaN(ze)||(Ce=parseFloat(ze))}}),this},Ks=function(){this.page=Zt,this.currentPage=L,this.pages=Pe.slice(0),this.pagesContext=xt.slice(0),this.x=Cr,this.y=Pt,this.matrix=dn,this.width=Na(L),this.height=$i(L),this.outputDestination=He,this.id="",this.objectNumber=-1};Ks.prototype.restore=function(){Zt=this.page,L=this.currentPage,xt=this.pagesContext,Pe=this.pages,Cr=this.x,Pt=this.y,dn=this.matrix,Js(L,this.width),Zs(L,this.height),He=this.outputDestination};var u0=function(m,R,se,de,ye){jn.push(new Ks),Zt=L=0,Pe=[],Cr=m,Pt=R,dn=ye,zs([se,de])},Hl=function(m){if(Bn[m])jn.pop().restore();else{var R=new Ks,se="Xo"+(Object.keys(kr).length+1).toString(10);R.id=se,Bn[m]=se,kr[se]=R,Dt.publish("addFormObject",R),jn.pop().restore()}};for(var is in h.beginFormObject=function(m,R,se,de,ye){return u0(m,R,se,de,ye),this},h.endFormObject=function(m){return Hl(m),this},h.doFormObject=function(m,R){var se=kr[Bn[m]];return le("q"),le(R.toString()+" cm"),le("/"+se.id+" Do"),le("Q"),this},h.getFormObject=function(m){var R=kr[Bn[m]];return{x:R.x,y:R.y,width:R.width,height:R.height,matrix:R.matrix}},h.save=function(m,R){return m=m||"generated.pdf",(R=R||{}).returnPromise=R.returnPromise||!1,R.returnPromise===!1?(Oa(Za(Ci()),m),typeof Oa.unload=="function"&&gt.setTimeout&&setTimeout(Oa.unload,911),this):new Promise((function(se,de){try{var ye=Oa(Za(Ci()),m);typeof Oa.unload=="function"&&gt.setTimeout&&setTimeout(Oa.unload,911),se(ye)}catch(Ce){de(Ce.message)}}))},ut.API)ut.API.hasOwnProperty(is)&&(is==="events"&&ut.API.events.length?(function(m,R){var se,de,ye;for(ye=R.length-1;ye!==-1;ye--)se=R[ye][0],de=R[ye][1],m.subscribe.apply(m,[se].concat(typeof de=="function"?[de]:de))})(Dt,ut.API.events):h[is]=ut.API[is]);var Na=h.getPageWidth=function(m){return(xt[m=m||L].mediaBox.topRightX-xt[m].mediaBox.bottomLeftX)/et},Js=h.setPageWidth=function(m,R){xt[m].mediaBox.topRightX=R*et+xt[m].mediaBox.bottomLeftX},$i=h.getPageHeight=function(m){return(xt[m=m||L].mediaBox.topRightY-xt[m].mediaBox.bottomLeftY)/et},Zs=h.setPageHeight=function(m,R){xt[m].mediaBox.topRightY=R*et+xt[m].mediaBox.bottomLeftY};return h.internal={pdfEscape:gn,getStyle:i0,getFont:jl,getFontSize:Ze,getCharSpace:Wl,getTextColor:zl,getLineHeight:o0,getLineHeightFactor:f0,getLineWidth:ts,write:Me,getHorizontalCoordinate:xi,getVerticalCoordinate:ki,getCoordinateString:Ul,getVerticalCoordinateString:Xi,collections:{},newObject:mr,newAdditionalObject:ne,newObjectDeferred:cr,newObjectDeferredBegin:j,getFilters:_e,putStream:Le,events:Dt,scaleFactor:et,pageSize:{getWidth:function(){return Na(L)},setWidth:function(m){Js(L,m)},getHeight:function(){return $i(L)},setHeight:function(m){Zs(L,m)}},encryptionOptions:u,encryption:Kr,getEncryptor:Ol,output:Qa,getNumberOfPages:Ll,pages:Pe,out:le,f2:V,f3:E,getPageInfo:n0,getPageInfoByObjId:wt,getCurrentPageInfo:Il,getPDFVersion:v,Point:ns,Rectangle:$s,Matrix:ht,hasHotfix:r0},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return Na(L)},set:function(m){Js(L,m)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return $i(L)},set:function(m){Zs(L,m)},enumerable:!0,configurable:!0}),Nl.call(h,Ue),Nt="F1",Qo(i,t),Dt.publish("initialized"),h}As.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},As.prototype.toHexString=function(e){return e.split("").map((function(r){return("0"+(255&r.charCodeAt(0)).toString(16)).slice(-2)})).join("")},As.prototype.hexToBytes=function(e){for(var r=[],t=0;t<e.length;t+=2)r.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return r.join("")},As.prototype.processOwnerPassword=function(e,r){return Df(Rf(r).substr(0,5),e)},As.prototype.encryptor=function(e,r){var t=Rf(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&r,r>>8&255)).substr(0,10);return function(n){return Df(t,n)}},Do.prototype.equals=function(e){var r,t="id,objectNumber,equals";if(!e||Wt(e)!==Wt(this))return!1;var n=0;for(r in this)if(!(t.indexOf(r)>=0)){if(this.hasOwnProperty(r)&&!e.hasOwnProperty(r)||this[r]!==e[r])return!1;n++}for(r in e)e.hasOwnProperty(r)&&t.indexOf(r)<0&&n--;return n===0},ut.API={events:[]},ut.version="2.5.2";var dr=ut.API,Xf=1,Va=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ws=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},bt=function(e){return e.toFixed(2)},ca=function(e){return e.toFixed(5)};dr.__acroform__={};var Sn=function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e},tu=function(e){return e*Xf},bi=function(e){var r=new Th,t=ot.internal.getHeight(e)||0,n=ot.internal.getWidth(e)||0;return r.BBox=[0,0,Number(bt(n)),Number(bt(t))],r},ap=dr.__acroform__.setBit=function(e,r){if(e=e||0,r=r||0,isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<r},sp=dr.__acroform__.clearBit=function(e,r){if(e=e||0,r=r||0,isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<r)},op=dr.__acroform__.getBit=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<r)==0?0:1},yr=dr.__acroform__.getBitForPdf=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return op(e,r-1)},br=dr.__acroform__.setBitForPdf=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return ap(e,r-1)},_r=dr.__acroform__.clearBitForPdf=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return sp(e,r-1)},lp=dr.__acroform__.calculateCoordinates=function(e,r){var t=r.internal.getHorizontalCoordinate,n=r.internal.getVerticalCoordinate,i=e[0],a=e[1],s=e[2],o=e[3],f={};return f.lowerLeft_X=t(i)||0,f.lowerLeft_Y=n(a+o)||0,f.upperRight_X=t(i+s)||0,f.upperRight_Y=n(a)||0,[Number(bt(f.lowerLeft_X)),Number(bt(f.lowerLeft_Y)),Number(bt(f.upperRight_X)),Number(bt(f.upperRight_Y))]},fp=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var r=[],t=e._V||e.DV,n=Mf(e,t),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;r.push("/Tx BMC"),r.push("q"),r.push("BT"),r.push(e.scope.__private__.encodeColorString(e.color)),r.push("/"+i+" "+bt(n.fontSize)+" Tf"),r.push("1 0 0 1 0 0 Tm"),r.push(n.text),r.push("ET"),r.push("Q"),r.push("EMC");var a=bi(e);return a.scope=e.scope,a.stream=r.join(`
101
+ `),a}},Mf=function(e,r){var t=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(r=(r=r.substr(0,1)=="("?r.substr(1):r).substr(r.length-1)==")"?r.substr(0,r.length-1):r).split(" ");i=e.multiline?i.map((function(E){return E.split(`
102
+ `)})):i.map((function(E){return[E]}));var a=t,s=ot.internal.getHeight(e)||0;s=s<0?-s:s;var o=ot.internal.getWidth(e)||0;o=o<0?-o:o;var f=function(E,T,z){if(E+1<i.length){var Y=T+" "+i[E+1][0];return B0(Y,e,z).width<=o-4}return!1};a++;e:for(;a>0;){r="",a--;var c,u,p=B0("3",e,a).height,g=e.multiline?s-a:(s-p)/2,h=g+=2,w=0,v=0,b=0;if(a<=0){r=`(...) Tj
103
+ `,r+="% Width of Text: "+B0(r,e,a=12).width+", FieldWidth:"+o+`
104
+ `;break}for(var _="",S=0,A=0;A<i.length;A++)if(i.hasOwnProperty(A)){var k=!1;if(i[A].length!==1&&b!==i[A].length-1){if((p+2)*(S+2)+2>s)continue e;_+=i[A][b],k=!0,v=A,A--}else{_=(_+=i[A][b]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var M=parseInt(A),K=f(M,_,a),F=A>=i.length-1;if(K&&!F){_+=" ",b=0;continue}if(K||F){if(F)v=M;else if(e.multiline&&(p+2)*(S+2)+2>s)continue e}else{if(!e.multiline||(p+2)*(S+2)+2>s)continue e;v=M}}for(var P="",D=w;D<=v;D++){var V=i[D];if(e.multiline){if(D===v){P+=V[b]+" ",b=(b+1)%V.length;continue}if(D===w){P+=V[V.length-1]+" ";continue}}P+=V[0]+" "}switch(P=P.substr(P.length-1)==" "?P.substr(0,P.length-1):P,u=B0(P,e,a).width,e.textAlign){case"right":c=o-u-2;break;case"center":c=(o-u)/2;break;case"left":default:c=2}r+=bt(c)+" "+bt(h)+` Td
105
+ `,r+="("+Va(P)+`) Tj
106
+ `,r+=-bt(c)+` 0 Td
107
+ `,h=-(a+2),u=0,w=k?v:v+1,S++,_=""}break}return n.text=r,n.fontSize=a,n},B0=function(e,r,t){var n=r.scope.internal.getFont(r.fontName,r.fontStyle),i=r.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:r.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},cp={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},up=function(e,r){var t={type:"reference",object:e};r.internal.getPageInfo(e.page).pageContext.annotations.find((function(n){return n.type===t.type&&n.object===t.object}))===void 0&&r.internal.getPageInfo(e.page).pageContext.annotations.push(t)},hp=function(e,r){for(var t in e)if(e.hasOwnProperty(t)){var n=t,i=e[t];r.internal.newObjectDeferredBegin(i.objId,!0),Wt(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},dp=function(e,r){if(r.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(hi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(cp)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xf=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Nh,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)})),e.internal.events.subscribe("buildDocument",(function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&up(a,t)}})(e)})),e.internal.events.subscribe("putCatalog",(function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)})),e.internal.events.subscribe("postPutPages",(function(t){(function(n,i){var a=!n;for(var s 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(s)){var o=n[s],f=[],c=o.Rect;if(o.Rect&&(o.Rect=lp(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=ot.createDefaultAppearanceStream(o),Wt(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(f=o.getKeyValueListForStream()),o.Rect=c,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=fp(o);f.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var p="";for(var g in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(g)){var h=o.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var s in h)if(h.hasOwnProperty(s)){var w=h[s];typeof w=="function"&&(w=w.call(i,o)),p+="/"+s+" "+w+" ",i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w)}}else typeof(w=h)=="function"&&(w=w.call(i,o)),p+="/"+s+" "+w,i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w);p+=">>"}f.push({key:"AP",value:`<<
108
+ `+p+">>"})}i.internal.putStream({additionalKeyValues:f,objectId:o.objId}),i.internal.out("endobj")}a&&hp(i.internal.acroformPlugin.xForms,i)})(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},Ah=dr.__acroform__.arrayToPdfArray=function(e,r,t){var n=function(s){return s};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),Wt(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(r!==void 0&&t&&(n=t.internal.getEncryptor(r)),i+="("+Va(n(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},mf=function(e,r,t){var n=function(i){return i};return r!==void 0&&t&&(n=t.internal.getEncryptor(r)),(e=e||"").toString(),e="("+Va(n(e))+")"},Ai=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})};Ai.prototype.toString=function(){return this.objId+" 0 R"},Ai.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ai.prototype.getKeyValueListForStream=function(){var e=[],r=Object.getOwnPropertyNames(this).filter((function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"}));for(var t in r)if(Object.getOwnPropertyDescriptor(this,r[t]).configurable===!1){var n=r[t],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:Ah(i,this.objId,this.scope)}):i instanceof Ai?(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 Th=function(){Ai.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,r=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Sn(Th,Ai);var Nh=function(){Ai.call(this);var e,r=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return r.length>0?r:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return r}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Va(t(e))+")"}},set:function(t){e=t}})};Sn(Nh,Ai);var hi=function e(){Ai.call(this);var r=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return r},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');r=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!yr(r,3)},set:function(_){_?this.F=br(r,3):this.F=_r(r,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');t=_}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(_){n=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(_){n[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(_){n[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(_){n[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(_){n[3]=_}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=_;break;default:throw new Error('Invalid value "'+_+'" 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 J0)return;a="FieldObject"+e.FieldNum++}var _=function(S){return S};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Va(_(a))+")"},set:function(_){a=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(_){a=_}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(_){s=_}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(_){o=_}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(_){f=_}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Xf:c},set:function(_){c=_}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(_){u=_}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof J0||this instanceof ma))return mf(p,this.objId,this.scope)},set:function(_){_=_.toString(),p=_}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Ir?g:mf(g,this.objId,this.scope)},set:function(_){_=_.toString(),g=this instanceof Ir?_:_.substr(0,1)==="("?ws(_.substr(1,_.length-2)):ws(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ir?ws(g.substr(1,g.length-1)):g},set:function(_){_=_.toString(),g=this instanceof Ir?"/"+_:_}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Ir?h:mf(h,this.objId,this.scope)},set:function(_){_=_.toString(),h=this instanceof Ir?_:_.substr(0,1)==="("?ws(_.substr(1,_.length-2)):ws(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ir?ws(h.substr(1,h.length-1)):h},set:function(_){_=_.toString(),h=this instanceof Ir?"/"+_:_}}),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 w,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(_){_=!!_,v=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(_){w=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,1)},set:function(_){_?this.Ff=br(this.Ff,1):this.Ff=_r(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,2)},set:function(_){_?this.Ff=br(this.Ff,2):this.Ff=_r(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,3)},set:function(_){_?this.Ff=br(this.Ff,3):this.Ff=_r(this.Ff,3)}});var b=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(b!==null)return b},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');b=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(b){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:b=2;break;case"center":case 1:b=1;break;case"left":case 0:default:b=0}}})};Sn(hi,Ai);var Da=function(){hi.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(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var r=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ah(r,this.objId,this.scope)},set:function(t){var n,i;i=[],typeof(n=t)=="string"&&(i=(function(a,s,o){o||(o=1);for(var f,c=[];f=s.exec(a);)c.push(f[o]);return c})(n,/\((.*?)\)/g)),r=i}}),this.getOptions=function(){return r},this.setOptions=function(t){r=t,this.sort&&r.sort()},this.addOption=function(t){t=(t=t||"").toString(),r.push(t),this.sort&&r.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();r.indexOf(t)!==-1&&(r.splice(r.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,18)},set:function(t){t?this.Ff=br(this.Ff,18):this.Ff=_r(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=br(this.Ff,19):this.Ff=_r(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,20)},set:function(t){t?(this.Ff=br(this.Ff,20),r.sort()):this.Ff=_r(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,22)},set:function(t){t?this.Ff=br(this.Ff,22):this.Ff=_r(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,23)},set:function(t){t?this.Ff=br(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,27)},set:function(t){t?this.Ff=br(this.Ff,27):this.Ff=_r(this.Ff,27)}}),this.hasAppearanceStream=!1};Sn(Da,hi);var Ma=function(){Da.call(this),this.fontName="helvetica",this.combo=!1};Sn(Ma,Da);var Ba=function(){Ma.call(this),this.combo=!0};Sn(Ba,Ma);var To=function(){Ba.call(this),this.edit=!0};Sn(To,Ba);var Ir=function(){hi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,15)},set:function(t){t?this.Ff=br(this.Ff,15):this.Ff=_r(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,16)},set:function(t){t?this.Ff=br(this.Ff,16):this.Ff=_r(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,17)},set:function(t){t?this.Ff=br(this.Ff,17):this.Ff=_r(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,26)},set:function(t){t?this.Ff=br(this.Ff,26):this.Ff=_r(this.Ff,26)}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(r).length!==0){var n,i=[];for(n in i.push("<<"),r)i.push("/"+n+" ("+Va(t(r[n]))+")");return i.push(">>"),i.join(`
109
+ `)}},set:function(t){Wt(t)==="object"&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){typeof t=="string"&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Sn(Ir,hi);var No=function(){Ir.call(this),this.pushButton=!0};Sn(No,Ir);var ja=function(){Ir.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r!==void 0?r:[]}})};Sn(ja,Ir);var J0=function(){var e,r;hi.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 r},set:function(i){r=i}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,s=[];for(a in s.push("<<"),n)s.push("/"+a+" ("+Va(i(n[a]))+")");return s.push(">>"),s.join(`
110
+ `)},set:function(i){Wt(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 t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ot.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Sn(J0,hi),ja.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 r in this.Kids)if(this.Kids.hasOwnProperty(r)){var t=this.Kids[r];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},ja.prototype.createOption=function(e){var r=new J0;return r.Parent=this,r.optionName=e,this.Kids.push(r),pp.call(this.scope,r),r};var Eo=function(){Ir.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ot.CheckBox.createAppearanceStream()};Sn(Eo,Ir);var ma=function(){hi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,13)},set:function(r){r?this.Ff=br(this.Ff,13):this.Ff=_r(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,21)},set:function(r){r?this.Ff=br(this.Ff,21):this.Ff=_r(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,23)},set:function(r){r?this.Ff=br(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,24)},set:function(r){r?this.Ff=br(this.Ff,24):this.Ff=_r(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,25)},set:function(r){r?this.Ff=br(this.Ff,25):this.Ff=_r(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,26)},set:function(r){r?this.Ff=br(this.Ff,26):this.Ff=_r(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){Number.isInteger(r)&&(e=r)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Sn(ma,hi);var Lo=function(){ma.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,14)},set:function(e){e?this.Ff=br(this.Ff,14):this.Ff=_r(this.Ff,14)}}),this.password=!0};Sn(Lo,ma);var ot={CheckBox:{createAppearanceStream:function(){return{N:{On:ot.CheckBox.YesNormal},D:{On:ot.CheckBox.YesPushDown,Off:ot.CheckBox.OffPushDown}}},YesPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=Mf(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+bt(ot.internal.getWidth(e))+" "+bt(ot.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+bt(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),r.stream=t.join(`
111
+ `),r},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=ot.internal.getHeight(e),s=ot.internal.getWidth(e),o=Mf(e,e.caption);return i.push("1 g"),i.push("0 0 "+bt(s)+" "+bt(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+bt(s-1)+" "+bt(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+bt(o.fontSize)+" Tf "+n),i.push(o.text),i.push("ET"),i.push("Q"),r.stream=i.join(`
112
+ `),r},OffPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+bt(ot.internal.getWidth(e))+" "+bt(ot.internal.getHeight(e))+" re"),t.push("f"),r.stream=t.join(`
113
+ `),r}},RadioButton:{Circle:{createAppearanceStream:function(e){var r={D:{Off:ot.RadioButton.Circle.OffPushDown},N:{}};return r.N[e]=ot.RadioButton.Circle.YesNormal,r.D[e]=ot.RadioButton.Circle.YesPushDown,r},getCA:function(){return"l"},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.getWidth(e)<=ot.internal.getHeight(e)?ot.internal.getWidth(e)/4:ot.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=ot.internal.Bezier_C,a=Number((n*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),t.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),t.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),t.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),t.push("f"),t.push("Q"),r.stream=t.join(`
114
+ `),r},YesPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.getWidth(e)<=ot.internal.getHeight(e)?ot.internal.getWidth(e)/4:ot.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ot.internal.Bezier_C).toFixed(5)),s=Number((n*ot.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),t.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),t.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),t.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),t.push("f"),t.push("Q"),r.stream=t.join(`
115
+ `),r},OffPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.getWidth(e)<=ot.internal.getHeight(e)?ot.internal.getWidth(e)/4:ot.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ot.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),r.stream=t.join(`
116
+ `),r}},Cross:{createAppearanceStream:function(e){var r={D:{Off:ot.RadioButton.Cross.OffPushDown},N:{}};return r.N[e]=ot.RadioButton.Cross.YesNormal,r.D[e]=ot.RadioButton.Cross.YesPushDown,r},getCA:function(){return"8"},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+bt(ot.internal.getWidth(e)-2)+" "+bt(ot.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(bt(n.x1.x)+" "+bt(n.x1.y)+" m"),t.push(bt(n.x2.x)+" "+bt(n.x2.y)+" l"),t.push(bt(n.x4.x)+" "+bt(n.x4.y)+" m"),t.push(bt(n.x3.x)+" "+bt(n.x3.y)+" l"),t.push("s"),t.push("Q"),r.stream=t.join(`
117
+ `),r},YesPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=ot.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+bt(ot.internal.getWidth(e))+" "+bt(ot.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+bt(ot.internal.getWidth(e)-2)+" "+bt(ot.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(bt(t.x1.x)+" "+bt(t.x1.y)+" m"),n.push(bt(t.x2.x)+" "+bt(t.x2.y)+" l"),n.push(bt(t.x4.x)+" "+bt(t.x4.y)+" m"),n.push(bt(t.x3.x)+" "+bt(t.x3.y)+" l"),n.push("s"),n.push("Q"),r.stream=n.join(`
118
+ `),r},OffPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+bt(ot.internal.getWidth(e))+" "+bt(ot.internal.getHeight(e))+" re"),t.push("f"),r.stream=t.join(`
119
+ `),r}}},createDefaultAppearanceStream:function(e){var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+r+" "+e.fontSize+" Tf "+t}};ot.internal={Bezier_C:.551915024494,calculateCross:function(e){var r=ot.internal.getWidth(e),t=ot.internal.getHeight(e),n=Math.min(r,t);return{x1:{x:(r-n)/2,y:(t-n)/2+n},x2:{x:(r-n)/2+n,y:(t-n)/2},x3:{x:(r-n)/2,y:(t-n)/2},x4:{x:(r-n)/2+n,y:(t-n)/2+n}}}},ot.internal.getWidth=function(e){var r=0;return Wt(e)==="object"&&(r=tu(e.Rect[2])),r},ot.internal.getHeight=function(e){var r=0;return Wt(e)==="object"&&(r=tu(e.Rect[3])),r};var pp=dr.addField=function(e){if(dp(this,e),!(e instanceof hi))throw new Error("Invalid argument passed to jsPDF.addField.");var r;return(r=e).scope.internal.acroformPlugin.printedOut&&(r.scope.internal.acroformPlugin.printedOut=!1,r.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),r.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(r),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};dr.AcroFormChoiceField=Da,dr.AcroFormListBox=Ma,dr.AcroFormComboBox=Ba,dr.AcroFormEditBox=To,dr.AcroFormButton=Ir,dr.AcroFormPushButton=No,dr.AcroFormRadioButton=ja,dr.AcroFormCheckBox=Eo,dr.AcroFormTextField=ma,dr.AcroFormPasswordField=Lo,dr.AcroFormAppearance=ot,dr.AcroForm={ChoiceField:Da,ListBox:Ma,ComboBox:Ba,EditBox:To,Button:Ir,PushButton:No,RadioButton:ja,CheckBox:Eo,TextField:ma,PasswordField:Lo,Appearance:ot},ut.AcroForm={ChoiceField:Da,ListBox:Ma,ComboBox:Ba,EditBox:To,Button:Ir,PushButton:No,RadioButton:ja,CheckBox:Eo,TextField:ma,PasswordField:Lo,Appearance:ot};var gp=ut.AcroForm;function Eh(e){return e.reduce((function(r,t,n){return r[t]=n,r}),{})}(function(e){e.__addimage__={};var r="UNKNOWN",t={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(E,T){var z,Y,ue,Q,J,oe=r;if((T=T||r)==="RGBA"||E.data!==void 0&&E.data instanceof Uint8ClampedArray&&"height"in E&&"width"in E)return"RGBA";if(K(E))for(J in t)for(ue=t[J],z=0;z<ue.length;z+=1){for(Q=!0,Y=0;Y<ue[z].length;Y+=1)if(ue[z][Y]!==void 0&&ue[z][Y]!==E[Y]){Q=!1;break}if(Q===!0){oe=J;break}}else for(J in t)for(ue=t[J],z=0;z<ue.length;z+=1){for(Q=!0,Y=0;Y<ue[z].length;Y+=1)if(ue[z][Y]!==void 0&&ue[z][Y]!==E.charCodeAt(Y)){Q=!1;break}if(Q===!0){oe=J;break}}return oe===r&&T!==r&&(oe=T),oe},i=function E(T){for(var z=this.internal.write,Y=this.internal.putStream,ue=(0,this.internal.getFilters)();ue.indexOf("FlateEncode")!==-1;)ue.splice(ue.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var Q=[];if(Q.push({key:"Type",value:"/XObject"}),Q.push({key:"Subtype",value:"/Image"}),Q.push({key:"Width",value:T.width}),Q.push({key:"Height",value:T.height}),T.colorSpace===b.INDEXED?Q.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(Q.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===b.DEVICE_CMYK&&Q.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Q.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&Q.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)){for(var J="",oe=0,te=T.transparency.length;oe<te;oe++)J+=T.transparency[oe]+" "+T.transparency[oe]+" ";Q.push({key:"Mask",value:"["+J+"]"})}T.sMask!==void 0&&Q.push({key:"SMask",value:T.objectId+1+" 0 R"});var pe=T.filter!==void 0?["/"+T.filter]:void 0;if(Y({data:T.data,additionalKeyValues:Q,alreadyAppliedFilters:pe,objectId:T.objectId}),z("endobj"),"sMask"in T&&T.sMask!==void 0){var ie="/Predictor "+T.predictor+" /Colors 1 /BitsPerComponent "+T.bitsPerComponent+" /Columns "+T.width,y={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:T.bitsPerComponent,decodeParameters:ie,data:T.sMask};"filter"in T&&(y.filter=T.filter),E.call(this,y)}if(T.colorSpace===b.INDEXED){var L=this.internal.newObject();Y({data:P(new Uint8Array(T.palette)),objectId:L}),z("endobj")}},a=function(){var E=this.internal.collections.addImage_images;for(var T in E)i.call(this,E[T])},s=function(){var E,T=this.internal.collections.addImage_images,z=this.internal.write;for(var Y in T)z("/I"+(E=T[Y]).index,E.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},f=function(){var E=this.internal.collections.addImage_images;return o.call(this),E},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(E){return typeof e["process"+E.toUpperCase()]=="function"},p=function(E){return Wt(E)==="object"&&E.nodeType===1},g=function(E,T){if(E.nodeName==="IMG"&&E.hasAttribute("src")){var z=""+E.getAttribute("src");if(z.indexOf("data:image/")===0)return Ao(unescape(z).split("base64,").pop());var Y=e.loadFile(z,!0);if(Y!==void 0)return Y}if(E.nodeName==="CANVAS"){if(E.width===0||E.height===0)throw new Error("Given canvas must have data. Canvas width: "+E.width+", height: "+E.height);var ue;switch(T){case"PNG":ue="image/png";break;case"WEBP":ue="image/webp";break;case"JPEG":case"JPG":default:ue="image/jpeg"}return Ao(E.toDataURL(ue,1).split("base64,").pop())}},h=function(E){var T=this.internal.collections.addImage_images;if(T){for(var z in T)if(E===T[z].alias)return T[z]}},w=function(E,T,z){return E||T||(E=-96,T=-96),E<0&&(E=-1*z.width*72/E/this.internal.scaleFactor),T<0&&(T=-1*z.height*72/T/this.internal.scaleFactor),E===0&&(E=T*z.width/z.height),T===0&&(T=E*z.height/z.width),[E,T]},v=function(E,T,z,Y,ue,Q){var J=w.call(this,z,Y,ue),oe=this.internal.getCoordinateString,te=this.internal.getVerticalCoordinateString,pe=f.call(this);if(z=J[0],Y=J[1],pe[ue.index]=ue,Q){Q*=Math.PI/180;var ie=Math.cos(Q),y=Math.sin(Q),L=function(O){return O.toFixed(4)},C=[L(ie),L(y),L(-1*y),L(ie),0,0,"cm"]}this.internal.write("q"),Q?(this.internal.write([1,"0","0",1,oe(E),te(T+Y),"cm"].join(" ")),this.internal.write(C.join(" ")),this.internal.write([oe(z),"0","0",oe(Y),"0","0","cm"].join(" "))):this.internal.write([oe(z),"0","0",oe(Y),oe(E),te(T+Y),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ue.index+" Do"),this.internal.write("Q")},b=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 _=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=e.__addimage__.sHashCode=function(E){var T,z,Y=0;if(typeof E=="string")for(z=E.length,T=0;T<z;T++)Y=(Y<<5)-Y+E.charCodeAt(T),Y|=0;else if(K(E))for(z=E.byteLength/2,T=0;T<z;T++)Y=(Y<<5)-Y+E[T],Y|=0;return Y},A=e.__addimage__.validateStringAsBase64=function(E){(E=E||"").toString().trim();var T=!0;return E.length===0&&(T=!1),E.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(E.substr(0,E.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(E.substr(-2))===!1&&(T=!1),T},k=e.__addimage__.extractImageFromDataUrl=function(E){var T=(E=E||"").split("base64,"),z=null;if(T.length===2){var Y=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(T[0]);Array.isArray(Y)&&(z={mimeType:Y[1],charset:Y[2],data:T[1]})}return z},M=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(E){return M()&&E instanceof ArrayBuffer};var K=e.__addimage__.isArrayBufferView=function(E){return M()&&typeof Uint32Array<"u"&&(E instanceof Int8Array||E instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&E instanceof Uint8ClampedArray||E instanceof Int16Array||E instanceof Uint16Array||E instanceof Int32Array||E instanceof Uint32Array||E instanceof Float32Array||E instanceof Float64Array)},F=e.__addimage__.binaryStringToUint8Array=function(E){for(var T=E.length,z=new Uint8Array(T),Y=0;Y<T;Y++)z[Y]=E.charCodeAt(Y);return z},P=e.__addimage__.arrayBufferToBinaryString=function(E){for(var T="",z=K(E)?E:new Uint8Array(E),Y=0;Y<z.length;Y+=8192)T+=String.fromCharCode.apply(null,z.subarray(Y,Y+8192));return T};e.addImage=function(){var E,T,z,Y,ue,Q,J,oe,te;if(typeof arguments[1]=="number"?(T=r,z=arguments[1],Y=arguments[2],ue=arguments[3],Q=arguments[4],J=arguments[5],oe=arguments[6],te=arguments[7]):(T=arguments[1],z=arguments[2],Y=arguments[3],ue=arguments[4],Q=arguments[5],J=arguments[6],oe=arguments[7],te=arguments[8]),Wt(E=arguments[0])==="object"&&!p(E)&&"imageData"in E){var pe=E;E=pe.imageData,T=pe.format||T||r,z=pe.x||z||0,Y=pe.y||Y||0,ue=pe.w||pe.width||ue,Q=pe.h||pe.height||Q,J=pe.alias||J,oe=pe.compression||oe,te=pe.rotation||pe.angle||te}var ie=this.internal.getFilters();if(oe===void 0&&ie.indexOf("FlateEncode")!==-1&&(oe="SLOW"),isNaN(z)||isNaN(Y))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var y=D.call(this,E,T,J,oe);return v.call(this,z,Y,ue,Q,y,te),this};var D=function(E,T,z,Y){var ue,Q,J;if(typeof E=="string"&&n(E)===r){E=unescape(E);var oe=V(E,!1);(oe!==""||(oe=e.loadFile(E,!0))!==void 0)&&(E=oe)}if(p(E)&&(E=g(E,T)),T=n(E,T),!u(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((J=z)==null||J.length===0)&&(z=(function(te){return typeof te=="string"||K(te)?S(te):K(te.data)?S(te.data):null})(E)),(ue=h.call(this,z))||(M()&&(E instanceof Uint8Array||T==="RGBA"||(Q=E,E=F(E))),ue=this["process"+T.toUpperCase()](E,c.call(this),z,(function(te){return te&&typeof te=="string"&&(te=te.toUpperCase()),te in e.image_compression?te:_.NONE})(Y),Q)),!ue)throw new Error("An unknown error occurred whilst processing the image.");return ue},V=e.__addimage__.convertBase64ToBinaryString=function(E,T){var z;T=typeof T!="boolean"||T;var Y,ue="";if(typeof E=="string"){Y=(z=k(E))!==null?z.data:E;try{ue=Ao(Y)}catch(Q){if(T)throw A(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ue};e.getImageProperties=function(E){var T,z,Y="";if(p(E)&&(E=g(E)),typeof E=="string"&&n(E)===r&&((Y=V(E,!1))===""&&(Y=e.loadFile(E)||""),E=Y),z=n(E),!u(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(!M()||E instanceof Uint8Array||(E=F(E)),!(T=this["process"+z.toUpperCase()](E)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=z,T}})(ut.API),(function(e){var r=function(t){if(t!==void 0&&t!="")return!0};ut.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var n,i,a,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,p=0;p<c.length&&!u;p++)switch((n=c[p]).type){case"link":(r(n.options.url)||r(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var g=0;g<c.length;g++){n=c[g];var h=this.internal.pdfEscape,w=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),b=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(v.objId),S=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+h(_(n.contents))+")",a+=" /Popup "+b.objId+" 0 R",a+=" /P "+f.objId+" 0 R",a+=" /T ("+h(_(S))+") >>",v.content=a;var A=v.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+A,n.open&&(a+=" /Open true"),a+=" >>",b.content=a,this.internal.write(v.objId,"0 R",b.objId,"0 R");break;case"freetext":i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var k=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(w(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+k+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var M=this.annotations._nameMap[n.options.name];n.options.pageNumber=M.page,n.options.top=M.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(w(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 K=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+K+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var n=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":n.pageContext.annotations.push(t)}},e.link=function(t,n,i,a,s){var o=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:f(t),y:c(n),w:f(t+i),h:c(n+a)},options:s,type:"link"})},e.textWithLink=function(t,n,i,a){var s,o,f=this.getTextWidth(t),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){o=a.maxWidth;var u=this.splitTextToSize(t,o).length;s=Math.ceil(c*u)}else o=f,s=c;return this.text(t,n,i,a),i+=.2*c,a.align==="center"&&(n-=f/2),a.align==="right"&&(n-=f),this.link(n,i-c,o,s,a),f},e.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor}})(ut.API),(function(e){var r={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]},t={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(v){return r[v.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},o=e.__arabicParser__.isArabicEndLetter=function(v){return s(v)&&a(v)&&r[v.charCodeAt(0)].length<=2},f=e.__arabicParser__.isArabicAlfLetter=function(v){return s(v)&&i.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return s(v)&&a(v)&&r[v.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return s(v)&&a(v)&&r[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return s(v)&&a(v)&&r[v.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return s(v)&&a(v)&&r[v.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(v){var b=0,_=t,S="",A=0;for(b=0;b<v.length;b+=1)_[v.charCodeAt(b)]!==void 0?(A++,typeof(_=_[v.charCodeAt(b)])=="number"&&(S+=String.fromCharCode(_),_=t,A=0),b===v.length-1&&(_=t,S+=v.charAt(b-(A-1)),b-=A-1,A=0)):(_=t,S+=v.charAt(b-A),b-=A,A=0);return S};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&n[v.charCodeAt(0)]!==void 0};var g=e.__arabicParser__.getCorrectForm=function(v,b,_){return s(v)?a(v)===!1?-1:!c(v)||!s(b)&&!s(_)||!s(_)&&o(b)||o(v)&&!s(b)||o(v)&&f(b)||o(v)&&o(b)?0:u(v)&&s(b)&&!o(b)&&s(_)&&c(_)?3:o(v)||!s(_)?1:2:-1},h=function(v){var b=0,_=0,S=0,A="",k="",M="",K=(v=v||"").split("\\s+"),F=[];for(b=0;b<K.length;b+=1){for(F.push(""),_=0;_<K[b].length;_+=1)A=K[b][_],k=K[b][_-1],M=K[b][_+1],s(A)?(S=g(A,k,M),F[b]+=S!==-1?String.fromCharCode(r[A.charCodeAt(0)][S]):A):F[b]+=A;F[b]=p(F[b])}return F.join(" ")},w=e.__arabicParser__.processArabic=e.processArabic=function(){var v,b=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(b)){var S=0;for(_=[],S=0;S<b.length;S+=1)Array.isArray(b[S])?_.push([h(b[S][0]),b[S][1],b[S][2]]):_.push([h(b[S])]);v=_}else v=h(b);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",w])})(ut.API),ut.API.autoPrint=function(e){var r;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(){r=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 "+r+" 0 R")}))}return this},(function(e){var r=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(o){t=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(o){i=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(o){a=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};r.prototype.getContext=function(t,n){var i;if((t=t||"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},r.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new r,this.canvas.pdf=this}])})(ut.API),(function(e){var r={left:0,top:0,bottom:0,right:0},t=!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({},r),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 f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(v){p=v}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(v){g=v}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(v){w=v}}),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(f){return n.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},e.getTextDimensions=function(f,c){n.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),p=c.font||this.getFont(),g=c.scaleFactor||this.internal.scaleFactor,h=0,w=0,v=0,b=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var _=c.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce((function(A,k){return A.concat(b.splitTextToSize(k,_))}),[])):f=Array.isArray(f)?f:[f];for(var S=0;S<f.length;S++)h<(v=this.getStringUnitWidth(f[S],{font:p})*u)&&(h=v);return h!==0&&(w=f.length),{w:h/=g,h:Math.max((w*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/g,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var f=this.internal.__cell__.margins||r;return this.internal.__cell__.lastCell=new a(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var f;f=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,p=this.internal.__cell__.margins||r,g=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===f.lineNumber?(f.x=(c.x||0)+(c.width||0),f.y=c.y||0):c.y+c.height+f.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=p.top,h&&g&&(this.printHeaderRow(f.lineNumber,!0),f.y+=g[0].height)):f.y=c.y+c.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,t===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-u,f.y+u,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+u,{align:"center",baseline:"top",maxWidth:f.width-u-u}):this.text(f.text,f.x+u,f.y+u,{align:"left",baseline:"top",maxWidth:f.width-u-u})),this.internal.__cell__.lastCell=f,this};e.table=function(f,c,u,p,g){if(n.call(this),!u)throw new Error("No data for PDF table.");var h,w,v,b,_=[],S=[],A=[],k={},M={},K=[],F=[],P=(g=g||{}).autoSize||!1,D=g.printHeaders!==!1,V=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,E=g.margins||Object.assign({width:this.getPageWidth()},r),T=typeof g.padding=="number"?g.padding:3,z=g.headerBackgroundColor||"#c8c8c8",Y=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=D,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=Y,this.setFontSize(V),p==null)S=_=Object.keys(u[0]),A=_.map((function(){return"left"}));else if(Array.isArray(p)&&Wt(p[0])==="object")for(_=p.map((function(pe){return pe.name})),S=p.map((function(pe){return pe.prompt||pe.name||""})),A=p.map((function(pe){return pe.align||"left"})),h=0;h<p.length;h+=1)M[p[h].name]=p[h].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(S=_=p,A=_.map((function(){return"left"})));if(P||Array.isArray(p)&&typeof p[0]=="string")for(h=0;h<_.length;h+=1){for(k[b=_[h]]=u.map((function(pe){return pe[b]})),this.setFont(void 0,"bold"),K.push(this.getTextDimensions(S[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=k[b],this.setFont(void 0,"normal"),v=0;v<w.length;v+=1)K.push(this.getTextDimensions(w[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);M[b]=Math.max.apply(null,K)+T+T,K=[]}if(D){var ue={};for(h=0;h<_.length;h+=1)ue[_[h]]={},ue[_[h]].text=S[h],ue[_[h]].align=A[h];var Q=o.call(this,ue,M);F=_.map((function(pe){return new a(f,c,M[pe],Q,ue[pe].text,void 0,ue[pe].align)})),this.setTableHeaderRow(F),this.printHeaderRow(1,!1)}var J=p.reduce((function(pe,ie){return pe[ie.name]=ie.align,pe}),{});for(h=0;h<u.length;h+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:h,data:u[h]},this);var oe=o.call(this,u[h],M);for(v=0;v<_.length;v+=1){var te=u[h][_[v]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:h,col:v,data:te},this),s.call(this,new a(f,c,M[_[v]],oe,te,h+2,J[_[v]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=c,this};var o=function(f,c){var u=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(f).map((function(h){var w=f[h];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,c[h]-u-u)}),this).map((function(h){return this.getLineHeightFactor()*h.length*p/g+u+u}),this).reduce((function(h,w){return Math.max(h,w)}),0)};e.setTableHeaderRow=function(f){n.call(this),this.internal.__cell__.tableHeaderRow=f},e.printHeaderRow=function(f,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],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,g.push(u)),u.lineNumber=f;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,u),this.setTextColor(w)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),t=!1}})(ut.API);var Lh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Fh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Bf=Eh(Fh),Ch=[100,200,300,400,500,600,700,800,900],mp=Eh(Ch);function jf(e){var r=e.family.replace(/"|'/g,"").toLowerCase(),t=(function(a){return Lh[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 Bf[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:r,style:t,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:r,style:[i,t,n].join(" ")}}}function ru(e,r,t,n){var i;for(i=t;i>=0&&i<r.length;i+=n)if(e[r[i]])return e[r[i]];for(i=t;i>=0&&i<r.length;i-=n)if(e[r[i]])return e[r[i]]}var vp={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},nu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function iu(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function xp(e,r,t){for(var n=(t=t||{}).defaultFontFamily||"times",i=Object.assign({},vp,t.genericFontFamilies||{}),a=null,s=null,o=0;o<r.length;++o)if(i[(a=jf(r[o])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){s=e[a.family];break}if(!(s=s||e[n]))throw new Error("Could not find a font-family for the rule '"+iu(a)+"' and default family '"+n+"'.");if(s=(function(f,c){if(c[f])return c[f];var u=Bf[f],p=u<=Bf.normal?-1:1,g=ru(c,Fh,u,p);if(!g)throw new Error("Could not find a matching font-stretch value for "+f);return g})(a.stretch,s),s=(function(f,c){if(c[f])return c[f];for(var u=Lh[f],p=0;p<u.length;++p)if(c[u[p]])return c[u[p]];throw new Error("Could not find a matching font-style for "+f)})(a.style,s),!(s=(function(f,c){if(c[f])return c[f];if(f===400&&c[500])return c[500];if(f===500&&c[400])return c[400];var u=mp[f],p=ru(c,Ch,u,f<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+f);return p})(a.weight,s)))throw new Error("Failed to resolve a font for the rule '"+iu(a)+"'.");return s}function au(e){return e.trimLeft()}function wp(e,r){for(var t=0;t<e.length;){if(e.charAt(t)===r)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function yp(e){var r=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return r===null?null:[r[0],e.substring(r[0].length)]}var j0,su,ou,vf=["times"];(function(e){var r,t,n,i,a,s,o,f,c,u=function(y){return y=y||{},this.isStrokeTransparent=y.isStrokeTransparent||!1,this.strokeOpacity=y.strokeOpacity||1,this.strokeStyle=y.strokeStyle||"#000000",this.fillStyle=y.fillStyle||"#000000",this.isFillTransparent=y.isFillTransparent||!1,this.fillOpacity=y.fillOpacity||1,this.font=y.font||"10px sans-serif",this.textBaseline=y.textBaseline||"alphabetic",this.textAlign=y.textAlign||"left",this.lineWidth=y.lineWidth||1,this.lineJoin=y.lineJoin||"miter",this.lineCap=y.lineCap||"butt",this.path=y.path||[],this.transform=y.transform!==void 0?y.transform.clone():new f,this.globalCompositeOperation=y.globalCompositeOperation||"normal",this.globalAlpha=y.globalAlpha||1,this.clip_path=y.clip_path||[],this.currentPoint=y.currentPoint||new s,this.miterLimit=y.miterLimit||10,this.lastPoint=y.lastPoint||new s,this.lineDashOffset=y.lineDashOffset||0,this.lineDash=y.lineDash||[],this.margin=y.margin||[0,0,0,0],this.prevPageLastElemOffset=y.prevPageLastElemOffset||0,this.ignoreClearRect=typeof y.ignoreClearRect!="boolean"||y.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),r=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,f=this.internal.Matrix,c=new u}]);var p=function(y){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var L=y;Object.defineProperty(this,"pdf",{get:function(){return L}});var C=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return C},set:function(Ee){C=!!Ee}});var O=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return O},set:function(Ee){O=!!Ee}});var H=0;Object.defineProperty(this,"posX",{get:function(){return H},set:function(Ee){isNaN(Ee)||(H=Ee)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(Ee){isNaN(Ee)||(fe=Ee)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ee){var le;typeof Ee=="number"?le=[Ee,Ee,Ee,Ee]:((le=new Array(4))[0]=Ee[0],le[1]=Ee.length>=2?Ee[1]:le[0],le[2]=Ee.length>=3?Ee[2]:le[0],le[3]=Ee.length>=4?Ee[3]:le[1]),c.margin=le}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(Ee){ce=Ee}});var he=0;Object.defineProperty(this,"lastBreak",{get:function(){return he},set:function(Ee){he=Ee}});var we=[];Object.defineProperty(this,"pageBreaks",{get:function(){return we},set:function(Ee){we=Ee}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ee){Ee instanceof u&&(c=Ee)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ee){c.path=Ee}});var Pe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Pe},set:function(Ee){Pe=Ee}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ee){var le;le=g(Ee),this.ctx.fillStyle=le.style,this.ctx.isFillTransparent=le.a===0,this.ctx.fillOpacity=le.a,this.pdf.setFillColor(le.r,le.g,le.b,{a:le.a}),this.pdf.setTextColor(le.r,le.g,le.b,{a:le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ee){var le=g(Ee);this.ctx.strokeStyle=le.style,this.ctx.isStrokeTransparent=le.a===0,this.ctx.strokeOpacity=le.a,le.a===0?this.pdf.setDrawColor(255,255,255):(le.a,this.pdf.setDrawColor(le.r,le.g,le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ee){["butt","round","square"].indexOf(Ee)!==-1&&(this.ctx.lineCap=Ee,this.pdf.setLineCap(Ee))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ee){isNaN(Ee)||(this.ctx.lineWidth=Ee,this.pdf.setLineWidth(Ee))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ee){["bevel","round","miter"].indexOf(Ee)!==-1&&(this.ctx.lineJoin=Ee,this.pdf.setLineJoin(Ee))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ee){isNaN(Ee)||(this.ctx.miterLimit=Ee,this.pdf.setMiterLimit(Ee))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ee){this.ctx.textBaseline=Ee}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ee){["right","end","center","left","start"].indexOf(Ee)!==-1&&(this.ctx.textAlign=Ee)}});var De=null;function He(Ee,le){if(De===null){var Me=(function(nt){var Ue=[];return Object.keys(nt).forEach((function(Ve){nt[Ve].forEach((function(Ke){var Ze=null;switch(Ke){case"bold":Ze={family:Ve,weight:"bold"};break;case"italic":Ze={family:Ve,style:"italic"};break;case"bolditalic":Ze={family:Ve,weight:"bold",style:"italic"};break;case"":case"normal":Ze={family:Ve}}Ze!==null&&(Ze.ref={name:Ve,style:Ke},Ue.push(Ze))}))})),Ue})(Ee.getFontList());De=(function(nt){for(var Ue={},Ve=0;Ve<nt.length;++Ve){var Ke=jf(nt[Ve]),Ze=Ke.family,lt=Ke.stretch,ft=Ke.style,vt=Ke.weight;Ue[Ze]=Ue[Ze]||{},Ue[Ze][lt]=Ue[Ze][lt]||{},Ue[Ze][lt][ft]=Ue[Ze][lt][ft]||{},Ue[Ze][lt][ft][vt]=Ke}return Ue})(Me.concat(le))}return De}var $e=null;Object.defineProperty(this,"fontFaces",{get:function(){return $e},set:function(Ee){De=null,$e=Ee}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ee){var le;if(this.ctx.font=Ee,(le=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ee))!==null){var Me=le[1],nt=(le[2],le[3]),Ue=le[4],Ve=(le[5],le[6]),Ke=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ue)[2];Ue=Math.floor(Ke==="px"?parseFloat(Ue)*this.pdf.internal.scaleFactor:Ke==="em"?parseFloat(Ue)*this.pdf.getFontSize():parseFloat(Ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ue);var Ze=(function(pt){var Nt,et,Cr=[],Pt=pt.trim();if(Pt==="")return vf;if(Pt in nu)return[nu[Pt]];for(;Pt!=="";){switch(et=null,Nt=(Pt=au(Pt)).charAt(0)){case'"':case"'":et=wp(Pt.substring(1),Nt);break;default:et=yp(Pt)}if(et===null||(Cr.push(et[0]),(Pt=au(et[1]))!==""&&Pt.charAt(0)!==","))return vf;Pt=Pt.replace(/^,/,"")}return Cr})(Ve);if(this.fontFaces){var lt=xp(He(this.pdf,this.fontFaces),Ze.map((function(pt){return{family:pt,stretch:"normal",weight:nt,style:Me}})));this.pdf.setFont(lt.ref.name,lt.ref.style)}else{var ft="";(nt==="bold"||parseInt(nt,10)>=700||Me==="bold")&&(ft="bold"),Me==="italic"&&(ft+="italic"),ft.length===0&&(ft="normal");for(var vt="",St={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ft=0;Ft<Ze.length;Ft++){if(this.pdf.internal.getFont(Ze[Ft],ft,{noFallback:!0,disableWarning:!0})!==void 0){vt=Ze[Ft];break}if(ft==="bolditalic"&&this.pdf.internal.getFont(Ze[Ft],"bold",{noFallback:!0,disableWarning:!0})!==void 0)vt=Ze[Ft],ft="bold";else if(this.pdf.internal.getFont(Ze[Ft],"normal",{noFallback:!0,disableWarning:!0})!==void 0){vt=Ze[Ft],ft="normal";break}}if(vt===""){for(var Ct=0;Ct<Ze.length;Ct++)if(St[Ze[Ct]]){vt=St[Ze[Ct]];break}}vt=vt===""?"Times":vt,this.pdf.setFont(vt,ft)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ee){this.ctx.globalCompositeOperation=Ee}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ee){this.ctx.globalAlpha=Ee}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ee){this.ctx.lineDashOffset=Ee,ie.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ee){this.ctx.lineDash=Ee,ie.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ee){this.ctx.ignoreClearRect=!!Ee}})};p.prototype.setLineDash=function(y){this.lineDash=y},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){k.call(this,"fill",!1)},p.prototype.stroke=function(){k.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(y,L){if(isNaN(y)||isNaN(L))throw er.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var C=this.ctx.transform.applyToPoint(new s(y,L));this.path.push({type:"mt",x:C.x,y:C.y}),this.ctx.lastPoint=new s(y,L)},p.prototype.closePath=function(){var y=new s(0,0),L=0;for(L=this.path.length-1;L!==-1;L--)if(this.path[L].type==="begin"&&Wt(this.path[L+1])==="object"&&typeof this.path[L+1].x=="number"){y=new s(this.path[L+1].x,this.path[L+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(y.x,y.y)},p.prototype.lineTo=function(y,L){if(isNaN(y)||isNaN(L))throw er.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var C=this.ctx.transform.applyToPoint(new s(y,L));this.path.push({type:"lt",x:C.x,y:C.y}),this.ctx.lastPoint=new s(C.x,C.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},p.prototype.quadraticCurveTo=function(y,L,C,O){if(isNaN(C)||isNaN(O)||isNaN(y)||isNaN(L))throw er.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var H=this.ctx.transform.applyToPoint(new s(C,O)),fe=this.ctx.transform.applyToPoint(new s(y,L));this.path.push({type:"qct",x1:fe.x,y1:fe.y,x:H.x,y:H.y}),this.ctx.lastPoint=new s(H.x,H.y)},p.prototype.bezierCurveTo=function(y,L,C,O,H,fe){if(isNaN(H)||isNaN(fe)||isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O))throw er.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ce=this.ctx.transform.applyToPoint(new s(H,fe)),he=this.ctx.transform.applyToPoint(new s(y,L)),we=this.ctx.transform.applyToPoint(new s(C,O));this.path.push({type:"bct",x1:he.x,y1:he.y,x2:we.x,y2:we.y,x:ce.x,y:ce.y}),this.ctx.lastPoint=new s(ce.x,ce.y)},p.prototype.arc=function(y,L,C,O,H,fe){if(isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O)||isNaN(H))throw er.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var ce=this.ctx.transform.applyToPoint(new s(y,L));y=ce.x,L=ce.y;var he=this.ctx.transform.applyToPoint(new s(0,C)),we=this.ctx.transform.applyToPoint(new s(0,0));C=Math.sqrt(Math.pow(he.x-we.x,2)+Math.pow(he.y-we.y,2))}Math.abs(H-O)>=2*Math.PI&&(O=0,H=2*Math.PI),this.path.push({type:"arc",x:y,y:L,radius:C,startAngle:O,endAngle:H,counterclockwise:fe})},p.prototype.arcTo=function(y,L,C,O,H){throw new Error("arcTo not implemented.")},p.prototype.rect=function(y,L,C,O){if(isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O))throw er.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(y,L),this.lineTo(y+C,L),this.lineTo(y+C,L+O),this.lineTo(y,L+O),this.lineTo(y,L),this.lineTo(y+C,L),this.lineTo(y,L)},p.prototype.fillRect=function(y,L,C,O){if(isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O))throw er.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var H={};this.lineCap!=="butt"&&(H.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(H.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(y,L,C,O),this.fill(),H.hasOwnProperty("lineCap")&&(this.lineCap=H.lineCap),H.hasOwnProperty("lineJoin")&&(this.lineJoin=H.lineJoin)}},p.prototype.strokeRect=function(y,L,C,O){if(isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O))throw er.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(y,L,C,O),this.stroke())},p.prototype.clearRect=function(y,L,C,O){if(isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O))throw er.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(y,L,C,O))},p.prototype.save=function(y){y=typeof y!="boolean"||y;for(var L=this.pdf.internal.getCurrentPageInfo().pageNumber,C=0;C<this.pdf.internal.getNumberOfPages();C++)this.pdf.setPage(C+1),this.pdf.internal.out("q");if(this.pdf.setPage(L),y){this.ctx.fontSize=this.pdf.internal.getFontSize();var O=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=O}},p.prototype.restore=function(y){y=typeof y!="boolean"||y;for(var L=this.pdf.internal.getCurrentPageInfo().pageNumber,C=0;C<this.pdf.internal.getNumberOfPages();C++)this.pdf.setPage(C+1),this.pdf.internal.out("Q");this.pdf.setPage(L),y&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(y){var L,C,O,H;if(y.isCanvasGradient===!0&&(y=y.getColor()),!y)return{r:0,g:0,b:0,a:0,style:y};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(y))L=0,C=0,O=0,H=0;else{var fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(y);if(fe!==null)L=parseInt(fe[1]),C=parseInt(fe[2]),O=parseInt(fe[3]),H=1;else if((fe=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(y))!==null)L=parseInt(fe[1]),C=parseInt(fe[2]),O=parseInt(fe[3]),H=parseFloat(fe[4]);else{if(H=1,typeof y=="string"&&y.charAt(0)!=="#"){var ce=new bh(y);y=ce.ok?ce.toHex():"#000000"}y.length===4?(L=y.substring(1,2),L+=L,C=y.substring(2,3),C+=C,O=y.substring(3,4),O+=O):(L=y.substring(1,3),C=y.substring(3,5),O=y.substring(5,7)),L=parseInt(L,16),C=parseInt(C,16),O=parseInt(O,16)}}return{r:L,g:C,b:O,a:H,style:y}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(y,L,C,O){if(isNaN(L)||isNaN(C)||typeof y!="string")throw er.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(O=isNaN(O)?void 0:O,!h.call(this)){var H=oe(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;T.call(this,{text:y,x:L,y:C,scale:fe,angle:H,align:this.textAlign,maxWidth:O})}},p.prototype.strokeText=function(y,L,C,O){if(isNaN(L)||isNaN(C)||typeof y!="string")throw er.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){O=isNaN(O)?void 0:O;var H=oe(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;T.call(this,{text:y,x:L,y:C,scale:fe,renderingMode:"stroke",angle:H,align:this.textAlign,maxWidth:O})}},p.prototype.measureText=function(y){if(typeof y!="string")throw er.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var L=this.pdf,C=this.pdf.internal.scaleFactor,O=L.internal.getFontSize(),H=L.getStringUnitWidth(y)*O/L.internal.scaleFactor,fe=function(ce){var he=(ce=ce||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return he}}),this};return new fe({width:H*=Math.round(96*C/72*1e4)/1e4})},p.prototype.scale=function(y,L){if(isNaN(y)||isNaN(L))throw er.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var C=new f(y,0,0,L,0,0);this.ctx.transform=this.ctx.transform.multiply(C)},p.prototype.rotate=function(y){if(isNaN(y))throw er.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var L=new f(Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0);this.ctx.transform=this.ctx.transform.multiply(L)},p.prototype.translate=function(y,L){if(isNaN(y)||isNaN(L))throw er.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var C=new f(1,0,0,1,y,L);this.ctx.transform=this.ctx.transform.multiply(C)},p.prototype.transform=function(y,L,C,O,H,fe){if(isNaN(y)||isNaN(L)||isNaN(C)||isNaN(O)||isNaN(H)||isNaN(fe))throw er.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ce=new f(y,L,C,O,H,fe);this.ctx.transform=this.ctx.transform.multiply(ce)},p.prototype.setTransform=function(y,L,C,O,H,fe){y=isNaN(y)?1:y,L=isNaN(L)?0:L,C=isNaN(C)?0:C,O=isNaN(O)?1:O,H=isNaN(H)?0:H,fe=isNaN(fe)?0:fe,this.ctx.transform=new f(y,L,C,O,H,fe)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(y,L,C,O,H,fe,ce,he,we){var Pe=this.pdf.getImageProperties(y),De=1,He=1,$e=1,Ee=1;O!==void 0&&he!==void 0&&($e=he/O,Ee=we/H,De=Pe.width/O*he/O,He=Pe.height/H*we/H),fe===void 0&&(fe=L,ce=C,L=0,C=0),O!==void 0&&he===void 0&&(he=O,we=H),O===void 0&&he===void 0&&(he=Pe.width,we=Pe.height);for(var le,Me=this.ctx.transform.decompose(),nt=oe(Me.rotate.shx),Ue=new f,Ve=(Ue=(Ue=(Ue=Ue.multiply(Me.translate)).multiply(Me.skew)).multiply(Me.scale)).applyToRectangle(new o(fe-L*$e,ce-C*Ee,O*De,H*He)),Ke=b.call(this,Ve),Ze=[],lt=0;lt<Ke.length;lt+=1)Ze.indexOf(Ke[lt])===-1&&Ze.push(Ke[lt]);if(A(Ze),this.autoPaging)for(var ft=Ze[0],vt=Ze[Ze.length-1],St=ft;St<vt+1;St++){this.pdf.setPage(St);var Ft=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ct=St===1?this.posY+this.margin[0]:this.margin[0],pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],et=St===1?0:pt+(St-2)*Nt;if(this.ctx.clip_path.length!==0){var Cr=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(le,this.posX+this.margin[3],-et+Ct+this.ctx.prevPageLastElemOffset),M.call(this,"fill",!0),this.path=Cr}var Pt=JSON.parse(JSON.stringify(Ve));Pt=S([Pt],this.posX+this.margin[3],-et+Ct+this.ctx.prevPageLastElemOffset)[0];var dn=(St>ft||St<vt)&&v.call(this);dn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ft,Nt,null).clip().discardPath()),this.pdf.addImage(y,"JPEG",Pt.x,Pt.y,Pt.w,Pt.h,null,null,nt),dn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(y,"JPEG",Ve.x,Ve.y,Ve.w,Ve.h,null,null,nt)};var b=function(y,L,C){var O=[];L=L||this.pdf.internal.pageSize.width,C=C||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var H=this.posY+this.ctx.prevPageLastElemOffset;switch(y.type){default:case"mt":case"lt":O.push(Math.floor((y.y+H)/C)+1);break;case"arc":O.push(Math.floor((y.y+H-y.radius)/C)+1),O.push(Math.floor((y.y+H+y.radius)/C)+1);break;case"qct":var fe=te(this.ctx.lastPoint.x,this.ctx.lastPoint.y,y.x1,y.y1,y.x,y.y);O.push(Math.floor((fe.y+H)/C)+1),O.push(Math.floor((fe.y+fe.h+H)/C)+1);break;case"bct":var ce=pe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,y.x1,y.y1,y.x2,y.y2,y.x,y.y);O.push(Math.floor((ce.y+H)/C)+1),O.push(Math.floor((ce.y+ce.h+H)/C)+1);break;case"rect":O.push(Math.floor((y.y+H)/C)+1),O.push(Math.floor((y.y+y.h+H)/C)+1)}for(var he=0;he<O.length;he+=1)for(;this.pdf.internal.getNumberOfPages()<O[he];)_.call(this);return O},_=function(){var y=this.fillStyle,L=this.strokeStyle,C=this.font,O=this.lineCap,H=this.lineWidth,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=y,this.strokeStyle=L,this.font=C,this.lineCap=O,this.lineWidth=H,this.lineJoin=fe},S=function(y,L,C){for(var O=0;O<y.length;O++)switch(y[O].type){case"bct":y[O].x2+=L,y[O].y2+=C;case"qct":y[O].x1+=L,y[O].y1+=C;case"mt":case"lt":case"arc":default:y[O].x+=L,y[O].y+=C}return y},A=function(y){return y.sort((function(L,C){return L-C}))},k=function(y,L){for(var C,O,H=this.fillStyle,fe=this.strokeStyle,ce=this.lineCap,he=this.lineWidth,we=Math.abs(he*this.ctx.transform.scaleX),Pe=this.lineJoin,De=JSON.parse(JSON.stringify(this.path)),He=JSON.parse(JSON.stringify(this.path)),$e=[],Ee=0;Ee<He.length;Ee++)if(He[Ee].x!==void 0)for(var le=b.call(this,He[Ee]),Me=0;Me<le.length;Me+=1)$e.indexOf(le[Me])===-1&&$e.push(le[Me]);for(var nt=0;nt<$e.length;nt++)for(;this.pdf.internal.getNumberOfPages()<$e[nt];)_.call(this);if(A($e),this.autoPaging)for(var Ue=$e[0],Ve=$e[$e.length-1],Ke=Ue;Ke<Ve+1;Ke++){this.pdf.setPage(Ke),this.fillStyle=H,this.strokeStyle=fe,this.lineCap=ce,this.lineWidth=we,this.lineJoin=Pe;var Ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],lt=Ke===1?this.posY+this.margin[0]:this.margin[0],ft=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],vt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],St=Ke===1?0:ft+(Ke-2)*vt;if(this.ctx.clip_path.length!==0){var Ft=this.path;C=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(C,this.posX+this.margin[3],-St+lt+this.ctx.prevPageLastElemOffset),M.call(this,y,!0),this.path=Ft}if(O=JSON.parse(JSON.stringify(De)),this.path=S(O,this.posX+this.margin[3],-St+lt+this.ctx.prevPageLastElemOffset),L===!1||Ke===0){var Ct=(Ke>Ue||Ke<Ve)&&v.call(this);Ct&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,vt,null).clip().discardPath()),M.call(this,y,L),Ct&&this.pdf.restoreGraphicsState()}this.lineWidth=he}else this.lineWidth=we,M.call(this,y,L),this.lineWidth=he;this.path=De},M=function(y,L){if((y!=="stroke"||L||!w.call(this))&&(y==="stroke"||L||!h.call(this))){for(var C,O,H=[],fe=this.path,ce=0;ce<fe.length;ce++){var he=fe[ce];switch(he.type){case"begin":H.push({begin:!0});break;case"close":H.push({close:!0});break;case"mt":H.push({start:he,deltas:[],abs:[]});break;case"lt":var we=H.length;if(fe[ce-1]&&!isNaN(fe[ce-1].x)&&(C=[he.x-fe[ce-1].x,he.y-fe[ce-1].y],we>0)){for(;we>=0;we--)if(H[we-1].close!==!0&&H[we-1].begin!==!0){H[we-1].deltas.push(C),H[we-1].abs.push(he);break}}break;case"bct":C=[he.x1-fe[ce-1].x,he.y1-fe[ce-1].y,he.x2-fe[ce-1].x,he.y2-fe[ce-1].y,he.x-fe[ce-1].x,he.y-fe[ce-1].y],H[H.length-1].deltas.push(C);break;case"qct":var Pe=fe[ce-1].x+2/3*(he.x1-fe[ce-1].x),De=fe[ce-1].y+2/3*(he.y1-fe[ce-1].y),He=he.x+2/3*(he.x1-he.x),$e=he.y+2/3*(he.y1-he.y),Ee=he.x,le=he.y;C=[Pe-fe[ce-1].x,De-fe[ce-1].y,He-fe[ce-1].x,$e-fe[ce-1].y,Ee-fe[ce-1].x,le-fe[ce-1].y],H[H.length-1].deltas.push(C);break;case"arc":H.push({deltas:[],abs:[],arc:!0}),Array.isArray(H[H.length-1].abs)&&H[H.length-1].abs.push(he)}}O=L?null:y==="stroke"?"stroke":"fill";for(var Me=!1,nt=0;nt<H.length;nt++)if(H[nt].arc)for(var Ue=H[nt].abs,Ve=0;Ve<Ue.length;Ve++){var Ke=Ue[Ve];Ke.type==="arc"?P.call(this,Ke.x,Ke.y,Ke.radius,Ke.startAngle,Ke.endAngle,Ke.counterclockwise,void 0,L,!Me):z.call(this,Ke.x,Ke.y),Me=!0}else if(H[nt].close===!0)this.pdf.internal.out("h"),Me=!1;else if(H[nt].begin!==!0){var Ze=H[nt].start.x,lt=H[nt].start.y;Y.call(this,H[nt].deltas,Ze,lt),Me=!0}O&&D.call(this,O),L&&V.call(this)}},K=function(y){var L=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,C=L*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return y-C;case"top":return y+L-C;case"hanging":return y+L-2*C;case"middle":return y+L/2-C;case"ideographic":return y;case"alphabetic":default:return y}},F=function(y){return y+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var y=function(){};return y.colorStops=[],y.addColorStop=function(L,C){this.colorStops.push([L,C])},y.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},y.isCanvasGradient=!0,y},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(y,L,C,O,H,fe,ce,he,we){for(var Pe=Q.call(this,C,O,H,fe),De=0;De<Pe.length;De++){var He=Pe[De];De===0&&(we?E.call(this,He.x1+y,He.y1+L):z.call(this,He.x1+y,He.y1+L)),ue.call(this,y,L,He.x2,He.y2,He.x3,He.y3,He.x4,He.y4)}he?V.call(this):D.call(this,ce)},D=function(y){switch(y){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},V=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(y,L){this.pdf.internal.out(t(y)+" "+n(L)+" m")},T=function(y){var L;switch(y.align){case"right":case"end":L="right";break;case"center":L="center";break;case"left":case"start":default:L="left"}var C=this.pdf.getTextDimensions(y.text),O=K.call(this,y.y),H=F.call(this,O)-C.h,fe=this.ctx.transform.applyToPoint(new s(y.x,O)),ce=this.ctx.transform.decompose(),he=new f;he=(he=(he=he.multiply(ce.translate)).multiply(ce.skew)).multiply(ce.scale);for(var we,Pe,De,He=this.ctx.transform.applyToRectangle(new o(y.x,O,C.w,C.h)),$e=he.applyToRectangle(new o(y.x,H,C.w,C.h)),Ee=b.call(this,$e),le=[],Me=0;Me<Ee.length;Me+=1)le.indexOf(Ee[Me])===-1&&le.push(Ee[Me]);if(A(le),this.autoPaging)for(var nt=le[0],Ue=le[le.length-1],Ve=nt;Ve<Ue+1;Ve++){this.pdf.setPage(Ve);var Ke=Ve===1?this.posY+this.margin[0]:this.margin[0],Ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],lt=this.pdf.internal.pageSize.height-this.margin[2],ft=lt-this.margin[0],vt=this.pdf.internal.pageSize.width-this.margin[1],St=vt-this.margin[3],Ft=Ve===1?0:Ze+(Ve-2)*ft;if(this.ctx.clip_path.length!==0){var Ct=this.path;we=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(we,this.posX+this.margin[3],-1*Ft+Ke),M.call(this,"fill",!0),this.path=Ct}var pt=S([JSON.parse(JSON.stringify($e))],this.posX+this.margin[3],-Ft+Ke+this.ctx.prevPageLastElemOffset)[0];y.scale>=.01&&(Pe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Pe*y.scale),De=this.lineWidth,this.lineWidth=De*y.scale);var Nt=this.autoPaging!=="text";if(Nt||pt.y+pt.h<=lt){if(Nt||pt.y>=Ke&&pt.x<=vt){var et=Nt?y.text:this.pdf.splitTextToSize(y.text,y.maxWidth||vt-pt.x)[0],Cr=S([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-Ft+Ke+this.ctx.prevPageLastElemOffset)[0],Pt=Nt&&(Ve>nt||Ve<Ue)&&v.call(this);Pt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],St,ft,null).clip().discardPath()),this.pdf.text(et,Cr.x,Cr.y,{angle:y.angle,align:L,renderingMode:y.renderingMode}),Pt&&this.pdf.restoreGraphicsState()}}else pt.y<lt&&(this.ctx.prevPageLastElemOffset+=lt-pt.y);y.scale>=.01&&(this.pdf.setFontSize(Pe),this.lineWidth=De)}else y.scale>=.01&&(Pe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Pe*y.scale),De=this.lineWidth,this.lineWidth=De*y.scale),this.pdf.text(y.text,fe.x+this.posX,fe.y+this.posY,{angle:y.angle,align:L,renderingMode:y.renderingMode,maxWidth:y.maxWidth}),y.scale>=.01&&(this.pdf.setFontSize(Pe),this.lineWidth=De)},z=function(y,L,C,O){C=C||0,O=O||0,this.pdf.internal.out(t(y+C)+" "+n(L+O)+" l")},Y=function(y,L,C){return this.pdf.lines(y,L,C,null,null)},ue=function(y,L,C,O,H,fe,ce,he){this.pdf.internal.out([r(i(C+y)),r(a(O+L)),r(i(H+y)),r(a(fe+L)),r(i(ce+y)),r(a(he+L)),"c"].join(" "))},Q=function(y,L,C,O){for(var H=2*Math.PI,fe=Math.PI/2;L>C;)L-=H;var ce=Math.abs(C-L);ce<H&&O&&(ce=H-ce);for(var he=[],we=O?-1:1,Pe=L;ce>1e-5;){var De=Pe+we*Math.min(ce,fe);he.push(J.call(this,y,Pe,De)),ce-=Math.abs(De-Pe),Pe=De}return he},J=function(y,L,C){var O=(C-L)/2,H=y*Math.cos(O),fe=y*Math.sin(O),ce=H,he=-fe,we=ce*ce+he*he,Pe=we+ce*H+he*fe,De=4/3*(Math.sqrt(2*we*Pe)-Pe)/(ce*fe-he*H),He=ce-De*he,$e=he+De*ce,Ee=He,le=-$e,Me=O+L,nt=Math.cos(Me),Ue=Math.sin(Me);return{x1:y*Math.cos(L),y1:y*Math.sin(L),x2:He*nt-$e*Ue,y2:He*Ue+$e*nt,x3:Ee*nt-le*Ue,y3:Ee*Ue+le*nt,x4:y*Math.cos(C),y4:y*Math.sin(C)}},oe=function(y){return 180*y/Math.PI},te=function(y,L,C,O,H,fe){var ce=y+.5*(C-y),he=L+.5*(O-L),we=H+.5*(C-H),Pe=fe+.5*(O-fe),De=Math.min(y,H,ce,we),He=Math.max(y,H,ce,we),$e=Math.min(L,fe,he,Pe),Ee=Math.max(L,fe,he,Pe);return new o(De,$e,He-De,Ee-$e)},pe=function(y,L,C,O,H,fe,ce,he){var we,Pe,De,He,$e,Ee,le,Me,nt,Ue,Ve,Ke,Ze,lt,ft=C-y,vt=O-L,St=H-C,Ft=fe-O,Ct=ce-H,pt=he-fe;for(Pe=0;Pe<41;Pe++)nt=(le=(De=y+(we=Pe/40)*ft)+we*(($e=C+we*St)-De))+we*($e+we*(H+we*Ct-$e)-le),Ue=(Me=(He=L+we*vt)+we*((Ee=O+we*Ft)-He))+we*(Ee+we*(fe+we*pt-Ee)-Me),Pe==0?(Ve=nt,Ke=Ue,Ze=nt,lt=Ue):(Ve=Math.min(Ve,nt),Ke=Math.min(Ke,Ue),Ze=Math.max(Ze,nt),lt=Math.max(lt,Ue));return new o(Math.round(Ve),Math.round(Ke),Math.round(Ze-Ve),Math.round(lt-Ke))},ie=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var y,L,C=(y=this.ctx.lineDash,L=this.ctx.lineDashOffset,JSON.stringify({lineDash:y,lineDashOffset:L}));this.prevLineDash!==C&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=C)}}})(ut.API),(function(e){var r=function(a){var s,o,f,c,u,p,g,h,w,v;for(o=[],f=0,c=(a+=s="\0\0\0\0".slice(a.length%4||4)).length;c>f;f+=4)(u=(a.charCodeAt(f)<<24)+(a.charCodeAt(f+1)<<16)+(a.charCodeAt(f+2)<<8)+a.charCodeAt(f+3))!==0?(p=(u=((u=((u=((u=(u-(v=u%85))/85)-(w=u%85))/85)-(h=u%85))/85)-(g=u%85))/85)%85,o.push(p+33,g+33,h+33,w+33,v+33)):o.push(122);return(function(b,_){for(var S=_;S>0;S--)b.pop()})(o,s.length),String.fromCharCode.apply(String,o)+"~>"},t=function(a){var s,o,f,c,u,p=String,g="length",h=255,w="charCodeAt",v="slice",b="replace";for(a[v](-2),a=a[v](0,-2)[b](/\s/g,"")[b]("z","!!!!!"),f=[],c=0,u=(a+=s="uuuuu"[v](a[g]%5||5))[g];u>c;c+=5)o=52200625*(a[w](c)-33)+614125*(a[w](c+1)-33)+7225*(a[w](c+2)-33)+85*(a[w](c+3)-33)+(a[w](c+4)-33),f.push(h&o>>24,h&o>>16,h&o>>8,h&o);return(function(_,S){for(var A=S;A>0;A--)_.pop()})(f,s[g]),p.fromCharCode.apply(p,f)},n=function(a){var s=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"),s.test(a)===!1)return"";for(var o="",f=0;f<a.length;f+=2)o+=String.fromCharCode("0x"+(a[f]+a[f+1]));return o},i=function(a){for(var s=new Uint8Array(a.length),o=a.length;o--;)s[o]=a.charCodeAt(o);return a=(s=Of(s)).reduce((function(f,c){return f+String.fromCharCode(c)}),"")};e.processDataByFilters=function(a,s){var o=0,f=a||"",c=[];for(typeof(s=s||[])=="string"&&(s=[s]),o=0;o<s.length;o+=1)switch(s[o]){case"ASCII85Decode":case"/ASCII85Decode":f=t(f),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=r(f),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=n(f),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map((function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=i(f),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[o]+'" is not implemented')}return{data:f,reverseChain:c.reverse().join(" ")}}})(ut.API),(function(e){e.loadFile=function(r,t,n){return(function(i,a,s){a=a!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=(function(f,c,u){var p=new XMLHttpRequest,g=0,h=function(w){var v=w.length,b=[],_=String.fromCharCode;for(g=0;g<v;g+=1)b.push(_(255&w.charCodeAt(g)));return b.join("")};if(p.open("GET",f,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?u(h(this.responseText)):u(void 0)}),p.send(null),c&&p.status===200)return h(p.responseText)})(i,a,s)}catch{}return o})(r,t,n)},e.loadImageFile=e.loadFile})(ut.API),(function(e){function r(){return(gt.html2canvas?Promise.resolve(gt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-C4Mnoizn.js"))).catch((function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))})).then((function(s){return s.default?s.default:s}))}function t(){return(gt.DOMPurify?Promise.resolve(gt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-B0uier8o.js"))).catch((function(s){return Promise.reject(new Error("Could not load dompurify: "+s))})).then((function(s){return s.default?s.default:s}))}var n=function(s){var o=Wt(s);return o==="undefined"?"undefined":o==="string"||s instanceof String?"string":o==="number"||s instanceof Number?"number":o==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":o==="object"?"object":"unknown"},i=function(s,o){var f=document.createElement(s);for(var c in o.className&&(f.className=o.className),o.innerHTML&&o.dompurify&&(f.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)f.style[c]=o.style[c];return f},a=function s(o){var f=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),c=s.convert(Promise.resolve(),f);return c=(c=c.setProgress(1,s,1,[s])).set(o)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(s,o){return s.__proto__=o||a.prototype,s},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(s,o){return this.then((function(){switch(o=o||(function(f){switch(n(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s)){case"string":return this.then(t).then((function(f){return this.set({src:i("div",{innerHTML:s,dompurify:f})})}));case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}}))},a.prototype.to=function(s){switch(s){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 s={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},o=(function f(c,u){for(var p=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),g=c.firstChild;g;g=g.nextSibling)u!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||p.appendChild(f(g,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(p.width=c.width,p.height=c.height,p.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(p.value=c.value),p.addEventListener("load",(function(){p.scrollTop=c.scrollTop,p.scrollLeft=c.scrollLeft}),!0)),p})(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(s.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:s}),this.prop.container.appendChild(o),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 s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(r).then((function(o){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,o(this.prop.container,f)})).then((function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)}))},a.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(r).then((function(o){var f=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,p=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 p.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=c,c)for(var g=0;g<c.length;++g){var h=c[g],w=h.src.find((function(v){return v.format==="truetype"}));w&&f.addFont(w.url,h.ref.name,h.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,f.context2d.save(!0),o(this.prop.container,p)})).then((function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)}))},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s}))},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(s,o,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(s,o):this.outputPdf(s,o)},a.prototype.outputPdf=function(s,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(s,o)}))},a.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(s){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 "'+s+'" is not supported.'}}))},a.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}: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(s){if(n(s)!=="object")return this;var o=Object.keys(s||{}).map((function(f){if(f in a.template.prop)return function(){this.prop[f]=s[f]};switch(f){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[f]=s[f]}}}),this);return this.then((function(){return this.thenList(o)}))},a.prototype.get=function(s,o){return this.then((function(){var f=s in a.template.prop?this.prop[s]:this.opt[s];return o?o(f):f}))},a.prototype.setMargin=function(s){return this.then((function(){switch(n(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s})).then(this.setPageSize)},a.prototype.setPageSize=function(s){function o(f,c){return Math.floor(f*c/72*96)}return this.then((function(){(s=s||ut.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:o(s.inner.width,s.k),height:o(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s}))},a.prototype.setProgress=function(s,o,f,c){return s!=null&&(this.progress.val=s),o!=null&&(this.progress.state=o),f!=null&&(this.progress.n=f),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(s,o,f,c){return this.setProgress(s?this.progress.val+s:null,o||null,f?this.progress.n+f:null,c?this.progress.stack.concat(c):null)},a.prototype.then=function(s,o){var f=this;return this.thenCore(s,o,(function(c,u){return f.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,(function(p){return f.updateProgress(null,c),p})).then(c,u).then((function(p){return f.updateProgress(1),p}))}))},a.prototype.thenCore=function(s,o,f){f=f||Promise.prototype.then,s&&(s=s.bind(this)),o&&(o=o.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),u=f.call(c,s,o);return a.convert(u,this.__proto__)},a.prototype.thenExternal=function(s,o){return Promise.prototype.then.call(this,s,o)},a.prototype.thenList=function(s){var o=this;return s.forEach((function(f){o=o.thenCore(f)})),o},a.prototype.catch=function(s){s&&(s=s.bind(this));var o=Promise.prototype.catch.call(this,s);return a.convert(o,this)},a.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},a.prototype.error=function(s){return this.then((function(){throw new Error(s)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,ut.getPageSize=function(s,o,f){if(Wt(s)==="object"){var c=s;s=c.orientation,o=c.unit||o,f=c.format||f}o=o||"mm",f=f||"a4",s=(""+(s||"P")).toLowerCase();var u,p=(""+f).toLowerCase(),g={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(o){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: "+o}var h,w=0,v=0;if(g.hasOwnProperty(p))w=g[p][1]/u,v=g[p][0]/u;else try{w=f[1],v=f[0]}catch{throw new Error("Invalid format: "+f)}if(s==="p"||s==="portrait")s="p",v>w&&(h=v,v=w,w=h);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>v&&(h=v,v=w,w=h)}return{width:v,height:w,unit:o,k:u,orientation:s}},e.html=function(s,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(jf):null;var f=new a(o);return o.worker?f:f.from(s).doCallback()}})(ut.API),ut.API.addJS=function(e){return ou=e,this.internal.events.subscribe("postPutResources",(function(){j0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(j0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),su=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+ou+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){j0!==void 0&&su!==void 0&&this.internal.out("/Names <</JavaScript "+j0+" 0 R>>")})),this},(function(e){var r;e.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a<i.length;a++){var s=i[a],o=n.exec(s);if(o!=null){var f=o[1];t.internal.newObjectDeferredBegin(f,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(a=0;a<c;a++){var p=t.internal.newObject();u.push(p);var g=t.internal.getPageInfo(a+1);t.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a<u.length;a++)t.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");t.internal.write(" ] >>","endobj"),r=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.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 "+r+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,i,a){var s={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},t.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()},t.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var s=n.children[a];this.objStart(s),this.line("/Title "+this.makeString(s.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])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var f=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},t.outline.line=function(n){this.ctx.val+=n+`\r
120
+ `},t.outline.makeRef=function(n){return n.id+" 0 R"},t.outline.makeString=function(n){return"("+t.internal.pdfEscape(n)+")"},t.outline.objStart=function(n){this.ctx.val+=`\r
121
+ `+n.id+` 0 obj\r
122
+ <<\r
123
+ `},t.outline.objEnd=function(){this.ctx.val+=`>> \r
124
+ endobj\r
125
+ `},t.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}}])})(ut.API),(function(e){var r=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,n,i,a,s,o){var f,c=this.decode.DCT_DECODE,u=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=s||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(f=(function(p){for(var g,h=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,v={width:0,height:0,numcomponents:1},b=4;b<w;b+=2){if(b+=h,r.indexOf(p.charCodeAt(b+1))!==-1){g=256*p.charCodeAt(b+5)+p.charCodeAt(b+6),v={width:256*p.charCodeAt(b+7)+p.charCodeAt(b+8),height:g,numcomponents:p.charCodeAt(b+9)};break}h=256*p.charCodeAt(b+2)+p.charCodeAt(b+3)}return v})(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:t,width:f.width,height:f.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:i}}return u}})(ut.API);var ys,U0,lu,fu,cu,bp=(function(){var e,r,t;function n(a){var s,o,f,c,u,p,g,h,w,v,b,_,S,A;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(s=this.readUInt32(),w=(function(){var k,M;for(M=[],k=0;k<4;++k)M.push(String.fromCharCode(this.data[this.pos++]));return M}).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(s);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),c=this.readUInt16()||100,p.delay=1e3*u/c,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(w==="fdAT"&&(this.pos+=4,s-=4),a=(p!=null?p.data:void 0)||this.imgData,_=0;0<=s?_<s:_>s;0<=s?++_:--_)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(f=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((v=f-this.transparency.indexed.length)>0)for(S=0;0<=v?S<v:S>v;0<=v?++S:--S)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":g=(b=this.read(s)).indexOf(0),h=String.fromCharCode.apply(String,b.slice(0,g)),this.text[h]=String.fromCharCode.apply(String,b.slice(g+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(A=this.colorType)===4||A===6,o=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*o,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+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var s,o;for(o=[],s=0;0<=a?s<a:s>a;0<=a?++s:--s)o.push(this.data[this.pos++]);return o},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 s=this.pixelBitlength/8,o=new Uint8Array(this.width*this.height*s),f=0,c=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(p,g,h,w){var v,b,_,S,A,k,M,K,F,P,D,V,E,T,z,Y,ue,Q,J,oe,te,pe=Math.ceil((c.width-p)/h),ie=Math.ceil((c.height-g)/w),y=c.width==pe&&c.height==ie;for(T=s*pe,V=y?o:new Uint8Array(T*ie),k=a.length,E=0,b=0;E<ie&&f<k;){switch(a[f++]){case 0:for(S=ue=0;ue<T;S=ue+=1)V[b++]=a[f++];break;case 1:for(S=Q=0;Q<T;S=Q+=1)v=a[f++],A=S<s?0:V[b-s],V[b++]=(v+A)%256;break;case 2:for(S=J=0;J<T;S=J+=1)v=a[f++],_=(S-S%s)/s,z=E&&V[(E-1)*T+_*s+S%s],V[b++]=(z+v)%256;break;case 3:for(S=oe=0;oe<T;S=oe+=1)v=a[f++],_=(S-S%s)/s,A=S<s?0:V[b-s],z=E&&V[(E-1)*T+_*s+S%s],V[b++]=(v+Math.floor((A+z)/2))%256;break;case 4:for(S=te=0;te<T;S=te+=1)v=a[f++],_=(S-S%s)/s,A=S<s?0:V[b-s],E===0?z=Y=0:(z=V[(E-1)*T+_*s+S%s],Y=_&&V[(E-1)*T+(_-1)*s+S%s]),M=A+z-Y,K=Math.abs(M-A),P=Math.abs(M-z),D=Math.abs(M-Y),F=K<=P&&K<=D?A:P<=D?z:Y,V[b++]=(v+F)%256;break;default:throw new Error("Invalid filter algorithm: "+a[f-1])}if(!y){var L=((g+E*w)*c.width+p)*s,C=E*T;for(S=0;S<pe;S+=1){for(var O=0;O<s;O+=1)o[L++]=V[C++];L+=(h-1)*s}}E++}}return a=Z2(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),o},n.prototype.decodePalette=function(){var a,s,o,f,c,u,p,g,h;for(o=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+o.length),f=0,a=0,s=p=0,g=o.length;p<g;s=p+=3)c[f++]=o[s],c[f++]=o[s+1],c[f++]=o[s+2],c[f++]=(h=u[a++])!=null?h:255;return c},n.prototype.copyToImageData=function(a,s){var o,f,c,u,p,g,h,w,v,b,_;if(f=this.colors,v=null,o=this.hasAlphaChannel,this.palette.length&&(v=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),f=4,o=!0),w=(c=a.data||a).length,p=v||s,u=g=0,f===1)for(;u<w;)h=v?4*s[u/4]:g,b=p[h++],c[u++]=b,c[u++]=b,c[u++]=b,c[u++]=o?p[h++]:255,g=h;else for(;u<w;)h=v?4*s[u/4]:g,c[u++]=p[h++],c[u++]=p[h++],c[u++]=p[h++],c[u++]=o?p[h++]:255,g=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(gt)==="[object Window]"){try{r=gt.document.createElement("canvas"),t=r.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(a){var s;if(i()===!0)return t.width=a.width,t.height=a.height,t.clearRect(0,0,a.width,a.height),t.putImageData(a,0,0),(s=new Image).src=r.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(a){var s,o,f,c,u,p,g,h;if(this.animation){for(h=[],o=u=0,p=(g=this.animation.frames).length;u<p;o=++u)s=g[o],f=a.createImageData(s.width,s.height),c=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(f,c),s.imageData=f,h.push(s.image=e(f));return h}},n.prototype.renderFrame=function(a,s){var o,f,c;return o=(f=this.animation.frames)[s],c=f[s-1],s===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),o.blendOp===0&&a.clearRect(o.xOffset,o.yOffset,o.width,o.height),a.drawImage(o.image,o.xOffset,o.yOffset)},n.prototype.animate=function(a){var s,o,f,c,u,p,g=this;return o=0,p=this.animation,c=p.numFrames,f=p.frames,u=p.numPlays,(s=function(){var h,w;if(h=o++%c,w=f[h],g.renderFrame(a,h),c>1&&o/c<u)return g.animation._timeout=setTimeout(s,w.delay)})()},n.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},n.prototype.render=function(a){var s,o;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,s=a.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(o=s.createImageData(this.width,this.height),this.copyToImageData(o,this.decodePixels()),s.putImageData(o,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 _p(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!=56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,n=e[r++]|e[r++]<<8,i=e[r++],a=i>>7,s=1<<(7&i)+1;e[r++],e[r++];var o=null,f=null;a&&(o=r,f=s,r+=3*s);var c=!0,u=[],p=0,g=null,h=0,w=null;for(this.width=t,this.height=n;c&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,w=e[r++]|e[r++]<<8,r++;else for(r+=12;;){if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[r++];p=e[r++]|e[r++]<<8,g=e[r++],(1&v)==0&&(g=null),h=v>>2&7,r++;break;case 254:for(;;){if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var b=e[r++]|e[r++]<<8,_=e[r++]|e[r++]<<8,S=e[r++]|e[r++]<<8,A=e[r++]|e[r++]<<8,k=e[r++],M=k>>6&1,K=1<<(7&k)+1,F=o,P=f,D=!1;k>>7&&(D=!0,F=r,P=K,r+=3*K);var V=r;for(r++;;){var E;if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}u.push({x:b,y:_,width:S,height:A,has_local_palette:D,palette_offset:F,palette_size:P,data_offset:V,data_length:r-V,transparent_index:g,interlaced:!!M,delay:p,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return w},this.frameInfo=function(T){if(T<0||T>=u.length)throw new Error("Frame index out of range.");return u[T]},this.decodeAndBlitFrameBGRA=function(T,z){var Y=this.frameInfo(T),ue=Y.width*Y.height,Q=new Uint8Array(ue);uu(e,Y.data_offset,Q,ue);var J=Y.palette_offset,oe=Y.transparent_index;oe===null&&(oe=256);var te=Y.width,pe=t-te,ie=te,y=4*(Y.y*t+Y.x),L=4*((Y.y+Y.height)*t+Y.x),C=y,O=4*pe;Y.interlaced===!0&&(O+=4*t*7);for(var H=8,fe=0,ce=Q.length;fe<ce;++fe){var he=Q[fe];if(ie===0&&(ie=te,(C+=O)>=L&&(O=4*pe+4*t*(H-1),C=y+(te+pe)*(H<<1),H>>=1)),he===oe)C+=4;else{var we=e[J+3*he],Pe=e[J+3*he+1],De=e[J+3*he+2];z[C++]=De,z[C++]=Pe,z[C++]=we,z[C++]=255}--ie}},this.decodeAndBlitFrameRGBA=function(T,z){var Y=this.frameInfo(T),ue=Y.width*Y.height,Q=new Uint8Array(ue);uu(e,Y.data_offset,Q,ue);var J=Y.palette_offset,oe=Y.transparent_index;oe===null&&(oe=256);var te=Y.width,pe=t-te,ie=te,y=4*(Y.y*t+Y.x),L=4*((Y.y+Y.height)*t+Y.x),C=y,O=4*pe;Y.interlaced===!0&&(O+=4*t*7);for(var H=8,fe=0,ce=Q.length;fe<ce;++fe){var he=Q[fe];if(ie===0&&(ie=te,(C+=O)>=L&&(O=4*pe+4*t*(H-1),C=y+(te+pe)*(H<<1),H>>=1)),he===oe)C+=4;else{var we=e[J+3*he],Pe=e[J+3*he+1],De=e[J+3*he+2];z[C++]=we,z[C++]=Pe,z[C++]=De,z[C++]=255}--ie}}}function uu(e,r,t,n){for(var i=e[r++],a=1<<i,s=a+1,o=s+1,f=i+1,c=(1<<f)-1,u=0,p=0,g=0,h=e[r++],w=new Int32Array(4096),v=null;;){for(;u<16&&h!==0;)p|=e[r++]<<u,u+=8,h===1?h=e[r++]:--h;if(u<f)break;var b=p&c;if(p>>=f,u-=f,b!==a){if(b===s)break;for(var _=b<o?b:v,S=0,A=_;A>a;)A=w[A]>>8,++S;var k=A;if(g+S+(_!==b?1:0)>n)return void er.log("Warning, gif stream longer than expected.");t[g++]=k;var M=g+=S;for(_!==b&&(t[g++]=k),A=_;S--;)A=w[A],t[--M]=255&A,A>>=8;v!==null&&o<4096&&(w[o++]=v<<8|k,o>=c+1&&f<12&&(++f,c=c<<1|1)),v=b}else o=s+1,c=(1<<(f=i+1))-1,v=null}return g!==n&&er.log("Warning, gif stream shorter than expected."),t}/**
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 xf(e){var r,t,n,i,a,s=Math.floor,o=new Array(64),f=new Array(64),c=new Array(64),u=new Array(64),p=new Array(65535),g=new Array(65535),h=new Array(64),w=new Array(64),v=[],b=0,_=7,S=new Array(64),A=new Array(64),k=new Array(64),M=new Array(256),K=new Array(2048),F=[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],P=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ue=[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 Q(y,L){for(var C=0,O=0,H=new Array,fe=1;fe<=16;fe++){for(var ce=1;ce<=y[fe];ce++)H[L[O]]=[],H[L[O]][0]=C,H[L[O]][1]=fe,O++,C++;C*=2}return H}function J(y){for(var L=y[0],C=y[1]-1;C>=0;)L&1<<C&&(b|=1<<_),C--,--_<0&&(b==255?(oe(255),oe(0)):oe(b),_=7,b=0)}function oe(y){v.push(y)}function te(y){oe(y>>8&255),oe(255&y)}function pe(y,L,C,O,H){for(var fe,ce=H[0],he=H[240],we=(function(Ue,Ve){var Ke,Ze,lt,ft,vt,St,Ft,Ct,pt,Nt,et=0;for(pt=0;pt<8;++pt){Ke=Ue[et],Ze=Ue[et+1],lt=Ue[et+2],ft=Ue[et+3],vt=Ue[et+4],St=Ue[et+5],Ft=Ue[et+6];var Cr=Ke+(Ct=Ue[et+7]),Pt=Ke-Ct,dn=Ze+Ft,Ut=Ze-Ft,tr=lt+St,Mn=lt-St,It=ft+vt,pi=ft-vt,ar=Cr+It,An=Cr-It,Kn=dn+tr,Zt=dn-tr;Ue[et]=ar+Kn,Ue[et+4]=ar-Kn;var xt=.707106781*(Zt+An);Ue[et+2]=An+xt,Ue[et+6]=An-xt;var Dt=.382683433*((ar=pi+Mn)-(Zt=Ut+Pt)),Li=.5411961*ar+Dt,kr=1.306562965*Zt+Dt,Bn=.707106781*(Kn=Mn+Ut),jn=Pt+Bn,ht=Pt-Bn;Ue[et+5]=ht+Li,Ue[et+3]=ht-Li,Ue[et+1]=jn+kr,Ue[et+7]=jn-kr,et+=8}for(et=0,pt=0;pt<8;++pt){Ke=Ue[et],Ze=Ue[et+8],lt=Ue[et+16],ft=Ue[et+24],vt=Ue[et+32],St=Ue[et+40],Ft=Ue[et+48];var Tn=Ke+(Ct=Ue[et+56]),pn=Ke-Ct,$r=Ze+Ft,mr=Ze-Ft,cr=lt+St,j=lt-St,ne=ft+vt,X=ft-vt,Z=Tn+ne,re=Tn-ne,ae=$r+cr,_e=$r-cr;Ue[et]=Z+ae,Ue[et+32]=Z-ae;var Le=.707106781*(_e+re);Ue[et+16]=re+Le,Ue[et+48]=re-Le;var be=.382683433*((Z=X+j)-(_e=mr+pn)),Te=.5411961*Z+be,Ne=1.306562965*_e+be,We=.707106781*(ae=j+mr),Ge=pn+We,rt=pn-We;Ue[et+40]=rt+Te,Ue[et+24]=rt-Te,Ue[et+8]=Ge+Ne,Ue[et+56]=Ge-Ne,et++}for(pt=0;pt<64;++pt)Nt=Ue[pt]*Ve[pt],h[pt]=Nt>0?Nt+.5|0:Nt-.5|0;return h})(y,L),Pe=0;Pe<64;++Pe)w[F[Pe]]=we[Pe];var De=w[0]-C;C=w[0],De==0?J(O[0]):(J(O[g[fe=32767+De]]),J(p[fe]));for(var He=63;He>0&&w[He]==0;)He--;if(He==0)return J(ce),C;for(var $e,Ee=1;Ee<=He;){for(var le=Ee;w[Ee]==0&&Ee<=He;)++Ee;var Me=Ee-le;if(Me>=16){$e=Me>>4;for(var nt=1;nt<=$e;++nt)J(he);Me&=15}fe=32767+w[Ee],J(H[(Me<<4)+g[fe]]),J(p[fe]),Ee++}return He!=63&&J(ce),C}function ie(y){y=Math.min(Math.max(y,1),100),a!=y&&((function(L){for(var C=[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],O=0;O<64;O++){var H=s((C[O]*L+50)/100);H=Math.min(Math.max(H,1),255),o[F[O]]=H}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],ce=0;ce<64;ce++){var he=s((fe[ce]*L+50)/100);he=Math.min(Math.max(he,1),255),f[F[ce]]=he}for(var we=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Pe=0,De=0;De<8;De++)for(var He=0;He<8;He++)c[Pe]=1/(o[F[Pe]]*we[De]*we[He]*8),u[Pe]=1/(f[F[Pe]]*we[De]*we[He]*8),Pe++})(y<50?Math.floor(5e3/y):Math.floor(200-2*y)),a=y)}this.encode=function(y,L){L&&ie(L),v=new Array,b=0,_=7,te(65496),te(65504),te(16),oe(74),oe(70),oe(73),oe(70),oe(0),oe(1),oe(1),oe(0),te(1),te(1),oe(0),oe(0),(function(){te(65499),te(132),oe(0);for(var Ze=0;Ze<64;Ze++)oe(o[Ze]);oe(1);for(var lt=0;lt<64;lt++)oe(f[lt])})(),(function(Ze,lt){te(65472),te(17),oe(8),te(lt),te(Ze),oe(3),oe(1),oe(17),oe(0),oe(2),oe(17),oe(1),oe(3),oe(17),oe(1)})(y.width,y.height),(function(){te(65476),te(418),oe(0);for(var Ze=0;Ze<16;Ze++)oe(P[Ze+1]);for(var lt=0;lt<=11;lt++)oe(D[lt]);oe(16);for(var ft=0;ft<16;ft++)oe(V[ft+1]);for(var vt=0;vt<=161;vt++)oe(E[vt]);oe(1);for(var St=0;St<16;St++)oe(T[St+1]);for(var Ft=0;Ft<=11;Ft++)oe(z[Ft]);oe(17);for(var Ct=0;Ct<16;Ct++)oe(Y[Ct+1]);for(var pt=0;pt<=161;pt++)oe(ue[pt])})(),te(65498),te(12),oe(3),oe(1),oe(0),oe(2),oe(17),oe(3),oe(17),oe(0),oe(63),oe(0);var C=0,O=0,H=0;b=0,_=7,this.encode.displayName="_encode_";for(var fe,ce,he,we,Pe,De,He,$e,Ee,le=y.data,Me=y.width,nt=y.height,Ue=4*Me,Ve=0;Ve<nt;){for(fe=0;fe<Ue;){for(Pe=Ue*Ve+fe,He=-1,$e=0,Ee=0;Ee<64;Ee++)De=Pe+($e=Ee>>3)*Ue+(He=4*(7&Ee)),Ve+$e>=nt&&(De-=Ue*(Ve+1+$e-nt)),fe+He>=Ue&&(De-=fe+He-Ue+4),ce=le[De++],he=le[De++],we=le[De++],S[Ee]=(K[ce]+K[he+256>>0]+K[we+512>>0]>>16)-128,A[Ee]=(K[ce+768>>0]+K[he+1024>>0]+K[we+1280>>0]>>16)-128,k[Ee]=(K[ce+1280>>0]+K[he+1536>>0]+K[we+1792>>0]>>16)-128;C=pe(S,c,C,r,n),O=pe(A,u,O,t,i),H=pe(k,u,H,t,i),fe+=32}Ve+=8}if(_>=0){var Ke=[];Ke[1]=_+1,Ke[0]=(1<<_+1)-1,J(Ke)}return te(65497),new Uint8Array(v)},e=e||50,(function(){for(var y=String.fromCharCode,L=0;L<256;L++)M[L]=y(L)})(),r=Q(P,D),t=Q(T,z),n=Q(V,E),i=Q(Y,ue),(function(){for(var y=1,L=2,C=1;C<=15;C++){for(var O=y;O<L;O++)g[32767+O]=C,p[32767+O]=[],p[32767+O][1]=C,p[32767+O][0]=O;for(var H=-(L-1);H<=-y;H++)g[32767+H]=C,p[32767+H]=[],p[32767+H][1]=C,p[32767+H][0]=L-1+H;y<<=1,L<<=1}})(),(function(){for(var y=0;y<256;y++)K[y]=19595*y,K[y+256>>0]=38470*y,K[y+512>>0]=7471*y+32768,K[y+768>>0]=-11059*y,K[y+1024>>0]=-21709*y,K[y+1280>>0]=32768*y+8421375,K[y+1536>>0]=-27439*y,K[y+1792>>0]=-5329*y})(),ie(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 ai(e,r){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!r,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 hu(e){function r(P){if(!P)throw Error("assert :P")}function t(P,D,V){for(var E=0;4>E;E++)if(P[D+E]!=V.charCodeAt(E))return!0;return!1}function n(P,D,V,E,T){for(var z=0;z<T;z++)P[D+z]=V[E+z]}function i(P,D,V,E){for(var T=0;T<E;T++)P[D+T]=V}function a(P){return new Int32Array(P)}function s(P,D){for(var V=[],E=0;E<P;E++)V.push(new D);return V}function o(P,D){var V=[];return(function E(T,z,Y){for(var ue=Y[z],Q=0;Q<ue&&(T.push(Y.length>z+1?[]:new D),!(Y.length<z+1));Q++)E(T[Q],z+1,Y)})(V,0,P),V}var f=function(){var P=this;function D(l,d){for(var x=1<<d-1>>>0;l&x;)x>>>=1;return x?(l&x-1)+x:l}function V(l,d,x,N,I){r(!(N%x));do l[d+(N-=x)]=I;while(0<N)}function E(l,d,x,N,I){if(r(2328>=I),512>=I)var B=a(512);else if((B=a(I))==null)return 0;return(function(U,W,G,ee,ge,Se){var Ae,xe,Re=W,Fe=1<<G,me=a(16),ve=a(16);for(r(ge!=0),r(ee!=null),r(U!=null),r(0<G),xe=0;xe<ge;++xe){if(15<ee[xe])return 0;++me[ee[xe]]}if(me[0]==ge)return 0;for(ve[1]=0,Ae=1;15>Ae;++Ae){if(me[Ae]>1<<Ae)return 0;ve[Ae+1]=ve[Ae]+me[Ae]}for(xe=0;xe<ge;++xe)Ae=ee[xe],0<ee[xe]&&(Se[ve[Ae]++]=xe);if(ve[15]==1)return(ee=new T).g=0,ee.value=Se[0],V(U,Re,1,Fe,ee),Fe;var Oe,je=-1,Ie=Fe-1,at=0,Je=1,dt=1,Qe=1<<G;for(xe=0,Ae=1,ge=2;Ae<=G;++Ae,ge<<=1){if(Je+=dt<<=1,0>(dt-=me[Ae]))return 0;for(;0<me[Ae];--me[Ae])(ee=new T).g=Ae,ee.value=Se[xe++],V(U,Re+at,ge,Qe,ee),at=D(at,Ae)}for(Ae=G+1,ge=2;15>=Ae;++Ae,ge<<=1){if(Je+=dt<<=1,0>(dt-=me[Ae]))return 0;for(;0<me[Ae];--me[Ae]){if(ee=new T,(at&Ie)!=je){for(Re+=Qe,Oe=1<<(je=Ae)-G;15>je&&!(0>=(Oe-=me[je]));)++je,Oe<<=1;Fe+=Qe=1<<(Oe=je-G),U[W+(je=at&Ie)].g=Oe+G,U[W+je].value=Re-W-je}ee.g=Ae-G,ee.value=Se[xe++],V(U,Re+(at>>G),ge,Qe,ee),at=D(at,Ae)}}return Je!=2*ve[15]-1?0:Fe})(l,d,x,N,I,B)}function T(){this.value=this.g=0}function z(){this.value=this.g=0}function Y(){this.G=s(5,T),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(zr,z)}function ue(l,d,x,N){r(l!=null),r(d!=null),r(2147483648>N),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=d,l.pa=x,l.Jd=d,l.Yc=x+N,l.Zc=4<=N?x+N-4+1:x,fe(l)}function Q(l,d){for(var x=0;0<d--;)x|=he(l,128)<<d;return x}function J(l,d){var x=Q(l,d);return ce(l)?-x:x}function oe(l,d,x,N){var I,B=0;for(r(l!=null),r(d!=null),r(4294967288>N),l.Sb=N,l.Ra=0,l.u=0,l.h=0,4<N&&(N=4),I=0;I<N;++I)B+=d[x+I]<<8*I;l.Ra=B,l.bb=N,l.oa=d,l.pa=x}function te(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<fs-8>>>0,++l.bb,l.u-=8;C(l)&&(l.h=1,l.u=0)}function pe(l,d){if(r(0<=d),!l.h&&d<=ls){var x=L(l)&os[d];return l.u+=d,te(l),x}return l.h=1,l.u=0}function ie(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function y(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(l){return l.Ra>>>(l.u&fs-1)>>>0}function C(l){return r(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>fs}function O(l,d){l.u=d,l.h=C(l)}function H(l){l.u>=no&&(r(l.u>=no),te(l))}function fe(l){r(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(r(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function ce(l){return Q(l,1)}function he(l,d){var x=l.Ca;0>l.b&&fe(l);var N=l.b,I=x*d>>>8,B=(l.I>>>N>I)+0;for(B?(x-=I,l.I-=I+1<<N>>>0):x=I+1,N=x,I=0;256<=N;)I+=8,N>>=8;return N=7^I+mn[N],l.b-=N,l.Ca=(x<<N)-1,B}function we(l,d,x){l[d+0]=x>>24&255,l[d+1]=x>>16&255,l[d+2]=x>>8&255,l[d+3]=x>>0&255}function Pe(l,d){return l[d+0]<<0|l[d+1]<<8}function De(l,d){return Pe(l,d)|l[d+2]<<16}function He(l,d){return Pe(l,d)|Pe(l,d+2)<<16}function $e(l,d){var x=1<<d;return r(l!=null),r(0<d),l.X=a(x),l.X==null?0:(l.Mb=32-d,l.Xa=d,1)}function Ee(l,d){r(l!=null),r(d!=null),r(l.Xa==d.Xa),n(d.X,0,l.X,0,1<<d.Xa)}function le(){this.X=[],this.Xa=this.Mb=0}function Me(l,d,x,N){r(x!=null),r(N!=null);var I=x[0],B=N[0];return I==0&&(I=(l*B+d/2)/d),B==0&&(B=(d*I+l/2)/l),0>=I||0>=B?0:(x[0]=I,N[0]=B,1)}function nt(l,d){return l+(1<<d)-1>>>d}function Ue(l,d){return((4278255360&l)+(4278255360&d)>>>0&4278255360)+((16711935&l)+(16711935&d)>>>0&16711935)>>>0}function Ve(l,d){P[d]=function(x,N,I,B,U,W,G){var ee;for(ee=0;ee<U;++ee){var ge=P[l](W[G+ee-1],I,B+ee);W[G+ee]=Ue(x[N+ee],ge)}}}function Ke(){this.ud=this.hd=this.jd=0}function Ze(l,d){return((4278124286&(l^d))>>>1)+(l&d)>>>0}function lt(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function ft(l,d){return lt(l+(l-d+.5>>1))}function vt(l,d,x){return Math.abs(d-x)-Math.abs(l-x)}function St(l,d,x,N,I,B,U){for(N=B[U-1],x=0;x<I;++x)B[U+x]=N=Ue(l[d+x],N)}function Ft(l,d,x,N,I){var B;for(B=0;B<x;++B){var U=l[d+B],W=U>>8&255,G=16711935&(G=(G=16711935&U)+((W<<16)+W));N[I+B]=(4278255360&U)+G>>>0}}function Ct(l,d){d.jd=l>>0&255,d.hd=l>>8&255,d.ud=l>>16&255}function pt(l,d,x,N,I,B){var U;for(U=0;U<N;++U){var W=d[x+U],G=W>>>8,ee=W,ge=255&(ge=(ge=W>>>16)+((l.jd<<24>>24)*(G<<24>>24)>>>5));ee=255&(ee=(ee=ee+((l.hd<<24>>24)*(G<<24>>24)>>>5))+((l.ud<<24>>24)*(ge<<24>>24)>>>5)),I[B+U]=(4278255360&W)+(ge<<16)+ee}}function Nt(l,d,x,N,I){P[d]=function(B,U,W,G,ee,ge,Se,Ae,xe){for(G=Se;G<Ae;++G)for(Se=0;Se<xe;++Se)ee[ge++]=I(W[N(B[U++])])},P[l]=function(B,U,W,G,ee,ge,Se){var Ae=8>>B.b,xe=B.Ea,Re=B.K[0],Fe=B.w;if(8>Ae)for(B=(1<<B.b)-1,Fe=(1<<Ae)-1;U<W;++U){var me,ve=0;for(me=0;me<xe;++me)me&B||(ve=N(G[ee++])),ge[Se++]=I(Re[ve&Fe]),ve>>=Ae}else P["VP8LMapColor"+x](G,ee,Re,Fe,ge,Se,U,W,xe)}}function et(l,d,x,N,I){for(x=d+x;d<x;){var B=l[d++];N[I++]=B>>16&255,N[I++]=B>>8&255,N[I++]=B>>0&255}}function Cr(l,d,x,N,I){for(x=d+x;d<x;){var B=l[d++];N[I++]=B>>16&255,N[I++]=B>>8&255,N[I++]=B>>0&255,N[I++]=B>>24&255}}function Pt(l,d,x,N,I){for(x=d+x;d<x;){var B=(U=l[d++])>>16&240|U>>12&15,U=U>>0&240|U>>28&15;N[I++]=B,N[I++]=U}}function dn(l,d,x,N,I){for(x=d+x;d<x;){var B=(U=l[d++])>>16&248|U>>13&7,U=U>>5&224|U>>3&31;N[I++]=B,N[I++]=U}}function Ut(l,d,x,N,I){for(x=d+x;d<x;){var B=l[d++];N[I++]=B>>0&255,N[I++]=B>>8&255,N[I++]=B>>16&255}}function tr(l,d,x,N,I,B){if(B==0)for(x=d+x;d<x;)we(N,((B=l[d++])[0]>>24|B[1]>>8&65280|B[2]<<8&16711680|B[3]<<24)>>>0),I+=32;else n(N,I,l,d,x)}function Mn(l,d){P[d][0]=P[l+"0"],P[d][1]=P[l+"1"],P[d][2]=P[l+"2"],P[d][3]=P[l+"3"],P[d][4]=P[l+"4"],P[d][5]=P[l+"5"],P[d][6]=P[l+"6"],P[d][7]=P[l+"7"],P[d][8]=P[l+"8"],P[d][9]=P[l+"9"],P[d][10]=P[l+"10"],P[d][11]=P[l+"11"],P[d][12]=P[l+"12"],P[d][13]=P[l+"13"],P[d][14]=P[l+"0"],P[d][15]=P[l+"0"]}function It(l){return l==Yl||l==Xl||l==S0||l==$l}function pi(){this.eb=[],this.size=this.A=this.fb=0}function ar(){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 An(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new pi,this.f.kb=new ar,this.sd=null}function Kn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Zt(){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 xt(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function Dt(l,d){var x=l.T,N=d.ba.f.RGBA,I=N.eb,B=N.fb+l.ka*N.A,U=Vn[d.ba.S],W=l.y,G=l.O,ee=l.f,ge=l.N,Se=l.ea,Ae=l.W,xe=d.cc,Re=d.dc,Fe=d.Mc,me=d.Nc,ve=l.ka,Oe=l.ka+l.T,je=l.U,Ie=je+1>>1;for(ve==0?U(W,G,null,null,ee,ge,Se,Ae,ee,ge,Se,Ae,I,B,null,null,je):(U(d.ec,d.fc,W,G,xe,Re,Fe,me,ee,ge,Se,Ae,I,B-N.A,I,B,je),++x);ve+2<Oe;ve+=2)xe=ee,Re=ge,Fe=Se,me=Ae,ge+=l.Rc,Ae+=l.Rc,B+=2*N.A,U(W,(G+=2*l.fa)-l.fa,W,G,xe,Re,Fe,me,ee,ge,Se,Ae,I,B-N.A,I,B,je);return G+=l.fa,l.j+Oe<l.o?(n(d.ec,d.fc,W,G,je),n(d.cc,d.dc,ee,ge,Ie),n(d.Mc,d.Nc,Se,Ae,Ie),x--):1&Oe||U(W,G,null,null,ee,ge,Se,Ae,ee,ge,Se,Ae,I,B+N.A,null,null,je),x}function Li(l,d,x){var N=l.F,I=[l.J];if(N!=null){var B=l.U,U=d.ba.S,W=U==_0||U==S0;d=d.ba.f.RGBA;var G=[0],ee=l.ka;G[0]=l.T,l.Kb&&(ee==0?--G[0]:(--ee,I[0]-=l.width),l.j+l.ka+l.T==l.o&&(G[0]=l.o-l.j-ee));var ge=d.eb;ee=d.fb+ee*d.A,l=nr(N,I[0],l.width,B,G,ge,ee+(W?0:3),d.A),r(x==G),l&&It(U)&&Hn(ge,ee,W,B,G,d.A)}return 0}function kr(l){var d=l.ma,x=d.ba.S,N=11>x,I=x==y0||x==b0||x==_0||x==Gl||x==12||It(x);if(d.memory=null,d.Ib=null,d.Jb=null,d.Nd=null,!to(d.Oa,l,I?11:12))return 0;if(I&&It(x)&&ze(),l.da)alert("todo:use_scaling");else{if(N){if(d.Ib=xt,l.Kb){if(x=l.U+1>>1,d.memory=a(l.U+2*x),d.memory==null)return 0;d.ec=d.memory,d.fc=0,d.cc=d.ec,d.dc=d.fc+l.U,d.Mc=d.cc,d.Nc=d.dc+x,d.Ib=Dt,ze()}}else alert("todo:EmitYUV");I&&(d.Jb=Li,N&&ye())}if(N&&!Lc){for(l=0;256>l;++l)zd[l]=89858*(l-128)+T0>>A0,qd[l]=-22014*(l-128)+T0,Hd[l]=-45773*(l-128),Wd[l]=113618*(l-128)+T0>>A0;for(l=co;l<Zl;++l)d=76283*(l-16)+T0>>A0,Vd[l-co]=En(d,255),Gd[l-co]=En(d+8>>4,15);Lc=1}return 1}function Bn(l){var d=l.ma,x=l.U,N=l.T;return r(!(1&l.ka)),0>=x||0>=N?0:(x=d.Ib(l,d),d.Jb!=null&&d.Jb(l,d,x),d.Dc+=x,1)}function jn(l){l.ma.memory=null}function ht(l,d,x,N){return pe(l,8)!=47?0:(d[0]=pe(l,14)+1,x[0]=pe(l,14)+1,N[0]=pe(l,1),pe(l,3)!=0?0:!l.h)}function Tn(l,d){if(4>l)return l+1;var x=l-2>>1;return(2+(1&l)<<x)+pe(d,x)+1}function pn(l,d){return 120<d?d-120:1<=(x=((x=Ed[d-1])>>4)*l+(8-(15&x)))?x:1;var x}function $r(l,d,x){var N=L(x),I=l[d+=255&N].g-8;return 0<I&&(O(x,x.u+8),N=L(x),d+=l[d].value,d+=N&(1<<I)-1),O(x,x.u+l[d].g),l[d].value}function mr(l,d,x){return x.g+=l.g,x.value+=l.value<<d>>>0,r(8>=x.g),l.g}function cr(l,d,x){var N=l.xc;return r((d=N==0?0:l.vc[l.md*(x>>N)+(d>>N)])<l.Wb),l.Ya[d]}function j(l,d,x,N){var I=l.ab,B=l.c*d,U=l.C;d=U+d;var W=x,G=N;for(N=l.Ta,x=l.Ua;0<I--;){var ee=l.gc[I],ge=U,Se=d,Ae=W,xe=G,Re=(G=N,W=x,ee.Ea);switch(r(ge<Se),r(Se<=ee.nc),ee.hc){case 2:d0(Ae,xe,(Se-ge)*Re,G,W);break;case 0:var Fe=ge,me=Se,ve=G,Oe=W,je=(Qe=ee).Ea;Fe==0&&(ql(Ae,xe,null,null,1,ve,Oe),St(Ae,xe+1,0,0,je-1,ve,Oe+1),xe+=je,Oe+=je,++Fe);for(var Ie=1<<Qe.b,at=Ie-1,Je=nt(je,Qe.b),dt=Qe.K,Qe=Qe.w+(Fe>>Qe.b)*Je;Fe<me;){var Bt=dt,Ht=Qe,Rt=1;for(io(Ae,xe,ve,Oe-je,1,ve,Oe);Rt<je;){var kt=(Rt&~at)+Ie;kt>je&&(kt=je),(0,Ki[Bt[Ht++]>>8&15])(Ae,xe+ +Rt,ve,Oe+Rt-je,kt-Rt,ve,Oe+Rt),Rt=kt}xe+=je,Oe+=je,++Fe&at||(Qe+=Je)}Se!=ee.nc&&n(G,W-Re,G,W+(Se-ge-1)*Re,Re);break;case 1:for(Re=Ae,me=xe,je=(Ae=ee.Ea)-(Oe=Ae&~(ve=(xe=1<<ee.b)-1)),Fe=nt(Ae,ee.b),Ie=ee.K,ee=ee.w+(ge>>ee.b)*Fe;ge<Se;){for(at=Ie,Je=ee,dt=new Ke,Qe=me+Oe,Bt=me+Ae;me<Qe;)Ct(at[Je++],dt),Ea(dt,Re,me,xe,G,W),me+=xe,W+=xe;me<Bt&&(Ct(at[Je++],dt),Ea(dt,Re,me,je,G,W),me+=je,W+=je),++ge&ve||(ee+=Fe)}break;case 3:if(Ae==G&&xe==W&&0<ee.b){for(me=G,Ae=Re=W+(Se-ge)*Re-(Oe=(Se-ge)*nt(ee.Ea,ee.b)),xe=G,ve=W,Fe=[],Oe=(je=Oe)-1;0<=Oe;--Oe)Fe[Oe]=xe[ve+Oe];for(Oe=je-1;0<=Oe;--Oe)me[Ae+Oe]=Fe[Oe];Un(ee,ge,Se,G,Re,G,W)}else Un(ee,ge,Se,Ae,xe,G,W)}W=N,G=x}G!=x&&n(N,x,W,G,B)}function ne(l,d){var x=l.V,N=l.Ba+l.c*l.C,I=d-l.C;if(r(d<=l.l.o),r(16>=I),0<I){var B=l.l,U=l.Ta,W=l.Ua,G=B.width;if(j(l,I,x,N),I=W=[W],r((x=l.C)<(N=d)),r(B.v<B.va),N>B.o&&(N=B.o),x<B.j){var ee=B.j-x;x=B.j,I[0]+=ee*G}if(x>=N?x=0:(I[0]+=4*B.v,B.ka=x-B.j,B.U=B.va-B.v,B.T=N-x,x=1),x){if(W=W[0],11>(x=l.ca).S){var ge=x.f.RGBA,Se=(N=x.S,I=B.U,B=B.T,ee=ge.eb,ge.A),Ae=B;for(ge=ge.fb+l.Ma*ge.A;0<Ae--;){var xe=U,Re=W,Fe=I,me=ee,ve=ge;switch(N){case w0:vn(xe,Re,Fe,me,ve);break;case y0:sn(xe,Re,Fe,me,ve);break;case Yl:sn(xe,Re,Fe,me,ve),Hn(me,ve,0,Fe,1,0);break;case wc:Oi(xe,Re,Fe,me,ve);break;case b0:tr(xe,Re,Fe,me,ve,1);break;case Xl:tr(xe,Re,Fe,me,ve,1),Hn(me,ve,0,Fe,1,0);break;case _0:tr(xe,Re,Fe,me,ve,0);break;case S0:tr(xe,Re,Fe,me,ve,0),Hn(me,ve,1,Fe,1,0);break;case Gl:Ji(xe,Re,Fe,me,ve);break;case $l:Ji(xe,Re,Fe,me,ve),rr(me,ve,Fe,1,0);break;case yc:Pi(xe,Re,Fe,me,ve);break;default:r(0)}W+=G,ge+=Se}l.Ma+=B}else alert("todo:EmitRescaledRowsYUVA");r(l.Ma<=x.height)}}l.C=d,r(l.C<=l.i)}function X(l){var d;if(0<l.ua)return 0;for(d=0;d<l.Wb;++d){var x=l.Ya[d].G,N=l.Ya[d].H;if(0<x[1][N[1]+0].g||0<x[2][N[2]+0].g||0<x[3][N[3]+0].g)return 0}return 1}function Z(l,d,x,N,I,B){if(l.Z!=0){var U=l.qd,W=l.rd;for(r(ta[l.Z]!=null);d<x;++d)ta[l.Z](U,W,N,I,N,I,B),U=N,W=I,I+=B;l.qd=U,l.rd=W}}function re(l,d){var x=l.l.ma,N=x.Z==0||x.Z==1?l.l.j:l.C;if(N=l.C<N?N:l.C,r(d<=l.l.o),d>N){var I=l.l.width,B=x.ca,U=x.tb+I*N,W=l.V,G=l.Ba+l.c*N,ee=l.gc;r(l.ab==1),r(ee[0].hc==3),p0(ee[0],N,d,W,G,B,U),Z(x,N,d,B,U,I)}l.C=l.Ma=d}function ae(l,d,x,N,I,B,U){var W=l.$/N,G=l.$%N,ee=l.m,ge=l.s,Se=x+l.$,Ae=Se;I=x+N*I;var xe=x+N*B,Re=280+ge.ua,Fe=l.Pb?W:16777216,me=0<ge.ua?ge.Wa:null,ve=ge.wc,Oe=Se<xe?cr(ge,G,W):null;r(l.C<B),r(xe<=I);var je=!1;e:for(;;){for(;je||Se<xe;){var Ie=0;if(W>=Fe){var at=Se-x;r((Fe=l).Pb),Fe.wd=Fe.m,Fe.xd=at,0<Fe.s.ua&&Ee(Fe.s.Wa,Fe.s.vb),Fe=W+Fd}if(G&ve||(Oe=cr(ge,G,W)),r(Oe!=null),Oe.Qb&&(d[Se]=Oe.qb,je=!0),!je)if(H(ee),Oe.jc){Ie=ee,at=d;var Je=Se,dt=Oe.pd[L(Ie)&zr-1];r(Oe.jc),256>dt.g?(O(Ie,Ie.u+dt.g),at[Je]=dt.value,Ie=0):(O(Ie,Ie.u+dt.g-256),r(256<=dt.value),Ie=dt.value),Ie==0&&(je=!0)}else Ie=$r(Oe.G[0],Oe.H[0],ee);if(ee.h)break;if(je||256>Ie){if(!je)if(Oe.nd)d[Se]=(Oe.qb|Ie<<8)>>>0;else{if(H(ee),je=$r(Oe.G[1],Oe.H[1],ee),H(ee),at=$r(Oe.G[2],Oe.H[2],ee),Je=$r(Oe.G[3],Oe.H[3],ee),ee.h)break;d[Se]=(Je<<24|je<<16|Ie<<8|at)>>>0}if(je=!1,++Se,++G>=N&&(G=0,++W,U!=null&&W<=B&&!(W%16)&&U(l,W),me!=null))for(;Ae<Se;)Ie=d[Ae++],me.X[(506832829*Ie&4294967295)>>>me.Mb]=Ie}else if(280>Ie){if(Ie=Tn(Ie-256,ee),at=$r(Oe.G[4],Oe.H[4],ee),H(ee),at=pn(N,at=Tn(at,ee)),ee.h)break;if(Se-x<at||I-Se<Ie)break e;for(Je=0;Je<Ie;++Je)d[Se+Je]=d[Se+Je-at];for(Se+=Ie,G+=Ie;G>=N;)G-=N,++W,U!=null&&W<=B&&!(W%16)&&U(l,W);if(r(Se<=I),G&ve&&(Oe=cr(ge,G,W)),me!=null)for(;Ae<Se;)Ie=d[Ae++],me.X[(506832829*Ie&4294967295)>>>me.Mb]=Ie}else{if(!(Ie<Re))break e;for(je=Ie-280,r(me!=null);Ae<Se;)Ie=d[Ae++],me.X[(506832829*Ie&4294967295)>>>me.Mb]=Ie;Ie=Se,r(!(je>>>(at=me).Xa)),d[Ie]=at.X[je],je=!0}je||r(ee.h==C(ee))}if(l.Pb&&ee.h&&Se<I)r(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&Ee(l.s.vb,l.s.Wa);else{if(ee.h)break e;U!=null&&U(l,W>B?B:W),l.a=0,l.$=Se-x}return 1}return l.a=3,0}function _e(l){r(l!=null),l.vc=null,l.yc=null,l.Ya=null;var d=l.Wa;d!=null&&(d.X=null),l.vb=null,r(l!=null)}function Le(){var l=new Hl;return l==null?null:(l.a=0,l.xb=Sc,Mn("Predictor","VP8LPredictors"),Mn("Predictor","VP8LPredictors_C"),Mn("PredictorAdd","VP8LPredictorsAdd"),Mn("PredictorAdd","VP8LPredictorsAdd_C"),d0=Ft,Ea=pt,vn=et,sn=Cr,Ji=Pt,Pi=dn,Oi=Ut,P.VP8LMapColor32b=cs,P.VP8LMapColor8b=g0,l)}function be(l,d,x,N,I){var B=1,U=[l],W=[d],G=N.m,ee=N.s,ge=null,Se=0;e:for(;;){if(x)for(;B&&pe(G,1);){var Ae=U,xe=W,Re=N,Fe=1,me=Re.m,ve=Re.gc[Re.ab],Oe=pe(me,2);if(Re.Oc&1<<Oe)B=0;else{switch(Re.Oc|=1<<Oe,ve.hc=Oe,ve.Ea=Ae[0],ve.nc=xe[0],ve.K=[null],++Re.ab,r(4>=Re.ab),Oe){case 0:case 1:ve.b=pe(me,3)+2,Fe=be(nt(ve.Ea,ve.b),nt(ve.nc,ve.b),0,Re,ve.K),ve.K=ve.K[0];break;case 3:var je,Ie=pe(me,8)+1,at=16<Ie?0:4<Ie?1:2<Ie?2:3;if(Ae[0]=nt(ve.Ea,at),ve.b=at,je=Fe=be(Ie,1,0,Re,ve.K)){var Je,dt=Ie,Qe=ve,Bt=1<<(8>>Qe.b),Ht=a(Bt);if(Ht==null)je=0;else{var Rt=Qe.K[0],kt=Qe.w;for(Ht[0]=Qe.K[0][0],Je=1;Je<1*dt;++Je)Ht[Je]=Ue(Rt[kt+Je],Ht[Je-1]);for(;Je<4*Bt;++Je)Ht[Je]=0;Qe.K[0]=null,Qe.K[0]=Ht,je=1}}Fe=je;break;case 2:break;default:r(0)}B=Fe}}if(U=U[0],W=W[0],B&&pe(G,1)&&!(B=1<=(Se=pe(G,4))&&11>=Se)){N.a=3;break e}var Qt;if(Qt=B)t:{var Kt,At,Tr,xn=N,Nr=U,wn=W,qt=Se,Fn=x,Cn=xn.m,Dr=xn.s,Wr=[null],ln=1,Gn=0,yi=Ld[qt];r:for(;;){if(Fn&&pe(Cn,1)){var Mr=pe(Cn,3)+2,Mi=nt(Nr,Mr),Pa=nt(wn,Mr),gs=Mi*Pa;if(!be(Mi,Pa,0,xn,Wr))break r;for(Wr=Wr[0],Dr.xc=Mr,Kt=0;Kt<gs;++Kt){var ra=Wr[Kt]>>8&65535;Wr[Kt]=ra,ra>=ln&&(ln=ra+1)}}if(Cn.h)break r;for(At=0;5>At;++At){var hr=bc[At];!At&&0<qt&&(hr+=1<<qt),Gn<hr&&(Gn=hr)}var Ql=s(ln*yi,T),kc=ln,Pc=s(kc,Y);if(Pc==null)var E0=null;else r(65536>=kc),E0=Pc;var uo=a(Gn);if(E0==null||uo==null||Ql==null){xn.a=1;break r}var L0=Ql;for(Kt=Tr=0;Kt<ln;++Kt){var ni=E0[Kt],ms=ni.G,vs=ni.H,Oc=0,F0=1,Ic=0;for(At=0;5>At;++At){hr=bc[At],ms[At]=L0,vs[At]=Tr,!At&&0<qt&&(hr+=1<<qt);i:{var C0,ef=hr,k0=xn,ho=uo,$d=L0,Kd=Tr,tf=0,na=k0.m,Jd=pe(na,1);if(i(ho,0,0,ef),Jd){var Zd=pe(na,1)+1,Qd=pe(na,1),Rc=pe(na,Qd==0?1:8);ho[Rc]=1,Zd==2&&(ho[Rc=pe(na,8)]=1);var P0=1}else{var Dc=a(19),Mc=pe(na,4)+4;if(19<Mc){k0.a=3;var O0=0;break i}for(C0=0;C0<Mc;++C0)Dc[Nd[C0]]=pe(na,3);var rf=void 0,po=void 0,Bc=k0,e2=Dc,I0=ef,jc=ho,nf=0,ia=Bc.m,Uc=8,zc=s(128,T);n:for(;E(zc,0,7,e2,19);){if(pe(ia,1)){var t2=2+2*pe(ia,3);if((rf=2+pe(ia,t2))>I0)break n}else rf=I0;for(po=0;po<I0&&rf--;){H(ia);var Wc=zc[0+(127&L(ia))];O(ia,ia.u+Wc.g);var xs=Wc.value;if(16>xs)jc[po++]=xs,xs!=0&&(Uc=xs);else{var r2=xs==16,Hc=xs-16,n2=Ad[Hc],qc=pe(ia,Sd[Hc])+n2;if(po+qc>I0)break n;for(var i2=r2?Uc:0;0<qc--;)jc[po++]=i2}}nf=1;break n}nf||(Bc.a=3),P0=nf}(P0=P0&&!na.h)&&(tf=E($d,Kd,8,ho,ef)),P0&&tf!=0?O0=tf:(k0.a=3,O0=0)}if(O0==0)break r;if(F0&&Td[At]==1&&(F0=L0[Tr].g==0),Oc+=L0[Tr].g,Tr+=O0,3>=At){var go,af=uo[0];for(go=1;go<hr;++go)uo[go]>af&&(af=uo[go]);Ic+=af}}if(ni.nd=F0,ni.Qb=0,F0&&(ni.qb=(ms[3][vs[3]+0].value<<24|ms[1][vs[1]+0].value<<16|ms[2][vs[2]+0].value)>>>0,Oc==0&&256>ms[0][vs[0]+0].value&&(ni.Qb=1,ni.qb+=ms[0][vs[0]+0].value<<8)),ni.jc=!ni.Qb&&6>Ic,ni.jc){var R0,Bi=ni;for(R0=0;R0<zr;++R0){var aa=R0,sa=Bi.pd[aa],D0=Bi.G[0][Bi.H[0]+aa];256<=D0.value?(sa.g=D0.g+256,sa.value=D0.value):(sa.g=0,sa.value=0,aa>>=mr(D0,8,sa),aa>>=mr(Bi.G[1][Bi.H[1]+aa],16,sa),aa>>=mr(Bi.G[2][Bi.H[2]+aa],0,sa),mr(Bi.G[3][Bi.H[3]+aa],24,sa))}}}Dr.vc=Wr,Dr.Wb=ln,Dr.Ya=E0,Dr.yc=Ql,Qt=1;break t}Qt=0}if(!(B=Qt)){N.a=3;break e}if(0<Se){if(ee.ua=1<<Se,!$e(ee.Wa,Se)){N.a=1,B=0;break e}}else ee.ua=0;var sf=N,Vc=U,a2=W,of=sf.s,lf=of.xc;if(sf.c=Vc,sf.i=a2,of.md=nt(Vc,lf),of.wc=lf==0?-1:(1<<lf)-1,x){N.xb=Dd;break e}if((ge=a(U*W))==null){N.a=1,B=0;break e}B=(B=ae(N,ge,0,U,W,W,null))&&!G.h;break e}return B?(I!=null?I[0]=ge:(r(ge==null),r(x)),N.$=0,x||_e(ee)):_e(ee),B}function Te(l,d){var x=l.c*l.i,N=x+d+16*d;return r(l.c<=d),l.V=a(N),l.V==null?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+x+d,1)}function Ne(l,d){var x=l.C,N=d-x,I=l.V,B=l.Ba+l.c*x;for(r(d<=l.l.o);0<N;){var U=16<N?16:N,W=l.l.ma,G=l.l.width,ee=G*U,ge=W.ca,Se=W.tb+G*x,Ae=l.Ta,xe=l.Ua;j(l,U,I,B),wr(Ae,xe,ge,Se,ee),Z(W,x,x+U,ge,Se,G),N-=U,I+=U*l.c,x+=U}r(x==d),l.C=l.Ma=d}function We(){this.ub=this.yd=this.td=this.Rb=0}function Ge(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function rt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function qe(){this.Yb=(function(){var l=[];return(function d(x,N,I){for(var B=I[N],U=0;U<B&&(x.push(I.length>N+1?[]:0),!(I.length<N+1));U++)d(x[U],N+1,I)})(l,0,[3,11]),l})()}function tt(){this.jb=a(3),this.Wc=o([4,8],qe),this.Xc=o([4,17],qe)}function mt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function zt(){this.ld=this.La=this.dd=this.tc=0}function $t(){this.Na=this.la=0}function Sr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Jn(){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 Fi(){this.uc=this.M=this.Nb=0,this.wa=Array(new zt),this.Y=0,this.ya=Array(new Jn),this.aa=0,this.l=new mi}function gi(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Zn(){this.cb=this.a=0,this.sc="",this.m=new ie,this.Od=new We,this.Kc=new Ge,this.ed=new mt,this.Qa=new rt,this.Ic=this.$c=this.Aa=0,this.D=new Fi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,ie),this.ia=0,this.pb=s(4,Sr),this.Pa=new tt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new gi),this.Hd=0,this.rb=Array(new $t),this.sb=0,this.wa=Array(new zt),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 Jn),this.L=this.aa=0,this.gd=o([4,2],zt),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 mi(){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 Nn(){var l=new Zn;return l!=null&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,fo||(fo=Zo)),l}function vr(l,d,x){return l.a==0&&(l.a=d,l.sc=x,l.cb=0),0}function Ko(l,d,x){return 3<=x&&l[d+0]==157&&l[d+1]==1&&l[d+2]==42}function Jo(l,d){if(l==null)return 0;if(l.a=0,l.sc="OK",d==null)return vr(l,2,"null VP8Io passed to VP8GetHeaders()");var x=d.data,N=d.w,I=d.ha;if(4>I)return vr(l,7,"Truncated header.");var B=x[N+0]|x[N+1]<<8|x[N+2]<<16,U=l.Od;if(U.Rb=!(1&B),U.td=B>>1&7,U.yd=B>>4&1,U.ub=B>>5,3<U.td)return vr(l,3,"Incorrect keyframe parameters.");if(!U.yd)return vr(l,4,"Frame not displayable.");N+=3,I-=3;var W=l.Kc;if(U.Rb){if(7>I)return vr(l,7,"cannot parse picture header");if(!Ko(x,N,I))return vr(l,3,"Bad code word");W.c=16383&(x[N+4]<<8|x[N+3]),W.Td=x[N+4]>>6,W.i=16383&(x[N+6]<<8|x[N+5]),W.Ud=x[N+6]>>6,N+=7,I-=7,l.za=W.c+15>>4,l.Ub=W.i+15>>4,d.width=W.c,d.height=W.i,d.Da=0,d.j=0,d.v=0,d.va=d.width,d.o=d.height,d.da=0,d.ib=d.width,d.hb=d.height,d.U=d.width,d.T=d.height,i((B=l.Pa).jb,0,255,B.jb.length),r((B=l.Qa)!=null),B.Cb=0,B.Bb=0,B.Fb=1,i(B.Zb,0,0,B.Zb.length),i(B.Lb,0,0,B.Lb)}if(U.ub>I)return vr(l,7,"bad partition length");ue(B=l.m,x,N,U.ub),N+=U.ub,I-=U.ub,U.Rb&&(W.Ld=ce(B),W.Kd=ce(B)),W=l.Qa;var G,ee=l.Pa;if(r(B!=null),r(W!=null),W.Cb=ce(B),W.Cb){if(W.Bb=ce(B),ce(B)){for(W.Fb=ce(B),G=0;4>G;++G)W.Zb[G]=ce(B)?J(B,7):0;for(G=0;4>G;++G)W.Lb[G]=ce(B)?J(B,6):0}if(W.Bb)for(G=0;3>G;++G)ee.jb[G]=ce(B)?Q(B,8):255}else W.Bb=0;if(B.Ka)return vr(l,3,"cannot parse segment header");if((W=l.ed).zd=ce(B),W.Tb=Q(B,6),W.wb=Q(B,3),W.Pc=ce(B),W.Pc&&ce(B)){for(ee=0;4>ee;++ee)ce(B)&&(W.vd[ee]=J(B,6));for(ee=0;4>ee;++ee)ce(B)&&(W.od[ee]=J(B,6))}if(l.L=W.Tb==0?0:W.zd?1:2,B.Ka)return vr(l,3,"cannot parse filter header");var ge=I;if(I=G=N,N=G+ge,W=ge,l.Xb=(1<<Q(l.m,2))-1,ge<3*(ee=l.Xb))x=7;else{for(G+=3*ee,W-=3*ee,ge=0;ge<ee;++ge){var Se=x[I+0]|x[I+1]<<8|x[I+2]<<16;Se>W&&(Se=W),ue(l.Jc[+ge],x,G,Se),G+=Se,W-=Se,I+=3}ue(l.Jc[+ee],x,G,W),x=G<N?0:5}if(x!=0)return vr(l,x,"cannot parse partitions");for(x=Q(G=l.m,7),I=ce(G)?J(G,4):0,N=ce(G)?J(G,4):0,W=ce(G)?J(G,4):0,ee=ce(G)?J(G,4):0,G=ce(G)?J(G,4):0,ge=l.Qa,Se=0;4>Se;++Se){if(ge.Cb){var Ae=ge.Zb[Se];ge.Fb||(Ae+=x)}else{if(0<Se){l.pb[Se]=l.pb[0];continue}Ae=x}var xe=l.pb[Se];xe.Sc[0]=Kl[En(Ae+I,127)],xe.Sc[1]=Jl[En(Ae+0,127)],xe.Eb[0]=2*Kl[En(Ae+N,127)],xe.Eb[1]=101581*Jl[En(Ae+W,127)]>>16,8>xe.Eb[1]&&(xe.Eb[1]=8),xe.Qc[0]=Kl[En(Ae+ee,117)],xe.Qc[1]=Jl[En(Ae+G,127)],xe.lc=Ae+G}if(!U.Rb)return vr(l,4,"Not a key frame.");for(ce(B),U=l.Pa,x=0;4>x;++x){for(I=0;8>I;++I)for(N=0;3>N;++N)for(W=0;11>W;++W)ee=he(B,Id[x][I][N][W])?Q(B,8):Pd[x][I][N][W],U.Wc[x][I].Yb[N][W]=ee;for(I=0;17>I;++I)U.Xc[x][I]=U.Wc[x][Rd[I]]}return l.kc=ce(B),l.kc&&(l.Bd=Q(B,8)),l.cb=1}function Zo(l,d,x,N,I,B,U){var W=d[I].Yb[x];for(x=0;16>I;++I){if(!he(l,W[x+0]))return I;for(;!he(l,W[x+1]);)if(W=d[++I].Yb[0],x=0,I==16)return 16;var G=d[I+1].Yb;if(he(l,W[x+2])){var ee=l,ge=0;if(he(ee,(Ae=W)[(Se=x)+3]))if(he(ee,Ae[Se+6])){for(W=0,Se=2*(ge=he(ee,Ae[Se+8]))+(Ae=he(ee,Ae[Se+9+ge])),ge=0,Ae=Cd[Se];Ae[W];++W)ge+=ge+he(ee,Ae[W]);ge+=3+(8<<Se)}else he(ee,Ae[Se+7])?(ge=7+2*he(ee,165),ge+=he(ee,145)):ge=5+he(ee,159);else ge=he(ee,Ae[Se+4])?3+he(ee,Ae[Se+5]):2;W=G[2]}else ge=1,W=G[1];G=U+kd[I],0>(ee=l).b&&fe(ee);var Se,Ae=ee.b,xe=(Se=ee.Ca>>1)-(ee.I>>Ae)>>31;--ee.b,ee.Ca+=xe,ee.Ca|=1,ee.I-=(Se+1&xe)<<Ae,B[G]=((ge^xe)-xe)*N[(0<I)+0]}return 16}function Us(l){var d=l.rb[l.sb-1];d.la=0,d.Na=0,i(l.zc,0,0,l.zc.length),l.ja=0}function Nl(l,d){if(l==null)return 0;if(d==null)return vr(l,2,"NULL VP8Io parameter in VP8Decode().");if(!l.cb&&!Jo(l,d))return 0;if(r(l.cb),d.ac==null||d.ac(d)){d.ob&&(l.L=0);var x=N0[l.L];if(l.L==2?(l.yb=0,l.zb=0):(l.yb=d.v-x>>4,l.zb=d.j-x>>4,0>l.yb&&(l.yb=0),0>l.zb&&(l.zb=0)),l.Va=d.o+15+x>>4,l.Hb=d.va+15+x>>4,l.Hb>l.za&&(l.Hb=l.za),l.Va>l.Ub&&(l.Va=l.Ub),0<l.L){var N=l.ed;for(x=0;4>x;++x){var I;if(l.Qa.Cb){var B=l.Qa.Lb[x];l.Qa.Fb||(B+=N.Tb)}else B=N.Tb;for(I=0;1>=I;++I){var U=l.gd[x][I],W=B;if(N.Pc&&(W+=N.vd[0],I&&(W+=N.od[0])),0<(W=0>W?0:63<W?63:W)){var G=W;0<N.wb&&(G=4<N.wb?G>>2:G>>1)>9-N.wb&&(G=9-N.wb),1>G&&(G=1),U.dd=G,U.tc=2*W+G,U.ld=40<=W?2:15<=W?1:0}else U.tc=0;U.La=I}}}x=0}else vr(l,6,"Frame setup failed"),x=l.a;if(x=x==0){if(x){l.$c=0,0<l.Aa||(l.Ic=Xd);e:{x=l.Ic,N=4*(G=l.za);var ee=32*G,ge=G+1,Se=0<l.L?G*(0<l.Aa?2:1):0,Ae=(l.Aa==2?2:1)*G;if((U=N+832+(I=3*(16*x+N0[l.L])/2*ee)+(B=l.Fa!=null&&0<l.Fa.length?l.Kc.c*l.Kc.i:0))!=U)x=0;else{if(U>l.Vb){if(l.Vb=0,l.Ec=a(U),l.Fc=0,l.Ec==null){x=vr(l,1,"no memory during frame initialization.");break e}l.Vb=U}U=l.Ec,W=l.Fc,l.Ac=U,l.Bc=W,W+=N,l.Gd=s(ee,gi),l.Hd=0,l.rb=s(ge+1,$t),l.sb=1,l.wa=Se?s(Se,zt):null,l.Y=0,l.D.Nb=0,l.D.wa=l.wa,l.D.Y=l.Y,0<l.Aa&&(l.D.Y+=G),r(!0),l.oc=U,l.pc=W,W+=832,l.ya=s(Ae,Jn),l.aa=0,l.D.ya=l.ya,l.D.aa=l.aa,l.Aa==2&&(l.D.aa+=G),l.R=16*G,l.B=8*G,G=(ee=N0[l.L])*l.R,ee=ee/2*l.B,l.sa=U,l.ta=W+G,l.qa=l.sa,l.ra=l.ta+16*x*l.R+ee,l.Ha=l.qa,l.Ia=l.ra+8*x*l.B+ee,l.$c=0,W+=I,l.mb=B?U:null,l.nb=B?W:null,r(W+B<=l.Fc+l.Vb),Us(l),i(l.Ac,l.Bc,0,N),x=1}}if(x){if(d.ka=0,d.y=l.sa,d.O=l.ta,d.f=l.qa,d.N=l.ra,d.ea=l.Ha,d.Vd=l.Ia,d.fa=l.R,d.Rc=l.B,d.F=null,d.J=0,!v0){for(x=-255;255>=x;++x)Pr[255+x]=0>x?-x:x;for(x=-1020;1020>=x;++x)Ri[1020+x]=-128>x?-128:127<x?127:x;for(x=-112;112>=x;++x)lo[112+x]=-16>x?-16:15<x?15:x;for(x=-255;510>=x;++x)ps[255+x]=0>x?0:255<x?255:x;v0=1}us=Fl,Ii=El,ao=e0,on=Ll,zn=t0,xr=Qo,hs=Gs,m0=Ta,so=Wl,La=Ys,Fa=zl,Zi=rs,Ca=Xs,ds=c0,ka=f0,Qi=xi,oo=ki,Wn=Ul,ri[0]=vi,ri[1]=Cl,ri[2]=Il,ri[3]=Rl,ri[4]=i0,ri[5]=es,ri[6]=a0,ri[7]=Hs,ri[8]=Ml,ri[9]=Dl,ea[0]=r0,ea[1]=Pl,ea[2]=Ci,ea[3]=Za,ea[4]=Kr,ea[5]=Ol,ea[6]=n0,Di[0]=Yi,Di[1]=kl,Di[2]=Bl,Di[3]=qs,Di[4]=Aa,Di[5]=jl,Di[6]=Vs,x=1}else x=0}x&&(x=(function(xe,Re){for(xe.M=0;xe.M<xe.Va;++xe.M){var Fe,me=xe.Jc[xe.M&xe.Xb],ve=xe.m,Oe=xe;for(Fe=0;Fe<Oe.za;++Fe){var je=ve,Ie=Oe,at=Ie.Ac,Je=Ie.Bc+4*Fe,dt=Ie.zc,Qe=Ie.ya[Ie.aa+Fe];if(Ie.Qa.Bb?Qe.$b=he(je,Ie.Pa.jb[0])?2+he(je,Ie.Pa.jb[2]):he(je,Ie.Pa.jb[1]):Qe.$b=0,Ie.kc&&(Qe.Ad=he(je,Ie.Bd)),Qe.Za=!he(je,145)+0,Qe.Za){var Bt=Qe.Ob,Ht=0;for(Ie=0;4>Ie;++Ie){var Rt,kt=dt[0+Ie];for(Rt=0;4>Rt;++Rt){kt=Od[at[Je+Rt]][kt];for(var Qt=_c[he(je,kt[0])];0<Qt;)Qt=_c[2*Qt+he(je,kt[Qt])];kt=-Qt,at[Je+Rt]=kt}n(Bt,Ht,at,Je,4),Ht+=4,dt[0+Ie]=kt}}else kt=he(je,156)?he(je,128)?1:3:he(je,163)?2:0,Qe.Ob[0]=kt,i(at,Je,kt,4),i(dt,0,kt,4);Qe.Dd=he(je,142)?he(je,114)?he(je,183)?1:3:2:0}if(Oe.m.Ka)return vr(xe,7,"Premature end-of-partition0 encountered.");for(;xe.ja<xe.za;++xe.ja){if(Oe=me,je=(ve=xe).rb[ve.sb-1],at=ve.rb[ve.sb+ve.ja],Fe=ve.ya[ve.aa+ve.ja],Je=ve.kc?Fe.Ad:0)je.la=at.la=0,Fe.Za||(je.Na=at.Na=0),Fe.Hc=0,Fe.Gc=0,Fe.ia=0;else{var Kt,At;if(je=at,at=Oe,Je=ve.Pa.Xc,dt=ve.ya[ve.aa+ve.ja],Qe=ve.pb[dt.$b],Ie=dt.ad,Bt=0,Ht=ve.rb[ve.sb-1],kt=Rt=0,i(Ie,Bt,0,384),dt.Za)var Tr=0,xn=Je[3];else{Qt=a(16);var Nr=je.Na+Ht.Na;if(Nr=fo(at,Je[1],Nr,Qe.Eb,0,Qt,0),je.Na=Ht.Na=(0<Nr)+0,1<Nr)us(Qt,0,Ie,Bt);else{var wn=Qt[0]+3>>3;for(Qt=0;256>Qt;Qt+=16)Ie[Bt+Qt]=wn}Tr=1,xn=Je[0]}var qt=15&je.la,Fn=15&Ht.la;for(Qt=0;4>Qt;++Qt){var Cn=1&Fn;for(wn=At=0;4>wn;++wn)qt=qt>>1|(Cn=(Nr=fo(at,xn,Nr=Cn+(1&qt),Qe.Sc,Tr,Ie,Bt))>Tr)<<7,At=At<<2|(3<Nr?3:1<Nr?2:Ie[Bt+0]!=0),Bt+=16;qt>>=4,Fn=Fn>>1|Cn<<7,Rt=(Rt<<8|At)>>>0}for(xn=qt,Tr=Fn>>4,Kt=0;4>Kt;Kt+=2){for(At=0,qt=je.la>>4+Kt,Fn=Ht.la>>4+Kt,Qt=0;2>Qt;++Qt){for(Cn=1&Fn,wn=0;2>wn;++wn)Nr=Cn+(1&qt),qt=qt>>1|(Cn=0<(Nr=fo(at,Je[2],Nr,Qe.Qc,0,Ie,Bt)))<<3,At=At<<2|(3<Nr?3:1<Nr?2:Ie[Bt+0]!=0),Bt+=16;qt>>=2,Fn=Fn>>1|Cn<<5}kt|=At<<4*Kt,xn|=qt<<4<<Kt,Tr|=(240&Fn)<<Kt}je.la=xn,Ht.la=Tr,dt.Hc=Rt,dt.Gc=kt,dt.ia=43690&kt?0:Qe.ia,Je=!(Rt|kt)}if(0<ve.L&&(ve.wa[ve.Y+ve.ja]=ve.gd[Fe.$b][Fe.Za],ve.wa[ve.Y+ve.ja].La|=!Je),Oe.Ka)return vr(xe,7,"Premature end-of-file encountered.")}if(Us(xe),ve=Re,Oe=1,Fe=(me=xe).D,je=0<me.L&&me.M>=me.zb&&me.M<=me.Va,me.Aa==0)e:{if(Fe.M=me.M,Fe.uc=je,eo(me,Fe),Oe=1,Fe=(At=me.D).Nb,je=(kt=N0[me.L])*me.R,at=kt/2*me.B,Qt=16*Fe*me.R,wn=8*Fe*me.B,Je=me.sa,dt=me.ta-je+Qt,Qe=me.qa,Ie=me.ra-at+wn,Bt=me.Ha,Ht=me.Ia-at+wn,Fn=(qt=At.M)==0,Rt=qt>=me.Va-1,me.Aa==2&&eo(me,At),At.uc)for(Cn=(Nr=me).D.M,r(Nr.D.uc),At=Nr.yb;At<Nr.Hb;++At){Tr=At,xn=Cn;var Dr=(Wr=(hr=Nr).D).Nb;Kt=hr.R;var Wr=Wr.wa[Wr.Y+Tr],ln=hr.sa,Gn=hr.ta+16*Dr*Kt+16*Tr,yi=Wr.dd,Mr=Wr.tc;if(Mr!=0)if(r(3<=Mr),hr.L==1)0<Tr&&Qi(ln,Gn,Kt,Mr+4),Wr.La&&Wn(ln,Gn,Kt,Mr),0<xn&&ka(ln,Gn,Kt,Mr+4),Wr.La&&oo(ln,Gn,Kt,Mr);else{var Mi=hr.B,Pa=hr.qa,gs=hr.ra+8*Dr*Mi+8*Tr,ra=hr.Ha,hr=hr.Ia+8*Dr*Mi+8*Tr;Dr=Wr.ld,0<Tr&&(m0(ln,Gn,Kt,Mr+4,yi,Dr),La(Pa,gs,ra,hr,Mi,Mr+4,yi,Dr)),Wr.La&&(Zi(ln,Gn,Kt,Mr,yi,Dr),ds(Pa,gs,ra,hr,Mi,Mr,yi,Dr)),0<xn&&(hs(ln,Gn,Kt,Mr+4,yi,Dr),so(Pa,gs,ra,hr,Mi,Mr+4,yi,Dr)),Wr.La&&(Fa(ln,Gn,Kt,Mr,yi,Dr),Ca(Pa,gs,ra,hr,Mi,Mr,yi,Dr))}}if(me.ia&&alert("todo:DitherRow"),ve.put!=null){if(At=16*qt,qt=16*(qt+1),Fn?(ve.y=me.sa,ve.O=me.ta+Qt,ve.f=me.qa,ve.N=me.ra+wn,ve.ea=me.Ha,ve.W=me.Ia+wn):(At-=kt,ve.y=Je,ve.O=dt,ve.f=Qe,ve.N=Ie,ve.ea=Bt,ve.W=Ht),Rt||(qt-=kt),qt>ve.o&&(qt=ve.o),ve.F=null,ve.J=null,me.Fa!=null&&0<me.Fa.length&&At<qt&&(ve.J=Zs(me,ve,At,qt-At),ve.F=me.mb,ve.F==null&&ve.F.length==0)){Oe=vr(me,3,"Could not decode alpha data.");break e}At<ve.j&&(kt=ve.j-At,At=ve.j,r(!(1&kt)),ve.O+=me.R*kt,ve.N+=me.B*(kt>>1),ve.W+=me.B*(kt>>1),ve.F!=null&&(ve.J+=ve.width*kt)),At<qt&&(ve.O+=ve.v,ve.N+=ve.v>>1,ve.W+=ve.v>>1,ve.F!=null&&(ve.J+=ve.v),ve.ka=At-ve.j,ve.U=ve.va-ve.v,ve.T=qt-At,Oe=ve.put(ve))}Fe+1!=me.Ic||Rt||(n(me.sa,me.ta-je,Je,dt+16*me.R,je),n(me.qa,me.ra-at,Qe,Ie+8*me.B,at),n(me.Ha,me.Ia-at,Bt,Ht+8*me.B,at))}if(!Oe)return vr(xe,6,"Output aborted.")}return 1})(l,d)),d.bc!=null&&d.bc(d),x&=1}return x?(l.cb=0,x):0}function Qn(l,d,x,N,I){I=l[d+x+32*N]+(I>>3),l[d+x+32*N]=-256&I?0>I?0:255:I}function Ja(l,d,x,N,I,B){Qn(l,d,0,x,N+I),Qn(l,d,1,x,N+B),Qn(l,d,2,x,N-B),Qn(l,d,3,x,N-I)}function gn(l){return(20091*l>>16)+l}function zs(l,d,x,N){var I,B=0,U=a(16);for(I=0;4>I;++I){var W=l[d+0]+l[d+8],G=l[d+0]-l[d+8],ee=(35468*l[d+4]>>16)-gn(l[d+12]),ge=gn(l[d+4])+(35468*l[d+12]>>16);U[B+0]=W+ge,U[B+1]=G+ee,U[B+2]=G-ee,U[B+3]=W-ge,B+=4,d++}for(I=B=0;4>I;++I)W=(l=U[B+0]+4)+U[B+8],G=l-U[B+8],ee=(35468*U[B+4]>>16)-gn(U[B+12]),Qn(x,N,0,0,W+(ge=gn(U[B+4])+(35468*U[B+12]>>16))),Qn(x,N,1,0,G+ee),Qn(x,N,2,0,G-ee),Qn(x,N,3,0,W-ge),B++,N+=32}function Qo(l,d,x,N){var I=l[d+0]+4,B=35468*l[d+4]>>16,U=gn(l[d+4]),W=35468*l[d+1]>>16;Ja(x,N,0,I+U,l=gn(l[d+1]),W),Ja(x,N,1,I+B,l,W),Ja(x,N,2,I-B,l,W),Ja(x,N,3,I-U,l,W)}function El(l,d,x,N,I){zs(l,d,x,N),I&&zs(l,d+16,x,N+4)}function e0(l,d,x,N){Ii(l,d+0,x,N,1),Ii(l,d+32,x,N+128,1)}function Ll(l,d,x,N){var I;for(l=l[d+0]+4,I=0;4>I;++I)for(d=0;4>d;++d)Qn(x,N,d,I,l)}function t0(l,d,x,N){l[d+0]&&on(l,d+0,x,N),l[d+16]&&on(l,d+16,x,N+4),l[d+32]&&on(l,d+32,x,N+128),l[d+48]&&on(l,d+48,x,N+128+4)}function Fl(l,d,x,N){var I,B=a(16);for(I=0;4>I;++I){var U=l[d+0+I]+l[d+12+I],W=l[d+4+I]+l[d+8+I],G=l[d+4+I]-l[d+8+I],ee=l[d+0+I]-l[d+12+I];B[0+I]=U+W,B[8+I]=U-W,B[4+I]=ee+G,B[12+I]=ee-G}for(I=0;4>I;++I)U=(l=B[0+4*I]+3)+B[3+4*I],W=B[1+4*I]+B[2+4*I],G=B[1+4*I]-B[2+4*I],ee=l-B[3+4*I],x[N+0]=U+W>>3,x[N+16]=ee+G>>3,x[N+32]=U-W>>3,x[N+48]=ee-G>>3,N+=64}function Ws(l,d,x){var N,I=d-32,B=Ln,U=255-l[I-1];for(N=0;N<x;++N){var W,G=B,ee=U+l[d-1];for(W=0;W<x;++W)l[d+W]=G[ee+l[I+W]];d+=32}}function Cl(l,d){Ws(l,d,4)}function kl(l,d){Ws(l,d,8)}function Pl(l,d){Ws(l,d,16)}function Ci(l,d){var x;for(x=0;16>x;++x)n(l,d+32*x,l,d-32,16)}function Za(l,d){var x;for(x=16;0<x;--x)i(l,d,l[d-1],16),d+=32}function Qa(l,d,x){var N;for(N=0;16>N;++N)i(d,x+32*N,l,16)}function r0(l,d){var x,N=16;for(x=0;16>x;++x)N+=l[d-1+32*x]+l[d+x-32];Qa(N>>5,l,d)}function Kr(l,d){var x,N=8;for(x=0;16>x;++x)N+=l[d-1+32*x];Qa(N>>4,l,d)}function Ol(l,d){var x,N=8;for(x=0;16>x;++x)N+=l[d+x-32];Qa(N>>4,l,d)}function n0(l,d){Qa(128,l,d)}function wt(l,d,x){return l+2*d+x+2>>2}function Il(l,d){var x,N=d-32;for(N=new Uint8Array([wt(l[N-1],l[N+0],l[N+1]),wt(l[N+0],l[N+1],l[N+2]),wt(l[N+1],l[N+2],l[N+3]),wt(l[N+2],l[N+3],l[N+4])]),x=0;4>x;++x)n(l,d+32*x,N,0,N.length)}function Rl(l,d){var x=l[d-1],N=l[d-1+32],I=l[d-1+64],B=l[d-1+96];we(l,d+0,16843009*wt(l[d-1-32],x,N)),we(l,d+32,16843009*wt(x,N,I)),we(l,d+64,16843009*wt(N,I,B)),we(l,d+96,16843009*wt(I,B,B))}function vi(l,d){var x,N=4;for(x=0;4>x;++x)N+=l[d+x-32]+l[d-1+32*x];for(N>>=3,x=0;4>x;++x)i(l,d+32*x,N,4)}function i0(l,d){var x=l[d-1+0],N=l[d-1+32],I=l[d-1+64],B=l[d-1-32],U=l[d+0-32],W=l[d+1-32],G=l[d+2-32],ee=l[d+3-32];l[d+0+96]=wt(N,I,l[d-1+96]),l[d+1+96]=l[d+0+64]=wt(x,N,I),l[d+2+96]=l[d+1+64]=l[d+0+32]=wt(B,x,N),l[d+3+96]=l[d+2+64]=l[d+1+32]=l[d+0+0]=wt(U,B,x),l[d+3+64]=l[d+2+32]=l[d+1+0]=wt(W,U,B),l[d+3+32]=l[d+2+0]=wt(G,W,U),l[d+3+0]=wt(ee,G,W)}function a0(l,d){var x=l[d+1-32],N=l[d+2-32],I=l[d+3-32],B=l[d+4-32],U=l[d+5-32],W=l[d+6-32],G=l[d+7-32];l[d+0+0]=wt(l[d+0-32],x,N),l[d+1+0]=l[d+0+32]=wt(x,N,I),l[d+2+0]=l[d+1+32]=l[d+0+64]=wt(N,I,B),l[d+3+0]=l[d+2+32]=l[d+1+64]=l[d+0+96]=wt(I,B,U),l[d+3+32]=l[d+2+64]=l[d+1+96]=wt(B,U,W),l[d+3+64]=l[d+2+96]=wt(U,W,G),l[d+3+96]=wt(W,G,G)}function es(l,d){var x=l[d-1+0],N=l[d-1+32],I=l[d-1+64],B=l[d-1-32],U=l[d+0-32],W=l[d+1-32],G=l[d+2-32],ee=l[d+3-32];l[d+0+0]=l[d+1+64]=B+U+1>>1,l[d+1+0]=l[d+2+64]=U+W+1>>1,l[d+2+0]=l[d+3+64]=W+G+1>>1,l[d+3+0]=G+ee+1>>1,l[d+0+96]=wt(I,N,x),l[d+0+64]=wt(N,x,B),l[d+0+32]=l[d+1+96]=wt(x,B,U),l[d+1+32]=l[d+2+96]=wt(B,U,W),l[d+2+32]=l[d+3+96]=wt(U,W,G),l[d+3+32]=wt(W,G,ee)}function Hs(l,d){var x=l[d+0-32],N=l[d+1-32],I=l[d+2-32],B=l[d+3-32],U=l[d+4-32],W=l[d+5-32],G=l[d+6-32],ee=l[d+7-32];l[d+0+0]=x+N+1>>1,l[d+1+0]=l[d+0+64]=N+I+1>>1,l[d+2+0]=l[d+1+64]=I+B+1>>1,l[d+3+0]=l[d+2+64]=B+U+1>>1,l[d+0+32]=wt(x,N,I),l[d+1+32]=l[d+0+96]=wt(N,I,B),l[d+2+32]=l[d+1+96]=wt(I,B,U),l[d+3+32]=l[d+2+96]=wt(B,U,W),l[d+3+64]=wt(U,W,G),l[d+3+96]=wt(W,G,ee)}function Dl(l,d){var x=l[d-1+0],N=l[d-1+32],I=l[d-1+64],B=l[d-1+96];l[d+0+0]=x+N+1>>1,l[d+2+0]=l[d+0+32]=N+I+1>>1,l[d+2+32]=l[d+0+64]=I+B+1>>1,l[d+1+0]=wt(x,N,I),l[d+3+0]=l[d+1+32]=wt(N,I,B),l[d+3+32]=l[d+1+64]=wt(I,B,B),l[d+3+64]=l[d+2+64]=l[d+0+96]=l[d+1+96]=l[d+2+96]=l[d+3+96]=B}function Ml(l,d){var x=l[d-1+0],N=l[d-1+32],I=l[d-1+64],B=l[d-1+96],U=l[d-1-32],W=l[d+0-32],G=l[d+1-32],ee=l[d+2-32];l[d+0+0]=l[d+2+32]=x+U+1>>1,l[d+0+32]=l[d+2+64]=N+x+1>>1,l[d+0+64]=l[d+2+96]=I+N+1>>1,l[d+0+96]=B+I+1>>1,l[d+3+0]=wt(W,G,ee),l[d+2+0]=wt(U,W,G),l[d+1+0]=l[d+3+32]=wt(x,U,W),l[d+1+32]=l[d+3+64]=wt(N,x,U),l[d+1+64]=l[d+3+96]=wt(I,N,x),l[d+1+96]=wt(B,I,N)}function Bl(l,d){var x;for(x=0;8>x;++x)n(l,d+32*x,l,d-32,8)}function qs(l,d){var x;for(x=0;8>x;++x)i(l,d,l[d-1],8),d+=32}function Sa(l,d,x){var N;for(N=0;8>N;++N)i(d,x+32*N,l,8)}function Yi(l,d){var x,N=8;for(x=0;8>x;++x)N+=l[d+x-32]+l[d-1+32*x];Sa(N>>4,l,d)}function jl(l,d){var x,N=4;for(x=0;8>x;++x)N+=l[d+x-32];Sa(N>>3,l,d)}function Aa(l,d){var x,N=4;for(x=0;8>x;++x)N+=l[d-1+32*x];Sa(N>>3,l,d)}function Vs(l,d){Sa(128,l,d)}function ts(l,d,x){var N=l[d-x],I=l[d+0],B=3*(I-N)+Vl[1020+l[d-2*x]-l[d+x]],U=x0[112+(B+4>>3)];l[d-x]=Ln[255+N+x0[112+(B+3>>3)]],l[d+0]=Ln[255+I-U]}function s0(l,d,x,N){var I=l[d+0],B=l[d+x];return qn[255+l[d-2*x]-l[d-x]]>N||qn[255+B-I]>N}function o0(l,d,x,N){return 4*qn[255+l[d-x]-l[d+0]]+qn[255+l[d-2*x]-l[d+x]]<=N}function l0(l,d,x,N,I){var B=l[d-3*x],U=l[d-2*x],W=l[d-x],G=l[d+0],ee=l[d+x],ge=l[d+2*x],Se=l[d+3*x];return 4*qn[255+W-G]+qn[255+U-ee]>N?0:qn[255+l[d-4*x]-B]<=I&&qn[255+B-U]<=I&&qn[255+U-W]<=I&&qn[255+Se-ge]<=I&&qn[255+ge-ee]<=I&&qn[255+ee-G]<=I}function f0(l,d,x,N){var I=2*N+1;for(N=0;16>N;++N)o0(l,d+N,x,I)&&ts(l,d+N,x)}function xi(l,d,x,N){var I=2*N+1;for(N=0;16>N;++N)o0(l,d+N*x,1,I)&&ts(l,d+N*x,1)}function ki(l,d,x,N){var I;for(I=3;0<I;--I)f0(l,d+=4*x,x,N)}function Ul(l,d,x,N){var I;for(I=3;0<I;--I)xi(l,d+=4,x,N)}function Xi(l,d,x,N,I,B,U,W){for(B=2*B+1;0<I--;){if(l0(l,d,x,B,U))if(s0(l,d,x,W))ts(l,d,x);else{var G=l,ee=d,ge=x,Se=G[ee-2*ge],Ae=G[ee-ge],xe=G[ee+0],Re=G[ee+ge],Fe=G[ee+2*ge],me=27*(Oe=Vl[1020+3*(xe-Ae)+Vl[1020+Se-Re]])+63>>7,ve=18*Oe+63>>7,Oe=9*Oe+63>>7;G[ee-3*ge]=Ln[255+G[ee-3*ge]+Oe],G[ee-2*ge]=Ln[255+Se+ve],G[ee-ge]=Ln[255+Ae+me],G[ee+0]=Ln[255+xe-me],G[ee+ge]=Ln[255+Re-ve],G[ee+2*ge]=Ln[255+Fe-Oe]}d+=N}}function ei(l,d,x,N,I,B,U,W){for(B=2*B+1;0<I--;){if(l0(l,d,x,B,U))if(s0(l,d,x,W))ts(l,d,x);else{var G=l,ee=d,ge=x,Se=G[ee-ge],Ae=G[ee+0],xe=G[ee+ge],Re=x0[112+((Fe=3*(Ae-Se))+4>>3)],Fe=x0[112+(Fe+3>>3)],me=Re+1>>1;G[ee-2*ge]=Ln[255+G[ee-2*ge]+me],G[ee-ge]=Ln[255+Se+Fe],G[ee+0]=Ln[255+Ae-Re],G[ee+ge]=Ln[255+xe-me]}d+=N}}function Gs(l,d,x,N,I,B){Xi(l,d,x,1,16,N,I,B)}function Ta(l,d,x,N,I,B){Xi(l,d,1,x,16,N,I,B)}function zl(l,d,x,N,I,B){var U;for(U=3;0<U;--U)ei(l,d+=4*x,x,1,16,N,I,B)}function rs(l,d,x,N,I,B){var U;for(U=3;0<U;--U)ei(l,d+=4,1,x,16,N,I,B)}function Wl(l,d,x,N,I,B,U,W){Xi(l,d,I,1,8,B,U,W),Xi(x,N,I,1,8,B,U,W)}function Ys(l,d,x,N,I,B,U,W){Xi(l,d,1,I,8,B,U,W),Xi(x,N,1,I,8,B,U,W)}function Xs(l,d,x,N,I,B,U,W){ei(l,d+4*I,I,1,8,B,U,W),ei(x,N+4*I,I,1,8,B,U,W)}function c0(l,d,x,N,I,B,U,W){ei(l,d+4,1,I,8,B,U,W),ei(x,N+4,1,I,8,B,U,W)}function ns(){this.ba=new An,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Zt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function $s(){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 Ks(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function u0(){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 Y,this.yc=new T}function Hl(){this.xb=this.a=0,this.l=new mi,this.ca=new An,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new y,this.Pb=0,this.wd=new y,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new u0,this.ab=0,this.gc=s(4,Ks),this.Oc=0}function is(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new mi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Na(l,d,x,N,I,B,U){for(l=l==null?0:l[d+0],d=0;d<U;++d)I[B+d]=l+x[N+d]&255,l=I[B+d]}function Js(l,d,x,N,I,B,U){var W;if(l==null)Na(null,null,x,N,I,B,U);else for(W=0;W<U;++W)I[B+W]=l[d+W]+x[N+W]&255}function $i(l,d,x,N,I,B,U){if(l==null)Na(null,null,x,N,I,B,U);else{var W,G=l[d+0],ee=G,ge=G;for(W=0;W<U;++W)ee=ge+(G=l[d+W])-ee,ge=x[N+W]+(-256&ee?0>ee?0:255:ee)&255,ee=G,I[B+W]=ge}}function Zs(l,d,x,N){var I=d.width,B=d.o;if(r(l!=null&&d!=null),0>x||0>=N||x+N>B)return null;if(!l.Cc){if(l.ga==null){var U;if(l.ga=new is,(U=l.ga==null)||(U=d.width*d.o,r(l.Gb.length==0),l.Gb=a(U),l.Uc=0,l.Gb==null?U=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,U=1),U=!U),!U){U=l.ga;var W=l.Fa,G=l.P,ee=l.qc,ge=l.mb,Se=l.nb,Ae=G+1,xe=ee-1,Re=U.l;if(r(W!=null&&ge!=null&&d!=null),ta[0]=null,ta[1]=Na,ta[2]=Js,ta[3]=$i,U.ca=ge,U.tb=Se,U.c=d.width,U.i=d.height,r(0<U.c&&0<U.i),1>=ee)d=0;else if(U.$a=W[G+0]>>0&3,U.Z=W[G+0]>>2&3,U.Lc=W[G+0]>>4&3,G=W[G+0]>>6&3,0>U.$a||1<U.$a||4<=U.Z||1<U.Lc||G)d=0;else if(Re.put=Bn,Re.ac=kr,Re.bc=jn,Re.ma=U,Re.width=d.width,Re.height=d.height,Re.Da=d.Da,Re.v=d.v,Re.va=d.va,Re.j=d.j,Re.o=d.o,U.$a)e:{r(U.$a==1),d=Le();t:for(;;){if(d==null){d=0;break e}if(r(U!=null),U.mc=d,d.c=U.c,d.i=U.i,d.l=U.l,d.l.ma=U,d.l.width=U.c,d.l.height=U.i,d.a=0,oe(d.m,W,Ae,xe),!be(U.c,U.i,1,d,null)||(d.ab==1&&d.gc[0].hc==3&&X(d.s)?(U.ic=1,W=d.c*d.i,d.Ta=null,d.Ua=0,d.V=a(W),d.Ba=0,d.V==null?(d.a=1,d=0):d=1):(U.ic=0,d=Te(d,U.c)),!d))break t;d=1;break e}U.mc=null,d=0}else d=xe>=U.c*U.i;U=!d}if(U)return null;l.ga.Lc!=1?l.Ga=0:N=B-x}r(l.ga!=null),r(x+N<=B);e:{if(d=(W=l.ga).c,B=W.l.o,W.$a==0){if(Ae=l.rc,xe=l.Vc,Re=l.Fa,G=l.P+1+x*d,ee=l.mb,ge=l.nb+x*d,r(G<=l.P+l.qc),W.Z!=0)for(r(ta[W.Z]!=null),U=0;U<N;++U)ta[W.Z](Ae,xe,Re,G,ee,ge,d),Ae=ee,xe=ge,ge+=d,G+=d;else for(U=0;U<N;++U)n(ee,ge,Re,G,d),Ae=ee,xe=ge,ge+=d,G+=d;l.rc=Ae,l.Vc=xe}else{if(r(W.mc!=null),d=x+N,r((U=W.mc)!=null),r(d<=U.i),U.C>=d)d=1;else if(W.ic||ye(),W.ic){W=U.V,Ae=U.Ba,xe=U.c;var Fe=U.i,me=(Re=1,G=U.$/xe,ee=U.$%xe,ge=U.m,Se=U.s,U.$),ve=xe*Fe,Oe=xe*d,je=Se.wc,Ie=me<Oe?cr(Se,ee,G):null;r(me<=ve),r(d<=Fe),r(X(Se));t:for(;;){for(;!ge.h&&me<Oe;){if(ee&je||(Ie=cr(Se,ee,G)),r(Ie!=null),H(ge),256>(Fe=$r(Ie.G[0],Ie.H[0],ge)))W[Ae+me]=Fe,++me,++ee>=xe&&(ee=0,++G<=d&&!(G%16)&&re(U,G));else{if(!(280>Fe)){Re=0;break t}Fe=Tn(Fe-256,ge);var at,Je=$r(Ie.G[4],Ie.H[4],ge);if(H(ge),!(me>=(Je=pn(xe,Je=Tn(Je,ge)))&&ve-me>=Fe)){Re=0;break t}for(at=0;at<Fe;++at)W[Ae+me+at]=W[Ae+me+at-Je];for(me+=Fe,ee+=Fe;ee>=xe;)ee-=xe,++G<=d&&!(G%16)&&re(U,G);me<Oe&&ee&je&&(Ie=cr(Se,ee,G))}r(ge.h==C(ge))}re(U,G>d?d:G);break t}!Re||ge.h&&me<ve?(Re=0,U.a=ge.h?5:3):U.$=me,d=Re}else d=ae(U,U.V,U.Ba,U.c,U.i,d,Ne);if(!d){N=0;break e}}x+N>=B&&(l.Cc=1),N=1}if(!N)return null;if(l.Cc&&((N=l.ga)!=null&&(N.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+x*I}function m(l,d,x,N,I,B){for(;0<I--;){var U,W=l,G=d+(x?1:0),ee=l,ge=d+(x?0:3);for(U=0;U<N;++U){var Se=ee[ge+4*U];Se!=255&&(Se*=32897,W[G+4*U+0]=W[G+4*U+0]*Se>>23,W[G+4*U+1]=W[G+4*U+1]*Se>>23,W[G+4*U+2]=W[G+4*U+2]*Se>>23)}d+=B}}function R(l,d,x,N,I){for(;0<N--;){var B;for(B=0;B<x;++B){var U=l[d+2*B+0],W=15&(ee=l[d+2*B+1]),G=4369*W,ee=(240&ee|ee>>4)*G>>16;l[d+2*B+0]=(240&U|U>>4)*G>>16&240|(15&U|U<<4)*G>>16>>4&15,l[d+2*B+1]=240&ee|W}d+=I}}function se(l,d,x,N,I,B,U,W){var G,ee,ge=255;for(ee=0;ee<I;++ee){for(G=0;G<N;++G){var Se=l[d+G];B[U+4*G]=Se,ge&=Se}d+=x,U+=W}return ge!=255}function de(l,d,x,N,I){var B;for(B=0;B<I;++B)x[N+B]=l[d+B]>>8}function ye(){Hn=m,rr=R,nr=se,wr=de}function Ce(l,d,x){P[l]=function(N,I,B,U,W,G,ee,ge,Se,Ae,xe,Re,Fe,me,ve,Oe,je){var Ie,at=je-1>>1,Je=W[G+0]|ee[ge+0]<<16,dt=Se[Ae+0]|xe[Re+0]<<16;r(N!=null);var Qe=3*Je+dt+131074>>2;for(d(N[I+0],255&Qe,Qe>>16,Fe,me),B!=null&&(Qe=3*dt+Je+131074>>2,d(B[U+0],255&Qe,Qe>>16,ve,Oe)),Ie=1;Ie<=at;++Ie){var Bt=W[G+Ie]|ee[ge+Ie]<<16,Ht=Se[Ae+Ie]|xe[Re+Ie]<<16,Rt=Je+Bt+dt+Ht+524296,kt=Rt+2*(Bt+dt)>>3;Qe=kt+Je>>1,Je=(Rt=Rt+2*(Je+Ht)>>3)+Bt>>1,d(N[I+2*Ie-1],255&Qe,Qe>>16,Fe,me+(2*Ie-1)*x),d(N[I+2*Ie-0],255&Je,Je>>16,Fe,me+(2*Ie-0)*x),B!=null&&(Qe=Rt+dt>>1,Je=kt+Ht>>1,d(B[U+2*Ie-1],255&Qe,Qe>>16,ve,Oe+(2*Ie-1)*x),d(B[U+2*Ie+0],255&Je,Je>>16,ve,Oe+(2*Ie+0)*x)),Je=Bt,dt=Ht}1&je||(Qe=3*Je+dt+131074>>2,d(N[I+je-1],255&Qe,Qe>>16,Fe,me+(je-1)*x),B!=null&&(Qe=3*dt+Je+131074>>2,d(B[U+je-1],255&Qe,Qe>>16,ve,Oe+(je-1)*x)))}}function ze(){Vn[w0]=Md,Vn[y0]=Ac,Vn[wc]=Bd,Vn[b0]=Tc,Vn[_0]=Nc,Vn[Gl]=Ec,Vn[yc]=jd,Vn[Yl]=Ac,Vn[Xl]=Tc,Vn[S0]=Nc,Vn[$l]=Ec}function it(l){return l&-16384?0>l?0:255:l>>Ud}function ct(l,d){return it((19077*l>>8)+(26149*d>>8)-14234)}function _t(l,d,x){return it((19077*l>>8)-(6419*d>>8)-(13320*x>>8)+8708)}function yt(l,d){return it((19077*l>>8)+(33050*d>>8)-17685)}function Ot(l,d,x,N,I){N[I+0]=ct(l,x),N[I+1]=_t(l,d,x),N[I+2]=yt(l,d)}function fr(l,d,x,N,I){N[I+0]=yt(l,d),N[I+1]=_t(l,d,x),N[I+2]=ct(l,x)}function ur(l,d,x,N,I){var B=_t(l,d,x);d=B<<3&224|yt(l,d)>>3,N[I+0]=248&ct(l,x)|B>>5,N[I+1]=d}function Ar(l,d,x,N,I){var B=240&yt(l,d)|15;N[I+0]=240&ct(l,x)|_t(l,d,x)>>4,N[I+1]=B}function Jr(l,d,x,N,I){N[I+0]=255,Ot(l,d,x,N,I+1)}function Rr(l,d,x,N,I){fr(l,d,x,N,I),N[I+3]=255}function ti(l,d,x,N,I){Ot(l,d,x,N,I),N[I+3]=255}function En(l,d){return 0>l?0:l>d?d:l}function wi(l,d,x){P[l]=function(N,I,B,U,W,G,ee,ge,Se){for(var Ae=ge+(-2&Se)*x;ge!=Ae;)d(N[I+0],B[U+0],W[G+0],ee,ge),d(N[I+1],B[U+0],W[G+0],ee,ge+x),I+=2,++U,++G,ge+=2*x;1&Se&&d(N[I+0],B[U+0],W[G+0],ee,ge)}}function h0(l,d,x){return x==0?l==0?d==0?6:5:d==0?4:0:x}function Qs(l,d,x,N,I){switch(l>>>30){case 3:Ii(d,x,N,I,0);break;case 2:xr(d,x,N,I);break;case 1:on(d,x,N,I)}}function eo(l,d){var x,N,I=d.M,B=d.Nb,U=l.oc,W=l.pc+40,G=l.oc,ee=l.pc+584,ge=l.oc,Se=l.pc+600;for(x=0;16>x;++x)U[W+32*x-1]=129;for(x=0;8>x;++x)G[ee+32*x-1]=129,ge[Se+32*x-1]=129;for(0<I?U[W-1-32]=G[ee-1-32]=ge[Se-1-32]=129:(i(U,W-32-1,127,21),i(G,ee-32-1,127,9),i(ge,Se-32-1,127,9)),N=0;N<l.za;++N){var Ae=d.ya[d.aa+N];if(0<N){for(x=-1;16>x;++x)n(U,W+32*x-4,U,W+32*x+12,4);for(x=-1;8>x;++x)n(G,ee+32*x-4,G,ee+32*x+4,4),n(ge,Se+32*x-4,ge,Se+32*x+4,4)}var xe=l.Gd,Re=l.Hd+N,Fe=Ae.ad,me=Ae.Hc;if(0<I&&(n(U,W-32,xe[Re].y,0,16),n(G,ee-32,xe[Re].f,0,8),n(ge,Se-32,xe[Re].ea,0,8)),Ae.Za){var ve=U,Oe=W-32+16;for(0<I&&(N>=l.za-1?i(ve,Oe,xe[Re].y[15],4):n(ve,Oe,xe[Re+1].y,0,4)),x=0;4>x;x++)ve[Oe+128+x]=ve[Oe+256+x]=ve[Oe+384+x]=ve[Oe+0+x];for(x=0;16>x;++x,me<<=2)ve=U,Oe=W+Fc[x],ri[Ae.Ob[x]](ve,Oe),Qs(me,Fe,16*+x,ve,Oe)}else if(ve=h0(N,I,Ae.Ob[0]),ea[ve](U,W),me!=0)for(x=0;16>x;++x,me<<=2)Qs(me,Fe,16*+x,U,W+Fc[x]);for(x=Ae.Gc,ve=h0(N,I,Ae.Dd),Di[ve](G,ee),Di[ve](ge,Se),me=Fe,ve=G,Oe=ee,255&(Ae=x>>0)&&(170&Ae?ao(me,256,ve,Oe):zn(me,256,ve,Oe)),Ae=ge,me=Se,255&(x>>=8)&&(170&x?ao(Fe,320,Ae,me):zn(Fe,320,Ae,me)),I<l.Ub-1&&(n(xe[Re].y,0,U,W+480,16),n(xe[Re].f,0,G,ee+224,8),n(xe[Re].ea,0,ge,Se+224,8)),x=8*B*l.B,xe=l.sa,Re=l.ta+16*N+16*B*l.R,Fe=l.qa,Ae=l.ra+8*N+x,me=l.Ha,ve=l.Ia+8*N+x,x=0;16>x;++x)n(xe,Re+x*l.R,U,W+32*x,16);for(x=0;8>x;++x)n(Fe,Ae+x*l.B,G,ee+32*x,8),n(me,ve+x*l.B,ge,Se+32*x,8)}}function as(l,d,x,N,I,B,U,W,G){var ee=[0],ge=[0],Se=0,Ae=G!=null?G.kd:0,xe=G??new $s;if(l==null||12>x)return 7;xe.data=l,xe.w=d,xe.ha=x,d=[d],x=[x],xe.gb=[xe.gb];e:{var Re=d,Fe=x,me=xe.gb;if(r(l!=null),r(Fe!=null),r(me!=null),me[0]=0,12<=Fe[0]&&!t(l,Re[0],"RIFF")){if(t(l,Re[0]+8,"WEBP")){me=3;break e}var ve=He(l,Re[0]+4);if(12>ve||4294967286<ve){me=3;break e}if(Ae&&ve>Fe[0]-8){me=7;break e}me[0]=ve,Re[0]+=12,Fe[0]-=12}me=0}if(me!=0)return me;for(ve=0<xe.gb[0],x=x[0];;){e:{var Oe=l;Fe=d,me=x;var je=ee,Ie=ge,at=Re=[0];if((Qe=Se=[Se])[0]=0,8>me[0])me=7;else{if(!t(Oe,Fe[0],"VP8X")){if(He(Oe,Fe[0]+4)!=10){me=3;break e}if(18>me[0]){me=7;break e}var Je=He(Oe,Fe[0]+8),dt=1+De(Oe,Fe[0]+12);if(2147483648<=dt*(Oe=1+De(Oe,Fe[0]+15))){me=3;break e}at!=null&&(at[0]=Je),je!=null&&(je[0]=dt),Ie!=null&&(Ie[0]=Oe),Fe[0]+=18,me[0]-=18,Qe[0]=1}me=0}}if(Se=Se[0],Re=Re[0],me!=0)return me;if(Fe=!!(2&Re),!ve&&Se)return 3;if(B!=null&&(B[0]=!!(16&Re)),U!=null&&(U[0]=Fe),W!=null&&(W[0]=0),U=ee[0],Re=ge[0],Se&&Fe&&G==null){me=0;break}if(4>x){me=7;break}if(ve&&Se||!ve&&!Se&&!t(l,d[0],"ALPH")){x=[x],xe.na=[xe.na],xe.P=[xe.P],xe.Sa=[xe.Sa];e:{Je=l,me=d,ve=x;var Qe=xe.gb;je=xe.na,Ie=xe.P,at=xe.Sa,dt=22,r(Je!=null),r(ve!=null),Oe=me[0];var Bt=ve[0];for(r(je!=null),r(at!=null),je[0]=null,Ie[0]=null,at[0]=0;;){if(me[0]=Oe,ve[0]=Bt,8>Bt){me=7;break e}var Ht=He(Je,Oe+4);if(4294967286<Ht){me=3;break e}var Rt=8+Ht+1&-2;if(dt+=Rt,0<Qe&&dt>Qe){me=3;break e}if(!t(Je,Oe,"VP8 ")||!t(Je,Oe,"VP8L")){me=0;break e}if(Bt[0]<Rt){me=7;break e}t(Je,Oe,"ALPH")||(je[0]=Je,Ie[0]=Oe+8,at[0]=Ht),Oe+=Rt,Bt-=Rt}}if(x=x[0],xe.na=xe.na[0],xe.P=xe.P[0],xe.Sa=xe.Sa[0],me!=0)break}x=[x],xe.Ja=[xe.Ja],xe.xa=[xe.xa];e:if(Qe=l,me=d,ve=x,je=xe.gb[0],Ie=xe.Ja,at=xe.xa,Je=me[0],Oe=!t(Qe,Je,"VP8 "),dt=!t(Qe,Je,"VP8L"),r(Qe!=null),r(ve!=null),r(Ie!=null),r(at!=null),8>ve[0])me=7;else{if(Oe||dt){if(Qe=He(Qe,Je+4),12<=je&&Qe>je-12){me=3;break e}if(Ae&&Qe>ve[0]-8){me=7;break e}Ie[0]=Qe,me[0]+=8,ve[0]-=8,at[0]=dt}else at[0]=5<=ve[0]&&Qe[Je+0]==47&&!(Qe[Je+4]>>5),Ie[0]=ve[0];me=0}if(x=x[0],xe.Ja=xe.Ja[0],xe.xa=xe.xa[0],d=d[0],me!=0)break;if(4294967286<xe.Ja)return 3;if(W==null||Fe||(W[0]=xe.xa?2:1),U=[U],Re=[Re],xe.xa){if(5>x){me=7;break}W=U,Ae=Re,Fe=B,l==null||5>x?l=0:5<=x&&l[d+0]==47&&!(l[d+4]>>5)?(ve=[0],Qe=[0],je=[0],oe(Ie=new y,l,d,x),ht(Ie,ve,Qe,je)?(W!=null&&(W[0]=ve[0]),Ae!=null&&(Ae[0]=Qe[0]),Fe!=null&&(Fe[0]=je[0]),l=1):l=0):l=0}else{if(10>x){me=7;break}W=Re,l==null||10>x||!Ko(l,d+3,x-3)?l=0:(Ae=l[d+0]|l[d+1]<<8|l[d+2]<<16,Fe=16383&(l[d+7]<<8|l[d+6]),l=16383&(l[d+9]<<8|l[d+8]),1&Ae||3<(Ae>>1&7)||!(Ae>>4&1)||Ae>>5>=xe.Ja||!Fe||!l?l=0:(U&&(U[0]=Fe),W&&(W[0]=l),l=1))}if(!l||(U=U[0],Re=Re[0],Se&&(ee[0]!=U||ge[0]!=Re)))return 3;G!=null&&(G[0]=xe,G.offset=d-G.w,r(4294967286>d-G.w),r(G.offset==G.ha-x));break}return me==0||me==7&&Se&&G==null?(B!=null&&(B[0]|=xe.na!=null&&0<xe.na.length),N!=null&&(N[0]=U),I!=null&&(I[0]=Re),0):me}function to(l,d,x){var N=d.width,I=d.height,B=0,U=0,W=N,G=I;if(d.Da=l!=null&&0<l.Da,d.Da&&(W=l.cd,G=l.bd,B=l.v,U=l.j,11>x||(B&=-2,U&=-2),0>B||0>U||0>=W||0>=G||B+W>N||U+G>I))return 0;if(d.v=B,d.j=U,d.va=B+W,d.o=U+G,d.U=W,d.T=G,d.da=l!=null&&0<l.da,d.da){if(!Me(W,G,x=[l.ib],B=[l.hb]))return 0;d.ib=x[0],d.hb=B[0]}return d.ob=l!=null&&l.ob,d.Kb=l==null||!l.Sd,d.da&&(d.ob=d.ib<3*N/4&&d.hb<3*I/4,d.Kb=0),1}function ro(l){if(l==null)return 2;if(11>l.S){var d=l.f.RGBA;d.fb+=(l.height-1)*d.A,d.A=-d.A}else d=l.f.kb,l=l.height,d.O+=(l-1)*d.fa,d.fa=-d.fa,d.N+=(l-1>>1)*d.Ab,d.Ab=-d.Ab,d.W+=(l-1>>1)*d.Db,d.Db=-d.Db,d.F!=null&&(d.J+=(l-1)*d.lb,d.lb=-d.lb);return 0}function ss(l,d,x,N){if(N==null||0>=l||0>=d)return 2;if(x!=null){if(x.Da){var I=x.cd,B=x.bd,U=-2&x.v,W=-2&x.j;if(0>U||0>W||0>=I||0>=B||U+I>l||W+B>d)return 2;l=I,d=B}if(x.da){if(!Me(l,d,I=[x.ib],B=[x.hb]))return 2;l=I[0],d=B[0]}}N.width=l,N.height=d;e:{var G=N.width,ee=N.height;if(l=N.S,0>=G||0>=ee||!(l>=w0&&13>l))l=2;else{if(0>=N.Rd&&N.sd==null){U=B=I=d=0;var ge=(W=G*Cc[l])*ee;if(11>l||(B=(ee+1)/2*(d=(G+1)/2),l==12&&(U=(I=G)*ee)),(ee=a(ge+2*B+U))==null){l=1;break e}N.sd=ee,11>l?((G=N.f.RGBA).eb=ee,G.fb=0,G.A=W,G.size=ge):((G=N.f.kb).y=ee,G.O=0,G.fa=W,G.Fd=ge,G.f=ee,G.N=0+ge,G.Ab=d,G.Cd=B,G.ea=ee,G.W=0+ge+B,G.Db=d,G.Ed=B,l==12&&(G.F=ee,G.J=0+ge+2*B),G.Tc=U,G.lb=I)}if(d=1,I=N.S,B=N.width,U=N.height,I>=w0&&13>I)if(11>I)l=N.f.RGBA,d&=(W=Math.abs(l.A))*(U-1)+B<=l.size,d&=W>=B*Cc[I],d&=l.eb!=null;else{l=N.f.kb,W=(B+1)/2,ge=(U+1)/2,G=Math.abs(l.fa),ee=Math.abs(l.Ab);var Se=Math.abs(l.Db),Ae=Math.abs(l.lb),xe=Ae*(U-1)+B;d&=G*(U-1)+B<=l.Fd,d&=ee*(ge-1)+W<=l.Cd,d=(d&=Se*(ge-1)+W<=l.Ed)&G>=B&ee>=W&Se>=W,d&=l.y!=null,d&=l.f!=null,d&=l.ea!=null,I==12&&(d&=Ae>=B,d&=xe<=l.Tc,d&=l.F!=null)}else d=0;l=d?0:2}}return l!=0||x!=null&&x.fd&&(l=ro(N)),l}var zr=64,os=[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],ls=24,fs=32,no=8,mn=[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];Ve("Predictor0","PredictorAdd0"),P.Predictor0=function(){return 4278190080},P.Predictor1=function(l){return l},P.Predictor2=function(l,d,x){return d[x+0]},P.Predictor3=function(l,d,x){return d[x+1]},P.Predictor4=function(l,d,x){return d[x-1]},P.Predictor5=function(l,d,x){return Ze(Ze(l,d[x+1]),d[x+0])},P.Predictor6=function(l,d,x){return Ze(l,d[x-1])},P.Predictor7=function(l,d,x){return Ze(l,d[x+0])},P.Predictor8=function(l,d,x){return Ze(d[x-1],d[x+0])},P.Predictor9=function(l,d,x){return Ze(d[x+0],d[x+1])},P.Predictor10=function(l,d,x){return Ze(Ze(l,d[x-1]),Ze(d[x+0],d[x+1]))},P.Predictor11=function(l,d,x){var N=d[x+0];return 0>=vt(N>>24&255,l>>24&255,(d=d[x-1])>>24&255)+vt(N>>16&255,l>>16&255,d>>16&255)+vt(N>>8&255,l>>8&255,d>>8&255)+vt(255&N,255&l,255&d)?N:l},P.Predictor12=function(l,d,x){var N=d[x+0];return(lt((l>>24&255)+(N>>24&255)-((d=d[x-1])>>24&255))<<24|lt((l>>16&255)+(N>>16&255)-(d>>16&255))<<16|lt((l>>8&255)+(N>>8&255)-(d>>8&255))<<8|lt((255&l)+(255&N)-(255&d)))>>>0},P.Predictor13=function(l,d,x){var N=d[x-1];return(ft((l=Ze(l,d[x+0]))>>24&255,N>>24&255)<<24|ft(l>>16&255,N>>16&255)<<16|ft(l>>8&255,N>>8&255)<<8|ft(l>>0&255,N>>0&255))>>>0};var ql=P.PredictorAdd0;P.PredictorAdd1=St,Ve("Predictor2","PredictorAdd2"),Ve("Predictor3","PredictorAdd3"),Ve("Predictor4","PredictorAdd4"),Ve("Predictor5","PredictorAdd5"),Ve("Predictor6","PredictorAdd6"),Ve("Predictor7","PredictorAdd7"),Ve("Predictor8","PredictorAdd8"),Ve("Predictor9","PredictorAdd9"),Ve("Predictor10","PredictorAdd10"),Ve("Predictor11","PredictorAdd11"),Ve("Predictor12","PredictorAdd12"),Ve("Predictor13","PredictorAdd13");var io=P.PredictorAdd2;Nt("ColorIndexInverseTransform","MapARGB","32b",(function(l){return l>>8&255}),(function(l){return l})),Nt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(l){return l}),(function(l){return l>>8&255}));var d0,Un=P.ColorIndexInverseTransform,cs=P.MapARGB,p0=P.VP8LColorIndexInverseTransformAlpha,g0=P.MapAlpha,Ki=P.VP8LPredictorsAdd=[];Ki.length=16,(P.VP8LPredictors=[]).length=16,(P.VP8LPredictorsAdd_C=[]).length=16,(P.VP8LPredictors_C=[]).length=16;var Ea,vn,sn,Ji,Pi,Oi,us,Ii,xr,ao,on,zn,hs,m0,so,La,Fa,Zi,Ca,ds,ka,Qi,oo,Wn,Hn,rr,nr,wr,Pr=a(511),Ri=a(2041),lo=a(225),ps=a(767),v0=0,Vl=Ri,x0=lo,Ln=ps,qn=Pr,w0=0,y0=1,wc=2,b0=3,_0=4,Gl=5,yc=6,Yl=7,Xl=8,S0=9,$l=10,Sd=[2,3,7],Ad=[3,3,11],bc=[280,256,256,256,40],Td=[0,1,1,1,0],Nd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ed=[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],Ld=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Fd=8,Kl=[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],Jl=[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],fo=null,Cd=[[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]],kd=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],_c=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Pd=[[[[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]]]],Od=[[[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]]],Id=[[[[255,255,255,255,255,255,255,255,255,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]]]],Rd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ea=[],ri=[],Di=[],Dd=1,Sc=2,ta=[],Vn=[];Ce("UpsampleRgbLinePair",Ot,3),Ce("UpsampleBgrLinePair",fr,3),Ce("UpsampleRgbaLinePair",ti,4),Ce("UpsampleBgraLinePair",Rr,4),Ce("UpsampleArgbLinePair",Jr,4),Ce("UpsampleRgba4444LinePair",Ar,2),Ce("UpsampleRgb565LinePair",ur,2);var Md=P.UpsampleRgbLinePair,Bd=P.UpsampleBgrLinePair,Ac=P.UpsampleRgbaLinePair,Tc=P.UpsampleBgraLinePair,Nc=P.UpsampleArgbLinePair,Ec=P.UpsampleRgba4444LinePair,jd=P.UpsampleRgb565LinePair,A0=16,T0=1<<A0-1,co=-227,Zl=482,Ud=6,Lc=0,zd=a(256),Wd=a(256),Hd=a(256),qd=a(256),Vd=a(Zl-co),Gd=a(Zl-co);wi("YuvToRgbRow",Ot,3),wi("YuvToBgrRow",fr,3),wi("YuvToRgbaRow",ti,4),wi("YuvToBgraRow",Rr,4),wi("YuvToArgbRow",Jr,4),wi("YuvToRgba4444Row",Ar,2),wi("YuvToRgb565Row",ur,2);var Fc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],N0=[0,2,8],Yd=[8,7,6,4,4,2,2,2,1,1,1,1],Xd=1;this.WebPDecodeRGBA=function(l,d,x,N,I){var B=y0,U=new ns,W=new An;U.ba=W,W.S=B,W.width=[W.width],W.height=[W.height];var G=W.width,ee=W.height,ge=new Kn;if(ge==null||l==null)var Se=2;else r(ge!=null),Se=as(l,d,x,ge.width,ge.height,ge.Pd,ge.Qd,ge.format,null);if(Se!=0?G=0:(G!=null&&(G[0]=ge.width[0]),ee!=null&&(ee[0]=ge.height[0]),G=1),G){W.width=W.width[0],W.height=W.height[0],N!=null&&(N[0]=W.width),I!=null&&(I[0]=W.height);e:{if(N=new mi,(I=new $s).data=l,I.w=d,I.ha=x,I.kd=1,d=[0],r(I!=null),((l=as(I.data,I.w,I.ha,null,null,null,d,null,I))==0||l==7)&&d[0]&&(l=4),(d=l)==0){if(r(U!=null),N.data=I.data,N.w=I.w+I.offset,N.ha=I.ha-I.offset,N.put=Bn,N.ac=kr,N.bc=jn,N.ma=U,I.xa){if((l=Le())==null){U=1;break e}if((function(Ae,xe){var Re=[0],Fe=[0],me=[0];t:for(;;){if(Ae==null)return 0;if(xe==null)return Ae.a=2,0;if(Ae.l=xe,Ae.a=0,oe(Ae.m,xe.data,xe.w,xe.ha),!ht(Ae.m,Re,Fe,me)){Ae.a=3;break t}if(Ae.xb=Sc,xe.width=Re[0],xe.height=Fe[0],!be(Re[0],Fe[0],1,Ae,null))break t;return 1}return r(Ae.a!=0),0})(l,N)){if(N=(d=ss(N.width,N.height,U.Oa,U.ba))==0){t:{N=l;r:for(;;){if(N==null){N=0;break t}if(r(N.s.yc!=null),r(N.s.Ya!=null),r(0<N.s.Wb),r((x=N.l)!=null),r((I=x.ma)!=null),N.xb!=0){if(N.ca=I.ba,N.tb=I.tb,r(N.ca!=null),!to(I.Oa,x,b0)){N.a=2;break r}if(!Te(N,x.width)||x.da)break r;if((x.da||It(N.ca.S))&&ye(),11>N.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),N.ca.f.kb.F!=null&&ye()),N.Pb&&0<N.s.ua&&N.s.vb.X==null&&!$e(N.s.vb,N.s.Wa.Xa)){N.a=1;break r}N.xb=0}if(!ae(N,N.V,N.Ba,N.c,N.i,x.o,ne))break r;I.Dc=N.Ma,N=1;break t}r(N.a!=0),N=0}N=!N}N&&(d=l.a)}else d=l.a}else{if((l=new Nn)==null){U=1;break e}if(l.Fa=I.na,l.P=I.P,l.qc=I.Sa,Jo(l,N)){if((d=ss(N.width,N.height,U.Oa,U.ba))==0){if(l.Aa=0,x=U.Oa,r((I=l)!=null),x!=null){if(0<(G=0>(G=x.Md)?0:100<G?255:255*G/100)){for(ee=ge=0;4>ee;++ee)12>(Se=I.pb[ee]).lc&&(Se.ia=G*Yd[0>Se.lc?0:Se.lc]>>3),ge|=Se.ia;ge&&(alert("todo:VP8InitRandom"),I.ia=1)}I.Ga=x.Id,100<I.Ga?I.Ga=100:0>I.Ga&&(I.Ga=0)}Nl(l,N)||(d=l.a)}}else d=l.a}d==0&&U.Oa!=null&&U.Oa.fd&&(d=ro(U.ba))}U=d}B=U!=0?null:11>B?W.f.RGBA.eb:W.f.kb.y}else B=null;return B};var Cc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(P,D){for(var V="",E=0;E<4;E++)V+=String.fromCharCode(P[D++]);return V}function u(P,D){return(P[D+0]<<0|P[D+1]<<8|P[D+2]<<16)>>>0}function p(P,D){return(P[D+0]<<0|P[D+1]<<8|P[D+2]<<16|P[D+3]<<24)>>>0}new f;var g=[0],h=[0],w=[],v=new f,b=e,_=(function(P,D){var V={},E=0,T=!1,z=0,Y=0;if(V.frames=[],!(function(L,C,O,H){for(var fe=0;fe<H;fe++)if(L[C+fe]!=O.charCodeAt(fe))return!0;return!1})(P,D,"RIFF",4)){var ue,Q;for(p(P,D+=4),D+=8;D<P.length;){var J=c(P,D),oe=p(P,D+=4);D+=4;var te=oe+(1&oe);switch(J){case"VP8 ":case"VP8L":V.frames[E]===void 0&&(V.frames[E]={}),(y=V.frames[E]).src_off=T?Y:D-8,y.src_size=z+oe+8,E++,T&&(T=!1,z=0,Y=0);break;case"VP8X":(y=V.header={}).feature_flags=P[D];var pe=D+4;y.canvas_width=1+u(P,pe),pe+=3,y.canvas_height=1+u(P,pe),pe+=3;break;case"ALPH":T=!0,z=te+8,Y=D-8;break;case"ANIM":(y=V.header).bgcolor=p(P,D),pe=D+4,y.loop_count=(ue=P)[(Q=pe)+0]<<0|ue[Q+1]<<8,pe+=2;break;case"ANMF":var ie,y;(y=V.frames[E]={}).offset_x=2*u(P,D),D+=3,y.offset_y=2*u(P,D),D+=3,y.width=1+u(P,D),D+=3,y.height=1+u(P,D),D+=3,y.duration=u(P,D),D+=3,ie=P[D++],y.dispose=1&ie,y.blend=ie>>1&1}J!="ANMF"&&(D+=te)}return V}})(b,0);_.response=b,_.rgbaoutput=!0,_.dataurl=!1;var S=_.header?_.header:null,A=_.frames?_.frames:null;if(S){S.loop_counter=S.loop_count,g=[S.canvas_height],h=[S.canvas_width];for(var k=0;k<A.length&&A[k].blend!=0;k++);}var M=A[0],K=v.WebPDecodeRGBA(b,M.src_off,M.src_size,h,g);M.rgba=K,M.imgwidth=h[0],M.imgheight=g[0];for(var F=0;F<h[0]*g[0]*4;F++)w[F]=K[F];return this.width=h,this.height=g,this.data=w,this}(function(e){var r=function(){return typeof Of=="function"},t=function(g,h,w,v){var b=4,_=s;switch(v){case e.image_compression.FAST:b=1,_=a;break;case e.image_compression.MEDIUM:b=6,_=o;break;case e.image_compression.SLOW:b=9,_=f}g=n(g,h,w,_);var S=Of(g,{level:b});return e.__addimage__.arrayBufferToBinaryString(S)},n=function(g,h,w,v){for(var b,_,S,A=g.length/h,k=new Uint8Array(g.length+A),M=u(),K=0;K<A;K+=1){if(S=K*h,b=g.subarray(S,S+h),v)k.set(v(b,w,_),S+K);else{for(var F,P=M.length,D=[];F<P;F+=1)D[F]=M[F](b,w,_);var V=p(D.concat());k.set(D[V],S+K)}_=b}return k},i=function(g){var h=Array.apply([],g);return h.unshift(0),h},a=function(g,h){var w,v=[],b=g.length;v[0]=1;for(var _=0;_<b;_+=1)w=g[_-h]||0,v[_+1]=g[_]-w+256&255;return v},s=function(g,h,w){var v,b=[],_=g.length;b[0]=2;for(var S=0;S<_;S+=1)v=w&&w[S]||0,b[S+1]=g[S]-v+256&255;return b},o=function(g,h,w){var v,b,_=[],S=g.length;_[0]=3;for(var A=0;A<S;A+=1)v=g[A-h]||0,b=w&&w[A]||0,_[A+1]=g[A]+256-(v+b>>>1)&255;return _},f=function(g,h,w){var v,b,_,S,A=[],k=g.length;A[0]=4;for(var M=0;M<k;M+=1)v=g[M-h]||0,b=w&&w[M]||0,_=w&&w[M-h]||0,S=c(v,b,_),A[M+1]=g[M]-S+256&255;return A},c=function(g,h,w){if(g===h&&h===w)return g;var v=Math.abs(h-w),b=Math.abs(g-w),_=Math.abs(g+h-w-w);return v<=b&&v<=_?g:b<=_?h:w},u=function(){return[i,a,s,o,f]},p=function(g){var h=g.map((function(w){return w.reduce((function(v,b){return v+Math.abs(b)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(g,h,w,v){var b,_,S,A,k,M,K,F,P,D,V,E,T,z,Y,ue=this.decode.FLATE_DECODE,Q="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(S=new bp(g)).imgData,_=S.bits,b=S.colorSpace,k=S.colors,[4,6].indexOf(S.colorType)!==-1){if(S.bits===8){P=(F=S.pixelBitlength==32?new Uint32Array(S.decodePixels().buffer):S.pixelBitlength==16?new Uint16Array(S.decodePixels().buffer):new Uint8Array(S.decodePixels().buffer)).length,V=new Uint8Array(P*S.colors),D=new Uint8Array(P);var J,oe=S.pixelBitlength-S.bits;for(z=0,Y=0;z<P;z++){for(T=F[z],J=0;J<oe;)V[Y++]=T>>>J&255,J+=S.bits;D[z]=T>>>J&255}}if(S.bits===16){P=(F=new Uint32Array(S.decodePixels().buffer)).length,V=new Uint8Array(P*(32/S.pixelBitlength)*S.colors),D=new Uint8Array(P*(32/S.pixelBitlength)),E=S.colors>1,z=0,Y=0;for(var te=0;z<P;)T=F[z++],V[Y++]=T>>>0&255,E&&(V[Y++]=T>>>16&255,T=F[z++],V[Y++]=T>>>0&255),D[te++]=T>>>16&255;_=8}v!==e.image_compression.NONE&&r()?(g=t(V,S.width*S.colors,S.colors,v),K=t(D,S.width,1,v)):(g=V,K=D,ue=void 0)}if(S.colorType===3&&(b=this.color_spaces.INDEXED,M=S.palette,S.transparency.indexed)){var pe=S.transparency.indexed,ie=0;for(z=0,P=pe.length;z<P;++z)ie+=pe[z];if((ie/=255)===P-1&&pe.indexOf(0)!==-1)A=[pe.indexOf(0)];else if(ie!==P){for(F=S.decodePixels(),D=new Uint8Array(F.length),z=0,P=F.length;z<P;z++)D[z]=pe[F[z]];K=t(D,S.width,1)}}var y=(function(L){var C;switch(L){case e.image_compression.FAST:C=11;break;case e.image_compression.MEDIUM:C=13;break;case e.image_compression.SLOW:C=14;break;default:C=12}return C})(v);return ue===this.decode.FLATE_DECODE&&(Q="/Predictor "+y+" "),Q+="/Colors "+k+" /BitsPerComponent "+_+" /Columns "+S.width,(this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),(K&&this.__addimage__.isArrayBuffer(K)||this.__addimage__.isArrayBufferView(K))&&(K=this.__addimage__.arrayBufferToBinaryString(K)),{alias:w,data:g,index:h,filter:ue,decodeParameters:Q,transparency:A,palette:M,sMask:K,predictor:y,width:S.width,height:S.height,bitsPerComponent:_,colorSpace:b}}}})(ut.API),(function(e){e.processGIF89A=function(r,t,n,i){var a=new _p(r),s=a.width,o=a.height,f=[];a.decodeAndBlitFrameRGBA(0,f);var c={data:f,width:s,height:o},u=new xf(100).encode(c,100);return e.processJPEG.call(this,u,t,n,i)},e.processGIF87A=e.processGIF89A})(ut.API),ai.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 r=0;r<e;r++){var t=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[r]={red:i,green:n,blue:t,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ai.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,r=this.width*this.height*4;this.data=new Uint8Array(r),this[e]()}catch(t){er.log("bit decode error:"+t)}},ai.prototype.bit1=function(){var e,r=Math.ceil(this.width/8),t=r%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<r;i++)for(var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*i*4,o=0;o<8&&8*i+o<this.width;o++){var f=this.palette[a>>7-o&1];this.data[s+4*o]=f.blue,this.data[s+4*o+1]=f.green,this.data[s+4*o+2]=f.red,this.data[s+4*o+3]=255}t!==0&&(this.pos+=4-t)}},ai.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),r=e%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*i*4,o=a>>4,f=15&a,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*i+1>=this.width)break;c=this.palette[f],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}r!==0&&(this.pos+=4-r)}},ai.prototype.bit8=function(){for(var e=this.width%4,r=this.height-1;r>=0;r--){for(var t=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;if(i<this.palette.length){var s=this.palette[i];this.data[a]=s.red,this.data[a+1]=s.green,this.data[a+2]=s.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)}},ai.prototype.bit15=function(){for(var e=this.width%3,r=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&r)/r*255|0,o=(a>>5&r)/r*255|0,f=(a>>10&r)/r*255|0,c=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=f,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=c}this.pos+=e}},ai.prototype.bit16=function(){for(var e=this.width%3,r=parseInt("11111",2),t=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 s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&r)/r*255|0,f=(s>>5&t)/t*255|0,c=(s>>11)/r*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=f,this.data[u+2]=o,this.data[u+3]=255}this.pos+=e}},ai.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*t;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},ai.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var r=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*t;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=s}},ai.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(r,t,n,i){var a=new ai(r,!1),s=a.width,o=a.height,f={data:a.getData(),width:s,height:o},c=new xf(100).encode(f,100);return e.processJPEG.call(this,c,t,n,i)}})(ut.API),hu.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(r,t,n,i){var a=new hu(r),s=a.width,o=a.height,f={data:a.getData(),width:s,height:o},c=new xf(100).encode(f,100);return e.processJPEG.call(this,c,t,n,i)}})(ut.API),ut.API.processRGBA=function(e,r,t){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),s=new Uint8Array(i/4),o=0,f=0,c=0;c<i;c+=4){var u=n[c],p=n[c+1],g=n[c+2],h=n[c+3];a[o++]=u,a[o++]=p,a[o++]=g,s[f++]=h}var w=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:r,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},ut.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},ys=ut.API,U0=ys.getCharWidthsArray=function(e,r){var t,n,i=(r=r||{}).font||this.internal.getFont(),a=r.fontSize||this.internal.getFontSize(),s=r.charSpace||this.internal.getCharSpace(),o=r.widths?r.widths:i.metadata.Unicode.widths,f=o.fof?o.fof:1,c=r.kerning?r.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,p=r.doKerning!==!1,g=0,h=e.length,w=0,v=o[0]||f,b=[];for(t=0;t<h;t++)n=e.charCodeAt(t),typeof i.metadata.widthOfString=="function"?b.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/a)||0)/1e3):(g=p&&Wt(c[n])==="object"&&!isNaN(parseInt(c[n][w],10))?c[n][w]/u:0,b.push((o[n]||v)/f+g)),w=n;return b},lu=ys.getStringUnitWidth=function(e,r){var t=(r=r||{}).fontSize||this.internal.getFontSize(),n=r.font||this.internal.getFont(),i=r.charSpace||this.internal.getCharSpace();return ys.processArabic&&(e=ys.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,t,i)/t:U0.apply(this,arguments).reduce((function(a,s){return a+s}),0)},fu=function(e,r,t,n){for(var i=[],a=0,s=e.length,o=0;a!==s&&o+r[a]<t;)o+=r[a],a++;i.push(e.slice(0,a));var f=a;for(o=0;a!==s;)o+r[a]>n&&(i.push(e.slice(f,a)),o=0,f=a),o+=r[a],a++;return f!==a&&i.push(e.slice(f,a)),i},cu=function(e,r,t){t||(t={});var n,i,a,s,o,f,c,u=[],p=[u],g=t.textIndent||0,h=0,w=0,v=e.split(" "),b=U0.apply(this,[" ",t])[0];if(f=t.lineIndent===-1?v[0].length+2:t.lineIndent||0){var _=Array(f).join(" "),S=[];v.map((function(k){(k=k.split(/\s*\n/)).length>1?S=S.concat(k.map((function(M,K){return(K&&M.length?`
214
+ `:"")+M}))):S.push(k[0])})),v=S,f=lu.apply(this,[_,t])}for(a=0,s=v.length;a<s;a++){var A=0;if(n=v[a],f&&n[0]==`
215
+ `&&(n=n.substr(1),A=1),g+h+(w=(i=U0.apply(this,[n,t])).reduce((function(k,M){return k+M}),0))>r||A){if(w>r){for(o=fu.apply(this,[n,i,r-(g+h),r]),u.push(o.shift()),u=[o.pop()];o.length;)p.push([o.shift()]);w=i.slice(n.length-(u[0]?u[0].length:0)).reduce((function(k,M){return k+M}),0)}else u=[n];p.push(u),g=w+f,h=b}else u.push(n),g+=h+w,h=b}return c=f?function(k,M){return(M?_:"")+k.join(" ")}:function(k){return k.join(" ")},p.map(c)},ys.splitTextToSize=function(e,r,t){var n,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var p=this.internal.getFont(u.fontName,u.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*r/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var o,f,c=[];for(o=0,f=n.length;o<f;o++)c=c.concat(cu.apply(this,[n[o],s,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var r="klmnopqrstuvwxyz",t={},n={},i=0;i<r.length;i++)t[r[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=r[i];var a=function(p){return"0x"+parseInt(p,10).toString(16)},s=e.__fontmetrics__.compress=function(p){var g,h,w,v,b=["{"];for(var _ in p){if(g=p[_],isNaN(parseInt(_,10))?h="'"+_+"'":(_=parseInt(_,10),h=(h=a(_).slice(2)).slice(0,-1)+n[h.slice(-1)]),typeof g=="number")g<0?(w=a(g).slice(3),v="-"):(w=a(g).slice(2),v=""),w=v+w.slice(0,-1)+n[w.slice(-1)];else{if(Wt(g)!=="object")throw new Error("Don't know what to do with value type "+Wt(g)+".");w=s(g)}b.push(h+w)}return b.push("}"),b.join("")},o=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,h,w,v,b={},_=1,S=b,A=[],k="",M="",K=p.length-1,F=1;F<K;F+=1)(v=p[F])=="'"?g?(w=g.join(""),g=void 0):g=[]:g?g.push(v):v=="{"?(A.push([S,w]),S={},w=void 0):v=="}"?((h=A.pop())[0][h[1]]=S,w=void 0,S=h[0]):v=="-"?_=-1:w===void 0?t.hasOwnProperty(v)?(k+=t[v],w=parseInt(k,16)*_,_=1,k=""):k+=v:t.hasOwnProperty(v)?(M+=t[v],S[w]=parseInt(M,16)*_,_=1,w=void 0,M=""):M+=v;return b},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},u={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'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":o("{'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:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'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:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'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":o("{'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:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'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":o("{'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":o("{'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(p){var g=p.font,h=u.Unicode[g.postScriptName];h&&(g.metadata.Unicode={},g.metadata.Unicode.widths=h.widths,g.metadata.Unicode.kerning=h.kerning);var w=c.Unicode[g.postScriptName];w&&(g.metadata.Unicode.encoding=w,g.encoding=w.codePages[0])}])})(ut.API),(function(e){var r=function(t){for(var n=t.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=t.charCodeAt(a);return i};e.API.events.push(["addFont",function(t){var n=void 0,i=t.font,a=t.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(s,o){o=/^\x00\x01\x00\x00/.test(o)?r(o):r(Ao(o)),s.metadata=e.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,n)}}])})(ut),(function(e){function r(){return(gt.canvg?Promise.resolve(gt.canvg):Promise.resolve().then(()=>require("./index.es-BHwofhad.js"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}ut.API.addSvgAsImage=function(t,n,i,a,s,o,f,c){if(isNaN(n)||isNaN(i))throw er.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(s))throw er.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=s;var p=u.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,u.width,u.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return r().then((function(w){return w.fromString(p,t,g)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(w){return w.render(g)})).then((function(){h.addImage(u.toDataURL("image/jpeg",1),n,i,a,s,f,c)}))}})(),ut.API.putTotalPages=function(e){var r,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(r=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(r=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=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(r,t);return this},ut.API.viewerPreferences=function(e,r){var t;e=e||{},r=r||!1;var n,i,a,s={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}},o=Object.keys(s),f=[],c=0,u=0,p=0;function g(w,v){var b,_=!1;for(b=0;b<w.length;b+=1)w[b]===v&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||r===!0){var h=o.length;for(p=0;p<h;p+=1)t[o[p]].value=t[o[p]].defaultValue,t[o[p]].explicitSet=!1}if(Wt(e)==="object"){for(i in e)if(a=e[i],g(o,i)&&a!==void 0){if(t[i].type==="boolean"&&typeof a=="boolean")t[i].value=a;else if(t[i].type==="name"&&g(t[i].valueSet,a))t[i].value=a;else if(t[i].type==="integer"&&Number.isInteger(a))t[i].value=a;else if(t[i].type==="array"){for(c=0;c<a.length;c+=1)if(n=!0,a[c].length===1&&typeof a[c][0]=="number")f.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&&f.push([a[c][0]-1,a[c][1]-1].join(" "))}t[i].value="["+f.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var w,v=[];for(w in t)t[w].explicitSet===!0&&(t[w].type==="name"?v.push("/"+w+" /"+t[w].value):v.push("/"+w+" "+t[w].value));v.length!==0&&this.internal.write(`/ViewerPreferences
216
+ <<
217
+ `+v.join(`
218
+ `)+`
219
+ >>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},(function(e){var r=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)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+s.length+o.length+i.length+f.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+s+o+f),this.internal.write("endstream"),this.internal.write("endobj")},t=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",t),this.internal.events.subscribe("postPutResources",r)),this}})(ut.API),(function(e){var r=e.API,t=r.pdfEscape16=function(a,s){for(var o,f=s.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],p=0,g=a.length;p<g;++p){if(o=s.metadata.characterToGlyph(a.charCodeAt(p)),s.metadata.glyIdsUsed.push(o),s.metadata.toUnicode[o]=a.charCodeAt(p),f.indexOf(o)==-1&&(f.push(o),f.push([parseInt(s.metadata.widthOfGlyph(o),10)])),o=="0")return u.join("");o=o.toString(16),u.push(c[4-o.length],o)}return u.join("")},n=function(a){var s,o,f,c,u,p,g;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`,f=[],p=0,g=(o=Object.keys(a).sort((function(h,w){return h-w}))).length;p<g;p++)s=o[p],f.length>=100&&(u+=`
232
+ `+f.length+` beginbfchar
233
+ `+f.join(`
234
+ `)+`
235
+ endbfchar`,f=[]),a[s]!==void 0&&a[s]!==null&&typeof a[s].toString=="function"&&(c=("0000"+a[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),f.push("<"+s+"><"+c+">"));return f.length&&(u+=`
236
+ `+f.length+` beginbfchar
237
+ `+f.join(`
238
+ `)+`
239
+ endbfchar
240
+ `),u+=`endcmap
241
+ CMapName currentdict /CMap defineresource pop
242
+ end
243
+ end`};r.events.push(["putFont",function(a){(function(s){var o=s.font,f=s.out,c=s.newObject,u=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var p=o.metadata.Unicode.widths,g=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),h="",w=0;w<g.length;w++)h+=String.fromCharCode(g[w]);var v=c();u({data:h,addLength1:!0,objectId:v}),f("endobj");var b=c();u({data:n(o.metadata.toUnicode),addLength1:!0,objectId:b}),f("endobj");var _=c();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Ts(o.fontName)),f("/FontFile2 "+v+" 0 R"),f("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),f("/Flags "+o.metadata.flags),f("/StemV "+o.metadata.stemV),f("/ItalicAngle "+o.metadata.italicAngle),f("/Ascent "+o.metadata.ascender),f("/Descent "+o.metadata.decender),f("/CapHeight "+o.metadata.capHeight),f(">>"),f("endobj");var S=c();f("<<"),f("/Type /Font"),f("/BaseFont /"+Ts(o.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+e.API.PDFObject.convert(p)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+o.encoding+")"),f(">>"),f(">>"),f("endobj"),o.objectNumber=c(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+b+" 0 R"),f("/BaseFont /"+Ts(o.fontName)),f("/Encoding /"+o.encoding),f("/DescendantFonts ["+S+" 0 R]"),f(">>"),f("endobj"),o.isAlreadyPutted=!0}})(a)}]),r.events.push(["putFont",function(a){(function(s){var o=s.font,f=s.out,c=s.newObject,u=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var p=o.metadata.rawData,g="",h=0;h<p.length;h++)g+=String.fromCharCode(p[h]);var w=c();u({data:g,addLength1:!0,objectId:w}),f("endobj");var v=c();u({data:n(o.metadata.toUnicode),addLength1:!0,objectId:v}),f("endobj");var b=c();f("<<"),f("/Descent "+o.metadata.decender),f("/CapHeight "+o.metadata.capHeight),f("/StemV "+o.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+w+" 0 R"),f("/Flags 96"),f("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),f("/FontName /"+Ts(o.fontName)),f("/ItalicAngle "+o.metadata.italicAngle),f("/Ascent "+o.metadata.ascender),f(">>"),f("endobj"),o.objectNumber=c();for(var _=0;_<o.metadata.hmtx.widths.length;_++)o.metadata.hmtx.widths[_]=parseInt(o.metadata.hmtx.widths[_]*(1e3/o.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+Ts(o.fontName)+"/FontDescriptor "+b+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),f("endobj"),o.isAlreadyPutted=!0}})(a)}]);var i=function(a){var s,o=a.text||"",f=a.x,c=a.y,u=a.options||{},p=a.mutex||{},g=p.pdfEscape,h=p.activeFontKey,w=p.fonts,v=h,b="",_=0,S="",A=w[v].encoding;if(w[v].encoding!=="Identity-H")return{text:o,x:f,y:c,options:u,mutex:p};for(S=o,v=h,Array.isArray(o)&&(S=o[0]),_=0;_<S.length;_+=1)w[v].metadata.hasOwnProperty("cmap")&&(s=w[v].metadata.cmap.unicode.codeMap[S[_].charCodeAt(0)]),s||S[_].charCodeAt(0)<256&&w[v].metadata.hasOwnProperty("Unicode")?b+=S[_]:b+="";var k="";return parseInt(v.slice(1))<14||A==="WinAnsiEncoding"?k=g(b,v).split("").map((function(M){return M.charCodeAt(0).toString(16)})).join(""):A==="Identity-H"&&(k=t(b,w[v])),p.isHex=!0,{text:k,x:f,y:c,options:u,mutex:p}};r.events.push(["postProcessText",function(a){var s=a.text||"",o=[],f={text:s,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(s)){var c=0;for(c=0;c<s.length;c+=1)Array.isArray(s[c])&&s[c].length===3?o.push([i(Object.assign({},f,{text:s[c][0]})).text,s[c][1],s[c][2]]):o.push(i(Object.assign({},f,{text:s[c]})).text);a.text=o}else a.text=i(Object.assign({},f,{text:s})).text}])})(ut),(function(e){var r=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return r.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,n){return r.call(this),this.internal.vFS[t]=n,this},e.getFileFromVFS=function(t){return r.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}})(ut.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,s,o,f,c,u,p=r,g=[[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]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},b=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=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)$/),S=!1,A=0;this.__bidiEngine__={};var k=function(E){var T=E.charCodeAt(),z=T>>8,Y=v[z];return Y!==void 0?p[256*Y+(255&T)]:z===252||z===253?"AL":_.test(z)?"L":z===8?"R":"N"},M=function(E){for(var T,z=0;z<E.length;z++){if((T=k(E.charAt(z)))==="L")return!1;if(T==="R")return!0}return!1},K=function(E,T,z,Y){var ue,Q,J,oe,te=T[Y];switch(te){case"L":case"R":S=!1;break;case"N":case"AN":break;case"EN":S&&(te="AN");break;case"AL":S=!0,te="R";break;case"WS":te="N";break;case"CS":Y<1||Y+1>=T.length||(ue=z[Y-1])!=="EN"&&ue!=="AN"||(Q=T[Y+1])!=="EN"&&Q!=="AN"?te="N":S&&(Q="AN"),te=Q===ue?Q:"N";break;case"ES":te=(ue=Y>0?z[Y-1]:"B")==="EN"&&Y+1<T.length&&T[Y+1]==="EN"?"EN":"N";break;case"ET":if(Y>0&&z[Y-1]==="EN"){te="EN";break}if(S){te="N";break}for(J=Y+1,oe=T.length;J<oe&&T[J]==="ET";)J++;te=J<oe&&T[J]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(oe=T.length,J=Y+1;J<oe&&T[J]==="NSM";)J++;if(J<oe){var pe=E[Y],ie=pe>=1425&&pe<=2303||pe===64286;if(ue=T[J],ie&&(ue==="R"||ue==="AL")){te="R";break}}}te=Y<1||(ue=T[Y-1])==="B"?"N":z[Y-1];break;case"B":S=!1,i=!0,te=A;break;case"S":a=!0,te="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"BN":te="N"}return te},F=function(E,T,z){var Y=E.split("");return z&&P(Y,z,{hiLevel:A}),Y.reverse(),T&&T.reverse(),Y.join("")},P=function(E,T,z){var Y,ue,Q,J,oe,te=-1,pe=E.length,ie=0,y=[],L=A?h:g,C=[];for(S=!1,i=!1,a=!1,ue=0;ue<pe;ue++)C[ue]=k(E[ue]);for(Q=0;Q<pe;Q++){if(oe=ie,y[Q]=K(E,C,y,Q),Y=240&(ie=L[oe][w[y[Q]]]),ie&=15,T[Q]=J=L[ie][5],Y>0)if(Y===16){for(ue=te;ue<Q;ue++)T[ue]=1;te=-1}else te=-1;if(L[ie][6])te===-1&&(te=Q);else if(te>-1){for(ue=te;ue<Q;ue++)T[ue]=J;te=-1}C[Q]==="B"&&(T[Q]=0),z.hiLevel|=J}a&&(function(O,H,fe){for(var ce=0;ce<fe;ce++)if(O[ce]==="S"){H[ce]=A;for(var he=ce-1;he>=0&&O[he]==="WS";he--)H[he]=A}})(C,T,pe)},D=function(E,T,z,Y,ue){if(!(ue.hiLevel<E)){if(E===1&&A===1&&!i)return T.reverse(),void(z&&z.reverse());for(var Q,J,oe,te,pe=T.length,ie=0;ie<pe;){if(Y[ie]>=E){for(oe=ie+1;oe<pe&&Y[oe]>=E;)oe++;for(te=ie,J=oe-1;te<J;te++,J--)Q=T[te],T[te]=T[J],T[J]=Q,z&&(Q=z[te],z[te]=z[J],z[J]=Q);ie=oe}ie++}}},V=function(E,T,z){var Y=E.split(""),ue={hiLevel:A};return z||(z=[]),P(Y,z,ue),(function(Q,J,oe){if(oe.hiLevel!==0&&u)for(var te,pe=0;pe<Q.length;pe++)J[pe]===1&&(te=b.indexOf(Q[pe]))>=0&&(Q[pe]=b[te+1])})(Y,z,ue),D(2,Y,T,z,ue),D(1,Y,T,z,ue),Y.join("")};return this.__bidiEngine__.doBidiReorder=function(E,T,z){if((function(ue,Q){if(Q)for(var J=0;J<ue.length;J++)Q[J]=J;o===void 0&&(o=M(ue)),c===void 0&&(c=M(ue))})(E,T),s||!f||c)if(s&&f&&o^c)A=o?1:0,E=F(E,T,z);else if(!s&&f&&c)A=o?1:0,E=V(E,T,z),E=F(E,T);else if(!s||o||f||c){if(s&&!f&&o^c)E=F(E,T),o?(A=0,E=V(E,T,z)):(A=1,E=V(E,T,z),E=F(E,T));else if(s&&o&&!f&&c)A=1,E=V(E,T,z),E=F(E,T);else if(!s&&!f&&o^c){var Y=u;o?(A=1,E=V(E,T,z),A=0,u=!1,E=V(E,T,z),u=Y):(A=0,E=V(E,T,z),E=F(E,T),A=1,u=!1,E=V(E,T,z),u=Y,E=F(E,T))}}else A=0,E=V(E,T,z);else A=o?1:0,E=V(E,T,z);return E},this.__bidiEngine__.setOptions=function(E){E&&(s=E.isInputVisual,f=E.isOutputVisual,o=E.isInputRtl,c=E.isOutputRtl,u=E.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var r=["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"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text,a=(n.x,n.y,n.options||{}),s=(n.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,t.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var o=0;for(s=[],o=0;o<i.length;o+=1)Object.prototype.toString.call(i[o])==="[object Array]"?s.push([t.doBidiReorder(i[o][0]),i[o][1],i[o][2]]):s.push([t.doBidiReorder(i[o])]);n.text=s}else n.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])})(ut),ut.API.TTFFont=(function(){function e(r){var t;if(this.rawData=r,t=this.contents=new xa(r),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Mp(this),this.registerTTF()}return e.open=function(r){return new e(r)},e.prototype.parse=function(){return this.directory=new Sp(this.contents),this.head=new Tp(this),this.name=new Cp(this),this.cmap=new kh(this),this.toUnicode={},this.hhea=new Np(this),this.maxp=new kp(this),this.hmtx=new Pp(this),this.post=new Lp(this),this.os2=new Ep(this),this.loca=new Dp(this),this.glyf=new Op(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 r,t,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,o,f,c;for(c=[],s=0,o=(f=this.bbox).length;s<o;s++)r=f[s],c.push(Math.round(r*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),(32768&(t=i>>16))!=0&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+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(r){var t;return((t=this.cmap.unicode)!=null?t.codeMap[r]:void 0)||0},e.prototype.widthOfGlyph=function(r){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(r).advance*t},e.prototype.widthOfString=function(r,t,n){var i,a,s,o;for(s=0,a=0,o=(r=""+r).length;0<=o?a<o:a>o;a=0<=o?++a:--a)i=r.charCodeAt(a),s+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return s*(t/1e3)},e.prototype.lineHeight=function(r,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*r},e})();var di,xa=(function(){function e(r){this.data=r??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(r){return this.data[this.pos++]=r},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(r){return this.writeByte(r>>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt32=function(){var r;return(r=this.readUInt32())>=2147483648?r-4294967296:r},e.prototype.writeInt32=function(r){return r<0&&(r+=4294967296),this.writeUInt32(r)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(r){return this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt16=function(){var r;return(r=this.readUInt16())>=32768?r-65536:r},e.prototype.writeInt16=function(r){return r<0&&(r+=65536),this.writeUInt16(r)},e.prototype.readString=function(r){var t,n;for(n=[],t=0;0<=r?t<r:t>r;t=0<=r?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(r){var t,n,i;for(i=[],t=0,n=r.length;0<=n?t<n:t>n;t=0<=n?++t:--t)i.push(this.writeByte(r.charCodeAt(t)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(r){return this.writeInt16(r)},e.prototype.readLongLong=function(){var r,t,n,i,a,s,o,f;return r=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),f=this.readByte(),128&r?-1*(72057594037927940*(255^r)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^s)+256*(255^o)+(255^f)+1):72057594037927940*r+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*s+256*o+f},e.prototype.writeLongLong=function(r){var t,n;return t=Math.floor(r/4294967296),n=4294967295&r,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),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(r){return this.writeInt32(r)},e.prototype.read=function(r){var t,n;for(t=[],n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(r){var t,n,i,a;for(a=[],n=0,i=r.length;n<i;n++)t=r[n],a.push(this.writeByte(t));return a},e})(),Sp=(function(){var e;function r(t){var n,i,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return r.prototype.encode=function(t){var n,i,a,s,o,f,c,u,p,g,h,w,v;for(v in h=Object.keys(t).length,f=Math.log(2),p=16*Math.floor(Math.log(h)/f),s=Math.floor(p/f),u=16*h-p,(i=new xa).writeInt(this.scalarType),i.writeShort(h),i.writeShort(p),i.writeShort(s),i.writeShort(u),a=16*h,c=i.pos+a,o=null,w=[],t)for(g=t[v],i.writeString(v),i.writeInt(e(g)),i.writeInt(c),i.writeInt(g.length),w=w.concat(g),v==="head"&&(o=c),c+=g.length;c%4;)w.push(0),c++;return i.write(w),n=2981146554-e(i.data),i.pos=o+8,i.writeUInt32(n),i.data},e=function(t){var n,i,a,s;for(t=Ph.call(t);t.length%4;)t.push(0);for(a=new xa(t),i=0,n=0,s=t.length;n<s;n=n+=4)i+=a.readUInt32();return 4294967295&i},r})(),Ap={}.hasOwnProperty,Ei=function(e,r){for(var t in r)Ap.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,e};di=(function(){function e(r){var t;this.file=r,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.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 Tp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="head",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},r.prototype.encode=function(t){var n;return(n=new xa).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(t),n.writeShort(this.glyphDataFormat),n.data},r})(),du=(function(){function e(r,t){var n,i,a,s,o,f,c,u,p,g,h,w,v,b,_,S,A;switch(this.platformID=r.readUInt16(),this.encodingID=r.readShort(),this.offset=t+r.readInt(),p=r.pos,r.pos=this.offset,this.format=r.readUInt16(),this.length=r.readUInt16(),this.language=r.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(f=0;f<256;++f)this.codeMap[f]=r.readByte();break;case 4:for(h=r.readUInt16(),g=h/2,r.pos+=6,a=(function(){var k,M;for(M=[],f=k=0;0<=g?k<g:k>g;f=0<=g?++k:--k)M.push(r.readUInt16());return M})(),r.pos+=2,v=(function(){var k,M;for(M=[],f=k=0;0<=g?k<g:k>g;f=0<=g?++k:--k)M.push(r.readUInt16());return M})(),c=(function(){var k,M;for(M=[],f=k=0;0<=g?k<g:k>g;f=0<=g?++k:--k)M.push(r.readUInt16());return M})(),u=(function(){var k,M;for(M=[],f=k=0;0<=g?k<g:k>g;f=0<=g?++k:--k)M.push(r.readUInt16());return M})(),i=(this.length-r.pos+this.offset)/2,o=(function(){var k,M;for(M=[],f=k=0;0<=i?k<i:k>i;f=0<=i?++k:--k)M.push(r.readUInt16());return M})(),f=_=0,A=a.length;_<A;f=++_)for(b=a[f],n=S=w=v[f];w<=b?S<=b:S>=b;n=w<=b?++S:--S)u[f]===0?s=n+c[f]:(s=o[u[f]/2+(n-w)-(g-f)]||0)!==0&&(s+=c[f]),this.codeMap[n]=65535&s}r.pos=p}return e.encode=function(r,t){var n,i,a,s,o,f,c,u,p,g,h,w,v,b,_,S,A,k,M,K,F,P,D,V,E,T,z,Y,ue,Q,J,oe,te,pe,ie,y,L,C,O,H,fe,ce,he,we,Pe,De;switch(Y=new xa,s=Object.keys(r).sort((function(He,$e){return He-$e})),t){case"macroman":for(v=0,b=(function(){var He=[];for(w=0;w<256;++w)He.push(0);return He})(),S={0:0},a={},ue=0,te=s.length;ue<te;ue++)S[he=r[i=s[ue]]]==null&&(S[he]=++v),a[i]={old:r[i],new:S[r[i]]},b[i]=S[r[i]];return Y.writeUInt16(1),Y.writeUInt16(0),Y.writeUInt32(12),Y.writeUInt16(0),Y.writeUInt16(262),Y.writeUInt16(0),Y.write(b),{charMap:a,subtable:Y.data,maxGlyphID:v+1};case"unicode":for(T=[],p=[],A=0,S={},n={},_=c=null,Q=0,pe=s.length;Q<pe;Q++)S[M=r[i=s[Q]]]==null&&(S[M]=++A),n[i]={old:M,new:S[M]},o=S[M]-i,_!=null&&o===c||(_&&p.push(_),T.push(i),c=o),_=i;for(_&&p.push(_),p.push(65535),T.push(65535),V=2*(D=T.length),P=2*Math.pow(Math.log(D)/Math.LN2,2),g=Math.log(P/2)/Math.LN2,F=2*D-P,f=[],K=[],h=[],w=J=0,ie=T.length;J<ie;w=++J){if(E=T[w],u=p[w],E===65535){f.push(0),K.push(0);break}if(E-(z=n[E].new)>=32768)for(f.push(0),K.push(2*(h.length+D-w)),i=oe=E;E<=u?oe<=u:oe>=u;i=E<=u?++oe:--oe)h.push(n[i].new);else f.push(z-E),K.push(0)}for(Y.writeUInt16(3),Y.writeUInt16(1),Y.writeUInt32(12),Y.writeUInt16(4),Y.writeUInt16(16+8*D+2*h.length),Y.writeUInt16(0),Y.writeUInt16(V),Y.writeUInt16(P),Y.writeUInt16(g),Y.writeUInt16(F),fe=0,y=p.length;fe<y;fe++)i=p[fe],Y.writeUInt16(i);for(Y.writeUInt16(0),ce=0,L=T.length;ce<L;ce++)i=T[ce],Y.writeUInt16(i);for(we=0,C=f.length;we<C;we++)o=f[we],Y.writeUInt16(o);for(Pe=0,O=K.length;Pe<O;Pe++)k=K[Pe],Y.writeUInt16(k);for(De=0,H=h.length;De<H;De++)v=h[De],Y.writeUInt16(v);return{charMap:n,subtable:Y.data,maxGlyphID:A+1}}},e})(),kh=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="cmap",r.prototype.parse=function(t){var n,i,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)n=new du(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},r.encode=function(t,n){var i,a;return n==null&&(n="macroman"),i=du.encode(t,n),(a=new xa).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},r})(),Np=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="hhea",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},r})(),Ep=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="OS/2",r.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var n,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i})(),this.charRange=(function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},r})(),Lp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="post",r.prototype.parse=function(t){var n,i,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var s;for(i=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)n=t.readByte(),a.push(this.names.push(t.readString(n)));return a;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 196608:break;case 262144:return this.map=(function(){var o,f,c;for(c=[],s=o=0,f=this.file.maxp.numGlyphs;0<=f?o<f:o>f;s=0<=f?++o:--o)c.push(t.readUInt32());return c}).call(this)}},r})(),Fp=function(e,r){this.raw=e,this.length=e.length,this.platformID=r.platformID,this.encodingID=r.encodingID,this.languageID=r.languageID},Cp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="name",r.prototype.parse=function(t){var n,i,a,s,o,f,c,u,p,g,h;for(t.pos=this.offset,t.readShort(),n=t.readShort(),f=t.readShort(),i=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+f+t.readShort()});for(c={},s=p=0,g=i.length;p<g;s=++p)a=i[s],t.pos=a.offset,u=t.readString(a.length),o=new Fp(u,a),c[h=a.nameID]==null&&(c[h]=[]),c[a.nameID].push(o);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]},r})(),kp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="maxp",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},r})(),Pp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="hmtx",r.prototype.parse=function(t){var n,i,a,s,o,f,c;for(t.pos=this.offset,this.metrics=[],n=0,f=this.file.hhea.numberOfMetrics;0<=f?n<f:n>f;n=0<=f?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var u,p;for(p=[],n=u=0;0<=a?u<a:u>a;n=0<=a?++u:--u)p.push(t.readInt16());return p})(),this.widths=(function(){var u,p,g,h;for(h=[],u=0,p=(g=this.metrics).length;u<p;u++)s=g[u],h.push(s.advance);return h}).call(this),i=this.widths[this.widths.length-1],c=[],n=o=0;0<=a?o<a:o>a;n=0<=a?++o:--o)c.push(this.widths.push(i));return c},r.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},r})(),Ph=[].slice,Op=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="glyf",r.prototype.parse=function(){return this.cache={}},r.prototype.glyphFor=function(t){var n,i,a,s,o,f,c,u,p,g;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,i=s.indexOf(t),(a=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,o=(f=new xa(n.read(a))).readShort(),u=f.readShort(),g=f.readShort(),c=f.readShort(),p=f.readShort(),this.cache[t]=o===-1?new Rp(f,u,g,c,p):new Ip(f,o,u,g,c,p),this.cache[t]))},r.prototype.encode=function(t,n,i){var a,s,o,f,c;for(o=[],s=[],f=0,c=n.length;f<c;f++)a=t[n[f]],s.push(o.length),a&&(o=o.concat(a.encode(i)));return s.push(o.length),{table:o,offsets:s}},r})(),Ip=(function(){function e(r,t,n,i,a,s){this.raw=r,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),Rp=(function(){function e(r,t,n,i,a){var s,o;for(this.raw=r,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return e.prototype.encode=function(){var r,t,n;for(t=new xa(Ph.call(this.raw.data)),r=0,n=this.glyphIDs.length;r<n;++r)t.pos=this.glyphOffsets[r];return t.data},e})(),Dp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="loca",r.prototype.parse=function(t){var n,i;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var a,s;for(s=[],i=0,a=this.length;i<a;i+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var a,s;for(s=[],i=0,a=this.length;i<a;i+=4)s.push(t.readUInt32());return s}).call(this)},r.prototype.indexOf=function(t){return this.offsets[t]},r.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},r.prototype.encode=function(t,n){for(var i=new Uint32Array(this.offsets.length),a=0,s=0,o=0;o<i.length;++o)if(i[o]=a,s<n.length&&n[s]==o){++s,i[o]=a;var f=this.offsets[o],c=this.offsets[o+1]-f;c>0&&(a+=c)}for(var u=new Array(4*i.length),p=0;p<i.length;++p)u[4*p+3]=255&i[p],u[4*p+2]=(65280&i[p])>>8,u[4*p+1]=(16711680&i[p])>>16,u[4*p]=(4278190080&i[p])>>24;return u},r})(),Mp=(function(){function e(r){this.font=r,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var r,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,r={},a=this.subset)n=a[t],r[t]=i[n];return r},e.prototype.glyphsFor=function(r){var t,n,i,a,s,o,f;for(i={},s=0,o=r.length;s<o;s++)i[a=r[s]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(n=i[a])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(a in f=this.glyphsFor(t))n=f[a],i[a]=n;return i},e.prototype.encode=function(r,t){var n,i,a,s,o,f,c,u,p,g,h,w,v,b,_;for(i in n=kh.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(r),h={0:0},_=n.charMap)h[(f=_[i]).old]=f.new;for(w in g=n.maxGlyphID,s)w in h||(h[w]=g++);return u=(function(S){var A,k;for(A in k={},S)k[S[A]]=A;return k})(h),p=Object.keys(u).sort((function(S,A){return S-A})),v=(function(){var S,A,k;for(k=[],S=0,A=p.length;S<A;S++)o=p[S],k.push(u[o]);return k})(),a=this.font.glyf.encode(s,v,h),c=this.font.loca.encode(a.offsets,v),b={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(t)},this.font.os2.exists&&(b["OS/2"]=this.font.os2.raw()),this.font.directory.encode(b)},e})();ut.API.PDFObject=(function(){var e;function r(){}return e=function(t,n){return(Array(n+1).join("0")+t).slice(-n)},r.convert=function(t){var n,i,a,s;if(Array.isArray(t))return"["+(function(){var o,f,c;for(c=[],o=0,f=t.length;o<f;o++)n=t[o],c.push(r.convert(n));return c})().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(i in a=["<<"],t)s=t[i],a.push("/"+i+" "+r.convert(s));return a.push(">>"),a.join(`
244
+ `)}return""+t},r})();const Bp=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:gp,AcroFormAppearance:ot,AcroFormButton:Ir,AcroFormCheckBox:Eo,AcroFormChoiceField:Da,AcroFormComboBox:Ba,AcroFormEditBox:To,AcroFormListBox:Ma,AcroFormPasswordField:Lo,AcroFormPushButton:No,AcroFormRadioButton:ja,AcroFormTextField:ma,GState:Do,ShadingPattern:ha,TilingPattern:Ra,default:ut,jsPDF:ut},Symbol.toStringTag,{value:"Module"}));var Oh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var K0={exports:{}};const zp=Up(Bp);/*!
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 pu=K0.exports,gu;function Wp(){return gu||(gu=1,(function(e,r){(function(n,i){e.exports=i((function(){try{return zp}catch{}})())})(typeof globalThis<"u"?globalThis:typeof pu<"u"?pu:typeof window<"u"?window:typeof self<"u"?self:Oh,function(t){return(function(){var n={172:(function(o,f){var c=this&&this.__extends||(function(){var g=function(h,w){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(v[_]=b[_])},g(h,w)};return function(h,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");g(h,w);function v(){this.constructor=h}h.prototype=w===null?Object.create(w):(v.prototype=w.prototype,new v)}})();Object.defineProperty(f,"__esModule",{value:!0}),f.CellHookData=f.HookData=void 0;var u=(function(){function g(h,w,v){this.table=w,this.pageNumber=w.pageNumber,this.pageCount=this.pageNumber,this.settings=w.settings,this.cursor=v,this.doc=h.getDocument()}return g})();f.HookData=u;var p=(function(g){c(h,g);function h(w,v,b,_,S,A){var k=g.call(this,w,v,A)||this;return k.cell=b,k.row=_,k.column=S,k.section=_.section,k}return h})(u);f.CellHookData=p}),340:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0});var u=c(4),p=c(136),g=c(744),h=c(776),w=c(664),v=c(972);function b(_){_.API.autoTable=function(){for(var S=[],A=0;A<arguments.length;A++)S[A]=arguments[A];var k;S.length===1?k=S[0]:(console.error("Use of deprecated autoTable initiation"),k=S[2]||{},k.columns=S[0],k.body=S[1]);var M=(0,h.parseInput)(this,k),K=(0,v.createTable)(this,M);return(0,w.drawTable)(this,K),this},_.API.lastAutoTable=!1,_.API.previousAutoTable=!1,_.API.autoTable.previous=!1,_.API.autoTableText=function(S,A,k,M){(0,p.default)(S,A,k,M,this)},_.API.autoTableSetDefaults=function(S){return g.DocHandler.setDefaults(S,this),this},_.autoTableSetDefaults=function(S,A){g.DocHandler.setDefaults(S,A)},_.API.autoTableHtmlToJson=function(S,A){var k;if(A===void 0&&(A=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var M=new g.DocHandler(this),K=(0,u.parseHtml)(M,S,window,A,!1),F=K.head,P=K.body,D=((k=F[0])===null||k===void 0?void 0:k.map(function(V){return V.content}))||[];return{columns:D,rows:P,data:P}},_.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var S=this.lastAutoTable;return S&&S.finalY?S.finalY:0},_.API.autoTableAddPageContent=function(S){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),_.API.autoTable.globalDefaults||(_.API.autoTable.globalDefaults={}),_.API.autoTable.globalDefaults.addPageContent=S,this},_.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}f.default=b}),136:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0});function c(u,p,g,h,w){h=h||{};var v=1.15,b=w.internal.scaleFactor,_=w.internal.getFontSize()/b,S=w.getLineHeightFactor?w.getLineHeightFactor():v,A=_*S,k=/\r\n|\r|\n/g,M="",K=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(M=typeof u=="string"?u.split(k):u,K=M.length||1),g+=_*(2-v),h.valign==="middle"?g-=K/2*A:h.valign==="bottom"&&(g-=K*A),h.halign==="center"||h.halign==="right"){var F=_;if(h.halign==="center"&&(F*=.5),M&&K>=1){for(var P=0;P<M.length;P++)w.text(M[P],p-w.getStringUnitWidth(M[P])*F,g),g+=A;return w}p-=w.getStringUnitWidth(u)*F}return h.halign==="justify"?w.text(u,p,g,{maxWidth:h.maxWidth||100,align:"justify"}):w.text(u,p,g),w}f.default=c}),420:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0}),f.getPageAvailableWidth=f.parseSpacing=f.getFillStyle=f.addTableBorder=f.getStringWidth=void 0;function c(w,v,b){b.applyStyles(v,!0);var _=Array.isArray(w)?w:[w],S=_.map(function(A){return b.getTextWidth(A)}).reduce(function(A,k){return Math.max(A,k)},0);return S}f.getStringWidth=c;function u(w,v,b,_){var S=v.settings.tableLineWidth,A=v.settings.tableLineColor;w.applyStyles({lineWidth:S,lineColor:A});var k=p(S,!1);k&&w.rect(b.x,b.y,v.getWidth(w.pageSize().width),_.y-b.y,k)}f.addTableBorder=u;function p(w,v){var b=w>0,_=v||v===0;return b&&_?"DF":b?"S":_?"F":null}f.getFillStyle=p;function g(w,v){var b,_,S,A;if(w=w||v,Array.isArray(w)){if(w.length>=4)return{top:w[0],right:w[1],bottom:w[2],left:w[3]};if(w.length===3)return{top:w[0],right:w[1],bottom:w[2],left:w[1]};if(w.length===2)return{top:w[0],right:w[1],bottom:w[0],left:w[1]};w.length===1?w=w[0]:w=v}return typeof w=="object"?(typeof w.vertical=="number"&&(w.top=w.vertical,w.bottom=w.vertical),typeof w.horizontal=="number"&&(w.right=w.horizontal,w.left=w.horizontal),{left:(b=w.left)!==null&&b!==void 0?b:v,top:(_=w.top)!==null&&_!==void 0?_:v,right:(S=w.right)!==null&&S!==void 0?S:v,bottom:(A=w.bottom)!==null&&A!==void 0?A:v}):(typeof w!="number"&&(w=v),{top:w,right:w,bottom:w,left:w})}f.parseSpacing=g;function h(w,v){var b=g(v.settings.margin,0);return w.pageSize().width-(b.left+b.right)}f.getPageAvailableWidth=h}),796:(function(o,f){var c=this&&this.__extends||(function(){var h=function(w,v){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&(b[S]=_[S])},h(w,v)};return function(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");h(w,v);function b(){this.constructor=w}w.prototype=v===null?Object.create(v):(b.prototype=v.prototype,new b)}})();Object.defineProperty(f,"__esModule",{value:!0}),f.getTheme=f.defaultStyles=f.HtmlRowInput=void 0;var u=(function(h){c(w,h);function w(v){var b=h.call(this)||this;return b._element=v,b}return w})(Array);f.HtmlRowInput=u;function p(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}}f.defaultStyles=p;function g(h){var w={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 w[h]}f.getTheme=g}),903:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.parseCss=void 0;var u=c(420);function p(b,_,S,A,k){var M={},K=1.3333333333333333,F=h(_,function(te){return k.getComputedStyle(te).backgroundColor});F!=null&&(M.fillColor=F);var P=h(_,function(te){return k.getComputedStyle(te).color});P!=null&&(M.textColor=P);var D=v(A,S);D&&(M.cellPadding=D);var V="borderTopColor",E=K*S,T=A.borderTopWidth;if(A.borderBottomWidth===T&&A.borderRightWidth===T&&A.borderLeftWidth===T){var z=(parseFloat(T)||0)/E;z&&(M.lineWidth=z)}else M.lineWidth={top:(parseFloat(A.borderTopWidth)||0)/E,right:(parseFloat(A.borderRightWidth)||0)/E,bottom:(parseFloat(A.borderBottomWidth)||0)/E,left:(parseFloat(A.borderLeftWidth)||0)/E},M.lineWidth.top||(M.lineWidth.right?V="borderRightColor":M.lineWidth.bottom?V="borderBottomColor":M.lineWidth.left&&(V="borderLeftColor"));var Y=h(_,function(te){return k.getComputedStyle(te)[V]});Y!=null&&(M.lineColor=Y);var ue=["left","right","center","justify"];ue.indexOf(A.textAlign)!==-1&&(M.halign=A.textAlign),ue=["middle","bottom","top"],ue.indexOf(A.verticalAlign)!==-1&&(M.valign=A.verticalAlign);var Q=parseInt(A.fontSize||"");isNaN(Q)||(M.fontSize=Q/K);var J=g(A);J&&(M.fontStyle=J);var oe=(A.fontFamily||"").toLowerCase();return b.indexOf(oe)!==-1&&(M.font=oe),M}f.parseCss=p;function g(b){var _="";return(b.fontWeight==="bold"||b.fontWeight==="bolder"||parseInt(b.fontWeight)>=700)&&(_="bold"),(b.fontStyle==="italic"||b.fontStyle==="oblique")&&(_+="italic"),_}function h(b,_){var S=w(b,_);if(!S)return null;var A=S.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!A||!Array.isArray(A))return null;var k=[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])],M=parseInt(A[4]);return M===0||isNaN(k[0])||isNaN(k[1])||isNaN(k[2])?null:k}function w(b,_){var S=_(b);return S==="rgba(0, 0, 0, 0)"||S==="transparent"||S==="initial"||S==="inherit"?b.parentElement==null?null:w(b.parentElement,_):S}function v(b,_){var S=[b.paddingTop,b.paddingRight,b.paddingBottom,b.paddingLeft],A=96/(72/_),k=(parseInt(b.lineHeight)-parseInt(b.fontSize))/_/2,M=S.map(function(F){return parseInt(F||"0")/A}),K=(0,u.parseSpacing)(M,0);return k>K.top&&(K.top=k),k>K.bottom&&(K.bottom=k),K}}),744:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0}),f.DocHandler=void 0;var c={},u=(function(){function p(g){this.jsPDFDocument=g,this.userStyles={textColor:g.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:g.internal.getFontSize(),fontStyle:g.internal.getFont().fontStyle,font:g.internal.getFont().fontName,lineWidth:g.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:g.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return p.setDefaults=function(g,h){h===void 0&&(h=null),h?h.__autoTableDocumentDefaults=g:c=g},p.unifyColor=function(g){return Array.isArray(g)?g:typeof g=="number"?[g,g,g]:typeof g=="string"?[g]:null},p.prototype.applyStyles=function(g,h){var w,v,b;h===void 0&&(h=!1),g.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(g.fontStyle);var _=this.jsPDFDocument.internal.getFont(),S=_.fontStyle,A=_.fontName;if(g.font&&(A=g.font),g.fontStyle){S=g.fontStyle;var k=this.getFontList()[A];k&&k.indexOf(S)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(k[0]),S=k[0])}if(this.jsPDFDocument.setFont(A,S),g.fontSize&&this.jsPDFDocument.setFontSize(g.fontSize),!h){var M=p.unifyColor(g.fillColor);M&&(w=this.jsPDFDocument).setFillColor.apply(w,M),M=p.unifyColor(g.textColor),M&&(v=this.jsPDFDocument).setTextColor.apply(v,M),M=p.unifyColor(g.lineColor),M&&(b=this.jsPDFDocument).setDrawColor.apply(b,M),typeof g.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(g.lineWidth)}},p.prototype.splitTextToSize=function(g,h,w){return this.jsPDFDocument.splitTextToSize(g,h,w)},p.prototype.rect=function(g,h,w,v,b){return this.jsPDFDocument.rect(g,h,w,v,b)},p.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},p.prototype.getTextWidth=function(g){return this.jsPDFDocument.getTextWidth(g)},p.prototype.getDocument=function(){return this.jsPDFDocument},p.prototype.setPage=function(g){this.jsPDFDocument.setPage(g)},p.prototype.addPage=function(){return this.jsPDFDocument.addPage()},p.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},p.prototype.getGlobalOptions=function(){return c||{}},p.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},p.prototype.pageSize=function(){var g=this.jsPDFDocument.internal.pageSize;return g.width==null&&(g={width:g.getWidth(),height:g.getHeight()}),g},p.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},p.prototype.getLineHeightFactor=function(){var g=this.jsPDFDocument;return g.getLineHeightFactor?g.getLineHeightFactor():1.15},p.prototype.getLineHeight=function(g){return g/this.scaleFactor()*this.getLineHeightFactor()},p.prototype.pageNumber=function(){var g=this.jsPDFDocument.internal.getCurrentPageInfo();return g?g.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},p})();f.DocHandler=u}),4:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.parseHtml=void 0;var u=c(903),p=c(796);function g(v,b,_,S,A){var k,M;S===void 0&&(S=!1),A===void 0&&(A=!1);var K;typeof b=="string"?K=_.document.querySelector(b):K=b;var F=Object.keys(v.getFontList()),P=v.scaleFactor(),D=[],V=[],E=[];if(!K)return console.error("Html table could not be found with input: ",b),{head:D,body:V,foot:E};for(var T=0;T<K.rows.length;T++){var z=K.rows[T],Y=(M=(k=z==null?void 0:z.parentElement)===null||k===void 0?void 0:k.tagName)===null||M===void 0?void 0:M.toLowerCase(),ue=h(F,P,_,z,S,A);ue&&(Y==="thead"?D.push(ue):Y==="tfoot"?E.push(ue):V.push(ue))}return{head:D,body:V,foot:E}}f.parseHtml=g;function h(v,b,_,S,A,k){for(var M=new p.HtmlRowInput(S),K=0;K<S.cells.length;K++){var F=S.cells[K],P=_.getComputedStyle(F);if(A||P.display!=="none"){var D=void 0;k&&(D=(0,u.parseCss)(v,F,b,P,_)),M.push({rowSpan:F.rowSpan,colSpan:F.colSpan,styles:D,_element:F,content:w(F)})}}var V=_.getComputedStyle(S);if(M.length>0&&(A||V.display!=="none"))return M}function w(v){var b=v.cloneNode(!0);return b.innerHTML=b.innerHTML.replace(/\n/g,"").replace(/ +/g," "),b.innerHTML=b.innerHTML.split(/<br.*?>/).map(function(_){return _.trim()}).join(`
253
+ `),b.innerText||b.textContent||""}}),776:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.parseInput=void 0;var u=c(4),p=c(356),g=c(420),h=c(744),w=c(792);function v(K,F){var P=new h.DocHandler(K),D=P.getDocumentOptions(),V=P.getGlobalOptions();(0,w.default)(P,V,D,F);var E=(0,p.assign)({},V,D,F),T;typeof window<"u"&&(T=window);var z=b(V,D,F),Y=_(V,D,F),ue=S(P,E),Q=k(P,E,T);return{id:F.tableId,content:Q,hooks:Y,styles:z,settings:ue}}f.parseInput=v;function b(K,F,P){for(var D={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},V=function(Y){if(Y==="columnStyles"){var ue=K[Y],Q=F[Y],J=P[Y];D.columnStyles=(0,p.assign)({},ue,Q,J)}else{var oe=[K,F,P],te=oe.map(function(pe){return pe[Y]||{}});D[Y]=(0,p.assign)({},te[0],te[1],te[2])}},E=0,T=Object.keys(D);E<T.length;E++){var z=T[E];V(z)}return D}function _(K,F,P){for(var D=[K,F,P],V={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},E=0,T=D;E<T.length;E++){var z=T[E];z.didParseCell&&V.didParseCell.push(z.didParseCell),z.willDrawCell&&V.willDrawCell.push(z.willDrawCell),z.didDrawCell&&V.didDrawCell.push(z.didDrawCell),z.willDrawPage&&V.willDrawPage.push(z.willDrawPage),z.didDrawPage&&V.didDrawPage.push(z.didDrawPage)}return V}function S(K,F){var P,D,V,E,T,z,Y,ue,Q,J,oe,te,pe=(0,g.parseSpacing)(F.margin,40/K.scaleFactor()),ie=(P=A(K,F.startY))!==null&&P!==void 0?P:pe.top,y;F.showFoot===!0?y="everyPage":F.showFoot===!1?y="never":y=(D=F.showFoot)!==null&&D!==void 0?D:"everyPage";var L;F.showHead===!0?L="everyPage":F.showHead===!1?L="never":L=(V=F.showHead)!==null&&V!==void 0?V:"everyPage";var C=(E=F.useCss)!==null&&E!==void 0?E:!1,O=F.theme||(C?"plain":"striped"),H=!!F.horizontalPageBreak,fe=(T=F.horizontalPageBreakRepeat)!==null&&T!==void 0?T:null;return{includeHiddenHtml:(z=F.includeHiddenHtml)!==null&&z!==void 0?z:!1,useCss:C,theme:O,startY:ie,margin:pe,pageBreak:(Y=F.pageBreak)!==null&&Y!==void 0?Y:"auto",rowPageBreak:(ue=F.rowPageBreak)!==null&&ue!==void 0?ue:"auto",tableWidth:(Q=F.tableWidth)!==null&&Q!==void 0?Q:"auto",showHead:L,showFoot:y,tableLineWidth:(J=F.tableLineWidth)!==null&&J!==void 0?J:0,tableLineColor:(oe=F.tableLineColor)!==null&&oe!==void 0?oe:200,horizontalPageBreak:H,horizontalPageBreakRepeat:fe,horizontalPageBreakBehaviour:(te=F.horizontalPageBreakBehaviour)!==null&&te!==void 0?te:"afterAllRows"}}function A(K,F){var P=K.getLastAutoTable(),D=K.scaleFactor(),V=K.pageNumber(),E=!1;if(P&&P.startPageNumber){var T=P.startPageNumber+P.pageNumber-1;E=T===V}return typeof F=="number"?F:(F==null||F===!1)&&E&&(P==null?void 0:P.finalY)!=null?P.finalY+20/D:null}function k(K,F,P){var D=F.head||[],V=F.body||[],E=F.foot||[];if(F.html){var T=F.includeHiddenHtml;if(P){var z=(0,u.parseHtml)(K,F.html,P,T,F.useCss)||{};D=z.head||D,V=z.body||D,E=z.foot||D}else console.error("Cannot parse html in non browser environment")}var Y=F.columns||M(D,V,E);return{columns:Y,head:D,body:V,foot:E}}function M(K,F,P){var D=K[0]||F[0]||P[0]||[],V=[];return Object.keys(D).filter(function(E){return E!=="_element"}).forEach(function(E){var T=1,z;Array.isArray(D)?z=D[parseInt(E)]:z=D[E],typeof z=="object"&&!Array.isArray(z)&&(T=(z==null?void 0:z.colSpan)||1);for(var Y=0;Y<T;Y++){var ue=void 0;Array.isArray(D)?ue=V.length:ue=E+(Y>0?"_".concat(Y):"");var Q={dataKey:ue};V.push(Q)}}),V}}),792:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0});function c(p,g,h,w){for(var v=function(A){A&&typeof A!="object"&&console.error("The options parameter should be of type object, is: "+typeof A),typeof A.extendWidth<"u"&&(A.tableWidth=A.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof A.margins<"u"&&(typeof A.margin>"u"&&(A.margin=A.margins),console.error("Use of deprecated option: margins, use margin instead.")),A.startY&&typeof A.startY!="number"&&(console.error("Invalid value for startY option",A.startY),delete A.startY),!A.didDrawPage&&(A.afterPageContent||A.beforePageContent||A.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),A.didDrawPage=function(E){p.applyStyles(p.userStyles),A.beforePageContent&&A.beforePageContent(E),p.applyStyles(p.userStyles),A.afterPageContent&&A.afterPageContent(E),p.applyStyles(p.userStyles),A.afterPageAdd&&E.pageNumber>1&&E.afterPageAdd(E),p.applyStyles(p.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(E){A[E]&&console.error('The "'.concat(E,'" 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(E){var T=E[0],z=E[1];A[z]&&(console.error("Use of deprecated option ".concat(z,". Use ").concat(T," instead")),A[T]=A[z])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(E){var T=typeof E=="string"?E:E[0],z=typeof E=="string"?E:E[1];typeof A[T]<"u"&&(typeof A.styles[z]>"u"&&(A.styles[z]=A[T]),console.error("Use of deprecated option: "+T+", use the style "+z+" instead."))});for(var k=0,M=["styles","bodyStyles","headStyles","footStyles"];k<M.length;k++){var K=M[k];u(A[K]||{})}for(var F=A.columnStyles||{},P=0,D=Object.keys(F);P<D.length;P++){var V=D[P];u(F[V]||{})}},b=0,_=[g,h,w];b<_.length;b++){var S=_[b];v(S)}}f.default=c;function u(p){p.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),p.minCellHeight||(p.minCellHeight=p.rowHeight)):p.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),p.cellWidth||(p.cellWidth=p.columnWidth))}}),260:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.Column=f.Cell=f.Row=f.Table=void 0;var u=c(796),p=c(172),g=c(420),h=(function(){function _(S,A){this.pageNumber=1,this.pageCount=1,this.id=S.id,this.settings=S.settings,this.styles=S.styles,this.hooks=S.hooks,this.columns=A.columns,this.head=A.head,this.body=A.body,this.foot=A.foot}return _.prototype.getHeadHeight=function(S){return this.head.reduce(function(A,k){return A+k.getMaxCellHeight(S)},0)},_.prototype.getFootHeight=function(S){return this.foot.reduce(function(A,k){return A+k.getMaxCellHeight(S)},0)},_.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},_.prototype.callCellHooks=function(S,A,k,M,K,F){for(var P=0,D=A;P<D.length;P++){var V=D[P],E=new p.CellHookData(S,this,k,M,K,F),T=V(E)===!1;if(k.text=Array.isArray(k.text)?k.text:[k.text],T)return!1}return!0},_.prototype.callEndPageHooks=function(S,A){S.applyStyles(S.userStyles);for(var k=0,M=this.hooks.didDrawPage;k<M.length;k++){var K=M[k];K(new p.HookData(S,this,A))}},_.prototype.callWillDrawPageHooks=function(S,A){for(var k=0,M=this.hooks.willDrawPage;k<M.length;k++){var K=M[k];K(new p.HookData(S,this,A))}},_.prototype.getWidth=function(S){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var A=this.columns.reduce(function(M,K){return M+K.wrappedWidth},0);return A}else{var k=this.settings.margin;return S-k.left-k.right}},_})();f.Table=h;var w=(function(){function _(S,A,k,M,K){K===void 0&&(K=!1),this.height=0,this.raw=S,S instanceof u.HtmlRowInput&&(this.raw=S._element,this.element=S._element),this.index=A,this.section=k,this.cells=M,this.spansMultiplePages=K}return _.prototype.getMaxCellHeight=function(S){var A=this;return S.reduce(function(k,M){var K;return Math.max(k,((K=A.cells[M.index])===null||K===void 0?void 0:K.height)||0)},0)},_.prototype.hasRowSpan=function(S){var A=this;return S.filter(function(k){var M=A.cells[k.index];return M?M.rowSpan>1:!1}).length>0},_.prototype.canEntireRowFit=function(S,A){return this.getMaxCellHeight(A)<=S},_.prototype.getMinimumRowHeight=function(S,A){var k=this;return S.reduce(function(M,K){var F=k.cells[K.index];if(!F)return 0;var P=A.getLineHeight(F.styles.fontSize),D=F.padding("vertical"),V=D+P;return V>M?V:M},0)},_})();f.Row=w;var v=(function(){function _(S,A,k){var M,K;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=A,this.section=k,this.raw=S;var F=S;S!=null&&typeof S=="object"&&!Array.isArray(S)?(this.rowSpan=S.rowSpan||1,this.colSpan=S.colSpan||1,F=(K=(M=S.content)!==null&&M!==void 0?M:S.title)!==null&&K!==void 0?K:S,S._element&&(this.raw=S._element)):(this.rowSpan=1,this.colSpan=1);var P=F!=null?""+F:"",D=/\r\n|\r|\n/g;this.text=P.split(D)}return _.prototype.getTextPos=function(){var S;if(this.styles.valign==="top")S=this.y+this.padding("top");else if(this.styles.valign==="bottom")S=this.y+this.height-this.padding("bottom");else{var A=this.height-this.padding("vertical");S=this.y+A/2+this.padding("top")}var k;if(this.styles.halign==="right")k=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var M=this.width-this.padding("horizontal");k=this.x+M/2+this.padding("left")}else k=this.x+this.padding("left");return{x:k,y:S}},_.prototype.getContentHeight=function(S,A){A===void 0&&(A=1.15);var k=Array.isArray(this.text)?this.text.length:1,M=this.styles.fontSize/S*A,K=k*M+this.padding("vertical");return Math.max(K,this.styles.minCellHeight)},_.prototype.padding=function(S){var A=(0,g.parseSpacing)(this.styles.cellPadding,0);return S==="vertical"?A.top+A.bottom:S==="horizontal"?A.left+A.right:A[S]},_})();f.Cell=v;var b=(function(){function _(S,A,k){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=S,this.raw=A,this.index=k}return _.prototype.getMaxCustomCellWidth=function(S){for(var A=0,k=0,M=S.allRows();k<M.length;k++){var K=M[k],F=K.cells[this.index];F&&typeof F.styles.cellWidth=="number"&&(A=Math.max(A,F.styles.cellWidth))}return A},_})();f.Column=b}),356:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0}),f.assign=void 0;function c(u,p,g,h,w){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(u),b=1;b<arguments.length;b++){var _=arguments[b];if(_!=null)for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&(v[S]=_[S])}return v}f.assign=c}),972:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.createTable=void 0;var u=c(744),p=c(260),g=c(324),h=c(796),w=c(356);function v(K,F){var P=new u.DocHandler(K),D=b(F,P.scaleFactor()),V=new p.Table(F,D);return(0,g.calculateWidths)(P,V),P.applyStyles(P.userStyles),V}f.createTable=v;function b(K,F){var P=K.content,D=k(P.columns);if(P.head.length===0){var V=S(D,"head");V&&P.head.push(V)}if(P.foot.length===0){var V=S(D,"foot");V&&P.foot.push(V)}var E=K.settings.theme,T=K.styles;return{columns:D,head:_("head",P.head,D,T,E,F),body:_("body",P.body,D,T,E,F),foot:_("foot",P.foot,D,T,E,F)}}function _(K,F,P,D,V,E){var T={},z=F.map(function(Y,ue){for(var Q=0,J={},oe=0,te=0,pe=0,ie=P;pe<ie.length;pe++){var y=ie[pe];if(T[y.index]==null||T[y.index].left===0)if(te===0){var L=void 0;Array.isArray(Y)?L=Y[y.index-oe-Q]:L=Y[y.dataKey];var C={};typeof L=="object"&&!Array.isArray(L)&&(C=(L==null?void 0:L.styles)||{});var O=M(K,y,ue,V,D,E,C),H=new p.Cell(L,O,K);J[y.dataKey]=H,J[y.index]=H,te=H.colSpan-1,T[y.index]={left:H.rowSpan-1,times:te}}else te--,oe++;else T[y.index].left--,te=T[y.index].times,Q++}return new p.Row(Y,ue,K,J)});return z}function S(K,F){var P={};return K.forEach(function(D){if(D.raw!=null){var V=A(F,D.raw);V!=null&&(P[D.dataKey]=V)}}),Object.keys(P).length>0?P:null}function A(K,F){if(K==="head"){if(typeof F=="object")return F.header||F.title||null;if(typeof F=="string"||typeof F=="number")return F}else if(K==="foot"&&typeof F=="object")return F.footer;return null}function k(K){return K.map(function(F,P){var D,V,E;return typeof F=="object"?E=(V=(D=F.dataKey)!==null&&D!==void 0?D:F.key)!==null&&V!==void 0?V:P:E=P,new p.Column(E,F,P)})}function M(K,F,P,D,V,E,T){var z=(0,h.getTheme)(D),Y;K==="head"?Y=V.headStyles:K==="body"?Y=V.bodyStyles:K==="foot"&&(Y=V.footStyles);var ue=(0,w.assign)({},z.table,z[K],V.styles,Y),Q=V.columnStyles[F.dataKey]||V.columnStyles[F.index]||{},J=K==="body"?Q:{},oe=K==="body"&&P%2===0?(0,w.assign)({},z.alternateRow,V.alternateRowStyles):{},te=(0,h.defaultStyles)(E),pe=(0,w.assign)({},te,ue,oe,J);return(0,w.assign)(pe,T)}}),664:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.addPage=f.drawTable=void 0;var u=c(420),p=c(260),g=c(744),h=c(356),w=c(136),v=c(224);function b(Q,J){var oe=J.settings,te=oe.startY,pe=oe.margin,ie={x:pe.left,y:te},y=J.getHeadHeight(J.columns)+J.getFootHeight(J.columns),L=te+pe.bottom+y;if(oe.pageBreak==="avoid"){var C=J.body,O=C.reduce(function(ce,he){return ce+he.height},0);L+=O}var H=new g.DocHandler(Q);(oe.pageBreak==="always"||oe.startY!=null&&L>H.pageSize().height)&&(ue(H),ie.y=pe.top),J.callWillDrawPageHooks(H,ie);var fe=(0,h.assign)({},ie);J.startPageNumber=H.pageNumber(),oe.horizontalPageBreak?_(H,J,fe,ie):(H.applyStyles(H.userStyles),(oe.showHead==="firstPage"||oe.showHead==="everyPage")&&J.head.forEach(function(ce){return V(H,J,ce,ie,J.columns)}),H.applyStyles(H.userStyles),J.body.forEach(function(ce,he){var we=he===J.body.length-1;D(H,J,ce,we,fe,ie,J.columns)}),H.applyStyles(H.userStyles),(oe.showFoot==="lastPage"||oe.showFoot==="everyPage")&&J.foot.forEach(function(ce){return V(H,J,ce,ie,J.columns)})),(0,u.addTableBorder)(H,J,fe,ie),J.callEndPageHooks(H,ie),J.finalY=ie.y,Q.lastAutoTable=J,Q.previousAutoTable=J,Q.autoTable&&(Q.autoTable.previous=J),H.applyStyles(H.userStyles)}f.drawTable=b;function _(Q,J,oe,te){var pe=(0,v.calculateAllColumnsCanFitInPage)(Q,J),ie=J.settings;if(ie.horizontalPageBreakBehaviour==="afterAllRows")pe.forEach(function(O,H){Q.applyStyles(Q.userStyles),H>0?Y(Q,J,oe,te,O.columns,!0):S(Q,J,te,O.columns),A(Q,J,oe,te,O.columns),M(Q,J,te,O.columns)});else for(var y=-1,L=pe[0],C=function(){var O=y;if(L){Q.applyStyles(Q.userStyles);var H=L.columns;y>=0?Y(Q,J,oe,te,H,!0):S(Q,J,te,H),O=k(Q,J,y+1,te,H),M(Q,J,te,H)}var fe=O-y;pe.slice(1).forEach(function(ce){Q.applyStyles(Q.userStyles),Y(Q,J,oe,te,ce.columns,!0),k(Q,J,y+1,te,ce.columns,fe),M(Q,J,te,ce.columns)}),y=O};y<J.body.length-1;)C()}function S(Q,J,oe,te){var pe=J.settings;Q.applyStyles(Q.userStyles),(pe.showHead==="firstPage"||pe.showHead==="everyPage")&&J.head.forEach(function(ie){return V(Q,J,ie,oe,te)})}function A(Q,J,oe,te,pe){Q.applyStyles(Q.userStyles),J.body.forEach(function(ie,y){var L=y===J.body.length-1;D(Q,J,ie,L,oe,te,pe)})}function k(Q,J,oe,te,pe,ie){Q.applyStyles(Q.userStyles),ie=ie??J.body.length;var y=Math.min(oe+ie,J.body.length),L=-1;return J.body.slice(oe,y).forEach(function(C,O){var H=oe+O===J.body.length-1,fe=z(Q,J,H,te);C.canEntireRowFit(fe,pe)&&(V(Q,J,C,te,pe),L=oe+O)}),L}function M(Q,J,oe,te){var pe=J.settings;Q.applyStyles(Q.userStyles),(pe.showFoot==="lastPage"||pe.showFoot==="everyPage")&&J.foot.forEach(function(ie){return V(Q,J,ie,oe,te)})}function K(Q,J,oe){var te=oe.getLineHeight(Q.styles.fontSize),pe=Q.padding("vertical"),ie=Math.floor((J-pe)/te);return Math.max(0,ie)}function F(Q,J,oe,te){var pe={};Q.spansMultiplePages=!0,Q.height=0;for(var ie=0,y=0,L=oe.columns;y<L.length;y++){var C=L[y],O=Q.cells[C.index];if(O){Array.isArray(O.text)||(O.text=[O.text]);var H=new p.Cell(O.raw,O.styles,O.section);H=(0,h.assign)(H,O),H.text=[];var fe=K(O,J,te);O.text.length>fe&&(H.text=O.text.splice(fe,O.text.length));var ce=te.scaleFactor(),he=te.getLineHeightFactor();O.contentHeight=O.getContentHeight(ce,he),O.contentHeight>=J&&(O.contentHeight=J,H.styles.minCellHeight-=J),O.contentHeight>Q.height&&(Q.height=O.contentHeight),H.contentHeight=H.getContentHeight(ce,he),H.contentHeight>ie&&(ie=H.contentHeight),pe[C.index]=H}}var we=new p.Row(Q.raw,-1,Q.section,pe,!0);we.height=ie;for(var Pe=0,De=oe.columns;Pe<De.length;Pe++){var C=De[Pe],H=we.cells[C.index];H&&(H.height=we.height);var O=Q.cells[C.index];O&&(O.height=Q.height)}return we}function P(Q,J,oe,te){var pe=Q.pageSize().height,ie=te.settings.margin,y=ie.top+ie.bottom,L=pe-y;J.section==="body"&&(L-=te.getHeadHeight(te.columns)+te.getFootHeight(te.columns));var C=J.getMinimumRowHeight(te.columns,Q),O=C<oe;if(C>L)return console.error("Will not be able to print row ".concat(J.index," correctly since it's minimum height is larger than page height")),!0;if(!O)return!1;var H=J.hasRowSpan(te.columns),fe=J.getMaxCellHeight(te.columns)>L;return fe?(H&&console.error("The content of row ".concat(J.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):!(H||te.settings.rowPageBreak==="avoid")}function D(Q,J,oe,te,pe,ie,y){var L=z(Q,J,te,ie);if(oe.canEntireRowFit(L,y))V(Q,J,oe,ie,y);else if(P(Q,oe,L,J)){var C=F(oe,L,J,Q);V(Q,J,oe,ie,y),Y(Q,J,pe,ie,y),D(Q,J,C,te,pe,ie,y)}else Y(Q,J,pe,ie,y),D(Q,J,oe,te,pe,ie,y)}function V(Q,J,oe,te,pe){te.x=J.settings.margin.left;for(var ie=0,y=pe;ie<y.length;ie++){var L=y[ie],C=oe.cells[L.index];if(!C){te.x+=L.width;continue}Q.applyStyles(C.styles),C.x=te.x,C.y=te.y;var O=J.callCellHooks(Q,J.hooks.willDrawCell,C,oe,L,te);if(O===!1){te.x+=L.width;continue}E(Q,C,te);var H=C.getTextPos();(0,w.default)(C.text,H.x,H.y,{halign:C.styles.halign,valign:C.styles.valign,maxWidth:Math.ceil(C.width-C.padding("left")-C.padding("right"))},Q.getDocument()),J.callCellHooks(Q,J.hooks.didDrawCell,C,oe,L,te),te.x+=L.width}te.y+=oe.height}function E(Q,J,oe){var te=J.styles;if(Q.getDocument().setFillColor(Q.getDocument().getFillColor()),typeof te.lineWidth=="number"){var pe=(0,u.getFillStyle)(te.lineWidth,te.fillColor);pe&&Q.rect(J.x,oe.y,J.width,J.height,pe)}else typeof te.lineWidth=="object"&&(te.fillColor&&Q.rect(J.x,oe.y,J.width,J.height,"F"),T(Q,J,oe,te.lineWidth))}function T(Q,J,oe,te){var pe,ie,y,L;te.top&&(pe=oe.x,ie=oe.y,y=oe.x+J.width,L=oe.y,te.right&&(y+=.5*te.right),te.left&&(pe-=.5*te.left),C(te.top,pe,ie,y,L)),te.bottom&&(pe=oe.x,ie=oe.y+J.height,y=oe.x+J.width,L=oe.y+J.height,te.right&&(y+=.5*te.right),te.left&&(pe-=.5*te.left),C(te.bottom,pe,ie,y,L)),te.left&&(pe=oe.x,ie=oe.y,y=oe.x,L=oe.y+J.height,te.top&&(ie-=.5*te.top),te.bottom&&(L+=.5*te.bottom),C(te.left,pe,ie,y,L)),te.right&&(pe=oe.x+J.width,ie=oe.y,y=oe.x+J.width,L=oe.y+J.height,te.top&&(ie-=.5*te.top),te.bottom&&(L+=.5*te.bottom),C(te.right,pe,ie,y,L));function C(O,H,fe,ce,he){Q.getDocument().setLineWidth(O),Q.getDocument().line(H,fe,ce,he,"S")}}function z(Q,J,oe,te){var pe=J.settings.margin.bottom,ie=J.settings.showFoot;return(ie==="everyPage"||ie==="lastPage"&&oe)&&(pe+=J.getFootHeight(J.columns)),Q.pageSize().height-te.y-pe}function Y(Q,J,oe,te,pe,ie){pe===void 0&&(pe=[]),ie===void 0&&(ie=!1),Q.applyStyles(Q.userStyles),J.settings.showFoot==="everyPage"&&!ie&&J.foot.forEach(function(L){return V(Q,J,L,te,pe)}),J.callEndPageHooks(Q,te);var y=J.settings.margin;(0,u.addTableBorder)(Q,J,oe,te),ue(Q),J.pageNumber++,J.pageCount++,te.x=y.left,te.y=y.top,oe.y=y.top,J.callWillDrawPageHooks(Q,te),J.settings.showHead==="everyPage"&&(J.head.forEach(function(L){return V(Q,J,L,te,pe)}),Q.applyStyles(Q.userStyles))}f.addPage=Y;function ue(Q){var J=Q.pageNumber();Q.setPage(J+1);var oe=Q.pageNumber();return oe===J?(Q.addPage(),!0):!1}}),224:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.calculateAllColumnsCanFitInPage=void 0;var u=c(420);function p(h,w,v){var b;v===void 0&&(v={});var _=(0,u.getPageAvailableWidth)(h,w),S=new Map,A=[],k=[],M=[];w.settings.horizontalPageBreakRepeat,Array.isArray(w.settings.horizontalPageBreakRepeat)?M=w.settings.horizontalPageBreakRepeat:(typeof w.settings.horizontalPageBreakRepeat=="string"||typeof w.settings.horizontalPageBreakRepeat=="number")&&(M=[w.settings.horizontalPageBreakRepeat]),M.forEach(function(D){var V=w.columns.find(function(E){return E.dataKey===D||E.index===D});V&&!S.has(V.index)&&(S.set(V.index,!0),A.push(V.index),k.push(w.columns[V.index]),_-=V.wrappedWidth)});for(var K=!0,F=(b=v==null?void 0:v.start)!==null&&b!==void 0?b:0;F<w.columns.length;){if(S.has(F)){F++;continue}var P=w.columns[F].wrappedWidth;if(K||_>=P)K=!1,A.push(F),k.push(w.columns[F]),_-=P;else break;F++}return{colIndexes:A,columns:k,lastIndex:F-1}}function g(h,w){for(var v=[],b=0;b<w.columns.length;b++){var _=p(h,w,{start:b});_.columns.length&&(v.push(_),b=_.lastIndex)}return v}f.calculateAllColumnsCanFitInPage=g}),324:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.ellipsize=f.resizeColumns=f.calculateWidths=void 0;var u=c(420);function p(A,k){g(A,k);var M=[],K=0;k.columns.forEach(function(P){var D=P.getMaxCustomCellWidth(k);D?P.width=D:(P.width=P.wrappedWidth,M.push(P)),K+=P.width});var F=k.getWidth(A.pageSize().width)-K;F&&(F=h(M,F,function(P){return Math.max(P.minReadableWidth,P.minWidth)})),F&&(F=h(M,F,function(P){return P.minWidth})),F=Math.abs(F),!k.settings.horizontalPageBreak&&F>.1/A.scaleFactor()&&(F=F<1?F:Math.round(F),console.warn("Of the table content, ".concat(F," units width could not fit page"))),v(k),b(k,A),w(k)}f.calculateWidths=p;function g(A,k){var M=A.scaleFactor(),K=k.settings.horizontalPageBreak,F=(0,u.getPageAvailableWidth)(A,k);k.allRows().forEach(function(P){for(var D=0,V=k.columns;D<V.length;D++){var E=V[D],T=P.cells[E.index];if(T){var z=k.hooks.didParseCell;k.callCellHooks(A,z,T,P,E,null);var Y=T.padding("horizontal");T.contentWidth=(0,u.getStringWidth)(T.text,T.styles,A)+Y;var ue=(0,u.getStringWidth)(T.text.join(" ").split(/[^\S\u00A0]+/),T.styles,A);if(T.minReadableWidth=ue+T.padding("horizontal"),typeof T.styles.cellWidth=="number")T.minWidth=T.styles.cellWidth,T.wrappedWidth=T.styles.cellWidth;else if(T.styles.cellWidth==="wrap"||K===!0)T.contentWidth>F?(T.minWidth=F,T.wrappedWidth=F):(T.minWidth=T.contentWidth,T.wrappedWidth=T.contentWidth);else{var Q=10/M;T.minWidth=T.styles.minCellWidth||Q,T.wrappedWidth=T.contentWidth,T.minWidth>T.wrappedWidth&&(T.wrappedWidth=T.minWidth)}}}}),k.allRows().forEach(function(P){for(var D=0,V=k.columns;D<V.length;D++){var E=V[D],T=P.cells[E.index];if(T&&T.colSpan===1)E.wrappedWidth=Math.max(E.wrappedWidth,T.wrappedWidth),E.minWidth=Math.max(E.minWidth,T.minWidth),E.minReadableWidth=Math.max(E.minReadableWidth,T.minReadableWidth);else{var z=k.styles.columnStyles[E.dataKey]||k.styles.columnStyles[E.index]||{},Y=z.cellWidth||z.minCellWidth;Y&&typeof Y=="number"&&(E.minWidth=Y,E.wrappedWidth=Y)}T&&(T.colSpan>1&&!E.minWidth&&(E.minWidth=T.minWidth),T.colSpan>1&&!E.wrappedWidth&&(E.wrappedWidth=T.minWidth))}})}function h(A,k,M){for(var K=k,F=A.reduce(function(Q,J){return Q+J.wrappedWidth},0),P=0;P<A.length;P++){var D=A[P],V=D.wrappedWidth/F,E=K*V,T=D.width+E,z=M(D),Y=T<z?z:T;k-=Y-D.width,D.width=Y}if(k=Math.round(k*1e10)/1e10,k){var ue=A.filter(function(Q){return k<0?Q.width>M(Q):!0});ue.length&&(k=h(ue,k,M))}return k}f.resizeColumns=h;function w(A){for(var k={},M=1,K=A.allRows(),F=0;F<K.length;F++)for(var P=K[F],D=0,V=A.columns;D<V.length;D++){var E=V[D],T=k[E.index];if(M>1)M--,delete P.cells[E.index];else if(T)T.cell.height+=P.height,M=T.cell.colSpan,delete P.cells[E.index],T.left--,T.left<=1&&delete k[E.index];else{var z=P.cells[E.index];if(!z)continue;if(z.height=P.height,z.rowSpan>1){var Y=K.length-F,ue=z.rowSpan>Y?Y:z.rowSpan;k[E.index]={cell:z,left:ue,row:P}}}}}function v(A){for(var k=A.allRows(),M=0;M<k.length;M++)for(var K=k[M],F=null,P=0,D=0,V=0;V<A.columns.length;V++){var E=A.columns[V];if(D-=1,D>1&&A.columns[V+1])P+=E.width,delete K.cells[E.index];else if(F){var T=F;delete K.cells[E.index],F=null,T.width=E.width+P}else{var T=K.cells[E.index];if(!T)continue;if(D=T.colSpan,P=0,T.colSpan>1){F=T,P+=E.width;continue}T.width=E.width+P}}}function b(A,k){for(var M={count:0,height:0},K=0,F=A.allRows();K<F.length;K++){for(var P=F[K],D=0,V=A.columns;D<V.length;D++){var E=V[D],T=P.cells[E.index];if(T){k.applyStyles(T.styles,!0);var z=T.width-T.padding("horizontal");if(T.styles.overflow==="linebreak")T.text=k.splitTextToSize(T.text,z+1/k.scaleFactor(),{fontSize:T.styles.fontSize});else if(T.styles.overflow==="ellipsize")T.text=_(T.text,z,T.styles,k,"...");else if(T.styles.overflow==="hidden")T.text=_(T.text,z,T.styles,k,"");else if(typeof T.styles.overflow=="function"){var Y=T.styles.overflow(T.text,z);typeof Y=="string"?T.text=[Y]:T.text=Y}T.contentHeight=T.getContentHeight(k.scaleFactor(),k.getLineHeightFactor());var ue=T.contentHeight/T.rowSpan;T.rowSpan>1&&M.count*M.height<ue*T.rowSpan?M={height:ue,count:T.rowSpan}:M&&M.count>0&&M.height>ue&&(ue=M.height),ue>P.height&&(P.height=ue)}}M.count--}}function _(A,k,M,K,F){return A.map(function(P){return S(P,k,M,K,F)})}f.ellipsize=_;function S(A,k,M,K,F){var P=1e4*K.scaleFactor();if(k=Math.ceil(k*P)/P,k>=(0,u.getStringWidth)(A,M,K))return A;for(;k<(0,u.getStringWidth)(A+F,M,K)&&!(A.length<=1);)A=A.substring(0,A.length-1);return A.trim()+F}}),964:(function(o){if(typeof t>"u"){var f=new Error("Cannot find module 'undefined'");throw f.code="MODULE_NOT_FOUND",f}o.exports=t})},i={};function a(o){var f=i[o];if(f!==void 0)return f.exports;var c=i[o]={exports:{}};return n[o].call(c.exports,c,c.exports,a),c.exports}var s={};return(function(){var o=s;Object.defineProperty(o,"__esModule",{value:!0}),o.Cell=o.Column=o.Row=o.Table=o.CellHookData=o.__drawTable=o.__createTable=o.applyPlugin=void 0;var f=a(340),c=a(776),u=a(664),p=a(972),g=a(260);Object.defineProperty(o,"Table",{enumerable:!0,get:function(){return g.Table}});var h=a(172);Object.defineProperty(o,"CellHookData",{enumerable:!0,get:function(){return h.CellHookData}});var w=a(260);Object.defineProperty(o,"Cell",{enumerable:!0,get:function(){return w.Cell}}),Object.defineProperty(o,"Column",{enumerable:!0,get:function(){return w.Column}}),Object.defineProperty(o,"Row",{enumerable:!0,get:function(){return w.Row}});function v(k){(0,f.default)(k)}o.applyPlugin=v;function b(k,M){var K=(0,c.parseInput)(k,M),F=(0,p.createTable)(k,K);(0,u.drawTable)(k,F)}function _(k,M){var K=(0,c.parseInput)(k,M);return(0,p.createTable)(k,K)}o.__createTable=_;function S(k,M){(0,u.drawTable)(k,M)}o.__drawTable=S;try{var A=a(964);A.jsPDF&&(A=A.jsPDF),v(A)}catch{}o.default=b})(),s})()})})(K0)),K0.exports}Wp();function Hp({title:e,subtitle:r,headers:t,rows:n,filename:i,orientation:a="portrait"}){const s=new ut(a);s.setFontSize(18),s.setTextColor(30,41,59),s.text(e,14,22),r&&(s.setFontSize(10),s.setTextColor(100,116,139),s.text(r,14,30)),s.autoTable({startY:r?36:30,head:[t],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 o=s.internal.getNumberOfPages();for(let f=1;f<=o;f++)s.setPage(f),s.setFontSize(8),s.setTextColor(148,163,184),s.text(`Generated on ${new Date().toLocaleDateString()} | Page ${f} of ${o}`,14,s.internal.pageSize.height-10);s.save(`${i}.pdf`)}function qp({student:e,exams:r,schoolName:t}){var a;const n=new ut;n.setFontSize(16),n.setTextColor(30,41,59),n.text(t||"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;(r||[]).forEach(s=>{n.setFontSize(11),n.setTextColor(30,41,59),n.text(s.name,14,i),i+=4,s.subjects&&s.subjects.length>0&&(n.autoTable({startY:i,head:[["Subject","Marks","Total","Grade"]],body:s.subjects.map(o=>[o.name,o.marks,o.total,o.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 Vp({student:e,payment:r,schoolName:t}){const n=new ut;n.setFontSize(16),n.text(t||"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",r.ref||r.reference||`RCP-${Date.now()}`],["Date",r.date||new Date().toLocaleDateString()],["Amount Paid",`Rs. ${(r.amount||0).toLocaleString()}`],["Payment Method",r.method||"Online"],["Status",r.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 Gp({className:e,date:r,records:t,summary:n}){const i=new ut;i.setFontSize(16),i.text("Attendance Report",14,20),i.setFontSize(10),i.setTextColor(71,85,105),i.text(`Class: ${e} | Date: ${r}`,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: ${(t==null?void 0:t.length)||0}`,14,34),i.autoTable({startY:42,head:[["Roll No","Student Name","Status"]],body:(t||[]).map(a=>[a.roll_number||"",a.full_name||"",a.status||""]),styles:{fontSize:9},headStyles:{fillColor:[14,165,233]}}),i.save(`attendance-${e}-${r}.pdf`)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Z0={};Z0.version="0.18.5";var Ih=1252,Yp=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Rh=function(e){Yp.indexOf(e)!=-1&&(Ih=e)};function Xp(){Rh(1252)}var Mo=function(e){Rh(e)};function $p(){Mo(1200),Xp()}var z0=function(r){return String.fromCharCode(r)},mu=function(r){return String.fromCharCode(r)},Q0,pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Bo(e){for(var r="",t=0,n=0,i=0,a=0,s=0,o=0,f=0,c=0;c<e.length;)t=e.charCodeAt(c++),a=t>>2,n=e.charCodeAt(c++),s=(t&3)<<4|n>>4,i=e.charCodeAt(c++),o=(n&15)<<2|i>>6,f=i&63,isNaN(n)?o=f=64:isNaN(i)&&(f=64),r+=pa.charAt(a)+pa.charAt(s)+pa.charAt(o)+pa.charAt(f);return r}function qi(e){var r="",t=0,n=0,i=0,a=0,s=0,o=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)a=pa.indexOf(e.charAt(c++)),s=pa.indexOf(e.charAt(c++)),t=a<<2|s>>4,r+=String.fromCharCode(t),o=pa.indexOf(e.charAt(c++)),n=(s&15)<<4|o>>2,o!==64&&(r+=String.fromCharCode(n)),f=pa.indexOf(e.charAt(c++)),i=(o&3)<<6|f,f!==64&&(r+=String.fromCharCode(i));return r}var jt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Gi=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}})();function Wa(e){return jt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function vu(e){return jt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var fi=function(r){return jt?Gi(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function ml(e){if(typeof ArrayBuffer>"u")return fi(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function qo(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function Kp(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Vr=jt?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:Gi(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var n=new Uint8Array(t),i=0;for(r=0,t=0;r<e.length;t+=i,++r)if(i=e[r].length,e[r]instanceof Uint8Array)n.set(e[r],t);else{if(typeof e[r]=="string")throw"wtf";n.set(new Uint8Array(e[r]),t)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function Jp(e){for(var r=[],t=0,n=e.length+250,i=Wa(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[t++]=s;else if(s<2048)i[t++]=192|s>>6&31,i[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++a)&1023;i[t++]=240|s>>8&7,i[t++]=128|s>>2&63,i[t++]=128|o>>6&15|(s&3)<<4,i[t++]=128|o&63}else i[t++]=224|s>>12&15,i[t++]=128|s>>6&63,i[t++]=128|s&63;t>n&&(r.push(i.slice(0,t)),t=0,i=Wa(65535),n=65530)}return r.push(i.slice(0,t)),Vr(r)}var Fo=/\u0000/g,W0=/[\u0001-\u0006]/g;function Fs(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function ci(e,r){var t=""+e;return t.length>=r?t:pr("0",r-t.length)+t}function $f(e,r){var t=""+e;return t.length>=r?t:pr(" ",r-t.length)+t}function el(e,r){var t=""+e;return t.length>=r?t:t+pr(" ",r-t.length)}function Zp(e,r){var t=""+Math.round(e);return t.length>=r?t:pr("0",r-t.length)+t}function Qp(e,r){var t=""+e;return t.length>=r?t:pr("0",r-t.length)+t}var xu=Math.pow(2,32);function bs(e,r){if(e>xu||e<-xu)return Zp(e,r);var t=Math.round(e);return Qp(t,r)}function tl(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var wu=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],wf=[["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 e5(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 gr={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"秒 "'},yu={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},t5={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 rl(e,r,t){for(var n=e<0?-1:1,i=e*n,a=0,s=1,o=0,f=1,c=0,u=0,p=Math.floor(i);c<r&&(p=Math.floor(i),o=p*s+a,u=p*c+f,!(i-p<5e-8));)i=1/(i-p),a=s,s=o,f=c,c=u;if(u>r&&(c>r?(u=f,o=a):(u=c,o=s)),!t)return[0,n*o,u];var g=Math.floor(n*o/u);return[g,n*o-g*u,u]}function H0(e,r,t){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],o={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(o.u)<1e-6&&(o.u=0),r&&r.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++n,++o.D)),n===60)s=t?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var f=new Date(1900,0,1);f.setDate(f.getDate()+n-1),s=[f.getFullYear(),f.getMonth()+1,f.getDate()],a=f.getDay(),n<60&&(a=(a+6)%7),t&&(a=l5(f,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var Dh=new Date(1899,11,31,0,0,0),r5=Dh.getTime(),n5=new Date(1900,2,1,0,0,0);function Mh(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=n5&&(t+=1440*60*1e3),(t-(r5+(e.getTimezoneOffset()-Dh.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Kf(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function i5(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function a5(e){var r=e<0?12:11,t=Kf(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function s5(e){var r=Kf(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function o5(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=a5(e):r===10?t=e.toFixed(10).substr(0,12):t=s5(e),Kf(i5(t.toUpperCase()))}function Uf(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):o5(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return wa(14,Mh(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function l5(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function f5(e,r,t,n){var i="",a=0,s=0,o=t.y,f,c=0;switch(e){case 98:o=t.y+543;case 121:switch(r.length){case 1:case 2:f=o%100,c=2;break;default:f=o%1e4,c=4;break}break;case 109:switch(r.length){case 1:case 2:f=t.m,c=r.length;break;case 3:return wf[t.m-1][1];case 5:return wf[t.m-1][0];default:return wf[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:f=t.d,c=r.length;break;case 3:return wu[t.q][0];default:return wu[t.q][1]}break;case 104:switch(r.length){case 1:case 2:f=1+(t.H+11)%12,c=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:f=t.H,c=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:f=t.M,c=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?ci(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(t.S+t.u)),a>=60*s&&(a=0),r==="s"?a===0?"0":""+a/s:(i=ci(a,2+n),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":f=t.D*24+t.H;break;case"[m]":case"[mm]":f=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":f=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}c=r.length===3?1:2;break;case 101:f=o,c=1;break}var u=c>0?ci(f,c):"";return u}function ga(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var Bh=/%/g;function c5(e,r,t){var n=r.replace(Bh,""),i=r.length-n.length;return zi(e,n,t*Math.pow(10,2*i))+pr("%",i)}function u5(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return zi(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function jh(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+jh(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,f,c,u){return f+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var Uh=/# (\?+)( ?)\/( ?)(\d+)/;function h5(e,r,t){var n=parseInt(e[4],10),i=Math.round(r*n),a=Math.floor(i/n),s=i-a*n,o=n;return t+(a===0?"":""+a)+" "+(s===0?pr(" ",e[1].length+1+e[4].length):$f(s,e[1].length)+e[2]+"/"+e[3]+ci(o,e[4].length))}function d5(e,r,t){return t+(r===0?"":""+r)+pr(" ",e[1].length+2+e[4].length)}var zh=/^#*0*\.([0#]+)/,Wh=/\).*[0#]/,Hh=/\(###\) ###\\?-####/;function cn(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function bu(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function _u(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function p5(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function g5(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Yn(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Wh)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Yn("n",n,t):"("+Yn("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return u5(e,r,t);if(r.indexOf("%")!==-1)return c5(e,r,t);if(r.indexOf("E")!==-1)return jh(r,t);if(r.charCodeAt(0)===36)return"$"+Yn(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,o,f=Math.abs(t),c=t<0?"-":"";if(r.match(/^00+$/))return c+bs(f,r.length);if(r.match(/^[#?]+$/))return i=bs(t,0),i==="0"&&(i=""),i.length>r.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(Uh))return h5(a,f,c);if(r.match(/^#+0+$/))return c+bs(f,r.length-r.indexOf("0"));if(a=r.match(zh))return i=bu(t,a[1].length).replace(/^([^\.]+)$/,"$1."+cn(a[1])).replace(/\.$/,"."+cn(a[1])).replace(/\.(\d*)$/,function(w,v){return"."+v+pr("0",cn(a[1]).length-v.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return c+bu(f,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return c+ga(bs(f,0));if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Yn(e,r,-t):ga(""+(Math.floor(t)+p5(t,a[1].length)))+"."+ci(_u(t,a[1].length),a[1].length);if(a=r.match(/^#,#*,#0/))return Yn(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Fs(Yn(e,r.replace(/[\\-]/g,""),t)),s=0,Fs(Fs(r.replace(/\\/g,"")).replace(/[0#]/g,function(w){return s<i.length?i.charAt(s++):w==="0"?"0":""}));if(r.match(Hh))return i=Yn(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=rl(f,Math.pow(10,s)-1,!1),i=""+c,u=zi("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=el(o[2],s),u.length<a[4].length&&(u=cn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=rl(f,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?$f(o[1],s)+a[2]+"/"+a[3]+el(o[2],s):pr(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=bs(t,0),r.length<=i.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=r.indexOf(".")-s,g=r.length-i.length-p;return cn(r.substr(0,p)+i+r.substr(r.length-g))}if(a=r.match(/^00,000\.([#0]*0)$/))return s=_u(t,a[1].length),t<0?"-"+Yn(e,r,-t):ga(g5(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(w){return"00,"+(w.length<3?ci(0,3-w.length):"")+w})+"."+ci(s,a[1].length);switch(r){case"###,##0.00":return Yn(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var h=ga(bs(f,0));return h!=="0"?c+h:"";case"###,###.00":return Yn(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return Yn(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function m5(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return zi(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function v5(e,r,t){var n=r.replace(Bh,""),i=r.length-n.length;return zi(e,n,t*Math.pow(10,2*i))+pr("%",i)}function qh(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+qh(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!t.match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,f,c,u){return f+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function _i(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Wh)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?_i("n",n,t):"("+_i("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return m5(e,r,t);if(r.indexOf("%")!==-1)return v5(e,r,t);if(r.indexOf("E")!==-1)return qh(r,t);if(r.charCodeAt(0)===36)return"$"+_i(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,o,f=Math.abs(t),c=t<0?"-":"";if(r.match(/^00+$/))return c+ci(f,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(Uh))return d5(a,f,c);if(r.match(/^#+0+$/))return c+ci(f,r.length-r.indexOf("0"));if(a=r.match(zh))return i=(""+t).replace(/^([^\.]+)$/,"$1."+cn(a[1])).replace(/\.$/,"."+cn(a[1])),i=i.replace(/\.(\d*)$/,function(w,v){return"."+v+pr("0",cn(a[1]).length-v.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return c+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return c+ga(""+f);if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+_i(e,r,-t):ga(""+t)+"."+pr("0",a[1].length);if(a=r.match(/^#,#*,#0/))return _i(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Fs(_i(e,r.replace(/[\\-]/g,""),t)),s=0,Fs(Fs(r.replace(/\\/g,"")).replace(/[0#]/g,function(w){return s<i.length?i.charAt(s++):w==="0"?"0":""}));if(r.match(Hh))return i=_i(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=rl(f,Math.pow(10,s)-1,!1),i=""+c,u=zi("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=el(o[2],s),u.length<a[4].length&&(u=cn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=rl(f,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?$f(o[1],s)+a[2]+"/"+a[3]+el(o[2],s):pr(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=r.indexOf(".")-s,g=r.length-i.length-p;return cn(r.substr(0,p)+i+r.substr(r.length-g))}if(a=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+_i(e,r,-t):ga(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(w){return"00,"+(w.length<3?ci(0,3-w.length):"")+w})+"."+ci(0,a[1].length);switch(r){case"###,###":case"##,###":case"#,###":var h=ga(""+f);return h!=="0"?c+h:"";default:if(r.match(/\.[0#?]*$/))return _i(e,r.slice(0,r.lastIndexOf(".")),t)+cn(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function zi(e,r,t){return(t|0)===t?_i(e,r,t):Yn(e,r,t)}function x5(e){for(var r=[],t=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:t=!t;break;case 95:case 42:case 92:++n;break;case 59:r[r.length]=e.substr(i,n-i),i=n+1}if(r[r.length]=e.substr(i),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var Vh=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Gh(e){for(var r=0,t="",n="";r<e.length;)switch(t=e.charAt(r)){case"G":tl(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+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(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=t;e.charAt(r++)!=="]"&&r<e.length;)n+=e.charAt(r);if(n.match(Vh))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function w5(e,r,t,n){for(var i=[],a="",s=0,o="",f="t",c,u,p,g="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!tl(e,s))throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(p=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(p);i[i.length]={t:"t",v:a},++s;break;case"\\":var h=e.charAt(++s),w=h==="("||h===")"?h:"t";i[i.length]={t:w,v:h},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:r},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(c==null&&(c=H0(r,t,e.charAt(s+1)==="2"),c==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},f=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||c==null&&(c=H0(r,t),c==null))return"";for(a=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&f.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=g),i[i.length]={t:o,v:a},f=o;break;case"A":case"a":case"上":var v={t:o,v:o};if(c==null&&(c=H0(r,t)),e.substr(s,3).toUpperCase()==="A/P"?(c!=null&&(v.v=c.H>=12?"P":"A"),v.t="T",g="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(v.v=c.H>=12?"PM":"AM"),v.t="T",s+=5,g="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(c!=null&&(v.v=c.H>=12?"下午":"上午"),v.t="T",s+=5,g="h"):(v.t="t",++s),c==null&&v.t==="T")return"";i[i.length]=v,f=o;break;case"[":for(a=o;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(Vh)){if(c==null&&(c=H0(r,t),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},f=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",Gh(e)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=null){for(a=o;++s<e.length&&(o=e.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;e.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},f=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"t",v:o},++s;break}var b=0,_=0,S;for(s=i.length-1,f="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=g,f="h",b<1&&(b=1);break;case"s":(S=i[s].v.match(/\.0+$/))&&(_=Math.max(_,S[0].length-1)),b<3&&(b=3);case"d":case"y":case"M":case"e":f=i[s].t;break;case"m":f==="s"&&(i[s].t="M",b<2&&(b=2));break;case"X":break;case"Z":b<1&&i[s].v.match(/[Hh]/)&&(b=1),b<2&&i[s].v.match(/[Mm]/)&&(b=2),b<3&&i[s].v.match(/[Ss]/)&&(b=3)}switch(b){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 A="",k;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=f5(i[s].t.charCodeAt(0),i[s].v,c,_),i[s].t="t";break;case"n":case"?":for(k=s+1;i[k]!=null&&((o=i[k].t)==="?"||o==="D"||(o===" "||o==="t")&&i[k+1]!=null&&(i[k+1].t==="?"||i[k+1].t==="t"&&i[k+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[k].v==="/"||i[k].v===" "&&i[k+1]!=null&&i[k+1].t=="?"));)i[s].v+=i[k].v,i[k]={v:"",t:";"},++k;A+=i[s].v,s=k-1;break;case"G":i[s].t="t",i[s].v=Uf(r,t);break}var M="",K,F;if(A.length>0){A.charCodeAt(0)==40?(K=r<0&&A.charCodeAt(0)===45?-r:r,F=zi("n",A,K)):(K=r<0&&n>1?-r:r,F=zi("n",A,K),K<0&&i[0]&&i[0].t=="t"&&(F=F.substr(1),i[0].v="-"+i[0].v)),k=F.length-1;var P=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){P=s;break}var D=i.length;if(P===i.length&&F.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(k>=i[s].v.length-1?(k-=i[s].v.length,i[s].v=F.substr(k+1,i[s].v.length)):k<0?i[s].v="":(i[s].v=F.substr(0,k+1),k=-1),i[s].t="t",D=s);k>=0&&D<i.length&&(i[D].v=F.substr(0,k+1)+i[D].v)}else if(P!==i.length&&F.indexOf("E")===-1){for(k=F.indexOf(".")-1,s=P;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(u=i[s].v.indexOf(".")>-1&&s===P?i[s].v.indexOf(".")-1:i[s].v.length-1,M=i[s].v.substr(u+1);u>=0;--u)k>=0&&(i[s].v.charAt(u)==="0"||i[s].v.charAt(u)==="#")&&(M=F.charAt(k--)+M);i[s].v=M,i[s].t="t",D=s}for(k>=0&&D<i.length&&(i[D].v=F.substr(0,k+1)+i[D].v),k=F.indexOf(".")+1,s=P;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==P)){for(u=i[s].v.indexOf(".")>-1&&s===P?i[s].v.indexOf(".")+1:0,M=i[s].v.substr(0,u);u<i[s].v.length;++u)k<F.length&&(M+=F.charAt(k++));i[s].v=M,i[s].t="t",D=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(K=n>1&&r<0&&s>0&&i[s-1].v==="-"?-r:r,i[s].v=zi(i[s].t,i[s].v,K),i[s].t="t");var V="";for(s=0;s!==i.length;++s)i[s]!=null&&(V+=i[s].v);return V}var Su=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Au(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function y5(e,r){var t=x5(e),n=t.length,i=t[n-1].indexOf("@");if(n<4&&i>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var a=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(Su),o=t[1].match(Su);return Au(r,s)?[n,t[0]]:Au(r,o)?[n,t[1]]:[n,t[s!=null&&o!=null?2:1]]}return[n,a]}function wa(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:gr)[e],n==null&&(n=t.table&&t.table[yu[e]]||gr[yu[e]]),n==null&&(n=t5[e]||"General");break}if(tl(n,0))return Uf(r,t);r instanceof Date&&(r=Mh(r,t.date1904));var i=y5(n,r);if(tl(i[1]))return Uf(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return w5(i[1],r,t,i[0])}function Yh(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(gr[t]==null){r<0&&(r=t);continue}if(gr[t]==e){r=t;break}}r<0&&(r=391)}return gr[r]=e,r}function vl(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Yh(e[r],r)}function xl(){gr=e5()}var Xh=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function b5(e){var r=typeof e=="number"?gr[e]:e;return r=r.replace(Xh,"(\\d+)"),new RegExp("^"+r+"$")}function _5(e,r,t){var n=-1,i=-1,a=-1,s=-1,o=-1,f=-1;(r.match(Xh)||[]).forEach(function(p,g){var h=parseInt(t[g+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=h;break;case"d":a=h;break;case"h":s=h;break;case"s":f=h;break;case"m":s>=0?o=h:i=h;break}}),f>=0&&o==-1&&i>=0&&(o=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"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return s==-1&&o==-1&&f==-1?c:n==-1&&i==-1&&a==-1?u:c+"T"+u}var S5=(function(){var e={};e.version="1.2.0";function r(){for(var F=0,P=new Array(256),D=0;D!=256;++D)F=D,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,P[D]=F;return typeof Int32Array<"u"?new Int32Array(P):P}var t=r();function n(F){var P=0,D=0,V=0,E=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(V=0;V!=256;++V)E[V]=F[V];for(V=0;V!=256;++V)for(D=F[V],P=256+V;P<4096;P+=256)D=E[P]=D>>>8^F[D&255];var T=[];for(V=1;V!=16;++V)T[V-1]=typeof Int32Array<"u"?E.subarray(V*256,V*256+256):E.slice(V*256,V*256+256);return T}var i=n(t),a=i[0],s=i[1],o=i[2],f=i[3],c=i[4],u=i[5],p=i[6],g=i[7],h=i[8],w=i[9],v=i[10],b=i[11],_=i[12],S=i[13],A=i[14];function k(F,P){for(var D=P^-1,V=0,E=F.length;V<E;)D=D>>>8^t[(D^F.charCodeAt(V++))&255];return~D}function M(F,P){for(var D=P^-1,V=F.length-15,E=0;E<V;)D=A[F[E++]^D&255]^S[F[E++]^D>>8&255]^_[F[E++]^D>>16&255]^b[F[E++]^D>>>24]^v[F[E++]]^w[F[E++]]^h[F[E++]]^g[F[E++]]^p[F[E++]]^u[F[E++]]^c[F[E++]]^f[F[E++]]^o[F[E++]]^s[F[E++]]^a[F[E++]]^t[F[E++]];for(V+=15;E<V;)D=D>>>8^t[(D^F[E++])&255];return~D}function K(F,P){for(var D=P^-1,V=0,E=F.length,T=0,z=0;V<E;)T=F.charCodeAt(V++),T<128?D=D>>>8^t[(D^T)&255]:T<2048?(D=D>>>8^t[(D^(192|T>>6&31))&255],D=D>>>8^t[(D^(128|T&63))&255]):T>=55296&&T<57344?(T=(T&1023)+64,z=F.charCodeAt(V++)&1023,D=D>>>8^t[(D^(240|T>>8&7))&255],D=D>>>8^t[(D^(128|T>>2&63))&255],D=D>>>8^t[(D^(128|z>>6&15|(T&3)<<4))&255],D=D>>>8^t[(D^(128|z&63))&255]):(D=D>>>8^t[(D^(224|T>>12&15))&255],D=D>>>8^t[(D^(128|T>>6&63))&255],D=D>>>8^t[(D^(128|T&63))&255]);return~D}return e.table=t,e.bstr=k,e.buf=M,e.str=K,e})(),Jt=(function(){var r={};r.version="1.2.1";function t(j,ne){for(var X=j.split("/"),Z=ne.split("/"),re=0,ae=0,_e=Math.min(X.length,Z.length);re<_e;++re){if(ae=X[re].length-Z[re].length)return ae;if(X[re]!=Z[re])return X[re]<Z[re]?-1:1}return X.length-Z.length}function n(j){if(j.charAt(j.length-1)=="/")return j.slice(0,-1).indexOf("/")===-1?j:n(j.slice(0,-1));var ne=j.lastIndexOf("/");return ne===-1?j:j.slice(0,ne+1)}function i(j){if(j.charAt(j.length-1)=="/")return i(j.slice(0,-1));var ne=j.lastIndexOf("/");return ne===-1?j:j.slice(ne+1)}function a(j,ne){typeof ne=="string"&&(ne=new Date(ne));var X=ne.getHours();X=X<<6|ne.getMinutes(),X=X<<5|ne.getSeconds()>>>1,j.write_shift(2,X);var Z=ne.getFullYear()-1980;Z=Z<<4|ne.getMonth()+1,Z=Z<<5|ne.getDate(),j.write_shift(2,Z)}function s(j){var ne=j.read_shift(2)&65535,X=j.read_shift(2)&65535,Z=new Date,re=X&31;X>>>=5;var ae=X&15;X>>>=4,Z.setMilliseconds(0),Z.setFullYear(X+1980),Z.setMonth(ae-1),Z.setDate(re);var _e=ne&31;ne>>>=5;var Le=ne&63;return ne>>>=6,Z.setHours(ne),Z.setMinutes(Le),Z.setSeconds(_e<<1),Z}function o(j){Pn(j,0);for(var ne={},X=0;j.l<=j.length-4;){var Z=j.read_shift(2),re=j.read_shift(2),ae=j.l+re,_e={};switch(Z){case 21589:X=j.read_shift(1),X&1&&(_e.mtime=j.read_shift(4)),re>5&&(X&2&&(_e.atime=j.read_shift(4)),X&4&&(_e.ctime=j.read_shift(4))),_e.mtime&&(_e.mt=new Date(_e.mtime*1e3));break}j.l=ae,ne[Z]=_e}return ne}var f;function c(){return f||(f={})}function u(j,ne){if(j[0]==80&&j[1]==75)return ar(j,ne);if((j[0]|32)==109&&(j[1]|32)==105)return jn(j,ne);if(j.length<512)throw new Error("CFB file size "+j.length+" < 512");var X=3,Z=512,re=0,ae=0,_e=0,Le=0,be=0,Te=[],Ne=j.slice(0,512);Pn(Ne,0);var We=p(Ne);switch(X=We[0],X){case 3:Z=512;break;case 4:Z=4096;break;case 0:if(We[1]==0)return ar(j,ne);default:throw new Error("Major Version: Expected 3 or 4 saw "+X)}Z!==512&&(Ne=j.slice(0,Z),Pn(Ne,28));var Ge=j.slice(0,Z);g(Ne,X);var rt=Ne.read_shift(4,"i");if(X===3&&rt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+rt);Ne.l+=4,_e=Ne.read_shift(4,"i"),Ne.l+=4,Ne.chk("00100000","Mini Stream Cutoff Size: "),Le=Ne.read_shift(4,"i"),re=Ne.read_shift(4,"i"),be=Ne.read_shift(4,"i"),ae=Ne.read_shift(4,"i");for(var qe=-1,tt=0;tt<109&&(qe=Ne.read_shift(4,"i"),!(qe<0));++tt)Te[tt]=qe;var mt=h(j,Z);b(be,ae,mt,Z,Te);var zt=S(mt,_e,Te,Z);zt[_e].name="!Directory",re>0&&Le!==z&&(zt[Le].name="!MiniFAT"),zt[Te[0]].name="!FAT",zt.fat_addrs=Te,zt.ssz=Z;var $t={},Sr=[],Jn=[],Fi=[];A(_e,zt,mt,Sr,re,$t,Jn,Le),w(Jn,Fi,Sr),Sr.shift();var gi={FileIndex:Jn,FullPaths:Fi};return ne&&ne.raw&&(gi.raw={header:Ge,sectors:mt}),gi}function p(j){if(j[j.l]==80&&j[j.l+1]==75)return[0,0];j.chk(Y,"Header Signature: "),j.l+=16;var ne=j.read_shift(2,"u");return[j.read_shift(2,"u"),ne]}function g(j,ne){var X=9;switch(j.l+=2,X=j.read_shift(2)){case 9:if(ne!=3)throw new Error("Sector Shift: Expected 9 saw "+X);break;case 12:if(ne!=4)throw new Error("Sector Shift: Expected 12 saw "+X);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+X)}j.chk("0600","Mini Sector Shift: "),j.chk("000000000000","Reserved: ")}function h(j,ne){for(var X=Math.ceil(j.length/ne)-1,Z=[],re=1;re<X;++re)Z[re-1]=j.slice(re*ne,(re+1)*ne);return Z[X-1]=j.slice(X*ne),Z}function w(j,ne,X){for(var Z=0,re=0,ae=0,_e=0,Le=0,be=X.length,Te=[],Ne=[];Z<be;++Z)Te[Z]=Ne[Z]=Z,ne[Z]=X[Z];for(;Le<Ne.length;++Le)Z=Ne[Le],re=j[Z].L,ae=j[Z].R,_e=j[Z].C,Te[Z]===Z&&(re!==-1&&Te[re]!==re&&(Te[Z]=Te[re]),ae!==-1&&Te[ae]!==ae&&(Te[Z]=Te[ae])),_e!==-1&&(Te[_e]=Z),re!==-1&&Z!=Te[Z]&&(Te[re]=Te[Z],Ne.lastIndexOf(re)<Le&&Ne.push(re)),ae!==-1&&Z!=Te[Z]&&(Te[ae]=Te[Z],Ne.lastIndexOf(ae)<Le&&Ne.push(ae));for(Z=1;Z<be;++Z)Te[Z]===Z&&(ae!==-1&&Te[ae]!==ae?Te[Z]=Te[ae]:re!==-1&&Te[re]!==re&&(Te[Z]=Te[re]));for(Z=1;Z<be;++Z)if(j[Z].type!==0){if(Le=Z,Le!=Te[Le])do Le=Te[Le],ne[Z]=ne[Le]+"/"+ne[Z];while(Le!==0&&Te[Le]!==-1&&Le!=Te[Le]);Te[Z]=-1}for(ne[0]+="/",Z=1;Z<be;++Z)j[Z].type!==2&&(ne[Z]+="/")}function v(j,ne,X){for(var Z=j.start,re=j.size,ae=[],_e=Z;X&&re>0&&_e>=0;)ae.push(ne.slice(_e*T,_e*T+T)),re-=T,_e=Ia(X,_e*4);return ae.length===0?ke(0):Vr(ae).slice(0,j.size)}function b(j,ne,X,Z,re){var ae=z;if(j===z){if(ne!==0)throw new Error("DIFAT chain shorter than expected")}else if(j!==-1){var _e=X[j],Le=(Z>>>2)-1;if(!_e)return;for(var be=0;be<Le&&(ae=Ia(_e,be*4))!==z;++be)re.push(ae);b(Ia(_e,Z-4),ne-1,X,Z,re)}}function _(j,ne,X,Z,re){var ae=[],_e=[];re||(re=[]);var Le=Z-1,be=0,Te=0;for(be=ne;be>=0;){re[be]=!0,ae[ae.length]=be,_e.push(j[be]);var Ne=X[Math.floor(be*4/Z)];if(Te=be*4&Le,Z<4+Te)throw new Error("FAT boundary crossed: "+be+" 4 "+Z);if(!j[Ne])break;be=Ia(j[Ne],Te)}return{nodes:ae,data:Pu([_e])}}function S(j,ne,X,Z){var re=j.length,ae=[],_e=[],Le=[],be=[],Te=Z-1,Ne=0,We=0,Ge=0,rt=0;for(Ne=0;Ne<re;++Ne)if(Le=[],Ge=Ne+ne,Ge>=re&&(Ge-=re),!_e[Ge]){be=[];var qe=[];for(We=Ge;We>=0;){qe[We]=!0,_e[We]=!0,Le[Le.length]=We,be.push(j[We]);var tt=X[Math.floor(We*4/Z)];if(rt=We*4&Te,Z<4+rt)throw new Error("FAT boundary crossed: "+We+" 4 "+Z);if(!j[tt]||(We=Ia(j[tt],rt),qe[We]))break}ae[Ge]={nodes:Le,data:Pu([be])}}return ae}function A(j,ne,X,Z,re,ae,_e,Le){for(var be=0,Te=Z.length?2:0,Ne=ne[j].data,We=0,Ge=0,rt;We<Ne.length;We+=128){var qe=Ne.slice(We,We+128);Pn(qe,64),Ge=qe.read_shift(2),rt=tc(qe,0,Ge-Te),Z.push(rt);var tt={name:rt,type:qe.read_shift(1),color:qe.read_shift(1),L:qe.read_shift(4,"i"),R:qe.read_shift(4,"i"),C:qe.read_shift(4,"i"),clsid:qe.read_shift(16),state:qe.read_shift(4,"i"),start:0,size:0},mt=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);mt!==0&&(tt.ct=k(qe,qe.l-8));var zt=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);zt!==0&&(tt.mt=k(qe,qe.l-8)),tt.start=qe.read_shift(4,"i"),tt.size=qe.read_shift(4,"i"),tt.size<0&&tt.start<0&&(tt.size=tt.type=0,tt.start=z,tt.name=""),tt.type===5?(be=tt.start,re>0&&be!==z&&(ne[be].name="!StreamData")):tt.size>=4096?(tt.storage="fat",ne[tt.start]===void 0&&(ne[tt.start]=_(X,tt.start,ne.fat_addrs,ne.ssz)),ne[tt.start].name=tt.name,tt.content=ne[tt.start].data.slice(0,tt.size)):(tt.storage="minifat",tt.size<0?tt.size=0:be!==z&&tt.start!==z&&ne[be]&&(tt.content=v(tt,ne[be].data,(ne[Le]||{}).data))),tt.content&&Pn(tt.content,0),ae[rt]=tt,_e.push(tt)}}function k(j,ne){return new Date((In(j,ne+4)/1e7*Math.pow(2,32)+In(j,ne)/1e7-11644473600)*1e3)}function M(j,ne){return c(),u(f.readFileSync(j),ne)}function K(j,ne){var X=ne&&ne.type;switch(X||jt&&Buffer.isBuffer(j)&&(X="buffer"),X||"base64"){case"file":return M(j,ne);case"base64":return u(fi(qi(j)),ne);case"binary":return u(fi(j),ne)}return u(j,ne)}function F(j,ne){var X=ne||{},Z=X.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]=Z+"/",j.FileIndex[0]={name:Z,type:5}),X.CLSID&&(j.FileIndex[0].clsid=X.CLSID),P(j)}function P(j){var ne="Sh33tJ5";if(!Jt.find(j,"/"+ne)){var X=ke(4);X[0]=55,X[1]=X[3]=50,X[2]=54,j.FileIndex.push({name:ne,type:2,content:X,size:4,L:69,R:69,C:69}),j.FullPaths.push(j.FullPaths[0]+ne),D(j)}}function D(j,ne){F(j);for(var X=!1,Z=!1,re=j.FullPaths.length-1;re>=0;--re){var ae=j.FileIndex[re];switch(ae.type){case 0:Z?X=!0:(j.FileIndex.pop(),j.FullPaths.pop());break;case 1:case 2:case 5:Z=!0,isNaN(ae.R*ae.L*ae.C)&&(X=!0),ae.R>-1&&ae.L>-1&&ae.R==ae.L&&(X=!0);break;default:X=!0;break}}if(!(!X&&!ne)){var _e=new Date(1987,1,19),Le=0,be=Object.create?Object.create(null):{},Te=[];for(re=0;re<j.FullPaths.length;++re)be[j.FullPaths[re]]=!0,j.FileIndex[re].type!==0&&Te.push([j.FullPaths[re],j.FileIndex[re]]);for(re=0;re<Te.length;++re){var Ne=n(Te[re][0]);Z=be[Ne],Z||(Te.push([Ne,{name:i(Ne).replace("/",""),type:1,clsid:Q,ct:_e,mt:_e,content:null}]),be[Ne]=!0)}for(Te.sort(function(rt,qe){return t(rt[0],qe[0])}),j.FullPaths=[],j.FileIndex=[],re=0;re<Te.length;++re)j.FullPaths[re]=Te[re][0],j.FileIndex[re]=Te[re][1];for(re=0;re<Te.length;++re){var We=j.FileIndex[re],Ge=j.FullPaths[re];if(We.name=i(Ge).replace("/",""),We.L=We.R=We.C=-(We.color=1),We.size=We.content?We.content.length:0,We.start=0,We.clsid=We.clsid||Q,re===0)We.C=Te.length>1?1:-1,We.size=0,We.type=5;else if(Ge.slice(-1)=="/"){for(Le=re+1;Le<Te.length&&n(j.FullPaths[Le])!=Ge;++Le);for(We.C=Le>=Te.length?-1:Le,Le=re+1;Le<Te.length&&n(j.FullPaths[Le])!=n(Ge);++Le);We.R=Le>=Te.length?-1:Le,We.type=1}else n(j.FullPaths[re+1]||"")==n(Ge)&&(We.R=re+1),We.type=2}}}function V(j,ne){var X=ne||{};if(X.fileType=="mad")return ht(j,X);switch(D(j),X.fileType){case"zip":return Kn(j,X)}var Z=(function(rt){for(var qe=0,tt=0,mt=0;mt<rt.FileIndex.length;++mt){var zt=rt.FileIndex[mt];if(zt.content){var $t=zt.content.length;$t>0&&($t<4096?qe+=$t+63>>6:tt+=$t+511>>9)}}for(var Sr=rt.FullPaths.length+3>>2,Jn=qe+7>>3,Fi=qe+127>>7,gi=Jn+tt+Sr+Fi,Zn=gi+127>>7,mi=Zn<=109?0:Math.ceil((Zn-109)/127);gi+Zn+mi+127>>7>Zn;)mi=++Zn<=109?0:Math.ceil((Zn-109)/127);var Nn=[1,mi,Zn,Fi,Sr,tt,qe,0];return rt.FileIndex[0].size=qe<<6,Nn[7]=(rt.FileIndex[0].start=Nn[0]+Nn[1]+Nn[2]+Nn[3]+Nn[4]+Nn[5])+(Nn[6]+7>>3),Nn})(j),re=ke(Z[7]<<9),ae=0,_e=0;{for(ae=0;ae<8;++ae)re.write_shift(1,ue[ae]);for(ae=0;ae<8;++ae)re.write_shift(2,0);for(re.write_shift(2,62),re.write_shift(2,3),re.write_shift(2,65534),re.write_shift(2,9),re.write_shift(2,6),ae=0;ae<3;++ae)re.write_shift(2,0);for(re.write_shift(4,0),re.write_shift(4,Z[2]),re.write_shift(4,Z[0]+Z[1]+Z[2]+Z[3]-1),re.write_shift(4,0),re.write_shift(4,4096),re.write_shift(4,Z[3]?Z[0]+Z[1]+Z[2]-1:z),re.write_shift(4,Z[3]),re.write_shift(-4,Z[1]?Z[0]-1:z),re.write_shift(4,Z[1]),ae=0;ae<109;++ae)re.write_shift(-4,ae<Z[2]?Z[1]+ae:-1)}if(Z[1])for(_e=0;_e<Z[1];++_e){for(;ae<236+_e*127;++ae)re.write_shift(-4,ae<Z[2]?Z[1]+ae:-1);re.write_shift(-4,_e===Z[1]-1?z:_e+1)}var Le=function(rt){for(_e+=rt;ae<_e-1;++ae)re.write_shift(-4,ae+1);rt&&(++ae,re.write_shift(-4,z))};for(_e=ae=0,_e+=Z[1];ae<_e;++ae)re.write_shift(-4,J.DIFSECT);for(_e+=Z[2];ae<_e;++ae)re.write_shift(-4,J.FATSECT);Le(Z[3]),Le(Z[4]);for(var be=0,Te=0,Ne=j.FileIndex[0];be<j.FileIndex.length;++be)Ne=j.FileIndex[be],Ne.content&&(Te=Ne.content.length,!(Te<4096)&&(Ne.start=_e,Le(Te+511>>9)));for(Le(Z[6]+7>>3);re.l&511;)re.write_shift(-4,J.ENDOFCHAIN);for(_e=ae=0,be=0;be<j.FileIndex.length;++be)Ne=j.FileIndex[be],Ne.content&&(Te=Ne.content.length,!(!Te||Te>=4096)&&(Ne.start=_e,Le(Te+63>>6)));for(;re.l&511;)re.write_shift(-4,J.ENDOFCHAIN);for(ae=0;ae<Z[4]<<2;++ae){var We=j.FullPaths[ae];if(!We||We.length===0){for(be=0;be<17;++be)re.write_shift(4,0);for(be=0;be<3;++be)re.write_shift(4,-1);for(be=0;be<12;++be)re.write_shift(4,0);continue}Ne=j.FileIndex[ae],ae===0&&(Ne.start=Ne.size?Ne.start-1:z);var Ge=ae===0&&X.root||Ne.name;if(Te=2*(Ge.length+1),re.write_shift(64,Ge,"utf16le"),re.write_shift(2,Te),re.write_shift(1,Ne.type),re.write_shift(1,Ne.color),re.write_shift(-4,Ne.L),re.write_shift(-4,Ne.R),re.write_shift(-4,Ne.C),Ne.clsid)re.write_shift(16,Ne.clsid,"hex");else for(be=0;be<4;++be)re.write_shift(4,0);re.write_shift(4,Ne.state||0),re.write_shift(4,0),re.write_shift(4,0),re.write_shift(4,0),re.write_shift(4,0),re.write_shift(4,Ne.start),re.write_shift(4,Ne.size),re.write_shift(4,0)}for(ae=1;ae<j.FileIndex.length;++ae)if(Ne=j.FileIndex[ae],Ne.size>=4096)if(re.l=Ne.start+1<<9,jt&&Buffer.isBuffer(Ne.content))Ne.content.copy(re,re.l,0,Ne.size),re.l+=Ne.size+511&-512;else{for(be=0;be<Ne.size;++be)re.write_shift(1,Ne.content[be]);for(;be&511;++be)re.write_shift(1,0)}for(ae=1;ae<j.FileIndex.length;++ae)if(Ne=j.FileIndex[ae],Ne.size>0&&Ne.size<4096)if(jt&&Buffer.isBuffer(Ne.content))Ne.content.copy(re,re.l,0,Ne.size),re.l+=Ne.size+63&-64;else{for(be=0;be<Ne.size;++be)re.write_shift(1,Ne.content[be]);for(;be&63;++be)re.write_shift(1,0)}if(jt)re.l=re.length;else for(;re.l<re.length;)re.write_shift(1,0);return re}function E(j,ne){var X=j.FullPaths.map(function(be){return be.toUpperCase()}),Z=X.map(function(be){var Te=be.split("/");return Te[Te.length-(be.slice(-1)=="/"?2:1)]}),re=!1;ne.charCodeAt(0)===47?(re=!0,ne=X[0].slice(0,-1)+ne):re=ne.indexOf("/")!==-1;var ae=ne.toUpperCase(),_e=re===!0?X.indexOf(ae):Z.indexOf(ae);if(_e!==-1)return j.FileIndex[_e];var Le=!ae.match(W0);for(ae=ae.replace(Fo,""),Le&&(ae=ae.replace(W0,"!")),_e=0;_e<X.length;++_e)if((Le?X[_e].replace(W0,"!"):X[_e]).replace(Fo,"")==ae||(Le?Z[_e].replace(W0,"!"):Z[_e]).replace(Fo,"")==ae)return j.FileIndex[_e];return null}var T=64,z=-2,Y="d0cf11e0a1b11ae1",ue=[208,207,17,224,161,177,26,225],Q="00000000000000000000000000000000",J={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:z,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function oe(j,ne,X){c();var Z=V(j,X);f.writeFileSync(ne,Z)}function te(j){for(var ne=new Array(j.length),X=0;X<j.length;++X)ne[X]=String.fromCharCode(j[X]);return ne.join("")}function pe(j,ne){var X=V(j,ne);switch(ne&&ne.type||"buffer"){case"file":return c(),f.writeFileSync(ne.filename,X),X;case"binary":return typeof X=="string"?X:te(X);case"base64":return Bo(typeof X=="string"?X:te(X));case"buffer":if(jt)return Buffer.isBuffer(X)?X:Gi(X);case"array":return typeof X=="string"?fi(X):X}return X}var ie;function y(j){try{var ne=j.InflateRaw,X=new ne;if(X._processChunk(new Uint8Array([3,0]),X._finishFlushFlag),X.bytesRead)ie=j;else throw new Error("zlib does not expose bytesRead")}catch(Z){console.error("cannot use native zlib: "+(Z.message||Z))}}function L(j,ne){if(!ie)return It(j,ne);var X=ie.InflateRaw,Z=new X,re=Z._processChunk(j.slice(j.l),Z._finishFlushFlag);return j.l+=Z.bytesRead,re}function C(j){return ie?ie.deflateRawSync(j):Nt(j)}var O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=[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 ce(j){var ne=(j<<1|j<<11)&139536|(j<<5|j<<15)&558144;return(ne>>16|ne>>8|ne)&255}for(var he=typeof Uint8Array<"u",we=he?new Uint8Array(256):[],Pe=0;Pe<256;++Pe)we[Pe]=ce(Pe);function De(j,ne){var X=we[j&255];return ne<=8?X>>>8-ne:(X=X<<8|we[j>>8&255],ne<=16?X>>>16-ne:(X=X<<8|we[j>>16&255],X>>>24-ne))}function He(j,ne){var X=ne&7,Z=ne>>>3;return(j[Z]|(X<=6?0:j[Z+1]<<8))>>>X&3}function $e(j,ne){var X=ne&7,Z=ne>>>3;return(j[Z]|(X<=5?0:j[Z+1]<<8))>>>X&7}function Ee(j,ne){var X=ne&7,Z=ne>>>3;return(j[Z]|(X<=4?0:j[Z+1]<<8))>>>X&15}function le(j,ne){var X=ne&7,Z=ne>>>3;return(j[Z]|(X<=3?0:j[Z+1]<<8))>>>X&31}function Me(j,ne){var X=ne&7,Z=ne>>>3;return(j[Z]|(X<=1?0:j[Z+1]<<8))>>>X&127}function nt(j,ne,X){var Z=ne&7,re=ne>>>3,ae=(1<<X)-1,_e=j[re]>>>Z;return X<8-Z||(_e|=j[re+1]<<8-Z,X<16-Z)||(_e|=j[re+2]<<16-Z,X<24-Z)||(_e|=j[re+3]<<24-Z),_e&ae}function Ue(j,ne,X){var Z=ne&7,re=ne>>>3;return Z<=5?j[re]|=(X&7)<<Z:(j[re]|=X<<Z&255,j[re+1]=(X&7)>>8-Z),ne+3}function Ve(j,ne,X){var Z=ne&7,re=ne>>>3;return X=(X&1)<<Z,j[re]|=X,ne+1}function Ke(j,ne,X){var Z=ne&7,re=ne>>>3;return X<<=Z,j[re]|=X&255,X>>>=8,j[re+1]=X,ne+8}function Ze(j,ne,X){var Z=ne&7,re=ne>>>3;return X<<=Z,j[re]|=X&255,X>>>=8,j[re+1]=X&255,j[re+2]=X>>>8,ne+16}function lt(j,ne){var X=j.length,Z=2*X>ne?2*X:ne+5,re=0;if(X>=ne)return j;if(jt){var ae=vu(Z);if(j.copy)j.copy(ae);else for(;re<j.length;++re)ae[re]=j[re];return ae}else if(he){var _e=new Uint8Array(Z);if(_e.set)_e.set(j);else for(;re<X;++re)_e[re]=j[re];return _e}return j.length=Z,j}function ft(j){for(var ne=new Array(j),X=0;X<j;++X)ne[X]=0;return ne}function vt(j,ne,X){var Z=1,re=0,ae=0,_e=0,Le=0,be=j.length,Te=he?new Uint16Array(32):ft(32);for(ae=0;ae<32;++ae)Te[ae]=0;for(ae=be;ae<X;++ae)j[ae]=0;be=j.length;var Ne=he?new Uint16Array(be):ft(be);for(ae=0;ae<be;++ae)Te[re=j[ae]]++,Z<re&&(Z=re),Ne[ae]=0;for(Te[0]=0,ae=1;ae<=Z;++ae)Te[ae+16]=Le=Le+Te[ae-1]<<1;for(ae=0;ae<be;++ae)Le=j[ae],Le!=0&&(Ne[ae]=Te[Le+16]++);var We=0;for(ae=0;ae<be;++ae)if(We=j[ae],We!=0)for(Le=De(Ne[ae],Z)>>Z-We,_e=(1<<Z+4-We)-1;_e>=0;--_e)ne[Le|_e<<We]=We&15|ae<<4;return Z}var St=he?new Uint16Array(512):ft(512),Ft=he?new Uint16Array(32):ft(32);if(!he){for(var Ct=0;Ct<512;++Ct)St[Ct]=0;for(Ct=0;Ct<32;++Ct)Ft[Ct]=0}(function(){for(var j=[],ne=0;ne<32;ne++)j.push(5);vt(j,Ft,32);var X=[];for(ne=0;ne<=143;ne++)X.push(8);for(;ne<=255;ne++)X.push(9);for(;ne<=279;ne++)X.push(7);for(;ne<=287;ne++)X.push(8);vt(X,St,288)})();var pt=(function(){for(var ne=he?new Uint8Array(32768):[],X=0,Z=0;X<fe.length-1;++X)for(;Z<fe[X+1];++Z)ne[Z]=X;for(;Z<32768;++Z)ne[Z]=29;var re=he?new Uint8Array(259):[];for(X=0,Z=0;X<H.length-1;++X)for(;Z<H[X+1];++Z)re[Z]=X;function ae(Le,be){for(var Te=0;Te<Le.length;){var Ne=Math.min(65535,Le.length-Te),We=Te+Ne==Le.length;for(be.write_shift(1,+We),be.write_shift(2,Ne),be.write_shift(2,~Ne&65535);Ne-- >0;)be[be.l++]=Le[Te++]}return be.l}function _e(Le,be){for(var Te=0,Ne=0,We=he?new Uint16Array(32768):[];Ne<Le.length;){var Ge=Math.min(65535,Le.length-Ne);if(Ge<10){for(Te=Ue(be,Te,+(Ne+Ge==Le.length)),Te&7&&(Te+=8-(Te&7)),be.l=Te/8|0,be.write_shift(2,Ge),be.write_shift(2,~Ge&65535);Ge-- >0;)be[be.l++]=Le[Ne++];Te=be.l*8;continue}Te=Ue(be,Te,+(Ne+Ge==Le.length)+2);for(var rt=0;Ge-- >0;){var qe=Le[Ne];rt=(rt<<5^qe)&32767;var tt=-1,mt=0;if((tt=We[rt])&&(tt|=Ne&-32768,tt>Ne&&(tt-=32768),tt<Ne))for(;Le[tt+mt]==Le[Ne+mt]&&mt<250;)++mt;if(mt>2){qe=re[mt],qe<=22?Te=Ke(be,Te,we[qe+1]>>1)-1:(Ke(be,Te,3),Te+=5,Ke(be,Te,we[qe-23]>>5),Te+=3);var zt=qe<8?0:qe-4>>2;zt>0&&(Ze(be,Te,mt-H[qe]),Te+=zt),qe=ne[Ne-tt],Te=Ke(be,Te,we[qe]>>3),Te-=3;var $t=qe<4?0:qe-2>>1;$t>0&&(Ze(be,Te,Ne-tt-fe[qe]),Te+=$t);for(var Sr=0;Sr<mt;++Sr)We[rt]=Ne&32767,rt=(rt<<5^Le[Ne])&32767,++Ne;Ge-=mt-1}else qe<=143?qe=qe+48:Te=Ve(be,Te,1),Te=Ke(be,Te,we[qe]),We[rt]=Ne&32767,++Ne}Te=Ke(be,Te,0)-1}return be.l=(Te+7)/8|0,be.l}return function(be,Te){return be.length<8?ae(be,Te):_e(be,Te)}})();function Nt(j){var ne=ke(50+Math.floor(j.length*1.1)),X=pt(j,ne);return ne.slice(0,X)}var et=he?new Uint16Array(32768):ft(32768),Cr=he?new Uint16Array(32768):ft(32768),Pt=he?new Uint16Array(128):ft(128),dn=1,Ut=1;function tr(j,ne){var X=le(j,ne)+257;ne+=5;var Z=le(j,ne)+1;ne+=5;var re=Ee(j,ne)+4;ne+=4;for(var ae=0,_e=he?new Uint8Array(19):ft(19),Le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],be=1,Te=he?new Uint8Array(8):ft(8),Ne=he?new Uint8Array(8):ft(8),We=_e.length,Ge=0;Ge<re;++Ge)_e[O[Ge]]=ae=$e(j,ne),be<ae&&(be=ae),Te[ae]++,ne+=3;var rt=0;for(Te[0]=0,Ge=1;Ge<=be;++Ge)Ne[Ge]=rt=rt+Te[Ge-1]<<1;for(Ge=0;Ge<We;++Ge)(rt=_e[Ge])!=0&&(Le[Ge]=Ne[rt]++);var qe=0;for(Ge=0;Ge<We;++Ge)if(qe=_e[Ge],qe!=0){rt=we[Le[Ge]]>>8-qe;for(var tt=(1<<7-qe)-1;tt>=0;--tt)Pt[rt|tt<<qe]=qe&7|Ge<<3}var mt=[];for(be=1;mt.length<X+Z;)switch(rt=Pt[Me(j,ne)],ne+=rt&7,rt>>>=3){case 16:for(ae=3+He(j,ne),ne+=2,rt=mt[mt.length-1];ae-- >0;)mt.push(rt);break;case 17:for(ae=3+$e(j,ne),ne+=3;ae-- >0;)mt.push(0);break;case 18:for(ae=11+Me(j,ne),ne+=7;ae-- >0;)mt.push(0);break;default:mt.push(rt),be<rt&&(be=rt);break}var zt=mt.slice(0,X),$t=mt.slice(X);for(Ge=X;Ge<286;++Ge)zt[Ge]=0;for(Ge=Z;Ge<30;++Ge)$t[Ge]=0;return dn=vt(zt,et,286),Ut=vt($t,Cr,30),ne}function Mn(j,ne){if(j[0]==3&&!(j[1]&3))return[Wa(ne),2];for(var X=0,Z=0,re=vu(ne||1<<18),ae=0,_e=re.length>>>0,Le=0,be=0;(Z&1)==0;){if(Z=$e(j,X),X+=3,Z>>>1)Z>>1==1?(Le=9,be=5):(X=tr(j,X),Le=dn,be=Ut);else{X&7&&(X+=8-(X&7));var Te=j[X>>>3]|j[(X>>>3)+1]<<8;if(X+=32,Te>0)for(!ne&&_e<ae+Te&&(re=lt(re,ae+Te),_e=re.length);Te-- >0;)re[ae++]=j[X>>>3],X+=8;continue}for(;;){!ne&&_e<ae+32767&&(re=lt(re,ae+32767),_e=re.length);var Ne=nt(j,X,Le),We=Z>>>1==1?St[Ne]:et[Ne];if(X+=We&15,We>>>=4,(We>>>8&255)===0)re[ae++]=We;else{if(We==256)break;We-=257;var Ge=We<8?0:We-4>>2;Ge>5&&(Ge=0);var rt=ae+H[We];Ge>0&&(rt+=nt(j,X,Ge),X+=Ge),Ne=nt(j,X,be),We=Z>>>1==1?Ft[Ne]:Cr[Ne],X+=We&15,We>>>=4;var qe=We<4?0:We-2>>1,tt=fe[We];for(qe>0&&(tt+=nt(j,X,qe),X+=qe),!ne&&_e<rt&&(re=lt(re,rt+100),_e=re.length);ae<rt;)re[ae]=re[ae-tt],++ae}}}return ne?[re,X+7>>>3]:[re.slice(0,ae),X+7>>>3]}function It(j,ne){var X=j.slice(j.l||0),Z=Mn(X,ne);return j.l+=Z[1],Z[0]}function pi(j,ne){if(j)typeof console<"u"&&console.error(ne);else throw new Error(ne)}function ar(j,ne){var X=j;Pn(X,0);var Z=[],re=[],ae={FileIndex:Z,FullPaths:re};F(ae,{root:ne.root});for(var _e=X.length-4;(X[_e]!=80||X[_e+1]!=75||X[_e+2]!=5||X[_e+3]!=6)&&_e>=0;)--_e;X.l=_e+4,X.l+=4;var Le=X.read_shift(2);X.l+=6;var be=X.read_shift(4);for(X.l=be,_e=0;_e<Le;++_e){X.l+=20;var Te=X.read_shift(4),Ne=X.read_shift(4),We=X.read_shift(2),Ge=X.read_shift(2),rt=X.read_shift(2);X.l+=8;var qe=X.read_shift(4),tt=o(X.slice(X.l+We,X.l+We+Ge));X.l+=We+Ge+rt;var mt=X.l;X.l=qe+4,An(X,Te,Ne,ae,tt),X.l=mt}return ae}function An(j,ne,X,Z,re){j.l+=2;var ae=j.read_shift(2),_e=j.read_shift(2),Le=s(j);if(ae&8257)throw new Error("Unsupported ZIP encryption");for(var be=j.read_shift(4),Te=j.read_shift(4),Ne=j.read_shift(4),We=j.read_shift(2),Ge=j.read_shift(2),rt="",qe=0;qe<We;++qe)rt+=String.fromCharCode(j[j.l++]);if(Ge){var tt=o(j.slice(j.l,j.l+Ge));(tt[21589]||{}).mt&&(Le=tt[21589].mt),((re||{})[21589]||{}).mt&&(Le=re[21589].mt)}j.l+=Ge;var mt=j.slice(j.l,j.l+Te);switch(_e){case 8:mt=L(j,Ne);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+_e)}var zt=!1;ae&8&&(be=j.read_shift(4),be==134695760&&(be=j.read_shift(4),zt=!0),Te=j.read_shift(4),Ne=j.read_shift(4)),Te!=ne&&pi(zt,"Bad compressed size: "+ne+" != "+Te),Ne!=X&&pi(zt,"Bad uncompressed size: "+X+" != "+Ne),pn(Z,rt,mt,{unsafe:!0,mt:Le})}function Kn(j,ne){var X=ne||{},Z=[],re=[],ae=ke(1),_e=X.compression?8:0,Le=0,be=0,Te=0,Ne=0,We=0,Ge=j.FullPaths[0],rt=Ge,qe=j.FileIndex[0],tt=[],mt=0;for(be=1;be<j.FullPaths.length;++be)if(rt=j.FullPaths[be].slice(Ge.length),qe=j.FileIndex[be],!(!qe.size||!qe.content||rt=="Sh33tJ5")){var zt=Ne,$t=ke(rt.length);for(Te=0;Te<rt.length;++Te)$t.write_shift(1,rt.charCodeAt(Te)&127);$t=$t.slice(0,$t.l),tt[We]=S5.buf(qe.content,0);var Sr=qe.content;_e==8&&(Sr=C(Sr)),ae=ke(30),ae.write_shift(4,67324752),ae.write_shift(2,20),ae.write_shift(2,Le),ae.write_shift(2,_e),qe.mt?a(ae,qe.mt):ae.write_shift(4,0),ae.write_shift(-4,tt[We]),ae.write_shift(4,Sr.length),ae.write_shift(4,qe.content.length),ae.write_shift(2,$t.length),ae.write_shift(2,0),Ne+=ae.length,Z.push(ae),Ne+=$t.length,Z.push($t),Ne+=Sr.length,Z.push(Sr),ae=ke(46),ae.write_shift(4,33639248),ae.write_shift(2,0),ae.write_shift(2,20),ae.write_shift(2,Le),ae.write_shift(2,_e),ae.write_shift(4,0),ae.write_shift(-4,tt[We]),ae.write_shift(4,Sr.length),ae.write_shift(4,qe.content.length),ae.write_shift(2,$t.length),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(4,0),ae.write_shift(4,zt),mt+=ae.l,re.push(ae),mt+=$t.length,re.push($t),++We}return ae=ke(22),ae.write_shift(4,101010256),ae.write_shift(2,0),ae.write_shift(2,0),ae.write_shift(2,We),ae.write_shift(2,We),ae.write_shift(4,mt),ae.write_shift(4,Ne),ae.write_shift(2,0),Vr([Vr(Z),Vr(re),ae])}var Zt={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 xt(j,ne){if(j.ctype)return j.ctype;var X=j.name||"",Z=X.match(/\.([^\.]+)$/);return Z&&Zt[Z[1]]||ne&&(Z=(X=ne).match(/[\.\\]([^\.\\])+$/),Z&&Zt[Z[1]])?Zt[Z[1]]:"application/octet-stream"}function Dt(j){for(var ne=Bo(j),X=[],Z=0;Z<ne.length;Z+=76)X.push(ne.slice(Z,Z+76));return X.join(`\r
254
+ `)+`\r
255
+ `}function Li(j){var ne=j.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Te){var Ne=Te.charCodeAt(0).toString(16).toUpperCase();return"="+(Ne.length==1?"0"+Ne:Ne)});ne=ne.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ne.charAt(0)==`
256
+ `&&(ne="=0D"+ne.slice(1)),ne=ne.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
257
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var X=[],Z=ne.split(`\r
258
+ `),re=0;re<Z.length;++re){var ae=Z[re];if(ae.length==0){X.push("");continue}for(var _e=0;_e<ae.length;){var Le=76,be=ae.slice(_e,_e+Le);be.charAt(Le-1)=="="?Le--:be.charAt(Le-2)=="="?Le-=2:be.charAt(Le-3)=="="&&(Le-=3),be=ae.slice(_e,_e+Le),_e+=Le,_e<ae.length&&(be+="="),X.push(be)}}return X.join(`\r
259
+ `)}function kr(j){for(var ne=[],X=0;X<j.length;++X){for(var Z=j[X];X<=j.length&&Z.charAt(Z.length-1)=="=";)Z=Z.slice(0,Z.length-1)+j[++X];ne.push(Z)}for(var re=0;re<ne.length;++re)ne[re]=ne[re].replace(/[=][0-9A-Fa-f]{2}/g,function(ae){return String.fromCharCode(parseInt(ae.slice(1),16))});return fi(ne.join(`\r
260
+ `))}function Bn(j,ne,X){for(var Z="",re="",ae="",_e,Le=0;Le<10;++Le){var be=ne[Le];if(!be||be.match(/^\s*$/))break;var Te=be.match(/^(.*?):\s*([^\s].*)$/);if(Te)switch(Te[1].toLowerCase()){case"content-location":Z=Te[2].trim();break;case"content-type":ae=Te[2].trim();break;case"content-transfer-encoding":re=Te[2].trim();break}}switch(++Le,re.toLowerCase()){case"base64":_e=fi(qi(ne.slice(Le).join("")));break;case"quoted-printable":_e=kr(ne.slice(Le));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+re)}var Ne=pn(j,Z.slice(X.length),_e,{unsafe:!0});ae&&(Ne.ctype=ae)}function jn(j,ne){if(te(j.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var X=ne&&ne.root||"",Z=(jt&&Buffer.isBuffer(j)?j.toString("binary"):te(j)).split(`\r
261
+ `),re=0,ae="";for(re=0;re<Z.length;++re)if(ae=Z[re],!!/^Content-Location:/i.test(ae)&&(ae=ae.slice(ae.indexOf("file")),X||(X=ae.slice(0,ae.lastIndexOf("/")+1)),ae.slice(0,X.length)!=X))for(;X.length>0&&(X=X.slice(0,X.length-1),X=X.slice(0,X.lastIndexOf("/")+1),ae.slice(0,X.length)!=X););var _e=(Z[1]||"").match(/boundary="(.*?)"/);if(!_e)throw new Error("MAD cannot find boundary");var Le="--"+(_e[1]||""),be=[],Te=[],Ne={FileIndex:be,FullPaths:Te};F(Ne);var We,Ge=0;for(re=0;re<Z.length;++re){var rt=Z[re];rt!==Le&&rt!==Le+"--"||(Ge++&&Bn(Ne,Z.slice(We,re),X),We=re)}return Ne}function ht(j,ne){var X=ne||{},Z=X.boundary||"SheetJS";Z="------="+Z;for(var re=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+Z.slice(2)+'"',"","",""],ae=j.FullPaths[0],_e=ae,Le=j.FileIndex[0],be=1;be<j.FullPaths.length;++be)if(_e=j.FullPaths[be].slice(ae.length),Le=j.FileIndex[be],!(!Le.size||!Le.content||_e=="Sh33tJ5")){_e=_e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(mt){return"_x"+mt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(mt){return"_u"+mt.charCodeAt(0).toString(16)+"_"});for(var Te=Le.content,Ne=jt&&Buffer.isBuffer(Te)?Te.toString("binary"):te(Te),We=0,Ge=Math.min(1024,Ne.length),rt=0,qe=0;qe<=Ge;++qe)(rt=Ne.charCodeAt(qe))>=32&&rt<128&&++We;var tt=We>=Ge*4/5;re.push(Z),re.push("Content-Location: "+(X.root||"file:///C:/SheetJS/")+_e),re.push("Content-Transfer-Encoding: "+(tt?"quoted-printable":"base64")),re.push("Content-Type: "+xt(Le,_e)),re.push(""),re.push(tt?Li(Ne):Dt(Ne))}return re.push(Z+`--\r
262
+ `),re.join(`\r
263
+ `)}function Tn(j){var ne={};return F(ne,j),ne}function pn(j,ne,X,Z){var re=Z&&Z.unsafe;re||F(j);var ae=!re&&Jt.find(j,ne);if(!ae){var _e=j.FullPaths[0];ne.slice(0,_e.length)==_e?_e=ne:(_e.slice(-1)!="/"&&(_e+="/"),_e=(_e+ne).replace("//","/")),ae={name:i(ne),type:2},j.FileIndex.push(ae),j.FullPaths.push(_e),re||Jt.utils.cfb_gc(j)}return ae.content=X,ae.size=X?X.length:0,Z&&(Z.CLSID&&(ae.clsid=Z.CLSID),Z.mt&&(ae.mt=Z.mt),Z.ct&&(ae.ct=Z.ct)),ae}function $r(j,ne){F(j);var X=Jt.find(j,ne);if(X){for(var Z=0;Z<j.FileIndex.length;++Z)if(j.FileIndex[Z]==X)return j.FileIndex.splice(Z,1),j.FullPaths.splice(Z,1),!0}return!1}function mr(j,ne,X){F(j);var Z=Jt.find(j,ne);if(Z){for(var re=0;re<j.FileIndex.length;++re)if(j.FileIndex[re]==Z)return j.FileIndex[re].name=i(X),j.FullPaths[re]=X,!0}return!1}function cr(j){D(j,!0)}return r.find=E,r.read=K,r.parse=u,r.write=pe,r.writeFile=oe,r.utils={cfb_new:Tn,cfb_add:pn,cfb_del:$r,cfb_mov:mr,cfb_gc:cr,ReadShift:ko,CheckField:h1,prep_blob:Pn,bconcat:Vr,use_zlib:y,_deflateRaw:Nt,_inflateRaw:It,consts:J},r})();function A5(e){return typeof e=="string"?ml(e):Array.isArray(e)?Kp(e):e}function Vo(e,r,t){if(typeof Deno<"u"){if(t&&typeof r=="string")switch(t){case"utf8":r=new TextEncoder(t).encode(r);break;case"binary":r=ml(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?Uo(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([A5(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 s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(r)&&(r=qo(r)),o.write(r),o.close(),r}catch(f){if(!f.message||!f.message.match(/onstruct/))throw f}throw new Error("cannot save file "+e)}function Xr(e){for(var r=Object.keys(e),t=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(e,r[n])&&t.push(r[n]);return t}function Tu(e,r){for(var t=[],n=Xr(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function Jf(e){for(var r=[],t=Xr(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function wl(e){for(var r=[],t=Xr(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function T5(e){for(var r=[],t=Xr(e),n=0;n!==t.length;++n)r[e[t[n]]]==null&&(r[e[t[n]]]=[]),r[e[t[n]]].push(t[n]);return r}var nl=new Date(1899,11,30,0,0,0);function bn(e,r){var t=e.getTime(),n=nl.getTime()+(e.getTimezoneOffset()-nl.getTimezoneOffset())*6e4;return(t-n)/(1440*60*1e3)}var $h=new Date,N5=nl.getTime()+($h.getTimezoneOffset()-nl.getTimezoneOffset())*6e4,Nu=$h.getTimezoneOffset();function Kh(e){var r=new Date;return r.setTime(e*24*60*60*1e3+N5),r.getTimezoneOffset()!==Nu&&r.setTime(r.getTime()+(r.getTimezoneOffset()-Nu)*6e4),r}var Eu=new Date("2017-02-19T19:06:09.000Z"),Jh=isNaN(Eu.getFullYear())?new Date("2/19/17"):Eu,E5=Jh.getFullYear()==2017;function hn(e,r){var t=new Date(e);if(E5)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(Jh.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}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 yl(e,r){if(jt&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var t={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return t[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function _n(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 r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=_n(e[t]));return r}function pr(e,r){for(var t="";t.length<r;)t+=e;return t}function Wi(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return t=-t,a}),!isNaN(r=Number(n)))?r/t:r}var L5=["january","february","march","april","may","june","july","august","september","october","november","december"];function jo(e){var r=new Date(e),t=new Date(NaN),n=r.getYear(),i=r.getMonth(),a=r.getDate();if(isNaN(a))return t;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&L5.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(i>0||a>1)&&n!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}function Et(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return jt?n=Gi(t):n=Jp(t),Jt.utils.cfb_add(e,r,n)}Jt.utils.cfb_add(e,r,t)}else e.file(r,t)}function Zf(){return Jt.utils.cfb_new()}var Fr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
+ `,F5={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Qf=Jf(F5),ec=/[&<>'"]/g,C5=/[\u0000-\u0008\u000b-\u001f]/g;function Yt(e){var r=e+"";return r.replace(ec,function(t){return Qf[t]}).replace(C5,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Lu(e){return Yt(e).replace(/ /g,"_x0020_")}var Zh=/[\u0000-\u001f]/g;function k5(e){var r=e+"";return r.replace(ec,function(t){return Qf[t]}).replace(/\n/g,"<br/>").replace(Zh,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function P5(e){var r=e+"";return r.replace(ec,function(t){return Qf[t]}).replace(Zh,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function O5(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function I5(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function yf(e){for(var r="",t=0,n=0,i=0,a=0,s=0,o=0;t<e.length;){if(n=e.charCodeAt(t++),n<128){r+=String.fromCharCode(n);continue}if(i=e.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,r+=String.fromCharCode(s);continue}if(a=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(t++),o=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(o>>>10&1023)),r+=String.fromCharCode(56320+(o&1023))}return r}function Fu(e){var r=Wa(2*e.length),t,n,i=1,a=0,s=0,o;for(n=0;n<e.length;n+=i)i=1,(o=e.charCodeAt(n))<128?t=o:o<224?(t=(o&31)*64+(e.charCodeAt(n+1)&63),i=2):o<240?(t=(o&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,t=(o&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(r[a++]=s&255,r[a++]=s>>>8,s=0),r[a++]=t%256,r[a++]=t>>>8;return r.slice(0,a).toString("ucs2")}function Cu(e){return Gi(e,"binary").toString("utf8")}var q0="foo bar baz☃🍣",Co=jt&&(Cu(q0)==yf(q0)&&Cu||Fu(q0)==yf(q0)&&Fu)||yf,Uo=jt?function(e){return Gi(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,i=0;t<e.length;)switch(n=e.charCodeAt(t++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},R5=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.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}})(),Qh=/(^\s|\s$|\n)/;function Gr(e,r){return"<"+e+(r.match(Qh)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function zo(e){return Xr(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Ye(e,r,t){return"<"+e+(t!=null?zo(t):"")+(r!=null?(r.match(Qh)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function zf(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function D5(e,r){switch(typeof e){case"string":var t=Ye("vt:lpwstr",Yt(e));return t=t.replace(/&quot;/g,"_x0022_"),t;case"number":return Ye((e|0)==e?"vt:i4":"vt:r8",Yt(String(e)));case"boolean":return Ye("vt:bool",e?"true":"false")}if(e instanceof Date)return Ye("vt:filetime",zf(e));throw new Error("Unable to serialize "+e)}var Br={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"},Ds=["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"],On={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 M5(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,a=5;a>=0;--a)i=i*256+e[r+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function B5(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,a=0,s=n?-r:r;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*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(r)?26985:0);for(var o=0;o<=5;++o,a/=256)e[t+o]=a&255;e[t+6]=(i&15)<<4|a&15,e[t+7]=i>>4|n}var ku=function(e){for(var r=[],t=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=t)r.push.apply(r,e[0][n].slice(i,i+t));return r},Pu=jt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:Gi(r)})):ku(e)}:ku,Ou=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(So(e,i)));return n.join("").replace(Fo,"")},tc=jt?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(Fo,""):Ou(e,r,t)}:Ou,Iu=function(e,r,t){for(var n=[],i=r;i<r+t;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},e1=jt?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Iu(e,r,t)}:Iu,Ru=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(Ns(e,i)));return n.join("")},Go=jt?function(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):Ru(r,t,n)}:Ru,t1=function(e,r){var t=In(e,r);return t>0?Go(e,r+4,r+4+t-1):""},r1=t1,n1=function(e,r){var t=In(e,r);return t>0?Go(e,r+4,r+4+t-1):""},i1=n1,a1=function(e,r){var t=2*In(e,r);return t>0?Go(e,r+4,r+4+t-1):""},s1=a1,o1=function(r,t){var n=In(r,t);return n>0?tc(r,t+4,t+4+n):""},l1=o1,f1=function(e,r){var t=In(e,r);return t>0?Go(e,r+4,r+4+t):""},c1=f1,u1=function(e,r){return M5(e,r)},il=u1,rc=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};jt&&(r1=function(r,t){if(!Buffer.isBuffer(r))return t1(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},i1=function(r,t){if(!Buffer.isBuffer(r))return n1(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},s1=function(r,t){if(!Buffer.isBuffer(r))return a1(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},l1=function(r,t){if(!Buffer.isBuffer(r))return o1(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},c1=function(r,t){if(!Buffer.isBuffer(r))return f1(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},il=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):u1(r,t)},rc=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Ns=function(e,r){return e[r]},So=function(e,r){return e[r+1]*256+e[r]},j5=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},In=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},Ia=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},U5=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function ko(e,r){var t="",n,i,a=[],s,o,f,c;switch(r){case"dbcs":if(c=this.l,jt&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f<e;++f)t+=String.fromCharCode(So(this,c)),c+=2;e*=2;break;case"utf8":t=Go(this,this.l,this.l+e);break;case"utf16le":e*=2,t=tc(this,this.l,this.l+e);break;case"wstr":return ko.call(this,e,"dbcs");case"lpstr-ansi":t=r1(this,this.l),e=4+In(this,this.l);break;case"lpstr-cp":t=i1(this,this.l),e=4+In(this,this.l);break;case"lpwstr":t=s1(this,this.l),e=4+2*In(this,this.l);break;case"lpp4":e=4+In(this,this.l),t=l1(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+In(this,this.l),t=c1(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(s=Ns(this,this.l+e++))!==0;)a.push(z0(s));t=a.join("");break;case"_wstr":for(e=0,t="";(s=So(this,this.l+e))!==0;)a.push(z0(s)),e+=2;e+=2,t=a.join("");break;case"dbcs-cont":for(t="",c=this.l,f=0;f<e;++f){if(this.lens&&this.lens.indexOf(c)!==-1)return s=Ns(this,c),this.l=c+1,o=ko.call(this,e-f,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(z0(So(this,c))),c+=2}t=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",c=this.l,f=0;f!=e;++f){if(this.lens&&this.lens.indexOf(c)!==-1)return s=Ns(this,c),this.l=c+1,o=ko.call(this,e-f,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(z0(Ns(this,c))),c+=1}t=a.join("");break;default:switch(e){case 1:return n=Ns(this,this.l),this.l++,n;case 2:return n=(r==="i"?j5:So)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||(this[this.l+3]&128)===0?(n=(e>0?Ia:U5)(this,this.l),this.l+=4,n):(i=In(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=il(this,this.l):i=il([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:t=e1(this,this.l,e);break}}return this.l+=e,t}var z5=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},W5=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},H5=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function q5(e,r,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)H5(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255;n=r.length}else if(t==="hex"){for(;i<e;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(r.length,e);++i){var s=r.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=r&255;break;case 2:n=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,z5(this,r,this.l);break;case 8:if(n=8,t==="f"){B5(this,r,this.l);break}case 16:break;case-4:n=4,W5(this,r,this.l);break}return this.l+=n,this}function h1(e,r){var t=e1(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Pn(e,r){e.l=r,e.read_shift=ko,e.chk=h1,e.write_shift=q5}function Ni(e,r){e.l+=r}function ke(e){var r=Wa(e);return Pn(r,0),r}function yn(){var e=[],r=jt?256:2048,t=function(c){var u=ke(c);return Pn(u,0),u},n=t(r),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=t(Math.max(c+1,r)))},s=function(){return i(),Vr(e)},o=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(r)};return{next:a,push:o,end:s,_bufs:e}}function Be(e,r,t,n){var i=+r,a;if(!isNaN(i)){n||(n=M3[i].p||(t||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&rc(t)&&e.push(t)}}function Po(e,r,t){var n=_n(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Du(e,r,t){var n=_n(e);return n.s=Po(n.s,r.s,t),n.e=Po(n.e,r.s,t),n}function Oo(e,r){if(e.cRel&&e.c<0)for(e=_n(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=_n(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=Xt(e);return!e.cRel&&e.cRel!=null&&(t=Y5(t)),!e.rRel&&e.rRel!=null&&(t=V5(t)),t}function bf(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+nn(e.s.c)+":"+(e.e.cRel?"":"$")+nn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Yr(e.s.r)+":"+(e.e.rRel?"":"$")+Yr(e.e.r):Oo(e.s,r.biff)+":"+Oo(e.e,r.biff)}function nc(e){return parseInt(G5(e),10)-1}function Yr(e){return""+(e+1)}function V5(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function G5(e){return e.replace(/\$(\d+)$/,"$1")}function ic(e){for(var r=X5(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function nn(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Y5(e){return e.replace(/^([A-Z])/,"$$$1")}function X5(e){return e.replace(/^\$([A-Z])/,"$1")}function $5(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function jr(e){for(var r=0,t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:r-1}}function Xt(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function Dn(e){var r=e.indexOf(":");return r==-1?{s:jr(e),e:jr(e)}:{s:jr(e.slice(0,r)),e:jr(e.slice(r+1))}}function Lr(e,r){return typeof r>"u"||typeof r=="number"?Lr(e.s,e.e):(typeof e!="string"&&(e=Xt(e)),typeof r!="string"&&(r=Xt(r)),e==r?e:e+":"+r)}function lr(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,i=0,a=e.length;for(t=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.s.c=--t,t=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;if(r.s.r=--t,n===a||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.e.c=--t,t=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;return r.e.r=--t,r}function Mu(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=wa(e.z,t?bn(r):r)}catch{}try{return e.w=wa((e.XF||{}).numFmtId||(t?14:0),t?bn(r):r)}catch{return""+r}}function Vi(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?Yo[e.v]||e.v:r==null?Mu(e,e.v):Mu(e,r))}function Ga(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function d1(e,r,t){var n=t||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var f=typeof n.origin=="string"?jr(n.origin):n.origin;s=f.r,o=f.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=lr(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),s==-1&&(c.e.r=s=u.e.r+1)}for(var p=0;p!=r.length;++p)if(r[p]){if(!Array.isArray(r[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var g=0;g!=r[p].length;++g)if(!(typeof r[p][g]>"u")){var h={v:r[p][g]},w=s+p,v=o+g;if(c.s.r>w&&(c.s.r=w),c.s.c>v&&(c.s.c=v),c.e.r<w&&(c.e.r=w),c.e.c<v&&(c.e.c=v),r[p][g]&&typeof r[p][g]=="object"&&!Array.isArray(r[p][g])&&!(r[p][g]instanceof Date))h=r[p][g];else if(Array.isArray(h.v)&&(h.f=r[p][g][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||gr[14],n.cellDates?(h.t="d",h.w=wa(h.z,bn(h.v))):(h.t="n",h.v=bn(h.v),h.w=wa(h.z,h.v))):h.t="s";if(i)a[w]||(a[w]=[]),a[w][v]&&a[w][v].z&&(h.z=a[w][v].z),a[w][v]=h;else{var b=Xt({c:v,r:w});a[b]&&a[b].z&&(h.z=a[b].z),a[b]=h}}}return c.s.c<1e7&&(a["!ref"]=Lr(c)),a}function Ms(e,r){return d1(null,e,r)}function K5(e){return e.read_shift(4,"i")}function ui(e,r){return r||(r=ke(4)),r.write_shift(4,e),r}function an(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function Ur(e,r){var t=!1;return r==null&&(t=!0,r=ke(4+2*e.length)),r.write_shift(4,e.length),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function J5(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Z5(e,r){return r||(r=ke(4)),r.write_shift(2,0),r.write_shift(2,0),r}function ac(e,r){var t=e.l,n=e.read_shift(1),i=an(e),a=[],s={t:i,h:i};if((n&1)!==0){for(var o=e.read_shift(4),f=0;f!=o;++f)a.push(J5(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function Q5(e,r){var t=!1;return r==null&&(t=!0,r=ke(15+4*e.t.length)),r.write_shift(1,0),Ur(e.t,r),t?r.slice(0,r.l):r}var eg=ac;function tg(e,r){var t=!1;return r==null&&(t=!0,r=ke(23+4*e.t.length)),r.write_shift(1,1),Ur(e.t,r),r.write_shift(4,1),Z5({},r),t?r.slice(0,r.l):r}function $n(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function Ya(e,r){return r==null&&(r=ke(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function Xa(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function $a(e,r){return r==null&&(r=ke(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var rg=an,p1=Ur;function sc(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function al(e,r){var t=!1;return r==null&&(t=!0,r=ke(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var ng=an,Wf=sc,oc=al;function g1(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var i=n===0?il([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Ia(r,0)>>2;return t?i/100:i}function m1(e,r){r==null&&(r=ke(4));var t=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,t=1),n)r.write_shift(-4,((t?i:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function v1(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function ig(e,r){return r||(r=ke(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var Ka=v1,Bs=ig;function js(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ha(e,r){return(r||ke(8)).write_shift(8,e,"f")}function ag(e){var r={},t=e.read_shift(1),n=t>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),f=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=i;var c=pg[i];c&&(r.rgb=Xu(c));break;case 2:r.rgb=Xu([s,o,f]);break;case 3:r.theme=i;break}return a!=0&&(r.tint=a>0?a/32767:a/32768),r}function sl(e,r){if(r||(r=ke(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function sg(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function og(e,r){r||(r=ke(2));var t=(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 r.write_shift(1,t),r.write_shift(1,0),r}var x1=2,kn=3,V0=11,ol=19,G0=64,lg=65,fg=71,cg=4108,ug=4126,qr=80,Bu={1:{n:"CodePage",t:x1},2:{n:"Category",t:qr},3:{n:"PresentationFormat",t:qr},4:{n:"ByteCount",t:kn},5:{n:"LineCount",t:kn},6:{n:"ParagraphCount",t:kn},7:{n:"SlideCount",t:kn},8:{n:"NoteCount",t:kn},9:{n:"HiddenCount",t:kn},10:{n:"MultimediaClipCount",t:kn},11:{n:"ScaleCrop",t:V0},12:{n:"HeadingPairs",t:cg},13:{n:"TitlesOfParts",t:ug},14:{n:"Manager",t:qr},15:{n:"Company",t:qr},16:{n:"LinksUpToDate",t:V0},17:{n:"CharacterCount",t:kn},19:{n:"SharedDoc",t:V0},22:{n:"HyperlinksChanged",t:V0},23:{n:"AppVersion",t:kn,p:"version"},24:{n:"DigSig",t:lg},26:{n:"ContentType",t:qr},27:{n:"ContentStatus",t:qr},28:{n:"Language",t:qr},29:{n:"Version",t:qr},255:{},2147483648:{n:"Locale",t:ol},2147483651:{n:"Behavior",t:ol},1919054434:{}},ju={1:{n:"CodePage",t:x1},2:{n:"Title",t:qr},3:{n:"Subject",t:qr},4:{n:"Author",t:qr},5:{n:"Keywords",t:qr},6:{n:"Comments",t:qr},7:{n:"Template",t:qr},8:{n:"LastAuthor",t:qr},9:{n:"RevNumber",t:qr},10:{n:"EditTime",t:G0},11:{n:"LastPrinted",t:G0},12:{n:"CreatedDate",t:G0},13:{n:"ModifiedDate",t:G0},14:{n:"PageCount",t:kn},15:{n:"WordCount",t:kn},16:{n:"CharCount",t:kn},17:{n:"Thumbnail",t:fg},18:{n:"Application",t:qr},19:{n:"DocSecurity",t:kn},255:{},2147483648:{n:"Locale",t:ol},2147483651:{n:"Behavior",t:ol},1919054434:{}};function hg(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var dg=hg([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]),pg=_n(dg),Yo={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},gg={"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"},Y0={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 w1(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function y1(e,r){var t=T5(gg),n=[],i;n[n.length]=Fr,n[n.length]=Ye("Types",null,{xmlns:Br.CT,"xmlns:xsd":Br.xsd,"xmlns:xsi":Br.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(f){return Ye("Default",null,{Extension:f[0],ContentType:f[1]})}));var a=function(f){e[f]&&e[f].length>0&&(i=e[f][0],n[n.length]=Ye("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Y0[f][r.bookType]||Y0[f].xlsx}))},s=function(f){(e[f]||[]).forEach(function(c){n[n.length]=Ye("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:Y0[f][r.bookType]||Y0[f].xlsx})})},o=function(f){(e[f]||[]).forEach(function(c){n[n.length]=Ye("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:t[f][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Mt={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 b1(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Cs(e){var r=[Fr,Ye("Relationships",null,{xmlns:Br.RELS})];return Xr(e["!id"]).forEach(function(t){r[r.length]=Ye("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Gt(e,r,t,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,i.Id="rId"+r,i.Type=n,i.Target=t,[Mt.HLINK,Mt.XPATH,Mt.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,r}function mg(e){var r=[Fr];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
266
+ `),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
267
+ `);for(var t=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+`"/>
268
+ `);return r.push("</manifest:manifest>"),r.join("")}function Uu(e,r,t){return[' <rdf:Description rdf:about="'+e+`">
269
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/>
270
+ `,` </rdf:Description>
271
+ `].join("")}function vg(e,r){return[' <rdf:Description rdf:about="'+e+`">
272
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/>
273
+ `,` </rdf:Description>
274
+ `].join("")}function xg(e){var r=[Fr];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
275
+ `);for(var t=0;t!=e.length;++t)r.push(Uu(e[t][0],e[t][1])),r.push(vg("",e[t][0]));return r.push(Uu("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function _1(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Z0.version+"</meta:generator></office:meta></office:document-meta>"}var Ua=[["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 _f(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=Yt(r),n[n.length]=t?Ye(e,r,t):Gr(e,r))}function S1(e,r){var t=r||{},n=[Fr,Ye("cp:coreProperties",null,{"xmlns:cp":Br.CORE_PROPS,"xmlns:dc":Br.dc,"xmlns:dcterms":Br.dcterms,"xmlns:dcmitype":Br.dcmitype,"xmlns:xsi":Br.xsi})],i={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&_f("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:zf(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&_f("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:zf(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Ua.length;++a){var s=Ua[a],o=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&_f(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ks=[["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"]],A1=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function T1(e){var r=[],t=Ye;return e||(e={}),e.Application="SheetJS",r[r.length]=Fr,r[r.length]=Ye("Properties",null,{xmlns:Br.EXT_PROPS,"xmlns:vt":Br.vt}),ks.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Yt(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(r[r.length]=t(n[0],i))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Yt(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function N1(e){var r=[Fr,Ye("Properties",null,{xmlns:Br.CUST_PROPS,"xmlns:vt":Br.vt})];if(!e)return r.join("");var t=1;return Xr(e).forEach(function(i){++t,r[r.length]=Ye("property",D5(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Yt(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var zu={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 wg(e,r){var t=[];return Xr(zu).map(function(n){for(var i=0;i<Ua.length;++i)if(Ua[i][1]==n)return Ua[i];for(i=0;i<ks.length;++i)if(ks[i][1]==n)return ks[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=r&&r.Props&&r.Props[n[1]]!=null?r.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/,"")),t.push(Gr(zu[n[1]]||n[1],i))}}),Ye("DocumentProperties",t.join(""),{xmlns:On.o})}function yg(e,r){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Xr(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<Ua.length;++s)if(a==Ua[s][1])return;for(s=0;s<ks.length;++s)if(a==ks[s][1])return;for(s=0;s<t.length;++s)if(a==t[s])return;var o=e[a],f="string";typeof o=="number"?(f="float",o=String(o)):o===!0||o===!1?(f="boolean",o=o?"1":"0"):o=String(o),i.push(Ye(Lu(a),o,{"dt:dt":f}))}}),r&&Xr(r).forEach(function(a){if(Object.prototype.hasOwnProperty.call(r,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=r[a],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),i.push(Ye(Lu(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+On.o+'">'+i.join("")+"</"+n+">"}function bg(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),i=(t-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 s=ke(8);return s.write_shift(4,n),s.write_shift(4,i),s}function Wu(e,r){var t=ke(4),n=ke(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=ke(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=bg(r);break;case 31:case 80:for(n=ke(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return Vr([t,n])}var E1=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function _g(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 Hu(e,r,t){var n=ke(8),i=[],a=[],s=8,o=0,f=ke(8),c=ke(8);if(f.write_shift(4,2),f.write_shift(4,1200),c.write_shift(4,1),a.push(f),i.push(c),s+=8+f.length,!r){c=ke(8),c.write_shift(4,0),i.unshift(c);var u=[ke(4)];for(u[0].write_shift(4,e.length),o=0;o<e.length;++o){var p=e[o][0];for(f=ke(8+2*(p.length+1)+(p.length%2?0:2)),f.write_shift(4,o+2),f.write_shift(4,p.length+1),f.write_shift(0,p,"dbcs");f.l!=f.length;)f.write_shift(1,0);u.push(f)}f=Vr(u),a.unshift(f),s+=8+f.length}for(o=0;o<e.length;++o)if(!(r&&!r[e[o][0]])&&!(E1.indexOf(e[o][0])>-1||A1.indexOf(e[o][0])>-1)&&e[o][1]!=null){var g=e[o][1],h=0;if(r){h=+r[e[o][0]];var w=t[h];if(w.p=="version"&&typeof g=="string"){var v=g.split(".");g=(+v[0]<<16)+(+v[1]||0)}f=Wu(w.t,g)}else{var b=_g(g);b==-1&&(b=31,g=String(g)),f=Wu(b,g)}a.push(f),c=ke(8),c.write_shift(4,r?h:2+o),i.push(c),s+=8+f.length}var _=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,_),_+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),Vr([n].concat(i).concat(a))}function qu(e,r,t,n,i,a){var s=ke(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Jt.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,i?68:48);var f=Hu(e,t,n);if(o.push(f),i){var c=Hu(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+f.length),o.push(c)}return Vr(o)}function Sg(e,r){r||(r=ke(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function Ag(e,r){return e.read_shift(r)===1}function un(e,r){return r||(r=ke(2)),r.write_shift(2,+!!e),r}function L1(e){return e.read_shift(2,"u")}function Xn(e,r){return r||(r=ke(2)),r.write_shift(2,e),r}function F1(e,r,t){return t||(t=ke(2)),t.write_shift(1,r=="e"?+e:+!!e),t.write_shift(1,r=="e"?1:0),t}function C1(e,r,t){var n=e.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function Tg(e){var r=e.t||"",t=ke(3);t.write_shift(2,r.length),t.write_shift(1,1);var n=ke(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[t,n];return Vr(i)}function Ng(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function Eg(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):Ng(e,n,t)}function Lg(e,r,t){if(t.biff>5)return Eg(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function k1(e,r,t){return t||(t=ke(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function Vu(e,r){r||(r=ke(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t<e.length;++t)r.write_shift(2,e.charCodeAt(t));return r.write_shift(2,0),r}function Fg(e){var r=ke(512),t=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}r.write_shift(4,2),r.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r.write_shift(4,s[t]);if(a==28)n=n.slice(1),Vu(n,r);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));var o=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(o.length+1)),t=0;t<o.length;++t)r.write_shift(2,o.charCodeAt(t));r.write_shift(2,0),a&8&&Vu(i>-1?n.slice(i+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));for(var f=0;n.slice(f*3,f*3+3)=="../"||n.slice(f*3,f*3+3)=="..\\";)++f;for(r.write_shift(2,f),r.write_shift(4,n.length-3*f+1),t=0;t<n.length-3*f;++t)r.write_shift(1,n.charCodeAt(t+3*f)&255);for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),t=0;t<6;++t)r.write_shift(4,0)}return r.slice(0,r.l)}function qa(e,r,t,n){return n||(n=ke(6)),n.write_shift(2,e),n.write_shift(2,r),n.write_shift(2,t||0),n}function Cg(e,r,t){var n=t.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function kg(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r},e:{c:i,r:t}}}function P1(e,r){return r||(r=ke(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function lc(e,r,t){var n=1536,i=16;switch(t.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=ke(i);return a.write_shift(2,n),a.write_shift(2,r),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 Pg(e,r){var t=!r||r.biff==8,n=ke(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}function Og(e,r){var t=!r||r.biff>=8?2:1,n=ke(8+t*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),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function Ig(e,r){var t=ke(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=Tg(e[i]);var a=Vr([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function Rg(){var e=ke(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 Dg(e){var r=ke(18),t=1718;return e&&e.RTL&&(t|=64),r.write_shift(2,t),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function Mg(e,r){var t=e.name||"Arial",n=r&&r.biff==5,i=n?15+t.length:16+2*t.length,a=ke(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,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),a}function Bg(e,r,t,n){var i=ke(10);return qa(e,r,n,i),i.write_shift(4,t),i}function jg(e,r,t,n,i){var a=!i||i.biff==8,s=ke(8+ +a+(1+a)*t.length);return qa(e,r,n,s),s.write_shift(2,t.length),a&&s.write_shift(1,1),s.write_shift((1+a)*t.length,t,a?"utf16le":"sbcs"),s}function Ug(e,r,t,n){var i=t&&t.biff==5;n||(n=ke(i?3+r.length:5+2*r.length)),n.write_shift(2,e),n.write_shift(i?1:2,r.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*r.length,r,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 zg(e,r){var t=r.biff==8||!r.biff?4:2,n=ke(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,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 Gu(e,r,t,n){var i=t&&t.biff==5;n||(n=ke(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,r<<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 Wg(e){var r=ke(8);return r.write_shift(4,0),r.write_shift(2,0),r.write_shift(2,0),r}function Hg(e,r,t,n,i,a){var s=ke(8);return qa(e,r,n,s),F1(t,a,s),s}function qg(e,r,t,n){var i=ke(14);return qa(e,r,n,i),Ha(t,i),i}function Vg(e,r,t){if(t.biff<8)return Gg(e,r,t);for(var n=[],i=e.l+r,a=e.read_shift(t.biff>8?4:2);a--!==0;)n.push(Cg(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function Gg(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=C1(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function Yg(e){var r=ke(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)P1(e[t],r);return r}function Xg(e){var r=ke(24),t=jr(e[0]);r.write_shift(2,t.r),r.write_shift(2,t.r),r.write_shift(2,t.c),r.write_shift(2,t.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)r.write_shift(1,parseInt(n[i],16));return Vr([r,Fg(e[1])])}function $g(e){var r=e[1].Tooltip,t=ke(10+2*(r.length+1));t.write_shift(2,2048);var n=jr(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var i=0;i<r.length;++i)t.write_shift(2,r.charCodeAt(i));return t.write_shift(2,0),t}function Kg(e){return e||(e=ke(4)),e.write_shift(2,1),e.write_shift(2,1),e}function Jg(e,r,t){if(!t.cellStyles)return Ni(e,r);var n=t&&t.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),f=e.read_shift(2);n==2&&(e.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:f};return(t.biff>=5||!t.biff)&&(c.level=f>>8&7),c}function Zg(e,r){var t=ke(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function Qg(e){for(var r=ke(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}function em(e,r,t){var n=ke(15);return $o(n,e,r),n.write_shift(8,t,"f"),n}function tm(e,r,t){var n=ke(9);return $o(n,e,r),n.write_shift(2,t),n}var rm=(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},r=Jf({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 t(o,f){var c=[],u=Wa(1);switch(f.type){case"base64":u=fi(qi(o));break;case"binary":u=fi(o);break;case"buffer":case"array":u=o;break}Pn(u,0);var p=u.read_shift(1),g=!!(p&136),h=!1,w=!1;switch(p){case 2:break;case 3:break;case 48:h=!0,g=!0;break;case 49:h=!0,g=!0;break;case 131:break;case 139:break;case 140:w=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var v=0,b=521;p==2&&(v=u.read_shift(2)),u.l+=3,p!=2&&(v=u.read_shift(4)),v>1048576&&(v=1e6),p!=2&&(b=u.read_shift(2));var _=u.read_shift(2),S=f.codepage||1252;p!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(S=e[u[u.l]]),u.l+=1,u.l+=2),w&&(u.l+=36);for(var A=[],k={},M=Math.min(u.length,p==2?521:b-10-(h?264:0)),K=w?32:11;u.l<M&&u[u.l]!=13;)switch(k={},k.name=Q0.utils.decode(S,u.slice(u.l,u.l+K)).replace(/[\u0000\r\n].*$/g,""),u.l+=K,k.type=String.fromCharCode(u.read_shift(1)),p!=2&&!w&&(k.offset=u.read_shift(4)),k.len=u.read_shift(1),p==2&&(k.offset=u.read_shift(2)),k.dec=u.read_shift(1),k.name.length&&A.push(k),p!=2&&(u.l+=w?13:14),k.type){case"B":(!h||k.len!=8)&&f.WTF&&console.log("Skipping "+k.name+":"+k.type);break;case"G":case"P":f.WTF&&console.log("Skipping "+k.name+":"+k.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: "+k.type)}if(u[u.l]!==13&&(u.l=b-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=b;var F=0,P=0;for(c[0]=[],P=0;P!=A.length;++P)c[0][P]=A[P].name;for(;v-- >0;){if(u[u.l]===42){u.l+=_;continue}for(++u.l,c[++F]=[],P=0,P=0;P!=A.length;++P){var D=u.slice(u.l,u.l+A[P].len);u.l+=A[P].len,Pn(D,0);var V=Q0.utils.decode(S,D);switch(A[P].type){case"C":V.trim().length&&(c[F][P]=V.replace(/\s+$/,""));break;case"D":V.length===8?c[F][P]=new Date(+V.slice(0,4),+V.slice(4,6)-1,+V.slice(6,8)):c[F][P]=V;break;case"F":c[F][P]=parseFloat(V.trim());break;case"+":case"I":c[F][P]=w?D.read_shift(-4,"i")^2147483648:D.read_shift(4,"i");break;case"L":switch(V.trim().toUpperCase()){case"Y":case"T":c[F][P]=!0;break;case"N":case"F":c[F][P]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+V+"|")}break;case"M":if(!g)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));c[F][P]="##MEMO##"+(w?parseInt(V.trim(),10):D.read_shift(4));break;case"N":V=V.replace(/\u0000/g,"").trim(),V&&V!="."&&(c[F][P]=+V||0);break;case"@":c[F][P]=new Date(D.read_shift(-8,"f")-621356832e5);break;case"T":c[F][P]=new Date((D.read_shift(4)-2440588)*864e5+D.read_shift(4));break;case"Y":c[F][P]=D.read_shift(4,"i")/1e4+D.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[F][P]=-D.read_shift(-8,"f");break;case"B":if(h&&A[P].len==8){c[F][P]=D.read_shift(8,"f");break}case"G":case"P":D.l+=A[P].len;break;case"0":if(A[P].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+A[P].type)}}}if(p!=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 f&&f.sheetRows&&(c=c.slice(0,f.sheetRows)),f.DBF=A,c}function n(o,f){var c=f||{};c.dateNF||(c.dateNF="yyyymmdd");var u=Ms(t(o,c),c);return u["!cols"]=c.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete c.DBF,u}function i(o,f){try{return Ga(n(o,f),f)}catch(c){if(f&&f.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,f){var c=f||{};if(+c.codepage>=0&&Mo(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=yn(),p=hl(o,{header:1,raw:!0,cellDates:!0}),g=p[0],h=p.slice(1),w=o["!cols"]||[],v=0,b=0,_=0,S=1;for(v=0;v<g.length;++v){if(((w[v]||{}).DBF||{}).name){g[v]=w[v].DBF.name,++_;continue}if(g[v]!=null){if(++_,typeof g[v]=="number"&&(g[v]=g[v].toString(10)),typeof g[v]!="string")throw new Error("DBF Invalid column name "+g[v]+" |"+typeof g[v]+"|");if(g.indexOf(g[v])!==v){for(b=0;b<1024;++b)if(g.indexOf(g[v]+"_"+b)==-1){g[v]+="_"+b;break}}}}var A=lr(o["!ref"]),k=[],M=[],K=[];for(v=0;v<=A.e.c-A.s.c;++v){var F="",P="",D=0,V=[];for(b=0;b<h.length;++b)h[b][v]!=null&&V.push(h[b][v]);if(V.length==0||g[v]==null){k[v]="?";continue}for(b=0;b<V.length;++b){switch(typeof V[b]){case"number":P="B";break;case"string":P="C";break;case"boolean":P="L";break;case"object":P=V[b]instanceof Date?"D":"C";break;default:P="C"}D=Math.max(D,String(V[b]).length),F=F&&F!=P?"C":P}D>250&&(D=250),P=((w[v]||{}).DBF||{}).type,P=="C"&&w[v].DBF.len>D&&(D=w[v].DBF.len),F=="B"&&P=="N"&&(F="N",K[v]=w[v].DBF.dec,D=w[v].DBF.len),M[v]=F=="C"||P=="N"?D:a[F]||0,S+=M[v],k[v]=F}var E=u.next(32);for(E.write_shift(4,318902576),E.write_shift(4,h.length),E.write_shift(2,296+32*_),E.write_shift(2,S),v=0;v<4;++v)E.write_shift(4,0);for(E.write_shift(4,0|(+r[Ih]||3)<<8),v=0,b=0;v<g.length;++v)if(g[v]!=null){var T=u.next(32),z=(g[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T.write_shift(1,z,"sbcs"),T.write_shift(1,k[v]=="?"?"C":k[v],"sbcs"),T.write_shift(4,b),T.write_shift(1,M[v]||a[k[v]]||0),T.write_shift(1,K[v]||0),T.write_shift(1,2),T.write_shift(4,0),T.write_shift(1,0),T.write_shift(4,0),T.write_shift(4,0),b+=M[v]||a[k[v]]||0}var Y=u.next(264);for(Y.write_shift(4,13),v=0;v<65;++v)Y.write_shift(4,0);for(v=0;v<h.length;++v){var ue=u.next(S);for(ue.write_shift(1,0),b=0;b<g.length;++b)if(g[b]!=null)switch(k[b]){case"L":ue.write_shift(1,h[v][b]==null?63:h[v][b]?84:70);break;case"B":ue.write_shift(8,h[v][b]||0,"f");break;case"N":var Q="0";for(typeof h[v][b]=="number"&&(Q=h[v][b].toFixed(K[b]||0)),_=0;_<M[b]-Q.length;++_)ue.write_shift(1,32);ue.write_shift(1,Q,"sbcs");break;case"D":h[v][b]?(ue.write_shift(4,("0000"+h[v][b].getFullYear()).slice(-4),"sbcs"),ue.write_shift(2,("00"+(h[v][b].getMonth()+1)).slice(-2),"sbcs"),ue.write_shift(2,("00"+h[v][b].getDate()).slice(-2),"sbcs")):ue.write_shift(8,"00000000","sbcs");break;case"C":var J=String(h[v][b]!=null?h[v][b]:"").slice(0,M[b]);for(ue.write_shift(1,J,"sbcs"),_=0;_<M[b]-J.length;++_)ue.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}})(),nm=(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},r=new RegExp("\x1BN("+Xr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(g,h){var w=e[h];return typeof w=="number"?mu(w):w},n=function(g,h,w){var v=h.charCodeAt(0)-32<<4|w.charCodeAt(0)-48;return v==59?g:mu(v)};e["|"]=254;function i(g,h){switch(h.type){case"base64":return a(qi(g),h);case"binary":return a(g,h);case"buffer":return a(jt&&Buffer.isBuffer(g)?g.toString("binary"):qo(g),h);case"array":return a(yl(g),h)}throw new Error("Unrecognized type "+h.type)}function a(g,h){var w=g.split(/[\n\r]+/),v=-1,b=-1,_=0,S=0,A=[],k=[],M=null,K={},F=[],P=[],D=[],V=0,E;for(+h.codepage>=0&&Mo(+h.codepage);_!==w.length;++_){V=0;var T=w[_].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),z=T.replace(/;;/g,"\0").split(";").map(function(O){return O.replace(/\u0000/g,";")}),Y=z[0],ue;if(T.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":z[1].charAt(0)=="P"&&k.push(T.slice(3).replace(/;;/g,";"));break;case"C":var Q=!1,J=!1,oe=!1,te=!1,pe=-1,ie=-1;for(S=1;S<z.length;++S)switch(z[S].charAt(0)){case"A":break;case"X":b=parseInt(z[S].slice(1))-1,J=!0;break;case"Y":for(v=parseInt(z[S].slice(1))-1,J||(b=0),E=A.length;E<=v;++E)A[E]=[];break;case"K":ue=z[S].slice(1),ue.charAt(0)==='"'?ue=ue.slice(1,ue.length-1):ue==="TRUE"?ue=!0:ue==="FALSE"?ue=!1:isNaN(Wi(ue))?isNaN(jo(ue).getDate())||(ue=hn(ue)):(ue=Wi(ue),M!==null&&Gh(M)&&(ue=Kh(ue))),Q=!0;break;case"E":te=!0;var y=tv(z[S].slice(1),{r:v,c:b});A[v][b]=[A[v][b],y];break;case"S":oe=!0,A[v][b]=[A[v][b],"S5S"];break;case"G":break;case"R":pe=parseInt(z[S].slice(1))-1;break;case"C":ie=parseInt(z[S].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+T)}if(Q&&(A[v][b]&&A[v][b].length==2?A[v][b][0]=ue:A[v][b]=ue,M=null),oe){if(te)throw new Error("SYLK shared formula cannot have own formula");var L=pe>-1&&A[pe][ie];if(!L||!L[1])throw new Error("SYLK shared formula cannot find base");A[v][b][1]=rv(L[1],{r:v-pe,c:b-ie})}break;case"F":var C=0;for(S=1;S<z.length;++S)switch(z[S].charAt(0)){case"X":b=parseInt(z[S].slice(1))-1,++C;break;case"Y":for(v=parseInt(z[S].slice(1))-1,E=A.length;E<=v;++E)A[E]=[];break;case"M":V=parseInt(z[S].slice(1))/20;break;case"F":break;case"G":break;case"P":M=k[parseInt(z[S].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(D=z[S].slice(1).split(" "),E=parseInt(D[0],10);E<=parseInt(D[1],10);++E)V=parseInt(D[2],10),P[E-1]=V===0?{hidden:!0}:{wch:V},fc(P[E-1]);break;case"C":b=parseInt(z[S].slice(1))-1,P[b]||(P[b]={});break;case"R":v=parseInt(z[S].slice(1))-1,F[v]||(F[v]={}),V>0?(F[v].hpt=V,F[v].hpx=M1(V)):V===0&&(F[v].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+T)}C<1&&(M=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+T)}}return F.length>0&&(K["!rows"]=F),P.length>0&&(K["!cols"]=P),h&&h.sheetRows&&(A=A.slice(0,h.sheetRows)),[A,K]}function s(g,h){var w=i(g,h),v=w[0],b=w[1],_=Ms(v,h);return Xr(b).forEach(function(S){_[S]=b[S]}),_}function o(g,h){return Ga(s(g,h),h)}function f(g,h,w,v){var b="C;Y"+(w+1)+";X"+(v+1)+";K";switch(g.t){case"n":b+=g.v||0,g.f&&!g.F&&(b+=";E"+uc(g.f,{r:w,c:v}));break;case"b":b+=g.v?"TRUE":"FALSE";break;case"e":b+=g.w||g.v;break;case"d":b+='"'+(g.w||g.v)+'"';break;case"s":b+='"'+g.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return b}function c(g,h){h.forEach(function(w,v){var b="F;W"+(v+1)+" "+(v+1)+" ";w.hidden?b+="0":(typeof w.width=="number"&&!w.wpx&&(w.wpx=ll(w.width)),typeof w.wpx=="number"&&!w.wch&&(w.wch=fl(w.wpx)),typeof w.wch=="number"&&(b+=Math.round(w.wch))),b.charAt(b.length-1)!=" "&&g.push(b)})}function u(g,h){h.forEach(function(w,v){var b="F;";w.hidden?b+="M0;":w.hpt?b+="M"+20*w.hpt+";":w.hpx&&(b+="M"+20*cl(w.hpx)+";"),b.length>2&&g.push(b+"R"+(v+1))})}function p(g,h){var w=["ID;PWXL;N;E"],v=[],b=lr(g["!ref"]),_,S=Array.isArray(g),A=`\r
276
+ `;w.push("P;PGeneral"),w.push("F;P0;DG0G8;M255"),g["!cols"]&&c(w,g["!cols"]),g["!rows"]&&u(w,g["!rows"]),w.push("B;Y"+(b.e.r-b.s.r+1)+";X"+(b.e.c-b.s.c+1)+";D"+[b.s.c,b.s.r,b.e.c,b.e.r].join(" "));for(var k=b.s.r;k<=b.e.r;++k)for(var M=b.s.c;M<=b.e.c;++M){var K=Xt({r:k,c:M});_=S?(g[k]||[])[M]:g[K],!(!_||_.v==null&&(!_.f||_.F))&&v.push(f(_,g,k,M))}return w.join(A)+A+v.join(A)+A+"E"+A}return{to_workbook:o,to_sheet:s,from_sheet:p}})(),im=(function(){function e(a,s){switch(s.type){case"base64":return r(qi(a),s);case"binary":return r(a,s);case"buffer":return r(jt&&Buffer.isBuffer(a)?a.toString("binary"):qo(a),s);case"array":return r(yl(a),s)}throw new Error("Unrecognized type "+s.type)}function r(a,s){for(var o=a.split(`
277
+ `),f=-1,c=-1,u=0,p=[];u!==o.length;++u){if(o[u].trim()==="BOT"){p[++f]=[],c=0;continue}if(!(f<0)){var g=o[u].trim().split(","),h=g[0],w=g[1];++u;for(var v=o[u]||"";(v.match(/["]/g)||[]).length&1&&u<o.length-1;)v+=`
278
+ `+o[++u];switch(v=v.trim(),+h){case-1:if(v==="BOT"){p[++f]=[],c=0;continue}else if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?p[f][c]=!0:v==="FALSE"?p[f][c]=!1:isNaN(Wi(w))?isNaN(jo(w).getDate())?p[f][c]=w:p[f][c]=hn(w):p[f][c]=Wi(w),++c;break;case 1:v=v.slice(1,v.length-1),v=v.replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),p[f][c++]=v!==""?v:null;break}if(v==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function t(a,s){return Ms(e(a,s),s)}function n(a,s){return Ga(t(a,s),s)}var i=(function(){var a=function(f,c,u,p,g){f.push(c),f.push(u+","+p),f.push('"'+g.replace(/"/g,'""')+'"')},s=function(f,c,u,p){f.push(c+","+u),f.push(c==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(f){var c=[],u=lr(f["!ref"]),p,g=Array.isArray(f);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){s(c,-1,0,"BOT");for(var w=u.s.c;w<=u.e.c;++w){var v=Xt({r:h,c:w});if(p=g?(f[h]||[])[w]:f[v],!p){s(c,1,0,"");continue}switch(p.t){case"n":var b=p.w;!b&&p.v!=null&&(b=p.v),b==null?p.f&&!p.F?s(c,1,0,"="+p.f):s(c,1,0,""):s(c,0,b,"V");break;case"b":s(c,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(c,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=wa(p.z||gr[14],bn(hn(p.v)))),s(c,0,p.w,"V");break;default:s(c,1,0,"")}}}s(c,-1,0,"EOD");var _=`\r
279
+ `,S=c.join(_);return S}})();return{to_workbook:n,to_sheet:t,from_sheet:i}})(),O1=(function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
280
+ `)}function r(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(p,g){for(var h=p.split(`
281
+ `),w=-1,v=-1,b=0,_=[];b!==h.length;++b){var S=h[b].trim().split(":");if(S[0]==="cell"){var A=jr(S[1]);if(_.length<=A.r)for(w=_.length;w<=A.r;++w)_[w]||(_[w]=[]);switch(w=A.r,v=A.c,S[2]){case"t":_[w][v]=e(S[3]);break;case"v":_[w][v]=+S[3];break;case"vtf":var k=S[S.length-1];case"vtc":switch(S[3]){case"nl":_[w][v]=!!+S[4];break;default:_[w][v]=+S[4];break}S[2]=="vtf"&&(_[w][v]=[_[w][v],k])}}}return g&&g.sheetRows&&(_=_.slice(0,g.sheetRows)),_}function n(p,g){return Ms(t(p,g),g)}function i(p,g){return Ga(n(p,g),g)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
282
+ `),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
283
+ `)+`
284
+ `,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
285
+ `),f="--SocialCalcSpreadsheetControlSave--";function c(p){if(!p||!p["!ref"])return"";for(var g=[],h=[],w,v="",b=Dn(p["!ref"]),_=Array.isArray(p),S=b.s.r;S<=b.e.r;++S)for(var A=b.s.c;A<=b.e.c;++A)if(v=Xt({r:S,c:A}),w=_?(p[S]||[])[A]:p[v],!(!w||w.v==null||w.t==="z")){switch(h=["cell",v,"t"],w.t){case"s":case"str":h.push(r(w.v));break;case"n":w.f?(h[2]="vtf",h[3]="n",h[4]=w.v,h[5]=r(w.f)):(h[2]="v",h[3]=w.v);break;case"b":h[2]="vt"+(w.f?"f":"c"),h[3]="nl",h[4]=w.v?"1":"0",h[5]=r(w.f||(w.v?"TRUE":"FALSE"));break;case"d":var k=bn(hn(w.v));h[2]="vtc",h[3]="nd",h[4]=""+k,h[5]=w.w||wa(w.z||gr[14],k);break;case"e":continue}g.push(h.join(":"))}return g.push("sheet:c:"+(b.e.c-b.s.c+1)+":r:"+(b.e.r-b.s.r+1)+":tvf:1"),g.push("valueformat:1:text-wiki"),g.join(`
286
+ `)}function u(p){return[a,s,o,s,c(p),f].join(`
287
+ `)}return{to_workbook:i,to_sheet:n,from_sheet:u}})(),am=(function(){function e(u,p,g,h,w){w.raw?p[g][h]=u:u===""||(u==="TRUE"?p[g][h]=!0:u==="FALSE"?p[g][h]=!1:isNaN(Wi(u))?isNaN(jo(u).getDate())?p[g][h]=u:p[g][h]=hn(u):p[g][h]=Wi(u))}function r(u,p){var g=p||{},h=[];if(!u||u.length===0)return h;for(var w=u.split(/[\r\n]/),v=w.length-1;v>=0&&w[v].length===0;)--v;for(var b=10,_=0,S=0;S<=v;++S)_=w[S].indexOf(" "),_==-1?_=w[S].length:_++,b=Math.max(b,_);for(S=0;S<=v;++S){h[S]=[];var A=0;for(e(w[S].slice(0,b).trim(),h,S,A,g),A=1;A<=(w[S].length-b)/10+1;++A)e(w[S].slice(b+(A-1)*10,b+A*10).trim(),h,S,A,g)}return g.sheetRows&&(h=h.slice(0,g.sheetRows)),h}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(u){for(var p={},g=!1,h=0,w=0;h<u.length;++h)(w=u.charCodeAt(h))==34?g=!g:!g&&w in t&&(p[w]=(p[w]||0)+1);w=[];for(h in p)Object.prototype.hasOwnProperty.call(p,h)&&w.push([p[h],h]);if(!w.length){p=n;for(h in p)Object.prototype.hasOwnProperty.call(p,h)&&w.push([p[h],h])}return w.sort(function(v,b){return v[0]-b[0]||n[v[1]]-n[b[1]]}),t[w.pop()[1]]||44}function a(u,p){var g=p||{},h="",w=g.dense?[]:{},v={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)):g&&g.FS?h=g.FS:h=i(u.slice(0,1024));var b=0,_=0,S=0,A=0,k=0,M=h.charCodeAt(0),K=!1,F=0,P=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
288
+ `);var D=g.dateNF!=null?b5(g.dateNF):null;function V(){var E=u.slice(A,k),T={};if(E.charAt(0)=='"'&&E.charAt(E.length-1)=='"'&&(E=E.slice(1,-1).replace(/""/g,'"')),E.length===0)T.t="z";else if(g.raw)T.t="s",T.v=E;else if(E.trim().length===0)T.t="s",T.v=E;else if(E.charCodeAt(0)==61)E.charCodeAt(1)==34&&E.charCodeAt(E.length-1)==34?(T.t="s",T.v=E.slice(2,-1).replace(/""/g,'"')):nv(E)?(T.t="n",T.f=E.slice(1)):(T.t="s",T.v=E);else if(E=="TRUE")T.t="b",T.v=!0;else if(E=="FALSE")T.t="b",T.v=!1;else if(!isNaN(S=Wi(E)))T.t="n",g.cellText!==!1&&(T.w=E),T.v=S;else if(!isNaN(jo(E).getDate())||D&&E.match(D)){T.z=g.dateNF||gr[14];var z=0;D&&E.match(D)&&(E=_5(E,g.dateNF,E.match(D)||[]),z=1),g.cellDates?(T.t="d",T.v=hn(E,z)):(T.t="n",T.v=bn(hn(E,z))),g.cellText!==!1&&(T.w=wa(T.z,T.v instanceof Date?bn(T.v):T.v)),g.cellNF||delete T.z}else T.t="s",T.v=E;if(T.t=="z"||(g.dense?(w[b]||(w[b]=[]),w[b][_]=T):w[Xt({c:_,r:b})]=T),A=k+1,P=u.charCodeAt(A),v.e.c<_&&(v.e.c=_),v.e.r<b&&(v.e.r=b),F==M)++_;else if(_=0,++b,g.sheetRows&&g.sheetRows<=b)return!0}e:for(;k<u.length;++k)switch(F=u.charCodeAt(k)){case 34:P===34&&(K=!K);break;case M:case 10:case 13:if(!K&&V())break e;break}return k-A>0&&V(),w["!ref"]=Lr(v),w}function s(u,p){return!(p&&p.PRN)||p.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,p):Ms(r(u,p),p)}function o(u,p){var g="",h=p.type=="string"?[0,0,0,0]:vw(u,p);switch(p.type){case"base64":g=qi(u);break;case"binary":g=u;break;case"buffer":p.codepage==65001?g=u.toString("utf8"):p.codepage&&typeof Q0<"u"||(g=jt&&Buffer.isBuffer(u)?u.toString("binary"):qo(u));break;case"array":g=yl(u);break;case"string":g=u;break;default:throw new Error("Unrecognized type "+p.type)}return h[0]==239&&h[1]==187&&h[2]==191?g=Co(g.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?g=Co(g):p.type=="binary"&&typeof Q0<"u",g.slice(0,19)=="socialcalc:version:"?O1.to_sheet(p.type=="string"?g:Co(g),p):s(g,p)}function f(u,p){return Ga(o(u,p),p)}function c(u){for(var p=[],g=lr(u["!ref"]),h,w=Array.isArray(u),v=g.s.r;v<=g.e.r;++v){for(var b=[],_=g.s.c;_<=g.e.c;++_){var S=Xt({r:v,c:_});if(h=w?(u[v]||[])[_]:u[S],!h||h.v==null){b.push(" ");continue}for(var A=(h.w||(Vi(h),h.w)||"").slice(0,10);A.length<10;)A+=" ";b.push(A+(_===0?" ":""))}p.push(b.join(""))}return p.join(`
289
+ `)}return{to_workbook:f,to_sheet:o,from_sheet:c}})(),Yu=(function(){function e(y,L,C){if(y){Pn(y,y.l||0);for(var O=C.Enum||pe;y.l<y.length;){var H=y.read_shift(2),fe=O[H]||O[65535],ce=y.read_shift(2),he=y.l+ce,we=fe.f&&fe.f(y,ce,C);if(y.l=he,L(we,fe,H))return}}}function r(y,L){switch(L.type){case"base64":return t(fi(qi(y)),L);case"binary":return t(fi(y),L);case"buffer":case"array":return t(y,L)}throw"Unsupported type "+L.type}function t(y,L){if(!y)return y;var C=L||{},O=C.dense?[]:{},H="Sheet1",fe="",ce=0,he={},we=[],Pe=[],De={s:{r:0,c:0},e:{r:0,c:0}},He=C.sheetRows||0;if(y[2]==0&&(y[3]==8||y[3]==9)&&y.length>=16&&y[14]==5&&y[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(y[2]==2)C.Enum=pe,e(y,function(Me,nt,Ue){switch(Ue){case 0:C.vers=Me,Me>=4096&&(C.qpro=!0);break;case 6:De=Me;break;case 204:Me&&(fe=Me);break;case 222:fe=Me;break;case 15:case 51:C.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=C.dateNF||gr[14],C.cellDates&&(Me[1].t="d",Me[1].v=Kh(Me[1].v))),C.qpro&&Me[3]>ce&&(O["!ref"]=Lr(De),he[H]=O,we.push(H),O=C.dense?[]:{},De={s:{r:0,c:0},e:{r:0,c:0}},ce=Me[3],H=fe||"Sheet"+(ce+1),fe="");var Ve=C.dense?(O[Me[0].r]||[])[Me[0].c]:O[Xt(Me[0])];if(Ve){Ve.t=Me[1].t,Ve.v=Me[1].v,Me[1].z!=null&&(Ve.z=Me[1].z),Me[1].f!=null&&(Ve.f=Me[1].f);break}C.dense?(O[Me[0].r]||(O[Me[0].r]=[]),O[Me[0].r][Me[0].c]=Me[1]):O[Xt(Me[0])]=Me[1];break}},C);else if(y[2]==26||y[2]==14)C.Enum=ie,y[2]==14&&(C.qpro=!0,y.l=0),e(y,function(Me,nt,Ue){switch(Ue){case 204:H=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]>ce&&(O["!ref"]=Lr(De),he[H]=O,we.push(H),O=C.dense?[]:{},De={s:{r:0,c:0},e:{r:0,c:0}},ce=Me[3],H="Sheet"+(ce+1)),He>0&&Me[0].r>=He)break;C.dense?(O[Me[0].r]||(O[Me[0].r]=[]),O[Me[0].r][Me[0].c]=Me[1]):O[Xt(Me[0])]=Me[1],De.e.c<Me[0].c&&(De.e.c=Me[0].c),De.e.r<Me[0].r&&(De.e.r=Me[0].r);break;case 27:Me[14e3]&&(Pe[Me[14e3][0]]=Me[14e3][1]);break;case 1537:Pe[Me[0]]=Me[1],Me[0]==ce&&(H=Me[1]);break}},C);else throw new Error("Unrecognized LOTUS BOF "+y[2]);if(O["!ref"]=Lr(De),he[fe||H]=O,we.push(fe||H),!Pe.length)return{SheetNames:we,Sheets:he};for(var $e={},Ee=[],le=0;le<Pe.length;++le)he[we[le]]?(Ee.push(Pe[le]||we[le]),$e[Pe[le]]=he[Pe[le]]||he[we[le]]):(Ee.push(Pe[le]),$e[Pe[le]]={"!ref":"A1"});return{SheetNames:Ee,Sheets:$e}}function n(y,L){var C=L||{};if(+C.codepage>=0&&Mo(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var O=yn(),H=lr(y["!ref"]),fe=Array.isArray(y),ce=[];Xe(O,0,a(1030)),Xe(O,6,f(H));for(var he=Math.min(H.e.r,8191),we=H.s.r;we<=he;++we)for(var Pe=Yr(we),De=H.s.c;De<=H.e.c;++De){we===H.s.r&&(ce[De]=nn(De));var He=ce[De]+Pe,$e=fe?(y[we]||[])[De]:y[He];if(!(!$e||$e.t=="z"))if($e.t=="n")($e.v|0)==$e.v&&$e.v>=-32768&&$e.v<=32767?Xe(O,13,h(we,De,$e.v)):Xe(O,14,v(we,De,$e.v));else{var Ee=Vi($e);Xe(O,15,p(we,De,Ee.slice(0,239)))}}return Xe(O,1),O.end()}function i(y,L){var C=L||{};if(+C.codepage>=0&&Mo(+C.codepage),C.type=="string")throw new Error("Cannot write WK3 to JS string");var O=yn();Xe(O,0,s(y));for(var H=0,fe=0;H<y.SheetNames.length;++H)(y.Sheets[y.SheetNames[H]]||{})["!ref"]&&Xe(O,27,te(y.SheetNames[H],fe++));var ce=0;for(H=0;H<y.SheetNames.length;++H){var he=y.Sheets[y.SheetNames[H]];if(!(!he||!he["!ref"])){for(var we=lr(he["!ref"]),Pe=Array.isArray(he),De=[],He=Math.min(we.e.r,8191),$e=we.s.r;$e<=He;++$e)for(var Ee=Yr($e),le=we.s.c;le<=we.e.c;++le){$e===we.s.r&&(De[le]=nn(le));var Me=De[le]+Ee,nt=Pe?(he[$e]||[])[le]:he[Me];if(!(!nt||nt.t=="z"))if(nt.t=="n")Xe(O,23,V($e,le,ce,nt.v));else{var Ue=Vi(nt);Xe(O,22,F($e,le,ce,Ue.slice(0,239)))}}++ce}}return Xe(O,1),O.end()}function a(y){var L=ke(2);return L.write_shift(2,y),L}function s(y){var L=ke(26);L.write_shift(2,4096),L.write_shift(2,4),L.write_shift(4,0);for(var C=0,O=0,H=0,fe=0;fe<y.SheetNames.length;++fe){var ce=y.SheetNames[fe],he=y.Sheets[ce];if(!(!he||!he["!ref"])){++H;var we=Dn(he["!ref"]);C<we.e.r&&(C=we.e.r),O<we.e.c&&(O=we.e.c)}}return C>8191&&(C=8191),L.write_shift(2,C),L.write_shift(1,H),L.write_shift(1,O),L.write_shift(2,0),L.write_shift(2,0),L.write_shift(1,1),L.write_shift(1,2),L.write_shift(4,0),L.write_shift(4,0),L}function o(y,L,C){var O={s:{c:0,r:0},e:{c:0,r:0}};return L==8&&C.qpro?(O.s.c=y.read_shift(1),y.l++,O.s.r=y.read_shift(2),O.e.c=y.read_shift(1),y.l++,O.e.r=y.read_shift(2),O):(O.s.c=y.read_shift(2),O.s.r=y.read_shift(2),L==12&&C.qpro&&(y.l+=2),O.e.c=y.read_shift(2),O.e.r=y.read_shift(2),L==12&&C.qpro&&(y.l+=2),O.s.c==65535&&(O.s.c=O.e.c=O.s.r=O.e.r=0),O)}function f(y){var L=ke(8);return L.write_shift(2,y.s.c),L.write_shift(2,y.s.r),L.write_shift(2,y.e.c),L.write_shift(2,y.e.r),L}function c(y,L,C){var O=[{c:0,r:0},{t:"n",v:0},0,0];return C.qpro&&C.vers!=20768?(O[0].c=y.read_shift(1),O[3]=y.read_shift(1),O[0].r=y.read_shift(2),y.l+=2):(O[2]=y.read_shift(1),O[0].c=y.read_shift(2),O[0].r=y.read_shift(2)),O}function u(y,L,C){var O=y.l+L,H=c(y,L,C);if(H[1].t="s",C.vers==20768){y.l++;var fe=y.read_shift(1);return H[1].v=y.read_shift(fe,"utf8"),H}return C.qpro&&y.l++,H[1].v=y.read_shift(O-y.l,"cstr"),H}function p(y,L,C){var O=ke(7+C.length);O.write_shift(1,255),O.write_shift(2,L),O.write_shift(2,y),O.write_shift(1,39);for(var H=0;H<O.length;++H){var fe=C.charCodeAt(H);O.write_shift(1,fe>=128?95:fe)}return O.write_shift(1,0),O}function g(y,L,C){var O=c(y,L,C);return O[1].v=y.read_shift(2,"i"),O}function h(y,L,C){var O=ke(7);return O.write_shift(1,255),O.write_shift(2,L),O.write_shift(2,y),O.write_shift(2,C,"i"),O}function w(y,L,C){var O=c(y,L,C);return O[1].v=y.read_shift(8,"f"),O}function v(y,L,C){var O=ke(13);return O.write_shift(1,255),O.write_shift(2,L),O.write_shift(2,y),O.write_shift(8,C,"f"),O}function b(y,L,C){var O=y.l+L,H=c(y,L,C);if(H[1].v=y.read_shift(8,"f"),C.qpro)y.l=O;else{var fe=y.read_shift(2);k(y.slice(y.l,y.l+fe),H),y.l+=fe}return H}function _(y,L,C){var O=L&32768;return L&=-32769,L=(O?y:0)+(L>=8192?L-16384:L),(O?"":"$")+(C?nn(L):Yr(L))}var S={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]},A=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(y,L){Pn(y,0);for(var C=[],O=0,H="",fe="",ce="",he="";y.l<y.length;){var we=y[y.l++];switch(we){case 0:C.push(y.read_shift(8,"f"));break;case 1:fe=_(L[0].c,y.read_shift(2),!0),H=_(L[0].r,y.read_shift(2),!1),C.push(fe+H);break;case 2:{var Pe=_(L[0].c,y.read_shift(2),!0),De=_(L[0].r,y.read_shift(2),!1);fe=_(L[0].c,y.read_shift(2),!0),H=_(L[0].r,y.read_shift(2),!1),C.push(Pe+De+":"+fe+H)}break;case 3:if(y.l<y.length){console.error("WK1 premature formula end");return}break;case 4:C.push("("+C.pop()+")");break;case 5:C.push(y.read_shift(2));break;case 6:{for(var He="";we=y[y.l++];)He+=String.fromCharCode(we);C.push('"'+He.replace(/"/g,'""')+'"')}break;case 8:C.push("-"+C.pop());break;case 23:C.push("+"+C.pop());break;case 22:C.push("NOT("+C.pop()+")");break;case 20:case 21:he=C.pop(),ce=C.pop(),C.push(["AND","OR"][we-20]+"("+ce+","+he+")");break;default:if(we<32&&A[we])he=C.pop(),ce=C.pop(),C.push(ce+A[we]+he);else if(S[we]){if(O=S[we][1],O==69&&(O=y[y.l++]),O>C.length){console.error("WK1 bad formula parse 0x"+we.toString(16)+":|"+C.join("|")+"|");return}var $e=C.slice(-O);C.length-=O,C.push(S[we][0]+"("+$e.join(",")+")")}else return we<=7?console.error("WK1 invalid opcode "+we.toString(16)):we<=24?console.error("WK1 unsupported op "+we.toString(16)):we<=30?console.error("WK1 invalid opcode "+we.toString(16)):we<=115?console.error("WK1 unsupported function opcode "+we.toString(16)):console.error("WK1 unrecognized opcode "+we.toString(16))}}C.length==1?L[1].f=""+C[0]:console.error("WK1 bad formula parse |"+C.join("|")+"|")}function M(y){var L=[{c:0,r:0},{t:"n",v:0},0];return L[0].r=y.read_shift(2),L[3]=y[y.l++],L[0].c=y[y.l++],L}function K(y,L){var C=M(y);return C[1].t="s",C[1].v=y.read_shift(L-4,"cstr"),C}function F(y,L,C,O){var H=ke(6+O.length);H.write_shift(2,y),H.write_shift(1,C),H.write_shift(1,L),H.write_shift(1,39);for(var fe=0;fe<O.length;++fe){var ce=O.charCodeAt(fe);H.write_shift(1,ce>=128?95:ce)}return H.write_shift(1,0),H}function P(y,L){var C=M(y);C[1].v=y.read_shift(2);var O=C[1].v>>1;if(C[1].v&1)switch(O&7){case 0:O=(O>>3)*5e3;break;case 1:O=(O>>3)*500;break;case 2:O=(O>>3)/20;break;case 3:O=(O>>3)/200;break;case 4:O=(O>>3)/2e3;break;case 5:O=(O>>3)/2e4;break;case 6:O=(O>>3)/16;break;case 7:O=(O>>3)/64;break}return C[1].v=O,C}function D(y,L){var C=M(y),O=y.read_shift(4),H=y.read_shift(4),fe=y.read_shift(2);if(fe==65535)return O===0&&H===3221225472?(C[1].t="e",C[1].v=15):O===0&&H===3489660928?(C[1].t="e",C[1].v=42):C[1].v=0,C;var ce=fe&32768;return fe=(fe&32767)-16446,C[1].v=(1-ce*2)*(H*Math.pow(2,fe+32)+O*Math.pow(2,fe)),C}function V(y,L,C,O){var H=ke(14);if(H.write_shift(2,y),H.write_shift(1,C),H.write_shift(1,L),O==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var fe=0,ce=0,he=0,we=0;return O<0&&(fe=1,O=-O),ce=Math.log2(O)|0,O/=Math.pow(2,ce-31),we=O>>>0,(we&2147483648)==0&&(O/=2,++ce,we=O>>>0),O-=we,we|=2147483648,we>>>=0,O*=Math.pow(2,32),he=O>>>0,H.write_shift(4,he),H.write_shift(4,we),ce+=16383+(fe?32768:0),H.write_shift(2,ce),H}function E(y,L){var C=D(y);return y.l+=L-14,C}function T(y,L){var C=M(y),O=y.read_shift(4);return C[1].v=O>>6,C}function z(y,L){var C=M(y),O=y.read_shift(8,"f");return C[1].v=O,C}function Y(y,L){var C=z(y);return y.l+=L-10,C}function ue(y,L){return y[y.l+L-1]==0?y.read_shift(L,"cstr"):""}function Q(y,L){var C=y[y.l++];C>L-1&&(C=L-1);for(var O="";O.length<C;)O+=String.fromCharCode(y[y.l++]);return O}function J(y,L,C){if(!(!C.qpro||L<21)){var O=y.read_shift(1);y.l+=17,y.l+=1,y.l+=2;var H=y.read_shift(L-21,"cstr");return[O,H]}}function oe(y,L){for(var C={},O=y.l+L;y.l<O;){var H=y.read_shift(2);if(H==14e3){for(C[H]=[0,""],C[H][0]=y.read_shift(2);y[y.l];)C[H][1]+=String.fromCharCode(y[y.l]),y.l++;y.l++}}return C}function te(y,L){var C=ke(5+y.length);C.write_shift(2,14e3),C.write_shift(2,L);for(var O=0;O<y.length;++O){var H=y.charCodeAt(O);C[C.l++]=H>127?95:H}return C[C.l++]=0,C}var pe={0:{n:"BOF",f:L1},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:g},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:b},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:ue},222:{n:"SHEETNAMELP",f:Q},65535:{n:""}},ie={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:K},23:{n:"NUMBER17",f:D},24:{n:"NUMBER18",f:P},25:{n:"FORMULA19",f:E},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:oe},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:T},38:{n:"??"},39:{n:"NUMBER27",f:z},40:{n:"FORMULA28",f:Y},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:ue},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:J},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:r}})(),sm=/^\s|\s$|[\t\n\r]/;function I1(e,r){if(!r.bookSST)return"";var t=[Fr];t[t.length]=Ye("sst",null,{xmlns:Ds[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(sm)&&(a+=' xml:space="preserve"'),a+=">"+Yt(i.t)+"</t>"),a+="</si>",t[t.length]=a}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function om(e){return[e.read_shift(4),e.read_shift(4)]}function lm(e,r){return r||(r=ke(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var fm=Q5;function cm(e){var r=yn();Be(r,159,lm(e));for(var t=0;t<e.length;++t)Be(r,19,fm(e[t]));return Be(r,160),r.end()}function um(e){for(var r=[],t=e.split(""),n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function R1(e){var r=0,t,n=um(e),i=n.length+1,a,s,o,f,c;for(t=Wa(i),t[0]=n.length,a=1;a!=i;++a)t[a]=n[a-1];for(a=i-1;a>=0;--a)s=t[a],o=(r&16384)===0?0:1,f=r<<1&32767,c=o|f,r=c^s;return r^52811}var hm=(function(){function e(i,a){switch(a.type){case"base64":return r(qi(i),a);case"binary":return r(i,a);case"buffer":return r(jt&&Buffer.isBuffer(i)?i.toString("binary"):qo(i),a);case"array":return r(yl(i),a)}throw new Error("Unrecognized type "+a.type)}function r(i,a){var s=a||{},o=s.dense?[]:{},f=i.match(/\\trowd.*?\\row\b/g);if(!f.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(u,p){Array.isArray(o)&&(o[p]=[]);for(var g=/\\\w+\b/g,h=0,w,v=-1;w=g.exec(u);){switch(w[0]){case"\\cell":var b=u.slice(h,g.lastIndex-w[0].length);if(b[0]==" "&&(b=b.slice(1)),++v,b.length){var _={v:b,t:"s"};Array.isArray(o)?o[p][v]=_:o[Xt({r:p,c:v})]=_}break}h=g.lastIndex}v>c.e.c&&(c.e.c=v)}),o["!ref"]=Lr(c),o}function t(i,a){return Ga(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=lr(i["!ref"]),o,f=Array.isArray(i),c=s.s.r;c<=s.e.r;++c){a.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var p=Xt({r:c,c:u});o=f?(i[c]||[])[u]:i[p],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(Vi(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:n}})();function Xu(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var dm=6,Hi=dm;function ll(e){return Math.floor((e+Math.round(128/Hi)/256)*Hi)}function fl(e){return Math.floor((e-5)/Hi*100+.5)/100}function Hf(e){return Math.round((e*Hi+5)/Hi*256)/256}function fc(e){e.width?(e.wpx=ll(e.width),e.wch=fl(e.wpx),e.MDW=Hi):e.wpx?(e.wch=fl(e.wpx),e.width=Hf(e.wch),e.MDW=Hi):typeof e.wch=="number"&&(e.width=Hf(e.wch),e.wpx=ll(e.width),e.MDW=Hi),e.customWidth&&delete e.customWidth}var pm=96,D1=pm;function cl(e){return e*96/D1}function M1(e){return e*D1/96}function gm(e){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=Ye("numFmt",null,{numFmtId:n,formatCode:Yt(e[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=Ye("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function mm(e){var r=[];return r[r.length]=Ye("cellXfs",null),e.forEach(function(t){r[r.length]=Ye("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=Ye("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function B1(e,r){var t=[Fr,Ye("styleSheet",null,{xmlns:Ds[0],"xmlns:vt":Br.vt})],n;return e.SSF&&(n=gm(e.SSF))!=null&&(t[t.length]=n),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=mm(r.cellXfs))&&(t[t.length]=n),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function vm(e,r){var t=e.read_shift(2),n=an(e);return[t,n]}function xm(e,r,t){t||(t=ke(6+4*r.length)),t.write_shift(2,e),Ur(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function wm(e,r,t){var n={};n.sz=e.read_shift(2)/20;var i=sg(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 s=e.read_shift(1);s!=0&&(n.underline=s);var o=e.read_shift(1);o>0&&(n.family=o);var f=e.read_shift(1);switch(f>0&&(n.charset=f),e.l++,n.color=ag(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=an(e),n}function ym(e,r){r||(r=ke(153)),r.write_shift(2,e.sz*20),og(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),sl(e.color,r);var n=0;return n=2,r.write_shift(1,n),Ur(e.name,r),r.length>r.l?r.slice(0,r.l):r}var bm=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Sf,_m=Ni;function $u(e,r){r||(r=ke(84)),Sf||(Sf=Jf(bm));var t=Sf[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(sl({auto:1},r),sl({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function Sm(e,r){var t=e.l+r,n=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:i}}function j1(e,r,t){t||(t=ke(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function yo(e,r){return r||(r=ke(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var Am=Ni;function Tm(e,r){return r||(r=ke(51)),r.write_shift(1,0),yo(null,r),yo(null,r),yo(null,r),yo(null,r),yo(null,r),r.length>r.l?r.slice(0,r.l):r}function Nm(e,r){return r||(r=ke(52)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,0),r.write_shift(1,0),al(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function Em(e,r,t){var n=ke(2052);return n.write_shift(4,e),al(r,n),al(t,n),n.length>n.l?n.slice(0,n.l):n}function Lm(e,r){if(r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&++t}),t!=0&&(Be(e,615,ui(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Be(e,44,xm(i,r[i]))}),Be(e,616))}}function Fm(e){var r=1;Be(e,611,ui(r)),Be(e,43,ym({sz:12,color:{theme:1},name:"Calibri",family:2})),Be(e,612)}function Cm(e){var r=2;Be(e,603,ui(r)),Be(e,45,$u({patternType:"none"})),Be(e,45,$u({patternType:"gray125"})),Be(e,604)}function km(e){var r=1;Be(e,613,ui(r)),Be(e,46,Tm()),Be(e,614)}function Pm(e){var r=1;Be(e,626,ui(r)),Be(e,47,j1({numFmtId:0},65535)),Be(e,627)}function Om(e,r){Be(e,617,ui(r.length)),r.forEach(function(t){Be(e,47,j1(t,0))}),Be(e,618)}function Im(e){var r=1;Be(e,619,ui(r)),Be(e,48,Nm({xfId:0,name:"Normal"})),Be(e,620)}function Rm(e){var r=0;Be(e,505,ui(r)),Be(e,506)}function Dm(e){var r=0;Be(e,508,Em(r,"TableStyleMedium9","PivotStyleMedium4")),Be(e,509)}function Mm(e,r){var t=yn();return Be(t,278),Lm(t,e.SSF),Fm(t),Cm(t),km(t),Pm(t),Om(t,r.cellXfs),Im(t),Rm(t),Dm(t),Be(t,279),t.end()}function U1(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Fr];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.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>',t[t.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>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.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>',t[t.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>',t[t.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>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.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>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.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>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.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>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.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>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function Bm(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:an(e)}}function jm(e){var r=ke(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),Ur(e.name,r),r.slice(0,r.l)}function Um(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function zm(e){var r=ke(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t<e.length;++t)r.write_shift(4,e[t][0]),r.write_shift(4,e[t][1]);return r}function Wm(e,r){var t=ke(8+2*r.length);return t.write_shift(4,e),Ur(r,t),t.slice(0,t.l)}function Hm(e){return e.l+=4,e.read_shift(4)!=0}function qm(e,r){var t=ke(8);return t.write_shift(4,e),t.write_shift(4,1),t}function Vm(){var e=yn();return Be(e,332),Be(e,334,ui(1)),Be(e,335,jm({name:"XLDAPR",version:12e4,flags:3496657072})),Be(e,336),Be(e,339,Wm(1,"XLDAPR")),Be(e,52),Be(e,35,ui(514)),Be(e,4096,ui(0)),Be(e,4097,Xn(1)),Be(e,36),Be(e,53),Be(e,340),Be(e,337,qm(1)),Be(e,51,zm([[1,0]])),Be(e,338),Be(e,333),e.end()}function z1(){var e=[Fr];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 Gm(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=Xt(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Es=1024;function W1(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[Ye("xml",null,{"xmlns:v":On.v,"xmlns:o":On.o,"xmlns:x":On.x,"xmlns:mv":On.mv}).replace(/\/>/,">"),Ye("o:shapelayout",Ye("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ye("v:shapetype",[Ye("v:stroke",null,{joinstyle:"miter"}),Ye("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Es<e*1e3;)Es+=1e3;return r.forEach(function(a){var s=jr(a[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var f=o.type=="gradient"?Ye("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Ye("v:fill",f,o),u={on:"t",obscured:"t"};++Es,i=i.concat(["<v:shape"+zo({id:"_x0000_s"+Es,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,Ye("v:shadow",null,u),Ye("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Gr("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Gr("x:AutoFill","False"),Gr("x:Row",String(s.r)),Gr("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function H1(e){var r=[Fr,Ye("comments",null,{xmlns:Ds[0]})],t=[];return r.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=Yt(i.a);t.indexOf(a)==-1&&(t.push(a),r.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(f){f.a&&(i=t.indexOf(Yt(f.a))),a.push(f.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)r.push(Gr("t",Yt(a[0]||"")));else{for(var s=`Comment:
308
+ `+a[0]+`
309
+ `,o=1;o<a.length;++o)s+=`Reply:
310
+ `+a[o]+`
311
+ `;r.push(Gr("t",Yt(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Ym(e,r,t){var n=[Fr,Ye("ThreadedComments",null,{xmlns:Br.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var f={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};o==0?a=f.id:f.parentId=a,s.ID=f.id,s.a&&(f.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(Ye("threadedComment",Gr("text",s.t||""),f))})}),n.push("</ThreadedComments>"),n.join("")}function Xm(e){var r=[Fr,Ye("personList",null,{xmlns:Br.TCMNT,"xmlns:x":Ds[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(Ye("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function $m(e){var r={};r.iauthor=e.read_shift(4);var t=Ka(e);return r.rfx=t.s,r.ref=Xt(t.s),e.l+=16,r}function Km(e,r){return r==null&&(r=ke(36)),r.write_shift(4,e[1].iauthor),Bs(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var Jm=an;function Zm(e){return Ur(e.slice(0,54))}function Qm(e){var r=yn(),t=[];return Be(r,628),Be(r,630),e.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),Be(r,632,Zm(i.a)))})}),Be(r,631),Be(r,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:jr(n[0]),e:jr(n[0])};Be(r,635,Km([a,i])),i.t&&i.t.length>0&&Be(r,637,tg(i)),Be(r,636),delete i.iauthor})}),Be(r,634),Be(r,629),r.end()}function ev(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Jt.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var q1=["xlsb","xlsm","xlam","biff8","xla"],tv=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,i,a,s){var o=!1,f=!1;a.length==0?f=!0:a.charAt(0)=="["&&(f=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var c=a.length>0?parseInt(a,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return o?u+=r.c:--u,f?c+=r.r:--c,i+(o?"":"$")+nn(u)+(f?"":"$")+Yr(c)}return function(i,a){return r=a,i.replace(e,t)}})(),cc=/(^|[^._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,uc=(function(){return function(r,t){return r.replace(cc,function(n,i,a,s,o,f){var c=ic(s)-(a?0:t.c),u=nc(f)-(o?0:t.r),p=u==0?"":o?u+1:"["+u+"]",g=c==0?"":a?c+1:"["+c+"]";return i+"R"+p+"C"+g})}})();function rv(e,r){return e.replace(cc,function(t,n,i,a,s,o){return n+(i=="$"?i+a:nn(ic(a)+r.c))+(s=="$"?s+o:Yr(nc(o)+r.r))})}function nv(e){return e.length!=1}function Er(e){e.l+=1}function ya(e,r){var t=e.read_shift(2);return[t&16383,t>>14&1,t>>15&1]}function V1(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return G1(e);t.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=ya(e),o=ya(e);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function G1(e){var r=ya(e),t=ya(e),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function iv(e,r,t){if(t.biff<8)return G1(e);var n=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),a=ya(e),s=ya(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Y1(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return av(e);var n=e.read_shift(t&&t.biff==12?4:2),i=ya(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function av(e){var r=ya(e),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function sv(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function ov(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return lv(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function lv(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),i==1&&t>=128&&(t=t-256),{r,c:t,cRel:i,rRel:n}}function fv(e,r,t){var n=(e[e.l++]&96)>>5,i=V1(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function cv(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=V1(e,a,t);return[n,i,s]}function uv(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function hv(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function dv(e,r,t){var n=(e[e.l++]&96)>>5,i=iv(e,r-1,t);return[n,i]}function pv(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function Ku(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function gv(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(t&&t.biff==2?1:2));return i}function mv(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function vv(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function xv(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function wv(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function X1(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function yv(e){return e.read_shift(2),X1(e)}function bv(e){return e.read_shift(2),X1(e)}function _v(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=Y1(e,0,t);return[n,i]}function Sv(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=ov(e,0,t);return[n,i]}function Av(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var a=Y1(e,0,t);return[n,i,a]}function Tv(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(t&&t.biff<=3?1:2);return[Tx[i],J1[i],n]}function Nv(e,r,t){var n=e[e.l++],i=e.read_shift(1),a=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:Ev(e);return[i,(a[0]===0?J1:Ax)[a[1]]]}function Ev(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function Lv(e,r,t){e.l+=t&&t.biff==2?3:4}function Fv(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Cv(e){return e.l++,Yo[e.read_shift(1)]}function kv(e){return e.l++,e.read_shift(2)}function Pv(e){return e.l++,e.read_shift(1)!==0}function Ov(e){return e.l++,js(e)}function Iv(e,r,t){return e.l++,C1(e,r-1,t)}function Rv(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=Ag(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=Yo[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=js(e);break;case 2:t[1]=Lg(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function Dv(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((t.biff==12?Ka:kg)(e));return i}function Mv(e,r,t){var n=0,i=0;t.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=Rv(e,t.biff);return s}function Bv(e,r,t){var n=e.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=e.read_shift(i);switch(t.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 jv(e,r,t){if(t.biff==5)return Uv(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function Uv(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function zv(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Wv(e,r,t){var n=e.read_shift(1)>>>5&3,i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Hv(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function qv(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var Vv=Ni,Gv=Ni,Yv=Ni;function Xo(e,r,t){return e.l+=2,[sv(e)]}function hc(e){return e.l+=6,[]}var Xv=Xo,$v=hc,Kv=hc,Jv=Xo;function $1(e){return e.l+=2,[L1(e),e.read_shift(2)&1]}var Zv=Xo,Qv=$1,ex=hc,tx=Xo,rx=Xo,nx=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function ix(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=nx[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:i,C:a}}function ax(e){return e.l+=2,[e.read_shift(4)]}function sx(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function ox(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function lx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function fx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function cx(e){return e.l+=4,[0,0]}var Ju={1:{n:"PtgExp",f:Fv},2:{n:"PtgTbl",f:Yv},3:{n:"PtgAdd",f:Er},4:{n:"PtgSub",f:Er},5:{n:"PtgMul",f:Er},6:{n:"PtgDiv",f:Er},7:{n:"PtgPower",f:Er},8:{n:"PtgConcat",f:Er},9:{n:"PtgLt",f:Er},10:{n:"PtgLe",f:Er},11:{n:"PtgEq",f:Er},12:{n:"PtgGe",f:Er},13:{n:"PtgGt",f:Er},14:{n:"PtgNe",f:Er},15:{n:"PtgIsect",f:Er},16:{n:"PtgUnion",f:Er},17:{n:"PtgRange",f:Er},18:{n:"PtgUplus",f:Er},19:{n:"PtgUminus",f:Er},20:{n:"PtgPercent",f:Er},21:{n:"PtgParen",f:Er},22:{n:"PtgMissArg",f:Er},23:{n:"PtgStr",f:Iv},26:{n:"PtgSheet",f:sx},27:{n:"PtgEndSheet",f:ox},28:{n:"PtgErr",f:Cv},29:{n:"PtgBool",f:Pv},30:{n:"PtgInt",f:kv},31:{n:"PtgNum",f:Ov},32:{n:"PtgArray",f:pv},33:{n:"PtgFunc",f:Tv},34:{n:"PtgFuncVar",f:Nv},35:{n:"PtgName",f:Bv},36:{n:"PtgRef",f:_v},37:{n:"PtgArea",f:fv},38:{n:"PtgMemArea",f:zv},39:{n:"PtgMemErr",f:Vv},40:{n:"PtgMemNoMem",f:Gv},41:{n:"PtgMemFunc",f:Wv},42:{n:"PtgRefErr",f:Hv},43:{n:"PtgAreaErr",f:uv},44:{n:"PtgRefN",f:Sv},45:{n:"PtgAreaN",f:dv},46:{n:"PtgMemAreaN",f:lx},47:{n:"PtgMemNoMemN",f:fx},57:{n:"PtgNameX",f:jv},58:{n:"PtgRef3d",f:Av},59:{n:"PtgArea3d",f:cv},60:{n:"PtgRefErr3d",f:qv},61:{n:"PtgAreaErr3d",f:hv},255:{}},ux={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},hx={1:{n:"PtgElfLel",f:$1},2:{n:"PtgElfRw",f:tx},3:{n:"PtgElfCol",f:Xv},6:{n:"PtgElfRwV",f:rx},7:{n:"PtgElfColV",f:Jv},10:{n:"PtgElfRadical",f:Zv},11:{n:"PtgElfRadicalS",f:ex},13:{n:"PtgElfColS",f:$v},15:{n:"PtgElfColSV",f:Kv},16:{n:"PtgElfRadicalLel",f:Qv},25:{n:"PtgList",f:ix},29:{n:"PtgSxName",f:ax},255:{}},dx={0:{n:"PtgAttrNoop",f:cx},1:{n:"PtgAttrSemi",f:wv},2:{n:"PtgAttrIf",f:vv},4:{n:"PtgAttrChoose",f:gv},8:{n:"PtgAttrGoto",f:mv},16:{n:"PtgAttrSum",f:Lv},32:{n:"PtgAttrBaxcel",f:Ku},33:{n:"PtgAttrBaxcel",f:Ku},64:{n:"PtgAttrSpace",f:yv},65:{n:"PtgAttrSpaceSemi",f:bv},128:{n:"PtgAttrIfError",f:xv},255:{}};function px(e,r,t,n){if(n.biff<8)return Ni(e,r);for(var i=e.l+r,a=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=Mv(e,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=Dv(e,t[s][1],n),a.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),a.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=i-e.l,r!==0&&a.push(Ni(e,r)),a}function gx(e,r,t){for(var n=e.l+r,i,a,s=[];n!=e.l;)r=n-e.l,a=e[e.l],i=Ju[a]||Ju[ux[a]],(a===24||a===25)&&(i=(a===24?hx:dx)[e[e.l+1]]),!i||!i.f?Ni(e,r):s.push([i.n,i.f(e,r,t)]);return s}function mx(e){for(var r=[],t=0;t<e.length;++t){for(var n=e[t],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var vx={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function xx(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function K1(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var i="";if(t.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 t.SID!=null?e.SheetNames[t.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 Zu(e,r,t){var n=K1(e,r,t);return n=="#REF"?n:xx(n,t)}function Is(e,r,t,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0}},o=[],f,c,u,p=0,g=0,h,w="";if(!e[0]||!e[0][0])return"";for(var v=-1,b="",_=0,S=e[0].length;_<S;++_){var A=e[0][_];switch(A[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.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(f=o.pop(),c=o.pop(),v>=0){switch(e[0][v][1][0]){case 0:b=pr(" ",e[0][v][1][1]);break;case 1:b=pr("\r",e[0][v][1][1]);break;default:if(b="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}c=c+b,v=-1}o.push(c+vx[A[0]]+f);break;case"PtgIsect":f=o.pop(),c=o.pop(),o.push(c+" "+f);break;case"PtgUnion":f=o.pop(),c=o.pop(),o.push(c+","+f);break;case"PtgRange":f=o.pop(),c=o.pop(),o.push(c+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Po(A[1][1],s,i),o.push(Oo(u,a));break;case"PtgRefN":u=t?Po(A[1][1],t,i):A[1][1],o.push(Oo(u,a));break;case"PtgRef3d":p=A[1][1],u=Po(A[1][2],s,i),w=Zu(n,p,i),o.push(w+"!"+Oo(u,a));break;case"PtgFunc":case"PtgFuncVar":var k=A[1][0],M=A[1][1];k||(k=0),k&=127;var K=k==0?[]:o.slice(-k);o.length-=k,M==="User"&&(M=K.shift()),o.push(M+"("+K.join(",")+")");break;case"PtgBool":o.push(A[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(A[1]);break;case"PtgNum":o.push(String(A[1]));break;case"PtgStr":o.push('"'+A[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(A[1]);break;case"PtgAreaN":h=Du(A[1][1],t?{s:t}:s,i),o.push(bf(h,i));break;case"PtgArea":h=Du(A[1][1],s,i),o.push(bf(h,i));break;case"PtgArea3d":p=A[1][1],h=A[1][2],w=Zu(n,p,i),o.push(w+"!"+bf(h,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":g=A[1][2];var F=(n.names||[])[g-1]||(n[0]||[])[g],P=F?F.Name:"SH33TJSNAME"+String(g);P&&P.slice(0,6)=="_xlfn."&&!i.xlfn&&(P=P.slice(6)),o.push(P);break;case"PtgNameX":var D=A[1][1];g=A[1][2];var V;if(i.biff<=5)D<0&&(D=-D),n[D]&&(V=n[D][g]);else{var E="";if(((n[D]||[])[0]||[])[0]==14849||(((n[D]||[])[0]||[])[0]==1025?n[D][g]&&n[D][g].itab>0&&(E=n.SheetNames[n[D][g].itab-1]+"!"):E=n.SheetNames[g-1]+"!"),n[D]&&n[D][g])E+=n[D][g].Name;else if(n[0]&&n[0][g])E+=n[0][g].Name;else{var T=(K1(n,D,i)||"").split(";;");T[g-1]?E=T[g-1]:E+="SH33TJSERRX"}o.push(E);break}V||(V={Name:"SH33TJSERRY"}),o.push(V.Name);break;case"PtgParen":var z="(",Y=")";if(v>=0){switch(b="",e[0][v][1][0]){case 2:z=pr(" ",e[0][v][1][1])+z;break;case 3:z=pr("\r",e[0][v][1][1])+z;break;case 4:Y=pr(" ",e[0][v][1][1])+Y;break;case 5:Y=pr("\r",e[0][v][1][1])+Y;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}o.push(z+o.pop()+Y);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":u={c:A[1][1],r:A[1][0]};var ue={c:t.c,r:t.r};if(n.sharedf[Xt(u)]){var Q=n.sharedf[Xt(u)];o.push(Is(Q,s,ue,n,i))}else{var J=!1;for(f=0;f!=n.arrayf.length;++f)if(c=n.arrayf[f],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){o.push(Is(c[1],s,ue,n,i)),J=!0;break}J||o.push(A[1])}break;case"PtgArray":o.push("{"+mx(A[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=_;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+A[1].idx+"[#"+A[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(A));default:throw new Error("Unrecognized Formula Token: "+String(A))}var oe=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&v>=0&&oe.indexOf(e[0][_][0])==-1){A=e[0][v];var te=!0;switch(A[1][0]){case 4:te=!1;case 0:b=pr(" ",A[1][1]);break;case 5:te=!1;case 1:b=pr("\r",A[1][1]);break;default:if(b="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[1][0])}o.push((te?b:"")+o.pop()+(te?"":b)),v=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function wx(e){if(e==null){var r=ke(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return Ha(e);return Ha(0)}function yx(e,r,t,n,i){var a=qa(r,t,i),s=wx(e.v),o=ke(6),f=33;o.write_shift(2,f),o.write_shift(4,0);for(var c=ke(e.bf.length),u=0;u<e.bf.length;++u)c[u]=e.bf[u];var p=Vr([a,s,o,c]);return p}function bl(e,r,t){var n=e.read_shift(4),i=gx(e,n,t),a=e.read_shift(4),s=a>0?px(e,a,i,t):null;return[i,s]}var bx=bl,_l=bl,_x=bl,Sx=bl,Ax={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"},J1={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"},Tx={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 Nx(e){var r="of:="+e.replace(cc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function Ex(e){return e.replace(/\./,"!")}var Io=typeof Map<"u";function dc(e,r,t){var n=0,i=e.length;if(t){if(Io?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var a=Io?t.get(r):t[r];n<a.length;++n)if(e[a[n]].t===r)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===r)return e.Count++,n;return e[i]={t:r},e.Count++,e.Unique++,t&&(Io?(t.has(r)||t.set(r,[]),t.get(r).push(i)):(Object.prototype.hasOwnProperty.call(t,r)||(t[r]=[]),t[r].push(i))),i}function Sl(e,r){var t={min:e+1,max:e+1},n=-1;return r.MDW&&(Hi=r.MDW),r.width!=null?t.customWidth=1:r.wpx!=null?n=fl(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(t.width=Hf(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function Z1(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function _a(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],i=60,a=e.length;if(n==null&&t.ssf){for(;i<392;++i)if(t.ssf[i]==null){Yh(r.z,i),t.ssf[i]=r.z,t.revssf[r.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 Lx(e,r,t){if(e&&e["!ref"]){var n=lr(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+t+"): "+e["!ref"])}}function Fx(e){if(e.length===0)return"";for(var r='<mergeCells count="'+e.length+'">',t=0;t!=e.length;++t)r+='<mergeCell ref="'+Lr(e[t])+'"/>';return r+"</mergeCells>"}function Cx(e,r,t,n,i){var a=!1,s={},o=null;if(n.bookType!=="xlsx"&&r.vbaraw){var f=r.SheetNames[t];try{r.Workbook&&(f=r.Workbook.Sheets[t].CodeName||f)}catch{}a=!0,s.codeName=Uo(Yt(f))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+Ye("outlinePr",null,c)}!a&&!o||(i[i.length]=Ye("sheetPr",o,s))}var kx=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Px=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Ox(e){var r={sheet:1};return kx.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),Px.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=R1(e.password).toString(16).toUpperCase()),Ye("sheetProtection",null,r)}function Ix(e){return Z1(e),Ye("pageMargins",null,e)}function Rx(e,r){for(var t=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(t[t.length]=Ye("col",null,Sl(i,n)));return t[t.length]="</cols>",t.join("")}function Dx(e,r,t,n){var i=typeof e.ref=="string"?e.ref:Lr(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=Dn(i);s.s.r==s.e.r&&(s.e.r=Dn(r["!ref"]).e.r,i=Lr(s));for(var o=0;o<a.length;++o){var f=a[o];if(f.Name=="_xlnm._FilterDatabase"&&f.Sheet==n){f.Ref="'"+t.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+i}),Ye("autoFilter",null,{ref:i})}function Mx(e,r,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ye("sheetViews",Ye("sheetView",null,i),{})}function Bx(e,r,t,n){if(e.c&&t["!comments"].push([r,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,s=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=Yo[e.v];break;case"d":n&&n.cellDates?i=hn(e.v,-1).toISOString():(e=_n(e),e.t="n",i=""+(e.v=bn(hn(e.v)))),typeof e.z>"u"&&(e.z=gr[14]);break;default:i=e.v;break}var o=Gr("v",Yt(i)),f={r},c=_a(n.cellXfs,e,n);switch(c!==0&&(f.s=c),e.t){case"n":break;case"d":f.t="d";break;case"b":f.t="b";break;case"e":f.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){o=Gr("v",""+dc(n.Strings,e.v,n.revStrings)),f.t="s";break}f.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;o=Ye("f",Yt(e.f),u)+(e.v!=null?o:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(f.cm=1),Ye("c",o,f)}function jx(e,r,t,n){var i=[],a=[],s=lr(e["!ref"]),o="",f,c="",u=[],p=0,g=0,h=e["!rows"],w=Array.isArray(e),v={r:c},b,_=-1;for(g=s.s.c;g<=s.e.c;++g)u[g]=nn(g);for(p=s.s.r;p<=s.e.r;++p){for(a=[],c=Yr(p),g=s.s.c;g<=s.e.c;++g){f=u[g]+c;var S=w?(e[p]||[])[g]:e[f];S!==void 0&&(o=Bx(S,f,e,r))!=null&&a.push(o)}(a.length>0||h&&h[p])&&(v={r:c},h&&h[p]&&(b=h[p],b.hidden&&(v.hidden=1),_=-1,b.hpx?_=cl(b.hpx):b.hpt&&(_=b.hpt),_>-1&&(v.ht=_,v.customHeight=1),b.level&&(v.outlineLevel=b.level)),i[i.length]=Ye("row",a.join(""),v))}if(h)for(;p<h.length;++p)h&&h[p]&&(v={r:p+1},b=h[p],b.hidden&&(v.hidden=1),_=-1,b.hpx?_=cl(b.hpx):b.hpt&&(_=b.hpt),_>-1&&(v.ht=_,v.customHeight=1),b.level&&(v.outlineLevel=b.level),i[i.length]=Ye("row","",v));return i.join("")}function Q1(e,r,t,n){var i=[Fr,Ye("worksheet",null,{xmlns:Ds[0],"xmlns:r":Br.r})],a=t.SheetNames[e],s=0,o="",f=t.Sheets[a];f==null&&(f={});var c=f["!ref"]||"A1",u=lr(c);if(u.e.c>16383||u.e.r>1048575){if(r.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=Lr(u)}n||(n={}),f["!comments"]=[];var p=[];Cx(f,t,e,r,i),i[i.length]=Ye("dimension",null,{ref:c}),i[i.length]=Mx(f,r,e,t),r.sheetFormat&&(i[i.length]=Ye("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),f["!cols"]!=null&&f["!cols"].length>0&&(i[i.length]=Rx(f,f["!cols"])),i[s=i.length]="<sheetData/>",f["!links"]=[],f["!ref"]!=null&&(o=jx(f,r),o.length>0&&(i[i.length]=o)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),f["!protect"]&&(i[i.length]=Ox(f["!protect"])),f["!autofilter"]!=null&&(i[i.length]=Dx(f["!autofilter"],f,t,e)),f["!merges"]!=null&&f["!merges"].length>0&&(i[i.length]=Fx(f["!merges"]));var g=-1,h,w=-1;return f["!links"].length>0&&(i[i.length]="<hyperlinks>",f["!links"].forEach(function(v){v[1].Target&&(h={ref:v[0]},v[1].Target.charAt(0)!="#"&&(w=Gt(n,-1,Yt(v[1].Target).replace(/#.*$/,""),Mt.HLINK),h["r:id"]="rId"+w),(g=v[1].Target.indexOf("#"))>-1&&(h.location=Yt(v[1].Target.slice(g+1))),v[1].Tooltip&&(h.tooltip=Yt(v[1].Tooltip)),i[i.length]=Ye("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete f["!links"],f["!margins"]!=null&&(i[i.length]=Ix(f["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=Gr("ignoredErrors",Ye("ignoredError",null,{numberStoredAsText:1,sqref:c}))),p.length>0&&(w=Gt(n,-1,"../drawings/drawing"+(e+1)+".xml",Mt.DRAW),i[i.length]=Ye("drawing",null,{"r:id":"rId"+w}),f["!drawing"]=p),f["!comments"].length>0&&(w=Gt(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Mt.VML),i[i.length]=Ye("legacyDrawing",null,{"r:id":"rId"+w}),f["!legacy"]=w),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Ux(e,r){var t={},n=e.l+r;t.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&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}function zx(e,r,t){var n=ke(145),i=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=cl(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,f=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(r.s.c>u+1<<10||r.e.c<u<<10)){for(var p=-1,g=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var w=Array.isArray(t)?(t[c.r]||[])[c.c]:t[Xt(c)];w&&(p<0&&(p=h),g=h)}p<0||(++o,n.write_shift(4,p),n.write_shift(4,g))}var v=n.l;return n.l=f,n.write_shift(4,o),n.l=v,n.length>n.l?n.slice(0,n.l):n}function Wx(e,r,t,n){var i=zx(n,t,r);(i.length>17||(r["!rows"]||[])[n])&&Be(e,0,i)}var Hx=Ka,qx=Bs;function Vx(){}function Gx(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=rg(e),t}function Yx(e,r,t){t==null&&(t=ke(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var i=1;i<3;++i)t.write_shift(1,0);return sl({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),p1(e,t),t.slice(0,t.l)}function Xx(e){var r=$n(e);return[r]}function $x(e,r,t){return t==null&&(t=ke(8)),Ya(r,t)}function Kx(e){var r=Xa(e);return[r]}function Jx(e,r,t){return t==null&&(t=ke(4)),$a(r,t)}function Zx(e){var r=$n(e),t=e.read_shift(1);return[r,t,"b"]}function Qx(e,r,t){return t==null&&(t=ke(9)),Ya(r,t),t.write_shift(1,e.v?1:0),t}function e4(e){var r=Xa(e),t=e.read_shift(1);return[r,t,"b"]}function t4(e,r,t){return t==null&&(t=ke(5)),$a(r,t),t.write_shift(1,e.v?1:0),t}function r4(e){var r=$n(e),t=e.read_shift(1);return[r,t,"e"]}function n4(e,r,t){return t==null&&(t=ke(9)),Ya(r,t),t.write_shift(1,e.v),t}function i4(e){var r=Xa(e),t=e.read_shift(1);return[r,t,"e"]}function a4(e,r,t){return t==null&&(t=ke(8)),$a(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function s4(e){var r=$n(e),t=e.read_shift(4);return[r,t,"s"]}function o4(e,r,t){return t==null&&(t=ke(12)),Ya(r,t),t.write_shift(4,r.v),t}function l4(e){var r=Xa(e),t=e.read_shift(4);return[r,t,"s"]}function f4(e,r,t){return t==null&&(t=ke(8)),$a(r,t),t.write_shift(4,r.v),t}function c4(e){var r=$n(e),t=js(e);return[r,t,"n"]}function u4(e,r,t){return t==null&&(t=ke(16)),Ya(r,t),Ha(e.v,t),t}function h4(e){var r=Xa(e),t=js(e);return[r,t,"n"]}function d4(e,r,t){return t==null&&(t=ke(12)),$a(r,t),Ha(e.v,t),t}function p4(e){var r=$n(e),t=g1(e);return[r,t,"n"]}function g4(e,r,t){return t==null&&(t=ke(12)),Ya(r,t),m1(e.v,t),t}function m4(e){var r=Xa(e),t=g1(e);return[r,t,"n"]}function v4(e,r,t){return t==null&&(t=ke(8)),$a(r,t),m1(e.v,t),t}function x4(e){var r=$n(e),t=ac(e);return[r,t,"is"]}function w4(e){var r=$n(e),t=an(e);return[r,t,"str"]}function y4(e,r,t){return t==null&&(t=ke(12+4*e.v.length)),Ya(r,t),Ur(e.v,t),t.length>t.l?t.slice(0,t.l):t}function b4(e){var r=Xa(e),t=an(e);return[r,t,"str"]}function _4(e,r,t){return t==null&&(t=ke(8+4*e.v.length)),$a(r,t),Ur(e.v,t),t.length>t.l?t.slice(0,t.l):t}function S4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(t.cellFormula){e.l+=2;var o=_l(e,n-e.l,t);s[3]=Is(o,null,i,t.supbooks,t)}else e.l=n;return s}function A4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(t.cellFormula){e.l+=2;var o=_l(e,n-e.l,t);s[3]=Is(o,null,i,t.supbooks,t)}else e.l=n;return s}function T4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=js(e),s=[i,a,"n"];if(t.cellFormula){e.l+=2;var o=_l(e,n-e.l,t);s[3]=Is(o,null,i,t.supbooks,t)}else e.l=n;return s}function N4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=an(e),s=[i,a,"str"];if(t.cellFormula){e.l+=2;var o=_l(e,n-e.l,t);s[3]=Is(o,null,i,t.supbooks,t)}else e.l=n;return s}var E4=Ka,L4=Bs;function F4(e,r){return r==null&&(r=ke(4)),r.write_shift(4,e),r}function C4(e,r){var t=e.l+r,n=Ka(e),i=sc(e),a=an(e),s=an(e),o=an(e);e.l=t;var f={rfx:n,relId:i,loc:a,display:o};return s&&(f.Tooltip=s),f}function k4(e,r){var t=ke(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Bs({s:jr(e[0]),e:jr(e[0])},t),oc("rId"+r,t);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return Ur(i||"",t),Ur(e[1].Tooltip||"",t),Ur("",t),t.slice(0,t.l)}function P4(){}function O4(e,r,t){var n=e.l+r,i=v1(e),a=e.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var o=bx(e,n-e.l,t);s[1]=o}else e.l=n;return s}function I4(e,r,t){var n=e.l+r,i=Ka(e),a=[i];if(t.cellFormula){var s=Sx(e,n-e.l,t);a[1]=s,e.l=n}else e.l=n;return a}function R4(e,r,t){t==null&&(t=ke(18));var n=Sl(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var i=0;return r.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),r.level&&(i|=r.level<<8),t.write_shift(2,i),t}var ed=["left","right","top","bottom","header","footer"];function D4(e){var r={};return ed.forEach(function(t){r[t]=js(e)}),r}function M4(e,r){return r==null&&(r=ke(48)),Z1(e),ed.forEach(function(t){Ha(e[t],r)}),r}function B4(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function j4(e,r,t){t==null&&(t=ke(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function U4(e){var r=ke(24);return r.write_shift(4,4),r.write_shift(4,1),Bs(e,r),r}function z4(e,r){return r==null&&(r=ke(66)),r.write_shift(2,e.password?R1(e.password):0),r.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(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function W4(){}function H4(){}function q4(e,r,t,n,i,a,s){if(r.v===void 0)return!1;var o="";switch(r.t){case"b":o=r.v?"1":"0";break;case"d":r=_n(r),r.z=r.z||gr[14],r.v=bn(hn(r.v)),r.t="n";break;case"n":case"e":o=""+r.v;break;default:o=r.v;break}var f={r:t,c:n};switch(f.s=_a(i.cellXfs,r,i),r.l&&a["!links"].push([Xt(f),r.l]),r.c&&a["!comments"].push([Xt(f),r.c]),r.t){case"s":case"str":return i.bookSST?(o=dc(i.Strings,r.v,i.revStrings),f.t="s",f.v=o,s?Be(e,18,f4(r,f)):Be(e,7,o4(r,f))):(f.t="str",s?Be(e,17,_4(r,f)):Be(e,6,y4(r,f))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?Be(e,13,v4(r,f)):Be(e,2,g4(r,f)):s?Be(e,16,d4(r,f)):Be(e,5,u4(r,f)),!0;case"b":return f.t="b",s?Be(e,15,t4(r,f)):Be(e,4,Qx(r,f)),!0;case"e":return f.t="e",s?Be(e,14,a4(r,f)):Be(e,3,n4(r,f)),!0}return s?Be(e,12,Jx(r,f)):Be(e,1,$x(r,f)),!0}function V4(e,r,t,n){var i=lr(r["!ref"]||"A1"),a,s="",o=[];Be(e,145);var f=Array.isArray(r),c=i.e.r;r["!rows"]&&(c=Math.max(i.e.r,r["!rows"].length-1));for(var u=i.s.r;u<=c;++u){s=Yr(u),Wx(e,r,i,u);var p=!1;if(u<=i.e.r)for(var g=i.s.c;g<=i.e.c;++g){u===i.s.r&&(o[g]=nn(g)),a=o[g]+s;var h=f?(r[u]||[])[g]:r[a];if(!h){p=!1;continue}p=q4(e,h,u,g,n,r,p)}}Be(e,146)}function G4(e,r){!r||!r["!merges"]||(Be(e,177,F4(r["!merges"].length)),r["!merges"].forEach(function(t){Be(e,176,L4(t))}),Be(e,178))}function Y4(e,r){!r||!r["!cols"]||(Be(e,390),r["!cols"].forEach(function(t,n){t&&Be(e,60,R4(n,t))}),Be(e,391))}function X4(e,r){!r||!r["!ref"]||(Be(e,648),Be(e,649,U4(lr(r["!ref"]))),Be(e,650))}function $4(e,r,t){r["!links"].forEach(function(n){if(n[1].Target){var i=Gt(t,-1,n[1].Target.replace(/#.*$/,""),Mt.HLINK);Be(e,494,k4(n,i))}}),delete r["!links"]}function K4(e,r,t,n){if(r["!comments"].length>0){var i=Gt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Mt.VML);Be(e,551,oc("rId"+i)),r["!legacy"]=i}}function J4(e,r,t,n){if(r["!autofilter"]){var i=r["!autofilter"],a=typeof i.ref=="string"?i.ref:Lr(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,o=Dn(a);o.s.r==o.e.r&&(o.e.r=Dn(r["!ref"]).e.r,a=Lr(o));for(var f=0;f<s.length;++f){var c=s[f];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+t.SheetNames[n]+"'!"+a;break}}f==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+a}),Be(e,161,Bs(lr(a))),Be(e,162)}}function Z4(e,r,t){Be(e,133),Be(e,137,j4(r,t)),Be(e,138),Be(e,134)}function Q4(e,r){r["!protect"]&&Be(e,535,z4(r["!protect"]))}function e3(e,r,t,n){var i=yn(),a=t.SheetNames[e],s=t.Sheets[a]||{},o=a;try{t&&t.Workbook&&(o=t.Workbook.Sheets[e].CodeName||o)}catch{}var f=lr(s["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Be(i,129),(t.vbaraw||s["!outline"])&&Be(i,147,Yx(o,s["!outline"])),Be(i,148,qx(f)),Z4(i,s,t.Workbook),Y4(i,s),V4(i,s,e,r),Q4(i,s),J4(i,s,t,e),G4(i,s),$4(i,s,n),s["!margins"]&&Be(i,476,M4(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&X4(i,s),K4(i,s,e,n),Be(i,130),i.end()}function t3(e,r){e.l+=10;var t=an(e);return{name:t}}var r3=[["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 n3(e){return!e.Workbook||!e.Workbook.WBProps?"false":I5(e.Workbook.WBProps.date1904)?"true":"false"}var i3="][*?/\\".split("");function td(e,r){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var t=!0;return i3.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),t}function a3(e,r,t){e.forEach(function(n,i){td(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(t){var s=r&&r[i]&&r[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function s3(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];a3(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)Lx(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t)}function rd(e){var r=[Fr];r[r.length]=Ye("workbook",null,{xmlns:Ds[0],"xmlns:r":Br.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(r3.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=Ye("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),r[r.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:Yt(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=Ye("sheet",null,s)}return r[r.length]="</sheets>",t&&(r[r.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var f={name:o.Name};o.Comment&&(f.comment=o.Comment),o.Sheet!=null&&(f.localSheetId=""+o.Sheet),o.Hidden&&(f.hidden="1"),o.Ref&&(r[r.length]=Ye("definedName",Yt(o.Ref),f))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function o3(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Wf(e),t.name=an(e),t}function l3(e,r){return r||(r=ke(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),oc(e.strRelID,r),Ur(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function f3(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var i=r>8?an(e):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function c3(e,r){r||(r=ke(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),p1(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function u3(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),a=ng(e),s=_x(e,0,t),o=sc(e);e.l=n;var f={Name:a,Ptg:s};return i<268435455&&(f.Sheet=i),o&&(f.Comment=o),f}function h3(e,r){Be(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,i={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};Be(e,156,l3(i))}Be(e,144)}function d3(e,r){r||(r=ke(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return Ur("SheetJS",r),Ur(Z0.version,r),Ur(Z0.version,r),Ur("7262",r),r.length>r.l?r.slice(0,r.l):r}function p3(e,r){r||(r=ke(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function g3(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,i=-1,a=-1;n<t.length;++n)!t[n]||!t[n].Hidden&&i==-1?i=n:t[n].Hidden==1&&a==-1&&(a=n);a>i||(Be(e,135),Be(e,158,p3(i)),Be(e,136))}}function m3(e,r){var t=yn();return Be(t,131),Be(t,128,d3()),Be(t,153,c3(e.Workbook&&e.Workbook.WBProps||null)),g3(t,e),h3(t,e),Be(t,132),t.end()}function v3(e,r,t){return(r.slice(-4)===".bin"?m3:rd)(e)}function x3(e,r,t,n,i){return(r.slice(-4)===".bin"?e3:Q1)(e,t,n,i)}function w3(e,r,t){return(r.slice(-4)===".bin"?Mm:B1)(e,t)}function y3(e,r,t){return(r.slice(-4)===".bin"?cm:I1)(e,t)}function b3(e,r,t){return(r.slice(-4)===".bin"?Qm:H1)(e)}function _3(e){return(e.slice(-4)===".bin"?Vm:z1)()}function S3(e,r){var t=[];return e.Props&&t.push(wg(e.Props,r)),e.Custprops&&t.push(yg(e.Props,e.Custprops)),t.join("")}function A3(){return""}function T3(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var a=[];a.push(Ye("NumberFormat",null,{"ss:Format":Yt(gr[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(Ye("Style",a.join(""),s))}),Ye("Styles",t.join(""))}function nd(e){return Ye("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+uc(e.Ref,{r:0,c:0})})}function N3(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n<r.length;++n){var i=r[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||t.push(nd(i)))}return Ye("Names",t.join(""))}function E3(e,r,t,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==t&&(o.Name.match(/^_xlfn\./)||a.push(nd(o)))}return a.join("")}function L3(e,r,t,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(Ye("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(Ye("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(Ye("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[t])if(n.Workbook.Sheets[t].Hidden)i.push(Ye("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<t&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==t&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Gr("ProtectContents","True")),e["!protect"].objects&&i.push(Gr("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Gr("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Gr("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Gr("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(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":Ye("WorksheetOptions",i.join(""),{xmlns:On.x})}function F3(e){return e.map(function(r){var t=O5(r.t||""),n=Ye("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ye("Comment",n,{"ss:Author":r.a})}).join("")}function C3(e,r,t,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var o={};if(e.f&&(o["ss:Formula"]="="+Yt(uc(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var f=jr(e.F.slice(r.length+1));o["ss:ArrayRange"]="RC:R"+(f.r==s.r?"":"["+(f.r-s.r)+"]")+"C"+(f.c==s.c?"":"["+(f.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=Yt(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=Yt(e.l.Tooltip))),t["!merges"])for(var c=t["!merges"],u=0;u!=c.length;++u)c[u].s.c!=s.c||c[u].s.r!=s.r||(c[u].e.c>c[u].s.c&&(o["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(o["ss:MergeDown"]=c[u].e.r-c[u].s.r));var p="",g="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",g=String(e.v);break;case"b":p="Boolean",g=e.v?"1":"0";break;case"e":p="Error",g=Yo[e.v];break;case"d":p="DateTime",g=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||gr[14]);break;case"s":p="String",g=P5(e.v||"");break}var h=_a(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+h),o["ss:Index"]=s.c+1;var w=e.v!=null?g:"",v=e.t=="z"?"":'<Data ss:Type="'+p+'">'+w+"</Data>";return(e.c||[]).length>0&&(v+=F3(e.c)),Ye("Cell",v,o)}function k3(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=M1(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function P3(e,r,t,n){if(!e["!ref"])return"";var i=lr(e["!ref"]),a=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach(function(b,_){fc(b);var S=!!b.width,A=Sl(_,b),k={"ss:Index":_+1};S&&(k["ss:Width"]=ll(A.width)),b.hidden&&(k["ss:Hidden"]="1"),o.push(Ye("Column",null,k))});for(var f=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[k3(c,(e["!rows"]||[])[c])],p=i.s.c;p<=i.e.c;++p){var g=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>p)&&!(a[s].s.r>c)&&!(a[s].e.c<p)&&!(a[s].e.r<c)){(a[s].s.c!=p||a[s].s.r!=c)&&(g=!0);break}if(!g){var h={r:c,c:p},w=Xt(h),v=f?(e[c]||[])[p]:e[w];u.push(C3(v,w,e,r,t,n,h))}}u.push("</Row>"),u.length>2&&o.push(u.join(""))}return o.join("")}function O3(e,r,t){var n=[],i=t.SheetNames[e],a=t.Sheets[i],s=a?E3(a,r,e,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?P3(a,r,e,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(L3(a,r,e,t)),n.join("")}function I3(e,r){r||(r={}),e.SSF||(e.SSF=_n(gr)),e.SSF&&(xl(),vl(e.SSF),r.revssf=wl(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(S3(e,r)),t.push(A3()),t.push(""),t.push("");for(var n=0;n<e.SheetNames.length;++n)t.push(Ye("Worksheet",O3(n,r,e),{"ss:Name":Yt(e.SheetNames[n])}));return t[2]=T3(e,r),t[3]=N3(e),Fr+Ye("Workbook",t.join(""),{xmlns:On.ss,"xmlns:o":On.o,"xmlns:x":On.x,"xmlns:ss":On.ss,"xmlns:dt":On.dt,"xmlns:html":On.html})}var Af={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function R3(e,r){var t=[],n=[],i=[],a=0,s,o=Tu(Bu,"n"),f=Tu(ju,"n");if(e.Props)for(s=Xr(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(o,s[a])?t:Object.prototype.hasOwnProperty.call(f,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=Xr(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(o,s[a])?t:Object.prototype.hasOwnProperty.call(f,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var c=[];for(a=0;a<i.length;++a)E1.indexOf(i[a][0])>-1||A1.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&Jt.utils.cfb_add(r,"/SummaryInformation",qu(n,Af.SI,f,ju)),(t.length||c.length)&&Jt.utils.cfb_add(r,"/DocumentSummaryInformation",qu(t,Af.DSI,o,Bu,c.length?c:null,Af.UDI))}function D3(e,r){var t=r||{},n=Jt.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return Jt.utils.cfb_add(n,i,id(e,t)),t.biff==8&&(e.Props||e.Custprops)&&R3(e,n),t.biff==8&&e.vbaraw&&ev(n,Jt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var M3={0:{f:Ux},1:{f:Xx},2:{f:p4},3:{f:r4},4:{f:Zx},5:{f:c4},6:{f:w4},7:{f:s4},8:{f:N4},9:{f:T4},10:{f:S4},11:{f:A4},12:{f:Kx},13:{f:m4},14:{f:i4},15:{f:e4},16:{f:h4},17:{f:b4},18:{f:l4},19:{f:ac},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:u3},40:{},42:{},43:{f:wm},44:{f:vm},45:{f:_m},46:{f:Am},47:{f:Sm},48:{},49:{f:K5},50:{},51:{f:Um},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Jg},62:{f:x4},63:{f:Gm},64:{f:W4},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ni,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:B4},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:Gx},148:{f:Hx,p:16},151:{f:P4},152:{},153:{f:f3},154:{},155:{},156:{f:o3},157:{},158:{},159:{T:1,f:om},160:{T:-1},161:{T:1,f:Ka},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:E4},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:Bm},336:{T:-1},337:{f:Hm,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:Wf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Vg},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:O4},427:{f:I4},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:D4},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Vx},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:C4},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:Wf},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:Jm},633:{T:1},634:{T:-1},635:{T:1,f:$m},636:{T:-1},637:{f:eg},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:t3},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:H4},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 Xe(e,r,t,n){var i=r;if(!isNaN(i)){var a=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&rc(t)&&e.push(t)}}function B3(e,r,t,n){var i=(t||[]).length||0;if(i<=8224)return Xe(e,r,t,i);var a=r;if(!isNaN(a)){for(var s=t.parts||[],o=0,f=0,c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;var u=e.next(4);for(u.write_shift(2,a),u.write_shift(2,c),e.push(t.slice(f,f+c)),f+=c;f<i;){for(u=e.next(4),u.write_shift(2,60),c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;u.write_shift(2,c),e.push(t.slice(f,f+c)),f+=c}}}function $o(e,r,t){return e||(e=ke(7)),e.write_shift(2,r),e.write_shift(2,t),e.write_shift(2,0),e.write_shift(1,0),e}function j3(e,r,t,n){var i=ke(9);return $o(i,e,r),F1(t,n||"b",i),i}function U3(e,r,t){var n=ke(8+2*t.length);return $o(n,e,r),n.write_shift(1,t.length),n.write_shift(t.length,t,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function z3(e,r,t,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?bn(hn(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?Xe(e,2,tm(t,n,i)):Xe(e,3,em(t,n,i));return;case"b":case"e":Xe(e,5,j3(t,n,r.v,r.t));return;case"s":case"str":Xe(e,4,U3(t,n,(r.v||"").slice(0,255)));return}Xe(e,1,$o(null,t,n))}function W3(e,r,t,n){var i=Array.isArray(r),a=lr(r["!ref"]||"A1"),s,o="",f=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!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),s=Lr(a)}for(var c=a.s.r;c<=a.e.r;++c){o=Yr(c);for(var u=a.s.c;u<=a.e.c;++u){c===a.s.r&&(f[u]=nn(u)),s=f[u]+o;var p=i?(r[c]||[])[u]:r[s];p&&z3(e,p,c,u)}}}function H3(e,r){for(var t=r||{},n=yn(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==t.sheet&&(i=a);if(i==0&&t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return Xe(n,t.biff==4?1033:t.biff==3?521:9,lc(e,16,t)),W3(n,e.Sheets[e.SheetNames[i]],i,t),Xe(n,10),n.end()}function q3(e,r,t){Xe(e,49,Mg({sz:12,name:"Arial"},t))}function V3(e,r,t){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Xe(e,1054,Ug(i,r[i],t))})}function G3(e,r){var t=ke(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),Xe(e,2151,t),t=ke(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),P1(lr(r["!ref"]||"A1"),t),t.write_shift(4,4),Xe(e,2152,t)}function Y3(e,r){for(var t=0;t<16;++t)Xe(e,224,Gu({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){Xe(e,224,Gu(n,0,r))})}function X3(e,r){for(var t=0;t<r["!links"].length;++t){var n=r["!links"][t];Xe(e,440,Xg(n)),n[1].Tooltip&&Xe(e,2048,$g(n))}delete r["!links"]}function $3(e,r){if(r){var t=0;r.forEach(function(n,i){++t<=256&&n&&Xe(e,125,Zg(Sl(i,n),i))})}}function K3(e,r,t,n,i){var a=16+_a(i.cellXfs,r,i);if(r.v==null&&!r.bf){Xe(e,513,qa(t,n,a));return}if(r.bf)Xe(e,6,yx(r,t,n,i,a));else switch(r.t){case"d":case"n":var s=r.t=="d"?bn(hn(r.v)):r.v;Xe(e,515,qg(t,n,s,a));break;case"b":case"e":Xe(e,517,Hg(t,n,r.v,a,i,r.t));break;case"s":case"str":if(i.bookSST){var o=dc(i.Strings,r.v,i.revStrings);Xe(e,253,Bg(t,n,o,a))}else Xe(e,516,jg(t,n,(r.v||"").slice(0,255),a,i));break;default:Xe(e,513,qa(t,n,a))}}function J3(e,r,t){var n=yn(),i=t.SheetNames[e],a=t.Sheets[i]||{},s=(t||{}).Workbook||{},o=(s.Sheets||[])[e]||{},f=Array.isArray(a),c=r.biff==8,u,p="",g=[],h=lr(a["!ref"]||"A1"),w=c?65536:16384;if(h.e.c>255||h.e.r>=w){if(r.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,w-1)}Xe(n,2057,lc(t,16,r)),Xe(n,13,Xn(1)),Xe(n,12,Xn(100)),Xe(n,15,un(!0)),Xe(n,17,un(!1)),Xe(n,16,Ha(.001)),Xe(n,95,un(!0)),Xe(n,42,un(!1)),Xe(n,43,un(!1)),Xe(n,130,Xn(1)),Xe(n,128,Wg()),Xe(n,131,un(!1)),Xe(n,132,un(!1)),c&&$3(n,a["!cols"]),Xe(n,512,zg(h,r)),c&&(a["!links"]=[]);for(var v=h.s.r;v<=h.e.r;++v){p=Yr(v);for(var b=h.s.c;b<=h.e.c;++b){v===h.s.r&&(g[b]=nn(b)),u=g[b]+p;var _=f?(a[v]||[])[b]:a[u];_&&(K3(n,_,v,b,r),c&&_.l&&a["!links"].push([u,_.l]))}}var S=o.CodeName||o.name||i;return c&&Xe(n,574,Dg((s.Views||[])[0])),c&&(a["!merges"]||[]).length&&Xe(n,229,Yg(a["!merges"])),c&&X3(n,a),Xe(n,442,k1(S)),c&&G3(n,a),Xe(n,10),n.end()}function Z3(e,r,t){var n=yn(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=t.biff==8,f=t.biff==5;if(Xe(n,2057,lc(e,5,t)),t.bookType=="xla"&&Xe(n,135),Xe(n,225,o?Xn(1200):null),Xe(n,193,Sg(2)),f&&Xe(n,191),f&&Xe(n,192),Xe(n,226),Xe(n,92,Pg("SheetJS",t)),Xe(n,66,Xn(o?1200:1252)),o&&Xe(n,353,Xn(0)),o&&Xe(n,448),Xe(n,317,Qg(e.SheetNames.length)),o&&e.vbaraw&&Xe(n,211),o&&e.vbaraw){var c=s.CodeName||"ThisWorkbook";Xe(n,442,k1(c))}Xe(n,156,Xn(17)),Xe(n,25,un(!1)),Xe(n,18,un(!1)),Xe(n,19,Xn(0)),o&&Xe(n,431,un(!1)),o&&Xe(n,444,Xn(0)),Xe(n,61,Rg()),Xe(n,64,un(!1)),Xe(n,141,Xn(0)),Xe(n,34,un(n3(e)=="true")),Xe(n,14,un(!0)),o&&Xe(n,439,un(!1)),Xe(n,218,Xn(0)),q3(n,e,t),V3(n,e.SSF,t),Y3(n,t),o&&Xe(n,352,un(!1));var u=n.end(),p=yn();o&&Xe(p,140,Kg()),o&&t.Strings&&B3(p,252,Ig(t.Strings)),Xe(p,10);var g=p.end(),h=yn(),w=0,v=0;for(v=0;v<e.SheetNames.length;++v)w+=(o?12:11)+(o?2:1)*e.SheetNames[v].length;var b=u.length+w+g.length;for(v=0;v<e.SheetNames.length;++v){var _=a[v]||{};Xe(h,133,Og({pos:b,hs:_.Hidden||0,dt:0,name:e.SheetNames[v]},t)),b+=r[v].length}var S=h.end();if(w!=S.length)throw new Error("BS8 "+w+" != "+S.length);var A=[];return u.length&&A.push(u),S.length&&A.push(S),g.length&&A.push(g),Vr(A)}function Q3(e,r){var t=r||{},n=[];e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(xl(),vl(e.SSF),t.revssf=wl(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,pc(t),t.cellXfs=[],_a(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=J3(i,t,e);return n.unshift(Z3(e,n,t)),Vr(n)}function id(e,r){for(var t=0;t<=e.SheetNames.length;++t){var n=e.Sheets[e.SheetNames[t]];if(!(!n||!n["!ref"])){var i=Dn(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var a=r||{};switch(a.biff||2){case 8:case 5:return Q3(e,r);case 4:case 3:case 2:return H3(e,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function ew(e,r,t,n){for(var i=e["!merges"]||[],a=[],s=r.s.c;s<=r.e.c;++s){for(var o=0,f=0,c=0;c<i.length;++c)if(!(i[c].s.r>t||i[c].s.c>s)&&!(i[c].e.r<t||i[c].e.c<s)){if(i[c].s.r<t||i[c].s.c<s){o=-1;break}o=i[c].e.r-i[c].s.r+1,f=i[c].e.c-i[c].s.c+1;break}if(!(o<0)){var u=Xt({r:t,c:s}),p=n.dense?(e[t]||[])[s]:e[u],g=p&&p.v!=null&&(p.h||k5(p.w||(Vi(p),p.w)||""))||"",h={};o>1&&(h.rowspan=o),f>1&&(h.colspan=f),n.editable?g='<span contenteditable="true">'+g+"</span>":p&&(h["data-t"]=p&&p.t||"z",p.v!=null&&(h["data-v"]=p.v),p.z!=null&&(h["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(g='<a href="'+p.l.Target+'">'+g+"</a>")),h.id=(n.id||"sjs")+"-"+u,a.push(Ye("td",g,h))}}var w="<tr>";return w+a.join("")+"</tr>"}var tw='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',rw="</body></html>";function nw(e,r,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function ad(e,r){var t=r||{},n=t.header!=null?t.header:tw,i=t.footer!=null?t.footer:rw,a=[n],s=Dn(e["!ref"]);t.dense=Array.isArray(e),a.push(nw(e,s,t));for(var o=s.s.r;o<=s.e.r;++o)a.push(ew(e,s,o,t));return a.push("</table>"+i),a.join("")}function sd(e,r,t){var n=t||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?jr(n.origin):n.origin;i=s.r,a=s.c}var o=r.getElementsByTagName("tr"),f=Math.min(n.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var u=Dn(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 p=[],g=0,h=e["!rows"]||(e["!rows"]=[]),w=0,v=0,b=0,_=0,S=0,A=0;for(e["!cols"]||(e["!cols"]=[]);w<o.length&&v<f;++w){var k=o[w];if(Qu(k)){if(n.display)continue;h[v]={hidden:!0}}var M=k.children;for(b=_=0;b<M.length;++b){var K=M[b];if(!(n.display&&Qu(K))){var F=K.hasAttribute("data-v")?K.getAttribute("data-v"):K.hasAttribute("v")?K.getAttribute("v"):R5(K.innerHTML),P=K.getAttribute("data-z")||K.getAttribute("z");for(g=0;g<p.length;++g){var D=p[g];D.s.c==_+a&&D.s.r<v+i&&v+i<=D.e.r&&(_=D.e.c+1-a,g=-1)}A=+K.getAttribute("colspan")||1,((S=+K.getAttribute("rowspan")||1)>1||A>1)&&p.push({s:{r:v+i,c:_+a},e:{r:v+i+(S||1)-1,c:_+a+(A||1)-1}});var V={t:"s",v:F},E=K.getAttribute("data-t")||K.getAttribute("t")||"";F!=null&&(F.length==0?V.t=E||"z":n.raw||F.trim().length==0||E=="s"||(F==="TRUE"?V={t:"b",v:!0}:F==="FALSE"?V={t:"b",v:!1}:isNaN(Wi(F))?isNaN(jo(F).getDate())||(V={t:"d",v:hn(F)},n.cellDates||(V={t:"n",v:bn(V.v)}),V.z=n.dateNF||gr[14]):V={t:"n",v:Wi(F)})),V.z===void 0&&P!=null&&(V.z=P);var T="",z=K.getElementsByTagName("A");if(z&&z.length)for(var Y=0;Y<z.length&&!(z[Y].hasAttribute("href")&&(T=z[Y].getAttribute("href"),T.charAt(0)!="#"));++Y);T&&T.charAt(0)!="#"&&(V.l={Target:T}),n.dense?(e[v+i]||(e[v+i]=[]),e[v+i][_+a]=V):e[Xt({c:_+a,r:v+i})]=V,c.e.c<_+a&&(c.e.c=_+a),_+=A}}++v}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),c.e.r=Math.max(c.e.r,v-1+i),e["!ref"]=Lr(c),v>=f&&(e["!fullref"]=Lr((c.e.r=o.length-w+v-1+i,c))),e}function od(e,r){var t=r||{},n=t.dense?[]:{};return sd(n,e,r)}function iw(e,r){return Ga(od(e,r),r)}function Qu(e){var r="",t=aw(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function aw(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var sw=(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(""),r="<office:document-styles "+zo({"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 Fr+r}})(),eh=(function(){var e=function(a){return Yt(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell />
312
+ `,t=` <table:covered-table-cell/>
313
+ `,n=function(a,s,o){var f=[];f.push(' <table:table table:name="'+Yt(s.SheetNames[o])+`" table:style-name="ta1">
314
+ `);var c=0,u=0,p=Dn(a["!ref"]||"A1"),g=a["!merges"]||[],h=0,w=Array.isArray(a);if(a["!cols"])for(u=0;u<=p.e.c;++u)f.push(" <table:table-column"+(a["!cols"][u]?' table:style-name="co'+a["!cols"][u].ods+'"':"")+`></table:table-column>
315
+ `);var v="",b=a["!rows"]||[];for(c=0;c<p.s.r;++c)v=b[c]?' table:style-name="ro'+b[c].ods+'"':"",f.push(" <table:table-row"+v+`></table:table-row>
316
+ `);for(;c<=p.e.r;++c){for(v=b[c]?' table:style-name="ro'+b[c].ods+'"':"",f.push(" <table:table-row"+v+`>
317
+ `),u=0;u<p.s.c;++u)f.push(r);for(;u<=p.e.c;++u){var _=!1,S={},A="";for(h=0;h!=g.length;++h)if(!(g[h].s.c>u)&&!(g[h].s.r>c)&&!(g[h].e.c<u)&&!(g[h].e.r<c)){(g[h].s.c!=u||g[h].s.r!=c)&&(_=!0),S["table:number-columns-spanned"]=g[h].e.c-g[h].s.c+1,S["table:number-rows-spanned"]=g[h].e.r-g[h].s.r+1;break}if(_){f.push(t);continue}var k=Xt({r:c,c:u}),M=w?(a[c]||[])[u]:a[k];if(M&&M.f&&(S["table:formula"]=Yt(Nx(M.f)),M.F&&M.F.slice(0,k.length)==k)){var K=Dn(M.F);S["table:number-matrix-columns-spanned"]=K.e.c-K.s.c+1,S["table:number-matrix-rows-spanned"]=K.e.r-K.s.r+1}if(!M){f.push(r);continue}switch(M.t){case"b":A=M.v?"TRUE":"FALSE",S["office:value-type"]="boolean",S["office:boolean-value"]=M.v?"true":"false";break;case"n":A=M.w||String(M.v||0),S["office:value-type"]="float",S["office:value"]=M.v||0;break;case"s":case"str":A=M.v==null?"":M.v,S["office:value-type"]="string";break;case"d":A=M.w||hn(M.v).toISOString(),S["office:value-type"]="date",S["office:date-value"]=hn(M.v).toISOString(),S["table:style-name"]="ce1";break;default:f.push(r);continue}var F=e(A);if(M.l&&M.l.Target){var P=M.l.Target;P=P.charAt(0)=="#"?"#"+Ex(P.slice(1)):P,P.charAt(0)!="#"&&!P.match(/^\w+:/)&&(P="../"+P),F=Ye("text:a",F,{"xlink:href":P.replace(/&/g,"&amp;")})}f.push(" "+Ye("table:table-cell",Ye("text:p",F,{}),S)+`
318
+ `)}f.push(` </table:table-row>
319
+ `)}return f.push(` </table:table>
320
+ `),f.join("")},i=function(a,s){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 o=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var p=c["!cols"][u];if(p.width==null&&p.wpx==null&&p.wch==null)continue;fc(p),p.ods=o;var g=c["!cols"][u].wpx+"px";a.push(' <style:style style:name="co'+o+`" style:family="table-column">
329
+ `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+g+`"/>
330
+ `),a.push(` </style:style>
331
+ `),++o}}});var f=0;s.SheetNames.map(function(c){return s.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=f;var p=c["!rows"][u].hpx+"px";a.push(' <style:style style:name="ro'+f+`" style:family="table-row">
332
+ `),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
333
+ `),a.push(` </style:style>
334
+ `),++f}}}),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(s,o){var f=[Fr],c=zo({"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=zo({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(f.push("<office:document"+c+u+`>
340
+ `),f.push(_1().replace(/office:document-meta/g,"office:meta"))):f.push("<office:document-content"+c+`>
341
+ `),i(f,s),f.push(` <office:body>
342
+ `),f.push(` <office:spreadsheet>
343
+ `);for(var p=0;p!=s.SheetNames.length;++p)f.push(n(s.Sheets[s.SheetNames[p]],s,p));return f.push(` </office:spreadsheet>
344
+ `),f.push(` </office:body>
345
+ `),o.bookType=="fods"?f.push("</office:document>"):f.push("</office:document-content>"),f.join("")}})();function ld(e,r){if(r.bookType=="fods")return eh(e,r);var t=Zf(),n="",i=[],a=[];return n="mimetype",Et(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Et(t,n,eh(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Et(t,n,sw(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Et(t,n,Fr+_1()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Et(t,n,xg(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Et(t,n,mg(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ul(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ow(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):fi(Uo(e))}function lw(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n<r.length;++n)if(e[t+n]!=r[n])continue e;return!0}return!1}function ba(e){var r=e.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(r),n=0;return e.forEach(function(i){t.set(i,n),n+=i.length}),t}function fw(e,r,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,n-6176);e[r+15]|=n>>7,e[r+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[r+a]=i&255;e[r+15]|=t>=0?0:128}function Wo(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Vt(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ps(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function Or(e){for(var r=[],t=[0];t[0]<e.length;){var n=t[0],i=Wo(e,t),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var f=t[0];e[t[0]++]>=128;);o=e.slice(f,t[0])}break;case 5:s=4,o=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,o=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=Wo(e,t),o=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var c={data:o,type:a};r[i]==null?r[i]=[c]:r[i].push(c)}return r}function Hr(e){var r=[];return e.forEach(function(t,n){t.forEach(function(i){i.data&&(r.push(Vt(n*8+i.type)),i.type==2&&r.push(Vt(i.data.length)),r.push(i.data))})}),ba(r)}function si(e){for(var r,t=[],n=[0];n[0]<e.length;){var i=Wo(e,n),a=Or(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ps(a[1][0].data),messages:[]};a[2].forEach(function(o){var f=Or(o.data),c=Ps(f[3][0].data);s.messages.push({meta:f,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(r=a[3])!=null&&r[0]&&(s.merge=Ps(a[3][0].data)>>>0>0),t.push(s)}return t}function _s(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Vt(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Vt(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Vt(s.data.length)}],n[2].push({data:Hr(s.meta),type:2})});var a=Hr(n);r.push(Vt(a.length)),r.push(a),i.forEach(function(s){return r.push(s)})}),ba(r)}function cw(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=Wo(r,t),i=[];t[0]<r.length;){var a=r[t[0]]&3;if(a==0){var s=r[t[0]++]>>2;if(s<60)++s;else{var o=s-59;s=r[t[0]],o>1&&(s|=r[t[0]+1]<<8),o>2&&(s|=r[t[0]+2]<<16),o>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=o}i.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var f=0,c=0;if(a==1?(c=(r[t[0]]>>2&7)+4,f=(r[t[0]++]&224)<<3,f|=r[t[0]++]):(c=(r[t[0]++]>>2)+1,a==2?(f=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(f=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),i=[ba(i)],f==0)throw new Error("Invalid offset 0");if(f>i[0].length)throw new Error("Invalid offset beyond length");if(c>=f)for(i.push(i[0].slice(-f)),c-=f;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-f,-f+c))}}var u=ba(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function oi(e){for(var r=[],t=0;t<e.length;){var n=e[t++],i=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push(cw(n,e.slice(t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return ba(r)}function Ss(e){for(var r=[],t=0;t<e.length;){var n=Math.min(e.length-t,268435455),i=new Uint8Array(4);r.push(i);var a=Vt(n),s=a.length;r.push(a),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e.slice(t,t+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,t+=n}return ba(r)}function Tf(e,r){var t=new Uint8Array(32),n=ul(t),i=12,a=0;switch(t[0]=5,e.t){case"n":t[1]=2,fw(t,i,e.v),a|=1,i+=16;break;case"b":t[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),t.slice(0,i)}function Nf(e,r){var t=new Uint8Array(32),n=ul(t),i=12,a=0;switch(t[0]=3,e.t){case"n":t[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":t[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),t.slice(0,i)}function ua(e){var r=Or(e);return Wo(r[1][0].data)}function uw(e,r,t){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&Ps(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var f=0,c=ul(e[7][0].data),u=0,p=[],g=ul(e[4][0].data),h=0,w=[],v=0;v<r.length;++v){if(r[v]==null){c.setUint16(v*2,65535,!0),g.setUint16(v*2,65535);continue}c.setUint16(v*2,u,!0),g.setUint16(v*2,h,!0);var b,_;switch(typeof r[v]){case"string":b=Tf({t:"s",v:r[v]},t),_=Nf({t:"s",v:r[v]},t);break;case"number":b=Tf({t:"n",v:r[v]},t),_=Nf({t:"n",v:r[v]},t);break;case"boolean":b=Tf({t:"b",v:r[v]},t),_=Nf({t:"b",v:r[v]},t);break;default:throw new Error("Unsupported value "+r[v])}p.push(b),u+=b.length,w.push(_),h+=_.length,++f}for(e[2][0].data=Vt(f);v<e[7][0].data.length/2;++v)c.setUint16(v*2,65535,!0),g.setUint16(v*2,65535,!0);return e[6][0].data=ba(p),e[3][0].data=ba(w),f}function hw(e,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Dn(t["!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(Lr(n)));var a=hl(t,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(L){return L.forEach(function(C){typeof C=="string"&&s.push(C)})});var o={},f=[],c=Jt.read(r.numbers,{type:"base64"});c.FileIndex.map(function(L,C){return[L,c.FullPaths[C]]}).forEach(function(L){var C=L[0],O=L[1];if(C.type==2&&C.name.match(/\.iwa/)){var H=C.content,fe=oi(H),ce=si(fe);ce.forEach(function(he){f.push(he.id),o[he.id]={deps:[],location:O,type:Ps(he.messages[0].meta[1][0].data)}})}}),f.sort(function(L,C){return L-C});var u=f.filter(function(L){return L>1}).map(function(L){return[L,Vt(L)]});c.FileIndex.map(function(L,C){return[L,c.FullPaths[C]]}).forEach(function(L){var C=L[0];if(L[1],!!C.name.match(/\.iwa/)){var O=si(oi(C.content));O.forEach(function(H){H.messages.forEach(function(fe){u.forEach(function(ce){H.messages.some(function(he){return Ps(he.meta[1][0].data)!=11006&&lw(he.data,ce[1])})&&o[ce[0]].deps.push(H.id)})})})}});for(var p=Jt.find(c,o[1].location),g=si(oi(p.content)),h,w=0;w<g.length;++w){var v=g[w];v.id==1&&(h=v)}var b=ua(Or(h.messages[0].data)[1][0].data);for(p=Jt.find(c,o[b].location),g=si(oi(p.content)),w=0;w<g.length;++w)v=g[w],v.id==b&&(h=v);for(b=ua(Or(h.messages[0].data)[2][0].data),p=Jt.find(c,o[b].location),g=si(oi(p.content)),w=0;w<g.length;++w)v=g[w],v.id==b&&(h=v);for(b=ua(Or(h.messages[0].data)[2][0].data),p=Jt.find(c,o[b].location),g=si(oi(p.content)),w=0;w<g.length;++w)v=g[w],v.id==b&&(h=v);var _=Or(h.messages[0].data);{_[6][0].data=Vt(n.e.r+1),_[7][0].data=Vt(n.e.c+1);var S=ua(_[46][0].data),A=Jt.find(c,o[S].location),k=si(oi(A.content));{for(var M=0;M<k.length&&k[M].id!=S;++M);if(k[M].id!=S)throw"Bad ColumnRowUIDMapArchive";var K=Or(k[M].messages[0].data);K[1]=[],K[2]=[],K[3]=[];for(var F=0;F<=n.e.c;++F){var P=[];P[1]=P[2]=[{type:0,data:Vt(F+420690)}],K[1].push({type:2,data:Hr(P)}),K[2].push({type:0,data:Vt(F)}),K[3].push({type:0,data:Vt(F)})}K[4]=[],K[5]=[],K[6]=[];for(var D=0;D<=n.e.r;++D)P=[],P[1]=P[2]=[{type:0,data:Vt(D+726270)}],K[4].push({type:2,data:Hr(P)}),K[5].push({type:0,data:Vt(D)}),K[6].push({type:0,data:Vt(D)});k[M].messages[0].data=Hr(K)}A.content=Ss(_s(k)),A.size=A.content.length,delete _[46];var V=Or(_[4][0].data);{V[7][0].data=Vt(n.e.r+1);var E=Or(V[1][0].data),T=ua(E[2][0].data);A=Jt.find(c,o[T].location),k=si(oi(A.content));{if(k[0].id!=T)throw"Bad HeaderStorageBucket";var z=Or(k[0].messages[0].data);for(D=0;D<a.length;++D){var Y=Or(z[2][0].data);Y[1][0].data=Vt(D),Y[4][0].data=Vt(a[D].length),z[2][D]={type:z[2][0].type,data:Hr(Y)}}k[0].messages[0].data=Hr(z)}A.content=Ss(_s(k)),A.size=A.content.length;var ue=ua(V[2][0].data);A=Jt.find(c,o[ue].location),k=si(oi(A.content));{if(k[0].id!=ue)throw"Bad HeaderStorageBucket";for(z=Or(k[0].messages[0].data),F=0;F<=n.e.c;++F)Y=Or(z[2][0].data),Y[1][0].data=Vt(F),Y[4][0].data=Vt(n.e.r+1),z[2][F]={type:z[2][0].type,data:Hr(Y)};k[0].messages[0].data=Hr(z)}A.content=Ss(_s(k)),A.size=A.content.length;var Q=ua(V[4][0].data);(function(){for(var L=Jt.find(c,o[Q].location),C=si(oi(L.content)),O,H=0;H<C.length;++H){var fe=C[H];fe.id==Q&&(O=fe)}var ce=Or(O.messages[0].data);{ce[3]=[];var he=[];s.forEach(function(De,He){he[1]=[{type:0,data:Vt(He)}],he[2]=[{type:0,data:Vt(1)}],he[3]=[{type:2,data:ow(De)}],ce[3].push({type:2,data:Hr(he)})})}O.messages[0].data=Hr(ce);var we=_s(C),Pe=Ss(we);L.content=Pe,L.size=L.content.length})();var J=Or(V[3][0].data);{var oe=J[1][0];delete J[2];var te=Or(oe.data);{var pe=ua(te[2][0].data);(function(){for(var L=Jt.find(c,o[pe].location),C=si(oi(L.content)),O,H=0;H<C.length;++H){var fe=C[H];fe.id==pe&&(O=fe)}var ce=Or(O.messages[0].data);{delete ce[6],delete J[7];var he=new Uint8Array(ce[5][0].data);ce[5]=[];for(var we=0,Pe=0;Pe<=n.e.r;++Pe){var De=Or(he);we+=uw(De,a[Pe],s),De[1][0].data=Vt(Pe),ce[5].push({data:Hr(De),type:2})}ce[1]=[{type:0,data:Vt(n.e.c+1)}],ce[2]=[{type:0,data:Vt(n.e.r+1)}],ce[3]=[{type:0,data:Vt(we)}],ce[4]=[{type:0,data:Vt(n.e.r+1)}]}O.messages[0].data=Hr(ce);var He=_s(C),$e=Ss(He);L.content=$e,L.size=L.content.length})()}oe.data=Hr(te)}V[3][0].data=Hr(J)}_[4][0].data=Hr(V)}h.messages[0].data=Hr(_);var ie=_s(g),y=Ss(ie);return p.content=y,p.size=p.content.length,c}function dw(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function pc(e){dw([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function pw(e,r){return r.bookType=="ods"?ld(e,r):r.bookType=="numbers"?hw(e,r):r.bookType=="xlsb"?gw(e,r):mw(e,r)}function gw(e,r){Es=1024,e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(xl(),vl(e.SSF),r.revssf=wl(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Io?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t=r.bookType=="xlsb"?"bin":"xml",n=q1.indexOf(r.bookType)>-1,i=w1();pc(r=r||{});var a=Zf(),s="",o=0;if(r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Et(a,s,S1(e.Props,r)),i.coreprops.push(s),Gt(r.rels,2,s,Mt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var f=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&f.push(e.SheetNames[c]);e.Props.SheetNames=f}for(e.Props.Worksheets=e.Props.SheetNames.length,Et(a,s,T1(e.Props)),i.extprops.push(s),Gt(r.rels,3,s,Mt.EXT_PROPS),e.Custprops!==e.Props&&Xr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Et(a,s,N1(e.Custprops)),i.custprops.push(s),Gt(r.rels,4,s,Mt.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var u={"!id":{}},p=e.Sheets[e.SheetNames[o-1]],g=(p||{})["!type"]||"sheet";switch(g){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Et(a,s,x3(o-1,s,r,e,u)),i.sheets.push(s),Gt(r.wbrels,-1,"worksheets/sheet"+o+"."+t,Mt.WS[0])}if(p){var h=p["!comments"],w=!1,v="";h&&h.length>0&&(v="xl/comments"+o+"."+t,Et(a,v,b3(h,v)),i.comments.push(v),Gt(u,-1,"../comments"+o+"."+t,Mt.CMNT),w=!0),p["!legacy"]&&w&&Et(a,"xl/drawings/vmlDrawing"+o+".vml",W1(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Et(a,b1(s),Cs(u))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Et(a,s,y3(r.Strings,s,r)),i.strs.push(s),Gt(r.wbrels,-1,"sharedStrings."+t,Mt.SST)),s="xl/workbook."+t,Et(a,s,v3(e,s)),i.workbooks.push(s),Gt(r.rels,1,s,Mt.WB),s="xl/theme/theme1.xml",Et(a,s,U1(e.Themes,r)),i.themes.push(s),Gt(r.wbrels,-1,"theme/theme1.xml",Mt.THEME),s="xl/styles."+t,Et(a,s,w3(e,s,r)),i.styles.push(s),Gt(r.wbrels,-1,"styles."+t,Mt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Et(a,s,e.vbaraw),i.vba.push(s),Gt(r.wbrels,-1,"vbaProject.bin",Mt.VBA)),s="xl/metadata."+t,Et(a,s,_3(s)),i.metadata.push(s),Gt(r.wbrels,-1,"metadata."+t,Mt.XLMETA),Et(a,"[Content_Types].xml",y1(i,r)),Et(a,"_rels/.rels",Cs(r.rels)),Et(a,"xl/_rels/workbook."+t+".rels",Cs(r.wbrels)),delete r.revssf,delete r.ssf,a}function mw(e,r){Es=1024,e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(xl(),vl(e.SSF),r.revssf=wl(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Io?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=q1.indexOf(r.bookType)>-1,i=w1();pc(r=r||{});var a=Zf(),s="",o=0;if(r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Et(a,s,S1(e.Props,r)),i.coreprops.push(s),Gt(r.rels,2,s,Mt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var f=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&f.push(e.SheetNames[c]);e.Props.SheetNames=f}e.Props.Worksheets=e.Props.SheetNames.length,Et(a,s,T1(e.Props)),i.extprops.push(s),Gt(r.rels,3,s,Mt.EXT_PROPS),e.Custprops!==e.Props&&Xr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Et(a,s,N1(e.Custprops)),i.custprops.push(s),Gt(r.rels,4,s,Mt.CUST_PROPS));var u=["SheetJ5"];for(r.tcid=0,o=1;o<=e.SheetNames.length;++o){var p={"!id":{}},g=e.Sheets[e.SheetNames[o-1]],h=(g||{})["!type"]||"sheet";switch(h){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Et(a,s,Q1(o-1,r,e,p)),i.sheets.push(s),Gt(r.wbrels,-1,"worksheets/sheet"+o+"."+t,Mt.WS[0])}if(g){var w=g["!comments"],v=!1,b="";if(w&&w.length>0){var _=!1;w.forEach(function(S){S[1].forEach(function(A){A.T==!0&&(_=!0)})}),_&&(b="xl/threadedComments/threadedComment"+o+"."+t,Et(a,b,Ym(w,u,r)),i.threadedcomments.push(b),Gt(p,-1,"../threadedComments/threadedComment"+o+"."+t,Mt.TCMNT)),b="xl/comments"+o+"."+t,Et(a,b,H1(w)),i.comments.push(b),Gt(p,-1,"../comments"+o+"."+t,Mt.CMNT),v=!0}g["!legacy"]&&v&&Et(a,"xl/drawings/vmlDrawing"+o+".vml",W1(o,g["!comments"])),delete g["!comments"],delete g["!legacy"]}p["!id"].rId1&&Et(a,b1(s),Cs(p))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Et(a,s,I1(r.Strings,r)),i.strs.push(s),Gt(r.wbrels,-1,"sharedStrings."+t,Mt.SST)),s="xl/workbook."+t,Et(a,s,rd(e)),i.workbooks.push(s),Gt(r.rels,1,s,Mt.WB),s="xl/theme/theme1.xml",Et(a,s,U1(e.Themes,r)),i.themes.push(s),Gt(r.wbrels,-1,"theme/theme1.xml",Mt.THEME),s="xl/styles."+t,Et(a,s,B1(e,r)),i.styles.push(s),Gt(r.wbrels,-1,"styles."+t,Mt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Et(a,s,e.vbaraw),i.vba.push(s),Gt(r.wbrels,-1,"vbaProject.bin",Mt.VBA)),s="xl/metadata."+t,Et(a,s,z1()),i.metadata.push(s),Gt(r.wbrels,-1,"metadata."+t,Mt.XLMETA),u.length>1&&(s="xl/persons/person.xml",Et(a,s,Xm(u)),i.people.push(s),Gt(r.wbrels,-1,"persons/person.xml",Mt.PEOPLE)),Et(a,"[Content_Types].xml",y1(i,r)),Et(a,"_rels/.rels",Cs(r.rels)),Et(a,"xl/_rels/workbook."+t+".rels",Cs(r.wbrels)),delete r.revssf,delete r.ssf,a}function vw(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=qi(e.slice(0,12));break;case"binary":t=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 "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function fd(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return Vo(r.file,Jt.write(e,{type:jt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Jt.write(e,r)}function xw(e,r){var t=_n(r||{}),n=pw(e,t);return ww(n,t)}function ww(e,r){var t={},n=jt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var i=e.FullPaths?Jt.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno<"u"&&typeof i=="string"){if(r.type=="binary"||r.type=="base64")return i;i=new Uint8Array(ml(i))}return r.password&&typeof encrypt_agile<"u"?fd(encrypt_agile(i,r.password),r):r.type==="file"?Vo(r.file,i):r.type=="string"?Co(i):i}function yw(e,r){var t=r||{},n=D3(e,t);return fd(n,t)}function Si(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return Bo(Uo(n));case"binary":return Uo(n);case"string":return e;case"file":return Vo(r.file,n,"utf8");case"buffer":return jt?Gi(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Si(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function bw(e,r){switch(r.type){case"base64":return Bo(e);case"binary":return e;case"string":return e;case"file":return Vo(r.file,e,"binary");case"buffer":return jt?Gi(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function X0(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return r.type=="base64"?Bo(t):r.type=="string"?Co(t):t;case"file":return Vo(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function cd(e,r){$p(),s3(e);var t=_n(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=cd(e,t);return t.type="array",ml(n)}var i=0;if(t.sheet&&(typeof t.sheet=="number"?i=t.sheet:i=e.SheetNames.indexOf(t.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return Si(I3(e,t),t);case"slk":case"sylk":return Si(nm.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"htm":case"html":return Si(ad(e.Sheets[e.SheetNames[i]],t),t);case"txt":return bw(hd(e.Sheets[e.SheetNames[i]],t),t);case"csv":return Si(gc(e.Sheets[e.SheetNames[i]],t),t,"\uFEFF");case"dif":return Si(im.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"dbf":return X0(rm.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"prn":return Si(am.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"rtf":return Si(hm.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"eth":return Si(O1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"fods":return Si(ld(e,t),t);case"wk1":return X0(Yu.sheet_to_wk1(e.Sheets[e.SheetNames[i]],t),t);case"wk3":return X0(Yu.book_to_wk3(e,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),X0(id(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),yw(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return xw(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function _w(e){if(!e.bookType){var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType=r[e.bookType]||e.bookType}}function ud(e,r,t){var n={};return n.type="file",n.file=r,_w(n),cd(e,n)}function Sw(e,r,t,n,i,a,s,o){var f=Yr(t),c=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),p=!0,g=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(g,"__rowNum__",{value:t,enumerable:!1})}catch{g.__rowNum__=t}else g.__rowNum__=t;if(!s||e[t])for(var h=r.s.c;h<=r.e.c;++h){var w=s?e[t][h]:e[n[h]+f];if(w===void 0||w.t===void 0){if(c===void 0)continue;a[h]!=null&&(g[a[h]]=c);continue}var v=w.v;switch(w.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+w.t)}if(a[h]!=null){if(v==null)if(w.t=="e"&&v===null)g[a[h]]=null;else if(c!==void 0)g[a[h]]=c;else if(u&&v===null)g[a[h]]=null;else continue;else g[a[h]]=u&&(w.t!=="n"||w.t==="n"&&o.rawNumbers!==!1)?v:Vi(w,v,o);v!=null&&(p=!1)}}return{row:g,isempty:p}}function hl(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,o="",f={s:{r:0,c:0},e:{r:0,c:0}},c=r||{},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":f=lr(u);break;case"number":f=lr(e["!ref"]),f.s.r=u;break;default:f=u}n>0&&(i=0);var p=Yr(f.s.r),g=[],h=[],w=0,v=0,b=Array.isArray(e),_=f.s.r,S=0,A={};b&&!e[_]&&(e[_]=[]);var k=c.skipHidden&&e["!cols"]||[],M=c.skipHidden&&e["!rows"]||[];for(S=f.s.c;S<=f.e.c;++S)if(!(k[S]||{}).hidden)switch(g[S]=nn(S),t=b?e[_][S]:e[g[S]+p],n){case 1:a[S]=S-f.s.c;break;case 2:a[S]=g[S];break;case 3:a[S]=c.header[S-f.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),o=s=Vi(t,null,c),v=A[s]||0,!v)A[s]=1;else{do o=s+"_"+v++;while(A[o]);A[s]=v,A[o]=1}a[S]=o}for(_=f.s.r+i;_<=f.e.r;++_)if(!(M[_]||{}).hidden){var K=Sw(e,f,_,g,n,a,b,c);(K.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[w++]=K.row)}return h.length=w,h}var th=/"/g;function Aw(e,r,t,n,i,a,s,o){for(var f=!0,c=[],u="",p=Yr(t),g=r.s.c;g<=r.e.c;++g)if(n[g]){var h=o.dense?(e[t]||[])[g]:e[n[g]+p];if(h==null)u="";else if(h.v!=null){f=!1,u=""+(o.rawNumbers&&h.t=="n"?h.v:Vi(h,null,o));for(var w=0,v=0;w!==u.length;++w)if((v=u.charCodeAt(w))===i||v===a||v===34||o.forceQuotes){u='"'+u.replace(th,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(f=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(th,'""')+'"')):u="";c.push(u)}return o.blankrows===!1&&f?null:c.join(s)}function gc(e,r){var t=[],n=r??{};if(e==null||e["!ref"]==null)return"";var i=lr(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:`
346
+ `,f=o.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",p=[];n.dense=Array.isArray(e);for(var g=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],w=i.s.c;w<=i.e.c;++w)(g[w]||{}).hidden||(p[w]=nn(w));for(var v=0,b=i.s.r;b<=i.e.r;++b)(h[b]||{}).hidden||(u=Aw(e,i,b,p,s,f,a,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&t.push((v++?o:"")+u)));return delete n.dense,t.join("")}function hd(e,r){r||(r={}),r.FS=" ",r.RS=`
347
+ `;var t=gc(e,r);return t}function Tw(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var i=lr(e["!ref"]),a="",s=[],o,f=[],c=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)s[o]=nn(o);for(var u=i.s.r;u<=i.e.r;++u)for(a=Yr(u),o=i.s.c;o<=i.e.c;++o)if(r=s[o]+a,t=c?(e[u]||[])[o]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}f[f.length]=r+"="+n}return f}function dd(e,r,t){var n=t||{},i=+!n.skipHeader,a=e||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var f=typeof n.origin=="string"?jr(n.origin):n.origin;s=f.r,o=f.c}var c,u={s:{c:0,r:0},e:{c:o,r:s+r.length-1+i}};if(a["!ref"]){var p=lr(a["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),s==-1&&(s=p.e.r+1,u.e.r=s+r.length-1+i)}else s==-1&&(s=0,u.e.r=r.length-1+i);var g=n.header||[],h=0;r.forEach(function(v,b){Xr(v).forEach(function(_){(h=g.indexOf(_))==-1&&(g[h=g.length]=_);var S=v[_],A="z",k="",M=Xt({c:o+h,r:s+b+i});c=Ho(a,M),S&&typeof S=="object"&&!(S instanceof Date)?a[M]=S:(typeof S=="number"?A="n":typeof S=="boolean"?A="b":typeof S=="string"?A="s":S instanceof Date?(A="d",n.cellDates||(A="n",S=bn(S)),k=n.dateNF||gr[14]):S===null&&n.nullError&&(A="e",S=0),c?(c.t=A,c.v=S,delete c.w,delete c.R,k&&(c.z=k)):a[M]=c={t:A,v:S},k&&(c.z=k))})}),u.e.c=Math.max(u.e.c,o+g.length-1);var w=Yr(s);if(i)for(h=0;h<g.length;++h)a[nn(h+o)+w]={t:"s",v:g[h]};return a["!ref"]=Lr(u),a}function Nw(e,r){return dd(null,e,r)}function Ho(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var n=jr(r);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?Ho(e,Xt(r)):Ho(e,Xt({r,c:t||0}))}function Ew(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function Lw(){return{SheetNames:[],Sheets:{}}}function Fw(e,r,t,n){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=s+i)!=-1;++i);}if(td(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function Cw(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Ew(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function kw(e,r){return e.z=r,e}function pd(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function Pw(e,r,t){return pd(e,"#"+r,t)}function Ow(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function Iw(e,r,t,n){for(var i=typeof r!="string"?r:lr(r),a=typeof r=="string"?r:Lr(r),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var f=Ho(e,s,o);f.t="n",f.F=a,delete f.v,s==i.s.r&&o==i.s.c&&(f.f=t,n&&(f.D=!0))}return e}var Os={encode_col:nn,encode_row:Yr,encode_cell:Xt,encode_range:Lr,decode_col:ic,decode_row:nc,split_cell:$5,decode_cell:jr,decode_range:Dn,format_cell:Vi,sheet_add_aoa:d1,sheet_add_json:dd,sheet_add_dom:sd,aoa_to_sheet:Ms,json_to_sheet:Nw,table_to_sheet:od,table_to_book:iw,sheet_to_csv:gc,sheet_to_txt:hd,sheet_to_json:hl,sheet_to_html:ad,sheet_to_formulae:Tw,sheet_to_row_object_array:hl,sheet_get_cell:Ho,book_new:Lw,book_append_sheet:Fw,book_set_sheet_visibility:Cw,cell_set_number_format:kw,cell_set_hyperlink:pd,cell_set_internal_link:Pw,cell_add_comment:Ow,sheet_set_array_formula:Iw,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Rw(e,r,t,n="Sheet1"){const i=[r,...t],a=Os.aoa_to_sheet(i),s=Os.book_new();Os.book_append_sheet(s,a,n),ud(s,`${e}.xlsx`)}function Dw(e,r){const t=Os.book_new();r.forEach(({name:n,headers:i,rows:a})=>{const s=[i,...a],o=Os.aoa_to_sheet(s);Os.book_append_sheet(t,o,n)}),ud(t,`${e}.xlsx`)}function Mw(e,r){const[t,n]=st.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):r}catch{return r}}),i=st.useCallback(a=>{const s=a instanceof Function?a(t):a;n(s);try{window.localStorage.setItem(e,JSON.stringify(s))}catch{}},[e,t]);return[t,i]}function Bw(e){st.useEffect(()=>{const r=t=>{e.forEach(({key:n,ctrl:i,meta:a,shift:s,handler:o})=>{const f=t.key.toLowerCase()===n.toLowerCase(),c=i?t.ctrlKey||t.metaKey:!0,u=s?t.shiftKey:!0;f&&c&&u&&(t.preventDefault(),o())})};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e])}function jw(e,r={}){const t=`form-draft-${e}`,[n,i]=st.useState(()=>{try{return!!localStorage.getItem(t)}catch{return!1}}),a=st.useCallback(f=>{try{localStorage.setItem(t,JSON.stringify({data:f,savedAt:Date.now()})),i(!0)}catch{}},[t]),s=st.useCallback(()=>{try{const f=localStorage.getItem(t);if(!f)return null;const c=JSON.parse(f);return Date.now()-c.savedAt>1440*60*1e3?(localStorage.removeItem(t),i(!1),null):c.data}catch{return null}},[t]),o=st.useCallback(()=>{try{localStorage.removeItem(t)}catch{}i(!1)},[t]);return{hasDraft:n,saveDraft:a,loadDraft:s,clearDraft:o}}const Ef="recently-viewed",Uw=8;function zw(){const[e,r]=st.useState(()=>{try{return JSON.parse(localStorage.getItem(Ef))||[]}catch{return[]}}),t=st.useCallback(i=>{r(a=>{const s=a.filter(f=>f.id!==i.id||f.type!==i.type),o=[{...i,viewedAt:Date.now()},...s].slice(0,Uw);try{localStorage.setItem(Ef,JSON.stringify(o))}catch{}return o})},[]),n=st.useCallback(()=>{r([]);try{localStorage.removeItem(Ef)}catch{}},[]);return{items:e,addItem:t,clearAll:n}}function Ww(e="tab",r=0){const t=()=>{try{const o=new URLSearchParams(window.location.search).get(e);return o!=null?Number(o):r}catch{return r}},[n,i]=st.useState(t),a=st.useCallback(s=>{i(s);try{const o=new URL(window.location.href);s===0?o.searchParams.delete(e):o.searchParams.set(e,String(s)),window.history.replaceState({},"",o.toString())}catch{}},[e]);return[n,a]}function Hw(e,r=null){const[t,n]=st.useState(r);return{sortedData:st.useMemo(()=>{if(!t||!e)return e||[];const{key:s,direction:o}=t;return[...e].sort((f,c)=>{const u=f[s]??"",p=c[s]??"";return u<p?o==="asc"?-1:1:u>p?o==="asc"?1:-1:0})},[e,t]),sortConfig:t,requestSort:s=>{n(o=>{if((o==null?void 0:o.key)===s){if(o.direction==="asc")return{key:s,direction:"desc"};if(o.direction==="desc")return null}return{key:s,direction:"asc"}})}}}var $0={exports:{}},bo={};/**
348
+ * @license React
349
+ * react-jsx-runtime.production.js
350
+ *
351
+ * Copyright (c) Meta Platforms, Inc. and 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 rh;function qw(){if(rh)return bo;rh=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var o in i)o!=="key"&&(a[o]=i[o])}else a=i;return i=a.ref,{$$typeof:e,type:n,key:s,ref:i!==void 0?i:null,props:a}}return bo.Fragment=r,bo.jsx=t,bo.jsxs=t,bo}var _o={};/**
356
+ * @license React
357
+ * react-jsx-runtime.development.js
358
+ *
359
+ * Copyright (c) Meta Platforms, Inc. and 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 nh;function Vw(){return nh||(nh=1,process.env.NODE_ENV!=="production"&&(function(){function e(ie){if(ie==null)return null;if(typeof ie=="function")return ie.$$typeof===E?null:ie.displayName||ie.name||null;if(typeof ie=="string")return ie;switch(ie){case b:return"Fragment";case S:return"Profiler";case _:return"StrictMode";case K:return"Suspense";case F:return"SuspenseList";case V:return"Activity"}if(typeof ie=="object")switch(typeof ie.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ie.$$typeof){case v:return"Portal";case k:return ie.displayName||"Context";case A:return(ie._context.displayName||"Context")+".Consumer";case M:var y=ie.render;return ie=ie.displayName,ie||(ie=y.displayName||y.name||"",ie=ie!==""?"ForwardRef("+ie+")":"ForwardRef"),ie;case P:return y=ie.displayName||null,y!==null?y:e(ie.type)||"Memo";case D:y=ie._payload,ie=ie._init;try{return e(ie(y))}catch{}}return null}function r(ie){return""+ie}function t(ie){try{r(ie);var y=!1}catch{y=!0}if(y){y=console;var L=y.error,C=typeof Symbol=="function"&&Symbol.toStringTag&&ie[Symbol.toStringTag]||ie.constructor.name||"Object";return L.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",C),r(ie)}}function n(ie){if(ie===b)return"<>";if(typeof ie=="object"&&ie!==null&&ie.$$typeof===D)return"<...>";try{var y=e(ie);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function i(){var ie=T.A;return ie===null?null:ie.getOwner()}function a(){return Error("react-stack-top-frame")}function s(ie){if(z.call(ie,"key")){var y=Object.getOwnPropertyDescriptor(ie,"key").get;if(y&&y.isReactWarning)return!1}return ie.key!==void 0}function o(ie,y){function L(){Q||(Q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}L.isReactWarning=!0,Object.defineProperty(ie,"key",{get:L,configurable:!0})}function f(){var ie=e(this.type);return J[ie]||(J[ie]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),ie=this.props.ref,ie!==void 0?ie:null}function c(ie,y,L,C,O,H){var fe=L.ref;return ie={$$typeof:w,type:ie,key:y,props:L,_owner:C},(fe!==void 0?fe:null)!==null?Object.defineProperty(ie,"ref",{enumerable:!1,get:f}):Object.defineProperty(ie,"ref",{enumerable:!1,value:null}),ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ie,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ie,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.defineProperty(ie,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie}function u(ie,y,L,C,O,H){var fe=y.children;if(fe!==void 0)if(C)if(Y(fe)){for(C=0;C<fe.length;C++)p(fe[C]);Object.freeze&&Object.freeze(fe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(fe);if(z.call(y,"key")){fe=e(ie);var ce=Object.keys(y).filter(function(we){return we!=="key"});C=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",pe[fe+C]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
364
+ let props = %s;
365
+ <%s {...props} />
366
+ React keys must be passed directly to JSX without using spread:
367
+ let props = %s;
368
+ <%s key={someKey} {...props} />`,C,fe,ce,fe),pe[fe+C]=!0)}if(fe=null,L!==void 0&&(t(L),fe=""+L),s(y)&&(t(y.key),fe=""+y.key),"key"in y){L={};for(var he in y)he!=="key"&&(L[he]=y[he])}else L=y;return fe&&o(L,typeof ie=="function"?ie.displayName||ie.name||"Unknown":ie),c(ie,fe,L,i(),O,H)}function p(ie){g(ie)?ie._store&&(ie._store.validated=1):typeof ie=="object"&&ie!==null&&ie.$$typeof===D&&(ie._payload.status==="fulfilled"?g(ie._payload.value)&&ie._payload.value._store&&(ie._payload.value._store.validated=1):ie._store&&(ie._store.validated=1))}function g(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===w}var h=st,w=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),T=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,Y=Array.isArray,ue=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(ie){return ie()}};var Q,J={},oe=h.react_stack_bottom_frame.bind(h,a)(),te=ue(n(a)),pe={};_o.Fragment=b,_o.jsx=function(ie,y,L){var C=1e4>T.recentlyCreatedOwnerStacks++;return u(ie,y,L,!1,C?Error("react-stack-top-frame"):oe,C?ue(n(ie)):te)},_o.jsxs=function(ie,y,L){var C=1e4>T.recentlyCreatedOwnerStacks++;return u(ie,y,L,!0,C?Error("react-stack-top-frame"):oe,C?ue(n(ie)):te)}})()),_o}var ih;function Gw(){return ih||(ih=1,process.env.NODE_ENV==="production"?$0.exports=qw():$0.exports=Vw()),$0.exports}var q=Gw();/**
369
+ * @license lucide-react v0.468.0 - ISC
370
+ *
371
+ * This source code is licensed under the ISC license.
372
+ * See the LICENSE file in the root directory of this source tree.
373
+ */const Yw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gd=(...e)=>e.filter((r,t,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===t).join(" ").trim();/**
374
+ * @license lucide-react v0.468.0 - ISC
375
+ *
376
+ * This source code is licensed under the ISC license.
377
+ * See the LICENSE file in the root directory of this source tree.
378
+ */var Xw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
379
+ * @license lucide-react v0.468.0 - ISC
380
+ *
381
+ * This source code is licensed under the ISC license.
382
+ * See the LICENSE file in the root directory of this source tree.
383
+ */const $w=st.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:s,...o},f)=>st.createElement("svg",{ref:f,...Xw,width:r,height:r,stroke:e,strokeWidth:n?Number(t)*24/Number(r):t,className:gd("lucide",i),...o},[...s.map(([c,u])=>st.createElement(c,u)),...Array.isArray(a)?a:[a]]));/**
384
+ * @license lucide-react v0.468.0 - ISC
385
+ *
386
+ * This source code is licensed under the ISC license.
387
+ * See the LICENSE file in the root directory of this source tree.
388
+ */const ir=(e,r)=>{const t=st.forwardRef(({className:n,...i},a)=>st.createElement($w,{ref:a,iconNode:r,className:gd(`lucide-${Yw(e)}`,n),...i}));return t.displayName=`${e}`,t};/**
389
+ * @license lucide-react v0.468.0 - ISC
390
+ *
391
+ * This source code is licensed under the ISC license.
392
+ * See the LICENSE file in the root directory of this source tree.
393
+ */const Kw=ir("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
394
+ * @license lucide-react v0.468.0 - ISC
395
+ *
396
+ * This source code is licensed under the ISC license.
397
+ * See the LICENSE file in the root directory of this source tree.
398
+ */const Jw=ir("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
399
+ * @license lucide-react v0.468.0 - ISC
400
+ *
401
+ * This source code is licensed under the ISC license.
402
+ * See the LICENSE file in the root directory of this source tree.
403
+ */const Zw=ir("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
404
+ * @license lucide-react v0.468.0 - ISC
405
+ *
406
+ * This source code is licensed under the ISC license.
407
+ * See the LICENSE file in the root directory of this source tree.
408
+ */const Qw=ir("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
409
+ * @license lucide-react v0.468.0 - ISC
410
+ *
411
+ * This source code is licensed under the ISC license.
412
+ * See the LICENSE file in the root directory of this source tree.
413
+ */const Al=ir("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
414
+ * @license lucide-react v0.468.0 - ISC
415
+ *
416
+ * This source code is licensed under the ISC license.
417
+ * See the LICENSE file in the root directory of this source tree.
418
+ */const ey=ir("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
419
+ * @license lucide-react v0.468.0 - ISC
420
+ *
421
+ * This source code is licensed under the ISC license.
422
+ * See the LICENSE file in the root directory of this source tree.
423
+ */const md=ir("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
424
+ * @license lucide-react v0.468.0 - ISC
425
+ *
426
+ * This source code is licensed under the ISC license.
427
+ * See the LICENSE file in the root directory of this source tree.
428
+ */const ty=ir("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
429
+ * @license lucide-react v0.468.0 - ISC
430
+ *
431
+ * This source code is licensed under the ISC license.
432
+ * See the LICENSE file in the root directory of this source tree.
433
+ */const ry=ir("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
434
+ * @license lucide-react v0.468.0 - ISC
435
+ *
436
+ * This source code is licensed under the ISC license.
437
+ * See the LICENSE file in the root directory of this source tree.
438
+ */const ny=ir("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
439
+ * @license lucide-react v0.468.0 - ISC
440
+ *
441
+ * This source code is licensed under the ISC license.
442
+ * See the LICENSE file in the root directory of this source tree.
443
+ */const iy=ir("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
444
+ * @license lucide-react v0.468.0 - ISC
445
+ *
446
+ * This source code is licensed under the ISC license.
447
+ * See the LICENSE file in the root directory of this source tree.
448
+ */const mc=ir("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
449
+ * @license lucide-react v0.468.0 - ISC
450
+ *
451
+ * This source code is licensed under the ISC license.
452
+ * See the LICENSE file in the root directory of this source tree.
453
+ */const ay=ir("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
454
+ * @license lucide-react v0.468.0 - ISC
455
+ *
456
+ * This source code is licensed under the ISC license.
457
+ * See the LICENSE file in the root directory of this source tree.
458
+ */const sy=ir("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
459
+ * @license lucide-react v0.468.0 - ISC
460
+ *
461
+ * This source code is licensed under the ISC license.
462
+ * See the LICENSE file in the root directory of this source tree.
463
+ */const vd=ir("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
464
+ * @license lucide-react v0.468.0 - ISC
465
+ *
466
+ * This source code is licensed under the ISC license.
467
+ * See the LICENSE file in the root directory of this source tree.
468
+ */const oy=ir("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
469
+ * @license lucide-react v0.468.0 - ISC
470
+ *
471
+ * This source code is licensed under the ISC license.
472
+ * See the LICENSE file in the root directory of this source tree.
473
+ */const vc=ir("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
474
+ * @license lucide-react v0.468.0 - ISC
475
+ *
476
+ * This source code is licensed under the ISC license.
477
+ * See the LICENSE file in the root directory of this source tree.
478
+ */const ly=ir("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
479
+ * @license lucide-react v0.468.0 - ISC
480
+ *
481
+ * This source code is licensed under the ISC license.
482
+ * See the LICENSE file in the root directory of this source tree.
483
+ */const fy=ir("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
484
+ * @license lucide-react v0.468.0 - ISC
485
+ *
486
+ * This source code is licensed under the ISC license.
487
+ * See the LICENSE file in the root directory of this source tree.
488
+ */const xc=ir("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
489
+ * @license lucide-react v0.468.0 - ISC
490
+ *
491
+ * This source code is licensed under the ISC license.
492
+ * See the LICENSE file in the root directory of this source tree.
493
+ */const cy=ir("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
494
+ * @license lucide-react v0.468.0 - ISC
495
+ *
496
+ * This source code is licensed under the ISC license.
497
+ * See the LICENSE file in the root directory of this source tree.
498
+ */const xd=ir("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
499
+ * @license lucide-react v0.468.0 - ISC
500
+ *
501
+ * This source code is licensed under the ISC license.
502
+ * See the LICENSE file in the root directory of this source tree.
503
+ */const uy=ir("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
504
+ * @license lucide-react v0.468.0 - ISC
505
+ *
506
+ * This source code is licensed under the ISC license.
507
+ * See the LICENSE file in the root directory of this source tree.
508
+ */const hy=ir("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
509
+ * @license lucide-react v0.468.0 - ISC
510
+ *
511
+ * This source code is licensed under the ISC license.
512
+ * See the LICENSE file in the root directory of this source tree.
513
+ */const dy=ir("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
514
+ * @license lucide-react v0.468.0 - ISC
515
+ *
516
+ * This source code is licensed under the ISC license.
517
+ * See the LICENSE file in the root directory of this source tree.
518
+ */const Tl=ir("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),py={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"},gy={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 qf({children:e,variant:r="primary",size:t="md",icon:n,loading:i,disabled:a,className:s,...o}){return q.jsxs("button",{disabled:a||i,className:Lt("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",py[r],gy[t],s),...o,children:[i?q.jsx(oy,{size:16,className:"animate-spin"}):n&&q.jsx(n,{size:16}),e]})}function my({children:e,className:r,hover:t=!1,interactive:n=!1,...i}){return q.jsx("div",{className:Lt("bg-white rounded-xl shadow-soft border border-slate-100 p-6 transition-all duration-200",t&&"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",r),...i,children:e})}function vy({children:e,className:r}){return q.jsx("div",{className:Lt("pb-4 mb-4 border-b border-slate-200",r),children:e})}function xy({children:e,className:r}){return q.jsx("div",{className:Lt(r),children:e})}function wy({children:e,className:r}){return q.jsx("h3",{className:Lt("text-lg font-semibold text-slate-900",r),children:e})}const yy={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"},by={Active:"success",Approved:"success",Paid:"success",Present:"success",Completed:"success",Published:"primary",Operational:"success",Pending:"warning",Late:"warning",Maintenance:"warning",Draft:"neutral",Rejected:"danger",Absent:"danger",Overdue:"danger",Cancelled:"danger",Inactive:"neutral"};function _y({children:e,variant:r,status:t,className:n}){const i=r||by[t||e]||"neutral";return q.jsx("span",{className:Lt("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",yy[i],n),children:e||t})}function Sy({items:e,className:r}){return q.jsx("nav",{className:Lt("flex items-center gap-1 text-xs text-slate-500 mb-2",r),children:e.map((t,n)=>q.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&q.jsx(md,{size:12,className:"text-slate-400"}),t.href?q.jsx("a",{href:t.href,className:"hover:text-primary-600 transition-colors duration-150",children:t.label}):q.jsx("span",{className:"text-slate-800 font-medium",children:t.label})]},n))})}function wd({label:e,error:r,icon:t,className:n,...i}){return q.jsxs("div",{className:"space-y-1.5",children:[e&&q.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),q.jsxs("div",{className:"relative",children:[t&&q.jsx(t,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),q.jsx("input",{className:Lt("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",t&&"pl-9",r&&"border-danger-500 focus:ring-danger-500",n),...i})]}),r&&q.jsx("p",{className:"text-xs text-danger-500",children:r})]})}function Ay({value:e,onChange:r,placeholder:t="Search...",className:n}){return q.jsx(wd,{icon:xc,value:e,onChange:i=>r(i.target.value),placeholder:t,className:n})}function Ty({label:e,options:r=[],value:t,onChange:n,placeholder:i="Select...",error:a,className:s,...o}){return q.jsxs("div",{className:"space-y-1.5",children:[e&&q.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),q.jsxs("div",{className:"relative",children:[q.jsxs("select",{value:t,onChange:f=>n(f.target.value),className:Lt("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",s),...o,children:[q.jsx("option",{value:"",children:i}),r.map(f=>q.jsx("option",{value:f.value??f,children:f.label??f},f.value??f))]}),q.jsx(Al,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),a&&q.jsx("p",{className:"text-xs text-danger-500",children:a})]})}const Ny={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"};function yd({open:e,onClose:r,title:t,children:n,footer:i,size:a="md"}){const s=st.useRef(null),o=st.useRef(null),f=st.useCallback(u=>{var p,g,h;if(u.key==="Escape"&&(u.stopPropagation(),r()),u.key==="Enter"&&i&&s.current){const v=((g=(p=document.activeElement)==null?void 0:p.tagName)==null?void 0:g.toLowerCase())==="textarea",b=((h=document.activeElement)==null?void 0:h.getAttribute("contenteditable"))==="true";if(!v&&!b){const _=s.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),S=_.length>0?_[_.length-1]:null;S&&!S.disabled&&(u.preventDefault(),S.click())}}if(u.key==="Tab"&&s.current){const w=s.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(w.length===0)return;const v=w[0],b=w[w.length-1];u.shiftKey&&document.activeElement===v?(u.preventDefault(),b.focus()):!u.shiftKey&&document.activeElement===b&&(u.preventDefault(),v.focus())}},[r,i]),c=st.useRef(!1);return st.useEffect(()=>{if(!e){c.current=!1;return}return document.body.style.overflow="hidden",document.addEventListener("keydown",f),c.current||(c.current=!0,o.current=document.activeElement,setTimeout(()=>{var p;const u=(p=s.current)==null?void 0:p.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');u!=null&&u.length&&u[0].focus()},50)),()=>{var u;document.body.style.overflow="",document.removeEventListener("keydown",f),(u=o.current)==null||u.focus()}},[e,f]),e?q.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[q.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up",style:{animationDuration:"0.15s"},onClick:r,"aria-hidden":"true"}),q.jsxs("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:Lt("relative bg-white rounded-xl shadow-2xl w-full animate-fade-in-up",Ny[a]),children:[q.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200",children:[q.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:t}),q.jsx("button",{onClick:r,"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:q.jsx(Tl,{size:16,className:"text-slate-500"})})]}),q.jsx("div",{className:"px-6 py-4",children:n}),i&&q.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200",children:i})]})]}):null}function Ey({columns:e=[],rows:r,data:t,page:n,totalPages:i,onPageChange:a,emptyMessage:s="No data found",className:o}){const f=r||t||[],c=e.map(p=>({key:p.key||p.header||p.label||"",label:p.label||p.header||p.key||"",align:p.align,render:p.render||(typeof p.accessor=="function"?p.accessor:void 0),accessor:typeof p.accessor=="string"?p.accessor:void 0})),u=(p,g)=>g.render?g.render(p):g.accessor?p[g.accessor]:g.key&&p[g.key]!==void 0?p[g.key]:"";return q.jsxs("div",{className:Lt("overflow-x-auto rounded-xl border border-slate-200 bg-white",o),children:[q.jsxs("table",{className:"w-full text-sm",children:[q.jsx("thead",{children:q.jsx("tr",{className:"bg-slate-50 border-b border-slate-200",children:c.map((p,g)=>q.jsx("th",{className:Lt("px-4 py-3 text-xs font-semibold text-slate-500 uppercase tracking-wider text-left",p.align==="center"&&"text-center",p.align==="right"&&"text-right"),children:p.label},p.key||g))})}),q.jsx("tbody",{className:"divide-y divide-slate-100",children:f.length===0?q.jsx("tr",{children:q.jsx("td",{colSpan:c.length,className:"px-4 py-12 text-center text-slate-400",children:s})}):f.map((p,g)=>q.jsx("tr",{className:"hover:bg-primary-50/40 transition-colors duration-150",children:c.map((h,w)=>q.jsx("td",{className:Lt("px-4 py-3 text-slate-600",h.align==="center"&&"text-center",h.align==="right"&&"text-right"),children:u(p,h)},h.key||w))},p.id||g))})]}),i>1&&a&&q.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-slate-200 bg-slate-50",children:[q.jsxs("span",{className:"text-xs text-slate-500",children:["Page ",(n||0)+1," of ",i]}),q.jsxs("div",{className:"flex gap-1",children:[q.jsx("button",{onClick:()=>a(n-1),disabled:!n,className:"p-1.5 rounded-lg hover:bg-slate-200 disabled:opacity-30 transition-colors duration-150",children:q.jsx(ey,{size:16})}),q.jsx("button",{onClick:()=>a(n+1),disabled:n>=i-1,className:"p-1.5 rounded-lg hover:bg-slate-200 disabled:opacity-30 transition-colors duration-150",children:q.jsx(md,{size:16})})]})]})]})}function Ly({items:e,brand:r,user:t,collapsed:n,onToggle:i,onLogout:a,onSettings:s}){const o=za.useLocation();e.findIndex(b=>o.pathname.startsWith(b.path)),st.useEffect(()=>{const b=o.pathname,_=e.find(S=>b.startsWith(S.path));if(_)try{const S=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),A=[_.path,...S.filter(k=>k!==_.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(A))}catch{}},[o.pathname,e]);const[f,c]=st.useState(null),[u,p]=st.useState(!1);st.useEffect(()=>{const b=setTimeout(()=>p(!0),50);return()=>clearTimeout(b)},[]);const g=e.some(b=>b.group),h=g?e.reduce((b,_)=>{const S=_.group||"Other";return b[S]||(b[S]=[]),b[S].push(_),b},{}):null,w=(b,_)=>{const S=b.icon;return q.jsxs(za.NavLink,{to:b.path,onMouseEnter:()=>c(_),onMouseLeave:()=>c(null),style:{animationDelay:`${_*50}ms`,animationFillMode:"forwards"},className:({isActive:A})=>Lt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200",n&&"justify-center px-2",A?"text-white bg-primary-500 shadow-lg shadow-primary-500/20 font-semibold":"text-slate-300 hover:bg-gradient-to-r hover:from-white/10 hover:to-transparent hover:text-white hover:translate-x-0.5",!u&&"opacity-0 translate-y-2",u&&"opacity-100 translate-y-0 transition-all duration-300"),children:[S&&q.jsx(S,{size:20,className:Lt("flex-shrink-0 transition-all duration-200",o.pathname.startsWith(b.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),q.jsx("span",{className:Lt("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:b.label}),n&&q.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:b.label})]},b.path)},v=()=>{if(g&&h){let b=0;return Object.entries(h).map(([_,S])=>q.jsxs("div",{children:[!n&&q.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:_}),S.map(A=>{const k=b;return b++,w(A,k)})]},_))}return e.map((b,_)=>w(b,_))};return q.jsxs(q.Fragment,{children:[q.jsxs("aside",{className:Lt("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-all duration-200 z-40 hidden md:flex border-r border-slate-700/30",n?"w-[68px]":"w-60"),children:[q.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&q.jsxs("div",{className:"flex flex-col",children:[q.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),q.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),q.jsx("button",{onClick:i,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:q.jsx("span",{className:Lt("block transition-transform duration-200",n&&"rotate-180"),children:n?q.jsx(fy,{size:18}):q.jsx(ly,{size:18})})})]}),q.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),t&&q.jsx("div",{className:Lt("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:()=>{s&&s()},children:q.jsxs("div",{className:"flex items-center gap-3",children:[q.jsxs("div",{className:"relative flex-shrink-0",children:[q.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:(t.name||"").slice(0,2).toUpperCase()}),q.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&q.jsxs("div",{className:"overflow-hidden",children:[q.jsx("p",{className:"text-sm font-semibold truncate",children:t.name}),q.jsx("p",{className:"text-xs text-slate-400 truncate",children:t.email}),t.role&&q.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:t.role})]})]})}),q.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),q.jsxs("nav",{className:"relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",children:[f!==null&&!n&&q.jsx("div",{className:"absolute left-2 right-2 h-10 bg-white/5 rounded-lg transition-all duration-200 pointer-events-none",style:{top:`${16+f*44}px`}}),v()]}),a&&q.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:q.jsxs("button",{onClick:a,className:Lt("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:[q.jsx(vc,{size:20}),!n&&q.jsx("span",{children:"Logout"}),n&&q.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"})]})})]}),q.jsx(Fy,{items:e,onLogout:a})]})}function Fy({items:e,onLogout:r}){const[t,n]=st.useState(!1),i=e.slice(0,4),a=e.slice(4);return q.jsxs(q.Fragment,{children:[q.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:q.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[i.map(s=>{const o=s.icon;return q.jsxs(za.NavLink,{to:s.path,className:({isActive:f})=>Lt("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]",f?"text-primary-600 bg-primary-50":"text-slate-500 hover:text-slate-700"),children:[o&&q.jsx(o,{size:20}),q.jsx("span",{className:"truncate",children:s.label.split(" ")[0]})]},s.path)}),a.length>0&&q.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:[q.jsx(ay,{size:20}),q.jsx("span",{children:"More"})]})]})}),t&&q.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[q.jsx("div",{className:"fixed inset-0 bg-black/40"}),q.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[q.jsxs("div",{className:"flex items-center justify-between mb-4",children:[q.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),q.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:q.jsx(Tl,{size:16,className:"text-slate-500"})})]}),q.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[a.map(s=>{const o=s.icon;return q.jsxs(za.NavLink,{to:s.path,onClick:()=>n(!1),className:({isActive:f})=>Lt("flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium transition-all duration-150",f?"text-primary-600 bg-primary-50":"text-slate-600 hover:bg-slate-50"),children:[o&&q.jsx(o,{size:22}),q.jsx("span",{className:"text-center leading-tight",children:s.label})]},s.path)}),r&&q.jsxs("button",{onClick:()=>{n(!1),r()},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:[q.jsx(vc,{size:22}),q.jsx("span",{children:"Logout"})]})]})]})]})]})}function Cy({title:e,subtitle:r,user:t,notificationCount:n=0,onLogout:i,onProfile:a,onSettings:s,navItems:o=[]}){const[f,c]=st.useState(!1),u=st.useRef(null),p=za.useNavigate(),g=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return st.useEffect(()=>{const h=w=>{u.current&&!u.current.contains(w.target)&&c(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),q.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:[q.jsxs("div",{children:[q.jsx("h1",{className:"text-base font-semibold text-slate-900",children:e}),r&&q.jsx("p",{className:"text-xs text-slate-500",children:r})]}),q.jsxs("div",{className:"flex items-center gap-3",children:[q.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:[q.jsx(xc,{size:14}),q.jsx("span",{children:"Search..."}),q.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"})]}),q.jsxs("button",{className:"relative p-2 rounded-lg hover:bg-slate-100 transition-colors duration-150",children:[q.jsx(Jw,{size:20,className:"text-slate-600"}),n>0&&q.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:n})]}),t&&q.jsxs("div",{ref:u,className:"relative",children:[q.jsxs("button",{onClick:()=>c(!f),className:"flex items-center gap-2.5 pl-3 border-l border-slate-200 hover:bg-slate-50 rounded-lg py-1.5 pr-2 transition-colors duration-150",children:[q.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:(t.name||"").slice(0,2).toUpperCase()}),q.jsxs("div",{className:"hidden sm:block text-left",children:[q.jsx("p",{className:"text-xs font-medium text-slate-900",children:t.name}),q.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:t.role})]}),q.jsx(Al,{size:14,className:`text-slate-400 transition-transform duration-150 ${f?"rotate-180":""}`})]}),f&&q.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:[q.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[q.jsx("p",{className:"text-sm font-semibold text-slate-900",children:t.name}),q.jsx("p",{className:"text-xs text-slate-500 capitalize",children:t.role})]}),q.jsxs("div",{className:"py-1.5",children:[a&&q.jsxs("button",{onClick:()=>{c(!1),a()},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:[q.jsx(uy,{size:16,className:"text-slate-400"}),"My Profile"]}),s&&q.jsxs("button",{onClick:()=>{c(!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:[q.jsx(cy,{size:16,className:"text-slate-400"}),"Settings"]}),g.length>0&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"border-t border-slate-100 my-1"}),q.jsxs("div",{className:"px-4 py-2",children:[q.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[q.jsx(mc,{size:10})," Recents"]}),g.map(h=>{const w=o.find(b=>b.path===h);if(!w)return null;const v=w.icon;return q.jsxs("button",{onClick:()=>{c(!1),p(h)},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:[v&&q.jsx(v,{size:14,className:"text-slate-400"}),w.label]},h)})]})]}),i&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"border-t border-slate-100 my-1"}),q.jsxs("button",{onClick:()=>{c(!1),i()},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:[q.jsx(vc,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function fn({className:e}){return q.jsx("div",{className:Lt("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function ky(){return q.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[q.jsx(fn,{className:"h-4 w-1/3"}),q.jsx(fn,{className:"h-8 w-1/2"}),q.jsx(fn,{className:"h-3 w-2/3"})]})}function Py(){return q.jsxs("div",{className:"space-y-6",children:[q.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,r)=>q.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[q.jsx(fn,{className:"w-11 h-11 rounded-xl"}),q.jsxs("div",{className:"space-y-2 flex-1",children:[q.jsx(fn,{className:"h-3 w-2/3"}),q.jsx(fn,{className:"h-6 w-1/2"})]})]},r))}),q.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[q.jsx(fn,{className:"h-4 w-1/4 mb-4"}),q.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,r)=>q.jsx(fn,{className:"h-20 rounded-xl"},r))})]}),q.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[q.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[q.jsx(fn,{className:"h-4 w-1/4 mb-4"}),q.jsx(fn,{className:"h-48 w-full"})]}),q.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[q.jsx(fn,{className:"h-4 w-1/3 mb-4"}),q.jsx(fn,{className:"h-48 w-full"})]})]})]})}function Oy({rows:e=5,cols:r=4}){return q.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[q.jsx("div",{className:"flex gap-4 px-4 py-3 bg-slate-50 border-b border-slate-200",children:Array.from({length:r}).map((t,n)=>q.jsx(fn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((t,n)=>q.jsx("div",{className:"flex gap-4 px-4 py-3 border-b border-slate-100 last:border-0",children:Array.from({length:r}).map((i,a)=>q.jsx(fn,{className:"h-3 flex-1"},a))},n))]})}function Iy({children:e,user:r,allowedRoles:t,redirectTo:n="/login"}){return r?t&&!t.includes(r.role)?q.jsx(za.Navigate,{to:n,replace:!0}):e:q.jsx(za.Navigate,{to:n,replace:!0})}function Ry({activities:e=[],className:r}){return e.length===0?null:q.jsx("div",{className:Lt("space-y-1",r),children:e.map((t,n)=>q.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[q.jsx("div",{className:Lt("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",t.bgColor||"bg-info-100"),children:t.icon||q.jsx(Kw,{className:"w-3.5 h-3.5 text-info-600"})}),q.jsxs("div",{className:"flex-1 min-w-0",children:[q.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:t.title}),q.jsx("p",{className:"text-xs text-surface-500",children:t.description})]}),q.jsxs("div",{className:"text-right flex-shrink-0",children:[q.jsx("p",{className:"text-2xs text-surface-400",children:t.time}),t.tag&&q.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:t.tag})]})]},n))})}const bd=st.createContext(null),Dy={success:iy,error:ny,warning:xd,info:vd},My={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"},By={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function jy({id:e,type:r="info",message:t,onRemove:n}){const i=Dy[r]||vd,[a,s]=st.useState(!1),[o,f]=st.useState(100);st.useEffect(()=>{const p=setInterval(()=>{f(h=>h<=0?(clearInterval(p),0):h-1)},50),g=setTimeout(()=>{s(!0),setTimeout(()=>n(e),300)},5e3);return()=>{clearInterval(p),clearTimeout(g)}},[e,n]);const c=()=>{s(!0),setTimeout(()=>n(e),300)};return q.jsxs("div",{className:`flex items-start gap-3 px-4 py-3.5 bg-white border border-slate-200 border-l-4 ${By[r]} 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:[q.jsx("div",{className:`w-8 h-8 rounded-lg ${My[r]} flex items-center justify-center flex-shrink-0`,children:q.jsx(i,{size:16})}),q.jsxs("div",{className:"flex-1 min-w-0",children:[q.jsx("p",{className:"text-sm font-medium text-slate-900",children:t}),q.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:q.jsx("div",{className:`h-full rounded-full transition-all duration-100 ${r==="success"?"bg-emerald-400":r==="error"?"bg-red-400":r==="warning"?"bg-amber-400":"bg-blue-400"}`,style:{width:`${o}%`}})})]}),q.jsx("button",{onClick:c,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:q.jsx(Tl,{size:14,className:"text-slate-400"})})]})}function Uy({id:e,message:r,onConfirm:t,onUndo:n,timeout:i=5e3,onRemove:a}){const[s,o]=st.useState(i),[f,c]=st.useState(!1),u=st.useRef(!1);st.useEffect(()=>{const g=setInterval(()=>{o(h=>h<=100?(clearInterval(g),u.current||(t(),c(!0),setTimeout(()=>a(e),300)),0):h-100)},100);return()=>clearInterval(g)},[e,t,a,i]);const p=()=>{u.current=!0,n(),c(!0),setTimeout(()=>a(e),300)};return q.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 ${f?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[q.jsxs("div",{className:"flex-1 min-w-0",children:[q.jsx("p",{className:"text-sm font-medium",children:r}),q.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:q.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${s/i*100}%`}})})]}),q.jsx("button",{onClick:p,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 zy({children:e}){const[r,t]=st.useState([]),[n,i]=st.useState([]),a=st.useCallback((u,p="info")=>{const g=Date.now()+Math.random();t(h=>[...h,{id:g,message:u,type:p}])},[]),s=st.useCallback(u=>{t(p=>p.filter(g=>g.id!==u))},[]),o=st.useCallback((u,p,g,h=5e3)=>{const w=Date.now()+Math.random();i(v=>[...v,{id:w,message:u,onConfirm:p,onUndo:g,timeout:h}])},[]),f=st.useCallback(u=>{i(p=>p.filter(g=>g.id!==u))},[]),c=st.useMemo(()=>({success:u=>a(u,"success"),error:u=>a(u,"error"),warning:u=>a(u,"warning"),info:u=>a(u,"info"),undoable:(u,p,g,h)=>o(u,p,g,h)}),[a,o]);return q.jsxs(bd.Provider,{value:c,children:[e,q.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[r.map(u=>q.jsx(jy,{...u,onRemove:s},u.id)),n.map(u=>q.jsx(Uy,{...u,onRemove:f},u.id))]})]})}function Wy(){const e=st.useContext(bd);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function Hy({open:e,onClose:r,onConfirm:t,title:n="Confirm Delete",message:i="Are you sure you want to delete this? This action cannot be undone.",confirmText:a="Delete",loading:s=!1}){return q.jsxs(yd,{open:e,onClose:r,title:n,size:"sm",children:[q.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[q.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:q.jsx(xd,{className:"w-6 h-6 text-red-600"})}),q.jsx("p",{className:"text-sm text-slate-600",children:i})]}),q.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[q.jsx(qf,{variant:"ghost",onClick:r,children:"Cancel"}),q.jsx(qf,{variant:"primary",onClick:t,disabled:s,className:"!bg-red-600 hover:!bg-red-700",children:s?"Deleting...":a})]})]})}function qy({value:e,onChange:r,options:t=[],onSearch:n,placeholder:i="Search...",labelKey:a="label",valueKey:s="value",renderOption:o,loading:f=!1,showSearch:c}){const[u,p]=st.useState(!1),[g,h]=st.useState(""),w=st.useRef(null),v=st.useRef(null),b=c===!0||c!==!1&&t.length>5,_=t.find(M=>M[s]===e);st.useEffect(()=>{const M=K=>{w.current&&!w.current.contains(K.target)&&p(!1)};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);const S=M=>{h(M),n&&(clearTimeout(v.current),v.current=setTimeout(()=>n(M),300))},A=M=>{r(M[s]),p(!1),h("")},k=M=>{M.stopPropagation(),r(""),h("")};return q.jsxs("div",{ref:w,className:"relative",children:[q.jsxs("div",{role:"combobox","aria-expanded":u,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>p(!u),onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),p(!u)),M.key==="Escape"&&p(!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:[q.jsx("span",{className:_?"text-slate-800":"text-slate-400",children:_?o?o(_):_[a]:i}),q.jsxs("div",{className:"flex items-center gap-1",children:[e&&q.jsx("button",{onClick:k,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:q.jsx(Tl,{size:12,className:"text-slate-400"})}),q.jsx(Al,{size:16,className:`text-slate-400 transition-transform duration-150 ${u?"rotate-180":""}`})]})]}),u&&q.jsxs("div",{className:"absolute z-50 mt-1 w-full bg-white border border-slate-200 rounded-xl shadow-soft-lg max-h-60 overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[b&&q.jsx("div",{className:"p-2 border-b border-slate-100",children:q.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:[q.jsx(xc,{size:14,className:"text-slate-400"}),q.jsx("input",{autoFocus:!0,value:g,onChange:M=>S(M.target.value),onKeyDown:M=>{M.key==="Escape"&&p(!1)},placeholder:"Type to search...",className:"w-full text-sm outline-none","aria-label":"Search options"})]})}),q.jsxs("div",{className:"overflow-y-auto max-h-44",role:"listbox",children:[f&&q.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!f&&t.length===0&&q.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),t.map(M=>q.jsx("div",{role:"option","aria-selected":M[s]===e,onClick:()=>A(M),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${M[s]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"}`,children:o?o(M):M[a]},M[s]))]})]})]})}function Vy({tabs:e,active:r,onChange:t,className:n}){return q.jsx("div",{className:Lt("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 w-fit overflow-x-auto",n),children:e.map((i,a)=>{const s=r===a,o=typeof i=="string"?i:i.label,f=typeof i=="object"?i.icon:null;return q.jsxs("button",{onClick:()=>t(a),className:Lt("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 whitespace-nowrap",s?"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:[f&&q.jsx(f,{size:15,className:s?"text-primary-600":"text-slate-400"}),o,typeof i=="object"&&i.count!=null&&q.jsx("span",{className:Lt("text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[18px] text-center",s?"bg-primary-100 text-primary-700":"bg-slate-200 text-slate-500"),children:i.count})]},o)})})}function Gy({checked:e,onChange:r,label:t,description:n,disabled:i,className:a}){return q.jsxs("label",{className:Lt("flex items-center gap-3 cursor-pointer group",i&&"opacity-50 cursor-not-allowed",a),children:[q.jsxs("div",{className:"relative",children:[q.jsx("input",{type:"checkbox",checked:e,onChange:r,disabled:i,className:"sr-only peer"}),q.jsx("div",{className:Lt("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&&q.jsx(Qw,{size:13,className:"text-white",strokeWidth:3})})]}),(t||n)&&q.jsxs("div",{children:[t&&q.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:t}),n&&q.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function _d({children:e,className:r}){return q.jsxs("div",{className:Lt("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",r),children:[q.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[q.jsx(sy,{size:15}),q.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}_d.Item=function({children:r,className:t}){return q.jsx("div",{className:Lt("min-w-[160px]",t),children:r})};function Yy({value:e,onChange:r,label:t,placeholder:n,min:i,max:a,className:s,disabled:o}){return q.jsxs("div",{className:s,children:[t&&q.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:t}),q.jsxs("div",{className:"relative group",children:[q.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 rounded-lg bg-primary-50 flex items-center justify-center transition-all duration-200 group-hover:bg-primary-100 group-focus-within:bg-primary-100 pointer-events-none",children:q.jsx(Zw,{size:15,className:"text-primary-500 transition-transform duration-200 group-hover:scale-110"})}),q.jsx("input",{type:"date",value:e||"",onChange:f=>r(f.target.value),min:i,max:a,disabled:o,placeholder:n,className:Lt("w-full min-w-[180px] pl-14 pr-3.5 py-2.5 text-sm font-medium text-slate-800 border border-slate-300 rounded-lg bg-white","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent focus:shadow-glow-primary","transition-all duration-200 hover:border-primary-300 hover:shadow-sm","disabled:opacity-50 disabled:cursor-not-allowed","[&::-webkit-calendar-picker-indicator]:opacity-0 [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:inset-0 [&::-webkit-calendar-picker-indicator]:w-full [&::-webkit-calendar-picker-indicator]:h-full [&::-webkit-calendar-picker-indicator]:cursor-pointer")})]})]})}function Xy({value:e,onChange:r,label:t,className:n,disabled:i}){return q.jsxs("div",{className:n,children:[t&&q.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:t}),q.jsxs("div",{className:"relative",children:[q.jsx(mc,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),q.jsx("input",{type:"time",value:e||"",onChange:a=>r(a.target.value),disabled:i,className:Lt("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 $y extends st.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,t){console.error("ErrorBoundary caught:",r,t)}render(){return this.state.hasError?q.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[q.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:q.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:q.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"})})}),q.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),q.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."}),q.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 Ky(){const[e,r]=st.useState(navigator.onLine),[t,n]=st.useState(!1);return st.useEffect(()=>{const i=()=>{r(!0),n(!0),setTimeout(()=>n(!1),3e3)},a=()=>r(!1);return window.addEventListener("online",i),window.addEventListener("offline",a),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}},[]),e&&!t?null:q.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?q.jsxs(q.Fragment,{children:[q.jsx(dy,{size:16,className:"mr-2"})," Back online"]}):q.jsxs(q.Fragment,{children:[q.jsx(hy,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function Jy({label:e,sortKey:r,sortConfig:t,onSort:n,className:i}){const a=(t==null?void 0:t.key)===r,s=a?t.direction:null;return q.jsxs("button",{onClick:()=>n(r),className:Lt("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",i),children:[e,q.jsxs("span",{className:"text-slate-300",children:[!a&&q.jsx(ry,{size:12}),s==="asc"&&q.jsx(ty,{size:12,className:"text-primary-500"}),s==="desc"&&q.jsx(Al,{size:12,className:"text-primary-500"})]})]})}function Zy({children:e,content:r,className:t}){const[n,i]=st.useState(!1),[a,s]=st.useState({top:0,left:0}),o=st.useRef(null),f=st.useRef(null),c=()=>{clearTimeout(f.current),f.current=setTimeout(()=>{if(o.current){const p=o.current.getBoundingClientRect();s({top:p.bottom+8,left:Math.min(p.left,window.innerWidth-320)})}i(!0)},400)},u=()=>{clearTimeout(f.current),f.current=setTimeout(()=>i(!1),200)};return q.jsxs(q.Fragment,{children:[q.jsx("span",{ref:o,onMouseEnter:c,onMouseLeave:u,className:Lt("inline-block",t),children:e}),n&&q.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(f.current),onMouseLeave:u,children:r})]})}const ah={noData:q.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[q.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),q.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),q.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),q.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),q.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),q.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:q.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[q.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),q.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),q.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),q.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),q.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),q.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),q.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:q.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[q.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),q.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),q.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:q.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[q.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),q.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),q.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),q.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),q.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:q.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[q.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),q.jsx("path",{d:"M80 75 L95 90 L120 60",stroke:"#22c55e",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]})};function Qy({type:e="noData",title:r,message:t,action:n,className:i}){return q.jsxs("div",{className:Lt("flex flex-col items-center justify-center py-12 text-center",i),children:[ah[e]||ah.noData,r&&q.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:r}),t&&q.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:t}),n&&q.jsx("div",{className:"mt-4",children:n})]})}function eb({title:e,children:r,className:t}){return q.jsxs("div",{className:Lt("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",t),children:[q.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[q.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),r]})}function tb({tokenExpiresAt:e,onLogout:r,warningMinutes:t=5}){const[n,i]=st.useState(!1),[a,s]=st.useState(0),o=st.useRef(null);if(st.useEffect(()=>{if(!e)return;const u=()=>{const p=Date.now(),h=(typeof e=="number"?e:new Date(e).getTime())-p,w=t*60*1e3;h<=0?(i(!1),r==null||r()):h<=w?(i(!0),s(Math.ceil(h/1e3))):i(!1)};return u(),o.current=setInterval(u,1e3),()=>clearInterval(o.current)},[e,t,r]),!n)return null;const f=Math.floor(a/60),c=a%60;return q.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:q.jsxs("div",{className:"flex items-start gap-3",children:[q.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:q.jsx(mc,{size:16,className:"text-amber-600"})}),q.jsxs("div",{className:"flex-1",children:[q.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),q.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",f,":",c.toString().padStart(2,"0")]}),q.jsxs("div",{className:"flex gap-2 mt-2",children:[q.jsx("button",{onClick:()=>{window.location.reload()},className:"px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors",children:"Stay Logged In"}),q.jsx("button",{onClick:r,className:"px-3 py-1.5 text-xs font-medium text-amber-700 hover:bg-amber-100 rounded-lg transition-colors",children:"Logout Now"})]})]})]})})}exports.Badge=_y;exports.Breadcrumb=Sy;exports.Button=qf;exports.Card=my;exports.CardContent=xy;exports.CardHeader=vy;exports.CardTitle=wy;exports.Checkbox=Gy;exports.ConfirmDialog=Hy;exports.DataTable=Ey;exports.DateInput=Yy;exports.EmptyState=Qy;exports.ErrorBoundary=$y;exports.FilterBar=_d;exports.HoverCard=Zy;exports.Input=wd;exports.Modal=yd;exports.NetworkStatus=Ky;exports.ProtectedRoute=Iy;exports.RecentActivities=Ry;exports.SearchInput=Ay;exports.SearchableSelect=qy;exports.SectionCard=eb;exports.Select=Ty;exports.SessionTimeout=tb;exports.Sidebar=Ly;exports.Skeleton=fn;exports.SkeletonCard=ky;exports.SkeletonDashboard=Py;exports.SkeletonTable=Oy;exports.SortableHeader=Jy;exports.Tabs=Vy;exports.TimeInput=Xy;exports.ToastProvider=zy;exports.Topbar=Cy;exports._typeof=Wt;exports.cn=Lt;exports.commonjsGlobal=Oh;exports.exportMultiSheetExcel=Dw;exports.exportToCsv=j2;exports.exportToExcel=Rw;exports.generateAttendanceReport=Gp;exports.generateFeeReceipt=Vp;exports.generatePdf=Hp;exports.generateStudentReportCard=qp;exports.getDefaultExportFromCjs=jp;exports.useFormDraft=jw;exports.useKeyboardShortcuts=Bw;exports.useLocalStorage=Mw;exports.useRecentlyViewed=zw;exports.useSortableData=Hw;exports.useTabState=Ww;exports.useToast=Wy;