PageSourceSearch

https://infographicgenerator.netlify.app/assets/index-CiebNZf-.js

js infographicgenerator.netlify.app collected 2026-10-03 10:54:42 UTC 940,083 bytes, 459 lines download raw bytes

vendor: 19,957 bytes, lines 1-34
1var P3=Object.defineProperty;var I3=(e,t,r)=>t in e?P3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wp=(e,t,r)=>I3(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tw={exports:{}},Yh={},Pw={exports:{}},wt={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var fc=Symbol.for("react.element"),O3=Symbol.for("react.portal"),F3=Symbol.for("react.fragment"),D3=Symbol.for("react.strict_mode"),j3=Symbol.for("react.profiler"),B3=Symbol.for("react.provider"),M3=Symbol.for("react.context"),z3=Symbol.for("react.forward_ref"),U3=Symbol.for("react.suspense"),q3=Symbol.for("react.memo"),W3=Symbol.for("react.lazy"),by=Symbol.iterator;function H3(e){return e===null||typeof e!="object"?null:(e=by&&e[by]||e["@@iterator"],typeof e=="function"?e:null)}var Iw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rw=Object.assign,Ow={};function El(e,t,r){this.props=e,this.context=t,this.refs=Ow,this.updater=r||Iw}El.prototype.isReactComponent={};El.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};El.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fw(){}Fw.prototype=El.prototype;function v0(e,t,r){this.props=e,this.context=t,this.refs=Ow,this.updater=r||Iw}var w0=v0.prototype=new Fw;w0.constructor=v0;Rw(w0,El.prototype);w0.isPureReactComponent=!0;var xy=Array.isArray,Dw=Object.prototype.hasOwnProperty,b0={current:null},jw={key:!0,ref:!0,__self:!0,__source:!0};function Bw(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Dw.call(t,n)&&!jw.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:fc,type:e,key:o,ref:a,props:i,_owner:b0.current}}function V3(e,t){return{$$typeof:fc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function x0(e){return typeof e=="object"&&e!==null&&e.$$typeof===fc}function $3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Sy=/\/+/g;function bp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$3(""+e.key):t.toString(36)}function Kf(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case fc:case O3:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+bp(a,0):n,xy(i)?(r="",e!=null&&(r=e.replace(Sy,"$&/")+"/"),Kf(i,t,r,"",function(c){return c})):i!=null&&(x0(i)&&(i=V3(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Sy,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",xy(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+bp(o,s);a+=Kf(o,t,r,l,i)}else if(l=H3(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+bp(o,s++),a+=Kf(o,t,r,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function df(e,t,r){if(e==null)return e;var n=[],i=0;return Kf(e,n,"","",function(o){return t.call(r,o,i++)}),n}function G3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gn={current:null},Xf={transition:null},K3={ReactCurrentDispatcher:gn,ReactCurrentBatchConfig:Xf,ReactCurrentOwner:b0};function Mw(){throw Error("act(...) is not supported in production builds of React.")}wt.Children={map:df,forEach:function(e,t,r){df(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return df(e,function(){t++}),t},toArray:function(e){return df(e,function(t){return t})||[]},only:function(e){if(!x0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};wt.Component=El;wt.Fragment=F3;wt.Profiler=j3;wt.PureComponent=v0;wt.StrictMode=D3;wt.Suspense=U3;wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K3;wt.act=Mw;wt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Rw({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=b0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Dw.call(t,l)&&!jw.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:fc,type:e.type,key:i,ref:o,props:n,_owner:a}};wt.createContext=function(e){return e={$$typeof:M3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:B3,_context:e},e.Consumer=e};wt.createElement=Bw;wt.createFactory=function(e){var t=Bw.bind(null,e);return t.type=e,t};wt.createRef=function(){return{current:null}};wt.forwardRef=function(e){return{$$typeof:z3,render:e}};wt.isValidElement=x0;wt.lazy=function(e){return{$$typeof:W3,_payload:{_status:-1,_result:e},_init:G3}};wt.memo=function(e,t){return{$$typeof:q3,type:e,compare:t===void 0?null:t}};wt.startTransition=function(e){var t=Xf.transition;Xf.transition={};try{e()}finally{Xf.transition=t}};wt.unstable_act=Mw;wt.useCallback=function(e,t){return gn.current.useCallback(e,t)};wt.useContext=function(e){return gn.current.useContext(e)};wt.useDebugValue=function(){};wt.useDeferredValue=function(e){return gn.current.useDeferredValue(e)};wt.useEffect=function(e,t){return gn.current.useEffect(e,t)};wt.useId=function(){return gn.current.useId()};wt.useImperativeHandle=function(e,t,r){return gn.current.useImperativeHandle(e,t,r)};wt.useInsertionEffect=function(e,t){return gn.current.useInsertionEffect(e,t)};wt.useLayoutEffect=function(e,t){return gn.current.useLayoutEffect(e,t)};wt.useMemo=function(e,t){return gn.current.useMemo(e,t)};wt.useReducer=function(e,t,r){return gn.current.useReducer(e,t,r)};wt.useRef=function(e){return gn.current.useRef(e)};wt.useState=function(e){return gn.current.useState(e)};wt.useSyncExternalStore=function(e,t,r){return gn.current.useSyncExternalStore(e,t,r)};wt.useTransition=function(){return gn.current.useTransition()};wt.version="18.3.1";Pw.exports=wt;var Te=Pw.exports;const An=R3(Te);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var X3=Te,Y3=Symbol.for("react.element"),J3=Symbol.for("react.fragment"),Z3=Object.prototype.hasOwnProperty,Q3=X3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,e6={key:!0,ref:!0,__self:!0,__source:!0};function zw(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)Z3.call(t,n)&&!e6.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:Y3,type:e,key:o,ref:a,props:i,_owner:Q3.current}}Yh.Fragment=J3;Yh.jsx=zw;Yh.jsxs=zw;Tw.exports=Yh;var xe=Tw.exports,Uw={exports:{}},Vn={},qw={exports:{}},Ww={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(ue,oe){var me=ue.length;ue.push(oe);e:for(;0<me;){var de=me-1>>>1,A=ue[de];if(0<i(A,oe))ue[de]=oe,ue[me]=A,me=de;else break e}}function r(ue){return ue.length===0?null:ue[0]}function n(ue){if(ue.length===0)return null;var oe=ue[0],me=ue.pop();if(me!==oe){ue[0]=me;e:for(var de=0,A=ue.length,B=A>>>1;de<B;){var z=2*(de+1)-1,ee=ue[z],V=z+1,C=ue[V];if(0>i(ee,me))V<A&&0>i(C,ee)?(ue[de]=C,ue[V]=me,de=V):(ue[de]=ee,ue[z]=me,de=z);else if(V<A&&0>i(C,me))ue[de]=C,ue[V]=me,de=V;else break e}}return oe}function i(ue,oe){var me=ue.sortIndex-oe.sortIndex;return me!==0?me:ue.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],h=1,p=null,g=3,f=!1,S=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(ue){for(var oe=r(c);oe!==null;){if(oe.callback===null)n(c);else if(oe.startTime<=ue)n(c),oe.sortIndex=oe.expirationTime,t(l,oe);else break;oe=r(c)}}function F(ue){if(v=!1,_(ue),!S)if(r(l)!==null)S=!0,ye(j);else{var oe=r(c);oe!==null&&ae(F,oe.startTime-ue)}}function j(ue,oe){S=!1,v&&(v=!1,d(M),M=-1),f=!0;var me=g;try{for(_(oe),p=r(l);p!==null&&(!(p.expirationTime>oe)||ue&&!H());){var de=p.callback;if(typeof de=="function"){p.callback=null,g=p.priorityLevel;var A=de(p.expirationTime<=oe);oe=e.unstable_now(),typeof A=="function"?p.callback=A:p===r(l)&&n(l),_(oe)}else n(l);p=r(l)}if(p!==null)var B=!0;else{var z=r(c);z!==null&&ae(F,z.startTime-oe),B=!1}return B}finally{p=null,g=me,f=!1}}var re=!1,$=null,M=-1,D=5,he=-1;function H(){return!(e.unstable_now()-he<D)}function R(){if($!==null){var ue=e.unstable_now();he=ue;var oe=!0;try{oe=$(!0,ue)}finally{oe?X():(re=!1,$=null)}}else re=!1}var X;if(typeof y=="function")X=function(){y(R)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,se=T.port2;T.port1.onmessage=R,X=function(){se.postMessage(null)}}else X=function(){k(R,0)};function ye(ue){$=ue,re||(re=!0,X())}function ae(ue,oe){M=k(function(){ue(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ue){ue.callback=null},e.unstable_continueExecution=function(){S||f||(S=!0,ye(j))},e.unstable_forceFrameRate=function(ue){0>ue||125<ue?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<ue?Math.floor(1e3/ue):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(ue){switch(g){case 1:case 2:case 3:var oe=3;break;default:oe=g}var me=g;g=oe;try{return ue()}finally{g=me}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ue,oe){switch(ue){case 1:case 2:case 3:case 4:case 5:break;default:ue=3}var me=g;g=ue;try{return oe()}finally{g=me}},e.unstable_scheduleCallback=function(ue,oe,me){var de=e.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?de+me:de):me=de,ue){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=me+A,ue={id:h++,callback:oe,priorityLevel:ue,startTime:me,expirationTime:A,sortIndex:-1},me>de?(ue.sortIndex=me,t(c,ue),r(l)===null&&ue===r(c)&&(v?(d(M),M=-1):v=!0,ae(F,me-de))):(ue.sortIndex=A,t(l,ue),S||f||(S=!0,ye(j))),ue},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(ue){var oe=g;return function(){var me=g;g=oe;try{return ue.apply(this,arguments)}finally{g=me}}}})(Ww);qw.exports=Ww;var t6=qw.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var r6=Te,Hn=t6;function He(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Hw=new Set,qu={};function Ga(e,t){dl(e,t),dl(e+"Capture",t)}function dl(e,t){for(qu[e]=t,e=0;e<t.length;e++)Hw.add(t[e])}var xo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qm=Object.prototype.hasOwnProperty,n6=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_y={},Ay={};function i6(e){return Qm.call(Ay,e)?!0:Qm.call(_y,e)?!1:n6.test(e)?Ay[e]=!0:(_y[e]=!0,!1)}function o6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function a6(e,t,r,n){if(t===null||typeof t>"u"||o6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yn(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Kr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kr[e]=new yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kr[t]=new yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kr[e]=new yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kr[e]=new yn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kr[e]=new yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kr[e]=new yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kr[e]=new yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kr[e]=new yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kr[e]=new yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var S0=/[\-:]([a-z])/g;function _0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(S0,_0);Kr[t]=new yn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(S0,_0);Kr[t]=new yn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(S0,_0);Kr[t]=new yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kr[e]=new yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Kr.xlinkHref=new yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kr[e]=new yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function A0(e,t,r,n){var i=Kr.hasOwnProperty(t)?Kr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(a6(t,r,i,n)&&(r=null),n||i===null?i6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Eo=r6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pf=Symbol.for("react.element"),Ds=Symbol.for("react.portal"),js=Symbol.for("react.fragment"),E0=Symbol.for("react.strict_mode"),e1=Symbol.for("react.profiler"),Vw=Symbol.for("react.provider"),$w=Symbol.for("react.context"),N0=Symbol.for("react.forward_ref"),t1=Symbol.for("react.suspense"),r1=Symbol.for("react.suspense_list"),k0=Symbol.for("react.memo"),Vo=Symbol.for("react.lazy"),Gw=Symbol.for("react.offscreen"),Ey=Symbol.iterator;function fu(e){return e===null||typeof e!="object"?null:(e=Ey&&e[Ey]||e["@@iterator"],typeof e=="function"?e:null)}var or=Object.assign,xp;function Eu(e){if(xp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);xp=t&&t[1]||""}return`
34`+xp+e}var Sp=!1;function _p(e,t){if(!e||Sp)return"";Sp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 14,106 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),o=n.stack.split(`
36`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
37`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Sp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Eu(e):""}function s6(e){switch(e.tag){case 5:return Eu(e.type);case 16:return Eu("Lazy");case 13:return Eu("Suspense");case 19:return Eu("SuspenseList");case 0:case 2:case 15:return e=_p(e.type,!1),e;case 11:return e=_p(e.type.render,!1),e;case 1:return e=_p(e.type,!0),e;default:return""}}function n1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case js:return"Fragment";case Ds:return"Portal";case e1:return"Profiler";case E0:return"StrictMode";case t1:return"Suspense";case r1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $w:return(e.displayName||"Context")+".Consumer";case Vw:return(e._context.displayName||"Context")+".Provider";case N0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k0:return t=e.displayName||null,t!==null?t:n1(e.type)||"Memo";case Vo:t=e._payload,e=e._init;try{return n1(e(t))}catch{}}return null}function l6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return n1(t);case 8:return t===E0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function la(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u6(e){var t=Kw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mf(e){e._valueTracker||(e._valueTracker=u6(e))}function Xw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Kw(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ph(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function i1(e,t){var r=t.checked;return or({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ny(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=la(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yw(e,t){t=t.checked,t!=null&&A0(e,"checked",t,!1)}function o1(e,t){Yw(e,t);var r=la(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?a1(e,t.type,r):t.hasOwnProperty("defaultValue")&&a1(e,t.type,la(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ky(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function a1(e,t,r){(t!=="number"||ph(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Nu=Array.isArray;function Ys(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+la(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function s1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return or({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ly(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(He(92));if(Nu(r)){if(1<r.length)throw Error(He(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:la(r)}}function Jw(e,t){var r=la(t.value),n=la(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Cy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function l1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gf,Qw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(gf=gf||document.createElement("div"),gf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Cu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},c6=["Webkit","ms","Moz","O"];Object.keys(Cu).forEach(function(e){c6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cu[t]=Cu[e]})});function e2(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Cu.hasOwnProperty(e)&&Cu[e]?(""+t).trim():t+"px"}function t2(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=e2(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var f6=or({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function u1(e,t){if(t){if(f6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(He(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(He(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(He(61))}if(t.style!=null&&typeof t.style!="object")throw Error(He(62))}}function c1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var f1=null;function L0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var h1=null,Js=null,Zs=null;function Ty(e){if(e=pc(e)){if(typeof h1!="function")throw Error(He(280));var t=e.stateNode;t&&(t=td(t),h1(e.stateNode,e.type,t))}}function r2(e){Js?Zs?Zs.push(e):Zs=[e]:Js=e}function n2(){if(Js){var e=Js,t=Zs;if(Zs=Js=null,Ty(e),t)for(e=0;e<t.length;e++)Ty(t[e])}}function i2(e,t){return e(t)}function o2(){}var Ap=!1;function a2(e,t,r){if(Ap)return e(t,r);Ap=!0;try{return i2(e,t,r)}finally{Ap=!1,(Js!==null||Zs!==null)&&(o2(),n2())}}function Hu(e,t){var r=e.stateNode;if(r===null)return null;var n=td(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(He(231,t,typeof r));return r}var d1=!1;if(xo)try{var hu={};Object.defineProperty(hu,"passive",{get:function(){d1=!0}}),window.addEventListener("test",hu,hu),window.removeEventListener("test",hu,hu)}catch{d1=!1}function h6(e,t,r,n,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(h){this.onError(h)}}var Tu=!1,mh=null,gh=!1,p1=null,d6={onError:function(e){Tu=!0,mh=e}};function p6(e,t,r,n,i,o,a,s,l){Tu=!1,mh=null,h6.apply(d6,arguments)}function m6(e,t,r,n,i,o,a,s,l){if(p6.apply(this,arguments),Tu){if(Tu){var c=mh;Tu=!1,mh=null}else throw Error(He(198));gh||(gh=!0,p1=c)}}function Ka(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function s2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Py(e){if(Ka(e)!==e)throw Error(He(188))}function g6(e){var t=e.alternate;if(!t){if(t=Ka(e),t===null)throw Error(He(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Py(i),e;if(o===n)return Py(i),t;o=o.sibling}throw Error(He(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(He(189))}}if(r.alternate!==n)throw Error(He(190))}if(r.tag!==3)throw Error(He(188));return r.stateNode.current===r?e:t}function l2(e){return e=g6(e),e!==null?u2(e):null}function u2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=u2(e);if(t!==null)return t;e=e.sibling}return null}var c2=Hn.unstable_scheduleCallback,Iy=Hn.unstable_cancelCallback,y6=Hn.unstable_shouldYield,v6=Hn.unstable_requestPaint,vr=Hn.unstable_now,w6=Hn.unstable_getCurrentPriorityLevel,C0=Hn.unstable_ImmediatePriority,f2=Hn.unstable_UserBlockingPriority,yh=Hn.unstable_NormalPriority,b6=Hn.unstable_LowPriority,h2=Hn.unstable_IdlePriority,Jh=null,Zi=null;function x6(e){if(Zi&&typeof Zi.onCommitFiberRoot=="function")try{Zi.onCommitFiberRoot(Jh,e,void 0,(e.current.flags&128)===128)}catch{}}var Ti=Math.clz32?Math.clz32:A6,S6=Math.log,_6=Math.LN2;function A6(e){return e>>>=0,e===0?32:31-(S6(e)/_6|0)|0}var yf=64,vf=4194304;function ku(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=ku(s):(o&=a,o!==0&&(n=ku(o)))}else a=r&~i,a!==0?n=ku(a):o!==0&&(n=ku(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ti(t),i=1<<r,n|=e[r],t&=~i;return n}function E6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N6(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ti(o),s=1<<a,l=i[a];l===-1?(!(s&r)||s&n)&&(i[a]=E6(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function m1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function d2(){var e=yf;return yf<<=1,!(yf&4194240)&&(yf=64),e}function Ep(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function hc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ti(t),e[t]=r}function k6(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ti(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function T0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ti(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Ft=0;function p2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var m2,P0,g2,y2,v2,g1=!1,wf=[],Qo=null,ea=null,ta=null,Vu=new Map,$u=new Map,Ko=[],L6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ry(e,t){switch(e){case"focusin":case"focusout":Qo=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Vu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$u.delete(t.pointerId)}}function du(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=pc(t),t!==null&&P0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function C6(e,t,r,n,i){switch(t){case"focusin":return Qo=du(Qo,e,t,r,n,i),!0;case"dragenter":return ea=du(ea,e,t,r,n,i),!0;case"mouseover":return ta=du(ta,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Vu.set(o,du(Vu.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,$u.set(o,du($u.get(o)||null,e,t,r,n,i)),!0}return!1}function w2(e){var t=Oa(e.target);if(t!==null){var r=Ka(t);if(r!==null){if(t=r.tag,t===13){if(t=s2(r),t!==null){e.blockedOn=t,v2(e.priority,function(){g2(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=y1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);f1=n,r.target.dispatchEvent(n),f1=null}else return t=pc(r),t!==null&&P0(t),e.blockedOn=r,!1;t.shift()}return!0}function Oy(e,t,r){Yf(e)&&r.delete(t)}function T6(){g1=!1,Qo!==null&&Yf(Qo)&&(Qo=null),ea!==null&&Yf(ea)&&(ea=null),ta!==null&&Yf(ta)&&(ta=null),Vu.forEach(Oy),$u.forEach(Oy)}function pu(e,t){e.blockedOn===t&&(e.blockedOn=null,g1||(g1=!0,Hn.unstable_scheduleCallback(Hn.unstable_NormalPriority,T6)))}function Gu(e){function t(i){return pu(i,e)}if(0<wf.length){pu(wf[0],e);for(var r=1;r<wf.length;r++){var n=wf[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Qo!==null&&pu(Qo,e),ea!==null&&pu(ea,e),ta!==null&&pu(ta,e),Vu.forEach(t),$u.forEach(t),r=0;r<Ko.length;r++)n=Ko[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ko.length&&(r=Ko[0],r.blockedOn===null);)w2(r),r.blockedOn===null&&Ko.shift()}var Qs=Eo.ReactCurrentBatchConfig,wh=!0;function P6(e,t,r,n){var i=Ft,o=Qs.transition;Qs.transition=null;try{Ft=1,I0(e,t,r,n)}finally{Ft=i,Qs.transition=o}}function I6(e,t,r,n){var i=Ft,o=Qs.transition;Qs.transition=null;try{Ft=4,I0(e,t,r,n)}finally{Ft=i,Qs.transition=o}}function I0(e,t,r,n){if(wh){var i=y1(e,t,r,n);if(i===null)Fp(e,t,n,bh,r),Ry(e,n);else if(C6(i,e,t,r,n))n.stopPropagation();else if(Ry(e,n),t&4&&-1<L6.indexOf(e)){for(;i!==null;){var o=pc(i);if(o!==null&&m2(o),o=y1(e,t,r,n),o===null&&Fp(e,t,n,bh,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Fp(e,t,n,null,r)}}var bh=null;function y1(e,t,r,n){if(bh=null,e=L0(n),e=Oa(e),e!==null)if(t=Ka(e),t===null)e=null;else if(r=t.tag,r===13){if(e=s2(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return bh=e,null}
vendor: 10,401 bytes, line 37
37function b2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(w6()){case C0:return 1;case f2:return 4;case yh:case b6:return 16;case h2:return 536870912;default:return 16}default:return 16}}var Yo=null,R0=null,Jf=null;function x2(){if(Jf)return Jf;var e,t=R0,r=t.length,n,i="value"in Yo?Yo.value:Yo.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return Jf=i.slice(e,1<n?1-n:void 0)}function Zf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bf(){return!0}function Fy(){return!1}function $n(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?bf:Fy,this.isPropagationStopped=Fy,this}return or(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=bf)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=bf)},persist:function(){},isPersistent:bf}),t}var Nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},O0=$n(Nl),dc=or({},Nl,{view:0,detail:0}),R6=$n(dc),Np,kp,mu,Zh=or({},dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:F0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mu&&(mu&&e.type==="mousemove"?(Np=e.screenX-mu.screenX,kp=e.screenY-mu.screenY):kp=Np=0,mu=e),Np)},movementY:function(e){return"movementY"in e?e.movementY:kp}}),Dy=$n(Zh),O6=or({},Zh,{dataTransfer:0}),F6=$n(O6),D6=or({},dc,{relatedTarget:0}),Lp=$n(D6),j6=or({},Nl,{animationName:0,elapsedTime:0,pseudoElement:0}),B6=$n(j6),M6=or({},Nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),z6=$n(M6),U6=or({},Nl,{data:0}),jy=$n(U6),q6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W6={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},H6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=H6[e])?!!t[e]:!1}function F0(){return V6}var $6=or({},dc,{key:function(e){if(e.key){var t=q6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:F0,charCode:function(e){return e.type==="keypress"?Zf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G6=$n($6),K6=or({},Zh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),By=$n(K6),X6=or({},dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:F0}),Y6=$n(X6),J6=or({},Nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z6=$n(J6),Q6=or({},Zh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eS=$n(Q6),tS=[9,13,27,32],D0=xo&&"CompositionEvent"in window,Pu=null;xo&&"documentMode"in document&&(Pu=document.documentMode);var rS=xo&&"TextEvent"in window&&!Pu,S2=xo&&(!D0||Pu&&8<Pu&&11>=Pu),My=" ",zy=!1;function _2(e,t){switch(e){case"keyup":return tS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function nS(e,t){switch(e){case"compositionend":return A2(t);case"keypress":return t.which!==32?null:(zy=!0,My);case"textInput":return e=t.data,e===My&&zy?null:e;default:return null}}function iS(e,t){if(Bs)return e==="compositionend"||!D0&&_2(e,t)?(e=x2(),Jf=R0=Yo=null,Bs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return S2&&t.locale!=="ko"?null:t.data;default:return null}}var oS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Uy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oS[e.type]:t==="textarea"}function E2(e,t,r,n){r2(n),t=xh(t,"onChange"),0<t.length&&(r=new O0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Iu=null,Ku=null;function aS(e){D2(e,0)}function Qh(e){var t=Us(e);if(Xw(t))return e}function sS(e,t){if(e==="change")return t}var N2=!1;if(xo){var Cp;if(xo){var Tp="oninput"in document;if(!Tp){var qy=document.createElement("div");qy.setAttribute("oninput","return;"),Tp=typeof qy.oninput=="function"}Cp=Tp}else Cp=!1;N2=Cp&&(!document.documentMode||9<document.documentMode)}function Wy(){Iu&&(Iu.detachEvent("onpropertychange",k2),Ku=Iu=null)}function k2(e){if(e.propertyName==="value"&&Qh(Ku)){var t=[];E2(t,Ku,e,L0(e)),a2(aS,t)}}function lS(e,t,r){e==="focusin"?(Wy(),Iu=t,Ku=r,Iu.attachEvent("onpropertychange",k2)):e==="focusout"&&Wy()}function uS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qh(Ku)}function cS(e,t){if(e==="click")return Qh(t)}function fS(e,t){if(e==="input"||e==="change")return Qh(t)}function hS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ii=typeof Object.is=="function"?Object.is:hS;function Xu(e,t){if(Ii(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Qm.call(t,i)||!Ii(e[i],t[i]))return!1}return!0}function Hy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vy(e,t){var r=Hy(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Hy(r)}}function L2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?L2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C2(){for(var e=window,t=ph();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ph(e.document)}return t}function j0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dS(e){var t=C2(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&L2(r.ownerDocument.documentElement,r)){if(n!==null&&j0(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=Vy(r,o);var a=Vy(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pS=xo&&"documentMode"in document&&11>=document.documentMode,Ms=null,v1=null,Ru=null,w1=!1;function $y(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;w1||Ms==null||Ms!==ph(n)||(n=Ms,"selectionStart"in n&&j0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Ru&&Xu(Ru,n)||(Ru=n,n=xh(v1,"onSelect"),0<n.length&&(t=new O0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ms)))}function xf(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var zs={animationend:xf("Animation","AnimationEnd"),animationiteration:xf("Animation","AnimationIteration"),animationstart:xf("Animation","AnimationStart"),transitionend:xf("Transition","TransitionEnd")},Pp={},T2={};xo&&(T2=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function ed(e){if(Pp[e])return Pp[e];if(!zs[e])return e;var t=zs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in T2)return Pp[e]=t[r];return e}var P2=ed("animationend"),I2=ed("animationiteration"),R2=ed("animationstart"),O2=ed("transitionend"),F2=new Map,Gy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function da(e,t){F2.set(e,t),Ga(t,[e])}for(var Ip=0;Ip<Gy.length;Ip++){var Rp=Gy[Ip],mS=Rp.toLowerCase(),gS=Rp[0].toUpperCase()+Rp.slice(1);da(mS,"on"+gS)}da(P2,"onAnimationEnd");da(I2,"onAnimationIteration");da(R2,"onAnimationStart");da("dblclick","onDoubleClick");da("focusin","onFocus");da("focusout","onBlur");da(O2,"onTransitionEnd");dl("onMouseEnter",["mouseout","mouseover"]);dl("onMouseLeave",["mouseout","mouseover"]);dl("onPointerEnter",["pointerout","pointerover"]);dl("onPointerLeave",["pointerout","pointerover"]);Ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ga("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lu));function Ky(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,m6(n,t,void 0,e),e.currentTarget=null}function D2(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Ky(i,s,c),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Ky(i,s,c),o=l}}}if(gh)throw e=p1,gh=!1,p1=null,e}function Jt(e,t){var r=t[A1];r===void 0&&(r=t[A1]=new Set);var n=e+"__bubble";r.has(n)||(j2(t,e,2,!1),r.add(n))}function Op(e,t,r){var n=0;t&&(n|=4),j2(r,e,n,t)}var Sf="_reactListening"+Math.random().toString(36).slice(2);function Yu(e){if(!e[Sf]){e[Sf]=!0,Hw.forEach(function(r){r!=="selectionchange"&&(yS.has(r)||Op(r,!1,e),Op(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sf]||(t[Sf]=!0,Op("selectionchange",!1,t))}}function j2(e,t,r,n){switch(b2(t)){case 1:var i=P6;break;case 4:i=I6;break;default:i=I0}r=i.bind(null,t,r,e),i=void 0,!d1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Fp(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;
vendor: 5,585 bytes, lines 37-38
37if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Oa(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}a2(function(){var c=o,h=L0(r),p=[];e:{var g=F2.get(e);if(g!==void 0){var f=O0,S=e;switch(e){case"keypress":if(Zf(r)===0)break e;case"keydown":case"keyup":f=G6;break;case"focusin":S="focus",f=Lp;break;case"focusout":S="blur",f=Lp;break;case"beforeblur":case"afterblur":f=Lp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Dy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=F6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Y6;break;case P2:case I2:case R2:f=B6;break;case O2:f=Z6;break;case"scroll":f=R6;break;case"wheel":f=eS;break;case"copy":case"cut":case"paste":f=z6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=By}var v=(t&4)!==0,k=!v&&e==="scroll",d=v?g!==null?g+"Capture":null:g;v=[];for(var y=c,_;y!==null;){_=y;var F=_.stateNode;if(_.tag===5&&F!==null&&(_=F,d!==null&&(F=Hu(y,d),F!=null&&v.push(Ju(y,F,_)))),k)break;y=y.return}0<v.length&&(g=new f(g,S,null,r,h),p.push({event:g,listeners:v}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",g&&r!==f1&&(S=r.relatedTarget||r.fromElement)&&(Oa(S)||S[So]))break e;if((f||g)&&(g=h.window===h?h:(g=h.ownerDocument)?g.defaultView||g.parentWindow:window,f?(S=r.relatedTarget||r.toElement,f=c,S=S?Oa(S):null,S!==null&&(k=Ka(S),S!==k||S.tag!==5&&S.tag!==6)&&(S=null)):(f=null,S=c),f!==S)){if(v=Dy,F="onMouseLeave",d="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=By,F="onPointerLeave",d="onPointerEnter",y="pointer"),k=f==null?g:Us(f),_=S==null?g:Us(S),g=new v(F,y+"leave",f,r,h),g.target=k,g.relatedTarget=_,F=null,Oa(h)===c&&(v=new v(d,y+"enter",S,r,h),v.target=_,v.relatedTarget=k,F=v),k=F,f&&S)t:{for(v=f,d=S,y=0,_=v;_;_=Ns(_))y++;for(_=0,F=d;F;F=Ns(F))_++;for(;0<y-_;)v=Ns(v),y--;for(;0<_-y;)d=Ns(d),_--;for(;y--;){if(v===d||d!==null&&v===d.alternate)break t;v=Ns(v),d=Ns(d)}v=null}else v=null;f!==null&&Xy(p,g,f,v,!1),S!==null&&k!==null&&Xy(p,k,S,v,!0)}}e:{if(g=c?Us(c):window,f=g.nodeName&&g.nodeName.toLowerCase(),f==="select"||f==="input"&&g.type==="file")var j=sS;else if(Uy(g))if(N2)j=fS;else{j=uS;var re=lS}else(f=g.nodeName)&&f.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(j=cS);if(j&&(j=j(e,c))){E2(p,j,r,h);break e}re&&re(e,g,c),e==="focusout"&&(re=g._wrapperState)&&re.controlled&&g.type==="number"&&a1(g,"number",g.value)}switch(re=c?Us(c):window,e){case"focusin":(Uy(re)||re.contentEditable==="true")&&(Ms=re,v1=c,Ru=null);break;case"focusout":Ru=v1=Ms=null;break;case"mousedown":w1=!0;break;case"contextmenu":case"mouseup":case"dragend":w1=!1,$y(p,r,h);break;case"selectionchange":if(pS)break;case"keydown":case"keyup":$y(p,r,h)}var $;if(D0)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else Bs?_2(e,r)&&(M="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(M="onCompositionStart");M&&(S2&&r.locale!=="ko"&&(Bs||M!=="onCompositionStart"?M==="onCompositionEnd"&&Bs&&($=x2()):(Yo=h,R0="value"in Yo?Yo.value:Yo.textContent,Bs=!0)),re=xh(c,M),0<re.length&&(M=new jy(M,e,null,r,h),p.push({event:M,listeners:re}),$?M.data=$:($=A2(r),$!==null&&(M.data=$)))),($=rS?nS(e,r):iS(e,r))&&(c=xh(c,"onBeforeInput"),0<c.length&&(h=new jy("onBeforeInput","beforeinput",null,r,h),p.push({event:h,listeners:c}),h.data=$))}D2(p,t)})}function Ju(e,t,r){return{instance:e,listener:t,currentTarget:r}}function xh(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Hu(e,r),o!=null&&n.unshift(Ju(e,o,i)),o=Hu(e,t),o!=null&&n.push(Ju(e,o,i))),e=e.return}return n}function Ns(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xy(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,i?(l=Hu(r,o),l!=null&&a.unshift(Ju(r,l,s))):i||(l=Hu(r,o),l!=null&&a.push(Ju(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var vS=/\r\n?/g,wS=/\u0000|\uFFFD/g;function Yy(e){return(typeof e=="string"?e:""+e).replace(vS,`
38`).replace(wS,"")}function _f(e,t,r){if(t=Yy(t),Yy(e)!==t&&r)throw Error(He(425))}function Sh(){}var b1=null,x1=null;function S1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _1=typeof setTimeout=="function"?setTimeout:void 0,bS=typeof clearTimeout=="function"?clearTimeout:void 0,Jy=typeof Promise=="function"?Promise:void 0,xS=typeof queueMicrotask=="function"?queueMicrotask:typeof Jy<"u"?function(e){return Jy.resolve(null).then(e).catch(SS)}:_1;function SS(e){setTimeout(function(){throw e})}function Dp(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Gu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,666 bytes, line 38
38while(r);Gu(t)}function ra(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var kl=Math.random().toString(36).slice(2),Xi="__reactFiber$"+kl,Zu="__reactProps$"+kl,So="__reactContainer$"+kl,A1="__reactEvents$"+kl,_S="__reactListeners$"+kl,AS="__reactHandles$"+kl;function Oa(e){var t=e[Xi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[So]||r[Xi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Zy(e);e!==null;){if(r=e[Xi])return r;e=Zy(e)}return t}e=r,r=e.parentNode}return null}function pc(e){return e=e[Xi]||e[So],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Us(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(He(33))}function td(e){return e[Zu]||null}var E1=[],qs=-1;function pa(e){return{current:e}}function Qt(e){0>qs||(e.current=E1[qs],E1[qs]=null,qs--)}function Gt(e,t){qs++,E1[qs]=e.current,e.current=t}var ua={},un=pa(ua),kn=pa(!1),qa=ua;function pl(e,t){var r=e.type.contextTypes;if(!r)return ua;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ln(e){return e=e.childContextTypes,e!=null}function _h(){Qt(kn),Qt(un)}function Qy(e,t,r){if(un.current!==ua)throw Error(He(168));Gt(un,t),Gt(kn,r)}function B2(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(He(108,l6(e)||"Unknown",i));return or({},r,n)}function Ah(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,qa=un.current,Gt(un,e),Gt(kn,kn.current),!0}function ev(e,t,r){var n=e.stateNode;if(!n)throw Error(He(169));r?(e=B2(e,t,qa),n.__reactInternalMemoizedMergedChildContext=e,Qt(kn),Qt(un),Gt(un,e)):Qt(kn),Gt(kn,r)}var go=null,rd=!1,jp=!1;function M2(e){go===null?go=[e]:go.push(e)}function ES(e){rd=!0,M2(e)}function ma(){if(!jp&&go!==null){jp=!0;var e=0,t=Ft;try{var r=go;for(Ft=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}go=null,rd=!1}catch(i){throw go!==null&&(go=go.slice(e+1)),c2(C0,ma),i}finally{Ft=t,jp=!1}}return null}var Ws=[],Hs=0,Eh=null,Nh=0,ii=[],oi=0,Wa=null,yo=1,vo="";function Ta(e,t){Ws[Hs++]=Nh,Ws[Hs++]=Eh,Eh=e,Nh=t}function z2(e,t,r){ii[oi++]=yo,ii[oi++]=vo,ii[oi++]=Wa,Wa=e;var n=yo;e=vo;var i=32-Ti(n)-1;n&=~(1<<i),r+=1;var o=32-Ti(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,yo=1<<32-Ti(t)+i|r<<i|n,vo=o+e}else yo=1<<o|r<<i|n,vo=e}function B0(e){e.return!==null&&(Ta(e,1),z2(e,1,0))}function M0(e){for(;e===Eh;)Eh=Ws[--Hs],Ws[Hs]=null,Nh=Ws[--Hs],Ws[Hs]=null;for(;e===Wa;)Wa=ii[--oi],ii[oi]=null,vo=ii[--oi],ii[oi]=null,yo=ii[--oi],ii[oi]=null}var Wn=null,Un=null,tr=!1,Li=null;function U2(e,t){var r=ai(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function tv(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Wn=e,Un=ra(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Wn=e,Un=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Wa!==null?{id:yo,overflow:vo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ai(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Wn=e,Un=null,!0):!1;default:return!1}}function N1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function k1(e){if(tr){var t=Un;if(t){var r=t;if(!tv(e,t)){if(N1(e))throw Error(He(418));t=ra(r.nextSibling);var n=Wn;t&&tv(e,t)?U2(n,r):(e.flags=e.flags&-4097|2,tr=!1,Wn=e)}}else{if(N1(e))throw Error(He(418));e.flags=e.flags&-4097|2,tr=!1,Wn=e}}}function rv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wn=e}function Af(e){if(e!==Wn)return!1;if(!tr)return rv(e),tr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!S1(e.type,e.memoizedProps)),t&&(t=Un)){if(N1(e))throw q2(),Error(He(418));for(;t;)U2(e,t),t=ra(t.nextSibling)}if(rv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(He(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Un=ra(e.nextSibling);break e}t--}
vendor: 10,402 bytes, line 38
38else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Un=null}}else Un=Wn?ra(e.stateNode.nextSibling):null;return!0}function q2(){for(var e=Un;e;)e=ra(e.nextSibling)}function ml(){Un=Wn=null,tr=!1}function z0(e){Li===null?Li=[e]:Li.push(e)}var NS=Eo.ReactCurrentBatchConfig;function gu(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(He(309));var n=r.stateNode}if(!n)throw Error(He(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(He(284));if(!r._owner)throw Error(He(290,e))}return e}function Ef(e,t){throw e=Object.prototype.toString.call(t),Error(He(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nv(e){var t=e._init;return t(e._payload)}function W2(e){function t(d,y){if(e){var _=d.deletions;_===null?(d.deletions=[y],d.flags|=16):_.push(y)}}function r(d,y){if(!e)return null;for(;y!==null;)t(d,y),y=y.sibling;return null}function n(d,y){for(d=new Map;y!==null;)y.key!==null?d.set(y.key,y):d.set(y.index,y),y=y.sibling;return d}function i(d,y){return d=aa(d,y),d.index=0,d.sibling=null,d}function o(d,y,_){return d.index=_,e?(_=d.alternate,_!==null?(_=_.index,_<y?(d.flags|=2,y):_):(d.flags|=2,y)):(d.flags|=1048576,y)}function a(d){return e&&d.alternate===null&&(d.flags|=2),d}function s(d,y,_,F){return y===null||y.tag!==6?(y=Hp(_,d.mode,F),y.return=d,y):(y=i(y,_),y.return=d,y)}function l(d,y,_,F){var j=_.type;return j===js?h(d,y,_.props.children,F,_.key):y!==null&&(y.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vo&&nv(j)===y.type)?(F=i(y,_.props),F.ref=gu(d,y,_),F.return=d,F):(F=oh(_.type,_.key,_.props,null,d.mode,F),F.ref=gu(d,y,_),F.return=d,F)}function c(d,y,_,F){return y===null||y.tag!==4||y.stateNode.containerInfo!==_.containerInfo||y.stateNode.implementation!==_.implementation?(y=Vp(_,d.mode,F),y.return=d,y):(y=i(y,_.children||[]),y.return=d,y)}function h(d,y,_,F,j){return y===null||y.tag!==7?(y=za(_,d.mode,F,j),y.return=d,y):(y=i(y,_),y.return=d,y)}function p(d,y,_){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Hp(""+y,d.mode,_),y.return=d,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case pf:return _=oh(y.type,y.key,y.props,null,d.mode,_),_.ref=gu(d,null,y),_.return=d,_;case Ds:return y=Vp(y,d.mode,_),y.return=d,y;case Vo:var F=y._init;return p(d,F(y._payload),_)}if(Nu(y)||fu(y))return y=za(y,d.mode,_,null),y.return=d,y;Ef(d,y)}return null}function g(d,y,_,F){var j=y!==null?y.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return j!==null?null:s(d,y,""+_,F);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case pf:return _.key===j?l(d,y,_,F):null;case Ds:return _.key===j?c(d,y,_,F):null;case Vo:return j=_._init,g(d,y,j(_._payload),F)}if(Nu(_)||fu(_))return j!==null?null:h(d,y,_,F,null);Ef(d,_)}return null}function f(d,y,_,F,j){if(typeof F=="string"&&F!==""||typeof F=="number")return d=d.get(_)||null,s(y,d,""+F,j);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case pf:return d=d.get(F.key===null?_:F.key)||null,l(y,d,F,j);case Ds:return d=d.get(F.key===null?_:F.key)||null,c(y,d,F,j);case Vo:var re=F._init;return f(d,y,_,re(F._payload),j)}if(Nu(F)||fu(F))return d=d.get(_)||null,h(y,d,F,j,null);Ef(y,F)}return null}function S(d,y,_,F){for(var j=null,re=null,$=y,M=y=0,D=null;$!==null&&M<_.length;M++){$.index>M?(D=$,$=null):D=$.sibling;var he=g(d,$,_[M],F);if(he===null){$===null&&($=D);break}e&&$&&he.alternate===null&&t(d,$),y=o(he,y,M),re===null?j=he:re.sibling=he,re=he,$=D}if(M===_.length)return r(d,$),tr&&Ta(d,M),j;if($===null){for(;M<_.length;M++)$=p(d,_[M],F),$!==null&&(y=o($,y,M),re===null?j=$:re.sibling=$,re=$);return tr&&Ta(d,M),j}for($=n(d,$);M<_.length;M++)D=f($,d,M,_[M],F),D!==null&&(e&&D.alternate!==null&&$.delete(D.key===null?M:D.key),y=o(D,y,M),re===null?j=D:re.sibling=D,re=D);return e&&$.forEach(function(H){return t(d,H)}),tr&&Ta(d,M),j}function v(d,y,_,F){var j=fu(_);if(typeof j!="function")throw Error(He(150));if(_=j.call(_),_==null)throw Error(He(151));for(var re=j=null,$=y,M=y=0,D=null,he=_.next();$!==null&&!he.done;M++,he=_.next()){$.index>M?(D=$,$=null):D=$.sibling;var H=g(d,$,he.value,F);if(H===null){$===null&&($=D);break}e&&$&&H.alternate===null&&t(d,$),y=o(H,y,M),re===null?j=H:re.sibling=H,re=H,$=D}if(he.done)return r(d,$),tr&&Ta(d,M),j;if($===null){for(;!he.done;M++,he=_.next())he=p(d,he.value,F),he!==null&&(y=o(he,y,M),re===null?j=he:re.sibling=he,re=he);return tr&&Ta(d,M),j}for($=n(d,$);!he.done;M++,he=_.next())he=f($,d,M,he.value,F),he!==null&&(e&&he.alternate!==null&&$.delete(he.key===null?M:he.key),y=o(he,y,M),re===null?j=he:re.sibling=he,re=he);return e&&$.forEach(function(R){return t(d,R)}),tr&&Ta(d,M),j}function k(d,y,_,F){if(typeof _=="object"&&_!==null&&_.type===js&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case pf:e:{for(var j=_.key,re=y;re!==null;){if(re.key===j){if(j=_.type,j===js){if(re.tag===7){r(d,re.sibling),y=i(re,_.props.children),y.return=d,d=y;break e}}else if(re.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vo&&nv(j)===re.type){r(d,re.sibling),y=i(re,_.props),y.ref=gu(d,re,_),y.return=d,d=y;break e}r(d,re);break}else t(d,re);re=re.sibling}_.type===js?(y=za(_.props.children,d.mode,F,_.key),y.return=d,d=y):(F=oh(_.type,_.key,_.props,null,d.mode,F),F.ref=gu(d,y,_),F.return=d,d=F)}return a(d);case Ds:e:{for(re=_.key;y!==null;){if(y.key===re)if(y.tag===4&&y.stateNode.containerInfo===_.containerInfo&&y.stateNode.implementation===_.implementation){r(d,y.sibling),y=i(y,_.children||[]),y.return=d,d=y;break e}else{r(d,y);break}else t(d,y);y=y.sibling}y=Vp(_,d.mode,F),y.return=d,d=y}return a(d);case Vo:return re=_._init,k(d,y,re(_._payload),F)}if(Nu(_))return S(d,y,_,F);if(fu(_))return v(d,y,_,F);Ef(d,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,y!==null&&y.tag===6?(r(d,y.sibling),y=i(y,_),y.return=d,d=y):(r(d,y),y=Hp(_,d.mode,F),y.return=d,d=y),a(d)):r(d,y)}return k}var gl=W2(!0),H2=W2(!1),kh=pa(null),Lh=null,Vs=null,U0=null;function q0(){U0=Vs=Lh=null}function W0(e){var t=kh.current;Qt(kh),e._currentValue=t}function L1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function el(e,t){Lh=e,U0=Vs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Nn=!0),e.firstContext=null)}function li(e){var t=e._currentValue;if(U0!==e)if(e={context:e,memoizedValue:t,next:null},Vs===null){if(Lh===null)throw Error(He(308));Vs=e,Lh.dependencies={lanes:0,firstContext:e}}else Vs=Vs.next=e;return t}var Fa=null;function H0(e){Fa===null?Fa=[e]:Fa.push(e)}function V2(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,H0(t)):(r.next=i.next,i.next=r),t.interleaved=r,_o(e,n)}function _o(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var $o=!1;function V0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $2(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function na(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Nt&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,_o(e,r)}return i=n.interleaved,i===null?(t.next=t,H0(n)):(t.next=i.next,i.next=t),n.interleaved=t,_o(e,r)}function Qf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,T0(e,r)}}function iv(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ch(e,t,r,n){var i=e.updateQueue;$o=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==a&&(s===null?h.firstBaseUpdate=c:s.next=c,h.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;a=0,h=c=l=null,s=o;do{var g=s.lane,f=s.eventTime;if((n&g)===g){h!==null&&(h=h.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,v=s;switch(g=t,f=r,v.tag){case 1:if(S=v.payload,typeof S=="function"){p=S.call(f,p,g);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,g=typeof S=="function"?S.call(f,p,g):S,g==null)break e;p=or({},p,g);break e;case 2:$o=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[s]:g.push(s))}else f={eventTime:f,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(c=h=f,l=p):h=h.next=f,a|=g;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;g=s,s=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(h===null&&(l=p),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Va|=a,e.lanes=a,e.memoizedState=p}}function ov(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(He(191,i));i.call(n)}}}var mc={},Qi=pa(mc),Qu=pa(mc),ec=pa(mc);function Da(e){if(e===mc)throw Error(He(174));return e}function $0(e,t){switch(Gt(ec,t),Gt(Qu,e),Gt(Qi,mc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:l1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=l1(t,e)}
vendor: 9,228 bytes, line 38
38Qt(Qi),Gt(Qi,t)}function yl(){Qt(Qi),Qt(Qu),Qt(ec)}function G2(e){Da(ec.current);var t=Da(Qi.current),r=l1(t,e.type);t!==r&&(Gt(Qu,e),Gt(Qi,r))}function G0(e){Qu.current===e&&(Qt(Qi),Qt(Qu))}var nr=pa(0);function Th(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bp=[];function K0(){for(var e=0;e<Bp.length;e++)Bp[e]._workInProgressVersionPrimary=null;Bp.length=0}var eh=Eo.ReactCurrentDispatcher,Mp=Eo.ReactCurrentBatchConfig,Ha=0,ir=null,Pr=null,Br=null,Ph=!1,Ou=!1,tc=0,kS=0;function Zr(){throw Error(He(321))}function X0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ii(e[r],t[r]))return!1;return!0}function Y0(e,t,r,n,i,o){if(Ha=o,ir=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eh.current=e===null||e.memoizedState===null?PS:IS,e=r(n,i),Ou){o=0;do{if(Ou=!1,tc=0,25<=o)throw Error(He(301));o+=1,Br=Pr=null,t.updateQueue=null,eh.current=RS,e=r(n,i)}while(Ou)}if(eh.current=Ih,t=Pr!==null&&Pr.next!==null,Ha=0,Br=Pr=ir=null,Ph=!1,t)throw Error(He(300));return e}function J0(){var e=tc!==0;return tc=0,e}function Hi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?ir.memoizedState=Br=e:Br=Br.next=e,Br}function ui(){if(Pr===null){var e=ir.alternate;e=e!==null?e.memoizedState:null}else e=Pr.next;var t=Br===null?ir.memoizedState:Br.next;if(t!==null)Br=t,Pr=e;else{if(e===null)throw Error(He(310));Pr=e,e={memoizedState:Pr.memoizedState,baseState:Pr.baseState,baseQueue:Pr.baseQueue,queue:Pr.queue,next:null},Br===null?ir.memoizedState=Br=e:Br=Br.next=e}return Br}function rc(e,t){return typeof t=="function"?t(e):t}function zp(e){var t=ui(),r=t.queue;if(r===null)throw Error(He(311));r.lastRenderedReducer=e;var n=Pr,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,l=null,c=o;do{var h=c.lane;if((Ha&h)===h)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var p={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=p,a=n):l=l.next=p,ir.lanes|=h,Va|=h}c=c.next}while(c!==null&&c!==o);l===null?a=n:l.next=s,Ii(n,t.memoizedState)||(Nn=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,ir.lanes|=o,Va|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Up(e){var t=ui(),r=t.queue;if(r===null)throw Error(He(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ii(o,t.memoizedState)||(Nn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function K2(){}function X2(e,t){var r=ir,n=ui(),i=t(),o=!Ii(n.memoizedState,i);if(o&&(n.memoizedState=i,Nn=!0),n=n.queue,Z0(Z2.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Br!==null&&Br.memoizedState.tag&1){if(r.flags|=2048,nc(9,J2.bind(null,r,n,i,t),void 0,null),Ur===null)throw Error(He(349));Ha&30||Y2(r,t,i)}return i}function Y2(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ir.updateQueue,t===null?(t={lastEffect:null,stores:null},ir.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function J2(e,t,r,n){t.value=r,t.getSnapshot=n,Q2(t)&&eb(e)}function Z2(e,t,r){return r(function(){Q2(t)&&eb(e)})}function Q2(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ii(e,r)}catch{return!0}}function eb(e){var t=_o(e,1);t!==null&&Pi(t,e,1,-1)}function av(e){var t=Hi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rc,lastRenderedState:e},t.queue=e,e=e.dispatch=TS.bind(null,ir,e),[t.memoizedState,e]}function nc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ir.updateQueue,t===null?(t={lastEffect:null,stores:null},ir.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function tb(){return ui().memoizedState}function th(e,t,r,n){var i=Hi();ir.flags|=e,i.memoizedState=nc(1|t,r,void 0,n===void 0?null:n)}function nd(e,t,r,n){var i=ui();n=n===void 0?null:n;var o=void 0;if(Pr!==null){var a=Pr.memoizedState;if(o=a.destroy,n!==null&&X0(n,a.deps)){i.memoizedState=nc(t,r,o,n);return}}ir.flags|=e,i.memoizedState=nc(1|t,r,o,n)}function sv(e,t){return th(8390656,8,e,t)}function Z0(e,t){return nd(2048,8,e,t)}function rb(e,t){return nd(4,2,e,t)}function nb(e,t){return nd(4,4,e,t)}function ib(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ob(e,t,r){return r=r!=null?r.concat([e]):null,nd(4,4,ib.bind(null,t,e),r)}function Q0(){}function ab(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&X0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function sb(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&X0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function lb(e,t,r){return Ha&21?(Ii(r,t)||(r=d2(),ir.lanes|=r,Va|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Nn=!0),e.memoizedState=r)}function LS(e,t){var r=Ft;Ft=r!==0&&4>r?r:4,e(!0);var n=Mp.transition;Mp.transition={};try{e(!1),t()}finally{Ft=r,Mp.transition=n}}function ub(){return ui().memoizedState}function CS(e,t,r){var n=oa(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},cb(e))fb(t,r);else if(r=V2(e,t,r,n),r!==null){var i=mn();Pi(r,e,n,i),hb(r,t,n)}}function TS(e,t,r){var n=oa(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(cb(e))fb(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,Ii(s,a)){var l=t.interleaved;l===null?(i.next=i,H0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=V2(e,t,i,n),r!==null&&(i=mn(),Pi(r,e,n,i),hb(r,t,n))}}function cb(e){var t=e.alternate;return e===ir||t!==null&&t===ir}function fb(e,t){Ou=Ph=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function hb(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,T0(e,r)}}var Ih={readContext:li,useCallback:Zr,useContext:Zr,useEffect:Zr,useImperativeHandle:Zr,useInsertionEffect:Zr,useLayoutEffect:Zr,useMemo:Zr,useReducer:Zr,useRef:Zr,useState:Zr,useDebugValue:Zr,useDeferredValue:Zr,useTransition:Zr,useMutableSource:Zr,useSyncExternalStore:Zr,useId:Zr,unstable_isNewReconciler:!1},PS={readContext:li,useCallback:function(e,t){return Hi().memoizedState=[e,t===void 0?null:t],e},useContext:li,useEffect:sv,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,th(4194308,4,ib.bind(null,t,e),r)},useLayoutEffect:function(e,t){return th(4194308,4,e,t)},useInsertionEffect:function(e,t){return th(4,2,e,t)},useMemo:function(e,t){var r=Hi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Hi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CS.bind(null,ir,e),[n.memoizedState,e]},useRef:function(e){var t=Hi();return e={current:e},t.memoizedState=e},useState:av,useDebugValue:Q0,useDeferredValue:function(e){return Hi().memoizedState=e},useTransition:function(){var e=av(!1),t=e[0];return e=LS.bind(null,e[1]),Hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ir,i=Hi();if(tr){if(r===void 0)throw Error(He(407));r=r()}else{if(r=t(),Ur===null)throw Error(He(349));Ha&30||Y2(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,sv(Z2.bind(null,n,o,e),[e]),n.flags|=2048,nc(9,J2.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Hi(),t=Ur.identifierPrefix;if(tr){var r=vo,n=yo;r=(n&~(1<<32-Ti(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=kS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},IS={readContext:li,useCallback:ab,useContext:li,useEffect:Z0,useImperativeHandle:ob,useInsertionEffect:rb,useLayoutEffect:nb,useMemo:sb,useReducer:zp,useRef:tb,useState:function(){return zp(rc)},useDebugValue:Q0,useDeferredValue:function(e){var t=ui();return lb(t,Pr.memoizedState,e)},useTransition:function(){var e=zp(rc)[0],t=ui().memoizedState;return[e,t]},useMutableSource:K2,useSyncExternalStore:X2,useId:ub,unstable_isNewReconciler:!1},RS={readContext:li,useCallback:ab,useContext:li,useEffect:Z0,useImperativeHandle:ob,useInsertionEffect:rb,useLayoutEffect:nb,useMemo:sb,useReducer:Up,useRef
vendor: 5,969 bytes, lines 38-40
38:tb,useState:function(){return Up(rc)},useDebugValue:Q0,useDeferredValue:function(e){var t=ui();return Pr===null?t.memoizedState=e:lb(t,Pr.memoizedState,e)},useTransition:function(){var e=Up(rc)[0],t=ui().memoizedState;return[e,t]},useMutableSource:K2,useSyncExternalStore:X2,useId:ub,unstable_isNewReconciler:!1};function Ai(e,t){if(e&&e.defaultProps){t=or({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function C1(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:or({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var id={isMounted:function(e){return(e=e._reactInternals)?Ka(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=mn(),i=oa(e),o=bo(n,i);o.payload=t,r!=null&&(o.callback=r),t=na(e,o,i),t!==null&&(Pi(t,e,i,n),Qf(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=mn(),i=oa(e),o=bo(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=na(e,o,i),t!==null&&(Pi(t,e,i,n),Qf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mn(),n=oa(e),i=bo(r,n);i.tag=2,t!=null&&(i.callback=t),t=na(e,i,n),t!==null&&(Pi(t,e,n,r),Qf(t,e,n))}};function lv(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!Xu(r,n)||!Xu(i,o):!0}function db(e,t,r){var n=!1,i=ua,o=t.contextType;return typeof o=="object"&&o!==null?o=li(o):(i=Ln(t)?qa:un.current,n=t.contextTypes,o=(n=n!=null)?pl(e,i):ua),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=id,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function uv(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&id.enqueueReplaceState(t,t.state,null)}function T1(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},V0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=li(o):(o=Ln(t)?qa:un.current,i.context=pl(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(C1(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&id.enqueueReplaceState(i,i.state,null),Ch(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function vl(e,t){try{var r="",n=t;do r+=s6(n),n=n.return;while(n);var i=r}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function qp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function P1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var OS=typeof WeakMap=="function"?WeakMap:Map;function pb(e,t,r){r=bo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Oh||(Oh=!0,U1=n),P1(e,t)},r}function mb(e,t,r){r=bo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){P1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){P1(e,t),typeof n!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function cv(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new OS;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=KS.bind(null,e,t,r),t.then(e,e))}function fv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hv(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=bo(-1,1),t.tag=2,na(r,t,1))),r.lanes|=1),e)}var FS=Eo.ReactCurrentOwner,Nn=!1;function pn(e,t,r,n){t.child=e===null?H2(t,null,r,n):gl(t,e.child,r,n)}function dv(e,t,r,n,i){r=r.render;var o=t.ref;return el(t,i),n=Y0(e,t,r,n,o,i),r=J0(),e!==null&&!Nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ao(e,t,i)):(tr&&r&&B0(t),t.flags|=1,pn(e,t,n,i),t.child)}function pv(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!sg(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,gb(e,t,o,n,i)):(e=oh(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:Xu,r(a,n)&&e.ref===t.ref)return Ao(e,t,i)}return t.flags|=1,e=aa(o,n),e.ref=t.ref,e.return=t,t.child=e}function gb(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Xu(o,n)&&e.ref===t.ref)if(Nn=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(Nn=!0);else return t.lanes=e.lanes,Ao(e,t,i)}return I1(e,t,r,n,i)}function yb(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gt(Gs,zn),zn|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Gt(Gs,zn),zn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Gt(Gs,zn),zn|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Gt(Gs,zn),zn|=n;return pn(e,t,i,r),t.child}function vb(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function I1(e,t,r,n,i){var o=Ln(r)?qa:un.current;return o=pl(t,o),el(t,i),r=Y0(e,t,r,n,o,i),n=J0(),e!==null&&!Nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ao(e,t,i)):(tr&&n&&B0(t),t.flags|=1,pn(e,t,r,i),t.child)}function mv(e,t,r,n,i){if(Ln(r)){var o=!0;Ah(t)}else o=!1;if(el(t,i),t.stateNode===null)rh(e,t),db(t,r,n),T1(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=li(c):(c=Ln(r)?qa:un.current,c=pl(t,c));var h=r.getDerivedStateFromProps,p=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==c)&&uv(t,a,n,c),$o=!1;var g=t.memoizedState;a.state=g,Ch(t,n,a,i),l=t.memoizedState,s!==n||g!==l||kn.current||$o?(typeof h=="function"&&(C1(t,r,h,n),l=t.memoizedState),(s=$o||lv(t,r,s,n,g,l,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,$2(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ai(t.type,s),a.props=c,p=t.pendingProps,g=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=li(l):(l=Ln(r)?qa:un.current,l=pl(t,l));var f=r.getDerivedStateFromProps;(h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||g!==l)&&uv(t,a,n,l),$o=!1,g=t.memoizedState,a.state=g,Ch(t,n,a,i);var S=t.memoizedState;s!==p||g!==S||kn.current||$o?(typeof f=="function"&&(C1(t,r,f,n),S=t.memoizedState),(c=$o||lv(t,r,c,n,g,S,l)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,S,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,S,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=S),a.props=n,a.state=S,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return R1(e,t,r,n,o,i)}function R1(e,t,r,n,i,o){vb(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&ev(t,r,!1),Ao(e,t,o);n=t.stateNode,FS.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=gl(t,e.child,null,o),t.child=gl(t,null,s,o)):pn(e,t,s,o),t.memoizedState=n.state,i&&ev(t,r,!0),t.child}function wb(e){var t=e.stateNode;t.pendingContext?Qy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qy(e,t.context,!1),$0(e,t.containerInfo)}function gv(e,t,r,n,i){return ml(),z0(i),t.flags|=256,pn(e,t,r,n),t.child}var O1={dehydrated:null,treeContext:null,retryLane:0};function F1(e){return{baseLanes:e,cachePool:null,transitions:null}}function bb(e,t,r){var n=t.pendingProps,i=nr.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Gt(nr,i&1),e===null)return k1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=sd(a,n,0,null),e=za(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=F1(r),t.memoizedState=O1,e):eg(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return DS(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=aa(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=aa(s,o):(o=za(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?F1(r):{base
vendor: 6,060 bytes, line 40
40Lanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=O1,n}return o=e.child,e=o.sibling,n=aa(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function eg(e,t){return t=sd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nf(e,t,r,n){return n!==null&&z0(n),gl(t,e.child,null,r),e=eg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function DS(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=qp(Error(He(422))),Nf(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=sd({mode:"visible",children:n.children},i,0,null),o=za(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&gl(t,e.child,null,a),t.child.memoizedState=F1(a),t.memoizedState=O1,o);if(!(t.mode&1))return Nf(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(He(419)),n=qp(o,n,void 0),Nf(e,t,a,n)}if(s=(a&e.childLanes)!==0,Nn||s){if(n=Ur,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,_o(e,i),Pi(n,e,i,-1))}return ag(),n=qp(Error(He(421))),Nf(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=XS.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Un=ra(i.nextSibling),Wn=t,tr=!0,Li=null,e!==null&&(ii[oi++]=yo,ii[oi++]=vo,ii[oi++]=Wa,yo=e.id,vo=e.overflow,Wa=t),t=eg(t,n.children),t.flags|=4096,t)}function yv(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),L1(e.return,t,r)}function Wp(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function xb(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(pn(e,t,n.children,r),n=nr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yv(e,r,t);else if(e.tag===19)yv(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Gt(nr,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Th(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Wp(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Th(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Wp(t,!0,r,null,o);break;case"together":Wp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ao(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(He(153));if(t.child!==null){for(e=t.child,r=aa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=aa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function jS(e,t,r){switch(t.tag){case 3:wb(t),ml();break;case 5:G2(t);break;case 1:Ln(t.type)&&Ah(t);break;case 4:$0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Gt(kh,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Gt(nr,nr.current&1),t.flags|=128,null):r&t.child.childLanes?bb(e,t,r):(Gt(nr,nr.current&1),e=Ao(e,t,r),e!==null?e.sibling:null);Gt(nr,nr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return xb(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Gt(nr,nr.current),n)break;return null;case 22:case 23:return t.lanes=0,yb(e,t,r)}return Ao(e,t,r)}var Sb,D1,_b,Ab;Sb=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};D1=function(){};_b=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Da(Qi.current);var o=null;switch(r){case"input":i=i1(e,i),n=i1(e,n),o=[];break;case"select":i=or({},i,{value:void 0}),n=or({},n,{value:void 0}),o=[];break;case"textarea":i=s1(e,i),n=s1(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Sh)}u1(r,n);var a;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(qu.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(s=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(qu.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Jt("scroll",e),o||s===l||(
vendor: 4,659 bytes, line 40
40o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Ab=function(e,t,r,n){r!==n&&(t.flags|=4)};function yu(e,t){if(!tr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Qr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function BS(e,t,r){var n=t.pendingProps;switch(M0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(t),null;case 1:return Ln(t.type)&&_h(),Qr(t),null;case 3:return n=t.stateNode,yl(),Qt(kn),Qt(un),K0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Af(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li!==null&&(H1(Li),Li=null))),D1(e,t),Qr(t),null;case 5:G0(t);var i=Da(ec.current);if(r=t.type,e!==null&&t.stateNode!=null)_b(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(He(166));return Qr(t),null}if(e=Da(Qi.current),Af(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Xi]=t,n[Zu]=o,e=(t.mode&1)!==0,r){case"dialog":Jt("cancel",n),Jt("close",n);break;case"iframe":case"object":case"embed":Jt("load",n);break;case"video":case"audio":for(i=0;i<Lu.length;i++)Jt(Lu[i],n);break;case"source":Jt("error",n);break;case"img":case"image":case"link":Jt("error",n),Jt("load",n);break;case"details":Jt("toggle",n);break;case"input":Ny(n,o),Jt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Jt("invalid",n);break;case"textarea":Ly(n,o),Jt("invalid",n)}u1(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&_f(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&_f(n.textContent,s,e),i=["children",""+s]):qu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Jt("scroll",n)}switch(r){case"input":mf(n),ky(n,o,!0);break;case"textarea":mf(n),Cy(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Sh)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zw(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Xi]=t,e[Zu]=n,Sb(e,t,!1,!1),t.stateNode=e;e:{switch(a=c1(r,n),r){case"dialog":Jt("cancel",e),Jt("close",e),i=n;break;case"iframe":case"object":case"embed":Jt("load",e),i=n;break;case"video":case"audio":for(i=0;i<Lu.length;i++)Jt(Lu[i],e);i=n;break;case"source":Jt("error",e),i=n;break;case"img":case"image":case"link":Jt("error",e),Jt("load",e),i=n;break;case"details":Jt("toggle",e),i=n;break;case"input":Ny(e,n),i=i1(e,n),Jt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=or({},n,{value:void 0}),Jt("invalid",e);break;case"textarea":Ly(e,n),i=s1(e,n),Jt("invalid",e);break;default:i=n}u1(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?t2(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Qw(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Wu(e,l):typeof l=="number"&&Wu(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(qu.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Jt("scroll",e):l!=null&&A0(e,o,l,a))}switch(r){case"input":mf(e),ky(e,n,!1);break;case"textarea":mf(e),Cy(e);break;case"option":n.value!=null&&e.setAttribute("value",""+la(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ys(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ys(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Sh)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 28,796 bytes, line 40
40return Qr(t),null;case 6:if(e&&t.stateNode!=null)Ab(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(He(166));if(r=Da(ec.current),Da(Qi.current),Af(t)){if(n=t.stateNode,r=t.memoizedProps,n[Xi]=t,(o=n.nodeValue!==r)&&(e=Wn,e!==null))switch(e.tag){case 3:_f(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_f(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Xi]=t,t.stateNode=n}return Qr(t),null;case 13:if(Qt(nr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(tr&&Un!==null&&t.mode&1&&!(t.flags&128))q2(),ml(),t.flags|=98560,o=!1;else if(o=Af(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(He(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(He(317));o[Xi]=t}else ml(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qr(t),o=!1}else Li!==null&&(H1(Li),Li=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||nr.current&1?Rr===0&&(Rr=3):ag())),t.updateQueue!==null&&(t.flags|=4),Qr(t),null);case 4:return yl(),D1(e,t),e===null&&Yu(t.stateNode.containerInfo),Qr(t),null;case 10:return W0(t.type._context),Qr(t),null;case 17:return Ln(t.type)&&_h(),Qr(t),null;case 19:if(Qt(nr),o=t.memoizedState,o===null)return Qr(t),null;if(n=(t.flags&128)!==0,a=o.rendering,a===null)if(n)yu(o,!1);else{if(Rr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Th(e),a!==null){for(t.flags|=128,yu(o,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Gt(nr,nr.current&1|2),t.child}e=e.sibling}o.tail!==null&&vr()>wl&&(t.flags|=128,n=!0,yu(o,!1),t.lanes=4194304)}else{if(!n)if(e=Th(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),yu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!tr)return Qr(t),null}else 2*vr()-o.renderingStartTime>wl&&r!==1073741824&&(t.flags|=128,n=!0,yu(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=vr(),t.sibling=null,r=nr.current,Gt(nr,n?r&1|2:r&1),t):(Qr(t),null);case 22:case 23:return og(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zn&1073741824&&(Qr(t),t.subtreeFlags&6&&(t.flags|=8192)):Qr(t),null;case 24:return null;case 25:return null}throw Error(He(156,t.tag))}function MS(e,t){switch(M0(t),t.tag){case 1:return Ln(t.type)&&_h(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yl(),Qt(kn),Qt(un),K0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return G0(t),null;case 13:if(Qt(nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(He(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(nr),null;case 4:return yl(),null;case 10:return W0(t.type._context),null;case 22:case 23:return og(),null;case 24:return null;default:return null}}var kf=!1,on=!1,zS=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function $s(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){fr(e,t,n)}else r.current=null}function j1(e,t,r){try{r()}catch(n){fr(e,t,n)}}var vv=!1;function US(e,t){if(b1=wh,e=C2(),j0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,h=0,p=e,g=null;t:for(;;){for(var f;p!==r||i!==0&&p.nodeType!==3||(s=a+i),p!==o||n!==0&&p.nodeType!==3||(l=a+n),p.nodeType===3&&(a+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===r&&++c===i&&(s=a),g===o&&++h===n&&(l=a),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(x1={focusedElem:e,selectionRange:r},wh=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){t=Qe;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var v=S.memoizedProps,k=S.memoizedState,d=t.stateNode,y=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ai(t.type,v),k);d.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch(F){fr(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return S=vv,vv=!1,S}function Fu(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&j1(t,r,o)}i=i.next}while(i!==n)}}function od(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function B1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Eb(e){var t=e.alternate;t!==null&&(e.alternate=null,Eb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xi],delete t[Zu],delete t[A1],delete t[_S],delete t[AS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nb(e){return e.tag===5||e.tag===3||e.tag===4}function wv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function M1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Sh));else if(n!==4&&(e=e.child,e!==null))for(M1(e,t,r),e=e.sibling;e!==null;)M1(e,t,r),e=e.sibling}function z1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(z1(e,t,r),e=e.sibling;e!==null;)z1(e,t,r),e=e.sibling}var $r=null,ki=!1;function Uo(e,t,r){for(r=r.child;r!==null;)kb(e,t,r),r=r.sibling}function kb(e,t,r){if(Zi&&typeof Zi.onCommitFiberUnmount=="function")try{Zi.onCommitFiberUnmount(Jh,r)}catch{}switch(r.tag){case 5:on||$s(r,t);case 6:var n=$r,i=ki;$r=null,Uo(e,t,r),$r=n,ki=i,$r!==null&&(ki?(e=$r,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):$r.removeChild(r.stateNode));break;case 18:$r!==null&&(ki?(e=$r,r=r.stateNode,e.nodeType===8?Dp(e.parentNode,r):e.nodeType===1&&Dp(e,r),Gu(e)):Dp($r,r.stateNode));break;case 4:n=$r,i=ki,$r=r.stateNode.containerInfo,ki=!0,Uo(e,t,r),$r=n,ki=i;break;case 0:case 11:case 14:case 15:if(!on&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&j1(r,t,a),i=i.next}while(i!==n)}Uo(e,t,r);break;case 1:if(!on&&($s(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){fr(r,t,s)}Uo(e,t,r);break;case 21:Uo(e,t,r);break;case 22:r.mode&1?(on=(n=on)||r.memoizedState!==null,Uo(e,t,r),on=n):Uo(e,t,r);break;default:Uo(e,t,r)}}function bv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zS),t.forEach(function(n){var i=YS.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function bi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:$r=s.stateNode,ki=!1;break e;case 3:$r=s.stateNode.containerInfo,ki=!0;break e;case 4:$r=s.stateNode.containerInfo,ki=!0;break e}s=s.return}if($r===null)throw Error(He(160));kb(o,a,i),$r=null,ki=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){fr(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lb(t,e),t=t.sibling}function Lb(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bi(t,e),qi(e),n&4){try{Fu(3,e,e.return),od(3,e)}catch(v){fr(e,e.return,v)}try{Fu(5,e,e.return)}catch(v){fr(e,e.return,v)}}break;case 1:bi(t,e),qi(e),n&512&&r!==null&&$s(r,r.return);break;case 5:if(bi(t,e),qi(e),n&512&&r!==null&&$s(r,r.return),e.flags&32){var i=e.stateNode;try{Wu(i,"")}catch(v){fr(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Yw(i,o),c1(s,a);var c=c1(s,o);for(a=0;a<l.length;a+=2){var h=l[a],p=l[a+1];h==="style"?t2(i,p):h==="dangerouslySetInnerHTML"?Qw(i,p):h==="children"?Wu(i,p):A0(i,h,p,c)}switch(s){case"input":o1(i,o);break;case"textarea":Jw(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Ys(i,!!o.multiple,f,!1):g!==!!o.multiple&&(o.defaultValue!=null?Ys(i,!!o.multiple,o.defaultValue,!0):Ys(i,!!o.multiple,o.multiple?[]:"",!1))}i[Zu]=o}catch(v){fr(e,e.return,v)}}break;case 6:if(bi(t,e),qi(e),n&4){if(e.stateNode===null)throw Error(He(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){fr(e,e.return,v)}}break;case 3:if(bi(t,e),qi(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Gu(t.containerInfo)}catch(v){fr(e,e.return,v)}break;case 4:bi(t,e),qi(e);break;case 13:bi(t,e),qi(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ng=vr())),n&4&&bv(e);break;case 22:if(h=r!==null&&r.memoizedState!==null,e.mode&1?(on=(c=on)||h,bi(t,e),on=c):bi(t,e),qi(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(Qe=e,h=e.child;h!==null;){for(p=Qe=h;Qe!==null;){switch(g=Qe,f=g.child,g.tag){case 0:case 11:case 14:case 15:Fu(4,g,g.return);break;case 1:$s(g,g.return);var S=g.stateNode;if(typeof S.componentWillUnmount=="function"){n=g,r=g.return;try{t=n,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(v){fr(n,r,v)}}break;case 5:$s(g,g.return);break;case 22:if(g.memoizedState!==null){Sv(p);continue}}f!==null?(f.return=g,Qe=f):Sv(p)}h=h.sibling}e:for(h=null,p=e;;){if(p.tag===5){if(h===null){h=p;try{i=p.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=p.stateNode,l=p.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=e2("display",a))}catch(v){fr(e,e.return,v)}}}else if(p.tag===6){if(h===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(v){fr(e,e.return,v)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:bi(t,e),qi(e),n&4&&bv(e);break;case 21:break;default:bi(t,e),qi(e)}}function qi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Nb(r)){var n=r;break e}r=r.return}throw Error(He(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Wu(i,""),n.flags&=-33);var o=wv(e);z1(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=wv(e);M1(e,s,a);break;default:throw Error(He(161))}}catch(l){fr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qS(e,t,r){Qe=e,Cb(e)}function Cb(e,t,r){for(var n=(e.mode&1)!==0;Qe!==null;){var i=Qe,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||kf;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||on;s=kf;var c=on;if(kf=a,(on=l)&&!c)for(Qe=i;Qe!==null;)a=Qe,l=a.child,a.tag===22&&a.memoizedState!==null?_v(i):l!==null?(l.return=a,Qe=l):_v(i);for(;o!==null;)Qe=o,Cb(o),o=o.sibling;Qe=i,kf=s,on=c}xv(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Qe=o):xv(e)}}function xv(e){for(;Qe!==null;){var t=Qe;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:on||od(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!on)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Ai(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ov(t,o,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}ov(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var p=h.dehydrated;p!==null&&Gu(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}on||t.flags&512&&B1(t)}catch(g){fr(t,t.return,g)}}if(t===e){Qe=null;break}if(r=t.sibling,r!==null){r.return=t.return,Qe=r;break}Qe=t.return}}function Sv(e){for(;Qe!==null;){var t=Qe;if(t===e){Qe=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Qe=r;break}Qe=t.return}}function _v(e){for(;Qe!==null;){var t=Qe;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{od(4,t)}catch(l){fr(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){fr(t,i,l)}}var o=t.return;try{B1(t)}catch(l){fr(t,o,l)}break;case 5:var a=t.return;try{B1(t)}catch(l){fr(t,a,l)}}}catch(l){fr(t,t.return,l)}if(t===e){Qe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Qe=s;break}Qe=t.return}}var WS=Math.ceil,Rh=Eo.ReactCurrentDispatcher,tg=Eo.ReactCurrentOwner,si=Eo.ReactCurrentBatchConfig,Nt=0,Ur=null,Cr=null,Gr=0,zn=0,Gs=pa(0),Rr=0,ic=null,Va=0,ad=0,rg=0,Du=null,En=null,ng=0,wl=1/0,mo=null,Oh=!1,U1=null,ia=null,Lf=!1,Jo=null,Fh=0,ju=0,q1=null,nh=-1,ih=0;function mn(){return Nt&6?vr():nh!==-1?nh:nh=vr()}function oa(e){return e.mode&1?Nt&2&&Gr!==0?Gr&-Gr:NS.transition!==null?(ih===0&&(ih=d2()),ih):(e=Ft,e!==0||(e=window.event,e=e===void 0?16:b2(e.type)),e):1}function Pi(e,t,r,n){if(50<ju)throw ju=0,q1=null,Error(He(185));hc(e,r,n),(!(Nt&2)||e!==Ur)&&(e===Ur&&(!(Nt&2)&&(ad|=r),Rr===4&&Xo(e,Gr)),Cn(e,n),r===1&&Nt===0&&!(t.mode&1)&&(wl=vr()+500,rd&&ma()))}function Cn(e,t){var r=e.callbackNode;N6(e,t);var n=vh(e,e===Ur?Gr:0);if(n===0)r!==null&&Iy(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Iy(r),t===1)e.tag===0?ES(Av.bind(null,e)):M2(Av.bind(null,e)),xS(function(){!(Nt&6)&&ma()}),r=null;else{switch(p2(n)){case 1:r=C0;break;case 4:r=f2;break;case 16:r=yh;break;case 536870912:r=h2;break;default:r=yh}r=jb(r,Tb.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Tb(e,t){if(nh=-1,ih=0,Nt&6)throw Error(He(327));var r=e.callbackNode;if(tl()&&e.callbackNode!==r)return null;var n=vh(e,e===Ur?Gr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Dh(e,n);else{t=n;var i=Nt;Nt|=2;var o=Ib();(Ur!==e||Gr!==t)&&(mo=null,wl=vr()+500,Ma(e,t));do try{$S();break}catch(s){Pb(e,s)}while(!0);q0(),Rh.current=o,Nt=i,Cr!==null?t=0:(Ur=null,Gr=0,t=Rr)}if(t!==0){if(t===2&&(i=m1(e),i!==0&&(n=i,t=W1(e,i))),t===1)throw r=ic,Ma(e,0),Xo(e,n),Cn(e,vr()),r;if(t===6)Xo(e,n);else{if(i=e.current.alternate,!(n&30)&&!HS(i)&&(t=Dh(e,n),t===2&&(o=m1(e),o!==0&&(n=o,t=W1(e,o))),t===1))throw r=ic,Ma(e,0),Xo(e,n),Cn(e,vr()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(He(345));case 2:Pa(e,En,mo);break;case 3:if(Xo(e,n),(n&130023424)===n&&(t=ng+500-vr(),10<t)){if(vh(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){mn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=_1(Pa.bind(null,e,En,mo),t);break}Pa(e,En,mo);break;case 4:if(Xo(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-Ti(n);o=1<<a,a=t[a],a>i&&(i=a),n&=~o}if(n=i,n=vr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*WS(n/1960))-n,10<n){e.timeoutHandle=_1(Pa.bind(null,e,En,mo),n);break}Pa(e,En,mo);break;case 5:Pa(e,En,mo);break;default:throw Error(He(329))}}}return Cn(e,vr()),e.callbackNode===r?Tb.bind(null,e):null}function W1(e,t){var r=Du;return e.current.memoizedState.isDehydrated&&(Ma(e,t).flags|=256),e=Dh(e,t),e!==2&&(t=En,En=r,t!==null&&H1(t)),e}function H1(e){En===null?En=e:En.push.apply(En,e)}function HS(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!Ii(o(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xo(e,t){for(t&=~rg,t&=~ad,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ti(t),n=1<<r;e[r]=-1,t&=~n}}function Av(e){if(Nt&6)throw Error(He(327));tl();var t=vh(e,0);if(!(t&1))return Cn(e,vr()),null;var r=Dh(e,t);if(e.tag!==0&&r===2){var n=m1(e);n!==0&&(t=n,r=W1(e,n))}if(r===1)throw r=ic,Ma(e,0),Xo(e,t),Cn(e,vr()),r;if(r===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pa(e,En,mo),Cn(e,vr()),null}function ig(e,t){var r=Nt;Nt|=1;try{return e(t)}finally{Nt=r,Nt===0&&(wl=vr()+500,rd&&ma())}}function $a(e){Jo!==null&&Jo.tag===0&&!(Nt&6)&&tl();var t=Nt;Nt|=1;var r=si.transition,n=Ft;try{if(si.transition=null,Ft=1,e)return e()}finally{Ft=n,si.transition=r,Nt=t,!(Nt&6)&&ma()}}function og(){zn=Gs.current,Qt(Gs)}function Ma(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,bS(r)),Cr!==null)for(r=Cr.return;r!==null;){var n=r;switch(M0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&_h();break;case 3:yl(),Qt(kn),Qt(un),K0();break;case 5:G0(n);break;case 4:yl();break;case 13:Qt(nr);break;case 19:Qt(nr);break;case 10:W0(n.type._context);break;case 22:case 23:og()}r=r.return}if(Ur=e,Cr=e=aa(e.current,null),Gr=zn=t,Rr=0,ic=null,rg=ad=Va=0,En=Du=null,Fa!==null){for(t=0;t<Fa.length;t++)if(r=Fa[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}Fa=null}return e}function Pb(e,t){do{var r=Cr;try{if(q0(),eh.current=Ih,Ph){for(var n=ir.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ph=!1}if(Ha=0,Br=Pr=ir=null,Ou=!1,tc=0,tg.current=null,r===null||r.return===null){Rr=1,ic=t,Cr=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=Gr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,h=s,p=h.tag;if(!(h.mode&1)&&(p===0||p===11||p===15)){var g=h.alternate;g?(h.updateQueue=g.updateQueue,h.memoizedState=g.memoizedState,h.lanes=g.lanes):(h.updateQueue=null,h.memoizedState=null)}var f=fv(a);if(f!==null){f.flags&=-257,hv(f,a,s,o,t),f.mode&1&&cv(o,c,t),t=f,l=c;var S=t.updateQueue;if(S===null){var v=new Set;v.add(l),t.updateQueue=v}else S.add(l);break e}else{if(!(t&1)){cv(o,c,t),ag();break e}l=Error(He(426))}}else if(tr&&s.mode&1){var k=fv(a);if(k!==null){!(k.flags&65536)&&(k.flags|=256),hv(k,a,s,o,t),z0(vl(l,s));break e}}o=l=vl(l,s),Rr!==4&&(Rr=2),Du===null?Du=[o]:Du.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var d=pb(o,l,t);iv(o,d);break e;case 1:s=l;var y=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(ia===null||!ia.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var F=mb(o,s,t);iv(o,F);break e}}o=o.return}while(o!==null)}Ob(r)}catch(j){t=j,Cr===r&&r!==null&&(Cr=r=r.return);continue}break}while(!0)}function Ib(){var e=Rh.current;return Rh.current=Ih,e===null?Ih:e}function ag(){(Rr===0||Rr===3||Rr===2)&&(Rr=4),Ur===null||!(Va&268435455)&&!(ad&268435455)||Xo(Ur,Gr)}function Dh(e,t){var r=Nt;Nt|=2;var n=Ib();(Ur!==e||Gr!==t)&&(mo=null,Ma(e,t));do try{VS();break}catch(i){Pb(e,i)}while(!0);if(q0(),Nt=r,Rh.current=n,Cr!==null)throw Error(He(261));return Ur=null,Gr=0,Rr}function VS(){for(;Cr!==null;)Rb(Cr)}function $S(){for(;Cr!==null&&!y6();)Rb(Cr)}function Rb(e){var t=Db(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?Ob(e):Cr=t,tg.current=null}function Ob(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=MS(r,t),r!==null){r.flags&=32767,Cr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Rr=6,Cr=null;return}}else if(r=BS(r,t,zn),r!==null){Cr=r;return}if(t=t.sibling,t!==null){Cr=t;return}Cr=t=e}while(t!==null);Rr===0&&(Rr=5)}function Pa(e,t,r){var n=Ft,i=si.transition;try{si.transition=null,Ft=1,GS(e,t,r,n)}finally{si.transition=i,Ft=n}return null}function GS(e,t,r,n){do tl();while(Jo!==null);if(Nt&6)throw Error(He(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(He(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(k6(e,o),e===Ur&&(Cr=Ur=null,Gr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Lf||(Lf=!0,jb(yh,function(){return tl(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=si.transition,si.transition=null;var a=Ft;Ft=1;var s=Nt;Nt|=4,tg.current=null,US(e,r),Lb(r,e),dS(x1),wh=!!b1,x1=b1=null,e.current=r,qS(r),v6(),Nt=s,Ft=a,si.transition=o}else e.current=r;if(Lf&&(Lf=!1,Jo=e,Fh=i),o=e.pendingLanes,o===0&&(ia=null),x6(r.stateNode),Cn(e,vr()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Oh)throw Oh=!1,e=U1,U1=null,e;return Fh&1&&e.tag!==0&&tl(),o=e.pendingLanes,o&1?e===q1?ju++:(ju=0,q1=e):ju=0,ma(),null}function tl(){if(Jo!==null){var e=p2(Fh),t=si.transition,r=Ft;try{if(si.transition=null,Ft=16>e?16:e,Jo===null)var n=!1;else{if(e=Jo,Jo=null,Fh=0,Nt&6)throw Error(He(331));var i=Nt;for(Nt|=4,Qe=e.current;Qe!==null;){var o=Qe,a=o.child;if(Qe.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Qe=c;Qe!==null;){var h=Qe;switch(h.tag){case 0:case 11:case 15:Fu(8,h,o)}var p=h.child;if(p!==null)p.return=h,Qe=p;else for(;Qe!==null;){h=Qe;var g=h.sibling,f=h.return;if(Eb(h),h===c){Qe=null;break}if(g!==null){g.return=f,Qe=g;break}Qe=f}}}var S=o.alternate;if(S!==null){var v=S.child;if(v!==null){S.child=null;do{var k=v.sibling;v.sibling=null,v=k}while(v!==null)}}Qe=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Qe=a;else e:for(;Qe!==null;){if(o=Qe,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Fu(9,o,o.return)}var d=o.sibling;if(d!==null){d.return=o.return,Qe=d;break e}Qe=o.return}}var y=e.current;for(Qe=y;Qe!==null;){a=Qe;var _=a.child;if(a.subtreeFlags&2064&&_!==null)_.return=a,Qe=_;else e:for(a=y;Qe!==null;){if(s=Qe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:od(9,s)}}catch(j){fr(s,s.return,j)}if(s===a){Qe=null;break e}var F=s.sibling;if(F!==null){F.return=s.return,Qe=F;break e}Qe=s.return}}if(Nt=i,ma(),Zi&&typeof Zi.onPostCommitFiberRoot=="function")try{Zi.onPostCommitFiberRoot(Jh,e)}catch{}n=!0}return n}finally{Ft=r,si.transition=t}}return!1}function Ev(e,t,r){t=vl(r,t),t=pb(e,t,1),e=na(e,t,1),t=mn(),e!==null&&(hc(e,1,t),Cn(e,t))}function fr(e,t,r){if(e.tag===3)Ev(e,e,r);else for(;t!==null;){if(t.tag===3){Ev(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ia===null||!ia.has(n))){e=vl(r,e),e=mb(t,e,1),t=na(t,e,1),e=mn(),t!==null&&(hc(t,1,e),Cn(t,e));break}}t=t.return}}function KS(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=mn(),e.pingedLanes|=e.suspendedLanes&r,Ur===e&&(Gr&r)===r&&(Rr===4||Rr===3&&(Gr&130023424)===Gr&&500>vr()-ng?Ma(e,0):rg|=r),Cn(e,t)}function Fb(e,t){t===0&&(e.mode&1?(t=vf,vf<<=1,!(vf&130023424)&&(vf=4194304)):t=1);var r=mn();e=_o(e,t),e!==null&&(hc(e,t,r),Cn(e,r))}function XS(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Fb(e,r)}function YS(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(He(314))}n!==null&&n.delete(t),Fb(e,r)}var Db;Db=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kn.current)Nn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Nn=!1,jS(e,t,r);Nn=!!(e.flags&131072)}else Nn=!1,tr&&t.flags&1048576&&z2(t,Nh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;rh(e,t),e=t.pendingProps;var i=pl(t,un.current);el(t,r),i=Y0(null,t,n,e,i,r);var o=J0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ln(n)?(o=!0,Ah(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,V0(t),i.updater=id,t.stateNode=i,i._reactInternals=t,T1(t,n,e,r),t=R1(null,t,n,!0,o,r)):(t.tag=0,tr&&o&&B0(t),pn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(rh(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=ZS(n),e=Ai(n,e),i){case 0:t=I1(null,t,n,e,r);break e;case 1:t=mv(null,t,n,e,r);break e;case 11:t=dv(null,t,n,e,r);break e;case 14:t=pv(null,t,n,Ai(n.type,e),r);break e}throw Error(He(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ai(n,i),I1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ai(n,i),mv(e,t,n,i,r);case 3:e:{if(wb(t),e===null)throw Error(He(387));n=t.pendingProps,o=t.memoizedState,i=o.element,$2(e,t),Ch(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=vl(Error(He(423)),t),t=gv(e,t,n,r,i);break e}else if(n!==i){i=vl(Error(He(424)),t),t=gv(e,t,n,r,i);break e}else for(Un=ra(t.stateNode.containerInfo.firstChild),Wn=t,tr=!0,Li=null,r=H2(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ml(),n===i){t=Ao(e,t,r);break e}pn(e,t,n,r)}t=t.child}return t;case 5:return G2(t),e===null&&k1(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,S1(n,i)?a=null:o!==null&&S1(n,o)&&(t.flags|=32),vb(e,t),pn(e,t,a,r),t.child;case 6:return e===null&&k1(t),null;case 13:return bb(e,t,r);case 4:return $0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gl(t,null,n,r):pn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ai(n,i),dv(e,t,n,i,r);case 7:return pn(e,t,t.pendingProps,r),t.child;case 8:return pn(e,t,t.pendingProps.children,r),t.child;case 12:return pn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Gt(kh,n._currentValue),n._currentValue=a,o!==null)if(Ii(o.value,a)){if(o.children===i.children&&!kn.current){t=Ao(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=bo(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?l.next=l:(l.next=h.next,h.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),L1(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(He(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),L1(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}pn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,el(t,r),i=li(i),n=n(i),t.flags|=1,pn(e,t,n,r),t.child;
vendor: 5,877 bytes, line 40
40case 14:return n=t.type,i=Ai(n,t.pendingProps),i=Ai(n.type,i),pv(e,t,n,i,r);case 15:return gb(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ai(n,i),rh(e,t),t.tag=1,Ln(n)?(e=!0,Ah(t)):e=!1,el(t,r),db(t,n,i),T1(t,n,i,r),R1(null,t,n,!0,e,r);case 19:return xb(e,t,r);case 22:return yb(e,t,r)}throw Error(He(156,t.tag))};function jb(e,t){return c2(e,t)}function JS(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(e,t,r,n){return new JS(e,t,r,n)}function sg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZS(e){if(typeof e=="function")return sg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===N0)return 11;if(e===k0)return 14}return 2}function aa(e,t){var r=e.alternate;return r===null?(r=ai(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function oh(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")sg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case js:return za(r.children,i,o,t);case E0:a=8,i|=8;break;case e1:return e=ai(12,r,t,i|2),e.elementType=e1,e.lanes=o,e;case t1:return e=ai(13,r,t,i),e.elementType=t1,e.lanes=o,e;case r1:return e=ai(19,r,t,i),e.elementType=r1,e.lanes=o,e;case Gw:return sd(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vw:a=10;break e;case $w:a=9;break e;case N0:a=11;break e;case k0:a=14;break e;case Vo:a=16,n=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=ai(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function za(e,t,r,n){return e=ai(7,e,n,t),e.lanes=r,e}function sd(e,t,r,n){return e=ai(22,e,n,t),e.elementType=Gw,e.lanes=r,e.stateNode={isHidden:!1},e}function Hp(e,t,r){return e=ai(6,e,null,t),e.lanes=r,e}function Vp(e,t,r){return t=ai(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QS(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ep(0),this.expirationTimes=Ep(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ep(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lg(e,t,r,n,i,o,a,s,l){return e=new QS(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ai(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},V0(o),e}function e_(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ds,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Bb(e){if(!e)return ua;e=e._reactInternals;e:{if(Ka(e)!==e||e.tag!==1)throw Error(He(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ln(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(He(171))}if(e.tag===1){var r=e.type;if(Ln(r))return B2(e,r,t)}return t}function Mb(e,t,r,n,i,o,a,s,l){return e=lg(r,n,!0,e,i,o,a,s,l),e.context=Bb(null),r=e.current,n=mn(),i=oa(r),o=bo(n,i),o.callback=t??null,na(r,o,i),e.current.lanes=i,hc(e,i,n),Cn(e,n),e}function ld(e,t,r,n){var i=t.current,o=mn(),a=oa(i);return r=Bb(r),t.context===null?t.context=r:t.pendingContext=r,t=bo(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=na(i,t,a),e!==null&&(Pi(e,i,a,o),Qf(e,i,a)),a}function jh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Nv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ug(e,t){Nv(e,t),(e=e.alternate)&&Nv(e,t)}function t_(){return null}var zb=typeof reportError=="function"?reportError:function(e){console.error(e)};function cg(e){this._internalRoot=e}ud.prototype.render=cg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));ld(e,t,null,null)};ud.prototype.unmount=cg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$a(function(){ld(null,e,null,null)}),t[So]=null}};function ud(e){this._internalRoot=e}ud.prototype.unstable_scheduleHydration=function(e){if(e){var t=y2();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ko.length&&t!==0&&t<Ko[r].priority;r++);Ko.splice(r,0,e),r===0&&w2(e)}};function fg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kv(){}function r_(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var c=jh(a);o.call(c)}}var a=Mb(t,n,e,0,null,!1,!1,"",kv);return e._reactRootContainer=a,e[So]=a.current,Yu(e.nodeType===8?e.parentNode:e),$a(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var c=jh(l);
vendor: 5,192 bytes, lines 40-50
40s.call(c)}}var l=lg(e,0,!1,null,null,!1,!1,"",kv);return e._reactRootContainer=l,e[So]=l.current,Yu(e.nodeType===8?e.parentNode:e),$a(function(){ld(t,l,r,n)}),l}function fd(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=jh(a);s.call(l)}}ld(t,a,e,i)}else a=r_(r,t,e,i,n);return jh(a)}m2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ku(t.pendingLanes);r!==0&&(T0(t,r|1),Cn(t,vr()),!(Nt&6)&&(wl=vr()+500,ma()))}break;case 13:$a(function(){var n=_o(e,1);if(n!==null){var i=mn();Pi(n,e,1,i)}}),ug(e,1)}};P0=function(e){if(e.tag===13){var t=_o(e,134217728);if(t!==null){var r=mn();Pi(t,e,134217728,r)}ug(e,134217728)}};g2=function(e){if(e.tag===13){var t=oa(e),r=_o(e,t);if(r!==null){var n=mn();Pi(r,e,t,n)}ug(e,t)}};y2=function(){return Ft};v2=function(e,t){var r=Ft;try{return Ft=e,t()}finally{Ft=r}};h1=function(e,t,r){switch(t){case"input":if(o1(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=td(n);if(!i)throw Error(He(90));Xw(n),o1(n,i)}}}break;case"textarea":Jw(e,r);break;case"select":t=r.value,t!=null&&Ys(e,!!r.multiple,t,!1)}};i2=ig;o2=$a;var n_={usingClientEntryPoint:!1,Events:[pc,Us,td,r2,n2,ig]},vu={findFiberByHostInstance:Oa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},i_={bundleType:vu.bundleType,version:vu.version,rendererPackageName:vu.rendererPackageName,rendererConfig:vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Eo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=l2(e),e===null?null:e.stateNode},findFiberByHostInstance:vu.findFiberByHostInstance||t_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cf.isDisabled&&Cf.supportsFiber)try{Jh=Cf.inject(i_),Zi=Cf}catch{}}Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n_;Vn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fg(t))throw Error(He(200));return e_(e,t,null,r)};Vn.createRoot=function(e,t){if(!fg(e))throw Error(He(299));var r=!1,n="",i=zb;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=lg(e,1,!1,null,null,r,!1,n,i),e[So]=t.current,Yu(e.nodeType===8?e.parentNode:e),new cg(t)};Vn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(He(188)):(e=Object.keys(e).join(","),Error(He(268,e)));return e=l2(t),e=e===null?null:e.stateNode,e};Vn.flushSync=function(e){return $a(e)};Vn.hydrate=function(e,t,r){if(!cd(t))throw Error(He(200));return fd(null,e,t,!0,r)};Vn.hydrateRoot=function(e,t,r){if(!fg(e))throw Error(He(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=zb;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=Mb(t,null,e,1,r??null,i,!1,o,a),e[So]=t.current,Yu(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new ud(t)};Vn.render=function(e,t,r){if(!cd(t))throw Error(He(200));return fd(null,e,t,!1,r)};Vn.unmountComponentAtNode=function(e){if(!cd(e))throw Error(He(40));return e._reactRootContainer?($a(function(){fd(null,null,e,!1,function(){e._reactRootContainer=null,e[So]=null})}),!0):!1};Vn.unstable_batchedUpdates=ig;Vn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!cd(r))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return fd(e,t,r,!1,n)};Vn.version="18.3.1-next-f1338f8080-20240426";function Ub(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ub)}catch(e){console.error(e)}}Ub(),Uw.exports=Vn;var Ks=Uw.exports,qb,Lv=Ks;qb=Lv.createRoot,Lv.hydrateRoot;/**
41 * @license lucide-react v0.344.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */var o_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
46 * @license lucide-react v0.344.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */const a_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Kt=(e,t)=>
vendor: 8,062 bytes, lines 50-160
50{const r=Te.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:l,...c},h)=>Te.createElement("svg",{ref:h,...o_,width:i,height:i,stroke:n,strokeWidth:a?Number(o)*24/Number(i):o,className:["lucide",`lucide-${a_(e)}`,s].join(" "),...c},[...t.map(([p,g])=>Te.createElement(p,g)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
51 * @license lucide-react v0.344.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const s_=Kt("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
56 * @license lucide-react v0.344.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const l_=Kt("AlignCenter",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"17",x2:"7",y1:"12",y2:"12",key:"rsh8ii"}],["line",{x1:"19",x2:"5",y1:"18",y2:"18",key:"1t0tuv"}]]);/**
61 * @license lucide-react v0.344.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const u_=Kt("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]);/**
66 * @license lucide-react v0.344.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const c_=Kt("AlignRight",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}],["line",{x1:"21",x2:"7",y1:"18",y2:"18",key:"1g9eri"}]]);/**
71 * @license lucide-react v0.344.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const f_=Kt("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
76 * @license lucide-react v0.344.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const h_=Kt("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
81 * @license lucide-react v0.344.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const d_=Kt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
86 * @license lucide-react v0.344.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Wb=Kt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
91 * @license lucide-react v0.344.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const p_=Kt("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
96 * @license lucide-react v0.344.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const m_=Kt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
101 * @license lucide-react v0.344.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const g_=Kt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
106 * @license lucide-react v0.344.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const y_=Kt("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
111 * @license lucide-react v0.344.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const v_=Kt("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
116 * @license lucide-react v0.344.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Bh=Kt("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
121 * @license lucide-react v0.344.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const w_=Kt("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
126 * @license lucide-react v0.344.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const b_=Kt("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
131 * @license lucide-react v0.344.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const x_=Kt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
136 * @license lucide-react v0.344.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const S_=Kt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
141 * @license lucide-react v0.344.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const __=Kt("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
146 * @license lucide-react v0.344.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const A_=Kt("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
151 * @license lucide-react v0.344.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const E_=Kt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
156 * @license lucide-react v0.344.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Hb=Kt("Quote",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",ke
160y:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]);/**
161 * @license lucide-react v0.344.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const N_=Kt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
166 * @license lucide-react v0.344.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const Cv=Kt("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
171 * @license lucide-react v0.344.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const $p=Kt("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
176 * @license lucide-react v0.344.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const k_=Kt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function rl({variant:e="primary",icon:t,children:r,className:n="",...i}){const o="flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-300 ease-in-out",a={primary:"bg-gradient-to-r from-indigo-600 to-blue-600 hover:from-indigo-700 hover:to-blue-700 text-white shadow-sm hover:shadow",secondary:"bg-white border border-gray-200 text-gray-700 hover:bg-gray-50 hover:border-gray-300 shadow-sm",ghost:"text-gray-700 hover:bg-gray-100",gradient:"bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 hover:from-pink-600 hover:via-purple-600 hover:to-indigo-600 text-white shadow-sm hover:shadow animate-gradient bg-300%"};return xe.jsxs("button",{className:`${o} ${a[e]} ${n} group`,...i,children:[t&&xe.jsx(t,{size:16,className:"group-hover:scale-110 transition-transform duration-300"}),r]})}function hg({children:e,className:t="",variant:r="primary"}){const n={primary:"from-indigo-600 via-blue-600 to-indigo-600",secondary:"from-pink-600 via-rose-600 to-pink-600",accent:"from-purple-600 via-violet-600 to-purple-600"};return xe.jsx("span",{className:`bg-gradient-to-r ${n[r]} bg-clip-text text-transparent 
181        animate-gradient bg-300% ${t}`,children:e})}function L_({onExport:e,toggleSidebar:t}){return xe.jsxs("header",{className:"h-16 bg-white/80 backdrop-blur-lg border-b border-gray-200/80 px-4 flex items-center justify-between sticky top-0 z-10",children:[xe.jsxs("div",{className:"flex items-center gap-4",children:[xe.jsx(rl,{variant:"ghost",icon:x_,onClick:t,"aria-label":"Toggle sidebar"}),xe.jsx("h1",{className:"text-xl font-semibold",children:xe.jsx(hg,{children:"Infographic Generator"})})]}),xe.jsxs("div",{className:"flex items-center gap-3",children:[xe.jsx(rl,{variant:"primary",icon:m_,onClick:()=>e("pdf"),children:"Export PDF"}),xe.jsx(rl,{variant:"secondary",icon:g_,onClick:()=>e("docx"),children:"Export DOCX"})]})]})}function C_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te.useMemo(()=>n=>{t.forEach(i=>i(n))},t)}const hd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ll(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function dg(e){return"nodeType"in e}function In(e){var t,r;return e?Ll(e)?e:dg(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function pg(e){const{Document:t}=In(e);return e instanceof t}function gc(e){return Ll(e)?!1:e instanceof In(e).HTMLElement}function Vb(e){return e instanceof In(e).SVGElement}function Cl(e){return e?Ll(e)?e.document:dg(e)?pg(e)?e:gc(e)||Vb(e)?e.ownerDocument:document:document:document}const to=hd?Te.useLayoutEffect:Te.useEffect;function mg(e){const t=Te.useRef(e);return to(()=>{t.current=e}),Te.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current==null?void 0:t.current(...n)},[])}
181function T_(){const e=Te.useRef(null),t=Te.useCallback((n,i)=>{e.current=setInterval(n,i)},[]),r=Te.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function oc(e,t){t===void 0&&(t=[e]);const r=Te.useRef(e);return to(()=>{r.current!==e&&(r.current=e)},t),r}function yc(e,t){const r=Te.useRef();return Te.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function Mh(e){const t=mg(e),r=Te.useRef(null),n=Te.useCallback(i=>{i!==r.current&&(t==null||t(i,r.current)),r.current=i},[]);return[r,n]}function V1(e){const t=Te.useRef();return Te.useEffect(()=>{t.current=e},[e]),t.current}let Gp={};function vc(e,t){return Te.useMemo(()=>{if(t)return t;const r=Gp[e]==null?0:Gp[e]+1;return Gp[e]=r,e+"-"+r},[e,t])}function $b(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((o,a)=>{const s=Object.entries(a);for(const[l,c]of s){const h=o[l];h!=null&&(o[l]=h+e*c)}return o},{...t})}}const nl=$b(1),ac=$b(-1);function P_(e){return"clientX"in e&&"clientY"in e}function gg(e){if(!e)return!1;const{KeyboardEvent:t}=In(e.target);return t&&e instanceof t}function I_(e){if(!e)return!1;const{TouchEvent:t}=In(e.target);return t&&e instanceof t}function $1(e){if(I_(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return P_(e)?{x:e.clientX,y:e.clientY}:null}const sc=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[sc.Translate.toString(e),sc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),Tv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function R_(e){return e.matches(Tv)?e:e.querySelector(Tv)}const O_={display:"none"};function F_(e){let{id:t,value:r}=e;return An.createElement("div",{id:t,style:O_},r)}function D_(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return An.createElement("div",{id:t,style:i,role:"status","aria-live":n,"aria-atomic":!0},r)}function j_(){const[e,t]=Te.useState("");return{announce:Te.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const Gb=Te.createContext(null);function B_(e){const t=Te.useContext(Gb);Te.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function M_(){const[e]=Te.useState(()=>new Set),t=Te.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[Te.useCallback(n=>{let{type:i,event:o}=n;e.forEach(a=>{var s;return(s=a[i])==null?void 0:s.call(a,o)})},[e]),t]}const z_={draggable:`
182    To pick up a draggable item, press the space bar.
183    While dragging, use the arrow keys to move the item.
184    Press space again to drop the item in its new position, or press escape to cancel.
185  `},U_={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function q_(e){let{announcements:t=U_,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=z_}=e;const{announce:o,announcement:a}=j_(),s=vc("DndLiveRegion"),[l,c]=Te.useState(!1);if(Te.useEffect(()=>{c(!0)},[]),B_(Te.useMemo(()=>({onDragStart(p){let{active:g}=p;o(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:f}=p;t.onDragMove&&o(t.onDragMove({active:g,over:f}))},onDragOver(p){let{active:g,over:f}=p;o(t.onDragOver({active:g,over:f}))},onDragEnd(p){let{active:g,over:f}=p;o(t.onDragEnd({active:g,over:f}))},onDragCancel(p){let{active:g,over:f}=p;
185o(t.onDragCancel({active:g,over:f}))}}),[o,t])),!l)return null;const h=An.createElement(An.Fragment,null,An.createElement(F_,{id:n,value:i.draggable}),An.createElement(D_,{id:s,announcement:a}));return r?Ks.createPortal(h,r):h}var Ir;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ir||(Ir={}));function zh(){}function Pv(e,t){return Te.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function W_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Te.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const Ri=Object.freeze({x:0,y:0});function Kb(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Xb(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function H_(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function Iv(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function Yb(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function Rv(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const V_=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=Rv(t,t.left,t.top),o=[];for(const a of n){const{id:s}=a,l=r.get(s);if(l){const c=Kb(Rv(l),i);o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(Xb)},$_=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=Iv(t),o=[];for(const a of n){const{id:s}=a,l=r.get(s);if(l){const c=Iv(l),h=i.reduce((g,f,S)=>g+Kb(c[S],f),0),p=Number((h/4).toFixed(4));o.push({id:s,data:{droppableContainer:a,value:p}})}}return o.sort(Xb)};function G_(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-n,s=o-r;if(n<i&&r<o){const l=t.width*t.height,c=e.width*e.height,h=a*s,p=h/(l+c-h);return Number(p.toFixed(4))}return 0}const K_=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=[];for(const o of n){const{id:a}=o,s=r.get(a);if(s){const l=G_(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(H_)};function X_(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function Jb(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ri}function Y_(e){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return i.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...r})}}const J_=Y_(1);function Z_(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Q_(e,t,r){const n=Z_(t);if(!n)return e;const{scaleX:i,scaleY:o,x:a,y:s}=n,l=e.left-a-(1-i)*parseFloat(r),c=e.top-s-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),h=i?e.width/i:e.width,p=o?e.height/o:e.height;return{width:h,height:p,top:c,right:l+h,bottom:c+p,left:l}}const eA={ignoreTransform:!1};function Tl(e,t){t===void 0&&(t=eA);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:h}=In(e).getComputedStyle(e);c&&(r=Q_(r,c,h))}const{top:n,left:i,width:o,height:a,bottom:s,right:l}=r;return{top:n,left:i,width:o,height:a,bottom:s,right:l}}function Ov(e){return Tl(e,{ignoreTransform:!0})}function tA(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function rA(e,t){return t===void 0&&(t=In(e).getComputedStyle(e)),t.position==="fixed"}function nA(e,t){t===void 0&&(t=In(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?r.test(o):!1})}function dd(e,t){const r=[];function n(i){if(t!=null&&r.length>=t||!i)return r;if(pg(i)&&i.scrollingElement!=null&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!gc(i)||Vb(i)||r.includes(i))return r;const o=In(e).getComputedStyle(i);return i!==e&&nA(i,o)&&r.push(i),rA(i,o)?r:n(i.parentNode)}return e?n(e):r}function Zb(e){const[t]=dd(e,1);return t??null}function Kp(e){return!hd||!e?null:Ll(e)?e:dg(e)?pg(e)||e===Cl(e).scrollingElement?window:gc(e)?e:null:null}function Qb(e){return Ll(e)?e.scrollX:e.scrollLeft}function ex(e){return Ll(e)?e.scrollY:e.scrollTop}function G1(e){return{x:Qb(e),y:ex(e)}}var Mr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Mr||(Mr={}));function tx(e){return!hd||!e?!1:e===document.scrollingElement}function rx(e){const t={x:0,y:0},r=tx(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=n.y,s=e.scrollLeft>=n.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:n,minScroll:t}}const iA={x:.2,y:.2};function oA(e,t,r,n,i){let{top:o,left:a,right:s,bottom:l}=r;n===void 0&&(n=10),i===void 0&&(i=iA);const{isTop:c,isBottom:h,isLeft:p,isRight:g}=rx(e),f={x:0,y:0},S={x:0,y:0},v={height:t.height*i.y,width:t.width*i.x};
185return!c&&o<=t.top+v.height?(f.y=Mr.Backward,S.y=n*Math.abs((t.top+v.height-o)/v.height)):!h&&l>=t.bottom-v.height&&(f.y=Mr.Forward,S.y=n*Math.abs((t.bottom-v.height-l)/v.height)),!g&&s>=t.right-v.width?(f.x=Mr.Forward,S.x=n*Math.abs((t.right-v.width-s)/v.width)):!p&&a<=t.left+v.width&&(f.x=Mr.Backward,S.x=n*Math.abs((t.left+v.width-a)/v.width)),{direction:f,speed:S}}function aA(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function nx(e){return e.reduce((t,r)=>nl(t,G1(r)),Ri)}function sA(e){return e.reduce((t,r)=>t+Qb(r),0)}function lA(e){return e.reduce((t,r)=>t+ex(r),0)}function uA(e,t){if(t===void 0&&(t=Tl),!e)return;const{top:r,left:n,bottom:i,right:o}=t(e);Zb(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const cA=[["x",["left","right"],sA],["y",["top","bottom"],lA]];class yg{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=dd(r),i=nx(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of cA)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(n),h=i[o]-c;return this.rect[l]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Bu{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var i;(i=this.target)==null||i.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function fA(e){const{EventTarget:t}=In(e);return e instanceof t?e:Cl(e)}function Xp(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var ni;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ni||(ni={}));function Fv(e){e.preventDefault()}function hA(e){e.stopPropagation()}var _t;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(_t||(_t={}));const ix={start:[_t.Space,_t.Enter],cancel:[_t.Esc],end:[_t.Space,_t.Enter,_t.Tab]},dA=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case _t.Right:return{...r,x:r.x+25};case _t.Left:return{...r,x:r.x-25};case _t.Down:return{...r,y:r.y+25};case _t.Up:return{...r,y:r.y-25}}};class vg{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new Bu(Cl(r)),this.windowListeners=new Bu(In(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ni.Resize,this.handleCancel),this.windowListeners.add(ni.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ni.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&uA(n),r(Ri)}handleKeyDown(t){if(gg(t)){const{active:r,context:n,options:i}=this.props,{keyboardCodes:o=ix,coordinateGetter:a=dA,scrollBehavior:s="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=n.current,h=c?{x:c.left,y:c.top}:Ri;this.referenceCoordinates||(this.referenceCoordinates=h);const p=a(t,{active:r,context:n.current,currentCoordinates:h});if(p){const g=ac(p,h),f={x:0,y:0},{scrollableAncestors:S}=n.current;for(const v of S){const k=t.code,{isTop:d,isRight:y,isLeft:_,isBottom:F,maxScroll:j,minScroll:re}=rx(v),$=aA(v),M={x:Math.min(k===_t.Right?$.right-$.width/2:$.right,Math.max(k===_t.Right?$.left:$.left+$.width/2,p.x)),y:Math.min(k===_t.Down?$.bottom-$.height/2:$.bottom,Math.max(k===_t.Down?$.top:$.top+$.height/2,p.y))},D=k===_t.Right&&!y||k===_t.Left&&!_,he=k===_t.Down&&!F||k===_t.Up&&!d;if(D&&M.x!==p.x){const H=v.scrollLeft+g.x,R=k===_t.Right&&H<=j.x||k===_t.Left&&H>=re.x;if(R&&!g.y){v.scrollTo({left:H,behavior:s});return}R?f.x=v.scrollLeft-H:f.x=k===_t.Right?v.scrollLeft-j.x:v.scrollLeft-re.x,f.x&&v.scrollBy({left:-f.x,behavior:s});break}else if(he&&M.y!==p.y){const H=v.scrollTop+g.y,R=k===_t.Down&&H<=j.y||k===_t.Up&&H>=re.y;if(R&&!g.x){v.scrollTo({top:H,behavior:s});return}R?f.y=v.scrollTop-H:f.y=k===_t.Down?v.scrollTop-j.y:v.scrollTop-re.y,f.y&&v.scrollBy({top:-f.y,behavior:s});break}}this.handleMove(t,nl(ac(p,this.referenceCoordinates),f))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}vg.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=ix,onActivation:i}=t,{active:o}=r;const{code:a}=e.nativeEvent;if(n.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Dv(e){return!!(e&&"distance"in e)}function jv(e){return!!(e&&"delay"in e)}class wg{constructor(t,r,n){var i;n===void 0&&(n=fA(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:o}=t,{target:a}=o;this.props=t,this.events=r,this.document=Cl(a),this.documentListeners=new Bu(this.document),this.listeners=new Bu(n),this.windowListeners=new Bu(In(a)),this.initialCoordinates=(i=$1(o))!=null?i:Ri,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ni.Resize,this.handleCancel),this.windowListeners.add(ni.DragStart,Fv),this.windowListeners.add(ni.VisibilityChange,this.handleCancel),this.windowListeners.add(ni.ContextMenu,Fv),this.documentListeners.add(ni.Keydown,this.handleKeydown),r){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(jv(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(Dv(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){const{active:n,onPending:i}=this.props;i(n,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(ni.Click,hA,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ni.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const l=(r=$1(t))!=null?r:Ri,c=ac(i,l);
185if(!n&&s){if(Dv(s)){if(s.tolerance!=null&&Xp(c,s.tolerance))return this.handleCancel();if(Xp(c,s.distance))return this.handleStart()}if(jv(s)&&Xp(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===_t.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const pA={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class bg extends wg{constructor(t){const{event:r}=t,n=Cl(r.target);super(t,pA,n)}}bg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const mA={move:{name:"mousemove"},end:{name:"mouseup"}};var K1;(function(e){e[e.RightClick=2]="RightClick"})(K1||(K1={}));class gA extends wg{constructor(t){super(t,mA,Cl(t.event.target))}}gA.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===K1.RightClick?!1:(n==null||n({event:r}),!0)}}];const Yp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class yA extends wg{constructor(t){super(t,Yp)}static setup(){return window.addEventListener(Yp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Yp.move.name,t)};function t(){}}}yA.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:i}=r;return i.length>1?!1:(n==null||n({event:r}),!0)}}];var Mu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Mu||(Mu={}));var Uh;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Uh||(Uh={}));function vA(e){let{acceleration:t,activator:r=Mu.Pointer,canScroll:n,draggingRect:i,enabled:o,interval:a=5,order:s=Uh.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:h,delta:p,threshold:g}=e;const f=bA({delta:p,disabled:!o}),[S,v]=T_(),k=Te.useRef({x:0,y:0}),d=Te.useRef({x:0,y:0}),y=Te.useMemo(()=>{switch(r){case Mu.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Mu.DraggableRect:return i}},[r,i,l]),_=Te.useRef(null),F=Te.useCallback(()=>{const re=_.current;if(!re)return;const $=k.current.x*d.current.x,M=k.current.y*d.current.y;re.scrollBy($,M)},[]),j=Te.useMemo(()=>s===Uh.TreeOrder?[...c].reverse():c,[s,c]);Te.useEffect(()=>{if(!o||!c.length||!y){v();return}for(const re of j){if((n==null?void 0:n(re))===!1)continue;const $=c.indexOf(re),M=h[$];if(!M)continue;const{direction:D,speed:he}=oA(re,M,y,t,g);for(const H of["x","y"])f[H][D[H]]||(he[H]=0,D[H]=0);if(he.x>0||he.y>0){v(),_.current=re,S(F,a),k.current=he,d.current=D;return}}k.current={x:0,y:0},d.current={x:0,y:0},v()},[t,F,n,v,o,a,JSON.stringify(y),JSON.stringify(f),S,c,j,h,JSON.stringify(g)])}const wA={x:{[Mr.Backward]:!1,[Mr.Forward]:!1},y:{[Mr.Backward]:!1,[Mr.Forward]:!1}};function bA(e){let{delta:t,disabled:r}=e;const n=V1(t);return yc(i=>{if(r||!n||!i)return wA;const o={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[Mr.Backward]:i.x[Mr.Backward]||o.x===-1,[Mr.Forward]:i.x[Mr.Forward]||o.x===1},y:{[Mr.Backward]:i.y[Mr.Backward]||o.y===-1,[Mr.Forward]:i.y[Mr.Forward]||o.y===1}}},[r,t,n])}function xA(e,t){const r=t!=null?e.get(t):void 0,n=r?r.node.current:null;return yc(i=>{var o;return t==null?null:(o=n??i)!=null?o:null},[n,t])}function SA(e,t){return Te.useMemo(()=>e.reduce((r,n)=>{const{sensor:i}=n,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,n)}));return[...r,...o]},[]),[e,t])}var lc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(lc||(lc={}));var X1;(function(e){e.Optimized="optimized"})(X1||(X1={}));const Bv=new Map;function _A(e,t){let{dragging:r,dependencies:n,config:i}=t;const[o,a]=Te.useState(null),{frequency:s,measure:l,strategy:c}=i,h=Te.useRef(e),p=k(),g=oc(p),f=Te.useCallback(function(d){d===void 0&&(d=[]),!g.current&&a(y=>y===null?d:y.concat(d.filter(_=>!y.includes(_))))},[g]),S=Te.useRef(null),v=yc(d=>
185{if(p&&!r)return Bv;if(!d||d===Bv||h.current!==e||o!=null){const y=new Map;for(let _ of e){if(!_)continue;if(o&&o.length>0&&!o.includes(_.id)&&_.rect.current){y.set(_.id,_.rect.current);continue}const F=_.node.current,j=F?new yg(l(F),F):null;_.rect.current=j,j&&y.set(_.id,j)}return y}return d},[e,o,r,p,l]);return Te.useEffect(()=>{h.current=e},[e]),Te.useEffect(()=>{p||f()},[r,p]),Te.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),Te.useEffect(()=>{p||typeof s!="number"||S.current!==null||(S.current=setTimeout(()=>{f(),S.current=null},s))},[s,p,f,...n]),{droppableRects:v,measureDroppableContainers:f,measuringScheduled:o!=null};function k(){switch(c){case lc.Always:return!1;case lc.BeforeDragging:return r;default:return!r}}}function ox(e,t){return yc(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function AA(e,t){return ox(e,t)}function EA(e){let{callback:t,disabled:r}=e;const n=mg(t),i=Te.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(n)},[n,r]);return Te.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function pd(e){let{callback:t,disabled:r}=e;const n=mg(t),i=Te.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return Te.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function NA(e){return new yg(Tl(e),e)}function Mv(e,t,r){t===void 0&&(t=NA);const[n,i]=Te.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??r)!=null?c:null}const h=t(e);return JSON.stringify(l)===JSON.stringify(h)?l:h})}const a=EA({callback(l){if(e)for(const c of l){const{type:h,target:p}=c;if(h==="childList"&&p instanceof HTMLElement&&p.contains(e)){o();break}}}}),s=pd({callback:o});return to(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),n}function kA(e){const t=ox(e);return Jb(e,t)}const zv=[];function LA(e){const t=Te.useRef(e),r=yc(n=>e?n&&n!==zv&&e&&t.current&&e.parentNode===t.current.parentNode?n:dd(e):zv,[e]);return Te.useEffect(()=>{t.current=e},[e]),r}function CA(e){const[t,r]=Te.useState(null),n=Te.useRef(e),i=Te.useCallback(o=>{const a=Kp(o.target);a&&r(s=>s?(s.set(a,G1(a)),new Map(s)):null)},[]);return Te.useEffect(()=>{const o=n.current;if(e!==o){a(o);const s=e.map(l=>{const c=Kp(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,G1(c)]):null}).filter(l=>l!=null);r(s.length?new Map(s):null),n.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(l=>{const c=Kp(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),Te.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>nl(o,a),Ri):nx(e):Ri,[e,t])}function Uv(e,t){t===void 0&&(t=[]);const r=Te.useRef(null);return Te.useEffect(()=>{r.current=null},t),Te.useEffect(()=>{const n=e!==Ri;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?ac(e,r.current):Ri}function TA(e){Te.useEffect(()=>{if(!hd)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function PA(e,t){return Te.useMemo(()=>e.reduce((r,n)=>{let{eventName:i,handler:o}=n;return r[i]=a=>{o(a,t)},r},{}),[e,t])}function ax(e){return Te.useMemo(()=>e?tA(e):null,[e])}const qv=[];function IA(e,t){t===void 0&&(t=Tl);const[r]=e,n=ax(r?In(r):null),[i,o]=Te.useState(qv);function a(){o(()=>e.length?e.map(l=>tx(l)?n:new yg(t(l),l)):qv)}const s=pd({callback:a});return to(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function RA(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gc(t)?t:e}function OA(e){let{measure:t}=e;const[r,n]=Te.useState(null),i=Te.useCallback(c=>{for(const{target:h}of c)if(gc(h)){n(p=>{const g=t(h);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),o=pd({callback:i}),a=Te.useCallback(c=>{const h=RA(c);o==null||o.disconnect(),h&&(o==null||o.observe(h)),n(h?t(h):null)}
185,[t,o]),[s,l]=Mh(a);return Te.useMemo(()=>({nodeRef:s,rect:r,setRef:l}),[r,s,l])}const FA=[{sensor:bg,options:{}},{sensor:vg,options:{}}],DA={current:{}},ah={draggable:{measure:Ov},droppable:{measure:Ov,strategy:lc.WhileDragging,frequency:X1.Optimized},dragOverlay:{measure:Tl}};class zu extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const jA={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new zu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zh},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ah,measureDroppableContainers:zh,windowRect:null,measuringScheduled:!1},BA={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zh,draggableNodes:new Map,over:null,measureDroppableContainers:zh},md=Te.createContext(BA),sx=Te.createContext(jA);function MA(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new zu}}}function zA(e,t){switch(t.type){case Ir.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ir.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ir.DragEnd:case Ir.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ir.RegisterDroppable:{const{element:r}=t,{id:n}=r,i=new zu(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case Ir.SetDroppableDisabled:{const{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const a=new zu(e.droppable.containers);return a.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Ir.UnregisterDroppable:{const{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const o=new zu(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function UA(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:i}=Te.useContext(md),o=V1(n),a=V1(r==null?void 0:r.id);return Te.useEffect(()=>{if(!t&&!n&&o&&a!=null){if(!gg(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const h of[l.current,c.current]){if(!h)continue;const p=R_(h);if(p){p.focus();break}}})}},[n,t,i,a,o]),null}function qA(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...n}),r):r}function WA(e){return Te.useMemo(()=>({draggable:{...ah.draggable,...e==null?void 0:e.draggable},droppable:{...ah.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ah.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function HA(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e;const o=Te.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;to(()=>
185{if(!a&&!s||!t){o.current=!1;return}if(o.current||!n)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const h=r(c),p=Jb(h,n);if(a||(p.x=0),s||(p.y=0),o.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=Zb(c);g&&g.scrollBy({top:p.y,left:p.x})}},[t,a,s,n,r])}const lx=Te.createContext({...Ri,scaleX:1,scaleY:1});var Go;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Go||(Go={}));const VA=Te.memo(function(t){var r,n,i,o;let{id:a,accessibility:s,autoScroll:l=!0,children:c,sensors:h=FA,collisionDetection:p=K_,measuring:g,modifiers:f,...S}=t;const v=Te.useReducer(zA,void 0,MA),[k,d]=v,[y,_]=M_(),[F,j]=Te.useState(Go.Uninitialized),re=F===Go.Initialized,{draggable:{active:$,nodes:M,translate:D},droppable:{containers:he}}=k,H=$!=null?M.get($):null,R=Te.useRef({initial:null,translated:null}),X=Te.useMemo(()=>{var kt;return $!=null?{id:$,data:(kt=H==null?void 0:H.data)!=null?kt:DA,rect:R}:null},[$,H]),T=Te.useRef(null),[se,ye]=Te.useState(null),[ae,ue]=Te.useState(null),oe=oc(S,Object.values(S)),me=vc("DndDescribedBy",a),de=Te.useMemo(()=>he.getEnabled(),[he]),A=WA(g),{droppableRects:B,measureDroppableContainers:z,measuringScheduled:ee}=_A(de,{dragging:re,dependencies:[D.x,D.y],config:A.droppable}),V=xA(M,$),C=Te.useMemo(()=>ae?$1(ae):null,[ae]),L=Xr(),Y=AA(V,A.draggable.measure);HA({activeNode:$!=null?M.get($):null,config:L.layoutShiftCompensation,initialRect:Y,measure:A.draggable.measure});const Z=Mv(V,A.draggable.measure,Y),U=Mv(V?V.parentElement:null),G=Te.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:he,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=he.getNodeFor((r=G.current.over)==null?void 0:r.id),I=OA({measure:A.dragOverlay.measure}),le=(n=I.nodeRef.current)!=null?n:V,N=re?(i=I.rect)!=null?i:Z:null,w=!!(I.nodeRef.current&&I.rect),b=kA(w?null:Z),P=ax(le?In(le):null),Q=LA(re?ge??V:null),fe=IA(Q),ie=qA(f,{transform:{x:D.x-b.x,y:D.y-b.y,scaleX:1,scaleY:1},activatorEvent:ae,active:X,activeNodeRect:Z,containerNodeRect:U,draggingNodeRect:N,over:G.current.over,overlayNodeRect:I.rect,scrollableAncestors:Q,scrollableAncestorRects:fe,windowRect:P}),_e=C?nl(C,D):null,Ce=CA(Q),Le=Uv(Ce),Oe=Uv(Ce,[Z]),We=nl(ie,Le),$e=N?J_(N,ie):null,Je=X&&$e?p({active:X,collisionRect:$e,droppableRects:B,droppableContainers:de,pointerCoordinates:_e}):null,at=Yb(Je,"id"),[Ve,Xt]=Te.useState(null),rt=w?ie:nl(ie,Oe),Or=X_(rt,(o=Ve==null?void 0:Ve.rect)!=null?o:null,Z),xt=Te.useRef(null),vt=Te.useCallback((kt,mt)=>{let{sensor:tt,options:gt}=mt;if(T.current==null)return;const Ar=M.get(T.current);if(!Ar)return;const Lt=kt.nativeEvent,hr=new tt({active:T.current,activeNode:Ar,event:Lt,options:gt,context:G,onAbort(Ze){if(!M.get(Ze))return;const{onDragAbort:dr}=oe.current,er={id:Ze};dr==null||dr(er),y({type:"onDragAbort",event:er})},onPending(Ze,Er,dr,er){if(!M.get(Ze))return;const{onDragPending:Wt}=oe.current,ar={id:Ze,constraint:Er,initialCoordinates:dr,offset:er};Wt==null||Wt(ar),y({type:"onDragPending",event:ar})},onStart(Ze){const Er=T.current;if(Er==null)return;const dr=M.get(Er);if(!dr)return;const{onDragStart:er}=oe.current,Yt={activatorEvent:Lt,active:{id:Er,data:dr.data,rect:R}};Ks.unstable_batchedUpdates(()=>{er==null||er(Yt),j(Go.Initializing),d({type:Ir.DragStart,initialCoordinates:Ze,active:Er}),y({type:"onDragStart",event:Yt}),ye(xt.current),ue(Lt)})},onMove(Ze){d({type:Ir.DragMove,coordinates:Ze})},onEnd:qr(Ir.DragEnd),onCancel:qr(Ir.DragCancel)});xt.current=hr;function qr(Ze){return async function(){const{active:dr,collisions:er,over:Yt,scrollAdjustedTranslate:Wt}=G.current;let ar=null;if(dr&&Wt){const{cancelDrop:Gn}=oe.current;ar={activatorEvent:Lt,active:dr,collisions:er,delta:Wt,over:Yt},Ze===Ir.DragEnd&&typeof Gn=="function"&&await Promise.resolve(Gn(ar))&&(Ze=Ir.DragCancel)}T.current=null,Ks.unstable_batchedUpdates(()=>{d({type:Ze}),j(Go.Uninitialized),Xt(null),ye(null),ue(null),xt.current=null;const Gn=Ze===Ir.DragEnd?"onDragEnd":"onDragCancel";if(ar){const On=oe.current[Gn];On==null||On(ar),y({type:Gn,event:ar})}})}}},[M]),cn=Te.useCallback((kt,mt)=>(tt,gt)=>{const Ar=tt.nativeEvent,Lt=M.get(gt);if(T.current!==null||!Lt||Ar.dndKit||Ar.defaultPrevented)return;const hr={active:Lt};kt(tt,mt.options,hr)===!0&&(Ar.dndKit={capturedBy:mt.sensor},T.current=gt,vt(tt,mt))},[M,vt]),St=SA(h,cn);TA(h),to(()=>{Z&&F===Go.Initializing&&j(Go.Initialized)},[Z,F]),Te.useEffect(()=>{const{onDragMove:kt}=oe.current,{active:mt,activatorEvent:tt,collisions:gt,over:Ar}=G.current;if(!mt||!tt)return;const Lt={active:mt,activatorEvent:tt,collisions:gt,delta:{x:We.x,y:We.y},over:Ar};Ks.unstable_batchedUpdates(()=>{kt==null||kt(Lt),y({type:"onDragMove",event:Lt})})},[We.x,We.y]),Te.useEffect(()=>{const{active:kt,activatorEvent:mt,collisions:tt,droppableContainers:gt,scrollAdjustedTranslate:Ar}=G.current;if(!kt||T.current==null||!mt||!Ar)return;const{onDragOver:Lt}=oe.current,hr=gt.get(at),qr=hr&&hr.rect.current?{id:hr.id,rect:hr.rect.current,data:hr.data,disabled:hr.disabled}:null,Ze={active:kt,activatorEvent:mt,collisions:tt,delta:{x:Ar.x,y:Ar.y},over:qr};Ks.unstable_batchedUpdates(()=>{Xt(qr),Lt==null||Lt(Ze),y({type:"onDragOver",event:Ze})})},[at]),to(()=>{G.current={activatorEvent:ae,active:X,activeNode:V,collisionRect:$e,collisions:Je,droppableRects:B,draggableNodes:M,draggingNode:le,draggingNodeRect:N,droppableContainers:he,over:Ve,scrollableAncestors:Q,scrollAdjustedTranslate:We},R.current={initial:N,translated:$e}},[X,V,Je,$e,M,le,N,B,he,Ve,Q,We]),vA({...L,delta:D,draggingRect:$e,pointerCoordinates:_e,scrollableAncestors:Q,scrollableAncestorRects:fe});const fi=Te.useMemo(()=>({active:X,activeNode:V,activeNodeRect:Z,activatorEvent:ae,collisions:Je,containerNodeRect:U,dragOverlay:I,draggableNodes:M,droppableContainers:he,droppableRects:B,over:Ve,measureDroppableContainers:z,scrollableAncestors:Q,scrollableAncestorRects:fe,measuringConfiguration:A,measuringScheduled:ee,windowRect:P}),[X,V,Z,ae,Je,U,I,M,he,B,Ve,z,Q,fe,A,ee,P]),qt=Te.useMemo(()=>({activatorEvent:ae,activators:St,active:X,activeNodeRect:Z,ariaDescribedById:{draggable:me},dispatch:d,draggableNodes:M,over:Ve,measureDroppableContainers:z}),[ae,St,X,Z,d,me,M,Ve,z]);return An.createElement(Gb.Provider,{value:_},An.createElement(md.Provider,{value:qt},An.createElement(sx.Provider,{value:fi},An.createElement(lx.Provider,{value:Or}
185,c)),An.createElement(UA,{disabled:(s==null?void 0:s.restoreFocus)===!1})),An.createElement(q_,{...s,hiddenTextDescribedById:me}));function Xr(){const kt=(se==null?void 0:se.autoScrollEnabled)===!1,mt=typeof l=="object"?l.enabled===!1:l===!1,tt=re&&!kt&&!mt;return typeof l=="object"?{...l,enabled:tt}:{enabled:tt}}}),$A=Te.createContext(null),Wv="button",GA="Draggable";function KA(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e;const o=vc(GA),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:h,draggableNodes:p,over:g}=Te.useContext(md),{role:f=Wv,roleDescription:S="draggable",tabIndex:v=0}=i??{},k=(l==null?void 0:l.id)===t,d=Te.useContext(k?lx:$A),[y,_]=Mh(),[F,j]=Mh(),re=PA(a,t),$=oc(r);to(()=>(p.set(t,{id:t,key:o,node:y,activatorNode:F,data:$}),()=>{const D=p.get(t);D&&D.key===o&&p.delete(t)}),[p,t]);const M=Te.useMemo(()=>({role:f,tabIndex:v,"aria-disabled":n,"aria-pressed":k&&f===Wv?!0:void 0,"aria-roledescription":S,"aria-describedby":h.draggable}),[n,f,v,k,S,h.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:M,isDragging:k,listeners:n?void 0:re,node:y,over:g,setNodeRef:_,setActivatorNodeRef:j,transform:d}}function XA(){return Te.useContext(sx)}const YA="Droppable",JA={timeout:25};function ZA(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e;const o=vc(YA),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=Te.useContext(md),h=Te.useRef({disabled:r}),p=Te.useRef(!1),g=Te.useRef(null),f=Te.useRef(null),{disabled:S,updateMeasurementsFor:v,timeout:k}={...JA,...i},d=oc(v??n),y=Te.useCallback(()=>{if(!p.current){p.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(d.current)?d.current:[d.current]),f.current=null},k)},[k]),_=pd({callback:y,disabled:S||!a}),F=Te.useCallback((M,D)=>{_&&(D&&(_.unobserve(D),p.current=!1),M&&_.observe(M))},[_]),[j,re]=Mh(F),$=oc(t);return Te.useEffect(()=>{!_||!j.current||(_.disconnect(),p.current=!1,_.observe(j.current))},[j,_]),Te.useEffect(()=>(s({type:Ir.RegisterDroppable,element:{id:n,key:o,disabled:r,node:j,rect:g,data:$}}),()=>s({type:Ir.UnregisterDroppable,key:o,id:n})),[n]),Te.useEffect(()=>{r!==h.current.disabled&&(s({type:Ir.SetDroppableDisabled,id:n,key:o,disabled:r}),h.current.disabled=r)},[n,o,r,s]),{active:a,rect:g,isOver:(l==null?void 0:l.id)===n,node:j,over:l,setNodeRef:re}}function xg(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function QA(e,t){return e.reduce((r,n,i)=>{const o=t.get(n);return o&&(r[i]=o),r},Array(e.length))}function Tf(e){return e!==null&&e>=0}function e8(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function t8(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ux=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const o=xg(t,n,r),a=t[i],s=o[i];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},Pf={scaleX:1,scaleY:1},r8=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:o,overIndex:a}=e;const s=(t=o[r])!=null?t:n;if(!s)return null;if(i===r){const c=o[a];return c?{x:0,y:r<a?c.top+c.height-(s.top+s.height):c.top-s.top,...Pf}:null}const l=n8(o,i,r);return i>r&&i<=a?{x:0,y:-s.height-l,...Pf}:i<r&&i>=a?{x:0,y:s.height+l,...Pf}:{x:0,y:0,...Pf}};function n8(e,t,r){const n=e[t],i=e[t-1],o=e[t+1];return n?r<t?i?n.top-(i.top+i.height):o?o.top-(n.top+n.height):0:o?o.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const cx="Sortable",fx=An.createContext({activeIndex:-1,containerId:cx,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ux,disabled:{draggable:!1,droppable:!1}});function i8(e){let{children:t,id:r,items:n,strategy:i=ux,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:h}=XA(),p=vc(cx,r),g=s.rect!==null,f=Te.useMemo(()=>n.map(re=>typeof re=="object"&&"id"in re?re.id:re),[n]),S=a!=null,v=a?f.indexOf(a.id):-1,k=c?f.indexOf(c.id):-1,d=Te.useRef(f),y=!e8(f,d.current),_=k!==-1&&v===-1||y,F=t8(o);to(()=>{y&&S&&h(f)},[y,f,S,h]),Te.useEffect(()=>{d.current=f},[f]);const j=Te.useMemo(()=>({activeIndex:v,containerId:p,disabled:F,disableTransforms:_,items:f,overIndex:k,useDragOverlay:g,sortedRects:QA(f,l),strategy:i}
185),[v,p,F.draggable,F.droppable,_,f,k,l,g,i]);return An.createElement(fx.Provider,{value:j},t)}const o8=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return xg(r,n,i).indexOf(t)},a8=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!n||s!==o&&i===a?!1:r?!0:a!==i&&t===l},s8={duration:200,easing:"ease"},hx="transform",l8=sc.Transition.toString({property:hx,duration:0,easing:"linear"}),u8={roleDescription:"sortable"};function c8(e){let{disabled:t,index:r,node:n,rect:i}=e;const[o,a]=Te.useState(null),s=Te.useRef(r);return to(()=>{if(!t&&r!==s.current&&n.current){const l=i.current;if(l){const c=Tl(n.current,{ignoreTransform:!0}),h={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(h.x||h.y)&&a(h)}}r!==s.current&&(s.current=r)},[t,r,n,i]),Te.useEffect(()=>{o&&a(null)},[o]),o}function f8(e){let{animateLayoutChanges:t=a8,attributes:r,disabled:n,data:i,getNewIndex:o=o8,id:a,strategy:s,resizeObserverConfig:l,transition:c=s8}=e;const{items:h,containerId:p,activeIndex:g,disabled:f,disableTransforms:S,sortedRects:v,overIndex:k,useDragOverlay:d,strategy:y}=Te.useContext(fx),_=h8(n,f),F=h.indexOf(a),j=Te.useMemo(()=>({sortable:{containerId:p,index:F,items:h},...i}),[p,i,F,h]),re=Te.useMemo(()=>h.slice(h.indexOf(a)),[h,a]),{rect:$,node:M,isOver:D,setNodeRef:he}=ZA({id:a,data:j,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:re,...l}}),{active:H,activatorEvent:R,activeNodeRect:X,attributes:T,setNodeRef:se,listeners:ye,isDragging:ae,over:ue,setActivatorNodeRef:oe,transform:me}=KA({id:a,data:j,attributes:{...u8,...r},disabled:_.draggable}),de=C_(he,se),A=!!H,B=A&&!S&&Tf(g)&&Tf(k),z=!d&&ae,ee=z&&B?me:null,C=B?ee??(s??y)({rects:v,activeNodeRect:X,activeIndex:g,overIndex:k,index:F}):null,L=Tf(g)&&Tf(k)?o({id:a,items:h,activeIndex:g,overIndex:k}):F,Y=H==null?void 0:H.id,Z=Te.useRef({activeId:Y,items:h,newIndex:L,containerId:p}),U=h!==Z.current.items,G=t({active:H,containerId:p,isDragging:ae,isSorting:A,id:a,index:F,items:h,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:c,wasDragging:Z.current.activeId!=null}),ge=c8({disabled:!G,index:F,node:M,rect:$});return Te.useEffect(()=>{A&&Z.current.newIndex!==L&&(Z.current.newIndex=L),p!==Z.current.containerId&&(Z.current.containerId=p),h!==Z.current.items&&(Z.current.items=h)},[A,L,p,h]),Te.useEffect(()=>{if(Y===Z.current.activeId)return;if(Y&&!Z.current.activeId){Z.current.activeId=Y;return}const le=setTimeout(()=>{Z.current.activeId=Y},50);return()=>clearTimeout(le)},[Y]),{active:H,activeIndex:g,attributes:T,data:j,rect:$,index:F,newIndex:L,items:h,isOver:D,isSorting:A,isDragging:ae,listeners:ye,node:M,overIndex:k,over:ue,setNodeRef:de,setActivatorNodeRef:oe,setDroppableNodeRef:he,setDraggableNodeRef:se,transform:ge??C,transition:I()};function I(){if(ge||U&&Z.current.newIndex===F)return l8;if(!(z&&!gg(R)||!c)&&(A||G))return sc.Transition.toString({...c,property:hx})}}function h8(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function qh(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const d8=[_t.Down,_t.Right,_t.Up,_t.Left],p8=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:o,over:a,scrollableAncestors:s}}=t;if(d8.includes(e.code)){if(e.preventDefault(),!r||!n)return;const l=[];o.getEnabled().forEach(p=>{if(!p||p!=null&&p.disabled)return;const g=i.get(p.id);if(g)switch(e.code){case _t.Down:n.top<g.top&&l.push(p);break;case _t.Up:n.top>g.top&&l.push(p);break;case _t.Left:n.left>g.left&&l.push(p);break;case _t.Right:n.left<g.left&&l.push(p);break}});const c=$_({collisionRect:n,droppableRects:i,droppableContainers:l});let h=Yb(c,"id");if(h===(a==null?void 0:a.id)&&c.length>1&&(h=c[1].id),h!=null){const p=o.get(r.id),g=o.get(h),f=g?i.get(g.id):null,S=g==null?void 0:g.node.current;if(S&&f&&p&&g){const k=dd(S).some((re,$)=>s[$]!==re),d=dx(p,g),y=m8(p,g),_=k||!d?{x:0,y:0}:{x:y?n.width-f.width:0,y:y?n.height-f.height:0},F={x:f.left,y:f.top};return _.x&&_.y?F:ac(F,_)}}}};function dx(e,t){return!qh(e)||!qh(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function m8(e,t){return!qh(e)||!qh(t)||!dx(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function g8({section:e}){const t=()=>{var i;switch((i=e.style)==null?void 0:i.align){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}},r=()=>{var i;switch((i=e.style)==null?void 0:i.size){case"small":return"text-sm";case"large":return"text-xl";default:return"text-base"}},n=()=>{var i;switch((i=e.style)==null?void 0:i.variant){case"highlight":return"bg-blue-50 text-blue-800";case"muted":return"text-gray-600";default:return""}};switch(e.type){case"image":return xe.jsx("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden bg-gray-100",children:xe.jsx("img",{src:e.imageUrl,alt:e.imageAlt||"Infographic image",className:"w-full h-full object-cover transition-transform duration-300 hover:scale-105"})});case"stat":return xe.jsx("div",{className:`text-3xl font-bold ${t()} ${n()}`,children:e.content});case"list":return xe.jsx("ul",{className:`list-disc list-inside space-y-2 ${t()} ${r()} ${n()}`,children:e.content.split(`
186`).map((a,s)=>xe.jsx("li",{className:"leading-relaxed",children:a},s))});case"quote":return xe.jsxs("blockquote",{className:"border-l-4 border-blue-500 pl-4 py-2 italic",children:[xe.jsx(Hb,{size:20,className:"text-blue-500 mb-2"}),xe.jsx("p",{className:`${r()} ${n()}`,children:e.content})]});case"callout":return xe.jsx("div",{className:"bg-amber-50 border-l-4 border-amber-500 p-4 rounded-r-lg",children:xe.jsxs("div",{className:"flex items-start gap-3",children:[xe.jsx(s_,{size:20,className:"text-amber-500 mt-1"}),xe.jsx("p",{className:`${r()} text-amber-800`,children:e.content})]})});case"comparison":const[i,o]=e.content.split("|").map(a=>a.trim());return xe.jsxs("div",{className:"grid grid-cols-2 gap-4 text-center",children:[xe.jsx("div",{className:"p-4 bg-gray-50 rounded-lg",children:xe.jsx("p",{className:`${r()} ${n()}`,children:i})}),xe.jsx("div",{className:"p-4 bg-gray-50 rounded-lg",children:xe.jsx("p",{className:`${r()} ${n()}`,children:o})})]});case"timeline":return xe.jsxs("div",{className:"flex items-start gap-4",children:[xe.jsx(Wb,{size:20,className:"text-blue-500 mt-1"}),xe.jsx("div",{className:`flex-1 ${r()} ${n()}`,children:e.content.split(`
187`).map((a,s)=>xe.jsx("div",{className:"mb-2 last:mb-0",children:a},s))})]});case"heading":return xe.jsx("h2",{className:`text-2xl font-bold ${t()} ${n()}`,children:e.content});default:return xe.jsx("p",{className:`leading-relaxed ${t()} ${r()} ${n()}`,children:e.content})}}function y8({section:e,index:t,onEdit:r,onDelete:n}){const{attributes:i,listeners:o,setNodeRef:a,transform:s,transition:l,isDragging:c}=f8({id:e.id}),h={transform:sc.Transform.toString(s),transition:l,opacity:c?.5:1};return xe.jsx("div",{ref:a,style:h,id:`section-${e.id}`,className:"bg-white rounded-lg shadow-sm p-4 transition-all duration-300 ease-in-out hover:shadow-md",children:xe.jsxs("div",{className:"flex items-start gap-4",children:[xe.jsx("div",{...i,...o,className:"text-gray-400 cursor-grab pt-1 touch-none",children:xe.jsx(v_,{size:20})}),xe.jsxs("div",{className:"flex-1",children:[xe.jsx("div",{className:"text-sm font-medium text-gray-600 mb-2",children:e.type.charAt(0).toUpperCase()+e.type.slice(1)}),xe.jsx(g8,{section:e})]}),xe.jsxs("div",{className:"flex gap-2",children:[xe.jsx("button",{type:"button",className:"p-2 hover:bg-gray-100 rounded-full transition-colors",onClick:()=>r(e),"aria-label":"Edit section",children:xe.jsx(A_,{size:16,className:"text-gray-500"})}),xe.jsx("button",{type:"button",className:"p-2 hover:bg-gray-100 rounded-full transition-colors",onClick:()=>n(t),"aria-label":"Delete section",children:xe.jsx(N_,{size:16,className:"text-gray-500"})})]})]})})}function v8({section:e,editContent:t,onEditChange:r,onStyleChange:n,onSave:i,onCancel:o}){const a=(c,h)=>{n({style:{...e.style,[c]:h}})},s=()=>{var c,h,p,g,f;return xe.jsxs("div",{className:"flex items-center gap-4 mt-4 pt-4 border-t border-gray-100",children:[xe.jsxs("div",{className:"flex items-center gap-2",children:[xe.jsx("span",{className:"text-sm text-gray-500",children:"Align:"}),xe.jsxs("div",{className:"flex border border-gray-200 rounded-lg overflow-hidden",children:[xe.jsx("button",{onClick:()=>a("align","left"),className:`p-2 ${((c=e.style)==null?void 0:c.align)==="left"?"bg-gray-100":"hover:bg-gray-50"}`,children:xe.jsx(u_,{size:16})}),xe.jsx("button",{onClick:()=>a("align","center"),className:`p-2 border-l border-r border-gray-200 ${((h=e.style)==null?void 0:h.align)==="center"?"bg-gray-100":"hover:bg-gray-50"}`,children:xe.jsx(l_,{size:16})}),xe.jsx("button",{onClick:()=>a("align","right"),className:`p-2 ${((p=e.style)==null?void 0:p.align)==="right"?"bg-gray-100":"hover:bg-gray-50"}`,children:xe.jsx(c_,{size:16})})]})]}),xe.jsxs("div",{className:"flex items-center gap-2",children:[xe.jsx("span",{className:"text-sm text-gray-500",children:"Size:"}),xe.jsxs("select",{value:((g=e.style)==null?void 0:g.size)||"medium",onChange:S=>a("size",S.target.value),className:"border border-gray-200 rounded-lg p-2 text-sm",children:[xe.jsx("option",{value:"small",children:"Small"}),xe.jsx("option",{value:"medium",children:"Medium"}),xe.jsx("option",{value:"large",children:"Large"})]})]}),xe.jsxs("div",{className:"flex items-center gap-2",children:[xe.jsx("span",{className:"text-sm text-gray-500",children:"Style:"}),xe.jsxs("select",{value:((f=e.style)==null?void 0:f.variant)||"default",onChange:S=>a("variant",S.target.value),className:"border border-gray-200 rounded-lg p-2 text-sm",children:[xe.jsx("option",{value:"default",children:"Default"}),xe.jsx("option",{value:"highlight",children:"Highlight"}),xe.jsx("option",{value:"muted",children:"Muted"})]})]})]})},l=()=>{switch(e.type){case"image":return xe.jsxs("div",{className:"space-y-3",children:[xe.jsxs("div",{className:"space-y-1",children:[xe.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Image URL"}),xe.jsxs("div",{className:"relative",children:[xe.jsx("input",{type:"url",value:e.imageUrl||"",onChange:c=>n({imageUrl:c.target.value}),className:"w-full pl-10 pr-3 py-2 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"https://images.unsplash.com/..."}),xe.jsx(Bh,{className:"absolute left-3 top-2.5 h-5 w-5 text-gray-400"})]})]}),xe.jsxs("div",{className:"space-y-1",children:[xe.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Alt Text"}),xe.jsx("input",{type:"text",value:e.imageAlt||"",onChange:c=>n({imageAlt:c.target.value}),className:"w-full px-3 py-2 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Describe the image for accessibility"})]})]});case"comparison":return xe.jsx("div",{className:"space-y-3",children:xe.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Left Side"}),xe.jsx("textarea",{value:t.split("|")[0]||"",onChange:c=>r(`${c.target.value}|${t.split("|")[1]||""}`),className:"w-full px-3 py-2 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",rows:3,placeholder:"Left side content"})]}),xe.jsxs("div",{children:[xe.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Right Side"}),xe.jsx("textarea",{value:t.split("|")[1]||"",onChange:c=>r(`${t.split("|")[0]||""}|${c.target.value}`),className:"w-full px-3 py-2 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",rows:3,placeholder:"Right side content"})]})]})});case"timeline":case"list":return xe.jsx("textarea",{value:t,onChange:c=>r(c.target.value),className:"w-full px-3 py-2 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",rows:4,placeholder:e.type==="timeline"?"Enter timeline events (one per line)":"Enter list items (one per line)"});default:return xe.jsx("input",{type:"text",value:t,onChange:c=>r(c.target.value),className:"w-full px-3 py-2 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Enter content"})}};return xe.jsxs("div",{className:"space-y-4",children:[l(),e.type!=="image"&&s(),xe.jsxs("div",{className:"flex justify-end gap-2",children:[xe.jsx("button",{onClick:o,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",title:"Cancel",children:xe.jsx(k_,{size:16,className:"text-gray-500"})}),xe.jsx("button",{onClick:i,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",title:"Save",children:xe.jsx(d_,{size:16,className:"text-green-500"})})]})]})}function w8({sections:e,onSectionsChange:t}){const[r,n]=Te.useState(null),[i,o]=Te.useState(""),[a,s]=Te.useState(null),l=Te.useRef(null),c=W_(Pv(bg),Pv(vg,{coordinateGetter:p8})),h=k=>{const{active:d,over:y}=k;if(d.id!==y.id){const _=e.findIndex(j=>j.id===d.id),F=e.findIndex(j=>j.id===y.id);
187t(xg(e,_,F))}},p=k=>{const d=e.filter((y,_)=>_!==k);t(d)},g=k=>{n(k.id),o(k.content),s(k),setTimeout(()=>{const d=document.getElementById(`section-${k.id}`);d&&d.scrollIntoView({behavior:"smooth",block:"center"})},100)},f=()=>{if(!a)return;const k=e.map(d=>d.id===r?{...a,content:i}:d);t(k),n(null),s(null)},S=k=>{a&&s({...a,...k})},v=()=>{n(null),o(""),s(null)};return xe.jsx(VA,{sensors:c,collisionDetection:V_,onDragEnd:h,children:xe.jsx(i8,{items:e.map(k=>k.id),strategy:r8,children:xe.jsx("div",{ref:l,className:"space-y-4 overflow-y-auto scroll-smooth",children:e.map((k,d)=>r===k.id?xe.jsxs("div",{id:`section-${k.id}`,className:"bg-white rounded-lg shadow-sm p-4 transition-all duration-300 ease-in-out",children:[xe.jsx("div",{className:"text-sm font-medium text-gray-600 mb-2",children:k.type.charAt(0).toUpperCase()+k.type.slice(1)}),xe.jsx(v8,{section:a||k,editContent:i,onEditChange:o,onStyleChange:S,onSave:f,onCancel:v})]},k.id):xe.jsx(y8,{section:k,index:d,onEdit:g,onDelete:p},k.id))})})})}let If;const b8=new Uint8Array(16);function x8(){if(!If&&(If=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!If))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return If(b8)}const Vr=[];for(let e=0;e<256;++e)Vr.push((e+256).toString(16).slice(1));function S8(e,t=0){return Vr[e[t+0]]+Vr[e[t+1]]+Vr[e[t+2]]+Vr[e[t+3]]+"-"+Vr[e[t+4]]+Vr[e[t+5]]+"-"+Vr[e[t+6]]+Vr[e[t+7]]+"-"+Vr[e[t+8]]+Vr[e[t+9]]+"-"+Vr[e[t+10]]+Vr[e[t+11]]+Vr[e[t+12]]+Vr[e[t+13]]+Vr[e[t+14]]+Vr[e[t+15]]}const _8=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hv={randomUUID:_8};function px(e,t,r){if(Hv.randomUUID&&!e)return Hv.randomUUID();e=e||{};const n=e.random||(e.rng||x8)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,S8(n)}const A8=[{type:"text",icon:Cv,label:"Text"},{type:"heading",icon:Cv,label:"Heading"},{type:"stat",icon:h_,label:"Statistic"},{type:"list",icon:w_,label:"List"},{type:"image",icon:Bh,label:"Image"},{type:"quote",icon:Hb,label:"Quote"},{type:"callout",icon:S_,label:"Callout"},{type:"comparison",icon:f_,label:"Comparison"},{type:"timeline",icon:Wb,label:"Timeline"}];function E8({content:e,onChange:t}){const[r,n]=Te.useState("text"),[i,o]=Te.useState(!1),a=l=>{const c={id:px(),type:l,content:"",style:{align:"left",size:"medium",variant:"default"}};t({...e,sections:[...e.sections,c]}),o(!1)},s=l=>{t({...e,sections:l})};return xe.jsxs("div",{className:"space-y-4",children:[xe.jsxs("div",{className:"flex items-center justify-between",children:[xe.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Content"}),xe.jsxs("div",{className:"relative",children:[xe.jsxs("button",{onClick:()=>o(!i),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-all duration-300 ease-in-out shadow-sm hover:shadow group",children:[xe.jsx(E_,{size:16,className:"group-hover:rotate-90 transition-transform duration-300"}),xe.jsx("span",{className:"font-medium",children:"Add Section"})]}),i&&xe.jsx("div",{className:"absolute right-0 mt-2 w-56 bg-white rounded-lg shadow-lg border border-gray-100 py-2 z-20",children:A8.map(({type:l,icon:c,label:h})=>xe.jsxs("button",{onClick:()=>a(l),className:"w-full px-4 py-2 flex items-center gap-3 hover:bg-gray-50 transition-colors text-left",children:[xe.jsx(c,{size:16,className:"text-gray-500"}),xe.jsx("span",{className:"text-sm font-medium text-gray-700",children:h})]},l))})]})]}),xe.jsx("input",{type:"text",value:e.title,onChange:l=>t({...e,title:l.target.value}),placeholder:"Enter title...",className:"w-full px-4 py-3 border border-gray-200 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-300 text-lg font-medium placeholder-gray-400"}),xe.jsx(w8,{sections:e.sections,onSectionsChange:s})]})}const N8=[{id:"modern",name:"Modern",icon:__},{id:"classic",name:"Classic",icon:p_},{id:"minimal",name:"Minimal",icon:y_}];function k8({selected:e,onSelect:t}){return xe.jsx("div",{className:"grid grid-cols-3 gap-4",children:N8.map(({id:r,name:n,icon:i})=>xe.jsxs("button",{onClick:()=>t(r),className:`p-6 rounded-lg border-2 transition-all ${e===r?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"}`,children:[xe.jsx(i,{className:"w-8 h-8 mb-3 mx-auto text-gray-700"}),xe.jsx("div",{className:"text-sm font-medium text-gray-900",children:n})]},r))})}const L8=[{background:"#ffffff",text:"#1f2937",primary:"#3b82f6",secondary:"#64748b"},{background:"#f8fafc",text:"#0f172a",primary:"#6366f1",secondary:"#94a3b8"},{background:"#ffffff",text:"#18181b",primary:"#8b5cf6",secondary:"#7171
1877a"}];function C8({selectedPalette:e,onChange:t}){return xe.jsxs("div",{className:"space-y-4",children:[xe.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Color Palette"}),xe.jsx("div",{className:"grid grid-cols-2 gap-3",children:L8.map((r,n)=>xe.jsx("button",{onClick:()=>t(r),className:`p-3 rounded-lg border-2 transition-all ${JSON.stringify(r)===JSON.stringify(e)?"border-blue-500":"border-gray-200 hover:border-gray-300"}`,children:xe.jsx("div",{className:"flex gap-2",children:Object.values(r).map((i,o)=>xe.jsx("div",{className:"w-6 h-6 rounded-full",style:{backgroundColor:i}},o))})},n))}),xe.jsx("div",{className:"space-y-3",children:Object.entries(e).map(([r,n])=>xe.jsxs("div",{className:"flex items-center gap-3",children:[xe.jsxs("label",{className:"text-sm font-medium text-gray-700 capitalize",children:[r,":"]}),xe.jsx("input",{type:"color",value:n,onChange:i=>t({...e,[r]:i.target.value}),className:"h-8 w-14 rounded cursor-pointer"})]},r))})]})}const mx=[{id:"business",name:"Business & Finance",description:"Financial reports, market analysis, and business strategies",icon:"📊",suggestedSections:["stat","chart","comparison","list"]},{id:"education",name:"Education & Learning",description:"Educational content, tutorials, and learning materials",icon:"📚",suggestedSections:["text","list","timeline","image"]},{id:"technology",name:"Technology & Innovation",description:"Tech trends, product features, and innovations",icon:"💻",suggestedSections:["image","comparison","stat","timeline"]},{id:"health",name:"Health & Wellness",description:"Health tips, medical information, and wellness guides",icon:"🏥",suggestedSections:["list","callout","stat","image"]},{id:"environment",name:"Environment & Sustainability",description:"Environmental data, sustainability practices, and eco-friendly tips",icon:"🌍",suggestedSections:["chart","stat","timeline","image"]},{id:"marketing",name:"Marketing & Advertising",description:"Marketing strategies, campaign analysis, and brand stories",icon:"📢",suggestedSections:["comparison","stat","chart","quote"]}];function Sg({children:e,className:t="",variant:r="default"}){const n={default:"bg-white/90 shadow-lg shadow-indigo-100/30 hover:shadow-xl hover:shadow-indigo-200/40 transition-all duration-500",gradient:"bg-gradient-to-br from-white via-gray-50/90 to-white/80 backdrop-blur-lg shadow-xl shadow-indigo-100/20",glass:"bg-white/80 backdrop-blur-lg border border-white/20 shadow-xl shadow-indigo-100/20"};return xe.jsx("div",{className:`${n[r]} rounded-xl 
188        transition-all duration-500 ease-in-out 
189        hover:shadow-xl hover:-translate-y-0.5 ${t}
190        animate-gradient bg-300% hover:bg-gradient-to-br hover:from-white/95 hover:via-white/98 hover:to-white/95`,children:e})}function T8({selectedTopic:e,onSelect:t}){return xe.jsxs("div",{className:"space-y-4",children:[xe.jsx("h2",{className:"text-lg font-semibold",children:xe.jsx(hg,{children:"Choose a Topic"})}),xe.jsx("div",{className:"grid grid-cols-2 gap-4",children:mx.map(r=>xe.jsx("button",{onClick:()=>t(r),className:"text-left w-full",children:xe.jsxs(Sg,{className:`p-4 border-2 transition-all duration-300 ${(e==null?void 0:e.id)===r.id?"border-blue-500 bg-blue-50/50":"border-transparent hover:border-gray-200"}`,children:[xe.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[xe.jsx("span",{className:"text-2xl",children:r.icon}),xe.jsx("h3",{className:"font-medium text-gray-900",children:r.name})]}),xe.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:r.description}),xe.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:r.suggestedSections.map(n=>xe.jsx("span",{className:"text-xs px-2 py-1 bg-gray-100 rounded-full text-gray-600",children:n},n))})]})},r.id))})]})}var P8=Object.defineProperty,I8=(e,t)=>{for(var r in t)P8(e,r,{get:t[r],enumerable:!0})},_g={};I8(_g,{audioClassification:()=>U8,audioToAudio:()=>H8,automaticSpeechRecognition:()=>q8,chatCompletion:()=>cE,chatCompletionStream:()=>fE,documentQuestionAnswering:()=>hE,featureExtraction:()=>Z8,fillMask:()=>Q8,imageClassification:()=>V8,imageSegmentation:()=>$8,imageToImage:()=>Y8,imageToText:()=>G8,objectDetection:()=>K8,questionAnswering:()=>eE,request:()=>Dt,sentenceSimilarity:()=>tE,streamingRequest:()=>gd,summarization:()=>rE,tableQuestionAnswering:()=>nE,tabularClassification:()=>mE,tabularRegression:()=>pE,textClassification:()=>iE,textGeneration:()=>oE,textGenerationStream:()=>aE,textToImage:()=>X8,textToSpeech:()=>W8,tokenClassification:()=>sE,translation:()=>lE,visualQuestionAnswering:()=>dE,zeroShotClassification:()=>uE,zeroShotImageClassification:()=>J8});function R8(e,t){return Object.assign({},...t.map(r=>{if(e[r]!==void 0)return{[r]:e[r]}}))}function O8(e,t){return e.includes(t)}function F8(e,t){const r=Array.isArray(t)?t:[t],n=Object.keys(e).filter(i=>!O8(r,i));return R8(e,n)}function sh(e){return/^http(s?):/.test(e)||e.startsWith("/")}var ks=new Map,D8=10*60*1e3,j8=1e3,gx="https://huggingface.co";async function yx(e,t,r){if(sh(e))return null;const n=`${e}:${t}`;let i=ks.get(n);if(i&&i.date<new Date(Date.now()-D8)&&(ks.delete(n),i=void 0),i===void 0){const o=await((r==null?void 0:r.fetch)??fetch)(`${gx}/api/models/${e}?expand[]=pipeline_tag`,{headers:t?{Authorization:`Bearer ${t}`}:{}}).then(a=>a.json()).then(a=>a.pipeline_tag).catch(()=>null);if(!o)return null;i={task:o,date:new Date},ks.set(n,{task:o,date:new Date}),ks.size>j8&&ks.delete(ks.keys().next().value)}return i.task}var Vv="https://api-inference.huggingface.co",Rf=null;async function vx(e,t){const{accessToken:r,endpointUrl:n,...i}=e;let{model:o}=e;const{forceTask:a,includeCredentials:s,taskHint:l,wait_for_model:c,use_cache:h,dont_load_model:p,chatCompletion:g}=t??{},f={};if(r&&(f.Authorization=`Bearer ${r}`),!o&&!Rf&&l){const y=await fetch(`${gx}/api/tasks`);y.ok&&(Rf=await y.json())}if(!o&&Rf&&l){const y=Rf[l];y&&(o=y.models[0].id)}if(!o)throw new Error("No model provided, and no default model found for this task");const S="data"in e&&!!e.data;S||(f["Content-Type"]="application/json"),c&&(f["X-Wait-For-Model"]="true"),h===!1&&(f["X-Use-Cache"]="false"),p&&(f["X-Load-Model"]="0");let v=(()=>
190{if(n&&sh(o))throw new TypeError("Both model and endpointUrl cannot be URLs");return sh(o)?(console.warn("Using a model URL is deprecated, please use the `endpointUrl` parameter instead"),o):n||(a?`${Vv}/pipeline/${a}/${o}`:`${Vv}/models/${o}`)})();g&&!v.endsWith("/chat/completions")&&(v+="/v1/chat/completions");let k;typeof s=="string"?k=s:s===!0&&(k="include");const d={headers:f,method:"POST",body:S?e.data:JSON.stringify({...i.model&&sh(i.model)?F8(i,"model"):i}),...k&&{credentials:k},signal:t==null?void 0:t.signal};return{url:v,info:d}}async function Dt(e,t){var o,a;const{url:r,info:n}=await vx(e,t),i=await((t==null?void 0:t.fetch)??fetch)(r,n);if((t==null?void 0:t.retry_on_error)!==!1&&i.status===503&&!(t!=null&&t.wait_for_model))return Dt(e,{...t,wait_for_model:!0});if(!i.ok){if((o=i.headers.get("Content-Type"))!=null&&o.startsWith("application/json")){const s=await i.json();if([400,422,404,500].includes(i.status)&&(t!=null&&t.chatCompletion))throw new Error(`Server ${e.model} does not seem to support chat completion. Error: ${s.error}`);if(s.error)throw new Error(JSON.stringify(s.error))}throw new Error("An error occurred while fetching the blob")}return(a=i.headers.get("Content-Type"))!=null&&a.startsWith("application/json")?await i.json():await i.blob()}function B8(e){let t,r,n,i=!1;return function(a){t===void 0?(t=a,r=0,n=-1):t=z8(t,a);const s=t.length;let l=0;for(;r<s;){i&&(t[r]===10&&(l=++r),i=!1);let c=-1;for(;r<s&&c===-1;++r)switch(t[r]){case 58:n===-1&&(n=r-l);break;case 13:i=!0;case 10:c=r;break}if(c===-1)break;e(t.subarray(l,c),n),l=r,n=-1}
190l===s?t=void 0:l!==0&&(t=t.subarray(l),r-=l)}}function M8(e,t,r){let n=$v();const i=new TextDecoder;return function(a,s){if(a.length===0)r==null||r(n),n=$v();else if(s>0){const l=i.decode(a.subarray(0,s)),c=s+(a[s+1]===32?2:1),h=i.decode(a.subarray(c));switch(l){case"data":n.data=n.data?n.data+`
191`+h:h;break;case"event":n.event=h;break;case"id":e(n.id=h);break;case"retry":const p=parseInt(h,10);isNaN(p)||t(n.retry=p);break}}}}function z8(e,t){const r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function $v(){return{data:"",event:"",id:"",retry:void 0}}async function*gd(e,t){var c,h;const{url:r,info:n}=await vx({...e,stream:!0},t),i=await((t==null?void 0:t.fetch)??fetch)(r,n);if((t==null?void 0:t.retry_on_error)!==!1&&i.status===503&&!(t!=null&&t.wait_for_model))return yield*gd(e,{...t,wait_for_model:!0});if(!i.ok){if((c=i.headers.get("Content-Type"))!=null&&c.startsWith("application/json")){const p=await i.json();if([400,422,404,500].includes(i.status)&&(t!=null&&t.chatCompletion))throw new Error(`Server ${e.model} does not seem to support chat completion. Error: ${p.error}`);if(p.error)throw new Error(p.error)}throw new Error(`Server response contains error: ${i.status}`)}if(!((h=i.headers.get("content-type"))!=null&&h.startsWith("text/event-stream")))throw new Error("Server does not support event stream content type, it returned "+i.headers.get("content-type"));if(!i.body)return;const o=i.body.getReader();let a=[];const l=B8(M8(()=>{},()=>{},p=>{a.push(p)}));try{for(;;){const{done:p,value:g}=await o.read();if(p)return;l(g);for(const f of a)if(f.data.length>0){if(f.data==="[DONE]")return;const S=JSON.parse(f.data);if(typeof S=="object"&&S!==null&&"error"in S)throw new Error(S.error);yield S}a=[]}}finally{o.releaseLock()}}var Ut=class extends TypeError{constructor(e){super(`Invalid inference output: ${e}. Use the 'request' method with the same parameters to do a custom call with no type checking.`),this.name="InferenceOutputError"}};async function U8(e,t){const r=await Dt(e,{...t,taskHint:"audio-classification"});if(!(Array.isArray(r)&&r.every(i=>typeof i.label=="string"&&typeof i.score=="number")))throw new Ut("Expected Array<{label: string, score: number}>");return r}async function q8(e,t){const r=await Dt(e,{...t,taskHint:"automatic-speech-recognition"});if(!(typeof(r==null?void 0:r.text)=="string"))throw new Ut("Expected {text: string}");return r}async function W8(e,t){const r=await Dt(e,{...t,taskHint:"text-to-speech"});if(!(r&&r instanceof Blob))throw new Ut("Expected Blob");return r}async function H8(e,t){const r=await Dt(e,{...t,taskHint:"audio-to-audio"});if(!(Array.isArray(r)&&r.every(i=>typeof i.label=="string"&&typeof i.blob=="string"&&typeof i["content-type"]=="string")))throw new Ut("Expected Array<{label: string, blob: string, content-type: string}>");return r}async function V8(e,t){const r=await Dt(e,{...t,taskHint:"image-classification"});if(!(Array.isArray(r)&&r.every(i=>typeof i.label=="string"&&typeof i.score=="number")))throw new Ut("Expected Array<{label: string, score: number}>");return r}async function $8(e,t){const r=await Dt(e,{...t,taskHint:"image-segmentation"});if(!(Array.isArray(r)&&r.every(i=>
191typeof i.label=="string"&&typeof i.mask=="string"&&typeof i.score=="number")))throw new Ut("Expected Array<{label: string, mask: string, score: number}>");return r}async function G8(e,t){var n;const r=(n=await Dt(e,{...t,taskHint:"image-to-text"}))==null?void 0:n[0];if(typeof(r==null?void 0:r.generated_text)!="string")throw new Ut("Expected {generated_text: string}");return r}async function K8(e,t){const r=await Dt(e,{...t,taskHint:"object-detection"});if(!(Array.isArray(r)&&r.every(i=>typeof i.label=="string"&&typeof i.score=="number"&&typeof i.box.xmin=="number"&&typeof i.box.ymin=="number"&&typeof i.box.xmax=="number"&&typeof i.box.ymax=="number")))throw new Ut("Expected Array<{label:string; score:number; box:{xmin:number; ymin:number; xmax:number; ymax:number}}>");return r}async function X8(e,t){const r=await Dt(e,{...t,taskHint:"text-to-image"});if(!(r&&r instanceof Blob))throw new Ut("Expected Blob");return r}function yd(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{const t=[];return e.forEach(r=>{t.push(String.fromCharCode(r))}),globalThis.btoa(t.join(""))}}async function Y8(e,t){let r;e.parameters?r={...e,inputs:yd(new Uint8Array(e.inputs instanceof ArrayBuffer?e.inputs:await e.inputs.arrayBuffer()))}:r={accessToken:e.accessToken,model:e.model,data:e.inputs};const n=await Dt(r,{...t,taskHint:"image-to-image"});if(!(n&&n instanceof Blob))throw new Ut("Expected Blob");return n}async function J8(e,t){const r={...e,inputs:{image:yd(new Uint8Array(e.inputs.image instanceof ArrayBuffer?e.inputs.image:await e.inputs.image.arrayBuffer()))}},n=await Dt(r,{...t,taskHint:"zero-shot-image-classification"});if(!(Array.isArray(n)&&n.every(o=>typeof o.label=="string"&&typeof o.score=="number")))throw new Ut("Expected Array<{label: string, score: number}>");return n}async function Z8(e,t){const r=e.model?await yx(e.model,e.accessToken,t):void 0,n=await Dt(e,{...t,taskHint:"feature-extraction",...r==="sentence-similarity"&&{forceTask:"feature-extraction"}});let i=!0;const o=(a,s,l=0)=>l>s?!1:a.every(c=>Array.isArray(c))?a.every(c=>o(c,s,l+1)):a.every(c=>typeof c=="number");if(i=Array.isArray(n)&&o(n,3,0),!i)throw new Ut("Expected Array<number[][][] | number[][] | number[] | number>");return n}async function Q8(e,t){const r=await Dt(e,{...t,taskHint:"fill-mask"});if(!(Array.isArray(r)&&r.every(i=>typeof i.score=="number"&&typeof i.sequence=="string"&&typeof i.token=="number"&&typeof i.token_str=="string")))throw new Ut("Expected Array<{score: number, sequence: string, token: number, token_str: string}>");return r}async function eE(e,t){const r=await Dt(e,{...t,taskHint:"question-answering"});if(!(typeof r=="object"&&!!r&&typeof r.answer=="string"&&typeof r.end=="number"&&typeof r.score=="number"&&typeof r.start=="number"))throw new Ut("Expected {answer: string, end: number, score: number, start: number}");return r}async function tE(e,t){const r=e.model?await yx(e.model,e.accessToken,t):void 0,n=await Dt(e,{...t,taskHint:"sentence-similarity",...r==="feature-extraction"&&{forceTask:"sentence-similarity"}});if(!(Array.isArray(n)&&n.every(o=>typeof o=="number")))throw new Ut("Expected number[]");return n}async function rE(e,t){const r=await Dt(e,{...t,taskHint:"summarization"});if(!(Array.isArray(r)&&r.every(i=>typeof(i==null?void 0:i.summary_text)=="string")))throw new Ut("Expected Array<{summary_text: string}>");return r==null?void 0:r[0]}async function nE(e,t){const r=await Dt(e,{...t,taskHint:"table-question-answering"});if(!(typeof(r==null?void 0:r.aggregator)=="string"&&typeof r.answer=="string"&&Array.isArray(r.cells)&&r.cells.every(i=>typeof i=="string")&&Array.isArray(r.coordinates)&&r.coordinates.every(i=>Array.isArray(i)&&i.every(o=>typeof o=="number"))))throw new Ut("Expected {aggregator: string, answer: string, cells: string[], coordinates: number[][]}");return r}async function iE(e,t){var i;const r=(i=await Dt(e,{...t,taskHint:"text-classification"}))==null?void 0:i[0];if(!(Array.isArray(r)&&r.every(o=>typeof(o==null?void 0:o.label)=="string"&&typeof o.score=="number")))throw new Ut("Expected Array<{label: string, score: number}>");return r}function vd(e){return Array.isArray(e)?e:[e]}async function oE(e,t){const r=vd(await Dt(e,{...t,taskHint:"text-generation"}));if(!(Array.isArray(r)&&r.every(i=>
191typeof(i==null?void 0:i.generated_text)=="string")))throw new Ut("Expected Array<{generated_text: string}>");return r==null?void 0:r[0]}async function*aE(e,t){yield*gd(e,{...t,taskHint:"text-generation"})}async function sE(e,t){const r=vd(await Dt(e,{...t,taskHint:"token-classification"}));if(!(Array.isArray(r)&&r.every(i=>typeof i.end=="number"&&typeof i.entity_group=="string"&&typeof i.score=="number"&&typeof i.start=="number"&&typeof i.word=="string")))throw new Ut("Expected Array<{end: number, entity_group: string, score: number, start: number, word: string}>");return r}async function lE(e,t){const r=await Dt(e,{...t,taskHint:"translation"});if(!(Array.isArray(r)&&r.every(i=>typeof(i==null?void 0:i.translation_text)=="string")))throw new Ut("Expected type Array<{translation_text: string}>");return(r==null?void 0:r.length)===1?r==null?void 0:r[0]:r}async function uE(e,t){const r=vd(await Dt(e,{...t,taskHint:"zero-shot-classification"}));if(!(Array.isArray(r)&&r.every(i=>Array.isArray(i.labels)&&i.labels.every(o=>typeof o=="string")&&Array.isArray(i.scores)&&i.scores.every(o=>typeof o=="number")&&typeof i.sequence=="string")))throw new Ut("Expected Array<{labels: string[], scores: number[], sequence: string}>");return r}async function cE(e,t){const r=await Dt(e,{...t,taskHint:"text-generation",chatCompletion:!0});if(!(typeof r=="object"&&Array.isArray(r==null?void 0:r.choices)&&typeof(r==null?void 0:r.created)=="number"&&typeof(r==null?void 0:r.id)=="string"&&typeof(r==null?void 0:r.model)=="string"&&typeof(r==null?void 0:r.system_fingerprint)=="string"&&typeof(r==null?void 0:r.usage)=="object"))throw new Ut("Expected ChatCompletionOutput");return r}async function*fE(e,t){yield*gd(e,{...t,taskHint:"text-generation",chatCompletion:!0})}async function hE(e,t){var o;const r={...e,inputs:{question:e.inputs.question,image:yd(new Uint8Array(e.inputs.image instanceof ArrayBuffer?e.inputs.image:await e.inputs.image.arrayBuffer()))}},n=(o=vd(await Dt(r,{...t,taskHint:"document-question-answering"})))==null?void 0:o[0];if(!(typeof(n==null?void 0:n.answer)=="string"&&(typeof n.end=="number"||typeof n.end>"u")&&(typeof n.score=="number"||typeof n.score>"u")&&(typeof n.start=="number"||typeof n.start>"u")))throw new Ut("Expected Array<{answer: string, end?: number, score?: number, start?: number}>");return n}async function dE(e,t){var o;const r={...e,inputs:{question:e.inputs.question,image:yd(new Uint8Array(e.inputs.image instanceof ArrayBuffer?e.inputs.image:await e.inputs.image.arrayBuffer()))}},n=(o=await Dt(r,{...t,taskHint:"visual-question-answering"}))==null?void 0:o[0];if(!(typeof(n==null?void 0:n.answer)=="string"&&typeof n.score=="number"))throw new Ut("Expected Array<{answer: string, score: number}>");return n}async function pE(e,t){const r=await Dt(e,{...t,taskHint:"tabular-regression"});if(!(Array.isArray(r)&&r.every(i=>typeof i=="number")))throw new Ut("Expected number[]");return r}async function mE(e,t){const r=await Dt(e,{...t,taskHint:"tabular-classification"});if(!(Array.isArray(r)&&r.every(i=>typeof i=="number")))throw new Ut("Expected number[]");return r}var gE=class{constructor(e="",t={}){wp(this,"accessToken");wp(this,"defaultOptions");this.accessToken=e,this.defaultOptions=t;for(const[r,n]of Object.entries(_g))Object.defineProperty(this,r,{enumerable:!1,value:(i,o)=>n({...i,accessToken:e},{...t,...o})})}endpoint(e){return new yE(e,this.accessToken,this.defaultOptions)}},yE=class{constructor(e,t="",r={}){for(const[n,i]of Object.entries(_g))Object.defineProperty(this,n,{enumerable:!1,value:(o,a)=>i({...o,accessToken:t,endpointUrl:e},{...r,...a})})}};const vE="https://router.huggingface.co/hf-inference/models/google/embeddinggemma-300m/pipeline/sentence-similarity";async function wE(e){try{const t=await fetch(vE,{method:"POST",headers:{Authorization:"Bearer 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","Content-Type":"application/json"},body:JSON.stringify({inputs:{source_sentence:`Create a detailed infographic about: ${e.prompt}`,sentences:["Key facts and statistics","Historical background and context","Important trends and patterns","Expert insights and analysis","Future implications and predictions"]}})});if(!t.ok)throw new Error(`API request failed: ${t.statusText}`);const r=await t.json();return{success:!0,content:`
192# ${e.prompt}
193
194## Key Facts and Statistics
195- Important data points and figures
196- Relevant statistics and metrics
197- Quantitative insights
198
199## Background and Context
200- Historical development
201- Current situation
202- Key stakeholders
203
204## Trends and Patterns
205- Emerging trends
206- Notable patterns
207- Market dynamics
208
209## Expert Analysis
210- Professional insights
211- Research findings
212- Industry perspectives
213
214## Future Outlook
215- Predictions and forecasts
216- Potential developments
217- Long-term implications
218    `.trim()}}catch(t){return console.error("AI Generation Error:",t),{success:!1,error:"Failed to generate content. Please try again."}}}async function bE(e){try{const t=await new gE("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").textToImage({model:"black-forest-labs/FLUX.1-schnell",inputs:e,parameters:{num_inference_steps:5},provider:"replicate"});return t?{success:!0,imageUrl:URL.createObjectURL(t)}:{success:!1,error:"No image generated"}}catch(t){return console.error("Image Generation Error:",t),{success:!1,error:"Failed to generate image. Please try again."}}}function xE({onContentGenerated:e}){const[t,r]=Te.useState(""),[n,i]=Te.useState(!1),[o,a]=Te.useState(null),[s,l]=Te.useState("text"),c=async()=>{if(t.trim()){i(!0),a(null);try{if(s==="text"){const p=`Create an engaging infographic about "${t}". Include key points, statistics, and interesting facts.`,g=await wE({prompt:p});if(g.success&&g.content){const f=h(g.content);e(f),r("")}else a(g.error||"Failed to generate content")}else{const p=`Create a professional infographic style image about ${t}`,g=await bE(p);if(g.success){const f=px();e([{id:`img-${f}`,type:"image",content:"",imageUrl:g.imageUrl,imageAlt:t,style:{align:"center",size:"large",variant:"default"}}]),r("")}else a(g.error||"Failed to generate image")}}catch{a("An unexpected error occurred")}finally{i(!1)}}},h=p=>p.split(`
219`).filter(f=>f.trim()).map((f,S)=>({id:`ai-${S}`,type:S===0?"heading":"text",content:f.trim(),style:{align:"left",size:S===0?"large":"medium",variant:"default"}}));return xe.jsxs(Sg,{className:"p-6 space-y-4",children:[xe.jsxs("div",{className:"flex items-center gap-2 text-gray-700",children:[xe.jsx($p,{size:20,className:"text-blue-500"}),xe.jsx("h3",{className:"font-medium",children:"AI Content Generator"})]}),xe.jsxs("div",{className:"space-y-4",children:[xe.jsxs("div",{className:"flex gap-2",children:[xe.jsxs(rl,{variant:s==="text"?"primary":"secondary",onClick:()=>l("text"),className:"flex-1",children:[xe.jsx($p,{size:16}),"Generate Text"]}),xe.jsxs(rl,{variant:s==="image"?"primary":"secondary",onClick:()=>l("image"),className:"flex-1",children:[xe.jsx(Bh,{size:16}),"Generate Image"]})]}),xe.jsxs("div",{className:"space-y-2",children:[xe.jsx("label",{htmlFor:"topic",className:"block text-sm font-medium text-gray-700",children:s==="text"?"What's your infographic about?":"Describe the image you want"}),xe.jsx("input",{id:"topic",type:"text",value:t,onChange:p=>r(p.target.value),placeholder:s==="text"?"e.g., Climate Change, Digital Marketing, Space Exploration":"e.g., A modern infographic about renewable energy sources",className:"w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all"})]}),o&&xe.jsx("p",{className:"text-sm text-red-500",children:o}),xe.jsx(rl,{variant:"primary",onClick:c,disabled:n||!t.trim(),className:"w-full",children:n?xe.jsxs(xe.Fragment,{children:[xe.jsx(b_,{size:16,className:"animate-spin"}),s==="text"?"Generating Content...":"Generating Image..."]}):xe.jsxs(xe.Fragment,{children:[s==="text"?xe.jsx($p,{size:16}):xe.jsx(Bh,{size:16}),s==="text"?"Generate Content":"Generate Image"]})})]})]})}function SE({isOpen:e,infographic:t,onUpdate:r}){const n=i=>{r({content:{...t.content,sections:[...t.content.sections,...i]}})};return xe.jsx("aside",{className:`
220        w-80 bg-white/80 backdrop-blur-lg border-r border-gray-200/80 
221        transition-all duration-300 ease-in-out transform
222        ${e?"translate-x-0":"-translate-x-full"}
223      `,children:xe.jsxs("div",{className:"p-6 space-y-8 h-full overflow-y-auto",children:[xe.jsx(xE,{onContentGenerated:n}),xe.jsx(T8,{selectedTopic:t.topic,onSelect:i=>r({topic:i})}),xe.jsx("div",{className:"space-y-6",children:xe.jsx(E8,{content:t.content,onChange:i=>r({content:i})})}),xe.jsx("div",{className:"space-y-6",children:xe.jsx(k8,{selectedTemplate:t.templateId,onSelect:i=>r({templateId:i})})}),xe.jsx("div",{className:"space-y-6",children:xe.jsx(C8,{selectedPalette:t.palette,onChange:i=>r({palette:i})})})]})})}function _E({infographic:e}){return xe.jsx(Sg,{className:"p-8 min-h-full transform hover:scale-[1.002] bg-gradient-to-br from-white/80 via-white/90 to-white/80 backdrop-blur-lg shadow-xl shadow-indigo-100/20",children:xe.jsxs("div",{id:"infographic-content",className:"max-w-4xl mx-auto 
223space-y-8",children:[xe.jsx("h1",{className:"text-4xl font-bold text-center bg-clip-text animate-gradient bg-300%",children:xe.jsx(hg,{variant:"primary",className:"animate-pulse-slow",children:e.content.title})}),xe.jsx("div",{className:"grid gap-6",children:e.content.sections.map(t=>{var r,n,i,o,a,s;return xe.jsx("div",{className:`p-6 rounded-xl transition-all duration-500 ease-in-out hover:shadow-lg hover:shadow-blue-100/50 backdrop-blur-sm
224                ${((r=t.style)==null?void 0:r.align)==="center"?"text-center":""} 
225                ${((n=t.style)==null?void 0:n.align)==="right"?"text-right":""}
226                bg-gradient-to-br from-white/90 via-white/95 to-white/90
227                hover:from-white/95 hover:via-white/98 hover:to-white/95
228                border border-transparent hover:border-blue-100/30
229                transform hover:scale-[1.002] hover:-rotate-1
230              `,style:{backgroundColor:e.palette.background},children:t.type==="image"?xe.jsxs("div",{className:"space-y-3",children:[xe.jsxs("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden group",children:[xe.jsx("img",{src:t.imageUrl,alt:t.imageAlt||"Infographic image",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),xe.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]}),t.imageAlt&&xe.jsx("p",{className:"text-sm text-gray-600 italic text-center",children:t.imageAlt})]}):xe.jsx("p",{className:`leading-relaxed transition-all duration-300
231                    ${((i=t.style)==null?void 0:i.size)==="small"?"text-sm":((o=t.style)==null?void 0:o.size)==="large"?"text-xl":"text-base"} 
232                    ${((a=t.style)==null?void 0:a.variant)==="highlight"?"bg-gradient-to-r from-blue-50 to-indigo-50 text-blue-800 p-3 rounded-lg":((s=t.style)==null?void 0:s.variant)==="muted"?"text-gray-600":""}
233                    hover:tracking-wide
234                  `,style:{color:e.palette.text},children:t.content})},t.id)})})]})})}const AE="modulepreload",EE=function(e){return"/"+e},Gv={},Y1=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=EE(l),l in Gv)return;Gv[l]=!0;const c=l.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":AE,c||(p.as="script"),p.crossOrigin="",p.href=l,s&&p.setAttribute("nonce",s),document.head.appendChild(p),c)return new Promise((g,f)=>{p.addEventListener("load",g),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};function Ot(e){"@babel/helpers - typeof";return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(e)}var an=Uint8Array,qn=Uint16Array,Ag=Int32Array,wd=new an([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]),bd=new an([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]),J1=new an([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wx=function(e,t){for(var r=new qn(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Ag(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return{b:r,r:i}},bx=wx(wd,2),xx=bx.b,Z1=bx.r;xx[28]=258,Z1[258]=28;var Sx=wx(bd,0),NE=Sx.b,Kv=Sx.r,Q1=new qn(32768);for(var Zt=0;Zt<32768;++Zt){var qo=(Zt&43690)>>1|(Zt&21845)<<1;qo=(qo&52428)>>2|(qo&13107)<<2,qo=(qo&61680)>>4|(qo&3855)<<4,Q1[Zt]=((qo&65280)>>8|(qo&255)<<8)>>1}var eo=function(e,t,r){for(var n=e.length,i=0,o=new qn(t);i<n;++i)e[i]&&++o[e[i]-1];var a=new qn(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var s;if(r){s=new qn(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],h=t-e[i],p=a[e[i]-1]++<<h,g=p|(1<<h)-1;p<=g;++p)s[Q1[p]>>l]=c}else for(s=new qn(n),i=0;i<n;++i)e[i]&&(s[i]=Q1[a[e[i]-1]++]>>15-e[i]);return s},ca=new an(288);for(var Zt=0;Zt<144;++Zt)ca[Zt]=8;for(var Zt=144;Zt<256;++Zt)ca[Zt]=9;for(var Zt=256;Zt<280;++Zt)ca[Zt]=7;for(var Zt=280;Zt<288;++Zt)ca[Zt]=8;var uc=new an(32);for(var Zt=0;Zt<32;++Zt)uc[Zt]=5;var kE=eo(ca,9,0),LE=eo(ca,9,1),CE=eo(uc,5,0),TE=eo(uc,5,1),Jp=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},xi=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Zp=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Eg=function(e){return(e+7)/8|0},_x=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new an(e.subarray(t,r))}
vendor: 4,094 bytes, line 234
234,PE=["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"],Ei=function(e,t,r){var n=new Error(t||PE[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,Ei),!r)throw n;return n},IE=function(e,t,r,n){var i=e.length,o=0;if(!i||t.f&&!t.l)return r||new an(0);var a=!r,s=a||t.i!=2,l=t.i;a&&(r=new an(i*3));var c=function(U){var G=r.length;if(U>G){var ge=new an(Math.max(G*2,U));ge.set(r),r=ge}},h=t.f||0,p=t.p||0,g=t.b||0,f=t.l,S=t.d,v=t.m,k=t.n,d=i*8;do{if(!f){h=xi(e,p,1);var y=xi(e,p+1,3);if(p+=3,y)if(y==1)f=LE,S=TE,v=9,k=5;else if(y==2){var re=xi(e,p,31)+257,$=xi(e,p+10,15)+4,M=re+xi(e,p+5,31)+1;p+=14;for(var D=new an(M),he=new an(19),H=0;H<$;++H)he[J1[H]]=xi(e,p+H*3,7);p+=$*3;for(var R=Jp(he),X=(1<<R)-1,T=eo(he,R,1),H=0;H<M;){var se=T[xi(e,p,X)];p+=se&15;var _=se>>4;if(_<16)D[H++]=_;else{var ye=0,ae=0;for(_==16?(ae=3+xi(e,p,3),p+=2,ye=D[H-1]):_==17?(ae=3+xi(e,p,7),p+=3):_==18&&(ae=11+xi(e,p,127),p+=7);ae--;)D[H++]=ye}}var ue=D.subarray(0,re),oe=D.subarray(re);v=Jp(ue),k=Jp(oe),f=eo(ue,v,1),S=eo(oe,k,1)}else Ei(1);else{var _=Eg(p)+4,F=e[_-4]|e[_-3]<<8,j=_+F;if(j>i){l&&Ei(0);break}s&&c(g+F),r.set(e.subarray(_,j),g),t.b=g+=F,t.p=p=j*8,t.f=h;continue}if(p>d){l&&Ei(0);break}}s&&c(g+131072);for(var me=(1<<v)-1,de=(1<<k)-1,A=p;;A=p){var ye=f[Zp(e,p)&me],B=ye>>4;if(p+=ye&15,p>d){l&&Ei(0);break}if(ye||Ei(2),B<256)r[g++]=B;else if(B==256){A=p,f=null;break}else{var z=B-254;if(B>264){var H=B-257,ee=wd[H];z=xi(e,p,(1<<ee)-1)+xx[H],p+=ee}var V=S[Zp(e,p)&de],C=V>>4;V||Ei(3),p+=V&15;var oe=NE[C];if(C>3){var ee=bd[C];oe+=Zp(e,p)&(1<<ee)-1,p+=ee}if(p>d){l&&Ei(0);break}s&&c(g+131072);var L=g+z;if(g<oe){var Y=o-oe,Z=Math.min(oe,L);for(Y+g<0&&Ei(3);g<Z;++g)r[g]=n[Y+g]}for(;g<L;++g)r[g]=r[g-oe]}}t.l=f,t.p=A,t.b=g,t.f=h,f&&(h=1,t.m=v,t.d=S,t.n=k)}while(!h);return g!=r.length&&a?_x(r,0,g):r.subarray(0,g)},ho=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},wu=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},Qp=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return{t:Ex,l:0};if(i==1){var a=new an(r[0].s+1);return a[r[0].s]=1,{t:a,l:1}}r.sort(function(j,re){return j.f-re.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,h=1,p=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};h!=i-1;)s=r[r[c].f<r[p].f?c++:p++],l=r[c!=h&&r[c].f<r[p].f?c++:p++],r[h++]={s:-1,f:s.f+l.f,l:s,r:l};for(var g=o[0].s,n=1;n<i;++n)o[n].s>g&&(g=o[n].s);var f=new qn(g+1),S=e0(r[h-1],f,0);if(S>t){var n=0,v=0,k=S-t,d=1<<k;for(o.sort(function(re,$){return f[$.s]-f[re.s]||re.f-$.f});n<i;++n){var y=o[n].s;if(f[y]>t)v+=d-(1<<S-f[y]),f[y]=t;else break}for(v>>=k;v>0;){var _=o[n].s;f[_]<t?v-=1<<t-f[_]++-1:++n}for(;n>=0&&v;--n){var F=o[n].s;f[F]==t&&(--f[F],++v)}S=t}return{t:new an(f),l:S}},e0=function(e,t,r){return e.s==-1?Math.max(e0(e.l,t,r+1),e0(e.r,t,r+1)):t[e.s]=r},Xv=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new qn(++t),n=0,i=e[0],o=1,a=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return{c:r.subarray(0,n),n:t}},bu=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Ax=function(e,t,r){var n=r.length,i=Eg(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<n;++o)e[i+o+4]=r[o];return(i+4+n)*8},Yv=function(e,t,r,n,i,o,a,s,l,c,h){ho(t,h++,r),++i[256];for(var p=Qp(i,15),g=p.t,f=p.l,S=Qp(o,15),v=S.t,k=S.l,d=Xv(g),y=d.c,_=d.n,F=Xv(v),j=F.c,re=F.n,$=new qn(19),M=0;M<y.length;++M)++$[y[M]&31];for(var M=0;M<j.length;++M)++$[j[M]&31];for(var D=Qp($,7),he=D.t,H=D.l,R=19;R>4&&!he[J1[R-1]];--R);var X=c+5<<3,T=bu(i,ca)+bu(o,uc)+a,se=bu(i,g)+bu(o,v)+a+14+3*R+bu($,he)+2*$[16]+3*$[17]+7*$[18];if(l>=0&&X<=T&&X<=se)return Ax(t,h,e.subarray(l,l+c));var ye,ae,ue,oe;
vendor: 7,684 bytes, lines 234-239
234if(ho(t,h,1+(se<T)),h+=2,se<T){ye=eo(g,f,0),ae=g,ue=eo(v,k,0),oe=v;var me=eo(he,H,0);ho(t,h,_-257),ho(t,h+5,re-1),ho(t,h+10,R-4),h+=14;for(var M=0;M<R;++M)ho(t,h+3*M,he[J1[M]]);h+=3*R;for(var de=[y,j],A=0;A<2;++A)for(var B=de[A],M=0;M<B.length;++M){var z=B[M]&31;ho(t,h,me[z]),h+=he[z],z>15&&(ho(t,h,B[M]>>5&127),h+=B[M]>>12)}}else ye=kE,ae=ca,ue=CE,oe=uc;for(var M=0;M<s;++M){var ee=n[M];if(ee>255){var z=ee>>18&31;wu(t,h,ye[z+257]),h+=ae[z+257],z>7&&(ho(t,h,ee>>23&31),h+=wd[z]);var V=ee&31;wu(t,h,ue[V]),h+=oe[V],V>3&&(wu(t,h,ee>>5&8191),h+=bd[V])}else wu(t,h,ye[ee]),h+=ae[ee]}return wu(t,h,ye[256]),h+ae[256]},RE=new Ag([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ex=new an(0),OE=function(e,t,r,n,i,o){var a=o.z||e.length,s=new an(n+a+5*(1+Math.ceil(a/7e3))+i),l=s.subarray(n,s.length-i),c=o.l,h=(o.r||0)&7;if(t){h&&(l[0]=o.r>>3);for(var p=RE[t-1],g=p>>13,f=p&8191,S=(1<<r)-1,v=o.p||new qn(32768),k=o.h||new qn(S+1),d=Math.ceil(r/3),y=2*d,_=function(I){return(e[I]^e[I+1]<<d^e[I+2]<<y)&S},F=new Ag(25e3),j=new qn(288),re=new qn(32),$=0,M=0,D=o.i||0,he=0,H=o.w||0,R=0;D+2<a;++D){var X=_(D),T=D&32767,se=k[X];if(v[T]=se,k[X]=T,H<=D){var ye=a-D;if(($>7e3||he>24576)&&(ye>423||!c)){h=Yv(e,l,0,F,j,re,M,he,R,D-R,h),he=$=M=0,R=D;for(var ae=0;ae<286;++ae)j[ae]=0;for(var ae=0;ae<30;++ae)re[ae]=0}var ue=2,oe=0,me=f,de=T-se&32767;if(ye>2&&X==_(D-de))for(var A=Math.min(g,ye)-1,B=Math.min(32767,D),z=Math.min(258,ye);de<=B&&--me&&T!=se;){if(e[D+ue]==e[D+ue-de]){for(var ee=0;ee<z&&e[D+ee]==e[D+ee-de];++ee);if(ee>ue){if(ue=ee,oe=de,ee>A)break;for(var V=Math.min(de,ee-2),C=0,ae=0;ae<V;++ae){var L=D-de+ae&32767,Y=v[L],Z=L-Y&32767;Z>C&&(C=Z,se=L)}}}T=se,se=v[T],de+=T-se&32767}if(oe){F[he++]=268435456|Z1[ue]<<18|Kv[oe];var U=Z1[ue]&31,G=Kv[oe]&31;M+=wd[U]+bd[G],++j[257+U],++re[G],H=D+ue,++$}else F[he++]=e[D],++j[e[D]]}}for(D=Math.max(D,H);D<a;++D)F[he++]=e[D],++j[e[D]];h=Yv(e,l,c,F,j,re,M,he,R,D-R,h),c||(o.r=h&7|l[h/8|0]<<3,h-=7,o.h=k,o.p=v,o.i=D,o.w=H)}else{for(var D=o.w||0;D<a+c;D+=65535){var ge=D+65535;ge>=a&&(l[h/8|0]=c,ge=a),h=Ax(l,h+1,e.subarray(D,ge))}o.i=a}return _x(s,0,n+Eg(h)+i)},Nx=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length|0,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=n+=r[a];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},FE=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),a=new an(o.length+e.length);a.set(o),a.set(e,o.length),e=a,i.w=o.length}return OE(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},kx=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},DE=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=Nx();i.p(t.dictionary),kx(e,2,i.d())}},jE=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Ei(6,"invalid zlib data"),(e[1]>>5&1)==1&&Ei(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function t0(e,t){t||(t={});var r=Nx();r.p(e);var n=FE(e,t,t.dictionary?6:2,4);return DE(n,t),kx(n,n.length-4,r.d()),n}function BE(e,t){return IE(e.subarray(jE(e),-4),{i:2},t,t)}var ME=typeof TextDecoder<"u"&&new TextDecoder,zE=0;try{ME.decode(Ex,{stream:!0}),zE=1}catch{}var st=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function em(){st.console&&typeof st.console.log=="function"&&st.console.log.apply(st.console,arguments)}var zt={log:em,warn:function(e){st.console&&(typeof st.console.warn=="function"?st.console.warn.apply(st.console,arguments):em.call(null,arguments))},error:function(e){st.console&&(typeof st.console.error=="function"?st.console.error.apply(st.console,arguments):em(e))}};function tm(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Ia(n.response,t,r)},n.onerror=function(){zt.error("could not download file")},n.send()}function Jv(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Of(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Uu,r0,Ia=st.saveAs||((typeof window>"u"?"undefined":Ot(window))!=="object"||window!==st?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=st.URL||st.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?Jv(i.href)?tm(e,t,r):Of(i,i.target="_blank"):Of(i)):(i.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){Of(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(Jv(e))tm(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Of(n)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:Ot(o)!=="object"&&(zt.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return tm(e,t,r);var i=e.type==="application/octet-stream",o=/constructor/i.test(st.HTMLElement)||st.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&(typeof FileReader>"u"?"undefined":Ot(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var h=s.result;h=a?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=h:location=h,n=null},s.readAsDataURL(e)}else{var l=st.URL||st.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
235 * A class to parse color values
236 * @author Stoyan Stefanov <[email protected]>
237 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
238 * @license Use it if you like it
239 */function Lx(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
2390",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,a=i.exec(e);a&&(t=o(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
240 * @license
241 * Joseph Myers does not specify a particular license for his work.
242 *
243 * Author: Joseph Myers
244 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
245 *
246 * Modified by: Owen Leong
247 */function rm(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r=en(r,n,i,o,t[0],7,-680876936),o=en(o,r,n,i,t[1],12,-389564586),i=en(i,o,r,n,t[2],17,606105819),n=en(n,i,o,r,t[3],22,-1044525330),r=en(r,n,i,o,t[4],7,-176418897),o=en(o,r,n,i,t[5],12,1200080426),i=en(i,o,r,n,t[6],17,-1473231341),n=en(n,i,o,r,t[7],22,-45705983),r=en(r,n,i,o,t[8],7,1770035416),o=en(o,r,n,i,t[9],12,-1958414417),i=en(i,o,r,n,t[10],17,-42063),n=en(n,i,o,r,t[11],22,-1990404162),r=en(r,n,i,o,t[12],7,1804603682),o=en(o,r,n,i,t[13],12,-40341101),i=en(i,o,r,n,t[14],17,-1502002290),r=tn(r,n=en(n,i,o,r,t[15],22,1236535329),i,o,t[1],5,-165796510),o=tn(o,r,n,i,t[6],9,-1069501632),i=tn(i,o,r,n,t[11],14,643717713),n=tn(n,i,o,r,t[0],20,-373897302),r=tn(r,n,i,o,t[5],5,-701558691),o=tn(o,r,n,i,t[10],9,38016083),i=tn(i,o,r,n,t[15],14,-660478335),n=tn(n,i,o,r,t[4],20,-405537848),r=tn(r,n,i,o,t[9],5,568446438),o=tn(o,r,n,i,t[14],9,-1019803690),i=tn(i,o,r,n,t[3],14,-187363961),n=tn(n,i,o,r,t[8],20,1163531501),r=tn(r,n,i,o,t[13],5,-1444681467),o=tn(o,r,n,i,t[2],9,-51403784),i=tn(i,o,r,n,t[7],14,1735328473),r=rn(r,n=tn(n,i,o,r,t[12],20,-1926607734),i,o,t[5],4,-378558),o=rn(o,r,n,i,t[8],11,-2022574463),i=rn(i,o,r,n,t[11],16,1839030562),n=rn(n,i,o,r,t[14],23,-35309556),r=rn(r,n,i,o,t[1],4,-1530992060),o=rn(o,r,n,i,t[4],11,1272893353),i=rn(i,o,r,n,t[7],16,-155497632),n=rn(n,i,o,r,t[10],23,-1094730640),r=rn(r,n,i,o,t[13],4,681279174),o=rn(o,r,n,i,t[0],11,-358537222),i=rn(i,o,r,n,t[3],16,-722521979),n=rn(n,i,o,r,t[6],23,76029189),r=rn(r,n,i,o,t[9],4,-640364487),o=rn(o,r,n,i,t[12],11,-421815835),i=rn(i,o,r,n,t[15],16,530742520),r=nn(r,n=rn(n,i,o,r,t[2],23,-995338651),i,o,t[0],6,-198630844),o=nn(o,r,n,i,t[7],10,1126891415),i=nn(i,o,r,n,t[14],15,-1416354905),n=nn(n,i,o,r,t[5],21,-57434055),r
vendor: 8,450 bytes, lines 247-264
247=nn(r,n,i,o,t[12],6,1700485571),o=nn(o,r,n,i,t[3],10,-1894986606),i=nn(i,o,r,n,t[10],15,-1051523),n=nn(n,i,o,r,t[1],21,-2054922799),r=nn(r,n,i,o,t[8],6,1873313359),o=nn(o,r,n,i,t[15],10,-30611744),i=nn(i,o,r,n,t[6],15,-1560198380),n=nn(n,i,o,r,t[13],21,1309151649),r=nn(r,n,i,o,t[4],6,-145523070),o=nn(o,r,n,i,t[11],10,-1120210379),i=nn(i,o,r,n,t[2],15,718787259),n=nn(n,i,o,r,t[9],21,-343485551),e[0]=Zo(r,e[0]),e[1]=Zo(n,e[1]),e[2]=Zo(i,e[2]),e[3]=Zo(o,e[3])}function xd(e,t,r,n,i,o){return t=Zo(Zo(t,e),Zo(n,o)),Zo(t<<i|t>>>32-i,r)}function en(e,t,r,n,i,o,a){return xd(t&r|~t&n,e,t,i,o,a)}function tn(e,t,r,n,i,o,a){return xd(t&n|r&~n,e,t,i,o,a)}function rn(e,t,r,n,i,o,a){return xd(t^r^n,e,t,i,o,a)}function nn(e,t,r,n,i,o,a){return xd(r^(t|~n),e,t,i,o,a)}function Cx(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)rm(n,UE(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(rm(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,rm(n,i),n}function UE(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}Uu=st.atob.bind(st),r0=st.btoa.bind(st);var Zv="0123456789abcdef".split("");function qE(e){for(var t="",r=0;r<4;r++)t+=Zv[e>>8*r+4&15]+Zv[e>>8*r&15];return t}function WE(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function n0(e){return Cx(e).map(WE).join("")}var HE=function(e){for(var t=0;t<e.length;t++)e[t]=qE(e[t]);return e.join("")}(Cx("hello"))!="5d41402abc4b2a76b9719d911017c592";function Zo(e,t){if(HE){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
248 * @license
249 * FPDF is released under a permissive license: there is no usage restriction.
250 * You may embed it freely in your application (commercial or not), with or
251 * without modifications.
252 *
253 * Reference: http://www.fpdf.org/en/script/script37.php
254 */function i0(e,t){var r,n,i,o;if(e!==r){for(var a=(i=e,o=1+(256/e.length>>0),new Array(o+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var h=s[l];c=(c+h+a.charCodeAt(l))%256,s[l]=s[c],s[c]=h}r=e,n=s}else s=n;var p=t.length,g=0,f=0,S="";for(l=0;l<p;l++)f=(f+(h=s[g=(g+1)%256]))%256,s[g]=s[f],s[f]=h,a=s[(s[g]+s[f])%256],S+=String.fromCharCode(t.charCodeAt(l)^a);return S}/**
255 * @license
256 * Licensed under the MIT License.
257 * http://opensource.org/licenses/mit-license
258 * Author: Owen Leong (@owenl131)
259 * Date: 15 Oct 2020
260 * References:
261 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
262 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
263 * http://www.fpdf.org/en/script/script37.php
264 */var Qv={print:4,modify:8,copy:16,"annot-forms":32};function Os(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(Qv.perm!==void 0)throw new Error("Invalid permission: "+s);i+=Qv[s]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var o=(t+this.padding).substr(0,32),a=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=n0(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=i0(this.encryptionKey,this.padding)}function Fs(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[n]}return t}function e5(e){if(Ot(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var o=Math.random().toString(35);return t[r][o]=[n,!!i],o},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[r]){var a=t[r][o];try{a[0].apply(e,n)}catch(s){st.console&&zt.error("jsPDF PubSub Error",s.message,s)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Wh(e){if(!(this instanceof Wh))return new Wh(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function Tx(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ra(e,t,r,n,i){if(!(this instanceof Ra))return new Ra(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,Tx.call(this,n,i)}function Xs(e,t,r,n,i){if(!(this instanceof Xs))return new Xs(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,Tx.call(this,n,i)}function ot(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,l=16,c="S",h=null;Ot(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,o=e.compress||e.compressPdf||o,(h=e.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),a=e.filters||(o===!0?["FlateEncode"]:a),n=n||"mm",r=(""+(r||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,g={},f={internal:{},__private__:{}};f.__private__.PubSub=e5;var S="1.3",v=f.__private__.getPdfVersion=function(){return S};f.__private__.setPdfVersion=function(x){S=x};var k={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]};f.__private__.getPageFormats=function(){return k};var d=f.__private__.getPageFormat=function(x){return k[x]};i=i||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},_=y.COMPAT;function F(){this.saveGraphicsState(),N(new Ze(Ve,0,0,-Ve,0,Co()*Ve).toString()+" cm"),this.setFontSize(this.getFontSize()/Ve),c="n",_=y.ADVANCED}function j(){this.restoreGraphicsState(),c="S",_=y.COMPAT}var re=f.__private__.combineFontStyleAndFontWeight=function(x,W){if(x=="bold"&&W=="normal"||x=="bold"&&W==400||x=="normal"&&W=="italic"||x=="bold"&&W=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return W&&(x=W==400||W==="normal"?x==="italic"?"italic":"normal":W!=700&&W!=="bold"||x!=="normal"?(W==700?"bold":W)+""+x:"bold"),x};f.advancedAPI=function(x){var W=_===y.COMPAT;return W&&F.call(this),typeof x!="function"||(x(this),W&&j.call(this)),this},f.compatAPI=function(x){var W=_===y.ADVANCED;return W&&j.call(this),typeof x!="function"||(x(this),W&&F.call(this)),this},f.isAdvancedAPI=function(){return _===y.ADVANCED};var $,M=function(x){if(_!==y.ADVANCED)throw new Error(x+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=f.roundToPrecision=f.__private__.roundToPrecision=function(x,W){var pe=t||W;if(isNaN(x)||isNaN(pe))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return x.toFixed(pe).replace(/0+$/,"")};$=f.hpf=f.__private__.hpf=typeof l=="number"?function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return D(x,l)}:l==="smart"?function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return D(x,x>-1&&x<1?16:5)}:function(x){if(isNaN(x))throw new Error("Invalid argument passed to 
264jsPDF.hpf");return D(x,16)};var he=f.f2=f.__private__.f2=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.f2");return D(x,2)},H=f.__private__.f3=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.f3");return D(x,3)},R=f.scale=f.__private__.scale=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.scale");return _===y.COMPAT?x*Ve:_===y.ADVANCED?x:void 0},X=function(x){return _===y.COMPAT?Co()-x:_===y.ADVANCED?x:void 0},T=function(x){return R(X(x))};f.__private__.setPrecision=f.setPrecision=function(x){typeof parseInt(x,10)=="number"&&(t=parseInt(x,10))};var se,ye="00000000000000000000000000000000",ae=f.__private__.getFileId=function(){return ye},ue=f.__private__.setFileId=function(x){return ye=x!==void 0&&/^[a-fA-F0-9]{32}$/.test(x)?x.toUpperCase():ye.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(Yr=new Os(h.userPermissions,h.userPassword,h.ownerPassword,ye)),ye};f.setFileId=function(x){return ue(x),this},f.getFileId=function(){return ae()};var oe=f.__private__.convertDateToPDFDate=function(x){var W=x.getTimezoneOffset(),pe=W<0?"+":"-",ve=Math.floor(Math.abs(W/60)),Ee=Math.abs(W%60),Re=[pe,z(ve),"'",z(Ee),"'"].join("");return["D:",x.getFullYear(),z(x.getMonth()+1),z(x.getDate()),z(x.getHours()),z(x.getMinutes()),z(x.getSeconds()),Re].join("")},me=f.__private__.convertPDFDateToDate=function(x){var W=parseInt(x.substr(2,4),10),pe=parseInt(x.substr(6,2),10)-1,ve=parseInt(x.substr(8,2),10),Ee=parseInt(x.substr(10,2),10),Re=parseInt(x.substr(12,2),10),Ue=parseInt(x.substr(14,2),10);return new Date(W,pe,ve,Ee,Re,Ue,0)},de=f.__private__.setCreationDate=function(x){var W;if(x===void 0&&(x=new Date),x instanceof Date)W=oe(x);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(x))throw new Error("Invalid argument passed to jsPDF.setCreationDate");W=x}return se=W},A=f.__private__.getCreationDate=function(x){var W=se;return x==="jsDate"&&(W=me(se)),W};f.setCreationDate=function(x){return de(x),this},f.getCreationDate=function(x){return A(x)};var B,z=f.__private__.padd2=function(x){return("0"+parseInt(x)).slice(-2)},ee=f.__private__.padd2Hex=function(x){return("00"+(x=x.toString())).substr(x.length)},V=0,C=[],L=[],Y=0,Z=[],U=[],G=!1,ge=L,I=function(){V=0,Y=0,L=[],C=[],Z=[],On=Wt(),hi=Wt()};f.__private__.setCustomOutputDestination=function(x){G=!0,ge=x};var le=function(x){G||(ge=x)};f.__private__.resetCustomOutputDestination=function(){G=!1,ge=L};var N=f.__private__.out=function(x){return x=x.toString(),Y+=x.length+1,ge.push(x),ge},w=f.__private__.write=function(x){return N(arguments.length===1?x.toString():Array.prototype.join.call(arguments," "))},b=f.__private__.getArrayBuffer=function(x){for(var W=x.length,pe=new ArrayBuffer(W),ve=new Uint8Array(pe);W--;)ve[W]=x.charCodeAt(W);return pe},P=[["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]];f.__private__.getStandardFonts=function(){return P};var Q=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(x){return Q=_===y.ADVANCED?x/Ve:x,this};var fe,ie=f.__private__.getFontSize=f.getFontSize=function(){return _===y.COMPAT?Q:Q*Ve},_e=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(x){return _e=x,this},f.__private__.getR2L=f.getR2L=function(){return _e};var Ce,Le=f.__private__.setZoomMode=function(x){var W=[void 0,null,"fullwidth","fullheight","fullpage","original"];
vendor: 7,188 bytes, lines 264-265
264if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(x))fe=x;else if(isNaN(x)){if(W.indexOf(x)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+x+'" is not recognized.');fe=x}else fe=parseInt(x,10)};f.__private__.getZoomMode=function(){return fe};var Oe,We=f.__private__.setPageMode=function(x){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(x)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+x+'" is not recognized.');Ce=x};f.__private__.getPageMode=function(){return Ce};var $e=f.__private__.setLayoutMode=function(x){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(x)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+x+'" is not recognized.');Oe=x};f.__private__.getLayoutMode=function(){return Oe},f.__private__.setDisplayMode=f.setDisplayMode=function(x,W,pe){return Le(x),$e(W),We(pe),this};var Je={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(x){if(Object.keys(Je).indexOf(x)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Je[x]},f.__private__.getDocumentProperties=function(){return Je},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(x){for(var W in Je)Je.hasOwnProperty(W)&&x[W]&&(Je[W]=x[W]);return this},f.__private__.setDocumentProperty=function(x,W){if(Object.keys(Je).indexOf(x)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Je[x]=W};var at,Ve,Xt,rt,Or,xt={},vt={},cn=[],St={},fi={},qt={},Xr={},kt=null,mt=0,tt=[],gt=new e5(f),Ar=e.hotfixes||[],Lt={},hr={},qr=[],Ze=function x(W,pe,ve,Ee,Re,Ue){if(!(this instanceof x))return new x(W,pe,ve,Ee,Re,Ue);isNaN(W)&&(W=1),isNaN(pe)&&(pe=0),isNaN(ve)&&(ve=0),isNaN(Ee)&&(Ee=1),isNaN(Re)&&(Re=0),isNaN(Ue)&&(Ue=0),this._matrix=[W,pe,ve,Ee,Re,Ue]};Object.defineProperty(Ze.prototype,"sx",{get:function(){return this._matrix[0]},set:function(x){this._matrix[0]=x}}),Object.defineProperty(Ze.prototype,"shy",{get:function(){return this._matrix[1]},set:function(x){this._matrix[1]=x}}),Object.defineProperty(Ze.prototype,"shx",{get:function(){return this._matrix[2]},set:function(x){this._matrix[2]=x}}),Object.defineProperty(Ze.prototype,"sy",{get:function(){return this._matrix[3]},set:function(x){this._matrix[3]=x}}),Object.defineProperty(Ze.prototype,"tx",{get:function(){return this._matrix[4]},set:function(x){this._matrix[4]=x}}),Object.defineProperty(Ze.prototype,"ty",{get:function(){return this._matrix[5]},set:function(x){this._matrix[5]=x}}),Object.defineProperty(Ze.prototype,"a",{get:function(){return this._matrix[0]},set:function(x){this._matrix[0]=x}}),Object.defineProperty(Ze.prototype,"b",{get:function(){return this._matrix[1]},set:function(x){this._matrix[1]=x}}),Object.defineProperty(Ze.prototype,"c",{get:function(){return this._matrix[2]},set:function(x){this._matrix[2]=x}}),Object.defineProperty(Ze.prototype,"d",{get:function(){return this._matrix[3]},set:function(x){this._matrix[3]=x}}),Object.defineProperty(Ze.prototype,"e",{get:function(){return this._matrix[4]},set:function(x){this._matrix[4]=x}}),Object.defineProperty(Ze.prototype,"f",{get:function(){return this._matrix[5]},set:function(x){this._matrix[5]=x}}),Object.defineProperty(Ze.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ze.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ze.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ze.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ze.prototype.join=function(x){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map($).join(x)},Ze.prototype.multiply=function(x){var W=x.sx*this.sx+x.shy*this.shx,pe=x.sx*this.shy+x.shy*this.sy,ve=x.shx*this.sx+x.sy*this.shx,Ee=x.shx*this.shy+x.sy*this.sy,Re=x.tx*this.sx+x.ty*this.shx+this.tx,Ue=x.tx*this.shy+x.ty*this.sy+this.ty;return new Ze(W,pe,ve,Ee,Re,Ue)},Ze.prototype.decompose=function(){var x=this.sx,W=this.shy,pe=this.shx,ve=this.sy,Ee=this.tx,Re=this.ty,Ue=Math.sqrt(x*x+W*W),Xe=(x/=Ue)*pe+(W/=Ue)*ve;pe-=x*Xe,ve-=W*Xe;var nt=Math.sqrt(pe*pe+ve*ve);return Xe/=nt,x*(ve/=nt)<W*(pe/=nt)&&(x=-x,W=-W,Xe=-Xe,Ue=-Ue),{scale:new Ze(Ue,0,0,nt,0,0),translate:new Ze(1,0,0,1,Ee,Re),rotate:new Ze(x,W,-W,x,0,0),skew:new Ze(1,0,Xe,1,0,0)}},Ze.prototype.toString=function(x){return this.join(" ")},Ze.prototype.inversed=function(){var x=this.sx,W=this.shy,pe=this.shx,ve=this.sy,Ee=this.tx,Re=this.ty,Ue=1/(x*ve-W*pe),Xe=ve*Ue,nt=-W*Ue,dt=-pe*Ue,ft=x*Ue;return new Ze(Xe,nt,dt,ft,-Xe*Ee-dt*Re,-nt*Ee-ft*Re)},Ze.prototype.applyToPoint=function(x){var W=x.x*this.sx+x.y*this.shx+this.tx,pe=x.x*this.shy+x.y*this.sy+this.ty;return new cs(W,pe)},Ze.prototype.applyToRectangle=function(x){var W=this.applyToPoint(x),pe=this.applyToPoint(new cs(x.x+x.w,x.y+x.h));return new Hl(W.x,W.y,pe.x-W.x,pe.y-W.y)},Ze.prototype.clone=function(){var x=this.sx,W=this.shy,pe=this.shx,ve=this.sy,Ee=this.tx,Re=this.ty;return new Ze(x,W,pe,ve,Ee,Re)},f.Matrix=Ze;var Er=f.matrixMult=function(x,W){return W.multiply(x)},dr=new Ze(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=dr;var er=function(x,W){if(!fi[x]){var pe=(W instanceof Ra?"Sh":"P")+(Object.keys(St).length+1).toString(10);W.id=pe,fi[x]=pe,St[pe]=W,gt.publish("addPattern",W)}};f.ShadingPattern=Ra,f.TilingPattern=Xs,f.addShadingPattern=function(x,W){return M("addShadingPattern()"),er(x,W),this},f.beginTilingPattern=function(x){M("beginTilingPattern()"),zc(x.boundingBox[0],x.boundingBox[1],x.boundingBox[2]-x.boundingBox[0],x.boundingBox[3]-x.boundingBox[1],x.matrix)},f.endTilingPattern=function(x,W){M("endTilingPattern()"),W.stream=U[B].join(`
265`),er(x,W),gt.publish("endTilingPattern",W),qr.pop().restore()};var Yt=f.__private__.newObject=function(){var x=Wt();return ar(x,!0),x},Wt=f.__private__.newObjectDeferred=function(){return V++,C[V]=function(){return Y},V},ar=function(x,W){return W=typeof W=="boolean"&&W,C[x]=Y,W&&N(x+" 0 obj"),x},Gn=f.__private__.newAdditionalObject=function(){var x={objId:Wt(),content:""};return Z.push(x),x},On=Wt(),hi=Wt(),di=f.__private__.decodeColorString=function(x){var W=x.split(" ");if(W.length!==2||W[1]!=="g"&&W[1]!=="G")W.length===5&&(W[4]==="k"||W[4]==="K")&&(W=[(1-W[0])*(1-W[3]),(1-W[1])*(1-W[3]),(1-W[2])*(1-W[3]),"r"]);else{var pe=parseFloat(W[0]);W=[pe,pe,pe,"r"]}for(var ve="#",Ee=0;Ee<3;Ee++)ve+=("0"+Math.floor(255*parseFloat(W[Ee])).toString(16)).slice(-2);return ve},pi=f.__private__.encodeColorString=function(x){var W;typeof x=="string"&&(x={ch1:x});var pe=x.ch1,ve=x.ch2,Ee=x.ch3,Re=x.ch4,Ue=x.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof pe=="string"&&pe.charAt(0)!=="#"){var Xe=new Lx(pe);if(Xe.ok)pe=Xe.toHex();else if(!/^\d*\.?\d*$/.test(pe))throw new Error('Invalid color "'+pe+'" passed to jsPDF.encodeColorString.')}if(typeof pe=="string"&&/^#[0-9A-Fa-f]{3}$/.test(pe)&&(pe="#"+pe[1]+pe[1]+pe[2]+pe[2]+pe[3]+pe[3]),typeof pe
vendor: 4,773 bytes, lines 265-268
265=="string"&&/^#[0-9A-Fa-f]{6}$/.test(pe)){var nt=parseInt(pe.substr(1),16);pe=nt>>16&255,ve=nt>>8&255,Ee=255&nt}if(ve===void 0||Re===void 0&&pe===ve&&ve===Ee)if(typeof pe=="string")W=pe+" "+Ue[0];else switch(x.precision){case 2:W=he(pe/255)+" "+Ue[0];break;case 3:default:W=H(pe/255)+" "+Ue[0]}else if(Re===void 0||Ot(Re)==="object"){if(Re&&!isNaN(Re.a)&&Re.a===0)return W=["1.","1.","1.",Ue[1]].join(" ");if(typeof pe=="string")W=[pe,ve,Ee,Ue[1]].join(" ");else switch(x.precision){case 2:W=[he(pe/255),he(ve/255),he(Ee/255),Ue[1]].join(" ");break;default:case 3:W=[H(pe/255),H(ve/255),H(Ee/255),Ue[1]].join(" ")}}else if(typeof pe=="string")W=[pe,ve,Ee,Re,Ue[2]].join(" ");else switch(x.precision){case 2:W=[he(pe),he(ve),he(Ee),he(Re),Ue[2]].join(" ");break;case 3:default:W=[H(pe),H(ve),H(Ee),H(Re),Ue[2]].join(" ")}return W},Di=f.__private__.getFilters=function(){return a},Kn=f.__private__.putStream=function(x){var W=(x=x||{}).data||"",pe=x.filters||Di(),ve=x.alreadyAppliedFilters||[],Ee=x.addLength1||!1,Re=W.length,Ue=x.objectId,Xe=function(Jr){return Jr};if(h!==null&&Ue===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(Xe=Yr.encryptor(Ue,0));var nt={};pe===!0&&(pe=["FlateEncode"]);var dt=x.additionalKeyValues||[],ft=(nt=ot.API.processDataByFilters!==void 0?ot.API.processDataByFilters(W,pe):{data:W,reverseChain:[]}).reverseChain+(Array.isArray(ve)?ve.join(" "):ve.toString());if(nt.data.length!==0&&(dt.push({key:"Length",value:nt.data.length}),Ee===!0&&dt.push({key:"Length1",value:Re})),ft.length!=0)if(ft.split("/").length-1==1)dt.push({key:"Filter",value:ft});else{dt.push({key:"Filter",value:"["+ft+"]"});for(var At=0;At<dt.length;At+=1)if(dt[At].key==="DecodeParms"){for(var rr=[],sr=0;sr<nt.reverseChain.split("/").length-1;sr+=1)rr.push("null");rr.push(dt[At].value),dt[At].value="["+rr.join(" ")+"]"}}N("<<");for(var Nr=0;Nr<dt.length;Nr++)N("/"+dt[Nr].key+" "+dt[Nr].value);N(">>"),nt.data.length!==0&&(N("stream"),N(Xe(nt.data)),N("endstream"))},ji=f.__private__.putPage=function(x){var W=x.number,pe=x.data,ve=x.objId,Ee=x.contentsObjId;ar(ve,!0),N("<</Type /Page"),N("/Parent "+x.rootDictionaryObjId+" 0 R"),N("/Resources "+x.resourceDictionaryObjId+" 0 R"),N("/MediaBox ["+parseFloat($(x.mediaBox.bottomLeftX))+" "+parseFloat($(x.mediaBox.bottomLeftY))+" "+$(x.mediaBox.topRightX)+" "+$(x.mediaBox.topRightY)+"]"),x.cropBox!==null&&N("/CropBox ["+$(x.cropBox.bottomLeftX)+" "+$(x.cropBox.bottomLeftY)+" "+$(x.cropBox.topRightX)+" "+$(x.cropBox.topRightY)+"]"),x.bleedBox!==null&&N("/BleedBox ["+$(x.bleedBox.bottomLeftX)+" "+$(x.bleedBox.bottomLeftY)+" "+$(x.bleedBox.topRightX)+" "+$(x.bleedBox.topRightY)+"]"),x.trimBox!==null&&N("/TrimBox ["+$(x.trimBox.bottomLeftX)+" "+$(x.trimBox.bottomLeftY)+" "+$(x.trimBox.topRightX)+" "+$(x.trimBox.topRightY)+"]"),x.artBox!==null&&N("/ArtBox ["+$(x.artBox.bottomLeftX)+" "+$(x.artBox.bottomLeftY)+" "+$(x.artBox.topRightX)+" "+$(x.artBox.topRightY)+"]"),typeof x.userUnit=="number"&&x.userUnit!==1&&N("/UserUnit "+x.userUnit),gt.publish("putPage",{objId:ve,pageContext:tt[W],pageNumber:W,page:pe}),N("/Contents "+Ee+" 0 R"),N(">>"),N("endobj");var Re=pe.join(`
266`);return _===y.ADVANCED&&(Re+=`
267Q`),ar(Ee,!0),Kn({data:Re,filters:Di(),objectId:Ee}),N("endobj"),ve},ya=f.__private__.putPages=function(){var x,W,pe=[];for(x=1;x<=mt;x++)tt[x].objId=Wt(),tt[x].contentsObjId=Wt();for(x=1;x<=mt;x++)pe.push(ji({number:x,data:U[x],objId:tt[x].objId,contentsObjId:tt[x].contentsObjId,mediaBox:tt[x].mediaBox,cropBox:tt[x].cropBox,bleedBox:tt[x].bleedBox,trimBox:tt[x].trimBox,artBox:tt[x].artBox,userUnit:tt[x].userUnit,rootDictionaryObjId:On,resourceDictionaryObjId:hi}));ar(On,!0),N("<</Type /Pages");var ve="/Kids [";for(W=0;W<mt;W++)ve+=pe[W]+" 0 R ";N(ve+"]"),N("/Count "+mt),N(">>"),N("endobj"),gt.publish("postPutPages")},Za=function(x){gt.publish("putFont",{font:x,out:N,newObject:Yt,putStream:Kn}),x.isAlreadyPutted!==!0&&(x.objectNumber=Yt(),N("<<"),N("/Type /Font"),N("/BaseFont /"+Fs(x.postScriptName)),N("/Subtype /Type1"),typeof x.encoding=="string"&&N("/Encoding /"+x.encoding),N("/FirstChar 32"),N("/LastChar 255"),N(">>"),N("endobj"))},Qa=function(){for(var x in xt)xt.hasOwnProperty(x)&&(p===!1||p===!0&&g.hasOwnProperty(x))&&Za(xt[x])},es=function(x){x.objectNumber=Yt();var W=[];W.push({key:"Type",value:"/XObject"}),W.push({key:"Subtype",value:"/Form"}),W.push({key:"BBox",value:"["+[$(x.x),$(x.y),$(x.x+x.width),$(x.y+x.height)].join(" ")+"]"}),W.push({key:"Matrix",value:"["+x.matrix.toString()+"]"});var pe=x.pages[1].join(`
268`);Kn({data:pe,additionalKeyValues:W,objectId:x.objectNumber}),N("endobj")},ts=function(){for(var x in Lt)Lt.hasOwnProperty(x)&&es(Lt[x])},Sc=function(x,W){var pe,ve=[],Ee=1/(W-1);for(pe=0;pe<1;pe+=Ee)ve.push(pe);
vendor: 5,523 bytes, lines 268-269
268if(ve.push(1),x[0].offset!=0){var Re={offset:0,color:x[0].color};x.unshift(Re)}if(x[x.length-1].offset!=1){var Ue={offset:1,color:x[x.length-1].color};x.push(Ue)}for(var Xe="",nt=0,dt=0;dt<ve.length;dt++){for(pe=ve[dt];pe>x[nt+1].offset;)nt++;var ft=x[nt].offset,At=(pe-ft)/(x[nt+1].offset-ft),rr=x[nt].color,sr=x[nt+1].color;Xe+=ee(Math.round((1-At)*rr[0]+At*sr[0]).toString(16))+ee(Math.round((1-At)*rr[1]+At*sr[1]).toString(16))+ee(Math.round((1-At)*rr[2]+At*sr[2]).toString(16))}return Xe.trim()},Pd=function(x,W){W||(W=21);var pe=Yt(),ve=Sc(x.colors,W),Ee=[];Ee.push({key:"FunctionType",value:"0"}),Ee.push({key:"Domain",value:"[0.0 1.0]"}),Ee.push({key:"Size",value:"["+W+"]"}),Ee.push({key:"BitsPerSample",value:"8"}),Ee.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ee.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Kn({data:ve,additionalKeyValues:Ee,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:pe}),N("endobj"),x.objectNumber=Yt(),N("<< /ShadingType "+x.type),N("/ColorSpace /DeviceRGB");var Re="/Coords ["+$(parseFloat(x.coords[0]))+" "+$(parseFloat(x.coords[1]))+" ";x.type===2?Re+=$(parseFloat(x.coords[2]))+" "+$(parseFloat(x.coords[3])):Re+=$(parseFloat(x.coords[2]))+" "+$(parseFloat(x.coords[3]))+" "+$(parseFloat(x.coords[4]))+" "+$(parseFloat(x.coords[5])),N(Re+="]"),x.matrix&&N("/Matrix ["+x.matrix.toString()+"]"),N("/Function "+pe+" 0 R"),N("/Extend [true true]"),N(">>"),N("endobj")},Id=function(x,W){var pe=Wt(),ve=Yt();W.push({resourcesOid:pe,objectOid:ve}),x.objectNumber=ve;var Ee=[];Ee.push({key:"Type",value:"/Pattern"}),Ee.push({key:"PatternType",value:"1"}),Ee.push({key:"PaintType",value:"1"}),Ee.push({key:"TilingType",value:"1"}),Ee.push({key:"BBox",value:"["+x.boundingBox.map($).join(" ")+"]"}),Ee.push({key:"XStep",value:$(x.xStep)}),Ee.push({key:"YStep",value:$(x.yStep)}),Ee.push({key:"Resources",value:pe+" 0 R"}),x.matrix&&Ee.push({key:"Matrix",value:"["+x.matrix.toString()+"]"}),Kn({data:x.stream,additionalKeyValues:Ee,objectId:x.objectNumber}),N("endobj")},rs=function(x){var W;for(W in St)St.hasOwnProperty(W)&&(St[W]instanceof Ra?Pd(St[W]):St[W]instanceof Xs&&Id(St[W],x))},_c=function(x){for(var W in x.objectNumber=Yt(),N("<<"),x)switch(W){case"opacity":N("/ca "+he(x[W]));break;case"stroke-opacity":N("/CA "+he(x[W]))}N(">>"),N("endobj")},Rd=function(){var x;for(x in qt)qt.hasOwnProperty(x)&&_c(qt[x])},Ol=function(){for(var x in N("/XObject <<"),Lt)Lt.hasOwnProperty(x)&&Lt[x].objectNumber>=0&&N("/"+x+" "+Lt[x].objectNumber+" 0 R");gt.publish("putXobjectDict"),N(">>")},Od=function(){Yr.oid=Yt(),N("<<"),N("/Filter /Standard"),N("/V "+Yr.v),N("/R "+Yr.r),N("/U <"+Yr.toHexString(Yr.U)+">"),N("/O <"+Yr.toHexString(Yr.O)+">"),N("/P "+Yr.P),N(">>"),N("endobj")},Ac=function(){for(var x in N("/Font <<"),xt)xt.hasOwnProperty(x)&&(p===!1||p===!0&&g.hasOwnProperty(x))&&N("/"+x+" "+xt[x].objectNumber+" 0 R");N(">>")},Fd=function(){if(Object.keys(St).length>0){for(var x in N("/Shading <<"),St)St.hasOwnProperty(x)&&St[x]instanceof Ra&&St[x].objectNumber>=0&&N("/"+x+" "+St[x].objectNumber+" 0 R");gt.publish("putShadingPatternDict"),N(">>")}},ns=function(x){if(Object.keys(St).length>0){for(var W in N("/Pattern <<"),St)St.hasOwnProperty(W)&&St[W]instanceof f.TilingPattern&&St[W].objectNumber>=0&&St[W].objectNumber<x&&N("/"+W+" "+St[W].objectNumber+" 0 R");gt.publish("putTilingPatternDict"),N(">>")}},Dd=function(){if(Object.keys(qt).length>0){var x;for(x in N("/ExtGState <<"),qt)qt.hasOwnProperty(x)&&qt[x].objectNumber>=0&&N("/"+x+" "+qt[x].objectNumber+" 0 R");gt.publish("putGStateDict"),N(">>")}},pr=function(x){ar(x.resourcesOid,!0),N("<<"),N("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ac(),Fd(),ns(x.objectOid),Dd(),Ol(),N(">>"),N("endobj")},Ec=function(){var x=[];Qa(),Rd(),ts(),rs(x),gt.publish("putResources"),x.forEach(pr),pr({resourcesOid:hi,objectOid:Number.MAX_SAFE_INTEGER}),gt.publish("postPutResources")},Nc=function(){gt.publish("putAdditionalObjects");for(var x=0;x<Z.length;x++){var W=Z[x];ar(W.objId,!0),N(W.content),N("endobj")}gt.publish("postPutAdditionalObjects")},kc=function(x){vt[x.fontName]=vt[x.fontName]||{},vt[x.fontName][x.fontStyle]=x.id},Fl=function(x,W,pe,ve,Ee){var Re={id:"F"+(Object.keys(xt).length+1).toString(10),postScriptName:x,fontName:W,fontStyle:pe,encoding:ve,isStandardFont:Ee||!1,metadata:{}};return gt.publish("addFont",{font:Re,instance:this}),xt[Re.id]=Re,kc(Re),Re.id},jd=function(x){for(var W=0,pe=P.length;W<pe;W++){var ve=Fl.call(this,x[W][0],x[W][1],x[W][2],P[W][3],!0);p===!1&&(g[ve]=!0);var Ee=x[W][0].split("-");kc({id:ve,fontName:Ee[0],fontStyle:Ee[1]||""})}gt.publish("addFonts",{fonts:xt,dictionary:vt})},mi=function(x){return x.foo=function(){try{return x.apply(this,arguments)}catch(ve){var W=ve.stack||"";~W.indexOf(" at ")&&(W=W.split(" at ")[1]);var pe="Error in function "+W.split(`
269`)[0].split("<")[0]+": "+ve.message;if(!st.console)throw new Error(pe);st.console.error(pe,ve),st.alert&&alert(pe)}},x.foo.bar=x,x.foo},is=function(x,W){var pe,ve,Ee,Re,Ue,Xe,nt,dt,ft;if(Ee=(W=W||{}).sourceEncoding||"Unicode",Ue=W.outputEncoding,(W.autoencode||Ue)&&xt[at].metadata&&xt[at].metadata[Ee]&&xt[at].metadata[Ee].encoding&&(Re=xt[at].metadata[Ee].encoding,!Ue&&xt[at].encoding&&(Ue=xt[at].encoding),!Ue&&Re.codePages&&(Ue=Re.codePages[0]),typeof Ue=="string"&&(Ue=Re[Ue]),Ue)){for(nt=!1,Xe=[],pe=0,ve=x.length;pe<ve;pe++)(dt=Ue[x.charCodeAt(pe)])?Xe.push(String.fromCharCode(dt)):Xe.push(x[pe]),Xe[pe].charCodeAt(0)>>8&&(nt=!0);x=Xe.join("")}for(pe=x.length;nt===void 0&&pe!==0;
vendor: 3,322 bytes, line 269
269)x.charCodeAt(pe-1)>>8&&(nt=!0),pe--;if(!nt)return x;for(Xe=W.noBOM?[]:[254,255],pe=0,ve=x.length;pe<ve;pe++){if((ft=(dt=x.charCodeAt(pe))>>8)>>8)throw new Error("Character at position "+pe+" of string '"+x+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Xe.push(ft),Xe.push(dt-(ft<<8))}return String.fromCharCode.apply(void 0,Xe)},vn=f.__private__.pdfEscape=f.pdfEscape=function(x,W){return is(x,W).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dl=f.__private__.beginPage=function(x){U[++mt]=[],tt[mt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(x[0]),topRightY:Number(x[1])}},Cc(mt),le(U[B])},Lc=function(x,W){var pe,ve,Ee;switch(r=W||r,typeof x=="string"&&(pe=d(x.toLowerCase()),Array.isArray(pe)&&(ve=pe[0],Ee=pe[1])),Array.isArray(x)&&(ve=x[0]*Ve,Ee=x[1]*Ve),isNaN(ve)&&(ve=i[0],Ee=i[1]),(ve>14400||Ee>14400)&&(zt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ve=Math.min(14400,ve),Ee=Math.min(14400,Ee)),i=[ve,Ee],r.substr(0,1)){case"l":Ee>ve&&(i=[Ee,ve]);break;case"p":ve>Ee&&(i=[Ee,ve])}Dl(i),Fc(zl),N(gi),ql!==0&&N(ql+" J"),Wl!==0&&N(Wl+" j"),gt.publish("addPage",{pageNumber:mt})},Bd=function(x){x>0&&x<=mt&&(U.splice(x,1),tt.splice(x,1),mt--,B>mt&&(B=mt),this.setPage(B))},Cc=function(x){x>0&&x<=mt&&(B=x)},Md=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return U.length-1},Tc=function(x,W,pe){var ve,Ee=void 0;return pe=pe||{},x=x!==void 0?x:xt[at].fontName,W=W!==void 0?W:xt[at].fontStyle,ve=x.toLowerCase(),vt[ve]!==void 0&&vt[ve][W]!==void 0?Ee=vt[ve][W]:vt[x]!==void 0&&vt[x][W]!==void 0?Ee=vt[x][W]:pe.disableWarning===!1&&zt.warn("Unable to look up font label for font '"+x+"', '"+W+"'. Refer to getFontList() for available fonts."),Ee||pe.noFallback||(Ee=vt.times[W])==null&&(Ee=vt.times.normal),Ee},zd=f.__private__.putInfo=function(){var x=Yt(),W=function(ve){return ve};for(var pe in h!==null&&(W=Yr.encryptor(x,0)),N("<<"),N("/Producer ("+vn(W("jsPDF "+ot.version))+")"),Je)Je.hasOwnProperty(pe)&&Je[pe]&&N("/"+pe.substr(0,1).toUpperCase()+pe.substr(1)+" ("+vn(W(Je[pe]))+")");N("/CreationDate ("+vn(W(se))+")"),N(">>"),N("endobj")},jl=f.__private__.putCatalog=function(x){var W=(x=x||{}).rootDictionaryObjId||On;switch(Yt(),N("<<"),N("/Type /Catalog"),N("/Pages "+W+" 0 R"),fe||(fe="fullwidth"),fe){case"fullwidth":N("/OpenAction [3 0 R /FitH null]");break;case"fullheight":N("/OpenAction [3 0 R /FitV null]");break;case"fullpage":N("/OpenAction [3 0 R /Fit]");break;case"original":N("/OpenAction [3 0 R /XYZ null null 1]");break;default:var pe=""+fe;pe.substr(pe.length-1)==="%"&&(fe=parseInt(fe)/100),typeof fe=="number"&&N("/OpenAction [3 0 R /XYZ null null "+he(fe)+"]")}switch(Oe||(Oe="continuous"),Oe){case"continuous":N("/PageLayout /OneColumn");break;case"single":N("/PageLayout /SinglePage");break;case"two":case"twoleft":N("/PageLayout /TwoColumnLeft");break;case"tworight":N("/PageLayout /TwoColumnRight")}Ce&&N("/PageMode /"+Ce),gt.publish("putCatalog"),N(">>"),N("endobj")},Ud=f.__private__.putTrailer=function(){N("trailer"),N("<<"),N("/Size "+(V+1)),N("/Root "+V+" 0 R"),N("/Info "+(V-1)+" 0 R"),h!==null&&N("/Encrypt "+Yr.oid+" 0 R"),N("/ID [ <"+ye+"> <"+ye+"> ]"),N(">>
269")},qd=f.__private__.putHeader=function(){N("%PDF-"+S),N("%ºß¬à")},Wd=f.__private__.putXRef=function(){var x="0000000000";N("xref"),N("0 "+(V+1)),N("0000000000 65535 f ");for(var W=1;W<=V;W++)typeof C[W]=="function"?N((x+C[W]()).slice(-10)+" 00000 n "):C[W]!==void 0?N((x+C[W]).slice(-10)+" 00000 n "):N("0000000000 00000 n ")},no=f.__private__.buildDocument=function(){I(),le(L),gt.publish("buildDocument"),qd(),ya(),Nc(),Ec(),h!==null&&Od(),zd(),jl();var x=Y;return Wd(),Ud(),N("startxref"),N(""+x),N("%%EOF"),le(U[B]),L.join(`
270`)},os=f.__private__.getBlob=function(x){return new Blob([b(x)],{type:"application/pdf"})},as=f.output=f.__private__.output=mi(function(x,W){switch(typeof(W=W||{})=="string"?W={filename:W}:W.filename=W.filename||"generated.pdf",x){case void 0:return no();case"save":f.save(W.filename);break;case"arraybuffer":return b(no());case"blob":return os(no());case"bloburi":case"bloburl":if(st.URL!==void 0&&typeof st.URL.createObjectURL=="function")return st.URL&&st.URL.createObjectURL(os(no()))||void 0;zt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var pe="",ve=no();try{pe=r0(ve)}catch{pe=r0(unescape(encodeURIComponent(ve)))}return"data:application/pdf;filename="+W.filename+";base64,"+pe;case"pdfobjectnewwindow":if(Object.prototype.toString.call(st)==="[object Window]"){var Ee="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Re=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';W.pdfObjectUrl&&(Ee=W.pdfObjectUrl,Re="");var Ue='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Ee+'"'+Re+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(W)+");<\/script></body></html>",Xe=st.open();return Xe!==null&&Xe.document.write(Ue),Xe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(st)==="[object Window]"){var nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(W.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+W.filename+'" width="500px" height="400px" /></body></html>',dt=st.open();if(dt!==null){dt.document.write(nt);var ft=this;dt.document.documentElement.querySelector("#pdfViewer").onload=function(){dt.document.title=W.filename,dt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ft.output("bloburl"))}}return dt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(st)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var At='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",W)+'"></iframe></body></html>',rr=st.open();if(rr!==null&&(rr.document.write(At),rr.document.title=W.filename),rr||typeof safari>"u")return rr;break;case"datauri":case"dataurl":return st.document.location.href=this.output("datauristring",W);default:return null}}),Pc=function(x){return Array.isArray(Ar)===!0&&Ar.indexOf(x)>-1};switch(n){case"pt":Ve=1;break;case"mm":Ve=72/25.4;break;case"cm":Ve=72/2.54;break;case"in":Ve=72;break;case"px":Ve=Pc("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ve=12;break;case"ex":Ve=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);Ve=n}var Yr=null;de(),ue();var Hd=function(x){return h!==null?Yr.encryptor(x,0):function(W){return W}},Ic=f.__private__.getPageInfo=f.getPageInfo=function(x){if(isNaN(x)||x%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:tt[x].objId,pageNumber:x,pageContext:tt[x]}},ct=f.__private__.getPageInfoByObjId=function(x){if(isNaN(x)||x%1!=0)throw new Error("Invalid argument passed to 
270jsPDF.getPageInfoByObjId");for(var W in tt)if(tt[W].objId===x)break;return Ic(W)},Vd=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:tt[B].objId,pageNumber:B,pageContext:tt[B]}};f.addPage=function(){return Lc.apply(this,arguments),this},f.setPage=function(){return Cc.apply(this,arguments),le.call(this,U[B]),this},f.insertPage=function(x){return this.addPage(),this.movePage(B,x),this},f.movePage=function(x,W){var pe,ve;if(x>W){pe=U[x],ve=tt[x];for(var Ee=x;Ee>W;Ee--)U[Ee]=U[Ee-1],tt[Ee]=tt[Ee-1];U[W]=pe,tt[W]=ve,this.setPage(W)}else if(x<W){pe=U[x],ve=tt[x];for(var Re=x;Re<W;Re++)U[Re]=U[Re+1],tt[Re]=tt[Re+1];U[W]=pe,tt[W]=ve,this.setPage(W)}return this},f.deletePage=function(){return Bd.apply(this,arguments),this},f.__private__.text=f.text=function(x,W,pe,ve,Ee){var Re,Ue,Xe,nt,dt,ft,At,rr,sr,Nr=(ve=ve||{}).scope||this;if(typeof x=="number"&&typeof W=="number"&&(typeof pe=="string"||Array.isArray(pe))){var Jr=pe;pe=W,W=x,x=Jr}if(arguments[3]instanceof Ze?(M("The transform parameter of text() with a Matrix value"),sr=Ee):(Xe=arguments[4],nt=arguments[5],Ot(At=arguments[3])==="object"&&At!==null||(typeof Xe=="string"&&(nt=Xe,Xe=null),typeof At=="string"&&(nt=At,At=null),typeof At=="number"&&(Xe=At,At=null),ve={flags:At,angle:Xe,align:nt})),isNaN(W)||isNaN(pe)||x==null)throw new Error("Invalid arguments passed to jsPDF.text");if(x.length===0)return Nr;var Fr="",yi=!1,Fn=typeof ve.lineHeightFactor=="number"?ve.lineHeightFactor:wa,zi=Nr.internal.scaleFactor;function Uc(Ht){return Ht=Ht.split("	").join(Array(ve.TabLen||9).join(" ")),vn(Ht,At)}function Kl(Ht){for(var Vt,gr=Ht.concat(),Tr=[],lo=gr.length;lo--;)typeof(Vt=gr.shift())=="string"?Tr.push(Vt):Array.isArray(Ht)&&(Vt.length===1||Vt[1]===void 0&&Vt[2]===void 0)?Tr.push(Vt[0]):Tr.push([Vt[0],Vt[1],Vt[2]]);return Tr}function Xl(Ht,Vt){var gr;if(typeof Ht=="string")gr=Vt(Ht)[0];else if(Array.isArray(Ht)){for(var Tr,lo,nu=Ht.concat(),xs=[],$c=nu.length;$c--;)typeof(Tr=nu.shift())=="string"?xs.push(Vt(Tr)[0]):Array.isArray(Tr)&&typeof Tr[0]=="string"&&(lo=Vt(Tr[0],Tr[1],Tr[2]),xs.push([lo[0],lo[1],lo[2]]));gr=xs}return gr}var hs=!1,Yl=!0;if(typeof x=="string")hs=!0;else if(Array.isArray(x)){var Jl=x.concat();Ue=[];for(var ds,Wr=Jl.length;Wr--;)(typeof(ds=Jl.shift())!="string"||Array.isArray(ds)&&typeof ds[0]!="string")&&(Yl=!1);hs=Yl}if(hs===!1)throw new Error('Type of text must be string or Array. "'+x+'" is not recognized.');typeof x=="string"&&(x=x.match(/[\r?\n]/)?x.split(/\r\n|\r|\n/g):[x]);var ps=Q/Nr.internal.scaleFactor,ms=ps*(Fn-1);switch(ve.baseline){case"bottom":pe-=ms;break;case"top":pe+=ps-ms;break;case"hanging":pe+=ps-2*ms;break;case"middle":pe+=ps/2-ms}if((ft=ve.maxWidth||0)>0&&(typeof x=="string"?x=Nr.splitTextToSize(x,ft):Object.prototype.toString.call(x)==="[object Array]"&&(x=x.reduce(function(Ht,Vt){return Ht.concat(Nr.splitTextToSize(Vt,ft))},[]))),Re={text:x,x:W,y:pe,options:ve,mutex:{pdfEscape:vn,activeFontKey:at,fonts:xt,activeFontSize:Q}},gt.publish("preProcessText",Re),x=Re.text,Xe=(ve=Re.options).angle,!(sr instanceof Ze)&&Xe&&typeof Xe=="number"){Xe*=Math.PI/180,ve.rotationDirection===0&&(Xe=-Xe),_===y.ADVANCED&&(Xe=-Xe);var gs=Math.cos(Xe),Zl=Math.sin(Xe);sr=new Ze(gs,Zl,-Zl,gs,0,0)}else Xe&&Xe instanceof Ze&&(sr=Xe);_!==y.ADVANCED||sr||(sr=dr),(dt=ve.charSpace||us)!==void 0&&(Fr+=$(R(dt))+` Tc
271`,this.setCharSpace(this.getCharSpace()||0)),(rr=ve.horizontalScale)!==void 0&&(Fr+=$(100*rr)+` Tz
272`),ve.lang;var wn=-1,tp=ve.renderingMode!==void 0?ve.renderingMode:ve.stroke,Ql=Nr.internal.getCurrentPageInfo().pageContext;switch(tp){case 0:case!1:case"fill":wn=0;break;case 1:case!0:case"stroke":wn=1;break;case 2:case"fillThenStroke":wn=2;break;case 3:case"invisible":wn=3;break;case 4:case"fillAndAddForClipping":wn=4;break;case 5:case"strokeAndAddPathForClipping":wn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":wn=6;break;case 7:case"addToPathForClipping":wn=7}var qc=Ql.usedRenderingMode!==void 0?Ql.usedRenderingMode:-1;wn!==-1?Fr+=wn+` Tr
273`:qc!==-1&&(Fr+=`0 Tr
274`),wn!==-1&&(Ql.usedRenderingMode=wn),nt=ve.align||"left";var Xn,ys=Q*Fn,Wc=Nr.internal.pageSize.getWidth(),Hc=xt[at];dt=ve.charSpace||us,ft=ve.maxWidth||0,At=Object.assign({autoencode:!0,noBOM:!0},ve.flags);var To=[],Sa=function(Ht){return Nr.getStringUnitWidth(Ht,{font:Hc,charSpace:dt,fontSize:Q,doKerning:!1})*Q/zi};if(Object.prototype.toString.call(x)==="[object Array]"){var bn;Ue=Kl(x),nt!=="left"&&(Xn=Ue.map(Sa));var fn,Po=0;if(nt==="right"){W-=Xn[0],x=[],Wr=Ue.length;for(var oo=0;oo<Wr;oo++)oo===0?(fn=Mi(W),bn=io(pe)):(fn=R(Po-Xn[oo]),bn=-ys),x.push([Ue[oo],fn,bn]),Po=Xn[oo]}else if(nt==="center"){W-=Xn[0]/2,x=[],Wr=Ue.length;for(var ao=0;ao<Wr;ao++)ao===0?(fn=Mi(W),bn=io(pe)):(fn=R((Po-Xn[ao])/2),bn=-ys),x.push([Ue[ao],fn,bn]),Po=Xn[ao]}else if(nt==="left"){x=[],Wr=Ue.length;for(var vs=0;vs<Wr;vs++)x.push(Ue[vs])}else if(nt==="justify"&&Hc.encoding==="Identity-H"){x=[],Wr=Ue.length,ft=ft!==0?ft:Wc;for(var so=0,mr=0;mr<Wr;mr++)if(bn=mr===0?io(pe):-ys,fn=mr===0?Mi(W):so,mr<Wr-1){var eu=R((ft-Xn[mr])/(Ue[mr].split(" ").length-1)),hn=Ue[mr].split(" ");x.push([hn[0]+" ",fn,bn]),so=0;for(var Yn=1;Yn<hn.length;
vendor: 4,369 bytes, lines 274-284
274Yn++){var ws=(Sa(hn[Yn-1]+" "+hn[Yn])-Sa(hn[Yn]))*zi+eu;Yn==hn.length-1?x.push([hn[Yn],ws,0]):x.push([hn[Yn]+" ",ws,0]),so-=ws}}else x.push([Ue[mr],fn,bn]);x.push(["",so,0])}else{if(nt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(x=[],Wr=Ue.length,ft=ft!==0?ft:Wc,mr=0;mr<Wr;mr++)bn=mr===0?io(pe):-ys,fn=mr===0?Mi(W):0,mr<Wr-1?To.push($(R((ft-Xn[mr])/(Ue[mr].split(" ").length-1)))):To.push(0),x.push([Ue[mr],fn,bn])}}var Vc=typeof ve.R2L=="boolean"?ve.R2L:_e;Vc===!0&&(x=Xl(x,function(Ht,Vt,gr){return[Ht.split("").reverse().join(""),Vt,gr]})),Re={text:x,x:W,y:pe,options:ve,mutex:{pdfEscape:vn,activeFontKey:at,fonts:xt,activeFontSize:Q}},gt.publish("postProcessText",Re),x=Re.text,yi=Re.mutex.isHex||!1;var tu=xt[at].encoding;tu!=="WinAnsiEncoding"&&tu!=="StandardEncoding"||(x=Xl(x,function(Ht,Vt,gr){return[Uc(Ht),Vt,gr]})),Ue=Kl(x),x=[];for(var _a,Aa,Io,Ea=0,bs=1,Na=Array.isArray(Ue[0])?bs:Ea,Ro="",ru=function(Ht,Vt,gr){var Tr="";return gr instanceof Ze?(gr=typeof ve.angle=="number"?Er(gr,new Ze(1,0,0,1,Ht,Vt)):Er(new Ze(1,0,0,1,Ht,Vt),gr),_===y.ADVANCED&&(gr=Er(new Ze(1,0,0,-1,0,0),gr)),Tr=gr.join(" ")+` Tm
275`):Tr=$(Ht)+" "+$(Vt)+` Td
276`,Tr},Jn=0;Jn<Ue.length;Jn++){switch(Ro="",Na){case bs:Io=(yi?"<":"(")+Ue[Jn][0]+(yi?">":")"),_a=parseFloat(Ue[Jn][1]),Aa=parseFloat(Ue[Jn][2]);break;case Ea:Io=(yi?"<":"(")+Ue[Jn]+(yi?">":")"),_a=Mi(W),Aa=io(pe)}To!==void 0&&To[Jn]!==void 0&&(Ro=To[Jn]+` Tw
277`),Jn===0?x.push(Ro+ru(_a,Aa,sr)+Io):Na===Ea?x.push(Ro+Io):Na===bs&&x.push(Ro+ru(_a,Aa,sr)+Io)}x=Na===Ea?x.join(` Tj
278T* `):x.join(` Tj
279`),x+=` Tj
280`;var Zn=`BT
281/`;return Zn+=at+" "+Q+` Tf
282`,Zn+=$(Q*Fn)+` TL
283`,Zn+=ba+`
284`,Zn+=Fr,Zn+=x,N(Zn+="ET"),g[at]=!0,Nr};var $d=f.__private__.clip=f.clip=function(x){return N(x==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return $d("evenodd")},f.__private__.discardPath=f.discardPath=function(){return N("n"),this};var Bi=f.__private__.isValidStyle=function(x){var W=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(x)!==-1&&(W=!0),W};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(x){return Bi(x)&&(c=x),this};var Rc=f.__private__.getStyle=f.getStyle=function(x){var W=c;switch(x){case"D":case"S":W="S";break;case"F":W="f";break;case"FD":case"DF":W="B";break;case"f":case"f*":case"B":case"B*":W=x}return W},Oc=f.close=function(){return N("h"),this};f.stroke=function(){return N("S"),this},f.fill=function(x){return ss("f",x),this},f.fillEvenOdd=function(x){return ss("f*",x),this},f.fillStroke=function(x){return ss("B",x),this},f.fillStrokeEvenOdd=function(x){return ss("B*",x),this};var ss=function(x,W){Ot(W)==="object"?Kd(W,x):N(x)},Bl=function(x){x===null||_===y.ADVANCED&&x===void 0||(x=Rc(x),N(x))};function Gd(x,W,pe,ve,Ee){var Re=new Xs(W||this.boundingBox,pe||this.xStep,ve||this.yStep,this.gState,Ee||this.matrix);Re.stream=this.stream;var Ue=x+"$$"+this.cloneIndex+++"$$";return er(Ue,Re),Re}var Kd=function(x,W){var pe=fi[x.key],ve=St[pe];if(ve instanceof Ra)N("q"),N(Xd(W)),ve.gState&&f.setGState(ve.gState),N(x.matrix.toString()+" cm"),N("/"+pe+" sh"),N("Q");else if(ve instanceof Xs){var Ee=new Ze(1,0,0,-1,0,Co());x.matrix&&(Ee=Ee.multiply(x.matrix||dr),pe=Gd.call(ve,x.key,x.boundingBox,x.xStep,x.yStep,Ee).id),N("q"),N("/Pattern cs"),N("/"+pe+" scn"),ve.gState&&f.setGState(ve.gState),N(W),N("Q")}},Xd=function(x){switch(x){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"}},Ml=f.moveTo=function(x,W){return N($(R(x))+" "+$(T(W))+" m"),this},va=f.lineTo=function(x,W){return N($(R(x))+" "+$(T(W))+" l"),this},ko=f.curveTo=function(x,W,pe,ve,Ee,Re){return N([$(R(x)),$(T(W)),$(R(pe)),$(T(ve)),$(R(Ee)),$(T(Re)),"c"].join(" ")),this};f.__private__.line=f.line=function(x,W,pe,ve,Ee){if(isNaN(x)||isNaN(W)||isNaN(pe)||isNaN(ve)||!Bi(Ee))throw new Error("Invalid arguments passed to jsPDF.line");return _===y.COMPAT?this.lines([[pe-x,ve-W]],x,W,[1,1],Ee||"S"):this.lines([[pe-x,ve-W]],x,W,[1,1]).stroke()},f.__private__.lines=f.lines=function(x,W,pe,ve,Ee,Re){var Ue,Xe,nt,dt,ft,At,rr,sr,Nr,Jr,Fr,yi;if(typeof x=="number"&&(yi=pe,pe=W,W=x,x=yi),ve=ve||[1,1],Re=Re||!1,isNaN(W)||isNaN(pe)||!Array.isArray(x)||!Array.isArray(ve)||!Bi(Ee)||typeof Re!="boolean")throw new Error("Invalid arguments passed to 
284jsPDF.lines");for(Ml(W,pe),Ue=ve[0],Xe=ve[1],dt=x.length,Jr=W,Fr=pe,nt=0;nt<dt;nt++)(ft=x[nt]).length===2?(Jr=ft[0]*Ue+Jr,Fr=ft[1]*Xe+Fr,va(Jr,Fr)):(At=ft[0]*Ue+Jr,rr=ft[1]*Xe+Fr,sr=ft[2]*Ue+Jr,Nr=ft[3]*Xe+Fr,Jr=ft[4]*Ue+Jr,Fr=ft[5]*Xe+Fr,ko(At,rr,sr,Nr,Jr,Fr));return Re&&Oc(),Bl(Ee),this},f.path=function(x){for(var W=0;W<x.length;W++){var pe=x[W],ve=pe.c;switch(pe.op){case"m":Ml(ve[0],ve[1]);break;case"l":va(ve[0],ve[1]);break;case"c":ko.apply(this,ve);break;case"h":Oc()}}return this},f.__private__.rect=f.rect=function(x,W,pe,ve,Ee){if(isNaN(x)||isNaN(W)||isNaN(pe)||isNaN(ve)||!Bi(Ee))throw new Error("Invalid arguments passed to jsPDF.rect");return _===y.COMPAT&&(ve=-ve),N([$(R(x)),$(T(W)),$(R(pe)),$(R(ve)),"re"].join(" ")),Bl(Ee),this},f.__private__.triangle=f.triangle=function(x,W,pe,ve,Ee,Re,Ue){if(isNaN(x)||isNaN(W)||isNaN(pe)||isNaN(ve)||isNaN(Ee)||isNaN(Re)||!Bi(Ue))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[pe-x,ve-W],[Ee-pe,Re-ve],[x-Ee,W-Re]],x,W,[1,1],Ue,!0),this},f.__private__.roundedRect=f.roundedRect=function(x,W,pe,ve,Ee,Re,Ue){if(isNaN(x)||isNaN(W)||isNaN(pe)||isNaN(ve)||isNaN(Ee)||isNaN(Re)||!Bi(Ue))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Xe=4/3*(Math.SQRT2-1);return Ee=Math.min(Ee,.5*pe),Re=Math.min(Re,.5*ve),this.lines([[pe-2*Ee,0],[Ee*Xe,0,Ee,Re-Re*Xe,Ee,Re],[0,ve-2*Re],[0,Re*Xe,-Ee*Xe,Re,-Ee,Re],[2*Ee-pe,0],[-Ee*Xe,0,-Ee,-Re*Xe,-Ee,-Re],[0,2*Re-ve],[0,-Re*Xe,Ee*Xe,-Re,Ee,-Re]],x+Ee,W,[1,1],Ue,!0),this},f.__private__.ellipse=f.ellipse=function(x,W,pe,ve,Ee){if(isNaN(x)||isNaN(W)||isNaN(pe)||isNaN(ve)||!Bi(Ee))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Re=4/3*(Math.SQRT2-1)*pe,Ue=4/3*(Math.SQRT2-1)*ve;return Ml(x+pe,W),ko(x+pe,W-Ue,x+Re,W-ve,x,W-ve),ko(x-Re,W-ve,x-pe,W-Ue,x-pe,W),ko(x-pe,W+Ue,x-Re,W+ve,x,W+ve),ko(x+Re,W+ve,x+pe,W+Ue,x+pe,W),Bl(Ee),this},f.__private__.circle=f.circle=function(x,W,pe,ve){if(isNaN(x)||isNaN(W)||isNaN(pe)||!Bi(ve))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(x,W,pe,pe,ve)},f.setFont=function(x,W,pe){return pe&&(W=re(W,pe)),at=Tc(x,W,{disableWarning:!1}),this};var Yd=f.__private__.getFont=f.getFont=function(){return xt[Tc.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var x,W,pe={};for(x in vt)if(vt.hasOwnProperty(x))for(W in pe[x]=[],vt[x])vt[x].hasOwnProperty(W)&&pe[x].push(W);return pe},f.addFont=function(x,W,pe,ve,Ee){var Re=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Re.indexOf(arguments[3])!==-1?Ee=arguments[3]:arguments[3]&&Re.indexOf(arguments[3])==-1&&(pe=re(pe,ve)),Ee=Ee||"Identity-H",Fl.call(this,x,W,pe,Ee)};var wa,zl=e.lineWidth||.200025,ls=f.__private__.getLineWidth=f.getLineWidth=function(){return zl},Fc=f.__private__.setLineWidth=f.setLineWidth=function(x){return zl=x,N($(R(x))+" w"),this};f.__private__.setLineDash=ot.API.setLineDash=ot.API.setLineDashPattern=function(x,W){if(x=x||[],W=W||0,isNaN(W)||!Array.isArray(x))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return x=x.map(function(pe){return $(R(pe))}).join(" "),W=$(R(W)),N("["+x+"] "+W+" d"),this};var Dc=f.__private__.getLineHeight=f.getLineHeight=function(){return Q*wa};f.__private__.getLineHeight=f.getLineHeight=function(){return Q*wa};var jc=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(x){return typeof(x=x||1.15)=="number"&&(wa=x),this},Bc=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return wa};jc(e.lineHeight);var Mi=f.__private__.getHorizontalCoordinate=function(x){return R(x)},io=f.__private__.getVerticalCoordinate=function(x){return _===y.ADVANCED?x:tt[B].mediaBox.topRightY-tt[B].mediaBox.bottomLeftY-R(x)},Jd=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(x){return $(Mi(x))},Lo=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(x){return $(io(x))},gi=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return di(gi)},f.__private__.setStrokeColor=f.setDrawColor=function(x,W,pe,ve){return gi=pi({ch1:x,ch2:W,ch3:pe,ch4:ve,pdfColorType:"draw",precision:2}),N(gi),this};var Ul=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return di(Ul)},f.__private__.setFillColor=f.setFillColor=function(x,W,pe,ve){return Ul=pi({ch1:x,ch2:W,ch3:pe,ch4:ve,pdfColorType:"fill",precision:2}),N(Ul),this};var ba=e.textColor||"0 g",Zd=f.__private__.getTextColor=f.getTextColor=function(){return di(ba)};f.__private__.setTextColor=f.setTextColor=function(x,W,pe,ve){return ba=pi({ch1:x,ch2:W,ch3:pe,ch4:ve,pdfColorType:"text",precision:3}),this};var us=e.charSpace,Qd=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(us||0)};f.__private__.setCharSpace=f.setCharSpace=function(x){if(isNaN(x))throw new Error("Invalid argument passed to 
284jsPDF.setCharSpace");return us=x,this};var ql=0;f.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},f.__private__.setLineCap=f.setLineCap=function(x){var W=f.CapJoinStyles[x];if(W===void 0)throw new Error("Line cap style of '"+x+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ql=W,N(W+" J"),this};var Wl=0;f.__private__.setLineJoin=f.setLineJoin=function(x){var W=f.CapJoinStyles[x];if(W===void 0)throw new Error("Line join style of '"+x+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wl=W,N(W+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(x){if(x=x||0,isNaN(x))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return N($(R(x))+" M"),this},f.GState=Wh,f.setGState=function(x){(x=typeof x=="string"?qt[Xr[x]]:Mc(null,x)).equals(kt)||(N("/"+x.id+" gs"),kt=x)};var Mc=function(x,W){if(!x||!Xr[x]){var pe=!1;for(var ve in qt)if(qt.hasOwnProperty(ve)&&qt[ve].equals(W)){pe=!0;break}if(pe)W=qt[ve];else{var Ee="GS"+(Object.keys(qt).length+1).toString(10);qt[Ee]=W,W.id=Ee}return x&&(Xr[x]=W.id),gt.publish("addGState",W),W}};f.addGState=function(x,W){return Mc(x,W),this},f.saveGraphicsState=function(){return N("q"),cn.push({key:at,size:Q,color:ba}),this},f.restoreGraphicsState=function(){N("Q");var x=cn.pop();return at=x.key,Q=x.size,ba=x.color,kt=null,this},f.setCurrentTransformationMatrix=function(x){return N(x.toString()+" cm"),this},f.comment=function(x){return N("#"+x),this};var cs=function(x,W){var pe=x||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return pe},set:function(Re){isNaN(Re)||(pe=parseFloat(Re))}});var ve=W||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ve},set:function(Re){isNaN(Re)||(ve=parseFloat(Re))}});var Ee="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ee},set:function(Re){Ee=Re.toString()}}),this},Hl=function(x,W,pe,ve){cs.call(this,x,W),this.type="rect";var Ee=pe||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ee},set:function(Ue){isNaN(Ue)||(Ee=parseFloat(Ue))}});var Re=ve||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Re},set:function(Ue){isNaN(Ue)||(Re=parseFloat(Ue))}}),this},Vl=function(){this.page=mt,this.currentPage=B,this.pages=U.slice(0),this.pagesContext=tt.slice(0),this.x=Xt,this.y=rt,this.matrix=Or,this.width=xa(B),this.height=Co(B),this.outputDestination=ge,this.id="",this.objectNumber=-1};Vl.prototype.restore=function(){mt=this.page,B=this.currentPage,tt=this.pagesContext,U=this.pages,Xt=this.x,rt=this.y,Or=this.matrix,$l(B,this.width),Gl(B,this.height),ge=this.outputDestination};var zc=function(x,W,pe,ve,Ee){qr.push(new Vl),mt=B=0,U=[],Xt=x,rt=W,Or=Ee,Dl([pe,ve])},ep=function(x){if(hr[x])qr.pop().restore();else{var W=new Vl,pe="Xo"+(Object.keys(Lt).length+1).toString(10);W.id=pe,hr[x]=pe,Lt[pe]=W,gt.publish("addFormObject",W),qr.pop().restore()}};for(var fs in f.beginFormObject=function(x,W,pe,ve,Ee){return zc(x,W,pe,ve,Ee),this},f.endFormObject=function(x){return ep(x),this},f.doFormObject=function(x,W){var pe=Lt[hr[x]];return N("q"),N(W.toString()+" cm"),N("/"+pe.id+" Do"),N("Q"),this},f.getFormObject=function(x){var W=Lt[hr[x]];return{x:W.x,y:W.y,width:W.width,height:W.height,matrix:W.matrix}},f.save=function(x,W){return x=x||"generated.pdf",(W=W||{}).returnPromise=W.returnPromise||!1,W.returnPromise===!1?(Ia(os(no()),x),typeof Ia.unload=="function"&&st.setTimeout&&setTimeout(Ia.unload,911),this):new Promise(function(pe,ve){try{var Ee=Ia(os(no()),x);typeof Ia.unload=="function"&&st.setTimeout&&setTimeout(Ia.unload,911),pe(Ee)}catch(Re){ve(Re.message)}})},ot.API)ot.API.hasOwnProperty(fs)&&(fs==="events"&&ot.API.events.length?function(x,W){var pe,ve,Ee;for(Ee=W.length-1;Ee!==-1;Ee--)pe=W[Ee][0],ve=W[Ee][1],x.subscribe.apply(x,[pe].concat(typeof ve=="function"?[ve]:ve))}(gt,ot.API.events):f[fs]=ot.API[fs]);var xa=f.getPageWidth=function(x){return(tt[x=x||B].mediaBox.topRightX-tt[x].mediaBox.bottomLeftX)/Ve},$l=f.setPageWidth=function(x,W){tt[x].mediaBox.topRightX=W*Ve+tt[x].mediaBox.bottomLeftX},Co=f.getPageHeight=function(x){return(tt[x=x||B].mediaBox.topRightY-tt[x].mediaBox.bottomLeftY)/Ve},Gl=f.setPageHeight=function(x,W){tt[x].mediaBox.topRightY=W*Ve+tt[x].mediaBox.bottomLeftY};return f.internal={pdfEscape:vn,getStyle:Rc,getFont:Yd,getFontSize:ie,getCharSpace:Qd,getTextColor:Zd,getLineHeight:Dc,getLineHeightFactor:Bc,getLineWidth:ls,write:w,getHorizontalCoordinate:Mi,getVerticalCoordinate:io,getCoordinateString:Jd,getVerticalCoordinateString:Lo,collections:{},newObject:Yt,newAdditionalObject:Gn,newObjectDeferred:Wt,newObjectDeferredBegin:ar,getFilters:Di,putStream:Kn,events:gt,scaleFactor:Ve,pageSize:{getWidth:function(){return xa(B)},setWidth:function(x){$l(B,x)},getHeight:function(){return Co(B)},setHeight:function(x){Gl(B,x)}},encryptionOptions:h,encryption:Yr,getEncryptor:Hd,output:as,getNumberOfPages:Md,pages:U,out:N,f2
vendor: 4,400 bytes, lines 284-286
284:he,f3:H,getPageInfo:Ic,getPageInfoByObjId:ct,getCurrentPageInfo:Vd,getPDFVersion:v,Point:cs,Rectangle:Hl,Matrix:Ze,hasHotfix:Pc},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return xa(B)},set:function(x){$l(B,x)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Co(B)},set:function(x){Gl(B,x)},enumerable:!0,configurable:!0}),jd.call(f,P),at="F1",Lc(i,r),gt.publish("initialized"),f}Os.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Os.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Os.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Os.prototype.processOwnerPassword=function(e,t){return i0(n0(t).substr(0,5),e)},Os.prototype.encryptor=function(e,t){var r=n0(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return i0(r,n)}},Wh.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||Ot(e)!==Ot(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},ot.API={events:[]},ot.version="2.5.2";var ur=ot.API,Ng=1,Xa=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ls=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ht=function(e){return e.toFixed(2)},Wo=function(e){return e.toFixed(5)};ur.__acroform__={};var Rn=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},t5=function(e){return e*Ng},Wi=function(e){var t=new Ix,r=et.internal.getHeight(e)||0,n=et.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ht(n)),Number(ht(r))],t},VE=ur.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},$E=ur.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},GE=ur.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},wr=ur.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return GE(e,t-1)},br=ur.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return VE(e,t-1)},xr=ur.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return $E(e,t-1)},KE=ur.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],o=e[1],a=e[2],s=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(o+s)||0,l.upperRight_X=r(i+a)||0,l.upperRight_Y=n(o)||0,[Number(ht(l.lowerLeft_X)),Number(ht(l.lowerLeft_Y)),Number(ht(l.upperRight_X)),Number(ht(l.upperRight_Y))]},XE=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=o0(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+ht(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=Wi(e);return o.scope=e.scope,o.stream=t.join(`
285`),o}},o0=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(H){return H.split(`
286`)}):i.map(function(H){return[H]});var o=r,a=et.internal.getHeight(e)||0;a=a<0?-a:a;var s=et.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(H,R,X){if(H+1<i.length){var T=R+" "+i[H+1][0];return Ff(T,e,X).width<=s-4}return!1};o++;e:for(;o>0;){t="",o--;var c,h,p=Ff("3",e,o).height,g=e.multiline?a-o:(a-p)/2,f=g+=2,S=0,v=0,k=0;if(o<=0){t=`(...) Tj
287`,t+="% Width of Text: "+Ff(t,e,o=12).width+", FieldWidth:"+s+`
288`;break}for(var d="",y=0,_=0;_<i.length;_++)if(i.hasOwnProperty(_)){var F=!1;if(i[_].length!==1&&k!==i[_].length-1){if((p+2)*(y+2)+2>a)continue e;d+=i[_][k],F=!0,v=_,_--}else{d=(d+=i[_][k]+" ").substr(d.length-1)==" "?d.substr(0,d.length-1):d;var j=parseInt(_),re=l(j,d,o),$=_>=i.length-1;if(re&&!$){d+=" ",k=0;continue}if(re||$){if($)v=j;else if(e.multiline&&(p+2)*(y+2)+2>a)continue e}else{if(!e.multiline||(p+2)*(y+2)+2>a)continue e;v=j}}for(var M="",D=S;D<=v;D++){var he=i[D];if(e.multiline){if(D===v){M+=he[k]+" ",k=(k+1)%he.length;continue}if(D===S){M+=he[he.length-1]+" ";continue}}M+=he[0]+" "}switch(M=M.substr(M.length-1)==" "?M.substr(0,M.length-1):M,h=Ff(M,e,o).width,e.textAlign){case"right":c=s-h-2;break;case"center":c=(s-h)/2;break;case"left":default:c=2}t+=ht(c)+" "+ht(f)+` Td
289`,t+="("+Xa(M)+`) Tj
290`,t+=-ht(c)+` 0 Td
291`,f=-(o+2),h=0,S=F?v:v+1,y++,d=""}break}return n.text=t,n.fontSize=o,n},Ff=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},YE={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},JE=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},ZE=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,i=e[r];t.internal.newObjectDeferredBegin(i.objId,!0),Ot(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},QE=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Oi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(YE)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ng=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Rx,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i];o.objId=void 0,o.hasAnnotation&&JE(o,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,i){var o=!n;for(var a 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(a)){var s=n[a],l=[],c=s.Rect;if(s.Rect&&(s.Rect=KE(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=et.createDefaultAppearanceStream(s),Ot(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var h=XE(s);l.push({key:"AP",value:"<</N "+h+">>"}),i.internal.acroformPlugin.xForms.push(h)}if(s.appearanceStreamContent){var p="";for(var g in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(g)){var f=s.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var a in f)if(f.hasOwnProperty(a)){var S=f[a];typeof S=="function"&&(S=S.call(i,s)),p+="/"+a+" "+S+" ",i.internal.acroformPlugin.xForms.indexOf(S)>=0||i.internal.acroformPlugin.xForms.push(S)}}else typeof(S=f)=="function"&&(S=S.call(i,s)),p+="/"+a+" "+S,i.internal.acroformPlugin.xForms.indexOf(S)>=0||i.internal.acroformPlugin.xForms.push(S);p+=">>"}l.push({key:"AP",value:`<<
292`+p+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}o&&ZE(i.internal.acroformPlugin.xForms,i)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},Px=ur.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(a){return a};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(o!==0&&(i+=" "),Ot(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":e[o].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+Xa(n(e[o].toString()))+")"):i+=e[o].toString()}return i+="]"}
vendor: 21,631 bytes, lines 292-303
292throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},nm=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),e="("+Xa(n(e))+")"},Yi=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})};Yi.prototype.toString=function(){return this.objId+" 0 R"},Yi.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Yi.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:Px(i,this.objId,this.scope)}):i instanceof Yi?(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 Ix=function(){Yi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};Rn(Ix,Yi);var Rx=function(){Yi.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Xa(r(e))+")"}},set:function(r){e=r}})};Rn(Rx,Yi);var Oi=function e(){Yi.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(d){if(isNaN(d))throw new Error('Invalid value "'+d+'" for attribute F supplied.');t=d}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!wr(t,3)},set:function(d){d?this.F=br(t,3):this.F=xr(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(d){if(isNaN(d))throw new Error('Invalid value "'+d+'" for attribute Ff supplied.');r=d}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(d){n=d!==void 0?d:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(d){n[0]=d}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(d){n[1]=d}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(d){n[2]=d}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(d){n[3]=d}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(d){switch(d){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=d;break;default:throw new Error('Invalid value "'+d+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof Hh)return;o="FieldObject"+e.FieldNum++}var d=function(y){return y};return this.scope&&(d=this.scope.internal.getEncryptor(this.objId)),"("+Xa(d(o))+")"},set:function(d){o=d.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(d){o=d}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(d){a=d}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(d){s=d}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(d){l=d}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Ng:c},set:function(d){c=d}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(d){h=d}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof Hh||this instanceof Ua))return nm(p,this.objId,this.scope)},set:function(d){d=d.toString(),p=d}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof zr?g:nm(g,this.objId,this.scope)},set:function(d){d=d.toString(),g=this instanceof zr?d:d.substr(0,1)==="("?Ls(d.substr(1,d.length-2)):Ls(d)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof zr?Ls(g.substr(1,g.length-1)):g},set:function(d){d=d.toString(),g=this instanceof zr?"/"+d:d}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(d){this.V=d}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof zr?f:nm(f,this.objId,this.scope)},set:function(d){d=d.toString(),f=this instanceof zr?d:d.substr(0,1)==="("?Ls(d.substr(1,d.length-2)):Ls(d)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof zr?Ls(f.substr(1,f.length-1)):f},set:function(d){d=d.toString(),f=this instanceof zr?"/"+d:d}}),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 S,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(d){d=!!d,v=d}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(S)return S},set:function(d){S=d}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,1)},set:function(d){d?this.Ff=br(this.Ff,1):this.Ff=xr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,2)},set:function(d){d?this.Ff=br(this.Ff,2):this.Ff=xr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,3)},set:function(d){d?this.Ff=br(this.Ff,3):this.Ff=xr(this.Ff,3)}});var k=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(k!==null)return k},set:function(d){if([0,1,2].indexOf(d)===-1)throw new Error('Invalid value "'+d+'" for attribute Q supplied.');k=d}}),Object.defineProperty(this,"textAlign",{get:function(){var d;switch(k){case 0:default:d="left";break;case 1:d="center";break;case 2:d="right"}return d},configurable:!0,enumerable:!0,set:function(d){switch(d){case"right":case 2:k=2;break;case"center":case 1:k=1;break;case"left":case 0:default:k=0}}})};Rn(Oi,Yi);var il=function(){Oi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Px(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=function(o,a,s){s||(s=1);for(var l,c=[];l=a.exec(o);)c.push(l[s]);return c}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,18)},set:function(r){r?this.Ff=br(this.Ff,18):this.Ff=xr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=br(this.Ff,19):this.Ff=xr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,20)},set:function(r){r?(this.Ff=br(this.Ff,20),t.sort()):this.Ff=xr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,22)},set:function(r){r?this.Ff=br(this.Ff,22):this.Ff=xr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,23)},set:function(r){r?this.Ff=br(this.Ff,23):this.Ff=xr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,27)},set:function(r){r?this.Ff=br(this.Ff,27):this.Ff=xr(this.Ff,27)}}),this.hasAppearanceStream=!1};Rn(il,Oi);var ol=function(){il.call(this),this.fontName="helvetica",this.combo=!1};Rn(ol,il);var al=function(){ol.call(this),this.combo=!0};Rn(al,ol);var lh=function(){al.call(this),this.edit=!0};Rn(lh,al);var zr=function(){Oi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,15)},set:function(r){r?this.Ff=br(this.Ff,15):this.Ff=xr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,16)},set:function(r){r?this.Ff=br(this.Ff,16):this.Ff=xr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,17)},set:function(r){r?this.Ff=br(this.Ff,17):this.Ff=xr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,26)},set:function(r){r?this.Ff=br(this.Ff,26):this.Ff=xr(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+Xa(r(t[n]))+")");return i.push(">>"),i.join(`
293`)}},set:function(r){Ot(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};Rn(zr,Oi);var uh=function(){zr.call(this),this.pushButton=!0};Rn(uh,zr);var sl=function(){zr.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Rn(sl,zr);var Hh=function(){var e,t;Oi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var o,a=[];for(o in a.push("<<"),n)a.push("/"+o+" ("+Xa(i(n[o]))+")");return a.push(">>"),a.join(`
294`)},set:function(i){Ot(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Rn(Hh,Oi),sl.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},sl.prototype.createOption=function(e){var t=new Hh;return t.Parent=this,t.optionName=e,this.Kids.push(t),eN.call(this.scope,t),t};var ch=function(){zr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=et.CheckBox.createAppearanceStream()};Rn(ch,zr);var Ua=function(){Oi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,13)},set:function(t){t?this.Ff=br(this.Ff,13):this.Ff=xr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,21)},set:function(t){t?this.Ff=br(this.Ff,21):this.Ff=xr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,23)},set:function(t){t?this.Ff=br(this.Ff,23):this.Ff=xr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,24)},set:function(t){t?this.Ff=br(this.Ff,24):this.Ff=xr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,25)},set:function(t){t?this.Ff=br(this.Ff,25):this.Ff=xr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,26)},set:function(t){t?this.Ff=br(this.Ff,26):this.Ff=xr(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Rn(Ua,Oi);var fh=function(){Ua.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!wr(this.Ff,14)},set:function(e){e?this.Ff=br(this.Ff,14):this.Ff=xr(this.Ff,14)}}),this.password=!0};Rn(fh,Ua);var et={CheckBox:{createAppearanceStream:function(){return{N:{On:et.CheckBox.YesNormal},D:{On:et.CheckBox.YesPushDown,Off:et.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Wi(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=o0(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+ht(et.internal.getWidth(e))+" "+ht(et.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+ht(o.fontSize)+" Tf "+i),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
295`),t},YesNormal:function(e){var t=Wi(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],o=et.internal.getHeight(e),a=et.internal.getWidth(e),s=o0(e,e.caption);return i.push("1 g"),i.push("0 0 "+ht(a)+" "+ht(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ht(a-1)+" "+ht(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+ht(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
296`),t},OffPushDown:function(e){var t=Wi(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+ht(et.internal.getWidth(e))+" "+ht(et.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
297`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:et.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=et.RadioButton.Circle.YesNormal,t.D[e]=et.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Wi(e);t.scope=e.scope;var r=[],n=et.internal.getWidth(e)<=et.internal.getHeight(e)?et.internal.getWidth(e)/4:et.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=et.internal.Bezier_C,o=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Wo(et.internal.getWidth(e)/2)+" "+Wo(et.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
298`),t},YesPushDown:function(e){var t=Wi(e);t.scope=e.scope;var r=[],n=et.internal.getWidth(e)<=et.internal.getHeight(e)?et.internal.getWidth(e)/4:et.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*et.internal.Bezier_C).toFixed(5)),a=Number((n*et.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Wo(et.internal.getWidth(e)/2)+" "+Wo(et.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Wo(et.internal.getWidth(e)/2)+" "+Wo(et.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
299`),t},OffPushDown:function(e){var t=Wi(e);t.scope=e.scope;var r=[],n=et.internal.getWidth(e)<=et.internal.getHeight(e)?et.internal.getWidth(e)/4:et.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*et.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Wo(et.internal.getWidth(e)/2)+" "+Wo(et.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
300`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:et.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=et.RadioButton.Cross.YesNormal,t.D[e]=et.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Wi(e);t.scope=e.scope;var r=[],n=et.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+ht(et.internal.getWidth(e)-2)+" "+ht(et.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ht(n.x1.x)+" "+ht(n.x1.y)+" m"),r.push(ht(n.x2.x)+" "+ht(n.x2.y)+" l"),r.push(ht(n.x4.x)+" "+ht(n.x4.y)+" m"),r.push(ht(n.x3.x)+" "+ht(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
301`),t},YesPushDown:function(e){var t=Wi(e);t.scope=e.scope;var r=et.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+ht(et.internal.getWidth(e))+" "+ht(et.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+ht(et.internal.getWidth(e)-2)+" "+ht(et.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ht(r.x1.x)+" "+ht(r.x1.y)+" m"),n.push(ht(r.x2.x)+" "+ht(r.x2.y)+" l"),n.push(ht(r.x4.x)+" "+ht(r.x4.y)+" m"),n.push(ht(r.x3.x)+" "+ht(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
302`),t},OffPushDown:function(e){var t=Wi(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+ht(et.internal.getWidth(e))+" "+ht(et.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
303`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};et.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=et.internal.getWidth(e),r=et.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},et.internal.getWidth=function(e){var t=0;return Ot(e)==="object"&&(t=t5(e.Rect[2])),t},et.internal.getHeight=function(e){var t=0;return Ot(e)==="object"&&(t=t5(e.Rect[3])),t};var eN=ur.addField=function(e){if(QE(this,e),!(e instanceof Oi))throw new Error("Invalid argument passed to 
303jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};ur.AcroFormChoiceField=il,ur.AcroFormListBox=ol,ur.AcroFormComboBox=al,ur.AcroFormEditBox=lh,ur.AcroFormButton=zr,ur.AcroFormPushButton=uh,ur.AcroFormRadioButton=sl,ur.AcroFormCheckBox=ch,ur.AcroFormTextField=Ua,ur.AcroFormPasswordField=fh,ur.AcroFormAppearance=et,ur.AcroForm={ChoiceField:il,ListBox:ol,ComboBox:al,EditBox:lh,Button:zr,PushButton:uh,RadioButton:sl,CheckBox:ch,TextField:Ua,PasswordField:fh,Appearance:et},ot.AcroForm={ChoiceField:il,ListBox:ol,ComboBox:al,EditBox:lh,Button:zr,PushButton:uh,RadioButton:sl,CheckBox:ch,TextField:Ua,PasswordField:fh,Appearance:et};ot.AcroForm;function Ox(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(H,R){var X,T,se,ye,ae,ue=t;if((R=R||t)==="RGBA"||H.data!==void 0&&H.data instanceof Uint8ClampedArray&&"height"in H&&"width"in H)return"RGBA";if(re(H))for(ae in r)for(se=r[ae],X=0;X<se.length;X+=1){for(ye=!0,T=0;T<se[X].length;T+=1)if(se[X][T]!==void 0&&se[X][T]!==H[T]){ye=!1;break}if(ye===!0){ue=ae;break}}else for(ae in r)for(se=r[ae],X=0;X<se.length;X+=1){for(ye=!0,T=0;T<se[X].length;
vendor: 39,376 bytes, line 303
303T+=1)if(se[X][T]!==void 0&&se[X][T]!==H.charCodeAt(T)){ye=!1;break}if(ye===!0){ue=ae;break}}return ue===t&&R!==t&&(ue=R),ue},i=function H(R){for(var X=this.internal.write,T=this.internal.putStream,se=(0,this.internal.getFilters)();se.indexOf("FlateEncode")!==-1;)se.splice(se.indexOf("FlateEncode"),1);R.objectId=this.internal.newObject();var ye=[];if(ye.push({key:"Type",value:"/XObject"}),ye.push({key:"Subtype",value:"/Image"}),ye.push({key:"Width",value:R.width}),ye.push({key:"Height",value:R.height}),R.colorSpace===k.INDEXED?ye.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(R.palette.length/3-1)+" "+("sMask"in R&&R.sMask!==void 0?R.objectId+2:R.objectId+1)+" 0 R]"}):(ye.push({key:"ColorSpace",value:"/"+R.colorSpace}),R.colorSpace===k.DEVICE_CMYK&&ye.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ye.push({key:"BitsPerComponent",value:R.bitsPerComponent}),"decodeParameters"in R&&R.decodeParameters!==void 0&&ye.push({key:"DecodeParms",value:"<<"+R.decodeParameters+">>"}),"transparency"in R&&Array.isArray(R.transparency)){for(var ae="",ue=0,oe=R.transparency.length;ue<oe;ue++)ae+=R.transparency[ue]+" "+R.transparency[ue]+" ";ye.push({key:"Mask",value:"["+ae+"]"})}R.sMask!==void 0&&ye.push({key:"SMask",value:R.objectId+1+" 0 R"});var me=R.filter!==void 0?["/"+R.filter]:void 0;if(T({data:R.data,additionalKeyValues:ye,alreadyAppliedFilters:me,objectId:R.objectId}),X("endobj"),"sMask"in R&&R.sMask!==void 0){var de="/Predictor "+R.predictor+" /Colors 1 /BitsPerComponent "+R.bitsPerComponent+" /Columns "+R.width,A={width:R.width,height:R.height,colorSpace:"DeviceGray",bitsPerComponent:R.bitsPerComponent,decodeParameters:de,data:R.sMask};"filter"in R&&(A.filter=R.filter),H.call(this,A)}if(R.colorSpace===k.INDEXED){var B=this.internal.newObject();T({data:M(new Uint8Array(R.palette)),objectId:B}),X("endobj")}},o=function(){var H=this.internal.collections.addImage_images;for(var R in H)i.call(this,H[R])},a=function(){var H,R=this.internal.collections.addImage_images,X=this.internal.write;for(var T in R)X("/I"+(H=R[T]).index,H.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},l=function(){var H=this.internal.collections.addImage_images;return s.call(this),H},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(H){return typeof e["process"+H.toUpperCase()]=="function"},p=function(H){return Ot(H)==="object"&&H.nodeType===1},g=function(H,R){if(H.nodeName==="IMG"&&H.hasAttribute("src")){var X=""+H.getAttribute("src");if(X.indexOf("data:image/")===0)return Uu(unescape(X).split("base64,").pop());var T=e.loadFile(X,!0);if(T!==void 0)return T}if(H.nodeName==="CANVAS"){if(H.width===0||H.height===0)throw new Error("Given canvas must have data. Canvas width: "+H.width+", height: "+H.height);var se;switch(R){case"PNG":se="image/png";break;case"WEBP":se="image/webp";break;case"JPEG":case"JPG":default:se="image/jpeg"}return Uu(H.toDataURL(se,1).split("base64,").pop())}},f=function(H){var R=this.internal.collections.addImage_images;if(R){for(var X in R)if(H===R[X].alias)return R[X]}},S=function(H,R,X){return H||R||(H=-96,R=-96),H<0&&(H=-1*X.width*72/H/this.internal.scaleFactor),R<0&&(R=-1*X.height*72/R/this.internal.scaleFactor),H===0&&(H=R*X.width/X.height),R===0&&(R=H*X.height/X.width),[H,R]},v=function(H,R,X,T,se,ye){var ae=S.call(this,X,T,se),ue=this.internal.getCoordinateString,oe=this.internal.getVerticalCoordinateString,me=l.call(this);if(X=ae[0],T=ae[1],me[se.index]=se,ye){ye*=Math.PI/180;var de=Math.cos(ye),A=Math.sin(ye),B=function(ee){return ee.toFixed(4)},z=[B(de),B(A),B(-1*A),B(de),0,0,"cm"]}this.internal.write("q"),ye?(this.internal.write([1,"0","0",1,ue(H),oe(R+T),"cm"].join(" ")),this.internal.write(z.join(" ")),this.internal.write([ue(X),"0","0",ue(T),"0","0","cm"].join(" "))):this.internal.write([ue(X),"0","0",ue(T),ue(H),oe(R+T),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+se.index+" Do"),this.internal.write("Q")},k=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 d=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=e.__addimage__.sHashCode=function(H){var R,X,T=0;if(typeof H=="string")for(X=H.length,R=0;R<X;R++)T=(T<<5)-T+H.charCodeAt(R),T|=0;else if(re(H))for(X=H.byteLength/2,R=0;R<X;R++)T=(T<<5)-T+H[R],T|=0;return T},_=e.__addimage__.validateStringAsBase64=function(H){(H=H||"").toString().trim();var R=!0;return H.length===0&&(R=!1),H.length%4!=0&&(R=!1),/^[A-Za-z0-9+/]+$/.test(H.substr(0,H.length-2))===!1&&(R=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(H.substr(-2))===!1&&(R=!1),R},F=e.__addimage__.extractImageFromDataUrl=function(H){var R=(H=H||"").split("base64,"),X=null;if(R.length===2){var T=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(R[0]);Array.isArray(T)&&(X={mimeType:T[1],charset:T[2],data:R[1]})}return X},j=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(H){return j()&&H instanceof ArrayBuffer};var re=e.__addimage__.isArrayBufferView=function(H){return j()&&typeof Uint32Array<"u"&&(H instanceof Int8Array||H instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&H instanceof Uint8ClampedArray||H instanceof Int16Array||H instanceof Uint16Array||H instanceof Int32Array||H instanceof Uint32Array||H instanceof Float32Array||H instanceof Float64Array)},$=e.__addimage__.binaryStringToUint8Array=function(H){for(var R=H.length,X=new Uint8Array(R),T=0;T<R;T++)X[T]=H.charCodeAt(T);return X},M=e.__addimage__.arrayBufferToBinaryString=function(H){for(var R="",X=re(H)?H:new Uint8Array(H),T=0;T<X.length;T+=8192)R+=String.fromCharCode.apply(null,X.subarray(T,T+8192));return R};e.addImage=function(){var H,R,X,T,se,ye,ae,ue,oe;if(typeof arguments[1]=="number"?(R=t,X=arguments[1],T=arguments[2],se=arguments[3],ye=arguments[4],ae=arguments[5],ue=arguments[6],oe=arguments[7]):(R=arguments[1],X=arguments[2],T=arguments[3],se=arguments[4],ye=arguments[5],ae=arguments[6],ue=arguments[7],oe=arguments[8]),Ot(H=arguments[0])==="object"&&!p(H)&&"imageData"in H){var me=H;H=me.imageData,R=me.format||R||t,X=me.x||X||0,T=me.y||T||0,se=me.w||me.width||se,ye=me.h||me.height||ye,ae=me.alias||ae,ue=me.compression||ue,oe=me.rotation||me.angle||oe}var de=this.internal.getFilters();if(ue===void 0&&de.indexOf("FlateEncode")!==-1&&(ue="SLOW"),isNaN(X)||isNaN(T))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var A=D.call(this,H,R,ae,ue);return v.call(this,X,T,se,ye,A,oe),this};var D=function(H,R,X,T){var se,ye,ae;if(typeof H=="string"&&n(H)===t){H=unescape(H);var ue=he(H,!1);(ue!==""||(ue=e.loadFile(H,!0))!==void 0)&&(H=ue)}if(p(H)&&(H=g(H,R)),R=n(H,R),!h(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(((ae=X)==null||ae.length===0)&&(X=function(oe){return typeof oe=="string"||re(oe)?y(oe):re(oe.data)?y(oe.data):null}(H)),(se=f.call(this,X))||(j()&&(H instanceof Uint8Array||R==="RGBA"||(ye=H,H=$(H))),se=this["process"+R.toUpperCase()](H,c.call(this),X,function(oe){return oe&&typeof oe=="string"&&(oe=oe.toUpperCase()),oe in e.image_compression?oe:d.NONE}(T),ye)),!se)throw new Error("An unknown error occurred whilst processing the image.");return se},he=e.__addimage__.convertBase64ToBinaryString=function(H,R){var X;R=typeof R!="boolean"||R;var T,se="";if(typeof H=="string"){T=(X=F(H))!==null?X.data:H;try{se=Uu(T)}catch(ye){if(R)throw _(T)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ye.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return se};e.getImageProperties=function(H){var R,X,T="";if(p(H)&&(H=g(H)),typeof H=="string"&&n(H)===t&&((T=he(H,!1))===""&&(T=e.loadFile(H)||""),H=T),X=n(H),!h(X))throw new Error("addImage does not support files of type '"+X+"', please ensure that a plugin for '"+X+"' support is added.");if(!j()||H instanceof Uint8Array||(H=$(H)),!(R=this["process"+X.toUpperCase()](H)))throw new Error("An unknown error occurred whilst processing the image");return R.fileType=X,R}})(ot.API),function(e){var t=function(r){if(r!==void 0&&r!="")return!0};ot.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,o,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,h=!1,p=0;p<c.length&&!h;p++)switch((n=c[p]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var g=0;g<c.length;g++){n=c[g];var f=this.internal.pdfEscape,S=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),k=this.internal.newAdditionalObject(),d=this.internal.getEncryptor(v.objId),y=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+a(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+f(d(n.contents))+")",o+=" /Popup "+k.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+f(d(y))+") >>",v.content=o;var _=v.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+a(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+_,n.open&&(o+=" /Open true"),o+=" >>",k.content=o,this.internal.write(v.objId,"0 R",k.objId,"0 R");break;case"freetext":i="/Rect ["+a(n.bounds.x)+" "+s(n.bounds.y)+" "+a(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var F=n.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+f(S(n.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+F+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var j=this.annotations._nameMap[n.options.name];n.options.pageNumber=j.page,n.options.top=j.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+f(S(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</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":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var re=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+re+" "+n.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,o,a){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+i),h:c(n+o)},options:a,type:"link"})},e.textWithLink=function(r,n,i,o){var a,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){s=o.maxWidth;var h=this.splitTextToSize(r,s).length;a=Math.ceil(c*h)}else s=l,a=c;return this.text(r,n,i,o),i+=.2*c,o.align==="center"&&(n-=l/2),o.align==="right"&&(n-=l),this.link(n,i-c,s,a,o),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(ot.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(v){return t[v.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},s=e.__arabicParser__.isArabicEndLetter=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(v){return a(v)&&i.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length>=3};var h=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(v){var k=0,d=r,y="",_=0;for(k=0;k<v.length;k+=1)d[v.charCodeAt(k)]!==void 0?(_++,typeof(d=d[v.charCodeAt(k)])=="number"&&(y+=String.fromCharCode(d),d=r,_=0),k===v.length-1&&(d=r,y+=v.charAt(k-(_-1)),k-=_-1,_=0)):(d=r,y+=v.charAt(k-_),k-=_,_=0);return y};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&n[v.charCodeAt(0)]!==void 0};var g=e.__arabicParser__.getCorrectForm=function(v,k,d){return a(v)?o(v)===!1?-1:!c(v)||!a(k)&&!a(d)||!a(d)&&s(k)||s(v)&&!a(k)||s(v)&&l(k)||s(v)&&s(k)?0:h(v)&&a(k)&&!s(k)&&a(d)&&c(d)?3:s(v)||!a(d)?1:2:-1},f=function(v){var k=0,d=0,y=0,_="",F="",j="",re=(v=v||"").split("\\s+"),$=[];for(k=0;k<re.length;k+=1){for($.push(""),d=0;d<re[k].length;d+=1)_=re[k][d],F=re[k][d-1],j=re[k][d+1],a(_)?(y=g(_,F,j),$[k]+=y!==-1?String.fromCharCode(t[_.charCodeAt(0)][y]):_):$[k]+=_;$[k]=p($[k])}return $.join(" ")},S=e.__arabicParser__.processArabic=e.processArabic=function(){var v,k=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,d=[];if(Array.isArray(k)){var y=0;for(d=[],y=0;y<k.length;y+=1)Array.isArray(k[y])?d.push([f(k[y][0]),k[y][1],k[y][2]]):d.push([f(k[y])]);v=d}else v=f(k);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",S])}(ot.API),ot.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(s){o=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(ot.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(v){h=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 f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var S=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return S},set:function(v){S=v}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var h=(c=c||{}).fontSize||this.getFontSize(),p=c.font||this.getFont(),g=c.scaleFactor||this.internal.scaleFactor,f=0,S=0,v=0,k=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var d=c.maxWidth;d>0?typeof l=="string"?l=this.splitTextToSize(l,d):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(_,F){return _.concat(k.splitTextToSize(F,d))},[])):l=Array.isArray(l)?l:[l];for(var y=0;y<l.length;y++)f<(v=this.getStringUnitWidth(l[y],{font:p})*h)&&(f=v);return f!==0&&(S=l.length),{w:f/=g,h:Math.max((S*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/g,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var l;l=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var c=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,p=this.internal.__cell__.margins||t,g=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,f&&g&&(this.printHeaderRow(l.lineNumber,!0),l.y+=g[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-h,l.y+h,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+h,{align:"center",baseline:"top",maxWidth:l.width-h-h}):this.text(l.text,l.x+h,l.y+h,{align:"left",baseline:"top",maxWidth:l.width-h-h})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,h,p,g){if(n.call(this),!h)throw new Error("No data for PDF table.");var f,S,v,k,d=[],y=[],_=[],F={},j={},re=[],$=[],M=(g=g||{}).autoSize||!1,D=g.printHeaders!==!1,he=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,H=g.margins||Object.assign({width:this.getPageWidth()},t),R=typeof g.padding=="number"?g.padding:3,X=g.headerBackgroundColor||"#c8c8c8",T=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=D,this.internal.__cell__.margins=H,this.internal.__cell__.table_font_size=he,this.internal.__cell__.padding=R,this.internal.__cell__.headerBackgroundColor=X,this.internal.__cell__.headerTextColor=T,this.setFontSize(he),p==null)y=d=Object.keys(h[0]),_=d.map(function(){return"left"});else if(Array.isArray(p)&&Ot(p[0])==="object")for(d=p.map(function(me){return me.name}),y=p.map(function(me){return me.prompt||me.name||""}),_=p.map(function(me){return me.align||"left"}),f=0;f<p.length;f+=1)j[p[f].name]=p[f].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(y=d=p,_=d.map(function(){return"left"}));if(M||Array.isArray(p)&&typeof p[0]=="string")for(f=0;f<d.length;f+=1){for(F[k=d[f]]=h.map(function(me){return me[k]}),this.setFont(void 0,"bold"),re.push(this.getTextDimensions(y[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),S=F[k],this.setFont(void 0,"normal"),v=0;v<S.length;v+=1)re.push(this.getTextDimensions(S[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);j[k]=Math.max.apply(null,re)+R+R,re=[]}if(D){var se={};for(f=0;f<d.length;f+=1)se[d[f]]={},se[d[f]].text=y[f],se[d[f]].align=_[f];var ye=s.call(this,se,j);$=d.map(function(me){return new o(l,c,j[me],ye,se[me].text,void 0,se[me].align)}),this.setTableHeaderRow($),this.printHeaderRow(1,!1)}var ae=p.reduce(function(me,de){return me[de.name]=de.align,me},{});for(f=0;f<h.length;f+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:f,data:h[f]},this);var ue=s.call(this,h[f],j);for(v=0;v<d.length;v+=1){var oe=h[f][d[v]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:f,col:v,data:oe},this),a.call(this,new o(l,c,j[d[v]],ue,oe,f+2,ae[d[v]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var h=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(l).map(function(f){var S=l[f];return this.splitTextToSize(S.hasOwnProperty("text")?S.text:S,c[f]-h-h)},this).map(function(f){return this.getLineHeightFactor()*f.length*p/g+h+h},this).reduce(function(f,S){return Math.max(f,S)},0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){h=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(h.y=this.internal.__cell__.margins.top||0,g.push(h)),h.lineNumber=l;var S=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,h),this.setTextColor(S)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),r=!1}}(ot.API);var Fx={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Dx=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],a0=Ox(Dx),jx=[100,200,300,400,500,600,700,800,900],tN=Ox(jx);function s0(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(o){return Fx[o=o||"normal"]?o:"normal"}(e.style),n=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(e.weight),i=function(o){return typeof a0[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function r5(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var rN={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},n5={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function i5(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function nN(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},rN,r.genericFontFamilies||{}),o=null,a=null,s=0;s<t.length;++s)if(i[(o=s0(t[s])).family]&&(o.family=i[o.family]),e.hasOwnProperty(o.family)){a=e[o.family];break}if(!(a=a||e[n]))throw new Error("Could not find a font-family for the rule '"+i5(o)+"' and default family '"+n+"'.");if(a=function(l,c){if(c[l])return c[l];var h=a0[l],p=h<=a0.normal?-1:1,g=r5(c,Dx,h,p);if(!g)throw new Error("Could not find a matching font-stretch value for "+l);return g}(o.stretch,a),a=function(l,c){if(c[l])return c[l];for(var h=Fx[l],p=0;p<h.length;++p)if(c[h[p]])return c[h[p]];throw new Error("Could not find a matching font-style for "+l)}(o.style,a),!(a=function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var h=tN[l],p=r5(c,jx,h,l<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+l);return p}(o.weight,a)))throw new Error("Failed to resolve a font for the rule '"+i5(o)+"'.");return a}function o5(e){return e.trimLeft()}function iN(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function oN(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Df,a5,s5,im=["times"];(function(e){var t,r,n,i,o,a,s,l,c,h=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new l,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new a,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new a,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new h}]);var p=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=A;Object.defineProperty(this,"pdf",{get:function(){return B}});var z=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return z},set:function(le){z=!!le}});var ee=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ee},set:function(le){ee=!!le}});var V=0;Object.defineProperty(this,"posX",{get:function(){return V},set:function(le){isNaN(le)||(V=le)}});var C=0;Object.defineProperty(this,"posY",{get:function(){return C},set:function(le){isNaN(le)||(C=le)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(le){var N;typeof le=="number"?N=[le,le,le,le]:((N=new Array(4))[0]=le[0],N[1]=le.length>=2?le[1]:N[0],N[2]=le.length>=3?le[2]:N[0],N[3]=le.length>=4?le[3]:N[1]),c.margin=N}});var L=!1;Object.defineProperty(this,"autoPaging",{get:function(){return L},set:function(le){L=le}});var Y=0;Object.defineProperty(this,"lastBreak",{get:function(){return Y},set:function(le){Y=le}});var Z=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Z},set:function(le){Z=le}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(le){le instanceof h&&(c=le)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(le){c.path=le}});var U=[];Object.defineProperty(this,"ctxStack",{get:function(){return U},set:function(le){U=le}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(le){var N;N=g(le),this.ctx.fillStyle=N.style,this.ctx.isFillTransparent=N.a===0,this.ctx.fillOpacity=N.a,this.pdf.setFillColor(N.r,N.g,N.b,{a:N.a}),this.pdf.setTextColor(N.r,N.g,N.b,{a:N.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(le){var N=g(le);this.ctx.strokeStyle=N.style,this.ctx.isStrokeTransparent=N.a===0,this.ctx.strokeOpacity=N.a,N.a===0?this.pdf.setDrawColor(255,255,255):(N.a,this.pdf.setDrawColor(N.r,N.g,N.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(le){["butt","round","square"].indexOf(le)!==-1&&(this.ctx.lineCap=le,this.pdf.setLineCap(le))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(le){isNaN(le)||(this.ctx.lineWidth=le,this.pdf.setLineWidth(le))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(le){["bevel","round","miter"].indexOf(le)!==-1&&(this.ctx.lineJoin=le,this.pdf.setLineJoin(le))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(le){isNaN(le)||(this.ctx.miterLimit=le,this.pdf.setMiterLimit(le))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(le){this.ctx.textBaseline=le}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(le){["right","end","center","left","start"].indexOf(le)!==-1&&(this.ctx.textAlign=le)}});var G=null;function ge(le,N){if(G===null){var w=function(b){var P=[];return Object.keys(b).forEach(function(Q){b[Q].forEach(function(fe){var ie=null;switch(fe){case"bold":ie={family:Q,weight:"bold"};break;case"italic":ie={family:Q,style:"italic"};break;case"bolditalic":ie={family:Q,weight:"bold",style:"italic"};break;case"":case"normal":ie={family:Q}}ie!==null&&(ie.ref={name:Q,style:fe},P.push(ie))})}),P}(le.getFontList());G=function(b){for(var P={},Q=0;Q<b.length;++Q){var fe=s0(b[Q]),ie=fe.family,_e=fe.stretch,Ce=fe.style,Le=fe.weight;P[ie]=P[ie]||{},P[ie][_e]=P[ie][_e]||{},P[ie][_e][Ce]=P[ie][_e][Ce]||{},P[ie][_e][Ce][Le]=fe}return P}(w.concat(N))}return G}var I=null;Object.defineProperty(this,"fontFaces",{get:function(){return I},set:function(le){G=null,I=le}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(le){var N;if(this.ctx.font=le,(N=/^\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(le))!==null){var w=N[1],b=(N[2],N[3]),P=N[4],Q=(N[5],N[6]),fe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(P)[2];P=Math.floor(fe==="px"?parseFloat(P)*this.pdf.internal.scaleFactor:fe==="em"?parseFloat(P)*this.pdf.getFontSize():parseFloat(P)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(P);var ie=function(Je){var at,Ve,Xt=[],rt=Je.trim();if(rt==="")return im;if(rt in n5)return[n5[rt]];for(;rt!=="";){switch(Ve=null,at=(rt=o5(rt)).charAt(0)){case'"':case"'":Ve=iN(rt.substring(1),at);break;default:Ve=oN(rt)}if(Ve===null||(Xt.push(Ve[0]),(rt=o5(Ve[1]))!==""&&rt.charAt(0)!==","))return im;rt=rt.replace(/^,/,"")}return Xt}(Q);if(this.fontFaces){var _e=nN(ge(this.pdf,this.fontFaces),ie.map(function(Je){return{family:Je,stretch:"normal",weight:b,style:w}}));this.pdf.setFont(_e.ref.name,_e.ref.style)}else{var Ce="";(b==="bold"||parseInt(b,10)>=700||w==="bold")&&(Ce="bold"),w==="italic"&&(Ce+="italic"),Ce.length===0&&(Ce="normal");for(var Le="",Oe={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"},We=0;We<ie.length;We++){if(this.pdf.internal.getFont(ie[We],Ce,{noFallback:!0,disableWarning:!0})!==void 0){Le=ie[We];break}if(Ce==="bolditalic"&&this.pdf.internal.getFont(ie[We],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Le=ie[We],Ce="bold";else if(this.pdf.internal.getFont(ie[We],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Le=ie[We],Ce="normal";break}}if(Le===""){for(var $e=0;$e<ie.length;$e++)if(Oe[ie[$e]]){Le=Oe[ie[$e]];break}}Le=Le===""?"Times":Le,this.pdf.setFont(Le,Ce)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(le){this.ctx.globalCompositeOperation=le}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(le){this.ctx.globalAlpha=le}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(le){this.ctx.lineDashOffset=le,de.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(le){this.ctx.lineDash=le,de.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(le){this.ctx.ignoreClearRect=!!le}})};p.prototype.setLineDash=function(A){this.lineDash=A},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){F.call(this,"fill",!1)},p.prototype.stroke=function(){F.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(A,B){if(isNaN(A)||isNaN(B))throw zt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var z=this.ctx.transform.applyToPoint(new a(A,B));this.path.push({type:"mt",x:z.x,y:z.y}),this.ctx.lastPoint=new a(A,B)},p.prototype.closePath=function(){var A=new a(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&Ot(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){A=new a(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(A.x,A.y)},p.prototype.lineTo=function(A,B){if(isNaN(A)||isNaN(B))throw zt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var z=this.ctx.transform.applyToPoint(new a(A,B));this.path.push({type:"lt",x:z.x,y:z.y}),this.ctx.lastPoint=new a(z.x,z.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),F.call(this,null,!0)},p.prototype.quadraticCurveTo=function(A,B,z,ee){if(isNaN(z)||isNaN(ee)||isNaN(A)||isNaN(B))throw zt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var V=this.ctx.transform.applyToPoint(new a(z,ee)),C=this.ctx.transform.applyToPoint(new a(A,B));this.path.push({type:"qct",x1:C.x,y1:C.y,x:V.x,y:V.y}),this.ctx.lastPoint=new a(V.x,V.y)},p.prototype.bezierCurveTo=function(A,B,z,ee,V,C){if(isNaN(V)||isNaN(C)||isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee))throw zt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var L=this.ctx.transform.applyToPoint(new a(V,C)),Y=this.ctx.transform.applyToPoint(new a(A,B)),Z=this.ctx.transform.applyToPoint(new a(z,ee));this.path.push({type:"bct",x1:Y.x,y1:Y.y,x2:Z.x,y2:Z.y,x:L.x,y:L.y}),this.ctx.lastPoint=new a(L.x,L.y)},p.prototype.arc=function(A,B,z,ee,V,C){if(isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(V))throw zt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to 
303jsPDF.context2d.arc");if(C=!!C,!this.ctx.transform.isIdentity){var L=this.ctx.transform.applyToPoint(new a(A,B));A=L.x,B=L.y;var Y=this.ctx.transform.applyToPoint(new a(0,z)),Z=this.ctx.transform.applyToPoint(new a(0,0));z=Math.sqrt(Math.pow(Y.x-Z.x,2)+Math.pow(Y.y-Z.y,2))}Math.abs(V-ee)>=2*Math.PI&&(ee=0,V=2*Math.PI),this.path.push({type:"arc",x:A,y:B,radius:z,startAngle:ee,endAngle:V,counterclockwise:C})},p.prototype.arcTo=function(A,B,z,ee,V){throw new Error("arcTo not implemented.")},p.prototype.rect=function(A,B,z,ee){if(isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee))throw zt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,B),this.lineTo(A+z,B),this.lineTo(A+z,B+ee),this.lineTo(A,B+ee),this.lineTo(A,B),this.lineTo(A+z,B),this.lineTo(A,B)},p.prototype.fillRect=function(A,B,z,ee){if(isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee))throw zt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var V={};this.lineCap!=="butt"&&(V.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(V.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,B,z,ee),this.fill(),V.hasOwnProperty("lineCap")&&(this.lineCap=V.lineCap),V.hasOwnProperty("lineJoin")&&(this.lineJoin=V.lineJoin)}},p.prototype.strokeRect=function(A,B,z,ee){if(isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee))throw zt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");S.call(this)||(this.beginPath(),this.rect(A,B,z,ee),this.stroke())},p.prototype.clearRect=function(A,B,z,ee){if(isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee))throw zt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,B,z,ee))},p.prototype.save=function(A){A=typeof A!="boolean"||A;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("q");if(this.pdf.setPage(B),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var ee=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ee}},p.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("Q");this.pdf.setPage(B),A&&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(A){var B,z,ee,V;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))B=0,z=0,ee=0,V=0;else{var C=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(C!==null)B=parseInt(C[1]),z=parseInt(C[2]),ee=parseInt(C[3]),V=1;else if((C=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)B=parseInt(C[1]),z=parseInt(C[2]),ee=parseInt(C[3]),V=parseFloat(C[4]);else{if(V=1,typeof A=="string"&&A.charAt(0)!=="#"){var L=new Lx(A);A=L.ok?L.toHex():"#000000"}A.length===4?(B=A.substring(1,2),B+=B,z=A.substring(2,3),z+=z,ee=A.substring(3,4),ee+=ee):(B=A.substring(1,3),z=A.substring(3,5),ee=A.substring(5,7)),B=parseInt(B,16),z=parseInt(z,16),ee=parseInt(ee,16)}}return{r:B,g:z,b:ee,a:V,style:A}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},S=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(A,B,z,ee){if(isNaN(B)||isNaN(z)||typeof A!="string")throw zt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
303jsPDF.context2d.fillText");if(ee=isNaN(ee)?void 0:ee,!f.call(this)){var V=ue(this.ctx.transform.rotation),C=this.ctx.transform.scaleX;R.call(this,{text:A,x:B,y:z,scale:C,angle:V,align:this.textAlign,maxWidth:ee})}},p.prototype.strokeText=function(A,B,z,ee){if(isNaN(B)||isNaN(z)||typeof A!="string")throw zt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!S.call(this)){ee=isNaN(ee)?void 0:ee;var V=ue(this.ctx.transform.rotation),C=this.ctx.transform.scaleX;R.call(this,{text:A,x:B,y:z,scale:C,renderingMode:"stroke",angle:V,align:this.textAlign,maxWidth:ee})}},p.prototype.measureText=function(A){if(typeof A!="string")throw zt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,z=this.pdf.internal.scaleFactor,ee=B.internal.getFontSize(),V=B.getStringUnitWidth(A)*ee/B.internal.scaleFactor,C=function(L){var Y=(L=L||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Y}}),this};return new C({width:V*=Math.round(96*z/72*1e4)/1e4})},p.prototype.scale=function(A,B){if(isNaN(A)||isNaN(B))throw zt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var z=new l(A,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(z)},p.prototype.rotate=function(A){if(isNaN(A))throw zt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new l(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},p.prototype.translate=function(A,B){if(isNaN(A)||isNaN(B))throw zt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var z=new l(1,0,0,1,A,B);this.ctx.transform=this.ctx.transform.multiply(z)},p.prototype.transform=function(A,B,z,ee,V,C){if(isNaN(A)||isNaN(B)||isNaN(z)||isNaN(ee)||isNaN(V)||isNaN(C))throw zt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var L=new l(A,B,z,ee,V,C);this.ctx.transform=this.ctx.transform.multiply(L)},p.prototype.setTransform=function(A,B,z,ee,V,C){A=isNaN(A)?1:A,B=isNaN(B)?0:B,z=isNaN(z)?0:z,ee=isNaN(ee)?1:ee,V=isNaN(V)?0:V,C=isNaN(C)?0:C,this.ctx.transform=new l(A,B,z,ee,V,C)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(A,B,z,ee,V,C,L,Y,Z){var U=this.pdf.getImageProperties(A),G=1,ge=1,I=1,le=1;ee!==void 0&&Y!==void 0&&(I=Y/ee,le=Z/V,G=U.width/ee*Y/ee,ge=U.height/V*Z/V),C===void 0&&(C=B,L=z,B=0,z=0),ee!==void 0&&Y===void 0&&(Y=ee,Z=V),ee===void 0&&Y===void 0&&(Y=U.width,Z=U.height);for(var N,w=this.ctx.transform.decompose(),b=ue(w.rotate.shx),P=new l,Q=(P=(P=(P=P.multiply(w.translate)).multiply(w.skew)).multiply(w.scale)).applyToRectangle(new s(C-B*I,L-z*le,ee*G,V*ge)),fe=k.call(this,Q),ie=[],_e=0;_e<fe.length;_e+=1)ie.indexOf(fe[_e])===-1&&ie.push(fe[_e]);if(_(ie),this.autoPaging)for(var Ce=ie[0],Le=ie[ie.length-1],Oe=Ce;Oe<Le+1;Oe++){this.pdf.setPage(Oe);var We=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],$e=Oe===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],at=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ve=Oe===1?0:Je+(Oe-2)*at;if(this.ctx.clip_path.length!==0){var Xt=this.path;N=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(N,this.posX+this.margin[3],-Ve+$e+this.ctx.prevPageLastElemOffset),j.call(this,"fill",!0),this.path=Xt}var rt=JSON.parse(JSON.stringify(Q));rt=y([rt],this.posX+this.margin[3],-Ve+$e+this.ctx.prevPageLastElemOffset)[0];var Or=(Oe>Ce||Oe<Le)&&v.call(this);Or&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],We,at,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",rt.x,rt.y,rt.w,rt.h,null,null,b),Or&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",Q.x,Q.y,Q.w,Q.h,null,null,b)};var k=function(A,B,z){var ee=[];B=B||this.pdf.internal.pageSize.width,z=z||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var V=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":ee.push(Math.floor((A.y+V)/z)+1);break;case"arc":ee.push(Math.floor((A.y+V-A.radius)/z)+1),ee.push(Math.floor((A.y+V+A.radius)/z)+1);break;case"qct":var C=oe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);ee.push(Math.floor((C.y+V)/z)+1),ee.push(Math.floor((C.y+C.h+V)/z)+1);break;case"bct":var L=me(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);ee.push(Math.floor((L.y+V)/z)+1),ee.push(Math.floor((L.y+L.h+V)/z)+1);break;
vendor: 28,117 bytes, lines 303-309
303case"rect":ee.push(Math.floor((A.y+V)/z)+1),ee.push(Math.floor((A.y+A.h+V)/z)+1)}for(var Y=0;Y<ee.length;Y+=1)for(;this.pdf.internal.getNumberOfPages()<ee[Y];)d.call(this);return ee},d=function(){var A=this.fillStyle,B=this.strokeStyle,z=this.font,ee=this.lineCap,V=this.lineWidth,C=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=B,this.font=z,this.lineCap=ee,this.lineWidth=V,this.lineJoin=C},y=function(A,B,z){for(var ee=0;ee<A.length;ee++)switch(A[ee].type){case"bct":A[ee].x2+=B,A[ee].y2+=z;case"qct":A[ee].x1+=B,A[ee].y1+=z;case"mt":case"lt":case"arc":default:A[ee].x+=B,A[ee].y+=z}return A},_=function(A){return A.sort(function(B,z){return B-z})},F=function(A,B){for(var z,ee,V=this.fillStyle,C=this.strokeStyle,L=this.lineCap,Y=this.lineWidth,Z=Math.abs(Y*this.ctx.transform.scaleX),U=this.lineJoin,G=JSON.parse(JSON.stringify(this.path)),ge=JSON.parse(JSON.stringify(this.path)),I=[],le=0;le<ge.length;le++)if(ge[le].x!==void 0)for(var N=k.call(this,ge[le]),w=0;w<N.length;w+=1)I.indexOf(N[w])===-1&&I.push(N[w]);for(var b=0;b<I.length;b++)for(;this.pdf.internal.getNumberOfPages()<I[b];)d.call(this);if(_(I),this.autoPaging)for(var P=I[0],Q=I[I.length-1],fe=P;fe<Q+1;fe++){this.pdf.setPage(fe),this.fillStyle=V,this.strokeStyle=C,this.lineCap=L,this.lineWidth=Z,this.lineJoin=U;var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],_e=fe===1?this.posY+this.margin[0]:this.margin[0],Ce=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Le=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Oe=fe===1?0:Ce+(fe-2)*Le;if(this.ctx.clip_path.length!==0){var We=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(z,this.posX+this.margin[3],-Oe+_e+this.ctx.prevPageLastElemOffset),j.call(this,A,!0),this.path=We}if(ee=JSON.parse(JSON.stringify(G)),this.path=y(ee,this.posX+this.margin[3],-Oe+_e+this.ctx.prevPageLastElemOffset),B===!1||fe===0){var $e=(fe>P||fe<Q)&&v.call(this);$e&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Le,null).clip().discardPath()),j.call(this,A,B),$e&&this.pdf.restoreGraphicsState()}this.lineWidth=Y}else this.lineWidth=Z,j.call(this,A,B),this.lineWidth=Y;this.path=G},j=function(A,B){if((A!=="stroke"||B||!S.call(this))&&(A==="stroke"||B||!f.call(this))){for(var z,ee,V=[],C=this.path,L=0;L<C.length;L++){var Y=C[L];switch(Y.type){case"begin":V.push({begin:!0});break;case"close":V.push({close:!0});break;case"mt":V.push({start:Y,deltas:[],abs:[]});break;case"lt":var Z=V.length;if(C[L-1]&&!isNaN(C[L-1].x)&&(z=[Y.x-C[L-1].x,Y.y-C[L-1].y],Z>0)){for(;Z>=0;Z--)if(V[Z-1].close!==!0&&V[Z-1].begin!==!0){V[Z-1].deltas.push(z),V[Z-1].abs.push(Y);break}}break;case"bct":z=[Y.x1-C[L-1].x,Y.y1-C[L-1].y,Y.x2-C[L-1].x,Y.y2-C[L-1].y,Y.x-C[L-1].x,Y.y-C[L-1].y],V[V.length-1].deltas.push(z);break;case"qct":var U=C[L-1].x+2/3*(Y.x1-C[L-1].x),G=C[L-1].y+2/3*(Y.y1-C[L-1].y),ge=Y.x+2/3*(Y.x1-Y.x),I=Y.y+2/3*(Y.y1-Y.y),le=Y.x,N=Y.y;z=[U-C[L-1].x,G-C[L-1].y,ge-C[L-1].x,I-C[L-1].y,le-C[L-1].x,N-C[L-1].y],V[V.length-1].deltas.push(z);break;case"arc":V.push({deltas:[],abs:[],arc:!0}),Array.isArray(V[V.length-1].abs)&&V[V.length-1].abs.push(Y)}}ee=B?null:A==="stroke"?"stroke":"fill";for(var w=!1,b=0;b<V.length;b++)if(V[b].arc)for(var P=V[b].abs,Q=0;Q<P.length;Q++){var fe=P[Q];fe.type==="arc"?M.call(this,fe.x,fe.y,fe.radius,fe.startAngle,fe.endAngle,fe.counterclockwise,void 0,B,!w):X.call(this,fe.x,fe.y),w=!0}else if(V[b].close===!0)this.pdf.internal.out("h"),w=!1;else if(V[b].begin!==!0){var ie=V[b].start.x,_e=V[b].start.y;T.call(this,V[b].deltas,ie,_e),w=!0}ee&&D.call(this,ee),B&&he.call(this)}},re=function(A){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,z=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-z;case"top":return A+B-z;case"hanging":return A+B-2*z;case"middle":return A+B/2-z;case"ideographic":return A;case"alphabetic":default:return A}},$=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(B,z){this.colorStops.push([B,z])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var M=function(A,B,z,ee,V,C,L,Y,Z){for(var U=ye.call(this,z,ee,V,C),G=0;G<U.length;G++){var ge=U[G];G===0&&(Z?H.call(this,ge.x1+A,ge.y1+B):X.call(this,ge.x1+A,ge.y1+B)),se.call(this,A,B,ge.x2,ge.y2,ge.x3,ge.y3,ge.x4,ge.y4)}Y?he.call(this):D.call(this,L)},D=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},he=function(){this.pdf.clip(),this.pdf.discardPath()},H=function(A,B){this.pdf.internal.out(r(A)+" "+n(B)+" m")},R=function(A){var B;switch(A.align){case"right":case"end":B="right";break;case"center":B="center";break;case"left":case"start":default:B="left"}var z=this.pdf.getTextDimensions(A.text),ee=re.call(this,A.y),V=$.call(this,ee)-z.h,C=this.ctx.transform.applyToPoint(new a(A.x,ee)),L=this.ctx.transform.decompose(),Y=new l;Y=(Y=(Y=Y.multiply(L.translate)).multiply(L.skew)).multiply(L.scale);for(var Z,U,G,ge=this.ctx.transform.applyToRectangle(new s(A.x,ee,z.w,z.h)),I=Y.applyToRectangle(new s(A.x,V,z.w,z.h)),le=k.call(this,I),N=[],w=0;w<le.length;w+=1)N.indexOf(le[w])===-1&&N.push(le[w]);if(_(N),this.autoPaging)for(var b=N[0],P=N[N.length-1],Q=b;Q<P+1;Q++){this.pdf.setPage(Q);var fe=Q===1?this.posY+this.margin[0]:this.margin[0],ie=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_e=this.pdf.internal.pageSize.height-this.margin[2],Ce=_e-this.margin[0],Le=this.pdf.internal.pageSize.width-this.margin[1],Oe=Le-this.margin[3],We=Q===1?0:ie+(Q-2)*Ce;if(this.ctx.clip_path.length!==0){var $e=this.path;Z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(Z,this.posX+this.margin[3],-1*We+fe),j.call(this,"fill",!0),this.path=$e}var Je=y([JSON.parse(JSON.stringify(I))],this.posX+this.margin[3],-We+fe+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(U=this.pdf.internal.getFontSize(),this.pdf.setFontSize(U*A.scale),G=this.lineWidth,this.lineWidth=G*A.scale);var at=this.autoPaging!=="text";if(at||Je.y+Je.h<=_e){if(at||Je.y>=fe&&Je.x<=Le){var Ve=at?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||Le-Je.x)[0],Xt=y([JSON.parse(JSON.stringify(ge))],this.posX+this.margin[3],-We+fe+this.ctx.prevPageLastElemOffset)[0],rt=at&&(Q>b||Q<P)&&v.call(this);rt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Oe,Ce,null).clip().discardPath()),this.pdf.text(Ve,Xt.x,Xt.y,{angle:A.angle,align:B,renderingMode:A.renderingMode}),rt&&this.pdf.restoreGraphicsState()}}else Je.y<_e&&(this.ctx.prevPageLastElemOffset+=_e-Je.y);A.scale>=.01&&(this.pdf.setFontSize(U),this.lineWidth=G)}else A.scale>=.01&&(U=this.pdf.internal.getFontSize(),this.pdf.setFontSize(U*A.scale),G=this.lineWidth,this.lineWidth=G*A.scale),this.pdf.text(A.text,C.x+this.posX,C.y+this.posY,{angle:A.angle,align:B,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(U),this.lineWidth=G)},X=function(A,B,z,ee){z=z||0,ee=ee||0,this.pdf.internal.out(r(A+z)+" "+n(B+ee)+" l")},T=function(A,B,z){return this.pdf.lines(A,B,z,null,null)},se=function(A,B,z,ee,V,C,L,Y){this.pdf.internal.out([t(i(z+A)),t(o(ee+B)),t(i(V+A)),t(o(C+B)),t(i(L+A)),t(o(Y+B)),"c"].join(" "))},ye=function(A,B,z,ee){for(var V=2*Math.PI,C=Math.PI/2;B>z;)B-=V;var L=Math.abs(z-B);L<V&&ee&&(L=V-L);for(var Y=[],Z=ee?-1:1,U=B;L>1e-5;){var G=U+Z*Math.min(L,C);Y.push(ae.call(this,A,U,G)),L-=Math.abs(G-U),U=G}return Y},ae=function(A,B,z){var ee=(z-B)/2,V=A*Math.cos(ee),C=A*Math.sin(ee),L=V,Y=-C,Z=L*L+Y*Y,U=Z+L*V+Y*C,G=4/3*(Math.sqrt(2*Z*U)-U)/(L*C-Y*V),ge=L-G*Y,I=Y+G*L,le=ge,N=-I,w=ee+B,b=Math.cos(w),P=Math.sin(w);return{x1:A*Math.cos(B),y1:A*Math.sin(B),x2:ge*b-I*P,y2:ge*P+I*b,x3:le*b-N*P,y3:le*P+N*b,x4:A*Math.cos(z),y4:A*Math.sin(z)}},ue=function(A){return 180*A/Math.PI},oe=function(A,B,z,ee,V,C){var L=A+.5*(z-A),Y=B+.5*(ee-B),Z=V+.5*(z-V),U=C+.5*(ee-C),G=Math.min(A,V,L,Z),ge=Math.max(A,V,L,Z),I=Math.min(B,C,Y,U),le=Math.max(B,C,Y,U);return new s(G,I,ge-G,le-I)},me=function(A,B,z,ee,V,C,L,Y){var Z,U,G,ge,I,le,N,w,b,P,Q,fe,ie,_e,Ce=z-A,Le=ee-B,Oe=V-z,We=C-ee,$e=L-V,Je=Y-C;for(U=0;U<41;U++)b=(N=(G=A+(Z=U/40)*Ce)+Z*((I=z+Z*Oe)-G))+Z*(I+Z*(V+Z*$e-I)-N),P=(w=(ge=B+Z*Le)+Z*((le=ee+Z*We)-ge))+Z*(le+Z*(C+Z*Je-le)-w),U==0?(Q=b,fe=P,ie=b,_e=P):(Q=Math.min(Q,b),fe=Math.min(fe,P),ie=Math.max(ie,b),_e=Math.max(_e,P));return new s(Math.round(Q),Math.round(fe),Math.round(ie-Q),Math.round(_e-fe))},de=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,B,z=(A=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:B}));this.prevLineDash!==z&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=z)}}})(ot.API),function(e){var t=function(o){var a,s,l,c,h,p,g,f,S,v;for(s=[],l=0,c=(o+=a="\0\0\0\0".slice(o.length%4||4)).length;c>l;l+=4)(h=(o.charCodeAt(l)<<24)+(o.charCodeAt(l+1)<<16)+(o.charCodeAt(l+2)<<8)+o.charCodeAt(l+3))!==0?(p=(h=((h=((h=((h=(h-(v=h%85))/85)-(S=h%85))/85)-(f=h%85))/85)-(g=h%85))/85)%85,s.push(p+33,g+33,f+33,S+33,v+33)):s.push(122);return function(k,d){for(var y=d;y>0;y--)k.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},r=function(o){var a,s,l,c,h,p=String,g="length",f=255,S="charCodeAt",v="slice",k="replace";for(o[v](-2),o=o[v](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),l=[],c=0,h=(o+=a="uuuuu"[v](o[g]%5||5))[g];h>c;c+=5)s=52200625*(o[S](c)-33)+614125*(o[S](c+1)-33)+7225*(o[S](c+2)-33)+85*(o[S](c+3)-33)+(o[S](c+4)-33),l.push(f&s>>24,f&s>>16,f&s>>8,f&s);return function(d,y){for(var _=y;_>0;_--)d.pop()}(l,a[g]),p.fromCharCode.apply(p,l)},n=function(o){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),a.test(o)===!1)return"";for(var s="",l=0;l<o.length;l+=2)s+=String.fromCharCode("0x"+(o[l]+o[l+1]));return s},i=function(o){for(var a=new Uint8Array(o.length),s=o.length;s--;)a[s]=o.charCodeAt(s);return o=(a=t0(a)).reduce(function(l,c){return l+String.fromCharCode(c)},"")};e.processDataByFilters=function(o,a){var s=0,l=o||"",c=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(h){return("0"+h.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(ot.API),function(e){e.loadFile=function(t,r,n){return function(i,o,a){o=o!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(l,c,h){var p=new XMLHttpRequest,g=0,f=function(S){var v=S.length,k=[],d=String.fromCharCode;for(g=0;g<v;g+=1)k.push(d(255&S.charCodeAt(g)));return k.join("")};if(p.open("GET",l,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?h(f(this.responseText)):h(void 0)}),p.send(null),c&&p.status===200)return f(p.responseText)}(i,o,a)}catch{}return s}(t,r,n)},e.loadImageFile=e.loadFile}(ot.API),function(e){function t(){return(st.html2canvas?Promise.resolve(st.html2canvas):Y1(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function r(){return(st.DOMPurify?Promise.resolve(st.DOMPurify):Y1(()=>import("./purify.es-C_uT9hQ1.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var n=function(a){var s=Ot(a);return s==="undefined"?"undefined":s==="string"||a instanceof String?"string":s==="number"||a instanceof Number?"number":s==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":s==="object"?"object":"unknown"},i=function(a,s){var l=document.createElement(a);for(var c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},o=function a(s){var l=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),c=a.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,a,1,[a])).set(s)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(a,s){return a.__proto__=s||o.prototype,a},o.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"}},o.prototype.from=function(a,s){return this.then(function(){switch(s=s||function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(r).then(function(l){return this.set({src:i("div",{innerHTML:a,dompurify:l})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},o.prototype.to=function(a){switch(a){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.")}},o.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 a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function l(c,h){for(var p=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),g=c.firstChild;g;g=g.nextSibling)h!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||p.appendChild(l(g,h));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);s.tagName==="BODY"&&(a.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:a}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(s){var l=this.opt.jsPDF,c=this.opt.fontFaces,h=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:h,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,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var g=0;g<c.length;++g){var f=c[g],S=f.src.find(function(v){return v.format==="truetype"});S&&l.addFont(S.url,f.ref.name,f.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,l.context2d.save(!0),s(this.prop.container,p)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(a,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(a,s):this.outputPdf(a,s)},o.prototype.outputPdf=function(a,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,s)})},o.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){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 "'+a+'" is not supported.'}})},o.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(a){if(n(a)!=="object")return this;var s=Object.keys(a||{}).map(function(l){if(l in o.template.prop)return function(){this.prop[l]=a[l]};switch(l){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[l]=a[l]}}},this);return this.then(function(){return this.thenList(s)})},o.prototype.get=function(a,s){return this.then(function(){var l=a in o.template.prop?this.prop[a]:this.opt[a];return s?s(l):l})},o.prototype.setMargin=function(a){return this.then(function(){switch(n(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},o.prototype.setPageSize=function(a){function s(l,c){return Math.floor(l*c/72*96)}return this.then(function(){(a=a||ot.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:s(a.inner.width,a.k),height:s(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},o.prototype.setProgress=function(a,s,l,c){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(a,s,l,c){return this.setProgress(a?this.progress.val+a:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},o.prototype.then=function(a,s){var l=this;return this.thenCore(a,s,function(c,h){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(p){return l.updateProgress(null,c),p}).then(c,h).then(function(p){return l.updateProgress(1),p})})},o.prototype.thenCore=function(a,s,l){l=l||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),h=l.call(c,a,s);return o.convert(h,this.__proto__)},o.prototype.thenExternal=function(a,s){return Promise.prototype.then.call(this,a,s)},o.prototype.thenList=function(a){var s=this;return a.forEach(function(l){s=s.thenCore(l)}),s},o.prototype.catch=function(a){a&&(a=a.bind(this));var s=Promise.prototype.catch.call(this,a);return o.convert(s,this)},o.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},o.prototype.error=function(a){return this.then(function(){throw new Error(a)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,ot.getPageSize=function(a,s,l){if(Ot(a)==="object"){var c=a;a=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",a=(""+(a||"P")).toLowerCase();var h,p=(""+l).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(s){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+s}var f,S=0,v=0;if(g.hasOwnProperty(p))S=g[p][1]/h,v=g[p][0]/h;else try{S=l[1],v=l[0]}catch{throw new Error("Invalid format: "+l)}if(a==="p"||a==="portrait")a="p",v>S&&(f=v,v=S,S=f);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",S>v&&(f=v,v=S,S=f)}return{width:v,height:S,unit:s,k:h,orientation:a}},e.html=function(a,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(s0):null;var l=new o(s);return s.worker?l:l.from(a).doCallback()}}(ot.API),ot.API.addJS=function(e){return s5=e,this.internal.events.subscribe("postPutResources",function(){Df=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Df+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),a5=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+s5+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Df!==void 0&&a5!==void 0&&this.internal.out("/Names <</JavaScript "+Df+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),o=0;o<i.length;o++){var a=i[o],s=n.exec(a);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,h=[];for(o=0;o<c;o++){var p=r.internal.newObject();h.push(p);var g=r.internal.getPageInfo(o+1);r.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var f=r.internal.newObject();for(r.internal.write("<< /Names [ "),o=0;o<h.length;o++)r.internal.write("(page_"+(o+1)+")"+h[o]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+f+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,o){var a={title:i,options:o,children:[]};return n==null&&(n=this.root),n.children.push(a),a},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<n.children.length;o++){var a=n.children[o];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(n)),o>0&&this.line("/Prev "+this.makeRef(n.children[o-1])),o<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[o+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var l=r.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
304`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
305`+n.id+` 0 obj\r
306<<\r
307`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
308endobj\r
309`},r.outline.count_r=function(n,i){for(var o=0;o<i.children.length;o++)n.count++,this.count_r(n,i.children[o]);return n.count}}])}(ot.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,o,a,s){var l,c=this.decode.DCT_DECODE,h=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=a||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(l=function(p){for(var g,f=256*p.charCo
vendor: 14,741 bytes, lines 309-384
309deAt(4)+p.charCodeAt(5),S=p.length,v={width:0,height:0,numcomponents:1},k=4;k<S;k+=2){if(k+=f,t.indexOf(p.charCodeAt(k+1))!==-1){g=256*p.charCodeAt(k+5)+p.charCodeAt(k+6),v={width:256*p.charCodeAt(k+7)+p.charCodeAt(k+8),height:g,numcomponents:p.charCodeAt(k+9)};break}f=256*p.charCodeAt(k+2)+p.charCodeAt(k+3)}return v}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}h={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:i}}return h}}(ot.API);var Cs,jf,l5,u5,c5,aN=function(){var e,t,r;function n(o){var a,s,l,c,h,p,g,f,S,v,k,d,y,_;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(a=this.readUInt32(),S=(function(){var F,j;for(j=[],F=0;F<4;++F)j.push(String.fromCharCode(this.data[this.pos++]));return j}).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(a);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()},h=this.readUInt16(),c=this.readUInt16()||100,p.delay=1e3*h/c,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(S==="fdAT"&&(this.pos+=4,a-=4),o=(p!=null?p.data:void 0)||this.imgData,d=0;0<=a?d<a:d>a;0<=a?++d:--d)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((v=l-this.transparency.indexed.length)>0)for(y=0;0<=v?y<v:y>v;0<=v?++y:--y)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":g=(k=this.read(a)).indexOf(0),f=String.fromCharCode.apply(String,k.slice(0,g)),this.text[f]=String.fromCharCode.apply(String,k.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=(_=this.colorType)===4||_===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(o){var a,s;for(s=[],a=0;0<=o?a<o:a>o;0<=o?++a:--a)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(o){var a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),l=0,c=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function h(p,g,f,S){var v,k,d,y,_,F,j,re,$,M,D,he,H,R,X,T,se,ye,ae,ue,oe,me=Math.ceil((c.width-p)/f),de=Math.ceil((c.height-g)/S),A=c.width==me&&c.height==de;for(R=a*me,he=A?s:new Uint8Array(R*de),F=o.length,H=0,k=0;H<de&&l<F;){switch(o[l++]){case 0:for(y=se=0;se<R;y=se+=1)he[k++]=o[l++];break;case 1:for(y=ye=0;ye<R;y=ye+=1)v=o[l++],_=y<a?0:he[k-a],he[k++]=(v+_)%256;break;case 2:for(y=ae=0;ae<R;y=ae+=1)v=o[l++],d=(y-y%a)/a,X=H&&he[(H-1)*R+d*a+y%a],he[k++]=(X+v)%256;break;case 3:for(y=ue=0;ue<R;y=ue+=1)v=o[l++],d=(y-y%a)/a,_=y<a?0:he[k-a],X=H&&he[(H-1)*R+d*a+y%a],he[k++]=(v+Math.floor((_+X)/2))%256;break;case 4:for(y=oe=0;oe<R;y=oe+=1)v=o[l++],d=(y-y%a)/a,_=y<a?0:he[k-a],H===0?X=T=0:(X=he[(H-1)*R+d*a+y%a],T=d&&he[(H-1)*R+(d-1)*a+y%a]),j=_+X-T,re=Math.abs(j-_),M=Math.abs(j-X),D=Math.abs(j-T),$=re<=M&&re<=D?_:M<=D?X:T,he[k++]=(v+$)%256;break;default:throw new Error("Invalid filter algorithm: "+o[l-1])}if(!A){var B=((g+H*S)*c.width+p)*a,z=H*R;for(y=0;y<me;y+=1){for(var ee=0;ee<a;ee+=1)s[B++]=he[z++];B+=(f-1)*a}}H++}}return o=BE(o),c.interlaceMethod==1?(h(0,0,8,8),h(4,0,8,8),h(0,4,4,8),h(2,0,4,4),h(0,2,2,4),h(1,0,2,2),h(0,1,1,2)):h(0,0,1,1),s},n.prototype.decodePalette=function(){var o,a,s,l,c,h,p,g,f;for(s=this.palette,h=this.transparency.indexed||[],c=new Uint8Array((h.length||0)+s.length),l=0,o=0,a=p=0,g=s.length;p<g;a=p+=3)c[l++]=s[a],c[l++]=s[a+1],c[l++]=s[a+2],c[l++]=(f=h[o++])!=null?f:255;return c},n.prototype.copyToImageData=function(o,a){var s,l,c,h,p,g,f,S,v,k,d;if(l=this.colors,v=null,s=this.hasAlphaChannel,this.palette.length&&(v=(d=this._decodedPalette)!=null?d:this._decodedPalette=this.decodePalette(),l=4,s=!0),S=(c=o.data||o).length,p=v||a,h=g=0,l===1)for(;h<S;)f=v?4*a[h/4]:g,k=p[f++],c[h++]=k,c[h++]=k,c[h++]=k,c[h++]=s?p[f++]:255,g=f;else for(;h<S;)f=v?4*a[h/4]:g,c[h++]=p[f++],c[h++]=p[f++],c[h++]=p[f++],c[h++]=s?p[f++]:255,g=f},n.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var i=function(){if(Object.prototype.toString.call(st)==="[object Window]"){try{t=st.document.createElement("canvas"),r=t.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(o){var a;if(i()===!0)return r.width=o.width,r.height=o.height,r.clearRect(0,0,o.width,o.height),r.putImageData(o,0,0),(a=new Image).src=t.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(o){var a,s,l,c,h,p,g,f;if(this.animation){for(f=[],s=h=0,p=(g=this.animation.frames).length;h<p;s=++h)a=g[s],l=o.createImageData(a.width,a.height),c=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(l,c),a.imageData=l,f.push(a.image=e(l));return f}},n.prototype.renderFrame=function(o,a){var s,l,c;return s=(l=this.animation.frames)[a],c=l[a-1],a===0&&o.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?o.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&o.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&o.clearRect(s.xOffset,s.yOffset,s.width,s.height),o.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(o){var a,s,l,c,h,p,g=this;return s=0,p=this.animation,c=p.numFrames,l=p.frames,h=p.numPlays,(a=function(){var f,S;if(f=s++%c,S=l[f],g.renderFrame(o,f),c>1&&s/c<h)return g.animation._timeout=setTimeout(a,S.delay)})()},n.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},n.prototype.render=function(o){var a,s;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,a=o.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(s=a.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),a.putImageData(s,0,0))},n}();/**
310 * @license
311 *
312 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
313 *
314 * Permission is hereby granted, free of charge, to any person obtaining
315 * a copy of this software and associated documentation files (the
316 * "Software"), to deal in the Software without restriction, including
317 * without limitation the rights to use, copy, modify, merge, publish,
318 * distribute, sublicense, and/or sell copies of the Software, and to
319 * permit persons to whom the Software is furnished to do so, subject to
320 * the following conditions:
321 *
322 * The above copyright notice and this permission notice shall be
323 * included in all copies or substantial portions of the Software.
324 *
325 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
326 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
327 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
328 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
329 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
330 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
331 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
332 * ====================================================================
333 *//**
334 * @license
335 * (c) Dean McNamee <[email protected]>, 2013.
336 *
337 * https://github.com/deanm/omggif
338 *
339 * Permission is hereby granted, free of charge, to any person obtaining a copy
340 * of this software and associated documentation files (the "Software"), to
341 * deal in the Software without restriction, including without limitation the
342 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
343 * sell copies of the Software, and to permit persons to whom the Software is
344 * furnished to do so, subject to the following conditions:
345 *
346 * The above copyright notice and this permission notice shall be included in
347 * all copies or substantial portions of the Software.
348 *
349 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
350 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
351 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
352 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
353 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
354 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
355 * IN THE SOFTWARE.
356 *
357 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
358 * including animation and compression.  It does not rely on any specific
359 * underlying system, so should run in the browser, Node, or Plask.
360 */function sN(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,a=1<<(7&i)+1;e[t++],e[t++];var s=null,l=null;o&&(s=t,l=a,t+=3*a);var c=!0,h=[],p=0,g=null,f=0,S=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,S=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((H=e[t++])>=0))throw Error("Invalid block size");if(H===0)break;t+=H}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];p=e[t++]|e[t++]<<8,g=e[t++],!(1&v)&&(g=null),f=v>>2&7,t++;break;case 254:for(;;){if(!((H=e[t++])>=0))throw Error("Invalid block size");if(H===0)break;t+=H}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var k=e[t++]|e[t++]<<8,d=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,F=e[t++],j=F>>6&1,re=1<<(7&F)+1,$=s,M=l,D=!1;F>>7&&(D=!0,$=t,M=re,t+=3*re);var he=t;for(t++;;){var H;if(!((H=e[t++])>=0))throw Error("Invalid block size");if(H===0)break;t+=H}h.push({x:k,y:d,width:y,height:_,has_local_palette:D,palette_offset:$,palette_size:M,data_offset:he,data_length:t-he,transparent_index:g,interlaced:!!j,delay:p,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return S},this.frameInfo=function(R){if(R<0||R>=h.length)throw new Error("Frame index out of range.");return h[R]},this.decodeAndBlitFrameBGRA=function(R,X){var T=this.frameInfo(R),se=T.width*T.height,ye=new Uint8Array(se);f5(e,T.data_offset,ye,se);var ae=T.palette_offset,ue=T.transparent_index;ue===null&&(ue=256);var oe=T.width,me=r-oe,de=oe,A=4*(T.y*r+T.x),B=4*((T.y+T.height)*r+T.x),z=A,ee=4*me;T.interlaced===!0&&(ee+=4*r*7);for(var V=8,C=0,L=ye.length;C<L;++C){var Y=ye[C];if(de===0&&(de=oe,(z+=ee)>=B&&(ee=4*me+4*r*(V-1),z=A+(oe+me)*(V<<1),V>>=1)),Y===ue)z+=4;else{var Z=e[ae+3*Y],U=e[ae+3*Y+1],G=e[ae+3*Y+2];X[z++]=G,X[z++]=U,X[z++]=Z,X[z++]=255}--de}},this.decodeAndBlitFrameRGBA=function(R,X){var T=this.frameInfo(R),se=T.width*T.height,ye=new Uint8Array(se);f5(e,T.data_offset,ye,se);var ae=T.palette_offset,ue=T.transparent_index;ue===null&&(ue=256);var oe=T.width,me=r-oe,de=oe,A=4*(T.y*r+T.x),B=4*((T.y+T.height)*r+T.x),z=A,ee=4*me;T.interlaced===!0&&(ee+=4*r*7);for(var V=8,C=0,L=ye.length;C<L;++C){var Y=ye[C];if(de===0&&(de=oe,(z+=ee)>=B&&(ee=4*me+4*r*(V-1),z=A+(oe+me)*(V<<1),V>>=1)),Y===ue)z+=4;else{var Z=e[ae+3*Y],U=e[ae+3*Y+1],G=e[ae+3*Y+2];X[z++]=Z,X[z++]=U,X[z++]=G,X[z++]=255}--de}}}function f5(e,t,r,n){for(var i=e[t++],o=1<<i,a=o+1,s=a+1,l=i+1,c=(1<<l)-1,h=0,p=0,g=0,f=e[t++],S=new Int32Array(4096),v=null;;){for(;h<16&&f!==0;)p|=e[t++]<<h,h+=8,f===1?f=e[t++]:--f;if(h<l)break;var k=p&c;if(p>>=l,h-=l,k!==o){if(k===a)break;for(var d=k<s?k:v,y=0,_=d;_>o;)_=S[_]>>8,++y;var F=_;if(g+y+(d!==k?1:0)>n)return void zt.log("Warning, gif stream longer than expected.");r[g++]=F;var j=g+=y;for(d!==k&&(r[g++]=F),_=d;y--;)_=S[_],r[--j]=255&_,_>>=8;v!==null&&s<4096&&(S[s++]=v<<8|F,s>=c+1&&l<12&&(++l,c=c<<1|1)),v=k}else s=a+1,c=(1<<(l=i+1))-1,v=null}return g!==n&&zt.log("Warning, gif stream shorter than expected."),r}/**
361 * @license
362  Copyright (c) 2008, Adobe Systems Incorporated
363  All rights reserved.
364
365  Redistribution and use in source and binary forms, with or without 
366  modification, are permitted provided that the following conditions are
367  met:
368
369  * Redistributions of source code must retain the above copyright notice, 
370    this list of conditions and the following disclaimer.
371  
372  * Redistributions in binary form must reproduce the above copyright
373    notice, this list of conditions and the following disclaimer in the 
374    documentation and/or other materials provided with the distribution.
375  
376  * Neither the name of Adobe Systems Incorporated nor the names of its 
377    contributors may be used to endorse or promote products derived from 
378    this software without specific prior written permission.
379
380  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
381  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
382  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
383  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
384  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 60,230 bytes, lines 385-397
385  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
386  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
387  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
388  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
389  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
390  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
391*/function om(e){var t,r,n,i,o,a=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),h=new Array(64),p=new Array(65535),g=new Array(65535),f=new Array(64),S=new Array(64),v=[],k=0,d=7,y=new Array(64),_=new Array(64),F=new Array(64),j=new Array(256),re=new Array(2048),$=[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],M=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],he=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],H=[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],R=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],X=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],se=[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 ye(A,B){for(var z=0,ee=0,V=new Array,C=1;C<=16;C++){for(var L=1;L<=A[C];L++)V[B[ee]]=[],V[B[ee]][0]=z,V[B[ee]][1]=C,ee++,z++;z*=2}return V}function ae(A){for(var B=A[0],z=A[1]-1;z>=0;)B&1<<z&&(k|=1<<d),z--,--d<0&&(k==255?(ue(255),ue(0)):ue(k),d=7,k=0)}function ue(A){v.push(A)}function oe(A){ue(A>>8&255),ue(255&A)}function me(A,B,z,ee,V){for(var C,L=V[0],Y=V[240],Z=function(P,Q){var fe,ie,_e,Ce,Le,Oe,We,$e,Je,at,Ve=0;for(Je=0;Je<8;++Je){fe=P[Ve],ie=P[Ve+1],_e=P[Ve+2],Ce=P[Ve+3],Le=P[Ve+4],Oe=P[Ve+5],We=P[Ve+6];var Xt=fe+($e=P[Ve+7]),rt=fe-$e,Or=ie+We,xt=ie-We,vt=_e+Oe,cn=_e-Oe,St=Ce+Le,fi=Ce-Le,qt=Xt+St,Xr=Xt-St,kt=Or+vt,mt=Or-vt;P[Ve]=qt+kt,P[Ve+4]=qt-kt;var tt=.707106781*(mt+Xr);P[Ve+2]=Xr+tt,P[Ve+6]=Xr-tt;var gt=.382683433*((qt=fi+cn)-(mt=xt+rt)),Ar=.5411961*qt+gt,Lt=1.306562965*mt+gt,hr=.707106781*(kt=cn+xt),qr=rt+hr,Ze=rt-hr;P[Ve+5]=Ze+Ar,P[Ve+3]=Ze-Ar,P[Ve+1]=qr+Lt,P[Ve+7]=qr-Lt,Ve+=8}for(Ve=0,Je=0;Je<8;++Je){fe=P[Ve],ie=P[Ve+8],_e=P[Ve+16],Ce=P[Ve+24],Le=P[Ve+32],Oe=P[Ve+40],We=P[Ve+48];var Er=fe+($e=P[Ve+56]),dr=fe-$e,er=ie+We,Yt=ie-We,Wt=_e+Oe,ar=_e-Oe,Gn=Ce+Le,On=Ce-Le,hi=Er+Gn,di=Er-Gn,pi=er+Wt,Di=er-Wt;P[Ve]=hi+pi,P[Ve+32]=hi-pi;var Kn=.707106781*(Di+di);P[Ve+16]=di+Kn,P[Ve+48]=di-Kn;var ji=.382683433*((hi=On+ar)-(Di=Yt+dr)),ya=.5411961*hi+ji,Za=1.306562965*Di+ji,Qa=.707106781*(pi=ar+Yt),es=dr+Qa,ts=dr-Qa;P[Ve+40]=ts+ya,P[Ve+24]=ts-ya,P[Ve+8]=es+Za,P[Ve+56]=es-Za,Ve++}for(Je=0;Je<64;++Je)at=P[Je]*Q[Je],f[Je]=at>0?at+.5|0:at-.5|0;return f}(A,B),U=0;U<64;++U)S[$[U]]=Z[U];var G=S[0]-z;z=S[0],G==0?ae(ee[0]):(ae(ee[g[C=32767+G]]),ae(p[C]));for(var ge=63;ge>0&&S[ge]==0;)ge--;if(ge==0)return ae(L),z;for(var I,le=1;le<=ge;){for(var N=le;S[le]==0&&le<=ge;)++le;var w=le-N;if(w>=16){I=w>>4;for(var b=1;b<=I;++b)ae(Y);w&=15}C=32767+S[le],ae(V[(w<<4)+g[C]]),ae(p[C]),le++}return ge!=63&&ae(L),z}function de(A){A=Math.min(Math.max(A,1),100),o!=A&&(function(B){for(var z=[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],ee=0;ee<64;ee++){var V=a((z[ee]*B+50)/100);V=Math.min(Math.max(V,1),255),s[$[ee]]=V}for(var C=[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],L=0;L<64;L++){var Y=a((C[L]*B+50)/100);Y=Math.min(Math.max(Y,1),255),l[$[L]]=Y}for(var Z=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],U=0,G=0;G<8;G++)for(var ge=0;ge<8;ge++)c[U]=1/(s[$[U]]*Z[G]*Z[ge]*8),h[U]=1/(l[$[U]]*Z[G]*Z[ge]*8),U++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),o=A)}this.encode=function(A,B){B&&de(B),v=new Array,k=0,d=7,oe(65496),oe(65504),oe(16),ue(74),ue(70),ue(73),ue(70),ue(0),ue(1),ue(1),ue(0),oe(1),oe(1),ue(0),ue(0),function(){oe(65499),oe(132),ue(0);for(var ie=0;ie<64;ie++)ue(s[ie]);ue(1);for(var _e=0;_e<64;_e++)ue(l[_e])}(),function(ie,_e){oe(65472),oe(17),ue(8),oe(_e),oe(ie),ue(3),ue(1),ue(17),ue(0),ue(2),ue(17),ue(1),ue(3),ue(17),ue(1)}(A.width,A.height),function(){oe(65476),oe(418),ue(0);for(var ie=0;ie<16;ie++)ue(M[ie+1]);for(var _e=0;_e<=11;_e++)ue(D[_e]);ue(16);for(var Ce=0;Ce<16;Ce++)ue(he[Ce+1]);for(var Le=0;Le<=161;Le++)ue(H[Le]);ue(1);for(var Oe=0;Oe<16;Oe++)ue(R[Oe+1]);for(var We=0;We<=11;We++)ue(X[We]);ue(17);for(var $e=0;$e<16;$e++)ue(T[$e+1]);for(var Je=0;Je<=161;Je++)ue(se[Je])}(),oe(65498),oe(12),ue(3),ue(1),ue(0),ue(2),ue(17),ue(3),ue(17),ue(0),ue(63),ue(0);var z=0,ee=0,V=0;k=0,d=7,this.encode.displayName="_encode_";for(var C,L,Y,Z,U,G,ge,I,le,N=A.data,w=A.width,b=A.height,P=4*w,Q=0;Q<b;){for(C=0;C<P;){for(U=P*Q+C,ge=-1,I=0,le=0;le<64;le++)G=U+(I=le>>3)*P+(ge=4*(7&le)),Q+I>=b&&(G-=P*(Q+1+I-b)),C+ge>=P&&(G-=C+ge-P+4),L=N[G++],Y=N[G++],Z=N[G++],y[le]=(re[L]+re[Y+256>>0]+re[Z+512>>0]>>16)-128,_[le]=(re[L+768>>0]+re[Y+1024>>0]+re[Z+1280>>0]>>16)-128,F[le]=(re[L+1280>>0]+re[Y+1536>>0]+re[Z+1792>>0]>>16)-128;z=me(y,c,z,t,n),ee=me(_,h,ee,r,i),V=me(F,h,V,r,i),C+=32}Q+=8}if(d>=0){var fe=[];fe[1]=d+1,fe[0]=(1<<d+1)-1,ae(fe)}return oe(65497),new Uint8Array(v)},e=e||50,function(){for(var A=String.fromCharCode,B=0;B<256;B++)j[B]=A(B)}(),t=ye(M,D),r=ye(R,X),n=ye(he,H),i=ye(T,se),function(){for(var A=1,B=2,z=1;z<=15;z++){for(var ee=A;ee<B;ee++)g[32767+ee]=z,p[32767+ee]=[],p[32767+ee][1]=z,p[32767+ee][0]=ee;for(var V=-(B-1);V<=-A;V++)g[32767+V]=z,p[32767+V]=[],p[32767+V][1]=z,p[32767+V][0]=B-1+V;A<<=1,B<<=1}}(),function(){for(var A=0;A<256;A++)re[A]=19595*A,re[A+256>>0]=38470*A,re[A+512>>0]=7471*A+32768,re[A+768>>0]=-11059*A,re[A+1024>>0]=-21709*A,re[A+1280>>0]=32768*A+8421375,re[A+1536>>0]=-27439*A,re[A+1792>>0]=-5329*A}(),de(e)}/**
392 * @license
393 * Copyright (c) 2017 Aras Abbasi
394 *
395 * Licensed under the MIT License.
396 * http://opensource.org/licenses/mit-license
397 */function Si(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function h5(e){function t(M){if(!M)throw Error("assert :P")}function r(M,D,he){for(var H=0;4>H;H++)if(M[D+H]!=he.charCodeAt(H))return!0;return!1}function n(M,D,he,H,R){for(var X=0;X<R;X++)M[D+X]=he[H+X]}function i(M,D,he,H){for(var R=0;R<H;R++)M[D+R]=he}function o(M){return new Int32Array(M)}function a(M,D){for(var he=[],H=0;H<M;H++)he.push(new D);return he}function s(M,D){var he=[];return function H(R,X,T){for(var se=T[X],ye=0;ye<se&&(R.push(T.length>X+1?[]:new D),!(T.length<X+1));ye++)H(R[ye],X+1,T)}(he,0,M),he}var l=function(){var M=this;function D(u,m){for(var E=1<<m-1>>>0;u&E;)E>>>=1;return E?(u&E-1)+E:u}function he(u,m,E,O,q){t(!(O%E));do u[m+(O-=E)]=q;while(0<O)}function H(u,m,E,O,q){if(t(2328>=q),512>=q)var K=o(512);else if((K=o(q))==null)return 0;return function(J,te,ne,ce,we,Ne){var ke,Ae,je=te,Pe=1<<ne,be=o(16),Se=o(16);for(t(we!=0),t(ce!=null),t(J!=null),t(0<ne),Ae=0;Ae<we;++Ae){if(15<ce[Ae])return 0;++be[ce[Ae]]}if(be[0]==we)return 0;for(Se[1]=0,ke=1;15>ke;++ke){if(be[ke]>1<<ke)return 0;Se[ke+1]=Se[ke]+be[ke]}for(Ae=0;Ae<we;++Ae)ke=ce[Ae],0<ce[Ae]&&(Ne[Se[ke]++]=Ae);if(Se[15]==1)return(ce=new R).g=0,ce.value=Ne[0],he(J,je,1,Pe,ce),Pe;var Fe,Me=-1,De=Pe-1,Ye=0,Ge=1,it=1,Ke=1<<ne;for(Ae=0,ke=1,we=2;ke<=ne;++ke,we<<=1){if(Ge+=it<<=1,0>(it-=be[ke]))return 0;for(;0<be[ke];--be[ke])(ce=new R).g=ke,ce.value=Ne[Ae++],he(J,je+Ye,we,Ke,ce),Ye=D(Ye,ke)}for(ke=ne+1,we=2;15>=ke;++ke,we<<=1){if(Ge+=it<<=1,0>(it-=be[ke]))return 0;for(;0<be[ke];--be[ke]){if(ce=new R,(Ye&De)!=Me){for(je+=Ke,Fe=1<<(Me=ke)-ne;15>Me&&!(0>=(Fe-=be[Me]));)++Me,Fe<<=1;Pe+=Ke=1<<(Fe=Me-ne),J[te+(Me=Ye&De)].g=Fe+ne,J[te+Me].value=je-te-Me}ce.g=ke-ne,ce.value=Ne[Ae++],he(J,je+(Ye>>ne),we,Ke,ce),Ye=D(Ye,ke)}}return Ge!=2*Se[15]-1?0:Pe}(u,m,E,O,q,K)}function R(){this.value=this.g=0}function X(){this.value=this.g=0}function T(){this.G=a(5,R),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Wr,X)}function se(u,m,E,O){t(u!=null),t(m!=null),t(2147483648>O),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=m,u.pa=E,u.Jd=m,u.Yc=E+O,u.Zc=4<=O?E+O-4+1:E,C(u)}function ye(u,m){for(var E=0;0<m--;)E|=Y(u,128)<<m;return E}function ae(u,m){var E=ye(u,m);return L(u)?-E:E}function ue(u,m,E,O){var q,K=0;for(t(u!=null),t(m!=null),t(4294967288>O),u.Sb=O,u.Ra=0,u.u=0,u.h=0,4<O&&(O=4),q=0;q<O;++q)K+=m[E+q]<<8*q;u.Ra=K,u.bb=O,u.oa=m,u.pa=E}function oe(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<gs-8>>>0,++u.bb,u.u-=8;z(u)&&(u.h=1,u.u=0)}function me(u,m){if(t(0<=m),!u.h&&m<=ms){var E=B(u)&ps[m];return u.u+=m,oe(u),E}return u.h=1,u.u=0}function de(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function A(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(u){return u.Ra>>>(u.u&gs-1)>>>0}function z(u){return t(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>gs}function ee(u,m){u.u=m,u.h=z(u)}function V(u){u.u>=Zl&&(t(u.u>=Zl),oe(u))}function C(u){t(u!=null&&u.oa!=null),u.pa<u.Zc?(u.I=(u.oa[u.pa++]|u.I<<8)>>>0,u.b+=8):(t(u!=null&&u.oa!=null),u.pa<u.Yc?(u.b+=8,u.I=u.oa[u.pa++]|u.I<<8):u.Ka?u.b=0:(u.I<<=8,u.b+=8,u.Ka=1))}function L(u){return ye(u,1)}function Y(u,m){var E=u.Ca;0>u.b&&C(u);var O=u.b,q=E*m>>>8,K=(u.I>>>O>q)+0;for(K?(E-=q,u.I-=q+1<<O>>>0):E=q+1,O=E,q=0;256<=O;)q+=8,O>>=8;return O=7^q+wn[O],u.b-=O,u.Ca=(E<<O)-1,K}function Z(u,m,E){u[m+0]=E>>24&255,u[m+1]=E>>16&255,u[m+2]=E>>8&255,u[m+3]=E>>0&255}function U(u,m){return u[m+0]<<0|u[m+1]<<8}function G(u,m){return U(u,m)|u[m+2]<<16}function ge(u,m){return U(u,m)|U(u,m+2)<<16}function I(u,m){var E=1<<m;return t(u!=null),t(0<m),u.X=o(E),u.X==null?0:(u.Mb=32-m,u.Xa=m,1)}function le(u,m){t(u!=null),t(m!=null),t(u.Xa==m.Xa),n(m.X,0,u.X,0,1<<m.Xa)}function N(){this.X=[],this.Xa=this.Mb=0}function w(u,m,E,O){t(E!=null),t(O!=null);var q=E[0],K=O[0];return q==0&&(q=(u*K+m/2)/m),K==0&&(K=(m*q+u/2)/u),0>=q||0>=K?0:(E[0]=q,O[0]=K,1)}function b(u,m){return u+(1<<m)-1>>>m}function P(u,m){return((4278255360&u)+(4278255360&m)>>>0&4278255360)+((16711935&u)+(16711935&m)>>>0&16711935)>>>0}function Q(u,m){M[m]=function(E,O,q,K,J,te,ne){var ce;for(ce=0;ce<J;++ce){var we=M[u](te[ne+ce-1],q,K+ce);te[ne+ce]=P(E[O+ce],we)}}}function fe(){this.ud=this.hd=this.jd=0}function ie(u,m){return((4278124286&(u^m))>>>1)+(u&m)>>>0}function _e(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function Ce(u,m){return _e(u+(u-m+.5>>1))}function Le(u,m,E){return Math.abs(m-E)-Math.abs(u-E)}function Oe(u,m,E,O,q,K,J){for(O=K[J-1],E=0;E<q;++E)K[J+E]=O=P(u[m+E],O)}function We(u,m,E,O,q){var K;for(K=0;K<E;++K){var J=u[m+K],te=J>>8&255,ne=16711935&(ne=(ne=16711935&J)+((te<<16)+te));O[q+K]=(4278255360&J)+ne>>>0}}function $e(u,m){m.jd=u>>0&255,m.hd=u>>8&255,m.ud=u>>16&255}function Je(u,m,E,O,q,K){var J;for(J=0;J<O;++J){var te=m[E+J],ne=te>>>8,ce=te,we=255&(we=(we=te>>>16)+((u.jd<<24>>24)*(ne<<24>>24)>>>5));ce=255&(ce=(ce=ce+((u.hd<<24>>24)*(ne<<24>>24)>>>5))+((u.ud<<24>>24)*(we<<24>>24)>>>5)),q[K+J]=(4278255360&te)+(we<<16)+ce}}function at(u,m,E,O,q){M[m]=function(K,J,te,ne,ce,we,Ne,ke,Ae){for(ne=Ne;ne<ke;++ne)for(Ne=0;Ne<Ae;++Ne)ce[we++]=q(te[O(K[J++])])},M[u]=function(K,J,te,ne,ce,we,Ne){var ke=8>>K.b,Ae=K.Ea,je=K.K[0],Pe=K.w;if(8>ke)for(K=(1<<K.b)-1,Pe=(1<<ke)-1;J<te;++J){var be,Se=0;for(be=0;be<Ae;++be)be&K||(Se=O(ne[ce++])),we[Ne++]=q(je[Se&Pe]),Se>>=ke}else M["VP8LMapColor"+E](ne,ce,je,Pe,we,Ne,J,te,Ae)}}function Ve(u,m,E,O,q){for(E=m+E;m<E;){var K=u[m++];O[q++]=K>>16&255,O[q++]=K>>8&255,O[q++]=K>>0&255}}function Xt(u,m,E,O,q){for(E=m+E;m<E;){var K=u[m++];O[q++]=K>>16&255,O[q++]=K>>8&255,O[q++]=K>>0&255,O[q++]=K>>24&255}}function rt(u,m,E,O,q){for(E=m+E;m<E;){var K=(J=u[m++])>>16&240|J>>12&15,J=J>>0&240|J>>28&15;O[q++]=K,O[q++]=J}}function Or(u,m,E,O,q){for(E=m+E;m<E;){var K=(J=u[m++])>>16&248|J>>13&7,J=J>>5&224|J>>3&31;O[q++]=K,O[q++]=J}}function xt(u,m,E,O,q){for(E=m+E;m<E;){var K=u[m++];O[q++]=K>>0&255,O[q++]=K>>8&255,O[q++]=K>>16&255}}function vt(u,m,E,O,q,K){if(K==0)for(E=m+E;m<E;)Z(O,((K=u[m++])[0]>>24|K[1]>>8&65280|K[2]<<8&16711680|K[3]<<24)>>>0),q+=32;else n(O,q,u,m,E)}function cn(u,m){M[m][0]=M[u+"0"],M[m][1]=M[u+"1"],M[m][2]=M[u+"2"],M[m][3]=M[u+"3"],M[m][4]=M[u+"4"],M[m][5]=M[u+"5"],M[m][6]=M[u+"6"],M[m][7]=M[u+"7"],M[m][8]=M[u+"8"],M[m][9]=M[u+"9"],M[m][10]=M[u+"10"],M[m][11]=M[u+"11"],M[m][12]=M[u+"12"],M[m][13]=M[u+"13"],M[m][14]=M[u+"0"],M[m][15]=M[u+"0"]}function St(u){return u==ip||u==op||u==Zc||u==ap}function fi(){this.eb=[],this.size=this.A=this.fb=0}function qt(){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 Xr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new fi,this.f.kb=new qt,this.sd=null}function kt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function mt(){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 tt(u){return alert("todo:WebPSamplerProcessPlane"),u.T}function gt(u,m){var E=u.T,O=m.ba.f.RGBA,q=O.eb,K=O.fb+u.ka*O.A,J=ei[m.ba.S],te=u.y,ne=u.O,ce=u.f,we=u.N,Ne=u.ea,ke=u.W,Ae=m.cc,je=m.dc,Pe=m.Mc,be=m.Nc,Se=u.ka,Fe=u.ka+u.T,Me=u.U,De=Me+1>>1;for(Se==0?J(te,ne,null,null,ce,we,Ne,ke,ce,we,Ne,ke,q,K,null,null,Me):(J(m.ec,m.fc,te,ne,Ae,je,Pe,be,ce,we,Ne,ke,q,K-O.A,q,K,Me),++E);Se+2<Fe;Se+=2)Ae=ce,je=we,Pe=Ne,be=ke,we+=u.Rc,ke+=u.Rc,K+=2*O.A,J(te,(ne+=2*u.fa)-u.fa,te,ne,Ae,je,Pe,be,ce,we,Ne,ke,q,K-O.A,q,K,Me);return ne+=u.fa,u.j+Fe<u.o?(n(m.ec,m.fc,te,ne,Me),n(m.cc,m.dc,ce,we,De),n(m.Mc,m.Nc,Ne,ke,De),E--):1&Fe||J(te,ne,null,null,ce,we,Ne,ke,ce,we,Ne,ke,q,K+O.A,null,null,Me),E}function Ar(u,m,E){var O=u.F,q=[u.J];if(O!=null){var K=u.U,J=m.ba.S,te=J==Jc||J==Zc;m=m.ba.f.RGBA;var ne=[0],ce=u.ka;ne[0]=u.T,u.Kb&&(ce==0?--ne[0]:(--ce,q[0]-=u.width),u.j+u.ka+u.T==u.o&&(ne[0]=u.o-u.j-ce));var we=m.eb;ce=m.fb+ce*m.A,u=Vt(O,q[0],u.width,K,ne,we,ce+(te?0:3),m.A),t(E==ne),u&&St(J)&&Zn(we,ce,te,K,ne,m.A)}return 0}function Lt(u){var m=u.ma,E=m.ba.S,O=11>E,q=E==Xc||E==Yc||E==Jc||E==np||E==12||St(E);if(m.memory=null,m.Ib=null,m.Jb=null,m.Nd=null,!Yl(m.Oa,u,q?11:12))return 0;if(q&&St(E)&&Ue(),u.da)alert("todo:use_scaling");else{if(O){if(m.Ib=tt,u.Kb){if(E=u.U+1>>1,m.memory=o(u.U+2*E),m.memory==null)return 0;m.ec=m.memory,m.fc=0,m.cc=m.ec,m.dc=m.fc+u.U,m.Mc=m.cc,m.Nc=m.dc+E,m.Ib=gt,Ue()}}else alert("todo:EmitYUV");q&&(m.Jb=Ar,O&&Ee())}if(O&&!ry){for(u=0;256>u;++u)h3[u]=89858*(u-128)+ef>>Qc,m3[u]=-22014*(u-128)+ef,p3[u]=-45773*(u-128),d3[u]=113618*(u-128)+ef>>Qc;for(u=ou;u<up;++u)m=76283*(u-16)+ef>>Qc,g3[u-ou]=Fn(m,255),y3[u-ou]=Fn(m+8>>4,15);ry=1}return 1}function hr(u){var m=u.ma,E=u.U,O=u.T;return t(!(1&u.ka)),0>=E||0>=O?0:(E=m.Ib(u,m),m.Jb!=null&&m.Jb(u,m,E),m.Dc+=E,1)}function qr(u){u.ma.memory=null}function Ze(u,m,E,O){return me(u,8)!=47?0:(m[0]=me(u,14)+1,E[0]=me(u,14)+1,O[0]=me(u,1),me(u,3)!=0?0:!u.h)}function Er(u,m){if(4>u)return u+1;var E=u-2>>1;return(2+(1&u)<<E)+me(m,E)+1}function dr(u,m){return 120<m?m-120:1<=(E=((E=Z4[m-1])>>4)*u+(8-(15&E)))?E:1;var E}function er(u,m,E){var O=B(E),q=u[m+=255&O].g-8;return 0<q&&(ee(E,E.u+8),O=B(E),m+=u[m].value,m+=O&(1<<q)-1),ee(E,E.u+u[m].g),u[m].value}function Yt(u,m,E){return E.g+=u.g,E.value+=u.value<<m>>>0,t(8>=E.g),u.g}function Wt(u,m,E){var O=u.xc;return t((m=O==0?0:u.vc[u.md*(E>>O)+(m>>O)])<u.Wb),u.Ya[m]}function ar(u,m,E,O){var q=u.ab,K=u.c*m,J=u.C;m=J+m;var te=E,ne=O;for(O=u.Ta,E=u.Ua;0<q--;){var ce=u.gc[q],we=J,Ne=m,ke=te,Ae=ne,je=(ne=O,te=E,ce.Ea);switch(t(we<Ne),t(Ne<=ce.nc),ce.hc){case 2:qc(ke,Ae,(Ne-we)*je,ne,te);break;case 0:var Pe=we,be=Ne,Se=ne,Fe=te,Me=(Ke=ce).Ea;Pe==0&&(tp(ke,Ae,null,null,1,Se,Fe),Oe(ke,Ae+1,0,0,Me-1,Se,Fe+1),Ae+=Me,Fe+=Me,++Pe);for(var De=1<<Ke.b,Ye=De-1,Ge=b(Me,Ke.b),it=Ke.K,Ke=Ke.w+(Pe>>Ke.b)*Ge;Pe<be;){var Ct=it,Pt=Ke,Et=1;for(Ql(ke,Ae,Se,Fe-Me,1,Se,Fe);Et<Me;){var bt=(Et&~Ye)+De;bt>Me&&(bt=Me),(0,To[Ct[Pt++]>>8&15])(ke,Ae+ +Et,Se,Fe+Et-Me,bt-Et,Se,Fe+Et),Et=bt}Ae+=Me,Fe+=Me,++Pe&Ye||(Ke+=Ge)}Ne!=ce.nc&&n(ne,te-je,ne,te+(Ne-we-1)*je,je);break;case 1:for(je=ke,be=Ae,Me=(ke=ce.Ea)-(Fe=ke&~(Se=(Ae=1<<ce.b)-1)),Pe=b(ke,ce.b),De=ce.K,ce=ce.w+(we>>ce.b)*Pe;we<Ne;){for(Ye=De,Ge=ce,it=new fe,Ke=be+Fe,Ct=be+ke;be<Ke;)$e(Ye[Ge++],it),Sa(it,je,be,Ae,ne,te),be+=Ae,te+=Ae;be<Ct&&($e(Ye[Ge++],it),Sa(it,je,be,Me,ne,te),be+=Me,te+=Me),++we&Se||(ce+=Pe)}break;case 3:if(ke==ne&&Ae==te&&0<ce.b){for(be=ne,ke=je=te+(Ne-we)*je-(Fe=(Ne-we)*b(ce.Ea,ce.b)),Ae=ne,Se=te,Pe=[],Fe=(Me=Fe)-1;0<=Fe;--Fe)Pe[Fe]=Ae[Se+Fe];for(Fe=Me-1;0<=Fe;--Fe)be[ke+Fe]=Pe[Fe];Xn(ce,we,Ne,ne,je,ne,te)}else Xn(ce,we,Ne,ke,Ae,ne,te)}te=O,ne=E}ne!=E&&n(O,E,te,ne,K)}function Gn(u,m){var E=u.V,O=u.Ba+u.c*u.C,q=m-u.C;if(t(m<=u.l.o),t(16>=q),0<q){var K=u.l,J=u.Ta,te=u.Ua,ne=K.width;if(ar(u,q,E,O),q=te=[te],t((E=u.C)<(O=m)),t(K.v<K.va),O>K.o&&(O=K.o),E<K.j){var ce=K.j-E;E=K.j,q[0]+=ce*ne}if(E>=O?E=0:(q[0]+=4*K.v,K.ka=E-K.j,K.U=K.va-K.v,K.T=O-E,E=1),E){if(te=te[0],11>(E=u.ca).S){var we=E.f.RGBA,Ne=(O=E.S,q=K.U,K=K.T,ce=we.eb,we.A),ke=K;for(we=we.fb+u.Ma*we.A;0<ke--;){var Ae=J,je=te,Pe=q,be=ce,Se=we;switch(O){case Kc:bn(Ae,je,Pe,be,Se);break;case Xc:fn(Ae,je,Pe,be,Se);break;case ip:fn(Ae,je,Pe,be,Se),Zn(be,Se,0,Pe,1,0);break;case Gg:ao(Ae,je,Pe,be,Se);break;case Yc:vt(Ae,je,Pe,be,Se,1);break;case op:vt(Ae,je,Pe,be,Se,1),Zn(be,Se,0,Pe,1,0);break;case Jc:vt(Ae,je,Pe,be,Se,0);break;case Zc:vt(Ae,je,Pe,be,Se,0),Zn(be,Se,1,Pe,1,0);break;case np:Po(Ae,je,Pe,be,Se);break;case ap:Po(Ae,je,Pe,be,Se),Ht(be,Se,Pe,1,0);break;case Kg:oo(Ae,je,Pe,be,Se);break;default:t(0)}te+=ne,we+=Ne}u.Ma+=K}else alert("todo:EmitRescaledRowsYUVA");t(u.Ma<=E.height)}}u.C=m,t(u.C<=u.i)}function On(u){var m;if(0<u.ua)return 0;for(m=0;m<u.Wb;++m){var E=u.Ya[m].G,O=u.Ya[m].H;if(0<E[1][O[1]+0].g||0<E[2][O[2]+0].g||0<E[3][O[3]+0].g)return 0}return 1}function hi(u,m,E,O,q,K){if(u.Z!=0){var J=u.qd,te=u.rd;for(t(Fo[u.Z]!=null);m<E;++m)Fo[u.Z](J,te,O,q,O,q,K),J=O,te=q,q+=K;u.qd=J,u.rd=te}}function di(u,m){var E=u.l.ma,O=E.Z==0||E.Z==1?u.l.j:u.C;if(O=u.C<O?O:u.C,t(m<=u.l.o),m>O){var q=u.l.width,K=E.ca,J=E.tb+q*O,te=u.V,ne=u.Ba+u.c*O,ce=u.gc;t(u.ab==1),t(ce[0].hc==3),Wc(ce[0],O,m,te,ne,K,J),hi(E,O,m,K,J,q)}u.C=u.Ma=m}function pi(u,m,E,O,q,K,J){var te=u.$/O,ne=u.$%O,ce=u.m,we=u.s,Ne=E+u.$,ke=Ne;q=E+O*q;var Ae=E+O*K,je=280+we.ua,Pe=u.Pb?te:16777216,be=0<we.ua?we.Wa:null,Se=we.wc,Fe=Ne<Ae?Wt(we,ne,te):null;t(u.C<K),t(Ae<=q);var Me=!1;e:for(;;){for(;Me||Ne<Ae;){var De=0;if(te>=Pe){var Ye=Ne-E;t((Pe=u).Pb),Pe.wd=Pe.m,Pe.xd=Ye,0<Pe.s.ua&&le(Pe.s.Wa,Pe.s.vb),Pe=te+e3}if(ne&Se||(Fe=Wt(we,ne,te)),t(Fe!=null),Fe.Qb&&(m[Ne]=Fe.qb,Me=!0),!Me)if(V(ce),Fe.jc){De=ce,Ye=m;var Ge=Ne,it=Fe.pd[B(De)&Wr-1];t(Fe.jc),256>it.g?(ee(De,De.u+it.g),Ye[Ge]=it.value,De=0):(ee(De,De.u+it.g-256),t(256<=it.value),De=it.value),De==0&&(Me=!0)}else De=er(Fe.G[0],Fe.H[0],ce);if(ce.h)break;if(Me||256>De){if(!Me)if(Fe.nd)m[Ne]=(Fe.qb|De<<8)>>>0;else{if(V(ce),Me=er(Fe.G[1],Fe.H[1],ce),V(ce),Ye=er(Fe.G[2],Fe.H[2],ce),Ge=er(Fe.G[3],Fe.H[3],ce),ce.h)break;m[Ne]=(Ge<<24|Me<<16|De<<8|Ye)>>>0}if(Me=!1,++Ne,++ne>=O&&(ne=0,++te,J!=null&&te<=K&&!(te%16)&&J(u,te),be!=null))for(;ke<Ne;)De=m[ke++],be.X[(506832829*De&4294967295)>>>be.Mb]=De}else if(280>De){if(De=Er(De-256,ce),Ye=er(Fe.G[4],Fe.H[4],ce),V(ce),Ye=dr(O,Ye=Er(Ye,ce)),ce.h)break;if(Ne-E<Ye||q-Ne<De)break e;for(Ge=0;Ge<De;++Ge)m[Ne+Ge]=m[Ne+Ge-Ye];for(Ne+=De,ne+=De;ne>=O;)ne-=O,++te,J!=null&&te<=K&&!(te%16)&&J(u,te);if(t(Ne<=q),ne&Se&&(Fe=Wt(we,ne,te)),be!=null)for(;ke<Ne;)De=m[ke++],be.X[(506832829*De&4294967295)>>>be.Mb]=De}else{if(!(De<je))break e;for(Me=De-280,t(be!=null);ke<Ne;)De=m[ke++],be.X[(506832829*De&4294967295)>>>be.Mb]=De;De=Ne,t(!(Me>>>(Ye=be).Xa)),m[De]=Ye.X[Me],Me=!0}Me||t(ce.h==z(ce))}if(u.Pb&&ce.h&&Ne<q)t(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&le(u.s.vb,u.s.Wa);else{if(ce.h)break e;J!=null&&J(u,te>K?K:te),u.a=0,u.$=Ne-E}return 1}return u.a=3,0}function Di(u){t(u!=null),u.vc=null,u.yc=null,u.Ya=null;var m=u.Wa;m!=null&&(m.X=null),u.vb=null,t(u!=null)}function Kn(){var u=new ep;return u==null?null:(u.a=0,u.xb=Jg,cn("Predictor","VP8LPredictors"),cn("Predictor","VP8LPredictors_C"),cn("PredictorAdd","VP8LPredictorsAdd"),cn("PredictorAdd","VP8LPredictorsAdd_C"),qc=We,Sa=Je,bn=Ve,fn=Xt,Po=rt,oo=Or,ao=xt,M.VP8LMapColor32b=ys,M.VP8LMapColor8b=Hc,u)}function ji(u,m,E,O,q){var K=1,J=[u],te=[m],ne=O.m,ce=O.s,we=null,Ne=0;e:for(;;){if(E)for(;K&&me(ne,1);){var ke=J,Ae=te,je=O,Pe=1,be=je.m,Se=je.gc[je.ab],Fe=me(be,2);if(je.Oc&1<<Fe)K=0;else{switch(je.Oc|=1<<Fe,Se.hc=Fe,Se.Ea=ke[0],Se.nc=Ae[0],Se.K=[null],++je.ab,t(4>=je.ab),Fe){case 0:case 1:Se.b=me(be,3)+2,Pe=ji(b(Se.Ea,Se.b),b(Se.nc,Se.b),0,je,Se.K),Se.K=Se.K[0];break;case 3:var Me,De=me(be,8)+1,Ye=16<De?0:4<De?1:2<De?2:3;if(ke[0]=b(Se.Ea,Ye),Se.b=Ye,Me=Pe=ji(De,1,0,je,Se.K)){var Ge,it=De,Ke=Se,Ct=1<<(8>>Ke.b),Pt=o(Ct);if(Pt==null)Me=0;else{var Et=Ke.K[0],bt=Ke.w;for(Pt[0]=Ke.K[0][0],Ge=1;Ge<1*it;++Ge)Pt[Ge]=P(Et[bt+Ge],Pt[Ge-1]);for(;Ge<4*Ct;++Ge)Pt[Ge]=0;Ke.K[0]=null,Ke.K[0]=Pt,Me=1}}Pe=Me;break;case 2:break;default:t(0)}K=Pe}}if(J=J[0],te=te[0],K&&me(ne,1)&&!(K=1<=(Ne=me(ne,4))&&11>=Ne)){O.a=3;break e}var Mt;if(Mt=K)t:{var jt,pt,kr,xn=O,Lr=J,Sn=te,It=Ne,jn=E,Bn=xn.m,Dr=xn.s,Hr=[null],dn=1,ti=0,Ui=Q4[It];r:for(;;){if(jn&&me(Bn,1)){var jr=me(Bn,3)+2,co=b(Lr,jr),ka=b(Sn,jr),Ss=co*ka;if(!ji(co,ka,0,xn,Hr))break r;for(Hr=Hr[0],Dr.xc=jr,jt=0;jt<Ss;++jt){var Do=Hr[jt]>>8&65535;Hr[jt]=Do,Do>=dn&&(dn=Do+1)}}if(Bn.h)break r;for(pt=0;5>pt;++pt){var lr=Xg[pt];!pt&&0<It&&(lr+=1<<It),ti<lr&&(ti=lr)}var cp=a(dn*Ui,R),oy=dn,ay=a(oy,T);if(ay==null)var rf=null;else t(65536>=oy),rf=ay;var au=o(ti);if(rf==null||au==null||cp==null){xn.a=1;break r}var nf=cp;for(jt=kr=0;jt<dn;++jt){var wi=rf[jt],_s=wi.G,As=wi.H,sy=0,of=1,ly=0;for(pt=0;5>pt;++pt){lr=Xg[pt],_s[pt]=nf,As[pt]=kr,!pt&&0<It&&(lr+=1<<It);i:{var af,fp=lr,sf=xn,su=au,b3=nf,x3=kr,hp=0,jo=sf.m,S3=me(jo,1);if(i(su,0,0,fp),S3){var _3=me(jo,1)+1,A3=me(jo,1),uy=me(jo,A3==0?1:8);su[uy]=1,_3==2&&(su[uy=me(jo,8)]=1);var lf=1}else{var cy=o(19),fy=me(jo,4)+4;if(19<fy){sf.a=3;var uf=0;break i}for(af=0;af<fy;++af)cy[J4[af]]=me(jo,3);var dp=void 0,lu=void 0,hy=sf,E3=cy,cf=fp,dy=su,pp=0,Bo=hy.m,py=8,my=a(128,R);n:for(;H(my,0,7,E3,19);){if(me(Bo,1)){var N3=2+2*me(Bo,3);if((dp=2+me(Bo,N3))>cf)break n}else dp=cf;for(lu=0;lu<cf&&dp--;){V(Bo);var gy=my[0+(127&B(Bo))];ee(Bo,Bo.u+gy.g);var Es=gy.value;if(16>Es)dy[lu++]=Es,Es!=0&&(py=Es);else{var k3=Es==16,yy=Es-16,L3=X4[yy],vy=me(Bo,K4[yy])+L3;if(lu+vy>cf)break n;for(var C3=k3?py:0;0<vy--;)dy[lu++]=C3}}pp=1;break n}pp||(hy.a=3),lf=pp}(lf=lf&&!jo.h)&&(hp=H(b3,x3,8,su,fp)),lf&&hp!=0?uf=hp:(sf.a=3,uf=0)}if(uf==0)break r;if(of&&Y4[pt]==1&&(of=nf[kr].g==0),sy+=nf[kr].g,kr+=uf,3>=pt){var uu,mp=au[0];for(uu=1;uu<lr;++uu)au[uu]>mp&&(mp=au[uu]);ly+=mp}}if(wi.nd=of,wi.Qb=0,of&&(wi.qb=(_s[3][As[3]+0].value<<24|_s[1][As[1]+0].value<<16|_s[2][As[2]+0].value)>>>0,sy==0&&256>_s[0][As[0]+0].value&&(wi.Qb=1,wi.qb+=_s[0][As[0]+0].value<<8)),wi.jc=!wi.Qb&&6>ly,wi.jc){var ff,fo=wi;for(ff=0;ff<Wr;++ff){var Mo=ff,zo=fo.pd[Mo],hf=fo.G[0][fo.H[0]+Mo];256<=hf.value?(zo.g=hf.g+256,zo.value=hf.value):(zo.g=0,zo.value=0,Mo>>=Yt(hf,8,zo),Mo>>=Yt(fo.G[1][fo.H[1]+Mo],16,zo),Mo>>=Yt(fo.G[2][fo.H[2]+Mo],0,zo),Yt(fo.G[3][fo.H[3]+Mo],24,zo))}}}Dr.vc=Hr,Dr.Wb=dn,Dr.Ya=rf,Dr.yc=cp,Mt=1;break t}Mt=0}if(!(K=Mt)){O.a=3;break e}if(0<Ne){if(ce.ua=1<<Ne,!I(ce.Wa,Ne)){O.a=1,K=0;break e}}else ce.ua=0;var gp=O,wy=J,T3=te,yp=gp.s,vp=yp.xc;if(gp.c=wy,gp.i=T3,yp.md=b(wy,vp),yp.wc=vp==0?-1:(1<<vp)-1,E){O.xb=s3;break e}if((we=o(J*te))==null){O.a=1,K=0;break e}K=(K=pi(O,we,0,J,te,te,null))&&!ne.h;break e}return K?(q!=null?q[0]=we:(t(we==null),t(E)),O.$=0,E||Di(ce)):Di(ce),K}function ya(u,m){var E=u.c*u.i,O=E+m+16*m;return t(u.c<=m),u.V=o(O),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+E+m,1)}function Za(u,m){var E=u.C,O=m-E,q=u.V,K=u.Ba+u.c*E;for(t(m<=u.l.o);0<O;){var J=16<O?16:O,te=u.l.ma,ne=u.l.width,ce=ne*J,we=te.ca,Ne=te.tb+ne*E,ke=u.Ta,Ae=u.Ua;ar(u,J,q,K),gr(ke,Ae,we,Ne,ce),hi(te,E,E+J,we,Ne,ne),O-=J,q+=J*u.c,E+=J}t(E==m),u.C=u.Ma=m}function Qa(){this.ub=this.yd=this.td=this.Rb=0}function es(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ts(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Sc(){this.Yb=function(){var u=[];return function m(E,O,q){for(var K=q[O],J=0;J<K&&(E.push(q.length>O+1?[]:0),!(q.length<O+1));J++)m(E[J],O+1,q)}(u,0,[3,11]),u}()}function Pd(){this.jb=o(3),this.Wc=s([4,8],Sc),this.Xc=s([4,17],Sc)}function Id(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function rs(){this.ld=this.La=this.dd=this.tc=0}function _c(){this.Na=this.la=0}function Rd(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ol(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Od(){this.uc=this.M=this.Nb=0,this.wa=Array(new rs),this.Y=0,this.ya=Array(new Ol),this.aa=0,this.l=new ns}function Ac(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Fd(){this.cb=this.a=0,this.sc="",this.m=new de,this.Od=new Qa,this.Kc=new es,this.ed=new Id,this.Qa=new ts,this.Ic=this.$c=this.Aa=0,this.D=new Od,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,de),this.ia=0,this.pb=a(4,Rd),this.Pa=new Pd,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ac),this.Hd=0,this.rb=Array(new _c),this.sb=0,this.wa=Array(new rs),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 Ol),this.L=this.aa=0,this.gd=s([4,2],rs),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 ns(){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 Dd(){var u=new Fd;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,iu||(iu=kc)),u}function pr(u,m,E){return u.a==0&&(u.a=m,u.sc=E,u.cb=0),0}function Ec(u,m,E){return 3<=E&&u[m+0]==157&&u[m+1]==1&&u[m+2]==42}function Nc(u,m){if(u==null)return 0;if(u.a=0,u.sc="OK",m==null)return pr(u,2,"null VP8Io passed to VP8GetHeaders()");var E=m.data,O=m.w,q=m.ha;if(4>q)return pr(u,7,"Truncated header.");var K=E[O+0]|E[O+1]<<8|E[O+2]<<16,J=u.Od;if(J.Rb=!(1&K),J.td=K>>1&7,J.yd=K>>4&1,J.ub=K>>5,3<J.td)return pr(u,3,"Incorrect keyframe parameters.");if(!J.yd)return pr(u,4,"Frame not displayable.");O+=3,q-=3;var te=u.Kc;if(J.Rb){if(7>q)return pr(u,7,"cannot parse picture header");if(!Ec(E,O,q))return pr(u,3,"Bad code word");te.c=16383&(E[O+4]<<8|E[O+3]),te.Td=E[O+4]>>6,te.i=16383&(E[O+6]<<8|E[O+5]),te.Ud=E[O+6]>>6,O+=7,q-=7,u.za=te.c+15>>4,u.Ub=te.i+15>>4,m.width=te.c,m.height=te.i,m.Da=0,m.j=0,m.v=0,m.va=m.width,m.o=m.height,m.da=0,m.ib=m.width,m.hb=m.height,m.U=m.width,m.T=m.height,i((K=u.Pa).jb,0,255,K.jb.length),t((K=u.Qa)!=null),K.Cb=0,K.Bb=0,K.Fb=1,i(K.Zb,0,0,K.Zb.length),i(K.Lb,0,0,K.Lb)}if(J.ub>q)return pr(u,7,"bad partition length");se(K=u.m,E,O,J.ub),O+=J.ub,q-=J.ub,J.Rb&&(te.Ld=L(K),te.Kd=L(K)),te=u.Qa;var ne,ce=u.Pa;if(t(K!=null),t(te!=null),te.Cb=L(K),te.Cb){if(te.Bb=L(K),L(K)){for(te.Fb=L(K),ne=0;4>ne;++ne)te.Zb[ne]=L(K)?ae(K,7):0;for(ne=0;4>ne;++ne)te.Lb[ne]=L(K)?ae(K,6):0}if(te.Bb)for(ne=0;3>ne;++ne)ce.jb[ne]=L(K)?ye(K,8):255}else te.Bb=0;if(K.Ka)return pr(u,3,"cannot parse segment header");if((te=u.ed).zd=L(K),te.Tb=ye(K,6),te.wb=ye(K,3),te.Pc=L(K),te.Pc&&L(K)){for(ce=0;4>ce;++ce)L(K)&&(te.vd[ce]=ae(K,6));for(ce=0;4>ce;++ce)L(K)&&(te.od[ce]=ae(K,6))}if(u.L=te.Tb==0?0:te.zd?1:2,K.Ka)return pr(u,3,"cannot parse filter header");var we=q;if(q=ne=O,O=ne+we,te=we,u.Xb=(1<<ye(u.m,2))-1,we<3*(ce=u.Xb))E=7;else{for(ne+=3*ce,te-=3*ce,we=0;we<ce;++we){var Ne=E[q+0]|E[q+1]<<8|E[q+2]<<16;Ne>te&&(Ne=te),se(u.Jc[+we],E,ne,Ne),ne+=Ne,te-=Ne,q+=3}se(u.Jc[+ce],E,ne,te),E=ne<O?0:5}if(E!=0)return pr(u,E,"cannot parse partitions");for(E=ye(ne=u.m,7),q=L(ne)?ae(ne,4):0,O=L(ne)?ae(ne,4):0,te=L(ne)?ae(ne,4):0,ce=L(ne)?ae(ne,4):0,ne=L(ne)?ae(ne,4):0,we=u.Qa,Ne=0;4>Ne;++Ne){if(we.Cb){var ke=we.Zb[Ne];we.Fb||(ke+=E)}else{if(0<Ne){u.pb[Ne]=u.pb[0];continue}ke=E}var Ae=u.pb[Ne];Ae.Sc[0]=sp[Fn(ke+q,127)],Ae.Sc[1]=lp[Fn(ke+0,127)],Ae.Eb[0]=2*sp[Fn(ke+O,127)],Ae.Eb[1]=101581*lp[Fn(ke+te,127)]>>16,8>Ae.Eb[1]&&(Ae.Eb[1]=8),Ae.Qc[0]=sp[Fn(ke+ce,117)],Ae.Qc[1]=lp[Fn(ke+ne,127)],Ae.lc=ke+ne}if(!J.Rb)return pr(u,4,"Not a key frame.");for(L(K),J=u.Pa,E=0;4>E;++E){for(q=0;8>q;++q)for(O=0;3>O;++O)for(te=0;11>te;++te)ce=Y(K,o3[E][q][O][te])?ye(K,8):n3[E][q][O][te],J.Wc[E][q].Yb[O][te]=ce;for(q=0;17>q;++q)J.Xc[E][q]=J.Wc[E][a3[q]]}return u.kc=L(K),u.kc&&(u.Bd=ye(K,8)),u.cb=1}function kc(u,m,E,O,q,K,J){var te=m[q].Yb[E];for(E=0;16>q;++q){if(!Y(u,te[E+0]))return q;for(;!Y(u,te[E+1]);)if(te=m[++q].Yb[0],E=0,q==16)return 16;var ne=m[q+1].Yb;if(Y(u,te[E+2])){var ce=u,we=0;if(Y(ce,(ke=te)[(Ne=E)+3]))if(Y(ce,ke[Ne+6])){for(te=0,Ne=2*(we=Y(ce,ke[Ne+8]))+(ke=Y(ce,ke[Ne+9+we])),we=0,ke=t3[Ne];ke[te];++te)we+=we+Y(ce,ke[te]);we+=3+(8<<Ne)}else Y(ce,ke[Ne+7])?(we=7+2*Y(ce,165),we+=Y(ce,145)):we=5+Y(ce,159);else we=Y(ce,ke[Ne+4])?3+Y(ce,ke[Ne+5]):2;te=ne[2]}else we=1,te=ne[1];ne=J+r3[q],0>(ce=u).b&&C(ce);var Ne,ke=ce.b,Ae=(Ne=ce.Ca>>1)-(ce.I>>ke)>>31;--ce.b,ce.Ca+=Ae,ce.Ca|=1,ce.I-=(Ne+1&Ae)<<ke,K[ne]=((we^Ae)-Ae)*O[(0<q)+0]}return 16}function Fl(u){var m=u.rb[u.sb-1];m.la=0,m.Na=0,i(u.zc,0,0,u.zc.length),u.ja=0}function jd(u,m){if(u==null)return 0;if(m==null)return pr(u,2,"NULL VP8Io parameter in VP8Decode().");if(!u.cb&&!Nc(u,m))return 0;if(t(u.cb),m.ac==null||m.ac(m)){m.ob&&(u.L=0);var E=tf[u.L];if(u.L==2?(u.yb=0,u.zb=0):(u.yb=m.v-E>>4,u.zb=m.j-E>>4,0>u.yb&&(u.yb=0),0>u.zb&&(u.zb=0)),u.Va=m.o+15+E>>4,u.Hb=m.va+15+E>>4,u.Hb>u.za&&(u.Hb=u.za),u.Va>u.Ub&&(u.Va=u.Ub),0<u.L){var O=u.ed;for(E=0;4>E;++E){var q;if(u.Qa.Cb){var K=u.Qa.Lb[E];u.Qa.Fb||(K+=O.Tb)}else K=O.Tb;for(q=0;1>=q;++q){var J=u.gd[E][q],te=K;if(O.Pc&&(te+=O.vd[0],q&&(te+=O.od[0])),0<(te=0>te?0:63<te?63:te)){var ne=te;0<O.wb&&(ne=4<O.wb?ne>>2:ne>>1)>9-O.wb&&(ne=9-O.wb),1>ne&&(ne=1),J.dd=ne,J.tc=2*te+ne,J.ld=40<=te?2:15<=te?1:0}else J.tc=0;J.La=q}}}E=0}else pr(u,6,"Frame setup failed"),E=u.a;if(E=E==0){if(E){u.$c=0,0<u.Aa||(u.Ic=w3);e:{E=u.Ic,O=4*(ne=u.za);var ce=32*ne,we=ne+1,Ne=0<u.L?ne*(0<u.Aa?2:1):0,ke=(u.Aa==2?2:1)*ne;if((J=O+832+(q=3*(16*E+tf[u.L])/2*ce)+(K=u.Fa!=null&&0<u.Fa.length?u.Kc.c*u.Kc.i:0))!=J)E=0;else{if(J>u.Vb){if(u.Vb=0,u.Ec=o(J),u.Fc=0,u.Ec==null){E=pr(u,1,"no memory during frame initialization.");break e}u.Vb=J}J=u.Ec,te=u.Fc,u.Ac=J,u.Bc=te,te+=O,u.Gd=a(ce,Ac),u.Hd=0,u.rb=a(we+1,_c),u.sb=1,u.wa=Ne?a(Ne,rs):null,u.Y=0,u.D.Nb=0,u.D.wa=u.wa,u.D.Y=u.Y,0<u.Aa&&(u.D.Y+=ne),t(!0),u.oc=J,u.pc=te,te+=832,u.ya=a(ke,Ol),u.aa=0,u.D.ya=u.ya,u.D.aa=u.aa,u.Aa==2&&(u.D.aa+=ne),u.R=16*ne,u.B=8*ne,ne=(ce=tf[u.L])*u.R,ce=ce/2*u.B,u.sa=J,u.ta=te+ne,u.qa=u.sa,u.ra=u.ta+16*E*u.R+ce,u.Ha=u.qa,u.Ia=u.ra+8*E*u.B+ce,u.$c=0,te+=q,u.mb=K?J:null,u.nb=K?te:null,t(te+K<=u.Fc+u.Vb),Fl(u),i(u.Ac,u.Bc,0,O),E=1}}if(E){if(m.ka=0,m.y=u.sa,m.O=u.ta,m.f=u.qa,m.N=u.ra,m.ea=u.Ha,m.Vd=u.Ia,m.fa=u.R,m.Rc=u.B,m.F=null,m.J=0,!$c){for(E=-255;255>=E;++E)Tr[255+E]=0>E?-E:E;for(E=-1020;1020>=E;++E)lo[1020+E]=-128>E?-128:127<E?127:E;for(E=-112;112>=E;++E)nu[112+E]=-16>E?-16:15<E?15:E;for(E=-255;510>=E;++E)xs[255+E]=0>E?0:255<E?255:E;$c=1}vs=zd,so=Bd,eu=Cc,hn=Md,Yn=Tc,mr=Lc,ws=Ul,Vc=ba,tu=Qd,_a=ql,Aa=Zd,Io=us,Ea=Wl,bs=Mc,Na=Bc,Ro=Mi,ru=io,Jn=Jd,vi[0]=Bi,vi[1]=Ud,vi[2]=Vd,vi[3]=$d,vi[4]=Rc,vi[5]=ss,vi[6]=Oc,vi[7]=Bl,vi[8]=Kd,vi[9]=Gd,Oo[0]=Pc,Oo[1]=Wd,Oo[2]=no,Oo[3]=os,Oo[4]=Yr,Oo[5]=Hd,Oo[6]=Ic,uo[0]=ko,uo[1]=qd,uo[2]=Xd,uo[3]=Ml,uo[4]=wa,uo[5]=Yd,uo[6]=zl,E=1}else E=0}E&&(E=function(Ae,je){for(Ae.M=0;Ae.M<Ae.Va;++Ae.M){var Pe,be=Ae.Jc[Ae.M&Ae.Xb],Se=Ae.m,Fe=Ae;for(Pe=0;Pe<Fe.za;++Pe){var Me=Se,De=Fe,Ye=De.Ac,Ge=De.Bc+4*Pe,it=De.zc,Ke=De.ya[De.aa+Pe];if(De.Qa.Bb?Ke.$b=Y(Me,De.Pa.jb[0])?2+Y(Me,De.Pa.jb[2]):Y(Me,De.Pa.jb[1]):Ke.$b=0,De.kc&&(Ke.Ad=Y(Me,De.Bd)),Ke.Za=!Y(Me,145)+0,Ke.Za){var Ct=Ke.Ob,Pt=0;for(De=0;4>De;++De){var Et,bt=it[0+De];for(Et=0;4>Et;++Et){bt=i3[Ye[Ge+Et]][bt];for(var Mt=Yg[Y(Me,bt[0])];0<Mt;)Mt=Yg[2*Mt+Y(Me,bt[Mt])];bt=-Mt,Ye[Ge+Et]=bt}n(Ct,Pt,Ye,Ge,4),Pt+=4,it[0+De]=bt}}else bt=Y(Me,156)?Y(Me,128)?1:3:Y(Me,163)?2:0,Ke.Ob[0]=bt,i(Ye,Ge,bt,4),i(it,0,bt,4);Ke.Dd=Y(Me,142)?Y(Me,114)?Y(Me,183)?1:3:2:0}if(Fe.m.Ka)return pr(Ae,7,"Premature end-of-partition0 encountered.");for(;Ae.ja<Ae.za;++Ae.ja){if(Fe=be,Me=(Se=Ae).rb[Se.sb-1],Ye=Se.rb[Se.sb+Se.ja],Pe=Se.ya[Se.aa+Se.ja],Ge=Se.kc?Pe.Ad:0)Me.la=Ye.la=0,Pe.Za||(Me.Na=Ye.Na=0),Pe.Hc=0,Pe.Gc=0,Pe.ia=0;else{var jt,pt;if(Me=Ye,Ye=Fe,Ge=Se.Pa.Xc,it=Se.ya[Se.aa+Se.ja],Ke=Se.pb[it.$b],De=it.ad,Ct=0,Pt=Se.rb[Se.sb-1],bt=Et=0,i(De,Ct,0,384),it.Za)var kr=0,xn=Ge[3];else{Mt=o(16);var Lr=Me.Na+Pt.Na;if(Lr=iu(Ye,Ge[1],Lr,Ke.Eb,0,Mt,0),Me.Na=Pt.Na=(0<Lr)+0,1<Lr)vs(Mt,0,De,Ct);else{var Sn=Mt[0]+3>>3;for(Mt=0;256>Mt;Mt+=16)De[Ct+Mt]=Sn}kr=1,xn=Ge[0]}var It=15&Me.la,jn=15&Pt.la;for(Mt=0;4>Mt;++Mt){var Bn=1&jn;for(Sn=pt=0;4>Sn;++Sn)It=It>>1|(Bn=(Lr=iu(Ye,xn,Lr=Bn+(1&It),Ke.Sc,kr,De,Ct))>kr)<<7,pt=pt<<2|(3<Lr?3:1<Lr?2:De[Ct+0]!=0),Ct+=16;It>>=4,jn=jn>>1|Bn<<7,Et=(Et<<8|pt)>>>0}for(xn=It,kr=jn>>4,jt=0;4>jt;jt+=2){for(pt=0,It=Me.la>>4+jt,jn=Pt.la>>4+jt,Mt=0;2>Mt;++Mt){for(Bn=1&jn,Sn=0;2>Sn;++Sn)Lr=Bn+(1&It),It=It>>1|(Bn=0<(Lr=iu(Ye,Ge[2],Lr,Ke.Qc,0,De,Ct)))<<3,pt=pt<<2|(3<Lr?3:1<Lr?2:De[Ct+0]!=0),Ct+=16;It>>=2,jn=jn>>1|Bn<<5}bt|=pt<<4*jt,xn|=It<<4<<jt,kr|=(240&jn)<<jt}Me.la=xn,Pt.la=kr,it.Hc=Et,it.Gc=bt,it.ia=43690&bt?0:Ke.ia,Ge=!(Et|bt)}if(0<Se.L&&(Se.wa[Se.Y+Se.ja]=Se.gd[Pe.$b][Pe.Za],Se.wa[Se.Y+Se.ja].La|=!Ge),Fe.Ka)return pr(Ae,7,"Premature end-of-file encountered.")}if(Fl(Ae),Se=je,Fe=1,Pe=(be=Ae).D,Me=0<be.L&&be.M>=be.zb&&be.M<=be.Va,be.Aa==0)e:{if(Pe.M=be.M,Pe.uc=Me,Xl(be,Pe),Fe=1,Pe=(pt=be.D).Nb,Me=(bt=tf[be.L])*be.R,Ye=bt/2*be.B,Mt=16*Pe*be.R,Sn=8*Pe*be.B,Ge=be.sa,it=be.ta-Me+Mt,Ke=be.qa,De=be.ra-Ye+Sn,Ct=be.Ha,Pt=be.Ia-Ye+Sn,jn=(It=pt.M)==0,Et=It>=be.Va-1,be.Aa==2&&Xl(be,pt),pt.uc)for(Bn=(Lr=be).D.M,t(Lr.D.uc),pt=Lr.yb;pt<Lr.Hb;++pt){kr=pt,xn=Bn;var Dr=(Hr=(lr=Lr).D).Nb;jt=lr.R;var Hr=Hr.wa[Hr.Y+kr],dn=lr.sa,ti=lr.ta+16*Dr*jt+16*kr,Ui=Hr.dd,jr=Hr.tc;if(jr!=0)if(t(3<=jr),lr.L==1)0<kr&&Ro(dn,ti,jt,jr+4),Hr.La&&Jn(dn,ti,jt,jr),0<xn&&Na(dn,ti,jt,jr+4),Hr.La&&ru(dn,ti,jt,jr);else{var co=lr.B,ka=lr.qa,Ss=lr.ra+8*Dr*co+8*kr,Do=lr.Ha,lr=lr.Ia+8*Dr*co+8*kr;Dr=Hr.ld,0<kr&&(Vc(dn,ti,jt,jr+4,Ui,Dr),_a(ka,Ss,Do,lr,co,jr+4,Ui,Dr)),Hr.La&&(Io(dn,ti,jt,jr,Ui,Dr),bs(ka,Ss,Do,lr,co,jr,Ui,Dr)),0<xn&&(ws(dn,ti,jt,jr+4,Ui,Dr),tu(ka,Ss,Do,lr,co,jr+4,Ui,Dr)),Hr.La&&(Aa(dn,ti,jt,jr,Ui,Dr),Ea(ka,Ss,Do,lr,co,jr,Ui,Dr))}}if(be.ia&&alert("todo:DitherRow"),Se.put!=null){if(pt=16*It,It=16*(It+1),jn?(Se.y=be.sa,Se.O=be.ta+Mt,Se.f=be.qa,Se.N=be.ra+Sn,Se.ea=be.Ha,Se.W=be.Ia+Sn):(pt-=bt,Se.y=Ge,Se.O=it,Se.f=Ke,Se.N=De,Se.ea=Ct,Se.W=Pt),Et||(It-=bt),It>Se.o&&(It=Se.o),Se.F=null,Se.J=null,be.Fa!=null&&0<be.Fa.length&&pt<It&&(Se.J=Gl(be,Se,pt,It-pt),Se.F=be.mb,Se.F==null&&Se.F.length==0)){Fe=pr(be,3,"Could not decode alpha data.");break e}pt<Se.j&&(bt=Se.j-pt,pt=Se.j,t(!(1&bt)),Se.O+=be.R*bt,Se.N+=be.B*(bt>>1),Se.W+=be.B*(bt>>1),Se.F!=null&&(Se.J+=Se.width*bt)),pt<It&&(Se.O+=Se.v,Se.N+=Se.v>>1,Se.W+=Se.v>>1,Se.F!=null&&(Se.J+=Se.v),Se.ka=pt-Se.j,Se.U=Se.va-Se.v,Se.T=It-pt,Fe=Se.put(Se))}Pe+1!=be.Ic||Et||(n(be.sa,be.ta-Me,Ge,it+16*be.R,Me),n(be.qa,be.ra-Ye,Ke,De+8*be.B,Ye),n(be.Ha,be.Ia-Ye,Ct,Pt+8*be.B,Ye))}if(!Fe)return pr(Ae,6,"Output aborted.")}return 1}(u,m)),m.bc!=null&&m.bc(m),E&=1}return E?(u.cb=0,E):0}function mi(u,m,E,O,q){q=u[m+E+32*O]+(q>>3),u[m+E+32*O]=-256&q?0>q?0:255:q}function is(u,m,E,O,q,K){mi(u,m,0,E,O+q),mi(u,m,1,E,O+K),mi(u,m,2,E,O-K),mi(u,m,3,E,O-q)}function vn(u){return(20091*u>>16)+u}function Dl(u,m,E,O){var q,K=0,J=o(16);for(q=0;4>q;++q){var te=u[m+0]+u[m+8],ne=u[m+0]-u[m+8],ce=(35468*u[m+4]>>16)-vn(u[m+12]),we=vn(u[m+4])+(35468*u[m+12]>>16);J[K+0]=te+we,J[K+1]=ne+ce,J[K+2]=ne-ce,J[K+3]=te-we,K+=4,m++}for(q=K=0;4>q;++q)te=(u=J[K+0]+4)+J[K+8],ne=u-J[K+8],ce=(35468*J[K+4]>>16)-vn(J[K+12]),mi(E,O,0,0,te+(we=vn(J[K+4])+(35468*J[K+12]>>16))),mi(E,O,1,0,ne+ce),mi(E,O,2,0,ne-ce),mi(E,O,3,0,te-we),K++,O+=32}function Lc(u,m,E,O){var q=u[m+0]+4,K=35468*u[m+4]>>16,J=vn(u[m+4]),te=35468*u[m+1]>>16;is(E,O,0,q+J,u=vn(u[m+1]),te),is(E,O,1,q+K,u,te),is(E,O,2,q-K,u,te),is(E,O,3,q-J,u,te)}function Bd(u,m,E,O,q){Dl(u,m,E,O),q&&Dl(u,m+16,E,O+4)}function Cc(u,m,E,O){so(u,m+0,E,O,1),so(u,m+32,E,O+128,1)}function Md(u,m,E,O){var q;for(u=u[m+0]+4,q=0;4>q;++q)for(m=0;4>m;++m)mi(E,O,m,q,u)}function Tc(u,m,E,O){u[m+0]&&hn(u,m+0,E,O),u[m+16]&&hn(u,m+16,E,O+4),u[m+32]&&hn(u,m+32,E,O+128),u[m+48]&&hn(u,m+48,E,O+128+4)}function zd(u,m,E,O){var q,K=o(16);for(q=0;4>q;++q){var J=u[m+0+q]+u[m+12+q],te=u[m+4+q]+u[m+8+q],ne=u[m+4+q]-u[m+8+q],ce=u[m+0+q]-u[m+12+q];K[0+q]=J+te,K[8+q]=J-te,K[4+q]=ce+ne,K[12+q]=ce-ne}for(q=0;4>q;++q)J=(u=K[0+4*q]+3)+K[3+4*q],te=K[1+4*q]+K[2+4*q],ne=K[1+4*q]-K[2+4*q],ce=u-K[3+4*q],E[O+0]=J+te>>3,E[O+16]=ce+ne>>3,E[O+32]=J-te>>3,E[O+48]=ce-ne>>3,O+=64}function jl(u,m,E){var O,q=m-32,K=Dn,J=255-u[q-1];for(O=0;O<E;++O){var te,ne=K,ce=J+u[m-1];for(te=0;te<E;++te)u[m+te]=ne[ce+u[q+te]];m+=32}}function Ud(u,m){jl(u,m,4)}function qd(u,m){jl(u,m,8)}function Wd(u,m){jl(u,m,16)}function no(u,m){var E;for(E=0;16>E;++E)n(u,m+32*E,u,m-32,16)}function os(u,m){var E;for(E=16;0<E;--E)i(u,m,u[m-1],16),m+=32}function as(u,m,E){var O;for(O=0;16>O;++O)i(m,E+32*O,u,16)}function Pc(u,m){var E,O=16;for(E=0;16>E;++E)O+=u[m-1+32*E]+u[m+E-32];as(O>>5,u,m)}function Yr(u,m){var E,O=8;for(E=0;16>E;++E)O+=u[m-1+32*E];as(O>>4,u,m)}function Hd(u,m){var E,O=8;for(E=0;16>E;++E)O+=u[m+E-32];as(O>>4,u,m)}function Ic(u,m){as(128,u,m)}function ct(u,m,E){return u+2*m+E+2>>2}function Vd(u,m){var E,O=m-32;for(O=new Uint8Array([ct(u[O-1],u[O+0],u[O+1]),ct(u[O+0],u[O+1],u[O+2]),ct(u[O+1],u[O+2],u[O+3]),ct(u[O+2],u[O+3],u[O+4])]),E=0;4>E;++E)n(u,m+32*E,O,0,O.length)}function $d(u,m){var E=u[m-1],O=u[m-1+32],q=u[m-1+64],K=u[m-1+96];Z(u,m+0,16843009*ct(u[m-1-32],E,O)),Z(u,m+32,16843009*ct(E,O,q)),Z(u,m+64,16843009*ct(O,q,K)),Z(u,m+96,16843009*ct(q,K,K))}function Bi(u,m){var E,O=4;for(E=0;4>E;++E)O+=u[m+E-32]+u[m-1+32*E];for(O>>=3,E=0;4>E;++E)i(u,m+32*E,O,4)}function Rc(u,m){var E=u[m-1+0],O=u[m-1+32],q=u[m-1+64],K=u[m-1-32],J=u[m+0-32],te=u[m+1-32],ne=u[m+2-32],ce=u[m+3-32];u[m+0+96]=ct(O,q,u[m-1+96]),u[m+1+96]=u[m+0+64]=ct(E,O,q),u[m+2+96]=u[m+1+64]=u[m+0+32]=ct(K,E,O),u[m+3+96]=u[m+2+64]=u[m+1+32]=u[m+0+0]=ct(J,K,E),u[m+3+64]=u[m+2+32]=u[m+1+0]=ct(te,J,K),u[m+3+32]=u[m+2+0]=ct(ne,te,J),u[m+3+0]=ct(ce,ne,te)}function Oc(u,m){var E=u[m+1-32],O=u[m+2-32],q=u[m+3-32],K=u[m+4-32],J=u[m+5-32],te=u[m+6-32],ne=u[m+7-32];u[m+0+0]=ct(u[m+0-32],E,O),u[m+1+0]=u[m+0+32]=ct(E,O,q),u[m+2+0]=u[m+1+32]=u[m+0+64]=ct(O,q,K),u[m+3+0]=u[m+2+32]=u[m+1+64]=u[m+0+96]=ct(q,K,J),u[m+3+32]=u[m+2+64]=u[m+1+96]=ct(K,J,te),u[m+3+64]=u[m+2+96]=ct(J,te,ne),u[m+3+96]=ct(te,ne,ne)}function ss(u,m){var E=u[m-1+0],O=u[m-1+32],q=u[m-1+64],K=u[m-1-32],J=u[m+0-32],te=u[m+1-32],ne=u[m+2-32],ce=u[m+3-32];u[m+0+0]=u[m+1+64]=K+J+1>>1,u[m+1+0]=u[m+2+64]=J+te+1>>1,u[m+2+0]=u[m+3+64]=te+ne+1>>1,u[m+3+0]=ne+ce+1>>1,u[m+0+96]=ct(q,O,E),u[m+0+64]=ct(O,E,K),u[m+0+32]=u[m+1+96]=ct(E,K,J),u[m+1+32]=u[m+2+96]=ct(K,J,te),u[m+2+32]=u[m+3+96]=ct(J,te,ne),u[m+3+32]=ct(te,ne,ce)}function Bl(u,m){var E=u[m+0-32],O=u[m+1-32],q=u[m+2-32],K=u[m+3-32],J=u[m+4-32],te=u[m+5-32],ne=u[m+6-32],ce=u[m+7-32];u[m+0+0]=E+O+1>>1,u[m+1+0]=u[m+0+64]=O+q+1>>1,u[m+2+0]=u[m+1+64]=q+K+1>>1,u[m+3+0]=u[m+2+64]=K+J+1>>1,u[m+0+32]=ct(E,O,q),u[m+1+32]=u[m+0+96]=ct(O,q,K),u[m+2+32]=u[m+1+96]=ct(q,K,J),u[m+3+32]=u[m+2+96]=ct(K,J,te),u[m+3+64]=ct(J,te,ne),u[m+3+96]=ct(te,ne,ce)}function Gd(u,m){var E=u[m-1+0],O=u[m-1+32],q=u[m-1+64],K=u[m-1+96];u[m+0+0]=E+O+1>>1,u[m+2+0]=u[m+0+32]=O+q+1>>1,u[m+2+32]=u[m+0+64]=q+K+1>>1,u[m+1+0]=ct(E,O,q),u[m+3+0]=u[m+1+32]=ct(O,q,K),u[m+3+32]=u[m+1+64]=ct(q,K,K),u[m+3+64]=u[m+2+64]=u[m+0+96]=u[m+1+96]=u[m+2+96]=u[m+3+96]=K}function Kd(u,m){var E=u[m-1+0],O=u[m-1+32],q=u[m-1+64],K=u[m-1+96],J=u[m-1-32],te=u[m+0-32],ne=u[m+1-32],ce=u[m+2-32];u[m+0+0]=u[m+2+32]=E+J+1>>1,u[m+0+32]=u[m+2+64]=O+E+1>>1,u[m+0+64]=u[m+2+96]=q+O+1>>1,u[m+0+96]=K+q+1>>1,u[m+3+0]=ct(te,ne,ce),u[m+2+0]=ct(J,te,ne),u[m+1+0]=u[m+3+32]=ct(E,J,te),u[m+1+32]=u[m+3+64]=ct(O,E,J),u[m+1+64]=u[m+3+96]=ct(q,O,E),u[m+1+96]=ct(K,q,O)}function Xd(u,m){var E;for(E=0;8>E;++E)n(u,m+32*E,u,m-32,8)}function Ml(u,m){var E;for(E=0;8>E;++E)i(u,m,u[m-1],8),m+=32}function va(u,m,E){var O;for(O=0;8>O;++O)i(m,E+32*O,u,8)}function ko(u,m){var E,O=8;for(E=0;8>E;++E)O+=u[m+E-32]+u[m-1+32*E];va(O>>4,u,m)}function Yd(u,m){var E,O=4;for(E=0;8>E;++E)O+=u[m+E-32];va(O>>3,u,m)}function wa(u,m){var E,O=4;for(E=0;8>E;++E)O+=u[m-1+32*E];va(O>>3,u,m)}function zl(u,m){va(128,u,m)}function ls(u,m,E){var O=u[m-E],q=u[m+0],K=3*(q-O)+rp[1020+u[m-2*E]-u[m+E]],J=Gc[112+(K+4>>3)];u[m-E]=Dn[255+O+Gc[112+(K+3>>3)]],u[m+0]=Dn[255+q-J]}function Fc(u,m,E,O){var q=u[m+0],K=u[m+E];return Qn[255+u[m-2*E]-u[m-E]]>O||Qn[255+K-q]>O}function Dc(u,m,E,O){return 4*Qn[255+u[m-E]-u[m+0]]+Qn[255+u[m-2*E]-u[m+E]]<=O}function jc(u,m,E,O,q){var K=u[m-3*E],J=u[m-2*E],te=u[m-E],ne=u[m+0],ce=u[m+E],we=u[m+2*E],Ne=u[m+3*E];return 4*Qn[255+te-ne]+Qn[255+J-ce]>O?0:Qn[255+u[m-4*E]-K]<=q&&Qn[255+K-J]<=q&&Qn[255+J-te]<=q&&Qn[255+Ne-we]<=q&&Qn[255+we-ce]<=q&&Qn[255+ce-ne]<=q}function Bc(u,m,E,O){var q=2*O+1;for(O=0;16>O;++O)Dc(u,m+O,E,q)&&ls(u,m+O,E)}function Mi(u,m,E,O){var q=2*O+1;for(O=0;16>O;++O)Dc(u,m+O*E,1,q)&&ls(u,m+O*E,1)}function io(u,m,E,O){var q;for(q=3;0<q;--q)Bc(u,m+=4*E,E,O)}function Jd(u,m,E,O){var q;for(q=3;0<q;--q)Mi(u,m+=4,E,O)}function Lo(u,m,E,O,q,K,J,te){for(K=2*K+1;0<q--;){if(jc(u,m,E,K,J))if(Fc(u,m,E,te))ls(u,m,E);else{var ne=u,ce=m,we=E,Ne=ne[ce-2*we],ke=ne[ce-we],Ae=ne[ce+0],je=ne[ce+we],Pe=ne[ce+2*we],be=27*(Fe=rp[1020+3*(Ae-ke)+rp[1020+Ne-je]])+63>>7,Se=18*Fe+63>>7,Fe=9*Fe+63>>7;ne[ce-3*we]=Dn[255+ne[ce-3*we]+Fe],ne[ce-2*we]=Dn[255+Ne+Se],ne[ce-we]=Dn[255+ke+be],ne[ce+0]=Dn[255+Ae-be],ne[ce+we]=Dn[255+je-Se],ne[ce+2*we]=Dn[255+Pe-Fe]}m+=O}}function gi(u,m,E,O,q,K,J,te){for(K=2*K+1;0<q--;){if(jc(u,m,E,K,J))if(Fc(u,m,E,te))ls(u,m,E);else{var ne=u,ce=m,we=E,Ne=ne[ce-we],ke=ne[ce+0],Ae=ne[ce+we],je=Gc[112+((Pe=3*(ke-Ne))+4>>3)],Pe=Gc[112+(Pe+3>>3)],be=je+1>>1;ne[ce-2*we]=Dn[255+ne[ce-2*we]+be],ne[ce-we]=Dn[255+Ne+Pe],ne[ce+0]=Dn[255+ke-je],ne[ce+we]=Dn[255+Ae-be]}m+=O}}function Ul(u,m,E,O,q,K){Lo(u,m,E,1,16,O,q,K)}function ba(u,m,E,O,q,K){Lo(u,m,1,E,16,O,q,K)}function Zd(u,m,E,O,q,K){var J;for(J=3;0<J;--J)gi(u,m+=4*E,E,1,16,O,q,K)}function us(u,m,E,O,q,K){var J;for(J=3;0<J;--J)gi(u,m+=4,1,E,16,O,q,K)}function Qd(u,m,E,O,q,K,J,te){Lo(u,m,q,1,8,K,J,te),Lo(E,O,q,1,8,K,J,te)}function ql(u,m,E,O,q,K,J,te){Lo(u,m,1,q,8,K,J,te),Lo(E,O,1,q,8,K,J,te)}function Wl(u,m,E,O,q,K,J,te){gi(u,m+4*q,q,1,8,K,J,te),gi(E,O+4*q,q,1,8,K,J,te)}function Mc(u,m,E,O,q,K,J,te){gi(u,m+4,1,q,8,K,J,te),gi(E,O+4,1,q,8,K,J,te)}function cs(){this.ba=new Xr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new mt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Hl(){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 Vl(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function zc(){this.ua=0,this.Wa=new N,this.vb=new N,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new T,this.yc=new R}function ep(){this.xb=this.a=0,this.l=new ns,this.ca=new Xr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new A,this.Pb=0,this.wd=new A,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new zc,this.ab=0,this.gc=a(4,Vl),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ns,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xa(u,m,E,O,q,K,J){for(u=u==null?0:u[m+0],m=0;m<J;++m)q[K+m]=u+E[O+m]&255,u=q[K+m]}function $l(u,m,E,O,q,K,J){var te;if(u==null)xa(null,null,E,O,q,K,J);else for(te=0;te<J;++te)q[K+te]=u[m+te]+E[O+te]&255}function Co(u,m,E,O,q,K,J){if(u==null)xa(null,null,E,O,q,K,J);else{var te,ne=u[m+0],ce=ne,we=ne;for(te=0;te<J;++te)ce=we+(ne=u[m+te])-ce,we=E[O+te]+(-256&ce?0>ce?0:255:ce)&255,ce=ne,q[K+te]=we}}function Gl(u,m,E,O){var q=m.width,K=m.o;if(t(u!=null&&m!=null),0>E||0>=O||E+O>K)return null;if(!u.Cc){if(u.ga==null){var J;if(u.ga=new fs,(J=u.ga==null)||(J=m.width*m.o,t(u.Gb.length==0),u.Gb=o(J),u.Uc=0,u.Gb==null?J=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,J=1),J=!J),!J){J=u.ga;var te=u.Fa,ne=u.P,ce=u.qc,we=u.mb,Ne=u.nb,ke=ne+1,Ae=ce-1,je=J.l;if(t(te!=null&&we!=null&&m!=null),Fo[0]=null,Fo[1]=xa,Fo[2]=$l,Fo[3]=Co,J.ca=we,J.tb=Ne,J.c=m.width,J.i=m.height,t(0<J.c&&0<J.i),1>=ce)m=0;else if(J.$a=te[ne+0]>>0&3,J.Z=te[ne+0]>>2&3,J.Lc=te[ne+0]>>4&3,ne=te[ne+0]>>6&3,0>J.$a||1<J.$a||4<=J.Z||1<J.Lc||ne)m=0;else if(je.put=hr,je.ac=Lt,je.bc=qr,je.ma=J,je.width=m.width,je.height=m.height,je.Da=m.Da,je.v=m.v,je.va=m.va,je.j=m.j,je.o=m.o,J.$a)e:{t(J.$a==1),m=Kn();t:for(;;){if(m==null){m=0;break e}if(t(J!=null),J.mc=m,m.c=J.c,m.i=J.i,m.l=J.l,m.l.ma=J,m.l.width=J.c,m.l.height=J.i,m.a=0,ue(m.m,te,ke,Ae),!ji(J.c,J.i,1,m,null)||(m.ab==1&&m.gc[0].hc==3&&On(m.s)?(J.ic=1,te=m.c*m.i,m.Ta=null,m.Ua=0,m.V=o(te),m.Ba=0,m.V==null?(m.a=1,m=0):m=1):(J.ic=0,m=ya(m,J.c)),!m))break t;m=1;break e}J.mc=null,m=0}else m=Ae>=J.c*J.i;J=!m}if(J)return null;u.ga.Lc!=1?u.Ga=0:O=K-E}t(u.ga!=null),t(E+O<=K);e:{if(m=(te=u.ga).c,K=te.l.o,te.$a==0){if(ke=u.rc,Ae=u.Vc,je=u.Fa,ne=u.P+1+E*m,ce=u.mb,we=u.nb+E*m,t(ne<=u.P+u.qc),te.Z!=0)for(t(Fo[te.Z]!=null),J=0;J<O;++J)Fo[te.Z](ke,Ae,je,ne,ce,we,m),ke=ce,Ae=we,we+=m,ne+=m;else for(J=0;J<O;++J)n(ce,we,je,ne,m),ke=ce,Ae=we,we+=m,ne+=m;u.rc=ke,u.Vc=Ae}else{if(t(te.mc!=null),m=E+O,t((J=te.mc)!=null),t(m<=J.i),J.C>=m)m=1;else if(te.ic||Ee(),te.ic){te=J.V,ke=J.Ba,Ae=J.c;var Pe=J.i,be=(je=1,ne=J.$/Ae,ce=J.$%Ae,we=J.m,Ne=J.s,J.$),Se=Ae*Pe,Fe=Ae*m,Me=Ne.wc,De=be<Fe?Wt(Ne,ce,ne):null;t(be<=Se),t(m<=Pe),t(On(Ne));t:for(;;){for(;!we.h&&be<Fe;){if(ce&Me||(De=Wt(Ne,ce,ne)),t(De!=null),V(we),256>(Pe=er(De.G[0],De.H[0],we)))te[ke+be]=Pe,++be,++ce>=Ae&&(ce=0,++ne<=m&&!(ne%16)&&di(J,ne));else{if(!(280>Pe)){je=0;break t}Pe=Er(Pe-256,we);var Ye,Ge=er(De.G[4],De.H[4],we);if(V(we),!(be>=(Ge=dr(Ae,Ge=Er(Ge,we)))&&Se-be>=Pe)){je=0;break t}for(Ye=0;Ye<Pe;++Ye)te[ke+be+Ye]=te[ke+be+Ye-Ge];for(be+=Pe,ce+=Pe;ce>=Ae;)ce-=Ae,++ne<=m&&!(ne%16)&&di(J,ne);be<Fe&&ce&Me&&(De=Wt(Ne,ce,ne))}t(we.h==z(we))}di(J,ne>m?m:ne);break t}!je||we.h&&be<Se?(je=0,J.a=we.h?5:3):J.$=be,m=je}else m=pi(J,J.V,J.Ba,J.c,J.i,m,Za);if(!m){O=0;break e}}E+O>=K&&(u.Cc=1),O=1}if(!O)return null;if(u.Cc&&((O=u.ga)!=null&&(O.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+E*q}function x(u,m,E,O,q,K){for(;0<q--;){var J,te=u,ne=m+(E?1:0),ce=u,we=m+(E?0:3);for(J=0;J<O;++J){var Ne=ce[we+4*J];Ne!=255&&(Ne*=32897,te[ne+4*J+0]=te[ne+4*J+0]*Ne>>23,te[ne+4*J+1]=te[ne+4*J+1]*Ne>>23,te[ne+4*J+2]=te[ne+4*J+2]*Ne>>23)}m+=K}}function W(u,m,E,O,q){for(;0<O--;){var K;for(K=0;K<E;++K){var J=u[m+2*K+0],te=15&(ce=u[m+2*K+1]),ne=4369*te,ce=(240&ce|ce>>4)*ne>>16;u[m+2*K+0]=(240&J|J>>4)*ne>>16&240|(15&J|J<<4)*ne>>16>>4&15,u[m+2*K+1]=240&ce|te}m+=q}}function pe(u,m,E,O,q,K,J,te){var ne,ce,we=255;for(ce=0;ce<q;++ce){for(ne=0;ne<O;++ne){var Ne=u[m+ne];K[J+4*ne]=Ne,we&=Ne}m+=E,J+=te}return we!=255}function ve(u,m,E,O,q){var K;for(K=0;K<q;++K)E[O+K]=u[m+K]>>8}function Ee(){Zn=x,Ht=W,Vt=pe,gr=ve}function Re(u,m,E){M[u]=function(O,q,K,J,te,ne,ce,we,Ne,ke,Ae,je,Pe,be,Se,Fe,Me){var De,Ye=Me-1>>1,Ge=te[ne+0]|ce[we+0]<<16,it=Ne[ke+0]|Ae[je+0]<<16;t(O!=null);var Ke=3*Ge+it+131074>>2;for(m(O[q+0],255&Ke,Ke>>16,Pe,be),K!=null&&(Ke=3*it+Ge+131074>>2,m(K[J+0],255&Ke,Ke>>16,Se,Fe)),De=1;De<=Ye;++De){var Ct=te[ne+De]|ce[we+De]<<16,Pt=Ne[ke+De]|Ae[je+De]<<16,Et=Ge+Ct+it+Pt+524296,bt=Et+2*(Ct+it)>>3;Ke=bt+Ge>>1,Ge=(Et=Et+2*(Ge+Pt)>>3)+Ct>>1,m(O[q+2*De-1],255&Ke,Ke>>16,Pe,be+(2*De-1)*E),m(O[q+2*De-0],255&Ge,Ge>>16,Pe,be+(2*De-0)*E),K!=null&&(Ke=Et+it>>1,Ge=bt+Pt>>1,m(K[J+2*De-1],255&Ke,Ke>>16,Se,Fe+(2*De-1)*E),m(K[J+2*De+0],255&Ge,Ge>>16,Se,Fe+(2*De+0)*E)),Ge=Ct,it=Pt}1&Me||(Ke=3*Ge+it+131074>>2,m(O[q+Me-1],255&Ke,Ke>>16,Pe,be+(Me-1)*E),K!=null&&(Ke=3*it+Ge+131074>>2,m(K[J+Me-1],255&Ke,Ke>>16,Se,Fe+(Me-1)*E)))}}function Ue(){ei[Kc]=l3,ei[Xc]=Zg,ei[Gg]=u3,ei[Yc]=Qg,ei[Jc]=ey,ei[np]=ty,ei[Kg]=c3,ei[ip]=Zg,ei[op]=Qg,ei[Zc]=ey,ei[ap]=ty}function Xe(u){return u&-16384?0>u?0:255:u>>f3}function nt(u,m){return Xe((19077*u>>8)+(26149*m>>8)-14234)}function dt(u,m,E){return Xe((19077*u>>8)-(6419*m>>8)-(13320*E>>8)+8708)}function ft(u,m){return Xe((19077*u>>8)+(33050*m>>8)-17685)}function At(u,m,E,O,q){O[q+0]=nt(u,E),O[q+1]=dt(u,m,E),O[q+2]=ft(u,m)}function rr(u,m,E,O,q){O[q+0]=ft(u,m),O[q+1]=dt(u,m,E),O[q+2]=nt(u,E)}function sr(u,m,E,O,q){var K=dt(u,m,E);m=K<<3&224|ft(u,m)>>3,O[q+0]=248&nt(u,E)|K>>5,O[q+1]=m}function Nr(u,m,E,O,q){var K=240&ft(u,m)|15;O[q+0]=240&nt(u,E)|dt(u,m,E)>>4,O[q+1]=K}function Jr(u,m,E,O,q){O[q+0]=255,At(u,m,E,O,q+1)}function Fr(u,m,E,O,q){rr(u,m,E,O,q),O[q+3]=255}function yi(u,m,E,O,q){At(u,m,E,O,q),O[q+3]=255}function Fn(u,m){return 0>u?0:u>m?m:u}function zi(u,m,E){M[u]=function(O,q,K,J,te,ne,ce,we,Ne){for(var ke=we+(-2&Ne)*E;we!=ke;)m(O[q+0],K[J+0],te[ne+0],ce,we),m(O[q+1],K[J+0],te[ne+0],ce,we+E),q+=2,++J,++ne,we+=2*E;1&Ne&&m(O[q+0],K[J+0],te[ne+0],ce,we)}}function Uc(u,m,E){return E==0?u==0?m==0?6:5:m==0?4:0:E}function Kl(u,m,E,O,q){switch(u>>>30){case 3:so(m,E,O,q,0);break;case 2:mr(m,E,O,q);break;case 1:hn(m,E,O,q)}}function Xl(u,m){var E,O,q=m.M,K=m.Nb,J=u.oc,te=u.pc+40,ne=u.oc,ce=u.pc+584,we=u.oc,Ne=u.pc+600;for(E=0;16>E;++E)J[te+32*E-1]=129;for(E=0;8>E;++E)ne[ce+32*E-1]=129,we[Ne+32*E-1]=129;for(0<q?J[te-1-32]=ne[ce-1-32]=we[Ne-1-32]=129:(i(J,te-32-1,127,21),i(ne,ce-32-1,127,9),i(we,Ne-32-1,127,9)),O=0;O<u.za;++O){var ke=m.ya[m.aa+O];if(0<O){for(E=-1;16>E;++E)n(J,te+32*E-4,J,te+32*E+12,4);for(E=-1;8>E;++E)n(ne,ce+32*E-4,ne,ce+32*E+4,4),n(we,Ne+32*E-4,we,Ne+32*E+4,4)}var Ae=u.Gd,je=u.Hd+O,Pe=ke.ad,be=ke.Hc;if(0<q&&(n(J,te-32,Ae[je].y,0,16),n(ne,ce-32,Ae[je].f,0,8),n(we,Ne-32,Ae[je].ea,0,8)),ke.Za){var Se=J,Fe=te-32+16;for(0<q&&(O>=u.za-1?i(Se,Fe,Ae[je].y[15],4):n(Se,Fe,Ae[je+1].y,0,4)),E=0;4>E;E++)Se[Fe+128+E]=Se[Fe+256+E]=Se[Fe+384+E]=Se[Fe+0+E];for(E=0;16>E;++E,be<<=2)Se=J,Fe=te+ny[E],vi[ke.Ob[E]](Se,Fe),Kl(be,Pe,16*+E,Se,Fe)}else if(Se=Uc(O,q,ke.Ob[0]),Oo[Se](J,te),be!=0)for(E=0;16>E;++E,be<<=2)Kl(be,Pe,16*+E,J,te+ny[E]);for(E=ke.Gc,Se=Uc(O,q,ke.Dd),uo[Se](ne,ce),uo[Se](we,Ne),be=Pe,Se=ne,Fe=ce,255&(ke=E>>0)&&(170&ke?eu(be,256,Se,Fe):Yn(be,256,Se,Fe)),ke=we,be=Ne,255&(E>>=8)&&(170&E?eu(Pe,320,ke,be):Yn(Pe,320,ke,be)),q<u.Ub-1&&(n(Ae[je].y,0,J,te+480,16),n(Ae[je].f,0,ne,ce+224,8),n(Ae[je].ea,0,we,Ne+224,8)),E=8*K*u.B,Ae=u.sa,je=u.ta+16*O+16*K*u.R,Pe=u.qa,ke=u.ra+8*O+E,be=u.Ha,Se=u.Ia+8*O+E,E=0;16>E;++E)n(Ae,je+E*u.R,J,te+32*E,16);for(E=0;8>E;++E)n(Pe,ke+E*u.B,ne,ce+32*E,8),n(be,Se+E*u.B,we,Ne+32*E,8)}}function hs(u,m,E,O,q,K,J,te,ne){var ce=[0],we=[0],Ne=0,ke=ne!=null?ne.kd:0,Ae=ne??new Hl;if(u==null||12>E)return 7;Ae.data=u,Ae.w=m,Ae.ha=E,m=[m],E=[E],Ae.gb=[Ae.gb];e:{var je=m,Pe=E,be=Ae.gb;if(t(u!=null),t(Pe!=null),t(be!=null),be[0]=0,12<=Pe[0]&&!r(u,je[0],"RIFF")){if(r(u,je[0]+8,"WEBP")){be=3;break e}var Se=ge(u,je[0]+4);if(12>Se||4294967286<Se){be=3;break e}if(ke&&Se>Pe[0]-8){be=7;break e}be[0]=Se,je[0]+=12,Pe[0]-=12}be=0}if(be!=0)return be;for(Se=0<Ae.gb[0],E=E[0];;){e:{var Fe=u;Pe=m,be=E;var Me=ce,De=we,Ye=je=[0];if((Ke=Ne=[Ne])[0]=0,8>be[0])be=7;else{if(!r(Fe,Pe[0],"VP8X")){if(ge(Fe,Pe[0]+4)!=10){be=3;break e}if(18>be[0]){be=7;break e}var Ge=ge(Fe,Pe[0]+8),it=1+G(Fe,Pe[0]+12);if(2147483648<=it*(Fe=1+G(Fe,Pe[0]+15))){be=3;break e}Ye!=null&&(Ye[0]=Ge),Me!=null&&(Me[0]=it),De!=null&&(De[0]=Fe),Pe[0]+=18,be[0]-=18,Ke[0]=1}be=0}}if(Ne=Ne[0],je=je[0],be!=0)return be;if(Pe=!!(2&je),!Se&&Ne)return 3;if(K!=null&&(K[0]=!!(16&je)),J!=null&&(J[0]=Pe),te!=null&&(te[0]=0),J=ce[0],je=we[0],Ne&&Pe&&ne==null){be=0;break}if(4>E){be=7;break}if(Se&&Ne||!Se&&!Ne&&!r(u,m[0],"ALPH")){E=[E],Ae.na=[Ae.na],Ae.P=[Ae.P],Ae.Sa=[Ae.Sa];e:{Ge=u,be=m,Se=E;var Ke=Ae.gb;Me=Ae.na,De=Ae.P,Ye=Ae.Sa,it=22,t(Ge!=null),t(Se!=null),Fe=be[0];var Ct=Se[0];for(t(Me!=null),t(Ye!=null),Me[0]=null,De[0]=null,Ye[0]=0;;){if(be[0]=Fe,Se[0]=Ct,8>Ct){be=7;break e}var Pt=ge(Ge,Fe+4);if(4294967286<Pt){be=3;break e}var Et=8+Pt+1&-2;if(it+=Et,0<Ke&&it>Ke){be=3;break e}if(!r(Ge,Fe,"VP8 ")||!r(Ge,Fe,"VP8L")){be=0;break e}if(Ct[0]<Et){be=7;break e}r(Ge,Fe,"ALPH")||(Me[0]=Ge,De[0]=Fe+8,Ye[0]=Pt),Fe+=Et,Ct-=Et}}if(E=E[0],Ae.na=Ae.na[0],Ae.P=Ae.P[0],Ae.Sa=Ae.Sa[0],be!=0)break}E=[E],Ae.Ja=[Ae.Ja],Ae.xa=[Ae.xa];e:if(Ke=u,be=m,Se=E,Me=Ae.gb[0],De=Ae.Ja,Ye=Ae.xa,Ge=be[0],Fe=!r(Ke,Ge,"VP8 "),it=!r(Ke,Ge,"VP8L"),t(Ke!=null),t(Se!=null),t(De!=null),t(Ye!=null),8>Se[0])be=7;else{if(Fe||it){if(Ke=ge(Ke,Ge+4),12<=Me&&Ke>Me-12){be=3;break e}if(ke&&Ke>Se[0]-8){be=7;break e}De[0]=Ke,be[0]+=8,Se[0]-=8,Ye[0]=it}else Ye[0]=5<=Se[0]&&Ke[Ge+0]==47&&!(Ke[Ge+4]>>5),De[0]=Se[0];be=0}if(E=E[0],Ae.Ja=Ae.Ja[0],Ae.xa=Ae.xa[0],m=m[0],be!=0)break;if(4294967286<Ae.Ja)return 3;if(te==null||Pe||(te[0]=Ae.xa?2:1),J=[J],je=[je],Ae.xa){if(5>E){be=7;break}te=J,ke=je,Pe=K,u==null||5>E?u=0:5<=E&&u[m+0]==47&&!(u[m+4]>>5)?(Se=[0],Ke=[0],Me=[0],ue(De=new A,u,m,E),Ze(De,Se,Ke,Me)?(te!=null&&(te[0]=Se[0]),ke!=null&&(ke[0]=Ke[0]),Pe!=null&&(Pe[0]=Me[0]),u=1):u=0):u=0}else{if(10>E){be=7;break}te=je,u==null||10>E||!Ec(u,m+3,E-3)?u=0:(ke=u[m+0]|u[m+1]<<8|u[m+2]<<16,Pe=16383&(u[m+7]<<8|u[m+6]),u=16383&(u[m+9]<<8|u[m+8]),1&ke||3<(ke>>1&7)||!(ke>>4&1)||ke>>5>=Ae.Ja||!Pe||!u?u=0:(J&&(J[0]=Pe),te&&(te[0]=u),u=1))}if(!u||(J=J[0],je=je[0],Ne&&(ce[0]!=J||we[0]!=je)))return 3;ne!=null&&(ne[0]=Ae,ne.offset=m-ne.w,t(4294967286>m-ne.w),t(ne.offset==ne.ha-E));break}return be==0||be==7&&Ne&&ne==null?(K!=null&&(K[0]|=Ae.na!=null&&0<Ae.na.length),O!=null&&(O[0]=J),q!=null&&(q[0]=je),0):be}function Yl(u,m,E){var O=m.width,q=m.height,K=0,J=0,te=O,ne=q;if(m.Da=u!=null&&0<u.Da,m.Da&&(te=u.cd,ne=u.bd,K=u.v,J=u.j,11>E||(K&=-2,J&=-2),0>K||0>J||0>=te||0>=ne||K+te>O||J+ne>q))return 0;if(m.v=K,m.j=J,m.va=K+te,m.o=J+ne,m.U=te,m.T=ne,m.da=u!=null&&0<u.da,m.da){if(!w(te,ne,E=[u.ib],K=[u.hb]))return 0;m.ib=E[0],m.hb=K[0]}return m.ob=u!=null&&u.ob,m.Kb=u==null||!u.Sd,m.da&&(m.ob=m.ib<3*O/4&&m.hb<3*q/4,m.Kb=0),1}function Jl(u){if(u==null)return 2;if(11>u.S){var m=u.f.RGBA;m.fb+=(u.height-1)*m.A,m.A=-m.A}else m=u.f.kb,u=u.height,m.O+=(u-1)*m.fa,m.fa=-m.fa,m.N+=(u-1>>1)*m.Ab,m.Ab=-m.Ab,m.W+=(u-1>>1)*m.Db,m.Db=-m.Db,m.F!=null&&(m.J+=(u-1)*m.lb,m.lb=-m.lb);return 0}function ds(u,m,E,O){if(O==null||0>=u||0>=m)return 2;if(E!=null){if(E.Da){var q=E.cd,K=E.bd,J=-2&E.v,te=-2&E.j;if(0>J||0>te||0>=q||0>=K||J+q>u||te+K>m)return 2;u=q,m=K}if(E.da){if(!w(u,m,q=[E.ib],K=[E.hb]))return 2;u=q[0],m=K[0]}}O.width=u,O.height=m;e:{var ne=O.width,ce=O.height;if(u=O.S,0>=ne||0>=ce||!(u>=Kc&&13>u))u=2;else{if(0>=O.Rd&&O.sd==null){J=K=q=m=0;var we=(te=ne*iy[u])*ce;if(11>u||(K=(ce+1)/2*(m=(ne+1)/2),u==12&&(J=(q=ne)*ce)),(ce=o(we+2*K+J))==null){u=1;break e}O.sd=ce,11>u?((ne=O.f.RGBA).eb=ce,ne.fb=0,ne.A=te,ne.size=we):((ne=O.f.kb).y=ce,ne.O=0,ne.fa=te,ne.Fd=we,ne.f=ce,ne.N=0+we,ne.Ab=m,ne.Cd=K,ne.ea=ce,ne.W=0+we+K,ne.Db=m,ne.Ed=K,u==12&&(ne.F=ce,ne.J=0+we+2*K),ne.Tc=J,ne.lb=q)}if(m=1,q=O.S,K=O.width,J=O.height,q>=Kc&&13>q)if(11>q)u=O.f.RGBA,m&=(te=Math.abs(u.A))*(J-1)+K<=u.size,m&=te>=K*iy[q],m&=u.eb!=null;else{u=O.f.kb,te=(K+1)/2,we=(J+1)/2,ne=Math.abs(u.fa),ce=Math.abs(u.Ab);var Ne=Math.abs(u.Db),ke=Math.abs(u.lb),Ae=ke*(J-1)+K;m&=ne*(J-1)+K<=u.Fd,m&=ce*(we-1)+te<=u.Cd,m=(m&=Ne*(we-1)+te<=u.Ed)&ne>=K&ce>=te&Ne>=te,m&=u.y!=null,m&=u.f!=null,m&=u.ea!=null,q==12&&(m&=ke>=K,m&=Ae<=u.Tc,m&=u.F!=null)}else m=0;u=m?0:2}}return u!=0||E!=null&&E.fd&&(u=Jl(O)),u}var Wr=64,ps=[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],ms=24,gs=32,Zl=8,wn=[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];Q("Predictor0","PredictorAdd0"),M.Predictor0=function(){return 4278190080},M.Predictor1=function(u){return u},M.Predictor2=function(u,m,E){return m[E+0]},M.Predictor3=function(u,m,E){return m[E+1]},M.Predictor4=function(u,m,E){return m[E-1]},M.Predictor5=function(u,m,E){return ie(ie(u,m[E+1]),m[E+0])},M.Predictor6=function(u,m,E){return ie(u,m[E-1])},M.Predictor7=function(u,m,E){return ie(u,m[E+0])},M.Predictor8=function(u,m,E){return ie(m[E-1],m[E+0])},M.Predictor9=function(u,m,E){return ie(m[E+0],m[E+1])},M.Predictor10=function(u,m,E){return ie(ie(u,m[E-1]),ie(m[E+0],m[E+1]))},M.Predictor11=function(u,m,E){var O=m[E+0];return 0>=Le(O>>24&255,u>>24&255,(m=m[E-1])>>24&255)+Le(O>>16&255,u>>16&255,m>>16&255)+Le(O>>8&255,u>>8&255,m>>8&255)+Le(255&O,255&u,255&m)?O:u},M.Predictor12=function(u,m,E){var O=m[E+0];return(_e((u>>24&255)+(O>>24&255)-((m=m[E-1])>>24&255))<<24|_e((u>>16&255)+(O>>16&255)-(m>>16&255))<<16|_e((u>>8&255)+(O>>8&255)-(m>>8&255))<<8|_e((255&u)+(255&O)-(255&m)))>>>0},M.Predictor13=function(u,m,E){var O=m[E-1];return(Ce((u=ie(u,m[E+0]))>>24&255,O>>24&255)<<24|Ce(u>>16&255,O>>16&255)<<16|Ce(u>>8&255,O>>8&255)<<8|Ce(u>>0&255,O>>0&255))>>>0};var tp=M.PredictorAdd0;M.PredictorAdd1=Oe,Q("Predictor2","PredictorAdd2"),Q("Predictor3","PredictorAdd3"),Q("Predictor4","PredictorAdd4"),Q("Predictor5","PredictorAdd5"),Q("Predictor6","PredictorAdd6"),Q("Predictor7","PredictorAdd7"),Q("Predictor8","PredictorAdd8"),Q("Predictor9","PredictorAdd9"),Q("Predictor10","PredictorAdd10"),Q("Predictor11","PredictorAdd11"),Q("Predictor12","PredictorAdd12"),Q("Predictor13","PredictorAdd13");var Ql=M.PredictorAdd2;at("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),at("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var qc,Xn=M.ColorIndexInverseTransform,ys=M.MapARGB,Wc=M.VP8LColorIndexInverseTransformAlpha,Hc=M.MapAlpha,To=M.VP8LPredictorsAdd=[];To.length=16,(M.VP8LPredictors=[]).length=16,(M.VP8LPredictorsAdd_C=[]).length=16,(M.VP8LPredictors_C=[]).length=16;var Sa,bn,fn,Po,oo,ao,vs,so,mr,eu,hn,Yn,ws,Vc,tu,_a,Aa,Io,Ea,bs,Na,Ro,ru,Jn,Zn,Ht,Vt,gr,Tr=o(511),lo=o(2041),nu=o(225),xs=o(767),$c=0,rp=lo,Gc=nu,Dn=xs,Qn=Tr,Kc=0,Xc=1,Gg=2,Yc=3,Jc=4,np=5,Kg=6,ip=7,op=8,Zc=9,ap=10,K4=[2,3,7],X4=[3,3,11],Xg=[280,256,256,256,40],Y4=[0,1,1,1,0],J4=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Z4=[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,3
vendor: 4,386 bytes, line 397
3976,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],Q4=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],e3=8,sp=[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],lp=[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],iu=null,t3=[[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]],r3=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Yg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],n3=[[[[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,25
3975,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]]]],i3=[[[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,
3971,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]]],o3=[[[[255,255,255,255,255,255,255,255,255,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,25
vendor: 4,741 bytes, line 397
3975,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]]]],a3=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Oo=[],vi=[],uo=[],s3=1,Jg=2,Fo=[],ei=[];Re("UpsampleRgbLinePair",At,3),Re("UpsampleBgrLinePair",rr,3),Re("UpsampleRgbaLinePair",yi,4),Re("UpsampleBgraLinePair",Fr,4),Re("UpsampleArgbLinePair",Jr,4),Re("UpsampleRgba4444LinePair",Nr,2),Re("UpsampleRgb565LinePair",sr,2);var l3=M.UpsampleRgbLinePair,u3=M.UpsampleBgrLinePair,Zg=M.UpsampleRgbaLinePair,Qg=M.UpsampleBgraLinePair,ey=M.UpsampleArgbLinePair,ty=M.UpsampleRgba4444LinePair,c3=M.UpsampleRgb565LinePair,Qc=16,ef=1<<Qc-1,ou=-227,up=482,f3=6,ry=0,h3=o(256),d3=o(256),p3=o(256),m3=o(256),g3=o(up-ou),y3=o(up-ou);zi("YuvToRgbRow",At,3),zi("YuvToBgrRow",rr,3),zi("YuvToRgbaRow",yi,4),zi("YuvToBgraRow",Fr,4),zi("YuvToArgbRow",Jr,4),zi("YuvToRgba4444Row",Nr,2),zi("YuvToRgb565Row",sr,2);var ny=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],tf=[0,2,8],v3=[8,7,6,4,4,2,2,2,1,1,1,1],w3=1;this.WebPDecodeRGBA=function(u,m,E,O,q){var K=Xc,J=new cs,te=new Xr;J.ba=te,te.S=K,te.width=[te.width],te.height=[te.height];var ne=te.width,ce=te.height,we=new kt;if(we==null||u==null)var Ne=2;else t(we!=null),Ne=hs(u,m,E,we.width,we.height,we.Pd,we.Qd,we.format,null);if(Ne!=0?ne=0:(ne!=null&&(ne[0]=we.width[0]),ce!=null&&(ce[0]=we.height[0]),ne=1),ne){te.width=te.width[0],te.height=te.height[0],O!=null&&(O[0]=te.width),q!=null&&(q[0]=te.height);e:{if(O=new ns,(q=new Hl).data=u,q.w=m,q.ha=E,q.kd=1,m=[0],t(q!=null),((u=hs(q.data,q.w,q.ha,null,null,null,m,null,q))==0||u==7)&&m[0]&&(u=4),(m=u)==0){if(t(J!=null),O.data=q.data,O.w=q.w+q.offset,O.ha=q.ha-q.offset,O.put=hr,O.ac=Lt,O.bc=qr,O.ma=J,q.xa){if((u=Kn())==null){J=1;break e}if(function(ke,Ae){var je=[0],Pe=[0],be=[0];t:for(;;){if(ke==null)return 0;if(Ae==null)return ke.a=2,0;if(ke.l=Ae,ke.a=0,ue(ke.m,Ae.data,Ae.w,Ae.ha),!Ze(ke.m,je,Pe,be)){ke.a=3;break t}if(ke.xb=Jg,Ae.width=je[0],Ae.height=Pe[0],!ji(je[0],Pe[0],1,ke,null))break t;return 1}return t(ke.a!=0),0}(u,O)){if(O=(m=ds(O.width,O.height,J.Oa,J.ba))==0){t:{O=u;r:for(;;){if(O==null){O=0;break t}if(t(O.s.yc!=null),t(O.s.Ya!=null),t(0<O.s.Wb),t((E=O.l)!=null),t((q=E.ma)!=null),O.xb!=0){if(O.ca=q.ba,O.tb=q.tb,t(O.ca!=null),!Yl(q.Oa,E,Yc)){O.a=2;break r}if(!ya(O,E.width)||E.da)break r;if((E.da||St(O.ca.S))&&Ee(),11>O.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),O.ca.f.kb.F!=null&&Ee()),O.Pb&&0<O.s.ua&&O.s.vb.X==null&&!I(O.s.vb,O.s.Wa.Xa)){O.a=1;break r}O.xb=0}if(!pi(O,O.V,O.Ba,O.c,O.i,E.o,Gn))break r;q.Dc=O.Ma,O=1;break t}t(O.a!=0),O=0}O=!O}O&&(m=u.a)}else m=u.a}else{if((u=new Dd)==null){J=1;break e}if(u.Fa=q.na,u.P=q.P,u.qc=q.Sa,Nc(u,O)){if((m=ds(O.width,O.height,J.Oa,J.ba))==0){if(u.Aa=0,E=J.Oa,t((q=u)!=null),E!=null){if(0<(ne=0>(ne=E.Md)?0:100<ne?255:255*ne/100)){for(ce=we=0;4>ce;++ce)12>(Ne=q.pb[ce]).lc&&(Ne.ia=ne*v3[0>Ne.lc?0:Ne.lc]>>3),we|=Ne.ia;we&&(alert("todo:VP8InitRandom"),q.ia=1)}q.Ga=E.Id,100<q.Ga?q.Ga=100:0>q.Ga&&(q.Ga=0)}jd(u,O)||(m=u.a)}}else m=u.a}m==0&&J.Oa!=null&&J.Oa.fd&&(m=Jl(J.ba))}J=m}K=J!=0?null:11>K?te.f.RGBA.eb:te.f.kb.y}else K=null;return K};var iy=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(M,D){for(var he="",H=0;H<4;H++)he+=String.fromCharCode(M[D++]);return he}function h(M,D){return(M[D+0]<<0|M[D+1]<<8|M[D+2]<<16)>>>0}function p(M,D){return(M[D+0]<<0|M[D+1]<<8|M[D+2]<<16|M[D+3]<<24)>>>0}new l;var g=[0],f=[0],S=[],v=new l,k=e,d=function(M,D){var he={},H=0,R=!1,X=0,T=0;if(he.frames=[],!function(B,z,ee,V){for(var C=0;C<V;C++)if(B[z+C]!=ee.charCodeAt(C))return!0;return!1}(M,D,"RIFF",4)){var se,ye;for(p(M,D+=4),D+=8;D<M.length;){var ae=c(M,D),ue=p(M,D+=4);D+=4;var oe=ue+(1&ue);switch(ae){case"VP8 ":case"VP8L":he.frames[H]===void 0&&(he.frames[H]={}),(A=he.frames[H]).src_off=R?T:D-8,A.src_size=X+ue+8,H++,R&&(R=!1,X=0,T=0);break;case"VP8X":(A=he.header={}).feature_flags=M[D];var me=D+4;A.canvas_width=1+h(M,me),me+=3,A.canvas_height=1+h(M,me),me+=3;break;case"ALPH":R=!0,X=oe+8,T=D-8;break;case"ANIM":(A=he.header).bgcolor=p(M,D),me=D+4,A.loop_count=(se=M
397)[(ye=me)+0]<<0|se[ye+1]<<8,me+=2;break;case"ANMF":var de,A;(A=he.frames[H]={}).offset_x=2*h(M,D),D+=3,A.offset_y=2*h(M,D),D+=3,A.width=1+h(M,D),D+=3,A.height=1+h(M,D),D+=3,A.duration=h(M,D),D+=3,de=M[D++],A.dispose=1&de,A.blend=de>>1&1}ae!="ANMF"&&(D+=oe)}return he}}(k,0);d.response=k,d.rgbaoutput=!0,d.dataurl=!1;var y=d.header?d.header:null,_=d.frames?d.frames:null;if(y){y.loop_counter=y.loop_count,g=[y.canvas_height],f=[y.canvas_width];for(var F=0;F<_.length&&_[F].blend!=0;F++);}var j=_[0],re=v.WebPDecodeRGBA(k,j.src_off,j.src_size,f,g);j.rgba=re,j.imgwidth=f[0],j.imgheight=g[0];for(var $=0;$<f[0]*g[0]*4;$++)S[$]=re[$];return this.width=f,this.height=g,this.data=S,this}(function(e){var t=function(){return typeof t0=="function"},r=function(g,f,S,v){var k=4,d=a;switch(v){case e.image_compression.FAST:k=1,d=o;break;case e.image_compression.MEDIUM:k=6,d=s;break;case e.image_compression.SLOW:k=9,d=l}g=n(g,f,S,d);var y=t0(g,{level:k});return e.__addimage__.arrayBufferToBinaryString(y)},n=function(g,f,S,v){for(var k,d,y,_=g.length/f,F=new Uint8Array(g.length+_),j=h(),re=0;re<_;re+=1){if(y=re*f,k=g.subarray(y,y+f),v)F.set(v(k,S,d),y+re);else{for(var $,M=j.length,D=[];$<M;$+=1)D[$]=j[$](k,S,d);var he=p(D.concat());F.set(D[he],y+re)}d=k}return F},i=function(g){var f=Array.apply([],g);return f.unshift(0),f},o=function(g,f){var S,v=[],k=g.length;v[0]=1;for(var d=0;d<k;d+=1)S=g[d-f]||0,v[d+1]=g[d]-S+256&255;return v},a=function(g,f,S){var v,k=[],d=g.length;k[0]=2;for(var y=0;y<d;y+=1)v=S&&S[y]||0,k[y+1]=g[y]-v+256&255;return k},s=function(g,f,S){var v,k,d=[],y=g.length;d[0]=3;for(var _=0;_<y;_+=1)v=g[_-f]||0,k=S&&S[_]||0,d[_+1]=g[_]+256-(v+k>>>1)&255;return d},l=function(g,f,S){var v,k,d,y,_=[],F=g.length;_[0]=4;for(var j=0;j<F;j+=1)v=g[j-f]||0,k=S&&S[j]||0,d=S&&S[j-f]||0,y=c(v,k,d),_[j+1]=g[j]-y+256&255;return _},c=function(g,f,S){if(g===f&&f===S)return g;var v=Math.abs(f-S),k=Math.abs(g-S),d=Math.abs(g+f-S-S);return v<=k&&v<=d?g:k<=d?f:S},h=function(){return[i,o,a,s,l]},p=function(g){var f=g.map(function(S){return S.reduce(function(v,k){return v+Math.abs(k)},0)});return f.indexOf(Math.min.apply(null,f))};e.processPNG=function(g,f,S,v){var k,d,y,_,F,j,re,$,M,D,he,H,R,X,T,se=this.decode.FLATE_DECODE,ye="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(y=new aN(g)).imgData,d=y.bits,k=y.colorSpace,F=y.colors,[4,6].indexOf(y.colorType)!==-1){if(y.bits===8){M=($=y.pixelBitlength==32?new Uint32Array(y.decodePixels().buffer):y.pixelBitlength==16?new Uint16Array(y.decodePixels().buffer):new Uint8Array(y.decodePixels().buffer)).length,he=new 
vendor: 7,342 bytes, line 397
397Uint8Array(M*y.colors),D=new Uint8Array(M);var ae,ue=y.pixelBitlength-y.bits;for(X=0,T=0;X<M;X++){for(R=$[X],ae=0;ae<ue;)he[T++]=R>>>ae&255,ae+=y.bits;D[X]=R>>>ae&255}}if(y.bits===16){M=($=new Uint32Array(y.decodePixels().buffer)).length,he=new Uint8Array(M*(32/y.pixelBitlength)*y.colors),D=new Uint8Array(M*(32/y.pixelBitlength)),H=y.colors>1,X=0,T=0;for(var oe=0;X<M;)R=$[X++],he[T++]=R>>>0&255,H&&(he[T++]=R>>>16&255,R=$[X++],he[T++]=R>>>0&255),D[oe++]=R>>>16&255;d=8}v!==e.image_compression.NONE&&t()?(g=r(he,y.width*y.colors,y.colors,v),re=r(D,y.width,1,v)):(g=he,re=D,se=void 0)}if(y.colorType===3&&(k=this.color_spaces.INDEXED,j=y.palette,y.transparency.indexed)){var me=y.transparency.indexed,de=0;for(X=0,M=me.length;X<M;++X)de+=me[X];if((de/=255)===M-1&&me.indexOf(0)!==-1)_=[me.indexOf(0)];else if(de!==M){for($=y.decodePixels(),D=new Uint8Array($.length),X=0,M=$.length;X<M;X++)D[X]=me[$[X]];re=r(D,y.width,1)}}var A=function(B){var z;switch(B){case e.image_compression.FAST:z=11;break;case e.image_compression.MEDIUM:z=13;break;case e.image_compression.SLOW:z=14;break;default:z=12}return z}(v);return se===this.decode.FLATE_DECODE&&(ye="/Predictor "+A+" "),ye+="/Colors "+F+" /BitsPerComponent "+d+" /Columns "+y.width,(this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),(re&&this.__addimage__.isArrayBuffer(re)||this.__addimage__.isArrayBufferView(re))&&(re=this.__addimage__.arrayBufferToBinaryString(re)),{alias:S,data:g,index:f,filter:se,decodeParameters:ye,transparency:_,palette:j,sMask:re,predictor:A,width:y.width,height:y.height,bitsPerComponent:d,colorSpace:k}}}})(ot.API),function(e){e.processGIF89A=function(t,r,n,i){var o=new sN(t),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:a,height:s},h=new om(100).encode(c,100);return e.processJPEG.call(this,h,r,n,i)},e.processGIF87A=e.processGIF89A}(ot.API),Si.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Si.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){zt.log("bit decode error:"+r)}},Si.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}r!==0&&(this.pos+=4-r)}},Si.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*i*4,s=o>>4,l=15&o,c=this.palette[s];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}t!==0&&(this.pos+=4-t)}},Si.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*n;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}e!==0&&(this.pos+=4-e)}},Si.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,s=(o>>5&t)/t*255|0,l=(o>>10&t)/t*255|0,c=o>>15?255:0,h=n*this.width*4+4*i;this.data[h]=l,this.data[h+1]=s,this.data[h+2]=a,this.data[h+3]=c}this.pos+=e}},Si.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,l=(a>>5&r)/r*255|0,c=(a>>11)/t*255|0,h=i*this.width*4+4*o;this.data[h]=c,this.data[h+1]=l,this.data[h+2]=s,this.data[h+3]=255}this.pos+=e}},Si.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},Si.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=a}},Si.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,i){var o=new Si(t,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},c=new om(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}}(ot.API),h5.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,i){var o=new h5(t),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},c=new om(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}}(ot.API),ot.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var h=n[c],p=n[c+1],g=n[c+2],f=n[c+3];o[s++]=h,o[s++]=p,o[s++]=g,a[l++]=f}var S=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:S,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},ot.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq
vendor: 8,500 bytes, lines 397-399
397:"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},Cs=ot.API,jf=Cs.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,h=c.fof?c.fof:1,p=t.doKerning!==!1,g=0,f=e.length,S=0,v=s[0]||l,k=[];for(r=0;r<f;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?k.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+a*(1e3/o)||0)/1e3):(g=p&&Ot(c[n])==="object"&&!isNaN(parseInt(c[n][S],10))?c[n][S]/h:0,k.push((s[n]||v)/l+g)),S=n;return k},l5=Cs.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Cs.processArabic&&(e=Cs.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:jf.apply(this,arguments).reduce(function(o,a){return o+a},0)},u5=function(e,t,r,n){for(var i=[],o=0,a=e.length,s=0;o!==a&&s+t[o]<r;)s+=t[o],o++;i.push(e.slice(0,o));var l=o;for(s=0;o!==a;)s+t[o]>n&&(i.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},c5=function(e,t,r){r||(r={});var n,i,o,a,s,l,c,h=[],p=[h],g=r.textIndent||0,f=0,S=0,v=e.split(" "),k=jf.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?v[0].length+2:r.lineIndent||0){var d=Array(l).join(" "),y=[];v.map(function(F){(F=F.split(/\s*\n/)).length>1?y=y.concat(F.map(function(j,re){return(re&&j.length?`
398`:"")+j})):y.push(F[0])}),v=y,l=l5.apply(this,[d,r])}for(o=0,a=v.length;o<a;o++){var _=0;if(n=v[o],l&&n[0]==`
399`&&(n=n.substr(1),_=1),g+f+(S=(i=jf.apply(this,[n,r])).reduce(function(F,j){return F+j},0))>t||_){if(S>t){for(s=u5.apply(this,[n,i,t-(g+f),t]),h.push(s.shift()),h=[s.pop()];s.length;)p.push([s.shift()]);S=i.slice(n.length-(h[0]?h[0].length:0)).reduce(function(F,j){return F+j},0)}else h=[n];p.push(h),g=S+l,f=k}else h.push(n),g+=f+S,f=k}return c=l?function(F,j){return(j?d:"")+F.join(" ")}:function(F){return F.join(" ")},p.map(c)},Cs.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),o=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var p=this.internal.getFont(h.fontName,h.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,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(c5.apply(this,[n[s],a,o]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},i=0;i<t.length;i++)r[t[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=t[i];var o=function(p){return"0x"+parseInt(p,10).toString(16)},a=e.__fontmetrics__.compress=function(p){var g,f,S,v,k=["{"];for(var d in p){if(g=p[d],isNaN(parseInt(d,10))?f="'"+d+"'":(d=parseInt(d,10),f=(f=o(d).slice(2)).slice(0,-1)+n[f.slice(-1)]),typeof g=="number")g<0?(S=o(g).slice(3),v="-"):(S=o(g).slice(2),v=""),S=v+S.slice(0,-1)+n[S.slice(-1)];else{if(Ot(g)!=="object")throw new Error("Don't know what to do with value type "+Ot(g)+".");S=a(g)}k.push(f+S)}return k.push("}"),k.join("")},s=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,f,S,v,k={},d=1,y=k,_=[],F="",j="",re=p.length-1,$=1;$<re;$+=1)(v=p[$])=="'"?g?(S=g.join(""),g=void 0):g=[]:g?g.push(v):v=="{"?(_.push([y,S]),y={},S=void 0):v=="}"?((f=_.pop())[0][f[1]]=y,S=void 0,y=f[0]):v=="-"?d=-1:S===void 0?r.hasOwnProperty(v)?(F+=r[v],S=parseInt(F,16)*d,d=1,F=""):F+=v:r.hasOwnProperty(v)?(j+=r[v],y[S]=parseInt(j,16)*d,d=1,S=void 0,j=""):j+=v;return k},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},h
vendor: 14,693 bytes, line 399
399={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};
vendor: 10,690 bytes, lines 399-427
399e.events.push(["addFont",function(p){var g=p.font,f=h.Unicode[g.postScriptName];f&&(g.metadata.Unicode={},g.metadata.Unicode.widths=f.widths,g.metadata.Unicode.kerning=f.kerning);var S=c.Unicode[g.postScriptName];S&&(g.metadata.Unicode.encoding=S,g.encoding=S.codePages[0])}])}(ot.API),function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),o=0;o<n;o++)i[o]=r.charCodeAt(o);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,o=r.instance;if(!i.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=o.existsFileInVFS(i.postScriptName)===!1?o.loadFile(i.postScriptName):o.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(a,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Uu(s)),a.metadata=e.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(i,n)}}])}(ot),function(e){function t(){return(st.canvg?Promise.resolve(st.canvg):Y1(()=>import("./index.es-ClG6BsOY.js"),[])).catch(function(r){return Promise.reject(new Error("Could not load canvg: "+r))}).then(function(r){return r.default?r.default:r})}ot.API.addSvgAsImage=function(r,n,i,o,a,s,l,c){if(isNaN(n)||isNaN(i))throw zt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(a))throw zt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=o,h.height=a;var p=h.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,h.width,h.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return t().then(function(S){return S.fromString(p,r,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(S){return S.render(g)}).then(function(){f.addImage(h.toDataURL("image/jpeg",1),n,i,o,a,l,c)})}}(),ot.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},ot.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),l=[],c=0,h=0,p=0;function g(S,v){var k,d=!1;for(k=0;k<S.length;k+=1)S[k]===v&&(d=!0);return d}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=s.length;for(p=0;p<f;p+=1)r[s[p]].value=r[s[p]].defaultValue,r[s[p]].explicitSet=!1}if(Ot(e)==="object"){for(i in e)if(o=e[i],g(s,i)&&o!==void 0){if(r[i].type==="boolean"&&typeof o=="boolean")r[i].value=o;else if(r[i].type==="name"&&g(r[i].valueSet,o))r[i].value=o;else if(r[i].type==="integer"&&Number.isInteger(o))r[i].value=o;else if(r[i].type==="array"){for(c=0;c<o.length;c+=1)if(n=!0,o[c].length===1&&typeof o[c][0]=="number")l.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)typeof o[c][h]!="number"&&(n=!1);n===!0&&l.push([o[c][0]-1,o[c][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var S,v=[];for(S in r)r[S].explicitSet===!0&&(r[S].type==="name"?v.push("/"+S+" /"+r[S].value):v.push("/"+S+" "+r[S].value));v.length!==0&&this.internal.write(`/ViewerPreferences
400<<
401`+v.join(`
402`)+`
403>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(n)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=o.length+a.length+s.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+o+a+s+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}}(ot.API),function(e){var t=e.API,r=t.pdfEscape16=function(o,a){for(var s,l=a.metadata.Unicode.widths,c=["","0","00","000","0000"],h=[""],p=0,g=o.length;p<g;++p){if(s=a.metadata.characterToGlyph(o.charCodeAt(p)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=o.charCodeAt(p),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return h.join("");s=s.toString(16),h.push(c[4-s.length],s)}return h.join("")},n=function(o){var a,s,l,c,h,p,g;for(h=`/CIDInit /ProcSet findresource begin
40412 dict begin
405begincmap
406/CIDSystemInfo <<
407  /Registry (Adobe)
408  /Ordering (UCS)
409  /Supplement 0
410>> def
411/CMapName /Adobe-Identity-UCS def
412/CMapType 2 def
4131 begincodespacerange
414<0000><ffff>
415endcodespacerange`,l=[],p=0,g=(s=Object.keys(o).sort(function(f,S){return f-S})).length;p<g;p++)a=s[p],l.length>=100&&(h+=`
416`+l.length+` beginbfchar
417`+l.join(`
418`)+`
419endbfchar`,l=[]),o[a]!==void 0&&o[a]!==null&&typeof o[a].toString=="function"&&(c=("0000"+o[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),l.push("<"+a+"><"+c+">"));return l.length&&(h+=`
420`+l.length+` beginbfchar
421`+l.join(`
422`)+`
423endbfchar
424`),h+=`endcmap
425CMapName currentdict /CMap defineresource pop
426end
427end`};t.events.push(["putFont",function(o){(function(a){var s=a.font,l=a.out,c=a.newObject,h=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var p=s.metadata.Unicode.widths,g=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),f="",S=0;S<g.length;S++)f+=String.fromCharCode(g[S]);var v=c();h({data:f,addLength1:!0,objectId:v}),l("endobj");var k=c();h({data:n(s.metadata.toUnicode),addLength1:!0,objectId:k}),l("endobj");var d=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Fs(s.fontName)),l("/FontFile2 "+v+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var y=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+Fs(s.fontName)),l("/FontDescriptor "+d+" 0 R"),l("/W "+e.API.PDFObject.convert(p)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+k+" 0 R"),l("/BaseFont /"+Fs(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+y+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(a){var s=a.font,l=a.out,c=a.newObject,h=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var p=s.metadata.rawData,g="",f=0;f<p.length;f++)g+=String.fromCharCode(p[f]);var S=c();h({data:g,addLength1:!0,objectId:S}),l("endobj");var v=c();h({data:n(s.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var k=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/
427FontFile2 "+S+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+Fs(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var d=0;d<s.metadata.hmtx.widths.length;d++)s.metadata.hmtx.widths[d]=parseInt(s.metadata.hmtx.widths[d]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+Fs(s.fontName)+"/FontDescriptor "+k+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(o)}]);var i=function(o){var a,s=o.text||"",l=o.x,c=o.y,h=o.options||{},p=o.mutex||{},g=p.pdfEscape,f=p.activeFontKey,S=p.fonts,v=f,k="",d=0,y="",_=S[v].encoding;if(S[v].encoding!=="Identity-H")return{text:s,x:l,y:c,options:h,mutex:p};for(y=s,v=f,Array.isArray(s)&&(y=s[0]),d=0;d<y.length;d+=1)S[v].metadata.hasOwnProperty("cmap")&&(a=S[v].metadata.cmap.unicode.codeMap[y[d].charCodeAt(0)]),a||y[d].charCodeAt(0)<256&&S[v].metadata.hasOwnProperty("Unicode")?k+=y[d]:k+="";var F="";return parseInt(v.slice(1))<14||_==="WinAnsiEncoding"?F=g(k,v).split("").map(function(j){return j.charCodeAt(0).toString(16)}).join(""):_==="Identity-H"&&(F=r(k,S[v])),p.isHex=!0,{text:F,x:l,y:c,options:h,mutex:p}};t.events.push(["postProcessText",function(o){var a=o.text||"",s=[],l={text:a,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(a)){var c=0;for(c=0;c<a.length;c+=1)Array.isArray(a[c])&&a[c].length===3?s.push([i(Object.assign({},l,{text:a[c][0]})).text,a[c][1],a[c][2]]):s.push(i(Object.assign({},l,{text:a[c]})).text);o.text=s}else o.text=i(Object.assign({},l,{text:a})).text}])}(ot),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(ot.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,o,a,s,l,c,h,p=t,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]],f=[[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]],S={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},k=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],d=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)$/),y=!1,_=0;this.__bidiEngine__={};var F=function(H){var R=H.charCodeAt(),X=R>>8,T=v[X];return T!==void 0?p[256*T+(255&R)]:X===252||X===253?"AL":d.test(X)?"L":X===8?"R":"N"},j=function(H){for(var R,X=0;X<H.length;X++){if((R=F(H.charAt(X)))==="L")return!1;if(R==="R")return!0}return!1},re=function(H,R,X,T){var se,ye,ae,ue,oe=R[T];switch(oe){case"L":case"R":y=!1;break;case"N":case"AN":break;case"EN":y&&(oe="AN");break;case"AL":y=!0,oe="R";break;case"WS":oe="N";break;case"CS":T<1||T+1>=R.length||(se=X[T-1])!=="EN"&&se!=="AN"||(ye=R[T+1])!=="EN"&&ye!=="AN"?oe="N":y&&(ye="AN"),oe=ye===se?ye:"N";break;case"ES":oe=(se=T>0?X[T-1]:"B")==="EN"&&T+1<R.length&&R[T+1]==="EN"?"EN":"N";break;case"ET":if(T>0&&X[T-1]==="EN"){oe="EN";break}if(y){oe="N";break}for(ae=T+1,ue=R.length;ae<ue&&R[ae]==="ET";)ae++;oe=ae<ue&&R[ae]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(ue=R.length,ae=T+1;ae<ue&&R[ae]==="NSM";)ae++;if(ae<ue){var me=H[T],de=me>=1425&&me<=2303||me===64286;if(se=R[ae],de&&(se==="R"||se==="AL")){oe="R";break}}}oe=T<1||(se=R[T-1])==="B"?"N":X[T-1];break;case"B":y=!1,i=!0,oe=_;break;case"S":o=!0,oe="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":y=!1;break;case"BN":oe="N"}return oe},$=function(H,R,X){var T=H.split("");return X&&M(T,X,{hiLevel:_}),T.reverse(),R&&R.reverse(),T.join("")},M=function(H,R,X){var T,se,ye,ae,ue,oe=-1,me=H.length,de=0,A=[],B=_?f:g,z=[];for(y=!1,i=!1,o=!1,se=0;se<me;se++)z[se]=F(H[se]);for(ye=0;ye<me;
vendor: 34,301 bytes, lines 427-428
427ye++){if(ue=de,A[ye]=re(H,z,A,ye),T=240&(de=B[ue][S[A[ye]]]),de&=15,R[ye]=ae=B[de][5],T>0)if(T===16){for(se=oe;se<ye;se++)R[se]=1;oe=-1}else oe=-1;if(B[de][6])oe===-1&&(oe=ye);else if(oe>-1){for(se=oe;se<ye;se++)R[se]=ae;oe=-1}z[ye]==="B"&&(R[ye]=0),X.hiLevel|=ae}o&&function(ee,V,C){for(var L=0;L<C;L++)if(ee[L]==="S"){V[L]=_;for(var Y=L-1;Y>=0&&ee[Y]==="WS";Y--)V[Y]=_}}(z,R,me)},D=function(H,R,X,T,se){if(!(se.hiLevel<H)){if(H===1&&_===1&&!i)return R.reverse(),void(X&&X.reverse());for(var ye,ae,ue,oe,me=R.length,de=0;de<me;){if(T[de]>=H){for(ue=de+1;ue<me&&T[ue]>=H;)ue++;for(oe=de,ae=ue-1;oe<ae;oe++,ae--)ye=R[oe],R[oe]=R[ae],R[ae]=ye,X&&(ye=X[oe],X[oe]=X[ae],X[ae]=ye);de=ue}de++}}},he=function(H,R,X){var T=H.split(""),se={hiLevel:_};return X||(X=[]),M(T,X,se),function(ye,ae,ue){if(ue.hiLevel!==0&&h)for(var oe,me=0;me<ye.length;me++)ae[me]===1&&(oe=k.indexOf(ye[me]))>=0&&(ye[me]=k[oe+1])}(T,X,se),D(2,T,R,X,se),D(1,T,R,X,se),T.join("")};return this.__bidiEngine__.doBidiReorder=function(H,R,X){if(function(se,ye){if(ye)for(var ae=0;ae<se.length;ae++)ye[ae]=ae;s===void 0&&(s=j(se)),c===void 0&&(c=j(se))}(H,R),a||!l||c)if(a&&l&&s^c)_=s?1:0,H=$(H,R,X);else if(!a&&l&&c)_=s?1:0,H=he(H,R,X),H=$(H,R);else if(!a||s||l||c){if(a&&!l&&s^c)H=$(H,R),s?(_=0,H=he(H,R,X)):(_=1,H=he(H,R,X),H=$(H,R));else if(a&&s&&!l&&c)_=1,H=he(H,R,X),H=$(H,R);else if(!a&&!l&&s^c){var T=h;s?(_=1,H=he(H,R,X),_=0,h=!1,H=he(H,R,X),h=T):(_=0,H=he(H,R,X),H=$(H,R),_=1,h=!1,H=he(H,R,X),h=T,H=$(H,R))}}else _=0,H=he(H,R,X);else _=s?1:0,H=he(H,R,X);return H},this.__bidiEngine__.setOptions=function(H){H&&(a=H.isInputVisual,l=H.isOutputVisual,s=H.isInputRtl,c=H.isOutputRtl,h=H.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text,o=(n.x,n.y,n.options||{}),a=(n.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,r.setOptions(o),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(a=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?a.push([r.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):a.push([r.doBidiReorder(i[s])]);n.text=a}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])}(ot),ot.API.TTFFont=function(){function e(t){var r;if(this.rawData=t,r=this.contents=new fa(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new SN(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new lN(this.contents),this.head=new cN(this),this.name=new mN(this),this.cmap=new Bx(this),this.toUnicode={},this.hhea=new fN(this),this.maxp=new gN(this),this.hmtx=new yN(this),this.post=new dN(this),this.os2=new hN(this),this.loca=new xN(this),this.glyf=new vN(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,i,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,s,l,c;for(c=[],a=0,s=(l=this.bbox).length;a<s;a++)t=l[a],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(r=i>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,o,a,s;for(a=0,o=0,s=(t=""+t).length;0<=s?o<s:o>s;o=0<=s?++o:--o)i=t.charCodeAt(o),a+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return a*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var Fi,fa=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,o,a,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^o)+65536*(255^a)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*o+65536*a+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,o;for(o=[],n=0,i=t.length;n<i;n++)r=t[n],o.push(this.writeByte(r));return o},e}(),lN=function(){var e;function t(r){var n,i,o;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,o,a,s,l,c,h,p,g,f,S,v;for(v in f=Object.keys(r).length,l=Math.log(2),p=16*Math.floor(Math.log(f)/l),a=Math.floor(p/l),h=16*f-p,(i=new fa).writeInt(this.scalarType),i.writeShort(f),i.writeShort(p),i.writeShort(a),i.writeShort(h),o=16*f,c=i.pos+o,s=null,S=[],r)for(g=r[v],i.writeString(v),i.writeInt(e(g)),i.writeInt(c),i.writeInt(g.length),S=S.concat(g),v==="head"&&(s=c),c+=g.length;c%4;)S.push(0),c++;return i.write(S),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(r){var n,i,o,a;for(r=Mx.call(r);r.length%4;)r.push(0);for(o=new fa(r),i=0,n=0,a=r.length;n<a;n=n+=4)i+=o.readUInt32();return 4294967295&i},t}(),uN={}.hasOwnProperty,ro=function(e,t){for(var r in t)uN.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Fi=function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var cN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="head",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},t.prototype.encode=function(r){var n;return(n=new fa).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(r),n.writeShort(this.glyphDataFormat),n.data},t}(),d5=function(){function e(t,r){var n,i,o,a,s,l,c,h,p,g,f,S,v,k,d,y,_;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),p=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(f=t.readUInt16(),g=f/2,t.pos+=6,o=function(){var F,j;for(j=[],l=F=0;0<=g?F<g:F>g;l=0<=g?++F:--F)j.push(t.readUInt16());return j}(),t.pos+=2,v=function(){var F,j;for(j=[],l=F=0;0<=g?F<g:F>g;l=0<=g?++F:--F)j.push(t.readUInt16());return j}(),c=function(){var F,j;for(j=[],l=F=0;0<=g?F<g:F>g;l=0<=g?++F:--F)j.push(t.readUInt16());return j}(),h=function(){var F,j;for(j=[],l=F=0;0<=g?F<g:F>g;l=0<=g?++F:--F)j.push(t.readUInt16());return j}(),i=(this.length-t.pos+this.offset)/2,s=function(){var F,j;for(j=[],l=F=0;0<=i?F<i:F>i;l=0<=i?++F:--F)j.push(t.readUInt16());return j}(),l=d=0,_=o.length;d<_;l=++d)for(k=o[l],n=y=S=v[l];S<=k?y<=k:y>=k;n=S<=k?++y:--y)h[l]===0?a=n+c[l]:(a=s[h[l]/2+(n-S)-(g-l)]||0)!==0&&(a+=c[l]),this.codeMap[n]=65535&a}t.pos=p}return e.encode=function(t,r){var n,i,o,a,s,l,c,h,p,g,f,S,v,k,d,y,_,F,j,re,$,M,D,he,H,R,X,T,se,ye,ae,ue,oe,me,de,A,B,z,ee,V,C,L,Y,Z,U,G;switch(T=new fa,a=Object.keys(t).sort(function(ge,I){return ge-I}),r){case"macroman":for(v=0,k=function(){var ge=[];for(S=0;S<256;++S)ge.push(0);return ge}(),y={0:0},o={},se=0,oe=a.length;se<oe;se++)y[Y=t[i=a[se]]]==null&&(y[Y]=++v),o[i]={old:t[i],new:y[t[i]]},k[i]=y[t[i]];return T.writeUInt16(1),T.writeUInt16(0),T.writeUInt32(12),T.writeUInt16(0),T.writeUInt16(262),T.writeUInt16(0),T.write(k),{charMap:o,subtable:T.data,maxGlyphID:v+1};case"unicode":for(R=[],p=[],_=0,y={},n={},d=c=null,ye=0,me=a.length;ye<me;ye++)y[j=t[i=a[ye]]]==null&&(y[j]=++_),n[i]={old:j,new:y[j]},s=y[j]-i,d!=null&&s===c||(d&&p.push(d),R.push(i),c=s),d=i;for(d&&p.push(d),p.push(65535),R.push(65535),he=2*(D=R.length),M=2*Math.pow(Math.log(D)/Math.LN2,2),g=Math.log(M/2)/Math.LN2,$=2*D-M,l=[],re=[],f=[],S=ae=0,de=R.length;ae<de;S=++ae){if(H=R[S],h=p[S],H===65535){l.push(0),re.push(0);break}if(H-(X=n[H].new)>=32768)for(l.push(0),re.push(2*(f.length+D-S)),i=ue=H;H<=h?ue<=h:ue>=h;i=H<=h?++ue:--ue)f.push(n[i].new);else l.push(X-H),re.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*D+2*f.length),T.writeUInt16(0),T.writeUInt16(he),T.writeUInt16(M),T.writeUInt16(g),T.writeUInt16($),C=0,A=p.length;C<A;C++)i=p[C],T.writeUInt16(i);for(T.writeUInt16(0),L=0,B=R.length;L<B;L++)i=R[L],T.writeUInt16(i);for(Z=0,z=l.length;Z<z;Z++)s=l[Z],T.writeUInt16(s);for(U=0,ee=re.length;U<ee;U++)F=re[U],T.writeUInt16(F);for(G=0,V=f.length;G<V;G++)v=f[G],T.writeUInt16(v);return{charMap:n,subtable:T.data,maxGlyphID:_+1}}},e}(),Bx=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="cmap",t.prototype.parse=function(r){var n,i,o;for(r.pos=this.offset,this.version=r.readUInt16(),o=r.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)n=new d5(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(r,n){var i,o;return n==null&&(n="macroman"),i=d5.encode(r,n),(o=new fa).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},t}(),fN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="hhea",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},t}(),hN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="OS/2",t.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=function(){var n,i;for(i=[],n=0;n<10;++n)i.push(r.readByte());return i}(),this.charRange=function(){var n,i;for(i=[],n=0;n<4;++n)i.push(r.readInt());return i}(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(r.readInt());return i}(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},t}(),dN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="post",t.prototype.parse=function(r){var n,i,o;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var a;for(i=r.readUInt16(),this.glyphNameIndex=[],a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],o=[];r.pos<this.offset+this.length;)n=r.readByte(),o.push(this.names.push(r.readString(n)));return o;case 151552:return i=r.readUInt16(),this.offsets=r.read(i);case 196608:break;case 262144:return this.map=(function(){var s,l,c;for(c=[],a=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;a=0<=l?++s:--s)c.push(r.readUInt32());return c}).call(this)}},t}(),pN=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},mN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="name",t.prototype.parse=function(r){var n,i,o,a,s,l,c,h,p,g,f;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),i=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)i.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(c={},a=p=0,g=i.length;p<g;a=++p)o=i[a],r.pos=o.offset,h=r.readString(o.length),s=new pN(h,o),c[f=o.nameID]==null&&(c[f]=[]),c[o.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t}(),gN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="maxp",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},t}(),yN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,i,o,a,s,l,c;for(r.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var h,p;for(p=[],n=h=0;0<=o?h<o:h>o;n=0<=o?++h:--h)p.push(r.readInt16());return p}(),this.widths=(function(){var h,p,g,f;for(f=[],h=0,p=(g=this.metrics).length;h<p;h++)a=g[h],f.push(a.advance);return f}).call(this),i=this.widths[this.widths.length-1],c=[],n=s=0;0<=o?s<o:s>o;n=0<=o?++s:--s)c.push(this.widths.push(i));return c},t.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},t}(),Mx=[].slice,vN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,i,o,a,s,l,c,h,p,g;return r in this.cache?this.cache[r]:(a=this.file.loca,n=this.file.contents,i=a.indexOf(r),(o=a.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+i,s=(l=new fa(n.read(o))).readShort(),h=l.readShort(),g=l.readShort(),c=l.readShort(),p=l.readShort(),this.cache[r]=s===-1?new bN(l,h,g,c,p):new wN(l,s,h,g,c,p),this.cache[r]))},t.prototype.encode=function(r,n,i){var o,a,s,l,c;for(s=[],a=[],l=0,c=n.length;l<c;l++)o=r[n[l]],a.push(s.length),o&&(s=s.concat(o.encode(i)));return a.push(s.length),{table:s,offsets:a}},t}(),wN=function(){function e(t,r,n,i,o,a){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=o,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),bN=function(){function e(t,r,n,i,o){var a,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new fa(Mx.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e}(),xN=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ro(t,Fi),t.prototype.tag="loca",t.prototype.parse=function(r){var n,i;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var o,a;for(a=[],i=0,o=this.length;i<o;i+=2)a.push(2*r.readUInt16());return a}).call(this):(function(){var o,a;for(a=[],i=0,o=this.length;i<o;i+=4)a.push(r.readUInt32());return a}).call(this)},t.prototype.indexOf=function(r){return this.offsets[r]},t.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},t.prototype.encode=function(r,n){for(var i=new Uint32Array(this.offsets.length),o=0,a=0,s=0;s<i.length;++s)if(i[s]=o,a<n.length&&n[a]==s){++a,i[s]=o;var l=this.offsets[s],c=this.offsets[s+1]-l;c>0&&(o+=c)}for(var h=new Array(4*i.length),p=0;p<i.length;++p)h[4*p+3]=255&i[p],h[4*p+2]=(65280&i[p])>>8,h[4*p+1]=(16711680&i[p])>>16,h[4*p]=(4278190080&i[p])>>24;return h},t}(),SN=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,o;for(r in i=this.font.cmap.tables[0].codeMap,t={},o=this.subset)n=o[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,o,a,s,l;for(i={},a=0,s=t.length;a<s;a++)i[o=t[a]]=this.font.glyf.glyphFor(o);for(o in r=[],i)(n=i[o])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(o in l=this.glyphsFor(r))n=l[o],i[o]=n;return i},e.prototype.encode=function(t,r){var n,i,o,a,s,l,c,h,p,g,f,S,v,k,d;for(i in n=Bx.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},d=n.charMap)f[(l=d[i]).old]=l.new;for(S in g=n.maxGlyphID,a)S in f||(f[S]=g++);return h=function(y){var _,F;for(_ in F={},y)F[y[_]]=_;return F}(f),p=Object.keys(h).sort(function(y,_){return y-_}),v=function(){var y,_,F;for(F=[],y=0,_=p.length;y<_;y++)s=p[y],F.push(h[s]);return F}(),o=this.font.glyf.encode(a,v,f),c=this.font.loca.encode(o.offsets,v),k={cmap:this.font.cmap.raw(),glyf:o.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(k["OS/2"]=this.font.os2.raw()),this.font.directory.encode(k)},e}();ot.API.PDFObject=function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,o,a;if(Array.isArray(r))return"["+function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(t.convert(n));return c}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in o=["<<"],r)a=r[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join(`
428`)}return""+r},t}();function _N(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}const AN=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function sa(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}let Ts=null;function zx(e={}){return Ts||(e.includeStyleProperties?(Ts=e.includeStyleProperties,Ts):(Ts=sa(window.getComputedStyle(document.documentElement)),Ts))}function Vh(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}
428function EN(e){const t=Vh(e,"border-left-width"),r=Vh(e,"border-right-width");return e.clientWidth+t+r}function NN(e){const t=Vh(e,"border-top-width"),r=Vh(e,"border-bottom-width");return e.clientHeight+t+r}function Ux(e,t={}){const r=t.width||EN(e),n=t.height||NN(e);return{width:r,height:n}}function kN(){let e,t;try{t=process}catch{}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Mn=16384;function LN(e){(e.width>Mn||e.height>Mn)&&(e.width>Mn&&e.height>Mn?e.width>e.height?(e.height*=Mn/e.width,e.width=Mn):(e.width*=Mn/e.height,e.height=Mn):e.width>Mn?(e.height*=Mn/e.width,e.width=Mn):(e.width*=Mn/e.height,e.height=Mn))}function $h(e){return new Promise((t,r)=>{const n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function CN(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function TN(e,t,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),CN(i)}const Tn=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||Tn(r,t)};function PN(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function IN(e,t){return zx(t).map(r=>{const n=e.getPropertyValue(r),i=e.getPropertyPriority(r);return`${r}: ${n}${i?" !important":""};`}).join(" ")}function RN(e,t,r,n){const i=`.${e}:${t}`,o=r.cssText?PN(r):IN(r,n);return document.createTextNode(`${i}{${o}}`)}function p5(e,t,r,n){const i=window.getComputedStyle(e,r),o=i.getPropertyValue("content");if(o===""||o==="none")return;const a=AN();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(RN(a,r,i,n)),t.appendChild(s)}function ON(e,t,r){p5(e,t,":before",r),p5(e,t,":after",r)}const m5="application/font-woff",g5="image/jpeg",FN={woff:m5,woff2:m5,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:g5,jpeg:g5,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function DN(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function kg(e){const t=DN(e).toLowerCase();return FN[t]||""}function jN(e){return e.split(/,/)[1]}function l0(e){return e.search(/^(data:)/)!==-1}function BN(e,t){return`data:${t};base64,${e}`}async function qx(e,t,r){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((o,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{o(r({res:n,result:s.result}))}catch(l){a(l)}},s.readAsDataURL(i)})}const am={};function MN(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function Lg(e,t,r){const n=MN(e,t,r.includeQueryParams);if(am[n]!=null)return am[n];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const o=await qx(e,r.fetchRequestInit,({res:a,result:s})=>(t||(t=a.headers.get("Content-Type")||""),jN(s)));i=BN(o,t)}catch(o){i=r.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;o&&(a=typeof o=="string"?o:o.message),a&&console.warn(a)}return am[n]=i,i}async function zN(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):$h(t)}async function UN(e,t){if(e.currentSrc){const o=document.createElement("canvas"),a=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,a==null||a.drawImage(e,0,0,o.width,o.height);const s=o.toDataURL();return $h(s)}const r=e.poster,n=kg(r),i=await Lg(r,n,t);return $h(i)}async function qN(e,t){var r;try{if(!((r=e==null?void 0:e.contentDocument)===null||r===void 0)&&r.body)return await Sd(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function WN(e,t){return Tn(e,HTMLCanvasElement)?zN(e):Tn(e,HTMLVideoElement)?UN(e,t):Tn(e,HTMLIFrameElement)?qN(e,t):e.cloneNode(Wx(e))}const HN=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Wx=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function VN(e,t,r){var n,i;if(Wx(t))return t;let o=[];return HN(e)&&e.assignedNodes?o=sa(e.assignedNodes()):Tn(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?o=sa(e.contentDocument.body.childNodes):o=sa(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),o.length===0||Tn(e,HTMLVideoElement)||await o.reduce((a,s)=>a.then(()=>Sd(s,r)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function $N(e,t,r){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):zx(r).forEach(o=>{let a=i.getPropertyValue(o);o==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Tn(e,HTMLIFrameElement)&&o==="display"&&a==="inline"&&(a="block"),o==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(o,a,i.getPropertyPriority(o))})}function GN(e,t){Tn(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Tn(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function KN(e,t){if(Tn(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(i=>e.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function XN(e,t,r){return Tn(t,Element)&&($N(e,t,r),ON(e,t,r),GN(e,t),KN(e,t)),t}async function YN(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const n={};for(let o=0;o<r.length;o++){const s=r[o].getAttribute("xlink:href");if(s){const l=e.querySelector(s),c=document.querySelector(s);!l&&c&&!n[s]&&(n[s]=await Sd(c,t,!0))}}const i=Object.values(n);if(i.length){const o="http://www.w3.org/1999/xhtml",a=document.createElementNS(o,"svg");a.setAttribute("xmlns",o),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(o,"defs");a.appendChild(s);for(let l=0;l<i.length;l++)s.appendChild(i[l]);e.appendChild(a)}return e}async function Sd(e,t,r){return!r&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>WN(n,t)).then(n=>VN(e,n,t)).then(n=>XN(e,n,t)).then(n=>YN(n,t))}const Hx=/url\((['"]?)([^'"]+?)\1\)/g,JN=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,ZN=/sr
428c:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function QN(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function ek(e){const t=[];return e.replace(Hx,(r,n,i)=>(t.push(i),r)),t.filter(r=>!l0(r))}async function tk(e,t,r,n,i){try{const o=r?_N(t,r):t,a=kg(t);let s;return i||(s=await Lg(o,a,n)),e.replace(QN(t),`$1${s}$3`)}catch{}return e}function rk(e,{preferredFontFormat:t}){return t?e.replace(ZN,r=>{for(;;){const[n,,i]=JN.exec(r)||[];if(!i)return"";if(i===t)return`src: ${n};`}}):e}function Vx(e){return e.search(Hx)!==-1}async function $x(e,t,r){if(!Vx(e))return e;const n=rk(e,r);return ek(n).reduce((o,a)=>o.then(s=>tk(s,a,t,r)),Promise.resolve(n))}async function Ps(e,t,r){var n;const i=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(i){const o=await $x(i,null,r);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function nk(e,t){await Ps("background",e,t)||await Ps("background-image",e,t),await Ps("mask",e,t)||await Ps("-webkit-mask",e,t)||await Ps("mask-image",e,t)||await Ps("-webkit-mask-image",e,t)}async function ik(e,t){const r=Tn(e,HTMLImageElement);if(!(r&&!l0(e.src))&&!(Tn(e,SVGImageElement)&&!l0(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,i=await Lg(n,kg(n),t);await new Promise((o,a)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...l)=>{try{o(t.onImageErrorHandler(...l))}catch(c){a(c)}}:a;const s=e;s.decode&&(s.decode=o),s.loading==="lazy"&&(s.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}async function ok(e,t){const n=sa(e.childNodes).map(i=>Gx(i,t));await Promise.all(n).then(()=>e)}async function Gx(e,t){Tn(e,Element)&&(await nk(e,t),await ik(e,t),await ok(e,t))}function ak(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(i=>{r[i]=n[i]}),e}const y5={};async function v5(e){let t=y5[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},y5[e]=t,t}async function w5(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=(r.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(n,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),qx(s,t.fetchRequestInit,({result:l})=>(r=r.replace(a,`url(${l})`),[a,l]))});return Promise.all(o).then(()=>r)}function b5(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(r,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
428)","gi");for(;;){const l=i.exec(n);if(l===null)break;t.push(l[0])}n=n.replace(i,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let l=o.exec(n);if(l===null){if(l=s.exec(n),l===null)break;o.lastIndex=s.lastIndex}else s.lastIndex=o.lastIndex;t.push(l[0])}return t}async function sk(e,t){const r=[],n=[];return e.forEach(i=>{if("cssRules"in i)try{sa(i.cssRules||[]).forEach((o,a)=>{if(o.type===CSSRule.IMPORT_RULE){let s=a+1;const l=o.href,c=v5(l).then(h=>w5(h,t)).then(h=>b5(h).forEach(p=>{try{i.insertRule(p,p.startsWith("@import")?s+=1:i.cssRules.length)}catch(g){console.error("Error inserting rule from remote css",{rule:p,error:g})}})).catch(h=>{console.error("Error loading remote css",h.toString())});n.push(c)}})}catch(o){const a=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&n.push(v5(i.href).then(s=>w5(s,t)).then(s=>b5(s).forEach(l=>{a.insertRule(l,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(i=>{if("cssRules"in i)try{sa(i.cssRules||[]).forEach(o=>{r.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${i.href}`,o)}}),r))}function lk(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Vx(t.style.getPropertyValue("src")))}async function uk(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=sa(e.ownerDocument.styleSheets),n=await sk(r,t);return lk(n)}function Kx(e){return e.trim().replace(/["']/g,"")}function ck(e){const t=new Set;function r(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(o=>{t.add(Kx(o))}),Array.from(n.children).forEach(o=>{o instanceof HTMLElement&&r(o)})}return r(e),t}async function fk(e,t){const r=await uk(e,t),n=ck(e);return(await Promise.all(r.filter(o=>n.has(Kx(o.style.fontFamily))).map(o=>{const a=o.parentStyleSheet?o.parentStyleSheet.href:null;return $x(o.cssText,a,t)}))).join(`
429`)}async function hk(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await fk(e,t);if(r){const n=document.createElement("style"),i=document.createTextNode(r);n.appendChild(i),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function dk(e,t={}){const{width:r,height:n}=Ux(e,t),i=await Sd(e,t,!0);return await hk(i,t),await Gx(i,t),ak(i,t),await TN(i,r,n)}async function pk(e,t={}){const{width:r,height:n}=Ux(e,t),i=await dk(e,t),o=await $h(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||kN(),c=t.canvasWidth||r,h=t.canvasHeight||n;return a.width=c*l,a.height=h*l,t.skipAutoScale||LN(a),a.style.width=`${c}`,a.style.height=`${h}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function mk(e,t={}){return(await pk(e,t)).toDataURL()}const gk={A4:"a4",A3:"a3",Letter:"letter",Legal:"legal"};async function yk(e,t){const r=document.getElementById("infographic-content");if(!r)return null;try{const n=await mk(r,{quality:1,pixelRatio:2,backgroundColor:"#ffffff"}),i=new ot({orientation:t.orientation,unit:"mm",format:gk[t.size]}),o=i.getImageProperties(n),a=i.internal.pageSize.getWidth(),s=o.height*a/o.width,l=t.margin,c=t.margin,h=a-2*l,p=o.height*h/o.width;if(p>i.internal.pageSize.getHeight()-2*c){let g=p,f=0,S=1;for(;g>=0;)S>1&&i.addPage(),i.addImage(n,"PNG",l,c+f,h,p),g-=i.internal.pageSize.getHeight(),f-=i.internal.pageSize.getHeight(),S++}else i.addImage(n,"PNG",l,c,h,p);return i}catch(n){return console.error("Error generating PDF:",n),null}}var vk=Object.defineProperty,wk=Object.defineProperties,bk=Object.getOwnPropertyDescriptors,x5=Object.getOwnPropertySymbols,xk=Object.prototype.hasOwnProperty,Sk=Object.prototype.propertyIsEnumerable,u0=(e,t,r)=>t in e?vk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tt=(e,t)=>{for(var r in t||(t={}))xk.call(t,r)&&u0(e,r,t[r]);if(x5)for(var r of x5(t))Sk.call(t,r)&&u0(e,r,t[r]);return e},cc=(e,t)=>wk(e,bk(t)),Be=(e,t,r)=>(u0(e,typeof t!="symbol"?t+"":t,r),r),Bf=(e,t,r)=>new Promise((n,i)=>{var o=l=>
429{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});class Gh{constructor(t){Be(this,"rootKey"),this.rootKey=t}}const _k=Object.seal({});class ze extends Gh{constructor(t){super(t),Be(this,"root"),this.root=new Array}prepForXml(t){var r;t.stack.push(this);const n=this.root.map(i=>i instanceof Gh?i.prepForXml(t):i).filter(i=>i!==void 0);return t.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((r=n[0])!=null&&r._attr)?n[0]:n:_k}}addChildElement(t){return this.root.push(t),this}}class _d extends ze{prepForXml(t){const r=super.prepForXml(t);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class lt extends Gh{constructor(t){super("_attr"),Be(this,"xmlKeys"),this.root=t}prepForXml(t){const r={};return Object.keys(this.root).forEach(n=>{const i=this.root[n];if(i!==void 0){const o=this.xmlKeys&&this.xmlKeys[n]||n;r[o]=i}}),{_attr:r}}}class wc extends Gh{constructor(t){super("_attr"),this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:i,value:o})=>cc(Tt({},n),{[i]:o}),{})}}}class Sr extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var Ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yx={},Cg={exports:{}},ll=typeof Reflect=="object"?Reflect:null,S5=ll&&typeof ll.apply=="function"?ll.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},hh;ll&&typeof ll.ownKeys=="function"?hh=ll.ownKeys:Object.getOwnPropertySymbols?hh=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:hh=function(t){return Object.getOwnPropertyNames(t)};function Ak(e){console&&console.warn&&console.warn(e)}var Jx=Number.isNaN||function(t){return t!==t};function Bt(){Bt.init.call(this)}Cg.exports=Bt;Cg.exports.once=Lk;Bt.EventEmitter=Bt;Bt.prototype._events=void 0;Bt.prototype._eventsCount=0;Bt.prototype._maxListeners=void 0;var _5=10;function Ad(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Bt,"defaultMaxListeners",{enumerable:!0,get:function(){return _5},set:function(e){if(typeof e!="number"||e<0||Jx(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");_5=e}});Bt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Bt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Jx(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Zx(e){return e._maxListeners===void 0?Bt.defaultMaxListeners:e._maxListeners}Bt.prototype.getMaxListeners=function(){return Zx(this)};Bt.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(l===void 0)return!1;if(typeof l=="function")S5(l,this,r);else for(var c=l.length,h=n4(l,c),n=0;n<c;++n)S5(h[n],this,r);return!0};function Qx(e,t,r,n){var i,o,a;if(Ad(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=Zx(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,Ak(s)}return e}Bt.prototype.addListener=function(t,r){return Qx(this,t,r,!1)};Bt.prototype.on=Bt.prototype.addListener;Bt.prototype.prependListener=function(t,r){return Qx(this,t,r,!0)};function Ek(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function e4(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Ek.bind(n);return i.listener=r,n.wrapFn=i,i}Bt.prototype.once=function(t,r){return Ad(r),this.on(t,e4(this,t,r)),this};Bt.prototype.prependOnceListener=function(t,r){return Ad(r),this.prependListener(t,e4(this,t,r)),this};Bt.prototype.removeListener=function(t,r){var n,i,o,a,s;if(Ad(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit
vendor: 5,061 bytes, line 429
429("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===r||n[a].listener===r){s=n[a].listener,o=a;break}if(o<0)return this;o===0?n.shift():Nk(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Bt.prototype.off=Bt.prototype.removeListener;Bt.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function t4(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?kk(i):n4(i,i.length)}Bt.prototype.listeners=function(t){return t4(this,t,!0)};Bt.prototype.rawListeners=function(t){return t4(this,t,!1)};Bt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):r4.call(e,t)};Bt.prototype.listenerCount=r4;function r4(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Bt.prototype.eventNames=function(){return this._eventsCount>0?hh(this._events):[]};function n4(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Nk(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function kk(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Lk(e,t){return new Promise(function(r,n){function i(a){e.removeListener(t,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}i4(e,t,o,{once:!0}),t!=="error"&&Ck(e,i,{once:!0})})}function Ck(e,t,r){typeof e.on=="function"&&i4(e,"error",t,r)}function i4(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Tg=Cg.exports,c0={exports:{}};typeof Object.create=="function"?c0.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:c0.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Ya=c0.exports;function Tk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o4={exports:{}},_r=o4.exports={},$i,Gi;function f0(){throw new Error("setTimeout has not been defined")}function h0(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?$i=setTimeout:$i=f0}catch{$i=f0}try{typeof clearTimeout=="function"?Gi=clearTimeout:Gi=h0}catch{Gi=h0}})();function a4(e){if($i===setTimeout)return setTimeout(e,0);if(($i===f0||!$i)&&setTimeout)return $i=setTimeout,setTimeout(e,0);try{return $i(e,0)}catch{try{return $i.call(null,e,0)}catch{return $i.call(this,e,0)}}}function Pk(e){if(Gi===clearTimeout)return clearTimeout(e);if((Gi===h0||!Gi)&&clearTimeout)return Gi=clearTimeout,clearTimeout(e);try{return Gi(e)}catch{try{return Gi.call(null,e)}catch{return Gi.call(this,e)}}}var wo=[],ul=!1,ja,dh=-1;function Ik(){!ul||!ja||(ul=!1,ja.length?wo=ja.concat(wo):dh=-1,wo.length&&s4())}function s4(){if(!ul){var e=a4(Ik);ul=!0;for(var t=wo.length;t;){for(ja=wo,wo=[];++dh<t;)ja&&ja[dh].run();dh=-1,t=wo.length}ja=null,ul=!1,Pk(e)}}_r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];wo.push(new l4(e,t)),wo.length===1&&!ul&&a4(s4)};function l4(e,t){this.fun=e,this.array=t}l4.prototype.run=function(){this.fun.apply(null,this.array)};_r.title="browser";_r.browser=!0;_r.env={};_r.argv=[];_r.version="";_r.versions={};function No(){}_r.on=No;_r.addListener=No;_r.once=No;_r.off=No;_r.removeListener=No;_r.removeAllListeners=No;_r.emit=No;_r.prependListener=No;_r.prependOnceListener=No;_r.listeners=function(e){return[]};_r.binding=function(e){throw new Error("process.binding is not supported")};_r.cwd=function(){return"/"};_r.chdir=function(e){throw new Error("process.chdir is not supported")};_r.umask=function(){return 0};var Rk=o4.exports;const yt=Tk(Rk);var sm,A5;function u4(){return A5||(A5=1,sm=Tg.EventEmitter),sm}var lm={},xu={},E5;function Ok(){if(E5)return xu;E5=1,xu.byteLength=s,xu.toByteArray=c,xu.fromByteArray=g;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,776 bytes, lines 429-434
429+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(f){var S=f.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=f.indexOf("=");v===-1&&(v=S);var k=v===S?0:4-v%4;return[v,k]}function s(f){var S=a(f),v=S[0],k=S[1];return(v+k)*3/4-k}function l(f,S,v){return(S+v)*3/4-v}function c(f){var S,v=a(f),k=v[0],d=v[1],y=new r(l(f,k,d)),_=0,F=d>0?k-4:k,j;for(j=0;j<F;j+=4)S=t[f.charCodeAt(j)]<<18|t[f.charCodeAt(j+1)]<<12|t[f.charCodeAt(j+2)]<<6|t[f.charCodeAt(j+3)],y[_++]=S>>16&255,y[_++]=S>>8&255,y[_++]=S&255;return d===2&&(S=t[f.charCodeAt(j)]<<2|t[f.charCodeAt(j+1)]>>4,y[_++]=S&255),d===1&&(S=t[f.charCodeAt(j)]<<10|t[f.charCodeAt(j+1)]<<4|t[f.charCodeAt(j+2)]>>2,y[_++]=S>>8&255,y[_++]=S&255),y}function h(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function p(f,S,v){for(var k,d=[],y=S;y<v;y+=3)k=(f[y]<<16&16711680)+(f[y+1]<<8&65280)+(f[y+2]&255),d.push(h(k));return d.join("")}function g(f){for(var S,v=f.length,k=v%3,d=[],y=16383,_=0,F=v-k;_<F;_+=y)d.push(p(f,_,_+y>F?F:_+y));return k===1?(S=f[v-1],d.push(e[S>>2]+e[S<<4&63]+"==")):k===2&&(S=(f[v-2]<<8)+f[v-1],d.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),d.join("")}return xu}var Mf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var N5;function Fk(){return N5||(N5=1,Mf.read=function(e,t,r,n,i){var o,a,s=i*8-n-1,l=(1<<s)-1,c=l>>1,h=-7,p=r?i-1:0,g=r?-1:1,f=e[t+p];for(p+=g,o=f&(1<<-h)-1,f>>=-h,h+=s;h>0;o=o*256+e[t+p],p+=g,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+e[t+p],p+=g,h-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-c}return(f?-1:1)*a*Math.pow(2,o-n)},Mf.write=function(e,t,r,n,i,o){var a,s,l,c=o*8-i-1,h=(1<<c)-1,p=h>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,S=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+p>=1?t+=g/l:t+=g*Math.pow(2,1-p),t*l>=2&&(a++,l/=2),a+p>=h?(s=0,a=h):a+p>=1?(s=(t*l-1)*Math.pow(2,i),a=a+p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=s&255,f+=S,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+f]=a&255,f+=S,a/=256,c-=8);e[r+f-S]|=v*128}),Mf}/*!
430 * The buffer module from node.js, for the browser.
431 *
432 * @author   Feross Aboukhadijeh <https://feross.org>
433 * @license  MIT
434 */var k5;function Ed(){return k5||(k5=1,function(e){var t=Ok(),r=Fk(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var N=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(N,w),N.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(N){if(N>i)throw new RangeError('The value "'+N+'" is invalid for option "size"');var w=new Uint8Array(N);return Object.setPrototypeOf(w,s.prototype),w}function s(N,w,b){if(typeof N=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(N)}return l(N,w,b)}s.poolSize=8192;function l(N,w,b){if(typeof N=="string")return g(N,w);if(ArrayBuffer.isView(N))return S(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(ge(N,ArrayBuffer)||N&&ge(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ge(N,SharedArrayBuffer)||N&&ge(N.buffer,SharedArrayBuffer)))return v(N,w,b);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var P=N.valueOf&&N.valueOf();if(P!=null&&P!==N)return s.from(P,w,b);var Q=k(N);if(Q)return Q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return s.from(N[Symbol.toPrimitive]("string"),w,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}s.from=function(N,w,b){return l(N,w,b)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');
vendor: 4,657 bytes, line 434
434if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function h(N,w,b){return c(N),N<=0?a(N):w!==void 0?typeof b=="string"?a(N).fill(w,b):a(N).fill(w):a(N)}s.alloc=function(N,w,b){return h(N,w,b)};function p(N){return c(N),a(N<0?0:d(N)|0)}s.allocUnsafe=function(N){return p(N)},s.allocUnsafeSlow=function(N){return p(N)};function g(N,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var b=_(N,w)|0,P=a(b),Q=P.write(N,w);return Q!==b&&(P=P.slice(0,Q)),P}function f(N){for(var w=N.length<0?0:d(N.length)|0,b=a(w),P=0;P<w;P+=1)b[P]=N[P]&255;return b}function S(N){if(ge(N,Uint8Array)){var w=new Uint8Array(N);return v(w.buffer,w.byteOffset,w.byteLength)}return f(N)}function v(N,w,b){if(w<0||N.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<w+(b||0))throw new RangeError('"length" is outside of buffer bounds');var P;return w===void 0&&b===void 0?P=new Uint8Array(N):b===void 0?P=new Uint8Array(N,w):P=new Uint8Array(N,w,b),Object.setPrototypeOf(P,s.prototype),P}function k(N){if(s.isBuffer(N)){var w=d(N.length)|0,b=a(w);return b.length===0||N.copy(b,0,0,w),b}if(N.length!==void 0)return typeof N.length!="number"||I(N.length)?a(0):f(N);if(N.type==="Buffer"&&Array.isArray(N.data))return f(N.data)}function d(N){if(N>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return N|0}function y(N){return+N!=N&&(N=0),s.alloc(+N)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,b){if(ge(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),ge(b,Uint8Array)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(w)||!s.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===b)return 0;for(var P=w.length,Q=b.length,fe=0,ie=Math.min(P,Q);fe<ie;++fe)if(w[fe]!==b[fe]){P=w[fe],Q=b[fe];break}return P<Q?-1:Q<P?1:0},s.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(w,b){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return s.alloc(0);var P;if(b===void 0)for(b=0,P=0;P<w.length;++P)b+=w[P].length;var Q=s.allocUnsafe(b),fe=0;for(P=0;P<w.length;++P){var ie=w[P];if(ge(ie,Uint8Array))fe+ie.length>Q.length?s.from(ie).copy(Q,fe):Uint8Array.prototype.set.call(Q,ie,fe);else if(s.isBuffer(ie))ie.copy(Q,fe);else throw new TypeError('"list" argument must be an Array of Buffers');fe+=ie.length}return Q};function _(N,w){if(s.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||ge(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var b=N.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&b===0)return 0;for(var Q=!1;;)switch(w){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return L(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return U(N).length;default:if(Q)return P?-1:L(N).length;w=(""+w).toLowerCase(),Q=!0}}s.byteLength=_;function F(N,w,b){var P=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,w>>>=0,b<=w))return"";for(N||(N="utf8");;)switch(N){case"hex":return oe(this,w,b);case"utf8":case"utf-8":return T(this,w,b);case"ascii":return ae(this,w,b);case"latin1":case"binary":return ue(this,w,b);case"base64":return X(this,w,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,w,b);default:if(P)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),P=!0}}s.prototype._isBuffer=!0;function j(N,w,b){var P=N[w];N[w]=N[b],N[b]=P}s.prototype.swap16=function(){var w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;b<w;b+=2)j(this,b,b+1);return this},s.prototype.swap32=function(){var w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var b=0;b<w;b+=4)j(this,b,b+3),j(this,b+1,b+2);return this},s.prototype.swap64=function(){var w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var b=0;b<w;b+=8)j(this,b,b+7),j(this,b+1,b+6),j(this,b+2,b+5),j(this,b+3,b+4);return this},s.prototype.toString=function(){var w=this.length;return w===0?"":arguments.length===0?T(this,0,w):F.apply(this,arguments)}
vendor: 12,656 bytes, line 434
434,s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(w){if(!s.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:s.compare(this,w)===0},s.prototype.inspect=function(){var w="",b=e.INSPECT_MAX_BYTES;return w=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(w+=" ... "),"<Buffer "+w+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(w,b,P,Q,fe){if(ge(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(b===void 0&&(b=0),P===void 0&&(P=w?w.length:0),Q===void 0&&(Q=0),fe===void 0&&(fe=this.length),b<0||P>w.length||Q<0||fe>this.length)throw new RangeError("out of range index");if(Q>=fe&&b>=P)return 0;if(Q>=fe)return-1;if(b>=P)return 1;if(b>>>=0,P>>>=0,Q>>>=0,fe>>>=0,this===w)return 0;for(var ie=fe-Q,_e=P-b,Ce=Math.min(ie,_e),Le=this.slice(Q,fe),Oe=w.slice(b,P),We=0;We<Ce;++We)if(Le[We]!==Oe[We]){ie=Le[We],_e=Oe[We];break}return ie<_e?-1:_e<ie?1:0};function re(N,w,b,P,Q){if(N.length===0)return-1;if(typeof b=="string"?(P=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,I(b)&&(b=Q?0:N.length-1),b<0&&(b=N.length+b),b>=N.length){if(Q)return-1;b=N.length-1}else if(b<0)if(Q)b=0;else return-1;if(typeof w=="string"&&(w=s.from(w,P)),s.isBuffer(w))return w.length===0?-1:$(N,w,b,P,Q);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(N,w,b):Uint8Array.prototype.lastIndexOf.call(N,w,b):$(N,[w],b,P,Q);throw new TypeError("val must be string, number or Buffer")}function $(N,w,b,P,Q){var fe=1,ie=N.length,_e=w.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(N.length<2||w.length<2)return-1;fe=2,ie/=2,_e/=2,b/=2}function Ce(Je,at){return fe===1?Je[at]:Je.readUInt16BE(at*fe)}var Le;if(Q){var Oe=-1;for(Le=b;Le<ie;Le++)if(Ce(N,Le)===Ce(w,Oe===-1?0:Le-Oe)){if(Oe===-1&&(Oe=Le),Le-Oe+1===_e)return Oe*fe}else Oe!==-1&&(Le-=Le-Oe),Oe=-1}else for(b+_e>ie&&(b=ie-_e),Le=b;Le>=0;Le--){for(var We=!0,$e=0;$e<_e;$e++)if(Ce(N,Le+$e)!==Ce(w,$e)){We=!1;break}if(We)return Le}return-1}s.prototype.includes=function(w,b,P){return this.indexOf(w,b,P)!==-1},s.prototype.indexOf=function(w,b,P){return re(this,w,b,P,!0)},s.prototype.lastIndexOf=function(w,b,P){return re(this,w,b,P,!1)};function M(N,w,b,P){b=Number(b)||0;var Q=N.length-b;P?(P=Number(P),P>Q&&(P=Q)):P=Q;var fe=w.length;P>fe/2&&(P=fe/2);for(var ie=0;ie<P;++ie){var _e=parseInt(w.substr(ie*2,2),16);if(I(_e))return ie;N[b+ie]=_e}return ie}function D(N,w,b,P){return G(L(w,N.length-b),N,b,P)}function he(N,w,b,P){return G(Y(w),N,b,P)}function H(N,w,b,P){return G(U(w),N,b,P)}function R(N,w,b,P){return G(Z(w,N.length-b),N,b,P)}s.prototype.write=function(w,b,P,Q){if(b===void 0)Q="utf8",P=this.length,b=0;else if(P===void 0&&typeof b=="string")Q=b,P=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(P)?(P=P>>>0,Q===void 0&&(Q="utf8")):(Q=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fe=this.length-b;if((P===void 0||P>fe)&&(P=fe),w.length>0&&(P<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var ie=!1;;)switch(Q){case"hex":return M(this,w,b,P);case"utf8":case"utf-8":return D(this,w,b,P);case"ascii":case"latin1":case"binary":return he(this,w,b,P);case"base64":return H(this,w,b,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,w,b,P);default:if(ie)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),ie=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(N,w,b){return w===0&&b===N.length?t.fromByteArray(N):t.fromByteArray(N.slice(w,b))}function T(N,w,b){b=Math.min(N.length,b);for(var P=[],Q=w;Q<b;){var fe=N[Q],ie=null,_e=fe>239?4:fe>223?3:fe>191?2:1;if(Q+_e<=b){var Ce,Le,Oe,We;switch(_e){case 1:fe<128&&(ie=fe);break;case 2:Ce=N[Q+1],(Ce&192)===128&&(We=(fe&31)<<6|Ce&63,We>127&&(ie=We));break;case 3:Ce=N[Q+1],Le=N[Q+2],(Ce&192)===128&&(Le&192)===128&&(We=(fe&15)<<12|(Ce&63)<<6|Le&63,We>2047&&(We<55296||We>57343)&&(ie=We));break;case 4:Ce=N[Q+1],Le=N[Q+2],Oe=N[Q+3],(Ce&192)===128&&(Le&192)===128&&(Oe&192)===128&&(We=(fe&15)<<18|(Ce&63)<<12|(Le&63)<<6|Oe&63,We>65535&&We<1114112&&(ie=We))}}ie===null?(ie=65533,_e=1):ie>65535&&(ie-=65536,P.push(ie>>>10&1023|55296),ie=56320|ie&1023),P.push(ie),Q+=_e}return ye(P)}var se=4096;function ye(N){var w=N.length;if(w<=se)return String.fromCharCode.apply(String,N);for(var b="",P=0;P<w;)b+=String.fromCharCode.apply(String,N.slice(P,P+=se));return b}function ae(N,w,b){var P="";b=Math.min(N.length,b);for(var Q=w;Q<b;++Q)P+=String.fromCharCode(N[Q]&127);return P}function ue(N,w,b){var P="";b=Math.min(N.length,b);for(var Q=w;Q<b;++Q)P+=String.fromCharCode(N[Q]);return P}function oe(N,w,b){var P=N.length;(!w||w<0)&&(w=0),(!b||b<0||b>P)&&(b=P);for(var Q="",fe=w;fe<b;++fe)Q+=le[N[fe]];return Q}function me(N,w,b){for(var P=N.slice(w,b),Q="",fe=0;fe<P.length-1;fe+=2)Q+=String.fromCharCode(P[fe]+P[fe+1]*256);return Q}s.prototype.slice=function(w,b){var P=this.length;w=~~w,b=b===void 0?P:~~b,w<0?(w+=P,w<0&&(w=0)):w>P&&(w=P),b<0?(b+=P,b<0&&(b=0)):b>P&&(b=P),b<w&&(b=w);var Q=this.subarray(w,b);return Object.setPrototypeOf(Q,s.prototype),Q};function de(N,w,b){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+w>b)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,b,P){w=w>>>0,b=b>>>0,P||de(w,b,this.length);for(var Q=this[w],fe=1,ie=0;++ie<b&&(fe*=256);)Q+=this[w+ie]*fe;return Q},s.prototype.readUintBE=s.prototype.readUIntBE=function(w,b,P){w=w>>>0,b=b>>>0,P||de(w,b,this.length);for(var Q=this[w+--b],fe=1;b>0&&(fe*=256);)Q+=this[w+--b]*fe;return Q},s.prototype.readUint8=s.prototype.readUInt8=function(w,b){return w=w>>>0,b||de(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,b){return w=w>>>0,b||de(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,b){return w=w>>>0,b||de(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,b){return w=w>>>0,b||de(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,b){return w=w>>>0,b||de(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readIntLE=function(w,b,P){w=w>>>0,b=b>>>0,P||de(w,b,this.length);for(var Q=this[w],fe=1,ie=0;++ie<b&&(fe*=256);)Q+=this[w+ie]*fe;return fe*=128,Q>=fe&&(Q-=Math.pow(2,8*b)),Q},s.prototype.readIntBE=function(w,b,P){w=w>>>0,b=b>>>0,P||de(w,b,this.length);for(var Q=b,fe=1,ie=this[w+--Q];Q>0&&(fe*=256);)ie+=this[w+--Q]*fe;return fe*=128,ie>=fe&&(ie-=Math.pow(2,8*b)),ie},s.prototype.readInt8=function(w,b){return w=w>>>0,b||de(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,b){w=w>>>0,b||de(w,2,this.length);var P=this[w]|this[w+1]<<8;return P&32768?P|4294901760:P},s.prototype.readInt16BE=function(w,b){w=w>>>0,b||de(w,2,this.length);var P=this[w+1]|this[w]<<8;return P&32768?P|4294901760:P},s.prototype.readInt32LE=function(w,b){return w=w>>>0,b||de(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,b){return w=w>>>0,b||de(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readFloatLE=function(w,b){return w=w>>>0,b||de(w,4,this.length),r.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,b){return w=w>>>0,b||de(w,4,this.length),r.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,b){return w=w>>>0,b||de(w,8,this.length),r.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,b){return w=w>>>0,b||de(w,8,this.length),r.read(this,w,!1,52,8)};function A(N,w,b,P,Q,fe){if(!s.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>Q||w<fe)throw new RangeError('"value" argument is out of bounds');if(b+P>N.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(w,b,P,Q){if(w=+w,b=b>>>0,P=P>>>0,!Q){var fe=Math.pow(2,8*P)-1;A(this,w,b,P,fe,0)}var ie=1,_e=0;for(this[b]=w&255;++_e<P&&(ie*=256);)this[b+_e]=w/ie&255;return b+P},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(w,b,P,Q){if(w=+w,b=b>>>0,P=P>>>0,!Q){var fe=Math.pow(2,8*P)-1;A(this,w,b,P,fe,0)}var ie=P-1,_e=1;for(this[b+ie]=w&255;--ie>=0&&(_e*=256);)this[b+ie]=w/_e&255;return b+P},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,1,255,0),this[b]=w&255,b+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,2,65535,0),this[b]=w&255,this[b+1]=w>>>8,b+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,2,65535,0),this[b]=w>>>8,this[b+1]=w&255,b+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,4,4294967295,0),this[b+3]=w>>>24,this[b+2]=w>>>16,this[b+1]=w>>>8,this[b]=w&255,b+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,4,4294967295,0),this[b]=w>>>24,this[b+1]=w>>>16,this[b+2]=w>>>8,this[b+3]=w&255,b+4},s.prototype.writeIntLE=function(w,b,P,Q){if(w=+w,b=b>>>0,!Q){var fe=Math.pow(2,8*P-1);A(this,w,b,P,fe-1,-fe)}var ie=0,_e=1,Ce=0;for(this[b]=w&255;++ie<P&&(_e*=256);)w<0&&Ce===0&&this[b+ie-1]!==0&&(Ce=1),this[b+ie]=(w/_e>>0)-Ce&255;return b+P},s.prototype.writeIntBE=function(w,b,P,Q){if(w=+w,b=b>>>0,!Q){var fe=Math.pow(2,8*P-1);A(this,w,b,P,fe-1,-fe)}var ie=P-1,_e=1,Ce=0;for(this[b+ie]=w&255;--ie>=0&&(_e*=256);)w<0&&Ce===0&&this[b+ie+1]!==0&&(Ce=1),this[b+ie]=(w/_e>>0)-Ce&255;return b+P},s.prototype.writeInt8=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,1,127,-128),w<0&&(w=255+w+1),this[b]=w&255,b+1},s.prototype.writeInt16LE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,2,32767,-32768),this[b]=w&255,this[b+1]=w>>>8,b+2},s.prototype.writeInt16BE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,2,32767,-32768),this[b]=w>>>8,this[b+1]=w&255,b+2},s.prototype.writeInt32LE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,4,2147483647,-2147483648),this[b]=w&255,this[b+1]=w>>>8,this[b+2]=w>>>16,this[b+3]=w>>>24,b+4},s.prototype.writeInt32BE=function(w,b,P){return w=+w,b=b>>>0,P||A(this,w,b,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[b]=w>>>24,this[b+1]=w>>>16,this[b+2]=w>>>8,this[b+3]=w&255,b+4};function B(N,w,b,P,Q,fe){if(b+P>N.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function z(N,w,b,P,Q){return w=+w,b=b>>>0,Q||B(N,w,b,4),r.write(N,w,b,P,23,4),b+4}s.prototype.writeFloatLE=function(w,b,P){return z(this,w,b,!0,P)},s.prototype.writeFloatBE=function(w,b,P){return z(this,w,b,!1,P)};function ee(N,w,b,P,Q){return w=+w,b=b>>>0,Q||B(N,w,b,8),r.write(N,w,b,P,52,8),b+8}s.prototype.writeDoubleLE=function(w,b,P){return ee(this,w,b,!0,P)},s.prototype.writeDoubleBE=function(w,b,P){return ee(this,w,b,!1,P)},s.prototype.copy=function(w,b,P,Q){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(P||(P=0),!Q&&Q!==0&&(Q=this.length),b>=w.length&&(b=w.length),b||(b=0),Q>0&&Q<P&&(Q=P),Q===P||w.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),w.length-b<Q-P&&(Q=w.length-b+P);var fe=Q-P;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,P,Q):Uint8Array.prototype.set.call(w,this.subarray(P,Q),b),fe},s.prototype.fill=function(w,b,P,Q){if(typeof w=="string"){if(typeof b=="string"?(Q=b,b=0,P=this.length):typeof P=="string"&&(Q=P,P=this.length),Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!s.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(w.length===1){var fe=w.charCodeAt(0);(Q==="utf8"&&fe<128||Q==="latin1")&&(w=fe)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(b<0||this.length<b||this.length<P)throw new RangeError("Out of range index");if(P<=b)return this;b=b>>>0,P=P===void 0?this.length:P>>>0,w||(w=0);var ie;if(typeof w=="number")for(ie=b;ie<P;++ie)this[ie]=w;else{var _e=s.isBuffer(w)?w:s.from(w,Q),Ce=_e.length;
434if(Ce===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(ie=0;ie<P-b;++ie)this[ie+b]=_e[ie%Ce]}return this};var V=/[^+/0-9A-Za-z-_]/g;function C(N){if(N=N.split("=")[0],N=N.trim().replace(V,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function L(N,w){w=w||1/0;for(var b,P=N.length,Q=null,fe=[],ie=0;ie<P;++ie){if(b=N.charCodeAt(ie),b>55295&&b<57344){if(!Q){if(b>56319){(w-=3)>-1&&fe.push(239,191,189);continue}else if(ie+1===P){(w-=3)>-1&&fe.push(239,191,189);continue}Q=b;continue}if(b<56320){(w-=3)>-1&&fe.push(239,191,189),Q=b;continue}b=(Q-55296<<10|b-56320)+65536}else Q&&(w-=3)>-1&&fe.push(239,191,189);if(Q=null,b<128){if((w-=1)<0)break;fe.push(b)}else if(b<2048){if((w-=2)<0)break;fe.push(b>>6|192,b&63|128)}else if(b<65536){if((w-=3)<0)break;fe.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((w-=4)<0)break;fe.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return fe}function Y(N){for(var w=[],b=0;b<N.length;++b)w.push(N.charCodeAt(b)&255);return w}function Z(N,w){for(var b,P,Q,fe=[],ie=0;ie<N.length&&!((w-=2)<0);++ie)b=N.charCodeAt(ie),P=b>>8,Q=b%256,fe.push(Q),fe.push(P);return fe}function U(N){return t.toByteArray(C(N))}function G(N,w,b,P){for(var Q=0;Q<P&&!(Q+b>=w.length||Q>=N.length);++Q)w[Q+b]=N[Q];return Q}function ge(N,w){return N instanceof w||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===w.name}function I(N){return N!==N}var le=function(){for(var N="0123456789abcdef",w=new Array(256),b=0;b<16;++b)for(var P=b*16,Q=0;Q<16;++Q)w[P+Q]=N[b]+N[Q];return w}()}(lm)),lm}var um={},cm={},fm,L5;function c4(){return L5||(L5=1,fm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),fm}var hm,C5;function Pg(){if(C5)return hm;C5=1;var e=c4();return hm=function(){return e()&&!!Symbol.toStringTag},hm}var dm,T5;function Dk(){if(T5)return dm;T5=1;var e=typeof Symbol<"u"&&Symbol,t=c4();return dm=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},dm}var pm,P5;function jk(){if(P5)return pm;P5=1;var e={foo:{}},t=Object;return pm=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof t)},pm}var mm,I5;function Bk(){if(I5)return mm;I5=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,c){for(var h=[],p=0;p<l.length;p+=1)h[p]=l[p];for(var g=0;g<c.length;g+=1)h[g+l.length]=c[g];return h},o=function(l,c){for(var h=[],p=c,g=0;p<l.length;p+=1,g+=1)h[g]=l[p];return h},a=function(s,l){for(var c="",h=0;h<s.length;h+=1)c+=s[h],h+1<s.length&&(c+=l);return c};return mm=function(l){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var h=o(arguments,1),p,g=function(){if(this instanceof p){var d=c.apply(this,i(h,arguments));return Object(d)===d?d:this}return c.apply(l,i(h,arguments))},f=r(0,c.length-h.length),S=[],v=0;v<f;v++)S[v]="$"+v;if(p=Function("binder","return function ("+a(S,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var k=function(){};k.prototype=c.prototype,p.prototype=new k,k.prototype=null}return p},mm}var gm,R5;function Ig(){if(R5)return gm;R5=1;var e=Bk();return gm=Function.prototype.bind||e,gm}var ym,O5;function Mk(){if(O5)return ym;O5=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Ig();return ym=r.call(e,t),ym}var vm,F5;function Pl(){if(F5)return vm;F5=1;var e,t=SyntaxError,r=Function,n=TypeError,i=function(R){try{return r('"use strict"; return ('+R+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var a=function(){throw new n},s=o?function(){try{return arguments.callee,a}catch{try{return o(arguments,"callee").get}catch{return a}}}():a,l=Dk()(),c=jk()(),h=Object.getPrototypeOf||(c?function(R){return R.__proto__}:null),p={},g=typeof Uint8Array>"u"||!h?e:h(Uint8Array),f={"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":l&&h?h([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 8,794 bytes, line 434
434"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&h?h(h([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!l||!h?e:h(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!l||!h?e:h(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&h?h(""[Symbol.iterator]()):e,"%Symbol%":l?Symbol:e,"%SyntaxError%":t,"%ThrowTypeError%":s,"%TypedArray%":g,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(h)try{null.error}catch(R){var S=h(h(R));f["%Error.prototype%"]=S}var v=function R(X){var T;if(X==="%AsyncFunction%")T=i("async function () {}");else if(X==="%GeneratorFunction%")T=i("function* () {}");else if(X==="%AsyncGeneratorFunction%")T=i("async function* () {}");else if(X==="%AsyncGenerator%"){var se=R("%AsyncGeneratorFunction%");se&&(T=se.prototype)}else if(X==="%AsyncIteratorPrototype%"){var ye=R("%AsyncGenerator%");ye&&h&&(T=h(ye.prototype))}return f[X]=T,T},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=Ig(),y=Mk(),_=d.call(Function.call,Array.prototype.concat),F=d.call(Function.apply,Array.prototype.splice),j=d.call(Function.call,String.prototype.replace),re=d.call(Function.call,String.prototype.slice),$=d.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,he=function(X){var T=re(X,0,1),se=re(X,-1);if(T==="%"&&se!=="%")throw new t("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&T!=="%")throw new t("invalid intrinsic syntax, expected opening `%`");var ye=[];return j(X,M,function(ae,ue,oe,me){ye[ye.length]=oe?j(me,D,"$1"):ue||ae}),ye},H=function(X,T){var se=X,ye;if(y(k,se)&&(ye=k[se],se="%"+ye[0]+"%"),y(f,se)){var ae=f[se];if(ae===p&&(ae=v(se)),typeof ae>"u"&&!T)throw new n("intrinsic "+X+" exists, but is not available. Please file an issue!");return{alias:ye,name:se,value:ae}}throw new t("intrinsic "+X+" does not exist!")};return vm=function(X,T){if(typeof X!="string"||X.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof T!="boolean")throw new n('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,X)===null)throw new t("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var se=he(X),ye=se.length>0?se[0]:"",ae=H("%"+ye+"%",T),ue=ae.name,oe=ae.value,me=!1,de=ae.alias;de&&(ye=de[0],F(se,_([0,1],de)));for(var A=1,B=!0;A<se.length;A+=1){var z=se[A],ee=re(z,0,1),V=re(z,-1);if((ee==='"'||ee==="'"||ee==="`"||V==='"'||V==="'"||V==="`")&&ee!==V)throw new t("property names with quotes must have matching quotes");if((z==="constructor"||!B)&&(me=!0),ye+="."+z,ue="%"+ye+"%",y(f,ue))oe=f[ue];else if(oe!=null){if(!(z in oe)){if(!T)throw new n("base intrinsic for "+X+" exists, but the property is not available.");return}if(o&&A+1>=se.length){var C=o(oe,z);B=!!C,B&&"get"in C&&!("originalValue"in C.get)?oe=C.get:oe=oe[z]}else B=y(oe,z),oe=oe[z];B&&!me&&(f[ue]=oe)}}return oe},vm}var wm={exports:{}},bm,D5;function f4(){if(D5)return bm;D5=1;var e=Pl(),t=e("%Object.defineProperty%",!0),r=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},bm=r,bm}var xm,j5;function Rg(){if(j5)return xm;j5=1;var e=Pl(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return xm=t,xm}var Sm,B5;function zk(){if(B5)return Sm;B5=1;var e=f4()(),t=Pl(),r=e&&t("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var n=t("%SyntaxError%"),i=t("%TypeError%"),o=Rg();return Sm=function(s,l,c){if(!s||typeof s!="object"&&typeof s!="function")throw new i("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,S=!!o&&o(s,l);if(r)r(s,l,{configurable:g===null&&S?S.configurable:!g,enumerable:h===null&&S?S.enumerable:!h,value:c,writable:p===null&&S?S.writable:!p});else if(f||!h&&!p&&!g)s[l]=c;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Sm}var _m,M5;function Uk(){if(M5)return _m;M5=1;var e=Pl(),t=zk(),r=f4()(),n=Rg(),i=e("%TypeError%"),o=e("%Math.floor%");return _m=function(s,l){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||o(l)!==l)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],h=!0,p=!0;if("length"in s&&n){var g=n(s,"length");g&&!g.configurable&&(h=!1),g&&!g.writable&&(p=!1)}return(h||p||!c)&&(r?t(s,"length",l,!0,!0):t(s,"length",l)),s},_m}var z5;function h4(){return z5||(z5=1,function(e){var t=Ig(),r=Pl(),n=Uk(),i=r("%T
434ypeError%"),o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,o),l=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(g){if(typeof g!="function")throw new i("a function is required");var f=s(t,a,arguments);return n(f,1+c(0,g.length-(arguments.length-1)),!0)};var h=function(){return s(t,o,arguments)};l?l(e.exports,"apply",{value:h}):e.exports.apply=h}(wm)),wm.exports}var Am,U5;function d4(){if(U5)return Am;U5=1;var e=Pl(),t=h4(),r=t(e("String.prototype.indexOf"));return Am=function(i,o){var a=e(i,!!o);return typeof a=="function"&&r(i,".prototype.")>-1?t(a):a},Am}var Em,q5;function qk(){if(q5)return Em;q5=1;var e=Pg()(),t=d4(),r=t("Object.prototype.toString"),n=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},i=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&r(s.callee)==="[object Function]"},o=function(){return n(arguments)}();return n.isLegacyArguments=i,Em=o?n:i,Em}var Nm,W5;function Wk(){if(W5)return Nm;W5=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,n=Pg()(),i=Object.getPrototypeOf,o=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},a;return Nm=function(l){if(typeof l!="function")return!1;if(r.test(t.call(l)))return!0;if(!n){var c=e.call(l);return c==="[object GeneratorFunction]"}if(!i)return!1;if(typeof a>"u"){var h=o();a=h?i(h):!1}return i(l)===a},Nm}var km,H5;function Hk(){if(H5)return km;H5=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(y){y!==n&&(t=null)}else t=null;var i=/^\s*class\b/,o=function(_){try{var F=e.call(_);return i.test(F)}catch{return!1}},a=function(_){try{return o(_)?!1:(e.call(_),!0)}catch{return!1}},s=Object.prototype.toString,l="[object Object]",c="[object Function]",h="[object GeneratorFunction]",p="[object HTMLAllCollection]",g="[object HTML document.all class]",f="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),k=function(){return!1};if(typeof document=="object"){var d=document.all;s.call(d)===s.call(document.all)&&(k=function(_){if((v||!_)&&(typeof _>"u"||typeof _=="object"))try{var F=s.call(_);return(F===p||F===g||F===f||F===l)&&_("")==null}catch{}return!1})}return km=t?function(_){if(k(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(F){if(F!==n)return!1}return!o(_)&&a(_)}:function(_){if(k(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(S)return a(_);if(o(_))return!1;var F=s.call(_);return F!==c&&F!==h&&!/^\[object HTML/.test(F)?!1:a(_)},km}var Lm,V5;function Vk(){if(V5)return Lm;V5=1;var e=Hk(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,c,h){for(var p=0,g=l.length;p<g;p++)r.call(l,p)&&(h==null?c(l[p],p,l):c.call(h,l[p],p,l))},i=function(l,c,h){for(var p=0,g=l.length;p<g;p++)h==null?c(l.charAt(p),p,l):c.call(h,l.charAt(p),p,l)},o=function(l,c,h){for(var p in l)r.call(l,p)&&(h==null?c(l[p],p,l):c.call(h,l[p],p,l))},a=function(l,c,h){if(!e(c))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),t.call(l)==="[object Array]"?n(l,c,p):typeof l=="string"?i(l,c,p):o(l,c,p)};return Lm=a,Lm}var Cm,$5;function $k(){if($5)return Cm;$5=1;var e=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?Ji:globalThis;return Cm=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},Cm}var Tm,G5;function p4(){if(G5)return Tm;G5=1;var e=Vk(),t=$k(),r=h4(),n=d4(),i=Rg(),o=n("Object.prototype.toString"),a=Pg()(),s=typeof globalThis>"u"?Ji:globalThis,l=t(),c=n("String.prototype.slice"),h=Object.getPrototypeOf,p=n("Array.prototype.indexOf",!0)||function(k,d){for(var y=0;y<k.length;y+=1)if(k[y]===d)return y;return-1},g={__proto__:null};a&&i&&h?e(l,function(v){var k=new s[v];if(Symbol.toStringTag in k){var d=h(k),y=i(d,Symbol.toStringTag);if(!y){var _=h(d);y=i(_,Symbol.toStringTag)}g["$"+v]=r(y.get)}}):e(l,function(v){var k=new s[v],d=k.slice||k.set;d&&(g["$"+v]=r(d))});var f=function(k){var d=!1;return e(g,function(y,_){if(!d)try{"$"+y(k)===_&&(d=c(_,1))}catch{}}),d},S=function(k){var d=!1;return e(g,function(y,_){if(!d)try{y(k),d=c(_,1)}catch{}}),d};return Tm=function(k){if(!k||typeof k!="object")return!1;if(!a){var d=c(o(k),8,-1);return p(l,d)>-1?d:d!=="Object"?!1:S(k)}return i?f(k):null},Tm}var Pm,K5;function Gk(){if(K5)return Pm;K5=1;var e=p4();return Pm=function(r){return!!e(r)},Pm}var X5;function Kk(){return X5||(X5=1,function(e){var t=qk(),r=Wk(),n=p4(),i=Gk();function o(P){return P.call.bind(P)}var a=typeof BigInt<"u",s=typeof Symbol<"u",l=o(Object.prototype.toString),c=o(Number.prototype.valueOf),h=o(String.prototype.valueOf),p=o(Bo
434olean.prototype.valueOf);if(a)var g=o(BigInt.prototype.valueOf);if(s)var f=o(Symbol.prototype.valueOf);function S(P,Q){if(typeof P!="object")return!1;try{return Q(P),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function v(P){return typeof Promise<"u"&&P instanceof Promise||P!==null&&typeof P=="object"&&typeof P.then=="function"&&typeof P.catch=="function"}e.isPromise=v;function k(P){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(P):i(P)||B(P)}e.isArrayBufferView=k;function d(P){return n(P)==="Uint8Array"}e.isUint8Array=d;function y(P){return n(P)==="Uint8ClampedArray"}e.isUint8ClampedArray=y;function _(P){return n(P)==="Uint16Array"}e.isUint16Array=_;function F(P){return n(P)==="Uint32Array"}e.isUint32Array=F;function j(P){return n(P)==="Int8Array"}e.isInt8Array=j;function re(P){return n(P)==="Int16Array"}e.isInt16Array=re;function $(P){return n(P)==="Int32Array"}e.isInt32Array=$;function M(P){return n(P)==="Float32Array"}e.isFloat32Array=M;function D(P){return n(P)==="Float64Array"}e.isFloat64Array=D;function he(P){return n(P)==="BigInt64Array"}e.isBigInt64Array=he;function H(P){return n(P)==="BigUint64Array"}e.isBigUint64Array=H;function R(P){return l(P)==="[object Map]"}R.working=typeof Map<"u"&&R(new Map);function X(P){return typeof Map>"u"?!1:R.working?R(P):P instanceof Map}e.isMap=X;function T(P){return l(P)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function se(P){return typeof Set>"u"?!1:T.working?T(P):P instanceof Set}e.isSet=se;function ye(P){return l(P)==="[object WeakMap]"}ye.working=typeof WeakMap<"u"&&ye(new WeakMap);function ae(P){return typeof WeakMap>"u"?!1:ye.working?ye(P):P instanceof WeakMap}e.isWeakMap=ae;function ue(P){return l(P)==="[object WeakSet]"}ue.working=typeof WeakSet<"u"&&ue(new WeakSet);function oe(P){return ue(P)}e.isWeakSet=oe;function me(P){return l(P)==="[object ArrayBuffer]"}me.working=typeof ArrayBuffer<"u"&&me(new ArrayBuffer);function de(P){return typeof ArrayBuffer>"u"?!1:me.working?me(P):P instanceof ArrayBuffer}e.isArrayBuffer=de;function A(P){return l(P)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function B(P){return typeof DataView>"u"?!1:A.working?A(P):P instanceof DataView}e.isDataView=B;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ee(P){return l(P)==="[object SharedArrayBuffer]"}function V(P){return typeof z>"u"?!1:(typeof ee.working>"u"&&(ee.working=ee(new z)),ee.working?ee(P):P instanceof z)}e.isSharedArrayBuffer=V;function C(P){return l(P)==="[object AsyncFunction]"}e.isAsyncFunction=C;function L(P){return l(P)==="[object Map Iterator]"}e.isMapIterator=L;function Y(P){return l(P)==="[object Set Iterator]"}e.isSetIterator=Y;function Z(P){return l(P)==="[object Generator]"}e.isGeneratorObject=Z;function U(P){return l(P)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=U;function G(P){return S(P,c)}e.isNumberObject=G;function ge(P){return S(P,h)}e.isStringObject=ge;function I(P){return S(P,p)}e.isBooleanObject=I;function le(P){return a&&S(P,g)}e.isBigIntObject=le;function N(P){return s&&S(P,f)}e.isSymbolObject=N;function w(P){return G(P)||ge(P)||I(P)||le(P)||N(P)}e.isBoxedPrimitive=w;function b(P){return typeof Uint8Array<"u"&&(de(P)||V(P))}e.isAnyArrayBuffer=b,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(P){Object.defineProperty(e,P,{enumerable:!1,value:function(){throw new Error(P+" is not supported in userland")}})})}(cm)),cm}var Im,Y5;function Xk(){return Y5||(Y5=1,Im=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Im}var J5;function m4(){return J5||(J5=1,function(e){var t=Object.getOwnPropertyDescriptors||function(B){for(var z=Object.keys(B),ee={},V=0;V<z.length;V++)ee[z[V]]=Object.getOwnPropertyDescriptor(B,z[V]);return ee},r=/%[sdj%]/g;e.format=function(A){if(!j(A)){for(var B=[],z=0;z<arguments.length;z++)B.push(a(arguments[z]));return B.join(" ")}for(var z=1,ee=arguments,V=ee.length,C=String(A).replace(r,function(Y){if(Y==="%%")return"%";if(z>=V)return Y;switch(Y){case"%s":return String(ee[z++]);case"%d":return Number(ee[z++]);case"%j":try{return JSON.stringify(ee[z++])}catch{return"[Circular]"}default:return Y}}),L=ee[z];z<V;L=ee[++z])y(L)||!D(L)?C+=" "+L:C+=" "+a(L);return C},e.deprecate=function(A,B){if(typeof yt<"u"&&yt.noDeprecation===!0)return A;if(typeof yt>"u")return function(){return e.deprecate(A,B).apply(this,arguments)};var z=!1;function ee(){if(!z){if(yt.throwDeprecation)throw new Error(B);yt.traceDeprecation?console.trace(B):console.error(B),z=!0}return A.apply(this,arguments)}return ee};var n={},i=/^$/;if(yt.env.NODE_DEBUG){var o=yt.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!n[A])if(i.test(A)){var B=yt.pid;n[A]=function(){var z=e.format.apply(e,arguments);console.error("%s %d: %s",A,B,z)}}else n[A]=function(){};return n[A]};function a(A,B){var z={seen:[],stylize:l};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),d(B)?z.showHidden=B:B&&e._extend(z,B),$(z.showHidden)&&(z.showHidden=!1),$(z.depth)&&(z.depth=2),$(z.colors)&&(z.colors=!1),$(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=s),h(z,A,z.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(A,B){var z=a.styles[B];return z?"\x1B["+a.colors[z][0]+"m"+A+"\x1B["+a.colors[z][1]+"m":A}function l(A,B){return A}function c(A){var B={};return A.forEach(function(z,ee){B[z]=!0}),B}function h(A,B,z){if(A.customInspect&&B&&R(B.inspect)&&B.inspect!==e.inspect&&!(B.constructor&&B.constructor.prototype===B)){var ee=B.inspect(z,A);return j(ee)||(ee=h(A,ee,z)),ee}var V=p(A,B);if(V)return V;var C=Object.keys(B),L=c(C);if(A.showHidden&&(C=Object.getOwnPropertyNames(B)),H(B)&&(C.indexOf("message")>=0||C.indexOf("description")>=0))return g(B);if(C.length===0){if(R(B)){var Y=B.name?": "+B.name:"";
vendor: 8,381 bytes, lines 434-443
434return A.stylize("[Function"+Y+"]","special")}if(M(B))return A.stylize(RegExp.prototype.toString.call(B),"regexp");if(he(B))return A.stylize(Date.prototype.toString.call(B),"date");if(H(B))return g(B)}var Z="",U=!1,G=["{","}"];if(k(B)&&(U=!0,G=["[","]"]),R(B)){var ge=B.name?": "+B.name:"";Z=" [Function"+ge+"]"}if(M(B)&&(Z=" "+RegExp.prototype.toString.call(B)),he(B)&&(Z=" "+Date.prototype.toUTCString.call(B)),H(B)&&(Z=" "+g(B)),C.length===0&&(!U||B.length==0))return G[0]+Z+G[1];if(z<0)return M(B)?A.stylize(RegExp.prototype.toString.call(B),"regexp"):A.stylize("[Object]","special");A.seen.push(B);var I;return U?I=f(A,B,z,L,C):I=C.map(function(le){return S(A,B,z,L,le,U)}),A.seen.pop(),v(I,Z,G)}function p(A,B){if($(B))return A.stylize("undefined","undefined");if(j(B)){var z="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(z,"string")}if(F(B))return A.stylize(""+B,"number");if(d(B))return A.stylize(""+B,"boolean");if(y(B))return A.stylize("null","null")}function g(A){return"["+Error.prototype.toString.call(A)+"]"}function f(A,B,z,ee,V){for(var C=[],L=0,Y=B.length;L<Y;++L)ue(B,String(L))?C.push(S(A,B,z,ee,String(L),!0)):C.push("");return V.forEach(function(Z){Z.match(/^\d+$/)||C.push(S(A,B,z,ee,Z,!0))}),C}function S(A,B,z,ee,V,C){var L,Y,Z;if(Z=Object.getOwnPropertyDescriptor(B,V)||{value:B[V]},Z.get?Z.set?Y=A.stylize("[Getter/Setter]","special"):Y=A.stylize("[Getter]","special"):Z.set&&(Y=A.stylize("[Setter]","special")),ue(ee,V)||(L="["+V+"]"),Y||(A.seen.indexOf(Z.value)<0?(y(z)?Y=h(A,Z.value,null):Y=h(A,Z.value,z-1),Y.indexOf(`
435`)>-1&&(C?Y=Y.split(`
436`).map(function(U){return"  "+U}).join(`
437`).slice(2):Y=`
438`+Y.split(`
439`).map(function(U){return"   "+U}).join(`
440`))):Y=A.stylize("[Circular]","special")),$(L)){if(C&&V.match(/^\d+$/))return Y;L=JSON.stringify(""+V),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=A.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=A.stylize(L,"string"))}return L+": "+Y}function v(A,B,z){var ee=A.reduce(function(V,C){return C.indexOf(`
441`)>=0,V+C.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ee>60?z[0]+(B===""?"":B+`
442 `)+" "+A.join(`,
443  `)+" "+z[1]:z[0]+B+" "+A.join(", ")+" "+z[1]}e.types=Kk();function k(A){return Array.isArray(A)}e.isArray=k;function d(A){return typeof A=="boolean"}e.isBoolean=d;function y(A){return A===null}e.isNull=y;function _(A){return A==null}e.isNullOrUndefined=_;function F(A){return typeof A=="number"}e.isNumber=F;function j(A){return typeof A=="string"}e.isString=j;function re(A){return typeof A=="symbol"}e.isSymbol=re;function $(A){return A===void 0}e.isUndefined=$;function M(A){return D(A)&&T(A)==="[object RegExp]"}e.isRegExp=M,e.types.isRegExp=M;function D(A){return typeof A=="object"&&A!==null}e.isObject=D;function he(A){return D(A)&&T(A)==="[object Date]"}e.isDate=he,e.types.isDate=he;function H(A){return D(A)&&(T(A)==="[object Error]"||A instanceof Error)}e.isError=H,e.types.isNativeError=H;function R(A){return typeof A=="function"}e.isFunction=R;function X(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=X,e.isBuffer=Xk();function T(A){return Object.prototype.toString.call(A)}function se(A){return A<10?"0"+A.toString(10):A.toString(10)}var ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ae(){var A=new Date,B=[se(A.getHours()),se(A.getMinutes()),se(A.getSeconds())].join(":");return[A.getDate(),ye[A.getMonth()],B].join(" ")}e.log=function(){console.log("%s - %s",ae(),e.format.apply(e,arguments))},e.inherits=Ya,e._extend=function(A,B){if(!B||!D(B))return A;for(var z=Object.keys(B),ee=z.length;ee--;)A[z[ee]]=B[z[ee]];return A};function ue(A,B){return Object.prototype.hasOwnProperty.call(A,B)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&B[oe]){var z=B[oe];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,oe,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var ee,V,C=new Promise(function(Z,U){ee=Z,V=U}),L=[],Y=0;Y<arguments.length;Y++)L.push(arguments[Y]);L.push(function(Z,U){Z?V(Z):ee(U)});try{B.apply(this,L)}catch(Z){V(Z)}return C}return Object.setPrototypeOf(z,Object.getPrototypeOf(B)),oe&&Object.defineProperty(z,oe,{value:z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(z,t(B))},e.promisify.custom=oe;function me(A,B){if(!A){var z=new Error("Promise was rejected with a falsy value");z.reason=A,A=z}return B(A)}function de(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function B(){for(var z=[],ee=0;ee<arguments.length;ee++)z.push(arguments[ee]);var V=z.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var C=this,L=function(){return V.apply(C,arguments)};A.apply(this,z).then(function(Y){yt.nextTick(L.bind(null,null,Y))},function(Y){yt.nextTick(me.bind(null,Y,L))})}return Object.setPrototypeOf(B,Object.getPrototypeOf(A)),Object.defineProperties(B,t(A)),B}e.callbackify=de}(um)),um}var Rm,Z5;function Yk(){if(Z5)return Rm;Z5=1;function e(g,f){var S=Object.keys(g);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(g);f&&(v=v.filter(function(k){return Object.getOwnPropertyDescriptor(g,k).enumerable})),S.push.apply(S,v)}return S}function t(g){for(var f=1;f<arguments.length;f++){var S=arguments[f]!=null?arguments[f]:{};f%2?e(Object(S),!0).forEach(function(v){r(g,v,S[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(S)):e(Object(S)).forEach(function(v){Object.defineProperty(g,v,Object.getOwnPropertyDescriptor(S,v))})}return g}function r(g,f,S){return f in g?Object.defineProperty(g,f,{value:S,enumerable:!0,configurable:!0,writable:!0}):g[f]=S,g}function n(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}function i(g,f){for(var S=0;S<f.length;S++){var v=f[S];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}function o(g,f,S){return f&&i(g.prototype,f),g}var a=Ed(),s=a.Buffer,l=m4(),c=l.inspect,h=c&&c.custom||"inspect";function p(g,f,S){s.prototype.copy.call(g,f,S)}return Rm=function(){function g(){n(this,g),this.head=null,this.tail=null,this.length=0}return o(g,[{key:"push",value:function(S){var v={data:S,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(S){var v={data:S,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(S){if(this.length===0)return"";for(var v=this.head,k=""+v.data;v=v.next;)k+=S+v.data;return k}},{key:"concat",value:function(S){if(this.length===0)return s.alloc(0);for(var v=s.allocUnsafe(S>>>0),k=this.head,d=0;k;)p(k.data,v,d),d+=k.data.length,k=k.next;return v}},{key:"consume",value:function(S,v){var k;return S<this.head.data.length?(k=this.head.data.slice(0,S),this.head.data=this.head.data.slice(S)):S===this.head.data.length?k=this.shift():k=v?this._getString(S):this._getBuffer(S),k}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(S){var v=this.head,k=1,d=v.data;for(S-=d.length;v=v.next;){var y=v.data,_=S>y.length?y.length:S;if(_===y.length?d+=y:d+=y.slice(0,S),S-=_,S===0){_===y.length?(++k,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=y.slice(_));break}++k}return this.length-=k,d}},{key:"_getBuffer",value:function(S){var v=s.allocUnsafe(S),k=this.head,d=1;for(k.data.copy(v),S-=k.data.length;k=k.next;){var y=k.data,_=S>y.length?y.length:S;if(y.copy(v,v.length-S,0,_),S-=_,S===0){_===y.length?(++d,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=y.slice(_));break}++d}return this.length-=d,v}},{key:h,value:function(S,v){return c(this,t({},v,{depth:0,customInspect:!1}))}}]),g}(),Rm}var Om,Q5;
vendor: 19,744 bytes, line 443
443function g4(){if(Q5)return Om;Q5=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return c||h?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,yt.nextTick(i,this,a)):yt.nextTick(i,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(p){!s&&p?l._writableState?l._writableState.errorEmitted?yt.nextTick(r,l):(l._writableState.errorEmitted=!0,yt.nextTick(t,l,p)):yt.nextTick(t,l,p):s?(yt.nextTick(r,l),s(p)):yt.nextTick(r,l)}),this)}function t(a,s){i(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(a,s){a.emit("error",s)}function o(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return Om={destroy:e,undestroy:n,errorOrDestroy:o},Om}var Fm={},ew;function Il(){if(ew)return Fm;ew=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function h(g,f,S){return typeof l=="string"?l:l(g,f,S)}var p=function(g){e(f,g);function f(S,v,k){return g.call(this,h(S,v,k))||this}return f}(c);p.prototype.name=c.name,p.prototype.code=s,t[s]=p}function n(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(h){return String(h)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function i(s,l,c){return s.substr(0,l.length)===l}function o(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var h;typeof l=="string"&&i(l,"not ")?(h="must not be",l=l.replace(/^not /,"")):h="must be";var p;if(o(s," argument"))p="The ".concat(s," ").concat(h," ").concat(n(l,"type"));else{var g=a(s,".")?"property":"argument";p='The "'.concat(s,'" ').concat(g," ").concat(h," ").concat(n(l,"type"))}return p+=". Received type ".concat(typeof c),p},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Fm.codes=t,Fm}var Dm,tw;function y4(){if(tw)return Dm;tw=1;var e=Il().codes.ERR_INVALID_OPT_VALUE;function t(n,i,o){return n.highWaterMark!=null?n.highWaterMark:i?n[o]:null}function r(n,i,o,a){var s=t(i,a,o);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?o:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return Dm={getHighWaterMark:r},Dm}var jm,rw;function Jk(){if(rw)return jm;rw=1,jm=e;function e(r,n){if(t("noDeprecation"))return r;var i=!1;function o(){if(!i){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return r.apply(this,arguments)}return o}function t(r){try{if(!Ji.localStorage)return!1}catch{return!1}var n=Ji.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return jm}var Bm,nw;function v4(){if(nw)return Bm;nw=1,Bm=M;function e(V){var C=this;this.next=null,this.entry=null,this.finish=function(){ee(C,V)}}var t;M.WritableState=re;var r={deprecate:Jk()},n=u4(),i=Ed().Buffer,o=Ji.Uint8Array||function(){};function a(V){return i.from(V)}function s(V){return i.isBuffer(V)||V instanceof o}var l=g4(),c=y4(),h=c.getHighWaterMark,p=Il().codes,g=p.ERR_INVALID_ARG_TYPE,f=p.ERR_METHOD_NOT_IMPLEMENTED,S=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,k=p.ERR_STREAM_DESTROYED,d=p.ERR_STREAM_NULL_VALUES,y=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,F=l.errorOrDestroy;Ya(M,n);function j(){}function re(V,C,L){t=t||bl(),V=V||{},typeof L!="boolean"&&(L=C instanceof t),this.objectMode=!!V.objectMode,L&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=h(this,V,"writableHighWaterMark",L),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=V.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){ye(C,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}re.prototype.getBuffer=function(){for(var C=this.bufferedRequest,L=[];C;)L.push(C),C=C.next;return L},function(){try{Object.defineProperty(re.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var $;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(C){return $.call(this,C)?!0:this!==M?!1:C&&C._writableState instanceof re}})):$=function(C){return C instanceof this};function M(V){t=t||bl();var C=this instanceof t;if(!C&&!$.call(M,this))return new M(V);this._writableState=new re(V,this,C),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}M.prototype.pipe=function(){F(this,new v)};function D(V,C){var L=new y;F(V,L),yt.nextTick(C,L)}function he(V,C,L,Y){var Z;return L===null?Z=new d:typeof L!="string"&&!C.objectMode&&(Z=new g("chunk",["string","Buffer"],L)),Z?(F(V,Z),yt.nextTick(Y,Z),!1):!0}M.prototype.write=function(V,C,L){var Y=this._writableState,Z=!1,U=!Y.objectMode&&s(V);return U&&!i.isBuffer(V)&&(V=a(V)),typeof C=="function"&&(L=C,C=null),U?C="buffer":C||(C=Y.defaultEncoding),typeof L!="function"&&(L=j),Y.ending?D(this,L):(U||he(this,Y,V,L))&&(Y.pendingcb++,Z=R(this,Y,U,V,C,L)),Z},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&oe(this,V))},M.prototype.setDefaultEncoding=function(C){if(typeof C=="string"&&(C=C.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((C+"").toLowerCase())>-1))throw new _(C);return this._writableState.defaultEncoding=C,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function H(V,C,L){return!V.objectMode&&V.decodeStrings!==!1&&typeof C=="string"&&(C=i.from(C,L)),C}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(V,C,L,Y,Z,U){if(!L){var G=H(C,Y,Z);Y!==G&&(L=!0,Z="buffer",Y=G)}var ge=C.objectMode?1:Y.length;C.length+=ge;var I=C.length<C.highWaterMark;if(I||(C.needDrain=!0),C.writing||C.corked){var le=C.lastBufferedRequest;C.lastBufferedRequest={chunk:Y,encoding:Z,isBuf:L,callback:U,next:null},le?le.next=C.lastBufferedRequest:C.bufferedRequest=C.lastBufferedRequest,C.bufferedRequestCount+=1}else X(V,C,!1,ge,Y,Z,U);return I}function X(V,C,L,Y,Z,U,G){C.writelen=Y,C.writecb=G,C.writing=!0,C.sync=!0,C.destroyed?C.onwrite(new k("write")):L?V._writev(Z,C.onwrite):V._write(Z,U,C.onwrite),C.sync=!1}function T(V,C,L,Y,Z){--C.pendingcb,L?(yt.nextTick(Z,Y),yt.nextTick(B,V,C),V._writableState.errorEmitted=!0,F(V,Y)):(Z(Y),V._writableState.errorEmitted=!0,F(V,Y),B(V,C))}function se(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function ye(V,C){var L=V._writableState,Y=L.sync,Z=L.writecb;if(typeof Z!="function")throw new S;if(se(L),C)T(V,L,Y,C,Z);else{var U=me(L)||V.destroyed;!U&&!L.corked&&!L.bufferProcessing&&L.bufferedRequest&&oe(V,L),Y?yt.nextTick(ae,V,L,U,Z):ae(V,L,U,Z)}}function ae(V,C,L,Y){L||ue(V,C),C.pendingcb--,Y(),B(V,C)}function ue(V,C){C.length===0&&C.needDrain&&(C.needDrain=!1,V.emit("drain"))}function oe(V,C){C.bufferProcessing=!0;var L=C.bufferedRequest;if(V._writev&&L&&L.next){var Y=C.bufferedRequestCount,Z=new Array(Y),U=C.corkedRequestsFree;U.entry=L;for(var G=0,ge=!0;L;)Z[G]=L,L.isBuf||(ge=!1),L=L.next,G+=1;Z.allBuffers=ge,X(V,C,!0,C.length,Z,"",U.finish),C.pendingcb++,C.lastBufferedRequest=null,U.next?(C.corkedRequestsFree=U.next,U.next=null):C.corkedRequestsFree=new e(C),C.bufferedRequestCount=0}else{for(;L;){var I=L.chunk,le=L.encoding,N=L.callback,w=C.objectMode?1:I.length;if(X(V,C,!1,w,I,le,N),L=L.next,C.bufferedRequestCount--,C.writing)break}L===null&&(C.lastBufferedRequest=null)}C.bufferedRequest=L,C.bufferProcessing=!1}M.prototype._write=function(V,C,L){L(new f("_write()"))},M.prototype._writev=null,M.prototype.end=function(V,C,L){var Y=this._writableState;return typeof V=="function"?(L=V,V=null,C=null):typeof C=="function"&&(L=C,C=null),V!=null&&this.write(V,C),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||z(this,Y,L),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function me(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function de(V,C){V._final(function(L){C.pendingcb--,L&&F(V,L),C.prefinished=!0,V.emit("prefinish"),B(V,C)})}function A(V,C){!C.prefinished&&!C.finalCalled&&(typeof V._final=="function"&&!C.destroyed?(C.pendingcb++,C.finalCalled=!0,yt.nextTick(de,V,C)):(C.prefinished=!0,V.emit("prefinish")))}function B(V,C){var L=me(C);if(L&&(A(V,C),C.pendingcb===0&&(C.finished=!0,V.emit("finish"),C.autoDestroy))){var Y=V._readableState;(!Y||Y.autoDestroy&&Y.endEmitted)&&V.destroy()}return L}function z(V,C,L){C.ending=!0,B(V,C),L&&(C.finished?yt.nextTick(L):V.once("finish",L)),C.ended=!0,V.writable=!1}function ee(V,C,L){var Y=V.entry;for(V.entry=null;Y;){var Z=Y.callback;C.pendingcb--,Z(L),Y=Y.next}C.corkedRequestsFree.next=V}return Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),M.prototype.destroy=l.destroy,M.prototype._undestroy=l.undestroy,M.prototype._destroy=function(V,C){C(V)},Bm}var Mm,iw;function bl(){if(iw)return Mm;iw=1;var e=Object.keys||function(c){var h=[];for(var p in c)h.push(p);return h};Mm=a;var t=w4(),r=v4();Ya(a,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var o=n[i];a.prototype[o]||(a.prototype[o]=r.prototype[o])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||yt.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=h,this._writableState.destroyed=h)}}),Mm}var zm={},zf={exports:{}},ow;function Zk(){return ow||(ow=1,function(e,t){var r=Ed(),n=r.Buffer;function i(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o);function o(a,s,l){return n(a,s,l)}i(n,o),o.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},o.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(zf,zf.exports)),zf.exports}var aw;function d0(){if(aw)return zm;aw=1;var e=Zk().Buffer,t=e.isEncoding||function(d){switch(d=""+d,d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(d){if(!d)return"utf8";for(var y;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(y)return;d=(""+d).toLowerCase(),y=!0}}function n(d){var y=r(d);if(typeof y!="string"&&(e.isEncoding===t||!t(d)))throw new Error("Unknown encoding: "+d);return y||d}zm.StringDecoder=i;function i(d){this.encoding=n(d);var y;switch(this.encoding){case"utf16le":this.text=p,this.end=g,y=4;break;case"utf8":this.fillLast=l,y=4;break;case"base64":this.text=f,this.end=S,y=3;break;default:this.write=v,this.end=k;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(y)}i.prototype.write=function(d){if(d.length===0)return"";var y,_;if(this.lastNeed){if(y=this.fillLast(d),y===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _<d.length?y?y+this.text(d,_):this.text(d,_):y||""},i.prototype.end=h,i.prototype.text=c,i.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function o(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function a(d,y,_){var F=y.length-1;if(F<_)return 0;var j=o(y[F]);return j>=0?(j>0&&(d.lastNeed=j-1),j):--F<_||j===-2?0:(j=o(y[F]),j>=0?(j>0&&(d.lastNeed=j-2),j):--F<_||j===-2?0:(j=o(y[F]),j>=0?(j>0&&(j===2?j=0:d.lastNeed=j-3),j):0))}function s(d,y,_){if((y[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return d.lastNeed=2,"�"}}function l(d){var y=this.lastTotal-this.lastNeed,_=s(this,d);if(_!==void 0)return _;if(this.lastNeed<=d.length)return d.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,y,0,d.length),this.lastNeed-=d.length}function c(d,y){var _=a(this,d,y);if(!this.lastNeed)return d.toString("utf8",y);this.lastTotal=_;var F=d.length-(_-this.lastNeed);return d.copy(this.lastChar,0,F),d.toString("utf8",y,F)}function h(d){var y=d&&d.length?this.write(d):"";return this.lastNeed?y+"�":y}function p(d,y){if((d.length-y)%2===0){var _=d.toString("utf16le",y);if(_){var F=_.charCodeAt(_.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",y,d.length-1)}function g(d){var y=d&&d.length?this.write(d):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,_)}return y}function f(d,y){var _=(d.length-y)%3;return _===0?d.toString("base64",y):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",y,d.length-_))}function S(d){var y=d&&d.length?this.write(d):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function v(d){return d.toString(this.encoding)}function k(d){return d&&d.length?this.write(d):""}return zm}var Um,sw;function Og(){if(sw)return Um;sw=1;var e=Il().codes.ERR_STREAM_PREMATURE_CLOSE;function t(o){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];o.apply(this,l)}}}function r(){}function n(o){return o.setHeader&&typeof o.abort=="function"}function i(o,a,s){if(typeof a=="function")return i(o,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&o.readable,c=a.writable||a.writable!==!1&&o.writable,h=function(){o.writable||g()},p=o._writableState&&o._writableState.finished,g=function(){c=!1,p=!0,l||s.call(o)},f=o._readableState&&o._readableState.endEmitted,S=function(){l=!1,f=!0,c||s.call(o)},v=function(_){s.call(o,_)},k=function(){var _;if(l&&!f)return(!o._readableState||!o._readableState.ended)&&(_=new e),s.call(o,_);if(c&&!p)return(!o._writableState||!o._writableState.ended)&&(_=new e),s.call(o,_)},d=function(){o.req.on("finish",g)};return n(o)?(o.on("complete",g),o.on("abort",k),o.req?d():o.on("request",d)):c&&!o._writableState&&(o.on("end",h),o.on("close",h)),o.on("end",S),o.on("finish",g),a.error!==!1&&o.on("error",v),o.on("close",k),function(){o.removeListener("complete",g),o.removeListener("abort",k),o.removeListener("request",d),o.req&&o.req.removeListener("finish",g),o.removeListener("end",h),o.removeListener("close",h),o.removeListener("finish",g),o.removeListener("end",S),o.removeListener("error",v),o.removeListener("close",k)}}return Um=i,Um}var qm,lw;function Qk(){if(lw)return qm;lw=1;var e;function t(d,y,_){return y in d?Object.defineProperty(d,y,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[y]=_,d}var r=Og(),n=Symbol("lastResolve"),i=Symbol("lastReject"),o=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),l=Symbol("handlePromise"),c=Symbol("stream");function h(d,y){return{value:d,done:y}}function p(d){var y=d[n];if(y!==null){var _=d[c].read();_!==null&&(d[s]=null,d[n]=null,d[i]=null,y(h(_,!1)))}}function g(d){yt.nextTick(p,d)}function f(d,y){return function(_,F){d.then(function(){if(y[a]){_(h(void 0,!0));return}y[l](_,F)},F)}}var S=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[c]},next:function(){var y=this,_=this[o];if(_!==null)return Promise.reject(_);
vendor: 4,865 bytes, line 443
443if(this[a])return Promise.resolve(h(void 0,!0));if(this[c].destroyed)return new Promise(function($,M){yt.nextTick(function(){y[o]?M(y[o]):$(h(void 0,!0))})});var F=this[s],j;if(F)j=new Promise(f(F,this));else{var re=this[c].read();if(re!==null)return Promise.resolve(h(re,!1));j=new Promise(this[l])}return this[s]=j,j}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var y=this;return new Promise(function(_,F){y[c].destroy(null,function(j){if(j){F(j);return}_(h(void 0,!0))})})}),e),S),k=function(y){var _,F=Object.create(v,(_={},t(_,c,{value:y,writable:!0}),t(_,n,{value:null,writable:!0}),t(_,i,{value:null,writable:!0}),t(_,o,{value:null,writable:!0}),t(_,a,{value:y._readableState.endEmitted,writable:!0}),t(_,l,{value:function(re,$){var M=F[c].read();M?(F[s]=null,F[n]=null,F[i]=null,re(h(M,!1))):(F[n]=re,F[i]=$)},writable:!0}),_));return F[s]=null,r(y,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var re=F[i];re!==null&&(F[s]=null,F[n]=null,F[i]=null,re(j)),F[o]=j;return}var $=F[n];$!==null&&(F[s]=null,F[n]=null,F[i]=null,$(h(void 0,!0))),F[a]=!0}),y.on("readable",g.bind(null,F)),F};return qm=k,qm}var Wm,uw;function eL(){return uw||(uw=1,Wm=function(){throw new Error("Readable.from is not available in the browser")}),Wm}var Hm,cw;function w4(){if(cw)return Hm;cw=1,Hm=D;var e;D.ReadableState=M,Tg.EventEmitter;var t=function(G,ge){return G.listeners(ge).length},r=u4(),n=Ed().Buffer,i=Ji.Uint8Array||function(){};function o(U){return n.from(U)}function a(U){return n.isBuffer(U)||U instanceof i}var s=m4(),l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Yk(),h=g4(),p=y4(),g=p.getHighWaterMark,f=Il().codes,S=f.ERR_INVALID_ARG_TYPE,v=f.ERR_STREAM_PUSH_AFTER_EOF,k=f.ERR_METHOD_NOT_IMPLEMENTED,d=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,_,F;Ya(D,r);var j=h.errorOrDestroy,re=["error","close","destroy","pause","resume"];function $(U,G,ge){if(typeof U.prependListener=="function")return U.prependListener(G,ge);!U._events||!U._events[G]?U.on(G,ge):Array.isArray(U._events[G])?U._events[G].unshift(ge):U._events[G]=[ge,U._events[G]]}function M(U,G,ge){e=e||bl(),U=U||{},typeof ge!="boolean"&&(ge=G instanceof e),this.objectMode=!!U.objectMode,ge&&(this.objectMode=this.objectMode||!!U.readableObjectMode),this.highWaterMark=g(this,U,"readableHighWaterMark",ge),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(y||(y=d0().StringDecoder),this.decoder=new y(U.encoding),this.encoding=U.encoding)}function D(U){if(e=e||bl(),!(this instanceof D))return new D(U);var G=this instanceof e;this._readableState=new M(U,this,G),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),r.call(this)}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(G){this._readableState&&(this._readableState.destroyed=G)}}),D.prototype.destroy=h.destroy,D.prototype._undestroy=h.undestroy,D.prototype._destroy=function(U,G){G(U)},D.prototype.push=function(U,G){var ge=this._readableState,I;return ge.objectMode?I=!0:typeof U=="string"&&(G=G||ge.defaultEncoding,G!==ge.encoding&&(U=n.from(U,G),G=""),I=!0),he(this,U,G,!1,I)},D.prototype.unshift=function(U){return he(this,U,null,!0,!1)};function he(U,G,ge,I,le){l("readableAddChunk",G);var N=U._readableState;if(G===null)N.reading=!1,ye(U,N);else{var w;if(le||(w=R(N,G)),w)j(U,w);else if(N.objectMode||G&&G.length>0)if(typeof G!="string"&&!N.objectMode&&Object.getPrototypeOf(G)!==n.prototype&&(G=o(G)),I)N.endEmitted?j(U,new d):H(U,N,G,!0);else if(N.ended)j(U,new v);else{if(N.destroyed)return!1;N.reading=!1,N.decoder&&!ge?(G=N.decoder.write(G),N.objectMode||G.length!==0?H(U,N,G,!1):oe(U,N)):H(U,N,G,!1)}else I||(N.reading=!1,oe(U,N))}return!N.ended&&(N.length<N.highWaterMark||N.length===0)}function H(U,G,ge,I){G.flowing&&G.length===0&&!G.sync?(G.awaitDrain=0,U.emit("data",ge)):(G.length+=G.objectMode?1:ge.length,I?G.buffer.unshift(ge):G.buffer.push(ge),G.needReadable&&ae(U)),oe(U,G)}function R(U,G){var ge;return!a(G)&&typeof G!="string"&&G!==void 0&&!U.objectMode&&(ge=new S("chunk",["string","Buffer","Uint8Array"],G)),ge}D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(U){y||(y=d0().StringDecoder);var G=new y(U);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 6,119 bytes, line 443
443for(var ge=this._readableState.buffer.head,I="";ge!==null;)I+=G.write(ge.data),ge=ge.next;return this._readableState.buffer.clear(),I!==""&&this._readableState.buffer.push(I),this._readableState.length=I.length,this};var X=1073741824;function T(U){return U>=X?U=X:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function se(U,G){return U<=0||G.length===0&&G.ended?0:G.objectMode?1:U!==U?G.flowing&&G.length?G.buffer.head.data.length:G.length:(U>G.highWaterMark&&(G.highWaterMark=T(U)),U<=G.length?U:G.ended?G.length:(G.needReadable=!0,0))}D.prototype.read=function(U){l("read",U),U=parseInt(U,10);var G=this._readableState,ge=U;if(U!==0&&(G.emittedReadable=!1),U===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return l("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?L(this):ae(this),null;if(U=se(U,G),U===0&&G.ended)return G.length===0&&L(this),null;var I=G.needReadable;l("need readable",I),(G.length===0||G.length-U<G.highWaterMark)&&(I=!0,l("length less than watermark",I)),G.ended||G.reading?(I=!1,l("reading or ended",I)):I&&(l("do read"),G.reading=!0,G.sync=!0,G.length===0&&(G.needReadable=!0),this._read(G.highWaterMark),G.sync=!1,G.reading||(U=se(ge,G)));var le;return U>0?le=C(U,G):le=null,le===null?(G.needReadable=G.length<=G.highWaterMark,U=0):(G.length-=U,G.awaitDrain=0),G.length===0&&(G.ended||(G.needReadable=!0),ge!==U&&G.ended&&L(this)),le!==null&&this.emit("data",le),le};function ye(U,G){if(l("onEofChunk"),!G.ended){if(G.decoder){var ge=G.decoder.end();ge&&ge.length&&(G.buffer.push(ge),G.length+=G.objectMode?1:ge.length)}G.ended=!0,G.sync?ae(U):(G.needReadable=!1,G.emittedReadable||(G.emittedReadable=!0,ue(U)))}}function ae(U){var G=U._readableState;l("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(l("emitReadable",G.flowing),G.emittedReadable=!0,yt.nextTick(ue,U))}function ue(U){var G=U._readableState;l("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&(G.length||G.ended)&&(U.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,V(U)}function oe(U,G){G.readingMore||(G.readingMore=!0,yt.nextTick(me,U,G))}function me(U,G){for(;!G.reading&&!G.ended&&(G.length<G.highWaterMark||G.flowing&&G.length===0);){var ge=G.length;if(l("maybeReadMore read 0"),U.read(0),ge===G.length)break}G.readingMore=!1}D.prototype._read=function(U){j(this,new k("_read()"))},D.prototype.pipe=function(U,G){var ge=this,I=this._readableState;switch(I.pipesCount){case 0:I.pipes=U;break;case 1:I.pipes=[I.pipes,U];break;default:I.pipes.push(U);break}I.pipesCount+=1,l("pipe count=%d opts=%j",I.pipesCount,G);var le=(!G||G.end!==!1)&&U!==yt.stdout&&U!==yt.stderr,N=le?b:Oe;I.endEmitted?yt.nextTick(N):ge.once("end",N),U.on("unpipe",w);function w(We,$e){l("onunpipe"),We===ge&&$e&&$e.hasUnpiped===!1&&($e.hasUnpiped=!0,fe())}function b(){l("onend"),U.end()}var P=de(ge);U.on("drain",P);var Q=!1;function fe(){l("cleanup"),U.removeListener("close",Ce),U.removeListener("finish",Le),U.removeListener("drain",P),U.removeListener("error",_e),U.removeListener("unpipe",w),ge.removeListener("end",b),ge.removeListener("end",Oe),ge.removeListener("data",ie),Q=!0,I.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&P()}ge.on("data",ie);function ie(We){l("ondata");var $e=U.write(We);l("dest.write",$e),$e===!1&&((I.pipesCount===1&&I.pipes===U||I.pipesCount>1&&Z(I.pipes,U)!==-1)&&!Q&&(l("false write response, pause",I.awaitDrain),I.awaitDrain++),ge.pause())}function _e(We){l("onerror",We),Oe(),U.removeListener("error",_e),t(U,"error")===0&&j(U,We)}$(U,"error",_e);function Ce(){U.removeListener("finish",Le),Oe()}U.once("close",Ce);function Le(){l("onfinish"),U.removeListener("close",Ce),Oe()}U.once("finish",Le);function Oe(){l("unpipe"),ge.unpipe(U)}return U.emit("pipe",ge),I.flowing||(l("pipe resume"),ge.resume()),U};function de(U){return function(){var ge=U._readableState;l("pipeOnDrain",ge.awaitDrain),ge.awaitDrain&&ge.awaitDrain--,ge.awaitDrain===0&&t(U,"data")&&(ge.flowing=!0,V(U))}}D.prototype.unpipe=function(U){var G=this._readableState,ge={hasUnpiped:!1};if(G.pipesCount===0)return this;if(G.pipesCount===1)return U&&U!==G.pipes?this:(U||(U=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,U&&U.emit("unpipe",this,ge),this);if(!U){var I=G.pipes,le=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var N=0;N<le;N++)I[N].emit("unpipe",this,{hasUnpiped:!1});return this}var w=Z(G.pipes,U);return w===-1?this:(G.pipes.splice(w,1),G.pipesCount-=1,G.pipesCount===1&&(G.pipes=G.pipes[0]),U.emit("unpipe",this,ge),this)},D.prototype.on=function(U,G){var ge=r.prototype.on.call(this,U,G),I=this._readableState;return U==="data"?(I.readableListening=this.listenerCount("readable")>0,I.flowing!==!1&&this.resume()):U==="readable"&&!I.endEmitted&&!I.readableListening&&(I.readableListening=I.needReadable=!0,I.flowing=!1,I.emittedReadable=!1,l("on readable",I.length,I.reading),I.length?ae(this):I.reading||yt.nextTick(B,this)),ge},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(U,G){var ge=r.prototype.removeListener.call(this,U,G);return U==="readable"&&yt.nextTick(A,this),ge},D.prototype.removeAllListeners=function(U){var G=r.prototype.removeAllListeners.apply(this,arguments);return(U==="readable"||U===void 0)&&yt.nextTick(A,this),G};function A(U){var G=U._readableState;G.readableListening=U.listenerCount("readable")>0,G.resumeScheduled&&!G.paused?G.flowing=!0:U.listenerCount("data")>0&&U.resume()}function B(U){l("readable nexttick read 0"),U.read(0)}D.prototype.resume=function(){var U=this._readableState;return U.flowing||(l("resume"),U.flowing=!U.readableListening,z(this,U)),U.paused=!1,this};function z(U,G){G.resumeScheduled||(G.resumeScheduled=!0,yt.nextTick(ee,U,G))}function ee(U,G){l("resume",G.reading),G.reading||U.read(0),G.resumeScheduled=!1,U.emit("resume"),V(U),G.flowing&&!G.reading&&U.read(0)}D.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit
vendor: 4,543 bytes, line 443
443("pause")),this._readableState.paused=!0,this};function V(U){var G=U._readableState;for(l("flow",G.flowing);G.flowing&&U.read()!==null;);}D.prototype.wrap=function(U){var G=this,ge=this._readableState,I=!1;U.on("end",function(){if(l("wrapped end"),ge.decoder&&!ge.ended){var w=ge.decoder.end();w&&w.length&&G.push(w)}G.push(null)}),U.on("data",function(w){if(l("wrapped data"),ge.decoder&&(w=ge.decoder.write(w)),!(ge.objectMode&&w==null)&&!(!ge.objectMode&&(!w||!w.length))){var b=G.push(w);b||(I=!0,U.pause())}});for(var le in U)this[le]===void 0&&typeof U[le]=="function"&&(this[le]=function(b){return function(){return U[b].apply(U,arguments)}}(le));for(var N=0;N<re.length;N++)U.on(re[N],this.emit.bind(this,re[N]));return this._read=function(w){l("wrapped _read",w),I&&(I=!1,U.resume())},this},typeof Symbol=="function"&&(D.prototype[Symbol.asyncIterator]=function(){return _===void 0&&(_=Qk()),_(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(G){this._readableState&&(this._readableState.flowing=G)}}),D._fromList=C,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function C(U,G){if(G.length===0)return null;var ge;return G.objectMode?ge=G.buffer.shift():!U||U>=G.length?(G.decoder?ge=G.buffer.join(""):G.buffer.length===1?ge=G.buffer.first():ge=G.buffer.concat(G.length),G.buffer.clear()):ge=G.buffer.consume(U,G.decoder),ge}function L(U){var G=U._readableState;l("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,yt.nextTick(Y,G,U))}function Y(U,G){if(l("endReadableNT",U.endEmitted,U.length),!U.endEmitted&&U.length===0&&(U.endEmitted=!0,G.readable=!1,G.emit("end"),U.autoDestroy)){var ge=G._writableState;(!ge||ge.autoDestroy&&ge.finished)&&G.destroy()}}typeof Symbol=="function"&&(D.from=function(U,G){return F===void 0&&(F=eL()),F(D,U,G)});function Z(U,G){for(var ge=0,I=U.length;ge<I;ge++)if(U[ge]===G)return ge;return-1}return Hm}var Vm,fw;function b4(){if(fw)return Vm;fw=1,Vm=s;var e=Il().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=e.ERR_TRANSFORM_WITH_LENGTH_0,o=bl();Ya(s,o);function a(h,p){var g=this._transformState;g.transforming=!1;var f=g.writecb;if(f===null)return this.emit("error",new r);g.writechunk=null,g.writecb=null,p!=null&&this.push(p),f(h);var S=this._readableState;S.reading=!1,(S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}function s(h){if(!(this instanceof s))return new s(h);o.call(this,h),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",l)}function l(){var h=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(p,g){c(h,p,g)}):c(this,null,null)}s.prototype.push=function(h,p){return this._transformState.needTransform=!1,o.prototype.push.call(this,h,p)},s.prototype._transform=function(h,p,g){g(new t("_transform()"))},s.prototype._write=function(h,p,g){var f=this._transformState;if(f.writecb=g,f.writechunk=h,f.writeencoding=p,!f.transforming){var S=this._readableState;(f.needTransform||S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}},s.prototype._read=function(h){var p=this._transformState;p.writechunk!==null&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0},s.prototype._destroy=function(h,p){o.prototype._destroy.call(this,h,function(g){p(g)})};function c(h,p,g){if(p)return h.emit("error",p);if(g!=null&&h.push(g),h._writableState.length)throw new i;if(h._transformState.transforming)throw new n;return h.push(null)}return Vm}var $m,hw;function tL(){if(hw)return $m;hw=1,$m=t;var e=b4();Ya(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,i){i(null,r)},$m}var Gm,dw;function rL(){if(dw)return Gm;dw=1;var e;function t(g){var f=!1;return function(){f||(f=!0,g.apply(void 0,arguments))}}
vendor: 1,680 bytes, line 443
443var r=Il().codes,n=r.ERR_MISSING_ARGS,i=r.ERR_STREAM_DESTROYED;function o(g){if(g)throw g}function a(g){return g.setHeader&&typeof g.abort=="function"}function s(g,f,S,v){v=t(v);var k=!1;g.on("close",function(){k=!0}),e===void 0&&(e=Og()),e(g,{readable:f,writable:S},function(y){if(y)return v(y);k=!0,v()});var d=!1;return function(y){if(!k&&!d){if(d=!0,a(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();v(y||new i("pipe"))}}}function l(g){g()}function c(g,f){return g.pipe(f)}function h(g){return!g.length||typeof g[g.length-1]!="function"?o:g.pop()}function p(){for(var g=arguments.length,f=new Array(g),S=0;S<g;S++)f[S]=arguments[S];var v=h(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new n("streams");var k,d=f.map(function(y,_){var F=_<f.length-1,j=_>0;return s(y,F,j,function(re){k||(k=re),re&&d.forEach(l),!F&&(d.forEach(l),v(k))})});return f.reduce(c)}return Gm=p,Gm}var Fg=ci,Dg=Tg.EventEmitter,nL=Ya;nL(ci,Dg);ci.Readable=w4();ci.Writable=v4();ci.Duplex=bl();ci.Transform=b4();ci.PassThrough=tL();ci.finished=Og();ci.pipeline=rL();ci.Stream=ci;function ci(){Dg.call(this)}ci.prototype.pipe=function(e,t){var r=this;function n(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function l(h){if(c(),Dg.listenerCount(this,"error")===0)throw h}r.on("error",l),e.on("error",l);function c(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s
vendor: 4,705 bytes, lines 443-444
443),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e};(function(e){(function(t){t.parser=function(C,L){return new n(C,L)},t.SAXParser=n,t.SAXStream=h,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(C,L){if(!(this instanceof n))return new n(C,L);var Y=this;o(Y),Y.q=Y.c="",Y.bufferCheckPosition=t.MAX_BUFFER_LENGTH,Y.opt=L||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!C,Y.noscript=!!(C||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(v)),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),H(Y,"onready")}Object.create||(Object.create=function(C){function L(){}L.prototype=C;var Y=new L;return Y}),Object.keys||(Object.keys=function(C){var L=[];for(var Y in C)C.hasOwnProperty(Y)&&L.push(Y);return L});function i(C){for(var L=Math.max(t.MAX_BUFFER_LENGTH,10),Y=0,Z=0,U=r.length;Z<U;Z++){var G=C[r[Z]].length;if(G>L)switch(r[Z]){case"textNode":X(C);break;case"cdata":R(C,"oncdata",C.cdata),C.cdata="";break;case"script":R(C,"onscript",C.script),C.script="";break;default:se(C,"Max buffer length exceeded: "+r[Z])}Y=Math.max(Y,G)}var ge=t.MAX_BUFFER_LENGTH-Y;C.bufferCheckPosition=ge+C.position}function o(C){for(var L=0,Y=r.length;L<Y;L++)C[r[L]]=""}function a(C){X(C),C.cdata!==""&&(R(C,"oncdata",C.cdata),C.cdata=""),C.script!==""&&(R(C,"onscript",C.script),C.script="")}n.prototype={end:function(){ye(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=Fg.Stream}catch{s=function(){}}var l=t.EVENTS.filter(function(C){return C!=="error"&&C!=="end"});function c(C,L){return new h(C,L)}function h(C,L){if(!(this instanceof h))return new h(C,L);s.apply(this),this._parser=new n(C,L),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(Z){Y.emit("error",Z),Y._parser.error=null},this._decoder=null,l.forEach(function(Z){Object.defineProperty(Y,"on"+Z,{get:function(){return Y._parser["on"+Z]},set:function(U){if(!U)return Y.removeAllListeners(Z),Y._parser["on"+Z]=U,U;Y.on(Z,U)},enumerable:!0,configurable:!1})})}h.prototype=Object.create(s.prototype,{constructor:{value:h}}),h.prototype.write=function(C){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(C)){if(!this._decoder){var L=d0().StringDecoder;this._decoder=new L("utf8")}C=this._decoder.write(C)}return this._parser.write(C.toString()),this.emit("data",C),!0},h.prototype.end=function(C){return C&&C.length&&this.write(C),this._parser.end(),!0},h.prototype.on=function(C,L){var Y=this;return!Y._parser["on"+C]&&l.indexOf(C)!==-1&&(Y._parser["on"+C]=function(){var Z=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Z.splice(0,0,C),Y.emit.apply(Y,Z)}),s.prototype.on.call(Y,C,L)};var p="[CDATA[",g="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",v={xml:f,xmlns:S},k=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function F(C){return C===" "||C===`
444`||C==="\r"||C==="	"}function j(C){return C==='"'||C==="'"}function re(C){return C===">"||F(C)}function $(C,L){return C.test(L)}function M(C,L){return!$(C,L)}var D=0;t.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OP
444EN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
vendor: 24,222 bytes, lines 444-453
44474,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(C){var L=t.ENTITIES[C],Y=typeof L=="number"?String.fromCharCode(L):L;t.ENTITIES[C]=Y});for(var he in t.STATE)t.STATE[t.STATE[he]]=he;D=t.STATE;function H(C,L,Y){C[L]&&C[L](Y)}function R(C,L,Y){C.textNode&&X(C),H(C,L,Y)}function X(C){C.textNode=T(C.opt,C.textNode),C.textNode&&H(C,"ontext",C.textNode),C.textNode=""}function T(C,L){return C.trim&&(L=L.trim()),C.normalize&&(L=L.replace(/\s+/g," ")),L}function se(C,L){return X(C),C.trackPosition&&(L+=`
445Line: `+C.line+`
446Column: `+C.column+`
447Char: `+C.c),L=new Error(L),C.error=L,H(C,"onerror",L),C}function ye(C){return C.sawRoot&&!C.closedRoot&&ae(C,"Unclosed root tag"),C.state!==D.BEGIN&&C.state!==D.BEGIN_WHITESPACE&&C.state!==D.TEXT&&se(C,"Unexpected end"),X(C),C.c="",C.closed=!0,H(C,"onend"),n.call(C,C.strict,C.opt),C}function ae(C,L){if(typeof C!="object"||!(C instanceof n))throw new Error("bad call to strictFail");C.strict&&se(C,L)}function ue(C){C.strict||(C.tagName=C.tagName[C.looseCase]());var L=C.tags[C.tags.length-1]||C,Y=C.tag={name:C.tagName,attributes:{}};C.opt.xmlns&&(Y.ns=L.ns),C.attribList.length=0,R(C,"onopentagstart",Y)}function oe(C,L){var Y=C.indexOf(":"),Z=Y<0?["",C]:C.split(":"),U=Z[0],G=Z[1];return L&&C==="xmlns"&&(U="xmlns",G=""),{prefix:U,local:G}}function me(C){if(C.strict||(C.attribName=C.attribName[C.looseCase]()),C.attribList.indexOf(C.attribName)!==-1||C.tag.attributes.hasOwnProperty(C.attribName)){C.attribName=C.attribValue="";return}if(C.opt.xmlns){var L=oe(C.attribName,!0),Y=L.prefix,Z=L.local;if(Y==="xmlns")if(Z==="xml"&&C.attribValue!==f)ae(C,"xml: prefix must be bound to "+f+`
448Actual: `+C.attribValue);else if(Z==="xmlns"&&C.attribValue!==S)ae(C,"xmlns: prefix must be bound to "+S+`
449Actual: `+C.attribValue);else{var U=C.tag,G=C.tags[C.tags.length-1]||C;U.ns===G.ns&&(U.ns=Object.create(G.ns)),U.ns[Z]=C.attribValue}C.attribList.push([C.attribName,C.attribValue])}else C.tag.attributes[C.attribName]=C.attribValue,R(C,"onattribute",{name:C.attribName,value:C.attribValue});C.attribName=C.attribValue=""}function de(C,L){if(C.opt.xmlns){var Y=C.tag,Z=oe(C.tagName);Y.prefix=Z.prefix,Y.local=Z.local,Y.uri=Y.ns[Z.prefix]||"",Y.prefix&&!Y.uri&&(ae(C,"Unbound namespace prefix: "+JSON.stringify(C.tagName)),Y.uri=Z.prefix);var U=C.tags[C.tags.length-1]||C;Y.ns&&U.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(ie){R(C,"onopennamespace",{prefix:ie,uri:Y.ns[ie]})});for(var G=0,ge=C.attribList.length;G<ge;G++){var I=C.attribList[G],le=I[0],N=I[1],w=oe(le,!0),b=w.prefix,P=w.local,Q=b===""?"":Y.ns[b]||"",fe={name:le,value:N,prefix:b,local:P,uri:Q};b&&b!=="xmlns"&&!Q&&(ae(C,"Unbound namespace prefix: "+JSON.stringify(b)),fe.uri=b),C.tag.attributes[le]=fe,R(C,"onattribute",fe)}C.attribList.length=0}C.tag.isSelfClosing=!!L,C.sawRoot=!0,C.tags.push(C.tag),R(C,"onopentag",C.tag),L||(!C.noscript&&C.tagName.toLowerCase()==="script"?C.state=D.SCRIPT:C.state=D.TEXT,C.tag=null,C.tagName=""),C.attribName=C.attribValue="",C.attribList.length=0}function A(C){if(!C.tagName){ae(C,"Weird empty close tag."),C.textNode+="</>",C.state=D.TEXT;return}if(C.script){if(C.tagName!=="script"){C.script+="</"+C.tagName+">",C.tagName="",C.state=D.SCRIPT;return}R(C,"onscript",C.script),C.script=""}var L=C.tags.length,Y=C.tagName;C.strict||(Y=Y[C.looseCase]());for(var Z=Y;L--;){var U=C.tags[L];if(U.name!==Z)ae(C,"Unexpected close tag");else break}if(L<0){ae(C,"Unmatched closing tag: "+C.tagName),C.textNode+="</"+C.tagName+">",C.state=D.TEXT;return}C.tagName=Y;for(var G=C.tags.length;G-- >L;){var ge=C.tag=C.tags.pop();C.tagName=C.tag.name,R(C,"onclosetag",C.tagName);var I={};for(var le in ge.ns)I[le]=ge.ns[le];var N=C.tags[C.tags.length-1]||C;C.opt.xmlns&&ge.ns!==N.ns&&Object.keys(ge.ns).forEach(function(w){var b=ge.ns[w];R(C,"onclosenamespace",{prefix:w,uri:b})})}L===0&&(C.closedRoot=!0),C.tagName=C.attribValue=C.attribName="",C.attribList.length=0,C.state=D.TEXT}function B(C){var L=C.entity,Y=L.toLowerCase(),Z,U="";return C.ENTITIES[L]?C.ENTITIES[L]:C.ENTITIES[Y]?C.ENTITIES[Y]:(L=Y,L.charAt(0)==="#"&&(L.charAt(1)==="x"?(L=L.slice(2),Z=parseInt(L,16),U=Z.toString(16)):(L=L.slice(1),Z=parseInt(L,10),U=Z.toString(10))),L=L.replace(/^0+/,""),isNaN(Z)||U.toLowerCase()!==L?(ae(C,"Invalid character entity"),"&"+C.entity+";"):String.fromCodePoint(Z))}function z(C,L){L==="<"?(C.state=D.OPEN_WAKA,C.startTagPosition=C.position):F(L)||(ae(C,"Non-whitespace before first tag."),C.textNode=L,C.state=D.TEXT)}function ee(C,L){var Y="";return L<C.length&&(Y=C.charAt(L)),Y}function V(C){var L=this;if(this.error)throw this.error;if(L.closed)return se(L,"Cannot write after close. Assign an onready handler.");if(C===null)return ye(L);typeof C=="object"&&(C=C.toString());for(var Y=0,Z="";Z=ee(C,Y++),L.c=Z,!!Z;)switch(L.trackPosition&&(L.position++,Z===`
450`?(L.line++,L.column=0):L.column++),L.state){case D.BEGIN:if(L.state=D.BEGIN_WHITESPACE,Z==="\uFEFF")continue;z(L,Z);continue;case D.BEGIN_WHITESPACE:z(L,Z);continue;case D.TEXT:if(L.sawRoot&&!L.closedRoot){for(var U=Y-1;Z&&Z!=="<"&&Z!=="&";)Z=ee(C,Y++),Z&&L.trackPosition&&(L.position++,Z===`
451`?(L.line++,L.column=0):L.column++);L.textNode+=C.substring(U,Y-1)}Z==="<"&&!(L.sawRoot&&L.closedRoot&&!L.strict)?(L.state=D.OPEN_WAKA,L.startTagPosition=L.position):(!F(Z)&&(!L.sawRoot||L.closedRoot)&&ae(L,"Text data outside of root node."),Z==="&"?L.state=D.TEXT_ENTITY:L.textNode+=Z);continue;case D.SCRIPT:Z==="<"?L.state=D.SCRIPT_ENDING:L.script+=Z;continue;case D.SCRIPT_ENDING:Z==="/"?L.state=D.CLOSE_TAG:(L.script+="<"+Z,L.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(Z==="!")L.state=D.SGML_DECL,L.sgmlDecl="";else if(!F(Z))if($(k,Z))L.state=D.OPEN_TAG,L.tagName=Z;else if(Z==="/")L.state=D.CLOSE_TAG,L.tagName="";else if(Z==="?")L.state=D.PROC_INST,L.procInstName=L.procInstBody="";else{if(ae(L,"Unencoded <"),L.startTagPosition+1<L.position){var G=L.position-L.startTagPosition;Z=new Array(G).join(" ")+Z}L.textNode+="<"+Z,L.state=D.TEXT}continue;case D.SGML_DECL:(L.sgmlDecl+Z).toUpperCase()===p?(R(L,"onopencdata"),L.state=D.CDATA,L.sgmlDecl="",L.cdata=""):L.sgmlDecl+Z==="--"?(L.state=D.COMMENT,L.comment="",L.sgmlDecl=""):(L.sgmlDecl+Z).toUpperCase()===g?(L.state=D.DOCTYPE,(L.doctype||L.sawRoot)&&ae(L,"Inappropriately located doctype declaration"),L.doctype="",L.sgmlDecl=""):Z===">"?(R(L,"onsgmldeclaration",L.sgmlDecl),L.sgmlDecl="",L.state=D.TEXT):(j(Z)&&(L.state=D.SGML_DECL_QUOTED),L.sgmlDecl+=Z);continue;case D.SGML_DECL_QUOTED:Z===L.q&&(L.state=D.SGML_DECL,L.q=""),L.sgmlDecl+=Z;continue;case D.DOCTYPE:Z===">"?(L.state=D.TEXT,R(L,"ondoctype",L.doctype),L.doctype=!0):(L.doctype+=Z,Z==="["?L.state=D.DOCTYPE_DTD:j(Z)&&(L.state=D.DOCTYPE_QUOTED,L.q=Z));continue;case D.DOCTYPE_QUOTED:L.doctype+=Z,Z===L.q&&(L.q="",L.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:L.doctype+=Z,Z==="]"?L.state=D.DOCTYPE:j(Z)&&(L.state=D.DOCTYPE_DTD_QUOTED,L.q=Z);continue;case D.DOCTYPE_DTD_QUOTED:L.doctype+=Z,Z===L.q&&(L.state=D.DOCTYPE_DTD,L.q="");continue;case D.COMMENT:Z==="-"?L.state=D.COMMENT_ENDING:L.comment+=Z;continue;case D.COMMENT_ENDING:Z==="-"?(L.state=D.COMMENT_ENDED,L.comment=T(L.opt,L.comment),L.comment&&R(L,"oncomment",L.comment),L.comment=""):(L.comment+="-"+Z,L.state=D.COMMENT);continue;case D.COMMENT_ENDED:Z!==">"?(ae(L,"Malformed comment"),L.comment+="--"+Z,L.state=D.COMMENT):L.state=D.TEXT;continue;case D.CDATA:Z==="]"?L.state=D.CDATA_ENDING:L.cdata+=Z;continue;case D.CDATA_ENDING:Z==="]"?L.state=D.CDATA_ENDING_2:(L.cdata+="]"+Z,L.state=D.CDATA);continue;case D.CDATA_ENDING_2:Z===">"?(L.cdata&&R(L,"oncdata",L.cdata),R(L,"onclosecdata"),L.cdata="",L.state=D.TEXT):Z==="]"?L.cdata+="]":(L.cdata+="]]"+Z,L.state=D.CDATA);continue;case D.PROC_INST:Z==="?"?L.state=D.PROC_INST_ENDING:F(Z)?L.state=D.PROC_INST_BODY:L.procInstName+=Z;continue;case D.PROC_INST_BODY:if(!L.procInstBody&&F(Z))continue;Z==="?"?L.state=D.PROC_INST_ENDING:L.procInstBody+=Z;continue;case D.PROC_INST_ENDING:Z===">"?(R(L,"onprocessinginstruction",{name:L.procInstName,body:L.procInstBody}),L.procInstName=L.procInstBody="",L.state=D.TEXT):(L.procInstBody+="?"+Z,L.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:$(d,Z)?L.tagName+=Z:(ue(L),Z===">"?de(L):Z==="/"?L.state=D.OPEN_TAG_SLASH:(F(Z)||ae(L,"Invalid character in tag name"),L.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:Z===">"?(de(L,!0),A(L)):(ae(L,"Forward-slash in opening tag not followed by >"),L.state=D.ATTRIB);continue;case D.ATTRIB:if(F(Z))continue;Z===">"?de(L):Z==="/"?L.state=D.OPEN_TAG_SLASH:$(k,Z)?(L.attribName=Z,L.attribValue="",L.state=D.ATTRIB_NAME):ae(L,"Invalid attribute name");continue;case D.ATTRIB_NAME:Z==="="?L.state=D.ATTRIB_VALUE:Z===">"?(ae(L,"Attribute without value"),L.attribValue=L.attribName,me(L),de(L)):F(Z)?L.state=D.ATTRIB_NAME_SAW_WHITE:$(d,Z)?L.attribName+=Z:ae(L,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(Z==="=")L.state=D.ATTRIB_VALUE;else{if(F(Z))continue;ae(L,"Attribute without value"),L.tag.attributes[L.attribName]="",L.attribValue="",R(L,"onattribute",{name:L.attribName,value:""}),L.attribName="",Z===">"?de(L):$(k,Z)?(L.attribName=Z,L.state=D.ATTRIB_NAME):(ae(L,"Invalid attribute name"),L.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(F(Z))continue;j(Z)?(L.q=Z,L.state=D.ATTRIB_VALUE_QUOTED):(ae(L,"Unquoted attribute value"),L.state=D.ATTRIB_VALUE_UNQUOTED,L.attribValue=Z);continue;case D.ATTRIB_VALUE_QUOTED:if(Z!==L.q){Z==="&"?L.state=D.ATTRIB_VALUE_ENTITY_Q:L.attribValue+=Z;continue}me(L),L.q="",L.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:F(Z)?L.state=D.ATTRIB:Z===">"?de(L):Z==="/"?L.state=D.OPEN_TAG_SLASH:$(k,Z)?(ae(L,"No whitespace between attributes"),L.attribName=Z,L.attribValue="",L.state=D.ATTRIB_NAME):ae(L,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!re(Z)){Z==="&"?L.state=D.ATTRIB_VALUE_ENTITY_U:L.attribValue+=Z;continue}me(L),Z===">"?de(L):L.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(L.tagName)Z===">"?A(L):$(d,Z)?L.tagName+=Z:L.script?(L.script+="</"+L.tagName,L.tagName="",L.state=D.SCRIPT):(F(Z)||ae(L,"Invalid tagname in closing tag"),L.state=D.CLOSE_TAG_SAW_WHITE);else{if(F(Z))continue;M(k,Z)?L.script?(L.script+="</"+Z,L.state=D.SCRIPT):ae(L,"Invalid tagname in closing tag."):L.tagName=Z}continue;case D.CLOSE_TAG_SAW_WHITE:if(F(Z))continue;Z===">"?A(L):ae(L,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var ge,I;switch(L.state){case D.TEXT_ENTITY:ge=D.TEXT,I="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:ge=D.ATTRIB_VALUE_QUOTED,I="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:ge=D.ATTRIB_VALUE_UNQUOTED,I="attribValue";break}Z===";"?(L[I]+=B(L),L.entity="",L.state=ge):$(L.entity.length?_:y,Z)?L.entity+=Z:(ae(L,"Invalid character in entity name"),L[I]+="&"+L.entity+Z,L.entity="",L.state=ge);continue;default:throw new Error(L,"Unknown state: "+L.state)}return L.position>=L.bufferCheckPosition&&i(L),L}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var C=String.fromCharCode,L=Math.floor,Y=function(){var Z=16384,U=[],G,ge,I=-1,le=arguments.length;if(!le)return"";for(var N="";++I<le;){var w=Number(arguments[I]);if(!isFinite(w)||w<0||w>1114111||L(w)!==w)throw RangeError("Invalid code point: "+w);w<=65535?U.push(w):(w-=65536,G=(w>>10)+55296,ge=w%1024+56320,U.push(G,ge)),(I+1===le||U.length>Z)&&(N+=C.apply(null,U),U.length=0)}return N};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(e)})(Yx);var jg={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}},iL=jg.isArray,Bg={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!iL(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}},oL=Yx,Rt=Bg,cl=jg.isArray,Ie,ut;function aL(e){return Ie=Rt.copyOptions(e),Rt.ensureFlagExists("ignoreDeclaration",Ie),Rt.ensureFlagExists("ignoreInstruction",Ie),Rt.ensureFlagExists("ignoreAttributes",Ie),Rt.ensureFlagExists("ignoreText",Ie),Rt.ensureFlagExists("ignoreComment",Ie),Rt.ensureFlagExists("ignoreCdata",Ie),Rt.ensureFlagExists("ignoreDoctype",Ie),Rt.ensureFlagExists("compact",Ie),Rt.ensureFlagExists("alwaysChildren",Ie),Rt.ensureFlagExists("addParent",Ie),Rt.ensureFlagExists("trim",Ie),Rt.ensureFlagExists("nativeType",Ie),Rt.ensureFlagExists("nativeTypeAttributes",Ie),Rt.ensureFlagExists("sanitize",Ie),Rt.ensureFlagExists("instructionHasAttributes",Ie),Rt.ensureFlagExists("captureSpacesBetweenElements",Ie),Rt.ensureAlwaysArrayExists(Ie),Rt.ensureKeyExists("declaration",Ie),Rt.ensureKeyExists("instruction",Ie),Rt.ensureKeyExists("attributes",Ie),Rt.ensureKeyExists("text",Ie),Rt.ensureKeyExists("comment",Ie),Rt.ensureKeyExists("cdata",Ie),Rt.ensureKeyExists("doctype",Ie),Rt.ensureKeyExists("type",Ie),Rt.ensureKeyExists("name",Ie),Rt.ensureKeyExists("elements",Ie),Rt.ensureKeyExists("parent",Ie),Ie}function x4(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return r==="true"?!0:r==="false"?!1:e}function bc(e,t){var r;if(Ie.compact){if(!ut[Ie[e+"Key"]]&&(cl(Ie.alwaysArray)?Ie.alwaysArray.indexOf(Ie[e+"Key"])!==-1:Ie.alwaysArray)&&(ut[Ie[e+"Key"]]=[]),ut[Ie[e+"Key"]]&&!cl(ut[Ie[e+"Key"]])&&(ut[Ie[e+"Key"]]=[ut[Ie[e+"Key"]]]),e+"Fn"in Ie&&typeof t=="string"&&(t=Ie[e+"Fn"](t,ut)),e==="instruction"&&("instructionFn"in Ie||"instructionNameFn"in Ie)){for(r in t)if(t.hasOwnProperty(r))if("instructionFn"in Ie)t[r]=Ie.instructionFn(t[r],r,ut);else{var n=t[r];delete t[r],t[Ie.instructionNameFn(r,n,ut)]=n}}cl(ut[Ie[e+"Key"]])?ut[Ie[e+"Key"]].push(t):ut[Ie[e+"Key"]]=t}else{ut[Ie.elementsKey]||(ut[Ie.elementsKey]=[]);var i={};if(i[Ie.typeKey]=e,e==="instruction"){for(r in t)if(t.hasOwnProperty(r))break;i[Ie.nameKey]="instructionNameFn"in Ie?Ie.instructionNameFn(r,t,ut):r,Ie.instructionHasAttributes?(i[Ie.attributesKey]=t[r][Ie.attributesKey],"instructionFn"in Ie&&(i[Ie.attributesKey]=Ie.instructionFn(i[Ie.attributesKey],r,ut))):("instructionFn"in Ie&&(t[r]=Ie.instructionFn(t[r],r,ut)),i[Ie.instructionKey]=t[r])}else e+"Fn"in Ie&&(t=Ie[e+"Fn"](t,ut)),i[Ie[e+"Key"]]=t;Ie.addParent&&(i[Ie.parentKey]=ut),ut[Ie.elementsKey].push(i)}}function S4(e){if("attributesFn"in Ie&&e&&(e=Ie.attributesFn(e,ut)),(Ie.trim||"attributeValueFn"in Ie||"attributeNameFn"in Ie||Ie.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(Ie.trim&&(e[t]=e[t].trim()),Ie.nativeTypeAttributes&&(e[t]=x4(e[t])),"attributeValueFn"in Ie&&(e[t]=Ie.attributeValueFn(e[t],t,ut)),"attributeNameFn"in Ie)){var r=e[t];delete e[t],e[Ie.attributeNameFn(t,e[t],ut)]=r}}return e}function sL(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||Ie.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,n;(n=r.exec(e.body))!==null;)t[n[1]]=n[2]||n[3]||n[4];t=S4(t)}if(e.name.toLowerCase()==="xml"){if(Ie.ignoreDeclaration)return;ut[Ie.declarationKey]={},Object.keys(t).length&&(ut[Ie.declarationKey][Ie.attributesKey]=t),Ie.addParent&&(ut[Ie.declarationKey][Ie.parentKey]=ut)}else{if(Ie.ignoreInstruction)return;Ie.trim&&(e.body=e.body.trim());var i={};Ie.instructionHasAttributes&&Object.keys(t).length?(i[e.name]={},i[e.name][Ie.attributesKey]=t):i[e.name]=e.body,bc("instruction",i)}}function lL(e,t){var r;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=S4(t),"elementNameFn"in Ie&&(e=Ie.elementNameFn(e,ut)),Ie.compact){if(r={},!Ie.ignoreAttributes&&t&&Object.keys(t).length){r[Ie.attributesKey]={};var n;for(n in t)t.hasOwnProperty(n)&&(r[Ie.attributesKey][n]=t[n])}!(e in ut)&&(cl(Ie.alwaysArray)?Ie.alwaysArray.indexOf(e)!==-1:Ie.alwaysArray)&&(ut[e]=[]),ut[e]&&!cl(ut[e])&&(ut[e]=[ut[e]]),cl(ut[e])?ut[e].push(r):ut[e]=r}else ut[Ie.elementsKey]||(ut[Ie.elementsKey]=[]),r={},r[Ie.typeKey]="element",r[Ie.nameKey]=e,!Ie.ignoreAttributes&&t&&Object.keys(t).length&&(r[Ie.attributesKey]=t),Ie.alwaysChildren&&(r[Ie.elementsKey]=[]),ut[Ie.elementsKey].push(r);r[Ie.parentKey]=ut,ut=r}function uL(e){Ie.ignoreText||!e.trim()&&!Ie.captureSpacesBetweenElements||(Ie.trim&&(e=e.trim()),Ie.nativeType&&(e=x4(e)),Ie.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),bc("text",e))}function cL(e){Ie.ignoreComment||(Ie.trim&&(e=e.trim()),bc("comment",e))}function fL(e){var t=ut[Ie.parentKey];Ie.addParent||delete ut[Ie.parentKey],ut=t}function hL(e){Ie.ignoreCdata||(Ie.trim&&(e=e.trim()),bc("cdata",e))}function dL(e){Ie.ignoreDoctype||(e=e.replace(/^ /,""),Ie.trim&&(e=e.trim()),bc("doctype",e))}function pL(e){e.note=e}var _4=function(e,t){var r=oL.parser(!0,{}),n={};if(ut=n,Ie=aL(t),r.opt={strictEntities:!0},r.onopentag=lL,r.ontext=uL,r.oncomment=cL,r.onclosetag=fL,r.onerror=pL,r.oncdata=hL,r.ondoctype=dL,r.onprocessinginstruction=sL,r.write(e).close(),n[Ie.elementsKey]){var i=n[Ie.elementsKey];delete n[Ie.elementsKey],n[Ie.elementsKey]=i,delete n.text}return n},pw=Bg,mL=_4;function gL(e){var t=pw.copyOptions(e);return pw.ensureSpacesExists(t),t}var yL=function(e,t){var r,n,i,o;return r=gL(t),n=mL(e,r),o="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?i=JSON.stringify(n,function(a,s){return a===o?"_":s},r.spaces):i=JSON.stringify(n,null,r.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},$t=Bg,vL=jg.isArray,sn,ln;function wL(e){var t=$t.copyOptions(e);return $t.ensureFlagExists("ignoreDeclaration",t),$t.ensureFlagExists("ignoreInstruction",t),$t.ensureFlagExists("ignoreAttributes",t),$t.ensureFlagExists("ignoreText",t),$t.ensureFlagExists("ignoreComment",t),$t.ensureFlagExists("ignoreCdata",t),$t.ensureFlagExists("ignoreDoctype",t),$t.ensureFlagExists("compact",t),$t.ensureFlagExists("indentText",t),$t.ensureFlagExists("indentCdata",t),$t.ensureFlagExists("indentAttributes",t),$t.ensureFlagExists("indentInstruction",t),$t.ensureFlagExists("fullTagEmptyElement",t),$t.ensureFlagExists("noQuotesForNativeAttributes",t),$t.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),$t.ensureKeyExists("declaration",t),$t.ensureKeyExists("instruction",t),$t.ensureKeyExists("attributes",t),$t.ensureKeyExists("text",t),$t.ensureKeyExists("comment",t),$t.ensureKeyExists("cdata",t),$t.ensureKeyExists("doctype",t),$t.ensureKeyExists("type",t),$t.ensureKeyExists("name",t),$t.ensureKeyExists("elements",t),t}function Ki(e,t,r){return(!r&&e.spaces?`
452`:"")+Array(t+1).join(e.spaces)}function Nd(e,t,r){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,ln,sn));var n,i,o,a,s=[];for(n in e)e.hasOwnProperty(n)&&e[n]!==null&&e[n]!==void 0&&(a=t.noQuotesForNativeAttributes&&typeof e[n]!="string"?"":'"',i=""+e[n],i=i.replace(/"/g,"&quot;"),o="attributeNameFn"in t?t.attributeNameFn(n,i,ln,sn):n,s.push(t.spaces&&t.indentAttributes?Ki(t,r+1,!1):" "),s.push(o+"="+a+("attributeValueFn"in t?t.attributeValueFn(i,n,ln,sn):i)+a));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&s.push(Ki(t,r,!1)),s.join("")}function A4(e,t,r){return sn=e,ln="xml",t.ignoreDeclaration?"":"<?xml"+Nd(e[t.attributesKey],t,r)+"?>"}function E4(e,t,r){if(t.ignoreInstruction)return"";var n;for(n in e)if(e.hasOwnProperty(n))break;var i="instructionNameFn"in t?t.instructionNameFn(n,e[n],ln,sn):n;if(typeof e[n]=="object")return sn=e,ln=i,"<?"+i+Nd(e[n][t.attributesKey],t,r)+"?>";var o=e[n]?e[n]:"";return"instructionFn"in t&&(o=t.instructionFn(o,n,ln,sn)),"<?"+i+(o?" "+o:"")+"?>"}function N4(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,ln,sn):e)+"-->"}function k4(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,ln,sn):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function L4(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,ln,sn):e)+">"}function Mg(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,ln,sn):e)}function bL(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function xL(e,t,r){sn=e,ln=e.name;var n=[],i="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;n.push("<"+i),e[t.attributesKey]&&n.push(Nd(e[t.attributesKey],t,r));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e.name,e):o=t.fullTagEmptyElement),o?(n.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(n.push(C4(e[t.elementsKey],t,r+1)),sn=e,ln=e.name),n.push(t.spaces&&bL(e,t)?`
453`+Array(r+1).join(t.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function C4(e,t,r,n){return e.reduce(function(i,o){var a=Ki(t,r,n&&!i);switch(o.type){case"element":return i+a+xL(o,t,r);case"comment":return i+a+N4(o[t.commentKey],t);case"doctype":return i+a+L4(o[t.doctypeKey],t);case"cdata":return i+(t.indentCdata?a:"")+k4(o[t.cdataKey],t);case"text":return i+(t.indentText?a:"")+Mg(o[t.textKey],t);case"instruction":var s={};return s[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],i+(t.indentInstruction?a:"")+E4(s,t,r)}},"")}function T4(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function SL(e,t,r,n,i){sn=e,ln=t;var o="elementNameFn"in r?r.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var a=[];if(t){if(a.push("<"+o),typeof e!="object")return a.push(">"+Mg(e,r)+"</"+o+">"),a.join("");
453e[r.attributesKey]&&a.push(Nd(e[r.attributesKey],r,n));var s=T4(e,r,!0)||e[r.attributesKey]&&e[r.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in r?s=r.fullTagEmptyElementFn(t,e):s=r.fullTagEmptyElement),s)a.push(">");else return a.push("/>"),a.join("")}return a.push(P4(e,r,n+1,!1)),sn=e,ln=t,t&&a.push((i?Ki(r,n,!1):"")+"</"+o+">"),a.join("")}function P4(e,t,r,n){var i,o,a,s=[];for(o in e)if(e.hasOwnProperty(o))for(a=vL(e[o])?e[o]:[e[o]],i=0;i<a.length;++i){switch(o){case t.declarationKey:s.push(A4(a[i],t,r));break;case t.instructionKey:s.push((t.indentInstruction?Ki(t,r,n):"")+E4(a[i],t,r));break;case t.attributesKey:case t.parentKey:break;case t.textKey:s.push((t.indentText?Ki(t,r,n):"")+Mg(a[i],t));break;case t.cdataKey:s.push((t.indentCdata?Ki(t,r,n):"")+k4(a[i],t));break;case t.doctypeKey:s.push(Ki(t,r,n)+L4(a[i],t));break;case t.commentKey:s.push(Ki(t,r,n)+N4(a[i],t));break;default:s.push(Ki(t,r,n)+SL(a[i],o,t,r,T4(a[i],t)))}n=n&&!s.length}return s.join("")}var I4=function(e,t){t=wL(t);var r=[];return sn=e,ln="_root_",t.compact?r.push(P4(e,t,0,!0)):(e[t.declarationKey]&&r.push(A4(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&r.push(C4(e[t.elementsKey],t,0,!r.length))),r.join("")},_L=I4,AL=function(e,t){e instanceof Buffer&&(e=e.toString());var r=null;if(typeof e=="string")try{r=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else r=e;return _L(r,t)},EL=_4,NL=yL,kL=I4,LL=AL,R4={xml2js:EL,xml2json:NL,js2xml:kL,json2xml:LL};const zg=e=>{switch(e.type){case void 0:case"element":const t=new TL(e.name,e.attributes),r=e.elements||[];for(const n of r){const i=zg(n);i!==void 0&&t.push(i)}return t;case"text":return e.text;default:return}};class CL extends lt{}class TL extends ze{static fromXmlString(t){const r=R4.xml2js(t,{compact:!1});return zg(r)}constructor(t,r){super(t),r&&this.root.push(new CL(r))}push(t){this.root.push(t)}}class PL extends ze{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}class O4 extends ze{constructor(t,r){super(t),r&&(this.root=r.root)}}const Pn=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},kd=e=>{const t=Pn(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},F4=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},mw=e=>F4(e,1),D4=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},j4=e=>{const t=D4(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},xl=e=>{if(e==="auto")return e;const t=e.charAt(0)==="#"?e.substring(1):e;return F4(t,3)},Ba=e=>typeof e=="string"?D4(e):Pn(e),IL=e=>typeof e=="string"?j4(e):kd(e),Ci=e=>typeof e=="string"?j4(e):kd(e),RL=kd,OL=kd,FL=e=>e.toISOString();class qe extends ze{constructor(t,r=!0){super(t),r!==!0&&this.root.push(new Sr({val:r}))}}class Km extends ze{constructor(t,r){super(t),this.root.push(new Sr({val:IL(r)}))}}class fl extends ze{constructor(t,r){super(t),this.root.push(new Sr({val:r}))}}const Su=(e,t)=>new ha({name:e,attributes:{value:{key:"w:val",value:t}}});class Ug extends ze{constructor(t,r){super(t),this.root.push(new Sr({val:r}))}}class La extends ze{constructor(t,r){super(t),this.root.push(r)}}class ha extends ze{constructor({name:t,attributes:r,children:n}){super(t),r&&this.root.push(new wc(r)),n&&this.root.push(...n)}}const _n={START:"start",CENTER:"center",LEFT:"left"};class DL extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val"})}}class jL extends ze{constructor(t){super("w:jc"),this.root.push(new DL({val:t}))}}class cr extends ze{constructor(t,{color:r,size:n,space:i,style:o}){super(t),this.root.push(new BL({style:o,color:r===void 0?void 0:xl(r),size:n===void 0?void 0:RL(n),space:i===void 0?void 0:OL(i)}))}}class BL extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const qg={SINGLE:"single",NONE:"none"};class ML extends _d{constructor(t){super("w:pBdr"),t.top&&this.root.push(new cr("w:top",t.top)),t.bottom&&this.root.push(new cr("w:bottom",t.bottom)),t.left&&this.root.push(new cr("w:left",t.left)),t.right&&this.root.push(new cr("w:right",t.right))}}class zL extends ze{constructor(){super("w:pBdr");
453const t=new cr("w:bottom",{color:"auto",space:1,style:qg.SINGLE,size:6});this.root.push(t)}}class UL extends ze{constructor({start:t,end:r,left:n,right:i,hanging:o,firstLine:a}){super("w:ind"),this.root.push(new wc({start:{key:"w:start",value:t===void 0?void 0:Ba(t)},end:{key:"w:end",value:r===void 0?void 0:Ba(r)},left:{key:"w:left",value:n===void 0?void 0:Ba(n)},right:{key:"w:right",value:i===void 0?void 0:Ba(i)},hanging:{key:"w:hanging",value:o===void 0?void 0:Ci(o)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:Ci(a)}}))}}let qL=class extends ze{constructor(){super("w:br")}};const Wg={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Hg extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class Uf extends ze{constructor(t){super("w:fldChar"),this.root.push(new Hg({type:Wg.BEGIN,dirty:t}))}}class qf extends ze{constructor(t){super("w:fldChar"),this.root.push(new Hg({type:Wg.SEPARATE,dirty:t}))}}class Wf extends ze{constructor(t){super("w:fldChar"),this.root.push(new Hg({type:Wg.END,dirty:t}))}}const Sl={DEFAULT:"default",PRESERVE:"preserve"};class _l extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{space:"xml:space"})}}class WL extends ze{constructor(){super("w:instrText"),this.root.push(new _l({space:Sl.PRESERVE})),this.root.push("PAGE")}}class HL extends ze{constructor(){super("w:instrText"),this.root.push(new _l({space:Sl.PRESERVE})),this.root.push("NUMPAGES")}}class VL extends ze{constructor(){super("w:instrText"),this.root.push(new _l({space:Sl.PRESERVE})),this.root.push("SECTIONPAGES")}}class $L extends ze{constructor(){super("w:instrText"),this.root.push(new _l({space:Sl.PRESERVE})),this.root.push("SECTION")}}class GL extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class B4 extends ze{constructor({fill:t,color:r,type:n}){super("w:shd"),this.root.push(new GL({fill:t===void 0?void 0:xl(t),color:r===void 0?void 0:xl(r),type:n}))}}class KL extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const XL={DOT:"dot"};class YL extends ze{constructor(t){super("w:em"),this.root.push(new Sr({val:t}))}}class JL extends YL{constructor(t=XL.DOT){super(t)}}class ZL extends ze{constructor(t){super("w:spacing"),this.root.push(new Sr({val:Ba(t)}))}}class QL extends ze{constructor(t){super("w:color"),this.root.push(new Sr({val:xl(t)}))}}class eC extends ze{constructor(t){super("w:highlight"),this.root.push(new Sr({val:t}))}}class tC extends ze{constructor(t){super("w:highlightCs"),this.root.push(new Sr({val:t}))}}const rC=e=>new ha({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}});class gw extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Xm extends ze{constructor(t,r){if(super("w:rFonts"),typeof t=="string"){const n=t;this.root.push(new gw({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:r}))}else{const n=t;this.root.push(new gw(n))}}}let M4=class extends ze{constructor(t){super("w:vertAlign"),this.root.push(new Sr({val:t}))}};class nC extends M4{constructor(){super("superscript")}}class iC extends M4{constructor(){super("subscript")}}const z4={SINGLE:"single"};class oC extends ze{constructor(t=z4.SINGLE,r){super("w:u"),this.root.push(new Sr({val:t,color:r===void 0?void 0:xl(r)}))}}class Ja extends _d{constructor(t){var r,n;if(super("w:rPr"),!t)return;t.noProof!==void 0&&this.push(new qe("w:noProof",t.noProof)),t.bold!==void 0&&this.push(new qe("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new qe("w:bCs",(r=t.boldComplexScript)!=null?r:t.bold)),t.italics!==void 0&&this.push(new qe("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new qe("w:iCs",(n=t.italicsComplexScript)!=null?n:t.italics)),t.underline&&this.push(new oC(t.underline.type,t.underline.color)),t.effect&&this.push(new fl("w:effect",t.effect)),t.emphasisMark&&this.push(new JL(t.emphasisMark.type)),t.color&&this.push(new QL(t.color)),t.kern&&this.push(new Km("w:kern",t.kern)),t.position&&this.push(new fl("w:position",t.position)),t.size!==void 0&&this.push(new Km("w:sz",t.size));const i=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;i&&this.push(new Km("w:szCs",i)),t.rightToLeft!==void 0&&this.push(new qe("w:rtl",t.rightToLeft)),t.smallCaps!==void 0?this.push(new qe("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new qe("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new qe("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new qe("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new iC),t.superScript&&this.push(new nC),t.style&&this.push(new fl("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new Xm(t.font)):"name"in t.font?this.push(new Xm(t.font.name,t.font.hint)):this.push(new Xm(t.font))),t.highlight&&this.push(new eC(t.highlight));const o=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;o&&this.push(new tC(o)),t.characterSpacing&&this.push(new ZL(t.characterSpacing)),t.emboss!==void 0&&this.push(new qe("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new qe("w:imprint",t.imprint)),t.shading&&this.push(new B4(t.shading)),t.revision&&this.push(new aC(t.revision)),t.border&&this.push(new cr("w:bdr",t.border)),t.snapToGri
453d!==void 0&&this.push(new qe("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new qe("w:vanish",t.vanish)),t.specVanish&&this.push(new qe("w:specVanish",t.vanish)),t.scale!==void 0&&this.push(new Ug("w:w",t.scale)),t.language&&this.push(rC(t.language)),t.math&&this.push(new qe("w:oMath",t.math))}push(t){this.root.push(t)}}class aC extends ze{constructor(t){super("w:rPrChange"),this.root.push(new KL({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Ja(t))}}class p0 extends ze{constructor(t){var r;return super("w:t"),typeof t=="string"?(this.root.push(new _l({space:Sl.PRESERVE})),this.root.push(t),this):(this.root.push(new _l({space:(r=t.space)!=null?r:Sl.DEFAULT})),this.root.push(t.text),this)}}const Hf={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Ld extends ze{constructor(t){if(super("w:r"),Be(this,"properties"),this.properties=new Ja(t),this.root.push(this.properties),t.break)for(let r=0;r<t.break;r++)this.root.push(new qL);if(t.children)for(const r of t.children){if(typeof r=="string"){switch(r){case Hf.CURRENT:this.root.push(new Uf),this.root.push(new WL),this.root.push(new qf),this.root.push(new Wf);break;case Hf.TOTAL_PAGES:this.root.push(new Uf),this.root.push(new HL),this.root.push(new qf),this.root.push(new Wf);break;case Hf.TOTAL_PAGES_IN_SECTION:this.root.push(new Uf),this.root.push(new VL),this.root.push(new qf),this.root.push(new Wf);break;case Hf.CURRENT_SECTION:this.root.push(new Uf),this.root.push(new $L),this.root.push(new qf),this.root.push(new Wf);break;default:this.root.push(new p0(r));break}continue}this.root.push(r)}else t.text&&this.root.push(new p0(t.text))}}class Vi extends Ld{constructor(t){if(typeof t=="string")return super({}),this.root.push(new p0(t)),this;super(t)}}let sC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lC=(e,t=21)=>(r=t)=>{let n="",i=r;for(;i--;)n+=e[Math.random()*e.length|0];return n},uC=(e=21)=>{let t="",r=e;for(;r--;)t+=sC[Math.random()*64|0];return t};const _i=e=>Math.floor(e*72*20),Vg=(e=0)=>{let t=e;return()=>++t},cC=()=>Vg(),fC=()=>Vg(1),hC=()=>Vg(),dC=()=>uC().toLowerCase(),_u=e=>lC("1234567890abcdef",e)(),pC=()=>`${_u(8)}-${_u(4)}-${_u(4)}-${_u(4)}-${_u(12)}`;class mC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class gC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class yC extends ze{constructor({id:t,initials:r,author:n,date:i=new Date,children:o}){super("w:comment"),this.root.push(new mC({id:t,initials:r,author:n,date:i.toISOString()}));for(const a of o)this.root.push(a)}}class vC extends ze{constructor({children:t}){super("w:comments"),this.root.push(new gC({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of t)this.root.push(new yC(r))}}class wC extends ze{constructor(){super("w:pageBreakBefore")}}const m0={AUTO:"auto"};class bC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class xC extends ze{constructor(t){super("w:spacing"),this.root.push(new bC(t))}}const yw={HEADING_1:"Heading1",TITLE:"Title"};let Vf=class extends ze{constructor(t){super("w:pStyle"),this.root.push(new Sr({val:t}))}};class SC extends ze{constructor(t){super("w:tabs");for(const r of t)this.root.push(new AC(r))}}const vw={LEFT:"left",RIGHT:"right"};class _C extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class AC extends ze{constructor({type:t,position:r,leader:n}){super("w:tab"),this.root.push(new _C({val:t,pos:r,leader:n}))}}class ww extends ze{constructor(t,r){super("w:numPr"),this.root.push(new EC(r)),this.root.push(new NC(t))}}class EC extends ze{constructor(t){if(super("w:ilvl"),t>
4539)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Sr({val:t}))}}class NC extends ze{constructor(t){super("w:numId"),this.root.push(new Sr({val:typeof t=="string"?`{${t}}`:t}))}}class kC extends ze{constructor(){super(...arguments),Be(this,"fileChild",Symbol())}}class LC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const CC={EXTERNAL:"External"};class TC extends ze{constructor(t,r,n,i){super("Relationship"),this.root.push(new LC({id:t,type:r,target:n,targetMode:i}))}}class PC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class IC extends ze{constructor(t,r,n){super("w:hyperlink"),Be(this,"linkId"),this.linkId=r;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},o=new PC(i);this.root.push(o),t.forEach(a=>{this.root.push(a)})}}class RC extends ze{constructor(t){super("w:externalHyperlink"),this.options=t}}class OC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class FC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{id:"w:id"})}}class DC{constructor(t){Be(this,"bookmarkUniqueNumericId",hC()),Be(this,"start"),Be(this,"children"),Be(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new jC(t.id,r),this.children=t.children,this.end=new BC(r)}}class jC extends ze{constructor(t,r){super("w:bookmarkStart");const n=new OC({name:t,id:r});this.root.push(n)}}class BC extends ze{constructor(t){super("w:bookmarkEnd");const r=new FC({id:t});this.root.push(r)}}class MC extends ze{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new Sr({val:t}))}}class zC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{verticalAlign:"w:val"})}}class UC extends ze{constructor(t){super("w:vAlign"),this.root.push(new zC({verticalAlign:t}))}}const hl={DEFAULT:"default",FIRST:"first",EVEN:"even"};class qC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const bw={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class Ym extends ze{constructor(t,r){super(t),this.root.push(new qC({type:r.type||hl.DEFAULT,id:`rId${r.id}`}))}}class WC extends ze{constructor({space:t,count:r,separate:n,equalWidth:i,children:o}){super("w:cols"),this.root.push(new wc({space:{key:"w:space",value:t===void 0?void 0:Ci(t)},count:{key:"w:num",value:r===void 0?void 0:Pn(r)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&o&&o.forEach(a=>this.addChildElement(a))}}class HC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class VC extends ze{constructor(t,r,n){super("w:docGrid"),this.root.push(new HC({type:n,linePitch:Pn(t),charSpace:r?Pn(r):void 0}))}}const $C=({countBy:e,start:t,restart:r,distance:n})=>new ha({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:Pn(e)},start:{key:"w:start",value:t===void 0?void 0:Pn(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:n===void 0?void 0:Ci(n)}}});class xw extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class GC extends _d{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new xw({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new xw({})),t.pageBorderTop&&this.root.push(new cr("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new cr("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new cr("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new cr("w:right",t.pageBorderRight))}}class KC extends ze{constructor(t,r,n,i,o,a,s){super("w:pgMar"),this.root.push(new wc({top:{key:"w:top",value:Ba(t)},right:{key:"w:right",value:Ci(r)},bottom:{key:"w:bottom",value:Ba(n)},left:{key:"w:left",value:Ci(i)},header:{key:"w:header",value:Ci(o)},footer:{key:"w:footer",value:Ci(a)},gutter:{key:"w:gutter",value:Ci(s)}}))}}class XC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class YC extends ze{constructor({start:t,formatType:r,separator:n}
453){super("w:pgNumType"),this.root.push(new XC({start:t===void 0?void 0:Pn(t),formatType:r,separator:n}))}}const U4={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class JC extends ze{constructor(t,r,n){super("w:pgSz");const i=n===U4.LANDSCAPE,o=Ci(t),a=Ci(r);this.root.push(new wc({width:{key:"w:w",value:i?a:o},height:{key:"w:h",value:i?o:a},orientation:{key:"w:orient",value:n}}))}}class ZC extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val"})}}class QC extends ze{constructor(t){super("w:textDirection"),this.root.push(new ZC({val:t}))}}class e7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val"})}}class t7 extends ze{constructor(t){super("w:type"),this.root.push(new e7({val:t}))}}const Ca={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Jm={WIDTH:11906,HEIGHT:16838,ORIENTATION:U4.PORTRAIT};class r7 extends ze{constructor({page:{size:{width:t=Jm.WIDTH,height:r=Jm.HEIGHT,orientation:n=Jm.ORIENTATION}={},margin:{top:i=Ca.TOP,right:o=Ca.RIGHT,bottom:a=Ca.BOTTOM,left:s=Ca.LEFT,header:l=Ca.HEADER,footer:c=Ca.FOOTER,gutter:h=Ca.GUTTER}={},pageNumbers:p={},borders:g,textDirection:f}={},grid:{linePitch:S=360,charSpace:v,type:k}={},headerWrapperGroup:d={},footerWrapperGroup:y={},lineNumbers:_,titlePage:F,verticalAlign:j,column:re,type:$}={}){super("w:sectPr"),this.addHeaderFooterGroup(bw.HEADER,d),this.addHeaderFooterGroup(bw.FOOTER,y),$&&this.root.push(new t7($)),this.root.push(new JC(t,r,n)),this.root.push(new KC(i,o,a,s,l,c,h)),g&&this.root.push(new GC(g)),_&&this.root.push($C(_)),this.root.push(new YC(p)),re&&this.root.push(new WC(re)),j&&this.root.push(new UC(j)),F!==void 0&&this.root.push(new qe("w:titlePg",F)),f&&this.root.push(new QC(f)),this.root.push(new VC(S,v,k))}addHeaderFooterGroup(t,r){r.default&&this.root.push(new Ym(t,{type:hl.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new Ym(t,{type:hl.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new Ym(t,{type:hl.EVEN,id:r.even.View.ReferenceId}))}}class n7 extends ze{constructor(){super("w:body"),Be(this,"sections",[])}addSection(t){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new r7(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const r=new Ni({}),n=new Al({});return n.push(t),r.addChildElement(n),r}}class xc extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class i7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class o7 extends ze{constructor(t){super("w:background"),this.root.push(new i7({color:t.color===void 0?void 0:xl(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:mw(t.themeShade),themeTint:t.themeTint===void 0?void 0:mw(t.themeTint)}))}}class a7 extends ze{constructor(t){super("w:document"),Be(this,"body"),this.root.push(new xc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new n7,t.background&&this.root.push(new o7(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class s7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{xmlns:"xmlns"})}}class Rl extends ze{constructor(){super("Relationships"),this.root.push(new s7({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,r,n,i){const o=new TC(`rId${t}`,r,n,i);return this.root.push(o),o}get RelationshipCount(){return this.root.length-1}}class q4{constructor(t){Be(this,"document"),Be(this,"relationships"),this.document=new a7(t),this.relationships=new Rl}get View(){return this.document}get Relationships(){return this.relationships}}class l7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val"})}}class u7 extends ze{constructor(){super("w:wordWrap"),this.root.push(new l7({val:0}))}}const c7=e=>{var t,r;return new ha({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)==null?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})};class Al extends _d{constructor(t){var r,n;if(super("w:pPr"),Be(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new Vf(t.heading)),t.bullet&&this.push(new Vf("ListParagraph")),t.numbering&&!t.style&&!t.heading&&(t.numbering.custom||this.push(new Vf("ListParagraph"))),t.style&&this.push(new Vf(t.style)),t.keepNext!==void 0&&this.push(new qe("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new qe("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new wC),t.frame&&this.push(c7(t.frame)),t.widowControl!==void 0&&this.push(new qe("w:widowControl",t.widowControl)),t.bullet&&this.push(new ww(1,t.bullet.level)),t.numbering&&(this.numberingReferences.push({reference:t.numbering.reference,instance:(r=t.numbering.instance)!=null?r:0}),this.push(new ww(`${t.numbering.reference}-${(n=t.numbering.instance)!=null?n:0}`,t.numbering.level))),t.border&&this.push(new ML(t.border)),t.thematicBreak&&this.push(new zL),t.shading&&this.push(new B4(t.shading)),t.wordWrap&&this.push(new u7),t.overflowPunctuation&&this.push(new qe("w:overflowPunct",t.overflowPunctuation));const i=[...t.rightTabStop!==void 0?[{type:vw.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:vw.LEFT,position:t.leftTabStop}]:[]];i.length>0&&this.push(new SC(i)),t.bidirectional!==void 0&&this.push(new qe("w:bidi",t.bidirectional)),t.spacing&&this.push(new xC(t.spacing)),t.indent&&this.push(new UL(t.indent)),t.contextualSpacing!==void 0&&this.push(new qe("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new jL(t.alignment)),t.outlineLevel!==void 0&&this.push(new MC(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new qe("w:suppressLineNumbers",t.suppressLineNumbers)),t.autoSpaceEastAsianText!==void 0&&this.push(new qe("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new Ja(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof q4)for(const r of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(t)}}class Ni extends kC{constructor(t){if(super("w:p"),Be(this,"properties"),typeof t=="string")return this.properties=new Al({}),this.root.push(this.properties),this.root.push(new Vi(t)),this;if(this.properties=new Al(t),this.root.push(this.properties),t.text&&this.root.push(new Vi(t.text)),t.children)for(const r of t.children){if(r instanceof DC){this.root.push(r.start);for(const n of r.children)this.root.push(n);
453this.root.push(r.end);continue}this.root.push(r)}}prepForXml(t){for(const r of this.root)if(r instanceof RC){const n=this.root.indexOf(r),i=new IC(r.options.children,dC());t.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,CC.EXTERNAL),this.root[n]=i}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}const Is={style:qg.NONE,size:0,color:"auto"},Rs={style:qg.SINGLE,size:4,color:"auto"};class f7 extends ze{constructor(t){super("w:tblBorders"),t.top?this.root.push(new cr("w:top",t.top)):this.root.push(new cr("w:top",Rs)),t.left?this.root.push(new cr("w:left",t.left)):this.root.push(new cr("w:left",Rs)),t.bottom?this.root.push(new cr("w:bottom",t.bottom)):this.root.push(new cr("w:bottom",Rs)),t.right?this.root.push(new cr("w:right",t.right)):this.root.push(new cr("w:right",Rs)),t.insideHorizontal?this.root.push(new cr("w:insideH",t.insideHorizontal)):this.root.push(new cr("w:insideH",Rs)),t.insideVertical?this.root.push(new cr("w:insideV",t.insideVertical)):this.root.push(new cr("w:insideV",Rs))}}Be(f7,"NONE",{top:Is,bottom:Is,left:Is,right:Is,insideHorizontal:Is,insideVertical:Is});class h7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class d7 extends ze{constructor(){super("Properties"),this.root.push(new h7({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class p7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{xmlns:"xmlns"})}}class m7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Ho extends ze{constructor(t,r){super("Default"),this.root.push(new m7({contentType:t,extension:r}))}}class g7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class ri extends ze{constructor(t,r){super("Override"),this.root.push(new g7({contentType:t,partName:r}))}}class y7 extends ze{constructor(){super("Types"),this.root.push(new p7({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Ho("image/png","png")),this.root.push(new Ho("image/jpeg","jpeg")),this.root.push(new Ho("image/jpeg","jpg")),this.root.push(new Ho("image/bmp","bmp")),this.root.push(new Ho("image/gif","gif")),this.root.push(new Ho("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Ho("application/xml","xml")),this.root.push(new Ho("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new ri("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new ri("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class v7 extends ze{constructor(t){super("cp:coreProperties"),this.root.push(new xc({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),t.title&&this.root.push(new La("dc:title",t.title)),t.subject&&this.root.push(new La("dc:subject",t.subject)),t.creator&&this.root.push(new La("dc:creator",t.creator)),t.keywords&&this.root.push(new La("cp:keywords",t.keywords)),t.description&&this.root.push(new La("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new La("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new La("cp:revision",String(t.revision))),this.root.push(new Sw("dcterms:created")),this.root.push(new Sw("dcterms:modified"))}}class Sw extends ze{constructor(t){super(t),this.root.push(new xc({type:"dcterms:W3CDTF"})),this.root.push(FL(new Date))}}class w7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class b7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class x7 extends ze{constructor(t,r){super("property"),this.root.push(new b7({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:r.name})),this.root.push(new S7(r.value))}}class S7 extends ze{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class _7 extends ze{constructor(t){super("Properties"),Be(this,"nextId"),Be(this,"properties",[]),this.root.push(new w7({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;
453for(const r of t)this.addCustomProperty(r)}prepForXml(t){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new x7(this.nextId++,t))}}class A7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let E7=class extends O4{constructor(t,r){super("w:ftr",r),Be(this,"refId"),this.refId=t,r||this.root.push(new A7({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class N7{constructor(t,r,n){Be(this,"footer"),Be(this,"relationships"),this.media=t,this.footer=new E7(r,n),this.relationships=new Rl}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class k7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class L7 extends ze{constructor(){super("w:footnoteRef")}}class C7 extends Ld{constructor(){super({style:"FootnoteReference"}),this.root.push(new L7)}}const _w={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Zm extends ze{constructor(t){super("w:footnote"),this.root.push(new k7({type:t.type,id:t.id}));for(let r=0;r<t.children.length;r++){const n=t.children[r];r===0&&n.addRunToFront(new C7),this.root.push(n)}}}class T7 extends ze{constructor(){super("w:continuationSeparator")}}class P7 extends Ld{constructor(){super({}),this.root.push(new T7)}}class I7 extends ze{constructor(){super("w:separator")}}class R7 extends Ld{constructor(){super({}),this.root.push(new I7)}}class O7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class F7 extends ze{constructor(){super("w:footnotes"),this.root.push(new O7({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new Zm({id:-1,type:_w.SEPERATOR,children:[new Ni({spacing:{after:0,line:240,lineRule:m0.AUTO},children:[new R7]})]});this.root.push(t);const r=new Zm({id:0,type:_w.CONTINUATION_SEPERATOR,children:[new Ni({spacing:{after:0,line:240,lineRule:m0.AUTO},children:[new P7]})]});this.root.push(r)}createFootNote(t,r){const n=new Zm({id:t,children:r});this.root.push(n)}}class D7{constructor(){Be(this,"footnotess"),Be(this,"relationships"),this.footnotess=new F7,this.relationships=new Rl}get View(){return this.footnotess}get Relationships(){return this.relationships}}class j7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let B7=class extends O4{constructor(t,r){super("w:hdr",r),Be(this,"refId"),this.refId=t,r||this.root.push(new j7({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class M7{constructor(t,r,n){Be(this,"header"),Be(this,"relationships"),this.media=t,this.header=new B7(r,n),this.relationships=new Rl}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class z7{constructor(){Be(this,"map"),this.map=new Map}addImage(t,r){this.map.set(t,r)}get Array(){return Array.from(this.map.values())}}const po={BULLET:"bullet"};class U7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class q7 extends ze{constructor(t){super("w:numFmt"),this.root.push(new Sr({val:t}))}}class W7 extends ze{constructor(t){super("w:lvlText"),this.root.push(new Sr({val:t}))}}class H7 extends ze{constructor(t){super("w:lvlJc"),this.root.push(new Sr({val:t}))}}class V7 extends ze{constructor(t){super("w:suff"),this.root.push(new Sr({val:t}))}}class $7 extends ze{constructor(){super("w:isLgl")}}class G7 extends ze{constructor({level:t,format:r,text:n,alignment:i=_n.START,start:o=1,style:a,suffix:s,isLegalNumberingStyle:l}){if(super("w:lvl"),Be(this,"paragraphProperties"),Be(this,"runProperties"),this.root.push(new Ug("w:start",Pn(o))),r&&this.root.push(new q7(r)),s&&this.root.push(new V7(s)),l&&this.root.push(new $7),n&&this.root.push(new W7(n)),this.root.push(new H7(i)),this.paragraphProperties=new Al(a&&a.paragraph),this.runProperties=new Ja(a&&a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>
4539)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new U7({ilvl:Pn(t),tentative:1}))}}class K7 extends G7{}class X7 extends ze{constructor(t){super("w:multiLevelType"),this.root.push(new Sr({val:t}))}}class Y7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Aw extends ze{constructor(t,r){super("w:abstractNum"),Be(this,"id"),this.root.push(new Y7({abstractNumId:Pn(t),restartNumberingAfterBreak:0})),this.root.push(new X7("hybridMultilevel")),this.id=t;for(const n of r)this.root.push(new K7(n))}}class J7 extends ze{constructor(t){super("w:abstractNumId"),this.root.push(new Sr({val:t}))}}class Z7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{numId:"w:numId"})}}class Ew extends ze{constructor(t){if(super("w:num"),Be(this,"numId"),Be(this,"reference"),Be(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new Z7({numId:Pn(t.numId)})),this.root.push(new J7(Pn(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(const r of t.overrideLevels)this.root.push(new eT(r.num,r.start))}}class Q7 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{ilvl:"w:ilvl"})}}class eT extends ze{constructor(t,r){super("w:lvlOverride"),this.root.push(new Q7({ilvl:t})),r!==void 0&&this.root.push(new rT(r))}}class tT extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val"})}}class rT extends ze{constructor(t){super("w:startOverride"),this.root.push(new tT({val:t}))}}class nT extends ze{constructor(t){super("w:numbering"),Be(this,"abstractNumberingMap",new Map),Be(this,"concreteNumberingMap",new Map),Be(this,"referenceConfigMap",new Map),Be(this,"abstractNumUniqueNumericId",cC()),Be(this,"concreteNumUniqueNumericId",fC()),this.root.push(new xc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new Aw(this.abstractNumUniqueNumericId(),[{level:0,format:po.BULLET,text:"●",alignment:_n.LEFT,style:{paragraph:{indent:{left:_i(.5),hanging:_i(.25)}}}},{level:1,format:po.BULLET,text:"○",alignment:_n.LEFT,style:{paragraph:{indent:{left:_i(1),hanging:_i(.25)}}}},{level:2,format:po.BULLET,text:"■",alignment:_n.LEFT,style:{paragraph:{indent:{left:2160,hanging:_i(.25)}}}},{level:3,format:po.BULLET,text:"●",alignment:_n.LEFT,style:{paragraph:{indent:{left:2880,hanging:_i(.25)}}}},{level:4,format:po.BULLET,text:"○",alignment:_n.LEFT,style:{paragraph:{indent:{left:3600,hanging:_i(.25)}}}},{level:5,format:po.BULLET,text:"■",alignment:_n.LEFT,style:{paragraph:{indent:{left:4320,hanging:_i(.25)}}}},{level:6,format:po.BULLET,text:"●",alignment:_n.LEFT,style:{paragraph:{indent:{left:5040,hanging:_i(.25)}}}},{level:7,format:po.BULLET,text:"●",alignment:_n.LEFT,style:{paragraph:{indent:{left:5760,hanging:_i(.25)}}}},{level:8,format:po.BULLET,text:"●",alignment:_n.LEFT,style:{paragraph:{indent:{left:6480,hanging:_i(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Ew({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const n of t.config)this.abstractNumberingMap.set(n.reference,new Aw(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}
453prepForXml(t){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(t)}createConcreteNumberingInstance(t,r){const n=this.abstractNumberingMap.get(t);if(!n)return;const i=`${t}-${r}`;if(this.concreteNumberingMap.has(i))return;const o=this.referenceConfigMap.get(t),a=o&&o[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:t,instance:r,overrideLevels:[a&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new Ew(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class iT extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class oT extends ze{constructor(t){super("w:compatSetting"),this.root.push(new iT({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class aT extends ze{constructor(t){super("w:compat"),t.version&&this.root.push(new oT(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new qe("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new qe("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new qe("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new qe("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new qe("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new qe("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new qe("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new qe("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new qe("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new qe("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new qe("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new qe("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new qe("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new qe("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new qe("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new qe("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new qe("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new qe("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new qe("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new qe("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new qe("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new qe("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new qe("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new qe("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new qe("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new qe("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new qe("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new qe("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new qe("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new qe("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new qe("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new qe("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new qe("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new qe("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new qe("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new qe("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new qe("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new qe("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new qe("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new qe("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new qe("w:u
453seWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new qe("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new qe("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new qe("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new qe("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new qe("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new qe("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new qe("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new qe("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new qe("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new qe("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new qe("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new qe("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new qe("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new qe("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new qe("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new qe("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new qe("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new qe("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new qe("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new qe("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new qe("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new qe("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new qe("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new qe("w:cachedColBalance",t.cachedColumnBalance))}}class sT extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class lT extends ze{constructor(t){var r,n,i,o;super("w:settings"),this.root.push(new sT({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}
453)),this.root.push(new qe("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new qe("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new qe("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new qe("w:updateFields",t.updateFields)),t.defaultTabStop!==void 0&&this.root.push(new Ug("w:defaultTabStop",t.defaultTabStop)),this.root.push(new aT(cc(Tt({},(r=t.compatibility)!=null?r:{}),{version:(o=(i=(n=t.compatibility)==null?void 0:n.version)!=null?i:t.compatibilityModeVersion)!=null?o:15})))}}class W4 extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{val:"w:val"})}}class uT extends ze{constructor(t){super("w:name"),this.root.push(new W4({val:t}))}}class cT extends ze{constructor(t){super("w:uiPriority"),this.root.push(new W4({val:Pn(t)}))}}class fT extends lt{constructor(){super(...arguments),Be(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class H4 extends ze{constructor(t,r){super("w:style"),this.root.push(new fT(t)),r.name&&this.root.push(new uT(r.name)),r.basedOn&&this.root.push(new fl("w:basedOn",r.basedOn)),r.next&&this.root.push(new fl("w:next",r.next)),r.link&&this.root.push(new fl("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new cT(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new qe("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new qe("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new qe("w:qFormat",r.quickFormat))}}class Cd extends H4{constructor(t){super({type:"paragraph",styleId:t.id},t),Be(this,"paragraphProperties"),Be(this,"runProperties"),this.paragraphProperties=new Al(t.paragraph),this.runProperties=new Ja(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Td extends H4{constructor(t){super({type:"character",styleId:t.id},Tt({uiPriority:99,unhideWhenUsed:!0},t)),Be(this,"runProperties"),this.runProperties=new Ja(t.run),this.root.push(this.runProperties)}}class ga extends Cd{constructor(t){super(Tt({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class hT extends ga{constructor(t){super(Tt({id:"Title",name:"Title"},t))}}class dT extends ga{constructor(t){super(Tt({id:"Heading1",name:"Heading 1"},t))}}class pT extends ga{constructor(t){super(Tt({id:"Heading2",name:"Heading 2"},t))}}class mT extends ga{constructor(t){super(Tt({id:"Heading3",name:"Heading 3"},t))}}class gT extends ga{constructor(t){super(Tt({id:"Heading4",name:"Heading 4"},t))}}class yT extends ga{constructor(t){super(Tt({id:"Heading5",name:"Heading 5"},t))}}class vT extends ga{constructor(t){super(Tt({id:"Heading6",name:"Heading 6"},t))}}class wT extends ga{constructor(t){super(Tt({id:"Strong",name:"Strong"},t))}}class bT extends Cd{constructor(t){super(Tt({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class xT extends Cd{constructor(t){super(Tt({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:m0.AUTO}},run:{size:20}},t))}}class ST extends Td{constructor(t){super(Tt({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class _T extends Td{constructor(t){super(Tt({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class AT extends Td{constructor(t){super(Tt({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:z4.SINGLE}}},t))}}class g0 extends ze{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const r of t.importedStyles)this.root.push(r);if(t.paragraphStyles)for(const r of t.paragraphStyles)this.root.push(new Cd(r));if(t.characterStyles)for(const r of t.characterStyles)this.root.push(new Td(r))}}class ET extends ze{constructor(t){super("w:pPrDefault"),this.root.push(new Al(t))}}class NT extends ze{constructor(t){super("w:rPrDefault"),this.root.push(new Ja(t))}}class kT extends ze{constructor(t){super("w:docDefaults"),Be(this,"runPropertiesDefaults"),Be(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new NT(t.run),this.paragraphPropertiesDefaults=new ET(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class LT{newInstance(t){const r=R4.xml2js(t,{compact:!1});let n;for(const a of r.elements||[])a.name==="w:styles"&&(n=a);if(n===void 0)throw new Error("can not find styles element");const i=n.elements||[];return new g0({initialStyles:new PL(n.attributes),importedStyles:i.map(a=>zg(a))})}}class Nw{newInstance(t={}){var r;return{initialStyles:new xc({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new kT((r=t.document)!=null?r:{}),new hT(Tt({run:{size:56}},t.title)),new dT(Tt({run:{color:"2E74B5",size:32}},t.heading1)),new pT(Tt({run:{color:"2E74B5",size:26}}
453,t.heading2)),new mT(Tt({run:{color:"1F4D78",size:24}},t.heading3)),new gT(Tt({run:{color:"2E74B5",italics:!0}},t.heading4)),new yT(Tt({run:{color:"2E74B5"}},t.heading5)),new vT(Tt({run:{color:"1F4D78"}},t.heading6)),new wT(Tt({run:{bold:!0}},t.strong)),new bT(t.listParagraph||{}),new AT(t.hyperlink||{}),new ST(t.footnoteReference||{}),new xT(t.footnoteText||{}),new _T(t.footnoteTextChar||{})]}}}const $f=({id:e,fontKey:t,subsetted:r},n)=>new ha({name:n,attributes:Tt({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new qe("w:subsetted",r)]:[]]}),CT=({name:e,altName:t,panose1:r,charset:n,family:i,notTrueType:o,pitch:a,sig:s,embedRegular:l,embedBold:c,embedItalic:h,embedBoldItalic:p})=>new ha({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[Su("w:altName",t)]:[],...r?[Su("w:panose1",r)]:[],...n?[Su("w:charset",n)]:[],Su("w:family",i),...o?[new qe("w:notTrueType",o)]:[],Su("w:pitch",a),...s?[new ha({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...l?[$f(l,"w:embedRegular")]:[],...c?[$f(c,"w:embedBold")]:[],...h?[$f(h,"w:embedItalic")]:[],...p?[$f(p,"w:embedBoldItalic")]:[]]}),TT=({name:e,index:t,fontKey:r,characterSet:n})=>CT({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),PT=e=>new ha({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,r)=>TT({name:t.name,index:r+1,fontKey:t.fontKey}))});class IT{constructor(t){Be(this,"fontTable"),Be(this,"relationships"),Be(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(r=>cc(Tt({},r),{fontKey:pC()})),this.fontTable=PT(this.fontOptionsWithKey),this.relationships=new Rl;for(let r=0;r<t.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${t[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class RT{constructor(t){Be(this,"currentRelationshipId",1),Be(this,"documentWrapper"),Be(this,"headers",[]),Be(this,"footers",[]),Be(this,"coreProperties"),Be(this,"numbering"),Be(this,"media"),Be(this,"fileRelationships"),Be(this,"footnotesWrapper"),Be(this,"settings"),Be(this,"contentTypes"),Be(this,"customProperties"),Be(this,"appProperties"),Be(this,"styles"),Be(this,"comments"),Be(this,"fontWrapper");var r,n,i,o,a,s,l,c;if(this.coreProperties=new v7(cc(Tt({},t),{creator:(r=t.creator)!=null?r:"Un-named",revision:(n=t.revision)!=null?n:1,lastModifiedBy:(i=t.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new nT(t.numbering?t.numbering:{config:[]}),this.comments=new vC((o=t.comments)!=null?o:{children:[]}),this.fileRelationships=new Rl,this.customProperties=new _7((a=t.customProperties)!=null?a:[]),this.appProperties=new d7,this.footnotesWrapper=new D7,this.contentTypes=new y7,this.documentWrapper=new q4({background:t.background}),this.settings=new lT({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(s=t.features)==null?void 0:s.trackRevisions,updateFields:(l=t.features)==null?void 0:l.updateFields,defaultTabStop:t.defaultTabStop}),this.media=new z7,t.externalStyles){const h=new LT;this.styles=h.newInstance(t.externalStyles)}else if(t.styles){const p=new Nw().newInstance(t.styles.default);this.styles=new g0(Tt(Tt({},p),t.styles))}else{const h=new Nw;this.styles=new g0(h.newInstance())}this.addDefaultRelationships();for(const h of t.sections)this.addSection(h);if(t.footnotes)for(const h in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(h),t.footnotes[h].children);this.fontWrapper=new IT((c=t.fonts)!=null?c:[])}addSection({headers:t={},footers:r={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(cc(Tt({},i),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(const o of n)this.documentWrapper.View.add(o)}createHeader(t){const r=new M7(this.media,this.currentRelationshipId++);for(const n of t.options.children)r.add(n);return this.addHeaderToDocument(r),r}createFooter(t){const r=new N7(this.media,this.currentRelationshipId++);for(const n of t.options.children)r.add(n);return this.addFooterToDocument(r),r}addHeaderToDocument(t,r=hl.DEFAULT){this.headers.push({header:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,r=hl.DEFAULT){this.footers.push({footer:t,type:r}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function Gf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var V4={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(c,h){if(!i[c]){if(!n[c]){var p=typeof Gf=="function"&&Gf;if(!h&&p)return p(c,!0);if(s)return s(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var f=i[c]={exports:{}};n[c][0].call(f.exports,function(S){var v=n[c][1][S];return a(v||S)},f,f.exports,r,n,i,o)}return i[c].exports}for(var s=typeof Gf=="function"&&Gf,l=0;l<o.length;l++)a(o[l]);return a}({1:[function(r,n,i){var o=r("./utils"),a=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,717 bytes, line 453
453+/=";i.encode=function(l){for(var c,h,p,g,f,S,v,k=[],d=0,y=l.length,_=y,F=o.getTypeOf(l)!=="string";d<l.length;)_=y-d,p=F?(c=l[d++],h=d<y?l[d++]:0,d<y?l[d++]:0):(c=l.charCodeAt(d++),h=d<y?l.charCodeAt(d++):0,d<y?l.charCodeAt(d++):0),g=c>>2,f=(3&c)<<4|h>>4,S=1<_?(15&h)<<2|p>>6:64,v=2<_?63&p:64,k.push(s.charAt(g)+s.charAt(f)+s.charAt(S)+s.charAt(v));return k.join("")},i.decode=function(l){var c,h,p,g,f,S,v=0,k=0,d="data:";if(l.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var y,_=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&_--,l.charAt(l.length-2)===s.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=a.uint8array?new Uint8Array(0|_):new Array(0|_);v<l.length;)c=s.indexOf(l.charAt(v++))<<2|(g=s.indexOf(l.charAt(v++)))>>4,h=(15&g)<<4|(f=s.indexOf(l.charAt(v++)))>>2,p=(3&f)<<6|(S=s.indexOf(l.charAt(v++))),y[k++]=c,f!==64&&(y[k++]=h),S!==64&&(y[k++]=p);return y}},{"./support":30,"./utils":32}],2:[function(r,n,i){var o=r("./external"),a=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function c(h,p,g,f,S){this.compressedSize=h,this.uncompressedSize=p,this.crc32=g,this.compression=f,this.compressedContent=S}c.prototype={getContentWorker:function(){var h=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),p=this;return h.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(h,p,g){return h.pipe(new s).pipe(new l("uncompressedSize")).pipe(p.compressWorker(g)).pipe(new l("compressedSize")).withStreamInfo("compression",p)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,i){var o=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,i){var o=r("./utils"),a=function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var h=0;h<8;h++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l}();n.exports=function(s,l){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(c,h,p,g){var f=a,S=g+p;c^=-1;for(var v=g;v<S;v++)c=c>>>8^f[255&(c^h[v])];return-1^c}(0|l,s,s.length,0):function(c,h,p,g){var f=a,S=g+p;c^=-1;for(var v=g;v<S;v++)c=c>>>8^f[255&(c^h.charCodeAt(v))];return-1^c}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(r,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,n,i){var o=null;o=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:o}},{lie:37}],7:[function(r,n,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=r("pako"),s=r("./utils"),l=r("./stream/GenericWorker"),c=o?"uint8array":"array";function h(p,g){l.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=g,this.meta={}}i.magic="\b\0",s.inherits(h,l),h.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,p.data),!1)},h.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(g){p.push({data:g,meta:p.meta})}},i.compressWorker=function(p){return new h("Deflate",p)},i.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,i){function o(f,S){var v,k="";for(v=0;v<S;v++)k+=String.fromCharCode(255&f),f>>>=8;return k}function a(f,S,v,k,d,y){var _,F,j=f.file,re=f.compression,$=y!==c.utf8encode,M=s.transformTo("string",y(j.name)),D=s.transformTo("string",c.utf8encode(j.name)),he=j.comment,H=s.transformTo("string",y(he)),R=s.transformTo("string",c.utf8encode(he)),X=D.length!==j.name.length,T=R.length!==he.length,se="",ye="",ae="",ue=j.dir,oe=j.date,me={crc32:0,compressedSize:0,uncompressedSize:0};
vendor: 4,607 bytes, lines 453-454
453S&&!v||(me.crc32=f.crc32,me.compressedSize=f.compressedSize,me.uncompressedSize=f.uncompressedSize);var de=0;S&&(de|=8),$||!X&&!T||(de|=2048);var A=0,B=0;ue&&(A|=16),d==="UNIX"?(B=798,A|=function(ee,V){var C=ee;return ee||(C=V?16893:33204),(65535&C)<<16}(j.unixPermissions,ue)):(B=20,A|=function(ee){return 63&(ee||0)}(j.dosPermissions)),_=oe.getUTCHours(),_<<=6,_|=oe.getUTCMinutes(),_<<=5,_|=oe.getUTCSeconds()/2,F=oe.getUTCFullYear()-1980,F<<=4,F|=oe.getUTCMonth()+1,F<<=5,F|=oe.getUTCDate(),X&&(ye=o(1,1)+o(h(M),4)+D,se+="up"+o(ye.length,2)+ye),T&&(ae=o(1,1)+o(h(H),4)+R,se+="uc"+o(ae.length,2)+ae);var z="";return z+=`
454\0`,z+=o(de,2),z+=re.magic,z+=o(_,2),z+=o(F,2),z+=o(me.crc32,4),z+=o(me.compressedSize,4),z+=o(me.uncompressedSize,4),z+=o(M.length,2),z+=o(se.length,2),{fileRecord:p.LOCAL_FILE_HEADER+z+M+se,dirRecord:p.CENTRAL_FILE_HEADER+o(B,2)+z+o(H.length,2)+"\0\0\0\0"+o(A,4)+o(k,4)+M+se+H}}var s=r("../utils"),l=r("../stream/GenericWorker"),c=r("../utf8"),h=r("../crc32"),p=r("../signature");function g(f,S,v,k){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=S,this.zipPlatform=v,this.encodeFileName=k,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(g,l),g.prototype.push=function(f){var S=f.meta.percent||0,v=this.entriesCount,k=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:v?(S+100*(v-k-1))/v:100}}))},g.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var S=this.streamFiles&&!f.file.dir;if(S){var v=a(f,S,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},g.prototype.closedSource=function(f){this.accumulate=!1;var S=this.streamFiles&&!f.file.dir,v=a(f,S,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),S)this.push({data:function(k){return p.DATA_DESCRIPTOR+o(k.crc32,4)+o(k.compressedSize,4)+o(k.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},g.prototype.flush=function(){for(var f=this.bytesWritten,S=0;S<this.dirRecords.length;S++)this.push({data:this.dirRecords[S],meta:{percent:100}});var v=this.bytesWritten-f,k=function(d,y,_,F,j){var re=s.transformTo("string",j(F));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(d,2)+o(d,2)+o(y,4)+o(_,4)+o(re.length,2)+re}(this.dirRecords.length,v,f,this.zipComment,this.encodeFileName);this.push({data:k,meta:{percent:100}})},g.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},g.prototype.registerPrevious=function(f){this._sources.push(f);var S=this;return f.on("data",function(v){S.processChunk(v)}),f.on("end",function(){S.closedSource(S.previous.streamInfo),S._sources.length?S.prepareNextSource():S.end()}),f.on("error",function(v){S.error(v)}),this},g.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},g.prototype.error=function(f){var S=this._sources;if(!l.prototype.error.call(this,f))return!1;for(var v=0;v<S.length;v++)try{S[v].error(f)}catch{}return!0},g.prototype.lock=function(){l.prototype.lock.call(this);for(var f=this._sources,S=0;S<f.length;S++)f[S].lock()},n.exports=g},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,i){var o=r("../compressions"),a=r("./ZipFileWorker");i.generateWorker=function(s,l,c){var h=new a(l.streamFiles,c,l.platform,l.encodeFileName),p=0;try{s.forEach(function(g,f){p++;var S=function(y,_){var F=y||_,j=o[F];if(!j)throw new Error(F+" is not a valid compression method !");return j}(f.options.compression,l.compression),v=f.options.compressionOptions||l.compressionOptions||{},k=f.dir,d=f.date;f._compressWorker(S,v).withStreamInfo("file",{name:g,dir:k,date:d,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(h)}),h.entriesCount=p}catch(g){h.error(g)}return h}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,i){function o(){if(!(this instanceof o))return new o;
vendor: 41,135 bytes, line 454
454if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=r("./object")).loadAsync=r("./load"),o.support=r("./support"),o.defaults=r("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=r("./external"),n.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,i){var o=r("./utils"),a=r("./external"),s=r("./utf8"),l=r("./zipEntries"),c=r("./stream/Crc32Probe"),h=r("./nodejsUtils");function p(g){return new a.Promise(function(f,S){var v=g.decompressed.getContentWorker().pipe(new c);v.on("error",function(k){S(k)}).on("end",function(){v.streamInfo.crc32!==g.decompressed.crc32?S(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}n.exports=function(g,f){var S=this;return f=o.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),h.isNode&&h.isStream(g)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",g,!0,f.optimizedBinaryString,f.base64).then(function(v){var k=new l(f);return k.load(v),k}).then(function(v){var k=[a.Promise.resolve(v)],d=v.files;if(f.checkCRC32)for(var y=0;y<d.length;y++)k.push(p(d[y]));return a.Promise.all(k)}).then(function(v){for(var k=v.shift(),d=k.files,y=0;y<d.length;y++){var _=d[y],F=_.fileNameStr,j=o.resolve(_.fileNameStr);S.file(j,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:f.createFolders}),_.dir||(S.file(j).unsafeOriginalName=F)}return k.zipComment.length&&(S.comment=k.zipComment),S})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,i){var o=r("../utils"),a=r("../stream/GenericWorker");function s(l,c){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}o.inherits(s,a),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(h){c.push({data:h,meta:{percent:0}})}).on("error",function(h){c.isPaused?this.generatedError=h:c.error(h)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,i){var o=r("readable-stream").Readable;function a(s,l,c){o.call(this,l),this._helper=s;var h=this;s.on("data",function(p,g){h.push(p)||h._helper.pause(),c&&c(g)}).on("error",function(p){h.emit("error",p)}).on("end",function(){h.push(null)})}r("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(r,n,i){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(r,n,i){function o(j,re,$){var M,D=s.getTypeOf(re),he=s.extend($||{},h);he.date=he.date||new Date,he.compression!==null&&(he.compression=he.compression.toUpperCase()),typeof he.unixPermissions=="string"&&(he.unixPermissions=parseInt(he.unixPermissions,8)),he.unixPermissions&&16384&he.unixPermissions&&(he.dir=!0),he.dosPermissions&&16&he.dosPermissions&&(he.dir=!0),he.dir&&(j=d(j)),he.createFolders&&(M=k(j))&&y.call(this,M,!0);var H=D==="string"&&he.binary===!1&&he.base64===!1;$&&$.binary!==void 0||(he.binary=!H),(re instanceof p&&re.uncompressedSize===0||he.dir||!re||re.length===0)&&(he.base64=!1,he.binary=!0,re="",he.compression="STORE",D="string");var R=null;R=re instanceof p||re instanceof l?re:S.isNode&&S.isStream(re)?new v(j,re):s.prepareContent(j,re,he.binary,he.optimizedBinaryString,he.base64);var X=new g(j,R,he);this.files[j]=X}var a=r("./utf8"),s=r("./utils"),l=r("./stream/GenericWorker"),c=r("./stream/StreamHelper"),h=r("./defaults"),p=r("./compressedObject"),g=r("./zipObject"),f=r("./generate"),S=r("./nodejsUtils"),v=r("./nodejs/NodejsStreamInputAdapter"),k=function(j){j.slice(-1)==="/"&&(j=j.substring(0,j.length-1));var re=j.lastIndexOf("/");return 0<re?j.substring(0,re):""},d=function(j){return j.slice(-1)!=="/"&&(j+="/"),j},y=function(j,re){return re=re!==void 0?re:h.createFolders,j=d(j),this.files[j]||o.call(this,j,null,{dir:!0,createFolders:re}),this.files[j]};function _(j){return Object.prototype.toString.call(j)==="[object RegExp]"}var F={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(j){var re,$,M;for(re in this.files)M=this.files[re],($=re.slice(this.root.length,re.length))&&re.slice(0,this.root.length)===this.root&&j($,M)},filter:function(j){var re=[];return this.forEach(function($,M){j($,M)&&re.push(M)}),re},file:function(j,re,$){if(arguments.length!==1)return j=this.root+j,o.call(this,j,re,$),this;if(_(j)){var M=j;return this.filter(function(he,H){return!H.dir&&M.test(he)})}var D=this.files[this.root+j];return D&&!D.dir?D:null},folder:function(j){if(!j)return this;if(_(j))return this.filter(function(D,he){return he.dir&&j.test(D)});var re=this.root+j,$=y.call(this,re),M=this.clone();return M.root=$.name,M},remove:function(j){j=this.root+j;var re=this.files[j];if(re||(j.slice(-1)!=="/"&&(j+="/"),re=this.files[j]),re&&!re.dir)delete this.files[j];else for(var $=this.filter(function(D,he){return he.name.slice(0,j.length)===j}),M=0;M<$.length;M++)delete this.files[$[M].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(j){var re,$={};try{if(($=s.extend(j||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring"&&($.type="string"),!$.type)throw new Error("No output type specified.");s.checkSupport($.type),$.platform!=="darwin"&&$.platform!=="freebsd"&&$.platform!=="linux"&&$.platform!=="sunos"||($.platform="UNIX"),$.platform==="win32"&&($.platform="DOS");var M=$.comment||this.comment||"";re=f.generateWorker(this,$,M)}catch(D){(re=new l("error")).error(D)}return new c(re,$.type||"string",$.mimeType)},generateAsync:function(j,re){return this.generateInternalStream(j).accumulate(re)},generateNodeStream:function(j,re){return(j=j||{}).type||(j.type="nodebuffer"),this.generateInternalStream(j).toNodejsStream(re)}};n.exports=F},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,i){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,i){var o=r("./DataReader");function a(s){o.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}r("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),h=s.charCodeAt(2),p=s.charCodeAt(3),g=this.length-4;0<=g;--g)if(this.data[g]===l&&this.data[g+1]===c&&this.data[g+2]===h&&this.data[g+3]===p)return g-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),h=s.charCodeAt(2),p=s.charCodeAt(3),g=this.readData(4);return l===g[0]&&c===g[1]&&h===g[2]&&p===g[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./DataReader":18}],18:[function(r,n,i){var o=r("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=a},{"../utils":32}],19:[function(r,n,i){var o=r("./Uint8ArrayReader");function a(s){o.call(this,s)}r("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,i){var o=r("./DataReader");function a(s){o.call(this,s)}r("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(r,n,i){var o=r("./ArrayReader");function a(s){o.call(this,s)}r("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,i){var o=r("../utils"),a=r("../support"),s=r("./ArrayReader"),l=r("./StringReader"),c=r("./NodeBufferReader"),h=r("./Uint8ArrayReader");n.exports=function(p){var g=o.getTypeOf(p);return o.checkSupport(g),g!=="string"||a.uint8array?g==="nodebuffer"?new c(p):a.uint8array?new h(o.transformTo("uint8array",p)):new s(o.transformTo("array",p)):new l(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,i){i.LOCAL_FILE_HEADER="PK��",i.CENTRAL_FILE_HEADER="PK��",i.CENTRAL_DIRECTORY_END="PK��",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK��",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,i){var o=r("./GenericWorker"),a=r("../utils");function s(l){o.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,o),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,i){var o=r("./GenericWorker"),a=r("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,o),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,i){var o=r("../utils"),a=r("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(s,a),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,i){var o=r("../utils"),a=r("./GenericWorker");function s(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(h){c.dataIsReady=!0,c.data=h,c.max=h&&h.length||0,c.type=o.getTypeOf(h),c.isPaused||c._tickAndRepeat()},function(h){c.error(h)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,i){function o(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},n.exports=o},{}],29:[function(r,n,i){var o=r("../utils"),a=r("./ConvertWorker"),s=r("./GenericWorker"),l=r("../base64"),c=r("../support"),h=r("../external"),p=null;if(c.nodestream)try{p=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function g(S,v){return new h.Promise(function(k,d){var y=[],_=S._internalType,F=S._outputType,j=S._mimeType;S.on("data",function(re,$){y.push(re),v&&v($)}).on("error",function(re){y=[],d(re)}).on("end",function(){try{var re=function($,M,D){switch($){case"blob":return o.newBlob(o.transformTo("arraybuffer",M),D);case"base64":return l.encode(M);default:return o.transformTo($,M)}}(F,function($,M){var D,he=0,H=null,R=0;for(D=0;D<M.length;D++)R+=M[D].length;switch($){case"string":return M.join("");case"array":return Array.prototype.concat.apply([],M);case"uint8array":for(H=new Uint8Array(R),D=0;D<M.length;D++)H.set(M[D],he),he+=M[D].length;return H;case"nodebuffer":return Buffer.concat(M);default:throw new Error("concat : unsupported type '"+$+"'")}}(_,y),j);k(re)}catch($){d($)}y=[]}).resume()})}function f(S,v,k){var d=v;switch(v){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=v,this._mimeType=k,o.checkSupport(d),this._worker=S.pipe(new a(d)),S.lock()}catch(y){this._worker=new s("error"),this._worker.error(y)}}f.prototype={accumulate:function(S){return g(this,S)},on:function(S,v){var k=this;return S==="data"?this._worker.on(S,function(d){v.call(k,d.data,d.meta)}):this._worker.on(S,function(){o.delay(v,arguments,k)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(S){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},S)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,i){for(var o=r("./utils"),a=r("./support"),s=r("./nodejsUtils"),l=r("./stream/GenericWorker"),c=new Array(256),h=0;h<256;h++)c[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;c[254]=c[254]=1;function p(){l.call(this,"utf-8 decode"),this.leftOver=null}function g(){l.call(this,"utf-8 encode")}i.utf8encode=function(f){return a.nodebuffer?s.newBufferFrom(f,"utf-8"):function(S){var v,k,d,y,_,F=S.length,j=0;for(y=0;y<F;y++)(64512&(k=S.charCodeAt(y)))==55296&&y+1<F&&(64512&(d=S.charCodeAt(y+1)))==56320&&(k=65536+(k-55296<<10)+(d-56320),y++),j+=k<128?1:k<2048?2:k<65536?3:4;for(v=a.uint8array?new Uint8Array(j):new Array(j),y=_=0;_<j;y++)(64512&(k=S.charCodeAt(y)))==55296&&y+1<F&&(64512&(d=S.charCodeAt(y+1)))==56320&&(k=65536+(k-55296<<10)+(d-56320),y++),k<128?v[_++]=k:(k<2048?v[_++]=192|k>>>6:(k<65536?v[_++]=224|k>>>12:(v[_++]=240|k>>>18,v[_++]=128|k>>>12&63),v[_++]=128|k>>>6&63),v[_++]=128|63&k);return v}(f)},i.utf8decode=function(f){return a.nodebuffer?o.transformTo("nodebuffer",f).toString("utf-8"):function(S){var v,k,d,y,_=S.length,F=new Array(2*_);for(v=k=0;v<_;)if((d=S[v++])<128)F[k++]=d;else if(4<(y=c[d]))F[k++]=65533,v+=y-1;else{for(d&=y===2?31:y===3?15:7;1<y&&v<_;)d=d<<6|63&S[v++],y--;1<y?F[k++]=65533:d<65536?F[k++]=d:(d-=65536,F[k++]=55296|d>>10&1023,F[k++]=56320|1023&d)}return F.length!==k&&(F.subarray?F=F.subarray(0,k):F.length=k),o.applyFromCharCode(F)}(f=o.transformTo(a.uint8array?"uint8array":"array",f))},o.inherits(p,l),p.prototype.processChunk=function(f){var S=o.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var v=S;(S=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),S.set(v,this.leftOver.length)}else S=this.leftOver.concat(S);this.leftOver=null}var k=function(y,_){var F;for((_=_||y.length)>y.length&&(_=y.length),F=_-1;0<=F&&(192&y[F])==128;)F--;return F<0||F===0?_:F+c[y[F]]>_?F:_}(S),d=S;k!==S.length&&(a.uint8array?(d=S.subarray(0,k),this.leftOver=S.subarray(k,S.length)):(d=S.slice(0,k),this.leftOver=S.slice(k,S.length))),this.push({data:i.utf8decode(d),meta:f.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=p,o.inherits(g,l),g.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=g},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,i){var o=r("./support"),a=r("./base64"),s=r("./nodejsUtils"),l=r("./external");function c(v){return v}function h(v,k){for(var d=0;d<v.length;++d)k[d]=255&v.charCodeAt(d);return k}r("setimmediate"),i.newBlob=function(v,k){i.checkSupport("blob");try{return new Blob([v],{type:k})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(v),d.getBlob(k)}catch{throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(v,k,d){var y=[],_=0,F=v.length;if(F<=d)return String.fromCharCode.apply(null,v);for(;_<F;)k==="array"||k==="nodebuffer"?y.push(String.fromCharCode.apply(null,v.slice(_,Math.min(_+d,F)))):y.push(String.fromCharCode.apply(null,v.subarray(_,Math.min(_+d,F)))),_+=d;return y.join("")},stringifyByChar:function(v){for(var k="",d=0;d<v.length;d++)k+=String.fromCharCode(v[d]);return k},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function g(v){var k=65536,d=i.getTypeOf(v),y=!0;if(d==="uint8array"?y=p.applyCanBeUsed.uint8array:d==="nodebuffer"&&(y=p.applyCanBeUsed.nodebuffer),y)for(;1<k;)try{return p.stringifyByChunk(v,d,k)}catch{k=Math.floor(k/2)}return p.stringifyByChar(v)}function f(v,k){for(var d=0;d<v.length;d++)k[d]=v[d];return k}i.applyFromCharCode=g;var S={};S.string={string:c,array:function(v){return h(v,new Array(v.length))},arraybuffer:function(v){return S.string.uint8array(v).buffer},uint8array:function(v){return h(v,new Uint8Array(v.length))},nodebuffer:function(v){return h(v,s.allocBuffer(v.length))}},S.array={string:g,array:c,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return s.newBufferFrom(v)}},S.arraybuffer={string:function(v){return g(new Uint8Array(v))},array:function(v){return f(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:c,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return s.newBufferFrom(new Uint8Array(v))}},S.uint8array={string:g,array:function(v){return f(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:c,nodebuffer:function(v){return s.newBufferFrom(v)}},S.nodebuffer={string:g,array:function(v){return f(v,new Array(v.length))},arraybuffer:function(v){return S.nodebuffer.uint8array(v).buffer},uint8array:function(v){return f(v,new Uint8Array(v.length))},nodebuffer:c},i.transformTo=function(v,k){if(k=k||"",!v)return k;i.checkSupport(v);var d=i.getTypeOf(k);return S[d][v](k)},i.resolve=function(v){for(var k=v.split("/"),d=[],y=0;y<k.length;y++){var _=k[y];_==="."||_===""&&y!==0&&y!==k.length-1||(_===".."?d.pop():d.push(_))}return d.join("/")},i.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(v)?"nodebuffer":o.uint8array&&v instanceof Uint8Array?"uint8array":o.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(v){if(!o[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(v){var k,d,y="";for(d=0;d<(v||"").length;d++)y+="\\x"+((k=v.charCodeAt(d))<16?"0":"")+k.toString(16).toUpperCase();return y},i.delay=function(v,k,d){setImmediate(function(){v.apply(d||null,k||[])})},i.inherits=function(v,k){function d(){}d.prototype=k.prototype,v.prototype=new d},i.extend=function(){var v,k,d={};for(v=0;v<arguments.length;v++)for(k in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],k)&&d[k]===void 0&&(d[k]=arguments[v][k]);return d},i.prepareContent=function(v,k,d,y,_){return l.Promise.resolve(k).then(function(F){return o.blob&&(F instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(F))!==-1)&&typeof FileReader<"u"?new l.Promise(function(j,re){var $=new FileReader;$.onload=function(M){j(M.target.result)},$.onerror=function(M){re(M.target.error)},$.readAsArrayBuffer(F)}):F}).then(function(F){var j=i.getTypeOf(F);return j?(j==="arraybuffer"?F=i.transformTo("uint8array",F):j==="string"&&(_?F=a.decode(F):d&&y!==!0&&(F=function(re){return h(re,o.uint8array?new Uint8Array(re.length):new Array(re.length))}(F))),F):l.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,i){var o=r("./reader/readerFor"),a=r("./utils"),s=r("./signature"),l=r("./zipEntry"),c=r("./support");function h(p){this.files=[],this.loadOptions=p}h.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(g)+", expected "+a.pretty(p)+")")}},isSignature:function(p,g){var f=this.reader.index;this.reader.setIndex(p);var S=this.reader.readString(4)===g;return this.reader.setIndex(f),S},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),g=c.uint8array?"uint8array":"array",f=a.transformTo(g,p);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,g,f,S=this.zip64EndOfCentralSize-44;0<S;)p=this.reader.readInt(2),g=this.reader.readInt(4),f=this.reader.readData(g),this.zip64ExtensibleData[p]={id:p,length:g,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var p,g;for(p=0;p<this.files.length;p++)g=this.files[p],this.reader.setIndex(g.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),g.readLocalPart(this.reader),g.handleUTF8(),g.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(p=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(p);var g=p;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var S=g-f;if(0<S)this.isSignature(g,s.CENTRAL_FILE_HEADER)||(this.reader.zero=S);else if(S<0)throw new Error("Corrupted zip: missing "+Math.abs(S)+" bytes.")},prepareReader:function(p){this.reader=o(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,i){var o=r("./reader/readerFor"),a=r("./utils"),s=r("./compressedObject"),l=r("./crc32"),c=r("./utf8"),h=r("./compressions"),p=r("./support");function g(f,S){this.options=f,this.loadOptions=S}g.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var S,v;if(f.skip(22),this.fileNameLength=f.readInt(2),v=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(v),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((S=function(k){for(var d in h)if(Object.prototype.hasOwnProperty.call(h,d)&&h[d].magic===k)return h[d];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,S,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var S=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(S),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var S,v,k,d=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<d;)S=f.readInt(2),v=f.readInt(2),k=f.readData(v),this.extraFields[S]={id:S,length:v,value:k};f.setIndex(d)},handleUTF8:function(){var f=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var S=this.findExtraFieldUnicodePath();if(S!==null)this.fileNameStr=S;else{var v=a.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var k=this.findExtraFieldUnicodeComment();if(k!==null)this.fileCommentStr=k;else{var d=a.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var S=o(f.value);return S.readInt(1)!==1||l(this.fileName)!==S.readInt(4)?null:c.utf8decode(S.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var S=o(f.value);return S.readInt(1)!==1||l(this.fileComment)!==S.readInt(4)?null:c.utf8decode(S.readData(f.length-5))}return null}},n.exports=g},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,i){function o(S,v,k){this.name=S,this.dir=k.dir,this.date=k.date,this.comment=k.comment,this.unixPermissions=k.unixPermissions,this.dosPermissions=k.dosPermissions,this._data=v,this._dataBinary=k.binary,this.options={compression:k.compression,compressionOptions:k.compressionOptions}}var a=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),l=r("./utf8"),c=r("./compressedObject"),h=r("./stream/GenericWorker");o.prototype={internalStream:function(S){var v=null,k="string";try{if(!S)throw new Error("No output type specified.");var d=(k=S.toLowerCase())==="string"||k==="text";k!=="binarystring"&&k!=="text"||(k="string"),v=this._decompressWorker();var y=!this._dataBinary;y&&!d&&(v=v.pipe(new l.Utf8EncodeWorker)),!y&&d&&(v=v.pipe(new l.Utf8DecodeWorker))}catch(_){(v=new h("error")).error(_)}return new a(v,k,"")},async:function(S,v){return this.internalStream(S).accumulate(v)},nodeStream:function(S,v){return this.internalStream(S||"nodebuffer").toNodejsStream(v)},_compressWorker:function(S,v){if(this._data instanceof c&&this._data.compression.magic===S.magic)return this._data.getCompressedWorker();var k=this._decompressWorker();return this._dataBinary||(k=k.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(k,S,v)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof h?this._data:new s(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<p.length;f++)o.prototype[p[f]]=g;n.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,i){(function(o){var a,s,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var c=0,h=new l(S),p=o.document.createTextNode("");h.observe(p,{characterData:!0}),a=function(){p.data=c=++c%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var v=o.document.createElement("script");v.onreadystatechange=function(){S(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},o.document.documentElement.appendChild(v)}:function(){setTimeout(S,0)};else{var g=new o.MessageChannel;g.port1.onmessage=S,a=function(){g.port2.postMessage(0)}}var f=[];function S(){var v,k;s=!0;for(var d=f.length;d;){for(k=f,f=[],v=-1;++v<d;)k[v]();d=f.length}s=!1}n.exports=function(v){f.push(v)!==1||s||a()}}).call(this,typeof Ji<"u"?Ji:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,i){var o=r("immediate");function a(){}var s={},l=["REJECTED"],c=["FULFILLED"],h=["PENDING"];function p(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,d!==a&&v(this,d)}function g(d,y,_){this.promise=d,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function f(d,y,_){o(function(){var F;try{F=y(_)}catch(j){return s.reject(d,j)}F===d?s.reject(d,new TypeError("Cannot resolve promise with itself")):s.resolve(d,F)})}function S(d){var y=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof y=="function")return function(){y.apply(d,arguments)}}function v(d,y){var _=!1;function F($){_||(_=!0,s.reject(d,$))}function j($){_||(_=!0,s.resolve(d,$))}var re=k(function(){y(j,F)});re.status==="error"&&F(re.value)}function k(d,y){var _={};try{_.value=d(y),_.status="success"}catch(F){_.status="error",_.value=F}return _}(n.exports=p).prototype.finally=function(d){if(typeof d!="function")return this;var y=this.constructor;return this.then(function(_){return y.resolve(d()).then(function(){return _})},function(_){return y.resolve(d()).then(function(){throw _})})},p.prototype.catch=function(d){return this.then(null,d)},p.prototype.then=function(d,y){if(typeof d!="function"&&this.state===c||typeof y!="function"&&this.state===l)return this;var _=new this.constructor(a);return this.state!==h?f(_,this.state===c?d:y,this.outcome):this.queue.push(new g(_,d,y)),_},g.prototype.callFulfilled=function(d){s.resolve(this.promise,d)},g.prototype.otherCallFulfilled=function(d){f(this.promise,this.onFulfilled,d)},g.prototype.callRejected=function(d){s.reject(this.promise,d)},g.prototype.otherCallRejected=function(d){f(this.promise,this.onRejected,d)},s.resolve=function(d,y){var _=k(S,y);if(_.status==="error")return s.reject(d,_.value);var F=_.value;if(F)v(d,F);else{d.state=c,d.outcome=y;for(var j=-1,re=d.queue.length;++j<re;)d.queue[j].callFulfilled(y)}return d},s.reject=function(d,y){d.state=l,d.outcome=y;for(var _=-1,F=d.queue.length;++_<F;)d.queue[_].callRejected(y);return d},p.resolve=function(d){return d instanceof this?d:s.resolve(new this(a),d)},p.reject=function(d){var y=new this(a);return s.reject(y,d)},p.all=function(d){var y=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=d.length,F=!1;if(!_)return this.resolve([]);for(var j=new Array(_),re=0,$=-1,M=new this(a);++$<_;)D(d[$],$);return M;function D(he,H){y.resolve(he).then(function(R){j[H]=R,++re!==_||F||(F=!0,s.resolve(M,j))},function(R){F||(F=!0,s.reject(M,R))})}},p.race=function(d){var y=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=d.length,F=!1;if(!_)return this.resolve([]);for(var j=-1,re=new this(a);++j<_;)$=d[j],y.resolve($).then(function(M){F||(F=!0,s.resolve(re,M))},function(M){F||(F=!0,s.reject(re,M))});var $;return re}},{immediate:36}],38:[function(r,n,i){var o={};(0,r("./lib/utils/common").assign)(o,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,i){var o=r("./zlib/deflate"),a=r("./utils/common"),s=r("./utils/strings"),l=r("./zlib/messages"),c=r("./zlib/zstream"),h=Object.prototype.toString,p=0,g=-1,f=0,S=8;function v(d){if(!(this instanceof v))return new v(d);this.options=a.assign({level:g,method:S,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},d||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var _=o.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(_!==p)throw new Error(l[_]);if(y.header&&o.deflateSetHeader(this.strm,y.header),y.dictionary){var F;if(F=typeof y.dictionary=="string"?s.string2buf(y.dictionary):h.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(_=o.deflateSetDictionary(this.strm,F))!==p)throw new Error(l[_]);this._dict_set=!0}}function k(d,y){var _=new v(y);if(_.push(d,!0),_.err)throw _.msg||l[_.err];return _.result}v.prototype.push=function(d,y){var _,F,j=this.strm,re=this.options.chunkSize;if(this.ended)return!1;
vendor: 2,558 bytes, line 454
454F=y===~~y?y:y===!0?4:0,typeof d=="string"?j.input=s.string2buf(d):h.call(d)==="[object ArrayBuffer]"?j.input=new Uint8Array(d):j.input=d,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new a.Buf8(re),j.next_out=0,j.avail_out=re),(_=o.deflate(j,F))!==1&&_!==p)return this.onEnd(_),!(this.ended=!0);j.avail_out!==0&&(j.avail_in!==0||F!==4&&F!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(j.output,j.next_out))):this.onData(a.shrinkBuf(j.output,j.next_out)))}while((0<j.avail_in||j.avail_out===0)&&_!==1);return F===4?(_=o.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===p):F!==2||(this.onEnd(p),!(j.avail_out=0))},v.prototype.onData=function(d){this.chunks.push(d)},v.prototype.onEnd=function(d){d===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},i.Deflate=v,i.deflate=k,i.deflateRaw=function(d,y){return(y=y||{}).raw=!0,k(d,y)},i.gzip=function(d,y){return(y=y||{}).gzip=!0,k(d,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,i){var o=r("./zlib/inflate"),a=r("./utils/common"),s=r("./utils/strings"),l=r("./zlib/constants"),c=r("./zlib/messages"),h=r("./zlib/zstream"),p=r("./zlib/gzheader"),g=Object.prototype.toString;function f(v){if(!(this instanceof f))return new f(v);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},v||{});var k=this.options;k.raw&&0<=k.windowBits&&k.windowBits<16&&(k.windowBits=-k.windowBits,k.windowBits===0&&(k.windowBits=-15)),!(0<=k.windowBits&&k.windowBits<16)||v&&v.windowBits||(k.windowBits+=32),15<k.windowBits&&k.windowBits<48&&!(15&k.windowBits)&&(k.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var d=o.inflateInit2(this.strm,k.windowBits);if(d!==l.Z_OK)throw new Error(c[d]);this.header=new p,o.inflateGetHeader(this.strm,this.header)}function S(v,k){var d=new f(k);if(d.push(v,!0),d.err)throw d.msg||c[d.err];return d.result}f.prototype.push=function(v,k){var d,y,_,F,j,re,$=this.strm,M=this.options.chunkSize,D=this.options.dictionary,he=!1;if(this.ended)return!1;y=k===~~k?k:k===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof v=="string"?$.input=s.binstring2buf(v):g.call(v)==="[object ArrayBuffer]"?$.input=new Uint8Array(v):$.input=v,$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0&&($.output=new a.Buf8(M),$.next_out=0,$.avail_out=M),(d=o.inflate($,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&D&&(re=typeof D=="str
454ing"?s.string2buf(D):g.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,d=o.inflateSetDictionary(this.strm,re)),d===l.Z_BUF_ERROR&&he===!0&&(d=l.Z_OK,he=!1),d!==l.Z_STREAM_END&&d!==l.Z_OK)return this.onEnd(d),!(this.ended=!0);$.next_out&&($.avail_out!==0&&d!==l.Z_STREAM_END&&($.avail_in!==0||y!==l.Z_FINISH&&y!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=s.utf8border($.output,$.next_out),F=$.next_out-_,j=s.buf2string($.output,_),$.next_out=F,$.avail_out=M-F,F&&a.arraySet($.output,$.output,_,F,0),this.onData(j)):this.onData(a.shrinkBuf($.output,$.next_out)))),$.avail_in===0&&$.avail_out===0&&(he=!0)}while((0<$.avail_in||$.avail_out===0)&&d!==l.Z_STREAM_END);return d===l.Z_STREAM_END&&(y=l.Z_FINISH),y===l.Z_FINISH?(d=o.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===l.Z_OK):y!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!($.avail_out=0))},f.prototype.onData=function(v){this.chunks.push(v)},f.prototype.onEnd=function(v){v===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Inflate=f,i.inflate=S,i.inflateRaw=function(v,k){return(k=k||{}).raw=!0,S(v,k)},i.ungzip=S},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var h=c.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var p in h)h.hasOwnProperty(p)&&(l[p]=h[p])}}return l},i.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var a={arraySet:function(l,c,h,p,g){if(c.subarray&&l.subarray)l.set(c.subarray(h,h+p),g);else for(var f=0;f<p;f++)l[g+f]=c[h+f]},flattenChunks:function(l){var c,h,p,g,f,S;for(c=p=0,h=l.length;c<h;c++)p+=l[c].length;for(S=new Uint8Array(p),c=g=0,h=l.length;c<h;c++)f=l[c],S.set(f,g),g+=f.length;return S}},s={arraySet:function(l,c,h,p,g){for(var f=0;f<p;f++)l[g+f]=c[h+f]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(o)},{}],42:[function(r,n,i){var o=r("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new o.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function h(p,g){if(g<65537&&(p.subarray&&s||!p.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(p,g));for(var f="",S=0;S<g;S++)f+=String.fromCharCode(p[S]);return f}l[254]=l[254]=1,i.string2buf=function(p){var g,f,S,v,k,d=p.length,y=0;for(v=0;v<d;v++)(64512&(f=p.charCodeAt(v)))==55296&&v+1<d&&(64512&(S=p.charCodeAt(v+1)))==56320&&(f=65536+(f-55296<<10)+(S-56320),v++),y+=f<128?1:f<2048?2:f<65536?3:4;for(g=new o.Buf8(y),v=k=0;k<y;v++)(64512&(f=p.charCodeAt(v)))==55296&&v+1<d&&(64512&(S=p.charCodeAt(v+1)))==56320&&(f=65536+(f-55296<<10)+(S-56320),v++),f<128?g[k++]=f:(f<2048?g[k++]=192|f>>>6:(f<65536?g[k++]=224|f>>>12:(g[k++]=240|f>>>18,g[k++]=128|f>>>12&63),g[k++]=128|f>>>6&63),g[k++]=128|63&f);return g},i.buf2binstring=function(p){return h(p,p.length)},i.binstring2buf=function(p){for(var g=new o.Buf8(p.length),f=0,S=g.length;f<S;
vendor: 10,809 bytes, line 454
454f++)g[f]=p.charCodeAt(f);return g},i.buf2string=function(p,g){var f,S,v,k,d=g||p.length,y=new Array(2*d);for(f=S=0;f<d;)if((v=p[f++])<128)y[S++]=v;else if(4<(k=l[v]))y[S++]=65533,f+=k-1;else{for(v&=k===2?31:k===3?15:7;1<k&&f<d;)v=v<<6|63&p[f++],k--;1<k?y[S++]=65533:v<65536?y[S++]=v:(v-=65536,y[S++]=55296|v>>10&1023,y[S++]=56320|1023&v)}return h(y,S)},i.utf8border=function(p,g){var f;for((g=g||p.length)>p.length&&(g=p.length),f=g-1;0<=f&&(192&p[f])==128;)f--;return f<0||f===0?g:f+l[p[f]]>g?f:g}},{"./common":41}],43:[function(r,n,i){n.exports=function(o,a,s,l){for(var c=65535&o|0,h=o>>>16&65535|0,p=0;s!==0;){for(s-=p=2e3<s?2e3:s;h=h+(c=c+a[l++]|0)|0,--p;);c%=65521,h%=65521}return c|h<<16|0}},{}],44:[function(r,n,i){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,i){var o=function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s}();n.exports=function(a,s,l,c){var h=o,p=c+l;a^=-1;for(var g=c;g<p;g++)a=a>>>8^h[255&(a^s[g])];return-1^a}},{}],46:[function(r,n,i){var o,a=r("../utils/common"),s=r("./trees"),l=r("./adler32"),c=r("./crc32"),h=r("./messages"),p=0,g=4,f=0,S=-2,v=-1,k=4,d=2,y=8,_=9,F=286,j=30,re=19,$=2*F+1,M=15,D=3,he=258,H=he+D+1,R=42,X=113,T=1,se=2,ye=3,ae=4;function ue(I,le){return I.msg=h[le],le}function oe(I){return(I<<1)-(4<I?9:0)}function me(I){for(var le=I.length;0<=--le;)I[le]=0}function de(I){var le=I.state,N=le.pending;N>I.avail_out&&(N=I.avail_out),N!==0&&(a.arraySet(I.output,le.pending_buf,le.pending_out,N,I.next_out),I.next_out+=N,le.pending_out+=N,I.total_out+=N,I.avail_out-=N,le.pending-=N,le.pending===0&&(le.pending_out=0))}function A(I,le){s._tr_flush_block(I,0<=I.block_start?I.block_start:-1,I.strstart-I.block_start,le),I.block_start=I.strstart,de(I.strm)}function B(I,le){I.pending_buf[I.pending++]=le}function z(I,le){I.pending_buf[I.pending++]=le>>>8&255,I.pending_buf[I.pending++]=255&le}function ee(I,le){var N,w,b=I.max_chain_length,P=I.strstart,Q=I.prev_length,fe=I.nice_match,ie=I.strstart>I.w_size-H?I.strstart-(I.w_size-H):0,_e=I.window,Ce=I.w_mask,Le=I.prev,Oe=I.strstart+he,We=_e[P+Q-1],$e=_e[P+Q];I.prev_length>=I.good_match&&(b>>=2),fe>I.lookahead&&(fe=I.lookahead);do if(_e[(N=le)+Q]===$e&&_e[N+Q-1]===We&&_e[N]===_e[P]&&_e[++N]===_e[P+1]){P+=2,N++;do;while(_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&_e[++P]===_e[++N]&&P<Oe);if(w=he-(Oe-P),P=Oe-he,Q<w){if(I.match_start=le,fe<=(Q=w))break;We=_e[P+Q-1],$e=_e[P+Q]}}while((le=Le[le&Ce])>ie&&--b!=0);return Q<=I.lookahead?Q:I.lookahead}function V(I){var le,N,w,b,P,Q,fe,ie,_e,Ce,Le=I.w_size;do{if(b=I.window_size-I.lookahead-I.strstart,I.strstart>=Le+(Le-H)){for(a.arraySet(I.window,I.window,Le,Le,0),I.match_start-=Le,I.strstart-=Le,I.block_start-=Le,le=N=I.hash_size;w=I.head[--le],I.head[le]=Le<=w?w-Le:0,--N;);for(le=N=Le;w=I.prev[--le],I.prev[le]=Le<=w?w-Le:0,--N;);b+=Le}if(I.strm.avail_in===0)break;if(Q=I.strm,fe=I.window,ie=I.strstart+I.lookahead,_e=b,Ce=void 0,Ce=Q.avail_in,_e<Ce&&(Ce=_e),N=Ce===0?0:(Q.avail_in-=Ce,a.arraySet(fe,Q.input,Q.next_in,Ce,ie),Q.state.wrap===1?Q.adler=l(Q.adler,fe,Ce,ie):Q.state.wrap===2&&(Q.adler=c(Q.adler,fe,Ce,ie)),Q.next_in+=Ce,Q.total_in+=Ce,Ce),I.lookahead+=N,I.lookahead+I.insert>=D)for(P=I.strstart-I.insert,I.ins_h=I.window[P],I.ins_h=(I.ins_h<<I.hash_shift^I.window[P+1])&I.hash_mask;I.insert&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[P+D-1])&I.hash_mask,I.prev[P&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=P,P++,I.insert--,!(I.lookahead+I.insert<D)););}while(I.lookahead<H&&I.strm.avail_in!==0)}function C(I,le){for(var N,w;;){if(I.lookahead<H){if(V(I),I.lookahead<H&&le===p)return T;if(I.lookahead===0)break}if(N=0,I.lookahead>=D&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+D-1])&I.hash_mask,N=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart),N!==0&&I.strstart-N<=I.w_size-H&&(I.match_length=ee(I,N)),I.match_length>=D)if(w=s._tr_tally(I,I.strstart-I.match_start,I.match_length-D),I.lookahead-=I.match_length,I.match_length<=I.max_lazy_match&&I.lookahead>=D){for(I.match_length--;I.strstart++,I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+D-1])&I.hash_mask,N=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart,--I.match_length!=0;);I.strstart++}else I.strstart+=I.match_length,I.match_length=0,I.ins_h=I.window[I.strstart],I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+1])&I.hash_mask;else w=s._tr_tally(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++;if(w&&(A(I,!1),I.strm.avail_out===0))return T}return I.insert=I.strstart<D-1?I.strstart:D-1,le===g?(A(I,!0),I.strm.avail_out===0?ye:ae):I.last_lit&&(A(I,!1),I.strm.avail_out===0)?T:se}function L(I,le){for(var N,w,b;;){if(I.lookahead<H){if(V(I),I.lookahead<H&&le===p)return T;if(I.lookahead===0)break}if(N=0,I.lookahead>=D&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+D-1])&I.hash_mask,N=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart),I.prev_length=I.match_length,I.prev_match=I.match_start,I.match_length=D-1,N!==0&&I.prev_length<I.max_lazy_match&&I.strstart-N<=I.w_size-H&&(I.match_length=ee(I,N),I.match_length<=5&&(I.strategy===1||I.match_length===D&&4096<I.strstart-I.match_start)&&(I.match_length=D-1)),I.prev_length>=D&&I.match_length<=I.prev_length){for(b=I.strstart+I.lookahead-D,w=s._tr_tally(I,I.strstart-1-I.prev_match,I.prev_length-D),I.lookahead-=I.prev_length-1,I.prev_length-=2;++I.strstart<=b&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+D-1])&I.hash_mask,N=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart),--I.prev_length!=0;);if(I.match_available=0,I.match_length=D-1,I.strstart++,w&&(A(I,!1),I.strm.avail_out===0))return T}else if(I.match_available){if((w=s._tr_tally(I,0,I.window[I.strstart-1]))&&A(I,!1),I.strstart++,I.lookahead--,I.strm.avail_out===0)return T}else I.match_available=1,I.strstart++,I.lookahead--}return I.match_available&&(w=s._tr_tally(I,0,I.window[I.strstart-1]),I.match_available=0),I.insert=I.strstart<D-1?I.strstart:D-1,le===g?(A(I,!0),I.strm.avail_out===0?ye:ae):I.last_lit&&(A(I,!1),I.strm.avail_out===0)?T:se}function Y(I,le,N,w,b){this.good_length=I,this.max_lazy=le,this.nice_length=N,this.max_chain=w,this.func=b}function Z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*$),this.dyn_dtree=new a.Buf16(2*(2*j+1)),this.bl_tree=new a.Buf16(2*(2*re+1)),me(this.dyn_ltree),me(this.dyn_dtree),me(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(M+1),this.heap=new a.Buf16(2*F+1),me(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*F+1),me(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(I){var le;return I&&I.state?(I.total_in=I.total_out=0,I.data_type=d,(le=I.state).pending=0,le.pending_out=0,le.wrap<0&&(le.wrap=-le.wrap),le.status=le.wrap?R:X,I.adler=le.wrap===2?0:1,le.last_flush=p,s._tr_init(le),f):ue(I,S)}function G(I){var le=U(I);return le===f&&function(N){N.window_size=2*N.w_size,me(N.head),N.max_lazy_match=o[N.level].max_lazy,N.good_match=o[N.level].good_length,N.nice_match=o[N.level].nice_length,N.max_chain_length=o[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=D-1,N.match_available=0,N.ins_h=0}(I.state),le}function ge(I,le,N,w,b,P){if(!I)return S;var Q=1;if(le===v&&(le=6),w<0?(Q=0,w=-w):15<w&&(Q=2,w-=16),b<1||_<b||N!==y||w<8||15<w||le<0||9<le||P<0||k<P)return ue(I,S);w===8&&(w=9);var fe=new Z;return(I.state=fe).strm=I,fe.wrap=Q,fe.gzhead=null,fe.w_bits=w,fe.w_size=1<<fe.w_bits,fe.w_mask=fe.w_size-1,fe.hash_bits=b+7,fe.hash_size=1<<fe.hash_bits,fe.hash_mask=fe.hash_size-1,fe.hash_shift=~~((fe.hash_bits+D-1)/D),fe.window=new a.Buf8(2*fe.w_size),fe.head=new a.Buf16(fe.hash_size),fe.prev=new a.Buf16(fe.w_size),fe.lit_bufsize=1<<b+6,fe.pending_buf_size=4*fe.lit_bufsize,fe.pending_buf=new a.Buf8(fe.pending_buf_size),fe.d_buf=1*fe.lit_bufsize,fe.l_buf=3*fe.lit_bufsize,fe.level=le,fe.strategy=P,fe.method=N,G(I)}o=[new Y(0,0,0,0,function(I,le){var N=65535;for(N>I.pending_buf_size-5&&(N=I.pending_buf_size-5);;){if(I.lookahead<=1){if(V(I),I.lookahead===0&&le===p)return T;if(I.lookahead===0)break}I.strstart+=I.lookahead,I.lookahead=0;var w=I.block_start+N;if((I.strstart===0||I.strstart>=w)&&(I.lookahead=I.strstart-w,I.strstart=w,A(I,!1),I.strm.avail_out===0)||I.strstart-I.block_start>=I.w_size-H&&(A(I,!1),I.strm.avail_out===0))return T}return I.insert=0,le===g?(A(I,!0),I.strm.avail_out===0?ye:ae):(I.strstart>I.block_start&&(A(I,!1),I.strm.avail_out),T)}),new Y(4,4,8,4,C),new Y(4,5,16,8,C),new Y(4,6,32,32,C),new Y(4,4,16,16,L),new Y(8,16,32,32,L),new Y(8,16,128,128,L),new Y(8,32,128,256,L),new Y(32,128,258,1024,L),new Y(32,258,258,4096,L)],i.deflateInit=function(I,le){return ge(I,le,y,15,8,0)},i.deflateInit2=ge,i.deflateReset=G,i.deflateResetKeep=U,i.deflateSetHeader=function(I,le){return I&&I.state?I.state.wrap!==2?S:(I.state.gzhead=le,f):S},i.deflate=function(I,le){var N,w,b,P;if(!I||!I.state||5<le||le<0)return I?ue(I,S):S;if(w=I.state,!I.output||!I.input&&I.avail_in!==0||w.status===666&&le!==g)return ue(I,I.avail_out===0?-5:S);if(w.strm=I,N=w.last_flush,w.last_flush=le,w.status===R)if(w.wrap===2)I.adler=0,B(w,31),B(w,139),B(w,8),w.gzhead?(B(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),B(w,255&w.gzhead.time),B(w,w.gzhead.time>>8&255),B(w,w.gzhead.time>>16&255),B(w,w.gzhead.time>>24&255),B(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),B(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(B(w,255&w.gzhead.extra.length),B(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(I.adler=c(I.adler,w.pending_buf,w.pending,0)),w.gz
vendor: 19,338 bytes, line 454
454index=0,w.status=69):(B(w,0),B(w,0),B(w,0),B(w,0),B(w,0),B(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),B(w,3),w.status=X);else{var Q=y+(w.w_bits-8<<4)<<8;Q|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(Q|=32),Q+=31-Q%31,w.status=X,z(w,Q),w.strstart!==0&&(z(w,I.adler>>>16),z(w,65535&I.adler)),I.adler=1}if(w.status===69)if(w.gzhead.extra){for(b=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>b&&(I.adler=c(I.adler,w.pending_buf,w.pending-b,b)),de(I),b=w.pending,w.pending!==w.pending_buf_size));)B(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>b&&(I.adler=c(I.adler,w.pending_buf,w.pending-b,b)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){b=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>b&&(I.adler=c(I.adler,w.pending_buf,w.pending-b,b)),de(I),b=w.pending,w.pending===w.pending_buf_size)){P=1;break}P=w.gzindex<w.gzhead.name.length?255&w.gzhead.name.charCodeAt(w.gzindex++):0,B(w,P)}while(P!==0);w.gzhead.hcrc&&w.pending>b&&(I.adler=c(I.adler,w.pending_buf,w.pending-b,b)),P===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){b=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>b&&(I.adler=c(I.adler,w.pending_buf,w.pending-b,b)),de(I),b=w.pending,w.pending===w.pending_buf_size)){P=1;break}P=w.gzindex<w.gzhead.comment.length?255&w.gzhead.comment.charCodeAt(w.gzindex++):0,B(w,P)}while(P!==0);w.gzhead.hcrc&&w.pending>b&&(I.adler=c(I.adler,w.pending_buf,w.pending-b,b)),P===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&de(I),w.pending+2<=w.pending_buf_size&&(B(w,255&I.adler),B(w,I.adler>>8&255),I.adler=0,w.status=X)):w.status=X),w.pending!==0){if(de(I),I.avail_out===0)return w.last_flush=-1,f}else if(I.avail_in===0&&oe(le)<=oe(N)&&le!==g)return ue(I,-5);if(w.status===666&&I.avail_in!==0)return ue(I,-5);if(I.avail_in!==0||w.lookahead!==0||le!==p&&w.status!==666){var fe=w.strategy===2?function(ie,_e){for(var Ce;;){if(ie.lookahead===0&&(V(ie),ie.lookahead===0)){if(_e===p)return T;break}if(ie.match_length=0,Ce=s._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++,Ce&&(A(ie,!1),ie.strm.avail_out===0))return T}return ie.insert=0,_e===g?(A(ie,!0),ie.strm.avail_out===0?ye:ae):ie.last_lit&&(A(ie,!1),ie.strm.avail_out===0)?T:se}(w,le):w.strategy===3?function(ie,_e){for(var Ce,Le,Oe,We,$e=ie.window;;){if(ie.lookahead<=he){if(V(ie),ie.lookahead<=he&&_e===p)return T;if(ie.lookahead===0)break}if(ie.match_length=0,ie.lookahead>=D&&0<ie.strstart&&(Le=$e[Oe=ie.strstart-1])===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]){We=ie.strstart+he;do;while(Le===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]&&Le===$e[++Oe]&&Oe<We);ie.match_length=he-(We-Oe),ie.match_length>ie.lookahead&&(ie.match_length=ie.lookahead)}if(ie.match_length>=D?(Ce=s._tr_tally(ie,1,ie.match_length-D),ie.lookahead-=ie.match_length,ie.strstart+=ie.match_length,ie.match_length=0):(Ce=s._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++),Ce&&(A(ie,!1),ie.strm.avail_out===0))return T}return ie.insert=0,_e===g?(A(ie,!0),ie.strm.avail_out===0?ye:ae):ie.last_lit&&(A(ie,!1),ie.strm.avail_out===0)?T:se}(w,le):o[w.level].func(w,le);if(fe!==ye&&fe!==ae||(w.status=666),fe===T||fe===ye)return I.avail_out===0&&(w.last_flush=-1),f;if(fe===se&&(le===1?s._tr_align(w):le!==5&&(s._tr_stored_block(w,0,0,!1),le===3&&(me(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),de(I),I.avail_out===0))return w.last_flush=-1,f}return le!==g?f:w.wrap<=0?1:(w.wrap===2?(B(w,255&I.adler),B(w,I.adler>>8&255),B(w,I.adler>>16&255),B(w,I.adler>>24&255),B(w,255&I.total_in),B(w,I.total_in>>8&255),B(w,I.total_in>>16&255),B(w,I.total_in>>24&255)):(z(w,I.adler>>>16),z(w,65535&I.adler)),de(I),0<w.wrap&&(w.wrap=-w.wrap),w.pending!==0?f:1)},i.deflateEnd=function(I){var le;return I&&I.state?(le=I.state.status)!==R&&le!==69&&le!==73&&le!==91&&le!==103&&le!==X&&le!==666?ue(I,S):(I.state=null,le===X?ue(I,-3):f):S},i.deflateSetDictionary=function(I,le){var N,w,b,P,Q,fe,ie,_e,Ce=le.length;if(!I||!I.state||(P=(N=I.state).wrap)===2||P===1&&N.status!==R||N.lookahead)return S;for(P===1&&(I.adler=l(I.adler,le,Ce,0)),N.wrap=0,Ce>=N.w_size&&(P===0&&(me(N.head),N.strstart=0,N.block_start=0,N.insert=0),_e=new a.Buf8(N.w_size),a.arraySet(_e,le,Ce-N.w_size,N.w_size,0),le=_e,Ce=N.w_size),Q=I.avail_in,fe=I.next_in,ie=I.input,I.avail_in=Ce,I.next_in=0,I.input=le,V(N);N.lookahead>=D;){for(w=N.strstart,b=N.lookahead-(D-1);N.ins_h=(N.ins_h<<N.hash_shift^N.window[w+D-1])&N.hash_mask,N.prev[w&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=w,w++,--b;);N.strstart=w,N.lookahead=D-1,V(N)}return N.strstart+=N.lookahead,N.block_start=N.strstart,N.insert=N.lookahead,N.lookahead=0,N.match_length=N.prev_length=D-1,N.match_available=0,I.next_in=fe,I.input=ie,I.avail_in=Q,N.wrap=P,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,i){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,i){n.exports=function(o,a){var s,l,c,h,p,g,f,S,v,k,d,y,_,F,j,re,$,M,D,he,H,R,X,T,se;s=o.state,l=o.next_in,T=o.input,c=l+(o.avail_in-5),h=o.next_out,se=o.output,p=h-(a-o.avail_out),g=h+(o.avail_out-257),f=s.dmax,S=s.wsize,v=s.whave,k=s.wnext,d=s.window,y=s.hold,_=s.bits,F=s.lencode,j=s.distcode,re=(1<<s.lenbits)-1,$=(1<<s.distbits)-1;e:do{_<15&&(y+=T[l++]<<_,_+=8,y+=T[l++]<<_,_+=8),M=F[y&re];t:for(;;){if(y>>>=D=M>>>24,_-=D,(D=M>>>16&255)===0)se[h++]=65535&M;else{if(!(16&D)){if(!(64&D)){M=F[(65535&M)+(y&(1<<D)-1)];continue t}if(32&D){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}he=65535&M,(D&=15)&&(_<D&&(y+=T[l++]<<_,_+=8),he+=y&(1<<D)-1,y>>>=D,_-=D),_<15&&(y+=T[l++]<<_,_+=8,y+=T[l++]<<_,_+=8),M=j[y&$];r:for(;;){if(y>>>=D=M>>>24,_-=D,!(16&(D=M>>>16&255))){if(!(64&D)){M=j[(65535&M)+(y&(1<<D)-1)];continue r}o.msg="invalid distance code",s.mode=30;break e}if(H=65535&M,_<(D&=15)&&(y+=T[l++]<<_,(_+=8)<D&&(y+=T[l++]<<_,_+=8)),f<(H+=y&(1<<D)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(y>>>=D,_-=D,(D=h-p)<H){if(v<(D=H-D)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(X=d,(R=0)===k){if(R+=S-D,D<he){for(he-=D;se[h++]=d[R++],--D;);R=h-H,X=se}}else if(k<D){if(R+=S+k-D,(D-=k)<he){for(he-=D;se[h++]=d[R++],--D;);if(R=0,k<he){for(he-=D=k;se[h++]=d[R++],--D;);R=h-H,X=se}}}else if(R+=k-D,D<he){for(he-=D;se[h++]=d[R++],--D;);R=h-H,X=se}for(;2<he;)se[h++]=X[R++],se[h++]=X[R++],se[h++]=X[R++],he-=3;he&&(se[h++]=X[R++],1<he&&(se[h++]=X[R++]))}else{for(R=h-H;se[h++]=se[R++],se[h++]=se[R++],se[h++]=se[R++],2<(he-=3););he&&(se[h++]=se[R++],1<he&&(se[h++]=se[R++]))}break}}break}}while(l<c&&h<g);l-=he=_>>3,y&=(1<<(_-=he<<3))-1,o.next_in=l,o.next_out=h,o.avail_in=l<c?c-l+5:5-(l-c),o.avail_out=h<g?g-h+257:257-(h-g),s.hold=y,s.bits=_}},{}],49:[function(r,n,i){var o=r("../utils/common"),a=r("./adler32"),s=r("./crc32"),l=r("./inffast"),c=r("./inftrees"),h=1,p=2,g=0,f=-2,S=1,v=852,k=592;function d(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(R){var X;return R&&R.state?(X=R.state,R.total_in=R.total_out=X.total=0,R.msg="",X.wrap&&(R.adler=1&X.wrap),X.mode=S,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new o.Buf32(v),X.distcode=X.distdyn=new o.Buf32(k),X.sane=1,X.back=-1,g):f}function F(R){var X;return R&&R.state?((X=R.state).wsize=0,X.whave=0,X.wnext=0,_(R)):f}function j(R,X){var T,se;return R&&R.state?(se=R.state,X<0?(T=0,X=-X):(T=1+(X>>4),X<48&&(X&=15)),X&&(X<8||15<X)?f:(se.window!==null&&se.wbits!==X&&(se.window=null),se.wrap=T,se.wbits=X,F(R))):f}function re(R,X){var T,se;return R?(se=new y,(R.state=se).window=null,(T=j(R,X))!==g&&(R.state=null),T):f}var $,M,D=!0;function he(R){if(D){var X;for($=new o.Buf32(512),M=new o.Buf32(32),X=0;X<144;)R.lens[X++]=8;for(;X<256;)R.lens[X++]=9;for(;X<280;)R.lens[X++]=7;for(;X<288;)R.lens[X++]=8;for(c(h,R.lens,0,288,$,0,R.work,{bits:9}),X=0;X<32;)R.lens[X++]=5;c(p,R.lens,0,32,M,0,R.work,{bits:5}),D=!1}R.lencode=$,R.lenbits=9,R.distcode=M,R.distbits=5}function H(R,X,T,se){var ye,ae=R.state;return ae.window===null&&(ae.wsize=1<<ae.wbits,ae.wnext=0,ae.whave=0,ae.window=new o.Buf8(ae.wsize)),se>=ae.wsize?(o.arraySet(ae.window,X,T-ae.wsize,ae.wsize,0),ae.wnext=0,ae.whave=ae.wsize):(se<(ye=ae.wsize-ae.wnext)&&(ye=se),o.arraySet(ae.window,X,T-se,ye,ae.wnext),(se-=ye)?(o.arraySet(ae.window,X,T-se,se,0),ae.wnext=se,ae.whave=ae.wsize):(ae.wnext+=ye,ae.wnext===ae.wsize&&(ae.wnext=0),ae.whave<ae.wsize&&(ae.whave+=ye))),0}i.inflateReset=F,i.inflateReset2=j,i.inflateResetKeep=_,i.inflateInit=function(R){return re(R,15)},i.inflateInit2=re,i.inflate=function(R,X){var T,se,ye,ae,ue,oe,me,de,A,B,z,ee,V,C,L,Y,Z,U,G,ge,I,le,N,w,b=0,P=new o.Buf8(4),Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return f;(T=R.state).mode===12&&(T.mode=13),ue=R.next_out,ye=R.output,me=R.avail_out,ae=R.next_in,se=R.input,oe=R.avail_in,de=T.hold,A=T.bits,B=oe,z=me,le=g;e:for(;;)switch(T.mode){case S:if(T.wrap===0){T.mode=13;break}for(;A<16;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(2&T.wrap&&de===35615){P[T.check=0]=255&de,P[1]=de>>>8&255,T.check=s(T.check,P,2,0),A=de=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&de)<<8)+(de>>8))%31){R.msg="incorrect header check",T.mode=30;break}if((15&de)!=8){R.msg="unknown compression method",T.mode=30;break}if(A-=4,I=8+(15&(de>>>=4)),T.wbits===0)T.wbits=I;else if(I>T.wbits){R.msg="invalid window size",T.mode=30;break}T.dmax=1<<I,R.adler=T.check=1,T.mode=512&de?10:12,A=de=0;break;case 2:for(;A<16;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(T.flags=de,(255&T.flags)!=8){R.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){R.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=de>>8&1),512&T.flags&&(P[0]=255&de,P[1]=de>>>8&255,T.check=s(T.check,P,2,0)),A=de=0,T.mode=3;case 3:for(;A<32;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}T.head&&(T.head.time=de),512&T.flags&&(P[0]=255&de,P[1]=de>>>8&255,P[2]=de>>>16&255,P[3]=de>>>24&255,T.check=s(T.check,P,4,0)),A=de=0,T.mode=4;case 4:for(;A<16;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}T.head&&(T.head.xflags=255&de,T.head.os=de>>8),512&T.flags&&(P[0]=255&de,P[1]=de>>>8&255,T.check=s(T.check,P,2,0)),A=de=0,T.mode=5;case 5:if(1024&T.flags){for(;A<16;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}T.length=de,T.head&&(T.head.extra_len=de),512&T.flags&&(P[0]=255&de,P[1]=de>>>8&255,T.check=s(T.check,P,2,0)),A=de=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(oe<(ee=T.length)&&(ee=oe),ee&&(T.head&&(I=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),o.arraySet(T.head.extra,se,ae,ee,I)),512&T.flags&&(T.check=s(T.check,se,ee,ae)),oe-=ee,ae+=ee,T.length-=ee),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(oe===0)break e;for(ee=0;I=se[ae+ee++],T.head&&I&&T.length<65536&&(T.head.name+=String.fromCharCode(I)),I&&ee<oe;);if(512&T.flags&&(T.check=s(T.check,se,ee,ae)),oe-=ee,ae+=ee,I)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(oe===0)break e;for(ee=0;I=se[ae+ee++],T.head&&I&&T.length<65536&&(T.head.comment+=String.fromCharCode(I)),I&&ee<oe;);if(512&T.flags&&(T.check=s(T.check,se,ee,ae)),oe-=ee,ae+=ee,I)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;A<16;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(de!==(65535&T.check)){R.msg="header crc mismatch",T.mode=30;break}A=de=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),R.adler=T.check=0,T.mode=12;break;case 10:for(;A<32;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}R.adler=T.check=d(de),A=de=0,T.mode=11;case 11:if(T.havedict===0)return R.next_out=ue,R.avail_out=me,R.next_in=ae,R.avail_in=oe,T.hold=de,T.bits=A,2;R.adler=T.check=1,T.mode=12;case 12:if(X===5||X===6)break e;case 13:if(T.last){de>>>=7&A,A-=7&A,T.mode=27;break}for(;A<3;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}switch(T.last=1&de,A-=1,3&(de>>>=1)){case 0:T.mode=14;break;case 1:if(he(T),T.mode=20,X!==6)break;de>>>=2,A-=2;break e;case 2:T.mode=17;break;case 3:R.msg="invalid block type",T.mode=30}de>>>=2,A-=2;break;case 14:for(de>>>=7&A,A-=7&A;A<32;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if((65535&de)!=(de>>>16^65535)){R.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&de,A=de=0,T.mode=15,X===6)break e;case 15:T.mode=16;case 16:if(ee=T.length){if(oe<ee&&(ee=oe),me<ee&&(ee=me),ee===0)break e;o.arraySet(ye,se,ae,ee,ue),oe-=ee,ae+=ee,me-=ee,ue+=ee,T.length-=ee;break}T.mode=12;break;case 17:for(;A<14;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(T.nlen=257+(31&de),de>>>=5,A-=5,T.ndist=1+(31&de),de>>>=5,A-=5,T.ncode=4+(15&de),de>>>=4,A-=4,286<T.nlen||30<T.ndist){R.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;A<3;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}T.lens[Q[T.have++]]=7&de,de>>>=3,A-=3}for(;T.have<19;)T.lens[Q[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,N={bits:T.lenbits},le=c(0,T.lens,0,19,T.lencode,0,T.work,N),T.lenbits=N.bits,le){R.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;Y=(b=T.lencode[de&(1<<T.lenbits)-1])>>>16&255,Z=65535&b,!((L=b>>>24)<=A);){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(Z<16)de>>>=L,A-=L,T.lens[T.have++]=Z;else{if(Z===16){for(w=L+2;A<w;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(de>>>=L,A-=L,T.have===0){R.msg="invalid bit length repeat",T.mode=30;break}I=T.lens[T.have-1],ee=3+(3&de),de>>>=2,A-=2}else if(Z===17){for(w=L+3;A<w;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}A-=L,I=0,ee=3+(7&(de>>>=L)),de>>>=3,A-=3}else{for(w=L+7;A<w;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}A-=L,I=0,ee=11+(127&(de>>>=L)),de>>>=7,A-=7}if(T.have+ee>T.nlen+T.ndist){R.msg="invalid bit length repeat",T.mode=30;break}for(;ee--;)T.lens[T.have++]=I}}if(T.mode===30)break;if(T.lens[256]===0){R.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,N={bits:T.lenbits},le=c(h,T.lens,0,T.nlen,T.lencode,0,T.work,N),T.lenbits=N.bits,le){R.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,N={bits:T.distbits},le=c(p,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,N),T.distbits=N.bits,le){R.msg="invalid distances set",T.mode=30;break}if(T.mode=20,X===6)break e;case 20:T.mode=21;case 21:if(6<=oe&&258<=me){R.next_out=ue,R.avail_out=me,R.next_in=ae,R.avail_in=oe,T.hold=de,T.bits=A,l(R,z),ue=R.next_out,ye=R.output,me=R.avail_out,ae=R.next_in,se=R.input,oe=R.avail_in,de=T.hold,A=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;Y=(b=T.lencode[de&(1<<T.lenbits)-1])>>>16&255,Z=65535&b,!((L=b>>>24)<=A);){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(Y&&!(240&Y)){for(U=L,G=Y,ge=Z;Y=(b=T.lencode[ge+((de&(1<<U+G)-1)>>U)])>>>16&255,Z=65535&b,!(U+(L=b>>>24)<=A);){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}de>>>=U,A-=U,T.back+=U}if(de>>>=L,A-=L,T.back+=L,T.length=Z,Y===0){T.mode=26;break}if(32&Y){T.back=-1,T.mode=12;break}if(64&Y){R.msg="invalid literal/length code",T.mode=30;break}T.extra=15&Y,T.mode=22;case 22:if(T.extra){for(w=T.extra;A<w;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}T.length+=de&(1<<T.extra)-1,de>>>=T.extra,A-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;Y=(b=T.distcode[de&(1<<T.distbits)-1])>>>16&255,Z=65535&b,!((L=b>>>24)<=A);){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(!(240&Y)){for(U=L,G=Y,ge=Z;Y=(b=T.distcode[ge+((de&(1<<U+G)-1)>>U)])>>>16&255,Z=65535&b,!(U+(L=b>>>24)<=A);){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}de>>>=U,A-=U,T.back+=U}if(de>>>=L,A-=L,T.back+=L,64&Y){R.msg="invalid distance code",T.mode=30;break}T.offset=Z,T.extra=15&Y,T.mode=24;case 24:if(T.extra){for(w=T.extra;A<w;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}T.offset+=de&(1<<T.extra)-1,de>>>=T.extra,A-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){R.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(me===0)break e;if(ee=z-me,T.offset>ee){if((ee=T.offset-ee)>T.whave&&T.sane){R.msg="invalid distance too far back",T.mode=30;break}V=ee>T.wnext?(ee-=T.wnext,T.wsize-ee):T.wnext-ee,ee>T.length&&(ee=T.length),C=T.window}else C=ye,V=ue-T.offset,ee=T.length;for(me<ee&&(ee=me),me-=ee,T.length-=ee;ye[ue++]=C[V++],--ee;);T.length===0&&(T.mode=21);break;case 26:if(me===0)break e;ye[ue++]=T.length,me--,T.mode=21;break;case 27:if(T.wrap){for(;A<32;){if(oe===0)break e;oe--,de|=se[ae++]<<A,A+=8}if(z-=me,R.total_out+=z,T.total+=z,z&&(R.adler=T.check=T.flags?s(T.check,ye,z,ue-z):a(T.check,ye,z,ue-z)),z=me,(T.flags?de:d(de))!==T.check){R.msg="incorrect data check",T.mode=30;break}A=de=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;A<32;){if(oe===0)break e;oe--,de+=se[ae++]<<A,A+=8}if(de!==(4294967295&T.total)){R.msg="incorrect length check",T.mode=30;break}A=de=0}T.mode=29;case 29:le=1;break e;case 30:le=-3;break e;case 31:return-4;case 32:default:return f}return R.next_out=ue,R.avail_out=me,R.next_in=ae,R.avail_in=oe,T.hold=de,T.bits=A,(T.wsize||z!==R.avail_out&&T.mode<30&&(T.mode<27||X!==4))&&H(R,R.output,R.next_out,z-R.avail_out)?(T.mode=31,-4):(B-=R.avail_in,z-=R.avail_out,R.total_in+=B,R.total_out+=z,T.total+=z,T.wrap&&z&&(R.adler=T.check=T.flags?s(T.check,ye,z,R.next_out-z):a(T.check,ye,z,R.next_out-z)),R.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(B==0&&z===0||X===4)&&le===g&&(le=-5),le)},i.inflateEnd=function(R){if(!R||!R.state)return f;var X=R.state;return X.window&&(X.window=null),R.state=null,g},i.inflateGetHeader=function(R,X){var T;return R&&R.state&&2&(T=R.state).wrap?((T.head=X).done=!1,g):f},i.inflateSetDictionary=function(R,X){var T,se=X.length;return R&&R.state?(T=R.state).wrap!==0&&T.mode!==11?f:T.mode===11&&a(1,X,se,0)!==T.check?-3:H(R,X,se,se)?(T.mode=31,-4):(T.havedict=1,g):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,i){var o=r("../utils/common"),a=[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,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[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,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];
vendor: 10,161 bytes, line 454
454n.exports=function(h,p,g,f,S,v,k,d){var y,_,F,j,re,$,M,D,he,H=d.bits,R=0,X=0,T=0,se=0,ye=0,ae=0,ue=0,oe=0,me=0,de=0,A=null,B=0,z=new o.Buf16(16),ee=new o.Buf16(16),V=null,C=0;for(R=0;R<=15;R++)z[R]=0;for(X=0;X<f;X++)z[p[g+X]]++;for(ye=H,se=15;1<=se&&z[se]===0;se--);if(se<ye&&(ye=se),se===0)return S[v++]=20971520,S[v++]=20971520,d.bits=1,0;for(T=1;T<se&&z[T]===0;T++);for(ye<T&&(ye=T),R=oe=1;R<=15;R++)if(oe<<=1,(oe-=z[R])<0)return-1;if(0<oe&&(h===0||se!==1))return-1;for(ee[1]=0,R=1;R<15;R++)ee[R+1]=ee[R]+z[R];for(X=0;X<f;X++)p[g+X]!==0&&(k[ee[p[g+X]]++]=X);if($=h===0?(A=V=k,19):h===1?(A=a,B-=257,V=s,C-=257,256):(A=l,V=c,-1),R=T,re=v,ue=X=de=0,F=-1,j=(me=1<<(ae=ye))-1,h===1&&852<me||h===2&&592<me)return 1;for(;;){for(M=R-ue,he=k[X]<$?(D=0,k[X]):k[X]>$?(D=V[C+k[X]],A[B+k[X]]):(D=96,0),y=1<<R-ue,T=_=1<<ae;S[re+(de>>ue)+(_-=y)]=M<<24|D<<16|he|0,_!==0;);for(y=1<<R-1;de&y;)y>>=1;if(y!==0?(de&=y-1,de+=y):de=0,X++,--z[R]==0){if(R===se)break;R=p[g+k[X]]}if(ye<R&&(de&j)!==F){for(ue===0&&(ue=ye),re+=T,oe=1<<(ae=R-ue);ae+ue<se&&!((oe-=z[ae+ue])<=0);)ae++,oe<<=1;if(me+=1<<ae,h===1&&852<me||h===2&&592<me)return 1;S[F=de&j]=ye<<24|ae<<16|re-v|0}}return de!==0&&(S[re+de]=R-ue<<24|64<<16|0),d.bits=ye,0}},{"../utils/common":41}],51:[function(r,n,i){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,i){var o=r("../utils/common"),a=0,s=1;function l(b){for(var P=b.length;0<=--P;)b[P]=0}var c=0,h=29,p=256,g=p+1+h,f=30,S=19,v=2*g+1,k=15,d=16,y=7,_=256,F=16,j=17,re=18,$=[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],M=[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],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],he=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(2*(g+2));l(H);var R=new Array(2*f);l(R);var X=new Array(512);l(X);var T=new Array(256);l(T);var se=new Array(h);l(se);var ye,ae,ue,oe=new Array(f);function me(b,P,Q,fe,ie){this.static_tree=b,this.extra_bits=P,this.extra_base=Q,this.elems=fe,this.max_length=ie,this.has_stree=b&&b.length}function de(b,P){this.dyn_tree=b,this.max_code=0,this.stat_desc=P}function A(b){return b<256?X[b]:X[256+(b>>>7)]}function B(b,P){b.pending_buf[b.pending++]=255&P,b.pending_buf[b.pending++]=P>>>8&255}function z(b,P,Q){b.bi_valid>d-Q?(b.bi_buf|=P<<b.bi_valid&65535,B(b,b.bi_buf),b.bi_buf=P>>d-b.bi_valid,b.bi_valid+=Q-d):(b.bi_buf|=P<<b.bi_valid&65535,b.bi_valid+=Q)}function ee(b,P,Q){z(b,Q[2*P],Q[2*P+1])}function V(b,P){for(var Q=0;Q|=1&b,b>>>=1,Q<<=1,0<--P;);return Q>>>1}function C(b,P,Q){var fe,ie,_e=new Array(k+1),Ce=0;for(fe=1;fe<=k;fe++)_e[fe]=Ce=Ce+Q[fe-1]<<1;for(ie=0;ie<=P;ie++){var Le=b[2*ie+1];Le!==0&&(b[2*ie]=V(_e[Le]++,Le))}}function L(b){var P;for(P=0;P<g;P++)b.dyn_ltree[2*P]=0;for(P=0;P<f;P++)b.dyn_dtree[2*P]=0;for(P=0;P<S;P++)b.bl_tree[2*P]=0;b.dyn_ltree[2*_]=1,b.opt_len=b.static_len=0,b.last_lit=b.matches=0}function Y(b){8<b.bi_valid?B(b,b.bi_buf):0<b.bi_valid&&(b.pending_buf[b.pending++]=b.bi_buf),b.bi_buf=0,b.bi_valid=0}function Z(b,P,Q,fe){var ie=2*P,_e=2*Q;return b[ie]<b[_e]||b[ie]===b[_e]&&fe[P]<=fe[Q]}function U(b,P,Q){for(var fe=b.heap[Q],ie=Q<<1;ie<=b.heap_len&&(ie<b.heap_len&&Z(P,b.heap[ie+1],b.heap[ie],b.depth)&&ie++,!Z(P,fe,b.heap[ie],b.depth));)b.heap[Q]=b.heap[ie],Q=ie,ie<<=1;b.heap[Q]=fe}function G(b,P,Q){var fe,ie,_e,Ce,Le=0;if(b.last_lit!==0)for(;fe=b.pending_buf[b.d_buf+2*Le]<<8|b.pending_buf[b.d_buf+2*Le+1],ie=b.pending_buf[b.l_buf+Le],Le++,fe===0?ee(b,ie,P):(ee(b,(_e=T[ie])+p+1,P),(Ce=$[_e])!==0&&z(b,ie-=se[_e],Ce),ee(b,_e=A(--fe),Q),(Ce=M[_e])!==0&&z(b,fe-=oe[_e],Ce)),Le<b.last_lit;);ee(b,_,P)}function ge(b,P){var Q,fe,ie,_e=P.dyn_tree,Ce=P.stat_desc.static_tree,Le=P.stat_desc.has_stree,Oe=P.stat_desc.elems,We=-1;for(b.heap_len=0,b.heap_max=v,Q=0;Q<Oe;Q++)_e[2*Q]!==0?(b.heap[++b.heap_len]=We=Q,b.depth[Q]=0):_e[2*Q+1]=0;for(;b.heap_len<2;)_e[2*(ie=b.heap[++b.heap_len]=We<2?++We:0)]=1,b.depth[ie]=0,b.opt_len--,Le&&(b.static_len-=Ce[2*ie+1]);for(P.max_code=We,Q=b.heap_len>>1;1<=Q;Q--)U(b,_e,Q);for(ie=Oe;Q=b.heap[1],b.heap[1]=b.heap[b.heap_len--],U(b,_e,1),fe=b.heap[1],b.heap[--b.heap_max]=Q,b.heap[--b.heap_max]=fe,_e[2*ie]=_e[2*Q]+_e[2*fe],b.depth[ie]=(b.depth[Q]>=b.depth[fe]?b.depth[Q]:b.depth[fe])+1,_e[2*Q+1]=_e[2*fe+1]=ie,b.heap[1]=ie++,U(b,_e,1),2<=b.heap_len;);b.heap[--b.heap_max]=b.heap[1],function($e,Je){var at,Ve,Xt,rt,Or,xt,vt=Je.dyn_tree,cn=Je.max_code,St=Je.stat_desc.static_tree,fi=Je.stat_desc.has_stree,qt=Je.stat_desc.extra_bits,Xr=Je.stat_desc.extra_base,kt=Je.stat_desc.max_length,mt=0;for(rt=0;rt<=k;rt++)$e.bl_count[rt]=0;for(vt[2*$e.heap[$e.heap_max]+1]=0,at=$e.heap_max+1;at<v;at++)kt<(rt=vt[2*vt[2*(Ve=$e.heap[at])+1]+1]+1)&&(rt=kt,mt++),vt[2*Ve+1]=rt,cn<Ve||($e.bl_count[rt]++,Or=0,Xr<=Ve&&(Or=qt[Ve-Xr]),xt=vt[2*Ve],$e.opt_len+=xt*(rt+Or),fi&&($e.static_len+=xt*(St[2*Ve+1]+Or)));if(mt!==0){do{for(rt=kt-1;$e.bl_count[rt]===0;)rt--;$e.bl_count[rt]--,$e.bl_count[rt+1]+=2,$e.bl_count[kt]--,mt-=2}while(0<mt);for(rt=kt;rt!==0;rt--)for(Ve=$e.bl_count[rt];Ve!==0;)cn<(Xt=$e.heap[--at])||(vt[2*Xt+1]!==rt&&($e.opt_len+=(rt-vt[2*Xt+1])*vt[2*Xt],vt[2*Xt+1]=rt),Ve--)}}(b,P),C(_e,We,b.bl_count)}function I(b,P,Q){var fe,ie,_e=-1,Ce=P[1],Le=0,Oe=7,We=4;for(Ce===0&&(Oe=138,We=3),P[2*(Q+1)+1]=65535,fe=0;fe<=Q;fe++)ie=Ce,Ce=P[2*(fe+1)+1],++Le<Oe&&ie===Ce||(Le<We?b.bl_tree[2*ie]+=Le:ie!==0?(ie!==_e&&b.bl_tree[2*ie]++,b.bl_tree[2*F]++):Le<=10?b.bl_tree[2*j]++:b.bl_tree[2*re]++,_e=ie,We=(Le=0)===Ce?(Oe=138,3):ie===Ce?(Oe=6,3):(Oe=7,4))}function le(b,P,Q){var fe,ie,_e=-1,Ce=P[1],Le=0,Oe=7,We=4;for(Ce===0&&(Oe=138,We=3),fe=0;fe<=Q;fe++)if(ie=Ce,Ce=P[2*(fe+1)+1],!(++Le<Oe&&ie===Ce)){if(Le<We)for(;ee(b,ie,b.bl_tree),--Le!=0;);else ie!==0?(ie!==_e&&(ee(b,ie,b.bl_tree),Le--),ee(b,F,b.bl_tree),z(b,Le-3,2)):Le<=10?(ee(b,j,b.bl_tree),z(b,Le-3,3)):(ee(b,re,b.bl_tree),z(b,Le-11,7));_e=ie,We=(Le=0)===Ce?(Oe=138,3):ie===Ce?(Oe=6,3):(Oe=7,4)}}l(oe);var N=!1;function w(b,P,Q,fe){z(b,(c<<1)+(fe?1:0),3),function(ie,_e,Ce,Le){Y(ie),B(ie,Ce),B(ie,~Ce),o.arraySet(ie.pending_buf,ie.window,_e,Ce,ie.pending),ie.pending+=Ce}(b,P,Q)}i._tr_init=function(b){N||(function(){var P,Q,fe,ie,_e,Ce=new Array(k+1);for(ie=fe=0;ie<h-1;ie++)for(se[ie]=fe,P=0;P<1<<$[ie];P++)T[fe++]=ie;for(T[fe-1]=ie,ie=_e=0;ie<16;ie++)for(oe[ie]=_e,P=0;P<1<<M[ie];P++)X[_e++]=ie;for(_e>>=7;ie<f;ie++)for(oe[ie]=_e<<7,P=0;P<1<<M[ie]-7;P++)X[256+_e++]=ie;for(Q=0;Q<=k;Q++)Ce[Q]=0;for(P=0;P<=143;)H[2*P+1]=8,P++,Ce[8]++;for(;P<=255;)H[2*P+1]=9,P++,Ce[9]++;for(;P<=279;)H[2*P+1]=7,P++,Ce[7]++;for(;P<=287;)H[2*P+1]=8,P++,Ce[8]++;for(C(H,g+1,Ce),P=0;P<f;P++)R[2*P+1]=5,R[2*P]=V(P,5);ye=new me(H,$,p+1,g,k),ae=new me(R,M,0,f,k),ue=new me(new Array(0),D,0,S,y)}(),N=!0),b.l_desc=new de(b.dyn_ltree,ye),b.d_desc=new de(b.dyn_dtree,ae),b.bl_desc=new de(b.bl_tree,ue),b.bi_buf=0,b.bi_valid=0,L(b)},i._tr_stored_block=w,i._tr_flush_block=function(b,P,Q,fe){var ie,_e,Ce=0;0<b.level?(b.strm.data_type===2&&(b.strm.data_type=function(Le){var Oe,We=4093624447;for(Oe=0;Oe<=31;Oe++,We>>>=1)if(1&We&&Le.dyn_ltree[2*Oe]!==0)return a;if(Le.dyn_ltree[18]!==0||Le.dyn_ltree[20]!==0||Le.dyn_ltree[26]!==0)return s;for(Oe=32;Oe<p;Oe++)if(Le.dyn_ltree[2*Oe]!==0)return s;return a}(b)),ge(b,b.l_desc),ge(b,b.d_desc),Ce=function(Le){var Oe;for(I(Le,Le.dyn_ltree,Le.l_desc.max_code),I(Le,Le.dyn_dtree,Le.d_desc.max_code),ge(Le,Le.bl_desc),Oe=S-1;3<=Oe&&Le.bl_tree[2*he[Oe]+1]===0;Oe--);return Le.opt_len+=3*(Oe+1)+5+5+4,Oe}(b),ie=b.opt_len+3+7>>>3,(_e=b.static_len+3+7>>>3)<=ie&&(ie=_e)):ie=_e=Q+5,Q+4<=ie&&P!==-1?w(b,P,Q,fe):b.strategy===4||_e===ie?(z(b,2+(fe?1:0),3),G(b,H,R)):(z(b,4+(fe?1:0),3),function(Le,Oe,We,$e){var Je;for(z(Le,Oe-257,5),z(Le,We-1,5),z(Le,$e-4,4),Je=0;Je<$e;Je++)z(Le,Le.bl_tree[2*he[Je]+1],3);le(Le,Le.dyn_ltree,Oe-1),le(Le,Le.dyn_dtree,We-1)}(b,b.l_desc.max_code+1,b.d_desc.max_code+1,Ce+1),G(b,b.dyn_ltree,b.dyn_dtree)),L(b),fe&&Y(b)},i._tr_tally=function(b,P,Q){return b.pending_buf[b.d_buf+2*b.last_lit]=P>>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&P,b.pending_buf[b.l_buf+b.last_lit]=255&Q,b.last_lit++,P===0?b.dyn_ltree[2*Q]++:(b.matches++,P--,b.dyn_ltree[2*(T[Q]+p+1)]++,b.dyn_dtree[2*A(P)]++),b.last_lit===b.lit_bufsize-1},i._tr_align=function(b){z(b,2,3),ee(b,_,H),function(P){P.bi_valid===16?(B(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):8<=P.bi_valid&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)}(b)}},{"../utils/common":41}],53:[function(r,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,i){(function(o){(function(a,s){if(!a.setImmediate){var l,c,h,p,g=1,f={},S=!1,v=a.document,k=Object.getPrototypeOf&&Object.getPrototypeOf(a);k=k&&k.setTimeout?k:a,l={}.toString.call(a.process)==="[object process]"?function(F){yt.nextTick(function(){y(F)})}:function(){if(a.postMessage&&!a.importScripts){var F=!0,j=a.onmessage;return a.onmessage=function(){F=!1},a.postMessage("","*"),a.onmessage=j,F}}()?(p="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",_,!1):a.attachEvent("onmessage",_),function(F){a.postMessage(p+F,"*")}):a.MessageChannel?((h=new MessageChannel).port1.onmessage=function(F){y(F.data)},function(F){h.port2.postMessage(F)}):v&&"onreadystatechange"in v.createElement("script")?(c=v.documentElement,function(F){var j=v.createElement("script");j.onreadystatechange=function(){y(F),j.onreadystatechange=null,c.removeChild(j),j=null},c.appendChild(j)}):function(F){setTimeout(y,0,F)},k.setImmediate=function(F){typeof F!="function"&&(F=new Function(""+F));for(var j=new Array(arguments.length-1),re=0;re<j.length;re++)j[re]=arguments[re+1];var $={callback:F,args:j};return f[g]=$,l(g),g++},k.clearImmediate=d}function d(F){delete f[F]}function y(F){if(S)setTimeout(y,0,F);else{var j=f[F];if(j){S=!0;try{(function(re){var $=re.callback,M=re.args;switch(M.length){case 0:$();break;case 1:$(M[0]);break;case 2:$(M[0],M[1]);break;case 3:$(M[0],M[1],M[2]);break;default:$.apply(s,M)}})(j)}finally{d(F),S=!1}}}}
454function _(F){F.source===a&&typeof F.data=="string"&&F.data.indexOf(p)===0&&y(+F.data.slice(p.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof Ji<"u"?Ji:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(V4);var OT=V4.exports;const FT=Xx(OT);var Kh={exports:{}},DT={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function jT(e){return e&&e.replace?e.replace(/([&"<>'])/g,function(t,r){return DT[r]}):e}var BT=jT,y0=BT,kw=Fg.Stream,MT="    ";function zT(e,t){typeof t!="object"&&(t={indent:t});var r=t.stream?new kw:null,n="",i=!1,o=t.indent?t.indent===!0?MT:t.indent:"",a=!0;function s(g){a?yt.nextTick(g):g()}function l(g,f){if(f!==void 0&&(n+=f),g&&!i&&(r=r||new kw,i=!0),g&&i){var S=n;s(function(){r.emit("data",S)}),n=""}}function c(g,f){$g(l,Xh(g,o,o?1:0),f)}function h(){if(r){var g=n;s(function(){r.emit("data",g),r.emit("end"),r.readable=!1,r.emit("close")})}}function p(g){var f=g.encoding||"UTF-8",S={version:"1.0",encoding:f};g.standalone&&(S.standalone=g.standalone),c({"?xml":{_attr:S}}),n=n.replace("/>","?>")}return s(function(){a=!1}),t.declaration&&p(t.declaration),e&&e.forEach?e.forEach(function(g,f){var S;f+1===e.length&&(S=h),c(g,S)}):c(e,h),r?(r.readable=!0,r):n}function UT(){var e=Array.prototype.slice.call(arguments),t={_elem:Xh(e)};return t.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var n=this,i=this._elem.indent;$g(this.append,Xh(r,i,this._elem.icount+(i?1:0)),function(){n.append(!0)})},t.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},t}function qT(e,t){return new Array(t||0).join(e||"")}function Xh(e,t,r){r=r||0;var n=qT(t,r),i,o=e,a=!1;if(typeof e=="object"){var s=Object.keys(e);if(i=s[0],o=e[i],o&&o._elem)return o._elem.name=i,o._elem.icount=r,o._elem.indent=t,o._elem.indents=n,o._elem.interrupt=o,o._elem}var l=[],c=[],h;function p(g){var f=Object.keys(g);f.forEach(function(S){l.push(WT(S,g[S]))})}switch(typeof o){case"object":if(o===null)break;o._attr&&p(o._attr),o._cdata&&c.push(("<![CDATA["+o._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),o.forEach&&(h=!1,c.push(""),o.forEach(function(g){if(typeof g=="object"){var f=Object.keys(g)[0];f=="_attr"?p(g._attr):c.push(Xh(g,t,r+1))}else c.pop(),h=!0,c.push(y0(g))}),h||c.push(""));break;default:c.push(y0(o))}return{name:i,interrupt:a,attributes:l,content:c,icount:r,indents:n,indent:t}}function $g(e,t,r){if(typeof t!="object")return e(!1,t);var n=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var a=t.content.shift();if(a!==void 0){if(o(a))return;$g(e,a)}}e(!1,(n>1?t.indents:"")+(t.name?"</"+t.name+">":"")+(t.indent&&!r?`
455`:"")),r&&r()}function o(a){return a.interrupt?(a.interrupt.append=e,a.interrupt.end=i,a.interrupt=!1,e(!0),!0):!1}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?`
456`:"")),!n)return e(!1,t.indent?`
457`:"");o(t)||i()}function WT(e,t){return e+'="'+y0(t)+'"'}Kh.exports=zT;Kh.exports.element=Kh.exports.Element=UT;var HT=Kh.exports;const yr=Xx(HT),Lw=0,Cw=32,VT=32,$T=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==VT)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const i=r.replace(/(..)/g,"$1 ").trim().split(" ").map(l=>parseInt(l,16));i.reverse();const a=e.slice(Lw,Cw).map((l,c)=>l^i[c%i.length]);return Buffer.concat([e.slice(0,Lw),a,e.slice(Cw)])};class GT{format(t,r={stack:[]}){const n=t.prepForXml(r);if(n)return n;throw Error("XMLComponent did not format correctly")}}class KT{replace(t,r,n){let i=t;return r.forEach((o,a)=>{i=i.replace(new RegExp(`{${o.fileName}}`,"g"),(n+a).toString())}),i}getMediaData(t,r){return r.Array.filter(n=>t.search(`{${n.fileName}}`)>0)}}class XT{replace(t,r){let n=t;for(const i of r)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}}class YT{constructor(){Be(this,"formatter"),Be(this,"imageReplacer"),Be(this,"numberingReplacer"),this.formatter=new GT,this.imageReplacer=new KT,this.numberingReplacer=new XT}compile(t,r){const n=new FT,i=this.xmlifyFile(t,r),o=new Map(Object.entries(i));for(const[,a]of o)if(Array.isArray(a))for(const s of a)n.file(s.path,s.data);else n.file(a.path,a.data);for(const{stream:a,fileName:s}of t.Media.Array)n.file(`word/media/${s}`,a);for(const{data:a,name:s,fontKey:l}of t.FontTable.fontOptionsWithKey){const[c]=s.split(".");n.file(`word/fonts/${c}.odttf`,$T(a,l))}return n}xmlifyFile(t,r){const n=t.Document.Relationships.RelationshipCount+1,i=yr(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,t.Media);
457return{Relationships:{data:(o.forEach((a,s)=>{t.Document.Relationships.createRelationship(n+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),yr(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const a=this.imageReplacer.replace(i,o,n);return this.numberingReplacer.replace(a,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const a=yr(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(a,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:yr(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:yr(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:yr(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((a,s)=>{const l=yr(this.formatter.format(a.View,{viewWrapper:a,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(l,t.Media).forEach((h,p)=>{a.Relationships.createRelationship(p,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${h.fileName}`)}),{data:yr(this.formatter.format(a.Relationships,{viewWrapper:a,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:t.Footers.map((a,s)=>{const l=yr(this.formatter.format(a.View,{viewWrapper:a,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(l,t.Media).forEach((h,p)=>{a.Relationships.createRelationship(p,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${h.fileName}`)}),{data:yr(this.formatter.format(a.Relationships,{viewWrapper:a,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:t.Headers.map((a,s)=>{const l=yr(this.formatter.format(a.View,{viewWrapper:a,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(l,t.Media),h=this.imageReplacer.replace(l,c,0);return{data:this.numberingReplacer.replace(h,t.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:t.Footers.map((a,s)=>{const l=yr(this.formatter.format(a.View,{viewWrapper:a,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(l,t.Media),h=this.imageReplacer.replace(l,c,0);return{data:this.numberingReplacer.replace(h,t.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:yr(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:yr(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:yr(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:yr(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:yr(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:yr(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:yr(this.formatter.format(t.Comments,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:yr(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:yr(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const JT={WITH_2_BLANKS:"  "},Au=e=>e===!0?JT.WITH_2_BLANKS:e===!1?void 0:e;class $4{static toString(t,r){return Bf(this,null,function*(){return yield this.compiler.compile(t,Au(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(t,r){return Bf(this,null,function*(){return yield this.compiler.compile(t,Au(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(t,r){return Bf(this,null,function*(){return yield this.compiler.compile(t,Au(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(t,r){return Bf(this,null,function*(){return yield this.compiler.compile(t,Au(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(t,r){const n=new Fg.Stream;return this.compiler.compile(t,Au(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>{n.emit("data",o),n.emit("end")}),n}}Be($4,"compiler",new YT);var G4={exports:{}};(function(e,t){(function(r,n){n()})(cu,function(){function r(c,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,h,p){var g=new XMLHttpRequest;g.open("GET",c),g.responseType="blob",g.onload=function(){l(g.response,h,p)},g.onerror=function(){console.error("could not download file")},g.send()}function i(c){var h=new XMLHttpRequest;h.open("HEAD",c,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");
457h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(h)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof cu=="object"&&cu.global===cu?cu:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,h,p){var g=a.URL||a.webkitURL,f=document.createElement("a");h=h||c.name||"download",f.download=h,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?o(f):i(f.href)?n(c,h,p):o(f,f.target="_blank")):(f.href=g.createObjectURL(c),setTimeout(function(){g.revokeObjectURL(f.href)},4e4),setTimeout(function(){o(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,h,p){if(h=h||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,p),h);else if(i(c))n(c,h,p);else{var g=document.createElement("a");g.href=c,g.target="_blank",setTimeout(function(){o(g)})}}:function(c,h,p,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof c=="string")return n(c,h,p);var f=c.type==="application/octet-stream",S=/constructor/i.test(a.HTMLElement)||a.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||f&&S||s)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var _=k.result;_=v?_:_.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=_:location=_,g=null},k.readAsDataURL(c)}else{var d=a.URL||a.webkitURL,y=d.createObjectURL(c);g?g.location=y:location.href=y,g=null,setTimeout(function(){d.revokeObjectURL(y)},4e4)}});a.saveAs=l.saveAs=l,e.exports=l})})(G4);var ZT=G4.exports;async function QT(e){try{const t=new RT({sections:[{properties:{},children:eP(e)}]}),r=await $4.toBlob(t);return ZT.saveAs(r,`${e.title||"infographic"}.docx`),!0}catch(t){return console.error("Error generating DOCX:",t),!1}}function eP(e){const t=[];t.push(new Ni({text:e.title,heading:yw.TITLE,alignment:_n.CENTER,spacing:{after:400}}));for(const r of e.sections)switch(r.type){case"heading":t.push(new Ni({text:r.content,heading:yw.HEADING_1,spacing:{before:400,after:200}}));break;case"text":t.push(new Ni({children:[new Vi({text:r.content,size:24})],spacing:{before:200,after:200}}));break;case"stat":t.push(new Ni({children:[new Vi({text:r.content,bold:!0,size:32})],alignment:_n.CENTER,spacing:{before:300,after:300}}));break;case"list":r.content.split(`
458`).forEach(o=>{t.push(new Ni({children:[new Vi({text:`• ${o}`,size:24})],spacing:{before:100,after:100}}))});break;case"quote":t.push(new Ni({children:[new Vi({text:`"${r.content}"`,italics:!0,size:24})],alignment:_n.CENTER,spacing:{before:300,after:300}}));break;case"comparison":const[n,i]=r.content.split("|").map(o=>o.trim());t.push(new Ni({children:[new Vi({text:n,size:24}),new Vi({text:" vs ",size:24,bold:!0}),new Vi({text:i,size:24})],alignment:_n.CENTER,spacing:{before:200,after:200}}));break;case"timeline":r.content.split(`
459`).forEach((o,a)=>{t.push(new Ni({children:[new Vi({text:`${a+1}. ${o}`,size:24})],spacing:{before:100,after:100}}))});break}return t}const tP=[{id:"vibrant",name:"Vibrant",palette:{background:"#ffffff",text:"#1f2937",primary:"#6366f1",secondary:"#ec4899",accent:"#8b5cf6"},typography:{headingFont:"font-sans",bodyFont:"font-sans",scale:1.1},spacing:{sectionGap:"gap-6",contentPadding:"p-6"},effects:{sectionHover:"hover:shadow-lg hover:shadow-indigo-100 hover:scale-[1.002]",imageHover:"hover:scale-105",transition:"transition-all duration-300 ease-in-out"}},{id:"sunset",name:"Sunset",palette:{background:"#fffbf5",text:"#1e293b",primary:"#f97316",secondary:"#f43f5e",accent:"#eab308"},typography:{headingFont:"font-serif",bodyFont:"font-sans",scale:1.2},spacing:{sectionGap:"gap-8",contentPadding:"p-8"},effects:{sectionHover:"hover:shadow-xl hover:shadow-orange-100 hover:scale-[1.003]",imageHover:"hover:scale-110",transition:"transition-all duration-500 ease-in-out"}},{id:"ocean",name:"Ocean",palette:{background:"#f0f9ff",text:"#0f172a",primary:"#0ea5e9",secondary:"#06b6d4",accent:"#3b82f6"},typography:{headingFont:"font-sans",bodyFont:"font-sans",scale:1},spacing:{sectionGap:"gap-6",contentPadding:"p-6"},effects:{sectionHover:"hover:shadow-lg hover:shadow-sky-100 hover:scale-[1.002]",imageHover:"hover:opacity-90",transition:"transition-all duration-300 ease-in-out"}},{id:"forest",name:"Forest",palette:{background:"#f0fdf4",text:"#064e3b",primary:"#059669",secondary:"#10b981",accent:"#34d399"},typography:{headingFont:"font-serif",bodyFont:"font-sans",scale:1.1},spacing:{sectionGap:"gap-6",contentPadding:"p-6"},effects:{sectionHover:"hover:shadow-lg hover:shadow-emerald-100 hover:scale-[1.002]",imageHover:"hover:scale-105",transition:"transition-all duration-300 ease-in-out"}}],rP={size:"A4",orientation:"landscape",margin:10},nP={content:{title:"My Infographic",sections:[]},templateId:"default",palette:tP[0].palette,topic:mx[0]};function iP(){const[e,t]=Te.useState(nP);return{infographic:e,updateInfographic:o=>{t(a=>({...a,...o}))},exportInfographic:async o=>{try{if(o==="pdf"){const a=await yk(e.content,rP);a&&a.save(`${e.content.title||"infographic"}.pdf`)}else await QT(e.content)}catch(a){console.error(`Error exporting ${o.toUpperCase()}:`,a)}},applyTemplate:o=>{t({...e,templateId:o.id,content:o.layout})}}}function oP(){const[e,t]=Te.useState(!0),{infographic:r,updateInfographic:n,exportInfographic:i}=iP();return xe.jsxs("div",{className:"h-screen bg-gradient-to-br from-gray-50 to-gray-100 flex flex-col",children:[xe.jsx(L_,{onExport:o=>i(o),toggleSidebar:()=>t(!e)}),xe.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[xe.jsx(SE,{isOpen:e,infographic:r,onUpdate:n}),xe.jsx("main",{className:"flex-1 overflow-auto p-8 transition-all duration-300 ease-in-out",children:xe.jsx("div",{className:"max-w-5xl mx-auto",children:xe.jsx(_E,{infographic:r})})})]})]})}qb(document.getElementById("root")).render(xe.jsx(Te.StrictMode,{children:xe.jsx(oP,{})}));export{Ot as _,cu as c,R3 as g};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.