school-erp-ui-shared 1.0.0 → 1.0.2
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.
- package/dist/index-DSxfA1Nt.js +347 -0
- package/dist/{index-CPBALCQd.mjs → index-xR4ZXjOI.mjs} +7222 -7859
- package/dist/index.cjs +1 -1
- package/dist/{index.es-BHwofhad.js → index.es-DBu5ruo0.js} +1 -1
- package/dist/{index.es-BErQH4-8.mjs → index.es-DSVJOpFn.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -3
- package/dist/index-CWafuaBk.js +0 -518
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
"use strict";const ot=require("react"),q=require("react/jsx-runtime"),Nt=require("lucide-react"),za=require("react-router-dom");function Ku(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=Ku(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Gd(){for(var e,r,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=Ku(e))&&(n&&(n+=" "),n+=r);return n}const Uf="-",Vd=e=>{const r=Yd(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const o=s.split(Uf);return o[0]===""&&o.length!==1&&o.shift(),$u(o,r)||Xd(s)},getConflictingClassGroupIds:(s,o)=>{const f=t[s]||[];return o&&n[s]?[...f,...n[s]]:f}}},$u=(e,r)=>{var s;if(e.length===0)return r.classGroupId;const t=e[0],n=r.nextPart.get(t),i=n?$u(e.slice(1),n):void 0;if(i)return i;if(r.validators.length===0)return;const a=e.join(Uf);return(s=r.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},Bc=/^\[(.+)\]$/,Xd=e=>{if(Bc.test(e)){const r=Bc.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Yd=e=>{const{theme:r,prefix:t}=e,n={nextPart:new Map,validators:[]};return $d(Object.entries(e.classGroups),t).forEach(([a,s])=>{Sf(s,n,a,r)}),n},Sf=(e,r,t,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?r:jc(r,i);a.classGroupId=t;return}if(typeof i=="function"){if(Kd(i)){Sf(i(n),r,t,n);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([a,s])=>{Sf(s,jc(r,a),t,n)})})},jc=(e,r)=>{let t=e;return r.split(Uf).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},Kd=e=>e.isThemeGetter,$d=(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,Jd=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)}}},Ju="!",Zd=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 y=0;y<o.length;y++){let _=o[y];if(c===0){if(_===i&&(n||o.slice(y,y+a)===r)){f.push(o.slice(u,y)),u=y+a;continue}if(_==="/"){p=y;continue}}_==="["?c++:_==="]"&&c--}const g=f.length===0?o:o.substring(u),d=g.startsWith(Ju),w=d?g.substring(1):g,v=p&&p>u?p-u:void 0;return{modifiers:f,hasImportantModifier:d,baseClassName:w,maybePostfixModifierPosition:v}};return t?o=>t({className:o,parseClassName:s}):s},Qd=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},e2=e=>({cache:Jd(e.cacheSize),parseClassName:Zd(e),...Vd(e)}),t2=/\s+/,r2=(e,r)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:i}=r,a=[],s=e.trim().split(t2);let o="";for(let f=s.length-1;f>=0;f-=1){const c=s[f],{modifiers:u,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:d}=t(c);let w=!!d,v=n(w?g.substring(0,d):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 y=Qd(u).join(":"),_=p?y+Ju:y,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 n2(){let e=0,r,t,n="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Zu(r))&&(n&&(n+=" "),n+=t);return n}const Zu=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=Zu(e[n]))&&(t&&(t+=" "),t+=r);return t};function i2(e,...r){let t,n,i,a=s;function s(f){const c=r.reduce((u,p)=>p(u),e());return t=e2(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=r2(f,t);return i(f,u),u}return function(){return a(n2.apply(null,arguments))}}const sr=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},Qu=/^\[(?:([a-z-]+):)?(.+)\]$/i,a2=/^\d+\/\d+$/,s2=new Set(["px","full","screen"]),o2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l2=/\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$/,f2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,c2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>Ls(e)||s2.has(e)||a2.test(e),oa=e=>Ds(e,"length",w2),Ls=e=>!!e&&!Number.isNaN(Number(e)),nf=e=>Ds(e,"number",Ls),mo=e=>!!e&&Number.isInteger(Number(e)),h2=e=>e.endsWith("%")&&Ls(e.slice(0,-1)),Tt=e=>Qu.test(e),la=e=>o2.test(e),d2=new Set(["length","size","percentage"]),p2=e=>Ds(e,d2,eh),g2=e=>Ds(e,"position",eh),m2=new Set(["image","url"]),v2=e=>Ds(e,m2,b2),x2=e=>Ds(e,"",y2),vo=()=>!0,Ds=(e,r,t)=>{const n=Qu.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):t(n[2]):!1},w2=e=>l2.test(e)&&!f2.test(e),eh=()=>!1,y2=e=>c2.test(e),b2=e=>u2.test(e),_2=()=>{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"),d=sr("gradientColorStops"),w=sr("gradientColorStopPositions"),v=sr("inset"),y=sr("margin"),_=sr("opacity"),S=sr("padding"),A=sr("saturate"),k=sr("scale"),M=sr("sepia"),K=sr("skew"),L=sr("space"),P=sr("translate"),R=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",Tt,r],T=()=>[Tt,r],W=()=>["",ji,oa],X=()=>["auto",Ls,Tt],fe=()=>["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"],ne=()=>["","0",Tt],ge=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[Ls,Tt];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[ji,oa],blur:["none","",la,Tt],brightness:ye(),borderColor:[e],borderRadius:["none","","full",la,Tt],borderSpacing:T(),borderWidth:W(),contrast:ye(),grayscale:ne(),hueRotate:ye(),invert:ne(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[h2,oa],inset:E(),margin:E(),opacity:ye(),padding:T(),saturate:ye(),scale:ye(),sepia:ne(),skew:ye(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Tt]}],container:["container"],columns:[{columns:[la]}],"break-after":[{"break-after":ge()}],"break-before":[{"break-before":ge()}],"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:[...fe(),Tt]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],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:ne()}],shrink:[{shrink:ne()}],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":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[mo,Tt]},Tt]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"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",nf]}],"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,nf]}],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:[...fe(),g2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",p2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},v2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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:W()}],"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,x2]}],"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:ye()}],ease:[{ease:["linear","in","out","in-out",Tt]}],delay:[{delay:ye()}],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,nf]}],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"]}}},S2=i2(_2);function Ft(...e){return S2(Gd(e))}function A2(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 Ht(e){"@babel/helpers - typeof";return Ht=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},Ht(e)}var rn=Uint8Array,Dn=Uint16Array,zf=Int32Array,cl=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]),ul=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]),Af=new rn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),th=function(e,r){for(var t=new Dn(31),n=0;n<31;++n)t[n]=r+=1<<e[n-1];for(var i=new zf(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}},rh=th(cl,2),nh=rh.b,Tf=rh.r;nh[28]=258,Tf[258]=28;var ih=th(ul,0),T2=ih.b,Uc=ih.r,Nf=new Dn(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,Nf[or]=((fa&65280)>>8|(fa&255)<<8)>>1}var Ti=(function(e,r,t){for(var n=e.length,i=0,a=new Dn(r);i<n;++i)e[i]&&++a[e[i]-1];var s=new Dn(r);for(i=1;i<r;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(t){o=new Dn(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[Nf[p]>>f]=c}else for(o=new Dn(n),i=0;i<n;++i)e[i]&&(o[i]=Nf[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 Io=new rn(32);for(var or=0;or<32;++or)Io[or]=5;var N2=Ti(va,9,0),E2=Ti(va,9,1),L2=Ti(Io,5,0),F2=Ti(Io,5,1),af=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},sf=function(e,r){var t=r/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(r&7)},Wf=function(e){return(e+7)/8|0},ah=function(e,r,t){return(t==null||t>e.length)&&(t=e.length),new rn(e.subarray(r,t))},C2=["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||C2[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,li),!t)throw n;return n},k2=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 Re=t.length;if(Pe>Re){var He=new rn(Math.max(Re*2,Pe));He.set(t),t=He}},u=r.f||0,p=r.p||0,g=r.b||0,d=r.l,w=r.d,v=r.m,y=r.n,_=i*8;do{if(!d){u=ii(e,p,1);var S=ii(e,p+1,3);if(p+=3,S)if(S==1)d=E2,w=F2,v=9,y=5;else if(S==2){var K=ii(e,p,31)+257,L=ii(e,p+10,15)+4,P=K+ii(e,p+5,31)+1;p+=14;for(var R=new rn(P),G=new rn(19),E=0;E<L;++E)G[Af[E]]=ii(e,p+E*3,7);p+=L*3;for(var T=af(G),W=(1<<T)-1,X=Ti(G,T,1),E=0;E<P;){var fe=X[ii(e,p,W)];p+=fe&15;var A=fe>>4;if(A<16)R[E++]=A;else{var Q=0,J=0;for(A==16?(J=3+ii(e,p,3),p+=2,Q=R[E-1]):A==17?(J=3+ii(e,p,7),p+=3):A==18&&(J=11+ii(e,p,127),p+=7);J--;)R[E++]=Q}}var oe=R.subarray(0,K),ne=R.subarray(K);v=af(oe),y=af(ne),d=Ti(oe,v,1),w=Ti(ne,y,1)}else li(1);else{var A=Wf(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 ge=(1<<v)-1,ye=(1<<y)-1,b=p;;b=p){var Q=d[sf(e,p)&ge],F=Q>>4;if(p+=Q&15,p>_){f&&li(0);break}if(Q||li(2),F<256)t[g++]=F;else if(F==256){b=p,d=null;break}else{var C=F-254;if(F>264){var E=F-257,I=cl[E];C=ii(e,p,(1<<I)-1)+nh[E],p+=I}var H=w[sf(e,p)&ye],le=H>>4;H||li(3),p+=H&15;var ne=T2[le];if(le>3){var I=ul[le];ne+=sf(e,p)&(1<<I)-1,p+=I}if(p>_){f&&li(0);break}o&&c(g+131072);var ce=g+C;if(g<ne){var ue=a-ne,we=Math.min(ne,ce);for(ue+g<0&&li(3);g<we;++g)t[g]=n[ue+g]}for(;g<ce;++g)t[g]=t[g-ne]}}r.l=d,r.p=b,r.b=g,r.f=u,d&&(u=1,r.m=v,r.d=w,r.n=y)}while(!u);return g!=t.length&&s?ah(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},of=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:oh,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 d=new Dn(g+1),w=Ef(t[u-1],d,0);if(w>r){var n=0,v=0,y=w-r,_=1<<y;for(a.sort(function(K,L){return d[L.s]-d[K.s]||K.f-L.f});n<i;++n){var S=a[n].s;if(d[S]>r)v+=_-(1<<w-d[S]),d[S]=r;else break}for(v>>=y;v>0;){var A=a[n].s;d[A]<r?v-=1<<r-d[A]++-1:++n}for(;n>=0&&v;--n){var k=a[n].s;d[k]==r&&(--d[k],++v)}w=r}return{t:new rn(d),l:w}},Ef=function(e,r,t){return e.s==-1?Math.max(Ef(e.l,r,t+1),Ef(e.r,r,t+1)):r[e.s]=t},zc=function(e){for(var r=e.length;r&&!e[--r];);for(var t=new Dn(++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},sh=function(e,r,t){var n=t.length,i=Wf(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},Wc=function(e,r,t,n,i,a,s,o,f,c,u){Ui(r,u++,t),++i[256];for(var p=of(i,15),g=p.t,d=p.l,w=of(a,15),v=w.t,y=w.l,_=zc(g),S=_.c,A=_.n,k=zc(v),M=k.c,K=k.n,L=new Dn(19),P=0;P<S.length;++P)++L[S[P]&31];for(var P=0;P<M.length;++P)++L[M[P]&31];for(var R=of(L,7),G=R.t,E=R.l,T=19;T>4&&!G[Af[T-1]];--T);var W=c+5<<3,X=wo(i,va)+wo(a,Io)+s,fe=wo(i,g)+wo(a,v)+s+14+3*T+wo(L,G)+2*L[16]+3*L[17]+7*L[18];if(f>=0&&W<=X&&W<=fe)return sh(r,u,e.subarray(f,f+c));var Q,J,oe,ne;if(Ui(r,u,1+(fe<X)),u+=2,fe<X){Q=Ti(g,d,0),J=g,oe=Ti(v,y,0),ne=v;var ge=Ti(G,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,G[Af[P]]);u+=3*T;for(var ye=[S,M],b=0;b<2;++b)for(var F=ye[b],P=0;P<F.length;++P){var C=F[P]&31;Ui(r,u,ge[C]),u+=G[C],C>15&&(Ui(r,u,F[P]>>5&127),u+=F[P]>>12)}}else Q=N2,J=va,oe=L2,ne=Io;for(var P=0;P<o;++P){var I=n[P];if(I>255){var C=I>>18&31;xo(r,u,Q[C+257]),u+=J[C+257],C>7&&(Ui(r,u,I>>23&31),u+=cl[C]);var H=I&31;xo(r,u,oe[H]),u+=ne[H],H>3&&(xo(r,u,I>>5&8191),u+=ul[H])}else xo(r,u,Q[I]),u+=J[I]}return xo(r,u,Q[256]),u+J[256]},P2=new zf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oh=new rn(0),I2=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=P2[r-1],g=p>>13,d=p&8191,w=(1<<t)-1,v=a.p||new Dn(32768),y=a.h||new Dn(w+1),_=Math.ceil(t/3),S=2*_,A=function(Ke){return(e[Ke]^e[Ke+1]<<_^e[Ke+2]<<S)&w},k=new zf(25e3),M=new Dn(288),K=new Dn(32),L=0,P=0,R=a.i||0,G=0,E=a.w||0,T=0;R+2<s;++R){var W=A(R),X=R&32767,fe=y[W];if(v[X]=fe,y[W]=X,E<=R){var Q=s-R;if((L>7e3||G>24576)&&(Q>423||!c)){u=Wc(e,f,0,k,M,K,P,G,T,R-T,u),G=L=P=0,T=R;for(var J=0;J<286;++J)M[J]=0;for(var J=0;J<30;++J)K[J]=0}var oe=2,ne=0,ge=d,ye=X-fe&32767;if(Q>2&&W==A(R-ye))for(var b=Math.min(g,Q)-1,F=Math.min(32767,R),C=Math.min(258,Q);ye<=F&&--ge&&X!=fe;){if(e[R+oe]==e[R+oe-ye]){for(var I=0;I<C&&e[R+I]==e[R+I-ye];++I);if(I>oe){if(oe=I,ne=ye,I>b)break;for(var H=Math.min(ye,I-2),le=0,J=0;J<H;++J){var ce=R-ye+J&32767,ue=v[ce],we=ce-ue&32767;we>le&&(le=we,fe=ce)}}}X=fe,fe=v[X],ye+=X-fe&32767}if(ne){k[G++]=268435456|Tf[oe]<<18|Uc[ne];var Pe=Tf[oe]&31,Re=Uc[ne]&31;P+=cl[Pe]+ul[Re],++M[257+Pe],++K[Re],E=R+oe,++L}else k[G++]=e[R],++M[e[R]]}}for(R=Math.max(R,E);R<s;++R)k[G++]=e[R],++M[e[R]];u=Wc(e,f,c,k,M,K,P,G,T,R-T,u),c||(a.r=u&7|f[u/8|0]<<3,u-=7,a.h=y,a.p=v,a.i=R,a.w=E)}else{for(var R=a.w||0;R<s+c;R+=65535){var He=R+65535;He>=s&&(f[u/8|0]=c,He=s),u=sh(f,u+1,e.subarray(R,He))}a.i=s}return ah(o,0,n+Wf(u)+i)},lh=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}}},O2=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 I2(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)},fh=function(e,r,t){for(;t;++r)e[r]=t,t>>>=8},D2=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=lh();i.p(r.dictionary),fh(e,2,i.d())}},R2=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 Lf(e,r){r||(r={});var t=lh();t.p(e);var n=O2(e,r,r.dictionary?6:2,4);return D2(n,r),fh(n,n.length-4,t.d()),n}function M2(e,r){return k2(e.subarray(R2(e),-4),{i:2},r,r)}var B2=typeof TextDecoder<"u"&&new TextDecoder,j2=0;try{B2.decode(oh,{stream:!0}),j2=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 lf(){gt.console&&typeof gt.console.log=="function"&>.console.log.apply(gt.console,arguments)}var tr={log:lf,warn:function(e){gt.console&&(typeof gt.console.warn=="function"?gt.console.warn.apply(gt.console,arguments):lf.call(null,arguments))},error:function(e){gt.console&&(typeof gt.console.error=="function"?gt.console.error.apply(gt.console,arguments):lf(e))}};function ff(e,r,t){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Ia(n.response,r,t)},n.onerror=function(){tr.error("could not download file")},n.send()}function Hc(e){var r=new XMLHttpRequest;r.open("HEAD",e,!1);try{r.send()}catch{}return r.status>=200&&r.status<=299}function D0(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 _o,Ff,Ia=gt.saveAs||((typeof window>"u"?"undefined":Ht(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?Hc(i.href)?ff(e,r,t):D0(i,i.target="_blank"):D0(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){D0(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,t){if(r=r||e.name||"download",typeof e=="string")if(Hc(e))ff(e,r,t);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){D0(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Ht(a)!=="object"&&(tr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(e,t),r)}:function(e,r,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return ff(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":Ht(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 ch(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 cf(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 hl(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 hl(r&t|~r&n,e,r,i,a,s)}function Qr(e,r,t,n,i,a,s){return hl(r&n|t&~n,e,r,i,a,s)}function en(e,r,t,n,i,a,s){return hl(r^t^n,e,r,i,a,s)}function tn(e,r,t,n,i,a,s){return hl(t^(r|~n),e,r,i,a,s)}function uh(e){var r,t=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=e.length;r+=64)cf(n,U2(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(cf(n,i),r=0;r<16;r++)i[r]=0;return i[14]=8*t,cf(n,i),n}function U2(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}_o=gt.atob.bind(gt),Ff=gt.btoa.bind(gt);var qc="0123456789abcdef".split("");function z2(e){for(var r="",t=0;t<4;t++)r+=qc[e>>8*t+4&15]+qc[e>>8*t&15];return r}function W2(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Cf(e){return uh(e).map(W2).join("")}var H2=(function(e){for(var r=0;r<e.length;r++)e[r]=z2(e[r]);return e.join("")})(uh("hello"))!="5d41402abc4b2a76b9719d911017c592";function da(e,r){if(H2){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 kf(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,d=0,w="";for(f=0;f<p;f++)d=(d+(u=o[g=(g+1)%256]))%256,o[g]=o[d],o[d]=u,s=o[(o[g]+o[d])%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 Gc={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(Gc.perm!==void 0)throw new Error("Invalid permission: "+o);i+=Gc[o]})),this.padding="(¿N^NuAd\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=Cf(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=kf(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 Vc(e){if(Ht(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&&tr.error("jsPDF PubSub Error",o.message,o)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function Oo(e){if(!(this instanceof Oo))return new Oo(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 hh(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,hh.call(this,n,i)}function Da(e,r,t,n,i){if(!(this instanceof Da))return new Da(e,r,t,n,i);this.boundingBox=e,this.xStep=r,this.yStep=t,this.stream="",this.cloneIndex=0,hh.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;Ht(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={},d={internal:{},__private__:{}};d.__private__.PubSub=Vc;var w="1.3",v=d.__private__.getPdfVersion=function(){return w};d.__private__.setPdfVersion=function(m){w=m};var y={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]};d.__private__.getPageFormats=function(){return y};var _=d.__private__.getPageFormat=function(m){return y[m]};i=i||"a4";var S={COMPAT:"compat",ADVANCED:"advanced"},A=S.COMPAT;function k(){this.saveGraphicsState(),se(new ht(et,0,0,-et,0,Ki()*et).toString()+" cm"),this.setFontSize(this.getFontSize()/et),c="n",A=S.ADVANCED}function M(){this.restoreGraphicsState(),c="S",A=S.COMPAT}var K=d.__private__.combineFontStyleAndFontWeight=function(m,D){if(m=="bold"&&D=="normal"||m=="bold"&&D==400||m=="normal"&&D=="italic"||m=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(m=D==400||D==="normal"?m==="italic"?"italic":"normal":D!=700&&D!=="bold"||m!=="normal"?(D==700?"bold":D)+""+m:"bold"),m};d.advancedAPI=function(m){var D=A===S.COMPAT;return D&&k.call(this),typeof m!="function"||(m(this),D&&M.call(this)),this},d.compatAPI=function(m){var D=A===S.ADVANCED;return D&&M.call(this),typeof m!="function"||(m(this),D&&k.call(this)),this},d.isAdvancedAPI=function(){return A===S.ADVANCED};var L,P=function(m){if(A!==S.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},R=d.roundToPrecision=d.__private__.roundToPrecision=function(m,D){var ae=r||D;if(isNaN(m)||isNaN(ae))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(ae).replace(/0+$/,"")};L=d.hpf=d.__private__.hpf=typeof f=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return R(m,f)}:f==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return R(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return R(m,16)};var G=d.f2=d.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return R(m,2)},E=d.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return R(m,3)},T=d.scale=d.__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},W=function(m){return A===S.COMPAT?Ki()-m:A===S.ADVANCED?m:void 0},X=function(m){return T(W(m))};d.__private__.setPrecision=d.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(r=parseInt(m,10))};var fe,Q="00000000000000000000000000000000",J=d.__private__.getFileId=function(){return Q},oe=d.__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&&($r=new As(u.userPermissions,u.userPassword,u.ownerPassword,Q)),Q};d.setFileId=function(m){return oe(m),this},d.getFileId=function(){return J()};var ne=d.__private__.convertDateToPDFDate=function(m){var D=m.getTimezoneOffset(),ae=D<0?"+":"-",he=Math.floor(Math.abs(D/60)),xe=Math.abs(D%60),Ce=[ae,C(he),"'",C(xe),"'"].join("");return["D:",m.getFullYear(),C(m.getMonth()+1),C(m.getDate()),C(m.getHours()),C(m.getMinutes()),C(m.getSeconds()),Ce].join("")},ge=d.__private__.convertPDFDateToDate=function(m){var D=parseInt(m.substr(2,4),10),ae=parseInt(m.substr(6,2),10)-1,he=parseInt(m.substr(8,2),10),xe=parseInt(m.substr(10,2),10),Ce=parseInt(m.substr(12,2),10),ze=parseInt(m.substr(14,2),10);return new Date(D,ae,he,xe,Ce,ze,0)},ye=d.__private__.setCreationDate=function(m){var D;if(m===void 0&&(m=new Date),m instanceof Date)D=ne(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");D=m}return fe=D},b=d.__private__.getCreationDate=function(m){var D=fe;return m==="jsDate"&&(D=ge(fe)),D};d.setCreationDate=function(m){return ye(m),this},d.getCreationDate=function(m){return b(m)};var F,C=d.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},I=d.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},H=0,le=[],ce=[],ue=0,we=[],Pe=[],Re=!1,He=ce,Ke=function(){H=0,ue=0,ce=[],le=[],we=[],Y=cr(),Z=cr()};d.__private__.setCustomOutputDestination=function(m){Re=!0,He=m};var Ee=function(m){Re||(He=m)};d.__private__.resetCustomOutputDestination=function(){Re=!1,He=ce};var se=d.__private__.out=function(m){return m=m.toString(),ue+=m.length+1,He.push(m),He},Me=d.__private__.write=function(m){return se(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},nt=d.__private__.getArrayBuffer=function(m){for(var D=m.length,ae=new ArrayBuffer(D),he=new Uint8Array(ae);D--;)he[D]=m.charCodeAt(D);return ae},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]];d.__private__.getStandardFonts=function(){return Ue};var Ge=e.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(m){return Ge=A===S.ADVANCED?m/et:m,this};var $e,Ze=d.__private__.getFontSize=d.getFontSize=function(){return A===S.COMPAT?Ge:Ge*et},lt=e.R2L||!1;d.__private__.setR2L=d.setR2L=function(m){return lt=m,this},d.__private__.getR2L=d.getR2L=function(){return lt};var ft,vt=d.__private__.setZoomMode=function(m){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))$e=m;else if(isNaN(m)){if(D.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.');$e=m}else $e=parseInt(m,10)};d.__private__.getZoomMode=function(){return $e};var St,Ct=d.__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};d.__private__.getPageMode=function(){return ft};var kt=d.__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};d.__private__.getLayoutMode=function(){return St},d.__private__.setDisplayMode=d.setDisplayMode=function(m,D,ae){return vt(m),kt(D),Ct(ae),this};var pt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(m){if(Object.keys(pt).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return pt[m]},d.__private__.getDocumentProperties=function(){return pt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(m){for(var D in pt)pt.hasOwnProperty(D)&&m[D]&&(pt[D]=m[D]);return this},d.__private__.setDocumentProperty=function(m,D){if(Object.keys(pt).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return pt[m]=D};var Et,et,Cr,It,dn,zt={},rr={},Mn=[],Dt={},pi={},ar={},An={},$n=null,Qt=0,xt=[],Mt=new Vc(d),Li=e.hotfixes||[],kr={},Bn={},jn=[],ht=function m(D,ae,he,xe,Ce,ze){if(!(this instanceof m))return new m(D,ae,he,xe,Ce,ze);isNaN(D)&&(D=1),isNaN(ae)&&(ae=0),isNaN(he)&&(he=0),isNaN(xe)&&(xe=1),isNaN(Ce)&&(Ce=0),isNaN(ze)&&(ze=0),this._matrix=[D,ae,he,xe,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(L).join(m)},ht.prototype.multiply=function(m){var D=m.sx*this.sx+m.shy*this.shx,ae=m.sx*this.shy+m.shy*this.sy,he=m.shx*this.sx+m.sy*this.shx,xe=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(D,ae,he,xe,Ce,ze)},ht.prototype.decompose=function(){var m=this.sx,D=this.shy,ae=this.shx,he=this.sy,xe=this.tx,Ce=this.ty,ze=Math.sqrt(m*m+D*D),it=(m/=ze)*ae+(D/=ze)*he;ae-=m*it,he-=D*it;var ct=Math.sqrt(ae*ae+he*he);return it/=ct,m*(he/=ct)<D*(ae/=ct)&&(m=-m,D=-D,it=-it,ze=-ze),{scale:new ht(ze,0,0,ct,0,0),translate:new ht(1,0,0,1,xe,Ce),rotate:new ht(m,D,-D,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,D=this.shy,ae=this.shx,he=this.sy,xe=this.tx,Ce=this.ty,ze=1/(m*he-D*ae),it=he*ze,ct=-D*ze,_t=-ae*ze,yt=m*ze;return new ht(it,ct,_t,yt,-it*xe-_t*Ce,-ct*xe-yt*Ce)},ht.prototype.applyToPoint=function(m){var D=m.x*this.sx+m.y*this.shx+this.tx,ae=m.x*this.shy+m.y*this.sy+this.ty;return new ns(D,ae)},ht.prototype.applyToRectangle=function(m){var D=this.applyToPoint(m),ae=this.applyToPoint(new ns(m.x+m.w,m.y+m.h));return new Ks(D.x,D.y,ae.x-D.x,ae.y-D.y)},ht.prototype.clone=function(){var m=this.sx,D=this.shy,ae=this.shx,he=this.sy,xe=this.tx,Ce=this.ty;return new ht(m,D,ae,he,xe,Ce)},d.Matrix=ht;var Tn=d.matrixMult=function(m,D){return D.multiply(m)},pn=new ht(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=pn;var Kr=function(m,D){if(!pi[m]){var ae=(D instanceof ha?"Sh":"P")+(Object.keys(Dt).length+1).toString(10);D.id=ae,pi[m]=ae,Dt[ae]=D,Mt.publish("addPattern",D)}};d.ShadingPattern=ha,d.TilingPattern=Da,d.addShadingPattern=function(m,D){return P("addShadingPattern()"),Kr(m,D),this},d.beginTilingPattern=function(m){P("beginTilingPattern()"),f0(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},d.endTilingPattern=function(m,D){P("endTilingPattern()"),D.stream=Pe[F].join(`
|
|
81
|
+
`),Kr(m,D),Mt.publish("endTilingPattern",D),jn.pop().restore()};var mr=d.__private__.newObject=function(){var m=cr();return j(m,!0),m},cr=d.__private__.newObjectDeferred=function(){return H++,le[H]=function(){return ue},H},j=function(m,D){return D=typeof D=="boolean"&&D,le[m]=ue,D&&se(m+" 0 obj"),m},re=d.__private__.newAdditionalObject=function(){var m={objId:cr(),content:""};return we.push(m),m},Y=cr(),Z=cr(),te=d.__private__.decodeColorString=function(m){var D=m.split(" ");if(D.length!==2||D[1]!=="g"&&D[1]!=="G")D.length===5&&(D[4]==="k"||D[4]==="K")&&(D=[(1-D[0])*(1-D[3]),(1-D[1])*(1-D[3]),(1-D[2])*(1-D[3]),"r"]);else{var ae=parseFloat(D[0]);D=[ae,ae,ae,"r"]}for(var he="#",xe=0;xe<3;xe++)he+=("0"+Math.floor(255*parseFloat(D[xe])).toString(16)).slice(-2);return he},ie=d.__private__.encodeColorString=function(m){var D;typeof m=="string"&&(m={ch1:m});var ae=m.ch1,he=m.ch2,xe=m.ch3,Ce=m.ch4,ze=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ae=="string"&&ae.charAt(0)!=="#"){var it=new ch(ae);if(it.ok)ae=it.toHex();else if(!/^\d*\.?\d*$/.test(ae))throw new Error('Invalid color "'+ae+'" passed to jsPDF.encodeColorString.')}if(typeof ae=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ae)&&(ae="#"+ae[1]+ae[1]+ae[2]+ae[2]+ae[3]+ae[3]),typeof ae=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ae)){var ct=parseInt(ae.substr(1),16);ae=ct>>16&255,he=ct>>8&255,xe=255&ct}if(he===void 0||Ce===void 0&&ae===he&&he===xe)if(typeof ae=="string")D=ae+" "+ze[0];else switch(m.precision){case 2:D=G(ae/255)+" "+ze[0];break;case 3:default:D=E(ae/255)+" "+ze[0]}else if(Ce===void 0||Ht(Ce)==="object"){if(Ce&&!isNaN(Ce.a)&&Ce.a===0)return D=["1.","1.","1.",ze[1]].join(" ");if(typeof ae=="string")D=[ae,he,xe,ze[1]].join(" ");else switch(m.precision){case 2:D=[G(ae/255),G(he/255),G(xe/255),ze[1]].join(" ");break;default:case 3:D=[E(ae/255),E(he/255),E(xe/255),ze[1]].join(" ")}}else if(typeof ae=="string")D=[ae,he,xe,Ce,ze[2]].join(" ");else switch(m.precision){case 2:D=[G(ae),G(he),G(xe),G(Ce),ze[2]].join(" ");break;case 3:default:D=[E(ae),E(he),E(xe),E(Ce),ze[2]].join(" ")}return D},_e=d.__private__.getFilters=function(){return s},Le=d.__private__.putStream=function(m){var D=(m=m||{}).data||"",ae=m.filters||_e(),he=m.alreadyAppliedFilters||[],xe=m.addLength1||!1,Ce=D.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=$r.encryptor(ze,0));var ct={};ae===!0&&(ae=["FlateEncode"]);var _t=m.additionalKeyValues||[],yt=(ct=ut.API.processDataByFilters!==void 0?ut.API.processDataByFilters(D,ae):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(he)?he.join(" "):he.toString());if(ct.data.length!==0&&(_t.push({key:"Length",value:ct.data.length}),xe===!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(" ")+"]"}}se("<<");for(var Ar=0;Ar<_t.length;Ar++)se("/"+_t[Ar].key+" "+_t[Ar].value);se(">>"),ct.data.length!==0&&(se("stream"),se(it(ct.data)),se("endstream"))},be=d.__private__.putPage=function(m){var D=m.number,ae=m.data,he=m.objId,xe=m.contentsObjId;j(he,!0),se("<</Type /Page"),se("/Parent "+m.rootDictionaryObjId+" 0 R"),se("/Resources "+m.resourceDictionaryObjId+" 0 R"),se("/MediaBox ["+parseFloat(L(m.mediaBox.bottomLeftX))+" "+parseFloat(L(m.mediaBox.bottomLeftY))+" "+L(m.mediaBox.topRightX)+" "+L(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&se("/CropBox ["+L(m.cropBox.bottomLeftX)+" "+L(m.cropBox.bottomLeftY)+" "+L(m.cropBox.topRightX)+" "+L(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&se("/BleedBox ["+L(m.bleedBox.bottomLeftX)+" "+L(m.bleedBox.bottomLeftY)+" "+L(m.bleedBox.topRightX)+" "+L(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&se("/TrimBox ["+L(m.trimBox.bottomLeftX)+" "+L(m.trimBox.bottomLeftY)+" "+L(m.trimBox.topRightX)+" "+L(m.trimBox.topRightY)+"]"),m.artBox!==null&&se("/ArtBox ["+L(m.artBox.bottomLeftX)+" "+L(m.artBox.bottomLeftY)+" "+L(m.artBox.topRightX)+" "+L(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&se("/UserUnit "+m.userUnit),Mt.publish("putPage",{objId:he,pageContext:xt[D],pageNumber:D,page:ae}),se("/Contents "+xe+" 0 R"),se(">>"),se("endobj");var Ce=ae.join(`
|
|
82
|
+
`);return A===S.ADVANCED&&(Ce+=`
|
|
83
|
+
Q`),j(xe,!0),Le({data:Ce,filters:_e(),objectId:xe}),se("endobj"),he},Te=d.__private__.putPages=function(){var m,D,ae=[];for(m=1;m<=Qt;m++)xt[m].objId=cr(),xt[m].contentsObjId=cr();for(m=1;m<=Qt;m++)ae.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:Y,resourceDictionaryObjId:Z}));j(Y,!0),se("<</Type /Pages");var he="/Kids [";for(D=0;D<Qt;D++)he+=ae[D]+" 0 R ";se(he+"]"),se("/Count "+Qt),se(">>"),se("endobj"),Mt.publish("postPutPages")},Ne=function(m){Mt.publish("putFont",{font:m,out:se,newObject:mr,putStream:Le}),m.isAlreadyPutted!==!0&&(m.objectNumber=mr(),se("<<"),se("/Type /Font"),se("/BaseFont /"+Ts(m.postScriptName)),se("/Subtype /Type1"),typeof m.encoding=="string"&&se("/Encoding /"+m.encoding),se("/FirstChar 32"),se("/LastChar 255"),se(">>"),se("endobj"))},We=function(){for(var m in zt)zt.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&Ne(zt[m])},Ve=function(m){m.objectNumber=mr();var D=[];D.push({key:"Type",value:"/XObject"}),D.push({key:"Subtype",value:"/Form"}),D.push({key:"BBox",value:"["+[L(m.x),L(m.y),L(m.x+m.width),L(m.y+m.height)].join(" ")+"]"}),D.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var ae=m.pages[1].join(`
|
|
84
|
+
`);Le({data:ae,additionalKeyValues:D,objectId:m.objectNumber}),se("endobj")},rt=function(){for(var m in kr)kr.hasOwnProperty(m)&&Ve(kr[m])},qe=function(m,D){var ae,he=[],xe=1/(D-1);for(ae=0;ae<1;ae+=xe)he.push(ae);if(he.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<he.length;_t++){for(ae=he[_t];ae>m[ct+1].offset;)ct++;var yt=m[ct].offset,Ot=(ae-yt)/(m[ct+1].offset-yt),fr=m[ct].color,ur=m[ct+1].color;it+=I(Math.round((1-Ot)*fr[0]+Ot*ur[0]).toString(16))+I(Math.round((1-Ot)*fr[1]+Ot*ur[1]).toString(16))+I(Math.round((1-Ot)*fr[2]+Ot*ur[2]).toString(16))}return it.trim()},tt=function(m,D){D||(D=21);var ae=mr(),he=qe(m.colors,D),xe=[];xe.push({key:"FunctionType",value:"0"}),xe.push({key:"Domain",value:"[0.0 1.0]"}),xe.push({key:"Size",value:"["+D+"]"}),xe.push({key:"BitsPerSample",value:"8"}),xe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),xe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Le({data:he,additionalKeyValues:xe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ae}),se("endobj"),m.objectNumber=mr(),se("<< /ShadingType "+m.type),se("/ColorSpace /DeviceRGB");var Ce="/Coords ["+L(parseFloat(m.coords[0]))+" "+L(parseFloat(m.coords[1]))+" ";m.type===2?Ce+=L(parseFloat(m.coords[2]))+" "+L(parseFloat(m.coords[3])):Ce+=L(parseFloat(m.coords[2]))+" "+L(parseFloat(m.coords[3]))+" "+L(parseFloat(m.coords[4]))+" "+L(parseFloat(m.coords[5])),se(Ce+="]"),m.matrix&&se("/Matrix ["+m.matrix.toString()+"]"),se("/Function "+ae+" 0 R"),se("/Extend [true true]"),se(">>"),se("endobj")},mt=function(m,D){var ae=cr(),he=mr();D.push({resourcesOid:ae,objectOid:he}),m.objectNumber=he;var xe=[];xe.push({key:"Type",value:"/Pattern"}),xe.push({key:"PatternType",value:"1"}),xe.push({key:"PaintType",value:"1"}),xe.push({key:"TilingType",value:"1"}),xe.push({key:"BBox",value:"["+m.boundingBox.map(L).join(" ")+"]"}),xe.push({key:"XStep",value:L(m.xStep)}),xe.push({key:"YStep",value:L(m.yStep)}),xe.push({key:"Resources",value:ae+" 0 R"}),m.matrix&&xe.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),Le({data:m.stream,additionalKeyValues:xe,objectId:m.objectNumber}),se("endobj")},Wt=function(m){var D;for(D in Dt)Dt.hasOwnProperty(D)&&(Dt[D]instanceof ha?tt(Dt[D]):Dt[D]instanceof Da&&mt(Dt[D],m))},$t=function(m){for(var D in m.objectNumber=mr(),se("<<"),m)switch(D){case"opacity":se("/ca "+G(m[D]));break;case"stroke-opacity":se("/CA "+G(m[D]))}se(">>"),se("endobj")},Sr=function(){var m;for(m in ar)ar.hasOwnProperty(m)&&$t(ar[m])},Jn=function(){for(var m in se("/XObject <<"),kr)kr.hasOwnProperty(m)&&kr[m].objectNumber>=0&&se("/"+m+" "+kr[m].objectNumber+" 0 R");Mt.publish("putXobjectDict"),se(">>")},Fi=function(){$r.oid=mr(),se("<<"),se("/Filter /Standard"),se("/V "+$r.v),se("/R "+$r.r),se("/U <"+$r.toHexString($r.U)+">"),se("/O <"+$r.toHexString($r.O)+">"),se("/P "+$r.P),se(">>"),se("endobj")},gi=function(){for(var m in se("/Font <<"),zt)zt.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&se("/"+m+" "+zt[m].objectNumber+" 0 R");se(">>")},Zn=function(){if(Object.keys(Dt).length>0){for(var m in se("/Shading <<"),Dt)Dt.hasOwnProperty(m)&&Dt[m]instanceof ha&&Dt[m].objectNumber>=0&&se("/"+m+" "+Dt[m].objectNumber+" 0 R");Mt.publish("putShadingPatternDict"),se(">>")}},mi=function(m){if(Object.keys(Dt).length>0){for(var D in se("/Pattern <<"),Dt)Dt.hasOwnProperty(D)&&Dt[D]instanceof d.TilingPattern&&Dt[D].objectNumber>=0&&Dt[D].objectNumber<m&&se("/"+D+" "+Dt[D].objectNumber+" 0 R");Mt.publish("putTilingPatternDict"),se(">>")}},Nn=function(){if(Object.keys(ar).length>0){var m;for(m in se("/ExtGState <<"),ar)ar.hasOwnProperty(m)&&ar[m].objectNumber>=0&&se("/"+m+" "+ar[m].objectNumber+" 0 R");Mt.publish("putGStateDict"),se(">>")}},vr=function(m){j(m.resourcesOid,!0),se("<<"),se("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),gi(),Zn(),mi(m.objectOid),Nn(),Jn(),se(">>"),se("endobj")},Yo=function(){var m=[];We(),Sr(),rt(),Wt(m),Mt.publish("putResources"),m.forEach(vr),vr({resourcesOid:Z,objectOid:Number.MAX_SAFE_INTEGER}),Mt.publish("postPutResources")},Ko=function(){Mt.publish("putAdditionalObjects");for(var m=0;m<we.length;m++){var D=we[m];j(D.objId,!0),se(D.content),se("endobj")}Mt.publish("postPutAdditionalObjects")},$o=function(m){rr[m.fontName]=rr[m.fontName]||{},rr[m.fontName][m.fontStyle]=m.id},Us=function(m,D,ae,he,xe){var Ce={id:"F"+(Object.keys(zt).length+1).toString(10),postScriptName:m,fontName:D,fontStyle:ae,encoding:he,isStandardFont:xe||!1,metadata:{}};return Mt.publish("addFont",{font:Ce,instance:this}),zt[Ce.id]=Ce,$o(Ce),Ce.id},bl=function(m){for(var D=0,ae=Ue.length;D<ae;D++){var he=Us.call(this,m[D][0],m[D][1],m[D][2],Ue[D][3],!0);p===!1&&(g[he]=!0);var xe=m[D][0].split("-");$o({id:he,fontName:xe[0],fontStyle:xe[1]||""})}Mt.publish("addFonts",{fonts:zt,dictionary:rr})},Qn=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(he){var D=he.stack||"";~D.indexOf(" at ")&&(D=D.split(" at ")[1]);var ae="Error in function "+D.split(`
|
|
85
|
+
`)[0].split("<")[0]+": "+he.message;if(!gt.console)throw new Error(ae);gt.console.error(ae,he),gt.alert&&alert(ae)}},m.foo.bar=m,m.foo},Ja=function(m,D){var ae,he,xe,Ce,ze,it,ct,_t,yt;if(xe=(D=D||{}).sourceEncoding||"Unicode",ze=D.outputEncoding,(D.autoencode||ze)&&zt[Et].metadata&&zt[Et].metadata[xe]&&zt[Et].metadata[xe].encoding&&(Ce=zt[Et].metadata[xe].encoding,!ze&&zt[Et].encoding&&(ze=zt[Et].encoding),!ze&&Ce.codePages&&(ze=Ce.codePages[0]),typeof ze=="string"&&(ze=Ce[ze]),ze)){for(ct=!1,it=[],ae=0,he=m.length;ae<he;ae++)(_t=ze[m.charCodeAt(ae)])?it.push(String.fromCharCode(_t)):it.push(m[ae]),it[ae].charCodeAt(0)>>8&&(ct=!0);m=it.join("")}for(ae=m.length;ct===void 0&&ae!==0;)m.charCodeAt(ae-1)>>8&&(ct=!0),ae--;if(!ct)return m;for(it=D.noBOM?[]:[254,255],ae=0,he=m.length;ae<he;ae++){if((yt=(_t=m.charCodeAt(ae))>>8)>>8)throw new Error("Character at position "+ae+" 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=d.__private__.pdfEscape=d.pdfEscape=function(m,D){return Ja(m,D).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zs=d.__private__.beginPage=function(m){Pe[++Qt]=[],xt[Qt]={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])}},Zo(Qt),Ee(Pe[F])},Jo=function(m,D){var ae,he,xe;switch(t=D||t,typeof m=="string"&&(ae=_(m.toLowerCase()),Array.isArray(ae)&&(he=ae[0],xe=ae[1])),Array.isArray(m)&&(he=m[0]*et,xe=m[1]*et),isNaN(he)&&(he=i[0],xe=i[1]),(he>14400||xe>14400)&&(tr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),he=Math.min(14400,he),xe=Math.min(14400,xe)),i=[he,xe],t.substr(0,1)){case"l":xe>he&&(i=[xe,he]);break;case"p":he>xe&&(i=[xe,he])}zs(i),i0(Gs),se(ei),Xs!==0&&se(Xs+" J"),Ys!==0&&se(Ys+" j"),Mt.publish("addPage",{pageNumber:Qt})},_l=function(m){m>0&&m<=Qt&&(Pe.splice(m,1),xt.splice(m,1),Qt--,F>Qt&&(F=Qt),this.setPage(F))},Zo=function(m){m>0&&m<=Qt&&(F=m)},Sl=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return Pe.length-1},Qo=function(m,D,ae){var he,xe=void 0;return ae=ae||{},m=m!==void 0?m:zt[Et].fontName,D=D!==void 0?D:zt[Et].fontStyle,he=m.toLowerCase(),rr[he]!==void 0&&rr[he][D]!==void 0?xe=rr[he][D]:rr[m]!==void 0&&rr[m][D]!==void 0?xe=rr[m][D]:ae.disableWarning===!1&&tr.warn("Unable to look up font label for font '"+m+"', '"+D+"'. Refer to getFontList() for available fonts."),xe||ae.noFallback||(xe=rr.times[D])==null&&(xe=rr.times.normal),xe},Al=d.__private__.putInfo=function(){var m=mr(),D=function(he){return he};for(var ae in u!==null&&(D=$r.encryptor(m,0)),se("<<"),se("/Producer ("+gn(D("jsPDF "+ut.version))+")"),pt)pt.hasOwnProperty(ae)&&pt[ae]&&se("/"+ae.substr(0,1).toUpperCase()+ae.substr(1)+" ("+gn(D(pt[ae]))+")");se("/CreationDate ("+gn(D(fe))+")"),se(">>"),se("endobj")},Ws=d.__private__.putCatalog=function(m){var D=(m=m||{}).rootDictionaryObjId||Y;switch(mr(),se("<<"),se("/Type /Catalog"),se("/Pages "+D+" 0 R"),$e||($e="fullwidth"),$e){case"fullwidth":se("/OpenAction [3 0 R /FitH null]");break;case"fullheight":se("/OpenAction [3 0 R /FitV null]");break;case"fullpage":se("/OpenAction [3 0 R /Fit]");break;case"original":se("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ae=""+$e;ae.substr(ae.length-1)==="%"&&($e=parseInt($e)/100),typeof $e=="number"&&se("/OpenAction [3 0 R /XYZ null null "+G($e)+"]")}switch(St||(St="continuous"),St){case"continuous":se("/PageLayout /OneColumn");break;case"single":se("/PageLayout /SinglePage");break;case"two":case"twoleft":se("/PageLayout /TwoColumnLeft");break;case"tworight":se("/PageLayout /TwoColumnRight")}ft&&se("/PageMode /"+ft),Mt.publish("putCatalog"),se(">>"),se("endobj")},Tl=d.__private__.putTrailer=function(){se("trailer"),se("<<"),se("/Size "+(H+1)),se("/Root "+H+" 0 R"),se("/Info "+(H-1)+" 0 R"),u!==null&&se("/Encrypt "+$r.oid+" 0 R"),se("/ID [ <"+Q+"> <"+Q+"> ]"),se(">>")},Nl=d.__private__.putHeader=function(){se("%PDF-"+w),se("%ºß¬à")},El=d.__private__.putXRef=function(){var m="0000000000";se("xref"),se("0 "+(H+1)),se("0000000000 65535 f ");for(var D=1;D<=H;D++)typeof le[D]=="function"?se((m+le[D]()).slice(-10)+" 00000 n "):le[D]!==void 0?se((m+le[D]).slice(-10)+" 00000 n "):se("0000000000 00000 n ")},Ci=d.__private__.buildDocument=function(){Ke(),Ee(ce),Mt.publish("buildDocument"),Nl(),Te(),Ko(),Yo(),u!==null&&Fi(),Al(),Ws();var m=ue;return El(),Tl(),se("startxref"),se(""+m),se("%%EOF"),Ee(Pe[F]),ce.join(`
|
|
86
|
+
`)},Za=d.__private__.getBlob=function(m){return new Blob([nt(m)],{type:"application/pdf"})},Qa=d.output=d.__private__.output=Qn((function(m,D){switch(typeof(D=D||{})=="string"?D={filename:D}:D.filename=D.filename||"generated.pdf",m){case void 0:return Ci();case"save":d.save(D.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&>.URL.createObjectURL(Za(Ci()))||void 0;tr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ae="",he=Ci();try{ae=Ff(he)}catch{ae=Ff(unescape(encodeURIComponent(he)))}return"data:application/pdf;filename="+D.filename+";base64,"+ae;case"pdfobjectnewwindow":if(Object.prototype.toString.call(gt)==="[object Window]"){var xe="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"';D.pdfObjectUrl&&(xe=D.pdfObjectUrl,Ce="");var ze='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+xe+'"'+Ce+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(D)+");<\/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="'+(D.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+D.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=D.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",D)+'"></iframe></body></html>',fr=gt.open();if(fr!==null&&(fr.document.write(Ot),fr.document.title=D.filename),fr||typeof safari>"u")return fr;break;case"datauri":case"dataurl":return gt.document.location.href=this.output("datauristring",D);default:return null}})),e0=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=e0("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 $r=null;ye(),oe();var Ll=function(m){return u!==null?$r.encryptor(m,0):function(D){return D}},t0=d.__private__.getPageInfo=d.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=d.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var D in xt)if(xt[D].objId===m)break;return t0(D)},Fl=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:xt[F].objId,pageNumber:F,pageContext:xt[F]}};d.addPage=function(){return Jo.apply(this,arguments),this},d.setPage=function(){return Zo.apply(this,arguments),Ee.call(this,Pe[F]),this},d.insertPage=function(m){return this.addPage(),this.movePage(F,m),this},d.movePage=function(m,D){var ae,he;if(m>D){ae=Pe[m],he=xt[m];for(var xe=m;xe>D;xe--)Pe[xe]=Pe[xe-1],xt[xe]=xt[xe-1];Pe[D]=ae,xt[D]=he,this.setPage(D)}else if(m<D){ae=Pe[m],he=xt[m];for(var Ce=m;Ce<D;Ce++)Pe[Ce]=Pe[Ce+1],xt[Ce]=xt[Ce+1];Pe[D]=ae,xt[D]=he,this.setPage(D)}return this},d.deletePage=function(){return _l.apply(this,arguments),this},d.__private__.text=d.text=function(m,D,ae,he,xe){var Ce,ze,it,ct,_t,yt,Ot,fr,ur,Ar=(he=he||{}).scope||this;if(typeof m=="number"&&typeof D=="number"&&(typeof ae=="string"||Array.isArray(ae))){var Jr=ae;ae=D,D=m,m=Jr}if(arguments[3]instanceof ht?(P("The transform parameter of text() with a Matrix value"),ur=xe):(it=arguments[4],ct=arguments[5],Ht(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),he={flags:Ot,angle:it,align:ct})),isNaN(D)||isNaN(ae)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return Ar;var Dr="",ti=!1,En=typeof he.lineHeightFactor=="number"?he.lineHeightFactor:Aa,wi=Ar.internal.scaleFactor;function c0(nr){return nr=nr.split(" ").join(Array(he.TabLen||9).join(" ")),gn(nr,Ot)}function Qs(nr){for(var ir,wr=nr.concat(),Pr=[],Di=wr.length;Di--;)typeof(ir=wr.shift())=="string"?Pr.push(ir):Array.isArray(nr)&&(ir.length===1||ir[1]===void 0&&ir[2]===void 0)?Pr.push(ir[0]):Pr.push([ir[0],ir[1],ir[2]]);return Pr}function eo(nr,ir){var wr;if(typeof nr=="string")wr=ir(nr)[0];else if(Array.isArray(nr)){for(var Pr,Di,lo=nr.concat(),ps=[],g0=lo.length;g0--;)typeof(Pr=lo.shift())=="string"?ps.push(ir(Pr)[0]):Array.isArray(Pr)&&typeof Pr[0]=="string"&&(Di=ir(Pr[0],Pr[1],Pr[2]),ps.push([Di[0],Di[1],Di[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=Ge/Ar.internal.scaleFactor,ls=os*(En-1);switch(he.baseline){case"bottom":ae-=ls;break;case"top":ae+=os-ls;break;case"hanging":ae+=os-2*ls;break;case"middle":ae+=os/2-ls}if((yt=he.maxWidth||0)>0&&(typeof m=="string"?m=Ar.splitTextToSize(m,yt):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce((function(nr,ir){return nr.concat(Ar.splitTextToSize(ir,yt))}),[]))),Ce={text:m,x:D,y:ae,options:he,mutex:{pdfEscape:gn,activeFontKey:Et,fonts:zt,activeFontSize:Ge}},Mt.publish("preProcessText",Ce),m=Ce.text,it=(he=Ce.options).angle,!(ur instanceof ht)&&it&&typeof it=="number"){it*=Math.PI/180,he.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=he.charSpace||rs)!==void 0&&(Dr+=L(T(_t))+` Tc
|
|
87
|
+
`,this.setCharSpace(this.getCharSpace()||0)),(fr=he.horizontalScale)!==void 0&&(Dr+=L(100*fr)+` Tz
|
|
88
|
+
`),he.lang;var mn=-1,jl=he.renderingMode!==void 0?he.renderingMode:he.stroke,io=Ar.internal.getCurrentPageInfo().pageContext;switch(jl){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 u0=io.usedRenderingMode!==void 0?io.usedRenderingMode:-1;mn!==-1?Dr+=mn+` Tr
|
|
89
|
+
`:u0!==-1&&(Dr+=`0 Tr
|
|
90
|
+
`),mn!==-1&&(io.usedRenderingMode=mn),ct=he.align||"left";var Un,cs=Ge*En,h0=Ar.internal.pageSize.getWidth(),d0=zt[Et];_t=he.charSpace||rs,yt=he.maxWidth||0,Ot=Object.assign({autoencode:!0,noBOM:!0},he.flags);var $i=[],Ea=function(nr){return Ar.getStringUnitWidth(nr,{font:d0,charSpace:_t,fontSize:Ge,doKerning:!1})*Ge/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"){D-=Un[0],m=[],zr=ze.length;for(var Pi=0;Pi<zr;Pi++)Pi===0?(sn=xi(D),vn=ki(ae)):(sn=T(Ji-Un[Pi]),vn=-cs),m.push([ze[Pi],sn,vn]),Ji=Un[Pi]}else if(ct==="center"){D-=Un[0]/2,m=[],zr=ze.length;for(var Ii=0;Ii<zr;Ii++)Ii===0?(sn=xi(D),vn=ki(ae)):(sn=T((Ji-Un[Ii])/2),vn=-cs),m.push([ze[Ii],sn,vn]),Ji=Un[Ii]}else if(ct==="left"){m=[],zr=ze.length;for(var us=0;us<zr;us++)m.push(ze[us])}else if(ct==="justify"&&d0.encoding==="Identity-H"){m=[],zr=ze.length,yt=yt!==0?yt:h0;for(var Oi=0,xr=0;xr<zr;xr++)if(vn=xr===0?ki(ae):-cs,sn=xr===0?xi(D):Oi,xr<zr-1){var ao=T((yt-Un[xr])/(ze[xr].split(" ").length-1)),on=ze[xr].split(" ");m.push([on[0]+" ",sn,vn]),Oi=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]),Oi-=hs}}else m.push([ze[xr],sn,vn]);m.push(["",Oi,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:h0,xr=0;xr<zr;xr++)vn=xr===0?ki(ae):-cs,sn=xr===0?xi(D):0,xr<zr-1?$i.push(L(T((yt-Un[xr])/(ze[xr].split(" ").length-1)))):$i.push(0),m.push([ze[xr],sn,vn])}}var p0=typeof he.R2L=="boolean"?he.R2L:lt;p0===!0&&(m=eo(m,(function(nr,ir,wr){return[nr.split("").reverse().join(""),ir,wr]}))),Ce={text:m,x:D,y:ae,options:he,mutex:{pdfEscape:gn,activeFontKey:Et,fonts:zt,activeFontSize:Ge}},Mt.publish("postProcessText",Ce),m=Ce.text,ti=Ce.mutex.isHex||!1;var so=zt[Et].encoding;so!=="WinAnsiEncoding"&&so!=="StandardEncoding"||(m=eo(m,(function(nr,ir,wr){return[c0(nr),ir,wr]}))),ze=Qs(m),m=[];for(var La,Fa,Zi,Ca=0,ds=1,ka=Array.isArray(ze[0])?ds:Ca,Qi="",oo=function(nr,ir,wr){var Pr="";return wr instanceof ht?(wr=typeof he.angle=="number"?Tn(wr,new ht(1,0,0,1,nr,ir)):Tn(new ht(1,0,0,1,nr,ir),wr),A===S.ADVANCED&&(wr=Tn(new ht(1,0,0,-1,0,0),wr)),Pr=wr.join(" ")+` Tm
|
|
91
|
+
`):Pr=L(nr)+" "+L(ir)+` 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(D),Fa=ki(ae)}$i!==void 0&&$i[Wn]!==void 0&&(Qi=$i[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+=Et+" "+Ge+` Tf
|
|
98
|
+
`,Hn+=L(Ge*En)+` TL
|
|
99
|
+
`,Hn+=Ta+`
|
|
100
|
+
`,Hn+=Dr,Hn+=m,se(Hn+="ET"),g[Et]=!0,Ar};var Cl=d.__private__.clip=d.clip=function(m){return se(m==="evenodd"?"W*":"W"),this};d.clipEvenOdd=function(){return Cl("evenodd")},d.__private__.discardPath=d.discardPath=function(){return se("n"),this};var vi=d.__private__.isValidStyle=function(m){var D=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(D=!0),D};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(m){return vi(m)&&(c=m),this};var r0=d.__private__.getStyle=d.getStyle=function(m){var D=c;switch(m){case"D":case"S":D="S";break;case"F":D="f";break;case"FD":case"DF":D="B";break;case"f":case"f*":case"B":case"B*":D=m}return D},n0=d.close=function(){return se("h"),this};d.stroke=function(){return se("S"),this},d.fill=function(m){return es("f",m),this},d.fillEvenOdd=function(m){return es("f*",m),this},d.fillStroke=function(m){return es("B",m),this},d.fillStrokeEvenOdd=function(m){return es("B*",m),this};var es=function(m,D){Ht(D)==="object"?Pl(D,m):se(m)},Hs=function(m){m===null||A===S.ADVANCED&&m===void 0||(m=r0(m),se(m))};function kl(m,D,ae,he,xe){var Ce=new Da(D||this.boundingBox,ae||this.xStep,he||this.yStep,this.gState,xe||this.matrix);Ce.stream=this.stream;var ze=m+"$$"+this.cloneIndex+++"$$";return Kr(ze,Ce),Ce}var Pl=function(m,D){var ae=pi[m.key],he=Dt[ae];if(he instanceof ha)se("q"),se(Il(D)),he.gState&&d.setGState(he.gState),se(m.matrix.toString()+" cm"),se("/"+ae+" sh"),se("Q");else if(he instanceof Da){var xe=new ht(1,0,0,-1,0,Ki());m.matrix&&(xe=xe.multiply(m.matrix||pn),ae=kl.call(he,m.key,m.boundingBox,m.xStep,m.yStep,xe).id),se("q"),se("/Pattern cs"),se("/"+ae+" scn"),he.gState&&d.setGState(he.gState),se(D),se("Q")}},Il=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=d.moveTo=function(m,D){return se(L(T(m))+" "+L(X(D))+" m"),this},Sa=d.lineTo=function(m,D){return se(L(T(m))+" "+L(X(D))+" l"),this},Xi=d.curveTo=function(m,D,ae,he,xe,Ce){return se([L(T(m)),L(X(D)),L(T(ae)),L(X(he)),L(T(xe)),L(X(Ce)),"c"].join(" ")),this};d.__private__.line=d.line=function(m,D,ae,he,xe){if(isNaN(m)||isNaN(D)||isNaN(ae)||isNaN(he)||!vi(xe))throw new Error("Invalid arguments passed to jsPDF.line");return A===S.COMPAT?this.lines([[ae-m,he-D]],m,D,[1,1],xe||"S"):this.lines([[ae-m,he-D]],m,D,[1,1]).stroke()},d.__private__.lines=d.lines=function(m,D,ae,he,xe,Ce){var ze,it,ct,_t,yt,Ot,fr,ur,Ar,Jr,Dr,ti;if(typeof m=="number"&&(ti=ae,ae=D,D=m,m=ti),he=he||[1,1],Ce=Ce||!1,isNaN(D)||isNaN(ae)||!Array.isArray(m)||!Array.isArray(he)||!vi(xe)||typeof Ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(qs(D,ae),ze=he[0],it=he[1],_t=m.length,Jr=D,Dr=ae,ct=0;ct<_t;ct++)(yt=m[ct]).length===2?(Jr=yt[0]*ze+Jr,Dr=yt[1]*it+Dr,Sa(Jr,Dr)):(Ot=yt[0]*ze+Jr,fr=yt[1]*it+Dr,ur=yt[2]*ze+Jr,Ar=yt[3]*it+Dr,Jr=yt[4]*ze+Jr,Dr=yt[5]*it+Dr,Xi(Ot,fr,ur,Ar,Jr,Dr));return Ce&&n0(),Hs(xe),this},d.path=function(m){for(var D=0;D<m.length;D++){var ae=m[D],he=ae.c;switch(ae.op){case"m":qs(he[0],he[1]);break;case"l":Sa(he[0],he[1]);break;case"c":Xi.apply(this,he);break;case"h":n0()}}return this},d.__private__.rect=d.rect=function(m,D,ae,he,xe){if(isNaN(m)||isNaN(D)||isNaN(ae)||isNaN(he)||!vi(xe))throw new Error("Invalid arguments passed to jsPDF.rect");return A===S.COMPAT&&(he=-he),se([L(T(m)),L(X(D)),L(T(ae)),L(T(he)),"re"].join(" ")),Hs(xe),this},d.__private__.triangle=d.triangle=function(m,D,ae,he,xe,Ce,ze){if(isNaN(m)||isNaN(D)||isNaN(ae)||isNaN(he)||isNaN(xe)||isNaN(Ce)||!vi(ze))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ae-m,he-D],[xe-ae,Ce-he],[m-xe,D-Ce]],m,D,[1,1],ze,!0),this},d.__private__.roundedRect=d.roundedRect=function(m,D,ae,he,xe,Ce,ze){if(isNaN(m)||isNaN(D)||isNaN(ae)||isNaN(he)||isNaN(xe)||isNaN(Ce)||!vi(ze))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var it=4/3*(Math.SQRT2-1);return xe=Math.min(xe,.5*ae),Ce=Math.min(Ce,.5*he),this.lines([[ae-2*xe,0],[xe*it,0,xe,Ce-Ce*it,xe,Ce],[0,he-2*Ce],[0,Ce*it,-xe*it,Ce,-xe,Ce],[2*xe-ae,0],[-xe*it,0,-xe,-Ce*it,-xe,-Ce],[0,2*Ce-he],[0,-Ce*it,xe*it,-Ce,xe,-Ce]],m+xe,D,[1,1],ze,!0),this},d.__private__.ellipse=d.ellipse=function(m,D,ae,he,xe){if(isNaN(m)||isNaN(D)||isNaN(ae)||isNaN(he)||!vi(xe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ce=4/3*(Math.SQRT2-1)*ae,ze=4/3*(Math.SQRT2-1)*he;return qs(m+ae,D),Xi(m+ae,D-ze,m+Ce,D-he,m,D-he),Xi(m-Ce,D-he,m-ae,D-ze,m-ae,D),Xi(m-ae,D+ze,m-Ce,D+he,m,D+he),Xi(m+Ce,D+he,m+ae,D+ze,m+ae,D),Hs(xe),this},d.__private__.circle=d.circle=function(m,D,ae,he){if(isNaN(m)||isNaN(D)||isNaN(ae)||!vi(he))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,D,ae,ae,he)},d.setFont=function(m,D,ae){return ae&&(D=K(D,ae)),Et=Qo(m,D,{disableWarning:!1}),this};var Ol=d.__private__.getFont=d.getFont=function(){return zt[Qo.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var m,D,ae={};for(m in rr)if(rr.hasOwnProperty(m))for(D in ae[m]=[],rr[m])rr[m].hasOwnProperty(D)&&ae[m].push(D);return ae},d.addFont=function(m,D,ae,he,xe){var Ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ce.indexOf(arguments[3])!==-1?xe=arguments[3]:arguments[3]&&Ce.indexOf(arguments[3])==-1&&(ae=K(ae,he)),xe=xe||"Identity-H",Us.call(this,m,D,ae,xe)};var Aa,Gs=e.lineWidth||.200025,ts=d.__private__.getLineWidth=d.getLineWidth=function(){return Gs},i0=d.__private__.setLineWidth=d.setLineWidth=function(m){return Gs=m,se(L(T(m))+" w"),this};d.__private__.setLineDash=ut.API.setLineDash=ut.API.setLineDashPattern=function(m,D){if(m=m||[],D=D||0,isNaN(D)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map((function(ae){return L(T(ae))})).join(" "),D=L(T(D)),se("["+m+"] "+D+" d"),this};var a0=d.__private__.getLineHeight=d.getLineHeight=function(){return Ge*Aa};d.__private__.getLineHeight=d.getLineHeight=function(){return Ge*Aa};var s0=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(Aa=m),this},o0=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Aa};s0(e.lineHeight);var xi=d.__private__.getHorizontalCoordinate=function(m){return T(m)},ki=d.__private__.getVerticalCoordinate=function(m){return A===S.ADVANCED?m:xt[F].mediaBox.topRightY-xt[F].mediaBox.bottomLeftY-T(m)},Dl=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(m){return L(xi(m))},Yi=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(m){return L(ki(m))},ei=e.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return te(ei)},d.__private__.setStrokeColor=d.setDrawColor=function(m,D,ae,he){return ei=ie({ch1:m,ch2:D,ch3:ae,ch4:he,pdfColorType:"draw",precision:2}),se(ei),this};var Vs=e.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return te(Vs)},d.__private__.setFillColor=d.setFillColor=function(m,D,ae,he){return Vs=ie({ch1:m,ch2:D,ch3:ae,ch4:he,pdfColorType:"fill",precision:2}),se(Vs),this};var Ta=e.textColor||"0 g",Rl=d.__private__.getTextColor=d.getTextColor=function(){return te(Ta)};d.__private__.setTextColor=d.setTextColor=function(m,D,ae,he){return Ta=ie({ch1:m,ch2:D,ch3:ae,ch4:he,pdfColorType:"text",precision:3}),this};var rs=e.charSpace,Ml=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(rs||0)};d.__private__.setCharSpace=d.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return rs=m,this};var Xs=0;d.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},d.__private__.setLineCap=d.setLineCap=function(m){var D=d.CapJoinStyles[m];if(D===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xs=D,se(D+" J"),this};var Ys=0;d.__private__.setLineJoin=d.setLineJoin=function(m){var D=d.CapJoinStyles[m];if(D===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ys=D,se(D+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return se(L(T(m))+" M"),this},d.GState=Oo,d.setGState=function(m){(m=typeof m=="string"?ar[An[m]]:l0(null,m)).equals($n)||(se("/"+m.id+" gs"),$n=m)};var l0=function(m,D){if(!m||!An[m]){var ae=!1;for(var he in ar)if(ar.hasOwnProperty(he)&&ar[he].equals(D)){ae=!0;break}if(ae)D=ar[he];else{var xe="GS"+(Object.keys(ar).length+1).toString(10);ar[xe]=D,D.id=xe}return m&&(An[m]=D.id),Mt.publish("addGState",D),D}};d.addGState=function(m,D){return l0(m,D),this},d.saveGraphicsState=function(){return se("q"),Mn.push({key:Et,size:Ge,color:Ta}),this},d.restoreGraphicsState=function(){se("Q");var m=Mn.pop();return Et=m.key,Ge=m.size,Ta=m.color,$n=null,this},d.setCurrentTransformationMatrix=function(m){return se(m.toString()+" cm"),this},d.comment=function(m){return se("#"+m),this};var ns=function(m,D){var ae=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(Ce){isNaN(Ce)||(ae=parseFloat(Ce))}});var he=D||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return he},set:function(Ce){isNaN(Ce)||(he=parseFloat(Ce))}});var xe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return xe},set:function(Ce){xe=Ce.toString()}}),this},Ks=function(m,D,ae,he){ns.call(this,m,D),this.type="rect";var xe=ae||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return xe},set:function(ze){isNaN(ze)||(xe=parseFloat(ze))}});var Ce=he||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ce},set:function(ze){isNaN(ze)||(Ce=parseFloat(ze))}}),this},$s=function(){this.page=Qt,this.currentPage=F,this.pages=Pe.slice(0),this.pagesContext=xt.slice(0),this.x=Cr,this.y=It,this.matrix=dn,this.width=Na(F),this.height=Ki(F),this.outputDestination=He,this.id="",this.objectNumber=-1};$s.prototype.restore=function(){Qt=this.page,F=this.currentPage,xt=this.pagesContext,Pe=this.pages,Cr=this.x,It=this.y,dn=this.matrix,Js(F,this.width),Zs(F,this.height),He=this.outputDestination};var f0=function(m,D,ae,he,xe){jn.push(new $s),Qt=F=0,Pe=[],Cr=m,It=D,dn=xe,zs([ae,he])},Bl=function(m){if(Bn[m])jn.pop().restore();else{var D=new $s,ae="Xo"+(Object.keys(kr).length+1).toString(10);D.id=ae,Bn[m]=ae,kr[ae]=D,Mt.publish("addFormObject",D),jn.pop().restore()}};for(var is in d.beginFormObject=function(m,D,ae,he,xe){return f0(m,D,ae,he,xe),this},d.endFormObject=function(m){return Bl(m),this},d.doFormObject=function(m,D){var ae=kr[Bn[m]];return se("q"),se(D.toString()+" cm"),se("/"+ae.id+" Do"),se("Q"),this},d.getFormObject=function(m){var D=kr[Bn[m]];return{x:D.x,y:D.y,width:D.width,height:D.height,matrix:D.matrix}},d.save=function(m,D){return m=m||"generated.pdf",(D=D||{}).returnPromise=D.returnPromise||!1,D.returnPromise===!1?(Ia(Za(Ci()),m),typeof Ia.unload=="function"&>.setTimeout&&setTimeout(Ia.unload,911),this):new Promise((function(ae,he){try{var xe=Ia(Za(Ci()),m);typeof Ia.unload=="function"&>.setTimeout&&setTimeout(Ia.unload,911),ae(xe)}catch(Ce){he(Ce.message)}}))},ut.API)ut.API.hasOwnProperty(is)&&(is==="events"&&ut.API.events.length?(function(m,D){var ae,he,xe;for(xe=D.length-1;xe!==-1;xe--)ae=D[xe][0],he=D[xe][1],m.subscribe.apply(m,[ae].concat(typeof he=="function"?[he]:he))})(Mt,ut.API.events):d[is]=ut.API[is]);var Na=d.getPageWidth=function(m){return(xt[m=m||F].mediaBox.topRightX-xt[m].mediaBox.bottomLeftX)/et},Js=d.setPageWidth=function(m,D){xt[m].mediaBox.topRightX=D*et+xt[m].mediaBox.bottomLeftX},Ki=d.getPageHeight=function(m){return(xt[m=m||F].mediaBox.topRightY-xt[m].mediaBox.bottomLeftY)/et},Zs=d.setPageHeight=function(m,D){xt[m].mediaBox.topRightY=D*et+xt[m].mediaBox.bottomLeftY};return d.internal={pdfEscape:gn,getStyle:r0,getFont:Ol,getFontSize:Ze,getCharSpace:Ml,getTextColor:Rl,getLineHeight:a0,getLineHeightFactor:o0,getLineWidth:ts,write:Me,getHorizontalCoordinate:xi,getVerticalCoordinate:ki,getCoordinateString:Dl,getVerticalCoordinateString:Yi,collections:{},newObject:mr,newAdditionalObject:re,newObjectDeferred:cr,newObjectDeferredBegin:j,getFilters:_e,putStream:Le,events:Mt,scaleFactor:et,pageSize:{getWidth:function(){return Na(F)},setWidth:function(m){Js(F,m)},getHeight:function(){return Ki(F)},setHeight:function(m){Zs(F,m)}},encryptionOptions:u,encryption:$r,getEncryptor:Ll,output:Qa,getNumberOfPages:Sl,pages:Pe,out:se,f2:G,f3:E,getPageInfo:t0,getPageInfoByObjId:wt,getCurrentPageInfo:Fl,getPDFVersion:v,Point:ns,Rectangle:Ks,Matrix:ht,hasHotfix:e0},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Na(F)},set:function(m){Js(F,m)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return Ki(F)},set:function(m){Zs(F,m)},enumerable:!0,configurable:!0}),bl.call(d,Ue),Et="F1",Jo(i,t),Mt.publish("initialized"),d}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 kf(Cf(r).substr(0,5),e)},As.prototype.encryptor=function(e,r){var t=Cf(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&r,r>>8&255)).substr(0,10);return function(n){return kf(t,n)}},Oo.prototype.equals=function(e){var r,t="id,objectNumber,equals";if(!e||Ht(e)!==Ht(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,Hf=1,Ga=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},Xc=function(e){return e*Hf},bi=function(e){var r=new ph,t=st.internal.getHeight(e)||0,n=st.internal.getWidth(e)||0;return r.BBox=[0,0,Number(bt(n)),Number(bt(t))],r},q2=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},G2=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)},V2=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 V2(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 q2(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 G2(e,r-1)},X2=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))]},Y2=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var r=[],t=e._V||e.DV,n=Pf(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}},Pf=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=st.internal.getHeight(e)||0;s=s<0?-s:s;var o=st.internal.getWidth(e)||0;o=o<0?-o:o;var f=function(E,T,W){if(E+1<i.length){var X=T+" "+i[E+1][0];return R0(X,e,W).width<=o-4}return!1};a++;e:for(;a>0;){r="",a--;var c,u,p=R0("3",e,a).height,g=e.multiline?s-a:(s-p)/2,d=g+=2,w=0,v=0,y=0;if(a<=0){r=`(...) Tj
|
|
103
|
+
`,r+="% Width of Text: "+R0(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&&y!==i[A].length-1){if((p+2)*(S+2)+2>s)continue e;_+=i[A][y],k=!0,v=A,A--}else{_=(_+=i[A][y]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var M=parseInt(A),K=f(M,_,a),L=A>=i.length-1;if(K&&!L){_+=" ",y=0;continue}if(K||L){if(L)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="",R=w;R<=v;R++){var G=i[R];if(e.multiline){if(R===v){P+=G[y]+" ",y=(y+1)%G.length;continue}if(R===w){P+=G[G.length-1]+" ";continue}}P+=G[0]+" "}switch(P=P.substr(P.length-1)==" "?P.substr(0,P.length-1):P,u=R0(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(d)+` Td
|
|
105
|
+
`,r+="("+Ga(P)+`) Tj
|
|
106
|
+
`,r+=-bt(c)+` 0 Td
|
|
107
|
+
`,d=-(a+2),u=0,w=k?v:v+1,S++,_=""}break}return n.text=r,n.fontSize=a,n},R0=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}},K2={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$2=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)},J2=function(e,r){for(var t in e)if(e.hasOwnProperty(t)){var n=t,i=e[t];r.internal.newObjectDeferredBegin(i.objId,!0),Ht(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},Z2=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(K2)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Hf=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new gh,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&&$2(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=X2(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=st.createDefaultAppearanceStream(o),Ht(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(f=o.getKeyValueListForStream()),o.Rect=c,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=Y2(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 d=o.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var s in d)if(d.hasOwnProperty(s)){var w=d[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=d)=="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&&J2(i.internal.acroformPlugin.xForms,i)})(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},dh=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+=" "),Ht(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+="("+Ga(n(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},uf=function(e,r,t){var n=function(i){return i};return r!==void 0&&t&&(n=t.internal.getEncryptor(r)),(e=e||"").toString(),e="("+Ga(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:dh(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 ph=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(ph,Ai);var gh=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)),"("+Ga(t(e))+")"}},set:function(t){e=t}})};Sn(gh,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 Y0)return;a="FieldObject"+e.FieldNum++}var _=function(S){return S};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Ga(_(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/Hf: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 Y0||this instanceof ma))return uf(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 Or?g:uf(g,this.objId,this.scope)},set:function(_){_=_.toString(),g=this instanceof Or?_:_.substr(0,1)==="("?ws(_.substr(1,_.length-2)):ws(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Or?ws(g.substr(1,g.length-1)):g},set:function(_){_=_.toString(),g=this instanceof Or?"/"+_:_}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Or?d:uf(d,this.objId,this.scope)},set:function(_){_=_.toString(),d=this instanceof Or?_:_.substr(0,1)==="("?ws(_.substr(1,_.length-2)):ws(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Or?ws(d.substr(1,d.length-1)):d},set:function(_){_=_.toString(),d=this instanceof Or?"/"+_:_}}),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 y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');y=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(y){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:y=2;break;case"center":case 1:y=1;break;case"left":case 0:default:y=0}}})};Sn(hi,Ai);var Ra=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 dh(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(Ra,hi);var Ma=function(){Ra.call(this),this.fontName="helvetica",this.combo=!1};Sn(Ma,Ra);var Ba=function(){Ma.call(this),this.combo=!0};Sn(Ba,Ma);var So=function(){Ba.call(this),this.edit=!0};Sn(So,Ba);var Or=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+" ("+Ga(t(r[n]))+")");return i.push(">>"),i.join(`
|
|
109
|
+
`)}},set:function(t){Ht(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(Or,hi);var Ao=function(){Or.call(this),this.pushButton=!0};Sn(Ao,Or);var ja=function(){Or.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,Or);var Y0=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+" ("+Ga(i(n[a]))+")");return s.push(">>"),s.join(`
|
|
110
|
+
`)},set:function(i){Ht(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=st.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Sn(Y0,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 Y0;return r.Parent=this,r.optionName=e,this.Kids.push(r),Q2.call(this.scope,r),r};var To=function(){Or.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=st.CheckBox.createAppearanceStream()};Sn(To,Or);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 No=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(No,ma);var st={CheckBox:{createAppearanceStream:function(){return{N:{On:st.CheckBox.YesNormal},D:{On:st.CheckBox.YesPushDown,Off:st.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=Pf(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+bt(st.internal.getWidth(e))+" "+bt(st.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=st.internal.getHeight(e),s=st.internal.getWidth(e),o=Pf(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(st.internal.getWidth(e))+" "+bt(st.internal.getHeight(e))+" re"),t.push("f"),r.stream=t.join(`
|
|
113
|
+
`),r}},RadioButton:{Circle:{createAppearanceStream:function(e){var r={D:{Off:st.RadioButton.Circle.OffPushDown},N:{}};return r.N[e]=st.RadioButton.Circle.YesNormal,r.D[e]=st.RadioButton.Circle.YesPushDown,r},getCA:function(){return"l"},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=st.internal.getWidth(e)<=st.internal.getHeight(e)?st.internal.getWidth(e)/4:st.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=st.internal.Bezier_C,a=Number((n*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+ca(st.internal.getWidth(e)/2)+" "+ca(st.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=st.internal.getWidth(e)<=st.internal.getHeight(e)?st.internal.getWidth(e)/4:st.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*st.internal.Bezier_C).toFixed(5)),s=Number((n*st.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ca(st.internal.getWidth(e)/2)+" "+ca(st.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(st.internal.getWidth(e)/2)+" "+ca(st.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=st.internal.getWidth(e)<=st.internal.getHeight(e)?st.internal.getWidth(e)/4:st.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*st.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ca(st.internal.getWidth(e)/2)+" "+ca(st.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:st.RadioButton.Cross.OffPushDown},N:{}};return r.N[e]=st.RadioButton.Cross.YesNormal,r.D[e]=st.RadioButton.Cross.YesPushDown,r},getCA:function(){return"8"},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=st.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+bt(st.internal.getWidth(e)-2)+" "+bt(st.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=st.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+bt(st.internal.getWidth(e))+" "+bt(st.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+bt(st.internal.getWidth(e)-2)+" "+bt(st.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(st.internal.getWidth(e))+" "+bt(st.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}};st.internal={Bezier_C:.551915024494,calculateCross:function(e){var r=st.internal.getWidth(e),t=st.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}}}},st.internal.getWidth=function(e){var r=0;return Ht(e)==="object"&&(r=Xc(e.Rect[2])),r},st.internal.getHeight=function(e){var r=0;return Ht(e)==="object"&&(r=Xc(e.Rect[3])),r};var Q2=dr.addField=function(e){if(Z2(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=Ra,dr.AcroFormListBox=Ma,dr.AcroFormComboBox=Ba,dr.AcroFormEditBox=So,dr.AcroFormButton=Or,dr.AcroFormPushButton=Ao,dr.AcroFormRadioButton=ja,dr.AcroFormCheckBox=To,dr.AcroFormTextField=ma,dr.AcroFormPasswordField=No,dr.AcroFormAppearance=st,dr.AcroForm={ChoiceField:Ra,ListBox:Ma,ComboBox:Ba,EditBox:So,Button:Or,PushButton:Ao,RadioButton:ja,CheckBox:To,TextField:ma,PasswordField:No,Appearance:st},ut.AcroForm={ChoiceField:Ra,ListBox:Ma,ComboBox:Ba,EditBox:So,Button:Or,PushButton:Ao,RadioButton:ja,CheckBox:To,TextField:ma,PasswordField:No,Appearance:st};var ep=ut.AcroForm;function mh(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 W,X,fe,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(fe=t[J],W=0;W<fe.length;W+=1){for(Q=!0,X=0;X<fe[W].length;X+=1)if(fe[W][X]!==void 0&&fe[W][X]!==E[X]){Q=!1;break}if(Q===!0){oe=J;break}}else for(J in t)for(fe=t[J],W=0;W<fe.length;W+=1){for(Q=!0,X=0;X<fe[W].length;X+=1)if(fe[W][X]!==void 0&&fe[W][X]!==E.charCodeAt(X)){Q=!1;break}if(Q===!0){oe=J;break}}return oe===r&&T!==r&&(oe=T),oe},i=function E(T){for(var W=this.internal.write,X=this.internal.putStream,fe=(0,this.internal.getFilters)();fe.indexOf("FlateEncode")!==-1;)fe.splice(fe.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===y.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===y.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,ne=T.transparency.length;oe<ne;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 ge=T.filter!==void 0?["/"+T.filter]:void 0;if(X({data:T.data,additionalKeyValues:Q,alreadyAppliedFilters:ge,objectId:T.objectId}),W("endobj"),"sMask"in T&&T.sMask!==void 0){var ye="/Predictor "+T.predictor+" /Colors 1 /BitsPerComponent "+T.bitsPerComponent+" /Columns "+T.width,b={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:T.bitsPerComponent,decodeParameters:ye,data:T.sMask};"filter"in T&&(b.filter=T.filter),E.call(this,b)}if(T.colorSpace===y.INDEXED){var F=this.internal.newObject();X({data:P(new Uint8Array(T.palette)),objectId:F}),W("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,W=this.internal.write;for(var X in T)W("/I"+(E=T[X]).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 Ht(E)==="object"&&E.nodeType===1},g=function(E,T){if(E.nodeName==="IMG"&&E.hasAttribute("src")){var W=""+E.getAttribute("src");if(W.indexOf("data:image/")===0)return _o(unescape(W).split("base64,").pop());var X=e.loadFile(W,!0);if(X!==void 0)return X}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 fe;switch(T){case"PNG":fe="image/png";break;case"WEBP":fe="image/webp";break;case"JPEG":case"JPG":default:fe="image/jpeg"}return _o(E.toDataURL(fe,1).split("base64,").pop())}},d=function(E){var T=this.internal.collections.addImage_images;if(T){for(var W in T)if(E===T[W].alias)return T[W]}},w=function(E,T,W){return E||T||(E=-96,T=-96),E<0&&(E=-1*W.width*72/E/this.internal.scaleFactor),T<0&&(T=-1*W.height*72/T/this.internal.scaleFactor),E===0&&(E=T*W.width/W.height),T===0&&(T=E*W.height/W.width),[E,T]},v=function(E,T,W,X,fe,Q){var J=w.call(this,W,X,fe),oe=this.internal.getCoordinateString,ne=this.internal.getVerticalCoordinateString,ge=f.call(this);if(W=J[0],X=J[1],ge[fe.index]=fe,Q){Q*=Math.PI/180;var ye=Math.cos(Q),b=Math.sin(Q),F=function(I){return I.toFixed(4)},C=[F(ye),F(b),F(-1*b),F(ye),0,0,"cm"]}this.internal.write("q"),Q?(this.internal.write([1,"0","0",1,oe(E),ne(T+X),"cm"].join(" ")),this.internal.write(C.join(" ")),this.internal.write([oe(W),"0","0",oe(X),"0","0","cm"].join(" "))):this.internal.write([oe(W),"0","0",oe(X),oe(E),ne(T+X),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+fe.index+" Do"),this.internal.write("Q")},y=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,W,X=0;if(typeof E=="string")for(W=E.length,T=0;T<W;T++)X=(X<<5)-X+E.charCodeAt(T),X|=0;else if(K(E))for(W=E.byteLength/2,T=0;T<W;T++)X=(X<<5)-X+E[T],X|=0;return X},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,"),W=null;if(T.length===2){var X=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(T[0]);Array.isArray(X)&&(W={mimeType:X[1],charset:X[2],data:T[1]})}return W},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)},L=e.__addimage__.binaryStringToUint8Array=function(E){for(var T=E.length,W=new Uint8Array(T),X=0;X<T;X++)W[X]=E.charCodeAt(X);return W},P=e.__addimage__.arrayBufferToBinaryString=function(E){for(var T="",W=K(E)?E:new Uint8Array(E),X=0;X<W.length;X+=8192)T+=String.fromCharCode.apply(null,W.subarray(X,X+8192));return T};e.addImage=function(){var E,T,W,X,fe,Q,J,oe,ne;if(typeof arguments[1]=="number"?(T=r,W=arguments[1],X=arguments[2],fe=arguments[3],Q=arguments[4],J=arguments[5],oe=arguments[6],ne=arguments[7]):(T=arguments[1],W=arguments[2],X=arguments[3],fe=arguments[4],Q=arguments[5],J=arguments[6],oe=arguments[7],ne=arguments[8]),Ht(E=arguments[0])==="object"&&!p(E)&&"imageData"in E){var ge=E;E=ge.imageData,T=ge.format||T||r,W=ge.x||W||0,X=ge.y||X||0,fe=ge.w||ge.width||fe,Q=ge.h||ge.height||Q,J=ge.alias||J,oe=ge.compression||oe,ne=ge.rotation||ge.angle||ne}var ye=this.internal.getFilters();if(oe===void 0&&ye.indexOf("FlateEncode")!==-1&&(oe="SLOW"),isNaN(W)||isNaN(X))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var b=R.call(this,E,T,J,oe);return v.call(this,W,X,fe,Q,b,ne),this};var R=function(E,T,W,X){var fe,Q,J;if(typeof E=="string"&&n(E)===r){E=unescape(E);var oe=G(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=W)==null||J.length===0)&&(W=(function(ne){return typeof ne=="string"||K(ne)?S(ne):K(ne.data)?S(ne.data):null})(E)),(fe=d.call(this,W))||(M()&&(E instanceof Uint8Array||T==="RGBA"||(Q=E,E=L(E))),fe=this["process"+T.toUpperCase()](E,c.call(this),W,(function(ne){return ne&&typeof ne=="string"&&(ne=ne.toUpperCase()),ne in e.image_compression?ne:_.NONE})(X),Q)),!fe)throw new Error("An unknown error occurred whilst processing the image.");return fe},G=e.__addimage__.convertBase64ToBinaryString=function(E,T){var W;T=typeof T!="boolean"||T;var X,fe="";if(typeof E=="string"){X=(W=k(E))!==null?W.data:E;try{fe=_o(X)}catch(Q){if(T)throw A(X)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return fe};e.getImageProperties=function(E){var T,W,X="";if(p(E)&&(E=g(E)),typeof E=="string"&&n(E)===r&&((X=G(E,!1))===""&&(X=e.loadFile(E)||""),E=X),W=n(E),!u(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(!M()||E instanceof Uint8Array||(E=L(E)),!(T=this["process"+W.toUpperCase()](E)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=W,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 d=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(),y=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 ("+d(_(n.contents))+")",a+=" /Popup "+y.objId+" 0 R",a+=" /P "+f.objId+" 0 R",a+=" /T ("+d(_(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+=" >>",y.content=a,this.internal.write(v.objId,"0 R",y.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 ("+d(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 ("+d(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 y=0,_=t,S="",A=0;for(y=0;y<v.length;y+=1)_[v.charCodeAt(y)]!==void 0?(A++,typeof(_=_[v.charCodeAt(y)])=="number"&&(S+=String.fromCharCode(_),_=t,A=0),y===v.length-1&&(_=t,S+=v.charAt(y-(A-1)),y-=A-1,A=0)):(_=t,S+=v.charAt(y-A),y-=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,y,_){return s(v)?a(v)===!1?-1:!c(v)||!s(y)&&!s(_)||!s(_)&&o(y)||o(v)&&!s(y)||o(v)&&f(y)||o(v)&&o(y)?0:u(v)&&s(y)&&!o(y)&&s(_)&&c(_)?3:o(v)||!s(_)?1:2:-1},d=function(v){var y=0,_=0,S=0,A="",k="",M="",K=(v=v||"").split("\\s+"),L=[];for(y=0;y<K.length;y+=1){for(L.push(""),_=0;_<K[y].length;_+=1)A=K[y][_],k=K[y][_-1],M=K[y][_+1],s(A)?(S=g(A,k,M),L[y]+=S!==-1?String.fromCharCode(r[A.charCodeAt(0)][S]):A):L[y]+=A;L[y]=p(L[y])}return L.join(" ")},w=e.__arabicParser__.processArabic=e.processArabic=function(){var v,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(y)){var S=0;for(_=[],S=0;S<y.length;S+=1)Array.isArray(y[S])?_.push([d(y[S][0]),y[S][1],y[S][2]]):_.push([d(y[S])]);v=_}else v=d(y);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 d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(v){d=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,d=0,w=0,v=0,y=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(y.splitTextToSize(k,_))}),[])):f=Array.isArray(f)?f:[f];for(var S=0;S<f.length;S++)d<(v=this.getStringUnitWidth(f[S],{font:p})*u)&&(d=v);return d!==0&&(w=f.length),{w:d/=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,d=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,d&&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 d,w,v,y,_=[],S=[],A=[],k={},M={},K=[],L=[],P=(g=g||{}).autoSize||!1,R=g.printHeaders!==!1,G=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,W=g.headerBackgroundColor||"#c8c8c8",X=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=G,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=X,this.setFontSize(G),p==null)S=_=Object.keys(u[0]),A=_.map((function(){return"left"}));else if(Array.isArray(p)&&Ht(p[0])==="object")for(_=p.map((function(ge){return ge.name})),S=p.map((function(ge){return ge.prompt||ge.name||""})),A=p.map((function(ge){return ge.align||"left"})),d=0;d<p.length;d+=1)M[p[d].name]=p[d].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(d=0;d<_.length;d+=1){for(k[y=_[d]]=u.map((function(ge){return ge[y]})),this.setFont(void 0,"bold"),K.push(this.getTextDimensions(S[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=k[y],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[y]=Math.max.apply(null,K)+T+T,K=[]}if(R){var fe={};for(d=0;d<_.length;d+=1)fe[_[d]]={},fe[_[d]].text=S[d],fe[_[d]].align=A[d];var Q=o.call(this,fe,M);L=_.map((function(ge){return new a(f,c,M[ge],Q,fe[ge].text,void 0,fe[ge].align)})),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var J=p.reduce((function(ge,ye){return ge[ye.name]=ye.align,ge}),{});for(d=0;d<u.length;d+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:d,data:u[d]},this);var oe=o.call(this,u[d],M);for(v=0;v<_.length;v+=1){var ne=u[d][_[v]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:d,col:v,data:ne},this),s.call(this,new a(f,c,M[_[v]],oe,ne,d+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(d){var w=f[d];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,c[d]-u-u)}),this).map((function(d){return this.getLineHeightFactor()*d.length*p/g+u+u}),this).reduce((function(d,w){return Math.max(d,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=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){u=this.internal.__cell__.tableHeaderRow[d].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 vh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},xh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],If=mh(xh),wh=[100,200,300,400,500,600,700,800,900],tp=mh(wh);function Of(e){var r=e.family.replace(/"|'/g,"").toLowerCase(),t=(function(a){return vh[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 If[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 Yc(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 rp={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Kc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function $c(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function np(e,r,t){for(var n=(t=t||{}).defaultFontFamily||"times",i=Object.assign({},rp,t.genericFontFamilies||{}),a=null,s=null,o=0;o<r.length;++o)if(i[(a=Of(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 '"+$c(a)+"' and default family '"+n+"'.");if(s=(function(f,c){if(c[f])return c[f];var u=If[f],p=u<=If.normal?-1:1,g=Yc(c,xh,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=vh[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=tp[f],p=Yc(c,wh,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 '"+$c(a)+"'.");return s}function Jc(e){return e.trimLeft()}function ip(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 ap(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 M0,Zc,Qc,hf=["times"];(function(e){var r,t,n,i,a,s,o,f,c,u=function(b){return b=b||{},this.isStrokeTransparent=b.isStrokeTransparent||!1,this.strokeOpacity=b.strokeOpacity||1,this.strokeStyle=b.strokeStyle||"#000000",this.fillStyle=b.fillStyle||"#000000",this.isFillTransparent=b.isFillTransparent||!1,this.fillOpacity=b.fillOpacity||1,this.font=b.font||"10px sans-serif",this.textBaseline=b.textBaseline||"alphabetic",this.textAlign=b.textAlign||"left",this.lineWidth=b.lineWidth||1,this.lineJoin=b.lineJoin||"miter",this.lineCap=b.lineCap||"butt",this.path=b.path||[],this.transform=b.transform!==void 0?b.transform.clone():new f,this.globalCompositeOperation=b.globalCompositeOperation||"normal",this.globalAlpha=b.globalAlpha||1,this.clip_path=b.clip_path||[],this.currentPoint=b.currentPoint||new s,this.miterLimit=b.miterLimit||10,this.lastPoint=b.lastPoint||new s,this.lineDashOffset=b.lineDashOffset||0,this.lineDash=b.lineDash||[],this.margin=b.margin||[0,0,0,0],this.prevPageLastElemOffset=b.prevPageLastElemOffset||0,this.ignoreClearRect=typeof b.ignoreClearRect!="boolean"||b.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(b){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var F=b;Object.defineProperty(this,"pdf",{get:function(){return F}});var C=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return C},set:function(Ee){C=!!Ee}});var I=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return I},set:function(Ee){I=!!Ee}});var H=0;Object.defineProperty(this,"posX",{get:function(){return H},set:function(Ee){isNaN(Ee)||(H=Ee)}});var le=0;Object.defineProperty(this,"posY",{get:function(){return le},set:function(Ee){isNaN(Ee)||(le=Ee)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ee){var se;typeof Ee=="number"?se=[Ee,Ee,Ee,Ee]:((se=new Array(4))[0]=Ee[0],se[1]=Ee.length>=2?Ee[1]:se[0],se[2]=Ee.length>=3?Ee[2]:se[0],se[3]=Ee.length>=4?Ee[3]:se[1]),c.margin=se}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(Ee){ce=Ee}});var ue=0;Object.defineProperty(this,"lastBreak",{get:function(){return ue},set:function(Ee){ue=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 se;se=g(Ee),this.ctx.fillStyle=se.style,this.ctx.isFillTransparent=se.a===0,this.ctx.fillOpacity=se.a,this.pdf.setFillColor(se.r,se.g,se.b,{a:se.a}),this.pdf.setTextColor(se.r,se.g,se.b,{a:se.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ee){var se=g(Ee);this.ctx.strokeStyle=se.style,this.ctx.isStrokeTransparent=se.a===0,this.ctx.strokeOpacity=se.a,se.a===0?this.pdf.setDrawColor(255,255,255):(se.a,this.pdf.setDrawColor(se.r,se.g,se.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 Re=null;function He(Ee,se){if(Re===null){var Me=(function(nt){var Ue=[];return Object.keys(nt).forEach((function(Ge){nt[Ge].forEach((function($e){var Ze=null;switch($e){case"bold":Ze={family:Ge,weight:"bold"};break;case"italic":Ze={family:Ge,style:"italic"};break;case"bolditalic":Ze={family:Ge,weight:"bold",style:"italic"};break;case"":case"normal":Ze={family:Ge}}Ze!==null&&(Ze.ref={name:Ge,style:$e},Ue.push(Ze))}))})),Ue})(Ee.getFontList());Re=(function(nt){for(var Ue={},Ge=0;Ge<nt.length;++Ge){var $e=Of(nt[Ge]),Ze=$e.family,lt=$e.stretch,ft=$e.style,vt=$e.weight;Ue[Ze]=Ue[Ze]||{},Ue[Ze][lt]=Ue[Ze][lt]||{},Ue[Ze][lt][ft]=Ue[Ze][lt][ft]||{},Ue[Ze][lt][ft][vt]=$e}return Ue})(Me.concat(se))}return Re}var Ke=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ke},set:function(Ee){Re=null,Ke=Ee}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ee){var se;if(this.ctx.font=Ee,(se=/^\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=se[1],nt=(se[2],se[3]),Ue=se[4],Ge=(se[5],se[6]),$e=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ue)[2];Ue=Math.floor($e==="px"?parseFloat(Ue)*this.pdf.internal.scaleFactor:$e==="em"?parseFloat(Ue)*this.pdf.getFontSize():parseFloat(Ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ue);var Ze=(function(pt){var Et,et,Cr=[],It=pt.trim();if(It==="")return hf;if(It in Kc)return[Kc[It]];for(;It!=="";){switch(et=null,Et=(It=Jc(It)).charAt(0)){case'"':case"'":et=ip(It.substring(1),Et);break;default:et=ap(It)}if(et===null||(Cr.push(et[0]),(It=Jc(et[1]))!==""&&It.charAt(0)!==","))return hf;It=It.replace(/^,/,"")}return Cr})(Ge);if(this.fontFaces){var lt=np(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"},Ct=0;Ct<Ze.length;Ct++){if(this.pdf.internal.getFont(Ze[Ct],ft,{noFallback:!0,disableWarning:!0})!==void 0){vt=Ze[Ct];break}if(ft==="bolditalic"&&this.pdf.internal.getFont(Ze[Ct],"bold",{noFallback:!0,disableWarning:!0})!==void 0)vt=Ze[Ct],ft="bold";else if(this.pdf.internal.getFont(Ze[Ct],"normal",{noFallback:!0,disableWarning:!0})!==void 0){vt=Ze[Ct],ft="normal";break}}if(vt===""){for(var kt=0;kt<Ze.length;kt++)if(St[Ze[kt]]){vt=St[Ze[kt]];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,ye.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ee){this.ctx.lineDash=Ee,ye.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ee){this.ctx.ignoreClearRect=!!Ee}})};p.prototype.setLineDash=function(b){this.lineDash=b},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(b,F){if(isNaN(b)||isNaN(F))throw tr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var C=this.ctx.transform.applyToPoint(new s(b,F));this.path.push({type:"mt",x:C.x,y:C.y}),this.ctx.lastPoint=new s(b,F)},p.prototype.closePath=function(){var b=new s(0,0),F=0;for(F=this.path.length-1;F!==-1;F--)if(this.path[F].type==="begin"&&Ht(this.path[F+1])==="object"&&typeof this.path[F+1].x=="number"){b=new s(this.path[F+1].x,this.path[F+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(b.x,b.y)},p.prototype.lineTo=function(b,F){if(isNaN(b)||isNaN(F))throw tr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var C=this.ctx.transform.applyToPoint(new s(b,F));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(b,F,C,I){if(isNaN(C)||isNaN(I)||isNaN(b)||isNaN(F))throw tr.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,I)),le=this.ctx.transform.applyToPoint(new s(b,F));this.path.push({type:"qct",x1:le.x,y1:le.y,x:H.x,y:H.y}),this.ctx.lastPoint=new s(H.x,H.y)},p.prototype.bezierCurveTo=function(b,F,C,I,H,le){if(isNaN(H)||isNaN(le)||isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I))throw tr.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,le)),ue=this.ctx.transform.applyToPoint(new s(b,F)),we=this.ctx.transform.applyToPoint(new s(C,I));this.path.push({type:"bct",x1:ue.x,y1:ue.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(b,F,C,I,H,le){if(isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I)||isNaN(H))throw tr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(le=!!le,!this.ctx.transform.isIdentity){var ce=this.ctx.transform.applyToPoint(new s(b,F));b=ce.x,F=ce.y;var ue=this.ctx.transform.applyToPoint(new s(0,C)),we=this.ctx.transform.applyToPoint(new s(0,0));C=Math.sqrt(Math.pow(ue.x-we.x,2)+Math.pow(ue.y-we.y,2))}Math.abs(H-I)>=2*Math.PI&&(I=0,H=2*Math.PI),this.path.push({type:"arc",x:b,y:F,radius:C,startAngle:I,endAngle:H,counterclockwise:le})},p.prototype.arcTo=function(b,F,C,I,H){throw new Error("arcTo not implemented.")},p.prototype.rect=function(b,F,C,I){if(isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I))throw tr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(b,F),this.lineTo(b+C,F),this.lineTo(b+C,F+I),this.lineTo(b,F+I),this.lineTo(b,F),this.lineTo(b+C,F),this.lineTo(b,F)},p.prototype.fillRect=function(b,F,C,I){if(isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I))throw tr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.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(b,F,C,I),this.fill(),H.hasOwnProperty("lineCap")&&(this.lineCap=H.lineCap),H.hasOwnProperty("lineJoin")&&(this.lineJoin=H.lineJoin)}},p.prototype.strokeRect=function(b,F,C,I){if(isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I))throw tr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(b,F,C,I),this.stroke())},p.prototype.clearRect=function(b,F,C,I){if(isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I))throw tr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(b,F,C,I))},p.prototype.save=function(b){b=typeof b!="boolean"||b;for(var F=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(F),b){this.ctx.fontSize=this.pdf.internal.getFontSize();var I=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=I}},p.prototype.restore=function(b){b=typeof b!="boolean"||b;for(var F=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(F),b&&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(b){var F,C,I,H;if(b.isCanvasGradient===!0&&(b=b.getColor()),!b)return{r:0,g:0,b:0,a:0,style:b};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(b))F=0,C=0,I=0,H=0;else{var le=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(b);if(le!==null)F=parseInt(le[1]),C=parseInt(le[2]),I=parseInt(le[3]),H=1;else if((le=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(b))!==null)F=parseInt(le[1]),C=parseInt(le[2]),I=parseInt(le[3]),H=parseFloat(le[4]);else{if(H=1,typeof b=="string"&&b.charAt(0)!=="#"){var ce=new ch(b);b=ce.ok?ce.toHex():"#000000"}b.length===4?(F=b.substring(1,2),F+=F,C=b.substring(2,3),C+=C,I=b.substring(3,4),I+=I):(F=b.substring(1,3),C=b.substring(3,5),I=b.substring(5,7)),F=parseInt(F,16),C=parseInt(C,16),I=parseInt(I,16)}}return{r:F,g:C,b:I,a:H,style:b}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(b,F,C,I){if(isNaN(F)||isNaN(C)||typeof b!="string")throw tr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(I=isNaN(I)?void 0:I,!d.call(this)){var H=oe(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;T.call(this,{text:b,x:F,y:C,scale:le,angle:H,align:this.textAlign,maxWidth:I})}},p.prototype.strokeText=function(b,F,C,I){if(isNaN(F)||isNaN(C)||typeof b!="string")throw tr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){I=isNaN(I)?void 0:I;var H=oe(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;T.call(this,{text:b,x:F,y:C,scale:le,renderingMode:"stroke",angle:H,align:this.textAlign,maxWidth:I})}},p.prototype.measureText=function(b){if(typeof b!="string")throw tr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var F=this.pdf,C=this.pdf.internal.scaleFactor,I=F.internal.getFontSize(),H=F.getStringUnitWidth(b)*I/F.internal.scaleFactor,le=function(ce){var ue=(ce=ce||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ue}}),this};return new le({width:H*=Math.round(96*C/72*1e4)/1e4})},p.prototype.scale=function(b,F){if(isNaN(b)||isNaN(F))throw tr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var C=new f(b,0,0,F,0,0);this.ctx.transform=this.ctx.transform.multiply(C)},p.prototype.rotate=function(b){if(isNaN(b))throw tr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var F=new f(Math.cos(b),Math.sin(b),-Math.sin(b),Math.cos(b),0,0);this.ctx.transform=this.ctx.transform.multiply(F)},p.prototype.translate=function(b,F){if(isNaN(b)||isNaN(F))throw tr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var C=new f(1,0,0,1,b,F);this.ctx.transform=this.ctx.transform.multiply(C)},p.prototype.transform=function(b,F,C,I,H,le){if(isNaN(b)||isNaN(F)||isNaN(C)||isNaN(I)||isNaN(H)||isNaN(le))throw tr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ce=new f(b,F,C,I,H,le);this.ctx.transform=this.ctx.transform.multiply(ce)},p.prototype.setTransform=function(b,F,C,I,H,le){b=isNaN(b)?1:b,F=isNaN(F)?0:F,C=isNaN(C)?0:C,I=isNaN(I)?1:I,H=isNaN(H)?0:H,le=isNaN(le)?0:le,this.ctx.transform=new f(b,F,C,I,H,le)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(b,F,C,I,H,le,ce,ue,we){var Pe=this.pdf.getImageProperties(b),Re=1,He=1,Ke=1,Ee=1;I!==void 0&&ue!==void 0&&(Ke=ue/I,Ee=we/H,Re=Pe.width/I*ue/I,He=Pe.height/H*we/H),le===void 0&&(le=F,ce=C,F=0,C=0),I!==void 0&&ue===void 0&&(ue=I,we=H),I===void 0&&ue===void 0&&(ue=Pe.width,we=Pe.height);for(var se,Me=this.ctx.transform.decompose(),nt=oe(Me.rotate.shx),Ue=new f,Ge=(Ue=(Ue=(Ue=Ue.multiply(Me.translate)).multiply(Me.skew)).multiply(Me.scale)).applyToRectangle(new o(le-F*Ke,ce-C*Ee,I*Re,H*He)),$e=y.call(this,Ge),Ze=[],lt=0;lt<$e.length;lt+=1)Ze.indexOf($e[lt])===-1&&Ze.push($e[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 Ct=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kt=St===1?this.posY+this.margin[0]:this.margin[0],pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],et=St===1?0:pt+(St-2)*Et;if(this.ctx.clip_path.length!==0){var Cr=this.path;se=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(se,this.posX+this.margin[3],-et+kt+this.ctx.prevPageLastElemOffset),M.call(this,"fill",!0),this.path=Cr}var It=JSON.parse(JSON.stringify(Ge));It=S([It],this.posX+this.margin[3],-et+kt+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],Ct,Et,null).clip().discardPath()),this.pdf.addImage(b,"JPEG",It.x,It.y,It.w,It.h,null,null,nt),dn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(b,"JPEG",Ge.x,Ge.y,Ge.w,Ge.h,null,null,nt)};var y=function(b,F,C){var I=[];F=F||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(b.type){default:case"mt":case"lt":I.push(Math.floor((b.y+H)/C)+1);break;case"arc":I.push(Math.floor((b.y+H-b.radius)/C)+1),I.push(Math.floor((b.y+H+b.radius)/C)+1);break;case"qct":var le=ne(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x,b.y);I.push(Math.floor((le.y+H)/C)+1),I.push(Math.floor((le.y+le.h+H)/C)+1);break;case"bct":var ce=ge(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x2,b.y2,b.x,b.y);I.push(Math.floor((ce.y+H)/C)+1),I.push(Math.floor((ce.y+ce.h+H)/C)+1);break;case"rect":I.push(Math.floor((b.y+H)/C)+1),I.push(Math.floor((b.y+b.h+H)/C)+1)}for(var ue=0;ue<I.length;ue+=1)for(;this.pdf.internal.getNumberOfPages()<I[ue];)_.call(this);return I},_=function(){var b=this.fillStyle,F=this.strokeStyle,C=this.font,I=this.lineCap,H=this.lineWidth,le=this.lineJoin;this.pdf.addPage(),this.fillStyle=b,this.strokeStyle=F,this.font=C,this.lineCap=I,this.lineWidth=H,this.lineJoin=le},S=function(b,F,C){for(var I=0;I<b.length;I++)switch(b[I].type){case"bct":b[I].x2+=F,b[I].y2+=C;case"qct":b[I].x1+=F,b[I].y1+=C;case"mt":case"lt":case"arc":default:b[I].x+=F,b[I].y+=C}return b},A=function(b){return b.sort((function(F,C){return F-C}))},k=function(b,F){for(var C,I,H=this.fillStyle,le=this.strokeStyle,ce=this.lineCap,ue=this.lineWidth,we=Math.abs(ue*this.ctx.transform.scaleX),Pe=this.lineJoin,Re=JSON.parse(JSON.stringify(this.path)),He=JSON.parse(JSON.stringify(this.path)),Ke=[],Ee=0;Ee<He.length;Ee++)if(He[Ee].x!==void 0)for(var se=y.call(this,He[Ee]),Me=0;Me<se.length;Me+=1)Ke.indexOf(se[Me])===-1&&Ke.push(se[Me]);for(var nt=0;nt<Ke.length;nt++)for(;this.pdf.internal.getNumberOfPages()<Ke[nt];)_.call(this);if(A(Ke),this.autoPaging)for(var Ue=Ke[0],Ge=Ke[Ke.length-1],$e=Ue;$e<Ge+1;$e++){this.pdf.setPage($e),this.fillStyle=H,this.strokeStyle=le,this.lineCap=ce,this.lineWidth=we,this.lineJoin=Pe;var Ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],lt=$e===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=$e===1?0:ft+($e-2)*vt;if(this.ctx.clip_path.length!==0){var Ct=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,b,!0),this.path=Ct}if(I=JSON.parse(JSON.stringify(Re)),this.path=S(I,this.posX+this.margin[3],-St+lt+this.ctx.prevPageLastElemOffset),F===!1||$e===0){var kt=($e>Ue||$e<Ge)&&v.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,vt,null).clip().discardPath()),M.call(this,b,F),kt&&this.pdf.restoreGraphicsState()}this.lineWidth=ue}else this.lineWidth=we,M.call(this,b,F),this.lineWidth=ue;this.path=Re},M=function(b,F){if((b!=="stroke"||F||!w.call(this))&&(b==="stroke"||F||!d.call(this))){for(var C,I,H=[],le=this.path,ce=0;ce<le.length;ce++){var ue=le[ce];switch(ue.type){case"begin":H.push({begin:!0});break;case"close":H.push({close:!0});break;case"mt":H.push({start:ue,deltas:[],abs:[]});break;case"lt":var we=H.length;if(le[ce-1]&&!isNaN(le[ce-1].x)&&(C=[ue.x-le[ce-1].x,ue.y-le[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(ue);break}}break;case"bct":C=[ue.x1-le[ce-1].x,ue.y1-le[ce-1].y,ue.x2-le[ce-1].x,ue.y2-le[ce-1].y,ue.x-le[ce-1].x,ue.y-le[ce-1].y],H[H.length-1].deltas.push(C);break;case"qct":var Pe=le[ce-1].x+2/3*(ue.x1-le[ce-1].x),Re=le[ce-1].y+2/3*(ue.y1-le[ce-1].y),He=ue.x+2/3*(ue.x1-ue.x),Ke=ue.y+2/3*(ue.y1-ue.y),Ee=ue.x,se=ue.y;C=[Pe-le[ce-1].x,Re-le[ce-1].y,He-le[ce-1].x,Ke-le[ce-1].y,Ee-le[ce-1].x,se-le[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(ue)}}I=F?null:b==="stroke"?"stroke":"fill";for(var Me=!1,nt=0;nt<H.length;nt++)if(H[nt].arc)for(var Ue=H[nt].abs,Ge=0;Ge<Ue.length;Ge++){var $e=Ue[Ge];$e.type==="arc"?P.call(this,$e.x,$e.y,$e.radius,$e.startAngle,$e.endAngle,$e.counterclockwise,void 0,F,!Me):W.call(this,$e.x,$e.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;X.call(this,H[nt].deltas,Ze,lt),Me=!0}I&&R.call(this,I),F&&G.call(this)}},K=function(b){var F=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,C=F*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return b-C;case"top":return b+F-C;case"hanging":return b+F-2*C;case"middle":return b+F/2-C;case"ideographic":return b;case"alphabetic":default:return b}},L=function(b){return b+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var b=function(){};return b.colorStops=[],b.addColorStop=function(F,C){this.colorStops.push([F,C])},b.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},b.isCanvasGradient=!0,b},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(b,F,C,I,H,le,ce,ue,we){for(var Pe=Q.call(this,C,I,H,le),Re=0;Re<Pe.length;Re++){var He=Pe[Re];Re===0&&(we?E.call(this,He.x1+b,He.y1+F):W.call(this,He.x1+b,He.y1+F)),fe.call(this,b,F,He.x2,He.y2,He.x3,He.y3,He.x4,He.y4)}ue?G.call(this):R.call(this,ce)},R=function(b){switch(b){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},G=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(b,F){this.pdf.internal.out(t(b)+" "+n(F)+" m")},T=function(b){var F;switch(b.align){case"right":case"end":F="right";break;case"center":F="center";break;case"left":case"start":default:F="left"}var C=this.pdf.getTextDimensions(b.text),I=K.call(this,b.y),H=L.call(this,I)-C.h,le=this.ctx.transform.applyToPoint(new s(b.x,I)),ce=this.ctx.transform.decompose(),ue=new f;ue=(ue=(ue=ue.multiply(ce.translate)).multiply(ce.skew)).multiply(ce.scale);for(var we,Pe,Re,He=this.ctx.transform.applyToRectangle(new o(b.x,I,C.w,C.h)),Ke=ue.applyToRectangle(new o(b.x,H,C.w,C.h)),Ee=y.call(this,Ke),se=[],Me=0;Me<Ee.length;Me+=1)se.indexOf(Ee[Me])===-1&&se.push(Ee[Me]);if(A(se),this.autoPaging)for(var nt=se[0],Ue=se[se.length-1],Ge=nt;Ge<Ue+1;Ge++){this.pdf.setPage(Ge);var $e=Ge===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],Ct=Ge===1?0:Ze+(Ge-2)*ft;if(this.ctx.clip_path.length!==0){var kt=this.path;we=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(we,this.posX+this.margin[3],-1*Ct+$e),M.call(this,"fill",!0),this.path=kt}var pt=S([JSON.parse(JSON.stringify(Ke))],this.posX+this.margin[3],-Ct+$e+this.ctx.prevPageLastElemOffset)[0];b.scale>=.01&&(Pe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Pe*b.scale),Re=this.lineWidth,this.lineWidth=Re*b.scale);var Et=this.autoPaging!=="text";if(Et||pt.y+pt.h<=lt){if(Et||pt.y>=$e&&pt.x<=vt){var et=Et?b.text:this.pdf.splitTextToSize(b.text,b.maxWidth||vt-pt.x)[0],Cr=S([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-Ct+$e+this.ctx.prevPageLastElemOffset)[0],It=Et&&(Ge>nt||Ge<Ue)&&v.call(this);It&&(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:b.angle,align:F,renderingMode:b.renderingMode}),It&&this.pdf.restoreGraphicsState()}}else pt.y<lt&&(this.ctx.prevPageLastElemOffset+=lt-pt.y);b.scale>=.01&&(this.pdf.setFontSize(Pe),this.lineWidth=Re)}else b.scale>=.01&&(Pe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Pe*b.scale),Re=this.lineWidth,this.lineWidth=Re*b.scale),this.pdf.text(b.text,le.x+this.posX,le.y+this.posY,{angle:b.angle,align:F,renderingMode:b.renderingMode,maxWidth:b.maxWidth}),b.scale>=.01&&(this.pdf.setFontSize(Pe),this.lineWidth=Re)},W=function(b,F,C,I){C=C||0,I=I||0,this.pdf.internal.out(t(b+C)+" "+n(F+I)+" l")},X=function(b,F,C){return this.pdf.lines(b,F,C,null,null)},fe=function(b,F,C,I,H,le,ce,ue){this.pdf.internal.out([r(i(C+b)),r(a(I+F)),r(i(H+b)),r(a(le+F)),r(i(ce+b)),r(a(ue+F)),"c"].join(" "))},Q=function(b,F,C,I){for(var H=2*Math.PI,le=Math.PI/2;F>C;)F-=H;var ce=Math.abs(C-F);ce<H&&I&&(ce=H-ce);for(var ue=[],we=I?-1:1,Pe=F;ce>1e-5;){var Re=Pe+we*Math.min(ce,le);ue.push(J.call(this,b,Pe,Re)),ce-=Math.abs(Re-Pe),Pe=Re}return ue},J=function(b,F,C){var I=(C-F)/2,H=b*Math.cos(I),le=b*Math.sin(I),ce=H,ue=-le,we=ce*ce+ue*ue,Pe=we+ce*H+ue*le,Re=4/3*(Math.sqrt(2*we*Pe)-Pe)/(ce*le-ue*H),He=ce-Re*ue,Ke=ue+Re*ce,Ee=He,se=-Ke,Me=I+F,nt=Math.cos(Me),Ue=Math.sin(Me);return{x1:b*Math.cos(F),y1:b*Math.sin(F),x2:He*nt-Ke*Ue,y2:He*Ue+Ke*nt,x3:Ee*nt-se*Ue,y3:Ee*Ue+se*nt,x4:b*Math.cos(C),y4:b*Math.sin(C)}},oe=function(b){return 180*b/Math.PI},ne=function(b,F,C,I,H,le){var ce=b+.5*(C-b),ue=F+.5*(I-F),we=H+.5*(C-H),Pe=le+.5*(I-le),Re=Math.min(b,H,ce,we),He=Math.max(b,H,ce,we),Ke=Math.min(F,le,ue,Pe),Ee=Math.max(F,le,ue,Pe);return new o(Re,Ke,He-Re,Ee-Ke)},ge=function(b,F,C,I,H,le,ce,ue){var we,Pe,Re,He,Ke,Ee,se,Me,nt,Ue,Ge,$e,Ze,lt,ft=C-b,vt=I-F,St=H-C,Ct=le-I,kt=ce-H,pt=ue-le;for(Pe=0;Pe<41;Pe++)nt=(se=(Re=b+(we=Pe/40)*ft)+we*((Ke=C+we*St)-Re))+we*(Ke+we*(H+we*kt-Ke)-se),Ue=(Me=(He=F+we*vt)+we*((Ee=I+we*Ct)-He))+we*(Ee+we*(le+we*pt-Ee)-Me),Pe==0?(Ge=nt,$e=Ue,Ze=nt,lt=Ue):(Ge=Math.min(Ge,nt),$e=Math.min($e,Ue),Ze=Math.max(Ze,nt),lt=Math.max(lt,Ue));return new o(Math.round(Ge),Math.round($e),Math.round(Ze-Ge),Math.round(lt-$e))},ye=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var b,F,C=(b=this.ctx.lineDash,F=this.ctx.lineDashOffset,JSON.stringify({lineDash:b,lineDashOffset:F}));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,d,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)-(d=u%85))/85)-(g=u%85))/85)%85,o.push(p+33,g+33,d+33,w+33,v+33)):o.push(122);return(function(y,_){for(var S=_;S>0;S--)y.pop()})(o,s.length),String.fromCharCode.apply(String,o)+"~>"},t=function(a){var s,o,f,c,u,p=String,g="length",d=255,w="charCodeAt",v="slice",y="replace";for(a[v](-2),a=a[v](0,-2)[y](/\s/g,"")[y]("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(d&o>>24,d&o>>16,d&o>>8,d&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=Lf(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,d=function(w){var v=w.length,y=[],_=String.fromCharCode;for(g=0;g<v;g+=1)y.push(_(255&w.charCodeAt(g)));return y.join("")};if(p.open("GET",f,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?u(d(this.responseText)):u(void 0)}),p.send(null),c&&p.status===200)return d(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=Ht(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 d=c[g],w=d.src.find((function(v){return v.format==="truetype"}));w&&f.addFont(w.url,d.ref.name,d.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(Ht(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 d,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&&(d=v,v=w,w=d);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>v&&(d=v,v=w,w=d)}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(Of):null;var f=new a(o);return o.worker?f:f.from(s).doCallback()}})(ut.API),ut.API.addJS=function(e){return Qc=e,this.internal.events.subscribe("postPutResources",(function(){M0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(M0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Zc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Qc+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){M0!==void 0&&Zc!==void 0&&this.internal.out("/Names <</JavaScript "+M0+" 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 d=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 "+d+" 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,d=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,v={width:0,height:0,numcomponents:1},y=4;y<w;y+=2){if(y+=d,r.indexOf(p.charCodeAt(y+1))!==-1){g=256*p.charCodeAt(y+5)+p.charCodeAt(y+6),v={width:256*p.charCodeAt(y+7)+p.charCodeAt(y+8),height:g,numcomponents:p.charCodeAt(y+9)};break}d=256*p.charCodeAt(y+2)+p.charCodeAt(y+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,B0,eu,tu,ru,sp=(function(){var e,r,t;function n(a){var s,o,f,c,u,p,g,d,w,v,y,_,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=(y=this.read(s)).indexOf(0),d=String.fromCharCode.apply(String,y.slice(0,g)),this.text[d]=String.fromCharCode.apply(String,y.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,d,w){var v,y,_,S,A,k,M,K,L,P,R,G,E,T,W,X,fe,Q,J,oe,ne,ge=Math.ceil((c.width-p)/d),ye=Math.ceil((c.height-g)/w),b=c.width==ge&&c.height==ye;for(T=s*ge,G=b?o:new Uint8Array(T*ye),k=a.length,E=0,y=0;E<ye&&f<k;){switch(a[f++]){case 0:for(S=fe=0;fe<T;S=fe+=1)G[y++]=a[f++];break;case 1:for(S=Q=0;Q<T;S=Q+=1)v=a[f++],A=S<s?0:G[y-s],G[y++]=(v+A)%256;break;case 2:for(S=J=0;J<T;S=J+=1)v=a[f++],_=(S-S%s)/s,W=E&&G[(E-1)*T+_*s+S%s],G[y++]=(W+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:G[y-s],W=E&&G[(E-1)*T+_*s+S%s],G[y++]=(v+Math.floor((A+W)/2))%256;break;case 4:for(S=ne=0;ne<T;S=ne+=1)v=a[f++],_=(S-S%s)/s,A=S<s?0:G[y-s],E===0?W=X=0:(W=G[(E-1)*T+_*s+S%s],X=_&&G[(E-1)*T+(_-1)*s+S%s]),M=A+W-X,K=Math.abs(M-A),P=Math.abs(M-W),R=Math.abs(M-X),L=K<=P&&K<=R?A:P<=R?W:X,G[y++]=(v+L)%256;break;default:throw new Error("Invalid filter algorithm: "+a[f-1])}if(!b){var F=((g+E*w)*c.width+p)*s,C=E*T;for(S=0;S<ge;S+=1){for(var I=0;I<s;I+=1)o[F++]=G[C++];F+=(d-1)*s}}E++}}return a=M2(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,d;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++]=(d=u[a++])!=null?d:255;return c},n.prototype.copyToImageData=function(a,s){var o,f,c,u,p,g,d,w,v,y,_;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;)d=v?4*s[u/4]:g,y=p[d++],c[u++]=y,c[u++]=y,c[u++]=y,c[u++]=o?p[d++]:255,g=d;else for(;u<w;)d=v?4*s[u/4]:g,c[u++]=p[d++],c[u++]=p[d++],c[u++]=p[d++],c[u++]=o?p[d++]:255,g=d},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,d;if(this.animation){for(d=[],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,d.push(s.image=e(f));return d}},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 d,w;if(d=o++%c,w=f[d],g.renderFrame(a,d),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 op(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,d=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),d=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 y=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,L=o,P=f,R=!1;k>>7&&(R=!0,L=r,P=K,r+=3*K);var G=r;for(r++;;){var E;if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}u.push({x:y,y:_,width:S,height:A,has_local_palette:R,palette_offset:L,palette_size:P,data_offset:G,data_length:r-G,transparent_index:g,interlaced:!!M,delay:p,disposal:d});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,W){var X=this.frameInfo(T),fe=X.width*X.height,Q=new Uint8Array(fe);nu(e,X.data_offset,Q,fe);var J=X.palette_offset,oe=X.transparent_index;oe===null&&(oe=256);var ne=X.width,ge=t-ne,ye=ne,b=4*(X.y*t+X.x),F=4*((X.y+X.height)*t+X.x),C=b,I=4*ge;X.interlaced===!0&&(I+=4*t*7);for(var H=8,le=0,ce=Q.length;le<ce;++le){var ue=Q[le];if(ye===0&&(ye=ne,(C+=I)>=F&&(I=4*ge+4*t*(H-1),C=b+(ne+ge)*(H<<1),H>>=1)),ue===oe)C+=4;else{var we=e[J+3*ue],Pe=e[J+3*ue+1],Re=e[J+3*ue+2];W[C++]=Re,W[C++]=Pe,W[C++]=we,W[C++]=255}--ye}},this.decodeAndBlitFrameRGBA=function(T,W){var X=this.frameInfo(T),fe=X.width*X.height,Q=new Uint8Array(fe);nu(e,X.data_offset,Q,fe);var J=X.palette_offset,oe=X.transparent_index;oe===null&&(oe=256);var ne=X.width,ge=t-ne,ye=ne,b=4*(X.y*t+X.x),F=4*((X.y+X.height)*t+X.x),C=b,I=4*ge;X.interlaced===!0&&(I+=4*t*7);for(var H=8,le=0,ce=Q.length;le<ce;++le){var ue=Q[le];if(ye===0&&(ye=ne,(C+=I)>=F&&(I=4*ge+4*t*(H-1),C=b+(ne+ge)*(H<<1),H>>=1)),ue===oe)C+=4;else{var we=e[J+3*ue],Pe=e[J+3*ue+1],Re=e[J+3*ue+2];W[C++]=we,W[C++]=Pe,W[C++]=Re,W[C++]=255}--ye}}}function nu(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,d=e[r++],w=new Int32Array(4096),v=null;;){for(;u<16&&d!==0;)p|=e[r++]<<u,u+=8,d===1?d=e[r++]:--d;if(u<f)break;var y=p&c;if(p>>=f,u-=f,y!==a){if(y===s)break;for(var _=y<o?y:v,S=0,A=_;A>a;)A=w[A]>>8,++S;var k=A;if(g+S+(_!==y?1:0)>n)return void tr.log("Warning, gif stream longer than expected.");t[g++]=k;var M=g+=S;for(_!==y&&(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=y}else o=s+1,c=(1<<(f=i+1))-1,v=null}return g!==n&&tr.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 df(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),d=new Array(64),w=new Array(64),v=[],y=0,_=7,S=new Array(64),A=new Array(64),k=new Array(64),M=new Array(256),K=new Array(2048),L=[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],R=[0,1,2,3,4,5,6,7,8,9,10,11],G=[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],W=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],fe=[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(b,F){for(var C=0,I=0,H=new Array,le=1;le<=16;le++){for(var ce=1;ce<=b[le];ce++)H[F[I]]=[],H[F[I]][0]=C,H[F[I]][1]=le,I++,C++;C*=2}return H}function J(b){for(var F=b[0],C=b[1]-1;C>=0;)F&1<<C&&(y|=1<<_),C--,--_<0&&(y==255?(oe(255),oe(0)):oe(y),_=7,y=0)}function oe(b){v.push(b)}function ne(b){oe(b>>8&255),oe(255&b)}function ge(b,F,C,I,H){for(var le,ce=H[0],ue=H[240],we=(function(Ue,Ge){var $e,Ze,lt,ft,vt,St,Ct,kt,pt,Et,et=0;for(pt=0;pt<8;++pt){$e=Ue[et],Ze=Ue[et+1],lt=Ue[et+2],ft=Ue[et+3],vt=Ue[et+4],St=Ue[et+5],Ct=Ue[et+6];var Cr=$e+(kt=Ue[et+7]),It=$e-kt,dn=Ze+Ct,zt=Ze-Ct,rr=lt+St,Mn=lt-St,Dt=ft+vt,pi=ft-vt,ar=Cr+Dt,An=Cr-Dt,$n=dn+rr,Qt=dn-rr;Ue[et]=ar+$n,Ue[et+4]=ar-$n;var xt=.707106781*(Qt+An);Ue[et+2]=An+xt,Ue[et+6]=An-xt;var Mt=.382683433*((ar=pi+Mn)-(Qt=zt+It)),Li=.5411961*ar+Mt,kr=1.306562965*Qt+Mt,Bn=.707106781*($n=Mn+zt),jn=It+Bn,ht=It-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){$e=Ue[et],Ze=Ue[et+8],lt=Ue[et+16],ft=Ue[et+24],vt=Ue[et+32],St=Ue[et+40],Ct=Ue[et+48];var Tn=$e+(kt=Ue[et+56]),pn=$e-kt,Kr=Ze+Ct,mr=Ze-Ct,cr=lt+St,j=lt-St,re=ft+vt,Y=ft-vt,Z=Tn+re,te=Tn-re,ie=Kr+cr,_e=Kr-cr;Ue[et]=Z+ie,Ue[et+32]=Z-ie;var Le=.707106781*(_e+te);Ue[et+16]=te+Le,Ue[et+48]=te-Le;var be=.382683433*((Z=Y+j)-(_e=mr+pn)),Te=.5411961*Z+be,Ne=1.306562965*_e+be,We=.707106781*(ie=j+mr),Ve=pn+We,rt=pn-We;Ue[et+40]=rt+Te,Ue[et+24]=rt-Te,Ue[et+8]=Ve+Ne,Ue[et+56]=Ve-Ne,et++}for(pt=0;pt<64;++pt)Et=Ue[pt]*Ge[pt],d[pt]=Et>0?Et+.5|0:Et-.5|0;return d})(b,F),Pe=0;Pe<64;++Pe)w[L[Pe]]=we[Pe];var Re=w[0]-C;C=w[0],Re==0?J(I[0]):(J(I[g[le=32767+Re]]),J(p[le]));for(var He=63;He>0&&w[He]==0;)He--;if(He==0)return J(ce),C;for(var Ke,Ee=1;Ee<=He;){for(var se=Ee;w[Ee]==0&&Ee<=He;)++Ee;var Me=Ee-se;if(Me>=16){Ke=Me>>4;for(var nt=1;nt<=Ke;++nt)J(ue);Me&=15}le=32767+w[Ee],J(H[(Me<<4)+g[le]]),J(p[le]),Ee++}return He!=63&&J(ce),C}function ye(b){b=Math.min(Math.max(b,1),100),a!=b&&((function(F){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],I=0;I<64;I++){var H=s((C[I]*F+50)/100);H=Math.min(Math.max(H,1),255),o[L[I]]=H}for(var le=[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 ue=s((le[ce]*F+50)/100);ue=Math.min(Math.max(ue,1),255),f[L[ce]]=ue}for(var we=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Pe=0,Re=0;Re<8;Re++)for(var He=0;He<8;He++)c[Pe]=1/(o[L[Pe]]*we[Re]*we[He]*8),u[Pe]=1/(f[L[Pe]]*we[Re]*we[He]*8),Pe++})(b<50?Math.floor(5e3/b):Math.floor(200-2*b)),a=b)}this.encode=function(b,F){F&&ye(F),v=new Array,y=0,_=7,ne(65496),ne(65504),ne(16),oe(74),oe(70),oe(73),oe(70),oe(0),oe(1),oe(1),oe(0),ne(1),ne(1),oe(0),oe(0),(function(){ne(65499),ne(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){ne(65472),ne(17),oe(8),ne(lt),ne(Ze),oe(3),oe(1),oe(17),oe(0),oe(2),oe(17),oe(1),oe(3),oe(17),oe(1)})(b.width,b.height),(function(){ne(65476),ne(418),oe(0);for(var Ze=0;Ze<16;Ze++)oe(P[Ze+1]);for(var lt=0;lt<=11;lt++)oe(R[lt]);oe(16);for(var ft=0;ft<16;ft++)oe(G[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 Ct=0;Ct<=11;Ct++)oe(W[Ct]);oe(17);for(var kt=0;kt<16;kt++)oe(X[kt+1]);for(var pt=0;pt<=161;pt++)oe(fe[pt])})(),ne(65498),ne(12),oe(3),oe(1),oe(0),oe(2),oe(17),oe(3),oe(17),oe(0),oe(63),oe(0);var C=0,I=0,H=0;y=0,_=7,this.encode.displayName="_encode_";for(var le,ce,ue,we,Pe,Re,He,Ke,Ee,se=b.data,Me=b.width,nt=b.height,Ue=4*Me,Ge=0;Ge<nt;){for(le=0;le<Ue;){for(Pe=Ue*Ge+le,He=-1,Ke=0,Ee=0;Ee<64;Ee++)Re=Pe+(Ke=Ee>>3)*Ue+(He=4*(7&Ee)),Ge+Ke>=nt&&(Re-=Ue*(Ge+1+Ke-nt)),le+He>=Ue&&(Re-=le+He-Ue+4),ce=se[Re++],ue=se[Re++],we=se[Re++],S[Ee]=(K[ce]+K[ue+256>>0]+K[we+512>>0]>>16)-128,A[Ee]=(K[ce+768>>0]+K[ue+1024>>0]+K[we+1280>>0]>>16)-128,k[Ee]=(K[ce+1280>>0]+K[ue+1536>>0]+K[we+1792>>0]>>16)-128;C=ge(S,c,C,r,n),I=ge(A,u,I,t,i),H=ge(k,u,H,t,i),le+=32}Ge+=8}if(_>=0){var $e=[];$e[1]=_+1,$e[0]=(1<<_+1)-1,J($e)}return ne(65497),new Uint8Array(v)},e=e||50,(function(){for(var b=String.fromCharCode,F=0;F<256;F++)M[F]=b(F)})(),r=Q(P,R),t=Q(T,W),n=Q(G,E),i=Q(X,fe),(function(){for(var b=1,F=2,C=1;C<=15;C++){for(var I=b;I<F;I++)g[32767+I]=C,p[32767+I]=[],p[32767+I][1]=C,p[32767+I][0]=I;for(var H=-(F-1);H<=-b;H++)g[32767+H]=C,p[32767+H]=[],p[32767+H][1]=C,p[32767+H][0]=F-1+H;b<<=1,F<<=1}})(),(function(){for(var b=0;b<256;b++)K[b]=19595*b,K[b+256>>0]=38470*b,K[b+512>>0]=7471*b+32768,K[b+768>>0]=-11059*b,K[b+1024>>0]=-21709*b,K[b+1280>>0]=32768*b+8421375,K[b+1536>>0]=-27439*b,K[b+1792>>0]=-5329*b})(),ye(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 iu(e){function r(P){if(!P)throw Error("assert :P")}function t(P,R,G){for(var E=0;4>E;E++)if(P[R+E]!=G.charCodeAt(E))return!0;return!1}function n(P,R,G,E,T){for(var W=0;W<T;W++)P[R+W]=G[E+W]}function i(P,R,G,E){for(var T=0;T<E;T++)P[R+T]=G}function a(P){return new Int32Array(P)}function s(P,R){for(var G=[],E=0;E<P;E++)G.push(new R);return G}function o(P,R){var G=[];return(function E(T,W,X){for(var fe=X[W],Q=0;Q<fe&&(T.push(X.length>W+1?[]:new R),!(X.length<W+1));Q++)E(T[Q],W+1,X)})(G,0,P),G}var f=function(){var P=this;function R(l,h){for(var x=1<<h-1>>>0;l&x;)x>>>=1;return x?(l&x-1)+x:l}function G(l,h,x,N,O){r(!(N%x));do l[h+(N-=x)]=O;while(0<N)}function E(l,h,x,N,O){if(r(2328>=O),512>=O)var B=a(512);else if((B=a(O))==null)return 0;return(function(U,z,V,ee,de,Se){var Ae,ve,De=z,Fe=1<<V,pe=a(16),me=a(16);for(r(de!=0),r(ee!=null),r(U!=null),r(0<V),ve=0;ve<de;++ve){if(15<ee[ve])return 0;++pe[ee[ve]]}if(pe[0]==de)return 0;for(me[1]=0,Ae=1;15>Ae;++Ae){if(pe[Ae]>1<<Ae)return 0;me[Ae+1]=me[Ae]+pe[Ae]}for(ve=0;ve<de;++ve)Ae=ee[ve],0<ee[ve]&&(Se[me[Ae]++]=ve);if(me[15]==1)return(ee=new T).g=0,ee.value=Se[0],G(U,De,1,Fe,ee),Fe;var Ie,je=-1,Oe=Fe-1,at=0,Je=1,dt=1,Qe=1<<V;for(ve=0,Ae=1,de=2;Ae<=V;++Ae,de<<=1){if(Je+=dt<<=1,0>(dt-=pe[Ae]))return 0;for(;0<pe[Ae];--pe[Ae])(ee=new T).g=Ae,ee.value=Se[ve++],G(U,De+at,de,Qe,ee),at=R(at,Ae)}for(Ae=V+1,de=2;15>=Ae;++Ae,de<<=1){if(Je+=dt<<=1,0>(dt-=pe[Ae]))return 0;for(;0<pe[Ae];--pe[Ae]){if(ee=new T,(at&Oe)!=je){for(De+=Qe,Ie=1<<(je=Ae)-V;15>je&&!(0>=(Ie-=pe[je]));)++je,Ie<<=1;Fe+=Qe=1<<(Ie=je-V),U[z+(je=at&Oe)].g=Ie+V,U[z+je].value=De-z-je}ee.g=Ae-V,ee.value=Se[ve++],G(U,De+(at>>V),de,Qe,ee),at=R(at,Ae)}}return Je!=2*me[15]-1?0:Fe})(l,h,x,N,O,B)}function T(){this.value=this.g=0}function W(){this.value=this.g=0}function X(){this.G=s(5,T),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(zr,W)}function fe(l,h,x,N){r(l!=null),r(h!=null),r(2147483648>N),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=h,l.pa=x,l.Jd=h,l.Yc=x+N,l.Zc=4<=N?x+N-4+1:x,le(l)}function Q(l,h){for(var x=0;0<h--;)x|=ue(l,128)<<h;return x}function J(l,h){var x=Q(l,h);return ce(l)?-x:x}function oe(l,h,x,N){var O,B=0;for(r(l!=null),r(h!=null),r(4294967288>N),l.Sb=N,l.Ra=0,l.u=0,l.h=0,4<N&&(N=4),O=0;O<N;++O)B+=h[x+O]<<8*O;l.Ra=B,l.bb=N,l.oa=h,l.pa=x}function ne(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 ge(l,h){if(r(0<=h),!l.h&&h<=ls){var x=F(l)&os[h];return l.u+=h,ne(l),x}return l.h=1,l.u=0}function ye(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function F(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 I(l,h){l.u=h,l.h=C(l)}function H(l){l.u>=no&&(r(l.u>=no),ne(l))}function le(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 ue(l,h){var x=l.Ca;0>l.b&&le(l);var N=l.b,O=x*h>>>8,B=(l.I>>>N>O)+0;for(B?(x-=O,l.I-=O+1<<N>>>0):x=O+1,N=x,O=0;256<=N;)O+=8,N>>=8;return N=7^O+mn[N],l.b-=N,l.Ca=(x<<N)-1,B}function we(l,h,x){l[h+0]=x>>24&255,l[h+1]=x>>16&255,l[h+2]=x>>8&255,l[h+3]=x>>0&255}function Pe(l,h){return l[h+0]<<0|l[h+1]<<8}function Re(l,h){return Pe(l,h)|l[h+2]<<16}function He(l,h){return Pe(l,h)|Pe(l,h+2)<<16}function Ke(l,h){var x=1<<h;return r(l!=null),r(0<h),l.X=a(x),l.X==null?0:(l.Mb=32-h,l.Xa=h,1)}function Ee(l,h){r(l!=null),r(h!=null),r(l.Xa==h.Xa),n(h.X,0,l.X,0,1<<h.Xa)}function se(){this.X=[],this.Xa=this.Mb=0}function Me(l,h,x,N){r(x!=null),r(N!=null);var O=x[0],B=N[0];return O==0&&(O=(l*B+h/2)/h),B==0&&(B=(h*O+l/2)/l),0>=O||0>=B?0:(x[0]=O,N[0]=B,1)}function nt(l,h){return l+(1<<h)-1>>>h}function Ue(l,h){return((4278255360&l)+(4278255360&h)>>>0&4278255360)+((16711935&l)+(16711935&h)>>>0&16711935)>>>0}function Ge(l,h){P[h]=function(x,N,O,B,U,z,V){var ee;for(ee=0;ee<U;++ee){var de=P[l](z[V+ee-1],O,B+ee);z[V+ee]=Ue(x[N+ee],de)}}}function $e(){this.ud=this.hd=this.jd=0}function Ze(l,h){return((4278124286&(l^h))>>>1)+(l&h)>>>0}function lt(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function ft(l,h){return lt(l+(l-h+.5>>1))}function vt(l,h,x){return Math.abs(h-x)-Math.abs(l-x)}function St(l,h,x,N,O,B,U){for(N=B[U-1],x=0;x<O;++x)B[U+x]=N=Ue(l[h+x],N)}function Ct(l,h,x,N,O){var B;for(B=0;B<x;++B){var U=l[h+B],z=U>>8&255,V=16711935&(V=(V=16711935&U)+((z<<16)+z));N[O+B]=(4278255360&U)+V>>>0}}function kt(l,h){h.jd=l>>0&255,h.hd=l>>8&255,h.ud=l>>16&255}function pt(l,h,x,N,O,B){var U;for(U=0;U<N;++U){var z=h[x+U],V=z>>>8,ee=z,de=255&(de=(de=z>>>16)+((l.jd<<24>>24)*(V<<24>>24)>>>5));ee=255&(ee=(ee=ee+((l.hd<<24>>24)*(V<<24>>24)>>>5))+((l.ud<<24>>24)*(de<<24>>24)>>>5)),O[B+U]=(4278255360&z)+(de<<16)+ee}}function Et(l,h,x,N,O){P[h]=function(B,U,z,V,ee,de,Se,Ae,ve){for(V=Se;V<Ae;++V)for(Se=0;Se<ve;++Se)ee[de++]=O(z[N(B[U++])])},P[l]=function(B,U,z,V,ee,de,Se){var Ae=8>>B.b,ve=B.Ea,De=B.K[0],Fe=B.w;if(8>Ae)for(B=(1<<B.b)-1,Fe=(1<<Ae)-1;U<z;++U){var pe,me=0;for(pe=0;pe<ve;++pe)pe&B||(me=N(V[ee++])),de[Se++]=O(De[me&Fe]),me>>=Ae}else P["VP8LMapColor"+x](V,ee,De,Fe,de,Se,U,z,ve)}}function et(l,h,x,N,O){for(x=h+x;h<x;){var B=l[h++];N[O++]=B>>16&255,N[O++]=B>>8&255,N[O++]=B>>0&255}}function Cr(l,h,x,N,O){for(x=h+x;h<x;){var B=l[h++];N[O++]=B>>16&255,N[O++]=B>>8&255,N[O++]=B>>0&255,N[O++]=B>>24&255}}function It(l,h,x,N,O){for(x=h+x;h<x;){var B=(U=l[h++])>>16&240|U>>12&15,U=U>>0&240|U>>28&15;N[O++]=B,N[O++]=U}}function dn(l,h,x,N,O){for(x=h+x;h<x;){var B=(U=l[h++])>>16&248|U>>13&7,U=U>>5&224|U>>3&31;N[O++]=B,N[O++]=U}}function zt(l,h,x,N,O){for(x=h+x;h<x;){var B=l[h++];N[O++]=B>>0&255,N[O++]=B>>8&255,N[O++]=B>>16&255}}function rr(l,h,x,N,O,B){if(B==0)for(x=h+x;h<x;)we(N,((B=l[h++])[0]>>24|B[1]>>8&65280|B[2]<<8&16711680|B[3]<<24)>>>0),O+=32;else n(N,O,l,h,x)}function Mn(l,h){P[h][0]=P[l+"0"],P[h][1]=P[l+"1"],P[h][2]=P[l+"2"],P[h][3]=P[l+"3"],P[h][4]=P[l+"4"],P[h][5]=P[l+"5"],P[h][6]=P[l+"6"],P[h][7]=P[l+"7"],P[h][8]=P[l+"8"],P[h][9]=P[l+"9"],P[h][10]=P[l+"10"],P[h][11]=P[l+"11"],P[h][12]=P[l+"12"],P[h][13]=P[l+"13"],P[h][14]=P[l+"0"],P[h][15]=P[l+"0"]}function Dt(l){return l==Wl||l==Hl||l==b0||l==ql}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 $n(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Qt(){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 Mt(l,h){var x=l.T,N=h.ba.f.RGBA,O=N.eb,B=N.fb+l.ka*N.A,U=Gn[h.ba.S],z=l.y,V=l.O,ee=l.f,de=l.N,Se=l.ea,Ae=l.W,ve=h.cc,De=h.dc,Fe=h.Mc,pe=h.Nc,me=l.ka,Ie=l.ka+l.T,je=l.U,Oe=je+1>>1;for(me==0?U(z,V,null,null,ee,de,Se,Ae,ee,de,Se,Ae,O,B,null,null,je):(U(h.ec,h.fc,z,V,ve,De,Fe,pe,ee,de,Se,Ae,O,B-N.A,O,B,je),++x);me+2<Ie;me+=2)ve=ee,De=de,Fe=Se,pe=Ae,de+=l.Rc,Ae+=l.Rc,B+=2*N.A,U(z,(V+=2*l.fa)-l.fa,z,V,ve,De,Fe,pe,ee,de,Se,Ae,O,B-N.A,O,B,je);return V+=l.fa,l.j+Ie<l.o?(n(h.ec,h.fc,z,V,je),n(h.cc,h.dc,ee,de,Oe),n(h.Mc,h.Nc,Se,Ae,Oe),x--):1&Ie||U(z,V,null,null,ee,de,Se,Ae,ee,de,Se,Ae,O,B+N.A,null,null,je),x}function Li(l,h,x){var N=l.F,O=[l.J];if(N!=null){var B=l.U,U=h.ba.S,z=U==y0||U==b0;h=h.ba.f.RGBA;var V=[0],ee=l.ka;V[0]=l.T,l.Kb&&(ee==0?--V[0]:(--ee,O[0]-=l.width),l.j+l.ka+l.T==l.o&&(V[0]=l.o-l.j-ee));var de=h.eb;ee=h.fb+ee*h.A,l=ir(N,O[0],l.width,B,V,de,ee+(z?0:3),h.A),r(x==V),l&&Dt(U)&&Hn(de,ee,z,B,V,h.A)}return 0}function kr(l){var h=l.ma,x=h.ba.S,N=11>x,O=x==x0||x==w0||x==y0||x==zl||x==12||Dt(x);if(h.memory=null,h.Ib=null,h.Jb=null,h.Nd=null,!to(h.Oa,l,O?11:12))return 0;if(O&&Dt(x)&&ze(),l.da)alert("todo:use_scaling");else{if(N){if(h.Ib=xt,l.Kb){if(x=l.U+1>>1,h.memory=a(l.U+2*x),h.memory==null)return 0;h.ec=h.memory,h.fc=0,h.cc=h.ec,h.dc=h.fc+l.U,h.Mc=h.cc,h.Nc=h.dc+x,h.Ib=Mt,ze()}}else alert("todo:EmitYUV");O&&(h.Jb=Li,N&&xe())}if(N&&!yc){for(l=0;256>l;++l)Nd[l]=89858*(l-128)+S0>>_0,Fd[l]=-22014*(l-128)+S0,Ld[l]=-45773*(l-128),Ed[l]=113618*(l-128)+S0>>_0;for(l=co;l<Xl;++l)h=76283*(l-16)+S0>>_0,Cd[l-co]=En(h,255),kd[l-co]=En(h+8>>4,15);yc=1}return 1}function Bn(l){var h=l.ma,x=l.U,N=l.T;return r(!(1&l.ka)),0>=x||0>=N?0:(x=h.Ib(l,h),h.Jb!=null&&h.Jb(l,h,x),h.Dc+=x,1)}function jn(l){l.ma.memory=null}function ht(l,h,x,N){return ge(l,8)!=47?0:(h[0]=ge(l,14)+1,x[0]=ge(l,14)+1,N[0]=ge(l,1),ge(l,3)!=0?0:!l.h)}function Tn(l,h){if(4>l)return l+1;var x=l-2>>1;return(2+(1&l)<<x)+ge(h,x)+1}function pn(l,h){return 120<h?h-120:1<=(x=((x=hd[h-1])>>4)*l+(8-(15&x)))?x:1;var x}function Kr(l,h,x){var N=F(x),O=l[h+=255&N].g-8;return 0<O&&(I(x,x.u+8),N=F(x),h+=l[h].value,h+=N&(1<<O)-1),I(x,x.u+l[h].g),l[h].value}function mr(l,h,x){return x.g+=l.g,x.value+=l.value<<h>>>0,r(8>=x.g),l.g}function cr(l,h,x){var N=l.xc;return r((h=N==0?0:l.vc[l.md*(x>>N)+(h>>N)])<l.Wb),l.Ya[h]}function j(l,h,x,N){var O=l.ab,B=l.c*h,U=l.C;h=U+h;var z=x,V=N;for(N=l.Ta,x=l.Ua;0<O--;){var ee=l.gc[O],de=U,Se=h,Ae=z,ve=V,De=(V=N,z=x,ee.Ea);switch(r(de<Se),r(Se<=ee.nc),ee.hc){case 2:u0(Ae,ve,(Se-de)*De,V,z);break;case 0:var Fe=de,pe=Se,me=V,Ie=z,je=(Qe=ee).Ea;Fe==0&&(jl(Ae,ve,null,null,1,me,Ie),St(Ae,ve+1,0,0,je-1,me,Ie+1),ve+=je,Ie+=je,++Fe);for(var Oe=1<<Qe.b,at=Oe-1,Je=nt(je,Qe.b),dt=Qe.K,Qe=Qe.w+(Fe>>Qe.b)*Je;Fe<pe;){var jt=dt,qt=Qe,Rt=1;for(io(Ae,ve,me,Ie-je,1,me,Ie);Rt<je;){var Pt=(Rt&~at)+Oe;Pt>je&&(Pt=je),(0,$i[jt[qt++]>>8&15])(Ae,ve+ +Rt,me,Ie+Rt-je,Pt-Rt,me,Ie+Rt),Rt=Pt}ve+=je,Ie+=je,++Fe&at||(Qe+=Je)}Se!=ee.nc&&n(V,z-De,V,z+(Se-de-1)*De,De);break;case 1:for(De=Ae,pe=ve,je=(Ae=ee.Ea)-(Ie=Ae&~(me=(ve=1<<ee.b)-1)),Fe=nt(Ae,ee.b),Oe=ee.K,ee=ee.w+(de>>ee.b)*Fe;de<Se;){for(at=Oe,Je=ee,dt=new $e,Qe=pe+Ie,jt=pe+Ae;pe<Qe;)kt(at[Je++],dt),Ea(dt,De,pe,ve,V,z),pe+=ve,z+=ve;pe<jt&&(kt(at[Je++],dt),Ea(dt,De,pe,je,V,z),pe+=je,z+=je),++de&me||(ee+=Fe)}break;case 3:if(Ae==V&&ve==z&&0<ee.b){for(pe=V,Ae=De=z+(Se-de)*De-(Ie=(Se-de)*nt(ee.Ea,ee.b)),ve=V,me=z,Fe=[],Ie=(je=Ie)-1;0<=Ie;--Ie)Fe[Ie]=ve[me+Ie];for(Ie=je-1;0<=Ie;--Ie)pe[Ae+Ie]=Fe[Ie];Un(ee,de,Se,V,De,V,z)}else Un(ee,de,Se,Ae,ve,V,z)}z=N,V=x}V!=x&&n(N,x,z,V,B)}function re(l,h){var x=l.V,N=l.Ba+l.c*l.C,O=h-l.C;if(r(h<=l.l.o),r(16>=O),0<O){var B=l.l,U=l.Ta,z=l.Ua,V=B.width;if(j(l,O,x,N),O=z=[z],r((x=l.C)<(N=h)),r(B.v<B.va),N>B.o&&(N=B.o),x<B.j){var ee=B.j-x;x=B.j,O[0]+=ee*V}if(x>=N?x=0:(O[0]+=4*B.v,B.ka=x-B.j,B.U=B.va-B.v,B.T=N-x,x=1),x){if(z=z[0],11>(x=l.ca).S){var de=x.f.RGBA,Se=(N=x.S,O=B.U,B=B.T,ee=de.eb,de.A),Ae=B;for(de=de.fb+l.Ma*de.A;0<Ae--;){var ve=U,De=z,Fe=O,pe=ee,me=de;switch(N){case v0:vn(ve,De,Fe,pe,me);break;case x0:sn(ve,De,Fe,pe,me);break;case Wl:sn(ve,De,Fe,pe,me),Hn(pe,me,0,Fe,1,0);break;case uc:Ii(ve,De,Fe,pe,me);break;case w0:rr(ve,De,Fe,pe,me,1);break;case Hl:rr(ve,De,Fe,pe,me,1),Hn(pe,me,0,Fe,1,0);break;case y0:rr(ve,De,Fe,pe,me,0);break;case b0:rr(ve,De,Fe,pe,me,0),Hn(pe,me,1,Fe,1,0);break;case zl:Ji(ve,De,Fe,pe,me);break;case ql:Ji(ve,De,Fe,pe,me),nr(pe,me,Fe,1,0);break;case hc:Pi(ve,De,Fe,pe,me);break;default:r(0)}z+=V,de+=Se}l.Ma+=B}else alert("todo:EmitRescaledRowsYUVA");r(l.Ma<=x.height)}}l.C=h,r(l.C<=l.i)}function Y(l){var h;if(0<l.ua)return 0;for(h=0;h<l.Wb;++h){var x=l.Ya[h].G,N=l.Ya[h].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,h,x,N,O,B){if(l.Z!=0){var U=l.qd,z=l.rd;for(r(ta[l.Z]!=null);h<x;++h)ta[l.Z](U,z,N,O,N,O,B),U=N,z=O,O+=B;l.qd=U,l.rd=z}}function te(l,h){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(h<=l.l.o),h>N){var O=l.l.width,B=x.ca,U=x.tb+O*N,z=l.V,V=l.Ba+l.c*N,ee=l.gc;r(l.ab==1),r(ee[0].hc==3),h0(ee[0],N,h,z,V,B,U),Z(x,N,h,B,U,O)}l.C=l.Ma=h}function ie(l,h,x,N,O,B,U){var z=l.$/N,V=l.$%N,ee=l.m,de=l.s,Se=x+l.$,Ae=Se;O=x+N*O;var ve=x+N*B,De=280+de.ua,Fe=l.Pb?z:16777216,pe=0<de.ua?de.Wa:null,me=de.wc,Ie=Se<ve?cr(de,V,z):null;r(l.C<B),r(ve<=O);var je=!1;e:for(;;){for(;je||Se<ve;){var Oe=0;if(z>=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=z+pd}if(V&me||(Ie=cr(de,V,z)),r(Ie!=null),Ie.Qb&&(h[Se]=Ie.qb,je=!0),!je)if(H(ee),Ie.jc){Oe=ee,at=h;var Je=Se,dt=Ie.pd[F(Oe)&zr-1];r(Ie.jc),256>dt.g?(I(Oe,Oe.u+dt.g),at[Je]=dt.value,Oe=0):(I(Oe,Oe.u+dt.g-256),r(256<=dt.value),Oe=dt.value),Oe==0&&(je=!0)}else Oe=Kr(Ie.G[0],Ie.H[0],ee);if(ee.h)break;if(je||256>Oe){if(!je)if(Ie.nd)h[Se]=(Ie.qb|Oe<<8)>>>0;else{if(H(ee),je=Kr(Ie.G[1],Ie.H[1],ee),H(ee),at=Kr(Ie.G[2],Ie.H[2],ee),Je=Kr(Ie.G[3],Ie.H[3],ee),ee.h)break;h[Se]=(Je<<24|je<<16|Oe<<8|at)>>>0}if(je=!1,++Se,++V>=N&&(V=0,++z,U!=null&&z<=B&&!(z%16)&&U(l,z),pe!=null))for(;Ae<Se;)Oe=h[Ae++],pe.X[(506832829*Oe&4294967295)>>>pe.Mb]=Oe}else if(280>Oe){if(Oe=Tn(Oe-256,ee),at=Kr(Ie.G[4],Ie.H[4],ee),H(ee),at=pn(N,at=Tn(at,ee)),ee.h)break;if(Se-x<at||O-Se<Oe)break e;for(Je=0;Je<Oe;++Je)h[Se+Je]=h[Se+Je-at];for(Se+=Oe,V+=Oe;V>=N;)V-=N,++z,U!=null&&z<=B&&!(z%16)&&U(l,z);if(r(Se<=O),V&me&&(Ie=cr(de,V,z)),pe!=null)for(;Ae<Se;)Oe=h[Ae++],pe.X[(506832829*Oe&4294967295)>>>pe.Mb]=Oe}else{if(!(Oe<De))break e;for(je=Oe-280,r(pe!=null);Ae<Se;)Oe=h[Ae++],pe.X[(506832829*Oe&4294967295)>>>pe.Mb]=Oe;Oe=Se,r(!(je>>>(at=pe).Xa)),h[Oe]=at.X[je],je=!0}je||r(ee.h==C(ee))}if(l.Pb&&ee.h&&Se<O)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,z>B?B:z),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 h=l.Wa;h!=null&&(h.X=null),l.vb=null,r(l!=null)}function Le(){var l=new Bl;return l==null?null:(l.a=0,l.xb=gc,Mn("Predictor","VP8LPredictors"),Mn("Predictor","VP8LPredictors_C"),Mn("PredictorAdd","VP8LPredictorsAdd"),Mn("PredictorAdd","VP8LPredictorsAdd_C"),u0=Ct,Ea=pt,vn=et,sn=Cr,Ji=It,Pi=dn,Ii=zt,P.VP8LMapColor32b=cs,P.VP8LMapColor8b=d0,l)}function be(l,h,x,N,O){var B=1,U=[l],z=[h],V=N.m,ee=N.s,de=null,Se=0;e:for(;;){if(x)for(;B&&ge(V,1);){var Ae=U,ve=z,De=N,Fe=1,pe=De.m,me=De.gc[De.ab],Ie=ge(pe,2);if(De.Oc&1<<Ie)B=0;else{switch(De.Oc|=1<<Ie,me.hc=Ie,me.Ea=Ae[0],me.nc=ve[0],me.K=[null],++De.ab,r(4>=De.ab),Ie){case 0:case 1:me.b=ge(pe,3)+2,Fe=be(nt(me.Ea,me.b),nt(me.nc,me.b),0,De,me.K),me.K=me.K[0];break;case 3:var je,Oe=ge(pe,8)+1,at=16<Oe?0:4<Oe?1:2<Oe?2:3;if(Ae[0]=nt(me.Ea,at),me.b=at,je=Fe=be(Oe,1,0,De,me.K)){var Je,dt=Oe,Qe=me,jt=1<<(8>>Qe.b),qt=a(jt);if(qt==null)je=0;else{var Rt=Qe.K[0],Pt=Qe.w;for(qt[0]=Qe.K[0][0],Je=1;Je<1*dt;++Je)qt[Je]=Ue(Rt[Pt+Je],qt[Je-1]);for(;Je<4*jt;++Je)qt[Je]=0;Qe.K[0]=null,Qe.K[0]=qt,je=1}}Fe=je;break;case 2:break;default:r(0)}B=Fe}}if(U=U[0],z=z[0],B&&ge(V,1)&&!(B=1<=(Se=ge(V,4))&&11>=Se)){N.a=3;break e}var er;if(er=B)t:{var Jt,At,Tr,xn=N,Nr=U,wn=z,Gt=Se,Fn=x,Cn=xn.m,Rr=xn.s,Wr=[null],ln=1,Vn=0,yi=dd[Gt];r:for(;;){if(Fn&&ge(Cn,1)){var Mr=ge(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],Rr.xc=Mr,Jt=0;Jt<gs;++Jt){var ra=Wr[Jt]>>8&65535;Wr[Jt]=ra,ra>=ln&&(ln=ra+1)}}if(Cn.h)break r;for(At=0;5>At;++At){var hr=dc[At];!At&&0<Gt&&(hr+=1<<Gt),Vn<hr&&(Vn=hr)}var Yl=s(ln*yi,T),Sc=ln,Ac=s(Sc,X);if(Ac==null)var T0=null;else r(65536>=Sc),T0=Ac;var uo=a(Vn);if(T0==null||uo==null||Yl==null){xn.a=1;break r}var N0=Yl;for(Jt=Tr=0;Jt<ln;++Jt){var ni=T0[Jt],ms=ni.G,vs=ni.H,Tc=0,E0=1,Nc=0;for(At=0;5>At;++At){hr=dc[At],ms[At]=N0,vs[At]=Tr,!At&&0<Gt&&(hr+=1<<Gt);i:{var L0,Kl=hr,F0=xn,ho=uo,Od=N0,Dd=Tr,$l=0,na=F0.m,Rd=ge(na,1);if(i(ho,0,0,Kl),Rd){var Md=ge(na,1)+1,Bd=ge(na,1),Ec=ge(na,Bd==0?1:8);ho[Ec]=1,Md==2&&(ho[Ec=ge(na,8)]=1);var C0=1}else{var Lc=a(19),Fc=ge(na,4)+4;if(19<Fc){F0.a=3;var k0=0;break i}for(L0=0;L0<Fc;++L0)Lc[ud[L0]]=ge(na,3);var Jl=void 0,po=void 0,Cc=F0,jd=Lc,P0=Kl,kc=ho,Zl=0,ia=Cc.m,Pc=8,Ic=s(128,T);n:for(;E(Ic,0,7,jd,19);){if(ge(ia,1)){var Ud=2+2*ge(ia,3);if((Jl=2+ge(ia,Ud))>P0)break n}else Jl=P0;for(po=0;po<P0&&Jl--;){H(ia);var Oc=Ic[0+(127&F(ia))];I(ia,ia.u+Oc.g);var xs=Oc.value;if(16>xs)kc[po++]=xs,xs!=0&&(Pc=xs);else{var zd=xs==16,Dc=xs-16,Wd=fd[Dc],Rc=ge(ia,ld[Dc])+Wd;if(po+Rc>P0)break n;for(var Hd=zd?Pc:0;0<Rc--;)kc[po++]=Hd}}Zl=1;break n}Zl||(Cc.a=3),C0=Zl}(C0=C0&&!na.h)&&($l=E(Od,Dd,8,ho,Kl)),C0&&$l!=0?k0=$l:(F0.a=3,k0=0)}if(k0==0)break r;if(E0&&cd[At]==1&&(E0=N0[Tr].g==0),Tc+=N0[Tr].g,Tr+=k0,3>=At){var go,Ql=uo[0];for(go=1;go<hr;++go)uo[go]>Ql&&(Ql=uo[go]);Nc+=Ql}}if(ni.nd=E0,ni.Qb=0,E0&&(ni.qb=(ms[3][vs[3]+0].value<<24|ms[1][vs[1]+0].value<<16|ms[2][vs[2]+0].value)>>>0,Tc==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>Nc,ni.jc){var I0,Bi=ni;for(I0=0;I0<zr;++I0){var aa=I0,sa=Bi.pd[aa],O0=Bi.G[0][Bi.H[0]+aa];256<=O0.value?(sa.g=O0.g+256,sa.value=O0.value):(sa.g=0,sa.value=0,aa>>=mr(O0,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))}}}Rr.vc=Wr,Rr.Wb=ln,Rr.Ya=T0,Rr.yc=Yl,er=1;break t}er=0}if(!(B=er)){N.a=3;break e}if(0<Se){if(ee.ua=1<<Se,!Ke(ee.Wa,Se)){N.a=1,B=0;break e}}else ee.ua=0;var ef=N,Mc=U,qd=z,tf=ef.s,rf=tf.xc;if(ef.c=Mc,ef.i=qd,tf.md=nt(Mc,rf),tf.wc=rf==0?-1:(1<<rf)-1,x){N.xb=bd;break e}if((de=a(U*z))==null){N.a=1,B=0;break e}B=(B=ie(N,de,0,U,z,z,null))&&!V.h;break e}return B?(O!=null?O[0]=de:(r(de==null),r(x)),N.$=0,x||_e(ee)):_e(ee),B}function Te(l,h){var x=l.c*l.i,N=x+h+16*h;return r(l.c<=h),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+h,1)}function Ne(l,h){var x=l.C,N=h-x,O=l.V,B=l.Ba+l.c*x;for(r(h<=l.l.o);0<N;){var U=16<N?16:N,z=l.l.ma,V=l.l.width,ee=V*U,de=z.ca,Se=z.tb+V*x,Ae=l.Ta,ve=l.Ua;j(l,U,O,B),wr(Ae,ve,de,Se,ee),Z(z,x,x+U,de,Se,V),N-=U,O+=U*l.c,x+=U}r(x==h),l.C=l.Ma=h}function We(){this.ub=this.yd=this.td=this.Rb=0}function Ve(){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 h(x,N,O){for(var B=O[N],U=0;U<B&&(x.push(O.length>N+1?[]:0),!(O.length<N+1));U++)h(x[U],N+1,O)})(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 Wt(){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 Wt),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 ye,this.Od=new We,this.Kc=new Ve,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,ye),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 Wt),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],Wt),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=$o)),l}function vr(l,h,x){return l.a==0&&(l.a=h,l.sc=x,l.cb=0),0}function Yo(l,h,x){return 3<=x&&l[h+0]==157&&l[h+1]==1&&l[h+2]==42}function Ko(l,h){if(l==null)return 0;if(l.a=0,l.sc="OK",h==null)return vr(l,2,"null VP8Io passed to VP8GetHeaders()");var x=h.data,N=h.w,O=h.ha;if(4>O)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,O-=3;var z=l.Kc;if(U.Rb){if(7>O)return vr(l,7,"cannot parse picture header");if(!Yo(x,N,O))return vr(l,3,"Bad code word");z.c=16383&(x[N+4]<<8|x[N+3]),z.Td=x[N+4]>>6,z.i=16383&(x[N+6]<<8|x[N+5]),z.Ud=x[N+6]>>6,N+=7,O-=7,l.za=z.c+15>>4,l.Ub=z.i+15>>4,h.width=z.c,h.height=z.i,h.Da=0,h.j=0,h.v=0,h.va=h.width,h.o=h.height,h.da=0,h.ib=h.width,h.hb=h.height,h.U=h.width,h.T=h.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>O)return vr(l,7,"bad partition length");fe(B=l.m,x,N,U.ub),N+=U.ub,O-=U.ub,U.Rb&&(z.Ld=ce(B),z.Kd=ce(B)),z=l.Qa;var V,ee=l.Pa;if(r(B!=null),r(z!=null),z.Cb=ce(B),z.Cb){if(z.Bb=ce(B),ce(B)){for(z.Fb=ce(B),V=0;4>V;++V)z.Zb[V]=ce(B)?J(B,7):0;for(V=0;4>V;++V)z.Lb[V]=ce(B)?J(B,6):0}if(z.Bb)for(V=0;3>V;++V)ee.jb[V]=ce(B)?Q(B,8):255}else z.Bb=0;if(B.Ka)return vr(l,3,"cannot parse segment header");if((z=l.ed).zd=ce(B),z.Tb=Q(B,6),z.wb=Q(B,3),z.Pc=ce(B),z.Pc&&ce(B)){for(ee=0;4>ee;++ee)ce(B)&&(z.vd[ee]=J(B,6));for(ee=0;4>ee;++ee)ce(B)&&(z.od[ee]=J(B,6))}if(l.L=z.Tb==0?0:z.zd?1:2,B.Ka)return vr(l,3,"cannot parse filter header");var de=O;if(O=V=N,N=V+de,z=de,l.Xb=(1<<Q(l.m,2))-1,de<3*(ee=l.Xb))x=7;else{for(V+=3*ee,z-=3*ee,de=0;de<ee;++de){var Se=x[O+0]|x[O+1]<<8|x[O+2]<<16;Se>z&&(Se=z),fe(l.Jc[+de],x,V,Se),V+=Se,z-=Se,O+=3}fe(l.Jc[+ee],x,V,z),x=V<N?0:5}if(x!=0)return vr(l,x,"cannot parse partitions");for(x=Q(V=l.m,7),O=ce(V)?J(V,4):0,N=ce(V)?J(V,4):0,z=ce(V)?J(V,4):0,ee=ce(V)?J(V,4):0,V=ce(V)?J(V,4):0,de=l.Qa,Se=0;4>Se;++Se){if(de.Cb){var Ae=de.Zb[Se];de.Fb||(Ae+=x)}else{if(0<Se){l.pb[Se]=l.pb[0];continue}Ae=x}var ve=l.pb[Se];ve.Sc[0]=Gl[En(Ae+O,127)],ve.Sc[1]=Vl[En(Ae+0,127)],ve.Eb[0]=2*Gl[En(Ae+N,127)],ve.Eb[1]=101581*Vl[En(Ae+z,127)]>>16,8>ve.Eb[1]&&(ve.Eb[1]=8),ve.Qc[0]=Gl[En(Ae+ee,117)],ve.Qc[1]=Vl[En(Ae+V,127)],ve.lc=Ae+V}if(!U.Rb)return vr(l,4,"Not a key frame.");for(ce(B),U=l.Pa,x=0;4>x;++x){for(O=0;8>O;++O)for(N=0;3>N;++N)for(z=0;11>z;++z)ee=ue(B,wd[x][O][N][z])?Q(B,8):vd[x][O][N][z],U.Wc[x][O].Yb[N][z]=ee;for(O=0;17>O;++O)U.Xc[x][O]=U.Wc[x][yd[O]]}return l.kc=ce(B),l.kc&&(l.Bd=Q(B,8)),l.cb=1}function $o(l,h,x,N,O,B,U){var z=h[O].Yb[x];for(x=0;16>O;++O){if(!ue(l,z[x+0]))return O;for(;!ue(l,z[x+1]);)if(z=h[++O].Yb[0],x=0,O==16)return 16;var V=h[O+1].Yb;if(ue(l,z[x+2])){var ee=l,de=0;if(ue(ee,(Ae=z)[(Se=x)+3]))if(ue(ee,Ae[Se+6])){for(z=0,Se=2*(de=ue(ee,Ae[Se+8]))+(Ae=ue(ee,Ae[Se+9+de])),de=0,Ae=gd[Se];Ae[z];++z)de+=de+ue(ee,Ae[z]);de+=3+(8<<Se)}else ue(ee,Ae[Se+7])?(de=7+2*ue(ee,165),de+=ue(ee,145)):de=5+ue(ee,159);else de=ue(ee,Ae[Se+4])?3+ue(ee,Ae[Se+5]):2;z=V[2]}else de=1,z=V[1];V=U+md[O],0>(ee=l).b&&le(ee);var Se,Ae=ee.b,ve=(Se=ee.Ca>>1)-(ee.I>>Ae)>>31;--ee.b,ee.Ca+=ve,ee.Ca|=1,ee.I-=(Se+1&ve)<<Ae,B[V]=((de^ve)-ve)*N[(0<O)+0]}return 16}function Us(l){var h=l.rb[l.sb-1];h.la=0,h.Na=0,i(l.zc,0,0,l.zc.length),l.ja=0}function bl(l,h){if(l==null)return 0;if(h==null)return vr(l,2,"NULL VP8Io parameter in VP8Decode().");if(!l.cb&&!Ko(l,h))return 0;if(r(l.cb),h.ac==null||h.ac(h)){h.ob&&(l.L=0);var x=A0[l.L];if(l.L==2?(l.yb=0,l.zb=0):(l.yb=h.v-x>>4,l.zb=h.j-x>>4,0>l.yb&&(l.yb=0),0>l.zb&&(l.zb=0)),l.Va=h.o+15+x>>4,l.Hb=h.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 O;if(l.Qa.Cb){var B=l.Qa.Lb[x];l.Qa.Fb||(B+=N.Tb)}else B=N.Tb;for(O=0;1>=O;++O){var U=l.gd[x][O],z=B;if(N.Pc&&(z+=N.vd[0],O&&(z+=N.od[0])),0<(z=0>z?0:63<z?63:z)){var V=z;0<N.wb&&(V=4<N.wb?V>>2:V>>1)>9-N.wb&&(V=9-N.wb),1>V&&(V=1),U.dd=V,U.tc=2*z+V,U.ld=40<=z?2:15<=z?1:0}else U.tc=0;U.La=O}}}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=Id);e:{x=l.Ic,N=4*(V=l.za);var ee=32*V,de=V+1,Se=0<l.L?V*(0<l.Aa?2:1):0,Ae=(l.Aa==2?2:1)*V;if((U=N+832+(O=3*(16*x+A0[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,z=l.Fc,l.Ac=U,l.Bc=z,z+=N,l.Gd=s(ee,gi),l.Hd=0,l.rb=s(de+1,$t),l.sb=1,l.wa=Se?s(Se,Wt):null,l.Y=0,l.D.Nb=0,l.D.wa=l.wa,l.D.Y=l.Y,0<l.Aa&&(l.D.Y+=V),r(!0),l.oc=U,l.pc=z,z+=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+=V),l.R=16*V,l.B=8*V,V=(ee=A0[l.L])*l.R,ee=ee/2*l.B,l.sa=U,l.ta=z+V,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,z+=O,l.mb=B?U:null,l.nb=B?z:null,r(z+B<=l.Fc+l.Vb),Us(l),i(l.Ac,l.Bc,0,N),x=1}}if(x){if(h.ka=0,h.y=l.sa,h.O=l.ta,h.f=l.qa,h.N=l.ra,h.ea=l.Ha,h.Vd=l.Ia,h.fa=l.R,h.Rc=l.B,h.F=null,h.J=0,!g0){for(x=-255;255>=x;++x)Pr[255+x]=0>x?-x:x;for(x=-1020;1020>=x;++x)Di[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;g0=1}us=Al,Oi=_l,ao=Zo,on=Sl,zn=Qo,xr=Jo,hs=Vs,p0=Ta,so=Ml,La=Xs,Fa=Rl,Zi=rs,Ca=Ys,ds=l0,ka=o0,Qi=xi,oo=ki,Wn=Dl,ri[0]=vi,ri[1]=Tl,ri[2]=Fl,ri[3]=Cl,ri[4]=r0,ri[5]=es,ri[6]=n0,ri[7]=Hs,ri[8]=Pl,ri[9]=kl,ea[0]=e0,ea[1]=El,ea[2]=Ci,ea[3]=Za,ea[4]=$r,ea[5]=Ll,ea[6]=t0,Ri[0]=Xi,Ri[1]=Nl,Ri[2]=Il,Ri[3]=qs,Ri[4]=Aa,Ri[5]=Ol,Ri[6]=Gs,x=1}else x=0}x&&(x=(function(ve,De){for(ve.M=0;ve.M<ve.Va;++ve.M){var Fe,pe=ve.Jc[ve.M&ve.Xb],me=ve.m,Ie=ve;for(Fe=0;Fe<Ie.za;++Fe){var je=me,Oe=Ie,at=Oe.Ac,Je=Oe.Bc+4*Fe,dt=Oe.zc,Qe=Oe.ya[Oe.aa+Fe];if(Oe.Qa.Bb?Qe.$b=ue(je,Oe.Pa.jb[0])?2+ue(je,Oe.Pa.jb[2]):ue(je,Oe.Pa.jb[1]):Qe.$b=0,Oe.kc&&(Qe.Ad=ue(je,Oe.Bd)),Qe.Za=!ue(je,145)+0,Qe.Za){var jt=Qe.Ob,qt=0;for(Oe=0;4>Oe;++Oe){var Rt,Pt=dt[0+Oe];for(Rt=0;4>Rt;++Rt){Pt=xd[at[Je+Rt]][Pt];for(var er=pc[ue(je,Pt[0])];0<er;)er=pc[2*er+ue(je,Pt[er])];Pt=-er,at[Je+Rt]=Pt}n(jt,qt,at,Je,4),qt+=4,dt[0+Oe]=Pt}}else Pt=ue(je,156)?ue(je,128)?1:3:ue(je,163)?2:0,Qe.Ob[0]=Pt,i(at,Je,Pt,4),i(dt,0,Pt,4);Qe.Dd=ue(je,142)?ue(je,114)?ue(je,183)?1:3:2:0}if(Ie.m.Ka)return vr(ve,7,"Premature end-of-partition0 encountered.");for(;ve.ja<ve.za;++ve.ja){if(Ie=pe,je=(me=ve).rb[me.sb-1],at=me.rb[me.sb+me.ja],Fe=me.ya[me.aa+me.ja],Je=me.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 Jt,At;if(je=at,at=Ie,Je=me.Pa.Xc,dt=me.ya[me.aa+me.ja],Qe=me.pb[dt.$b],Oe=dt.ad,jt=0,qt=me.rb[me.sb-1],Pt=Rt=0,i(Oe,jt,0,384),dt.Za)var Tr=0,xn=Je[3];else{er=a(16);var Nr=je.Na+qt.Na;if(Nr=fo(at,Je[1],Nr,Qe.Eb,0,er,0),je.Na=qt.Na=(0<Nr)+0,1<Nr)us(er,0,Oe,jt);else{var wn=er[0]+3>>3;for(er=0;256>er;er+=16)Oe[jt+er]=wn}Tr=1,xn=Je[0]}var Gt=15&je.la,Fn=15&qt.la;for(er=0;4>er;++er){var Cn=1&Fn;for(wn=At=0;4>wn;++wn)Gt=Gt>>1|(Cn=(Nr=fo(at,xn,Nr=Cn+(1&Gt),Qe.Sc,Tr,Oe,jt))>Tr)<<7,At=At<<2|(3<Nr?3:1<Nr?2:Oe[jt+0]!=0),jt+=16;Gt>>=4,Fn=Fn>>1|Cn<<7,Rt=(Rt<<8|At)>>>0}for(xn=Gt,Tr=Fn>>4,Jt=0;4>Jt;Jt+=2){for(At=0,Gt=je.la>>4+Jt,Fn=qt.la>>4+Jt,er=0;2>er;++er){for(Cn=1&Fn,wn=0;2>wn;++wn)Nr=Cn+(1&Gt),Gt=Gt>>1|(Cn=0<(Nr=fo(at,Je[2],Nr,Qe.Qc,0,Oe,jt)))<<3,At=At<<2|(3<Nr?3:1<Nr?2:Oe[jt+0]!=0),jt+=16;Gt>>=2,Fn=Fn>>1|Cn<<5}Pt|=At<<4*Jt,xn|=Gt<<4<<Jt,Tr|=(240&Fn)<<Jt}je.la=xn,qt.la=Tr,dt.Hc=Rt,dt.Gc=Pt,dt.ia=43690&Pt?0:Qe.ia,Je=!(Rt|Pt)}if(0<me.L&&(me.wa[me.Y+me.ja]=me.gd[Fe.$b][Fe.Za],me.wa[me.Y+me.ja].La|=!Je),Ie.Ka)return vr(ve,7,"Premature end-of-file encountered.")}if(Us(ve),me=De,Ie=1,Fe=(pe=ve).D,je=0<pe.L&&pe.M>=pe.zb&&pe.M<=pe.Va,pe.Aa==0)e:{if(Fe.M=pe.M,Fe.uc=je,eo(pe,Fe),Ie=1,Fe=(At=pe.D).Nb,je=(Pt=A0[pe.L])*pe.R,at=Pt/2*pe.B,er=16*Fe*pe.R,wn=8*Fe*pe.B,Je=pe.sa,dt=pe.ta-je+er,Qe=pe.qa,Oe=pe.ra-at+wn,jt=pe.Ha,qt=pe.Ia-at+wn,Fn=(Gt=At.M)==0,Rt=Gt>=pe.Va-1,pe.Aa==2&&eo(pe,At),At.uc)for(Cn=(Nr=pe).D.M,r(Nr.D.uc),At=Nr.yb;At<Nr.Hb;++At){Tr=At,xn=Cn;var Rr=(Wr=(hr=Nr).D).Nb;Jt=hr.R;var Wr=Wr.wa[Wr.Y+Tr],ln=hr.sa,Vn=hr.ta+16*Rr*Jt+16*Tr,yi=Wr.dd,Mr=Wr.tc;if(Mr!=0)if(r(3<=Mr),hr.L==1)0<Tr&&Qi(ln,Vn,Jt,Mr+4),Wr.La&&Wn(ln,Vn,Jt,Mr),0<xn&&ka(ln,Vn,Jt,Mr+4),Wr.La&&oo(ln,Vn,Jt,Mr);else{var Mi=hr.B,Pa=hr.qa,gs=hr.ra+8*Rr*Mi+8*Tr,ra=hr.Ha,hr=hr.Ia+8*Rr*Mi+8*Tr;Rr=Wr.ld,0<Tr&&(p0(ln,Vn,Jt,Mr+4,yi,Rr),La(Pa,gs,ra,hr,Mi,Mr+4,yi,Rr)),Wr.La&&(Zi(ln,Vn,Jt,Mr,yi,Rr),ds(Pa,gs,ra,hr,Mi,Mr,yi,Rr)),0<xn&&(hs(ln,Vn,Jt,Mr+4,yi,Rr),so(Pa,gs,ra,hr,Mi,Mr+4,yi,Rr)),Wr.La&&(Fa(ln,Vn,Jt,Mr,yi,Rr),Ca(Pa,gs,ra,hr,Mi,Mr,yi,Rr))}}if(pe.ia&&alert("todo:DitherRow"),me.put!=null){if(At=16*Gt,Gt=16*(Gt+1),Fn?(me.y=pe.sa,me.O=pe.ta+er,me.f=pe.qa,me.N=pe.ra+wn,me.ea=pe.Ha,me.W=pe.Ia+wn):(At-=Pt,me.y=Je,me.O=dt,me.f=Qe,me.N=Oe,me.ea=jt,me.W=qt),Rt||(Gt-=Pt),Gt>me.o&&(Gt=me.o),me.F=null,me.J=null,pe.Fa!=null&&0<pe.Fa.length&&At<Gt&&(me.J=Zs(pe,me,At,Gt-At),me.F=pe.mb,me.F==null&&me.F.length==0)){Ie=vr(pe,3,"Could not decode alpha data.");break e}At<me.j&&(Pt=me.j-At,At=me.j,r(!(1&Pt)),me.O+=pe.R*Pt,me.N+=pe.B*(Pt>>1),me.W+=pe.B*(Pt>>1),me.F!=null&&(me.J+=me.width*Pt)),At<Gt&&(me.O+=me.v,me.N+=me.v>>1,me.W+=me.v>>1,me.F!=null&&(me.J+=me.v),me.ka=At-me.j,me.U=me.va-me.v,me.T=Gt-At,Ie=me.put(me))}Fe+1!=pe.Ic||Rt||(n(pe.sa,pe.ta-je,Je,dt+16*pe.R,je),n(pe.qa,pe.ra-at,Qe,Oe+8*pe.B,at),n(pe.Ha,pe.Ia-at,jt,qt+8*pe.B,at))}if(!Ie)return vr(ve,6,"Output aborted.")}return 1})(l,h)),h.bc!=null&&h.bc(h),x&=1}return x?(l.cb=0,x):0}function Qn(l,h,x,N,O){O=l[h+x+32*N]+(O>>3),l[h+x+32*N]=-256&O?0>O?0:255:O}function Ja(l,h,x,N,O,B){Qn(l,h,0,x,N+O),Qn(l,h,1,x,N+B),Qn(l,h,2,x,N-B),Qn(l,h,3,x,N-O)}function gn(l){return(20091*l>>16)+l}function zs(l,h,x,N){var O,B=0,U=a(16);for(O=0;4>O;++O){var z=l[h+0]+l[h+8],V=l[h+0]-l[h+8],ee=(35468*l[h+4]>>16)-gn(l[h+12]),de=gn(l[h+4])+(35468*l[h+12]>>16);U[B+0]=z+de,U[B+1]=V+ee,U[B+2]=V-ee,U[B+3]=z-de,B+=4,h++}for(O=B=0;4>O;++O)z=(l=U[B+0]+4)+U[B+8],V=l-U[B+8],ee=(35468*U[B+4]>>16)-gn(U[B+12]),Qn(x,N,0,0,z+(de=gn(U[B+4])+(35468*U[B+12]>>16))),Qn(x,N,1,0,V+ee),Qn(x,N,2,0,V-ee),Qn(x,N,3,0,z-de),B++,N+=32}function Jo(l,h,x,N){var O=l[h+0]+4,B=35468*l[h+4]>>16,U=gn(l[h+4]),z=35468*l[h+1]>>16;Ja(x,N,0,O+U,l=gn(l[h+1]),z),Ja(x,N,1,O+B,l,z),Ja(x,N,2,O-B,l,z),Ja(x,N,3,O-U,l,z)}function _l(l,h,x,N,O){zs(l,h,x,N),O&&zs(l,h+16,x,N+4)}function Zo(l,h,x,N){Oi(l,h+0,x,N,1),Oi(l,h+32,x,N+128,1)}function Sl(l,h,x,N){var O;for(l=l[h+0]+4,O=0;4>O;++O)for(h=0;4>h;++h)Qn(x,N,h,O,l)}function Qo(l,h,x,N){l[h+0]&&on(l,h+0,x,N),l[h+16]&&on(l,h+16,x,N+4),l[h+32]&&on(l,h+32,x,N+128),l[h+48]&&on(l,h+48,x,N+128+4)}function Al(l,h,x,N){var O,B=a(16);for(O=0;4>O;++O){var U=l[h+0+O]+l[h+12+O],z=l[h+4+O]+l[h+8+O],V=l[h+4+O]-l[h+8+O],ee=l[h+0+O]-l[h+12+O];B[0+O]=U+z,B[8+O]=U-z,B[4+O]=ee+V,B[12+O]=ee-V}for(O=0;4>O;++O)U=(l=B[0+4*O]+3)+B[3+4*O],z=B[1+4*O]+B[2+4*O],V=B[1+4*O]-B[2+4*O],ee=l-B[3+4*O],x[N+0]=U+z>>3,x[N+16]=ee+V>>3,x[N+32]=U-z>>3,x[N+48]=ee-V>>3,N+=64}function Ws(l,h,x){var N,O=h-32,B=Ln,U=255-l[O-1];for(N=0;N<x;++N){var z,V=B,ee=U+l[h-1];for(z=0;z<x;++z)l[h+z]=V[ee+l[O+z]];h+=32}}function Tl(l,h){Ws(l,h,4)}function Nl(l,h){Ws(l,h,8)}function El(l,h){Ws(l,h,16)}function Ci(l,h){var x;for(x=0;16>x;++x)n(l,h+32*x,l,h-32,16)}function Za(l,h){var x;for(x=16;0<x;--x)i(l,h,l[h-1],16),h+=32}function Qa(l,h,x){var N;for(N=0;16>N;++N)i(h,x+32*N,l,16)}function e0(l,h){var x,N=16;for(x=0;16>x;++x)N+=l[h-1+32*x]+l[h+x-32];Qa(N>>5,l,h)}function $r(l,h){var x,N=8;for(x=0;16>x;++x)N+=l[h-1+32*x];Qa(N>>4,l,h)}function Ll(l,h){var x,N=8;for(x=0;16>x;++x)N+=l[h+x-32];Qa(N>>4,l,h)}function t0(l,h){Qa(128,l,h)}function wt(l,h,x){return l+2*h+x+2>>2}function Fl(l,h){var x,N=h-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,h+32*x,N,0,N.length)}function Cl(l,h){var x=l[h-1],N=l[h-1+32],O=l[h-1+64],B=l[h-1+96];we(l,h+0,16843009*wt(l[h-1-32],x,N)),we(l,h+32,16843009*wt(x,N,O)),we(l,h+64,16843009*wt(N,O,B)),we(l,h+96,16843009*wt(O,B,B))}function vi(l,h){var x,N=4;for(x=0;4>x;++x)N+=l[h+x-32]+l[h-1+32*x];for(N>>=3,x=0;4>x;++x)i(l,h+32*x,N,4)}function r0(l,h){var x=l[h-1+0],N=l[h-1+32],O=l[h-1+64],B=l[h-1-32],U=l[h+0-32],z=l[h+1-32],V=l[h+2-32],ee=l[h+3-32];l[h+0+96]=wt(N,O,l[h-1+96]),l[h+1+96]=l[h+0+64]=wt(x,N,O),l[h+2+96]=l[h+1+64]=l[h+0+32]=wt(B,x,N),l[h+3+96]=l[h+2+64]=l[h+1+32]=l[h+0+0]=wt(U,B,x),l[h+3+64]=l[h+2+32]=l[h+1+0]=wt(z,U,B),l[h+3+32]=l[h+2+0]=wt(V,z,U),l[h+3+0]=wt(ee,V,z)}function n0(l,h){var x=l[h+1-32],N=l[h+2-32],O=l[h+3-32],B=l[h+4-32],U=l[h+5-32],z=l[h+6-32],V=l[h+7-32];l[h+0+0]=wt(l[h+0-32],x,N),l[h+1+0]=l[h+0+32]=wt(x,N,O),l[h+2+0]=l[h+1+32]=l[h+0+64]=wt(N,O,B),l[h+3+0]=l[h+2+32]=l[h+1+64]=l[h+0+96]=wt(O,B,U),l[h+3+32]=l[h+2+64]=l[h+1+96]=wt(B,U,z),l[h+3+64]=l[h+2+96]=wt(U,z,V),l[h+3+96]=wt(z,V,V)}function es(l,h){var x=l[h-1+0],N=l[h-1+32],O=l[h-1+64],B=l[h-1-32],U=l[h+0-32],z=l[h+1-32],V=l[h+2-32],ee=l[h+3-32];l[h+0+0]=l[h+1+64]=B+U+1>>1,l[h+1+0]=l[h+2+64]=U+z+1>>1,l[h+2+0]=l[h+3+64]=z+V+1>>1,l[h+3+0]=V+ee+1>>1,l[h+0+96]=wt(O,N,x),l[h+0+64]=wt(N,x,B),l[h+0+32]=l[h+1+96]=wt(x,B,U),l[h+1+32]=l[h+2+96]=wt(B,U,z),l[h+2+32]=l[h+3+96]=wt(U,z,V),l[h+3+32]=wt(z,V,ee)}function Hs(l,h){var x=l[h+0-32],N=l[h+1-32],O=l[h+2-32],B=l[h+3-32],U=l[h+4-32],z=l[h+5-32],V=l[h+6-32],ee=l[h+7-32];l[h+0+0]=x+N+1>>1,l[h+1+0]=l[h+0+64]=N+O+1>>1,l[h+2+0]=l[h+1+64]=O+B+1>>1,l[h+3+0]=l[h+2+64]=B+U+1>>1,l[h+0+32]=wt(x,N,O),l[h+1+32]=l[h+0+96]=wt(N,O,B),l[h+2+32]=l[h+1+96]=wt(O,B,U),l[h+3+32]=l[h+2+96]=wt(B,U,z),l[h+3+64]=wt(U,z,V),l[h+3+96]=wt(z,V,ee)}function kl(l,h){var x=l[h-1+0],N=l[h-1+32],O=l[h-1+64],B=l[h-1+96];l[h+0+0]=x+N+1>>1,l[h+2+0]=l[h+0+32]=N+O+1>>1,l[h+2+32]=l[h+0+64]=O+B+1>>1,l[h+1+0]=wt(x,N,O),l[h+3+0]=l[h+1+32]=wt(N,O,B),l[h+3+32]=l[h+1+64]=wt(O,B,B),l[h+3+64]=l[h+2+64]=l[h+0+96]=l[h+1+96]=l[h+2+96]=l[h+3+96]=B}function Pl(l,h){var x=l[h-1+0],N=l[h-1+32],O=l[h-1+64],B=l[h-1+96],U=l[h-1-32],z=l[h+0-32],V=l[h+1-32],ee=l[h+2-32];l[h+0+0]=l[h+2+32]=x+U+1>>1,l[h+0+32]=l[h+2+64]=N+x+1>>1,l[h+0+64]=l[h+2+96]=O+N+1>>1,l[h+0+96]=B+O+1>>1,l[h+3+0]=wt(z,V,ee),l[h+2+0]=wt(U,z,V),l[h+1+0]=l[h+3+32]=wt(x,U,z),l[h+1+32]=l[h+3+64]=wt(N,x,U),l[h+1+64]=l[h+3+96]=wt(O,N,x),l[h+1+96]=wt(B,O,N)}function Il(l,h){var x;for(x=0;8>x;++x)n(l,h+32*x,l,h-32,8)}function qs(l,h){var x;for(x=0;8>x;++x)i(l,h,l[h-1],8),h+=32}function Sa(l,h,x){var N;for(N=0;8>N;++N)i(h,x+32*N,l,8)}function Xi(l,h){var x,N=8;for(x=0;8>x;++x)N+=l[h+x-32]+l[h-1+32*x];Sa(N>>4,l,h)}function Ol(l,h){var x,N=4;for(x=0;8>x;++x)N+=l[h+x-32];Sa(N>>3,l,h)}function Aa(l,h){var x,N=4;for(x=0;8>x;++x)N+=l[h-1+32*x];Sa(N>>3,l,h)}function Gs(l,h){Sa(128,l,h)}function ts(l,h,x){var N=l[h-x],O=l[h+0],B=3*(O-N)+Ul[1020+l[h-2*x]-l[h+x]],U=m0[112+(B+4>>3)];l[h-x]=Ln[255+N+m0[112+(B+3>>3)]],l[h+0]=Ln[255+O-U]}function i0(l,h,x,N){var O=l[h+0],B=l[h+x];return qn[255+l[h-2*x]-l[h-x]]>N||qn[255+B-O]>N}function a0(l,h,x,N){return 4*qn[255+l[h-x]-l[h+0]]+qn[255+l[h-2*x]-l[h+x]]<=N}function s0(l,h,x,N,O){var B=l[h-3*x],U=l[h-2*x],z=l[h-x],V=l[h+0],ee=l[h+x],de=l[h+2*x],Se=l[h+3*x];return 4*qn[255+z-V]+qn[255+U-ee]>N?0:qn[255+l[h-4*x]-B]<=O&&qn[255+B-U]<=O&&qn[255+U-z]<=O&&qn[255+Se-de]<=O&&qn[255+de-ee]<=O&&qn[255+ee-V]<=O}function o0(l,h,x,N){var O=2*N+1;for(N=0;16>N;++N)a0(l,h+N,x,O)&&ts(l,h+N,x)}function xi(l,h,x,N){var O=2*N+1;for(N=0;16>N;++N)a0(l,h+N*x,1,O)&&ts(l,h+N*x,1)}function ki(l,h,x,N){var O;for(O=3;0<O;--O)o0(l,h+=4*x,x,N)}function Dl(l,h,x,N){var O;for(O=3;0<O;--O)xi(l,h+=4,x,N)}function Yi(l,h,x,N,O,B,U,z){for(B=2*B+1;0<O--;){if(s0(l,h,x,B,U))if(i0(l,h,x,z))ts(l,h,x);else{var V=l,ee=h,de=x,Se=V[ee-2*de],Ae=V[ee-de],ve=V[ee+0],De=V[ee+de],Fe=V[ee+2*de],pe=27*(Ie=Ul[1020+3*(ve-Ae)+Ul[1020+Se-De]])+63>>7,me=18*Ie+63>>7,Ie=9*Ie+63>>7;V[ee-3*de]=Ln[255+V[ee-3*de]+Ie],V[ee-2*de]=Ln[255+Se+me],V[ee-de]=Ln[255+Ae+pe],V[ee+0]=Ln[255+ve-pe],V[ee+de]=Ln[255+De-me],V[ee+2*de]=Ln[255+Fe-Ie]}h+=N}}function ei(l,h,x,N,O,B,U,z){for(B=2*B+1;0<O--;){if(s0(l,h,x,B,U))if(i0(l,h,x,z))ts(l,h,x);else{var V=l,ee=h,de=x,Se=V[ee-de],Ae=V[ee+0],ve=V[ee+de],De=m0[112+((Fe=3*(Ae-Se))+4>>3)],Fe=m0[112+(Fe+3>>3)],pe=De+1>>1;V[ee-2*de]=Ln[255+V[ee-2*de]+pe],V[ee-de]=Ln[255+Se+Fe],V[ee+0]=Ln[255+Ae-De],V[ee+de]=Ln[255+ve-pe]}h+=N}}function Vs(l,h,x,N,O,B){Yi(l,h,x,1,16,N,O,B)}function Ta(l,h,x,N,O,B){Yi(l,h,1,x,16,N,O,B)}function Rl(l,h,x,N,O,B){var U;for(U=3;0<U;--U)ei(l,h+=4*x,x,1,16,N,O,B)}function rs(l,h,x,N,O,B){var U;for(U=3;0<U;--U)ei(l,h+=4,1,x,16,N,O,B)}function Ml(l,h,x,N,O,B,U,z){Yi(l,h,O,1,8,B,U,z),Yi(x,N,O,1,8,B,U,z)}function Xs(l,h,x,N,O,B,U,z){Yi(l,h,1,O,8,B,U,z),Yi(x,N,1,O,8,B,U,z)}function Ys(l,h,x,N,O,B,U,z){ei(l,h+4*O,O,1,8,B,U,z),ei(x,N+4*O,O,1,8,B,U,z)}function l0(l,h,x,N,O,B,U,z){ei(l,h+4,1,O,8,B,U,z),ei(x,N+4,1,O,8,B,U,z)}function ns(){this.ba=new An,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Qt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ks(){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 $s(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function f0(){this.ua=0,this.Wa=new se,this.vb=new se,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new X,this.yc=new T}function Bl(){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 b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new f0,this.ab=0,this.gc=s(4,$s),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,h,x,N,O,B,U){for(l=l==null?0:l[h+0],h=0;h<U;++h)O[B+h]=l+x[N+h]&255,l=O[B+h]}function Js(l,h,x,N,O,B,U){var z;if(l==null)Na(null,null,x,N,O,B,U);else for(z=0;z<U;++z)O[B+z]=l[h+z]+x[N+z]&255}function Ki(l,h,x,N,O,B,U){if(l==null)Na(null,null,x,N,O,B,U);else{var z,V=l[h+0],ee=V,de=V;for(z=0;z<U;++z)ee=de+(V=l[h+z])-ee,de=x[N+z]+(-256&ee?0>ee?0:255:ee)&255,ee=V,O[B+z]=de}}function Zs(l,h,x,N){var O=h.width,B=h.o;if(r(l!=null&&h!=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=h.width*h.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 z=l.Fa,V=l.P,ee=l.qc,de=l.mb,Se=l.nb,Ae=V+1,ve=ee-1,De=U.l;if(r(z!=null&&de!=null&&h!=null),ta[0]=null,ta[1]=Na,ta[2]=Js,ta[3]=Ki,U.ca=de,U.tb=Se,U.c=h.width,U.i=h.height,r(0<U.c&&0<U.i),1>=ee)h=0;else if(U.$a=z[V+0]>>0&3,U.Z=z[V+0]>>2&3,U.Lc=z[V+0]>>4&3,V=z[V+0]>>6&3,0>U.$a||1<U.$a||4<=U.Z||1<U.Lc||V)h=0;else if(De.put=Bn,De.ac=kr,De.bc=jn,De.ma=U,De.width=h.width,De.height=h.height,De.Da=h.Da,De.v=h.v,De.va=h.va,De.j=h.j,De.o=h.o,U.$a)e:{r(U.$a==1),h=Le();t:for(;;){if(h==null){h=0;break e}if(r(U!=null),U.mc=h,h.c=U.c,h.i=U.i,h.l=U.l,h.l.ma=U,h.l.width=U.c,h.l.height=U.i,h.a=0,oe(h.m,z,Ae,ve),!be(U.c,U.i,1,h,null)||(h.ab==1&&h.gc[0].hc==3&&Y(h.s)?(U.ic=1,z=h.c*h.i,h.Ta=null,h.Ua=0,h.V=a(z),h.Ba=0,h.V==null?(h.a=1,h=0):h=1):(U.ic=0,h=Te(h,U.c)),!h))break t;h=1;break e}U.mc=null,h=0}else h=ve>=U.c*U.i;U=!h}if(U)return null;l.ga.Lc!=1?l.Ga=0:N=B-x}r(l.ga!=null),r(x+N<=B);e:{if(h=(z=l.ga).c,B=z.l.o,z.$a==0){if(Ae=l.rc,ve=l.Vc,De=l.Fa,V=l.P+1+x*h,ee=l.mb,de=l.nb+x*h,r(V<=l.P+l.qc),z.Z!=0)for(r(ta[z.Z]!=null),U=0;U<N;++U)ta[z.Z](Ae,ve,De,V,ee,de,h),Ae=ee,ve=de,de+=h,V+=h;else for(U=0;U<N;++U)n(ee,de,De,V,h),Ae=ee,ve=de,de+=h,V+=h;l.rc=Ae,l.Vc=ve}else{if(r(z.mc!=null),h=x+N,r((U=z.mc)!=null),r(h<=U.i),U.C>=h)h=1;else if(z.ic||xe(),z.ic){z=U.V,Ae=U.Ba,ve=U.c;var Fe=U.i,pe=(De=1,V=U.$/ve,ee=U.$%ve,de=U.m,Se=U.s,U.$),me=ve*Fe,Ie=ve*h,je=Se.wc,Oe=pe<Ie?cr(Se,ee,V):null;r(pe<=me),r(h<=Fe),r(Y(Se));t:for(;;){for(;!de.h&&pe<Ie;){if(ee&je||(Oe=cr(Se,ee,V)),r(Oe!=null),H(de),256>(Fe=Kr(Oe.G[0],Oe.H[0],de)))z[Ae+pe]=Fe,++pe,++ee>=ve&&(ee=0,++V<=h&&!(V%16)&&te(U,V));else{if(!(280>Fe)){De=0;break t}Fe=Tn(Fe-256,de);var at,Je=Kr(Oe.G[4],Oe.H[4],de);if(H(de),!(pe>=(Je=pn(ve,Je=Tn(Je,de)))&&me-pe>=Fe)){De=0;break t}for(at=0;at<Fe;++at)z[Ae+pe+at]=z[Ae+pe+at-Je];for(pe+=Fe,ee+=Fe;ee>=ve;)ee-=ve,++V<=h&&!(V%16)&&te(U,V);pe<Ie&&ee&je&&(Oe=cr(Se,ee,V))}r(de.h==C(de))}te(U,V>h?h:V);break t}!De||de.h&&pe<me?(De=0,U.a=de.h?5:3):U.$=pe,h=De}else h=ie(U,U.V,U.Ba,U.c,U.i,h,Ne);if(!h){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*O}function m(l,h,x,N,O,B){for(;0<O--;){var U,z=l,V=h+(x?1:0),ee=l,de=h+(x?0:3);for(U=0;U<N;++U){var Se=ee[de+4*U];Se!=255&&(Se*=32897,z[V+4*U+0]=z[V+4*U+0]*Se>>23,z[V+4*U+1]=z[V+4*U+1]*Se>>23,z[V+4*U+2]=z[V+4*U+2]*Se>>23)}h+=B}}function D(l,h,x,N,O){for(;0<N--;){var B;for(B=0;B<x;++B){var U=l[h+2*B+0],z=15&(ee=l[h+2*B+1]),V=4369*z,ee=(240&ee|ee>>4)*V>>16;l[h+2*B+0]=(240&U|U>>4)*V>>16&240|(15&U|U<<4)*V>>16>>4&15,l[h+2*B+1]=240&ee|z}h+=O}}function ae(l,h,x,N,O,B,U,z){var V,ee,de=255;for(ee=0;ee<O;++ee){for(V=0;V<N;++V){var Se=l[h+V];B[U+4*V]=Se,de&=Se}h+=x,U+=z}return de!=255}function he(l,h,x,N,O){var B;for(B=0;B<O;++B)x[N+B]=l[h+B]>>8}function xe(){Hn=m,nr=D,ir=ae,wr=he}function Ce(l,h,x){P[l]=function(N,O,B,U,z,V,ee,de,Se,Ae,ve,De,Fe,pe,me,Ie,je){var Oe,at=je-1>>1,Je=z[V+0]|ee[de+0]<<16,dt=Se[Ae+0]|ve[De+0]<<16;r(N!=null);var Qe=3*Je+dt+131074>>2;for(h(N[O+0],255&Qe,Qe>>16,Fe,pe),B!=null&&(Qe=3*dt+Je+131074>>2,h(B[U+0],255&Qe,Qe>>16,me,Ie)),Oe=1;Oe<=at;++Oe){var jt=z[V+Oe]|ee[de+Oe]<<16,qt=Se[Ae+Oe]|ve[De+Oe]<<16,Rt=Je+jt+dt+qt+524296,Pt=Rt+2*(jt+dt)>>3;Qe=Pt+Je>>1,Je=(Rt=Rt+2*(Je+qt)>>3)+jt>>1,h(N[O+2*Oe-1],255&Qe,Qe>>16,Fe,pe+(2*Oe-1)*x),h(N[O+2*Oe-0],255&Je,Je>>16,Fe,pe+(2*Oe-0)*x),B!=null&&(Qe=Rt+dt>>1,Je=Pt+qt>>1,h(B[U+2*Oe-1],255&Qe,Qe>>16,me,Ie+(2*Oe-1)*x),h(B[U+2*Oe+0],255&Je,Je>>16,me,Ie+(2*Oe+0)*x)),Je=jt,dt=qt}1&je||(Qe=3*Je+dt+131074>>2,h(N[O+je-1],255&Qe,Qe>>16,Fe,pe+(je-1)*x),B!=null&&(Qe=3*dt+Je+131074>>2,h(B[U+je-1],255&Qe,Qe>>16,me,Ie+(je-1)*x)))}}function ze(){Gn[v0]=_d,Gn[x0]=mc,Gn[uc]=Sd,Gn[w0]=vc,Gn[y0]=xc,Gn[zl]=wc,Gn[hc]=Ad,Gn[Wl]=mc,Gn[Hl]=vc,Gn[b0]=xc,Gn[ql]=wc}function it(l){return l&-16384?0>l?0:255:l>>Td}function ct(l,h){return it((19077*l>>8)+(26149*h>>8)-14234)}function _t(l,h,x){return it((19077*l>>8)-(6419*h>>8)-(13320*x>>8)+8708)}function yt(l,h){return it((19077*l>>8)+(33050*h>>8)-17685)}function Ot(l,h,x,N,O){N[O+0]=ct(l,x),N[O+1]=_t(l,h,x),N[O+2]=yt(l,h)}function fr(l,h,x,N,O){N[O+0]=yt(l,h),N[O+1]=_t(l,h,x),N[O+2]=ct(l,x)}function ur(l,h,x,N,O){var B=_t(l,h,x);h=B<<3&224|yt(l,h)>>3,N[O+0]=248&ct(l,x)|B>>5,N[O+1]=h}function Ar(l,h,x,N,O){var B=240&yt(l,h)|15;N[O+0]=240&ct(l,x)|_t(l,h,x)>>4,N[O+1]=B}function Jr(l,h,x,N,O){N[O+0]=255,Ot(l,h,x,N,O+1)}function Dr(l,h,x,N,O){fr(l,h,x,N,O),N[O+3]=255}function ti(l,h,x,N,O){Ot(l,h,x,N,O),N[O+3]=255}function En(l,h){return 0>l?0:l>h?h:l}function wi(l,h,x){P[l]=function(N,O,B,U,z,V,ee,de,Se){for(var Ae=de+(-2&Se)*x;de!=Ae;)h(N[O+0],B[U+0],z[V+0],ee,de),h(N[O+1],B[U+0],z[V+0],ee,de+x),O+=2,++U,++V,de+=2*x;1&Se&&h(N[O+0],B[U+0],z[V+0],ee,de)}}function c0(l,h,x){return x==0?l==0?h==0?6:5:h==0?4:0:x}function Qs(l,h,x,N,O){switch(l>>>30){case 3:Oi(h,x,N,O,0);break;case 2:xr(h,x,N,O);break;case 1:on(h,x,N,O)}}function eo(l,h){var x,N,O=h.M,B=h.Nb,U=l.oc,z=l.pc+40,V=l.oc,ee=l.pc+584,de=l.oc,Se=l.pc+600;for(x=0;16>x;++x)U[z+32*x-1]=129;for(x=0;8>x;++x)V[ee+32*x-1]=129,de[Se+32*x-1]=129;for(0<O?U[z-1-32]=V[ee-1-32]=de[Se-1-32]=129:(i(U,z-32-1,127,21),i(V,ee-32-1,127,9),i(de,Se-32-1,127,9)),N=0;N<l.za;++N){var Ae=h.ya[h.aa+N];if(0<N){for(x=-1;16>x;++x)n(U,z+32*x-4,U,z+32*x+12,4);for(x=-1;8>x;++x)n(V,ee+32*x-4,V,ee+32*x+4,4),n(de,Se+32*x-4,de,Se+32*x+4,4)}var ve=l.Gd,De=l.Hd+N,Fe=Ae.ad,pe=Ae.Hc;if(0<O&&(n(U,z-32,ve[De].y,0,16),n(V,ee-32,ve[De].f,0,8),n(de,Se-32,ve[De].ea,0,8)),Ae.Za){var me=U,Ie=z-32+16;for(0<O&&(N>=l.za-1?i(me,Ie,ve[De].y[15],4):n(me,Ie,ve[De+1].y,0,4)),x=0;4>x;x++)me[Ie+128+x]=me[Ie+256+x]=me[Ie+384+x]=me[Ie+0+x];for(x=0;16>x;++x,pe<<=2)me=U,Ie=z+bc[x],ri[Ae.Ob[x]](me,Ie),Qs(pe,Fe,16*+x,me,Ie)}else if(me=c0(N,O,Ae.Ob[0]),ea[me](U,z),pe!=0)for(x=0;16>x;++x,pe<<=2)Qs(pe,Fe,16*+x,U,z+bc[x]);for(x=Ae.Gc,me=c0(N,O,Ae.Dd),Ri[me](V,ee),Ri[me](de,Se),pe=Fe,me=V,Ie=ee,255&(Ae=x>>0)&&(170&Ae?ao(pe,256,me,Ie):zn(pe,256,me,Ie)),Ae=de,pe=Se,255&(x>>=8)&&(170&x?ao(Fe,320,Ae,pe):zn(Fe,320,Ae,pe)),O<l.Ub-1&&(n(ve[De].y,0,U,z+480,16),n(ve[De].f,0,V,ee+224,8),n(ve[De].ea,0,de,Se+224,8)),x=8*B*l.B,ve=l.sa,De=l.ta+16*N+16*B*l.R,Fe=l.qa,Ae=l.ra+8*N+x,pe=l.Ha,me=l.Ia+8*N+x,x=0;16>x;++x)n(ve,De+x*l.R,U,z+32*x,16);for(x=0;8>x;++x)n(Fe,Ae+x*l.B,V,ee+32*x,8),n(pe,me+x*l.B,de,Se+32*x,8)}}function as(l,h,x,N,O,B,U,z,V){var ee=[0],de=[0],Se=0,Ae=V!=null?V.kd:0,ve=V??new Ks;if(l==null||12>x)return 7;ve.data=l,ve.w=h,ve.ha=x,h=[h],x=[x],ve.gb=[ve.gb];e:{var De=h,Fe=x,pe=ve.gb;if(r(l!=null),r(Fe!=null),r(pe!=null),pe[0]=0,12<=Fe[0]&&!t(l,De[0],"RIFF")){if(t(l,De[0]+8,"WEBP")){pe=3;break e}var me=He(l,De[0]+4);if(12>me||4294967286<me){pe=3;break e}if(Ae&&me>Fe[0]-8){pe=7;break e}pe[0]=me,De[0]+=12,Fe[0]-=12}pe=0}if(pe!=0)return pe;for(me=0<ve.gb[0],x=x[0];;){e:{var Ie=l;Fe=h,pe=x;var je=ee,Oe=de,at=De=[0];if((Qe=Se=[Se])[0]=0,8>pe[0])pe=7;else{if(!t(Ie,Fe[0],"VP8X")){if(He(Ie,Fe[0]+4)!=10){pe=3;break e}if(18>pe[0]){pe=7;break e}var Je=He(Ie,Fe[0]+8),dt=1+Re(Ie,Fe[0]+12);if(2147483648<=dt*(Ie=1+Re(Ie,Fe[0]+15))){pe=3;break e}at!=null&&(at[0]=Je),je!=null&&(je[0]=dt),Oe!=null&&(Oe[0]=Ie),Fe[0]+=18,pe[0]-=18,Qe[0]=1}pe=0}}if(Se=Se[0],De=De[0],pe!=0)return pe;if(Fe=!!(2&De),!me&&Se)return 3;if(B!=null&&(B[0]=!!(16&De)),U!=null&&(U[0]=Fe),z!=null&&(z[0]=0),U=ee[0],De=de[0],Se&&Fe&&V==null){pe=0;break}if(4>x){pe=7;break}if(me&&Se||!me&&!Se&&!t(l,h[0],"ALPH")){x=[x],ve.na=[ve.na],ve.P=[ve.P],ve.Sa=[ve.Sa];e:{Je=l,pe=h,me=x;var Qe=ve.gb;je=ve.na,Oe=ve.P,at=ve.Sa,dt=22,r(Je!=null),r(me!=null),Ie=pe[0];var jt=me[0];for(r(je!=null),r(at!=null),je[0]=null,Oe[0]=null,at[0]=0;;){if(pe[0]=Ie,me[0]=jt,8>jt){pe=7;break e}var qt=He(Je,Ie+4);if(4294967286<qt){pe=3;break e}var Rt=8+qt+1&-2;if(dt+=Rt,0<Qe&&dt>Qe){pe=3;break e}if(!t(Je,Ie,"VP8 ")||!t(Je,Ie,"VP8L")){pe=0;break e}if(jt[0]<Rt){pe=7;break e}t(Je,Ie,"ALPH")||(je[0]=Je,Oe[0]=Ie+8,at[0]=qt),Ie+=Rt,jt-=Rt}}if(x=x[0],ve.na=ve.na[0],ve.P=ve.P[0],ve.Sa=ve.Sa[0],pe!=0)break}x=[x],ve.Ja=[ve.Ja],ve.xa=[ve.xa];e:if(Qe=l,pe=h,me=x,je=ve.gb[0],Oe=ve.Ja,at=ve.xa,Je=pe[0],Ie=!t(Qe,Je,"VP8 "),dt=!t(Qe,Je,"VP8L"),r(Qe!=null),r(me!=null),r(Oe!=null),r(at!=null),8>me[0])pe=7;else{if(Ie||dt){if(Qe=He(Qe,Je+4),12<=je&&Qe>je-12){pe=3;break e}if(Ae&&Qe>me[0]-8){pe=7;break e}Oe[0]=Qe,pe[0]+=8,me[0]-=8,at[0]=dt}else at[0]=5<=me[0]&&Qe[Je+0]==47&&!(Qe[Je+4]>>5),Oe[0]=me[0];pe=0}if(x=x[0],ve.Ja=ve.Ja[0],ve.xa=ve.xa[0],h=h[0],pe!=0)break;if(4294967286<ve.Ja)return 3;if(z==null||Fe||(z[0]=ve.xa?2:1),U=[U],De=[De],ve.xa){if(5>x){pe=7;break}z=U,Ae=De,Fe=B,l==null||5>x?l=0:5<=x&&l[h+0]==47&&!(l[h+4]>>5)?(me=[0],Qe=[0],je=[0],oe(Oe=new b,l,h,x),ht(Oe,me,Qe,je)?(z!=null&&(z[0]=me[0]),Ae!=null&&(Ae[0]=Qe[0]),Fe!=null&&(Fe[0]=je[0]),l=1):l=0):l=0}else{if(10>x){pe=7;break}z=De,l==null||10>x||!Yo(l,h+3,x-3)?l=0:(Ae=l[h+0]|l[h+1]<<8|l[h+2]<<16,Fe=16383&(l[h+7]<<8|l[h+6]),l=16383&(l[h+9]<<8|l[h+8]),1&Ae||3<(Ae>>1&7)||!(Ae>>4&1)||Ae>>5>=ve.Ja||!Fe||!l?l=0:(U&&(U[0]=Fe),z&&(z[0]=l),l=1))}if(!l||(U=U[0],De=De[0],Se&&(ee[0]!=U||de[0]!=De)))return 3;V!=null&&(V[0]=ve,V.offset=h-V.w,r(4294967286>h-V.w),r(V.offset==V.ha-x));break}return pe==0||pe==7&&Se&&V==null?(B!=null&&(B[0]|=ve.na!=null&&0<ve.na.length),N!=null&&(N[0]=U),O!=null&&(O[0]=De),0):pe}function to(l,h,x){var N=h.width,O=h.height,B=0,U=0,z=N,V=O;if(h.Da=l!=null&&0<l.Da,h.Da&&(z=l.cd,V=l.bd,B=l.v,U=l.j,11>x||(B&=-2,U&=-2),0>B||0>U||0>=z||0>=V||B+z>N||U+V>O))return 0;if(h.v=B,h.j=U,h.va=B+z,h.o=U+V,h.U=z,h.T=V,h.da=l!=null&&0<l.da,h.da){if(!Me(z,V,x=[l.ib],B=[l.hb]))return 0;h.ib=x[0],h.hb=B[0]}return h.ob=l!=null&&l.ob,h.Kb=l==null||!l.Sd,h.da&&(h.ob=h.ib<3*N/4&&h.hb<3*O/4,h.Kb=0),1}function ro(l){if(l==null)return 2;if(11>l.S){var h=l.f.RGBA;h.fb+=(l.height-1)*h.A,h.A=-h.A}else h=l.f.kb,l=l.height,h.O+=(l-1)*h.fa,h.fa=-h.fa,h.N+=(l-1>>1)*h.Ab,h.Ab=-h.Ab,h.W+=(l-1>>1)*h.Db,h.Db=-h.Db,h.F!=null&&(h.J+=(l-1)*h.lb,h.lb=-h.lb);return 0}function ss(l,h,x,N){if(N==null||0>=l||0>=h)return 2;if(x!=null){if(x.Da){var O=x.cd,B=x.bd,U=-2&x.v,z=-2&x.j;if(0>U||0>z||0>=O||0>=B||U+O>l||z+B>h)return 2;l=O,h=B}if(x.da){if(!Me(l,h,O=[x.ib],B=[x.hb]))return 2;l=O[0],h=B[0]}}N.width=l,N.height=h;e:{var V=N.width,ee=N.height;if(l=N.S,0>=V||0>=ee||!(l>=v0&&13>l))l=2;else{if(0>=N.Rd&&N.sd==null){U=B=O=h=0;var de=(z=V*_c[l])*ee;if(11>l||(B=(ee+1)/2*(h=(V+1)/2),l==12&&(U=(O=V)*ee)),(ee=a(de+2*B+U))==null){l=1;break e}N.sd=ee,11>l?((V=N.f.RGBA).eb=ee,V.fb=0,V.A=z,V.size=de):((V=N.f.kb).y=ee,V.O=0,V.fa=z,V.Fd=de,V.f=ee,V.N=0+de,V.Ab=h,V.Cd=B,V.ea=ee,V.W=0+de+B,V.Db=h,V.Ed=B,l==12&&(V.F=ee,V.J=0+de+2*B),V.Tc=U,V.lb=O)}if(h=1,O=N.S,B=N.width,U=N.height,O>=v0&&13>O)if(11>O)l=N.f.RGBA,h&=(z=Math.abs(l.A))*(U-1)+B<=l.size,h&=z>=B*_c[O],h&=l.eb!=null;else{l=N.f.kb,z=(B+1)/2,de=(U+1)/2,V=Math.abs(l.fa),ee=Math.abs(l.Ab);var Se=Math.abs(l.Db),Ae=Math.abs(l.lb),ve=Ae*(U-1)+B;h&=V*(U-1)+B<=l.Fd,h&=ee*(de-1)+z<=l.Cd,h=(h&=Se*(de-1)+z<=l.Ed)&V>=B&ee>=z&Se>=z,h&=l.y!=null,h&=l.f!=null,h&=l.ea!=null,O==12&&(h&=Ae>=B,h&=ve<=l.Tc,h&=l.F!=null)}else h=0;l=h?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];Ge("Predictor0","PredictorAdd0"),P.Predictor0=function(){return 4278190080},P.Predictor1=function(l){return l},P.Predictor2=function(l,h,x){return h[x+0]},P.Predictor3=function(l,h,x){return h[x+1]},P.Predictor4=function(l,h,x){return h[x-1]},P.Predictor5=function(l,h,x){return Ze(Ze(l,h[x+1]),h[x+0])},P.Predictor6=function(l,h,x){return Ze(l,h[x-1])},P.Predictor7=function(l,h,x){return Ze(l,h[x+0])},P.Predictor8=function(l,h,x){return Ze(h[x-1],h[x+0])},P.Predictor9=function(l,h,x){return Ze(h[x+0],h[x+1])},P.Predictor10=function(l,h,x){return Ze(Ze(l,h[x-1]),Ze(h[x+0],h[x+1]))},P.Predictor11=function(l,h,x){var N=h[x+0];return 0>=vt(N>>24&255,l>>24&255,(h=h[x-1])>>24&255)+vt(N>>16&255,l>>16&255,h>>16&255)+vt(N>>8&255,l>>8&255,h>>8&255)+vt(255&N,255&l,255&h)?N:l},P.Predictor12=function(l,h,x){var N=h[x+0];return(lt((l>>24&255)+(N>>24&255)-((h=h[x-1])>>24&255))<<24|lt((l>>16&255)+(N>>16&255)-(h>>16&255))<<16|lt((l>>8&255)+(N>>8&255)-(h>>8&255))<<8|lt((255&l)+(255&N)-(255&h)))>>>0},P.Predictor13=function(l,h,x){var N=h[x-1];return(ft((l=Ze(l,h[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 jl=P.PredictorAdd0;P.PredictorAdd1=St,Ge("Predictor2","PredictorAdd2"),Ge("Predictor3","PredictorAdd3"),Ge("Predictor4","PredictorAdd4"),Ge("Predictor5","PredictorAdd5"),Ge("Predictor6","PredictorAdd6"),Ge("Predictor7","PredictorAdd7"),Ge("Predictor8","PredictorAdd8"),Ge("Predictor9","PredictorAdd9"),Ge("Predictor10","PredictorAdd10"),Ge("Predictor11","PredictorAdd11"),Ge("Predictor12","PredictorAdd12"),Ge("Predictor13","PredictorAdd13");var io=P.PredictorAdd2;Et("ColorIndexInverseTransform","MapARGB","32b",(function(l){return l>>8&255}),(function(l){return l})),Et("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(l){return l}),(function(l){return l>>8&255}));var u0,Un=P.ColorIndexInverseTransform,cs=P.MapARGB,h0=P.VP8LColorIndexInverseTransformAlpha,d0=P.MapAlpha,$i=P.VP8LPredictorsAdd=[];$i.length=16,(P.VP8LPredictors=[]).length=16,(P.VP8LPredictorsAdd_C=[]).length=16,(P.VP8LPredictors_C=[]).length=16;var Ea,vn,sn,Ji,Pi,Ii,us,Oi,xr,ao,on,zn,hs,p0,so,La,Fa,Zi,Ca,ds,ka,Qi,oo,Wn,Hn,nr,ir,wr,Pr=a(511),Di=a(2041),lo=a(225),ps=a(767),g0=0,Ul=Di,m0=lo,Ln=ps,qn=Pr,v0=0,x0=1,uc=2,w0=3,y0=4,zl=5,hc=6,Wl=7,Hl=8,b0=9,ql=10,ld=[2,3,7],fd=[3,3,11],dc=[280,256,256,256,40],cd=[0,1,1,1,0],ud=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],hd=[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],dd=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],pd=8,Gl=[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],Vl=[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,gd=[[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]],md=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],pc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],vd=[[[[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]]]],xd=[[[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]]],wd=[[[[255,255,255,255,255,255,255,255,255,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]]]],yd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ea=[],ri=[],Ri=[],bd=1,gc=2,ta=[],Gn=[];Ce("UpsampleRgbLinePair",Ot,3),Ce("UpsampleBgrLinePair",fr,3),Ce("UpsampleRgbaLinePair",ti,4),Ce("UpsampleBgraLinePair",Dr,4),Ce("UpsampleArgbLinePair",Jr,4),Ce("UpsampleRgba4444LinePair",Ar,2),Ce("UpsampleRgb565LinePair",ur,2);var _d=P.UpsampleRgbLinePair,Sd=P.UpsampleBgrLinePair,mc=P.UpsampleRgbaLinePair,vc=P.UpsampleBgraLinePair,xc=P.UpsampleArgbLinePair,wc=P.UpsampleRgba4444LinePair,Ad=P.UpsampleRgb565LinePair,_0=16,S0=1<<_0-1,co=-227,Xl=482,Td=6,yc=0,Nd=a(256),Ed=a(256),Ld=a(256),Fd=a(256),Cd=a(Xl-co),kd=a(Xl-co);wi("YuvToRgbRow",Ot,3),wi("YuvToBgrRow",fr,3),wi("YuvToRgbaRow",ti,4),wi("YuvToBgraRow",Dr,4),wi("YuvToArgbRow",Jr,4),wi("YuvToRgba4444Row",Ar,2),wi("YuvToRgb565Row",ur,2);var bc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],A0=[0,2,8],Pd=[8,7,6,4,4,2,2,2,1,1,1,1],Id=1;this.WebPDecodeRGBA=function(l,h,x,N,O){var B=x0,U=new ns,z=new An;U.ba=z,z.S=B,z.width=[z.width],z.height=[z.height];var V=z.width,ee=z.height,de=new $n;if(de==null||l==null)var Se=2;else r(de!=null),Se=as(l,h,x,de.width,de.height,de.Pd,de.Qd,de.format,null);if(Se!=0?V=0:(V!=null&&(V[0]=de.width[0]),ee!=null&&(ee[0]=de.height[0]),V=1),V){z.width=z.width[0],z.height=z.height[0],N!=null&&(N[0]=z.width),O!=null&&(O[0]=z.height);e:{if(N=new mi,(O=new Ks).data=l,O.w=h,O.ha=x,O.kd=1,h=[0],r(O!=null),((l=as(O.data,O.w,O.ha,null,null,null,h,null,O))==0||l==7)&&h[0]&&(l=4),(h=l)==0){if(r(U!=null),N.data=O.data,N.w=O.w+O.offset,N.ha=O.ha-O.offset,N.put=Bn,N.ac=kr,N.bc=jn,N.ma=U,O.xa){if((l=Le())==null){U=1;break e}if((function(Ae,ve){var De=[0],Fe=[0],pe=[0];t:for(;;){if(Ae==null)return 0;if(ve==null)return Ae.a=2,0;if(Ae.l=ve,Ae.a=0,oe(Ae.m,ve.data,ve.w,ve.ha),!ht(Ae.m,De,Fe,pe)){Ae.a=3;break t}if(Ae.xb=gc,ve.width=De[0],ve.height=Fe[0],!be(De[0],Fe[0],1,Ae,null))break t;return 1}return r(Ae.a!=0),0})(l,N)){if(N=(h=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((O=x.ma)!=null),N.xb!=0){if(N.ca=O.ba,N.tb=O.tb,r(N.ca!=null),!to(O.Oa,x,w0)){N.a=2;break r}if(!Te(N,x.width)||x.da)break r;if((x.da||Dt(N.ca.S))&&xe(),11>N.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),N.ca.f.kb.F!=null&&xe()),N.Pb&&0<N.s.ua&&N.s.vb.X==null&&!Ke(N.s.vb,N.s.Wa.Xa)){N.a=1;break r}N.xb=0}if(!ie(N,N.V,N.Ba,N.c,N.i,x.o,re))break r;O.Dc=N.Ma,N=1;break t}r(N.a!=0),N=0}N=!N}N&&(h=l.a)}else h=l.a}else{if((l=new Nn)==null){U=1;break e}if(l.Fa=O.na,l.P=O.P,l.qc=O.Sa,Ko(l,N)){if((h=ss(N.width,N.height,U.Oa,U.ba))==0){if(l.Aa=0,x=U.Oa,r((O=l)!=null),x!=null){if(0<(V=0>(V=x.Md)?0:100<V?255:255*V/100)){for(ee=de=0;4>ee;++ee)12>(Se=O.pb[ee]).lc&&(Se.ia=V*Pd[0>Se.lc?0:Se.lc]>>3),de|=Se.ia;de&&(alert("todo:VP8InitRandom"),O.ia=1)}O.Ga=x.Id,100<O.Ga?O.Ga=100:0>O.Ga&&(O.Ga=0)}bl(l,N)||(h=l.a)}}else h=l.a}h==0&&U.Oa!=null&&U.Oa.fd&&(h=ro(U.ba))}U=h}B=U!=0?null:11>B?z.f.RGBA.eb:z.f.kb.y}else B=null;return B};var _c=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(P,R){for(var G="",E=0;E<4;E++)G+=String.fromCharCode(P[R++]);return G}function u(P,R){return(P[R+0]<<0|P[R+1]<<8|P[R+2]<<16)>>>0}function p(P,R){return(P[R+0]<<0|P[R+1]<<8|P[R+2]<<16|P[R+3]<<24)>>>0}new f;var g=[0],d=[0],w=[],v=new f,y=e,_=(function(P,R){var G={},E=0,T=!1,W=0,X=0;if(G.frames=[],!(function(F,C,I,H){for(var le=0;le<H;le++)if(F[C+le]!=I.charCodeAt(le))return!0;return!1})(P,R,"RIFF",4)){var fe,Q;for(p(P,R+=4),R+=8;R<P.length;){var J=c(P,R),oe=p(P,R+=4);R+=4;var ne=oe+(1&oe);switch(J){case"VP8 ":case"VP8L":G.frames[E]===void 0&&(G.frames[E]={}),(b=G.frames[E]).src_off=T?X:R-8,b.src_size=W+oe+8,E++,T&&(T=!1,W=0,X=0);break;case"VP8X":(b=G.header={}).feature_flags=P[R];var ge=R+4;b.canvas_width=1+u(P,ge),ge+=3,b.canvas_height=1+u(P,ge),ge+=3;break;case"ALPH":T=!0,W=ne+8,X=R-8;break;case"ANIM":(b=G.header).bgcolor=p(P,R),ge=R+4,b.loop_count=(fe=P)[(Q=ge)+0]<<0|fe[Q+1]<<8,ge+=2;break;case"ANMF":var ye,b;(b=G.frames[E]={}).offset_x=2*u(P,R),R+=3,b.offset_y=2*u(P,R),R+=3,b.width=1+u(P,R),R+=3,b.height=1+u(P,R),R+=3,b.duration=u(P,R),R+=3,ye=P[R++],b.dispose=1&ye,b.blend=ye>>1&1}J!="ANMF"&&(R+=ne)}return G}})(y,0);_.response=y,_.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],d=[S.canvas_width];for(var k=0;k<A.length&&A[k].blend!=0;k++);}var M=A[0],K=v.WebPDecodeRGBA(y,M.src_off,M.src_size,d,g);M.rgba=K,M.imgwidth=d[0],M.imgheight=g[0];for(var L=0;L<d[0]*g[0]*4;L++)w[L]=K[L];return this.width=d,this.height=g,this.data=w,this}(function(e){var r=function(){return typeof Lf=="function"},t=function(g,d,w,v){var y=4,_=s;switch(v){case e.image_compression.FAST:y=1,_=a;break;case e.image_compression.MEDIUM:y=6,_=o;break;case e.image_compression.SLOW:y=9,_=f}g=n(g,d,w,_);var S=Lf(g,{level:y});return e.__addimage__.arrayBufferToBinaryString(S)},n=function(g,d,w,v){for(var y,_,S,A=g.length/d,k=new Uint8Array(g.length+A),M=u(),K=0;K<A;K+=1){if(S=K*d,y=g.subarray(S,S+d),v)k.set(v(y,w,_),S+K);else{for(var L,P=M.length,R=[];L<P;L+=1)R[L]=M[L](y,w,_);var G=p(R.concat());k.set(R[G],S+K)}_=y}return k},i=function(g){var d=Array.apply([],g);return d.unshift(0),d},a=function(g,d){var w,v=[],y=g.length;v[0]=1;for(var _=0;_<y;_+=1)w=g[_-d]||0,v[_+1]=g[_]-w+256&255;return v},s=function(g,d,w){var v,y=[],_=g.length;y[0]=2;for(var S=0;S<_;S+=1)v=w&&w[S]||0,y[S+1]=g[S]-v+256&255;return y},o=function(g,d,w){var v,y,_=[],S=g.length;_[0]=3;for(var A=0;A<S;A+=1)v=g[A-d]||0,y=w&&w[A]||0,_[A+1]=g[A]+256-(v+y>>>1)&255;return _},f=function(g,d,w){var v,y,_,S,A=[],k=g.length;A[0]=4;for(var M=0;M<k;M+=1)v=g[M-d]||0,y=w&&w[M]||0,_=w&&w[M-d]||0,S=c(v,y,_),A[M+1]=g[M]-S+256&255;return A},c=function(g,d,w){if(g===d&&d===w)return g;var v=Math.abs(d-w),y=Math.abs(g-w),_=Math.abs(g+d-w-w);return v<=y&&v<=_?g:y<=_?d:w},u=function(){return[i,a,s,o,f]},p=function(g){var d=g.map((function(w){return w.reduce((function(v,y){return v+Math.abs(y)}),0)}));return d.indexOf(Math.min.apply(null,d))};e.processPNG=function(g,d,w,v){var y,_,S,A,k,M,K,L,P,R,G,E,T,W,X,fe=this.decode.FLATE_DECODE,Q="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(S=new sp(g)).imgData,_=S.bits,y=S.colorSpace,k=S.colors,[4,6].indexOf(S.colorType)!==-1){if(S.bits===8){P=(L=S.pixelBitlength==32?new Uint32Array(S.decodePixels().buffer):S.pixelBitlength==16?new Uint16Array(S.decodePixels().buffer):new Uint8Array(S.decodePixels().buffer)).length,G=new Uint8Array(P*S.colors),R=new Uint8Array(P);var J,oe=S.pixelBitlength-S.bits;for(W=0,X=0;W<P;W++){for(T=L[W],J=0;J<oe;)G[X++]=T>>>J&255,J+=S.bits;R[W]=T>>>J&255}}if(S.bits===16){P=(L=new Uint32Array(S.decodePixels().buffer)).length,G=new Uint8Array(P*(32/S.pixelBitlength)*S.colors),R=new Uint8Array(P*(32/S.pixelBitlength)),E=S.colors>1,W=0,X=0;for(var ne=0;W<P;)T=L[W++],G[X++]=T>>>0&255,E&&(G[X++]=T>>>16&255,T=L[W++],G[X++]=T>>>0&255),R[ne++]=T>>>16&255;_=8}v!==e.image_compression.NONE&&r()?(g=t(G,S.width*S.colors,S.colors,v),K=t(R,S.width,1,v)):(g=G,K=R,fe=void 0)}if(S.colorType===3&&(y=this.color_spaces.INDEXED,M=S.palette,S.transparency.indexed)){var ge=S.transparency.indexed,ye=0;for(W=0,P=ge.length;W<P;++W)ye+=ge[W];if((ye/=255)===P-1&&ge.indexOf(0)!==-1)A=[ge.indexOf(0)];else if(ye!==P){for(L=S.decodePixels(),R=new Uint8Array(L.length),W=0,P=L.length;W<P;W++)R[W]=ge[L[W]];K=t(R,S.width,1)}}var b=(function(F){var C;switch(F){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 fe===this.decode.FLATE_DECODE&&(Q="/Predictor "+b+" "),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:d,filter:fe,decodeParameters:Q,transparency:A,palette:M,sMask:K,predictor:b,width:S.width,height:S.height,bitsPerComponent:_,colorSpace:y}}}})(ut.API),(function(e){e.processGIF89A=function(r,t,n,i){var a=new op(r),s=a.width,o=a.height,f=[];a.decodeAndBlitFrameRGBA(0,f);var c={data:f,width:s,height:o},u=new df(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){tr.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 df(100).encode(f,100);return e.processJPEG.call(this,c,t,n,i)}})(ut.API),iu.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(r,t,n,i){var a=new iu(r),s=a.width,o=a.height,f={data:a.getData(),width:s,height:o},c=new df(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],d=n[c+3];a[o++]=u,a[o++]=p,a[o++]=g,s[f++]=d}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,B0=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,d=e.length,w=0,v=o[0]||f,y=[];for(t=0;t<d;t++)n=e.charCodeAt(t),typeof i.metadata.widthOfString=="function"?y.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/a)||0)/1e3):(g=p&&Ht(c[n])==="object"&&!isNaN(parseInt(c[n][w],10))?c[n][w]/u:0,y.push((o[n]||v)/f+g)),w=n;return y},eu=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:B0.apply(this,arguments).reduce((function(a,s){return a+s}),0)},tu=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},ru=function(e,r,t){t||(t={});var n,i,a,s,o,f,c,u=[],p=[u],g=t.textIndent||0,d=0,w=0,v=e.split(" "),y=B0.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=eu.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+d+(w=(i=B0.apply(this,[n,t])).reduce((function(k,M){return k+M}),0))>r||A){if(w>r){for(o=tu.apply(this,[n,i,r-(g+d),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,d=y}else u.push(n),g+=d+w,d=y}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(ru.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,d,w,v,y=["{"];for(var _ in p){if(g=p[_],isNaN(parseInt(_,10))?d="'"+_+"'":(_=parseInt(_,10),d=(d=a(_).slice(2)).slice(0,-1)+n[d.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(Ht(g)!=="object")throw new Error("Don't know what to do with value type "+Ht(g)+".");w=s(g)}y.push(d+w)}return y.push("}"),y.join("")},o=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,d,w,v,y={},_=1,S=y,A=[],k="",M="",K=p.length-1,L=1;L<K;L+=1)(v=p[L])=="'"?g?(w=g.join(""),g=void 0):g=[]:g?g.push(v):v=="{"?(A.push([S,w]),S={},w=void 0):v=="}"?((d=A.pop())[0][d[1]]=S,w=void 0,S=d[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 y},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,d=u.Unicode[g.postScriptName];d&&(g.metadata.Unicode={},g.metadata.Unicode.widths=d.widths,g.metadata.Unicode.kerning=d.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(_o(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-DBu5ruo0.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 tr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(s))throw tr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=a,u.height=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},d=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(){d.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 y,_=!1;for(y=0;y<w.length;y+=1)w[y]===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 d=o.length;for(p=0;p<d;p+=1)t[o[p]].value=t[o[p]].defaultValue,t[o[p]].explicitSet=!1}if(Ht(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(d,w){return d-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),d="",w=0;w<g.length;w++)d+=String.fromCharCode(g[w]);var v=c();u({data:d,addLength1:!0,objectId:v}),f("endobj");var y=c();u({data:n(o.metadata.toUnicode),addLength1:!0,objectId:y}),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 "+y+" 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="",d=0;d<p.length;d++)g+=String.fromCharCode(p[d]);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 y=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 "+y+" 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,d=p.activeFontKey,w=p.fonts,v=d,y="",_=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=d,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")?y+=S[_]:y+="";var k="";return parseInt(v.slice(1))<14||A==="WinAnsiEncoding"?k=g(y,v).split("").map((function(M){return M.charCodeAt(0).toString(16)})).join(""):A==="Identity-H"&&(k=t(y,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]],d=[[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},y=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),S=!1,A=0;this.__bidiEngine__={};var k=function(E){var T=E.charCodeAt(),W=T>>8,X=v[W];return X!==void 0?p[256*X+(255&T)]:W===252||W===253?"AL":_.test(W)?"L":W===8?"R":"N"},M=function(E){for(var T,W=0;W<E.length;W++){if((T=k(E.charAt(W)))==="L")return!1;if(T==="R")return!0}return!1},K=function(E,T,W,X){var fe,Q,J,oe,ne=T[X];switch(ne){case"L":case"R":S=!1;break;case"N":case"AN":break;case"EN":S&&(ne="AN");break;case"AL":S=!0,ne="R";break;case"WS":ne="N";break;case"CS":X<1||X+1>=T.length||(fe=W[X-1])!=="EN"&&fe!=="AN"||(Q=T[X+1])!=="EN"&&Q!=="AN"?ne="N":S&&(Q="AN"),ne=Q===fe?Q:"N";break;case"ES":ne=(fe=X>0?W[X-1]:"B")==="EN"&&X+1<T.length&&T[X+1]==="EN"?"EN":"N";break;case"ET":if(X>0&&W[X-1]==="EN"){ne="EN";break}if(S){ne="N";break}for(J=X+1,oe=T.length;J<oe&&T[J]==="ET";)J++;ne=J<oe&&T[J]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(oe=T.length,J=X+1;J<oe&&T[J]==="NSM";)J++;if(J<oe){var ge=E[X],ye=ge>=1425&&ge<=2303||ge===64286;if(fe=T[J],ye&&(fe==="R"||fe==="AL")){ne="R";break}}}ne=X<1||(fe=T[X-1])==="B"?"N":W[X-1];break;case"B":S=!1,i=!0,ne=A;break;case"S":a=!0,ne="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"BN":ne="N"}return ne},L=function(E,T,W){var X=E.split("");return W&&P(X,W,{hiLevel:A}),X.reverse(),T&&T.reverse(),X.join("")},P=function(E,T,W){var X,fe,Q,J,oe,ne=-1,ge=E.length,ye=0,b=[],F=A?d:g,C=[];for(S=!1,i=!1,a=!1,fe=0;fe<ge;fe++)C[fe]=k(E[fe]);for(Q=0;Q<ge;Q++){if(oe=ye,b[Q]=K(E,C,b,Q),X=240&(ye=F[oe][w[b[Q]]]),ye&=15,T[Q]=J=F[ye][5],X>0)if(X===16){for(fe=ne;fe<Q;fe++)T[fe]=1;ne=-1}else ne=-1;if(F[ye][6])ne===-1&&(ne=Q);else if(ne>-1){for(fe=ne;fe<Q;fe++)T[fe]=J;ne=-1}C[Q]==="B"&&(T[Q]=0),W.hiLevel|=J}a&&(function(I,H,le){for(var ce=0;ce<le;ce++)if(I[ce]==="S"){H[ce]=A;for(var ue=ce-1;ue>=0&&I[ue]==="WS";ue--)H[ue]=A}})(C,T,ge)},R=function(E,T,W,X,fe){if(!(fe.hiLevel<E)){if(E===1&&A===1&&!i)return T.reverse(),void(W&&W.reverse());for(var Q,J,oe,ne,ge=T.length,ye=0;ye<ge;){if(X[ye]>=E){for(oe=ye+1;oe<ge&&X[oe]>=E;)oe++;for(ne=ye,J=oe-1;ne<J;ne++,J--)Q=T[ne],T[ne]=T[J],T[J]=Q,W&&(Q=W[ne],W[ne]=W[J],W[J]=Q);ye=oe}ye++}}},G=function(E,T,W){var X=E.split(""),fe={hiLevel:A};return W||(W=[]),P(X,W,fe),(function(Q,J,oe){if(oe.hiLevel!==0&&u)for(var ne,ge=0;ge<Q.length;ge++)J[ge]===1&&(ne=y.indexOf(Q[ge]))>=0&&(Q[ge]=y[ne+1])})(X,W,fe),R(2,X,T,W,fe),R(1,X,T,W,fe),X.join("")};return this.__bidiEngine__.doBidiReorder=function(E,T,W){if((function(fe,Q){if(Q)for(var J=0;J<fe.length;J++)Q[J]=J;o===void 0&&(o=M(fe)),c===void 0&&(c=M(fe))})(E,T),s||!f||c)if(s&&f&&o^c)A=o?1:0,E=L(E,T,W);else if(!s&&f&&c)A=o?1:0,E=G(E,T,W),E=L(E,T);else if(!s||o||f||c){if(s&&!f&&o^c)E=L(E,T),o?(A=0,E=G(E,T,W)):(A=1,E=G(E,T,W),E=L(E,T));else if(s&&o&&!f&&c)A=1,E=G(E,T,W),E=L(E,T);else if(!s&&!f&&o^c){var X=u;o?(A=1,E=G(E,T,W),A=0,u=!1,E=G(E,T,W),u=X):(A=0,E=G(E,T,W),E=L(E,T),A=1,u=!1,E=G(E,T,W),u=X,E=L(E,T))}}else A=0,E=G(E,T,W);else A=o?1:0,E=G(E,T,W);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 _p(this),this.registerTTF()}return e.open=function(r){return new e(r)},e.prototype.parse=function(){return this.directory=new lp(this.contents),this.head=new cp(this),this.name=new gp(this),this.cmap=new yh(this),this.toUnicode={},this.hhea=new up(this),this.maxp=new mp(this),this.hmtx=new vp(this),this.post=new dp(this),this.os2=new hp(this),this.loca=new bp(this),this.glyf=new xp(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})(),lp=(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,d,w,v;for(v in d=Object.keys(t).length,f=Math.log(2),p=16*Math.floor(Math.log(d)/f),s=Math.floor(p/f),u=16*d-p,(i=new xa).writeInt(this.scalarType),i.writeShort(d),i.writeShort(p),i.writeShort(s),i.writeShort(u),a=16*d,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=bh.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})(),fp={}.hasOwnProperty,Ei=function(e,r){for(var t in r)fp.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 cp=(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})(),au=(function(){function e(r,t){var n,i,a,s,o,f,c,u,p,g,d,w,v,y,_,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(d=r.readUInt16(),g=d/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(y=a[f],n=S=w=v[f];w<=y?S<=y:S>=y;n=w<=y?++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,d,w,v,y,_,S,A,k,M,K,L,P,R,G,E,T,W,X,fe,Q,J,oe,ne,ge,ye,b,F,C,I,H,le,ce,ue,we,Pe,Re;switch(X=new xa,s=Object.keys(r).sort((function(He,Ke){return He-Ke})),t){case"macroman":for(v=0,y=(function(){var He=[];for(w=0;w<256;++w)He.push(0);return He})(),S={0:0},a={},fe=0,ne=s.length;fe<ne;fe++)S[ue=r[i=s[fe]]]==null&&(S[ue]=++v),a[i]={old:r[i],new:S[r[i]]},y[i]=S[r[i]];return X.writeUInt16(1),X.writeUInt16(0),X.writeUInt32(12),X.writeUInt16(0),X.writeUInt16(262),X.writeUInt16(0),X.write(y),{charMap:a,subtable:X.data,maxGlyphID:v+1};case"unicode":for(T=[],p=[],A=0,S={},n={},_=c=null,Q=0,ge=s.length;Q<ge;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),G=2*(R=T.length),P=2*Math.pow(Math.log(R)/Math.LN2,2),g=Math.log(P/2)/Math.LN2,L=2*R-P,f=[],K=[],d=[],w=J=0,ye=T.length;J<ye;w=++J){if(E=T[w],u=p[w],E===65535){f.push(0),K.push(0);break}if(E-(W=n[E].new)>=32768)for(f.push(0),K.push(2*(d.length+R-w)),i=oe=E;E<=u?oe<=u:oe>=u;i=E<=u?++oe:--oe)d.push(n[i].new);else f.push(W-E),K.push(0)}for(X.writeUInt16(3),X.writeUInt16(1),X.writeUInt32(12),X.writeUInt16(4),X.writeUInt16(16+8*R+2*d.length),X.writeUInt16(0),X.writeUInt16(G),X.writeUInt16(P),X.writeUInt16(g),X.writeUInt16(L),le=0,b=p.length;le<b;le++)i=p[le],X.writeUInt16(i);for(X.writeUInt16(0),ce=0,F=T.length;ce<F;ce++)i=T[ce],X.writeUInt16(i);for(we=0,C=f.length;we<C;we++)o=f[we],X.writeUInt16(o);for(Pe=0,I=K.length;Pe<I;Pe++)k=K[Pe],X.writeUInt16(k);for(Re=0,H=d.length;Re<H;Re++)v=d[Re],X.writeUInt16(v);return{charMap:n,subtable:X.data,maxGlyphID:A+1}}},e})(),yh=(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 au(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=au.encode(t,n),(a=new xa).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},r})(),up=(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})(),hp=(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})(),dp=(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})(),pp=function(e,r){this.raw=e,this.length=e.length,this.platformID=r.platformID,this.encodingID=r.encodingID,this.languageID=r.languageID},gp=(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,d;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 pp(u,a),c[d=a.nameID]==null&&(c[d]=[]),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})(),mp=(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})(),vp=(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,d;for(d=[],u=0,p=(g=this.metrics).length;u<p;u++)s=g[u],d.push(s.advance);return d}).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})(),bh=[].slice,xp=(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 yp(f,u,g,c,p):new wp(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})(),wp=(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})(),yp=(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(bh.call(this.raw.data)),r=0,n=this.glyphIDs.length;r<n;++r)t.pos=this.glyphOffsets[r];return t.data},e})(),bp=(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})(),_p=(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,d,w,v,y,_;for(i in n=yh.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(r),d={0:0},_=n.charMap)d[(f=_[i]).old]=f.new;for(w in g=n.maxGlyphID,s)w in d||(d[w]=g++);return u=(function(S){var A,k;for(A in k={},S)k[S[A]]=A;return k})(d),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,d),c=this.font.loca.encode(a.offsets,v),y={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&&(y["OS/2"]=this.font.os2.raw()),this.font.directory.encode(y)},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 Sp=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:ep,AcroFormAppearance:st,AcroFormButton:Or,AcroFormCheckBox:To,AcroFormChoiceField:Ra,AcroFormComboBox:Ba,AcroFormEditBox:So,AcroFormListBox:Ma,AcroFormPasswordField:No,AcroFormPushButton:Ao,AcroFormRadioButton:ja,AcroFormTextField:ma,GState:Oo,ShadingPattern:ha,TilingPattern:Da,default:ut,jsPDF:ut},Symbol.toStringTag,{value:"Module"}));var _h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ap(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tp(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 X0={exports:{}};const Np=Tp(Sp);/*!
|
|
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 su=X0.exports,ou;function Ep(){return ou||(ou=1,(function(e,r){(function(n,i){e.exports=i((function(){try{return Np}catch{}})())})(typeof globalThis<"u"?globalThis:typeof su<"u"?su:typeof window<"u"?window:typeof self<"u"?self:_h,function(t){return(function(){var n={172:(function(o,f){var c=this&&this.__extends||(function(){var g=function(d,w){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(v[_]=y[_])},g(d,w)};return function(d,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");g(d,w);function v(){this.constructor=d}d.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(d,w,v){this.table=w,this.pageNumber=w.pageNumber,this.pageCount=this.pageNumber,this.settings=w.settings,this.cursor=v,this.doc=d.getDocument()}return g})();f.HookData=u;var p=(function(g){c(d,g);function d(w,v,y,_,S,A){var k=g.call(this,w,v,A)||this;return k.cell=y,k.row=_,k.column=S,k.section=_.section,k}return d})(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),d=c(776),w=c(664),v=c(972);function y(_){_.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,d.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),L=K.head,P=K.body,R=((k=L[0])===null||k===void 0?void 0:k.map(function(G){return G.content}))||[];return{columns:R,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=y}),136:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0});function c(u,p,g,d,w){d=d||{};var v=1.15,y=w.internal.scaleFactor,_=w.internal.getFontSize()/y,S=w.getLineHeightFactor?w.getLineHeightFactor():v,A=_*S,k=/\r\n|\r|\n/g,M="",K=1;if((d.valign==="middle"||d.valign==="bottom"||d.halign==="center"||d.halign==="right")&&(M=typeof u=="string"?u.split(k):u,K=M.length||1),g+=_*(2-v),d.valign==="middle"?g-=K/2*A:d.valign==="bottom"&&(g-=K*A),d.halign==="center"||d.halign==="right"){var L=_;if(d.halign==="center"&&(L*=.5),M&&K>=1){for(var P=0;P<M.length;P++)w.text(M[P],p-w.getStringUnitWidth(M[P])*L,g),g+=A;return w}p-=w.getStringUnitWidth(u)*L}return d.halign==="justify"?w.text(u,p,g,{maxWidth:d.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,y){y.applyStyles(v,!0);var _=Array.isArray(w)?w:[w],S=_.map(function(A){return y.getTextWidth(A)}).reduce(function(A,k){return Math.max(A,k)},0);return S}f.getStringWidth=c;function u(w,v,y,_){var S=v.settings.tableLineWidth,A=v.settings.tableLineColor;w.applyStyles({lineWidth:S,lineColor:A});var k=p(S,!1);k&&w.rect(y.x,y.y,v.getWidth(w.pageSize().width),_.y-y.y,k)}f.addTableBorder=u;function p(w,v){var y=w>0,_=v||v===0;return y&&_?"DF":y?"S":_?"F":null}f.getFillStyle=p;function g(w,v){var y,_,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:(y=w.left)!==null&&y!==void 0?y: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 d(w,v){var y=g(v.settings.margin,0);return w.pageSize().width-(y.left+y.right)}f.getPageAvailableWidth=d}),796:(function(o,f){var c=this&&this.__extends||(function(){var d=function(w,v){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&(y[S]=_[S])},d(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");d(w,v);function y(){this.constructor=w}w.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}})();Object.defineProperty(f,"__esModule",{value:!0}),f.getTheme=f.defaultStyles=f.HtmlRowInput=void 0;var u=(function(d){c(w,d);function w(v){var y=d.call(this)||this;return y._element=v,y}return w})(Array);f.HtmlRowInput=u;function p(d){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/d,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}f.defaultStyles=p;function g(d){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[d]}f.getTheme=g}),903:(function(o,f,c){Object.defineProperty(f,"__esModule",{value:!0}),f.parseCss=void 0;var u=c(420);function p(y,_,S,A,k){var M={},K=1.3333333333333333,L=d(_,function(ne){return k.getComputedStyle(ne).backgroundColor});L!=null&&(M.fillColor=L);var P=d(_,function(ne){return k.getComputedStyle(ne).color});P!=null&&(M.textColor=P);var R=v(A,S);R&&(M.cellPadding=R);var G="borderTopColor",E=K*S,T=A.borderTopWidth;if(A.borderBottomWidth===T&&A.borderRightWidth===T&&A.borderLeftWidth===T){var W=(parseFloat(T)||0)/E;W&&(M.lineWidth=W)}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?G="borderRightColor":M.lineWidth.bottom?G="borderBottomColor":M.lineWidth.left&&(G="borderLeftColor"));var X=d(_,function(ne){return k.getComputedStyle(ne)[G]});X!=null&&(M.lineColor=X);var fe=["left","right","center","justify"];fe.indexOf(A.textAlign)!==-1&&(M.halign=A.textAlign),fe=["middle","bottom","top"],fe.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 y.indexOf(oe)!==-1&&(M.font=oe),M}f.parseCss=p;function g(y){var _="";return(y.fontWeight==="bold"||y.fontWeight==="bolder"||parseInt(y.fontWeight)>=700)&&(_="bold"),(y.fontStyle==="italic"||y.fontStyle==="oblique")&&(_+="italic"),_}function d(y,_){var S=w(y,_);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(y,_){var S=_(y);return S==="rgba(0, 0, 0, 0)"||S==="transparent"||S==="initial"||S==="inherit"?y.parentElement==null?null:w(y.parentElement,_):S}function v(y,_){var S=[y.paddingTop,y.paddingRight,y.paddingBottom,y.paddingLeft],A=96/(72/_),k=(parseInt(y.lineHeight)-parseInt(y.fontSize))/_/2,M=S.map(function(L){return parseInt(L||"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,d){d===void 0&&(d=null),d?d.__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,d){var w,v,y;d===void 0&&(d=!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),!d){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&&(y=this.jsPDFDocument).setDrawColor.apply(y,M),typeof g.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(g.lineWidth)}},p.prototype.splitTextToSize=function(g,d,w){return this.jsPDFDocument.splitTextToSize(g,d,w)},p.prototype.rect=function(g,d,w,v,y){return this.jsPDFDocument.rect(g,d,w,v,y)},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,y,_,S,A){var k,M;S===void 0&&(S=!1),A===void 0&&(A=!1);var K;typeof y=="string"?K=_.document.querySelector(y):K=y;var L=Object.keys(v.getFontList()),P=v.scaleFactor(),R=[],G=[],E=[];if(!K)return console.error("Html table could not be found with input: ",y),{head:R,body:G,foot:E};for(var T=0;T<K.rows.length;T++){var W=K.rows[T],X=(M=(k=W==null?void 0:W.parentElement)===null||k===void 0?void 0:k.tagName)===null||M===void 0?void 0:M.toLowerCase(),fe=d(L,P,_,W,S,A);fe&&(X==="thead"?R.push(fe):X==="tfoot"?E.push(fe):G.push(fe))}return{head:R,body:G,foot:E}}f.parseHtml=g;function d(v,y,_,S,A,k){for(var M=new p.HtmlRowInput(S),K=0;K<S.cells.length;K++){var L=S.cells[K],P=_.getComputedStyle(L);if(A||P.display!=="none"){var R=void 0;k&&(R=(0,u.parseCss)(v,L,y,P,_)),M.push({rowSpan:L.rowSpan,colSpan:L.colSpan,styles:R,_element:L,content:w(L)})}}var G=_.getComputedStyle(S);if(M.length>0&&(A||G.display!=="none"))return M}function w(v){var y=v.cloneNode(!0);return y.innerHTML=y.innerHTML.replace(/\n/g,"").replace(/ +/g," "),y.innerHTML=y.innerHTML.split(/<br.*?>/).map(function(_){return _.trim()}).join(`
|
|
253
|
+
`),y.innerText||y.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),d=c(744),w=c(792);function v(K,L){var P=new d.DocHandler(K),R=P.getDocumentOptions(),G=P.getGlobalOptions();(0,w.default)(P,G,R,L);var E=(0,p.assign)({},G,R,L),T;typeof window<"u"&&(T=window);var W=y(G,R,L),X=_(G,R,L),fe=S(P,E),Q=k(P,E,T);return{id:L.tableId,content:Q,hooks:X,styles:W,settings:fe}}f.parseInput=v;function y(K,L,P){for(var R={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},G=function(X){if(X==="columnStyles"){var fe=K[X],Q=L[X],J=P[X];R.columnStyles=(0,p.assign)({},fe,Q,J)}else{var oe=[K,L,P],ne=oe.map(function(ge){return ge[X]||{}});R[X]=(0,p.assign)({},ne[0],ne[1],ne[2])}},E=0,T=Object.keys(R);E<T.length;E++){var W=T[E];G(W)}return R}function _(K,L,P){for(var R=[K,L,P],G={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},E=0,T=R;E<T.length;E++){var W=T[E];W.didParseCell&&G.didParseCell.push(W.didParseCell),W.willDrawCell&&G.willDrawCell.push(W.willDrawCell),W.didDrawCell&&G.didDrawCell.push(W.didDrawCell),W.willDrawPage&&G.willDrawPage.push(W.willDrawPage),W.didDrawPage&&G.didDrawPage.push(W.didDrawPage)}return G}function S(K,L){var P,R,G,E,T,W,X,fe,Q,J,oe,ne,ge=(0,g.parseSpacing)(L.margin,40/K.scaleFactor()),ye=(P=A(K,L.startY))!==null&&P!==void 0?P:ge.top,b;L.showFoot===!0?b="everyPage":L.showFoot===!1?b="never":b=(R=L.showFoot)!==null&&R!==void 0?R:"everyPage";var F;L.showHead===!0?F="everyPage":L.showHead===!1?F="never":F=(G=L.showHead)!==null&&G!==void 0?G:"everyPage";var C=(E=L.useCss)!==null&&E!==void 0?E:!1,I=L.theme||(C?"plain":"striped"),H=!!L.horizontalPageBreak,le=(T=L.horizontalPageBreakRepeat)!==null&&T!==void 0?T:null;return{includeHiddenHtml:(W=L.includeHiddenHtml)!==null&&W!==void 0?W:!1,useCss:C,theme:I,startY:ye,margin:ge,pageBreak:(X=L.pageBreak)!==null&&X!==void 0?X:"auto",rowPageBreak:(fe=L.rowPageBreak)!==null&&fe!==void 0?fe:"auto",tableWidth:(Q=L.tableWidth)!==null&&Q!==void 0?Q:"auto",showHead:F,showFoot:b,tableLineWidth:(J=L.tableLineWidth)!==null&&J!==void 0?J:0,tableLineColor:(oe=L.tableLineColor)!==null&&oe!==void 0?oe:200,horizontalPageBreak:H,horizontalPageBreakRepeat:le,horizontalPageBreakBehaviour:(ne=L.horizontalPageBreakBehaviour)!==null&&ne!==void 0?ne:"afterAllRows"}}function A(K,L){var P=K.getLastAutoTable(),R=K.scaleFactor(),G=K.pageNumber(),E=!1;if(P&&P.startPageNumber){var T=P.startPageNumber+P.pageNumber-1;E=T===G}return typeof L=="number"?L:(L==null||L===!1)&&E&&(P==null?void 0:P.finalY)!=null?P.finalY+20/R:null}function k(K,L,P){var R=L.head||[],G=L.body||[],E=L.foot||[];if(L.html){var T=L.includeHiddenHtml;if(P){var W=(0,u.parseHtml)(K,L.html,P,T,L.useCss)||{};R=W.head||R,G=W.body||R,E=W.foot||R}else console.error("Cannot parse html in non browser environment")}var X=L.columns||M(R,G,E);return{columns:X,head:R,body:G,foot:E}}function M(K,L,P){var R=K[0]||L[0]||P[0]||[],G=[];return Object.keys(R).filter(function(E){return E!=="_element"}).forEach(function(E){var T=1,W;Array.isArray(R)?W=R[parseInt(E)]:W=R[E],typeof W=="object"&&!Array.isArray(W)&&(T=(W==null?void 0:W.colSpan)||1);for(var X=0;X<T;X++){var fe=void 0;Array.isArray(R)?fe=G.length:fe=E+(X>0?"_".concat(X):"");var Q={dataKey:fe};G.push(Q)}}),G}}),792:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0});function c(p,g,d,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],W=E[1];A[W]&&(console.error("Use of deprecated option ".concat(W,". Use ").concat(T," instead")),A[T]=A[W])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(E){var T=typeof E=="string"?E:E[0],W=typeof E=="string"?E:E[1];typeof A[T]<"u"&&(typeof A.styles[W]>"u"&&(A.styles[W]=A[T]),console.error("Use of deprecated option: "+T+", use the style "+W+" instead."))});for(var k=0,M=["styles","bodyStyles","headStyles","footStyles"];k<M.length;k++){var K=M[k];u(A[K]||{})}for(var L=A.columnStyles||{},P=0,R=Object.keys(L);P<R.length;P++){var G=R[P];u(L[G]||{})}},y=0,_=[g,d,w];y<_.length;y++){var S=_[y];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),d=(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,L){for(var P=0,R=A;P<R.length;P++){var G=R[P],E=new p.CellHookData(S,this,k,M,K,L),T=G(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=d;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 L=k.cells[K.index];if(!L)return 0;var P=A.getLineHeight(L.styles.fontSize),R=L.padding("vertical"),G=R+P;return G>M?G: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 L=S;S!=null&&typeof S=="object"&&!Array.isArray(S)?(this.rowSpan=S.rowSpan||1,this.colSpan=S.colSpan||1,L=(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=L!=null?""+L:"",R=/\r\n|\r|\n/g;this.text=P.split(R)}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 y=(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],L=K.cells[this.index];L&&typeof L.styles.cellWidth=="number"&&(A=Math.max(A,L.styles.cellWidth))}return A},_})();f.Column=y}),356:(function(o,f){Object.defineProperty(f,"__esModule",{value:!0}),f.assign=void 0;function c(u,p,g,d,w){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(u),y=1;y<arguments.length;y++){var _=arguments[y];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),d=c(796),w=c(356);function v(K,L){var P=new u.DocHandler(K),R=y(L,P.scaleFactor()),G=new p.Table(L,R);return(0,g.calculateWidths)(P,G),P.applyStyles(P.userStyles),G}f.createTable=v;function y(K,L){var P=K.content,R=k(P.columns);if(P.head.length===0){var G=S(R,"head");G&&P.head.push(G)}if(P.foot.length===0){var G=S(R,"foot");G&&P.foot.push(G)}var E=K.settings.theme,T=K.styles;return{columns:R,head:_("head",P.head,R,T,E,L),body:_("body",P.body,R,T,E,L),foot:_("foot",P.foot,R,T,E,L)}}function _(K,L,P,R,G,E){var T={},W=L.map(function(X,fe){for(var Q=0,J={},oe=0,ne=0,ge=0,ye=P;ge<ye.length;ge++){var b=ye[ge];if(T[b.index]==null||T[b.index].left===0)if(ne===0){var F=void 0;Array.isArray(X)?F=X[b.index-oe-Q]:F=X[b.dataKey];var C={};typeof F=="object"&&!Array.isArray(F)&&(C=(F==null?void 0:F.styles)||{});var I=M(K,b,fe,G,R,E,C),H=new p.Cell(F,I,K);J[b.dataKey]=H,J[b.index]=H,ne=H.colSpan-1,T[b.index]={left:H.rowSpan-1,times:ne}}else ne--,oe++;else T[b.index].left--,ne=T[b.index].times,Q++}return new p.Row(X,fe,K,J)});return W}function S(K,L){var P={};return K.forEach(function(R){if(R.raw!=null){var G=A(L,R.raw);G!=null&&(P[R.dataKey]=G)}}),Object.keys(P).length>0?P:null}function A(K,L){if(K==="head"){if(typeof L=="object")return L.header||L.title||null;if(typeof L=="string"||typeof L=="number")return L}else if(K==="foot"&&typeof L=="object")return L.footer;return null}function k(K){return K.map(function(L,P){var R,G,E;return typeof L=="object"?E=(G=(R=L.dataKey)!==null&&R!==void 0?R:L.key)!==null&&G!==void 0?G:P:E=P,new p.Column(E,L,P)})}function M(K,L,P,R,G,E,T){var W=(0,d.getTheme)(R),X;K==="head"?X=G.headStyles:K==="body"?X=G.bodyStyles:K==="foot"&&(X=G.footStyles);var fe=(0,w.assign)({},W.table,W[K],G.styles,X),Q=G.columnStyles[L.dataKey]||G.columnStyles[L.index]||{},J=K==="body"?Q:{},oe=K==="body"&&P%2===0?(0,w.assign)({},W.alternateRow,G.alternateRowStyles):{},ne=(0,d.defaultStyles)(E),ge=(0,w.assign)({},ne,fe,oe,J);return(0,w.assign)(ge,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),d=c(356),w=c(136),v=c(224);function y(Q,J){var oe=J.settings,ne=oe.startY,ge=oe.margin,ye={x:ge.left,y:ne},b=J.getHeadHeight(J.columns)+J.getFootHeight(J.columns),F=ne+ge.bottom+b;if(oe.pageBreak==="avoid"){var C=J.body,I=C.reduce(function(ce,ue){return ce+ue.height},0);F+=I}var H=new g.DocHandler(Q);(oe.pageBreak==="always"||oe.startY!=null&&F>H.pageSize().height)&&(fe(H),ye.y=ge.top),J.callWillDrawPageHooks(H,ye);var le=(0,d.assign)({},ye);J.startPageNumber=H.pageNumber(),oe.horizontalPageBreak?_(H,J,le,ye):(H.applyStyles(H.userStyles),(oe.showHead==="firstPage"||oe.showHead==="everyPage")&&J.head.forEach(function(ce){return G(H,J,ce,ye,J.columns)}),H.applyStyles(H.userStyles),J.body.forEach(function(ce,ue){var we=ue===J.body.length-1;R(H,J,ce,we,le,ye,J.columns)}),H.applyStyles(H.userStyles),(oe.showFoot==="lastPage"||oe.showFoot==="everyPage")&&J.foot.forEach(function(ce){return G(H,J,ce,ye,J.columns)})),(0,u.addTableBorder)(H,J,le,ye),J.callEndPageHooks(H,ye),J.finalY=ye.y,Q.lastAutoTable=J,Q.previousAutoTable=J,Q.autoTable&&(Q.autoTable.previous=J),H.applyStyles(H.userStyles)}f.drawTable=y;function _(Q,J,oe,ne){var ge=(0,v.calculateAllColumnsCanFitInPage)(Q,J),ye=J.settings;if(ye.horizontalPageBreakBehaviour==="afterAllRows")ge.forEach(function(I,H){Q.applyStyles(Q.userStyles),H>0?X(Q,J,oe,ne,I.columns,!0):S(Q,J,ne,I.columns),A(Q,J,oe,ne,I.columns),M(Q,J,ne,I.columns)});else for(var b=-1,F=ge[0],C=function(){var I=b;if(F){Q.applyStyles(Q.userStyles);var H=F.columns;b>=0?X(Q,J,oe,ne,H,!0):S(Q,J,ne,H),I=k(Q,J,b+1,ne,H),M(Q,J,ne,H)}var le=I-b;ge.slice(1).forEach(function(ce){Q.applyStyles(Q.userStyles),X(Q,J,oe,ne,ce.columns,!0),k(Q,J,b+1,ne,ce.columns,le),M(Q,J,ne,ce.columns)}),b=I};b<J.body.length-1;)C()}function S(Q,J,oe,ne){var ge=J.settings;Q.applyStyles(Q.userStyles),(ge.showHead==="firstPage"||ge.showHead==="everyPage")&&J.head.forEach(function(ye){return G(Q,J,ye,oe,ne)})}function A(Q,J,oe,ne,ge){Q.applyStyles(Q.userStyles),J.body.forEach(function(ye,b){var F=b===J.body.length-1;R(Q,J,ye,F,oe,ne,ge)})}function k(Q,J,oe,ne,ge,ye){Q.applyStyles(Q.userStyles),ye=ye??J.body.length;var b=Math.min(oe+ye,J.body.length),F=-1;return J.body.slice(oe,b).forEach(function(C,I){var H=oe+I===J.body.length-1,le=W(Q,J,H,ne);C.canEntireRowFit(le,ge)&&(G(Q,J,C,ne,ge),F=oe+I)}),F}function M(Q,J,oe,ne){var ge=J.settings;Q.applyStyles(Q.userStyles),(ge.showFoot==="lastPage"||ge.showFoot==="everyPage")&&J.foot.forEach(function(ye){return G(Q,J,ye,oe,ne)})}function K(Q,J,oe){var ne=oe.getLineHeight(Q.styles.fontSize),ge=Q.padding("vertical"),ye=Math.floor((J-ge)/ne);return Math.max(0,ye)}function L(Q,J,oe,ne){var ge={};Q.spansMultiplePages=!0,Q.height=0;for(var ye=0,b=0,F=oe.columns;b<F.length;b++){var C=F[b],I=Q.cells[C.index];if(I){Array.isArray(I.text)||(I.text=[I.text]);var H=new p.Cell(I.raw,I.styles,I.section);H=(0,d.assign)(H,I),H.text=[];var le=K(I,J,ne);I.text.length>le&&(H.text=I.text.splice(le,I.text.length));var ce=ne.scaleFactor(),ue=ne.getLineHeightFactor();I.contentHeight=I.getContentHeight(ce,ue),I.contentHeight>=J&&(I.contentHeight=J,H.styles.minCellHeight-=J),I.contentHeight>Q.height&&(Q.height=I.contentHeight),H.contentHeight=H.getContentHeight(ce,ue),H.contentHeight>ye&&(ye=H.contentHeight),ge[C.index]=H}}var we=new p.Row(Q.raw,-1,Q.section,ge,!0);we.height=ye;for(var Pe=0,Re=oe.columns;Pe<Re.length;Pe++){var C=Re[Pe],H=we.cells[C.index];H&&(H.height=we.height);var I=Q.cells[C.index];I&&(I.height=Q.height)}return we}function P(Q,J,oe,ne){var ge=Q.pageSize().height,ye=ne.settings.margin,b=ye.top+ye.bottom,F=ge-b;J.section==="body"&&(F-=ne.getHeadHeight(ne.columns)+ne.getFootHeight(ne.columns));var C=J.getMinimumRowHeight(ne.columns,Q),I=C<oe;if(C>F)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(!I)return!1;var H=J.hasRowSpan(ne.columns),le=J.getMaxCellHeight(ne.columns)>F;return le?(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||ne.settings.rowPageBreak==="avoid")}function R(Q,J,oe,ne,ge,ye,b){var F=W(Q,J,ne,ye);if(oe.canEntireRowFit(F,b))G(Q,J,oe,ye,b);else if(P(Q,oe,F,J)){var C=L(oe,F,J,Q);G(Q,J,oe,ye,b),X(Q,J,ge,ye,b),R(Q,J,C,ne,ge,ye,b)}else X(Q,J,ge,ye,b),R(Q,J,oe,ne,ge,ye,b)}function G(Q,J,oe,ne,ge){ne.x=J.settings.margin.left;for(var ye=0,b=ge;ye<b.length;ye++){var F=b[ye],C=oe.cells[F.index];if(!C){ne.x+=F.width;continue}Q.applyStyles(C.styles),C.x=ne.x,C.y=ne.y;var I=J.callCellHooks(Q,J.hooks.willDrawCell,C,oe,F,ne);if(I===!1){ne.x+=F.width;continue}E(Q,C,ne);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,F,ne),ne.x+=F.width}ne.y+=oe.height}function E(Q,J,oe){var ne=J.styles;if(Q.getDocument().setFillColor(Q.getDocument().getFillColor()),typeof ne.lineWidth=="number"){var ge=(0,u.getFillStyle)(ne.lineWidth,ne.fillColor);ge&&Q.rect(J.x,oe.y,J.width,J.height,ge)}else typeof ne.lineWidth=="object"&&(ne.fillColor&&Q.rect(J.x,oe.y,J.width,J.height,"F"),T(Q,J,oe,ne.lineWidth))}function T(Q,J,oe,ne){var ge,ye,b,F;ne.top&&(ge=oe.x,ye=oe.y,b=oe.x+J.width,F=oe.y,ne.right&&(b+=.5*ne.right),ne.left&&(ge-=.5*ne.left),C(ne.top,ge,ye,b,F)),ne.bottom&&(ge=oe.x,ye=oe.y+J.height,b=oe.x+J.width,F=oe.y+J.height,ne.right&&(b+=.5*ne.right),ne.left&&(ge-=.5*ne.left),C(ne.bottom,ge,ye,b,F)),ne.left&&(ge=oe.x,ye=oe.y,b=oe.x,F=oe.y+J.height,ne.top&&(ye-=.5*ne.top),ne.bottom&&(F+=.5*ne.bottom),C(ne.left,ge,ye,b,F)),ne.right&&(ge=oe.x+J.width,ye=oe.y,b=oe.x+J.width,F=oe.y+J.height,ne.top&&(ye-=.5*ne.top),ne.bottom&&(F+=.5*ne.bottom),C(ne.right,ge,ye,b,F));function C(I,H,le,ce,ue){Q.getDocument().setLineWidth(I),Q.getDocument().line(H,le,ce,ue,"S")}}function W(Q,J,oe,ne){var ge=J.settings.margin.bottom,ye=J.settings.showFoot;return(ye==="everyPage"||ye==="lastPage"&&oe)&&(ge+=J.getFootHeight(J.columns)),Q.pageSize().height-ne.y-ge}function X(Q,J,oe,ne,ge,ye){ge===void 0&&(ge=[]),ye===void 0&&(ye=!1),Q.applyStyles(Q.userStyles),J.settings.showFoot==="everyPage"&&!ye&&J.foot.forEach(function(F){return G(Q,J,F,ne,ge)}),J.callEndPageHooks(Q,ne);var b=J.settings.margin;(0,u.addTableBorder)(Q,J,oe,ne),fe(Q),J.pageNumber++,J.pageCount++,ne.x=b.left,ne.y=b.top,oe.y=b.top,J.callWillDrawPageHooks(Q,ne),J.settings.showHead==="everyPage"&&(J.head.forEach(function(F){return G(Q,J,F,ne,ge)}),Q.applyStyles(Q.userStyles))}f.addPage=X;function fe(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(d,w,v){var y;v===void 0&&(v={});var _=(0,u.getPageAvailableWidth)(d,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(R){var G=w.columns.find(function(E){return E.dataKey===R||E.index===R});G&&!S.has(G.index)&&(S.set(G.index,!0),A.push(G.index),k.push(w.columns[G.index]),_-=G.wrappedWidth)});for(var K=!0,L=(y=v==null?void 0:v.start)!==null&&y!==void 0?y:0;L<w.columns.length;){if(S.has(L)){L++;continue}var P=w.columns[L].wrappedWidth;if(K||_>=P)K=!1,A.push(L),k.push(w.columns[L]),_-=P;else break;L++}return{colIndexes:A,columns:k,lastIndex:L-1}}function g(d,w){for(var v=[],y=0;y<w.columns.length;y++){var _=p(d,w,{start:y});_.columns.length&&(v.push(_),y=_.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 R=P.getMaxCustomCellWidth(k);R?P.width=R:(P.width=P.wrappedWidth,M.push(P)),K+=P.width});var L=k.getWidth(A.pageSize().width)-K;L&&(L=d(M,L,function(P){return Math.max(P.minReadableWidth,P.minWidth)})),L&&(L=d(M,L,function(P){return P.minWidth})),L=Math.abs(L),!k.settings.horizontalPageBreak&&L>.1/A.scaleFactor()&&(L=L<1?L:Math.round(L),console.warn("Of the table content, ".concat(L," units width could not fit page"))),v(k),y(k,A),w(k)}f.calculateWidths=p;function g(A,k){var M=A.scaleFactor(),K=k.settings.horizontalPageBreak,L=(0,u.getPageAvailableWidth)(A,k);k.allRows().forEach(function(P){for(var R=0,G=k.columns;R<G.length;R++){var E=G[R],T=P.cells[E.index];if(T){var W=k.hooks.didParseCell;k.callCellHooks(A,W,T,P,E,null);var X=T.padding("horizontal");T.contentWidth=(0,u.getStringWidth)(T.text,T.styles,A)+X;var fe=(0,u.getStringWidth)(T.text.join(" ").split(/[^\S\u00A0]+/),T.styles,A);if(T.minReadableWidth=fe+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>L?(T.minWidth=L,T.wrappedWidth=L):(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 R=0,G=k.columns;R<G.length;R++){var E=G[R],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 W=k.styles.columnStyles[E.dataKey]||k.styles.columnStyles[E.index]||{},X=W.cellWidth||W.minCellWidth;X&&typeof X=="number"&&(E.minWidth=X,E.wrappedWidth=X)}T&&(T.colSpan>1&&!E.minWidth&&(E.minWidth=T.minWidth),T.colSpan>1&&!E.wrappedWidth&&(E.wrappedWidth=T.minWidth))}})}function d(A,k,M){for(var K=k,L=A.reduce(function(Q,J){return Q+J.wrappedWidth},0),P=0;P<A.length;P++){var R=A[P],G=R.wrappedWidth/L,E=K*G,T=R.width+E,W=M(R),X=T<W?W:T;k-=X-R.width,R.width=X}if(k=Math.round(k*1e10)/1e10,k){var fe=A.filter(function(Q){return k<0?Q.width>M(Q):!0});fe.length&&(k=d(fe,k,M))}return k}f.resizeColumns=d;function w(A){for(var k={},M=1,K=A.allRows(),L=0;L<K.length;L++)for(var P=K[L],R=0,G=A.columns;R<G.length;R++){var E=G[R],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 W=P.cells[E.index];if(!W)continue;if(W.height=P.height,W.rowSpan>1){var X=K.length-L,fe=W.rowSpan>X?X:W.rowSpan;k[E.index]={cell:W,left:fe,row:P}}}}}function v(A){for(var k=A.allRows(),M=0;M<k.length;M++)for(var K=k[M],L=null,P=0,R=0,G=0;G<A.columns.length;G++){var E=A.columns[G];if(R-=1,R>1&&A.columns[G+1])P+=E.width,delete K.cells[E.index];else if(L){var T=L;delete K.cells[E.index],L=null,T.width=E.width+P}else{var T=K.cells[E.index];if(!T)continue;if(R=T.colSpan,P=0,T.colSpan>1){L=T,P+=E.width;continue}T.width=E.width+P}}}function y(A,k){for(var M={count:0,height:0},K=0,L=A.allRows();K<L.length;K++){for(var P=L[K],R=0,G=A.columns;R<G.length;R++){var E=G[R],T=P.cells[E.index];if(T){k.applyStyles(T.styles,!0);var W=T.width-T.padding("horizontal");if(T.styles.overflow==="linebreak")T.text=k.splitTextToSize(T.text,W+1/k.scaleFactor(),{fontSize:T.styles.fontSize});else if(T.styles.overflow==="ellipsize")T.text=_(T.text,W,T.styles,k,"...");else if(T.styles.overflow==="hidden")T.text=_(T.text,W,T.styles,k,"");else if(typeof T.styles.overflow=="function"){var X=T.styles.overflow(T.text,W);typeof X=="string"?T.text=[X]:T.text=X}T.contentHeight=T.getContentHeight(k.scaleFactor(),k.getLineHeightFactor());var fe=T.contentHeight/T.rowSpan;T.rowSpan>1&&M.count*M.height<fe*T.rowSpan?M={height:fe,count:T.rowSpan}:M&&M.count>0&&M.height>fe&&(fe=M.height),fe>P.height&&(P.height=fe)}}M.count--}}function _(A,k,M,K,L){return A.map(function(P){return S(P,k,M,K,L)})}f.ellipsize=_;function S(A,k,M,K,L){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+L,M,K)&&!(A.length<=1);)A=A.substring(0,A.length-1);return A.trim()+L}}),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 d=a(172);Object.defineProperty(o,"CellHookData",{enumerable:!0,get:function(){return d.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 y(k,M){var K=(0,c.parseInput)(k,M),L=(0,p.createTable)(k,K);(0,u.drawTable)(k,L)}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=y})(),s})()})})(X0)),X0.exports}Ep();function Lp({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 Fp({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 Cp({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 kp({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 K0={};K0.version="0.18.5";var Sh=1252,Pp=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Ah=function(e){Pp.indexOf(e)!=-1&&(Sh=e)};function Ip(){Ah(1252)}var Do=function(e){Ah(e)};function Op(){Do(1200),Ip()}var j0=function(r){return String.fromCharCode(r)},lu=function(r){return String.fromCharCode(r)},$0,pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ro(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 Ut=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Vi=(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 Ut?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function fu(e){return Ut?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var fi=function(r){return Ut?Vi(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function dl(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 Wo(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 Dp(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Gr=Ut?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:Vi(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 Rp(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)),Gr(r)}var Eo=/\u0000/g,U0=/[\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 qf(e,r){var t=""+e;return t.length>=r?t:pr(" ",r-t.length)+t}function J0(e,r){var t=""+e;return t.length>=r?t:t+pr(" ",r-t.length)}function Mp(e,r){var t=""+Math.round(e);return t.length>=r?t:pr("0",r-t.length)+t}function Bp(e,r){var t=""+e;return t.length>=r?t:pr("0",r-t.length)+t}var cu=Math.pow(2,32);function bs(e,r){if(e>cu||e<-cu)return Mp(e,r);var t=Math.round(e);return Bp(t,r)}function Z0(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 uu=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],pf=[["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 jp(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"秒 "'},hu={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},Up={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 Q0(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 z0(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=Xp(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 Th=new Date(1899,11,31,0,0,0),zp=Th.getTime(),Wp=new Date(1900,2,1,0,0,0);function Nh(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=Wp&&(t+=1440*60*1e3),(t-(zp+(e.getTimezoneOffset()-Th.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Gf(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Hp(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function qp(e){var r=e<0?12:11,t=Gf(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Gp(e){var r=Gf(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Vp(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=qp(e):r===10?t=e.toFixed(10).substr(0,12):t=Gp(e),Gf(Hp(t.toUpperCase()))}function Df(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Vp(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return wa(14,Nh(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function Xp(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function Yp(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 pf[t.m-1][1];case 5:return pf[t.m-1][0];default:return pf[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:f=t.d,c=r.length;break;case 3:return uu[t.q][0];default:return uu[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 Eh=/%/g;function Kp(e,r,t){var n=r.replace(Eh,""),i=r.length-n.length;return zi(e,n,t*Math.pow(10,2*i))+pr("%",i)}function $p(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 Lh(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"-"+Lh(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 Fh=/# (\?+)( ?)\/( ?)(\d+)/;function Jp(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):qf(s,e[1].length)+e[2]+"/"+e[3]+ci(o,e[4].length))}function Zp(e,r,t){return t+(r===0?"":""+r)+pr(" ",e[1].length+2+e[4].length)}var Ch=/^#*0*\.([0#]+)/,kh=/\).*[0#]/,Ph=/\(###\) ###\\?-####/;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 du(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function pu(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 Qp(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function e5(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Xn(e,r,t){if(e.charCodeAt(0)===40&&!r.match(kh)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Xn("n",n,t):"("+Xn("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return $p(e,r,t);if(r.indexOf("%")!==-1)return Kp(e,r,t);if(r.indexOf("E")!==-1)return Lh(r,t);if(r.charCodeAt(0)===36)return"$"+Xn(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(Fh))return Jp(a,f,c);if(r.match(/^#+0+$/))return c+bs(f,r.length-r.indexOf("0"));if(a=r.match(Ch))return i=du(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+du(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?"-"+Xn(e,r,-t):ga(""+(Math.floor(t)+Qp(t,a[1].length)))+"."+ci(pu(t,a[1].length),a[1].length);if(a=r.match(/^#,#*,#0/))return Xn(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Fs(Xn(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(Ph))return i=Xn(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=Q0(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=J0(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=Q0(f,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?qf(o[1],s)+a[2]+"/"+a[3]+J0(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=pu(t,a[1].length),t<0?"-"+Xn(e,r,-t):ga(e5(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 Xn(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var d=ga(bs(f,0));return d!=="0"?c+d:"";case"###,###.00":return Xn(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return Xn(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function t5(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 r5(e,r,t){var n=r.replace(Eh,""),i=r.length-n.length;return zi(e,n,t*Math.pow(10,2*i))+pr("%",i)}function Ih(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"-"+Ih(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(kh)){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 t5(e,r,t);if(r.indexOf("%")!==-1)return r5(e,r,t);if(r.indexOf("E")!==-1)return Ih(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(Fh))return Zp(a,f,c);if(r.match(/^#+0+$/))return c+ci(f,r.length-r.indexOf("0"));if(a=r.match(Ch))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(Ph))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=Q0(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=J0(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=Q0(f,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?qf(o[1],s)+a[2]+"/"+a[3]+J0(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 d=ga(""+f);return d!=="0"?c+d:"";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):Xn(e,r,t)}function n5(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 Oh=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Dh(e){for(var r=0,t="",n="";r<e.length;)switch(t=e.charAt(r)){case"G":Z0(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(Oh))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 i5(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(!Z0(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 d=e.charAt(++s),w=d==="("||d===")"?d:"t";i[i.length]={t:w,v:d},++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=z0(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=z0(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=z0(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(Oh)){if(c==null&&(c=z0(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]||"$",Dh(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 y=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",y<1&&(y=1);break;case"s":(S=i[s].v.match(/\.0+$/))&&(_=Math.max(_,S[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":f=i[s].t;break;case"m":f==="s"&&(i[s].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&i[s].v.match(/[Hh]/)&&(y=1),y<2&&i[s].v.match(/[Mm]/)&&(y=2),y<3&&i[s].v.match(/[Ss]/)&&(y=3)}switch(y){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=Yp(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=Df(r,t);break}var M="",K,L;if(A.length>0){A.charCodeAt(0)==40?(K=r<0&&A.charCodeAt(0)===45?-r:r,L=zi("n",A,K)):(K=r<0&&n>1?-r:r,L=zi("n",A,K),K<0&&i[0]&&i[0].t=="t"&&(L=L.substr(1),i[0].v="-"+i[0].v)),k=L.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 R=i.length;if(P===i.length&&L.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=L.substr(k+1,i[s].v.length)):k<0?i[s].v="":(i[s].v=L.substr(0,k+1),k=-1),i[s].t="t",R=s);k>=0&&R<i.length&&(i[R].v=L.substr(0,k+1)+i[R].v)}else if(P!==i.length&&L.indexOf("E")===-1){for(k=L.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=L.charAt(k--)+M);i[s].v=M,i[s].t="t",R=s}for(k>=0&&R<i.length&&(i[R].v=L.substr(0,k+1)+i[R].v),k=L.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<L.length&&(M+=L.charAt(k++));i[s].v=M,i[s].t="t",R=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 G="";for(s=0;s!==i.length;++s)i[s]!=null&&(G+=i[s].v);return G}var gu=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function mu(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 a5(e,r){var t=n5(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(gu),o=t[1].match(gu);return mu(r,s)?[n,t[0]]:mu(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[hu[e]]||gr[hu[e]]),n==null&&(n=Up[e]||"General");break}if(Z0(n,0))return Df(r,t);r instanceof Date&&(r=Nh(r,t.date1904));var i=a5(n,r);if(Z0(i[1]))return Df(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return i5(i[1],r,t,i[0])}function Rh(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 pl(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Rh(e[r],r)}function gl(){gr=jp()}var Mh=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function s5(e){var r=typeof e=="number"?gr[e]:e;return r=r.replace(Mh,"(\\d+)"),new RegExp("^"+r+"$")}function o5(e,r,t){var n=-1,i=-1,a=-1,s=-1,o=-1,f=-1;(r.match(Mh)||[]).forEach(function(p,g){var d=parseInt(t[g+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=d;break;case"d":a=d;break;case"h":s=d;break;case"s":f=d;break;case"m":s>=0?o=d:i=d;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 l5=(function(){var e={};e.version="1.2.0";function r(){for(var L=0,P=new Array(256),R=0;R!=256;++R)L=R,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,P[R]=L;return typeof Int32Array<"u"?new Int32Array(P):P}var t=r();function n(L){var P=0,R=0,G=0,E=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)E[G]=L[G];for(G=0;G!=256;++G)for(R=L[G],P=256+G;P<4096;P+=256)R=E[P]=R>>>8^L[R&255];var T=[];for(G=1;G!=16;++G)T[G-1]=typeof Int32Array<"u"?E.subarray(G*256,G*256+256):E.slice(G*256,G*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],d=i[8],w=i[9],v=i[10],y=i[11],_=i[12],S=i[13],A=i[14];function k(L,P){for(var R=P^-1,G=0,E=L.length;G<E;)R=R>>>8^t[(R^L.charCodeAt(G++))&255];return~R}function M(L,P){for(var R=P^-1,G=L.length-15,E=0;E<G;)R=A[L[E++]^R&255]^S[L[E++]^R>>8&255]^_[L[E++]^R>>16&255]^y[L[E++]^R>>>24]^v[L[E++]]^w[L[E++]]^d[L[E++]]^g[L[E++]]^p[L[E++]]^u[L[E++]]^c[L[E++]]^f[L[E++]]^o[L[E++]]^s[L[E++]]^a[L[E++]]^t[L[E++]];for(G+=15;E<G;)R=R>>>8^t[(R^L[E++])&255];return~R}function K(L,P){for(var R=P^-1,G=0,E=L.length,T=0,W=0;G<E;)T=L.charCodeAt(G++),T<128?R=R>>>8^t[(R^T)&255]:T<2048?(R=R>>>8^t[(R^(192|T>>6&31))&255],R=R>>>8^t[(R^(128|T&63))&255]):T>=55296&&T<57344?(T=(T&1023)+64,W=L.charCodeAt(G++)&1023,R=R>>>8^t[(R^(240|T>>8&7))&255],R=R>>>8^t[(R^(128|T>>2&63))&255],R=R>>>8^t[(R^(128|W>>6&15|(T&3)<<4))&255],R=R>>>8^t[(R^(128|W&63))&255]):(R=R>>>8^t[(R^(224|T>>12&15))&255],R=R>>>8^t[(R^(128|T>>6&63))&255],R=R>>>8^t[(R^(128|T&63))&255]);return~R}return e.table=t,e.bstr=k,e.buf=M,e.str=K,e})(),Zt=(function(){var r={};r.version="1.2.1";function t(j,re){for(var Y=j.split("/"),Z=re.split("/"),te=0,ie=0,_e=Math.min(Y.length,Z.length);te<_e;++te){if(ie=Y[te].length-Z[te].length)return ie;if(Y[te]!=Z[te])return Y[te]<Z[te]?-1:1}return Y.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 re=j.lastIndexOf("/");return re===-1?j:j.slice(0,re+1)}function i(j){if(j.charAt(j.length-1)=="/")return i(j.slice(0,-1));var re=j.lastIndexOf("/");return re===-1?j:j.slice(re+1)}function a(j,re){typeof re=="string"&&(re=new Date(re));var Y=re.getHours();Y=Y<<6|re.getMinutes(),Y=Y<<5|re.getSeconds()>>>1,j.write_shift(2,Y);var Z=re.getFullYear()-1980;Z=Z<<4|re.getMonth()+1,Z=Z<<5|re.getDate(),j.write_shift(2,Z)}function s(j){var re=j.read_shift(2)&65535,Y=j.read_shift(2)&65535,Z=new Date,te=Y&31;Y>>>=5;var ie=Y&15;Y>>>=4,Z.setMilliseconds(0),Z.setFullYear(Y+1980),Z.setMonth(ie-1),Z.setDate(te);var _e=re&31;re>>>=5;var Le=re&63;return re>>>=6,Z.setHours(re),Z.setMinutes(Le),Z.setSeconds(_e<<1),Z}function o(j){Pn(j,0);for(var re={},Y=0;j.l<=j.length-4;){var Z=j.read_shift(2),te=j.read_shift(2),ie=j.l+te,_e={};switch(Z){case 21589:Y=j.read_shift(1),Y&1&&(_e.mtime=j.read_shift(4)),te>5&&(Y&2&&(_e.atime=j.read_shift(4)),Y&4&&(_e.ctime=j.read_shift(4))),_e.mtime&&(_e.mt=new Date(_e.mtime*1e3));break}j.l=ie,re[Z]=_e}return re}var f;function c(){return f||(f={})}function u(j,re){if(j[0]==80&&j[1]==75)return ar(j,re);if((j[0]|32)==109&&(j[1]|32)==105)return jn(j,re);if(j.length<512)throw new Error("CFB file size "+j.length+" < 512");var Y=3,Z=512,te=0,ie=0,_e=0,Le=0,be=0,Te=[],Ne=j.slice(0,512);Pn(Ne,0);var We=p(Ne);switch(Y=We[0],Y){case 3:Z=512;break;case 4:Z=4096;break;case 0:if(We[1]==0)return ar(j,re);default:throw new Error("Major Version: Expected 3 or 4 saw "+Y)}Z!==512&&(Ne=j.slice(0,Z),Pn(Ne,28));var Ve=j.slice(0,Z);g(Ne,Y);var rt=Ne.read_shift(4,"i");if(Y===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"),te=Ne.read_shift(4,"i"),be=Ne.read_shift(4,"i"),ie=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=d(j,Z);y(be,ie,mt,Z,Te);var Wt=S(mt,_e,Te,Z);Wt[_e].name="!Directory",te>0&&Le!==W&&(Wt[Le].name="!MiniFAT"),Wt[Te[0]].name="!FAT",Wt.fat_addrs=Te,Wt.ssz=Z;var $t={},Sr=[],Jn=[],Fi=[];A(_e,Wt,mt,Sr,te,$t,Jn,Le),w(Jn,Fi,Sr),Sr.shift();var gi={FileIndex:Jn,FullPaths:Fi};return re&&re.raw&&(gi.raw={header:Ve,sectors:mt}),gi}function p(j){if(j[j.l]==80&&j[j.l+1]==75)return[0,0];j.chk(X,"Header Signature: "),j.l+=16;var re=j.read_shift(2,"u");return[j.read_shift(2,"u"),re]}function g(j,re){var Y=9;switch(j.l+=2,Y=j.read_shift(2)){case 9:if(re!=3)throw new Error("Sector Shift: Expected 9 saw "+Y);break;case 12:if(re!=4)throw new Error("Sector Shift: Expected 12 saw "+Y);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Y)}j.chk("0600","Mini Sector Shift: "),j.chk("000000000000","Reserved: ")}function d(j,re){for(var Y=Math.ceil(j.length/re)-1,Z=[],te=1;te<Y;++te)Z[te-1]=j.slice(te*re,(te+1)*re);return Z[Y-1]=j.slice(Y*re),Z}function w(j,re,Y){for(var Z=0,te=0,ie=0,_e=0,Le=0,be=Y.length,Te=[],Ne=[];Z<be;++Z)Te[Z]=Ne[Z]=Z,re[Z]=Y[Z];for(;Le<Ne.length;++Le)Z=Ne[Le],te=j[Z].L,ie=j[Z].R,_e=j[Z].C,Te[Z]===Z&&(te!==-1&&Te[te]!==te&&(Te[Z]=Te[te]),ie!==-1&&Te[ie]!==ie&&(Te[Z]=Te[ie])),_e!==-1&&(Te[_e]=Z),te!==-1&&Z!=Te[Z]&&(Te[te]=Te[Z],Ne.lastIndexOf(te)<Le&&Ne.push(te)),ie!==-1&&Z!=Te[Z]&&(Te[ie]=Te[Z],Ne.lastIndexOf(ie)<Le&&Ne.push(ie));for(Z=1;Z<be;++Z)Te[Z]===Z&&(ie!==-1&&Te[ie]!==ie?Te[Z]=Te[ie]:te!==-1&&Te[te]!==te&&(Te[Z]=Te[te]));for(Z=1;Z<be;++Z)if(j[Z].type!==0){if(Le=Z,Le!=Te[Le])do Le=Te[Le],re[Z]=re[Le]+"/"+re[Z];while(Le!==0&&Te[Le]!==-1&&Le!=Te[Le]);Te[Z]=-1}for(re[0]+="/",Z=1;Z<be;++Z)j[Z].type!==2&&(re[Z]+="/")}function v(j,re,Y){for(var Z=j.start,te=j.size,ie=[],_e=Z;Y&&te>0&&_e>=0;)ie.push(re.slice(_e*T,_e*T+T)),te-=T,_e=Oa(Y,_e*4);return ie.length===0?ke(0):Gr(ie).slice(0,j.size)}function y(j,re,Y,Z,te){var ie=W;if(j===W){if(re!==0)throw new Error("DIFAT chain shorter than expected")}else if(j!==-1){var _e=Y[j],Le=(Z>>>2)-1;if(!_e)return;for(var be=0;be<Le&&(ie=Oa(_e,be*4))!==W;++be)te.push(ie);y(Oa(_e,Z-4),re-1,Y,Z,te)}}function _(j,re,Y,Z,te){var ie=[],_e=[];te||(te=[]);var Le=Z-1,be=0,Te=0;for(be=re;be>=0;){te[be]=!0,ie[ie.length]=be,_e.push(j[be]);var Ne=Y[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=Oa(j[Ne],Te)}return{nodes:ie,data:Au([_e])}}function S(j,re,Y,Z){var te=j.length,ie=[],_e=[],Le=[],be=[],Te=Z-1,Ne=0,We=0,Ve=0,rt=0;for(Ne=0;Ne<te;++Ne)if(Le=[],Ve=Ne+re,Ve>=te&&(Ve-=te),!_e[Ve]){be=[];var qe=[];for(We=Ve;We>=0;){qe[We]=!0,_e[We]=!0,Le[Le.length]=We,be.push(j[We]);var tt=Y[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=Oa(j[tt],rt),qe[We]))break}ie[Ve]={nodes:Le,data:Au([be])}}return ie}function A(j,re,Y,Z,te,ie,_e,Le){for(var be=0,Te=Z.length?2:0,Ne=re[j].data,We=0,Ve=0,rt;We<Ne.length;We+=128){var qe=Ne.slice(We,We+128);Pn(qe,64),Ve=qe.read_shift(2),rt=$f(qe,0,Ve-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 Wt=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);Wt!==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=W,tt.name=""),tt.type===5?(be=tt.start,te>0&&be!==W&&(re[be].name="!StreamData")):tt.size>=4096?(tt.storage="fat",re[tt.start]===void 0&&(re[tt.start]=_(Y,tt.start,re.fat_addrs,re.ssz)),re[tt.start].name=tt.name,tt.content=re[tt.start].data.slice(0,tt.size)):(tt.storage="minifat",tt.size<0?tt.size=0:be!==W&&tt.start!==W&&re[be]&&(tt.content=v(tt,re[be].data,(re[Le]||{}).data))),tt.content&&Pn(tt.content,0),ie[rt]=tt,_e.push(tt)}}function k(j,re){return new Date((On(j,re+4)/1e7*Math.pow(2,32)+On(j,re)/1e7-11644473600)*1e3)}function M(j,re){return c(),u(f.readFileSync(j),re)}function K(j,re){var Y=re&&re.type;switch(Y||Ut&&Buffer.isBuffer(j)&&(Y="buffer"),Y||"base64"){case"file":return M(j,re);case"base64":return u(fi(qi(j)),re);case"binary":return u(fi(j),re)}return u(j,re)}function L(j,re){var Y=re||{},Z=Y.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}),Y.CLSID&&(j.FileIndex[0].clsid=Y.CLSID),P(j)}function P(j){var re="Sh33tJ5";if(!Zt.find(j,"/"+re)){var Y=ke(4);Y[0]=55,Y[1]=Y[3]=50,Y[2]=54,j.FileIndex.push({name:re,type:2,content:Y,size:4,L:69,R:69,C:69}),j.FullPaths.push(j.FullPaths[0]+re),R(j)}}function R(j,re){L(j);for(var Y=!1,Z=!1,te=j.FullPaths.length-1;te>=0;--te){var ie=j.FileIndex[te];switch(ie.type){case 0:Z?Y=!0:(j.FileIndex.pop(),j.FullPaths.pop());break;case 1:case 2:case 5:Z=!0,isNaN(ie.R*ie.L*ie.C)&&(Y=!0),ie.R>-1&&ie.L>-1&&ie.R==ie.L&&(Y=!0);break;default:Y=!0;break}}if(!(!Y&&!re)){var _e=new Date(1987,1,19),Le=0,be=Object.create?Object.create(null):{},Te=[];for(te=0;te<j.FullPaths.length;++te)be[j.FullPaths[te]]=!0,j.FileIndex[te].type!==0&&Te.push([j.FullPaths[te],j.FileIndex[te]]);for(te=0;te<Te.length;++te){var Ne=n(Te[te][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=[],te=0;te<Te.length;++te)j.FullPaths[te]=Te[te][0],j.FileIndex[te]=Te[te][1];for(te=0;te<Te.length;++te){var We=j.FileIndex[te],Ve=j.FullPaths[te];if(We.name=i(Ve).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,te===0)We.C=Te.length>1?1:-1,We.size=0,We.type=5;else if(Ve.slice(-1)=="/"){for(Le=te+1;Le<Te.length&&n(j.FullPaths[Le])!=Ve;++Le);for(We.C=Le>=Te.length?-1:Le,Le=te+1;Le<Te.length&&n(j.FullPaths[Le])!=n(Ve);++Le);We.R=Le>=Te.length?-1:Le,We.type=1}else n(j.FullPaths[te+1]||"")==n(Ve)&&(We.R=te+1),We.type=2}}}function G(j,re){var Y=re||{};if(Y.fileType=="mad")return ht(j,Y);switch(R(j),Y.fileType){case"zip":return $n(j,Y)}var Z=(function(rt){for(var qe=0,tt=0,mt=0;mt<rt.FileIndex.length;++mt){var Wt=rt.FileIndex[mt];if(Wt.content){var $t=Wt.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),te=ke(Z[7]<<9),ie=0,_e=0;{for(ie=0;ie<8;++ie)te.write_shift(1,fe[ie]);for(ie=0;ie<8;++ie)te.write_shift(2,0);for(te.write_shift(2,62),te.write_shift(2,3),te.write_shift(2,65534),te.write_shift(2,9),te.write_shift(2,6),ie=0;ie<3;++ie)te.write_shift(2,0);for(te.write_shift(4,0),te.write_shift(4,Z[2]),te.write_shift(4,Z[0]+Z[1]+Z[2]+Z[3]-1),te.write_shift(4,0),te.write_shift(4,4096),te.write_shift(4,Z[3]?Z[0]+Z[1]+Z[2]-1:W),te.write_shift(4,Z[3]),te.write_shift(-4,Z[1]?Z[0]-1:W),te.write_shift(4,Z[1]),ie=0;ie<109;++ie)te.write_shift(-4,ie<Z[2]?Z[1]+ie:-1)}if(Z[1])for(_e=0;_e<Z[1];++_e){for(;ie<236+_e*127;++ie)te.write_shift(-4,ie<Z[2]?Z[1]+ie:-1);te.write_shift(-4,_e===Z[1]-1?W:_e+1)}var Le=function(rt){for(_e+=rt;ie<_e-1;++ie)te.write_shift(-4,ie+1);rt&&(++ie,te.write_shift(-4,W))};for(_e=ie=0,_e+=Z[1];ie<_e;++ie)te.write_shift(-4,J.DIFSECT);for(_e+=Z[2];ie<_e;++ie)te.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);te.l&511;)te.write_shift(-4,J.ENDOFCHAIN);for(_e=ie=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(;te.l&511;)te.write_shift(-4,J.ENDOFCHAIN);for(ie=0;ie<Z[4]<<2;++ie){var We=j.FullPaths[ie];if(!We||We.length===0){for(be=0;be<17;++be)te.write_shift(4,0);for(be=0;be<3;++be)te.write_shift(4,-1);for(be=0;be<12;++be)te.write_shift(4,0);continue}Ne=j.FileIndex[ie],ie===0&&(Ne.start=Ne.size?Ne.start-1:W);var Ve=ie===0&&Y.root||Ne.name;if(Te=2*(Ve.length+1),te.write_shift(64,Ve,"utf16le"),te.write_shift(2,Te),te.write_shift(1,Ne.type),te.write_shift(1,Ne.color),te.write_shift(-4,Ne.L),te.write_shift(-4,Ne.R),te.write_shift(-4,Ne.C),Ne.clsid)te.write_shift(16,Ne.clsid,"hex");else for(be=0;be<4;++be)te.write_shift(4,0);te.write_shift(4,Ne.state||0),te.write_shift(4,0),te.write_shift(4,0),te.write_shift(4,0),te.write_shift(4,0),te.write_shift(4,Ne.start),te.write_shift(4,Ne.size),te.write_shift(4,0)}for(ie=1;ie<j.FileIndex.length;++ie)if(Ne=j.FileIndex[ie],Ne.size>=4096)if(te.l=Ne.start+1<<9,Ut&&Buffer.isBuffer(Ne.content))Ne.content.copy(te,te.l,0,Ne.size),te.l+=Ne.size+511&-512;else{for(be=0;be<Ne.size;++be)te.write_shift(1,Ne.content[be]);for(;be&511;++be)te.write_shift(1,0)}for(ie=1;ie<j.FileIndex.length;++ie)if(Ne=j.FileIndex[ie],Ne.size>0&&Ne.size<4096)if(Ut&&Buffer.isBuffer(Ne.content))Ne.content.copy(te,te.l,0,Ne.size),te.l+=Ne.size+63&-64;else{for(be=0;be<Ne.size;++be)te.write_shift(1,Ne.content[be]);for(;be&63;++be)te.write_shift(1,0)}if(Ut)te.l=te.length;else for(;te.l<te.length;)te.write_shift(1,0);return te}function E(j,re){var Y=j.FullPaths.map(function(be){return be.toUpperCase()}),Z=Y.map(function(be){var Te=be.split("/");return Te[Te.length-(be.slice(-1)=="/"?2:1)]}),te=!1;re.charCodeAt(0)===47?(te=!0,re=Y[0].slice(0,-1)+re):te=re.indexOf("/")!==-1;var ie=re.toUpperCase(),_e=te===!0?Y.indexOf(ie):Z.indexOf(ie);if(_e!==-1)return j.FileIndex[_e];var Le=!ie.match(U0);for(ie=ie.replace(Eo,""),Le&&(ie=ie.replace(U0,"!")),_e=0;_e<Y.length;++_e)if((Le?Y[_e].replace(U0,"!"):Y[_e]).replace(Eo,"")==ie||(Le?Z[_e].replace(U0,"!"):Z[_e]).replace(Eo,"")==ie)return j.FileIndex[_e];return null}var T=64,W=-2,X="d0cf11e0a1b11ae1",fe=[208,207,17,224,161,177,26,225],Q="00000000000000000000000000000000",J={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:W,FREESECT:-1,HEADER_SIGNATURE:X,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function oe(j,re,Y){c();var Z=G(j,Y);f.writeFileSync(re,Z)}function ne(j){for(var re=new Array(j.length),Y=0;Y<j.length;++Y)re[Y]=String.fromCharCode(j[Y]);return re.join("")}function ge(j,re){var Y=G(j,re);switch(re&&re.type||"buffer"){case"file":return c(),f.writeFileSync(re.filename,Y),Y;case"binary":return typeof Y=="string"?Y:ne(Y);case"base64":return Ro(typeof Y=="string"?Y:ne(Y));case"buffer":if(Ut)return Buffer.isBuffer(Y)?Y:Vi(Y);case"array":return typeof Y=="string"?fi(Y):Y}return Y}var ye;function b(j){try{var re=j.InflateRaw,Y=new re;if(Y._processChunk(new Uint8Array([3,0]),Y._finishFlushFlag),Y.bytesRead)ye=j;else throw new Error("zlib does not expose bytesRead")}catch(Z){console.error("cannot use native zlib: "+(Z.message||Z))}}function F(j,re){if(!ye)return Dt(j,re);var Y=ye.InflateRaw,Z=new Y,te=Z._processChunk(j.slice(j.l),Z._finishFlushFlag);return j.l+=Z.bytesRead,te}function C(j){return ye?ye.deflateRawSync(j):Et(j)}var I=[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],le=[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 re=(j<<1|j<<11)&139536|(j<<5|j<<15)&558144;return(re>>16|re>>8|re)&255}for(var ue=typeof Uint8Array<"u",we=ue?new Uint8Array(256):[],Pe=0;Pe<256;++Pe)we[Pe]=ce(Pe);function Re(j,re){var Y=we[j&255];return re<=8?Y>>>8-re:(Y=Y<<8|we[j>>8&255],re<=16?Y>>>16-re:(Y=Y<<8|we[j>>16&255],Y>>>24-re))}function He(j,re){var Y=re&7,Z=re>>>3;return(j[Z]|(Y<=6?0:j[Z+1]<<8))>>>Y&3}function Ke(j,re){var Y=re&7,Z=re>>>3;return(j[Z]|(Y<=5?0:j[Z+1]<<8))>>>Y&7}function Ee(j,re){var Y=re&7,Z=re>>>3;return(j[Z]|(Y<=4?0:j[Z+1]<<8))>>>Y&15}function se(j,re){var Y=re&7,Z=re>>>3;return(j[Z]|(Y<=3?0:j[Z+1]<<8))>>>Y&31}function Me(j,re){var Y=re&7,Z=re>>>3;return(j[Z]|(Y<=1?0:j[Z+1]<<8))>>>Y&127}function nt(j,re,Y){var Z=re&7,te=re>>>3,ie=(1<<Y)-1,_e=j[te]>>>Z;return Y<8-Z||(_e|=j[te+1]<<8-Z,Y<16-Z)||(_e|=j[te+2]<<16-Z,Y<24-Z)||(_e|=j[te+3]<<24-Z),_e&ie}function Ue(j,re,Y){var Z=re&7,te=re>>>3;return Z<=5?j[te]|=(Y&7)<<Z:(j[te]|=Y<<Z&255,j[te+1]=(Y&7)>>8-Z),re+3}function Ge(j,re,Y){var Z=re&7,te=re>>>3;return Y=(Y&1)<<Z,j[te]|=Y,re+1}function $e(j,re,Y){var Z=re&7,te=re>>>3;return Y<<=Z,j[te]|=Y&255,Y>>>=8,j[te+1]=Y,re+8}function Ze(j,re,Y){var Z=re&7,te=re>>>3;return Y<<=Z,j[te]|=Y&255,Y>>>=8,j[te+1]=Y&255,j[te+2]=Y>>>8,re+16}function lt(j,re){var Y=j.length,Z=2*Y>re?2*Y:re+5,te=0;if(Y>=re)return j;if(Ut){var ie=fu(Z);if(j.copy)j.copy(ie);else for(;te<j.length;++te)ie[te]=j[te];return ie}else if(ue){var _e=new Uint8Array(Z);if(_e.set)_e.set(j);else for(;te<Y;++te)_e[te]=j[te];return _e}return j.length=Z,j}function ft(j){for(var re=new Array(j),Y=0;Y<j;++Y)re[Y]=0;return re}function vt(j,re,Y){var Z=1,te=0,ie=0,_e=0,Le=0,be=j.length,Te=ue?new Uint16Array(32):ft(32);for(ie=0;ie<32;++ie)Te[ie]=0;for(ie=be;ie<Y;++ie)j[ie]=0;be=j.length;var Ne=ue?new Uint16Array(be):ft(be);for(ie=0;ie<be;++ie)Te[te=j[ie]]++,Z<te&&(Z=te),Ne[ie]=0;for(Te[0]=0,ie=1;ie<=Z;++ie)Te[ie+16]=Le=Le+Te[ie-1]<<1;for(ie=0;ie<be;++ie)Le=j[ie],Le!=0&&(Ne[ie]=Te[Le+16]++);var We=0;for(ie=0;ie<be;++ie)if(We=j[ie],We!=0)for(Le=Re(Ne[ie],Z)>>Z-We,_e=(1<<Z+4-We)-1;_e>=0;--_e)re[Le|_e<<We]=We&15|ie<<4;return Z}var St=ue?new Uint16Array(512):ft(512),Ct=ue?new Uint16Array(32):ft(32);if(!ue){for(var kt=0;kt<512;++kt)St[kt]=0;for(kt=0;kt<32;++kt)Ct[kt]=0}(function(){for(var j=[],re=0;re<32;re++)j.push(5);vt(j,Ct,32);var Y=[];for(re=0;re<=143;re++)Y.push(8);for(;re<=255;re++)Y.push(9);for(;re<=279;re++)Y.push(7);for(;re<=287;re++)Y.push(8);vt(Y,St,288)})();var pt=(function(){for(var re=ue?new Uint8Array(32768):[],Y=0,Z=0;Y<le.length-1;++Y)for(;Z<le[Y+1];++Z)re[Z]=Y;for(;Z<32768;++Z)re[Z]=29;var te=ue?new Uint8Array(259):[];for(Y=0,Z=0;Y<H.length-1;++Y)for(;Z<H[Y+1];++Z)te[Z]=Y;function ie(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=ue?new Uint16Array(32768):[];Ne<Le.length;){var Ve=Math.min(65535,Le.length-Ne);if(Ve<10){for(Te=Ue(be,Te,+(Ne+Ve==Le.length)),Te&7&&(Te+=8-(Te&7)),be.l=Te/8|0,be.write_shift(2,Ve),be.write_shift(2,~Ve&65535);Ve-- >0;)be[be.l++]=Le[Ne++];Te=be.l*8;continue}Te=Ue(be,Te,+(Ne+Ve==Le.length)+2);for(var rt=0;Ve-- >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=te[mt],qe<=22?Te=$e(be,Te,we[qe+1]>>1)-1:($e(be,Te,3),Te+=5,$e(be,Te,we[qe-23]>>5),Te+=3);var Wt=qe<8?0:qe-4>>2;Wt>0&&(Ze(be,Te,mt-H[qe]),Te+=Wt),qe=re[Ne-tt],Te=$e(be,Te,we[qe]>>3),Te-=3;var $t=qe<4?0:qe-2>>1;$t>0&&(Ze(be,Te,Ne-tt-le[qe]),Te+=$t);for(var Sr=0;Sr<mt;++Sr)We[rt]=Ne&32767,rt=(rt<<5^Le[Ne])&32767,++Ne;Ve-=mt-1}else qe<=143?qe=qe+48:Te=Ge(be,Te,1),Te=$e(be,Te,we[qe]),We[rt]=Ne&32767,++Ne}Te=$e(be,Te,0)-1}return be.l=(Te+7)/8|0,be.l}return function(be,Te){return be.length<8?ie(be,Te):_e(be,Te)}})();function Et(j){var re=ke(50+Math.floor(j.length*1.1)),Y=pt(j,re);return re.slice(0,Y)}var et=ue?new Uint16Array(32768):ft(32768),Cr=ue?new Uint16Array(32768):ft(32768),It=ue?new Uint16Array(128):ft(128),dn=1,zt=1;function rr(j,re){var Y=se(j,re)+257;re+=5;var Z=se(j,re)+1;re+=5;var te=Ee(j,re)+4;re+=4;for(var ie=0,_e=ue?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=ue?new Uint8Array(8):ft(8),Ne=ue?new Uint8Array(8):ft(8),We=_e.length,Ve=0;Ve<te;++Ve)_e[I[Ve]]=ie=Ke(j,re),be<ie&&(be=ie),Te[ie]++,re+=3;var rt=0;for(Te[0]=0,Ve=1;Ve<=be;++Ve)Ne[Ve]=rt=rt+Te[Ve-1]<<1;for(Ve=0;Ve<We;++Ve)(rt=_e[Ve])!=0&&(Le[Ve]=Ne[rt]++);var qe=0;for(Ve=0;Ve<We;++Ve)if(qe=_e[Ve],qe!=0){rt=we[Le[Ve]]>>8-qe;for(var tt=(1<<7-qe)-1;tt>=0;--tt)It[rt|tt<<qe]=qe&7|Ve<<3}var mt=[];for(be=1;mt.length<Y+Z;)switch(rt=It[Me(j,re)],re+=rt&7,rt>>>=3){case 16:for(ie=3+He(j,re),re+=2,rt=mt[mt.length-1];ie-- >0;)mt.push(rt);break;case 17:for(ie=3+Ke(j,re),re+=3;ie-- >0;)mt.push(0);break;case 18:for(ie=11+Me(j,re),re+=7;ie-- >0;)mt.push(0);break;default:mt.push(rt),be<rt&&(be=rt);break}var Wt=mt.slice(0,Y),$t=mt.slice(Y);for(Ve=Y;Ve<286;++Ve)Wt[Ve]=0;for(Ve=Z;Ve<30;++Ve)$t[Ve]=0;return dn=vt(Wt,et,286),zt=vt($t,Cr,30),re}function Mn(j,re){if(j[0]==3&&!(j[1]&3))return[Wa(re),2];for(var Y=0,Z=0,te=fu(re||1<<18),ie=0,_e=te.length>>>0,Le=0,be=0;(Z&1)==0;){if(Z=Ke(j,Y),Y+=3,Z>>>1)Z>>1==1?(Le=9,be=5):(Y=rr(j,Y),Le=dn,be=zt);else{Y&7&&(Y+=8-(Y&7));var Te=j[Y>>>3]|j[(Y>>>3)+1]<<8;if(Y+=32,Te>0)for(!re&&_e<ie+Te&&(te=lt(te,ie+Te),_e=te.length);Te-- >0;)te[ie++]=j[Y>>>3],Y+=8;continue}for(;;){!re&&_e<ie+32767&&(te=lt(te,ie+32767),_e=te.length);var Ne=nt(j,Y,Le),We=Z>>>1==1?St[Ne]:et[Ne];if(Y+=We&15,We>>>=4,(We>>>8&255)===0)te[ie++]=We;else{if(We==256)break;We-=257;var Ve=We<8?0:We-4>>2;Ve>5&&(Ve=0);var rt=ie+H[We];Ve>0&&(rt+=nt(j,Y,Ve),Y+=Ve),Ne=nt(j,Y,be),We=Z>>>1==1?Ct[Ne]:Cr[Ne],Y+=We&15,We>>>=4;var qe=We<4?0:We-2>>1,tt=le[We];for(qe>0&&(tt+=nt(j,Y,qe),Y+=qe),!re&&_e<rt&&(te=lt(te,rt+100),_e=te.length);ie<rt;)te[ie]=te[ie-tt],++ie}}}return re?[te,Y+7>>>3]:[te.slice(0,ie),Y+7>>>3]}function Dt(j,re){var Y=j.slice(j.l||0),Z=Mn(Y,re);return j.l+=Z[1],Z[0]}function pi(j,re){if(j)typeof console<"u"&&console.error(re);else throw new Error(re)}function ar(j,re){var Y=j;Pn(Y,0);var Z=[],te=[],ie={FileIndex:Z,FullPaths:te};L(ie,{root:re.root});for(var _e=Y.length-4;(Y[_e]!=80||Y[_e+1]!=75||Y[_e+2]!=5||Y[_e+3]!=6)&&_e>=0;)--_e;Y.l=_e+4,Y.l+=4;var Le=Y.read_shift(2);Y.l+=6;var be=Y.read_shift(4);for(Y.l=be,_e=0;_e<Le;++_e){Y.l+=20;var Te=Y.read_shift(4),Ne=Y.read_shift(4),We=Y.read_shift(2),Ve=Y.read_shift(2),rt=Y.read_shift(2);Y.l+=8;var qe=Y.read_shift(4),tt=o(Y.slice(Y.l+We,Y.l+We+Ve));Y.l+=We+Ve+rt;var mt=Y.l;Y.l=qe+4,An(Y,Te,Ne,ie,tt),Y.l=mt}return ie}function An(j,re,Y,Z,te){j.l+=2;var ie=j.read_shift(2),_e=j.read_shift(2),Le=s(j);if(ie&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),Ve=j.read_shift(2),rt="",qe=0;qe<We;++qe)rt+=String.fromCharCode(j[j.l++]);if(Ve){var tt=o(j.slice(j.l,j.l+Ve));(tt[21589]||{}).mt&&(Le=tt[21589].mt),((te||{})[21589]||{}).mt&&(Le=te[21589].mt)}j.l+=Ve;var mt=j.slice(j.l,j.l+Te);switch(_e){case 8:mt=F(j,Ne);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+_e)}var Wt=!1;ie&8&&(be=j.read_shift(4),be==134695760&&(be=j.read_shift(4),Wt=!0),Te=j.read_shift(4),Ne=j.read_shift(4)),Te!=re&&pi(Wt,"Bad compressed size: "+re+" != "+Te),Ne!=Y&&pi(Wt,"Bad uncompressed size: "+Y+" != "+Ne),pn(Z,rt,mt,{unsafe:!0,mt:Le})}function $n(j,re){var Y=re||{},Z=[],te=[],ie=ke(1),_e=Y.compression?8:0,Le=0,be=0,Te=0,Ne=0,We=0,Ve=j.FullPaths[0],rt=Ve,qe=j.FileIndex[0],tt=[],mt=0;for(be=1;be<j.FullPaths.length;++be)if(rt=j.FullPaths[be].slice(Ve.length),qe=j.FileIndex[be],!(!qe.size||!qe.content||rt=="Sh33tJ5")){var Wt=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]=l5.buf(qe.content,0);var Sr=qe.content;_e==8&&(Sr=C(Sr)),ie=ke(30),ie.write_shift(4,67324752),ie.write_shift(2,20),ie.write_shift(2,Le),ie.write_shift(2,_e),qe.mt?a(ie,qe.mt):ie.write_shift(4,0),ie.write_shift(-4,tt[We]),ie.write_shift(4,Sr.length),ie.write_shift(4,qe.content.length),ie.write_shift(2,$t.length),ie.write_shift(2,0),Ne+=ie.length,Z.push(ie),Ne+=$t.length,Z.push($t),Ne+=Sr.length,Z.push(Sr),ie=ke(46),ie.write_shift(4,33639248),ie.write_shift(2,0),ie.write_shift(2,20),ie.write_shift(2,Le),ie.write_shift(2,_e),ie.write_shift(4,0),ie.write_shift(-4,tt[We]),ie.write_shift(4,Sr.length),ie.write_shift(4,qe.content.length),ie.write_shift(2,$t.length),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(4,0),ie.write_shift(4,Wt),mt+=ie.l,te.push(ie),mt+=$t.length,te.push($t),++We}return ie=ke(22),ie.write_shift(4,101010256),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,We),ie.write_shift(2,We),ie.write_shift(4,mt),ie.write_shift(4,Ne),ie.write_shift(2,0),Gr([Gr(Z),Gr(te),ie])}var Qt={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,re){if(j.ctype)return j.ctype;var Y=j.name||"",Z=Y.match(/\.([^\.]+)$/);return Z&&Qt[Z[1]]||re&&(Z=(Y=re).match(/[\.\\]([^\.\\])+$/),Z&&Qt[Z[1]])?Qt[Z[1]]:"application/octet-stream"}function Mt(j){for(var re=Ro(j),Y=[],Z=0;Z<re.length;Z+=76)Y.push(re.slice(Z,Z+76));return Y.join(`\r
|
|
254
|
+
`)+`\r
|
|
255
|
+
`}function Li(j){var re=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)});re=re.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),re.charAt(0)==`
|
|
256
|
+
`&&(re="=0D"+re.slice(1)),re=re.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
|
257
|
+
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var Y=[],Z=re.split(`\r
|
|
258
|
+
`),te=0;te<Z.length;++te){var ie=Z[te];if(ie.length==0){Y.push("");continue}for(var _e=0;_e<ie.length;){var Le=76,be=ie.slice(_e,_e+Le);be.charAt(Le-1)=="="?Le--:be.charAt(Le-2)=="="?Le-=2:be.charAt(Le-3)=="="&&(Le-=3),be=ie.slice(_e,_e+Le),_e+=Le,_e<ie.length&&(be+="="),Y.push(be)}}return Y.join(`\r
|
|
259
|
+
`)}function kr(j){for(var re=[],Y=0;Y<j.length;++Y){for(var Z=j[Y];Y<=j.length&&Z.charAt(Z.length-1)=="=";)Z=Z.slice(0,Z.length-1)+j[++Y];re.push(Z)}for(var te=0;te<re.length;++te)re[te]=re[te].replace(/[=][0-9A-Fa-f]{2}/g,function(ie){return String.fromCharCode(parseInt(ie.slice(1),16))});return fi(re.join(`\r
|
|
260
|
+
`))}function Bn(j,re,Y){for(var Z="",te="",ie="",_e,Le=0;Le<10;++Le){var be=re[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":ie=Te[2].trim();break;case"content-transfer-encoding":te=Te[2].trim();break}}switch(++Le,te.toLowerCase()){case"base64":_e=fi(qi(re.slice(Le).join("")));break;case"quoted-printable":_e=kr(re.slice(Le));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+te)}var Ne=pn(j,Z.slice(Y.length),_e,{unsafe:!0});ie&&(Ne.ctype=ie)}function jn(j,re){if(ne(j.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Y=re&&re.root||"",Z=(Ut&&Buffer.isBuffer(j)?j.toString("binary"):ne(j)).split(`\r
|
|
261
|
+
`),te=0,ie="";for(te=0;te<Z.length;++te)if(ie=Z[te],!!/^Content-Location:/i.test(ie)&&(ie=ie.slice(ie.indexOf("file")),Y||(Y=ie.slice(0,ie.lastIndexOf("/")+1)),ie.slice(0,Y.length)!=Y))for(;Y.length>0&&(Y=Y.slice(0,Y.length-1),Y=Y.slice(0,Y.lastIndexOf("/")+1),ie.slice(0,Y.length)!=Y););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};L(Ne);var We,Ve=0;for(te=0;te<Z.length;++te){var rt=Z[te];rt!==Le&&rt!==Le+"--"||(Ve++&&Bn(Ne,Z.slice(We,te),Y),We=te)}return Ne}function ht(j,re){var Y=re||{},Z=Y.boundary||"SheetJS";Z="------="+Z;for(var te=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+Z.slice(2)+'"',"","",""],ie=j.FullPaths[0],_e=ie,Le=j.FileIndex[0],be=1;be<j.FullPaths.length;++be)if(_e=j.FullPaths[be].slice(ie.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=Ut&&Buffer.isBuffer(Te)?Te.toString("binary"):ne(Te),We=0,Ve=Math.min(1024,Ne.length),rt=0,qe=0;qe<=Ve;++qe)(rt=Ne.charCodeAt(qe))>=32&&rt<128&&++We;var tt=We>=Ve*4/5;te.push(Z),te.push("Content-Location: "+(Y.root||"file:///C:/SheetJS/")+_e),te.push("Content-Transfer-Encoding: "+(tt?"quoted-printable":"base64")),te.push("Content-Type: "+xt(Le,_e)),te.push(""),te.push(tt?Li(Ne):Mt(Ne))}return te.push(Z+`--\r
|
|
262
|
+
`),te.join(`\r
|
|
263
|
+
`)}function Tn(j){var re={};return L(re,j),re}function pn(j,re,Y,Z){var te=Z&&Z.unsafe;te||L(j);var ie=!te&&Zt.find(j,re);if(!ie){var _e=j.FullPaths[0];re.slice(0,_e.length)==_e?_e=re:(_e.slice(-1)!="/"&&(_e+="/"),_e=(_e+re).replace("//","/")),ie={name:i(re),type:2},j.FileIndex.push(ie),j.FullPaths.push(_e),te||Zt.utils.cfb_gc(j)}return ie.content=Y,ie.size=Y?Y.length:0,Z&&(Z.CLSID&&(ie.clsid=Z.CLSID),Z.mt&&(ie.mt=Z.mt),Z.ct&&(ie.ct=Z.ct)),ie}function Kr(j,re){L(j);var Y=Zt.find(j,re);if(Y){for(var Z=0;Z<j.FileIndex.length;++Z)if(j.FileIndex[Z]==Y)return j.FileIndex.splice(Z,1),j.FullPaths.splice(Z,1),!0}return!1}function mr(j,re,Y){L(j);var Z=Zt.find(j,re);if(Z){for(var te=0;te<j.FileIndex.length;++te)if(j.FileIndex[te]==Z)return j.FileIndex[te].name=i(Y),j.FullPaths[te]=Y,!0}return!1}function cr(j){R(j,!0)}return r.find=E,r.read=K,r.parse=u,r.write=ge,r.writeFile=oe,r.utils={cfb_new:Tn,cfb_add:pn,cfb_del:Kr,cfb_mov:mr,cfb_gc:cr,ReadShift:Fo,CheckField:t1,prep_blob:Pn,bconcat:Gr,use_zlib:b,_deflateRaw:Et,_inflateRaw:Dt,consts:J},r})();function f5(e){return typeof e=="string"?dl(e):Array.isArray(e)?Dp(e):e}function Ho(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=dl(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?Bo(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([f5(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=Wo(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 Yr(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 vu(e,r){for(var t=[],n=Yr(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function Vf(e){for(var r=[],t=Yr(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function ml(e){for(var r=[],t=Yr(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function c5(e){for(var r=[],t=Yr(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 el=new Date(1899,11,30,0,0,0);function bn(e,r){var t=e.getTime(),n=el.getTime()+(e.getTimezoneOffset()-el.getTimezoneOffset())*6e4;return(t-n)/(1440*60*1e3)}var Bh=new Date,u5=el.getTime()+(Bh.getTimezoneOffset()-el.getTimezoneOffset())*6e4,xu=Bh.getTimezoneOffset();function jh(e){var r=new Date;return r.setTime(e*24*60*60*1e3+u5),r.getTimezoneOffset()!==xu&&r.setTime(r.getTime()+(r.getTimezoneOffset()-xu)*6e4),r}var wu=new Date("2017-02-19T19:06:09.000Z"),Uh=isNaN(wu.getFullYear())?new Date("2/19/17"):wu,h5=Uh.getFullYear()==2017;function hn(e,r){var t=new Date(e);if(h5)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(Uh.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 vl(e,r){if(Ut&&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 d5=["january","february","march","april","may","june","july","august","september","october","november","december"];function Mo(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&&d5.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 Lt(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return Ut?n=Vi(t):n=Rp(t),Zt.utils.cfb_add(e,r,n)}Zt.utils.cfb_add(e,r,t)}else e.file(r,t)}function Xf(){return Zt.utils.cfb_new()}var Fr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
|
264
|
+
`,p5={""":'"',"'":"'",">":">","<":"<","&":"&"},Yf=Vf(p5),Kf=/[&<>'"]/g,g5=/[\u0000-\u0008\u000b-\u001f]/g;function Yt(e){var r=e+"";return r.replace(Kf,function(t){return Yf[t]}).replace(g5,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function yu(e){return Yt(e).replace(/ /g,"_x0020_")}var zh=/[\u0000-\u001f]/g;function m5(e){var r=e+"";return r.replace(Kf,function(t){return Yf[t]}).replace(/\n/g,"<br/>").replace(zh,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function v5(e){var r=e+"";return r.replace(Kf,function(t){return Yf[t]}).replace(zh,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function x5(e){return e.replace(/(\r\n|[\r\n])/g," ")}function w5(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function gf(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 bu(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 _u(e){return Vi(e,"binary").toString("utf8")}var W0="foo bar bazâð£",Lo=Ut&&(_u(W0)==gf(W0)&&_u||bu(W0)==gf(W0)&&bu)||gf,Bo=Ut?function(e){return Vi(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("")},y5=(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}})(),Wh=/(^\s|\s$|\n)/;function Vr(e,r){return"<"+e+(r.match(Wh)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function jo(e){return Yr(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Xe(e,r,t){return"<"+e+(t!=null?jo(t):"")+(r!=null?(r.match(Wh)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function Rf(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function b5(e,r){switch(typeof e){case"string":var t=Xe("vt:lpwstr",Yt(e));return t=t.replace(/"/g,"_x0022_"),t;case"number":return Xe((e|0)==e?"vt:i4":"vt:r8",Yt(String(e)));case"boolean":return Xe("vt:bool",e?"true":"false")}if(e instanceof Date)return Xe("vt:filetime",Rf(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"},Rs=["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"],In={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 _5(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 S5(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 Su=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},Au=Ut?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:Vi(r)})):Su(e)}:Su,Tu=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(bo(e,i)));return n.join("").replace(Eo,"")},$f=Ut?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(Eo,""):Tu(e,r,t)}:Tu,Nu=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("")},Hh=Ut?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Nu(e,r,t)}:Nu,Eu=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(Ns(e,i)));return n.join("")},qo=Ut?function(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):Eu(r,t,n)}:Eu,qh=function(e,r){var t=On(e,r);return t>0?qo(e,r+4,r+4+t-1):""},Gh=qh,Vh=function(e,r){var t=On(e,r);return t>0?qo(e,r+4,r+4+t-1):""},Xh=Vh,Yh=function(e,r){var t=2*On(e,r);return t>0?qo(e,r+4,r+4+t-1):""},Kh=Yh,$h=function(r,t){var n=On(r,t);return n>0?$f(r,t+4,t+4+n):""},Jh=$h,Zh=function(e,r){var t=On(e,r);return t>0?qo(e,r+4,r+4+t):""},Qh=Zh,e1=function(e,r){return _5(e,r)},tl=e1,Jf=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};Ut&&(Gh=function(r,t){if(!Buffer.isBuffer(r))return qh(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Xh=function(r,t){if(!Buffer.isBuffer(r))return Vh(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Kh=function(r,t){if(!Buffer.isBuffer(r))return Yh(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},Jh=function(r,t){if(!Buffer.isBuffer(r))return $h(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},Qh=function(r,t){if(!Buffer.isBuffer(r))return Zh(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},tl=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):e1(r,t)},Jf=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Ns=function(e,r){return e[r]},bo=function(e,r){return e[r+1]*256+e[r]},A5=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},On=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},Oa=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},T5=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Fo(e,r){var t="",n,i,a=[],s,o,f,c;switch(r){case"dbcs":if(c=this.l,Ut&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f<e;++f)t+=String.fromCharCode(bo(this,c)),c+=2;e*=2;break;case"utf8":t=qo(this,this.l,this.l+e);break;case"utf16le":e*=2,t=$f(this,this.l,this.l+e);break;case"wstr":return Fo.call(this,e,"dbcs");case"lpstr-ansi":t=Gh(this,this.l),e=4+On(this,this.l);break;case"lpstr-cp":t=Xh(this,this.l),e=4+On(this,this.l);break;case"lpwstr":t=Kh(this,this.l),e=4+2*On(this,this.l);break;case"lpp4":e=4+On(this,this.l),t=Jh(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+On(this,this.l),t=Qh(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(j0(s));t=a.join("");break;case"_wstr":for(e=0,t="";(s=bo(this,this.l+e))!==0;)a.push(j0(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=Fo.call(this,e-f,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(j0(bo(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=Fo.call(this,e-f,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(j0(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"?A5:bo)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||(this[this.l+3]&128)===0?(n=(e>0?Oa:T5)(this,this.l),this.l+=4,n):(i=On(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=tl(this,this.l):i=tl([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=Hh(this,this.l,e);break}}return this.l+=e,t}var N5=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},E5=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},L5=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function F5(e,r,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)L5(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,N5(this,r,this.l);break;case 8:if(n=8,t==="f"){S5(this,r,this.l);break}case 16:break;case-4:n=4,E5(this,r,this.l);break}return this.l+=n,this}function t1(e,r){var t=Hh(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=Fo,e.chk=t1,e.write_shift=F5}function Ni(e,r){e.l+=r}function ke(e){var r=Wa(e);return Pn(r,0),r}function yn(){var e=[],r=Ut?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(),Gr(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=_3[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&&Jf(t)&&e.push(t)}}function Co(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 Lu(e,r,t){var n=_n(e);return n.s=Co(n.s,r.s,t),n.e=Co(n.e,r.s,t),n}function ko(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=Kt(e);return!e.cRel&&e.cRel!=null&&(t=P5(t)),!e.rRel&&e.rRel!=null&&(t=C5(t)),t}function mf(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?"":"$")+Xr(e.s.r)+":"+(e.e.rRel?"":"$")+Xr(e.e.r):ko(e.s,r.biff)+":"+ko(e.e,r.biff)}function Zf(e){return parseInt(k5(e),10)-1}function Xr(e){return""+(e+1)}function C5(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function k5(e){return e.replace(/\$(\d+)$/,"$1")}function Qf(e){for(var r=I5(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 P5(e){return e.replace(/^([A-Z])/,"$$$1")}function I5(e){return e.replace(/^\$([A-Z])/,"$1")}function O5(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 Kt(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 Rn(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=Kt(e)),typeof r!="string"&&(r=Kt(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 Fu(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 Gi(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"?Go[e.v]||e.v:r==null?Fu(e,e.v):Fu(e,r))}function Va(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function r1(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 d={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))d=r[p][g];else if(Array.isArray(d.v)&&(d.f=r[p][g][1],d.v=d.v[0]),d.v===null)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else if(n.sheetStubs)d.t="z";else continue;else typeof d.v=="number"?d.t="n":typeof d.v=="boolean"?d.t="b":d.v instanceof Date?(d.z=n.dateNF||gr[14],n.cellDates?(d.t="d",d.w=wa(d.z,bn(d.v))):(d.t="n",d.v=bn(d.v),d.w=wa(d.z,d.v))):d.t="s";if(i)a[w]||(a[w]=[]),a[w][v]&&a[w][v].z&&(d.z=a[w][v].z),a[w][v]=d;else{var y=Kt({c:v,r:w});a[y]&&a[y].z&&(d.z=a[y].z),a[y]=d}}}return c.s.c<1e7&&(a["!ref"]=Lr(c)),a}function Ms(e,r){return r1(null,e,r)}function D5(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 R5(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function M5(e,r){return r||(r=ke(4)),r.write_shift(2,0),r.write_shift(2,0),r}function ec(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(R5(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function B5(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 j5=ec;function U5(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),M5({},r),t?r.slice(0,r.l):r}function Kn(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 Xa(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 Ya(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function Ka(e,r){return r==null&&(r=ke(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var z5=an,n1=Ur;function tc(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function rl(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 W5=an,Mf=tc,rc=rl;function i1(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?tl([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Oa(r,0)>>2;return t?i/100:i}function a1(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 s1(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 H5(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 $a=s1,Bs=H5;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 q5(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=Q5[i];c&&(r.rgb=Uu(c));break;case 2:r.rgb=Uu([s,o,f]);break;case 3:r.theme=i;break}return a!=0&&(r.tint=a>0?a/32767:a/32768),r}function nl(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 G5(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 V5(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 o1=2,kn=3,H0=11,il=19,q0=64,X5=65,Y5=71,K5=4108,$5=4126,qr=80,Cu={1:{n:"CodePage",t:o1},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:H0},12:{n:"HeadingPairs",t:K5},13:{n:"TitlesOfParts",t:$5},14:{n:"Manager",t:qr},15:{n:"Company",t:qr},16:{n:"LinksUpToDate",t:H0},17:{n:"CharacterCount",t:kn},19:{n:"SharedDoc",t:H0},22:{n:"HyperlinksChanged",t:H0},23:{n:"AppVersion",t:kn,p:"version"},24:{n:"DigSig",t:X5},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:il},2147483651:{n:"Behavior",t:il},1919054434:{}},ku={1:{n:"CodePage",t:o1},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:q0},11:{n:"LastPrinted",t:q0},12:{n:"CreatedDate",t:q0},13:{n:"ModifiedDate",t:q0},14:{n:"PageCount",t:kn},15:{n:"WordCount",t:kn},16:{n:"CharCount",t:kn},17:{n:"Thumbnail",t:Y5},18:{n:"Application",t:qr},19:{n:"DocSecurity",t:kn},255:{},2147483648:{n:"Locale",t:il},2147483651:{n:"Behavior",t:il},1919054434:{}};function J5(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var Z5=J5([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]),Q5=_n(Z5),Go={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},eg={"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"},G0={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 l1(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function f1(e,r){var t=c5(eg),n=[],i;n[n.length]=Fr,n[n.length]=Xe("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 Xe("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]=Xe("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:G0[f][r.bookType]||G0[f].xlsx}))},s=function(f){(e[f]||[]).forEach(function(c){n[n.length]=Xe("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:G0[f][r.bookType]||G0[f].xlsx})})},o=function(f){(e[f]||[]).forEach(function(c){n[n.length]=Xe("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 Bt={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 c1(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Cs(e){var r=[Fr,Xe("Relationships",null,{xmlns:Br.RELS})];return Yr(e["!id"]).forEach(function(t){r[r.length]=Xe("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Xt(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,[Bt.HLINK,Bt.XPATH,Bt.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 tg(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 Pu(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 rg(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 ng(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(Pu(e[t][0],e[t][1])),r.push(rg("",e[t][0]));return r.push(Pu("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function u1(){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 '+K0.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 vf(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=Yt(r),n[n.length]=t?Xe(e,r,t):Vr(e,r))}function h1(e,r){var t=r||{},n=[Fr,Xe("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&&vf("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Rf(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&vf("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Rf(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&&vf(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"]],d1=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function p1(e){var r=[],t=Xe;return e||(e={}),e.Application="SheetJS",r[r.length]=Fr,r[r.length]=Xe("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 g1(e){var r=[Fr,Xe("Properties",null,{xmlns:Br.CUST_PROPS,"xmlns:vt":Br.vt})];if(!e)return r.join("");var t=1;return Yr(e).forEach(function(i){++t,r[r.length]=Xe("property",b5(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 Iu={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 ig(e,r){var t=[];return Yr(Iu).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(Vr(Iu[n[1]]||n[1],i))}}),Xe("DocumentProperties",t.join(""),{xmlns:In.o})}function ag(e,r){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Yr(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(Xe(yu(a),o,{"dt:dt":f}))}}),r&&Yr(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(Xe(yu(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+In.o+'">'+i.join("")+"</"+n+">"}function sg(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 Ou(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=sg(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 Gr([t,n])}var m1=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function og(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 Du(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=Gr(u),a.unshift(f),s+=8+f.length}for(o=0;o<e.length;++o)if(!(r&&!r[e[o][0]])&&!(m1.indexOf(e[o][0])>-1||d1.indexOf(e[o][0])>-1)&&e[o][1]!=null){var g=e[o][1],d=0;if(r){d=+r[e[o][0]];var w=t[d];if(w.p=="version"&&typeof g=="string"){var v=g.split(".");g=(+v[0]<<16)+(+v[1]||0)}f=Ou(w.t,g)}else{var y=og(g);y==-1&&(y=31,g=String(g)),f=Ou(y,g)}a.push(f),c=ke(8),c.write_shift(4,r?d: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),Gr([n].concat(i).concat(a))}function Ru(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,Zt.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=Du(e,t,n);if(o.push(f),i){var c=Du(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+f.length),o.push(c)}return Gr(o)}function lg(e,r){r||(r=ke(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function fg(e,r){return e.read_shift(r)===1}function un(e,r){return r||(r=ke(2)),r.write_shift(2,+!!e),r}function v1(e){return e.read_shift(2,"u")}function Yn(e,r){return r||(r=ke(2)),r.write_shift(2,e),r}function x1(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 w1(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 cg(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 Gr(i)}function ug(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 hg(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):ug(e,n,t)}function dg(e,r,t){if(t.biff>5)return hg(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 y1(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 Mu(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 pg(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),Mu(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&&Mu(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 gg(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 mg(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 b1(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 nc(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 vg(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 xg(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 wg(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]=cg(e[i]);var a=Gr([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function yg(){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 bg(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 _g(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 Sg(e,r,t,n){var i=ke(10);return qa(e,r,n,i),i.write_shift(4,t),i}function Ag(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 Tg(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 Ng(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 Bu(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 Eg(e){var r=ke(8);return r.write_shift(4,0),r.write_shift(2,0),r.write_shift(2,0),r}function Lg(e,r,t,n,i,a){var s=ke(8);return qa(e,r,n,s),x1(t,a,s),s}function Fg(e,r,t,n){var i=ke(14);return qa(e,r,n,i),Ha(t,i),i}function Cg(e,r,t){if(t.biff<8)return kg(e,r,t);for(var n=[],i=e.l+r,a=e.read_shift(t.biff>8?4:2);a--!==0;)n.push(gg(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function kg(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=w1(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function Pg(e){var r=ke(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)b1(e[t],r);return r}function Ig(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 Gr([r,pg(e[1])])}function Og(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 Dg(e){return e||(e=ke(4)),e.write_shift(2,1),e.write_shift(2,1),e}function Rg(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 Mg(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 Bg(e){for(var r=ke(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}function jg(e,r,t){var n=ke(15);return Xo(n,e,r),n.write_shift(8,t,"f"),n}function Ug(e,r,t){var n=ke(9);return Xo(n,e,r),n.write_shift(2,t),n}var zg=(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=Vf({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),d=!1,w=!1;switch(p){case 2:break;case 3:break;case 48:d=!0,g=!0;break;case 49:d=!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,y=521;p==2&&(v=u.read_shift(2)),u.l+=3,p!=2&&(v=u.read_shift(4)),v>1048576&&(v=1e6),p!=2&&(y=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:y-10-(d?264:0)),K=w?32:11;u.l<M&&u[u.l]!=13;)switch(k={},k.name=$0.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":(!d||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=y-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=y;var L=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[++L]=[],P=0,P=0;P!=A.length;++P){var R=u.slice(u.l,u.l+A[P].len);u.l+=A[P].len,Pn(R,0);var G=$0.utils.decode(S,R);switch(A[P].type){case"C":G.trim().length&&(c[L][P]=G.replace(/\s+$/,""));break;case"D":G.length===8?c[L][P]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):c[L][P]=G;break;case"F":c[L][P]=parseFloat(G.trim());break;case"+":case"I":c[L][P]=w?R.read_shift(-4,"i")^2147483648:R.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":c[L][P]=!0;break;case"N":case"F":c[L][P]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!g)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));c[L][P]="##MEMO##"+(w?parseInt(G.trim(),10):R.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(c[L][P]=+G||0);break;case"@":c[L][P]=new Date(R.read_shift(-8,"f")-621356832e5);break;case"T":c[L][P]=new Date((R.read_shift(4)-2440588)*864e5+R.read_shift(4));break;case"Y":c[L][P]=R.read_shift(4,"i")/1e4+R.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[L][P]=-R.read_shift(-8,"f");break;case"B":if(d&&A[P].len==8){c[L][P]=R.read_shift(8,"f");break}case"G":case"P":R.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 Va(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&&Do(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=yn(),p=fl(o,{header:1,raw:!0,cellDates:!0}),g=p[0],d=p.slice(1),w=o["!cols"]||[],v=0,y=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(y=0;y<1024;++y)if(g.indexOf(g[v]+"_"+y)==-1){g[v]+="_"+y;break}}}}var A=lr(o["!ref"]),k=[],M=[],K=[];for(v=0;v<=A.e.c-A.s.c;++v){var L="",P="",R=0,G=[];for(y=0;y<d.length;++y)d[y][v]!=null&&G.push(d[y][v]);if(G.length==0||g[v]==null){k[v]="?";continue}for(y=0;y<G.length;++y){switch(typeof G[y]){case"number":P="B";break;case"string":P="C";break;case"boolean":P="L";break;case"object":P=G[y]instanceof Date?"D":"C";break;default:P="C"}R=Math.max(R,String(G[y]).length),L=L&&L!=P?"C":P}R>250&&(R=250),P=((w[v]||{}).DBF||{}).type,P=="C"&&w[v].DBF.len>R&&(R=w[v].DBF.len),L=="B"&&P=="N"&&(L="N",K[v]=w[v].DBF.dec,R=w[v].DBF.len),M[v]=L=="C"||P=="N"?R:a[L]||0,S+=M[v],k[v]=L}var E=u.next(32);for(E.write_shift(4,318902576),E.write_shift(4,d.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[Sh]||3)<<8),v=0,y=0;v<g.length;++v)if(g[v]!=null){var T=u.next(32),W=(g[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T.write_shift(1,W,"sbcs"),T.write_shift(1,k[v]=="?"?"C":k[v],"sbcs"),T.write_shift(4,y),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),y+=M[v]||a[k[v]]||0}var X=u.next(264);for(X.write_shift(4,13),v=0;v<65;++v)X.write_shift(4,0);for(v=0;v<d.length;++v){var fe=u.next(S);for(fe.write_shift(1,0),y=0;y<g.length;++y)if(g[y]!=null)switch(k[y]){case"L":fe.write_shift(1,d[v][y]==null?63:d[v][y]?84:70);break;case"B":fe.write_shift(8,d[v][y]||0,"f");break;case"N":var Q="0";for(typeof d[v][y]=="number"&&(Q=d[v][y].toFixed(K[y]||0)),_=0;_<M[y]-Q.length;++_)fe.write_shift(1,32);fe.write_shift(1,Q,"sbcs");break;case"D":d[v][y]?(fe.write_shift(4,("0000"+d[v][y].getFullYear()).slice(-4),"sbcs"),fe.write_shift(2,("00"+(d[v][y].getMonth()+1)).slice(-2),"sbcs"),fe.write_shift(2,("00"+d[v][y].getDate()).slice(-2),"sbcs")):fe.write_shift(8,"00000000","sbcs");break;case"C":var J=String(d[v][y]!=null?d[v][y]:"").slice(0,M[y]);for(fe.write_shift(1,J,"sbcs"),_=0;_<M[y]-J.length;++_)fe.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}})(),Wg=(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("+Yr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(g,d){var w=e[d];return typeof w=="number"?lu(w):w},n=function(g,d,w){var v=d.charCodeAt(0)-32<<4|w.charCodeAt(0)-48;return v==59?g:lu(v)};e["|"]=254;function i(g,d){switch(d.type){case"base64":return a(qi(g),d);case"binary":return a(g,d);case"buffer":return a(Ut&&Buffer.isBuffer(g)?g.toString("binary"):Wo(g),d);case"array":return a(vl(g),d)}throw new Error("Unrecognized type "+d.type)}function a(g,d){var w=g.split(/[\n\r]+/),v=-1,y=-1,_=0,S=0,A=[],k=[],M=null,K={},L=[],P=[],R=[],G=0,E;for(+d.codepage>=0&&Do(+d.codepage);_!==w.length;++_){G=0;var T=w[_].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),W=T.replace(/;;/g,"\0").split(";").map(function(I){return I.replace(/\u0000/g,";")}),X=W[0],fe;if(T.length>0)switch(X){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":W[1].charAt(0)=="P"&&k.push(T.slice(3).replace(/;;/g,";"));break;case"C":var Q=!1,J=!1,oe=!1,ne=!1,ge=-1,ye=-1;for(S=1;S<W.length;++S)switch(W[S].charAt(0)){case"A":break;case"X":y=parseInt(W[S].slice(1))-1,J=!0;break;case"Y":for(v=parseInt(W[S].slice(1))-1,J||(y=0),E=A.length;E<=v;++E)A[E]=[];break;case"K":fe=W[S].slice(1),fe.charAt(0)==='"'?fe=fe.slice(1,fe.length-1):fe==="TRUE"?fe=!0:fe==="FALSE"?fe=!1:isNaN(Wi(fe))?isNaN(Mo(fe).getDate())||(fe=hn(fe)):(fe=Wi(fe),M!==null&&Dh(M)&&(fe=jh(fe))),Q=!0;break;case"E":ne=!0;var b=Um(W[S].slice(1),{r:v,c:y});A[v][y]=[A[v][y],b];break;case"S":oe=!0,A[v][y]=[A[v][y],"S5S"];break;case"G":break;case"R":ge=parseInt(W[S].slice(1))-1;break;case"C":ye=parseInt(W[S].slice(1))-1;break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+T)}if(Q&&(A[v][y]&&A[v][y].length==2?A[v][y][0]=fe:A[v][y]=fe,M=null),oe){if(ne)throw new Error("SYLK shared formula cannot have own formula");var F=ge>-1&&A[ge][ye];if(!F||!F[1])throw new Error("SYLK shared formula cannot find base");A[v][y][1]=zm(F[1],{r:v-ge,c:y-ye})}break;case"F":var C=0;for(S=1;S<W.length;++S)switch(W[S].charAt(0)){case"X":y=parseInt(W[S].slice(1))-1,++C;break;case"Y":for(v=parseInt(W[S].slice(1))-1,E=A.length;E<=v;++E)A[E]=[];break;case"M":G=parseInt(W[S].slice(1))/20;break;case"F":break;case"G":break;case"P":M=k[parseInt(W[S].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(R=W[S].slice(1).split(" "),E=parseInt(R[0],10);E<=parseInt(R[1],10);++E)G=parseInt(R[2],10),P[E-1]=G===0?{hidden:!0}:{wch:G},ic(P[E-1]);break;case"C":y=parseInt(W[S].slice(1))-1,P[y]||(P[y]={});break;case"R":v=parseInt(W[S].slice(1))-1,L[v]||(L[v]={}),G>0?(L[v].hpt=G,L[v].hpx=N1(G)):G===0&&(L[v].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+T)}C<1&&(M=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+T)}}return L.length>0&&(K["!rows"]=L),P.length>0&&(K["!cols"]=P),d&&d.sheetRows&&(A=A.slice(0,d.sheetRows)),[A,K]}function s(g,d){var w=i(g,d),v=w[0],y=w[1],_=Ms(v,d);return Yr(y).forEach(function(S){_[S]=y[S]}),_}function o(g,d){return Va(s(g,d),d)}function f(g,d,w,v){var y="C;Y"+(w+1)+";X"+(v+1)+";K";switch(g.t){case"n":y+=g.v||0,g.f&&!g.F&&(y+=";E"+sc(g.f,{r:w,c:v}));break;case"b":y+=g.v?"TRUE":"FALSE";break;case"e":y+=g.w||g.v;break;case"d":y+='"'+(g.w||g.v)+'"';break;case"s":y+='"'+g.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return y}function c(g,d){d.forEach(function(w,v){var y="F;W"+(v+1)+" "+(v+1)+" ";w.hidden?y+="0":(typeof w.width=="number"&&!w.wpx&&(w.wpx=al(w.width)),typeof w.wpx=="number"&&!w.wch&&(w.wch=sl(w.wpx)),typeof w.wch=="number"&&(y+=Math.round(w.wch))),y.charAt(y.length-1)!=" "&&g.push(y)})}function u(g,d){d.forEach(function(w,v){var y="F;";w.hidden?y+="M0;":w.hpt?y+="M"+20*w.hpt+";":w.hpx&&(y+="M"+20*ol(w.hpx)+";"),y.length>2&&g.push(y+"R"+(v+1))})}function p(g,d){var w=["ID;PWXL;N;E"],v=[],y=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"+(y.e.r-y.s.r+1)+";X"+(y.e.c-y.s.c+1)+";D"+[y.s.c,y.s.r,y.e.c,y.e.r].join(" "));for(var k=y.s.r;k<=y.e.r;++k)for(var M=y.s.c;M<=y.e.c;++M){var K=Kt({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}})(),Hg=(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(Ut&&Buffer.isBuffer(a)?a.toString("binary"):Wo(a),s);case"array":return r(vl(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(","),d=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(),+d){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(Mo(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 Va(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 d=u.s.r;d<=u.e.r;++d){s(c,-1,0,"BOT");for(var w=u.s.c;w<=u.e.c;++w){var v=Kt({r:d,c:w});if(p=g?(f[d]||[])[w]:f[v],!p){s(c,1,0,"");continue}switch(p.t){case"n":var y=p.w;!y&&p.v!=null&&(y=p.v),y==null?p.f&&!p.F?s(c,1,0,"="+p.f):s(c,1,0,""):s(c,0,y,"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}})(),_1=(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 d=p.split(`
|
|
281
|
+
`),w=-1,v=-1,y=0,_=[];y!==d.length;++y){var S=d[y].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 Va(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=[],d=[],w,v="",y=Rn(p["!ref"]),_=Array.isArray(p),S=y.s.r;S<=y.e.r;++S)for(var A=y.s.c;A<=y.e.c;++A)if(v=Kt({r:S,c:A}),w=_?(p[S]||[])[A]:p[v],!(!w||w.v==null||w.t==="z")){switch(d=["cell",v,"t"],w.t){case"s":case"str":d.push(r(w.v));break;case"n":w.f?(d[2]="vtf",d[3]="n",d[4]=w.v,d[5]=r(w.f)):(d[2]="v",d[3]=w.v);break;case"b":d[2]="vt"+(w.f?"f":"c"),d[3]="nl",d[4]=w.v?"1":"0",d[5]=r(w.f||(w.v?"TRUE":"FALSE"));break;case"d":var k=bn(hn(w.v));d[2]="vtc",d[3]="nd",d[4]=""+k,d[5]=w.w||wa(w.z||gr[14],k);break;case"e":continue}g.push(d.join(":"))}return g.push("sheet:c:"+(y.e.c-y.s.c+1)+":r:"+(y.e.r-y.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}})(),qg=(function(){function e(u,p,g,d,w){w.raw?p[g][d]=u:u===""||(u==="TRUE"?p[g][d]=!0:u==="FALSE"?p[g][d]=!1:isNaN(Wi(u))?isNaN(Mo(u).getDate())?p[g][d]=u:p[g][d]=hn(u):p[g][d]=Wi(u))}function r(u,p){var g=p||{},d=[];if(!u||u.length===0)return d;for(var w=u.split(/[\r\n]/),v=w.length-1;v>=0&&w[v].length===0;)--v;for(var y=10,_=0,S=0;S<=v;++S)_=w[S].indexOf(" "),_==-1?_=w[S].length:_++,y=Math.max(y,_);for(S=0;S<=v;++S){d[S]=[];var A=0;for(e(w[S].slice(0,y).trim(),d,S,A,g),A=1;A<=(w[S].length-y)/10+1;++A)e(w[S].slice(y+(A-1)*10,y+A*10).trim(),d,S,A,g)}return g.sheetRows&&(d=d.slice(0,g.sheetRows)),d}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(u){for(var p={},g=!1,d=0,w=0;d<u.length;++d)(w=u.charCodeAt(d))==34?g=!g:!g&&w in t&&(p[w]=(p[w]||0)+1);w=[];for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&w.push([p[d],d]);if(!w.length){p=n;for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&w.push([p[d],d])}return w.sort(function(v,y){return v[0]-y[0]||n[v[1]]-n[y[1]]}),t[w.pop()[1]]||44}function a(u,p){var g=p||{},d="",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?(d=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(d=u.charAt(4),u=u.slice(6)):d=i(u.slice(0,1024)):g&&g.FS?d=g.FS:d=i(u.slice(0,1024));var y=0,_=0,S=0,A=0,k=0,M=d.charCodeAt(0),K=!1,L=0,P=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
|
|
288
|
+
`);var R=g.dateNF!=null?s5(g.dateNF):null;function G(){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,'"')):Wm(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(Mo(E).getDate())||R&&E.match(R)){T.z=g.dateNF||gr[14];var W=0;R&&E.match(R)&&(E=o5(E,g.dateNF,E.match(R)||[]),W=1),g.cellDates?(T.t="d",T.v=hn(E,W)):(T.t="n",T.v=bn(hn(E,W))),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[y]||(w[y]=[]),w[y][_]=T):w[Kt({c:_,r:y})]=T),A=k+1,P=u.charCodeAt(A),v.e.c<_&&(v.e.c=_),v.e.r<y&&(v.e.r=y),L==M)++_;else if(_=0,++y,g.sheetRows&&g.sheetRows<=y)return!0}e:for(;k<u.length;++k)switch(L=u.charCodeAt(k)){case 34:P===34&&(K=!K);break;case M:case 10:case 13:if(!K&&G())break e;break}return k-A>0&&G(),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="",d=p.type=="string"?[0,0,0,0]:rw(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 $0<"u"||(g=Ut&&Buffer.isBuffer(u)?u.toString("binary"):Wo(u));break;case"array":g=vl(u);break;case"string":g=u;break;default:throw new Error("Unrecognized type "+p.type)}return d[0]==239&&d[1]==187&&d[2]==191?g=Lo(g.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?g=Lo(g):p.type=="binary"&&typeof $0<"u",g.slice(0,19)=="socialcalc:version:"?_1.to_sheet(p.type=="string"?g:Lo(g),p):s(g,p)}function f(u,p){return Va(o(u,p),p)}function c(u){for(var p=[],g=lr(u["!ref"]),d,w=Array.isArray(u),v=g.s.r;v<=g.e.r;++v){for(var y=[],_=g.s.c;_<=g.e.c;++_){var S=Kt({r:v,c:_});if(d=w?(u[v]||[])[_]:u[S],!d||d.v==null){y.push(" ");continue}for(var A=(d.w||(Gi(d),d.w)||"").slice(0,10);A.length<10;)A+=" ";y.push(A+(_===0?" ":""))}p.push(y.join(""))}return p.join(`
|
|
289
|
+
`)}return{to_workbook:f,to_sheet:o,from_sheet:c}})(),ju=(function(){function e(b,F,C){if(b){Pn(b,b.l||0);for(var I=C.Enum||ge;b.l<b.length;){var H=b.read_shift(2),le=I[H]||I[65535],ce=b.read_shift(2),ue=b.l+ce,we=le.f&&le.f(b,ce,C);if(b.l=ue,F(we,le,H))return}}}function r(b,F){switch(F.type){case"base64":return t(fi(qi(b)),F);case"binary":return t(fi(b),F);case"buffer":case"array":return t(b,F)}throw"Unsupported type "+F.type}function t(b,F){if(!b)return b;var C=F||{},I=C.dense?[]:{},H="Sheet1",le="",ce=0,ue={},we=[],Pe=[],Re={s:{r:0,c:0},e:{r:0,c:0}},He=C.sheetRows||0;if(b[2]==0&&(b[3]==8||b[3]==9)&&b.length>=16&&b[14]==5&&b[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(b[2]==2)C.Enum=ge,e(b,function(Me,nt,Ue){switch(Ue){case 0:C.vers=Me,Me>=4096&&(C.qpro=!0);break;case 6:Re=Me;break;case 204:Me&&(le=Me);break;case 222:le=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=jh(Me[1].v))),C.qpro&&Me[3]>ce&&(I["!ref"]=Lr(Re),ue[H]=I,we.push(H),I=C.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},ce=Me[3],H=le||"Sheet"+(ce+1),le="");var Ge=C.dense?(I[Me[0].r]||[])[Me[0].c]:I[Kt(Me[0])];if(Ge){Ge.t=Me[1].t,Ge.v=Me[1].v,Me[1].z!=null&&(Ge.z=Me[1].z),Me[1].f!=null&&(Ge.f=Me[1].f);break}C.dense?(I[Me[0].r]||(I[Me[0].r]=[]),I[Me[0].r][Me[0].c]=Me[1]):I[Kt(Me[0])]=Me[1];break}},C);else if(b[2]==26||b[2]==14)C.Enum=ye,b[2]==14&&(C.qpro=!0,b.l=0),e(b,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&&(I["!ref"]=Lr(Re),ue[H]=I,we.push(H),I=C.dense?[]:{},Re={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?(I[Me[0].r]||(I[Me[0].r]=[]),I[Me[0].r][Me[0].c]=Me[1]):I[Kt(Me[0])]=Me[1],Re.e.c<Me[0].c&&(Re.e.c=Me[0].c),Re.e.r<Me[0].r&&(Re.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 "+b[2]);if(I["!ref"]=Lr(Re),ue[le||H]=I,we.push(le||H),!Pe.length)return{SheetNames:we,Sheets:ue};for(var Ke={},Ee=[],se=0;se<Pe.length;++se)ue[we[se]]?(Ee.push(Pe[se]||we[se]),Ke[Pe[se]]=ue[Pe[se]]||ue[we[se]]):(Ee.push(Pe[se]),Ke[Pe[se]]={"!ref":"A1"});return{SheetNames:Ee,Sheets:Ke}}function n(b,F){var C=F||{};if(+C.codepage>=0&&Do(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var I=yn(),H=lr(b["!ref"]),le=Array.isArray(b),ce=[];Ye(I,0,a(1030)),Ye(I,6,f(H));for(var ue=Math.min(H.e.r,8191),we=H.s.r;we<=ue;++we)for(var Pe=Xr(we),Re=H.s.c;Re<=H.e.c;++Re){we===H.s.r&&(ce[Re]=nn(Re));var He=ce[Re]+Pe,Ke=le?(b[we]||[])[Re]:b[He];if(!(!Ke||Ke.t=="z"))if(Ke.t=="n")(Ke.v|0)==Ke.v&&Ke.v>=-32768&&Ke.v<=32767?Ye(I,13,d(we,Re,Ke.v)):Ye(I,14,v(we,Re,Ke.v));else{var Ee=Gi(Ke);Ye(I,15,p(we,Re,Ee.slice(0,239)))}}return Ye(I,1),I.end()}function i(b,F){var C=F||{};if(+C.codepage>=0&&Do(+C.codepage),C.type=="string")throw new Error("Cannot write WK3 to JS string");var I=yn();Ye(I,0,s(b));for(var H=0,le=0;H<b.SheetNames.length;++H)(b.Sheets[b.SheetNames[H]]||{})["!ref"]&&Ye(I,27,ne(b.SheetNames[H],le++));var ce=0;for(H=0;H<b.SheetNames.length;++H){var ue=b.Sheets[b.SheetNames[H]];if(!(!ue||!ue["!ref"])){for(var we=lr(ue["!ref"]),Pe=Array.isArray(ue),Re=[],He=Math.min(we.e.r,8191),Ke=we.s.r;Ke<=He;++Ke)for(var Ee=Xr(Ke),se=we.s.c;se<=we.e.c;++se){Ke===we.s.r&&(Re[se]=nn(se));var Me=Re[se]+Ee,nt=Pe?(ue[Ke]||[])[se]:ue[Me];if(!(!nt||nt.t=="z"))if(nt.t=="n")Ye(I,23,G(Ke,se,ce,nt.v));else{var Ue=Gi(nt);Ye(I,22,L(Ke,se,ce,Ue.slice(0,239)))}}++ce}}return Ye(I,1),I.end()}function a(b){var F=ke(2);return F.write_shift(2,b),F}function s(b){var F=ke(26);F.write_shift(2,4096),F.write_shift(2,4),F.write_shift(4,0);for(var C=0,I=0,H=0,le=0;le<b.SheetNames.length;++le){var ce=b.SheetNames[le],ue=b.Sheets[ce];if(!(!ue||!ue["!ref"])){++H;var we=Rn(ue["!ref"]);C<we.e.r&&(C=we.e.r),I<we.e.c&&(I=we.e.c)}}return C>8191&&(C=8191),F.write_shift(2,C),F.write_shift(1,H),F.write_shift(1,I),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(1,1),F.write_shift(1,2),F.write_shift(4,0),F.write_shift(4,0),F}function o(b,F,C){var I={s:{c:0,r:0},e:{c:0,r:0}};return F==8&&C.qpro?(I.s.c=b.read_shift(1),b.l++,I.s.r=b.read_shift(2),I.e.c=b.read_shift(1),b.l++,I.e.r=b.read_shift(2),I):(I.s.c=b.read_shift(2),I.s.r=b.read_shift(2),F==12&&C.qpro&&(b.l+=2),I.e.c=b.read_shift(2),I.e.r=b.read_shift(2),F==12&&C.qpro&&(b.l+=2),I.s.c==65535&&(I.s.c=I.e.c=I.s.r=I.e.r=0),I)}function f(b){var F=ke(8);return F.write_shift(2,b.s.c),F.write_shift(2,b.s.r),F.write_shift(2,b.e.c),F.write_shift(2,b.e.r),F}function c(b,F,C){var I=[{c:0,r:0},{t:"n",v:0},0,0];return C.qpro&&C.vers!=20768?(I[0].c=b.read_shift(1),I[3]=b.read_shift(1),I[0].r=b.read_shift(2),b.l+=2):(I[2]=b.read_shift(1),I[0].c=b.read_shift(2),I[0].r=b.read_shift(2)),I}function u(b,F,C){var I=b.l+F,H=c(b,F,C);if(H[1].t="s",C.vers==20768){b.l++;var le=b.read_shift(1);return H[1].v=b.read_shift(le,"utf8"),H}return C.qpro&&b.l++,H[1].v=b.read_shift(I-b.l,"cstr"),H}function p(b,F,C){var I=ke(7+C.length);I.write_shift(1,255),I.write_shift(2,F),I.write_shift(2,b),I.write_shift(1,39);for(var H=0;H<I.length;++H){var le=C.charCodeAt(H);I.write_shift(1,le>=128?95:le)}return I.write_shift(1,0),I}function g(b,F,C){var I=c(b,F,C);return I[1].v=b.read_shift(2,"i"),I}function d(b,F,C){var I=ke(7);return I.write_shift(1,255),I.write_shift(2,F),I.write_shift(2,b),I.write_shift(2,C,"i"),I}function w(b,F,C){var I=c(b,F,C);return I[1].v=b.read_shift(8,"f"),I}function v(b,F,C){var I=ke(13);return I.write_shift(1,255),I.write_shift(2,F),I.write_shift(2,b),I.write_shift(8,C,"f"),I}function y(b,F,C){var I=b.l+F,H=c(b,F,C);if(H[1].v=b.read_shift(8,"f"),C.qpro)b.l=I;else{var le=b.read_shift(2);k(b.slice(b.l,b.l+le),H),b.l+=le}return H}function _(b,F,C){var I=F&32768;return F&=-32769,F=(I?b:0)+(F>=8192?F-16384:F),(I?"":"$")+(C?nn(F):Xr(F))}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(b,F){Pn(b,0);for(var C=[],I=0,H="",le="",ce="",ue="";b.l<b.length;){var we=b[b.l++];switch(we){case 0:C.push(b.read_shift(8,"f"));break;case 1:le=_(F[0].c,b.read_shift(2),!0),H=_(F[0].r,b.read_shift(2),!1),C.push(le+H);break;case 2:{var Pe=_(F[0].c,b.read_shift(2),!0),Re=_(F[0].r,b.read_shift(2),!1);le=_(F[0].c,b.read_shift(2),!0),H=_(F[0].r,b.read_shift(2),!1),C.push(Pe+Re+":"+le+H)}break;case 3:if(b.l<b.length){console.error("WK1 premature formula end");return}break;case 4:C.push("("+C.pop()+")");break;case 5:C.push(b.read_shift(2));break;case 6:{for(var He="";we=b[b.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:ue=C.pop(),ce=C.pop(),C.push(["AND","OR"][we-20]+"("+ce+","+ue+")");break;default:if(we<32&&A[we])ue=C.pop(),ce=C.pop(),C.push(ce+A[we]+ue);else if(S[we]){if(I=S[we][1],I==69&&(I=b[b.l++]),I>C.length){console.error("WK1 bad formula parse 0x"+we.toString(16)+":|"+C.join("|")+"|");return}var Ke=C.slice(-I);C.length-=I,C.push(S[we][0]+"("+Ke.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?F[1].f=""+C[0]:console.error("WK1 bad formula parse |"+C.join("|")+"|")}function M(b){var F=[{c:0,r:0},{t:"n",v:0},0];return F[0].r=b.read_shift(2),F[3]=b[b.l++],F[0].c=b[b.l++],F}function K(b,F){var C=M(b);return C[1].t="s",C[1].v=b.read_shift(F-4,"cstr"),C}function L(b,F,C,I){var H=ke(6+I.length);H.write_shift(2,b),H.write_shift(1,C),H.write_shift(1,F),H.write_shift(1,39);for(var le=0;le<I.length;++le){var ce=I.charCodeAt(le);H.write_shift(1,ce>=128?95:ce)}return H.write_shift(1,0),H}function P(b,F){var C=M(b);C[1].v=b.read_shift(2);var I=C[1].v>>1;if(C[1].v&1)switch(I&7){case 0:I=(I>>3)*5e3;break;case 1:I=(I>>3)*500;break;case 2:I=(I>>3)/20;break;case 3:I=(I>>3)/200;break;case 4:I=(I>>3)/2e3;break;case 5:I=(I>>3)/2e4;break;case 6:I=(I>>3)/16;break;case 7:I=(I>>3)/64;break}return C[1].v=I,C}function R(b,F){var C=M(b),I=b.read_shift(4),H=b.read_shift(4),le=b.read_shift(2);if(le==65535)return I===0&&H===3221225472?(C[1].t="e",C[1].v=15):I===0&&H===3489660928?(C[1].t="e",C[1].v=42):C[1].v=0,C;var ce=le&32768;return le=(le&32767)-16446,C[1].v=(1-ce*2)*(H*Math.pow(2,le+32)+I*Math.pow(2,le)),C}function G(b,F,C,I){var H=ke(14);if(H.write_shift(2,b),H.write_shift(1,C),H.write_shift(1,F),I==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var le=0,ce=0,ue=0,we=0;return I<0&&(le=1,I=-I),ce=Math.log2(I)|0,I/=Math.pow(2,ce-31),we=I>>>0,(we&2147483648)==0&&(I/=2,++ce,we=I>>>0),I-=we,we|=2147483648,we>>>=0,I*=Math.pow(2,32),ue=I>>>0,H.write_shift(4,ue),H.write_shift(4,we),ce+=16383+(le?32768:0),H.write_shift(2,ce),H}function E(b,F){var C=R(b);return b.l+=F-14,C}function T(b,F){var C=M(b),I=b.read_shift(4);return C[1].v=I>>6,C}function W(b,F){var C=M(b),I=b.read_shift(8,"f");return C[1].v=I,C}function X(b,F){var C=W(b);return b.l+=F-10,C}function fe(b,F){return b[b.l+F-1]==0?b.read_shift(F,"cstr"):""}function Q(b,F){var C=b[b.l++];C>F-1&&(C=F-1);for(var I="";I.length<C;)I+=String.fromCharCode(b[b.l++]);return I}function J(b,F,C){if(!(!C.qpro||F<21)){var I=b.read_shift(1);b.l+=17,b.l+=1,b.l+=2;var H=b.read_shift(F-21,"cstr");return[I,H]}}function oe(b,F){for(var C={},I=b.l+F;b.l<I;){var H=b.read_shift(2);if(H==14e3){for(C[H]=[0,""],C[H][0]=b.read_shift(2);b[b.l];)C[H][1]+=String.fromCharCode(b[b.l]),b.l++;b.l++}}return C}function ne(b,F){var C=ke(5+b.length);C.write_shift(2,14e3),C.write_shift(2,F);for(var I=0;I<b.length;++I){var H=b.charCodeAt(I);C[C.l++]=H>127?95:H}return C[C.l++]=0,C}var ge={0:{n:"BOF",f:v1},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:y},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:fe},222:{n:"SHEETNAMELP",f:Q},65535:{n:""}},ye={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:R},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:W},40:{n:"FORMULA28",f:X},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:fe},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}})(),Gg=/^\s|\s$|[\t\n\r]/;function S1(e,r){if(!r.bookSST)return"";var t=[Fr];t[t.length]=Xe("sst",null,{xmlns:Rs[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(Gg)&&(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 Vg(e){return[e.read_shift(4),e.read_shift(4)]}function Xg(e,r){return r||(r=ke(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var Yg=B5;function Kg(e){var r=yn();Be(r,159,Xg(e));for(var t=0;t<e.length;++t)Be(r,19,Yg(e[t]));return Be(r,160),r.end()}function $g(e){for(var r=[],t=e.split(""),n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function A1(e){var r=0,t,n=$g(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 Jg=(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(Ut&&Buffer.isBuffer(i)?i.toString("binary"):Wo(i),a);case"array":return r(vl(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,d=0,w,v=-1;w=g.exec(u);){switch(w[0]){case"\\cell":var y=u.slice(d,g.lastIndex-w[0].length);if(y[0]==" "&&(y=y.slice(1)),++v,y.length){var _={v:y,t:"s"};Array.isArray(o)?o[p][v]=_:o[Kt({r:p,c:v})]=_}break}d=g.lastIndex}v>c.e.c&&(c.e.c=v)}),o["!ref"]=Lr(c),o}function t(i,a){return Va(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=Kt({r:c,c:u});o=f?(i[c]||[])[u]:i[p],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(Gi(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 Uu(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 Zg=6,Hi=Zg;function al(e){return Math.floor((e+Math.round(128/Hi)/256)*Hi)}function sl(e){return Math.floor((e-5)/Hi*100+.5)/100}function Bf(e){return Math.round((e*Hi+5)/Hi*256)/256}function ic(e){e.width?(e.wpx=al(e.width),e.wch=sl(e.wpx),e.MDW=Hi):e.wpx?(e.wch=sl(e.wpx),e.width=Bf(e.wch),e.MDW=Hi):typeof e.wch=="number"&&(e.width=Bf(e.wch),e.wpx=al(e.width),e.MDW=Hi),e.customWidth&&delete e.customWidth}var Qg=96,T1=Qg;function ol(e){return e*96/T1}function N1(e){return e*T1/96}function em(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]=Xe("numFmt",null,{numFmtId:n,formatCode:Yt(e[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=Xe("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function tm(e){var r=[];return r[r.length]=Xe("cellXfs",null),e.forEach(function(t){r[r.length]=Xe("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=Xe("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function E1(e,r){var t=[Fr,Xe("styleSheet",null,{xmlns:Rs[0],"xmlns:vt":Br.vt})],n;return e.SSF&&(n=em(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=tm(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 rm(e,r){var t=e.read_shift(2),n=an(e);return[t,n]}function nm(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 im(e,r,t){var n={};n.sz=e.read_shift(2)/20;var i=G5(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=q5(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=an(e),n}function am(e,r){r||(r=ke(153)),r.write_shift(2,e.sz*20),V5(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),nl(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 sm=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],xf,om=Ni;function zu(e,r){r||(r=ke(84)),xf||(xf=Vf(sm));var t=xf[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(nl({auto:1},r),nl({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 lm(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 L1(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 fm=Ni;function cm(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 um(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),rl(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function hm(e,r,t){var n=ke(2052);return n.write_shift(4,e),rl(r,n),rl(t,n),n.length>n.l?n.slice(0,n.l):n}function dm(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,nm(i,r[i]))}),Be(e,616))}}function pm(e){var r=1;Be(e,611,ui(r)),Be(e,43,am({sz:12,color:{theme:1},name:"Calibri",family:2})),Be(e,612)}function gm(e){var r=2;Be(e,603,ui(r)),Be(e,45,zu({patternType:"none"})),Be(e,45,zu({patternType:"gray125"})),Be(e,604)}function mm(e){var r=1;Be(e,613,ui(r)),Be(e,46,cm()),Be(e,614)}function vm(e){var r=1;Be(e,626,ui(r)),Be(e,47,L1({numFmtId:0},65535)),Be(e,627)}function xm(e,r){Be(e,617,ui(r.length)),r.forEach(function(t){Be(e,47,L1(t,0))}),Be(e,618)}function wm(e){var r=1;Be(e,619,ui(r)),Be(e,48,um({xfId:0,name:"Normal"})),Be(e,620)}function ym(e){var r=0;Be(e,505,ui(r)),Be(e,506)}function bm(e){var r=0;Be(e,508,hm(r,"TableStyleMedium9","PivotStyleMedium4")),Be(e,509)}function _m(e,r){var t=yn();return Be(t,278),dm(t,e.SSF),pm(t),gm(t),mm(t),vm(t),xm(t,r.cellXfs),wm(t),ym(t),bm(t),Be(t,279),t.end()}function F1(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 Sm(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:an(e)}}function Am(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 Tm(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Nm(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 Em(e,r){var t=ke(8+2*r.length);return t.write_shift(4,e),Ur(r,t),t.slice(0,t.l)}function Lm(e){return e.l+=4,e.read_shift(4)!=0}function Fm(e,r){var t=ke(8);return t.write_shift(4,e),t.write_shift(4,1),t}function Cm(){var e=yn();return Be(e,332),Be(e,334,ui(1)),Be(e,335,Am({name:"XLDAPR",version:12e4,flags:3496657072})),Be(e,336),Be(e,339,Em(1,"XLDAPR")),Be(e,52),Be(e,35,ui(514)),Be(e,4096,ui(0)),Be(e,4097,Yn(1)),Be(e,36),Be(e,53),Be(e,340),Be(e,337,Fm(1)),Be(e,51,Nm([[1,0]])),Be(e,338),Be(e,333),e.end()}function C1(){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 km(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=Kt(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Es=1024;function k1(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[Xe("xml",null,{"xmlns:v":In.v,"xmlns:o":In.o,"xmlns:x":In.x,"xmlns:mv":In.mv}).replace(/\/>/,">"),Xe("o:shapelayout",Xe("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Xe("v:shapetype",[Xe("v:stroke",null,{joinstyle:"miter"}),Xe("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"?Xe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Xe("v:fill",f,o),u={on:"t",obscured:"t"};++Es,i=i.concat(["<v:shape"+jo({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,Xe("v:shadow",null,u),Xe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Vr("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Vr("x:AutoFill","False"),Vr("x:Row",String(s.r)),Vr("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function P1(e){var r=[Fr,Xe("comments",null,{xmlns:Rs[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(Vr("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(Vr("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 Pm(e,r,t){var n=[Fr,Xe("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(Xe("threadedComment",Vr("text",s.t||""),f))})}),n.push("</ThreadedComments>"),n.join("")}function Im(e){var r=[Fr,Xe("personList",null,{xmlns:Br.TCMNT,"xmlns:x":Rs[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(Xe("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Om(e){var r={};r.iauthor=e.read_shift(4);var t=$a(e);return r.rfx=t.s,r.ref=Kt(t.s),e.l+=16,r}function Dm(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 Rm=an;function Mm(e){return Ur(e.slice(0,54))}function Bm(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,Mm(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,Dm([a,i])),i.t&&i.t.length>0&&Be(r,637,U5(i)),Be(r,636),delete i.iauthor})}),Be(r,634),Be(r,629),r.end()}function jm(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Zt.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var I1=["xlsb","xlsm","xlam","biff8","xla"],Um=(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?"":"$")+Xr(c)}return function(i,a){return r=a,i.replace(e,t)}})(),ac=/(^|[^._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,sc=(function(){return function(r,t){return r.replace(ac,function(n,i,a,s,o,f){var c=Qf(s)-(a?0:t.c),u=Zf(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 zm(e,r){return e.replace(ac,function(t,n,i,a,s,o){return n+(i=="$"?i+a:nn(Qf(a)+r.c))+(s=="$"?s+o:Xr(Zf(o)+r.r))})}function Wm(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 O1(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return D1(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 D1(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 Hm(e,r,t){if(t.biff<8)return D1(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 R1(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return qm(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 qm(e){var r=ya(e),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Gm(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 Vm(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return Xm(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 Xm(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 Ym(e,r,t){var n=(e[e.l++]&96)>>5,i=O1(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function Km(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=O1(e,a,t);return[n,i,s]}function $m(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 Jm(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 Zm(e,r,t){var n=(e[e.l++]&96)>>5,i=Hm(e,r-1,t);return[n,i]}function Qm(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function Wu(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function ev(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 tv(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 rv(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 nv(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function iv(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function M1(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function av(e){return e.read_shift(2),M1(e)}function sv(e){return e.read_shift(2),M1(e)}function ov(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=R1(e,0,t);return[n,i]}function lv(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=Vm(e,0,t);return[n,i]}function fv(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=R1(e,0,t);return[n,i,a]}function cv(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[cx[i],U1[i],n]}function uv(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)]:hv(e);return[i,(a[0]===0?U1:fx)[a[1]]]}function hv(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function dv(e,r,t){e.l+=t&&t.biff==2?3:4}function pv(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 gv(e){return e.l++,Go[e.read_shift(1)]}function mv(e){return e.l++,e.read_shift(2)}function vv(e){return e.l++,e.read_shift(1)!==0}function xv(e){return e.l++,js(e)}function wv(e,r,t){return e.l++,w1(e,r-1,t)}function yv(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]=fg(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=Go[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]=dg(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function bv(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?$a:mg)(e));return i}function _v(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]=yv(e,t.biff);return s}function Sv(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 Av(e,r,t){if(t.biff==5)return Tv(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function Tv(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 Nv(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 Ev(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 Lv(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 Fv(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 Cv=Ni,kv=Ni,Pv=Ni;function Vo(e,r,t){return e.l+=2,[Gm(e)]}function oc(e){return e.l+=6,[]}var Iv=Vo,Ov=oc,Dv=oc,Rv=Vo;function B1(e){return e.l+=2,[v1(e),e.read_shift(2)&1]}var Mv=Vo,Bv=B1,jv=oc,Uv=Vo,zv=Vo,Wv=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Hv(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=Wv[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:i,C:a}}function qv(e){return e.l+=2,[e.read_shift(4)]}function Gv(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function Vv(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function Xv(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Yv(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Kv(e){return e.l+=4,[0,0]}var Hu={1:{n:"PtgExp",f:pv},2:{n:"PtgTbl",f:Pv},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:wv},26:{n:"PtgSheet",f:Gv},27:{n:"PtgEndSheet",f:Vv},28:{n:"PtgErr",f:gv},29:{n:"PtgBool",f:vv},30:{n:"PtgInt",f:mv},31:{n:"PtgNum",f:xv},32:{n:"PtgArray",f:Qm},33:{n:"PtgFunc",f:cv},34:{n:"PtgFuncVar",f:uv},35:{n:"PtgName",f:Sv},36:{n:"PtgRef",f:ov},37:{n:"PtgArea",f:Ym},38:{n:"PtgMemArea",f:Nv},39:{n:"PtgMemErr",f:Cv},40:{n:"PtgMemNoMem",f:kv},41:{n:"PtgMemFunc",f:Ev},42:{n:"PtgRefErr",f:Lv},43:{n:"PtgAreaErr",f:$m},44:{n:"PtgRefN",f:lv},45:{n:"PtgAreaN",f:Zm},46:{n:"PtgMemAreaN",f:Xv},47:{n:"PtgMemNoMemN",f:Yv},57:{n:"PtgNameX",f:Av},58:{n:"PtgRef3d",f:fv},59:{n:"PtgArea3d",f:Km},60:{n:"PtgRefErr3d",f:Fv},61:{n:"PtgAreaErr3d",f:Jm},255:{}},$v={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},Jv={1:{n:"PtgElfLel",f:B1},2:{n:"PtgElfRw",f:Uv},3:{n:"PtgElfCol",f:Iv},6:{n:"PtgElfRwV",f:zv},7:{n:"PtgElfColV",f:Rv},10:{n:"PtgElfRadical",f:Mv},11:{n:"PtgElfRadicalS",f:jv},13:{n:"PtgElfColS",f:Ov},15:{n:"PtgElfColSV",f:Dv},16:{n:"PtgElfRadicalLel",f:Bv},25:{n:"PtgList",f:Hv},29:{n:"PtgSxName",f:qv},255:{}},Zv={0:{n:"PtgAttrNoop",f:Kv},1:{n:"PtgAttrSemi",f:iv},2:{n:"PtgAttrIf",f:rv},4:{n:"PtgAttrChoose",f:ev},8:{n:"PtgAttrGoto",f:tv},16:{n:"PtgAttrSum",f:dv},32:{n:"PtgAttrBaxcel",f:Wu},33:{n:"PtgAttrBaxcel",f:Wu},64:{n:"PtgAttrSpace",f:av},65:{n:"PtgAttrSpaceSemi",f:sv},128:{n:"PtgAttrIfError",f:nv},255:{}};function Qv(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]=_v(e,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=bv(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 ex(e,r,t){for(var n=e.l+r,i,a,s=[];n!=e.l;)r=n-e.l,a=e[e.l],i=Hu[a]||Hu[$v[a]],(a===24||a===25)&&(i=(a===24?Jv:Zv)[e[e.l+1]]),!i||!i.f?Ni(e,r):s.push([i.n,i.f(e,r,t)]);return s}function tx(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 rx={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function nx(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 j1(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 qu(e,r,t){var n=j1(e,r,t);return n=="#REF"?n:nx(n,t)}function Os(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,d,w="";if(!e[0]||!e[0][0])return"";for(var v=-1,y="",_=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:y=pr(" ",e[0][v][1][1]);break;case 1:y=pr("\r",e[0][v][1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}c=c+y,v=-1}o.push(c+rx[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=Co(A[1][1],s,i),o.push(ko(u,a));break;case"PtgRefN":u=t?Co(A[1][1],t,i):A[1][1],o.push(ko(u,a));break;case"PtgRef3d":p=A[1][1],u=Co(A[1][2],s,i),w=qu(n,p,i),o.push(w+"!"+ko(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":d=Lu(A[1][1],t?{s:t}:s,i),o.push(mf(d,i));break;case"PtgArea":d=Lu(A[1][1],s,i),o.push(mf(d,i));break;case"PtgArea3d":p=A[1][1],d=A[1][2],w=qu(n,p,i),o.push(w+"!"+mf(d,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":g=A[1][2];var L=(n.names||[])[g-1]||(n[0]||[])[g],P=L?L.Name:"SH33TJSNAME"+String(g);P&&P.slice(0,6)=="_xlfn."&&!i.xlfn&&(P=P.slice(6)),o.push(P);break;case"PtgNameX":var R=A[1][1];g=A[1][2];var G;if(i.biff<=5)R<0&&(R=-R),n[R]&&(G=n[R][g]);else{var E="";if(((n[R]||[])[0]||[])[0]==14849||(((n[R]||[])[0]||[])[0]==1025?n[R][g]&&n[R][g].itab>0&&(E=n.SheetNames[n[R][g].itab-1]+"!"):E=n.SheetNames[g-1]+"!"),n[R]&&n[R][g])E+=n[R][g].Name;else if(n[0]&&n[0][g])E+=n[0][g].Name;else{var T=(j1(n,R,i)||"").split(";;");T[g-1]?E=T[g-1]:E+="SH33TJSERRX"}o.push(E);break}G||(G={Name:"SH33TJSERRY"}),o.push(G.Name);break;case"PtgParen":var W="(",X=")";if(v>=0){switch(y="",e[0][v][1][0]){case 2:W=pr(" ",e[0][v][1][1])+W;break;case 3:W=pr("\r",e[0][v][1][1])+W;break;case 4:X=pr(" ",e[0][v][1][1])+X;break;case 5:X=pr("\r",e[0][v][1][1])+X;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}o.push(W+o.pop()+X);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 fe={c:t.c,r:t.r};if(n.sharedf[Kt(u)]){var Q=n.sharedf[Kt(u)];o.push(Os(Q,s,fe,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(Os(c[1],s,fe,n,i)),J=!0;break}J||o.push(A[1])}break;case"PtgArray":o.push("{"+tx(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 ne=!0;switch(A[1][0]){case 4:ne=!1;case 0:y=pr(" ",A[1][1]);break;case 5:ne=!1;case 1:y=pr("\r",A[1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[1][0])}o.push((ne?y:"")+o.pop()+(ne?"":y)),v=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function ix(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 ax(e,r,t,n,i){var a=qa(r,t,i),s=ix(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=Gr([a,s,o,c]);return p}function xl(e,r,t){var n=e.read_shift(4),i=ex(e,n,t),a=e.read_shift(4),s=a>0?Qv(e,a,i,t):null;return[i,s]}var sx=xl,wl=xl,ox=xl,lx=xl,fx={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"},U1={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"},cx={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 ux(e){var r="of:="+e.replace(ac,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function hx(e){return e.replace(/\./,"!")}var Po=typeof Map<"u";function lc(e,r,t){var n=0,i=e.length;if(t){if(Po?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var a=Po?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&&(Po?(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 yl(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=sl(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(t.width=Bf(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){Rh(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 dx(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 px(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 gx(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=Bo(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||"")+Xe("outlinePr",null,c)}!a&&!o||(i[i.length]=Xe("sheetPr",o,s))}var mx=["objects","scenarios","selectLockedCells","selectUnlockedCells"],vx=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function xx(e){var r={sheet:1};return mx.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),vx.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=A1(e.password).toString(16).toUpperCase()),Xe("sheetProtection",null,r)}function wx(e){return z1(e),Xe("pageMargins",null,e)}function yx(e,r){for(var t=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(t[t.length]=Xe("col",null,yl(i,n)));return t[t.length]="</cols>",t.join("")}function bx(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=Rn(i);s.s.r==s.e.r&&(s.e.r=Rn(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}),Xe("autoFilter",null,{ref:i})}function _x(e,r,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Xe("sheetViews",Xe("sheetView",null,i),{})}function Sx(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=Go[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=Vr("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=Vr("v",""+lc(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=Xe("f",Yt(e.f),u)+(e.v!=null?o:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(f.cm=1),Xe("c",o,f)}function Ax(e,r,t,n){var i=[],a=[],s=lr(e["!ref"]),o="",f,c="",u=[],p=0,g=0,d=e["!rows"],w=Array.isArray(e),v={r:c},y,_=-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=Xr(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=Sx(S,f,e,r))!=null&&a.push(o)}(a.length>0||d&&d[p])&&(v={r:c},d&&d[p]&&(y=d[p],y.hidden&&(v.hidden=1),_=-1,y.hpx?_=ol(y.hpx):y.hpt&&(_=y.hpt),_>-1&&(v.ht=_,v.customHeight=1),y.level&&(v.outlineLevel=y.level)),i[i.length]=Xe("row",a.join(""),v))}if(d)for(;p<d.length;++p)d&&d[p]&&(v={r:p+1},y=d[p],y.hidden&&(v.hidden=1),_=-1,y.hpx?_=ol(y.hpx):y.hpt&&(_=y.hpt),_>-1&&(v.ht=_,v.customHeight=1),y.level&&(v.outlineLevel=y.level),i[i.length]=Xe("row","",v));return i.join("")}function W1(e,r,t,n){var i=[Fr,Xe("worksheet",null,{xmlns:Rs[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=[];gx(f,t,e,r,i),i[i.length]=Xe("dimension",null,{ref:c}),i[i.length]=_x(f,r,e,t),r.sheetFormat&&(i[i.length]=Xe("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]=yx(f,f["!cols"])),i[s=i.length]="<sheetData/>",f["!links"]=[],f["!ref"]!=null&&(o=Ax(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]=xx(f["!protect"])),f["!autofilter"]!=null&&(i[i.length]=bx(f["!autofilter"],f,t,e)),f["!merges"]!=null&&f["!merges"].length>0&&(i[i.length]=px(f["!merges"]));var g=-1,d,w=-1;return f["!links"].length>0&&(i[i.length]="<hyperlinks>",f["!links"].forEach(function(v){v[1].Target&&(d={ref:v[0]},v[1].Target.charAt(0)!="#"&&(w=Xt(n,-1,Yt(v[1].Target).replace(/#.*$/,""),Bt.HLINK),d["r:id"]="rId"+w),(g=v[1].Target.indexOf("#"))>-1&&(d.location=Yt(v[1].Target.slice(g+1))),v[1].Tooltip&&(d.tooltip=Yt(v[1].Tooltip)),i[i.length]=Xe("hyperlink",null,d))}),i[i.length]="</hyperlinks>"),delete f["!links"],f["!margins"]!=null&&(i[i.length]=wx(f["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=Vr("ignoredErrors",Xe("ignoredError",null,{numberStoredAsText:1,sqref:c}))),p.length>0&&(w=Xt(n,-1,"../drawings/drawing"+(e+1)+".xml",Bt.DRAW),i[i.length]=Xe("drawing",null,{"r:id":"rId"+w}),f["!drawing"]=p),f["!comments"].length>0&&(w=Xt(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Bt.VML),i[i.length]=Xe("legacyDrawing",null,{"r:id":"rId"+w}),f["!legacy"]=w),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Tx(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 Nx(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=ol(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,d=u<<10;d<u+1<<10;++d){c.c=d;var w=Array.isArray(t)?(t[c.r]||[])[c.c]:t[Kt(c)];w&&(p<0&&(p=d),g=d)}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 Ex(e,r,t,n){var i=Nx(n,t,r);(i.length>17||(r["!rows"]||[])[n])&&Be(e,0,i)}var Lx=$a,Fx=Bs;function Cx(){}function kx(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=z5(e),t}function Px(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 nl({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),n1(e,t),t.slice(0,t.l)}function Ix(e){var r=Kn(e);return[r]}function Ox(e,r,t){return t==null&&(t=ke(8)),Xa(r,t)}function Dx(e){var r=Ya(e);return[r]}function Rx(e,r,t){return t==null&&(t=ke(4)),Ka(r,t)}function Mx(e){var r=Kn(e),t=e.read_shift(1);return[r,t,"b"]}function Bx(e,r,t){return t==null&&(t=ke(9)),Xa(r,t),t.write_shift(1,e.v?1:0),t}function jx(e){var r=Ya(e),t=e.read_shift(1);return[r,t,"b"]}function Ux(e,r,t){return t==null&&(t=ke(5)),Ka(r,t),t.write_shift(1,e.v?1:0),t}function zx(e){var r=Kn(e),t=e.read_shift(1);return[r,t,"e"]}function Wx(e,r,t){return t==null&&(t=ke(9)),Xa(r,t),t.write_shift(1,e.v),t}function Hx(e){var r=Ya(e),t=e.read_shift(1);return[r,t,"e"]}function qx(e,r,t){return t==null&&(t=ke(8)),Ka(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function Gx(e){var r=Kn(e),t=e.read_shift(4);return[r,t,"s"]}function Vx(e,r,t){return t==null&&(t=ke(12)),Xa(r,t),t.write_shift(4,r.v),t}function Xx(e){var r=Ya(e),t=e.read_shift(4);return[r,t,"s"]}function Yx(e,r,t){return t==null&&(t=ke(8)),Ka(r,t),t.write_shift(4,r.v),t}function Kx(e){var r=Kn(e),t=js(e);return[r,t,"n"]}function $x(e,r,t){return t==null&&(t=ke(16)),Xa(r,t),Ha(e.v,t),t}function Jx(e){var r=Ya(e),t=js(e);return[r,t,"n"]}function Zx(e,r,t){return t==null&&(t=ke(12)),Ka(r,t),Ha(e.v,t),t}function Qx(e){var r=Kn(e),t=i1(e);return[r,t,"n"]}function e4(e,r,t){return t==null&&(t=ke(12)),Xa(r,t),a1(e.v,t),t}function t4(e){var r=Ya(e),t=i1(e);return[r,t,"n"]}function r4(e,r,t){return t==null&&(t=ke(8)),Ka(r,t),a1(e.v,t),t}function n4(e){var r=Kn(e),t=ec(e);return[r,t,"is"]}function i4(e){var r=Kn(e),t=an(e);return[r,t,"str"]}function a4(e,r,t){return t==null&&(t=ke(12+4*e.v.length)),Xa(r,t),Ur(e.v,t),t.length>t.l?t.slice(0,t.l):t}function s4(e){var r=Ya(e),t=an(e);return[r,t,"str"]}function o4(e,r,t){return t==null&&(t=ke(8+4*e.v.length)),Ka(r,t),Ur(e.v,t),t.length>t.l?t.slice(0,t.l):t}function l4(e,r,t){var n=e.l+r,i=Kn(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(t.cellFormula){e.l+=2;var o=wl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}function f4(e,r,t){var n=e.l+r,i=Kn(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(t.cellFormula){e.l+=2;var o=wl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}function c4(e,r,t){var n=e.l+r,i=Kn(e);i.r=t["!row"];var a=js(e),s=[i,a,"n"];if(t.cellFormula){e.l+=2;var o=wl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}function u4(e,r,t){var n=e.l+r,i=Kn(e);i.r=t["!row"];var a=an(e),s=[i,a,"str"];if(t.cellFormula){e.l+=2;var o=wl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}var h4=$a,d4=Bs;function p4(e,r){return r==null&&(r=ke(4)),r.write_shift(4,e),r}function g4(e,r){var t=e.l+r,n=$a(e),i=tc(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 m4(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),rc("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 v4(){}function x4(e,r,t){var n=e.l+r,i=s1(e),a=e.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var o=sx(e,n-e.l,t);s[1]=o}else e.l=n;return s}function w4(e,r,t){var n=e.l+r,i=$a(e),a=[i];if(t.cellFormula){var s=lx(e,n-e.l,t);a[1]=s,e.l=n}else e.l=n;return a}function y4(e,r,t){t==null&&(t=ke(18));var n=yl(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 H1=["left","right","top","bottom","header","footer"];function b4(e){var r={};return H1.forEach(function(t){r[t]=js(e)}),r}function _4(e,r){return r==null&&(r=ke(48)),z1(e),H1.forEach(function(t){Ha(e[t],r)}),r}function S4(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function A4(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 T4(e){var r=ke(24);return r.write_shift(4,4),r.write_shift(4,1),Bs(e,r),r}function N4(e,r){return r==null&&(r=ke(66)),r.write_shift(2,e.password?A1(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 E4(){}function L4(){}function F4(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([Kt(f),r.l]),r.c&&a["!comments"].push([Kt(f),r.c]),r.t){case"s":case"str":return i.bookSST?(o=lc(i.Strings,r.v,i.revStrings),f.t="s",f.v=o,s?Be(e,18,Yx(r,f)):Be(e,7,Vx(r,f))):(f.t="str",s?Be(e,17,o4(r,f)):Be(e,6,a4(r,f))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?Be(e,13,r4(r,f)):Be(e,2,e4(r,f)):s?Be(e,16,Zx(r,f)):Be(e,5,$x(r,f)),!0;case"b":return f.t="b",s?Be(e,15,Ux(r,f)):Be(e,4,Bx(r,f)),!0;case"e":return f.t="e",s?Be(e,14,qx(r,f)):Be(e,3,Wx(r,f)),!0}return s?Be(e,12,Rx(r,f)):Be(e,1,Ox(r,f)),!0}function C4(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=Xr(u),Ex(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 d=f?(r[u]||[])[g]:r[a];if(!d){p=!1;continue}p=F4(e,d,u,g,n,r,p)}}Be(e,146)}function k4(e,r){!r||!r["!merges"]||(Be(e,177,p4(r["!merges"].length)),r["!merges"].forEach(function(t){Be(e,176,d4(t))}),Be(e,178))}function P4(e,r){!r||!r["!cols"]||(Be(e,390),r["!cols"].forEach(function(t,n){t&&Be(e,60,y4(n,t))}),Be(e,391))}function I4(e,r){!r||!r["!ref"]||(Be(e,648),Be(e,649,T4(lr(r["!ref"]))),Be(e,650))}function O4(e,r,t){r["!links"].forEach(function(n){if(n[1].Target){var i=Xt(t,-1,n[1].Target.replace(/#.*$/,""),Bt.HLINK);Be(e,494,m4(n,i))}}),delete r["!links"]}function D4(e,r,t,n){if(r["!comments"].length>0){var i=Xt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Bt.VML);Be(e,551,rc("rId"+i)),r["!legacy"]=i}}function R4(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=Rn(a);o.s.r==o.e.r&&(o.e.r=Rn(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 M4(e,r,t){Be(e,133),Be(e,137,A4(r,t)),Be(e,138),Be(e,134)}function B4(e,r){r["!protect"]&&Be(e,535,N4(r["!protect"]))}function j4(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,Px(o,s["!outline"])),Be(i,148,Fx(f)),M4(i,s,t.Workbook),P4(i,s),C4(i,s,e,r),B4(i,s),R4(i,s,t,e),k4(i,s),O4(i,s,n),s["!margins"]&&Be(i,476,_4(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&I4(i,s),D4(i,s,e,n),Be(i,130),i.end()}function U4(e,r){e.l+=10;var t=an(e);return{name:t}}var z4=[["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 W4(e){return!e.Workbook||!e.Workbook.WBProps?"false":w5(e.Workbook.WBProps.date1904)?"true":"false"}var H4="][*?/\\".split("");function q1(e,r){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var t=!0;return H4.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),t}function q4(e,r,t){e.forEach(function(n,i){q1(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 G4(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||[];q4(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)dx(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t)}function G1(e){var r=[Fr];r[r.length]=Xe("workbook",null,{xmlns:Rs[0],"xmlns:r":Br.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(z4.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]=Xe("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]=Xe("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]=Xe("definedName",Yt(o.Ref),f))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function V4(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Mf(e),t.name=an(e),t}function X4(e,r){return r||(r=ke(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),rc(e.strRelID,r),Ur(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function Y4(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 K4(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),n1(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function $4(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),a=W5(e),s=ox(e,0,t),o=tc(e);e.l=n;var f={Name:a,Ptg:s};return i<268435455&&(f.Sheet=i),o&&(f.Comment=o),f}function J4(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,X4(i))}Be(e,144)}function Z4(e,r){r||(r=ke(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return Ur("SheetJS",r),Ur(K0.version,r),Ur(K0.version,r),Ur("7262",r),r.length>r.l?r.slice(0,r.l):r}function Q4(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 e3(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,Q4(i)),Be(e,136))}}function t3(e,r){var t=yn();return Be(t,131),Be(t,128,Z4()),Be(t,153,K4(e.Workbook&&e.Workbook.WBProps||null)),e3(t,e),J4(t,e),Be(t,132),t.end()}function r3(e,r,t){return(r.slice(-4)===".bin"?t3:G1)(e)}function n3(e,r,t,n,i){return(r.slice(-4)===".bin"?j4:W1)(e,t,n,i)}function i3(e,r,t){return(r.slice(-4)===".bin"?_m:E1)(e,t)}function a3(e,r,t){return(r.slice(-4)===".bin"?Kg:S1)(e,t)}function s3(e,r,t){return(r.slice(-4)===".bin"?Bm:P1)(e)}function o3(e){return(e.slice(-4)===".bin"?Cm:C1)()}function l3(e,r){var t=[];return e.Props&&t.push(ig(e.Props,r)),e.Custprops&&t.push(ag(e.Props,e.Custprops)),t.join("")}function f3(){return""}function c3(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var a=[];a.push(Xe("NumberFormat",null,{"ss:Format":Yt(gr[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(Xe("Style",a.join(""),s))}),Xe("Styles",t.join(""))}function V1(e){return Xe("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+sc(e.Ref,{r:0,c:0})})}function u3(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(V1(i)))}return Xe("Names",t.join(""))}function h3(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(V1(o)))}return a.join("")}function d3(e,r,t,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(Xe("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(Xe("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(Xe("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(Xe("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(Vr("ProtectContents","True")),e["!protect"].objects&&i.push(Vr("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Vr("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Vr("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Vr("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?"":Xe("WorksheetOptions",i.join(""),{xmlns:In.x})}function p3(e){return e.map(function(r){var t=x5(r.t||""),n=Xe("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Xe("Comment",n,{"ss:Author":r.a})}).join("")}function g3(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(sc(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=Go[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=v5(e.v||"");break}var d=_a(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+d),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+=p3(e.c)),Xe("Cell",v,o)}function m3(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=N1(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function v3(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(y,_){ic(y);var S=!!y.width,A=yl(_,y),k={"ss:Index":_+1};S&&(k["ss:Width"]=al(A.width)),y.hidden&&(k["ss:Hidden"]="1"),o.push(Xe("Column",null,k))});for(var f=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[m3(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 d={r:c,c:p},w=Kt(d),v=f?(e[c]||[])[p]:e[w];u.push(g3(v,w,e,r,t,n,d))}}u.push("</Row>"),u.length>2&&o.push(u.join(""))}return o.join("")}function x3(e,r,t){var n=[],i=t.SheetNames[e],a=t.Sheets[i],s=a?h3(a,r,e,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?v3(a,r,e,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(d3(a,r,e,t)),n.join("")}function w3(e,r){r||(r={}),e.SSF||(e.SSF=_n(gr)),e.SSF&&(gl(),pl(e.SSF),r.revssf=ml(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(l3(e,r)),t.push(f3()),t.push(""),t.push("");for(var n=0;n<e.SheetNames.length;++n)t.push(Xe("Worksheet",x3(n,r,e),{"ss:Name":Yt(e.SheetNames[n])}));return t[2]=c3(e,r),t[3]=u3(e),Fr+Xe("Workbook",t.join(""),{xmlns:In.ss,"xmlns:o":In.o,"xmlns:x":In.x,"xmlns:ss":In.ss,"xmlns:dt":In.dt,"xmlns:html":In.html})}var wf={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function y3(e,r){var t=[],n=[],i=[],a=0,s,o=vu(Cu,"n"),f=vu(ku,"n");if(e.Props)for(s=Yr(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=Yr(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)m1.indexOf(i[a][0])>-1||d1.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&Zt.utils.cfb_add(r,"/SummaryInformation",Ru(n,wf.SI,f,ku)),(t.length||c.length)&&Zt.utils.cfb_add(r,"/DocumentSummaryInformation",Ru(t,wf.DSI,o,Cu,c.length?c:null,wf.UDI))}function b3(e,r){var t=r||{},n=Zt.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 Zt.utils.cfb_add(n,i,X1(e,t)),t.biff==8&&(e.Props||e.Custprops)&&y3(e,n),t.biff==8&&e.vbaraw&&jm(n,Zt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var _3={0:{f:Tx},1:{f:Ix},2:{f:Qx},3:{f:zx},4:{f:Mx},5:{f:Kx},6:{f:i4},7:{f:Gx},8:{f:u4},9:{f:c4},10:{f:l4},11:{f:f4},12:{f:Dx},13:{f:t4},14:{f:Hx},15:{f:jx},16:{f:Jx},17:{f:s4},18:{f:Xx},19:{f:ec},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:$4},40:{},42:{},43:{f:im},44:{f:rm},45:{f:om},46:{f:fm},47:{f:lm},48:{},49:{f:D5},50:{},51:{f:Tm},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Rg},62:{f:n4},63:{f:km},64:{f:E4},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:S4},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:kx},148:{f:Lx,p:16},151:{f:v4},152:{},153:{f:Y4},154:{},155:{},156:{f:V4},157:{},158:{},159:{T:1,f:Vg},160:{T:-1},161:{T:1,f:$a},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:h4},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:Sm},336:{T:-1},337:{f:Lm,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:Mf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Cg},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:x4},427:{f:w4},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:b4},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Cx},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:g4},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:Mf},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:Rm},633:{T:1},634:{T:-1},635:{T:1,f:Om},636:{T:-1},637:{f:j5},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:U4},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:L4},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 Ye(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&&Jf(t)&&e.push(t)}}function S3(e,r,t,n){var i=(t||[]).length||0;if(i<=8224)return Ye(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 Xo(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 A3(e,r,t,n){var i=ke(9);return Xo(i,e,r),x1(t,n||"b",i),i}function T3(e,r,t){var n=ke(8+2*t.length);return Xo(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 N3(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?Ye(e,2,Ug(t,n,i)):Ye(e,3,jg(t,n,i));return;case"b":case"e":Ye(e,5,A3(t,n,r.v,r.t));return;case"s":case"str":Ye(e,4,T3(t,n,(r.v||"").slice(0,255)));return}Ye(e,1,Xo(null,t,n))}function E3(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=Xr(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&&N3(e,p,c,u)}}}function L3(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 Ye(n,t.biff==4?1033:t.biff==3?521:9,nc(e,16,t)),E3(n,e.Sheets[e.SheetNames[i]],i,t),Ye(n,10),n.end()}function F3(e,r,t){Ye(e,49,_g({sz:12,name:"Arial"},t))}function C3(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&&Ye(e,1054,Tg(i,r[i],t))})}function k3(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),Ye(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),b1(lr(r["!ref"]||"A1"),t),t.write_shift(4,4),Ye(e,2152,t)}function P3(e,r){for(var t=0;t<16;++t)Ye(e,224,Bu({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){Ye(e,224,Bu(n,0,r))})}function I3(e,r){for(var t=0;t<r["!links"].length;++t){var n=r["!links"][t];Ye(e,440,Ig(n)),n[1].Tooltip&&Ye(e,2048,Og(n))}delete r["!links"]}function O3(e,r){if(r){var t=0;r.forEach(function(n,i){++t<=256&&n&&Ye(e,125,Mg(yl(i,n),i))})}}function D3(e,r,t,n,i){var a=16+_a(i.cellXfs,r,i);if(r.v==null&&!r.bf){Ye(e,513,qa(t,n,a));return}if(r.bf)Ye(e,6,ax(r,t,n,i,a));else switch(r.t){case"d":case"n":var s=r.t=="d"?bn(hn(r.v)):r.v;Ye(e,515,Fg(t,n,s,a));break;case"b":case"e":Ye(e,517,Lg(t,n,r.v,a,i,r.t));break;case"s":case"str":if(i.bookSST){var o=lc(i.Strings,r.v,i.revStrings);Ye(e,253,Sg(t,n,o,a))}else Ye(e,516,Ag(t,n,(r.v||"").slice(0,255),a,i));break;default:Ye(e,513,qa(t,n,a))}}function R3(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=[],d=lr(a["!ref"]||"A1"),w=c?65536:16384;if(d.e.c>255||d.e.r>=w){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,w-1)}Ye(n,2057,nc(t,16,r)),Ye(n,13,Yn(1)),Ye(n,12,Yn(100)),Ye(n,15,un(!0)),Ye(n,17,un(!1)),Ye(n,16,Ha(.001)),Ye(n,95,un(!0)),Ye(n,42,un(!1)),Ye(n,43,un(!1)),Ye(n,130,Yn(1)),Ye(n,128,Eg()),Ye(n,131,un(!1)),Ye(n,132,un(!1)),c&&O3(n,a["!cols"]),Ye(n,512,Ng(d,r)),c&&(a["!links"]=[]);for(var v=d.s.r;v<=d.e.r;++v){p=Xr(v);for(var y=d.s.c;y<=d.e.c;++y){v===d.s.r&&(g[y]=nn(y)),u=g[y]+p;var _=f?(a[v]||[])[y]:a[u];_&&(D3(n,_,v,y,r),c&&_.l&&a["!links"].push([u,_.l]))}}var S=o.CodeName||o.name||i;return c&&Ye(n,574,bg((s.Views||[])[0])),c&&(a["!merges"]||[]).length&&Ye(n,229,Pg(a["!merges"])),c&&I3(n,a),Ye(n,442,y1(S)),c&&k3(n,a),Ye(n,10),n.end()}function M3(e,r,t){var n=yn(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=t.biff==8,f=t.biff==5;if(Ye(n,2057,nc(e,5,t)),t.bookType=="xla"&&Ye(n,135),Ye(n,225,o?Yn(1200):null),Ye(n,193,lg(2)),f&&Ye(n,191),f&&Ye(n,192),Ye(n,226),Ye(n,92,vg("SheetJS",t)),Ye(n,66,Yn(o?1200:1252)),o&&Ye(n,353,Yn(0)),o&&Ye(n,448),Ye(n,317,Bg(e.SheetNames.length)),o&&e.vbaraw&&Ye(n,211),o&&e.vbaraw){var c=s.CodeName||"ThisWorkbook";Ye(n,442,y1(c))}Ye(n,156,Yn(17)),Ye(n,25,un(!1)),Ye(n,18,un(!1)),Ye(n,19,Yn(0)),o&&Ye(n,431,un(!1)),o&&Ye(n,444,Yn(0)),Ye(n,61,yg()),Ye(n,64,un(!1)),Ye(n,141,Yn(0)),Ye(n,34,un(W4(e)=="true")),Ye(n,14,un(!0)),o&&Ye(n,439,un(!1)),Ye(n,218,Yn(0)),F3(n,e,t),C3(n,e.SSF,t),P3(n,t),o&&Ye(n,352,un(!1));var u=n.end(),p=yn();o&&Ye(p,140,Dg()),o&&t.Strings&&S3(p,252,wg(t.Strings)),Ye(p,10);var g=p.end(),d=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 y=u.length+w+g.length;for(v=0;v<e.SheetNames.length;++v){var _=a[v]||{};Ye(d,133,xg({pos:y,hs:_.Hidden||0,dt:0,name:e.SheetNames[v]},t)),y+=r[v].length}var S=d.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),Gr(A)}function B3(e,r){var t=r||{},n=[];e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(gl(),pl(e.SSF),t.revssf=ml(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,fc(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]=R3(i,t,e);return n.unshift(M3(e,n,t)),Gr(n)}function X1(e,r){for(var t=0;t<=e.SheetNames.length;++t){var n=e.Sheets[e.SheetNames[t]];if(!(!n||!n["!ref"])){var i=Rn(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 B3(e,r);case 4:case 3:case 2:return L3(e,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function j3(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=Kt({r:t,c:s}),p=n.dense?(e[t]||[])[s]:e[u],g=p&&p.v!=null&&(p.h||m5(p.w||(Gi(p),p.w)||""))||"",d={};o>1&&(d.rowspan=o),f>1&&(d.colspan=f),n.editable?g='<span contenteditable="true">'+g+"</span>":p&&(d["data-t"]=p&&p.t||"z",p.v!=null&&(d["data-v"]=p.v),p.z!=null&&(d["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(g='<a href="'+p.l.Target+'">'+g+"</a>")),d.id=(n.id||"sjs")+"-"+u,a.push(Xe("td",g,d))}}var w="<tr>";return w+a.join("")+"</tr>"}var U3='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',z3="</body></html>";function W3(e,r,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function Y1(e,r){var t=r||{},n=t.header!=null?t.header:U3,i=t.footer!=null?t.footer:z3,a=[n],s=Rn(e["!ref"]);t.dense=Array.isArray(e),a.push(W3(e,s,t));for(var o=s.s.r;o<=s.e.r;++o)a.push(j3(e,s,o,t));return a.push("</table>"+i),a.join("")}function K1(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=Rn(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,d=e["!rows"]||(e["!rows"]=[]),w=0,v=0,y=0,_=0,S=0,A=0;for(e["!cols"]||(e["!cols"]=[]);w<o.length&&v<f;++w){var k=o[w];if(Gu(k)){if(n.display)continue;d[v]={hidden:!0}}var M=k.children;for(y=_=0;y<M.length;++y){var K=M[y];if(!(n.display&&Gu(K))){var L=K.hasAttribute("data-v")?K.getAttribute("data-v"):K.hasAttribute("v")?K.getAttribute("v"):y5(K.innerHTML),P=K.getAttribute("data-z")||K.getAttribute("z");for(g=0;g<p.length;++g){var R=p[g];R.s.c==_+a&&R.s.r<v+i&&v+i<=R.e.r&&(_=R.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 G={t:"s",v:L},E=K.getAttribute("data-t")||K.getAttribute("t")||"";L!=null&&(L.length==0?G.t=E||"z":n.raw||L.trim().length==0||E=="s"||(L==="TRUE"?G={t:"b",v:!0}:L==="FALSE"?G={t:"b",v:!1}:isNaN(Wi(L))?isNaN(Mo(L).getDate())||(G={t:"d",v:hn(L)},n.cellDates||(G={t:"n",v:bn(G.v)}),G.z=n.dateNF||gr[14]):G={t:"n",v:Wi(L)})),G.z===void 0&&P!=null&&(G.z=P);var T="",W=K.getElementsByTagName("A");if(W&&W.length)for(var X=0;X<W.length&&!(W[X].hasAttribute("href")&&(T=W[X].getAttribute("href"),T.charAt(0)!="#"));++X);T&&T.charAt(0)!="#"&&(G.l={Target:T}),n.dense?(e[v+i]||(e[v+i]=[]),e[v+i][_+a]=G):e[Kt({c:_+a,r:v+i})]=G,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 $1(e,r){var t=r||{},n=t.dense?[]:{};return K1(n,e,r)}function H3(e,r){return Va($1(e,r),r)}function Gu(e){var r="",t=q3(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function q3(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var G3=(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 "+jo({"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}})(),Vu=(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=Rn(a["!ref"]||"A1"),g=a["!merges"]||[],d=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="",y=a["!rows"]||[];for(c=0;c<p.s.r;++c)v=y[c]?' table:style-name="ro'+y[c].ods+'"':"",f.push(" <table:table-row"+v+`></table:table-row>
|
|
316
|
+
`);for(;c<=p.e.r;++c){for(v=y[c]?' table:style-name="ro'+y[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(d=0;d!=g.length;++d)if(!(g[d].s.c>u)&&!(g[d].s.r>c)&&!(g[d].e.c<u)&&!(g[d].e.r<c)){(g[d].s.c!=u||g[d].s.r!=c)&&(_=!0),S["table:number-columns-spanned"]=g[d].e.c-g[d].s.c+1,S["table:number-rows-spanned"]=g[d].e.r-g[d].s.r+1;break}if(_){f.push(t);continue}var k=Kt({r:c,c:u}),M=w?(a[c]||[])[u]:a[k];if(M&&M.f&&(S["table:formula"]=Yt(ux(M.f)),M.F&&M.F.slice(0,k.length)==k)){var K=Rn(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 L=e(A);if(M.l&&M.l.Target){var P=M.l.Target;P=P.charAt(0)=="#"?"#"+hx(P.slice(1)):P,P.charAt(0)!="#"&&!P.match(/^\w+:/)&&(P="../"+P),L=Xe("text:a",L,{"xlink:href":P.replace(/&/g,"&")})}f.push(" "+Xe("table:table-cell",Xe("text:p",L,{}),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;ic(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=jo({"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=jo({"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(u1().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 J1(e,r){if(r.bookType=="fods")return Vu(e,r);var t=Xf(),n="",i=[],a=[];return n="mimetype",Lt(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Lt(t,n,Vu(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Lt(t,n,G3(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Lt(t,n,Fr+u1()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Lt(t,n,ng(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Lt(t,n,tg(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ll(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function V3(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):fi(Bo(e))}function X3(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 Y3(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 Uo(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 Ir(e){for(var r=[],t=[0];t[0]<e.length;){var n=t[0],i=Uo(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=Uo(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=Uo(e,n),a=Ir(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=Ir(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 K3(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=Uo(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(K3(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 yf(e,r){var t=new Uint8Array(32),n=ll(t),i=12,a=0;switch(t[0]=5,e.t){case"n":t[1]=2,Y3(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 bf(e,r){var t=new Uint8Array(32),n=ll(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=Ir(e);return Uo(r[1][0].data)}function $3(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=ll(e[7][0].data),u=0,p=[],g=ll(e[4][0].data),d=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,d,!0);var y,_;switch(typeof r[v]){case"string":y=yf({t:"s",v:r[v]},t),_=bf({t:"s",v:r[v]},t);break;case"number":y=yf({t:"n",v:r[v]},t),_=bf({t:"n",v:r[v]},t);break;case"boolean":y=yf({t:"b",v:r[v]},t),_=bf({t:"b",v:r[v]},t);break;default:throw new Error("Unsupported value "+r[v])}p.push(y),u+=y.length,w.push(_),d+=_.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 J3(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=Rn(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=fl(t,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(F){return F.forEach(function(C){typeof C=="string"&&s.push(C)})});var o={},f=[],c=Zt.read(r.numbers,{type:"base64"});c.FileIndex.map(function(F,C){return[F,c.FullPaths[C]]}).forEach(function(F){var C=F[0],I=F[1];if(C.type==2&&C.name.match(/\.iwa/)){var H=C.content,le=oi(H),ce=si(le);ce.forEach(function(ue){f.push(ue.id),o[ue.id]={deps:[],location:I,type:Ps(ue.messages[0].meta[1][0].data)}})}}),f.sort(function(F,C){return F-C});var u=f.filter(function(F){return F>1}).map(function(F){return[F,Vt(F)]});c.FileIndex.map(function(F,C){return[F,c.FullPaths[C]]}).forEach(function(F){var C=F[0];if(F[1],!!C.name.match(/\.iwa/)){var I=si(oi(C.content));I.forEach(function(H){H.messages.forEach(function(le){u.forEach(function(ce){H.messages.some(function(ue){return Ps(ue.meta[1][0].data)!=11006&&X3(ue.data,ce[1])})&&o[ce[0]].deps.push(H.id)})})})}});for(var p=Zt.find(c,o[1].location),g=si(oi(p.content)),d,w=0;w<g.length;++w){var v=g[w];v.id==1&&(d=v)}var y=ua(Ir(d.messages[0].data)[1][0].data);for(p=Zt.find(c,o[y].location),g=si(oi(p.content)),w=0;w<g.length;++w)v=g[w],v.id==y&&(d=v);for(y=ua(Ir(d.messages[0].data)[2][0].data),p=Zt.find(c,o[y].location),g=si(oi(p.content)),w=0;w<g.length;++w)v=g[w],v.id==y&&(d=v);for(y=ua(Ir(d.messages[0].data)[2][0].data),p=Zt.find(c,o[y].location),g=si(oi(p.content)),w=0;w<g.length;++w)v=g[w],v.id==y&&(d=v);var _=Ir(d.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=Zt.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=Ir(k[M].messages[0].data);K[1]=[],K[2]=[],K[3]=[];for(var L=0;L<=n.e.c;++L){var P=[];P[1]=P[2]=[{type:0,data:Vt(L+420690)}],K[1].push({type:2,data:Hr(P)}),K[2].push({type:0,data:Vt(L)}),K[3].push({type:0,data:Vt(L)})}K[4]=[],K[5]=[],K[6]=[];for(var R=0;R<=n.e.r;++R)P=[],P[1]=P[2]=[{type:0,data:Vt(R+726270)}],K[4].push({type:2,data:Hr(P)}),K[5].push({type:0,data:Vt(R)}),K[6].push({type:0,data:Vt(R)});k[M].messages[0].data=Hr(K)}A.content=Ss(_s(k)),A.size=A.content.length,delete _[46];var G=Ir(_[4][0].data);{G[7][0].data=Vt(n.e.r+1);var E=Ir(G[1][0].data),T=ua(E[2][0].data);A=Zt.find(c,o[T].location),k=si(oi(A.content));{if(k[0].id!=T)throw"Bad HeaderStorageBucket";var W=Ir(k[0].messages[0].data);for(R=0;R<a.length;++R){var X=Ir(W[2][0].data);X[1][0].data=Vt(R),X[4][0].data=Vt(a[R].length),W[2][R]={type:W[2][0].type,data:Hr(X)}}k[0].messages[0].data=Hr(W)}A.content=Ss(_s(k)),A.size=A.content.length;var fe=ua(G[2][0].data);A=Zt.find(c,o[fe].location),k=si(oi(A.content));{if(k[0].id!=fe)throw"Bad HeaderStorageBucket";for(W=Ir(k[0].messages[0].data),L=0;L<=n.e.c;++L)X=Ir(W[2][0].data),X[1][0].data=Vt(L),X[4][0].data=Vt(n.e.r+1),W[2][L]={type:W[2][0].type,data:Hr(X)};k[0].messages[0].data=Hr(W)}A.content=Ss(_s(k)),A.size=A.content.length;var Q=ua(G[4][0].data);(function(){for(var F=Zt.find(c,o[Q].location),C=si(oi(F.content)),I,H=0;H<C.length;++H){var le=C[H];le.id==Q&&(I=le)}var ce=Ir(I.messages[0].data);{ce[3]=[];var ue=[];s.forEach(function(Re,He){ue[1]=[{type:0,data:Vt(He)}],ue[2]=[{type:0,data:Vt(1)}],ue[3]=[{type:2,data:V3(Re)}],ce[3].push({type:2,data:Hr(ue)})})}I.messages[0].data=Hr(ce);var we=_s(C),Pe=Ss(we);F.content=Pe,F.size=F.content.length})();var J=Ir(G[3][0].data);{var oe=J[1][0];delete J[2];var ne=Ir(oe.data);{var ge=ua(ne[2][0].data);(function(){for(var F=Zt.find(c,o[ge].location),C=si(oi(F.content)),I,H=0;H<C.length;++H){var le=C[H];le.id==ge&&(I=le)}var ce=Ir(I.messages[0].data);{delete ce[6],delete J[7];var ue=new Uint8Array(ce[5][0].data);ce[5]=[];for(var we=0,Pe=0;Pe<=n.e.r;++Pe){var Re=Ir(ue);we+=$3(Re,a[Pe],s),Re[1][0].data=Vt(Pe),ce[5].push({data:Hr(Re),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)}]}I.messages[0].data=Hr(ce);var He=_s(C),Ke=Ss(He);F.content=Ke,F.size=F.content.length})()}oe.data=Hr(ne)}G[3][0].data=Hr(J)}_[4][0].data=Hr(G)}d.messages[0].data=Hr(_);var ye=_s(g),b=Ss(ye);return p.content=b,p.size=p.content.length,c}function Z3(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 fc(e){Z3([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Q3(e,r){return r.bookType=="ods"?J1(e,r):r.bookType=="numbers"?J3(e,r):r.bookType=="xlsb"?ew(e,r):tw(e,r)}function ew(e,r){Es=1024,e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(gl(),pl(e.SSF),r.revssf=ml(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,Po?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t=r.bookType=="xlsb"?"bin":"xml",n=I1.indexOf(r.bookType)>-1,i=l1();fc(r=r||{});var a=Xf(),s="",o=0;if(r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Lt(a,s,h1(e.Props,r)),i.coreprops.push(s),Xt(r.rels,2,s,Bt.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,Lt(a,s,p1(e.Props)),i.extprops.push(s),Xt(r.rels,3,s,Bt.EXT_PROPS),e.Custprops!==e.Props&&Yr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Lt(a,s,g1(e.Custprops)),i.custprops.push(s),Xt(r.rels,4,s,Bt.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,Lt(a,s,n3(o-1,s,r,e,u)),i.sheets.push(s),Xt(r.wbrels,-1,"worksheets/sheet"+o+"."+t,Bt.WS[0])}if(p){var d=p["!comments"],w=!1,v="";d&&d.length>0&&(v="xl/comments"+o+"."+t,Lt(a,v,s3(d,v)),i.comments.push(v),Xt(u,-1,"../comments"+o+"."+t,Bt.CMNT),w=!0),p["!legacy"]&&w&&Lt(a,"xl/drawings/vmlDrawing"+o+".vml",k1(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Lt(a,c1(s),Cs(u))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Lt(a,s,a3(r.Strings,s,r)),i.strs.push(s),Xt(r.wbrels,-1,"sharedStrings."+t,Bt.SST)),s="xl/workbook."+t,Lt(a,s,r3(e,s)),i.workbooks.push(s),Xt(r.rels,1,s,Bt.WB),s="xl/theme/theme1.xml",Lt(a,s,F1(e.Themes,r)),i.themes.push(s),Xt(r.wbrels,-1,"theme/theme1.xml",Bt.THEME),s="xl/styles."+t,Lt(a,s,i3(e,s,r)),i.styles.push(s),Xt(r.wbrels,-1,"styles."+t,Bt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Lt(a,s,e.vbaraw),i.vba.push(s),Xt(r.wbrels,-1,"vbaProject.bin",Bt.VBA)),s="xl/metadata."+t,Lt(a,s,o3(s)),i.metadata.push(s),Xt(r.wbrels,-1,"metadata."+t,Bt.XLMETA),Lt(a,"[Content_Types].xml",f1(i,r)),Lt(a,"_rels/.rels",Cs(r.rels)),Lt(a,"xl/_rels/workbook."+t+".rels",Cs(r.wbrels)),delete r.revssf,delete r.ssf,a}function tw(e,r){Es=1024,e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(gl(),pl(e.SSF),r.revssf=ml(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,Po?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=I1.indexOf(r.bookType)>-1,i=l1();fc(r=r||{});var a=Xf(),s="",o=0;if(r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Lt(a,s,h1(e.Props,r)),i.coreprops.push(s),Xt(r.rels,2,s,Bt.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,Lt(a,s,p1(e.Props)),i.extprops.push(s),Xt(r.rels,3,s,Bt.EXT_PROPS),e.Custprops!==e.Props&&Yr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Lt(a,s,g1(e.Custprops)),i.custprops.push(s),Xt(r.rels,4,s,Bt.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]],d=(g||{})["!type"]||"sheet";switch(d){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Lt(a,s,W1(o-1,r,e,p)),i.sheets.push(s),Xt(r.wbrels,-1,"worksheets/sheet"+o+"."+t,Bt.WS[0])}if(g){var w=g["!comments"],v=!1,y="";if(w&&w.length>0){var _=!1;w.forEach(function(S){S[1].forEach(function(A){A.T==!0&&(_=!0)})}),_&&(y="xl/threadedComments/threadedComment"+o+"."+t,Lt(a,y,Pm(w,u,r)),i.threadedcomments.push(y),Xt(p,-1,"../threadedComments/threadedComment"+o+"."+t,Bt.TCMNT)),y="xl/comments"+o+"."+t,Lt(a,y,P1(w)),i.comments.push(y),Xt(p,-1,"../comments"+o+"."+t,Bt.CMNT),v=!0}g["!legacy"]&&v&&Lt(a,"xl/drawings/vmlDrawing"+o+".vml",k1(o,g["!comments"])),delete g["!comments"],delete g["!legacy"]}p["!id"].rId1&&Lt(a,c1(s),Cs(p))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Lt(a,s,S1(r.Strings,r)),i.strs.push(s),Xt(r.wbrels,-1,"sharedStrings."+t,Bt.SST)),s="xl/workbook."+t,Lt(a,s,G1(e)),i.workbooks.push(s),Xt(r.rels,1,s,Bt.WB),s="xl/theme/theme1.xml",Lt(a,s,F1(e.Themes,r)),i.themes.push(s),Xt(r.wbrels,-1,"theme/theme1.xml",Bt.THEME),s="xl/styles."+t,Lt(a,s,E1(e,r)),i.styles.push(s),Xt(r.wbrels,-1,"styles."+t,Bt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Lt(a,s,e.vbaraw),i.vba.push(s),Xt(r.wbrels,-1,"vbaProject.bin",Bt.VBA)),s="xl/metadata."+t,Lt(a,s,C1()),i.metadata.push(s),Xt(r.wbrels,-1,"metadata."+t,Bt.XLMETA),u.length>1&&(s="xl/persons/person.xml",Lt(a,s,Im(u)),i.people.push(s),Xt(r.wbrels,-1,"persons/person.xml",Bt.PEOPLE)),Lt(a,"[Content_Types].xml",f1(i,r)),Lt(a,"_rels/.rels",Cs(r.rels)),Lt(a,"xl/_rels/workbook."+t+".rels",Cs(r.wbrels)),delete r.revssf,delete r.ssf,a}function rw(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 Z1(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return Ho(r.file,Zt.write(e,{type:Ut?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Zt.write(e,r)}function nw(e,r){var t=_n(r||{}),n=Q3(e,t);return iw(n,t)}function iw(e,r){var t={},n=Ut?"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?Zt.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(dl(i))}return r.password&&typeof encrypt_agile<"u"?Z1(encrypt_agile(i,r.password),r):r.type==="file"?Ho(r.file,i):r.type=="string"?Lo(i):i}function aw(e,r){var t=r||{},n=b3(e,t);return Z1(n,t)}function Si(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return Ro(Bo(n));case"binary":return Bo(n);case"string":return e;case"file":return Ho(r.file,n,"utf8");case"buffer":return Ut?Vi(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 sw(e,r){switch(r.type){case"base64":return Ro(e);case"binary":return e;case"string":return e;case"file":return Ho(r.file,e,"binary");case"buffer":return Ut?Vi(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function V0(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"?Ro(t):r.type=="string"?Lo(t):t;case"file":return Ho(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function Q1(e,r){Op(),G4(e);var t=_n(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=Q1(e,t);return t.type="array",dl(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(w3(e,t),t);case"slk":case"sylk":return Si(Wg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"htm":case"html":return Si(Y1(e.Sheets[e.SheetNames[i]],t),t);case"txt":return sw(td(e.Sheets[e.SheetNames[i]],t),t);case"csv":return Si(cc(e.Sheets[e.SheetNames[i]],t),t,"\uFEFF");case"dif":return Si(Hg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"dbf":return V0(zg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"prn":return Si(qg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"rtf":return Si(Jg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"eth":return Si(_1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"fods":return Si(J1(e,t),t);case"wk1":return V0(ju.sheet_to_wk1(e.Sheets[e.SheetNames[i]],t),t);case"wk3":return V0(ju.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),V0(X1(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),aw(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return nw(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function ow(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 ed(e,r,t){var n={};return n.type="file",n.file=r,ow(n),Q1(e,n)}function lw(e,r,t,n,i,a,s,o){var f=Xr(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 d=r.s.c;d<=r.e.c;++d){var w=s?e[t][d]:e[n[d]+f];if(w===void 0||w.t===void 0){if(c===void 0)continue;a[d]!=null&&(g[a[d]]=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[d]!=null){if(v==null)if(w.t=="e"&&v===null)g[a[d]]=null;else if(c!==void 0)g[a[d]]=c;else if(u&&v===null)g[a[d]]=null;else continue;else g[a[d]]=u&&(w.t!=="n"||w.t==="n"&&o.rawNumbers!==!1)?v:Gi(w,v,o);v!=null&&(p=!1)}}return{row:g,isempty:p}}function fl(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=Xr(f.s.r),g=[],d=[],w=0,v=0,y=Array.isArray(e),_=f.s.r,S=0,A={};y&&!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=y?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=Gi(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=lw(e,f,_,g,n,a,y,c);(K.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(d[w++]=K.row)}return d.length=w,d}var Xu=/"/g;function fw(e,r,t,n,i,a,s,o){for(var f=!0,c=[],u="",p=Xr(t),g=r.s.c;g<=r.e.c;++g)if(n[g]){var d=o.dense?(e[t]||[])[g]:e[n[g]+p];if(d==null)u="";else if(d.v!=null){f=!1,u=""+(o.rawNumbers&&d.t=="n"?d.v:Gi(d,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(Xu,'""')+'"';break}u=="ID"&&(u='"ID"')}else d.f!=null&&!d.F?(f=!1,u="="+d.f,u.indexOf(",")>=0&&(u='"'+u.replace(Xu,'""')+'"')):u="";c.push(u)}return o.blankrows===!1&&f?null:c.join(s)}function cc(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"]||[],d=n.skipHidden&&e["!rows"]||[],w=i.s.c;w<=i.e.c;++w)(g[w]||{}).hidden||(p[w]=nn(w));for(var v=0,y=i.s.r;y<=i.e.r;++y)(d[y]||{}).hidden||(u=fw(e,i,y,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 td(e,r){r||(r={}),r.FS=" ",r.RS=`
|
|
347
|
+
`;var t=cc(e,r);return t}function cw(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=Xr(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 rd(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||[],d=0;r.forEach(function(v,y){Yr(v).forEach(function(_){(d=g.indexOf(_))==-1&&(g[d=g.length]=_);var S=v[_],A="z",k="",M=Kt({c:o+d,r:s+y+i});c=zo(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=Xr(s);if(i)for(d=0;d<g.length;++d)a[nn(d+o)+w]={t:"s",v:g[d]};return a["!ref"]=Lr(u),a}function uw(e,r){return rd(null,e,r)}function zo(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"?zo(e,Kt(r)):zo(e,Kt({r,c:t||0}))}function hw(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 dw(){return{SheetNames:[],Sheets:{}}}function pw(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(q1(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 gw(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=hw(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 mw(e,r){return e.z=r,e}function nd(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function vw(e,r,t){return nd(e,"#"+r,t)}function xw(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function ww(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=zo(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 Is={encode_col:nn,encode_row:Xr,encode_cell:Kt,encode_range:Lr,decode_col:Qf,decode_row:Zf,split_cell:O5,decode_cell:jr,decode_range:Rn,format_cell:Gi,sheet_add_aoa:r1,sheet_add_json:rd,sheet_add_dom:K1,aoa_to_sheet:Ms,json_to_sheet:uw,table_to_sheet:$1,table_to_book:H3,sheet_to_csv:cc,sheet_to_txt:td,sheet_to_json:fl,sheet_to_html:Y1,sheet_to_formulae:cw,sheet_to_row_object_array:fl,sheet_get_cell:zo,book_new:dw,book_append_sheet:pw,book_set_sheet_visibility:gw,cell_set_number_format:mw,cell_set_hyperlink:nd,cell_set_internal_link:vw,cell_add_comment:xw,sheet_set_array_formula:ww,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function yw(e,r,t,n="Sheet1"){const i=[r,...t],a=Is.aoa_to_sheet(i),s=Is.book_new();Is.book_append_sheet(s,a,n),ed(s,`${e}.xlsx`)}function bw(e,r){const t=Is.book_new();r.forEach(({name:n,headers:i,rows:a})=>{const s=[i,...a],o=Is.aoa_to_sheet(s);Is.book_append_sheet(t,o,n)}),ed(t,`${e}.xlsx`)}function _w(e,r){const[t,n]=ot.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):r}catch{return r}}),i=ot.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 Sw(e){ot.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 Aw(e,r={}){const t=`form-draft-${e}`,[n,i]=ot.useState(()=>{try{return!!localStorage.getItem(t)}catch{return!1}}),a=ot.useCallback(f=>{try{localStorage.setItem(t,JSON.stringify({data:f,savedAt:Date.now()})),i(!0)}catch{}},[t]),s=ot.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=ot.useCallback(()=>{try{localStorage.removeItem(t)}catch{}i(!1)},[t]);return{hasDraft:n,saveDraft:a,loadDraft:s,clearDraft:o}}const _f="recently-viewed",Tw=8;function Nw(){const[e,r]=ot.useState(()=>{try{return JSON.parse(localStorage.getItem(_f))||[]}catch{return[]}}),t=ot.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,Tw);try{localStorage.setItem(_f,JSON.stringify(o))}catch{}return o})},[]),n=ot.useCallback(()=>{r([]);try{localStorage.removeItem(_f)}catch{}},[]);return{items:e,addItem:t,clearAll:n}}function Ew(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]=ot.useState(t),a=ot.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 Lw(e,r=null){const[t,n]=ot.useState(r);return{sortedData:ot.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"}})}}}const Fw={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"},Cw={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 jf({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:Ft("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",Fw[r],Cw[t],s),...o,children:[i?q.jsx(Nt.Loader2,{size:16,className:"animate-spin"}):n&&q.jsx(n,{size:16}),e]})}function kw({children:e,className:r,hover:t=!1,interactive:n=!1,...i}){return q.jsx("div",{className:Ft("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 Pw({children:e,className:r}){return q.jsx("div",{className:Ft("pb-4 mb-4 border-b border-slate-200",r),children:e})}function Iw({children:e,className:r}){return q.jsx("div",{className:Ft(r),children:e})}function Ow({children:e,className:r}){return q.jsx("h3",{className:Ft("text-lg font-semibold text-slate-900",r),children:e})}const Dw={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"},Rw={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 Mw({children:e,variant:r,status:t,className:n}){const i=r||Rw[t||e]||"neutral";return q.jsx("span",{className:Ft("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",Dw[i],n),children:e||t})}function Bw({items:e,className:r}){return q.jsx("nav",{className:Ft("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(Nt.ChevronRight,{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 id({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:Ft("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 jw({value:e,onChange:r,placeholder:t="Search...",className:n}){return q.jsx(id,{icon:Nt.Search,value:e,onChange:i=>r(i.target.value),placeholder:t,className:n})}function Uw({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:Ft("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(Nt.ChevronDown,{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 zw={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"};function ad({open:e,onClose:r,title:t,children:n,footer:i,size:a="md"}){const s=ot.useRef(null),o=ot.useRef(null),f=ot.useCallback(u=>{var p,g,d;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",y=((d=document.activeElement)==null?void 0:d.getAttribute("contenteditable"))==="true";if(!v&&!y){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],y=w[w.length-1];u.shiftKey&&document.activeElement===v?(u.preventDefault(),y.focus()):!u.shiftKey&&document.activeElement===y&&(u.preventDefault(),v.focus())}},[r,i]),c=ot.useRef(!1);return ot.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:Ft("relative bg-white rounded-xl shadow-2xl w-full animate-fade-in-up",zw[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(Nt.X,{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 Ww({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:Ft("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:Ft("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((d,w)=>q.jsx("td",{className:Ft("px-4 py-3 text-slate-600",d.align==="center"&&"text-center",d.align==="right"&&"text-right"),children:u(p,d)},d.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(Nt.ChevronLeft,{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(Nt.ChevronRight,{size:16})})]})]})]})}function Hw({items:e,brand:r,user:t,collapsed:n,onToggle:i,onLogout:a,onSettings:s}){const o=za.useLocation();e.findIndex(y=>o.pathname.startsWith(y.path)),ot.useEffect(()=>{const y=o.pathname,_=e.find(S=>y.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]=ot.useState(null),[u,p]=ot.useState(!1);ot.useEffect(()=>{const y=setTimeout(()=>p(!0),50);return()=>clearTimeout(y)},[]);const g=e.some(y=>y.group),d=g?e.reduce((y,_)=>{const S=_.group||"Other";return y[S]||(y[S]=[]),y[S].push(_),y},{}):null,w=(y,_)=>{const S=y.icon;return q.jsxs(za.NavLink,{to:y.path,onMouseEnter:()=>c(_),onMouseLeave:()=>c(null),style:{animationDelay:`${_*50}ms`,animationFillMode:"forwards"},className:({isActive:A})=>Ft("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:Ft("flex-shrink-0 transition-all duration-200",o.pathname.startsWith(y.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),q.jsx("span",{className:Ft("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:y.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:y.label})]},y.path)},v=()=>{if(g&&d){let y=0;return Object.entries(d).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=y;return y++,w(A,k)})]},_))}return e.map((y,_)=>w(y,_))};return q.jsxs(q.Fragment,{children:[q.jsxs("aside",{className:Ft("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:Ft("block transition-transform duration-200",n&&"rotate-180"),children:n?q.jsx(Nt.PanelLeft,{size:18}):q.jsx(Nt.PanelLeftClose,{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:Ft("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:Ft("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(Nt.LogOut,{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(qw,{items:e,onLogout:a})]})}function qw({items:e,onLogout:r}){const[t,n]=ot.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})=>Ft("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(Nt.MoreHorizontal,{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(Nt.X,{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})=>Ft("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(Nt.LogOut,{size:22}),q.jsx("span",{children:"Logout"})]})]})]})]})]})}function Gw({title:e,subtitle:r,user:t,notificationCount:n=0,onLogout:i,onProfile:a,onSettings:s,navItems:o=[]}){const[f,c]=ot.useState(!1),u=ot.useRef(null),p=za.useNavigate(),g=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return ot.useEffect(()=>{const d=w=>{u.current&&!u.current.contains(w.target)&&c(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[]),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(Nt.Search,{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(Nt.Bell,{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(Nt.ChevronDown,{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(Nt.User,{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(Nt.Settings,{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(Nt.Clock,{size:10})," Recents"]}),g.map(d=>{const w=o.find(y=>y.path===d);if(!w)return null;const v=w.icon;return q.jsxs("button",{onClick:()=>{c(!1),p(d)},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]},d)})]})]}),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(Nt.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function fn({className:e}){return q.jsx("div",{className:Ft("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function Vw(){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 Xw(){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 Yw({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 Kw({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 $w({activities:e=[],className:r}){return e.length===0?null:q.jsx("div",{className:Ft("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:Ft("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",t.bgColor||"bg-info-100"),children:t.icon||q.jsx(Nt.Activity,{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 sd=ot.createContext(null),Jw={success:Nt.CheckCircle,error:Nt.AlertCircle,warning:Nt.AlertTriangle,info:Nt.Info},Zw={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"},Qw={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function ey({id:e,type:r="info",message:t,onRemove:n}){const i=Jw[r]||Nt.Info,[a,s]=ot.useState(!1),[o,f]=ot.useState(100);ot.useEffect(()=>{const p=setInterval(()=>{f(d=>d<=0?(clearInterval(p),0):d-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 ${Qw[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 ${Zw[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(Nt.X,{size:14,className:"text-slate-400"})})]})}function ty({id:e,message:r,onConfirm:t,onUndo:n,timeout:i=5e3,onRemove:a}){const[s,o]=ot.useState(i),[f,c]=ot.useState(!1),u=ot.useRef(!1);ot.useEffect(()=>{const g=setInterval(()=>{o(d=>d<=100?(clearInterval(g),u.current||(t(),c(!0),setTimeout(()=>a(e),300)),0):d-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 ry({children:e}){const[r,t]=ot.useState([]),[n,i]=ot.useState([]),a=ot.useCallback((u,p="info")=>{const g=Date.now()+Math.random();t(d=>[...d,{id:g,message:u,type:p}])},[]),s=ot.useCallback(u=>{t(p=>p.filter(g=>g.id!==u))},[]),o=ot.useCallback((u,p,g,d=5e3)=>{const w=Date.now()+Math.random();i(v=>[...v,{id:w,message:u,onConfirm:p,onUndo:g,timeout:d}])},[]),f=ot.useCallback(u=>{i(p=>p.filter(g=>g.id!==u))},[]),c=ot.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,d)=>o(u,p,g,d)}),[a,o]);return q.jsxs(sd.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(ey,{...u,onRemove:s},u.id)),n.map(u=>q.jsx(ty,{...u,onRemove:f},u.id))]})]})}function ny(){const e=ot.useContext(sd);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function iy({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(ad,{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(Nt.AlertTriangle,{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(jf,{variant:"ghost",onClick:r,children:"Cancel"}),q.jsx(jf,{variant:"primary",onClick:t,disabled:s,className:"!bg-red-600 hover:!bg-red-700",children:s?"Deleting...":a})]})]})}function ay({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]=ot.useState(!1),[g,d]=ot.useState(""),w=ot.useRef(null),v=ot.useRef(null),y=c===!0||c!==!1&&t.length>5,_=t.find(M=>M[s]===e);ot.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=>{d(M),n&&(clearTimeout(v.current),v.current=setTimeout(()=>n(M),300))},A=M=>{r(M[s]),p(!1),d("")},k=M=>{M.stopPropagation(),r(""),d("")};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(Nt.X,{size:12,className:"text-slate-400"})}),q.jsx(Nt.ChevronDown,{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:[y&&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(Nt.Search,{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 sy({tabs:e,active:r,onChange:t,className:n}){return q.jsx("div",{className:Ft("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:Ft("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:Ft("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 oy({checked:e,onChange:r,label:t,description:n,disabled:i,className:a}){return q.jsxs("label",{className:Ft("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:Ft("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(Nt.Check,{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 od({children:e,className:r}){return q.jsxs("div",{className:Ft("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(Nt.Filter,{size:15}),q.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}od.Item=function({children:r,className:t}){return q.jsx("div",{className:Ft("min-w-[160px]",t),children:r})};function ly({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(Nt.Calendar,{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:Ft("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 fy({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(Nt.Clock,{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:Ft("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 cy extends ot.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 uy(){const[e,r]=ot.useState(navigator.onLine),[t,n]=ot.useState(!1);return ot.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(Nt.Wifi,{size:16,className:"mr-2"})," Back online"]}):q.jsxs(q.Fragment,{children:[q.jsx(Nt.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function hy({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:Ft("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(Nt.ChevronsUpDown,{size:12}),s==="asc"&&q.jsx(Nt.ChevronUp,{size:12,className:"text-primary-500"}),s==="desc"&&q.jsx(Nt.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function dy({children:e,content:r,className:t}){const[n,i]=ot.useState(!1),[a,s]=ot.useState({top:0,left:0}),o=ot.useRef(null),f=ot.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:Ft("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 Yu={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 py({type:e="noData",title:r,message:t,action:n,className:i}){return q.jsxs("div",{className:Ft("flex flex-col items-center justify-center py-12 text-center",i),children:[Yu[e]||Yu.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 gy({title:e,children:r,className:t}){return q.jsxs("div",{className:Ft("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 my({tokenExpiresAt:e,onLogout:r,warningMinutes:t=5}){const[n,i]=ot.useState(!1),[a,s]=ot.useState(0),o=ot.useRef(null);if(ot.useEffect(()=>{if(!e)return;const u=()=>{const p=Date.now(),d=(typeof e=="number"?e:new Date(e).getTime())-p,w=t*60*1e3;d<=0?(i(!1),r==null||r()):d<=w?(i(!0),s(Math.ceil(d/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(Nt.Clock,{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=Mw;exports.Breadcrumb=Bw;exports.Button=jf;exports.Card=kw;exports.CardContent=Iw;exports.CardHeader=Pw;exports.CardTitle=Ow;exports.Checkbox=oy;exports.ConfirmDialog=iy;exports.DataTable=Ww;exports.DateInput=ly;exports.EmptyState=py;exports.ErrorBoundary=cy;exports.FilterBar=od;exports.HoverCard=dy;exports.Input=id;exports.Modal=ad;exports.NetworkStatus=uy;exports.ProtectedRoute=Kw;exports.RecentActivities=$w;exports.SearchInput=jw;exports.SearchableSelect=ay;exports.SectionCard=gy;exports.Select=Uw;exports.SessionTimeout=my;exports.Sidebar=Hw;exports.Skeleton=fn;exports.SkeletonCard=Vw;exports.SkeletonDashboard=Xw;exports.SkeletonTable=Yw;exports.SortableHeader=hy;exports.Tabs=sy;exports.TimeInput=fy;exports.ToastProvider=ry;exports.Topbar=Gw;exports._typeof=Ht;exports.cn=Ft;exports.commonjsGlobal=_h;exports.exportMultiSheetExcel=bw;exports.exportToCsv=A2;exports.exportToExcel=yw;exports.generateAttendanceReport=kp;exports.generateFeeReceipt=Cp;exports.generatePdf=Lp;exports.generateStudentReportCard=Fp;exports.getDefaultExportFromCjs=Ap;exports.useFormDraft=Aw;exports.useKeyboardShortcuts=Sw;exports.useLocalStorage=_w;exports.useRecentlyViewed=Nw;exports.useSortableData=Lw;exports.useTabState=Ew;exports.useToast=ny;
|