PageSourceSearch

https://fitness-challenge-gen.lovable.app/assets/index-BmjvypRj.js

js fitness-challenge-gen.lovable.app collected 2026-10-03 03:31:19 UTC 764,068 bytes, 340 lines download raw bytes

vendor: 5,348 bytes, lines 1-9
1var r6=Object.defineProperty;var Ug=e=>{throw TypeError(e)};var i6=(e,t,n)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Dt=(e,t,n)=>i6(e,typeof t!="symbol"?t+"":t,n),t1=(e,t,n)=>t.has(e)||Ug("Cannot "+n);var xe=(e,t,n)=>(t1(e,t,"read from private field"),n?n.call(e):t.get(e)),Ot=(e,t,n)=>t.has(e)?Ug("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ht=(e,t,n,r)=>(t1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),or=(e,t,n)=>(t1(e,t,"access private method"),n);var id=(e,t,n,r)=>({set _(i){ht(e,t,i,n)},get _(){return xe(e,t,r)}});function o6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var vR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yw={exports:{}},Uh={},ww={exports:{}},St={};/**
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 df=Symbol.for("react.element"),a6=Symbol.for("react.portal"),s6=Symbol.for("react.fragment"),l6=Symbol.for("react.strict_mode"),u6=Symbol.for("react.profiler"),c6=Symbol.for("react.provider"),f6=Symbol.for("react.context"),d6=Symbol.for("react.forward_ref"),h6=Symbol.for("react.suspense"),p6=Symbol.for("react.memo"),m6=Symbol.for("react.lazy"),qg=Symbol.iterator;function g6(e){return e===null||typeof e!="object"?null:(e=qg&&e[qg]||e["@@iterator"],typeof e=="function"?e:null)}var bw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xw=Object.assign,_w={};function _u(e,t,n){this.props=e,this.context=t,this.refs=_w,this.updater=n||bw}_u.prototype.isReactComponent={};_u.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")};_u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sw(){}Sw.prototype=_u.prototype;function F2(e,t,n){this.props=e,this.context=t,this.refs=_w,this.updater=n||bw}var M2=F2.prototype=new Sw;M2.constructor=F2;xw(M2,_u.prototype);M2.isPureReactComponent=!0;var $g=Array.isArray,Nw=Object.prototype.hasOwnProperty,D2={current:null},kw={key:!0,ref:!0,__self:!0,__source:!0};function Aw(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Nw.call(t,r)&&!kw.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;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(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:df,type:e,key:o,ref:a,props:i,_owner:D2.current}}function v6(e,t){return{$$typeof:df,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function B2(e){return typeof e=="object"&&e!==null&&e.$$typeof===df}function y6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hg=/\/+/g;function n1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?y6(""+e.key):t.toString(36)}function Fd(e,t,n,r,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 df:case a6:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+n1(a,0):r,$g(i)?(n="",e!=null&&(n=e.replace(Hg,"$&/")+"/"),Fd(i,t,n,"",function(c){return c})):i!=null&&(B2(i)&&(i=v6(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Hg,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",$g(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+n1(o,s);a+=Fd(o,t,n,l,i)}else if(l=g6(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+n1(o,s++),a+=Fd(o,t,n,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}
vendor: 4,368 bytes, lines 9-17
9function od(e,t,n){if(e==null)return e;var r=[],i=0;return Fd(e,r,"","",function(o){return t.call(n,o,i++)}),r}function w6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ar={current:null},Md={transition:null},b6={ReactCurrentDispatcher:Ar,ReactCurrentBatchConfig:Md,ReactCurrentOwner:D2};function Lw(){throw Error("act(...) is not supported in production builds of React.")}St.Children={map:od,forEach:function(e,t,n){od(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return od(e,function(){t++}),t},toArray:function(e){return od(e,function(t){return t})||[]},only:function(e){if(!B2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};St.Component=_u;St.Fragment=s6;St.Profiler=u6;St.PureComponent=F2;St.StrictMode=l6;St.Suspense=h6;St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b6;St.act=Lw;St.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xw({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=D2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Nw.call(t,l)&&!kw.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:df,type:e.type,key:i,ref:o,props:r,_owner:a}};St.createContext=function(e){return e={$$typeof:f6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:c6,_context:e},e.Consumer=e};St.createElement=Aw;St.createFactory=function(e){var t=Aw.bind(null,e);return t.type=e,t};St.createRef=function(){return{current:null}};St.forwardRef=function(e){return{$$typeof:d6,render:e}};St.isValidElement=B2;St.lazy=function(e){return{$$typeof:m6,_payload:{_status:-1,_result:e},_init:w6}};St.memo=function(e,t){return{$$typeof:p6,type:e,compare:t===void 0?null:t}};St.startTransition=function(e){var t=Md.transition;Md.transition={};try{e()}finally{Md.transition=t}};St.unstable_act=Lw;St.useCallback=function(e,t){return Ar.current.useCallback(e,t)};St.useContext=function(e){return Ar.current.useContext(e)};St.useDebugValue=function(){};St.useDeferredValue=function(e){return Ar.current.useDeferredValue(e)};St.useEffect=function(e,t){return Ar.current.useEffect(e,t)};St.useId=function(){return Ar.current.useId()};St.useImperativeHandle=function(e,t,n){return Ar.current.useImperativeHandle(e,t,n)};St.useInsertionEffect=function(e,t){return Ar.current.useInsertionEffect(e,t)};St.useLayoutEffect=function(e,t){return Ar.current.useLayoutEffect(e,t)};St.useMemo=function(e,t){return Ar.current.useMemo(e,t)};St.useReducer=function(e,t,n){return Ar.current.useReducer(e,t,n)};St.useRef=function(e){return Ar.current.useRef(e)};St.useState=function(e){return Ar.current.useState(e)};St.useSyncExternalStore=function(e,t,n){return Ar.current.useSyncExternalStore(e,t,n)};St.useTransition=function(){return Ar.current.useTransition()};St.version="18.3.1";ww.exports=St;var X=ww.exports;const Ee=vw(X),Ew=o6({__proto__:null,default:Ee},[X]);/**
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 x6=X,_6=Symbol.for("react.element"),S6=Symbol.for("react.fragment"),N6=Object.prototype.hasOwnProperty,k6=x6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A6={key:!0,ref:!0,__self:!0,__source:!0};function Cw(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)N6.call(t,r)&&!A6.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:_6,type:e,key:o,ref:a,props:i,_owner:k6.current}}Uh.Fragment=S6;Uh.jsx=Cw;Uh.jsxs=Cw;yw.exports=Uh;var U=yw.exports,Pw={exports:{}},ii={}
vendor: 10,966 bytes, lines 17-34
17,Tw={exports:{}},Rw={};/**
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(V,Q){var de=V.length;V.push(Q);e:for(;0<de;){var he=de-1>>>1,E=V[he];if(0<i(E,Q))V[he]=Q,V[de]=E,de=he;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var Q=V[0],de=V.pop();if(de!==Q){V[0]=de;e:for(var he=0,E=V.length,F=E>>>1;he<F;){var W=2*(he+1)-1,J=V[W],ne=W+1,re=V[ne];if(0>i(J,de))ne<E&&0>i(re,J)?(V[he]=re,V[ne]=de,he=ne):(V[he]=J,V[W]=de,he=W);else if(ne<E&&0>i(re,de))V[he]=re,V[ne]=de,he=ne;else break e}}return Q}function i(V,Q){var de=V.sortIndex-Q.sortIndex;return de!==0?de:V.id-Q.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,m=null,g=3,d=!1,S=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(V){for(var Q=n(c);Q!==null;){if(Q.callback===null)r(c);else if(Q.startTime<=V)r(c),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(c)}}function A(V){if(w=!1,N(V),!S)if(n(l)!==null)S=!0,se(M);else{var Q=n(c);Q!==null&&ue(A,Q.startTime-V)}}function M(V,Q){S=!1,w&&(w=!1,y(H),H=-1),d=!0;var de=g;try{for(N(Q),m=n(l);m!==null&&(!(m.expirationTime>Q)||V&&!P());){var he=m.callback;if(typeof he=="function"){m.callback=null,g=m.priorityLevel;var E=he(m.expirationTime<=Q);Q=e.unstable_now(),typeof E=="function"?m.callback=E:m===n(l)&&r(l),N(Q)}else r(l);m=n(l)}if(m!==null)var F=!0;else{var W=n(c);W!==null&&ue(A,W.startTime-Q),F=!1}return F}finally{m=null,g=de,d=!1}}var K=!1,Y=null,H=-1,I=5,Z=-1;function P(){return!(e.unstable_now()-Z<I)}function R(){if(Y!==null){var V=e.unstable_now();Z=V;var Q=!0;try{Q=Y(!0,V)}finally{Q?G():(K=!1,Y=null)}}else K=!1}var G;if(typeof x=="function")G=function(){x(R)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,ae=B.port2;B.port1.onmessage=R,G=function(){ae.postMessage(null)}}else G=function(){_(R,0)};function se(V){Y=V,K||(K=!0,G())}function ue(V,Q){H=_(function(){V(e.unstable_now())},Q)}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(V){V.callback=null},e.unstable_continueExecution=function(){S||d||(S=!0,se(M))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(V){switch(g){case 1:case 2:case 3:var Q=3;break;default:Q=g}var de=g;g=Q;try{return V()}finally{g=de}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var de=g;g=V;try{return Q()}finally{g=de}},e.unstable_scheduleCallback=function(V,Q,de){var he=e.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?he+de:he):de=he,V){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=de+E,V={id:h++,callback:Q,priorityLevel:V,startTime:de,expirationTime:E,sortIndex:-1},de>he?(V.sortIndex=de,t(c,V),n(l)===null&&V===n(c)&&(w?(y(H),H=-1):w=!0,ue(A,de-he))):(V.sortIndex=E,t(l,V),S||d||(S=!0,se(M))),V},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(V){var Q=g;return function(){var de=g;g=Q;try{return V.apply(this,arguments)}finally{g=de}}}})(Rw);Tw.exports=Rw;var L6=Tw.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 E6=X,ri=L6;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Ow=new Set,Oc={};function Zs(e,t){cu(e,t),cu(e+"Capture",t)}function cu(e,t){for(Oc[e]=t,e=0;e<t.length;e++)Ow.add(t[e])}var Wo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u0=Object.prototype.hasOwnProperty,C6=/^[: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]*$/,Wg={},Vg={};function P6(e){return u0.call(Vg,e)?!0:u0.call(Wg,e)?!1:C6.test(e)?Vg[e]=!0:(Wg[e]=!0,!1)}function T6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R6(e,t,n,r){if(t===null||typeof t>"u"||T6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Lr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){er[e]=new Lr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];er[t]=new Lr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){er[e]=new Lr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){er[e]=new Lr(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){er[e]=new Lr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){er[e]=new Lr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){er[e]=new Lr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){er[e]=new Lr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){er[e]=new Lr(e,5,!1,e.toLowerCase(),null,!1,!1)});var z2=/[\-:]([a-z])/g;function U2(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(z2,U2);er[t]=new Lr(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(z2,U2);er[t]=new Lr(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(z2,U2);er[t]=new Lr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){er[e]=new Lr(e,1,!1,e.toLowerCase(),null,!1,!1)});er.xlinkHref=new Lr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){er[e]=new Lr(e,1,!1,e.toLowerCase(),null,!0,!0)});function q2(e,t,n,r){var i=er.hasOwnProperty(t)?er[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(R6(t,n,i,r)&&(n=null),r||i===null?P6(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Xo=E6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ad=Symbol.for("react.element"),Cl=Symbol.for("react.portal"),Pl=Symbol.for("react.fragment"),$2=Symbol.for("react.strict_mode"),c0=Symbol.for("react.profiler"),Iw=Symbol.for("react.provider"),jw=Symbol.for("react.context"),H2=Symbol.for("react.forward_ref"),f0=Symbol.for("react.suspense"),d0=Symbol.for("react.suspense_list"),W2=Symbol.for("react.memo"),wa=Symbol.for("react.lazy"),Fw=Symbol.for("react.offscreen"),Gg=Symbol.iterator;function ec(e){return e===null||typeof e!="object"?null:(e=Gg&&e[Gg]||e["@@iterator"],typeof e=="function"?e:null)}var dn=Object.assign,r1;function hc(e){if(r1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);r1=t&&t[1]||""}return`
34`+r1+e}var i1=!1;function o1(e,t){if(!e||i1)return"";i1=!0;var n=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 r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 4,643 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),o=r.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{i1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hc(e):""}function O6(e){switch(e.tag){case 5:return hc(e.type);case 16:return hc("Lazy");case 13:return hc("Suspense");case 19:return hc("SuspenseList");case 0:case 2:case 15:return e=o1(e.type,!1),e;case 11:return e=o1(e.type.render,!1),e;case 1:return e=o1(e.type,!0),e;default:return""}}function h0(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 Pl:return"Fragment";case Cl:return"Portal";case c0:return"Profiler";case $2:return"StrictMode";case f0:return"Suspense";case d0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jw:return(e.displayName||"Context")+".Consumer";case Iw:return(e._context.displayName||"Context")+".Provider";case H2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W2:return t=e.displayName||null,t!==null?t:h0(e.type)||"Memo";case wa:t=e._payload,e=e._init;try{return h0(e(t))}catch{}}return null}function I6(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 h0(t);case 8:return t===$2?"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 Wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j6(e){var t=Mw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sd(e){e._valueTracker||(e._valueTracker=j6(e))}function Dw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ih(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 p0(e,t){var n=t.checked;return dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bw(e,t){t=t.checked,t!=null&&q2(e,"checked",t,!1)}function m0(e,t){Bw(e,t);var n=Wa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?g0(e,t.type,n):t.hasOwnProperty("defaultValue")&&g0(e,t.type,Wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}
vendor: 13,550 bytes, line 37
37function g0(e,t,n){(t!=="number"||ih(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pc=Array.isArray;function ql(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Wa(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function v0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Le(91));return dn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Le(92));if(pc(n)){if(1<n.length)throw Error(Le(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wa(n)}}function zw(e,t){var n=Wa(t.value),r=Wa(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Uw(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 y0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Uw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ld,qw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ld=ld||document.createElement("div"),ld.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ld.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ic(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wc={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},F6=["Webkit","ms","Moz","O"];Object.keys(wc).forEach(function(e){F6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wc[t]=wc[e]})});function $w(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wc.hasOwnProperty(e)&&wc[e]?(""+t).trim():t+"px"}function Hw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$w(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var M6=dn({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 w0(e,t){if(t){if(M6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function b0(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 x0=null;function V2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _0=null,$l=null,Hl=null;function Qg(e){if(e=mf(e)){if(typeof _0!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=Vh(t),_0(e.stateNode,e.type,t))}}function Ww(e){$l?Hl?Hl.push(e):Hl=[e]:$l=e}function Vw(){if($l){var e=$l,t=Hl;if(Hl=$l=null,Qg(e),t)for(e=0;e<t.length;e++)Qg(t[e])}}function Gw(e,t){return e(t)}function Yw(){}var a1=!1;function Kw(e,t,n){if(a1)return e(t,n);a1=!0;try{return Gw(e,t,n)}finally{a1=!1,($l!==null||Hl!==null)&&(Yw(),Vw())}}function jc(e,t){var n=e.stateNode;if(n===null)return null;var r=Vh(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Le(231,t,typeof n));return n}var S0=!1;if(Wo)try{var tc={};Object.defineProperty(tc,"passive",{get:function(){S0=!0}}),window.addEventListener("test",tc,tc),window.removeEventListener("test",tc,tc)}catch{S0=!1}function D6(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var bc=!1,oh=null,ah=!1,N0=null,B6={onError:function(e){bc=!0,oh=e}};function z6(e,t,n,r,i,o,a,s,l){bc=!1,oh=null,D6.apply(B6,arguments)}function U6(e,t,n,r,i,o,a,s,l){if(z6.apply(this,arguments),bc){if(bc){var c=oh;bc=!1,oh=null}else throw Error(Le(198));ah||(ah=!0,N0=c)}}function Xs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zw(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 Jg(e){if(Xs(e)!==e)throw Error(Le(188))}function q6(e){var t=e.alternate;if(!t){if(t=Xs(e),t===null)throw Error(Le(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Jg(i),e;if(o===r)return Jg(i),t;o=o.sibling}throw Error(Le(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Le(189))}}if(n.alternate!==r)throw Error(Le(190))}if(n.tag!==3)throw Error(Le(188));return n.stateNode.current===n?e:t}function Xw(e){return e=q6(e),e!==null?Qw(e):null}function Qw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qw(e);if(t!==null)return t;e=e.sibling}return null}var Jw=ri.unstable_scheduleCallback,e5=ri.unstable_cancelCallback,$6=ri.unstable_shouldYield,H6=ri.unstable_requestPaint,Nn=ri.unstable_now,W6=ri.unstable_getCurrentPriorityLevel,G2=ri.unstable_ImmediatePriority,eb=ri.unstable_UserBlockingPriority,sh=ri.unstable_NormalPriority,V6=ri.unstable_LowPriority,tb=ri.unstable_IdlePriority,qh=null,ho=null;function G6(e){if(ho&&typeof ho.onCommitFiberRoot=="function")try{ho.onCommitFiberRoot(qh,e,void 0,(e.current.flags&128)===128)}catch{}}var Di=Math.clz32?Math.clz32:Z6,Y6=Math.log,K6=Math.LN2;function Z6(e){return e>>>=0,e===0?32:31-(Y6(e)/K6|0)|0}var ud=64,cd=4194304;function mc(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 lh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=mc(s):(o&=a,o!==0&&(r=mc(o)))}else a=n&~i,a!==0?r=mc(a):o!==0&&(r=mc(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Di(t),i=1<<n,r|=e[n],t&=~i;return r}function X6(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 Q6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Di(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=X6(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function k0(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nb(){var e=ud;return ud<<=1,!(ud&4194240)&&(ud=64),e}function s1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Di(t),e[t]=n}function J6(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Di(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Y2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Di(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var zt=0;function rb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ib,K2,ob,ab,sb,A0=!1,fd=[],Ia=null,ja=null,Fa=null,Fc=new Map,Mc=new Map,xa=[],eS="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 t5(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":ja=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":Fc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mc.delete(t.pointerId)}}function nc(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=mf(t),t!==null&&K2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function tS(e,t,n,r,i){switch(t){case"focusin":return Ia=nc(Ia,e,t,n,r,i),!0;case"dragenter":return ja=nc(ja,e,t,n,r,i),!0;case"mouseover":return Fa=nc(Fa,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Fc.set(o,nc(Fc.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Mc.set(o,nc(Mc.get(o)||null,e,t,n,r,i)),!0}return!1}function lb(e){var t=ks(e.target);if(t!==null){var n=Xs(t);if(n!==null){if(t=n.tag,t===13){if(t=Zw(n),t!==null){e.blockedOn=t,sb(e.priority,function(){ob(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=L0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);x0=r,n.target.dispatchEvent(r),x0=null}else return t=mf(n),t!==null&&K2(t),e.blockedOn=n,!1;t.shift()}return!0}function n5(e,t,n){Dd(e)&&n.delete(t)}function nS(){A0=!1,Ia!==null&&Dd(Ia)&&(Ia=null),ja!==null&&Dd(ja)&&(ja=null),Fa!==null&&Dd(Fa)&&(Fa=null),Fc.forEach(n5),Mc.forEach(n5)}function rc(e,t){e.blockedOn===t&&(e.blockedOn=null,A0||(A0=!0,ri.unstable_scheduleCallback(ri.unstable_NormalPriority,nS)))}function Dc(e){function t(i){return rc(i,e)}if(0<fd.length){rc(fd[0],e);for(var n=1;n<fd.length;n++){var r=fd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ia!==null&&rc(Ia,e),ja!==null&&rc(ja,e),Fa!==null&&rc(Fa,e),Fc.forEach(t),Mc.forEach(t),n=0;n<xa.length;n++)r=xa[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xa.length&&(n=xa[0],n.blockedOn===null);)lb(n),n.blockedOn===null&&xa.shift()}var Wl=Xo.ReactCurrentBatchConfig,uh=!0;function rS(e,t,n,r){var i=zt,o=Wl.transition;Wl.transition=null;try{zt=1,Z2(e,t,n,r)}finally{zt=i,Wl.transition=o}}function iS(e,t,n,r){var i=zt,o=Wl.transition;Wl.transition=null;try{zt=4,Z2(e,t,n,r)}finally{zt=i,Wl.transition=o}}function Z2(e,t,n,r){if(uh){var i=L0(e,t,n,r);if(i===null)v1(e,t,r,ch,n),t5(e,r);else if(tS(i,e,t,n,r))r.stopPropagation();else if(t5(e,r),t&4&&-1<eS.indexOf(e)){for(;i!==null;){var o=mf(i);if(o!==null&&ib(o),o=L0(e,t,n,r),o===null&&v1(e,t,r,ch,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else v1(e,t,r,null,n)}}var ch=null;function L0(e,t,n,r){if(ch=null,e=V2(r),e=ks(e),e!==null)if(t=Xs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ch=e,null}
vendor: 9,127 bytes, line 37
37function ub(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 G2:return 1;case eb:return 4;case sh:case V6:return 16;case tb:return 536870912;default:return 16}default:return 16}}var Ca=null,X2=null,Bd=null;function cb(){if(Bd)return Bd;var e,t=X2,n=t.length,r,i="value"in Ca?Ca.value:Ca.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Bd=i.slice(e,1<r?1-r:void 0)}function zd(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 dd(){return!0}function r5(){return!1}function oi(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?dd:r5,this.isPropagationStopped=r5,this}return dn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=dd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=dd)},persist:function(){},isPersistent:dd}),t}var Su={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Q2=oi(Su),pf=dn({},Su,{view:0,detail:0}),oS=oi(pf),l1,u1,ic,$h=dn({},pf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J2,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!==ic&&(ic&&e.type==="mousemove"?(l1=e.screenX-ic.screenX,u1=e.screenY-ic.screenY):u1=l1=0,ic=e),l1)},movementY:function(e){return"movementY"in e?e.movementY:u1}}),i5=oi($h),aS=dn({},$h,{dataTransfer:0}),sS=oi(aS),lS=dn({},pf,{relatedTarget:0}),c1=oi(lS),uS=dn({},Su,{animationName:0,elapsedTime:0,pseudoElement:0}),cS=oi(uS),fS=dn({},Su,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dS=oi(fS),hS=dn({},Su,{data:0}),o5=oi(hS),pS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mS={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"},gS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gS[e])?!!t[e]:!1}function J2(){return vS}var yS=dn({},pf,{key:function(e){if(e.key){var t=pS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J2,charCode:function(e){return e.type==="keypress"?zd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wS=oi(yS),bS=dn({},$h,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a5=oi(bS),xS=dn({},pf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J2}),_S=oi(xS),SS=dn({},Su,{propertyName:0,elapsedTime:0,pseudoElement:0}),NS=oi(SS),kS=dn({},$h,{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}),AS=oi(kS),LS=[9,13,27,32],em=Wo&&"CompositionEvent"in window,xc=null;Wo&&"documentMode"in document&&(xc=document.documentMode);var ES=Wo&&"TextEvent"in window&&!xc,fb=Wo&&(!em||xc&&8<xc&&11>=xc),s5=" ",l5=!1;function db(e,t){switch(e){case"keyup":return LS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tl=!1;function CS(e,t){switch(e){case"compositionend":return hb(t);case"keypress":return t.which!==32?null:(l5=!0,s5);case"textInput":return e=t.data,e===s5&&l5?null:e;default:return null}}function PS(e,t){if(Tl)return e==="compositionend"||!em&&db(e,t)?(e=cb(),Bd=X2=Ca=null,Tl=!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 fb&&t.locale!=="ko"?null:t.data;default:return null}}var TS={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 u5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!TS[e.type]:t==="textarea"}function pb(e,t,n,r){Ww(r),t=fh(t,"onChange"),0<t.length&&(n=new Q2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _c=null,Bc=null;function RS(e){kb(e,0)}function Hh(e){var t=Il(e);if(Dw(t))return e}function OS(e,t){if(e==="change")return t}var mb=!1;if(Wo){var f1;if(Wo){var d1="oninput"in document;if(!d1){var c5=document.createElement("div");c5.setAttribute("oninput","return;"),d1=typeof c5.oninput=="function"}f1=d1}else f1=!1;mb=f1&&(!document.documentMode||9<document.documentMode)}function f5(){_c&&(_c.detachEvent("onpropertychange",gb),Bc=_c=null)}function gb(e){if(e.propertyName==="value"&&Hh(Bc)){var t=[];pb(t,Bc,e,V2(e)),Kw(RS,t)}}function IS(e,t,n){e==="focusin"?(f5(),_c=t,Bc=n,_c.attachEvent("onpropertychange",gb)):e==="focusout"&&f5()}function jS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hh(Bc)}function FS(e,t){if(e==="click")return Hh(t)}function MS(e,t){if(e==="input"||e==="change")return Hh(t)}function DS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zi=typeof Object.is=="function"?Object.is:DS;function zc(e,t){if(zi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!u0.call(t,i)||!zi(e[i],t[i]))return!1}return!0}function d5(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function h5(e,t){var n=d5(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=d5(n)}}function vb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yb(){for(var e=window,t=ih();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ih(e.document)}return t}function tm(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 BS(e){var t=yb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vb(n.ownerDocument.documentElement,n)){if(r!==null&&tm(n)){if
vendor: 4,964 bytes, line 37
37(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=h5(n,o);var a=h5(n,r);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>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zS=Wo&&"documentMode"in document&&11>=document.documentMode,Rl=null,E0=null,Sc=null,C0=!1;function p5(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;C0||Rl==null||Rl!==ih(r)||(r=Rl,"selectionStart"in r&&tm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sc&&zc(Sc,r)||(Sc=r,r=fh(E0,"onSelect"),0<r.length&&(t=new Q2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Rl)))}function hd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ol={animationend:hd("Animation","AnimationEnd"),animationiteration:hd("Animation","AnimationIteration"),animationstart:hd("Animation","AnimationStart"),transitionend:hd("Transition","TransitionEnd")},h1={},wb={};Wo&&(wb=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Wh(e){if(h1[e])return h1[e];if(!Ol[e])return e;var t=Ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wb)return h1[e]=t[n];return e}var bb=Wh("animationend"),xb=Wh("animationiteration"),_b=Wh("animationstart"),Sb=Wh("transitionend"),Nb=new Map,m5="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 es(e,t){Nb.set(e,t),Zs(t,[e])}for(var p1=0;p1<m5.length;p1++){var m1=m5[p1],US=m1.toLowerCase(),qS=m1[0].toUpperCase()+m1.slice(1);es(US,"on"+qS)}es(bb,"onAnimationEnd");es(xb,"onAnimationIteration");es(_b,"onAnimationStart");es("dblclick","onDoubleClick");es("focusin","onFocus");es("focusout","onBlur");es(Sb,"onTransitionEnd");cu("onMouseEnter",["mouseout","mouseover"]);cu("onMouseLeave",["mouseout","mouseover"]);cu("onPointerEnter",["pointerout","pointerover"]);cu("onPointerLeave",["pointerout","pointerover"]);Zs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gc="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(" "),$S=new Set("cancel close invalid load scroll toggle".split(" ").concat(gc));function g5(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,U6(r,t,void 0,e),e.currentTarget=null}function kb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;g5(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;g5(i,s,c),o=l}}}if(ah)throw e=N0,ah=!1,N0=null,e}function en(e,t){var n=t[I0];n===void 0&&(n=t[I0]=new Set);var r=e+"__bubble";n.has(r)||(Ab(t,e,2,!1),n.add(r))}
vendor: 4,624 bytes, line 37
37function g1(e,t,n){var r=0;t&&(r|=4),Ab(n,e,r,t)}var pd="_reactListening"+Math.random().toString(36).slice(2);function Uc(e){if(!e[pd]){e[pd]=!0,Ow.forEach(function(n){n!=="selectionchange"&&($S.has(n)||g1(n,!1,e),g1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pd]||(t[pd]=!0,g1("selectionchange",!1,t))}}function Ab(e,t,n,r){switch(ub(t)){case 1:var i=rS;break;case 4:i=iS;break;default:i=Z2}n=i.bind(null,t,n,e),i=void 0,!S0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function v1(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.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=ks(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Kw(function(){var c=o,h=V2(n),m=[];e:{var g=Nb.get(e);if(g!==void 0){var d=Q2,S=e;switch(e){case"keypress":if(zd(n)===0)break e;case"keydown":case"keyup":d=wS;break;case"focusin":S="focus",d=c1;break;case"focusout":S="blur",d=c1;break;case"beforeblur":case"afterblur":d=c1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=i5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=sS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=_S;break;case bb:case xb:case _b:d=cS;break;case Sb:d=NS;break;case"scroll":d=oS;break;case"wheel":d=AS;break;case"copy":case"cut":case"paste":d=dS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=a5}var w=(t&4)!==0,_=!w&&e==="scroll",y=w?g!==null?g+"Capture":null:g;w=[];for(var x=c,N;x!==null;){N=x;var A=N.stateNode;if(N.tag===5&&A!==null&&(N=A,y!==null&&(A=jc(x,y),A!=null&&w.push(qc(x,A,N)))),_)break;x=x.return}0<w.length&&(g=new d(g,S,null,n,h),m.push({event:g,listeners:w}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",g&&n!==x0&&(S=n.relatedTarget||n.fromElement)&&(ks(S)||S[Vo]))break e;if((d||g)&&(g=h.window===h?h:(g=h.ownerDocument)?g.defaultView||g.parentWindow:window,d?(S=n.relatedTarget||n.toElement,d=c,S=S?ks(S):null,S!==null&&(_=Xs(S),S!==_||S.tag!==5&&S.tag!==6)&&(S=null)):(d=null,S=c),d!==S)){if(w=i5,A="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(w=a5,A="onPointerLeave",y="onPointerEnter",x="pointer"),_=d==null?g:Il(d),N=S==null?g:Il(S),g=new w(A,x+"leave",d,n,h),g.target=_,g.relatedTarget=N,A=null,ks(h)===c&&(w=new w(y,x+"enter",S,n,h),w.target=N,w.relatedTarget=_,A=w),_=A,d&&S)t:{for(w=d,y=S,x=0,N=w;N;N=_l(N))x++;for(N=0,A=y;A;A=_l(A))N++;for(;0<x-N;)w=_l(w),x--;for(;0<N-x;)y=_l(y),N--;for(;x--;){if(w===y||y!==null&&w===y.alternate)break t;w=_l(w),y=_l(y)}w=null}else w=null;d!==null&&v5(m,g,d,w,!1),S!==null&&_!==null&&v5(m,_,S,w,!0)}}e:{if(g=c?Il(c):window,d=g.nodeName&&g.nodeName.toLowerCase(),d==="select"||d==="input"&&g.type==="file")var M=OS;else if(u5(g))if(mb)M=MS;else{M=jS;var K=IS}else(d=g.nodeName)&&d.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(M=FS);if(M&&(M=M(e,c))){pb(m,M,n,h);break e}K&&K(e,g,c),e==="focusout"&&(K=g._wrapperState)&&K.controlled&&g.type==="number"&&g0(g,"number",g.value)}switch(K=c?Il(c):window,e){case"focusin":(u5(K)||K.contentEditable==="true")&&(Rl=K,E0=c,Sc=null);break;case"focusout":Sc=E0=Rl=null;break;case"mousedown":C0=!0;break;case"contextmenu":case"mouseup":case"dragend":C0=!1,p5(m,n,h);break;case"selectionchange":if(zS)break;case"keydown":case"keyup":p5(m,n,h)}var Y;if(em)e:{switch(e){case"compositionstart":var H="onCompositionStart";break e;case"compositionend":H="onCompositionEnd";break e;case"compositionupdate":H="onCompositionUpdate";break e}H=void 0}else Tl?db(e,n)&&(H="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(H="onCompositionStart");H&&(fb&&n.locale!=="ko"&&(Tl||H!=="onCompositionStart"?H==="onCompositionEnd"&&Tl&&(Y=cb()):(Ca=h,X2="value"in Ca?Ca.value:Ca.textContent,Tl=!0)),K=fh(c,H),0<K.length&&(H=new o5(H,e,null,n,h),m.push({event:H,listeners:K}),Y?H.data=Y:(Y=hb(n),Y!==null&&(H.data=Y)))),(Y=ES?CS(e,n):PS(e,n))&&
vendor: 5,091 bytes, lines 37-38
37(c=fh(c,"onBeforeInput"),0<c.length&&(h=new o5("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:c}),h.data=Y))}kb(m,t)})}function qc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fh(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=jc(e,n),o!=null&&r.unshift(qc(e,o,i)),o=jc(e,t),o!=null&&r.push(qc(e,o,i))),e=e.return}return r}function _l(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function v5(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=jc(n,o),l!=null&&a.unshift(qc(n,l,s))):i||(l=jc(n,o),l!=null&&a.push(qc(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var HS=/\r\n?/g,WS=/\u0000|\uFFFD/g;function y5(e){return(typeof e=="string"?e:""+e).replace(HS,`
38`).replace(WS,"")}function md(e,t,n){if(t=y5(t),y5(e)!==t&&n)throw Error(Le(425))}function dh(){}var P0=null,T0=null;function R0(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 O0=typeof setTimeout=="function"?setTimeout:void 0,VS=typeof clearTimeout=="function"?clearTimeout:void 0,w5=typeof Promise=="function"?Promise:void 0,GS=typeof queueMicrotask=="function"?queueMicrotask:typeof w5<"u"?function(e){return w5.resolve(null).then(e).catch(YS)}:O0;function YS(e){setTimeout(function(){throw e})}function y1(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Dc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Dc(t)}function Ma(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 b5(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nu=Math.random().toString(36).slice(2),uo="__reactFiber$"+Nu,$c="__reactProps$"+Nu,Vo="__reactContainer$"+Nu,I0="__reactEvents$"+Nu,KS="__reactListeners$"+Nu,ZS="__reactHandles$"+Nu;function ks(e){var t=e[uo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vo]||n[uo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=b5(e);e!==null;){if(n=e[uo])return n;e=b5(e)}return t}e=n,n=e.parentNode}return null}function mf(e){return e=e[uo]||e[Vo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Il(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Le(33))}function Vh(e){return e[$c]||null}var j0=[],jl=-1;function ts(e){return{current:e}}function nn(e){0>jl||(e.current=j0[jl],j0[jl]=null,jl--)}function Zt(e,t){jl++,j0[jl]=e.current,e.current=t}var Va={},pr=ts(Va),jr=ts(!1),zs=Va;function fu(e,t){var n=e.type.contextTypes;if(!n)return Va;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fr(e){return e=e.childContextTypes,e!=null}function hh(){nn(jr),nn(pr)}function x5(e,t,n){if(pr.current!==Va)throw Error(Le(168));Zt(pr,t),Zt(jr,n)}function Lb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Le(108,I6(e)||"Unknown",i));return dn({},n,r)}function ph(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Va,zs=pr.current,Zt(pr,e),Zt(jr,jr.current),!0}function _5(e,t,n){var r=e.stateNode;if(!r)throw Error(Le(169));n?(e=Lb(e,t,zs),r.__reactInternalMemoizedMergedChildContext=e,nn(jr),nn(pr),Zt(pr,e)):nn(jr),Zt(jr,n)}var Do=null,Gh=!1,w1=!1;function Eb(e){Do===null?Do=[e]:Do.push(e)}function XS(e){Gh=!0,Eb(e)}function ns(){if(!w1&&Do!==null){w1=!0;var e=0,t=zt;try{var n=Do;for(zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Do=null,Gh=!1}catch(i){throw Do!==null&&(Do=Do.slice(e+1)),Jw(G2,ns),i}finally{zt=t,w1=!1}}return null}var Fl=[],Ml=0,mh=null,gh=0,hi=[],pi=0,Us=null,qo=1,$o="";function xs(e,t){Fl[Ml++]=gh,Fl[Ml++]=mh,mh=e,gh=t}function Cb(e,t,n){hi[pi++]=qo,hi[pi++]=$o,hi[pi++]=Us,Us=e;var r=qo;e=$o;var i=32-Di(r)-1;r&=~(1<<i),n+=1;var o=32-Di(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,qo=1<<32-Di(t)+i|n<<i|r,$o=o+e}else qo=1<<o|n<<i|r,$o=e}function nm(e){e.return!==null&&(xs(e,1),Cb(e,1,0))}function rm(e){for(;e===mh;)mh=Fl[--Ml],Fl[Ml]=null,gh=Fl[--Ml],Fl[Ml]=null;for(;e===Us;)Us=hi[--pi],hi[pi]=null,$o=hi[--pi],hi[pi]=null,qo=hi[--pi],hi[pi]=null}var ti=null,Qr=null,sn=!1,Mi=null;function Pb(e,t){var n=gi(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function S5(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 15,591 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ti=e,Qr=Ma(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ti=e,Qr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Us!==null?{id:qo,overflow:$o}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gi(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ti=e,Qr=null,!0):!1;default:return!1}}function F0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function M0(e){if(sn){var t=Qr;if(t){var n=t;if(!S5(e,t)){if(F0(e))throw Error(Le(418));t=Ma(n.nextSibling);var r=ti;t&&S5(e,t)?Pb(r,n):(e.flags=e.flags&-4097|2,sn=!1,ti=e)}}else{if(F0(e))throw Error(Le(418));e.flags=e.flags&-4097|2,sn=!1,ti=e}}}function N5(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ti=e}function gd(e){if(e!==ti)return!1;if(!sn)return N5(e),sn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!R0(e.type,e.memoizedProps)),t&&(t=Qr)){if(F0(e))throw Tb(),Error(Le(418));for(;t;)Pb(e,t),t=Ma(t.nextSibling)}if(N5(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Le(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qr=Ma(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qr=null}}else Qr=ti?Ma(e.stateNode.nextSibling):null;return!0}function Tb(){for(var e=Qr;e;)e=Ma(e.nextSibling)}function du(){Qr=ti=null,sn=!1}function im(e){Mi===null?Mi=[e]:Mi.push(e)}var QS=Xo.ReactCurrentBatchConfig;function oc(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Le(309));var r=n.stateNode}if(!r)throw Error(Le(147,e));var i=r,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(Le(284));if(!n._owner)throw Error(Le(290,e))}return e}function vd(e,t){throw e=Object.prototype.toString.call(t),Error(Le(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function k5(e){var t=e._init;return t(e._payload)}function Rb(e){function t(y,x){if(e){var N=y.deletions;N===null?(y.deletions=[x],y.flags|=16):N.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(y,x){return y=Ua(y,x),y.index=0,y.sibling=null,y}function o(y,x,N){return y.index=N,e?(N=y.alternate,N!==null?(N=N.index,N<x?(y.flags|=2,x):N):(y.flags|=2,x)):(y.flags|=1048576,x)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,x,N,A){return x===null||x.tag!==6?(x=A1(N,y.mode,A),x.return=y,x):(x=i(x,N),x.return=y,x)}function l(y,x,N,A){var M=N.type;return M===Pl?h(y,x,N.props.children,A,N.key):x!==null&&(x.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===wa&&k5(M)===x.type)?(A=i(x,N.props),A.ref=oc(y,x,N),A.return=y,A):(A=Gd(N.type,N.key,N.props,null,y.mode,A),A.ref=oc(y,x,N),A.return=y,A)}function c(y,x,N,A){return x===null||x.tag!==4||x.stateNode.containerInfo!==N.containerInfo||x.stateNode.implementation!==N.implementation?(x=L1(N,y.mode,A),x.return=y,x):(x=i(x,N.children||[]),x.return=y,x)}function h(y,x,N,A,M){return x===null||x.tag!==7?(x=Ds(N,y.mode,A,M),x.return=y,x):(x=i(x,N),x.return=y,x)}function m(y,x,N){if(typeof x=="string"&&x!==""||typeof x=="number")return x=A1(""+x,y.mode,N),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ad:return N=Gd(x.type,x.key,x.props,null,y.mode,N),N.ref=oc(y,null,x),N.return=y,N;case Cl:return x=L1(x,y.mode,N),x.return=y,x;case wa:var A=x._init;return m(y,A(x._payload),N)}if(pc(x)||ec(x))return x=Ds(x,y.mode,N,null),x.return=y,x;vd(y,x)}return null}function g(y,x,N,A){var M=x!==null?x.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return M!==null?null:s(y,x,""+N,A);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ad:return N.key===M?l(y,x,N,A):null;case Cl:return N.key===M?c(y,x,N,A):null;case wa:return M=N._init,g(y,x,M(N._payload),A)}if(pc(N)||ec(N))return M!==null?null:h(y,x,N,A,null);vd(y,N)}return null}function d(y,x,N,A,M){if(typeof A=="string"&&A!==""||typeof A=="number")return y=y.get(N)||null,s(x,y,""+A,M);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case ad:return y=y.get(A.key===null?N:A.key)||null,l(x,y,A,M);case Cl:return y=y.get(A.key===null?N:A.key)||null,c(x,y,A,M);case wa:var K=A._init;return d(y,x,N,K(A._payload),M)}if(pc(A)||ec(A))return y=y.get(N)||null,h(x,y,A,M,null);vd(x,A)}return null}function S(y,x,N,A){for(var M=null,K=null,Y=x,H=x=0,I=null;Y!==null&&H<N.length;H++){Y.index>H?(I=Y,Y=null):I=Y.sibling;var Z=g(y,Y,N[H],A);if(Z===null){Y===null&&(Y=I);break}e&&Y&&Z.alternate===null&&t(y,Y),x=o(Z,x,H),K===null?M=Z:K.sibling=Z,K=Z,Y=I}if(H===N.length)return n(y,Y),sn&&xs(y,H),M;if(Y===null){for(;H<N.length;H++)Y=m(y,N[H],A),Y!==null&&(x=o(Y,x,H),K===null?M=Y:K.sibling=Y,K=Y);return sn&&xs(y,H),M}for(Y=r(y,Y);H<N.length;H++)I=d(Y,y,H,N[H],A),I!==null&&(e&&I.alternate!==null&&Y.delete(I.key===null?H:I.key),x=o(I,x,H),K===null?M=I:K.sibling=I,K=I);return e&&Y.forEach(function(P){return t(y,P)}),sn&&xs(y,H),M}function w(y,x,N,A){var M=ec(N);if(typeof M!="function")throw Error(Le(150));if(N=M.call(N),N==null)throw Error(Le(151));for(var K=M=null,Y=x,H=x=0,I=null,Z=N.next();Y!==null&&!Z.done;H++,Z=N.next()){Y.index>H?(I=Y,Y=null):I=Y.sibling;var P=g(y,Y,Z.value,A);if(P===null){Y===null&&(Y=I);break}e&&Y&&P.alternate===null&&t(y,Y),x=o(P,x,H),K===null?M=P:K.sibling=P,K=P,Y=I}if(Z.done)return n(y,Y),sn&&xs(y,H),M;if(Y===null){for(;!Z.done;H++,Z=N.next())Z=m(y,Z.value,A),Z!==null&&(x=o(Z,x,H),K===null?M=Z:K.sibling=Z,K=Z);return sn&&xs(y,H),M}for(Y=r(y,Y);!Z.done;H++,Z=N.next())Z=d(Y,y,H,Z.value,A),Z!==null&&(e&&Z.alternate!==null&&Y.delete(Z.key===null?H:Z.key),x=o(Z,x,H),K===null?M=Z:K.sibling=Z,K=Z);return e&&Y.forEach(function(R){return t(y,R)}),sn&&xs(y,H),M}function _(y,x,N,A){if(typeof N=="object"&&N!==null&&N.type===Pl&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case ad:e:{for(var M=N.key,K=x;K!==null;){if(K.key===M){if(M=N.type,M===Pl){if(K.tag===7){n(y,K.sibling),x=i(K,N.props.children),x.return=y,y=x;break e}}else if(K.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===wa&&k5(M)===K.type){n(y,K.sibling),x=i(K,N.props),x.ref=oc(y,K,N),x.return=y,y=x;break e}n(y,K);break}else t(y,K);K=K.sibling}N.type===Pl?(x=Ds(N.props.children,y.mode,A,N.key),x.return=y,y=x):(A=Gd(N.type,N.key,N.props,null,y.mode,A),A.ref=oc(y,x,N),A.return=y,y=A)}return a(y);case Cl:e:{for(K=N.key;x!==null;){if(x.key===K)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){n(y,x.sibling),x=i(x,N.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=L1(N,y.mode,A),x.return=y,y=x}return a(y);case wa:return K=N._init,_(y,x,K(N._payload),A)}if(pc(N))return S(y,x,N,A);if(ec(N))return w(y,x,N,A);vd(y,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,x!==null&&x.tag===6?(n(y,x.sibling),x=i(x,N),x.return=y,y=x):(n(y,x),x=A1(N,y.mode,A),x.return=y,y=x),a(y)):n(y,x)}return _}var hu=Rb(!0),Ob=Rb(!1),vh=ts(null),yh=null,Dl=null,om=null;function am(){om=Dl=yh=null}function sm(e){var t=vh.current;nn(vh),e._currentValue=t}function D0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vl(e,t){yh=e,om=Dl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Or=!0),e.firstContext=null)}function yi(e){var t=e._currentValue;if(om!==e)if(e={context:e,memoizedValue:t,next:null},Dl===null){if(yh===null)throw Error(Le(308));Dl=e,yh.dependencies={lanes:0,firstContext:e}}else Dl=Dl.next=e;return t}var As=null;function lm(e){As===null?As=[e]:As.push(e)}function Ib(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,lm(t)):(n.next=i.next,i.next=n),t.interleaved=n,Go(e,r)}function Go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ba=!1;function um(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jb(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 Ho(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Go(e,n)}return i=r.interleaved,i===null?(t.next=t,lm(r)):(t.next=i.next,i.next=t),r.interleaved=t,Go(e,n)}function Ud(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Y2(e,n)}}function A5(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wh(e,t,n,r){var i=e.updateQueue;ba=!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 m=i.baseState;a=0,h=c=l=null,s=o;do{var g=s.lane,d=s.eventTime;if((r&g)===g){h!==null&&(h=h.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,w=s;switch(g=t,d=n,w.tag){case 1:if(S=w.payload,typeof S=="function"){m=S.call(d,m,g);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=w.payload,g=typeof S=="function"?S.call(d,m,g):S,g==null)break e;m=dn({},m,g);break e;case 2:ba=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[s]:g.push(s))}else d={eventTime:d,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(c=h=d,l=m):h=h.next=d,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=m),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);$s|=a,e.lanes=a,e.memoizedState=m}}function L5(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Le(191,i));i.call(r)}}}var gf={},po=ts(gf),Hc=ts(gf),Wc=ts(gf);function Ls(e){if(e===gf)throw Error(Le(174));return e}function cm(e,t){switch(Zt(Wc,t),Zt(Hc,e),Zt(po,gf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:y0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=y0(t,e)}nn(po),Zt(po,t)}function pu(){nn(po),nn(Hc),nn(Wc)}function Fb(e){Ls(Wc.current);var t=Ls(po.current),n=y0(t,e.type);t!==n&&(Zt(Hc,e),Zt(po,n))}function fm(e){Hc.current===e&&(nn(po),nn(Hc))}var cn=ts(0);function bh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 b1=[];function dm(){for(var e=0;e<b1.length;e++)b1[e]._workInProgressVersionPrimary=null;b1.length=0}var qd=Xo.ReactCurrentDispatcher,x1=Xo.ReactCurrentBatchConfig,qs=0,fn=null,Fn=null,qn=null,xh=!1,Nc=!1,Vc=0,JS=0;function ar(){throw Error(Le(321))}function hm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zi(e[n],t[n]))return!1;return!0}function pm(e,t,n,r,i,o){if(qs=o,fn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qd.current=e===null||e.memoizedState===null?r8:i8,e=n(r,i),Nc){o=0;do{if(Nc=!1,Vc=0,25<=o)throw Error(Le(301));o+=1,qn=Fn=null,t.updateQueue=null,qd.current=o8,e=n(r,i)}while(Nc)}if(qd.current=_h,t=Fn!==null&&Fn.next!==null,qs=0,qn=Fn=fn=null,xh=!1,t)throw Error(Le(300));return e}function mm(){var e=Vc!==0;return Vc=0,e}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?fn.memoizedState=qn=e:qn=qn.next=e,qn}function wi(){if(Fn===null){var e=fn.alternate;e=e!==null?e.memoizedState:null}else e=Fn.next;var t=qn===null?fn.memoizedState:qn.next;if(t!==null)qn=t,Fn=e;else{if(e===null)throw Error(Le(310));Fn=e,e={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},qn===null?fn.memoizedState=qn=e:qn=qn.next=e}return qn}function Gc(e,t){return typeof t=="function"?t(e):t}function _1(e){var t=wi(),n=t.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=e;var r=Fn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var h=c.lane;if((qs&h)===h)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var m={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=m,a=r):l=l.next=m,fn.lanes|=h,$s|=h}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,zi(r,t.memoizedState)||(Or=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,fn.lanes|=o,$s|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function S1(e){var t=wi(),n=t.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);zi(o,t.memoizedState)||(Or=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Mb(){}function Db(e,t){var n=fn,r=wi(),i=t(),o=!zi(r.memoizedState,i);if(o&&(r.memoizedState=i,Or=!0),r=r.queue,gm(Ub.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||qn!==null&&qn.memoizedState.tag&1){if(n.flags|=2048,Yc(9,zb.bind(null,n,r,i,t),void 0,null),Hn===null)throw Error(Le(349));qs&30||Bb(n,t,i)}return i}function Bb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fn.updateQueue,t===null?(t={lastEffect:null,stores:null},fn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zb(e,t,n,r){t.value=n,t.getSnapshot=r,qb(t)&&$b(e)}function Ub(e,t,n){return n(function(){qb(t)&&$b(e)})}function qb(e){var t=e.getSnapshot;e=e.value;try{var n=t();
vendor: 4,858 bytes, line 38
38return!zi(e,n)}catch{return!0}}function $b(e){var t=Go(e,1);t!==null&&Bi(t,e,1,-1)}function E5(e){var t=oo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gc,lastRenderedState:e},t.queue=e,e=e.dispatch=n8.bind(null,fn,e),[t.memoizedState,e]}function Yc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fn.updateQueue,t===null?(t={lastEffect:null,stores:null},fn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Hb(){return wi().memoizedState}function $d(e,t,n,r){var i=oo();fn.flags|=e,i.memoizedState=Yc(1|t,n,void 0,r===void 0?null:r)}function Yh(e,t,n,r){var i=wi();r=r===void 0?null:r;var o=void 0;if(Fn!==null){var a=Fn.memoizedState;if(o=a.destroy,r!==null&&hm(r,a.deps)){i.memoizedState=Yc(t,n,o,r);return}}fn.flags|=e,i.memoizedState=Yc(1|t,n,o,r)}function C5(e,t){return $d(8390656,8,e,t)}function gm(e,t){return Yh(2048,8,e,t)}function Wb(e,t){return Yh(4,2,e,t)}function Vb(e,t){return Yh(4,4,e,t)}function Gb(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 Yb(e,t,n){return n=n!=null?n.concat([e]):null,Yh(4,4,Gb.bind(null,t,e),n)}function vm(){}function Kb(e,t){var n=wi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zb(e,t){var n=wi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hm(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xb(e,t,n){return qs&21?(zi(n,t)||(n=nb(),fn.lanes|=n,$s|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Or=!0),e.memoizedState=n)}function e8(e,t){var n=zt;zt=n!==0&&4>n?n:4,e(!0);var r=x1.transition;x1.transition={};try{e(!1),t()}finally{zt=n,x1.transition=r}}function Qb(){return wi().memoizedState}function t8(e,t,n){var r=za(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jb(e))ex(t,n);else if(n=Ib(e,t,n,r),n!==null){var i=kr();Bi(n,e,r,i),tx(n,t,r)}}function n8(e,t,n){var r=za(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jb(e))ex(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,n);if(i.hasEagerState=!0,i.eagerState=s,zi(s,a)){var l=t.interleaved;l===null?(i.next=i,lm(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ib(e,t,i,r),n!==null&&(i=kr(),Bi(n,e,r,i),tx(n,t,r))}}function Jb(e){var t=e.alternate;return e===fn||t!==null&&t===fn}function ex(e,t){Nc=xh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Y2(e,n)}}var _h={readContext:yi,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},r8={readContext:yi,useCallback:function(e,t){return oo().memoizedState=[e,t===void 0?null:t],e},useContext:yi,useEffect:C5,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$d(4194308,4,Gb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $d(4194308,4,e,t)},useInsertionEffect:function(e,t){return $d(4,2,e,t)},useMemo:function(e,t){var n=oo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=t8.bind(null,fn,e),[r.memoizedState,e]},useRef:function(e){var t=oo();return e={current:e},t.memoizedState=e},useState:E5,useDebugValue:vm,useDeferredValue:function(e){return oo().memoizedState=e},useTransition:function(){var e=E5(!1),t=e[0];return e=e8.bind(null,e[1]),oo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fn,i=oo();if(sn){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=t(),Hn===null)throw Error(Le(349));qs&30||Bb(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,C5(Ub.bind(null,r,o,e),[e]),r.flags|=2048,Yc(9,zb.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=oo(),t=Hn.identifierPrefix;if(sn){var n=$o,r=qo;n=(r&~(1<<32-Di(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=JS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},i8={readContext:yi,useCallback:Kb,useContext:yi,useEffect:gm,useImperativeHandle:Yb,useInsertionEffect:Wb,useLayoutEffect:Vb,useMemo:Zb,useReducer:_1,useRef
vendor: 5,058 bytes, lines 38-40
38:Hb,useState:function(){return _1(Gc)},useDebugValue:vm,useDeferredValue:function(e){var t=wi();return Xb(t,Fn.memoizedState,e)},useTransition:function(){var e=_1(Gc)[0],t=wi().memoizedState;return[e,t]},useMutableSource:Mb,useSyncExternalStore:Db,useId:Qb,unstable_isNewReconciler:!1},o8={readContext:yi,useCallback:Kb,useContext:yi,useEffect:gm,useImperativeHandle:Yb,useInsertionEffect:Wb,useLayoutEffect:Vb,useMemo:Zb,useReducer:S1,useRef:Hb,useState:function(){return S1(Gc)},useDebugValue:vm,useDeferredValue:function(e){var t=wi();return Fn===null?t.memoizedState=e:Xb(t,Fn.memoizedState,e)},useTransition:function(){var e=S1(Gc)[0],t=wi().memoizedState;return[e,t]},useMutableSource:Mb,useSyncExternalStore:Db,useId:Qb,unstable_isNewReconciler:!1};function Ri(e,t){if(e&&e.defaultProps){t=dn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function B0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:dn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kh={isMounted:function(e){return(e=e._reactInternals)?Xs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kr(),i=za(e),o=Ho(r,i);o.payload=t,n!=null&&(o.callback=n),t=Da(e,o,i),t!==null&&(Bi(t,e,i,r),Ud(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kr(),i=za(e),o=Ho(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Da(e,o,i),t!==null&&(Bi(t,e,i,r),Ud(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kr(),r=za(e),i=Ho(n,r);i.tag=2,t!=null&&(i.callback=t),t=Da(e,i,r),t!==null&&(Bi(t,e,r,n),Ud(t,e,r))}};function P5(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!zc(n,r)||!zc(i,o):!0}function nx(e,t,n){var r=!1,i=Va,o=t.contextType;return typeof o=="object"&&o!==null?o=yi(o):(i=Fr(t)?zs:pr.current,r=t.contextTypes,o=(r=r!=null)?fu(e,i):Va),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kh,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function T5(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kh.enqueueReplaceState(t,t.state,null)}function z0(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},um(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=yi(o):(o=Fr(t)?zs:pr.current,i.context=fu(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(B0(e,t,o,n),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&&Kh.enqueueReplaceState(i,i.state,null),wh(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function mu(e,t){try{var n="",r=t;do n+=O6(r),r=r.return;while(r);var i=n}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function N1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function U0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var a8=typeof WeakMap=="function"?WeakMap:Map;function rx(e,t,n){n=Ho(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nh||(Nh=!0,X0=r),U0(e,t)},n}function ix(e,t,n){n=Ho(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){U0(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){U0(e,t),typeof r!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function R5(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new a8;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=b8.bind(null,e,t,n),t.then(e,e))}function O5(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 I5(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ho(-1,1),t.tag=2,Da(n,t,1))),n.lanes|=1),e)}var s8=Xo.ReactCurrentOwner,Or=!1;function _r(e,t,n,r){t.child=e===null?Ob(t,null,n,r):hu(t,e.child,n,r)}function j5(e,t,n,r,i){n=n.render;var o=t.ref;return Vl(t,i),r=pm(e,t,n,r,o,i),n=mm(),e!==null&&!Or?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yo(e,t,i)):(sn&&n&&nm(t),t.flags|=1,_r(e,t,r,i
vendor: 7,600 bytes, line 40
40),t.child)}function F5(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!km(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ox(e,t,o,r,i)):(e=Gd(n.type,null,r,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(n=n.compare,n=n!==null?n:zc,n(a,r)&&e.ref===t.ref)return Yo(e,t,i)}return t.flags|=1,e=Ua(o,r),e.ref=t.ref,e.return=t,t.child=e}function ox(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(zc(o,r)&&e.ref===t.ref)if(Or=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Or=!0);else return t.lanes=e.lanes,Yo(e,t,i)}return q0(e,t,n,r,i)}function ax(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zt(zl,Zr),Zr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Zt(zl,Zr),Zr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Zt(zl,Zr),Zr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Zt(zl,Zr),Zr|=r;return _r(e,t,i,n),t.child}function sx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function q0(e,t,n,r,i){var o=Fr(n)?zs:pr.current;return o=fu(t,o),Vl(t,i),n=pm(e,t,n,r,o,i),r=mm(),e!==null&&!Or?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yo(e,t,i)):(sn&&r&&nm(t),t.flags|=1,_r(e,t,n,i),t.child)}function M5(e,t,n,r,i){if(Fr(n)){var o=!0;ph(t)}else o=!1;if(Vl(t,i),t.stateNode===null)Hd(e,t),nx(t,n,r),z0(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=yi(c):(c=Fr(n)?zs:pr.current,c=fu(t,c));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";m||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&T5(t,a,r,c),ba=!1;var g=t.memoizedState;a.state=g,wh(t,r,a,i),l=t.memoizedState,s!==r||g!==l||jr.current||ba?(typeof h=="function"&&(B0(t,n,h,r),l=t.memoizedState),(s=ba||P5(t,n,s,r,g,l,c))?(m||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=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,jb(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ri(t.type,s),a.props=c,m=t.pendingProps,g=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=yi(l):(l=Fr(n)?zs:pr.current,l=fu(t,l));var d=n.getDerivedStateFromProps;(h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==m||g!==l)&&T5(t,a,r,l),ba=!1,g=t.memoizedState,a.state=g,wh(t,r,a,i);var S=t.memoizedState;s!==m||g!==S||jr.current||ba?(typeof d=="function"&&(B0(t,n,d,r),S=t.memoizedState),(c=ba||P5(t,n,c,r,g,S,l)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,S,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,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=r,t.memoizedState=S),a.props=r,a.state=S,a.context=l,r=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),r=!1)}return $0(e,t,n,r,o,i)}function $0(e,t,n,r,i,o){sx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&_5(t,n,!1),Yo(e,t,o);r=t.stateNode,s8.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=hu(t,e.child,null,o),t.child=hu(t,null,s,o)):_r(e,t,s,o),t.memoizedState=r.state,i&&_5(t,n,!0),t.child}function lx(e){var t=e.stateNode;t.pendingContext?x5(e,t.pendingContext,t.pendingContext!==t.context):t.context&&x5(e,t.context,!1),cm(e,t.containerInfo)}function D5(e,t,n,r,i){return du(),im(i),t.flags|=256,_r(e,t,n,r),t.child}var H0={dehydrated:null,treeContext:null,retryLane:0};function W0(e){return{baseLanes:e,cachePool:null,transitions:null}}function ux(e,t,n){var r=t.pendingProps,i=cn.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),Zt(cn,i&1),e===null)return M0(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=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Qh(a,r,0,null),e=Ds(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=W0(n),t.memoizedState=H0,e):ym(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return l8(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ua(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Ua(s,o):(o=Ds(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?W0(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=H0,r}return o=e.child,e=o.sibling,r=Ua(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ym(e,t){return t=Qh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yd(e,t,n,r){return r!==null&&im(r),hu(t,e.child,null,n),e=ym(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function l8(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=N1(Error(Le(422))),yd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Qh({mode:"visible",children:r.children},i,0,null),o=Ds(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&hu(t,e.child,null,a),t.child.memoizedState=W0(a),t.memoizedState=H0,o);if(!(t.mode&1))return yd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Le(419)),r=N1(o,r,void 0),yd(e,t,a,r)}if(s=(a&e.childLanes)!==0,Or||s){if(r=Hn,r!==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}
vendor: 4,524 bytes, line 40
40i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Go(e,i),Bi(r,e,i,-1))}return Nm(),r=N1(Error(Le(421))),yd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=x8.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Qr=Ma(i.nextSibling),ti=t,sn=!0,Mi=null,e!==null&&(hi[pi++]=qo,hi[pi++]=$o,hi[pi++]=Us,qo=e.id,$o=e.overflow,Us=t),t=ym(t,r.children),t.flags|=4096,t)}function B5(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),D0(e.return,t,n)}function k1(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function cx(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_r(e,t,r.children,n),r=cn.current,r&2)r=r&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&&B5(e,n,t);else if(e.tag===19)B5(e,n,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}r&=1}if(Zt(cn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bh(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),k1(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bh(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}k1(t,!0,n,null,o);break;case"together":k1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$s|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Le(153));if(t.child!==null){for(e=t.child,n=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function u8(e,t,n){switch(t.tag){case 3:lx(t),du();break;case 5:Fb(t);break;case 1:Fr(t.type)&&ph(t);break;case 4:cm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Zt(vh,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Zt(cn,cn.current&1),t.flags|=128,null):n&t.child.childLanes?ux(e,t,n):(Zt(cn,cn.current&1),e=Yo(e,t,n),e!==null?e.sibling:null);Zt(cn,cn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return cx(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Zt(cn,cn.current),r)break;return null;case 22:case 23:return t.lanes=0,ax(e,t,n)}return Yo(e,t,n)}var fx,V0,dx,hx;fx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};V0=function(){};dx=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ls(po.current);var o=null;switch(n){case"input":i=p0(e,i),r=p0(e,r),o=[];break;case"select":i=dn({},i,{value:void 0}),r=dn({},r,{value:void 0}),o=[];break;case"textarea":i=v0(e,i),r=v0(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=dh)}w0(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Oc.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=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"&&(Oc.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&en("scroll",e),o||s===l||(
vendor: 4,659 bytes, line 40
40o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};hx=function(e,t,n,r){n!==r&&(t.flags|=4)};function ac(e,t){if(!sn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function c8(e,t,n){var r=t.pendingProps;switch(rm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sr(t),null;case 1:return Fr(t.type)&&hh(),sr(t),null;case 3:return r=t.stateNode,pu(),nn(jr),nn(pr),dm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mi!==null&&(e2(Mi),Mi=null))),V0(e,t),sr(t),null;case 5:fm(t);var i=Ls(Wc.current);if(n=t.type,e!==null&&t.stateNode!=null)dx(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Le(166));return sr(t),null}if(e=Ls(po.current),gd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[uo]=t,r[$c]=o,e=(t.mode&1)!==0,n){case"dialog":en("cancel",r),en("close",r);break;case"iframe":case"object":case"embed":en("load",r);break;case"video":case"audio":for(i=0;i<gc.length;i++)en(gc[i],r);break;case"source":en("error",r);break;case"img":case"image":case"link":en("error",r),en("load",r);break;case"details":en("toggle",r);break;case"input":Yg(r,o),en("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},en("invalid",r);break;case"textarea":Zg(r,o),en("invalid",r)}w0(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&md(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&md(r.textContent,s,e),i=["children",""+s]):Oc.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&en("scroll",r)}switch(n){case"input":sd(r),Kg(r,o,!0);break;case"textarea":sd(r),Xg(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=dh)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Uw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[uo]=t,e[$c]=r,fx(e,t,!1,!1),t.stateNode=e;e:{switch(a=b0(n,r),n){case"dialog":en("cancel",e),en("close",e),i=r;break;case"iframe":case"object":case"embed":en("load",e),i=r;break;case"video":case"audio":for(i=0;i<gc.length;i++)en(gc[i],e);i=r;break;case"source":en("error",e),i=r;break;case"img":case"image":case"link":en("error",e),en("load",e),i=r;break;case"details":en("toggle",e),i=r;break;case"input":Yg(e,r),i=p0(e,r),en("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=dn({},r,{value:void 0}),en("invalid",e);break;case"textarea":Zg(e,r),i=v0(e,r),en("invalid",e);break;default:i=r}w0(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?Hw(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qw(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ic(e,l):typeof l=="number"&&Ic(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Oc.hasOwnProperty(o)?l!=null&&o==="onScroll"&&en("scroll",e):l!=null&&q2(e,o,l,a))}switch(n){case"input":sd(e),Kg(e,r,!1);break;case"textarea":sd(e),Xg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wa(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ql(e,!!r.multiple,o,!1):r.defaultValue!=null&&ql(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=dh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 26,487 bytes, line 40
40return sr(t),null;case 6:if(e&&t.stateNode!=null)hx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Le(166));if(n=Ls(Wc.current),Ls(po.current),gd(t)){if(r=t.stateNode,n=t.memoizedProps,r[uo]=t,(o=r.nodeValue!==n)&&(e=ti,e!==null))switch(e.tag){case 3:md(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&md(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[uo]=t,t.stateNode=r}return sr(t),null;case 13:if(nn(cn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(sn&&Qr!==null&&t.mode&1&&!(t.flags&128))Tb(),du(),t.flags|=98560,o=!1;else if(o=gd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Le(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Le(317));o[uo]=t}else du(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;sr(t),o=!1}else Mi!==null&&(e2(Mi),Mi=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||cn.current&1?Dn===0&&(Dn=3):Nm())),t.updateQueue!==null&&(t.flags|=4),sr(t),null);case 4:return pu(),V0(e,t),e===null&&Uc(t.stateNode.containerInfo),sr(t),null;case 10:return sm(t.type._context),sr(t),null;case 17:return Fr(t.type)&&hh(),sr(t),null;case 19:if(nn(cn),o=t.memoizedState,o===null)return sr(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ac(o,!1);else{if(Dn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=bh(e),a!==null){for(t.flags|=128,ac(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,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}),n=n.sibling;return Zt(cn,cn.current&1|2),t.child}e=e.sibling}o.tail!==null&&Nn()>gu&&(t.flags|=128,r=!0,ac(o,!1),t.lanes=4194304)}else{if(!r)if(e=bh(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ac(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!sn)return sr(t),null}else 2*Nn()-o.renderingStartTime>gu&&n!==1073741824&&(t.flags|=128,r=!0,ac(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Nn(),t.sibling=null,n=cn.current,Zt(cn,r?n&1|2:n&1),t):(sr(t),null);case 22:case 23:return Sm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zr&1073741824&&(sr(t),t.subtreeFlags&6&&(t.flags|=8192)):sr(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function f8(e,t){switch(rm(t),t.tag){case 1:return Fr(t.type)&&hh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pu(),nn(jr),nn(pr),dm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fm(t),null;case 13:if(nn(cn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));du()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nn(cn),null;case 4:return pu(),null;case 10:return sm(t.type._context),null;case 22:case 23:return Sm(),null;case 24:return null;default:return null}}var wd=!1,hr=!1,d8=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Bl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wn(e,t,r)}else n.current=null}function G0(e,t,n){try{n()}catch(r){wn(e,t,r)}}var z5=!1;function h8(e,t){if(P0=uh,e=yb(),tm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,h=0,m=e,g=null;t:for(;;){for(var d;m!==n||i!==0&&m.nodeType!==3||(s=a+i),m!==o||r!==0&&m.nodeType!==3||(l=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(d=m.firstChild)!==null;)g=m,m=d;for(;;){if(m===e)break t;if(g===n&&++c===i&&(s=a),g===o&&++h===r&&(l=a),(d=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=d}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(T0={focusedElem:e,selectionRange:n},uh=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){t=Ie;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 w=S.memoizedProps,_=S.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ri(t.type,w),_);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(A){wn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}return S=z5,z5=!1,S}function kc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&G0(t,n,o)}i=i.next}while(i!==r)}}function Zh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Y0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function px(e){var t=e.alternate;t!==null&&(e.alternate=null,px(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[uo],delete t[$c],delete t[I0],delete t[KS],delete t[ZS])),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 mx(e){return e.tag===5||e.tag===3||e.tag===4}function U5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mx(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 K0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dh));else if(r!==4&&(e=e.child,e!==null))for(K0(e,t,n),e=e.sibling;e!==null;)K0(e,t,n),e=e.sibling}function Z0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Z0(e,t,n),e=e.sibling;e!==null;)Z0(e,t,n),e=e.sibling}var Xn=null,Fi=!1;function ha(e,t,n){for(n=n.child;n!==null;)gx(e,t,n),n=n.sibling}function gx(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(qh,n)}catch{}switch(n.tag){case 5:hr||Bl(n,t);case 6:var r=Xn,i=Fi;Xn=null,ha(e,t,n),Xn=r,Fi=i,Xn!==null&&(Fi?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(Fi?(e=Xn,n=n.stateNode,e.nodeType===8?y1(e.parentNode,n):e.nodeType===1&&y1(e,n),Dc(e)):y1(Xn,n.stateNode));break;case 4:r=Xn,i=Fi,Xn=n.stateNode.containerInfo,Fi=!0,ha(e,t,n),Xn=r,Fi=i;break;case 0:case 11:case 14:case 15:if(!hr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&G0(n,t,a),i=i.next}while(i!==r)}ha(e,t,n);break;case 1:if(!hr&&(Bl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){wn(n,t,s)}ha(e,t,n);break;case 21:ha(e,t,n);break;case 22:n.mode&1?(hr=(r=hr)||n.memoizedState!==null,ha(e,t,n),hr=r):ha(e,t,n);break;default:ha(e,t,n)}}function q5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new d8),t.forEach(function(r){var i=_8.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ei(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Xn=s.stateNode,Fi=!1;break e;case 3:Xn=s.stateNode.containerInfo,Fi=!0;break e;case 4:Xn=s.stateNode.containerInfo,Fi=!0;break e}s=s.return}if(Xn===null)throw Error(Le(160));gx(o,a,i),Xn=null,Fi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){wn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vx(t,e),t=t.sibling}function vx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ei(t,e),no(e),r&4){try{kc(3,e,e.return),Zh(3,e)}catch(w){wn(e,e.return,w)}try{kc(5,e,e.return)}catch(w){wn(e,e.return,w)}}break;case 1:Ei(t,e),no(e),r&512&&n!==null&&Bl(n,n.return);break;case 5:if(Ei(t,e),no(e),r&512&&n!==null&&Bl(n,n.return),e.flags&32){var i=e.stateNode;try{Ic(i,"")}catch(w){wn(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Bw(i,o),b0(s,a);var c=b0(s,o);for(a=0;a<l.length;a+=2){var h=l[a],m=l[a+1];h==="style"?Hw(i,m):h==="dangerouslySetInnerHTML"?qw(i,m):h==="children"?Ic(i,m):q2(i,h,m,c)}switch(s){case"input":m0(i,o);break;case"textarea":zw(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?ql(i,!!o.multiple,d,!1):g!==!!o.multiple&&(o.defaultValue!=null?ql(i,!!o.multiple,o.defaultValue,!0):ql(i,!!o.multiple,o.multiple?[]:"",!1))}i[$c]=o}catch(w){wn(e,e.return,w)}}break;case 6:if(Ei(t,e),no(e),r&4){if(e.stateNode===null)throw Error(Le(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(w){wn(e,e.return,w)}}break;case 3:if(Ei(t,e),no(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dc(t.containerInfo)}catch(w){wn(e,e.return,w)}break;case 4:Ei(t,e),no(e);break;case 13:Ei(t,e),no(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(xm=Nn())),r&4&&q5(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(hr=(c=hr)||h,Ei(t,e),hr=c):Ei(t,e),no(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(Ie=e,h=e.child;h!==null;){for(m=Ie=h;Ie!==null;){switch(g=Ie,d=g.child,g.tag){case 0:case 11:case 14:case 15:kc(4,g,g.return);break;case 1:Bl(g,g.return);var S=g.stateNode;if(typeof S.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(w){wn(r,n,w)}}break;case 5:Bl(g,g.return);break;case 22:if(g.memoizedState!==null){H5(m);continue}}d!==null?(d.return=g,Ie=d):H5(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{i=m.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=m.stateNode,l=m.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=$w("display",a))}catch(w){wn(e,e.return,w)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=c?"":m.memoizedProps}catch(w){wn(e,e.return,w)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ei(t,e),no(e),r&4&&q5(e);break;case 21:break;default:Ei(t,e),no(e)}}function no(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mx(n)){var r=n;break e}n=n.return}throw Error(Le(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ic(i,""),r.flags&=-33);var o=U5(e);Z0(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=U5(e);K0(e,s,a);break;default:throw Error(Le(161))}}catch(l){wn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function p8(e,t,n){Ie=e,yx(e)}function yx(e,t,n){for(var r=(e.mode&1)!==0;Ie!==null;){var i=Ie,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||wd;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||hr;s=wd;var c=hr;if(wd=a,(hr=l)&&!c)for(Ie=i;Ie!==null;)a=Ie,l=a.child,a.tag===22&&a.memoizedState!==null?W5(i):l!==null?(l.return=a,Ie=l):W5(i);for(;o!==null;)Ie=o,yx(o),o=o.sibling;Ie=i,wd=s,hr=c}$5(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ie=o):$5(e)}}function $5(e){for(;Ie!==null;){var t=Ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:hr||Zh(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!hr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ri(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&L5(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}L5(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.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 m=h.dehydrated;m!==null&&Dc(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Le(163))}hr||t.flags&512&&Y0(t)}catch(g){wn(t,t.return,g)}}if(t===e){Ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ie=n;break}Ie=t.return}}function H5(e){for(;Ie!==null;){var t=Ie;if(t===e){Ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ie=n;break}Ie=t.return}}function W5(e){for(;Ie!==null;){var t=Ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zh(4,t)}catch(l){wn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){wn(t,i,l)}}var o=t.return;try{Y0(t)}catch(l){wn(t,o,l)}break;case 5:var a=t.return;try{Y0(t)}catch(l){wn(t,a,l)}}}catch(l){wn(t,t.return,l)}if(t===e){Ie=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Ie=s;break}Ie=t.return}}var m8=Math.ceil,Sh=Xo.ReactCurrentDispatcher,wm=Xo.ReactCurrentOwner,vi=Xo.ReactCurrentBatchConfig,Pt=0,Hn=null,Tn=null,Jn=0,Zr=0,zl=ts(0),Dn=0,Kc=null,$s=0,Xh=0,bm=0,Ac=null,Rr=null,xm=0,gu=1/0,Mo=null,Nh=!1,X0=null,Ba=null,bd=!1,Pa=null,kh=0,Lc=0,Q0=null,Wd=-1,Vd=0;function kr(){return Pt&6?Nn():Wd!==-1?Wd:Wd=Nn()}function za(e){return e.mode&1?Pt&2&&Jn!==0?Jn&-Jn:QS.transition!==null?(Vd===0&&(Vd=nb()),Vd):(e=zt,e!==0||(e=window.event,e=e===void 0?16:ub(e.type)),e):1}function Bi(e,t,n,r){if(50<Lc)throw Lc=0,Q0=null,Error(Le(185));hf(e,n,r),(!(Pt&2)||e!==Hn)&&(e===Hn&&(!(Pt&2)&&(Xh|=n),Dn===4&&_a(e,Jn)),Mr(e,r),n===1&&Pt===0&&!(t.mode&1)&&(gu=Nn()+500,Gh&&ns()))}function Mr(e,t){var n=e.callbackNode;Q6(e,t);var r=lh(e,e===Hn?Jn:0);if(r===0)n!==null&&e5(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&e5(n),t===1)e.tag===0?XS(V5.bind(null,e)):Eb(V5.bind(null,e)),GS(function(){!(Pt&6)&&ns()}),n=null;else{switch(rb(r)){case 1:n=G2;break;case 4:n=eb;break;case 16:n=sh;break;case 536870912:n=tb;break;default:n=sh}n=Ax(n,wx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wx(e,t){if(Wd=-1,Vd=0,Pt&6)throw Error(Le(327));var n=e.callbackNode;if(Gl()&&e.callbackNode!==n)return null;var r=lh(e,e===Hn?Jn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ah(e,r);else{t=r;var i=Pt;Pt|=2;var o=xx();(Hn!==e||Jn!==t)&&(Mo=null,gu=Nn()+500,Ms(e,t));do try{y8();break}catch(s){bx(e,s)}while(!0);am(),Sh.current=o,Pt=i,Tn!==null?t=0:(Hn=null,Jn=0,t=Dn)}if(t!==0){if(t===2&&(i=k0(e),i!==0&&(r=i,t=J0(e,i))),t===1)throw n=Kc,Ms(e,0),_a(e,r),Mr(e,Nn()),n;if(t===6)_a(e,r);else{if(i=e.current.alternate,!(r&30)&&!g8(i)&&(t=Ah(e,r),t===2&&(o=k0(e),o!==0&&(r=o,t=J0(e,o))),t===1))throw n=Kc,Ms(e,0),_a(e,r),Mr(e,Nn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Le(345));case 2:_s(e,Rr,Mo);break;case 3:if(_a(e,r),(r&130023424)===r&&(t=xm+500-Nn(),10<t)){if(lh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){kr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=O0(_s.bind(null,e,Rr,Mo),t);break}_s(e,Rr,Mo);break;case 4:if(_a(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Di(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*m8(r/1960))-r,10<r){e.timeoutHandle=O0(_s.bind(null,e,Rr,Mo),r);break}_s(e,Rr,Mo);break;case 5:_s(e,Rr,Mo);break;default:throw Error(Le(329))}}}return Mr(e,Nn()),e.callbackNode===n?wx.bind(null,e):null}function J0(e,t){var n=Ac;return e.current.memoizedState.isDehydrated&&(Ms(e,t).flags|=256),e=Ah(e,t),e!==2&&(t=Rr,Rr=n,t!==null&&e2(t)),e}function e2(e){Rr===null?Rr=e:Rr.push.apply(Rr,e)}function g8(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!zi(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 _a(e,t){for(t&=~bm,t&=~Xh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Di(t),r=1<<n;e[n]=-1,t&=~r}}function V5(e){if(Pt&6)throw Error(Le(327));Gl();var t=lh(e,0);if(!(t&1))return Mr(e,Nn()),null;var n=Ah(e,t);if(e.tag!==0&&n===2){var r=k0(e);r!==0&&(t=r,n=J0(e,r))}if(n===1)throw n=Kc,Ms(e,0),_a(e,t),Mr(e,Nn()),n;if(n===6)throw Error(Le(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_s(e,Rr,Mo),Mr(e,Nn()),null}function _m(e,t){var n=Pt;Pt|=1;try{return e(t)}finally{Pt=n,Pt===0&&(gu=Nn()+500,Gh&&ns())}}function Hs(e){Pa!==null&&Pa.tag===0&&!(Pt&6)&&Gl();var t=Pt;Pt|=1;var n=vi.transition,r=zt;try{if(vi.transition=null,zt=1,e)return e()}finally{zt=r,vi.transition=n,Pt=t,!(Pt&6)&&ns()}}function Sm(){Zr=zl.current,nn(zl)}function Ms(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,VS(n)),Tn!==null)for(n=Tn.return;n!==null;){var r=n;switch(rm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hh();break;case 3:pu(),nn(jr),nn(pr),dm();break;case 5:fm(r);break;case 4:pu();break;case 13:nn(cn);break;case 19:nn(cn);break;case 10:sm(r.type._context);break;case 22:case 23:Sm()}n=n.return}if(Hn=e,Tn=e=Ua(e.current,null),Jn=Zr=t,Dn=0,Kc=null,bm=Xh=$s=0,Rr=Ac=null,As!==null){for(t=0;t<As.length;t++)if(n=As[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}As=null}return e}function bx(e,t){do{var n=Tn;try{if(am(),qd.current=_h,xh){for(var r=fn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}xh=!1}if(qs=0,qn=Fn=fn=null,Nc=!1,Vc=0,wm.current=null,n===null||n.return===null){Dn=1,Kc=t,Tn=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Jn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,h=s,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===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 d=O5(a);if(d!==null){d.flags&=-257,I5(d,a,s,o,t),d.mode&1&&R5(o,c,t),t=d,l=c;var S=t.updateQueue;if(S===null){var w=new Set;w.add(l),t.updateQueue=w}else S.add(l);break e}else{if(!(t&1)){R5(o,c,t),Nm();break e}l=Error(Le(426))}}else if(sn&&s.mode&1){var _=O5(a);if(_!==null){!(_.flags&65536)&&(_.flags|=256),I5(_,a,s,o,t),im(mu(l,s));break e}}o=l=mu(l,s),Dn!==4&&(Dn=2),Ac===null?Ac=[o]:Ac.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=rx(o,l,t);A5(o,y);break e;case 1:s=l;var x=o.type,N=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Ba===null||!Ba.has(N)))){o.flags|=65536,t&=-t,o.lanes|=t;var A=ix(o,s,t);A5(o,A);break e}}o=o.return}while(o!==null)}Sx(n)}catch(M){t=M,Tn===n&&n!==null&&(Tn=n=n.return);continue}break}while(!0)}function xx(){var e=Sh.current;return Sh.current=_h,e===null?_h:e}function Nm(){(Dn===0||Dn===3||Dn===2)&&(Dn=4),Hn===null||!($s&268435455)&&!(Xh&268435455)||_a(Hn,Jn)}function Ah(e,t){var n=Pt;Pt|=2;var r=xx();(Hn!==e||Jn!==t)&&(Mo=null,Ms(e,t));do try{v8();break}catch(i){bx(e,i)}while(!0);if(am(),Pt=n,Sh.current=r,Tn!==null)throw Error(Le(261));return Hn=null,Jn=0,Dn}function v8(){for(;Tn!==null;)_x(Tn)}function y8(){for(;Tn!==null&&!$6();)_x(Tn)}function _x(e){var t=kx(e.alternate,e,Zr);e.memoizedProps=e.pendingProps,t===null?Sx(e):Tn=t,wm.current=null}function Sx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=f8(n,t),n!==null){n.flags&=32767,Tn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Dn=6,Tn=null;return}}else if(n=c8(n,t,Zr),n!==null){Tn=n;return}if(t=t.sibling,t!==null){Tn=t;return}Tn=t=e}while(t!==null);Dn===0&&(Dn=5)}function _s(e,t,n){var r=zt,i=vi.transition;try{vi.transition=null,zt=1,w8(e,t,n,r)}finally{vi.transition=i,zt=r}return null}function w8(e,t,n,r){do Gl();while(Pa!==null);if(Pt&6)throw Error(Le(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Le(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(J6(e,o),e===Hn&&(Tn=Hn=null,Jn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bd||(bd=!0,Ax(sh,function(){return Gl(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=vi.transition,vi.transition=null;var a=zt;zt=1;var s=Pt;Pt|=4,wm.current=null,h8(e,n),vx(n,e),BS(T0),uh=!!P0,T0=P0=null,e.current=n,p8(n),H6(),Pt=s,zt=a,vi.transition=o}else e.current=n;if(bd&&(bd=!1,Pa=e,kh=i),o=e.pendingLanes,o===0&&(Ba=null),G6(n.stateNode),Mr(e,Nn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Nh)throw Nh=!1,e=X0,X0=null,e;return kh&1&&e.tag!==0&&Gl(),o=e.pendingLanes,o&1?e===Q0?Lc++:(Lc=0,Q0=e):Lc=0,ns(),null}function Gl(){if(Pa!==null){var e=rb(kh),t=vi.transition,n=zt;try{if(vi.transition=null,zt=16>e?16:e,Pa===null)var r=!1;else{if(e=Pa,Pa=null,kh=0,Pt&6)throw Error(Le(331));var i=Pt;for(Pt|=4,Ie=e.current;Ie!==null;){var o=Ie,a=o.child;if(Ie.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Ie=c;Ie!==null;){var h=Ie;switch(h.tag){case 0:case 11:case 15:kc(8,h,o)}var m=h.child;if(m!==null)m.return=h,Ie=m;else for(;Ie!==null;){h=Ie;var g=h.sibling,d=h.return;if(px(h),h===c){Ie=null;break}if(g!==null){g.return=d,Ie=g;break}Ie=d}}}var S=o.alternate;if(S!==null){var w=S.child;if(w!==null){S.child=null;do{var _=w.sibling;w.sibling=null,w=_}while(w!==null)}}Ie=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Ie=a;else e:for(;Ie!==null;){if(o=Ie,o.flags&2048)switch(o.tag){case 0:case 11:case 15:kc(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,Ie=y;break e}Ie=o.return}}var x=e.current;for(Ie=x;Ie!==null;){a=Ie;var N=a.child;if(a.subtreeFlags&2064&&N!==null)N.return=a,Ie=N;else e:for(a=x;Ie!==null;){if(s=Ie,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Zh(9,s)}}catch(M){wn(s,s.return,M)}if(s===a){Ie=null;break e}var A=s.sibling;if(A!==null){A.return=s.return,Ie=A;break e}Ie=s.return}}if(Pt=i,ns(),ho&&typeof ho.onPostCommitFiberRoot=="function")try{ho.onPostCommitFiberRoot(qh,e)}catch{}r=!0}return r}finally{zt=n,vi.transition=t}}return!1}function G5(e,t,n){t=mu(n,t),t=rx(e,t,1),e=Da(e,t,1),t=kr(),e!==null&&(hf(e,1,t),Mr(e,t))}function wn(e,t,n){if(e.tag===3)G5(e,e,n);else for(;t!==null;){if(t.tag===3){G5(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ba===null||!Ba.has(r))){e=mu(n,e),e=ix(t,e,1),t=Da(t,e,1),e=kr(),t!==null&&(hf(t,1,e),Mr(t,e));break}}t=t.return}}function b8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=kr(),e.pingedLanes|=e.suspendedLanes&n,Hn===e&&(Jn&n)===n&&(Dn===4||Dn===3&&(Jn&130023424)===Jn&&500>Nn()-xm?Ms(e,0):bm|=n),Mr(e,t)}function Nx(e,t){t===0&&(e.mode&1?(t=cd,cd<<=1,!(cd&130023424)&&(cd=4194304)):t=1);var n=kr();e=Go(e,t),e!==null&&(hf(e,t,n),Mr(e,n))}function x8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nx(e,n)}function _8(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Le(314))}r!==null&&r.delete(t),Nx(e,n)}var kx;kx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jr.current)Or=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Or=!1,u8(e,t,n);Or=!!(e.flags&131072)}else Or=!1,sn&&t.flags&1048576&&Cb(t,gh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hd(e,t),e=t.pendingProps;var i=fu(t,pr.current);Vl(t,n),i=pm(null,t,r,e,i,n);var o=mm();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,Fr(r)?(o=!0,ph(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,um(t),i.updater=Kh,t.stateNode=i,i._reactInternals=t,z0(t,r,e,n),t=$0(null,t,r,!0,o,n)):(t.tag=0,sn&&o&&nm(t),_r(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=N8(r),e=Ri(r,e),i){case 0:t=q0(null,t,r,e,n);break e;case 1:t=M5(null,t,r,e,n);break e;case 11:t=j5(null,t,r,e,n);break e;case 14:t=F5(null,t,r,Ri(r.type,e),n);break e}throw Error(Le(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ri(r,i),q0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ri(r,i),M5(e,t,r,i,n);case 3:e:{if(lx(t),e===null)throw Error(Le(387));
vendor: 8,186 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,jb(e,t),wh(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=mu(Error(Le(423)),t),t=D5(e,t,r,n,i);break e}else if(r!==i){i=mu(Error(Le(424)),t),t=D5(e,t,r,n,i);break e}else for(Qr=Ma(t.stateNode.containerInfo.firstChild),ti=t,sn=!0,Mi=null,n=Ob(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(du(),r===i){t=Yo(e,t,n);break e}_r(e,t,r,n)}t=t.child}return t;case 5:return Fb(t),e===null&&M0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,R0(r,i)?a=null:o!==null&&R0(r,o)&&(t.flags|=32),sx(e,t),_r(e,t,a,n),t.child;case 6:return e===null&&M0(t),null;case 13:return ux(e,t,n);case 4:return cm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hu(t,null,r,n):_r(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ri(r,i),j5(e,t,r,i,n);case 7:return _r(e,t,t.pendingProps,n),t.child;case 8:return _r(e,t,t.pendingProps.children,n),t.child;case 12:return _r(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Zt(vh,r._currentValue),r._currentValue=a,o!==null)if(zi(o.value,a)){if(o.children===i.children&&!jr.current){t=Yo(e,t,n);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===r){if(o.tag===1){l=Ho(-1,n&-n),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|=n,l=o.alternate,l!==null&&(l.lanes|=n),D0(o.return,n,t),s.lanes|=n;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(Le(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),D0(a,n,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}_r(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vl(t,n),i=yi(i),r=r(i),t.flags|=1,_r(e,t,r,n),t.child;case 14:return r=t.type,i=Ri(r,t.pendingProps),i=Ri(r.type,i),F5(e,t,r,i,n);case 15:return ox(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ri(r,i),Hd(e,t),t.tag=1,Fr(r)?(e=!0,ph(t)):e=!1,Vl(t,n),nx(t,r,i),z0(t,r,i,n),$0(null,t,r,!0,e,n);case 19:return cx(e,t,n);case 22:return ax(e,t,n)}throw Error(Le(156,t.tag))};function Ax(e,t){return Jw(e,t)}function S8(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,n,r){return new S8(e,t,n,r)}function km(e){return e=e.prototype,!(!e||!e.isReactComponent)}function N8(e){if(typeof e=="function")return km(e)?1:0;if(e!=null){if(e=e.$$typeof,e===H2)return 11;if(e===W2)return 14}return 2}function Ua(e,t){var n=e.alternate;return n===null?(n=gi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gd(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")km(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Pl:return Ds(n.children,i,o,t);case $2:a=8,i|=8;break;case c0:return e=gi(12,n,t,i|2),e.elementType=c0,e.lanes=o,e;case f0:return e=gi(13,n,t,i),e.elementType=f0,e.lanes=o,e;case d0:return e=gi(19,n,t,i),e.elementType=d0,e.lanes=o,e;case Fw:return Qh(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iw:a=10;break e;case jw:a=9;break e;case H2:a=11;break e;case W2:a=14;break e;case wa:a=16,r=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=gi(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ds(e,t,n,r){return e=gi(7,e,r,t),e.lanes=n,e}function Qh(e,t,n,r){return e=gi(22,e,r,t),e.elementType=Fw,e.lanes=n,e.stateNode={isHidden:!1},e}function A1(e,t,n){return e=gi(6,e,null,t),e.lanes=n,e}function L1(e,t,n){return t=gi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function k8(e,t,n,r,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=s1(0),this.expirationTimes=s1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Am(e,t,n,r,i,o,a,s,l){return e=new k8(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=gi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},um(o),e}function A8(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lx(e){if(!e)return Va;e=e._reactInternals;e:{if(Xs(e)!==e||e.tag!==1)throw Error(Le(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Le(171))}if(e.tag===1){var n=e.type;if(Fr(n))return Lb(e,n,t)}return t}function Ex(e,t,n,r,i,o,a,s,l){return e=Am(n,r,!0,e,i,o,a,s,l),e.context=Lx(null),n=e.current,r=kr(),i=za(n),o=Ho(r,i),o.callback=t??null,Da(n,o,i),e.current.lanes=i,hf(e,i,r),Mr(e,r),e}function Jh(e,t,n,r){var i=t.current,o=kr(),a=za(i);return n=Lx(n),t.context===null?t.context=n:t.pendingContext=n,t=Ho(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Da(i,t,a),e!==null&&(Bi(e,i,a,o),Ud(e,i,a)),a}function Lh(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 Y5(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lm(e,t){Y5(e,t),(e=e.alternate)&&Y5(e,t)}function L8(){return null}var Cx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Em(e){this._internalRoot=e}ep.prototype.render=Em.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Le(409));Jh(e,t,null,null)};ep.prototype.unmount=Em.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hs(function(){Jh(null,e,null,null)}),t[Vo]=null}};function ep(e){this._internalRoot=e}ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=ab();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xa.length&&t!==0&&t<xa[n].priority;n++);xa.splice(n,0,e),n===0&&lb(e)}};function Cm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function K5(){}function E8(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Lh(a);o.call(c)}}var a=Ex(t,r,e,0,null,!1,!1,"",K5);return e._reactRootContainer=a,e[Vo]=a.current,Uc(e.nodeType===8?e.parentNode:e),Hs(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=Lh(l);
vendor: 5,070 bytes, line 40
40s.call(c)}}var l=Am(e,0,!1,null,null,!1,!1,"",K5);return e._reactRootContainer=l,e[Vo]=l.current,Uc(e.nodeType===8?e.parentNode:e),Hs(function(){Jh(t,l,n,r)}),l}function np(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Lh(a);s.call(l)}}Jh(t,a,e,i)}else a=E8(n,t,e,i,r);return Lh(a)}ib=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=mc(t.pendingLanes);n!==0&&(Y2(t,n|1),Mr(t,Nn()),!(Pt&6)&&(gu=Nn()+500,ns()))}break;case 13:Hs(function(){var r=Go(e,1);if(r!==null){var i=kr();Bi(r,e,1,i)}}),Lm(e,1)}};K2=function(e){if(e.tag===13){var t=Go(e,134217728);if(t!==null){var n=kr();Bi(t,e,134217728,n)}Lm(e,134217728)}};ob=function(e){if(e.tag===13){var t=za(e),n=Go(e,t);if(n!==null){var r=kr();Bi(n,e,t,r)}Lm(e,t)}};ab=function(){return zt};sb=function(e,t){var n=zt;try{return zt=e,t()}finally{zt=n}};_0=function(e,t,n){switch(t){case"input":if(m0(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Vh(r);if(!i)throw Error(Le(90));Dw(r),m0(r,i)}}}break;case"textarea":zw(e,n);break;case"select":t=n.value,t!=null&&ql(e,!!n.multiple,t,!1)}};Gw=_m;Yw=Hs;var C8={usingClientEntryPoint:!1,Events:[mf,Il,Vh,Ww,Vw,_m]},sc={findFiberByHostInstance:ks,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},P8={bundleType:sc.bundleType,version:sc.version,rendererPackageName:sc.rendererPackageName,rendererConfig:sc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xw(e),e===null?null:e.stateNode},findFiberByHostInstance:sc.findFiberByHostInstance||L8,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 xd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xd.isDisabled&&xd.supportsFiber)try{qh=xd.inject(P8),ho=xd}catch{}}ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C8;ii.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cm(t))throw Error(Le(200));return A8(e,t,null,n)};ii.createRoot=function(e,t){if(!Cm(e))throw Error(Le(299));var n=!1,r="",i=Cx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Am(e,1,!1,null,null,n,!1,r,i),e[Vo]=t.current,Uc(e.nodeType===8?e.parentNode:e),new Em(t)};ii.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(Le(188)):(e=Object.keys(e).join(","),Error(Le(268,e)));return e=Xw(t),e=e===null?null:e.stateNode,e};ii.flushSync=function(e){return Hs(e)};ii.hydrate=function(e,t,n){if(!tp(t))throw Error(Le(200));return np(null,e,t,!0,n)};ii.hydrateRoot=function(e,t,n){if(!Cm(e))throw Error(Le(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Cx;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Ex(t,null,e,1,n??null,i,!1,o,a),e[Vo]=t.current,Uc(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ep(t)};ii.render=function(e,t,n){if(!tp(t))throw Error(Le(200));return np(null,e,t,!1,n)};ii.unmountComponentAtNode=function(e){if(!tp(e))throw Error(Le(40));return e._reactRootContainer?(Hs(function(){np(null,null,e,!1,function(){e._reactRootContainer=null,e[Vo]=null})}),!0):!1};ii.unstable_batchedUpdates=_m;ii.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tp(n))throw Error(Le(200));if(e==null||e._reactInternals===void 0)throw Error(Le(38));return np(e,t,n,!1,r)};ii.version="18.3.1-next-f1338f8080-20240426";function Px(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Px)}catch(e){console.error(e)}}Px(),Pw.exports=ii;var vf=Pw.exports;const Tx=vw(vf);var Rx,Z5=vf;Rx=Z5.createRoot,Z5.hydrateRoot;const T8=1,R8=1e6;let E1=0;function O8(){return E1=(E1+1)%Number.MAX_SAFE_INTEGER,E1.toString()}const C1=new Map,X5=e=>{if(C1.has(e))return;const t=setTimeout(()=>{C1.delete(e),Ec({type:"REMOVE_TOAST",toastId:e})},R8);C1.set(e,t)},I8=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,T8)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
40return n?X5(n):e.toasts.forEach(r=>{X5(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Yd=[];let Kd={toasts:[]};function Ec(e){Kd=I8(Kd,e),Yd.forEach(t=>{t(Kd)})}function j8({...e}){const t=O8(),n=i=>Ec({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Ec({type:"DISMISS_TOAST",toastId:t});return Ec({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function F8(){const[e,t]=X.useState(Kd);return X.useEffect(()=>(Yd.push(t),()=>{const n=Yd.indexOf(t);n>-1&&Yd.splice(n,1)}),[e]),{...e,toast:j8,dismiss:n=>Ec({type:"DISMISS_TOAST",toastId:n})}}function Mn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Q5(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ox(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Q5(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Q5(e[i],null)}}}}function Ui(...e){return X.useCallback(Ox(...e),e)}function rp(e,t=[]){let n=[];function r(o,a){const s=X.createContext(a),l=n.length;n=[...n,a];const c=m=>{var y;const{scope:g,children:d,...S}=m,w=((y=g==null?void 0:g[e])==null?void 0:y[l])||s,_=X.useMemo(()=>S,Object.values(S));return U.jsx(w.Provider,{value:_,children:d})};c.displayName=o+"Provider";function h(m,g){var w;const d=((w=g==null?void 0:g[e])==null?void 0:w[l])||s,S=X.useContext(d);if(S)return S;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[c,h]}const i=()=>{const o=n.map(a=>X.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return X.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,M8(i,...t)]}function M8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const m=l(o)[`__scope${c}`];return{...s,...m}},{});return X.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function t2(e){const t=D8(e),n=X.forwardRef((r,i)=>{const{children:o,...a}=r,s=X.Children.toArray(o),l=s.find(z8);if(l){const c=l.props.children,h=s.map(m=>m===l?X.Children.count(c)>1?X.Children.only(null):X.isValidElement(c)?c.props.children:null:m);return U.jsx(t,{...a,ref:i,children:X.isValidElement(c)?X.cloneElement(c,void 0,h):null})}return U.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function D8(e){const t=X.forwardRef((n,r)=>{const{children:i,...o}=n;if(X.isValidElement(i)){const a=q8(i),s=U8(o,i.props);return i.type!==X.Fragment&&(s.ref=r?Ox(r,a):a),X.cloneElement(i,s)}return X.Children.count(i)>1?X.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ix=Symbol("radix.slottable");function B8(e){const t=({children:n})=>U.jsx(U.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ix,t}function z8(e){return X.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ix}function U8(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const l=o(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function q8(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function $8(e){const t=e+"CollectionProvider",[n,r]=rp(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=w=>{const{scope:_,children:y}=w,x=Ee.useRef(null),N=Ee.useRef(new Map).current;return U.jsx(i,{scope:_,itemMap:N,collectionRef:x,children:y})};a.displayName=t;const s=e+"CollectionSlot",l=t2(s),c=Ee.forwardRef((w,_)=>{const{scope:y,children:x}=w,N=o(s,y),A=Ui(_,N.collectionRef);return U.jsx(l,{ref:A,children:x})});c.displayName=s;const h=e+"CollectionItemSlot",m="data-radix-collection-item",g=t2(h),d=Ee.forwardRef((w,_)=>{const{scope:y,children:x,...N}=w,A=Ee.useRef(null),M=Ui(_,A),K=o(h,y);return Ee.useEffect(()=>(K.itemMap.set(A,{ref:A,...N}),()=>void K.itemMap.delete(A))),U.jsx(g,{[m]:"",ref:M,children:x})});d.displayName=h;function S(w){const _=o(e+"CollectionConsumer",w);return Ee.useCallback(()=>{const x=_.collectionRef.current;if(!x)return[];const N=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(_.itemMap.values()).sort((K,Y)=>N.indexOf(K.ref.current)-N.indexOf(Y.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:a,Slot:c,ItemSlot:d},S,r]}var H8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Br=H8.reduce((e,t)=>
vendor: 8,608 bytes, line 40
40{const n=t2(`Primitive.${t}`),r=X.forwardRef((i,o)=>{const{asChild:a,...s}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),U.jsx(l,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jx(e,t){e&&vf.flushSync(()=>e.dispatchEvent(t))}function Ga(e){const t=X.useRef(e);return X.useEffect(()=>{t.current=e}),X.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function W8(e,t=globalThis==null?void 0:globalThis.document){const n=Ga(e);X.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var V8="DismissableLayer",n2="dismissableLayer.update",G8="dismissableLayer.pointerDownOutside",Y8="dismissableLayer.focusOutside",J5,Fx=X.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pm=X.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,c=X.useContext(Fx),[h,m]=X.useState(null),g=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=X.useState({}),S=Ui(t,Y=>m(Y)),w=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(_),x=h?w.indexOf(h):-1,N=c.layersWithOutsidePointerEventsDisabled.size>0,A=x>=y,M=Z8(Y=>{const H=Y.target,I=[...c.branches].some(Z=>Z.contains(H));!A||I||(i==null||i(Y),a==null||a(Y),Y.defaultPrevented||s==null||s())},g),K=X8(Y=>{const H=Y.target;[...c.branches].some(Z=>Z.contains(H))||(o==null||o(Y),a==null||a(Y),Y.defaultPrevented||s==null||s())},g);return W8(Y=>{x===c.layers.size-1&&(r==null||r(Y),!Y.defaultPrevented&&s&&(Y.preventDefault(),s()))},g),X.useEffect(()=>{if(h)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(J5=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(h)),c.layers.add(h),ev(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=J5)}},[h,g,n,c]),X.useEffect(()=>()=>{h&&(c.layers.delete(h),c.layersWithOutsidePointerEventsDisabled.delete(h),ev())},[h,c]),X.useEffect(()=>{const Y=()=>d({});return document.addEventListener(n2,Y),()=>document.removeEventListener(n2,Y)},[]),U.jsx(Br.div,{...l,ref:S,style:{pointerEvents:N?A?"auto":"none":void 0,...e.style},onFocusCapture:Mn(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Mn(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Mn(e.onPointerDownCapture,M.onPointerDownCapture)})});Pm.displayName=V8;var K8="DismissableLayerBranch",Mx=X.forwardRef((e,t)=>{const n=X.useContext(Fx),r=X.useRef(null),i=Ui(t,r);return X.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),U.jsx(Br.div,{...e,ref:i})});Mx.displayName=K8;function Z8(e,t=globalThis==null?void 0:globalThis.document){const n=Ga(e),r=X.useRef(!1),i=X.useRef(()=>{});return X.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let l=function(){Dx(G8,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function X8(e,t=globalThis==null?void 0:globalThis.document){const n=Ga(e),r=X.useRef(!1);return X.useEffect(()=>{const i=o=>{o.target&&!r.current&&Dx(Y8,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ev(){const e=new CustomEvent(n2);document.dispatchEvent(e)}function Dx(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?jx(i,o):i.dispatchEvent(o)}var Q8=Pm,J8=Mx,Ya=globalThis!=null&&globalThis.document?X.useLayoutEffect:()=>{},eN="Portal",Bx=X.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[i,o]=X.useState(!1);Ya(()=>o(!0),[]);const a=n||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?Tx.createPortal(U.jsx(Br.div,{...r,ref:t}),a):null});Bx.displayName=eN;function tN(e,t){return X.useReducer((n,r)=>t[n][r]??n,e)}var Tm=e=>{const{present:t,children:n}=e,r=nN(t),i=typeof n=="function"?n({present:r.isPresent}):X.Children.only(n),o=Ui(r.ref,rN(i));return typeof n=="function"||r.isPresent?X.cloneElement(i,{ref:o}):null};Tm.displayName="Presence";function nN(e){const[t,n]=X.useState(),r=X.useRef(null),i=X.useRef(e),o=X.useRef("none"),a=e?"mounted":"unmounted",[s,l]=tN(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return X.useEffect(()=>{const c=_d(r.current);o.current=s==="mounted"?c:"none"},[s]),Ya(()=>{const c=r.current,h=i.current;if(h!==e){const g=o.current,d=_d(c);e?l("MOUNT"):d==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(h&&g!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Ya(()=>{if(t){let c;const h=t.ownerDocument.defaultView??window,m=d=>{const w=_d(r.current).includes(d.animationName);if(d.target===t&&w&&(l("ANIMATION_END"),!i.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",c=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},g=d=>{d.target===t&&(o.current=_d(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{h.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:X.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function _d(e){return(e==null?void 0:e.animationName)||"none"}function rN(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var iN=Ew[" useInsertionEffect ".trim().toString()]||Ya;function oN({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=aN({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i;{const h=X.useRef(e!==void 0);X.useEffect(()=>{const m=h.current;m!==s&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,r])}const c=X.useCallback(h=>{var m;if(s){const g=sN(h)?h(e):h;g!==e&&((m=a.current)==null||m.call(a,g))}else o(h)},[s,e,o,a]);return[l,c]}function aN({defaultProp:e,onChange:t}){const[n,r]=X.useState(e),i=X.useRef(n),o=X.useRef(t);return iN(()=>{o.current=t},[t]),X.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function sN(e){return typeof e=="function"}var lN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uN="VisuallyHidden",ip=X.forwardRef((e,t)=>U.jsx(Br.span,{...e,ref:t,style:{...lN,...e.style}}));ip.displayName=uN;var cN=ip,Rm="ToastProvider",[Om,fN,dN]=$8("Toast"),[zx,yR]=rp("Toast",[dN]),[hN,op]=zx(Rm),Ux=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=X.useState(null),[c,h]=X.useState(0),m=X.useRef(!1),g=X.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Rm}\`. Expected non-empty \`string\`.`),U.jsx(Om.Provider,{scope:t,children:U.jsx(hN,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:X.useCallback(()=>h(d=>d+1),[]),onToastRemove:X.useCallback(()=>h(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g,children:a})})};Ux.displayName=Rm;var qx="ToastViewport",pN=["F8"],r2="toast.viewportPause",i2="toast.viewportResume",$x=X.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=pN,label:i="Notifications ({hotkey})",...o}=e,a=op(qx,n),s=fN(n),l=X.useRef(null),c=X.useRef(null),h=X.useRef(null),m=X.useRef(null),g=Ui(t,m,a.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=a.toastCount>0;X.useEffect(()=>{const _=y=>{var N;r.length!==0&&r.every(A=>y[A]||y.code===A)&&((N=m.current)==null||N.focus())};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[r]),X.useEffect(()=>{const _=l.current,y=m.current;if(S&&_&&y){const x=()=>{if(!a.isClosePausedRef.current){const K=new CustomEvent(r2);y.dispatchEvent(K),a.isClosePausedRef.current=!0}},N=()=>{if(a.isClosePausedRef.current){const K=new CustomEvent(i2);y.dispatchEvent(K),a.isClosePausedRef.current=!1}},A=K=>{!_.contains(K.relatedTarget)&&N()},M=()=>{_.contains(document.activeElement)||N()};return _.addEventListener("focusin",x),_.addEventListener("focusout",A),_.addEventListener("pointermove",x),_.addEventListener("pointerleave",M),window.addEventListener("blur",x),window.addEventListener("focus",N),()=>{_.removeEventListener("focusin",x),_.removeEventListener("focusout",A),_.removeEventListener("pointermove",x),_.removeEventListener("pointerleave",M),window.removeEventListener("blur",x),window.removeEventListener("focus",N)}}},[S,a.isClosePausedRef]);const w=X.useCallback(({tabbingDirection:_})=>{const x=s().map(N=>{const A=N.ref.current,M=[A,...LN(A)];return _==="forwards"?M:M.reverse()});return(_==="forwards"?x.reverse():x).flat()},[s]);return X.useEffect(()=>{const _=m.current;if(_){const y=x=>{var M,K,Y;const N=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!N){const H=document.activeElement,I=x.shiftKey;if(x.target===_&&I){(M=c.current)==null||M.focus();return}const R=w({tabbingDirection:I?"backwards":"forwards"}),G=R.findIndex(B=>B===H);P1(R.slice(G+1))?x.preventDefault():I?(K=c.current)==null||K.focus():(Y=h.current)==null||Y.focus()}};return _.addEventListener("keydown",y),()=>_.removeEventListener("keydown",y)}},[s,w]),U.jsxs(J8,{ref:l,role:"region","aria-label":i.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&U.jsx(o2,{ref:c,onFocusFromOutsideViewport:()=>{const _=w({tabbingDirection:"forwards"});P1(_)}}),U.jsx(Om.Slot,{scope:n,children:U.jsx(Br.ol,{tabIndex:-1,...o,ref:g})}),S&&U.jsx(o2,{ref:h,onFocusFromOutsideViewport:()=>{const _=w({tabbingDirection:"backwards"});P1(_)}})]})});$x.displayName=qx;var Hx="ToastFocusProxy",o2=X.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=op(Hx,n);return U.jsx(ip,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const s=a.relatedTarget;!((c=o.viewport)!=null&&c.contains(s))&&r()}})});o2.displayName=Hx;var yf="Toast",mN="toast.swipeStart",gN="toast.swipeMove",vN="toast.swipeCancel",yN="toast.swipeEnd",Wx=X.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...a}=e,[s,l]=oN({prop:r,defaultProp:i??!0,onChange:o,caller:yf});return U.jsx(Tm,{present:n||s,children:U.jsx(xN,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:Ga(e.onPause),onResume:Ga(e.onResume),onSwipeStart:Mn(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Mn(e.onSwipeMove,c=>{const{x:h,y:m}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:Mn(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Mn(e.onSwipeEnd,c=>{const{x:h,y:m}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),l(!1)})})})});Wx.displayName=yf;var[wN,bN]=zx(yf,{onClose(){}}),xN=X.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:d,...S}=e,w=op(yf,n),[_,y]=X.useState(null),x=Ui(t,B=>y(B)),N=X.useRef(null),A=X.useRef(null),M=i||w.duration,K=X.useRef(0),Y=X.useRef(M),H=X.useRef(0),{onToastAdd:I,onToastRemove:Z}=w,P=Ga(()=>{var ae;(_==null?void 0:_.contains(document.activeElement))&&((ae=w.viewport)==null||ae.focus()),a()}),R=X.useCallback(B=>{!B||B===1/0||(window.clearTimeout(H.current),K.current=new Date().getTime(),H.current=window.setTimeout(P,B))},[P]);X.useEffect(()=>{const B=w.viewport;if(B){const ae=()=>{R(Y.current),c==null||c()},se=()=>{const ue=new Date().getTime()-K.current;Y.current=Y.current-ue,window.clearTimeout(H.current),l==null||l()};return B.addEventListener(r2,se),B.addEventListener(i2,ae),()=>{B.removeEventListener(r2,se),B.removeEventListener(i2,ae)}}},[w.viewport,M,l,c,R]),X.useEffect(()=>{o&&!w.isClosePausedRef.current&&R(M)},[o,M,w.isClosePausedRef,R]),X.useEffect(()=>(I(),()=>Z()),[I,Z]);const G=X.useMemo(()=>_?Qx(_):null,[_]);return w.viewport?U.jsxs(U.Fragment,{children:[G&&U.jsx(_N,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),U.jsx(wN,{scope:n,onClose:P,children:vf.createPortal(U.jsx(Om.ItemSlot,{scope:n,children:U.jsx(Q8,{asChild:!0,onEscapeKeyDown:Mn(s,()=>{w.isFocusedToastEscapeKeyDownRef.current||P(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:U.jsx(Br.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":w.swipeDirection,...S,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Mn(e.onKeyDown,B=>{B.key==="Escape"&&(s==null||s(B.nativeEvent),B.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,P()))}),onPointerDown:Mn(e.onPointerDown,B=>{B.button===0&&(N.current={x:B.clientX,y:B.clientY})}),onPointerMove:Mn(e.onPointerMove,B=>{if(!N.current)return;const ae=B.clientX-N.current.x,se=B.clientY-N.current.y,ue=!!A.current,V=["left","right"].includes(w.swipeDirection),Q=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,de=V?Q(0,ae):0,he=V?0:Q(0,se),E=B.pointerType==="touch"?10:2,F={x:de,y:he},W={originalEvent:B,delta:F};ue?(A.current=F,Sd(gN,m,W,{discrete:!1})):tv(F,w.swipeDirection,E)?(A.current=F,Sd(mN,h,W,{discrete:!1}),B.target.setPointerCapture(B.pointerId)):(Math.abs(ae)>E||Math.abs(se)>E)&&(N.current=null)}),onPointerUp:Mn(e.onPointerUp,B=>{const ae=A.current,se=B.target;if(se.hasPointerCapture(B.pointerId)&&se.releasePointerCapture(B.pointerId),A.current=null,N.current=null,ae){const ue=B.currentTarget,V={originalEvent:B,delta:ae};tv(ae,w.swipeDirection,w.swipeThreshold)?Sd(yN,d,V,{discrete:!0}):Sd(vN,g,V,{discrete:!0}),ue.addEventListener("click",Q=>Q.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),_N=e=>{const{__scopeToast:t,children:n,...r}=e,i=op(yf,t),[o,a]=X.useState(!1),[s,l]=X.useState(!1);return kN(()=>a(!0)),X.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:U.jsx(Bx,{asChild:!0,children:U.jsx(ip,{...r,children:o&&U.jsxs(U.Fragment,{children:[i.label," ",n]})})})},SN="ToastTitle",Vx=X.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return U.jsx(Br.div,{...r,ref:t})});Vx.displayName=SN;var NN="ToastDescription",Gx=X.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return U.jsx(Br.div,{...r,ref:t})});Gx.displayName=NN;var Yx="ToastAction",Kx=X.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?U.jsx(Xx,{altText:n,asChild:!0,children:U.jsx(Im,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Yx}\`. Expected non-empty \`string\`.`),null)});Kx.displayName=Yx;var Zx="ToastClose",Im=X.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=bN(Zx,n);return U.jsx(Xx,{asChild:!0,children:U.jsx(Br.button,{type:"button",...r,ref:t,onClick:Mn(e.onClick,i.onClose)})})});Im.displayName=Zx;var Xx=X.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return U.jsx(Br.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Qx(e){const t=[];
vendor: 8,634 bytes, lines 40-125
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),AN(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Qx(r))}}),t}function Sd(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?jx(i,o):i.dispatchEvent(o)}var tv=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function kN(e=()=>{}){const t=Ga(e);Ya(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function AN(e){return e.nodeType===e.ELEMENT_NODE}function LN(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function P1(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var EN=Ux,Jx=$x,e3=Wx,t3=Vx,n3=Gx,r3=Kx,i3=Im;function o3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=o3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function a3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=o3(e))&&(r&&(r+=" "),r+=t);return r}const nv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rv=a3,CN=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rv(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(c=>{const h=n==null?void 0:n[c],m=o==null?void 0:o[c];if(h===null)return null;const g=nv(h)||nv(m);return i[c][g]}),s=n&&Object.entries(n).reduce((c,h)=>{let[m,g]=h;return g===void 0||(c[m]=g),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,h)=>{let{class:m,className:g,...d}=h;return Object.entries(d).every(S=>{let[w,_]=S;return Array.isArray(_)?_.includes({...o,...s}[w]):{...o,...s}[w]===_})?[...c,m,g]:c},[]);return rv(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.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 */const PN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s3=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.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 */var TN={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"};/**
51 * @license lucide-react v0.462.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 RN=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...s},l)=>X.createElement("svg",{ref:l,...TN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:s3("lucide",i),...s},[...a.map(([c,h])=>X.createElement(c,h)),...Array.isArray(o)?o:[o]]));/**
56 * @license lucide-react v0.462.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 mr=(e,t)=>{const n=X.forwardRef(({className:r,...i},o)=>X.createElement(RN,{ref:o,iconNode:t,className:s3(`lucide-${PN(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.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 ON=mr("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66 * @license lucide-react v0.462.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 l3=mr("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
71 * @license lucide-react v0.462.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 iv=mr("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
76 * @license lucide-react v0.462.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 IN=mr("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
81 * @license lucide-react v0.462.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 jN=mr("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
86 * @license lucide-react v0.462.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 FN=mr("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"}]]);/**
91 * @license lucide-react v0.462.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 MN=mr("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
96 * @license lucide-react v0.462.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 DN=mr("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"}]]);/**
101 * @license lucide-react v0.462.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 BN=mr("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
106 * @license lucide-react v0.462.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 zN=mr("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
111 * @license lucide-react v0.462.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 u3=mr("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
116 * @license lucide-react v0.462.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 ov=mr("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
121 * @license lucide-react v0.462.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 UN=mr("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
vendor: 8,761 bytes, lines 125-140
125],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
126 * @license lucide-react v0.462.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 qN=mr("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
131 * @license lucide-react v0.462.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 $N=mr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
136 * @license lucide-react v0.462.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 HN=mr("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),jm="-",WN=e=>{const t=GN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(jm);return s[0]===""&&s.length!==1&&s.shift(),c3(s,t)||VN(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},c3=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?c3(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(jm);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},av=/^\[(.+)\]$/,VN=e=>{if(av.test(e)){const t=av.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},GN=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return KN(Object.entries(e.classGroups),n).forEach(([o,a])=>{a2(a,r,o,t)}),r},a2=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:sv(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(YN(i)){a2(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{a2(a,sv(t,o),n,r)})})},sv=(e,t)=>{let n=e;return t.split(jm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},YN=e=>e.isThemeGetter,KN=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,ZN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},f3="!",XN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let c=0,h=0,m;for(let _=0;_<s.length;_++){let y=s[_];if(c===0){if(y===i&&(r||s.slice(_,_+o)===t)){l.push(s.slice(h,_)),h=_+o;continue}if(y==="/"){m=_;continue}}y==="["?c++:y==="]"&&c--}const g=l.length===0?s:s.substring(h),d=g.startsWith(f3),S=d?g.substring(1):g,w=m&&m>h?m-h:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:S,maybePostfixModifierPosition:w}};return n?s=>n({className:s,parseClassName:a}):a},QN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},JN=e=>({cache:ZN(e.cacheSize),parseClassName:XN(e),...WN(e)}),ek=/\s+/,tk=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(ek);let s="";for(let l=a.length-1;l>=0;l-=1){const c=a[l],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:d}=n(c);let S=!!d,w=r(S?g.substring(0,d):g);if(!w){if(!S){s=c+(s.length>0?" "+s:s);continue}if(w=r(g),!w){s=c+(s.length>0?" "+s:s);continue}S=!1}const _=QN(h).join(":"),y=m?_+f3:_,x=y+w;if(o.includes(x))continue;o.push(x);const N=i(w,S);for(let A=0;A<N.length;++A){const M=N[A];o.push(y+M)}s=c+(s.length>0?" "+s:s)}return s};function nk(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=d3(t))&&(r&&(r+=" "),r+=n);return r}const d3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=d3(e[r]))&&(n&&(n+=" "),n+=t);return n};function rk(e,...t){let n,r,i,o=a;function a(l){const c=t.reduce((h,m)=>m(h),e());return n=JN(c),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const c=r(l);if(c)return c;const h=tk(l,n);return i(l,h),h}return function(){return o(nk.apply(null,arguments))}}const Jt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},h3=/^\[(?:([a-z-]+):)?(.+)\]$/i,ik=/^\d+\/\d+$/,ok=new Set(["px","full","screen"]),ak=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ck=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ro=e=>Yl(e)||ok.has(e)||ik.test(e),pa=e=>ku(e,"length",yk),Yl=e=>!!e&&!Number.isNaN(Number(e)),T1=e=>ku(e,"number",Yl),lc=e=>!!e&&Number.isInteger(Number(e)),fk=e=>e.endsWith("%")&&Yl(e.slice(0,-1)),wt=e=>h3.test(e),ma=e=>ak.test(e),dk=new Set(["length","size","percentage"]),hk=e=>ku(e,dk,p3),pk=e=>ku(e,"position",p3),mk=new Set(["image","url"]),gk=e=>ku(e,mk,bk),vk=e=>ku(e,"",wk),uc=()=>!0,ku=(e,t,n)=>{const r=h3.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},yk=e=>sk.test(e)&&!lk.test(e),p3=()=>!1,wk=e=>uk.test(e),bk=e=>ck.test(e),xk=()=>{const e=Jt("colors"),t=Jt("spacing"),n=Jt("blur"),r=Jt("brightness"),i=Jt("borderColor"),o=Jt("borderRadius"),a=Jt("borderSpacing"),s=Jt("borderWidth"),l=Jt("contrast"),c=Jt("grayscale"),h=Jt("hueRotate"),m=Jt("invert"),g=Jt("gap"),d=Jt("gradientColorStops"),S=Jt("gradientColorStopPositions"),w=Jt("inset"),_=Jt("margin"),y=Jt("opacity"),x=Jt("padding"),N=Jt("saturate"),A=Jt("scale"),M=Jt("sepia"),K=Jt("skew"),Y=Jt("space"),H=Jt("translate"),I=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",wt,t],R=()=>[wt,t],G=()=>["",Ro,pa],B=()=>["auto",Yl,wt],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",wt],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Yl,wt];return{cacheSize:500,separator:":",theme:{colors:[uc],spacing:[Ro,pa],blur:["none","",ma,wt],brightness:he(),borderColor:[e],borderRadius:["none","","full",ma,wt],borderSpacing:R(),borderWidth:G(),contrast:he(),grayscale:Q(),hueRotate:he(),invert:Q(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[fk,pa],inset:P(),margin:P(),opacity:he(),padding:R(),saturate:he(),scale:he(),sepia:Q(),skew:he(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",wt]}],container:["container"],columns:[{columns:[ma]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),wt]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}
vendor: 9,956 bytes, line 140
140],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lc,wt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",wt]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",lc,wt]}],"grid-cols":[{"grid-cols":[uc]}],"col-start-end":[{col:["auto",{span:["full",lc,wt]},wt]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[uc]}],"row-start-end":[{row:["auto",{span:[lc,wt]},wt]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",wt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",wt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",wt,t]}],"min-w":[{"min-w":[wt,t,"min","max","fit"]}],"max-w":[{"max-w":[wt,t,"none","full","min","max","fit","prose",{screen:[ma]},ma]}],h:[{h:[wt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[wt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[wt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[wt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ma,pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",T1]}],"font-family":[{font:[uc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",wt]}],"line-clamp":[{"line-clamp":["none",Yl,T1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ro,wt]}],"list-image":[{"list-image":["none",wt]}],"list-style-type":[{list:["none","disc","decimal",wt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ro,pa]}],"underline-offset":[{"underline-offset":["auto",Ro,wt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",wt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",wt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),pk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:se()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[Ro,wt]}],"outline-w":[{outline:[Ro,pa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ro,pa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ma,vk]}],"shadow-color":[{shadow:[uc]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ma,wt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[N]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",wt]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",wt]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",wt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[lc,wt]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",wt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",wt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 140
140],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",wt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ro,pa,T1]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_k=rk(xk);function yo(...e){return _k(a3(e))}const Sk=EN,m3=X.forwardRef(({className:e,...t},n)=>U.jsx(Jx,{ref:n,className:yo("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));m3.displayName=Jx.displayName;const Nk=CN("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),g3=X.forwardRef(({className:e,variant:t,...n},r)=>U.jsx(e3,{ref:r,className:yo(Nk({variant:t}),e),...n}));g3.displayName=e3.displayName;const kk=X.forwardRef(({className:e,...t},n)=>U.jsx(r3,{ref:n,className:yo("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));kk.displayName=r3.displayName;const v3=X.forwardRef(({className:e,...t},n)=>U.jsx(i3,{ref:n,className:yo("absolute right-2 top-2 rounded-md p-1 text-foreground
140/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:U.jsx($N,{className:"h-4 w-4"})}));v3.displayName=i3.displayName;const y3=X.forwardRef(({className:e,...t},n)=>U.jsx(t3,{ref:n,className:yo("text-sm font-semibold",e),...t}));y3.displayName=t3.displayName;const w3=X.forwardRef(({className:e,...t},n)=>U.jsx(n3,{ref:n,className:yo("text-sm opacity-90",e),...t}));w3.displayName=n3.displayName;function Ak(){const{toasts:e}=F8();return U.jsxs(Sk,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return U.jsxs(g3,{...o,children:[U.jsxs("div",{className:"grid gap-1",children:[n&&U.jsx(y3,{children:n}),r&&U.jsx(w3,{children:r})]}),i,U.jsx(v3,{})]},t)}),U.jsx(m3,{})]})}var lv=["light","dark"],Lk="(prefers-color-scheme: dark)",Ek=X.createContext(void 0),Ck={setTheme:e=>{},themes:[]},Pk=()=>{var e;return(e=X.useContext(Ek))!=null?e:Ck};X.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let c=o==="system",h=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=i?lv.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(S,w=!1,_=!0)=>{let y=a?a[S]:S,x=w?S+"|| ''":`'${y}'`,N="";return i&&_&&!w&&lv.includes(S)&&(N+=`d.style.colorScheme = '${S}';`),n==="class"?w||y?N+=`c.add(${x})`:N+="null":y&&(N+=`d[s](n,${x})`),N},d=e?`!function(){${h}${g(e)}}()`:r?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${Lk}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${g(a?"x[e]":"e",!0)}}${c?"":"else{"+g(o,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${g(a?"x[e]":"e",!0)}}else{${g(o,!1,!1)};}${m}}catch(t){}}();`;return X.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:d}})});var Tk=e=>{switch(e){case"success":return Ik;case"info":return Fk;case"warning":return jk;case"error":return Mk;default:return null}},Rk=Array(12).fill(0),Ok=({visible:e,className:t})=>Ee.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Ee.createElement("div",{className:"sonner-spinner"},Rk.map((n,r)=>Ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Ik=Ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),jk=Ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Fk=Ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Mk=Ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Dk=Ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Bk=()=>{let[e,t]=Ee.useState(document.hidden);return Ee.useEffect(()=>{let n=()=>{t(document.hidden)};
140return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},s2=1,zk=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;let{message:r,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:s2++,a=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}),{...l,...t,id:o,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let i=t instanceof Promise?t:t(),o=r!==void 0,a,s=i.then(async c=>{if(a=["resolve",c],Ee.isValidElement(c))o=!1,this.create({id:r,type:"default",message:c});else if(qk(c)&&!c.ok){o=!1;let h=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description;this.create({id:r,type:"error",message:h,description:m})}else if(n.success!==void 0){o=!1;let h=typeof n.success=="function"?await n.success(c):n.success,m=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"success",message:h,description:m})}}).catch(async c=>{if(a=["reject",c],n.error!==void 0){o=!1;let h=typeof n.error=="function"?await n.error(c):n.error,m=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"error",message:h,description:m})}}).finally(()=>{var c;o&&(this.dismiss(r),r=void 0),(c=n.finally)==null||c.call(n)}),l=()=>new Promise((c,h)=>s.then(()=>a[0]==="reject"?h(a[1]):c(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{let r=(n==null?void 0:n.id)||s2++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Tr=new zk,Uk=(e,t)=>{let n=(t==null?void 0:t.id)||s2++;return Tr.addToast({title:e,...t,id:n}),n},qk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",$k=Uk,Hk=()=>Tr.toasts,Wk=()=>Tr.getActiveToasts();Object.assign($k,{success:Tr.success,info:Tr.info,warning:Tr.warning,error:Tr.error,custom:Tr.custom,message:Tr.message,promise:Tr.promise,dismiss:Tr.dismiss,loading:Tr.loading},{getHistory:Hk,getToasts:Wk});function Vk(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Vk(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
140left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
140:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
140--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
141`);function Nd(e){return e.label!==void 0}var Gk=3,Yk="32px",Kk="16px",uv=4e3,Zk=356,Xk=14,Qk=20,Jk=200;function Ci(...e){return e.filter(Boolean).join(" ")}function eA(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var tA=e=>{var t,n,r,i,o,a,s,l,c,h,m;let{invert:g,toast:d,unstyled:S,interacting:w,setHeights:_,visibleToasts:y,heights:x,index:N,toasts:A,expanded:M,removeToast:K,defaultRichColors:Y,closeButton:H,style:I,cancelButtonStyle:Z,actionButtonStyle:P,className:R="",descriptionClassName:G="",duration:B,position:ae,gap:se,loadingIcon:ue,expandByDefault:V,classNames:Q,icons:de,closeButtonAriaLabel:he="Close toast",pauseWhenPageIsHidden:E}=e,[F,W]=Ee.useState(null),[J,ne]=Ee.useState(null),[re,pe]=Ee.useState(!1),[me,ye]=Ee.useState(!1),[ke,Re]=Ee.useState(!1),[Ce,He]=Ee.useState(!1),[D,Pe]=Ee.useState(!1),[ut,Ye]=Ee.useState(0),[Se,Je]=Ee.useState(0),Oe=Ee.useRef(d.duration||B||uv),Xe=Ee.useRef(null),De=Ee.useRef(null),Tt=N===0,bt=N+1<=y,Ze=d.type,pt=d.dismissible!==!1,xt=d.className||"",Ue=d.descriptionClassName||"",nt=Ee.useMemo(()=>x.findIndex(tt=>tt.toastId===d.id)||0,[x,d.id]),We=Ee.useMemo(()=>{var tt;return(tt=d.closeButton)!=null?tt:H},[d.closeButton,H]),rn=Ee.useMemo(()=>d.duration||B||uv,[d.duration,B]),_t=Ee.useRef(0),ot=Ee.useRef(0),mt=Ee.useRef(0),It=Ee.useRef(null),[Qe,Ut]=ae.split("-"),et=Ee.useMemo(()=>x.reduce((tt,st,At)=>At>=nt?tt:tt+st.height,0),[x,nt]),at=Bk(),Vt=d.invert||g,gt=Ze==="loading";ot.current=Ee.useMemo(()=>nt*se+et,[nt,et]),Ee.useEffect(()=>{Oe.current=rn},[rn]),Ee.useEffect(()=>{pe(!0)},[]),Ee.useEffect(()=>{let tt=De.current;if(tt){let st=tt.getBoundingClientRect().height;return Je(st),_(At=>[{toastId:d.id,height:st,position:d.position},...At]),()=>_(At=>At.filter(hn=>hn.toastId!==d.id))}},[_,d.id]),Ee.useLayoutEffect(()=>{if(!re)return;let tt=De.current,st=tt.style.height;tt.style.height="auto";let At=tt.getBoundingClientRect().height;tt.style.height=st,Je(At),_(hn=>hn.find(Be=>Be.toastId===d.id)?hn.map(Be=>Be.toastId===d.id?{...Be,height:At}:Be):[{toastId:d.id,height:At,position:d.position},...hn])},[re,d.title,d.description,_,d.id]);let Ve=Ee.useCallback(()=>{ye(!0),Ye(ot.current),_(tt=>tt.filter(st=>st.toastId!==d.id)),setTimeout(()=>{K(d)},Jk)},[d,K,_,ot]);Ee.useEffect(()=>
141{if(d.promise&&Ze==="loading"||d.duration===1/0||d.type==="loading")return;let tt;return M||w||E&&at?(()=>{if(mt.current<_t.current){let st=new Date().getTime()-_t.current;Oe.current=Oe.current-st}mt.current=new Date().getTime()})():Oe.current!==1/0&&(_t.current=new Date().getTime(),tt=setTimeout(()=>{var st;(st=d.onAutoClose)==null||st.call(d,d),Ve()},Oe.current)),()=>clearTimeout(tt)},[M,w,d,Ze,E,at,Ve]),Ee.useEffect(()=>{d.delete&&Ve()},[Ve,d.delete]);function Rt(){var tt,st,At;return de!=null&&de.loading?Ee.createElement("div",{className:Ci(Q==null?void 0:Q.loader,(tt=d==null?void 0:d.classNames)==null?void 0:tt.loader,"sonner-loader"),"data-visible":Ze==="loading"},de.loading):ue?Ee.createElement("div",{className:Ci(Q==null?void 0:Q.loader,(st=d==null?void 0:d.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":Ze==="loading"},ue):Ee.createElement(Ok,{className:Ci(Q==null?void 0:Q.loader,(At=d==null?void 0:d.classNames)==null?void 0:At.loader),visible:Ze==="loading"})}return Ee.createElement("li",{tabIndex:0,ref:De,className:Ci(R,xt,Q==null?void 0:Q.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[Ze],(n=d==null?void 0:d.classNames)==null?void 0:n[Ze]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:Y,"data-styled":!(d.jsx||d.unstyled||S),"data-mounted":re,"data-
141promise":!!d.promise,"data-swiped":D,"data-removed":me,"data-visible":bt,"data-y-position":Qe,"data-x-position":Ut,"data-index":N,"data-front":Tt,"data-swiping":ke,"data-dismissible":pt,"data-type":Ze,"data-invert":Vt,"data-swipe-out":Ce,"data-swipe-direction":J,"data-expanded":!!(M||V&&re),style:{"--index":N,"--toasts-before":N,"--z-index":A.length-N,"--offset":`${me?ut:ot.current}px`,"--initial-height":V?"auto":`${Se}px`,...I,...d.style},onDragEnd:()=>{Re(!1),W(null),It.current=null},onPointerDown:tt=>{gt||!pt||(Xe.current=new Date,Ye(ot.current),tt.target.setPointerCapture(tt.pointerId),tt.target.tagName!=="BUTTON"&&(Re(!0),It.current={x:tt.clientX,y:tt.clientY}))},onPointerUp:()=>{var tt,st,At,hn;if(Ce||!pt)return;It.current=null;let Be=Number(((tt=De.current)==null?void 0:tt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Bn=Number(((st=De.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wn=new Date().getTime()-((At=Xe.current)==null?void 0:At.getTime()),on=F==="x"?Be:Bn,bn=Math.abs(on)/Wn;if(Math.abs(on)>=Qk||bn>.11){Ye(ot.current),(hn=d.onDismiss)==null||hn.call(d,d),ne(F==="x"?Be>0?"right":"left":Bn>0?"down":"up"),Ve(),He(!0),Pe(!1);return}Re(!1),W(null)},onPointerMove:tt=>{var st,At,hn,Be;if(!It.current||!pt||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;let Bn=tt.clientY-It.current.y,Wn=tt.clientX-It.current.x,on=(At=e.swipeDirections)!=null?At:eA(ae);!F&&(Math.abs(Wn)>1||Math.abs(Bn)>1)&&W(Math.abs(Wn)>Math.abs(Bn)?"x":"y");let bn={x:0,y:0};F==="y"?(on.includes("top")||on.includes("bottom"))&&(on.includes("top")&&Bn<0||on.includes("bottom")&&Bn>0)&&(bn.y=Bn):F==="x"&&(on.includes("left")||on.includes("right"))&&(on.includes("left")&&Wn<0||on.includes("right")&&Wn>0)&&(bn.x=Wn),(Math.abs(bn.x)>0||Math.abs(bn.y)>0)&&Pe(!0),(hn=De.current)==null||hn.style.setProperty("--swipe-amount-x",`${bn.x}px`),(Be=De.current)==null||Be.style.setProperty("--swipe-amount-y",`${bn.y}px`)}},We&&!d.jsx?Ee.createElement("button",{"aria-label":he,"data-disabled":gt,"data-close-button":!0,onClick:gt||!pt?()=>{}:()=>{var tt;Ve(),(tt=d.onDismiss)==null||tt.call(d,d)},className:Ci(Q==null?void 0:Q.closeButton,(i=d==null?void 0:d.classNames)==null?void 0:i.closeButton)},(o=de==null?void 0:de.close)!=null?o:Dk):null,d.jsx||X.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:Ee.createElement(Ee.Fragment,null,Ze||d.icon||d.promise?Ee.createElement("div",{"data-icon":"",className:Ci(Q==null?void 0:Q.icon,(a=d==null?void 0:d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Rt():null,d.type!=="loading"?d.icon||(de==null?void 0:de[Ze])||Tk(Ze):null):null,Ee.createElement("div",{"data-content":"",className:Ci(Q==null?void 0:Q.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},Ee.createElement("div",{"data-title":"",className:Ci(Q==null?void 0:Q.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},typeof d.title=="function"?d.title():d.title),d.description?Ee.createElement("div",{"data-description":"",className:Ci(G,Ue,Q==null?void 0:Q.description,(c=d==null?void 0:d.classNames)==null?void 0:c.description)},typeof d.description=="function"?d.description():d.description):null),X.isValidElement(d.cancel)?d.cancel:d.cancel&&Nd(d.cancel)?Ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||Z,onClick:tt=>{var st,At;Nd(d.cancel)&&pt&&((At=(st=d.cancel).onClick)==null||At.call(st,tt),Ve())},className:Ci(Q==null?void 0:Q.cancelButton,(h=d==null?void 0:d.classNames)==null?void 0:h.cancelButton)},d.cancel.label):null,X.isValidElement(d.action)?d.action:d.action&&Nd(d.action)?Ee.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||P,onClick:tt=>{var st,At;Nd(d.action)&&((At=(st=d.action).onClick)==null||At.call(st,tt),!tt.defaultPrevented&&Ve())},className:Ci(Q==null?void 0:Q.actionButton,(m=d==null?void 0:d.classNames)==null?void 0:m.actionButton)},d.action.label):null))};function cv(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function nA(e,t){let n={};return[e,t].forEach((r,i)=>{let o=i===1,a=o?"--mobile-offset":"--offset",s=o?Kk:Yk;function l(c){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${a}-${c}`]=s:n[`${a}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}var rA=X.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:a,className:s,offset:l,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:d,visibleToasts:S=Gk,toastOptions:w,dir:_=cv(),gap:y=Xk,loadingIcon:x,icons:N,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:M}=e,[K,Y]=Ee.useState([]),H=Ee.useMemo(()=>Array.from(new Set([r].concat(K.filter(E=>E.position).map(E=>E.position)))),[K,r]),[I,Z]=Ee.useState([]),[P,R]=Ee.useState(!1),[G,B]=Ee.useState(!1),[ae,se]=Ee.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
141k":"light"),ue=Ee.useRef(null),V=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=Ee.useRef(null),de=Ee.useRef(!1),he=Ee.useCallback(E=>{Y(F=>{var W;return(W=F.find(J=>J.id===E.id))!=null&&W.delete||Tr.dismiss(E.id),F.filter(({id:J})=>J!==E.id)})},[]);return Ee.useEffect(()=>Tr.subscribe(E=>{if(E.dismiss){Y(F=>F.map(W=>W.id===E.id?{...W,delete:!0}:W));return}setTimeout(()=>{Tx.flushSync(()=>{Y(F=>{let W=F.findIndex(J=>J.id===E.id);return W!==-1?[...F.slice(0,W),{...F[W],...E},...F.slice(W+1)]:[E,...F]})})})}),[]),Ee.useEffect(()=>{if(h!=="system"){se(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window>"u")return;let E=window.matchMedia("(prefers-color-scheme: dark)");try{E.addEventListener("change",({matches:F})=>{se(F?"dark":"light")})}catch{E.addListener(({matches:W})=>{try{se(W?"dark":"light")}catch(J){console.error(J)}})}},[h]),Ee.useEffect(()=>{K.length<=1&&R(!1)},[K]),Ee.useEffect(()=>{let E=F=>{var W,J;i.every(ne=>F[ne]||F.code===ne)&&(R(!0),(W=ue.current)==null||W.focus()),F.code==="Escape"&&(document.activeElement===ue.current||(J=ue.current)!=null&&J.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[i]),Ee.useEffect(()=>{if(ue.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,de.current=!1)}},[ue.current]),Ee.createElement("section",{ref:t,"aria-label":`${A} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((E,F)=>{var W;let[J,ne]=E.split("-");return K.length?Ee.createElement("ol",{key:E,dir:_==="auto"?cv():_,tabIndex:-1,ref:ue,className:s,"data-sonner-toaster":!0,"data-theme":ae,"data-y-position":J,"data-lifted":P&&K.length>1&&!o,"data-x-position":ne,style:{"--front-toast-height":`${((W=I[0])==null?void 0:W.height)||0}px`,"--width":`${Zk}px`,"--gap":`${y}px`,...d,...nA(l,c)},onBlur:re=>{de.current&&!re.currentTarget.contains(re.relatedTarget)&&(de.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||de.current||(de.current=!0,Q.current=re.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{G||R(!1)},onDragEnd:()=>R(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},K.filter(re=>!re.position&&F===0||re.position===E).map((re,pe)=>{var me,ye;return Ee.createElement(tA,{key:re.id,icons:N,index:pe,toast:re,defaultRichColors:m,duration:(me=w==null?void 0:w.duration)!=null?me:g,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:n,visibleToasts:S,closeButton:(ye
vendor: 4,455 bytes, line 141
141=w==null?void 0:w.closeButton)!=null?ye:a,interacting:G,position:E,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:he,toasts:K.filter(ke=>ke.position==re.position),heights:I.filter(ke=>ke.position==re.position),setHeights:Z,expandByDefault:o,gap:y,loadingIcon:x,expanded:P,pauseWhenPageIsHidden:M,swipeDirections:e.swipeDirections})})):null}))});const iA=({...e})=>{const{theme:t="system"}=Pk();return U.jsx(rA,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},oA=["top","right","bottom","left"],Ka=Math.min,Xr=Math.max,Eh=Math.round,kd=Math.floor,Za=e=>({x:e,y:e}),aA={left:"right",right:"left",bottom:"top",top:"bottom"},sA={start:"end",end:"start"};function l2(e,t,n){return Xr(e,Ka(t,n))}function Ko(e,t){return typeof e=="function"?e(t):e}function Zo(e){return e.split("-")[0]}function Au(e){return e.split("-")[1]}function Fm(e){return e==="x"?"y":"x"}function Mm(e){return e==="y"?"height":"width"}function Xa(e){return["top","bottom"].includes(Zo(e))?"y":"x"}function Dm(e){return Fm(Xa(e))}function lA(e,t,n){n===void 0&&(n=!1);const r=Au(e),i=Dm(e),o=Mm(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ch(a)),[a,Ch(a)]}function uA(e){const t=Ch(e);return[u2(e),t,u2(t)]}function u2(e){return e.replace(/start|end/g,t=>sA[t])}function cA(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function fA(e,t,n,r){const i=Au(e);let o=cA(Zo(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(u2)))),o}function Ch(e){return e.replace(/left|right|bottom|top/g,t=>aA[t])}function dA(e){return{top:0,right:0,bottom:0,left:0,...e}}function b3(e){return typeof e!="number"?dA(e):{top:e,right:e,bottom:e,left:e}}function Ph(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function fv(e,t,n){let{reference:r,floating:i}=e;const o=Xa(t),a=Dm(t),s=Mm(a),l=Zo(t),c=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:h,y:r.y-i.height};break;case"bottom":d={x:h,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:m};break;case"left":d={x:r.x-i.width,y:m};break;default:d={x:r.x,y:r.y}}switch(Au(t)){case"start":d[a]-=g*(n&&c?-1:1);break;case"end":d[a]+=g*(n&&c?-1:1);break}return d}const hA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=fv(c,r,l),g=r,d={},S=0;for(let w=0;w<s.length;w++){const{name:_,fn:y}=s[w],{x,y:N,data:A,reset:M}=await y({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:e,floating:t}});h=x??h,m=N??m,d={...d,[_]:{...d[_],...A}},M&&S<=50&&(S++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(c=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:h,y:m}=fv(c,g,l)),w=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:d}};async function Zc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:d=0}=Ko(t,e),S=b3(d),_=s[g?m==="floating"?"reference":"floating":m],y=Ph(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:h,strategy:l})),x=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),A=await(o.isElement==null?void 0:o.isElement(N))?await(
vendor: 6,880 bytes, line 141
141o.getScale==null?void 0:o.getScale(N))||{x:1,y:1}:{x:1,y:1},M=Ph(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:N,strategy:l}):x);return{top:(y.top-M.top+S.top)/A.y,bottom:(M.bottom-y.bottom+S.bottom)/A.y,left:(y.left-M.left+S.left)/A.x,right:(M.right-y.right+S.right)/A.x}}const pA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:h=0}=Ko(e,t)||{};if(c==null)return{};const m=b3(h),g={x:n,y:r},d=Dm(i),S=Mm(d),w=await a.getDimensions(c),_=d==="y",y=_?"top":"left",x=_?"bottom":"right",N=_?"clientHeight":"clientWidth",A=o.reference[S]+o.reference[d]-g[d]-o.floating[S],M=g[d]-o.reference[d],K=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let Y=K?K[N]:0;(!Y||!await(a.isElement==null?void 0:a.isElement(K)))&&(Y=s.floating[N]||o.floating[S]);const H=A/2-M/2,I=Y/2-w[S]/2-1,Z=Ka(m[y],I),P=Ka(m[x],I),R=Z,G=Y-w[S]-P,B=Y/2-w[S]/2+H,ae=l2(R,B,G),se=!l.arrow&&Au(i)!=null&&B!==ae&&o.reference[S]/2-(B<R?Z:P)-w[S]/2<0,ue=se?B<R?B-R:B-G:0;return{[d]:g[d]+ue,data:{[d]:ae,centerOffset:B-ae-ue,...se&&{alignmentOffset:ue}},reset:se}}}),mA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,..._}=Ko(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Zo(i),x=Xa(s),N=Zo(s)===s,A=await(l.isRTL==null?void 0:l.isRTL(c.floating)),M=g||(N||!w?[Ch(s)]:uA(s)),K=S!=="none";!g&&K&&M.push(...fA(s,w,S,A));const Y=[s,...M],H=await Zc(t,_),I=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&I.push(H[y]),m){const B=lA(i,a,A);I.push(H[B[0]],H[B[1]])}if(Z=[...Z,{placement:i,overflows:I}],!I.every(B=>B<=0)){var P,R;const B=(((P=o.flip)==null?void 0:P.index)||0)+1,ae=Y[B];if(ae)return{data:{index:B,overflows:Z},reset:{placement:ae}};let se=(R=Z.filter(ue=>ue.overflows[0]<=0).sort((ue,V)=>ue.overflows[1]-V.overflows[1])[0])==null?void 0:R.placement;if(!se)switch(d){case"bestFit":{var G;const ue=(G=Z.filter(V=>{if(K){const Q=Xa(V.placement);return Q===x||Q==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Q=>Q>0).reduce((Q,de)=>Q+de,0)]).sort((V,Q)=>V[1]-Q[1])[0])==null?void 0:G[0];ue&&(se=ue);break}case"initialPlacement":se=s;break}if(i!==se)return{reset:{placement:se}}}return{}}}};function dv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hv(e){return oA.some(t=>e[t]>=0)}const gA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ko(e,t);switch(r){case"referenceHidden":{const o=await Zc(t,{...i,elementContext:"reference"}),a=dv(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:hv(a)}}}case"escaped":{const o=await Zc(t,{...i,altBoundary:!0}),a=dv(o,n.floating);return{data:{escapedOffsets:a,escaped:hv(a)}}}default:return{}}}}};async function vA(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Zo(n),s=Au(n),l=Xa(n)==="y",c=["left","top"].includes(a)?-1:1,h=o&&l?-1:1,m=Ko(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof S=="number"&&(d=s==="end"?S*-1:S),l?{x:d*h,y:g*c}:{x:g*c,y:d*h}}const yA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await vA(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},wA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:y,y:x}=_;return{x:y,y:x}}},...l}=Ko(e,t),c={x:n,y:r},h=await Zc(t,l),m=Xa(Zo(i)),g=Fm(m);let d=c[g],S=c[m];if(o){const _=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=d+h[_],N=d-h[y];d=l2(x,d,N)}if(a){const _=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=S+h[_],N=S-h[y];S=l2(x,S,N)}const w=s.fn({...t,[g]:d,[m]:S});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:o,[m]:a}}}}}},bA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ko(e,t),h={x:n,y:r},m=Xa(i),g=Fm(m);let d=h[g],S=h[m];const w=Ko(s,t),_=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const N=g==="y"?"height":"width",A=o.reference[g]-o.floating[N]+_.mainAxis,M=o.reference[g]+o.reference[N]-_.mainAxis;d<A?d=A:d>M&&(d=M)}if(c){var y,x;const N=g==="y"?"width":"height",A=["top","left"].includes(Zo(i)),M=o.reference[m]-o.floating[N]+(A&&((y=a.offset)==null?void 0:y[m])||0)+(A?0:_.crossAxis),K=o.reference[m]+o.reference[N]+(A?0:((x=a.offset)==null?void 0:x[m])||0)-(A?_.crossAxis:0);S<M?S=M:S>K&&(S=K)}return{[g]:d,[m]:S}}}},xA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Ko(e,t),h=await Zc(t,c),m=Zo(i),g=Au(i),d=Xa(i)==="y",{width:S,height:w}=o.floating;let _,y;m==="top"||m==="bottom"?(_=m,y=g===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=m,_=g==="end"?"top":"bottom");const x=w-h.top-h.bottom,N=S-h.left-h.right,A=Ka(w-h[_],x),M=Ka(S-h[y],N),K=!t.middlewareData.shift;let Y=A,H=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Y=x),K&&!g){const Z=Xr(h.left,0),P=Xr(h.right,0),R=Xr(h.top,0),G=Xr(h.bottom,0);d?H=S-2*(Z!==0||P!==0?Z+P:Xr(h.left,h.right)):Y=w-2*(R!==0||G!==0?R+G:Xr(h.top,h.bottom))}await l({...t,availableWidth:H,availableHeight:Y});const I=await a.getDimensions(s.floating);return S!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function ap(){return typeof window<"u"}function Lu(e){return x3(e)?(e.nodeName||"").toLowerCase():"#document"}function ni(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wo(e){var t;return(t=(x3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x3(e){return ap()?e instanceof Node||e instanceof ni(e).Node:!1}function qi(e){return ap()?e instanceof Element||e instanceof ni(e).Element:!1}function vo(e){return ap()?e instanceof HTMLElement||e instanceof ni(e).HTMLElement:!1}function pv(e){return!ap()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ni(e).ShadowRoot}function wf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$i(e);
vendor: 5,718 bytes, line 141
141return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function _A(e){return["table","td","th"].includes(Lu(e))}function sp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bm(e){const t=zm(),n=qi(e)?$i(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function SA(e){let t=Qa(e);for(;vo(t)&&!vu(t);){if(Bm(t))return t;if(sp(t))return null;t=Qa(t)}return null}function zm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vu(e){return["html","body","#document"].includes(Lu(e))}function $i(e){return ni(e).getComputedStyle(e)}function lp(e){return qi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qa(e){if(Lu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pv(e)&&e.host||wo(e);return pv(t)?t.host:t}function _3(e){const t=Qa(e);return vu(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&wf(t)?t:_3(t)}function Xc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_3(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=ni(i);if(o){const s=c2(a);return t.concat(a,a.visualViewport||[],wf(i)?i:[],s&&n?Xc(s):[])}return t.concat(i,Xc(i,[],n))}function c2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function S3(e){const t=$i(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vo(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Eh(n)!==o||Eh(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Um(e){return qi(e)?e:e.contextElement}function Kl(e){const t=Um(e);if(!vo(t))return Za(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=S3(t);let a=(o?Eh(n.width):n.width)/r,s=(o?Eh(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const NA=Za(0);function N3(e){const t=ni(e);return!zm()||!t.visualViewport?NA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ni(e)?!1:t}function Ws(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Um(e);let a=Za(1);t&&(r?qi(r)&&(a=Kl(r)):a=Kl(e));const s=kA(o,n,r)?N3(o):Za(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const g=ni(o),d=r&&qi(r)?ni(r):r;let S=g,w=c2(S);for(;w&&r&&d!==S;){const _=Kl(w),y=w.getBoundingClientRect(),x=$i(w),N=y.left+(w.clientLeft+parseFloat(x.paddingLeft))*_.x,A=y.top+(w.clientTop+parseFloat(x.paddingTop))*_.y;l*=_.x,c*=_.y,h*=_.x,m*=_.y,l+=N,c+=A,S=ni(w),w=c2(S)}}return Ph({width:h,height:m,x:l,y:c})}function AA(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=wo(r),s=t?sp(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Za(1);const h=Za(0),m=vo(r);if((m||!m&&!o)&&((Lu(r)!=="body"||wf(a))&&(l=lp(r)),vo(r))){const g=Ws(r);c=Kl(r),h.x=g.x+r.clientLeft,h.y=g.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+h.x,y:n.y*c.y-l.scrollTop*c.y+h.y}}function LA(e){return Array.from(e.getClientRects())}function f2(e,t){const n=lp(e).scrollLeft;return t?t.left+n:Ws(wo(e)).left+n}function EA(e){const t=wo(e),n=lp(e),r=e.ownerDocument.body,i=Xr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+f2(e);const s=-n.scrollTop;return $i(r).direction==="rtl"&&(a+=Xr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function CA(e,t){const n=ni(e),r=wo(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const c=zm();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function PA(e,t){const n=Ws(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=vo(e)?Kl(e):Za(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function mv(e,t,n){let r;if(t==="viewport")r=CA(e,n);else if(t==="document")r=EA(wo(e));else if(qi(t))r=PA(t,n);else{const i=N3(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ph(r)}function k3(e,t){const n=Qa(e);return n===t||!qi(n)||vu(n)?!1:$i(n).position==="fixed"||k3(n,t)}function TA(e,t){const n=t.get(e);if(n)return n;let r=Xc(e,[],!1).filter(s=>qi(s)&&Lu(s)!=="body"),i=null;const o=$i(e).position==="fixed";let a=o?Qa(e):e;for(;qi(a)&&!vu(a);){const s=$i(a),l=Bm(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||wf(a)&&!l&&k3(e,a))?r=r.filter(h=>h!==a):i=s,a=Qa(a)}return t.set(e,r),r}function RA(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?sp(t)?[]:TA(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,h)=>{const m=mv(t,h,i);return c.top=Xr(m.top,c.top),c.right=Ka(m.right,c.right),c.bottom=Ka(m.bottom,c.bottom),c.left=Xr(m.left,c.left),c},mv(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function OA(e){const{width:t,height:n}=S3(e);return{width:t,height:n}}function IA(e,t,n){const r=vo(t),i=wo(t),o=n==="fixed",a=Ws(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Za(0);if(r||!r&&!o)if((Lu(t)!=="body"||wf(i))&&(s=lp(t)),r){const d=Ws(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=f2(i));let c=0,h=0;if(i&&!r&&!o){const d=i.getBoundingClientRect();h=d.top+s.scrollTop,c=d.left+s.scrollLeft-f2(i,d)}
vendor: 9,171 bytes, line 141
141const m=a.left+s.scrollLeft-l.x-c,g=a.top+s.scrollTop-l.y-h;return{x:m,y:g,width:a.width,height:a.height}}function R1(e){return $i(e).position==="static"}function gv(e,t){if(!vo(e)||$i(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wo(e)===n&&(n=n.ownerDocument.body),n}function A3(e,t){const n=ni(e);if(sp(e))return n;if(!vo(e)){let i=Qa(e);for(;i&&!vu(i);){if(qi(i)&&!R1(i))return i;i=Qa(i)}return n}let r=gv(e,t);for(;r&&_A(r)&&R1(r);)r=gv(r,t);return r&&vu(r)&&R1(r)&&!Bm(r)?n:r||SA(e)||n}const jA=async function(e){const t=this.getOffsetParent||A3,n=this.getDimensions,r=await n(e.floating);return{reference:IA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FA(e){return $i(e).direction==="rtl"}const MA={convertOffsetParentRelativeRectToViewportRelativeRect:AA,getDocumentElement:wo,getClippingRect:RA,getOffsetParent:A3,getElementRects:jA,getClientRects:LA,getDimensions:OA,getScale:Kl,isElement:qi,isRTL:FA};function DA(e,t){let n=null,r;const i=wo(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:h,width:m,height:g}=e.getBoundingClientRect();if(s||t(),!m||!g)return;const d=kd(h),S=kd(i.clientWidth-(c+m)),w=kd(i.clientHeight-(h+g)),_=kd(c),x={rootMargin:-d+"px "+-S+"px "+-w+"px "+-_+"px",threshold:Xr(0,Ka(1,l))||1};let N=!0;function A(M){const K=M[0].intersectionRatio;if(K!==l){if(!N)return a();K?a(!1,K):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{n=new IntersectionObserver(A,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,x)}n.observe(e)}return a(!0),o}function BA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Um(e),h=i||o?[...c?Xc(c):[],...Xc(t)]:[];h.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const m=c&&s?DA(c,n):null;let g=-1,d=null;a&&(d=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var N;(N=d)==null||N.observe(t)})),n()}),c&&!l&&d.observe(c),d.observe(t));let S,w=l?Ws(e):null;l&&_();function _(){const y=Ws(e);w&&(y.x!==w.x||y.y!==w.y||y.width!==w.width||y.height!==w.height)&&n(),w=y,S=requestAnimationFrame(_)}return n(),()=>{var y;h.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),m==null||m(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(S)}}const zA=yA,UA=wA,qA=mA,$A=xA,HA=gA,vv=pA,WA=bA,VA=(e,t,n)=>{const r=new Map,i={platform:MA,...n},o={...i.platform,_c:r};return hA(e,t,{...i,platform:o})};var Zd=typeof document<"u"?X.useLayoutEffect:X.useEffect;function Th(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Th(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Th(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function L3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(e,t){const n=L3(e);return Math.round(t*n)/n}function O1(e){const t=X.useRef(e);return Zd(()=>{t.current=e}),t}function GA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[h,m]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=X.useState(r);Th(g,r)||d(r);const[S,w]=X.useState(null),[_,y]=X.useState(null),x=X.useCallback(V=>{V!==K.current&&(K.current=V,w(V))},[]),N=X.useCallback(V=>{V!==Y.current&&(Y.current=V,y(V))},[]),A=o||S,M=a||_,K=X.useRef(null),Y=X.useRef(null),H=X.useRef(h),I=l!=null,Z=O1(l),P=O1(i),R=O1(c),G=X.useCallback(()=>{if(!K.current||!Y.current)return;const V={placement:t,strategy:n,middleware:g};P.current&&(V.platform=P.current),VA(K.current,Y.current,V).then(Q=>{const de={...Q,isPositioned:R.current!==!1};B.current&&!Th(H.current,de)&&(H.current=de,vf.flushSync(()=>{m(de)}))})},[g,t,n,P,R]);Zd(()=>{c===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,m(V=>({...V,isPositioned:!1})))},[c]);const B=X.useRef(!1);Zd(()=>(B.current=!0,()=>{B.current=!1}),[]),Zd(()=>{if(A&&(K.current=A),M&&(Y.current=M),A&&M){if(Z.current)return Z.current(A,M,G);G()}},[A,M,G,Z,I]);const ae=X.useMemo(()=>({reference:K,floating:Y,setReference:x,setFloating:N}),[x,N]),se=X.useMemo(()=>({reference:A,floating:M}),[A,M]),ue=X.useMemo(()=>{const V={position:n,left:0,top:0};if(!se.floating)return V;const Q=yv(se.floating,h.x),de=yv(se.floating,h.y);return s?{...V,transform:"translate("+Q+"px, "+de+"px)",...L3(se.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:de}},[n,s,se.floating,h.x,h.y]);return X.useMemo(()=>({...h,update:G,refs:ae,elements:se,floatingStyles:ue}),[h,G,ae,se,ue])}const YA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vv({element:r.current,padding:i}).fn(n):{}:r?vv({element:r,padding:i}).fn(n):{}}}},KA=(e,t)=>({...zA(e),options:[e,t]}),ZA=(e,t)=>({...UA(e),options:[e,t]}),XA=(e,t)=>({...WA(e),options:[e,t]}),QA=(e,t)=>({...qA(e),options:[e,t]}),JA=(e,t)=>({...$A(e),options:[e,t]}),e7=(e,t)=>({...HA(e),options:[e,t]}),t7=(e,t)=>({...YA(e),options:[e,t]});var n7="Arrow",E3=X.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return U.jsx(Br.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:U.jsx("polygon",{points:"0,0 30,0 15,10"})})});E3.displayName=n7;var r7=E3;function i7(e){const[t,n]=X.useState(void 0);return Ya(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var C3="Popper",[P3,T3]=rp(C3),[bR,R3]=P3(C3),O3="PopperAnchor",I3=X.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=R3(O3,n),a=X.useRef(null),s=Ui(t,a);return X.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:U.jsx(Br.div,{...i,ref:s})});I3.displayName=O3;var qm="PopperContent",[o7,a7]=P3(qm),j3=X.forwardRef((e,t)=>{var re,pe,me,ye,ke,Re;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:d="optimized",onPlaced:S,...w}=e,_=R3(qm,n),[y,x]=X.useState(null),N=Ui(t,Ce=>x(Ce)),[A,M]=X.useState(null),K=i7(A),Y=(K==null?void 0:K.width)??0,H=(K==null?void 0:K.height)??0,I=r+(o!=="center"?"-"+o:""),Z=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},P=Array.isArray(c)?c:[c],R=P.length>0,G={padding:Z,boundary:P.filter(l7),altBoundary:R},{refs:B,floatingStyles:ae,placement:se,isPositioned:ue,middlewareData:V}=GA({strategy:"fixed",placement:I,whileElementsMounted:(...Ce)=>BA(...Ce,{animationFrame:d==="always"}),elements:{reference:_.anchor},middleware:[KA({mainAxis:i+H,alignmentAxis:a}),l&&ZA({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?XA():void 0,...G}),l&&QA({...G}),JA({...G,apply:({elements:Ce,rects:He,availableWidth:D,availableHeight:Pe})=>{const{width:ut,height:Ye}=He.reference,Se=Ce.floating.style;Se.setProperty("--radix-popper-available-width",`${D}px`),Se.setProperty("--radix-popper-available-height",`${Pe}px`),Se.setProperty("--radix-popper-anchor-width",`${ut}px`),Se.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),A&&t7({element:A,padding:s}),u7({arrowWidth:Y,arrowHeight:H}),g&&e7({strategy:"referenceHidden",...G})]}),[Q,de]=D3(se),he=Ga(S);Ya(()=>{ue&&(he==null||he())},[ue,he]);const E=(re=V.arrow)==null?void 0:re.x,F=(pe=V.arrow)==null?void 0:pe.y,W=((me=V.arrow)==null?void 0:me.centerOffset)!==0,[J,ne]=X.useState();return Ya(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),U.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:ue?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ye=V.transformOrigin)==null?void 0:ye.x,(ke=V.transformOrigin)==null?void 0:ke.y].join(" "),...((Re=V.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:U.jsx(o7,{scope:n,placedSide:Q,onArrowChange:M,arrowX:E,arrowY:F,shouldHideArrow:W,children:U.jsx(Br.div,{"data-side":Q,"data-align":de,...w,ref:N,style:{...w.style,animation:ue?void 0:"none"}})})})});
vendor: 9,239 bytes, line 141
141j3.displayName=qm;var F3="PopperArrow",s7={top:"bottom",right:"left",bottom:"top",left:"right"},M3=X.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=a7(F3,r),a=s7[o.placedSide];return U.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:U.jsx(r7,{...i,ref:n,style:{...i.style,display:"block"}})})});M3.displayName=F3;function l7(e){return e!==null}var u7=e=>({name:"transformOrigin",options:e,fn(t){var _,y,x;const{placement:n,rects:r,middlewareData:i}=t,a=((_=i.arrow)==null?void 0:_.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,h]=D3(n),m={start:"0%",center:"50%",end:"100%"}[h],g=(((y=i.arrow)==null?void 0:y.x)??0)+s/2,d=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let S="",w="";return c==="bottom"?(S=a?m:`${g}px`,w=`${-l}px`):c==="top"?(S=a?m:`${g}px`,w=`${r.floating.height+l}px`):c==="right"?(S=`${-l}px`,w=a?m:`${d}px`):c==="left"&&(S=`${r.floating.width+l}px`,w=a?m:`${d}px`),{data:{x:S,y:w}}}});function D3(e){const[t,n="center"]=e.split("-");return[t,n]}var c7=I3,f7=j3,d7=M3,[up,xR]=rp("Tooltip",[T3]),$m=T3(),B3="TooltipProvider",h7=700,wv="tooltip.open",[p7,z3]=up(B3),U3=e=>{const{__scopeTooltip:t,delayDuration:n=h7,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,a=X.useRef(!0),s=X.useRef(!1),l=X.useRef(0);return X.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),U.jsx(p7,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:X.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:X.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:X.useCallback(c=>{s.current=c},[]),disableHoverableContent:i,children:o})};U3.displayName=B3;var q3="Tooltip",[_R,cp]=up(q3),d2="TooltipTrigger",m7=X.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=cp(d2,n),o=z3(d2,n),a=$m(n),s=X.useRef(null),l=Ui(t,s,i.onTriggerChange),c=X.useRef(!1),h=X.useRef(!1),m=X.useCallback(()=>c.current=!1,[]);return X.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),U.jsx(c7,{asChild:!0,...a,children:U.jsx(Br.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Mn(e.onPointerMove,g=>{g.pointerType!=="touch"&&!h.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),h.current=!0)}),onPointerLeave:Mn(e.onPointerLeave,()=>{i.onTriggerLeave(),h.current=!1}),onPointerDown:Mn(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Mn(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Mn(e.onBlur,i.onClose),onClick:Mn(e.onClick,i.onClose)})})});m7.displayName=d2;var g7="TooltipPortal",[SR,v7]=up(g7,{forceMount:void 0}),yu="TooltipContent",$3=X.forwardRef((e,t)=>{const n=v7(yu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=cp(yu,e.__scopeTooltip);return U.jsx(Tm,{present:r||a.open,children:a.disableHoverableContent?U.jsx(H3,{side:i,...o,ref:t}):U.jsx(y7,{side:i,...o,ref:t})})}),y7=X.forwardRef((e,t)=>{const n=cp(yu,e.__scopeTooltip),r=z3(yu,e.__scopeTooltip),i=X.useRef(null),o=Ui(t,i),[a,s]=X.useState(null),{trigger:l,onClose:c}=n,h=i.current,{onPointerInTransitChange:m}=r,g=X.useCallback(()=>{s(null),m(!1)},[m]),d=X.useCallback((S,w)=>{const _=S.currentTarget,y={x:S.clientX,y:S.clientY},x=S7(y,_.getBoundingClientRect()),N=N7(y,x),A=k7(w.getBoundingClientRect()),M=L7([...N,...A]);s(M),m(!0)},[m]);return X.useEffect(()=>()=>g(),[g]),X.useEffect(()=>{if(l&&h){const S=_=>d(_,h),w=_=>d(_,l);return l.addEventListener("pointerleave",S),h.addEventListener("pointerleave",w),()=>{l.removeEventListener("pointerleave",S),h.removeEventListener("pointerleave",w)}}},[l,h,d,g]),X.useEffect(()=>{if(a){const S=w=>{const _=w.target,y={x:w.clientX,y:w.clientY},x=(l==null?void 0:l.contains(_))||(h==null?void 0:h.contains(_)),N=!A7(y,a);x?g():N&&(g(),c())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[l,h,a,c,g]),U.jsx(H3,{...e,ref:o})}),[w7,b7]=up(q3,{isInside:!1}),x7=B8("TooltipContent"),H3=X.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=cp(yu,n),c=$m(n),{onClose:h}=l;return X.useEffect(()=>(document.addEventListener(wv,h),()=>document.removeEventListener(wv,h)),[h]),X.useEffect(()=>{if(l.trigger){const m=g=>{const d=g.target;d!=null&&d.contains(l.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[l.trigger,h]),U.jsx(Pm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:U.jsxs(f7,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[U.jsx(x7,{children:r}),U.jsx(w7,{scope:n,isInside:!0,children:U.jsx(cN,{id:l.contentId,role:"tooltip",children:i||r})})]})})});$3.displayName=yu;var W3="TooltipArrow",_7=X.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=$m(n);return b7(W3,n).isInside?null:U.jsx(d7,{...i,...r,ref:t})});_7.displayName=W3;function S7(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function N7(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function k7(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function A7(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o],l=t[a],c=s.x,h=s.y,m=l.x,g=l.y;h>r!=g>r&&n<(m-c)*(r-h)/(g-h)+c&&(i=!i)}return i}function L7(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),E7(t)}function E7(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var C7=U3,V3=$3;const P7=C7,T7=X.forwardRef(({className:e,sideOffset:t=4,...n},r)=>U.jsx(V3,{ref:r,sideOffset:t,className:yo("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));T7.displayName=V3.displayName;var fp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dp=typeof window>"u"||"Deno"in globalThis;function Oi(){}function R7(e,t){return typeof e=="function"?e(t):e}function O7(e){return typeof e=="number"&&e>=0&&e!==1/0}function I7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function h2(e,t){return typeof e=="function"?e(t):e}function j7(e,t){return typeof e=="function"?e(t):e}function bv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Hm(a,t.options))return!1}else if(!Jc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function xv(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Qc(t.options.mutationKey)!==Qc(o))return!1}else if(!Jc(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Hm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qc)(e)}function Qc(e){return JSON.stringify(e,(t,n)=>p2(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}
vendor: 22,099 bytes, line 141
141function Jc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Jc(e[n],t[n])):!1}function G3(e,t){if(e===t)return e;const n=_v(e)&&_v(t);if(n||p2(e)&&p2(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{},l=new Set(r);let c=0;for(let h=0;h<a;h++){const m=n?h:o[h];(!n&&l.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(s[m]=void 0,c++):(s[m]=G3(e[m],t[m]),s[m]===e[m]&&e[m]!==void 0&&c++)}return i===a&&c===i?e:s}return t}function _v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function p2(e){if(!Sv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Sv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sv(e){return Object.prototype.toString.call(e)==="[object Object]"}function F7(e){return new Promise(t=>{setTimeout(t,e)})}function M7(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?G3(e,t):t}function D7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function B7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wm=Symbol();function Y3(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ts,Na,nu,uw,z7=(uw=class extends fp{constructor(){super();Ot(this,Ts);Ot(this,Na);Ot(this,nu);ht(this,nu,t=>{if(!dp&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){xe(this,Na)||this.setEventListener(xe(this,nu))}onUnsubscribe(){var t;this.hasListeners()||((t=xe(this,Na))==null||t.call(this),ht(this,Na,void 0))}setEventListener(t){var n;ht(this,nu,t),(n=xe(this,Na))==null||n.call(this),ht(this,Na,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){xe(this,Ts)!==t&&(ht(this,Ts,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof xe(this,Ts)=="boolean"?xe(this,Ts):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ts=new WeakMap,Na=new WeakMap,nu=new WeakMap,uw),K3=new z7,ru,ka,iu,cw,U7=(cw=class extends fp{constructor(){super();Ot(this,ru,!0);Ot(this,ka);Ot(this,iu);ht(this,iu,t=>{if(!dp&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){xe(this,ka)||this.setEventListener(xe(this,iu))}onUnsubscribe(){var t;this.hasListeners()||((t=xe(this,ka))==null||t.call(this),ht(this,ka,void 0))}setEventListener(t){var n;ht(this,iu,t),(n=xe(this,ka))==null||n.call(this),ht(this,ka,t(this.setOnline.bind(this)))}setOnline(t){xe(this,ru)!==t&&(ht(this,ru,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return xe(this,ru)}},ru=new WeakMap,ka=new WeakMap,iu=new WeakMap,cw),Rh=new U7;function q7(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function $7(e){return Math.min(1e3*2**e,3e4)}function Z3(e){return(e??"online")==="online"?Rh.isOnline():!0}var X3=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function I1(e){return e instanceof X3}function Q3(e){let t=!1,n=0,r=!1,i;const o=q7(),a=w=>{var _;r||(g(new X3(w)),(_=e.abort)==null||_.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>K3.isFocused()&&(e.networkMode==="always"||Rh.isOnline())&&e.canRun(),h=()=>Z3(e.networkMode)&&e.canRun(),m=w=>{var _;r||(r=!0,(_=e.onSuccess)==null||_.call(e,w),i==null||i(),o.resolve(w))},g=w=>{var _;r||(r=!0,(_=e.onError)==null||_.call(e,w),i==null||i(),o.reject(w))},d=()=>new Promise(w=>{var _;i=y=>{(r||c())&&w(y)},(_=e.onPause)==null||_.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(r)return;let w;const _=n===0?e.initialPromise:void 0;try{w=_??e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(m).catch(y=>{var K;if(r)return;const x=e.retry??(dp?0:3),N=e.retryDelay??$7,A=typeof N=="function"?N(n,y):N,M=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!M){g(y);return}n++,(K=e.onFail)==null||K.call(e,n,y),F7(A).then(()=>c()?void 0:d()).then(()=>{t?g(y):S()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:h,start:()=>(h()?S():d().then(S),o)}}var H7=e=>setTimeout(e,0);function W7(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=H7;const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Sr=W7(),Rs,fw,J3=(fw=class{constructor(){Ot(this,Rs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),O7(this.gcTime)&&ht(this,Rs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dp?1/0:5*60*1e3))}clearGcTimeout(){xe(this,Rs)&&(clearTimeout(xe(this,Rs)),ht(this,Rs,void 0))}},Rs=new WeakMap,fw),ou,Os,di,Is,dr,cf,js,Ii,Fo,dw,V7=(dw=class extends J3{constructor(t){super();Ot(this,Ii);Ot(this,ou);Ot(this,Os);Ot(this,di);Ot(this,Is);Ot(this,dr);Ot(this,cf);Ot(this,js);ht(this,js,!1),ht(this,cf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ht(this,Is,t.client),ht(this,di,xe(this,Is).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ht(this,ou,Y7(this.options)),this.state=t.state??xe(this,ou),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=xe(this,dr))==null?void 0:t.promise}setOptions(t){this.options={...xe(this,cf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&xe(this,di).remove(this)}setData(t,n){const r=M7(this.state.data,t,this.options);return or(this,Ii,Fo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){or(this,Ii,Fo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=xe(this,dr))==null?void 0:r.promise;return(i=xe(this,dr))==null||i.cancel(t),n?n.then(Oi).catch(Oi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(xe(this,ou))}isActive(){return this.observers.some(t=>j7(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>h2(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!I7(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=xe(this,dr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=xe(this,dr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),xe(this,di).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(xe(this,dr)&&(xe(this,js)?xe(this,dr).cancel({revert:!0}):xe(this,dr).cancelRetry()),this.scheduleGc()),xe(this,di).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||or(this,Ii,Fo).call(this,{type:"invalidate"})}fetch(t,n){var c,h,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(xe(this,dr))return xe(this,dr).continueRetry(),xe(this,dr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(d=>d.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ht(this,js,!0),r.signal)})},o=()=>{const g=Y3(this.options,n),S=(()=>{const w={client:xe(this,Is),queryKey:this.queryKey,meta:this.meta};return i(w),w})();return ht(this,js,!1),this.options.persister?this.options.persister(g,S,this):g(S)},s=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:xe(this,Is),state:this.state,fetchFn:o};return i(g),g})();(c=this.options.behavior)==null||c.onFetch(s,this),ht(this,Os,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&or(this,Ii,Fo).call(this,{type:"fetch",meta:(m=s.fetchOptions)==null?void 0:m.meta});const l=g=>{var d,S,w,_;I1(g)&&g.silent||or(this,Ii,Fo).call(this,{type:"error",error:g}),I1(g)||((S=(d=xe(this,di).config).onError)==null||S.call(d,g,this),(_=(w=xe(this,di).config).onSettled)==null||_.call(w,this.state.data,g,this)),this.scheduleGc()};return ht(this,dr,Q3({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var d,S,w,_;if(g===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(y){l(y);return}(S=(d=xe(this,di).config).onSuccess)==null||S.call(d,g,this),(_=(w=xe(this,di).config).onSettled)==null||_.call(w,g,this.state.error,this),this.scheduleGc()},onError:l,onFail:(g,d)=>{or(this,Ii,Fo).call(this,{type:"failed",failureCount:g,error:d})},onPause:()=>{or(this,Ii,Fo).call(this,{type:"pause"})},onContinue:()=>{or(this,Ii,Fo).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),xe(this,dr).start()}},ou=new WeakMap,Os=new WeakMap,di=new WeakMap,Is=new WeakMap,dr=new WeakMap,cf=new WeakMap,js=new WeakMap,Ii=new WeakSet,Fo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...G7(r.data,this.options),fetchMeta:t.meta??null};case"success":return ht(this,Os,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return I1(i)&&i.revert&&xe(this,Os)?{...xe(this,Os),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Sr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),xe(this,di).notify({query:this,type:"updated",action:t})})},dw);function G7(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Y7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ao,hw,K7=(hw=class extends fp{constructor(t={}){super();Ot(this,ao);this.config=t,ht(this,ao,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Hm(i,n);let a=this.get(o);return a||(a=new V7({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){xe(this,ao).has(t.queryHash)||(xe(this,ao).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=xe(this,ao).get(t.queryHash);n&&(t.destroy(),n===t&&xe(this,ao).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Sr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return xe(this,ao).get(t)}getAll(){return[...xe(this,ao).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>bv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>bv(t,r)):n}notify(t){Sr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Sr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Sr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ao=new WeakMap,hw),so,xr,Fs,lo,ya,pw,Z7=(pw=class extends J3{constructor(t){super();Ot(this,lo);Ot(this,so);Ot(this,xr);Ot(this,Fs);this.mutationId=t.mutationId,ht(this,xr,t.mutationCache),ht(this,so,[]),this.state=t.state||X7(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){xe(this,so).includes(t)||(xe(this,so).push(t),this.clearGcTimeout(),xe(this,xr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ht(this,so,xe(this,so).filter(n=>n!==t)),this.scheduleGc(),xe(this,xr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){xe(this,so).length||(this.state.status==="pending"?this.scheduleGc():xe(this,xr).remove(this))}continue(){var t;return((t=xe(this,Fs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,s,l,c,h,m,g,d,S,w,_,y,x,N,A,M,K,Y,H;const n=()=>{or(this,lo,ya).call(this,{type:"continue"})};ht(this,Fs,Q3({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,Z)=>{or(this,lo,ya).call(this,{type:"failed",failureCount:I,error:Z})},onPause:()=>{or(this,lo,ya).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>xe(this,xr).canRun(this)}));const r=this.state.status==="pending",i=!xe(this,Fs).canStart();try{if(r)n();else{or(this,lo,ya).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(o=xe(this,xr).config).onMutate)==null?void 0:a.call(o,t,this));const Z=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));Z!==this.state.context&&or(this,lo,ya).call(this,{type:"pending",context:Z,variables:t,isPaused:i})}const I=await xe(this,Fs).start();return await((h=(c=xe(this,xr).config).onSuccess)==null?void 0:h.call(c,I,t,this.state.context,this)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,I,t,this.state.context)),await((S=(d=xe(this,xr).config).onSettled)==null?void 0:S.call(d,I,null,this.state.variables,this.state.context,this)),await((_=(w=this.options).onSettled)==null?void 0:_.call(w,I,null,t,this.state.context)),or(this,lo,ya).call(this,{type:"success",data:I}),I}catch(I){try{throw await((x=(y=xe(this,xr).config).onError)==null?void 0:x.call(y,I,t,this.state.context,this)),await((A=(N=this.options).onError)==null?void 0:A.call(N,I,t,this.state.context)),await((K=(M=xe(this,xr).config).onSettled)==null?void 0:K.call(M,void 0,I,this.state.variables,this.state.context,this)),await((H=(Y=this.options).onSettled)==null?void 0:H.call(Y,void 0,I,t,this.state.context)),I}finally{or(this,lo,ya).call(this,{type:"error",error:I})}}finally{xe(this,xr).runNext(this)}}},so=new WeakMap,xr=new WeakMap,Fs=new WeakMap,lo=new WeakSet,ya=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Sr.batch(()=>{xe(this,so).forEach(r=>{r.onMutationUpdate(t)}),xe(this,xr).notify({mutation:this,type:"updated",action:t})})},pw);function X7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Uo,ji,ff,mw,Q7=(mw=class extends fp{constructor(t={}){super();Ot(this,Uo);Ot(this,ji);Ot(this,ff);this.config=t,ht(this,Uo,new Set),ht(this,ji,new Map),ht(this,ff,0)}build(t,n,r){const i=new Z7({mutationCache:this,mutationId:++id(this,ff)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){xe(this,Uo).add(t);const n=Ad(t);if(typeof n=="string"){const r=xe(this,ji).get(n);r?r.push(t):xe(this,ji).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(xe(this,Uo).delete(t)){const n=Ad(t);if(typeof n=="string"){const r=xe(this,ji).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&xe(this,ji).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ad(t);if(typeof n=="string"){const r=xe(this,ji).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Ad(t);if(typeof n=="string"){const i=(r=xe(this,ji).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Sr.batch(()=>{xe(this,Uo).forEach(t=>{this.notify({type:"removed",mutation:t})}),xe(this,Uo).clear(),xe(this,ji).clear()})}getAll(){return Array.from(xe(this,Uo))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xv(n,r))}findAll(t={}){return this.getAll().filter(n=>xv(t,n))}notify(t){Sr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Sr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Oi))))}},Uo=new WeakMap,ji=new WeakMap,ff=new WeakMap,mw);function Ad(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Nv(e){return{onFetch:(t,n)=>{var h,m,g,d,S;const r=t.options,i=(g=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,o=((d=t.state.data)==null?void 0:d.pages)||[],a=((S=t.state.data)==null?void 0:S.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let w=!1;const _=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},y=Y3(t.options,t.fetchOptions),x=async(N,A,M)=>{if(w)return Promise.reject();if(A==null&&N.pages.length)return Promise.resolve(N);const Y=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:A,direction:M?"backward":"forward",meta:t.options.meta};return _(P),P})(),H=await y(Y),{maxPages:I}=t.options,Z=M?B7:D7;return{pages:Z(N.pages,H,I),pageParams:Z(N.pageParams,A,I)}};if(i&&o.length){const N=i==="backward",A=N?J7:kv,M={pages:o,pageParams:a},K=A(r,M);s=await x(M,K,N)}else{const N=e??o.length;do{const A=l===0?a[0]??r.initialPageParam:kv(r,s);if(l>0&&A==null)break;s=await x(s,A),l++}while(l<N)}return s};t.options.persister?t.fetchFn=()=>{var w,_;return(_=(w=t.options).persister)==null?void 0:_.call(w,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function kv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function J7(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var vn,Aa,La,au,su,Ea,lu,uu,gw,eL=(gw=class{constructor(e={}){Ot(this,vn);Ot(this,Aa);Ot(this,La);Ot(this,au);Ot(this,su);Ot(this,Ea);Ot(this,lu);Ot(this,uu);ht(this,vn,e.queryCache||new K7),ht(this,Aa,e.mutationCache||new Q7),ht(this,La,e.defaultOptions||{}),ht(this,au,new Map),ht(this,su,new Map),ht(this,Ea,0)}mount(){id(this,Ea)._++,xe(this,Ea)===1&&(ht(this,lu,K3.subscribe(async e=>{e&&(await this.resumePausedMutations(),xe(this,vn).onFocus())})),ht(this,uu,Rh.subscribe(async e=>{e&&(await this.resumePausedMutations(),xe(this,vn).onOnline())})))}unmount(){var e,t;id(this,Ea)._--,xe(this,Ea)===0&&((e=xe(this,lu))==null||e.call(this),ht(this,lu,void 0),(t=xe(this,uu))==null||t.call(this),ht(this,uu,void 0))}isFetching(e){return xe(this,vn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return xe(this,Aa).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=xe(this,vn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=xe(this,vn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(h2(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return xe(this,vn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=xe(this,vn).get(r.queryHash),o=i==null?void 0:i.state.data,a=R7(t,o);if(a!==void 0)return xe(this,vn).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Sr.batch(()=>xe(this,vn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=xe(this,vn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=xe(this,vn);Sr.batch(()=>
141{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=xe(this,vn);return Sr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Sr.batch(()=>xe(this,vn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Oi).catch(Oi)}invalidateQueries(e,t={}){return Sr.batch(()=>(xe(this,vn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Sr.batch(()=>xe(this,vn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Oi)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Oi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=xe(this,vn).build(this,t);return n.isStaleByTime(h2(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Oi).catch(Oi)}fetchInfiniteQuery(e){return e.behavior=Nv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Oi).catch(Oi)}ensureInfiniteQueryData(e){return e.behavior=Nv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Rh.isOnline()?xe(this,Aa).resumePausedMutations():Promise.resolve()}getQueryCache(){return xe(this,vn)}getMutationCache(){return xe(this,Aa)}getDefaultOptions(){return xe(this,La)}setDefaultOptions(e){ht(this,La,e)}setQueryDefaults(e,t){xe(this,au).set(Qc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...xe(this,au).values()],n={};return t.forEach(r=>{Jc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){xe(this,su).set(Qc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...xe(this,su).values()],n={};return t.forEach(r=>{Jc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...xe(this,La).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Wm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...xe(this,La).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){xe(this,vn).clear(),xe(this,Aa).clear()}},vn=new WeakMap,Aa=new WeakMap,La=new WeakMap,au=new WeakMap,su=new WeakMap,Ea=new WeakMap,lu=new WeakMap,uu=new WeakMap,gw),tL=X.createContext(void 0),nL=({client:e,children:t})=>(X.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),U.jsx(tL.Provider,{value:e,children:t}));/**
142 * @remix-run/router v1.23.0
143 *
144 * Copyright (c) Remix Software Inc.
145 *
146 * This source code is licensed under the MIT license found in the
147 * LICENSE.md file in the root directory of this source tree.
148 *
149 * @license MIT
150 */function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oh.apply(this,arguments)}var Ta;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ta||(Ta={}));const Av="popstate";function rL(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return m2("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:t4(i)}return oL(t,n,null,e)}function Dr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function e4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iL(){return Math.random().toString(36).substr(2,8)}function Lv(e,t){return{usr:e.state,key:e.key,idx:t}}function m2(e,t,n,r){return n===void 0&&(n=null),Oh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hp(t):t,{state:n,key:t&&t.key||r||iL()})}function t4(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hp(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function oL(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ta.Pop,l=null,c=h();c==null&&(c=0,a.replaceState(Oh({},a.state,{idx:c}),""));function h(){return(a.state||{idx:null}).idx}function m(){s=Ta.Pop;let _=h(),y=_==null?null:_-c;c=_,l&&l({action:s,location:w.location,delta:y})}function g(_,y){s=Ta.Push;let x=m2(w.location,_,y);c=h()+1;let N=Lv(x,c),A=w.createHref(x);try{a.pushState(N,"",A)}
vendor: 3,324 bytes, line 150
150catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;i.location.assign(A)}o&&l&&l({action:s,location:w.location,delta:1})}function d(_,y){s=Ta.Replace;let x=m2(w.location,_,y);c=h();let N=Lv(x,c),A=w.createHref(x);a.replaceState(N,"",A),o&&l&&l({action:s,location:w.location,delta:0})}function S(_){let y=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof _=="string"?_:t4(_);return x=x.replace(/ $/,"%20"),Dr(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let w={get action(){return s},get location(){return e(i,a)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Av,m),l=_,()=>{i.removeEventListener(Av,m),l=null}},createHref(_){return t(i,_)},createURL:S,encodeLocation(_){let y=S(_);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:d,go(_){return a.go(_)}};return w}var Ev;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ev||(Ev={}));function aL(e,t,n){return n===void 0&&(n="/"),sL(e,t,n,!1)}function sL(e,t,n,r){let i=typeof t=="string"?hp(t):t,o=i4(i.pathname||"/",n);if(o==null)return null;let a=n4(e);lL(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=wL(o);s=vL(a[l],c,r)}return s}function n4(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Zl([r,l.relativePath]),h=n.concat(l);o.children&&o.children.length>0&&(Dr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),n4(o.children,t,h,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:mL(c,o.index),routesMeta:h})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of r4(o.path))i(o,a,l)}),t}function r4(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=r4(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function lL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uL=/^:[\w-]+$/,cL=3,fL=2,dL=1,hL=10,pL=-2,Cv=e=>e==="*";function mL(e,t){let n=e.split("/"),r=n.length;return n.some(Cv)&&(r+=pL),t&&(r+=fL),n.filter(i=>!Cv(i)).reduce((i,o)=>i+(uL.test(o)?cL:o===""?dL:hL),r)}function gL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function vL(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",m=Pv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},h),g=l.route;if(!m&&c&&n&&!r[r.length-1].route.index&&(m=Pv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!m)return null;
vendor: 4,131 bytes, lines 150-159
150Object.assign(i,m.params),a.push({params:i,pathname:Zl([o,m.pathname]),pathnameBase:bL(Zl([o,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(o=Zl([o,m.pathnameBase]))}return a}function Pv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=yL(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,h,m)=>{let{paramName:g,isOptional:d}=h;if(g==="*"){let w=s[m]||"";a=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const S=s[m];return d&&!S?c[g]=void 0:c[g]=(S||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function yL(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),e4(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function wL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return e4(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function i4(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Zl=e=>e.join("/").replace(/\/\/+/g,"/"),bL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function xL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o4=["post","put","patch","delete"];new Set(o4);const _L=["get",...o4];new Set(_L);/**
151 * React Router v6.30.1
152 *
153 * Copyright (c) Remix Software Inc.
154 *
155 * This source code is licensed under the MIT license found in the
156 * LICENSE.md file in the root directory of this source tree.
157 *
158 * @license MIT
159 */function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ih.apply(this,arguments)}const SL=X.createContext(null),NL=X.createContext(null),a4=X.createContext(null),pp=X.createContext(null),mp=X.createContext({outlet:null,matches:[],isDataRoute:!1}),s4=X.createContext(null);function Vm(){return X.useContext(pp)!=null}function l4(){return Vm()||Dr(!1),X.useContext(pp).location}function kL(e,t){return AL(e,t)}function AL(e,t,n,r){Vm()||Dr(!1);let{navigator:i}=X.useContext(a4),{matches:o}=X.useContext(mp),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=l4(),h;if(t){var m;let _=typeof t=="string"?hp(t):t;l==="/"||(m=_.pathname)!=null&&m.startsWith(l)||Dr(!1),h=_}else h=c;let g=h.pathname||"/",d=g;if(l!=="/"){let _=l.replace(/^\//,"").split("/");d="/"+g.replace(/^\//,"").split("/").slice(_.length).join("/")}let S=aL(e,{pathname:d}),w=TL(S&&S.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:Zl([l,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:Zl([l,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,n,r);return t&&w?X.createElement(pp.Provider,{value:{location:Ih({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ta.Pop}},w):w}function LL(){let e=jL(),t=xL(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application 
159Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},t),n?X.createElement("pre",{style:i},n):null,null)}const EL=X.createElement(LL,null);class CL extends X.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?X.createElement(mp.Provider,{value:this.props.routeContext},X.createElement(s4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function PL(e){let{routeContext:t,match:n,children:r}=e,i=X.useContext(SL);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),X.createElement(mp.Provider,{value:t},r)}function TL(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let h=a.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);h>=0||Dr(!1),a=a.slice(0,Math.min(a.length,h+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<a.length;h++){let m=a[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(c=h),m.route.id){let{loaderData:g,errors:d}=n,S=m.route.loader&&g[m.route.id]===void 0&&(!d||d[m.route.id]===void 0);if(m.route.lazy||S){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((h,m,g)=>{let d,S=!1,w=null,_=null;n&&(d=s&&m.route.id?s[m.route.id]:void 0,w=m.route.errorElement||EL,l&&(c<0&&g===0?(S=!0,_=null):c===g&&(S=!0,_=m.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,g+1)),x=()=>{let N;return d?N=w:S?N=_:m.route.Component?N=X.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=h,X.createElement(PL,{match:m,routeContext:{outlet:h,matches:y,isDataRoute:n!=null},children:N})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?X.createElement(CL,{location:n.location,revalidation:n.revalidation,component:w,error:d,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var g2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(g2||{});function RL(e){let t=X.useContext(NL);return t||Dr(!1),t}function OL(e){let t=X.useContext(mp);return t||Dr(!1),t}function IL(e){let t=OL(),n=t.matches[t.matches.length-1];return n.route.id||Dr(!1),n.route.id}function jL(){var e;let t=X.useContext(s4),n=RL(g2.UseRouteError),r=IL(g2.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function FL(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function v2(e){Dr(!1)}function ML(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ta.Pop,navigator:o,static:a=!1,future:s}=e;Vm()&&Dr(!1);let l=t.replace(/^\/*/,"/"),c=X.useMemo(()=>({basename:l,navigator:o,static:a,future:Ih({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=hp(r));let{pathname:h="/",search:m="",hash:g="",state:d=null,key:S="default"}=r,w=X.useMemo(()=>{let _=i4(h,l);return _==null?null:{location:{pathname:_,search:m,hash:g,state:d,key:S},navigationType:i}},[l,h,m,g,d,S,i]);return w==null?null:X.createElement(a4.Provider,{value:c},X.createElement(pp.Provider,{children:n,value:w}))}function DL(e){let{children:t,location:n}=e;return kL(y2(t),n)}new Promise(()=>{});function y2(e,t){t===void 0&&(t=[]);let n=[];
vendor: 1,378 bytes, lines 159-168
159return X.Children.forEach(e,(r,i)=>{if(!X.isValidElement(r))return;let o=[...t,i];if(r.type===X.Fragment){n.push.apply(n,y2(r.props.children,o));return}r.type!==v2&&Dr(!1),!r.props.index||!r.props.children||Dr(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=y2(r.props.children,o)),n.push(a)}),n}/**
160 * React Router DOM v6.30.1
161 *
162 * Copyright (c) Remix Software Inc.
163 *
164 * This source code is licensed under the MIT license found in the
165 * LICENSE.md file in the root directory of this source tree.
166 *
167 * @license MIT
168 */const BL="6";try{window.__reactRouterVersion=BL}catch{}const zL="startTransition",Tv=Ew[zL];function UL(e){let{basename:t,children:n,future:r,window:i}=e,o=X.useRef();o.current==null&&(o.current=rL({window:i,v5Compat:!0}));let a=o.current,[s,l]=X.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},h=X.useCallback(m=>{c&&Tv?Tv(()=>l(m)):l(m)},[l,c]);return X.useLayoutEffect(()=>a.listen(h),[a,h]),X.useEffect(()=>
168FL(r),[r]),X.createElement(ML,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}var Rv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Rv||(Rv={}));var Ov;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ov||(Ov={}));const qL=[{id:"fat-loss",label:"Fat Loss",icon:"🔥"},{id:"muscle-building",label:"Muscle Building",icon:"💪"},{id:"habit-building",label:"Habit Building",icon:"📅"},{id:"consistency",label:"Consistency",icon:"✅"},{id:"strength",label:"Strength",icon:"🏋️"},{id:"conditioning",label:"Conditioning",icon:"❤️"},{id:"mobility",label:"Mobility & Recovery",icon:"🧘"},{id:"wellness",label:"Lifestyle / Wellness",icon:"🌿"},{id:"community",label:"Community Engagement",icon:"👥"}],u4=[{id:"1on1",label:"1-on-1 Clients",icon:"👤"},{id:"group",label:"Group Coaching",icon:"👥"},{id:"gym",label:"Gym Members",icon:"🏢"},{id:"studio",label:"Studio Members",icon:"🎯"},{id:"online",label:"Online Community",icon:"🌐"},{id:"corporate",label:"Corporate Groups",icon:"💼"},{id:"social",label:"Social Media Audience",icon:"📱"}],c4=[{id:"beginner",label:"Beginner",icon:"🌱"},{id:"intermediate",label:"Intermediate",icon:"📈"},{id:"advanced",label:"Advanced",icon:"🚀"},{id:"mixed",label:"Mixed Levels",icon:"🎯"}],$L=[{id:"7",label:"7 Days",subtitle:"1 Week"},{id:"14",label:"14 Days",subtitle:"2 Weeks"},{id:"21",label:"21 Days",subtitle:"3 Weeks"},{id:"28",label:"28 Days",subtitle:"4 Weeks"},{id:"30",label:"30 Days",subtitle:"1 Month"}],HL=[{id:"none",label:"No Equipment",icon:"🙌"},{id:"dumbbells",label:"Dumbbells",icon:"🏋️"},{id:"barbell",label:"Barbell",icon:"🏋️‍♂️"},{id:"bands",label:"Resistance Bands",icon:"🔗"},{id:"machines",label:"Machines",icon:"⚙️"},{id:"kettlebells",label:"Kettlebells",icon:"🔔"},{id:"bodyweight",label:"Bodyweight Only",icon:"🤸"},{id:"mixed",label:"Mixed Equipment",icon:"🎒"}],WL=[{id:"kg",label:"Kilograms (kg)"},{id:"lb",label:"Pounds (lb)"},{id:"cm",label:"Centimeters (cm)"},{id:"in",label:"Inches (in)"}],Iv={"fat-loss":["Metabolic Ignite","Burn & Transform","Shred Protocol","Fat Furnace"],"muscle-building":["Strength Surge","Muscle Mastery","Gains Protocol","Power Build"],"habit-building":["Daily Discipline","Consistency Code","Habit Forge","Routine Revolution"],consistency:["Never Miss","Daily Wins","Streak Builder","Show Up Strong"],strength:["Iron Will","Strength Foundations","Power Protocol","Lift Strong"],conditioning:["Cardio Crush","Endurance Edge","Heart & Hustle","Stamina Sprint"],mobility:["Flex Flow","Recovery Reset","Move Better","Mobility Matrix"],wellness:["Balance Blueprint","Whole Life Wellness","Mind Body Reset","Thrive Protocol"],community:["Team Triumph","Group Grind","Unity Challenge","Community Climb"]},jv={"fat-loss":["A compliance-based approach to sustainable fat loss","Daily habits that drive metabolic results"],"muscle-building":["Behavioral accountability for muscle-building success","Consistency mechanics that support gains"],"habit-building":["Build lasting fitness habits through daily wins","Small actions, massive transformations"],consistency:["Show up every day, track every win","The power of daily commitment, gamified"],strength:["Compliance-driven strength accountability","Daily rules that support strength goals"],conditioning:["Heart-healthy habits for peak performance","Daily behaviors that boost endurance"],mobility:["Move better daily, feel better weekly","Recovery habits that compound"],wellness:["Holistic daily actions for total wellness","Balance training, nutrition, and mindset"],community:["Stronger together, accountable always","Team-based compliance for group success"]},Fv={"fat-loss":"Help clients improve metabolic efficiency, consistency, and recovery by completing daily non-negotiable actions that support fat loss without changing their existing workout program.","muscle-building":"Support muscle-building goals through daily compliance habits that optimize recovery, nutrition timing, and training consistency alongside their current program.","habit-building":"Create lasting behavior change by stacking simple daily actions that compound into powerful fitness habits over the challenge duration.",consistency:"Build an unbreakable streak mindset through daily check-ins and compliance tracking that rewards showing up.",strength:"Maximize strength training results through daily recovery, nutrition, and mobility habits that support heavy lifting.",conditioning:"Improve cardiovascular health and endurance through daily movement targets and heart-healthy behavior habits.",mobility:"Enhance flexibility, reduce injury risk, and improve movement quality through consistent daily mobility and recovery practices.",wellness:"Achieve holistic wellness by balancing physical activity, nutrition, sleep, and stress management through daily trackable actions.",community:"Foster group accountability and engagement through shared daily challenges, team scoring, and collective wins."};function Mv(e){return e[Math.floor(Math.random()*e.length)]}function VL(e){const t=e[0]||"consistency",n=[{id:1,title:"Complete the assigned workout",description:"Coach-programmed or self-led. This challenge layers on top of existing training."},{id:2,title:"Hit daily movement target",description:"Reach the minimum movement requirement for the day. Coach may adjust targets based on client ability.",options:["8,000 to 10,000 steps","20 to 30 minutes steady movement on rest days"]}],r={"fat-loss":[{id:3,title:"Metabolic habit check (choose ONE)",description:"Within this category, clients choose ONE habit to complete each day.",options:["Protein-first meal","No liquid calories","3L w
168ater intake","No ultra-processed snacks"]},{id:4,title:"Accountability check-in",description:"Log completion and rate energy levels (1 to 10)."}],"muscle-building":[{id:3,title:"Recovery & nutrition check (choose ONE)",description:"Within this category, clients choose ONE habit to complete each day.",options:["Hit protein target (1g per lb bodyweight)","7+ hours sleep","Post-workout nutrition within 2 hours"]},{id:4,title:"Training log check-in",description:"Log workout completion and rate session quality (1 to 10)."}],"habit-building":[{id:3,title:"Keystone habit completion (choose ONE)",description:"Within this category, clients choose ONE habit to complete each day.",options:["Morning movement routine","Meal prep session","Evening wind-down ritual"]},{id:4,title:"Habit streak check-in",description:"Log completion and track your current streak."}],consistency:[{id:3,title:"Non-negotiable action (choose ONE)",description:"Within this category, clients choose ONE action to complete each day.",options:["Any workout (even 10 min)","Active recovery session","Mobility work"]},{id:4,title:"Daily check-in",description:"Log completion in app to maintain the streak."}],strength:[{id:3,title:"Recovery protocol (choose ONE)",description:"Within this category, clients choose ONE recovery action each day.",options:["Foam rolling / soft tissue work","10 min mobility routine","Contrast shower / cold exposure"]},{id:4,title:"Strength log check-in",description:"Log workout completion and track key lift numbers."}],conditioning:[{id:3,title:"Heart health habit (choose ONE)",description:"Within this category, clients choose ONE cardiovascular habit each day.",options:["Zone 2 cardio (20+ min)","HIIT session","Active recovery walk"]},{id:4,title:"Cardio log check-in",description:"Log session and rate perceived exertion (1 to 10)."}],mobility:[{id:3,title:"Mobility practice (choose ONE)",description:"Within this category, clients choose ONE mobility practice each day.",options:["10 min morning stretch","Foam rolling session","Yoga / breathwork practice"]},{id:4,title:"Movement quality check-in",description:"Log completion and note any improvements in range of motion."}],wellness:[{id:3,title:"Wellness pillar check (choose ONE)",description:"Within this category, clients choose ONE action to complete each day.",options:["Sleep: 7+ hours","Nutrition: Whole food meal","Mindset: 5 min meditation/journaling"]},{id:4,title:"Wellness score check-in",description:"Rate overall wellness (1 to 10) and log completion."}],community:[{id:3,title:"Community engagement (choose ONE)",description:"Within this category, clients choose ONE community action each day.",options:["Comment/cheer a teammate","Share progress in group","Partner accountability check-in"]},{id:4,title:"Team check-in",description:"Log completion to contribute to team score."}]};return[...n,...r[t]||r.consistency]}function GL(e,t){const n=Math.ceil(e/7),r=t[0]||"consistency",i={"fat-loss":[{week:1,title:"Consistency & Baseline",focus:"Showing up daily",addOnRule:"Track all meals",coachTip:`Emphasize "don't break the chain" mentality`},{week:2,title:"Intensity Awareness",focus:"Pushing effort in workouts",addOnRule:'One "intentional intensity" session',coachTip:"RPE tracking instead of load chasing"},{week:3,title:"Recovery & Sustainability",focus:"Sleep, mobility, stress",addOnRule:"10 min daily mobility or breathwork",coachTip:"Normalize recovery as performance"}
168,{week:4,title:"Peak Compliance",focus:"No missed days",addOnRule:"Bonus points for streaks",coachTip:"Public recognition & shoutouts"}],"muscle-building":[{week:1,title:"Foundation Week",focus:"Establishing daily rhythms",addOnRule:"Log every meal",coachTip:"Focus on protein timing habits"},{week:2,title:"Progressive Load",focus:"Training intensity",addOnRule:"Track one key lift per session",coachTip:"Encourage logging PRs in group"},{week:3,title:"Recovery Optimization",focus:"Sleep and nutrition quality",addOnRule:"Sleep score tracking",coachTip:"Share recovery strategies"},{week:4,title:"Peak Performance",focus:"Maximum compliance",addOnRule:"Perfect day bonus points",coachTip:"Celebrate consistency over intensity"}],"habit-building":[{week:1,title:"Establish the Routine",focus:"Building the daily rhythm",addOnRule:"Same time every day",coachTip:"Anchor new habits to existing routines"},{week:2,title:"Build Momentum",focus:"Streak building",addOnRule:"Track habit completion time",coachTip:"Celebrate small wins publicly"},{week:3,title:"Add Complexity",focus:"Stacking habits",addOnRule:"Add one complementary habit",coachTip:"Don't overwhelm — simplify if needed"},{week:4,title:"Solidify & Automate",focus:"Making it automatic",addOnRule:"Reflection journal entry",coachTip:"Discuss identity-based habit change"}],consistency:[{week:1,title:"Start the Streak",focus:"Daily check-ins",addOnRule:"Log at same time daily",coachTip:"Make checking in the easiest part"},{week:2,title:"Build the Chain",focus:"Never miss twice",addOnRule:"Recovery day planning",coachTip:"Prepare for obstacles in advance"},{week:3,title:"Challenge Intensity",focus:"Push through mid-challenge",addOnRule:"Bonus challenge day",coachTip:"Introduce friendly competition"},{week:4,title:"Finish Strong",focus:"Perfect final week",addOnRule:"Streak bonus multiplier",coachTip:"Hype up the final push"}],strength:[{week:1,title:"Movement Patterns",focus:"Form and technique focus",addOnRule:"Video one lift per week",coachTip:"Provide form feedback"},{week:2,title:"Load Progression",focus:"Adding weight safely",addOnRule:"PR attempt day",coachTip:"Celebrate PRs in community"},{week:3,title:"Recovery Integration",focus:"Recovery habits",addOnRule:"Daily mobility requirement",coachTip:"Recovery is part of strength"},{week:4,title:"Test Week",focus:"Strength testing",addOnRule:"Record final lift numbers",coachTip:"Compare to baseline"}],conditioning:[{week:1,title:"Base Building",focus:"Aerobic foundation",addOnRule:"Track heart rate zones",coachTip:"Emphasize zone 2 importance"},{week:2,title:"Interval Training",focus:"Speed and power",addOnRule:"One interval session required",coachTip:"Teach proper interval structure"},{week:3,title:"Threshold Work",focus:"Pushing limits",addOnRule:"Threshold test",coachTip:"Mental toughness coaching"},{week:4,title:"Performance Peak",focus:"Testing improvements",addOnRule:"Time trial or distance test",coachTip:"Celebrate improvements"}],mobility:[{week:1,title:"Assessment & Basics",focus:"Finding restrictions",addOnRule:"Daily movement screen",coachTip:"Identify priority areas"},{week:2,title:"Range Expansion",focus:"Increasing ROM",addOnRule:"Targeted stretching",coachTip:"Progress photos of positions"},{week:3,title:"Dynamic Mobility",focus:"Movement quality",addOnRule:"Active mobility drills",coachTip:"Connect to training performance"},{week:4,title:"Integration",focus:"Applying to training",addOnRule:"Mobility in warm-ups",coachTip:"Make it sustainable long-term"}],wellness:[{week:1,title:"Mind-Body Connection",focus:"Awareness building",addOnRule:"Daily wellness journal",coachTip:"No judgement, just observation"},{week:2,title:"Stress Management",focus:"Recovery practices",addOnRule:"Breathing exercise daily",coachTip:"Teach stress vs recovery balance"},{week:3,title:"Energy Optimization",focus:"Sleep and nutrition",addOnRule:"Sleep hygiene focus",coachTip:"Connect sleep to performance"},{week:4,title:"Lifestyle Integration",focus:"Long-term habits",addOnRule:"Create personal wellness plan",coachTip:"Sustainability is the goal"}
168],community:[{week:1,title:"Team Building",focus:"Getting to know each other",addOnRule:"Introduce yourself post",coachTip:"Foster connection early"},{week:2,title:"Partner Workouts",focus:"Accountability pairs",addOnRule:"Check in with partner daily",coachTip:"Pair strategically for success"},{week:3,title:"Group Challenges",focus:"Team competitions",addOnRule:"Team score tracking",coachTip:"Create friendly competition"},{week:4,title:"Celebration Week",focus:"Recognizing achievements",addOnRule:"Share transformation",coachTip:"Public recognition and awards"}]};return(i[r]||i.consistency).slice(0,n)}function YL(){return[{action:"Daily completion (all rules)",points:"1 point"},{action:"Perfect week (7/7 days)",points:"+3 bonus points"},{action:"No-miss streak (7+ days)",points:"+5 bonus points"},{action:"Community engagement bonus",points:"+1 point per interaction"}]}function KL(e,t){const n=["Daily completion tracking (Yes/No)","Weekly completion percentage","Current streak counter","Energy and fatigue trends (1 to 10 daily rating)"];return e.includes("conditioning")&&n.push("Step count averages"),n.push("Before/after photos (optional but encouraged)"),(e.includes("fat-loss")||e.includes("muscle-building"))&&((t.includes("cm")||t.includes("in"))&&n.push("Bi-weekly body measurements (coach discretion)"),(t.includes("kg")||t.includes("lb"))&&n.push("Weekly weigh-ins, same day and time (coach discretion)")),n}function ZL(e,t){const n=["This challenge layers on top of existing programming — no workout changes required.","Focus on compliance and behavior, not performance metrics.","Daily check-ins should take less than 2 minutes for clients.","Use the scoring system to gamify engagement and drive competition.","Celebrate streaks publicly to motivate the group."];return t.includes("corporate")&&n.push("Schedule check-ins during work breaks for corporate groups."),t.includes("online")&&n.push("Use video check-ins to maintain personal connection with remote participants."),(t.includes("group")||t.includes("community"))&&n.push("Pair participants as accountability partners for added engagement."),e.includes("community")&&n.push("Create team leaderboards to foster friendly competition."),n.slice(0,6)}function XL(e){const t=e.challengeTypes[0]||"consistency",n=Iv[t]||Iv.consistency,r=jv[t]||jv.consistency,i=Fv[t]||Fv.consistency,o=parseInt(e.duration)||21,a=e.audienceTypes.map(l=>{var c;return(c=u4.find(h=>h.id===l))==null?void 0:c.label}).filter(Boolean).join(", ")||"All clients",s=e.fitnessLevels.map(l=>{var c;return(c=c4.find(h=>h.id===l))==null?void 0:c.label}).filter(Boolean).join(", ")||"All levels";return{name:Mv(n)+" Challenge",tagline:Mv(r),targetAudience:a,duration:`${o} Days`,fitnessLevel:s,objective:i,howItWorks:"Clients earn a daily completion score by finishing the required actions below. No programming changes required. This challenge layers on top of your current training plan.",dailyRules:VL(e.challengeTypes),weeklyThemes:GL(o,e.challengeTypes),scoringSystem:YL(),progressTracking:KL(e.challengeTypes,e.measurements),coachingNotes:ZL(e.challengeTypes,e.audienceTypes)}}const QL=({currentStep:e,totalSteps:t})=>U.jsx("div",{className:"flex items-center justify-center gap-1.5",children:Array.from({length:t},(n,r)=>U.jsx("div",{className:yo("step-indicator",r===e&&"active",r<e&&"completed",r>e&&"inactive")},r))}),ef=({id:e,label:t,icon:n,subtitle:r,selected:i,onToggle:o,compact:a=!1})=>U.jsx("button",{type:"button",onClick:()=>o(e),className:yo("card-select text-left w-full",a?"py-2 px-3":"py-2.5 px-3",i&&"selected"),children:U.jsxs("div",{className:"flex items-center gap-2",children:[n&&U.jsx("span",{className:"text-base flex-shrink-0",children:n}),U.jsxs("div",{className:"flex-1 min-w-0",children:[U.jsx("span",{className:"font-medium text-sm leading-tight block",children:t}),r&&U.jsx("span",{className:"text-xs text-muted-foreground",children:r})]})]})}),JL=({selected:e,onToggle:t})=>U.jsxs("div",{className:"fade-in",children:[U.jsx("h2",{className:"text-xl font-bold text-foreground mb-1",children:"Fitness Challenge Generator"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Generate a ready-to-run fitness challenge you can deploy with clients. Select the outcomes you want to drive."}),U.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:qL.map(n=>U.jsx(ef,{id:n.id,label:n.label,icon:n.icon,selected:e.includes(n.id
168),onToggle:t},n.id))})]}),eE=({selected:e,onToggle:t})=>U.jsxs("div",{className:"fade-in",children:[U.jsx("h2",{className:"text-lg font-bold text-foreground mb-1",children:"Who is this challenge for?"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Select your target audience"}),U.jsx("div",{className:"grid grid-cols-2 gap-2",children:u4.map(n=>U.jsx(ef,{id:n.id,label:n.label,icon:n.icon,selected:e.includes(n.id),onToggle:t,compact:!0},n.id))})]}),tE=({selectedLevels:e,selectedDuration:t,onToggleLevel:n,onSelectDuration:r})=>U.jsxs("div",{className:"fade-in space-y-5",children:[U.jsxs("div",{children:[U.jsx("h2",{className:"text-lg font-bold text-foreground mb-1",children:"Fitness levels"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Applicable levels for this challenge"}),U.jsx("div",{className:"grid grid-cols-2 gap-2",children:c4.map(i=>U.jsx(ef,{id:i.id,label:i.label,icon:i.icon,selected:e.includes(i.id),onToggle:n,compact:!0},i.id))})]}),U.jsxs("div",{children:[U.jsx("h2",{className:"text-lg font-bold text-foreground mb-1",children:"Challenge duration"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"How long should the challenge run?"}),U.jsx("div",{className:"flex gap-2 flex-wrap",children:$L.map(i=>U.jsx("button",{type:"button",onClick:()=>r(i.id),className:yo("flex-1 min-w-[60px] py-2.5 px-3 rounded-xl border-2 transition-all duration-200 text-center",t===i.id?"border-primary bg-accent shadow-md":"border-border bg-card hover:border-primary/50"),children:U.jsx("span",{className:"font-semibold text-sm block",children:i.label})},i.id))})]})]}),nE=({selectedEquipment:e,selectedMeasurements:t,onToggleEquipment:n,onToggleMeasurement:r})=>U.jsxs("div",{className:"fade-in space-y-5",children:[U.jsxs("div",{children:[U.jsx("h2",{className:"text-lg font-bold text-foreground mb-1",children:"Equipment availability"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"What equipment can clients use?"}),U.jsx("div",{className:"grid grid-cols-2 gap-2",children:HL.map(i=>U.jsx(ef,{id:i.id,label:i.label,icon:i.icon,selected:e.includes(i.id),onToggle:n,compact:!0},i.id))})]}),U.jsxs("div",{children:[U.jsx("h2",{className:"text-lg font-bold text-foreground mb-1",children:"Measurement units"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"For challenge outputs"}),U.jsx("div",{className:"grid grid-cols-2 gap-2",children:WL.map(i=>U.jsx(ef,{id:i.id,label:i.label,selected:t.includes(i.id),onToggle:r,compact:!0},i.id))})]})]}),rE=({onSubmit:e,isLoading:t})=>{const[n,r]=X.useState(""),[i,o]=X.useState(!0),[a,s]=X.useState(""),l=h=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h),c=h=>{if(h.preventDefault(),!n.trim()){s("Email is required");return}if(!l(n)){s("Please enter a valid email");return}s(""),e(n,i)};return U.jsxs("div",{className:"fade-in text-center",children:[U.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-accent flex items-center justify-center",children:U.jsx(zN,{className:"w-8 h-8 text-primary"})}),U.jsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Get your ready-to-run fitness challenge"}),U.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"We'll email you the challenge PDF so you can deploy it with clients anytime."}),U.jsxs("form",{onSubmit:c,className:"space-y-4",children:[U.jsxs("div",{children:[U.jsx("input",{type:"email",value:n,onChange:h=>{r(h.target.value),s("")},placeholder:"Enter your work email",className:"w-full px-4 py-3 rounded-xl border-2 border-border bg-card text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary transition-colors",disabled:t}),a&&U.jsx("p",{className:"text-sm text-destructive mt-1 text-left",children:a})]}),U.jsxs("label",{className:"flex items-start gap-3 cursor-pointer text-left",children:[U.jsx("input",{type:"checkbox",checked:i,onChange:h=>o(h.target.checked),className:"mt-0.5 w-5 h-5 rounded border-border text-primary focus:ring-primary cursor-pointer",disabled:t}),U.jsx("span",{className:"text-sm text-muted-foreground",children:"Send me more tools and resources for coaches"})]}),U.jsx("button",{type:"submit",disabled:t,className:"btn-primary w-full justify-center",children:t?U.jsxs(U.Fragment,{children:[U.jsx(BN,{className:"w-5 h-5 animate-spin"}),"Generating..."]}):U.jsxs(U.Fragment,{children:["Generate My Challenge",U.jsx(l3,{className:"w-5 h-5"})]})})]}),U.jsx("p",{className:"text-xs text-muted-foreground mt-4",children:"By continuing, you agree to re
168ceive emails from FitBudd. Unsubscribe anytime."})]})},iE="modulepreload",oE=function(e){return"/"+e},Dv={},j1=function(t,n,r){let i=Promise.resolve();if(n&&n.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(n.map(l=>{if(l=oE(l),l in Dv)return;Dv[l]=!0;const c=l.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":iE,c||(m.as="script"),m.crossOrigin="",m.href=l,s&&m.setAttribute("nonce",s),document.head.appendChild(m),c)return new Promise((g,d)=>{m.addEventListener("load",g),m.addEventListener("error",()=>d(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 Bt(e){"@babel/helpers - typeof";return Bt=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},Bt(e)}var Hi=Uint8Array,Jr=Uint16Array,Gm=Int32Array,Ym=new Hi([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]),Km=new Hi([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]),Bv=new Hi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f4=function(e,t){for(var n=new Jr(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Gm(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},d4=f4(Ym,2),aE=d4.b,w2=d4.r;aE[28]=258,w2[258]=28;var sE=f4(Km,0),zv=sE.r,b2=new Jr(32768);for(var tn=0;tn<32768;++tn){var ga=(tn&43690)>>1|(tn&21845)<<1;ga=(ga&52428)>>2|(ga&13107)<<2,ga=(ga&61680)>>4|(ga&3855)<<4,b2[tn]=((ga&65280)>>8|(ga&255)<<8)>>1}var Cc=function(e,t,n){for(var r=e.length,i=0,o=new Jr(t);i<r;++i)e[i]&&++o[e[i]-1];var a=new Jr(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var s;if(n){s=new Jr(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],h=t-e[i],m=a[e[i]-1]++<<h,g=m|(1<<h)-1;m<=g;++m)s[b2[m]>>l]=c}else for(s=new Jr(r),i=0;i<r;++i)e[i]&&(s[i]=b2[a[e[i]-1]++]>>15-e[i]);return s},Vs=new Hi(288);for(var tn=0;tn<144;++tn)Vs[tn]=8;for(var tn=144;tn<256;++tn)Vs[tn]=9;for(var tn=256;tn<280;++tn)Vs[tn]=7;for(var tn=280;tn<288;++tn)Vs[tn]=8;var jh=new Hi(32);for(var tn=0;tn<32;++tn)jh[tn]=5;var lE=Cc(Vs,9,0),uE=Cc(jh,5,0),h4=function(e){return(e+7)/8|0},cE=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Hi(e.subarray(t,n))},Oo=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},cc=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},F1=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:m4,l:0};if(i==1){var a=new Hi(n[0].s+1);return a[n[0].s]=1,{t:a,l:1}}n.sort(function(M,K){return M.f-K.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,h=1,m=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};h!=i-1;)s=n[n[c].f<n[m].f?c++:m++],l=n[c!=h&&n[c].f<n[m].f?c++:m++],n[h++]={s:-1,f:s.f+l.f,l:s,r:l};for(var g=o[0].s,r=1;r<i;++r)o[r].s>g&&(g=o[r].s);var d=new Jr(g+1),S=x2(n[h-1],d,0);if(S>t){var r=0,w=0,_=S-t,y=1<<_;for(o.sort(function(K,Y){return d[Y.s]-d[K.s]||K.f-Y.f});r<i;++r){var x=o[r].s;if(d[x]>t)w+=y-(1<<S-d[x]),d[x]=t;else break}for(w>>=_;w>0;){var N=o[r].s;d[N]<t?w-=1<<t-d[N]++-1:++r}for(;r>=0&&w;--r){var A=o[r].s;d[A]==t&&(--d[A],++w)}S=t}return{t:new Hi(d),l:S}},x2=function(e,t,n){return e.s==-1?Math.max(x2(e.l,t,n+1),x2(e.r,t,n+1)):t[e.s]=n},Uv=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Jr(++t),r=0,i=e[0],o=1,a=function(l){n[r++]=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:n.subarray(0,r),n:t}},fc=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},p4=function(e,t,n){var r=n.length,i=h4(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},qv=function(e,t,n,r,i,o,a,s,l,c,h){Oo(t,h++,n),++i[256];for(var m=F1(i,15),g=m.t,d=m.l,S=F1(o,15),w=S.t,_=S.l,y=Uv(g),x=y.c,N=y.n,A=Uv(w),M=A.c,K=A.n,Y=new Jr(19),H=0;H<x.length;++H)++Y[x[H]&31];for(var H=0;H<M.length;++H)++Y[M[H]&31];for(var I=F1(Y,7),Z=I.t,P=I.l,R=19;R>4&&!Z[Bv[R-1]];--R);var G=c+5<<3,B=fc(i,Vs)+fc(o,jh)+a,ae=fc(i,g)+fc(o,w)+a+14+3*R+fc(Y,Z)+2*Y[16]+3*Y[17]+7*Y[18];if(l>=0&&G<=B&&G<=ae)return p4(t,h,e.subarray(l,l+c));var se,ue,V,Q;
vendor: 10,893 bytes, lines 168-169
168if(Oo(t,h,1+(ae<B)),h+=2,ae<B){se=Cc(g,d,0),ue=g,V=Cc(w,_,0),Q=w;var de=Cc(Z,P,0);Oo(t,h,N-257),Oo(t,h+5,K-1),Oo(t,h+10,R-4),h+=14;for(var H=0;H<R;++H)Oo(t,h+3*H,Z[Bv[H]]);h+=3*R;for(var he=[x,M],E=0;E<2;++E)for(var F=he[E],H=0;H<F.length;++H){var W=F[H]&31;Oo(t,h,de[W]),h+=Z[W],W>15&&(Oo(t,h,F[H]>>5&127),h+=F[H]>>12)}}else se=lE,ue=Vs,V=uE,Q=jh;for(var H=0;H<s;++H){var J=r[H];if(J>255){var W=J>>18&31;cc(t,h,se[W+257]),h+=ue[W+257],W>7&&(Oo(t,h,J>>23&31),h+=Ym[W]);var ne=J&31;cc(t,h,V[ne]),h+=Q[ne],ne>3&&(cc(t,h,J>>5&8191),h+=Km[ne])}else cc(t,h,se[J]),h+=ue[J]}return cc(t,h,se[256]),h+ue[256]},fE=new Gm([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),m4=new Hi(0),dE=function(e,t,n,r,i,o){var a=o.z||e.length,s=new Hi(r+a+5*(1+Math.ceil(a/7e3))+i),l=s.subarray(r,s.length-i),c=o.l,h=(o.r||0)&7;if(t){h&&(l[0]=o.r>>3);for(var m=fE[t-1],g=m>>13,d=m&8191,S=(1<<n)-1,w=o.p||new Jr(32768),_=o.h||new Jr(S+1),y=Math.ceil(n/3),x=2*y,N=function(He){return(e[He]^e[He+1]<<y^e[He+2]<<x)&S},A=new Gm(25e3),M=new Jr(288),K=new Jr(32),Y=0,H=0,I=o.i||0,Z=0,P=o.w||0,R=0;I+2<a;++I){var G=N(I),B=I&32767,ae=_[G];if(w[B]=ae,_[G]=B,P<=I){var se=a-I;if((Y>7e3||Z>24576)&&(se>423||!c)){h=qv(e,l,0,A,M,K,H,Z,R,I-R,h),Z=Y=H=0,R=I;for(var ue=0;ue<286;++ue)M[ue]=0;for(var ue=0;ue<30;++ue)K[ue]=0}var V=2,Q=0,de=d,he=B-ae&32767;if(se>2&&G==N(I-he))for(var E=Math.min(g,se)-1,F=Math.min(32767,I),W=Math.min(258,se);he<=F&&--de&&B!=ae;){if(e[I+V]==e[I+V-he]){for(var J=0;J<W&&e[I+J]==e[I+J-he];++J);if(J>V){if(V=J,Q=he,J>E)break;for(var ne=Math.min(he,J-2),re=0,ue=0;ue<ne;++ue){var pe=I-he+ue&32767,me=w[pe],ye=pe-me&32767;ye>re&&(re=ye,ae=pe)}}}B=ae,ae=w[B],he+=B-ae&32767}if(Q){A[Z++]=268435456|w2[V]<<18|zv[Q];var ke=w2[V]&31,Re=zv[Q]&31;H+=Ym[ke]+Km[Re],++M[257+ke],++K[Re],P=I+V,++Y}else A[Z++]=e[I],++M[e[I]]}}for(I=Math.max(I,P);I<a;++I)A[Z++]=e[I],++M[e[I]];h=qv(e,l,c,A,M,K,H,Z,R,I-R,h),c||(o.r=h&7|l[h/8|0]<<3,h-=7,o.h=_,o.p=w,o.i=I,o.w=P)}else{for(var I=o.w||0;I<a+c;I+=65535){var Ce=I+65535;Ce>=a&&(l[h/8|0]=c,Ce=a),h=p4(l,h+1,e.subarray(I,Ce))}o.i=a}return cE(s,0,r+h4(h)+i)},g4=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length|0,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=n[a];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},hE=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),a=new Hi(o.length+e.length);a.set(o),a.set(e,o.length),e=a,i.w=o.length}return dE(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,n,r,i)},v4=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},pE=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=g4();i.p(t.dictionary),v4(e,2,i.d())}};function _2(e,t){t||(t={});var n=g4();n.p(e);var r=hE(e,t,t.dictionary?6:2,4);return pE(r,t),v4(r,r.length-4,n.d()),r}var mE=typeof TextDecoder<"u"&&new TextDecoder,gE=0;try{mE.decode(m4,{stream:!0}),gE=1}catch{}function vE(e){if(Array.isArray(e))return e}function yE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){c=!0,i=h}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function $v(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wE(e,t){if(e){if(typeof e=="string")return $v(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$v(e,t):void 0}}function bE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
169In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hv(e,t){return vE(e)||yE(e,t)||wE(e,t)||bE()}function Wv(e,t="utf8"){return new TextDecoder(t).decode(e)}const xE=new TextEncoder;function _E(e){return xE.encode(e)}const SE=1024*8,NE=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),M1={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Zm{constructor(t=SE,n={}){Dt(this,"buffer");Dt(this,"byteLength");Dt(this,"byteOffset");Dt(this,"length");Dt(this,"offset");Dt(this,"lastWrittenByte");Dt(this,"littleEndian");Dt(this,"_data");Dt(this,"_mark");Dt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,o=t.byteLength-i;let a=i;(ArrayBuffer.isView(t)||t instanceof Zm)&&(t.byteLength!==t.buffer.byteLength&&(a=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=t,this.length=o,this.byteLength=o,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,o),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=M1[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,o=this.buffer.slice(i,i+r);if(this.littleEndian===NE&&n!=="uint8"&&n!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+r));s.reverse();const l=new M1[n](s.buffer);return this.offset+=r,l.reverse(),l}const a=new M1[n](o);return this.offset+=r,a}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return Wv(this.readBytes(t))}decodeText(t=1,n="utf8"){return Wv(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(_E(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const kE=4,Vv=0,Gv=1,AE=2;function Eu(e){let t=e.length;for(;--t>=0;)e[t]=0}const LE=0,y4=1,EE=2,CE=3,PE=258,Xm=29,bf=256,tf=bf+1+Xm,Xl=30,Qm=19,w4=2*tf+1,Es=15,D1=16,TE=7,Jm=256,b4=16,x4=17,_4=18,S2=new Uint8Array([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]),Xd=new Uint8Array([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]),RE=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),S4=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),OE=512,Bo=new Array((tf+2)*2);Eu(Bo);const Pc=new Array(Xl*2);Eu(Pc);const nf=new Array(OE);Eu(nf);const rf=new Array(PE-CE+1);Eu(rf);const eg=new Array(Xm);Eu(eg);const Fh=new Array(Xl);Eu(Fh);function B1(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let N4,k4,A4;function z1(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const L4=e=>e<256?nf[e]:nf[256+(e>>>7)],of=(e,t)=>
vendor: 43,157 bytes, line 169
169{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ir=(e,t,n)=>{e.bi_valid>D1-n?(e.bi_buf|=t<<e.bi_valid&65535,of(e,e.bi_buf),e.bi_buf=t>>D1-e.bi_valid,e.bi_valid+=n-D1):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},co=(e,t,n)=>{Ir(e,n[t*2],n[t*2+1])},E4=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},IE=e=>{e.bi_valid===16?(of(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},jE=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,h,m,g,d,S,w=0;for(g=0;g<=Es;g++)e.bl_count[g]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<w4;c++)h=e.heap[c],g=n[n[h*2+1]*2+1]+1,g>l&&(g=l,w++),n[h*2+1]=g,!(h>r)&&(e.bl_count[g]++,d=0,h>=s&&(d=a[h-s]),S=n[h*2],e.opt_len+=S*(g+d),o&&(e.static_len+=S*(i[h*2+1]+d)));if(w!==0){do{for(g=l-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[l]--,w-=2}while(w>0);for(g=l;g!==0;g--)for(h=e.bl_count[g];h!==0;)m=e.heap[--c],!(m>r)&&(n[m*2+1]!==g&&(e.opt_len+=(g-n[m*2+1])*n[m*2],n[m*2+1]=g),h--)}},C4=(e,t,n)=>{const r=new Array(Es+1);let i=0,o,a;for(o=1;o<=Es;o++)i=i+n[o-1]<<1,r[o]=i;for(a=0;a<=t;a++){let s=e[a*2+1];s!==0&&(e[a*2]=E4(r[s]++,s))}},FE=()=>{let e,t,n,r,i;const o=new Array(Es+1);for(n=0,r=0;r<Xm-1;r++)for(eg[r]=n,e=0;e<1<<S2[r];e++)rf[n++]=r;for(rf[n-1]=r,i=0,r=0;r<16;r++)for(Fh[r]=i,e=0;e<1<<Xd[r];e++)nf[i++]=r;for(i>>=7;r<Xl;r++)for(Fh[r]=i<<7,e=0;e<1<<Xd[r]-7;e++)nf[256+i++]=r;for(t=0;t<=Es;t++)o[t]=0;for(e=0;e<=143;)Bo[e*2+1]=8,e++,o[8]++;for(;e<=255;)Bo[e*2+1]=9,e++,o[9]++;for(;e<=279;)Bo[e*2+1]=7,e++,o[7]++;for(;e<=287;)Bo[e*2+1]=8,e++,o[8]++;for(C4(Bo,tf+1,o),e=0;e<Xl;e++)Pc[e*2+1]=5,Pc[e*2]=E4(e,5);N4=new B1(Bo,S2,bf+1,tf,Es),k4=new B1(Pc,Xd,0,Xl,Es),A4=new B1(new Array(0),RE,0,Qm,TE)},P4=e=>{let t;for(t=0;t<tf;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Xl;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Qm;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Jm*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},T4=e=>{e.bi_valid>8?of(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Yv=(e,t,n,r)=>{const i=t*2,o=n*2;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},U1=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Yv(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Yv(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Kv=(e,t,n)=>{let r,i,o=0,a,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?co(e,i,t):(a=rf[i],co(e,a+bf+1,t),s=S2[a],s!==0&&(i-=eg[a],Ir(e,i,s)),r--,a=L4(r),co(e,a,n),s=Xd[a],s!==0&&(r-=Fh[a],Ir(e,r,s)));while(o<e.sym_next);co(e,Jm,t)},N2=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let a,s,l=-1,c;for(e.heap_len=0,e.heap_max=w4,a=0;a<o;a++)n[a*2]!==0?(e.heap[++e.heap_len]=l=a,e.depth[a]=0):n[a*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)U1(e,n,a);c=o;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],U1(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,n[c*2]=n[a*2]+n[s*2],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,n[a*2+1]=n[s*2+1]=c,e.heap[1]=c++,U1(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],jE(e,t),C4(n,l,e.bl_count)},Zv=(e,t,n)=>{let r,i=-1,o,a=t[0*2+1],s=0,l=7,c=4;for(a===0&&(l=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=a,a=t[(r+1)*2+1],!(++s<l&&o===a)&&(s<c?e.bl_tree[o*2]+=s:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[b4*2]++):s<=10?e.bl_tree[x4*2]++:e.bl_tree[_4*2]++,s=0,i=o,a===0?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4))},Xv=(e,t,n)=>{let r,i=-1,o,a=t[0*2+1],s=0,l=7,c=4;for(a===0&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[(r+1)*2+1],!(++s<l&&o===a)){if(s<c)do co(e,o,e.bl_tree);while(--s!==0);else o!==0?(o!==i&&(co(e,o,e.bl_tree),s--),co(e,b4,e.bl_tree),Ir(e,s-3,2)):s<=10?(co(e,x4,e.bl_tree),Ir(e,s-3,3)):(co(e,_4,e.bl_tree),Ir(e,s-11,7));s=0,i=o,a===0?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4)}},ME=e=>{let t;for(Zv(e,e.dyn_ltree,e.l_desc.max_code),Zv(e,e.dyn_dtree,e.d_desc.max_code),N2(e,e.bl_desc),t=Qm-1;t>=3&&e.bl_tree[S4[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},DE=(e,t,n,r)=>{let i;for(Ir(e,t-257,5),Ir(e,n-1,5),Ir(e,r-4,4),i=0;i<r;i++)Ir(e,e.bl_tree[S4[i]*2+1],3);Xv(e,e.dyn_ltree,t-1),Xv(e,e.dyn_dtree,n-1)},BE=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Vv;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Gv;for(n=32;n<bf;n++)if(e.dyn_ltree[n*2]!==0)return Gv;return Vv};let Qv=!1;const zE=e=>{Qv||(FE(),Qv=!0),e.l_desc=new z1(e.dyn_ltree,N4),e.d_desc=new z1(e.dyn_dtree,k4),e.bl_desc=new z1(e.bl_tree,A4),e.bi_buf=0,e.bi_valid=0,P4(e)},R4=(e,t,n,r)=>{Ir(e,(LE<<1)+(r?1:0),3),T4(e),of(e,n),of(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},UE=e=>{Ir(e,y4<<1,3),co(e,Jm,Bo),IE(e)},qE=(e,t,n,r)=>{let i,o,a=0;e.level>0?(e.strm.data_type===AE&&(e.strm.data_type=BE(e)),N2(e,e.l_desc),N2(e,e.d_desc),a=ME(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?R4(e,t,n,r):e.strategy===kE||o===i?(Ir(e,(y4<<1)+(r?1:0),3),Kv(e,Bo,Pc)):(Ir(e,(EE<<1)+(r?1:0),3),DE(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Kv(e,e.dyn_ltree,e.dyn_dtree)),P4(e),r&&T4(e)},$E=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(rf[n]+bf+1)*2]++,e.dyn_dtree[L4(t)*2]++),e.sym_next===e.sym_end);var HE=zE,WE=R4,VE=qE,GE=$E,YE=UE,KE={_tr_init:HE,_tr_stored_block:WE,_tr_flush_block:VE,_tr_tally:GE,_tr_align:YE};const ZE=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,a=0;for(;n!==0;){a=n>2e3?2e3:n,n-=a;do i=i+t[r++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};var af=ZE;const XE=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},QE=new Uint32Array(XE()),JE=(e,t,n,r)=>{const i=QE,o=r+n;e^=-1;for(let a=r;a<o;a++)e=e>>>8^i[(e^t[a])&255];return e^-1};var Un=JE,wu={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"},xf={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_MEM_ERROR:-4,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};const{_tr_init:eC,_tr_stored_block:k2,_tr_flush_block:tC,_tr_tally:qa,_tr_align:nC}=KE,{Z_NO_FLUSH:$a,Z_PARTIAL_FLUSH:rC,Z_FULL_FLUSH:iC,Z_FINISH:mi,Z_BLOCK:Jv,Z_OK:Qn,Z_STREAM_END:ey,Z_STREAM_ERROR:mo,Z_DATA_ERROR:oC,Z_BUF_ERROR:q1,Z_DEFAULT_COMPRESSION:aC,Z_FILTERED:sC,Z_HUFFMAN_ONLY:Ld,Z_RLE:lC,Z_FIXED:uC,Z_DEFAULT_STRATEGY:cC,Z_UNKNOWN:fC,Z_DEFLATED:gp}=xf,dC=9,hC=15,pC=8,mC=29,gC=256,A2=gC+1+mC,vC=30,yC=19,wC=2*A2+1,bC=15,kt=3,Ra=258,go=Ra+kt+1,xC=32,bu=42,tg=57,L2=69,E2=73,C2=91,P2=103,Cs=113,vc=666,Nr=1,Cu=2,Gs=3,Pu=4,_C=3,Ps=(e,t)=>(e.msg=wu[t],t),ty=e=>e*2-(e>4?9:0),Sa=e=>{let t=e.length;for(;--t>=0;)e[t]=0},SC=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let NC=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Ha=NC;const Kr=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},ei=(e,t)=>{tC(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Kr(e.strm)},jt=(e,t)=>{e.pending_buf[e.pending++]=t},dc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},T2=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=af(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Un(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},O4=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,a=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-go?e.strstart-(e.w_size-go):0,c=e.window,h=e.w_mask,m=e.prev,g=e.strstart+Ra;let d=c[r+a-1],S=c[r+a];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(c[i+a]!==S||c[i+a-1]!==d||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<g);if(o=Ra-(g-r),r=g-Ra,o>a){if(e.match_start=t,a=o,o>=s)break;d=c[r+a-1],S=c[r+a]}}while((t=m[t&h])>l&&--n!==0);return a<=e.lookahead?a:e.lookahead},xu=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-go)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),SC(e),r+=t),e.strm.avail_in===0)break;if(n=T2(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=kt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ha(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ha(e,e.ins_h,e.window[i+kt-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<kt)););}while(e.lookahead<go&&e.strm.avail_in!==0)},I4=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,a=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r<n&&(r===0&&t!==mi||t===$a||r!==i+e.strm.avail_in)))break;a=t===mi&&r===i+e.strm.avail_in?1:0,k2(e,0,0,a),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Kr(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(T2(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(a===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?Pu:t!==$a&&t!==mi&&e.strm.avail_in===0&&e.strstart===e.block_start?Cu:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(T2(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===mi)&&t!==$a&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,a=t===mi&&e.strm.avail_in===0&&r===i?1:0,k2(e,e.block_start,r,a),e.block_start+=r,Kr(e.strm)),a?Gs:Nr)},$1=(e,t)=>{let n,r;for(;;){if(e.lookahead<go){if(xu(e),e.lookahead<go&&t===$a)return Nr;if(e.lookahead===0)break}if(n=0,e.lookahead>=kt&&(e.ins_h=Ha(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-go&&(e.match_length=O4(e,n)),e.match_length>=kt)if(r=qa(e,e.strstart-e.match_start,e.match_length-kt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=kt){e.match_length--;do e.strstart++,e.ins_h=Ha(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ha(e,e.ins_h,e.window[e.strstart+1]);else r=qa(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ei(e,!1),e.strm.avail_out===0))return Nr}return e.insert=e.strstart<kt-1?e.strstart:kt-1,t===mi?(ei(e,!0),e.strm.avail_out===0?Gs:Pu):e.sym_next&&(ei(e,!1),e.strm.avail_out===0)?Nr:Cu},Sl=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<go){if(xu(e),e.lookahead<go&&t===$a)return Nr;if(e.lookahead===0)break}if(n=0,e.lookahead>=kt&&(e.ins_h=Ha(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=kt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-go&&(e.match_length=O4(e,n),e.match_length<=5&&(e.strategy===sC||e.match_length===kt&&e.strstart-e.match_start>4096)&&(e.match_length=kt-1)),e.prev_length>=kt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-kt,r=qa(e,e.strstart-1-e.prev_match,e.prev_length-kt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ha(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=kt-1,e.strstart++,r&&(ei(e,!1),e.strm.avail_out===0))return Nr}else if(e.match_available){if(r=qa(e,0,e.window[e.strstart-1]),r&&ei(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Nr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=qa(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<kt-1?e.strstart:kt-1,t===mi?(ei(e,!0),e.strm.avail_out===0?Gs:Pu):e.sym_next&&(ei(e,!1),e.strm.avail_out===0)?Nr:Cu},kC=(e,t)=>{let n,r,i,o;const a=e.window;for(;;){if(e.lookahead<=Ra){if(xu(e),e.lookahead<=Ra&&t===$a)return Nr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=kt&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+Ra;do;while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=Ra-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=kt?(n=qa(e,1,e.match_length-kt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=qa(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ei(e,!1),e.strm.avail_out===0))return Nr}return e.insert=0,t===mi?(ei(e,!0),e.strm.avail_out===0?Gs:Pu):e.sym_next&&(ei(e,!1),e.strm.avail_out===0)?Nr:Cu},AC=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(xu(e),e.lookahead===0)){if(t===$a)return Nr;break}if(e.match_length=0,n=qa(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ei(e,!1),e.strm.avail_out===0))return Nr}return e.insert=0,t===mi?(ei(e,!0),e.strm.avail_out===0?Gs:Pu):e.sym_next&&(ei(e,!1),e.strm.avail_out===0)?Nr:Cu};function ro(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const yc=[new ro(0,0,0,0,I4),new ro(4,4,8,4,$1),new ro(4,5,16,8,$1),new ro(4,6,32,32,$1),new ro(4,4,16,16,Sl),new ro(8,16,32,32,Sl),new ro(8,16,128,128,Sl),new ro(8,32,128,256,Sl),new ro(32,128,258,1024,Sl),new ro(32,258,258,4096,Sl)],LC=e=>{e.window_size=2*e.w_size,Sa(e.head),e.max_lazy_match=yc[e.level].max_lazy,e.good_match=yc[e.level].good_length,e.nice_match=yc[e.level].nice_length,e.max_chain_length=yc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=kt-1,e.match_available=0,e.ins_h=0};function EC(){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=gp,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 Uint16Array(wC*2),this.dyn_dtree=new Uint16Array((2*vC+1)*2),this.bl_tree=new Uint16Array((2*yC+1)*2),Sa(this.dyn_ltree),Sa(this.dyn_dtree),Sa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(bC+1),this.heap=new Uint16Array(2*A2+1),Sa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*A2+1),Sa(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const _f=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==bu&&t.status!==tg&&t.status!==L2&&t.status!==E2&&t.status!==C2&&t.status!==P2&&t.status!==Cs&&t.status!==vc?1:0},j4=e=>{if(_f(e))return Ps(e,mo);e.total_in=e.total_out=0,e.data_type=fC;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?tg:t.wrap?bu:Cs,e.adler=t.wrap===2?0:1,t.last_flush=-2,eC(t),Qn},F4=e=>{const t=j4(e);return t===Qn&&LC(e.state),t},CC=(e,t)=>_f(e)||e.state.wrap!==2?mo:(e.state.gzhead=t,Qn),M4=(e,t,n,r,i,o)=>{if(!e)return mo;let a=1;if(t===aC&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>dC||n!==gp||r<8||r>15||t<0||t>9||o<0||o>uC||r===8&&a!==1)return Ps(e,mo);r===8&&(r=9);const s=new EC;return e.state=s,s.strm=e,s.status=bu,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+kt-1)/kt),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=o,s.method=n,F4(e)},PC=(e,t)=>M4(e,t,gp,hC,pC,cC),TC=(e,t)=>{if(_f(e)||t>Jv||t<0)return e?Ps(e,mo):mo;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===vc&&t!==mi)return Ps(e,e.avail_out===0?q1:mo);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Kr(e),e.avail_out===0)return n.last_flush=-1,Qn}else if(e.avail_in===0&&ty(t)<=ty(r)&&t!==mi)return Ps(e,q1);if(n.status===vc&&e.avail_in!==0)return Ps(e,q1);if(n.status===bu&&n.wrap===0&&(n.status=Cs),n.status===bu){let i=gp+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=Ld||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=xC),i+=31-i%31,dc(n,i),n.strstart!==0&&(dc(n,e.adler>>>16),dc(n,e.adler&65535)),e.adler=1,n.status=Cs,Kr(e),n.pending!==0)return n.last_flush=-1,Qn}if(n.status===tg){if(e.adler=0,jt(n,31),jt(n,139),jt(n,8),n.gzhead)jt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),jt(n,n.gzhead.time&255),jt(n,n.gzhead.time>>8&255),jt(n,n.gzhead.time>>16&255),jt(n,n.gzhead.time>>24&255),jt(n,n.level===9?2:n.strategy>=Ld||n.level<2?4:0),jt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(jt(n,n.gzhead.extra.length&255),jt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Un(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=L2;else if(jt(n,0),jt(n,0),jt(n,0),jt(n,0),jt(n,0),jt(n,n.level===9?2:n.strategy>=Ld||n.level<2?4:0),jt(n,_C),n.status=Cs,Kr(e),n.pending!==0)return n.last_flush=-1,Qn}if(n.status===L2){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Un(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=s,Kr(e),n.pending!==0)return n.last_flush=-1,Qn;i=0,o-=s}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=Un(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=E2}if(n.status===E2){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Un(e.adler,n.pending_buf,n.pending-i,i)),Kr(e),n.pending!==0)return n.last_flush=-1,Qn;i=0}n.gzindex<n.gzhead.name.length?o=n.gzhead.name.charCodeAt(n.gzindex++)&255:o=0,jt(n,o)}while(o!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Un(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=C2}if(n.status===C2){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Un(e.adler,n.pending_buf,n.pending-i,i)),Kr(e),n.pending!==0)return n.last_flush=-1,Qn;i=0}n.gzindex<n.gzhead.comment.length?o=n.gzhead.comment.charCodeAt(n.gzindex++)&255:o=0,jt(n,o)}while(o!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Un(e.adler,n.pending_buf,n.pending-i,i))}n.status=P2}if(n.status===P2){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Kr(e),n.pending!==0))return n.last_flush=-1,Qn;jt(n,e.adler&255),jt(n,e.adler>>8&255),e.adler=0}if(n.status=Cs,Kr(e),n.pending!==0)return n.last_flush=-1,Qn}if(e.avail_in!==0||n.lookahead!==0||t!==$a&&n.status!==vc){let i=n.level===0?I4(n,t):n.strategy===Ld?AC(n,t):n.strategy===lC?kC(n,t):yc[n.level].func(n,t);if((i===Gs||i===Pu)&&(n.status=vc),i===Nr||i===Gs)return e.avail_out===0&&(n.last_flush=-1),Qn;if(i===Cu&&(t===rC?nC(n):t!==Jv&&(k2(n,0,0,!1),t===iC&&(Sa(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Kr(e),e.avail_out===0))return n.last_flush=-1,Qn}return t!==mi?Qn:n.wrap<=0?ey:(n.wrap===2?(jt(n,e.adler&255),jt(n,e.adler>>8&255),jt(n,e.adler>>16&255),jt(n,e.adler>>24&255),jt(n,e.total_in&255),jt(n,e.total_in>>8&255),jt(n,e.total_in>>16&255),jt(n,e.total_in>>24&255)):(dc(n,e.adler>>>16),dc(n,e.adler&65535)),Kr(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Qn:ey)},RC=e=>{if(_f(e))return mo;const t=e.state.status;return e.state=null,t===Cs?Ps(e,oC):Qn},OC=(e,t)=>{let n=t.length;if(_f(e))return mo;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==bu||r.lookahead)return mo;if(i===1&&(e.adler=af(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Sa(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,xu(r);r.lookahead>=kt;){let l=r.strstart,c=r.lookahead-(kt-1);do r.ins_h=Ha(r,r.ins_h,r.window[l+kt-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=kt-1,xu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=kt-1,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,Qn};var IC=PC,jC=M4,FC=F4,MC=j4,DC=CC,BC=TC,zC=RC,UC=OC,qC="pako deflate (from Nodeca project)",Tc={deflateInit:IC,deflateInit2:jC,deflateReset:FC,deflateResetKeep:MC,deflateSetHeader:DC,deflate:BC,deflateEnd:zC,deflateSetDictionary:UC,deflateInfo:qC};const $C=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var HC=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)$C(n,r)&&(e[r]=n[r])}}return e},WC=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,o=e.length;r<o;r++){let a=e[r];n.set(a,i),i+=a.length}return n},vp={assign:HC,flattenChunks:WC};let D4=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{D4=!1}const sf=new Uint8Array(256);for(let e=0;e<256;e++)sf[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;sf[254]=sf[254]=1;var VC=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<a&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<a&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const GC=(e,t)=>{if(t<65534&&e.subarray&&D4)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var YC=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const o=new Array(n*2);for(i=0,r=0;r<n;){let a=e[r++];if(a<128){o[i++]=a;continue}let s=sf[a];if(s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return GC(o,i)},KC=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+sf[e[n]]>t?n:t},lf={string2buf:VC,buf2string:YC,utf8border:KC};function ZC(){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}var B4=ZC;const z4=Object.prototype.toString,{Z_NO_FLUSH:XC,Z_SYNC_FLUSH:QC,Z_FULL_FLUSH:JC,Z_FINISH:eP,Z_OK:Mh,Z_STREAM_END:tP,Z_DEFAULT_COMPRESSION:nP,Z_DEFAULT_STRATEGY:rP,Z_DEFLATED:iP}=xf;function ng(e){this.options=vp.assign({level:nP,method:iP,chunkSize:16384,windowBits:15,memLevel:8,strategy:rP},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new B4,this.strm.avail_out=0;let n=Tc.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Mh)throw new Error(wu[n]);if(t.header&&Tc.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=lf.string2buf(t.dictionary):z4.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Tc.deflateSetDictionary(this.strm,r),n!==Mh)throw new Error(wu[n]);this._dict_set=!0}}ng.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?eP:XC,typeof e=="string"?n.input=lf.string2buf(e):z4.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===QC||o===JC)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Tc.deflate(n,o),i===tP)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Tc.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Mh;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};ng.prototype.onData=function(e){this.chunks.push(e)};ng.prototype.onEnd=function(e){e===Mh&&(this.result=vp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Ed=16209,oP=16191;var aP=function(t,n){let r,i,o,a,s,l,c,h,m,g,d,S,w,_,y,x,N,A,M,K,Y,H,I,Z;const P=t.state;r=t.next_in,I=t.input,i=r+(t.avail_in-5),o=t.next_out,Z=t.output,a=o-(n-t.avail_out),s=o+(t.avail_out-257),l=P.dmax,c=P.wsize,h=P.whave,m=P.wnext,g=P.window,d=P.hold,S=P.bits,w=P.lencode,_=P.distcode,y=(1<<P.lenbits)-1,x=(1<<P.distbits)-1;e:do{S<15&&(d+=I[r++]<<S,S+=8,d+=I[r++]<<S,S+=8),N=w[d&y];t:for(;;){if(A=N>>>24,d>>>=A,S-=A,A=N>>>16&255,A===0)Z[o++]=N&65535;else if(A&16){M=N&65535,A&=15,A&&(S<A&&(d+=I[r++]<<S,S+=8),M+=d&(1<<A)-1,d>>>=A,S-=A),S<15&&(d+=I[r++]<<S,S+=8,d+=I[r++]<<S,S+=8),N=_[d&x];n:for(;;){if(A=N>>>24,d>>>=A,S-=A,A=N>>>16&255,A&16){if(K=N&65535,A&=15,S<A&&(d+=I[r++]<<S,S+=8,S<A&&(d+=I[r++]<<S,S+=8)),K+=d&(1<<A)-1,K>l){t.msg="invalid distance too far back",P.mode=Ed;break e}if(d>>>=A,S-=A,A=o-a,K>A){if(A=K-A,A>h&&P.sane){t.msg="invalid distance too far back",P.mode=Ed;break e}if(Y=0,H=g,m===0){if(Y+=c-A,A<M){M-=A;do Z[o++]=g[Y++];while(--A);Y=o-K,H=Z}}else if(m<A){if(Y+=c+m-A,A-=m,A<M){M-=A;do Z[o++]=g[Y++];while(--A);if(Y=0,m<M){A=m,M-=A;do Z[o++]=g[Y++];while(--A);Y=o-K,H=Z}}}else if(Y+=m-A,A<M){M-=A;do Z[o++]=g[Y++];while(--A);Y=o-K,H=Z}for(;M>2;)Z[o++]=H[Y++],Z[o++]=H[Y++],Z[o++]=H[Y++],M-=3;M&&(Z[o++]=H[Y++],M>1&&(Z[o++]=H[Y++]))}else{Y=o-K;do Z[o++]=Z[Y++],Z[o++]=Z[Y++],Z[o++]=Z[Y++],M-=3;while(M>2);M&&(Z[o++]=Z[Y++],M>1&&(Z[o++]=Z[Y++]))}}else if(A&64){t.msg="invalid distance code",P.mode=Ed;break e}else{N=_[(N&65535)+(d&(1<<A)-1)];continue n}break}}else if(A&64)if(A&32){P.mode=oP;break e}else{t.msg="invalid literal/length code",P.mode=Ed;break e}else{N=w[(N&65535)+(d&(1<<A)-1)];continue t}break}}while(r<i&&o<s);M=S>>3,r-=M,S-=M<<3,d&=(1<<S)-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=o<s?257+(s-o):257-(o-s),P.hold=d,P.bits=S};const Nl=15,ny=852,ry=592,iy=0,H1=1,oy=2,sP=new Uint16Array([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]),lP=new Uint8Array([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]),uP=new Uint16Array([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]),cP=new Uint8Array([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]),fP=(e,t,n,r,i,o,a,s)=>{const l=s.bits;let c=0,h=0,m=0,g=0,d=0,S=0,w=0,_=0,y=0,x=0,N,A,M,K,Y,H=null,I;const Z=new Uint16Array(Nl+1),P=new Uint16Array(Nl+1);let R=null,G,B,ae;for(c=0;c<=Nl;c++)Z[c]=0;for(h=0;h<r;h++)Z[t[n+h]]++;for(d=l,g=Nl;g>=1&&Z[g]===0;g--);if(d>g&&(d=g),g===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(m=1;m<g&&Z[m]===0;m++);for(d<m&&(d=m),_=1,c=1;c<=Nl;c++)if(_<<=1,_-=Z[c],_<0)return-1;if(_>0&&(e===iy||g!==1))return-1;for(P[1]=0,c=1;c<Nl;c++)P[c+1]=P[c]+Z[c];for(h=0;h<r;h++)t[n+h]!==0&&(a[P[t[n+h]]++]=h);if(e===iy?(H=R=a,I=20):e===H1?(H=sP,R=lP,I=257):(H=uP,R=cP,I=0),x=0,h=0,c=m,Y=o,S=d,w=0,M=-1,y=1<<d,K=y-1,e===H1&&y>ny||e===oy&&y>ry)return 1;for(;;){G=c-w,a[h]+1<I?(B=0,ae=a[h]):a[h]>=I?(B=R[a[h]-I],ae=H[a[h]-I]):(B=96,ae=0),N=1<<c-w,A=1<<S,m=A;do A-=N,i[Y+(x>>w)+A]=G<<24|B<<16|ae|0;while(A!==0);for(N=1<<c-1;x&N;)N>>=1;if(N!==0?(x&=N-1,x+=N):x=0,h++,--Z[c]===0){if(c===g)break;c=t[n+a[h]]}if(c>d&&(x&K)!==M){for(w===0&&(w=d),Y+=m,S=c-w,_=1<<S;S+w<g&&(_-=Z[S+w],!(_<=0));)S++,_<<=1;if(y+=1<<S,e===H1&&y>ny||e===oy&&y>ry)return 1;M=x&K,i[M]=d<<24|S<<16|Y-o|0}}return x!==0&&(i[Y+x]=c-w<<24|64<<16|0),s.bits=d,0};var Rc=fP;const dP=0,U4=1,q4=2,{Z_FINISH:ay,Z_BLOCK:hP,Z_TREES:Cd,Z_OK:Ys,Z_STREAM_END:pP,Z_NEED_DICT:mP,Z_STREAM_ERROR:bi,Z_DATA_ERROR:$4,Z_MEM_ERROR:H4,Z_BUF_ERROR:gP,Z_DEFLATED:sy}=xf,yp=16180,ly=16181,uy=16182,cy=16183,fy=16184,dy=16185,hy=16186,py=16187,my=16188,gy=16189,Dh=16190,Io=16191,W1=16192,vy=16193,V1=16194,yy=16195,wy=16196,by=16197,xy=16198,Pd=16199,Td=16200,_y=16201,Sy=16202,Ny=16203,ky=16204,Ay=16205,G1=16206,Ly=16207,Ey=16208,an=16209,W4=16210,V4=16211,vP=852,yP=592,wP=15,bP=wP,Cy=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function xP(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Qs=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<yp||t.mode>V4?1:0},G4=e=>{if(Qs(e))return bi;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=yp,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(vP),t.distcode=t.distdyn=new Int32Array(yP),t.sane=1,t.back=-1,Ys},Y4=e=>{if(Qs(e))return bi;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,G4(e)},K4=(e,t)=>{let n;if(Qs(e))return bi;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?bi:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Y4(e))},Z4=(e,t)=>{if(!e)return bi;const n=new xP;e.state=n,n.strm=e,n.window=null,n.mode=yp;const r=K4(e,t);return r!==Ys&&(e.state=null),r},_P=e=>Z4(e,bP);let Py=!0,Y1,K1;const SP=e=>{if(Py){Y1=new Int32Array(512),K1=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Rc(U4,e.lens,0,288,Y1,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Rc(q4,e.lens,0,32,K1,0,e.work,{bits:5}),Py=!1}e.lencode=Y1,e.lenbits=9,e.distcode=K1,e.distbits=5},X4=(e,t,n,r)=>{let i;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},NP=(e,t)=>{let n,r,i,o,a,s,l,c,h,m,g,d,S,w,_=0,y,x,N,A,M,K,Y,H;const I=new Uint8Array(4);let Z,P;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Qs(e)||!e.output||!e.input&&e.avail_in!==0)return bi;n=e.state,n.mode===Io&&(n.mode=W1),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,h=n.bits,m=s,g=l,H=Ys;e:for(;;)switch(n.mode){case yp:if(n.wrap===0){n.mode=W1;break}for(;h<16;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,I[0]=c&255,I[1]=c>>>8&255,n.check=Un(n.check,I,2,0),c=0,h=0,n.mode=ly;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=an;break}if((c&15)!==sy){e.msg="unknown compression method",n.mode=an;break}if(c>>>=4,h-=4,Y=(c&15)+8,n.wbits===0&&(n.wbits=Y),Y>15||Y>n.wbits){e.msg="invalid window size",n.mode=an;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?gy:Io,c=0,h=0;break;case ly:for(;h<16;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(n.flags=c,(n.flags&255)!==sy){e.msg="unknown compression method",n.mode=an;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=an;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(I[0]=c&255,I[1]=c>>>8&255,n.check=Un(n.check,I,2,0)),c=0,h=0,n.mode=uy;case uy:for(;h<32;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(I[0]=c&255,I[1]=c>>>8&255,I[2]=c>>>16&255,I[3]=c>>>24&255,n.check=Un(n.check,I,4,0)),c=0,h=0,n.mode=cy;case cy:for(;h<16;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(I[0]=c&255,I[1]=c>>>8&255,n.check=Un(n.check,I,2,0)),c=0,h=0,n.mode=fy;case fy:if(n.flags&1024){for(;h<16;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(I[0]=c&255,I[1]=c>>>8&255,n.check=Un(n.check,I,2,0)),c=0,h=0}else n.head&&(n.head.extra=null);n.mode=dy;case dy:if(n.flags&1024&&(d=n.length,d>s&&(d=s),d&&(n.head&&(Y=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+d),Y)),n.flags&512&&n.wrap&4&&(n.check=Un(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=hy;case hy:if(n.flags&2048){if(s===0)break e;d=0;do Y=r[o+d++],n.head&&Y&&n.length<65536&&(n.head.name+=String.fromCharCode(Y));while(Y&&d<s);if(n.flags&512&&n.wrap&4&&(n.check=Un(n.check,r,d,o)),s-=d,o+=d,Y)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=py;case py:if(n.flags&4096){if(s===0)break e;d=0;do Y=r[o+d++],n.head&&Y&&n.length<65536&&(n.head.comment+=String.fromCharCode(Y));while(Y&&d<s);if(n.flags&512&&n.wrap&4&&(n.check=Un(n.check,r,d,o)),s-=d,o+=d,Y)break e}else n.head&&(n.head.comment=null);n.mode=my;case my:if(n.flags&512){for(;h<16;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=an;break}c=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Io;break;case gy:for(;h<32;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}e.adler=n.check=Cy(c),c=0,h=0,n.mode=Dh;case Dh:if(n.havedict===0)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=h,mP;e.adler=n.check=1,n.mode=Io;case Io:if(t===hP||t===Cd)break e;case W1:if(n.last){c>>>=h&7,h-=h&7,n.mode=G1;break}for(;h<3;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}switch(n.last=c&1,c>>>=1,h-=1,c&3){case 0:n.mode=vy;break;case 1:if(SP(n),n.mode=Pd,t===Cd){c>>>=2,h-=2;break e}break;case 2:n.mode=wy;break;case 3:e.msg="invalid block type",n.mode=an}c>>>=2,h-=2;break;case vy:for(c>>>=h&7,h-=h&7;h<32;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=an;break}if(n.length=c&65535,c=0,h=0,n.mode=V1,t===Cd)break e;case V1:n.mode=yy;case yy:if(d=n.length,d){if(d>s&&(d=s),d>l&&(d=l),d===0)break e;i.set(r.subarray(o,o+d),a),s-=d,o+=d,l-=d,a+=d,n.length-=d;break}n.mode=Io;break;case wy:for(;h<14;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(n.nlen=(c&31)+257,c>>>=5,h-=5,n.ndist=(c&31)+1,c>>>=5,h-=5,n.ncode=(c&15)+4,c>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=an;break}n.have=0,n.mode=by;case by:for(;n.have<n.ncode;){for(;h<3;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}n.lens[R[n.have++]]=c&7,c>>>=3,h-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Z={bits:n.lenbits},H=Rc(dP,n.lens,0,19,n.lencode,0,n.work,Z),n.lenbits=Z.bits,H){e.msg="invalid code lengths set",n.mode=an;break}n.have=0,n.mode=xy;case xy:for(;n.have<n.nlen+n.ndist;){for(;_=n.lencode[c&(1<<n.lenbits)-1],y=_>>>24,x=_>>>16&255,N=_&65535,!(y<=h);){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(N<16)c>>>=y,h-=y,n.lens[n.have++]=N;else{if(N===16){for(P=y+2;h<P;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(c>>>=y,h-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=an;break}Y=n.lens[n.have-1],d=3+(c&3),c>>>=2,h-=2}else if(N===17){for(P=y+3;h<P;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}c>>>=y,h-=y,Y=0,d=3+(c&7),c>>>=3,h-=3}else{for(P=y+7;h<P;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}c>>>=y,h-=y,Y=0,d=11+(c&127),c>>>=7,h-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=an;break}for(;d--;)n.lens[n.have++]=Y}}if(n.mode===an)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=an;break}if(n.lenbits=9,Z={bits:n.lenbits},H=Rc(U4,n.lens,0,n.nlen,n.lencode,0,n.work,Z),n.lenbits=Z.bits,H){e.msg="invalid literal/lengths set",n.mode=an;break}if(n.distbits=6,n.distcode=n.distdyn,Z={bits:n.distbits},H=Rc(q4,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Z),n.distbits=Z.bits,H){e.msg="invalid distances set",n.mode=an;break}if(n.mode=Pd,t===Cd)break e;case Pd:n.mode=Td;case Td:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=h,aP(e,g),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,h=n.bits,n.mode===Io&&(n.back=-1);break}for(n.back=0;_=n.lencode[c&(1<<n.lenbits)-1],y=_>>>24,x=_>>>16&255,N=_&65535,!(y<=h);){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(x&&!(x&240)){for(A=y,M=x,K=N;_=n.lencode[K+((c&(1<<A+M)-1)>>A)],y=_>>>24,x=_>>>16&255,N=_&65535,!(A+y<=h);){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}c>>>=A,h-=A,n.back+=A}if(c>>>=y,h-=y,n.back+=y,n.length=N,x===0){n.mode=Ay;break}if(x&32){n.back=-1,n.mode=Io;break}if(x&64){e.msg="invalid literal/length code",n.mode=an;break}n.extra=x&15,n.mode=_y;case _y:if(n.extra){for(P=n.extra;h<P;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Sy;case Sy:for(;_=n.distcode[c&(1<<n.distbits)-1],y=_>>>24,x=_>>>16&255,N=_&65535,!(y<=h);){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(!(x&240)){for(A=y,M=x,K=N;_=n.distcode[K+((c&(1<<A+M)-1)>>A)],y=_>>>24,x=_>>>16&255,N=_&65535,!(A+y<=h);){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}c>>>=A,h-=A,n.back+=A}if(c>>>=y,h-=y,n.back+=y,x&64){e.msg="invalid distance code",n.mode=an;break}n.offset=N,n.extra=x&15,n.mode=Ny;case Ny:if(n.extra){for(P=n.extra;h<P;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=an;break}n.mode=ky;case ky:if(l===0)break e;if(d=g-l,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=an;break}d>n.wnext?(d-=n.wnext,S=n.wsize-d):S=n.wnext-d,d>n.length&&(d=n.length),w=n.window}else w=i,S=a-n.offset,d=n.length;d>l&&(d=l),l-=d,n.length-=d;do i[a++]=w[S++];while(--d);n.length===0&&(n.mode=Td);break;case Ay:if(l===0)break e;i[a++]=n.length,l--,n.mode=Td;break;case G1:if(n.wrap){for(;h<32;){if(s===0)break e;s--,c|=r[o++]<<h,h+=8}if(g-=l,e.total_out+=g,n.total+=g,n.wrap&4&&g&&(e.adler=n.check=n.flags?Un(n.check,i,g,a-g):af(n.check,i,g,a-g)),g=l,n.wrap&4&&(n.flags?c:Cy(c))!==n.check){e.msg="incorrect data check",n.mode=an;break}c=0,h=0}n.mode=Ly;case Ly:if(n.wrap&&n.flags){for(;h<32;){if(s===0)break e;s--,c+=r[o++]<<h,h+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=an;break}c=0,h=0}n.mode=Ey;case Ey:H=pP;break e;case an:H=$4;break e;case W4:return H4;case V4:default:return bi}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=h,(n.wsize||g!==e.avail_out&&n.mode<an&&(n.mode<G1||t!==ay))&&X4(e,e.output,e.next_out,g-e.avail_out),m-=e.avail_in,g-=e.avail_out,e.total_in+=m,e.total_out+=g,n.total+=g,n.wrap&4&&g&&(e.adler=n.check=n.flags?Un(n.check,i,g,e.next_out-g):af(n.check,i,g,e.next_out-g)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Io?128:0)+(n.mode===Pd||n.mode===V1?256:0),(m===0&&g===0||t===ay)&&H===Ys&&(H=gP),H},kP=e=>{if(Qs(e))return bi;let t=e.state;return t.window&&(t.window=null),e.state=null,Ys},AP=(e,t)=>{if(Qs(e))return bi;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Ys):bi},LP=(e,t)=>
vendor: 11,914 bytes, line 169
169{const n=t.length;let r,i,o;return Qs(e)||(r=e.state,r.wrap!==0&&r.mode!==Dh)?bi:r.mode===Dh&&(i=1,i=af(i,t,n,0),i!==r.check)?$4:(o=X4(e,t,n,n),o?(r.mode=W4,H4):(r.havedict=1,Ys))};var EP=Y4,CP=K4,PP=G4,TP=_P,RP=Z4,OP=NP,IP=kP,jP=AP,FP=LP,MP="pako inflate (from Nodeca project)",zo={inflateReset:EP,inflateReset2:CP,inflateResetKeep:PP,inflateInit:TP,inflateInit2:RP,inflate:OP,inflateEnd:IP,inflateGetHeader:jP,inflateSetDictionary:FP,inflateInfo:MP};function DP(){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}var BP=DP;const Q4=Object.prototype.toString,{Z_NO_FLUSH:zP,Z_FINISH:UP,Z_OK:uf,Z_STREAM_END:Z1,Z_NEED_DICT:X1,Z_STREAM_ERROR:qP,Z_DATA_ERROR:Ty,Z_MEM_ERROR:$P}=xf;function Sf(e){this.options=vp.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new B4,this.strm.avail_out=0;let n=zo.inflateInit2(this.strm,t.windowBits);if(n!==uf)throw new Error(wu[n]);if(this.header=new BP,zo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=lf.string2buf(t.dictionary):Q4.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=zo.inflateSetDictionary(this.strm,t.dictionary),n!==uf)))throw new Error(wu[n])}Sf.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?UP:zP,Q4.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=zo.inflate(n,a),o===X1&&i&&(o=zo.inflateSetDictionary(n,i),o===uf?o=zo.inflate(n,a):o===Ty&&(o=X1));n.avail_in>0&&o===Z1&&n.state.wrap>0&&e[n.next_in]!==0;)zo.inflateReset(n),o=zo.inflate(n,a);switch(o){case qP:case Ty:case X1:case $P:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===Z1))if(this.options.to==="string"){let l=lf.utf8border(n.output,n.next_out),c=n.next_out-l,h=lf.buf2string(n.output,l);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(l,l+c),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===uf&&s===0)){if(o===Z1)return o=zo.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Sf.prototype.onData=function(e){this.chunks.push(e)};Sf.prototype.onEnd=function(e){e===uf&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=vp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rg(e,t){const n=new Sf(t);if(n.push(e),n.err)throw n.msg||wu[n.err];return n.result}function HP(e,t){return t=t||{},t.raw=!0,rg(e,t)}var WP=Sf,VP=rg,GP=HP,YP=rg,KP=xf,ZP={Inflate:WP,inflate:VP,inflateRaw:GP,ungzip:YP,constants:KP};const{Inflate:XP,inflate:QP,inflateRaw:NR,ungzip:kR}=ZP;var Ry=XP,JP=QP;const J4=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;J4[e]=t}const Oy=4294967295;function eT(e,t,n){let r=e;for(let i=0;i<n;i++)r=J4[(r^t[i])&255]^r>>>8;return r}function tT(e,t){return(eT(Oy,e,t)^Oy)>>>0}function Iy(e,t,n){const r=e.readUint32(),i=tT(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function e_(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function t_(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function n_(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function r_(e,t,n,r,i){let o=0;if(n.length===0){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+(t[o-i]>>1)&255}else{for(;o<i;o++)t[o]=e[o]+(n[o]>>1)&255;for(;o<r;o++)t[o]=e[o]+(t[o-i]+n[o]>>1)&255}}function i_(e,t,n,r,i){let o=0;if(n.length===0){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+t[o-i]&255}else{for(;o<i;o++)t[o]=e[o]+n[o]&255;for(;o<r;o++)t[o]=e[o]+nT(t[o-i],n[o],n[o-i])&255}}function nT(e,t,n){const r=e+t-n,i=Math.abs(r-e),o=Math.abs(r-t),a=Math.abs(r-n);return i<=o&&i<=a?e:o<=a?t:n}function rT(e,t,n,r,i,o){switch(e){case 0:e_(t,n,i);break;case 1:t_(t,n,i,o);break;case 2:n_(t,n,r,i);break;case 3:r_(t,n,r,i,o);break;case 4:i_(t,n,r,i,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const iT=new Uint16Array([255]),oT=new Uint8Array(iT.buffer),aT=oT[0]===255;function sT(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,a=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(o/8)*i,l=new Uint8Array(r*n*s);let c=0;for(let h=0;h<7;h++){const m=a[h],g=Math.ceil((n-m.x)/m.xStep),d=Math.ceil((r-m.y)/m.yStep);if(g<=0||d<=0)continue;const S=g*s,w=new Uint8Array(S);for(let _=0;_<d;_++){const y=t[c++],x=t.subarray(c,c+S);c+=S;const N=new Uint8Array(S);rT(y,x,N,w,S,s),w.set(N);for(let A=0;A<g;A++){const M=m.x+A*m.xStep,K=m.y+_*m.yStep;if(!(M>=n||K>=r))for(let Y=0;Y<s;Y++)l[(K*n+M)*s+Y]=N[A*s+Y]}}}if(o===16){const h=new Uint16Array(l.buffer);if(aT)for(let m=0;m<h.length;m++)h[m]=lT(h[m]);return h}else return l}function lT(e){return(e&255)<<8|e>>8&255}const uT=new Uint16Array([255]),cT=new Uint8Array(uT.buffer),fT=cT[0]===255,dT=new Uint8Array(0);function jy(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,a=Math.ceil(o/8)*i,s=Math.ceil(o/8*i*n),l=new Uint8Array(r*s);let c=dT,h=0,m,g;for(let d=0;d<r;d++){switch(m=t.subarray(h+1,h+1+s),g=l.subarray(d*s,(d+1)*s),t[h]){case 0:e_(m,g,s);break;case 1:t_(m,g,s,a);break;case 2:n_(m,g,c,s);break;case 3:r_(m,g,c,s,a);break;case 4:i_(m,g,c,s,a);break;default:throw new Error(`Unsupported filter: ${t[h]}`)}c=g,h+=s+1}if(o===16){const d=new Uint16Array(l.buffer);if(fT)for(let S=0;S<d.length;S++)d[S]=hT(d[S]);return d}else return l}function hT(e){return(e&255)<<8|e>>8&255}const Qd=Uint8Array.of(137,80,78,71,13,10,26,10);function Fy(e){if(!pT(e.readBytes(Qd.length)))throw new Error("wrong PNG signature")}function pT(e){if(e.length<Qd.length)return!1;for(let t=0;t<Qd.length;t++)if(e[t]!==Qd[t])return!1;return!0}const mT="tEXt",gT=0,o_=new TextDecoder("latin1");function vT(e){if(wT(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const yT=/^[\u0000-\u00FF]*$/;function wT(e){if(!yT.test(e))throw new Error("invalid latin1 text")}function bT(e,t,n){const r=a_(t);e[r]=xT(t,n-r.length-1)}function a_(e){for(e.mark();e.readByte()!==gT;);const t=e.offset;e.reset();const n=o_.decode(e.readBytes(t-e.offset-1));return e.skip(1),vT(n),n}function xT(e,t){return o_.decode(e.readBytes(t))}const Yr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Q1={UNKNOWN:-1,DEFLATE:0},My={UNKNOWN:-1,ADAPTIVE:0},J1={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Rd={NONE:0,BACKGROUND:1,PREVIOUS:2},e0={SOURCE:0,OVER:1};class _T extends Zm{constructor(n,r={}){super(n);Dt(this,"_checkCrc");Dt(this,"_inflator");Dt(this,"_png");Dt(this,"_apng");Dt(this,"_end");Dt(this,"_hasPalette");Dt(this,"_palette");Dt(this,"_hasTransparency");Dt(this,"_transparency");Dt(this,"_compressionMethod");Dt(this,"_filterMethod");Dt(this,"_interlaceMethod");Dt(this,"_colorType");Dt(this,"_isAnimated");Dt(this,"_numberOfFrames");Dt(this,"_numberOfPlays");Dt(this,"_frames");Dt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new Ry,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Q1.UNKNOWN,this._filterMethod=My.UNKNOWN,this._interlaceMethod=J1.UNKNOWN,this._colorType=Yr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Fy(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(Fy(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case mT:bT(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Iy(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Iy(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=ST(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case Yr.GREYSCALE:i=1;break;case Yr.TRUECOLOUR:i=3;break;case Yr.INDEXED_COLOUR:i=1;break;case Yr.GREYSCALE_ALPHA:i=2;break;case Yr.TRUECOLOUR_ALPHA:i=4;break;case Yr.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==Q1.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let o=0;o<r;o++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Yr.GREYSCALE:case Yr.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case Yr.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
169a values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Yr.UNKNOWN:case Yr.GREYSCALE_ALPHA:case Yr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=a_(this),i=this.readUint8();if(i!==Q1.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const o=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:JP(o)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=jy({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const o=this._apng.frames.at(n-1);this.disposeFrame(i,o,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case Rd.NONE:break;case Rd.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let a=0;a<this._png.width;a++){const s=(o*n.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[s+l]=0}break;case Rd.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,o=(a,s)=>{const l=((a+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,c=(a*r.width+s)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case e0.SOURCE:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:c}=o(a,s);for(let h=0;h<this._png.channels;h++)n.data[l+h]=r.data[c+h]}break;case e0.OVER:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:c}=o(a,s);for(let h=0;h<this._png.channels;h++){const m=r.data[c+this._png.channels-1]/i,g=h%(this._png.channels-1)===0?1:r.data[c+h],d=Math.floor(m*g+(1-m)*n.data[l+h]);n.data[l+h]+=d}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==My.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===J1.NO_INTERLACE)this._png.data=jy({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===J1.ADAM7)this._png.data=sT({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Rd.NONE,blendOp:e0.SOURCE,data:n}),this._inflator=new Ry,this._writingDataChunks=!1}}function ST(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var Dy;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(Dy||(Dy={}));function NT(e,t){return new _T(e,t).decode()}var it=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function t0(){it.console&&typeof it.console.log=="function"&&it.console.log.apply(it.console,arguments)}var Wt={log:t0,warn:function(e){it.console&&(typeof it.console.warn=="function"?it.console.warn.apply(it.console,arguments):t0.call(null,arguments))},error:function(e){it.console&&(typeof it.console.error=="function"?it.console.error.apply(it.console,arguments):t0(e))}};function n0(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Ss(r.response,t,n
vendor: 3,701 bytes, lines 169-174
169)},r.onerror=function(){Wt.error("could not download file")},r.send()}function By(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Od(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 Ss=it.saveAs||((typeof window>"u"?"undefined":Bt(window))!=="object"||window!==it?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=it.URL||it.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?By(i.href)?n0(e,t,n):Od(i,i.target="_blank"):Od(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Od(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(By(e))n0(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Od(r)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:Bt(o)!=="object"&&(Wt.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,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return n0(e,t,n);var i=e.type==="application/octet-stream",o=/constructor/i.test(it.HTMLElement)||it.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&(typeof FileReader>"u"?"undefined":Bt(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var h=s.result;h=a?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},s.readAsDataURL(e)}else{var l=it.URL||it.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
170 * A class to parse color values
171 * @author Stoyan Stefanov <[email protected]>
172 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
173 * @license Use it if you like it
174 */function s_(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
1740",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 n=[{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)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].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}}var Jd=it.atob.bind(it),zy=it.btoa.bind(it);/**
175 * @license
176 * Joseph Myers does not specify a particular license for his work.
177 *
178 * Author: Joseph Myers
179 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
180 *
181 * Modified by: Owen Leong
182 */function r0(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=lr(n,r,i,o,t[0],7,-680876936),o=lr(o,n,r,i,t[1],12,-389564586),i=lr(i,o,n,r,t[2],17,606105819),r=lr(r,i,o,n,t[3],22,-1044525330),n=lr(n,r,i,o,t[4],7,-176418897),o=lr(o,n,r,i,t[5],12,1200080426),i=lr(i,o,n,r,t[6],17,-1473231341),r=lr(r,i,o,n,t[7],22,-45705983),n=lr(n,r,i,o,t[8],7,1770035416),o=lr(o,n,r,i,t[9],12,-1958414417),i=lr(i,o,n,r,t[10],17,-42063),r=lr(r,i,o,n,t[11],22,-1990404162),n=lr(n,r,i,o,t[12],7,1804603682),o=lr(o,n,r,i,t[13],12,-40341101),i=lr(i,o,n,r,t[14],17,-1502002290),n=ur(n,r=lr(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=ur(o,n,r,i,t[6],9,-1069501632),i=ur(i,o,n,r,t[11],14,643717713),r=ur(r,i,o,n,t[0],20,-373897302),n=ur(n,r,i,o,t[5],5,-701558691),o=ur(o,n,r,i,t[10],9,38016083),i=ur(i,o,n,r,t[15],14,-660478335),r=ur(r,i,o,n,t[4],20,-405537848),n=ur(n,r,i,o,t[9],5,568446438),o=ur(o,n,r,i,t[14],9,-1019803690),i=ur(i,o,n,r,t[3],14,-187363961),r=ur(r,i,o,n,t[8],20,1163531501),n=ur(n,r,i,o,t[13],5,-1444681467),o=ur(o,n,r,i,t[2],9,-51403784),i=ur(i,o,n,r,t[7],14,1735328473),n=cr(n,r=ur(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=cr(o,n,r,i,t[8],11,-2022574463),i=cr(i,o,n,r,t[11],16,1839030562),r=cr(r,i,o,n,t[14],23,-35309556),n=cr(n,r,i,o,t[1],4,-1530992060),o=cr(o,n,r,i,t[4],11,1272893353),i=cr(i,o,n,r,t[7],16,-155497632),r=cr(r,i,o,n,t[10],23,-1094730640),n=cr(n,r,i,o,t[13],4,681279174),o=cr(o,n,r,i,t[0],11,-358537222),i=cr(i,o,n,r,t[3],16,-722521979),r=cr(r,i,o,n,t[6],23,76029189),n=cr(n,r,i,o,t[9],4,-640364487),o=cr(o,n,r,i,t[12],11,-421815835),i=cr(i,o,n,r,t[15],16,530742520),n=fr(n,r=cr(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=fr(o,n,r,i,t[7],10,1126891415),i=fr(i,o,n,r,t[14],15,-1416354905),r=fr(r,i,o,n,t[5],21,-57434055),n=fr(n,r,i,o,t[12],6,1700485571),o=fr(o,n,r,i,t[3],10,-1894986606),i=fr(i,o,n,r,t[10],15,-1051523),r=fr(r,i,o,n,t[1],21,-2054922799),n=fr(n,r,i,o,t[8],6,1873313359),o=fr(o,n,r,i,t[15],10,-30611744),i=fr(i,o,n,r,t[6],15,-1560198380),r=fr(r,i,o,n,t[13],21,1309151649),n=fr(n,r,i,o,t[4],6,-145523070),o=fr(o,n,r,i,t[11],10,-1120210379),i=fr(i,o,n,r,t[2],15,718787259),r=fr(r,i,o,n,t[9],21,-343485551),e[0]=Oa(n,e[0]),e[1]=Oa(r,e[1]),e[2]=Oa(i,e[2]),e[3]=Oa(o,e[3])}function wp(e,t,n,r,i,o){return t=Oa(Oa(t,e),Oa(r,o)),Oa(t<<i|t>>>32-i,n)}function lr(e,t,n,r,i,o,a){return wp(t&n|~t&r,e,t,i,o,a)}function ur(e,t,n,r,i,o,a){return wp(t&r|n&~r,e,t,i,o,a)}function cr(e,t,n,r,i,o,a){return wp(t^n^r,e,t,i,o,a)}function fr(e,t,n,r,i,o,a){return wp(n^(t|~r),e,t,i,o,a)}function l_(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)r0(r,kT(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(r0(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,r0(r,i),r}function kT(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Uy="0123456789abcdef".split("");function AT(e){for(var t="",n=0;n<4;n++)t+=Uy[e>>8*n+4&15]+Uy[e>>8*n&15];return t}function LT(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function R2(e){return l_(e).map(LT).join("")}var ET=function(e){for(var t=0;t<e.length;t++)e[t]=AT(e[t]);return e.join("")}
vendor: 8,718 bytes, lines 182-199
182(l_("hello"))!="5d41402abc4b2a76b9719d911017c592";function Oa(e,t){if(ET){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/**
183 * @license
184 * FPDF is released under a permissive license: there is no usage restriction.
185 * You may embed it freely in your application (commercial or not), with or
186 * without modifications.
187 *
188 * Reference: http://www.fpdf.org/en/script/script37.php
189 */function O2(e,t){var n,r,i,o;if(e!==n){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}n=e,r=s}else s=r;var m=t.length,g=0,d=0,S="";for(l=0;l<m;l++)d=(d+(h=s[g=(g+1)%256]))%256,s[g]=s[d],s[d]=h,a=s[(s[g]+s[d])%256],S+=String.fromCharCode(t.charCodeAt(l)^a);return S}/**
190 * @license
191 * Licensed under the MIT License.
192 * http://opensource.org/licenses/mit-license
193 * Author: Owen Leong (@owenl131)
194 * Date: 15 Oct 2020
195 * References:
196 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
197 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
198 * http://www.fpdf.org/en/script/script37.php
199 */var qy={print:4,modify:8,copy:16,"annot-forms":32};function Ll(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(qy.perm!==void 0)throw new Error("Invalid permission: "+s);i+=qy[s]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var o=(t+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=R2(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=O2(this.encryptionKey,this.padding)}function El(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=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?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function $y(e){if(Bt(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var o=Math.random().toString(35);return t[n][o]=[r,!!i],o},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[n]){var a=t[n][o];try{a[0].apply(e,r)}catch(s){it.console&&Wt.error("jsPDF PubSub Error",s.message,s)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Bh(e){if(!(this instanceof Bh))return new Bh(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function u_(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ns(e,t,n,r,i){if(!(this instanceof Ns))return new Ns(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,u_.call(this,r,i)}function Ul(e,t,n,r,i){if(!(this instanceof Ul))return new Ul(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,u_.call(this,r,i)}function Ke(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,l=16,c="S",h=null;Bt(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,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),r=r||"mm",n=(""+(n||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,g={},d={internal:{},__private__:{}};d.__private__.PubSub=$y;var S="1.3",w=d.__private__.getPdfVersion=function(){return S};d.__private__.setPdfVersion=function(p){S=p};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return _};var y=d.__private__.getPageFormat=function(p){return _[p]};i=i||"a4";var x="compat",N="advanced",A=x;function M(){this.saveGraphicsState(),D(new Be(nt,0,0,-nt,0,ls()*nt).toString()+" cm"),this.setFontSize(this.getFontSize()/nt),c="n",A=N}function K(){this.restoreGraphicsState(),c="S",A=x}var Y=d.__private__.combineFontStyleAndFontWeight=function(p,k){if(p=="bold"&&k=="normal"||p=="bold"&&k==400||p=="normal"&&k=="italic"||p=="bold"&&k=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return k&&(p=k==400||k==="normal"?p==="italic"?"italic":"normal":k!=700&&k!=="bold"||p!=="normal"?(k==700?"bold":k)+""+p:"bold"),p};d.advancedAPI=function(p){var k=A===x;return k&&M.call(this),typeof p!="function"||(p(this),k&&K.call(this)),this},d.compatAPI=function(p){var k=A===N;return k&&K.call(this),typeof p!="function"||(p(this),k&&M.call(this)),this},d.isAdvancedAPI=function(){return A===N};var H,I=function(p){if(A!==N)throw new Error(p+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Z=d.roundToPrecision=d.__private__.roundToPrecision=function(p,k){var z=t||k;if(isNaN(p)||isNaN(z))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return p.toFixed(z).replace(/0+$/,"")};H=d.hpf=d.__private__.hpf=typeof l=="number"?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(p,l)}:l==="smart"?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(p,p>-1&&p<1?16:5)}:function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(p,16)};var P=d.f2=d.__private__.f2=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f2");return Z(p,2)},R=d.__private__.f3=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f3");return Z(p,3)},G=d.scale=d.__private__.scale=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.scale");return A===x?p*nt:A===N?p:void 0},B=function(p){return G(function(k){return A===x?ls()-k:A===N?k:void 0}(p))};d.__private__.setPrecision=d.setPrecision=function(p){typeof parseInt(p,10)=="number"&&(t=parseInt(p,10))};var ae,se="00000000000000000000000000000000",ue=d.__private__.getFileId=function(){return se},V=d.__private__.setFileId=function(p){return se=p!==void 0&&/^[a-fA-F0-9]{32}$/.test(p)?p.toUpperCase():se.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(Gn=new Ll(h.userPermissions,h.userPassword,h.ownerPassword,se)),se};d.setFileId=function(p){return V(p),this},d.getFileId=function(){return ue()};var Q=d.__private__.convertDateToPDFDate=function(p){var k=p.getTimezoneOffset(),z=k<0?"+":"-",ee=Math.floor(Math.abs(k/60)),oe=Math.abs(k%60),ge=[z,W(ee),"'",W(oe),"'"].join("");return["D:",p.getFullYear(),W(p.getMonth()+1),W(p.getDate()),W(p.getHours()),W(p.getMinutes()),W(p.getSeconds()),ge].join("")},de=d.__private__.convertPDFDateToDate=function(p){var k=parseInt(p.substr(2,4),10),z=parseInt(p.substr(6,2),10)-1,ee=parseInt(p.substr(8,2),10),oe=parseInt(p.substr(10,2),10),ge=parseInt(p.substr(12,2),10),_e=parseInt(p.substr(14,2),10);return new Date(k,z,ee,oe,ge,_e,0)},he=d.__private__.setCreationDate=function(p){var k;if(p===void 0&&(p=new Date),p instanceof Date)k=Q(p);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(p))throw new Error("Invalid argument passed to 
199jsPDF.setCreationDate");k=p}return ae=k},E=d.__private__.getCreationDate=function(p){var k=ae;return p==="jsDate"&&(k=de(ae)),k};d.setCreationDate=function(p){return he(p),this},d.getCreationDate=function(p){return E(p)};var F,W=d.__private__.padd2=function(p){return("0"+parseInt(p)).slice(-2)},J=d.__private__.padd2Hex=function(p){return("00"+(p=p.toString())).substr(p.length)},ne=0,re=[],pe=[],me=0,ye=[],ke=[],Re=!1,Ce=pe;d.__private__.setCustomOutputDestination=function(p){Re=!0,Ce=p};var He=function(p){Re||(Ce=p)};d.__private__.resetCustomOutputDestination=function(){Re=!1,Ce=pe};var D=d.__private__.out=function(p){return p=p.toString(),me+=p.length+1,Ce.push(p),Ce},Pe=d.__private__.write=function(p){return D(arguments.length===1?p.toString():Array.prototype.join.call(arguments," "))},ut=d.__private__.getArrayBuffer=function(p){for(var k=p.length,z=new ArrayBuffer(k),ee=new Uint8Array(z);k--;)ee[k]=p.charCodeAt(k);return z},Ye=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return Ye};var Se=e.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(p){return Se=A===N?p/nt:p,this};var Je,Oe=d.__private__.getFontSize=d.getFontSize=function(){return A===x?Se:Se*nt},Xe=e.R2L||!1;d.__private__.setR2L=d.setR2L=function(p){return Xe=p,this},d.__private__.getR2L=d.getR2L=function(){return Xe};var De,Tt=d.__private__.setZoomMode=function(p){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(p))Je=p;else if(isNaN(p)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(p)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+p+'" is not recognized.');Je=p}else Je=parseInt(p,10)};d.__private__.getZoomMode=function(){return Je};var bt,Ze=d.__private__.setPageMode=function(p){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+p+'" is not recognized.');De=p};d.__private__.getPageMode=function(){return De};var pt=d.__private__.setLayoutMode=function(p){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(p)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+p+'" is not recognized.');bt=p};d.__private__.getLayoutMode=function(){return bt},d.__private__.setDisplayMode=d.setDisplayMode=function(p,k,z){return Tt(p),pt(k),Ze(z),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(p){if(Object.keys(xt).indexOf(p)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[p]},d.__private__.getDocumentProperties=function(){return xt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(p){for(var k in xt)xt.hasOwnProperty(k)&&p[k]&&(xt[k]=p[k]);return this},d.__private__.setDocumentProperty=function(p,k){if(Object.keys(xt).indexOf(p)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[p]=k};var Ue,nt,We,rn,_t,ot={},mt={},It=[],Qe={},Ut={},et={},at={},Vt=null,gt=0,Ve=[],Rt=new $y(d),tt=e.hotfixes||[],st={},At={},hn=[],Be=function p(k,z,ee,oe,ge,_e){if(!(this instanceof p))return new p(k,z,ee,oe,ge,_e);isNaN(k)&&(k=1),isNaN(z)&&(z=0),isNaN(ee)&&(ee=0),isNaN(oe)&&(oe=1),isNaN(ge)&&(ge=0),isNaN(_e)&&(_e=0),this._matrix=[k,z,ee,oe,ge,_e]};Object.defineProperty(Be.prototype,"sx",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(Be.prototype,"shy",{get:function(){return this._matrix[
vendor: 15,449 bytes, lines 199-203
1991]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(Be.prototype,"shx",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(Be.prototype,"sy",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(Be.prototype,"tx",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(Be.prototype,"ty",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(Be.prototype,"a",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(Be.prototype,"b",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(Be.prototype,"c",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(Be.prototype,"d",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(Be.prototype,"e",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(Be.prototype,"f",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(Be.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Be.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Be.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Be.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Be.prototype.join=function(p){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(H).join(p)},Be.prototype.multiply=function(p){var k=p.sx*this.sx+p.shy*this.shx,z=p.sx*this.shy+p.shy*this.sy,ee=p.shx*this.sx+p.sy*this.shx,oe=p.shx*this.shy+p.sy*this.sy,ge=p.tx*this.sx+p.ty*this.shx+this.tx,_e=p.tx*this.shy+p.ty*this.sy+this.ty;return new Be(k,z,ee,oe,ge,_e)},Be.prototype.decompose=function(){var p=this.sx,k=this.shy,z=this.shx,ee=this.sy,oe=this.tx,ge=this.ty,_e=Math.sqrt(p*p+k*k),ze=(p/=_e)*z+(k/=_e)*ee;z-=p*ze,ee-=k*ze;var Me=Math.sqrt(z*z+ee*ee);return ze/=Me,p*(ee/=Me)<k*(z/=Me)&&(p=-p,k=-k,ze=-ze,_e=-_e),{scale:new Be(_e,0,0,Me,0,0),translate:new Be(1,0,0,1,oe,ge),rotate:new Be(p,k,-k,p,0,0),skew:new Be(1,0,ze,1,0,0)}},Be.prototype.toString=function(p){return this.join(" ")},Be.prototype.inversed=function(){var p=this.sx,k=this.shy,z=this.shx,ee=this.sy,oe=this.tx,ge=this.ty,_e=1/(p*ee-k*z),ze=ee*_e,Me=-k*_e,lt=-z*_e,ft=p*_e;return new Be(ze,Me,lt,ft,-ze*oe-lt*ge,-Me*oe-ft*ge)},Be.prototype.applyToPoint=function(p){var k=p.x*this.sx+p.y*this.shx+this.tx,z=p.x*this.shy+p.y*this.sy+this.ty;return new ss(k,z)},Be.prototype.applyToRectangle=function(p){var k=this.applyToPoint(p),z=this.applyToPoint(new ss(p.x+p.w,p.y+p.h));return new Bu(k.x,k.y,z.x-k.x,z.y-k.y)},Be.prototype.clone=function(){var p=this.sx,k=this.shy,z=this.shx,ee=this.sy,oe=this.tx,ge=this.ty;return new Be(p,k,z,ee,oe,ge)},d.Matrix=Be;var Bn=d.matrixMult=function(p,k){return k.multiply(p)},Wn=new Be(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Wn;var on=function(p,k){if(!Ut[p]){var z=(k instanceof Ns?"Sh":"P")+(Object.keys(Qe).length+1).toString(10);k.id=z,Ut[p]=z,Qe[z]=k,Rt.publish("addPattern",k)}};d.ShadingPattern=Ns,d.TilingPattern=Ul,d.addShadingPattern=function(p,k){return I("addShadingPattern()"),on(p,k),this},d.beginTilingPattern=function(p){I("beginTilingPattern()"),zu(p.boundingBox[0],p.boundingBox[1],p.boundingBox[2]-p.boundingBox[0],p.boundingBox[3]-p.boundingBox[1],p.matrix)},d.endTilingPattern=function(p,k){I("endTilingPattern()"),k.stream=ke[F].join(`
200`),on(p,k),Rt.publish("endTilingPattern",k),hn.pop().restore()};var bn,pn=d.__private__.newObject=function(){var p=zn();return Vn(p,!0),p},zn=d.__private__.newObjectDeferred=function(){return ne++,re[ne]=function(){return me},ne},Vn=function(p,k){return k=typeof k=="boolean"&&k,re[p]=me,k&&D(p+" 0 obj"),p},rs=d.__private__.newAdditionalObject=function(){var p={objId:zn(),content:""};return ye.push(p),p},Qo=zn(),xi=zn(),Gi=d.__private__.decodeColorString=function(p){var k=p.split(" ");if(k.length!==2||k[1]!=="g"&&k[1]!=="G")k.length!==5||k[4]!=="k"&&k[4]!=="K"||(k=[(1-k[0])*(1-k[3]),(1-k[1])*(1-k[3]),(1-k[2])*(1-k[3]),"r"]);else{var z=parseFloat(k[0]);k=[z,z,z,"r"]}for(var ee="#",oe=0;oe<3;oe++)ee+=("0"+Math.floor(255*parseFloat(k[oe])).toString(16)).slice(-2);return ee},_i=d.__private__.encodeColorString=function(p){var k;typeof p=="string"&&(p={ch1:p});var z=p.ch1,ee=p.ch2,oe=p.ch3,ge=p.ch4,_e=p.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof z=="string"&&z.charAt(0)!=="#"){var ze=new s_(z);if(ze.ok)z=ze.toHex();else if(!/^\d*\.?\d*$/.test(z))throw new Error('Invalid color "'+z+'" passed to jsPDF.encodeColorString.')}if(typeof z=="string"&&/^#[0-9A-Fa-f]{3}$/.test(z)&&(z="#"+z[1]+z[1]+z[2]+z[2]+z[3]+z[3]),typeof z=="string"&&/^#[0-9A-Fa-f]{6}$/.test(z)){var Me=parseInt(z.substr(1),16);z=Me>>16&255,ee=Me>>8&255,oe=255&Me}if(ee===void 0||ge===void 0&&z===ee&&ee===oe)k=typeof z=="string"?z+" "+_e[0]:p.precision===2?P(z/255)+" "+_e[0]:R(z/255)+" "+_e[0];else if(ge===void 0||Bt(ge)==="object"){if(ge&&!isNaN(ge.a)&&ge.a===0)return["1.","1.","1.",_e[1]].join(" ");k=typeof z=="string"?[z,ee,oe,_e[1]].join(" "):p.precision===2?[P(z/255),P(ee/255),P(oe/255),_e[1]].join(" "):[R(z/255),R(ee/255),R(oe/255),_e[1]].join(" ")}else k=typeof z=="string"?[z,ee,oe,ge,_e[2]].join(" "):p.precision===2?[P(z),P(ee),P(oe),P(ge),_e[2]].join(" "):[R(z),R(ee),R(oe),R(ge),_e[2]].join(" ");return k},Si=d.__private__.getFilters=function(){return a},ai=d.__private__.putStream=function(p){var k=(p=p||{}).data||"",z=p.filters||Si(),ee=p.alreadyAppliedFilters||[],oe=p.addLength1||!1,ge=k.length,_e=p.objectId,ze=function(Xt){return Xt};if(h!==null&&_e===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(ze=Gn.encryptor(_e,0));var Me={};z===!0&&(z=["FlateEncode"]);var lt=p.additionalKeyValues||[],ft=(Me=Ke.API.processDataByFilters!==void 0?Ke.API.processDataByFilters(k,z):{data:k,reverseChain:[]}).reverseChain+(Array.isArray(ee)?ee.join(" "):ee.toString());if(Me.data.length!==0&&(lt.push({key:"Length",value:Me.data.length}),oe===!0&&lt.push({key:"Length1",value:ge})),ft.length!=0)if(ft.split("/").length-1==1)lt.push({key:"Filter",value:ft});else{lt.push({key:"Filter",value:"["+ft+"]"});for(var Lt=0;Lt<lt.length;Lt+=1)if(lt[Lt].key==="DecodeParms"){for(var Cn=[],$t=0;$t<Me.reverseChain.split("/").length-1;$t+=1)Cn.push("null");Cn.push(lt[Lt].value),lt[Lt].value="["+Cn.join(" ")+"]"}}D("<<");for(var qt=0;qt<lt.length;qt++)D("/"+lt[qt].key+" "+lt[qt].value);D(">>"),Me.data.length!==0&&(D("stream"),D(ze(Me.data)),D("endstream"))},is=d.__private__.putPage=function(p){var k=p.number,z=p.data,ee=p.objId,oe=p.contentsObjId;Vn(ee,!0),D("<</Type /Page"),D("/Parent "+p.rootDictionaryObjId+" 0 R"),D("/Resources "+p.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat(H(p.mediaBox.bottomLeftX))+" "+parseFloat(H(p.mediaBox.bottomLeftY))+" "+H(p.mediaBox.topRightX)+" "+H(p.mediaBox.topRightY)+"]"),p.cropBox!==null&&D("/CropBox ["+H(p.cropBox.bottomLeftX)+" "+H(p.cropBox.bottomLeftY)+" "+H(p.cropBox.topRightX)+" "+H(p.cropBox.topRightY)+"]"),p.bleedBox!==null&&D("/BleedBox ["+H(p.bleedBox.bottomLeftX)+" "+H(p.bleedBox.bottomLeftY)+" "+H(p.bleedBox.topRightX)+" "+H(p.bleedBox.topRightY)+"]"),p.trimBox!==null&&D("/TrimBox ["+H(p.trimBox.bottomLeftX)+" "+H(p.trimBox.bottomLeftY)+" "+H(p.trimBox.topRightX)+" "+H(p.trimBox.topRightY)+"]"),p.artBox!==null&&D("/ArtBox ["+H(p.artBox.bottomLeftX)+" "+H(p.artBox.bottomLeftY)+" "+H(p.artBox.topRightX)+" "+H(p.artBox.topRightY)+"]"),typeof p.userUnit=="number"&&p.userUnit!==1&&D("/UserUnit "+p.userUnit),Rt.publish("putPage",{objId:ee,pageContext:Ve[k],pageNumber:k,page:z}),D("/Contents "+oe+" 0 R"),D(">>"),D("endobj");var ge=z.join(`
201`);return A===N&&(ge+=`
202Q`),Vn(oe,!0),ai({data:ge,filters:Si(),objectId:oe}),D("endobj"),ee},Yi=d.__private__.putPages=function(){var p,k,z=[];for(p=1;p<=gt;p++)Ve[p].objId=zn(),Ve[p].contentsObjId=zn();for(p=1;p<=gt;p++)z.push(is({number:p,data:ke[p],objId:Ve[p].objId,contentsObjId:Ve[p].contentsObjId,mediaBox:Ve[p].mediaBox,cropBox:Ve[p].cropBox,bleedBox:Ve[p].bleedBox,trimBox:Ve[p].trimBox,artBox:Ve[p].artBox,userUnit:Ve[p].userUnit,rootDictionaryObjId:Qo,resourceDictionaryObjId:xi}));Vn(Qo,!0),D("<</Type /Pages");var ee="/Kids [";for(k=0;k<gt;k++)ee+=z[k]+" 0 R ";D(ee+"]"),D("/Count "+gt),D(">>"),D("endobj"),Rt.publish("postPutPages")},os=function(p){Rt.publish("putFont",{font:p,out:D,newObject:pn,putStream:ai}),p.isAlreadyPutted!==!0&&(p.objectNumber=pn(),D("<<"),D("/Type /Font"),D("/BaseFont /"+El(p.postScriptName)),D("/Subtype /Type1"),typeof p.encoding=="string"&&D("/Encoding /"+p.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},el=function(p){p.objectNumber=pn();var k=[];k.push({key:"Type",value:"/XObject"}),k.push({key:"Subtype",value:"/Form"}),k.push({key:"BBox",value:"["+[H(p.x),H(p.y),H(p.x+p.width),H(p.y+p.height)].join(" ")+"]"}),k.push({key:"Matrix",value:"["+p.matrix.toString()+"]"});var z=p.pages[1].join(`
203`);ai({data:z,additionalKeyValues:k,objectId:p.objectNumber}),D("endobj")},tl=function(p,k){k||(k=21);var z=pn(),ee=function(_e,ze){var Me,lt=[],ft=1/(ze-1);for(Me=0;Me<1;Me+=ft)lt.push(Me);if(lt.push(1),_e[0].offset!=0){var Lt={offset:0,color:_e[0].color};_e.unshift(Lt)}if(_e[_e.length-1].offset!=1){var Cn={offset:1,color:_e[_e.length-1].color};_e.push(Cn)}for(var $t="",qt=0,Xt=0;Xt<lt.length;Xt++){for(Me=lt[Xt];Me>_e[qt+1].offset;)qt++;var ln=_e[qt].offset,un=(Me-ln)/(_e[qt+1].offset-ln),tr=_e[qt].color,Ao=_e[qt+1].color;$t+=J(Math.round((1-un)*tr[0]+un*Ao[0]).toString(16))+J(Math.round((1-un)*tr[1]+un*Ao[1]).toString(16))+J(Math.round((1-un)*tr[2]+un*Ao[2]).toString(16))}return $t.trim()}(p.colors,k),oe=[];oe.push({key:"FunctionType",value:"0"}),oe.push({key:"Domain",value:"[0.0 1.0]"}),oe.push({key:"Size",value:"["+k+"]"}),oe.push({key:"BitsPerSample",value:"8"}),oe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),oe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ai({data:ee,additionalKeyValues:oe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:z}),D("endobj"),p.objectNumber=pn(),D("<< /ShadingType "+p.type),D("/ColorSpace /DeviceRGB");var ge="/Coords ["+H(parseFloat(p.coords[0]))+" "+H(parseFloat(p.coords[1]))+" ";p.type===2?ge+=H(parseFloat(p.coords[2]))+" "+H(parseFloat(p.coords[3])):ge+=H(parseFloat(p.coords[2]))+" "+H(parseFloat(p.coords[3]))+" "+H(parseFloat(p.coords[4]))+" "+H(parseFloat(p.coords[5])),D(ge+="]"),p.matrix&&D("/Matrix ["+p.matrix.toString()+"]"),D("/Function "+z+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},nl=function(p,k){var z=zn(),ee=pn();k.push({resourcesOid:z,objectOid:ee}),p.objectNumber=ee;var oe=[];oe.push({key:"Type",value:"/Pattern"}),oe.push({key:"PatternType",value:"1"}),oe.push({key:"PaintType",value:"1"}),oe.push({key:"TilingType",value:"1"}),oe.push({key:"BBox",value:"["+p.boundingBox.map(H).join(" ")+"]"}),oe.push({key:"XStep",value:H(p.xStep)}),oe.push({key:"YStep",value:H(p.yStep)}),oe.push({key:"Resources",value:z+" 0 R"}),p.matrix&&oe.push({key:"Matrix",value:"["+p.matrix.toString()+"]"}),ai({data:p.stream,additionalKeyValues:oe,objectId:p.objectNumber}),D("endobj")},bp=function(p){for(var k in p.objectNumber=pn(),D("<<"),p)switch(k){case"opacity":D("/ca "+P(p[k]));break;case"stroke-opacity":D("/CA "+P(p[k]))}D(">>"),D("endobj")},Tu=function(p){Vn(p.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var k in D("/Font <<"),ot)ot.hasOwnProperty(k)&&(m===!1||m===!0&&g.hasOwnProperty(k))&&D("/"+k+" "+ot[k].objectNumber+" 0 R");D(">>")}(),function(){if(Object.keys(Qe).length>0){for(var k in D("/Shading <<"),Qe)Qe.hasOwnProperty(k)&&Qe[k]instanceof Ns&&Qe[k].objectNumber>=0&&D("/"+k+" "+Qe[k].objectNumber+" 0 R");Rt.publish("putShadingPatternDict"),D(">>")}}(),function(k){if(Object.keys(Qe).length>0){for(var z in D("/Pattern <<"),Qe)Qe.hasOwnProperty(z)&&Qe[z]instanceof d.TilingPattern&&Qe[z].objectNumber>=0&&Qe[z].objectNumber<k&&D("/"+z+" "+Qe[z].objectNumber+" 0 R");Rt.publish("putTilingPatternDict"),D(">>")}}(p.objectOid),function(){if(Object.keys(et).length>0){var k;for(k in D("/ExtGState <<"),et)et.hasOwnProperty(k)&&et[k].objectNumber>=0&&D("/"+k+" "+et[k].objectNumber+" 0 R");Rt.publish("putGStateDict"),D(">>")}}(),function(){for(var k in D("/XObject <<"),st)st.hasOwnProperty(k)&&st[k].objectNumber>=0&&D("/"+k+" "+st[k].objectNumber+" 0 R");Rt.publish("putXobjectDict"),D(">>")}(),D(">>"),D("endobj")},Nf=function(p){mt[p.fontName]=mt[p.fontName]||{},mt[p.fontName][p.fontStyle]=p.id},kf=function(p,k,z,ee,oe){var ge={id:"F"+(Object.keys(ot).length+1).toString(10),postScriptName:p,fontName:k,fontStyle:z,encoding:ee,isStandardFont:oe||!1,metadata:{}};return Rt.publish("addFont",{font:ge,instance:this}),ot[ge.id]=ge,Nf(ge),ge.id},si=d.__private__.pdfEscape=d.pdfEscape=function(p,k){return function(z,ee){var oe,ge,_e,ze,Me,lt,ft,Lt,Cn;if(_e=(ee=ee||{}).sourceEncoding||"Unicode",Me=ee.outputEncoding,(ee.autoencode||Me)&&ot[Ue].metadata&&ot[Ue].metadata[_e]&&ot[Ue].metadata[_e].encoding&&(ze=ot[Ue].metadata[_e].encoding,!Me&&ot[Ue].encoding&&(Me=ot[Ue].encoding),!Me&&ze.codePages&&(Me=ze.codePages[0]),typeof Me=="string"&&(Me=ze[Me]),Me)){for(ft=!1,lt=[],oe=0,ge=z.length;oe<ge;oe++)(Lt=Me[z.charCodeAt(oe)])?lt.push(String.fromCharCode(Lt)):lt.push(z[oe]),lt[oe].charCodeAt(0)>>8&&(ft=!0);z=lt.join("")}for(oe=z.length;ft===void 0&&oe!==0;)z.charCodeAt(oe-1)>>8&&(ft=!0),oe--;if(!ft)return z;for(lt=ee.noBOM?[]:[254,255],oe=0,ge=z.length;oe<ge;oe++){if((Cn=(Lt=z.charCodeAt(oe))>>8)>>8)throw new Error("Character at position "+oe+" of string '"+z+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");lt.push(Cn),lt.push(Lt-(Cn<<8))}return String.fromCharCode.apply(void 0,lt)}(p,k).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ru=d.__private__.beginPage=function(p){ke[++gt]=[],Ve[gt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(p[0]),topRightY:Number(p[1])}},Lf(gt),He(ke[F])},Af=function(p,k){var z,ee,oe;switch(n=k||n,typeof p=="string"&&(z=y(p.toLowerCase()),Array.isArray(z)&&(ee=z[0],oe=z[1])),Array.isArray(p)&&(ee=p[0]*nt,oe=p[1]*nt),isNaN(ee)&&(ee=i[0],oe=i[1]),(ee>14400||oe>14400)&&(Wt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ee=Math.min(14400,ee),oe=Math.min(14400,oe)),i=[ee,oe],n.substr(0,1)){case"l":oe>ee&&(i=[oe,ee]);break;case"p":ee>oe&&(i=[oe,ee])}Ru(i),Pp(rt),D(ll),Mu!==0&&D(Mu+" J"),ta!==0&&D(ta+" j"),Rt.publish("addPage",{pageNumber:gt})},Ou=function(p){p>0&&p<=gt&&(ke.splice(p,1),Ve.splice(p,1),gt--,F>gt&&(F=gt),this.setPage(F))},Lf=function(p){p>0&&p<=gt&&(F=p)},Ef=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return ke.length-1},Cf=function(p,k,z){var ee,oe=void 0;return z=z||{},p=p!==void 0?p:ot[Ue].fontName,k=k!==void 0?k:ot[Ue].fontStyle,ee=p.toLowerCase(),mt[ee]!==void 0&&mt[ee][k]!==void 0?oe=mt[ee][k]:mt[p]!==void 0&&mt[p][k]!==void 0?oe=mt[p][k]:z.disableWarning===!1&&Wt.warn("Unable to look up font label for font '"+p+"', '"+k+"'. Refer to getFontList(
203) for available fonts."),oe||z.noFallback||(oe=mt.times[k])==null&&(oe=mt.times.normal),oe},Ki=d.__private__.putInfo=function(){var p=pn(),k=function(ee){return ee};for(var z in h!==null&&(k=Gn.encryptor(p,0)),D("<<"),D("/Producer ("+si(k("jsPDF "+Ke.version))+")"),xt)xt.hasOwnProperty(z)&&xt[z]&&D("/"+z.substr(0,1).toUpperCase()+z.substr(1)+" ("+si(k(xt[z]))+")");D("/CreationDate ("+si(k(ae))+")"),D(">>"),D("endobj")},rl=d.__private__.putCatalog=function(p){var k=(p=p||{}).rootDictionaryObjId||Qo;switch(pn(),D("<<"),D("/Type /Catalog"),D("/Pages "+k+" 0 R"),Je||(Je="fullwidth"),Je){case"fullwidth":D("/OpenAction [3 0 R /FitH null]");break;case"fullheight":D("/OpenAction [3 0 R /FitV null]");break;case"fullpage":D("/OpenAction [3 0 R /Fit]");break;case"original":D("/OpenAction [3 0 R /XYZ null null 1]");break;default:var z=""+Je;z.substr(z.length-1)==="%"&&(Je=parseInt(Je)/100),typeof Je=="number"&&D("/OpenAction [3 0 R /XYZ null null "+P(Je)+"]")}switch(bt||(bt="continuous"),bt){case"continuous":D("/PageLayout /OneColumn");break;case"single":D("/PageLayout /SinglePage");break;case"two":case"twoleft":D("/PageLayout /TwoColumnLeft");break;case"tworight":D("/PageLayout /TwoColumnRight")}De&&D("/PageMode /"+De),Rt.publish("putCatalog"),D(">>"),D("endobj")},xp=d.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+(ne+1)),D("/Root "+ne+" 0 R"),D("/Info "+(ne-1)+" 0 R"),h!==null&&D("/Encrypt "+Gn.oid+" 0 R"),D("/ID [ <"+se+"> <"+se+"> ]"),D(">>")},En=d.__private__.putHeader=function(){D("%PDF-"+S),D("%ºß¬à")},Pf=d.__private__.putXRef=function(){var p="0000000000";D("xref"),D("0 "+(ne+1)),D("0000000000 65535 f ");for(var k=1;k<=ne;k++)typeof re[k]=="function"?D((p+re[k]()).slice(-10)+" 00000 n "):re[k]!==void 0?D((p+re[k]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},Zi=d.__private__.buildDocument=function(){var p;ne=0,me=0,pe=[],re=[],ye=[],Qo=zn(),xi=zn(),He(pe),Rt.publish("buildDocument"),En(),Yi(),function(){Rt.publish("putAdditionalObjects");for(var z=0;z<ye.length;z++){var ee=ye[z];Vn(ee.objId,!0),D(ee.content),D("endobj")}Rt.publish("postPutAdditionalObjects")}(),p=[],function(){for(var z in ot)ot.hasOwnProperty(z)&&(m===!1||m===!0&&g.hasOwnProperty(z))&&os(ot[z])}(),function(){var z;for(z in et)et.hasOwnProperty(z)&&bp(et[z])}(),function(){for(var z in st)st.hasOwnProperty(z)&&el(st[z])}(),function(z){var ee;for(ee in Qe)Qe.hasOwnProperty(ee)&&(Qe[ee]instanceof Ns?tl(Qe[ee]):Qe[ee]instanceof Ul&&nl(Qe[ee],z))}(p),Rt.publish("putResources"),p.forEach(Tu),Tu({resourcesOid:xi,objectOid:Number.MAX_SAFE_INTEGER}),Rt.publish("postPutResources"),h!==null&&(Gn.oid=pn(),D("<<"),D("/Filter /Standard"),D("/V "+Gn.v),D("/R "+Gn.r),D("/U <"+Gn.toHexString(Gn.U)+">"),D("/O <"+Gn.toHexString(Gn.O)+">"),D("/P "+Gn.P),D(">>"),D("endobj")),Ki(),rl();var k=me;return Pf(),xp(),D("startxref"),D(""+k),D("%%EOF"),He(ke[F]),pe.join(`
204`)},il=d.__private__.getBlob=function(p){return new Blob([ut(p)],{type:"application/pdf"})},Iu=function(p){for(;p.firstChild;)p.removeChild(p.firstChild)},Ur=function(p){var k,z=p.document,ee=z.documentElement,oe=z.head,ge=z.body;return oe||(oe=z.createElement("head"),ee.appendChild(oe)),ge||(ge=z.createElement("body"),ee.appendChild(ge)),Iu(oe),Iu(ge),(k=z.createElement("style")).appendChild(z.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),oe.appendChild(k),{document:z,body:ge}},ol=d.output=d.__private__.output=(bn=function(p,k){switch(typeof(k=k||{})=="string"?k={filename:k}:k.filename=k.filename||"generated.pdf",p){case void 0:return Zi();case"save":d.save(k.filename);break;case"arraybuffer":return ut(Zi());case"blob":return il(Zi());case"bloburi":case"bloburl":if(it.URL!==void 0&&typeof it.URL.createObjectURL=="function")return it.URL&&it.URL.createObjectURL(il(Zi()))||void 0;Wt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var z="",ee=Zi();try{z=zy(ee)}catch{z=zy(unescape(encodeURIComponent(ee)))}return"data:application/pdf;filename="+encodeURIComponent(k.filename)+";base64,"+z;case"pdfobjectnewwindow":if(Object.prototype.toString.call(it)==="[object Window]"){var oe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ge=!k.pdfObjectUrl;ge||(oe=k.pdfObjectUrl);var _e=it.open();if(_e!==null){var ze=Ur(_e),Me=ze.document.createElement("script"),lt=this;Me.src=oe,ge&&(Me.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Me.crossOrigin="anonymous"),Me.onload=function(){_e.PDFObject.embed(lt.output("dataurlstring"),k)},ze.body.appendChild(Me)}return _e}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(it)==="[object Window]"){var ft=k.pdfJsUrl||"examples/PDF.js/web/viewer.html",Lt=it.o
vendor: 4,251 bytes, lines 204-205
204pen();if(Lt!==null){var Cn=Ur(Lt),$t=Cn.document.createElement("iframe"),qt=ft.indexOf("?")===-1?"?":"&";lt=this,$t.id="pdfViewer",$t.width="500px",$t.height="400px",$t.src=ft+qt+"file=&downloadName="+encodeURIComponent(k.filename),$t.onload=function(){Lt.document.title=k.filename,$t.contentWindow.PDFViewerApplication.open(lt.output("bloburl"))},Cn.body.appendChild($t)}return Lt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(it)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Xt=it.open();if(Xt!==null){var ln=Ur(Xt),un=ln.document.createElement("iframe");un.src=this.output("datauristring",k),ln.body.appendChild(un),Xt.document.title=k.filename}if(Xt||typeof safari>"u")return Xt;break;case"datauri":case"dataurl":return it.document.location.href=this.output("datauristring",k);default:return null}},bn.foo=function(){try{return bn.apply(this,arguments)}catch(z){var p=z.stack||"";~p.indexOf(" at ")&&(p=p.split(" at ")[1]);var k="Error in function "+p.split(`
205`)[0].split("<")[0]+": "+z.message;if(!it.console)throw new Error(k);it.console.error(k,z),it.alert&&alert(k)}},bn.foo.bar=bn,bn.foo),xo=function(p){return Array.isArray(tt)===!0&&tt.indexOf(p)>-1};switch(r){case"pt":nt=1;break;case"mm":nt=72/25.4;break;case"cm":nt=72/2.54;break;case"in":nt=72;break;case"px":nt=xo("px_scaling")==1?.75:96/72;break;case"pc":case"em":nt=12;break;case"ex":nt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);nt=r}var Gn=null;he(),V();var Tf=d.__private__.getPageInfo=d.getPageInfo=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ve[p].objId,pageNumber:p,pageContext:Ve[p]}},_p=d.__private__.getPageInfoByObjId=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var k in Ve)if(Ve[k].objId===p)break;return Tf(k)},Sp=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Ve[F].objId,pageNumber:F,pageContext:Ve[F]}};d.addPage=function(){return Af.apply(this,arguments),this},d.setPage=function(){return Lf.apply(this,arguments),He.call(this,ke[F]),this},d.insertPage=function(p){return this.addPage(),this.movePage(F,p),this},d.movePage=function(p,k){var z,ee;if(p>k){z=ke[p],ee=Ve[p];for(var oe=p;oe>k;oe--)ke[oe]=ke[oe-1],Ve[oe]=Ve[oe-1];ke[k]=z,Ve[k]=ee,this.setPage(k)}else if(p<k){z=ke[p],ee=Ve[p];for(var ge=p;ge<k;ge++)ke[ge]=ke[ge+1],Ve[ge]=Ve[ge+1];ke[k]=z,Ve[k]=ee,this.setPage(k)}return this},d.deletePage=function(){return Ou.apply(this,arguments),this},d.__private__.text=d.text=function(p,k,z,ee,oe){var ge,_e,ze,Me,lt,ft,Lt,Cn,$t,qt=(ee=ee||{}).scope||this;if(typeof p=="number"&&typeof k=="number"&&(typeof z=="string"||Array.isArray(z))){var Xt=z;z=k,k=p,p=Xt}if(arguments[3]instanceof Be==0?(ze=arguments[4],Me=arguments[5],Bt(Lt=arguments[3])==="object"&&Lt!==null||(typeof ze=="string"&&(Me=ze,ze=null),typeof Lt=="string"&&(Me=Lt,Lt=null),typeof Lt=="number"&&(ze=Lt,Lt=null),ee={flags:Lt,angle:ze,align:Me})):(I("The transform parameter of text() with a Matrix value"),$t=oe),isNaN(k)||isNaN(z)||p==null)throw new Error("Invalid arguments passed to jsPDF.text");if(p.length===0)return qt;var ln,un="",tr=typeof ee.lineHeightFactor=="number"?ee.lineHeightFactor:as,Ao=qt.internal.scaleFactor;function Uu(Gt){return Gt=Gt.split("	").join(Array(ee.TabLen||9).join(" ")),si(Gt,Lt)}function us(Gt){for(var Yt,xn=Gt.concat(),Rn=[],Eo=xn.length;Eo--;)typeof(Yt=xn.shift())=="string"?Rn.push(Yt):Array.isArray(Gt)&&(Yt.length===1||Yt[1]===void 0&&Yt[2]===void 0)?Rn.push(Yt[0]):Rn.push([Yt[0],Yt[1],Yt[2]]);return Rn}function cs(Gt,Yt){var xn;if(typeof Gt=="string")xn=Yt(Gt)[0];else if(Array.isArray(Gt)){for(var Rn,Eo,Gu=Gt.concat(),bl=[],Uf=Gu.length;Uf--;)typeof(Rn=Gu.shift())=="string"?bl.push(Yt(Rn)[0]):Array.isArray(Rn)&&typeof Rn[0]=="string"&&(Eo=Yt(Rn[0],Rn[1],Rn[2]),bl.push([Eo[0],Eo[1],Eo[2]]));xn=bl}return xn}var na=!1,fs=!0;if(typeof p=="string")na=!0;else if(Array.isArray(p)){var dl=p.concat();_e=[];for(var hl,nr=dl.length;nr--;)(typeof(hl=dl.shift())!="string"||Array.isArray(hl)&&typeof hl[0]!="str
205ing")&&(fs=!1);na=fs}if(na===!1)throw new Error('Type of text must be string or Array. "'+p+'" is not recognized.');typeof p=="string"&&(p=p.match(/[\r?\n]/)?p.split(/\r\n|\r|\n/g):[p]);var ds=Se/qt.internal.scaleFactor,hs=ds*(tr-1);switch(ee.baseline){case"bottom":z-=hs;break;case"top":z+=ds-hs;break;case"hanging":z+=ds-2*hs;break;case"middle":z+=ds/2-hs}if((ft=ee.maxWidth||0)>0&&(typeof p=="string"?p=qt.splitTextToSize(p,ft):Object.prototype.toString.call(p)==="[object Array]"&&(p=p.reduce(function(Gt,Yt){return Gt.concat(qt.splitTextToSize(Yt,ft))},[]))),ge={text:p,x:k,y:z,options:ee,mutex:{pdfEscape:si,activeFontKey:Ue,fonts:ot,activeFontSize:Se}},Rt.publish("preProcessText",ge),p=ge.text,ze=(ee=ge.options).angle,$t instanceof Be==0&&ze&&typeof ze=="number"){ze*=Math.PI/180,ee.rotationDirection===0&&(ze=-ze),A===N&&(ze=-ze);var qu=Math.cos(ze),Ji=Math.sin(ze);$t=new Be(qu,Ji,-Ji,qu,0,0)}else ze&&ze instanceof Be&&($t=ze);A!==N||$t||($t=Wn),(lt=ee.charSpace||ul)!==void 0&&(un+=H(G(lt))+` Tc
206`,this.setCharSpace(this.getCharSpace()||0)),(Cn=ee.horizontalScale)!==void 0&&(un+=H(100*Cn)+` Tz
207`),ee.lang;var gr=-1,Bf=ee.renderingMode!==void 0?ee.renderingMode:ee.stroke,pl=qt.internal.getCurrentPageInfo().pageContext;switch(Bf){case 0:case!1:case"fill":gr=0;break;case 1:case!0:case"stroke":gr=1;break;case 2:case"fillThenStroke":gr=2;break;case 3:case"invisible":gr=3;break;case 4:case"fillAndAddForClipping":gr=4;break;case 5:case"strokeAndAddPathForClipping":gr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":gr=6;break;case 7:case"addToPathForClipping":gr=7}var zf=pl.usedRenderingMode!==void 0?pl.usedRenderingMode:-1;gr!==-1?un+=gr+` Tr
208`:zf!==-1&&(un+=`0 Tr
209`),gr!==-1&&(pl.usedRenderingMode=gr),Me=ee.align||"left";var li,ps=Se*tr,$u=qt.internal.pageSize.getWidth(),ml=ot[Ue];lt=ee.charSpace||ul,ft=ee.maxWidth||0,Lt=Object.assign({autoencode:!0,noBOM:!0},ee.flags);var ms=[],Hu=function(Gt){return qt.getStringUnitWidth(Gt,{font:ml,charSpace:lt,fontSize:Se,doKerning:!1})*Se/Ao};if(Object.prototype.toString.call(p)==="[object Array]"){var vr;_e=us(p),Me!=="left"&&(li=_e.map(Hu));var Er,gl=0;if(Me==="right"){k-=li[0],p=[],nr=_e.length;for(var ra=0;ra<nr;ra++)ra===0?(Er=_o(k),vr=So(z)):(Er=G(gl-li[ra]),vr=-ps),p.push([_e[ra],Er,vr]),gl=li[ra]}else if(Me==="center"){k-=li[0]/2,p=[],nr=_e.length;for(var ia=0;ia<nr;ia++)ia===0?(Er=_o(k),vr=So(z)):(Er=G((gl-li[ia])/2),vr=-ps),p.push([_e[ia],Er,vr]),gl=li[ia]}else if(Me==="left"){p=[],nr=_e.length;for(var vl=0;vl<nr;vl++)p.push(_e[vl])}else if(Me==="justify"&&ml.encoding==="Identity-H"){p=[],nr=_e.length,ft=ft!==0?ft:$u;for(var gs=0,Pn=0;Pn<nr;Pn++)if(vr=Pn===0?So(z):-ps,Er=Pn===0?_o(k):gs,Pn<nr-1){var Dp=G((ft-li[Pn])/(_e[Pn].split(" ").length-1)),eo=_e[Pn].split(" ");p.push([eo[0]+" ",Er,vr]),gs=0;for(var Ni=1;Ni<eo.length;Ni++){var vs=(Hu(eo[Ni-1]+" "+eo[Ni])-Hu(eo[Ni]))*Ao+Dp;Ni==eo.length-1?p.push([eo[Ni],vs,0]):p.push([eo[Ni]+" ",vs,0]),gs-=vs}}else p.push([_e[Pn],Er,vr]);p.push(["",gs,0])}else{if(Me!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(p=[],nr=_e.length,ft=ft!==0?ft:$u,Pn=0;Pn<nr;Pn++){vr=Pn===0?So(z):-ps,Er=Pn===0?_o(k):0;var Wu=_e[Pn].split(" ").length-1,Vu=Wu>0?(ft-li[Pn])/Wu:0;Pn<nr-1?ms.push(H(G(Vu))):ms.push(0),p.push([_e[Pn],Er,vr])}}}(typeof ee.R2L=="boolean"?ee.R2L:Xe)===!0&&(p=cs(p,function(Gt,Yt,xn){return[Gt.split("").reverse().join(""),Yt,xn]})),ge={text:p,x:k,y:z,options:ee,mutex:{pdfEscape:si,activeFontKey:Ue,fonts:ot,activeFontSize:Se}},Rt.publish("postProcessText",ge),p=ge.text,ln=ge.mutex.isHex||!1;var yl=ot[Ue].encoding;yl!=="WinAnsiEncoding"&&yl!=="StandardEncoding"||(p=cs(p,function(Gt,Yt,xn){return[Uu(Gt),Yt,xn]})),_e=us(p),p=[];for(var ys,ws,oa,Lo=Array.isArray(_e[0])?1:0,aa="",wl=function(Gt,Yt,xn){var Rn="";return xn instanceof Be?(xn=typeof ee.angle=="number"?Bn(xn,new Be(1,0,0,1,Gt,Yt)):Bn(new Be(1,0,0,1,Gt,Yt),xn),A===N&&(xn=Bn(new Be(1,0,0,-1,0,0),xn)),Rn=xn.join(" ")+` Tm
210`):Rn=H(Gt)+" "+H(Yt)+` Td
211`,Rn},rr=0;rr<_e.length;rr++){switch(aa="",Lo){case 1:oa=(ln?"<":"(")+_e[rr][0]+(ln?">":")"),ys=parseFloat(_e[rr][1]),ws=parseFloat(_e[rr][2]);break;case 0:oa=(ln?"<":"(")+_e[rr]+(ln?">":")"),ys=_o(k),ws=So(z)}ms!==void 0&&ms[rr]!==void 0&&(aa=ms[rr]+` Tw
212`),rr===0?p.push(aa+wl(ys,ws,$t)+oa):Lo===0?p.push(aa+oa):Lo===1&&p.push(aa+wl(ys,ws,$t)+oa)}p=Lo===0?p.join(` Tj
213T* `):p.join(` Tj
214`),p+=` Tj
215`;var to=`BT
216/`;return to+=Ue+" "+Se+` Tf
217`,to+=H(Se*tr)+` TL
218`,to+=Qi+`
219`,to+=un,to+=p,D(to+="ET"),g[Ue]=!0,qt};var Np=d.__private__.clip=d.clip=function(p){return D(p==="evenodd"?"W*":"W"),this};
vendor: 4,142 bytes, line 219
219d.clipEvenOdd=function(){return Np("evenodd")},d.__private__.discardPath=d.discardPath=function(){return D("n"),this};var Xi=d.__private__.isValidStyle=function(p){var k=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(p)!==-1&&(k=!0),k};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(p){return Xi(p)&&(c=p),this};var Rf=d.__private__.getStyle=d.getStyle=function(p){var k=c;switch(p){case"D":case"S":k="S";break;case"F":k="f";break;case"FD":case"DF":k="B";break;case"f":case"f*":case"B":case"B*":k=p}return k},al=d.close=function(){return D("h"),this};d.stroke=function(){return D("S"),this},d.fill=function(p){return sl("f",p),this},d.fillEvenOdd=function(p){return sl("f*",p),this},d.fillStroke=function(p){return sl("B",p),this},d.fillStrokeEvenOdd=function(p){return sl("B*",p),this};var sl=function(p,k){Bt(k)==="object"?Ap(k,p):D(p)},ju=function(p){p===null||A===N&&p===void 0||(p=Rf(p),D(p))};function kp(p,k,z,ee,oe){var ge=new Ul(k||this.boundingBox,z||this.xStep,ee||this.yStep,this.gState,oe||this.matrix);ge.stream=this.stream;var _e=p+"$$"+this.cloneIndex+++"$$";return on(_e,ge),ge}var Ap=function(p,k){var z=Ut[p.key],ee=Qe[z];if(ee instanceof Ns)D("q"),D(Lp(k)),ee.gState&&d.setGState(ee.gState),D(p.matrix.toString()+" cm"),D("/"+z+" sh"),D("Q");else if(ee instanceof Ul){var oe=new Be(1,0,0,-1,0,ls());p.matrix&&(oe=oe.multiply(p.matrix||Wn),z=kp.call(ee,p.key,p.boundingBox,p.xStep,p.yStep,oe).id),D("q"),D("/Pattern cs"),D("/"+z+" scn"),ee.gState&&d.setGState(ee.gState),D(k),D("Q")}},Lp=function(p){switch(p){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Jo=d.moveTo=function(p,k){return D(H(G(p))+" "+H(B(k))+" m"),this},Of=d.lineTo=function(p,k){return D(H(G(p))+" "+H(B(k))+" l"),this},ea=d.curveTo=function(p,k,z,ee,oe,ge){return D([H(G(p)),H(B(k)),H(G(z)),H(B(ee)),H(G(oe)),H(B(ge)),"c"].join(" ")),this};d.__private__.line=d.line=function(p,k,z,ee,oe){if(isNaN(p)||isNaN(k)||isNaN(z)||isNaN(ee)||!Xi(oe))throw new Error("Invalid arguments passed to jsPDF.line");return A===x?this.lines([[z-p,ee-k]],p,k,[1,1],oe||"S"):this.lines([[z-p,ee-k]],p,k,[1,1]).stroke()},d.__private__.lines=d.lines=function(p,k,z,ee,oe,ge){var _e,ze,Me,lt,ft,Lt,Cn,$t,qt,Xt,ln,un;if(typeof p=="number"&&(un=z,z=k,k=p,p=un),ee=ee||[1,1],ge=ge||!1,isNaN(k)||isNaN(z)||!Array.isArray(p)||!Array.isArray(ee)||!Xi(oe)||typeof ge!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Jo(k,z),_e=ee[0],ze=ee[1],lt=p.length,Xt=k,ln=z,Me=0;Me<lt;Me++)(ft=p[Me]).length===2?(Xt=ft[0]*_e+Xt,ln=ft[1]*ze+ln,Of(Xt,ln)):(Lt=ft[0]*_e+Xt,Cn=ft[1]*ze+ln,$t=ft[2]*_e+Xt,qt=ft[3]*ze+ln,Xt=ft[4]*_e+Xt,ln=ft[5]*ze+ln,ea(Lt,Cn,$t,qt,Xt,ln));return ge&&al(),ju(oe),this},d.path=function(p){for(var k=0;k<p.length;k++){var z=p[k],ee=z.c;switch(z.op){case"m":Jo(ee[0],ee[1]);break;case"l":Of(ee[0],ee[1]);break;case"c":ea.apply(this,ee);break;case"h":al()}}return this},d.__private__.rect=d.rect=function(p,k,z,ee,oe){if(isNaN(p)||isNaN(k)||isNaN(z)||isNaN(ee)||!Xi(oe))throw new Error("Invalid arguments passed to jsPDF.rect");return A===x&&(ee=-ee),D([H(G(p)),H(B(k)),H(G(z)),H(G(ee)),"re"].join(" ")),ju(oe),this},d.__private__.triangle=d.triangle=function(p,k,z,ee,oe,ge,_e){if(isNaN(p)||isNaN(k)||isNaN(z)||isNaN(ee)||isNaN(oe)||isNaN(ge)||!Xi(_e))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[z-p,ee-k],[oe-z,ge-ee],[p-oe,k-ge]],p,k,[1,1],_e,!0),this},d.__private__.roundedRect=d.roundedRect=function(p,k,z,ee,oe,ge,_e){if(isNaN(p)||isNaN(k)||isNaN(z)||isNaN(ee)||isNaN(oe)||isNaN(ge)||!Xi(_e))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ze=4/3*(Math.SQRT2-1);return oe=Math.min(oe,.5*z),ge=Math.min(ge,.5*ee),this.lines([[z-2*oe,0],[oe*ze,0,oe,ge-ge*ze,oe,ge],[0,ee-2*ge],[0,ge*ze,-oe*ze,ge,-oe,ge],[2*oe-z,0],[-oe*ze,0,-oe,-ge*ze,-oe,-ge],[0,2*ge-ee],[0,-ge*ze,oe*ze,-ge,oe,-ge]],p+oe,k,[1,1],_e,!0),this},d.__private__.ellipse=d.ellipse=function(p,k,z,ee,oe){if(isNaN(p)||isNaN(k)||isNaN(z)||isNaN(ee)||!Xi(oe))throw new Error("Invalid arguments passed to 
219jsPDF.ellipse");var ge=4/3*(Math.SQRT2-1)*z,_e=4/3*(Math.SQRT2-1)*ee;return Jo(p+z,k),ea(p+z,k-_e,p+ge,k-ee,p,k-ee),ea(p-ge,k-ee,p-z,k-_e,p-z,k),ea(p-z,k+_e,p-ge,k+ee,p,k+ee),ea(p+ge,k+ee,p+z,k+_e,p+z,k),ju(oe),this},d.__private__.circle=d.circle=function(p,k,z,ee){if(isNaN(p)||isNaN(k)||isNaN(z)||!Xi(ee))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(p,k,z,z,ee)},d.setFont=function(p,k,z){return z&&(k=Y(k,z)),Ue=Cf(p,k,{disableWarning:!1}),this};var Ep=d.__private__.getFont=d.getFont=function(){return ot[Cf.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var p,k,z={};for(p in mt)if(mt.hasOwnProperty(p))for(k in z[p]=[],mt[p])mt[p].hasOwnProperty(k)&&z[p].push(k);return z},d.addFont=function(p,k,z,ee,oe){var ge=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ge.indexOf(arguments[3])!==-1?oe=arguments[3]:arguments[3]&&ge.indexOf(arguments[3])==-1&&(z=Y(z,ee)),kf.call(this,p,k,z,oe=oe||"Identity-H")};var as,rt=e.lineWidth||.200025,Cp=d.__private__.getLineWidth=d.getLineWidth=function(){return rt},Pp=d.__private__.setLineWidth=d.setLineWidth=function(p){return rt=p,D(H(G(p))+" w"),this};d.__private__.setLineDash=Ke.API.setLineDash=Ke.API.setLineDashPattern=function(p,k){if(p=p||[],k=k||0,isNaN(k)||!Array.isArray(p))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return p=p.map(function(z){return H(G(z))}).join(" "),k=H(G(k)),D("["+p+"] "+k+" d"),this};var Tp=d.__private__.getLineHeight=d.getLineHeight=function(){return Se*as};d.__private__.getLineHeight=d.getLineHeight=function(){return Se*as};var Rp=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(p){return typeof(p=p||1.15)=="number"&&(as=p),this},Op=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return as};Rp(e.lineHeight);var _o=d.__private__.getHorizontalCoordinate=function(p){return G(p)},So=d.__private__.getVerticalCoordinate=function(p){return A===N?p:Ve[F].mediaBox.topRightY-Ve[F].mediaBox.bottomLeftY-G(p)},Ip=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(p){return H(_o(p))},jp=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(p){return H(So(p))},ll=e.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return Gi(ll)},d.__private__.setStrokeColor=d.setDrawColor=function(p,k,z,ee){return ll=_i({ch1:p,ch2:k,ch3:z,ch4:ee,pdfColorType:"draw",precision:2}),D(ll),this};var Fu=e.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return Gi(Fu)},d.__private__.setFillColor=d.setFillColor=function(p,k,z,ee){return Fu=_i({ch1:p,ch2:k,ch3:z,ch4:ee,pdfColorType:"fill",precision:2}),D(Fu),this};var Qi=e.textColor||"0 g",Fp=d.__private__.getTextColor=d.getTextColor=function(){return Gi(Qi)};d.__private__.setTextColor=d.setTextColor=function(p,k,z,ee){return Qi=_i({ch1:p,ch2:k,ch3:z,ch4:ee,pdfColorType:"text",precision:3}),this};var ul=e.charSpace,Mp=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(ul||0)};d.__private__.setCharSpace=d.setCharSpace=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ul=p,this};var Mu=0;d.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},d.__private__.setLineCap=d.setLineCap=function(p){var k=d.CapJoinStyles[p];if(k===void 0)throw new Error("Line cap style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Mu=k,D(k+" J"),this};var ta=0;d.__private__.setLineJoin=d.setLineJoin=function(p){var k=d.CapJoinStyles[p];if(k===void 0)throw new Error("Line join style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ta=k,D(k+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(p){if(p=p||0,isNaN(p))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return D(H(G(p))+" M"),this},d.GState=Bh,d.setGState=function(p){(p=typeof p=="string"?et[at[p]]:Du(null,p)).equals(Vt)||(D("/"+p.id+" gs"),Vt=p)};var Du=function(p,k){if(!p||!at[p]){var z=!1;
vendor: 9,053 bytes, lines 219-221
219for(var ee in et)if(et.hasOwnProperty(ee)&&et[ee].equals(k)){z=!0;break}if(z)k=et[ee];else{var oe="GS"+(Object.keys(et).length+1).toString(10);et[oe]=k,k.id=oe}return p&&(at[p]=k.id),Rt.publish("addGState",k),k}};d.addGState=function(p,k){return Du(p,k),this},d.saveGraphicsState=function(){return D("q"),It.push({key:Ue,size:Se,color:Qi}),this},d.restoreGraphicsState=function(){D("Q");var p=It.pop();return Ue=p.key,Se=p.size,Qi=p.color,Vt=null,this},d.setCurrentTransformationMatrix=function(p){return D(p.toString()+" cm"),this},d.comment=function(p){return D("#"+p),this};var ss=function(p,k){var z=p||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return z},set:function(ge){isNaN(ge)||(z=parseFloat(ge))}});var ee=k||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ee},set:function(ge){isNaN(ge)||(ee=parseFloat(ge))}});var oe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return oe},set:function(ge){oe=ge.toString()}}),this},Bu=function(p,k,z,ee){ss.call(this,p,k),this.type="rect";var oe=z||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return oe},set:function(_e){isNaN(_e)||(oe=parseFloat(_e))}});var ge=ee||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ge},set:function(_e){isNaN(_e)||(ge=parseFloat(_e))}}),this},cl=function(){this.page=gt,this.currentPage=F,this.pages=ke.slice(0),this.pagesContext=Ve.slice(0),this.x=We,this.y=rn,this.matrix=_t,this.width=If(F),this.height=ko(F),this.outputDestination=Ce,this.id="",this.objectNumber=-1};cl.prototype.restore=function(){gt=this.page,F=this.currentPage,Ve=this.pagesContext,ke=this.pages,We=this.x,rn=this.y,_t=this.matrix,No(F,this.width),jf(F,this.height),Ce=this.outputDestination};var zu=function(p,k,z,ee,oe){hn.push(new cl),gt=F=0,ke=[],We=p,rn=k,_t=oe,Ru([z,ee])};for(var fl in d.beginFormObject=function(p,k,z,ee,oe){return zu(p,k,z,ee,oe),this},d.endFormObject=function(p){return function(k){if(At[k])hn.pop().restore();else{var z=new cl,ee="Xo"+(Object.keys(st).length+1).toString(10);z.id=ee,At[k]=ee,st[ee]=z,Rt.publish("addFormObject",z),hn.pop().restore()}}(p),this},d.doFormObject=function(p,k){var z=st[At[p]];return D("q"),D(k.toString()+" cm"),D("/"+z.id+" Do"),D("Q"),this},d.getFormObject=function(p){var k=st[At[p]];return{x:k.x,y:k.y,width:k.width,height:k.height,matrix:k.matrix}},d.save=function(p,k){return p=p||"generated.pdf",(k=k||{}).returnPromise=k.returnPromise||!1,k.returnPromise===!1?(Ss(il(Zi()),p),typeof Ss.unload=="function"&&it.setTimeout&&setTimeout(Ss.unload,911),this):new Promise(function(z,ee){try{var oe=Ss(il(Zi()),p);typeof Ss.unload=="function"&&it.setTimeout&&setTimeout(Ss.unload,911),z(oe)}catch(ge){ee(ge.message)}})},Ke.API)Ke.API.hasOwnProperty(fl)&&(fl==="events"&&Ke.API.events.length?function(p,k){var z,ee,oe;for(oe=k.length-1;oe!==-1;oe--)z=k[oe][0],ee=k[oe][1],p.subscribe.apply(p,[z].concat(typeof ee=="function"?[ee]:ee))}(Rt,Ke.API.events):d[fl]=Ke.API[fl]);function If(p){return Ve[p].mediaBox.topRightX-Ve[p].mediaBox.bottomLeftX}function No(p,k){Ve[p].mediaBox.topRightX=k+Ve[p].mediaBox.bottomLeftX}function ko(p){return Ve[p].mediaBox.topRightY-Ve[p].mediaBox.bottomLeftY}function jf(p,k){Ve[p].mediaBox.topRightY=k+Ve[p].mediaBox.bottomLeftY}var Ff=d.getPageWidth=function(p){return If(p=p||F)/nt},Mf=d.setPageWidth=function(p,k){No(p,k*nt)},ls=d.getPageHeight=function(p){return ko(p=p||F)/nt},Df=d.setPageHeight=function(p,k){jf(p,k*nt)};return d.internal={pdfEscape:si,getStyle:Rf,getFont:Ep,getFontSize:Oe,getCharSpace:Mp,getTextColor:Fp,getLineHeight:Tp,getLineHeightFactor:Op,getLineWidth:Cp,write:Pe,getHorizontalCoordinate:_o,getVerticalCoordinate:So,getCoordinateString:Ip,getVerticalCoordinateString:jp,collections:{},newObject:pn,newAdditionalObject:rs,newObjectDeferred:zn,newObjectDeferredBegin:Vn,getFilters:Si,putStream:ai,events:Rt,scaleFactor:nt,pageSize:{getWidth:function(){return Ff(F)},setWidth:function(p){Mf(F,p)},getHeight:function(){return ls(F)},setHeight:function(p){Df(F,p)}},encryptionOptions:h,encryption:Gn,getEncryptor:function(p){return h!==null?Gn.encryptor(p,0):function(k){return k}},output:ol,getNumberOfPages:Ef,get pages(){return ke},out:D,f2:P,f3:R,getPageInfo:Tf,getPageInfoByObjId:_p,getCurrentPageInfo:Sp,getPDFVersion:w,Point:ss,Rectangle:Bu,Matrix:Be,hasHotfix:xo},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Ff(F)},set:function(p){Mf(F,p)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return ls(F)},set:function(p){Df(F,p)},enumerable:!0,configurable:!0}),(function(p){for(var k=0,z=Ye.length;k<z;k++){var ee=kf.call(this,p[k][0],p[k][1],p[k][2],Ye[k][3],!0);m===!1&&(g[ee]=!0);var oe=p[k][0].split("-");Nf({id:ee,fontName:oe[0],fontStyle:oe[1]||""})}Rt.publish("addFonts",{fonts:ot,dictionary:mt})}).call(d,Ye),Ue="F1",Af(i,n),Rt.publish("initialized"),d}Ll.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Ll.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ll.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Ll.prototype.processOwnerPassword=function(e,t){return O2(R2(t).substr(0,5),e)},Ll.prototype.encryptor=function(e,t){var n=R2(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return O2(n,r)}},Bh.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||Bt(e)!==Bt(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},Ke.API={events:[]},Ke.version="4.2.1";var yn=Ke.API,ig=1,Js=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ks=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},ct=function(e){return e.toFixed(2)},va=function(e){return e.toFixed(5)};yn.__acroform__={};var zr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Hy=function(e){return e*ig},io=function(e){var t=new f_,n=Fe.internal.getHeight(e)||0,r=Fe.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ct(r)),Number(ct(n))],t},CT=yn.__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},PT=yn.__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)},TT=yn.__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},kn=yn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return TT(e,t-1)},An=yn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return CT(e,t-1)},Ln=yn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return PT(e,t-1)},RT=yn.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],o=e[1],a=e[2],s=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(o+s)||0,l.upperRight_X=n(i+a)||0,l.upperRight_Y=r(o)||0,[Number(ct(l.lowerLeft_X)),Number(ct(l.lowerLeft_Y)),Number(ct(l.upperRight_X)),Number(ct(l.upperRight_Y))]},OT=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=I2(e,n),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+" "+ct(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=io(e);return o.scope=e.scope,o.stream=t.join(`
220`),o}},I2=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={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(P){return P.split(`
221`)}):i.map(function(P){return[P]});var o=n,a=Fe.internal.getHeight(e)||0;a=a<0?-a:a;var s=Fe.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(P,R,G){if(P+1<i.length){var B=R+" "+i[P+1][0];return Id(B,e,G).width<=s-4}return!1};o++;e:for(;o>0;){t="",o--;var c,h,m=Id("3",e,o).height,g=e.multiline?a-o:(a-m)/2,d=g+=2,S=0,w=0,_=0;if(o<=0){t=`(...) Tj
222`,t+="% Width of Text: "+Id(t,e,o=12).width+", FieldWidth:"+s+`
223`;break}for(var y="",x=0,N=0;N<i.length;N++)if(i.hasOwnProperty(N)){var A=!1;if(i[N].length!==1&&_!==i[N].length-1){if((m+2)*(x+2)+2>a)continue e;y+=i[N][_],A=!0,w=N,N--}else{y=(y+=i[N][_]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var M=parseInt(N),K=l(M,y,o),Y=N>=i.length-1;if(K&&!Y){y+=" ",_=0;continue}if(K||Y){if(Y)w=M;else if(e.multiline&&(m+2)*(x+2)+2>a)continue e}else{if(!e.multiline||(m+2)*(x+2)+2>a)continue e;w=M}}for(var H="",I=S;I<=w;I++){var Z=i[I];if(e.multiline){if(I===w){H+=Z[_]+" ",_=(_+1)%Z.length;continue}if(I===S){H+=Z[Z.length-1]+" ";continue}}H+=Z[0]+" "}switch(H=H.substr(H.length-1)==" "?H.substr(0,H.length-1):H,h=Id(H,e,o).width,e.textAlign){case"right":c=s-h-2;break;case"center":c=(s-h)/2;break;default:c=2}t+=ct(c)+" "+ct(d)+` Td
224`,t+="("+Js(H)+`) Tj
225`,t+=-ct(c)+` 0 Td
226`,d=-(o+2),h=0,S=A?w:w+1,x++,y=""}break}return r.text=t,r.fontSize=o,r},Id=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},IT={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},jT=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},FT=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Wi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(IT)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ig=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new d_,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o.objId=void 0,o.hasAnnotation&&jT(o,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var o=!r;for(var a in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(a)){var s=r[a],l=[],c=s.Rect;if(s.Rect&&(s.Rect=RT(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Fe.createDefaultAppearanceStream(s),Bt(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var h=OT(s);l.push({key:"AP",value:"<</N "+h+">>"}),i.internal.acroformPlugin.xForms.push(h)}if(s.appearanceStreamContent){var m="";for(var g in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(g)){var d=s.appearanceStreamContent[g];if(m+="/"+g+" ",m+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var a in d)if(d.hasOwnProperty(a)){var S=d[a];typeof S=="function"&&(S=S.call(i,s)),m+="/"+a+" "+S+" ",i.internal.acroformPlugin.xForms.indexOf(S)>=0||i.internal.acroformPlugin.xForms.push(S)}}else typeof(S=d)=="function"&&(S=S.call(i,s)),m+="/"+a+" "+S,i.internal.acroformPlugin.xForms.indexOf(S)>=0||i.internal.acroformPlugin.xForms.push(S);m+=">>"}l.push({key:"AP",value:`<<
227`+m+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}o&&function(w,_){for(var y in w)if(w.hasOwnProperty(y)){var x=y,N=w[y];_.internal.newObjectDeferredBegin(N.objId,!0),Bt(N)==="object"&&typeof N.putStream=="function"&&N.putStream(),delete w[x]}}(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},c_=yn.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(a){return a};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(o!==0&&(i+=" "),Bt(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":e[o].substr(0,1)==="/"?i+="/"+Ks(e[o].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+Js(r(e[o].toString()))+")")}return i+"]"}
vendor: 21,868 bytes, lines 227-238
227throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},i0=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Js(r(e))+")"},fo=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})};fo.prototype.toString=function(){return this.objId+" 0 R"},fo.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},fo.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 n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:c_(i,this.objId,this.scope)}):i instanceof fo?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var f_=function(){fo.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(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};zr(f_,fo);var d_=function(){fo.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 n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Js(n(e))+")"}},set:function(n){e=n}})};zr(d_,fo);var Wi=function e(){fo.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!kn(t,3)},set:function(y){y?this.F=An(t,3):this.F=Ln(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');n=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(y){r[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(y){r[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof zh)return;o="FieldObject"+e.FieldNum++}var y=function(x){return x};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Js(y(o))+")"},set:function(y){o=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(y){o=y}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(y){a=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/ig:c},set:function(y){c=y}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(y){h=y}});var m="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!m||this instanceof zh||this instanceof Bs))return i0(m,this.objId,this.scope)},set:function(y){y=y.toString(),m=y}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof $n==0?i0(g,this.objId,this.scope):g},set:function(y){y=y.toString(),g=this instanceof $n==0?y.substr(0,1)==="("?kl(y.substr(1,y.length-2)):kl(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof $n==1?kl(g.substr(1,g.length-1)):g},set:function(y){y=y.toString(),g=this instanceof $n==1?"/"+Ks(y):y}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof $n==0?i0(d,this.objId,this.scope):d},set:function(y){y=y.toString(),d=this instanceof $n==0?y.substr(0,1)==="("?kl(y.substr(1,y.length-2)):kl(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof $n==1?kl(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof $n==1?"/"+Ks(y):y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var S,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(y){y=!!y,w=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(S)return S},set:function(y){S=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,1)},set:function(y){y?this.Ff=An(this.Ff,1):this.Ff=Ln(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,2)},set:function(y){y?this.Ff=An(this.Ff,2):this.Ff=Ln(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,3)},set:function(y){y?this.Ff=An(this.Ff,3):this.Ff=Ln(this.Ff,3)}});var _=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_!==null)return _},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');_=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(_){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:_=2;break;case"center":case 1:_=1;break;default:_=0}}})};zr(Wi,fo);var Ql=function(){Wi.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(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return c_(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(o,a,s){s||(s=1);for(var l,c=[];l=a.exec(o);)c.push(l[s]);return c}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,18)},set:function(n){n?this.Ff=An(this.Ff,18):this.Ff=Ln(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=An(this.Ff,19):this.Ff=Ln(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,20)},set:function(n){n?(this.Ff=An(this.Ff,20),t.sort()):this.Ff=Ln(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,22)},set:function(n){n?this.Ff=An(this.Ff,22):this.Ff=Ln(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,23)},set:function(n){n?this.Ff=An(this.Ff,23):this.Ff=Ln(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,27)},set:function(n){n?this.Ff=An(this.Ff,27):this.Ff=Ln(this.Ff,27)}}),this.hasAppearanceStream=!1};zr(Ql,Wi);var Jl=function(){Ql.call(this),this.fontName="helvetica",this.combo=!1};zr(Jl,Ql);var eu=function(){Jl.call(this),this.combo=!0};zr(eu,Jl);var eh=function(){eu.call(this),this.edit=!0};zr(eh,eu);var $n=function(){Wi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,15)},set:function(n){n?this.Ff=An(this.Ff,15):this.Ff=Ln(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,16)},set:function(n){n?this.Ff=An(this.Ff,16):this.Ff=Ln(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,17)},set:function(n){n?this.Ff=An(this.Ff,17):this.Ff=Ln(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,26)},set:function(n){n?this.Ff=An(this.Ff,26):this.Ff=Ln(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+Js(n(t[r]))+")");return i.push(">>"),i.join(`
228`)}},set:function(n){Bt(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var r=n==null?"":n.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+Ks(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+Ks(n)}})};zr($n,Wi);var th=function(){$n.call(this),this.pushButton=!0};zr(th,$n);var tu=function(){$n.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:[]}})};zr(tu,$n);var zh=function(){var e,t;Wi.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 n,r={};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("<<"),r)a.push("/"+o+" ("+Js(i(r[o]))+")");return a.push(">>"),a.join(`
229`)},set:function(i){Bt(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){var o=i==null?"":i.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),n="/"+Ks(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){var o=i==null?"":i.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),n="/"+Ks(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Fe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};zr(zh,Wi),tu.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 n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},tu.prototype.createOption=function(e){var t=new zh;return t.Parent=this,t.optionName=e,this.Kids.push(t),MT.call(this.scope,t),t};var nh=function(){$n.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Fe.CheckBox.createAppearanceStream()};zr(nh,$n);var Bs=function(){Wi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,13)},set:function(t){t?this.Ff=An(this.Ff,13):this.Ff=Ln(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,21)},set:function(t){t?this.Ff=An(this.Ff,21):this.Ff=Ln(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,23)},set:function(t){t?this.Ff=An(this.Ff,23):this.Ff=Ln(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,24)},set:function(t){t?this.Ff=An(this.Ff,24):this.Ff=Ln(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,25)},set:function(t){t?this.Ff=An(this.Ff,25):this.Ff=Ln(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,26)},set:function(t){t?this.Ff=An(this.Ff,26):this.Ff=Ln(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}})};zr(Bs,Wi);var rh=function(){Bs.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!kn(this.Ff,14)},set:function(e){e?this.Ff=An(this.Ff,14):this.Ff=Ln(this.Ff,14)}}),this.password=!0};zr(rh,Bs);var Fe={CheckBox:{createAppearanceStream:function(){return{N:{On:Fe.CheckBox.YesNormal},D:{On:Fe.CheckBox.YesPushDown,Off:Fe.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=io(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=I2(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ct(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(`
230`),t},YesNormal:function(e){var t=io(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],o=Fe.internal.getHeight(e),a=Fe.internal.getWidth(e),s=I2(e,e.caption);return i.push("1 g"),i.push("0 0 "+ct(a)+" "+ct(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ct(a-1)+" "+ct(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+ct(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
231`),t},OffPushDown:function(e){var t=io(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
232`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Fe.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Fe.RadioButton.Circle.YesNormal,t.D[e]=Fe.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=io(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Fe.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+va(Fe.internal.getWidth(e)/2)+" "+va(Fe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
233`),t},YesPushDown:function(e){var t=io(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Fe.internal.Bezier_C).toFixed(5)),a=Number((r*Fe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+va(Fe.internal.getWidth(e)/2)+" "+va(Fe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+va(Fe.internal.getWidth(e)/2)+" "+va(Fe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
234`),t},OffPushDown:function(e){var t=io(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Fe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+va(Fe.internal.getWidth(e)/2)+" "+va(Fe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
235`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Fe.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Fe.RadioButton.Cross.YesNormal,t.D[e]=Fe.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=io(e);t.scope=e.scope;var n=[],r=Fe.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ct(Fe.internal.getWidth(e)-2)+" "+ct(Fe.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ct(r.x1.x)+" "+ct(r.x1.y)+" m"),n.push(ct(r.x2.x)+" "+ct(r.x2.y)+" l"),n.push(ct(r.x4.x)+" "+ct(r.x4.y)+" m"),n.push(ct(r.x3.x)+" "+ct(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
236`),t},YesPushDown:function(e){var t=io(e);t.scope=e.scope;var n=Fe.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ct(Fe.internal.getWidth(e)-2)+" "+ct(Fe.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ct(n.x1.x)+" "+ct(n.x1.y)+" m"),r.push(ct(n.x2.x)+" "+ct(n.x2.y)+" l"),r.push(ct(n.x4.x)+" "+ct(n.x4.y)+" m"),r.push(ct(n.x3.x)+" "+ct(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
237`),t},OffPushDown:function(e){var t=io(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
238`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Fe.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Fe.internal.getWidth(e),n=Fe.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Fe.internal.getWidth=function(e){var t=0;return Bt(e)==="object"&&(t=Hy(e.Rect[2])),t},Fe.internal.getHeight=function(e){var t=0;return Bt(e)==="object"&&(t=Hy(e.Rect[3])),t};var MT=yn.addField=function(e){if(FT(this,e),!(e instanceof Wi))throw new Error("Invalid argument passed to 
238jsPDF.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};yn.AcroFormChoiceField=Ql,yn.AcroFormListBox=Jl,yn.AcroFormComboBox=eu,yn.AcroFormEditBox=eh,yn.AcroFormButton=$n,yn.AcroFormPushButton=th,yn.AcroFormRadioButton=tu,yn.AcroFormCheckBox=nh,yn.AcroFormTextField=Bs,yn.AcroFormPasswordField=rh,yn.AcroFormAppearance=Fe,yn.AcroForm={ChoiceField:Ql,ListBox:Jl,ComboBox:eu,EditBox:eh,Button:$n,PushButton:th,RadioButton:tu,CheckBox:nh,TextField:Bs,PasswordField:rh,Appearance:Fe},Ke.AcroForm={ChoiceField:Ql,ListBox:Jl,ComboBox:eu,EditBox:eh,Button:$n,PushButton:th,RadioButton:tu,CheckBox:nh,TextField:Bs,PasswordField:rh,Appearance:Fe};function h_(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="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]]},i=e.__addimage__.getImageFileTypeByImageData=function(P,R){var G,B,ae,se,ue,V=n;if((R=R||n)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(K(P))for(ue in r)for(ae=r[ue],G=0;G<ae.length;G+=1){for(se=!0,B=0;B<ae[G].length;B+=1)if(ae[G][B]!==void 0&&ae[G][B]!==P[B]){se=!1;break}if(se===!0){V=ue;break}}else for(ue in r)for(ae=r[ue],G=0;G<ae.length;G+=1){for(se=!0,B=0;B<ae[G].length;B+=1)if(ae[G][B]!==void 0&&ae[G][B]!==P.charCodeAt(B)){se=!1;break}if(se===!0){V=ue;break}}return V===n&&R!==n&&(V=R),V},o=function P(R){for(var G=this.internal.write,B=this.internal.putStream,ae=(0,this.internal.getFilters)();ae.indexOf("FlateEncode")!==-1;)ae.splice(ae.indexOf("FlateEncode"),1);R.objectId=this.internal.newObject();var se=[];if(se.push({key:"Type",value:"/XObject"}),se.push({key:"Subtype",value:"/Image"}),se.push({key:"Width",value:R.width}),se.push({key:"Height",value:R.height}),R.colorSpace===y.INDEXED?se.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]"}):(se.push({key:"ColorSpace",value:"/"+R.colorSpace}),R.colorSpace===y.DEVICE_CMYK&&se.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),se.push({key:"BitsPerComponent",value:R.bitsPerComponent}),"decodeParameters"in R&&R.decodeParameters!==void 0&&se.push({key:"DecodeParms",value:"<<"+R.decodeParameters+">>"}),"transparency"in R&&Array.isArray(R.transparency)&&R.transparency.length>0){for(var ue="",V=0,Q=R.transparency.length;V<Q;V++)ue+=R.transparency[V]+" "+R.transparency[V]+" ";se.push({key:"Mask",value:"["+ue+"]"})}R.sMask!==void 0&&se.push({key:"SMask",value:R.objectId+1+" 0 R"});var de=R.filter!==void 0?["/"+R.filter]:void 0;if(B({data:R.data,additionalKeyValues:se,alreadyAppliedFilters:de,objectId:R.objectId}),G("endobj"),"sMask"in R&&R.sMask!==void 0){var he,E=(he=R.sMaskBitsPerComponent)!==null&&he!==void 0?he:R.bitsPerComponent,F={width:R.width,height:R.height,colorSpace:"DeviceGray",bitsPerComponent:E,data:R.sMask};"filter"in R&&(F.decodeParameters="/Predictor ".concat(R.predictor," /Colors 1 /BitsPerComponent ").concat(E," /Columns ").concat(R.width),F.filter=R.filter),P.call(this,F)}
vendor: 32,161 bytes, lines 238-262
238if(R.colorSpace===y.INDEXED){var W=this.internal.newObject();B({data:H(new Uint8Array(R.palette)),objectId:W}),G("endobj")}},a=function(){var P=this.internal.collections[t+"images"];for(var R in P)o.call(this,P[R])},s=function(){var P,R=this.internal.collections[t+"images"],G=this.internal.write;for(var B in R)G("/I"+(P=R[B]).index,P.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var P=this.internal.collections[t+"images"];return l.call(this),P},h=function(){return Object.keys(this.internal.collections[t+"images"]).length},m=function(P){return typeof e["process"+P.toUpperCase()]=="function"},g=function(P){return Bt(P)==="object"&&P.nodeType===1},d=function(P,R){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var G=""+P.getAttribute("src");if(G.indexOf("data:image/")===0)return Jd(unescape(G).split("base64,").pop());var B=e.loadFile(G,!0);if(B!==void 0)return B}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var ae;switch(R){case"PNG":ae="image/png";break;case"WEBP":ae="image/webp";break;default:ae="image/jpeg"}return Jd(P.toDataURL(ae,1).split("base64,").pop())}},S=function(P){var R=this.internal.collections[t+"images"];if(R){for(var G in R)if(P===R[G].alias)return R[G]}},w=function(P,R,G){return P||R||(P=-96,R=-96),P<0&&(P=-1*G.width*72/P/this.internal.scaleFactor),R<0&&(R=-1*G.height*72/R/this.internal.scaleFactor),P===0&&(P=R*G.width/G.height),R===0&&(R=P*G.height/G.width),[P,R]},_=function(P,R,G,B,ae,se){var ue=w.call(this,G,B,ae),V=this.internal.getCoordinateString,Q=this.internal.getVerticalCoordinateString,de=c.call(this);if(G=ue[0],B=ue[1],de[ae.index]=ae,se){se*=Math.PI/180;var he=Math.cos(se),E=Math.sin(se),F=function(J){return J.toFixed(4)},W=[F(he),F(E),F(-1*E),F(he),0,0,"cm"]}this.internal.write("q"),se?(this.internal.write([1,"0","0",1,V(P),Q(R+B),"cm"].join(" ")),this.internal.write(W.join(" ")),this.internal.write([V(G),"0","0",V(B),"0","0","cm"].join(" "))):this.internal.write([V(G),"0","0",V(B),V(P),Q(R+B),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ae.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},N=e.__addimage__.sHashCode=function(P){var R,G,B=0;if(typeof P=="string")for(G=P.length,R=0;R<G;R++)B=(B<<5)-B+P.charCodeAt(R),B|=0;else if(K(P))for(G=P.byteLength/2,R=0;R<G;R++)B=(B<<5)-B+P[R],B|=0;return B},A=e.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var R=!0;return P.length===0&&(R=!1),P.length%4!=0&&(R=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(R=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(R=!1),R},M=e.__addimage__.extractImageFromDataUrl=function(P){if(P==null||!(P=P.trim()).startsWith("data:"))return null;var R=P.indexOf(",");return R<0?null:P.substring(0,R).trim().endsWith("base64")?P.substring(R+1):null};e.__addimage__.isArrayBuffer=function(P){return P instanceof ArrayBuffer};var K=e.__addimage__.isArrayBufferView=function(P){return P instanceof Int8Array||P instanceof Uint8Array||P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array},Y=e.__addimage__.binaryStringToUint8Array=function(P){for(var R=P.length,G=new Uint8Array(R),B=0;B<R;B++)G[B]=P.charCodeAt(B);return G},H=e.__addimage__.arrayBufferToBinaryString=function(P){for(var R="",G=K(P)?P:new Uint8Array(P),B=0;B<G.length;B+=8192)R+=String.fromCharCode.apply(null,G.subarray(B,B+8192));return R};e.addImage=function(){var P,R,G,B,ae,se,ue,V,Q;if(typeof arguments[1]=="number"?(R=n,G=arguments[1],B=arguments[2],ae=arguments[3],se=arguments[4],ue=arguments[5],V=arguments[6],Q=arguments[7]):(R=arguments[1],G=arguments[2],B=arguments[3],ae=arguments[4],se=arguments[5],ue=arguments[6],V=arguments[7],Q=arguments[8]),Bt(P=arguments[0])==="object"&&!g(P)&&"imageData"in P){var de=P;P=de.imageData,R=de.format||R||n,G=de.x||G||0,B=de.y||B||0,ae=de.w||de.width||ae,se=de.h||de.height||se,ue=de.alias||ue,V=de.compression||V,Q=de.rotation||de.angle||Q}var he=this.internal.getFilters();if(V===void 0&&he.indexOf("FlateEncode")!==-1&&(V="SLOW"),isNaN(G)||isNaN(B))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var E=I.call(this,P,R,ue,V);return _.call(this,G,B,ae,se,E,Q),this};var I=function(P,R,G,B){var ae,se,ue;if(typeof P=="string"&&i(P)===n){P=unescape(P);var V=Z(P,!1);(V!==""||(V=e.loadFile(P,!0))!==void 0)&&(P=V)}if(g(P)&&(P=d(P,R)),R=i(P,R),!m(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(((ue=G)==null||ue.length===0)&&(G=function(Q){return typeof Q=="string"||K(Q)?N(Q):K(Q.data)?N(Q.data):null}(P)),(ae=S.call(this,G))||(P instanceof Uint8Array||R==="RGBA"||(se=P,P=Y(P)),ae=this["process"+R.toUpperCase()](P,h.call(this),G,function(Q){return Q&&typeof Q=="string"&&(Q=Q.toUpperCase()),Q in e.image_compression?Q:x.NONE}(B),se)),!ae)throw new Error("An unknown error occurred whilst processing the image.");return ae},Z=e.__addimage__.convertBase64ToBinaryString=function(P,R){R=typeof R!="boolean"||R;var G,B="";if(typeof P=="string"){var ae;G=(ae=M(P))!==null&&ae!==void 0?ae:P;try{B=Jd(G)}catch(se){if(R)throw A(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+se.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return B};e.getImageProperties=function(P){var R,G,B="";if(g(P)&&(P=d(P)),typeof P=="string"&&i(P)===n&&((B=Z(P,!1))===""&&(B=e.loadFile(P)||""),P=B),G=i(P),!m(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(P instanceof Uint8Array||(P=Y(P)),!(R=this["process"+G.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return R.fileType=G,R}})(Ke.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Ke.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,o,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),c=n.pageContext.annotations,h=!1,m=0;m<c.length&&!h;m++)switch((r=c[m]).type){case"link":(t(r.options.url)||t(r.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++){r=c[g];var d=this.internal.pdfEscape,S=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),_=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(w.objId),x=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+d(y(r.contents))+")",o+=" /Popup "+_.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+d(y(x))+") >>",w.content=o;var N=w.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+a(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+N,r.open&&(o+=" /Open true"),o+=" >>",_.content=o,this.internal.write(w.objId,"0 R",_.objId,"0 R");break;case"freetext":i="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var A="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+d(S(r.contents))+")",o+=" /DS("+d(S(A))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var M=this.annotations._nameMap[r.options.name];r.options.pageNumber=M.page,r.options.top=M.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+d(S(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var K=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+K+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,o,a){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(n),y:c(r),w:l(n+i),h:c(r+o)},options:a,type:"link"})},e.textWithLink=function(n,r,i,o){var a,s,l=this.getTextWidth(n),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){s=o.maxWidth;var h=this.splitTextToSize(n,s).length;a=Math.ceil(c*h)}else s=l,a=c;return this.text(n,r,i,o),i+=.2*c,o.align==="center"&&(r-=l/2),o.align==="right"&&(r-=l),this.link(r,i-c,s,a,o),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(Ke.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]},n={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(w){return t[w.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},s=e.__arabicParser__.isArabicEndLetter=function(w){return a(w)&&o(w)&&t[w.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(w){return a(w)&&i.indexOf(w.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return a(w)&&o(w)&&t[w.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(w){return a(w)&&o(w)&&t[w.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(w){return a(w)&&o(w)&&t[w.charCodeAt(0)].length>=3};var h=e.__arabicParser__.arabicLetterHasMedialForm=function(w){return a(w)&&o(w)&&t[w.charCodeAt(0)].length==4},m=e.__arabicParser__.resolveLigatures=function(w){var _=0,y=n,x="",N=0;for(_=0;_<w.length;_+=1)y[w.charCodeAt(_)]!==void 0?(N++,typeof(y=y[w.charCodeAt(_)])=="number"&&(x+=String.fromCharCode(y),y=n,N=0),_===w.length-1&&(y=n,x+=w.charAt(_-(N-1)),_-=N-1,N=0)):(y=n,x+=w.charAt(_-N),_-=N,N=0);return x};e.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&r[w.charCodeAt(0)]!==void 0};var g=e.__arabicParser__.getCorrectForm=function(w,_,y){return a(w)?o(w)===!1?-1:!c(w)||!a(_)&&!a(y)||!a(y)&&s(_)||s(w)&&!a(_)||s(w)&&l(_)||s(w)&&s(_)?0:h(w)&&a(_)&&!s(_)&&a(y)&&c(y)?3:s(w)||!a(y)?1:2:-1},d=function(w){var _=0,y=0,x=0,N="",A="",M="",K=(w=w||"").split("\\s+"),Y=[];for(_=0;_<K.length;_+=1){for(Y.push(""),y=0;y<K[_].length;y+=1)N=K[_][y],A=K[_][y-1],M=K[_][y+1],a(N)?(x=g(N,A,M),Y[_]+=x!==-1?String.fromCharCode(t[N.charCodeAt(0)][x]):N):Y[_]+=N;Y[_]=m(Y[_])}return Y.join(" ")},S=e.__arabicParser__.processArabic=e.processArabic=function(){var w,_=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(_)){var x=0;for(y=[],x=0;x<_.length;x+=1)Array.isArray(_[x])?y.push([d(_[x][0]),_[x][1],_[x][2]]):y.push([d(_[x])]);w=y}else w=d(_);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};e.events.push(["preProcessText",S])}(Ke.API),Ke.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(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")})),this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(s){n=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+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(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[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}])}(Ke.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=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(w){l=w}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(w){c=w}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var m=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return m},set:function(w){m=w}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(w){g=w}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var S=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return S},set:function(w){S=w}}),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 r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){r.call(this);var h=(c=c||{}).fontSize||this.getFontSize(),m=c.font||this.getFont(),g=c.scaleFactor||this.internal.scaleFactor,d=0,S=0,w=0,_=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(N,A){return N.concat(_.splitTextToSize(A,y))},[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)d<(w=this.getStringUnitWidth(l[x],{font:m})*h)&&(d=w);return d!==0&&(S=l.length),{w:d/=g,h:Math.max((S*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/g,0)}},e.cellAddPage=function(){r.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],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,m=this.internal.__cell__.margins||t,g=this.internal.__cell__.tableHeaderRow,d=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+m.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=m.top,d&&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,n===!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,m,g){if(r.call(this),!h)throw new Error("No data for PDF table.");var d,S,w,_,y=[],x=[],N=[],A={},M={},K=[],Y=[],H=(g=g||{}).autoSize||!1,I=g.printHeaders!==!1,Z=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,P=g.margins||Object.assign({width:this.getPageWidth()},t),R=typeof g.padding=="number"?g.padding:3,G=g.headerBackgroundColor||"#c8c8c8",B=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=I,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=Z,this.internal.__cell__.padding=R,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=B,this.setFontSize(Z),m==null)x=y=Object.keys(h[0]),N=y.map(function(){return"left"});else if(Array.isArray(m)&&Bt(m[0])==="object")for(y=m.map(function(de){return de.name}),x=m.map(function(de){return de.prompt||de.name||""}),N=m.map(function(de){return de.align||"left"}),d=0;d<m.length;d+=1)M[m[d].name]=.7499990551181103*m[d].width;else Array.isArray(m)&&typeof m[0]=="string"&&(x=y=m,N=y.map(function(){return"left"}));if(H||Array.isArray(m)&&typeof m[0]=="string")for(d=0;d<y.length;d+=1){for(A[_=y[d]]=h.map(function(de){return de[_]}),this.setFont(void 0,"bold"),K.push(this.getTextDimensions(x[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),S=A[_],this.setFont(void 0,"normal"),w=0;w<S.length;w+=1)K.push(this.getTextDimensions(S[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);M[_]=Math.max.apply(null,K)+R+R,K=[]}if(I){var ae={};for(d=0;d<y.length;d+=1)ae[y[d]]={},ae[y[d]].text=x[d],ae[y[d]].align=N[d];var se=s.call(this,ae,M);Y=y.map(function(de){return new o(l,c,M[de],se,ae[de].text,void 0,ae[de].align)}),this.setTableHeaderRow(Y),this.printHeaderRow(1,!1)}var ue=m.reduce(function(de,he){return de[he.name]=he.align,de},{});for(d=0;d<h.length;d+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:d,data:h[d]},this);var V=s.call(this,h[d],M);for(w=0;w<y.length;w+=1){var Q=h[d][y[w]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:d,col:w,data:Q},this),a.call(this,new o(l,c,M[y[w]],V,Q,d+2,ue[y[w]]))}}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,m=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(l).map(function(d){var S=l[d];return this.splitTextToSize(S.hasOwnProperty("text")?S.text:S,c[d]-h-h)},this).map(function(d){return this.getLineHeightFactor()*d.length*m/g+h+h},this).reduce(function(d,S){return Math.max(d,S)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var m=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(m[0],m[1],m[2],m[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){h=this.internal.__cell__.tableHeaderRow[d].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"),n=!1}}(Ke.API);var p_={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},m_=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],j2=h_(m_),g_=[100,200,300,400,500,600,700,800,900],DT=h_(g_);function o0(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return p_[o=o||"normal"]?o:"normal"}(e.style),r=function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400}(e.weight),i=function(o){return typeof j2[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function Wy(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var BT={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Vy={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Gy(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Yy(e){return e.trimLeft()}function zT(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function UT(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 Al,jd,Ky,Zy,Xy,a0=["times"];function Qy(e,t,n,r,i){var o=4,a=ew;switch(i){case Ke.API.image_compression.FAST:o=1,a=Jy;break;case Ke.API.image_compression.MEDIUM:o=6,a=tw;break;case Ke.API.image_compression.SLOW:o=9,a=nw}e=function(l,c,h,m){for(var g,d=l.length/c,S=new Uint8Array(l.length+d),w=[qT,Jy,ew,tw,nw],_=0;_<d;_+=1){var y=_*c,x=l.subarray(y,y+c);if(m)S.set(m(x,h,g),y+_);else{for(var N=w.length,A=[],M=0;M<N;M+=1)A[M]=w[M](x,h,g);var K=HT(A.concat());S.set(A[K],y+_)}g=x}return S}(e,t,Math.ceil(n*r/8),a);var s=_2(e,{level:o});return Ke.API.__addimage__.arrayBufferToBinaryString(s)}function qT(e){var t=Array.apply([],e);return t.unshift(0),t}function Jy(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var o=e[i-t]||0;r[i+1]=e[i]-o+256&255}return r}function ew(e,t,n){var r=e.length,i=[];i[0]=2;for(var o=0;o<r;o+=1){var a=n&&n[o]||0;i[o+1]=e[o]-a+256&255}return i}function tw(e,t,n){var r=e.length,i=[];i[0]=3;for(var o=0;o<r;o+=1){var a=e[o-t]||0,s=n&&n[o]||0;i[o+1]=e[o]+256-(a+s>>>1)&255}return i}function nw(e,t,n){var r=e.length,i=[];i[0]=4;for(var o=0;o<r;o+=1){var a=$T(e[o-t]||0,n&&n[o]||0,n&&n[o-t]||0);i[o+1]=e[o]-a+256&255}return i}function $T(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),o=Math.abs(e+t-n-n);return r<=i&&r<=o?e:i<=o?t:n}function HT(e){var t=e.map(function(n){return n.reduce(function(r,i){return r+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function s0(e,t,n){var r=t*n,i=Math.floor(r/8),o=16-(r-8*i+n),a=(1<<n)-1;return v_(e,i)>>o&a}function rw(e,t,n,r){var i=n*r,o=Math.floor(i/8),a=16-(i-8*o+r),s=(1<<r)-1,l=(t&s)<<a;(function(c,h,m){if(h+1<c.byteLength)c.setUint16(h,m,!1);else{var g=m>>8&255;c.setUint8(h,g)}})(e,o,v_(e,o)&~(s<<a)&65535|l)}function v_(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function WT(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 n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,a=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;o&&(s=t,l=a,t+=3*a);var c=!0,h=[],m=0,g=null,d=0,S=null;for(this.width=n,this.height=r;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(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var w=e[t++];m=e[t++]|e[t++]<<8,g=e[t++],1&w||(g=null),d=w>>2&7,t++;break;case 254:for(;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,N=e[t++]|e[t++]<<8,A=e[t++],M=A>>6&1,K=1<<1+(7&A),Y=s,H=l,I=!1;A>>7&&(I=!0,Y=t,H=K,t+=3*K);var Z=t;for(t++;;){var P;if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}h.push({x:_,y,width:x,height:N,has_local_palette:I,palette_offset:Y,palette_size:H,data_offset:Z,data_length:t-Z,transparent_index:g,interlaced:!!M,delay:m,disposal:d});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,G){var B=this.frameInfo(R),ae=B.width*B.height;if(ae>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var se=new Uint8Array(ae);iw(e,B.data_offset,se,ae);var ue=B.palette_offset,V=B.transparent_index;V===null&&(V=256);var Q=B.width,de=n-Q,he=Q,E=4*(B.y*n+B.x),F=4*((B.y+B.height)*n+B.x),W=E,J=4*de;B.interlaced===!0&&(J+=4*n*7);for(var ne=8,re=0,pe=se.length;re<pe;++re){var me=se[re];if(he===0&&(he=Q,(W+=J)>=F&&(J=4*de+4*n*(ne-1),W=E+(Q+de)*(ne<<1),ne>>=1)),me===V)W+=4;else{var ye=e[ue+3*me],ke=e[ue+3*me+1],Re=e[ue+3*me+2];G[W++]=Re,G[W++]=ke,G[W++]=ye,G[W++]=255}--he}},this.decodeAndBlitFrameRGBA=function(R,G){var B=this.frameInfo(R),ae=B.width*B.height;if(ae>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var se=new Uint8Array(ae);iw(e,B.data_offset,se,ae);var ue=B.palette_offset,V=B.transparent_index;V===null&&(V=256);var Q=B.width,de=n-Q,he=Q,E=4*(B.y*n+B.x),F=4*((B.y+B.height)*n+B.x),W=E,J=4*de;B.interlaced===!0&&(J+=4*n*7);for(var ne=8,re=0,pe=se.length;re<pe;++re){var me=se[re];if(he===0&&(he=Q,(W+=J)>=F&&(J=4*de+4*n*(ne-1),W=E+(Q+de)*(ne<<1),ne>>=1)),me===V)W+=4;else{var ye=e[ue+3*me],ke=e[ue+3*me+1],Re=e[ue+3*me+2];G[W++]=ye,G[W++]=ke,G[W++]=Re,G[W++]=255}--he}}}function iw(e,t,n,r){for(var i=e[t++],o=1<<i,a=o+1,s=a+1,l=i+1,c=(1<<l)-1,h=0,m=0,g=0,d=e[t++],S=new Int32Array(4096),w=null;;){for(;h<16&&d!==0;)m|=e[t++]<<h,h+=8,d===1?d=e[t++]:--d;if(h<l)break;var _=m&c;if(m>>=l,h-=l,_!==o){if(_===a)break;for(var y=_<s?_:w,x=0,N=y;N>o;)N=S[N]>>8,++x;var A=N;if(g+x+(y!==_?1:0)>r)return void Wt.log("Warning, gif stream longer than expected.");n[g++]=A;var M=g+=x;for(y!==_&&(n[g++]=A),N=y;x--;)N=S[N],n[--M]=255&N,N>>=8;w!==null&&s<4096&&(S[s++]=w<<8|A,s>=c+1&&l<12&&(++l,c=c<<1|1)),w=_}else s=a+1,c=(1<<(l=i+1))-1,w=null}return g!==r&&Wt.log("Warning, gif stream shorter than expected."),n}/**
239 * @license
240  Copyright (c) 2008, Adobe Systems Incorporated
241  All rights reserved.
242
243  Redistribution and use in source and binary forms, with or without 
244  modification, are permitted provided that the following conditions are
245  met:
246
247  * Redistributions of source code must retain the above copyright notice, 
248    this list of conditions and the following disclaimer.
249  
250  * Redistributions in binary form must reproduce the above copyright
251    notice, this list of conditions and the following disclaimer in the 
252    documentation and/or other materials provided with the distribution.
253  
254  * Neither the name of Adobe Systems Incorporated nor the names of its 
255    contributors may be used to endorse or promote products derived from 
256    this software without specific prior written permission.
257
258  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
259  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
260  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
261  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
262  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
263  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
264  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
265  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
266  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
267  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
268  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
269*/function l0(e){var t,n,r,i,o,a=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),h=new Array(64),m=new Array(65535),g=new Array(65535),d=new Array(64),S=new Array(64),w=[],_=0,y=7,x=new Array(64),N=new Array(64),A=new Array(64),M=new Array(256),K=new Array(2048),Y=[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],H=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],Z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],G=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ae=[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 se(E,F){for(var W=0,J=0,ne=new Array,re=1;re<=16;re++){for(var pe=1;pe<=E[re];pe++)ne[F[J]]=[],ne[F[J]][0]=W,ne[F[J]][1]=re,J++,W++;W*=2}return ne}function ue(E){for(var F=E[0],W=E[1]-1;W>=0;)F&1<<W&&(_|=1<<y),W--,--y<0&&(_==255?(V(255),V(0)):V(_),y=7,_=0)}function V(E){w.push(E)}function Q(E){V(E>>8&255),V(255&E)}function de(E,F,W,J,ne){for(var re,pe=ne[0],me=ne[240],ye=function(Se,Je){var Oe,Xe,De,Tt,bt,Ze,pt,xt,Ue,nt,We=0;for(Ue=0;Ue<8;++Ue){Oe=Se[We],Xe=Se[We+1],De=Se[We+2],Tt=Se[We+3],bt=Se[We+4],Ze=Se[We+5],pt=Se[We+6];var rn=Oe+(xt=Se[We+7]),_t=Oe-xt,ot=Xe+pt,mt=Xe-pt,It=De+Ze,Qe=De-Ze,Ut=Tt+bt,et=Tt-bt,at=rn+Ut,Vt=rn-Ut,gt=ot+It,Ve=ot-It;Se[We]=at+gt,Se[We+4]=at-gt;var Rt=.707106781*(Ve+Vt);Se[We+2]=Vt+Rt,Se[We+6]=Vt-Rt;var tt=.382683433*((at=et+Qe)-(Ve=mt+_t)),st=.5411961*at+tt,At=1.306562965*Ve+tt,hn=.707106781*(gt=Qe+mt),Be=_t+hn,Bn=_t-hn;Se[We+5]=Bn+st,Se[We+3]=Bn-st,Se[We+1]=Be+At,Se[We+7]=Be-At,We+=8}for(We=0,Ue=0;Ue<8;++Ue){Oe=Se[We],Xe=Se[We+8],De=Se[We+16],Tt=Se[We+24],bt=Se[We+32],Ze=Se[We+40],pt=Se[We+48];var Wn=Oe+(xt=Se[We+56]),on=Oe-xt,bn=Xe+pt,pn=Xe-pt,zn=De+Ze,Vn=De-Ze,rs=Tt+bt,Qo=Tt-bt,xi=Wn+rs,Gi=Wn-rs,_i=bn+zn,Si=bn-zn;Se[We]=xi+_i,Se[We+32]=xi-_i;var ai=.707106781*(Si+Gi);Se[We+16]=Gi+ai,Se[We+48]=Gi-ai;var is=.382683433*((xi=Qo+Vn)-(Si=pn+on)),Yi=.5411961*xi+is,os=1.306562965*Si+is,el=.707106781*(_i=Vn+pn),tl=on+el,nl=on-el;Se[We+40]=nl+Yi,Se[We+24]=nl-Yi,Se[We+8]=tl+os,Se[We+56]=tl-os,We++}for(Ue=0;Ue<64;++Ue)nt=Se[Ue]*Je[Ue],d[Ue]=nt>0?nt+.5|0:nt-.5|0;return d}(E,F),ke=0;ke<64;++ke)S[Y[ke]]=ye[ke];var Re=S[0]-W;W=S[0],Re==0?ue(J[0]):(ue(J[g[re=32767+Re]]),ue(m[re]));for(var Ce=63;Ce>0&&S[Ce]==0;)Ce--;if(Ce==0)return ue(pe),W;for(var He,D=1;D<=Ce;){for(var Pe=D;S[D]==0&&D<=Ce;)++D;var ut=D-Pe;if(ut>=16){He=ut>>4;for(var Ye=1;Ye<=He;++Ye)ue(me);ut&=15}re=32767+S[D],ue(ne[(ut<<4)+g[re]]),ue(m[re]),D++}return Ce!=63&&ue(pe),W}function he(E){E=Math.min(Math.max(E,1),100),o!=E&&(function(F){for(var W=[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],J=0;J<64;J++){var ne=a((W[J]*F+50)/100);ne=Math.min(Math.max(ne,1),255),s[Y[J]]=ne}for(var re=[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],pe=0;pe<64;pe++){var me=a((re[pe]*F+50)/100);me=Math.min(Math.max(me,1),255),l[Y[pe]]=me}for(var ye=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ke=0,Re=0;Re<8;Re++)for(var Ce=0;Ce<8;Ce++)c[ke]=1/(s[Y[ke]]*ye[Re]*ye[Ce]*8),h[ke]=1/(l[Y[ke]]*ye[Re]*ye[Ce]*8),ke++}(E<50?Math.floor(5e3/E):Math.floor(200-2*E)),o=E)}this.encode=function(E,F){F&&he(F),w=new Array,_=0,y=7,Q(65496),Q(65504),Q(16),V(74),V(70),V(73),V(70),V(0),V(1),V(1),V(0),Q(1),Q(1),V(0),V(0),function(){Q(65499),Q(132),V(0);for(var Xe=0;Xe<64;Xe++)V(s[Xe]);V(1);for(var De=0;De<64;De++)V(l[De])}(),function(Xe,De){Q(65472),Q(17),V(8),Q(De),Q(Xe),V(3),V(1),V(17),V(0),V(2),V(17),V(1),V(3),V(17),V(1)}(E.width,E.height),function(){Q(65476),Q(418),V(0);for(var Xe=0;Xe<16;Xe++)V(H[Xe+1]);for(var De=0;De<=11;De++)V(I[De]);V(16);for(var Tt=0;Tt<16;Tt++)V(Z[Tt+1]);for(var bt=0;bt<=161;bt++)V(P[bt]);V(1);for(var Ze=0;Ze<16;
vendor: 26,531 bytes, lines 269-275
269Ze++)V(R[Ze+1]);for(var pt=0;pt<=11;pt++)V(G[pt]);V(17);for(var xt=0;xt<16;xt++)V(B[xt+1]);for(var Ue=0;Ue<=161;Ue++)V(ae[Ue])}(),Q(65498),Q(12),V(3),V(1),V(0),V(2),V(17),V(3),V(17),V(0),V(63),V(0);var W=0,J=0,ne=0;_=0,y=7,this.encode.displayName="_encode_";for(var re,pe,me,ye,ke,Re,Ce,He,D,Pe=E.data,ut=E.width,Ye=E.height,Se=4*ut,Je=0;Je<Ye;){for(re=0;re<Se;){for(ke=Se*Je+re,Ce=-1,He=0,D=0;D<64;D++)Re=ke+(He=D>>3)*Se+(Ce=4*(7&D)),Je+He>=Ye&&(Re-=Se*(Je+1+He-Ye)),re+Ce>=Se&&(Re-=re+Ce-Se+4),pe=Pe[Re++],me=Pe[Re++],ye=Pe[Re++],x[D]=(K[pe]+K[me+256|0]+K[ye+512|0]>>16)-128,N[D]=(K[pe+768|0]+K[me+1024|0]+K[ye+1280|0]>>16)-128,A[D]=(K[pe+1280|0]+K[me+1536|0]+K[ye+1792|0]>>16)-128;W=de(x,c,W,t,r),J=de(N,h,J,n,i),ne=de(A,h,ne,n,i),re+=32}Je+=8}if(y>=0){var Oe=[];Oe[1]=y+1,Oe[0]=(1<<y+1)-1,ue(Oe)}return Q(65497),new Uint8Array(w)},e=e||50,function(){for(var E=String.fromCharCode,F=0;F<256;F++)M[F]=E(F)}(),t=se(H,I),n=se(R,G),r=se(Z,P),i=se(B,ae),function(){for(var E=1,F=2,W=1;W<=15;W++){for(var J=E;J<F;J++)g[32767+J]=W,m[32767+J]=[],m[32767+J][1]=W,m[32767+J][0]=J;for(var ne=-(F-1);ne<=-E;ne++)g[32767+ne]=W,m[32767+ne]=[],m[32767+ne][1]=W,m[32767+ne][0]=F-1+ne;E<<=1,F<<=1}}(),function(){for(var E=0;E<256;E++)K[E]=19595*E,K[E+256|0]=38470*E,K[E+512|0]=7471*E+32768,K[E+768|0]=-11059*E,K[E+1024|0]=-21709*E,K[E+1280|0]=32768*E+8421375,K[E+1536|0]=-27439*E,K[E+1792|0]=-5329*E}(),he(e)}/**
270 * @license
271 * Copyright (c) 2017 Aras Abbasi
272 *
273 * Licensed under the MIT License.
274 * http://opensource.org/licenses/mit-license
275 */function Pi(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 ow(e){function t(I){if(!I)throw Error("assert :P")}function n(I,Z,P){for(var R=0;4>R;R++)if(I[Z+R]!=P.charCodeAt(R))return!0;return!1}function r(I,Z,P,R,G){for(var B=0;B<G;B++)I[Z+B]=P[R+B]}function i(I,Z,P,R){for(var G=0;G<R;G++)I[Z+G]=P}function o(I){return new Int32Array(I)}function a(I,Z){for(var P=[],R=0;R<I;R++)P.push(new Z);return P}function s(I,Z){var P=[];return function R(G,B,ae){for(var se=ae[B],ue=0;ue<se&&(G.push(ae.length>B+1?[]:new Z),!(ae.length<B+1));ue++)R(G[ue],B+1,ae)}(P,0,I),P}var l=function(){var I=this;function Z(u,f){for(var v=1<<f-1>>>0;u&v;)v>>>=1;return v?(u&v-1)+v:u}function P(u,f,v,b,L){t(!(b%v));do u[f+(b-=v)]=L;while(0<b)}function R(u,f,v,b,L){if(t(2328>=L),512>=L)var C=o(512);else if((C=o(L))==null)return 0;return function(T,O,j,q,te,fe){var $,ie,le=O,ve=1<<j,ce=o(16),we=o(16);for(t(te!=0),t(q!=null),t(T!=null),t(0<j),ie=0;ie<te;++ie){if(15<q[ie])return 0;++ce[q[ie]]}if(ce[0]==te)return 0;for(we[1]=0,$=1;15>$;++$){if(ce[$]>1<<$)return 0;we[$+1]=we[$]+ce[$]}for(ie=0;ie<te;++ie)$=q[ie],0<q[ie]&&(fe[we[$]++]=ie);if(we[15]==1)return(q=new G).g=0,q.value=fe[0],P(T,le,1,ve,q),ve;var be,Ae=-1,Ne=ve-1,Ge=0,je=1,vt=1,qe=1<<j;for(ie=0,$=1,te=2;$<=j;++$,te<<=1){if(je+=vt<<=1,0>(vt-=ce[$]))return 0;for(;0<ce[$];--ce[$])(q=new G).g=$,q.value=fe[ie++],P(T,le+Ge,te,qe,q),Ge=Z(Ge,$)}for($=j+1,te=2;15>=$;++$,te<<=1){if(je+=vt<<=1,0>(vt-=ce[$]))return 0;for(;0<ce[$];--ce[$]){if(q=new G,(Ge&Ne)!=Ae){for(le+=qe,be=1<<(Ae=$)-j;15>Ae&&!(0>=(be-=ce[Ae]));)++Ae,be<<=1;ve+=qe=1<<(be=Ae-j),T[O+(Ae=Ge&Ne)].g=be+j,T[O+Ae].value=le-O-Ae}q.g=$-j,q.value=fe[ie++],P(T,le+(Ge>>j),te,qe,q),Ge=Z(Ge,$)}}return je!=2*we[15]-1?0:ve}(u,f,v,b,L,C)}function G(){this.value=this.g=0}function B(){this.value=this.g=0}function ae(){this.G=a(5,G),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(ml,B)}function se(u,f,v,b){t(u!=null),t(f!=null),t(2147483648>b),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=f,u.pa=v,u.Jd=f,u.Yc=v+b,u.Zc=4<=b?v+b-4+1:v,pe(u)}function ue(u,f){for(var v=0;0<f--;)v|=ye(u,128)<<f;return v}function V(u,f){var v=ue(u,f);return me(u)?-v:v}function Q(u,f,v,b){var L,C=0;for(t(u!=null),t(f!=null),t(4294967288>b),u.Sb=b,u.Ra=0,u.u=0,u.h=0,4<b&&(b=4),L=0;L<b;++L)C+=f[v+L]<<8*L;u.Ra=C,u.bb=b,u.oa=f,u.pa=v}function de(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<vr-8>>>0,++u.bb,u.u-=8;J(u)&&(u.h=1,u.u=0)}function he(u,f){if(t(0<=f),!u.h&&f<=Hu){var v=W(u)&ms[f];return u.u+=f,de(u),v}return u.h=1,u.u=0}function E(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function F(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function W(u){return u.Ra>>>(u.u&vr-1)>>>0}function J(u){return t(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>vr}function ne(u,f){u.u=f,u.h=J(u)}function re(u){u.u>=Er&&(t(u.u>=Er),de(u))}function pe(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 me(u){return ue(u,1)}function ye(u,f){var v=u.Ca;0>u.b&&pe(u);var b=u.b,L=v*f>>>8,C=(u.I>>>b>L)+0;for(C?(v-=L,u.I-=L+1<<b>>>0):v=L+1,b=v,L=0;256<=b;)L+=8,b>>=8;return b=7^L+gl[b],u.b-=b,u.Ca=(v<<b)-1,C}function ke(u,f,v){u[f+0]=v>>24&255,u[f+1]=v>>16&255,u[f+2]=v>>8&255,u[f+3]=255&v}function Re(u,f){return u[f+0]|u[f+1]<<8}function Ce(u,f){return Re(u,f)|u[f+2]<<16}function He(u,f){return Re(u,f)|Re(u,f+2)<<16}function D(u,f){var v=1<<f;return t(u!=null),t(0<f),u.X=o(v),u.X==null?0:(u.Mb=32-f,u.Xa=f,1)}function Pe(u,f){t(u!=null),t(f!=null),t(u.Xa==f.Xa),r(f.X,0,u.X,0,1<<f.Xa)}function ut(){this.X=[],this.Xa=this.Mb=0}function Ye(u,f,v,b){t(v!=null),t(b!=null);var L=v[0],C=b[0];return L==0&&(L=(u*C+f/2)/f),C==0&&(C=(f*L+u/2)/u),0>=L||0>=C?0:(v[0]=L,b[0]=C,1)}function Se(u,f){return u+(1<<f)-1>>>f}function Je(u,f){return((4278255360&u)+(4278255360&f)>>>0&4278255360)+((16711935&u)+(16711935&f)>>>0&16711935)>>>0}function Oe(u,f){I[f]=function(v,b,L,C,T,O,j){var q;for(q=0;q<T;++q){var te=I[u](O[j+q-1],L,C+q);O[j+q]=Je(v[b+q],te)}}}function Xe(){this.ud=this.hd=this.jd=0}function De(u,f){return((4278124286&(u^f))>>>1)+(u&f)>>>0}function Tt(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function bt(u,f){return Tt(u+(u-f+.5>>1))}function Ze(u,f,v){return Math.abs(f-v)-Math.abs(u-v)}function pt(u,f,v,b,L,C,T){for(b=C[T-1],v=0;v<L;++v)C[T+v]=b=Je(u[f+v],b)}function xt(u,f,v,b,L){var C;for(C=0;C<v;++C){var T=u[f+C],O=T>>8&255,j=16711935&(j=(j=16711935&T)+((O<<16)+O));b[L+C]=(4278255360&T)+j>>>0}}function Ue(u,f){f.jd=255&u,f.hd=u>>8&255,f.ud=u>>16&255}function nt(u,f,v,b,L,C){var T;for(T=0;T<b;++T){var O=f[v+T],j=O>>>8,q=O,te=255&(te=(te=O>>>16)+((u.jd<<24>>24)*(j<<24>>24)>>>5));q=255&(q=(q+=(u.hd<<24>>24)*(j<<24>>24)>>>5)+((u.ud<<24>>24)*(te<<24>>24)>>>5)),L[C+T]=(4278255360&O)+(te<<16)+q}}function We(u,f,v,b,L){I[f]=function(C,T,O,j,q,te,fe,$,ie){for(j=fe;j<$;++j)for(fe=0;fe<ie;++fe)q[te++]=L(O[b(C[T++])])},I[u]=function(C,T,O,j,q,te,fe){var $=8>>C.b,ie=C.Ea,le=C.K[0],ve=C.w;if(8>$)for(C=(1<<C.b)-1,ve=(1<<$)-1;T<O;++T){var ce,we=0;for(ce=0;ce<ie;++ce)ce&C||(we=b(j[q++])),te[fe++]=L(le[we&ve]),we>>=$}else I["VP8LMapColor"+v](j,q,le,ve,te,fe,T,O,ie)}}function rn(u,f,v,b,L){for(v=f+v;f<v;){var C=u[f++];b[L++]=C>>16&255,b[L++]=C>>8&255,b[L++]=255&C}}function _t(u,f,v,b,L){for(v=f+v;f<v;){var C=u[f++];b[L++]=C>>16&255,b[L++]=C>>8&255,b[L++]=255&C,b[L++]=C>>24&255}}function ot(u,f,v,b,L){for(v=f+v;f<v;){var C=(T=u[f++])>>16&240|T>>12&15,T=240&T|T>>28&15;b[L++]=C,b[L++]=T}}function mt(u,f,v,b,L){for(v=f+v;f<v;){var C=(T=u[f++])>>16&248|T>>13&7,T=T>>5&224|T>>3&31;b[L++]=C,b[L++]=T}}function It(u,f,v,b,L){for(v=f+v;f<v;){var C=u[f++];b[L++]=255&C,b[L++]=C>>8&255,b[L++]=C>>16&255}}function Qe(u,f,v,b,L,C){if(C==0)for(v=f+v;f<v;)ke(b,((C=u[f++])[0]>>24|C[1]>>8&65280|C[2]<<8&16711680|C[3]<<24)>>>0),L+=32;else r(b,L,u,f,v)}function Ut(u,f){I[f][0]=I[u+"0"],I[f][1]=I[u+"1"],I[f][2]=I[u+"2"],I[f][3]=I[u+"3"],I[f][4]=I[u+"4"],I[f][5]=I[u+"5"],I[f][6]=I[u+"6"],I[f][7]=I[u+"7"],I[f][8]=I[u+"8"],I[f][9]=I[u+"9"],I[f][10]=I[u+"10"],I[f][11]=I[u+"11"],I[f][12]=I[u+"12"],I[f][13]=I[u+"13"],I[f][14]=I[u+"0"],I[f][15]=I[u+"0"]}function et(u){return u==Up||u==qp||u==Gf||u==$p}function at(){this.eb=[],this.size=this.A=this.fb=0}function Vt(){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 gt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new at,this.f.kb=new Vt,this.sd=null}function Ve(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Rt(){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 st(u,f){var v=u.T,b=f.ba.f.RGBA,L=b.eb,C=b.fb+u.ka*b.A,T=ci[f.ba.S],O=u.y,j=u.O,q=u.f,te=u.N,fe=u.ea,$=u.W,ie=f.cc,le=f.dc,ve=f.Mc,ce=f.Nc,we=u.ka,be=u.ka+u.T,Ae=u.U,Ne=Ae+1>>1;for(we==0?T(O,j,null,null,q,te,fe,$,q,te,fe,$,L,C,null,null,Ae):(T(f.ec,f.fc,O,j,ie,le,ve,ce,q,te,fe,$,L,C-b.A,L,C,Ae),++v);we+2<be;we+=2)ie=q,le=te,ve=fe,ce=$,te+=u.Rc,$+=u.Rc,C+=2*b.A,T(O,(j+=2*u.fa)-u.fa,O,j,ie,le,ve,ce,q,te,fe,$,L,C-b.A,L,C,Ae);return j+=u.fa,u.j+be<u.o?(r(f.ec,f.fc,O,j,Ae),r(f.cc,f.dc,q,te,Ne),r(f.Mc,f.Nc,fe,$,Ne),v--):1&be||T(O,j,null,null,q,te,fe,$,q,te,fe,$,L,C+b.A,null,null,Ae),v}function At(u,f,v){var b=u.F,L=[u.J];if(b!=null){var C=u.U,T=f.ba.S,O=T==Vf||T==Gf;f=f.ba.f.RGBA;var j=[0],q=u.ka;j[0]=u.T,u.Kb&&(q==0?--j[0]:(--q,L[0]-=u.width),u.j+u.ka+u.T==u.o&&(j[0]=u.o-u.j-q));var te=f.eb;q=f.fb+q*f.A,u=cg(b,L[0],u.width,C,j,te,q+(O?0:3),f.A),t(v==j),u&&et(T)&&Yu(te,q,O,C,j,f.A)}return 0}function hn(u){var f=u.ma,v=f.ba.S,b=11>v,L=v==Hf||v==Wf||v==Vf||v==zp||v==12||et(v);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!li(f.Oa,u,L?11:12))return 0;if(L&&et(v)&&Ao(),u.da)alert("todo:use_scaling");else{if(b){if(f.Ib=tt,u.Kb){if(v=u.U+1>>1,f.memory=o(u.U+2*v),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+u.U,f.Mc=f.cc,f.Nc=f.dc+v,f.Ib=st,Ao()}}else alert("todo:EmitYUV");L&&(f.Jb=At,b&&un())}if(b&&!Lg){for(u=0;256>u;++u)D_[u]=89858*(u-128)+Kf>>Yf,U_[u]=-22014*(u-128)+Kf,z_[u]=-45773*(u-128),B_[u]=113618*(u-128)+Kf>>Yf;for(u=Zu;u<Vp;++u)f=76283*(u-16)+Kf>>Yf,q_[u-Zu]=Ki(f,255),$_[u-Zu]=Ki(f+8>>4,15);Lg=1}return 1}function Be(u){var f=u.ma,v=u.U,b=u.T;return t(!(1&u.ka)),0>=v||0>=b?0:(v=f.Ib(u,f),f.Jb!=null&&f.Jb(u,f,v),f.Dc+=v,1)}function Bn(u){u.ma.memory=null}function Wn(u,f,v,b){return he(u,8)!=47?0:(f[0]=he(u,14)+1,v[0]=he(u,14)+1,b[0]=he(u,1),he(u,3)!=0?0:!u.h)}function on(u,f){if(4>u)return u+1;var v=u-2>>1;return(2+(1&u)<<v)+he(f,v)+1}function bn(u,f){return 120<f?f-120:1<=(v=((v=N_[f-1])>>4)*u+(8-(15&v)))?v:1;var v}function pn(u,f,v){var b=W(v),L=u[f+=255&b].g-8;return 0<L&&(ne(v,v.u+8),b=W(v),f+=u[f].value,f+=b&(1<<L)-1),ne(v,v.u+u[f].g),u[f].value}function zn(u,f,v){return v.g+=u.g,v.value+=u.value<<f>>>0,t(8>=v.g),u.g}function Vn(u,f,v){var b=u.xc;return t((f=b==0?0:u.vc[u.md*(v>>b)+(f>>b)])<u.Wb),u.Ya[f]}function rs(u,f,v,b){var L=u.ab,C=u.c*f,T=u.C;f=T+f;var O=v,j=b;for(b=u.Ta,v=u.Ua;0<L--;){var q=u.gc[L],te=T,fe=f,$=O,ie=j,le=(j=b,O=v,q.Ea);switch(t(te<fe),t(fe<=q.nc),q.hc){case 2:vl($,ie,(fe-te)*le,j,O);break;case 0:var ve=te,ce=fe,we=j,be=O,Ae=(qe=q).Ea;ve==0&&(ra($,ie,null,null,1,we,be),pt($,ie+1,0,0,Ae-1,we,be+1),ie+=Ae,be+=Ae,++ve);for(var Ne=1<<qe.b,Ge=Ne-1,je=Se(Ae,qe.b),vt=qe.K,qe=qe.w+(ve>>qe.b)*je;ve<ce;){var Nt=vt,On=qe,yt=1;for(ia($,ie,we,be-Ae,1,we,be);yt<Ae;){var $e=(yt&~Ge)+Ne;$e>Ae&&($e=Ae),(0,Ni[Nt[On++]>>8&15])($,ie+ +yt,we,be+yt-Ae,$e-yt,we,be+yt),yt=$e}ie+=Ae,be+=Ae,++ve&Ge||(qe+=je)}fe!=q.nc&&r(j,O-le,j,O+(fe-te-1)*le,le);break;case 1:for(le=$,ce=ie,Ae=($=q.Ea)-(be=$&~(we=(ie=1<<q.b)-1)),ve=Se($,q.b),Ne=q.K,q=q.w+(te>>q.b)*ve;te<fe;){for(Ge=Ne,je=q,vt=new Xe,qe=ce+be,Nt=ce+$;ce<qe;)Ue(Ge[je++],vt),vs(vt,le,ce,ie,j,O),ce+=ie,O+=ie;ce<Nt&&(Ue(Ge[je++],vt),vs(vt,le,ce,Ae,j,O),ce+=Ae,O+=Ae),++te&we||(q+=ve)}break;case 3:if($==j&&ie==O&&0<q.b){for(ce=j,$=le=O+(fe-te)*le-(be=(fe-te)*Se(q.Ea,q.b)),ie=j,we=O,ve=[],be=(Ae=be)-1;0<=be;--be)ve[be]=ie[we+be];for(be=Ae-1;0<=be;--be)ce[$+be]=ve[be];gs(q,te,fe,j,le,j,O)}else gs(q,te,fe,$,ie,j,O)}O=b,j=v}j!=v&&r(b,v,O,j,C)}function Qo(u,f){var v=u.V,b=u.Ba+u.c*u.C,L=f-u.C;if(t(f<=u.l.o),t(16>=L),0<L){var C=u.l,T=u.Ta,O=u.Ua,j=C.width;if(rs(u,L,v,b),L=O=[O],t((v=u.C)<(b=f)),t(C.v<C.va),b>C.o&&(b=C.o),v<C.j){var q=C.j-v;v=C.j,L[0]+=q*j}if(v>=b?v=0:(L[0]+=4*C.v,C.ka=v-C.j,C.U=C.va-C.v,C.T=b-v,v=1),v){if(O=O[0],11>(v=u.ca).S){var te=v.f.RGBA,fe=(b=v.S,L=C.U,C=C.T,q=te.eb,te.A),$=C;for(te=te.fb+u.Ma*te.A;0<$--;){var ie=T,le=O,ve=L,ce=q,we=te;switch(b){case $f:Wu(ie,le,ve,ce,we);break;case Hf:Vu(ie,le,ve,ce,we);break;case Up:Vu(ie,le,ve,ce,we),Yu(ce,we,0,ve,1,0);break;case vg:ws(ie,le,ve,ce,we);break;case Wf:Qe(ie,le,ve,ce,we,1);break;case qp:Qe(ie,le,ve,ce,we,1),Yu(ce,we,0,ve,1,0);break;case Vf:Qe(ie,le,ve,ce,we,0);break;case Gf:Qe(ie,le,ve,ce,we,0),Yu(ce,we,1,ve,1,0);break;case zp:yl(ie,le,ve,ce,we);break;case $p:yl(ie,le,ve,ce,we),ug(ce,we,ve,1,0);break;case yg:ys(ie,le,ve,ce,we);break;default:t(0)}O+=j,te+=fe}u.Ma+=C}else alert("todo:EmitRescaledRowsYUVA");t(u.Ma<=v.height)}}u.C=f,t(u.C<=u.i)}function xi(u){var f;if(0<u.ua)return 0;for(f=0;f<u.Wb;++f){var v=u.Ya[f].G,b=u.Ya[f].H;if(0<v[1][b[1]+0].g||0<v[2][b[2]+0].g||0<v[3][b[3]+0].g)return 0}return 1}function Gi(u,f,v,b,L,C){if(u.Z!=0){var T=u.qd,O=u.rd;for(t(la[u.Z]!=null);f<v;++f)la[u.Z](T,O,b,L,b,L,C),T=b,O=L,L+=C;u.qd=T,u.rd=O}}function _i(u,f){var v=u.l.ma,b=v.Z==0||v.Z==1?u.l.j:u.C;if(b=u.C<b?b:u.C,t(f<=u.l.o),f>b){var L=u.l.width,C=v.ca,T=v.tb+L*b,O=u.V,j=u.Ba+u.c*b,q=u.gc;t(u.ab==1),t(q[0].hc==3),Dp(q[0],b,f,O,j,C,T),Gi(v,b,f,C,T,L)}u.C=u.Ma=f}function Si(u,f,v,b,L,C,T){var O=u.$/b,j=u.$%b,q=u.m,te=u.s,fe=v+u.$,$=fe;L=v+b*L;var ie=v+b*C,le=280+te.ua,ve=u.Pb?O:16777216,ce=0<te.ua?te.Wa:null,we=te.wc,be=fe<ie?Vn(te,j,O):null;t(u.C<C),t(ie<=L);var Ae=!1;e:for(;;){for(;Ae||fe<ie;){var Ne=0;if(O>=ve){var Ge=fe-v;t((ve=u).Pb),ve.wd=ve.m,ve.xd=Ge,0<ve.s.ua&&Pe(ve.s.Wa,ve.s.vb),ve=O+A_}if(j&we||(be=Vn(te,j,O)),t(be!=null),be.Qb&&(f[fe]=be.qb,Ae=!0),!Ae)if(re(q),be.jc){Ne=q,Ge=f;var je=fe,vt=be.pd[W(Ne)&ml-1];t(be.jc),256>vt.g?(ne(Ne,Ne.u+vt.g),Ge[je]=vt.value,Ne=0):(ne(Ne,Ne.u+vt.g-256),t(256<=vt.value),Ne=vt.value),Ne==0&&(Ae=!0)}else Ne=pn(be.G[0],be.H[0],q);if(q.h)break;if(Ae||256>Ne){if(!Ae)if(be.nd)f[fe]=(be.qb|Ne<<8)>>>0;else{if(re(q),Ae=pn(be.G[1],be.H[1],q),re(q),Ge=pn(be.G[2],be.H[2],q),je=pn(be.G[3],be.H[3],q),q.h)break;f[fe]=(je<<24|Ae<<16|Ne<<8|Ge)>>>0}if(Ae=!1,++fe,++j>=b&&(j=0,++O,T!=null&&O<=C&&!(O%16)&&T(u,O),ce!=null))for(;$<fe;)Ne=f[$++],ce.X[(506832829*Ne&4294967295)>>>ce.Mb]=Ne}else if(280>Ne){if(Ne=on(Ne-256,q),Ge=pn(be.G[4],be.H[4],q),re(q),Ge=bn(b,Ge=on(Ge,q)),q.h)break;if(fe-v<Ge||L-fe<Ne)break e;for(je=0;je<Ne;++je)f[fe+je]=f[fe+je-Ge];for(fe+=Ne,j+=Ne;j>=b;)j-=b,++O,T!=null&&O<=C&&!(O%16)&&T(u,O);if(t(fe<=L),j&we&&(be=Vn(te,j,O)),ce!=null)for(;$<fe;)Ne=f[$++],ce.X[(506832829*Ne&4294967295)>>>ce.Mb]=Ne}else{if(!(Ne<le))break e;for(Ae=Ne-280,t(ce!=null);$<fe;)Ne=f[$++],ce.X[(506832829*Ne&4294967295)>>>ce.Mb]=Ne;Ne=fe,t(!(Ae>>>(Ge=ce).Xa)),f[Ne]=Ge.X[Ae],Ae=!0}Ae||t(q.h==J(q))}if(u.Pb&&q.h&&fe<L)t(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&Pe(u.s.vb,u.s.Wa);else{if(q.h)break e;T!=null&&T(u,O>C?C:O),u.a=0,u.$=fe-v}return 1}return u.a=3,0}function ai(u){t(u!=null),u.vc=null,u.yc=null,u.Ya=null;var f=u.Wa;f!=null&&(f.X=null),u.vb=null,t(u!=null)}function is(){var u=new ze;return u==null?null:(u.a=0,u.xb=xg,Ut("Predictor","VP8LPredictors"),Ut("Predictor","VP8LPredictors_C"),Ut("PredictorAdd","VP8LPredictorsAdd"),Ut("PredictorAdd","VP8LPredictorsAdd_C"),vl=xt,vs=nt,Wu=rn,Vu=_t,yl=ot,ys=mt,ws=It,I.VP8LMapColor32b=Pn,I.VP8LMapColor8b=eo,u)}function Yi(u,f,v,b,L){var C=1,T=[u],O=[f],j=b.m,q=b.s,te=null,fe=0;e:for(;;){if(v)for(;C&&he(j,1);){var $=T,ie=O,le=b,ve=1,ce=le.m,we=le.gc[le.ab],be=he(ce,2);if(le.Oc&1<<be)C=0;else{switch(le.Oc|=1<<be,we.hc=be,we.Ea=$[0],we.nc=ie[0],we.K=[null],++le.ab,t(4>=le.ab),be){case 0:case 1:we.b=he(ce,3)+2,ve=Yi(Se(we.Ea,we.b),Se(we.nc,we.b),0,le,we.K),we.K=we.K[0];break;case 3:var Ae,Ne=he(ce,8)+1,Ge=16<Ne?0:4<Ne?1:2<Ne?2:3;if($[0]=Se(we.Ea,Ge),we.b=Ge,Ae=ve=Yi(Ne,1,0,le,we.K)){var je,vt=Ne,qe=we,Nt=1<<(8>>qe.b),On=o(Nt);if(On==null)Ae=0;else{var yt=qe.K[0],$e=qe.w;for(On[0]=qe.K[0][0],je=1;je<1*vt;++je)On[je]=Je(yt[$e+je],On[je-1]);for(;je<4*Nt;++je)On[je]=0;qe.K[0]=null,qe.K[0]=On,Ae=1}}ve=Ae;break;case 2:break;default:t(0)}C=ve}}if(T=T[0],O=O[0],C&&he(j,1)&&!(C=1<=(fe=he(j,4))&&11>=fe)){b.a=3;break e}var Te;if(Te=C)t:{var _n,dt,Et,Qt=b,Yn=T,yr=O,mn=fe,ir=v,wr=Qt.m,In=Qt.s,Ct=[null],Ft=1,gn=0,Mt=k_[mn];n:for(;;){if(ir&&he(wr,1)){var Kn=he(wr,3)+2,Ai=Se(Yn,Kn),Sn=Se(yr,Kn),Cr=Ai*Sn;if(!Yi(Ai,Sn,0,Qt,Ct))break n;for(Ct=Ct[0],In.xc=Kn,_n=0;_n<Cr;++_n){var Ht=Ct[_n]>>8&65535;Ct[_n]=Ht,Ht>=Ft&&(Ft=Ht+1)}}if(wr.h)break n;for(dt=0;5>dt;++dt){var jn=wg[dt];!dt&&0<mn&&(jn+=1<<mn),gn<jn&&(gn=jn)}var $r=a(Ft*Mt,G),br=Ft,Hr=a(br,ae);if(Hr==null)var Wr=null;else t(65536>=br),Wr=Hr;var Pr=o(gn);if(Wr==null||Pr==null||$r==null){Qt.a=1;break n}var Vr=$r;for(_n=Et=0;_n<Ft;++_n){var Kt=Wr[_n],Gr=Kt.G,Li=Kt.H,bs=0,Po=1,Zn=0;for(dt=0;5>dt;++dt){jn=wg[dt],Gr[dt]=Vr,Li[dt]=Et,!dt&&0<mn&&(jn+=1<<mn);i:{var Xf,Gp=jn,Qf=Qt,Xu=Pr,V_=Vr,G_=Et,Yp=0,ua=Qf.m,Y_=he(ua,1);if(i(Xu,0,0,Gp),Y_){var K_=he(ua,1)+1,Z_=he(ua,1),Pg=he(ua,Z_==0?1:8);Xu[Pg]=1,K_==2&&(Xu[Pg=he(ua,8)]=1);var Jf=1}else{var Tg=o(19),Rg=he(ua,4)+4;if(19<Rg){Qf.a=3;var ed=0;break i}for(Xf=0;Xf<Rg;++Xf)Tg[S_[Xf]]=he(ua,3);var Kp=void 0,Qu=void 0,Og=Qf,X_=Tg,td=Gp,Ig=Xu,Zp=0,ca=Og.m,jg=8,Fg=a(128,G);r:for(;R(Fg,0,7,X_,19);){if(he(ca,1)){var Q_=2+2*he(ca,3);if((Kp=2+he(ca,Q_))>td)break r}else Kp=td;for(Qu=0;Qu<td&&Kp--;){re(ca);var Mg=Fg[0+(127&W(ca))];ne(ca,ca.u+Mg.g);var xl=Mg.value;if(16>xl)Ig[Qu++]=xl,xl!=0&&(jg=xl);else{var J_=xl==16,Dg=xl-16,e6=x_[Dg],Bg=he(ca,b_[Dg])+e6;if(Qu+Bg>td)break r;for(var t6=J_?jg:0;0<Bg--;)Ig[Qu++]=t6}}Zp=1;break r}Zp||(Og.a=3),Jf=Zp}(Jf=Jf&&!ua.h)&&(Yp=R(V_,G_,8,Xu,Gp)),Jf&&Yp!=0?ed=Yp:(Qf.a=3,ed=0)}if(ed==0)break n;if(Po&&__[dt]==1&&(Po=Vr[Et].g==0),bs+=Vr[Et].g,Et+=ed,3>=dt){var Ju,Xp=Pr[0];for(Ju=1;Ju<jn;++Ju)Pr[Ju]>Xp&&(Xp=Pr[Ju]);Zn+=Xp}}if(Kt.nd=Po,Kt.Qb=0,Po&&(Kt.qb=(Gr[3][Li[3]+0].value<<24|Gr[1][Li[1]+0].value<<16|Gr[2][Li[2]+0].value)>>>0,bs==0&&256>Gr[0][Li[0]+0].value&&(Kt.Qb=1,Kt.qb+=Gr[0][Li[0]+0].value<<8)),Kt.jc=!Kt.Qb&&6>Zn,Kt.jc){var nd,To=Kt;for(nd=0;nd<ml;++nd){var fa=nd,da=To.pd[fa],rd=To.G[0][To.H[0]+fa];256<=rd.value?(da.g=rd.g+256,da.value=rd.value):(da.g=0,da.value=0,fa>>=zn(rd,8,da),fa>>=zn(To.G[1][To.H[1]+fa],16,da),fa>>=zn(To.G[2][To.H[2]+fa],0,da),zn(To.G[3][To.H[3]+fa],24,da))}}}In.vc=Ct,In.Wb=Ft,In.Ya=Wr,In.yc=$r,Te=1;break t}Te=0}if(!(C=Te)){b.a=3;break e}if(0<fe){if(q.ua=1<<fe,!D(q.Wa,fe)){b.a=1,C=0;break e}}else q.ua=0;var Qp=b,zg=T,n6=O,Jp=Qp.s,e1=Jp.xc;if(Qp.c=zg,Qp.i=n6,Jp.md=Se(zg,e1),Jp.wc=e1==0?-1:(1<<e1)-1,v){b.xb=O_;break e}if((te=o(T*O))==null){b.a=1,C=0;break e}C=(C=Si(b,te,0,T,O,O,null))&&!j.h;break e}return C?(L!=null?L[0]=te:(t(te==null),t(v)),b.$=0,v||ai(q)):ai(q),C}function os(u,f){var v=u.c*u.i,b=v+f+16*f;return t(u.c<=f),u.V=o(b),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+v+f,1)}function el(u,f){var v=u.C,b=f-v,L=u.V,C=u.Ba+u.c*v;for(t(f<=u.l.o);0<b;){var T=16<b?16:b,O=u.l.ma,j=u.l.width,q=j*T,te=O.ca,fe=O.tb+j*v,$=u.Ta,ie=u.Ua;rs(u,T,L,C),fg($,ie,te,fe,q),Gi(O,v,v+T,te,fe,j),b-=T,L+=T*u.c,v+=T}t(v==f),u.C=u.Ma=f}function tl(){this.ub=this.yd=this.td=this.Rb=0}function nl(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function bp(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Tu(){this.Yb=function(){var u=[];return function f(v,b,L){for(var C=L[b],T=0;T<C&&(v.push(L.length>b+1?[]:0),!(L.length<b+1));T++)f(v[T],b+1,L)}(u,0,[3,11]),u}()}function Nf(){this.jb=o(3),this.Wc=s([4,8],Tu),this.Xc=s([4,17],Tu)}function kf(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function si(){this.ld=this.La=this.dd=this.tc=0}function Ru(){this.Na=this.la=0}function Af(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ou(){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 Lf(){this.uc=this.M=this.Nb=0,this.wa=Array(new si),this.Y=0,this.ya=Array(new Ou),this.aa=0,this.l=new rl}function Ef(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Cf(){this.cb=this.a=0,this.sc="",this.m=new E,this.Od=new tl,this.Kc=new nl,this.ed=new kf,this.Qa=new bp,this.Ic=this.$c=this.Aa=0,this.D=new Lf,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,E),this.ia=0,this.pb=a(4,Af),this.Pa=new Nf,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ef),this.Hd=0,this.rb=Array(new Ru),this.sb=0,this.wa=Array(new si),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 Ou),this.L=this.aa=0,this.gd=s([4,2],si),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 Ki(u,f){return 0>u?0:u>f?f:u}function rl(){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 xp(){var u=new Cf;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,Ku||(Ku=il)),u}function En(u,f,v){return u.a==0&&(u.a=f,u.sc=v,u.cb=0),0}function Pf(u,f,v){return 3<=v&&u[f+0]==157&&u[f+1]==1&&u[f+2]==42}function Zi(u,f){if(u==null)return 0;if(u.a=0,u.sc="OK",f==null)return En(u,2,"null VP8Io passed to VP8GetHeaders()");var v=f.data,b=f.w,L=f.ha;if(4>L)return En(u,7,"Truncated header.");var C=v[b+0]|v[b+1]<<8|v[b+2]<<16,T=u.Od;if(T.Rb=!(1&C),T.td=C>>1&7,T.yd=C>>4&1,T.ub=C>>5,3<T.td)return En(u,3,"Incorrect keyframe parameters.");if(!T.yd)return En(u,4,"Frame not displayable.");b+=3,L-=3;var O=u.Kc;if(T.Rb){if(7>L)return En(u,7,"cannot parse picture header");if(!Pf(v,b,L))return En(u,3,"Bad code word");O.c=16383&(v[b+4]<<8|v[b+3]),O.Td=v[b+4]>>6,O.i=16383&(v[b+6]<<8|v[b+5]),O.Ud=v[b+6]>>6,b+=7,L-=7,u.za=O.c+15>>4,u.Ub=O.i+15>>4,f.width=O.c,f.height=O.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,i((C=u.Pa).jb,0,255,C.jb.length),t((C=u.Qa)!=null),C.Cb=0,C.Bb=0,C.Fb=1,i(C.Zb,0,0,C.Zb.length),i(C.Lb,0,0,C.Lb)}if(T.ub>L)return En(u,7,"bad partition length");se(C=u.m,v,b,T.ub),b+=T.ub,L-=T.ub,T.Rb&&(O.Ld=me(C),O.Kd=me(C)),O=u.Qa;var j,q=u.Pa;if(t(C!=null),t(O!=null),O.Cb=me(C),O.Cb){if(O.Bb=me(C),me(C)){for(O.Fb=me(C),j=0;4>j;++j)O.Zb[j]=me(C)?V(C,7):0;for(j=0;4>j;++j)O.Lb[j]=me(C)?V(C,6):0}if(O.Bb)for(j=0;3>j;++j)q.jb[j]=me(C)?ue(C,8):255}else O.Bb=0;if(C.Ka)return En(u,3,"cannot parse segment header");if((O=u.ed).zd=me(C),O.Tb=ue(C,6),O.wb=ue(C,3),O.Pc=me(C),O.Pc&&me(C)){for(q=0;4>q;++q)me(C)&&(O.vd[q]=V(C,6));for(q=0;4>q;++q)me(C)&&(O.od[q]=V(C,6))}if(u.L=O.Tb==0?0:O.zd?1:2,C.Ka)return En(u,3,"cannot parse filter header");var te=L;if(L=j=b,b=j+te,O=te,u.Xb=(1<<ue(u.m,2))-1,te<3*(q=u.Xb))v=7;else{for(j+=3*q,O-=3*q,te=0;te<q;++te){var fe=v[L+0]|v[L+1]<<8|v[L+2]<<16;fe>O&&(fe=O),se(u.Jc[+te],v,j,fe),j+=fe,O-=fe,L+=3}se(u.Jc[+q],v,j,O),v=j<b?0:5}if(v!=0)return En(u,v,"cannot parse partitions");for(v=ue(j=u.m,7),L=me(j)?V(j,4):0,b=me(j)?V(j,4):0,O=me(j)?V(j,4):0,q=me(j)?V(j,4):0,j=me(j)?V(j,4):0,te=u.Qa,fe=0;4>fe;++fe){if(te.Cb){var $=te.Zb[fe];te.Fb||($+=v)}else{if(0<fe){u.pb[fe]=u.pb[0];continue}$=v}var ie=u.pb[fe];ie.Sc[0]=Hp[Ki($+L,127)],ie.Sc[1]=Wp[Ki($+0,127)],ie.Eb[0]=2*Hp[Ki($+b,127)],ie.Eb[1]=101581*Wp[Ki($+O,127)]>>16,8>ie.Eb[1]&&(ie.Eb[1]=8),ie.Qc[0]=Hp[Ki($+q,117)],ie.Qc[1]=Wp[Ki($+j,127)],ie.lc=$+j}if(!T.Rb)return En(u,4,"Not a key frame.");for(me(C),T=u.Pa,v=0;4>v;++v){for(L=0;8>L;++L)for(b=0;3>b;++b)for(O=0;11>O;++O)q=ye(C,T_[v][L][b][O])?ue(C,8):C_[v][L][b][O],T.Wc[v][L].Yb[b][O]=q;for(L=0;17>L;++L)T.Xc[v][L]=T.Wc[v][R_[L]]}return u.kc=me(C),u.kc&&(u.Bd=ue(C,8)),u.cb=1}function il(u,f,v,b,L,C,T){var O=f[L].Yb[v];for(v=0;16>L;++L){if(!ye(u,O[v+0]))return L;for(;!ye(u,O[v+1]);)if(O=f[++L].Yb[0],v=0,L==16)return 16;var j=f[L+1].Yb;if(ye(u,O[v+2])){var q=u,te=0;if(ye(q,($=O)[(fe=v)+3]))if(ye(q,$[fe+6])){for(O=0,fe=2*(te=ye(q,$[fe+8]))+($=ye(q,$[fe+9+te])),te=0,$=L_[fe];$[O];++O)te+=te+ye(q,$[O]);te+=3+(8<<fe)}else ye(q,$[fe+7])?(te=7+2*ye(q,165),te+=ye(q,145)):te=5+ye(q,159);else te=ye(q,$[fe+4])?3+ye(q,$[fe+5]):2;O=j[2]}else te=1,O=j[1];j=T+E_[L],0>(q=u).b&&pe(q);var fe,$=q.b,ie=(fe=q.Ca>>1)-(q.I>>$)>>31;--q.b,q.Ca+=ie,q.Ca|=1,q.I-=(fe+1&ie)<<$,C[j]=((te^ie)-ie)*b[(0<L)+0]}return 16}function Iu(u){var f=u.rb[u.sb-1];f.la=0,f.Na=0,i(u.zc,0,0,u.zc.length),u.ja=0}function Ur(u,f,v,b,L){L=u[f+v+32*b]+(L>>3),u[f+v+32*b]=-256&L?0>L?0:255:L}function ol(u,f,v,b,L,C){Ur(u,f,0,v,b+L),Ur(u,f,1,v,b+C),Ur(u,f,2,v,b-C),Ur(u,f,3,v,b-L)}function xo(u){return(20091*u>>16)+u}function Gn(u,f,v,b){var L,C=0,T=o(16);for(L=0;4>L;++L){var O=u[f+0]+u[f+8],j=u[f+0]-u[f+8],q=(35468*u[f+4]>>16)-xo(u[f+12]),te=xo(u[f+4])+(35468*u[f+12]>>16);T[C+0]=O+te,T[C+1]=j+q,T[C+2]=j-q,T[C+3]=O-te,C+=4,f++}for(L=C=0;4>L;++L)O=(u=T[C+0]+4)+T[C+8],j=u-T[C+8],q=(35468*T[C+4]>>16)-xo(T[C+12]),Ur(v,b,0,0,O+(te=xo(T[C+4])+(35468*T[C+12]>>16))),Ur(v,b,1,0,j+q),Ur(v,b,2,0,j-q),Ur(v,b,3,0,O-te),C++,b+=32}function Tf(u,f,v,b){var L=u[f+0]+4,C=35468*u[f+4]>>16,T=xo(u[f+4]),O=35468*u[f+1]>>16;ol(v,b,0,L+T,u=xo(u[f+1]),O),ol(v,b,1,L+C,u,O),ol(v,b,2,L-C,u,O),ol(v,b,3,L-T,u,O)}function _p(u,f,v,b,L){Gn(u,f,v,b),L&&Gn(u,f+16,v,b+4)}function Sp(u,f,v,b){Lo(u,f+0,v,b,1),Lo(u,f+32,v,b+128,1)}function Np(u,f,v,b){var L;for(u=u[f+0]+4,L=0;4>L;++L)for(f=0;4>f;++f)Ur(v,b,f,L,u)}function Xi(u,f,v,b){u[f+0]&&rr(u,f+0,v,b),u[f+16]&&rr(u,f+16,v,b+4),u[f+32]&&rr(u,f+32,v,b+128),u[f+48]&&rr(u,f+48,v,b+128+4)}function Rf(u,f,v,b){var L,C=o(16);for(L=0;4>L;++L){var T=u[f+0+L]+u[f+12+L],O=u[f+4+L]+u[f+8+L],j=u[f+4+L]-u[f+8+L],q=u[f+0+L]-u[f+12+L];C[0+L]=T+O,C[8+L]=T-O,C[4+L]=q+j,C[12+L]=q-j}for(L=0;4>L;++L)T=(u=C[0+4*L]+3)+C[3+4*L],O=C[1+4*L]+C[2+4*L],j=C[1+4*L]-C[2+4*L],q=u-C[3+4*L],v[b+0]=T+O>>3,v[b+16]=q+j>>3,v[b+32]=T-O>>3,v[b+48]=q-j>>3,b+=64}function al(u,f,v){var b,L=f-32,C=qr,T=255-u[L-1];for(b=0;b<v;++b){var O,j=C,q=T+u[f-1];for(O=0;O<v;++O)u[f+O]=j[q+u[L+O]];f+=32}}function sl(u,f){al(u,f,4)}function ju(u,f){al(u,f,8)}function kp(u,f){al(u,f,16)}function Ap(u,f){var v;
vendor: 4,534 bytes, line 275
275for(v=0;16>v;++v)r(u,f+32*v,u,f-32,16)}function Lp(u,f){var v;for(v=16;0<v;--v)i(u,f,u[f-1],16),f+=32}function Jo(u,f,v){var b;for(b=0;16>b;++b)i(f,v+32*b,u,16)}function Of(u,f){var v,b=16;for(v=0;16>v;++v)b+=u[f-1+32*v]+u[f+v-32];Jo(b>>5,u,f)}function ea(u,f){var v,b=8;for(v=0;16>v;++v)b+=u[f-1+32*v];Jo(b>>4,u,f)}function Ep(u,f){var v,b=8;for(v=0;16>v;++v)b+=u[f+v-32];Jo(b>>4,u,f)}function as(u,f){Jo(128,u,f)}function rt(u,f,v){return u+2*f+v+2>>2}function Cp(u,f){var v,b=f-32;for(b=new Uint8Array([rt(u[b-1],u[b+0],u[b+1]),rt(u[b+0],u[b+1],u[b+2]),rt(u[b+1],u[b+2],u[b+3]),rt(u[b+2],u[b+3],u[b+4])]),v=0;4>v;++v)r(u,f+32*v,b,0,b.length)}function Pp(u,f){var v=u[f-1],b=u[f-1+32],L=u[f-1+64],C=u[f-1+96];ke(u,f+0,16843009*rt(u[f-1-32],v,b)),ke(u,f+32,16843009*rt(v,b,L)),ke(u,f+64,16843009*rt(b,L,C)),ke(u,f+96,16843009*rt(L,C,C))}function Tp(u,f){var v,b=4;for(v=0;4>v;++v)b+=u[f+v-32]+u[f-1+32*v];for(b>>=3,v=0;4>v;++v)i(u,f+32*v,b,4)}function Rp(u,f){var v=u[f-1+0],b=u[f-1+32],L=u[f-1+64],C=u[f-1-32],T=u[f+0-32],O=u[f+1-32],j=u[f+2-32],q=u[f+3-32];u[f+0+96]=rt(b,L,u[f-1+96]),u[f+1+96]=u[f+0+64]=rt(v,b,L),u[f+2+96]=u[f+1+64]=u[f+0+32]=rt(C,v,b),u[f+3+96]=u[f+2+64]=u[f+1+32]=u[f+0+0]=rt(T,C,v),u[f+3+64]=u[f+2+32]=u[f+1+0]=rt(O,T,C),u[f+3+32]=u[f+2+0]=rt(j,O,T),u[f+3+0]=rt(q,j,O)}function Op(u,f){var v=u[f+1-32],b=u[f+2-32],L=u[f+3-32],C=u[f+4-32],T=u[f+5-32],O=u[f+6-32],j=u[f+7-32];u[f+0+0]=rt(u[f+0-32],v,b),u[f+1+0]=u[f+0+32]=rt(v,b,L),u[f+2+0]=u[f+1+32]=u[f+0+64]=rt(b,L,C),u[f+3+0]=u[f+2+32]=u[f+1+64]=u[f+0+96]=rt(L,C,T),u[f+3+32]=u[f+2+64]=u[f+1+96]=rt(C,T,O),u[f+3+64]=u[f+2+96]=rt(T,O,j),u[f+3+96]=rt(O,j,j)}function _o(u,f){var v=u[f-1+0],b=u[f-1+32],L=u[f-1+64],C=u[f-1-32],T=u[f+0-32],O=u[f+1-32],j=u[f+2-32],q=u[f+3-32];u[f+0+0]=u[f+1+64]=C+T+1>>1,u[f+1+0]=u[f+2+64]=T+O+1>>1,u[f+2+0]=u[f+3+64]=O+j+1>>1,u[f+3+0]=j+q+1>>1,u[f+0+96]=rt(L,b,v),u[f+0+64]=rt(b,v,C),u[f+0+32]=u[f+1+96]=rt(v,C,T),u[f+1+32]=u[f+2+96]=rt(C,T,O),u[f+2+32]=u[f+3+96]=rt(T,O,j),u[f+3+32]=rt(O,j,q)}function So(u,f){var v=u[f+0-32],b=u[f+1-32],L=u[f+2-32],C=u[f+3-32],T=u[f+4-32],O=u[f+5-32],j=u[f+6-32],q=u[f+7-32];u[f+0+0]=v+b+1>>1,u[f+1+0]=u[f+0+64]=b+L+1>>1,u[f+2+0]=u[f+1+64]=L+C+1>>1,u[f+3+0]=u[f+2+64]=C+T+1>>1,u[f+0+32]=rt(v,b,L),u[f+1+32]=u[f+0+96]=rt(b,L,C),u[f+2+32]=u[f+1+96]=rt(L,C,T),u[f+3+32]=u[f+2+96]=rt(C,T,O),u[f+3+64]=rt(T,O,j),u[f+3+96]=rt(O,j,q)}function Ip(u,f){var v=u[f-1+0],b=u[f-1+32],L=u[f-1+64],C=u[f-1+96];u[f+0+0]=v+b+1>>1,u[f+2+0]=u[f+0+32]=b+L+1>>1,u[f+2+32]=u[f+0+64]=L+C+1>>1,u[f+1+0]=rt(v,b,L),u[f+3+0]=u[f+1+32]=rt(b,L,C),u[f+3+32]=u[f+1+64]=rt(L,C,C),u[f+3+64]=u[f+2+64]=u[f+0+96]=u[f+1+96]=u[f+2+96]=u[f+3+96]=C}function jp(u,f){var v=u[f-1+0],b=u[f-1+32],L=u[f-1+64],C=u[f-1+96],T=u[f-1-32],O=u[f+0-32],j=u[f+1-32],q=u[f+2-32];u[f+0+0]=u[f+2+32]=v+T+1>>1,u[f+0+32]=u[f+2+64]=b+v+1>>1,u[f+0+64]=u[f+2+96]=L+b+1>>1,u[f+0+96]=C+L+1>>1,u[f+3+0]=rt(O,j,q),u[f+2+0]=rt(T,O,j),u[f+1+0]=u[f+3+32]=rt(v,T,O),u[f+1+32]=u[f+3+64]=rt(b,v,T),u[f+1+64]=u[f+3+96]=rt(L,b,v),u[f+1+96]=rt(C,L,b)}function ll(u,f){var v;for(v=0;8>v;++v)r(u,f+32*v,u,f-32,8)}function Fu(u,f){var v;for(v=0;8>v;++v)i(u,f,u[f-1],8),f+=32}function Qi(u,f,v){var b;for(b=0;8>b;++b)i(f,v+32*b,u,8)}function Fp(u,f){var v,b=8;for(v=0;8>v;++v)b+=u[f+v-32]+u[f-1+32*v];Qi(b>>4,u,f)}function ul(u,f){var v,b=4;for(v=0;8>v;++v)b+=u[f+v-32];Qi(b>>3,u,f)}function Mp(u,f){var v,b=4;for(v=0;8>v;++v)b+=u[f-1+32*v];Qi(b>>3,u,f)}function Mu(u,f){Qi(128,u,f)}function ta(u,f,v){var b=u[f-v],L=u[f+0],C=3*(L-b)+Bp[1020+u[f-2*v]-u[f+v]],T=qf[112+(C+4>>3)];u[f-v]=qr[255+b+qf[112+(C+3>>3)]],u[f+0]=qr[255+L-T]}function Du(u,f,v,b){var L=u[f+0],C=u[f+v];return ui[255+u[f-2*v]-u[f-v]]>b||ui[255+C-L]>b}function ss(u,f,v,b){return 4*ui[255+u[f-v]-u[f+0]]+ui[255+u[f-2*v]-u[f+v]]<=b}function Bu(u,f,v,b,L){var C=u[f-3*v],T=u[f-2*v],O=u[f-v],j=u[f+0],q=u[f+v],te=u[f+2*v],fe=u[f+3*v];return 4*ui[255+O-j]+ui[255+T-q]>b?0:ui[255+u[f-4*v]-C]<=L&&ui[255+C-T]<=L&&ui[255+T-O]<=L&&ui[255+fe-te]<=L&&ui[255+te-q]<=L&&ui[255+q-j]<=L}function cl(u,f,v,b){var L=2*b+1;for(b=0;16>b;++b)ss(u,f+b,v,L)&&ta(u,f+b,v)}function zu(u,f,v,b){var L=2*b+1;for(b=0;16>b;++b)ss(u,f+b*v,1,L)&&ta(u,f+b*v,1)}function fl(u,f,v,b){var L;for(L=3;0<L;--L)cl(u,f+=4*v,v,b)}function If(u,f,v,b){var L;for(L=3;0<L;--L)zu(u,f+=4,v,b)}function No(u,f,v,b,L,C,T,O){for(C=2*C+1;0<L--;){if(Bu(u,f,v,C,T))if(Du(u,f,v,O))ta(u,f,v);else{var j=u,q=f,te=v,fe=j[q-2*te],$=j[q-te],ie=j[q+0],le=j[q+te],ve=j[q+2*te],ce=27*(be=Bp[1020+3*(ie-$)+Bp[1020+fe-le]])+63>>7,we=18*be+63>>7,be=9*be+63>>7;
vendor: 18,390 bytes, line 275
275j[q-3*te]=qr[255+j[q-3*te]+be],j[q-2*te]=qr[255+fe+we],j[q-te]=qr[255+$+ce],j[q+0]=qr[255+ie-ce],j[q+te]=qr[255+le-we],j[q+2*te]=qr[255+ve-be]}f+=b}}function ko(u,f,v,b,L,C,T,O){for(C=2*C+1;0<L--;){if(Bu(u,f,v,C,T))if(Du(u,f,v,O))ta(u,f,v);else{var j=u,q=f,te=v,fe=j[q-te],$=j[q+0],ie=j[q+te],le=qf[112+(4+(ve=3*($-fe))>>3)],ve=qf[112+(ve+3>>3)],ce=le+1>>1;j[q-2*te]=qr[255+j[q-2*te]+ce],j[q-te]=qr[255+fe+ve],j[q+0]=qr[255+$-le],j[q+te]=qr[255+ie-ce]}f+=b}}function jf(u,f,v,b,L,C){No(u,f,v,1,16,b,L,C)}function Ff(u,f,v,b,L,C){No(u,f,1,v,16,b,L,C)}function Mf(u,f,v,b,L,C){var T;for(T=3;0<T;--T)ko(u,f+=4*v,v,1,16,b,L,C)}function ls(u,f,v,b,L,C){var T;for(T=3;0<T;--T)ko(u,f+=4,1,v,16,b,L,C)}function Df(u,f,v,b,L,C,T,O){No(u,f,L,1,8,C,T,O),No(v,b,L,1,8,C,T,O)}function p(u,f,v,b,L,C,T,O){No(u,f,1,L,8,C,T,O),No(v,b,1,L,8,C,T,O)}function k(u,f,v,b,L,C,T,O){ko(u,f+4*L,L,1,8,C,T,O),ko(v,b+4*L,L,1,8,C,T,O)}function z(u,f,v,b,L,C,T,O){ko(u,f+4,1,L,8,C,T,O),ko(v,b+4,1,L,8,C,T,O)}function ee(){this.ba=new gt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Rt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function oe(){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 ge(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function _e(){this.ua=0,this.Wa=new ut,this.vb=new ut,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ae,this.yc=new G}function ze(){this.xb=this.a=0,this.l=new rl,this.ca=new gt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new F,this.Pb=0,this.wd=new F,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new _e,this.ab=0,this.gc=a(4,ge),this.Oc=0}function Me(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new rl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function lt(u,f,v,b,L,C,T){for(u=u==null?0:u[f+0],f=0;f<T;++f)L[C+f]=u+v[b+f]&255,u=L[C+f]}function ft(u,f,v,b,L,C,T){var O;if(u==null)lt(null,null,v,b,L,C,T);else for(O=0;O<T;++O)L[C+O]=u[f+O]+v[b+O]&255}function Lt(u,f,v,b,L,C,T){if(u==null)lt(null,null,v,b,L,C,T);else{var O,j=u[f+0],q=j,te=j;for(O=0;O<T;++O)q=te+(j=u[f+O])-q,te=v[b+O]+(-256&q?0>q?0:255:q)&255,q=j,L[C+O]=te}}function Cn(u,f,v,b){var L=f.width,C=f.o;if(t(u!=null&&f!=null),0>v||0>=b||v+b>C)return null;if(!u.Cc){if(u.ga==null){var T;if(u.ga=new Me,(T=u.ga==null)||(T=f.width*f.o,t(u.Gb.length==0),u.Gb=o(T),u.Uc=0,u.Gb==null?T=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,T=1),T=!T),!T){T=u.ga;var O=u.Fa,j=u.P,q=u.qc,te=u.mb,fe=u.nb,$=j+1,ie=q-1,le=T.l;if(t(O!=null&&te!=null&&f!=null),la[0]=null,la[1]=lt,la[2]=ft,la[3]=Lt,T.ca=te,T.tb=fe,T.c=f.width,T.i=f.height,t(0<T.c&&0<T.i),1>=q)f=0;else if(T.$a=3&O[j+0],T.Z=O[j+0]>>2&3,T.Lc=O[j+0]>>4&3,j=O[j+0]>>6&3,0>T.$a||1<T.$a||4<=T.Z||1<T.Lc||j)f=0;else if(le.put=Be,le.ac=hn,le.bc=Bn,le.ma=T,le.width=f.width,le.height=f.height,le.Da=f.Da,le.v=f.v,le.va=f.va,le.j=f.j,le.o=f.o,T.$a)e:{t(T.$a==1),f=is();t:for(;;){if(f==null){f=0;break e}if(t(T!=null),T.mc=f,f.c=T.c,f.i=T.i,f.l=T.l,f.l.ma=T,f.l.width=T.c,f.l.height=T.i,f.a=0,Q(f.m,O,$,ie),!Yi(T.c,T.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&xi(f.s)?(T.ic=1,O=f.c*f.i,f.Ta=null,f.Ua=0,f.V=o(O),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(T.ic=0,f=os(f,T.c)),!f))break t;f=1;break e}T.mc=null,f=0}else f=ie>=T.c*T.i;T=!f}if(T)return null;u.ga.Lc!=1?u.Ga=0:b=C-v}t(u.ga!=null),t(v+b<=C);e:{if(f=(O=u.ga).c,C=O.l.o,O.$a==0){if($=u.rc,ie=u.Vc,le=u.Fa,j=u.P+1+v*f,q=u.mb,te=u.nb+v*f,t(j<=u.P+u.qc),O.Z!=0)for(t(la[O.Z]!=null),T=0;T<b;++T)la[O.Z]($,ie,le,j,q,te,f),$=q,ie=te,te+=f,j+=f;else for(T=0;T<b;++T)r(q,te,le,j,f),$=q,ie=te,te+=f,j+=f;u.rc=$,u.Vc=ie}else{if(t(O.mc!=null),f=v+b,t((T=O.mc)!=null),t(f<=T.i),T.C>=f)f=1;else if(O.ic||un(),O.ic){O=T.V,$=T.Ba,ie=T.c;var ve=T.i,ce=(le=1,j=T.$/ie,q=T.$%ie,te=T.m,fe=T.s,T.$),we=ie*ve,be=ie*f,Ae=fe.wc,Ne=ce<be?Vn(fe,q,j):null;t(ce<=we),t(f<=ve),t(xi(fe));t:for(;;){for(;!te.h&&ce<be;){if(q&Ae||(Ne=Vn(fe,q,j)),t(Ne!=null),re(te),256>(ve=pn(Ne.G[0],Ne.H[0],te)))O[$+ce]=ve,++ce,++q>=ie&&(q=0,++j<=f&&!(j%16)&&_i(T,j));else{if(!(280>ve)){le=0;break t}ve=on(ve-256,te);var Ge,je=pn(Ne.G[4],Ne.H[4],te);if(re(te),!(ce>=(je=bn(ie,je=on(je,te)))&&we-ce>=ve)){le=0;break t}for(Ge=0;Ge<ve;++Ge)O[$+ce+Ge]=O[$+ce+Ge-je];for(ce+=ve,q+=ve;q>=ie;)q-=ie,++j<=f&&!(j%16)&&_i(T,j);ce<be&&q&Ae&&(Ne=Vn(fe,q,j))}t(te.h==J(te))}_i(T,j>f?f:j);break t}!le||te.h&&ce<we?(le=0,T.a=te.h?5:3):T.$=ce,f=le}else f=Si(T,T.V,T.Ba,T.c,T.i,f,el);if(!f){b=0;break e}}v+b>=C&&(u.Cc=1),b=1}if(!b)return null;if(u.Cc&&((b=u.ga)!=null&&(b.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+v*L}function $t(u,f,v,b,L,C){for(;0<L--;){var T,O=u,j=f+(v?1:0),q=u,te=f+(v?0:3);for(T=0;T<b;++T){var fe=q[te+4*T];fe!=255&&(fe*=32897,O[j+4*T+0]=O[j+4*T+0]*fe>>23,O[j+4*T+1]=O[j+4*T+1]*fe>>23,O[j+4*T+2]=O[j+4*T+2]*fe>>23)}f+=C}}function qt(u,f,v,b,L){for(;0<b--;){var C;for(C=0;C<v;++C){var T=u[f+2*C+0],O=15&(q=u[f+2*C+1]),j=4369*O,q=(240&q|q>>4)*j>>16;u[f+2*C+0]=(240&T|T>>4)*j>>16&240|(15&T|T<<4)*j>>16>>4&15,u[f+2*C+1]=240&q|O}f+=L}}function Xt(u,f,v,b,L,C,T,O){var j,q,te=255;for(q=0;q<L;++q){for(j=0;j<b;++j){var fe=u[f+j];C[T+4*j]=fe,te&=fe}f+=v,T+=O}return te!=255}function ln(u,f,v,b,L){var C;for(C=0;C<L;++C)v[b+C]=u[f+C]>>8}function un(){Yu=$t,ug=qt,cg=Xt,fg=ln}function tr(u,f,v){I[u]=function(b,L,C,T,O,j,q,te,fe,$,ie,le,ve,ce,we,be,Ae){var Ne,Ge=Ae-1>>1,je=O[j+0]|q[te+0]<<16,vt=fe[$+0]|ie[le+0]<<16;t(b!=null);var qe=3*je+vt+131074>>2;for(f(b[L+0],255&qe,qe>>16,ve,ce),C!=null&&(qe=3*vt+je+131074>>2,f(C[T+0],255&qe,qe>>16,we,be)),Ne=1;Ne<=Ge;++Ne){var Nt=O[j+Ne]|q[te+Ne]<<16,On=fe[$+Ne]|ie[le+Ne]<<16,yt=je+Nt+vt+On+524296,$e=yt+2*(Nt+vt)>>3;qe=$e+je>>1,je=(yt=yt+2*(je+On)>>3)+Nt>>1,f(b[L+2*Ne-1],255&qe,qe>>16,ve,ce+(2*Ne-1)*v),f(b[L+2*Ne-0],255&je,je>>16,ve,ce+(2*Ne-0)*v),C!=null&&(qe=yt+vt>>1,je=$e+On>>1,f(C[T+2*Ne-1],255&qe,qe>>16,we,be+(2*Ne-1)*v),f(C[T+2*Ne+0],255&je,je>>16,we,be+(2*Ne+0)*v)),je=Nt,vt=On}1&Ae||(qe=3*je+vt+131074>>2,f(b[L+Ae-1],255&qe,qe>>16,ve,ce+(Ae-1)*v),C!=null&&(qe=3*vt+je+131074>>2,f(C[T+Ae-1],255&qe,qe>>16,we,be+(Ae-1)*v)))}}function Ao(){ci[$f]=I_,ci[Hf]=_g,ci[vg]=j_,ci[Wf]=Sg,ci[Vf]=Ng,ci[zp]=kg,ci[yg]=F_,ci[Up]=_g,ci[qp]=Sg,ci[Gf]=Ng,ci[$p]=kg}function Uu(u){return u&~M_?0>u?0:255:u>>Ag}function us(u,f){return Uu((19077*u>>8)+(26149*f>>8)-14234)}function cs(u,f,v){return Uu((19077*u>>8)-(6419*f>>8)-(13320*v>>8)+8708)}function na(u,f){return Uu((19077*u>>8)+(33050*f>>8)-17685)}function fs(u,f,v,b,L){b[L+0]=us(u,v),b[L+1]=cs(u,f,v),b[L+2]=na(u,f)}function dl(u,f,v,b,L){b[L+0]=na(u,f),b[L+1]=cs(u,f,v),b[L+2]=us(u,v)}function hl(u,f,v,b,L){var C=cs(u,f,v);f=C<<3&224|na(u,f)>>3,b[L+0]=248&us(u,v)|C>>5,b[L+1]=f}function nr(u,f,v,b,L){var C=240&na(u,f)|15;b[L+0]=240&us(u,v)|cs(u,f,v)>>4,b[L+1]=C}function ds(u,f,v,b,L){b[L+0]=255,fs(u,f,v,b,L+1)}function hs(u,f,v,b,L){dl(u,f,v,b,L),b[L+3]=255}function qu(u,f,v,b,L){fs(u,f,v,b,L),b[L+3]=255}function Ji(u,f,v){I[u]=function(b,L,C,T,O,j,q,te,fe){for(var $=te+(-2&fe)*v;te!=$;)f(b[L+0],C[T+0],O[j+0],q,te),f(b[L+1],C[T+0],O[j+0],q,te+v),L+=2,++T,++j,te+=2*v;1&fe&&f(b[L+0],C[T+0],O[j+0],q,te)}}function gr(u,f,v){return v==0?u==0?f==0?6:5:f==0?4:0:v}function Bf(u,f,v,b,L){switch(u>>>30){case 3:Lo(f,v,b,L,0);break;case 2:aa(f,v,b,L);break;case 1:rr(f,v,b,L)}}function pl(u,f){var v,b,L=f.M,C=f.Nb,T=u.oc,O=u.pc+40,j=u.oc,q=u.pc+584,te=u.oc,fe=u.pc+600;for(v=0;16>v;++v)T[O+32*v-1]=129;for(v=0;8>v;++v)j[q+32*v-1]=129,te[fe+32*v-1]=129;for(0<L?T[O-1-32]=j[q-1-32]=te[fe-1-32]=129:(i(T,O-32-1,127,21),i(j,q-32-1,127,9),i(te,fe-32-1,127,9)),b=0;b<u.za;++b){var $=f.ya[f.aa+b];if(0<b){for(v=-1;16>v;++v)r(T,O+32*v-4,T,O+32*v+12,4);for(v=-1;8>v;++v)r(j,q+32*v-4,j,q+32*v+4,4),r(te,fe+32*v-4,te,fe+32*v+4,4)}var ie=u.Gd,le=u.Hd+b,ve=$.ad,ce=$.Hc;if(0<L&&(r(T,O-32,ie[le].y,0,16),r(j,q-32,ie[le].f,0,8),r(te,fe-32,ie[le].ea,0,8)),$.Za){var we=T,be=O-32+16;for(0<L&&(b>=u.za-1?i(we,be,ie[le].y[15],4):r(we,be,ie[le+1].y,0,4)),v=0;4>v;v++)we[be+128+v]=we[be+256+v]=we[be+384+v]=we[be+0+v];for(v=0;16>v;++v,ce<<=2)we=T,be=O+Eg[v],ki[$.Ob[v]](we,be),Bf(ce,ve,16*+v,we,be)}else if(we=gr(b,L,$.Ob[0]),sa[we](T,O),ce!=0)for(v=0;16>v;++v,ce<<=2)Bf(ce,ve,16*+v,T,O+Eg[v]);for(v=$.Gc,we=gr(b,L,$.Dd),Co[we](j,q),Co[we](te,fe),ce=ve,we=j,be=q,255&($=0|v)&&(170&$?wl(ce,256,we,be):to(ce,256,we,be)),$=te,ce=fe,255&(v>>=8)&&(170&v?wl(ve,320,$,ce):to(ve,320,$,ce)),L<u.Ub-1&&(r(ie[le].y,0,T,O+480,16),r(ie[le].f,0,j,q+224,8),r(ie[le].ea,0,te,fe+224,8)),v=8*C*u.B,ie=u.sa,le=u.ta+16*b+16*C*u.R,ve=u.qa,$=u.ra+8*b+v,ce=u.Ha,we=u.Ia+8*b+v,v=0;16>v;++v)r(ie,le+v*u.R,T,O+32*v,16);for(v=0;8>v;++v)r(ve,$+v*u.B,j,q+32*v,8),r(ce,we+v*u.B,te,fe+32*v,8)}}function zf(u,f,v,b,L,C,T,O,j){var q=[0],te=[0],fe=0,$=j!=null?j.kd:0,ie=j??new oe;if(u==null||12>v)return 7;ie.data=u,ie.w=f,ie.ha=v,f=[f],v=[v],ie.gb=[ie.gb];e:{var le=f,ve=v,ce=ie.gb;if(t(u!=null),t(ve!=null),t(ce!=null),ce[0]=0,12<=ve[0]&&!n(u,le[0],"RIFF")){if(n(u,le[0]+8,"WEBP")){ce=3;break e}var we=He(u,le[0]+4);if(12>we||4294967286<we){ce=3;break e}if($&&we>ve[0]-8){ce=7;break e}ce[0]=we,le[0]+=12,ve[0]-=12}ce=0}if(ce!=0)return ce;for(we=0<ie.gb[0],v=v[0];;){e:{var be=u;ve=f,ce=v;var Ae=q,Ne=te,Ge=le=[0];if((qe=fe=[fe])[0]=0,8>ce[0])ce=7;else{if(!n(be,ve[0],"VP8X")){if(He(be,ve[0]+4)!=10){ce=3;break e}if(18>ce[0]){ce=7;break e}var je=He(be,ve[0]+8),vt=1+Ce(be,ve[0]+12);if(2147483648<=vt*(be=1+Ce(be,ve[0]+15))){ce=3;break e}Ge!=null&&(Ge[0]=je),Ae!=null&&(Ae[0]=vt),Ne!=null&&(Ne[0]=be),ve[0]+=18,ce[0]-=18,qe[0]=1}ce=0}}if(fe=fe[0],le=le[0],ce!=0)return ce;if(ve=!!(2&le),!we&&fe)return 3;if(C!=null&&(C[0]=!!(16&le)),T!=null&&(T[0]=ve),O!=null&&(O[0]=0),T=q[0],le=te[0],fe&&ve&&j==null){ce=0;break}if(4>v){ce=7;break}if(we&&fe||!we&&!fe&&!n(u,f[0],"ALPH")){v=[v],ie.na=[ie.na],ie.P=[ie.P],ie.Sa=[ie.Sa];e:{je=u,ce=f,we=v;var qe=ie.gb;Ae=ie.na,Ne=ie.P,Ge=ie.Sa,vt=22,t(je!=null),t(we!=null),be=ce[0];var Nt=we[0];for(t(Ae!=null),t(Ge!=null),Ae[0]=null,Ne[0]=null,Ge[0]=0;;){if(ce[0]=be,we[0]=Nt,8>Nt){ce=7;break e}var On=He(je,be+4);if(4294967286<On){ce=3;break e}var yt=8+On+1&-2;if(vt+=yt,0<qe&&vt>qe){ce=3;break e}if(!n(je,be,"VP8 ")||!n(je,be,"VP8L")){ce=0;break e}if(Nt[0]<yt){ce=7;break e}n(je,be,"ALPH")||(Ae[0]=je,Ne[0]=be+8,Ge[0]=On),be+=yt,Nt-=yt}}if(v=v[0],ie.na=ie.na[0],ie.P=ie.P[0],ie.Sa=ie.Sa[0],ce!=0)break}v=[v],ie.Ja=[ie.Ja],ie.xa=[ie.xa];e:if(qe=u,ce=f,we=v,Ae=ie.gb[0],Ne=ie.Ja,Ge=ie.xa,je=ce[0],be=!n(qe,je,"VP8 "),vt=!n(qe,je,"VP8L"),t(qe!=null),t(we!=null),t(Ne!=null),t(Ge!=null),8>we[0])ce=7;else{if(be||vt){if(qe=He(qe,je+4),12<=Ae&&qe>Ae-12){ce=3;break e}if($&&qe>we[0]-8){ce=7;break e}Ne[0]=qe,ce[0]+=8,we[0]-=8,Ge[0]=vt}else Ge[0]=5<=we[0]&&qe[je+0]==47&&!(qe[je+4]>>5),Ne[0]=we[0];ce=0}if(v=v[0],ie.Ja=ie.Ja[0],ie.xa=ie.xa[0],f=f[0],ce!=0)break;if(4294967286<ie.Ja)return 3;if(O==null||ve||(O[0]=ie.xa?2:1),T=[T],le=[le],ie.xa){if(5>v){ce=7;break}O=T,$=le,ve=C,u==null||5>v?u=0:5<=v&&u[f+0]==47&&!(u[f+4]>>5)?(we=[0],qe=[0],Ae=[0],Q(Ne=new F,u,f,v),Wn(Ne,we,qe,Ae)?(O!=null&&(O[0]=we[0]),$!=null&&($[0]=qe[0]),ve!=null&&(ve[0]=Ae[0]),u=1):u=0):u=0}else{if(10>v){ce=7;break}O=le,u==null||10>v||!Pf(u,f+3,v-3)?u=0:($=u[f+0]|u[f+1]<<8|u[f+2]<<16,ve=16383&(u[f+7]<<8|u[f+6]),u=16383&(u[f+9]<<8|u[f+8]),1&$||3<($>>1&7)||!($>>4&1)||$>>5>=ie.Ja||!ve||!u?u=0:(T&&(T[0]=ve),O&&(O[0]=u),u=1))}if(!u||(T=T[0],le=le[0],fe&&(q[0]!=T||te[0]!=le)))return 3;j!=null&&(j[0]=ie,j.offset=f-j.w,t(4294967286>f-j.w),t(j.offset==j.ha-v));break}return ce==0||ce==7&&fe&&j==null?(C!=null&&(C[0]|=ie.na!=null&&0<ie.na.length),b!=null&&(b[0]=T),L!=null&&(L[0]=le),0):ce}function li(u,f,v){var b=f.width,L=f.height,C=0,T=0,O=b,j=L;if(f.Da=u!=null&&0<u.Da,f.Da&&(O=u.cd,j=u.bd,C=u.v,T=u.j,11>v||(C&=-2,T&=-2),0>C||0>T||0>=O||0>=j||C+O>b||T+j>L))return 0;if(f.v=C,f.j=T,f.va=C+O,f.o=T+j,f.U=O,f.T=j,f.da=u!=null&&0<u.da,f.da){if(!Ye(O,j,v=[u.ib],C=[u.hb]))return 0;f.ib=v[0],f.hb=C[0]}return f.ob=u!=null&&u.ob,f.Kb=u==null||!u.Sd,f.da&&(f.ob=f.ib<3*b/4&&f.hb<3*L/4,f.Kb=0),1}function ps(u){if(u==null)return 2;if(11>u.S){var f=u.f.RGBA;f.fb+=(u.height-1)*f.A,f.A=-f.A}else f=u.f.kb,u=u.height,f.O+=(u-1)*f.fa,f.fa=-f.fa,f.N+=(u-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(u-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(u-1)*f.lb,f.lb=-f.lb);return 0}function $u(u,f,v,b){if(b==null||0>=u||0>=f)return 2;if(v!=null){if(v.Da){var L=v.cd,C=v.bd,T=-2&v.v,O=-2&v.j;if(0>T||0>O||0>=L||0>=C||T+L>u||O+C>f)return 2;u=L,f=C}if(v.da){if(!Ye(u,f,L=[v.ib],C=[v.hb]))return 2;u=L[0],f=C[0]}}b.width=u,b.height=f;e:{var j=b.width,q=b.height;if(u=b.S,0>=j||0>=q||!(u>=$f&&13>u))u=2;else{if(0>=b.Rd&&b.sd==null){T=C=L=f=0;var te=(O=j*Cg[u])*q;if(11>u||(C=(q+1)/2*(f=(j+1)/2),u==12&&(T=(L=j)*q)),(q=o(te+2*C+T))==null){u=1;break e}b.sd=q,11>u?((j=b.f.RGBA).eb=q,j.fb=0,j.A=O,j.size=te):((j=b.f.kb).y=q,j.O=0,j.fa=O,j.Fd=te,j.f=q,j.N=0+te,j.Ab=f,j.Cd=C,j.ea=q,j.W=0+te+C,j.Db=f,j.Ed=C,u==12&&(j.F=q,j.J=0+te+2*C),j.Tc=T,j.lb=L)}if(f=1,L=b.S,C=b.width,T=b.height,L>=$f&&13>L)if(11>L)u=b.f.RGBA,f&=(O=Math.abs(u.A))*(T-1)+C<=u.size,f&=O>=C*Cg[L],f&=u.eb!=null;else{u=b.f.kb,O=(C+1)/2,te=(T+1)/2,j=Math.abs(u.fa),q=Math.abs(u.Ab);var fe=Math.abs(u.Db),$=Math.abs(u.lb),ie=$*(T-1)+C;f&=j*(T-1)+C<=u.Fd,f&=q*(te-1)+O<=u.Cd,f=(f&=fe*(te-1)+O<=u.Ed)&j>=C&q>=O&fe>=O,f&=u.y!=null,f&=u.f!=null,f&=u.ea!=null,L==12&&(f&=$>=C,f&=ie<=u.Tc,f&=u.F!=null)}else f=0;u=f?0:2}}return u!=0||v!=null&&v.fd&&(u=ps(b)),u}var ml=64,ms=[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],Hu=24,vr=32,Er=8,gl=[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];Oe("Predictor0","PredictorAdd0"),I.Predictor0=function(){return 4278190080},I.Predictor1=function(u){return u},I.Predictor2=function(u,f,v){return f[v+0]},I.Predictor3=function(u,f,v){return f[v+1]},I.Predictor4=function(u,f,v){return f[v-1]},I.Predictor5=function(u,f,v){return De(De(u,f[v+1]),f[v+0])},I.Predictor6=function(u,f,v){return De(u,f[v-1])},I.Predictor7=function(u,f,v){return De(u,f[v+0])},I.Predictor8=function(u,f,v){return De(f[v-1],f[v+0])},I.Predictor9=function(u,f,v){return De(f[v+0],f[v+1])},I.Predictor10=function(u,f,v){return De(De(u,f[v-1]),De(f[v+0],f[v+1]))},I.Predictor11=function(u,f,v){var b=f[v+0];return 0>=Ze(b>>24&255,u>>24&255,(f=f[v-1])>>24&255)+Ze(b>>16&255,u>>16&255,f>>16&255)+Ze(b>>8&255,u>>8&255,f>>8&255)+Ze(255&b,255&u,255&f)?b:u},I.Predictor12=function(u,f,v){var b=f[v+0];return(Tt((u>>24&255)+(b>>24&255)-((f=f[v-1])>>24&255))<<24|Tt((u>>16&255)+(b>>16&255)-(f>>16&255))<<16|Tt((u>>8&255)+(b>>8&255)-(f>>8&255))<<8|Tt((255&u)+(255&b)-(255&f)))>>>0},I.Predictor13=function(u,f,v){var b=f[v-1];return(bt((u=De(u,f[v+0]))>>24&255,b>>24&255)<<24|bt(u>>16&255,b>>16&255)<<16|bt(u>>8&255,b>>8&255)<<8|bt(255&u,255&b))>>>0};var ra=I.PredictorAdd0;I.PredictorAdd1=pt,Oe("Predictor2","PredictorAdd2"),Oe("Predictor3","PredictorAdd3"),Oe("Predictor4","PredictorAdd4"),Oe("Predictor5","PredictorAdd5"),Oe("Predictor6","PredictorAdd6"),Oe("Predictor7","PredictorAdd7"),Oe("Predictor8","PredictorAdd8"),Oe("Predictor9","PredictorAdd9"),Oe("Predictor10","PredictorAdd10"),Oe("Predictor11","PredictorAdd11"),Oe("Predictor12","PredictorAdd12"),Oe("Predictor13","PredictorAdd13");var ia=I.PredictorAdd2;We("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),We("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var vl,gs=I.ColorIndexInverseTransform,Pn=I.MapARGB,Dp=I.VP8LColorIndexInverseTransformAlpha,eo=I.MapAlpha,Ni=I.VP8LPredictorsAdd=[];Ni.length=16,(I.VP8LPredictors=[]).length=16,(I.VP8LPredictorsAdd_C=[]).length=16,(I.VP8LPredictors_C=[]).length=16;var vs,Wu,Vu,yl,ys,ws,oa,Lo,aa,wl,rr,to,Gt,Yt,xn,Rn,Eo,Gu,bl,Uf,og,ag,sg,lg,Yu,ug,cg,fg,dg=o(511),hg=o(2041),pg=o(225),mg=o(767),gg=0,Bp=hg,qf=pg,qr=mg,ui=dg,$f=0,Hf=1,vg=2,Wf=3,Vf=4,zp=5,yg=6,Up=7,qp=8,Gf=9,$p=10,b_=[2,3,7],x_=[3,3,11],wg=[280,256,256,256,40],__=[0,1,1,1,0],S_=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],N_=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],k_=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],A_=8,Hp=[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],Wp=[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],Ku=null,L_=[[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]],E_=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],bg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],C_=[[[[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,25
2755,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],P_=[[[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,25
2755,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],T_=[[[[255,255,255,255,255,255,255,255,255,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: 46,685 bytes, lines 275-299
2755,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]]]],R_=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],sa=[],ki=[],Co=[],O_=1,xg=2,la=[],ci=[];tr("UpsampleRgbLinePair",fs,3),tr("UpsampleBgrLinePair",dl,3),tr("UpsampleRgbaLinePair",qu,4),tr("UpsampleBgraLinePair",hs,4),tr("UpsampleArgbLinePair",ds,4),tr("UpsampleRgba4444LinePair",nr,2),tr("UpsampleRgb565LinePair",hl,2);var I_=I.UpsampleRgbLinePair,j_=I.UpsampleBgrLinePair,_g=I.UpsampleRgbaLinePair,Sg=I.UpsampleBgraLinePair,Ng=I.UpsampleArgbLinePair,kg=I.UpsampleRgba4444LinePair,F_=I.UpsampleRgb565LinePair,Yf=16,Kf=1<<Yf-1,Zu=-227,Vp=482,Ag=6,M_=(256<<Ag)-1,Lg=0,D_=o(256),B_=o(256),z_=o(256),U_=o(256),q_=o(Vp-Zu),$_=o(Vp-Zu);Ji("YuvToRgbRow",fs,3),Ji("YuvToBgrRow",dl,3),Ji("YuvToRgbaRow",qu,4),Ji("YuvToBgraRow",hs,4),Ji("YuvToArgbRow",ds,4),Ji("YuvToRgba4444Row",nr,2),Ji("YuvToRgb565Row",hl,2);var Eg=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Zf=[0,2,8],H_=[8,7,6,4,4,2,2,2,1,1,1,1],W_=1;this.WebPDecodeRGBA=function(u,f,v,b,L){var C=Hf,T=new ee,O=new gt;T.ba=O,O.S=C,O.width=[O.width],O.height=[O.height];var j=O.width,q=O.height,te=new Ve;if(te==null||u==null)var fe=2;else t(te!=null),fe=zf(u,f,v,te.width,te.height,te.Pd,te.Qd,te.format,null);if(fe!=0?j=0:(j!=null&&(j[0]=te.width[0]),q!=null&&(q[0]=te.height[0]),j=1),j){O.width=O.width[0],O.height=O.height[0],b!=null&&(b[0]=O.width),L!=null&&(L[0]=O.height);e:{if(b=new rl,(L=new oe).data=u,L.w=f,L.ha=v,L.kd=1,f=[0],t(L!=null),((u=zf(L.data,L.w,L.ha,null,null,null,f,null,L))==0||u==7)&&f[0]&&(u=4),(f=u)==0){if(t(T!=null),b.data=L.data,b.w=L.w+L.offset,b.ha=L.ha-L.offset,b.put=Be,b.ac=hn,b.bc=Bn,b.ma=T,L.xa){if((u=is())==null){T=1;break e}if(function($,ie){var le=[0],ve=[0],ce=[0];t:for(;;){if($==null)return 0;if(ie==null)return $.a=2,0;if($.l=ie,$.a=0,Q($.m,ie.data,ie.w,ie.ha),!Wn($.m,le,ve,ce)){$.a=3;break t}if($.xb=xg,ie.width=le[0],ie.height=ve[0],!Yi(le[0],ve[0],1,$,null))break t;return 1}return t($.a!=0),0}(u,b)){if(b=(f=$u(b.width,b.height,T.Oa,T.ba))==0){t:{b=u;n:for(;;){if(b==null){b=0;break t}if(t(b.s.yc!=null),t(b.s.Ya!=null),t(0<b.s.Wb),t((v=b.l)!=null),t((L=v.ma)!=null),b.xb!=0){if(b.ca=L.ba,b.tb=L.tb,t(b.ca!=null),!li(L.Oa,v,Wf)){b.a=2;break n}if(!os(b,v.width)||v.da)break n;if((v.da||et(b.ca.S))&&un(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&un()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!D(b.s.vb,b.s.Wa.Xa)){b.a=1;break n}b.xb=0}if(!Si(b,b.V,b.Ba,b.c,b.i,v.o,Qo))break n;L.Dc=b.Ma,b=1;break t}t(b.a!=0),b=0}b=!b}b&&(f=u.a)}else f=u.a}else{if((u=new xp)==null){T=1;break e}if(u.Fa=L.na,u.P=L.P,u.qc=L.Sa,Zi(u,b)){if((f=$u(b.width,b.height,T.Oa,T.ba))==0){if(u.Aa=0,v=T.Oa,t((L=u)!=null),v!=null){if(0<(j=0>(j=v.Md)?0:100<j?255:255*j/100)){for(q=te=0;4>q;++q)12>(fe=L.pb[q]).lc&&(fe.ia=j*H_[0>fe.lc?0:fe.lc]>>3),te|=fe.ia;te&&(alert("todo:VP8InitRandom"),L.ia=1)}L.Ga=v.Id,100<L.Ga?L.Ga=100:0>L.Ga&&(L.Ga=0)}(function($,ie){if($==null)return 0;if(ie==null)return En($,2,"NULL VP8Io parameter in VP8Decode().");if(!$.cb&&!Zi($,ie))return 0;if(t($.cb),ie.ac==null||ie.ac(ie)){ie.ob&&($.L=0);var le=Zf[$.L];if($.L==2?($.yb=0,$.zb=0):($.yb=ie.v-le>>4,$.zb=ie.j-le>>4,0>$.yb&&($.yb=0),0>$.zb&&($.zb=0)),$.Va=ie.o+15+le>>4,$.Hb=ie.va+15+le>>4,$.Hb>$.za&&($.Hb=$.za),$.Va>$.Ub&&($.Va=$.Ub),0<$.L){var ve=$.ed;for(le=0;4>le;++le){var ce;if($.Qa.Cb){var we=$.Qa.Lb[le];$.Qa.Fb||(we+=ve.Tb)}else we=ve.Tb;for(ce=0;1>=ce;++ce){var be=$.gd[le][ce],Ae=we;if(ve.Pc&&(Ae+=ve.vd[0],ce&&(Ae+=ve.od[0])),0<(Ae=0>Ae?0:63<Ae?63:Ae)){var Ne=Ae;0<ve.wb&&(Ne=4<ve.wb?Ne>>2:Ne>>1)>9-ve.wb&&(Ne=9-ve.wb),1>Ne&&(Ne=1),be.dd=Ne,be.tc=2*Ae+Ne,be.ld=40<=Ae?2:15<=Ae?1:0}else be.tc=0;be.La=ce}}}le=0}else En($,6,"Frame setup failed"),le=$.a;if(le=le==0){if(le){$.$c=0,0<$.Aa||($.Ic=W_);t:{le=$.Ic,ve=4*(Ne=$.za);var Ge=32*Ne,je=Ne+1,vt=0<$.L?Ne*(0<$.Aa?2:1):0,qe=($.Aa==2?2:1)*Ne;if((be=ve+832+(ce=3*(16*le+Zf[$.L])/2*Ge)+(we=$.Fa!=null&&0<$.Fa.length?$.Kc.c*$.Kc.i:0))!=be)le=0;else{if(be>$.Vb){if($.Vb=0,$.Ec=o(be),$.Fc=0,$.Ec==null){le=En($,1,"no memory during frame initialization.");break t}$.Vb=be}be=$.Ec,Ae=$.Fc,$.Ac=be,$.Bc=Ae,Ae+=ve,$.Gd=a(Ge,Ef),$.Hd=0,$.rb=a(je+1,Ru),$.sb=1,$.wa=vt?a(vt,si):null,$.Y=0,$.D.Nb=0,$.D.wa=$.wa,$.D.Y=$.Y,0<$.Aa&&($.D.Y+=Ne),t(!0),$.oc=be,$.pc=Ae,Ae+=832,$.ya=a(qe,Ou),$.aa=0,$.D.ya=$.ya,$.D.aa=$.aa,$.Aa==2&&($.D.aa+=Ne),$.R=16*Ne,$.B=8*Ne,Ne=(Ge=Zf[$.L])*$.R,Ge=Ge/2*$.B,$.sa=be,$.ta=Ae+Ne,$.qa=$.sa,$.ra=$.ta+16*le*$.R+Ge,$.Ha=$.qa,$.Ia=$.ra+8*le*$.B+Ge,$.$c=0,Ae+=ce,$.mb=we?be:null,$.nb=we?Ae:null,t(Ae+we<=$.Fc+$.Vb),Iu($),i($.Ac,$.Bc,0,ve),le=1}}if(le){if(ie.ka=0,ie.y=$.sa,ie.O=$.ta,ie.f=$.qa,ie.N=$.ra,ie.ea=$.Ha,ie.Vd=$.Ia,ie.fa=$.R,ie.Rc=$.B,ie.F=null,ie.J=0,!gg){for(le=-255;255>=le;++le)dg[255+le]=0>le?-le:le;for(le=-1020;1020>=le;++le)hg[1020+le]=-128>le?-128:127<le?127:le;for(le=-112;112>=le;++le)pg[112+le]=-16>le?-16:15<le?15:le;for(le=-255;510>=le;++le)mg[255+le]=0>le?0:255<le?255:le;gg=1}oa=Rf,Lo=_p,wl=Sp,rr=Np,to=Xi,aa=Tf,Gt=jf,Yt=Ff,xn=Df,Rn=p,Eo=Mf,Gu=ls,bl=k,Uf=z,og=cl,ag=zu,sg=fl,lg=If,ki[0]=Tp,ki[1]=sl,ki[2]=Cp,ki[3]=Pp,ki[4]=Rp,ki[5]=_o,ki[6]=Op,ki[7]=So,ki[8]=jp,ki[9]=Ip,sa[0]=Of,sa[1]=kp,sa[2]=Ap,sa[3]=Lp,sa[4]=ea,sa[5]=Ep,sa[6]=as,Co[0]=Fp,Co[1]=ju,Co[2]=ll,Co[3]=Fu,Co[4]=Mp,Co[5]=ul,Co[6]=Mu,le=1}else le=0}le&&(le=function(Nt,On){for(Nt.M=0;Nt.M<Nt.Va;++Nt.M){var yt,$e=Nt.Jc[Nt.M&Nt.Xb],Te=Nt.m,_n=Nt;for(yt=0;yt<_n.za;++yt){var dt=Te,Et=_n,Qt=Et.Ac,Yn=Et.Bc+4*yt,yr=Et.zc,mn=Et.ya[Et.aa+yt];if(Et.Qa.Bb?mn.$b=ye(dt,Et.Pa.jb[0])?2+ye(dt,Et.Pa.jb[2]):ye(dt,Et.Pa.jb[1]):mn.$b=0,Et.kc&&(mn.Ad=ye(dt,Et.Bd)),mn.Za=!ye(dt,145)+0,mn.Za){var ir=mn.Ob,wr=0;for(Et=0;4>Et;++Et){var In,Ct=yr[0+Et];for(In=0;4>In;++In){Ct=P_[Qt[Yn+In]][Ct];for(var Ft=bg[ye(dt,Ct[0])];0<Ft;)Ft=bg[2*Ft+ye(dt,Ct[Ft])];Ct=-Ft,Qt[Yn+In]=Ct}r(ir,wr,Qt,Yn,4),wr+=4,yr[0+Et]=Ct}}else Ct=ye(dt,156)?ye(dt,128)?1:3:ye(dt,163)?2:0,mn.Ob[0]=Ct,i(Qt,Yn,Ct,4),i(yr,0,Ct,4);mn.Dd=ye(dt,142)?ye(dt,114)?ye(dt,183)?1:3:2:0}if(_n.m.Ka)return En(Nt,7,"Premature end-of-partition0 encountered.");for(;Nt.ja<Nt.za;++Nt.ja){if(_n=$e,dt=(Te=Nt).rb[Te.sb-1],Qt=Te.rb[Te.sb+Te.ja],yt=Te.ya[Te.aa+Te.ja],Yn=Te.kc?yt.Ad:0)dt.la=Qt.la=0,yt.Za||(dt.Na=Qt.Na=0),yt.Hc=0,yt.Gc=0,yt.ia=0;else{var gn,Mt;if(dt=Qt,Qt=_n,Yn=Te.Pa.Xc,yr=Te.ya[Te.aa+Te.ja],mn=Te.pb[yr.$b],Et=yr.ad,ir=0,wr=Te.rb[Te.sb-1],Ct=In=0,i(Et,ir,0,384),yr.Za)var Kn=0,Ai=Yn[3];else{Ft=o(16);var Sn=dt.Na+wr.Na;if(Sn=Ku(Qt,Yn[1],Sn,mn.Eb,0,Ft,0),dt.Na=wr.Na=(0<Sn)+0,1<Sn)oa(Ft,0,Et,ir);else{var Cr=Ft[0]+3>>3;for(Ft=0;256>Ft;Ft+=16)Et[ir+Ft]=Cr}Kn=1,Ai=Yn[0]}var Ht=15&dt.la,jn=15&wr.la;for(Ft=0;4>Ft;++Ft){var $r=1&jn;for(Cr=Mt=0;4>Cr;++Cr)Ht=Ht>>1|($r=(Sn=Ku(Qt,Ai,Sn=$r+(1&Ht),mn.Sc,Kn,Et,ir))>Kn)<<7,Mt=Mt<<2|(3<Sn?3:1<Sn?2:Et[ir+0]!=0),ir+=16;Ht>>=4,jn=jn>>1|$r<<7,In=(In<<8|Mt)>>>0}for(Ai=Ht,Kn=jn>>4,gn=0;4>gn;gn+=2){for(Mt=0,Ht=dt.la>>4+gn,jn=wr.la>>4+gn,Ft=0;2>Ft;++Ft){for($r=1&jn,Cr=0;2>Cr;++Cr)Sn=$r+(1&Ht),Ht=Ht>>1|($r=0<(Sn=Ku(Qt,Yn[2],Sn,mn.Qc,0,Et,ir)))<<3,Mt=Mt<<2|(3<Sn?3:1<Sn?2:Et[ir+0]!=0),ir+=16;Ht>>=2,jn=jn>>1|$r<<5}Ct|=Mt<<4*gn,Ai|=Ht<<4<<gn,Kn|=(240&jn)<<gn}dt.la=Ai,wr.la=Kn,yr.Hc=In,yr.Gc=Ct,yr.ia=43690&Ct?0:mn.ia,Yn=!(In|Ct)}if(0<Te.L&&(Te.wa[Te.Y+Te.ja]=Te.gd[yt.$b][yt.Za],Te.wa[Te.Y+Te.ja].La|=!Yn),_n.Ka)return En(Nt,7,"Premature end-of-file encountered.")}if(Iu(Nt),Te=On,_n=1,yt=($e=Nt).D,dt=0<$e.L&&$e.M>=$e.zb&&$e.M<=$e.Va,$e.Aa==0)t:{if(yt.M=$e.M,yt.uc=dt,pl($e,yt),_n=1,yt=(Mt=$e.D).Nb,dt=(Ct=Zf[$e.L])*$e.R,Qt=Ct/2*$e.B,Ft=16*yt*$e.R,Cr=8*yt*$e.B,Yn=$e.sa,yr=$e.ta-dt+Ft,mn=$e.qa,Et=$e.ra-Qt+Cr,ir=$e.Ha,wr=$e.Ia-Qt+Cr,jn=(Ht=Mt.M)==0,In=Ht>=$e.Va-1,$e.Aa==2&&pl($e,Mt),Mt.uc)for($r=(Sn=$e).D.M,t(Sn.D.uc),Mt=Sn.yb;Mt<Sn.Hb;++Mt){Kn=Mt,Ai=$r;var br=(Hr=(Zn=Sn).D).Nb;gn=Zn.R;var Hr=Hr.wa[Hr.Y+Kn],Wr=Zn.sa,Pr=Zn.ta+16*br*gn+16*Kn,Vr=Hr.dd,Kt=Hr.tc;if(Kt!=0)if(t(3<=Kt),Zn.L==1)0<Kn&&ag(Wr,Pr,gn,Kt+4),Hr.La&&lg(Wr,Pr,gn,Kt),0<Ai&&og(Wr,Pr,gn,Kt+4),Hr.La&&sg(Wr,Pr,gn,Kt);else{var Gr=Zn.B,Li=Zn.qa,bs=Zn.ra+8*br*Gr+8*Kn,Po=Zn.Ha,Zn=Zn.Ia+8*br*Gr+8*Kn;br=Hr.ld,0<Kn&&(Yt(Wr,Pr,gn,Kt+4,Vr,br),Rn(Li,bs,Po,Zn,Gr,Kt+4,Vr,br)),Hr.La&&(Gu(Wr,Pr,gn,Kt,Vr,br),Uf(Li,bs,Po,Zn,Gr,Kt,Vr,br)),0<Ai&&(Gt(Wr,Pr,gn,Kt+4,Vr,br),xn(Li,bs,Po,Zn,Gr,Kt+4,Vr,br)),Hr.La&&(Eo(Wr,Pr,gn,Kt,Vr,br),bl(Li,bs,Po,Zn,Gr,Kt,Vr,br))}}if($e.ia&&alert("todo:DitherRow"),Te.put!=null){if(Mt=16*Ht,Ht=16*(Ht+1),jn?(Te.y=$e.sa,Te.O=$e.ta+Ft,Te.f=$e.qa,Te.N=$e.ra+Cr,Te.ea=$e.Ha,Te.W=$e.Ia+Cr):(Mt-=Ct,Te.y=Yn,Te.O=yr,Te.f=mn,Te.N=Et,Te.ea=ir,Te.W=wr),In||(Ht-=Ct),Ht>Te.o&&(Ht=Te.o),Te.F=null,Te.J=null,$e.Fa!=null&&0<$e.Fa.length&&Mt<Ht&&(Te.J=Cn($e,Te,Mt,Ht-Mt),Te.F=$e.mb,Te.F==null&&Te.F.length==0)){_n=En($e,3,"Could not decode alpha data.");break t}Mt<Te.j&&(Ct=Te.j-Mt,Mt=Te.j,t(!(1&Ct)),Te.O+=$e.R*Ct,Te.N+=$e.B*(Ct>>1),Te.W+=$e.B*(Ct>>1),Te.F!=null&&(Te.J+=Te.width*Ct)),Mt<Ht&&(Te.O+=Te.v,Te.N+=Te.v>>1,Te.W+=Te.v>>1,Te.F!=null&&(Te.J+=Te.v),Te.ka=Mt-Te.j,Te.U=Te.va-Te.v,Te.T=Ht-Mt,_n=Te.put(Te))}yt+1!=$e.Ic||In||(r($e.sa,$e.ta-dt,Yn,yr+16*$e.R,dt),r($e.qa,$e.ra-Qt,mn,Et+8*$e.B,Qt),r($e.Ha,$e.Ia-Qt,ir,wr+8*$e.B,Qt))}if(!_n)return En(Nt,6,"Output aborted.")}return 1}($,ie)),ie.bc!=null&&ie.bc(ie),le&=1}return le?($.cb=0,le):0})(u,b)||(f=u.a)}}else f=u.a}f==0&&T.Oa!=null&&T.Oa.fd&&(f=ps(T.ba))}T=f}C=T!=0?null:11>C?O.f.RGBA.eb:O.f.kb.y}else C=null;return C};var Cg=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(I,Z){for(var P="",R=0;R<4;R++)P+=String.fromCharCode(I[Z++]);return P}function h(I,Z){return I[Z+0]|I[Z+1]<<8}function m(I,Z){return(I[Z+0]|I[Z+1]<<8|I[Z+2]<<16)>>>0}function g(I,Z){return(I[Z+0]|I[Z+1]<<8|I[Z+2]<<16|I[Z+3]<<24)>>>0}new l;var d=[0],S=[0],w=[],_=new l,y=e,x=function(I,Z){var P={},R=0,G=!1,B=0,ae=0;if(P.frames=[],!function(E,F){for(var W=0;W<4;W++)if(E[F+W]!="RIFF".charCodeAt(W))return!0;return!1}(I,Z)){for(g(I,Z+=4),Z+=8;Z<I.length;){var se=c(I,Z),ue=g(I,Z+=4);Z+=4;var V=ue+(1&ue);switch(se){case"VP8 ":case"VP8L":P.frames[R]===void 0&&(P.frames[R]={}),(he=P.frames[R]).src_off=G?ae:Z-8,he.src_size=B+ue+8,R++,G&&(G=!1,B=0,ae=0);break;case"VP8X":(he=P.header={}).feature_flags=I[Z];var Q=Z+4;he.canvas_width=1+m(I,Q),Q+=3,he.canvas_height=1+m(I,Q),Q+=3;break;case"ALPH":G=!0,B=V+8,ae=Z-8;break;case"ANIM":(he=P.header).bgcolor=g(I,Z),Q=Z+4,he.loop_count=h(I,Q),Q+=2;break;case"ANMF":var de,he;(he=P.frames[R]={}).offset_x=2*m(I,Z),Z+=3,he.offset_y=2*m(I,Z),Z+=3,he.width=1+m(I,Z),Z+=3,he.height=1+m(I,Z),Z+=3,he.duration=m(I,Z),Z+=3,de=I[Z++],he.dispose=1&de,he.blend=de>>1&1}se!="ANMF"&&(Z+=V)}return P}}(y,0);x.response=y,x.rgbaoutput=!0,x.dataurl=!1;var N=x.header?x.header:null,A=x.frames?x.frames:null;if(N){N.loop_counter=N.loop_count,d=[N.canvas_height],S=[N.canvas_width];for(var M=0;M<A.length&&A[M].blend!=0;M++);}var K=A[0],Y=_.WebPDecodeRGBA(y,K.src_off,K.src_size,S,d);K.rgba=Y,K.imgwidth=S[0],K.imgheight=d[0];for(var H=0;H<S[0]*d[0]*4;H++)w[H]=Y[H];return this.width=S,this.height=d,this.data=w,this}/** ====================================================================
276 * @license
277 * jsPDF XMP metadata plugin
278 * Copyright (c) 2016 Jussi Utunen, [email protected]
279 *
280 * Permission is hereby granted, free of charge, to any person obtaining
281 * a copy of this software and associated documentation files (the
282 * "Software"), to deal in the Software without restriction, including
283 * without limitation the rights to use, copy, modify, merge, publish,
284 * distribute, sublicense, and/or sell copies of the Software, and to
285 * permit persons to whom the Software is furnished to do so, subject to
286 * the following conditions:
287 *
288 * The above copyright notice and this permission notice shall be
289 * included in all copies or substantial portions of the Software.
290 *
291 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
292 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
293 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
294 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
295 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
296 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
297 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
298 * ====================================================================
299 */function VT(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function GT(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,i,o,a,s,l,c,h=function(E){return E=E||{},this.isStrokeTransparent=E.isStrokeTransparent||!1,this.strokeOpacity=E.strokeOpacity||1,this.strokeStyle=E.strokeStyle||"#000000",this.fillStyle=E.fillStyle||"#000000",this.isFillTransparent=E.isFillTransparent||!1,this.fillOpacity=E.fillOpacity||1,this.font=E.font||"10px sans-serif",this.textBaseline=E.textBaseline||"alphabetic",this.textAlign=E.textAlign||"left",this.lineWidth=E.lineWidth||1,this.lineJoin=E.lineJoin||"miter",this.lineCap=E.lineCap||"butt",this.path=E.path||[],this.transform=E.transform!==void 0?E.transform.clone():new l,this.globalCompositeOperation=E.globalCompositeOperation||"normal",this.globalAlpha=E.globalAlpha||1,this.clip_path=E.clip_path||[],this.currentPoint=E.currentPoint||new a,this.miterLimit=E.miterLimit||10,this.lastPoint=E.lastPoint||new a,this.lineDashOffset=E.lineDashOffset||0,this.lineDash=E.lineDash||[],this.margin=E.margin||[0,0,0,0],this.prevPageLastElemOffset=E.prevPageLastElemOffset||0,this.ignoreClearRect=typeof E.ignoreClearRect!="boolean"||E.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new m(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=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 m=function(E){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var F=E;Object.defineProperty(this,"pdf",{get:function(){return F}});var W=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return W},set:function(D){W=!!D}});var J=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return J},set:function(D){J=!!D}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(D){isNaN(D)||(ne=D)}});var re=0;Object.defineProperty(this,"posY",{get:function(){return re},set:function(D){isNaN(D)||(re=D)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(D){var Pe;typeof D=="number"?Pe=[D,D,D,D]:((Pe=new Array(4))[0]=D[0],Pe[1]=D.length>=2?D[1]:Pe[0],Pe[2]=D.length>=3?D[2]:Pe[0],Pe[3]=D.length>=4?D[3]:Pe[1]),c.margin=Pe}});var pe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return pe},set:function(D){pe=D}});var me=0;Object.defineProperty(this,"lastBreak",{get:function(){return me},set:function(D){me=D}});var ye=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ye},set:function(D){ye=D}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(D){D instanceof h&&(c=D)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(D){c.path=D}});var ke=[];Object.defineProperty(this,"ctxStack",{get:function(){return ke},set:function(D){ke=D}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(D){var Pe;Pe=g(D),this.ctx.fillStyle=Pe.style,this.ctx.isFillTransparent=Pe.a===0,this.ctx.fillOpacity=Pe.a,this.pdf.setFillColor(Pe.r,Pe.g,Pe.b,{a:Pe.a}),this.pdf.setTextColor(Pe.r,Pe.g,Pe.b,{a:Pe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(D){var Pe=g(D);this.ctx.strokeStyle=Pe.style,this.ctx.isStrokeTransparent=Pe.a===0,this.ctx.strokeOpacity=Pe.a,Pe.a===0?this.pdf.setDrawColor(255,255,255):(Pe.a,this.pdf.setDrawColor(Pe.r,Pe.g,Pe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(D){["butt","round","square"].indexOf(D)!==-1&&(this.ctx.lineCap=D,this.pdf.setLineCap(D))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(D){isNaN(D)||(this.ctx.lineWidth=D,this.pdf.setLineWidth(D))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(D){["bevel","round","miter"].indexOf(D)!==-1&&(this.ctx.lineJoin=D,this.pdf.setLineJoin(D))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(D){isNaN(D)||(this.ctx.miterLimit=D,this.pdf.setMiterLimit(D))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(D){this.ctx.textBaseline=D}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(D){["right","end","center","left","start"].indexOf(D)!==-1&&(this.ctx.textAlign=D)}});var Re=null,Ce=null,He=null;Object.defineProperty(this,"fontFaces",{get:function(){return He},set:function(D){Re=null,Ce=null,He=D}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(D){var Pe;if(this.ctx.font=D,(Pe=/^\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-z0-9]+?)\s*$/i.exec(D))!==null){var ut=Pe[1];Pe[2];var Ye=Pe[3],Se=Pe[4];Pe[5];var Je=Pe[6],Oe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Se)[2];Se=Math.floor(Oe==="px"?parseFloat(Se)*this.pdf.internal.scaleFactor:Oe==="em"?parseFloat(Se)*this.pdf.getFontSize():parseFloat(Se)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Se);var Xe=function(We){var rn,_t,ot=[],mt=We.trim();if(mt==="")return a0;if(mt in Vy)return[Vy[mt]];for(;mt!=="";){switch(_t=null,rn=(mt=Yy(mt)).charAt(0)){case'"':case"'":_t=zT(mt.substring(1),rn);break;default:_t=UT(mt)}if(_t===null||(ot.push(_t[0]),(mt=Yy(_t[1]))!==""&&mt.charAt(0)!==","))return a0;mt=mt.replace(/^,/,"")}return ot}(Je);if(this.fontFaces){var De=function(We,rn){var _t=We.getFontList(),ot=JSON.stringify(_t);if(Re===null||Ce!==ot){var mt=function(It){var Qe=[];return Object.keys(It).forEach(function(Ut){It[Ut].forEach(function(et){var at=null;switch(et){case"bold":at={family:Ut,weight:"bold"};break;case"italic":at={family:Ut,style:"italic"};break;case"bolditalic":at={family:Ut,weight:"bold",style:"italic"};break;case"":case"normal":at={family:Ut}}at!==null&&(at.ref={name:Ut,style:et},Qe.push(at))})}),Qe}(_t);Re=function(It){for(var Qe={},Ut=0;Ut<It.length;++Ut){var et=o0(It[Ut]),at=et.family,Vt=et.stretch,gt=et.style,Ve=et.weight;Qe[at]=Qe[at]||{},Qe[at][Vt]=Qe[at][Vt]||{},Qe[at][Vt][gt]=Qe[at][Vt][gt]||{},Qe[at][Vt][gt][Ve]=et}return Qe}(mt.concat(rn)),Ce=ot}return Re}(this.pdf,this.fontFaces),Tt=Xe.map(function(We){return{family:We,stretch:"normal",weight:Ye,style:ut}}),bt=function(We,rn,_t){for(var ot=(_t=_t||{}).defaultFontFamily||"times",mt=Object.assign({},BT,_t.genericFontFamilies||{}),It=null,Qe=null,Ut=0;Ut<rn.length;++Ut)if(mt[(It=o0(rn[Ut])).family]&&(It.family=mt[It.family]),We.hasOwnProperty(It.family)){Qe=We[It.family];break}if(!(Qe=Qe||We[ot]))throw new Error("Could not find a font-family for the rule '"+Gy(It)+"' and default family '"+ot+"'.");if(Qe=function(et,at){if(at[et])return at[et];var Vt=j2[et],gt=Vt<=j2.normal?-1:1,Ve=Wy(at,m_,Vt,gt);if(!Ve)throw new Error("Could not find a matching font-stretch value for "+et);return Ve}(It.stretch,Qe),Qe=function(et,at){if(at[et])return at[et];for(var Vt=p_[et],gt=0;gt<Vt.length;++gt)if(at[Vt[gt]])return at[Vt[gt]];throw new Error("Could not find a matching font-style for "+et)}(It.style,Qe),!(Qe=function(et,at){if(at[et])return at[et];if(et===400&&at[500])return at[500];if(et===500&&at[400])return at[400];var Vt=DT[et],gt=Wy(at,g_,Vt,et<400?-1:1);if(!gt)throw new Error("Could not find a matching font-weight for value "+et);return gt}(It.weight,Qe)))throw new Error("Failed to resolve a font for the rule '"+Gy(It)+"'.");return Qe}(De,Tt);this.pdf.setFont(bt.ref.name,bt.ref.style)}else{var Ze="";(Ye==="bold"||parseInt(Ye,10)>=700||ut==="bold")&&(Ze="bold"),ut==="italic"&&(Ze+="italic"),Ze.length===0&&(Ze="normal");for(var pt="",xt={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"},Ue=0;Ue<Xe.length;Ue++){if(this.pdf.internal.getFont(Xe[Ue],Ze,{noFallback:!0,disableWarning:!0})!==void 0){pt=Xe[Ue];break}if(Ze==="bolditalic"&&this.pdf.internal.getFont(Xe[Ue],"bold",{noFallback:!0,disableWarning:!0})!==void 0)pt=Xe[Ue],Ze="bold";else if(this.pdf.internal.getFont(Xe[Ue],"normal",{noFallback:!0,disableWarning:!0})!==void 0){pt=Xe[Ue],Ze="normal";break}}if(pt===""){for(var nt=0;nt<Xe.length;nt++)if(xt[Xe[nt]]){pt=xt[Xe[nt]];break}}pt=pt===""?"Times":pt,this.pdf.setFont(pt,Ze)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(D){this.ctx.globalCompositeOperation=D}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(D){this.ctx.globalAlpha=D}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(D){this.ctx.lineDashOffset=D,he.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(D){this.ctx.lineDash=D,he.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(D){this.ctx.ignoreClearRect=!!D}})};m.prototype.setLineDash=function(E){this.lineDash=E},m.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},m.prototype.fill=function(){A.call(this,"fill",!1)},m.prototype.stroke=function(){A.call(this,"stroke",!1)},m.prototype.beginPath=function(){this.path=[{type:"begin"}]},m.prototype.moveTo=function(E,F){if(isNaN(E)||isNaN(F))throw Wt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var W=this.ctx.transform.applyToPoint(new a(E,F));this.path.push({type:"mt",x:W.x,y:W.y}),this.ctx.lastPoint=new a(E,F)},m.prototype.closePath=function(){var E=new a(0,0),F=0;for(F=this.path.length-1;F!==-1;F--)if(this.path[F].type==="begin"&&Bt(this.path[F+1])==="object"&&typeof this.path[F+1].x=="number"){E=new a(this.path[F+1].x,this.path[F+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(E.x,E.y)},m.prototype.lineTo=function(E,F){if(isNaN(E)||isNaN(F))throw Wt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var W=this.ctx.transform.applyToPoint(new a(E,F));this.path.push({type:"lt",x:W.x,y:W.y}),this.ctx.lastPoint=new a(W.x,W.y)},m.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},m.prototype.quadraticCurveTo=function(E,F,W,J){if(isNaN(W)||isNaN(J)||isNaN(E)||isNaN(F))throw Wt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new a(W,J)),re=this.ctx.transform.applyToPoint(new a(E,F));this.path.push({type:"qct",x1:re.x,y1:re.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new a(ne.x,ne.y)},m.prototype.bezierCurveTo=function(E,F,W,J,ne,re){if(isNaN(ne)||isNaN(re)||isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J))throw Wt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var pe=this.ctx.transform.applyToPoint(new a(ne,re)),me=this.ctx.transform.applyToPoint(new a(E,F)),ye=this.ctx.transform.applyToPoint(new a(W,J));this.path.push({type:"bct",x1:me.x,y1:me.y,x2:ye.x,y2:ye.y,x:pe.x,y:pe.y}),this.ctx.lastPoint=new a(pe.x,pe.y)},m.prototype.arc=function(E,F,W,J,ne,re){if(isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J)||isNaN(ne))throw Wt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(re=!!re,!this.ctx.transform.isIdentity){var pe=this.ctx.transform.applyToPoint(new a(E,F));E=pe.x,F=pe.y;var me=this.ctx.transform.applyToPoint(new a(0,W)),ye=this.ctx.transform.applyToPoint(new a(0,0));W=Math.sqrt(Math.pow(me.x-ye.x,2)+Math.pow(me.y-ye.y,2))}Math.abs(ne-J)>=2*Math.PI&&(J=0,ne=2*Math.PI),this.path.push({type:"arc",x:E,y:F,radius:W,startAngle:J,endAngle:ne,counterclockwise:re})},m.prototype.arcTo=function(E,F,W,J,ne){throw new Error("arcTo not implemented.")},m.prototype.rect=function(E,F,W,J){if(isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J))throw Wt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(E,F),this.lineTo(E+W,F),this.lineTo(E+W,F+J),this.lineTo(E,F+J),this.lineTo(E,F),this.lineTo(E+W,F),this.lineTo(E,F)},m.prototype.fillRect=function(E,F,W,J){if(isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J))throw Wt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(E,F,W,J),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},m.prototype.strokeRect=function(E,F,W,J){if(isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J))throw Wt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");S.call(this)||(this.beginPath(),this.rect(E,F,W,J),this.stroke())},m.prototype.clearRect=function(E,F,W,J){if(isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J))throw Wt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(E,F,W,J))},m.prototype.save=function(E){E=typeof E!="boolean"||E;for(var F=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("q");if(this.pdf.setPage(F),E){this.ctx.fontSize=this.pdf.internal.getFontSize();var J=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=J}},m.prototype.restore=function(E){E=typeof E!="boolean"||E;for(var F=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("Q");this.pdf.setPage(F),E&&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)},m.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(E){var F,W,J,ne;if(E.isCanvasGradient===!0&&(E=E.getColor()),!E)return{r:0,g:0,b:0,a:0,style:E};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(E))F=0,W=0,J=0,ne=0;else{var re=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(E);if(re!==null)F=parseInt(re[1]),W=parseInt(re[2]),J=parseInt(re[3]),ne=1;else if((re=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(E))!==null)F=parseInt(re[1]),W=parseInt(re[2]),J=parseInt(re[3]),ne=parseFloat(re[4]);else{if(ne=1,typeof E=="string"&&E.charAt(0)!=="#"){var pe=new s_(E);E=pe.ok?pe.toHex():"#000000"}E.length===4?(F=E.substring(1,2),F+=F,W=E.substring(2,3),W+=W,J=E.substring(3,4),J+=J):(F=E.substring(1,3),W=E.substring(3,5),J=E.substring(5,7)),F=parseInt(F,16),W=parseInt(W,16),J=parseInt(J,16)}}return{r:F,g:W,b:J,a:ne,style:E}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},S=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};m.prototype.fillText=function(E,F,W,J){if(isNaN(F)||isNaN(W)||typeof E!="string")throw Wt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(J=isNaN(J)?void 0:J,!d.call(this)){var ne=V(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;R.call(this,{text:E,x:F,y:W,scale:re,angle:ne,align:this.textAlign,maxWidth:J})}},m.prototype.strokeText=function(E,F,W,J){if(isNaN(F)||isNaN(W)||typeof E!="string")throw Wt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!S.call(this)){J=isNaN(J)?void 0:J;var ne=V(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;R.call(this,{text:E,x:F,y:W,scale:re,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:J})}},m.prototype.measureText=function(E){if(typeof E!="string")throw Wt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var F=this.pdf,W=this.pdf.internal.scaleFactor,J=F.internal.getFontSize(),ne=F.getStringUnitWidth(E)*J/F.internal.scaleFactor;return new function(re){var pe=(re=re||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return pe}}),this}({width:ne*=Math.round(96*W/72*1e4)/1e4})},m.prototype.scale=function(E,F){if(isNaN(E)||isNaN(F))throw Wt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var W=new l(E,0,0,F,0,0);this.ctx.transform=this.ctx.transform.multiply(W)},m.prototype.rotate=function(E){if(isNaN(E))throw Wt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var F=new l(Math.cos(E),Math.sin(E),-Math.sin(E),Math.cos(E),0,0);this.ctx.transform=this.ctx.transform.multiply(F)},m.prototype.translate=function(E,F){if(isNaN(E)||isNaN(F))throw Wt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var W=new l(1,0,0,1,E,F);this.ctx.transform=this.ctx.transform.multiply(W)},m.prototype.transform=function(E,F,W,J,ne,re){if(isNaN(E)||isNaN(F)||isNaN(W)||isNaN(J)||isNaN(ne)||isNaN(re))throw Wt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var pe=new l(E,F,W,J,ne,re);this.ctx.transform=this.ctx.transform.multiply(pe)},m.prototype.setTransform=function(E,F,W,J,ne,re){E=isNaN(E)?1:E,F=isNaN(F)?0:F,W=isNaN(W)?0:W,J=isNaN(J)?1:J,ne=isNaN(ne)?0:ne,re=isNaN(re)?0:re,this.ctx.transform=new l(E,F,W,J,ne,re)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};m.prototype.drawImage=function(E,F,W,J,ne,re,pe,me,ye){var ke=this.pdf.getImageProperties(E),Re=1,Ce=1,He=1,D=1;J!==void 0&&me!==void 0&&(He=me/J,D=ye/ne,Re=ke.width/J*me/J,Ce=ke.height/ne*ye/ne),re===void 0&&(re=F,pe=W,F=0,W=0),J!==void 0&&me===void 0&&(me=J,ye=ne),J===void 0&&me===void 0&&(me=ke.width,ye=ke.height);var Pe=this.ctx.transform.decompose(),ut=V(Pe.rotate.shx),Ye=new l,Se=(Ye=(Ye=(Ye=Ye.multiply(Pe.translate)).multiply(Pe.skew)).multiply(Pe.scale)).applyToRectangle(new s(re-F*He,pe-W*D,J*Re,ne*Ce));if(this.autoPaging){for(var Je,Oe=_.call(this,Se),Xe=[],De=0;De<Oe.length;De+=1)Xe.indexOf(Oe[De])===-1&&Xe.push(Oe[De]);N(Xe);for(var Tt=Xe[0],bt=Xe[Xe.length-1],Ze=Tt;Ze<bt+1;Ze++){this.pdf.setPage(Ze);var pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],xt=Ze===1?this.posY+this.margin[0]:this.margin[0],Ue=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],nt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],We=Ze===1?0:Ue+(Ze-2)*nt;if(this.ctx.clip_path.length!==0){var rn=this.path;Je=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(Je,this.posX+this.margin[3],-We+xt+this.ctx.prevPageLastElemOffset),M.call(this,"fill",!0),this.path=rn}var _t=JSON.parse(JSON.stringify(Se));_t=x([_t],this.posX+this.margin[3],-We+xt+this.ctx.prevPageLastElemOffset)[0];var ot=(Ze>Tt||Ze<bt)&&w.call(this);ot&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pt,nt,null).clip().discardPath()),this.pdf.addImage(E,"JPEG",_t.x,_t.y,_t.w,_t.h,null,null,ut),ot&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(E,"JPEG",Se.x,Se.y,Se.w,Se.h,null,null,ut)};var _=function(E,F,W){var J=[];F=F||this.pdf.internal.pageSize.width,W=W||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(E.type){default:case"mt":case"lt":J.push(Math.floor((E.y+ne)/W)+1);break;case"arc":J.push(Math.floor((E.y+ne-E.radius)/W)+1),J.push(Math.floor((E.y+ne+E.radius)/W)+1);break;case"qct":var re=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,E.x1,E.y1,E.x,E.y);J.push(Math.floor((re.y+ne)/W)+1),J.push(Math.floor((re.y+re.h+ne)/W)+1);break;case"bct":var pe=de(this.ctx.lastPoint.x,this.ctx.lastPoint.y,E.x1,E.y1,E.x2,E.y2,E.x,E.y);J.push(Math.floor((pe.y+ne)/W)+1),J.push(Math.floor((pe.y+pe.h+ne)/W)+1);break;case"rect":J.push(Math.floor((E.y+ne)/W)+1),J.push(Math.floor((E.y+E.h+ne)/W)+1)}for(var me=0;me<J.length;me+=1)for(;this.pdf.internal.getNumberOfPages()<J[me];)y.call(this);return J},y=function(){var E=this.fillStyle,F=this.strokeStyle,W=this.font,J=this.lineCap,ne=this.lineWidth,re=this.lineJoin;this.pdf.addPage(),this.fillStyle=E,this.strokeStyle=F,this.font=W,this.lineCap=J,this.lineWidth=ne,this.lineJoin=re},x=function(E,F,W){for(var J=0;J<E.length;J++)switch(E[J].type){case"bct":E[J].x2+=F,E[J].y2+=W;case"qct":E[J].x1+=F,E[J].y1+=W;default:E[J].x+=F,E[J].y+=W}return E},N=function(E){return E.sort(function(F,W){return F-W})},A=function(E,F){var W=this.fillStyle,J=this.strokeStyle,ne=this.lineCap,re=this.lineWidth,pe=Math.abs(re*this.ctx.transform.scaleX),me=this.lineJoin;if(this.autoPaging){for(var ye,ke,Re=JSON.parse(JSON.stringify(this.path)),Ce=JSON.parse(JSON.stringify(this.path)),He=[],D=0;D<Ce.length;D++)if(Ce[D].x!==void 0)for(var Pe=_.call(this,Ce[D]),ut=0;ut<Pe.length;ut+=1)He.indexOf(Pe[ut])===-1&&He.push(Pe[ut]);for(var Ye=0;Ye<He.length;Ye++)for(;this.pdf.internal.getNumberOfPages()<He[Ye];)y.call(this);N(He);for(var Se=He[0],Je=He[He.length-1],Oe=Se;Oe<Je+1;Oe++){this.pdf.setPage(Oe),this.fillStyle=W,this.strokeStyle=J,this.lineCap=ne,this.lineWidth=pe,this.lineJoin=me;var Xe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],De=Oe===1?this.posY+this.margin[0]:this.margin[0],Tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],bt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ze=Oe===1?0:Tt+(Oe-2)*bt;if(this.ctx.clip_path.length!==0){var pt=this.path;ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(ye,this.posX+this.margin[3],-Ze+De+this.ctx.prevPageLastElemOffset),M.call(this,E,!0),this.path=pt}if(ke=JSON.parse(JSON.stringify(Re)),this.path=x(ke,this.posX+this.margin[3],-Ze+De+this.ctx.prevPageLastElemOffset),F===!1||Oe===0){var xt=(Oe>Se||Oe<Je)&&w.call(this);xt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xe,bt,null).clip().discardPath()),M.call(this,E,F),xt&&this.pdf.restoreGraphicsState()}this.lineWidth=re}this.path=Re}else this.lineWidth=pe,M.call(this,E,F),this.lineWidth=re},M=function(E,F){if((E!=="stroke"||F||!S.call(this))&&(E==="stroke"||F||!d.call(this))){for(var W,J,ne=[],re=this.path,pe=0;pe<re.length;pe++){var me=re[pe];switch(me.type){case"begin":ne.push({begin:!0});break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:me,deltas:[],abs:[]});break;case"lt":var ye=ne.length;if(re[pe-1]&&!isNaN(re[pe-1].x)&&(W=[me.x-re[pe-1].x,me.y-re[pe-1].y],ye>0)){for(;ye>=0;ye--)if(ne[ye-1].close!==!0&&ne[ye-1].begin!==!0){ne[ye-1].deltas.push(W),ne[ye-1].abs.push(me);break}}break;case"bct":W=[me.x1-re[pe-1].x,me.y1-re[pe-1].y,me.x2-re[pe-1].x,me.y2-re[pe-1].y,me.x-re[pe-1].x,me.y-re[pe-1].y],ne[ne.length-1].deltas.push(W);break;case"qct":var ke=re[pe-1].x+2/3*(me.x1-re[pe-1].x),Re=re[pe-1].y+2/3*(me.y1-re[pe-1].y),Ce=me.x+2/3*(me.x1-me.x),He=me.y+2/3*(me.y1-me.y),D=me.x,Pe=me.y;W=[ke-re[pe-1].x,Re-re[pe-1].y,Ce-re[pe-1].x,He-re[pe-1].y,D-re[pe-1].x,Pe-re[pe-1].y],ne[ne.length-1].deltas.push(W);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(me)}}J=F?null:E==="stroke"?"stroke":"fill";for(var ut=!1,Ye=0;Ye<ne.length;Ye++)if(ne[Ye].arc)for(var Se=ne[Ye].abs,Je=0;Je<Se.length;Je++){var Oe=Se[Je];Oe.type==="arc"?H.call(this,Oe.x,Oe.y,Oe.radius,Oe.startAngle,Oe.endAngle,Oe.counterclockwise,void 0,F,!ut):G.call(this,Oe.x,Oe.y),ut=!0}else if(ne[Ye].close===!0)this.pdf.internal.out("h"),ut=!1;else if(ne[Ye].begin!==!0){var Xe=ne[Ye].start.x,De=ne[Ye].start.y;B.call(this,ne[Ye].deltas,Xe,De),ut=!0}J&&I.call(this,J),F&&Z.call(this)}},K=function(E){var F=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,W=F*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return E-W;case"top":return E+F-W;case"hanging":return E+F-2*W;case"middle":return E+F/2-W;default:return E}},Y=function(E){return E+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};m.prototype.createLinearGradient=function(){var E=function(){};return E.colorStops=[],E.addColorStop=function(F,W){this.colorStops.push([F,W])},E.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},E.isCanvasGradient=!0,E},m.prototype.createPattern=function(){return this.createLinearGradient()},m.prototype.createRadialGradient=function(){return this.createLinearGradient()};var H=function(E,F,W,J,ne,re,pe,me,ye){for(var ke=se.call(this,W,J,ne,re),Re=0;Re<ke.length;Re++){var Ce=ke[Re];Re===0&&(ye?P.call(this,Ce.x1+E,Ce.y1+F):G.call(this,Ce.x1+E,Ce.y1+F)),ae.call(this,E,F,Ce.x2,Ce.y2,Ce.x3,Ce.y3,Ce.x4,Ce.y4)}me?Z.call(this):I.call(this,pe)},I=function(E){switch(E){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Z=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(E,F){this.pdf.internal.out(n(E)+" "+r(F)+" m")},R=function(E){var F;switch(E.align){case"right":case"end":F="right";break;case"center":F="center";break;default:F="left"}var W,J,ne,re=this.pdf.getTextDimensions(E.text),pe=K.call(this,E.y),me=Y.call(this,pe)-re.h,ye=this.ctx.transform.applyToPoint(new a(E.x,pe));if(this.autoPaging){var ke=this.ctx.transform.decompose(),Re=new l;Re=(Re=(Re=Re.multiply(ke.translate)).multiply(ke.skew)).multiply(ke.scale);for(var Ce=this.ctx.transform.applyToRectangle(new s(E.x,pe,re.w,re.h)),He=Re.applyToRectangle(new s(E.x,me,re.w,re.h)),D=_.call(this,He),Pe=[],ut=0;ut<D.length;ut+=1)Pe.indexOf(D[ut])===-1&&Pe.push(D[ut]);N(Pe);for(var Ye=Pe[0],Se=Pe[Pe.length-1],Je=Ye;Je<Se+1;Je++){this.pdf.setPage(Je);var Oe=Je===1?this.posY+this.margin[0]:this.margin[0],Xe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],De=this.pdf.internal.pageSize.height-this.margin[2],Tt=De-this.margin[0],bt=this.pdf.internal.pageSize.width-this.margin[1],Ze=bt-this.margin[3],pt=Je===1?0:Xe+(Je-2)*Tt;if(this.ctx.clip_path.length!==0){var xt=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(W,this.posX+this.margin[3],-1*pt+Oe),M.call(this,"fill",!0),this.path=xt}var Ue=x([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-pt+Oe+this.ctx.prevPageLastElemOffset)[0];E.scale>=.01&&(J=this.pdf.internal.getFontSize(),this.pdf.setFontSize(J*E.scale),ne=this.lineWidth,this.lineWidth=ne*E.scale);var nt=this.autoPaging!=="text";if(nt||Ue.y+Ue.h<=De){if(nt||Ue.y>=Oe&&Ue.x<=bt){var We=nt?E.text:this.pdf.splitTextToSize(E.text,E.maxWidth||bt-Ue.x)[0],rn=x([JSON.parse(JSON.stringify(Ce))],this.posX+this.margin[3],-pt+Oe+this.ctx.prevPageLastElemOffset)[0],_t=nt&&(Je>Ye||Je<Se)&&w.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,Tt,null).clip().discardPath()),this.pdf.text(We,rn.x,rn.y,{angle:E.angle,align:F,renderingMode:E.renderingMode}),_t&&this.pdf.restoreGraphicsState()}}else Ue.y<De&&(this.ctx.prevPageLastElemOffset+=De-Ue.y);E.scale>=.01&&(this.pdf.setFontSize(J),this.lineWidth=ne)}}else E.scale>=.01&&(J=this.pdf.internal.getFontSize(),this.pdf.setFontSize(J*E.scale),ne=this.lineWidth,this.lineWidth=ne*E.scale),this.pdf.text(E.text,ye.x+this.posX,ye.y+this.posY,{angle:E.angle,align:F,renderingMode:E.renderingMode,maxWidth:E.maxWidth}),E.scale>=.01&&(this.pdf.setFontSize(J),this.lineWidth=ne)},G=function(E,F,W,J){W=W||0,J=J||0,this.pdf.internal.out(n(E+W)+" "+r(F+J)+" l")},B=function(E,F,W){return this.pdf.lines(E,F,W,null,null)},ae=function(E,F,W,J,ne,re,pe,me){this.pdf.internal.out([t(i(W+E)),t(o(J+F)),t(i(ne+E)),t(o(re+F)),t(i(pe+E)),t(o(me+F)),"c"].join(" "))},se=function(E,F,W,J){for(var ne=2*Math.PI,re=Math.PI/2;F>W;)F-=ne;var pe=Math.abs(W-F);pe<ne&&J&&(pe=ne-pe);for(var me=[],ye=J?-1:1,ke=F;pe>1e-5;){var Re=ke+ye*Math.min(pe,re);me.push(ue.call(this,E,ke,Re)),pe-=Math.abs(Re-ke),ke=Re}return me},ue=function(E,F,W){var J=(W-F)/2,ne=E*Math.cos(J),re=E*Math.sin(J),pe=ne,me=-re,ye=pe*pe+me*me,ke=ye+pe*ne+me*re,Re=4/3*(Math.sqrt(2*ye*ke)-ke)/(pe*re-me*ne),Ce=pe-Re*me,He=me+Re*pe,D=Ce,Pe=-He,ut=J+F,Ye=Math.cos(ut),Se=Math.sin(ut);return{x1:E*Math.cos(F),y1:E*Math.sin(F),x2:Ce*Ye-He*Se,y2:Ce*Se+He*Ye,x3:D*Ye-Pe*Se,y3:D*Se+Pe*Ye,x4:E*Math.cos(W),y4:E*Math.sin(W)}},V=function(E){return 180*E/Math.PI},Q=function(E,F,W,J,ne,re){var pe=E+.5*(W-E),me=F+.5*(J-F),ye=ne+.5*(W-ne),ke=re+.5*(J-re),Re=Math.min(E,ne,pe,ye),Ce=Math.max(E,ne,pe,ye),He=Math.min(F,re,me,ke),D=Math.max(F,re,me,ke);return new s(Re,He,Ce-Re,D-He)},de=function(E,F,W,J,ne,re,pe,me){var ye,ke,Re,Ce,He,D,Pe,ut,Ye,Se,Je,Oe,Xe,De,Tt=W-E,bt=J-F,Ze=ne-W,pt=re-J,xt=pe-ne,Ue=me-re;for(ke=0;ke<41;ke++)Ye=(Pe=(Re=E+(ye=ke/40)*Tt)+ye*((He=W+ye*Ze)-Re))+ye*(He+ye*(ne+ye*xt-He)-Pe),Se=(ut=(Ce=F+ye*bt)+ye*((D=J+ye*pt)-Ce))+ye*(D+ye*(re+ye*Ue-D)-ut),ke==0?(Je=Ye,Oe=Se,Xe=Ye,De=Se):(Je=Math.min(Je,Ye),Oe=Math.min(Oe,Se),Xe=Math.max(Xe,Ye),De=Math.max(De,Se));return new s(Math.round(Je),Math.round(Oe),Math.round(Xe-Je),Math.round(De-Oe))},he=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var E,F,W=(E=this.ctx.lineDash,F=this.ctx.lineDashOffset,JSON.stringify({lineDash:E,lineDashOffset:F}));this.prevLineDash!==W&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=W)}}})(Ke.API),function(e){var t=function(a){var s,l,c,h,m,g,d,S,w,_;for(l=[],c=0,h=(a+=s="\0\0\0\0".slice(a.length%4||4)).length;h>c;c+=4)(m=(a.charCodeAt(c)<<24)+(a.charCodeAt(c+1)<<16)+(a.charCodeAt(c+2)<<8)+a.charCodeAt(c+3))!==0?(g=(m=((m=((m=((m=(m-(_=m%85))/85)-(w=m%85))/85)-(S=m%85))/85)-(d=m%85))/85)%85,l.push(g+33,d+33,S+33,w+33,_+33)):l.push(122);return function(y,x){for(var N=x;N>0;N--)y.pop()}(l,s.length),String.fromCharCode.apply(String,l)+"~>"},n=function(a){var s,l,c,h,m,g=String,d="length",S=255,w="charCodeAt",_="slice",y="replace";for(a[_](-2),a=a[_](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),c=[],h=0,m=(a+=s="uuuuu"[_](a[d]%5||5))[d];m>h;h+=5)l=52200625*(a[w](h)-33)+614125*(a[w](h+1)-33)+7225*(a[w](h+2)-33)+85*(a[w](h+3)-33)+(a[w](h+4)-33),c.push(S&l>>24,S&l>>16,S&l>>8,S&l);return function(x,N){for(var A=N;A>0;A--)x.pop()}(c,s[d]),g.fromCharCode.apply(g,c)},r=function(a){return a.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(a){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),s.test(a)===!1)return"";for(var l="",c=0;c<a.length;c+=2)l+=String.fromCharCode("0x"+(a[c]+a[c+1]));return l},o=function(a){for(var s=new Uint8Array(a.length),l=a.length;l--;)s[l]=a.charCodeAt(l);return(s=_2(s)).reduce(function(c,h){return c+String.fromCharCode(h)},"")};e.processDataByFilters=function(a,s){var l=0,c=a||"",h=[];for(typeof(s=s||[])=="string"&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=o(c),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:c,reverseChain:h.reverse().join(" ")}}}(Ke.API),function(e){e.loadFile=function(t,n,r){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 m=new XMLHttpRequest,g=0,d=function(S){var w=S.length,_=[],y=String.fromCharCode;for(g=0;g<w;g+=1)_.push(y(255&S.charCodeAt(g)));return _.join("")};if(m.open("GET",l,!c),m.overrideMimeType("text/plain;
299 charset=x-user-defined"),c===!1&&(m.onload=function(){m.status===200?h(d(this.responseText)):h(void 0)}),m.send(null),c&&m.status===200)return d(m.responseText)}(i,o,a)}catch{}return s}(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Ke.API),function(e){function t(){return(it.html2canvas?Promise.resolve(it.html2canvas):j1(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(it.DOMPurify?Promise.resolve(it.DOMPurify):j1(()=>import("./purify.es-dhnUglUx.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var l=Bt(s);return l==="undefined"?"undefined":l==="string"||s instanceof String?"string":l==="number"||s instanceof Number?"number":l==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(s,l){var c=document.createElement(s);for(var h in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[h]=l.style[h];return c},o=function s(l,c){for(var h=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),m=l.firstChild;m;m=m.nextSibling)c!==!0&&m.nodeType===1&&m.nodeName==="SCRIPT"||h.appendChild(s(m,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(h.width=l.width,h.height=l.height,h.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(h.value=l.value),h.addEventListener("load",function(){h.scrollTop=l.scrollTop,h.scrollLeft=l.scrollLeft},!0)),h},a=function s(l){var c=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),h=s.convert(Promise.resolve(),c);return(h=h.setProgress(1,s,1,[s])).set(l)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(s,l){return s.__proto__=l||a.prototype,s},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(s,l){return this.then(function(){switch(l=l||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),l){case"string":return this.then(n).then(function(c){return this.set({src:i("div",{innerHTML:s,dompurify:c})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},a.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},a.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=this.opt.jsPDF,h=this.opt.fontFaces,m=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,g=Object.assign({async:!0,allowTaint:!0,scale:m,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 g.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=h,h)for(var d=0;d<h.length;++d){var S=h[d],w=S.src.find(function(_){return _.format==="truetype"});w&&c.addFont(w.url,S.ref.name,S.ref.style)}
vendor: 28,419 bytes, lines 299-307
299return g.windowHeight=g.windowHeight||0,g.windowHeight=g.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):g.windowHeight,c.context2d.save(!0),l(this.prop.container,g)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(s,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(s,l):this.outputPdf(s,l)},a.prototype.outputPdf=function(s,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,l)})},a.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},a.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(s){if(r(s)!=="object")return this;var l=Object.keys(s||{}).map(function(c){if(c in a.template.prop)return function(){this.prop[c]=s[c]};switch(c){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[c]=s[c]}}},this);return this.then(function(){return this.thenList(l)})},a.prototype.get=function(s,l){return this.then(function(){var c=s in a.template.prop?this.prop[s]:this.opt[s];return l?l(c):c})},a.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},a.prototype.setPageSize=function(s){function l(c,h){return Math.floor(c*h/72*96)}return this.then(function(){(s=s||Ke.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:l(s.inner.width,s.k),height:l(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},a.prototype.setProgress=function(s,l,c,h){return s!=null&&(this.progress.val=s),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(s,l,c,h){return this.setProgress(s?this.progress.val+s:null,l||null,c?this.progress.n+c:null,h?this.progress.stack.concat(h):null)},a.prototype.then=function(s,l){var c=this;return this.thenCore(s,l,function(h,m){return c.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(g){return c.updateProgress(null,h),g}).then(h,m).then(function(g){return c.updateProgress(1),g})})},a.prototype.thenCore=function(s,l,c){c=c||Promise.prototype.then;var h=this;s&&(s=s.bind(h)),l&&(l=l.bind(h));var m=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:a.convert(Object.assign({},h),Promise.prototype),g=c.call(m,s,l);return a.convert(g,h.__proto__)},a.prototype.thenExternal=function(s,l){return Promise.prototype.then.call(this,s,l)},a.prototype.thenList=function(s){var l=this;return s.forEach(function(c){l=l.thenCore(c)}),l},a.prototype.catch=function(s){s&&(s=s.bind(this));var l=Promise.prototype.catch.call(this,s);return a.convert(l,this)},a.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},a.prototype.error=function(s){return this.then(function(){throw new Error(s)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,Ke.getPageSize=function(s,l,c){if(Bt(s)==="object"){var h=s;s=h.orientation,l=h.unit||l,c=h.format||c}l=l||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase();var m,g=(""+c).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":m=1;break;case"mm":m=72/25.4;break;case"cm":m=72/2.54;break;case"in":m=72;break;case"px":m=.75;break;case"pc":case"em":m=12;break;case"ex":m=6;break;default:throw"Invalid unit: "+l}var S,w=0,_=0;if(d.hasOwnProperty(g))w=d[g][1]/m,_=d[g][0]/m;else try{w=c[1],_=c[0]}catch{throw new Error("Invalid format: "+c)}if(s==="p"||s==="portrait")s="p",_>w&&(S=_,_=w,w=S);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>_&&(S=_,_=w,w=S)}return{width:_,height:w,unit:l,k:m,orientation:s}},e.html=function(s,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(o0):null;var c=new a(l);return l.worker?c:c.from(s).doCallback()}}(Ke.API),Ke.API.addJS=function(e){var t,n,r=function(i){for(var o="",a=0;a<i.length;a++){var s=i[a];if(s==="("||s===")"){for(var l=0,c=a-1;c>=0&&i[c]==="\\";c--)l++;o+=l%2==0?"\\"+s:s}else o+=s}return o}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),o=0;o<i.length;o++){var a=i[o],s=r.exec(a);if(s!=null){var l=s[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,h=[];for(o=0;o<c;o++){var m=n.internal.newObject();h.push(m);var g=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var d=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<h.length;o++)n.internal.write("(page_"+(o+1)+")"+h[o]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+d+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,o){var a={title:i,options:o,children:[]};return r==null&&(r=this.root),r.children.push(a),a},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var a=r.children[o];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.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=n.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},n.outline.line=function(r){this.ctx.val+=r+`\r
300`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
301`+r.id+` 0 obj\r
302<<\r
303`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
304endobj\r
305`},n.outline.count_r=function(r,i){for(var o=0;o<i.children.length;o++)r.count++,this.count_r(r,i.children[o]);return r.count}}])}(Ke.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,o,a,s){var l,c=this.decode.DCT_DECODE,h=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=a||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=function(m){for(var g,d=256*m.charCodeAt(4)+m.charCodeAt(5),S=m.length,w={width:0,height:0,numcomponents:1},_=4;_<S;_+=2){if(_+=d,t.indexOf(m.charCodeAt(_+1))!==-1){g=256*m.charCodeAt(_+5)+m.charCodeAt(_+6),w={width:256*m.charCodeAt(_+7)+m.charCodeAt(_+8),height:g,numcomponents:m.charCodeAt(_+9)};break}d=256*m.charCodeAt(_+2)+m.charCodeAt(_+3)}return w}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.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:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:i}}return h}}(Ke.API),Ke.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,o=NT(e,{checkCrc:!0}),a=o.width,s=o.height,l=o.channels,c=o.palette,h=o.depth;i=c&&l===1?function(H){for(var I=H.width,Z=H.height,P=H.data,R=H.palette,G=H.depth,B=!1,ae=[],se=[],ue=void 0,V=!1,Q=0,de=0;de<R.length;de++){var he=Hv(R[de],4),E=he[0],F=he[1],W=he[2],J=he[3];ae.push(E,F,W),J!=null&&(J===0?(Q++,se.length<1&&se.push(de)):J<255&&(V=!0))}if(V||Q>1){B=!0,se=void 0;var ne=I*Z;ue=new Uint8Array(ne);for(var re=new DataView(P.buffer),pe=0;pe<ne;pe++){var me=s0(re,pe,G),ye=Hv(R[me],4)[3];ue[pe]=ye}}else Q===0&&(se=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:B?8:void 0,colorBytes:P,alphaBytes:ue,needSMask:B,palette:ae,mask:se}}(o):l===2||l===4?function(H){for(var I=H.data,Z=H.width,P=H.height,R=H.channels,G=H.depth,B=R===2?"DeviceGray":"DeviceRGB",ae=R-1,se=Z*P,ue=ae,V=se*ue,Q=1*se,de=Math.ceil(V*G/8),he=Math.ceil(Q*G/8),E=new Uint8Array(de),F=new Uint8Array(he),W=new DataView(I.buffer),J=new DataView(E.buffer),ne=new DataView(F.buffer),re=!1,pe=0;pe<se;pe++){for(var me=pe*R,ye=0;ye<ue;ye++)rw(J,s0(W,me+ye,G),pe*ue+ye,G);var ke=s0(W,me+ue,G);ke<(1<<G)-1&&(re=!0),rw(ne,ke,1*pe,G)}return{colorSpace:B,colorsPerPixel:ae,sMaskBitsPerComponent:re?G:void 0,colorBytes:E,alphaBytes:F,needSMask:re}}(o):function(H){var I=H.data,Z=H.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Z,colorsPerPixel:Z==="DeviceGray"?1:3,colorBytes:I instanceof Uint16Array?function(P){for(var R=P.length,G=new Uint8Array(2*R),B=new DataView(G.buffer,G.byteOffset,G.byteLength),ae=0;ae<R;ae++)B.setUint16(2*ae,P[ae],!1);return G}(I):I,needSMask:!1}}(o);var m,g,d,S=i,w=S.colorSpace,_=S.colorsPerPixel,y=S.sMaskBitsPerComponent,x=S.colorBytes,N=S.alphaBytes,A=S.needSMask,M=S.palette,K=S.mask,Y=null;return r!==Ke.API.image_compression.NONE&&typeof _2=="function"?(Y=function(H){var I;switch(H){case Ke.API.image_compression.FAST:I=11;break;case Ke.API.image_compression.MEDIUM:I=13;break;case Ke.API.image_compression.SLOW:I=14;break;default:I=12}return I}(r),m=this.decode.FLATE_DECODE,g="/Predictor ".concat(Y," /Colors ").concat(_," /BitsPerComponent ").concat(h," /Columns ").concat(a),e=Qy(x,Math.ceil(a*_*h/8),_,h,r),A&&(d=Qy(N,Math.ceil(a*y/8),1,y,r))):(m=void 0,g=void 0,e=x,A&&(d=N)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:n,data:e,index:t,filter:m,decodeParameters:g,transparency:K,palette:M,sMask:d,predictor:Y,width:a,height:s,bitsPerComponent:h,sMaskBitsPerComponent:y,colorSpace:w}}},function(e){e.processGIF89A=function(t,n,r,i){var o=new WT(t),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:a,height:s},h=new l0(100).encode(c,100);return e.processJPEG.call(this,h,n,r,i)},e.processGIF87A=e.processGIF89A}(Ke.API),Pi.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 n=this.datav.getUint8(this.pos++,!0),r=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:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Pi.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Wt.log("bit decode error:"+n)}},Pi.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*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}n!==0&&(this.pos+=4-n)}},Pi.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*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)}},Pi.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;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)}},Pi.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,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=r*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}},Pi.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,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&n)/n*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}},Pi.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=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*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Pi.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=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*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},Pi.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var o=new Pi(t,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},c=new l0(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(Ke.API),ow.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var o=new ow(t),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},c=new l0(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(Ke.API),Ke.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var h=r[c],m=r[c+1],g=r[c+2],d=r[c+3];o[s++]=h,o[s++]=m,o[s++]=g,a[l++]=d}var S=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:S,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ke.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Al=Ke.API,jd=Al.getCharWidthsArray=function(e,t){var n,r,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,m=t.doKerning!==!1,g=0,d=e.length,S=0,w=s[0]||l,_=[];for(n=0;n<d;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?_.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+a*(1e3/o)||0)/1e3):(g=m&&Bt(c[r])==="object"&&!isNaN(parseInt(c[r][S],10))?c[r][S]/h:0,_.push((s[r]||w)/l+g)),S=r;return _},Ky=Al.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Al.processArabic&&(e=Al.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:jd.apply(this,arguments).reduce(function(o,a){return o+a},0)},Zy=function(e,t,n,r){for(var i=[],o=0,a=e.length,s=0;o!==a&&s+t[o]<n;)s+=t[o],o++;i.push(e.slice(0,o));var l=o;for(s=0;o!==a;)s+t[o]>r&&(i.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},Xy=function(e,t,n){n||(n={});var r,i,o,a,s,l,c,h=[],m=[h],g=n.textIndent||0,d=0,S=0,w=e.split(" "),_=jd.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?w[0].length+2:n.lineIndent||0){var y=Array(l).join(" "),x=[];w.map(function(A){(A=A.split(/\s*\n/)).length>1?x=x.concat(A.map(function(M,K){return(K&&M.length?`
306`:"")+M})):x.push(A[0])}),w=x,l=Ky.apply(this,[y,n])}for(o=0,a=w.length;o<a;o++){var N=0;if(r=w[o],l&&r[0]==`
307`&&(r=r.substr(1),N=1),g+d+(S=(i=jd.apply(this,[r,n])).reduce(function(A,M){return A+M},0))>t||N){if(S>t){for(s=Zy.apply(this,[r,i,t-(g+d),t]),h.push(s.shift()),h=[s.pop()];s.length;)m.push([s.shift()]);S=i.slice(r.length-(h[0]?h[0].length:0)).reduce(function(A,M){return A+M},0)}else h=[r];m.push(h),g=S+l,d=_}else h.push(r),g+=d+S,d=_}return c=l?function(A,M){return(M?y:"")+A.join(" ")}:function(A){return A.join(" ")},m.map(c)},Al.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var m=this.internal.getFont(h.fontName,h.fontStyle),g="Unicode";return m.metadata[g]?{widths:m.metadata[g].widths||{0:1},kerning:m.metadata[g].kerning||{}}:{font:m.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(Xy.apply(this,[r[s],a,o]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},o=0;o<16;o++)r[n[o]]=t[o],i[t[o]]=n[o];var a=function(g){return"0x"+parseInt(g,10).toString(16)},s=e.__fontmetrics__.compress=function(g){var d,S,w,_,y=["{"];for(var x in g){if(d=g[x],isNaN(parseInt(x,10))?S="'"+x+"'":(x=parseInt(x,10),S=(S=a(x).slice(2)).slice(0,-1)+i[S.slice(-1)]),typeof d=="number")d<0?(w=a(d).slice(3),_="-"):(w=a(d).slice(2),_=""),w=_+w.slice(0,-1)+i[w.slice(-1)];else{if(Bt(d)!=="object")throw new Error("Don't know what to do with value type "+Bt(d)+".");w=s(d)}y.push(S+w)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(g){if(typeof g!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,S,w,_,y={},x=1,N=y,A=[],M="",K="",Y=g.length-1,H=1;H<Y;H+=1)(_=g[H])=="'"?d?(w=d.join(""),d=void 0):d=[]:d?d.push(_):_=="{"?(A.push([N,w]),N={},w=void 0):_=="}"?((S=A.pop())[0][S[1]]=N,w=void 0,N=S[0]):_=="-"?x=-1:w===void 0?r.hasOwnProperty(_)?(M+=r[_],w=parseInt(M,16)*x,x=1,M=""):M+=_:r.hasOwnProperty(_)?(K+=r[_],N[w]=parseInt(K,16)*x,x=1,w=void 0,K=""):K+=_;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},m
vendor: 14,727 bytes, line 307
307={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'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":l("{'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:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'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:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'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":l("{'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:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'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":l("{'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":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 44,946 bytes, lines 307-335
307g){var d=g.font,S=m.Unicode[d.postScriptName];S&&(d.metadata.Unicode={},d.metadata.Unicode.widths=S.widths,d.metadata.Unicode.kerning=S.kerning);var w=h.Unicode[d.postScriptName];w&&(d.metadata.Unicode.encoding=w,d.encoding=w.codePages[0])}])}(Ke.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.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(r=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(Jd(s)),a.metadata=e.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(i,r)}}])}(Ke),Ke.API.addSvgAsImage=function(e,t,n,r,i,o,a,s){if(isNaN(t)||isNaN(n))throw Wt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Wt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},m=this;return(it.canvg?Promise.resolve(it.canvg):j1(()=>import("./index.es-CWNUzIHf.js"),[])).catch(function(g){return Promise.reject(new Error("Could not load canvg: "+g))}).then(function(g){return g.default?g.default:g}).then(function(g){return g.fromString(c,e,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(g){return g.render(h)}).then(function(){m.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,a,s)})},Ke.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Ke.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,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,m=0;function g(S,w){var _,y=!1;for(_=0;_<S.length;_+=1)S[_]===w&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var d=s.length;for(m=0;m<d;m+=1)n[s[m]].value=n[s[m]].defaultValue,n[s[m]].explicitSet=!1}if(Bt(e)==="object"){for(i in e)if(o=e[i],g(s,i)&&o!==void 0){if(n[i].type==="boolean"&&typeof o=="boolean")n[i].value=o;else if(n[i].type==="name"&&g(n[i].valueSet,o))n[i].value=o;else if(n[i].type==="integer"&&Number.isInteger(o))n[i].value=o;else if(n[i].type==="array"){for(c=0;c<o.length;c+=1)if(r=!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"&&(r=!1);r===!0&&l.push([o[c][0]-1,o[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var S,w=[];for(S in n)n[S].explicitSet===!0&&(n[S].type==="name"?w.push("/"+S+" /"+n[S].value):w.push("/"+S+" "+n[S].value));w.length!==0&&this.internal.write(`/ViewerPreferences
308<<
309`+w.join(`
310`)+`
311>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Ke.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",GT),this.internal.events.subscribe("postPutResources",VT)),this},function(e){var t=e.API,n=t.pdfEscape16=function(o,a){for(var s,l=a.metadata.Unicode.widths,c=["","0","00","000","0000"],h=[""],m=0,g=o.length;m<g;++m){if(s=a.metadata.characterToGlyph(o.charCodeAt(m)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=o.charCodeAt(m),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("")},r=function(o){var a,s,l,c,h,m,g;for(h=`/CIDInit /ProcSet findresource begin
31212 dict begin
313begincmap
314/CIDSystemInfo <<
315  /Registry (Adobe)
316  /Ordering (UCS)
317  /Supplement 0
318>> def
319/CMapName /Adobe-Identity-UCS def
320/CMapType 2 def
3211 begincodespacerange
322<0000><ffff>
323endcodespacerange`,l=[],m=0,g=(s=Object.keys(o).sort(function(d,S){return d-S})).length;m<g;m++)a=s[m],l.length>=100&&(h+=`
324`+l.length+` beginbfchar
325`+l.join(`
326`)+`
327endbfchar`,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+=`
328`+l.length+` beginbfchar
329`+l.join(`
330`)+`
331endbfchar
332`),h+`endcmap
333CMapName currentdict /CMap defineresource pop
334end
335end`};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 m=s.metadata.Unicode.widths,g=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),d="",S=0;S<g.length;S++)d+=String.fromCharCode(g[S]);var w=c();h({data:d,addLength1:!0,objectId:w}),l("endobj");var _=c();h({data:r(s.metadata.toUnicode),addLength1:!0,objectId:_}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+El(s.fontName)),l("/FontFile2 "+w+" 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 x=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+El(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(m)),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 "+_+" 0 R"),l("/BaseFont /"+El(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+x+" 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 m=s.metadata.rawData,g="",d=0;d<m.length;d++)g+=String.fromCharCode(m[d]);var S=c();h({data:g,addLength1:!0,objectId:S}),l("endobj");var w=c();h({data:r(s.metadata.toUnicode),addLength1:!0,objectId:w}),l("endobj");var _=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+S+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+El(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+El(s.fontName)+"/FontDescriptor "+_+" 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||{},m=o.mutex||{},g=m.pdfEscape,d=m.activeFontKey,S=m.fonts,w=d,_="",y=0,x="",N=S[w].encoding;if(S[w].encoding!=="Identity-H")return{text:s,x:l,y:c,options:h,mutex:m};for(x=s,w=d,Array.isArray(s)&&(x=s[0]),y=0;y<x.length;y+=1)S[w].metadata.hasOwnProperty("cmap")&&(a=S[w].metadata.cmap.unicode.codeMap[x[y].charCodeAt(0)]),a||x[y].charCodeAt(0)<256&&S[w].metadata.hasOwnProperty("Unicode")?_+=x[y]:_+="";var A="";return parseInt(w.slice(1))<14||N==="WinAnsiEncoding"?A=g(_,w).split("").map(function(M){return M.charCodeAt(0).toString(16)}).join(""):N==="Identity-H"&&(A=n(_,S[w])),m.isHex=!0,{text:A,x:l,y:c,options:h,mutex:m}};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}])}(Ke),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Ke.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,o,a,s,l,c,h,m=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]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],S={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},_=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,N=0;this.__bidiEngine__={};var A=function(P){var R=P.charCodeAt(),G=R>>8,B=w[G];return B!==void 0?m[256*B+(255&R)]:G===252||G===253?"AL":y.test(G)?"L":G===8?"R":"N"},M=function(P){for(var R,G=0;G<P.length;G++){if((R=A(P.charAt(G)))==="L")return!1;if(R==="R")return!0}return!1},K=function(P,R,G,B){var ae,se,ue,V,Q=R[B];switch(Q){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"N":case"AN":break;case"EN":x&&(Q="AN");break;case"AL":x=!0,Q="R";break;case"WS":case"BN":Q="N";break;case"CS":B<1||B+1>=R.length||(ae=G[B-1])!=="EN"&&ae!=="AN"||(se=R[B+1])!=="EN"&&se!=="AN"?Q="N":x&&(se="AN"),Q=se===ae?se:"N";break;case"ES":Q=(ae=B>0?G[B-1]:"B")==="EN"&&B+1<R.length&&R[B+1]==="EN"?"EN":"N";break;case"ET":if(B>0&&G[B-1]==="EN"){Q="EN";break}if(x){Q="N";break}for(ue=B+1,V=R.length;ue<V&&R[ue]==="ET";)ue++;Q=ue<V&&R[ue]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(V=R.length,ue=B+1;ue<V&&R[ue]==="NSM";)ue++;if(ue<V){var de=P[B],he=de>=1425&&de<=2303||de===64286;if(ae=R[ue],he&&(ae==="R"||ae==="AL")){Q="R";break}}}Q=B<1||(ae=R[B-1])==="B"?"N":G[B-1];break;case"B":x=!1,i=!0,Q=N;break;case"S":o=!0,Q="N"}return Q},Y=function(P,R,G){var B=P.split("");return G&&H(B,G,{hiLevel:N}),B.reverse(),R&&R.reverse(),B.join("")},H=function(P,R,G){var B,ae,se,ue,V,Q=-1,de=P.length,he=0,E=[],F=N?d:g,W=[];for(x=!1,i=!1,o=!1,ae=0;ae<de;ae++)W[ae]=A(P[ae]);for(se=0;se<de;se++){if(V=he,E[se]=K(P,W,E,se),B=240&(he=F[V][S[E[se]]]),he&=15,R[se]=ue=F[he][5],B>0)if(B===16){for(ae=Q;ae<se;ae++)R[ae]=1;Q=-1}else Q=-1;if(F[he][6])Q===-1&&(Q=se);else if(Q>-1){for(ae=Q;ae<se;ae++)R[ae]=ue;Q=-1}W[se]==="B"&&(R[se]=0),G.hiLevel|=ue}o&&function(J,ne,re){for(var pe=0;pe<re;pe++)if(J[pe]==="S"){ne[pe]=N;for(var me=pe-1;me>=0&&J[me]==="WS";me--)ne[me]=N}}(W,R,de)},I=function(P,R,G,B,ae){if(!(ae.hiLevel<P)){if(P===1&&N===1&&!i)return R.reverse(),void(G&&G.reverse());for(var se,ue,V,Q,de=R.length,he=0;he<de;){if(B[he]>=P){for(V=he+1;V<de&&B[V]>=P;)V++;for(Q=he,ue=V-1;Q<ue;Q++,ue--)se=R[Q],R[Q]=R[ue],R[ue]=se,G&&(se=G[Q],G[Q]=G[ue],G[ue]=se);he=V}he++}}},Z=function(P,R,G){var B=P.split(""),ae={hiLevel:N};return G||(G=[]),H(B,G,ae),function(se,ue,V){if(V.hiLevel!==0&&h)for(var Q,de=0;de<se.length;de++)ue[de]===1&&(Q=_.indexOf(se[de]))>=0&&(se[de]=_[Q+1])}(B,G,ae),I(2,B,R,G,ae),I(1,B,R,G,ae),B.join("")};return this.__bidiEngine__.doBidiReorder=function(P,R,G){if(function(ae,se){if(se)for(var ue=0;ue<ae.length;ue++)se[ue]=ue;s===void 0&&(s=M(ae)),c===void 0&&(c=M(ae))}(P,R),a||!l||c)if(a&&l&&s^c)N=s?1:0,P=Y(P,R,G);else if(!a&&l&&c)N=s?1:0,P=Z(P,R,G),P=Y(P,R);else if(!a||s||l||c){if(a&&!l&&s^c)P=Y(P,R),s?(N=0,P=Z(P,R,G)):(N=1,P=Z(P,R,G),P=Y(P,R));else if(a&&s&&!l&&c)N=1,P=Z(P,R,G),P=Y(P,R);else if(!a&&!l&&s^c){var B=h;s?(N=1,P=Z(P,R,G),N=0,h=!1,P=Z(P,R,G),h=B):(N=0,P=Z(P,R,G),P=Y(P,R),N=1,h=!1,P=Z(P,R,G),h=B,P=Y(P,R))}}else N=0,P=Z(P,R,G);else N=s?1:0,P=Z(P,R,G);return P},this.__bidiEngine__.setOptions=function(P){P&&(a=P.isInputVisual,l=P.isOutputVisual,s=P.isInputRtl,c=P.isOutputRtl,h=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),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"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var a=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.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([n.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):a.push([n.doBidiReorder(i[s])]);r.text=a}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(Ke),Ke.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new Ja(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new lR(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new YT(this.contents),this.head=new ZT(this),this.name=new tR(this),this.cmap=new y_(this),this.toUnicode={},this.hhea=new XT(this),this.maxp=new nR(this),this.hmtx=new rR(this),this.post=new JT(this),this.os2=new QT(this),this.loca=new sR(this),this.glyf=new iR(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,n,r,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?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):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 n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){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))+r*(1e3/n)||0;return a*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var Vi,Ja=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 n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,o,a,s,l;return t=this.readByte(),n=this.readByte(),r=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^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^o)+65536*(255^a)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*o+65536*a+256*s+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,o;for(o=[],r=0,i=t.length;r<i;r++)n=t[r],o.push(this.writeByte(n));return o},e}(),YT=function(){var e;function t(n){var r,i,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,o,a,s,l,c,h,m,g,d,S,w;for(w in d=Object.keys(n).length,l=Math.log(2),m=16*Math.floor(Math.log(d)/l),a=Math.floor(m/l),h=16*d-m,(i=new Ja).writeInt(this.scalarType),i.writeShort(d),i.writeShort(m),i.writeShort(a),i.writeShort(h),o=16*d,c=i.pos+o,s=null,S=[],n)for(g=n[w],i.writeString(w),i.writeInt(e(g)),i.writeInt(c),i.writeInt(g.length),S=S.concat(g),w==="head"&&(s=c),c+=g.length;c%4;)S.push(0),c++;return i.write(S),r=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(r),i.data},e=function(n){var r,i,o,a;for(n=w_.call(n);n.length%4;)n.push(0);for(o=new Ja(n),i=0,r=0,a=n.length;r<a;r=r+=4)i+=o.readUInt32();return 4294967295&i},t}(),KT={}.hasOwnProperty,bo=function(e,t){for(var n in t)KT.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};Vi=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.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 ZT=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new Ja).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),aw=function(){function e(t,n){var r,i,o,a,s,l,c,h,m,g,d,S,w,_,y,x,N;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),m=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(d=t.readUInt16(),g=d/2,t.pos+=6,o=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),t.pos+=2,w=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),c=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),h=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),i=(this.length-t.pos+this.offset)/2,s=function(){var A,M;for(M=[],l=A=0;0<=i?A<i:A>i;l=0<=i?++A:--A)M.push(t.readUInt16());return M}(),l=y=0,N=o.length;y<N;l=++y)for(_=o[l],r=x=S=w[l];S<=_?x<=_:x>=_;r=S<=_?++x:--x)h[l]===0?a=r+c[l]:(a=s[h[l]/2+(r-S)-(g-l)]||0)!==0&&(a+=c[l]),this.codeMap[r]=65535&a}t.pos=m}return e.encode=function(t,n){var r,i,o,a,s,l,c,h,m,g,d,S,w,_,y,x,N,A,M,K,Y,H,I,Z,P,R,G,B,ae,se,ue,V,Q,de,he,E,F,W,J,ne,re,pe,me,ye,ke,Re;switch(B=new Ja,a=Object.keys(t).sort(function(Ce,He){return Ce-He}),n){case"macroman":for(w=0,_=function(){var Ce=[];for(S=0;S<256;++S)Ce.push(0);return Ce}(),x={0:0},o={},ae=0,Q=a.length;ae<Q;ae++)x[me=t[i=a[ae]]]==null&&(x[me]=++w),o[i]={old:t[i],new:x[t[i]]},_[i]=x[t[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(_),{charMap:o,subtable:B.data,maxGlyphID:w+1};case"unicode":for(R=[],m=[],N=0,x={},r={},y=c=null,se=0,de=a.length;se<de;se++)x[M=t[i=a[se]]]==null&&(x[M]=++N),r[i]={old:M,new:x[M]},s=x[M]-i,y!=null&&s===c||(y&&m.push(y),R.push(i),c=s),y=i;for(y&&m.push(y),m.push(65535),R.push(65535),Z=2*(I=R.length),H=2*Math.pow(Math.log(I)/Math.LN2,2),g=Math.log(H/2)/Math.LN2,Y=2*I-H,l=[],K=[],d=[],S=ue=0,he=R.length;ue<he;S=++ue){if(P=R[S],h=m[S],P===65535){l.push(0),K.push(0);break}if(P-(G=r[P].new)>=32768)for(l.push(0),K.push(2*(d.length+I-S)),i=V=P;P<=h?V<=h:V>=h;i=P<=h?++V:--V)d.push(r[i].new);else l.push(G-P),K.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*I+2*d.length),B.writeUInt16(0),B.writeUInt16(Z),B.writeUInt16(H),B.writeUInt16(g),B.writeUInt16(Y),re=0,E=m.length;re<E;re++)i=m[re],B.writeUInt16(i);for(B.writeUInt16(0),pe=0,F=R.length;pe<F;pe++)i=R[pe],B.writeUInt16(i);for(ye=0,W=l.length;ye<W;ye++)s=l[ye],B.writeUInt16(s);for(ke=0,J=K.length;ke<J;ke++)A=K[ke],B.writeUInt16(A);for(Re=0,ne=d.length;Re<ne;Re++)w=d[Re],B.writeUInt16(w);return{charMap:r,subtable:B.data,maxGlyphID:N+1}}},e}(),y_=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)n=new aw(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,i;return n==null&&(n="macroman"),r=aw.encode(t,n),(i=new Ja).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e}(),XT=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),QT=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r}(),this.charRange=function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),JT=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var a,s,l;for(l=[],o=a=0,s=this.file.maxp.numGlyphs;0<=s?a<s:a>s;o=0<=s?++a:--a)l.push(t.readUInt32());return l}).call(this)}},e}(),eR=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},tR=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,o,a,s,l,c,h,m,g;for(t.pos=this.offset,t.readShort(),n=t.readShort(),s=t.readShort(),r=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(l={},o=h=0,m=r.length;h<m;o=++h)i=r[o],t.pos=i.offset,c=t.readString(i.length),a=new eR(c,i),l[g=i.nameID]==null&&(l[g]=[]),l[i.nameID].push(a);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),nR=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),rR=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,o,a,s,l;for(t.pos=this.offset,this.metrics=[],n=0,s=this.file.hhea.numberOfMetrics;0<=s?n<s:n>s;n=0<=s?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,h;for(h=[],n=c=0;0<=i?c<i:c>i;n=0<=i?++c:--c)h.push(t.readInt16());return h}(),this.widths=(function(){var c,h,m,g;for(g=[],c=0,h=(m=this.metrics).length;c<h;c++)o=m[c],g.push(o.advance);return g}).call(this),r=this.widths[this.widths.length-1],l=[],n=a=0;0<=i?a<i:a>i;n=0<=i?++a:--a)l.push(this.widths.push(r));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),w_=[].slice,iR=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,o,a,s,l,c,h,m;return t in this.cache?this.cache[t]:(o=this.file.loca,n=this.file.contents,r=o.indexOf(t),(i=o.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,a=(s=new Ja(n.read(i))).readShort(),c=s.readShort(),m=s.readShort(),l=s.readShort(),h=s.readShort(),this.cache[t]=a===-1?new aR(s,c,m,l,h):new oR(s,a,c,m,l,h),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,o,a,s,l;for(a=[],o=[],s=0,l=n.length;s<l;s++)i=t[n[s]],o.push(a.length),i&&(a=a.concat(i.encode(r)));return o.push(a.length),{table:a,offsets:o}},e}(),oR=function(){function e(t,n,r,i,o,a){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=o,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),aR=function(){function e(t,n,r,i,o){var a,s;for(this.raw=t,this.xMin=n,this.yMin=r,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,n,r;for(n=new Ja(w_.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),sR=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return bo(e,Vi),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,o;for(o=[],r=0,i=this.length;r<i;r+=2)o.push(2*t.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],r=0,i=this.length;r<i;r+=4)o.push(t.readUInt32());return o}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
335,e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),i=0,o=0,a=0;a<r.length;++a)if(r[a]=i,o<n.length&&n[o]==a){++o,r[a]=i;var s=this.offsets[a],l=this.offsets[a+1]-s;l>0&&(i+=l)}for(var c=new Array(4*r.length),h=0;h<r.length;++h)c[4*h+3]=255&r[h],c[4*h+2]=(65280&r[h])>>8,c[4*h+1]=(16711680&r[h])>>16,c[4*h]=(4278190080&r[h])>>24;return c},e}(),lR=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,o;for(n in i=this.font.cmap.tables[0].codeMap,t={},o=this.subset)r=o[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,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 n=[],i)(r=i[o])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(o in l=this.glyphsFor(n))r=l[o],i[o]=r;return i},e.prototype.encode=function(t,n){var r,i,o,a,s,l,c,h,m,g,d,S,w,_,y;for(i in r=y_.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),d={0:0},y=r.charMap)d[(l=y[i]).old]=l.new;for(S in g=r.maxGlyphID,a)S in d||(d[S]=g++);return h=function(x){var N,A;for(N in A={},x)A[x[N]]=N;return A}(d),m=Object.keys(h).sort(function(x,N){return x-N}),w=function(){var x,N,A;for(A=[],x=0,N=m.length;x<N;x++)s=m[x],A.push(h[s]);return A}(),o=this.font.glyf.encode(a,w,d),c=this.font.loca.encode(o.offsets,w),_={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(n)},this.font.os2.exists&&(_["OS/2"]=this.font.os2.raw()),this.font.directory.encode(_)},e}();Ke.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var s,l,c;for(c=[],s=0,l=n.length;s<l;s++)r=n[s],c.push(t.convert(r));return c}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join(`
336`)}return""+n},t}();const fi=[255,107,53],jo=[51,51,51],Ti=[107,114,128];function uR(e){const t=new Ke,n=t.internal.pageSize.getWidth(),r=20,i=n-r*2;let o=20;const a=g=>{o+g>270&&(t.addPage(),o=20)},s=(g,d,S,w={})=>{const{fontSize:_=10,color:y=jo,bold:x=!1,maxWidth:N}=w;t.setFontSize(_),t.setTextColor(...y),t.setFont("helvetica",x?"bold":"normal"),N?t.text(g,d,S,{maxWidth:N}):t.text(g,d,S)};t.setFillColor(...fi),t.rect(0,0,n,35,"F"),s(e.name,r,18,{fontSize:20,color:[255,255,255],bold:!0}),s(e.tagline,r,28,{fontSize:11,color:[255,255,255]}),o=45,t.setFillColor(249,250,251),t.roundedRect(r,o,i,22,3,3,"F"),s(`Audience: ${e.targetAudience}`,r+5,o+8,{fontSize:9,color:Ti}),s(`Duration: ${e.duration}`,r+5,o+16,{fontSize:9,color:Ti}),s(`Level: ${e.fitnessLevel}`,r+i/2,o+8,{fontSize:9,color:Ti}),o+=30,a(45),s("Coach Setup Checklist",r,o,{fontSize:14,bold:!0,color:fi}),o+=8,["Create challenge in your coaching platform","Set daily rules and tracking method","Announce challenge to clients","Schedule weekly check-ins","Prepare recognition for completers"].forEach(g=>{t.setDrawColor(...Ti),t.rect(r,o-3,4,4),s(g,r+8,o,{fontSize:9,color:jo}),o+=7}),o+=5,a(30),s("Challenge Objective",r,o,{fontSize:14,bold:!0,color:fi}),o+=7;const c=t.splitTextToSize(e.objective,i);s(c.join(`
337`),r,o,{fontSize:10,color:jo,maxWidth:i}),o+=c.length*5+5,a(30),s("How the Challenge Works",r,o,{fontSize:14,bold:!0,color:fi}),o+=7;const h=t.splitTextToSize(e.howItWorks,i);s(h.join(`
338`),r,o,{fontSize:10,color:jo,maxWidth:i}),o+=h.length*5+8,a(50),s("Daily Challenge Rules",r,o,{fontSize:14,bold:!0,color:fi}),o+=6,s(`Clients must complete all ${e.dailyRules.length} categories to mark the day as completed.`,r,o,{fontSize:9,color:Ti}),o+=8,e.dailyRules.forEach(g=>
338{a(25),t.setFillColor(...fi),t.circle(r+4,o,4,"F"),s(String(g.id),r+2.5,o+1.5,{fontSize:8,color:[255,255,255],bold:!0}),s(g.title,r+12,o+1,{fontSize:11,bold:!0,color:jo}),o+=6;const d=t.splitTextToSize(g.description,i-12);s(d.join(`
339`),r+12,o,{fontSize:9,color:Ti,maxWidth:i-12}),o+=d.length*4+2,g.options&&g.options.length>0&&g.options.forEach(S=>{s(`• ${S}`,r+16,o,{fontSize:9,color:Ti}),o+=5}),o+=4}),a(40),s("Weekly Focus Themes",r,o,{fontSize:14,bold:!0,color:fi}),o+=8,e.weeklyThemes.forEach(g=>{a(30),t.setFillColor(249,250,251),t.roundedRect(r,o-3,i,24,2,2,"F"),s(`Week ${g.week}: ${g.title}`,r+4,o+2,{fontSize:11,bold:!0,color:jo}),s(`Focus: ${g.focus}`,r+4,o+9,{fontSize:9,color:Ti}),g.addOnRule&&s(`Add-on: ${g.addOnRule}`,r+4,o+15,{fontSize:9,color:Ti}),o+=28}),a(40),s("Scoring System",r,o,{fontSize:14,bold:!0,color:fi}),o+=6,s("Recommended for group challenges or community-based programs.",r,o,{fontSize:9,color:Ti}),o+=8,e.scoringSystem.forEach(g=>{a(10),s(g.action,r,o,{fontSize:10,color:jo}),s(g.points,r+i-30,o,{fontSize:10,bold:!0,color:fi}),o+=6}),o+=5,a(40),s("Progress Tracking",r,o,{fontSize:14,bold:!0,color:fi}),o+=8,e.progressTracking.forEach(g=>{a(8),s(`✓ ${g}`,r,o,{fontSize:10,color:jo}),o+=6}),o+=5,a(40),s("Coaching Notes",r,o,{fontSize:14,bold:!0,color:fi}),o+=8,e.coachingNotes.forEach(g=>{a(12);const d=t.splitTextToSize(`• ${g}`,i);s(d.join(`
340`),r,o,{fontSize:10,color:jo,maxWidth:i}),o+=d.length*5+3}),a(20),o+=10,t.setDrawColor(229,231,235),t.line(r,o,n-r,o),o+=8,s("Generated by FitBudd Challenge Generator",r,o,{fontSize:8,color:Ti}),s("www.fitbudd.com",n-r-25,o,{fontSize:8,color:fi});const m=e.name.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");t.save(`${m}.pdf`)}const cR=({challenge:e,onStartOver:t})=>U.jsxs("div",{className:"min-h-screen bg-background",children:[U.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-10",children:U.jsxs("div",{className:"container max-w-4xl mx-auto px-4 py-3 flex items-center justify-between",children:[U.jsxs("div",{className:"flex items-center gap-2",children:[U.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center",children:U.jsx(u3,{className:"w-5 h-5 text-primary-foreground"})}),U.jsx("span",{className:"font-bold text-foreground",children:"FitBudd"})]}),U.jsx("button",{onClick:t,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Create Another"})]})}),U.jsxs("main",{className:"container max-w-4xl mx-auto px-4 py-6 space-y-6 slide-up",children:[U.jsxs("div",{className:"bg-gradient-to-br from-primary to-fitbudd-orange-dark rounded-2xl p-6 text-primary-foreground",children:[U.jsx("h1",{className:"text-2xl font-bold mb-2",children:e.name}),U.jsx("p",{className:"text-primary-foreground/80",children:e.tagline}),U.jsxs("div",{className:"flex flex-wrap gap-4 mt-4 text-sm",children:[U.jsxs("div",{className:"flex items-center gap-1.5",children:[U.jsx(qN,{className:"w-4 h-4"}),U.jsx("span",{children:e.targetAudience})]}),U.jsxs("div",{className:"flex items-center gap-1.5",children:[U.jsx(iv,{className:"w-4 h-4"}),U.jsx("span",{children:e.duration})]}),U.jsxs("div",{className:"flex items-center gap-1.5",children:[U.jsx(ov,{className:"w-4 h-4"}),U.jsx("span",{children:e.fitnessLevel})]})]})]}),U.jsxs("section",{className:"bg-card rounded-2xl border border-border p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-3 flex items-center gap-2",children:[U.jsx(ov,{className:"w-5 h-5 text-primary"}),"Challenge Objective"]}),U.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.objective})]}),U.jsxs("section",{className:"bg-primary/5 rounded-2xl border border-primary/20 p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-3 flex items-center gap-2",children:[U.jsx(HN,{className:"w-5 h-5 text-primary"}),"How the Challenge Works"]}),U.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.howItWorks})]}),U.jsxs("button",{onClick:()=>uR(e),className:"w-full btn-secondary justify-center gap-2",children:[U.jsx(FN,{className:"w-5 h-5"}),"Download Challenge PDF"]}),U.jsxs("section",{className:"bg-card rounded-2xl border border-border p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-4 flex items-center gap-2",children:[U.jsx(DN,{className:"w-5 h-5 text-primary"}),"Daily Challenge Rules"]}),U.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Clients must complete all ",e.dailyRules.length,' categories below to mark the day as "completed." Within categories that offer options, they choose ONE per day.']}),U.jsx("div",{className:"space-y-4",children:e.dailyRules.map(n=>U.jsx("div",{className:"bg-secondary/50 rounded-xl p-4",children:U.jsxs("div",{className:"flex items-start gap-3",children:[U.jsx("div",{className:"w-8 h-8 rounded-full bg-primary flex items-center justify-center flex-shrink-0",children:U.jsx("span",{className:"text-sm font-bold text-primary-foreground",children:n.id})}),U.jsxs("div",{className:"flex-1",children:[U.jsx("h3",{className:"font-semibold text-foreground",children:n.title}),U.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:n.description}),n.options&&U.jsx("ul",{className:"mt-2 space-y-1",children:n.options.map((r,i)=>U.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[U.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary flex-shrink-0"}),r]},i))})]})]})},n.id))})]}),U.jsxs("section",{className:"bg-card rounded-2xl border border-border p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-4 flex items-center gap-2",children:[U.jsx(iv,{className:"w-5 h-5 text-primary"}),"Weekly Focus Themes"]}),U.jsx("div",{className:"space-y-3",children:e.weeklyThemes.map(n=>U.jsxs("div",{className:"bg-secondary/50 rounded-xl p-4",children:[U.jsx("div",{className:"flex items-center justify-between mb-2",children:U.jsxs("span",{className:"font-semibold",children:["Week ",n.week,": ",n.title]})}),U.jsxs("div",{className:"space-y-2 text-sm",children:[U.jsxs("div",{className:"flex items-start gap-2",children:[U.jsx("span",{className:"text-primary font-medium min-w-[60px]",children:"Focus:"}),U.jsx("span",{className:"text-muted-foreground",children:n.focus})]}),n.addOnRule&&U.jsxs("div",{className:"flex items-start gap-2",children:[U.jsx("span",{className:"text-primary font-medium min-w-[60px]",children:"Add-on:"}),U.jsx("span",{className:"text-muted-foreground",children:n.addOnRule})]}),U.jsxs("div",{className:"flex items-start gap-2",children:[U.jsx("span",{className:"text-primary font-medium min-w-[60px]",children:"Coach tip:"}),U.jsx("span",{className:"text-muted-foreground italic",children:n.coachTip})]})]})]},n.week))})]}),U.jsxs("section",{className:"bg-card rounded-2xl border border-border p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-4 flex items-center gap-2",children:[U.jsx(UN,{className:"w-5 h-5 text-primary"}),"Scoring System"]}),U.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Optional but powerful. Recommended for group challenges or community-based programs:"}),U.jsx("div",{className:"grid gap-2",children:e.scoringSystem.map((n,r)=>U.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-xl",children:[U.jsx("span",{className:"text-sm text-foreground",children:n.action}),U.jsx("span",{className:"text-sm font-semibold text-primary",children:n.points})]},r))})]}),U.jsxs("section",{className:"bg-card rounded-2xl border border-border p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-4 flex items-center gap-2",children:[U.jsx(IN,{className:"w-5 h-5 text-primary"}),"Progress Tracking"]}),U.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Track challenge behaviors, not workout metrics:"}),U.jsx("ul",{className:"space-y-2",children:e.progressTracking.map((n,r)=>U.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[U.jsx(jN,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),n]},r))})]}),U.jsxs("section",{className:"bg-card rounded-2xl border border-border p-5",children:[U.jsxs("h2",{className:"font-bold text-lg mb-4 flex items-center gap-2",children:[U.jsx(MN,{className:"w-5 h-5 text-primary"}),"Coaching Notes"]}),U.jsx("ul",{className:"space-y-2",children:e.coachingNotes.map((n,r)=>U.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[U.jsx("span",{className:"text-primary font-bold",children:"•"}),n]},r))})]}),U.jsxs("section",{className:"bg-gradient-to-br from-primary/10 to-accent rounded-2xl border-2 border-primary/20 p-6 text-center",children:[U.jsx("h2",{className:"text-xl font-bold mb-2",children:"Ready to deploy this challenge with clients?"}),U.jsx("p",{className:"text-muted-foreground mb-4",children:"Run it inside your own branded fitness app. No spreadsheets, no manual tracking."}),U.jsx("a",{href:"https://dashboard.fitbudd.com/",target:"_blank",rel:"noopener noreferrer",className:"btn-primary inline-flex",children:"Start your 30-day free trial"}),U.jsx("div",{className:"mt-6 pt-4 border-t border-border",children:U.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[U.jsx("div",{className:"flex -sp
340ace-x-2",children:[1,2,3,4,5].map(n=>U.jsx("div",{className:"w-8 h-8 rounded-full bg-secondary border-2 border-background flex items-center justify-center text-xs font-medium",children:["👤","💪","🏋️","🧘","🏃"][n-1]},n))}),U.jsxs("span",{className:"ml-2",children:["Trusted by ",U.jsx("strong",{className:"text-foreground",children:"10,000+"})," fitness professionals"]})]})})]}),U.jsx("footer",{className:"text-center text-sm text-muted-foreground py-4",children:U.jsxs("p",{children:["Made with ❤️ by"," ",U.jsx("a",{href:"https://www.fitbudd.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"FitBudd"})]})})]})]}),sw=5,lw={challengeTypes:[],audienceTypes:[],fitnessLevels:[],duration:"21",equipment:[],measurements:["kg","cm"]},fR=()=>{const[e,t]=X.useState(0),[n,r]=X.useState(lw),[i,o]=X.useState(!1),[a,s]=X.useState(null),l=(_,y)=>{r(x=>{const N=x[_],A=N.includes(y)?N.filter(M=>M!==y):[...N,y];return{...x,[_]:A}})},c=_=>{r(y=>({...y,duration:_}))},h=()=>{switch(e){case 0:return n.challengeTypes.length>0;case 1:return n.audienceTypes.length>0;case 2:return n.fitnessLevels.length>0&&n.duration;case 3:return n.equipment.length>0;default:return!0}},m=()=>{e<sw-1&&t(e+1)},g=()=>{e>0&&t(e-1)},d=async(_,y)=>{o(!0),await new Promise(N=>setTimeout(N,1500));const x=XL(n);s(x),o(!1)},S=()=>{t(0),r(lw),s(null)};if(a)return U.jsx(cR,{challenge:a,onStartOver:S});const w=()=>{switch(e){case 0:return U.jsx(JL,{selected:n.challengeTypes,onToggle:_=>l("challengeTypes",_)});case 1:return U.jsx(eE,{selected:n.audienceTypes,onToggle:_=>l("audienceTypes",_)});case 2:return U.jsx(tE,{selectedLevels:n.fitnessLevels,selectedDuration:n.duration,onToggleLevel:_=>l("fitnessLevels",_),onSelectDuration:c});case 3:return U.jsx(nE,{selectedEquipment:n.equipment,selectedMeasurements:n.measurements,onToggleEquipment:_=>l("equipment",_),onToggleMeasurement:_=>l("measurements",_)});case 4:return U.jsx(rE,{onSubmit:d,isLoading:i});default:return null}};return U.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[U.jsx("header",{className:"bg-card border-b border-border px-4 py-3",children:U.jsxs("div",{className:"flex items-center justify-between max-w-lg mx-auto",children:[U.jsxs("div",{className:"flex items-center gap-2",children:[U.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center",children:U.jsx(u3,{className:"w-5 h-5 text-primary-foreground"})}),U.jsxs("div",{children:[U.jsx("span",{className:"font-bold text-foreground text-base",children:"FitBudd"}),U.jsx("span",{className:"text-xs text-muted-foreground block -mt-0.5",children:"Challenge Generator"})]})]}),U.jsx(QL,{currentStep:e,totalSteps:sw})]})}),U.jsx("main",{className:"px-4 py-3 max-w-lg mx-auto w-full",children:w()}),e<4&&U.jsx("div",{className:"px-4 pt-2 pb-4 max-w-lg mx-auto w-full",children:U.jsxs("div",{className:"flex gap-3",children:[e>0&&U.jsx("button",{onClick:g,className:"btn-secondary flex-shrink-0",children:U.jsx(ON,{className:"w-5 h-5"})}),U.jsxs("button",{onClick:m,disabled:!h(),className:"btn-primary flex-1 justify-center disabled:opacity-50 disabled:cursor-not-allowed",children:["Continue",U.jsx(l3,{className:"w-5 h-5"})]})]})})]})},dR=()=>U.jsx(fR,{}),hR=()=>{const e=l4();return X.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),U.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:U.jsxs("div",{className:"text-center",children:[U.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),U.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),U.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},pR=new eL,mR=()=>U.jsx(nL,{client:pR,children:U.jsxs(P7,{children:[U.jsx(Ak,{}),U.jsx(iA,{}),U.jsx(UL,{children:U.jsxs(DL,{children:[U.jsx(v2,{path:"/",element:U.jsx(dR,{})}),U.jsx(v2,{path:"*",element:U.jsx(hR,{})})]})})]})});Rx(document.getElementById("root")).render(U.jsx(mR,{}));export{vR as c,vw 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.